@uptimizr/dashboard 0.1.2 → 0.2.0

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 (240) hide show
  1. package/out/404.html +1 -1
  2. package/out/__next.__PAGE__.txt +4 -4
  3. package/out/__next._full.txt +11 -11
  4. package/out/__next._head.txt +4 -4
  5. package/out/__next._index.txt +4 -4
  6. package/out/__next._tree.txt +2 -2
  7. package/out/_next/static/chunks/002cjeoit6-up.js +1 -0
  8. package/out/_next/static/chunks/02n1uiltexy3w.js +1 -0
  9. package/out/_next/static/chunks/03ab2khhe8-x5.js +1 -0
  10. package/out/_next/static/chunks/04_yytpc2paxy.js +1 -0
  11. package/out/_next/static/chunks/06qot1qvlsqaz.js +1 -0
  12. package/out/_next/static/chunks/07eeopuufsqp-.js +1501 -0
  13. package/out/_next/static/chunks/08a5xek662n8n.js +1 -0
  14. package/out/_next/static/chunks/08wuc9--s8zn_.js +1 -0
  15. package/out/_next/static/chunks/0927l-ygd5c8d.js +1 -0
  16. package/out/_next/static/chunks/09510356f0lad.js +1 -0
  17. package/out/_next/static/chunks/0_eu72k69lxj7.js +1 -0
  18. package/out/_next/static/chunks/0beajlqy8p8b5.js +1 -0
  19. package/out/_next/static/chunks/0c83pe1mpx456.js +1 -0
  20. package/out/_next/static/chunks/0echnagbkyx79.js +1198 -0
  21. package/out/_next/static/chunks/0eh1ml86u8dh7.js +1 -0
  22. package/out/_next/static/chunks/0fh-9h9ylxskr.js +674 -0
  23. package/out/_next/static/chunks/0fzmc1up21g1i.js +1 -0
  24. package/out/_next/static/chunks/0g_v2zswo4l6f.js +1 -0
  25. package/out/_next/static/chunks/0grlb9lo8e502.js +1 -0
  26. package/out/_next/static/chunks/0h22pg-0xrxnm.js +1 -0
  27. package/out/_next/static/chunks/0j6p1pmc14t96.js +1 -0
  28. package/out/_next/static/chunks/0j_6dx-sttgsy.js +1 -0
  29. package/out/_next/static/chunks/0j__xaq_8_di1.js +1 -0
  30. package/out/_next/static/chunks/0kfd-cvj5fvtz.js +1 -0
  31. package/out/_next/static/chunks/0o_mp98xzqfyf.js +1 -0
  32. package/out/_next/static/chunks/0otsec99kdkt7.js +213 -0
  33. package/out/_next/static/chunks/0ql-s-tsmel_u.js +151 -0
  34. package/out/_next/static/chunks/0r47gs_e93cka.js +1 -0
  35. package/out/_next/static/chunks/0sqys6o2pbe1q.js +1328 -0
  36. package/out/_next/static/chunks/0titqrn1qmcsv.js +1 -0
  37. package/out/_next/static/chunks/0tnlbw78tgaxp.js +4 -0
  38. package/out/_next/static/chunks/0tw4dyl-cp-hd.js +1 -0
  39. package/out/_next/static/chunks/0vbce-8omgurc.js +1 -0
  40. package/out/_next/static/chunks/0vfsg5byzep_0.js +1 -0
  41. package/out/_next/static/chunks/{0gv7mblzv3dl3.js → 0w8_1yjvol1f0.js} +20 -20
  42. package/out/_next/static/chunks/0xh144a5fz58h.js +1 -0
  43. package/out/_next/static/chunks/0xjltg_pph0c8.js +1 -0
  44. package/out/_next/static/chunks/0yeqgh0dnas8d.js +1 -0
  45. package/out/_next/static/chunks/101-7e_7up7rk.js +1 -0
  46. package/out/_next/static/chunks/128e51hj_04r0.js +1 -0
  47. package/out/_next/static/chunks/{10fnxpln_5xfd.js → 12kv810lohbsx.js} +2 -2
  48. package/out/_next/static/chunks/137xbvd4nd41j.js +3 -0
  49. package/out/_next/static/chunks/14bws-suyy5zu.js +1 -0
  50. package/out/_next/static/chunks/14ggsmqwej_tt.js +1656 -0
  51. package/out/_next/static/chunks/17genz6pkmty_.js +1 -0
  52. package/out/_next/static/chunks/17xd8hnazzr0g.js +1454 -0
  53. package/out/_next/static/chunks/18dczy9ylt2s_.js +1 -0
  54. package/out/_next/static/chunks/18xs_kvsaolb0.js +1 -0
  55. package/out/_next/static/chunks/19016f8-ry0z6.js +1 -0
  56. package/out/_next/static/chunks/1_6oejyxj39li.js +1 -0
  57. package/out/_next/static/chunks/1_aon8nz9p1fr.js +1 -0
  58. package/out/_next/static/chunks/1_qzlkuxukhpq.js +779 -0
  59. package/out/_next/static/chunks/1akaj5rhgitn3.js +1 -0
  60. package/out/_next/static/chunks/1bvl1ws7b_3gn.js +1 -0
  61. package/out/_next/static/chunks/1cdbk6kxyr1c9.js +1 -0
  62. package/out/_next/static/chunks/1fbjkk55uu4_g.js +1 -0
  63. package/out/_next/static/chunks/1furcfsgrw_3g.js +1 -0
  64. package/out/_next/static/chunks/1g0-f1g3gn_rs.js +1 -0
  65. package/out/_next/static/chunks/1g7emwu85bifo.js +557 -0
  66. package/out/_next/static/chunks/{37vzwr3ciejf1.js → 1gs-5722l4u59.js} +1 -1
  67. package/out/_next/static/chunks/1gt4kh0_xmigy.js +1 -0
  68. package/out/_next/static/chunks/1h8xzuuhhglu9.js +1 -0
  69. package/out/_next/static/chunks/1hatz-jlztrn0.js +1 -0
  70. package/out/_next/static/chunks/1iioifo7i0t0_.js +1 -0
  71. package/out/_next/static/chunks/{0impkpmxx3ttp.js → 1iiz7jqgj20z0.js} +1 -1
  72. package/out/_next/static/chunks/1kujmd5n0j9nk.js +1 -0
  73. package/out/_next/static/chunks/{2kazjq29jeamx.js → 1ltux4lwz7muf.js} +160 -372
  74. package/out/_next/static/chunks/1m_buecgcq67j.js +740 -0
  75. package/out/_next/static/chunks/1n9sy0yt5d2vq.js +1 -0
  76. package/out/_next/static/chunks/1p1gz6dseck--.js +1 -0
  77. package/out/_next/static/chunks/1p1xtsfwvpuqo.js +1 -0
  78. package/out/_next/static/chunks/1p8f6okk2ewbz.js +1 -0
  79. package/out/_next/static/chunks/1qg_etglhvp9h.js +740 -0
  80. package/out/_next/static/chunks/1th_t5ujeqlkf.js +1 -0
  81. package/out/_next/static/chunks/1thr-mdzbu96v.js +1 -0
  82. package/out/_next/static/chunks/1tta1a064979p.js +1 -0
  83. package/out/_next/static/chunks/1u_riwm0nfww7.js +1 -0
  84. package/out/_next/static/chunks/1ua15kzid0_8p.js +2560 -0
  85. package/out/_next/static/chunks/1uu-rt_8p1edp.js +2712 -0
  86. package/out/_next/static/chunks/1uu93wuxigx4k.js +1 -0
  87. package/out/_next/static/chunks/{1flb8adpj6_2o.js → 1xpwp4m1tqugp.js} +1 -1
  88. package/out/_next/static/chunks/1ynju1jqfrcv0.js +1 -0
  89. package/out/_next/static/chunks/1zfojlgb15okk.js +1 -0
  90. package/out/_next/static/chunks/1zj8x5wbgnzz-.js +1 -0
  91. package/out/_next/static/chunks/1zl6t15gh34nn.js +1 -0
  92. package/out/_next/static/chunks/{1thjncpj7u6pq.js → 223vrr_4sfhsj.js} +1 -1
  93. package/out/_next/static/chunks/22cr2b04btguf.js +1 -0
  94. package/out/_next/static/chunks/242xhzxxetctz.js +1 -0
  95. package/out/_next/static/chunks/24essz5mmvx-6.js +1 -0
  96. package/out/_next/static/chunks/256k1jw1m--l7.js +146 -0
  97. package/out/_next/static/chunks/259obyrpxcv6r.js +1 -0
  98. package/out/_next/static/chunks/26v9yqicofqba.js +1 -0
  99. package/out/_next/static/chunks/290d93hmm_e8b.js +1 -0
  100. package/out/_next/static/chunks/2_2fk7iddrs43.js +1 -0
  101. package/out/_next/static/chunks/{00k_j_r7bv_eb.js → 2bjlls8-qe05r.js} +9 -9
  102. package/out/_next/static/chunks/2ckd7f1wbfod-.js +1 -0
  103. package/out/_next/static/chunks/{163fa70v4mgxj.js → 2d6hru4qo23tt.js} +1 -1
  104. package/out/_next/static/chunks/2ejvntxtvf5o9.js +1 -0
  105. package/out/_next/static/chunks/2f7_3tzf7xhps.js +1 -0
  106. package/out/_next/static/chunks/2gxd_o1g89_bv.js +1 -0
  107. package/out/_next/static/chunks/2hd2txb4-m9k1.js +1 -0
  108. package/out/_next/static/chunks/2hpxou_cnp4f_.js +1 -0
  109. package/out/_next/static/chunks/2izioctrfc0s5.js +1 -0
  110. package/out/_next/static/chunks/2jhnk4h4n0udv.js +1 -0
  111. package/out/_next/static/chunks/2jpkhkk9zi8-f.js +1 -0
  112. package/out/_next/static/chunks/2kpet_l1kq2sx.js +1 -0
  113. package/out/_next/static/chunks/2mdbvf1b5h00_.css +3 -0
  114. package/out/_next/static/chunks/2nck5w4c7leb7.js +1 -0
  115. package/out/_next/static/chunks/2our10fwtj87e.js +1 -0
  116. package/out/_next/static/chunks/2qq3uzsbiicw3.js +1194 -0
  117. package/out/_next/static/chunks/2qqqpu0ahfdda.js +1 -0
  118. package/out/_next/static/chunks/2u-f7mmxvk8wj.js +1 -0
  119. package/out/_next/static/chunks/2ue1wo4ryk87z.js +1 -0
  120. package/out/_next/static/chunks/2uk-vwlxe9-xr.js +1 -0
  121. package/out/_next/static/chunks/2ur5-lxdvv1jm.js +1 -0
  122. package/out/_next/static/chunks/2veqsohwfhfqc.js +1 -0
  123. package/out/_next/static/chunks/2vqlv9wnewhu9.js +1 -0
  124. package/out/_next/static/chunks/{1zvc1tv--w8nn.js → 2wzshintp5lf8.js} +1 -1
  125. package/out/_next/static/chunks/2x-00glogc485.js +1 -0
  126. package/out/_next/static/chunks/2yfxy0f5fqs4o.js +1 -0
  127. package/out/_next/static/chunks/2z88mt3ixktu3.js +1 -0
  128. package/out/_next/static/chunks/2z_jn9ud28fk7.js +1 -0
  129. package/out/_next/static/chunks/3-eswqjobiqk1.js +1 -0
  130. package/out/_next/static/chunks/30-tbi7pys6fp.js +4 -0
  131. package/out/_next/static/chunks/30c-nsedy_ce0.js +1 -0
  132. package/out/_next/static/chunks/31u5lbu1vxznh.js +1 -0
  133. package/out/_next/static/chunks/{2feca0xcipcyt.js → 32ahba5ezp467.js} +156 -156
  134. package/out/_next/static/chunks/337hn35kts7ud.js +1 -0
  135. package/out/_next/static/chunks/33dgpebv-tf73.js +1 -0
  136. package/out/_next/static/chunks/36jkdhq6kb-cf.js +1 -0
  137. package/out/_next/static/chunks/37epa8fz59vba.js +1166 -0
  138. package/out/_next/static/chunks/3833xfnz0a-ub.js +1 -0
  139. package/out/_next/static/chunks/38awrh_qxn22k.js +1 -0
  140. package/out/_next/static/chunks/{0wrm9jr-9bw0e.js → 38x3c1ra5slhe.js} +383 -913
  141. package/out/_next/static/chunks/39idqlqlcp5b9.js +1 -0
  142. package/out/_next/static/chunks/{2a3spdq-m8drh.js → 3_gku1pwluoo0.js} +1 -1
  143. package/out/_next/static/chunks/3_mu-4rdjajna.js +1450 -0
  144. package/out/_next/static/chunks/3coacc4-g-g5c.js +1 -0
  145. package/out/_next/static/chunks/3e00fzdfkclzq.js +1 -0
  146. package/out/_next/static/chunks/3e8fmlq0k5wkg.js +1 -0
  147. package/out/_next/static/chunks/3e9tzyrt4_98z.js +1 -0
  148. package/out/_next/static/chunks/3edelqkq92pil.js +1 -0
  149. package/out/_next/static/chunks/3figbil1t4ssj.js +593 -0
  150. package/out/_next/static/chunks/3gimb3z_mteou.js +1 -0
  151. package/out/_next/static/chunks/{2p2vv6cc9i-3q.js → 3idaz_s77e-j_.js} +9 -9
  152. package/out/_next/static/chunks/3j-4wuhs5weba.js +1 -0
  153. package/out/_next/static/chunks/3jjfnwvybayy7.js +1 -0
  154. package/out/_next/static/chunks/3jwm5dfk_78gc.js +1 -0
  155. package/out/_next/static/chunks/3k9d4ylc3li2t.js +1352 -0
  156. package/out/_next/static/chunks/3l3_0ack3gy4k.js +1 -0
  157. package/out/_next/static/chunks/3lwhs5ja7tun3.js +1 -0
  158. package/out/_next/static/chunks/3m6nmp2dca6un.js +1342 -0
  159. package/out/_next/static/chunks/3mbnfpufs2-7e.js +7 -0
  160. package/out/_next/static/chunks/3mcd08gmt038z.js +1 -0
  161. package/out/_next/static/chunks/3mt5th7b1i_u9.js +1 -0
  162. package/out/_next/static/chunks/3ne77mjdz2y7o.js +1 -0
  163. package/out/_next/static/chunks/3puhrqtujktyv.js +1 -0
  164. package/out/_next/static/chunks/3rdifucupcgkg.js +1 -0
  165. package/out/_next/static/chunks/3riekaxl3uxfb.js +1195 -0
  166. package/out/_next/static/chunks/3sdoskq_buttj.js +1 -0
  167. package/out/_next/static/chunks/3tg-ma9tv9xu4.js +1 -0
  168. package/out/_next/static/chunks/3tm-pqpmq_ppw.js +1 -0
  169. package/out/_next/static/chunks/3w9go565cjhq3.js +1636 -0
  170. package/out/_next/static/chunks/3wi9gzq2mtr_q.js +8 -0
  171. package/out/_next/static/chunks/3xagd_2_9zft2.js +1 -0
  172. package/out/_next/static/chunks/3xsq_anpad-fb.js +1 -0
  173. package/out/_next/static/chunks/3ycv2qq7vpbua.js +1 -0
  174. package/out/_next/static/chunks/3z84au-mitjjw.js +1 -0
  175. package/out/_next/static/chunks/4030dhur2h70-.js +1 -0
  176. package/out/_next/static/chunks/40ffffml4h_3r.js +4 -0
  177. package/out/_next/static/chunks/{3-shckrcpvbxu.js → 41wt50z9tx9cx.js} +108 -711
  178. package/out/_next/static/chunks/431slrqh0wa0g.js +1 -0
  179. package/out/_next/static/chunks/43s_lbd1i2krj.js +1 -0
  180. package/out/_next/static/chunks/{0-2y-_oomza2l.js → 44nxswtahaq4w.js} +18 -18
  181. package/out/_next/static/chunks/45bwefvdpztfs.js +1 -0
  182. package/out/_next/static/chunks/{turbopack-0sgd6pfbe1fy6.js → turbopack-19105pdhzxp1x.js} +1 -1
  183. package/out/_not-found/__next._full.txt +9 -9
  184. package/out/_not-found/__next._head.txt +4 -4
  185. package/out/_not-found/__next._index.txt +4 -4
  186. package/out/_not-found/__next._not-found.__PAGE__.txt +2 -2
  187. package/out/_not-found/__next._not-found.txt +3 -3
  188. package/out/_not-found/__next._tree.txt +2 -2
  189. package/out/_not-found.html +1 -1
  190. package/out/_not-found.txt +9 -9
  191. package/out/index.html +1 -1
  192. package/out/index.txt +11 -11
  193. package/package.json +5 -4
  194. package/out/_next/static/chunks/068j6934u8j16.js +0 -1
  195. package/out/_next/static/chunks/09e4adtr6w0xe.js +0 -1
  196. package/out/_next/static/chunks/0_rf76jneiwal.js +0 -176
  197. package/out/_next/static/chunks/0aznt7717miff.js +0 -1
  198. package/out/_next/static/chunks/0cu-q5q3a7uf3.js +0 -1
  199. package/out/_next/static/chunks/0fskcfh9vbhtv.js +0 -1
  200. package/out/_next/static/chunks/0gg-ii7i6d_p6.js +0 -1
  201. package/out/_next/static/chunks/0tx1j_ghpz7rc.css +0 -3
  202. package/out/_next/static/chunks/0ufbyo1x3qkmo.js +0 -1
  203. package/out/_next/static/chunks/0wwcfw8i3j_zx.js +0 -1
  204. package/out/_next/static/chunks/0wwkrsvxwi57d.js +0 -1
  205. package/out/_next/static/chunks/0ys9-ozuluawt.js +0 -1
  206. package/out/_next/static/chunks/1-61zh4waha61.js +0 -1
  207. package/out/_next/static/chunks/10r_824wzt8hj.js +0 -1
  208. package/out/_next/static/chunks/123xxske5c9na.js +0 -1
  209. package/out/_next/static/chunks/13isnf0--pmx1.js +0 -1
  210. package/out/_next/static/chunks/157d9euci08yu.js +0 -1
  211. package/out/_next/static/chunks/18u58lorfahxi.js +0 -4
  212. package/out/_next/static/chunks/1_aahautsz2v_.js +0 -1
  213. package/out/_next/static/chunks/1o1d0p-v1z8ty.js +0 -1
  214. package/out/_next/static/chunks/1vdjn0pkoyypn.js +0 -1
  215. package/out/_next/static/chunks/1yehxf-fmeicg.js +0 -1
  216. package/out/_next/static/chunks/1zx2q-r32thv1.js +0 -4
  217. package/out/_next/static/chunks/2-sjjedfr0kfq.js +0 -1
  218. package/out/_next/static/chunks/25b9x-li-tvk2.js +0 -1
  219. package/out/_next/static/chunks/2aelw3far6rii.js +0 -1
  220. package/out/_next/static/chunks/2aor7m-wbis85.js +0 -1
  221. package/out/_next/static/chunks/2clzipqap01hp.js +0 -1
  222. package/out/_next/static/chunks/2fh-_9b6tqhvb.js +0 -1
  223. package/out/_next/static/chunks/2g5gecypj0rqe.js +0 -1
  224. package/out/_next/static/chunks/2szdcpl41-kzv.js +0 -1
  225. package/out/_next/static/chunks/2u6shh3oeycm-.js +0 -1
  226. package/out/_next/static/chunks/2unhhuv0arlcv.js +0 -1
  227. package/out/_next/static/chunks/2z5eqx5do5std.js +0 -1
  228. package/out/_next/static/chunks/310uz81hnnzsu.js +0 -1
  229. package/out/_next/static/chunks/3aqbf_wkg2sih.js +0 -3
  230. package/out/_next/static/chunks/3i3gbhccmhu7j.js +0 -210
  231. package/out/_next/static/chunks/3mqy-84_ul3t2.js +0 -1
  232. package/out/_next/static/chunks/3nz-dh9d7cehk.js +0 -1
  233. package/out/_next/static/chunks/3pufs8g4ui943.js +0 -1
  234. package/out/_next/static/chunks/3t06schbtqonl.js +0 -1
  235. package/out/_next/static/chunks/3v3-7fio3nw_t.js +0 -1
  236. package/out/_next/static/chunks/3v5ha25nxo43j.js +0 -1
  237. package/out/_next/static/chunks/3zskk1hxu3-_o.js +0 -1
  238. /package/out/_next/static/{vHD3x58R_2B6QWAhZXCg7 → M9ZSIaKJeBgkjz1qktYio}/_buildManifest.js +0 -0
  239. /package/out/_next/static/{vHD3x58R_2B6QWAhZXCg7 → M9ZSIaKJeBgkjz1qktYio}/_clientMiddlewareManifest.js +0 -0
  240. /package/out/_next/static/{vHD3x58R_2B6QWAhZXCg7 → M9ZSIaKJeBgkjz1qktYio}/_ssgManifest.js +0 -0
