@uptimizr/dashboard 0.4.6 → 0.4.7

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 (383) 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/{2-_a-v1xeo5hb.js → 0-_j1khfoib6l.js} +116 -115
  6. package/out/_next/static/chunks/{25brs445bjbik.js → 005bbq_px7lke.js} +2 -2
  7. package/out/_next/static/chunks/00fbhtmui-yxg.js +1 -0
  8. package/out/_next/static/chunks/017pn-pen381_.js +1 -0
  9. package/out/_next/static/chunks/01vov6inx1zzt.js +1 -0
  10. package/out/_next/static/chunks/{2x-7kbwq8tl-o.js → 02qk_wmkf9at-.js} +196 -196
  11. package/out/_next/static/chunks/03bd5plut08tg.js +1 -0
  12. package/out/_next/static/chunks/03dwfqmo73w_z.js +1 -0
  13. package/out/_next/static/chunks/03sn4419dam-h.js +5 -0
  14. package/out/_next/static/chunks/05ere0-228syf.js +1 -0
  15. package/out/_next/static/chunks/{1jjw9hxgi2vzi.js → 05h8u5lrypn5m.js} +1 -1
  16. package/out/_next/static/chunks/{23-y1f_zw56vo.js → 05v-nubi896jg.js} +1 -1
  17. package/out/_next/static/chunks/05z79zh625ezu.js +1 -0
  18. package/out/_next/static/chunks/{2xe4bgir5l-9b.js → 060iult6f68_e.js} +504 -504
  19. package/out/_next/static/chunks/08lvtnv7b1cxp.js +1 -0
  20. package/out/_next/static/chunks/0_v2luu_qmeid.js +1 -0
  21. package/out/_next/static/chunks/0ai0zgbgjqb92.js +1 -0
  22. package/out/_next/static/chunks/0boov9mwycanf.js +1 -0
  23. package/out/_next/static/chunks/{2mrkv0z2i74pv.js → 0btmk0wmekl02.js} +2 -2
  24. package/out/_next/static/chunks/0d8x8m2x6ca_m.js +1 -0
  25. package/out/_next/static/chunks/0dmrdrwtd093b.js +1 -0
  26. package/out/_next/static/chunks/0e1jfrmioeuws.js +1 -0
  27. package/out/_next/static/chunks/0e7nlxmneb2j_.js +1 -0
  28. package/out/_next/static/chunks/0es97pusfxupl.js +1 -0
  29. package/out/_next/static/chunks/{2fspbfbxbswzd.js → 0fd-0i1yt23kz.js} +1 -1
  30. package/out/_next/static/chunks/0fxdyvb1w23d1.js +1 -0
  31. package/out/_next/static/chunks/0fxhc24djjcgq.js +1 -0
  32. package/out/_next/static/chunks/0gf-ztg86zd80.js +1 -0
  33. package/out/_next/static/chunks/{287hakn2ijupp.js → 0grasqqf5dw7r.js} +2 -2
  34. package/out/_next/static/chunks/{161yjxmdz9obc.js → 0hajwk2yd-rwr.js} +1 -1
  35. package/out/_next/static/chunks/0hk1wg7h4araz.js +1 -0
  36. package/out/_next/static/chunks/{1aa9g197l4twm.js → 0j74ipw4fps-n.js} +1 -1
  37. package/out/_next/static/chunks/{1s0dpdqy480hg.js → 0kj-vckdn7t5p.js} +1 -1
  38. package/out/_next/static/chunks/0lbs5xdyjuzuo.js +1 -0
  39. package/out/_next/static/chunks/0lep3_bqwfuin.js +1 -0
  40. package/out/_next/static/chunks/0mp0jh1gj7290.js +1 -0
  41. package/out/_next/static/chunks/0ngpoj2g5i4kz.js +1 -0
  42. package/out/_next/static/chunks/0nhljhguceh66.js +1 -0
  43. package/out/_next/static/chunks/0p6z73afb9dj2.js +1 -0
  44. package/out/_next/static/chunks/0p9zfmidzqkps.js +1 -0
  45. package/out/_next/static/chunks/0q75860p8u_ii.js +1 -0
  46. package/out/_next/static/chunks/{3mmy9zsb7zo-m.js → 0rracz73p38mo.js} +23 -23
  47. package/out/_next/static/chunks/{3_dm45k0vk1aa.js → 0sw-8gxbg4x0l.js} +565 -565
  48. package/out/_next/static/chunks/0sx-6rf3eteqn.js +1 -0
  49. package/out/_next/static/chunks/0thw099xk3_0p.js +3 -0
  50. package/out/_next/static/chunks/0u85f0dhb4i8e.js +1 -0
  51. package/out/_next/static/chunks/0uk7kigzm4vi2.js +31 -0
  52. package/out/_next/static/chunks/0ulufxnsrou61.js +1 -0
  53. package/out/_next/static/chunks/0xa9dyg6ezzyd.js +2 -0
  54. package/out/_next/static/chunks/0xvrfvur0p534.js +1 -0
  55. package/out/_next/static/chunks/{2clevl_9ayd0x.js → 0ybs1u66q26su.js} +1 -1
  56. package/out/_next/static/chunks/0ydfhk-p6zvm0.js +1 -0
  57. package/out/_next/static/chunks/{0j2ygtc_-bo3m.js → 0z004fn14pbcu.js} +1 -1
  58. package/out/_next/static/chunks/{2c8rmxz151fxa.js → 0z9erbl3llr_b.js} +224 -224
  59. package/out/_next/static/chunks/0zcsxvcvog9ue.js +1 -0
  60. package/out/_next/static/chunks/0zqgq0lwtz9tn.js +1 -0
  61. package/out/_next/static/chunks/1-ogak5u00kwa.js +1 -0
  62. package/out/_next/static/chunks/{3si3migsmvz9o.js → 10_5p5-xf2aoo.js} +1 -1
  63. package/out/_next/static/chunks/118qlrzdwpfmo.js +1 -0
  64. package/out/_next/static/chunks/11km5p4gd0ut4.js +1 -0
  65. package/out/_next/static/chunks/120rl4l29q9xs.js +1 -0
  66. package/out/_next/static/chunks/{44m1ijc5cv80x.js → 129m5i93ltoym.js} +1 -1
  67. package/out/_next/static/chunks/12n73o884lyyl.js +1 -0
  68. package/out/_next/static/chunks/{27z7j17kcrty_.js → 13zcn4lv0qj76.js} +11 -11
  69. package/out/_next/static/chunks/15jlgfcaeaki9.js +1 -0
  70. package/out/_next/static/chunks/{374lzksboll-t.js → 15o4_2t-l3rj5.js} +1 -1
  71. package/out/_next/static/chunks/175st2ogkg_1o.js +1 -0
  72. package/out/_next/static/chunks/19rsodtu91ja_.js +1 -0
  73. package/out/_next/static/chunks/1a2ouhup611bz.js +1 -0
  74. package/out/_next/static/chunks/{2117sv2qzo6yq.js → 1by60_b14x-3o.js} +1 -1
  75. package/out/_next/static/chunks/{2al9dh3_1ixhv.js → 1cyq7i39885sl.js} +1 -1
  76. package/out/_next/static/chunks/1d9it6yocgt54.js +1 -0
  77. package/out/_next/static/chunks/{29_n5j-hg_gsa.js → 1dp1s1t-y7gal.js} +1 -1
  78. package/out/_next/static/chunks/1dr7gh6xgypl8.js +1 -0
  79. package/out/_next/static/chunks/{1eirucr9s6-h5.js → 1dt30s_sp8415.js} +1 -1
  80. package/out/_next/static/chunks/{3vtmucpx25o7q.js → 1e8_jl2cxd3rp.js} +584 -584
  81. package/out/_next/static/chunks/1f1rek_fxk3of.js +1 -0
  82. package/out/_next/static/chunks/1f2mna0k5efeq.js +1 -0
  83. package/out/_next/static/chunks/1gfz3sxwkkg3d.js +1 -0
  84. package/out/_next/static/chunks/1gr35qeguuws0.js +1 -0
  85. package/out/_next/static/chunks/{3p03l0z65c8vc.js → 1gttu-n9am66k.js} +253 -253
  86. package/out/_next/static/chunks/1imi0xwi9hd99.js +1 -0
  87. package/out/_next/static/chunks/1ka5v5zu0cstt.js +1 -0
  88. package/out/_next/static/chunks/{3my05px5mv_s5.js → 1l_3oidssbhns.js} +235 -235
  89. package/out/_next/static/chunks/{0r-x702_jvhud.js → 1m9zc5gm-327d.js} +12 -12
  90. package/out/_next/static/chunks/1n9nhz-6azcp3.js +3 -0
  91. package/out/_next/static/chunks/1ncqwe81t_9_x.js +1 -0
  92. package/out/_next/static/chunks/{3un-w6wutw1qn.js → 1nix_lulkpklo.js} +1 -1
  93. package/out/_next/static/chunks/1ntqovuz2c217.js +1 -0
  94. package/out/_next/static/chunks/1pgs-98tfkq9_.js +1 -0
  95. package/out/_next/static/chunks/1q2z0aeopo8t8.js +1 -0
  96. package/out/_next/static/chunks/{1x0j78ohufpul.js → 1q4lkgxfnqnew.js} +1 -1
  97. package/out/_next/static/chunks/{0yd4_xh476fjn.js → 1qg1l7t00nyib.js} +97 -97
  98. package/out/_next/static/chunks/{2wgh5i70bzelt.js → 1rcdimhu0qhlu.js} +392 -392
  99. package/out/_next/static/chunks/1rlfg62jxqj3z.js +1 -0
  100. package/out/_next/static/chunks/1ses023uud001.js +1 -0
  101. package/out/_next/static/chunks/1t5oynmttpfsw.js +1 -0
  102. package/out/_next/static/chunks/{39cou9lia_g7l.js → 1t9i20i5-f8ze.js} +1 -1
  103. package/out/_next/static/chunks/{0rykrf_vofbad.js → 1tgj55b305g4h.js} +1 -1
  104. package/out/_next/static/chunks/{3rj-5v0j_2-_2.js → 1u8snlm6a7uhi.js} +4 -4
  105. package/out/_next/static/chunks/{2neieeo9g2u56.js → 1ug4k-1zhr63a.js} +1 -1
  106. package/out/_next/static/chunks/{3ioxfi3bvznhh.js → 1uh9zgsy69g92.js} +1 -1
  107. package/out/_next/static/chunks/1vrpzlif-z_p0.js +1 -0
  108. package/out/_next/static/chunks/{0lwjmr8efrlbt.js → 1vurgl6oz2qey.js} +1 -1
  109. package/out/_next/static/chunks/1w-qc09n9ijtq.js +1 -0
  110. package/out/_next/static/chunks/1ycqxcht6x54p.js +1 -0
  111. package/out/_next/static/chunks/1zj4307ugq0qz.js +1 -0
  112. package/out/_next/static/chunks/{14e4k-718qadd.js → 1zkd8v-qka--j.js} +163 -168
  113. package/out/_next/static/chunks/1zm52cjrfrq7c.js +1 -0
  114. package/out/_next/static/chunks/{3-yhe6rcsjh88.js → 1zm6eo861i3c8.js} +1 -1
  115. package/out/_next/static/chunks/{06fbalmyyfpsy.js → 1zp9363yfhpom.js} +1 -1
  116. package/out/_next/static/chunks/1zt1xxovnjhkm.js +1 -0
  117. package/out/_next/static/chunks/2-3hk_db5fpok.js +1 -0
  118. package/out/_next/static/chunks/2-bv9a_0zgw1f.js +1 -0
  119. package/out/_next/static/chunks/{3cp5nmtwxq4gr.js → 209sxygecny37.js} +1 -1
  120. package/out/_next/static/chunks/{133dqp8_7_yo6.js → 216uiih3_vdfd.js} +1 -1
  121. package/out/_next/static/chunks/21kfpd_bityxt.js +1 -0
  122. package/out/_next/static/chunks/{3yk0hzfq5rcs6.js → 22yqh0zlo_vwr.js} +1 -1
  123. package/out/_next/static/chunks/24ecas0m9tao7.js +3 -0
  124. package/out/_next/static/chunks/24pq9210rng3f.js +1 -0
  125. package/out/_next/static/chunks/{184pz6z3dflfm.js → 267prao6fyt22.js} +20 -20
  126. package/out/_next/static/chunks/26skkagvj1z96.js +1 -0
  127. package/out/_next/static/chunks/{0i9wa8hjd-5tc.js → 26y9sv8_-ykxf.js} +1 -1
  128. package/out/_next/static/chunks/2701xfv_07wz_.js +1 -0
  129. package/out/_next/static/chunks/{39rhmj_32ujyj.js → 271333m8y3k0e.js} +1 -1
  130. package/out/_next/static/chunks/29rkmguzky-bp.js +1 -0
  131. package/out/_next/static/chunks/{3qo7e6b73mfxq.js → 2a07so920b6aa.js} +1 -1
  132. package/out/_next/static/chunks/{1z790xxb46gxy.js → 2a2oy8ryz2tsk.js} +1 -1
  133. package/out/_next/static/chunks/{2-i29-jdbwww6.js → 2ao-3jzz7yw3p.js} +111 -111
  134. package/out/_next/static/chunks/2apihn9ra2ufp.js +1 -0
  135. package/out/_next/static/chunks/2apnpj0-fs9ks.js +1 -0
  136. package/out/_next/static/chunks/2b481pitl4k85.js +1 -0
  137. package/out/_next/static/chunks/2bettxaqt3d2p.js +1 -0
  138. package/out/_next/static/chunks/{1bv-jzy_2jiqs.js → 2c721vfva711t.js} +1 -1
  139. package/out/_next/static/chunks/{17_jjyx4jz9dd.js → 2d2kl_m64j9cb.js} +1 -1
  140. package/out/_next/static/chunks/2droqjmvmgj13.js +1 -0
  141. package/out/_next/static/chunks/2dxbvwbbgpzoq.js +1 -0
  142. package/out/_next/static/chunks/2eqbsut829r5l.js +1 -0
  143. package/out/_next/static/chunks/2f3_mzxjh3gso.js +1 -0
  144. package/out/_next/static/chunks/2fsde0jwi5qtt.js +1 -0
  145. package/out/_next/static/chunks/{0jap7l5-bskj4.js → 2h249uvhh2sij.js} +12 -12
  146. package/out/_next/static/chunks/{2as_br1awqk6k.js → 2izok2otbk8-2.js} +496 -496
  147. package/out/_next/static/chunks/2j120dkh7q3uf.js +1 -0
  148. package/out/_next/static/chunks/2j2ynchpqh34-.js +1 -0
  149. package/out/_next/static/chunks/2kj6pzs_wap1v.js +1 -0
  150. package/out/_next/static/chunks/{2epukrz6paj9n.js → 2kok6zedeeltw.js} +1 -1
  151. package/out/_next/static/chunks/2lnj9jruy4nrv.js +1 -0
  152. package/out/_next/static/chunks/{0j0a0wvmmghxj.js → 2lsvk7xcfkarc.js} +1 -1
  153. package/out/_next/static/chunks/2n-pveub8b_5t.js +1 -0
  154. package/out/_next/static/chunks/{3puu2_-t0lln9.js → 2n3xu_wbvtj7h.js} +12 -12
  155. package/out/_next/static/chunks/{1lu7rjfvxj8yj.js → 2of8q0kaeqpf0.js} +1 -1
  156. package/out/_next/static/chunks/2ofwtw6p08sfz.js +1 -0
  157. package/out/_next/static/chunks/{1t-yolk97lmot.js → 2phl5ta4iim7l.js} +1 -1
  158. package/out/_next/static/chunks/2q6l-xdqzgmpf.js +1 -0
  159. package/out/_next/static/chunks/2q8yg63br2jc9.js +1 -0
  160. package/out/_next/static/chunks/2r5qgieqldcd9.js +1 -0
  161. package/out/_next/static/chunks/2r7y401cvjc1s.js +1 -0
  162. package/out/_next/static/chunks/{1a94whad0y57f.js → 2r96kyeehsji9.js} +1 -1
  163. package/out/_next/static/chunks/{1gvu5a6ffbs7l.js → 2rmc6ru7mc-kg.js} +1 -1
  164. package/out/_next/static/chunks/{3_gfl66zf638s.js → 2s6kpclh6ie7o.js} +901 -906
  165. package/out/_next/static/chunks/{0xzamrecplwzw.js → 2sys9nj8lo3uk.js} +1 -1
  166. package/out/_next/static/chunks/{336ckqpboqmbn.js → 2tc3e-iqv71y_.js} +1 -1
  167. package/out/_next/static/chunks/{1t2g1v0ubcsam.js → 2uo6vm7mfgrbf.js} +1 -1
  168. package/out/_next/static/chunks/{2kmmk9coo9_b0.js → 2urx6fow8c8c9.js} +143 -143
  169. package/out/_next/static/chunks/2w2k1gveljyb7.js +1 -0
  170. package/out/_next/static/chunks/{1zmx71cvc6ksk.js → 2w99knknr5i8c.js} +1 -1
  171. package/out/_next/static/chunks/2w_ptlw-ad8-9.js +4 -0
  172. package/out/_next/static/chunks/2ws1s9d52ayv8.js +1 -0
  173. package/out/_next/static/chunks/2x7enks3ydgai.js +1 -0
  174. package/out/_next/static/chunks/{2_6b9lraq-exh.js → 2y8i7_nxm4r05.js} +5 -5
  175. package/out/_next/static/chunks/2ydub0t01728d.js +1 -0
  176. package/out/_next/static/chunks/{29hkkj9raxte9.js → 2z_iab7ozohhq.js} +77 -77
  177. package/out/_next/static/chunks/3-m_vzabs1uez.js +1 -0
  178. package/out/_next/static/chunks/{1h1gixjbjkbsl.js → 302qk2fjdrthp.js} +5 -5
  179. package/out/_next/static/chunks/30bhz7czzs4mf.js +1 -0
  180. package/out/_next/static/chunks/{3d43gd91r06y6.js → 30n4y_uu8chbh.js} +507 -505
  181. package/out/_next/static/chunks/{0o0qtv35dqv3i.js → 32_c4mbb6j1l6.js} +239 -239
  182. package/out/_next/static/chunks/33hp-khdfohdq.js +1 -0
  183. package/out/_next/static/chunks/{3zv5kyos9vtmm.js → 33i36o_l69sm5.js} +1 -1
  184. package/out/_next/static/chunks/3527r3jo5fj3i.js +1 -0
  185. package/out/_next/static/chunks/355dg8yaa94hr.js +1 -0
  186. package/out/_next/static/chunks/{2h9i_adbqaxs4.js → 35ntbr_c-yx44.js} +1 -1
  187. package/out/_next/static/chunks/{0cmyc-uvk93kl.js → 35sne1llxnc-m.js} +74 -74
  188. package/out/_next/static/chunks/36enkx1skkv2-.js +4 -0
  189. package/out/_next/static/chunks/{0e5dcxmkprebg.js → 3772oce1n3t_g.js} +1 -1
  190. package/out/_next/static/chunks/37cnbm5ft1mqf.js +1 -0
  191. package/out/_next/static/chunks/38xdo3cifphut.js +1 -0
  192. package/out/_next/static/chunks/{0o73w0cn5n_vl.js → 3_dgblylldcgb.js} +1 -1
  193. package/out/_next/static/chunks/3beawo-qwuk8k.js +1 -0
  194. package/out/_next/static/chunks/3cj_6sl9kr3e9.js +1 -0
  195. package/out/_next/static/chunks/3d-i_skta_wes.js +1 -0
  196. package/out/_next/static/chunks/3df_l2we755bb.js +1 -0
  197. package/out/_next/static/chunks/{0o1vph7x9shzu.js → 3eve5y7fpzx2h.js} +1 -1
  198. package/out/_next/static/chunks/3ewgyb4y19w-3.js +1 -0
  199. package/out/_next/static/chunks/3f3789eh18_oy.js +1 -0
  200. package/out/_next/static/chunks/{0gk5rnci1hznh.js → 3f8qelpscqfym.js} +2 -2
  201. package/out/_next/static/chunks/3g3-e9m1en45q.js +1 -0
  202. package/out/_next/static/chunks/{2kk_vvmr2xm3d.js → 3h6akt2uu05ku.js} +12 -12
  203. package/out/_next/static/chunks/{2_lw4d7t-xcqi.js → 3huu0tqmxwowu.js} +523 -522
  204. package/out/_next/static/chunks/3i239y-1hbkm-.js +1 -0
  205. package/out/_next/static/chunks/{2mjjo0yj-4ro4.js → 3ipx7xbxchsq9.js} +1 -1
  206. package/out/_next/static/chunks/{3txu-i5qn183a.js → 3j9xvdz55bi4p.js} +321 -321
  207. package/out/_next/static/chunks/3kp8qmhoi24oz.js +1 -0
  208. package/out/_next/static/chunks/3ksq69yq-40_r.js +1 -0
  209. package/out/_next/static/chunks/{3nwaovnpiyrt8.js → 3njwfothmmg7u.js} +3 -3
  210. package/out/_next/static/chunks/{2iu0_3cx-ny74.js → 3oqxl46ukaojj.js} +11 -11
  211. package/out/_next/static/chunks/{2oacwtbslo90t.js → 3qn6r8-0u6dij.js} +360 -360
  212. package/out/_next/static/chunks/3qye1lytea2i8.js +1 -0
  213. package/out/_next/static/chunks/{0gsh_d0m5xss1.js → 3rlp9yr75liz7.js} +1 -1
  214. package/out/_next/static/chunks/{3j3ol_d1vsdhx.js → 3sa_hlx3konc7.js} +1 -1
  215. package/out/_next/static/chunks/3tyo643l62h3m.js +1 -0
  216. package/out/_next/static/chunks/3tz2tpqa9uvwm.js +1 -0
  217. package/out/_next/static/chunks/{0_jrfk2u1u3fi.js → 3utpc-fc6_y0f.js} +1 -1
  218. package/out/_next/static/chunks/3v-0c2aj6c0on.js +1 -0
  219. package/out/_next/static/chunks/3v6nxa28rxngq.js +1 -0
  220. package/out/_next/static/chunks/{3twr9ds68-9us.js → 3vbamaoiuk9yj.js} +1 -1
  221. package/out/_next/static/chunks/3vv99btjc-mky.js +1 -0
  222. package/out/_next/static/chunks/{22yht3s7c-xih.js → 3w59kt5ztyvoq.js} +1 -1
  223. package/out/_next/static/chunks/3x02lxdo28u9i.js +1 -0
  224. package/out/_next/static/chunks/{1my968s78he8g.js → 3xl-op0hwxytg.js} +15 -15
  225. package/out/_next/static/chunks/3ydnxyc4rvad_.js +1 -0
  226. package/out/_next/static/chunks/3ylg4gfetwgxw.js +1 -0
  227. package/out/_next/static/chunks/{0a475u_q5i_dd.js → 3zdtteq-r2fs5.js} +2 -2
  228. package/out/_next/static/chunks/3zkwt0gybqtgm.js +1 -0
  229. package/out/_next/static/chunks/{3nr48h9zwum-3.js → 3zs7l4362msjd.js} +1 -1
  230. package/out/_next/static/chunks/40etabvml_71y.js +1 -0
  231. package/out/_next/static/chunks/{2xujlsx3stqig.js → 417jkzz0slv9m.js} +1 -1
  232. package/out/_next/static/chunks/{0ypejzd74ixbw.js → 41b5gpyqbj58m.js} +15 -15
  233. package/out/_next/static/chunks/41u2-5jayyajf.js +22 -0
  234. package/out/_next/static/chunks/42gcpy51w7lk1.js +1 -0
  235. package/out/_next/static/chunks/{2h07np207nlx7.js → 42ymanq326mo7.js} +1 -1
  236. package/out/_next/static/chunks/{36pz_ews7u0xb.js → 43fp64xnfy646.js} +1 -1
  237. package/out/_next/static/chunks/43v4y2gu5z9_h.js +1 -0
  238. package/out/_next/static/chunks/44cer242u-f8v.js +1 -0
  239. package/out/_next/static/chunks/{0d9pxx1w_zqr9.js → 44zi0gl0a6a8w.js} +1 -1
  240. package/out/_next/static/chunks/turbopack-0n2o5_bkskckx.js +1 -0
  241. package/out/_not-found/__next._full.txt +11 -11
  242. package/out/_not-found/__next._not-found.__PAGE__.txt +19 -2
  243. package/out/_not-found/__next._tree.txt +1 -1
  244. package/out/_not-found.html +1 -1
  245. package/out/_not-found.txt +11 -11
  246. package/out/index.html +1 -1
  247. package/out/index.txt +10 -10
  248. package/package.json +9 -9
  249. package/out/__next._head.txt +0 -6
  250. package/out/__next._index.txt +0 -5
  251. package/out/_next/static/chunks/0-k4hp87gwues.js +0 -1
  252. package/out/_next/static/chunks/0-laj-bivzp4x.js +0 -1
  253. package/out/_next/static/chunks/04zj0yf1qhk1o.js +0 -1
  254. package/out/_next/static/chunks/07hgbbqksqd1g.js +0 -1
  255. package/out/_next/static/chunks/08ou2nvy48e0u.js +0 -1
  256. package/out/_next/static/chunks/08y5-irjbsiy8.js +0 -1
  257. package/out/_next/static/chunks/0aad2r4s4wl1x.js +0 -5
  258. package/out/_next/static/chunks/0gnjtwq-474uc.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/0noxyupihh8dk.js +0 -1
  266. package/out/_next/static/chunks/0p6phe9kjlxn8.js +0 -1
  267. package/out/_next/static/chunks/0ptxb9dcwsw3o.js +0 -1
  268. package/out/_next/static/chunks/0q0i4pdyq66gb.js +0 -1
  269. package/out/_next/static/chunks/0q8pt8fd0ma30.js +0 -1
  270. package/out/_next/static/chunks/0qqx9aoz8l5d2.js +0 -1
  271. package/out/_next/static/chunks/0tsk32q-88t_7.js +0 -1
  272. package/out/_next/static/chunks/0u7577db_ivyr.js +0 -1
  273. package/out/_next/static/chunks/0unnrt0un064x.js +0 -1
  274. package/out/_next/static/chunks/0uygtr4mo3h0v.js +0 -1
  275. package/out/_next/static/chunks/0vf3facit951s.js +0 -1
  276. package/out/_next/static/chunks/0vzo-8t8c26k9.js +0 -1
  277. package/out/_next/static/chunks/0xx7_7y5jdlh4.js +0 -1
  278. package/out/_next/static/chunks/0xyija62b6txc.js +0 -1
  279. package/out/_next/static/chunks/0zeb37703zcz3.js +0 -1
  280. package/out/_next/static/chunks/0zu5ato7-1-q9.js +0 -1
  281. package/out/_next/static/chunks/0zydv7y47dxgh.js +0 -1
  282. package/out/_next/static/chunks/103x4jwovb6d-.js +0 -1
  283. package/out/_next/static/chunks/107wfq84g9-kn.js +0 -1
  284. package/out/_next/static/chunks/10afagk8yn__n.js +0 -1
  285. package/out/_next/static/chunks/12ory_c78yl31.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/18h9ugdz6igdb.js +0 -1
  294. package/out/_next/static/chunks/19d8n5t7ka2fb.js +0 -1
  295. package/out/_next/static/chunks/1_4hh3dfop93j.js +0 -1
  296. package/out/_next/static/chunks/1_rbzw3n4fk0g.js +0 -1
  297. package/out/_next/static/chunks/1bq0fcnt1wy86.js +0 -1
  298. package/out/_next/static/chunks/1c6mho7e0enta.js +0 -1
  299. package/out/_next/static/chunks/1dfaheve77dhi.js +0 -1
  300. package/out/_next/static/chunks/1dgf112ehnhm1.js +0 -1
  301. package/out/_next/static/chunks/1f07l3q77zat1.js +0 -1
  302. package/out/_next/static/chunks/1fervgvgv10r-.js +0 -1
  303. package/out/_next/static/chunks/1fsof7un7igrn.js +0 -1
  304. package/out/_next/static/chunks/1iel4pzhhh-c3.js +0 -1
  305. package/out/_next/static/chunks/1iojfx3-g4_n9.js +0 -1
  306. package/out/_next/static/chunks/1j4c0nvdo5q68.js +0 -3
  307. package/out/_next/static/chunks/1j4jt5q7px8sy.js +0 -1
  308. package/out/_next/static/chunks/1k_8olnprvi8r.js +0 -1
  309. package/out/_next/static/chunks/1l0rt7d4m-xdk.js +0 -5
  310. package/out/_next/static/chunks/1mt4cnd_d6jvf.js +0 -1
  311. package/out/_next/static/chunks/1tbes2sv-qzcx.js +0 -1
  312. package/out/_next/static/chunks/1upy8a5cb75kt.js +0 -1
  313. package/out/_next/static/chunks/1xed71f608m4b.js +0 -1
  314. package/out/_next/static/chunks/219n3q-_eengm.js +0 -1
  315. package/out/_next/static/chunks/21wo3vdr_uby8.js +0 -1
  316. package/out/_next/static/chunks/25gep78-izw79.js +0 -4
  317. package/out/_next/static/chunks/26i7dn31afdtm.js +0 -1
  318. package/out/_next/static/chunks/27hbplu797elx.js +0 -1
  319. package/out/_next/static/chunks/28i3wgvgn_at1.js +0 -1
  320. package/out/_next/static/chunks/2992eiy52nazj.js +0 -1
  321. package/out/_next/static/chunks/29bxq-67oazfg.js +0 -1
  322. package/out/_next/static/chunks/29ings58w7kp1.js +0 -1
  323. package/out/_next/static/chunks/2_n0cpkdsjzli.js +0 -1
  324. package/out/_next/static/chunks/2a3iy701j4r_y.js +0 -1
  325. package/out/_next/static/chunks/2awr1c_vfsutb.js +0 -1
  326. package/out/_next/static/chunks/2b5nt7yn-pq3a.js +0 -1
  327. package/out/_next/static/chunks/2bxe3kjr17tdp.js +0 -1
  328. package/out/_next/static/chunks/2dvbzar93ooc-.js +0 -1
  329. package/out/_next/static/chunks/2e-vp0e11g9ew.js +0 -1
  330. package/out/_next/static/chunks/2exj9-0p6n9x-.js +0 -1
  331. package/out/_next/static/chunks/2gf8l6hbmt7v3.js +0 -1
  332. package/out/_next/static/chunks/2jio3sio-_43z.js +0 -1
  333. package/out/_next/static/chunks/2laz1v9fg2a2z.js +0 -1
  334. package/out/_next/static/chunks/2pb_uosb-aa8x.js +0 -1
  335. package/out/_next/static/chunks/2qu-gpm3ux1l6.js +0 -1
  336. package/out/_next/static/chunks/2rsi6v7qmqx2b.js +0 -1
  337. package/out/_next/static/chunks/2s4fzgzkwjluu.js +0 -2
  338. package/out/_next/static/chunks/2tdvuc-27khif.js +0 -1
  339. package/out/_next/static/chunks/2trolrgd7neax.js +0 -1
  340. package/out/_next/static/chunks/2uyuafmoe5wi0.js +0 -3
  341. package/out/_next/static/chunks/2w2e0pxgs-n8f.js +0 -1
  342. package/out/_next/static/chunks/30y71dxdpv52d.js +0 -1
  343. package/out/_next/static/chunks/32c-e_v8_2xkf.js +0 -1
  344. package/out/_next/static/chunks/32oj0iudhp8bm.js +0 -1
  345. package/out/_next/static/chunks/33p9du6y9eegg.js +0 -1
  346. package/out/_next/static/chunks/38om-j0h0rryk.js +0 -1
  347. package/out/_next/static/chunks/38q0enmlg5q9o.js +0 -3
  348. package/out/_next/static/chunks/39pkya0_bvcaj.js +0 -1
  349. package/out/_next/static/chunks/3_1zzmx92j9c0.js +0 -1
  350. package/out/_next/static/chunks/3_earszshuz4n.js +0 -1
  351. package/out/_next/static/chunks/3ap_uxc8lx7ni.js +0 -1
  352. package/out/_next/static/chunks/3b6na8zrex8jo.js +0 -1
  353. package/out/_next/static/chunks/3c0cxt72vilyz.js +0 -1
  354. package/out/_next/static/chunks/3g78x0pdaoi_4.js +0 -1
  355. package/out/_next/static/chunks/3gjvl1p-tugfe.js +0 -4
  356. package/out/_next/static/chunks/3i8iro1gas1vx.js +0 -1
  357. package/out/_next/static/chunks/3kpqfqr99vo7z.js +0 -1
  358. package/out/_next/static/chunks/3lladf_wemm-2.js +0 -1
  359. package/out/_next/static/chunks/3n62hbywoknop.js +0 -1
  360. package/out/_next/static/chunks/3o_dmzpahx-5g.js +0 -1
  361. package/out/_next/static/chunks/3r7v7un976sn7.js +0 -1
  362. package/out/_next/static/chunks/3rl_nhqwew40w.js +0 -1
  363. package/out/_next/static/chunks/3s7hqij6xp_4e.js +0 -1
  364. package/out/_next/static/chunks/3t4ys6th6gf2w.js +0 -1
  365. package/out/_next/static/chunks/3uarw1i1ij1er.js +0 -1
  366. package/out/_next/static/chunks/3v8kgnjk27wbe.js +0 -1
  367. package/out/_next/static/chunks/3vu5y270muh-7.js +0 -1
  368. package/out/_next/static/chunks/3we1khqfexh3x.js +0 -1
  369. package/out/_next/static/chunks/3z35loj4i-id4.js +0 -1
  370. package/out/_next/static/chunks/415g3asdds1ac.js +0 -1
  371. package/out/_next/static/chunks/42lqt7ig40wk5.js +0 -1
  372. package/out/_next/static/chunks/42s6ghsurq5q7.js +0 -1
  373. package/out/_next/static/chunks/42yctcfi2rfwr.js +0 -1
  374. package/out/_next/static/chunks/43_fau1gg69eo.js +0 -1
  375. package/out/_next/static/chunks/43ywrdzg_7af8.js +0 -31
  376. package/out/_next/static/chunks/453_bg0lgesmp.js +0 -1
  377. package/out/_next/static/chunks/turbopack-1s36ieuku1ds3.js +0 -1
  378. package/out/_not-found/__next._head.txt +0 -6
  379. package/out/_not-found/__next._index.txt +0 -5
  380. package/out/_not-found/__next._not-found.txt +0 -5
  381. /package/out/_next/static/{5UjNvd7WCk97iC2cSmEGH → A1hxMz783bIWo0Q9qqV3L}/_buildManifest.js +0 -0
  382. /package/out/_next/static/{5UjNvd7WCk97iC2cSmEGH → A1hxMz783bIWo0Q9qqV3L}/_clientMiddlewareManifest.js +0 -0
  383. /package/out/_next/static/{5UjNvd7WCk97iC2cSmEGH → A1hxMz783bIWo0Q9qqV3L}/_ssgManifest.js +0 -0
