@uptimizr/dashboard 0.3.0 → 0.3.2

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 (360) 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/0-29qf-q72olu.js +1 -0
  8. package/out/_next/static/chunks/0-tk5ptli--r0.js +1 -0
  9. package/out/_next/static/chunks/006nix8mv66z_.js +1 -0
  10. package/out/_next/static/chunks/01aeari2x_tlz.js +1 -0
  11. package/out/_next/static/chunks/0296l8lzd69ns.js +1 -0
  12. package/out/_next/static/chunks/02tc9r3sc7fgc.js +1 -0
  13. package/out/_next/static/chunks/{256k1jw1m--l7.js → 03st_hmor6qju.js} +1 -1
  14. package/out/_next/static/chunks/{2ue1wo4ryk87z.js → 04pk6n3z75dcy.js} +1 -1
  15. package/out/_next/static/chunks/05l3dluxivcor.js +1 -0
  16. package/out/_next/static/chunks/06ljadw2-i91-.js +1 -0
  17. package/out/_next/static/chunks/06m_64ysu9kn0.js +1 -0
  18. package/out/_next/static/chunks/{2ycvtdd68gub7.js → 08bm3ye5govev.js} +1 -1
  19. package/out/_next/static/chunks/{32ahba5ezp467.js → 08rk1dp1wb-gm.js} +38 -38
  20. package/out/_next/static/chunks/091ll-lp6spu3.js +1 -0
  21. package/out/_next/static/chunks/09p5fltt7o3to.js +1 -0
  22. package/out/_next/static/chunks/{3mbnfpufs2-7e.js → 0_tqu60oxaj7q.js} +1 -1
  23. package/out/_next/static/chunks/{3riekaxl3uxfb.js → 0_ux41xcoea3u.js} +40 -40
  24. package/out/_next/static/chunks/0b7-mrrg7ryj2.js +1 -0
  25. package/out/_next/static/chunks/{29tfeb6amdkjb.js → 0c2k-gvwph4qs.js} +1 -1
  26. package/out/_next/static/chunks/0e7xuupmrw4-e.js +1 -0
  27. package/out/_next/static/chunks/0f_nv15a8q415.js +1 -0
  28. package/out/_next/static/chunks/0fxfsshoxnnh6.js +4 -0
  29. package/out/_next/static/chunks/0g6u34xkzrpjn.js +1 -0
  30. package/out/_next/static/chunks/0g7p8zp2kxve5.js +1 -0
  31. package/out/_next/static/chunks/0gblbgw7w7r9w.js +1 -0
  32. package/out/_next/static/chunks/0gwa154w_0wuh.js +1 -0
  33. package/out/_next/static/chunks/0h-ohf4gntwtj.js +1 -0
  34. package/out/_next/static/chunks/0h1o0cr3327tt.js +1 -0
  35. package/out/_next/static/chunks/0i9oqg-xbq-a9.js +1 -0
  36. package/out/_next/static/chunks/0ioyy42h35hnd.js +1 -0
  37. package/out/_next/static/chunks/{242xhzxxetctz.js → 0jf3n5n5yrr4o.js} +1 -1
  38. package/out/_next/static/chunks/{3idaz_s77e-j_.js → 0jxklh_ayjd4b.js} +12 -12
  39. package/out/_next/static/chunks/{07eeopuufsqp-.js → 0k79ryqehst0b.js} +11 -11
  40. package/out/_next/static/chunks/{3be6s4_kn9q-o.js → 0kcbdjbdxu_wa.js} +1 -1
  41. package/out/_next/static/chunks/0kr-bd6fuqc2s.js +1 -0
  42. package/out/_next/static/chunks/0l3wwyl93sqh9.js +1 -0
  43. package/out/_next/static/chunks/{3l1dr_qm_x5kp.js → 0m0n7kjzscx0y.js} +1 -1
  44. package/out/_next/static/chunks/0m3yjobjg36ce.js +1 -0
  45. package/out/_next/static/chunks/{1a9l89j7e6mqu.js → 0mk8tangq9equ.js} +1 -1
  46. package/out/_next/static/chunks/0mqi0xn_c010j.js +1 -0
  47. package/out/_next/static/chunks/0msckddycfy76.js +1 -0
  48. package/out/_next/static/chunks/0ngai1_zxwsk8.js +1 -0
  49. package/out/_next/static/chunks/0ngiuj5k-or6g.js +1 -0
  50. package/out/_next/static/chunks/0nx_t8iq-324h.js +1 -0
  51. package/out/_next/static/chunks/0oap0o8a8a_cl.js +1 -0
  52. package/out/_next/static/chunks/{3tm-pqpmq_ppw.js → 0ostjlqtwkhqr.js} +1 -1
  53. package/out/_next/static/chunks/{1uu-rt_8p1edp.js → 0ptp4ne7j6yg6.js} +11 -11
  54. package/out/_next/static/chunks/0rruvj1cyflrh.js +1 -0
  55. package/out/_next/static/chunks/{0o_mp98xzqfyf.js → 0tl8j9f8lt0yf.js} +1 -1
  56. package/out/_next/static/chunks/{0sqys6o2pbe1q.js → 0ufakw529sr9d.js} +38 -38
  57. package/out/_next/static/chunks/{3ne77mjdz2y7o.js → 0vddljjnmozzx.js} +1 -1
  58. package/out/_next/static/chunks/{0dm32-jq30tg8.js → 0w0sx062qmcsh.js} +1 -1
  59. package/out/_next/static/chunks/{0rys92_73hdb0.js → 0x4-zyy8pzmlq.js} +1 -1
  60. package/out/_next/static/chunks/0x6i6e6863tir.js +1 -0
  61. package/out/_next/static/chunks/{3k9d4ylc3li2t.js → 0zcdc17ie6lmh.js} +10 -10
  62. package/out/_next/static/chunks/{44nxswtahaq4w.js → 0zo4x1j8ug-kb.js} +5 -5
  63. package/out/_next/static/chunks/{0jmn7u31w95ly.js → 0zwkmsojeuekb.js} +2 -2
  64. package/out/_next/static/chunks/{3m6nmp2dca6un.js → 1--aypw9o8yng.js} +37 -37
  65. package/out/_next/static/chunks/1--kelnig7pxx.js +1 -0
  66. package/out/_next/static/chunks/1-ud6hztxiazp.js +1 -0
  67. package/out/_next/static/chunks/10v4rskkrjgd_.js +1 -0
  68. package/out/_next/static/chunks/117ys3lltfmcu.js +1 -0
  69. package/out/_next/static/chunks/14klj_i6-l-10.js +1 -0
  70. package/out/_next/static/chunks/159u-hx80yfaw.js +1 -0
  71. package/out/_next/static/chunks/{3gimb3z_mteou.js → 168r9r65o9jnc.js} +1 -1
  72. package/out/_next/static/chunks/{0w8_1yjvol1f0.js → 16d4a4iopj2if.js} +5 -5
  73. package/out/_next/static/chunks/{2z_jn9ud28fk7.js → 17d1isrw8gtnb.js} +1 -1
  74. package/out/_next/static/chunks/17dabmbnkkplu.js +1 -0
  75. package/out/_next/static/chunks/17dmbt396_tyq.js +1 -0
  76. package/out/_next/static/chunks/17ev44x54_jrd.js +1 -0
  77. package/out/_next/static/chunks/17svumd4o0qnc.js +1 -0
  78. package/out/_next/static/chunks/17v12p4sfraa0.js +1 -0
  79. package/out/_next/static/chunks/18avgwx9nlxp9.js +1 -0
  80. package/out/_next/static/chunks/{0tw4dyl-cp-hd.js → 18k-0jn63_5ie.js} +1 -1
  81. package/out/_next/static/chunks/18r387bj9iv0j.js +1 -0
  82. package/out/_next/static/chunks/18ss4ls60s31e.js +1 -0
  83. package/out/_next/static/chunks/1a7cup181rjod.js +1 -0
  84. package/out/_next/static/chunks/1ajmblsp0wj0_.js +1 -0
  85. package/out/_next/static/chunks/{1dsy2ngmfflis.js → 1b2tkk7e_2o0k.js} +2 -2
  86. package/out/_next/static/chunks/{1ltux4lwz7muf.js → 1bv97vf67p_ri.js} +33 -33
  87. package/out/_next/static/chunks/1e1zozntzsx42.js +1 -0
  88. package/out/_next/static/chunks/1ek5rtpo6rxev.js +1 -0
  89. package/out/_next/static/chunks/1evp209qbr4cr.js +5 -0
  90. package/out/_next/static/chunks/1f1vq3goue1w4.js +1 -0
  91. package/out/_next/static/chunks/{296w2ke-v5tbm.js → 1f92k-xa0pl-3.js} +1 -1
  92. package/out/_next/static/chunks/1fa265388524p.js +1 -0
  93. package/out/_next/static/chunks/1fruncg3k-3pu.js +3 -0
  94. package/out/_next/static/chunks/{1_qzlkuxukhpq.js → 1fvlbwp6r93wo.js} +22 -22
  95. package/out/_next/static/chunks/1g3z43o3h-024.js +31 -0
  96. package/out/_next/static/chunks/1g_27texazqcj.js +1 -0
  97. package/out/_next/static/chunks/1iaxzjly2pap1.js +1 -0
  98. package/out/_next/static/chunks/{0c83pe1mpx456.js → 1j--a56ji33_x.js} +1 -1
  99. package/out/_next/static/chunks/{112hws17nz665.js → 1kl5xxohpr6-4.js} +1 -1
  100. package/out/_next/static/chunks/1kmsg9ef5djl3.js +1 -0
  101. package/out/_next/static/chunks/1kq86iv41cet4.js +1 -0
  102. package/out/_next/static/chunks/1l12hkz1g7uhf.js +1 -0
  103. package/out/_next/static/chunks/{3figbil1t4ssj.js → 1ll0ta8a2qx1p.js} +16 -16
  104. package/out/_next/static/chunks/{1ynju1jqfrcv0.js → 1oara6fkfvgs3.js} +1 -1
  105. package/out/_next/static/chunks/1par9m038tiov.js +1 -0
  106. package/out/_next/static/chunks/1rcfy_gzean3n.js +1 -0
  107. package/out/_next/static/chunks/{35h5n42wxwgzk.js → 1rne-b-ktit5c.js} +2 -2
  108. package/out/_next/static/chunks/1t60cososq7b0.js +1 -0
  109. package/out/_next/static/chunks/1tdg_eolxlcdl.js +1 -0
  110. package/out/_next/static/chunks/1vkww9l6lgqag.js +1 -0
  111. package/out/_next/static/chunks/1vpcaaf-0dn7q.js +1 -0
  112. package/out/_next/static/chunks/1vzmzrjhlm1q5.js +1 -0
  113. package/out/_next/static/chunks/1w9xu1qa9-wmv.js +1 -0
  114. package/out/_next/static/chunks/1wyr4at61q29n.js +1 -0
  115. package/out/_next/static/chunks/{3_mu-4rdjajna.js → 1y12bjsbq18_t.js} +34 -34
  116. package/out/_next/static/chunks/1y20bv6vl4ylk.js +1 -0
  117. package/out/_next/static/chunks/{0tnlbw78tgaxp.js → 1zcrrq1fx8g2y.js} +2 -2
  118. package/out/_next/static/chunks/224_scesvd739.js +1 -0
  119. package/out/_next/static/chunks/229mkx-mtfcgf.js +1 -0
  120. package/out/_next/static/chunks/{3yfrsm8lfi6ls.js → 22qzld31fbhbv.js} +1 -1
  121. package/out/_next/static/chunks/245h82k-g1nxr.js +1 -0
  122. package/out/_next/static/chunks/24cqjhy669845.js +1 -0
  123. package/out/_next/static/chunks/25ctnyh7njp-d.js +4 -0
  124. package/out/_next/static/chunks/2716si10ouwu-.js +1 -0
  125. package/out/_next/static/chunks/286ggpetqnwyo.js +3 -0
  126. package/out/_next/static/chunks/28f1onw3nywbz.js +1 -0
  127. package/out/_next/static/chunks/28ycc-1519hl2.js +1 -0
  128. package/out/_next/static/chunks/{17xd8hnazzr0g.js → 29v8falcmjvev.js} +34 -33
  129. package/out/_next/static/chunks/{0o6ayai0s01js.js → 2_7dp91937mqi.js} +1 -1
  130. package/out/_next/static/chunks/2_hgfg-cjqw1-.js +1 -0
  131. package/out/_next/static/chunks/2ab-99frxpah-.js +1 -0
  132. package/out/_next/static/chunks/2apt1vh-7rl2l.js +1 -0
  133. package/out/_next/static/chunks/2bn9u9r0rfhvc.js +1 -0
  134. package/out/_next/static/chunks/{45bwefvdpztfs.js → 2btqzk0tj0gz6.js} +1 -1
  135. package/out/_next/static/chunks/2cvvxifoedn6j.js +1 -0
  136. package/out/_next/static/chunks/2dhv35o59yzao.js +1 -0
  137. package/out/_next/static/chunks/{17q0c2h5ui10r.js → 2dolerz81xb52.js} +1 -1
  138. package/out/_next/static/chunks/{2xwy0-qfho1iz.js → 2dqg85hsevk3c.js} +2 -2
  139. package/out/_next/static/chunks/{41wt50z9tx9cx.js → 2enlv4yy0t-9j.js} +12 -12
  140. package/out/_next/static/chunks/2ey30qeaob985.js +1 -0
  141. package/out/_next/static/chunks/2f0r-df7tb3pu.js +1 -0
  142. package/out/_next/static/chunks/2gh4z57fem0_v.js +1 -0
  143. package/out/_next/static/chunks/2gtebfttq1v0o.js +1 -0
  144. package/out/_next/static/chunks/{1ua15kzid0_8p.js → 2h051-1hu4co_.js} +9 -9
  145. package/out/_next/static/chunks/2h1uw3cluvmmo.js +1 -0
  146. package/out/_next/static/chunks/2ib62lnqqaf4p.js +1 -0
  147. package/out/_next/static/chunks/2j-sax2xfdv7l.js +1 -0
  148. package/out/_next/static/chunks/{3z84au-mitjjw.js → 2k4s5rt7-l8jr.js} +1 -1
  149. package/out/_next/static/chunks/2kje_jvmwsvwo.js +1 -0
  150. package/out/_next/static/chunks/{2cbmf9m7lqv6k.js → 2kn_dqzbyabtn.js} +1 -1
  151. package/out/_next/static/chunks/2ktxjmx03u9l3.js +1 -0
  152. package/out/_next/static/chunks/2kw33jl_i9o5j.css +3 -0
  153. package/out/_next/static/chunks/2l_oqx9idxcs8.js +1 -0
  154. package/out/_next/static/chunks/{42k2-4_2hrg6u.js → 2mleh3pbge181.js} +1 -1
  155. package/out/_next/static/chunks/{31u5lbu1vxznh.js → 2npk7tr63h7rl.js} +1 -1
  156. package/out/_next/static/chunks/2op88btas-hl8.js +1 -0
  157. package/out/_next/static/chunks/{1gs-5722l4u59.js → 2p8dbh81chhon.js} +1 -1
  158. package/out/_next/static/chunks/{2yph6f7khgqii.js → 2reukv9c7cq_9.js} +1 -1
  159. package/out/_next/static/chunks/{14ggsmqwej_tt.js → 2rjc8yn50ducj.js} +34 -34
  160. package/out/_next/static/chunks/2s0dwzg7kq36n.js +1 -0
  161. package/out/_next/static/chunks/2vaoftqgc44cg.js +1 -0
  162. package/out/_next/static/chunks/{3_gku1pwluoo0.js → 2vmybybb3dvia.js} +1 -1
  163. package/out/_next/static/chunks/2w7yf7ouyrlkb.js +1 -0
  164. package/out/_next/static/chunks/{3218lp8l0a5g_.js → 2y75diyxqlhzl.js} +1 -1
  165. package/out/_next/static/chunks/{0fh-9h9ylxskr.js → 2yr9wt421xdjr.js} +17 -17
  166. package/out/_next/static/chunks/{0otsec99kdkt7.js → 2yzui3v-besdu.js} +4 -4
  167. package/out/_next/static/chunks/{3wi9gzq2mtr_q.js → 2z9ot-w1x60fv.js} +1 -1
  168. package/out/_next/static/chunks/2zljunurdji0q.js +1 -0
  169. package/out/_next/static/chunks/30363ptka3vzy.js +1 -0
  170. package/out/_next/static/chunks/{38x3c1ra5slhe.js → 3043pprgv9ors.js} +23 -23
  171. package/out/_next/static/chunks/340pg0qkv5tqq.js +1 -0
  172. package/out/_next/static/chunks/{37epa8fz59vba.js → 348hdbpkkcq_2.js} +22 -21
  173. package/out/_next/static/chunks/34gp3hvr3j6um.js +1 -0
  174. package/out/_next/static/chunks/38ea9kqlbxt86.js +1 -0
  175. package/out/_next/static/chunks/38g9jpxjoxn2x.js +1 -0
  176. package/out/_next/static/chunks/390fogn9oz13i.js +1 -0
  177. package/out/_next/static/chunks/{3w9go565cjhq3.js → 39lxb7c--3_2u.js} +30 -30
  178. package/out/_next/static/chunks/39ojyykom0z2r.js +1 -0
  179. package/out/_next/static/chunks/{2bjlls8-qe05r.js → 3_bzxvqtk1t53.js} +12 -12
  180. package/out/_next/static/chunks/3ajhvedcs_lzb.js +1 -0
  181. package/out/_next/static/chunks/3bsvp8qhjqdu0.js +1 -0
  182. package/out/_next/static/chunks/{023axeoslq39i.js → 3d0ejsnhbzi-j.js} +1 -1
  183. package/out/_next/static/chunks/3d5yb9ybkz7hx.js +1 -0
  184. package/out/_next/static/chunks/{0echnagbkyx79.js → 3efuvh_35yhes.js} +39 -39
  185. package/out/_next/static/chunks/3fx3sriw1w3sa.js +1 -0
  186. package/out/_next/static/chunks/{2qq3uzsbiicw3.js → 3fz7tc-4j13uv.js} +21 -21
  187. package/out/_next/static/chunks/3g4e2txsrb2p2.js +1 -0
  188. package/out/_next/static/chunks/{1m_buecgcq67j.js → 3g5ae-38cepwm.js} +199 -199
  189. package/out/_next/static/chunks/3g_h_00xs9u59.js +1 -0
  190. package/out/_next/static/chunks/3gi0f1kg72xsf.js +1 -0
  191. package/out/_next/static/chunks/{38fhw7fatsyvd.js → 3he9bxsc67ivq.js} +1 -1
  192. package/out/_next/static/chunks/3hr-mlwi78nov.js +1 -0
  193. package/out/_next/static/chunks/3jha6wlqw8459.js +1 -0
  194. package/out/_next/static/chunks/3kr1polwvt6o_.js +1 -0
  195. package/out/_next/static/chunks/{0j__xaq_8_di1.js → 3mwoauxszd3mn.js} +1 -1
  196. package/out/_next/static/chunks/3ovd8o_usay7j.js +1 -0
  197. package/out/_next/static/chunks/3pdpaqzwhhijn.js +1 -0
  198. package/out/_next/static/chunks/3pyggl13glbdc.js +1 -0
  199. package/out/_next/static/chunks/3rl45k759wfi1.js +1 -0
  200. package/out/_next/static/chunks/{0flc7nppbmsl1.js → 3sbm1ak54_2ep.js} +1 -1
  201. package/out/_next/static/chunks/3sg4zff4-h3t1.js +1 -0
  202. package/out/_next/static/chunks/3urd7r018nel4.js +1 -0
  203. package/out/_next/static/chunks/3v0td-ziuai2i.js +1 -0
  204. package/out/_next/static/chunks/3vaho-xrtuchd.js +2 -0
  205. package/out/_next/static/chunks/3vxkkhs0vi_xa.js +1 -0
  206. package/out/_next/static/chunks/{1g7emwu85bifo.js → 3w1a2o8nevap8.js} +18 -18
  207. package/out/_next/static/chunks/3wqs57qehored.js +1 -0
  208. package/out/_next/static/chunks/3x6wpv_z5m6rz.js +1 -0
  209. package/out/_next/static/chunks/{1qg_etglhvp9h.js → 3y9c26fv1poq_.js} +199 -199
  210. package/out/_next/static/chunks/{0ql-s-tsmel_u.js → 404f_93w2e8ty.js} +1 -1
  211. package/out/_next/static/chunks/40acif2eh_unv.js +1 -0
  212. package/out/_next/static/chunks/{1hatz-jlztrn0.js → 4227p7752rnny.js} +1 -1
  213. package/out/_next/static/chunks/42oyfkhdvb-u3.js +1 -0
  214. package/out/_next/static/chunks/44gsjajjdhf51.js +1 -0
  215. package/out/_next/static/chunks/{turbopack-19105pdhzxp1x.js → turbopack-16ab30_1p4vhq.js} +1 -1
  216. package/out/_not-found/__next._full.txt +9 -9
  217. package/out/_not-found/__next._head.txt +4 -4
  218. package/out/_not-found/__next._index.txt +4 -4
  219. package/out/_not-found/__next._not-found.__PAGE__.txt +2 -2
  220. package/out/_not-found/__next._not-found.txt +3 -3
  221. package/out/_not-found/__next._tree.txt +2 -2
  222. package/out/_not-found.html +1 -1
  223. package/out/_not-found.txt +9 -9
  224. package/out/index.html +1 -1
  225. package/out/index.txt +11 -11
  226. package/package.json +8 -8
  227. package/out/_next/static/chunks/002cjeoit6-up.js +0 -1
  228. package/out/_next/static/chunks/02n1uiltexy3w.js +0 -1
  229. package/out/_next/static/chunks/03ab2khhe8-x5.js +0 -1
  230. package/out/_next/static/chunks/04_yytpc2paxy.js +0 -1
  231. package/out/_next/static/chunks/06qot1qvlsqaz.js +0 -1
  232. package/out/_next/static/chunks/08a5xek662n8n.js +0 -1
  233. package/out/_next/static/chunks/08wuc9--s8zn_.js +0 -1
  234. package/out/_next/static/chunks/0927l-ygd5c8d.js +0 -1
  235. package/out/_next/static/chunks/09510356f0lad.js +0 -1
  236. package/out/_next/static/chunks/0_eu72k69lxj7.js +0 -1
  237. package/out/_next/static/chunks/0beajlqy8p8b5.js +0 -1
  238. package/out/_next/static/chunks/0dn0yx0rn6mpf.js +0 -1
  239. package/out/_next/static/chunks/0eh1ml86u8dh7.js +0 -1
  240. package/out/_next/static/chunks/0fzmc1up21g1i.js +0 -1
  241. package/out/_next/static/chunks/0g_v2zswo4l6f.js +0 -1
  242. package/out/_next/static/chunks/0grlb9lo8e502.js +0 -1
  243. package/out/_next/static/chunks/0h22pg-0xrxnm.js +0 -1
  244. package/out/_next/static/chunks/0j6p1pmc14t96.js +0 -1
  245. package/out/_next/static/chunks/0j_6dx-sttgsy.js +0 -1
  246. package/out/_next/static/chunks/0kfd-cvj5fvtz.js +0 -1
  247. package/out/_next/static/chunks/0r47gs_e93cka.js +0 -1
  248. package/out/_next/static/chunks/0titqrn1qmcsv.js +0 -1
  249. package/out/_next/static/chunks/0tl_moiyi2txt.js +0 -1
  250. package/out/_next/static/chunks/0v82oqyoy9zol.js +0 -1
  251. package/out/_next/static/chunks/0vbce-8omgurc.js +0 -1
  252. package/out/_next/static/chunks/0vfsg5byzep_0.js +0 -1
  253. package/out/_next/static/chunks/0xh144a5fz58h.js +0 -1
  254. package/out/_next/static/chunks/0xjltg_pph0c8.js +0 -1
  255. package/out/_next/static/chunks/0yeqgh0dnas8d.js +0 -1
  256. package/out/_next/static/chunks/101-7e_7up7rk.js +0 -1
  257. package/out/_next/static/chunks/128e51hj_04r0.js +0 -1
  258. package/out/_next/static/chunks/12kv810lohbsx.js +0 -5
  259. package/out/_next/static/chunks/14bws-suyy5zu.js +0 -1
  260. package/out/_next/static/chunks/15s7425ffrec9.js +0 -3
  261. package/out/_next/static/chunks/17genz6pkmty_.js +0 -1
  262. package/out/_next/static/chunks/18dczy9ylt2s_.js +0 -1
  263. package/out/_next/static/chunks/18xs_kvsaolb0.js +0 -1
  264. package/out/_next/static/chunks/19016f8-ry0z6.js +0 -1
  265. package/out/_next/static/chunks/1_6oejyxj39li.js +0 -1
  266. package/out/_next/static/chunks/1_aon8nz9p1fr.js +0 -1
  267. package/out/_next/static/chunks/1akaj5rhgitn3.js +0 -1
  268. package/out/_next/static/chunks/1bvl1ws7b_3gn.js +0 -1
  269. package/out/_next/static/chunks/1cdbk6kxyr1c9.js +0 -1
  270. package/out/_next/static/chunks/1fbjkk55uu4_g.js +0 -1
  271. package/out/_next/static/chunks/1furcfsgrw_3g.js +0 -1
  272. package/out/_next/static/chunks/1g0-f1g3gn_rs.js +0 -1
  273. package/out/_next/static/chunks/1gt4kh0_xmigy.js +0 -1
  274. package/out/_next/static/chunks/1h8xzuuhhglu9.js +0 -1
  275. package/out/_next/static/chunks/1iioifo7i0t0_.js +0 -1
  276. package/out/_next/static/chunks/1iiz7jqgj20z0.js +0 -1
  277. package/out/_next/static/chunks/1kujmd5n0j9nk.js +0 -1
  278. package/out/_next/static/chunks/1n9sy0yt5d2vq.js +0 -1
  279. package/out/_next/static/chunks/1nj82er7msdto.js +0 -2
  280. package/out/_next/static/chunks/1p1gz6dseck--.js +0 -1
  281. package/out/_next/static/chunks/1p1xtsfwvpuqo.js +0 -1
  282. package/out/_next/static/chunks/1p8f6okk2ewbz.js +0 -1
  283. package/out/_next/static/chunks/1pdep2_c530sg.js +0 -1
  284. package/out/_next/static/chunks/1th_t5ujeqlkf.js +0 -1
  285. package/out/_next/static/chunks/1thr-mdzbu96v.js +0 -1
  286. package/out/_next/static/chunks/1tta1a064979p.js +0 -1
  287. package/out/_next/static/chunks/1u_riwm0nfww7.js +0 -1
  288. package/out/_next/static/chunks/1uu93wuxigx4k.js +0 -1
  289. package/out/_next/static/chunks/1vuq3dos1406d.css +0 -3
  290. package/out/_next/static/chunks/1zfojlgb15okk.js +0 -1
  291. package/out/_next/static/chunks/1zj8x5wbgnzz-.js +0 -1
  292. package/out/_next/static/chunks/1zl6t15gh34nn.js +0 -1
  293. package/out/_next/static/chunks/2-qo2o1_fmpy-.js +0 -3
  294. package/out/_next/static/chunks/223vrr_4sfhsj.js +0 -1
  295. package/out/_next/static/chunks/22cr2b04btguf.js +0 -1
  296. package/out/_next/static/chunks/24essz5mmvx-6.js +0 -1
  297. package/out/_next/static/chunks/259obyrpxcv6r.js +0 -1
  298. package/out/_next/static/chunks/26v9yqicofqba.js +0 -1
  299. package/out/_next/static/chunks/2712627rfsmwn.js +0 -1
  300. package/out/_next/static/chunks/290d93hmm_e8b.js +0 -1
  301. package/out/_next/static/chunks/2_2fk7iddrs43.js +0 -1
  302. package/out/_next/static/chunks/2ckd7f1wbfod-.js +0 -1
  303. package/out/_next/static/chunks/2d6hru4qo23tt.js +0 -1
  304. package/out/_next/static/chunks/2ejvntxtvf5o9.js +0 -1
  305. package/out/_next/static/chunks/2f7_3tzf7xhps.js +0 -1
  306. package/out/_next/static/chunks/2gxd_o1g89_bv.js +0 -1
  307. package/out/_next/static/chunks/2hd2txb4-m9k1.js +0 -1
  308. package/out/_next/static/chunks/2hpxou_cnp4f_.js +0 -1
  309. package/out/_next/static/chunks/2izioctrfc0s5.js +0 -1
  310. package/out/_next/static/chunks/2jhnk4h4n0udv.js +0 -1
  311. package/out/_next/static/chunks/2jpkhkk9zi8-f.js +0 -1
  312. package/out/_next/static/chunks/2kpet_l1kq2sx.js +0 -1
  313. package/out/_next/static/chunks/2nck5w4c7leb7.js +0 -1
  314. package/out/_next/static/chunks/2qqqpu0ahfdda.js +0 -1
  315. package/out/_next/static/chunks/2r3ct6se2qn8z.js +0 -1
  316. package/out/_next/static/chunks/2u-f7mmxvk8wj.js +0 -1
  317. package/out/_next/static/chunks/2uk-vwlxe9-xr.js +0 -1
  318. package/out/_next/static/chunks/2ur5-lxdvv1jm.js +0 -1
  319. package/out/_next/static/chunks/2veqsohwfhfqc.js +0 -1
  320. package/out/_next/static/chunks/2vqlv9wnewhu9.js +0 -1
  321. package/out/_next/static/chunks/2wzshintp5lf8.js +0 -1
  322. package/out/_next/static/chunks/2x-00glogc485.js +0 -1
  323. package/out/_next/static/chunks/2yfxy0f5fqs4o.js +0 -1
  324. package/out/_next/static/chunks/2z88mt3ixktu3.js +0 -1
  325. package/out/_next/static/chunks/3-eswqjobiqk1.js +0 -1
  326. package/out/_next/static/chunks/30-tbi7pys6fp.js +0 -4
  327. package/out/_next/static/chunks/30c-nsedy_ce0.js +0 -1
  328. package/out/_next/static/chunks/337hn35kts7ud.js +0 -1
  329. package/out/_next/static/chunks/33dgpebv-tf73.js +0 -1
  330. package/out/_next/static/chunks/36jkdhq6kb-cf.js +0 -1
  331. package/out/_next/static/chunks/3833xfnz0a-ub.js +0 -1
  332. package/out/_next/static/chunks/38awrh_qxn22k.js +0 -1
  333. package/out/_next/static/chunks/39idqlqlcp5b9.js +0 -1
  334. package/out/_next/static/chunks/3coacc4-g-g5c.js +0 -1
  335. package/out/_next/static/chunks/3e00fzdfkclzq.js +0 -1
  336. package/out/_next/static/chunks/3e8fmlq0k5wkg.js +0 -1
  337. package/out/_next/static/chunks/3e9tzyrt4_98z.js +0 -1
  338. package/out/_next/static/chunks/3edelqkq92pil.js +0 -1
  339. package/out/_next/static/chunks/3j-4wuhs5weba.js +0 -1
  340. package/out/_next/static/chunks/3jjfnwvybayy7.js +0 -1
  341. package/out/_next/static/chunks/3jwm5dfk_78gc.js +0 -1
  342. package/out/_next/static/chunks/3l3_0ack3gy4k.js +0 -1
  343. package/out/_next/static/chunks/3lwhs5ja7tun3.js +0 -1
  344. package/out/_next/static/chunks/3mcd08gmt038z.js +0 -1
  345. package/out/_next/static/chunks/3mt5th7b1i_u9.js +0 -1
  346. package/out/_next/static/chunks/3puhrqtujktyv.js +0 -1
  347. package/out/_next/static/chunks/3rdifucupcgkg.js +0 -1
  348. package/out/_next/static/chunks/3sdoskq_buttj.js +0 -1
  349. package/out/_next/static/chunks/3sjq_xoi4rbyg.js +0 -31
  350. package/out/_next/static/chunks/3tg-ma9tv9xu4.js +0 -1
  351. package/out/_next/static/chunks/3xagd_2_9zft2.js +0 -1
  352. package/out/_next/static/chunks/3xsq_anpad-fb.js +0 -1
  353. package/out/_next/static/chunks/3ycv2qq7vpbua.js +0 -1
  354. package/out/_next/static/chunks/4030dhur2h70-.js +0 -1
  355. package/out/_next/static/chunks/40ffffml4h_3r.js +0 -4
  356. package/out/_next/static/chunks/431slrqh0wa0g.js +0 -1
  357. package/out/_next/static/chunks/43s_lbd1i2krj.js +0 -1
  358. /package/out/_next/static/{1NTbwHeIsn3AW-SeH9aP0 → 2AsIePMYsPfJoAl46w-g4}/_buildManifest.js +0 -0
  359. /package/out/_next/static/{1NTbwHeIsn3AW-SeH9aP0 → 2AsIePMYsPfJoAl46w-g4}/_clientMiddlewareManifest.js +0 -0
  360. /package/out/_next/static/{1NTbwHeIsn3AW-SeH9aP0 → 2AsIePMYsPfJoAl46w-g4}/_ssgManifest.js +0 -0
