@uptimizr/dashboard 0.3.4 → 0.3.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (314) hide show
  1. package/out/404.html +1 -1
  2. package/out/__next.__PAGE__.txt +4 -4
  3. package/out/__next._full.txt +10 -10
  4. package/out/__next._head.txt +4 -4
  5. package/out/__next._index.txt +3 -3
  6. package/out/__next._tree.txt +1 -1
  7. package/out/_next/static/chunks/{2h051-1hu4co_.js → 0-0hui1_v3h8b.js} +9 -9
  8. package/out/_next/static/chunks/{2dqg85hsevk3c.js → 0-tzsd_n-ywom.js} +4 -4
  9. package/out/_next/static/chunks/00g5suuoa-_wn.js +1 -0
  10. package/out/_next/static/chunks/00o9hr_3hd0r8.js +1 -0
  11. package/out/_next/static/chunks/{0jxklh_ayjd4b.js → 00xc-0pj7on2s.js} +12 -12
  12. package/out/_next/static/chunks/01fh3_bncbe5u.js +1 -0
  13. package/out/_next/static/chunks/01urdkl1j8o6l.js +1 -0
  14. package/out/_next/static/chunks/{2j-sax2xfdv7l.js → 026vw95s88gsy.js} +1 -1
  15. package/out/_next/static/chunks/02eui3ctddbd2.js +1 -0
  16. package/out/_next/static/chunks/{3kr1polwvt6o_.js → 03zip1uidm6x9.js} +1 -1
  17. package/out/_next/static/chunks/{3gi0f1kg72xsf.js → 04_3ri5emyfcu.js} +1 -1
  18. package/out/_next/static/chunks/04c4nksb5y9r-.js +1 -0
  19. package/out/_next/static/chunks/04g-l-_b4payc.js +1 -0
  20. package/out/_next/static/chunks/04j9pexbmysdy.js +1 -0
  21. package/out/_next/static/chunks/{1rcfy_gzean3n.js → 055baac5e-c2o.js} +1 -1
  22. package/out/_next/static/chunks/05bdni_jrobq1.js +1 -0
  23. package/out/_next/static/chunks/05o0tb8l_htmw.js +1 -0
  24. package/out/_next/static/chunks/{3d5yb9ybkz7hx.js → 05uqfgf-hh-p5.js} +1 -1
  25. package/out/_next/static/chunks/06f-0kw8s0mqo.js +3 -0
  26. package/out/_next/static/chunks/{18r387bj9iv0j.js → 077eo-0dhbxz-.js} +1 -1
  27. package/out/_next/static/chunks/{18k-0jn63_5ie.js → 07z6p262h5hgl.js} +1 -1
  28. package/out/_next/static/chunks/{08bm3ye5govev.js → 08m_4cihfmik8.js} +1 -1
  29. package/out/_next/static/chunks/08obqw64faj8j.js +1 -0
  30. package/out/_next/static/chunks/{2k4s5rt7-l8jr.js → 099ilz3dmm1jw.js} +1 -1
  31. package/out/_next/static/chunks/09ppu_k464q-n.js +1 -0
  32. package/out/_next/static/chunks/{1rne-b-ktit5c.js → 0av6n_6q6kzo3.js} +2 -2
  33. package/out/_next/static/chunks/0bgcaf2x51kms.js +1 -0
  34. package/out/_next/static/chunks/{0ptp4ne7j6yg6.js → 0bj_310rugcn1.js} +11 -11
  35. package/out/_next/static/chunks/0c5d3qn2mb3ew.js +1 -0
  36. package/out/_next/static/chunks/{2gtebfttq1v0o.js → 0dck67in84de0.js} +1 -1
  37. package/out/_next/static/chunks/0dg4wxz-6u5lo.js +1 -0
  38. package/out/_next/static/chunks/{2apt1vh-7rl2l.js → 0dva036n8ab62.js} +1 -1
  39. package/out/_next/static/chunks/{159u-hx80yfaw.js → 0erga_bzezbza.js} +1 -1
  40. package/out/_next/static/chunks/0f0-i105odxqd.js +1 -0
  41. package/out/_next/static/chunks/{1fvlbwp6r93wo.js → 0g2wngc6oe7fd.js} +24 -24
  42. package/out/_next/static/chunks/0gyeqz9pagssf.js +1 -0
  43. package/out/_next/static/chunks/0i82k-t0fbn8f.js +1 -0
  44. package/out/_next/static/chunks/0kzw45f61wm3j.js +1 -0
  45. package/out/_next/static/chunks/0l8bfa2xewq69.js +1 -0
  46. package/out/_next/static/chunks/{390fogn9oz13i.js → 0n-zml1gn0o1u.js} +1 -1
  47. package/out/_next/static/chunks/{44gsjajjdhf51.js → 0n92hec_jb_-_.js} +1 -1
  48. package/out/_next/static/chunks/{2s0dwzg7kq36n.js → 0okbyggxe6mx5.js} +1 -1
  49. package/out/_next/static/chunks/{0h-ohf4gntwtj.js → 0pv2wirx45e1m.js} +1 -1
  50. package/out/_next/static/chunks/0qxd_8t3nca36.js +1 -0
  51. package/out/_next/static/chunks/0s1jghzw8jufz.js +1 -0
  52. package/out/_next/static/chunks/{0ngai1_zxwsk8.js → 0s84ekz_f9ngx.js} +1 -1
  53. package/out/_next/static/chunks/{16d4a4iopj2if.js → 0t89-lfct-7m6.js} +5 -5
  54. package/out/_next/static/chunks/0ti58h622yo-_.js +2 -0
  55. package/out/_next/static/chunks/{29v8falcmjvev.js → 0tn-9w46cwydp.js} +32 -32
  56. package/out/_next/static/chunks/0u8yr4k1y6m2t.js +1 -0
  57. package/out/_next/static/chunks/0ubxyut5rr600.js +1 -0
  58. package/out/_next/static/chunks/{3_bzxvqtk1t53.js → 0uxdbfa8gv6tk.js} +12 -12
  59. package/out/_next/static/chunks/0vso09vdz38sr.js +1 -0
  60. package/out/_next/static/chunks/{0_tqu60oxaj7q.js → 0w-hm7g7trtjg.js} +1 -1
  61. package/out/_next/static/chunks/0wbw9h7rsis2r.js +1 -0
  62. package/out/_next/static/chunks/{3sbm1ak54_2ep.js → 0wq_9f98weoe3.js} +1 -1
  63. package/out/_next/static/chunks/0y4e49hpuucdi.js +1 -0
  64. package/out/_next/static/chunks/{0ioyy42h35hnd.js → 0yvevihll7sz-.js} +1 -1
  65. package/out/_next/static/chunks/{0zcdc17ie6lmh.js → 0zf26k6juhlzo.js} +50 -18
  66. package/out/_next/static/chunks/{3sg4zff4-h3t1.js → 1-b44873bjsdw.js} +1 -1
  67. package/out/_next/static/chunks/1-c3a1vnl8v1q.js +1 -0
  68. package/out/_next/static/chunks/1-xf86jgea22y.js +1 -0
  69. package/out/_next/static/chunks/10b0qqdnb_nox.js +1 -0
  70. package/out/_next/static/chunks/{2ib62lnqqaf4p.js → 11p92pnn5el0v.js} +1 -1
  71. package/out/_next/static/chunks/{06ljadw2-i91-.js → 12kdmh0h_mboy.js} +1 -1
  72. package/out/_next/static/chunks/141tngxsk32hq.js +1 -0
  73. package/out/_next/static/chunks/14ijcpo72av4r.js +1 -0
  74. package/out/_next/static/chunks/16hdip1drt8o-.js +1 -0
  75. package/out/_next/static/chunks/{3g5ae-38cepwm.js → 17aahvhpls1l7.js} +199 -199
  76. package/out/_next/static/chunks/{17d1isrw8gtnb.js → 18txc1wwwu9f9.js} +1 -1
  77. package/out/_next/static/chunks/{2716si10ouwu-.js → 18wa83g0qfh-b.js} +1 -1
  78. package/out/_next/static/chunks/19dp8nr4uygg2.js +5 -0
  79. package/out/_next/static/chunks/1_8acnu6_-qe-.js +1 -0
  80. package/out/_next/static/chunks/1__nujzr9e352.js +3 -0
  81. package/out/_next/static/chunks/1bmyq1b0by7ug.js +1 -0
  82. package/out/_next/static/chunks/{1wyr4at61q29n.js → 1ccn725by19i1.js} +1 -1
  83. package/out/_next/static/chunks/{0f_nv15a8q415.js → 1d1tpj9nm1nhf.js} +1 -1
  84. package/out/_next/static/chunks/1dfwa563iciz3.js +1 -0
  85. package/out/_next/static/chunks/1di5enkavl9vx.js +4 -0
  86. package/out/_next/static/chunks/{006nix8mv66z_.js → 1e_-_7biavwmb.js} +1 -1
  87. package/out/_next/static/chunks/{1y12bjsbq18_t.js → 1ephzzweysylq.js} +34 -34
  88. package/out/_next/static/chunks/1fwsjnd1y-lx_.js +1 -0
  89. package/out/_next/static/chunks/{2z9ot-w1x60fv.js → 1fyh50hjt7hi_.js} +1 -1
  90. package/out/_next/static/chunks/1gaexq_suxai0.js +1 -0
  91. package/out/_next/static/chunks/1gtj_l5ame5mw.js +1 -0
  92. package/out/_next/static/chunks/{1--aypw9o8yng.js → 1gvdmbr65lpud.js} +39 -39
  93. package/out/_next/static/chunks/{02tc9r3sc7fgc.js → 1ho02fc091nj2.js} +1 -1
  94. package/out/_next/static/chunks/{3v0td-ziuai2i.js → 1hsvckd0sgdgr.js} +1 -1
  95. package/out/_next/static/chunks/1i4f3n_2_3ery.js +1 -0
  96. package/out/_next/static/chunks/1j7e3qpjuj89a.js +1 -0
  97. package/out/_next/static/chunks/{2btqzk0tj0gz6.js → 1mrvp94tietcv.js} +1 -1
  98. package/out/_next/static/chunks/{3vxkkhs0vi_xa.js → 1mvadj46owrck.js} +1 -1
  99. package/out/_next/static/chunks/{1b2tkk7e_2o0k.js → 1n_gxvu31aofy.js} +2 -2
  100. package/out/_next/static/chunks/{0gblbgw7w7r9w.js → 1nasz7q3tvb53.js} +1 -1
  101. package/out/_next/static/chunks/{2_7dp91937mqi.js → 1ng-fqh2_n984.js} +1 -1
  102. package/out/_next/static/chunks/{0x4-zyy8pzmlq.js → 1nqojcig-0m3c.js} +1 -1
  103. package/out/_next/static/chunks/1o3ggu95lfu6i.js +1 -0
  104. package/out/_next/static/chunks/{2dolerz81xb52.js → 1og49_atcksim.js} +1 -1
  105. package/out/_next/static/chunks/{0c2k-gvwph4qs.js → 1oljzgz5jistn.js} +1 -1
  106. package/out/_next/static/chunks/1ozi46t8jajqh.js +1 -0
  107. package/out/_next/static/chunks/{1w9xu1qa9-wmv.js → 1ph0tfo-4hl-f.js} +1 -1
  108. package/out/_next/static/chunks/{17dmbt396_tyq.js → 1qjsgebn9m-0l.js} +1 -1
  109. package/out/_next/static/chunks/{168r9r65o9jnc.js → 1qsut_e3msg0l.js} +1 -1
  110. package/out/_next/static/chunks/{3efuvh_35yhes.js → 1qxhgauuomthl.js} +39 -39
  111. package/out/_next/static/chunks/{2w7yf7ouyrlkb.js → 1rb8wewjbdisv.js} +1 -1
  112. package/out/_next/static/chunks/1rr74xxjtckyv.js +1 -0
  113. package/out/_next/static/chunks/{1kl5xxohpr6-4.js → 1solqr18og2ot.js} +1 -1
  114. package/out/_next/static/chunks/{2rjc8yn50ducj.js → 1t2exh89lnazc.js} +34 -34
  115. package/out/_next/static/chunks/{0_ux41xcoea3u.js → 1t7nl8rx7mabd.js} +40 -40
  116. package/out/_next/static/chunks/{3fx3sriw1w3sa.js → 1tt1bbry-4f-6.js} +1 -1
  117. package/out/_next/static/chunks/{0ufakw529sr9d.js → 1upkv4ltuh3s5.js} +40 -40
  118. package/out/_next/static/chunks/{2npk7tr63h7rl.js → 1uu55ejvi7q5u.js} +1 -1
  119. package/out/_next/static/chunks/{2cvvxifoedn6j.js → 1ux1rpe-n1mai.js} +1 -1
  120. package/out/_next/static/chunks/{091ll-lp6spu3.js → 1vmpltnr0cyos.js} +1 -1
  121. package/out/_next/static/chunks/1x99m91nt1m3b.js +1 -0
  122. package/out/_next/static/chunks/1xbzxfeq9789f.js +1 -0
  123. package/out/_next/static/chunks/1ybiu-rkt50_1.js +1 -0
  124. package/out/_next/static/chunks/{3y9c26fv1poq_.js → 2-hdejef-mpka.js} +199 -199
  125. package/out/_next/static/chunks/{22qzld31fbhbv.js → 2-p206i_ihx09.js} +1 -1
  126. package/out/_next/static/chunks/{340pg0qkv5tqq.js → 20qelrstvz9_n.js} +1 -1
  127. package/out/_next/static/chunks/21at65obnoo8z.js +1 -0
  128. package/out/_next/static/chunks/21ko5mxfderw0.js +1 -0
  129. package/out/_next/static/chunks/21muzwu43o8xg.js +1 -0
  130. package/out/_next/static/chunks/{3he9bxsc67ivq.js → 22ja7c3gk0_ko.js} +1 -1
  131. package/out/_next/static/chunks/{0mqi0xn_c010j.js → 22rl_arnzs-ve.js} +1 -1
  132. package/out/_next/static/chunks/23d-hvrwpixpm.js +1 -0
  133. package/out/_next/static/chunks/{2yzui3v-besdu.js → 255knovck7pv2.js} +4 -4
  134. package/out/_next/static/chunks/2569rrrffvm2w.js +31 -0
  135. package/out/_next/static/chunks/{229mkx-mtfcgf.js → 25gf6xn9u1c57.js} +1 -1
  136. package/out/_next/static/chunks/{2vmybybb3dvia.js → 267q_eg-c6f6m.js} +1 -1
  137. package/out/_next/static/chunks/{0e7xuupmrw4-e.js → 28ndw4nsw2t_4.js} +1 -1
  138. package/out/_next/static/chunks/{0m3yjobjg36ce.js → 29gv2swsp7tzu.js} +1 -1
  139. package/out/_next/static/chunks/29o74k0d6hkdf.js +1 -0
  140. package/out/_next/static/chunks/{0kr-bd6fuqc2s.js → 2bm95r0011asw.js} +1 -1
  141. package/out/_next/static/chunks/2btabnibkm0db.js +1 -0
  142. package/out/_next/static/chunks/2c--awgkdcikq.js +1 -0
  143. package/out/_next/static/chunks/{2ab-99frxpah-.js → 2c2dspoukng-5.js} +1 -1
  144. package/out/_next/static/chunks/{0zo4x1j8ug-kb.js → 2e46-2ubc90do.js} +5 -5
  145. package/out/_next/static/chunks/2ep7mjbaoeou0.js +1 -0
  146. package/out/_next/static/chunks/{1kq86iv41cet4.js → 2ezgqm7atphi6.js} +1 -1
  147. package/out/_next/static/chunks/{1bv97vf67p_ri.js → 2ftp5xmq_w23j.js} +35 -35
  148. package/out/_next/static/chunks/{38g9jpxjoxn2x.js → 2g_1ov-0j2kwd.js} +1 -1
  149. package/out/_next/static/chunks/2gfjzq_vjea4w.js +1 -0
  150. package/out/_next/static/chunks/{1tdg_eolxlcdl.js → 2h5hase6ewoyc.js} +1 -1
  151. package/out/_next/static/chunks/{0m0n7kjzscx0y.js → 2h5nvlgky7fpa.js} +1 -1
  152. package/out/_next/static/chunks/{17dabmbnkkplu.js → 2i82rmjta9ijs.js} +1 -1
  153. package/out/_next/static/chunks/2ies66gmou203.js +1 -0
  154. package/out/_next/static/chunks/2jenu2eek9viz.js +1 -0
  155. package/out/_next/static/chunks/{3043pprgv9ors.js → 2khh_pmm224k5.js} +23 -23
  156. package/out/_next/static/chunks/2kv9_bt15v83g.js +1 -0
  157. package/out/_next/static/chunks/{0msckddycfy76.js → 2luaj_cf5f19-.js} +1 -1
  158. package/out/_next/static/chunks/2mgmvz66gh5ub.js +1 -0
  159. package/out/_next/static/chunks/2nwlqtv3vrzcv.js +1 -0
  160. package/out/_next/static/chunks/{18ss4ls60s31e.js → 2o8k8x5zcepfy.js} +1 -1
  161. package/out/_next/static/chunks/{1e1zozntzsx42.js → 2pbgsq7vvtk8_.js} +1 -1
  162. package/out/_next/static/chunks/{0b7-mrrg7ryj2.js → 2pcdnd4nzcw4c.js} +1 -1
  163. package/out/_next/static/chunks/2q0rz76kj6h5z.js +1 -0
  164. package/out/_next/static/chunks/{3w1a2o8nevap8.js → 2rjfrjhp4kjev.js} +18 -18
  165. package/out/_next/static/chunks/2si5cg3hl5dtf.js +4 -0
  166. package/out/_next/static/chunks/2uhrhq35bki6u.js +1 -0
  167. package/out/_next/static/chunks/{1l12hkz1g7uhf.js → 2ymtumj-hfrjo.js} +1 -1
  168. package/out/_next/static/chunks/{2yr9wt421xdjr.js → 2z9mdtudj8crz.js} +17 -17
  169. package/out/_next/static/chunks/{1iaxzjly2pap1.js → 2zdzgmacaoor9.js} +1 -1
  170. package/out/_next/static/chunks/{0mk8tangq9equ.js → 2zpn7010iqgsy.js} +1 -1
  171. package/out/_next/static/chunks/2zyjw8g4tiu51.js +1 -0
  172. package/out/_next/static/chunks/{2kn_dqzbyabtn.js → 3-_08i4_7yhno.js} +1 -1
  173. package/out/_next/static/chunks/3-irhmtm1q5qw.js +1 -0
  174. package/out/_next/static/chunks/3-k74vn9exnb6.js +1 -0
  175. package/out/_next/static/chunks/{18avgwx9nlxp9.js → 3-x7522okdy-7.js} +1 -1
  176. package/out/_next/static/chunks/{1ll0ta8a2qx1p.js → 309f81l5ucsb_.js} +16 -16
  177. package/out/_next/static/chunks/{1f1vq3goue1w4.js → 31ei992g8gqz9.js} +1 -1
  178. package/out/_next/static/chunks/{0i9oqg-xbq-a9.js → 32vaw89wdwv5_.js} +1 -1
  179. package/out/_next/static/chunks/34y7nx6qmat06.js +1 -0
  180. package/out/_next/static/chunks/{1f92k-xa0pl-3.js → 35aagg46wp139.js} +1 -1
  181. package/out/_next/static/chunks/36rqw8h6ildpl.js +1 -0
  182. package/out/_next/static/chunks/{0zwkmsojeuekb.js → 380ivzcfb4o_3.js} +4 -4
  183. package/out/_next/static/chunks/{01aeari2x_tlz.js → 3a_khw6q6pyh1.js} +1 -1
  184. package/out/_next/static/chunks/3c_31f20z4jrl.js +1 -0
  185. package/out/_next/static/chunks/3ckp70rgr63u9.js +1 -0
  186. package/out/_next/static/chunks/{08rk1dp1wb-gm.js → 3d76e_yd8l_0x.js} +38 -38
  187. package/out/_next/static/chunks/{2p8dbh81chhon.js → 3ed24zmt8qfys.js} +1 -1
  188. package/out/_next/static/chunks/3ez20hi1mxw0w.js +1 -0
  189. package/out/_next/static/chunks/3fdx-rnos5ft-.js +1 -0
  190. package/out/_next/static/chunks/3fgfbxxb-j_bn.js +4 -0
  191. package/out/_next/static/chunks/{03st_hmor6qju.js → 3go-mst7n3udd.js} +1 -1
  192. package/out/_next/static/chunks/{3d0ejsnhbzi-j.js → 3gyyjsot8mdav.js} +1 -1
  193. package/out/_next/static/chunks/{2t9zu9v_g9kr9.js → 3iwf5yeurp57i.js} +3 -3
  194. package/out/_next/static/chunks/{0rruvj1cyflrh.js → 3k-gz8qf-mj-p.js} +1 -1
  195. package/out/_next/static/chunks/{2enlv4yy0t-9j.js → 3kalvwsf11-ss.js} +12 -12
  196. package/out/_next/static/chunks/3lehc5pujwhsz.js +1 -0
  197. package/out/_next/static/chunks/{05l3dluxivcor.js → 3m0ytnc241yfz.js} +1 -1
  198. package/out/_next/static/chunks/3mpe7c3iyxn5h.js +1 -0
  199. package/out/_next/static/chunks/{0tl8j9f8lt0yf.js → 3mvaub8qjdyuc.js} +1 -1
  200. package/out/_next/static/chunks/{0k79ryqehst0b.js → 3n-7bcmfbh299.js} +48 -18
  201. package/out/_next/static/chunks/{38ea9kqlbxt86.js → 3nw7u4bie0-g6.js} +1 -1
  202. package/out/_next/static/chunks/3qatb38-tk_gd.js +1 -0
  203. package/out/_next/static/chunks/3tdcdi_utmoy_.js +1 -0
  204. package/out/_next/static/chunks/{3x6wpv_z5m6rz.js → 3tdzweqszru4y.js} +1 -1
  205. package/out/_next/static/chunks/3tt_ir_va6262.js +1 -0
  206. package/out/_next/static/chunks/{39lxb7c--3_2u.js → 3w4qettzp7khe.js} +32 -32
  207. package/out/_next/static/chunks/{2op88btas-hl8.js → 3w_umk1xtj6to.js} +1 -1
  208. package/out/_next/static/chunks/{1kmsg9ef5djl3.js → 3y_51bmdnc0ey.js} +1 -1
  209. package/out/_next/static/chunks/{1ajmblsp0wj0_.js → 3yr66ufoli71t.js} +1 -1
  210. package/out/_next/static/chunks/{348hdbpkkcq_2.js → 3z4suna4kq4j5.js} +20 -20
  211. package/out/_next/static/chunks/{1y20bv6vl4ylk.js → 41qxc142snm22.js} +1 -1
  212. package/out/_next/static/chunks/{404f_93w2e8ty.js → 41yy4p3-rtyz1.js} +1 -1
  213. package/out/_next/static/chunks/{3fz7tc-4j13uv.js → 425epvuw3yy-n.js} +21 -21
  214. package/out/_next/static/chunks/{1t60cososq7b0.js → 43hwl25uke0l_.js} +1 -1
  215. package/out/_next/static/chunks/43qmngblcab8f.js +1 -0
  216. package/out/_next/static/chunks/{2bn9u9r0rfhvc.js → 442e2l3jzxd-_.js} +1 -1
  217. package/out/_next/static/chunks/{turbopack-16ab30_1p4vhq.js → turbopack-3r8yn0j92tqw_.js} +1 -1
  218. package/out/_not-found/__next._full.txt +8 -8
  219. package/out/_not-found/__next._head.txt +4 -4
  220. package/out/_not-found/__next._index.txt +3 -3
  221. package/out/_not-found/__next._not-found.__PAGE__.txt +2 -2
  222. package/out/_not-found/__next._not-found.txt +3 -3
  223. package/out/_not-found/__next._tree.txt +1 -1
  224. package/out/_not-found.html +1 -1
  225. package/out/_not-found.txt +8 -8
  226. package/out/index.html +1 -1
  227. package/out/index.txt +10 -10
  228. package/package.json +10 -10
  229. package/out/_next/static/chunks/0-29qf-q72olu.js +0 -1
  230. package/out/_next/static/chunks/0-tk5ptli--r0.js +0 -1
  231. package/out/_next/static/chunks/0296l8lzd69ns.js +0 -1
  232. package/out/_next/static/chunks/04pk6n3z75dcy.js +0 -1
  233. package/out/_next/static/chunks/06m_64ysu9kn0.js +0 -1
  234. package/out/_next/static/chunks/09p5fltt7o3to.js +0 -1
  235. package/out/_next/static/chunks/0fxfsshoxnnh6.js +0 -4
  236. package/out/_next/static/chunks/0g6u34xkzrpjn.js +0 -1
  237. package/out/_next/static/chunks/0g7p8zp2kxve5.js +0 -1
  238. package/out/_next/static/chunks/0gwa154w_0wuh.js +0 -1
  239. package/out/_next/static/chunks/0h1o0cr3327tt.js +0 -1
  240. package/out/_next/static/chunks/0jf3n5n5yrr4o.js +0 -1
  241. package/out/_next/static/chunks/0k9-8s-jof_gw.js +0 -1
  242. package/out/_next/static/chunks/0kcbdjbdxu_wa.js +0 -1
  243. package/out/_next/static/chunks/0l3wwyl93sqh9.js +0 -1
  244. package/out/_next/static/chunks/0ngiuj5k-or6g.js +0 -1
  245. package/out/_next/static/chunks/0nx_t8iq-324h.js +0 -1
  246. package/out/_next/static/chunks/0oap0o8a8a_cl.js +0 -1
  247. package/out/_next/static/chunks/0ostjlqtwkhqr.js +0 -1
  248. package/out/_next/static/chunks/0vddljjnmozzx.js +0 -1
  249. package/out/_next/static/chunks/0w0sx062qmcsh.js +0 -1
  250. package/out/_next/static/chunks/0x6i6e6863tir.js +0 -1
  251. package/out/_next/static/chunks/1--kelnig7pxx.js +0 -1
  252. package/out/_next/static/chunks/1-ud6hztxiazp.js +0 -1
  253. package/out/_next/static/chunks/10v4rskkrjgd_.js +0 -1
  254. package/out/_next/static/chunks/117ys3lltfmcu.js +0 -1
  255. package/out/_next/static/chunks/13oqt2aoms4f6.js +0 -1
  256. package/out/_next/static/chunks/14klj_i6-l-10.js +0 -1
  257. package/out/_next/static/chunks/17ev44x54_jrd.js +0 -1
  258. package/out/_next/static/chunks/17svumd4o0qnc.js +0 -1
  259. package/out/_next/static/chunks/17v12p4sfraa0.js +0 -1
  260. package/out/_next/static/chunks/1a7cup181rjod.js +0 -1
  261. package/out/_next/static/chunks/1ek5rtpo6rxev.js +0 -1
  262. package/out/_next/static/chunks/1evp209qbr4cr.js +0 -5
  263. package/out/_next/static/chunks/1fa265388524p.js +0 -1
  264. package/out/_next/static/chunks/1g3z43o3h-024.js +0 -31
  265. package/out/_next/static/chunks/1g_27texazqcj.js +0 -1
  266. package/out/_next/static/chunks/1j--a56ji33_x.js +0 -1
  267. package/out/_next/static/chunks/1oara6fkfvgs3.js +0 -1
  268. package/out/_next/static/chunks/1par9m038tiov.js +0 -1
  269. package/out/_next/static/chunks/1vkww9l6lgqag.js +0 -1
  270. package/out/_next/static/chunks/1vpcaaf-0dn7q.js +0 -1
  271. package/out/_next/static/chunks/1vzmzrjhlm1q5.js +0 -1
  272. package/out/_next/static/chunks/1zcrrq1fx8g2y.js +0 -4
  273. package/out/_next/static/chunks/245h82k-g1nxr.js +0 -1
  274. package/out/_next/static/chunks/24cqjhy669845.js +0 -1
  275. package/out/_next/static/chunks/259xlbe69b9tc.js +0 -1
  276. package/out/_next/static/chunks/25ctnyh7njp-d.js +0 -4
  277. package/out/_next/static/chunks/286ggpetqnwyo.js +0 -3
  278. package/out/_next/static/chunks/28f1onw3nywbz.js +0 -1
  279. package/out/_next/static/chunks/28ycc-1519hl2.js +0 -1
  280. package/out/_next/static/chunks/2dhv35o59yzao.js +0 -1
  281. package/out/_next/static/chunks/2ey30qeaob985.js +0 -1
  282. package/out/_next/static/chunks/2f0r-df7tb3pu.js +0 -1
  283. package/out/_next/static/chunks/2gh4z57fem0_v.js +0 -1
  284. package/out/_next/static/chunks/2h1uw3cluvmmo.js +0 -1
  285. package/out/_next/static/chunks/2kje_jvmwsvwo.js +0 -1
  286. package/out/_next/static/chunks/2l_oqx9idxcs8.js +0 -1
  287. package/out/_next/static/chunks/2reukv9c7cq_9.js +0 -1
  288. package/out/_next/static/chunks/2vaoftqgc44cg.js +0 -1
  289. package/out/_next/static/chunks/2y75diyxqlhzl.js +0 -1
  290. package/out/_next/static/chunks/2zljunurdji0q.js +0 -1
  291. package/out/_next/static/chunks/34gp3hvr3j6um.js +0 -1
  292. package/out/_next/static/chunks/34rcp8qrbp522.js +0 -3
  293. package/out/_next/static/chunks/38wksra3d_k-4.js +0 -1
  294. package/out/_next/static/chunks/3ajhvedcs_lzb.js +0 -1
  295. package/out/_next/static/chunks/3bsvp8qhjqdu0.js +0 -1
  296. package/out/_next/static/chunks/3g4e2txsrb2p2.js +0 -1
  297. package/out/_next/static/chunks/3g_h_00xs9u59.js +0 -1
  298. package/out/_next/static/chunks/3hr-mlwi78nov.js +0 -1
  299. package/out/_next/static/chunks/3l6t8b3addlw7.js +0 -1
  300. package/out/_next/static/chunks/3mwoauxszd3mn.js +0 -1
  301. package/out/_next/static/chunks/3ovd8o_usay7j.js +0 -1
  302. package/out/_next/static/chunks/3pdpaqzwhhijn.js +0 -1
  303. package/out/_next/static/chunks/3pyggl13glbdc.js +0 -1
  304. package/out/_next/static/chunks/3rl45k759wfi1.js +0 -1
  305. package/out/_next/static/chunks/3urd7r018nel4.js +0 -1
  306. package/out/_next/static/chunks/3vaho-xrtuchd.js +0 -2
  307. package/out/_next/static/chunks/3wqs57qehored.js +0 -1
  308. package/out/_next/static/chunks/40acif2eh_unv.js +0 -1
  309. package/out/_next/static/chunks/413o2v11bygt5.js +0 -1
  310. package/out/_next/static/chunks/4227p7752rnny.js +0 -1
  311. package/out/_next/static/chunks/42oyfkhdvb-u3.js +0 -1
  312. /package/out/_next/static/{M5esRfAVlWSeBcfLV_jVr → yF_tmb8VExvESewet-_To}/_buildManifest.js +0 -0
  313. /package/out/_next/static/{M5esRfAVlWSeBcfLV_jVr → yF_tmb8VExvESewet-_To}/_clientMiddlewareManifest.js +0 -0
  314. /package/out/_next/static/{M5esRfAVlWSeBcfLV_jVr → yF_tmb8VExvESewet-_To}/_ssgManifest.js +0 -0