@@ -0,0 +1 @@
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,67018,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}}])},79428,e=>{"use strict";var t=e.i(72003),s=e.i(56145);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)}}])},58773,e=>{"use strict";e.s(["useOpenGLOrientationForUV",()=>!1])},54523,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])},9977,e=>{"use strict";var t=e.i(32945);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()}}])},92356,e=>{"use strict";var t,s,i,r,a=e.i(72003);(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])},63833,e=>{"use strict";var t=e.i(1306);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])},11296,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)}}])},83842,e=>{"use strict";e.i(22889);var t=e.i(55206);e.s(["Mesh",()=>t.Mesh,"RegisterMesh",()=>t.RegisterMesh,"_CreationDataStorage",()=>t._CreationDataStorage,"_InstancesBatch",()=>t._InstancesBatch])},22889,e=>{"use strict";(0,e.i(55206).RegisterMesh)(),e.s([])},46717,e=>{e.v(t=>Promise.all(["static/chunks/1tgj55b305g4h.js"].map(t=>e.l(t))).then(()=>t(21774)))}]);
@@ -0,0 +1 @@
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,7361,97363,8395,50545,41085,53516,9131,e=>{"use strict";let t,i,r,s,a,n,l,o,c,h,u,d,_,p,E,m,f,g,A,T,S,M,b,I,P,R,D,x,C,O,L,y,F,v,N,k,B,U,H,W,V,z,w,G,X,Z,Y,j,q,Q,$,K,J,ee,et,ei,er,es,ea,en,el,eo,ec,eh,eu,ed,e_,ep,eE,em,ef,eg,eA,eT,eS,eM,eb,eI,eP,eR,eD,ex,eC,eO,eL,ey,eF,ev,eN,ek,eB,eU,eH,eW,eV,ez,ew,eG,eX;var eZ,eY,ej,eq,eQ=e.i(4112),e$=e.i(91679),eK=e.i(40379),eJ=e.i(42704),e0=e.i(72986),e1=e.i(56145),e3=e.i(67018),e2=e.i(27111),e6=e.i(72003),e5=e.i(26747);class e4{constructor(e,t,i){this.vectors=(0,e2.BuildArray)(8,e6.Vector3.Zero),this.center=e6.Vector3.Zero(),this.centerWorld=e6.Vector3.Zero(),this.extendSize=e6.Vector3.Zero(),this.extendSizeWorld=e6.Vector3.Zero(),this.directions=(0,e2.BuildArray)(3,e6.Vector3.Zero),this.vectorsWorld=(0,e2.BuildArray)(8,e6.Vector3.Zero),this.minimumWorld=e6.Vector3.Zero(),this.maximumWorld=e6.Vector3.Zero(),this.minimum=e6.Vector3.Zero(),this.maximum=e6.Vector3.Zero(),this._drawWrapperFront=null,this._drawWrapperBack=null,this.reConstruct(e,t,i)}reConstruct(e,t,i){let r=e.x,s=e.y,a=e.z,n=t.x,l=t.y,o=t.z,c=this.vectors;this.minimum.copyFromFloats(r,s,a),this.maximum.copyFromFloats(n,l,o),c[0].copyFromFloats(r,s,a),c[1].copyFromFloats(n,l,o),c[2].copyFromFloats(n,s,a),c[3].copyFromFloats(r,l,a),c[4].copyFromFloats(r,s,o),c[5].copyFromFloats(n,l,a),c[6].copyFromFloats(r,l,o),c[7].copyFromFloats(n,s,o),t.addToRef(e,this.center).scaleInPlace(.5),t.subtractToRef(e,this.extendSize).scaleInPlace(.5),this._worldMatrix=i||e6.Matrix.IdentityReadOnly,this._update(this._worldMatrix)}scale(e){let t=e4._TmpVector3,i=this.maximum.subtractToRef(this.minimum,t[0]),r=i.length();i.normalizeFromLength(r);let s=r*e,a=i.scaleInPlace(.5*s),n=this.center.subtractToRef(a,t[1]),l=this.center.addToRef(a,t[2]);return this.reConstruct(n,l,this._worldMatrix),this}getWorldMatrix(){return this._worldMatrix}_update(e){let t=this.minimumWorld,i=this.maximumWorld,r=this.directions,s=this.vectorsWorld,a=this.vectors;if(e.isIdentity()){t.copyFrom(this.minimum),i.copyFrom(this.maximum);for(let e=0;e<8;++e)s[e].copyFrom(a[e]);this.extendSizeWorld.copyFrom(this.extendSize),this.centerWorld.copyFrom(this.center)}else{t.setAll(Number.MAX_VALUE),i.setAll(-Number.MAX_VALUE);for(let r=0;r<8;++r){let n=s[r];e6.Vector3.TransformCoordinatesToRef(a[r],e,n),t.minimizeInPlace(n),i.maximizeInPlace(n)}i.subtractToRef(t,this.extendSizeWorld).scaleInPlace(.5),i.addToRef(t,this.centerWorld).scaleInPlace(.5)}e6.Vector3.FromArrayToRef(e.m,0,r[0]),e6.Vector3.FromArrayToRef(e.m,4,r[1]),e6.Vector3.FromArrayToRef(e.m,8,r[2]),this._worldMatrix=e}isInFrustum(e){return e4.IsInFrustum(this.vectorsWorld,e)}isCompletelyInFrustum(e){return e4.IsCompletelyInFrustum(this.vectorsWorld,e)}intersectsPoint(e){let t=this.minimumWorld,i=this.maximumWorld,r=t.x,s=t.y,a=t.z,n=i.x,l=i.y,o=i.z,c=e.x,h=e.y,u=e.z,d=-e5.Epsilon;return!(n-c<d)&&!(d>c-r)&&!(l-h<d)&&!(d>h-s)&&!(o-u<d)&&!(d>u-a)}intersectsSphere(e){return e4.IntersectsSphere(this.minimumWorld,this.maximumWorld,e.centerWorld,e.radiusWorld)}intersectsMinMax(e,t){let i=this.minimumWorld,r=this.maximumWorld,s=i.x,a=i.y,n=i.z,l=r.x,o=r.y,c=r.z,h=e.x,u=e.y,d=e.z,_=t.x,p=t.y,E=t.z;return!(l<h)&&!(s>_)&&!(o<u)&&!(a>p)&&!(c<d)&&!(n>E)}dispose(){this._drawWrapperFront?.dispose(),this._drawWrapperBack?.dispose()}static Intersects(e,t){return e.intersectsMinMax(t.minimumWorld,t.maximumWorld)}static IntersectsSphere(e,t,i,r){let s=e4._TmpVector3[0];return e6.Vector3.ClampToRef(i,e,t,s),e6.Vector3.DistanceSquared(i,s)<=r*r}static IsCompletelyInFrustum(e,t){for(let i=0;i<6;++i){let r=t[i];for(let t=0;t<8;++t)if(0>r.dotCoordinate(e[t]))return!1}return!0}static IsInFrustum(e,t){for(let i=0;i<6;++i){let r=!0,s=t[i];for(let t=0;t<8;++t)if(s.dotCoordinate(e[t])>=0){r=!1;break}if(r)return!1}return!0}}e4._TmpVector3=(0,e2.BuildArray)(3,e6.Vector3.Zero);class e7{constructor(e,t,i){this.center=e6.Vector3.Zero(),this.centerWorld=e6.Vector3.Zero(),this.minimum=e6.Vector3.Zero(),this.maximum=e6.Vector3.Zero(),this.reConstruct(e,t,i)}reConstruct(e,t,i){this.minimum.copyFrom(e),this.maximum.copyFrom(t);let r=e6.Vector3.Distance(e,t);t.addToRef(e,this.center).scaleInPlace(.5),this.radius=.5*r,this._update(i||e6.Matrix.IdentityReadOnly)}scale(e){let t=this.radius*e,i=e7._TmpVector3,r=i[0].setAll(t),s=this.center.subtractToRef(r,i[1]),a=this.center.addToRef(r,i[2]);return this.reConstruct(s,a,this._worldMatrix),this}getWorldMatrix(){return this._worldMatrix}_update(e){if(e.isIdentity())this.centerWorld.copyFrom(this.center),this.radiusWorld=this.radius;else{e6.Vector3.TransformCoordinatesToRef(this.center,e,this.centerWorld);let t=e7._TmpVector3[0];e6.Vector3.TransformNormalFromFloatsToRef(1,1,1,e,t),this.radiusWorld=Math.max(Math.abs(t.x),Math.abs(t.y),Math.abs(t.z))*this.radius}}isInFrustum(e){let t=this.centerWorld,i=this.radiusWorld;for(let r=0;r<6;r++)if(e[r].dotCoordinate(t)<=-i)return!1;return!0}isCenterInFrustum(e){let t=this.centerWorld;for(let i=0;i<6;i++)if(0>e[i].dotCoordinate(t))return!1;return!0}intersectsPoint(e){let t=e6.Vector3.DistanceSquared(this.centerWorld,e);return!(this.radiusWorld*this.radiusWorld<t)}static Intersects(e,t){let i=e6.Vector3.DistanceSquared(e.centerWorld,t.centerWorld),r=e.radiusWorld+t.radiusWorld;return!(r*r<i)}static CreateFromCenterAndRadius(e,t,i){this._TmpVector3[0].copyFrom(e),this._TmpVector3[1].copyFromFloats(0,0,t),this._TmpVector3[2].copyFrom(e),this._TmpVector3[0].addInPlace(this._TmpVector3[1]),this._TmpVector3[2].subtractInPlace(this._TmpVector3[1]);let r=new e7(this._TmpVector3[0],this._TmpVector3[2]);return i?r._worldMatrix=i:r._worldMatrix=e6.Matrix.Identity(),r}}e7._TmpVector3=(0,e2.BuildArray)(3,e6.Vector3.Zero);let e8={min:0,max:0},e9={min:0,max:0},te=(e,t,i)=>{let r=e6.Vector3.Dot(t.centerWorld,e),s=Math.abs(e6.Vector3.Dot(t.directions[0],e))*t.extendSize.x+Math.abs(e6.Vector3.Dot(t.directions[1],e))*t.extendSize.y+Math.abs(e6.Vector3.Dot(t.directions[2],e))*t.extendSize.z;i.min=r-s,i.max=r+s},tt=(e,t,i)=>(te(e,t,e8),te(e,i,e9),!(e8.min>e9.max||e9.min>e8.max));class ti{constructor(e,t,i){this._isLocked=!1,this.boundingBox=new e4(e,t,i),this.boundingSphere=new e7(e,t,i)}reConstruct(e,t,i){this.boundingBox.reConstruct(e,t,i),this.boundingSphere.reConstruct(e,t,i)}get minimum(){return this.boundingBox.minimum}get maximum(){return this.boundingBox.maximum}get isLocked(){return this._isLocked}set isLocked(e){this._isLocked=e}update(e){this._isLocked||(this.boundingBox._update(e),this.boundingSphere._update(e))}centerOn(e,t){let i=ti._TmpVector3[0].copyFrom(e).subtractInPlace(t),r=ti._TmpVector3[1].copyFrom(e).addInPlace(t);return this.boundingBox.reConstruct(i,r,this.boundingBox.getWorldMatrix()),this.boundingSphere.reConstruct(i,r,this.boundingBox.getWorldMatrix()),this}encapsulate(e){let t=e6.Vector3.Minimize(this.minimum,e),i=e6.Vector3.Maximize(this.maximum,e);return this.reConstruct(t,i,this.boundingBox.getWorldMatrix()),this}encapsulateBoundingInfo(e){let t=e6.TmpVectors.Matrix[0];this.boundingBox.getWorldMatrix().invertToRef(t);let i=e6.TmpVectors.Vector3[0];return e6.Vector3.TransformCoordinatesToRef(e.boundingBox.minimumWorld,t,i),this.encapsulate(i),e6.Vector3.TransformCoordinatesToRef(e.boundingBox.maximumWorld,t,i),this.encapsulate(i),this}scale(e){return this.boundingBox.scale(e),this.boundingSphere.scale(e),this}isInFrustum(e,t=0){return!!((2===t||3===t)&&this.boundingSphere.isCenterInFrustum(e))||!!this.boundingSphere.isInFrustum(e)&&(1===t||3===t||this.boundingBox.isInFrustum(e))}get diagonalLength(){let e=this.boundingBox;return e.maximumWorld.subtractToRef(e.minimumWorld,ti._TmpVector3[0]).length()}isCompletelyInFrustum(e){return this.boundingBox.isCompletelyInFrustum(e)}_checkCollision(e){return e._canDoCollision(this.boundingSphere.centerWorld,this.boundingSphere.radiusWorld,this.boundingBox.minimumWorld,this.boundingBox.maximumWorld)}intersectsPoint(e){return!!this.boundingSphere.centerWorld&&!!this.boundingSphere.intersectsPoint(e)&&!!this.boundingBox.intersectsPoint(e)}intersects(e,t){if(!e7.Intersects(this.boundingSphere,e.boundingSphere)||!e4.Intersects(this.boundingBox,e.boundingBox))return!1;if(!t)return!0;let i=this.boundingBox,r=e.boundingBox;return!!tt(i.directions[0],i,r)&&!!tt(i.directions[1],i,r)&&!!tt(i.directions[2],i,r)&&!!tt(r.directions[0],i,r)&&!!tt(r.directions[1],i,r)&&!!tt(r.directions[2],i,r)&&!!tt(e6.Vector3.Cross(i.directions[0],r.directions[0]),i,r)&&!!tt(e6.Vector3.Cross(i.directions[0],r.directions[1]),i,r)&&!!tt(e6.Vector3.Cross(i.directions[0],r.directions[2]),i,r)&&!!tt(e6.Vector3.Cross(i.directions[1],r.directions[0]),i,r)&&!!tt(e6.Vector3.Cross(i.directions[1],r.directions[1]),i,r)&&!!tt(e6.Vector3.Cross(i.directions[1],r.directions[2]),i,r)&&!!tt(e6.Vector3.Cross(i.directions[2],r.directions[0]),i,r)&&!!tt(e6.Vector3.Cross(i.directions[2],r.directions[1]),i,r)&&!!tt(e6.Vector3.Cross(i.directions[2],r.directions[2]),i,r)&&!0}}ti._TmpVector3=(0,e2.BuildArray)(2,e6.Vector3.Zero),e.s(["BoundingInfo",0,ti],97363);let tr=(r=[],eZ=class{static extractMinAndMaxIndexed(e,t,i,r,s,a){for(let n=i;n<i+r;n++){let i=3*t[n],r=e[i],l=e[i+1],o=e[i+2];s.minimizeInPlaceFromFloats(r,l,o),a.maximizeInPlaceFromFloats(r,l,o)}}static extractMinAndMax(e,t,i,r,s,a){for(let n=t,l=t*r;n<t+i;n++,l+=r){let t=e[l],i=e[l+1],r=e[l+2];s.minimizeInPlaceFromFloats(t,i,r),a.maximizeInPlaceFromFloats(t,i,r)}}},s="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0,t=[e$.nativeOverride.filter((...e)=>!Array.isArray(e[0])&&!Array.isArray(e[1]))],i=[e$.nativeOverride.filter((...e)=>!Array.isArray(e[0]))],(0,eQ.__esDecorate)(eZ,null,t,{kind:"method",name:"extractMinAndMaxIndexed",static:!0,private:!1,access:{has:e=>"extractMinAndMaxIndexed"in e,get:e=>e.extractMinAndMaxIndexed},metadata:s},null,r),(0,eQ.__esDecorate)(eZ,null,i,{kind:"method",name:"extractMinAndMax",static:!0,private:!1,access:{has:e=>"extractMinAndMax"in e,get:e=>e.extractMinAndMax},metadata:s},null,r),s&&Object.defineProperty(eZ,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:s}),(0,eQ.__runInitializers)(eZ,r),eZ);function ts(e,t,i,r,s=null){let a=new e6.Vector3(Number.MAX_VALUE,Number.MAX_VALUE,Number.MAX_VALUE),n=new e6.Vector3(-Number.MAX_VALUE,-Number.MAX_VALUE,-Number.MAX_VALUE);return tr.extractMinAndMaxIndexed(e,t,i,r,a,n),s&&(a.x-=a.x*s.x+s.y,a.y-=a.y*s.x+s.y,a.z-=a.z*s.x+s.y,n.x+=n.x*s.x+s.y,n.y+=n.y*s.x+s.y,n.z+=n.z*s.x+s.y),{minimum:a,maximum:n}}e.s(["extractMinAndMax",0,function(e,t,i,r=null,s){let a=new e6.Vector3(Number.MAX_VALUE,Number.MAX_VALUE,Number.MAX_VALUE),n=new e6.Vector3(-Number.MAX_VALUE,-Number.MAX_VALUE,-Number.MAX_VALUE);return s||(s=3),tr.extractMinAndMax(e,t,i,s,a,n),r&&(a.x-=a.x*r.x+r.y,a.y-=a.y*r.x+r.y,a.z-=a.z*r.x+r.y,n.x+=n.x*r.x+r.y,n.y+=n.y*r.x+r.y,n.z+=n.z*r.x+r.y),{minimum:a,maximum:n}},"extractMinAndMaxIndexed",0,ts],8395);var ta=e.i(9977),tn=e.i(43880);class tl{get materialDefines(){let e=this._mainDrawWrapperOverride?this._mainDrawWrapperOverride.defines:this._getDrawWrapper()?.defines;return"string"==typeof e?null:e}set materialDefines(e){(this._mainDrawWrapperOverride??this._getDrawWrapper(void 0,!0)).defines=e}_getDrawWrapper(e,t=!1){e=e??this._engine.currentRenderPassId;let i=this._drawWrappers[e];return!i&&t&&(this._drawWrappers[e]=i=new ta.DrawWrapper(this._mesh.getScene().getEngine())),i}_removeDrawWrapper(e,t=!0,i=!1){t&&this._drawWrappers[e]?.dispose(i),this._drawWrappers[e]=void 0}get effect(){return this._mainDrawWrapperOverride?this._mainDrawWrapperOverride.effect:this._getDrawWrapper()?.effect??null}get _drawWrapper(){return this._mainDrawWrapperOverride??this._getDrawWrapper(void 0,!0)}get _drawWrapperOverride(){return this._mainDrawWrapperOverride}_setMainDrawWrapperOverride(e){this._mainDrawWrapperOverride=e}setEffect(e,t=null,i,r=!0){let s=this._drawWrapper;s.setEffect(e,t,r),void 0!==i&&(s.materialContext=i),e||(s.defines=null,s.materialContext=void 0)}resetDrawCache(e,t=!1){if(this._drawWrappers)if(void 0!==e)return void this._removeDrawWrapper(e,!0,t);else for(let e of this._drawWrappers)e?.dispose(t);this._drawWrappers=[]}static AddToMesh(e,t,i,r,s,a,n,l=!0){return new tl(e,t,i,r,s,a,n,l)}constructor(e,t,i,r,s,a,n,l=!0,o=!0){this.materialIndex=e,this.verticesStart=t,this.verticesCount=i,this.indexStart=r,this.indexCount=s,this._mainDrawWrapperOverride=null,this._linesIndexCount=0,this._linesIndexBuffer=null,this._lastColliderWorldVertices=null,this._lastColliderTransformMatrix=null,this._wasDispatched=!1,this._renderId=0,this._alphaIndex=0,this._distanceToCamera=0,this._currentMaterial=null,this._mesh=a,this._renderingMesh=n||a,o&&a.subMeshes.push(this),this._engine=this._mesh.getScene().getEngine(),this.resetDrawCache(),this._trianglePlanes=[],this._id=a.subMeshes.length-1,l&&(this.refreshBoundingInfo(),a.computeWorldMatrix(!0))}get IsGlobal(){return 0===this.verticesStart&&this.verticesCount===this._mesh.getTotalVertices()&&0===this.indexStart&&this.indexCount===this._mesh.getTotalIndices()}getBoundingInfo(){return this.IsGlobal||this._mesh.hasThinInstances?this._mesh.getBoundingInfo():this._boundingInfo}setBoundingInfo(e){return this._boundingInfo=e,this}getMesh(){return this._mesh}getRenderingMesh(){return this._renderingMesh}getReplacementMesh(){return this._mesh._internalAbstractMeshDataInfo._actAsRegularMesh?this._mesh:null}getEffectiveMesh(){return(this._mesh._internalAbstractMeshDataInfo._actAsRegularMesh?this._mesh:null)||this._renderingMesh}getMaterial(e=!0){let t=this._renderingMesh.getMaterialForRenderPass(this._engine.currentRenderPassId)??this._renderingMesh.material;if(!t)return e&&this._mesh.getScene()._hasDefaultMaterial?this._mesh.getScene().defaultMaterial:null;if(this._isMultiMaterial(t)){let e=t.getSubMaterial(this.materialIndex);return this._currentMaterial!==e&&(this._currentMaterial=e,this.resetDrawCache()),e}return t}_isMultiMaterial(e){return void 0!==e.getSubMaterial}refreshBoundingInfo(e=null){let t;if(this._lastColliderWorldVertices=null,this.IsGlobal||!this._renderingMesh||!this._renderingMesh.geometry)return this;if(e||(e=this._renderingMesh.getVerticesData(e1.VertexBuffer.PositionKind)),!e)return this._boundingInfo=this._mesh.getBoundingInfo(),this;let i=this._renderingMesh.getIndices();if(0===this.indexStart&&this.indexCount===i.length){let e=this._renderingMesh.getBoundingInfo();t={minimum:e.minimum.clone(),maximum:e.maximum.clone()}}else t=ts(e,i,this.indexStart,this.indexCount,this._renderingMesh.geometry.boundingBias);return this._boundingInfo?this._boundingInfo.reConstruct(t.minimum,t.maximum):this._boundingInfo=new ti(t.minimum,t.maximum),this}_checkCollision(e){return this.getBoundingInfo()._checkCollision(e)}updateBoundingInfo(e){let t=this.getBoundingInfo();return t||(this.refreshBoundingInfo(),t=this.getBoundingInfo()),t&&t.update(e),this}isInFrustum(e){let t=this.getBoundingInfo();return!!t&&t.isInFrustum(e,this._mesh.cullingStrategy)}isCompletelyInFrustum(e){let t=this.getBoundingInfo();return!!t&&t.isCompletelyInFrustum(e)}render(e){return this._renderingMesh.render(this,e,this._mesh._internalAbstractMeshDataInfo._actAsRegularMesh?this._mesh:void 0),this}_getLinesIndexBuffer(e,t){if(!this._linesIndexBuffer){let i=6*Math.floor(this.indexCount/3),r=this.verticesStart+this.verticesCount>65535?new Uint32Array(i):new Uint16Array(i),s=0;if(0===e.length)for(let e=this.indexStart;e<this.indexStart+this.indexCount;e+=3)r[s++]=e,r[s++]=e+1,r[s++]=e+1,r[s++]=e+2,r[s++]=e+2,r[s++]=e;else for(let t=this.indexStart;t<this.indexStart+this.indexCount;t+=3)r[s++]=e[t],r[s++]=e[t+1],r[s++]=e[t+1],r[s++]=e[t+2],r[s++]=e[t+2],r[s++]=e[t];this._linesIndexBuffer=t.createIndexBuffer(r),this._linesIndexCount=r.length}return this._linesIndexBuffer}canIntersects(e){let t=this.getBoundingInfo();return!!t&&e.intersectsBox(t.boundingBox)}intersects(e,t,i,r,s){let a=this.getMaterial();if(!a)return null;let n=3,l=!1;switch(a.fillMode){case 3:case 5:case 6:case 8:return null;case 7:n=1,l=!0}return 4===a.fillMode?i.length?this._intersectLines(e,t,i,this._mesh.intersectionThreshold,r):this._intersectUnIndexedLines(e,t,i,this._mesh.intersectionThreshold,r):!i.length&&this._mesh._unIndexed?this._intersectUnIndexedTriangles(e,t,i,r,s):this._intersectTriangles(e,t,i,n,l,r,s)}_intersectLines(e,t,i,r,s){let a=null;for(let n=this.indexStart;n<this.indexStart+this.indexCount;n+=2){let l=t[i[n]],o=t[i[n+1]],c=e.intersectionSegment(l,o,r);if(!(c<0)&&(s||!a||c<a.distance)&&((a=new e3.IntersectionInfo(null,null,c)).faceId=n/2,s))break}return a}_intersectUnIndexedLines(e,t,i,r,s){let a=null;for(let i=this.verticesStart;i<this.verticesStart+this.verticesCount;i+=2){let n=t[i],l=t[i+1],o=e.intersectionSegment(n,l,r);if(!(o<0)&&(s||!a||o<a.distance)&&((a=new e3.IntersectionInfo(null,null,o)).faceId=i/2,s))break}return a}_intersectTriangles(e,t,i,r,s,a,n){let l=null,o=-1;for(let c=this.indexStart;c<this.indexStart+this.indexCount-(3-r);c+=r){o++;let r=i[c],h=i[c+1],u=i[c+2];if(s&&0xffffffff===u){c+=2;continue}let d=t[r],_=t[h],p=t[u];if(!d||!_||!p||n&&!n(d,_,p,e,r,h,u))continue;let E=e.intersectsTriangle(d,_,p);if(E){if(E.distance<0)continue;if((a||!l||E.distance<l.distance)&&((l=E).faceId=o,a))break}}return l}_intersectUnIndexedTriangles(e,t,i,r,s){let a=null;for(let i=this.verticesStart;i<this.verticesStart+this.verticesCount;i+=3){let n=t[i],l=t[i+1],o=t[i+2];if(s&&!s(n,l,o,e,-1,-1,-1))continue;let c=e.intersectsTriangle(n,l,o);if(c){if(c.distance<0)continue;if((r||!a||c.distance<a.distance)&&((a=c).faceId=i/3,r))break}}return a}_rebuild(){this._linesIndexBuffer&&(this._linesIndexBuffer=null)}clone(e,t){let i=new tl(this.materialIndex,this.verticesStart,this.verticesCount,this.indexStart,this.indexCount,e,t,!1);if(!this.IsGlobal){let e=this.getBoundingInfo();if(!e)return i;i._boundingInfo=new ti(e.minimum,e.maximum)}return i}dispose(e=!1){this._linesIndexBuffer&&(this._mesh.getScene().getEngine()._releaseBuffer(this._linesIndexBuffer),this._linesIndexBuffer=null);let t=this._mesh.subMeshes.indexOf(this);this._mesh.subMeshes.splice(t,1),this.resetDrawCache(void 0,e)}getClassName(){return"SubMesh"}static CreateFromIndices(e,t,i,r,s,a=!0){let n=Number.MAX_VALUE,l=-Number.MAX_VALUE,o=(s||r).getIndices();for(let e=t;e<t+i;e++){let t=o[e];t<n&&(n=t),t>l&&(l=t)}return new tl(e,n,l-n+1,t,i,r,s,a)}}(eq=tl.prototype).projectToRef??(eq.projectToRef=(0,tn._MissingSideEffect)("SubMesh","projectToRef")),e.s(["SubMesh",0,tl],50545);var to=e.i(81127),tc=e.i(85789),th=e.i(1306),tu=e.i(22832);let td=(f=[],eY=class{constructor(){this._func=(0,eQ.__runInitializers)(this,f),this.reset()}reset(){this.enabled=!1,this.mask=255,this.funcRef=1,this.funcMask=255,this.func=519,this.opStencilFail=7680,this.opDepthFail=7680,this.opStencilDepthPass=7681,this.backFunc=519,this.backOpStencilFail=7680,this.backOpDepthFail=7680,this.backOpStencilDepthPass=7681}get func(){return this._func}set func(e){this._func=e}get backFunc(){return this._backFunc}set backFunc(e){this._backFunc=e}get funcRef(){return this._funcRef}set funcRef(e){this._funcRef=e}get funcMask(){return this._funcMask}set funcMask(e){this._funcMask=e}get opStencilFail(){return this._opStencilFail}set opStencilFail(e){this._opStencilFail=e}get opDepthFail(){return this._opDepthFail}set opDepthFail(e){this._opDepthFail=e}get opStencilDepthPass(){return this._opStencilDepthPass}set opStencilDepthPass(e){this._opStencilDepthPass=e}get backOpStencilFail(){return this._backOpStencilFail}set backOpStencilFail(e){this._backOpStencilFail=e}get backOpDepthFail(){return this._backOpDepthFail}set backOpDepthFail(e){this._backOpDepthFail=e}get backOpStencilDepthPass(){return this._backOpStencilDepthPass}set backOpStencilDepthPass(e){this._backOpStencilDepthPass=e}get mask(){return this._mask}set mask(e){this._mask=e}get enabled(){return this._enabled}set enabled(e){this._enabled=e}getClassName(){return"MaterialStencilState"}copyTo(e){tu.SerializationHelper.Clone(()=>e,this)}serialize(){return tu.SerializationHelper.Serialize(this)}parse(e,t,i){tu.SerializationHelper.Parse(()=>this,e,t,i)}},g="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0,a=[(0,e$.serialize)()],n=[(0,e$.serialize)()],l=[(0,e$.serialize)()],o=[(0,e$.serialize)()],c=[(0,e$.serialize)()],h=[(0,e$.serialize)()],u=[(0,e$.serialize)()],d=[(0,e$.serialize)()],_=[(0,e$.serialize)()],p=[(0,e$.serialize)()],E=[(0,e$.serialize)()],m=[(0,e$.serialize)()],(0,eQ.__esDecorate)(eY,null,a,{kind:"getter",name:"func",static:!1,private:!1,access:{has:e=>"func"in e,get:e=>e.func},metadata:g},null,f),(0,eQ.__esDecorate)(eY,null,n,{kind:"getter",name:"backFunc",static:!1,private:!1,access:{has:e=>"backFunc"in e,get:e=>e.backFunc},metadata:g},null,f),(0,eQ.__esDecorate)(eY,null,l,{kind:"getter",name:"funcRef",static:!1,private:!1,access:{has:e=>"funcRef"in e,get:e=>e.funcRef},metadata:g},null,f),(0,eQ.__esDecorate)(eY,null,o,{kind:"getter",name:"funcMask",static:!1,private:!1,access:{has:e=>"funcMask"in e,get:e=>e.funcMask},metadata:g},null,f),(0,eQ.__esDecorate)(eY,null,c,{kind:"getter",name:"opStencilFail",static:!1,private:!1,access:{has:e=>"opStencilFail"in e,get:e=>e.opStencilFail},metadata:g},null,f),(0,eQ.__esDecorate)(eY,null,h,{kind:"getter",name:"opDepthFail",static:!1,private:!1,access:{has:e=>"opDepthFail"in e,get:e=>e.opDepthFail},metadata:g},null,f),(0,eQ.__esDecorate)(eY,null,u,{kind:"getter",name:"opStencilDepthPass",static:!1,private:!1,access:{has:e=>"opStencilDepthPass"in e,get:e=>e.opStencilDepthPass},metadata:g},null,f),(0,eQ.__esDecorate)(eY,null,d,{kind:"getter",name:"backOpStencilFail",static:!1,private:!1,access:{has:e=>"backOpStencilFail"in e,get:e=>e.backOpStencilFail},metadata:g},null,f),(0,eQ.__esDecorate)(eY,null,_,{kind:"getter",name:"backOpDepthFail",static:!1,private:!1,access:{has:e=>"backOpDepthFail"in e,get:e=>e.backOpDepthFail},metadata:g},null,f),(0,eQ.__esDecorate)(eY,null,p,{kind:"getter",name:"backOpStencilDepthPass",static:!1,private:!1,access:{has:e=>"backOpStencilDepthPass"in e,get:e=>e.backOpStencilDepthPass},metadata:g},null,f),(0,eQ.__esDecorate)(eY,null,E,{kind:"getter",name:"mask",static:!1,private:!1,access:{has:e=>"mask"in e,get:e=>e.mask},metadata:g},null,f),(0,eQ.__esDecorate)(eY,null,m,{kind:"getter",name:"enabled",static:!1,private:!1,access:{has:e=>"enabled"in e,get:e=>e.enabled},metadata:g},null,f),g&&Object.defineProperty(eY,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:g}),eY);var t_=e.i(26801),tp=e.i(17972);function tE(e,t,i){let r=!1,s=!!(e.clipPlane??t.clipPlane),a=!!(e.clipPlane2??t.clipPlane2),n=!!(e.clipPlane3??t.clipPlane3),l=!!(e.clipPlane4??t.clipPlane4),o=!!(e.clipPlane5??t.clipPlane5),c=!!(e.clipPlane6??t.clipPlane6);return i.CLIPPLANE!==s&&(i.CLIPPLANE=s,r=!0),i.CLIPPLANE2!==a&&(i.CLIPPLANE2=a,r=!0),i.CLIPPLANE3!==n&&(i.CLIPPLANE3=n,r=!0),i.CLIPPLANE4!==l&&(i.CLIPPLANE4=l,r=!0),i.CLIPPLANE5!==o&&(i.CLIPPLANE5=o,r=!0),i.CLIPPLANE6!==c&&(i.CLIPPLANE6=c,r=!0),r}function tm(e,t,i){if(i){let r=tp.FloatingOriginCurrentScene.getScene()?.floatingOriginOffset||e6.Vector3.ZeroReadOnly;e.setFloat4(t,i.normal.x,i.normal.y,i.normal.z,i.d+e6.Vector3.Dot(i.normal,r))}}e.s(["AddClipPlaneUniforms",0,function(e){-1===e.indexOf("vClipPlane")&&e.push("vClipPlane"),-1===e.indexOf("vClipPlane2")&&e.push("vClipPlane2"),-1===e.indexOf("vClipPlane3")&&e.push("vClipPlane3"),-1===e.indexOf("vClipPlane4")&&e.push("vClipPlane4"),-1===e.indexOf("vClipPlane5")&&e.push("vClipPlane5"),-1===e.indexOf("vClipPlane6")&&e.push("vClipPlane6")},"BindClipPlane",0,function(e,t,i){let r=t.clipPlane??i.clipPlane;tm(e,"vClipPlane",r),tm(e,"vClipPlane2",r=t.clipPlane2??i.clipPlane2),tm(e,"vClipPlane3",r=t.clipPlane3??i.clipPlane3),tm(e,"vClipPlane4",r=t.clipPlane4??i.clipPlane4),tm(e,"vClipPlane5",r=t.clipPlane5??i.clipPlane5),tm(e,"vClipPlane6",r=t.clipPlane6??i.clipPlane6)},"PrepareDefinesForClipPlanes",0,tE,"PrepareStringDefinesForClipPlanes",0,function(e,t,i){let r=!!(e.clipPlane??t.clipPlane),s=!!(e.clipPlane2??t.clipPlane2),a=!!(e.clipPlane3??t.clipPlane3),n=!!(e.clipPlane4??t.clipPlane4),l=!!(e.clipPlane5??t.clipPlane5),o=!!(e.clipPlane6??t.clipPlane6);r&&i.push("#define CLIPPLANE"),s&&i.push("#define CLIPPLANE2"),a&&i.push("#define CLIPPLANE3"),n&&i.push("#define CLIPPLANE4"),l&&i.push("#define CLIPPLANE5"),o&&i.push("#define CLIPPLANE6")}],41085);var tf=e.i(99429);class tg{static get DiffuseTextureEnabled(){return this._DiffuseTextureEnabled}static set DiffuseTextureEnabled(e){this._DiffuseTextureEnabled!==e&&(this._DiffuseTextureEnabled=e,tf.AbstractEngine.MarkAllMaterialsAsDirty(1))}static get BaseWeightTextureEnabled(){return this._BaseWeightTextureEnabled}static set BaseWeightTextureEnabled(e){this._BaseWeightTextureEnabled!==e&&(this._BaseWeightTextureEnabled=e,tf.AbstractEngine.MarkAllMaterialsAsDirty(1))}static get BaseDiffuseRoughnessTextureEnabled(){return this._BaseDiffuseRoughnessTextureEnabled}static set BaseDiffuseRoughnessTextureEnabled(e){this._BaseDiffuseRoughnessTextureEnabled!==e&&(this._BaseDiffuseRoughnessTextureEnabled=e,tf.AbstractEngine.MarkAllMaterialsAsDirty(1))}static get DetailTextureEnabled(){return this._DetailTextureEnabled}static set DetailTextureEnabled(e){this._DetailTextureEnabled!==e&&(this._DetailTextureEnabled=e,tf.AbstractEngine.MarkAllMaterialsAsDirty(1))}static get DecalMapEnabled(){return this._DecalMapEnabled}static set DecalMapEnabled(e){this._DecalMapEnabled!==e&&(this._DecalMapEnabled=e,tf.AbstractEngine.MarkAllMaterialsAsDirty(1))}static get AmbientTextureEnabled(){return this._AmbientTextureEnabled}static set AmbientTextureEnabled(e){this._AmbientTextureEnabled!==e&&(this._AmbientTextureEnabled=e,tf.AbstractEngine.MarkAllMaterialsAsDirty(1))}static get OpacityTextureEnabled(){return this._OpacityTextureEnabled}static set OpacityTextureEnabled(e){this._OpacityTextureEnabled!==e&&(this._OpacityTextureEnabled=e,tf.AbstractEngine.MarkAllMaterialsAsDirty(1))}static get ReflectionTextureEnabled(){return this._ReflectionTextureEnabled}static set ReflectionTextureEnabled(e){this._ReflectionTextureEnabled!==e&&(this._ReflectionTextureEnabled=e,tf.AbstractEngine.MarkAllMaterialsAsDirty(1))}static get EmissiveTextureEnabled(){return this._EmissiveTextureEnabled}static set EmissiveTextureEnabled(e){this._EmissiveTextureEnabled!==e&&(this._EmissiveTextureEnabled=e,tf.AbstractEngine.MarkAllMaterialsAsDirty(1))}static get SpecularTextureEnabled(){return this._SpecularTextureEnabled}static set SpecularTextureEnabled(e){this._SpecularTextureEnabled!==e&&(this._SpecularTextureEnabled=e,tf.AbstractEngine.MarkAllMaterialsAsDirty(1))}static get BumpTextureEnabled(){return this._BumpTextureEnabled}static set BumpTextureEnabled(e){this._BumpTextureEnabled!==e&&(this._BumpTextureEnabled=e,tf.AbstractEngine.MarkAllMaterialsAsDirty(1))}static get LightmapTextureEnabled(){return this._LightmapTextureEnabled}static set LightmapTextureEnabled(e){this._LightmapTextureEnabled!==e&&(this._LightmapTextureEnabled=e,tf.AbstractEngine.MarkAllMaterialsAsDirty(1))}static get RefractionTextureEnabled(){return this._RefractionTextureEnabled}static set RefractionTextureEnabled(e){this._RefractionTextureEnabled!==e&&(this._RefractionTextureEnabled=e,tf.AbstractEngine.MarkAllMaterialsAsDirty(1))}static get ColorGradingTextureEnabled(){return this._ColorGradingTextureEnabled}static set ColorGradingTextureEnabled(e){this._ColorGradingTextureEnabled!==e&&(this._ColorGradingTextureEnabled=e,tf.AbstractEngine.MarkAllMaterialsAsDirty(1))}static get FresnelEnabled(){return this._FresnelEnabled}static set FresnelEnabled(e){this._FresnelEnabled!==e&&(this._FresnelEnabled=e,tf.AbstractEngine.MarkAllMaterialsAsDirty(4))}static get ClearCoatTextureEnabled(){return this._ClearCoatTextureEnabled}static set ClearCoatTextureEnabled(e){this._ClearCoatTextureEnabled!==e&&(this._ClearCoatTextureEnabled=e,tf.AbstractEngine.MarkAllMaterialsAsDirty(1))}static get ClearCoatBumpTextureEnabled(){return this._ClearCoatBumpTextureEnabled}static set ClearCoatBumpTextureEnabled(e){this._ClearCoatBumpTextureEnabled!==e&&(this._ClearCoatBumpTextureEnabled=e,tf.AbstractEngine.MarkAllMaterialsAsDirty(1))}static get ClearCoatTintTextureEnabled(){return this._ClearCoatTintTextureEnabled}static set ClearCoatTintTextureEnabled(e){this._ClearCoatTintTextureEnabled!==e&&(this._ClearCoatTintTextureEnabled=e,tf.AbstractEngine.MarkAllMaterialsAsDirty(1))}static get SheenTextureEnabled(){return this._SheenTextureEnabled}static set SheenTextureEnabled(e){this._SheenTextureEnabled!==e&&(this._SheenTextureEnabled=e,tf.AbstractEngine.MarkAllMaterialsAsDirty(1))}static get AnisotropicTextureEnabled(){return this._AnisotropicTextureEnabled}static set AnisotropicTextureEnabled(e){this._AnisotropicTextureEnabled!==e&&(this._AnisotropicTextureEnabled=e,tf.AbstractEngine.MarkAllMaterialsAsDirty(1))}static get ThicknessTextureEnabled(){return this._ThicknessTextureEnabled}static set ThicknessTextureEnabled(e){this._ThicknessTextureEnabled!==e&&(this._ThicknessTextureEnabled=e,tf.AbstractEngine.MarkAllMaterialsAsDirty(1))}static get RefractionIntensityTextureEnabled(){return this._ThicknessTextureEnabled}static set RefractionIntensityTextureEnabled(e){this._RefractionIntensityTextureEnabled!==e&&(this._RefractionIntensityTextureEnabled=e,tf.AbstractEngine.MarkAllMaterialsAsDirty(1))}static get TranslucencyIntensityTextureEnabled(){return this._TranslucencyIntensityTextureEnabled}static set TranslucencyIntensityTextureEnabled(e){this._TranslucencyIntensityTextureEnabled!==e&&(this._TranslucencyIntensityTextureEnabled=e,tf.AbstractEngine.MarkAllMaterialsAsDirty(1))}static get TranslucencyColorTextureEnabled(){return this._TranslucencyColorTextureEnabled}static set TranslucencyColorTextureEnabled(e){this._TranslucencyColorTextureEnabled!==e&&(this._TranslucencyColorTextureEnabled=e,tf.AbstractEngine.MarkAllMaterialsAsDirty(1))}static get IridescenceTextureEnabled(){return this._IridescenceTextureEnabled}static set IridescenceTextureEnabled(e){this._IridescenceTextureEnabled!==e&&(this._IridescenceTextureEnabled=e,tf.AbstractEngine.MarkAllMaterialsAsDirty(1))}}tg._DiffuseTextureEnabled=!0,tg._BaseWeightTextureEnabled=!0,tg._BaseDiffuseRoughnessTextureEnabled=!0,tg._DetailTextureEnabled=!0,tg._DecalMapEnabled=!0,tg._AmbientTextureEnabled=!0,tg._OpacityTextureEnabled=!0,tg._ReflectionTextureEnabled=!0,tg._EmissiveTextureEnabled=!0,tg._SpecularTextureEnabled=!0,tg._BumpTextureEnabled=!0,tg._LightmapTextureEnabled=!0,tg._RefractionTextureEnabled=!0,tg._ColorGradingTextureEnabled=!0,tg._FresnelEnabled=!0,tg._ClearCoatTextureEnabled=!0,tg._ClearCoatBumpTextureEnabled=!0,tg._ClearCoatTintTextureEnabled=!0,tg._SheenTextureEnabled=!0,tg._AnisotropicTextureEnabled=!0,tg._ThicknessTextureEnabled=!0,tg._RefractionIntensityTextureEnabled=!0,tg._TranslucencyIntensityTextureEnabled=!0,tg._TranslucencyColorTextureEnabled=!0,tg._IridescenceTextureEnabled=!0,e.s(["MaterialFlags",0,tg],53516);let tA={r:0,g:0,b:0},tT={NUM_MORPH_INFLUENCERS:0,NORMAL:!1,TANGENT:!1,UV:!1,UV2:!1,COLOR:!1};function tS(e,t,i,r=!0){let s=i.NUM_MORPH_INFLUENCERS;if(s>0&&e0.EngineStore.LastCreatedEngine){let a=e0.EngineStore.LastCreatedEngine.getCaps().maxVertexAttribs,n=t.morphTargetManager;if(n?.isUsingTextureForTargets)return;let l=n&&n.supportsPositions&&r,o=n&&n.supportsNormals&&i.NORMAL,c=n&&n.supportsTangents&&i.TANGENT,h=n&&n.supportsUVs&&i.UV1,u=n&&n.supportsUV2s&&i.UV2,d=n&&n.supportsColors&&i.VERTEXCOLOR;for(let i=0;i<s;i++)l&&e.push("position"+i),o&&e.push("normal"+i),c&&e.push("tangent"+i),h&&e.push("uv_"+i),u&&e.push("uv2_"+i),d&&e.push("color"+i),e.length>a&&tc.Logger.Error("Cannot add more vertex attributes for mesh "+t.name)}}function tM(e,t=!1){e.push("world0"),e.push("world1"),e.push("world2"),e.push("world3"),t&&(e.push("previousWorld0"),e.push("previousWorld1"),e.push("previousWorld2"),e.push("previousWorld3"))}function tb(e,t){t.bindToEffect(e,"Scene")}let tI=new WeakMap,tP=new WeakMap,tR=new WeakSet;e.s(["AreLightsTexturesReady",0,function(e,t,i,r=!1){if(!e.lightsEnabled||r)return!0;let s=t.lightSources,a=Math.min(s.length,i);for(let e=0;e<a;e++)if(!s[e].areLightTexturesReady())return!1;return!0},"BindBonesParameters",0,function(e,t,i){if(t&&e&&(e.computeBonesUsingShaders&&t._bonesComputationForcedToCPU&&(e.computeBonesUsingShaders=!1),e.useBones&&e.computeBonesUsingShaders&&e.skeleton)){let r=e.skeleton;if(r.isUsingTextureForMatrices&&t.getUniformIndex("boneTextureInfo")>-1){let i=r.getTransformMatrixTexture(e);t.setTexture("boneSampler",i),t.setFloat2("boneTextureInfo",r._textureWidth,r._textureHeight)}else{let s=r.getTransformMatrices(e);s&&(t.setMatrices("mBones",s),i&&e.getScene().prePassRenderer&&e.getScene().prePassRenderer.getIndex(2))&&(i.previousBones[e.uniqueId]||(i.previousBones[e.uniqueId]=s.slice()),t.setMatrices("mPreviousBones",i.previousBones[e.uniqueId]),i.previousBones[e.uniqueId].set(s))}}},"BindFogParameters",0,function(e,t,i,r=!1){i&&e.fogEnabled&&(!t||t.applyFog)&&0!==e.fogMode&&(i.setFloat4("vFogInfos",e.fogMode,e.fogStart,e.fogEnd,e.fogDensity),r?(e.fogColor.toLinearSpaceToRef(tA,e.getEngine().useExactSrgbConversions),i.setColor3("vFogColor",tA)):i.setColor3("vFogColor",e.fogColor))},"BindIBLParameters",0,function(e,t,i,r,s=null,a=!1,n=!1,l=!1,o=!1,c=!1,h=!1,u=0){if(e.texturesEnabled&&s&&tg.ReflectionTextureEnabled){if(i.updateMatrix("reflectionMatrix",s.getReflectionTextureMatrix()),i.updateFloat2("vReflectionInfos",s.level*e.iblIntensity,u),l&&s.boundingBoxSize&&(i.updateVector3("vReflectionPosition",s.boundingBoxPosition),i.updateVector3("vReflectionSize",s.boundingBoxSize)),a){let e=s.getSize().width;i.updateFloat2("vReflectionFilteringInfo",e,Math.log2(e))}if(c&&!t.USEIRRADIANCEMAP){let e=s.sphericalPolynomial;if(t.USESPHERICALFROMREFLECTIONMAP&&e)if(t.SPHERICAL_HARMONICS){let t=e.preScaledHarmonics;i.updateVector3("vSphericalL00",t.l00),i.updateVector3("vSphericalL1_1",t.l1_1),i.updateVector3("vSphericalL10",t.l10),i.updateVector3("vSphericalL11",t.l11),i.updateVector3("vSphericalL2_2",t.l2_2),i.updateVector3("vSphericalL2_1",t.l2_1),i.updateVector3("vSphericalL20",t.l20),i.updateVector3("vSphericalL21",t.l21),i.updateVector3("vSphericalL22",t.l22)}else i.updateFloat3("vSphericalX",e.x.x,e.x.y,e.x.z),i.updateFloat3("vSphericalY",e.y.x,e.y.y,e.y.z),i.updateFloat3("vSphericalZ",e.z.x,e.z.y,e.z.z),i.updateFloat3("vSphericalXX_ZZ",e.xx.x-e.zz.x,e.xx.y-e.zz.y,e.xx.z-e.zz.z),i.updateFloat3("vSphericalYY_ZZ",e.yy.x-e.zz.x,e.yy.y-e.zz.y,e.yy.z-e.zz.z),i.updateFloat3("vSphericalZZ",e.zz.x,e.zz.y,e.zz.z),i.updateFloat3("vSphericalXY",e.xy.x,e.xy.y,e.xy.z),i.updateFloat3("vSphericalYZ",e.yz.x,e.yz.y,e.yz.z),i.updateFloat3("vSphericalZX",e.zx.x,e.zx.y,e.zx.z)}else o&&t.USEIRRADIANCEMAP&&t.USE_IRRADIANCE_DOMINANT_DIRECTION&&s.irradianceTexture&&i.updateVector3("vReflectionDominantDirection",s.irradianceTexture._dominantDirection);n&&i.updateFloat3("vReflectionMicrosurfaceInfos",s.getSize().width,s.lodGenerationScale,s.lodGenerationOffset)}h&&i.updateColor3("vReflectionColor",r)},"BindIBLSamplers",0,function(e,t,i,r=null,s=!1){if(r&&tg.ReflectionTextureEnabled){t.LODBASEDMICROSFURACE?i.setTexture("reflectionSampler",r):(i.setTexture("reflectionSampler",r._lodTextureMid||r),i.setTexture("reflectionSamplerLow",r._lodTextureLow||r),i.setTexture("reflectionSamplerHigh",r._lodTextureHigh||r)),t.USEIRRADIANCEMAP&&i.setTexture("irradianceSampler",r.irradianceTexture);let a=e.iblCdfGenerator;s&&a&&i.setTexture("icdfSampler",a.getIcdfTexture())}},"BindLights",0,function(e,t,i,r,s=4){let a=Math.min(t.lightSources.length,s);for(let s=0;s<a;s++)!function(e,t,i,r,s,a=!0){e._bindLight(t,i,r,s,a)}(t.lightSources[s],s,e,i,"boolean"==typeof r?r:r.SPECULARTERM,t.receiveShadows)},"BindLogDepth",0,function(e,t,i){if(!e||e.LOGARITHMICDEPTH||e.indexOf&&e.indexOf("LOGARITHMICDEPTH")>=0){let e=i.activeCamera;1===e.mode&&tc.Logger.Error("Logarithmic depth is not compatible with orthographic cameras!",20),t.setFloat("logarithmicDepthConstant",2/(Math.log(e.maxZ+1)/Math.LN2))}},"BindMorphTargetParameters",0,function(e,t){let i=e.morphTargetManager;e&&i&&t.setFloatArray("morphTargetInfluences",i.influences)},"BindSceneUniformBuffer",0,tb,"BindTextureMatrix",0,function(e,t,i){let r=e.getTextureMatrix();t.updateMatrix(i+"Matrix",r)},"HandleFallbacksForShadows",0,function(e,t,i=4,r=0){let s=0;for(let a=0;a<i&&e["LIGHT"+a];a++)a>0&&(s=r+a,t.addFallback(s,"LIGHT"+a)),!e.SHADOWS&&(e["SHADOW"+a]&&t.addFallback(r,"SHADOW"+a),e["SHADOWPCF"+a]&&t.addFallback(r,"SHADOWPCF"+a),e["SHADOWPCSS"+a]&&t.addFallback(r,"SHADOWPCSS"+a),e["SHADOWPOISSON"+a]&&t.addFallback(r,"SHADOWPOISSON"+a),e["SHADOWESM"+a]&&t.addFallback(r,"SHADOWESM"+a),e["SHADOWCLOSEESM"+a]&&t.addFallback(r,"SHADOWCLOSEESM"+a));return s},"PrepareAttributesForBakedVertexAnimation",0,function(e,t,i){i.BAKED_VERTEX_ANIMATION_TEXTURE&&i.INSTANCES&&e.push("bakedVertexAnimationSettingsInstanced")},"PrepareAttributesForBones",0,function(e,t,i,r){i.NUM_BONE_INFLUENCERS>0&&(r.addCPUSkinningFallback(0,t),e.push("matricesIndices"),e.push("matricesWeights"),i.NUM_BONE_INFLUENCERS>4&&(e.push("matricesIndicesExtra"),e.push("matricesWeightsExtra")))},"PrepareAttributesForInstances",0,function(e,t){(t.INSTANCES||t.THIN_INSTANCES)&&tM(e,!!t.PREPASS_VELOCITY),t.INSTANCESCOLOR&&e.push("instanceColor")},"PrepareAttributesForMorphTargets",0,tS,"PrepareDefinesAndAttributesForMorphTargets",0,function(e,t,i,r,s,a,n,l,o,c){let h=e.numMaxInfluencers||e.numInfluencers;return h<=0?0:(t.push("#define MORPHTARGETS"),e.hasPositions&&t.push("#define MORPHTARGETTEXTURE_HASPOSITIONS"),e.hasNormals&&t.push("#define MORPHTARGETTEXTURE_HASNORMALS"),e.hasTangents&&t.push("#define MORPHTARGETTEXTURE_HASTANGENTS"),e.hasUVs&&t.push("#define MORPHTARGETTEXTURE_HASUVS"),e.hasUV2s&&t.push("#define MORPHTARGETTEXTURE_HASUV2S"),e.hasColors&&t.push("#define MORPHTARGETTEXTURE_HASCOLORS"),e.supportsPositions&&s&&t.push("#define MORPHTARGETS_POSITION"),e.supportsNormals&&a&&t.push("#define MORPHTARGETS_NORMAL"),e.supportsTangents&&n&&t.push("#define MORPHTARGETS_TANGENT"),e.supportsUVs&&l&&t.push("#define MORPHTARGETS_UV"),e.supportsUV2s&&o&&t.push("#define MORPHTARGETS_UV2"),e.supportsColors&&c&&t.push("#define MORPHTARGETS_COLOR"),t.push("#define NUM_MORPH_INFLUENCERS "+h),e.isUsingTextureForTargets&&t.push("#define MORPHTARGETS_TEXTURE"),tT.NUM_MORPH_INFLUENCERS=h,tT.NORMAL=a,tT.TANGENT=n,tT.UV=l,tT.UV2=o,tT.COLOR=c,tS(i,r,tT,s),h)},"PrepareDefinesForAttributes",0,function(e,t,i,r,s=!1,a=!0,n=!0){let l,o;if(!t._areAttributesDirty&&t._needNormals===t._normals&&t._needUVs===t._uvs)return!1;t._normals=t._needNormals,t._uvs=t._needUVs,t.NORMAL=t._needNormals&&e.isVerticesDataPresent("normal"),t._needNormals&&e.isVerticesDataPresent("tangent")&&(t.TANGENT=!0);for(let i=1;i<=6;++i)t["UV"+i]=!!t._needUVs&&e.isVerticesDataPresent(`uv${1===i?"":i}`);if(i){let i=e.useVertexColors&&e.isVerticesDataPresent("color");t.VERTEXCOLOR=i,t.VERTEXALPHA=e.hasVertexAlpha&&i&&a}return e.isVerticesDataPresent("instanceColor")&&(e.hasInstances||e.hasThinInstances)&&(t.INSTANCESCOLOR=!0),r&&function(e,t){if(e.useBones&&e.computeBonesUsingShaders&&e.skeleton){t.NUM_BONE_INFLUENCERS=e.numBoneInfluencers;let i=void 0!==t.BONETEXTURE;if(e.skeleton.isUsingTextureForMatrices&&i)t.BONETEXTURE=!0;else{t.BonesPerMesh=e.skeleton.bones.length+1,t.BONETEXTURE=!i&&void 0;let r=e.getScene(),s=r.prePassRenderer;s&&s.enabled&&(t.BONES_VELOCITY_ENABLED=-1===s.excludedSkinnedMesh.indexOf(e));let a=!0===t.MULTIVIEW,n=2*t.BonesPerMesh+ +!!a;if(tP.get(e.skeleton)!==n){tP.set(e.skeleton,n);let i=r.getEngine().getCaps().maxVertexUniformVectors;if(i&&!tR.has(e.skeleton)){let r=4*t.BonesPerMesh,s=Math.max(i-(a?64:40),0);(r>s||a&&3*r>i)&&(tR.add(e.skeleton),tc.Logger.Warn(`Skeleton "${e.skeleton.name}": ${e.skeleton.bones.length} bones stored as vertex uniforms use ${r} of ~${s} usable uniform vectors${a?" (multiview)":""} on a device reporting ${i}. This can exceed the GPU vertex-uniform limit and make the mesh silently fail to render. Set skeleton.useTextureToStoreBoneMatrices = true to store bone matrices in a texture.`))}}}}else t.NUM_BONE_INFLUENCERS=0,t.BonesPerMesh=0,void 0!==t.BONETEXTURE&&(t.BONETEXTURE=!1)}(e,t),s&&((l=e.morphTargetManager)?(t.MORPHTARGETS_UV=l.supportsUVs&&t.UV1,t.MORPHTARGETS_UV2=l.supportsUV2s&&t.UV2,t.MORPHTARGETS_TANGENT=l.supportsTangents&&t.TANGENT,t.MORPHTARGETS_NORMAL=l.supportsNormals&&t.NORMAL,t.MORPHTARGETS_POSITION=l.supportsPositions,t.MORPHTARGETS_COLOR=l.supportsColors,t.MORPHTARGETTEXTURE_HASUVS=l.hasUVs,t.MORPHTARGETTEXTURE_HASUV2S=l.hasUV2s,t.MORPHTARGETTEXTURE_HASTANGENTS=l.hasTangents,t.MORPHTARGETTEXTURE_HASNORMALS=l.hasNormals,t.MORPHTARGETTEXTURE_HASPOSITIONS=l.hasPositions,t.MORPHTARGETTEXTURE_HASCOLORS=l.hasColors,t.NUM_MORPH_INFLUENCERS=l.numMaxInfluencers||l.numInfluencers,t.MORPHTARGETS=t.NUM_MORPH_INFLUENCERS>0,t.MORPHTARGETS_TEXTURE=l.isUsingTextureForTargets):(t.MORPHTARGETS_UV=!1,t.MORPHTARGETS_UV2=!1,t.MORPHTARGETS_TANGENT=!1,t.MORPHTARGETS_NORMAL=!1,t.MORPHTARGETS_POSITION=!1,t.MORPHTARGETS_COLOR=!1,t.MORPHTARGETTEXTURE_HASUVS=!1,t.MORPHTARGETTEXTURE_HASUV2S=!1,t.MORPHTARGETTEXTURE_HASTANGENTS=!1,t.MORPHTARGETTEXTURE_HASNORMALS=!1,t.MORPHTARGETTEXTURE_HASPOSITIONS=!1,t.MORPHTARGETTEXTURE_HAS_COLORS=!1,t.MORPHTARGETS=!1,t.NUM_MORPH_INFLUENCERS=0)),n&&(t.BAKED_VERTEX_ANIMATION_TEXTURE=!!(o=e.bakedVertexAnimationManager)&&!!o.isEnabled),!0},"PrepareDefinesForFrameBoundValues",0,function(e,t,i,r,s,a=null,n=!1){let l=function(e,t){let i=!1;if(e.activeCamera){let r=+!!t.CAMERA_ORTHOGRAPHIC,s=+!!t.CAMERA_PERSPECTIVE,a=+(1===e.activeCamera.mode),n=+(0===e.activeCamera.mode);(r^a||s^n)&&(t.CAMERA_ORTHOGRAPHIC=1===a,t.CAMERA_PERSPECTIVE=1===n,i=!0)}return i}(e,r);!1!==a&&(l=tE(i,e,r)),!t.getColorWrite()!==r.DEPTHPREPASS&&(r.DEPTHPREPASS=!r.DEPTHPREPASS,l=!0),r.INSTANCES!==s&&(r.INSTANCES=s,l=!0),r.THIN_INSTANCES!==n&&(r.THIN_INSTANCES=n,l=!0),l&&r.markAsUnprocessed()},"PrepareDefinesForIBL",0,function(e,t,i,r=!1,s=8,a=!1){if(t&&tg.ReflectionTextureEnabled){if(!t.isReadyOrNotBlocking())return!1;i._needNormals=!0,i.REFLECTION=!0,i.GAMMAREFLECTION=t.gammaSpace,i.RGBDREFLECTION=t.isRGBD,i.LODINREFLECTIONALPHA=t.lodLevelInAlpha,i.LINEARSPECULARREFLECTION=t.linearSpecularLOD,i.USEIRRADIANCEMAP=!1,i.LODBASEDMICROSFURACE=e.getEngine().getCaps().textureLOD;let n=e.getEngine();switch(r&&s>0?(i.NUM_SAMPLES=""+s,n._features.needTypeSuffixInShaderConstants&&(i.NUM_SAMPLES=i.NUM_SAMPLES+"u"),i.REALTIME_FILTERING=!0,e.iblCdfGenerator&&(i.IBL_CDF_FILTERING=!0)):i.REALTIME_FILTERING=!1,i.INVERTCUBICMAP=6===t.coordinatesMode,i.REFLECTIONMAP_3D=t.isCube,i.REFLECTIONMAP_OPPOSITEZ=i.REFLECTIONMAP_3D&&e.useRightHandedSystem?!t.invertZ:t.invertZ,i.REFLECTIONMAP_CUBIC=!1,i.REFLECTIONMAP_EXPLICIT=!1,i.REFLECTIONMAP_PLANAR=!1,i.REFLECTIONMAP_PROJECTION=!1,i.REFLECTIONMAP_SKYBOX=!1,i.REFLECTIONMAP_SPHERICAL=!1,i.REFLECTIONMAP_EQUIRECTANGULAR=!1,i.REFLECTIONMAP_EQUIRECTANGULAR_FIXED=!1,i.REFLECTIONMAP_MIRROREDEQUIRECTANGULAR_FIXED=!1,t.coordinatesMode){case 0:i.REFLECTIONMAP_EXPLICIT=!0;break;case 2:i.REFLECTIONMAP_PLANAR=!0;break;case 4:i.REFLECTIONMAP_PROJECTION=!0;break;case 5:i.REFLECTIONMAP_SKYBOX=!0;break;case 1:i.REFLECTIONMAP_SPHERICAL=!0;break;case 7:i.REFLECTIONMAP_EQUIRECTANGULAR=!0;break;case 8:i.REFLECTIONMAP_EQUIRECTANGULAR_FIXED=!0;break;case 9:i.REFLECTIONMAP_MIRROREDEQUIRECTANGULAR_FIXED=!0;break;default:i.REFLECTIONMAP_CUBIC=!0,i.USE_LOCAL_REFLECTIONMAP_CUBIC=!!t.boundingBoxSize}5!==t.coordinatesMode&&(t.irradianceTexture?(i.USEIRRADIANCEMAP=!0,i.USESPHERICALFROMREFLECTIONMAP=!1,i.USESPHERICALINVERTEX=!1,t.irradianceTexture._dominantDirection?i.USE_IRRADIANCE_DOMINANT_DIRECTION=!0:i.USE_IRRADIANCE_DOMINANT_DIRECTION=!1):t.isCube&&(i.USESPHERICALFROMREFLECTIONMAP=!0,i.USEIRRADIANCEMAP=!1,i.USE_IRRADIANCE_DOMINANT_DIRECTION=!1,i.USESPHERICALINVERTEX=a))}else i.REFLECTION=!1,i.REFLECTIONMAP_3D=!1,i.REFLECTIONMAP_SPHERICAL=!1,i.REFLECTIONMAP_PLANAR=!1,i.REFLECTIONMAP_CUBIC=!1,i.USE_LOCAL_REFLECTIONMAP_CUBIC=!1,i.REFLECTIONMAP_PROJECTION=!1,i.REFLECTIONMAP_SKYBOX=!1,i.REFLECTIONMAP_EXPLICIT=!1,i.REFLECTIONMAP_EQUIRECTANGULAR=!1,i.REFLECTIONMAP_EQUIRECTANGULAR_FIXED=!1,i.REFLECTIONMAP_MIRROREDEQUIRECTANGULAR_FIXED=!1,i.INVERTCUBICMAP=!1,i.USESPHERICALFROMREFLECTIONMAP=!1,i.USEIRRADIANCEMAP=!1,i.USE_IRRADIANCE_DOMINANT_DIRECTION=!1,i.USESPHERICALINVERTEX=!1,i.REFLECTIONMAP_OPPOSITEZ=!1,i.LODINREFLECTIONALPHA=!1,i.GAMMAREFLECTION=!1,i.RGBDREFLECTION=!1,i.LINEARSPECULARREFLECTION=!1;return!0},"PrepareDefinesForLights",0,function(e,t,i,r,s=4,a=!1){var n,l,o,c;let h;if(!i._areLightsDirty)return i._needNormals;let u=s;n=s,s=null==(h=e.getEngine().getCaps().maxUniformBuffersPerShaderStage)?n:Math.min(n,Math.max(h-4,1));let d=0,_={needNormals:i._needNormals,needRebuild:!1,lightmapMode:!1,shadowEnabled:!1,specularEnabled:!1};if(e.lightsEnabled&&!a){let a;for(let n of(t.lightSources.length>s&&s<u&&(l=e.getEngine(),o=s,c=Math.min(t.lightSources.length,u),(a=tI.get(l))||(a=new Set,tI.set(l,a)),a.has(c)||(a.add(c),tc.Logger.Warn(`maxSimultaneousLights is ${u} but this engine supports at most ${o} simultaneous lights. Each light declares its own uniform buffer in the vertex shader, so the ${c} lights affecting this mesh plus the scene, mesh, material and leftover buffers would need ${c+4} uniform buffers, over the device limit of ${l.getCaps().maxUniformBuffersPerShaderStage} per shader stage. The light count has been clamped to ${o}, so the extra lights will not contribute to the render. Set maxSimultaneousLights to ${o} or less to silence this warning.`))),t.lightSources))if(function(e,t,i,r,s,a,n){switch(n.needNormals=!0,void 0===s["LIGHT"+r]&&(n.needRebuild=!0),s["LIGHT"+r]=!0,s["SPOTLIGHT"+r]=!1,s["HEMILIGHT"+r]=!1,s["POINTLIGHT"+r]=!1,s["DIRLIGHT"+r]=!1,s["AREALIGHT"+r]=!1,s["CLUSTLIGHT"+r]=!1,i.prepareLightSpecificDefines(s,r),s["LIGHT_FALLOFF_PHYSICAL"+r]=!1,s["LIGHT_FALLOFF_GLTF"+r]=!1,s["LIGHT_FALLOFF_STANDARD"+r]=!1,i.falloffType){case t_.LightConstants.FALLOFF_GLTF:s["LIGHT_FALLOFF_GLTF"+r]=!0;break;case t_.LightConstants.FALLOFF_PHYSICAL:s["LIGHT_FALLOFF_PHYSICAL"+r]=!0;break;case t_.LightConstants.FALLOFF_STANDARD:s["LIGHT_FALLOFF_STANDARD"+r]=!0}if(a&&!i.specular.equalsFloats(0,0,0)&&(n.specularEnabled=!0),s["SHADOW"+r]=!1,s["SHADOWCSM"+r]=!1,s["SHADOWCSMDEBUG"+r]=!1,s["SHADOWCSMNUM_CASCADES"+r]=!1,s["SHADOWCSMUSESHADOWMAXZ"+r]=!1,s["SHADOWCSMNOBLEND"+r]=!1,s["SHADOWCSM_RIGHTHANDED"+r]=!1,s["SHADOWPCF"+r]=!1,s["SHADOWPCSS"+r]=!1,s["SHADOWPOISSON"+r]=!1,s["SHADOWESM"+r]=!1,s["SHADOWCLOSEESM"+r]=!1,s["SHADOWCUBE"+r]=!1,s["SHADOWLOWQUALITY"+r]=!1,s["SHADOWMEDIUMQUALITY"+r]=!1,t&&t.receiveShadows&&e.shadowsEnabled&&i.shadowEnabled){let t=i.getShadowGenerator(e.activeCamera)??i.getShadowGenerator();if(t){let e=t.getShadowMap();e&&e.renderList&&e.renderList.length>0&&(n.shadowEnabled=!0,t.prepareDefines(s,r))}}i.lightmapMode!=t_.LightConstants.LIGHTMAP_DEFAULT?(n.lightmapMode=!0,s["LIGHTMAPEXCLUDED"+r]=!0,s["LIGHTMAPNOSPECULAR"+r]=i.lightmapMode==t_.LightConstants.LIGHTMAP_SHADOWSONLY):(s["LIGHTMAPEXCLUDED"+r]=!1,s["LIGHTMAPNOSPECULAR"+r]=!1)}(e,t,n,d,i,r,_),++d===s)break}i.SPECULARTERM=_.specularEnabled,i.SHADOWS=_.shadowEnabled;let p=Math.max(s,i.MAXLIGHTCOUNT||0);for(let e=d;e<p;e++)void 0!==i["LIGHT"+e]&&(i["LIGHT"+e]=!1,i["HEMILIGHT"+e]=!1,i["POINTLIGHT"+e]=!1,i["DIRLIGHT"+e]=!1,i["SPOTLIGHT"+e]=!1,i["AREALIGHT"+e]=!1,i["CLUSTLIGHT"+e]=!1,i["SHADOW"+e]=!1,i["SHADOWCSM"+e]=!1,i["SHADOWCSMDEBUG"+e]=!1,i["SHADOWCSMNUM_CASCADES"+e]=!1,i["SHADOWCSMUSESHADOWMAXZ"+e]=!1,i["SHADOWCSMNOBLEND"+e]=!1,i["SHADOWCSM_RIGHTHANDED"+e]=!1,i["SHADOWPCF"+e]=!1,i["SHADOWPCSS"+e]=!1,i["SHADOWPOISSON"+e]=!1,i["SHADOWESM"+e]=!1,i["SHADOWCLOSEESM"+e]=!1,i["SHADOWCUBE"+e]=!1,i["SHADOWLOWQUALITY"+e]=!1,i["SHADOWMEDIUMQUALITY"+e]=!1);i.LIGHTCOUNT=d,i.MAXLIGHTCOUNT=s;let E=e.getEngine().getCaps();return void 0===i.SHADOWFLOAT&&(_.needRebuild=!0),i.SHADOWFLOAT=_.shadowEnabled&&(E.textureFloatRender&&E.textureFloatLinearFiltering||E.textureHalfFloatRender&&E.textureHalfFloatLinearFiltering),i.LIGHTMAPEXCLUDED=_.lightmapMode,_.needRebuild&&i.rebuild(),_.needNormals},"PrepareDefinesForMergedUV",0,function(e,t,i){t._needUVs=!0,t[i]=!0,e.optimizeUVAllocation&&e.getTextureMatrix().isIdentityAs3x2()?(t[i+"DIRECTUV"]=e.coordinatesIndex+1,t["MAINUV"+(e.coordinatesIndex+1)]=!0):t[i+"DIRECTUV"]=0},"PrepareDefinesForMisc",0,function(e,t,i,r,s,a,n,l=!1,o=!1,c,h){if(n._areMiscDirty){n.LOGARITHMICDEPTH=i,n.POINTSIZE=r,n.FOG=s&&t.fogEnabled&&e.applyFog&&0!==t.fogMode,n.NONUNIFORMSCALING=e.nonUniformScaling,n.ALPHATEST=a,n.DECAL_AFTER_DETAIL=l,n.USE_VERTEX_PULLING=o,n.RIGHT_HANDED=t.useRightHandedSystem;let u=c?.geometry?.getIndexBuffer(),d=!!c&&c.isUnIndexed;n.VERTEX_PULLING_USE_INDEX_BUFFER=!!u&&!d,n.VERTEX_PULLING_INDEX_BUFFER_32BITS=!!u&&!d&&u.is32Bits,n.VERTEXOUTPUT_INVARIANT=!!h}},"PrepareDefinesForMultiview",0,function(e,t){if(e.activeCamera){let i=t.MULTIVIEW;t.MULTIVIEW=null!==e.activeCamera.outputRenderTarget&&e.activeCamera.outputRenderTarget.getViewCount()>1,t.MULTIVIEW!=i&&t.markAsUnprocessed()}},"PrepareDefinesForOIT",0,function(e,t,i){let r=t.ORDER_INDEPENDENT_TRANSPARENCY,s=t.ORDER_INDEPENDENT_TRANSPARENCY_16BITS;t.ORDER_INDEPENDENT_TRANSPARENCY=e.useOrderIndependentTransparency&&i,t.ORDER_INDEPENDENT_TRANSPARENCY_16BITS=!e.getEngine().getCaps().textureFloatLinearFiltering,(r!==t.ORDER_INDEPENDENT_TRANSPARENCY||s!==t.ORDER_INDEPENDENT_TRANSPARENCY_16BITS)&&t.markAsUnprocessed()},"PrepareDefinesForPrePass",0,function(e,t,i){let r=t.PREPASS;if(!t._arePrePassDirty)return;let s=[{type:1,define:"PREPASS_POSITION",index:"PREPASS_POSITION_INDEX"},{type:9,define:"PREPASS_LOCAL_POSITION",index:"PREPASS_LOCAL_POSITION_INDEX"},{type:2,define:"PREPASS_VELOCITY",index:"PREPASS_VELOCITY_INDEX"},{type:11,define:"PREPASS_VELOCITY_LINEAR",index:"PREPASS_VELOCITY_LINEAR_INDEX"},{type:3,define:"PREPASS_REFLECTIVITY",index:"PREPASS_REFLECTIVITY_INDEX"},{type:0,define:"PREPASS_IRRADIANCE_LEGACY",index:"PREPASS_IRRADIANCE_LEGACY_INDEX"},{type:7,define:"PREPASS_ALBEDO_SQRT",index:"PREPASS_ALBEDO_SQRT_INDEX"},{type:5,define:"PREPASS_DEPTH",index:"PREPASS_DEPTH_INDEX"},{type:10,define:"PREPASS_SCREENSPACE_DEPTH",index:"PREPASS_SCREENSPACE_DEPTH_INDEX"},{type:6,define:"PREPASS_NORMAL",index:"PREPASS_NORMAL_INDEX"},{type:8,define:"PREPASS_WORLD_NORMAL",index:"PREPASS_WORLD_NORMAL_INDEX"},{type:14,define:"PREPASS_IRRADIANCE",index:"PREPASS_IRRADIANCE_INDEX"}];if(e.prePassRenderer&&e.prePassRenderer.enabled&&i){t.PREPASS=!0,t.SCENE_MRT_COUNT=e.prePassRenderer.mrtCount,t.PREPASS_NORMAL_WORLDSPACE=e.prePassRenderer.generateNormalsInWorldSpace,t.PREPASS_COLOR=!0,t.PREPASS_COLOR_INDEX=0;for(let i=0;i<s.length;i++){let r=e.prePassRenderer.getIndex(s[i].type);-1!==r?(t[s[i].define]=!0,t[s[i].index]=r):t[s[i].define]=!1}}else{t.PREPASS=!1;for(let e=0;e<s.length;e++)t[s[e].define]=!1}t.PREPASS!=r&&(t.markAsUnprocessed(),t.markAsImageProcessingDirty())},"PrepareUniformLayoutForIBL",0,function(e,t=!1,i=!1,r=!1,s=!1,a=!1){e.addUniform("vReflectionInfos",2),e.addUniform("reflectionMatrix",16),t&&e.addUniform("vReflectionMicrosurfaceInfos",3),i&&(e.addUniform("vReflectionPosition",3),e.addUniform("vReflectionSize",3)),r&&(e.addUniform("vReflectionFilteringInfo",2),e.addUniform("vReflectionDominantDirection",3)),a&&e.addUniform("vReflectionColor",3),s&&(e.addUniform("vSphericalL00",3),e.addUniform("vSphericalL1_1",3),e.addUniform("vSphericalL10",3),e.addUniform("vSphericalL11",3),e.addUniform("vSphericalL2_2",3),e.addUniform("vSphericalL2_1",3),e.addUniform("vSphericalL20",3),e.addUniform("vSphericalL21",3),e.addUniform("vSphericalL22",3),e.addUniform("vSphericalX",3),e.addUniform("vSphericalY",3),e.addUniform("vSphericalZ",3),e.addUniform("vSphericalXX_ZZ",3),e.addUniform("vSphericalYY_ZZ",3),e.addUniform("vSphericalZZ",3),e.addUniform("vSphericalXY",3),e.addUniform("vSphericalYZ",3),e.addUniform("vSphericalZX",3))},"PrepareUniformsAndSamplersForIBL",0,function(e,t,i){let r=["vReflectionMicrosurfaceInfos","vReflectionDominantDirection","reflectionMatrix","vReflectionInfos","vReflectionPosition","vReflectionSize","vReflectionColor","vReflectionFilteringInfo"];i&&r.push("vSphericalX","vSphericalY","vSphericalZ","vSphericalXX_ZZ","vSphericalYY_ZZ","vSphericalZZ","vSphericalXY","vSphericalYZ","vSphericalZX","vSphericalL00","vSphericalL1_1","vSphericalL10","vSphericalL11","vSphericalL2_2","vSphericalL2_1","vSphericalL20","vSphericalL21","vSphericalL22"),e.push(...r),t.push("reflectionSampler","reflectionSamplerLow","reflectionSamplerHigh","irradianceSampler","icdfSampler")},"PrepareUniformsAndSamplersList",0,function(e,t,i,r=4){let s,a,n=null;e.uniformsNames?(s=e.uniformsNames,a=e.uniformBuffersNames,t=e.samplers,i=e.defines,r=e.maxSimultaneousLights||0,n=e.shaderLanguage??null):(s=e,t||(t=[]));for(let e=0;e<r&&i["LIGHT"+e];e++)!function(e,t,i,r,s=null,a=!1,n=!1,l=!1,o=!1,c=!1){s&&s.push("Light"+e),!a&&(t.push("vLightData"+e,"vLightDiffuse"+e,"vLightSpecular"+e,"vLightDirection"+e,"vLightWidth"+e,"vLightHeight"+e,"vLightFalloff"+e,"vLightGround"+e,"vSliceData"+e,"vSliceRanges"+e,"lightMatrix"+e,"shadowsInfo"+e,"depthValues"+e),i.push("shadowTexture"+e),i.push("depthTexture"+e),t.push("viewFrustumZ"+e,"cascadeBlendFactor"+e,"lightSizeUVCorrection"+e,"depthCorrection"+e,"penumbraDarkness"+e,"frustumLengths"+e),r&&(i.push("projectionLightTexture"+e),t.push("textureProjectionMatrix"+e)),n&&i.push("iesLightTexture"+e),o&&i.push("rectAreaLightEmissionTexture"+e),l&&(i.push("lightDataTexture"+e),c||i.push("tileMaskTexture"+e)))}(e,s,t,i["PROJECTEDLIGHTTEXTURE"+e],a,!1,i["IESLIGHTTEXTURE"+e],i["CLUSTLIGHT"+e],i["RECTAREALIGHTEMISSIONTEXTURE"+e],1===n);i.NUM_MORPH_INFLUENCERS&&(s.push("morphTargetInfluences"),s.push("morphTargetCount")),i.BAKED_VERTEX_ANIMATION_TEXTURE&&(s.push("bakedVertexAnimationSettings"),s.push("bakedVertexAnimationTextureSizeInverted"),s.push("bakedVertexAnimationTime"),t.push("bakedVertexAnimationTexture"))},"PushAttributesForInstances",0,tM],9131);var tD=e.i(67501);let tx=(j=[],q=[],Q=[],$=[],K=[],J=[],ee=[],et=[],ei=[],er=[],es=[],ea=[],en=[],el=[],eo=[],ec=[],eh=[],eu=[],ed=[],e_=[],ep=[],eE=[],em=[],ef=[],eg=[],eA=[],eT=[],eS=[],eM=[],eb=[],eI=[],eP=[],eR=[],eD=[],ex=[],eC=[],eO=[],eL=[],ey=[],eF=[],ev=[],eN=[],ek=[],eB=[],eU=[],eH=[],eW=[],eV=[],ez=[],ew=[],eG=[],ej=class{get useVertexPulling(){return this._useVertexPulling}set useVertexPulling(e){this._useVertexPulling!==e&&(this._useVertexPulling=e,this.markAsDirty(ej.MiscDirtyFlag))}get _supportGlowLayer(){return!1}set _glowModeEnabled(e){}get shaderLanguage(){return this._shaderLanguage}get canRenderToMRT(){return!1}set alpha(e){if(this._alpha===e)return;let t=this._alpha;this._alpha=e,(1===t||1===e)&&this.markAsDirty(ej.MiscDirtyFlag+ej.PrePassDirtyFlag)}get alpha(){return this._alpha}set backFaceCulling(e){this._backFaceCulling!==e&&(this._backFaceCulling=e,this.markAsDirty(ej.TextureDirtyFlag))}get backFaceCulling(){return this._backFaceCulling}set textureRepetitionMode(e){let t=Math.max(0,Math.min(0|e,4));this._textureRepetitionMode!==t&&(this._textureRepetitionMode=t,this.markAsDirty(ej.TextureDirtyFlag))}get textureRepetitionMode(){return this._textureRepetitionMode}set cullBackFaces(e){this._cullBackFaces!==e&&(this._cullBackFaces=e,this.markAsDirty(ej.TextureDirtyFlag))}get cullBackFaces(){return this._cullBackFaces}get blockDirtyMechanism(){return this._blockDirtyMechanism}set blockDirtyMechanism(e){this._blockDirtyMechanism!==e&&(this._blockDirtyMechanism=e,e||this.markDirty())}atomicMaterialsUpdate(e){this.blockDirtyMechanism=!0;try{e(this)}finally{this.blockDirtyMechanism=!1}}get hasRenderTargetTextures(){return this._eventInfo.hasRenderTargetTextures=!1,this._callbackPluginEventHasRenderTargetTextures(this._eventInfo),this._eventInfo.hasRenderTargetTextures}set onDispose(e){this._onDisposeObserver&&this.onDisposeObservable.remove(this._onDisposeObserver),this._onDisposeObserver=this.onDisposeObservable.add(e)}get onBindObservable(){return this._onBindObservable||(this._onBindObservable=new eJ.Observable),this._onBindObservable}set onBind(e){this._onBindObserver&&this.onBindObservable.remove(this._onBindObserver),this._onBindObserver=this.onBindObservable.add(e)}get onUnBindObservable(){return this._onUnBindObservable||(this._onUnBindObservable=new eJ.Observable),this._onUnBindObservable}get onEffectCreatedObservable(){return this._onEffectCreatedObservable||(this._onEffectCreatedObservable=new eJ.Observable),this._onEffectCreatedObservable}set alphaMode(e){this._alphaMode[0]!==e&&(this._alphaMode[0]=e,this.markAsDirty(ej.TextureDirtyFlag))}get alphaMode(){return this._alphaMode[0]}get alphaModes(){return this._alphaMode}setAlphaMode(e,t=0){this._alphaMode[t]!==e&&(this._alphaMode[t]=e,this.markAsDirty(ej.TextureDirtyFlag))}set needDepthPrePass(e){this._needDepthPrePass!==e&&(this._needDepthPrePass=e,this._needDepthPrePass&&(this.checkReadyOnEveryCall=!0))}get needDepthPrePass(){return this._needDepthPrePass}get isPrePassCapable(){return!1}set fogEnabled(e){this._fogEnabled!==e&&(this._fogEnabled=e,this.markAsDirty(ej.MiscDirtyFlag))}get fogEnabled(){return this._fogEnabled}get wireframe(){switch(this._fillMode){case ej.WireFrameFillMode:case ej.LineListDrawMode:case ej.LineLoopDrawMode:case ej.LineStripDrawMode:return!0}return this._scene.forceWireframe}set wireframe(e){this.fillMode=e?ej.WireFrameFillMode:ej.TriangleFillMode}get pointsCloud(){switch(this._fillMode){case ej.PointFillMode:case ej.PointListDrawMode:return!0}return this._scene.forcePointsCloud}set pointsCloud(e){this.fillMode=e?ej.PointFillMode:ej.TriangleFillMode}get fillMode(){return this._fillMode}set fillMode(e){this._fillMode!==e&&(this._fillMode=e,this.markAsDirty(ej.MiscDirtyFlag))}get useLogarithmicDepth(){return this._useLogarithmicDepth}set useLogarithmicDepth(e){let t=this.getScene().getEngine().getCaps().fragmentDepthSupported;e&&!t&&tc.Logger.Warn("Logarithmic depth has been requested for a material on a device that doesn't support it."),this._useLogarithmicDepth=e&&t,this._markAllSubMeshesAsMiscDirty()}get isVertexOutputInvariant(){return this._isVertexOutputInvariant}set isVertexOutputInvariant(e){this._isVertexOutputInvariant!==e&&(this._isVertexOutputInvariant=e,this._markAllSubMeshesAsMiscDirty())}_getDrawWrapper(){return this._drawWrapper}_setDrawWrapper(e){this._drawWrapper=e}constructor(e,t,i,r=!1){this.customShaderNameResolve=(0,eQ.__runInitializers)(this,j),this.shadowDepthWrapper=null,this.allowShaderHotSwapping=!0,this._shaderLanguage=0,this._forceGLSL=!1,this._useVertexPulling=!1,this.id=(0,eQ.__runInitializers)(this,q,void 0),this.uniqueId=((0,eQ.__runInitializers)(this,Q),(0,eQ.__runInitializers)(this,$,void 0)),this._loadedUniqueId=(0,eQ.__runInitializers)(this,K),this.name=(0,eQ.__runInitializers)(this,J,void 0),this.metadata=((0,eQ.__runInitializers)(this,ee),(0,eQ.__runInitializers)(this,et,null)),this._internalMetadata=(0,eQ.__runInitializers)(this,ei),this.reservedDataStore=null,this.checkReadyOnEveryCall=(0,eQ.__runInitializers)(this,er,!1),this.checkReadyOnlyOnce=((0,eQ.__runInitializers)(this,es),(0,eQ.__runInitializers)(this,ea,!1)),this.state=((0,eQ.__runInitializers)(this,en),(0,eQ.__runInitializers)(this,el,"")),this._alpha=((0,eQ.__runInitializers)(this,eo),(0,eQ.__runInitializers)(this,ec,1)),this.inspectableCustomProperties=(0,eQ.__runInitializers)(this,eh),this._backFaceCulling=(0,eQ.__runInitializers)(this,eu,!0),this._textureRepetitionMode=((0,eQ.__runInitializers)(this,ed),(0,eQ.__runInitializers)(this,e_,0)),this.textureRepetitionHexTilingParams=((0,eQ.__runInitializers)(this,ep),(0,eQ.__runInitializers)(this,eE,[1,.6,7,.5])),this._cullBackFaces=((0,eQ.__runInitializers)(this,em),(0,eQ.__runInitializers)(this,ef,!0)),this._blockDirtyMechanism=((0,eQ.__runInitializers)(this,eg),!1),this.sideOrientation=(0,eQ.__runInitializers)(this,eA,null),this.onCompiled=((0,eQ.__runInitializers)(this,eT),null),this.onError=null,this.getRenderTargetTextures=null,this.doNotSerialize=!1,this._storeEffectOnSubMeshes=!1,this.animations=null,this.onDisposeObservable=new eJ.Observable,this._onDisposeObserver=null,this._onUnBindObservable=null,this._onBindObserver=null,this._alphaMode=(0,eQ.__runInitializers)(this,eS,[2]),this._needDepthPrePass=((0,eQ.__runInitializers)(this,eM),(0,eQ.__runInitializers)(this,eb,!1)),this.disableDepthWrite=((0,eQ.__runInitializers)(this,eI),(0,eQ.__runInitializers)(this,eP,!1)),this.disableColorWrite=((0,eQ.__runInitializers)(this,eR),(0,eQ.__runInitializers)(this,eD,!1)),this.forceDepthWrite=((0,eQ.__runInitializers)(this,ex),(0,eQ.__runInitializers)(this,eC,!1)),this.depthFunction=((0,eQ.__runInitializers)(this,eO),(0,eQ.__runInitializers)(this,eL,0)),this.separateCullingPass=((0,eQ.__runInitializers)(this,ey),(0,eQ.__runInitializers)(this,eF,!1)),this._fogEnabled=((0,eQ.__runInitializers)(this,ev),(0,eQ.__runInitializers)(this,eN,!0)),this.pointSize=((0,eQ.__runInitializers)(this,ek),(0,eQ.__runInitializers)(this,eB,1)),this.zOffset=((0,eQ.__runInitializers)(this,eU),(0,eQ.__runInitializers)(this,eH,0)),this.zOffsetUnits=((0,eQ.__runInitializers)(this,eW),(0,eQ.__runInitializers)(this,eV,0)),this.clipPlane=(0,eQ.__runInitializers)(this,ez),this.stencil=new td,this._isVertexOutputInvariant=(0,eQ.__runInitializers)(this,ew,ej.ForceVertexOutputInvariant),this._materialContext=(0,eQ.__runInitializers)(this,eG),this._useUBO=!1,this._fillMode=ej.TriangleFillMode,this._cachedDepthWriteState=!1,this._cachedColorWriteState=!1,this._cachedDepthFunctionState=0,this._indexInSceneMaterialArray=-1,this.meshMap=null,this._parentContainer=null,this._uniformBufferLayoutBuilt=!1,this._eventInfo={},this._callbackPluginEventGeneric=()=>void 0,this._callbackPluginEventIsReadyForSubMesh=()=>void 0,this._callbackPluginEventPrepareDefines=()=>void 0,this._callbackPluginEventPrepareDefinesBeforeAttributes=()=>void 0,this._callbackPluginEventHardBindForSubMesh=()=>void 0,this._callbackPluginEventBindForSubMesh=()=>void 0,this._callbackPluginEventHasRenderTargetTextures=()=>void 0,this._callbackPluginEventFillRenderTargetTextures=()=>void 0,this._transparencyMode=null,this.name=e;const s=t||e0.EngineStore.LastCreatedScene;if(!s)return;this._scene=s,this._dirtyCallbacks={},this._forceGLSL=r,this._dirtyCallbacks[1]=this._markAllSubMeshesAsTexturesDirty.bind(this),this._dirtyCallbacks[2]=this._markAllSubMeshesAsLightsDirty.bind(this),this._dirtyCallbacks[4]=this._markAllSubMeshesAsFresnelDirty.bind(this),this._dirtyCallbacks[8]=this._markAllSubMeshesAsAttributesDirty.bind(this),this._dirtyCallbacks[16]=this._markAllSubMeshesAsMiscDirty.bind(this),this._dirtyCallbacks[32]=this._markAllSubMeshesAsPrePassDirty.bind(this),this._dirtyCallbacks[127]=this._markAllSubMeshesAsAllDirty.bind(this),this.id=e||eK.Tools.RandomId(),this.uniqueId=this._scene.getUniqueId(),this._materialContext=this._scene.getEngine().createMaterialContext(),this._drawWrapper=new ta.DrawWrapper(this._scene.getEngine(),!1),this._drawWrapper.materialContext=this._materialContext,this._uniformBuffer=new to.UniformBuffer(this._scene.getEngine(),void 0,void 0,e),this._useUBO=this.getScene().getEngine().supportsUniformBuffers,this._createUniformBuffer(),i||this._scene.addMaterial(this),this._scene.useMaterialMeshMap&&(this.meshMap={}),ej.OnEventObservable.notifyObservers(this,1)}_createUniformBuffer(){let e=this.getScene().getEngine();this._uniformBuffer?.dispose(),e.isWebGPU&&!this._forceGLSL?(this._uniformBuffer=new to.UniformBuffer(e,void 0,void 0,this.name,!0),this._shaderLanguage=1):this._uniformBuffer=new to.UniformBuffer(this._scene.getEngine(),void 0,void 0,this.name),this._uniformBufferLayoutBuilt=!1}toString(e){return"Name: "+this.name}getClassName(){return"Material"}get _isMaterial(){return!0}get isFrozen(){return this.checkReadyOnlyOnce}freeze(){this.markDirty(),this.checkReadyOnlyOnce=!0}unfreeze(){this.markDirty(),this.checkReadyOnlyOnce=!1}isReady(e,t){return!0}isReadyForSubMesh(e,t,i){let r=t.materialDefines;return!!r&&(this._eventInfo.isReadyForSubMesh=!0,this._eventInfo.defines=r,this._callbackPluginEventIsReadyForSubMesh(this._eventInfo),this._eventInfo.isReadyForSubMesh)}getEffect(){return this._drawWrapper.effect}getScene(){return this._scene}_getEffectiveOrientation(e){return null!==this.sideOrientation?this.sideOrientation:e.sideOrientation}get transparencyMode(){return this._transparencyMode}set transparencyMode(e){this._transparencyMode!==e&&(this._transparencyMode=e,this._markAllSubMeshesAsTexturesAndMiscDirty())}get _hasTransparencyMode(){return null!=this._transparencyMode}get _transparencyModeIsBlend(){return this._transparencyMode===ej.MATERIAL_ALPHABLEND||this._transparencyMode===ej.MATERIAL_ALPHATESTANDBLEND}get _transparencyModeIsTest(){return this._transparencyMode===ej.MATERIAL_ALPHATEST||this._transparencyMode===ej.MATERIAL_ALPHATESTANDBLEND}get _disableAlphaBlending(){return this._transparencyMode===ej.MATERIAL_OPAQUE||this._transparencyMode===ej.MATERIAL_ALPHATEST}needAlphaBlending(){return this._hasTransparencyMode?this._transparencyModeIsBlend:!this._disableAlphaBlending&&this.alpha<1}needAlphaBlendingForMesh(e){return this._hasTransparencyMode?this._transparencyModeIsBlend:e.visibility<1||!this._disableAlphaBlending&&(e.hasVertexAlpha||this.needAlphaBlending())}needAlphaTesting(){return!!this._hasTransparencyMode&&this._transparencyModeIsTest}needAlphaTestingForMesh(e){return this._hasTransparencyMode?this._transparencyModeIsTest:!this.needAlphaBlendingForMesh(e)&&this.needAlphaTesting()}getAlphaTestTexture(){return null}markDirty(e=!1){for(let t of this.getScene().meshes)if(t.subMeshes){for(let i of t.subMeshes)if(i.getMaterial()===this)for(let t of i._drawWrappers)t&&this._materialContext===t.materialContext&&(t._wasPreviouslyReady=!1,t._wasPreviouslyUsingInstances=null,t._forceRebindOnNextCall=e)}e&&this.markAsDirty(ej.AllDirtyFlag)}_preBind(e,t=null){let i=this._scene.getEngine(),r=(null==t?this.sideOrientation:t)===ej.ClockWiseSideOrientation,s=e||this._getDrawWrapper();return(0,tD.IsWrapper)(s)&&s.materialContext&&(s.materialContext.useVertexPulling=this.useVertexPulling),i.enableEffect(s),i.setState(this.backFaceCulling,this.zOffset,!1,r,this._scene._mirroredCameraPosition?!this.cullBackFaces:this.cullBackFaces,this.stencil,this.zOffsetUnits),r}bind(e,t){}buildUniformLayout(){let e=this._uniformBuffer;this._eventInfo.ubo=e,this._callbackPluginEventGeneric(8,this._eventInfo),e.create(),this._uniformBufferLayoutBuilt=!0}bindForSubMesh(e,t,i){let r=i._drawWrapper;this._eventInfo.subMesh=i,this._callbackPluginEventBindForSubMesh(this._eventInfo),r._forceRebindOnNextCall=!1}bindOnlyWorldMatrix(e){}bindView(e){this._useUBO?this._needToBindSceneUbo=!0:e.setMatrix("view",this.getScene().getViewMatrix())}bindViewProjection(e){this._useUBO?this._needToBindSceneUbo=!0:(e.setMatrix("viewProjection",this.getScene().getTransformMatrix()),e.setMatrix("projection",this.getScene().getProjectionMatrix()),e.setMatrix("inverseProjection",this.getScene().getInverseProjectionMatrix()))}bindEyePosition(e,t){this._useUBO?this._needToBindSceneUbo=!0:this._scene.bindEyePosition(e,t)}_afterBind(e,t=null,i){if(this._scene._cachedMaterial=this,this._needToBindSceneUbo&&t&&(this._needToBindSceneUbo=!1,tb(t,this.getScene().getSceneUniformBuffer()),this._scene.finalizeSceneUbo()),e?this._scene._cachedVisibility=e.visibility:this._scene._cachedVisibility=1,this._onBindObservable&&e&&this._onBindObservable.notifyObservers(e),this.disableDepthWrite){let e=this._scene.getEngine();this._cachedDepthWriteState=e.getDepthWrite(),e.setDepthWrite(!1)}if(this.disableColorWrite){let e=this._scene.getEngine();this._cachedColorWriteState=e.getColorWrite(),e.setColorWrite(!1)}if(0!==this.depthFunction){let e=this._scene.getEngine();this._cachedDepthFunctionState=e.getDepthFunction()||0,e.setDepthFunction(this.depthFunction)}}unbind(){this._scene.getSceneUniformBuffer().unbindEffect(),this._onUnBindObservable&&this._onUnBindObservable.notifyObservers(this),0!==this.depthFunction&&this._scene.getEngine().setDepthFunction(this._cachedDepthFunctionState),this.disableDepthWrite&&this._scene.getEngine().setDepthWrite(this._cachedDepthWriteState),this.disableColorWrite&&this._scene.getEngine().setColorWrite(this._cachedColorWriteState)}getAnimatables(){return this._eventInfo.animatables=[],this._callbackPluginEventGeneric(256,this._eventInfo),this._eventInfo.animatables}getActiveTextures(){return this._eventInfo.activeTextures=[],this._callbackPluginEventGeneric(512,this._eventInfo),this._eventInfo.activeTextures}hasTexture(e){return this._eventInfo.hasTexture=!1,this._eventInfo.texture=e,this._callbackPluginEventGeneric(1024,this._eventInfo),this._eventInfo.hasTexture}clone(e){return null}_clonePlugins(e,t){let i={};if(this._serializePlugins(i),ej._ParsePlugins(i,e,this._scene,t),this.pluginManager)for(let t of this.pluginManager._plugins){let i=e.pluginManager.getPlugin(t.name);i&&t.copyTo(i)}}getBindedMeshes(){if(!this.meshMap)return this._scene.meshes.filter(e=>e.material===this);{let e=[];for(let t in this.meshMap){let i=this.meshMap[t];i&&e.push(i)}return e}}forceCompilation(e,t,i,r){let s={clipPlane:!1,useInstances:!1,...i},a=this.getScene(),n=this.allowShaderHotSwapping;this.allowShaderHotSwapping=!1;let l=()=>{if(!this._scene||!this._scene.getEngine())return;let i=a.clipPlane;if(s.clipPlane&&(a.clipPlane=new th.Plane(0,0,0,1)),this._storeEffectOnSubMeshes){let i=!0,a=null;if(e.subMeshes){let t=new tl(0,0,0,0,0,e,void 0,!1,!1);t.materialDefines&&(t.materialDefines._renderId=-1),this.isReadyForSubMesh(e,t,s.useInstances)||(t.effect&&t.effect.getCompilationError()&&t.effect.allFallbacksProcessed()?a=t.effect.getCompilationError():(i=!1,setTimeout(l,16)))}i&&(this.allowShaderHotSwapping=n,a&&r&&r(a),t&&t(this))}else this.isReady()?(this.allowShaderHotSwapping=n,t&&t(this)):setTimeout(l,16);s.clipPlane&&(a.clipPlane=i)};l()}async forceCompilationAsync(e,t){return await new Promise((i,r)=>{this.forceCompilation(e,()=>{i()},t,e=>{r(e)})})}markAsDirty(e){this.getScene().blockMaterialDirtyMechanism||this._blockDirtyMechanism||(ej._DirtyCallbackArray.length=0,e&ej.ImageProcessingDirtyFlag&&ej._DirtyCallbackArray.push(ej._ImageProcessingDirtyCallBack),e&ej.TextureDirtyFlag&&ej._DirtyCallbackArray.push(ej._TextureDirtyCallBack),e&ej.LightDirtyFlag&&ej._DirtyCallbackArray.push(ej._LightsDirtyCallBack),e&ej.FresnelDirtyFlag&&ej._DirtyCallbackArray.push(ej._FresnelDirtyCallBack),e&ej.AttributesDirtyFlag&&ej._DirtyCallbackArray.push(ej._AttributeDirtyCallBack),e&ej.MiscDirtyFlag&&ej._DirtyCallbackArray.push(ej._MiscDirtyCallBack),e&ej.PrePassDirtyFlag&&ej._DirtyCallbackArray.push(ej._PrePassDirtyCallBack),ej._DirtyCallbackArray.length&&this._markAllSubMeshesAsDirty(ej._RunDirtyCallBacks),this.getScene().resetCachedMaterial())}resetDrawCache(){for(let e of this.getScene().meshes)if(e.subMeshes)for(let t of e.subMeshes)t.getMaterial()===this&&t.resetDrawCache()}_markAllSubMeshesAsDirty(e){let t=this.getScene();if(!t.blockMaterialDirtyMechanism&&!this._blockDirtyMechanism){for(let i of t.meshes)if(i.subMeshes){for(let r of i.subMeshes)if((r.getMaterial()||(t._hasDefaultMaterial?t.defaultMaterial:null))===this)for(let t of r._drawWrappers)t&&t.defines&&t.defines.markAllAsDirty&&this._materialContext===t.materialContext&&e(t.defines)}}}_markScenePrePassDirty(){if(this.getScene().blockMaterialDirtyMechanism||this._blockDirtyMechanism)return;let e=this.getScene().enablePrePassRenderer();e&&e.markAsDirty()}_markAllSubMeshesAsAllDirty(){this._markAllSubMeshesAsDirty(ej._AllDirtyCallBack)}_markAllSubMeshesAsImageProcessingDirty(){this._markAllSubMeshesAsDirty(ej._ImageProcessingDirtyCallBack)}_markAllSubMeshesAsTexturesDirty(){this._markAllSubMeshesAsDirty(ej._TextureDirtyCallBack)}_markAllSubMeshesAsFresnelDirty(){this._markAllSubMeshesAsDirty(ej._FresnelDirtyCallBack)}_markAllSubMeshesAsFresnelAndMiscDirty(){this._markAllSubMeshesAsDirty(ej._FresnelAndMiscDirtyCallBack)}_markAllSubMeshesAsLightsDirty(){this._markAllSubMeshesAsDirty(ej._LightsDirtyCallBack)}_markAllSubMeshesAsAttributesDirty(){this._markAllSubMeshesAsDirty(ej._AttributeDirtyCallBack)}_markAllSubMeshesAsMiscDirty(){this._markAllSubMeshesAsDirty(ej._MiscDirtyCallBack)}_markAllSubMeshesAsPrePassDirty(){this._markAllSubMeshesAsDirty(ej._PrePassDirtyCallBack)}_markAllSubMeshesAsTexturesAndMiscDirty(){this._markAllSubMeshesAsDirty(ej._TextureAndMiscDirtyCallBack)}_checkScenePerformancePriority(){if(0!==this._scene.performancePriority){this.checkReadyOnlyOnce=!0;let e=this._scene.onScenePerformancePriorityChangedObservable.addOnce(()=>{this.checkReadyOnlyOnce=!1});this.onDisposeObservable.add(()=>{this._scene.onScenePerformancePriorityChangedObservable.remove(e)})}}setPrePassRenderer(e){return!1}dispose(e,t,i){let r=this.getScene();if(r.stopAnimation(this),r.freeProcessedMaterials(),r.removeMaterial(this),this._eventInfo.forceDisposeTextures=t,this._callbackPluginEventGeneric(2,this._eventInfo),this._parentContainer){let e=this._parentContainer.materials.indexOf(this);e>-1&&this._parentContainer.materials.splice(e,1),this._parentContainer=null}if(!0!==i)if(this.meshMap)for(let e in this.meshMap){let t=this.meshMap[e];this._disposeMeshResources(t)}else for(let e of r.meshes)this._disposeMeshResources(e);this._uniformBuffer.dispose(),this._drawWrapper.effect&&(this._storeEffectOnSubMeshes||this._drawWrapper.effect.dispose(),this._drawWrapper.effect=null),this.metadata=null,this.onDisposeObservable.notifyObservers(this),this.onDisposeObservable.clear(),this._onBindObservable&&this._onBindObservable.clear(),this._onUnBindObservable&&this._onUnBindObservable.clear(),this._onEffectCreatedObservable&&this._onEffectCreatedObservable.clear(),this._eventInfo&&(this._eventInfo={})}_disposeMeshResources(e){if(!e)return;let t=e.geometry,i=e._internalAbstractMeshDataInfo._materialForRenderPass;if(this._storeEffectOnSubMeshes){if(e.subMeshes&&i)for(let r of e.subMeshes){let e=r._drawWrappers;for(let s=0;s<e.length;s++){let a=e[s]?.effect;a&&i[s]===this&&(t?._releaseVertexArrayObject(a),r._removeDrawWrapper(s,!0,!0))}}}else t?._releaseVertexArrayObject(this._drawWrapper.effect);e.material!==this||e.sourceMesh||(e.material=null)}serialize(){let e=tu.SerializationHelper.Serialize(this);return e.stencil=this.stencil.serialize(),e.uniqueId=this.uniqueId,this._serializePlugins(e),e}_serializePlugins(e){if(e.plugins={},this.pluginManager)for(let t of this.pluginManager._plugins)t.doNotSerialize||(e.plugins[t.getClassName()]=t.serialize())}static ParseAlphaMode(e,t){void 0!==e._alphaMode?t._alphaMode=Array.isArray(e._alphaMode)?e._alphaMode:[e._alphaMode]:void 0!==e.alphaMode?t._alphaMode=Array.isArray(e.alphaMode)?e.alphaMode:[e.alphaMode]:t._alphaMode=[2]}static Parse(e,t,i){if(e.customType){if("BABYLON.PBRMaterial"===e.customType&&e.overloadedAlbedo&&(e.customType="BABYLON.LegacyPBRMaterial",!BABYLON.LegacyPBRMaterial))return tc.Logger.Error("Your scene is trying to load a legacy version of the PBRMaterial, please, include it from the materials library."),null}else e.customType="BABYLON.StandardMaterial";let r=eK.Tools.Instantiate(e.customType).Parse(e,t,i);return r._loadedUniqueId=e.uniqueId,ej.ParseAlphaMode(e,r),r}static _ParsePlugins(e,t,i,r){if(e.plugins)for(let s in e.plugins){let a=e.plugins[s],n=t.pluginManager?.getPlugin(a.name);if(!n){let e=eK.Tools.Instantiate("BABYLON."+s);e&&(n=new e(t))}n?.parse(a,i,r)}}},eX="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0,A=[(0,e$.serialize)()],T=[(0,e$.serialize)()],S=[(0,e$.serialize)()],M=[(0,e$.serialize)()],b=[(0,e$.serialize)()],I=[(0,e$.serialize)()],P=[(0,e$.serialize)()],R=[(0,e$.serialize)("alpha")],D=[(0,e$.serialize)("backFaceCulling")],x=[(0,e$.serialize)("textureRepetitionMode")],C=[(0,e$.serialize)("textureRepetitionHexTilingParams")],O=[(0,e$.serialize)("cullBackFaces")],L=[(0,e$.serialize)()],y=[(0,e$.serialize)()],F=[(0,e$.serialize)()],v=[(0,e$.serialize)()],N=[(0,e$.serialize)()],k=[(0,e$.serialize)()],B=[(0,e$.serialize)()],U=[(0,e$.serialize)()],H=[(0,e$.serialize)("fogEnabled")],W=[(0,e$.serialize)()],V=[(0,e$.serialize)()],z=[(0,e$.serialize)()],w=[(0,e$.serialize)()],G=[(0,e$.serialize)()],X=[(0,e$.serialize)()],Z=[(0,e$.serialize)()],Y=[(0,e$.serialize)()],(0,eQ.__esDecorate)(ej,null,w,{kind:"getter",name:"pointsCloud",static:!1,private:!1,access:{has:e=>"pointsCloud"in e,get:e=>e.pointsCloud},metadata:eX},null,j),(0,eQ.__esDecorate)(ej,null,G,{kind:"getter",name:"fillMode",static:!1,private:!1,access:{has:e=>"fillMode"in e,get:e=>e.fillMode},metadata:eX},null,j),(0,eQ.__esDecorate)(ej,null,X,{kind:"getter",name:"useLogarithmicDepth",static:!1,private:!1,access:{has:e=>"useLogarithmicDepth"in e,get:e=>e.useLogarithmicDepth},metadata:eX},null,j),(0,eQ.__esDecorate)(ej,null,Y,{kind:"getter",name:"transparencyMode",static:!1,private:!1,access:{has:e=>"transparencyMode"in e,get:e=>e.transparencyMode},metadata:eX},null,j),(0,eQ.__esDecorate)(null,null,A,{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:eX},q,Q),(0,eQ.__esDecorate)(null,null,T,{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:eX},$,K),(0,eQ.__esDecorate)(null,null,S,{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:eX},J,ee),(0,eQ.__esDecorate)(null,null,M,{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:eX},et,ei),(0,eQ.__esDecorate)(null,null,b,{kind:"field",name:"checkReadyOnEveryCall",static:!1,private:!1,access:{has:e=>"checkReadyOnEveryCall"in e,get:e=>e.checkReadyOnEveryCall,set:(e,t)=>{e.checkReadyOnEveryCall=t}},metadata:eX},er,es),(0,eQ.__esDecorate)(null,null,I,{kind:"field",name:"checkReadyOnlyOnce",static:!1,private:!1,access:{has:e=>"checkReadyOnlyOnce"in e,get:e=>e.checkReadyOnlyOnce,set:(e,t)=>{e.checkReadyOnlyOnce=t}},metadata:eX},ea,en),(0,eQ.__esDecorate)(null,null,P,{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:eX},el,eo),(0,eQ.__esDecorate)(null,null,R,{kind:"field",name:"_alpha",static:!1,private:!1,access:{has:e=>"_alpha"in e,get:e=>e._alpha,set:(e,t)=>{e._alpha=t}},metadata:eX},ec,eh),(0,eQ.__esDecorate)(null,null,D,{kind:"field",name:"_backFaceCulling",static:!1,private:!1,access:{has:e=>"_backFaceCulling"in e,get:e=>e._backFaceCulling,set:(e,t)=>{e._backFaceCulling=t}},metadata:eX},eu,ed),(0,eQ.__esDecorate)(null,null,x,{kind:"field",name:"_textureRepetitionMode",static:!1,private:!1,access:{has:e=>"_textureRepetitionMode"in e,get:e=>e._textureRepetitionMode,set:(e,t)=>{e._textureRepetitionMode=t}},metadata:eX},e_,ep),(0,eQ.__esDecorate)(null,null,C,{kind:"field",name:"textureRepetitionHexTilingParams",static:!1,private:!1,access:{has:e=>"textureRepetitionHexTilingParams"in e,get:e=>e.textureRepetitionHexTilingParams,set:(e,t)=>{e.textureRepetitionHexTilingParams=t}},metadata:eX},eE,em),(0,eQ.__esDecorate)(null,null,O,{kind:"field",name:"_cullBackFaces",static:!1,private:!1,access:{has:e=>"_cullBackFaces"in e,get:e=>e._cullBackFaces,set:(e,t)=>{e._cullBackFaces=t}},metadata:eX},ef,eg),(0,eQ.__esDecorate)(null,null,L,{kind:"field",name:"sideOrientation",static:!1,private:!1,access:{has:e=>"sideOrientation"in e,get:e=>e.sideOrientation,set:(e,t)=>{e.sideOrientation=t}},metadata:eX},eA,eT),(0,eQ.__esDecorate)(null,null,y,{kind:"field",name:"_alphaMode",static:!1,private:!1,access:{has:e=>"_alphaMode"in e,get:e=>e._alphaMode,set:(e,t)=>{e._alphaMode=t}},metadata:eX},eS,eM),(0,eQ.__esDecorate)(null,null,F,{kind:"field",name:"_needDepthPrePass",static:!1,private:!1,access:{has:e=>"_needDepthPrePass"in e,get:e=>e._needDepthPrePass,set:(e,t)=>{e._needDepthPrePass=t}},metadata:eX},eb,eI),(0,eQ.__esDecorate)(null,null,v,{kind:"field",name:"disableDepthWrite",static:!1,private:!1,access:{has:e=>"disableDepthWrite"in e,get:e=>e.disableDepthWrite,set:(e,t)=>{e.disableDepthWrite=t}},metadata:eX},eP,eR),(0,eQ.__esDecorate)(null,null,N,{kind:"field",name:"disableColorWrite",static:!1,private:!1,access:{has:e=>"disableColorWrite"in e,get:e=>e.disableColorWrite,set:(e,t)=>{e.disableColorWrite=t}},metadata:eX},eD,ex),(0,eQ.__esDecorate)(null,null,k,{kind:"field",name:"forceDepthWrite",static:!1,private:!1,access:{has:e=>"forceDepthWrite"in e,get:e=>e.forceDepthWrite,set:(e,t)=>{e.forceDepthWrite=t}},metadata:eX},eC,eO),(0,eQ.__esDecorate)(null,null,B,{kind:"field",name:"depthFunction",static:!1,private:!1,access:{has:e=>"depthFunction"in e,get:e=>e.depthFunction,set:(e,t)=>{e.depthFunction=t}},metadata:eX},eL,ey),(0,eQ.__esDecorate)(null,null,U,{kind:"field",name:"separateCullingPass",static:!1,private:!1,access:{has:e=>"separateCullingPass"in e,get:e=>e.separateCullingPass,set:(e,t)=>{e.separateCullingPass=t}},metadata:eX},eF,ev),(0,eQ.__esDecorate)(null,null,H,{kind:"field",name:"_fogEnabled",static:!1,private:!1,access:{has:e=>"_fogEnabled"in e,get:e=>e._fogEnabled,set:(e,t)=>{e._fogEnabled=t}},metadata:eX},eN,ek),(0,eQ.__esDecorate)(null,null,W,{kind:"field",name:"pointSize",static:!1,private:!1,access:{has:e=>"pointSize"in e,get:e=>e.pointSize,set:(e,t)=>{e.pointSize=t}},metadata:eX},eB,eU),(0,eQ.__esDecorate)(null,null,V,{kind:"field",name:"zOffset",static:!1,private:!1,access:{has:e=>"zOffset"in e,get:e=>e.zOffset,set:(e,t)=>{e.zOffset=t}},metadata:eX},eH,eW),(0,eQ.__esDecorate)(null,null,z,{kind:"field",name:"zOffsetUnits",static:!1,private:!1,access:{has:e=>"zOffsetUnits"in e,get:e=>e.zOffsetUnits,set:(e,t)=>{e.zOffsetUnits=t}},metadata:eX},eV,ez),(0,eQ.__esDecorate)(null,null,Z,{kind:"field",name:"_isVertexOutputInvariant",static:!1,private:!1,access:{has:e=>"_isVertexOutputInvariant"in e,get:e=>e._isVertexOutputInvariant,set:(e,t)=>{e._isVertexOutputInvariant=t}},metadata:eX},ew,eG),eX&&Object.defineProperty(ej,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:eX}),ej.TriangleFillMode=0,ej.WireFrameFillMode=1,ej.PointFillMode=2,ej.PointListDrawMode=3,ej.LineListDrawMode=4,ej.LineLoopDrawMode=5,ej.LineStripDrawMode=6,ej.TriangleStripDrawMode=7,ej.TriangleFanDrawMode=8,ej.ClockWiseSideOrientation=0,ej.CounterClockWiseSideOrientation=1,ej.ImageProcessingDirtyFlag=64,ej.TextureDirtyFlag=1,ej.LightDirtyFlag=2,ej.FresnelDirtyFlag=4,ej.AttributesDirtyFlag=8,ej.MiscDirtyFlag=16,ej.PrePassDirtyFlag=32,ej.AllDirtyFlag=127,ej.MATERIAL_OPAQUE=0,ej.MATERIAL_ALPHATEST=1,ej.MATERIAL_ALPHABLEND=2,ej.MATERIAL_ALPHATESTANDBLEND=3,ej.MATERIAL_NORMALBLENDMETHOD_WHITEOUT=0,ej.MATERIAL_NORMALBLENDMETHOD_RNM=1,ej.LIGHTFALLOFF_PHYSICAL=0,ej.LIGHTFALLOFF_GLTF=1,ej.LIGHTFALLOFF_STANDARD=2,ej.OnEventObservable=new eJ.Observable,ej.ForceVertexOutputInvariant=!1,ej._AllDirtyCallBack=e=>e.markAllAsDirty(),ej._ImageProcessingDirtyCallBack=e=>e.markAsImageProcessingDirty(),ej._TextureDirtyCallBack=e=>e.markAsTexturesDirty(),ej._FresnelDirtyCallBack=e=>e.markAsFresnelDirty(),ej._MiscDirtyCallBack=e=>e.markAsMiscDirty(),ej._PrePassDirtyCallBack=e=>e.markAsPrePassDirty(),ej._LightsDirtyCallBack=e=>e.markAsLightDirty(),ej._AttributeDirtyCallBack=e=>e.markAsAttributesDirty(),ej._FresnelAndMiscDirtyCallBack=e=>{ej._FresnelDirtyCallBack(e),ej._MiscDirtyCallBack(e)},ej._TextureAndMiscDirtyCallBack=e=>{ej._TextureDirtyCallBack(e),ej._MiscDirtyCallBack(e)},ej._DirtyCallbackArray=[],ej._RunDirtyCallBacks=e=>{for(let t of ej._DirtyCallbackArray)t(e)},ej);Object.getOwnPropertyDescriptor(tx.prototype,"pluginManager")||Object.defineProperty(tx.prototype,"pluginManager",(0,tn._MissingSideEffectProperty)("Material","pluginManager")),e.s(["Material",0,tx],7361)}]);
@@ -0,0 +1 @@
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,6045,e=>{"use strict";var t=e.i(57011),i=e.i(97009),s=e.i(99493);let c="sceneTick";class n extends t.FlowGraphEventBlock{constructor(){super(),this.type="SceneBeforeRender",this.timeSinceStart=this.registerDataOutput("timeSinceStart",i.RichTypeNumber),this.deltaTime=this.registerDataOutput("deltaTime",i.RichTypeNumber),this.eventRef=this.registerDataOutput("event",i.RichTypeString)}_updateOutputs(e){this.eventRef.setValue(e.getEventReference(c),e)}_preparePendingTasks(e){}_executeEvent(e,t){return this.timeSinceStart.setValue(t.timeSinceStart,e),this.deltaTime.setValue(t.deltaTime,e),this.eventRef.setValue(e.getEventReference(c),e),this._execute(e),!0}_cancelPendingTasks(e){}getClassName(){return"FlowGraphSceneTickEventBlock"}}let r=!1;function a(){r||(r=!0,(0,s.RegisterClass)("FlowGraphSceneTickEventBlock",n))}e.s(["FlowGraphSceneTickEventBlock",0,n,"RegisterFlowGraphSceneTickEventBlock",0,a],88739),a(),e.s([],29905),e.i(29905),e.i(88739),e.s(["FlowGraphSceneTickEventBlock",0,n],6045)}]);
@@ -0,0 +1 @@
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,6826,45737,e=>{"use strict";var t=e.i(72003),i=e.i(64073),a=e.i(46202);class r{constructor(e,t,i){this.name=e,this.from=t,this.to=i}clone(){return new r(this.name,this.from,this.to)}}e.s(["AnimationRange",0,r],45737);var n=e.i(75481),o=e.i(19696),s=e.i(16635),l=e.i(22832),c=e.i(99493);let h=Object.freeze(new t.Quaternion(0,0,0,0)),u=Object.freeze(t.Vector3.Zero()),d=Object.freeze(t.Vector2.Zero()),m=Object.freeze(o.Size.Zero()),p=Object.freeze(i.Color3.Black()),_=Object.freeze(new i.Color4(0,0,0,0)),f={key:0,repeatCount:0,loopMode:2};class T{static _PrepareAnimation(e,a,r,n,s,l,c,h){let u;if(!isNaN(parseFloat(s))&&isFinite(s)?u=T.ANIMATIONTYPE_FLOAT:s instanceof t.Quaternion?u=T.ANIMATIONTYPE_QUATERNION:s instanceof t.Vector3?u=T.ANIMATIONTYPE_VECTOR3:s instanceof t.Vector2?u=T.ANIMATIONTYPE_VECTOR2:s instanceof i.Color3?u=T.ANIMATIONTYPE_COLOR3:s instanceof i.Color4?u=T.ANIMATIONTYPE_COLOR4:s instanceof o.Size&&(u=T.ANIMATIONTYPE_SIZE),void 0==u)return null;let d=new T(e,a,r,u,c);return d.setKeys([{frame:0,value:s},{frame:n,value:l}]),void 0!==h&&d.setEasingFunction(h),d}get runtimeAnimations(){return this._runtimeAnimations}get hasRunningRuntimeAnimations(){for(let e of this._runtimeAnimations)if(!e.isStopped())return!0;return!1}constructor(e,t,i,a,r,n){this.name=e,this.targetProperty=t,this.framePerSecond=i,this.dataType=a,this.loopMode=r,this.enableBlending=n,this._easingFunction=null,this._runtimeAnimations=[],this._events=[],this.blendingSpeed=.01,this._ranges={},this._coreAnimation=null,this.targetPropertyPath=t.split("."),this.dataType=a,this.loopMode=void 0===r?T.ANIMATIONLOOPMODE_CYCLE:r,this.uniqueId=T._UniqueIdGenerator++}toString(e){let t="Name: "+this.name+", property: "+this.targetProperty;if(t+=", datatype: "+["Float","Vector3","Quaternion","Matrix","Color3","Vector2"][this.dataType],t+=", nKeys: "+(this._keys?this._keys.length:"none"),t+=", nRanges: "+(this._ranges?Object.keys(this._ranges).length:"none"),e){t+=", Ranges: {";let e=!0;for(let i in this._ranges)e||(t+=", "),e=!1,t+=i;t+="}"}return t}addEvent(e){this._events.push(e),this._events.sort((e,t)=>e.frame-t.frame)}removeEvents(e){for(let t=0;t<this._events.length;t++)this._events[t].frame===e&&(this._events.splice(t,1),t--)}getEvents(){return this._events}createRange(e,t,i){this._ranges[e]||(this._ranges[e]=new r(e,t,i))}deleteRange(e,t=!0){let i=this._ranges[e];if(i){if(t){let e=i.from,t=i.to;for(let i=this._keys.length-1;i>=0;i--)this._keys[i].frame>=e&&this._keys[i].frame<=t&&this._keys.splice(i,1)}this._ranges[e]=null}}getRange(e){return this._ranges[e]}getKeys(){return this._keys}getHighestFrame(){let e=0;for(let t=0,i=this._keys.length;t<i;t++)e<this._keys[t].frame&&(e=this._keys[t].frame);return e}getEasingFunction(){return this._easingFunction}setEasingFunction(e){this._easingFunction=e}floatInterpolateFunction(e,t,i){return(0,a.Lerp)(e,t,i)}floatInterpolateFunctionWithTangents(e,t,i,r,n){return(0,a.Hermite)(e,t,i,r,n)}quaternionInterpolateFunction(e,i,a){return t.Quaternion.Slerp(e,i,a)}quaternionInterpolateFunctionWithTangents(e,i,a,r,n){return t.Quaternion.Hermite(e,i,a,r,n).normalize()}vector3InterpolateFunction(e,i,a){return t.Vector3.Lerp(e,i,a)}vector3InterpolateFunctionWithTangents(e,i,a,r,n){return t.Vector3.Hermite(e,i,a,r,n)}vector2InterpolateFunction(e,i,a){return t.Vector2.Lerp(e,i,a)}vector2InterpolateFunctionWithTangents(e,i,a,r,n){return t.Vector2.Hermite(e,i,a,r,n)}sizeInterpolateFunction(e,t,i){return o.Size.Lerp(e,t,i)}color3InterpolateFunction(e,t,a){return i.Color3.Lerp(e,t,a)}color3InterpolateFunctionWithTangents(e,t,a,r,n){return i.Color3.Hermite(e,t,a,r,n)}color4InterpolateFunction(e,t,a){return i.Color4.Lerp(e,t,a)}color4InterpolateFunctionWithTangents(e,t,a,r,n){return i.Color4.Hermite(e,t,a,r,n)}_getKeyValue(e){return"function"==typeof e?e():e}evaluate(e){return f.key=0,this._interpolate(e,f)}_interpolate(e,t,i=!1){let a;if(t.loopMode===T.ANIMATIONLOOPMODE_CONSTANT&&t.repeatCount>0)return t.highLimitValue.clone?t.highLimitValue.clone():t.highLimitValue;let r=this._keys;if(this._coreAnimation)a=this._coreAnimation._key;else{let n=r.length;for(a=t.key;a>=0&&e<r[a].frame;)--a;for(;a+1<=n-1&&e>=r[a+1].frame;)++a;if(t.key=a,a<0)return i?void 0:this._getKeyValue(r[0].value);if(a+1>n-1)return i?void 0:this._getKeyValue(r[n-1].value);this._key=a}let n=r[a],o=r[a+1];if(i&&(e===n.frame||e===o.frame))return;let s=this._getKeyValue(n.value),l=this._getKeyValue(o.value);if(1===n.interpolation)if(o.frame>e)return s;else return l;let c=void 0!==n.outTangent&&void 0!==o.inTangent,f=o.frame-n.frame,g=(e-n.frame)/f,I=n.easingFunction||this.getEasingFunction();switch(I&&(g=I.ease(g)),this.dataType){case T.ANIMATIONTYPE_FLOAT:{let e=c?this.floatInterpolateFunctionWithTangents(s,n.outTangent*f,l,o.inTangent*f,g):this.floatInterpolateFunction(s,l,g);switch(t.loopMode){case T.ANIMATIONLOOPMODE_CYCLE:case T.ANIMATIONLOOPMODE_CONSTANT:case T.ANIMATIONLOOPMODE_YOYO:return e;case T.ANIMATIONLOOPMODE_RELATIVE:case T.ANIMATIONLOOPMODE_RELATIVE_FROM_CURRENT:return(t.offsetValue??0)*t.repeatCount+e}break}case T.ANIMATIONTYPE_QUATERNION:{let e=c?this.quaternionInterpolateFunctionWithTangents(s,n.outTangent.scale(f),l,o.inTangent.scale(f),g):this.quaternionInterpolateFunction(s,l,g);switch(t.loopMode){case T.ANIMATIONLOOPMODE_CYCLE:case T.ANIMATIONLOOPMODE_CONSTANT:case T.ANIMATIONLOOPMODE_YOYO:break;case T.ANIMATIONLOOPMODE_RELATIVE:case T.ANIMATIONLOOPMODE_RELATIVE_FROM_CURRENT:return e.addInPlace((t.offsetValue||h).scale(t.repeatCount))}return e}case T.ANIMATIONTYPE_VECTOR3:{let e=c?this.vector3InterpolateFunctionWithTangents(s,n.outTangent.scale(f),l,o.inTangent.scale(f),g):this.vector3InterpolateFunction(s,l,g);switch(t.loopMode){case T.ANIMATIONLOOPMODE_CYCLE:case T.ANIMATIONLOOPMODE_CONSTANT:case T.ANIMATIONLOOPMODE_YOYO:return e;case T.ANIMATIONLOOPMODE_RELATIVE:case T.ANIMATIONLOOPMODE_RELATIVE_FROM_CURRENT:return e.add((t.offsetValue||u).scale(t.repeatCount))}break}case T.ANIMATIONTYPE_VECTOR2:{let e=c?this.vector2InterpolateFunctionWithTangents(s,n.outTangent.scale(f),l,o.inTangent.scale(f),g):this.vector2InterpolateFunction(s,l,g);switch(t.loopMode){case T.ANIMATIONLOOPMODE_CYCLE:case T.ANIMATIONLOOPMODE_CONSTANT:case T.ANIMATIONLOOPMODE_YOYO:return e;case T.ANIMATIONLOOPMODE_RELATIVE:case T.ANIMATIONLOOPMODE_RELATIVE_FROM_CURRENT:return e.add((t.offsetValue||d).scale(t.repeatCount))}break}case T.ANIMATIONTYPE_SIZE:switch(t.loopMode){case T.ANIMATIONLOOPMODE_CYCLE:case T.ANIMATIONLOOPMODE_CONSTANT:case T.ANIMATIONLOOPMODE_YOYO:return this.sizeInterpolateFunction(s,l,g);case T.ANIMATIONLOOPMODE_RELATIVE:case T.ANIMATIONLOOPMODE_RELATIVE_FROM_CURRENT:return this.sizeInterpolateFunction(s,l,g).add((t.offsetValue||m).scale(t.repeatCount))}break;case T.ANIMATIONTYPE_COLOR3:{let e=c?this.color3InterpolateFunctionWithTangents(s,n.outTangent.scale(f),l,o.inTangent.scale(f),g):this.color3InterpolateFunction(s,l,g);switch(t.loopMode){case T.ANIMATIONLOOPMODE_CYCLE:case T.ANIMATIONLOOPMODE_CONSTANT:case T.ANIMATIONLOOPMODE_YOYO:return e;case T.ANIMATIONLOOPMODE_RELATIVE:case T.ANIMATIONLOOPMODE_RELATIVE_FROM_CURRENT:return e.add((t.offsetValue||p).scale(t.repeatCount))}break}case T.ANIMATIONTYPE_COLOR4:{let e=c?this.color4InterpolateFunctionWithTangents(s,n.outTangent.scale(f),l,o.inTangent.scale(f),g):this.color4InterpolateFunction(s,l,g);switch(t.loopMode){case T.ANIMATIONLOOPMODE_CYCLE:case T.ANIMATIONLOOPMODE_CONSTANT:case T.ANIMATIONLOOPMODE_YOYO:return e;case T.ANIMATIONLOOPMODE_RELATIVE:case T.ANIMATIONLOOPMODE_RELATIVE_FROM_CURRENT:return e.add((t.offsetValue||_).scale(t.repeatCount))}break}case T.ANIMATIONTYPE_MATRIX:switch(t.loopMode){case T.ANIMATIONLOOPMODE_CYCLE:case T.ANIMATIONLOOPMODE_CONSTANT:case T.ANIMATIONLOOPMODE_YOYO:if(T.AllowMatricesInterpolation)return this.matrixInterpolateFunction(s,l,g,t.workValue);return s;case T.ANIMATIONLOOPMODE_RELATIVE:case T.ANIMATIONLOOPMODE_RELATIVE_FROM_CURRENT:return s}}return 0}matrixInterpolateFunction(e,i,a,r){return T.AllowMatrixDecomposeForInterpolation?r?(t.Matrix.DecomposeLerpToRef(e,i,a,r),r):t.Matrix.DecomposeLerp(e,i,a):r?(t.Matrix.LerpToRef(e,i,a,r),r):t.Matrix.Lerp(e,i,a)}clone(e=!1){let t=new T(this.name,this.targetPropertyPath.join("."),this.framePerSecond,this.dataType,this.loopMode);if(t.enableBlending=this.enableBlending,t.blendingSpeed=this.blendingSpeed,this._keys&&t.setKeys(this._keys,!1,e),this._ranges)for(let e in t._ranges={},this._ranges){let i=this._ranges[e];i&&(t._ranges[e]=i.clone())}return t}setKeys(e,t=!1,i=!1){if(t)this._keys=e;else if(this._keys=e.slice(0),i)for(let e=0;e<this._keys.length;e++){let t=this._keys[e];this._keys[e]={frame:t.frame,value:t.value.clone?t.value.clone():t.value,inTangent:t.inTangent&&t.inTangent.clone?t.inTangent.clone():t.inTangent,outTangent:t.outTangent&&t.outTangent.clone?t.outTangent.clone():t.outTangent,interpolation:t.interpolation,lockedTangent:t.lockedTangent,easingFunction:t.easingFunction}}}createKeyForFrame(e){f.key=0;let t=this._interpolate(e,f,!0);if(!t)return this._keys[f.key].frame===e?f.key:f.key+1;let i={frame:e,value:t.clone?t.clone():t};return this._keys.splice(f.key+1,0,i),f.key+1}serialize(){let e={};e.name=this.name,e.property=this.targetProperty,e.framePerSecond=this.framePerSecond,e.dataType=this.dataType,e.loopBehavior=this.loopMode,e.enableBlending=this.enableBlending,e.blendingSpeed=this.blendingSpeed;let t=this.dataType;e.keys=[];let i=this.getKeys();for(let a=0;a<i.length;a++){let r=i[a],n={};switch(n.frame=r.frame,t){case T.ANIMATIONTYPE_FLOAT:n.values=[r.value],void 0!==r.inTangent&&n.values.push(r.inTangent),void 0!==r.outTangent&&(void 0===r.inTangent&&n.values.push(void 0),n.values.push(r.outTangent)),void 0!==r.interpolation&&(void 0===r.inTangent&&n.values.push(void 0),void 0===r.outTangent&&n.values.push(void 0),n.values.push(r.interpolation));break;case T.ANIMATIONTYPE_QUATERNION:case T.ANIMATIONTYPE_MATRIX:case T.ANIMATIONTYPE_VECTOR3:case T.ANIMATIONTYPE_COLOR3:case T.ANIMATIONTYPE_COLOR4:n.values=r.value.asArray(),void 0!=r.inTangent&&n.values.push(r.inTangent.asArray()),void 0!=r.outTangent&&(void 0===r.inTangent&&n.values.push(void 0),n.values.push(r.outTangent.asArray())),void 0!==r.interpolation&&(void 0===r.inTangent&&n.values.push(void 0),void 0===r.outTangent&&n.values.push(void 0),n.values.push(r.interpolation))}e.keys.push(n)}for(let t in e.ranges=[],this._ranges){let i=this._ranges[t];if(!i)continue;let a={};a.name=t,a.from=i.from,a.to=i.to,e.ranges.push(a)}return e}static _UniversalLerp(e,t,i){let a=e.constructor;return a.Lerp?a.Lerp(e,t,i):a.Slerp?a.Slerp(e,t,i):e.toFixed?e*(1-i)+i*t:t}}function g(e,i,a,r=!1,n){let o,s=e;(o="object"==typeof i?i:{referenceFrame:i??0,range:a,cloneOriginalAnimation:r,clonedAnimationName:n}).cloneOriginalAnimation&&((s=e.clone()).name=o.clonedAnimationName||s.name);let l=s.getKeys();if(!l.length)return s;let c=o.referenceFrame&&o.referenceFrame>=0?o.referenceFrame:0,h=0,u=l[0],d=l.length-1,m=l[d],p={referenceValue:u.value,referencePosition:t.TmpVectors.Vector3[0],referenceQuaternion:t.TmpVectors.Quaternion[0],referenceScaling:t.TmpVectors.Vector3[1],keyPosition:t.TmpVectors.Vector3[2],keyQuaternion:t.TmpVectors.Quaternion[1],keyScaling:t.TmpVectors.Vector3[3]},_=u.frame,I=m.frame;if(o.range){let e=s.getRange(o.range);e&&(_=e.from,I=e.to)}else _=o.fromFrame??_,I=o.toFrame??I;_!==u.frame&&(h=s.createKeyForFrame(_)),I!==m.frame&&(d=s.createKeyForFrame(I));let O=s.getKeys();if(1===O.length){let e=s._getKeyValue(O[0]);p.referenceValue=e.clone?e.clone():e}else if(c<=u.frame){let e=s._getKeyValue(u.value);p.referenceValue=e.clone?e.clone():e}else if(c>=m.frame){let e=s._getKeyValue(m.value);p.referenceValue=e.clone?e.clone():e}else{f.key=0;let e=s._interpolate(c,f);p.referenceValue=e.clone?e.clone():e}s.dataType===T.ANIMATIONTYPE_QUATERNION?p.referenceValue.normalize().conjugateInPlace():s.dataType===T.ANIMATIONTYPE_MATRIX&&(p.referenceValue.decompose(p.referenceScaling,p.referenceQuaternion,p.referencePosition),p.referenceQuaternion.normalize().conjugateInPlace());let A=Number.MAX_VALUE,M=o.clipKeys?[]:null;for(let e=h;e<=d;e++){let i=O[e];if((M||o.cloneOriginalAnimation)&&(i={frame:i.frame,value:i.value.clone?i.value.clone():i.value,inTangent:i.inTangent,outTangent:i.outTangent,interpolation:i.interpolation,lockedTangent:i.lockedTangent,easingFunction:i.easingFunction},M&&(A===Number.MAX_VALUE&&(A=i.frame),i.frame-=A,M.push(i))),!e||s.dataType===T.ANIMATIONTYPE_FLOAT||i.value!==u.value)switch(s.dataType){case T.ANIMATIONTYPE_MATRIX:i.value.decompose(p.keyScaling,p.keyQuaternion,p.keyPosition),p.keyPosition.subtractInPlace(p.referencePosition),p.keyScaling.divideInPlace(p.referenceScaling),p.referenceQuaternion.multiplyToRef(p.keyQuaternion,p.keyQuaternion),t.Matrix.ComposeToRef(p.keyScaling,p.keyQuaternion,p.keyPosition,i.value);break;case T.ANIMATIONTYPE_QUATERNION:p.referenceValue.multiplyToRef(i.value,i.value);break;case T.ANIMATIONTYPE_VECTOR2:case T.ANIMATIONTYPE_VECTOR3:case T.ANIMATIONTYPE_COLOR3:case T.ANIMATIONTYPE_COLOR4:i.value.subtractToRef(p.referenceValue,i.value);break;case T.ANIMATIONTYPE_SIZE:i.value.width-=p.referenceValue.width,i.value.height-=p.referenceValue.height;break;default:i.value-=p.referenceValue}}return M&&s.setKeys(M,!0),s}function I(e,t,i,a){let r=new T(e+"Animation",e,i,t,T.ANIMATIONLOOPMODE_CONSTANT);return r.setEasingFunction(a),r}function O(e,t,i,a,r,n,o,s,l,c,h){let u=T._PrepareAnimation(e,i,a,r,n,o,s,l);return u&&(t.getScene&&(h=t.getScene()),h)?h.beginDirectAnimation(t,[u],0,r,u.loopMode!==T.ANIMATIONLOOPMODE_CONSTANT,1,c):null}function A(e,t,i,a,r,n,o,s,l,c,h){let u=T._PrepareAnimation(e,a,r,n,o,s,l,c);return u?t.getScene().beginDirectHierarchyAnimation(t,i,[u],0,n,1===u.loopMode,1,h):null}function M(e,t,i,a,r,n,o,s,l,c){let h=T._PrepareAnimation(e,i,a,r,n,o,s,l);return h?(t.animations.push(h),t.getScene().beginAnimation(t,0,r,1===h.loopMode,1,c)):null}function y(e,t,i,a,r,n,o,s=null,l=!0,c){if(o<=0)return i[e]=t,s&&s(),null;let h=o/1e3*r;return n.setKeys(c??[{frame:0,value:i[e].clone?i[e].clone():i[e]},{frame:h,value:t}]),i.animations||(i.animations=[]),i.animations.push(n),a.beginAnimation(i,0,h,!1,1,s??void 0,void 0,l)}function R(e,t){l.SerializationHelper.AppendSerializedAnimations(e,t)}function E(e){let a,r,n=new T(e.name,e.property,e.framePerSecond,e.dataType,e.loopBehavior),o=e.dataType,s=[];for(e.enableBlending&&(n.enableBlending=e.enableBlending),e.blendingSpeed&&(n.blendingSpeed=e.blendingSpeed),r=0;r<e.keys.length;r++){let n,l,c,h=e.keys[r];switch(o){case T.ANIMATIONTYPE_FLOAT:a=h.values[0],h.values.length>=2&&(n=h.values[1]),h.values.length>=3&&(l=h.values[2]),h.values.length>=4&&(c=h.values[3]);break;case T.ANIMATIONTYPE_QUATERNION:if(a=t.Quaternion.FromArray(h.values),h.values.length>=8){let e=t.Quaternion.FromArray(h.values.slice(4,8));e.equals(t.Quaternion.Zero())||(n=e)}if(h.values.length>=12){let e=t.Quaternion.FromArray(h.values.slice(8,12));e.equals(t.Quaternion.Zero())||(l=e)}h.values.length>=13&&(c=h.values[12]);break;case T.ANIMATIONTYPE_MATRIX:a=t.Matrix.FromArray(h.values),h.values.length>=17&&(c=h.values[16]);break;case T.ANIMATIONTYPE_COLOR3:a=i.Color3.FromArray(h.values),h.values[3]&&(n=i.Color3.FromArray(h.values[3])),h.values[4]&&(l=i.Color3.FromArray(h.values[4])),h.values[5]&&(c=h.values[5]);break;case T.ANIMATIONTYPE_COLOR4:a=i.Color4.FromArray(h.values),h.values[4]&&(n=i.Color4.FromArray(h.values[4])),h.values[5]&&(l=i.Color4.FromArray(h.values[5])),h.values[6]&&(c=i.Color4.FromArray(h.values[6]));break;case T.ANIMATIONTYPE_VECTOR3:default:a=t.Vector3.FromArray(h.values),h.values[3]&&(n=t.Vector3.FromArray(h.values[3])),h.values[4]&&(l=t.Vector3.FromArray(h.values[4])),h.values[5]&&(c=h.values[5])}let u={};u.frame=h.frame,u.value=a,void 0!=n&&(u.inTangent=n),void 0!=l&&(u.outTangent=l),void 0!=c&&(u.interpolation=c),s.push(u)}if(n.setKeys(s),e.ranges)for(r=0;r<e.ranges.length;r++)a=e.ranges[r],n.createRange(a.name,a.from,a.to);return n}async function N(e,t){return await new Promise((i,a)=>{let r=new s.WebRequest;r.addEventListener("readystatechange",()=>{if(4==r.readyState)if(200==r.status){let t=JSON.parse(r.responseText);if(t.animations&&(t=t.animations),t.length){let e=[];for(let i of t)e.push(E(i));i(e)}else{let a=E(t);e&&(a.name=e),i(a)}}else a("Unable to load the animation")}),r.open("GET",t),r.send()})}async function P(e){let t=this?.SnippetUrl??T.SnippetUrl;return await new Promise((i,a)=>{let r=new s.WebRequest;r.addEventListener("readystatechange",()=>{if(4==r.readyState)if(200==r.status){let t=JSON.parse(JSON.parse(r.responseText).jsonPayload);if(t.animations){let a=JSON.parse(t.animations),r=[];for(let t of a.animations){let i=E(t);i.snippetId=e,r.push(i)}i(r)}else{let a=E(JSON.parse(t.animation));a.snippetId=e,i(a)}}else a("Unable to load the snippet "+e)}),r.open("GET",t+"/"+e.replace(/#/g,"/")),r.send()})}T._UniqueIdGenerator=0,T.AllowMatricesInterpolation=!1,T.AllowMatrixDecomposeForInterpolation=!0,T.InheritOriginalValueFromActiveAnimations=!1,T.SnippetUrl="https://snippet.babylonjs.com",T.ANIMATIONTYPE_FLOAT=0,T.ANIMATIONTYPE_VECTOR3=1,T.ANIMATIONTYPE_QUATERNION=2,T.ANIMATIONTYPE_MATRIX=3,T.ANIMATIONTYPE_COLOR3=4,T.ANIMATIONTYPE_COLOR4=7,T.ANIMATIONTYPE_VECTOR2=5,T.ANIMATIONTYPE_SIZE=6,T.ANIMATIONLOOPMODE_RELATIVE=0,T.ANIMATIONLOOPMODE_CYCLE=1,T.ANIMATIONLOOPMODE_CONSTANT=2,T.ANIMATIONLOOPMODE_YOYO=4,T.ANIMATIONLOOPMODE_RELATIVE_FROM_CURRENT=5;let v=!1;e.s(["Animation",0,T,"AnimationCreateAnimation",0,I,"AnimationMakeAnimationAdditive",0,g,"AnimationParse",0,E,"RegisterAnimation",0,function(){v||(v=!0,T.Parse=E,T.ParseFromFileAsync=N,T.ParseFromSnippetAsync=P,T.CreateFromSnippetAsync=P,T.CreateAnimation=I,T.CreateAndStartAnimation=O,T.CreateAndStartHierarchyAnimation=A,T.CreateMergeAndStartAnimation=M,T.MakeAnimationAdditive=g,T.TransitionTo=y,T.AppendSerializedAnimations=R,(0,c.RegisterClass)("BABYLON.Animation",T),n.Node._AnimationRangeFactory=(e,t,i)=>new r(e,t,i))},"_StaticOffsetValueColor3",0,p,"_StaticOffsetValueColor4",0,_,"_StaticOffsetValueQuaternion",0,h,"_StaticOffsetValueSize",0,m,"_StaticOffsetValueVector2",0,d,"_StaticOffsetValueVector3",0,u],6826)},11822,98651,22427,2262,e=>{"use strict";let t,i,a,r,n,o,s,l,c,h,u,d,m,p;var _,f=e.i(4112),T=e.i(91679),g=e.i(51509),I=e.i(72003),O=e.i(26747),A=e.i(92356);class M{constructor(e,t,i){this._cameraPosition=t,this._behavior=i,this.activeInput=!1,this.speed=1,this.zoomSpeed=1,this.panSpeed=1,this.rotationXSpeed=1,this.rotationYSpeed=1,this._zoomSpeedMultiplier=1,this._panSpeedMultiplier=1,this.zoomInertia=.9,this.panInertia=.9,this.rotationInertia=.9,this.zoomAccumulatedPixels=0,this.panAccumulatedPixels=new I.Vector3,this.rotationAccumulatedPixels=new I.Vector3,this.zoomDeltaCurrentFrame=0,this.panDeltaCurrentFrame=I.Vector3.Zero(),this.rotationDeltaCurrentFrame=I.Vector3.Zero(),this._zoomVelocity=0,this._panVelocity=new I.Vector3,this.referenceFrameRate=60,this._rotationVelocity=new I.Vector3,this._prevFrameTimeMs=0,this._scene=e}computeCurrentFrameDeltas(){let e=this._scene.getEngine().getDeltaTime(),t=this._getEffectiveDeltaMs(e);if(0===this._zoomVelocity&&0===this.zoomAccumulatedPixels&&0===this._panVelocity.x&&0===this._panVelocity.y&&0===this._panVelocity.z&&0===this.panAccumulatedPixels.x&&0===this.panAccumulatedPixels.y&&0===this.panAccumulatedPixels.z&&0===this._rotationVelocity.x&&0===this._rotationVelocity.y&&0===this._rotationVelocity.z&&0===this.rotationAccumulatedPixels.x&&0===this.rotationAccumulatedPixels.y&&0===this.rotationAccumulatedPixels.z&&!this.activeInput){this.panDeltaCurrentFrame.setAll(0),this.rotationDeltaCurrentFrame.setAll(0),this.zoomDeltaCurrentFrame=0,e>0&&(this._prevFrameTimeMs=e);return}this.panDeltaCurrentFrame.setAll(0),this.rotationDeltaCurrentFrame.setAll(0),this.zoomDeltaCurrentFrame=0,(this.panAccumulatedPixels.lengthSquared()>0||this.rotationAccumulatedPixels.lengthSquared()>0||0!==this.zoomAccumulatedPixels)&&this._behavior?.isInterpolating&&this._behavior.stopAllAnimations(),this._panVelocity.copyFromFloats(this._calculateCurrentVelocity(this._panVelocity.x,this.panAccumulatedPixels.x,this.panInertia),this._calculateCurrentVelocity(this._panVelocity.y,this.panAccumulatedPixels.y,this.panInertia),this._calculateCurrentVelocity(this._panVelocity.z,this.panAccumulatedPixels.z,this.panInertia)),this._panVelocity.scaleToRef(this.speed*this.panSpeed*this._panSpeedMultiplier*t,this.panDeltaCurrentFrame),this._rotationVelocity.copyFromFloats(this._calculateCurrentVelocity(this._rotationVelocity.x,this.rotationAccumulatedPixels.x,this.rotationInertia),this._calculateCurrentVelocity(this._rotationVelocity.y,this.rotationAccumulatedPixels.y,this.rotationInertia),this._calculateCurrentVelocity(this._rotationVelocity.z,this.rotationAccumulatedPixels.z,this.rotationInertia)),this.rotationDeltaCurrentFrame.copyFromFloats(this._rotationVelocity.x*this.speed*this.rotationXSpeed*t,this._rotationVelocity.y*this.speed*this.rotationYSpeed*t,0),this._zoomVelocity=this._calculateCurrentVelocity(this._zoomVelocity,this.zoomAccumulatedPixels,this.zoomInertia),this.zoomDeltaCurrentFrame=this._zoomVelocity*(this.speed*this.zoomSpeed*this._zoomSpeedMultiplier)*t,e>0&&(this._prevFrameTimeMs=e),this.zoomAccumulatedPixels=0,this.panAccumulatedPixels.setAll(0),this.rotationAccumulatedPixels.setAll(0),this.activeInput=!1}resetRotationVelocity(){this._rotationVelocity.setAll(0),this.rotationAccumulatedPixels.setAll(0)}resetPanVelocity(){this._panVelocity.setAll(0),this.panAccumulatedPixels.setAll(0)}resetZoomVelocity(){this._zoomVelocity=0,this.zoomAccumulatedPixels=0}get isInterpolating(){return!!this._behavior?.isInterpolating}getFrameIndependentDecay(e){let t=this._scene.getEngine().getDeltaTime();return Math.pow(e,this._getEffectiveDeltaMs(t)/(1e3/this.referenceFrameRate))}getFrameIndependentInputScale(e){let t=1-e;return t<=0?1:(1-this.getFrameIndependentDecay(e))/t}_getEffectiveDeltaMs(e){return e>0?e:this._prevFrameTimeMs>0?this._prevFrameTimeMs:1e3/this.referenceFrameRate}_calculateCurrentVelocity(e,t,i){let a=e,r=this._scene.getEngine().getDeltaTime(),n=this._getEffectiveDeltaMs(r);if(0===n)return a;let o=this.getFrameIndependentDecay(i);if(a*=o,0!==t||this.activeInput){let e=1-i;a+=t/n*(e>0?(1-o)/e:1)}else 1e-6>Math.abs(a)&&(a=0);return a}}e.s(["CameraMovement",0,M],98651);class y{constructor(e,t){this.inputMap=[],this.handlers=e,this._createDefaultEntries=t,this.resetInputMap()}resolveInteraction(e,t){for(let i of this.inputMap)if(i.source===e&&this._entryMatches(i,t))return i;return null}resetInputMap(){this.inputMap=this._createDefaultEntries?.()??[]}getEntry(e,t,i){let a=this.inputMap;for(let r=0;r<a.length;r++){let n=a[r];if(n.source===e&&n.interaction===t&&this._entryConditionsMatch(n,i))return n}}getEntries(e,t,i){let a=[],r=this.inputMap;for(let n=0;n<r.length;n++){let o=r[n];o.source===e&&o.interaction===t&&this._entryConditionsMatch(o,i)&&a.push(o)}return a}addEntry(e){let t=this._entrySpecificity(e),i=this.inputMap.length;for(let e=0;e<this.inputMap.length;e++)if(this._entrySpecificity(this.inputMap[e])<t){i=e;break}this.inputMap.splice(i,0,e)}setInteraction(e,t,i){let a=this.resolveInteraction(e,t);return a&&this._entryCoversAllConditionsOf(a,t)?a.interaction=i:this.addEntry({source:e,...t??{},interaction:i}),!0}_entryCoversAllConditionsOf(e,t){if(!t)return!0;for(let i of Object.keys(t)){let a=t[i];if(void 0!==a){if("modifiers"===i){let t=e.modifiers??{};for(let e of Object.keys(a))if(void 0!==a[e]&&void 0===t[e])return!1}else if(void 0===e[i])return!1}}return!0}setInteractions(e,t,i){let a=0,r=this.inputMap;for(let n=0;n<r.length;n++){let o=r[n];o.source===e&&this._entryMatches(o,t)&&(o.interaction=i,a++)}return a}_entryMatches(e,t){switch(e.source){case"pointer":if(void 0!==e.button&&e.button!==t?.button)return!1;return this._matchModifiers(e.modifiers,t?.modifiers);case"wheel":return this._matchModifiers(e.modifiers,t?.modifiers);case"touch":if(void 0!==e.touchCount&&e.touchCount!==t?.touchCount)return!1;return!0;case"keyboard":if(void 0!==e.key&&(Array.isArray(e.key)?-1===e.key.indexOf(t?.key??-1):e.key!==t?.key))return!1;return this._matchModifiers(e.modifiers,t?.modifiers)}}_entryConditionsMatch(e,t){if(!t)return!0;switch(e.source){case"pointer":if("button"in t&&e.button!==t.button)return!1;return!("modifiers"in t)||this._entryModifiersMatch(e.modifiers,t.modifiers);case"wheel":return!("modifiers"in t)||this._entryModifiersMatch(e.modifiers,t.modifiers);case"touch":return!("touchCount"in t)||e.touchCount===t.touchCount;case"keyboard":if("key"in t){if(void 0===e.key)return void 0===t.key;if(void 0===t.key||(Array.isArray(e.key)?-1===e.key.indexOf(t.key):e.key!==t.key))return!1}return!("modifiers"in t)||this._entryModifiersMatch(e.modifiers,t.modifiers)}}_entrySpecificity(e){let t=0;return"button"in e&&void 0!==e.button&&t++,"key"in e&&void 0!==e.key&&t++,"touchCount"in e&&void 0!==e.touchCount&&t++,"modifiers"in e&&e.modifiers&&t++,t}_matchModifiers(e,t){return!e||(void 0===e.ctrl||e.ctrl===(t?.ctrl??!1))&&(void 0===e.shift||e.shift===(t?.shift??!1))&&(void 0===e.alt||e.alt===(t?.alt??!1))}_entryModifiersMatch(e,t){return t?void 0===t.ctrl&&void 0===t.shift&&void 0===t.alt?!e||void 0===e.ctrl&&void 0===e.shift&&void 0===e.alt:(void 0===t.ctrl||e?.ctrl===t.ctrl)&&(void 0===t.shift||e?.shift===t.shift)&&(void 0===t.alt||e?.alt===t.alt):!e}}e.s(["InputMapper",0,y],22427);class R extends M{constructor(e,t,i){super(e,t,i),this.input=new y({translate:(e,t,i)=>{this.panAccumulatedPixels.x+=e,this.panAccumulatedPixels.y+=t,this.panAccumulatedPixels.z+=i},rotate:(e,t)=>{this.rotationAccumulatedPixels.x+=e,this.rotationAccumulatedPixels.y+=t}},()=>this._createDefaultInputMap())}_createDefaultInputMap(){return[{source:"pointer",interaction:"rotate"},{source:"keyboard",interaction:"translate"},{source:"keyboard",interaction:"rotate"},{source:"touch",interaction:"rotate"},{source:"touch",interaction:"translate"}]}}let E=I.Matrix.Zero(),N=I.Quaternion.Identity(),P=(n=g.Camera,o=[],s=[],l=[],c=[],h=[],u=[],d=[],m=[],_=class extends n{get inertia(){return this._targetInertia}set inertia(e){this._targetInertia=e,this.movement&&(this.movement.panInertia=e,this.movement.rotationInertia=e)}constructor(e,t,i,a=!0){super(e,t,i,a),this.cameraDirection=new I.Vector3(0,0,0),this.cameraRotation=new I.Vector2(0,0),this._targetInertia=.9,this.updateUpVectorFromRotation=(0,f.__runInitializers)(this,o,!1),this.rotation=((0,f.__runInitializers)(this,s),(0,f.__runInitializers)(this,l,void 0)),this.rotationQuaternion=(0,f.__runInitializers)(this,c),this.speed=(0,f.__runInitializers)(this,h,2),this.noRotationConstraint=((0,f.__runInitializers)(this,u),!1),this.invertRotation=!1,this.inverseRotationSpeed=.2,this._panningEpsilon=O.Epsilon,this._rotationEpsilon=O.Epsilon,this.lockedTarget=(0,f.__runInitializers)(this,d,null),this._currentTarget=((0,f.__runInitializers)(this,m),I.Vector3.Zero()),this._initialFocalDistance=1,this._viewMatrix=I.Matrix.Zero(),this._cameraTransformMatrix=I.Matrix.Zero(),this._cameraRotationMatrix=I.Matrix.Zero(),this._transformedReferencePoint=I.Vector3.Zero(),this._deferredPositionUpdate=new I.Vector3,this._deferredRotationQuaternionUpdate=new I.Quaternion,this._deferredRotationUpdate=new I.Vector3,this._deferredUpdated=!1,this._deferOnly=!1,this._cachedRotationZ=0,this._cachedQuaternionRotationZ=0,this._referencePoint=I.Vector3.Forward(this.getScene().useRightHandedSystem),this.rotation=new I.Vector3(0,this.getScene().useRightHandedSystem?Math.PI:0,0),this.movement=new R(this.getScene(),this.position),this.movement.panInertia=this.inertia,this.movement.rotationInertia=this.inertia}getFrontPosition(e){this.getWorldMatrix();let t=I.TmpVectors.Vector3[0],i=I.TmpVectors.Vector3[1];return i.set(0,0,this._scene.useRightHandedSystem?-1:1),this.getDirectionToRef(i,t),t.scaleInPlace(e),this.globalPosition.add(t)}_getLockedTargetPosition(){if(!this.lockedTarget)return null;if(this.lockedTarget.absolutePosition){let e=this.lockedTarget;e.computeWorldMatrix().getTranslationToRef(e.absolutePosition)}return this.lockedTarget.absolutePosition||this.lockedTarget}storeState(){return this._storedPosition=this.position.clone(),this._storedRotation=this.rotation.clone(),this.rotationQuaternion&&(this._storedRotationQuaternion=this.rotationQuaternion.clone()),super.storeState()}_restoreStateValues(){return!!super._restoreStateValues()&&(this.position=this._storedPosition.clone(),this.rotation=this._storedRotation.clone(),this.rotationQuaternion&&this._storedRotationQuaternion&&(this.rotationQuaternion=this._storedRotationQuaternion.clone()),this.cameraDirection.copyFromFloats(0,0,0),this.cameraRotation.copyFromFloats(0,0),!0)}_initCache(){super._initCache(),this._cache.lockedTarget=new I.Vector3(Number.MAX_VALUE,Number.MAX_VALUE,Number.MAX_VALUE),this._cache.rotation=new I.Vector3(Number.MAX_VALUE,Number.MAX_VALUE,Number.MAX_VALUE),this._cache.rotationQuaternion=new I.Quaternion(Number.MAX_VALUE,Number.MAX_VALUE,Number.MAX_VALUE,Number.MAX_VALUE)}_updateCache(e){e||super._updateCache();let t=this._getLockedTargetPosition();t?this._cache.lockedTarget?this._cache.lockedTarget.copyFrom(t):this._cache.lockedTarget=t.clone():this._cache.lockedTarget=null,this._cache.rotation.copyFrom(this.rotation),this.rotationQuaternion&&this._cache.rotationQuaternion.copyFrom(this.rotationQuaternion)}_isSynchronizedViewMatrix(){if(!super._isSynchronizedViewMatrix())return!1;let e=this._getLockedTargetPosition();return(this._cache.lockedTarget?this._cache.lockedTarget.equals(e):!e)&&(this.rotationQuaternion?this.rotationQuaternion.equals(this._cache.rotationQuaternion):this._cache.rotation.equals(this.rotation))}_computeLocalCameraSpeed(){let e=this.getEngine();return this.speed*Math.sqrt(e.getDeltaTime()/(100*e.getFps()))}setTarget(e){this.upVector.normalize(),this._initialFocalDistance=e.subtract(this.position).length(),this.position.z===e.z&&(this.position.z+=O.Epsilon),this._referencePoint.normalize().scaleInPlace(this._initialFocalDistance),this.getScene().useRightHandedSystem?I.Matrix.LookAtRHToRef(this.position,e,I.Vector3.UpReadOnly,E):I.Matrix.LookAtLHToRef(this.position,e,I.Vector3.UpReadOnly,E),E.invert();let t=this.rotationQuaternion||N;I.Quaternion.FromRotationMatrixToRef(E,t),t.toEulerAnglesToRef(this.rotation),this.rotation.z=0}get target(){return this.getTarget()}set target(e){this.setTarget(e)}getTarget(){return this._currentTarget}_decideIfNeedsToMove(){return Math.abs(this.cameraDirection.x)>0||Math.abs(this.cameraDirection.y)>0||Math.abs(this.cameraDirection.z)>0}_updatePosition(){if(this.parent){this.parent.getWorldMatrix().invertToRef(I.TmpVectors.Matrix[0]),I.Vector3.TransformNormalToRef(this.cameraDirection,I.TmpVectors.Matrix[0],I.TmpVectors.Vector3[0]),this._deferredPositionUpdate.addInPlace(I.TmpVectors.Vector3[0]),this._deferOnly?this._deferredUpdated=!0:this.position.copyFrom(this._deferredPositionUpdate);return}this._deferredPositionUpdate.addInPlace(this.cameraDirection),this._deferOnly?this._deferredUpdated=!0:this.position.copyFrom(this._deferredPositionUpdate)}_checkInputs(){let e=this.movement,t=0!==this.cameraDirection.x||0!==this.cameraDirection.y||0!==this.cameraDirection.z;e.panAccumulatedPixels.addInPlace(this.cameraDirection),e.rotationAccumulatedPixels.x+=this.cameraRotation.x,e.rotationAccumulatedPixels.y+=this.cameraRotation.y,e.computeCurrentFrameDeltas(),this.cameraDirection.copyFrom(e.panDeltaCurrentFrame),this.cameraRotation.set(e.rotationDeltaCurrentFrame.x,e.rotationDeltaCurrentFrame.y);let i=this.speed*this._panningEpsilon;!t&&Math.abs(this.cameraDirection.x)<i&&Math.abs(this.cameraDirection.y)<i&&Math.abs(this.cameraDirection.z)<i&&(this.cameraDirection.setAll(0),e.resetPanVelocity());let a=this.invertRotation?-this.inverseRotationSpeed:1,r=this._decideIfNeedsToMove(),n=!!(this.cameraRotation.x||this.cameraRotation.y);this._deferredUpdated=!1,this._deferredRotationUpdate.copyFrom(this.rotation),this._deferredPositionUpdate.copyFrom(this.position),this.rotationQuaternion&&this._deferredRotationQuaternionUpdate.copyFrom(this.rotationQuaternion),r&&this._updatePosition(),n&&(this.rotationQuaternion&&this.rotationQuaternion.toEulerAnglesToRef(this._deferredRotationUpdate),this._deferredRotationUpdate.x+=this.cameraRotation.x*a,this._deferredRotationUpdate.y+=this.cameraRotation.y*a,!this.noRotationConstraint&&(this._deferredRotationUpdate.x>1.570796&&(this._deferredRotationUpdate.x=1.570796),this._deferredRotationUpdate.x<-1.570796&&(this._deferredRotationUpdate.x=-1.570796)),this._deferOnly?this._deferredUpdated=!0:this.rotation.copyFrom(this._deferredRotationUpdate),this.rotationQuaternion&&this._deferredRotationUpdate.lengthSquared()&&(I.Quaternion.RotationYawPitchRollToRef(this._deferredRotationUpdate.y,this._deferredRotationUpdate.x,this._deferredRotationUpdate.z,this._deferredRotationQuaternionUpdate),this._deferOnly?this._deferredUpdated=!0:this.rotationQuaternion.copyFrom(this._deferredRotationQuaternionUpdate))),this.cameraDirection.setAll(0),this.cameraRotation.set(0,0),super._checkInputs()}_updateCameraRotationMatrix(){this.rotationQuaternion?this.rotationQuaternion.toRotationMatrix(this._cameraRotationMatrix):I.Matrix.RotationYawPitchRollToRef(this.rotation.y,this.rotation.x,this.rotation.z,this._cameraRotationMatrix)}_rotateUpVectorWithCameraRotationMatrix(){return I.Vector3.TransformNormalToRef(I.Vector3.UpReadOnly,this._cameraRotationMatrix,this.upVector),this}_getViewMatrix(){return this.lockedTarget&&this.setTarget(this._getLockedTargetPosition()),this._updateCameraRotationMatrix(),this.rotationQuaternion&&this._cachedQuaternionRotationZ!=this.rotationQuaternion.z?(this._rotateUpVectorWithCameraRotationMatrix(),this._cachedQuaternionRotationZ=this.rotationQuaternion.z):this._cachedRotationZ!==this.rotation.z&&(this._rotateUpVectorWithCameraRotationMatrix(),this._cachedRotationZ=this.rotation.z),I.Vector3.TransformCoordinatesToRef(this._referencePoint,this._cameraRotationMatrix,this._transformedReferencePoint),this.position.addToRef(this._transformedReferencePoint,this._currentTarget),this.updateUpVectorFromRotation&&(this.rotationQuaternion?A.Axis.Y.rotateByQuaternionToRef(this.rotationQuaternion,this.upVector):(I.Quaternion.FromEulerVectorToRef(this.rotation,N),A.Axis.Y.rotateByQuaternionToRef(N,this.upVector))),this._computeViewMatrix(this.position,this._currentTarget,this.upVector),this._viewMatrix}_computeViewMatrix(e,t,i){if(this.getScene().useRightHandedSystem?I.Matrix.LookAtRHToRef(e,t,i,this._viewMatrix):I.Matrix.LookAtLHToRef(e,t,i,this._viewMatrix),this.parent){let e=this.parent.getWorldMatrix();this._viewMatrix.invert(),this._viewMatrix.multiplyToRef(e,this._viewMatrix),this._viewMatrix.invert(),this._markSyncedWithParent()}}createRigCamera(e,t){if(this.cameraRigMode!==g.Camera.RIG_MODE_NONE){let t=new _(e,this.position.clone(),this.getScene());return t.isRigCamera=!0,t.rigParent=this,this.cameraRigMode===g.Camera.RIG_MODE_VR&&(this.rotationQuaternion||(this.rotationQuaternion=new I.Quaternion),t._cameraRigParams={},t.rotationQuaternion=new I.Quaternion),t.mode=this.mode,t.orthoLeft=this.orthoLeft,t.orthoRight=this.orthoRight,t.orthoTop=this.orthoTop,t.orthoBottom=this.orthoBottom,t}return null}_updateRigCameras(){let e=this._rigCameras[0],t=this._rigCameras[1];switch(this.computeWorldMatrix(),this.cameraRigMode){case g.Camera.RIG_MODE_STEREOSCOPIC_ANAGLYPH:case g.Camera.RIG_MODE_STEREOSCOPIC_SIDEBYSIDE_PARALLEL:case g.Camera.RIG_MODE_STEREOSCOPIC_SIDEBYSIDE_CROSSEYED:case g.Camera.RIG_MODE_STEREOSCOPIC_OVERUNDER:case g.Camera.RIG_MODE_STEREOSCOPIC_INTERLACED:{let i=this.cameraRigMode===g.Camera.RIG_MODE_STEREOSCOPIC_SIDEBYSIDE_CROSSEYED?1:-1,a=this.cameraRigMode===g.Camera.RIG_MODE_STEREOSCOPIC_SIDEBYSIDE_CROSSEYED?-1:1;this._getRigCamPositionAndTarget(this._cameraRigParams.stereoHalfAngle*i,e),this._getRigCamPositionAndTarget(this._cameraRigParams.stereoHalfAngle*a,t);break}case g.Camera.RIG_MODE_VR:e.rotationQuaternion&&t.rotationQuaternion&&this.rotationQuaternion?(e.rotationQuaternion.copyFrom(this.rotationQuaternion),t.rotationQuaternion.copyFrom(this.rotationQuaternion)):(e.rotation.copyFrom(this.rotation),t.rotation.copyFrom(this.rotation)),e.position.copyFrom(this.position),t.position.copyFrom(this.position)}super._updateRigCameras()}_getRigCamPositionAndTarget(e,t){this.getTarget().subtractToRef(this.position,_._TargetFocalPoint),_._TargetFocalPoint.normalize().scaleInPlace(this._initialFocalDistance);let i=_._TargetFocalPoint.addInPlace(this.position);I.Matrix.TranslationToRef(-i.x,-i.y,-i.z,_._TargetTransformMatrix),_._TargetTransformMatrix.multiplyToRef(I.Matrix.RotationAxis(t.upVector,e),_._RigCamTransformMatrix),I.Matrix.TranslationToRef(i.x,i.y,i.z,_._TargetTransformMatrix),_._RigCamTransformMatrix.multiplyToRef(_._TargetTransformMatrix,_._RigCamTransformMatrix),I.Vector3.TransformCoordinatesToRef(this.position,_._RigCamTransformMatrix,t.position),t.setTarget(i)}getClassName(){return"TargetCamera"}},p="function"==typeof Symbol&&Symbol.metadata?Object.create(n[Symbol.metadata]??null):void 0,t=[(0,T.serialize)()],i=[(0,T.serializeAsVector3)()],a=[(0,T.serialize)()],r=[(0,T.serializeAsMeshReference)("lockedTargetId")],(0,f.__esDecorate)(null,null,t,{kind:"field",name:"updateUpVectorFromRotation",static:!1,private:!1,access:{has:e=>"updateUpVectorFromRotation"in e,get:e=>e.updateUpVectorFromRotation,set:(e,t)=>{e.updateUpVectorFromRotation=t}},metadata:p},o,s),(0,f.__esDecorate)(null,null,i,{kind:"field",name:"rotation",static:!1,private:!1,access:{has:e=>"rotation"in e,get:e=>e.rotation,set:(e,t)=>{e.rotation=t}},metadata:p},l,c),(0,f.__esDecorate)(null,null,a,{kind:"field",name:"speed",static:!1,private:!1,access:{has:e=>"speed"in e,get:e=>e.speed,set:(e,t)=>{e.speed=t}},metadata:p},h,u),(0,f.__esDecorate)(null,null,r,{kind:"field",name:"lockedTarget",static:!1,private:!1,access:{has:e=>"lockedTarget"in e,get:e=>e.lockedTarget,set:(e,t)=>{e.lockedTarget=t}},metadata:p},d,m),p&&Object.defineProperty(_,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:p}),_._RigCamTransformMatrix=new I.Matrix,_._TargetTransformMatrix=new I.Matrix,_._TargetFocalPoint=new I.Vector3,_);e.s(["TargetCamera",0,P],11822);var v=e.i(85789),V=e.i(22832),C={};e.s(["CameraInputTypes",0,C,"CameraInputsManager",0,class{constructor(e){this.attachedToElement=!1,this.attached={},this.camera=e,this.checkInputs=()=>{}}add(e){let t=e.getSimpleName();this.attached[t]?v.Logger.Warn("camera input of type "+t+" already exists on camera"):(this.attached[t]=e,e.camera=this.camera,e.checkInputs&&(this.checkInputs=this._addCheckInputs(e.checkInputs.bind(e))),this.attachedToElement&&e.attachControl(this.noPreventDefault))}remove(e){for(let t in this.attached){let i=this.attached[t];if(i===e){i.detachControl(),i.camera=null,delete this.attached[t],this.rebuildInputCheck();return}}}removeByType(e){for(let t in this.attached){let i=this.attached[t];i.getClassName()===e&&(i.detachControl(),i.camera=null,delete this.attached[t],this.rebuildInputCheck())}}_addCheckInputs(e){let t=this.checkInputs;return()=>{t(),e()}}attachInput(e){this.attachedToElement&&e.attachControl(this.noPreventDefault)}attachElement(e=!1){if(!this.attachedToElement)for(let t in e=!g.Camera.ForceAttachControlToAlwaysPreventDefault&&e,this.attachedToElement=!0,this.noPreventDefault=e,this.attached)this.attached[t].attachControl(e)}detachElement(e=!1){for(let t in this.attached)this.attached[t].detachControl(),e&&(this.attached[t].camera=null);this.attachedToElement=!1}rebuildInputCheck(){for(let e in this.checkInputs=()=>{},this.attached){let t=this.attached[e];t.checkInputs&&(this.checkInputs=this._addCheckInputs(t.checkInputs.bind(t)))}}clear(){this.attachedToElement&&this.detachElement(!0),this.attached={},this.attachedToElement=!1,this.checkInputs=()=>{}}serialize(e){let t={};for(let e in this.attached){let i=this.attached[e],a=V.SerializationHelper.Serialize(i);t[i.getClassName()]=a}e.inputsmgr=t}parse(e){let t=e.inputsmgr;if(t)for(let e in this.clear(),t){let i=C[e];if(i){let a=t[e],r=V.SerializationHelper.Parse(()=>new i,a,null);this.add(r)}}else for(let t in this.attached){let i=C[this.attached[t].getClassName()];if(i){let a=V.SerializationHelper.Parse(()=>new i,e,null);this.remove(this.attached[t]),this.add(a)}}}}],2262)},67018,e=>{"use strict";e.s(["IntersectionInfo",0,class{constructor(e,t,i){this.bu=e,this.bv=t,this.distance=i,this.faceId=0,this.subMeshId=0,this._internalSubMeshId=0}}])},79428,e=>{"use strict";var t=e.i(72003),i=e.i(56145);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,a=!0){let r;if(!this.pickedMesh||a&&!this.pickedMesh.isVerticesDataPresent(i.VertexBuffer.NormalKind))return null;let n=this.pickedMesh.getIndices();n?.length===0&&(n=null);let o=t.TmpVectors.Vector3[0],s=t.TmpVectors.Vector3[1],l=t.TmpVectors.Vector3[2];if(a){let e=this.pickedMesh.getVerticesData(i.VertexBuffer.NormalKind),a=n?t.Vector3.FromArrayToRef(e,3*n[3*this.faceId],o):o.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],s):s.copyFromFloats(e[(3*this.faceId+1)*3],e[(3*this.faceId+1)*3+1],e[(3*this.faceId+1)*3+2]),h=n?t.Vector3.FromArrayToRef(e,3*n[3*this.faceId+2],l):l.copyFromFloats(e[(3*this.faceId+2)*3],e[(3*this.faceId+2)*3+1],e[(3*this.faceId+2)*3+2]);a=a.scale(this.bu),c=c.scale(this.bv),h=h.scale(1-this.bu-this.bv),r=new t.Vector3(a.x+c.x+h.x,a.y+c.y+h.y,a.z+c.z+h.z)}else{let e=this.pickedMesh.getVerticesData(i.VertexBuffer.PositionKind),a=n?t.Vector3.FromArrayToRef(e,3*n[3*this.faceId],o):o.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],s):s.copyFromFloats(e[(3*this.faceId+1)*3],e[(3*this.faceId+1)*3+1],e[(3*this.faceId+1)*3+2]),h=n?t.Vector3.FromArrayToRef(e,3*n[3*this.faceId+2],l):l.copyFromFloats(e[(3*this.faceId+2)*3],e[(3*this.faceId+2)*3+1],e[(3*this.faceId+2)*3+2]),u=a.subtract(c),d=h.subtract(c);r=t.Vector3.Cross(u,d)}let c=(e,i)=>{if(-1!==this.thinInstanceIndex){let a=e._thinInstanceDataStorage.matrixData,r=this.thinInstanceIndex<<4;if(a&&a.length>r){let e=t.TmpVectors.Matrix[0];t.Matrix.FromArrayToRef(a,r,e),t.Vector3.TransformNormalToRef(i,e,i)}}let a=e.getWorldMatrix();e.nonUniformScaling&&(t.TmpVectors.Matrix[0].copyFrom(a),(a=t.TmpVectors.Matrix[0]).setTranslationFromFloats(0,0,0),a.invert(),a.transposeToRef(t.TmpVectors.Matrix[1]),a=t.TmpVectors.Matrix[1]),t.Vector3.TransformNormalToRef(i,a,i)};if(e&&c(this.pickedMesh,r),this.ray){let i=t.TmpVectors.Vector3[0].copyFrom(r);e||c(this.pickedMesh,i),t.Vector3.Dot(i,this.ray.direction)>0&&r.negateInPlace()}return r.normalize(),r}getTextureCoordinates(e=i.VertexBuffer.UVKind){if(!this.pickedMesh||!this.pickedMesh.isVerticesDataPresent(e))return null;let a=this.pickedMesh.getIndices();if(!a)return null;let r=this.pickedMesh.getVerticesData(e);if(!r)return null;let n=t.Vector2.FromArray(r,2*a[3*this.faceId]),o=t.Vector2.FromArray(r,2*a[3*this.faceId+1]),s=t.Vector2.FromArray(r,2*a[3*this.faceId+2]);return n=n.scale(this.bu),o=o.scale(this.bv),s=s.scale(1-this.bu-this.bv),new t.Vector2(n.x+o.x+s.x,n.y+o.y+s.y)}}])},58773,e=>{"use strict";e.s(["useOpenGLOrientationForUV",()=>!1])},30958,e=>{"use strict";var t,i;(i=t||(t={}))[i.PointerMove=0]="PointerMove",i[i.PointerDown=1]="PointerDown",i[i.PointerUp=2]="PointerUp";class a{}a.DOM_DELTA_PIXEL=0,a.DOM_DELTA_LINE=1,a.DOM_DELTA_PAGE=2,e.s(["EventConstants",0,a])},43003,e=>{"use strict";class t{}t.KEYDOWN=1,t.KEYUP=2;class i{constructor(e,t){this.type=e,this.event=t}}e.s(["KeyboardEventTypes",0,t,"KeyboardInfo",0,i,"KeyboardInfoPre",0,class extends i{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}}])},37405,e=>{"use strict";var t=e.i(72003);class i{}i.POINTERDOWN=1,i.POINTERUP=2,i.POINTERMOVE=4,i.POINTERWHEEL=8,i.POINTERPICK=16,i.POINTERTAP=32,i.POINTERDOUBLETAP=64;class a{constructor(e,t){this.type=e,this.event=t}}e.s(["PointerEventTypes",0,i,"PointerInfo",0,class extends a{get pickInfo(){return this._pickInfo||this._generatePickInfo(),this._pickInfo}constructor(e,t,i,a=null){super(e,t),this._pickInfo=i,this._inputManager=a}_generatePickInfo(){this._inputManager&&(this._pickInfo=this._inputManager._pickMove(this.event),this._inputManager._setRayOnPointerInfo(this._pickInfo,this.event),this._inputManager=null)}},"PointerInfoPre",0,class extends a{constructor(e,i,a,r){super(e,i),this.ray=null,this.originalPickingInfo=null,this.skipOnPointerObservable=!1,this.localPosition=new t.Vector2(a,r)}}])},54523,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])},9977,e=>{"use strict";var t=e.i(32945);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,i=!0){this.effect=e,void 0!==t&&(this.defines=t),i&&this.drawContext?.reset()}dispose(e=!1){if(this.effect){let i=this.effect;e?i.dispose():t.TimingTools.SetImmediate(()=>{i.getEngine().onEndFrameObservable.addOnce(()=>{i.dispose()})}),this.effect=null}this.drawContext?.dispose()}}])},92356,e=>{"use strict";var t,i,a,r,n=e.i(72003);(t=a||(a={}))[t.LOCAL=0]="LOCAL",t[t.WORLD=1]="WORLD",t[t.BONE=2]="BONE";class o{}o.X=new n.Vector3(1,0,0),o.Y=new n.Vector3(0,1,0),o.Z=new n.Vector3(0,0,1),(i=r||(r={}))[i.X=0]="X",i[i.Y=1]="Y",i[i.Z=2]="Z",e.s(["Axis",0,o,"Coordinate",0,r,"Space",0,a])},63833,e=>{"use strict";var t=e.i(1306);class i{static GetPlanes(e){let a=[];for(let e=0;e<6;e++)a.push(new t.Plane(0,0,0,0));return i.GetPlanesToRef(e,a),a}static GetNearPlaneToRef(e,t){let i=e.m;t.normal.x=i[3]+i[2],t.normal.y=i[7]+i[6],t.normal.z=i[11]+i[10],t.d=i[15]+i[14],t.normalize()}static GetFarPlaneToRef(e,t){let i=e.m;t.normal.x=i[3]-i[2],t.normal.y=i[7]-i[6],t.normal.z=i[11]-i[10],t.d=i[15]-i[14],t.normalize()}static GetLeftPlaneToRef(e,t){let i=e.m;t.normal.x=i[3]+i[0],t.normal.y=i[7]+i[4],t.normal.z=i[11]+i[8],t.d=i[15]+i[12],t.normalize()}static GetRightPlaneToRef(e,t){let i=e.m;t.normal.x=i[3]-i[0],t.normal.y=i[7]-i[4],t.normal.z=i[11]-i[8],t.d=i[15]-i[12],t.normalize()}static GetTopPlaneToRef(e,t){let i=e.m;t.normal.x=i[3]-i[1],t.normal.y=i[7]-i[5],t.normal.z=i[11]-i[9],t.d=i[15]-i[13],t.normalize()}static GetBottomPlaneToRef(e,t){let i=e.m;t.normal.x=i[3]+i[1],t.normal.y=i[7]+i[5],t.normal.z=i[11]+i[9],t.d=i[15]+i[13],t.normalize()}static GetPlanesToRef(e,t){i.GetNearPlaneToRef(e,t[0]),i.GetFarPlaneToRef(e,t[1]),i.GetLeftPlaneToRef(e,t[2]),i.GetRightPlaneToRef(e,t[3]),i.GetTopPlaneToRef(e,t[4]),i.GetBottomPlaneToRef(e,t[5])}static IsPointInFrustum(e,t){for(let i=0;i<6;i++)if(0>t[i].dotCoordinate(e))return!1;return!0}}e.s(["Frustum",0,i])},19696,e=>{"use strict";e.s(["Size",0,class e{constructor(e,t){this.width=e,this.height=t}toString(){return`{W: ${this.width}, H: ${this.height}}`}getClassName(){return"Size"}getHashCode(){let e=0|this.width;return 397*e^this.height}copyFrom(e){this.width=e.width,this.height=e.height}copyFromFloats(e,t){return this.width=e,this.height=t,this}set(e,t){return this.copyFromFloats(e,t)}multiplyByFloats(t,i){return new e(this.width*t,this.height*i)}clone(){return new e(this.width,this.height)}equals(e){return!!e&&this.width===e.width&&this.height===e.height}get surface(){return this.width*this.height}static Zero(){return new e(0,0)}add(t){return new e(this.width+t.width,this.height+t.height)}subtract(t){return new e(this.width-t.width,this.height-t.height)}scale(t){return new e(this.width*t,this.height*t)}static Lerp(t,i,a){return new e(t.width+(i.width-t.width)*a,t.height+(i.height-t.height)*a)}}])}]);
@@ -1,4 +1,4 @@
1
- (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,45193,e=>{"use strict";var t=e.i(47150);let r="proceduralVertexShader",i=`attribute position: vec2f;varying vPosition: vec2f;varying vUV: vec2f;const madd: vec2f= vec2f(0.5,0.5);
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,64630,e=>{"use strict";var t=e.i(2342);let r="proceduralVertexShader",i=`attribute position: vec2f;varying vPosition: vec2f;varying vUV: vec2f;const madd: vec2f= vec2f(0.5,0.5);
2
2
  #define CUSTOM_VERTEX_DEFINITIONS
3
3
  @vertex
4
4
  fn main(input : VertexInputs)->FragmentInputs {
@@ -1 +1 @@
1
- (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,14435,t=>{"use strict";var o=t.i(62478),e=t.i(75105),s=t.i(44520);class i extends o.FlowGraphExecutionBlockWithOutSignal{constructor(t){super(t),this.sound=this.registerDataInput("sound",e.RichTypeAny)}_execute(t,o){let e=this.sound.getValue(t);if(!e){this._reportError(t,"No sound provided"),this.out._activateSignal(t);return}e.stop(),this.out._activateSignal(t)}getClassName(){return"FlowGraphStopSoundBlock"}}let r=!1;function u(){r||(r=!0,(0,s.RegisterClass)("FlowGraphStopSoundBlock",i))}t.s(["FlowGraphStopSoundBlock",0,i,"RegisterFlowGraphStopSoundBlock",0,u],91957),u(),t.s([],43522),t.i(43522),t.i(91957),t.s(["FlowGraphStopSoundBlock",0,i],14435)}]);
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,67935,t=>{"use strict";var o=t.i(20552),e=t.i(97009),s=t.i(99493);class i extends o.FlowGraphExecutionBlockWithOutSignal{constructor(t){super(t),this.sound=this.registerDataInput("sound",e.RichTypeAny)}_execute(t,o){let e=this.sound.getValue(t);if(!e){this._reportError(t,"No sound provided"),this.out._activateSignal(t);return}e.stop(),this.out._activateSignal(t)}getClassName(){return"FlowGraphStopSoundBlock"}}let r=!1;function u(){r||(r=!0,(0,s.RegisterClass)("FlowGraphStopSoundBlock",i))}t.s(["FlowGraphStopSoundBlock",0,i,"RegisterFlowGraphStopSoundBlock",0,u],10065),u(),t.s([],79085),t.i(79085),t.i(10065),t.s(["FlowGraphStopSoundBlock",0,i],67935)}]);
@@ -0,0 +1 @@
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,78147,e=>{"use strict";var t=e.i(97009),i=e.i(17484),l=e.i(99493);class s extends i.FlowGraphCachedOperationBlock{constructor(e){super(t.RichTypeNumber,e),this.sound=this.registerDataInput("sound",t.RichTypeAny)}_doOperation(e){let t=this.sound.getValue(e);if(t)return t.volume}getClassName(){return"FlowGraphGetSoundVolumeBlock"}}let u=!1;function a(){u||(u=!0,(0,l.RegisterClass)("FlowGraphGetSoundVolumeBlock",s))}e.s(["FlowGraphGetSoundVolumeBlock",0,s,"RegisterFlowGraphGetSoundVolumeBlock",0,a],78638),a(),e.s([],97792),e.i(97792),e.i(78638),e.s(["FlowGraphGetSoundVolumeBlock",0,s],78147)},17484,e=>{"use strict";var t=e.i(37096),i=e.i(97009);let l="cachedOperationValue",s="cachedExecutionId";class u extends t.FlowGraphBlock{constructor(e,t){super(t),this._outputRichType=e,this.value=this.registerDataOutput("value",e),this.isValid=this.registerDataOutput("isValid",i.RichTypeBoolean)}_getInvalidOutputValue(e){let t=this._outputRichType.defaultValue,i=t?.clone;return"function"==typeof i?i.call(t):t}_updateOutputs(e){let t=e._getExecutionVariable(this,s,-1),i=e._getExecutionVariable(this,l,null);if(null!=i&&t===e.executionId)this.isValid.setValue(!0,e),this.value.setValue(i,e);else try{let t=this._doOperation(e);if(null==t)return void this._setInvalid(e);e._setExecutionVariable(this,l,t),e._setExecutionVariable(this,s,e.executionId),this.value.setValue(t,e),this.isValid.setValue(!0,e)}catch(t){this._setInvalid(e)}}_setInvalid(e){this.isValid.setValue(!1,e),this.value.setValue(this._getInvalidOutputValue(e),e)}}e.s(["FlowGraphCachedOperationBlock",0,u])}]);
@@ -0,0 +1 @@
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,67256,t=>{"use strict";var e=t.i(40974);class s{constructor(){this._easingMode=s.EASINGMODE_EASEIN}setEasingMode(t){let e=Math.min(Math.max(t,0),2);this._easingMode=e}getEasingMode(){return this._easingMode}easeInCore(t){throw Error("You must implement this method")}ease(t){switch(this._easingMode){case s.EASINGMODE_EASEIN:return this.easeInCore(t);case s.EASINGMODE_EASEOUT:return 1-this.easeInCore(1-t)}return t>=.5?(1-this.easeInCore((1-t)*2))*.5+.5:.5*this.easeInCore(2*t)}}s.EASINGMODE_EASEIN=0,s.EASINGMODE_EASEOUT=1,s.EASINGMODE_EASEINOUT=2,t.s(["BackEase",0,class extends s{constructor(t=1){super(),this.amplitude=t}easeInCore(t){return Math.pow(t,3)-t*Math.max(0,this.amplitude)*Math.sin(3.141592653589793*t)}},"BezierCurveEase",0,class extends s{constructor(t=0,e=0,s=1,i=1){super(),this.x1=t,this.y1=e,this.x2=s,this.y2=i}easeInCore(t){return e.BezierCurve.Interpolate(t,this.x1,this.y1,this.x2,this.y2)}},"BounceEase",0,class extends s{constructor(t=3,e=2){super(),this.bounces=t,this.bounciness=e}easeInCore(t){let e=Math.max(0,this.bounces),s=this.bounciness;s<=1&&(s=1.001);let i=Math.pow(s,e),n=1-s,r=(1-i)/n+.5*i,o=Math.floor(Math.log(-(t*r)*(1-s)+1)/Math.log(s)),a=(1-Math.pow(s,o))/(n*r),h=(a+(1-Math.pow(s,o+1))/(n*r))*.5,l=t-h,u=h-a;return-Math.pow(1/s,e-o)/(u*u)*(l-u)*(l+u)}},"CircleEase",0,class extends s{easeInCore(t){return 1-Math.sqrt(1-(t=Math.max(0,Math.min(1,t)))*t)}},"CubicEase",0,class extends s{easeInCore(t){return t*t*t}},"EasingFunction",0,s,"ElasticEase",0,class extends s{constructor(t=3,e=3){super(),this.oscillations=t,this.springiness=e}easeInCore(t){let e=Math.max(0,this.oscillations),s=Math.max(0,this.springiness);return(0===s?t:(Math.exp(s*t)-1)/(Math.exp(s)-1))*Math.sin((6.283185307179586*e+1.5707963267948966)*t)}},"ExponentialEase",0,class extends s{constructor(t=2){super(),this.exponent=t}easeInCore(t){return this.exponent<=0?t:(Math.exp(this.exponent*t)-1)/(Math.exp(this.exponent)-1)}}])},24819,t=>{"use strict";var e=t.i(67256),s=t.i(37096),i=t.i(97009),n=t.i(99493);class r extends e.BezierCurveEase{easeInCore(t){return function(t,e,s,i,n){if(t<=0)return 0;if(t>=1)return 1;let r=1-3*i+3*e,o=3*i-6*e,a=3*e,h=0,l=1,u=t;for(let e=0;e<8;e++){let e=u*u,s=e*u*r+o*e+a*u-t;if(1e-7>Math.abs(s))break;s>0?l=u:h=u;let i=3*r*e+2*o*u+a,n=Math.abs(i)>1e-7?u-s/i:NaN;u=Number.isFinite(n)&&n>h&&n<l?n:(h+l)*.5}return(1-3*n+3*s)*u*u*u+(3*n-6*s)*u*u+3*s*u}(t,this.x1,this.y1,this.x2,this.y2)}}class o extends s.FlowGraphBlock{constructor(t){super(t),this.config=t,this._easingFunctions={},this.mode=this.registerDataInput("mode",i.RichTypeNumber,0),this.controlPoint1=this.registerDataInput("controlPoint1",i.RichTypeVector2),this.controlPoint2=this.registerDataInput("controlPoint2",i.RichTypeVector2),this.easingFunction=this.registerDataOutput("easingFunction",i.RichTypeAny)}_updateOutputs(t){let e=this.mode.getValue(t),s=this.controlPoint1.getValue(t),i=this.controlPoint2.getValue(t);if(void 0===e)return;let n=`${e}-${s.x}-${s.y}-${i.x}-${i.y}`;if(!this._easingFunctions[n]){let t=new r(s.x,s.y,i.x,i.y);t.setEasingMode(e),this._easingFunctions[n]=t}this.easingFunction.setValue(this._easingFunctions[n],t)}getClassName(){return"FlowGraphBezierCurveEasing"}}let a=!1;function h(){a||(a=!0,(0,n.RegisterClass)("FlowGraphBezierCurveEasing",o))}t.s(["FlowGraphBezierCurveEasingBlock",0,o,"RegisterFlowGraphBezierCurveEasingBlock",0,h],61755),h(),t.s([],17634),t.i(17634),t.i(61755),t.s(["FlowGraphBezierCurveEasingBlock",0,o],24819)},40974,t=>{"use strict";var e,s,i=t.i(46202),n=t.i(72003),r=t.i(26747);(e=s||(s={}))[e.CW=0]="CW",e[e.CCW=1]="CCW";class o{constructor(t){this._radians=t,this._radians<0&&(this._radians+=2*Math.PI)}degrees(){return 180*this._radians/Math.PI}radians(){return this._radians}static BetweenTwoPoints(t,e){let s=e.subtract(t);return new o(Math.atan2(s.y,s.x))}static BetweenTwoVectors(t,e){let s=t.lengthSquared()*e.lengthSquared();if(0===s)return new o(Math.PI/2);s=Math.sqrt(s);let n=t.dot(e)/s;return new o(Math.acos(n=(0,i.Clamp)(n,-1,1)))}static FromRadians(t){return new o(t)}static FromDegrees(t){return new o(t*Math.PI/180)}}class a{constructor(t,e,s){this.startPoint=t,this.midPoint=e,this.endPoint=s;const i=Math.pow(e.x,2)+Math.pow(e.y,2),r=(Math.pow(t.x,2)+Math.pow(t.y,2)-i)/2,a=(i-Math.pow(s.x,2)-Math.pow(s.y,2))/2,h=(t.x-e.x)*(e.y-s.y)-(e.x-s.x)*(t.y-e.y);this.centerPoint=new n.Vector2((r*(e.y-s.y)-a*(t.y-e.y))/h,((t.x-e.x)*a-(e.x-s.x)*r)/h),this.radius=this.centerPoint.subtract(this.startPoint).length(),this.startAngle=o.BetweenTwoPoints(this.centerPoint,this.startPoint);const l=this.startAngle.degrees();let u=o.BetweenTwoPoints(this.centerPoint,this.midPoint).degrees(),c=o.BetweenTwoPoints(this.centerPoint,this.endPoint).degrees();u-l>180&&(u-=360),u-l<-180&&(u+=360),c-u>180&&(c-=360),c-u<-180&&(c+=360),this.orientation=u-l<0?0:1,this.angle=o.FromDegrees(0===this.orientation?l-c:c-l)}}t.s(["Angle",0,o,"Arc2",0,a,"BezierCurve",0,class{static Interpolate(t,e,s,i,n){if(0===t)return 0;let r=1-3*i+3*e,o=3*i-6*e,a=3*e,h=t;for(let e=0;e<5;e++){let e=h*h,s=e*h*r+o*e+a*h,i=1/(3*r*e+2*o*h+a);h-=(s-t)*i,h=Math.min(1,Math.max(0,h))}return 3*Math.pow(1-h,2)*h*s+3*(1-h)*Math.pow(h,2)*n+Math.pow(h,3)}},"Curve3",0,class t{static CreateQuadraticBezier(e,s,i,r){r=r>2?r:3;let o=[],a=(t,e,s,i)=>(1-t)*(1-t)*e+2*t*(1-t)*s+t*t*i;for(let t=0;t<=r;t++)o.push(new n.Vector3(a(t/r,e.x,s.x,i.x),a(t/r,e.y,s.y,i.y),a(t/r,e.z,s.z,i.z)));return new t(o)}static CreateCubicBezier(e,s,i,r,o){o=o>3?o:4;let a=[],h=(t,e,s,i,n)=>(1-t)*(1-t)*(1-t)*e+3*t*(1-t)*(1-t)*s+3*t*t*(1-t)*i+t*t*t*n;for(let t=0;t<=o;t++)a.push(new n.Vector3(h(t/o,e.x,s.x,i.x,r.x),h(t/o,e.y,s.y,i.y,r.y),h(t/o,e.z,s.z,i.z,r.z)));return new t(a)}static CreateHermiteSpline(e,s,i,r,o){let a=[],h=1/o;for(let t=0;t<=o;t++)a.push(n.Vector3.Hermite(e,s,i,r,t*h));return new t(a)}static CreateCatmullRomSpline(e,s,i){let r=[],o=1/s,a=0;if(i){let t=e.length;for(let i=0;i<t;i++){a=0;for(let h=0;h<s;h++)r.push(n.Vector3.CatmullRom(e[i%t],e[(i+1)%t],e[(i+2)%t],e[(i+3)%t],a)),a+=o}r.push(r[0])}else{let t=[];t.push(e[0].clone()),t.push(...e),t.push(e[e.length-1].clone());let i=0;for(;i<t.length-3;i++){a=0;for(let e=0;e<s;e++)r.push(n.Vector3.CatmullRom(t[i],t[i+1],t[i+2],t[i+3],a)),a+=o}i--,r.push(n.Vector3.CatmullRom(t[i],t[i+1],t[i+2],t[i+3],a))}return new t(r)}static ArcThru3Points(e,s,i,r=32,o=!1,a=!1){let h=[],l=s.subtract(e),u=i.subtract(s),c=e.subtract(i),_=n.Vector3.Cross(l,u),p=_.length();if(p<1e-8)return new t(h);let g=l.lengthSquared(),d=u.lengthSquared(),x=c.lengthSquared(),m=_.lengthSquared(),A=.5*l.length()*u.length()*c.length()/p,M=n.Vector3.Dot(l,c),P=n.Vector3.Dot(l,u),y=n.Vector3.Dot(u,c),w=e.scale(-.5*d*M/m).add(s.scale(-.5*x*P/m)).add(i.scale(-.5*g*y/m)),f=e.subtract(w).normalize(),C=n.Vector3.Cross(_,f).normalize();if(a){let t=2*Math.PI/r;for(let e=0;e<=2*Math.PI;e+=t)h.push(w.add(f.scale(A*Math.cos(e)).add(C.scale(A*Math.sin(e)))));h.push(e)}else{let t,s=1/r,n=0;do t=w.add(f.scale(A*Math.cos(n)).add(C.scale(A*Math.sin(n)))),h.push(t),n+=s;while(!t.equalsWithEpsilon(i,A*s*1.1))h.push(i),o&&h.push(e)}return new t(h)}constructor(t){this._length=0,this._points=t,this._length=this._computeLength(t)}getPoints(){return this._points}length(){return this._length}continue(e){let s=this._points[this._points.length-1],i=this._points.slice(),n=e.getPoints();for(let t=1;t<n.length;t++)i.push(n[t].subtract(n[0]).add(s));return new t(i)}_computeLength(t){let e=0;for(let s=1;s<t.length;s++)e+=t[s].subtract(t[s-1]).length();return e}},"Orientation",0,s,"Path2",0,class t{constructor(t,e){this._points=[],this._length=0,this.closed=!1,this._points.push(new n.Vector2(t,e))}addLineTo(t,e){if(this.closed)return this;let s=new n.Vector2(t,e),i=this._points[this._points.length-1];return this._points.push(s),this._length+=s.subtract(i).length(),this}addArcTo(t,e,s,i,r=36){if(this.closed)return this;let o=new a(this._points[this._points.length-1],new n.Vector2(t,e),new n.Vector2(s,i)),h=o.angle.radians()/r;0===o.orientation&&(h*=-1);let l=o.startAngle.radians()+h;for(let t=0;t<r;t++){let t=Math.cos(l)*o.radius+o.centerPoint.x,e=Math.sin(l)*o.radius+o.centerPoint.y;this.addLineTo(t,e),l+=h}return this}addQuadraticCurveTo(t,e,s,i,n=36){if(this.closed)return this;let r=(t,e,s,i)=>(1-t)*(1-t)*e+2*t*(1-t)*s+t*t*i,o=this._points[this._points.length-1];for(let a=0;a<=n;a++){let h=a/n,l=r(h,o.x,t,s),u=r(h,o.y,e,i);this.addLineTo(l,u)}return this}addBezierCurveTo(t,e,s,i,n,r,o=36){if(this.closed)return this;let a=(t,e,s,i,n)=>(1-t)*(1-t)*(1-t)*e+3*t*(1-t)*(1-t)*s+3*t*t*(1-t)*i+t*t*t*n,h=this._points[this._points.length-1];for(let l=0;l<=o;l++){let u=l/o,c=a(u,h.x,t,s,n),_=a(u,h.y,e,i,r);this.addLineTo(c,_)}return this}isPointInside(t){let e=!1,s=this._points.length;for(let i=s-1,n=0;n<s;i=n++){let s=this._points[i],r=this._points[n],o=r.x-s.x,a=r.y-s.y;if(Math.abs(a)>Number.EPSILON){if(a<0&&(s=this._points[n],o=-o,r=this._points[i],a=-a),t.y<s.y||t.y>r.y)continue;if(t.y===s.y&&t.x===s.x)return!0;{let i=a*(t.x-s.x)-o*(t.y-s.y);if(0===i)return!0;if(i<0)continue;e=!e}}else{if(t.y!==s.y)continue;if(r.x<=t.x&&t.x<=s.x||s.x<=t.x&&t.x<=r.x)return!0}}return e}close(){return this.closed=!0,this}length(){let t=this._length;if(this.closed){let e=this._points[this._points.length-1];t+=this._points[0].subtract(e).length()}return t}area(){let t=this._points.length,e=0;for(let s=t-1,i=0;i<t;s=i++)e+=this._points[s].x*this._points[i].y-this._points[i].x*this._points[s].y;return .5*e}getPoints(){return this._points}getPointAtLengthPosition(t){if(t<0||t>1)return n.Vector2.Zero();let e=t*this.length(),s=0;for(let t=0;t<this._points.length;t++){let i=(t+1)%this._points.length,r=this._points[t],o=this._points[i].subtract(r),a=o.length()+s;if(e>=s&&e<=a){let t=o.normalize(),i=e-s;return new n.Vector2(r.x+t.x*i,r.y+t.y*i)}s=a}return n.Vector2.Zero()}static StartingAt(e,s){return new t(e,s)}},"Path3D",0,class t{constructor(t,e=null,s,i=!1){this.path=t,this._curve=[],this._distances=[],this._tangents=[],this._normals=[],this._binormals=[],this._pointAtData={id:0,point:n.Vector3.Zero(),previousPointArrayIndex:0,position:0,subPosition:0,interpolateReady:!1,interpolationMatrix:n.Matrix.Identity()};for(let e=0;e<t.length;e++)this._curve[e]=t[e].clone();this._raw=s||!1,this._alignTangentsWithPath=i,this._compute(e,i)}getCurve(){return this._curve}getPoints(){return this._curve}length(){return this._distances[this._distances.length-1]}getTangents(){return this._tangents}getNormals(){return this._normals}getBinormals(){return this._binormals}getDistances(){return this._distances}getPointAt(t){return this._updatePointAtData(t).point}getTangentAt(t,e=!1){return this._updatePointAtData(t,e),e?n.Vector3.TransformCoordinates(n.Vector3.Forward(),this._pointAtData.interpolationMatrix):this._tangents[this._pointAtData.previousPointArrayIndex]}getNormalAt(t,e=!1){return this._updatePointAtData(t,e),e?n.Vector3.TransformCoordinates(n.Vector3.Right(),this._pointAtData.interpolationMatrix):this._normals[this._pointAtData.previousPointArrayIndex]}getBinormalAt(t,e=!1){return this._updatePointAtData(t,e),e?n.Vector3.TransformCoordinates(n.Vector3.UpReadOnly,this._pointAtData.interpolationMatrix):this._binormals[this._pointAtData.previousPointArrayIndex]}getDistanceAt(t){return this.length()*t}getPreviousPointIndexAt(t){return this._updatePointAtData(t),this._pointAtData.previousPointArrayIndex}getSubPositionAt(t){return this._updatePointAtData(t),this._pointAtData.subPosition}getClosestPositionTo(t){let e=Number.MAX_VALUE,s=0;for(let i=0;i<this._curve.length-1;i++){let r=this._curve[i+0],o=this._curve[i+1].subtract(r).normalize(),a=this._distances[i+1]-this._distances[i+0],h=Math.min(Math.max(n.Vector3.Dot(o,t.subtract(r).normalize()),0)*n.Vector3.Distance(r,t)/a,1),l=n.Vector3.Distance(r.add(o.scale(h*a)),t);l<e&&(e=l,s=(this._distances[i+0]+a*h)/this.length())}return s}slice(e=0,s=1){if(e<0&&(e=1- -1*e%1),s<0&&(s=1- -1*s%1),e>s){let t=e;e=s,s=t}let i=this.getCurve(),n=this.getPointAt(e),r=this.getPreviousPointIndexAt(e),o=this.getPointAt(s),a=this.getPreviousPointIndexAt(s)+1,h=[];return 0!==e&&(r++,h.push(n)),h.push(...i.slice(r,a)),(1!==s||1===e)&&h.push(o),new t(h,this.getNormalAt(e),this._raw,this._alignTangentsWithPath)}update(t,e=null,s=!1){for(let e=0;e<t.length;e++)this._curve[e].x=t[e].x,this._curve[e].y=t[e].y,this._curve[e].z=t[e].z;return this._compute(e,s),this}_compute(t,e=!1){let s,i,r,o,a,h=this._curve.length;if(h<2)return;this._tangents[0]=this._getFirstNonNullVector(0),this._raw||this._tangents[0].normalize(),this._tangents[h-1]=this._curve[h-1].subtract(this._curve[h-2]),this._raw||this._tangents[h-1].normalize();let l=this._tangents[0],u=this._normalVector(l,t);this._normals[0]=u,this._raw||this._normals[0].normalize(),this._binormals[0]=n.Vector3.Cross(l,this._normals[0]),this._raw||this._binormals[0].normalize(),this._distances[0]=0;for(let t=1;t<h;t++)s=this._getLastNonNullVector(t),t<h-1&&(i=this._getFirstNonNullVector(t),this._tangents[t]=e?i:s.add(i),this._tangents[t].normalize()),this._distances[t]=this._distances[t-1]+this._curve[t].subtract(this._curve[t-1]).length(),r=this._tangents[t],a=this._binormals[t-1],this._normals[t]=n.Vector3.Cross(a,r),this._raw||(0===this._normals[t].length()?(o=this._normals[t-1],this._normals[t]=o.clone()):this._normals[t].normalize()),this._binormals[t]=n.Vector3.Cross(r,this._normals[t]),this._raw||this._binormals[t].normalize();this._pointAtData.id=NaN}_getFirstNonNullVector(t){let e=1,s=this._curve[t+e].subtract(this._curve[t]);for(;0===s.length()&&t+e+1<this._curve.length;)e++,s=this._curve[t+e].subtract(this._curve[t]);return s}_getLastNonNullVector(t){let e=1,s=this._curve[t].subtract(this._curve[t-e]);for(;0===s.length()&&t>e+1;)e++,s=this._curve[t].subtract(this._curve[t-e]);return s}_normalVector(t,e){let s,o=t.length();if(0===o&&(o=1),null==e){let e;e=(0,i.WithinEpsilon)(Math.abs(t.y)/o,1,r.Epsilon)?(0,i.WithinEpsilon)(Math.abs(t.x)/o,1,r.Epsilon)?(0,i.WithinEpsilon)(Math.abs(t.z)/o,1,r.Epsilon)?n.Vector3.Zero():new n.Vector3(0,0,1):new n.Vector3(1,0,0):new n.Vector3(0,-1,0),s=n.Vector3.Cross(t,e)}else s=n.Vector3.Cross(t,e),n.Vector3.CrossToRef(s,t,s);return s.normalize(),s}_updatePointAtData(t,e=!1){let s;if(this._pointAtData.id===t)return this._pointAtData.interpolateReady||this._updateInterpolationMatrix(),this._pointAtData;this._pointAtData.id=t;let i=this.getPoints();if(t<=0)return this._setPointAtData(0,0,i[0],0,e);if(t>=1)return this._setPointAtData(1,1,i[i.length-1],i.length-1,e);let r=i[0],o=0,a=t*this.length();for(let h=1;h<i.length;h++){s=i[h];let l=n.Vector3.Distance(r,s);if((o+=l)===a)return this._setPointAtData(t,1,s,h,e);if(o>a){let i=(o-a)/l,n=r.subtract(s),u=s.add(n.scaleInPlace(i));return this._setPointAtData(t,1-i,u,h-1,e)}r=s}return this._pointAtData}_setPointAtData(t,e,s,i,n){return this._pointAtData.point=s,this._pointAtData.position=t,this._pointAtData.subPosition=e,this._pointAtData.previousPointArrayIndex=i,this._pointAtData.interpolateReady=n,n&&this._updateInterpolationMatrix(),this._pointAtData}_updateInterpolationMatrix(){this._pointAtData.interpolationMatrix=n.Matrix.Identity();let t=this._pointAtData.previousPointArrayIndex;if(t!==this._tangents.length-1){let e=t+1,s=this._tangents[t].clone(),i=this._normals[t].clone(),r=this._binormals[t].clone(),o=this._tangents[e].clone(),a=this._normals[e].clone(),h=this._binormals[e].clone(),l=n.Quaternion.RotationQuaternionFromAxis(i,r,s),u=n.Quaternion.RotationQuaternionFromAxis(a,h,o);n.Quaternion.Slerp(l,u,this._pointAtData.subPosition).toRotationMatrix(this._pointAtData.interpolationMatrix)}}}])}]);
@@ -0,0 +1 @@
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,42130,s=>{s.v(t=>Promise.all(["static/chunks/2a2oy8ryz2tsk.js","static/chunks/0ulufxnsrou61.js"].map(t=>s.l(t))).then(()=>t(52364)))},46040,s=>{s.v(t=>Promise.all(["static/chunks/355dg8yaa94hr.js"].map(t=>s.l(t))).then(()=>t(84538)))},23888,s=>{s.v(t=>Promise.all(["static/chunks/2droqjmvmgj13.js"].map(t=>s.l(t))).then(()=>t(78147)))},46810,s=>{s.v(t=>Promise.all(["static/chunks/2lnj9jruy4nrv.js"].map(t=>s.l(t))).then(()=>t(76079)))},87239,s=>{s.v(t=>Promise.all(["static/chunks/3f3789eh18_oy.js","static/chunks/03dwfqmo73w_z.js"].map(t=>s.l(t))).then(()=>t(98303)))},1805,s=>{s.v(t=>Promise.all(["static/chunks/1t5oynmttpfsw.js"].map(t=>s.l(t))).then(()=>t(78376)))},42570,s=>{s.v(t=>Promise.all(["static/chunks/05z79zh625ezu.js"].map(t=>s.l(t))).then(()=>t(1118)))},50078,s=>{s.v(t=>Promise.all(["static/chunks/0p9zfmidzqkps.js"].map(t=>s.l(t))).then(()=>t(47006)))},33004,s=>{s.v(t=>Promise.all(["static/chunks/0ydfhk-p6zvm0.js"].map(t=>s.l(t))).then(()=>t(59143)))},80360,s=>{s.v(t=>Promise.all(["static/chunks/2j2ynchpqh34-.js"].map(t=>s.l(t))).then(()=>t(11826)))},79655,s=>{s.v(t=>Promise.all(["static/chunks/15o4_2t-l3rj5.js"].map(t=>s.l(t))).then(()=>t(56598)))},36359,s=>{s.v(t=>Promise.all(["static/chunks/33hp-khdfohdq.js"].map(t=>s.l(t))).then(()=>t(98163)))},70956,s=>{s.v(t=>Promise.all(["static/chunks/3527r3jo5fj3i.js"].map(t=>s.l(t))).then(()=>t(50532)))},76418,s=>{s.v(t=>Promise.all(["static/chunks/1rlfg62jxqj3z.js"].map(t=>s.l(t))).then(()=>t(58182)))},1998,s=>{s.v(t=>Promise.all(["static/chunks/42ymanq326mo7.js"].map(t=>s.l(t))).then(()=>t(10342)))},97933,s=>{s.v(t=>Promise.all(["static/chunks/3df_l2we755bb.js"].map(t=>s.l(t))).then(()=>t(9795)))},73714,s=>{s.v(t=>Promise.all(["static/chunks/3772oce1n3t_g.js"].map(t=>s.l(t))).then(()=>t(96770)))},29433,s=>{s.v(t=>Promise.all(["static/chunks/0j74ipw4fps-n.js"].map(t=>s.l(t))).then(()=>t(86549)))},54473,s=>{s.v(t=>Promise.all(["static/chunks/271333m8y3k0e.js"].map(t=>s.l(t))).then(()=>t(13376)))},42690,s=>{s.v(t=>Promise.all(["static/chunks/35ntbr_c-yx44.js"].map(t=>s.l(t))).then(()=>t(50009)))},31261,s=>{s.v(t=>Promise.all(["static/chunks/0es97pusfxupl.js"].map(t=>s.l(t))).then(()=>t(29435)))},82819,s=>{s.v(t=>Promise.all(["static/chunks/3_dgblylldcgb.js"].map(t=>s.l(t))).then(()=>t(58825)))},55366,s=>{s.v(t=>Promise.all(["static/chunks/3ylg4gfetwgxw.js"].map(t=>s.l(t))).then(()=>t(68999)))},9985,s=>{s.v(t=>Promise.all(["static/chunks/3v-0c2aj6c0on.js"].map(t=>s.l(t))).then(()=>t(17311)))},67970,s=>{s.v(t=>Promise.all(["static/chunks/1zp9363yfhpom.js"].map(t=>s.l(t))).then(()=>t(80429)))},14613,s=>{s.v(t=>Promise.all(["static/chunks/44zi0gl0a6a8w.js"].map(t=>s.l(t))).then(()=>t(39420)))},41200,s=>{s.v(t=>Promise.all(["static/chunks/129m5i93ltoym.js"].map(t=>s.l(t))).then(()=>t(18378)))},32047,s=>{s.v(t=>Promise.all(["static/chunks/00fbhtmui-yxg.js"].map(t=>s.l(t))).then(()=>t(31124)))},50304,s=>{s.v(t=>Promise.all(["static/chunks/19rsodtu91ja_.js"].map(t=>s.l(t))).then(()=>t(20656)))},32111,s=>{s.v(t=>Promise.all(["static/chunks/3ydnxyc4rvad_.js"].map(t=>s.l(t))).then(()=>t(4955)))},84026,s=>{s.v(t=>Promise.all(["static/chunks/1zj4307ugq0qz.js"].map(t=>s.l(t))).then(()=>t(5227)))},62207,s=>{s.v(t=>Promise.all(["static/chunks/1nix_lulkpklo.js"].map(t=>s.l(t))).then(()=>t(94975)))},76205,s=>{s.v(t=>Promise.all(["static/chunks/120rl4l29q9xs.js"].map(t=>s.l(t))).then(()=>t(25160)))},38723,s=>{s.v(t=>Promise.all(["static/chunks/0hk1wg7h4araz.js"].map(t=>s.l(t))).then(()=>t(54380)))},38813,s=>{s.v(t=>Promise.all(["static/chunks/1f1rek_fxk3of.js"].map(t=>s.l(t))).then(()=>t(31373)))},76763,s=>{s.v(t=>Promise.all(["static/chunks/0sx-6rf3eteqn.js"].map(t=>s.l(t))).then(()=>t(65229)))},83216,s=>{s.v(t=>Promise.all(["static/chunks/1ka5v5zu0cstt.js"].map(t=>s.l(t))).then(()=>t(81573)))},617,s=>{s.v(t=>Promise.all(["static/chunks/2r5qgieqldcd9.js"].map(t=>s.l(t))).then(()=>t(96813)))},61089,s=>{s.v(t=>Promise.all(["static/chunks/2b481pitl4k85.js"].map(t=>s.l(t))).then(()=>t(6045)))},1121,s=>{s.v(t=>Promise.all(["static/chunks/43fp64xnfy646.js"].map(t=>s.l(t))).then(()=>t(59165)))},87283,s=>{s.v(t=>Promise.all(["static/chunks/2a07so920b6aa.js"].map(t=>s.l(t))).then(()=>t(62399)))},6751,s=>{s.v(t=>Promise.all(["static/chunks/1ses023uud001.js"].map(t=>s.l(t))).then(()=>t(15728)))},73402,s=>{s.v(t=>Promise.all(["static/chunks/2dxbvwbbgpzoq.js"].map(t=>s.l(t))).then(()=>t(24819)))},84289,s=>{s.v(t=>Promise.all(["static/chunks/1ycqxcht6x54p.js"].map(t=>s.l(t))).then(()=>t(10186)))},6219,s=>{s.v(t=>Promise.all(["static/chunks/1dp1s1t-y7gal.js"].map(t=>s.l(t))).then(()=>t(15618)))},49630,s=>{s.v(t=>Promise.all(["static/chunks/1dt30s_sp8415.js"].map(t=>s.l(t))).then(()=>t(32606)))},26078,s=>{s.v(t=>Promise.all(["static/chunks/2n-pveub8b_5t.js","static/chunks/0ulufxnsrou61.js"].map(t=>s.l(t))).then(()=>t(32838)))},67770,s=>{s.v(t=>Promise.all(["static/chunks/0kj-vckdn7t5p.js"].map(t=>s.l(t))).then(()=>t(74418)))},65695,s=>{s.v(t=>Promise.all(["static/chunks/37cnbm5ft1mqf.js"].map(t=>s.l(t))).then(()=>t(72532)))},12171,s=>{s.v(t=>Promise.all(["static/chunks/2sys9nj8lo3uk.js"].map(t=>s.l(t))).then(()=>t(36117)))},11915,s=>{s.v(t=>Promise.all(["static/chunks/3eve5y7fpzx2h.js"].map(t=>s.l(t))).then(()=>t(87184)))},96108,s=>{s.v(t=>Promise.all(["static/chunks/2d2kl_m64j9cb.js"].map(t=>s.l(t))).then(()=>t(67935)))},90758,s=>{s.v(t=>Promise.all(["static/chunks/3tz2tpqa9uvwm.js"].map(t=>s.l(t))).then(()=>t(114)))},41995,s=>{s.v(t=>Promise.all(["static/chunks/05ere0-228syf.js"].map(t=>s.l(t))).then(()=>t(72446)))},90691,s=>{s.v(t=>Promise.all(["static/chunks/2w99knknr5i8c.js"].map(t=>s.l(t))).then(()=>t(29251)))},11560,s=>{s.v(t=>Promise.all(["static/chunks/1t9i20i5-f8ze.js"].map(t=>s.l(t))).then(()=>t(60872)))},2398,s=>{s.v(t=>Promise.all(["static/chunks/05h8u5lrypn5m.js"].map(t=>s.l(t))).then(()=>t(29841)))},95322,s=>{s.v(t=>Promise.all(["static/chunks/2-bv9a_0zgw1f.js"].map(t=>s.l(t))).then(()=>t(1464)))},9151,s=>{s.v(t=>Promise.all(["static/chunks/30bhz7czzs4mf.js"].map(t=>s.l(t))).then(()=>t(19902)))},13559,s=>{s.v(t=>Promise.all(["static/chunks/0fd-0i1yt23kz.js"].map(t=>s.l(t))).then(()=>t(22315)))},5700,s=>{s.v(t=>Promise.all(["static/chunks/3ipx7xbxchsq9.js"].map(t=>s.l(t))).then(()=>t(86391)))},66519,s=>{s.v(t=>Promise.all(["static/chunks/0_v2luu_qmeid.js"].map(t=>s.l(t))).then(()=>t(96192)))},3823,s=>{s.v(t=>Promise.all(["static/chunks/1zm52cjrfrq7c.js"].map(t=>s.l(t))).then(()=>t(20295)))},87966,s=>{s.v(t=>Promise.all(["static/chunks/2j120dkh7q3uf.js"].map(t=>s.l(t))).then(()=>t(79141)))},68445,s=>{s.v(t=>Promise.all(["static/chunks/0hajwk2yd-rwr.js"].map(t=>s.l(t))).then(()=>t(51070)))},84746,s=>{s.v(t=>Promise.all(["static/chunks/216uiih3_vdfd.js"].map(t=>s.l(t))).then(()=>t(59611)))},91135,s=>{s.v(t=>Promise.all(["static/chunks/0z004fn14pbcu.js"].map(t=>s.l(t))).then(()=>t(42821)))},33210,s=>{s.v(t=>Promise.all(["static/chunks/3sa_hlx3konc7.js"].map(t=>s.l(t))).then(()=>t(90872)))},35530,s=>{s.v(t=>Promise.all(["static/chunks/1ug4k-1zhr63a.js"].map(t=>s.l(t))).then(()=>t(36069)))},8672,s=>{s.v(t=>Promise.all(["static/chunks/33i36o_l69sm5.js"].map(t=>s.l(t))).then(()=>t(90088)))},62611,s=>{s.v(t=>Promise.all(["static/chunks/0gf-ztg86zd80.js"].map(t=>s.l(t))).then(()=>t(64873)))},64869,s=>{s.v(t=>Promise.all(["static/chunks/0zqgq0lwtz9tn.js"].map(t=>s.l(t))).then(()=>t(5603)))},37218,s=>{s.v(t=>Promise.all(["static/chunks/2uo6vm7mfgrbf.js"].map(t=>s.l(t))).then(()=>t(89438)))},30864,s=>{s.v(t=>Promise.all(["static/chunks/3utpc-fc6_y0f.js"].map(t=>s.l(t))).then(()=>t(87317)))},14674,s=>{s.v(t=>Promise.all(["static/chunks/22yqh0zlo_vwr.js","static/chunks/2-3hk_db5fpok.js"].map(t=>s.l(t))).then(()=>t(87619)))},49711,s=>{s.v(t=>Promise.all(["static/chunks/209sxygecny37.js","static/chunks/3kp8qmhoi24oz.js"].map(t=>s.l(t))).then(()=>t(94909)))},3994,s=>{s.v(t=>Promise.all(["static/chunks/175st2ogkg_1o.js"].map(t=>s.l(t))).then(()=>t(27884)))},80539,s=>{s.v(t=>Promise.all(["static/chunks/2kj6pzs_wap1v.js"].map(t=>s.l(t))).then(()=>t(12530)))},40215,s=>{s.v(t=>Promise.all(["static/chunks/2q8yg63br2jc9.js"].map(t=>s.l(t))).then(()=>t(41876)))},97437,s=>{s.v(t=>Promise.all(["static/chunks/3ewgyb4y19w-3.js"].map(t=>s.l(t))).then(()=>t(60413)))},35808,s=>{s.v(t=>Promise.all(["static/chunks/26y9sv8_-ykxf.js"].map(t=>s.l(t))).then(()=>t(55834)))},17247,s=>{s.v(t=>Promise.all(["static/chunks/10_5p5-xf2aoo.js"].map(t=>s.l(t))).then(()=>t(31697)))},10289,s=>{s.v(t=>Promise.all(["static/chunks/417jkzz0slv9m.js"].map(t=>s.l(t))).then(()=>t(48329)))},79329,s=>{s.v(t=>Promise.all(["static/chunks/2rmc6ru7mc-kg.js"].map(t=>s.l(t))).then(()=>t(80459)))},46717,s=>{s.v(t=>Promise.all(["static/chunks/1tgj55b305g4h.js"].map(t=>s.l(t))).then(()=>t(21774)))},59661,s=>{s.v(t=>Promise.all(["static/chunks/3x02lxdo28u9i.js"].map(t=>s.l(t))).then(()=>t(95228)))},16464,s=>{s.v(t=>Promise.all(["static/chunks/1qg1l7t00nyib.js","static/chunks/32_c4mbb6j1l6.js"].map(t=>s.l(t))).then(()=>t(41028)))},27737,s=>{s.v(t=>Promise.all(["static/chunks/02qk_wmkf9at-.js"].map(t=>s.l(t))).then(()=>t(3658)))},96399,s=>{s.v(t=>Promise.all(["static/chunks/2h249uvhh2sij.js"].map(t=>s.l(t))).then(()=>t(69586)))},99617,s=>{s.v(t=>Promise.all(["static/chunks/2urx6fow8c8c9.js"].map(t=>s.l(t))).then(()=>t(50886)))},23454,s=>{s.v(t=>Promise.all(["static/chunks/1vurgl6oz2qey.js"].map(t=>s.l(t))).then(()=>t(51896)))},70102,s=>{s.v(t=>Promise.all(["static/chunks/3xl-op0hwxytg.js"].map(t=>s.l(t))).then(()=>t(23900)))},22618,s=>{s.v(t=>Promise.all(["static/chunks/1zm6eo861i3c8.js"].map(t=>s.l(t))).then(()=>t(31339)))},48250,s=>{s.v(t=>Promise.all(["static/chunks/24ecas0m9tao7.js"].map(t=>s.l(t))).then(()=>t(33892)))},81749,s=>{s.v(t=>Promise.all(["static/chunks/3w59kt5ztyvoq.js"].map(t=>s.l(t))).then(()=>t(28017)))},78757,s=>{s.v(t=>Promise.all(["static/chunks/3vbamaoiuk9yj.js"].map(t=>s.l(t))).then(()=>t(92387)))},90226,s=>{s.v(t=>Promise.all(["static/chunks/2of8q0kaeqpf0.js"].map(t=>s.l(t))).then(()=>t(94490)))},19011,s=>{s.v(t=>Promise.all(["static/chunks/1by60_b14x-3o.js"].map(t=>s.l(t))).then(()=>t(91028)))},74135,s=>{s.v(t=>Promise.all(["static/chunks/2tc3e-iqv71y_.js"].map(t=>s.l(t))).then(()=>t(74232)))},42032,s=>{s.v(t=>Promise.all(["static/chunks/3f8qelpscqfym.js"].map(t=>s.l(t))).then(()=>t(76426)))},78503,s=>{s.v(t=>Promise.all(["static/chunks/0btmk0wmekl02.js"].map(t=>s.l(t))).then(()=>t(66169)))},28538,s=>{s.v(t=>Promise.all(["static/chunks/05v-nubi896jg.js"].map(t=>s.l(t))).then(()=>t(23169)))},3524,s=>{s.v(t=>Promise.all(["static/chunks/0-_j1khfoib6l.js","static/chunks/1gttu-n9am66k.js"].map(t=>s.l(t))).then(()=>t(32858)))},13459,s=>{s.v(t=>Promise.all(["static/chunks/1u8snlm6a7uhi.js","static/chunks/3j9xvdz55bi4p.js"].map(t=>s.l(t))).then(()=>t(39038)))},95275,s=>{s.v(t=>Promise.all(["static/chunks/1m9zc5gm-327d.js"].map(t=>s.l(t))).then(()=>t(54037)))},63357,s=>{s.v(t=>Promise.all(["static/chunks/2ao-3jzz7yw3p.js"].map(t=>s.l(t))).then(()=>t(16102)))},91662,s=>{s.v(t=>Promise.all(["static/chunks/2phl5ta4iim7l.js"].map(t=>s.l(t))).then(()=>t(25910)))},14994,s=>{s.v(t=>Promise.all(["static/chunks/41b5gpyqbj58m.js"].map(t=>s.l(t))).then(()=>t(29315)))},36773,s=>{s.v(t=>Promise.all(["static/chunks/2r96kyeehsji9.js"].map(t=>s.l(t))).then(()=>t(75572)))},15966,s=>{s.v(t=>Promise.all(["static/chunks/3zs7l4362msjd.js"].map(t=>s.l(t))).then(()=>t(45994)))},79735,s=>{s.v(t=>Promise.all(["static/chunks/2kok6zedeeltw.js"].map(t=>s.l(t))).then(()=>t(90191)))},41331,s=>{s.v(t=>Promise.all(["static/chunks/1uh9zgsy69g92.js"].map(t=>s.l(t))).then(()=>t(60296)))},54714,s=>{s.v(t=>Promise.all(["static/chunks/1q4lkgxfnqnew.js"].map(t=>s.l(t))).then(()=>t(43981)))},83572,s=>{s.v(t=>Promise.all(["static/chunks/0ybs1u66q26su.js"].map(t=>s.l(t))).then(()=>t(6967)))},6454,s=>{s.v(t=>Promise.all(["static/chunks/2c721vfva711t.js"].map(t=>s.l(t))).then(()=>t(64630)))},1084,s=>{s.v(t=>Promise.all(["static/chunks/005bbq_px7lke.js"].map(t=>s.l(t))).then(()=>t(47124)))},48692,s=>{s.v(t=>Promise.all(["static/chunks/0grasqqf5dw7r.js"].map(t=>s.l(t))).then(()=>t(47481)))},97158,s=>{s.v(t=>Promise.all(["static/chunks/2lsvk7xcfkarc.js"].map(t=>s.l(t))).then(()=>t(9353)))},42020,s=>{s.v(s=>Promise.resolve().then(()=>s(76723)))},6696,s=>{s.v(s=>Promise.resolve().then(()=>s(65431)))},17740,s=>{s.v(s=>Promise.resolve().then(()=>s(68841)))},58141,s=>{s.v(s=>Promise.resolve().then(()=>s(44541)))}]);