@@ -0,0 +1,557 @@
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,85668,e=>{"use strict";var i=e.i(12423);let r="sceneUboDeclaration",t=`layout(std140,column_major) uniform;uniform Scene {mat4 viewProjection;
2
+ #ifdef MULTIVIEW
3
+ mat4 viewProjectionR;
4
+ #endif
5
+ mat4 view;mat4 projection;vec4 vEyePosition;mat4 inverseProjection;};
6
+ `;i.ShaderStore.IncludesShadersStore[r]||(i.ShaderStore.IncludesShadersStore[r]=t),e.s(["sceneUboDeclaration",0,{name:r,shader:t}])},50438,e=>{"use strict";var i=e.i(12423);let r="harmonicsFunctions",t=`#ifdef USESPHERICALFROMREFLECTIONMAP
7
+ #ifdef SPHERICAL_HARMONICS
8
+ vec3 computeEnvironmentIrradiance(vec3 normal) {return vSphericalL00
9
+ + vSphericalL1_1*(normal.y)
10
+ + vSphericalL10*(normal.z)
11
+ + vSphericalL11*(normal.x)
12
+ + vSphericalL2_2*(normal.y*normal.x)
13
+ + vSphericalL2_1*(normal.y*normal.z)
14
+ + vSphericalL20*((3.0*normal.z*normal.z)-1.0)
15
+ + vSphericalL21*(normal.z*normal.x)
16
+ + vSphericalL22*(normal.x*normal.x-(normal.y*normal.y));}
17
+ #else
18
+ vec3 computeEnvironmentIrradiance(vec3 normal) {float Nx=normal.x;float Ny=normal.y;float Nz=normal.z;vec3 C1=vSphericalZZ.rgb;vec3 Cx=vSphericalX.rgb;vec3 Cy=vSphericalY.rgb;vec3 Cz=vSphericalZ.rgb;vec3 Cxx_zz=vSphericalXX_ZZ.rgb;vec3 Cyy_zz=vSphericalYY_ZZ.rgb;vec3 Cxy=vSphericalXY.rgb;vec3 Cyz=vSphericalYZ.rgb;vec3 Czx=vSphericalZX.rgb;vec3 a1=Cyy_zz*Ny+Cy;vec3 a2=Cyz*Nz+a1;vec3 b1=Czx*Nz+Cx;vec3 b2=Cxy*Ny+b1;vec3 b3=Cxx_zz*Nx+b2;vec3 t1=Cz *Nz+C1;vec3 t2=a2 *Ny+t1;vec3 t3=b3 *Nx+t2;return t3;}
19
+ #endif
20
+ #endif
21
+ `;i.ShaderStore.IncludesShadersStore[r]||(i.ShaderStore.IncludesShadersStore[r]=t),e.s(["harmonicsFunctions",0,{name:r,shader:t}])},39067,15420,e=>{"use strict";var i=e.i(12423);let r="bonesDeclaration",t=`#if NUM_BONE_INFLUENCERS>0
22
+ attribute vec4 matricesIndices;attribute vec4 matricesWeights;
23
+ #if NUM_BONE_INFLUENCERS>4
24
+ attribute vec4 matricesIndicesExtra;attribute vec4 matricesWeightsExtra;
25
+ #endif
26
+ #ifndef BAKED_VERTEX_ANIMATION_TEXTURE
27
+ #ifdef BONETEXTURE
28
+ uniform highp sampler2D boneSampler;uniform vec2 boneTextureInfo;
29
+ #else
30
+ uniform mat4 mBones[BonesPerMesh];
31
+ #endif
32
+ #ifdef BONES_VELOCITY_ENABLED
33
+ uniform mat4 mPreviousBones[BonesPerMesh];
34
+ #endif
35
+ #ifdef BONETEXTURE
36
+ #define inline
37
+ mat4 readMatrixFromRawSampler(sampler2D smp,float index)
38
+ {
39
+ #if defined(WEBGL2) || defined(WEBGPU)
40
+ int offset=int(index)*4;
41
+ int textureWidth=int(boneTextureInfo.x);int y=int(offset)/textureWidth;int x=int(offset) % textureWidth;vec4 m0=texelFetch(smp,ivec2(x+0,y),0);vec4 m1=texelFetch(smp,ivec2(x+1,y),0);vec4 m2=texelFetch(smp,ivec2(x+2,y),0);vec4 m3=texelFetch(smp,ivec2(x+3,y),0);return mat4(m0,m1,m2,m3);
42
+ #else
43
+ float offset=index*4.0;float y=floor(offset/boneTextureInfo.x);float x=offset-y*boneTextureInfo.x;float dy=1.0/boneTextureInfo.y;float dx=1.0/boneTextureInfo.x;vec4 m0=texture2D(smp,vec2(dx*(x+0.5),dy*(y+0.5)));vec4 m1=texture2D(smp,vec2(dx*(x+1.5),dy*(y+0.5)));vec4 m2=texture2D(smp,vec2(dx*(x+2.5),dy*(y+0.5)));vec4 m3=texture2D(smp,vec2(dx*(x+3.5),dy*(y+0.5)));
44
+ return mat4(m0,m1,m2,m3);
45
+ #endif
46
+ }
47
+ #endif
48
+ #endif
49
+ #endif
50
+ `;i.ShaderStore.IncludesShadersStore[r]||(i.ShaderStore.IncludesShadersStore[r]=t),e.s(["bonesDeclaration",0,{name:r,shader:t}],39067);let n="bakedVertexAnimationDeclaration",a=`#ifdef BAKED_VERTEX_ANIMATION_TEXTURE
51
+ uniform float bakedVertexAnimationTime;
52
+ #if !defined(WEBGL2) && !defined(WEBGPU)
53
+ uniform vec2 bakedVertexAnimationTextureSizeInverted;
54
+ #endif
55
+ uniform vec4 bakedVertexAnimationSettings;uniform sampler2D bakedVertexAnimationTexture;
56
+ #ifdef INSTANCES
57
+ attribute vec4 bakedVertexAnimationSettingsInstanced;
58
+ #endif
59
+ #define inline
60
+ mat4 readMatrixFromRawSamplerVAT(sampler2D smp,float index,float frame)
61
+ {
62
+ #if defined(WEBGL2) || defined(WEBGPU)
63
+ int offset=int(index)*4;int frameUV=int(frame);vec4 m0=texelFetch(smp,ivec2(offset+0,frameUV),0);vec4 m1=texelFetch(smp,ivec2(offset+1,frameUV),0);vec4 m2=texelFetch(smp,ivec2(offset+2,frameUV),0);vec4 m3=texelFetch(smp,ivec2(offset+3,frameUV),0);return mat4(m0,m1,m2,m3);
64
+ #else
65
+ float offset=index*4.0;float frameUV=(frame+0.5)*bakedVertexAnimationTextureSizeInverted.y;float dx=bakedVertexAnimationTextureSizeInverted.x;vec4 m0=texture2D(smp,vec2(dx*(offset+0.5),frameUV));vec4 m1=texture2D(smp,vec2(dx*(offset+1.5),frameUV));vec4 m2=texture2D(smp,vec2(dx*(offset+2.5),frameUV));vec4 m3=texture2D(smp,vec2(dx*(offset+3.5),frameUV));return mat4(m0,m1,m2,m3);
66
+ #endif
67
+ }
68
+ #endif
69
+ `;i.ShaderStore.IncludesShadersStore[n]||(i.ShaderStore.IncludesShadersStore[n]=a),e.s(["bakedVertexAnimationDeclaration",0,{name:n,shader:a}],15420)},85863,e=>{"use strict";var i=e.i(12423);let r="instancesDeclaration",t=`#ifdef INSTANCES
70
+ attribute vec4 world0;attribute vec4 world1;attribute vec4 world2;attribute vec4 world3;
71
+ #ifdef INSTANCESCOLOR
72
+ attribute vec4 instanceColor;
73
+ #endif
74
+ #if defined(THIN_INSTANCES) && !defined(WORLD_UBO)
75
+ uniform mat4 world;
76
+ #endif
77
+ #if defined(VELOCITY) || defined(PREPASS_VELOCITY) || defined(PREPASS_VELOCITY_LINEAR) || defined(VELOCITY_LINEAR)
78
+ attribute vec4 previousWorld0;attribute vec4 previousWorld1;attribute vec4 previousWorld2;attribute vec4 previousWorld3;
79
+ #ifdef THIN_INSTANCES
80
+ uniform mat4 previousWorld;
81
+ #endif
82
+ #endif
83
+ #else
84
+ #if !defined(WORLD_UBO)
85
+ uniform mat4 world;
86
+ #endif
87
+ #if defined(VELOCITY) || defined(PREPASS_VELOCITY) || defined(PREPASS_VELOCITY_LINEAR) || defined(VELOCITY_LINEAR)
88
+ uniform mat4 previousWorld;
89
+ #endif
90
+ #endif
91
+ `;i.ShaderStore.IncludesShadersStore[r]||(i.ShaderStore.IncludesShadersStore[r]=t),e.s(["instancesDeclaration",0,{name:r,shader:t}])},42927,e=>{"use strict";var i=e.i(12423);let r="clipPlaneVertexDeclaration",t=`#ifdef CLIPPLANE
92
+ uniform vec4 vClipPlane;varying float fClipDistance;
93
+ #endif
94
+ #ifdef CLIPPLANE2
95
+ uniform vec4 vClipPlane2;varying float fClipDistance2;
96
+ #endif
97
+ #ifdef CLIPPLANE3
98
+ uniform vec4 vClipPlane3;varying float fClipDistance3;
99
+ #endif
100
+ #ifdef CLIPPLANE4
101
+ uniform vec4 vClipPlane4;varying float fClipDistance4;
102
+ #endif
103
+ #ifdef CLIPPLANE5
104
+ uniform vec4 vClipPlane5;varying float fClipDistance5;
105
+ #endif
106
+ #ifdef CLIPPLANE6
107
+ uniform vec4 vClipPlane6;varying float fClipDistance6;
108
+ #endif
109
+ `;i.ShaderStore.IncludesShadersStore[r]||(i.ShaderStore.IncludesShadersStore[r]=t),e.s(["clipPlaneVertexDeclaration",0,{name:r,shader:t}])},40805,30667,76955,16607,e=>{"use strict";var i=e.i(12423);let r="instancesVertex",t=`#ifdef INSTANCES
110
+ mat4 finalWorld=mat4(world0,world1,world2,world3);
111
+ #if defined(PREPASS_VELOCITY) || defined(VELOCITY) || defined(PREPASS_VELOCITY_LINEAR) || defined(VELOCITY_LINEAR)
112
+ mat4 finalPreviousWorld=mat4(previousWorld0,previousWorld1,
113
+ previousWorld2,previousWorld3);
114
+ #endif
115
+ #ifdef THIN_INSTANCES
116
+ finalWorld=world*finalWorld;
117
+ #if defined(PREPASS_VELOCITY) || defined(VELOCITY) || defined(PREPASS_VELOCITY_LINEAR) || defined(VELOCITY_LINEAR)
118
+ finalPreviousWorld=previousWorld*finalPreviousWorld;
119
+ #endif
120
+ #endif
121
+ #else
122
+ mat4 finalWorld=world;
123
+ #if defined(PREPASS_VELOCITY) || defined(VELOCITY) || defined(PREPASS_VELOCITY_LINEAR) || defined(VELOCITY_LINEAR)
124
+ mat4 finalPreviousWorld=previousWorld;
125
+ #endif
126
+ #endif
127
+ `;i.ShaderStore.IncludesShadersStore[r]||(i.ShaderStore.IncludesShadersStore[r]=t),e.s(["instancesVertex",0,{name:r,shader:t}],40805);let n="bonesVertex",a=`#ifndef BAKED_VERTEX_ANIMATION_TEXTURE
128
+ #if NUM_BONE_INFLUENCERS>0
129
+ mat4 influence;
130
+ #ifdef BONETEXTURE
131
+ influence=readMatrixFromRawSampler(boneSampler,matricesIndices[0])*matricesWeights[0];
132
+ #if NUM_BONE_INFLUENCERS>1
133
+ influence+=readMatrixFromRawSampler(boneSampler,matricesIndices[1])*matricesWeights[1];
134
+ #endif
135
+ #if NUM_BONE_INFLUENCERS>2
136
+ influence+=readMatrixFromRawSampler(boneSampler,matricesIndices[2])*matricesWeights[2];
137
+ #endif
138
+ #if NUM_BONE_INFLUENCERS>3
139
+ influence+=readMatrixFromRawSampler(boneSampler,matricesIndices[3])*matricesWeights[3];
140
+ #endif
141
+ #if NUM_BONE_INFLUENCERS>4
142
+ influence+=readMatrixFromRawSampler(boneSampler,matricesIndicesExtra[0])*matricesWeightsExtra[0];
143
+ #endif
144
+ #if NUM_BONE_INFLUENCERS>5
145
+ influence+=readMatrixFromRawSampler(boneSampler,matricesIndicesExtra[1])*matricesWeightsExtra[1];
146
+ #endif
147
+ #if NUM_BONE_INFLUENCERS>6
148
+ influence+=readMatrixFromRawSampler(boneSampler,matricesIndicesExtra[2])*matricesWeightsExtra[2];
149
+ #endif
150
+ #if NUM_BONE_INFLUENCERS>7
151
+ influence+=readMatrixFromRawSampler(boneSampler,matricesIndicesExtra[3])*matricesWeightsExtra[3];
152
+ #endif
153
+ #else
154
+ influence=mBones[int(matricesIndices[0])]*matricesWeights[0];
155
+ #if NUM_BONE_INFLUENCERS>1
156
+ influence+=mBones[int(matricesIndices[1])]*matricesWeights[1];
157
+ #endif
158
+ #if NUM_BONE_INFLUENCERS>2
159
+ influence+=mBones[int(matricesIndices[2])]*matricesWeights[2];
160
+ #endif
161
+ #if NUM_BONE_INFLUENCERS>3
162
+ influence+=mBones[int(matricesIndices[3])]*matricesWeights[3];
163
+ #endif
164
+ #if NUM_BONE_INFLUENCERS>4
165
+ influence+=mBones[int(matricesIndicesExtra[0])]*matricesWeightsExtra[0];
166
+ #endif
167
+ #if NUM_BONE_INFLUENCERS>5
168
+ influence+=mBones[int(matricesIndicesExtra[1])]*matricesWeightsExtra[1];
169
+ #endif
170
+ #if NUM_BONE_INFLUENCERS>6
171
+ influence+=mBones[int(matricesIndicesExtra[2])]*matricesWeightsExtra[2];
172
+ #endif
173
+ #if NUM_BONE_INFLUENCERS>7
174
+ influence+=mBones[int(matricesIndicesExtra[3])]*matricesWeightsExtra[3];
175
+ #endif
176
+ #endif
177
+ finalWorld=finalWorld*influence;
178
+ #endif
179
+ #endif
180
+ `;i.ShaderStore.IncludesShadersStore[n]||(i.ShaderStore.IncludesShadersStore[n]=a),e.s(["bonesVertex",0,{name:n,shader:a}],30667);let d="bakedVertexAnimation",f=`#ifdef BAKED_VERTEX_ANIMATION_TEXTURE
181
+ {
182
+ #ifdef INSTANCES
183
+ #define BVASNAME bakedVertexAnimationSettingsInstanced
184
+ #else
185
+ #define BVASNAME bakedVertexAnimationSettings
186
+ #endif
187
+ float VATStartFrame=BVASNAME.x;float VATEndFrame=BVASNAME.y;float VATOffsetFrame=BVASNAME.z;float VATSpeed=BVASNAME.w;float totalFrames=VATEndFrame-VATStartFrame+1.0;float time=bakedVertexAnimationTime*VATSpeed/totalFrames;float frameCorrection=time<1.0 ? 0.0 : 1.0;float numOfFrames=totalFrames-frameCorrection;float VATFrameNum=fract(time)*numOfFrames;VATFrameNum=mod(VATFrameNum+VATOffsetFrame,numOfFrames);VATFrameNum=floor(VATFrameNum);VATFrameNum+=VATStartFrame+frameCorrection;mat4 VATInfluence;VATInfluence=readMatrixFromRawSamplerVAT(bakedVertexAnimationTexture,matricesIndices[0],VATFrameNum)*matricesWeights[0];
188
+ #if NUM_BONE_INFLUENCERS>1
189
+ VATInfluence+=readMatrixFromRawSamplerVAT(bakedVertexAnimationTexture,matricesIndices[1],VATFrameNum)*matricesWeights[1];
190
+ #endif
191
+ #if NUM_BONE_INFLUENCERS>2
192
+ VATInfluence+=readMatrixFromRawSamplerVAT(bakedVertexAnimationTexture,matricesIndices[2],VATFrameNum)*matricesWeights[2];
193
+ #endif
194
+ #if NUM_BONE_INFLUENCERS>3
195
+ VATInfluence+=readMatrixFromRawSamplerVAT(bakedVertexAnimationTexture,matricesIndices[3],VATFrameNum)*matricesWeights[3];
196
+ #endif
197
+ #if NUM_BONE_INFLUENCERS>4
198
+ VATInfluence+=readMatrixFromRawSamplerVAT(bakedVertexAnimationTexture,matricesIndicesExtra[0],VATFrameNum)*matricesWeightsExtra[0];
199
+ #endif
200
+ #if NUM_BONE_INFLUENCERS>5
201
+ VATInfluence+=readMatrixFromRawSamplerVAT(bakedVertexAnimationTexture,matricesIndicesExtra[1],VATFrameNum)*matricesWeightsExtra[1];
202
+ #endif
203
+ #if NUM_BONE_INFLUENCERS>6
204
+ VATInfluence+=readMatrixFromRawSamplerVAT(bakedVertexAnimationTexture,matricesIndicesExtra[2],VATFrameNum)*matricesWeightsExtra[2];
205
+ #endif
206
+ #if NUM_BONE_INFLUENCERS>7
207
+ VATInfluence+=readMatrixFromRawSamplerVAT(bakedVertexAnimationTexture,matricesIndicesExtra[3],VATFrameNum)*matricesWeightsExtra[3];
208
+ #endif
209
+ finalWorld=finalWorld*VATInfluence;}
210
+ #endif
211
+ `;i.ShaderStore.IncludesShadersStore[d]||(i.ShaderStore.IncludesShadersStore[d]=f),e.s(["bakedVertexAnimation",0,{name:d,shader:f}],76955);let o="clipPlaneVertex",c=`#ifdef CLIPPLANE
212
+ fClipDistance=dot(worldPos,vClipPlane);
213
+ #endif
214
+ #ifdef CLIPPLANE2
215
+ fClipDistance2=dot(worldPos,vClipPlane2);
216
+ #endif
217
+ #ifdef CLIPPLANE3
218
+ fClipDistance3=dot(worldPos,vClipPlane3);
219
+ #endif
220
+ #ifdef CLIPPLANE4
221
+ fClipDistance4=dot(worldPos,vClipPlane4);
222
+ #endif
223
+ #ifdef CLIPPLANE5
224
+ fClipDistance5=dot(worldPos,vClipPlane5);
225
+ #endif
226
+ #ifdef CLIPPLANE6
227
+ fClipDistance6=dot(worldPos,vClipPlane6);
228
+ #endif
229
+ `;i.ShaderStore.IncludesShadersStore[o]||(i.ShaderStore.IncludesShadersStore[o]=c),e.s(["clipPlaneVertex",0,{name:o,shader:c}],16607)},32936,32235,61193,99838,e=>{"use strict";var i=e.i(12423);let r="morphTargetsVertexGlobalDeclaration",t=`#ifdef MORPHTARGETS
230
+ uniform float morphTargetInfluences[NUM_MORPH_INFLUENCERS];
231
+ #ifdef MORPHTARGETS_TEXTURE
232
+ uniform float morphTargetTextureIndices[NUM_MORPH_INFLUENCERS];uniform vec3 morphTargetTextureInfo;uniform highp sampler2DArray morphTargets;vec3 readVector3FromRawSampler(int targetIndex,float vertexIndex)
233
+ {
234
+ #if defined(WEBGL2) || defined(WEBGPU)
235
+ int textureWidth=int(morphTargetTextureInfo.y);int y=int(vertexIndex)/textureWidth;int x=int(vertexIndex) % textureWidth;return texelFetch(morphTargets,ivec3(x,y,int(morphTargetTextureIndices[targetIndex])),0).xyz;
236
+ #else
237
+ float y=floor(vertexIndex/morphTargetTextureInfo.y);float x=vertexIndex-y*morphTargetTextureInfo.y;vec3 textureUV=vec3((x+0.5)/morphTargetTextureInfo.y,(y+0.5)/morphTargetTextureInfo.z,morphTargetTextureIndices[targetIndex]);return texture(morphTargets,textureUV).xyz;
238
+ #endif
239
+ }
240
+ vec4 readVector4FromRawSampler(int targetIndex,float vertexIndex)
241
+ {
242
+ #if defined(WEBGL2) || defined(WEBGPU)
243
+ int textureWidth=int(morphTargetTextureInfo.y);int y=int(vertexIndex)/textureWidth;int x=int(vertexIndex) % textureWidth;return texelFetch(morphTargets,ivec3(x,y,int(morphTargetTextureIndices[targetIndex])),0);
244
+ #else
245
+ float y=floor(vertexIndex/morphTargetTextureInfo.y);float x=vertexIndex-y*morphTargetTextureInfo.y;vec3 textureUV=vec3((x+0.5)/morphTargetTextureInfo.y,(y+0.5)/morphTargetTextureInfo.z,morphTargetTextureIndices[targetIndex]);return texture(morphTargets,textureUV);
246
+ #endif
247
+ }
248
+ #endif
249
+ #endif
250
+ `;i.ShaderStore.IncludesShadersStore[r]||(i.ShaderStore.IncludesShadersStore[r]=t),e.s(["morphTargetsVertexGlobalDeclaration",0,{name:r,shader:t}],32936);let n="morphTargetsVertexDeclaration",a=`#ifdef MORPHTARGETS
251
+ #ifndef MORPHTARGETS_TEXTURE
252
+ #ifdef MORPHTARGETS_POSITION
253
+ attribute vec3 position{X};
254
+ #endif
255
+ #ifdef MORPHTARGETS_NORMAL
256
+ attribute vec3 normal{X};
257
+ #endif
258
+ #ifdef MORPHTARGETS_TANGENT
259
+ attribute vec3 tangent{X};
260
+ #endif
261
+ #ifdef MORPHTARGETS_UV
262
+ attribute vec2 uv_{X};
263
+ #endif
264
+ #ifdef MORPHTARGETS_UV2
265
+ attribute vec2 uv2_{X};
266
+ #endif
267
+ #ifdef MORPHTARGETS_COLOR
268
+ attribute vec4 color{X};
269
+ #endif
270
+ #elif {X}==0
271
+ uniform float morphTargetCount;
272
+ #endif
273
+ #endif
274
+ `;i.ShaderStore.IncludesShadersStore[n]||(i.ShaderStore.IncludesShadersStore[n]=a),e.s(["morphTargetsVertexDeclaration",0,{name:n,shader:a}],32235);let d="morphTargetsVertexGlobal",f=`#ifdef MORPHTARGETS
275
+ #ifdef MORPHTARGETS_TEXTURE
276
+ float vertexID;
277
+ #endif
278
+ #endif
279
+ `;i.ShaderStore.IncludesShadersStore[d]||(i.ShaderStore.IncludesShadersStore[d]=f),e.s(["morphTargetsVertexGlobal",0,{name:d,shader:f}],61193);let o="morphTargetsVertex",c=`#ifdef MORPHTARGETS
280
+ #ifdef MORPHTARGETS_TEXTURE
281
+ #if {X}==0
282
+ for (int i=0; i<NUM_MORPH_INFLUENCERS; i++) {if (float(i)>=morphTargetCount) break;vertexID=float(gl_VertexID)*morphTargetTextureInfo.x;
283
+ #ifdef MORPHTARGETS_POSITION
284
+ positionUpdated+=(readVector3FromRawSampler(i,vertexID)-position)*morphTargetInfluences[i];
285
+ #endif
286
+ #ifdef MORPHTARGETTEXTURE_HASPOSITIONS
287
+ vertexID+=1.0;
288
+ #endif
289
+ #ifdef MORPHTARGETS_NORMAL
290
+ normalUpdated+=(readVector3FromRawSampler(i,vertexID) -normal)*morphTargetInfluences[i];
291
+ #endif
292
+ #ifdef MORPHTARGETTEXTURE_HASNORMALS
293
+ vertexID+=1.0;
294
+ #endif
295
+ #ifdef MORPHTARGETS_UV
296
+ uvUpdated+=(readVector3FromRawSampler(i,vertexID).xy-uv)*morphTargetInfluences[i];
297
+ #endif
298
+ #ifdef MORPHTARGETTEXTURE_HASUVS
299
+ vertexID+=1.0;
300
+ #endif
301
+ #ifdef MORPHTARGETS_TANGENT
302
+ tangentUpdated.xyz+=(readVector3FromRawSampler(i,vertexID) -tangent.xyz)*morphTargetInfluences[i];
303
+ #endif
304
+ #ifdef MORPHTARGETTEXTURE_HASTANGENTS
305
+ vertexID+=1.0;
306
+ #endif
307
+ #ifdef MORPHTARGETS_UV2
308
+ uv2Updated+=(readVector3FromRawSampler(i,vertexID).xy-uv2)*morphTargetInfluences[i];
309
+ #endif
310
+ #ifdef MORPHTARGETTEXTURE_HASUV2S
311
+ vertexID+=1.0;
312
+ #endif
313
+ #ifdef MORPHTARGETS_COLOR
314
+ colorUpdated+=(readVector4FromRawSampler(i,vertexID)-color)*morphTargetInfluences[i];
315
+ #endif
316
+ }
317
+ #endif
318
+ #else
319
+ #ifdef MORPHTARGETS_POSITION
320
+ positionUpdated+=(position{X}-position)*morphTargetInfluences[{X}];
321
+ #endif
322
+ #ifdef MORPHTARGETS_NORMAL
323
+ normalUpdated+=(normal{X}-normal)*morphTargetInfluences[{X}];
324
+ #endif
325
+ #ifdef MORPHTARGETS_TANGENT
326
+ tangentUpdated.xyz+=(tangent{X}-tangent.xyz)*morphTargetInfluences[{X}];
327
+ #endif
328
+ #ifdef MORPHTARGETS_UV
329
+ uvUpdated+=(uv_{X}-uv)*morphTargetInfluences[{X}];
330
+ #endif
331
+ #ifdef MORPHTARGETS_UV2
332
+ uv2Updated+=(uv2_{X}-uv2)*morphTargetInfluences[{X}];
333
+ #endif
334
+ #ifdef MORPHTARGETS_COLOR
335
+ colorUpdated+=(color{X}-color)*morphTargetInfluences[{X}];
336
+ #endif
337
+ #endif
338
+ #endif
339
+ `;i.ShaderStore.IncludesShadersStore[o]||(i.ShaderStore.IncludesShadersStore[o]=c),e.s(["morphTargetsVertex",0,{name:o,shader:c}],99838)},50503,e=>{"use strict";var i=e.i(12423);let r="bumpVertex",t=`#if defined(BUMP) || defined(PARALLAX) || defined(CLEARCOAT_BUMP) || defined(ANISOTROPIC)
340
+ #if defined(TANGENT) && defined(NORMAL)
341
+ vec3 tbnNormal=normalize(normalUpdated);vec3 tbnTangent=normalize(tangentUpdated.xyz);vec3 tbnBitangent=cross(tbnNormal,tbnTangent)*tangentUpdated.w;vTBN=mat3(finalWorld)*mat3(tbnTangent,tbnBitangent,tbnNormal);
342
+ #endif
343
+ #endif
344
+ `;i.ShaderStore.IncludesShadersStore[r]||(i.ShaderStore.IncludesShadersStore[r]=t),e.s(["bumpVertex",0,{name:r,shader:t}])},65966,e=>{"use strict";var i=e.i(12423),r=e.i(39067),t=e.i(15420),n=e.i(32936),a=e.i(32235),d=e.i(85863);let f="geometryVertexDeclaration",o="uniform mat4 viewProjection;uniform mat4 view;";i.ShaderStore.IncludesShadersStore[f]||(i.ShaderStore.IncludesShadersStore[f]=o);var c=e.i(85668);let s="geometryUboDeclaration",l=`#include<sceneUboDeclaration>
345
+ `;i.ShaderStore.IncludesShadersStore[s]||(i.ShaderStore.IncludesShadersStore[s]=l);var m=e.i(42927),v=e.i(50438),u=e.i(61193),S=e.i(99838),E=e.i(40805),T=e.i(30667),I=e.i(76955),x=e.i(16607),p=e.i(50503);let N="geometryVertexShader",h=`precision highp float;
346
+ #include<bonesDeclaration>
347
+ #include<bakedVertexAnimationDeclaration>
348
+ #include<morphTargetsVertexGlobalDeclaration>
349
+ #include<morphTargetsVertexDeclaration>[0..maxSimultaneousMorphTargets]
350
+ #include<instancesDeclaration>
351
+ #include<__decl__geometryVertex>
352
+ #include<clipPlaneVertexDeclaration>
353
+ #ifdef IRRADIANCE
354
+ #ifdef REFLECTION
355
+ uniform mat4 reflectionMatrix;uniform vec2 vReflectionInfos;uniform vec3 vReflectionColor;
356
+ #ifdef USESPHERICALFROMREFLECTIONMAP
357
+ varying vec3 vEnvironmentIrradiance;
358
+ #ifdef SPHERICAL_HARMONICS
359
+ uniform vec3 vSphericalL00;uniform vec3 vSphericalL1_1;uniform vec3 vSphericalL10;uniform vec3 vSphericalL11;uniform vec3 vSphericalL2_2;uniform vec3 vSphericalL2_1;uniform vec3 vSphericalL20;uniform vec3 vSphericalL21;uniform vec3 vSphericalL22;
360
+ #else
361
+ uniform vec3 vSphericalX;uniform vec3 vSphericalY;uniform vec3 vSphericalZ;uniform vec3 vSphericalXX_ZZ;uniform vec3 vSphericalYY_ZZ;uniform vec3 vSphericalZZ;uniform vec3 vSphericalXY;uniform vec3 vSphericalYZ;uniform vec3 vSphericalZX;
362
+ #endif
363
+ #include<harmonicsFunctions>
364
+ #endif
365
+ #endif
366
+ #endif
367
+ attribute vec3 position;
368
+ #ifdef HAS_NORMAL_ATTRIBUTE
369
+ attribute vec3 normal;
370
+ #endif
371
+ #ifdef NEED_UV
372
+ varying vec2 vUV;
373
+ #ifdef ALPHATEST
374
+ uniform mat4 diffuseMatrix;
375
+ #endif
376
+ #ifdef BUMP
377
+ uniform mat4 bumpMatrix;varying vec2 vBumpUV;
378
+ #endif
379
+ #ifdef REFLECTIVITY
380
+ uniform mat4 reflectivityMatrix;uniform mat4 albedoMatrix;varying vec2 vReflectivityUV;varying vec2 vAlbedoUV;
381
+ #endif
382
+ #ifdef METALLIC_TEXTURE
383
+ varying vec2 vMetallicUV;uniform mat4 metallicMatrix;
384
+ #endif
385
+ #ifdef ROUGHNESS_TEXTURE
386
+ varying vec2 vRoughnessUV;uniform mat4 roughnessMatrix;
387
+ #endif
388
+ #ifdef SUBSURFACE_WEIGHT
389
+ varying vec2 vSubsurfaceWeightUV;uniform mat4 subsurfaceWeightMatrix;
390
+ #endif
391
+ #ifdef TRANSMISSION_WEIGHT
392
+ varying vec2 vTransmissionWeightUV;uniform mat4 transmissionWeightMatrix;
393
+ #endif
394
+ #ifdef UV1
395
+ attribute vec2 uv;
396
+ #endif
397
+ #ifdef UV2
398
+ attribute vec2 uv2;
399
+ #endif
400
+ #endif
401
+ #ifdef BUMP
402
+ varying mat4 vWorldView;
403
+ #endif
404
+ #ifdef BUMP
405
+ varying vec3 vNormalW;
406
+ #else
407
+ varying vec3 vNormalV;
408
+ #endif
409
+ varying vec4 vViewPos;
410
+ #if defined(POSITION) || defined(BUMP) || defined(IRRADIANCE)
411
+ varying vec3 vPositionW;
412
+ #endif
413
+ #if defined(VELOCITY) || defined(VELOCITY_LINEAR)
414
+ uniform mat4 previousViewProjection;varying vec4 vCurrentPosition;varying vec4 vPreviousPosition;
415
+ #endif
416
+ #define CUSTOM_VERTEX_DEFINITIONS
417
+ void main(void)
418
+ {vec3 positionUpdated=position;
419
+ #ifdef HAS_NORMAL_ATTRIBUTE
420
+ vec3 normalUpdated=normal;
421
+ #else
422
+ vec3 normalUpdated=vec3(0.0,0.0,0.0);
423
+ #endif
424
+ #ifdef UV1
425
+ vec2 uvUpdated=uv;
426
+ #endif
427
+ #ifdef UV2
428
+ vec2 uv2Updated=uv2;
429
+ #endif
430
+ #include<morphTargetsVertexGlobal>
431
+ #include<morphTargetsVertex>[0..maxSimultaneousMorphTargets]
432
+ #include<instancesVertex>
433
+ #if (defined(VELOCITY) || defined(VELOCITY_LINEAR)) && !defined(BONES_VELOCITY_ENABLED)
434
+ vCurrentPosition=viewProjection*finalWorld*vec4(positionUpdated,1.0);vPreviousPosition=previousViewProjection*finalPreviousWorld*vec4(positionUpdated,1.0);
435
+ #endif
436
+ #include<bonesVertex>
437
+ #include<bakedVertexAnimation>
438
+ vec4 worldPos=vec4(finalWorld*vec4(positionUpdated,1.0));
439
+ #ifdef BUMP
440
+ vWorldView=view*finalWorld;mat3 normalWorld=mat3(finalWorld);vNormalW=normalize(normalWorld*normalUpdated);
441
+ #else
442
+ #ifdef NORMAL_WORLDSPACE
443
+ vNormalV=normalize(vec3(finalWorld*vec4(normalUpdated,0.0)));
444
+ #else
445
+ vNormalV=normalize(vec3((view*finalWorld)*vec4(normalUpdated,0.0)));
446
+ #endif
447
+ #endif
448
+ vViewPos=view*worldPos;
449
+ #if (defined(VELOCITY) || defined(VELOCITY_LINEAR)) && defined(BONES_VELOCITY_ENABLED)
450
+ vCurrentPosition=viewProjection*finalWorld*vec4(positionUpdated,1.0);
451
+ #if NUM_BONE_INFLUENCERS>0
452
+ mat4 previousInfluence;previousInfluence=mPreviousBones[int(matricesIndices[0])]*matricesWeights[0];
453
+ #if NUM_BONE_INFLUENCERS>1
454
+ previousInfluence+=mPreviousBones[int(matricesIndices[1])]*matricesWeights[1];
455
+ #endif
456
+ #if NUM_BONE_INFLUENCERS>2
457
+ previousInfluence+=mPreviousBones[int(matricesIndices[2])]*matricesWeights[2];
458
+ #endif
459
+ #if NUM_BONE_INFLUENCERS>3
460
+ previousInfluence+=mPreviousBones[int(matricesIndices[3])]*matricesWeights[3];
461
+ #endif
462
+ #if NUM_BONE_INFLUENCERS>4
463
+ previousInfluence+=mPreviousBones[int(matricesIndicesExtra[0])]*matricesWeightsExtra[0];
464
+ #endif
465
+ #if NUM_BONE_INFLUENCERS>5
466
+ previousInfluence+=mPreviousBones[int(matricesIndicesExtra[1])]*matricesWeightsExtra[1];
467
+ #endif
468
+ #if NUM_BONE_INFLUENCERS>6
469
+ previousInfluence+=mPreviousBones[int(matricesIndicesExtra[2])]*matricesWeightsExtra[2];
470
+ #endif
471
+ #if NUM_BONE_INFLUENCERS>7
472
+ previousInfluence+=mPreviousBones[int(matricesIndicesExtra[3])]*matricesWeightsExtra[3];
473
+ #endif
474
+ vPreviousPosition=previousViewProjection*finalPreviousWorld*previousInfluence*vec4(positionUpdated,1.0);
475
+ #else
476
+ vPreviousPosition=previousViewProjection*finalPreviousWorld*vec4(positionUpdated,1.0);
477
+ #endif
478
+ #endif
479
+ #if defined(POSITION) || defined(BUMP) || defined(IRRADIANCE)
480
+ vPositionW=worldPos.xyz/worldPos.w;
481
+ #endif
482
+ gl_Position=viewProjection*finalWorld*vec4(positionUpdated,1.0);
483
+ #include<clipPlaneVertex>
484
+ #ifdef NEED_UV
485
+ #ifdef UV1
486
+ #if defined(ALPHATEST) && defined(ALPHATEST_UV1)
487
+ vUV=vec2(diffuseMatrix*vec4(uvUpdated,1.0,0.0));
488
+ #else
489
+ vUV=uvUpdated;
490
+ #endif
491
+ #ifdef BUMP_UV1
492
+ vBumpUV=vec2(bumpMatrix*vec4(uvUpdated,1.0,0.0));
493
+ #endif
494
+ #ifdef REFLECTIVITY_UV1
495
+ vReflectivityUV=vec2(reflectivityMatrix*vec4(uvUpdated,1.0,0.0));
496
+ #else
497
+ #ifdef METALLIC_UV1
498
+ vMetallicUV=vec2(metallicMatrix*vec4(uvUpdated,1.0,0.0));
499
+ #endif
500
+ #ifdef ROUGHNESS_UV1
501
+ vRoughnessUV=vec2(roughnessMatrix*vec4(uvUpdated,1.0,0.0));
502
+ #endif
503
+ #endif
504
+ #ifdef ALBEDO_UV1
505
+ vAlbedoUV=vec2(albedoMatrix*vec4(uvUpdated,1.0,0.0));
506
+ #endif
507
+ #ifdef SUBSURFACE_COLOR_UV1
508
+ vSubsurfaceColorUV=vec2(subsurfaceColorMatrix*vec4(uvUpdated,1.0,0.0));
509
+ #endif
510
+ #ifdef SUBSURFACE_WEIGHT_UV1
511
+ vSubsurfaceWeightUV=vec2(subsurfaceWeightMatrix*vec4(uvUpdated,1.0,0.0));
512
+ #endif
513
+ #endif
514
+ #ifdef UV2
515
+ #if defined(ALPHATEST) && defined(ALPHATEST_UV2)
516
+ vUV=vec2(diffuseMatrix*vec4(uv2Updated,1.0,0.0));
517
+ #else
518
+ vUV=uv2Updated;
519
+ #endif
520
+ #ifdef BUMP_UV2
521
+ vBumpUV=vec2(bumpMatrix*vec4(uv2Updated,1.0,0.0));
522
+ #endif
523
+ #ifdef REFLECTIVITY_UV2
524
+ vReflectivityUV=vec2(reflectivityMatrix*vec4(uv2Updated,1.0,0.0));
525
+ #else
526
+ #ifdef METALLIC_UV2
527
+ vMetallicUV=vec2(metallicMatrix*vec4(uv2Updated,1.0,0.0));
528
+ #endif
529
+ #ifdef ROUGHNESS_UV2
530
+ vRoughnessUV=vec2(roughnessMatrix*vec4(uv2Updated,1.0,0.0));
531
+ #endif
532
+ #endif
533
+ #ifdef ALBEDO_UV2
534
+ vAlbedoUV=vec2(albedoMatrix*vec4(uv2Updated,1.0,0.0));
535
+ #endif
536
+ #ifdef SUBSURFACE_COLOR_UV2
537
+ vSubsurfaceColorUV=vec2(subsurfaceColorMatrix*vec4(uv2Updated,1.0,0.0));
538
+ #endif
539
+ #ifdef SUBSURFACE_WEIGHT_UV2
540
+ vSubsurfaceWeightUV=vec2(subsurfaceWeightMatrix*vec4(uv2Updated,1.0,0.0));
541
+ #endif
542
+ #endif
543
+ #endif
544
+ #include<bumpVertex>
545
+ #ifdef IRRADIANCE
546
+ #ifdef REFLECTION
547
+ #ifdef USESPHERICALFROMREFLECTIONMAP
548
+ vec3 reflectionVector=vec3(reflectionMatrix*vec4(normalUpdated,0.0)).xyz;
549
+ #ifdef REFLECTIONMAP_OPPOSITEZ
550
+ reflectionVector.z*=-1.0;
551
+ #endif
552
+ vEnvironmentIrradiance=computeEnvironmentIrradiance(reflectionVector)*vReflectionInfos.x;
553
+ #endif
554
+ #endif
555
+ #endif
556
+ }
557
+ `;for(let e of(i.ShaderStore.ShadersStore[N]||(i.ShaderStore.ShadersStore[N]=h),[r.bonesDeclaration,t.bakedVertexAnimationDeclaration,n.morphTargetsVertexGlobalDeclaration,a.morphTargetsVertexDeclaration,d.instancesDeclaration,{name:f,shader:o},c.sceneUboDeclaration,{name:s,shader:l},m.clipPlaneVertexDeclaration,v.harmonicsFunctions,u.morphTargetsVertexGlobal,S.morphTargetsVertex,E.instancesVertex,T.bonesVertex,I.bakedVertexAnimation,x.clipPlaneVertex,p.bumpVertex]))i.ShaderStore.IncludesShadersStore[e.name]||(i.ShaderStore.IncludesShadersStore[e.name]=e.shader);e.s(["geometryVertexShader",0,{name:N,shader:h}],65966)}]);
@@ -1 +1 @@
1
- (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,34548,e=>{"use strict";var t=e.i(10272),i=e.i(96265),s=e.i(37143),r=e.i(99267),n=e.i(81623),a=e.i(75405),o=e.i(80871);class h{constructor(){this._doNotSerialize=!1,this._isDisposed=!1,this._sceneRootNodesIndex=-1,this._isEnabled=!0,this._isParentEnabled=!0,this._isReady=!0,this._onEnabledStateChangedObservable=new r.Observable,this._onClonedObservable=new r.Observable,this._inheritVisibility=!1,this._isVisible=!0}}class d{static AddNodeConstructor(e,t){this._NodeConstructors[e]=t}static Construct(e,t,i,s){let r=this._NodeConstructors[e];return r?r(t,i,s):null}set accessibilityTag(e){this._accessibilityTag=e,this.onAccessibilityTagChangedObservable.notifyObservers(e)}get accessibilityTag(){return this._accessibilityTag}get doNotSerialize(){return!!this._nodeDataStorage._doNotSerialize||!!this._parentNode&&this._parentNode.doNotSerialize}set doNotSerialize(e){this._nodeDataStorage._doNotSerialize=e}isDisposed(){return this._nodeDataStorage._isDisposed}set parent(e){if(this._parentNode===e)return;let t=this._parentNode;if(this._parentNode&&void 0!==this._parentNode._children&&null!==this._parentNode._children){let t=this._parentNode._children.indexOf(this);-1!==t&&this._parentNode._children.splice(t,1),e||this._nodeDataStorage._isDisposed||this._addToSceneRootNodes()}this._parentNode=e,this._isDirty=!0,this._parentNode&&((void 0===this._parentNode._children||null===this._parentNode._children)&&(this._parentNode._children=[]),this._parentNode._children.push(this),t||this._removeFromSceneRootNodes()),this._syncParentEnabledState()}get parent(){return this._parentNode}get inheritVisibility(){return this._nodeDataStorage._inheritVisibility}set inheritVisibility(e){this._nodeDataStorage._inheritVisibility=e}get isVisible(){return(!this.inheritVisibility||!this._parentNode||!!this._parentNode.isVisible)&&this._nodeDataStorage._isVisible}set isVisible(e){this._nodeDataStorage._isVisible=e}_serializeAsParent(e){e.parentId=this.uniqueId}_addToSceneRootNodes(){-1===this._nodeDataStorage._sceneRootNodesIndex&&(this._nodeDataStorage._sceneRootNodesIndex=this._scene.rootNodes.length,this._scene.rootNodes.push(this))}_removeFromSceneRootNodes(){if(-1!==this._nodeDataStorage._sceneRootNodesIndex){let e=this._scene.rootNodes,t=e.length-1;e[this._nodeDataStorage._sceneRootNodesIndex]=e[t],e[this._nodeDataStorage._sceneRootNodesIndex]._nodeDataStorage._sceneRootNodesIndex=this._nodeDataStorage._sceneRootNodesIndex,this._scene.rootNodes.pop(),this._nodeDataStorage._sceneRootNodesIndex=-1}}get animationPropertiesOverride(){return this._animationPropertiesOverride?this._animationPropertiesOverride:this._scene.animationPropertiesOverride}set animationPropertiesOverride(e){this._animationPropertiesOverride=e}getClassName(){return"Node"}set onDispose(e){this._onDisposeObserver&&this.onDisposeObservable.remove(this._onDisposeObserver),this._onDisposeObserver=this.onDisposeObservable.add(e)}get onEnabledStateChangedObservable(){return this._nodeDataStorage._onEnabledStateChangedObservable}get onClonedObservable(){return this._nodeDataStorage._onClonedObservable}constructor(e,t=null,s=!0){this._isDirty=!1,this._nodeDataStorage=new h,this.state="",this.metadata=null,this.reservedDataStore=null,this._accessibilityTag=null,this.onAccessibilityTagChangedObservable=new r.Observable,this._parentContainer=null,this.animations=[],this._ranges={},this.onReady=null,this._currentRenderId=-1,this._parentUpdateId=-1,this._childUpdateId=-1,this._waitingParentId=null,this._waitingParentInstanceIndex=null,this._waitingParsedUniqueId=null,this._cache={},this._parentNode=null,this._children=null,this._worldMatrix=i.Matrix.Identity(),this._worldMatrixDeterminant=0,this._worldMatrixDeterminantIsDirty=!0,this._animationPropertiesOverride=null,this._isNode=!0,this.onDisposeObservable=new r.Observable,this._onDisposeObserver=null,this._behaviors=[],this.name=e,this.id=e,this._scene=t||n.EngineStore.LastCreatedScene,this.uniqueId=this._scene.getUniqueId(),this._initCache(),s&&this._addToSceneRootNodes()}getScene(){return this._scene}getEngine(){return this._scene.getEngine()}addBehavior(e,t=!1){return -1!==this._behaviors.indexOf(e)||(e.init(),this._scene.isLoading&&!t?this._scene.onDataLoadedObservable.addOnce(()=>{this._behaviors.includes(e)&&e.attach(this)}):e.attach(this),this._behaviors.push(e)),this}removeBehavior(e){let t=this._behaviors.indexOf(e);return -1===t||(this._behaviors.splice(t,1),e.detach()),this}get behaviors(){return this._behaviors}getBehaviorByName(e){for(let t of this._behaviors)if(t.name===e)return t;return null}getWorldMatrix(){return this._currentRenderId!==this._scene.getRenderId()&&this.computeWorldMatrix(),this._worldMatrix}_getWorldMatrixDeterminant(){return this._worldMatrixDeterminantIsDirty&&(this._worldMatrixDeterminantIsDirty=!1,this._worldMatrixDeterminant=this._worldMatrix.determinant()),this._worldMatrixDeterminant}get worldMatrixFromCache(){return this._worldMatrix}_initCache(){this._cache={}}updateCache(e){!e&&this.isSynchronized()||this._updateCache()}_getActionManagerForTrigger(e,t=!0){return this.parent?this.parent._getActionManagerForTrigger(e,!1):null}_updateCache(e){}_isSynchronized(){return!0}_markSyncedWithParent(){this._parentNode&&(this._parentUpdateId=this._parentNode._childUpdateId)}isSynchronizedWithParent(){return!this._parentNode||!this._parentNode._isDirty&&this._parentUpdateId===this._parentNode._childUpdateId&&this._parentNode.isSynchronized()}isSynchronized(){return(!this._parentNode||!!this.isSynchronizedWithParent())&&this._isSynchronized()}isReady(e=!1){return this._nodeDataStorage._isReady}markAsDirty(e){return this._currentRenderId=Number.MAX_VALUE,this._isDirty=!0,this}isEnabled(e=!0){return!1===e?this._nodeDataStorage._isEnabled:!!this._nodeDataStorage._isEnabled&&this._nodeDataStorage._isParentEnabled}_syncParentEnabledState(){if(this._nodeDataStorage._isParentEnabled=!this._parentNode||this._parentNode.isEnabled(),this._children)for(let e of this._children)e._syncParentEnabledState()}setEnabled(e){this._nodeDataStorage._isEnabled!==e&&(this._nodeDataStorage._isEnabled=e,this._syncParentEnabledState(),this._nodeDataStorage._onEnabledStateChangedObservable.notifyObservers(e))}isDescendantOf(e){return!!this.parent&&(this.parent===e||this.parent.isDescendantOf(e))}_getDescendants(e,t=!1,i){if(this._children)for(let s=0;s<this._children.length;s++){let r=this._children[s];(!i||i(r))&&e.push(r),t||r._getDescendants(e,!1,i)}}getDescendants(e,t){let i=[];return this._getDescendants(i,e,t),i}getChildMeshes(e,t){let i=[];return this._getDescendants(i,e,e=>(!t||t(e))&&void 0!==e.cullingStrategy),i}getChildren(e,t=!0){return this.getDescendants(t,e)}_setReady(e){if(e!==this._nodeDataStorage._isReady){if(!e){this._nodeDataStorage._isReady=!1;return}this.onReady&&this.onReady(this),this._nodeDataStorage._isReady=!0}}getAnimationByName(e){for(let t=0;t<this.animations.length;t++){let i=this.animations[t];if(i.name===e)return i}return null}createAnimationRange(e,t,i){if(!this._ranges[e]){this._ranges[e]=d._AnimationRangeFactory(e,t,i);for(let s=0,r=this.animations.length;s<r;s++)this.animations[s]&&this.animations[s].createRange(e,t,i)}}deleteAnimationRange(e,t=!0){for(let i=0,s=this.animations.length;i<s;i++)this.animations[i]&&this.animations[i].deleteRange(e,t);this._ranges[e]=null}getAnimationRange(e){return this._ranges[e]||null}clone(e,t,i){let s=o.SerializationHelper.Clone(()=>new d(e,this.getScene()),this);if(t&&(s.parent=t),!i){let t=this.getDescendants(!0);for(let i=0;i<t.length;i++){let r=t[i];r.clone(e+"."+r.name,s)}}return s}getAnimationRanges(){let e,t=[];for(e in this._ranges)t.push(this._ranges[e]);return t}beginAnimation(e,t,i,s){let r=this.getAnimationRange(e);return r?this._scene.beginAnimation(this,r.from,r.to,t,i,s):null}serializeAnimationRanges(){let e=[];for(let t in this._ranges){let i=this._ranges[t];if(!i)continue;let s={};s.name=t,s.from=i.from,s.to=i.to,e.push(s)}return e}computeWorldMatrix(e){return this._worldMatrix||(this._worldMatrix=i.Matrix.Identity()),this._worldMatrix}dispose(e,t=!1){if(this._nodeDataStorage._isDisposed=!0,!e)for(let i of this.getDescendants(!0))i.dispose(e,t);for(let e of(this.parent?this.parent=null:this._removeFromSceneRootNodes(),this.onDisposeObservable.notifyObservers(this),this.onDisposeObservable.clear(),this.onEnabledStateChangedObservable.clear(),this.onClonedObservable.clear(),this._behaviors))e.detach();this._behaviors.length=0,this.metadata=null}static ParseAnimationRanges(e,t,i){if(t.ranges)for(let i=0;i<t.ranges.length;i++){let s=t.ranges[i];e.createAnimationRange(s.name,s.from,s.to)}}getHierarchyBoundingVectors(e=!0,t=null){let s,r;if(this.getScene().incrementRenderId(),this.computeWorldMatrix(!0),this.getBoundingInfo&&this.subMeshes){let e=this.getBoundingInfo();s=e.boundingBox.minimumWorld.clone(),r=e.boundingBox.maximumWorld.clone()}else s=new i.Vector3(Number.MAX_VALUE,Number.MAX_VALUE,Number.MAX_VALUE),r=new i.Vector3(-Number.MAX_VALUE,-Number.MAX_VALUE,-Number.MAX_VALUE);if(e)for(let e of this.getDescendants(!1)){if(e.computeWorldMatrix(!0),t&&!t(e)||!e.getBoundingInfo||0===e.getTotalVertices())continue;let n=e.getBoundingInfo().boundingBox,a=n.minimumWorld,o=n.maximumWorld;i.Vector3.CheckExtends(a,s,r),i.Vector3.CheckExtends(o,s,r)}return{min:s,max:r}}}d._AnimationRangeFactory=(e,t,i)=>{throw(0,a._WarnImport)("AnimationRange")},d._NodeConstructors={},(0,t.__decorate)([(0,s.serialize)()],d.prototype,"name",void 0),(0,t.__decorate)([(0,s.serialize)()],d.prototype,"id",void 0),(0,t.__decorate)([(0,s.serialize)()],d.prototype,"uniqueId",void 0),(0,t.__decorate)([(0,s.serialize)()],d.prototype,"state",void 0),(0,t.__decorate)([(0,s.serialize)()],d.prototype,"metadata",void 0),e.s(["Node",0,d])},12847,e=>{"use strict";var t=e.i(10272),i=e.i(37143),s=e.i(96265),r=e.i(70653),n=e.i(34548),a=e.i(33855),o=e.i(77052),h=e.i(21823),d=e.i(80871);class l extends n.Node{get range(){return this._range}set range(e){this._range=e,this._inverseSquaredRange=1/(this.range*this.range)}get intensityMode(){return this._intensityMode}set intensityMode(e){this._intensityMode=e,this._computePhotometricScale()}get radius(){return this._radius}set radius(e){this._radius=e,this._computePhotometricScale()}get shadowEnabled(){return this._shadowEnabled}set shadowEnabled(e){this._shadowEnabled!==e&&(this._shadowEnabled=e,this._markMeshesAsLightDirty())}get includedOnlyMeshes(){return this._includedOnlyMeshes}set includedOnlyMeshes(e){this._includedOnlyMeshes=e,this._hookArrayForIncludedOnly(e)}get excludedMeshes(){return this._excludedMeshes}set excludedMeshes(e){this._excludedMeshes=e,this._hookArrayForExcluded(e)}get excludeWithLayerMask(){return this._excludeWithLayerMask}set excludeWithLayerMask(e){this._excludeWithLayerMask=e,this._resyncMeshes()}get includeOnlyWithLayerMask(){return this._includeOnlyWithLayerMask}set includeOnlyWithLayerMask(e){this._includeOnlyWithLayerMask=e,this._resyncMeshes()}get lightmapMode(){return this._lightmapMode}set lightmapMode(e){this._lightmapMode!==e&&(this._lightmapMode=e,this._markMeshesAsLightDirty())}getViewMatrix(e){return null}getProjectionMatrix(e,t){return null}constructor(e,t,i){super(e,t,!1),this.diffuse=new r.Color3(1,1,1),this.specular=new r.Color3(1,1,1),this.falloffType=l.FALLOFF_DEFAULT,this.intensity=1,this._range=Number.MAX_VALUE,this._inverseSquaredRange=0,this._photometricScale=1,this._intensityMode=l.INTENSITYMODE_AUTOMATIC,this._radius=1e-5,this.renderPriority=0,this._shadowEnabled=!0,this._excludeWithLayerMask=0,this._includeOnlyWithLayerMask=0,this._lightmapMode=0,this._shadowGenerators=null,this._excludedMeshesIds=[],this._includedOnlyMeshesIds=[],this._currentViewDepth=0,this._clusteredContainer=null,this._isLight=!0,i||this.getScene().addLight(this),this._uniformBuffer=new a.UniformBuffer(this.getScene().getEngine(),void 0,void 0,e),this._buildUniformLayout(),this.includedOnlyMeshes=[],this.excludedMeshes=[],i||this._resyncMeshes()}transferTexturesToEffect(e,t){return this}_bindLight(e,t,i,s,n=!0){let a=e.toString(),o=!1;if(this._uniformBuffer.bindToEffect(i,"Light"+a),this._renderId!==t.getRenderId()||this._lastUseSpecular!==s||!this._uniformBuffer.useUbo){this._renderId=t.getRenderId(),this._lastUseSpecular=s;let e=this.getScaledIntensity();this.transferToEffect(i,a),this.diffuse.scaleToRef(e,r.TmpColors.Color3[0]),this._uniformBuffer.updateColor4("vLightDiffuse",r.TmpColors.Color3[0],this.range,a),s&&(this.specular.scaleToRef(e,r.TmpColors.Color3[1]),this._uniformBuffer.updateColor4("vLightSpecular",r.TmpColors.Color3[1],this.radius,a)),o=!0}if(this.transferTexturesToEffect(i,a),t.shadowsEnabled&&this.shadowEnabled&&n){let e=this.getShadowGenerator(t.activeCamera)??this.getShadowGenerator();e&&(e.bindShadowLight(a,i),o=!0)}o?this._uniformBuffer.update():this._uniformBuffer.bindUniformBuffer()}getClassName(){return"Light"}toString(e){let t="Name: "+this.name;if(t+=", type: "+["Point","Directional","Spot","Hemispheric","Clustered"][this.getTypeID()],this.animations)for(let i=0;i<this.animations.length;i++)t+=", animation[0]: "+this.animations[i].toString(e);return t}_syncParentEnabledState(){super._syncParentEnabledState(),this.isDisposed()||this._resyncMeshes()}setEnabled(e){super.setEnabled(e),this._resyncMeshes()}getShadowGenerator(e=null){return null===this._shadowGenerators?null:this._shadowGenerators.get(e)??null}getShadowGenerators(){return this._shadowGenerators}getAbsolutePosition(){return s.Vector3.Zero()}canAffectMesh(e){return!e||(!this.includedOnlyMeshes||!(this.includedOnlyMeshes.length>0)||-1!==this.includedOnlyMeshes.indexOf(e))&&(!this.excludedMeshes||!(this.excludedMeshes.length>0)||-1===this.excludedMeshes.indexOf(e))&&(0===this.includeOnlyWithLayerMask||(this.includeOnlyWithLayerMask&e.layerMask)!=0)&&(0===this.excludeWithLayerMask||!(this.excludeWithLayerMask&e.layerMask))}dispose(e,t=!1){if(this._shadowGenerators){let e=this._shadowGenerators.values();for(let t=e.next();!0!==t.done;t=e.next())t.value.dispose();this._shadowGenerators=null}if(this.getScene().stopAnimation(this),this._parentContainer){let e=this._parentContainer.lights.indexOf(this);e>-1&&this._parentContainer.lights.splice(e,1),this._parentContainer=null}for(let e of this.getScene().meshes)e._removeLightSource(this,!0);this._uniformBuffer.dispose(),this.getScene().removeLight(this),super.dispose(e,t)}getTypeID(){return 0}getScaledIntensity(){return this._photometricScale*this.intensity}clone(e,t=null){let i=l.GetConstructorFromName(this.getTypeID(),e,this.getScene());if(!i)return null;let s=d.SerializationHelper.Clone(i,this);return e&&(s.name=e),t&&(s.parent=t),s.setEnabled(this.isEnabled()),this.onClonedObservable.notifyObservers(s),s}serialize(){let e=d.SerializationHelper.Serialize(this);if(e.uniqueId=this.uniqueId,e.type=this.getTypeID(),this.parent&&this.parent._serializeAsParent(e),this.excludedMeshes.length>0)for(let t of(e.excludedMeshesIds=[],this.excludedMeshes))e.excludedMeshesIds.push(t.id);if(this.includedOnlyMeshes.length>0)for(let t of(e.includedOnlyMeshesIds=[],this.includedOnlyMeshes))e.includedOnlyMeshesIds.push(t.id);return d.SerializationHelper.AppendSerializedAnimations(this,e),e.ranges=this.serializeAnimationRanges(),e.isEnabled=this.isEnabled(),e}static GetConstructorFromName(e,t,i){let s=n.Node.Construct("Light_Type_"+e,t,i);return s||null}static Parse(e,t){let i=l.GetConstructorFromName(e.type,e.name,t);if(!i)return null;let s=d.SerializationHelper.Parse(i,e,t);if(e.excludedMeshesIds&&(s._excludedMeshesIds=e.excludedMeshesIds),e.includedOnlyMeshesIds&&(s._includedOnlyMeshesIds=e.includedOnlyMeshesIds),void 0!==e.parentId&&(s._waitingParentId=e.parentId),void 0!==e.parentInstanceIndex&&(s._waitingParentInstanceIndex=e.parentInstanceIndex),void 0!==e.falloffType&&(s.falloffType=e.falloffType),void 0!==e.lightmapMode&&(s.lightmapMode=e.lightmapMode),e.animations){for(let t=0;t<e.animations.length;t++){let i=e.animations[t],r=(0,o.GetClass)("BABYLON.Animation");r&&s.animations.push(r.Parse(i))}n.Node.ParseAnimationRanges(s,e,t)}return e.autoAnimate&&t.beginAnimation(s,e.autoAnimateFrom,e.autoAnimateTo,e.autoAnimateLoop,e.autoAnimateSpeed||1),void 0!==e.isEnabled&&s.setEnabled(e.isEnabled),s._onParsed(e,t),s}_onParsed(e,t){}_hookArrayForExcluded(e){let t=e.push;e.push=(...i)=>{let s=t.apply(e,i);if(this._clusteredContainer)return s;for(let e of i)e._resyncLightSource(this);return s};let i=e.splice;if(e.splice=(t,s)=>{let r=i.call(e,t,s??e.length);if(this._clusteredContainer)return r;for(let e of r)e._resyncLightSource(this);return r},!this._clusteredContainer)for(let t of e)t._resyncLightSource(this)}_hookArrayForIncludedOnly(e){let t=e.push;e.push=(...i)=>{let s=t.apply(e,i);return this._resyncMeshes(),s};let i=e.splice;e.splice=(t,s)=>{let r=i.call(e,t,s??e.length);return this._resyncMeshes(),r},this._resyncMeshes()}_resyncMeshes(){if(!this._clusteredContainer)for(let e of this.getScene().meshes)e._resyncLightSource(this)}_markMeshesAsLightDirty(){for(let e of this.getScene().meshes)-1!==e.lightSources.indexOf(this)&&e._markSubMeshesAsLightDirty()}_computePhotometricScale(){this._photometricScale=this._getPhotometricScale(),this.getScene().resetCachedMaterial()}_getPhotometricScale(){let e=0,t=this.getTypeID(),i=this.intensityMode;switch(i===l.INTENSITYMODE_AUTOMATIC&&(i=t===l.LIGHTTYPEID_DIRECTIONALLIGHT?l.INTENSITYMODE_ILLUMINANCE:l.INTENSITYMODE_LUMINOUSINTENSITY),t){case l.LIGHTTYPEID_POINTLIGHT:case l.LIGHTTYPEID_SPOTLIGHT:switch(i){case l.INTENSITYMODE_LUMINOUSPOWER:e=1/(4*Math.PI);break;case l.INTENSITYMODE_LUMINOUSINTENSITY:e=1;break;case l.INTENSITYMODE_LUMINANCE:e=this.radius*this.radius}break;case l.LIGHTTYPEID_DIRECTIONALLIGHT:switch(i){case l.INTENSITYMODE_ILLUMINANCE:e=1;break;case l.INTENSITYMODE_LUMINANCE:{let t=this.radius;e=2*Math.PI*(1-Math.cos(t=Math.max(t,.001)))}}break;case l.LIGHTTYPEID_HEMISPHERICLIGHT:e=1}return e}_reorderLightsInScene(){let e=this.getScene();0!=this._renderPriority&&(e.requireLightSorting=!0),this.getScene().sortLightsByPriority()}areLightTexturesReady(){return!0}_isReady(){return!0}}l.FALLOFF_DEFAULT=h.LightConstants.FALLOFF_DEFAULT,l.FALLOFF_PHYSICAL=h.LightConstants.FALLOFF_PHYSICAL,l.FALLOFF_GLTF=h.LightConstants.FALLOFF_GLTF,l.FALLOFF_STANDARD=h.LightConstants.FALLOFF_STANDARD,l.LIGHTMAP_DEFAULT=h.LightConstants.LIGHTMAP_DEFAULT,l.LIGHTMAP_SPECULAR=h.LightConstants.LIGHTMAP_SPECULAR,l.LIGHTMAP_SHADOWSONLY=h.LightConstants.LIGHTMAP_SHADOWSONLY,l.INTENSITYMODE_AUTOMATIC=h.LightConstants.INTENSITYMODE_AUTOMATIC,l.INTENSITYMODE_LUMINOUSPOWER=h.LightConstants.INTENSITYMODE_LUMINOUSPOWER,l.INTENSITYMODE_LUMINOUSINTENSITY=h.LightConstants.INTENSITYMODE_LUMINOUSINTENSITY,l.INTENSITYMODE_ILLUMINANCE=h.LightConstants.INTENSITYMODE_ILLUMINANCE,l.INTENSITYMODE_LUMINANCE=h.LightConstants.INTENSITYMODE_LUMINANCE,l.LIGHTTYPEID_POINTLIGHT=h.LightConstants.LIGHTTYPEID_POINTLIGHT,l.LIGHTTYPEID_DIRECTIONALLIGHT=h.LightConstants.LIGHTTYPEID_DIRECTIONALLIGHT,l.LIGHTTYPEID_SPOTLIGHT=h.LightConstants.LIGHTTYPEID_SPOTLIGHT,l.LIGHTTYPEID_HEMISPHERICLIGHT=h.LightConstants.LIGHTTYPEID_HEMISPHERICLIGHT,l.LIGHTTYPEID_RECT_AREALIGHT=h.LightConstants.LIGHTTYPEID_RECT_AREALIGHT,(0,t.__decorate)([(0,i.serializeAsColor3)()],l.prototype,"diffuse",void 0),(0,t.__decorate)([(0,i.serializeAsColor3)()],l.prototype,"specular",void 0),(0,t.__decorate)([(0,i.serialize)()],l.prototype,"falloffType",void 0),(0,t.__decorate)([(0,i.serialize)()],l.prototype,"intensity",void 0),(0,t.__decorate)([(0,i.serialize)()],l.prototype,"range",null),(0,t.__decorate)([(0,i.serialize)()],l.prototype,"intensityMode",null),(0,t.__decorate)([(0,i.serialize)()],l.prototype,"radius",null),(0,t.__decorate)([(0,i.serialize)()],l.prototype,"_renderPriority",void 0),(0,t.__decorate)([(0,i.expandToProperty)("_reorderLightsInScene")],l.prototype,"renderPriority",void 0),(0,t.__decorate)([(0,i.serialize)("shadowEnabled")],l.prototype,"_shadowEnabled",void 0),(0,t.__decorate)([(0,i.serialize)("excludeWithLayerMask")],l.prototype,"_excludeWithLayerMask",void 0),(0,t.__decorate)([(0,i.serialize)("includeOnlyWithLayerMask")],l.prototype,"_includeOnlyWithLayerMask",void 0),(0,t.__decorate)([(0,i.serialize)("lightmapMode")],l.prototype,"_lightmapMode",void 0);class _ extends l{constructor(e,t,i,n){super(e,i,n),this.groundColor=new r.Color3(0,0,0),this.direction=t||s.Vector3.Up()}_buildUniformLayout(){this._uniformBuffer.addUniform("vLightData",4),this._uniformBuffer.addUniform("vLightDiffuse",4),this._uniformBuffer.addUniform("vLightSpecular",4),this._uniformBuffer.addUniform("vLightGround",3),this._uniformBuffer.addUniform("shadowsInfo",3),this._uniformBuffer.addUniform("depthValues",2),this._uniformBuffer.create()}getClassName(){return"HemisphericLight"}setDirectionToTarget(e){return this.direction=s.Vector3.Normalize(e.subtract(s.Vector3.Zero())),this.direction}getShadowGenerator(){return null}transferToEffect(e,t){let i=s.Vector3.Normalize(this.direction);return this._uniformBuffer.updateFloat4("vLightData",i.x,i.y,i.z,0,t),this._uniformBuffer.updateColor3("vLightGround",this.groundColor.scale(this.intensity),t),this}transferToNodeMaterialEffect(e,t){let i=s.Vector3.Normalize(this.direction);return e.setFloat3(t,i.x,i.y,i.z),this}computeWorldMatrix(){return this._worldMatrix||(this._worldMatrix=s.Matrix.Identity()),this._worldMatrix}getTypeID(){return l.LIGHTTYPEID_HEMISPHERICLIGHT}prepareLightSpecificDefines(e,t){e["HEMILIGHT"+t]=!0}}(0,t.__decorate)([(0,i.serializeAsColor3)()],_.prototype,"groundColor",void 0),(0,t.__decorate)([(0,i.serializeAsVector3)()],_.prototype,"direction",void 0);let c=!1;function u(){c||(c=!0,n.Node.AddNodeConstructor("Light_Type_3",(e,t)=>()=>new _(e,s.Vector3.Zero(),t)),(0,o.RegisterClass)("BABYLON.HemisphericLight",_))}e.s(["HemisphericLight",0,_,"RegisterHemisphericLight",0,u],21545),u(),e.s([],7509),e.i(7509),e.i(21545),e.s(["HemisphericLight",0,_,"RegisterHemisphericLight",0,u],12847)}]);
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,34548,e=>{"use strict";var t=e.i(10272),i=e.i(96265),s=e.i(37143),r=e.i(99267),n=e.i(81623),a=e.i(75405),o=e.i(80871);class h{constructor(){this._doNotSerialize=!1,this._isDisposed=!1,this._sceneRootNodesIndex=-1,this._isEnabled=!0,this._isParentEnabled=!0,this._isReady=!0,this._onEnabledStateChangedObservable=new r.Observable,this._onClonedObservable=new r.Observable,this._inheritVisibility=!1,this._isVisible=!0}}class d{static AddNodeConstructor(e,t){this._NodeConstructors[e]=t}static Construct(e,t,i,s){let r=this._NodeConstructors[e];return r?r(t,i,s):null}set accessibilityTag(e){this._accessibilityTag=e,this.onAccessibilityTagChangedObservable.notifyObservers(e)}get accessibilityTag(){return this._accessibilityTag}get doNotSerialize(){return!!this._nodeDataStorage._doNotSerialize||!!this._parentNode&&this._parentNode.doNotSerialize}set doNotSerialize(e){this._nodeDataStorage._doNotSerialize=e}isDisposed(){return this._nodeDataStorage._isDisposed}set parent(e){if(this._parentNode===e)return;let t=this._parentNode;if(this._parentNode&&void 0!==this._parentNode._children&&null!==this._parentNode._children){let t=this._parentNode._children.indexOf(this);-1!==t&&this._parentNode._children.splice(t,1),e||this._nodeDataStorage._isDisposed||this._addToSceneRootNodes()}this._parentNode=e,this._isDirty=!0,this._parentNode&&((void 0===this._parentNode._children||null===this._parentNode._children)&&(this._parentNode._children=[]),this._parentNode._children.push(this),t||this._removeFromSceneRootNodes()),this._syncParentEnabledState()}get parent(){return this._parentNode}get inheritVisibility(){return this._nodeDataStorage._inheritVisibility}set inheritVisibility(e){this._nodeDataStorage._inheritVisibility=e}get isVisible(){return(!this.inheritVisibility||!this._parentNode||!!this._parentNode.isVisible)&&this._nodeDataStorage._isVisible}set isVisible(e){this._nodeDataStorage._isVisible=e}_serializeAsParent(e){e.parentId=this.uniqueId}_addToSceneRootNodes(){-1===this._nodeDataStorage._sceneRootNodesIndex&&(this._nodeDataStorage._sceneRootNodesIndex=this._scene.rootNodes.length,this._scene.rootNodes.push(this))}_removeFromSceneRootNodes(){if(-1!==this._nodeDataStorage._sceneRootNodesIndex){let e=this._scene.rootNodes,t=e.length-1;e[this._nodeDataStorage._sceneRootNodesIndex]=e[t],e[this._nodeDataStorage._sceneRootNodesIndex]._nodeDataStorage._sceneRootNodesIndex=this._nodeDataStorage._sceneRootNodesIndex,this._scene.rootNodes.pop(),this._nodeDataStorage._sceneRootNodesIndex=-1}}get animationPropertiesOverride(){return this._animationPropertiesOverride?this._animationPropertiesOverride:this._scene.animationPropertiesOverride}set animationPropertiesOverride(e){this._animationPropertiesOverride=e}getClassName(){return"Node"}set onDispose(e){this._onDisposeObserver&&this.onDisposeObservable.remove(this._onDisposeObserver),this._onDisposeObserver=this.onDisposeObservable.add(e)}get onEnabledStateChangedObservable(){return this._nodeDataStorage._onEnabledStateChangedObservable}get onClonedObservable(){return this._nodeDataStorage._onClonedObservable}constructor(e,t=null,s=!0){this._isDirty=!1,this._nodeDataStorage=new h,this.state="",this.metadata=null,this.reservedDataStore=null,this._accessibilityTag=null,this.onAccessibilityTagChangedObservable=new r.Observable,this._parentContainer=null,this.animations=[],this._ranges={},this.onReady=null,this._currentRenderId=-1,this._parentUpdateId=-1,this._childUpdateId=-1,this._waitingParentId=null,this._waitingParentInstanceIndex=null,this._waitingParsedUniqueId=null,this._cache={},this._parentNode=null,this._children=null,this._worldMatrix=i.Matrix.Identity(),this._worldMatrixDeterminant=0,this._worldMatrixDeterminantIsDirty=!0,this._animationPropertiesOverride=null,this._isNode=!0,this.onDisposeObservable=new r.Observable,this._onDisposeObserver=null,this._behaviors=[],this.name=e,this.id=e,this._scene=t||n.EngineStore.LastCreatedScene,this.uniqueId=this._scene.getUniqueId(),this._initCache(),s&&this._addToSceneRootNodes()}getScene(){return this._scene}getEngine(){return this._scene.getEngine()}addBehavior(e,t=!1){return -1!==this._behaviors.indexOf(e)||(e.init(),this._scene.isLoading&&!t?this._scene.onDataLoadedObservable.addOnce(()=>{this._behaviors.includes(e)&&e.attach(this)}):e.attach(this),this._behaviors.push(e)),this}removeBehavior(e){let t=this._behaviors.indexOf(e);return -1===t||(this._behaviors.splice(t,1),e.detach()),this}get behaviors(){return this._behaviors}getBehaviorByName(e){for(let t of this._behaviors)if(t.name===e)return t;return null}getWorldMatrix(){return this._currentRenderId!==this._scene.getRenderId()&&this.computeWorldMatrix(),this._worldMatrix}_getWorldMatrixDeterminant(){return this._worldMatrixDeterminantIsDirty&&(this._worldMatrixDeterminantIsDirty=!1,this._worldMatrixDeterminant=this._worldMatrix.determinant()),this._worldMatrixDeterminant}get worldMatrixFromCache(){return this._worldMatrix}_initCache(){this._cache={}}updateCache(e){!e&&this.isSynchronized()||this._updateCache()}_getActionManagerForTrigger(e,t=!0){return this.parent?this.parent._getActionManagerForTrigger(e,!1):null}_updateCache(e){}_isSynchronized(){return!0}_markSyncedWithParent(){this._parentNode&&(this._parentUpdateId=this._parentNode._childUpdateId)}isSynchronizedWithParent(){return!this._parentNode||!this._parentNode._isDirty&&this._parentUpdateId===this._parentNode._childUpdateId&&this._parentNode.isSynchronized()}isSynchronized(){return(!this._parentNode||!!this.isSynchronizedWithParent())&&this._isSynchronized()}isReady(e=!1){return this._nodeDataStorage._isReady}markAsDirty(e){return this._currentRenderId=Number.MAX_VALUE,this._isDirty=!0,this}isEnabled(e=!0){return!1===e?this._nodeDataStorage._isEnabled:!!this._nodeDataStorage._isEnabled&&this._nodeDataStorage._isParentEnabled}_syncParentEnabledState(){if(this._nodeDataStorage._isParentEnabled=!this._parentNode||this._parentNode.isEnabled(),this._children)for(let e of this._children)e._syncParentEnabledState()}setEnabled(e){this._nodeDataStorage._isEnabled!==e&&(this._nodeDataStorage._isEnabled=e,this._syncParentEnabledState(),this._nodeDataStorage._onEnabledStateChangedObservable.notifyObservers(e))}isDescendantOf(e){return!!this.parent&&(this.parent===e||this.parent.isDescendantOf(e))}_getDescendants(e,t=!1,i){if(this._children)for(let s=0;s<this._children.length;s++){let r=this._children[s];(!i||i(r))&&e.push(r),t||r._getDescendants(e,!1,i)}}getDescendants(e,t){let i=[];return this._getDescendants(i,e,t),i}getChildMeshes(e,t){let i=[];return this._getDescendants(i,e,e=>(!t||t(e))&&void 0!==e.cullingStrategy),i}getChildren(e,t=!0){return this.getDescendants(t,e)}_setReady(e){if(e!==this._nodeDataStorage._isReady){if(!e){this._nodeDataStorage._isReady=!1;return}this.onReady&&this.onReady(this),this._nodeDataStorage._isReady=!0}}getAnimationByName(e){for(let t=0;t<this.animations.length;t++){let i=this.animations[t];if(i.name===e)return i}return null}createAnimationRange(e,t,i){if(!this._ranges[e]){this._ranges[e]=d._AnimationRangeFactory(e,t,i);for(let s=0,r=this.animations.length;s<r;s++)this.animations[s]&&this.animations[s].createRange(e,t,i)}}deleteAnimationRange(e,t=!0){for(let i=0,s=this.animations.length;i<s;i++)this.animations[i]&&this.animations[i].deleteRange(e,t);this._ranges[e]=null}getAnimationRange(e){return this._ranges[e]||null}clone(e,t,i){let s=o.SerializationHelper.Clone(()=>new d(e,this.getScene()),this);if(t&&(s.parent=t),!i){let t=this.getDescendants(!0);for(let i=0;i<t.length;i++){let r=t[i];r.clone(e+"."+r.name,s)}}return s}getAnimationRanges(){let e,t=[];for(e in this._ranges)t.push(this._ranges[e]);return t}beginAnimation(e,t,i,s){let r=this.getAnimationRange(e);return r?this._scene.beginAnimation(this,r.from,r.to,t,i,s):null}serializeAnimationRanges(){let e=[];for(let t in this._ranges){let i=this._ranges[t];if(!i)continue;let s={};s.name=t,s.from=i.from,s.to=i.to,e.push(s)}return e}computeWorldMatrix(e){return this._worldMatrix||(this._worldMatrix=i.Matrix.Identity()),this._worldMatrix}dispose(e,t=!1){if(this._nodeDataStorage._isDisposed=!0,!e)for(let i of this.getDescendants(!0))i.dispose(e,t);for(let e of(this.parent?this.parent=null:this._removeFromSceneRootNodes(),this.onDisposeObservable.notifyObservers(this),this.onDisposeObservable.clear(),this.onEnabledStateChangedObservable.clear(),this.onClonedObservable.clear(),this._behaviors))e.detach();this._behaviors.length=0,this.metadata=null}static ParseAnimationRanges(e,t,i){if(t.ranges)for(let i=0;i<t.ranges.length;i++){let s=t.ranges[i];e.createAnimationRange(s.name,s.from,s.to)}}getHierarchyBoundingVectors(e=!0,t=null){let s,r;if(this.getScene().incrementRenderId(),this.computeWorldMatrix(!0),this.getBoundingInfo&&this.subMeshes){let e=this.getBoundingInfo();s=e.boundingBox.minimumWorld.clone(),r=e.boundingBox.maximumWorld.clone()}else s=new i.Vector3(Number.MAX_VALUE,Number.MAX_VALUE,Number.MAX_VALUE),r=new i.Vector3(-Number.MAX_VALUE,-Number.MAX_VALUE,-Number.MAX_VALUE);if(e)for(let e of this.getDescendants(!1)){if(e.computeWorldMatrix(!0),t&&!t(e)||!e.getBoundingInfo||0===e.getTotalVertices())continue;let n=e.getBoundingInfo().boundingBox,a=n.minimumWorld,o=n.maximumWorld;i.Vector3.CheckExtends(a,s,r),i.Vector3.CheckExtends(o,s,r)}return{min:s,max:r}}}d._AnimationRangeFactory=(e,t,i)=>{throw(0,a._WarnImport)("AnimationRange")},d._NodeConstructors={},(0,t.__decorate)([(0,s.serialize)()],d.prototype,"name",void 0),(0,t.__decorate)([(0,s.serialize)()],d.prototype,"id",void 0),(0,t.__decorate)([(0,s.serialize)()],d.prototype,"uniqueId",void 0),(0,t.__decorate)([(0,s.serialize)()],d.prototype,"state",void 0),(0,t.__decorate)([(0,s.serialize)()],d.prototype,"metadata",void 0),e.s(["Node",0,d])},46778,e=>{"use strict";var t=e.i(10272),i=e.i(37143),s=e.i(96265),r=e.i(70653),n=e.i(34548),a=e.i(33855),o=e.i(77052),h=e.i(21823),d=e.i(80871);class l extends n.Node{get range(){return this._range}set range(e){this._range=e,this._inverseSquaredRange=1/(this.range*this.range)}get intensityMode(){return this._intensityMode}set intensityMode(e){this._intensityMode=e,this._computePhotometricScale()}get radius(){return this._radius}set radius(e){this._radius=e,this._computePhotometricScale()}get shadowEnabled(){return this._shadowEnabled}set shadowEnabled(e){this._shadowEnabled!==e&&(this._shadowEnabled=e,this._markMeshesAsLightDirty())}get includedOnlyMeshes(){return this._includedOnlyMeshes}set includedOnlyMeshes(e){this._includedOnlyMeshes=e,this._hookArrayForIncludedOnly(e)}get excludedMeshes(){return this._excludedMeshes}set excludedMeshes(e){this._excludedMeshes=e,this._hookArrayForExcluded(e)}get excludeWithLayerMask(){return this._excludeWithLayerMask}set excludeWithLayerMask(e){this._excludeWithLayerMask=e,this._resyncMeshes()}get includeOnlyWithLayerMask(){return this._includeOnlyWithLayerMask}set includeOnlyWithLayerMask(e){this._includeOnlyWithLayerMask=e,this._resyncMeshes()}get lightmapMode(){return this._lightmapMode}set lightmapMode(e){this._lightmapMode!==e&&(this._lightmapMode=e,this._markMeshesAsLightDirty())}getViewMatrix(e){return null}getProjectionMatrix(e,t){return null}constructor(e,t,i){super(e,t,!1),this.diffuse=new r.Color3(1,1,1),this.specular=new r.Color3(1,1,1),this.falloffType=l.FALLOFF_DEFAULT,this.intensity=1,this._range=Number.MAX_VALUE,this._inverseSquaredRange=0,this._photometricScale=1,this._intensityMode=l.INTENSITYMODE_AUTOMATIC,this._radius=1e-5,this.renderPriority=0,this._shadowEnabled=!0,this._excludeWithLayerMask=0,this._includeOnlyWithLayerMask=0,this._lightmapMode=0,this._shadowGenerators=null,this._excludedMeshesIds=[],this._includedOnlyMeshesIds=[],this._currentViewDepth=0,this._clusteredContainer=null,this._isLight=!0,i||this.getScene().addLight(this),this._uniformBuffer=new a.UniformBuffer(this.getScene().getEngine(),void 0,void 0,e),this._buildUniformLayout(),this.includedOnlyMeshes=[],this.excludedMeshes=[],i||this._resyncMeshes()}transferTexturesToEffect(e,t){return this}_bindLight(e,t,i,s,n=!0){let a=e.toString(),o=!1;if(this._uniformBuffer.bindToEffect(i,"Light"+a),this._renderId!==t.getRenderId()||this._lastUseSpecular!==s||!this._uniformBuffer.useUbo){this._renderId=t.getRenderId(),this._lastUseSpecular=s;let e=this.getScaledIntensity();this.transferToEffect(i,a),this.diffuse.scaleToRef(e,r.TmpColors.Color3[0]),this._uniformBuffer.updateColor4("vLightDiffuse",r.TmpColors.Color3[0],this.range,a),s&&(this.specular.scaleToRef(e,r.TmpColors.Color3[1]),this._uniformBuffer.updateColor4("vLightSpecular",r.TmpColors.Color3[1],this.radius,a)),o=!0}if(this.transferTexturesToEffect(i,a),t.shadowsEnabled&&this.shadowEnabled&&n){let e=this.getShadowGenerator(t.activeCamera)??this.getShadowGenerator();e&&(e.bindShadowLight(a,i),o=!0)}o?this._uniformBuffer.update():this._uniformBuffer.bindUniformBuffer()}getClassName(){return"Light"}toString(e){let t="Name: "+this.name;if(t+=", type: "+["Point","Directional","Spot","Hemispheric","Clustered"][this.getTypeID()],this.animations)for(let i=0;i<this.animations.length;i++)t+=", animation[0]: "+this.animations[i].toString(e);return t}_syncParentEnabledState(){super._syncParentEnabledState(),this.isDisposed()||this._resyncMeshes()}setEnabled(e){super.setEnabled(e),this._resyncMeshes()}getShadowGenerator(e=null){return null===this._shadowGenerators?null:this._shadowGenerators.get(e)??null}getShadowGenerators(){return this._shadowGenerators}getAbsolutePosition(){return s.Vector3.Zero()}canAffectMesh(e){return!e||(!this.includedOnlyMeshes||!(this.includedOnlyMeshes.length>0)||-1!==this.includedOnlyMeshes.indexOf(e))&&(!this.excludedMeshes||!(this.excludedMeshes.length>0)||-1===this.excludedMeshes.indexOf(e))&&(0===this.includeOnlyWithLayerMask||(this.includeOnlyWithLayerMask&e.layerMask)!=0)&&(0===this.excludeWithLayerMask||!(this.excludeWithLayerMask&e.layerMask))}dispose(e,t=!1){if(this._shadowGenerators){let e=this._shadowGenerators.values();for(let t=e.next();!0!==t.done;t=e.next())t.value.dispose();this._shadowGenerators=null}if(this.getScene().stopAnimation(this),this._parentContainer){let e=this._parentContainer.lights.indexOf(this);e>-1&&this._parentContainer.lights.splice(e,1),this._parentContainer=null}for(let e of this.getScene().meshes)e._removeLightSource(this,!0);this._uniformBuffer.dispose(),this.getScene().removeLight(this),super.dispose(e,t)}getTypeID(){return 0}getScaledIntensity(){return this._photometricScale*this.intensity}clone(e,t=null){let i=l.GetConstructorFromName(this.getTypeID(),e,this.getScene());if(!i)return null;let s=d.SerializationHelper.Clone(i,this);return e&&(s.name=e),t&&(s.parent=t),s.setEnabled(this.isEnabled()),this.onClonedObservable.notifyObservers(s),s}serialize(){let e=d.SerializationHelper.Serialize(this);if(e.uniqueId=this.uniqueId,e.type=this.getTypeID(),this.parent&&this.parent._serializeAsParent(e),this.excludedMeshes.length>0)for(let t of(e.excludedMeshesIds=[],this.excludedMeshes))e.excludedMeshesIds.push(t.id);if(this.includedOnlyMeshes.length>0)for(let t of(e.includedOnlyMeshesIds=[],this.includedOnlyMeshes))e.includedOnlyMeshesIds.push(t.id);return d.SerializationHelper.AppendSerializedAnimations(this,e),e.ranges=this.serializeAnimationRanges(),e.isEnabled=this.isEnabled(),e}static GetConstructorFromName(e,t,i){let s=n.Node.Construct("Light_Type_"+e,t,i);return s||null}static Parse(e,t){let i=l.GetConstructorFromName(e.type,e.name,t);if(!i)return null;let s=d.SerializationHelper.Parse(i,e,t);if(e.excludedMeshesIds&&(s._excludedMeshesIds=e.excludedMeshesIds),e.includedOnlyMeshesIds&&(s._includedOnlyMeshesIds=e.includedOnlyMeshesIds),void 0!==e.parentId&&(s._waitingParentId=e.parentId),void 0!==e.parentInstanceIndex&&(s._waitingParentInstanceIndex=e.parentInstanceIndex),void 0!==e.falloffType&&(s.falloffType=e.falloffType),void 0!==e.lightmapMode&&(s.lightmapMode=e.lightmapMode),e.animations){for(let t=0;t<e.animations.length;t++){let i=e.animations[t],r=(0,o.GetClass)("BABYLON.Animation");r&&s.animations.push(r.Parse(i))}n.Node.ParseAnimationRanges(s,e,t)}return e.autoAnimate&&t.beginAnimation(s,e.autoAnimateFrom,e.autoAnimateTo,e.autoAnimateLoop,e.autoAnimateSpeed||1),void 0!==e.isEnabled&&s.setEnabled(e.isEnabled),s._onParsed(e,t),s}_onParsed(e,t){}_hookArrayForExcluded(e){let t=e.push;e.push=(...i)=>{let s=t.apply(e,i);if(this._clusteredContainer)return s;for(let e of i)e._resyncLightSource(this);return s};let i=e.splice;if(e.splice=(t,s)=>{let r=i.call(e,t,s??e.length);if(this._clusteredContainer)return r;for(let e of r)e._resyncLightSource(this);return r},!this._clusteredContainer)for(let t of e)t._resyncLightSource(this)}_hookArrayForIncludedOnly(e){let t=e.push;e.push=(...i)=>{let s=t.apply(e,i);return this._resyncMeshes(),s};let i=e.splice;e.splice=(t,s)=>{let r=i.call(e,t,s??e.length);return this._resyncMeshes(),r},this._resyncMeshes()}_resyncMeshes(){if(!this._clusteredContainer)for(let e of this.getScene().meshes)e._resyncLightSource(this)}_markMeshesAsLightDirty(){for(let e of this.getScene().meshes)-1!==e.lightSources.indexOf(this)&&e._markSubMeshesAsLightDirty()}_computePhotometricScale(){this._photometricScale=this._getPhotometricScale(),this.getScene().resetCachedMaterial()}_getPhotometricScale(){let e=0,t=this.getTypeID(),i=this.intensityMode;switch(i===l.INTENSITYMODE_AUTOMATIC&&(i=t===l.LIGHTTYPEID_DIRECTIONALLIGHT?l.INTENSITYMODE_ILLUMINANCE:l.INTENSITYMODE_LUMINOUSINTENSITY),t){case l.LIGHTTYPEID_POINTLIGHT:case l.LIGHTTYPEID_SPOTLIGHT:switch(i){case l.INTENSITYMODE_LUMINOUSPOWER:e=1/(4*Math.PI);break;case l.INTENSITYMODE_LUMINOUSINTENSITY:e=1;break;case l.INTENSITYMODE_LUMINANCE:e=this.radius*this.radius}break;case l.LIGHTTYPEID_DIRECTIONALLIGHT:switch(i){case l.INTENSITYMODE_ILLUMINANCE:e=1;break;case l.INTENSITYMODE_LUMINANCE:{let t=this.radius;e=2*Math.PI*(1-Math.cos(t=Math.max(t,.001)))}}break;case l.LIGHTTYPEID_HEMISPHERICLIGHT:e=1}return e}_reorderLightsInScene(){let e=this.getScene();0!=this._renderPriority&&(e.requireLightSorting=!0),this.getScene().sortLightsByPriority()}areLightTexturesReady(){return!0}_isReady(){return!0}}l.FALLOFF_DEFAULT=h.LightConstants.FALLOFF_DEFAULT,l.FALLOFF_PHYSICAL=h.LightConstants.FALLOFF_PHYSICAL,l.FALLOFF_GLTF=h.LightConstants.FALLOFF_GLTF,l.FALLOFF_STANDARD=h.LightConstants.FALLOFF_STANDARD,l.LIGHTMAP_DEFAULT=h.LightConstants.LIGHTMAP_DEFAULT,l.LIGHTMAP_SPECULAR=h.LightConstants.LIGHTMAP_SPECULAR,l.LIGHTMAP_SHADOWSONLY=h.LightConstants.LIGHTMAP_SHADOWSONLY,l.INTENSITYMODE_AUTOMATIC=h.LightConstants.INTENSITYMODE_AUTOMATIC,l.INTENSITYMODE_LUMINOUSPOWER=h.LightConstants.INTENSITYMODE_LUMINOUSPOWER,l.INTENSITYMODE_LUMINOUSINTENSITY=h.LightConstants.INTENSITYMODE_LUMINOUSINTENSITY,l.INTENSITYMODE_ILLUMINANCE=h.LightConstants.INTENSITYMODE_ILLUMINANCE,l.INTENSITYMODE_LUMINANCE=h.LightConstants.INTENSITYMODE_LUMINANCE,l.LIGHTTYPEID_POINTLIGHT=h.LightConstants.LIGHTTYPEID_POINTLIGHT,l.LIGHTTYPEID_DIRECTIONALLIGHT=h.LightConstants.LIGHTTYPEID_DIRECTIONALLIGHT,l.LIGHTTYPEID_SPOTLIGHT=h.LightConstants.LIGHTTYPEID_SPOTLIGHT,l.LIGHTTYPEID_HEMISPHERICLIGHT=h.LightConstants.LIGHTTYPEID_HEMISPHERICLIGHT,l.LIGHTTYPEID_RECT_AREALIGHT=h.LightConstants.LIGHTTYPEID_RECT_AREALIGHT,(0,t.__decorate)([(0,i.serializeAsColor3)()],l.prototype,"diffuse",void 0),(0,t.__decorate)([(0,i.serializeAsColor3)()],l.prototype,"specular",void 0),(0,t.__decorate)([(0,i.serialize)()],l.prototype,"falloffType",void 0),(0,t.__decorate)([(0,i.serialize)()],l.prototype,"intensity",void 0),(0,t.__decorate)([(0,i.serialize)()],l.prototype,"range",null),(0,t.__decorate)([(0,i.serialize)()],l.prototype,"intensityMode",null),(0,t.__decorate)([(0,i.serialize)()],l.prototype,"radius",null),(0,t.__decorate)([(0,i.serialize)()],l.prototype,"_renderPriority",void 0),(0,t.__decorate)([(0,i.expandToProperty)("_reorderLightsInScene")],l.prototype,"renderPriority",void 0),(0,t.__decorate)([(0,i.serialize)("shadowEnabled")],l.prototype,"_shadowEnabled",void 0),(0,t.__decorate)([(0,i.serialize)("excludeWithLayerMask")],l.prototype,"_excludeWithLayerMask",void 0),(0,t.__decorate)([(0,i.serialize)("includeOnlyWithLayerMask")],l.prototype,"_includeOnlyWithLayerMask",void 0),(0,t.__decorate)([(0,i.serialize)("lightmapMode")],l.prototype,"_lightmapMode",void 0),e.s(["Light",0,l])},7509,21545,e=>{"use strict";var t=e.i(10272),i=e.i(37143),s=e.i(96265),r=e.i(70653),n=e.i(46778),a=e.i(34548),o=e.i(77052);class h extends n.Light{constructor(e,t,i,n){super(e,i,n),this.groundColor=new r.Color3(0,0,0),this.direction=t||s.Vector3.Up()}_buildUniformLayout(){this._uniformBuffer.addUniform("vLightData",4),this._uniformBuffer.addUniform("vLightDiffuse",4),this._uniformBuffer.addUniform("vLightSpecular",4),this._uniformBuffer.addUniform("vLightGround",3),this._uniformBuffer.addUniform("shadowsInfo",3),this._uniformBuffer.addUniform("depthValues",2),this._uniformBuffer.create()}getClassName(){return"HemisphericLight"}setDirectionToTarget(e){return this.direction=s.Vector3.Normalize(e.subtract(s.Vector3.Zero())),this.direction}getShadowGenerator(){return null}transferToEffect(e,t){let i=s.Vector3.Normalize(this.direction);return this._uniformBuffer.updateFloat4("vLightData",i.x,i.y,i.z,0,t),this._uniformBuffer.updateColor3("vLightGround",this.groundColor.scale(this.intensity),t),this}transferToNodeMaterialEffect(e,t){let i=s.Vector3.Normalize(this.direction);return e.setFloat3(t,i.x,i.y,i.z),this}computeWorldMatrix(){return this._worldMatrix||(this._worldMatrix=s.Matrix.Identity()),this._worldMatrix}getTypeID(){return n.Light.LIGHTTYPEID_HEMISPHERICLIGHT}prepareLightSpecificDefines(e,t){e["HEMILIGHT"+t]=!0}}(0,t.__decorate)([(0,i.serializeAsColor3)()],h.prototype,"groundColor",void 0),(0,t.__decorate)([(0,i.serializeAsVector3)()],h.prototype,"direction",void 0);let d=!1;function l(){d||(d=!0,a.Node.AddNodeConstructor("Light_Type_3",(e,t)=>()=>new h(e,s.Vector3.Zero(),t)),(0,o.RegisterClass)("BABYLON.HemisphericLight",h))}e.s(["HemisphericLight",0,h,"RegisterHemisphericLight",0,l],21545),l(),e.s([],7509)},12847,e=>{"use strict";e.i(7509);var t=e.i(21545);e.s(["HemisphericLight",()=>t.HemisphericLight,"RegisterHemisphericLight",()=>t.RegisterHemisphericLight])}]);
@@ -0,0 +1 @@
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,36333,e=>{"use strict";var t=e.i(43350),i=e.i(63719),s=e.i(5110),n=e.i(77052);class o extends t.FlowGraphEventBlock{constructor(e){super(e),this.type="PointerDown",this.targetMesh=this.registerDataInput("targetMesh",s.RichTypeAny,e?.targetMesh),this.pointerId=this.registerDataOutput("pointerId",s.RichTypeNumber),this.pickedMesh=this.registerDataOutput("pickedMesh",s.RichTypeAny),this.pickedPoint=this.registerDataOutput("pickedPoint",s.RichTypeAny)}_executeEvent(e,t){let s=this.targetMesh.getValue(e),n=t.pickInfo?.pickedMesh;return!(!s||n===s||n&&(0,i._IsDescendantOf)(n,s))||(this.pointerId.setValue(t.event.pointerId,e),this.pickedMesh.setValue(n??null,e),this.pickedPoint.setValue(t.pickInfo?.pickedPoint??null,e),this._execute(e),!this.config?.stopPropagation)}_preparePendingTasks(e){}_cancelPendingTasks(e){}getClassName(){return"FlowGraphPointerDownEventBlock"}}let r=!1;function p(){r||(r=!0,(0,n.RegisterClass)("FlowGraphPointerDownEventBlock",o))}e.s(["FlowGraphPointerDownEventBlock",0,o,"RegisterFlowGraphPointerDownEventBlock",0,p],45798),p(),e.s([],45817),e.i(45817),e.i(45798),e.s(["FlowGraphPointerDownEventBlock",0,o],36333)}]);