@uptimizr/dashboard 0.4.4 → 0.4.6

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 (347) hide show
  1. package/out/404.html +1 -1
  2. package/out/__next.__PAGE__.txt +4 -4
  3. package/out/__next._full.txt +11 -11
  4. package/out/__next._head.txt +4 -4
  5. package/out/__next._index.txt +4 -4
  6. package/out/__next._tree.txt +2 -2
  7. package/out/_next/static/chunks/{2o8k8x5zcepfy.js → 0-k4hp87gwues.js} +1 -1
  8. package/out/_next/static/chunks/{0s84ekz_f9ngx.js → 0-laj-bivzp4x.js} +1 -1
  9. package/out/_next/static/chunks/{3tdzweqszru4y.js → 04zj0yf1qhk1o.js} +1 -1
  10. package/out/_next/static/chunks/05s0t-besbvu1.css +3 -0
  11. package/out/_next/static/chunks/{1e_-_7biavwmb.js → 06fbalmyyfpsy.js} +1 -1
  12. package/out/_next/static/chunks/{3yr66ufoli71t.js → 07hgbbqksqd1g.js} +1 -1
  13. package/out/_next/static/chunks/08ou2nvy48e0u.js +1 -0
  14. package/out/_next/static/chunks/08y5-irjbsiy8.js +1 -0
  15. package/out/_next/static/chunks/{2pbgsq7vvtk8_.js → 0_jrfk2u1u3fi.js} +1 -1
  16. package/out/_next/static/chunks/{1-4v8oivkgnyl.js → 0a475u_q5i_dd.js} +2 -2
  17. package/out/_next/static/chunks/0aad2r4s4wl1x.js +5 -0
  18. package/out/_next/static/chunks/{2rjfrjhp4kjev.js → 0cmyc-uvk93kl.js} +52 -52
  19. package/out/_next/static/chunks/{1ozi46t8jajqh.js → 0d9pxx1w_zqr9.js} +1 -1
  20. package/out/_next/static/chunks/{3-x7522okdy-7.js → 0e5dcxmkprebg.js} +1 -1
  21. package/out/_next/static/chunks/{1n_gxvu31aofy.js → 0gk5rnci1hznh.js} +2 -2
  22. package/out/_next/static/chunks/0gnjtwq-474uc.js +1 -0
  23. package/out/_next/static/chunks/0gsh_d0m5xss1.js +1 -0
  24. package/out/_next/static/chunks/0i9wa8hjd-5tc.js +1 -0
  25. package/out/_next/static/chunks/0ibzpjo0h731v.js +1 -0
  26. package/out/_next/static/chunks/{41yy4p3-rtyz1.js → 0j0a0wvmmghxj.js} +1 -1
  27. package/out/_next/static/chunks/{29gv2swsp7tzu.js → 0j2ygtc_-bo3m.js} +1 -1
  28. package/out/_next/static/chunks/{0dck67in84de0.js → 0j_3k5qhv_mdx.js} +1 -1
  29. package/out/_next/static/chunks/0jap7l5-bskj4.js +114 -0
  30. package/out/_next/static/chunks/{0n92hec_jb_-_.js → 0jis2w2mfx062.js} +1 -1
  31. package/out/_next/static/chunks/0jjvp2slpf7d6.js +1 -0
  32. package/out/_next/static/chunks/0ko10wo4rc9-b.js +1 -0
  33. package/out/_next/static/chunks/0lqmvz6k2h_of.js +1 -0
  34. package/out/_next/static/chunks/0lwjmr8efrlbt.js +17 -0
  35. package/out/_next/static/chunks/0noxyupihh8dk.js +1 -0
  36. package/out/_next/static/chunks/{2-hdejef-mpka.js → 0o0qtv35dqv3i.js} +219 -16
  37. package/out/_next/static/chunks/{43hwl25uke0l_.js → 0o1vph7x9shzu.js} +1 -1
  38. package/out/_next/static/chunks/{1tt1bbry-4f-6.js → 0o73w0cn5n_vl.js} +1 -1
  39. package/out/_next/static/chunks/0p6phe9kjlxn8.js +1 -0
  40. package/out/_next/static/chunks/0ptxb9dcwsw3o.js +1 -0
  41. package/out/_next/static/chunks/{31ei992g8gqz9.js → 0q0i4pdyq66gb.js} +1 -1
  42. package/out/_next/static/chunks/0q8pt8fd0ma30.js +1 -0
  43. package/out/_next/static/chunks/0qqx9aoz8l5d2.js +1 -0
  44. package/out/_next/static/chunks/0r-x702_jvhud.js +112 -0
  45. package/out/_next/static/chunks/{2h5nvlgky7fpa.js → 0rykrf_vofbad.js} +1 -1
  46. package/out/_next/static/chunks/0tsk32q-88t_7.js +1 -0
  47. package/out/_next/static/chunks/0u7577db_ivyr.js +1 -0
  48. package/out/_next/static/chunks/0unnrt0un064x.js +1 -0
  49. package/out/_next/static/chunks/{3mvaub8qjdyuc.js → 0uygtr4mo3h0v.js} +1 -1
  50. package/out/_next/static/chunks/0vf3facit951s.js +1 -0
  51. package/out/_next/static/chunks/{2pcdnd4nzcw4c.js → 0vzo-8t8c26k9.js} +1 -1
  52. package/out/_next/static/chunks/0xx7_7y5jdlh4.js +1 -0
  53. package/out/_next/static/chunks/0xyija62b6txc.js +1 -0
  54. package/out/_next/static/chunks/{0vso09vdz38sr.js → 0xzamrecplwzw.js} +1 -1
  55. package/out/_next/static/chunks/{2khh_pmm224k5.js → 0yd4_xh476fjn.js} +14 -217
  56. package/out/_next/static/chunks/0ypejzd74ixbw.js +338 -0
  57. package/out/_next/static/chunks/0zeb37703zcz3.js +1 -0
  58. package/out/_next/static/chunks/0zu5ato7-1-q9.js +1 -0
  59. package/out/_next/static/chunks/0zydv7y47dxgh.js +1 -0
  60. package/out/_next/static/chunks/103x4jwovb6d-.js +1 -0
  61. package/out/_next/static/chunks/107wfq84g9-kn.js +1 -0
  62. package/out/_next/static/chunks/10afagk8yn__n.js +1 -0
  63. package/out/_next/static/chunks/12ory_c78yl31.js +1 -0
  64. package/out/_next/static/chunks/{1ccn725by19i1.js → 133dqp8_7_yo6.js} +1 -1
  65. package/out/_next/static/chunks/1365lgwdd4vuo.js +1 -0
  66. package/out/_next/static/chunks/146ou-ohb_qhs.js +1 -0
  67. package/out/_next/static/chunks/{425epvuw3yy-n.js → 14e4k-718qadd.js} +31 -31
  68. package/out/_next/static/chunks/14orr68xgdykd.js +1 -0
  69. package/out/_next/static/chunks/15qfoj-vl9thu.js +1 -0
  70. package/out/_next/static/chunks/{0okbyggxe6mx5.js → 161yjxmdz9obc.js} +1 -1
  71. package/out/_next/static/chunks/166yqx3_qvbpy.js +1 -0
  72. package/out/_next/static/chunks/16gwjao676ieb.js +1 -0
  73. package/out/_next/static/chunks/{0n-zml1gn0o1u.js → 16rmmzhy2p7bw.js} +1 -1
  74. package/out/_next/static/chunks/{442e2l3jzxd-_.js → 17_jjyx4jz9dd.js} +1 -1
  75. package/out/_next/static/chunks/{0zf26k6juhlzo.js → 184pz6z3dflfm.js} +13 -10
  76. package/out/_next/static/chunks/18h9ugdz6igdb.js +1 -0
  77. package/out/_next/static/chunks/19d8n5t7ka2fb.js +1 -0
  78. package/out/_next/static/chunks/{1mvadj46owrck.js → 1_4hh3dfop93j.js} +1 -1
  79. package/out/_next/static/chunks/1_rbzw3n4fk0g.js +1 -0
  80. package/out/_next/static/chunks/{22ja7c3gk0_ko.js → 1a94whad0y57f.js} +1 -1
  81. package/out/_next/static/chunks/{1vmpltnr0cyos.js → 1aa9g197l4twm.js} +1 -1
  82. package/out/_next/static/chunks/1bq0fcnt1wy86.js +1 -0
  83. package/out/_next/static/chunks/{1fyh50hjt7hi_.js → 1bv-jzy_2jiqs.js} +1 -1
  84. package/out/_next/static/chunks/1c6mho7e0enta.js +1 -0
  85. package/out/_next/static/chunks/{2ymtumj-hfrjo.js → 1dfaheve77dhi.js} +1 -1
  86. package/out/_next/static/chunks/1dgf112ehnhm1.js +1 -0
  87. package/out/_next/static/chunks/{32vaw89wdwv5_.js → 1eirucr9s6-h5.js} +1 -1
  88. package/out/_next/static/chunks/{0dva036n8ab62.js → 1f07l3q77zat1.js} +1 -1
  89. package/out/_next/static/chunks/1fervgvgv10r-.js +1 -0
  90. package/out/_next/static/chunks/1fsof7un7igrn.js +1 -0
  91. package/out/_next/static/chunks/{3gyyjsot8mdav.js → 1gvu5a6ffbs7l.js} +1 -1
  92. package/out/_next/static/chunks/{0t89-lfct-7m6.js → 1h1gixjbjkbsl.js} +5 -5
  93. package/out/_next/static/chunks/1iel4pzhhh-c3.js +1 -0
  94. package/out/_next/static/chunks/1iojfx3-g4_n9.js +1 -0
  95. package/out/_next/static/chunks/{1__nujzr9e352.js → 1j4c0nvdo5q68.js} +1 -1
  96. package/out/_next/static/chunks/{1o3ggu95lfu6i.js → 1j4jt5q7px8sy.js} +1 -1
  97. package/out/_next/static/chunks/{2g_1ov-0j2kwd.js → 1jjw9hxgi2vzi.js} +1 -1
  98. package/out/_next/static/chunks/1k_8olnprvi8r.js +1 -0
  99. package/out/_next/static/chunks/1l0rt7d4m-xdk.js +5 -0
  100. package/out/_next/static/chunks/{1oljzgz5jistn.js → 1lu7rjfvxj8yj.js} +1 -1
  101. package/out/_next/static/chunks/{2c2dspoukng-5.js → 1mt4cnd_d6jvf.js} +1 -1
  102. package/out/_next/static/chunks/1my968s78he8g.js +272 -0
  103. package/out/_next/static/chunks/{03zip1uidm6x9.js → 1s0dpdqy480hg.js} +1 -1
  104. package/out/_next/static/chunks/1t-yolk97lmot.js +12 -0
  105. package/out/_next/static/chunks/1t2g1v0ubcsam.js +1 -0
  106. package/out/_next/static/chunks/{18wa83g0qfh-b.js → 1tbes2sv-qzcx.js} +1 -1
  107. package/out/_next/static/chunks/1upy8a5cb75kt.js +1 -0
  108. package/out/_next/static/chunks/{2zpn7010iqgsy.js → 1x0j78ohufpul.js} +1 -1
  109. package/out/_next/static/chunks/1xed71f608m4b.js +1 -0
  110. package/out/_next/static/chunks/1z790xxb46gxy.js +1 -0
  111. package/out/_next/static/chunks/{22rl_arnzs-ve.js → 1zmx71cvc6ksk.js} +1 -1
  112. package/out/_next/static/chunks/{3kalvwsf11-ss.js → 2-_a-v1xeo5hb.js} +15 -12
  113. package/out/_next/static/chunks/2-i29-jdbwww6.js +532 -0
  114. package/out/_next/static/chunks/{1solqr18og2ot.js → 2117sv2qzo6yq.js} +1 -1
  115. package/out/_next/static/chunks/219n3q-_eengm.js +1 -0
  116. package/out/_next/static/chunks/21wo3vdr_uby8.js +1 -0
  117. package/out/_next/static/chunks/{1nqojcig-0m3c.js → 22yht3s7c-xih.js} +1 -1
  118. package/out/_next/static/chunks/{3go-mst7n3udd.js → 23-y1f_zw56vo.js} +1 -1
  119. package/out/_next/static/chunks/{0-tzsd_n-ywom.js → 25brs445bjbik.js} +2 -2
  120. package/out/_next/static/chunks/25gep78-izw79.js +4 -0
  121. package/out/_next/static/chunks/{099ilz3dmm1jw.js → 26i7dn31afdtm.js} +1 -1
  122. package/out/_next/static/chunks/27hbplu797elx.js +1 -0
  123. package/out/_next/static/chunks/{3n-7bcmfbh299.js → 27z7j17kcrty_.js} +11 -11
  124. package/out/_next/static/chunks/{380ivzcfb4o_3.js → 287hakn2ijupp.js} +2 -2
  125. package/out/_next/static/chunks/28i3wgvgn_at1.js +1 -0
  126. package/out/_next/static/chunks/2992eiy52nazj.js +1 -0
  127. package/out/_next/static/chunks/29_n5j-hg_gsa.js +1 -0
  128. package/out/_next/static/chunks/29bxq-67oazfg.js +1 -0
  129. package/out/_next/static/chunks/{309f81l5ucsb_.js → 29hkkj9raxte9.js} +50 -50
  130. package/out/_next/static/chunks/29ings58w7kp1.js +1 -0
  131. package/out/_next/static/chunks/{2e46-2ubc90do.js → 2_6b9lraq-exh.js} +5 -5
  132. package/out/_next/static/chunks/{3w4qettzp7khe.js → 2_lw4d7t-xcqi.js} +32 -32
  133. package/out/_next/static/chunks/2_n0cpkdsjzli.js +1 -0
  134. package/out/_next/static/chunks/2a3iy701j4r_y.js +1 -0
  135. package/out/_next/static/chunks/2al9dh3_1ixhv.js +1 -0
  136. package/out/_next/static/chunks/{1gvdmbr65lpud.js → 2as_br1awqk6k.js} +69 -69
  137. package/out/_next/static/chunks/{0c5d3qn2mb3ew.js → 2awr1c_vfsutb.js} +1 -1
  138. package/out/_next/static/chunks/{2q0rz76kj6h5z.js → 2b5nt7yn-pq3a.js} +1 -1
  139. package/out/_next/static/chunks/2bxe3kjr17tdp.js +1 -0
  140. package/out/_next/static/chunks/{2z9mdtudj8crz.js → 2c8rmxz151fxa.js} +20 -18
  141. package/out/_next/static/chunks/{35aagg46wp139.js → 2clevl_9ayd0x.js} +1 -1
  142. package/out/_next/static/chunks/{41qxc142snm22.js → 2dvbzar93ooc-.js} +1 -1
  143. package/out/_next/static/chunks/2e-vp0e11g9ew.js +1 -0
  144. package/out/_next/static/chunks/{2-p206i_ihx09.js → 2epukrz6paj9n.js} +1 -1
  145. package/out/_next/static/chunks/2exj9-0p6n9x-.js +1 -0
  146. package/out/_next/static/chunks/{05uqfgf-hh-p5.js → 2fspbfbxbswzd.js} +1 -1
  147. package/out/_next/static/chunks/2gf8l6hbmt7v3.js +1 -0
  148. package/out/_next/static/chunks/{1ph0tfo-4hl-f.js → 2h07np207nlx7.js} +1 -1
  149. package/out/_next/static/chunks/{11p92pnn5el0v.js → 2h9i_adbqaxs4.js} +1 -1
  150. package/out/_next/static/chunks/{0bj_310rugcn1.js → 2iu0_3cx-ny74.js} +11 -11
  151. package/out/_next/static/chunks/2jio3sio-_43z.js +1 -0
  152. package/out/_next/static/chunks/{0uxdbfa8gv6tk.js → 2kk_vvmr2xm3d.js} +29 -29
  153. package/out/_next/static/chunks/2kmmk9coo9_b0.js +505 -0
  154. package/out/_next/static/chunks/{055baac5e-c2o.js → 2laz1v9fg2a2z.js} +1 -1
  155. package/out/_next/static/chunks/{1qsut_e3msg0l.js → 2mjjo0yj-4ro4.js} +1 -1
  156. package/out/_next/static/chunks/{0av6n_6q6kzo3.js → 2mrkv0z2i74pv.js} +2 -2
  157. package/out/_next/static/chunks/{04_3ri5emyfcu.js → 2neieeo9g2u56.js} +1 -1
  158. package/out/_next/static/chunks/{1upkv4ltuh3s5.js → 2oacwtbslo90t.js} +84 -84
  159. package/out/_next/static/chunks/2pb_uosb-aa8x.js +1 -0
  160. package/out/_next/static/chunks/2qu-gpm3ux1l6.js +1 -0
  161. package/out/_next/static/chunks/2rsi6v7qmqx2b.js +1 -0
  162. package/out/_next/static/chunks/2s4fzgzkwjluu.js +2 -0
  163. package/out/_next/static/chunks/2tdvuc-27khif.js +1 -0
  164. package/out/_next/static/chunks/{2bm95r0011asw.js → 2trolrgd7neax.js} +1 -1
  165. package/out/_next/static/chunks/2uyuafmoe5wi0.js +3 -0
  166. package/out/_next/static/chunks/2w2e0pxgs-n8f.js +1 -0
  167. package/out/_next/static/chunks/{1qxhgauuomthl.js → 2wgh5i70bzelt.js} +60 -60
  168. package/out/_next/static/chunks/{3d76e_yd8l_0x.js → 2x-7kbwq8tl-o.js} +59 -59
  169. package/out/_next/static/chunks/{1t2exh89lnazc.js → 2xe4bgir5l-9b.js} +32 -99
  170. package/out/_next/static/chunks/2xujlsx3stqig.js +1 -0
  171. package/out/_next/static/chunks/{267q_eg-c6f6m.js → 3-yhe6rcsjh88.js} +1 -1
  172. package/out/_next/static/chunks/30y71dxdpv52d.js +1 -0
  173. package/out/_next/static/chunks/32c-e_v8_2xkf.js +1 -0
  174. package/out/_next/static/chunks/32oj0iudhp8bm.js +1 -0
  175. package/out/_next/static/chunks/{0w-hm7g7trtjg.js → 336ckqpboqmbn.js} +1 -1
  176. package/out/_next/static/chunks/33p9du6y9eegg.js +1 -0
  177. package/out/_next/static/chunks/{3w_umk1xtj6to.js → 36pz_ews7u0xb.js} +1 -1
  178. package/out/_next/static/chunks/{1ux1rpe-n1mai.js → 374lzksboll-t.js} +1 -1
  179. package/out/_next/static/chunks/38om-j0h0rryk.js +1 -0
  180. package/out/_next/static/chunks/{3oyuoqr8y2g9r.js → 38q0enmlg5q9o.js} +2 -2
  181. package/out/_next/static/chunks/{25gf6xn9u1c57.js → 39cou9lia_g7l.js} +1 -1
  182. package/out/_next/static/chunks/39pkya0_bvcaj.js +1 -0
  183. package/out/_next/static/chunks/{1x99m91nt1m3b.js → 39rhmj_32ujyj.js} +1 -1
  184. package/out/_next/static/chunks/3_1zzmx92j9c0.js +1 -0
  185. package/out/_next/static/chunks/{3z4suna4kq4j5.js → 3_dm45k0vk1aa.js} +34 -35
  186. package/out/_next/static/chunks/3_earszshuz4n.js +1 -0
  187. package/out/_next/static/chunks/{1ephzzweysylq.js → 3_gfl66zf638s.js} +38 -105
  188. package/out/_next/static/chunks/3ap_uxc8lx7ni.js +1 -0
  189. package/out/_next/static/chunks/{0pv2wirx45e1m.js → 3b6na8zrex8jo.js} +1 -1
  190. package/out/_next/static/chunks/3c0cxt72vilyz.js +1 -0
  191. package/out/_next/static/chunks/3cp5nmtwxq4gr.js +1 -0
  192. package/out/_next/static/chunks/{0tn-9w46cwydp.js → 3d43gd91r06y6.js} +39 -40
  193. package/out/_next/static/chunks/3g78x0pdaoi_4.js +1 -0
  194. package/out/_next/static/chunks/{1di5enkavl9vx.js → 3gjvl1p-tugfe.js} +2 -2
  195. package/out/_next/static/chunks/{1mrvp94tietcv.js → 3i8iro1gas1vx.js} +1 -1
  196. package/out/_next/static/chunks/{3-_08i4_7yhno.js → 3ioxfi3bvznhh.js} +1 -1
  197. package/out/_next/static/chunks/{2i82rmjta9ijs.js → 3j3ol_d1vsdhx.js} +1 -1
  198. package/out/_next/static/chunks/3kpqfqr99vo7z.js +1 -0
  199. package/out/_next/static/chunks/3lladf_wemm-2.js +1 -0
  200. package/out/_next/static/chunks/{0-0hui1_v3h8b.js → 3mmy9zsb7zo-m.js} +12 -9
  201. package/out/_next/static/chunks/{17aahvhpls1l7.js → 3my05px5mv_s5.js} +83 -16
  202. package/out/_next/static/chunks/3n62hbywoknop.js +1 -0
  203. package/out/_next/static/chunks/{0wq_9f98weoe3.js → 3nr48h9zwum-3.js} +1 -1
  204. package/out/_next/static/chunks/{2x83vs8ns4pww.js → 3nwaovnpiyrt8.js} +1 -1
  205. package/out/_next/static/chunks/3o_dmzpahx-5g.js +1 -0
  206. package/out/_next/static/chunks/{0g2wngc6oe7fd.js → 3p03l0z65c8vc.js} +27 -25
  207. package/out/_next/static/chunks/{00xc-0pj7on2s.js → 3puu2_-t0lln9.js} +29 -29
  208. package/out/_next/static/chunks/{077eo-0dhbxz-.js → 3qo7e6b73mfxq.js} +1 -1
  209. package/out/_next/static/chunks/3r7v7un976sn7.js +1 -0
  210. package/out/_next/static/chunks/{255knovck7pv2.js → 3rj-5v0j_2-_2.js} +4 -4
  211. package/out/_next/static/chunks/3rl_nhqwew40w.js +1 -0
  212. package/out/_next/static/chunks/3s7hqij6xp_4e.js +1 -0
  213. package/out/_next/static/chunks/{1ng-fqh2_n984.js → 3si3migsmvz9o.js} +1 -1
  214. package/out/_next/static/chunks/3t4ys6th6gf2w.js +1 -0
  215. package/out/_next/static/chunks/{1og49_atcksim.js → 3twr9ds68-9us.js} +1 -1
  216. package/out/_next/static/chunks/{2ftp5xmq_w23j.js → 3txu-i5qn183a.js} +65 -65
  217. package/out/_next/static/chunks/{3y_51bmdnc0ey.js → 3uarw1i1ij1er.js} +1 -1
  218. package/out/_next/static/chunks/3un-w6wutw1qn.js +1 -0
  219. package/out/_next/static/chunks/3v8kgnjk27wbe.js +1 -0
  220. package/out/_next/static/chunks/{1t7nl8rx7mabd.js → 3vtmucpx25o7q.js} +61 -61
  221. package/out/_next/static/chunks/{04j9pexbmysdy.js → 3vu5y270muh-7.js} +1 -1
  222. package/out/_next/static/chunks/3we1khqfexh3x.js +1 -0
  223. package/out/_next/static/chunks/3yk0hzfq5rcs6.js +1 -0
  224. package/out/_next/static/chunks/3z35loj4i-id4.js +1 -0
  225. package/out/_next/static/chunks/{28ndw4nsw2t_4.js → 3zv5kyos9vtmm.js} +1 -1
  226. package/out/_next/static/chunks/{1hsvckd0sgdgr.js → 415g3asdds1ac.js} +1 -1
  227. package/out/_next/static/chunks/{1nasz7q3tvb53.js → 42lqt7ig40wk5.js} +1 -1
  228. package/out/_next/static/chunks/42s6ghsurq5q7.js +1 -0
  229. package/out/_next/static/chunks/42yctcfi2rfwr.js +1 -0
  230. package/out/_next/static/chunks/43_fau1gg69eo.js +1 -0
  231. package/out/_next/static/chunks/43ywrdzg_7af8.js +31 -0
  232. package/out/_next/static/chunks/{1ho02fc091nj2.js → 44m1ijc5cv80x.js} +1 -1
  233. package/out/_next/static/chunks/{3k-gz8qf-mj-p.js → 453_bg0lgesmp.js} +1 -1
  234. package/out/_next/static/chunks/{turbopack-3r8yn0j92tqw_.js → turbopack-1s36ieuku1ds3.js} +1 -1
  235. package/out/_not-found/__next._full.txt +9 -9
  236. package/out/_not-found/__next._head.txt +4 -4
  237. package/out/_not-found/__next._index.txt +4 -4
  238. package/out/_not-found/__next._not-found.__PAGE__.txt +2 -2
  239. package/out/_not-found/__next._not-found.txt +3 -3
  240. package/out/_not-found/__next._tree.txt +2 -2
  241. package/out/_not-found.html +1 -1
  242. package/out/_not-found.txt +9 -9
  243. package/out/index.html +1 -1
  244. package/out/index.txt +11 -11
  245. package/package.json +14 -14
  246. package/out/_next/static/chunks/00g5suuoa-_wn.js +0 -1
  247. package/out/_next/static/chunks/00o9hr_3hd0r8.js +0 -1
  248. package/out/_next/static/chunks/01fh3_bncbe5u.js +0 -1
  249. package/out/_next/static/chunks/01urdkl1j8o6l.js +0 -1
  250. package/out/_next/static/chunks/026vw95s88gsy.js +0 -1
  251. package/out/_next/static/chunks/02eui3ctddbd2.js +0 -1
  252. package/out/_next/static/chunks/04c4nksb5y9r-.js +0 -1
  253. package/out/_next/static/chunks/04g-l-_b4payc.js +0 -1
  254. package/out/_next/static/chunks/05bdni_jrobq1.js +0 -1
  255. package/out/_next/static/chunks/05o0tb8l_htmw.js +0 -1
  256. package/out/_next/static/chunks/07z6p262h5hgl.js +0 -1
  257. package/out/_next/static/chunks/08m_4cihfmik8.js +0 -1
  258. package/out/_next/static/chunks/08obqw64faj8j.js +0 -1
  259. package/out/_next/static/chunks/09ppu_k464q-n.js +0 -1
  260. package/out/_next/static/chunks/0bgcaf2x51kms.js +0 -1
  261. package/out/_next/static/chunks/0dg4wxz-6u5lo.js +0 -1
  262. package/out/_next/static/chunks/0erga_bzezbza.js +0 -1
  263. package/out/_next/static/chunks/0f0-i105odxqd.js +0 -1
  264. package/out/_next/static/chunks/0gyeqz9pagssf.js +0 -1
  265. package/out/_next/static/chunks/0i82k-t0fbn8f.js +0 -1
  266. package/out/_next/static/chunks/0kzw45f61wm3j.js +0 -1
  267. package/out/_next/static/chunks/0l8bfa2xewq69.js +0 -1
  268. package/out/_next/static/chunks/0qxd_8t3nca36.js +0 -1
  269. package/out/_next/static/chunks/0s1jghzw8jufz.js +0 -1
  270. package/out/_next/static/chunks/0ti58h622yo-_.js +0 -2
  271. package/out/_next/static/chunks/0u8yr4k1y6m2t.js +0 -1
  272. package/out/_next/static/chunks/0ubxyut5rr600.js +0 -1
  273. package/out/_next/static/chunks/0wbw9h7rsis2r.js +0 -1
  274. package/out/_next/static/chunks/0y4e49hpuucdi.js +0 -1
  275. package/out/_next/static/chunks/0yvevihll7sz-.js +0 -1
  276. package/out/_next/static/chunks/1-b44873bjsdw.js +0 -1
  277. package/out/_next/static/chunks/1-c3a1vnl8v1q.js +0 -1
  278. package/out/_next/static/chunks/1-xf86jgea22y.js +0 -1
  279. package/out/_next/static/chunks/10b0qqdnb_nox.js +0 -1
  280. package/out/_next/static/chunks/12kdmh0h_mboy.js +0 -1
  281. package/out/_next/static/chunks/141tngxsk32hq.js +0 -1
  282. package/out/_next/static/chunks/14ijcpo72av4r.js +0 -1
  283. package/out/_next/static/chunks/16hdip1drt8o-.js +0 -1
  284. package/out/_next/static/chunks/18txc1wwwu9f9.js +0 -1
  285. package/out/_next/static/chunks/19dp8nr4uygg2.js +0 -5
  286. package/out/_next/static/chunks/1_8acnu6_-qe-.js +0 -1
  287. package/out/_next/static/chunks/1bmyq1b0by7ug.js +0 -1
  288. package/out/_next/static/chunks/1d1tpj9nm1nhf.js +0 -1
  289. package/out/_next/static/chunks/1dfwa563iciz3.js +0 -1
  290. package/out/_next/static/chunks/1fwsjnd1y-lx_.js +0 -1
  291. package/out/_next/static/chunks/1gaexq_suxai0.js +0 -1
  292. package/out/_next/static/chunks/1gtj_l5ame5mw.js +0 -1
  293. package/out/_next/static/chunks/1i4f3n_2_3ery.js +0 -1
  294. package/out/_next/static/chunks/1j7e3qpjuj89a.js +0 -1
  295. package/out/_next/static/chunks/1qjsgebn9m-0l.js +0 -1
  296. package/out/_next/static/chunks/1rb8wewjbdisv.js +0 -1
  297. package/out/_next/static/chunks/1rr74xxjtckyv.js +0 -1
  298. package/out/_next/static/chunks/1uu55ejvi7q5u.js +0 -1
  299. package/out/_next/static/chunks/1xbzxfeq9789f.js +0 -1
  300. package/out/_next/static/chunks/1ybiu-rkt50_1.js +0 -1
  301. package/out/_next/static/chunks/20qelrstvz9_n.js +0 -1
  302. package/out/_next/static/chunks/21at65obnoo8z.js +0 -1
  303. package/out/_next/static/chunks/21ko5mxfderw0.js +0 -1
  304. package/out/_next/static/chunks/21muzwu43o8xg.js +0 -1
  305. package/out/_next/static/chunks/23d-hvrwpixpm.js +0 -1
  306. package/out/_next/static/chunks/2569rrrffvm2w.js +0 -31
  307. package/out/_next/static/chunks/29o74k0d6hkdf.js +0 -1
  308. package/out/_next/static/chunks/2btabnibkm0db.js +0 -1
  309. package/out/_next/static/chunks/2c--awgkdcikq.js +0 -1
  310. package/out/_next/static/chunks/2ep7mjbaoeou0.js +0 -1
  311. package/out/_next/static/chunks/2ezgqm7atphi6.js +0 -1
  312. package/out/_next/static/chunks/2gfjzq_vjea4w.js +0 -1
  313. package/out/_next/static/chunks/2h5hase6ewoyc.js +0 -1
  314. package/out/_next/static/chunks/2hghi41nhdww2.css +0 -3
  315. package/out/_next/static/chunks/2ies66gmou203.js +0 -1
  316. package/out/_next/static/chunks/2jenu2eek9viz.js +0 -1
  317. package/out/_next/static/chunks/2luaj_cf5f19-.js +0 -1
  318. package/out/_next/static/chunks/2mgmvz66gh5ub.js +0 -1
  319. package/out/_next/static/chunks/2nwlqtv3vrzcv.js +0 -1
  320. package/out/_next/static/chunks/2si5cg3hl5dtf.js +0 -4
  321. package/out/_next/static/chunks/2uhrhq35bki6u.js +0 -1
  322. package/out/_next/static/chunks/2zdzgmacaoor9.js +0 -1
  323. package/out/_next/static/chunks/2zyjw8g4tiu51.js +0 -1
  324. package/out/_next/static/chunks/3-irhmtm1q5qw.js +0 -1
  325. package/out/_next/static/chunks/3-k74vn9exnb6.js +0 -1
  326. package/out/_next/static/chunks/34845aqksy1dl.js +0 -3
  327. package/out/_next/static/chunks/34y7nx6qmat06.js +0 -1
  328. package/out/_next/static/chunks/36rqw8h6ildpl.js +0 -1
  329. package/out/_next/static/chunks/3a_khw6q6pyh1.js +0 -1
  330. package/out/_next/static/chunks/3c_31f20z4jrl.js +0 -1
  331. package/out/_next/static/chunks/3ckp70rgr63u9.js +0 -1
  332. package/out/_next/static/chunks/3ed24zmt8qfys.js +0 -1
  333. package/out/_next/static/chunks/3ez20hi1mxw0w.js +0 -1
  334. package/out/_next/static/chunks/3fdx-rnos5ft-.js +0 -1
  335. package/out/_next/static/chunks/3fgfbxxb-j_bn.js +0 -4
  336. package/out/_next/static/chunks/3lehc5pujwhsz.js +0 -1
  337. package/out/_next/static/chunks/3m0ytnc241yfz.js +0 -1
  338. package/out/_next/static/chunks/3mpe7c3iyxn5h.js +0 -1
  339. package/out/_next/static/chunks/3nw7u4bie0-g6.js +0 -1
  340. package/out/_next/static/chunks/3qatb38-tk_gd.js +0 -1
  341. package/out/_next/static/chunks/3rpm-1ryf073k.js +0 -1
  342. package/out/_next/static/chunks/3tdcdi_utmoy_.js +0 -1
  343. package/out/_next/static/chunks/3tt_ir_va6262.js +0 -1
  344. package/out/_next/static/chunks/43qmngblcab8f.js +0 -1
  345. /package/out/_next/static/{UgXxCZvX6DcLoCaAHvGbP → 5UjNvd7WCk97iC2cSmEGH}/_buildManifest.js +0 -0
  346. /package/out/_next/static/{UgXxCZvX6DcLoCaAHvGbP → 5UjNvd7WCk97iC2cSmEGH}/_clientMiddlewareManifest.js +0 -0
  347. /package/out/_next/static/{UgXxCZvX6DcLoCaAHvGbP → 5UjNvd7WCk97iC2cSmEGH}/_ssgManifest.js +0 -0