@@ -0,0 +1,2 @@
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,32622,61599,47432,345,21296,7540,29309,e=>{"use strict";var t,i,s,r,n,a,o,l,h,c,u,p,d,f,_,g,m,b,S,C,E,y,x,F,A,v,D,P,O,T,R,M,B,k,w,I,L,U,N,V,G,W,H,q,z,j,$,Z,K,Q,X,Y,J,ee,et,ei,es,er,en,ea,eo,el,eh,ec,eu,ep,ed,ef,e_,eg,em,eb,eS,eC,eE,ey,ex,eF,eA,ev,eD,eP,eO,eT,eR,eM,eB,ek,ew,eI,eL,eU,eN,eV,eG,eW,eH,eq,ez,ej,e$,eZ,eK,eQ,eX,eY,eJ,e0=e.i(90176),e1=e.i(80434),e2=e.i(37875),e3=e.i(55018);class e4{constructor(){this._valueCache={},this.vertexCompilationError=null,this.fragmentCompilationError=null,this.programLinkError=null,this.programValidationError=null,this._isDisposed=!1}get isAsync(){return this.isParallelCompiled}get isReady(){return!!this.program&&(!this.isParallelCompiled||this.engine._isRenderingStateCompiled(this))}_handlesSpectorRebuildCallback(e){e&&this.program&&e(this.program)}setEngine(e){this.engine=e}_fillEffectInformation(e,t,i,s,r,n,a,o){let l,h=this.engine;if(h.supportsUniformBuffers)for(let i in t)e.bindUniformBlock(i,t[i]);for(this.engine.getUniforms(this,i).forEach((e,t)=>{s[i[t]]=e}),this._uniforms=s,l=0;l<r.length;l++)null==e.getUniform(r[l])&&(r.splice(l,1),l--);for(let e of(r.forEach((e,t)=>{n[e]=t}),h.getAttributes(this,a)))o.push(e)}dispose(){this._uniforms={},this._isDisposed=!0}_cacheMatrix(e,t){let i=this._valueCache[e],s=t.updateFlag;return(void 0===i||i!==s)&&(this._valueCache[e]=s,!0)}_cacheFloat2(e,t,i){let s=this._valueCache[e];if(!s||2!==s.length)return s=[t,i],this._valueCache[e]=s,!0;let r=!1;return s[0]!==t&&(s[0]=t,r=!0),s[1]!==i&&(s[1]=i,r=!0),r}_cacheFloat3(e,t,i,s){let r=this._valueCache[e];if(!r||3!==r.length)return r=[t,i,s],this._valueCache[e]=r,!0;let n=!1;return r[0]!==t&&(r[0]=t,n=!0),r[1]!==i&&(r[1]=i,n=!0),r[2]!==s&&(r[2]=s,n=!0),n}_cacheFloat4(e,t,i,s,r){let n=this._valueCache[e];if(!n||4!==n.length)return n=[t,i,s,r],this._valueCache[e]=n,!0;let a=!1;return n[0]!==t&&(n[0]=t,a=!0),n[1]!==i&&(n[1]=i,a=!0),n[2]!==s&&(n[2]=s,a=!0),n[3]!==r&&(n[3]=r,a=!0),a}setInt(e,t){let i=this._valueCache[e];(void 0===i||i!==t)&&this.engine.setInt(this._uniforms[e],t)&&(this._valueCache[e]=t)}setInt2(e,t,i){this._cacheFloat2(e,t,i)&&!this.engine.setInt2(this._uniforms[e],t,i)&&(this._valueCache[e]=null)}setInt3(e,t,i,s){this._cacheFloat3(e,t,i,s)&&!this.engine.setInt3(this._uniforms[e],t,i,s)&&(this._valueCache[e]=null)}setInt4(e,t,i,s,r){this._cacheFloat4(e,t,i,s,r)&&!this.engine.setInt4(this._uniforms[e],t,i,s,r)&&(this._valueCache[e]=null)}setIntArray(e,t){this._valueCache[e]=null,this.engine.setIntArray(this._uniforms[e],t)}setIntArray2(e,t){this._valueCache[e]=null,this.engine.setIntArray2(this._uniforms[e],t)}setIntArray3(e,t){this._valueCache[e]=null,this.engine.setIntArray3(this._uniforms[e],t)}setIntArray4(e,t){this._valueCache[e]=null,this.engine.setIntArray4(this._uniforms[e],t)}setUInt(e,t){let i=this._valueCache[e];(void 0===i||i!==t)&&this.engine.setUInt(this._uniforms[e],t)&&(this._valueCache[e]=t)}setUInt2(e,t,i){this._cacheFloat2(e,t,i)&&!this.engine.setUInt2(this._uniforms[e],t,i)&&(this._valueCache[e]=null)}setUInt3(e,t,i,s){this._cacheFloat3(e,t,i,s)&&!this.engine.setUInt3(this._uniforms[e],t,i,s)&&(this._valueCache[e]=null)}setUInt4(e,t,i,s,r){this._cacheFloat4(e,t,i,s,r)&&!this.engine.setUInt4(this._uniforms[e],t,i,s,r)&&(this._valueCache[e]=null)}setUIntArray(e,t){this._valueCache[e]=null,this.engine.setUIntArray(this._uniforms[e],t)}setUIntArray2(e,t){this._valueCache[e]=null,this.engine.setUIntArray2(this._uniforms[e],t)}setUIntArray3(e,t){this._valueCache[e]=null,this.engine.setUIntArray3(this._uniforms[e],t)}setUIntArray4(e,t){this._valueCache[e]=null,this.engine.setUIntArray4(this._uniforms[e],t)}setArray(e,t){this._valueCache[e]=null,this.engine.setArray(this._uniforms[e],t)}setArray2(e,t){this._valueCache[e]=null,this.engine.setArray2(this._uniforms[e],t)}setArray3(e,t){this._valueCache[e]=null,this.engine.setArray3(this._uniforms[e],t)}setArray4(e,t){this._valueCache[e]=null,this.engine.setArray4(this._uniforms[e],t)}setMatrices(e,t){t&&(this._valueCache[e]=null,this.engine.setMatrices(this._uniforms[e],t))}setMatrix(e,t){this._cacheMatrix(e,t)&&!this.engine.setMatrices(this._uniforms[e],t.asArray())&&(this._valueCache[e]=null)}setMatrix3x3(e,t){this._valueCache[e]=null,this.engine.setMatrix3x3(this._uniforms[e],t)}setMatrix2x2(e,t){this._valueCache[e]=null,this.engine.setMatrix2x2(this._uniforms[e],t)}setFloat(e,t){let i=this._valueCache[e];(void 0===i||i!==t)&&this.engine.setFloat(this._uniforms[e],t)&&(this._valueCache[e]=t)}setVector2(e,t){this._cacheFloat2(e,t.x,t.y)&&!this.engine.setFloat2(this._uniforms[e],t.x,t.y)&&(this._valueCache[e]=null)}setFloat2(e,t,i){this._cacheFloat2(e,t,i)&&!this.engine.setFloat2(this._uniforms[e],t,i)&&(this._valueCache[e]=null)}setVector3(e,t){this._cacheFloat3(e,t.x,t.y,t.z)&&!this.engine.setFloat3(this._uniforms[e],t.x,t.y,t.z)&&(this._valueCache[e]=null)}setFloat3(e,t,i,s){this._cacheFloat3(e,t,i,s)&&!this.engine.setFloat3(this._uniforms[e],t,i,s)&&(this._valueCache[e]=null)}setVector4(e,t){this._cacheFloat4(e,t.x,t.y,t.z,t.w)&&!this.engine.setFloat4(this._uniforms[e],t.x,t.y,t.z,t.w)&&(this._valueCache[e]=null)}setQuaternion(e,t){this._cacheFloat4(e,t.x,t.y,t.z,t.w)&&!this.engine.setFloat4(this._uniforms[e],t.x,t.y,t.z,t.w)&&(this._valueCache[e]=null)}setFloat4(e,t,i,s,r){this._cacheFloat4(e,t,i,s,r)&&!this.engine.setFloat4(this._uniforms[e],t,i,s,r)&&(this._valueCache[e]=null)}setColor3(e,t){this._cacheFloat3(e,t.r,t.g,t.b)&&!this.engine.setFloat3(this._uniforms[e],t.r,t.g,t.b)&&(this._valueCache[e]=null)}setColor4(e,t,i){this._cacheFloat4(e,t.r,t.g,t.b,i)&&!this.engine.setFloat4(this._uniforms[e],t.r,t.g,t.b,i)&&(this._valueCache[e]=null)}setDirectColor4(e,t){this._cacheFloat4(e,t.r,t.g,t.b,t.a)&&!this.engine.setFloat4(this._uniforms[e],t.r,t.g,t.b,t.a)&&(this._valueCache[e]=null)}_getVertexShaderCode(){return this.vertexShader?this.engine._getShaderSource(this.vertexShader):null}_getFragmentShaderCode(){return this.fragmentShader?this.engine._getShaderSource(this.fragmentShader):null}}var e7=e.i(6774);let e5={};function e6(e,t,i=""){return i+(t?t+"\n":"")+e}function e9(e,t,i,s,r,n,a){return(a||e5.loadFile||e7.LoadFile)(e,t,i,s,r,n)}function e8(e,t,i,s){if(e){t?e.IS_NDC_HALF_ZRANGE="":delete e.IS_NDC_HALF_ZRANGE,i?e.USE_REVERSE_DEPTHBUFFER="":delete e.USE_REVERSE_DEPTHBUFFER,s?e.USE_EXACT_SRGB_CONVERSIONS="":delete e.USE_EXACT_SRGB_CONVERSIONS;return}{let e="";return t&&(e+="#define IS_NDC_HALF_ZRANGE"),i&&(e&&(e+="\n"),e+="#define USE_REVERSE_DEPTHBUFFER"),s&&(e&&(e+="\n"),e+="#define USE_EXACT_SRGB_CONVERSIONS"),e}}e.s(["EngineFunctionContext",0,e5,"_ConcatenateShader",0,e6,"_GetGlobalDefines",0,e8,"_LoadFile",0,e9,"allocateAndCopyTypedBuffer",0,function(e,t,i=!1,s){switch(e){case 3:{let e=new Int8Array(t);return s&&e.set(new Int8Array(s)),e}case 0:{let e=new Uint8Array(t);return s&&e.set(new Uint8Array(s)),e}case 4:{let e=new Int16Array("number"!=typeof t?t:i?t/2:t);return s&&e.set(new Int16Array(s)),e}case 5:case 8:case 9:case 10:case 2:{let e=new Uint16Array("number"!=typeof t?t:i?t/2:t);return s&&e.set(new Uint16Array(s)),e}case 6:{let e=new Int32Array("number"!=typeof t?t:i?t/4:t);return s&&e.set(new Int32Array(s)),e}case 7:case 11:case 12:case 13:case 14:case 15:{let e=new Uint32Array("number"!=typeof t?t:i?t/4:t);return s&&e.set(new Uint32Array(s)),e}case 1:{let e=new Float32Array("number"!=typeof t?t:i?t/4:t);return s&&e.set(new Float32Array(s)),e}}let r=new Uint8Array(t);return s&&r.set(new Uint8Array(s)),r}],61599);let te=new WeakMap,tt={_webGLVersion:2,cachedPipelines:{}};function ti(e){let t=te.get(e);if(!t){if(!e)return tt;t={_webGLVersion:e.TEXTURE_BINDING_3D?2:1,_context:e,parallelShaderCompile:e.getExtension("KHR_parallel_shader_compile")||void 0,cachedPipelines:{}},te.set(e,t)}return t}function ts(e,t,i,s,r,n){let a=ti(s);return n||(n=a._createShaderProgramInjection??tn),n(e,to(t,"vertex",s,a._contextWasLost),to(i,"fragment",s,a._contextWasLost),s,r,a.validateShaderPrograms)}function tr(e,t,i,s,r,n=null,a){var o,l,h,c,u,p,d,f,_,g,m,b;let S=ti(r);a||(a=S._createShaderProgramInjection??tn);let C=S._webGLVersion>1?"#version 300 es\n#define WEBGL2 \n":"";return a(e,(o=t,l="vertex",h=s,c=C,u=r,p=S._contextWasLost,to(e6(o,h,c),l,u,p)),(d=i,f="fragment",_=s,g=C,m=r,b=S._contextWasLost,to(e6(d,_,g),f,m,b)),r,n,S.validateShaderPrograms)}function tn(e,t,i,s,r=null,n){let a=s.createProgram();if(e.program=a,!a)throw Error("Unable to create program");return s.attachShader(a,t),s.attachShader(a,i),s.linkProgram(a),e.context=s,e.vertexShader=t,e.fragmentShader=i,e.isParallelCompiled||ta(e,s,n),a}function ta(e,t,i){let s=e.context,r=e.vertexShader,n=e.fragmentShader,a=e.program;if(!s.getProgramParameter(a,s.LINK_STATUS)){if(!t.getShaderParameter(r,t.COMPILE_STATUS)){let i=t.getShaderInfoLog(r);if(i)throw e.vertexCompilationError=i,Error("VERTEX SHADER "+i)}if(!t.getShaderParameter(n,t.COMPILE_STATUS)){let i=t.getShaderInfoLog(n);if(i)throw e.fragmentCompilationError=i,Error("FRAGMENT SHADER "+i)}let i=s.getProgramInfoLog(a);if(i)throw e.programLinkError=i,Error(i)}if(i&&(s.validateProgram(a),!s.getProgramParameter(a,s.VALIDATE_STATUS))){let t=s.getProgramInfoLog(a);if(t)throw e.programValidationError=t,Error(t)}s.deleteShader(r),s.deleteShader(n),e.vertexShader=void 0,e.fragmentShader=void 0,e.onCompiled&&(e.onCompiled(),e.onCompiled=void 0)}function to(e,t,i,s){let r=i.createShader("vertex"===t?i.VERTEX_SHADER:i.FRAGMENT_SHADER);if(!r){let e,r=i.NO_ERROR;for(;(e=i.getError())!==i.NO_ERROR;)r=e;throw Error(`Something went wrong while creating a gl ${t} shader object. gl error=${r}, gl isContextLost=${i.isContextLost()}, _contextWasLost=${s}`)}return i.shaderSource(r,e),i.compileShader(r),r}e.s(["_createShaderProgram",0,tn,"_executeWhenRenderingStateIsCompiled",0,function(e,t){if(!e.isParallelCompiled)return void t(e);let i=e.onCompiled;e.onCompiled=()=>{i?.(),t(e)}},"_finalizePipelineContext",0,ta,"_isRenderingStateCompiled",0,function(e,t,i){if(e._isDisposed)return!1;let s=ti(t);return!!(s&&s.parallelShaderCompile&&s.parallelShaderCompile.COMPLETION_STATUS_KHR&&e.program&&t.getProgramParameter(e.program,s.parallelShaderCompile.COMPLETION_STATUS_KHR))&&(ta(e,t,i),!0)},"_preparePipelineContext",0,function(e,t,i,s,r,n,a,o,l,h="",c,u,p){let d=ti(e.context);u||(u=d.createRawShaderProgramInjection??ts),p||(p=d.createShaderProgramInjection??tr),s?e.program=u(e,t,i,e.context,l):e.program=p(e,t,i,o,e.context,l),e.program.__SPECTOR_rebuildProgram=a,c()},"_setProgram",0,function(e,t){t.useProgram(e)},"createPipelineContext",0,function(e,t){let i=new e4,s=ti(e);return s.parallelShaderCompile&&!s.disableParallelShaderCompile&&(i.isParallelCompiled=!0),i.context=s._context,i},"createRawShaderProgram",0,ts,"createShaderProgram",0,tr,"deleteStateObject",0,function(e){te.delete(e)},"getStateObject",0,ti],47432);class tl{constructor(){this.children=[]}isValid(e){return!0}process(e,t,i){let s="";if(this.line){let i=this.line,r=t.processor;if(r){r.lineProcessor&&(i=r.lineProcessor(i,t.isFragment,t.processingContext));let s=t.processor?.attributeKeywordName??"attribute",n=t.isFragment&&t.processor?.varyingFragmentKeywordName?t.processor?.varyingFragmentKeywordName:!t.isFragment&&t.processor?.varyingVertexKeywordName?t.processor?.varyingVertexKeywordName:"varying";!t.isFragment&&r.attributeProcessor&&this.line.startsWith(s)?i=r.attributeProcessor(this.line,e,t.processingContext):r.varyingProcessor&&(r.varyingCheck?.(this.line,t.isFragment)||!r.varyingCheck&&this.line.startsWith(n))?i=r.varyingProcessor(this.line,t.isFragment,e,t.processingContext):r.uniformProcessor&&r.uniformRegexp&&r.uniformRegexp.test(this.line)?t.lookForClosingBracketForUniformBuffer||(i=r.uniformProcessor(this.line,t.isFragment,e,t.processingContext)):r.uniformBufferProcessor&&r.uniformBufferRegexp&&r.uniformBufferRegexp.test(this.line)?t.lookForClosingBracketForUniformBuffer||(i=r.uniformBufferProcessor(this.line,t.isFragment,t.processingContext),t.lookForClosingBracketForUniformBuffer=!0):r.textureProcessor&&r.textureRegexp&&r.textureRegexp.test(this.line)?i=r.textureProcessor(this.line,t.isFragment,e,t.processingContext):(r.uniformProcessor||r.uniformBufferProcessor)&&this.line.startsWith("uniform")&&!t.lookForClosingBracketForUniformBuffer&&(/uniform\s+(?:(?:highp)?|(?:lowp)?)\s*(\S+)\s+(\S+)\s*;/.test(this.line)?r.uniformProcessor&&(i=r.uniformProcessor(this.line,t.isFragment,e,t.processingContext)):r.uniformBufferProcessor&&(i=r.uniformBufferProcessor(this.line,t.isFragment,t.processingContext),t.lookForClosingBracketForUniformBuffer=!0)),t.lookForClosingBracketForUniformBuffer&&-1!==this.line.indexOf("}")&&(t.lookForClosingBracketForUniformBuffer=!1,r.endOfUniformBufferProcessor&&(i=r.endOfUniformBufferProcessor(this.line,t.isFragment,t.processingContext)))}s+=i+"\n"}for(let r of this.children)s+=r.process(e,t,i);return this.additionalDefineKey&&(e[this.additionalDefineKey]=this.additionalDefineValue||"true",i[this.additionalDefineKey]=e[this.additionalDefineKey]),s}}class th{constructor(){this._lines=[]}get currentLine(){return this._lines[this.lineIndex]}get canRead(){return this.lineIndex<this._lines.length-1}set lines(e){for(let t of(this._lines.length=0,e)){if(!t||"\r"===t)continue;if("#"===t[0]){this._lines.push(t);continue}let e=t.trim();if(!e)continue;if(e.startsWith("//")){this._lines.push(t);continue}let i=e.indexOf(";");if(-1===i)this._lines.push(e);else if(i===e.length-1)e.length>1&&this._lines.push(e);else{let e=t.split(";");for(let t=0;t<e.length;t++){let i=e[t];i&&(i=i.trim())&&this._lines.push(i+(t!==e.length-1?";":""))}}}}}class tc extends tl{process(e,t,i){for(let s=0;s<this.children.length;s++){let r=this.children[s];if(r.isValid(e))return r.process(e,t,i)}return""}}class tu extends tl{isValid(e){return this.testExpression.isTrue(e)}}class tp{isTrue(e){return!0}static postfixToInfix(e){let t=[];for(let i of e)if(void 0===tp._OperatorPriority[i])t.push(i);else{let e=t[t.length-1],s=t[t.length-2];t.length-=2,t.push(`(${s}${i}${e})`)}return t[t.length-1]}static infixToPostfix(e){let t=tp._InfixToPostfixCache.get(e);if(t)return t.accessTime=Date.now(),t.result;if(!e.includes("&&")&&!e.includes("||")&&!e.includes(")")&&!e.includes("("))return[e];let i=[],s=-1,r=()=>{""!==(h=h.trim())&&(i.push(h),h="")},n=e=>{s<tp._Stack.length-1&&(tp._Stack[++s]=e)},a=()=>tp._Stack[s],o=()=>-1===s?"!!INVALID EXPRESSION!!":tp._Stack[s--],l=0,h="";for(;l<e.length;){let t=e.charAt(l),c=l<e.length-1?e.substring(l,2+l):"";if("("===t)h="",n(t);else if(")"===t){for(r();-1!==s&&"("!==a();)i.push(o());o()}else if(tp._OperatorPriority[c]>1){for(r();-1!==s&&tp._OperatorPriority[a()]>=tp._OperatorPriority[c];)i.push(o());n(c),l++}else h+=t;l++}for(r();-1!==s;)"("===a()?o():i.push(o());return tp._InfixToPostfixCache.size>=tp.InfixToPostfixCacheLimitSize&&tp.ClearCache(),tp._InfixToPostfixCache.set(e,{result:i,accessTime:Date.now()}),i}static ClearCache(){let e=Array.from(tp._InfixToPostfixCache.entries()).sort((e,t)=>e[1].accessTime-t[1].accessTime);for(let t=0;t<tp.InfixToPostfixCacheCleanupSize;t++)tp._InfixToPostfixCache.delete(e[t][0])}}tp.InfixToPostfixCacheLimitSize=5e4,tp.InfixToPostfixCacheCleanupSize=25e3,tp._InfixToPostfixCache=new Map,tp._OperatorPriority={")":0,"(":1,"||":2,"&&":3},tp._Stack=["","","","","","","","","","","","","","","","","","","",""];class td extends tp{constructor(e,t=!1){super(),this.define=e,this.not=t}isTrue(e){let t=void 0!==e[this.define];return this.not&&(t=!t),t}}class tf extends tp{isTrue(e){return this.leftOperand.isTrue(e)||this.rightOperand.isTrue(e)}}class t_ extends tp{isTrue(e){return this.leftOperand.isTrue(e)&&this.rightOperand.isTrue(e)}}class tg extends tp{constructor(e,t,i){super(),this.define=e,this.operand=t,this.testValue=i}toString(){return`${this.define} ${this.operand} ${this.testValue}`}isTrue(e){let t=!1,i=parseInt(void 0!=e[this.define]?e[this.define]:this.define),s=parseInt(void 0!=e[this.testValue]?e[this.testValue]:this.testValue);if(isNaN(i)||isNaN(s))return!1;switch(this.operand){case">":t=i>s;break;case"<":t=i<s;break;case"<=":t=i<=s;break;case">=":t=i>=s;break;case"==":t=i===s;break;case"!=":t=i!==s}return t}}let tm=/defined\s*?\((.+?)\)/g,tb=/defined\s*?\[(.+?)\]/g,tS=/#include\s?<(.+)>(\((.*)\))*(\[(.*)\])*/g,tC=/__decl__/,tE=/light\{X\}.(\w*)/g,ty=/\{X\}/g,tx=[],tF=/(#ifdef)|(#else)|(#elif)|(#endif)|(#ifndef)|(#if)/;function tA(e){e.processor&&e.processor.initializeShaders&&e.processor.initializeShaders(e.processingContext)}function tv(e,t,i,s){t.processor?.preProcessShaderCode&&(e=t.processor.preProcessShaderCode(e,t.isFragment)),tM(e,t,e=>{t.processCodeAfterIncludes&&(e=t.processCodeAfterIncludes(t.isFragment?"fragment":"vertex",e,t.defines)),i(function(e,t,i){var s;let r,n,a=function(e,t){if(t.processor?.noPrecision)return e;let i=t.shouldUseHighPrecisionShader;return -1===e.indexOf("precision highp float")?e=i?"precision highp float;\n"+e:"precision mediump float;\n"+e:i||(e=e.replace("precision highp float","precision mediump float")),e}(e,t);if(!t.processor||0===t.processor.shaderLanguage&&-1!==a.indexOf("#version 3")&&(a=a.replace("#version 300 es",""),!t.processor.parseGLES3))return a;let o=t.defines,l=function(e,t){let i=e.defines,s={};for(let e of i){let t=e.replace("#define","").replace(";","").trim().split(" ");s[t[0]]=t.length>1?t[1]:""}return e.processor?.shaderLanguage===0&&(s.GL_ES="true"),s.__VERSION__=e.version,s[e.platformName]="true",e8(s,t?.isNDCHalfZRange,t?.useReverseDepthBuffer,t?.useExactSrgbConversions),s}(t,i);t.processor.preProcessor&&(a=t.processor.preProcessor(a,o,l,t.isFragment,t.processingContext));let h={};return s=a,r=new tl,(n=new th).lineIndex=-1,n.lines=s.split("\n"),tR(n,r,h),a=r.process(l,t,h),t.processor.postProcessor&&(a=t.processor.postProcessor(a,o,t.isFragment,t.processingContext,i?{drawBuffersExtensionDisabled:!i.getCaps().drawBuffersExtension}:{},l,h)),i?._features.needShaderCodeInlining&&(a=i.inlineShaderCode(a)),a}(e,t,s),e)})}function tD(e,t,i){return i.processor&&i.processor.finalizeShaders?i.processor.finalizeShaders(e,t,i.processingContext):{vertexCode:e,fragmentCode:t}}function tP(e){let t=/defined\((.+)\)/.exec(e);if(t&&t.length)return new td(t[1].trim(),"!"===e[0]);let i="",s=0;for(i of["==","!=",">=","<=","<",">"])if((s=e.indexOf(i))>-1)break;if(-1===s)return new td(e);let r=e.substring(0,s).trim(),n=e.substring(s+i.length).trim();return new tg(r,i,n)}function tO(e,t){let i=new tu,s=e.substring(0,t),r=e.substring(t);return r=r.substring(0,(r.indexOf("//")+1||r.length+1)-1).trim(),"#ifdef"===s?i.testExpression=new td(r):"#ifndef"===s?i.testExpression=new td(r,!0):i.testExpression=function(e){e=e.replace(tm,"defined[$1]");let t=tp.infixToPostfix(e),i=[];for(let e of t)if("||"!==e&&"&&"!==e)i.push(e);else if(i.length>=2){let t=i[i.length-1],s=i[i.length-2];i.length-=2;let r="&&"==e?new t_:new tf;"string"==typeof t&&(t=t.replace(tb,"defined($1)")),"string"==typeof s&&(s=s.replace(tb,"defined($1)")),r.leftOperand="string"==typeof s?tP(s):s,r.rightOperand="string"==typeof t?tP(t):t,i.push(r)}let s=i[i.length-1];return"string"==typeof s&&(s=s.replace(tb,"defined($1)")),"string"==typeof s?tP(s):s}(r),i}function tT(e,t,i,s){let r;for(;tR(e,i,s);){let n=(r=e.currentLine).substring(0,5).toLowerCase();if("#else"===n){let i=new tl;t.children.push(i),tR(e,i,s);return}if("#elif"===n){let e=tO(r,5);t.children.push(e),i=e}}}function tR(e,t,i){for(;e.canRead;){e.lineIndex++;let s=e.currentLine;if(s.indexOf("#")>=0){let r=tF.exec(s);if(r&&r.length){switch(r[0]){case"#ifdef":{let r=new tc;t.children.push(r);let n=tO(s,6);r.children.push(n),tT(e,r,n,i);break}case"#else":case"#elif":return!0;case"#endif":return!1;case"#ifndef":{let r=new tc;t.children.push(r);let n=tO(s,7);r.children.push(n),tT(e,r,n,i);break}case"#if":{let r=new tc,n=tO(s,3);t.children.push(r),r.children.push(n),tT(e,r,n,i)}}continue}}let r=new tl;if(r.line=s,t.children.push(r),"#"===s[0]&&"d"===s[1]){let e=s.replace(";","").split(" ");r.additionalDefineKey=e[1],3===e.length&&(r.additionalDefineValue=e[2])}}return!1}function tM(e,t,i){let s;for(tx.length=0;null!==(s=tS.exec(e));)tx.push(s);let r=[e],n=!1;for(let e of tx){let s=e[1];if(-1!==s.indexOf("__decl__")&&(s=s.replace(tC,""),t.supportsUniformBuffers&&(s=s.replace("Vertex","Ubo").replace("Fragment","Ubo")),s+="Declaration"),t.includesShadersStore[s]){let i=t.includesShadersStore[s];if(e[2]){let t=e[3].split(",");for(let e=0;e<t.length;e+=2){let s=RegExp(t[e],"g"),r=t[e+1];i=i.replace(s,r)}}if(e[4]){let s=e[5];if(-1!==s.indexOf("..")){let e=s.split(".."),r=parseInt(e[0]),n=parseInt(e[1]),a=i.slice(0);i="",isNaN(n)&&(n=t.indexParameters[e[1]]);for(let e=r;e<n;e++)t.supportsUniformBuffers||(a=a.replace(tE,(e,t)=>t+"{X}")),i+=a.replace(ty,e.toString())+"\n"}else t.supportsUniformBuffers||(i=i.replace(tE,(e,t)=>t+"{X}")),i=i.replace(ty,s)}let a=[];for(let t of r){let s=t.split(e[0]);for(let e=0;e<s.length-1;e++)a.push(s[e]),a.push(i);a.push(s[s.length-1])}r=a,n=n||i.indexOf("#include<")>=0||i.indexOf("#include <")>=0}else{let e=t.shadersRepository+"ShadersInclude/"+s+".fx";(0,e7.LoadFile)(e,e=>{t.includesShadersStore[s]=e,tM(r.join(""),t,i)});return}}tx.length=0;let a=r.join("");n?tM(a.toString(),t,i):i(a)}function tB(e,t){return ti(t).cachedPipelines[e]}function tk(e){let t=e._name,i=e.context;if(t&&i){let e=ti(i),s=e.cachedPipelines[t];s?.dispose(),delete e.cachedPipelines[t]}}function tw(e,t,i,s,r,n,a){let o,l,h=(0,e3.IsWindowObjectExist)()?n?.getHostDocument():null;o="string"==typeof t?t:"string"==typeof t.vertexSource?"source:"+t.vertexSource:"string"==typeof t.vertexElement?h?.getElementById(t.vertexElement)||t.vertexElement:t.vertex||t,l="string"==typeof t?t:"string"==typeof t.fragmentSource?"source:"+t.fragmentSource:"string"==typeof t.fragmentElement?h?.getElementById(t.fragmentElement)||t.fragmentElement:t.fragment||t;let c=[void 0,void 0],u=()=>{if(c[0]&&c[1]){let[o,l]=c;tA(e),tv(o,e,(o,h)=>{a&&(a._vertexSourceCodeBeforeMigration=h),i&&(o=i("vertex",o)),e.isFragment=!0,tv(l,e,(n,l)=>{var h,c,u,p;a&&(a._fragmentSourceCodeBeforeMigration=l),i&&(n=i("fragment",n));let d=tD(o,n,e);e=null;let f=(h=d.vertexCode,c=d.fragmentCode,u=t,p=r,u?{vertexSourceCode:(1===p?"//":"")+"#define SHADER_NAME vertex:"+(u.vertexElement||u.vertex||u.spectorName||u)+"\n"+h,fragmentSourceCode:(1===p?"//":"")+"#define SHADER_NAME fragment:"+(u.fragmentElement||u.fragment||u.spectorName||u)+"\n"+c}:{vertexSourceCode:h,fragmentSourceCode:c});s?.(f.vertexSourceCode,f.fragmentSourceCode)},n)},n)}};tI(o,"Vertex","",e=>{a&&(a._rawVertexSourceCode=e),c[0]=e,u()},r),tI(l,"Fragment","Pixel",e=>{a&&(a._rawFragmentSourceCode=e),c[1]=e,u()},r)}function tI(e,t,i,s,r,n){let a;if("u">typeof HTMLElement&&e instanceof HTMLElement)return void s((0,e3.GetDOMTextContent)(e));if("source:"===e.substring(0,7))return void s(e.substring(7));if("base64:"===e.substring(0,7))return void s(window.atob(e.substring(7)));let o=e2.ShaderStore.GetShadersStore(r);if(o[e+t+"Shader"])return void s(o[e+t+"Shader"]);if(i&&o[e+i+"Shader"])return void s(o[e+i+"Shader"]);if(a="."===e[0]||"/"===e[0]||e.indexOf("http")>-1?e:e2.ShaderStore.GetShadersRepository(r)+e,!(n=n||e9))throw Error("loadFileInjection is not defined");n(a+"."+t.toLowerCase()+".fx",s)}e7.LoadFile,e.s(["Finalize",0,tD,"Initialize",0,tA,"Process",0,tv,"ProcessIncludes",0,tM],345);let tL=(e,t,i,s)=>{try{let r=e.context?ti(e.context):null;r&&(r.disableParallelShaderCompile=e.disableParallelCompilation);let n=e.existingPipelineContext||t(e.shaderProcessingContext);return n._name=e.name,e.name&&r&&(r.cachedPipelines[e.name]=n),i(n,e.vertex,e.fragment,!!e.createAsRaw,"","",e.rebuildRebind,e.defines,e.transformFeedbackVaryings,"",()=>{s(n,()=>{e.onRenderingStateCompiled?.(n)})}),n}catch(e){throw e1.Logger.Error("Error compiling effect"),e}};e.s(["_ProcessShaderCode",0,tw,"createAndPreparePipelineContext",0,tL,"getCachedPipeline",0,tB,"resetCachedPipeline",0,tk],21296);var tU=e.i(49097),tN=e.i(33945);class tV{static get ShadersRepository(){return e2.ShaderStore.ShadersRepository}static set ShadersRepository(e){e2.ShaderStore.ShadersRepository=e}get isDisposed(){return this._isDisposed}get onBindObservable(){return this._onBindObservable||(this._onBindObservable=new e0.Observable),this._onBindObservable}get shaderLanguage(){return this._shaderLanguage}constructor(e,t,i,s=null,r,n=null,a=null,o=null,l=null,h,c="",u=0,p){let d;this.defines="",this.onCompiled=null,this.onError=null,this.onBind=null,this.uniqueId=0,this.onCompileObservable=new e0.Observable,this.onErrorObservable=new e0.Observable,this._onBindObservable=null,this._isDisposed=!1,this._refCount=1,this._bonesComputationForcedToCPU=!1,this._uniformBuffersNames={},this._multiTarget=!1,this._samplers={},this._isReady=!1,this._compilationError="",this._allFallbacksProcessed=!1,this._uniforms={},this._key="",this._fallbacks=null,this._vertexSourceCodeOverride="",this._fragmentSourceCodeOverride="",this._transformFeedbackVaryings=null,this._disableParallelShaderCompilation=!1,this._pipelineContext=null,this._vertexSourceCode="",this._fragmentSourceCode="",this._vertexSourceCodeBeforeMigration="",this._fragmentSourceCodeBeforeMigration="",this._rawVertexSourceCode="",this._rawFragmentSourceCode="",this._processCodeAfterIncludes=void 0,this._processFinalCode=null,this._onReleaseEffectsObserver=null,this.name=e,this._key=c;const f=this._key.replace(/\r/g,"").replace(/\n/g,"|");if(t.attributes){if(this._engine=i,this._attributesNames=t.attributes,this._uniformsNames=t.uniformsNames.concat(t.samplers),this._samplerList=t.samplers.slice(),this.defines=t.defines,this.onError=t.onError,this.onCompiled=t.onCompiled,this._fallbacks=t.fallbacks,this._indexParameters=t.indexParameters,this._transformFeedbackVaryings=t.transformFeedbackVaryings||null,this._multiTarget=!!t.multiTarget,this._shaderLanguage=t.shaderLanguage??0,this._disableParallelShaderCompilation=!!t.disableParallelShaderCompilation,t.uniformBuffersNames){this._uniformBuffersNamesList=t.uniformBuffersNames.slice();for(let e=0;e<t.uniformBuffersNames.length;e++)this._uniformBuffersNames[t.uniformBuffersNames[e]]=e}this._processFinalCode=t.processFinalCode??null,this._processCodeAfterIncludes=t.processCodeAfterIncludes??void 0,p=t.extraInitializationsAsync,d=t.existingPipelineContext}else this._engine=r,this.defines=null==n?"":n,this._uniformsNames=i.concat(s),this._samplerList=s?s.slice():[],this._attributesNames=t,this._uniformBuffersNamesList=[],this._shaderLanguage=u,this.onError=l,this.onCompiled=o,this._indexParameters=h,this._fallbacks=a;"WEBGL2"===this._engine.shaderPlatformName&&(d=tB(f,this._engine._gl)??d),this._attributeLocationByName={},this.uniqueId=tV._UniqueIdSeed++,d?(this._pipelineContext=d,this._pipelineContext.setEngine(this._engine),this._onRenderingStateCompiled(this._pipelineContext),this._pipelineContext.program&&(this._pipelineContext.program.__SPECTOR_rebuildProgram=this._rebuildProgram.bind(this))):this._processShaderCodeAsync(null,!1,null,p).catch(e=>{let t=e?.message??String(e),i=Error(`Effect async shader preparation failed for "${String(this.name)}": ${t}`);e&&"string"==typeof e.stack&&(i.stack=`${i.message}
2
+ Caused by: ${e.stack}`),this._processCompilationErrors(i)}),this._onReleaseEffectsObserver=this._engine.onReleaseEffectsObservable.addOnce(()=>{this._onReleaseEffectsObserver=null,this.isDisposed||this.dispose(!0)})}async _processShaderCodeAsync(e=null,t=!1,i=null,s){s&&await s(),this._processingContext=i||this._engine._getShaderProcessingContext(this._shaderLanguage,!1),tw({defines:this.defines.split("\n"),indexParameters:this._indexParameters,isFragment:!1,shouldUseHighPrecisionShader:this._engine._shouldUseHighPrecisionShader,processor:e??this._engine._getShaderProcessor(this._shaderLanguage),supportsUniformBuffers:this._engine.supportsUniformBuffers,shadersRepository:e2.ShaderStore.GetShadersRepository(this._shaderLanguage),includesShadersStore:e2.ShaderStore.GetIncludesShadersStore(this._shaderLanguage),version:(100*this._engine.version).toString(),platformName:this._engine.shaderPlatformName,processingContext:this._processingContext,isNDCHalfZRange:this._engine.isNDCHalfZRange,useReverseDepthBuffer:this._engine.useReverseDepthBuffer,processCodeAfterIncludes:this._processCodeAfterIncludes},this.name,this._processFinalCode,(e,i)=>{this._vertexSourceCode=e,this._fragmentSourceCode=i,this._prepareEffect(t)},this._shaderLanguage,this._engine,this)}get key(){return this._key}isReady(){try{return this._isReadyInternal()}catch{return!1}}_isReadyInternal(){return!!this._engine.isDisposed||!!this._isReady||!!this._pipelineContext&&this._pipelineContext.isReady}getEngine(){return this._engine}getPipelineContext(){return this._pipelineContext}getAttributesNames(){return this._attributesNames}getAttributeLocation(e){return this._attributes[e]}getAttributeLocationByName(e){return this._attributeLocationByName[e]}getAttributesCount(){return this._attributes.length}getUniformIndex(e){return this._uniformsNames.indexOf(e)}getUniform(e){return this._uniforms[e]}getSamplers(){return this._samplerList}getUniformNames(){return this._uniformsNames}getUniformBuffersNames(){return this._uniformBuffersNamesList}getIndexParameters(){return this._indexParameters}getCompilationError(){return this._compilationError}allFallbacksProcessed(){return this._allFallbacksProcessed}async whenCompiledAsync(){return await new Promise(e=>{this.executeWhenCompiled(e)})}executeWhenCompiled(e){this.isReady()?e(this):(this.onCompileObservable.add(t=>{e(t)}),(!this._pipelineContext||this._pipelineContext.isAsync)&&this._checkIsReady(null))}_checkIsReady(e){(0,tU._RetryWithInterval)(()=>this._isReadyInternal()||this._isDisposed,()=>{},t=>{this._processCompilationErrors(t,e)},16,12e4,!0,` - Effect: ${"string"==typeof this.name?this.name:this.key}`)}get vertexSourceCode(){return this._vertexSourceCodeOverride&&this._fragmentSourceCodeOverride?this._vertexSourceCodeOverride:this._pipelineContext?._getVertexShaderCode()??this._vertexSourceCode}get fragmentSourceCode(){return this._vertexSourceCodeOverride&&this._fragmentSourceCodeOverride?this._fragmentSourceCodeOverride:this._pipelineContext?._getFragmentShaderCode()??this._fragmentSourceCode}get vertexSourceCodeBeforeMigration(){return this._vertexSourceCodeBeforeMigration}get fragmentSourceCodeBeforeMigration(){return this._fragmentSourceCodeBeforeMigration}get rawVertexSourceCode(){return this._rawVertexSourceCode}get rawFragmentSourceCode(){return this._rawFragmentSourceCode}getPipelineGenerationOptions(){return{platformName:this._engine.shaderPlatformName,shaderLanguage:this._shaderLanguage,shaderNameOrContent:this.name,key:this._key,defines:this.defines.split("\n"),addGlobalDefines:!1,extendedProcessingOptions:{indexParameters:this._indexParameters,isNDCHalfZRange:this._engine.isNDCHalfZRange,useReverseDepthBuffer:this._engine.useReverseDepthBuffer,supportsUniformBuffers:this._engine.supportsUniformBuffers},extendedCreatePipelineOptions:{transformFeedbackVaryings:this._transformFeedbackVaryings,createAsRaw:!!(this._vertexSourceCodeOverride&&this._fragmentSourceCodeOverride)}}}_rebuildProgram(e,t,i,s){this._isReady=!1,this._vertexSourceCodeOverride=e,this._fragmentSourceCodeOverride=t,this.onError=(e,t)=>{s&&s(t)},this.onCompiled=()=>{let e=this.getEngine().scenes;if(e)for(let t=0;t<e.length;t++)e[t].markAllMaterialsAsDirty(127);this._pipelineContext._handlesSpectorRebuildCallback?.(i)},this._fallbacks=null,this._prepareEffect()}_onRenderingStateCompiled(e){if(this._pipelineContext=e,this._pipelineContext.setEngine(this._engine),this._attributes=[],this._pipelineContext._fillEffectInformation(this,this._uniformBuffersNames,this._uniformsNames,this._uniforms,this._samplerList,this._samplers,this._attributesNames,this._attributes),this._attributesNames)for(let e=0;e<this._attributesNames.length;e++){let t=this._attributesNames[e];this._attributeLocationByName[t]=this._attributes[e]}this._engine.bindSamplers(this),this._compilationError="",this._isReady=!0,this.onCompiled&&this.onCompiled(this),this.onCompileObservable.notifyObservers(this),this.onCompileObservable.clear(),this._fallbacks&&this._fallbacks.unBindMesh(),tV.AutomaticallyClearCodeCache&&this.clearCodeCache()}_prepareEffect(e=!1){let t=this._pipelineContext;this._isReady=!1;try{let i=!!(this._vertexSourceCodeOverride&&this._fragmentSourceCodeOverride),s=i?null:this.defines,r=i?this._vertexSourceCodeOverride:this._vertexSourceCode,n=i?this._fragmentSourceCodeOverride:this._fragmentSourceCode,a=this._engine;this._pipelineContext=tL({existingPipelineContext:e?t:null,vertex:r,fragment:n,context:"WEBGL2"===a.shaderPlatformName||"WEBGL1"===a.shaderPlatformName?a._gl:void 0,rebuildRebind:(e,t,i,s)=>this._rebuildProgram(e,t,i,s),defines:s,transformFeedbackVaryings:this._transformFeedbackVaryings,name:this._key.replace(/\r/g,"").replace(/\n/g,"|"),createAsRaw:i,disableParallelCompilation:this._disableParallelShaderCompilation,shaderProcessingContext:this._processingContext,onRenderingStateCompiled:i=>{t&&!e&&this._engine._deletePipelineContext(t),i&&this._onRenderingStateCompiled(i)}},this._engine.createPipelineContext.bind(this._engine),this._engine._preparePipelineContextAsync.bind(this._engine),this._engine._executeWhenRenderingStateIsCompiled.bind(this._engine)),this._pipelineContext.isAsync&&this._checkIsReady(t)}catch(e){this._processCompilationErrors(e,t)}}_getShaderCodeAndErrorLine(e,t,i){let s=null;if(t&&e){let r=t.match(i?/FRAGMENT SHADER ERROR: 0:(\d+?):/:/VERTEX SHADER ERROR: 0:(\d+?):/);if(r&&2===r.length){let t=parseInt(r[1]),n=e.split("\n",-1);n.length>=t&&(s=`Offending line [${t}] in ${i?"fragment":"vertex"} code: ${n[t-1]}`)}}return[e,s]}_processCompilationErrors(e,t=null){this._compilationError="string"==typeof e?.stack?e.stack:e?.message??String(e);let i=this._attributesNames,s=this._fallbacks;if(e1.Logger.Error("Unable to compile effect:"),e1.Logger.Error(`Uniforms: ${this._uniformsNames.join(" ")}`),e1.Logger.Error(`Attributes: ${i.join(" ")}`),e1.Logger.Error("Defines:\n"+this.defines),tV.LogShaderCodeOnCompilationError){let e,t=null,i=null;this._pipelineContext?._getVertexShaderCode()&&([e,t]=this._getShaderCodeAndErrorLine(this._pipelineContext._getVertexShaderCode(),this._compilationError,!1),e&&(e1.Logger.Error("Vertex code:"),e1.Logger.Error(e))),this._pipelineContext?._getFragmentShaderCode()&&([e,i]=this._getShaderCodeAndErrorLine(this._pipelineContext?._getFragmentShaderCode(),this._compilationError,!0),e&&(e1.Logger.Error("Fragment code:"),e1.Logger.Error(e))),t&&e1.Logger.Error(t),i&&e1.Logger.Error(i)}e1.Logger.Error("Error: "+this._compilationError);let r=()=>{this.onError&&this.onError(this,this._compilationError),this.onErrorObservable.notifyObservers(this),this._engine.onEffectErrorObservable.notifyObservers({effect:this,errors:this._compilationError})};t&&(this._pipelineContext=t,this._isReady=!0,r()),s?(this._pipelineContext=null,s.hasMoreFallbacks?(this._allFallbacksProcessed=!1,e1.Logger.Error("Trying next fallback."),this.defines=s.reduce(this.defines,this),this._prepareEffect()):(this._allFallbacksProcessed=!0,r(),this.onErrorObservable.clear(),this._fallbacks&&this._fallbacks.unBindMesh())):(this._allFallbacksProcessed=!0,t||r())}get isSupported(){return""===this._compilationError}_bindTexture(e,t){this._engine._bindTexture(this._samplers[e],t,e)}setTexture(e,t){this._engine.setTexture(this._samplers[e],this._uniforms[e],t,e)}setTextureArray(e,t){let i=e+"Ex";if(-1===this._samplerList.indexOf(i+"0")){let s=this._samplerList.indexOf(e);for(let e=1;e<t.length;e++){let t=i+(e-1).toString();this._samplerList.splice(s+e,0,t)}let r=0;for(let e of this._samplerList)this._samplers[e]=r,r+=1}this._engine.setTextureArray(this._samplers[e],this._uniforms[e],t,e)}bindUniformBuffer(e,t){let i=this._uniformBuffersNames[t];void 0===i||tV._BaseCache[i]===e&&this._engine._features.useUBOBindingCache||(tV._BaseCache[i]=e,this._engine.bindUniformBufferBase(e,i,t))}bindUniformBlock(e,t){this._engine.bindUniformBlock(this._pipelineContext,e,t)}setInt(e,t){return this._pipelineContext.setInt(e,t),this}setInt2(e,t,i){return this._pipelineContext.setInt2(e,t,i),this}setInt3(e,t,i,s){return this._pipelineContext.setInt3(e,t,i,s),this}setInt4(e,t,i,s,r){return this._pipelineContext.setInt4(e,t,i,s,r),this}setIntArray(e,t){return this._pipelineContext.setIntArray(e,t),this}setIntArray2(e,t){return this._pipelineContext.setIntArray2(e,t),this}setIntArray3(e,t){return this._pipelineContext.setIntArray3(e,t),this}setIntArray4(e,t){return this._pipelineContext.setIntArray4(e,t),this}setUInt(e,t){return this._pipelineContext.setUInt(e,t),this}setUInt2(e,t,i){return this._pipelineContext.setUInt2(e,t,i),this}setUInt3(e,t,i,s){return this._pipelineContext.setUInt3(e,t,i,s),this}setUInt4(e,t,i,s,r){return this._pipelineContext.setUInt4(e,t,i,s,r),this}setUIntArray(e,t){return this._pipelineContext.setUIntArray(e,t),this}setUIntArray2(e,t){return this._pipelineContext.setUIntArray2(e,t),this}setUIntArray3(e,t){return this._pipelineContext.setUIntArray3(e,t),this}setUIntArray4(e,t){return this._pipelineContext.setUIntArray4(e,t),this}setFloatArray(e,t){return this._pipelineContext.setArray(e,t),this}setFloatArray2(e,t){return this._pipelineContext.setArray2(e,t),this}setFloatArray3(e,t){return this._pipelineContext.setArray3(e,t),this}setFloatArray4(e,t){return this._pipelineContext.setArray4(e,t),this}setArray(e,t){return this._pipelineContext.setArray(e,t),this}setArray2(e,t){return this._pipelineContext.setArray2(e,t),this}setArray3(e,t){return this._pipelineContext.setArray3(e,t),this}setArray4(e,t){return this._pipelineContext.setArray4(e,t),this}setMatrices(e,t){return this._pipelineContext.setMatrices(e,t),this}setMatrix(e,t){return this._pipelineContext.setMatrix(e,t),this}setMatrix3x3(e,t){return this._pipelineContext.setMatrix3x3(e,t),this}setMatrix2x2(e,t){return this._pipelineContext.setMatrix2x2(e,t),this}setFloat(e,t){return this._pipelineContext.setFloat(e,t),this}setBool(e,t){return this._pipelineContext.setInt(e,+!!t),this}setVector2(e,t){return this._pipelineContext.setVector2(e,t),this}setFloat2(e,t,i){return this._pipelineContext.setFloat2(e,t,i),this}setVector3(e,t){return this._pipelineContext.setVector3(e,t),this}setFloat3(e,t,i,s){return this._pipelineContext.setFloat3(e,t,i,s),this}setVector4(e,t){return this._pipelineContext.setVector4(e,t),this}setQuaternion(e,t){return this._pipelineContext.setQuaternion(e,t),this}setFloat4(e,t,i,s,r){return this._pipelineContext.setFloat4(e,t,i,s,r),this}setColor3(e,t){return this._pipelineContext.setColor3(e,t),this}setColor4(e,t,i){return this._pipelineContext.setColor4(e,t,i),this}setDirectColor4(e,t){return this._pipelineContext.setDirectColor4(e,t),this}clearCodeCache(){this._vertexSourceCode="",this._fragmentSourceCode="",this._fragmentSourceCodeBeforeMigration="",this._vertexSourceCodeBeforeMigration=""}dispose(e=!1){if(e)this._refCount=0;else{if(tV.PersistentMode)return;this._refCount--}this._refCount>0||this._isDisposed||(this._onReleaseEffectsObserver&&(this._engine.onReleaseEffectsObservable.remove(this._onReleaseEffectsObserver),this._onReleaseEffectsObserver=null),this._pipelineContext&&tk(this._pipelineContext),this._engine._releaseEffect(this),this.clearCodeCache(),this._isDisposed=!0)}static RegisterShader(e,t,i,s=0){t&&(e2.ShaderStore.GetShadersStore(s)[`${e}PixelShader`]=t),i&&(e2.ShaderStore.GetShadersStore(s)[`${e}VertexShader`]=i)}static ResetCache(){tV._BaseCache={}}}tV.LogShaderCodeOnCompilationError=!0,tV.PersistentMode=!1,tV.AutomaticallyClearCodeCache=!1,tV._UniqueIdSeed=0,tV._BaseCache={},tV.ShadersStore=e2.ShaderStore.ShadersStore,tV.IncludesShadersStore=e2.ShaderStore.IncludesShadersStore,(t=tV.prototype).setDepthStencilTexture??(t.setDepthStencilTexture=(0,tN._MissingSideEffect)("Effect","setDepthStencilTexture")),(i=tV.prototype).setTextureFromPostProcess??(i.setTextureFromPostProcess=(0,tN._MissingSideEffect)("Effect","setTextureFromPostProcess")),(s=tV.prototype).setTextureFromPostProcessOutput??(s.setTextureFromPostProcessOutput=(0,tN._MissingSideEffect)("Effect","setTextureFromPostProcessOutput")),e.s(["Effect",0,tV],7540);var tG=e.i(70855),tW=e.i(21009),tH=e.i(87869);class tq{constructor(e=!0){this._isDepthTestDirty=!1,this._isDepthMaskDirty=!1,this._isDepthFuncDirty=!1,this._isCullFaceDirty=!1,this._isCullDirty=!1,this._isZOffsetDirty=!1,this._isFrontFaceDirty=!1,e&&this.reset()}get isDirty(){return this._isDepthFuncDirty||this._isDepthTestDirty||this._isDepthMaskDirty||this._isCullFaceDirty||this._isCullDirty||this._isZOffsetDirty||this._isFrontFaceDirty}get zOffset(){return this._zOffset}set zOffset(e){this._zOffset!==e&&(this._zOffset=e,this._isZOffsetDirty=!0)}get zOffsetUnits(){return this._zOffsetUnits}set zOffsetUnits(e){this._zOffsetUnits!==e&&(this._zOffsetUnits=e,this._isZOffsetDirty=!0)}get cullFace(){return this._cullFace}set cullFace(e){this._cullFace!==e&&(this._cullFace=e,this._isCullFaceDirty=!0)}get cull(){return this._cull}set cull(e){this._cull!==e&&(this._cull=e,this._isCullDirty=!0)}get depthFunc(){return this._depthFunc}set depthFunc(e){this._depthFunc!==e&&(this._depthFunc=e,this._isDepthFuncDirty=!0)}get depthMask(){return this._depthMask}set depthMask(e){this._depthMask!==e&&(this._depthMask=e,this._isDepthMaskDirty=!0)}get depthTest(){return this._depthTest}set depthTest(e){this._depthTest!==e&&(this._depthTest=e,this._isDepthTestDirty=!0)}get frontFace(){return this._frontFace}set frontFace(e){this._frontFace!==e&&(this._frontFace=e,this._isFrontFaceDirty=!0)}reset(){this._depthMask=!0,this._depthTest=!0,this._depthFunc=null,this._cullFace=null,this._cull=null,this._zOffset=0,this._zOffsetUnits=0,this._frontFace=null,this._isDepthTestDirty=!0,this._isDepthMaskDirty=!0,this._isDepthFuncDirty=!1,this._isCullFaceDirty=!1,this._isCullDirty=!1,this._isZOffsetDirty=!0,this._isFrontFaceDirty=!1}apply(e){this.isDirty&&(this._isCullDirty&&(this.cull?e.enable(e.CULL_FACE):e.disable(e.CULL_FACE),this._isCullDirty=!1),this._isCullFaceDirty&&(e.cullFace(this.cullFace),this._isCullFaceDirty=!1),this._isDepthMaskDirty&&(e.depthMask(this.depthMask),this._isDepthMaskDirty=!1),this._isDepthTestDirty&&(this.depthTest?e.enable(e.DEPTH_TEST):e.disable(e.DEPTH_TEST),this._isDepthTestDirty=!1),this._isDepthFuncDirty&&(e.depthFunc(this.depthFunc),this._isDepthFuncDirty=!1),this._isZOffsetDirty&&(this.zOffset||this.zOffsetUnits?(e.enable(e.POLYGON_OFFSET_FILL),e.polygonOffset(this.zOffset,this.zOffsetUnits)):e.disable(e.POLYGON_OFFSET_FILL),this._isZOffsetDirty=!1),this._isFrontFaceDirty&&(e.frontFace(this.frontFace),this._isFrontFaceDirty=!1))}}class tz{get isDirty(){return this._isStencilTestDirty||this._isStencilMaskDirty||this._isStencilFuncDirty||this._isStencilOpDirty}get func(){return this._func}set func(e){this._func!==e&&(this._func=e,this._isStencilFuncDirty=!0)}get backFunc(){return this._func}set backFunc(e){this._backFunc!==e&&(this._backFunc=e,this._isStencilFuncDirty=!0)}get funcRef(){return this._funcRef}set funcRef(e){this._funcRef!==e&&(this._funcRef=e,this._isStencilFuncDirty=!0)}get funcMask(){return this._funcMask}set funcMask(e){this._funcMask!==e&&(this._funcMask=e,this._isStencilFuncDirty=!0)}get opStencilFail(){return this._opStencilFail}set opStencilFail(e){this._opStencilFail!==e&&(this._opStencilFail=e,this._isStencilOpDirty=!0)}get opDepthFail(){return this._opDepthFail}set opDepthFail(e){this._opDepthFail!==e&&(this._opDepthFail=e,this._isStencilOpDirty=!0)}get opStencilDepthPass(){return this._opStencilDepthPass}set opStencilDepthPass(e){this._opStencilDepthPass!==e&&(this._opStencilDepthPass=e,this._isStencilOpDirty=!0)}get backOpStencilFail(){return this._backOpStencilFail}set backOpStencilFail(e){this._backOpStencilFail!==e&&(this._backOpStencilFail=e,this._isStencilOpDirty=!0)}get backOpDepthFail(){return this._backOpDepthFail}set backOpDepthFail(e){this._backOpDepthFail!==e&&(this._backOpDepthFail=e,this._isStencilOpDirty=!0)}get backOpStencilDepthPass(){return this._backOpStencilDepthPass}set backOpStencilDepthPass(e){this._backOpStencilDepthPass!==e&&(this._backOpStencilDepthPass=e,this._isStencilOpDirty=!0)}get mask(){return this._mask}set mask(e){this._mask!==e&&(this._mask=e,this._isStencilMaskDirty=!0)}get enabled(){return this._enabled}set enabled(e){this._enabled!==e&&(this._enabled=e,this._isStencilTestDirty=!0)}constructor(e=!0){this._isStencilTestDirty=!1,this._isStencilMaskDirty=!1,this._isStencilFuncDirty=!1,this._isStencilOpDirty=!1,this.useStencilGlobalOnly=!1,e&&this.reset()}reset(){this.stencilMaterial=void 0,this.stencilGlobal?.reset(),this._isStencilTestDirty=!0,this._isStencilMaskDirty=!0,this._isStencilFuncDirty=!0,this._isStencilOpDirty=!0}apply(e){if(!e)return;let t=!this.useStencilGlobalOnly&&!!this.stencilMaterial?.enabled;this.enabled=t?this.stencilMaterial.enabled:this.stencilGlobal.enabled,this.func=t?this.stencilMaterial.func:this.stencilGlobal.func,this.backFunc=t?this.stencilMaterial.backFunc:this.stencilGlobal.backFunc,this.funcRef=t?this.stencilMaterial.funcRef:this.stencilGlobal.funcRef,this.funcMask=t?this.stencilMaterial.funcMask:this.stencilGlobal.funcMask,this.opStencilFail=t?this.stencilMaterial.opStencilFail:this.stencilGlobal.opStencilFail,this.opDepthFail=t?this.stencilMaterial.opDepthFail:this.stencilGlobal.opDepthFail,this.opStencilDepthPass=t?this.stencilMaterial.opStencilDepthPass:this.stencilGlobal.opStencilDepthPass,this.backOpStencilFail=t?this.stencilMaterial.backOpStencilFail:this.stencilGlobal.backOpStencilFail,this.backOpDepthFail=t?this.stencilMaterial.backOpDepthFail:this.stencilGlobal.backOpDepthFail,this.backOpStencilDepthPass=t?this.stencilMaterial.backOpStencilDepthPass:this.stencilGlobal.backOpStencilDepthPass,this.mask=t?this.stencilMaterial.mask:this.stencilGlobal.mask,this.isDirty&&(this._isStencilTestDirty&&(this.enabled?e.enable(e.STENCIL_TEST):e.disable(e.STENCIL_TEST),this._isStencilTestDirty=!1),this._isStencilMaskDirty&&(e.stencilMask(this.mask),this._isStencilMaskDirty=!1),this._isStencilFuncDirty&&(e.stencilFuncSeparate(e.FRONT,this.func,this.funcRef,this.funcMask),e.stencilFuncSeparate(e.BACK,this.backFunc,this.funcRef,this.funcMask),this._isStencilFuncDirty=!1),this._isStencilOpDirty&&(e.stencilOpSeparate(e.FRONT,this.opStencilFail,this.opDepthFail,this.opStencilDepthPass),e.stencilOpSeparate(e.BACK,this.backOpStencilFail,this.backOpDepthFail,this.backOpStencilDepthPass),this._isStencilOpDirty=!1))}}class tj{constructor(){this.reset()}reset(){this.enabled=!1,this.mask=255,this.funcRef=1,this.funcMask=255,this.func=tj.ALWAYS,this.opStencilFail=tj.KEEP,this.opDepthFail=tj.KEEP,this.opStencilDepthPass=tj.REPLACE,this.backFunc=tj.ALWAYS,this.backOpStencilFail=tj.KEEP,this.backOpDepthFail=tj.KEEP,this.backOpStencilDepthPass=tj.REPLACE}get stencilFunc(){return this.func}set stencilFunc(e){this.func=e}get stencilBackFunc(){return this.backFunc}set stencilBackFunc(e){this.backFunc=e}get stencilFuncRef(){return this.funcRef}set stencilFuncRef(e){this.funcRef=e}get stencilFuncMask(){return this.funcMask}set stencilFuncMask(e){this.funcMask=e}get stencilOpStencilFail(){return this.opStencilFail}set stencilOpStencilFail(e){this.opStencilFail=e}get stencilOpDepthFail(){return this.opDepthFail}set stencilOpDepthFail(e){this.opDepthFail=e}get stencilOpStencilDepthPass(){return this.opStencilDepthPass}set stencilOpStencilDepthPass(e){this.opStencilDepthPass=e}get stencilBackOpStencilFail(){return this.backOpStencilFail}set stencilBackOpStencilFail(e){this.backOpStencilFail=e}get stencilBackOpDepthFail(){return this.backOpDepthFail}set stencilBackOpDepthFail(e){this.backOpDepthFail=e}get stencilBackOpStencilDepthPass(){return this.backOpStencilDepthPass}set stencilBackOpStencilDepthPass(e){this.backOpStencilDepthPass=e}get stencilMask(){return this.mask}set stencilMask(e){this.mask=e}get stencilTest(){return this.enabled}set stencilTest(e){this.enabled=e}}tj.ALWAYS=519,tj.KEEP=7680,tj.REPLACE=7681;class t${constructor(e){this._supportBlendParametersPerTarget=e,this._blendFunctionParameters=Array(32),this._blendEquationParameters=Array(16),this._blendConstants=[,,,,],this._isBlendConstantsDirty=!1,this._alphaBlend=Array(8).fill(!1),this._numTargetEnabled=0,this._isAlphaBlendDirty=!1,this._isBlendFunctionParametersDirty=!1,this._isBlendEquationParametersDirty=!1,this.reset()}get isDirty(){return this._isAlphaBlendDirty||this._isBlendFunctionParametersDirty||this._isBlendEquationParametersDirty}get alphaBlend(){return this._numTargetEnabled>0}set alphaBlend(e){this.setAlphaBlend(e)}setAlphaBlend(e,t=0){this._alphaBlend[t]!==e&&(e?this._numTargetEnabled++:this._numTargetEnabled--,this._alphaBlend[t]=e,this._isAlphaBlendDirty=!0)}setAlphaBlendConstants(e,t,i,s){(this._blendConstants[0]!==e||this._blendConstants[1]!==t||this._blendConstants[2]!==i||this._blendConstants[3]!==s)&&(this._blendConstants[0]=e,this._blendConstants[1]=t,this._blendConstants[2]=i,this._blendConstants[3]=s,this._isBlendConstantsDirty=!0)}setAlphaBlendFunctionParameters(e,t,i,s,r=0){let n=4*r;(this._blendFunctionParameters[n+0]!==e||this._blendFunctionParameters[n+1]!==t||this._blendFunctionParameters[n+2]!==i||this._blendFunctionParameters[n+3]!==s)&&(this._blendFunctionParameters[n+0]=e,this._blendFunctionParameters[n+1]=t,this._blendFunctionParameters[n+2]=i,this._blendFunctionParameters[n+3]=s,this._isBlendFunctionParametersDirty=!0)}setAlphaEquationParameters(e,t,i=0){let s=2*i;(this._blendEquationParameters[s+0]!==e||this._blendEquationParameters[s+1]!==t)&&(this._blendEquationParameters[s+0]=e,this._blendEquationParameters[s+1]=t,this._isBlendEquationParametersDirty=!0)}reset(){this._alphaBlend.fill(!1),this._numTargetEnabled=0,this._blendFunctionParameters.fill(null),this._blendEquationParameters.fill(null),this._blendConstants[0]=null,this._blendConstants[1]=null,this._blendConstants[2]=null,this._blendConstants[3]=null,this._isAlphaBlendDirty=!0,this._isBlendFunctionParametersDirty=!1,this._isBlendEquationParametersDirty=!1,this._isBlendConstantsDirty=!1}apply(e,t=1){if(this.isDirty){if(this._isBlendConstantsDirty&&(e.blendColor(this._blendConstants[0],this._blendConstants[1],this._blendConstants[2],this._blendConstants[3]),this._isBlendConstantsDirty=!1),1===t||!this._supportBlendParametersPerTarget){this._isAlphaBlendDirty&&(this._alphaBlend[0]?e.enable(e.BLEND):e.disable(e.BLEND),this._isAlphaBlendDirty=!1),this._isBlendFunctionParametersDirty&&(e.blendFuncSeparate(this._blendFunctionParameters[0],this._blendFunctionParameters[1],this._blendFunctionParameters[2],this._blendFunctionParameters[3]),this._isBlendFunctionParametersDirty=!1),this._isBlendEquationParametersDirty&&(e.blendEquationSeparate(this._blendEquationParameters[0],this._blendEquationParameters[1]),this._isBlendEquationParametersDirty=!1);return}if(this._isAlphaBlendDirty){for(let i=0;i<t;i++){let t=i<this._numTargetEnabled?i:0;this._alphaBlend[t]?e.enableIndexed(e.BLEND,i):e.disableIndexed(e.BLEND,i)}this._isAlphaBlendDirty=!1}if(this._isBlendFunctionParametersDirty){for(let i=0;i<t;i++){let t=i<this._numTargetEnabled?4*i:0;e.blendFuncSeparateIndexed(i,this._blendFunctionParameters[t+0],this._blendFunctionParameters[t+1],this._blendFunctionParameters[t+2],this._blendFunctionParameters[t+3])}this._isBlendFunctionParametersDirty=!1}if(this._isBlendEquationParametersDirty){for(let i=0;i<t;i++){let t=i<this._numTargetEnabled?2*i:0;e.blendEquationSeparateIndexed(i,this._blendEquationParameters[t+0],this._blendEquationParameters[t+1])}this._isBlendEquationParametersDirty=!1}}}setAlphaMode(e,t){let i=32774;switch(e){case 0:break;case 7:this.setAlphaBlendFunctionParameters(1,771,1,1,t);break;case 8:case 14:this.setAlphaBlendFunctionParameters(1,771,1,771,t);break;case 2:this.setAlphaBlendFunctionParameters(770,771,1,1,t);break;case 6:this.setAlphaBlendFunctionParameters(1,1,0,1,t);break;case 1:this.setAlphaBlendFunctionParameters(770,1,0,1,t);break;case 3:this.setAlphaBlendFunctionParameters(0,769,1,1,t);break;case 4:this.setAlphaBlendFunctionParameters(774,0,1,1,t);break;case 5:this.setAlphaBlendFunctionParameters(770,769,1,1,t);break;case 9:this.setAlphaBlendFunctionParameters(32769,32770,32771,32772,t);break;case 10:this.setAlphaBlendFunctionParameters(1,769,1,771,t);break;case 11:this.setAlphaBlendFunctionParameters(1,1,1,1,t);break;case 12:this.setAlphaBlendFunctionParameters(772,1,0,0,t);break;case 13:this.setAlphaBlendFunctionParameters(775,769,773,771,t);break;case 15:this.setAlphaBlendFunctionParameters(1,1,1,0,t);break;case 16:this.setAlphaBlendFunctionParameters(775,769,0,1,t);break;case 17:this.setAlphaBlendFunctionParameters(770,771,1,771,t);break;case 18:this.setAlphaBlendFunctionParameters(1,1,1,1,t),i=32775;break;case 19:this.setAlphaBlendFunctionParameters(1,1,1,1,t),i=32776;break;case 20:this.setAlphaBlendFunctionParameters(1,35065,0,1,t)}this.setAlphaEquationParameters(i,i,t)}}e.s(["AlphaState",0,t$],29309);var tZ=e.i(93298);function tK(e,t){if(t){let{requestAnimationFrame:i}=t;if("function"==typeof i)return i(e)}if((0,e3.IsWindowObjectExist)()){let{requestAnimationFrame:i}=t||window;if("function"==typeof i)return i(e)}else if("function"==typeof requestAnimationFrame)return requestAnimationFrame(e);return setTimeout(e,16)}class tQ{get frameId(){return this._frameId}get isWebGPU(){return this._isWebGPU}_getShaderProcessor(e){return this._shaderProcessor}_resetAlphaMode(){this._alphaMode.fill(-1),this._alphaEquation.fill(-1)}get shaderPlatformName(){return this._shaderPlatformName}_clearEmptyResources(){this._emptyTexture=null,this._emptyCubeTexture=null,this._emptyTexture3D=null,this._emptyTexture2DArray=null}get useReverseDepthBuffer(){return this._useReverseDepthBuffer}set useReverseDepthBuffer(e){e!==this._useReverseDepthBuffer&&(this._useReverseDepthBuffer=e,e?this._depthCullingState.depthFunc=518:this._depthCullingState.depthFunc=515)}setColorWrite(e){e!==this._colorWrite&&(this._colorWriteChanged=!0,this._colorWrite=e)}getColorWrite(){return this._colorWrite}get depthCullingState(){return this._depthCullingState}get alphaState(){return this._alphaState}get stencilState(){return this._stencilState}get stencilStateComposer(){return this._stencilStateComposer}_getGlobalDefines(e){if(e){this.isNDCHalfZRange?e.IS_NDC_HALF_ZRANGE="":delete e.IS_NDC_HALF_ZRANGE,this.useReverseDepthBuffer?e.USE_REVERSE_DEPTHBUFFER="":delete e.USE_REVERSE_DEPTHBUFFER,this.useExactSrgbConversions?e.USE_EXACT_SRGB_CONVERSIONS="":delete e.USE_EXACT_SRGB_CONVERSIONS;return}{let e="";return this.isNDCHalfZRange&&(e+="#define IS_NDC_HALF_ZRANGE"),this.useReverseDepthBuffer&&(e&&(e+="\n"),e+="#define USE_REVERSE_DEPTHBUFFER"),this.useExactSrgbConversions&&(e&&(e+="\n"),e+="#define USE_EXACT_SRGB_CONVERSIONS"),e}}_rebuildInternalTextures(){for(let e of this._internalTexturesCache.slice())e._rebuild()}_rebuildRenderTargetWrappers(){for(let e of this._renderTargetWrapperCache.slice())e.textures?.some(e=>15===e.source)||e._rebuild()}_rebuildEffects(){for(let e in this._compiledEffects){let t=this._compiledEffects[e];t._pipelineContext=null,t._prepareEffect()}tV.ResetCache()}_rebuildGraphicsResources(){this.wipeCaches(!0),this._rebuildEffects(),this._rebuildComputeEffects?.(),this._rebuildBuffers(),this._rebuildInternalTextures(),this._rebuildTextures(),this._rebuildRenderTargetWrappers(),this.wipeCaches(!0)}_flagContextRestored(){e1.Logger.Warn(this.name+" context successfully restored."),this.onContextRestoredObservable.notifyObservers(this),this._contextWasLost=!1}_restoreEngineAfterContextLost(e){setTimeout(()=>{this._clearEmptyResources();let t=this._depthCullingState.depthTest,i=this._depthCullingState.depthFunc,s=this._depthCullingState.depthMask,r=this._stencilState.stencilTest;e(),this._rebuildGraphicsResources(),this._depthCullingState.depthTest=t,this._depthCullingState.depthFunc=i,this._depthCullingState.depthMask=s,this._stencilState.stencilTest=r,this._flagContextRestored()},0)}get isDisposed(){return this._isDisposed}get snapshotRendering(){return!1}set snapshotRendering(e){}get snapshotRenderingMode(){return 0}set snapshotRenderingMode(e){}getClassName(){return"AbstractEngine"}get emptyTexture(){return this._emptyTexture||(this._emptyTexture=this.createRawTexture(new Uint8Array(4),1,1,5,!1,!1,1)),this._emptyTexture}get emptyTexture3D(){return this._emptyTexture3D||(this._emptyTexture3D=this.createRawTexture3D(new Uint8Array(4),1,1,1,5,!1,!1,1)),this._emptyTexture3D}get emptyTexture2DArray(){return this._emptyTexture2DArray||(this._emptyTexture2DArray=this.createRawTexture2DArray(new Uint8Array(4),1,1,1,5,!1,!1,1)),this._emptyTexture2DArray}get emptyCubeTexture(){if(!this._emptyCubeTexture){let e=new Uint8Array(4);this._emptyCubeTexture=this.createRawCubeTexture([e,e,e,e,e,e],1,5,0,!1,!1,1)}return this._emptyCubeTexture}get activeRenderLoops(){return this._activeRenderLoops}stopRenderLoop(e){if(!e){this._activeRenderLoops.length=0,this._cancelFrame();return}let t=this._activeRenderLoops.indexOf(e);t>=0&&(this._activeRenderLoops.splice(t,1),0==this._activeRenderLoops.length&&this._cancelFrame())}_cancelFrame(){if(this.customAnimationFrameRequester){if(0!==this._frameHandler){this._frameHandler=0;let{cancelAnimationFrame:e}=this.customAnimationFrameRequester;e&&e(this.customAnimationFrameRequester.requestID),delete this.customAnimationFrameRequester.requestID}return}if(0!==this._frameHandler){let e=this._frameHandler;if(this._frameHandler=0,(0,e3.IsWindowObjectExist)()){let{cancelAnimationFrame:t}=this.getHostWindow()||window;if("function"==typeof t)return t(e)}else if("function"==typeof cancelAnimationFrame)return cancelAnimationFrame(e);return clearTimeout(e)}}beginFrame(){this.onBeginFrameObservable.notifyObservers(this)}endFrame(){this._frameId++,this.onEndFrameObservable.notifyObservers(this)}get maxFPS(){return this._maxFPS}set maxFPS(e){if(this._maxFPS=e,void 0!==e){if(e<=0){this._minFrameTime=Number.MAX_VALUE;return}this._minFrameTime=1e3/e}}_isOverFrameTime(e){if(!e||void 0===this._maxFPS)return!1;let t=e-this._lastFrameTime;return this._lastFrameTime=e,this._renderAccumulator+=t,this._renderAccumulator<this._minFrameTime||(this._renderAccumulator-=this._minFrameTime,this._renderAccumulator>this._minFrameTime&&(this._renderAccumulator=this._minFrameTime),!1)}_processFrame(e){if(this._frameHandler=0,!this._contextWasLost&&!this._isOverFrameTime(e)){let e=!0;(this.isDisposed||!this.renderEvenInBackground&&this._windowIsBackground)&&(e=!1),e&&(this.beginFrame(),this.skipFrameRender||this._renderViews()||this._renderFrame(),this.endFrame())}}_renderLoop(e){this._processFrame(e),this._activeRenderLoops.length>0&&0===this._frameHandler&&this._queueNewFrameForRenderLoop()}_renderFrame(){for(let e=0;e<this._activeRenderLoops.length;e++)(0,this._activeRenderLoops[e])()}_renderViews(){return!1}_queueNewFrame(e,t){return tK(e,t)}_queueNewFrameForRenderLoop(){this.customAnimationFrameRequester?(this.customAnimationFrameRequester.requestID=this._queueNewFrame(this.customAnimationFrameRequester.renderFunction||this._boundRenderFunction,this.customAnimationFrameRequester),this._frameHandler=this.customAnimationFrameRequester.requestID):this._frameHandler=this._queueNewFrame(this._boundRenderFunction,this.getHostWindow())}runRenderLoop(e){-1===this._activeRenderLoops.indexOf(e)&&(this._activeRenderLoops.push(e),1===this._activeRenderLoops.length&&0===this._frameHandler&&this._queueNewFrameForRenderLoop())}getDepthBuffer(){return this._depthCullingState.depthTest}setDepthBuffer(e){this._depthCullingState.depthTest=e}setZOffset(e){this._depthCullingState.zOffset=this.useReverseDepthBuffer?-e:e}getZOffset(){let e=this._depthCullingState.zOffset;return this.useReverseDepthBuffer?-e:e}setZOffsetUnits(e){this._depthCullingState.zOffsetUnits=this.useReverseDepthBuffer?-e:e}getZOffsetUnits(){let e=this._depthCullingState.zOffsetUnits;return this.useReverseDepthBuffer?-e:e}getHostWindow(){return(0,e3.IsWindowObjectExist)()?this._renderingCanvas&&this._renderingCanvas.ownerDocument&&this._renderingCanvas.ownerDocument.defaultView?this._renderingCanvas.ownerDocument.defaultView:window:null}get compatibilityMode(){return this._compatibilityMode}set compatibilityMode(e){this._compatibilityMode=!0}_rebuildTextures(){for(let e of this.scenes)e._rebuildTextures();for(let e of this._virtualScenes)e._rebuildTextures()}_releaseRenderTargetWrapper(e){let t=this._renderTargetWrapperCache.indexOf(e);-1!==t&&this._renderTargetWrapperCache.splice(t,1)}get currentViewport(){return this._cachedViewport}setViewport(e,t,i){let s=t||this.getRenderWidth(),r=i||this.getRenderHeight(),n=e.x||0,a=e.y||0;this._cachedViewport=e,this._viewport(n*s,a*r,s*e.width,r*e.height)}createCanvasImage(){return document.createElement("img")}createCanvasPath2D(e){return new Path2D(e)}get description(){let e=this.name+this.version;return this._caps.parallelShaderCompile&&(e+=" - Parallel shader compilation"),e}_createTextureBase(e,t,i,s,r=3,n=null,a=null,o,l,h=null,c=null,u=null,p=null,d,f,_){let g="data:"===(e=e||"").substring(0,5),m="blob:"===e.substring(0,5),b=g&&-1!==e.indexOf(";base64,"),S=c||new tZ.InternalTexture(this,1);S!==c&&(S.label=e.substring(0,60));let C=e;!this._transformTextureUrl||b||c||h||(e=this._transformTextureUrl(e)),C!==e&&(S._originalUrl=C);let E=e.lastIndexOf("."),y=p||(E>-1?e.substring(E).toLowerCase():"");y.indexOf("?")>-1&&(y=y.split("?")[0]);let x=tQ.GetCompatibleTextureLoader(y,d);s&&s.addPendingData(S),S.url=e,S.generateMipMaps=!t,S.samplingMode=r,S.invertY=i,S._useSRGBBuffer=this._getUseSRGBBuffer(!!_,t),this._doNotHandleContextLost||(S._buffer=h);let F=null;n&&!c&&(F=S.onLoadedObservable.add(n)),c||this._internalTexturesCache.push(S);let A=(i,c)=>{s&&s.removePendingData(S),e===C?(F&&S.onLoadedObservable.remove(F),tG.EngineStore.UseFallbackTexture&&e!==tG.EngineStore.FallbackTexture&&this._createTextureBase(tG.EngineStore.FallbackTexture,t,S.invertY,s,r,null,a,o,l,h,S),i=(i||"Unknown error")+(tG.EngineStore.UseFallbackTexture?" - Fallback texture was used":""),S.onErrorObservable.notifyObservers({message:i,exception:c}),a&&a(i,c)):(e1.Logger.Warn(`Failed to load ${e}, falling back to ${C}`),this._createTextureBase(C,t,S.invertY,s,r,n,a,o,l,h,S,u,p,d,f,_))};if(x){let t=async e=>{(await x).loadData(e,S,(e,t,i,n,a,l)=>{l?A("TextureLoader failed to load data"):o(S,y,s,{width:e,height:t},S.invertY,!i,n,()=>(a(),!1),r)},f)};if(h){let e=async e=>{try{await t(e)}catch(e){A("Failed to parse texture data",e)}};h instanceof ArrayBuffer?e(new Uint8Array(h)):ArrayBuffer.isView(h)?e(h):a&&a("Unable to load: only ArrayBuffer or ArrayBufferView is supported",null)}else this._loadFile(e,async e=>{try{await t(new Uint8Array(e))}catch(e){A("Failed to parse texture data",e)}},void 0,s?s.offlineProvider:void 0,!0,(e,t)=>{A("Unable to load "+(e&&e.responseURL,t))})}else{let i=e=>{m&&!this._doNotHandleContextLost&&(S._buffer=e),o(S,y,s,e,S.invertY,t,!1,l,r)};!g||b?h&&("string"==typeof h.decoding||h.close)?i(h):(0,e7.LoadImage)(e||"",i,A,s?s.offlineProvider:null,d,S.invertY&&this._features.needsInvertingBitmap?{imageOrientation:"flipY"}:void 0,this):"string"==typeof h||h instanceof ArrayBuffer||ArrayBuffer.isView(h)||h instanceof Blob?(0,e7.LoadImage)(h,i,A,s?s.offlineProvider:null,d,S.invertY&&this._features.needsInvertingBitmap?{imageOrientation:"flipY"}:void 0,this):h&&i(h)}return S}_rebuildBuffers(){for(let e of this._uniformBuffers)e._rebuildAfterContextLost()}get _shouldUseHighPrecisionShader(){return!!(this._caps.highPrecisionShaderSupported&&this._highPrecisionShadersAllowed)}getHostDocument(){return this._renderingCanvas&&this._renderingCanvas.ownerDocument?this._renderingCanvas.ownerDocument:(0,e3.IsDocumentAvailable)()?document:null}getLoadedTexturesCache(){return this._internalTexturesCache}clearInternalTexturesCache(){this._internalTexturesCache.length=0}getCaps(){return this._caps}resetTextureCache(){for(let e in this._boundTexturesCache)Object.prototype.hasOwnProperty.call(this._boundTexturesCache,e)&&(this._boundTexturesCache[e]=null);this._currentTextureChannel=-1}get name(){return this._name}set name(e){this._name=e}static get NpmPackage(){return"babylonjs@9.15.0"}static get Version(){return"9.15.0"}getRenderingCanvas(){return this._renderingCanvas}getAudioContext(){return this._audioContext}getAudioDestination(){return this._audioDestination}setHardwareScalingLevel(e){this._hardwareScalingLevel=e,this.resize()}getHardwareScalingLevel(){return this._hardwareScalingLevel}get doNotHandleContextLost(){return this._doNotHandleContextLost}set doNotHandleContextLost(e){this._doNotHandleContextLost=e}get isStencilEnable(){return this._isStencilEnable}getCreationOptions(){return this._creationOptions}constructor(e,t,i){this._colorWrite=!0,this._colorWriteChanged=!0,this._depthCullingState=new tq,this._stencilStateComposer=new tz,this._stencilState=new tj,this._alphaState=new t$(!1),this._alphaMode=Array(8).fill(-1),this._alphaEquation=Array(8).fill(-1),this._activeRequests=[],this._badOS=!1,this._badDesktopOS=!1,this._compatibilityMode=!0,this._internalTexturesCache=[],this._currentRenderTarget=null,this._boundTexturesCache={},this._activeChannel=0,this._currentTextureChannel=-1,this._viewportCached={x:0,y:0,z:0,w:0},this._isWebGPU=!1,this._enableGPUDebugMarkers=!1,this.onCanvasBlurObservable=new e0.Observable,this.onCanvasFocusObservable=new e0.Observable,this.onNewSceneAddedObservable=new e0.Observable,this.onResizeObservable=new e0.Observable,this.onCanvasPointerOutObservable=new e0.Observable,this.onEffectErrorObservable=new e0.Observable,this.disablePerformanceMonitorInBackground=!1,this.disableVertexArrayObjects=!1,this._frameId=0,this.hostInformation={isMobile:!1},this.isFullscreen=!1,this.enableOfflineSupport=!1,this.disableManifestCheck=!1,this.disableContextMenu=!0,this.currentRenderPassId=0,this.isPointerLock=!1,this.postProcesses=[],this.canvasTabIndex=1,this._contextWasLost=!1,this._useReverseDepthBuffer=!1,this.isNDCHalfZRange=!1,this.hasOriginBottomLeft=!0,this._renderTargetWrapperCache=[],this._compiledEffects={},this._isDisposed=!1,this.scenes=[],this._virtualScenes=[],this.onBeforeTextureInitObservable=new e0.Observable,this.renderEvenInBackground=!0,this.preventCacheWipeBetweenFrames=!1,this._frameHandler=0,this._activeRenderLoops=[],this.customAnimationFrameRequester=null,this._windowIsBackground=!1,this._boundRenderFunction=e=>this._renderLoop(e),this._lastFrameTime=0,this._renderAccumulator=0,this.skipFrameRender=!1,this.onBeforeShaderCompilationObservable=new e0.Observable,this.onAfterShaderCompilationObservable=new e0.Observable,this.onBeginFrameObservable=new e0.Observable,this.onEndFrameObservable=new e0.Observable,this._transformTextureUrl=null,this._uniformBuffers=[],this._storageBuffers=[],this._highPrecisionShadersAllowed=!0,this.onContextLostObservable=new e0.Observable,this.onContextRestoredObservable=new e0.Observable,this._name="",this.premultipliedAlpha=!0,this.adaptToDeviceRatio=!1,this._lastDevicePixelRatio=1,this._doNotHandleContextLost=!1,this.cullBackFaces=null,this._renderPassNames=["main"],this._fps=60,this._deltaTime=0,this._deterministicLockstep=!1,this._lockstepMaxSteps=4,this._timeStep=1/60,this.onDisposeObservable=new e0.Observable,this.onReleaseEffectsObservable=new e0.Observable,tG.EngineStore.Instances.push(this),this.startTime=tH.PrecisionDate.Now,this._stencilStateComposer.stencilGlobal=this._stencilState,tW.PerformanceConfigurator.SetMatrixPrecision(!!t.useLargeWorldRendering||!!t.useHighPrecisionMatrix),(0,e3.IsNavigatorAvailable)()&&navigator.userAgent&&(this._badOS=/iPad/i.test(navigator.userAgent)||/iPhone/i.test(navigator.userAgent),this._badDesktopOS=/^((?!chrome|android).)*safari/i.test(navigator.userAgent)),t.antialias=e??t.antialias,t.deterministicLockstep=t.deterministicLockstep??!1,t.lockstepMaxSteps=t.lockstepMaxSteps??4,t.timeStep=t.timeStep??1/60,t.stencil=t.stencil??!0,this._audioContext=t.audioEngineOptions?.audioContext??null,this._audioDestination=t.audioEngineOptions?.audioDestination??null,this.premultipliedAlpha=t.premultipliedAlpha??!0,this._doNotHandleContextLost=!!t.doNotHandleContextLost,this._isStencilEnable=!!t.stencil,this.useExactSrgbConversions=t.useExactSrgbConversions??!1,this.canvasTabIndex=t.canvasTabIndex??this.canvasTabIndex;const s=(0,e3.IsWindowObjectExist)()&&window.devicePixelRatio||1,r=t.limitDeviceRatio||s;i=i||t.adaptToDeviceRatio||!1,this.adaptToDeviceRatio=i,this._hardwareScalingLevel=i?1/Math.min(r,s):1,this._lastDevicePixelRatio=s,this._creationOptions=t}resize(e=!1){let t,i;if(this.adaptToDeviceRatio){let e=(0,e3.IsWindowObjectExist)()&&window.devicePixelRatio||1,t=this._lastDevicePixelRatio/e;this._lastDevicePixelRatio=e,this._hardwareScalingLevel*=t}if((0,e3.IsWindowObjectExist)()&&(0,e3.IsDocumentAvailable)())if(this._renderingCanvas){let e=this._renderingCanvas.getBoundingClientRect?.();t=this._renderingCanvas.clientWidth||e?.width||this._renderingCanvas.width*this._hardwareScalingLevel||100,i=this._renderingCanvas.clientHeight||e?.height||this._renderingCanvas.height*this._hardwareScalingLevel||100}else t=window.innerWidth,i=window.innerHeight;else t=this._renderingCanvas?this._renderingCanvas.width:100,i=this._renderingCanvas?this._renderingCanvas.height:100;this.setSize(t/this._hardwareScalingLevel,i/this._hardwareScalingLevel,e)}setSize(e,t,i=!1){if(!this._renderingCanvas||(e|=0,t|=0,!i&&this._renderingCanvas.width===e&&this._renderingCanvas.height===t))return!1;if(this._renderingCanvas.width=e,this._renderingCanvas.height=t,this.scenes){for(let e=0;e<this.scenes.length;e++){let t=this.scenes[e];for(let e=0;e<t.cameras.length;e++)t.cameras[e]._currentRenderId=0}this.onResizeObservable.hasObservers()&&this.onResizeObservable.notifyObservers(this)}return!0}createRawTexture(e,t,i,s,r,n,a,o,l,h,c,u){throw(0,tN._WarnImport)("engine.rawTexture")}createRawCubeTexture(e,t,i,s,r,n,a,o){throw(0,tN._WarnImport)("engine.rawTexture")}createRawTexture3D(e,t,i,s,r,n,a,o,l,h,c){throw(0,tN._WarnImport)("engine.rawTexture")}createRawTexture2DArray(e,t,i,s,r,n,a,o,l,h,c,u){throw(0,tN._WarnImport)("engine.rawTexture")}_sharedInit(e){this._renderingCanvas=e}_setupMobileChecks(){navigator&&navigator.userAgent&&(this._checkForMobile=()=>{let e=navigator.userAgent;this.hostInformation.isMobile=-1!==e.indexOf("Mobile")||-1!==e.indexOf("Mac")&&(0,e3.IsDocumentAvailable)()&&"ontouchend"in document},this._checkForMobile(),(0,e3.IsWindowObjectExist)()&&window.addEventListener("resize",this._checkForMobile))}createVideoElement(e){return document.createElement("video")}_reportDrawCall(e=1){this._drawCalls?.addCount(e,!1)}getFps(){return this._fps}getDeltaTime(){return this._deltaTime}isDeterministicLockStep(){return this._deterministicLockstep}getLockstepMaxSteps(){return this._lockstepMaxSteps}getTimeStep(){return 1e3*this._timeStep}_createImageBitmapFromSource(e,t){throw Error("createImageBitmapFromSource is not implemented")}createImageBitmap(e,t){return createImageBitmap(e,t)}resizeImageBitmap(e,t,i){throw Error("resizeImageBitmap is not implemented")}getFontOffset(e){throw Error("getFontOffset is not implemented")}static _CreateCanvas(e,t){if("u"<typeof document)return new OffscreenCanvas(e,t);let i=document.createElement("canvas");return i.width=e,i.height=t,i}createCanvas(e,t){return tQ._CreateCanvas(e,t)}static _FileToolsLoadImage(e,t,i,s,r,n,a){return(0,e7.LoadImage)(e,t,i,s,r,n,a)}_loadFile(e,t,i,s,r,n){let a=e9(e,t,i,s,r,n);return this._activeRequests.push(a),a.onCompleteObservable.add(()=>{let e=this._activeRequests.indexOf(a);-1!==e&&this._activeRequests.splice(e,1)}),a}static _FileToolsLoadFile(e,t,i,s,r,n){return e5.loadFile?e5.loadFile(e,t,i,s,r,n):(0,e7.LoadFile)(e,t,i,s,r,n)}dispose(){for(this.releaseEffects(),this._isDisposed=!0,this.stopRenderLoop(),this._emptyTexture&&(this._releaseTexture(this._emptyTexture),this._emptyTexture=null),this._emptyCubeTexture&&(this._releaseTexture(this._emptyCubeTexture),this._emptyCubeTexture=null),this._renderingCanvas=null,this.onBeforeTextureInitObservable&&this.onBeforeTextureInitObservable.clear();this.postProcesses.length;)this.postProcesses[0].dispose();for(;this.scenes.length;)this.scenes[0].dispose();for(;this._virtualScenes.length;)this._virtualScenes[0].dispose();for(let e of(this.releaseComputeEffects?.(),tV.ResetCache(),this._activeRequests))e.abort();this._boundRenderFunction=null,this.onDisposeObservable.notifyObservers(this),this.onDisposeObservable.clear(),this.onResizeObservable.clear(),this.onCanvasBlurObservable.clear(),this.onCanvasFocusObservable.clear(),this.onCanvasPointerOutObservable.clear(),this.onNewSceneAddedObservable.clear(),this.onEffectErrorObservable.clear(),(0,e3.IsWindowObjectExist)()&&window.removeEventListener("resize",this._checkForMobile);let e=tG.EngineStore.Instances.indexOf(this);e>=0&&tG.EngineStore.Instances.splice(e,1),tG.EngineStore.Instances.length||(tG.EngineStore.OnEnginesDisposedObservable.notifyObservers(this),tG.EngineStore.OnEnginesDisposedObservable.clear()),this.onBeginFrameObservable.clear(),this.onEndFrameObservable.clear()}static DefaultLoadingScreenFactory(e){throw(0,tN._WarnImport)("LoadingScreen")}static MarkAllMaterialsAsDirty(e,t){for(let i=0;i<tG.EngineStore.Instances.length;i++){let s=tG.EngineStore.Instances[i];for(let i=0;i<s.scenes.length;i++)s.scenes[i].markAllMaterialsAsDirty(e,t)}}static GetCompatibleTextureLoader(e,t){return null}}tQ._RenderPassIdCounter=0,tQ._RescalePostProcessFactory=null,tQ.CollisionsEpsilon=.001,tQ.QueueNewFrame=tK,(r=tQ.prototype).setAlphaEquation??(r.setAlphaEquation=(0,tN._MissingSideEffect)("AbstractEngine","setAlphaEquation")),(n=tQ.prototype).createCubeTextureBase??(n.createCubeTextureBase=(0,tN._MissingSideEffect)("AbstractEngine","createCubeTextureBase")),(a=tQ.prototype).getInputElement??(a.getInputElement=(0,tN._MissingSideEffect)("AbstractEngine","getInputElement")),(o=tQ.prototype).getRenderingCanvasClientRect??(o.getRenderingCanvasClientRect=(0,tN._MissingSideEffect)("AbstractEngine","getRenderingCanvasClientRect")),(l=tQ.prototype).getInputElementClientRect??(l.getInputElementClientRect=(0,tN._MissingSideEffect)("AbstractEngine","getInputElementClientRect")),(h=tQ.prototype).getAspectRatio??(h.getAspectRatio=(0,tN._MissingSideEffect)("AbstractEngine","getAspectRatio")),(c=tQ.prototype).getScreenAspectRatio??(c.getScreenAspectRatio=(0,tN._MissingSideEffect)("AbstractEngine","getScreenAspectRatio")),(u=tQ.prototype).switchFullscreen??(u.switchFullscreen=(0,tN._MissingSideEffect)("AbstractEngine","switchFullscreen")),(p=tQ.prototype).enterFullscreen??(p.enterFullscreen=(0,tN._MissingSideEffect)("AbstractEngine","enterFullscreen")),(d=tQ.prototype).exitFullscreen??(d.exitFullscreen=(0,tN._MissingSideEffect)("AbstractEngine","exitFullscreen")),(f=tQ.prototype).displayLoadingUI??(f.displayLoadingUI=(0,tN._MissingSideEffect)("AbstractEngine","displayLoadingUI")),(_=tQ.prototype).hideLoadingUI??(_.hideLoadingUI=(0,tN._MissingSideEffect)("AbstractEngine","hideLoadingUI")),(g=tQ.prototype).createQuery??(g.createQuery=(0,tN._MissingSideEffect)("AbstractEngine","createQuery")),(m=tQ.prototype).deleteQuery??(m.deleteQuery=(0,tN._MissingSideEffect)("AbstractEngine","deleteQuery")),(b=tQ.prototype).isQueryResultAvailable??(b.isQueryResultAvailable=(0,tN._MissingSideEffect)("AbstractEngine","isQueryResultAvailable")),(S=tQ.prototype).getQueryResult??(S.getQueryResult=(0,tN._MissingSideEffect)("AbstractEngine","getQueryResult")),(C=tQ.prototype).beginOcclusionQuery??(C.beginOcclusionQuery=(0,tN._MissingSideEffect)("AbstractEngine","beginOcclusionQuery")),(E=tQ.prototype).endOcclusionQuery??(E.endOcclusionQuery=(0,tN._MissingSideEffect)("AbstractEngine","endOcclusionQuery")),(y=tQ.prototype).getRenderPassNames??(y.getRenderPassNames=(0,tN._MissingSideEffect)("AbstractEngine","getRenderPassNames")),(x=tQ.prototype).getCurrentRenderPassName??(x.getCurrentRenderPassName=(0,tN._MissingSideEffect)("AbstractEngine","getCurrentRenderPassName")),(F=tQ.prototype).createRenderPassId??(F.createRenderPassId=(0,tN._MissingSideEffect)("AbstractEngine","createRenderPassId")),(A=tQ.prototype).releaseRenderPassId??(A.releaseRenderPassId=(0,tN._MissingSideEffect)("AbstractEngine","releaseRenderPassId")),(v=tQ.prototype).getDepthFunction??(v.getDepthFunction=(0,tN._MissingSideEffect)("AbstractEngine","getDepthFunction")),(D=tQ.prototype).setDepthFunction??(D.setDepthFunction=(0,tN._MissingSideEffect)("AbstractEngine","setDepthFunction")),(P=tQ.prototype).setDepthFunctionToGreater??(P.setDepthFunctionToGreater=(0,tN._MissingSideEffect)("AbstractEngine","setDepthFunctionToGreater")),(O=tQ.prototype).setDepthFunctionToGreaterOrEqual??(O.setDepthFunctionToGreaterOrEqual=(0,tN._MissingSideEffect)("AbstractEngine","setDepthFunctionToGreaterOrEqual")),(T=tQ.prototype).setDepthFunctionToLess??(T.setDepthFunctionToLess=(0,tN._MissingSideEffect)("AbstractEngine","setDepthFunctionToLess")),(R=tQ.prototype).setDepthFunctionToLessOrEqual??(R.setDepthFunctionToLessOrEqual=(0,tN._MissingSideEffect)("AbstractEngine","setDepthFunctionToLessOrEqual")),(M=tQ.prototype).getDepthWrite??(M.getDepthWrite=(0,tN._MissingSideEffect)("AbstractEngine","getDepthWrite")),(B=tQ.prototype).setDepthWrite??(B.setDepthWrite=(0,tN._MissingSideEffect)("AbstractEngine","setDepthWrite")),(k=tQ.prototype).setAlphaConstants??(k.setAlphaConstants=(0,tN._MissingSideEffect)("AbstractEngine","setAlphaConstants")),(w=tQ.prototype).getAlphaMode??(w.getAlphaMode=(0,tN._MissingSideEffect)("AbstractEngine","getAlphaMode")),(I=tQ.prototype).getAlphaEquation??(I.getAlphaEquation=(0,tN._MissingSideEffect)("AbstractEngine","getAlphaEquation")),(L=tQ.prototype).getStencilOperationPass??(L.getStencilOperationPass=(0,tN._MissingSideEffect)("AbstractEngine","getStencilOperationPass")),(U=tQ.prototype).getStencilBackOperationPass??(U.getStencilBackOperationPass=(0,tN._MissingSideEffect)("AbstractEngine","getStencilBackOperationPass")),(N=tQ.prototype).getStencilBuffer??(N.getStencilBuffer=(0,tN._MissingSideEffect)("AbstractEngine","getStencilBuffer")),(V=tQ.prototype).setStencilBuffer??(V.setStencilBuffer=(0,tN._MissingSideEffect)("AbstractEngine","setStencilBuffer")),(G=tQ.prototype).getStencilMask??(G.getStencilMask=(0,tN._MissingSideEffect)("AbstractEngine","getStencilMask")),(W=tQ.prototype).setStencilMask??(W.setStencilMask=(0,tN._MissingSideEffect)("AbstractEngine","setStencilMask")),(H=tQ.prototype).getStencilFunction??(H.getStencilFunction=(0,tN._MissingSideEffect)("AbstractEngine","getStencilFunction")),(q=tQ.prototype).getStencilBackFunction??(q.getStencilBackFunction=(0,tN._MissingSideEffect)("AbstractEngine","getStencilBackFunction")),(z=tQ.prototype).getStencilFunctionReference??(z.getStencilFunctionReference=(0,tN._MissingSideEffect)("AbstractEngine","getStencilFunctionReference")),(j=tQ.prototype).getStencilFunctionMask??(j.getStencilFunctionMask=(0,tN._MissingSideEffect)("AbstractEngine","getStencilFunctionMask")),($=tQ.prototype).setStencilFunction??($.setStencilFunction=(0,tN._MissingSideEffect)("AbstractEngine","setStencilFunction")),(Z=tQ.prototype).setStencilBackFunction??(Z.setStencilBackFunction=(0,tN._MissingSideEffect)("AbstractEngine","setStencilBackFunction")),(K=tQ.prototype).setStencilFunctionReference??(K.setStencilFunctionReference=(0,tN._MissingSideEffect)("AbstractEngine","setStencilFunctionReference")),(Q=tQ.prototype).setStencilFunctionMask??(Q.setStencilFunctionMask=(0,tN._MissingSideEffect)("AbstractEngine","setStencilFunctionMask")),(X=tQ.prototype).getStencilOperationFail??(X.getStencilOperationFail=(0,tN._MissingSideEffect)("AbstractEngine","getStencilOperationFail")),(Y=tQ.prototype).getStencilBackOperationFail??(Y.getStencilBackOperationFail=(0,tN._MissingSideEffect)("AbstractEngine","getStencilBackOperationFail")),(J=tQ.prototype).getStencilOperationDepthFail??(J.getStencilOperationDepthFail=(0,tN._MissingSideEffect)("AbstractEngine","getStencilOperationDepthFail")),(ee=tQ.prototype).getStencilBackOperationDepthFail??(ee.getStencilBackOperationDepthFail=(0,tN._MissingSideEffect)("AbstractEngine","getStencilBackOperationDepthFail")),(et=tQ.prototype).setStencilOperationFail??(et.setStencilOperationFail=(0,tN._MissingSideEffect)("AbstractEngine","setStencilOperationFail")),(ei=tQ.prototype).setStencilBackOperationFail??(ei.setStencilBackOperationFail=(0,tN._MissingSideEffect)("AbstractEngine","setStencilBackOperationFail")),(es=tQ.prototype).setStencilOperationDepthFail??(es.setStencilOperationDepthFail=(0,tN._MissingSideEffect)("AbstractEngine","setStencilOperationDepthFail")),(er=tQ.prototype).setStencilBackOperationDepthFail??(er.setStencilBackOperationDepthFail=(0,tN._MissingSideEffect)("AbstractEngine","setStencilBackOperationDepthFail")),(en=tQ.prototype).setStencilOperationPass??(en.setStencilOperationPass=(0,tN._MissingSideEffect)("AbstractEngine","setStencilOperationPass")),(ea=tQ.prototype).setStencilBackOperationPass??(ea.setStencilBackOperationPass=(0,tN._MissingSideEffect)("AbstractEngine","setStencilBackOperationPass")),(eo=tQ.prototype).cacheStencilState??(eo.cacheStencilState=(0,tN._MissingSideEffect)("AbstractEngine","cacheStencilState")),(el=tQ.prototype).restoreStencilState??(el.restoreStencilState=(0,tN._MissingSideEffect)("AbstractEngine","restoreStencilState")),(eh=tQ.prototype).createDepthStencilTexture??(eh.createDepthStencilTexture=(0,tN._MissingSideEffect)("AbstractEngine","createDepthStencilTexture")),(ec=tQ.prototype).setCompressedTextureExclusions??(ec.setCompressedTextureExclusions=(0,tN._MissingSideEffect)("AbstractEngine","setCompressedTextureExclusions")),(eu=tQ.prototype).setTextureFormatToUse??(eu.setTextureFormatToUse=(0,tN._MissingSideEffect)("AbstractEngine","setTextureFormatToUse")),(ep=tQ.prototype).getGPUFrameTimeCounter??(ep.getGPUFrameTimeCounter=(0,tN._MissingSideEffect)("AbstractEngine","getGPUFrameTimeCounter")),(ed=tQ.prototype).captureGPUFrameTime??(ed.captureGPUFrameTime=(0,tN._MissingSideEffect)("AbstractEngine","captureGPUFrameTime")),(ef=tQ.prototype).registerView??(ef.registerView=(0,tN._MissingSideEffect)("AbstractEngine","registerView")),(e_=tQ.prototype).unRegisterView??(e_.unRegisterView=(0,tN._MissingSideEffect)("AbstractEngine","unRegisterView")),(eg=tQ.prototype).setAlphaMode??(eg.setAlphaMode=(0,tN._MissingSideEffect)("AbstractEngine","setAlphaMode")),(em=tQ.prototype).createComputeEffect??(em.createComputeEffect=(0,tN._MissingSideEffect)("AbstractEngine","createComputeEffect")),(eb=tQ.prototype).createComputePipelineContext??(eb.createComputePipelineContext=(0,tN._MissingSideEffect)("AbstractEngine","createComputePipelineContext")),(eS=tQ.prototype).createComputeContext??(eS.createComputeContext=(0,tN._MissingSideEffect)("AbstractEngine","createComputeContext")),(eC=tQ.prototype).computeDispatch??(eC.computeDispatch=(0,tN._MissingSideEffect)("AbstractEngine","computeDispatch")),(eE=tQ.prototype).computeDispatchIndirect??(eE.computeDispatchIndirect=(0,tN._MissingSideEffect)("AbstractEngine","computeDispatchIndirect")),(ey=tQ.prototype).areAllComputeEffectsReady??(ey.areAllComputeEffectsReady=(0,tN._MissingSideEffect)("AbstractEngine","areAllComputeEffectsReady")),(ex=tQ.prototype).releaseComputeEffects??(ex.releaseComputeEffects=(0,tN._MissingSideEffect)("AbstractEngine","releaseComputeEffects")),(eF=tQ.prototype).createCubeTexture??(eF.createCubeTexture=(0,tN._MissingSideEffect)("AbstractEngine","createCubeTexture")),(eA=tQ.prototype).generateMipMapsForCubemap??(eA.generateMipMapsForCubemap=(0,tN._MissingSideEffect)("AbstractEngine","generateMipMapsForCubemap")),(ev=tQ.prototype).updateDynamicIndexBuffer??(ev.updateDynamicIndexBuffer=(0,tN._MissingSideEffect)("AbstractEngine","updateDynamicIndexBuffer")),(eD=tQ.prototype).updateDynamicVertexBuffer??(eD.updateDynamicVertexBuffer=(0,tN._MissingSideEffect)("AbstractEngine","updateDynamicVertexBuffer")),(eP=tQ.prototype).createDynamicTexture??(eP.createDynamicTexture=(0,tN._MissingSideEffect)("AbstractEngine","createDynamicTexture")),(eO=tQ.prototype).updateDynamicTexture??(eO.updateDynamicTexture=(0,tN._MissingSideEffect)("AbstractEngine","updateDynamicTexture")),(eT=tQ.prototype).unBindMultiColorAttachmentFramebuffer??(eT.unBindMultiColorAttachmentFramebuffer=(0,tN._MissingSideEffect)("AbstractEngine","unBindMultiColorAttachmentFramebuffer")),(eR=tQ.prototype).createMultipleRenderTarget??(eR.createMultipleRenderTarget=(0,tN._MissingSideEffect)("AbstractEngine","createMultipleRenderTarget")),(eM=tQ.prototype).updateMultipleRenderTargetTextureSampleCount??(eM.updateMultipleRenderTargetTextureSampleCount=(0,tN._MissingSideEffect)("AbstractEngine","updateMultipleRenderTargetTextureSampleCount")),(eB=tQ.prototype).generateMipMapsMultiFramebuffer??(eB.generateMipMapsMultiFramebuffer=(0,tN._MissingSideEffect)("AbstractEngine","generateMipMapsMultiFramebuffer")),(ek=tQ.prototype).resolveMultiFramebuffer??(ek.resolveMultiFramebuffer=(0,tN._MissingSideEffect)("AbstractEngine","resolveMultiFramebuffer")),(ew=tQ.prototype).bindAttachments??(ew.bindAttachments=(0,tN._MissingSideEffect)("AbstractEngine","bindAttachments")),(eI=tQ.prototype).buildTextureLayout??(eI.buildTextureLayout=(0,tN._MissingSideEffect)("AbstractEngine","buildTextureLayout")),(eL=tQ.prototype).restoreSingleAttachment??(eL.restoreSingleAttachment=(0,tN._MissingSideEffect)("AbstractEngine","restoreSingleAttachment")),(eU=tQ.prototype).restoreSingleAttachmentForRenderTarget??(eU.restoreSingleAttachmentForRenderTarget=(0,tN._MissingSideEffect)("AbstractEngine","restoreSingleAttachmentForRenderTarget")),(eN=tQ.prototype).createPrefilteredCubeTexture??(eN.createPrefilteredCubeTexture=(0,tN._MissingSideEffect)("AbstractEngine","createPrefilteredCubeTexture")),(eV=tQ.prototype).updateRawTexture??(eV.updateRawTexture=(0,tN._MissingSideEffect)("AbstractEngine","updateRawTexture")),(eG=tQ.prototype).updateRawCubeTexture??(eG.updateRawCubeTexture=(0,tN._MissingSideEffect)("AbstractEngine","updateRawCubeTexture")),(eW=tQ.prototype).createRawCubeTextureFromUrl??(eW.createRawCubeTextureFromUrl=(0,tN._MissingSideEffect)("AbstractEngine","createRawCubeTextureFromUrl")),(eH=tQ.prototype).updateRawTexture3D??(eH.updateRawTexture3D=(0,tN._MissingSideEffect)("AbstractEngine","updateRawTexture3D")),(eq=tQ.prototype).updateRawTexture2DArray??(eq.updateRawTexture2DArray=(0,tN._MissingSideEffect)("AbstractEngine","updateRawTexture2DArray")),(ez=tQ.prototype).createRenderTargetTexture??(ez.createRenderTargetTexture=(0,tN._MissingSideEffect)("AbstractEngine","createRenderTargetTexture")),(ej=tQ.prototype).updateRenderTargetTextureSampleCount??(ej.updateRenderTargetTextureSampleCount=(0,tN._MissingSideEffect)("AbstractEngine","updateRenderTargetTextureSampleCount")),(e$=tQ.prototype).createRenderTargetCubeTexture??(e$.createRenderTargetCubeTexture=(0,tN._MissingSideEffect)("AbstractEngine","createRenderTargetCubeTexture")),(eZ=tQ.prototype).setDepthStencilTexture??(eZ.setDepthStencilTexture=(0,tN._MissingSideEffect)("AbstractEngine","setDepthStencilTexture")),(eK=tQ.prototype).updateVideoTexture??(eK.updateVideoTexture=(0,tN._MissingSideEffect)("AbstractEngine","updateVideoTexture")),(eQ=tQ.prototype).createRawCubeTexture??(eQ.createRawCubeTexture=(0,tN._MissingSideEffect)("AbstractEngine","createRawCubeTexture")),(eX=tQ.prototype).createEffectForParticles??(eX.createEffectForParticles=(0,tN._MissingSideEffect)("AbstractEngine","createEffectForParticles")),(eY=tQ.prototype).setTextureFromPostProcess??(eY.setTextureFromPostProcess=(0,tN._MissingSideEffect)("AbstractEngine","setTextureFromPostProcess")),(eJ=tQ.prototype).setTextureFromPostProcessOutput??(eJ.setTextureFromPostProcessOutput=(0,tN._MissingSideEffect)("AbstractEngine","setTextureFromPostProcessOutput")),Object.getOwnPropertyDescriptor(tQ.prototype,"loadingScreen")||Object.defineProperty(tQ.prototype,"loadingScreen",(0,tN._MissingSideEffectProperty)("AbstractEngine","loadingScreen")),Object.getOwnPropertyDescriptor(tQ.prototype,"loadingUIText")||Object.defineProperty(tQ.prototype,"loadingUIText",(0,tN._MissingSideEffectProperty)("AbstractEngine","loadingUIText")),Object.getOwnPropertyDescriptor(tQ.prototype,"loadingUIBackgroundColor")||Object.defineProperty(tQ.prototype,"loadingUIBackgroundColor",(0,tN._MissingSideEffectProperty)("AbstractEngine","loadingUIBackgroundColor")),Object.getOwnPropertyDescriptor(tQ.prototype,"inputElement")||Object.defineProperty(tQ.prototype,"inputElement",(0,tN._MissingSideEffectProperty)("AbstractEngine","inputElement")),Object.getOwnPropertyDescriptor(tQ.prototype,"activeView")||Object.defineProperty(tQ.prototype,"activeView",(0,tN._MissingSideEffectProperty)("AbstractEngine","activeView")),Object.getOwnPropertyDescriptor(tQ.prototype,"views")||Object.defineProperty(tQ.prototype,"views",(0,tN._MissingSideEffectProperty)("AbstractEngine","views")),e.s(["AbstractEngine",0,tQ],32622)}]);
@@ -1,4 +1,4 @@
1
- (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,70882,e=>{"use strict";var r=e.i(1719);let i="helperFunctions",f=`const PI: f32=3.1415926535897932384626433832795;const TWO_PI: f32=6.283185307179586;const HALF_PI: f32=1.5707963267948966;const RECIPROCAL_PI: f32=0.3183098861837907;const RECIPROCAL_PI2: f32=0.15915494309189535;const RECIPROCAL_PI4: f32=0.07957747154594767;const HALF_MIN: f32=5.96046448e-08;
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,73272,e=>{"use strict";var r=e.i(37875);let i="helperFunctions",f=`const PI: f32=3.1415926535897932384626433832795;const TWO_PI: f32=6.283185307179586;const HALF_PI: f32=1.5707963267948966;const RECIPROCAL_PI: f32=0.3183098861837907;const RECIPROCAL_PI2: f32=0.15915494309189535;const RECIPROCAL_PI4: f32=0.07957747154594767;const HALF_MIN: f32=5.96046448e-08;
2
2
  const LinearEncodePowerApprox: f32=2.2;const GammaEncodePowerApprox: f32=1.0/LinearEncodePowerApprox;const LuminanceEncodeApprox: vec3f=vec3f(0.2126,0.7152,0.0722);const Epsilon:f32=0.0000001;fn square(x: f32)->f32 {return x*x;}
3
3
  fn saturate(x: f32)->f32 {return clamp(x,0.0,1.0);}
4
4
  fn saturateVec3(x: vec3f)->vec3f {return clamp(x,vec3f(),vec3f(1.0));}
@@ -16,9 +16,9 @@ b11/det,(a22*a00-a02*a20)/det,(-a12*a00+a02*a10)/det,
16
16
  b21/det,(-a21*a00+a01*a20)/det,(a11*a00-a01*a10)/det);}
17
17
  #if USE_EXACT_SRGB_CONVERSIONS
18
18
  fn toLinearSpaceExact(color: vec3f)->vec3f
19
- {let nearZeroSection: vec3f=0.0773993808*color;let remainingSection: vec3f=pow(0.947867299*(color+vec3f(0.055)),vec3f(2.4));return mix(remainingSection,nearZeroSection,lessThanEqual(color,vec3f(0.04045)));}
19
+ {let nearZeroSection: vec3f=0.0773993808*color;let remainingSection: vec3f=pow(0.947867299*(color+vec3f(0.055)),vec3f(2.4));return select(remainingSection,nearZeroSection,color<=vec3f(0.04045));}
20
20
  fn toGammaSpaceExact(color: vec3f)->vec3f
21
- {let nearZeroSection: vec3f=12.92*color;let remainingSection: vec3f=1.055*pow(color,vec3f(0.41666))-vec3f(0.055);return mix(remainingSection,nearZeroSection,lessThanEqual(color,vec3f(0.0031308)));}
21
+ {let nearZeroSection: vec3f=12.92*color;let remainingSection: vec3f=1.055*pow(color,vec3f(0.41666))-vec3f(0.055);return select(remainingSection,nearZeroSection,color<=vec3f(0.0031308));}
22
22
  #endif
23
23
  fn toLinearSpace(color: f32)->f32
24
24
  {
@@ -84,7 +84,7 @@ fn max3(v: vec3f)->f32 {return max(v.x,max(v.y,v.z));}
84
84
  fn uint2float(i: u32)->f32 {return bitcast<f32>(0x3F800000u | (i>>9u))-1.0;}
85
85
  fn plasticSequence(rstate: u32)->vec2f {return vec2f(uint2float(rstate*3242174889u),
86
86
  uint2float(rstate*2447445414u));}
87
- `;r.ShaderStore.IncludesShadersStoreWGSL[i]||(r.ShaderStore.IncludesShadersStoreWGSL[i]=f),e.s(["helperFunctionsWGSL",0,{name:i,shader:f}])},95611,e=>{"use strict";var r=e.i(1719);let i="sceneUboDeclaration",f=`struct Scene {viewProjection : mat4x4<f32>,
87
+ `;r.ShaderStore.IncludesShadersStoreWGSL[i]||(r.ShaderStore.IncludesShadersStoreWGSL[i]=f),e.s(["helperFunctionsWGSL",0,{name:i,shader:f}])},84327,e=>{"use strict";var r=e.i(37875);let i="sceneUboDeclaration",f=`struct Scene {viewProjection : mat4x4<f32>,
88
88
  #ifdef MULTIVIEW
89
89
  viewProjectionR : mat4x4<f32>,
90
90
  #endif
@@ -94,16 +94,16 @@ vEyePosition : vec4<f32>,
94
94
  inverseProjection : mat4x4<f32>,};
95
95
  #define SCENE_UBO
96
96
  var<uniform> scene : Scene;
97
- `;r.ShaderStore.IncludesShadersStoreWGSL[i]||(r.ShaderStore.IncludesShadersStoreWGSL[i]=f),e.s(["sceneUboDeclarationWGSL",0,{name:i,shader:f}])},96024,58834,23681,e=>{"use strict";var r=e.i(1719);let i="meshUboDeclaration",f=`struct Mesh {world : mat4x4<f32>,
97
+ `;r.ShaderStore.IncludesShadersStoreWGSL[i]||(r.ShaderStore.IncludesShadersStoreWGSL[i]=f),e.s(["sceneUboDeclarationWGSL",0,{name:i,shader:f}])},2586,30368,95676,e=>{"use strict";var r=e.i(37875);let i="meshUboDeclaration",f=`struct Mesh {world : mat4x4<f32>,
98
98
  visibility : f32,};var<uniform> mesh : Mesh;
99
99
  #define WORLD_UBO
100
- `;r.ShaderStore.IncludesShadersStoreWGSL[i]||(r.ShaderStore.IncludesShadersStoreWGSL[i]=f),e.s(["meshUboDeclarationWGSL",0,{name:i,shader:f}],96024);let t="mainUVVaryingDeclaration",n=`#ifdef MAINUV{X}
100
+ `;r.ShaderStore.IncludesShadersStoreWGSL[i]||(r.ShaderStore.IncludesShadersStoreWGSL[i]=f),e.s(["meshUboDeclarationWGSL",0,{name:i,shader:f}],2586);let t="mainUVVaryingDeclaration",n=`#ifdef MAINUV{X}
101
101
  varying vMainUV{X}: vec2f;
102
102
  #endif
103
- `;r.ShaderStore.IncludesShadersStoreWGSL[t]||(r.ShaderStore.IncludesShadersStoreWGSL[t]=n),e.s(["mainUVVaryingDeclarationWGSL",0,{name:t,shader:n}],58834);let o="logDepthDeclaration",a=`#ifdef LOGARITHMICDEPTH
103
+ `;r.ShaderStore.IncludesShadersStoreWGSL[t]||(r.ShaderStore.IncludesShadersStoreWGSL[t]=n),e.s(["mainUVVaryingDeclarationWGSL",0,{name:t,shader:n}],30368);let o="logDepthDeclaration",a=`#ifdef LOGARITHMICDEPTH
104
104
  uniform logarithmicDepthConstant: f32;varying vFragmentDepth: f32;
105
105
  #endif
106
- `;r.ShaderStore.IncludesShadersStoreWGSL[o]||(r.ShaderStore.IncludesShadersStoreWGSL[o]=a),e.s(["logDepthDeclarationWGSL",0,{name:o,shader:a}],23681)},2720,e=>{"use strict";var r=e.i(1719);let i="harmonicsFunctions",f=`#ifdef USESPHERICALFROMREFLECTIONMAP
106
+ `;r.ShaderStore.IncludesShadersStoreWGSL[o]||(r.ShaderStore.IncludesShadersStoreWGSL[o]=a),e.s(["logDepthDeclarationWGSL",0,{name:o,shader:a}],95676)},17978,e=>{"use strict";var r=e.i(37875);let i="harmonicsFunctions",f=`#ifdef USESPHERICALFROMREFLECTIONMAP
107
107
  #ifdef SPHERICAL_HARMONICS
108
108
  fn computeEnvironmentIrradiance(normal: vec3f)->vec3f {return uniforms.vSphericalL00
109
109
  + uniforms.vSphericalL1_1*(normal.y)
@@ -118,7 +118,7 @@ fn computeEnvironmentIrradiance(normal: vec3f)->vec3f {return uniforms.vSpherica
118
118
  fn computeEnvironmentIrradiance(normal: vec3f)->vec3f {var Nx: f32=normal.x;var Ny: f32=normal.y;var Nz: f32=normal.z;var C1: vec3f=uniforms.vSphericalZZ.rgb;var Cx: vec3f=uniforms.vSphericalX.rgb;var Cy: vec3f=uniforms.vSphericalY.rgb;var Cz: vec3f=uniforms.vSphericalZ.rgb;var Cxx_zz: vec3f=uniforms.vSphericalXX_ZZ.rgb;var Cyy_zz: vec3f=uniforms.vSphericalYY_ZZ.rgb;var Cxy: vec3f=uniforms.vSphericalXY.rgb;var Cyz: vec3f=uniforms.vSphericalYZ.rgb;var Czx: vec3f=uniforms.vSphericalZX.rgb;var a1: vec3f=Cyy_zz*Ny+Cy;var a2: vec3f=Cyz*Nz+a1;var b1: vec3f=Czx*Nz+Cx;var b2: vec3f=Cxy*Ny+b1;var b3: vec3f=Cxx_zz*Nx+b2;var t1: vec3f=Cz *Nz+C1;var t2: vec3f=a2 *Ny+t1;var t3: vec3f=b3 *Nx+t2;return t3;}
119
119
  #endif
120
120
  #endif
121
- `;r.ShaderStore.IncludesShadersStoreWGSL[i]||(r.ShaderStore.IncludesShadersStoreWGSL[i]=f),e.s(["harmonicsFunctionsWGSL",0,{name:i,shader:f}])},8067,e=>{"use strict";var r=e.i(1719);let i="pbrBRDFFunctions",f=`#define FRESNEL_MAXIMUM_ON_ROUGH 0.25
121
+ `;r.ShaderStore.IncludesShadersStoreWGSL[i]||(r.ShaderStore.IncludesShadersStoreWGSL[i]=f),e.s(["harmonicsFunctionsWGSL",0,{name:i,shader:f}])},44068,e=>{"use strict";var r=e.i(37875);let i="pbrBRDFFunctions",f=`#define FRESNEL_MAXIMUM_ON_ROUGH 0.25
122
122
  #define BRDF_DIFFUSE_MODEL_EON 0
123
123
  #define BRDF_DIFFUSE_MODEL_BURLEY 1
124
124
  #define BRDF_DIFFUSE_MODEL_LAMBERT 2
@@ -290,11 +290,11 @@ fn transmittanceBRDF_Burley(tintColor: vec3f,diffusionDistance: vec3f,thickness:
290
290
  fn computeWrappedDiffuseNdotL(NdotL: f32,w: f32)->f32 {var t: f32=1.0+w;var invt2: f32=1.0/(t*t);return saturate((NdotL+w)*invt2);}
291
291
  #endif
292
292
  #endif
293
- `;r.ShaderStore.IncludesShadersStoreWGSL[i]||(r.ShaderStore.IncludesShadersStoreWGSL[i]=f),e.s(["pbrBRDFFunctionsWGSL",0,{name:i,shader:f}])},24099,e=>{"use strict";var r=e.i(1719);e.i(95611),e.i(96024);let i="openpbrUboDeclaration",f=`uniform vTangentSpaceParams: vec2f;uniform vLightingIntensity: vec4f;uniform pointSize: f32;uniform vDebugMode: vec2f;uniform renderTargetSize: vec2f;uniform cameraInfo: vec4f;uniform vTextureRepetitionHexTilingParams: vec4f;uniform backgroundRefractionMatrix: mat4x4f;uniform vBackgroundRefractionInfos: vec3f;uniform vReflectionInfos: vec2f;uniform reflectionMatrix: mat4x4f;uniform vReflectionMicrosurfaceInfos: vec3f;uniform vReflectionPosition: vec3f;uniform vReflectionSize: vec3f;uniform vReflectionFilteringInfo: vec2f;uniform vReflectionDominantDirection: vec3f;uniform vReflectionColor: vec3f;uniform vSphericalL00: vec3f;uniform vSphericalL1_1: vec3f;uniform vSphericalL10: vec3f;uniform vSphericalL11: vec3f;uniform vSphericalL2_2: vec3f;uniform vSphericalL2_1: vec3f;uniform vSphericalL20: vec3f;uniform vSphericalL21: vec3f;uniform vSphericalL22: vec3f;uniform vSphericalX: vec3f;uniform vSphericalY: vec3f;uniform vSphericalZ: vec3f;uniform vSphericalXX_ZZ: vec3f;uniform vSphericalYY_ZZ: vec3f;uniform vSphericalZZ: vec3f;uniform vSphericalXY: vec3f;uniform vSphericalYZ: vec3f;uniform vSphericalZX: vec3f;uniform vBaseWeight: f32;uniform vBaseColor: vec4f;uniform vBaseDiffuseRoughness: f32;uniform vReflectanceInfo: vec4f;uniform vSpecularColor: vec4f;uniform vSpecularAnisotropy: vec3f;uniform vTransmissionWeight : f32;uniform vTransmissionColor : vec3f;uniform vTransmissionDepth : f32;uniform vTransmissionScatter : vec3f;uniform vTransmissionScatterAnisotropy : f32;uniform vTransmissionDispersionScale : f32;uniform vTransmissionDispersionAbbeNumber : f32;uniform vSubsurfaceWeight: f32;uniform vSubsurfaceColor: vec3f;uniform vSubsurfaceRadius: f32;uniform vSubsurfaceRadiusScale: vec3f;uniform vSubsurfaceScatterAnisotropy: f32;uniform vCoatWeight: f32;uniform vCoatColor: vec3f;uniform vCoatRoughness: f32;uniform vCoatRoughnessAnisotropy: f32;uniform vCoatIor: f32;uniform vCoatDarkening : f32;uniform vFuzzWeight: f32;uniform vFuzzColor: vec3f;uniform vFuzzRoughness: f32;uniform vGeometryThinWalled: f32;uniform vGeometryCoatTangent: vec2f;uniform vGeometryThickness: f32;uniform vEmissionColor: vec3f;uniform vThinFilmWeight: f32;uniform vThinFilmThickness: vec2f;uniform vThinFilmIor: f32;uniform vBaseWeightInfos: vec2f;uniform baseWeightMatrix: mat4x4f;uniform vBaseColorInfos: vec2f;uniform baseColorMatrix: mat4x4f;uniform vBaseDiffuseRoughnessInfos: vec2f;uniform baseDiffuseRoughnessMatrix: mat4x4f;uniform vBaseMetalnessInfos: vec2f;uniform baseMetalnessMatrix: mat4x4f;uniform vSpecularWeightInfos: vec2f;uniform specularWeightMatrix: mat4x4f;uniform vSpecularColorInfos: vec2f;uniform specularColorMatrix: mat4x4f;uniform vSpecularRoughnessInfos: vec2f;uniform specularRoughnessMatrix: mat4x4f;uniform vSpecularRoughnessAnisotropyInfos: vec2f;uniform specularRoughnessAnisotropyMatrix: mat4x4f;uniform vTransmissionWeightInfos : vec2f;uniform transmissionWeightMatrix : mat4x4f;uniform vTransmissionColorInfos : vec2f;uniform transmissionColorMatrix : mat4x4f;uniform vTransmissionDepthInfos : vec2f;uniform transmissionDepthMatrix : mat4x4f;uniform vTransmissionScatterInfos : vec2f;uniform transmissionScatterMatrix : mat4x4f;uniform vTransmissionDispersionScaleInfos : vec2f;uniform transmissionDispersionScaleMatrix : mat4x4f;uniform vSubsurfaceWeightInfos: vec2f;uniform subsurfaceWeightMatrix: mat4x4f;uniform vSubsurfaceColorInfos: vec2f;uniform subsurfaceColorMatrix: mat4x4f;uniform vSubsurfaceRadiusScaleInfos: vec2f;uniform subsurfaceRadiusScaleMatrix: mat4x4f;uniform vCoatWeightInfos: vec2f;uniform coatWeightMatrix: mat4x4f;uniform vCoatColorInfos: vec2f;uniform coatColorMatrix: mat4x4f;uniform vCoatRoughnessInfos: vec2f;uniform coatRoughnessMatrix: mat4x4f;uniform vCoatRoughnessAnisotropyInfos: vec2f;uniform coatRoughnessAnisotropyMatrix: mat4x4f;uniform vCoatDarkeningInfos : vec2f;uniform coatDarkeningMatrix : mat4x4f;uniform vFuzzWeightInfos: vec2f;uniform fuzzWeightMatrix: mat4x4f;uniform vFuzzColorInfos: vec2f;uniform fuzzColorMatrix: mat4x4f;uniform vFuzzRoughnessInfos: vec2f;uniform fuzzRoughnessMatrix: mat4x4f;uniform vGeometryNormalInfos: vec2f;uniform geometryNormalMatrix: mat4x4f;uniform vGeometryTangentInfos: vec2f;uniform geometryTangentMatrix: mat4x4f;uniform vGeometryCoatNormalInfos: vec2f;uniform geometryCoatNormalMatrix: mat4x4f;uniform vGeometryCoatTangentInfos: vec2f;uniform geometryCoatTangentMatrix: mat4x4f;uniform vGeometryOpacityInfos: vec2f;uniform geometryOpacityMatrix: mat4x4f;uniform vGeometryThicknessInfos: vec2f;uniform geometryThicknessMatrix: mat4x4f;uniform vEmissionColorInfos: vec2f;uniform emissionColorMatrix: mat4x4f;uniform vThinFilmWeightInfos: vec2f;uniform thinFilmWeightMatrix: mat4x4f;uniform vThinFilmThicknessInfos: vec2f;uniform thinFilmThicknessMatrix: mat4x4f;uniform vAmbientOcclusionInfos: vec2f;uniform ambientOcclusionMatrix: mat4x4f;
293
+ `;r.ShaderStore.IncludesShadersStoreWGSL[i]||(r.ShaderStore.IncludesShadersStoreWGSL[i]=f),e.s(["pbrBRDFFunctionsWGSL",0,{name:i,shader:f}])},19180,e=>{"use strict";var r=e.i(37875);e.i(84327),e.i(2586);let i="openpbrUboDeclaration",f=`uniform vTangentSpaceParams: vec2f;uniform vLightingIntensity: vec4f;uniform pointSize: f32;uniform vDebugMode: vec2f;uniform renderTargetSize: vec2f;uniform cameraInfo: vec4f;uniform vTextureRepetitionHexTilingParams: vec4f;uniform backgroundRefractionMatrix: mat4x4f;uniform vBackgroundRefractionInfos: vec3f;uniform vReflectionInfos: vec2f;uniform reflectionMatrix: mat4x4f;uniform vReflectionMicrosurfaceInfos: vec3f;uniform vReflectionPosition: vec3f;uniform vReflectionSize: vec3f;uniform vReflectionFilteringInfo: vec2f;uniform vReflectionDominantDirection: vec3f;uniform vReflectionColor: vec3f;uniform vSphericalL00: vec3f;uniform vSphericalL1_1: vec3f;uniform vSphericalL10: vec3f;uniform vSphericalL11: vec3f;uniform vSphericalL2_2: vec3f;uniform vSphericalL2_1: vec3f;uniform vSphericalL20: vec3f;uniform vSphericalL21: vec3f;uniform vSphericalL22: vec3f;uniform vSphericalX: vec3f;uniform vSphericalY: vec3f;uniform vSphericalZ: vec3f;uniform vSphericalXX_ZZ: vec3f;uniform vSphericalYY_ZZ: vec3f;uniform vSphericalZZ: vec3f;uniform vSphericalXY: vec3f;uniform vSphericalYZ: vec3f;uniform vSphericalZX: vec3f;uniform vBaseWeight: f32;uniform vBaseColor: vec4f;uniform vBaseDiffuseRoughness: f32;uniform vReflectanceInfo: vec4f;uniform vSpecularColor: vec4f;uniform vSpecularAnisotropy: vec3f;uniform vTransmissionWeight : f32;uniform vTransmissionColor : vec3f;uniform vTransmissionDepth : f32;uniform vTransmissionScatter : vec3f;uniform vTransmissionScatterAnisotropy : f32;uniform vTransmissionDispersionScale : f32;uniform vTransmissionDispersionAbbeNumber : f32;uniform vSubsurfaceWeight: f32;uniform vSubsurfaceColor: vec3f;uniform vSubsurfaceRadius: f32;uniform vSubsurfaceRadiusScale: vec3f;uniform vSubsurfaceScatterAnisotropy: f32;uniform vCoatWeight: f32;uniform vCoatColor: vec3f;uniform vCoatRoughness: f32;uniform vCoatRoughnessAnisotropy: f32;uniform vCoatIor: f32;uniform vCoatDarkening : f32;uniform vFuzzWeight: f32;uniform vFuzzColor: vec3f;uniform vFuzzRoughness: f32;uniform vGeometryThinWalled: f32;uniform vGeometryCoatTangent: vec2f;uniform vGeometryThickness: f32;uniform vEmissionColor: vec3f;uniform vThinFilmWeight: f32;uniform vThinFilmThickness: vec2f;uniform vThinFilmIor: f32;uniform vBaseWeightInfos: vec2f;uniform baseWeightMatrix: mat4x4f;uniform vBaseColorInfos: vec2f;uniform baseColorMatrix: mat4x4f;uniform vBaseDiffuseRoughnessInfos: vec2f;uniform baseDiffuseRoughnessMatrix: mat4x4f;uniform vBaseMetalnessInfos: vec2f;uniform baseMetalnessMatrix: mat4x4f;uniform vSpecularWeightInfos: vec2f;uniform specularWeightMatrix: mat4x4f;uniform vSpecularColorInfos: vec2f;uniform specularColorMatrix: mat4x4f;uniform vSpecularRoughnessInfos: vec2f;uniform specularRoughnessMatrix: mat4x4f;uniform vSpecularRoughnessAnisotropyInfos: vec2f;uniform specularRoughnessAnisotropyMatrix: mat4x4f;uniform vTransmissionWeightInfos : vec2f;uniform transmissionWeightMatrix : mat4x4f;uniform vTransmissionColorInfos : vec2f;uniform transmissionColorMatrix : mat4x4f;uniform vTransmissionDepthInfos : vec2f;uniform transmissionDepthMatrix : mat4x4f;uniform vTransmissionScatterInfos : vec2f;uniform transmissionScatterMatrix : mat4x4f;uniform vTransmissionDispersionScaleInfos : vec2f;uniform transmissionDispersionScaleMatrix : mat4x4f;uniform vSubsurfaceWeightInfos: vec2f;uniform subsurfaceWeightMatrix: mat4x4f;uniform vSubsurfaceColorInfos: vec2f;uniform subsurfaceColorMatrix: mat4x4f;uniform vSubsurfaceRadiusScaleInfos: vec2f;uniform subsurfaceRadiusScaleMatrix: mat4x4f;uniform vCoatWeightInfos: vec2f;uniform coatWeightMatrix: mat4x4f;uniform vCoatColorInfos: vec2f;uniform coatColorMatrix: mat4x4f;uniform vCoatRoughnessInfos: vec2f;uniform coatRoughnessMatrix: mat4x4f;uniform vCoatRoughnessAnisotropyInfos: vec2f;uniform coatRoughnessAnisotropyMatrix: mat4x4f;uniform vCoatDarkeningInfos : vec2f;uniform coatDarkeningMatrix : mat4x4f;uniform vFuzzWeightInfos: vec2f;uniform fuzzWeightMatrix: mat4x4f;uniform vFuzzColorInfos: vec2f;uniform fuzzColorMatrix: mat4x4f;uniform vFuzzRoughnessInfos: vec2f;uniform fuzzRoughnessMatrix: mat4x4f;uniform vGeometryNormalInfos: vec2f;uniform geometryNormalMatrix: mat4x4f;uniform vGeometryTangentInfos: vec2f;uniform geometryTangentMatrix: mat4x4f;uniform vGeometryCoatNormalInfos: vec2f;uniform geometryCoatNormalMatrix: mat4x4f;uniform vGeometryCoatTangentInfos: vec2f;uniform geometryCoatTangentMatrix: mat4x4f;uniform vGeometryOpacityInfos: vec2f;uniform geometryOpacityMatrix: mat4x4f;uniform vGeometryThicknessInfos: vec2f;uniform geometryThicknessMatrix: mat4x4f;uniform vEmissionColorInfos: vec2f;uniform emissionColorMatrix: mat4x4f;uniform vThinFilmWeightInfos: vec2f;uniform thinFilmWeightMatrix: mat4x4f;uniform vThinFilmThicknessInfos: vec2f;uniform thinFilmThicknessMatrix: mat4x4f;uniform vAmbientOcclusionInfos: vec2f;uniform ambientOcclusionMatrix: mat4x4f;
294
294
  #define ADDITIONAL_UBO_DECLARATION
295
295
  #include<sceneUboDeclaration>
296
296
  #include<meshUboDeclaration>
297
- `;r.ShaderStore.IncludesShadersStoreWGSL[i]||(r.ShaderStore.IncludesShadersStoreWGSL[i]=f),e.s(["openpbrUboDeclarationWGSL",0,{name:i,shader:f}])},81845,53373,e=>{"use strict";var r=e.i(1719);let i="samplerFragmentDeclaration",f=`#ifdef _DEFINENAME_
297
+ `;r.ShaderStore.IncludesShadersStoreWGSL[i]||(r.ShaderStore.IncludesShadersStoreWGSL[i]=f),e.s(["openpbrUboDeclarationWGSL",0,{name:i,shader:f}])},6761,18724,e=>{"use strict";var r=e.i(37875);let i="samplerFragmentDeclaration",f=`#ifdef _DEFINENAME_
298
298
  #if _DEFINENAME_DIRECTUV==1
299
299
  #define v_VARYINGNAME_UV vMainUV1
300
300
  #elif _DEFINENAME_DIRECTUV==2
@@ -312,7 +312,7 @@ varying v_VARYINGNAME_UV: vec2f;
312
312
  #endif
313
313
  var _SAMPLERNAME_SamplerSampler: sampler;var _SAMPLERNAME_Sampler: texture_2d<f32>;
314
314
  #endif
315
- `;r.ShaderStore.IncludesShadersStoreWGSL[i]||(r.ShaderStore.IncludesShadersStoreWGSL[i]=f),e.s(["samplerFragmentDeclarationWGSL",0,{name:i,shader:f}],81845);let t="reflectionFunction",n=`fn computeFixedEquirectangularCoords(worldPos: vec4f,worldNormal: vec3f,direction: vec3f)->vec3f
315
+ `;r.ShaderStore.IncludesShadersStoreWGSL[i]||(r.ShaderStore.IncludesShadersStoreWGSL[i]=f),e.s(["samplerFragmentDeclarationWGSL",0,{name:i,shader:f}],6761);let t="reflectionFunction",n=`fn computeFixedEquirectangularCoords(worldPos: vec4f,worldNormal: vec3f,direction: vec3f)->vec3f
316
316
  {var lon: f32=atan2(direction.z,direction.x);var lat: f32=acos(direction.y);var sphereCoords: vec2f= vec2f(lon,lat)*RECIPROCAL_PI2*2.0;var s: f32=sphereCoords.x*0.5+0.5;var t: f32=sphereCoords.y;return vec3f(s,t,0); }
317
317
  fn computeMirroredFixedEquirectangularCoords(worldPos: vec4f,worldNormal: vec3f,direction: vec3f)->vec3f
318
318
  {var lon: f32=atan2(direction.z,direction.x);var lat: f32=acos(direction.y);var sphereCoords: vec2f= vec2f(lon,lat)*RECIPROCAL_PI2*2.0;var s: f32=sphereCoords.x*0.5+0.5;var t: f32=sphereCoords.y;return vec3f(1.0-s,t,0); }
@@ -376,7 +376,7 @@ return vec3f(0,0,0);
376
376
  #endif
377
377
  }
378
378
  #endif
379
- `;r.ShaderStore.IncludesShadersStoreWGSL[t]||(r.ShaderStore.IncludesShadersStoreWGSL[t]=n),e.s(["reflectionFunctionWGSL",0,{name:t,shader:n}],53373)},62329,39345,e=>{"use strict";var r=e.i(1719);let i="pbrFragmentReflectionDeclaration",f=`#ifdef REFLECTION
379
+ `;r.ShaderStore.IncludesShadersStoreWGSL[t]||(r.ShaderStore.IncludesShadersStoreWGSL[t]=n),e.s(["reflectionFunctionWGSL",0,{name:t,shader:n}],18724)},23208,66857,e=>{"use strict";var r=e.i(37875);let i="pbrFragmentReflectionDeclaration",f=`#ifdef REFLECTION
380
380
  #ifdef REFLECTIONMAP_3D
381
381
  var reflectionSamplerSampler: sampler;var reflectionSampler: texture_cube<f32>;
382
382
  #ifdef LODBASEDMICROSFURACE
@@ -404,7 +404,7 @@ varying vDirectionW: vec3f;
404
404
  #endif
405
405
  #endif
406
406
  #endif
407
- `;r.ShaderStore.IncludesShadersStoreWGSL[i]||(r.ShaderStore.IncludesShadersStoreWGSL[i]=f),e.s(["pbrFragmentReflectionDeclarationWGSL",0,{name:i,shader:f}],62329);let t="pbrIBLFunctions",n=`#if defined(REFLECTION) || defined(SS_REFRACTION)
407
+ `;r.ShaderStore.IncludesShadersStoreWGSL[i]||(r.ShaderStore.IncludesShadersStoreWGSL[i]=f),e.s(["pbrFragmentReflectionDeclarationWGSL",0,{name:i,shader:f}],23208);let t="pbrIBLFunctions",n=`#if defined(REFLECTION) || defined(SS_REFRACTION)
408
408
  fn getLodFromAlphaG(cubeMapDimensionPixels: f32,microsurfaceAverageSlope: f32)->f32 {var microsurfaceAverageSlopeTexels: f32=cubeMapDimensionPixels*microsurfaceAverageSlope;var lod: f32=log2(microsurfaceAverageSlopeTexels);return lod;}
409
409
  fn getLinearLodFromRoughness(cubeMapDimensionPixels: f32,roughness: f32)->f32 {var lod: f32=log2(cubeMapDimensionPixels)*roughness;return lod;}
410
410
  #endif
@@ -418,7 +418,7 @@ fn environmentHorizonOcclusion(view: vec3f,normal: vec3f,geometricNormal: vec3f)
418
418
  fn UNPACK_LOD(x: f32)->f32 {return (1.0-x)*255.0;}
419
419
  fn getLodFromAlphaGNdotV(cubeMapDimensionPixels: f32,alphaG: f32,NdotV: f32)->f32 {var microsurfaceAverageSlope: f32=alphaG;microsurfaceAverageSlope*=sqrt(abs(NdotV));return getLodFromAlphaG(cubeMapDimensionPixels,microsurfaceAverageSlope);}
420
420
  #endif
421
- `;r.ShaderStore.IncludesShadersStoreWGSL[t]||(r.ShaderStore.IncludesShadersStoreWGSL[t]=n),e.s(["pbrIBLFunctionsWGSL",0,{name:t,shader:n}],39345)},1216,49284,42793,e=>{"use strict";var r=e.i(1719);let i="openpbrDielectricReflectance",f=`struct ReflectanceParams
421
+ `;r.ShaderStore.IncludesShadersStoreWGSL[t]||(r.ShaderStore.IncludesShadersStoreWGSL[t]=n),e.s(["pbrIBLFunctionsWGSL",0,{name:t,shader:n}],66857)},46166,98433,7589,e=>{"use strict";var r=e.i(37875);let i="openpbrDielectricReflectance",f=`struct ReflectanceParams
422
422
  {F0: f32,
423
423
  F90: f32,
424
424
  coloredF0: vec3f,
@@ -440,7 +440,7 @@ let dielectricColorF90: vec3f=specularColor.rgb*vec3f(f90Scale)*specularWeight;
440
440
  let dielectricColorF90: vec3f=vec3f(f90Scale)*specularWeight;
441
441
  #endif
442
442
  outParams.coloredF90=dielectricColorF90;return outParams;}
443
- `;r.ShaderStore.IncludesShadersStoreWGSL[i]||(r.ShaderStore.IncludesShadersStoreWGSL[i]=f),e.s(["openpbrDielectricReflectanceWGSL",0,{name:i,shader:f}],1216);let t="openpbrGeometryInfo",n=`struct geometryInfoOutParams
443
+ `;r.ShaderStore.IncludesShadersStoreWGSL[i]||(r.ShaderStore.IncludesShadersStoreWGSL[i]=f),e.s(["openpbrDielectricReflectanceWGSL",0,{name:i,shader:f}],46166);let t="openpbrGeometryInfo",n=`struct geometryInfoOutParams
444
444
  {NdotV: f32,
445
445
  NdotVUnclamped: f32,
446
446
  environmentBrdf: vec3f,
@@ -477,7 +477,7 @@ normalW: vec3f,viewDirectionW: vec3f,roughness: f32,geometricNormalW: vec3f
477
477
  ,vAnisotropy: vec3f,TBN: mat3x3<f32>
478
478
  )->geometryInfoAnisoOutParams
479
479
  {let geoInfo: geometryInfoOutParams=geometryInfo(normalW,viewDirectionW,roughness,geometricNormalW);var outParams: geometryInfoAnisoOutParams;outParams.NdotV=geoInfo.NdotV;outParams.NdotVUnclamped=geoInfo.NdotVUnclamped;outParams.environmentBrdf=geoInfo.environmentBrdf;outParams.horizonOcclusion=geoInfo.horizonOcclusion;outParams.anisotropy=vAnisotropy.b;let anisotropyDirection: vec3f=vec3f(vAnisotropy.xy,0.);let anisoTBN: mat3x3<f32>=mat3x3<f32>(normalize(TBN[0]),normalize(TBN[1]),normalize(TBN[2]));outParams.anisotropicTangent=normalize(anisoTBN*anisotropyDirection);outParams.anisotropicBitangent=normalize(cross(anisoTBN[2],outParams.anisotropicTangent));outParams.TBN=TBN;return outParams;}
480
- `;r.ShaderStore.IncludesShadersStoreWGSL[t]||(r.ShaderStore.IncludesShadersStoreWGSL[t]=n),e.s(["openpbrGeometryInfoWGSL",0,{name:t,shader:n}],49284);let o="openpbrIblFunctions",a=`#ifdef REFLECTION
480
+ `;r.ShaderStore.IncludesShadersStoreWGSL[t]||(r.ShaderStore.IncludesShadersStoreWGSL[t]=n),e.s(["openpbrGeometryInfoWGSL",0,{name:t,shader:n}],98433);let o="openpbrIblFunctions",a=`#ifdef REFLECTION
481
481
  fn sampleIrradiance(
482
482
  surfaceNormal: vec3f
483
483
  #if defined(NORMAL) && defined(USESPHERICALINVERTEX)
@@ -696,7 +696,7 @@ return getReflectanceFromBRDFLookup(reflectance.coloredF0,reflectance.coloredF90
696
696
  #endif
697
697
  }
698
698
  #endif
699
- `;r.ShaderStore.IncludesShadersStoreWGSL[o]||(r.ShaderStore.IncludesShadersStoreWGSL[o]=a),e.s(["openpbrIblFunctionsWGSL",0,{name:o,shader:a}],42793)},63028,e=>{"use strict";var r=e.i(1719);let i="openpbrTransmissionLayerData",f=`var transmission_weight: f32=uniforms.vTransmissionWeight;var transmission_color: vec3f=uniforms.vTransmissionColor.rgb;var transmission_depth: f32=uniforms.vTransmissionDepth;var transmission_scatter: vec3f=uniforms.vTransmissionScatter.rgb;var transmission_scatter_anisotropy: f32=clamp(uniforms.vTransmissionScatterAnisotropy,-0.9999f,0.9999f);var transmission_dispersion_scale: f32=uniforms.vTransmissionDispersionScale;var transmission_dispersion_abbe_number: f32=uniforms.vTransmissionDispersionAbbeNumber;
699
+ `;r.ShaderStore.IncludesShadersStoreWGSL[o]||(r.ShaderStore.IncludesShadersStoreWGSL[o]=a),e.s(["openpbrIblFunctionsWGSL",0,{name:o,shader:a}],7589)},73511,e=>{"use strict";var r=e.i(37875);let i="openpbrTransmissionLayerData",f=`var transmission_weight: f32=uniforms.vTransmissionWeight;var transmission_color: vec3f=uniforms.vTransmissionColor.rgb;var transmission_depth: f32=uniforms.vTransmissionDepth;var transmission_scatter: vec3f=uniforms.vTransmissionScatter.rgb;var transmission_scatter_anisotropy: f32=clamp(uniforms.vTransmissionScatterAnisotropy,-0.9999f,0.9999f);var transmission_dispersion_scale: f32=uniforms.vTransmissionDispersionScale;var transmission_dispersion_abbe_number: f32=uniforms.vTransmissionDispersionAbbeNumber;
700
700
  #ifdef TRANSMISSION_WEIGHT
701
701
  let transmissionWeightFromTexture: vec4f=TEXRD(transmissionWeightSampler,transmissionWeightSamplerSampler,fragmentInputs.vTransmissionWeightUV+uvOffset);
702
702
  #endif
@@ -732,7 +732,7 @@ transmission_scatter*=transmissionScatterFromTexture.rgb;
732
732
  #ifdef TRANSMISSION_DISPERSION_SCALE
733
733
  transmission_dispersion_scale*=transmissionDispersionScaleFromTexture.r;
734
734
  #endif
735
- `;r.ShaderStore.IncludesShadersStoreWGSL[i]||(r.ShaderStore.IncludesShadersStoreWGSL[i]=f),e.s(["openpbrTransmissionLayerDataWGSL",0,{name:i,shader:f}])},56880,e=>{"use strict";var r=e.i(1719);let i="openpbrSubsurfaceLayerData",f=`var subsurface_weight: f32=uniforms.vSubsurfaceWeight;var subsurface_color: vec3f=uniforms.vSubsurfaceColor.rgb;var subsurface_radius: f32=uniforms.vSubsurfaceRadius;var subsurface_radius_scale: vec3f=uniforms.vSubsurfaceRadiusScale;var subsurface_scatter_anisotropy: f32=clamp(uniforms.vSubsurfaceScatterAnisotropy,-0.9999f,0.9999f);
735
+ `;r.ShaderStore.IncludesShadersStoreWGSL[i]||(r.ShaderStore.IncludesShadersStoreWGSL[i]=f),e.s(["openpbrTransmissionLayerDataWGSL",0,{name:i,shader:f}])},16431,e=>{"use strict";var r=e.i(37875);let i="openpbrSubsurfaceLayerData",f=`var subsurface_weight: f32=uniforms.vSubsurfaceWeight;var subsurface_color: vec3f=uniforms.vSubsurfaceColor.rgb;var subsurface_radius: f32=uniforms.vSubsurfaceRadius;var subsurface_radius_scale: vec3f=uniforms.vSubsurfaceRadiusScale;var subsurface_scatter_anisotropy: f32=clamp(uniforms.vSubsurfaceScatterAnisotropy,-0.9999f,0.9999f);
736
736
  #ifdef SUBSURFACE_WEIGHT
737
737
  let subsurfaceWeightFromTexture: vec4f=TEXRD(subsurfaceWeightSampler,subsurfaceWeightSamplerSampler,fragmentInputs.vSubsurfaceWeightUV+uvOffset);
738
738
  #endif
@@ -760,7 +760,7 @@ subsurface_color*=uniforms.vSubsurfaceColorInfos.y;
760
760
  #ifdef SUBSURFACE_RADIUS_SCALE
761
761
  subsurface_radius_scale*=subsurfaceRadiusScaleFromTexture.rgb;
762
762
  #endif
763
- `;r.ShaderStore.IncludesShadersStoreWGSL[i]||(r.ShaderStore.IncludesShadersStoreWGSL[i]=f),e.s(["openpbrSubsurfaceLayerDataWGSL",0,{name:i,shader:f}])},16555,13001,43639,1397,80442,53554,20503,30997,44953,17517,15202,99505,e=>{"use strict";var r=e.i(1719);e.i(58834);let i="pbrFragmentExtraDeclaration",f=`varying vPositionW: vec3f;
763
+ `;r.ShaderStore.IncludesShadersStoreWGSL[i]||(r.ShaderStore.IncludesShadersStoreWGSL[i]=f),e.s(["openpbrSubsurfaceLayerDataWGSL",0,{name:i,shader:f}])},68300,85038,62456,98408,36244,1497,38129,73142,41290,10467,62403,19368,e=>{"use strict";var r=e.i(37875);e.i(30368);let i="pbrFragmentExtraDeclaration",f=`varying vPositionW: vec3f;
764
764
  #if DEBUGMODE>0
765
765
  varying vClipSpacePosition: vec4f;
766
766
  #endif
@@ -777,15 +777,15 @@ varying vColor: vec4f;
777
777
  #if defined(CLUSTLIGHT_BATCH) && CLUSTLIGHT_BATCH>0
778
778
  varying vViewDepth: f32;
779
779
  #endif
780
- `;r.ShaderStore.IncludesShadersStoreWGSL[i]||(r.ShaderStore.IncludesShadersStoreWGSL[i]=f),e.s(["pbrFragmentExtraDeclarationWGSL",0,{name:i,shader:f}],16555);let t="subSurfaceScatteringFunctions",n=`fn testLightingForSSS(diffusionProfile: f32)->bool
781
- {return diffusionProfile<1.;}`;r.ShaderStore.IncludesShadersStoreWGSL[t]||(r.ShaderStore.IncludesShadersStoreWGSL[t]=n),e.s(["subSurfaceScatteringFunctionsWGSL",0,{name:t,shader:n}],13001);let o="importanceSampling",a=`fn hemisphereCosSample(u: vec2f)->vec3f {var phi: f32=2.*PI*u.x;var cosTheta2: f32=1.-u.y;var cosTheta: f32=sqrt(cosTheta2);var sinTheta: f32=sqrt(1.-cosTheta2);return vec3f(sinTheta*cos(phi),sinTheta*sin(phi),cosTheta);}
780
+ `;r.ShaderStore.IncludesShadersStoreWGSL[i]||(r.ShaderStore.IncludesShadersStoreWGSL[i]=f),e.s(["pbrFragmentExtraDeclarationWGSL",0,{name:i,shader:f}],68300);let t="subSurfaceScatteringFunctions",n=`fn testLightingForSSS(diffusionProfile: f32)->bool
781
+ {return diffusionProfile<1.;}`;r.ShaderStore.IncludesShadersStoreWGSL[t]||(r.ShaderStore.IncludesShadersStoreWGSL[t]=n),e.s(["subSurfaceScatteringFunctionsWGSL",0,{name:t,shader:n}],85038);let o="importanceSampling",a=`fn hemisphereCosSample(u: vec2f)->vec3f {var phi: f32=2.*PI*u.x;var cosTheta2: f32=1.-u.y;var cosTheta: f32=sqrt(cosTheta2);var sinTheta: f32=sqrt(1.-cosTheta2);return vec3f(sinTheta*cos(phi),sinTheta*sin(phi),cosTheta);}
782
782
  fn hemisphereImportanceSampleDggx(u: vec2f,a: f32)->vec3f {var phi: f32=2.*PI*u.x;var cosTheta2: f32=(1.-u.y)/(1.+(a+1.)*((a-1.)*u.y));var cosTheta: f32=sqrt(cosTheta2);var sinTheta: f32=sqrt(1.-cosTheta2);return vec3f(sinTheta*cos(phi),sinTheta*sin(phi),cosTheta);}
783
783
  fn hemisphereImportanceSampleDggxAnisotropic(Xi: vec2f,alphaTangent: f32,alphaBitangent: f32)->vec3f
784
784
  {let alphaT: f32=max(alphaTangent,0.0001);let alphaB: f32=max(alphaBitangent,0.0001);var phi: f32=atan(alphaB/alphaT*tan(2.0f*PI*Xi.x));if (Xi.x>0.5) {phi+=PI; }
785
785
  let cosPhi: f32=cos(phi);let sinPhi: f32=sin(phi);let alpha2: f32=(cosPhi*cosPhi)/(alphaT*alphaT) +
786
786
  (sinPhi*sinPhi)/(alphaB*alphaB);let tanTheta2: f32=Xi.y/(1.0f-Xi.y)/alpha2;let cosTheta: f32=1.0f/sqrt(1.0f+tanTheta2);let sinTheta: f32=sqrt(max(0.0f,1.0f-cosTheta*cosTheta));return vec3f(sinTheta*cosPhi,sinTheta*sinPhi,cosTheta);}
787
787
  fn hemisphereImportanceSampleDCharlie(u: vec2f,a: f32)->vec3f {
788
- var phi: f32=2.*PI*u.x;var sinTheta: f32=pow(u.y,a/(2.*a+1.));var cosTheta: f32=sqrt(1.-sinTheta*sinTheta);return vec3f(sinTheta*cos(phi),sinTheta*sin(phi),cosTheta);}`;r.ShaderStore.IncludesShadersStoreWGSL[o]||(r.ShaderStore.IncludesShadersStoreWGSL[o]=a),e.s(["importanceSamplingWGSL",0,{name:o,shader:a}],43639);let c="pbrHelperFunctions",s=`#define MINIMUMVARIANCE 0.0005
788
+ var phi: f32=2.*PI*u.x;var sinTheta: f32=pow(u.y,a/(2.*a+1.));var cosTheta: f32=sqrt(1.-sinTheta*sinTheta);return vec3f(sinTheta*cos(phi),sinTheta*sin(phi),cosTheta);}`;r.ShaderStore.IncludesShadersStoreWGSL[o]||(r.ShaderStore.IncludesShadersStoreWGSL[o]=a),e.s(["importanceSamplingWGSL",0,{name:o,shader:a}],62456);let c="pbrHelperFunctions",s=`#define MINIMUMVARIANCE 0.0005
789
789
  #ifndef TEXRD_DEFINED
790
790
  fn TEXRD(t: texture_2d<f32>,ts: sampler,uv: vec2f)->vec4f {return textureSample(t,ts,uv);}
791
791
  #define TEXRD_DEFINED
@@ -823,7 +823,7 @@ clearCoatIntensity);return clearCoatAbsorption;}
823
823
  fn computeDefaultMicroSurface(microSurface: f32,reflectivityColor: vec3f)->f32
824
824
  {const kReflectivityNoAlphaWorkflow_SmoothnessMax: f32=0.95;var reflectivityLuminance: f32=getLuminance(reflectivityColor);var reflectivityLuma: f32=sqrt(reflectivityLuminance);var resultMicroSurface=reflectivityLuma*kReflectivityNoAlphaWorkflow_SmoothnessMax;return resultMicroSurface;}
825
825
  #endif
826
- `;r.ShaderStore.IncludesShadersStoreWGSL[c]||(r.ShaderStore.IncludesShadersStoreWGSL[c]=s),e.s(["pbrHelperFunctionsWGSL",0,{name:c,shader:s}],1397),e.i(81006);let l="pbrDirectLightingSetupFunctions",d=`struct preLightingInfo
826
+ `;r.ShaderStore.IncludesShadersStoreWGSL[c]||(r.ShaderStore.IncludesShadersStoreWGSL[c]=s),e.s(["pbrHelperFunctionsWGSL",0,{name:c,shader:s}],98408),e.i(50273);let l="pbrDirectLightingSetupFunctions",d=`struct preLightingInfo
827
827
  {lightOffset: vec3f,
828
828
  lightDistanceSquared: f32,
829
829
  lightDistance: f32,
@@ -868,7 +868,7 @@ result.areaLightFresnel=data.Fresnel;result.areaLightSpecular=data.Specular;
868
868
  #endif
869
869
  result.areaLightDiffuse=data.Diffuse;result.LdotV=0.;result.roughness=0.;result.diffuseRoughness=0.;result.surfaceAlbedo=vec3f(0.);return result;}
870
870
  #endif
871
- `;r.ShaderStore.IncludesShadersStoreWGSL[l]||(r.ShaderStore.IncludesShadersStoreWGSL[l]=d),e.s(["pbrDirectLightingSetupFunctionsWGSL",0,{name:l,shader:d}],80442);let v="pbrDirectLightingFalloffFunctions",u=`fn computeDistanceLightFalloff_Standard(lightOffset: vec3f,range: f32)->f32
871
+ `;r.ShaderStore.IncludesShadersStoreWGSL[l]||(r.ShaderStore.IncludesShadersStoreWGSL[l]=d),e.s(["pbrDirectLightingSetupFunctionsWGSL",0,{name:l,shader:d}],36244);let v="pbrDirectLightingFalloffFunctions",u=`fn computeDistanceLightFalloff_Standard(lightOffset: vec3f,range: f32)->f32
872
872
  {return max(0.,1.0-length(lightOffset)/range);}
873
873
  fn computeDistanceLightFalloff_Physical(lightDistanceSquared: f32)->f32
874
874
  {return 1.0/maxEps(lightDistanceSquared);}
@@ -904,7 +904,7 @@ return computeDirectionalLightFalloff_GLTF(lightDirection,directionToLightCenter
904
904
  #else
905
905
  return computeDirectionalLightFalloff_Standard(lightDirection,directionToLightCenterW,cosHalfAngle,exponent);
906
906
  #endif
907
- }`;r.ShaderStore.IncludesShadersStoreWGSL[v]||(r.ShaderStore.IncludesShadersStoreWGSL[v]=u),e.s(["pbrDirectLightingFalloffFunctionsWGSL",0,{name:v,shader:u}],53554);let m="hdrFilteringFunctions",p=`#ifdef NUM_SAMPLES
907
+ }`;r.ShaderStore.IncludesShadersStoreWGSL[v]||(r.ShaderStore.IncludesShadersStoreWGSL[v]=u),e.s(["pbrDirectLightingFalloffFunctionsWGSL",0,{name:v,shader:u}],1497);let m="hdrFilteringFunctions",p=`#ifdef NUM_SAMPLES
908
908
  #if NUM_SAMPLES>0
909
909
  fn radicalInverse_VdC(value: u32)->f32
910
910
  {var bits=(value<<16u) | (value>>16u);bits=((bits & 0x55555555u)<<1u) | ((bits & 0xAAAAAAAAu)>>1u);bits=((bits & 0x33333333u)<<2u) | ((bits & 0xCCCCCCCCu)>>2u);bits=((bits & 0x0F0F0F0Fu)<<4u) | ((bits & 0xF0F0F0F0u)>>4u);bits=((bits & 0x00FF00FFu)<<8u) | ((bits & 0xFF00FF00u)>>8u);return f32(bits)*2.3283064365386963e-10; }
@@ -1021,11 +1021,11 @@ result=result/weight;return result;}
1021
1021
  #endif
1022
1022
  #endif
1023
1023
  #endif
1024
- `;r.ShaderStore.IncludesShadersStoreWGSL[m]||(r.ShaderStore.IncludesShadersStoreWGSL[m]=p),e.s(["hdrFilteringFunctionsWGSL",0,{name:m,shader:p}],20503);let S="pbrBlockReflectance0",E=`var reflectanceF0: f32=reflectivityOut.reflectanceF0;var specularEnvironmentR0: vec3f=reflectivityOut.colorReflectanceF0;var specularEnvironmentR90: vec3f= reflectivityOut.reflectanceF90;
1024
+ `;r.ShaderStore.IncludesShadersStoreWGSL[m]||(r.ShaderStore.IncludesShadersStoreWGSL[m]=p),e.s(["hdrFilteringFunctionsWGSL",0,{name:m,shader:p}],38129);let S="pbrBlockReflectance0",E=`var reflectanceF0: f32=reflectivityOut.reflectanceF0;var specularEnvironmentR0: vec3f=reflectivityOut.colorReflectanceF0;var specularEnvironmentR90: vec3f= reflectivityOut.reflectanceF90;
1025
1025
  #ifdef ALPHAFRESNEL
1026
1026
  var reflectance90: f32=fresnelGrazingReflectance(reflectanceF0);specularEnvironmentR90=specularEnvironmentR90*reflectance90;
1027
1027
  #endif
1028
- `;r.ShaderStore.IncludesShadersStoreWGSL[S]||(r.ShaderStore.IncludesShadersStoreWGSL[S]=E),e.s(["pbrBlockReflectance0WGSL",0,{name:S,shader:E}],30997),e.i(69914);let h="pbrDirectLightingFunctions",g=`#define CLEARCOATREFLECTANCE90 1.0
1028
+ `;r.ShaderStore.IncludesShadersStoreWGSL[S]||(r.ShaderStore.IncludesShadersStoreWGSL[S]=E),e.s(["pbrBlockReflectance0WGSL",0,{name:S,shader:E}],73142),e.i(96429);let h="pbrDirectLightingFunctions",g=`#define CLEARCOATREFLECTANCE90 1.0
1029
1029
  struct lightingInfo
1030
1030
  {diffuse: vec3f,
1031
1031
  #ifdef SS_TRANSLUCENCY
@@ -1247,7 +1247,7 @@ result.sheen+=info.sheen;
1247
1247
  batchOffset+=CLUSTLIGHT_BATCH;}
1248
1248
  return result;}
1249
1249
  #endif
1250
- `;r.ShaderStore.IncludesShadersStoreWGSL[h]||(r.ShaderStore.IncludesShadersStoreWGSL[h]=g),e.s(["pbrDirectLightingFunctionsWGSL",0,{name:h,shader:g}],44953);let L="pbrBlockNormalGeometric",R=`var viewDirectionW: vec3f=normalize(scene.vEyePosition.xyz-input.vPositionW);
1250
+ `;r.ShaderStore.IncludesShadersStoreWGSL[h]||(r.ShaderStore.IncludesShadersStoreWGSL[h]=g),e.s(["pbrDirectLightingFunctionsWGSL",0,{name:h,shader:g}],41290);let L="pbrBlockNormalGeometric",R=`var viewDirectionW: vec3f=normalize(scene.vEyePosition.xyz-input.vPositionW);
1251
1251
  #ifdef NORMAL
1252
1252
  var normalW: vec3f=normalize(input.vNormalW);
1253
1253
  #else
@@ -1257,7 +1257,7 @@ var geometricNormalW: vec3f=normalW;
1257
1257
  #if defined(TWOSIDEDLIGHTING) && defined(NORMAL)
1258
1258
  geometricNormalW=select(-geometricNormalW,geometricNormalW,fragmentInputs.frontFacing);
1259
1259
  #endif
1260
- `;r.ShaderStore.IncludesShadersStoreWGSL[L]||(r.ShaderStore.IncludesShadersStoreWGSL[L]=R),e.s(["pbrBlockNormalGeometricWGSL",0,{name:L,shader:R}],17517);let I="pbrBlockImageProcessing",N=`#if defined(IMAGEPROCESSINGPOSTPROCESS) || defined(SS_SCATTERING)
1260
+ `;r.ShaderStore.IncludesShadersStoreWGSL[L]||(r.ShaderStore.IncludesShadersStoreWGSL[L]=R),e.s(["pbrBlockNormalGeometricWGSL",0,{name:L,shader:R}],10467);let I="pbrBlockImageProcessing",N=`#if defined(IMAGEPROCESSINGPOSTPROCESS) || defined(SS_SCATTERING)
1261
1261
  #if !defined(SKIPFINALCOLORCLAMP)
1262
1262
  finalColor=vec4f(clamp(finalColor.rgb,vec3f(0.),vec3f(30.0)),finalColor.a);
1263
1263
  #endif
@@ -1268,7 +1268,7 @@ finalColor=vec4f(finalColor.rgb,finalColor.a*mesh.visibility);
1268
1268
  #ifdef PREMULTIPLYALPHA
1269
1269
  finalColor=vec4f(finalColor.rgb*finalColor.a,finalColor.a);;
1270
1270
  #endif
1271
- `;r.ShaderStore.IncludesShadersStoreWGSL[I]||(r.ShaderStore.IncludesShadersStoreWGSL[I]=N),e.s(["pbrBlockImageProcessingWGSL",0,{name:I,shader:N}],15202);let C="pbrDebug",A=`#if DEBUGMODE>0
1271
+ `;r.ShaderStore.IncludesShadersStoreWGSL[I]||(r.ShaderStore.IncludesShadersStoreWGSL[I]=N),e.s(["pbrBlockImageProcessingWGSL",0,{name:I,shader:N}],62403);let C="pbrDebug",A=`#if DEBUGMODE>0
1272
1272
  if (input.vClipSpacePosition.x/input.vClipSpacePosition.w>=uniforms.vDebugMode.x) {var color: vec3f;
1273
1273
  #if DEBUGMODE==1
1274
1274
  color=fragmentInputs.vPositionW.rgb;
@@ -1452,4 +1452,4 @@ return fragmentOutputs;
1452
1452
  #endif
1453
1453
  }
1454
1454
  #endif
1455
- `;r.ShaderStore.IncludesShadersStoreWGSL[C]||(r.ShaderStore.IncludesShadersStoreWGSL[C]=A),e.s(["pbrDebugWGSL",0,{name:C,shader:A}],99505)}]);
1455
+ `;r.ShaderStore.IncludesShadersStoreWGSL[C]||(r.ShaderStore.IncludesShadersStoreWGSL[C]=A),e.s(["pbrDebugWGSL",0,{name:C,shader:A}],19368)}]);