@@ -1,4 +1,4 @@
1
- (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,65296,e=>{"use strict";var i=e.i(12423);let t="helperFunctions",r=`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;
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,1609,e=>{"use strict";var i=e.i(1719);let t="helperFunctions",r=`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;
2
2
  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;
3
3
  #define saturate(x) clamp(x,0.0,1.0)
4
4
  #define absEps(x) abs(x)+Epsilon
@@ -116,25 +116,25 @@ float uint2float(uint i) {return uintBitsToFloat(0x3F800000u | (i>>9u))-1.0;}
116
116
  vec2 plasticSequence(const uint rstate) {return vec2(uint2float(rstate*3242174889u),
117
117
  uint2float(rstate*2447445414u));}
118
118
  #endif
119
- `;i.ShaderStore.IncludesShadersStore[t]||(i.ShaderStore.IncludesShadersStore[t]=r),e.s(["helperFunctions",0,{name:t,shader:r}])},85668,e=>{"use strict";var i=e.i(12423);let t="sceneUboDeclaration",r=`layout(std140,column_major) uniform;uniform Scene {mat4 viewProjection;
119
+ `;i.ShaderStore.IncludesShadersStore[t]||(i.ShaderStore.IncludesShadersStore[t]=r),e.s(["helperFunctions",0,{name:t,shader:r}])},12209,e=>{"use strict";var i=e.i(1719);let t="sceneUboDeclaration",r=`layout(std140,column_major) uniform;uniform Scene {mat4 viewProjection;
120
120
  #ifdef MULTIVIEW
121
121
  mat4 viewProjectionR;
122
122
  #endif
123
123
  mat4 view;mat4 projection;vec4 vEyePosition;mat4 inverseProjection;};
124
- `;i.ShaderStore.IncludesShadersStore[t]||(i.ShaderStore.IncludesShadersStore[t]=r),e.s(["sceneUboDeclaration",0,{name:t,shader:r}])},6232,92692,97226,e=>{"use strict";var i=e.i(12423);let t="meshUboDeclaration",r=`#ifdef WEBGL2
124
+ `;i.ShaderStore.IncludesShadersStore[t]||(i.ShaderStore.IncludesShadersStore[t]=r),e.s(["sceneUboDeclaration",0,{name:t,shader:r}])},81108,57972,30964,e=>{"use strict";var i=e.i(1719);let t="meshUboDeclaration",r=`#ifdef WEBGL2
125
125
  uniform mat4 world;uniform float visibility;
126
126
  #else
127
127
  layout(std140,column_major) uniform;uniform Mesh
128
128
  {mat4 world;float visibility;};
129
129
  #endif
130
130
  #define WORLD_UBO
131
- `;i.ShaderStore.IncludesShadersStore[t]||(i.ShaderStore.IncludesShadersStore[t]=r),e.s(["meshUboDeclaration",0,{name:t,shader:r}],6232);let a="mainUVVaryingDeclaration",n=`#ifdef MAINUV{X}
131
+ `;i.ShaderStore.IncludesShadersStore[t]||(i.ShaderStore.IncludesShadersStore[t]=r),e.s(["meshUboDeclaration",0,{name:t,shader:r}],81108);let a="mainUVVaryingDeclaration",n=`#ifdef MAINUV{X}
132
132
  varying vec2 vMainUV{X};
133
133
  #endif
134
- `;i.ShaderStore.IncludesShadersStore[a]||(i.ShaderStore.IncludesShadersStore[a]=n),e.s(["mainUVVaryingDeclaration",0,{name:a,shader:n}],92692);let o="logDepthDeclaration",s=`#ifdef LOGARITHMICDEPTH
134
+ `;i.ShaderStore.IncludesShadersStore[a]||(i.ShaderStore.IncludesShadersStore[a]=n),e.s(["mainUVVaryingDeclaration",0,{name:a,shader:n}],57972);let o="logDepthDeclaration",s=`#ifdef LOGARITHMICDEPTH
135
135
  uniform float logarithmicDepthConstant;varying float vFragmentDepth;
136
136
  #endif
137
- `;i.ShaderStore.IncludesShadersStore[o]||(i.ShaderStore.IncludesShadersStore[o]=s),e.s(["logDepthDeclaration",0,{name:o,shader:s}],97226)},50438,e=>{"use strict";var i=e.i(12423);let t="harmonicsFunctions",r=`#ifdef USESPHERICALFROMREFLECTIONMAP
137
+ `;i.ShaderStore.IncludesShadersStore[o]||(i.ShaderStore.IncludesShadersStore[o]=s),e.s(["logDepthDeclaration",0,{name:o,shader:s}],30964)},41980,e=>{"use strict";var i=e.i(1719);let t="harmonicsFunctions",r=`#ifdef USESPHERICALFROMREFLECTIONMAP
138
138
  #ifdef SPHERICAL_HARMONICS
139
139
  vec3 computeEnvironmentIrradiance(vec3 normal) {return vSphericalL00
140
140
  + vSphericalL1_1*(normal.y)
@@ -149,7 +149,7 @@ vec3 computeEnvironmentIrradiance(vec3 normal) {return vSphericalL00
149
149
  vec3 computeEnvironmentIrradiance(vec3 normal) {float Nx=normal.x;float Ny=normal.y;float Nz=normal.z;vec3 C1=vSphericalZZ.rgb;vec3 Cx=vSphericalX.rgb;vec3 Cy=vSphericalY.rgb;vec3 Cz=vSphericalZ.rgb;vec3 Cxx_zz=vSphericalXX_ZZ.rgb;vec3 Cyy_zz=vSphericalYY_ZZ.rgb;vec3 Cxy=vSphericalXY.rgb;vec3 Cyz=vSphericalYZ.rgb;vec3 Czx=vSphericalZX.rgb;vec3 a1=Cyy_zz*Ny+Cy;vec3 a2=Cyz*Nz+a1;vec3 b1=Czx*Nz+Cx;vec3 b2=Cxy*Ny+b1;vec3 b3=Cxx_zz*Nx+b2;vec3 t1=Cz *Nz+C1;vec3 t2=a2 *Ny+t1;vec3 t3=b3 *Nx+t2;return t3;}
150
150
  #endif
151
151
  #endif
152
- `;i.ShaderStore.IncludesShadersStore[t]||(i.ShaderStore.IncludesShadersStore[t]=r),e.s(["harmonicsFunctions",0,{name:t,shader:r}])},60990,e=>{"use strict";var i=e.i(12423);let t="pbrBRDFFunctions",r=`#define FRESNEL_MAXIMUM_ON_ROUGH 0.25
152
+ `;i.ShaderStore.IncludesShadersStore[t]||(i.ShaderStore.IncludesShadersStore[t]=r),e.s(["harmonicsFunctions",0,{name:t,shader:r}])},72979,e=>{"use strict";var i=e.i(1719);let t="pbrBRDFFunctions",r=`#define FRESNEL_MAXIMUM_ON_ROUGH 0.25
153
153
  #define BRDF_DIFFUSE_MODEL_EON 0
154
154
  #define BRDF_DIFFUSE_MODEL_BURLEY 1
155
155
  #define BRDF_DIFFUSE_MODEL_LAMBERT 2
@@ -322,7 +322,7 @@ vec3 transmittanceBRDF_Burley(const vec3 tintColor,const vec3 diffusionDistance,
322
322
  float computeWrappedDiffuseNdotL(float NdotL,float w) {float t=1.0+w;float invt2=1.0/square(t);return saturate((NdotL+w)*invt2);}
323
323
  #endif
324
324
  #endif
325
- `;i.ShaderStore.IncludesShadersStore[t]||(i.ShaderStore.IncludesShadersStore[t]=r),e.s(["pbrBRDFFunctions",0,{name:t,shader:r}])},39067,15420,e=>{"use strict";var i=e.i(12423);let t="bonesDeclaration",r=`#if NUM_BONE_INFLUENCERS>0
325
+ `;i.ShaderStore.IncludesShadersStore[t]||(i.ShaderStore.IncludesShadersStore[t]=r),e.s(["pbrBRDFFunctions",0,{name:t,shader:r}])},88774,78263,e=>{"use strict";var i=e.i(1719);let t="bonesDeclaration",r=`#if NUM_BONE_INFLUENCERS>0
326
326
  attribute vec4 matricesIndices;attribute vec4 matricesWeights;
327
327
  #if NUM_BONE_INFLUENCERS>4
328
328
  attribute vec4 matricesIndicesExtra;attribute vec4 matricesWeightsExtra;
@@ -351,7 +351,7 @@ return mat4(m0,m1,m2,m3);
351
351
  #endif
352
352
  #endif
353
353
  #endif
354
- `;i.ShaderStore.IncludesShadersStore[t]||(i.ShaderStore.IncludesShadersStore[t]=r),e.s(["bonesDeclaration",0,{name:t,shader:r}],39067);let a="bakedVertexAnimationDeclaration",n=`#ifdef BAKED_VERTEX_ANIMATION_TEXTURE
354
+ `;i.ShaderStore.IncludesShadersStore[t]||(i.ShaderStore.IncludesShadersStore[t]=r),e.s(["bonesDeclaration",0,{name:t,shader:r}],88774);let a="bakedVertexAnimationDeclaration",n=`#ifdef BAKED_VERTEX_ANIMATION_TEXTURE
355
355
  uniform float bakedVertexAnimationTime;
356
356
  #if !defined(WEBGL2) && !defined(WEBGPU)
357
357
  uniform vec2 bakedVertexAnimationTextureSizeInverted;
@@ -370,7 +370,7 @@ float offset=index*4.0;float frameUV=(frame+0.5)*bakedVertexAnimationTextureSize
370
370
  #endif
371
371
  }
372
372
  #endif
373
- `;i.ShaderStore.IncludesShadersStore[a]||(i.ShaderStore.IncludesShadersStore[a]=n),e.s(["bakedVertexAnimationDeclaration",0,{name:a,shader:n}],15420)},85863,e=>{"use strict";var i=e.i(12423);let t="instancesDeclaration",r=`#ifdef INSTANCES
373
+ `;i.ShaderStore.IncludesShadersStore[a]||(i.ShaderStore.IncludesShadersStore[a]=n),e.s(["bakedVertexAnimationDeclaration",0,{name:a,shader:n}],78263)},82059,e=>{"use strict";var i=e.i(1719);let t="instancesDeclaration",r=`#ifdef INSTANCES
374
374
  attribute vec4 world0;attribute vec4 world1;attribute vec4 world2;attribute vec4 world3;
375
375
  #ifdef INSTANCESCOLOR
376
376
  attribute vec4 instanceColor;
@@ -392,7 +392,7 @@ uniform mat4 world;
392
392
  uniform mat4 previousWorld;
393
393
  #endif
394
394
  #endif
395
- `;i.ShaderStore.IncludesShadersStore[t]||(i.ShaderStore.IncludesShadersStore[t]=r),e.s(["instancesDeclaration",0,{name:t,shader:r}])},42927,e=>{"use strict";var i=e.i(12423);let t="clipPlaneVertexDeclaration",r=`#ifdef CLIPPLANE
395
+ `;i.ShaderStore.IncludesShadersStore[t]||(i.ShaderStore.IncludesShadersStore[t]=r),e.s(["instancesDeclaration",0,{name:t,shader:r}])},92125,e=>{"use strict";var i=e.i(1719);let t="clipPlaneVertexDeclaration",r=`#ifdef CLIPPLANE
396
396
  uniform vec4 vClipPlane;varying float fClipDistance;
397
397
  #endif
398
398
  #ifdef CLIPPLANE2
@@ -410,7 +410,7 @@ uniform vec4 vClipPlane5;varying float fClipDistance5;
410
410
  #ifdef CLIPPLANE6
411
411
  uniform vec4 vClipPlane6;varying float fClipDistance6;
412
412
  #endif
413
- `;i.ShaderStore.IncludesShadersStore[t]||(i.ShaderStore.IncludesShadersStore[t]=r),e.s(["clipPlaneVertexDeclaration",0,{name:t,shader:r}])},40805,30667,76955,16607,e=>{"use strict";var i=e.i(12423);let t="instancesVertex",r=`#ifdef INSTANCES
413
+ `;i.ShaderStore.IncludesShadersStore[t]||(i.ShaderStore.IncludesShadersStore[t]=r),e.s(["clipPlaneVertexDeclaration",0,{name:t,shader:r}])},99136,1e4,65474,14518,e=>{"use strict";var i=e.i(1719);let t="instancesVertex",r=`#ifdef INSTANCES
414
414
  mat4 finalWorld=mat4(world0,world1,world2,world3);
415
415
  #if defined(PREPASS_VELOCITY) || defined(VELOCITY) || defined(PREPASS_VELOCITY_LINEAR) || defined(VELOCITY_LINEAR)
416
416
  mat4 finalPreviousWorld=mat4(previousWorld0,previousWorld1,
@@ -428,7 +428,7 @@ mat4 finalWorld=world;
428
428
  mat4 finalPreviousWorld=previousWorld;
429
429
  #endif
430
430
  #endif
431
- `;i.ShaderStore.IncludesShadersStore[t]||(i.ShaderStore.IncludesShadersStore[t]=r),e.s(["instancesVertex",0,{name:t,shader:r}],40805);let a="bonesVertex",n=`#ifndef BAKED_VERTEX_ANIMATION_TEXTURE
431
+ `;i.ShaderStore.IncludesShadersStore[t]||(i.ShaderStore.IncludesShadersStore[t]=r),e.s(["instancesVertex",0,{name:t,shader:r}],99136);let a="bonesVertex",n=`#ifndef BAKED_VERTEX_ANIMATION_TEXTURE
432
432
  #if NUM_BONE_INFLUENCERS>0
433
433
  mat4 influence;
434
434
  #ifdef BONETEXTURE
@@ -481,7 +481,7 @@ influence+=mBones[int(matricesIndicesExtra[3])]*matricesWeightsExtra[3];
481
481
  finalWorld=finalWorld*influence;
482
482
  #endif
483
483
  #endif
484
- `;i.ShaderStore.IncludesShadersStore[a]||(i.ShaderStore.IncludesShadersStore[a]=n),e.s(["bonesVertex",0,{name:a,shader:n}],30667);let o="bakedVertexAnimation",s=`#ifdef BAKED_VERTEX_ANIMATION_TEXTURE
484
+ `;i.ShaderStore.IncludesShadersStore[a]||(i.ShaderStore.IncludesShadersStore[a]=n),e.s(["bonesVertex",0,{name:a,shader:n}],1e4);let o="bakedVertexAnimation",s=`#ifdef BAKED_VERTEX_ANIMATION_TEXTURE
485
485
  {
486
486
  #ifdef INSTANCES
487
487
  #define BVASNAME bakedVertexAnimationSettingsInstanced
@@ -512,7 +512,7 @@ VATInfluence+=readMatrixFromRawSamplerVAT(bakedVertexAnimationTexture,matricesIn
512
512
  #endif
513
513
  finalWorld=finalWorld*VATInfluence;}
514
514
  #endif
515
- `;i.ShaderStore.IncludesShadersStore[o]||(i.ShaderStore.IncludesShadersStore[o]=s),e.s(["bakedVertexAnimation",0,{name:o,shader:s}],76955);let f="clipPlaneVertex",l=`#ifdef CLIPPLANE
515
+ `;i.ShaderStore.IncludesShadersStore[o]||(i.ShaderStore.IncludesShadersStore[o]=s),e.s(["bakedVertexAnimation",0,{name:o,shader:s}],65474);let f="clipPlaneVertex",l=`#ifdef CLIPPLANE
516
516
  fClipDistance=dot(worldPos,vClipPlane);
517
517
  #endif
518
518
  #ifdef CLIPPLANE2
@@ -530,13 +530,13 @@ fClipDistance5=dot(worldPos,vClipPlane5);
530
530
  #ifdef CLIPPLANE6
531
531
  fClipDistance6=dot(worldPos,vClipPlane6);
532
532
  #endif
533
- `;i.ShaderStore.IncludesShadersStore[f]||(i.ShaderStore.IncludesShadersStore[f]=l),e.s(["clipPlaneVertex",0,{name:f,shader:l}],16607)},57828,29231,17464,e=>{"use strict";var i=e.i(12423);let t="fogVertexDeclaration",r=`#ifdef FOG
533
+ `;i.ShaderStore.IncludesShadersStore[f]||(i.ShaderStore.IncludesShadersStore[f]=l),e.s(["clipPlaneVertex",0,{name:f,shader:l}],14518)},72482,68852,94672,e=>{"use strict";var i=e.i(1719);let t="fogVertexDeclaration",r=`#ifdef FOG
534
534
  varying vec3 vFogDistance;
535
535
  #endif
536
- `;i.ShaderStore.IncludesShadersStore[t]||(i.ShaderStore.IncludesShadersStore[t]=r),e.s(["fogVertexDeclaration",0,{name:t,shader:r}],57828);let a="fogVertex",n=`#ifdef FOG
536
+ `;i.ShaderStore.IncludesShadersStore[t]||(i.ShaderStore.IncludesShadersStore[t]=r),e.s(["fogVertexDeclaration",0,{name:t,shader:r}],72482);let a="fogVertex",n=`#ifdef FOG
537
537
  vFogDistance=(view*worldPos).xyz;
538
538
  #endif
539
- `;i.ShaderStore.IncludesShadersStore[a]||(i.ShaderStore.IncludesShadersStore[a]=n),e.s(["fogVertex",0,{name:a,shader:n}],29231);let o="vertexColorMixing",s=`#if defined(VERTEXCOLOR) || defined(INSTANCESCOLOR) && defined(INSTANCES)
539
+ `;i.ShaderStore.IncludesShadersStore[a]||(i.ShaderStore.IncludesShadersStore[a]=n),e.s(["fogVertex",0,{name:a,shader:n}],68852);let o="vertexColorMixing",s=`#if defined(VERTEXCOLOR) || defined(INSTANCESCOLOR) && defined(INSTANCES)
540
540
  vColor=vec4(1.0);
541
541
  #ifdef VERTEXCOLOR
542
542
  #ifdef VERTEXALPHA
@@ -549,7 +549,7 @@ vColor.rgb*=colorUpdated.rgb;
549
549
  vColor*=instanceColor;
550
550
  #endif
551
551
  #endif
552
- `;i.ShaderStore.IncludesShadersStore[o]||(i.ShaderStore.IncludesShadersStore[o]=s),e.s(["vertexColorMixing",0,{name:o,shader:s}],17464)},32936,32235,61193,99838,e=>{"use strict";var i=e.i(12423);let t="morphTargetsVertexGlobalDeclaration",r=`#ifdef MORPHTARGETS
552
+ `;i.ShaderStore.IncludesShadersStore[o]||(i.ShaderStore.IncludesShadersStore[o]=s),e.s(["vertexColorMixing",0,{name:o,shader:s}],94672)},90426,32122,61241,48921,e=>{"use strict";var i=e.i(1719);let t="morphTargetsVertexGlobalDeclaration",r=`#ifdef MORPHTARGETS
553
553
  uniform float morphTargetInfluences[NUM_MORPH_INFLUENCERS];
554
554
  #ifdef MORPHTARGETS_TEXTURE
555
555
  uniform float morphTargetTextureIndices[NUM_MORPH_INFLUENCERS];uniform vec3 morphTargetTextureInfo;uniform highp sampler2DArray morphTargets;vec3 readVector3FromRawSampler(int targetIndex,float vertexIndex)
@@ -570,7 +570,7 @@ float y=floor(vertexIndex/morphTargetTextureInfo.y);float x=vertexIndex-y*morphT
570
570
  }
571
571
  #endif
572
572
  #endif
573
- `;i.ShaderStore.IncludesShadersStore[t]||(i.ShaderStore.IncludesShadersStore[t]=r),e.s(["morphTargetsVertexGlobalDeclaration",0,{name:t,shader:r}],32936);let a="morphTargetsVertexDeclaration",n=`#ifdef MORPHTARGETS
573
+ `;i.ShaderStore.IncludesShadersStore[t]||(i.ShaderStore.IncludesShadersStore[t]=r),e.s(["morphTargetsVertexGlobalDeclaration",0,{name:t,shader:r}],90426);let a="morphTargetsVertexDeclaration",n=`#ifdef MORPHTARGETS
574
574
  #ifndef MORPHTARGETS_TEXTURE
575
575
  #ifdef MORPHTARGETS_POSITION
576
576
  attribute vec3 position{X};
@@ -594,12 +594,12 @@ attribute vec4 color{X};
594
594
  uniform float morphTargetCount;
595
595
  #endif
596
596
  #endif
597
- `;i.ShaderStore.IncludesShadersStore[a]||(i.ShaderStore.IncludesShadersStore[a]=n),e.s(["morphTargetsVertexDeclaration",0,{name:a,shader:n}],32235);let o="morphTargetsVertexGlobal",s=`#ifdef MORPHTARGETS
597
+ `;i.ShaderStore.IncludesShadersStore[a]||(i.ShaderStore.IncludesShadersStore[a]=n),e.s(["morphTargetsVertexDeclaration",0,{name:a,shader:n}],32122);let o="morphTargetsVertexGlobal",s=`#ifdef MORPHTARGETS
598
598
  #ifdef MORPHTARGETS_TEXTURE
599
599
  float vertexID;
600
600
  #endif
601
601
  #endif
602
- `;i.ShaderStore.IncludesShadersStore[o]||(i.ShaderStore.IncludesShadersStore[o]=s),e.s(["morphTargetsVertexGlobal",0,{name:o,shader:s}],61193);let f="morphTargetsVertex",l=`#ifdef MORPHTARGETS
602
+ `;i.ShaderStore.IncludesShadersStore[o]||(i.ShaderStore.IncludesShadersStore[o]=s),e.s(["morphTargetsVertexGlobal",0,{name:o,shader:s}],61241);let f="morphTargetsVertex",l=`#ifdef MORPHTARGETS
603
603
  #ifdef MORPHTARGETS_TEXTURE
604
604
  #if {X}==0
605
605
  for (int i=0; i<NUM_MORPH_INFLUENCERS; i++) {if (float(i)>=morphTargetCount) break;vertexID=float(gl_VertexID)*morphTargetTextureInfo.x;
@@ -659,13 +659,13 @@ colorUpdated+=(color{X}-color)*morphTargetInfluences[{X}];
659
659
  #endif
660
660
  #endif
661
661
  #endif
662
- `;i.ShaderStore.IncludesShadersStore[f]||(i.ShaderStore.IncludesShadersStore[f]=l),e.s(["morphTargetsVertex",0,{name:f,shader:l}],99838)},74747,78119,23131,39962,41527,50010,91440,43842,61981,55212,23689,e=>{"use strict";var i=e.i(12423);let t="decalVertexDeclaration",r=`#ifdef DECAL
662
+ `;i.ShaderStore.IncludesShadersStore[f]||(i.ShaderStore.IncludesShadersStore[f]=l),e.s(["morphTargetsVertex",0,{name:f,shader:l}],48921)},58283,656,9269,23116,44560,94874,57837,57472,65073,93481,97063,e=>{"use strict";var i=e.i(1719);let t="decalVertexDeclaration",r=`#ifdef DECAL
663
663
  uniform vec4 vDecalInfos;uniform mat4 decalMatrix;
664
664
  #endif
665
- `;i.ShaderStore.IncludesShadersStore[t]||(i.ShaderStore.IncludesShadersStore[t]=r),e.s(["decalVertexDeclaration",0,{name:t,shader:r}],74747);let a="uvAttributeDeclaration",n=`#ifdef UV{X}
665
+ `;i.ShaderStore.IncludesShadersStore[t]||(i.ShaderStore.IncludesShadersStore[t]=r),e.s(["decalVertexDeclaration",0,{name:t,shader:r}],58283);let a="uvAttributeDeclaration",n=`#ifdef UV{X}
666
666
  attribute vec2 uv{X};
667
667
  #endif
668
- `;i.ShaderStore.IncludesShadersStore[a]||(i.ShaderStore.IncludesShadersStore[a]=n),e.s(["uvAttributeDeclaration",0,{name:a,shader:n}],78119);let o="prePassVertexDeclaration",s=`#ifdef PREPASS
668
+ `;i.ShaderStore.IncludesShadersStore[a]||(i.ShaderStore.IncludesShadersStore[a]=n),e.s(["uvAttributeDeclaration",0,{name:a,shader:n}],656);let o="prePassVertexDeclaration",s=`#ifdef PREPASS
669
669
  #ifdef PREPASS_LOCAL_POSITION
670
670
  varying vec3 vPosition;
671
671
  #endif
@@ -679,10 +679,10 @@ varying float vNormViewDepth;
679
679
  uniform mat4 previousViewProjection;varying vec4 vCurrentPosition;varying vec4 vPreviousPosition;
680
680
  #endif
681
681
  #endif
682
- `;i.ShaderStore.IncludesShadersStore[o]||(i.ShaderStore.IncludesShadersStore[o]=s),e.s(["prePassVertexDeclaration",0,{name:o,shader:s}],23131);let f="samplerVertexDeclaration",l=`#if defined(_DEFINENAME_) && _DEFINENAME_DIRECTUV==0
682
+ `;i.ShaderStore.IncludesShadersStore[o]||(i.ShaderStore.IncludesShadersStore[o]=s),e.s(["prePassVertexDeclaration",0,{name:o,shader:s}],9269);let f="samplerVertexDeclaration",l=`#if defined(_DEFINENAME_) && _DEFINENAME_DIRECTUV==0
683
683
  varying vec2 v_VARYINGNAME_UV;
684
684
  #endif
685
- `;i.ShaderStore.IncludesShadersStore[f]||(i.ShaderStore.IncludesShadersStore[f]=l),e.s(["samplerVertexDeclaration",0,{name:f,shader:l}],39962);let c="lightVxFragmentDeclaration",d=`#ifdef LIGHT{X}
685
+ `;i.ShaderStore.IncludesShadersStore[f]||(i.ShaderStore.IncludesShadersStore[f]=l),e.s(["samplerVertexDeclaration",0,{name:f,shader:l}],23116);let c="lightVxFragmentDeclaration",d=`#ifdef LIGHT{X}
686
686
  uniform vec4 vLightData{X};uniform vec4 vLightDiffuse{X};
687
687
  #ifdef SPECULARTERM
688
688
  uniform vec4 vLightSpecular{X};
@@ -709,7 +709,7 @@ uniform vec3 vLightGround{X};
709
709
  uniform vec4 vLightWidth{X};uniform vec4 vLightHeight{X};
710
710
  #endif
711
711
  #endif
712
- `;i.ShaderStore.IncludesShadersStore[c]||(i.ShaderStore.IncludesShadersStore[c]=d),e.s(["lightVxFragmentDeclaration",0,{name:c,shader:d}],41527);let m="lightVxUboDeclaration",E=`#ifdef LIGHT{X}
712
+ `;i.ShaderStore.IncludesShadersStore[c]||(i.ShaderStore.IncludesShadersStore[c]=d),e.s(["lightVxFragmentDeclaration",0,{name:c,shader:d}],44560);let m="lightVxUboDeclaration",E=`#ifdef LIGHT{X}
713
713
  uniform Light{X}
714
714
  {vec4 vLightData;vec4 vLightDiffuse;vec4 vLightSpecular;
715
715
  #ifdef SPOTLIGHT{X}
@@ -734,7 +734,7 @@ varying vec4 vPositionFromLight{X};varying float vDepthMetric{X};uniform mat4 li
734
734
  #endif
735
735
  #endif
736
736
  #endif
737
- `;i.ShaderStore.IncludesShadersStore[m]||(i.ShaderStore.IncludesShadersStore[m]=E),e.s(["lightVxUboDeclaration",0,{name:m,shader:E}],50010);let u="prePassVertex",v=`#ifdef PREPASS_DEPTH
737
+ `;i.ShaderStore.IncludesShadersStore[m]||(i.ShaderStore.IncludesShadersStore[m]=E),e.s(["lightVxUboDeclaration",0,{name:m,shader:E}],94874);let u="prePassVertex",v=`#ifdef PREPASS_DEPTH
738
738
  vViewPos=(view*worldPos).rgb;
739
739
  #endif
740
740
  #ifdef PREPASS_NORMALIZED_VIEW_DEPTH
@@ -773,13 +773,13 @@ vPreviousPosition=previousViewProjection*finalPreviousWorld*previousInfluence*ve
773
773
  vPreviousPosition=previousViewProjection*finalPreviousWorld*vec4(positionUpdated,1.0);
774
774
  #endif
775
775
  #endif
776
- `;i.ShaderStore.IncludesShadersStore[u]||(i.ShaderStore.IncludesShadersStore[u]=v),e.s(["prePassVertex",0,{name:u,shader:v}],91440);let S="uvVariableDeclaration",I=`#if !defined(UV{X}) && defined(MAINUV{X})
776
+ `;i.ShaderStore.IncludesShadersStore[u]||(i.ShaderStore.IncludesShadersStore[u]=v),e.s(["prePassVertex",0,{name:u,shader:v}],57837);let S="uvVariableDeclaration",I=`#if !defined(UV{X}) && defined(MAINUV{X})
777
777
  vec2 uv{X}=vec2(0.,0.);
778
778
  #endif
779
779
  #ifdef MAINUV{X}
780
780
  vMainUV{X}=uv{X};
781
781
  #endif
782
- `;i.ShaderStore.IncludesShadersStore[S]||(i.ShaderStore.IncludesShadersStore[S]=I),e.s(["uvVariableDeclaration",0,{name:S,shader:I}],43842);let N="samplerVertexImplementation",_=`#if defined(_DEFINENAME_) && _DEFINENAME_DIRECTUV==0
782
+ `;i.ShaderStore.IncludesShadersStore[S]||(i.ShaderStore.IncludesShadersStore[S]=I),e.s(["uvVariableDeclaration",0,{name:S,shader:I}],57472);let N="samplerVertexImplementation",_=`#if defined(_DEFINENAME_) && _DEFINENAME_DIRECTUV==0
783
783
  if (v_INFONAME_==0.)
784
784
  {v_VARYINGNAME_UV=vec2(_MATRIXNAME_Matrix*vec4(uvUpdated,1.0,0.0));}
785
785
  #ifdef UV2
@@ -803,7 +803,7 @@ else if (v_INFONAME_==5.)
803
803
  {v_VARYINGNAME_UV=vec2(_MATRIXNAME_Matrix*vec4(uv6,1.0,0.0));}
804
804
  #endif
805
805
  #endif
806
- `;i.ShaderStore.IncludesShadersStore[N]||(i.ShaderStore.IncludesShadersStore[N]=_),e.s(["samplerVertexImplementation",0,{name:N,shader:_}],61981);let A="shadowsVertex",R=`#ifdef SHADOWS
806
+ `;i.ShaderStore.IncludesShadersStore[N]||(i.ShaderStore.IncludesShadersStore[N]=_),e.s(["samplerVertexImplementation",0,{name:N,shader:_}],65073);let A="shadowsVertex",R=`#ifdef SHADOWS
807
807
  #if defined(SHADOWCSM{X})
808
808
  vPositionFromCamera{X}=view*worldPos;for (int i=0; i<SHADOWCSMNUM_CASCADES{X}; i++) {vPositionFromLight{X}[i]=lightMatrix{X}[i]*worldPos;
809
809
  #ifdef USE_REVERSE_DEPTHBUFFER
@@ -821,20 +821,20 @@ vDepthMetric{X}=(vPositionFromLight{X}.z+light{X}.depthValues.x)/light{X}.depthV
821
821
  #endif
822
822
  #endif
823
823
  #endif
824
- `;i.ShaderStore.IncludesShadersStore[A]||(i.ShaderStore.IncludesShadersStore[A]=R),e.s(["shadowsVertex",0,{name:A,shader:R}],55212);let h="logDepthVertex",p=`#ifdef LOGARITHMICDEPTH
824
+ `;i.ShaderStore.IncludesShadersStore[A]||(i.ShaderStore.IncludesShadersStore[A]=R),e.s(["shadowsVertex",0,{name:A,shader:R}],93481);let h="logDepthVertex",p=`#ifdef LOGARITHMICDEPTH
825
825
  vFragmentDepth=1.0+gl_Position.w;gl_Position.z=log2(max(0.000001,vFragmentDepth))*logarithmicDepthConstant;
826
826
  #endif
827
- `;i.ShaderStore.IncludesShadersStore[h]||(i.ShaderStore.IncludesShadersStore[h]=p),e.s(["logDepthVertex",0,{name:h,shader:p}],23689)},14469,e=>{"use strict";var i=e.i(12423);e.i(85668),e.i(6232);let t="openpbrUboDeclaration",r=`layout(std140,column_major) uniform;uniform Material {vec2 vTangentSpaceParams;vec4 vLightingIntensity;float pointSize;vec2 vDebugMode;vec2 renderTargetSize;vec4 cameraInfo;vec4 vTextureRepetitionHexTilingParams;mat4 backgroundRefractionMatrix;vec3 vBackgroundRefractionInfos;vec2 vReflectionInfos;mat4 reflectionMatrix;vec3 vReflectionMicrosurfaceInfos;vec3 vReflectionPosition;vec3 vReflectionSize;vec2 vReflectionFilteringInfo;vec3 vReflectionDominantDirection;vec3 vReflectionColor;vec3 vSphericalL00;vec3 vSphericalL1_1;vec3 vSphericalL10;vec3 vSphericalL11;vec3 vSphericalL2_2;vec3 vSphericalL2_1;vec3 vSphericalL20;vec3 vSphericalL21;vec3 vSphericalL22;vec3 vSphericalX;vec3 vSphericalY;vec3 vSphericalZ;vec3 vSphericalXX_ZZ;vec3 vSphericalYY_ZZ;vec3 vSphericalZZ;vec3 vSphericalXY;vec3 vSphericalYZ;vec3 vSphericalZX;float vBaseWeight;vec4 vBaseColor;float vBaseDiffuseRoughness;vec4 vReflectanceInfo;vec4 vSpecularColor;vec3 vSpecularAnisotropy;float vTransmissionWeight;vec3 vTransmissionColor;float vTransmissionDepth;vec3 vTransmissionScatter;float vTransmissionScatterAnisotropy;float vTransmissionDispersionScale;float vTransmissionDispersionAbbeNumber;float vSubsurfaceWeight;vec3 vSubsurfaceColor;float vSubsurfaceRadius;vec3 vSubsurfaceRadiusScale;float vSubsurfaceScatterAnisotropy;float vCoatWeight;vec3 vCoatColor;float vCoatRoughness;float vCoatRoughnessAnisotropy;float vCoatIor;float vCoatDarkening;float vFuzzWeight;vec3 vFuzzColor;float vFuzzRoughness;float vGeometryThinWalled;vec2 vGeometryCoatTangent;float vGeometryThickness;vec3 vEmissionColor;float vThinFilmWeight;vec2 vThinFilmThickness;float vThinFilmIor;vec2 vBaseWeightInfos;mat4 baseWeightMatrix;vec2 vBaseColorInfos;mat4 baseColorMatrix;vec2 vBaseDiffuseRoughnessInfos;mat4 baseDiffuseRoughnessMatrix;vec2 vBaseMetalnessInfos;mat4 baseMetalnessMatrix;vec2 vSpecularWeightInfos;mat4 specularWeightMatrix;vec2 vSpecularColorInfos;mat4 specularColorMatrix;vec2 vSpecularRoughnessInfos;mat4 specularRoughnessMatrix;vec2 vSpecularRoughnessAnisotropyInfos;mat4 specularRoughnessAnisotropyMatrix;vec2 vTransmissionWeightInfos;mat4 transmissionWeightMatrix;vec2 vTransmissionColorInfos;mat4 transmissionColorMatrix;vec2 vTransmissionDepthInfos;mat4 transmissionDepthMatrix;vec2 vTransmissionScatterInfos;mat4 transmissionScatterMatrix;vec2 vTransmissionDispersionScaleInfos;mat4 transmissionDispersionScaleMatrix;vec2 vSubsurfaceWeightInfos;mat4 subsurfaceWeightMatrix;vec2 vSubsurfaceColorInfos;mat4 subsurfaceColorMatrix;vec2 vSubsurfaceRadiusScaleInfos;mat4 subsurfaceRadiusScaleMatrix;vec2 vCoatWeightInfos;mat4 coatWeightMatrix;vec2 vCoatColorInfos;mat4 coatColorMatrix;vec2 vCoatRoughnessInfos;mat4 coatRoughnessMatrix;vec2 vCoatRoughnessAnisotropyInfos;mat4 coatRoughnessAnisotropyMatrix;vec2 vCoatDarkeningInfos;mat4 coatDarkeningMatrix;vec2 vFuzzWeightInfos;mat4 fuzzWeightMatrix;vec2 vFuzzColorInfos;mat4 fuzzColorMatrix;vec2 vFuzzRoughnessInfos;mat4 fuzzRoughnessMatrix;vec2 vGeometryNormalInfos;mat4 geometryNormalMatrix;vec2 vGeometryTangentInfos;mat4 geometryTangentMatrix;vec2 vGeometryCoatNormalInfos;mat4 geometryCoatNormalMatrix;vec2 vGeometryCoatTangentInfos;mat4 geometryCoatTangentMatrix;vec2 vGeometryOpacityInfos;mat4 geometryOpacityMatrix;vec2 vGeometryThicknessInfos;mat4 geometryThicknessMatrix;vec2 vEmissionColorInfos;mat4 emissionColorMatrix;vec2 vThinFilmWeightInfos;mat4 thinFilmWeightMatrix;vec2 vThinFilmThicknessInfos;mat4 thinFilmThicknessMatrix;vec2 vAmbientOcclusionInfos;mat4 ambientOcclusionMatrix;
827
+ `;i.ShaderStore.IncludesShadersStore[h]||(i.ShaderStore.IncludesShadersStore[h]=p),e.s(["logDepthVertex",0,{name:h,shader:p}],97063)},44807,e=>{"use strict";var i=e.i(1719);e.i(12209),e.i(81108);let t="openpbrUboDeclaration",r=`layout(std140,column_major) uniform;uniform Material {vec2 vTangentSpaceParams;vec4 vLightingIntensity;float pointSize;vec2 vDebugMode;vec2 renderTargetSize;vec4 cameraInfo;vec4 vTextureRepetitionHexTilingParams;mat4 backgroundRefractionMatrix;vec3 vBackgroundRefractionInfos;vec2 vReflectionInfos;mat4 reflectionMatrix;vec3 vReflectionMicrosurfaceInfos;vec3 vReflectionPosition;vec3 vReflectionSize;vec2 vReflectionFilteringInfo;vec3 vReflectionDominantDirection;vec3 vReflectionColor;vec3 vSphericalL00;vec3 vSphericalL1_1;vec3 vSphericalL10;vec3 vSphericalL11;vec3 vSphericalL2_2;vec3 vSphericalL2_1;vec3 vSphericalL20;vec3 vSphericalL21;vec3 vSphericalL22;vec3 vSphericalX;vec3 vSphericalY;vec3 vSphericalZ;vec3 vSphericalXX_ZZ;vec3 vSphericalYY_ZZ;vec3 vSphericalZZ;vec3 vSphericalXY;vec3 vSphericalYZ;vec3 vSphericalZX;float vBaseWeight;vec4 vBaseColor;float vBaseDiffuseRoughness;vec4 vReflectanceInfo;vec4 vSpecularColor;vec3 vSpecularAnisotropy;float vTransmissionWeight;vec3 vTransmissionColor;float vTransmissionDepth;vec3 vTransmissionScatter;float vTransmissionScatterAnisotropy;float vTransmissionDispersionScale;float vTransmissionDispersionAbbeNumber;float vSubsurfaceWeight;vec3 vSubsurfaceColor;float vSubsurfaceRadius;vec3 vSubsurfaceRadiusScale;float vSubsurfaceScatterAnisotropy;float vCoatWeight;vec3 vCoatColor;float vCoatRoughness;float vCoatRoughnessAnisotropy;float vCoatIor;float vCoatDarkening;float vFuzzWeight;vec3 vFuzzColor;float vFuzzRoughness;float vGeometryThinWalled;vec2 vGeometryCoatTangent;float vGeometryThickness;vec3 vEmissionColor;float vThinFilmWeight;vec2 vThinFilmThickness;float vThinFilmIor;vec2 vBaseWeightInfos;mat4 baseWeightMatrix;vec2 vBaseColorInfos;mat4 baseColorMatrix;vec2 vBaseDiffuseRoughnessInfos;mat4 baseDiffuseRoughnessMatrix;vec2 vBaseMetalnessInfos;mat4 baseMetalnessMatrix;vec2 vSpecularWeightInfos;mat4 specularWeightMatrix;vec2 vSpecularColorInfos;mat4 specularColorMatrix;vec2 vSpecularRoughnessInfos;mat4 specularRoughnessMatrix;vec2 vSpecularRoughnessAnisotropyInfos;mat4 specularRoughnessAnisotropyMatrix;vec2 vTransmissionWeightInfos;mat4 transmissionWeightMatrix;vec2 vTransmissionColorInfos;mat4 transmissionColorMatrix;vec2 vTransmissionDepthInfos;mat4 transmissionDepthMatrix;vec2 vTransmissionScatterInfos;mat4 transmissionScatterMatrix;vec2 vTransmissionDispersionScaleInfos;mat4 transmissionDispersionScaleMatrix;vec2 vSubsurfaceWeightInfos;mat4 subsurfaceWeightMatrix;vec2 vSubsurfaceColorInfos;mat4 subsurfaceColorMatrix;vec2 vSubsurfaceRadiusScaleInfos;mat4 subsurfaceRadiusScaleMatrix;vec2 vCoatWeightInfos;mat4 coatWeightMatrix;vec2 vCoatColorInfos;mat4 coatColorMatrix;vec2 vCoatRoughnessInfos;mat4 coatRoughnessMatrix;vec2 vCoatRoughnessAnisotropyInfos;mat4 coatRoughnessAnisotropyMatrix;vec2 vCoatDarkeningInfos;mat4 coatDarkeningMatrix;vec2 vFuzzWeightInfos;mat4 fuzzWeightMatrix;vec2 vFuzzColorInfos;mat4 fuzzColorMatrix;vec2 vFuzzRoughnessInfos;mat4 fuzzRoughnessMatrix;vec2 vGeometryNormalInfos;mat4 geometryNormalMatrix;vec2 vGeometryTangentInfos;mat4 geometryTangentMatrix;vec2 vGeometryCoatNormalInfos;mat4 geometryCoatNormalMatrix;vec2 vGeometryCoatTangentInfos;mat4 geometryCoatTangentMatrix;vec2 vGeometryOpacityInfos;mat4 geometryOpacityMatrix;vec2 vGeometryThicknessInfos;mat4 geometryThicknessMatrix;vec2 vEmissionColorInfos;mat4 emissionColorMatrix;vec2 vThinFilmWeightInfos;mat4 thinFilmWeightMatrix;vec2 vThinFilmThicknessInfos;mat4 thinFilmThicknessMatrix;vec2 vAmbientOcclusionInfos;mat4 ambientOcclusionMatrix;
828
828
  #define ADDITIONAL_UBO_DECLARATION
829
829
  };
830
830
  #include<sceneUboDeclaration>
831
831
  #include<meshUboDeclaration>
832
- `;i.ShaderStore.IncludesShadersStore[t]||(i.ShaderStore.IncludesShadersStore[t]=r),e.s(["openpbrUboDeclaration",0,{name:t,shader:r}])},43820,e=>{"use strict";var i=e.i(12423);let t="sceneVertexDeclaration",r=`uniform mat4 viewProjection;
832
+ `;i.ShaderStore.IncludesShadersStore[t]||(i.ShaderStore.IncludesShadersStore[t]=r),e.s(["openpbrUboDeclaration",0,{name:t,shader:r}])},77834,e=>{"use strict";var i=e.i(1719);let t="sceneVertexDeclaration",r=`uniform mat4 viewProjection;
833
833
  #ifdef MULTIVIEW
834
834
  uniform mat4 viewProjectionR;
835
835
  #endif
836
836
  uniform mat4 view;uniform mat4 projection;uniform vec4 vEyePosition;
837
- `;i.ShaderStore.IncludesShadersStore[t]||(i.ShaderStore.IncludesShadersStore[t]=r);var a=e.i(74747);let n="openpbrVertexDeclaration",o=`#include<sceneVertexDeclaration>
837
+ `;i.ShaderStore.IncludesShadersStore[t]||(i.ShaderStore.IncludesShadersStore[t]=r);var a=e.i(58283);let n="openpbrVertexDeclaration",o=`#include<sceneVertexDeclaration>
838
838
  #ifdef BASE_COLOR
839
839
  uniform vec2 vBaseColorInfos;uniform mat4 baseColorMatrix;
840
840
  #endif
@@ -961,17 +961,17 @@ uniform vec4 vDetailInfos;uniform mat4 detailMatrix;
961
961
  #endif
962
962
  #include<decalVertexDeclaration>
963
963
  #define ADDITIONAL_VERTEX_DECLARATION
964
- `;i.ShaderStore.IncludesShadersStore[n]||(i.ShaderStore.IncludesShadersStore[n]=o);var s=e.i(85668),f=e.i(6232),l=e.i(14469),c=e.i(78119),d=e.i(92692),m=e.i(65296),E=e.i(60990),u=e.i(39067),v=e.i(15420),S=e.i(85863),I=e.i(23131),N=e.i(39962),_=e.i(50438);let A="openpbrNormalMapVertexDeclaration",R=`#if defined(GEOMETRY_NORMAL) || defined(PARALLAX) || defined(GEOMETRY_COAT_NORMAL) || defined(ANISOTROPIC) || defined(FUZZ)
964
+ `;i.ShaderStore.IncludesShadersStore[n]||(i.ShaderStore.IncludesShadersStore[n]=o);var s=e.i(12209),f=e.i(81108),l=e.i(44807),c=e.i(656),d=e.i(57972),m=e.i(1609),E=e.i(72979),u=e.i(88774),v=e.i(78263),S=e.i(82059),I=e.i(9269),N=e.i(23116),_=e.i(41980);let A="openpbrNormalMapVertexDeclaration",R=`#if defined(GEOMETRY_NORMAL) || defined(PARALLAX) || defined(GEOMETRY_COAT_NORMAL) || defined(ANISOTROPIC) || defined(FUZZ)
965
965
  #if defined(TANGENT) && defined(NORMAL)
966
966
  varying mat3 vTBN;
967
967
  #endif
968
968
  #endif
969
- `;i.ShaderStore.IncludesShadersStore[A]||(i.ShaderStore.IncludesShadersStore[A]=R);var h=e.i(42927),p=e.i(57828),T=e.i(41527),M=e.i(50010),x=e.i(32936),O=e.i(32235),g=e.i(97226),V=e.i(61193),C=e.i(99838),D=e.i(40805),F=e.i(30667),L=e.i(76955),P=e.i(91440),G=e.i(43842),U=e.i(61981);let b="openpbrNormalMapVertex",B=`#if defined(GEOMETRY_NORMAL) || defined(PARALLAX) || defined(GEOMETRY_COAT_NORMAL) || defined(ANISOTROPIC) || defined(FUZZ)
969
+ `;i.ShaderStore.IncludesShadersStore[A]||(i.ShaderStore.IncludesShadersStore[A]=R);var h=e.i(92125),p=e.i(72482),T=e.i(44560),M=e.i(94874),x=e.i(90426),O=e.i(32122),g=e.i(30964),V=e.i(61241),C=e.i(48921),D=e.i(99136),F=e.i(1e4),L=e.i(65474),P=e.i(57837),G=e.i(57472),U=e.i(65073);let b="openpbrNormalMapVertex",B=`#if defined(GEOMETRY_NORMAL) || defined(PARALLAX) || defined(GEOMETRY_COAT_NORMAL) || defined(ANISOTROPIC) || defined(FUZZ)
970
970
  #if defined(TANGENT) && defined(NORMAL)
971
971
  vec3 tbnNormal=normalize(normalUpdated);vec3 tbnTangent=normalize(tangentUpdated.xyz);vec3 tbnBitangent=cross(tbnNormal,tbnTangent)*tangentUpdated.w;vTBN=mat3(finalWorld)*mat3(tbnTangent,tbnBitangent,tbnNormal);
972
972
  #endif
973
973
  #endif
974
- `;i.ShaderStore.IncludesShadersStore[b]||(i.ShaderStore.IncludesShadersStore[b]=B);var y=e.i(16607),X=e.i(29231),W=e.i(55212),H=e.i(17464),Y=e.i(23689);let z="openpbrVertexShader",w=`#define OPENPBR_VERTEX_SHADER
974
+ `;i.ShaderStore.IncludesShadersStore[b]||(i.ShaderStore.IncludesShadersStore[b]=B);var y=e.i(14518),X=e.i(68852),W=e.i(93481),H=e.i(94672),Y=e.i(97063);let z="openpbrVertexShader",w=`#define OPENPBR_VERTEX_SHADER
975
975
  #define CUSTOM_VERTEX_EXTENSION
976
976
  precision highp float;
977
977
  #include<__decl__openpbrVertex>
@@ -1192,4 +1192,4 @@ gl_PointSize=pointSize;
1192
1192
  #include<logDepthVertex>
1193
1193
  #define CUSTOM_VERTEX_MAIN_END
1194
1194
  }
1195
- `;for(let e of(i.ShaderStore.ShadersStore[z]||(i.ShaderStore.ShadersStore[z]=w),[{name:t,shader:r},a.decalVertexDeclaration,{name:n,shader:o},s.sceneUboDeclaration,f.meshUboDeclaration,l.openpbrUboDeclaration,c.uvAttributeDeclaration,d.mainUVVaryingDeclaration,m.helperFunctions,E.pbrBRDFFunctions,u.bonesDeclaration,v.bakedVertexAnimationDeclaration,S.instancesDeclaration,I.prePassVertexDeclaration,N.samplerVertexDeclaration,_.harmonicsFunctions,{name:A,shader:R},h.clipPlaneVertexDeclaration,p.fogVertexDeclaration,T.lightVxFragmentDeclaration,M.lightVxUboDeclaration,x.morphTargetsVertexGlobalDeclaration,O.morphTargetsVertexDeclaration,g.logDepthDeclaration,V.morphTargetsVertexGlobal,C.morphTargetsVertex,D.instancesVertex,F.bonesVertex,L.bakedVertexAnimation,P.prePassVertex,G.uvVariableDeclaration,U.samplerVertexImplementation,{name:b,shader:B},y.clipPlaneVertex,X.fogVertex,W.shadowsVertex,H.vertexColorMixing,Y.logDepthVertex]))i.ShaderStore.IncludesShadersStore[e.name]||(i.ShaderStore.IncludesShadersStore[e.name]=e.shader);e.s(["openpbrVertexShader",0,{name:z,shader:w}],43820)}]);
1195
+ `;for(let e of(i.ShaderStore.ShadersStore[z]||(i.ShaderStore.ShadersStore[z]=w),[{name:t,shader:r},a.decalVertexDeclaration,{name:n,shader:o},s.sceneUboDeclaration,f.meshUboDeclaration,l.openpbrUboDeclaration,c.uvAttributeDeclaration,d.mainUVVaryingDeclaration,m.helperFunctions,E.pbrBRDFFunctions,u.bonesDeclaration,v.bakedVertexAnimationDeclaration,S.instancesDeclaration,I.prePassVertexDeclaration,N.samplerVertexDeclaration,_.harmonicsFunctions,{name:A,shader:R},h.clipPlaneVertexDeclaration,p.fogVertexDeclaration,T.lightVxFragmentDeclaration,M.lightVxUboDeclaration,x.morphTargetsVertexGlobalDeclaration,O.morphTargetsVertexDeclaration,g.logDepthDeclaration,V.morphTargetsVertexGlobal,C.morphTargetsVertex,D.instancesVertex,F.bonesVertex,L.bakedVertexAnimation,P.prePassVertex,G.uvVariableDeclaration,U.samplerVertexImplementation,{name:b,shader:B},y.clipPlaneVertex,X.fogVertex,W.shadowsVertex,H.vertexColorMixing,Y.logDepthVertex]))i.ShaderStore.IncludesShadersStore[e.name]||(i.ShaderStore.IncludesShadersStore[e.name]=e.shader);e.s(["openpbrVertexShader",0,{name:z,shader:w}],77834)}]);
@@ -0,0 +1 @@
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,8051,e=>{"use strict";var t,r,n,l,a,i,o=e.i(83464),u=e.i(35270),s=e.i(37890);function f(e,t){let r=new Uint8Array(e),n=0;for(;0!=r[t.value+n];)n+=1;let l=new TextDecoder().decode(r.slice(t.value,t.value+n));return t.value=t.value+n+1,l}function c(e,t){let r=e.getInt32(t.value,!0);return t.value+=4,r}function h(e,t){let r=e.getUint32(t.value,!0);return t.value+=4,r}function d(e,t){let r=e.getUint8(t.value);return t.value+=1,r}function p(e,t){let r=e.getUint16(t.value,!0);return t.value+=2,r}function y(e,t){let r=e[t.value];return t.value+=1,r}function w(e,t){let r=e.getFloat32(t.value,!0);return t.value+=4,r}function v(e,t){return(0,s.FromHalfFloat)(p(e,t))}function b(e,t){return(0,s.ToHalfFloat)((0,u.Clamp)(w(e,t),-s.MaxHalfFloat,s.MaxHalfFloat))}function S(e){for(let t=1;t<e.length;t++){let r=e[t-1]+e[t]-128;e[t]=r}}function E(e,t){let r=0,n=Math.floor((e.length+1)/2),l=0,a=e.length-1;for(;!(l>a)&&(t[l++]=e[r++],!(l>a));){;t[l++]=e[n++]}}function g(e,t){if(0x1312f76!=e.getUint32(0,!0))throw Error("Incorrect OpenEXR format");let r=e.getUint8(4),n=e.getUint8(5);t.value=8;let l={},i=!0;for(;i;){let r=f(e.buffer,t);if(r){let n=f(e.buffer,t),i=h(e,t),u=function(e,t,r,n){var l;switch(r){case"string":case"stringvector":case"iccProfile":let i;return l=e.buffer,i=new TextDecoder().decode(new Uint8Array(l).slice(t.value,t.value+n)),t.value=t.value+n,i;case"chlist":return function(e,t,r){let n=t.value,l=[];for(;t.value<n+r-1;){let r=f(e.buffer,t),n=c(e,t),a=d(e,t);t.value+=3;let i=c(e,t),o=c(e,t);l.push({name:r,pixelType:n,pLinear:a,xSampling:i,ySampling:o})}return t.value+=1,l}(e,t,n);case"chromaticities":let o,u,s,p,y,v;return o=w(e,t),u=w(e,t),s=w(e,t),p=w(e,t),y=w(e,t),v=w(e,t),{redX:o,redY:u,greenX:s,greenY:p,blueX:y,blueY:v,whiteX:w(e,t),whiteY:w(e,t)};case"compression":return d(e,t);case"box2i":let b,S;return b=c(e,t),S=c(e,t),{xMin:b,yMin:S,xMax:c(e,t),yMax:c(e,t)};case"lineOrder":return a[d(e,t)];case"float":return w(e,t);case"v2f":return[w(e,t),w(e,t)];case"v3f":let E;return E=w(e,t),[E,w(e,t),w(e,t)];case"int":return c(e,t);case"rational":return[c(e,t),h(e,t)];case"timecode":return[h(e,t),h(e,t)];case"preview":return t.value+=n,"skipped";default:t.value+=n;return}}(e,t,n,i);void 0===u?o.Logger.Warn(`Unknown header attribute type ${n}'.`):l[r]=u}else i=!1}if((-5&n)!=0)throw Error("Unsupported file format");return{version:r,spec:{singleTile:!!(2&n),longName:!!(4&n),deepFormat:!!(8&n),multiPart:!!(16&n)},...l}}(t=l||(l={}))[t.NO_COMPRESSION=0]="NO_COMPRESSION",t[t.RLE_COMPRESSION=1]="RLE_COMPRESSION",t[t.ZIPS_COMPRESSION=2]="ZIPS_COMPRESSION",t[t.ZIP_COMPRESSION=3]="ZIP_COMPRESSION",t[t.PIZ_COMPRESSION=4]="PIZ_COMPRESSION",t[t.PXR24_COMPRESSION=5]="PXR24_COMPRESSION",(r=a||(a={}))[r.INCREASING_Y=0]="INCREASING_Y",r[r.DECREASING_Y=1]="DECREASING_Y";function O(e,t,r,n,l){for(;r<e;)t=t<<8|y(n,l),r+=8;return{l:t>>(r-=e)&(1<<e)-1,c:t,lc:r}}function A(e,t,r,n){return{c:e=e<<8|y(r,n),lc:t+=8}}function C(e,t,r,n,l,a,i,o,u){if(e==t){if(n<8){let e=A(r,n,l,a);r=e.c,n=e.lc}let e=r>>(n-=8);if(e=new Uint8Array([e])[0],o.value+e>u)return null;let t=i[o.value-1];for(;e-- >0;)i[o.value++]=t}else{if(!(o.value<u))return null;i[o.value++]=e}return{c:r,lc:n}}let I=Array(59);function R(e){let t=65535&e;return t>32767?t-65536:t}function M(e,t){let r=R(e),n=R(t),l=r+(1&n)+(n>>1);return{a:l,b:l-n}}function x(e,t){let r=65535&t,n=(65535&e)-(r>>1)&65535;return{a:r+n-32768&65535,b:n}}function m(e){return new DataView(e.array.buffer,e.offset.value,e.size)}function P(e){let t=new Uint8Array(function(e){let t=e.byteLength,r=[],n=0,l=new DataView(e);for(;t>0;){let e=l.getInt8(n++);if(e<0){let a=-e;t-=a+1;for(let e=0;e<a;e++)r.push(l.getUint8(n++))}else{t-=2;let a=l.getUint8(n++);for(let t=0;t<e+1;t++)r.push(a)}}return r}(e.viewer.buffer.slice(e.offset.value,e.offset.value+e.size))),r=new Uint8Array(t.length);return S(t),E(t,r),new DataView(r.buffer)}function U(e){let t=e.array.slice(e.offset.value,e.offset.value+e.size),r=fflate.unzlibSync(t),n=new Uint8Array(r.length);return S(r),E(r,n),new DataView(n.buffer)}function F(e){let t=e.array.slice(e.offset.value,e.offset.value+e.size),r=fflate.unzlibSync(t),n=e.lines*e.channels*e.width,l=1==e.type?new Uint16Array(n):new Uint32Array(n),a=0,i=0,o=[,,,,];for(let t=0;t<e.lines;t++)for(let t=0;t<e.channels;t++){let t=0;switch(e.type){case 1:o[0]=a,o[1]=o[0]+e.width,a=o[1]+e.width;for(let n=0;n<e.width;++n)t+=r[o[0]++]<<8|r[o[1]++],l[i]=t,i++;break;case 2:o[0]=a,o[1]=o[0]+e.width,o[2]=o[1]+e.width,a=o[2]+e.width;for(let n=0;n<e.width;++n)t+=r[o[0]++]<<24|r[o[1]++]<<16|r[o[2]++]<<8,l[i]=t,i++}}return new DataView(l.buffer)}function N(e){let t=e.viewer,r={value:e.offset.value},n=new Uint16Array(e.width*e.scanlineBlockSize*(e.channels*e.type)),l=new Uint8Array(8192),a=0,i=Array(e.channels);for(let t=0;t<e.channels;t++)i[t]={},i[t].start=a,i[t].end=i[t].start,i[t].nx=e.width,i[t].ny=e.lines,i[t].size=e.type,a+=i[t].nx*i[t].ny*i[t].size;let o=p(t,r),u=p(t,r);if(u>=8192)throw Error("Wrong PIZ_COMPRESSION BITMAP_SIZE");if(o<=u)for(let e=0;e<u-o+1;e++)l[e+o]=d(t,r);let s=new Uint16Array(65536),f=function(e,t){let r=0;for(let n=0;n<65536;++n)(0==n||e[n>>3]&1<<(7&n))&&(t[r++]=n);let n=r-1;for(;r<65536;)t[r++]=0;return n}(l,s),c=h(t,r);!function(e,t,r,n,l,a){let i=r.value,o=h(t,r),u=h(t,r);r.value+=4;let s=h(t,r);if(r.value+=4,o<0||o>=65537||u<0||u>=65537)throw Error("Wrong HUF_ENCSIZE");let f=Array(65537),c=Array(16384);for(let e=0;e<16384;e++)c[e]={},c[e].len=0,c[e].lit=0,c[e].p=null;let d=n-(r.value-i);if(!function(e,t,r,n,l,a){let i=0,o=0;for(;n<=l;n++){if(t.value-t.value>r)return;let u=O(6,i,o,e,t),s=u.l;if(i=u.c,o=u.lc,a[n]=s,63==s){if(t.value-t.value>r)throw Error("Error in HufUnpackEncTable");let s=(u=O(8,i,o,e,t)).l+6;if(i=u.c,o=u.lc,n+s>l+1)throw Error("Error in HufUnpackEncTable");for(;s--;)a[n++]=0;n--}else if(s>=59){let e=s-59+2;if(n+e>l+1)throw Error("Error in HufUnpackEncTable");for(;e--;)a[n++]=0;n--}}!function(e){for(let e=0;e<=58;++e)I[e]=0;for(let t=0;t<65537;++t)I[e[t]]+=1;let t=0;for(let e=58;e>0;--e){let r=t+I[e]>>1;I[e]=t,t=r}for(let t=0;t<65537;++t){let r=e[t];r>0&&(e[t]=r|I[r]++<<6)}}(a)}(e,r,d,o,u,f),s>8*(n-(r.value-i)))throw Error("Wrong hufUncompress");!function(e,t,r,n){for(;t<=r;t++){let r=e[t]>>6,l=63&e[t];if(r>>l)throw Error("Invalid table entry");if(l>14){let e=n[r>>l-14];if(e.len)throw Error("Invalid table entry");if(e.lit++,e.p){let t=e.p;e.p=Array(e.lit);for(let r=0;r<e.lit-1;++r)e.p[r]=t[r]}else e.p=[,];e.p[e.lit-1]=t}else if(l){let e=0;for(let a=1<<14-l;a>0;a--){let a=n[(r<<14-l)+e];if(a.len||a.p)throw Error("Invalid table entry");a.len=l,a.lit=t,e++}}}}(f,o,u,c),function(e,t,r,n,l,a,i,o,u){let s=0,f=0,c=Math.trunc(n.value+(l+7)/8);for(;n.value<c;){let l=A(s,f,r,n);for(s=l.c,f=l.lc;f>=14;){let h=t[s>>f-14&16383];if(h.len){f-=h.len;let e=C(h.lit,a,s,f,r,n,o,u,i);e&&(s=e.c,f=e.lc)}else{let t;if(!h.p)throw Error("hufDecode issues");for(t=0;t<h.lit;t++){let d=63&e[h.p[t]];for(;f<d&&n.value<c;)s=(l=A(s,f,r,n)).c,f=l.lc;if(f>=d&&e[h.p[t]]>>6==(s>>f-d&(1<<d)-1)){f-=d;let e=C(h.p[t],a,s,f,r,n,o,u,i);e&&(s=e.c,f=e.lc);break}}if(t==h.lit)throw Error("HufDecode issues")}}}let h=8-l&7;for(s>>=h,f-=h;f>0;){let e=t[s<<14-f&16383];if(e.len){f-=e.len;let t=C(e.lit,a,s,f,r,n,o,u,i);t&&(s=t.c,f=t.lc)}else throw Error("HufDecode issues")}}(f,c,e,r,s,u,a,l,{value:0})}(e.array,t,r,c,n,a);for(let t=0;t<e.channels;++t){let e=i[t];for(let r=0;r<i[t].size;++r)!function(e,t,r,n,l,a,i){let o,u,s=i<16384,f=r>l?l:r,c=1;for(;c<=f;)c<<=1;for(c>>=1,o=c,c>>=1;c>=1;){let i,f,h,d,p=(u=0)+a*(l-o),y=a*c,w=a*o,v=n*c,b=n*o;for(;u<=p;u+=w){let l=u,a=u+n*(r-o);for(;l<=a;l+=b){let r=l+v,n=l+y,a=n+v;if(s){let o=M(e[l+t],e[n+t]);i=o.a,h=o.b,f=(o=M(e[r+t],e[a+t])).a,d=o.b,o=M(i,f),e[l+t]=o.a,e[r+t]=o.b,o=M(h,d),e[n+t]=o.a,e[a+t]=o.b}else{let o=x(e[l+t],e[n+t]);i=o.a,h=o.b,f=(o=x(e[r+t],e[a+t])).a,d=o.b,o=x(i,f),e[l+t]=o.a,e[r+t]=o.b,o=x(h,d),e[n+t]=o.a,e[a+t]=o.b}}if(r&c){let r,n=l+y;i=(r=s?M(e[l+t],e[n+t]):x(e[l+t],e[n+t])).a,e[n+t]=r.b,e[l+t]=i}}if(l&c){let l=u,a=u+n*(r-o);for(;l<=a;l+=b){let r,n=l+v;i=(r=s?M(e[l+t],e[n+t]):x(e[l+t],e[n+t])).a,e[n+t]=r.b,e[l+t]=i}}o=c,c>>=1}}(n,e.start+r,e.nx,e.size,e.ny,e.nx*e.size,f)}var y=a;for(let e=0;e<y;++e)n[e]=s[n[e]];let w=0,v=new Uint8Array(n.buffer.byteLength);for(let t=0;t<e.lines;t++)for(let t=0;t<e.channels;t++){let e=i[t],r=e.nx*e.size,l=new Uint8Array(n.buffer,2*e.end,2*r);v.set(l,w),w+=2*r,e.end+=r}return new DataView(v.buffer)}var T=e.i(29711);(n=i||(i={}))[n.Float=0]="Float",n[n.HalfFloat=1]="HalfFloat";class k{}async function z(e,t,r,n){let a={size:0,viewer:t,array:new Uint8Array(t.buffer),offset:r,width:e.dataWindow.xMax-e.dataWindow.xMin+1,height:e.dataWindow.yMax-e.dataWindow.yMin+1,channels:e.channels.length,channelLineOffsets:{},scanOrder:()=>0,bytesPerLine:0,outLineWidth:0,lines:0,scanlineBlockSize:0,inputSize:null,type:0,uncompress:null,getter:()=>0,format:5,outputChannels:0,decodeChannels:{},blockCount:null,byteArray:null,linearSpace:!1,textureType:0};switch(e.compression){case l.NO_COMPRESSION:a.lines=1,a.uncompress=m;break;case l.RLE_COMPRESSION:a.lines=1,a.uncompress=P;break;case l.ZIPS_COMPRESSION:a.lines=1,a.uncompress=U,await T.Tools.LoadScriptAsync(k.FFLATEUrl);break;case l.ZIP_COMPRESSION:a.lines=16,a.uncompress=U,await T.Tools.LoadScriptAsync(k.FFLATEUrl);break;case l.PIZ_COMPRESSION:a.lines=32,a.uncompress=N;break;case l.PXR24_COMPRESSION:a.lines=16,a.uncompress=F,await T.Tools.LoadScriptAsync(k.FFLATEUrl);break;default:throw Error(l[e.compression]+" is unsupported")}a.scanlineBlockSize=a.lines;let o={};for(let t of e.channels)switch(t.name){case"R":case"G":case"B":case"A":case"Y":o[t.name]=!0,a.type=t.pixelType}let u=!1;if(o.R&&o.G&&o.B&&o.A)a.outputChannels=4,a.decodeChannels={R:0,G:1,B:2,A:3};else if(o.R&&o.G&&o.B)u=!0,a.outputChannels=4,a.decodeChannels={R:0,G:1,B:2,A:3};else if(o.R&&o.G)a.outputChannels=2,a.decodeChannels={R:0,G:1};else if(o.R)a.outputChannels=1,a.decodeChannels={R:0};else if(o.Y)a.outputChannels=1,a.decodeChannels={Y:0};else throw Error("EXRLoader.parse: file contains unsupported data channels.");if(1===a.type)switch(n){case i.Float:a.getter=v,a.inputSize=2;break;case i.HalfFloat:a.getter=p,a.inputSize=2}else if(2===a.type)switch(n){case i.Float:a.getter=w,a.inputSize=4;break;case i.HalfFloat:a.getter=b,a.inputSize=4}else throw Error("Unsupported pixelType "+a.type+" for "+e.compression);a.blockCount=a.height/a.scanlineBlockSize;for(let e=0;e<a.blockCount;e++)!function(e,t){"getBigInt64"in DataView.prototype?e.getBigInt64(t.value,!0):(e.getUint32(t.value+4,!0),e.getUint32(t.value,!0)),t.value+=8}(t,r);let s=a.width*a.height*a.outputChannels;switch(n){case i.Float:a.byteArray=new Float32Array(s),a.textureType=1,u&&a.byteArray.fill(1,0,s);break;case i.HalfFloat:a.byteArray=new Uint16Array(s),a.textureType=2,u&&a.byteArray.fill(15360,0,s);break;default:throw Error("Unsupported type: "+n)}let f=0;for(let t of e.channels)void 0!==a.decodeChannels[t.name]&&(a.channelLineOffsets[t.name]=f*a.width),f+=2*t.pixelType;return a.bytesPerLine=a.width*f,a.outLineWidth=a.width*a.outputChannels,"INCREASING_Y"===e.lineOrder?a.scanOrder=e=>e:a.scanOrder=e=>a.height-1-e,4==a.outputChannels?(a.format=5,a.linearSpace=!0):(a.format=6,a.linearSpace=!1),a}function L(e,t,r,n){let l={value:0};for(let a=0;a<e.height/e.scanlineBlockSize;a++){let i=c(r,n)-t.dataWindow.yMin;e.size=h(r,n),e.lines=i+e.scanlineBlockSize>e.height?e.height-i:e.scanlineBlockSize;let o=e.size<e.lines*e.bytesPerLine&&e.uncompress?e.uncompress(e):m(e);n.value+=e.size;for(let r=0;r<e.scanlineBlockSize;r++){let n=a*e.scanlineBlockSize,i=r+e.scanOrder(n);if(i>=e.height)continue;let u=r*e.bytesPerLine,s=(e.height-1-i)*e.outLineWidth;for(let r=0;r<e.channels;r++){let n=t.channels[r].name,a=e.channelLineOffsets[n],i=e.decodeChannels[n];if(void 0!==i){l.value=u+a;for(let t=0;t<e.width;t++){let r=s+t*e.outputChannels+i;e.byteArray&&(e.byteArray[r]=e.getter(o,l))}}}}}}async function _(e){let t=new DataView(e),r={value:0},n=g(t,r);try{let e=await z(n,t,r,i.Float);if(L(e,n,t,r),!e.byteArray)return o.Logger.Error("Failed to decode EXR data: No byte array available."),{width:0,height:0,data:null};return{width:n.dataWindow.xMax-n.dataWindow.xMin+1,height:n.dataWindow.yMax-n.dataWindow.yMin+1,data:new Float32Array(e.byteArray)}}catch(e){o.Logger.Error("Failed to load EXR data: ",e)}return{width:0,height:0,data:null}}k.DefaultOutputType=i.HalfFloat,k.FFLATEUrl="https://unpkg.com/fflate@0.8.2",e.s(["ReadExrDataAsync",0,_,"_ExrTextureLoader",0,class{constructor(){this.supportCascades=!1}loadCubeData(e,t,r,n,l){throw".exr not supported in Cube."}loadData(e,t,r){let n=new DataView(e.buffer),l={value:0},a=g(n,l);z(a,n,l,k.DefaultOutputType).then(e=>{L(e,a,n,l),r(a.dataWindow.xMax-a.dataWindow.xMin+1,a.dataWindow.yMax-a.dataWindow.yMin+1,t.generateMipMaps,!1,()=>{let r=t.getEngine();t.format=a.format,t.type=e.textureType,t.invertY=!1,t._gammaSpace=!a.linearSpace,e.byteArray&&r._uploadDataToTextureDirectly(t,e.byteArray,0,0,void 0,!0)})}).catch(e=>{o.Logger.Error("Failed to load EXR texture: ",e)})}}],8051)}]);
@@ -1,4 +1,4 @@
1
- (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,88647,e=>{"use strict";var r=e.i(12423);let t="passCubePixelShader",u=`varying vec2 vUV;uniform samplerCube textureSampler;
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,31151,e=>{"use strict";var r=e.i(1719);let t="passCubePixelShader",u=`varying vec2 vUV;uniform samplerCube textureSampler;
2
2
  #define CUSTOM_FRAGMENT_DEFINITIONS
3
3
  void main(void)
4
4
  {vec2 uv=vUV*2.0-1.0;
@@ -0,0 +1 @@
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,53259,t=>{"use strict";var e=t.i(95330),i=t.i(82350),o=t.i(48477);class r extends e.FlowGraphExecutionBlockWithOutSignal{constructor(t){super(t),this.body=this.registerDataInput("body",i.RichTypeAny),this.velocity=this.registerDataInput("velocity",i.RichTypeVector3)}_execute(t,e){let i=this.body.getValue(t);if(!i){this._reportError(t,"No physics body provided"),this.out._activateSignal(t);return}i.setLinearVelocity(this.velocity.getValue(t)),this.out._activateSignal(t)}getClassName(){return"FlowGraphSetLinearVelocityBlock"}}let l=!1;function c(){l||(l=!0,(0,o.RegisterClass)("FlowGraphSetLinearVelocityBlock",r))}t.s(["FlowGraphSetLinearVelocityBlock",0,r,"RegisterFlowGraphSetLinearVelocityBlock",0,c],47862),c(),t.s([],46442),t.i(46442),t.i(47862),t.s(["FlowGraphSetLinearVelocityBlock",0,r],53259)}]);
@@ -0,0 +1 @@
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,52344,45515,7612,70025,4760,47044,72014,e=>{"use strict";var t,i=e.i(16147),r=e.i(40220),s=e.i(29711),n=e.i(57554),a=e.i(47867),l=e.i(65703),o=e.i(4812),h=e.i(27745),c=e.i(10534),u=e.i(26722);class d{constructor(e,t,i){this.vectors=(0,h.BuildArray)(8,c.Vector3.Zero),this.center=c.Vector3.Zero(),this.centerWorld=c.Vector3.Zero(),this.extendSize=c.Vector3.Zero(),this.extendSizeWorld=c.Vector3.Zero(),this.directions=(0,h.BuildArray)(3,c.Vector3.Zero),this.vectorsWorld=(0,h.BuildArray)(8,c.Vector3.Zero),this.minimumWorld=c.Vector3.Zero(),this.maximumWorld=c.Vector3.Zero(),this.minimum=c.Vector3.Zero(),this.maximum=c.Vector3.Zero(),this._drawWrapperFront=null,this._drawWrapperBack=null,this.reConstruct(e,t,i)}reConstruct(e,t,i){let r=e.x,s=e.y,n=e.z,a=t.x,l=t.y,o=t.z,h=this.vectors;this.minimum.copyFromFloats(r,s,n),this.maximum.copyFromFloats(a,l,o),h[0].copyFromFloats(r,s,n),h[1].copyFromFloats(a,l,o),h[2].copyFromFloats(a,s,n),h[3].copyFromFloats(r,l,n),h[4].copyFromFloats(r,s,o),h[5].copyFromFloats(a,l,n),h[6].copyFromFloats(r,l,o),h[7].copyFromFloats(a,s,o),t.addToRef(e,this.center).scaleInPlace(.5),t.subtractToRef(e,this.extendSize).scaleInPlace(.5),this._worldMatrix=i||c.Matrix.IdentityReadOnly,this._update(this._worldMatrix)}scale(e){let t=d._TmpVector3,i=this.maximum.subtractToRef(this.minimum,t[0]),r=i.length();i.normalizeFromLength(r);let s=r*e,n=i.scaleInPlace(.5*s),a=this.center.subtractToRef(n,t[1]),l=this.center.addToRef(n,t[2]);return this.reConstruct(a,l,this._worldMatrix),this}getWorldMatrix(){return this._worldMatrix}_update(e){let t=this.minimumWorld,i=this.maximumWorld,r=this.directions,s=this.vectorsWorld,n=this.vectors;if(e.isIdentity()){t.copyFrom(this.minimum),i.copyFrom(this.maximum);for(let e=0;e<8;++e)s[e].copyFrom(n[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 a=s[r];c.Vector3.TransformCoordinatesToRef(n[r],e,a),t.minimizeInPlace(a),i.maximizeInPlace(a)}i.subtractToRef(t,this.extendSizeWorld).scaleInPlace(.5),i.addToRef(t,this.centerWorld).scaleInPlace(.5)}c.Vector3.FromArrayToRef(e.m,0,r[0]),c.Vector3.FromArrayToRef(e.m,4,r[1]),c.Vector3.FromArrayToRef(e.m,8,r[2]),this._worldMatrix=e}isInFrustum(e){return d.IsInFrustum(this.vectorsWorld,e)}isCompletelyInFrustum(e){return d.IsCompletelyInFrustum(this.vectorsWorld,e)}intersectsPoint(e){let t=this.minimumWorld,i=this.maximumWorld,r=t.x,s=t.y,n=t.z,a=i.x,l=i.y,o=i.z,h=e.x,c=e.y,d=e.z,_=-u.Epsilon;return!(a-h<_)&&!(_>h-r)&&!(l-c<_)&&!(_>c-s)&&!(o-d<_)&&!(_>d-n)}intersectsSphere(e){return d.IntersectsSphere(this.minimumWorld,this.maximumWorld,e.centerWorld,e.radiusWorld)}intersectsMinMax(e,t){let i=this.minimumWorld,r=this.maximumWorld,s=i.x,n=i.y,a=i.z,l=r.x,o=r.y,h=r.z,c=e.x,u=e.y,d=e.z,_=t.x,p=t.y,E=t.z;return!(l<c)&&!(s>_)&&!(o<u)&&!(n>p)&&!(h<d)&&!(a>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=d._TmpVector3[0];return c.Vector3.ClampToRef(i,e,t,s),c.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}}d._TmpVector3=(0,h.BuildArray)(3,c.Vector3.Zero);class _{constructor(e,t,i){this.center=c.Vector3.Zero(),this.centerWorld=c.Vector3.Zero(),this.minimum=c.Vector3.Zero(),this.maximum=c.Vector3.Zero(),this.reConstruct(e,t,i)}reConstruct(e,t,i){this.minimum.copyFrom(e),this.maximum.copyFrom(t);let r=c.Vector3.Distance(e,t);t.addToRef(e,this.center).scaleInPlace(.5),this.radius=.5*r,this._update(i||c.Matrix.IdentityReadOnly)}scale(e){let t=this.radius*e,i=_._TmpVector3,r=i[0].setAll(t),s=this.center.subtractToRef(r,i[1]),n=this.center.addToRef(r,i[2]);return this.reConstruct(s,n,this._worldMatrix),this}getWorldMatrix(){return this._worldMatrix}_update(e){if(e.isIdentity())this.centerWorld.copyFrom(this.center),this.radiusWorld=this.radius;else{c.Vector3.TransformCoordinatesToRef(this.center,e,this.centerWorld);let t=_._TmpVector3[0];c.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=c.Vector3.DistanceSquared(this.centerWorld,e);return!(this.radiusWorld*this.radiusWorld<t)}static Intersects(e,t){let i=c.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 _(this._TmpVector3[0],this._TmpVector3[2]);return i?r._worldMatrix=i:r._worldMatrix=c.Matrix.Identity(),r}}_._TmpVector3=(0,h.BuildArray)(3,c.Vector3.Zero);let p={min:0,max:0},E={min:0,max:0},A=(e,t,i)=>{let r=c.Vector3.Dot(t.centerWorld,e),s=Math.abs(c.Vector3.Dot(t.directions[0],e))*t.extendSize.x+Math.abs(c.Vector3.Dot(t.directions[1],e))*t.extendSize.y+Math.abs(c.Vector3.Dot(t.directions[2],e))*t.extendSize.z;i.min=r-s,i.max=r+s},T=(e,t,i)=>(A(e,t,p),A(e,i,E),!(p.min>E.max||E.min>p.max));class f{constructor(e,t,i){this._isLocked=!1,this.boundingBox=new d(e,t,i),this.boundingSphere=new _(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=f._TmpVector3[0].copyFrom(e).subtractInPlace(t),r=f._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=c.Vector3.Minimize(this.minimum,e),i=c.Vector3.Maximize(this.maximum,e);return this.reConstruct(t,i,this.boundingBox.getWorldMatrix()),this}encapsulateBoundingInfo(e){let t=c.TmpVectors.Matrix[0];this.boundingBox.getWorldMatrix().invertToRef(t);let i=c.TmpVectors.Vector3[0];return c.Vector3.TransformCoordinatesToRef(e.boundingBox.minimumWorld,t,i),this.encapsulate(i),c.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,f._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(!_.Intersects(this.boundingSphere,e.boundingSphere)||!d.Intersects(this.boundingBox,e.boundingBox))return!1;if(!t)return!0;let i=this.boundingBox,r=e.boundingBox;return!!T(i.directions[0],i,r)&&!!T(i.directions[1],i,r)&&!!T(i.directions[2],i,r)&&!!T(r.directions[0],i,r)&&!!T(r.directions[1],i,r)&&!!T(r.directions[2],i,r)&&!!T(c.Vector3.Cross(i.directions[0],r.directions[0]),i,r)&&!!T(c.Vector3.Cross(i.directions[0],r.directions[1]),i,r)&&!!T(c.Vector3.Cross(i.directions[0],r.directions[2]),i,r)&&!!T(c.Vector3.Cross(i.directions[1],r.directions[0]),i,r)&&!!T(c.Vector3.Cross(i.directions[1],r.directions[1]),i,r)&&!!T(c.Vector3.Cross(i.directions[1],r.directions[2]),i,r)&&!!T(c.Vector3.Cross(i.directions[2],r.directions[0]),i,r)&&!!T(c.Vector3.Cross(i.directions[2],r.directions[1]),i,r)&&!!T(c.Vector3.Cross(i.directions[2],r.directions[2]),i,r)&&!0}}f._TmpVector3=(0,h.BuildArray)(2,c.Vector3.Zero),e.s(["BoundingInfo",0,f],45515);class m{static extractMinAndMaxIndexed(e,t,i,r,s,n){for(let a=i;a<i+r;a++){let i=3*t[a],r=e[i],l=e[i+1],o=e[i+2];s.minimizeInPlaceFromFloats(r,l,o),n.maximizeInPlaceFromFloats(r,l,o)}}static extractMinAndMax(e,t,i,r,s,n){for(let a=t,l=t*r;a<t+i;a++,l+=r){let t=e[l],i=e[l+1],r=e[l+2];s.minimizeInPlaceFromFloats(t,i,r),n.maximizeInPlaceFromFloats(t,i,r)}}}function g(e,t,i,r,s=null){let n=new c.Vector3(Number.MAX_VALUE,Number.MAX_VALUE,Number.MAX_VALUE),a=new c.Vector3(-Number.MAX_VALUE,-Number.MAX_VALUE,-Number.MAX_VALUE);return m.extractMinAndMaxIndexed(e,t,i,r,n,a),s&&(n.x-=n.x*s.x+s.y,n.y-=n.y*s.x+s.y,n.z-=n.z*s.x+s.y,a.x+=a.x*s.x+s.y,a.y+=a.y*s.x+s.y,a.z+=a.z*s.x+s.y),{minimum:n,maximum:a}}(0,i.__decorate)([r.nativeOverride.filter((...e)=>!Array.isArray(e[0])&&!Array.isArray(e[1]))],m,"extractMinAndMaxIndexed",null),(0,i.__decorate)([r.nativeOverride.filter((...e)=>!Array.isArray(e[0]))],m,"extractMinAndMax",null),e.s(["extractMinAndMax",0,function(e,t,i,r=null,s){let n=new c.Vector3(Number.MAX_VALUE,Number.MAX_VALUE,Number.MAX_VALUE),a=new c.Vector3(-Number.MAX_VALUE,-Number.MAX_VALUE,-Number.MAX_VALUE);return s||(s=3),m.extractMinAndMax(e,t,i,s,n,a),r&&(n.x-=n.x*r.x+r.y,n.y-=n.y*r.x+r.y,n.z-=n.z*r.x+r.y,a.x+=a.x*r.x+r.y,a.y+=a.y*r.x+r.y,a.z+=a.z*r.x+r.y),{minimum:n,maximum:a}},"extractMinAndMaxIndexed",0,g],7612);var S=e.i(52572),M=e.i(54670);class b{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 S.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,n,a,l=!0){return new b(e,t,i,r,s,n,a,l)}constructor(e,t,i,r,s,n,a,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=n,this._renderingMesh=a||n,o&&n.subMeshes.push(this),this._engine=this._mesh.getScene().getEngine(),this.resetDrawCache(),this._trianglePlanes=[],this._id=n.subMeshes.length-1,l&&(this.refreshBoundingInfo(),n.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(l.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=g(e,i,this.indexStart,this.indexCount,this._renderingMesh.geometry.boundingBias);return this._boundingInfo?this._boundingInfo.reConstruct(t.minimum,t.maximum):this._boundingInfo=new f(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 n=this.getMaterial();if(!n)return null;let a=3,l=!1;switch(n.fillMode){case 3:case 5:case 6:case 8:return null;case 7:a=1,l=!0}return 4===n.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,a,l,r,s)}_intersectLines(e,t,i,r,s){let n=null;for(let a=this.indexStart;a<this.indexStart+this.indexCount;a+=2){let l=t[i[a]],h=t[i[a+1]],c=e.intersectionSegment(l,h,r);if(!(c<0)&&(s||!n||c<n.distance)&&((n=new o.IntersectionInfo(null,null,c)).faceId=a/2,s))break}return n}_intersectUnIndexedLines(e,t,i,r,s){let n=null;for(let i=this.verticesStart;i<this.verticesStart+this.verticesCount;i+=2){let a=t[i],l=t[i+1],h=e.intersectionSegment(a,l,r);if(!(h<0)&&(s||!n||h<n.distance)&&((n=new o.IntersectionInfo(null,null,h)).faceId=i/2,s))break}return n}_intersectTriangles(e,t,i,r,s,n,a){let l=null,o=-1;for(let h=this.indexStart;h<this.indexStart+this.indexCount-(3-r);h+=r){o++;let r=i[h],c=i[h+1],u=i[h+2];if(s&&0xffffffff===u){h+=2;continue}let d=t[r],_=t[c],p=t[u];if(!d||!_||!p||a&&!a(d,_,p,e,r,c,u))continue;let E=e.intersectsTriangle(d,_,p);if(E){if(E.distance<0)continue;if((n||!l||E.distance<l.distance)&&((l=E).faceId=o,n))break}}return l}_intersectUnIndexedTriangles(e,t,i,r,s){let n=null;for(let i=this.verticesStart;i<this.verticesStart+this.verticesCount;i+=3){let a=t[i],l=t[i+1],o=t[i+2];if(s&&!s(a,l,o,e,-1,-1,-1))continue;let h=e.intersectsTriangle(a,l,o);if(h){if(h.distance<0)continue;if((r||!n||h.distance<n.distance)&&((n=h).faceId=i/3,r))break}}return n}_rebuild(){this._linesIndexBuffer&&(this._linesIndexBuffer=null)}clone(e,t){let i=new b(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 f(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,n=!0){let a=Number.MAX_VALUE,l=-Number.MAX_VALUE,o=(s||r).getIndices();for(let e=t;e<t+i;e++){let t=o[e];t<a&&(a=t),t>l&&(l=t)}return new b(e,a,l-a+1,t,i,r,s,n)}}(t=b.prototype).projectToRef??(t.projectToRef=(0,M._MissingSideEffect)("SubMesh","projectToRef")),e.s(["SubMesh",0,b],70025);var I=e.i(39766),R=e.i(83464),P=e.i(38677),C=e.i(95397);class x{constructor(){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){C.SerializationHelper.Clone(()=>e,this)}serialize(){return C.SerializationHelper.Serialize(this)}parse(e,t,i){C.SerializationHelper.Parse(()=>this,e,t,i)}}(0,i.__decorate)([(0,r.serialize)()],x.prototype,"func",null),(0,i.__decorate)([(0,r.serialize)()],x.prototype,"backFunc",null),(0,i.__decorate)([(0,r.serialize)()],x.prototype,"funcRef",null),(0,i.__decorate)([(0,r.serialize)()],x.prototype,"funcMask",null),(0,i.__decorate)([(0,r.serialize)()],x.prototype,"opStencilFail",null),(0,i.__decorate)([(0,r.serialize)()],x.prototype,"opDepthFail",null),(0,i.__decorate)([(0,r.serialize)()],x.prototype,"opStencilDepthPass",null),(0,i.__decorate)([(0,r.serialize)()],x.prototype,"backOpStencilFail",null),(0,i.__decorate)([(0,r.serialize)()],x.prototype,"backOpDepthFail",null),(0,i.__decorate)([(0,r.serialize)()],x.prototype,"backOpStencilDepthPass",null),(0,i.__decorate)([(0,r.serialize)()],x.prototype,"mask",null),(0,i.__decorate)([(0,r.serialize)()],x.prototype,"enabled",null);var D=e.i(86143),O=e.i(41777);function y(e,t,i){let r=!1,s=!!(e.clipPlane??t.clipPlane),n=!!(e.clipPlane2??t.clipPlane2),a=!!(e.clipPlane3??t.clipPlane3),l=!!(e.clipPlane4??t.clipPlane4),o=!!(e.clipPlane5??t.clipPlane5),h=!!(e.clipPlane6??t.clipPlane6);return i.CLIPPLANE!==s&&(i.CLIPPLANE=s,r=!0),i.CLIPPLANE2!==n&&(i.CLIPPLANE2=n,r=!0),i.CLIPPLANE3!==a&&(i.CLIPPLANE3=a,r=!0),i.CLIPPLANE4!==l&&(i.CLIPPLANE4=l,r=!0),i.CLIPPLANE5!==o&&(i.CLIPPLANE5=o,r=!0),i.CLIPPLANE6!==h&&(i.CLIPPLANE6=h,r=!0),r}function L(e,t,i){if(i){let r=O.FloatingOriginCurrentScene.getScene()?.floatingOriginOffset||c.Vector3.ZeroReadOnly;e.setFloat4(t,i.normal.x,i.normal.y,i.normal.z,i.d+c.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;L(e,"vClipPlane",r),L(e,"vClipPlane2",r=t.clipPlane2??i.clipPlane2),L(e,"vClipPlane3",r=t.clipPlane3??i.clipPlane3),L(e,"vClipPlane4",r=t.clipPlane4??i.clipPlane4),L(e,"vClipPlane5",r=t.clipPlane5??i.clipPlane5),L(e,"vClipPlane6",r=t.clipPlane6??i.clipPlane6)},"PrepareDefinesForClipPlanes",0,y,"PrepareStringDefinesForClipPlanes",0,function(e,t,i){let r=!!(e.clipPlane??t.clipPlane),s=!!(e.clipPlane2??t.clipPlane2),n=!!(e.clipPlane3??t.clipPlane3),a=!!(e.clipPlane4??t.clipPlane4),l=!!(e.clipPlane5??t.clipPlane5),o=!!(e.clipPlane6??t.clipPlane6);r&&i.push("#define CLIPPLANE"),s&&i.push("#define CLIPPLANE2"),n&&i.push("#define CLIPPLANE3"),a&&i.push("#define CLIPPLANE4"),l&&i.push("#define CLIPPLANE5"),o&&i.push("#define CLIPPLANE6")}],4760);var F=e.i(20307);class N{static get DiffuseTextureEnabled(){return this._DiffuseTextureEnabled}static set DiffuseTextureEnabled(e){this._DiffuseTextureEnabled!==e&&(this._DiffuseTextureEnabled=e,F.AbstractEngine.MarkAllMaterialsAsDirty(1))}static get BaseWeightTextureEnabled(){return this._BaseWeightTextureEnabled}static set BaseWeightTextureEnabled(e){this._BaseWeightTextureEnabled!==e&&(this._BaseWeightTextureEnabled=e,F.AbstractEngine.MarkAllMaterialsAsDirty(1))}static get BaseDiffuseRoughnessTextureEnabled(){return this._BaseDiffuseRoughnessTextureEnabled}static set BaseDiffuseRoughnessTextureEnabled(e){this._BaseDiffuseRoughnessTextureEnabled!==e&&(this._BaseDiffuseRoughnessTextureEnabled=e,F.AbstractEngine.MarkAllMaterialsAsDirty(1))}static get DetailTextureEnabled(){return this._DetailTextureEnabled}static set DetailTextureEnabled(e){this._DetailTextureEnabled!==e&&(this._DetailTextureEnabled=e,F.AbstractEngine.MarkAllMaterialsAsDirty(1))}static get DecalMapEnabled(){return this._DecalMapEnabled}static set DecalMapEnabled(e){this._DecalMapEnabled!==e&&(this._DecalMapEnabled=e,F.AbstractEngine.MarkAllMaterialsAsDirty(1))}static get AmbientTextureEnabled(){return this._AmbientTextureEnabled}static set AmbientTextureEnabled(e){this._AmbientTextureEnabled!==e&&(this._AmbientTextureEnabled=e,F.AbstractEngine.MarkAllMaterialsAsDirty(1))}static get OpacityTextureEnabled(){return this._OpacityTextureEnabled}static set OpacityTextureEnabled(e){this._OpacityTextureEnabled!==e&&(this._OpacityTextureEnabled=e,F.AbstractEngine.MarkAllMaterialsAsDirty(1))}static get ReflectionTextureEnabled(){return this._ReflectionTextureEnabled}static set ReflectionTextureEnabled(e){this._ReflectionTextureEnabled!==e&&(this._ReflectionTextureEnabled=e,F.AbstractEngine.MarkAllMaterialsAsDirty(1))}static get EmissiveTextureEnabled(){return this._EmissiveTextureEnabled}static set EmissiveTextureEnabled(e){this._EmissiveTextureEnabled!==e&&(this._EmissiveTextureEnabled=e,F.AbstractEngine.MarkAllMaterialsAsDirty(1))}static get SpecularTextureEnabled(){return this._SpecularTextureEnabled}static set SpecularTextureEnabled(e){this._SpecularTextureEnabled!==e&&(this._SpecularTextureEnabled=e,F.AbstractEngine.MarkAllMaterialsAsDirty(1))}static get BumpTextureEnabled(){return this._BumpTextureEnabled}static set BumpTextureEnabled(e){this._BumpTextureEnabled!==e&&(this._BumpTextureEnabled=e,F.AbstractEngine.MarkAllMaterialsAsDirty(1))}static get LightmapTextureEnabled(){return this._LightmapTextureEnabled}static set LightmapTextureEnabled(e){this._LightmapTextureEnabled!==e&&(this._LightmapTextureEnabled=e,F.AbstractEngine.MarkAllMaterialsAsDirty(1))}static get RefractionTextureEnabled(){return this._RefractionTextureEnabled}static set RefractionTextureEnabled(e){this._RefractionTextureEnabled!==e&&(this._RefractionTextureEnabled=e,F.AbstractEngine.MarkAllMaterialsAsDirty(1))}static get ColorGradingTextureEnabled(){return this._ColorGradingTextureEnabled}static set ColorGradingTextureEnabled(e){this._ColorGradingTextureEnabled!==e&&(this._ColorGradingTextureEnabled=e,F.AbstractEngine.MarkAllMaterialsAsDirty(1))}static get FresnelEnabled(){return this._FresnelEnabled}static set FresnelEnabled(e){this._FresnelEnabled!==e&&(this._FresnelEnabled=e,F.AbstractEngine.MarkAllMaterialsAsDirty(4))}static get ClearCoatTextureEnabled(){return this._ClearCoatTextureEnabled}static set ClearCoatTextureEnabled(e){this._ClearCoatTextureEnabled!==e&&(this._ClearCoatTextureEnabled=e,F.AbstractEngine.MarkAllMaterialsAsDirty(1))}static get ClearCoatBumpTextureEnabled(){return this._ClearCoatBumpTextureEnabled}static set ClearCoatBumpTextureEnabled(e){this._ClearCoatBumpTextureEnabled!==e&&(this._ClearCoatBumpTextureEnabled=e,F.AbstractEngine.MarkAllMaterialsAsDirty(1))}static get ClearCoatTintTextureEnabled(){return this._ClearCoatTintTextureEnabled}static set ClearCoatTintTextureEnabled(e){this._ClearCoatTintTextureEnabled!==e&&(this._ClearCoatTintTextureEnabled=e,F.AbstractEngine.MarkAllMaterialsAsDirty(1))}static get SheenTextureEnabled(){return this._SheenTextureEnabled}static set SheenTextureEnabled(e){this._SheenTextureEnabled!==e&&(this._SheenTextureEnabled=e,F.AbstractEngine.MarkAllMaterialsAsDirty(1))}static get AnisotropicTextureEnabled(){return this._AnisotropicTextureEnabled}static set AnisotropicTextureEnabled(e){this._AnisotropicTextureEnabled!==e&&(this._AnisotropicTextureEnabled=e,F.AbstractEngine.MarkAllMaterialsAsDirty(1))}static get ThicknessTextureEnabled(){return this._ThicknessTextureEnabled}static set ThicknessTextureEnabled(e){this._ThicknessTextureEnabled!==e&&(this._ThicknessTextureEnabled=e,F.AbstractEngine.MarkAllMaterialsAsDirty(1))}static get RefractionIntensityTextureEnabled(){return this._ThicknessTextureEnabled}static set RefractionIntensityTextureEnabled(e){this._RefractionIntensityTextureEnabled!==e&&(this._RefractionIntensityTextureEnabled=e,F.AbstractEngine.MarkAllMaterialsAsDirty(1))}static get TranslucencyIntensityTextureEnabled(){return this._TranslucencyIntensityTextureEnabled}static set TranslucencyIntensityTextureEnabled(e){this._TranslucencyIntensityTextureEnabled!==e&&(this._TranslucencyIntensityTextureEnabled=e,F.AbstractEngine.MarkAllMaterialsAsDirty(1))}static get TranslucencyColorTextureEnabled(){return this._TranslucencyColorTextureEnabled}static set TranslucencyColorTextureEnabled(e){this._TranslucencyColorTextureEnabled!==e&&(this._TranslucencyColorTextureEnabled=e,F.AbstractEngine.MarkAllMaterialsAsDirty(1))}static get IridescenceTextureEnabled(){return this._IridescenceTextureEnabled}static set IridescenceTextureEnabled(e){this._IridescenceTextureEnabled!==e&&(this._IridescenceTextureEnabled=e,F.AbstractEngine.MarkAllMaterialsAsDirty(1))}}N._DiffuseTextureEnabled=!0,N._BaseWeightTextureEnabled=!0,N._BaseDiffuseRoughnessTextureEnabled=!0,N._DetailTextureEnabled=!0,N._DecalMapEnabled=!0,N._AmbientTextureEnabled=!0,N._OpacityTextureEnabled=!0,N._ReflectionTextureEnabled=!0,N._EmissiveTextureEnabled=!0,N._SpecularTextureEnabled=!0,N._BumpTextureEnabled=!0,N._LightmapTextureEnabled=!0,N._RefractionTextureEnabled=!0,N._ColorGradingTextureEnabled=!0,N._FresnelEnabled=!0,N._ClearCoatTextureEnabled=!0,N._ClearCoatBumpTextureEnabled=!0,N._ClearCoatTintTextureEnabled=!0,N._SheenTextureEnabled=!0,N._AnisotropicTextureEnabled=!0,N._ThicknessTextureEnabled=!0,N._RefractionIntensityTextureEnabled=!0,N._TranslucencyIntensityTextureEnabled=!0,N._TranslucencyColorTextureEnabled=!0,N._IridescenceTextureEnabled=!0,e.s(["MaterialFlags",0,N],47044);let v={r:0,g:0,b:0},B={NUM_MORPH_INFLUENCERS:0,NORMAL:!1,TANGENT:!1,UV:!1,UV2:!1,COLOR:!1};function k(e,t,i,r=!0){let s=i.NUM_MORPH_INFLUENCERS;if(s>0&&a.EngineStore.LastCreatedEngine){let n=a.EngineStore.LastCreatedEngine.getCaps().maxVertexAttribs,l=t.morphTargetManager;if(l?.isUsingTextureForTargets)return;let o=l&&l.supportsPositions&&r,h=l&&l.supportsNormals&&i.NORMAL,c=l&&l.supportsTangents&&i.TANGENT,u=l&&l.supportsUVs&&i.UV1,d=l&&l.supportsUV2s&&i.UV2,_=l&&l.supportsColors&&i.VERTEXCOLOR;for(let i=0;i<s;i++)o&&e.push("position"+i),h&&e.push("normal"+i),c&&e.push("tangent"+i),u&&e.push("uv_"+i),d&&e.push("uv2_"+i),_&&e.push("color"+i),e.length>n&&R.Logger.Error("Cannot add more vertex attributes for mesh "+t.name)}}function U(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 H(e,t){t.bindToEffect(e,"Scene")}let V=new WeakMap,W=new WeakSet;e.s(["AreLightsTexturesReady",0,function(e,t,i,r=!1){if(!e.lightsEnabled||r)return!0;let s=t.lightSources,n=Math.min(s.length,i);for(let e=0;e<n;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(v,e.getEngine().useExactSrgbConversions),i.setColor3("vFogColor",v)):i.setColor3("vFogColor",e.fogColor))},"BindIBLParameters",0,function(e,t,i,r,s=null,n=!1,a=!1,l=!1,o=!1,h=!1,c=!1,u=0){if(e.texturesEnabled&&s&&N.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)),n){let e=s.getSize().width;i.updateFloat2("vReflectionFilteringInfo",e,Math.log2(e))}if(h&&!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);a&&i.updateFloat3("vReflectionMicrosurfaceInfos",s.getSize().width,s.lodGenerationScale,s.lodGenerationOffset)}c&&i.updateColor3("vReflectionColor",r)},"BindIBLSamplers",0,function(e,t,i,r=null,s=!1){if(r&&N.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 n=e.iblCdfGenerator;s&&n&&i.setTexture("icdfSampler",n.getIcdfTexture())}},"BindLights",0,function(e,t,i,r,s=4){let n=Math.min(t.lightSources.length,s);for(let s=0;s<n;s++)!function(e,t,i,r,s,n=!0){e._bindLight(t,i,r,s,n)}(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&&R.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,H,"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 n=0;n<i&&e["LIGHT"+n];n++)n>0&&(s=r+n,t.addFallback(s,"LIGHT"+n)),!e.SHADOWS&&(e["SHADOW"+n]&&t.addFallback(r,"SHADOW"+n),e["SHADOWPCF"+n]&&t.addFallback(r,"SHADOWPCF"+n),e["SHADOWPCSS"+n]&&t.addFallback(r,"SHADOWPCSS"+n),e["SHADOWPOISSON"+n]&&t.addFallback(r,"SHADOWPOISSON"+n),e["SHADOWESM"+n]&&t.addFallback(r,"SHADOWESM"+n),e["SHADOWCLOSEESM"+n]&&t.addFallback(r,"SHADOWCLOSEESM"+n));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)&&U(e,!!t.PREPASS_VELOCITY),t.INSTANCESCOLOR&&e.push("instanceColor")},"PrepareAttributesForMorphTargets",0,k,"PrepareDefinesAndAttributesForMorphTargets",0,function(e,t,i,r,s,n,a,l,o,h){let c=e.numMaxInfluencers||e.numInfluencers;return c<=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&&n&&t.push("#define MORPHTARGETS_NORMAL"),e.supportsTangents&&a&&t.push("#define MORPHTARGETS_TANGENT"),e.supportsUVs&&l&&t.push("#define MORPHTARGETS_UV"),e.supportsUV2s&&o&&t.push("#define MORPHTARGETS_UV2"),e.supportsColors&&h&&t.push("#define MORPHTARGETS_COLOR"),t.push("#define NUM_MORPH_INFLUENCERS "+c),e.isUsingTextureForTargets&&t.push("#define MORPHTARGETS_TEXTURE"),B.NUM_MORPH_INFLUENCERS=c,B.NORMAL=n,B.TANGENT=a,B.UV=l,B.UV2=o,B.COLOR=h,k(i,r,B,s),c)},"PrepareDefinesForAttributes",0,function(e,t,i,r,s=!1,n=!0,a=!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&&n}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 n=!0===t.MULTIVIEW,a=2*t.BonesPerMesh+ +!!n;if(V.get(e.skeleton)!==a){V.set(e.skeleton,a);let i=r.getEngine().getCaps().maxVertexUniformVectors;if(i&&!W.has(e.skeleton)){let r=4*t.BonesPerMesh,s=Math.max(i-(n?64:40),0);(r>s||n&&3*r>i)&&(W.add(e.skeleton),R.Logger.Warn(`Skeleton "${e.skeleton.name}": ${e.skeleton.bones.length} bones stored as vertex uniforms use ${r} of ~${s} usable uniform vectors${n?" (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)),a&&(t.BAKED_VERTEX_ANIMATION_TEXTURE=!!(o=e.bakedVertexAnimationManager)&&!!o.isEnabled),!0},"PrepareDefinesForFrameBoundValues",0,function(e,t,i,r,s,n=null,a=!1){let l=function(e,t){let i=!1;if(e.activeCamera){let r=+!!t.CAMERA_ORTHOGRAPHIC,s=+!!t.CAMERA_PERSPECTIVE,n=+(1===e.activeCamera.mode),a=+(0===e.activeCamera.mode);(r^n||s^a)&&(t.CAMERA_ORTHOGRAPHIC=1===n,t.CAMERA_PERSPECTIVE=1===a,i=!0)}return i}(e,r);!1!==n&&(l=y(i,e,r)),!t.getColorWrite()!==r.DEPTHPREPASS&&(r.DEPTHPREPASS=!r.DEPTHPREPASS,l=!0),r.INSTANCES!==s&&(r.INSTANCES=s,l=!0),r.THIN_INSTANCES!==a&&(r.THIN_INSTANCES=a,l=!0),l&&r.markAsUnprocessed()},"PrepareDefinesForIBL",0,function(e,t,i,r=!1,s=8,n=!1){if(t&&N.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 a=e.getEngine();switch(r&&s>0?(i.NUM_SAMPLES=""+s,a._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=n))}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,n=!1){if(!i._areLightsDirty)return i._needNormals;let a=0,l={needNormals:i._needNormals,needRebuild:!1,lightmapMode:!1,shadowEnabled:!1,specularEnabled:!1};if(e.lightsEnabled&&!n){for(let n of t.lightSources)if(function(e,t,i,r,s,n,a){switch(a.needNormals=!0,void 0===s["LIGHT"+r]&&(a.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 D.LightConstants.FALLOFF_GLTF:s["LIGHT_FALLOFF_GLTF"+r]=!0;break;case D.LightConstants.FALLOFF_PHYSICAL:s["LIGHT_FALLOFF_PHYSICAL"+r]=!0;break;case D.LightConstants.FALLOFF_STANDARD:s["LIGHT_FALLOFF_STANDARD"+r]=!0}if(n&&!i.specular.equalsFloats(0,0,0)&&(a.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&&(a.shadowEnabled=!0,t.prepareDefines(s,r))}}i.lightmapMode!=D.LightConstants.LIGHTMAP_DEFAULT?(a.lightmapMode=!0,s["LIGHTMAPEXCLUDED"+r]=!0,s["LIGHTMAPNOSPECULAR"+r]=i.lightmapMode==D.LightConstants.LIGHTMAP_SHADOWSONLY):(s["LIGHTMAPEXCLUDED"+r]=!1,s["LIGHTMAPNOSPECULAR"+r]=!1)}(e,t,n,a,i,r,l),++a===s)break}i.SPECULARTERM=l.specularEnabled,i.SHADOWS=l.shadowEnabled;let o=Math.max(s,i.MAXLIGHTCOUNT||0);for(let e=a;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=a,i.MAXLIGHTCOUNT=s;let h=e.getEngine().getCaps();return void 0===i.SHADOWFLOAT&&(l.needRebuild=!0),i.SHADOWFLOAT=l.shadowEnabled&&(h.textureFloatRender&&h.textureFloatLinearFiltering||h.textureHalfFloatRender&&h.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,n,a,l=!1,o=!1,h,c){if(a._areMiscDirty){a.LOGARITHMICDEPTH=i,a.POINTSIZE=r,a.FOG=s&&t.fogEnabled&&e.applyFog&&0!==t.fogMode,a.NONUNIFORMSCALING=e.nonUniformScaling,a.ALPHATEST=n,a.DECAL_AFTER_DETAIL=l,a.USE_VERTEX_PULLING=o,a.RIGHT_HANDED=t.useRightHandedSystem;let u=h?.geometry?.getIndexBuffer(),d=!!h&&h.isUnIndexed;a.VERTEX_PULLING_USE_INDEX_BUFFER=!!u&&!d,a.VERTEX_PULLING_INDEX_BUFFER_32BITS=!!u&&!d&&u.is32Bits,a.VERTEXOUTPUT_INVARIANT=!!c}},"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,n=!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)),n&&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,n,a=null;e.uniformsNames?(s=e.uniformsNames,n=e.uniformBuffersNames,t=e.samplers,i=e.defines,r=e.maxSimultaneousLights||0,a=e.shaderLanguage??null):(s=e,t||(t=[]));for(let e=0;e<r&&i["LIGHT"+e];e++)!function(e,t,i,r,s=null,n=!1,a=!1,l=!1,o=!1,h=!1){s&&s.push("Light"+e),!n&&(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)),a&&i.push("iesLightTexture"+e),o&&i.push("rectAreaLightEmissionTexture"+e),l&&(i.push("lightDataTexture"+e),h||i.push("tileMaskTexture"+e)))}(e,s,t,i["PROJECTEDLIGHTTEXTURE"+e],n,!1,i["IESLIGHTTEXTURE"+e],i["CLUSTLIGHT"+e],i["RECTAREALIGHTEMISSIONTEXTURE"+e],1===a);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,U],72014);var w=e.i(63913);class G{get useVertexPulling(){return this._useVertexPulling}set useVertexPulling(e){this._useVertexPulling!==e&&(this._useVertexPulling=e,this.markAsDirty(G.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(G.MiscDirtyFlag+G.PrePassDirtyFlag)}get alpha(){return this._alpha}set backFaceCulling(e){this._backFaceCulling!==e&&(this._backFaceCulling=e,this.markAsDirty(G.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(G.TextureDirtyFlag))}get textureRepetitionMode(){return this._textureRepetitionMode}set cullBackFaces(e){this._cullBackFaces!==e&&(this._cullBackFaces=e,this.markAsDirty(G.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 n.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 n.Observable),this._onUnBindObservable}get onEffectCreatedObservable(){return this._onEffectCreatedObservable||(this._onEffectCreatedObservable=new n.Observable),this._onEffectCreatedObservable}set alphaMode(e){this._alphaMode[0]!==e&&(this._alphaMode[0]=e,this.markAsDirty(G.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(G.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(G.MiscDirtyFlag))}get fogEnabled(){return this._fogEnabled}get wireframe(){switch(this._fillMode){case G.WireFrameFillMode:case G.LineListDrawMode:case G.LineLoopDrawMode:case G.LineStripDrawMode:return!0}return this._scene.forceWireframe}set wireframe(e){this.fillMode=e?G.WireFrameFillMode:G.TriangleFillMode}get pointsCloud(){switch(this._fillMode){case G.PointFillMode:case G.PointListDrawMode:return!0}return this._scene.forcePointsCloud}set pointsCloud(e){this.fillMode=e?G.PointFillMode:G.TriangleFillMode}get fillMode(){return this._fillMode}set fillMode(e){this._fillMode!==e&&(this._fillMode=e,this.markAsDirty(G.MiscDirtyFlag))}get useLogarithmicDepth(){return this._useLogarithmicDepth}set useLogarithmicDepth(e){let t=this.getScene().getEngine().getCaps().fragmentDepthSupported;e&&!t&&R.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.shadowDepthWrapper=null,this.allowShaderHotSwapping=!0,this._shaderLanguage=0,this._forceGLSL=!1,this._useVertexPulling=!1,this.metadata=null,this.reservedDataStore=null,this.checkReadyOnEveryCall=!1,this.checkReadyOnlyOnce=!1,this.state="",this._alpha=1,this._backFaceCulling=!0,this._textureRepetitionMode=0,this.textureRepetitionHexTilingParams=[1,.6,7,.5],this._cullBackFaces=!0,this._blockDirtyMechanism=!1,this.sideOrientation=null,this.onCompiled=null,this.onError=null,this.getRenderTargetTextures=null,this.doNotSerialize=!1,this._storeEffectOnSubMeshes=!1,this.animations=null,this.onDisposeObservable=new n.Observable,this._onDisposeObserver=null,this._onUnBindObservable=null,this._onBindObserver=null,this._alphaMode=[2],this._needDepthPrePass=!1,this.disableDepthWrite=!1,this.disableColorWrite=!1,this.forceDepthWrite=!1,this.depthFunction=0,this.separateCullingPass=!1,this._fogEnabled=!0,this.pointSize=1,this.zOffset=0,this.zOffsetUnits=0,this.stencil=new x,this._isVertexOutputInvariant=G.ForceVertexOutputInvariant,this._useUBO=!1,this._fillMode=G.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 l=t||a.EngineStore.LastCreatedScene;if(!l)return;this._scene=l,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||s.Tools.RandomId(),this.uniqueId=this._scene.getUniqueId(),this._materialContext=this._scene.getEngine().createMaterialContext(),this._drawWrapper=new S.DrawWrapper(this._scene.getEngine(),!1),this._drawWrapper.materialContext=this._materialContext,this._uniformBuffer=new I.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={}),G.OnEventObservable.notifyObservers(this,1)}_createUniformBuffer(){let e=this.getScene().getEngine();this._uniformBuffer?.dispose(),e.isWebGPU&&!this._forceGLSL?(this._uniformBuffer=new I.UniformBuffer(e,void 0,void 0,this.name,!0),this._shaderLanguage=1):this._uniformBuffer=new I.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===G.MATERIAL_ALPHABLEND||this._transparencyMode===G.MATERIAL_ALPHATESTANDBLEND}get _transparencyModeIsTest(){return this._transparencyMode===G.MATERIAL_ALPHATEST||this._transparencyMode===G.MATERIAL_ALPHATESTANDBLEND}get _disableAlphaBlending(){return this._transparencyMode===G.MATERIAL_OPAQUE||this._transparencyMode===G.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(G.AllDirtyFlag)}_preBind(e,t=null){let i=this._scene.getEngine(),r=(null==t?this.sideOrientation:t)===G.ClockWiseSideOrientation,s=e||this._getDrawWrapper();return(0,w.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,H(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),G._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},n=this.getScene(),a=this.allowShaderHotSwapping;this.allowShaderHotSwapping=!1;let l=()=>{if(!this._scene||!this._scene.getEngine())return;let i=n.clipPlane;if(s.clipPlane&&(n.clipPlane=new P.Plane(0,0,0,1)),this._storeEffectOnSubMeshes){let i=!0,n=null;if(e.subMeshes){let t=new b(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()?n=t.effect.getCompilationError():(i=!1,setTimeout(l,16)))}i&&(this.allowShaderHotSwapping=a,n&&r&&r(n),t&&t(this))}else this.isReady()?(this.allowShaderHotSwapping=a,t&&t(this)):setTimeout(l,16);s.clipPlane&&(n.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||(G._DirtyCallbackArray.length=0,e&G.ImageProcessingDirtyFlag&&G._DirtyCallbackArray.push(G._ImageProcessingDirtyCallBack),e&G.TextureDirtyFlag&&G._DirtyCallbackArray.push(G._TextureDirtyCallBack),e&G.LightDirtyFlag&&G._DirtyCallbackArray.push(G._LightsDirtyCallBack),e&G.FresnelDirtyFlag&&G._DirtyCallbackArray.push(G._FresnelDirtyCallBack),e&G.AttributesDirtyFlag&&G._DirtyCallbackArray.push(G._AttributeDirtyCallBack),e&G.MiscDirtyFlag&&G._DirtyCallbackArray.push(G._MiscDirtyCallBack),e&G.PrePassDirtyFlag&&G._DirtyCallbackArray.push(G._PrePassDirtyCallBack),G._DirtyCallbackArray.length&&this._markAllSubMeshesAsDirty(G._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(G._AllDirtyCallBack)}_markAllSubMeshesAsImageProcessingDirty(){this._markAllSubMeshesAsDirty(G._ImageProcessingDirtyCallBack)}_markAllSubMeshesAsTexturesDirty(){this._markAllSubMeshesAsDirty(G._TextureDirtyCallBack)}_markAllSubMeshesAsFresnelDirty(){this._markAllSubMeshesAsDirty(G._FresnelDirtyCallBack)}_markAllSubMeshesAsFresnelAndMiscDirty(){this._markAllSubMeshesAsDirty(G._FresnelAndMiscDirtyCallBack)}_markAllSubMeshesAsLightsDirty(){this._markAllSubMeshesAsDirty(G._LightsDirtyCallBack)}_markAllSubMeshesAsAttributesDirty(){this._markAllSubMeshesAsDirty(G._AttributeDirtyCallBack)}_markAllSubMeshesAsMiscDirty(){this._markAllSubMeshesAsDirty(G._MiscDirtyCallBack)}_markAllSubMeshesAsPrePassDirty(){this._markAllSubMeshesAsDirty(G._PrePassDirtyCallBack)}_markAllSubMeshesAsTexturesAndMiscDirty(){this._markAllSubMeshesAsDirty(G._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 n=e[s]?.effect;n&&i[s]===this&&(t?._releaseVertexArrayObject(n),r._removeDrawWrapper(s,!0,!0))}}}else t?._releaseVertexArrayObject(this._drawWrapper.effect);e.material!==this||e.sourceMesh||(e.material=null)}serialize(){let e=C.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 R.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=s.Tools.Instantiate(e.customType).Parse(e,t,i);return r._loadedUniqueId=e.uniqueId,G.ParseAlphaMode(e,r),r}static _ParsePlugins(e,t,i,r){if(e.plugins)for(let n in e.plugins){let a=e.plugins[n],l=t.pluginManager?.getPlugin(a.name);if(!l){let e=s.Tools.Instantiate("BABYLON."+n);e&&(l=new e(t))}l?.parse(a,i,r)}}}G.TriangleFillMode=0,G.WireFrameFillMode=1,G.PointFillMode=2,G.PointListDrawMode=3,G.LineListDrawMode=4,G.LineLoopDrawMode=5,G.LineStripDrawMode=6,G.TriangleStripDrawMode=7,G.TriangleFanDrawMode=8,G.ClockWiseSideOrientation=0,G.CounterClockWiseSideOrientation=1,G.ImageProcessingDirtyFlag=64,G.TextureDirtyFlag=1,G.LightDirtyFlag=2,G.FresnelDirtyFlag=4,G.AttributesDirtyFlag=8,G.MiscDirtyFlag=16,G.PrePassDirtyFlag=32,G.AllDirtyFlag=127,G.MATERIAL_OPAQUE=0,G.MATERIAL_ALPHATEST=1,G.MATERIAL_ALPHABLEND=2,G.MATERIAL_ALPHATESTANDBLEND=3,G.MATERIAL_NORMALBLENDMETHOD_WHITEOUT=0,G.MATERIAL_NORMALBLENDMETHOD_RNM=1,G.LIGHTFALLOFF_PHYSICAL=0,G.LIGHTFALLOFF_GLTF=1,G.LIGHTFALLOFF_STANDARD=2,G.OnEventObservable=new n.Observable,G.ForceVertexOutputInvariant=!1,G._AllDirtyCallBack=e=>e.markAllAsDirty(),G._ImageProcessingDirtyCallBack=e=>e.markAsImageProcessingDirty(),G._TextureDirtyCallBack=e=>e.markAsTexturesDirty(),G._FresnelDirtyCallBack=e=>e.markAsFresnelDirty(),G._MiscDirtyCallBack=e=>e.markAsMiscDirty(),G._PrePassDirtyCallBack=e=>e.markAsPrePassDirty(),G._LightsDirtyCallBack=e=>e.markAsLightDirty(),G._AttributeDirtyCallBack=e=>e.markAsAttributesDirty(),G._FresnelAndMiscDirtyCallBack=e=>{G._FresnelDirtyCallBack(e),G._MiscDirtyCallBack(e)},G._TextureAndMiscDirtyCallBack=e=>{G._TextureDirtyCallBack(e),G._MiscDirtyCallBack(e)},G._DirtyCallbackArray=[],G._RunDirtyCallBacks=e=>{for(let t of G._DirtyCallbackArray)t(e)},(0,i.__decorate)([(0,r.serialize)()],G.prototype,"id",void 0),(0,i.__decorate)([(0,r.serialize)()],G.prototype,"uniqueId",void 0),(0,i.__decorate)([(0,r.serialize)()],G.prototype,"name",void 0),(0,i.__decorate)([(0,r.serialize)()],G.prototype,"metadata",void 0),(0,i.__decorate)([(0,r.serialize)()],G.prototype,"checkReadyOnEveryCall",void 0),(0,i.__decorate)([(0,r.serialize)()],G.prototype,"checkReadyOnlyOnce",void 0),(0,i.__decorate)([(0,r.serialize)()],G.prototype,"state",void 0),(0,i.__decorate)([(0,r.serialize)("alpha")],G.prototype,"_alpha",void 0),(0,i.__decorate)([(0,r.serialize)("backFaceCulling")],G.prototype,"_backFaceCulling",void 0),(0,i.__decorate)([(0,r.serialize)("textureRepetitionMode")],G.prototype,"_textureRepetitionMode",void 0),(0,i.__decorate)([(0,r.serialize)("textureRepetitionHexTilingParams")],G.prototype,"textureRepetitionHexTilingParams",void 0),(0,i.__decorate)([(0,r.serialize)("cullBackFaces")],G.prototype,"_cullBackFaces",void 0),(0,i.__decorate)([(0,r.serialize)()],G.prototype,"sideOrientation",void 0),(0,i.__decorate)([(0,r.serialize)()],G.prototype,"_alphaMode",void 0),(0,i.__decorate)([(0,r.serialize)()],G.prototype,"_needDepthPrePass",void 0),(0,i.__decorate)([(0,r.serialize)()],G.prototype,"disableDepthWrite",void 0),(0,i.__decorate)([(0,r.serialize)()],G.prototype,"disableColorWrite",void 0),(0,i.__decorate)([(0,r.serialize)()],G.prototype,"forceDepthWrite",void 0),(0,i.__decorate)([(0,r.serialize)()],G.prototype,"depthFunction",void 0),(0,i.__decorate)([(0,r.serialize)()],G.prototype,"separateCullingPass",void 0),(0,i.__decorate)([(0,r.serialize)("fogEnabled")],G.prototype,"_fogEnabled",void 0),(0,i.__decorate)([(0,r.serialize)()],G.prototype,"pointSize",void 0),(0,i.__decorate)([(0,r.serialize)()],G.prototype,"zOffset",void 0),(0,i.__decorate)([(0,r.serialize)()],G.prototype,"zOffsetUnits",void 0),(0,i.__decorate)([(0,r.serialize)()],G.prototype,"pointsCloud",null),(0,i.__decorate)([(0,r.serialize)()],G.prototype,"fillMode",null),(0,i.__decorate)([(0,r.serialize)()],G.prototype,"useLogarithmicDepth",null),(0,i.__decorate)([(0,r.serialize)()],G.prototype,"_isVertexOutputInvariant",void 0),(0,i.__decorate)([(0,r.serialize)()],G.prototype,"transparencyMode",null),Object.getOwnPropertyDescriptor(G.prototype,"pluginManager")||Object.defineProperty(G.prototype,"pluginManager",(0,M._MissingSideEffectProperty)("Material","pluginManager")),e.s(["Material",0,G],52344)}]);