@@ -1,4 +1,4 @@
1
- (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,33053,73525,31814,e=>{"use strict";var r=e.i(37875);let i="bumpFragmentMainFunctions",o=`#ifndef TEXRD_DEFINED
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,40766,32274,67538,e=>{"use strict";var r=e.i(47150);let i="bumpFragmentMainFunctions",o=`#ifndef TEXRD_DEFINED
2
2
  #define TEXRD(s,uv) texture2D(s,uv)
3
3
  #define TEXRD_DEFINED
4
4
  #endif
@@ -63,7 +63,7 @@ vec3 perturbNormal(mat3 cotangentFrame,vec3 textureSample,float scale)
63
63
  mat3 cotangent_frame(vec3 normal,vec3 p,vec2 uv,vec2 tangentSpaceParams)
64
64
  {vec3 dp1=dFdx(p);vec3 dp2=dFdy(p);vec2 duv1=dFdx(uv);vec2 duv2=dFdy(uv);vec3 dp2perp=cross(dp2,normal);vec3 dp1perp=cross(normal,dp1);vec3 tangent=dp2perp*duv1.x+dp1perp*duv2.x;vec3 bitangent=dp2perp*duv1.y+dp1perp*duv2.y;tangent*=tangentSpaceParams.x;bitangent*=tangentSpaceParams.y;float det=max(dot(tangent,tangent),dot(bitangent,bitangent));float invmax=det==0.0 ? 0.0 : inversesqrt(det);return mat3(tangent*invmax,bitangent*invmax,normal);}
65
65
  #endif
66
- `;r.ShaderStore.IncludesShadersStore[i]||(r.ShaderStore.IncludesShadersStore[i]=o),e.s(["bumpFragmentMainFunctions",0,{name:i,shader:o}],33053),e.i(32172);let a="bumpFragmentFunctions",n=`#if defined(BUMP)
66
+ `;r.ShaderStore.IncludesShadersStore[i]||(r.ShaderStore.IncludesShadersStore[i]=o),e.s(["bumpFragmentMainFunctions",0,{name:i,shader:o}],40766),e.i(844);let a="bumpFragmentFunctions",n=`#if defined(BUMP)
67
67
  #include<samplerFragmentDeclaration>(_DEFINENAME_,BUMP,_VARYINGNAME_,Bump,_SAMPLERNAME_,bump)
68
68
  #endif
69
69
  #if defined(DETAIL)
@@ -93,7 +93,7 @@ return -texCoordOffset;
93
93
  #endif
94
94
  }
95
95
  #endif
96
- `;r.ShaderStore.IncludesShadersStore[a]||(r.ShaderStore.IncludesShadersStore[a]=n),e.s(["bumpFragmentFunctions",0,{name:a,shader:n}],73525);let t="bumpFragment",c=`vec2 uvOffset=vec2(0.0,0.0);
96
+ `;r.ShaderStore.IncludesShadersStore[a]||(r.ShaderStore.IncludesShadersStore[a]=n),e.s(["bumpFragmentFunctions",0,{name:a,shader:n}],32274);let t="bumpFragment",c=`vec2 uvOffset=vec2(0.0,0.0);
97
97
  #if defined(BUMP) || defined(PARALLAX) || defined(DETAIL)
98
98
  #ifdef NORMALXYSCALE
99
99
  float normalScale=1.0;
@@ -145,7 +145,12 @@ normalW=perturbNormalBase(TBN,blendedNormal,vBumpInfos.y);
145
145
  #elif defined(DETAIL)
146
146
  detailNormal.xy*=vDetailInfos.z;normalW=perturbNormalBase(TBN,detailNormal,vDetailInfos.z);
147
147
  #endif
148
- `;r.ShaderStore.IncludesShadersStore[t]||(r.ShaderStore.IncludesShadersStore[t]=c),e.s(["bumpFragment",0,{name:t,shader:c}],31814)},87027,e=>{"use strict";var r=e.i(37875);let i="helperFunctions",o=`const float PI=3.1415926535897932384626433832795;const float TWO_PI=6.283185307179586;const float HALF_PI=1.5707963267948966;const float RECIPROCAL_PI=0.3183098861837907;const float RECIPROCAL_PI2=0.15915494309189535;const float RECIPROCAL_PI4=0.07957747154594767;const float HALF_MIN=5.96046448e-08;
148
+ `;r.ShaderStore.IncludesShadersStore[t]||(r.ShaderStore.IncludesShadersStore[t]=c),e.s(["bumpFragment",0,{name:t,shader:c}],67538)},67827,e=>{"use strict";var r=e.i(47150);let i="sceneUboDeclaration",o=`layout(std140,column_major) uniform;uniform Scene {mat4 viewProjection;
149
+ #ifdef MULTIVIEW
150
+ mat4 viewProjectionR;
151
+ #endif
152
+ mat4 view;mat4 projection;vec4 vEyePosition;mat4 inverseProjection;};
153
+ `;r.ShaderStore.IncludesShadersStore[i]||(r.ShaderStore.IncludesShadersStore[i]=o),e.s(["sceneUboDeclaration",0,{name:i,shader:o}])},3954,e=>{"use strict";var r=e.i(47150);let i="helperFunctions",o=`const float PI=3.1415926535897932384626433832795;const float TWO_PI=6.283185307179586;const float HALF_PI=1.5707963267948966;const float RECIPROCAL_PI=0.3183098861837907;const float RECIPROCAL_PI2=0.15915494309189535;const float RECIPROCAL_PI4=0.07957747154594767;const float HALF_MIN=5.96046448e-08;
149
154
  const float LinearEncodePowerApprox=2.2;const float GammaEncodePowerApprox=1.0/LinearEncodePowerApprox;const vec3 LuminanceEncodeApprox=vec3(0.2126,0.7152,0.0722);const float Epsilon=0.0000001;
150
155
  #define saturate(x) clamp(x,0.0,1.0)
151
156
  #define absEps(x) abs(x)+Epsilon
@@ -263,12 +268,7 @@ float uint2float(uint i) {return uintBitsToFloat(0x3F800000u | (i>>9u))-1.0;}
263
268
  vec2 plasticSequence(const uint rstate) {return vec2(uint2float(rstate*3242174889u),
264
269
  uint2float(rstate*2447445414u));}
265
270
  #endif
266
- `;r.ShaderStore.IncludesShadersStore[i]||(r.ShaderStore.IncludesShadersStore[i]=o),e.s(["helperFunctions",0,{name:i,shader:o}])},23044,e=>{"use strict";var r=e.i(37875);let i="sceneUboDeclaration",o=`layout(std140,column_major) uniform;uniform Scene {mat4 viewProjection;
267
- #ifdef MULTIVIEW
268
- mat4 viewProjectionR;
269
- #endif
270
- mat4 view;mat4 projection;vec4 vEyePosition;mat4 inverseProjection;};
271
- `;r.ShaderStore.IncludesShadersStore[i]||(r.ShaderStore.IncludesShadersStore[i]=o),e.s(["sceneUboDeclaration",0,{name:i,shader:o}])},85916,e=>{"use strict";var r=e.i(37875);let i="pbrBRDFFunctions",o=`#define FRESNEL_MAXIMUM_ON_ROUGH 0.25
271
+ `;r.ShaderStore.IncludesShadersStore[i]||(r.ShaderStore.IncludesShadersStore[i]=o),e.s(["helperFunctions",0,{name:i,shader:o}])},98680,e=>{"use strict";var r=e.i(47150);let i="pbrBRDFFunctions",o=`#define FRESNEL_MAXIMUM_ON_ROUGH 0.25
272
272
  #define BRDF_DIFFUSE_MODEL_EON 0
273
273
  #define BRDF_DIFFUSE_MODEL_BURLEY 1
274
274
  #define BRDF_DIFFUSE_MODEL_LAMBERT 2
@@ -441,7 +441,7 @@ vec3 transmittanceBRDF_Burley(const vec3 tintColor,const vec3 diffusionDistance,
441
441
  float computeWrappedDiffuseNdotL(float NdotL,float w) {float t=1.0+w;float invt2=1.0/square(t);return saturate((NdotL+w)*invt2);}
442
442
  #endif
443
443
  #endif
444
- `;r.ShaderStore.IncludesShadersStore[i]||(r.ShaderStore.IncludesShadersStore[i]=o),e.s(["pbrBRDFFunctions",0,{name:i,shader:o}])},39780,83958,e=>{"use strict";var r=e.i(37875);let i="clipPlaneFragmentDeclaration",o=`#ifdef CLIPPLANE
444
+ `;r.ShaderStore.IncludesShadersStore[i]||(r.ShaderStore.IncludesShadersStore[i]=o),e.s(["pbrBRDFFunctions",0,{name:i,shader:o}])},57487,70402,e=>{"use strict";var r=e.i(47150);let i="clipPlaneFragmentDeclaration",o=`#ifdef CLIPPLANE
445
445
  varying float fClipDistance;
446
446
  #endif
447
447
  #ifdef CLIPPLANE2
@@ -459,7 +459,7 @@ varying float fClipDistance5;
459
459
  #ifdef CLIPPLANE6
460
460
  varying float fClipDistance6;
461
461
  #endif
462
- `;r.ShaderStore.IncludesShadersStore[i]||(r.ShaderStore.IncludesShadersStore[i]=o),e.s(["clipPlaneFragmentDeclaration",0,{name:i,shader:o}],39780);let a="clipPlaneFragment",n=`#if defined(CLIPPLANE) || defined(CLIPPLANE2) || defined(CLIPPLANE3) || defined(CLIPPLANE4) || defined(CLIPPLANE5) || defined(CLIPPLANE6)
462
+ `;r.ShaderStore.IncludesShadersStore[i]||(r.ShaderStore.IncludesShadersStore[i]=o),e.s(["clipPlaneFragmentDeclaration",0,{name:i,shader:o}],57487);let a="clipPlaneFragment",n=`#if defined(CLIPPLANE) || defined(CLIPPLANE2) || defined(CLIPPLANE3) || defined(CLIPPLANE4) || defined(CLIPPLANE5) || defined(CLIPPLANE6)
463
463
  if (false) {}
464
464
  #endif
465
465
  #ifdef CLIPPLANE
@@ -486,7 +486,7 @@ else if (fClipDistance5>0.0)
486
486
  else if (fClipDistance6>0.0)
487
487
  {discard;}
488
488
  #endif
489
- `;r.ShaderStore.IncludesShadersStore[a]||(r.ShaderStore.IncludesShadersStore[a]=n),e.s(["clipPlaneFragment",0,{name:a,shader:n}],83958)},32172,33165,e=>{"use strict";var r=e.i(37875);let i="samplerFragmentDeclaration",o=`#ifdef _DEFINENAME_
489
+ `;r.ShaderStore.IncludesShadersStore[a]||(r.ShaderStore.IncludesShadersStore[a]=n),e.s(["clipPlaneFragment",0,{name:a,shader:n}],70402)},844,40676,e=>{"use strict";var r=e.i(47150);let i="samplerFragmentDeclaration",o=`#ifdef _DEFINENAME_
490
490
  #if _DEFINENAME_DIRECTUV==1
491
491
  #define v_VARYINGNAME_UV vMainUV1
492
492
  #elif _DEFINENAME_DIRECTUV==2
@@ -504,7 +504,7 @@ varying vec2 v_VARYINGNAME_UV;
504
504
  #endif
505
505
  uniform sampler2D _SAMPLERNAME_Sampler;
506
506
  #endif
507
- `;r.ShaderStore.IncludesShadersStore[i]||(r.ShaderStore.IncludesShadersStore[i]=o),e.s(["samplerFragmentDeclaration",0,{name:i,shader:o}],32172);let a="reflectionFunction",n=`vec3 computeFixedEquirectangularCoords(vec4 worldPos,vec3 worldNormal,vec3 direction)
507
+ `;r.ShaderStore.IncludesShadersStore[i]||(r.ShaderStore.IncludesShadersStore[i]=o),e.s(["samplerFragmentDeclaration",0,{name:i,shader:o}],844);let a="reflectionFunction",n=`vec3 computeFixedEquirectangularCoords(vec4 worldPos,vec3 worldNormal,vec3 direction)
508
508
  {float lon=atan(direction.z,direction.x);float lat=acos(direction.y);vec2 sphereCoords=vec2(lon,lat)*RECIPROCAL_PI2*2.0;float s=sphereCoords.x*0.5+0.5;float t=sphereCoords.y;return vec3(s,t,0); }
509
509
  vec3 computeMirroredFixedEquirectangularCoords(vec4 worldPos,vec3 worldNormal,vec3 direction)
510
510
  {float lon=atan(direction.z,direction.x);float lat=acos(direction.y);vec2 sphereCoords=vec2(lon,lat)*RECIPROCAL_PI2*2.0;float s=sphereCoords.x*0.5+0.5;float t=sphereCoords.y;return vec3(1.0-s,t,0); }
@@ -566,7 +566,7 @@ return vec3(0,0,0);
566
566
  #endif
567
567
  }
568
568
  #endif
569
- `;r.ShaderStore.IncludesShadersStore[a]||(r.ShaderStore.IncludesShadersStore[a]=n),e.s(["reflectionFunction",0,{name:a,shader:n}],33165)},82784,91468,e=>{"use strict";var r=e.i(37875);let i="pbrFragmentReflectionDeclaration",o=`#ifdef REFLECTION
569
+ `;r.ShaderStore.IncludesShadersStore[a]||(r.ShaderStore.IncludesShadersStore[a]=n),e.s(["reflectionFunction",0,{name:a,shader:n}],40676)},64242,72306,e=>{"use strict";var r=e.i(47150);let i="pbrFragmentReflectionDeclaration",o=`#ifdef REFLECTION
570
570
  #ifdef REFLECTIONMAP_3D
571
571
  #define sampleReflection(s,c) textureCube(s,c)
572
572
  uniform samplerCube reflectionSampler;
@@ -598,7 +598,7 @@ varying vec3 vDirectionW;
598
598
  #endif
599
599
  #endif
600
600
  #endif
601
- `;r.ShaderStore.IncludesShadersStore[i]||(r.ShaderStore.IncludesShadersStore[i]=o),e.s(["pbrFragmentReflectionDeclaration",0,{name:i,shader:o}],82784);let a="pbrIBLFunctions",n=`#if defined(REFLECTION) || defined(SS_REFRACTION)
601
+ `;r.ShaderStore.IncludesShadersStore[i]||(r.ShaderStore.IncludesShadersStore[i]=o),e.s(["pbrFragmentReflectionDeclaration",0,{name:i,shader:o}],64242);let a="pbrIBLFunctions",n=`#if defined(REFLECTION) || defined(SS_REFRACTION)
602
602
  float getLodFromAlphaG(float cubeMapDimensionPixels,float microsurfaceAverageSlope) {float microsurfaceAverageSlopeTexels=cubeMapDimensionPixels*microsurfaceAverageSlope;float lod=log2(microsurfaceAverageSlopeTexels);return lod;}
603
603
  float getLinearLodFromRoughness(float cubeMapDimensionPixels,float roughness) {float lod=log2(cubeMapDimensionPixels)*roughness;return lod;}
604
604
  #endif
@@ -612,30 +612,30 @@ float environmentHorizonOcclusion(vec3 view,vec3 normal,vec3 geometricNormal) {v
612
612
  #define UNPACK_LOD(x) (1.0-x)*255.0
613
613
  float getLodFromAlphaG(float cubeMapDimensionPixels,float alphaG,float NdotV) {float microsurfaceAverageSlope=alphaG;microsurfaceAverageSlope*=sqrt(abs(NdotV));return getLodFromAlphaG(cubeMapDimensionPixels,microsurfaceAverageSlope);}
614
614
  #endif
615
- `;r.ShaderStore.IncludesShadersStore[a]||(r.ShaderStore.IncludesShadersStore[a]=n),e.s(["pbrIBLFunctions",0,{name:a,shader:n}],91468)},19752,31885,98744,33577,e=>{"use strict";var r=e.i(37875);let i="sceneFragmentDeclaration",o=`uniform mat4 viewProjection;
615
+ `;r.ShaderStore.IncludesShadersStore[a]||(r.ShaderStore.IncludesShadersStore[a]=n),e.s(["pbrIBLFunctions",0,{name:a,shader:n}],72306)},6606,43128,97242,99165,e=>{"use strict";var r=e.i(47150);let i="sceneFragmentDeclaration",o=`uniform mat4 viewProjection;
616
616
  #ifdef MULTIVIEW
617
617
  uniform mat4 viewProjectionR;
618
618
  #endif
619
619
  uniform mat4 view;uniform mat4 projection;uniform vec4 vEyePosition;uniform mat4 inverseProjection;
620
- `;r.ShaderStore.IncludesShadersStore[i]||(r.ShaderStore.IncludesShadersStore[i]=o),e.s(["sceneFragmentDeclaration",0,{name:i,shader:o}],19752);let a="openpbrDielectricReflectance",n=`struct ReflectanceParams
620
+ `;r.ShaderStore.IncludesShadersStore[i]||(r.ShaderStore.IncludesShadersStore[i]=o),e.s(["sceneFragmentDeclaration",0,{name:i,shader:o}],6606);let a="openpbrDielectricReflectance",n=`struct ReflectanceParams
621
621
  {float F0;float F90;vec3 coloredF0;vec3 coloredF90;};
622
622
  #define pbr_inline
623
623
  ReflectanceParams dielectricReflectance(
624
624
  in float insideIOR,in float outsideIOR,in vec3 specularColor,in float specularWeight
625
625
  )
626
- {ReflectanceParams outParams;float dielectricF0=pow((insideIOR-outsideIOR)/(insideIOR+outsideIOR),2.0);float dielectricF0_NoSpec=pow((1.0-outsideIOR)/(1.0+outsideIOR),2.0);float f90Scale=clamp(2.0*abs(insideIOR-outsideIOR),0.0,1.0);float f90Scale_NoSpec=clamp(2.0*abs(1.0-outsideIOR),0.0,1.0);
626
+ {ReflectanceParams outParams;float dielectricF0=pow((insideIOR-outsideIOR)/(insideIOR+outsideIOR),2.0);float f90Scale=clamp(2.0*abs(insideIOR-outsideIOR),0.0,1.0);
627
627
  #if (DIELECTRIC_SPECULAR_MODEL==DIELECTRIC_SPECULAR_MODEL_OPENPBR)
628
- vec3 dielectricColorF90=specularColor.rgb*vec3(f90Scale);vec3 dielectricColorF90_NoSpec=specularColor.rgb*vec3(f90Scale_NoSpec);
628
+ vec3 dielectricColorF90=specularColor.rgb*vec3(f90Scale);
629
629
  #else
630
- vec3 dielectricColorF90=vec3(f90Scale);vec3 dielectricColorF90_NoSpec=vec3(f90Scale_NoSpec);
630
+ vec3 dielectricColorF90=vec3(f90Scale);
631
631
  #endif
632
632
  #if DIELECTRIC_SPECULAR_MODEL==DIELECTRIC_SPECULAR_MODEL_GLTF
633
- float maxF0=max(specularColor.r,max(specularColor.g,specularColor.b));outParams.F0=mix(dielectricF0_NoSpec,dielectricF0,specularWeight)*maxF0;
633
+ float maxF0=max(specularColor.r,max(specularColor.g,specularColor.b));outParams.F0=dielectricF0*specularWeight*maxF0;
634
634
  #else
635
- outParams.F0=mix(dielectricF0_NoSpec,dielectricF0,specularWeight);
635
+ outParams.F0=dielectricF0*specularWeight;
636
636
  #endif
637
- outParams.F90=mix(f90Scale_NoSpec,f90Scale,specularWeight);outParams.coloredF0=mix(vec3(dielectricF0_NoSpec),vec3(dielectricF0),specularWeight)*specularColor.rgb;outParams.coloredF90=mix(dielectricColorF90_NoSpec,dielectricColorF90,specularWeight);return outParams;}
638
- `;r.ShaderStore.IncludesShadersStore[a]||(r.ShaderStore.IncludesShadersStore[a]=n),e.s(["openpbrDielectricReflectance",0,{name:a,shader:n}],31885);let t="openpbrGeometryInfo",c=`struct geometryInfoOutParams
637
+ outParams.F90=f90Scale*specularWeight;outParams.coloredF0=vec3(dielectricF0*specularWeight)*specularColor.rgb;outParams.coloredF90=dielectricColorF90*vec3(specularWeight);return outParams;}
638
+ `;r.ShaderStore.IncludesShadersStore[a]||(r.ShaderStore.IncludesShadersStore[a]=n),e.s(["openpbrDielectricReflectance",0,{name:a,shader:n}],43128);let t="openpbrGeometryInfo",c=`struct geometryInfoOutParams
639
639
  {float NdotV;float NdotVUnclamped;vec3 environmentBrdf;float horizonOcclusion;};struct geometryInfoAnisoOutParams
640
640
  {float NdotV;float NdotVUnclamped;vec3 environmentBrdf;float horizonOcclusion;float anisotropy;vec3 anisotropicTangent;vec3 anisotropicBitangent;mat3 TBN;};
641
641
  #define pbr_inline
@@ -664,7 +664,7 @@ geometryInfoAnisoOutParams geometryInfoAniso(
664
664
  in vec3 normalW,in vec3 viewDirectionW,in float roughness,in vec3 geometricNormalW
665
665
  ,in vec3 vAnisotropy,in mat3 TBN
666
666
  )
667
- {geometryInfoOutParams geoInfo=geometryInfo(normalW,viewDirectionW,roughness,geometricNormalW);geometryInfoAnisoOutParams outParams;outParams.NdotV=geoInfo.NdotV;outParams.NdotVUnclamped=geoInfo.NdotVUnclamped;outParams.environmentBrdf=geoInfo.environmentBrdf;outParams.horizonOcclusion=geoInfo.horizonOcclusion;outParams.anisotropy=vAnisotropy.b;vec3 anisotropyDirection=vec3(vAnisotropy.xy,0.);mat3 anisoTBN=mat3(normalize(TBN[0]),normalize(TBN[1]),normalize(TBN[2]));outParams.anisotropicTangent=normalize(anisoTBN*anisotropyDirection);outParams.anisotropicBitangent=normalize(cross(anisoTBN[2],outParams.anisotropicTangent));outParams.TBN=TBN;return outParams;}`;r.ShaderStore.IncludesShadersStore[t]||(r.ShaderStore.IncludesShadersStore[t]=c),e.s(["openpbrGeometryInfo",0,{name:t,shader:c}],98744);let f="openpbrIblFunctions",l=`#ifdef REFLECTION
667
+ {geometryInfoOutParams geoInfo=geometryInfo(normalW,viewDirectionW,roughness,geometricNormalW);geometryInfoAnisoOutParams outParams;outParams.NdotV=geoInfo.NdotV;outParams.NdotVUnclamped=geoInfo.NdotVUnclamped;outParams.environmentBrdf=geoInfo.environmentBrdf;outParams.horizonOcclusion=geoInfo.horizonOcclusion;outParams.anisotropy=vAnisotropy.b;vec3 anisotropyDirection=vec3(vAnisotropy.xy,0.);mat3 anisoTBN=mat3(normalize(TBN[0]),normalize(TBN[1]),normalize(TBN[2]));outParams.anisotropicTangent=normalize(anisoTBN*anisotropyDirection);outParams.anisotropicBitangent=normalize(cross(anisoTBN[2],outParams.anisotropicTangent));outParams.TBN=TBN;return outParams;}`;r.ShaderStore.IncludesShadersStore[t]||(r.ShaderStore.IncludesShadersStore[t]=c),e.s(["openpbrGeometryInfo",0,{name:t,shader:c}],97242);let f="openpbrIblFunctions",l=`#ifdef REFLECTION
668
668
  vec3 sampleIrradiance(
669
669
  in vec3 surfaceNormal
670
670
  #if defined(NORMAL) && defined(USESPHERICALINVERTEX)
@@ -886,7 +886,7 @@ return getReflectanceFromBRDFLookup(reflectance.coloredF0,reflectance.coloredF90
886
886
  #endif
887
887
  }
888
888
  #endif
889
- `;r.ShaderStore.IncludesShadersStore[f]||(r.ShaderStore.IncludesShadersStore[f]=l),e.s(["openpbrIblFunctions",0,{name:f,shader:l}],33577)},57348,e=>{"use strict";var r=e.i(37875);let i="openpbrSubsurfaceLayerData",o=`float subsurface_weight=vSubsurfaceWeight;vec3 subsurface_color=vSubsurfaceColor.rgb;float subsurface_radius=vSubsurfaceRadius;vec3 subsurface_radius_scale=vSubsurfaceRadiusScale;float subsurface_scatter_anisotropy=clamp(vSubsurfaceScatterAnisotropy,-0.9999,0.9999);
889
+ `;r.ShaderStore.IncludesShadersStore[f]||(r.ShaderStore.IncludesShadersStore[f]=l),e.s(["openpbrIblFunctions",0,{name:f,shader:l}],99165)},86145,e=>{"use strict";var r=e.i(47150);let i="openpbrSubsurfaceLayerData",o=`float subsurface_weight=vSubsurfaceWeight;vec3 subsurface_color=vSubsurfaceColor.rgb;float subsurface_radius=vSubsurfaceRadius;vec3 subsurface_radius_scale=vSubsurfaceRadiusScale;float subsurface_scatter_anisotropy=clamp(vSubsurfaceScatterAnisotropy,-0.9999,0.9999);
890
890
  #ifdef SUBSURFACE_WEIGHT
891
891
  vec4 subsurfaceWeightFromTexture=TEXRD(subsurfaceWeightSampler,vSubsurfaceWeightUV+uvOffset);
892
892
  #endif
@@ -914,7 +914,7 @@ subsurface_color*=vSubsurfaceColorInfos.y;
914
914
  #ifdef SUBSURFACE_RADIUS_SCALE
915
915
  subsurface_radius_scale*=subsurfaceRadiusScaleFromTexture.rgb;
916
916
  #endif
917
- `;r.ShaderStore.IncludesShadersStore[i]||(r.ShaderStore.IncludesShadersStore[i]=o),e.s(["openpbrSubsurfaceLayerData",0,{name:i,shader:o}])},65345,e=>{"use strict";var r=e.i(37875);let i="openpbrTransmissionLayerData",o=`float transmission_weight=vTransmissionWeight;vec3 transmission_color=vTransmissionColor.rgb;float transmission_depth=vTransmissionDepth;vec3 transmission_scatter=vTransmissionScatter.rgb;float transmission_scatter_anisotropy=clamp(vTransmissionScatterAnisotropy,-0.9999,0.9999);float transmission_dispersion_scale=vTransmissionDispersionScale;float transmission_dispersion_abbe_number=vTransmissionDispersionAbbeNumber;
917
+ `;r.ShaderStore.IncludesShadersStore[i]||(r.ShaderStore.IncludesShadersStore[i]=o),e.s(["openpbrSubsurfaceLayerData",0,{name:i,shader:o}])},87323,e=>{"use strict";var r=e.i(47150);let i="openpbrTransmissionLayerData",o=`float transmission_weight=vTransmissionWeight;vec3 transmission_color=vTransmissionColor.rgb;float transmission_depth=vTransmissionDepth;vec3 transmission_scatter=vTransmissionScatter.rgb;float transmission_scatter_anisotropy=clamp(vTransmissionScatterAnisotropy,-0.9999,0.9999);float transmission_dispersion_scale=vTransmissionDispersionScale;float transmission_dispersion_abbe_number=vTransmissionDispersionAbbeNumber;
918
918
  #ifdef TRANSMISSION_WEIGHT
919
919
  vec4 transmissionWeightFromTexture=TEXRD(transmissionWeightSampler,vTransmissionWeightUV+uvOffset);
920
920
  #endif
@@ -950,10 +950,10 @@ transmission_scatter*=transmissionScatterFromTexture.rgb;
950
950
  #ifdef TRANSMISSION_DISPERSION_SCALE
951
951
  transmission_dispersion_scale*=transmissionDispersionScaleFromTexture.r;
952
952
  #endif
953
- `;r.ShaderStore.IncludesShadersStore[i]||(r.ShaderStore.IncludesShadersStore[i]=o),e.s(["openpbrTransmissionLayerData",0,{name:i,shader:o}])},73614,e=>{"use strict";var r=e.i(37875),i=e.i(39780);let o="mrtFragmentDeclaration",a=`#if defined(WEBGL2) || defined(WEBGPU) || defined(NATIVE)
953
+ `;r.ShaderStore.IncludesShadersStore[i]||(r.ShaderStore.IncludesShadersStore[i]=o),e.s(["openpbrTransmissionLayerData",0,{name:i,shader:o}])},60403,e=>{"use strict";var r=e.i(47150),i=e.i(57487);let o="mrtFragmentDeclaration",a=`#if defined(WEBGL2) || defined(WEBGPU) || defined(NATIVE)
954
954
  layout(location=0) out vec4 glFragData[{X}];
955
955
  #endif
956
- `;r.ShaderStore.IncludesShadersStore[o]||(r.ShaderStore.IncludesShadersStore[o]=a);var n=e.i(33053),t=e.i(32172),c=e.i(73525),f=e.i(87027),l=e.i(82784),s=e.i(19752),d=e.i(23044),m=e.i(85916),v=e.i(31885),u=e.i(91468),E=e.i(33165),R=e.i(98744),p=e.i(33577),S=e.i(83958),I=e.i(31814),N=e.i(57348),_=e.i(65345);let T="geometryPixelShader",A=`#extension GL_EXT_draw_buffers : require
956
+ `;r.ShaderStore.IncludesShadersStore[o]||(r.ShaderStore.IncludesShadersStore[o]=a);var n=e.i(40766),t=e.i(844),c=e.i(32274),f=e.i(3954),l=e.i(64242),s=e.i(6606),d=e.i(67827),m=e.i(98680),v=e.i(43128),u=e.i(72306),E=e.i(40676),R=e.i(97242),p=e.i(99165),S=e.i(70402),I=e.i(67538),N=e.i(86145),_=e.i(87323);let T="geometryPixelShader",A=`#extension GL_EXT_draw_buffers : require
957
957
  #if defined(BUMP) || !defined(NORMAL)
958
958
  #extension GL_OES_standard_derivatives : enable
959
959
  #endif
@@ -1191,4 +1191,4 @@ irradiance_alpha=min(subsurface_weight+transmission_weight,1.0);
1191
1191
  gl_FragData[IRRADIANCE_INDEX]=vec4(irradiance,irradiance_alpha);
1192
1192
  #endif
1193
1193
  }
1194
- `;for(let e of(r.ShaderStore.ShadersStore[T]||(r.ShaderStore.ShadersStore[T]=A),[i.clipPlaneFragmentDeclaration,{name:o,shader:a},n.bumpFragmentMainFunctions,t.samplerFragmentDeclaration,c.bumpFragmentFunctions,f.helperFunctions,l.pbrFragmentReflectionDeclaration,s.sceneFragmentDeclaration,d.sceneUboDeclaration,m.pbrBRDFFunctions,v.openpbrDielectricReflectance,u.pbrIBLFunctions,E.reflectionFunction,R.openpbrGeometryInfo,p.openpbrIblFunctions,S.clipPlaneFragment,I.bumpFragment,N.openpbrSubsurfaceLayerData,_.openpbrTransmissionLayerData]))r.ShaderStore.IncludesShadersStore[e.name]||(r.ShaderStore.IncludesShadersStore[e.name]=e.shader);e.s(["geometryPixelShader",0,{name:T,shader:A}],73614)}]);
1194
+ `;for(let e of(r.ShaderStore.ShadersStore[T]||(r.ShaderStore.ShadersStore[T]=A),[i.clipPlaneFragmentDeclaration,{name:o,shader:a},n.bumpFragmentMainFunctions,t.samplerFragmentDeclaration,c.bumpFragmentFunctions,f.helperFunctions,l.pbrFragmentReflectionDeclaration,s.sceneFragmentDeclaration,d.sceneUboDeclaration,m.pbrBRDFFunctions,v.openpbrDielectricReflectance,u.pbrIBLFunctions,E.reflectionFunction,R.openpbrGeometryInfo,p.openpbrIblFunctions,S.clipPlaneFragment,I.bumpFragment,N.openpbrSubsurfaceLayerData,_.openpbrTransmissionLayerData]))r.ShaderStore.IncludesShadersStore[e.name]||(r.ShaderStore.IncludesShadersStore[e.name]=e.shader);e.s(["geometryPixelShader",0,{name:T,shader:A}],60403)}]);
@@ -0,0 +1 @@
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,38808,e=>{"use strict";var t=e.i(78992),o=e.i(16347),i=e.i(75105),r=e.i(64552),s=e.i(44520);class n extends t.FlowGraphEventBlock{constructor(e){for(const t in super(e),this.config=e,this.initPriority=1,this.config.eventData){const e=this.config.eventData[t],o="string"==typeof e.type?e.type:e.type?.typeName,r="function"==typeof e.type?.serialize?e.type:(0,i.getRichTypeByFlowGraphType)(o);e.type=r,this.registerDataOutput(t,r)}}_preparePendingTasks(e){let t=e.configuration.coordinator.getCustomEventObservable(this.config.eventId);if(t&&t.hasObservers()&&t.observers.length>r.FlowGraphCoordinator.MaxEventsPerType)return void this._reportError(e,`FlowGraphReceiveCustomEventBlock: Too many observers for event ${this.config.eventId}. Max is ${r.FlowGraphCoordinator.MaxEventsPerType}.`);let o=t.add(t=>{for(let o of Object.keys(t))this.getDataOutput(o)?.setValue(t[o],e);this._execute(e)});e._setExecutionVariable(this,"_eventObserver",o)}_cancelPendingTasks(e){let t=e.configuration.coordinator.getCustomEventObservable(this.config.eventId);if(t){let o=e._getExecutionVariable(this,"_eventObserver",null);t.remove(o)}else o.Logger.Warn(`FlowGraphReceiveCustomEventBlock: Missing observable for event ${this.config.eventId}`)}_executeEvent(e,t){return!0}serialize(e={}){super.serialize(e);let t={};for(let e in this.config.eventData)t[e]={type:this.config.eventData[e].type.typeName};e.config.eventData=t}getClassName(){return"FlowGraphReceiveCustomEventBlock"}}let a=!1;function c(){a||(a=!0,(0,s.RegisterClass)("FlowGraphReceiveCustomEventBlock",n))}e.s(["FlowGraphReceiveCustomEventBlock",0,n,"RegisterFlowGraphReceiveCustomEventBlock",0,c],57758),c(),e.s([],70792),e.i(70792),e.i(57758),e.s(["FlowGraphReceiveCustomEventBlock",0,n],38808)}]);
@@ -0,0 +1 @@
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,46533,90025,70807,46951,6949,53876,22052,e=>{"use strict";let t,i,r,s,a,n,l,o,c,h,u,d,_,p,E,f,m,A,T,g,S,M,b,I,P,R,D,C,x,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,ef,em,eA,eT,eg,eS,eM,eb,eI,eP,eR,eD,eC,ex,eO,eL,ey,eF,ev,eN,ek,eB,eU,eH,eW,eV,ez,ew,eG,eX;var eZ,eY,ej,eq,eQ=e.i(57575),eK=e.i(9855),e$=e.i(92180),eJ=e.i(3864),e0=e.i(23003),e1=e.i(41041),e3=e.i(22287),e2=e.i(30672),e6=e.i(69400),e5=e.i(84106);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 e8{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=e8._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=e8._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 e8(this._TmpVector3[0],this._TmpVector3[2]);return i?r._worldMatrix=i:r._worldMatrix=e6.Matrix.Identity(),r}}e8._TmpVector3=(0,e2.BuildArray)(3,e6.Vector3.Zero);let e7={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,e7),te(e,i,e9),!(e7.min>e9.max||e9.min>e7.max));class ti{constructor(e,t,i){this._isLocked=!1,this.boundingBox=new e4(e,t,i),this.boundingSphere=new e8(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(!e8.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],90025);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=[eK.nativeOverride.filter((...e)=>!Array.isArray(e[0])&&!Array.isArray(e[1]))],i=[eK.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],70807);var ta=e.i(16771),tn=e.i(85050);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],46951);var to=e.i(96333),tc=e.i(16347),th=e.i(96042),tu=e.i(2060);let td=(m=[],eY=class{constructor(){this._func=(0,eQ.__runInitializers)(this,m),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)}},A="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0,a=[(0,eK.serialize)()],n=[(0,eK.serialize)()],l=[(0,eK.serialize)()],o=[(0,eK.serialize)()],c=[(0,eK.serialize)()],h=[(0,eK.serialize)()],u=[(0,eK.serialize)()],d=[(0,eK.serialize)()],_=[(0,eK.serialize)()],p=[(0,eK.serialize)()],E=[(0,eK.serialize)()],f=[(0,eK.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:A},null,m),(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:A},null,m),(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:A},null,m),(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:A},null,m),(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:A},null,m),(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:A},null,m),(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:A},null,m),(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:A},null,m),(0,eQ.__esDecorate)(eY,null,_,{kind:"getter",name:"backOpDepthFail",static:!1,private:!1,access:{has:e=>"backOpDepthFail"in e,get:e=>e.backOpDepthFail},metadata:A},null,m),(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:A},null,m),(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:A},null,m),(0,eQ.__esDecorate)(eY,null,f,{kind:"getter",name:"enabled",static:!1,private:!1,access:{has:e=>"enabled"in e,get:e=>e.enabled},metadata:A},null,m),A&&Object.defineProperty(eY,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:A}),eY);var t_=e.i(60420),tp=e.i(79261);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 tf(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;tf(e,"vClipPlane",r),tf(e,"vClipPlane2",r=t.clipPlane2??i.clipPlane2),tf(e,"vClipPlane3",r=t.clipPlane3??i.clipPlane3),tf(e,"vClipPlane4",r=t.clipPlane4??i.clipPlane4),tf(e,"vClipPlane5",r=t.clipPlane5??i.clipPlane5),tf(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")}],6949);var tm=e.i(51843);class tA{static get DiffuseTextureEnabled(){return this._DiffuseTextureEnabled}static set DiffuseTextureEnabled(e){this._DiffuseTextureEnabled!==e&&(this._DiffuseTextureEnabled=e,tm.AbstractEngine.MarkAllMaterialsAsDirty(1))}static get BaseWeightTextureEnabled(){return this._BaseWeightTextureEnabled}static set BaseWeightTextureEnabled(e){this._BaseWeightTextureEnabled!==e&&(this._BaseWeightTextureEnabled=e,tm.AbstractEngine.MarkAllMaterialsAsDirty(1))}static get BaseDiffuseRoughnessTextureEnabled(){return this._BaseDiffuseRoughnessTextureEnabled}static set BaseDiffuseRoughnessTextureEnabled(e){this._BaseDiffuseRoughnessTextureEnabled!==e&&(this._BaseDiffuseRoughnessTextureEnabled=e,tm.AbstractEngine.MarkAllMaterialsAsDirty(1))}static get DetailTextureEnabled(){return this._DetailTextureEnabled}static set DetailTextureEnabled(e){this._DetailTextureEnabled!==e&&(this._DetailTextureEnabled=e,tm.AbstractEngine.MarkAllMaterialsAsDirty(1))}static get DecalMapEnabled(){return this._DecalMapEnabled}static set DecalMapEnabled(e){this._DecalMapEnabled!==e&&(this._DecalMapEnabled=e,tm.AbstractEngine.MarkAllMaterialsAsDirty(1))}static get AmbientTextureEnabled(){return this._AmbientTextureEnabled}static set AmbientTextureEnabled(e){this._AmbientTextureEnabled!==e&&(this._AmbientTextureEnabled=e,tm.AbstractEngine.MarkAllMaterialsAsDirty(1))}static get OpacityTextureEnabled(){return this._OpacityTextureEnabled}static set OpacityTextureEnabled(e){this._OpacityTextureEnabled!==e&&(this._OpacityTextureEnabled=e,tm.AbstractEngine.MarkAllMaterialsAsDirty(1))}static get ReflectionTextureEnabled(){return this._ReflectionTextureEnabled}static set ReflectionTextureEnabled(e){this._ReflectionTextureEnabled!==e&&(this._ReflectionTextureEnabled=e,tm.AbstractEngine.MarkAllMaterialsAsDirty(1))}static get EmissiveTextureEnabled(){return this._EmissiveTextureEnabled}static set EmissiveTextureEnabled(e){this._EmissiveTextureEnabled!==e&&(this._EmissiveTextureEnabled=e,tm.AbstractEngine.MarkAllMaterialsAsDirty(1))}static get SpecularTextureEnabled(){return this._SpecularTextureEnabled}static set SpecularTextureEnabled(e){this._SpecularTextureEnabled!==e&&(this._SpecularTextureEnabled=e,tm.AbstractEngine.MarkAllMaterialsAsDirty(1))}static get BumpTextureEnabled(){return this._BumpTextureEnabled}static set BumpTextureEnabled(e){this._BumpTextureEnabled!==e&&(this._BumpTextureEnabled=e,tm.AbstractEngine.MarkAllMaterialsAsDirty(1))}static get LightmapTextureEnabled(){return this._LightmapTextureEnabled}static set LightmapTextureEnabled(e){this._LightmapTextureEnabled!==e&&(this._LightmapTextureEnabled=e,tm.AbstractEngine.MarkAllMaterialsAsDirty(1))}static get RefractionTextureEnabled(){return this._RefractionTextureEnabled}static set RefractionTextureEnabled(e){this._RefractionTextureEnabled!==e&&(this._RefractionTextureEnabled=e,tm.AbstractEngine.MarkAllMaterialsAsDirty(1))}static get ColorGradingTextureEnabled(){return this._ColorGradingTextureEnabled}static set ColorGradingTextureEnabled(e){this._ColorGradingTextureEnabled!==e&&(this._ColorGradingTextureEnabled=e,tm.AbstractEngine.MarkAllMaterialsAsDirty(1))}static get FresnelEnabled(){return this._FresnelEnabled}static set FresnelEnabled(e){this._FresnelEnabled!==e&&(this._FresnelEnabled=e,tm.AbstractEngine.MarkAllMaterialsAsDirty(4))}static get ClearCoatTextureEnabled(){return this._ClearCoatTextureEnabled}static set ClearCoatTextureEnabled(e){this._ClearCoatTextureEnabled!==e&&(this._ClearCoatTextureEnabled=e,tm.AbstractEngine.MarkAllMaterialsAsDirty(1))}static get ClearCoatBumpTextureEnabled(){return this._ClearCoatBumpTextureEnabled}static set ClearCoatBumpTextureEnabled(e){this._ClearCoatBumpTextureEnabled!==e&&(this._ClearCoatBumpTextureEnabled=e,tm.AbstractEngine.MarkAllMaterialsAsDirty(1))}static get ClearCoatTintTextureEnabled(){return this._ClearCoatTintTextureEnabled}static set ClearCoatTintTextureEnabled(e){this._ClearCoatTintTextureEnabled!==e&&(this._ClearCoatTintTextureEnabled=e,tm.AbstractEngine.MarkAllMaterialsAsDirty(1))}static get SheenTextureEnabled(){return this._SheenTextureEnabled}static set SheenTextureEnabled(e){this._SheenTextureEnabled!==e&&(this._SheenTextureEnabled=e,tm.AbstractEngine.MarkAllMaterialsAsDirty(1))}static get AnisotropicTextureEnabled(){return this._AnisotropicTextureEnabled}static set AnisotropicTextureEnabled(e){this._AnisotropicTextureEnabled!==e&&(this._AnisotropicTextureEnabled=e,tm.AbstractEngine.MarkAllMaterialsAsDirty(1))}static get ThicknessTextureEnabled(){return this._ThicknessTextureEnabled}static set ThicknessTextureEnabled(e){this._ThicknessTextureEnabled!==e&&(this._ThicknessTextureEnabled=e,tm.AbstractEngine.MarkAllMaterialsAsDirty(1))}static get RefractionIntensityTextureEnabled(){return this._ThicknessTextureEnabled}static set RefractionIntensityTextureEnabled(e){this._RefractionIntensityTextureEnabled!==e&&(this._RefractionIntensityTextureEnabled=e,tm.AbstractEngine.MarkAllMaterialsAsDirty(1))}static get TranslucencyIntensityTextureEnabled(){return this._TranslucencyIntensityTextureEnabled}static set TranslucencyIntensityTextureEnabled(e){this._TranslucencyIntensityTextureEnabled!==e&&(this._TranslucencyIntensityTextureEnabled=e,tm.AbstractEngine.MarkAllMaterialsAsDirty(1))}static get TranslucencyColorTextureEnabled(){return this._TranslucencyColorTextureEnabled}static set TranslucencyColorTextureEnabled(e){this._TranslucencyColorTextureEnabled!==e&&(this._TranslucencyColorTextureEnabled=e,tm.AbstractEngine.MarkAllMaterialsAsDirty(1))}static get IridescenceTextureEnabled(){return this._IridescenceTextureEnabled}static set IridescenceTextureEnabled(e){this._IridescenceTextureEnabled!==e&&(this._IridescenceTextureEnabled=e,tm.AbstractEngine.MarkAllMaterialsAsDirty(1))}}tA._DiffuseTextureEnabled=!0,tA._BaseWeightTextureEnabled=!0,tA._BaseDiffuseRoughnessTextureEnabled=!0,tA._DetailTextureEnabled=!0,tA._DecalMapEnabled=!0,tA._AmbientTextureEnabled=!0,tA._OpacityTextureEnabled=!0,tA._ReflectionTextureEnabled=!0,tA._EmissiveTextureEnabled=!0,tA._SpecularTextureEnabled=!0,tA._BumpTextureEnabled=!0,tA._LightmapTextureEnabled=!0,tA._RefractionTextureEnabled=!0,tA._ColorGradingTextureEnabled=!0,tA._FresnelEnabled=!0,tA._ClearCoatTextureEnabled=!0,tA._ClearCoatBumpTextureEnabled=!0,tA._ClearCoatTintTextureEnabled=!0,tA._SheenTextureEnabled=!0,tA._AnisotropicTextureEnabled=!0,tA._ThicknessTextureEnabled=!0,tA._RefractionIntensityTextureEnabled=!0,tA._TranslucencyIntensityTextureEnabled=!0,tA._TranslucencyColorTextureEnabled=!0,tA._IridescenceTextureEnabled=!0,e.s(["MaterialFlags",0,tA],53876);let tT={r:0,g:0,b:0},tg={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 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(tT,e.getEngine().useExactSrgbConversions),i.setColor3("vFogColor",tT)):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&&tA.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&&tA.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"),tg.NUM_MORPH_INFLUENCERS=h,tg.NORMAL=a,tg.TANGENT=n,tg.UV=l,tg.UV2=o,tg.COLOR=c,tS(i,r,tg,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(tI.get(e.skeleton)!==n){tI.set(e.skeleton,n);let i=r.getEngine().getCaps().maxVertexUniformVectors;if(i&&!tP.has(e.skeleton)){let r=4*t.BonesPerMesh,s=Math.max(i-(a?64:40),0);(r>s||a&&3*r>i)&&(tP.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&&tA.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){if(!i._areLightsDirty)return i._needNormals;let n=0,l={needNormals:i._needNormals,needRebuild:!1,lightmapMode:!1,shadowEnabled:!1,specularEnabled:!1};if(e.lightsEnabled&&!a){for(let a of 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,a,n,i,r,l),++n===s)break}i.SPECULARTERM=l.specularEnabled,i.SHADOWS=l.shadowEnabled;let o=Math.max(s,i.MAXLIGHTCOUNT||0);for(let e=n;e<o;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=n,i.MAXLIGHTCOUNT=s;let c=e.getEngine().getCaps();return void 0===i.SHADOWFLOAT&&(l.needRebuild=!0),i.SHADOWFLOAT=l.shadowEnabled&&(c.textureFloatRender&&c.textureFloatLinearFiltering||c.textureHalfFloatRender&&c.textureHalfFloatLinearFiltering),i.LIGHTMAPEXCLUDED=l.lightmapMode,l.needRebuild&&i.rebuild(),l.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],22052);var tR=e.i(37731);let tD=(j=[],q=[],Q=[],K=[],$=[],J=[],ee=[],et=[],ei=[],er=[],es=[],ea=[],en=[],el=[],eo=[],ec=[],eh=[],eu=[],ed=[],e_=[],ep=[],eE=[],ef=[],em=[],eA=[],eT=[],eg=[],eS=[],eM=[],eb=[],eI=[],eP=[],eR=[],eD=[],eC=[],ex=[],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,K,void 0)),this._loadedUniqueId=(0,eQ.__runInitializers)(this,$),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,ef),(0,eQ.__runInitializers)(this,em,!0)),this._blockDirtyMechanism=((0,eQ.__runInitializers)(this,eA),!1),this.sideOrientation=(0,eQ.__runInitializers)(this,eT,null),this.onCompiled=((0,eQ.__runInitializers)(this,eg),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,eC),(0,eQ.__runInitializers)(this,ex,!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||e$.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,tR.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=e$.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=e$.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,T=[(0,eK.serialize)()],g=[(0,eK.serialize)()],S=[(0,eK.serialize)()],M=[(0,eK.serialize)()],b=[(0,eK.serialize)()],I=[(0,eK.serialize)()],P=[(0,eK.serialize)()],R=[(0,eK.serialize)("alpha")],D=[(0,eK.serialize)("backFaceCulling")],C=[(0,eK.serialize)("textureRepetitionMode")],x=[(0,eK.serialize)("textureRepetitionHexTilingParams")],O=[(0,eK.serialize)("cullBackFaces")],L=[(0,eK.serialize)()],y=[(0,eK.serialize)()],F=[(0,eK.serialize)()],v=[(0,eK.serialize)()],N=[(0,eK.serialize)()],k=[(0,eK.serialize)()],B=[(0,eK.serialize)()],U=[(0,eK.serialize)()],H=[(0,eK.serialize)("fogEnabled")],W=[(0,eK.serialize)()],V=[(0,eK.serialize)()],z=[(0,eK.serialize)()],w=[(0,eK.serialize)()],G=[(0,eK.serialize)()],X=[(0,eK.serialize)()],Z=[(0,eK.serialize)()],Y=[(0,eK.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,T,{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,g,{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,C,{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,x,{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,ef),(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},em,eA),(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},eT,eg),(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,eC),(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},ex,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(tD.prototype,"pluginManager")||Object.defineProperty(tD.prototype,"pluginManager",(0,tn._MissingSideEffectProperty)("Material","pluginManager")),e.s(["Material",0,tD],46533)}]);
@@ -1 +1 @@
1
- (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,30172,t=>{"use strict";var i=t.i(38759),e=t.i(19434),n=t.i(30302),s=t.i(38116);class l extends i.FlowGraphExecutionBlockWithOutSignal{constructor(t){super(t),this.config=t,this.inFlows=[],this._cachedActivationState=[],this.reset=this._registerSignalInput("reset"),this.completed=this._registerSignalOutput("completed"),this.remainingInputs=this.registerDataOutput("remainingInputs",e.RichTypeFlowGraphInteger,new n.FlowGraphInteger(this.config.inputSignalCount||0));for(let t=0;t<this.config.inputSignalCount;t++)this.inFlows.push(this._registerSignalInput(`in_${t}`));this._unregisterSignalInput("in")}_getCurrentActivationState(t){let i=this._cachedActivationState;if(i.length=0,t._hasExecutionVariable(this,"activationState")){let e=t._getExecutionVariable(this,"activationState",[]);for(let t=0;t<e.length;t++)i.push(e[t])}else for(let t=0;t<this.config.inputSignalCount;t++)i.push(!1);return i}_execute(t,i){let e=this._getCurrentActivationState(t);if(i===this.reset)for(let t=0;t<this.config.inputSignalCount;t++)e[t]=!1;else{let t=this.inFlows.indexOf(i);t>=0&&(e[t]=!0)}if(this.remainingInputs.setValue(new n.FlowGraphInteger(e.filter(t=>!t).length),t),t._setExecutionVariable(this,"activationState",e.slice()),e.includes(!1))i!==this.reset&&this.out._activateSignal(t);else{this.completed._activateSignal(t);for(let t=0;t<this.config.inputSignalCount;t++)e[t]=!1}}getClassName(){return"FlowGraphWaitAllBlock"}serialize(t){super.serialize(t),t.config.inputFlows=this.config.inputSignalCount}}let a=!1;function o(){a||(a=!0,(0,s.RegisterClass)("FlowGraphWaitAllBlock",l))}t.s(["FlowGraphWaitAllBlock",0,l,"RegisterFlowGraphWaitAllBlock",0,o],36026),o(),t.s([],1392),t.i(1392),t.i(36026),t.s(["FlowGraphWaitAllBlock",0,l],30172)}]);
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,22140,t=>{"use strict";var i=t.i(62478),e=t.i(75105),n=t.i(32304),s=t.i(44520);class l extends i.FlowGraphExecutionBlockWithOutSignal{constructor(t){super(t),this.config=t,this.inFlows=[],this._cachedActivationState=[],this.reset=this._registerSignalInput("reset"),this.completed=this._registerSignalOutput("completed"),this.remainingInputs=this.registerDataOutput("remainingInputs",e.RichTypeFlowGraphInteger,new n.FlowGraphInteger(this.config.inputSignalCount||0));for(let t=0;t<this.config.inputSignalCount;t++)this.inFlows.push(this._registerSignalInput(`in_${t}`));this._unregisterSignalInput("in")}_getCurrentActivationState(t){let i=this._cachedActivationState;if(i.length=0,t._hasExecutionVariable(this,"activationState")){let e=t._getExecutionVariable(this,"activationState",[]);for(let t=0;t<e.length;t++)i.push(e[t])}else for(let t=0;t<this.config.inputSignalCount;t++)i.push(!1);return i}_execute(t,i){let e=this._getCurrentActivationState(t);if(i===this.reset)for(let t=0;t<this.config.inputSignalCount;t++)e[t]=!1;else{let t=this.inFlows.indexOf(i);t>=0&&(e[t]=!0)}if(this.remainingInputs.setValue(new n.FlowGraphInteger(e.filter(t=>!t).length),t),t._setExecutionVariable(this,"activationState",e.slice()),e.includes(!1))i!==this.reset&&this.out._activateSignal(t);else{this.completed._activateSignal(t);for(let t=0;t<this.config.inputSignalCount;t++)e[t]=!1}}getClassName(){return"FlowGraphWaitAllBlock"}serialize(t){super.serialize(t),t.config.inputFlows=this.config.inputSignalCount}}let a=!1;function o(){a||(a=!0,(0,s.RegisterClass)("FlowGraphWaitAllBlock",l))}t.s(["FlowGraphWaitAllBlock",0,l,"RegisterFlowGraphWaitAllBlock",0,o],2626),o(),t.s([],4594),t.i(4594),t.i(2626),t.s(["FlowGraphWaitAllBlock",0,l],22140)}]);
@@ -0,0 +1 @@
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,16771,e=>{"use strict";var t=e.i(44816);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()}}])},22287,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}}])},52624,e=>{"use strict";let t,s,i,r,n,a,o,h,l,_,d,c,u,f,p,g;var m,x=e.i(57575),y=e.i(69400),b=e.i(9855),v=e.i(3864),A=e.i(23003),S=e.i(85050),O=e.i(2060);class E{constructor(){this._doNotSerialize=!1,this._isDisposed=!1,this._sceneRootNodesIndex=-1,this._isEnabled=!0,this._isParentEnabled=!0,this._isReady=!0,this._onEnabledStateChangedObservable=new v.Observable,this._onEffectiveEnabledStateChangedObservable=null,this._onClonedObservable=new v.Observable,this._inheritVisibility=!1,this._isVisible=!0}}let M=(a=[],o=[],h=[],l=[],_=[],d=[],c=[],u=[],f=[],p=[],m=class{static AddNodeConstructor(e,t){this._NodeConstructors[e]=t}static Construct(e,t,s,i){let r=this._NodeConstructors[e];return r?r(t,s,i):null}set accessibilityTag(e){this._accessibilityTag=e,this.onAccessibilityTagChangedObservable.notifyObservers(e)}get accessibilityTag(){return this._accessibilityTag}get doNotSerialize(){return!!this._nodeDataStorage._doNotSerialize||!!this._parentNode&&this._parentNode.doNotSerialize}set doNotSerialize(e){this._nodeDataStorage._doNotSerialize=e}isDisposed(){return this._nodeDataStorage._isDisposed}set parent(e){if(this._parentNode===e)return;let t=this._parentNode;if(this._parentNode&&void 0!==this._parentNode._children&&null!==this._parentNode._children){let t=this._parentNode._children.indexOf(this);-1!==t&&this._parentNode._children.splice(t,1),e||this._nodeDataStorage._isDisposed||this._addToSceneRootNodes()}this._parentNode=e,this._isDirty=!0,this._parentNode&&((void 0===this._parentNode._children||null===this._parentNode._children)&&(this._parentNode._children=[]),this._parentNode._children.push(this),t||this._removeFromSceneRootNodes()),this._syncParentEnabledState()}get parent(){return this._parentNode}get inheritVisibility(){return this._nodeDataStorage._inheritVisibility}set inheritVisibility(e){this._nodeDataStorage._inheritVisibility=e}get isVisible(){return(!this.inheritVisibility||!this._parentNode||!!this._parentNode.isVisible)&&this._nodeDataStorage._isVisible}set isVisible(e){this._nodeDataStorage._isVisible=e}_serializeAsParent(e){e.parentId=this.uniqueId}_addToSceneRootNodes(){-1===this._nodeDataStorage._sceneRootNodesIndex&&(this._nodeDataStorage._sceneRootNodesIndex=this._scene.rootNodes.length,this._scene.rootNodes.push(this))}_removeFromSceneRootNodes(){if(-1!==this._nodeDataStorage._sceneRootNodesIndex){let e=this._scene.rootNodes,t=e.length-1;e[this._nodeDataStorage._sceneRootNodesIndex]=e[t],e[this._nodeDataStorage._sceneRootNodesIndex]._nodeDataStorage._sceneRootNodesIndex=this._nodeDataStorage._sceneRootNodesIndex,this._scene.rootNodes.pop(),this._nodeDataStorage._sceneRootNodesIndex=-1}}get animationPropertiesOverride(){return this._animationPropertiesOverride?this._animationPropertiesOverride:this._scene.animationPropertiesOverride}set animationPropertiesOverride(e){this._animationPropertiesOverride=e}getClassName(){return"Node"}set onDispose(e){this._onDisposeObserver&&this.onDisposeObservable.remove(this._onDisposeObserver),this._onDisposeObserver=this.onDisposeObservable.add(e)}get onEnabledStateChangedObservable(){return this._nodeDataStorage._onEnabledStateChangedObservable}get onEffectiveEnabledStateChangedObservable(){var e;return(e=this._nodeDataStorage)._onEffectiveEnabledStateChangedObservable??(e._onEffectiveEnabledStateChangedObservable=new v.Observable)}get onClonedObservable(){return this._nodeDataStorage._onClonedObservable}constructor(e,t=null,s=!0){this._isDirty=!1,this._nodeDataStorage=new E,this.name=(0,x.__runInitializers)(this,a,void 0),this.id=((0,x.__runInitializers)(this,o),(0,x.__runInitializers)(this,h,void 0)),this.uniqueId=((0,x.__runInitializers)(this,l),(0,x.__runInitializers)(this,_,void 0)),this.state=((0,x.__runInitializers)(this,d),(0,x.__runInitializers)(this,c,"")),this.metadata=((0,x.__runInitializers)(this,u),(0,x.__runInitializers)(this,f,null)),this._internalMetadata=(0,x.__runInitializers)(this,p),this.reservedDataStore=null,this._accessibilityTag=null,this.onAccessibilityTagChangedObservable=new v.Observable,this._parentContainer=null,this.animations=[],this._ranges={},this.onReady=null,this._currentRenderId=-1,this._parentUpdateId=-1,this._childUpdateId=-1,this._waitingParentId=null,this._waitingParentInstanceIndex=null,this._waitingParsedUniqueId=null,this._cache={},this._parentNode=null,this._children=null,this._worldMatrix=y.Matrix.Identity(),this._worldMatrixDeterminant=0,this._worldMatrixDeterminantIsDirty=!0,this._animationPropertiesOverride=null,this._isNode=!0,this.onDisposeObservable=new v.Observable,this._onDisposeObserver=null,this._behaviors=[],this.name=e,this.id=e,this._scene=t||A.EngineStore.LastCreatedScene,this.uniqueId=this._scene.getUniqueId(),this._initCache(),s&&this._addToSceneRootNodes()}getScene(){return this._scene}getEngine(){return this._scene.getEngine()}addBehavior(e,t=!1){return -1!==this._behaviors.indexOf(e)||(e.init(),this._scene.isLoading&&!t?this._scene.onDataLoadedObservable.addOnce(()=>{this._behaviors.includes(e)&&e.attach(this)}):e.attach(this),this._behaviors.push(e)),this}removeBehavior(e){let t=this._behaviors.indexOf(e);return -1===t||(this._behaviors.splice(t,1),e.detach()),this}get behaviors(){return this._behaviors}getBehaviorByName(e){for(let t of this._behaviors)if(t.name===e)return t;return null}getWorldMatrix(){return this._currentRenderId!==this._scene.getRenderId()&&this.computeWorldMatrix(),this._worldMatrix}_getWorldMatrixDeterminant(){return this._worldMatrixDeterminantIsDirty&&(this._worldMatrixDeterminantIsDirty=!1,this._worldMatrixDeterminant=this._worldMatrix.determinant()),this._worldMatrixDeterminant}get worldMatrixFromCache(){return this._worldMatrix}_initCache(){this._cache={}}updateCache(e){!e&&this.isSynchronized()||this._updateCache()}_getActionManagerForTrigger(e,t=!0){return this.parent?this.parent._getActionManagerForTrigger(e,!1):null}_updateCache(e){}_isSynchronized(){return!0}_markSyncedWithParent(){this._parentNode&&(this._parentUpdateId=this._parentNode._childUpdateId)}isSynchronizedWithParent(){return!this._parentNode||!this._parentNode._isDirty&&this._parentUpdateId===this._parentNode._childUpdateId&&this._parentNode.isSynchronized()}isSynchronized(){return(!this._parentNode||!!this.isSynchronizedWithParent())&&this._isSynchronized()}isReady(e=!1){return this._nodeDataStorage._isReady}markAsDirty(e){return this._currentRenderId=Number.MAX_VALUE,this._isDirty=!0,this}isEnabled(e=!0){return!1===e?this._nodeDataStorage._isEnabled:!!this._nodeDataStorage._isEnabled&&this._nodeDataStorage._isParentEnabled}_hasEffectiveEnabledStateObservers(){let e=this._nodeDataStorage._onEffectiveEnabledStateChangedObservable;return!!e&&e.hasObservers()}_syncParentEnabledState(){let e=this._hasEffectiveEnabledStateObservers(),t=e?this.isEnabled():null;if(this._nodeDataStorage._isParentEnabled=!this._parentNode||this._parentNode.isEnabled(),this._children)for(let e of this._children)e._syncParentEnabledState();if(e){let e=this.isEnabled();e!==t&&this._nodeDataStorage._onEffectiveEnabledStateChangedObservable.notifyObservers(e)}}setEnabled(e){if(this._nodeDataStorage._isEnabled===e)return;let t=this._hasEffectiveEnabledStateObservers(),s=t?this.isEnabled():null;if(this._nodeDataStorage._isEnabled=e,this._syncParentEnabledState(),this._nodeDataStorage._onEnabledStateChangedObservable.notifyObservers(e),t){let e=this.isEnabled();e!==s&&this._nodeDataStorage._onEffectiveEnabledStateChangedObservable.notifyObservers(e)}}isDescendantOf(e){return!!this.parent&&(this.parent===e||this.parent.isDescendantOf(e))}_getDescendants(e,t=!1,s){if(this._children)for(let i=0;i<this._children.length;i++){let r=this._children[i];(!s||s(r))&&e.push(r),t||r._getDescendants(e,!1,s)}}getDescendants(e,t){let s=[];return this._getDescendants(s,e,t),s}getChildMeshes(e,t){let s=[];return this._getDescendants(s,e,e=>(!t||t(e))&&void 0!==e.cullingStrategy),s}getChildren(e,t=!0){return this.getDescendants(t,e)}_setReady(e){if(e!==this._nodeDataStorage._isReady){if(!e){this._nodeDataStorage._isReady=!1;return}this.onReady&&this.onReady(this),this._nodeDataStorage._isReady=!0}}getAnimationByName(e){for(let t=0;t<this.animations.length;t++){let s=this.animations[t];if(s.name===e)return s}return null}createAnimationRange(e,t,s){if(!this._ranges[e]){this._ranges[e]=m._AnimationRangeFactory(e,t,s);for(let i=0,r=this.animations.length;i<r;i++)this.animations[i]&&this.animations[i].createRange(e,t,s)}}deleteAnimationRange(e,t=!0){for(let s=0,i=this.animations.length;s<i;s++)this.animations[s]&&this.animations[s].deleteRange(e,t);this._ranges[e]=null}getAnimationRange(e){return this._ranges[e]||null}clone(e,t,s){let i=O.SerializationHelper.Clone(()=>new m(e,this.getScene()),this);if(t&&(i.parent=t),!s){let t=this.getDescendants(!0);for(let s=0;s<t.length;s++){let r=t[s];r.clone(e+"."+r.name,i)}}return i}getAnimationRanges(){let e,t=[];for(e in this._ranges)t.push(this._ranges[e]);return t}beginAnimation(e,t,s,i){let r=this.getAnimationRange(e);return r?this._scene.beginAnimation(this,r.from,r.to,t,s,i):null}serializeAnimationRanges(){let e=[];for(let t in this._ranges){let s=this._ranges[t];if(!s)continue;let i={};i.name=t,i.from=s.from,i.to=s.to,e.push(i)}return e}computeWorldMatrix(e){return this._worldMatrix||(this._worldMatrix=y.Matrix.Identity()),this._worldMatrix}dispose(e,t=!1){if(this._nodeDataStorage._isDisposed=!0,!e)for(let s of this.getDescendants(!0))s.dispose(e,t);for(let e of(this.parent?this.parent=null:this._removeFromSceneRootNodes(),this.onDisposeObservable.notifyObservers(this),this.onDisposeObservable.clear(),this.onEnabledStateChangedObservable.clear(),this._nodeDataStorage._onEffectiveEnabledStateChangedObservable?.clear(),this.onClonedObservable.clear(),this._behaviors))e.detach();this._behaviors.length=0,this.metadata=null}static ParseAnimationRanges(e,t,s){if(t.ranges)for(let s=0;s<t.ranges.length;s++){let i=t.ranges[s];e.createAnimationRange(i.name,i.from,i.to)}}getHierarchyBoundingVectors(e=!0,t=null){let s,i;if(this.getScene().incrementRenderId(),this.computeWorldMatrix(!0),this.getBoundingInfo&&this.subMeshes){let e=this.getBoundingInfo();s=e.boundingBox.minimumWorld.clone(),i=e.boundingBox.maximumWorld.clone()}else s=new y.Vector3(Number.MAX_VALUE,Number.MAX_VALUE,Number.MAX_VALUE),i=new y.Vector3(-Number.MAX_VALUE,-Number.MAX_VALUE,-Number.MAX_VALUE);if(e)for(let e of this.getDescendants(!1)){if(e.computeWorldMatrix(!0),t&&!t(e)||!e.getBoundingInfo||0===e.getTotalVertices())continue;let r=e.getBoundingInfo().boundingBox,n=r.minimumWorld,a=r.maximumWorld;y.Vector3.CheckExtends(n,s,i),y.Vector3.CheckExtends(a,s,i)}return{min:s,max:i}}},g="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0,t=[(0,b.serialize)()],s=[(0,b.serialize)()],i=[(0,b.serialize)()],r=[(0,b.serialize)()],n=[(0,b.serialize)()],(0,x.__esDecorate)(null,null,t,{kind:"field",name:"name",static:!1,private:!1,access:{has:e=>"name"in e,get:e=>e.name,set:(e,t)=>{e.name=t}},metadata:g},a,o),(0,x.__esDecorate)(null,null,s,{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:g},h,l),(0,x.__esDecorate)(null,null,i,{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:g},_,d),(0,x.__esDecorate)(null,null,r,{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:g},c,u),(0,x.__esDecorate)(null,null,n,{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:g},f,p),g&&Object.defineProperty(m,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:g}),m._AnimationRangeFactory=(e,t,s)=>{throw(0,S._WarnImport)("AnimationRange")},m._NodeConstructors={},m);e.s(["Node",0,M])},26924,e=>{"use strict";var t,s,i,r,n=e.i(69400);(t=i||(i={}))[t.LOCAL=0]="LOCAL",t[t.WORLD=1]="WORLD",t[t.BONE=2]="BONE";class a{}a.X=new n.Vector3(1,0,0),a.Y=new n.Vector3(0,1,0),a.Z=new n.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,a,"Coordinate",0,r,"Space",0,i])},31837,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])},28548,e=>{"use strict";var t=e.i(2060),s=e.i(66460),i=e.i(69400),r=e.i(41041),n=e.i(20363),a=e.i(65493),o=e.i(98207),h=e.i(13099),l=e.i(23003),_=e.i(6949),d=e.i(22052),c=e.i(24904),u=e.i(44520);let f={effect:null,subMesh:null};class p extends h.PushMaterial{constructor(e,t,s,r={},n=!0){super(e,t,n),this._textures={},this._internalTextures={},this._textureArrays={},this._externalTextures={},this._floats={},this._ints={},this._uints={},this._floatsArrays={},this._colors3={},this._colors3Arrays={},this._colors4={},this._colors4Arrays={},this._vectors2={},this._vectors3={},this._vectors4={},this._quaternions={},this._quaternionsArrays={},this._matrices={},this._matrixArrays={},this._matrices3x3={},this._matrices2x2={},this._vectors2Arrays={},this._vectors3Arrays={},this._vectors4Arrays={},this._uniformBuffers={},this._textureSamplers={},this._storageBuffers={},this._cachedWorldViewMatrix=new i.Matrix,this._cachedWorldViewProjectionMatrix=new i.Matrix,this._multiview=!1,this._vertexPullingMetadata=null,this._materialHelperNeedsPreviousMatrices=!1,this._shaderPath=s,this._options={needAlphaBlending:!1,needAlphaTesting:!1,attributes:["position","normal","uv"],uniforms:["worldViewProjection"],uniformBuffers:[],samplers:[],externalTextures:[],samplerObjects:[],storageBuffers:[],defines:[],useClipPlane:!1,...r}}get shaderPath(){return this._shaderPath}set shaderPath(e){this._shaderPath=e}get options(){return this._options}get isMultiview(){return this._multiview}getClassName(){return"ShaderMaterial"}needAlphaBlending(){return this.alpha<1||this._options.needAlphaBlending}needAlphaTesting(){return this._options.needAlphaTesting}_checkUniform(e){-1===this._options.uniforms.indexOf(e)&&this._options.uniforms.push(e)}setTexture(e,t){return -1===this._options.samplers.indexOf(e)&&this._options.samplers.push(e),this._textures[e]=t,this}setInternalTexture(e,t){return -1===this._options.samplers.indexOf(e)&&this._options.samplers.push(e),this._internalTextures[e]=t,this}removeTexture(e){delete this._textures[e]}setTextureArray(e,t){return -1===this._options.samplers.indexOf(e)&&this._options.samplers.push(e),this._checkUniform(e),this._textureArrays[e]=t,this}setExternalTexture(e,t){return -1===this._options.externalTextures.indexOf(e)&&this._options.externalTextures.push(e),this._externalTextures[e]=t,this}setFloat(e,t){return this._checkUniform(e),this._floats[e]=t,this}setInt(e,t){return this._checkUniform(e),this._ints[e]=t,this}setUInt(e,t){return this._checkUniform(e),this._uints[e]=t,this}setFloats(e,t){return this._checkUniform(e),this._floatsArrays[e]=t,this}setColor3(e,t){return this._checkUniform(e),this._colors3[e]=t,this}setColor3Array(e,t){return this._checkUniform(e),this._colors3Arrays[e]=t.reduce((e,t)=>(e.push(t.r,t.g,t.b),e),[]),this}setColor4(e,t){return this._checkUniform(e),this._colors4[e]=t,this}setColor4Array(e,t){return this._checkUniform(e),this._colors4Arrays[e]=t.reduce((e,t)=>(e.push(t.r,t.g,t.b,t.a),e),[]),this}setVector2(e,t){return this._checkUniform(e),this._vectors2[e]=t,this}setVector3(e,t){return this._checkUniform(e),this._vectors3[e]=t,this}setVector4(e,t){return this._checkUniform(e),this._vectors4[e]=t,this}setQuaternion(e,t){return this._checkUniform(e),this._quaternions[e]=t,this}setQuaternionArray(e,t){return this._checkUniform(e),this._quaternionsArrays[e]=t.reduce((e,t)=>(t.toArray(e,e.length),e),[]),this}setMatrix(e,t){return this._checkUniform(e),this._matrices[e]=t,this}setMatrices(e,t){this._checkUniform(e);let s=new Float32Array(16*t.length);for(let e=0;e<t.length;e++)t[e].copyToArray(s,16*e);return this._matrixArrays[e]=s,this}setMatrix3x3(e,t){return this._checkUniform(e),this._matrices3x3[e]=t,this}setMatrix2x2(e,t){return this._checkUniform(e),this._matrices2x2[e]=t,this}setArray2(e,t){return this._checkUniform(e),this._vectors2Arrays[e]=t,this}setArray3(e,t){return this._checkUniform(e),this._vectors3Arrays[e]=t,this}setArray4(e,t){return this._checkUniform(e),this._vectors4Arrays[e]=t,this}setUniformBuffer(e,t){return -1===this._options.uniformBuffers.indexOf(e)&&this._options.uniformBuffers.push(e),this._uniformBuffers[e]=t,this}setTextureSampler(e,t){return -1===this._options.samplerObjects.indexOf(e)&&this._options.samplerObjects.push(e),this._textureSamplers[e]=t,this}setStorageBuffer(e,t){return -1===this._options.storageBuffers.indexOf(e)&&this._options.storageBuffers.push(e),this._storageBuffers[e]=t,this}setDefine(e,t){let s=e.trimEnd()+" ",i=this.options.defines.findIndex(t=>t===e||t.startsWith(s));return i>=0&&this.options.defines.splice(i,1),("boolean"!=typeof t||t)&&this.options.defines.push(s+t),this}isReadyForSubMesh(e,t,s){return this.isReady(e,s,t)}isReady(e,t,i){let n=i&&this._storeEffectOnSubMeshes;if(this.isFrozen){let e=n?i._drawWrapper:this._drawWrapper;if(e.effect&&e._wasPreviouslyReady&&e._wasPreviouslyUsingInstances===t)return!0}let o=this.getScene(),h=o.getEngine(),l=[],u=[],p=null,g=this._shaderPath,m=this._options.uniforms,x=this._options.uniformBuffers,y=this._options.samplers;h.getCaps().multiview&&o.activeCamera&&o.activeCamera.outputRenderTarget&&o.activeCamera.outputRenderTarget.getViewCount()>1&&(this._multiview=!0,l.push("#define MULTIVIEW"),-1!==m.indexOf("viewProjection")&&-1===m.indexOf("viewProjectionR")&&m.push("viewProjectionR"));for(let e=0;e<this._options.defines.length;e++){let t=0===this._options.defines[e].indexOf("#define")?this._options.defines[e]:`#define ${this._options.defines[e]}`;l.push(t)}for(let e=0;e<this._options.attributes.length;e++)u.push(this._options.attributes[e]);if(e&&e.isVerticesDataPresent(r.VertexBuffer.ColorKind)&&(-1===u.indexOf(r.VertexBuffer.ColorKind)&&u.push(r.VertexBuffer.ColorKind),l.push("#define VERTEXCOLOR")),t&&(l.push("#define INSTANCES"),(0,d.PushAttributesForInstances)(u,this._materialHelperNeedsPreviousMatrices),e?.hasThinInstances&&(l.push("#define THIN_INSTANCES"),e&&e.isVerticesDataPresent(r.VertexBuffer.ColorInstanceKind)&&(u.push(r.VertexBuffer.ColorInstanceKind),l.push("#define INSTANCESCOLOR")))),e&&e.useBones&&e.computeBonesUsingShaders&&e.skeleton){u.push(r.VertexBuffer.MatricesIndicesKind),u.push(r.VertexBuffer.MatricesWeightsKind),e.numBoneInfluencers>4&&(u.push(r.VertexBuffer.MatricesIndicesExtraKind),u.push(r.VertexBuffer.MatricesWeightsExtraKind));let t=e.skeleton;l.push("#define NUM_BONE_INFLUENCERS "+e.numBoneInfluencers),(p=new a.EffectFallbacks).addCPUSkinningFallback(0,e),t.isUsingTextureForMatrices?(l.push("#define BONETEXTURE"),-1===m.indexOf("boneTextureInfo")&&m.push("boneTextureInfo"),-1===this._options.samplers.indexOf("boneSampler")&&this._options.samplers.push("boneSampler")):(l.push("#define BonesPerMesh "+(t.bones.length+1)),-1===m.indexOf("mBones")&&m.push("mBones"))}else l.push("#define NUM_BONE_INFLUENCERS 0");let b=0,v=e?e.morphTargetManager:null;if(v){let t=-1!==l.indexOf("#define UV1"),s=-1!==l.indexOf("#define UV2"),i=-1!==l.indexOf("#define TANGENT"),r=-1!==l.indexOf("#define NORMAL"),n=-1!==l.indexOf("#define VERTEXCOLOR");b=(0,d.PrepareDefinesAndAttributesForMorphTargets)(v,l,u,e,!0,r,i,t,s,n),v.isUsingTextureForTargets&&(-1===m.indexOf("morphTargetTextureIndices")&&m.push("morphTargetTextureIndices"),-1===this._options.samplers.indexOf("morphTargets")&&this._options.samplers.push("morphTargets")),b>0&&((m=m.slice()).push("morphTargetInfluences"),m.push("morphTargetCount"),m.push("morphTargetTextureInfo"),m.push("morphTargetTextureIndices"))}else l.push("#define NUM_MORPH_INFLUENCERS 0");if(e){let s=e.bakedVertexAnimationManager;s&&s.isEnabled&&(l.push("#define BAKED_VERTEX_ANIMATION_TEXTURE"),-1===m.indexOf("bakedVertexAnimationSettings")&&m.push("bakedVertexAnimationSettings"),-1===m.indexOf("bakedVertexAnimationTextureSizeInverted")&&m.push("bakedVertexAnimationTextureSizeInverted"),-1===m.indexOf("bakedVertexAnimationTime")&&m.push("bakedVertexAnimationTime"),-1===this._options.samplers.indexOf("bakedVertexAnimationTexture")&&this._options.samplers.push("bakedVertexAnimationTexture"),t&&u.push("bakedVertexAnimationSettingsInstanced"))}for(let e in this._textures)if(!this._textures[e].isReady())return!1;for(let e in this._internalTextures)if(!this._internalTextures[e].isReady)return!1;e&&this.needAlphaTestingForMesh(e)&&l.push("#define ALPHATEST"),!1!==this._options.useClipPlane&&((0,_.AddClipPlaneUniforms)(m),(0,_.PrepareStringDefinesForClipPlanes)(this,o,l)),o.fogEnabled&&e?.applyFog&&o.fogMode!==s.Scene.FOGMODE_NONE&&(l.push("#define FOG"),-1===m.indexOf("view")&&m.push("view"),-1===m.indexOf("vFogInfos")&&m.push("vFogInfos"),-1===m.indexOf("vFogColor")&&m.push("vFogColor")),this._useLogarithmicDepth&&(l.push("#define LOGARITHMICDEPTH"),-1===m.indexOf("logarithmicDepthConstant")&&m.push("logarithmicDepthConstant"));let A=i?i.getRenderingMesh():e;if(A&&this.useVertexPulling){let e=A.geometry;e&&(this._vertexPullingMetadata=(0,c.PrepareVertexPullingUniforms)(e),this._vertexPullingMetadata&&this._vertexPullingMetadata.forEach((e,t)=>{m.push(`vp_${t}_info`)})),l.push("#define USE_VERTEX_PULLING");let t=A.geometry?.getIndexBuffer();t&&!A.isUnIndexed&&(l.push("#define VERTEX_PULLING_USE_INDEX_BUFFER"),t.is32Bits&&l.push("#define VERTEX_PULLING_INDEX_BUFFER_32BITS"))}this.customShaderNameResolve&&(m=m.slice(),x=x.slice(),y=y.slice(),g=this.customShaderNameResolve(this.name,m,x,y,l,u));let S=n?i._getDrawWrapper(void 0,!0):this._drawWrapper,O=S?.effect??null,E=S?.defines??null,M=l.join("\n"),T=O;return E!==M&&(T=h.createEffect(g,{attributes:u,uniformsNames:m,uniformBuffersNames:x,samplers:y,defines:M,fallbacks:p,onCompiled:this.onCompiled,onError:this.onError,indexParameters:{maxSimultaneousMorphTargets:b},shaderLanguage:this._options.shaderLanguage,extraInitializationsAsync:this._options.extraInitializationsAsync},h),n?i.setEffect(T,M,this._materialContext):S&&S.setEffect(T,M),this._onEffectCreatedObservable&&(f.effect=T,f.subMesh=i??e?.subMeshes[0]??null,this._onEffectCreatedObservable.notifyObservers(f))),S._wasPreviouslyUsingInstances=!!t,!!T?.isReady()&&(O!==T&&o.resetCachedMaterial(),S._wasPreviouslyReady=!0,!0)}bindOnlyWorldMatrix(e,t){let s=t??this.getEffect();if(!s)return;let i=this._options.uniforms;-1!==i.indexOf("world")&&s.setMatrix("world",e);let r=this.getScene();-1!==i.indexOf("worldView")&&(e.multiplyToRef(r.getViewMatrix(),this._cachedWorldViewMatrix),s.setMatrix("worldView",this._cachedWorldViewMatrix)),-1!==i.indexOf("worldViewProjection")&&(e.multiplyToRef(r.getTransformMatrix(),this._cachedWorldViewProjectionMatrix),s.setMatrix("worldViewProjection",this._cachedWorldViewProjectionMatrix)),-1!==i.indexOf("view")&&s.setMatrix("view",r.getViewMatrix())}bindForSubMesh(e,t,s){this.bind(e,t,s._drawWrapperOverride?.effect,s)}bind(e,t,s,i){let r=i&&this._storeEffectOnSubMeshes,n=s??(r?i.effect:this.getEffect());if(!n)return;let a=this.getScene();this._activeEffect=n,this.bindOnlyWorldMatrix(e,s);let o=this._options.uniformBuffers,h=!1;if(n&&o&&o.length>0&&a.getEngine().supportsUniformBuffers)for(let s=0;s<o.length;++s)switch(o[s]){case"Mesh":t&&(t.getMeshUniformBuffer().bindToEffect(n,"Mesh"),t.transferToEffect(e));break;case"Scene":(0,d.BindSceneUniformBuffer)(n,a.getSceneUniformBuffer()),a.finalizeSceneUbo(),h=!0}let l=t&&r?this._mustRebind(a,n,i,t.visibility):a.getCachedMaterial()!==this;if(n&&l){let e;for(e in h||-1===this._options.uniforms.indexOf("view")||n.setMatrix("view",a.getViewMatrix()),h||-1===this._options.uniforms.indexOf("projection")||n.setMatrix("projection",a.getProjectionMatrix()),!h&&-1!==this._options.uniforms.indexOf("viewProjection")&&(n.setMatrix("viewProjection",a.getTransformMatrix()),this._multiview&&n.setMatrix("viewProjectionR",a._transformMatrixR)),a.activeCamera&&-1!==this._options.uniforms.indexOf("cameraPosition")&&n.setVector3("cameraPosition",a.activeCamera.globalPosition),(0,d.BindBonesParameters)(t,n),(0,_.BindClipPlane)(n,this,a),this._vertexPullingMetadata&&(0,c.BindVertexPullingUniforms)(n,this._vertexPullingMetadata),this._useLogarithmicDepth&&(0,d.BindLogDepth)(r?i.materialDefines:n.defines,n,a),t&&(0,d.BindFogParameters)(a,t,n),this._textures)n.setTexture(e,this._textures[e]);for(e in this._internalTextures)n._bindTexture(e,this._internalTextures[e]);for(e in this._textureArrays)n.setTextureArray(e,this._textureArrays[e]);for(e in this._ints)n.setInt(e,this._ints[e]);for(e in this._uints)n.setUInt(e,this._uints[e]);for(e in this._floats)n.setFloat(e,this._floats[e]);for(e in this._floatsArrays)n.setArray(e,this._floatsArrays[e]);for(e in this._colors3)n.setColor3(e,this._colors3[e]);for(e in this._colors3Arrays)n.setArray3(e,this._colors3Arrays[e]);for(e in this._colors4){let t=this._colors4[e];n.setFloat4(e,t.r,t.g,t.b,t.a)}for(e in this._colors4Arrays)n.setArray4(e,this._colors4Arrays[e]);for(e in this._vectors2)n.setVector2(e,this._vectors2[e]);for(e in this._vectors3)n.setVector3(e,this._vectors3[e]);for(e in this._vectors4)n.setVector4(e,this._vectors4[e]);for(e in this._quaternions)n.setQuaternion(e,this._quaternions[e]);for(e in this._matrices)n.setMatrix(e,this._matrices[e]);for(e in this._matrixArrays)n.setMatrices(e,this._matrixArrays[e]);for(e in this._matrices3x3)n.setMatrix3x3(e,this._matrices3x3[e]);for(e in this._matrices2x2)n.setMatrix2x2(e,this._matrices2x2[e]);for(e in this._vectors2Arrays)n.setArray2(e,this._vectors2Arrays[e]);for(e in this._vectors3Arrays)n.setArray3(e,this._vectors3Arrays[e]);for(e in this._vectors4Arrays)n.setArray4(e,this._vectors4Arrays[e]);for(e in this._quaternionsArrays)n.setArray4(e,this._quaternionsArrays[e]);for(e in this._uniformBuffers){let t=this._uniformBuffers[e].getBuffer();t&&n.bindUniformBuffer(t,e)}let s=a.getEngine(),o=s.setExternalTexture;if(o)for(e in this._externalTextures)o.call(s,e,this._externalTextures[e]);let l=s.setTextureSampler;if(l)for(e in this._textureSamplers)l.call(s,e,this._textureSamplers[e]);let u=s.setStorageBuffer;if(u)for(e in this._storageBuffers)u.call(s,e,this._storageBuffers[e])}if(n&&t&&(l||!this.isFrozen)){(0,d.BindMorphTargetParameters)(t,n),t.morphTargetManager&&t.morphTargetManager.isUsingTextureForTargets&&t.morphTargetManager._bind(n);let e=t.bakedVertexAnimationManager;if(e&&e.isEnabled){let e=r?i._drawWrapper:this._drawWrapper;t.bakedVertexAnimationManager?.bind(n,!!e._wasPreviouslyUsingInstances)}}this._afterBind(t,n,i)}getActiveTextures(){let e=super.getActiveTextures();for(let t in this._textures)e.push(this._textures[t]);for(let t in this._textureArrays){let s=this._textureArrays[t];for(let t=0;t<s.length;t++)e.push(s[t])}return e}hasTexture(e){if(super.hasTexture(e))return!0;for(let t in this._textures)if(this._textures[t]===e)return!0;let t=e.getInternalTexture();for(let e in this._internalTextures)if(this._internalTextures[e]===t)return!0;for(let t in this._textureArrays){let s=this._textureArrays[t];for(let t=0;t<s.length;t++)if(s[t]===e)return!0}return!1}clone(e){let s=t.SerializationHelper.Clone(()=>new p(e,this.getScene(),this._shaderPath,this._options,this._storeEffectOnSubMeshes),this);for(let t of(s.name=e,s.id=e,"object"==typeof s._shaderPath&&(s._shaderPath={...s._shaderPath}),this._options={...this._options},Object.keys(this._options))){let e=this._options[t];Array.isArray(e)&&(this._options[t]=e.slice(0))}for(let e in this.stencil.copyTo(s.stencil),this._textures)s.setTexture(e,this._textures[e]);for(let e in this._internalTextures)s.setInternalTexture(e,this._internalTextures[e]);for(let e in this._textureArrays)s.setTextureArray(e,this._textureArrays[e]);for(let e in this._externalTextures)s.setExternalTexture(e,this._externalTextures[e]);for(let e in this._ints)s.setInt(e,this._ints[e]);for(let e in this._uints)s.setUInt(e,this._uints[e]);for(let e in this._floats)s.setFloat(e,this._floats[e]);for(let e in this._floatsArrays)s.setFloats(e,this._floatsArrays[e]);for(let e in this._colors3)s.setColor3(e,this._colors3[e]);for(let e in this._colors3Arrays)s._colors3Arrays[e]=this._colors3Arrays[e];for(let e in this._colors4)s.setColor4(e,this._colors4[e]);for(let e in this._colors4Arrays)s._colors4Arrays[e]=this._colors4Arrays[e];for(let e in this._vectors2)s.setVector2(e,this._vectors2[e]);for(let e in this._vectors3)s.setVector3(e,this._vectors3[e]);for(let e in this._vectors4)s.setVector4(e,this._vectors4[e]);for(let e in this._quaternions)s.setQuaternion(e,this._quaternions[e]);for(let e in this._quaternionsArrays)s._quaternionsArrays[e]=this._quaternionsArrays[e];for(let e in this._matrices)s.setMatrix(e,this._matrices[e]);for(let e in this._matrixArrays)s._matrixArrays[e]=this._matrixArrays[e].slice();for(let e in this._matrices3x3)s.setMatrix3x3(e,this._matrices3x3[e]);for(let e in this._matrices2x2)s.setMatrix2x2(e,this._matrices2x2[e]);for(let e in this._vectors2Arrays)s.setArray2(e,this._vectors2Arrays[e]);for(let e in this._vectors3Arrays)s.setArray3(e,this._vectors3Arrays[e]);for(let e in this._vectors4Arrays)s.setArray4(e,this._vectors4Arrays[e]);for(let e in this._uniformBuffers)s.setUniformBuffer(e,this._uniformBuffers[e]);for(let e in this._textureSamplers)s.setTextureSampler(e,this._textureSamplers[e]);for(let e in this._storageBuffers)s.setStorageBuffer(e,this._storageBuffers[e]);return s}dispose(e,t,s){if(t){let e;for(e in this._textures)this._textures[e].dispose();for(e in this._internalTextures)this._internalTextures[e].dispose();for(e in this._textureArrays){let t=this._textureArrays[e];for(let e=0;e<t.length;e++)t[e].dispose()}}this._textures={},this._internalTextures={},super.dispose(e,t,s)}serialize(){let e,s=t.SerializationHelper.Serialize(this);for(e in s.customType="BABYLON.ShaderMaterial",s.uniqueId=this.uniqueId,s.options=this._options,s.shaderPath=this._shaderPath,s.storeEffectOnSubMeshes=this._storeEffectOnSubMeshes,s.stencil=this.stencil.serialize(),s.textures={},this._textures)s.textures[e]=this._textures[e].serialize();for(e in s.textureArrays={},this._textureArrays){s.textureArrays[e]=[];let t=this._textureArrays[e];for(let i=0;i<t.length;i++)s.textureArrays[e].push(t[i].serialize())}for(e in s.ints={},this._ints)s.ints[e]=this._ints[e];for(e in s.uints={},this._uints)s.uints[e]=this._uints[e];for(e in s.floats={},this._floats)s.floats[e]=this._floats[e];for(e in s.floatsArrays={},this._floatsArrays)s.floatsArrays[e]=this._floatsArrays[e];for(e in s.colors3={},this._colors3){let t=this._colors3[e];s.colors3[e]=[t.r,t.g,t.b]}for(e in s.colors3Arrays={},this._colors3Arrays)s.colors3Arrays[e]=this._colors3Arrays[e];for(e in s.colors4={},this._colors4){let t=this._colors4[e];s.colors4[e]=[t.r,t.g,t.b,t.a]}for(e in s.colors4Arrays={},this._colors4Arrays)s.colors4Arrays[e]=this._colors4Arrays[e];for(e in s.vectors2={},this._vectors2){let t=this._vectors2[e];s.vectors2[e]=[t.x,t.y]}for(e in s.vectors3={},this._vectors3){let t=this._vectors3[e];s.vectors3[e]=[t.x,t.y,t.z]}for(e in s.vectors4={},this._vectors4){let t=this._vectors4[e];s.vectors4[e]=[t.x,t.y,t.z,t.w]}for(e in s.quaternions={},this._quaternions)s.quaternions[e]=this._quaternions[e].asArray();for(e in s.matrices={},this._matrices)s.matrices[e]=this._matrices[e].asArray();for(e in s.matrixArray={},this._matrixArrays)s.matrixArray[e]=this._matrixArrays[e];for(e in s.matrices3x3={},this._matrices3x3)s.matrices3x3[e]=this._matrices3x3[e];for(e in s.matrices2x2={},this._matrices2x2)s.matrices2x2[e]=this._matrices2x2[e];for(e in s.vectors2Arrays={},this._vectors2Arrays)s.vectors2Arrays[e]=this._vectors2Arrays[e];for(e in s.vectors3Arrays={},this._vectors3Arrays)s.vectors3Arrays[e]=this._vectors3Arrays[e];for(e in s.vectors4Arrays={},this._vectors4Arrays)s.vectors4Arrays[e]=this._vectors4Arrays[e];for(e in s.quaternionsArrays={},this._quaternionsArrays)s.quaternionsArrays[e]=this._quaternionsArrays[e];return s}}function g(e,s,r){let a,o=t.SerializationHelper.Parse(()=>new p(e.name,s,e.shaderPath,e.options,e.storeEffectOnSubMeshes),e,s,r);for(a in e.stencil&&o.stencil.parse(e.stencil,s,r),e.textures)o.setTexture(a,n.Texture.Parse(e.textures[a],s,r));for(a in e.textureArrays){let t=e.textureArrays[a],i=[];for(let e=0;e<t.length;e++)i.push(n.Texture.Parse(t[e],s,r));o.setTextureArray(a,i)}for(a in e.ints)o.setInt(a,e.ints[a]);for(a in e.uints)o.setUInt(a,e.uints[a]);for(a in e.floats)o.setFloat(a,e.floats[a]);for(a in e.floatsArrays)o.setFloats(a,e.floatsArrays[a]);for(a in e.colors3){let t=e.colors3[a];o.setColor3(a,{r:t[0],g:t[1],b:t[2]})}for(a in e.colors3Arrays){let t=e.colors3Arrays[a].reduce((e,t,s)=>(s%3==0?e.push([t]):e[e.length-1].push(t),e),[]).map(e=>({r:e[0],g:e[1],b:e[2]}));o.setColor3Array(a,t)}for(a in e.colors4){let t=e.colors4[a];o.setColor4(a,{r:t[0],g:t[1],b:t[2],a:t[3]})}for(a in e.colors4Arrays){let t=e.colors4Arrays[a].reduce((e,t,s)=>(s%4==0?e.push([t]):e[e.length-1].push(t),e),[]).map(e=>({r:e[0],g:e[1],b:e[2],a:e[3]}));o.setColor4Array(a,t)}for(a in e.vectors2){let t=e.vectors2[a];o.setVector2(a,{x:t[0],y:t[1]})}for(a in e.vectors3){let t=e.vectors3[a];o.setVector3(a,{x:t[0],y:t[1],z:t[2]})}for(a in e.vectors4){let t=e.vectors4[a];o.setVector4(a,{x:t[0],y:t[1],z:t[2],w:t[3]})}for(a in e.quaternions)o.setQuaternion(a,i.Quaternion.FromArray(e.quaternions[a]));for(a in e.matrices)o.setMatrix(a,i.Matrix.FromArray(e.matrices[a]));for(a in e.matrixArray)o._matrixArrays[a]=new Float32Array(e.matrixArray[a]);for(a in e.matrices3x3)o.setMatrix3x3(a,e.matrices3x3[a]);for(a in e.matrices2x2)o.setMatrix2x2(a,e.matrices2x2[a]);for(a in e.vectors2Arrays)o.setArray2(a,e.vectors2Arrays[a]);for(a in e.vectors3Arrays)o.setArray3(a,e.vectors3Arrays[a]);for(a in e.vectors4Arrays)o.setArray4(a,e.vectors4Arrays[a]);for(a in e.quaternionsArrays)o.setArray4(a,e.quaternionsArrays[a]);return o}async function m(e,t,s,i=""){return await new Promise((r,n)=>{let a=new o.WebRequest;a.addEventListener("readystatechange",()=>{if(4==a.readyState)if(200==a.status){let t=g(JSON.parse(a.responseText),s||l.EngineStore.LastCreatedScene,i);e&&(t.name=e),r(t)}else n("Unable to load the ShaderMaterial")}),a.open("GET",t),a.send()})}async function x(e,t,s=""){let i=this?.SnippetUrl??p.SnippetUrl;return await new Promise((r,n)=>{let a=new o.WebRequest;a.addEventListener("readystatechange",()=>{if(4==a.readyState)if(200==a.status){let i=g(JSON.parse(JSON.parse(JSON.parse(a.responseText).jsonPayload).shaderMaterial),t||l.EngineStore.LastCreatedScene,s);i.snippetId=e,r(i)}else n("Unable to load the snippet "+e)}),a.open("GET",i+"/"+e.replace(/#/g,"/")),a.send()})}p.SnippetUrl="https://snippet.babylonjs.com";let y=!1;e.s(["RegisterShaderMaterial",0,function(){y||(y=!0,p.Parse=g,p.ParseFromFileAsync=m,p.ParseFromSnippetAsync=x,p.CreateFromSnippetAsync=x,(0,u.RegisterClass)("BABYLON.ShaderMaterial",p))},"ShaderMaterial",0,p])}]);
@@ -0,0 +1 @@
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,3524,69680,e=>{"use strict";var t=e.i(41041),s=e.i(3864);e.s(["PostProcessManager",0,class{constructor(e){this._vertexBuffers={},this._activePostProcesses=[],this.onBeforeRenderObservable=new s.Observable,this._scene=e}_prepareBuffers(){if(this._vertexBuffers[t.VertexBuffer.PositionKind])return;let e=[];e.push(1,1),e.push(-1,1),e.push(-1,-1),e.push(1,-1),this._vertexBuffers[t.VertexBuffer.PositionKind]=new t.VertexBuffer(this._scene.getEngine(),e,t.VertexBuffer.PositionKind,!1,!1,2),this._buildIndexBuffer()}_buildIndexBuffer(){let e=[];e.push(0),e.push(1),e.push(2),e.push(0),e.push(2),e.push(3),this._indexBuffer=this._scene.getEngine().createIndexBuffer(e)}_getActivePostProcesses(e){let t=this._activePostProcesses;t.length=0;for(let s=0;s<e.length;s++){let r=e[s];r&&t.push(r)}return t}_rebuild(){let e=this._vertexBuffers[t.VertexBuffer.PositionKind];e&&(e._rebuild(),this._buildIndexBuffer())}_prepareFrame(e=null,t=null){let s=this._scene.activeCamera;return!!s&&!!(t=t||this._getActivePostProcesses(s._postProcesses))&&0!==t.length&&!!this._scene.postProcessesEnabled&&(t[0].activate(s,e,null!=t),!0)}directRender(e,t=null,s=!1,r=0,i=0,n=!1,a=e.length){let h=this._scene.getEngine();for(let o=0;o<a;o++){o<e.length-1?e[o+1].activate(this._scene.activeCamera||this._scene,t?.texture):(t?h.bindFramebuffer(t,r,void 0,void 0,s,i):n||h.restoreDefaultFramebuffer(),h._debugInsertMarker?.(`post process ${e[o].name} output`));let a=e[o],l=a.apply();l&&(a.onBeforeRenderObservable.notifyObservers(l),this._prepareBuffers(),h.bindBuffers(this._vertexBuffers,this._indexBuffer,l),h.drawElementsType(0,0,6),a.onAfterRenderObservable.notifyObservers(l))}h.setDepthBuffer(!0),h.setDepthWrite(!0)}_finalizeFrame(e,t,s,r,i=!1){let n=this._scene.activeCamera;if(!n||(this.onBeforeRenderObservable.notifyObservers(this),0===(r=r||this._getActivePostProcesses(n._postProcesses)).length||!this._scene.postProcessesEnabled))return;let a=this._scene.getEngine();for(let h=0,o=r.length;h<o;h++){let l=r[h];if(h<o-1?l._outputTexture=r[h+1].activate(n,t?.texture):(t?(a.bindFramebuffer(t,s,void 0,void 0,i),l._outputTexture=t):(a.restoreDefaultFramebuffer(),l._outputTexture=null),a._debugInsertMarker?.(`post process ${r[h].name} output`)),e)break;let c=l.apply();c&&(l.onBeforeRenderObservable.notifyObservers(c),this._prepareBuffers(),a.bindBuffers(this._vertexBuffers,this._indexBuffer,c),a.drawElementsType(0,0,6),l.onAfterRenderObservable.notifyObservers(c))}a.setDepthBuffer(!0),a.setDepthWrite(!0),a.setAlphaMode(0)}dispose(){let e=this._vertexBuffers[t.VertexBuffer.PositionKind];e&&(e.dispose(),this._vertexBuffers[t.VertexBuffer.PositionKind]=null),this._indexBuffer&&(this._scene.getEngine()._releaseBuffer(this._indexBuffer),this._indexBuffer=null)}}],3524);var r=e.i(32451),i=e.i(69400);class n{set opaqueSortCompareFn(e){e?this._opaqueSortCompareFn=e:this._opaqueSortCompareFn=n.PainterSortCompare,this._renderOpaque=this._renderOpaqueSorted}set alphaTestSortCompareFn(e){e?this._alphaTestSortCompareFn=e:this._alphaTestSortCompareFn=n.PainterSortCompare,this._renderAlphaTest=this._renderAlphaTestSorted}set transparentSortCompareFn(e){e?this._transparentSortCompareFn=e:this._transparentSortCompareFn=n.defaultTransparentSortCompare,this._renderTransparent=this._renderTransparentSorted}constructor(e,t,s=null,i=null,n=null){this.index=e,this._opaqueSubMeshes=new r.SmartArray(256),this._transparentSubMeshes=new r.SmartArray(256),this._alphaTestSubMeshes=new r.SmartArray(256),this._depthOnlySubMeshes=new r.SmartArray(256),this._particleSystems=new r.SmartArray(256),this._spriteManagers=new r.SmartArray(256),this._empty=!0,this._edgesRenderers=new r.SmartArrayNoDuplicate(16),this.disableDepthPrePass=!1,this._scene=t,this.opaqueSortCompareFn=s,this.alphaTestSortCompareFn=i,this.transparentSortCompareFn=n}render(e,t,s,r,i=!0,n=!0,a=!0,h=!0,o){if(e)return void e(this._opaqueSubMeshes,this._alphaTestSubMeshes,this._transparentSubMeshes,this._depthOnlySubMeshes);let l=this._scene.getEngine();i&&0!==this._depthOnlySubMeshes.length&&(l.setColorWrite(!1),this._renderAlphaTest(this._depthOnlySubMeshes),l.setColorWrite(!0)),n&&0!==this._opaqueSubMeshes.length&&this._renderOpaque(this._opaqueSubMeshes),a&&0!==this._alphaTestSubMeshes.length&&this._renderAlphaTest(this._alphaTestSubMeshes);let c=l.getStencilBuffer();if(l.setStencilBuffer(!1),t&&this._renderSprites(),s&&this._renderParticles(r),this.onBeforeTransparentRendering&&this.onBeforeTransparentRendering(),h&&(o||0!==this._transparentSubMeshes.length||this._scene.useOrderIndependentTransparency)){if(l.setStencilBuffer(c),o)o(this._transparentSubMeshes,this);else if(this._scene.useOrderIndependentTransparency){let e=this._scene.depthPeelingRenderer.render(this._transparentSubMeshes);e.length&&this._renderTransparent(e)}else this._renderTransparent(this._transparentSubMeshes);l.setAlphaMode(0)}if(l.setStencilBuffer(!1),n&&this._edgesRenderers.length){for(let e=0;e<this._edgesRenderers.length;e++)this._edgesRenderers.data[e].render();l.setAlphaMode(0)}l.setStencilBuffer(c)}_renderOpaqueSorted(e){n._RenderSorted(e,this._opaqueSortCompareFn,this._scene.activeCamera,!1,this.disableDepthPrePass)}_renderAlphaTestSorted(e){n._RenderSorted(e,this._alphaTestSortCompareFn,this._scene.activeCamera,!1,this.disableDepthPrePass)}_renderTransparentSorted(e){n._RenderSorted(e,this._transparentSortCompareFn,this._scene.activeCamera,!0,this.disableDepthPrePass)}static _RenderSorted(e,t,s,r,a){let h,o=0,l=s?s.globalPosition:n._ZeroVector;if(r)for(;o<e.length;o++)(h=e.data[o])._alphaIndex=h.getMesh().alphaIndex,h._distanceToCamera=i.Vector3.Distance(h.getBoundingInfo().boundingSphere.centerWorld,l);let c=e.length===e.data.length?e.data:e.data.slice(0,e.length);t&&c.sort(t);let u=c[0].getMesh().getScene();for(o=0;o<c.length;o++)if(h=c[o],!u._activeMeshesFrozenButKeepClipping||h.isInFrustum(u._frustumPlanes)){if(r){let e=h.getMaterial();if(e&&e.needDepthPrePass&&!a){let t=e.getScene().getEngine();t.setColorWrite(!1),t.setAlphaMode(0),h.render(!1),t.setColorWrite(!0)}}h.render(r)}}static defaultTransparentSortCompare(e,t){return e._alphaIndex>t._alphaIndex?1:e._alphaIndex<t._alphaIndex?-1:n.backToFrontSortCompare(e,t)}static backToFrontSortCompare(e,t){return e._distanceToCamera<t._distanceToCamera?1:e._distanceToCamera>t._distanceToCamera?-1:0}static frontToBackSortCompare(e,t){return e._distanceToCamera<t._distanceToCamera?-1:+(e._distanceToCamera>t._distanceToCamera)}static PainterSortCompare(e,t){let s=e.getMesh(),r=t.getMesh();return s.material&&r.material?s.material.uniqueId-r.material.uniqueId:s.uniqueId-r.uniqueId}prepare(){this._opaqueSubMeshes.reset(),this._transparentSubMeshes.reset(),this._alphaTestSubMeshes.reset(),this._depthOnlySubMeshes.reset(),this._particleSystems.reset(),this.prepareSprites(),this._edgesRenderers.reset(),this._empty=!0}prepareSprites(){this._spriteManagers.reset()}dispose(){this._opaqueSubMeshes.dispose(),this._transparentSubMeshes.dispose(),this._alphaTestSubMeshes.dispose(),this._depthOnlySubMeshes.dispose(),this._particleSystems.dispose(),this._spriteManagers.dispose(),this._edgesRenderers.dispose()}dispatch(e,t,s){void 0===t&&(t=e.getMesh()),void 0===s&&(s=e.getMaterial()),null!=s&&(s.needAlphaBlendingForMesh(t)?this._transparentSubMeshes.push(e):s.needAlphaTestingForMesh(t)?(s.needDepthPrePass&&!this.disableDepthPrePass&&this._depthOnlySubMeshes.push(e),this._alphaTestSubMeshes.push(e)):(s.needDepthPrePass&&!this.disableDepthPrePass&&this._depthOnlySubMeshes.push(e),this._opaqueSubMeshes.push(e)),t._renderingGroup=this,t._edgesRenderer&&t.isEnabled()&&t.isVisible&&t._edgesRenderer.isEnabled&&this._edgesRenderers.pushNoDuplicate(t._edgesRenderer),this._empty=!1)}dispatchSprites(e){this._spriteManagers.push(e),this._empty=!1}dispatchParticles(e){this._particleSystems.push(e),this._empty=!1}_renderParticles(e){if(0===this._particleSystems.length)return;let t=this._scene.activeCamera;this._scene.onBeforeParticlesRenderingObservable.notifyObservers(this._scene);for(let s=0;s<this._particleSystems.length;s++){let r=this._particleSystems.data[s];if(0===(t&&t.layerMask&r.layerMask))continue;let i=r.emitter;i.position&&e&&-1===e.indexOf(i)||this._scene._activeParticles.addCount(r.render(),!1)}this._scene.onAfterParticlesRenderingObservable.notifyObservers(this._scene)}_renderSprites(){if(!this._scene.spritesEnabled||0===this._spriteManagers.length)return;let e=this._scene.activeCamera;this._scene.onBeforeSpritesRenderingObservable.notifyObservers(this._scene);for(let t=0;t<this._spriteManagers.length;t++){let s=this._spriteManagers.data[t];0!==(e&&e.layerMask&s.layerMask)&&s.render()}this._scene.onAfterSpritesRenderingObservable.notifyObservers(this._scene)}}n._ZeroVector=i.Vector3.Zero();class a{}class h{get disableDepthPrePass(){return this._disableDepthPrePass}set disableDepthPrePass(e){for(let t of(this._disableDepthPrePass=e,this._renderingGroups))t.disableDepthPrePass=e}get maintainStateBetweenFrames(){return this._maintainStateBetweenFrames}set maintainStateBetweenFrames(e){e!==this._maintainStateBetweenFrames&&(this._maintainStateBetweenFrames=e,this._maintainStateBetweenFrames||this.restoreDispachedFlags())}restoreDispachedFlags(){for(let e of this._scene.meshes)if(e.subMeshes)for(let t of e.subMeshes)t._wasDispatched=!1;if(this._scene.spriteManagers)for(let e of this._scene.spriteManagers)e._wasDispatched=!1;for(let e of this._scene.particleSystems)e._wasDispatched=!1}constructor(e){this._useSceneAutoClearSetup=!1,this._disableDepthPrePass=!1,this._renderingGroups=[],this._autoClearDepthStencil={},this._customOpaqueSortCompareFn={},this._customAlphaTestSortCompareFn={},this._customTransparentSortCompareFn={},this._renderingGroupInfo=new a,this._maintainStateBetweenFrames=!1,this._scene=e;for(let e=h.MIN_RENDERINGGROUPS;e<h.MAX_RENDERINGGROUPS;e++)this._autoClearDepthStencil[e]={autoClear:!0,depth:!0,stencil:!0}}get renderingGroups(){return this._renderingGroups}getRenderingGroup(e){let t=e||0;return this._prepareRenderingGroup(t),this._renderingGroups[t]}_clearDepthStencilBuffer(e=!0,t=!0){this._depthStencilBufferAlreadyCleaned||(this._scene.getEngine().clear(null,!1,e,t),this._depthStencilBufferAlreadyCleaned=!0)}render(e,t,s,r,i=!0,n=!0,a=!0,o=!0,l){let c=this._renderingGroupInfo;if(c.scene=this._scene,c.camera=this._scene.activeCamera,c.renderingManager=this,this._scene.spriteManagers&&r)for(let e=0;e<this._scene.spriteManagers.length;e++){let t=this._scene.spriteManagers[e];this.dispatchSprites(t)}for(let u=h.MIN_RENDERINGGROUPS;u<h.MAX_RENDERINGGROUPS;u++){this._depthStencilBufferAlreadyCleaned=u===h.MIN_RENDERINGGROUPS;let d=this._renderingGroups[u];if(!d||d._empty)continue;let p=1<<u;if(c.renderingGroupId=u,this._scene.onBeforeRenderingGroupObservable.notifyObservers(c,p),h.AUTOCLEAR){let e=this._useSceneAutoClearSetup?this._scene.getAutoClearDepthStencilSetup(u):this._autoClearDepthStencil[u];e&&e.autoClear&&this._clearDepthStencilBuffer(e.depth,e.stencil)}for(let e of this._scene._beforeRenderingGroupDrawStage)e.action(u);for(let h of(d.render(e,r,s,t,i,n,a,o,l),this._scene._afterRenderingGroupDrawStage))h.action(u);this._scene.onAfterRenderingGroupObservable.notifyObservers(c,p)}}reset(){if(!this.maintainStateBetweenFrames)for(let e=h.MIN_RENDERINGGROUPS;e<h.MAX_RENDERINGGROUPS;e++){let t=this._renderingGroups[e];t&&t.prepare()}}resetSprites(){if(!this.maintainStateBetweenFrames)for(let e=h.MIN_RENDERINGGROUPS;e<h.MAX_RENDERINGGROUPS;e++){let t=this._renderingGroups[e];t&&t.prepareSprites()}}dispose(){this.freeRenderingGroups(),this._renderingGroups.length=0,this._renderingGroupInfo=null}freeRenderingGroups(){for(let e=h.MIN_RENDERINGGROUPS;e<h.MAX_RENDERINGGROUPS;e++){let t=this._renderingGroups[e];t&&t.dispose()}}_prepareRenderingGroup(e){void 0===this._renderingGroups[e]&&(this._renderingGroups[e]=new n(e,this._scene,this._customOpaqueSortCompareFn[e],this._customAlphaTestSortCompareFn[e],this._customTransparentSortCompareFn[e]),this._renderingGroups[e].disableDepthPrePass=this._disableDepthPrePass)}dispatchSprites(e){this.maintainStateBetweenFrames&&e._wasDispatched||(e._wasDispatched=!0,this.getRenderingGroup(e.renderingGroupId).dispatchSprites(e))}dispatchParticles(e){this.maintainStateBetweenFrames&&e._wasDispatched||(e._wasDispatched=!0,this.getRenderingGroup(e.renderingGroupId).dispatchParticles(e))}dispatch(e,t,s){void 0===t&&(t=e.getMesh()),this.maintainStateBetweenFrames&&e._wasDispatched||(e._wasDispatched=!0,this.getRenderingGroup(t.renderingGroupId).dispatch(e,t,s))}setRenderingOrder(e,t=null,s=null,r=null){if(this._customOpaqueSortCompareFn[e]=t,this._customAlphaTestSortCompareFn[e]=s,this._customTransparentSortCompareFn[e]=r,this._renderingGroups[e]){let t=this._renderingGroups[e];t.opaqueSortCompareFn=this._customOpaqueSortCompareFn[e],t.alphaTestSortCompareFn=this._customAlphaTestSortCompareFn[e],t.transparentSortCompareFn=this._customTransparentSortCompareFn[e]}}setRenderingAutoClearDepthStencil(e,t,s=!0,r=!0){this._autoClearDepthStencil[e]={autoClear:t,depth:s,stencil:r}}getAutoClearDepthStencilSetup(e){return this._autoClearDepthStencil[e]}}h.MAX_RENDERINGGROUPS=4,h.MIN_RENDERINGGROUPS=0,h.AUTOCLEAR=!0,e.s(["RenderingManager",0,h],69680)},11267,e=>{"use strict";var t=e.i(87627);class s{get min(){return this._min}get max(){return this._max}get average(){return this._average}get lastSecAverage(){return this._lastSecAverage}get current(){return this._current}get total(){return this._totalAccumulated}get count(){return this._totalValueCount}constructor(){this._startMonitoringTime=0,this._min=0,this._max=0,this._hasResult=!1,this._hasCurrentValue=!1,this._average=0,this._lastSecAverage=0,this._current=0,this._totalValueCount=0,this._totalAccumulated=0,this._lastSecAccumulated=0,this._lastSecTime=0,this._lastSecValueCount=0}fetchNewFrame(){this._totalValueCount++,this._current=0,this._hasCurrentValue=s.Enabled,this._lastSecValueCount++}addCount(e,t){s.Enabled&&(this._current+=e,this._hasCurrentValue=!0,t&&this._fetchResult())}beginMonitoring(){s.Enabled&&(this._startMonitoringTime=t.PrecisionDate.Now)}endMonitoring(e=!0){if(!s.Enabled)return;e&&this.fetchNewFrame();let r=t.PrecisionDate.Now;this._current=r-this._startMonitoringTime,this._hasCurrentValue=!0,e&&this._fetchResult()}endFrame(){this._fetchResult()}_fetchResult(){if(!this._hasCurrentValue)return;this._totalAccumulated+=this._current,this._lastSecAccumulated+=this._current,this._hasResult?(this._min=Math.min(this._min,this._current),this._max=Math.max(this._max,this._current)):(this._min=this._current,this._max=this._current,this._hasResult=!0),this._average=this._totalAccumulated/this._totalValueCount;let e=t.PrecisionDate.Now;e-this._lastSecTime>1e3&&(this._lastSecAverage=this._lastSecAccumulated/this._lastSecValueCount,this._lastSecTime=e,this._lastSecAccumulated=0,this._lastSecValueCount=0)}}s.Enabled=!0,e.s(["PerfCounter",0,s])},57660,e=>{"use strict";var t=e.i(96042);class s{static GetPlanes(e){let r=[];for(let e=0;e<6;e++)r.push(new t.Plane(0,0,0,0));return s.GetPlanesToRef(e,r),r}static GetNearPlaneToRef(e,t){let s=e.m;t.normal.x=s[3]+s[2],t.normal.y=s[7]+s[6],t.normal.z=s[11]+s[10],t.d=s[15]+s[14],t.normalize()}static GetFarPlaneToRef(e,t){let s=e.m;t.normal.x=s[3]-s[2],t.normal.y=s[7]-s[6],t.normal.z=s[11]-s[10],t.d=s[15]-s[14],t.normalize()}static GetLeftPlaneToRef(e,t){let s=e.m;t.normal.x=s[3]+s[0],t.normal.y=s[7]+s[4],t.normal.z=s[11]+s[8],t.d=s[15]+s[12],t.normalize()}static GetRightPlaneToRef(e,t){let s=e.m;t.normal.x=s[3]-s[0],t.normal.y=s[7]-s[4],t.normal.z=s[11]-s[8],t.d=s[15]-s[12],t.normalize()}static GetTopPlaneToRef(e,t){let s=e.m;t.normal.x=s[3]-s[1],t.normal.y=s[7]-s[5],t.normal.z=s[11]-s[9],t.d=s[15]-s[13],t.normalize()}static GetBottomPlaneToRef(e,t){let s=e.m;t.normal.x=s[3]+s[1],t.normal.y=s[7]+s[5],t.normal.z=s[11]+s[9],t.d=s[15]+s[13],t.normalize()}static GetPlanesToRef(e,t){s.GetNearPlaneToRef(e,t[0]),s.GetFarPlaneToRef(e,t[1]),s.GetLeftPlaneToRef(e,t[2]),s.GetRightPlaneToRef(e,t[3]),s.GetTopPlaneToRef(e,t[4]),s.GetBottomPlaneToRef(e,t[5])}static IsPointInFrustum(e,t){for(let s=0;s<6;s++)if(0>t[s].dotCoordinate(e))return!1;return!0}}e.s(["Frustum",0,s])},92247,e=>{"use strict";var t=e.i(69400),s=e.i(41041);e.s(["PickingInfo",0,class{constructor(){this.hit=!1,this.distance=0,this.pickedPoint=null,this.pickedMesh=null,this.bu=0,this.bv=0,this.faceId=-1,this.subMeshFaceId=-1,this.subMeshId=0,this.pickedSprite=null,this.thinInstanceIndex=-1,this.ray=null,this.originMesh=null,this.aimTransform=null,this.gripTransform=null}getNormal(e=!1,r=!0){let i;if(!this.pickedMesh||r&&!this.pickedMesh.isVerticesDataPresent(s.VertexBuffer.NormalKind))return null;let n=this.pickedMesh.getIndices();n?.length===0&&(n=null);let a=t.TmpVectors.Vector3[0],h=t.TmpVectors.Vector3[1],o=t.TmpVectors.Vector3[2];if(r){let e=this.pickedMesh.getVerticesData(s.VertexBuffer.NormalKind),r=n?t.Vector3.FromArrayToRef(e,3*n[3*this.faceId],a):a.copyFromFloats(e[3*this.faceId*3],e[3*this.faceId*3+1],e[3*this.faceId*3+2]),l=n?t.Vector3.FromArrayToRef(e,3*n[3*this.faceId+1],h):h.copyFromFloats(e[(3*this.faceId+1)*3],e[(3*this.faceId+1)*3+1],e[(3*this.faceId+1)*3+2]),c=n?t.Vector3.FromArrayToRef(e,3*n[3*this.faceId+2],o):o.copyFromFloats(e[(3*this.faceId+2)*3],e[(3*this.faceId+2)*3+1],e[(3*this.faceId+2)*3+2]);r=r.scale(this.bu),l=l.scale(this.bv),c=c.scale(1-this.bu-this.bv),i=new t.Vector3(r.x+l.x+c.x,r.y+l.y+c.y,r.z+l.z+c.z)}else{let e=this.pickedMesh.getVerticesData(s.VertexBuffer.PositionKind),r=n?t.Vector3.FromArrayToRef(e,3*n[3*this.faceId],a):a.copyFromFloats(e[3*this.faceId*3],e[3*this.faceId*3+1],e[3*this.faceId*3+2]),l=n?t.Vector3.FromArrayToRef(e,3*n[3*this.faceId+1],h):h.copyFromFloats(e[(3*this.faceId+1)*3],e[(3*this.faceId+1)*3+1],e[(3*this.faceId+1)*3+2]),c=n?t.Vector3.FromArrayToRef(e,3*n[3*this.faceId+2],o):o.copyFromFloats(e[(3*this.faceId+2)*3],e[(3*this.faceId+2)*3+1],e[(3*this.faceId+2)*3+2]),u=r.subtract(l),d=c.subtract(l);i=t.Vector3.Cross(u,d)}let l=(e,s)=>{if(-1!==this.thinInstanceIndex){let r=e._thinInstanceDataStorage.matrixData,i=this.thinInstanceIndex<<4;if(r&&r.length>i){let e=t.TmpVectors.Matrix[0];t.Matrix.FromArrayToRef(r,i,e),t.Vector3.TransformNormalToRef(s,e,s)}}let r=e.getWorldMatrix();e.nonUniformScaling&&(t.TmpVectors.Matrix[0].copyFrom(r),(r=t.TmpVectors.Matrix[0]).setTranslationFromFloats(0,0,0),r.invert(),r.transposeToRef(t.TmpVectors.Matrix[1]),r=t.TmpVectors.Matrix[1]),t.Vector3.TransformNormalToRef(s,r,s)};if(e&&l(this.pickedMesh,i),this.ray){let s=t.TmpVectors.Vector3[0].copyFrom(i);e||l(this.pickedMesh,s),t.Vector3.Dot(s,this.ray.direction)>0&&i.negateInPlace()}return i.normalize(),i}getTextureCoordinates(e=s.VertexBuffer.UVKind){if(!this.pickedMesh||!this.pickedMesh.isVerticesDataPresent(e))return null;let r=this.pickedMesh.getIndices();if(!r)return null;let i=this.pickedMesh.getVerticesData(e);if(!i)return null;let n=t.Vector2.FromArray(i,2*r[3*this.faceId]),a=t.Vector2.FromArray(i,2*r[3*this.faceId+1]),h=t.Vector2.FromArray(i,2*r[3*this.faceId+2]);return n=n.scale(this.bu),a=a.scale(this.bv),h=h.scale(1-this.bu-this.bv),new t.Vector2(n.x+a.x+h.x,n.y+a.y+h.y)}}])},84964,e=>{"use strict";var t=e.i(69400);class s{}s.POINTERDOWN=1,s.POINTERUP=2,s.POINTERMOVE=4,s.POINTERWHEEL=8,s.POINTERPICK=16,s.POINTERTAP=32,s.POINTERDOUBLETAP=64;class r{constructor(e,t){this.type=e,this.event=t}}e.s(["PointerEventTypes",0,s,"PointerInfo",0,class extends r{get pickInfo(){return this._pickInfo||this._generatePickInfo(),this._pickInfo}constructor(e,t,s,r=null){super(e,t),this._pickInfo=s,this._inputManager=r}_generatePickInfo(){this._inputManager&&(this._pickInfo=this._inputManager._pickMove(this.event),this._inputManager._setRayOnPointerInfo(this._pickInfo,this.event),this._inputManager=null)}},"PointerInfoPre",0,class extends r{constructor(e,s,r,i){super(e,s),this.ray=null,this.originalPickingInfo=null,this.skipOnPointerObservable=!1,this.localPosition=new t.Vector2(r,i)}}])},71092,e=>{"use strict";class t{}t.KEYDOWN=1,t.KEYUP=2;class s{constructor(e,t){this.type=e,this.event=t}}e.s(["KeyboardEventTypes",0,t,"KeyboardInfo",0,s,"KeyboardInfoPre",0,class extends s{get skipOnPointerObservable(){return this.skipOnKeyboardObservable}set skipOnPointerObservable(e){this.skipOnKeyboardObservable=e}constructor(e,t){super(e,t),this.type=e,this.event=t,this.skipOnKeyboardObservable=!1}}])},4021,e=>{"use strict";var t,s;(s=t||(t={}))[s.PointerMove=0]="PointerMove",s[s.PointerDown=1]="PointerDown",s[s.PointerUp=2]="PointerUp";class r{}r.DOM_DELTA_PIXEL=0,r.DOM_DELTA_LINE=1,r.DOM_DELTA_PAGE=2,e.s(["EventConstants",0,r])},16771,e=>{"use strict";var t=e.i(44816);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()}}])},22287,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}}])},13099,e=>{"use strict";var t=e.i(69400),s=e.i(46533);class r extends s.Material{constructor(e,s,r=!0,i=!1){super(e,s,void 0,i),this._normalMatrix=new t.Matrix,this._storeEffectOnSubMeshes=r}getEffect(){return this._storeEffectOnSubMeshes?this._activeEffect:super.getEffect()}isReady(e,t){return!!e&&(!this._storeEffectOnSubMeshes||!e.subMeshes||0===e.subMeshes.length||this.isReadyForSubMesh(e,e.subMeshes[0],t))}_isReadyForSubMesh(e){let t=e.materialDefines;return!this.checkReadyOnEveryCall&&!!e.effect&&!!t&&t._renderId===this.getScene().getRenderId()}bindOnlyWorldMatrix(e){this._activeEffect.setMatrix("world",e)}bindOnlyNormalMatrix(e){this._activeEffect.setMatrix("normalMatrix",e)}bind(e,t){t&&this.bindForSubMesh(e,t,t.subMeshes[0])}_afterBind(e,t=null,s){super._afterBind(e,t,s),this.getScene()._cachedEffect=t,s?s._drawWrapper._forceRebindOnNextCall=!1:this._drawWrapper._forceRebindOnNextCall=!1}_mustRebind(e,t,s,r=1){return s._drawWrapper._forceRebindOnNextCall||e.isCachedMaterialInvalid(this,t,r)}dispose(e,t,s){this._activeEffect=void 0,super.dispose(e,t,s)}}e.s(["PushMaterial",0,r])},65493,e=>{"use strict";e.s(["EffectFallbacks",0,class{constructor(){this._defines={},this._currentRank=32,this._maxRank=-1,this._mesh=null}unBindMesh(){this._mesh=null}addFallback(e,t){this._defines[e]||(e<this._currentRank&&(this._currentRank=e),e>this._maxRank&&(this._maxRank=e),this._defines[e]=[]),this._defines[e].push(t)}addCPUSkinningFallback(e,t){this._mesh=t,e<this._currentRank&&(this._currentRank=e),e>this._maxRank&&(this._maxRank=e)}get hasMoreFallbacks(){return this._currentRank<=this._maxRank}reduce(e,t){if(this._mesh&&this._mesh.computeBonesUsingShaders&&this._mesh.numBoneInfluencers>0){this._mesh.computeBonesUsingShaders=!1,e=e.replace("#define NUM_BONE_INFLUENCERS "+this._mesh.numBoneInfluencers,"#define NUM_BONE_INFLUENCERS 0"),t._bonesComputationForcedToCPU=!0;let s=this._mesh.getScene();for(let e=0;e<s.meshes.length;e++){let r=s.meshes[e];if(!r.material){!this._mesh.material&&r.computeBonesUsingShaders&&r.numBoneInfluencers>0&&(r.computeBonesUsingShaders=!1);continue}if(r.computeBonesUsingShaders&&0!==r.numBoneInfluencers){if(r.material.getEffect()===t)r.computeBonesUsingShaders=!1;else if(r.subMeshes){for(let e of r.subMeshes)if(e.effect===t){r.computeBonesUsingShaders=!1;break}}}}}else{let t=this._defines[this._currentRank];if(t)for(let s=0;s<t.length;s++)e=e.replace("#define "+t[s],"");this._currentRank++}return e}}])},24904,e=>{"use strict";let t=new WeakMap;e.s(["BindVertexPullingUniforms",0,function(e,t){t.forEach((t,s)=>{let r=`vp_${s}_info`;e.setFloat4(r,t.offset,t.stride,t.type,+!!t.normalized)})},"PrepareVertexPullingUniforms",0,function(e){let s=e.getVertexBuffers();if(!s)return null;let r=t.get(e);if(r){let e=!1;for(let t in s)if(!r.has(t)){e=!0;break}if(!e)return r}else r=new Map,t.set(e,r);for(let e in s){let t=s[e];if(t){let s=t.byteOffset,i=t.byteStride,n=t.type,a=t.normalized;r.set(e,{offset:s,stride:i,type:n,normalized:a})}}return r}])}]);