@uptimizr/dashboard 0.3.0 → 0.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/out/404.html +1 -1
- package/out/__next.__PAGE__.txt +4 -4
- package/out/__next._full.txt +11 -11
- package/out/__next._head.txt +4 -4
- package/out/__next._index.txt +4 -4
- package/out/__next._tree.txt +2 -2
- package/out/_next/static/chunks/0-29qf-q72olu.js +1 -0
- package/out/_next/static/chunks/0-tk5ptli--r0.js +1 -0
- package/out/_next/static/chunks/006nix8mv66z_.js +1 -0
- package/out/_next/static/chunks/01aeari2x_tlz.js +1 -0
- package/out/_next/static/chunks/0296l8lzd69ns.js +1 -0
- package/out/_next/static/chunks/02tc9r3sc7fgc.js +1 -0
- package/out/_next/static/chunks/{256k1jw1m--l7.js → 03st_hmor6qju.js} +1 -1
- package/out/_next/static/chunks/{2ue1wo4ryk87z.js → 04pk6n3z75dcy.js} +1 -1
- package/out/_next/static/chunks/05l3dluxivcor.js +1 -0
- package/out/_next/static/chunks/06ljadw2-i91-.js +1 -0
- package/out/_next/static/chunks/06m_64ysu9kn0.js +1 -0
- package/out/_next/static/chunks/{2ycvtdd68gub7.js → 08bm3ye5govev.js} +1 -1
- package/out/_next/static/chunks/{32ahba5ezp467.js → 08rk1dp1wb-gm.js} +38 -38
- package/out/_next/static/chunks/091ll-lp6spu3.js +1 -0
- package/out/_next/static/chunks/09p5fltt7o3to.js +1 -0
- package/out/_next/static/chunks/{3mbnfpufs2-7e.js → 0_tqu60oxaj7q.js} +1 -1
- package/out/_next/static/chunks/{3riekaxl3uxfb.js → 0_ux41xcoea3u.js} +40 -40
- package/out/_next/static/chunks/0b7-mrrg7ryj2.js +1 -0
- package/out/_next/static/chunks/{29tfeb6amdkjb.js → 0c2k-gvwph4qs.js} +1 -1
- package/out/_next/static/chunks/0e7xuupmrw4-e.js +1 -0
- package/out/_next/static/chunks/0f_nv15a8q415.js +1 -0
- package/out/_next/static/chunks/0fxfsshoxnnh6.js +4 -0
- package/out/_next/static/chunks/0g6u34xkzrpjn.js +1 -0
- package/out/_next/static/chunks/0g7p8zp2kxve5.js +1 -0
- package/out/_next/static/chunks/0gblbgw7w7r9w.js +1 -0
- package/out/_next/static/chunks/0gwa154w_0wuh.js +1 -0
- package/out/_next/static/chunks/0h-ohf4gntwtj.js +1 -0
- package/out/_next/static/chunks/0h1o0cr3327tt.js +1 -0
- package/out/_next/static/chunks/0i9oqg-xbq-a9.js +1 -0
- package/out/_next/static/chunks/0ioyy42h35hnd.js +1 -0
- package/out/_next/static/chunks/{242xhzxxetctz.js → 0jf3n5n5yrr4o.js} +1 -1
- package/out/_next/static/chunks/{3idaz_s77e-j_.js → 0jxklh_ayjd4b.js} +12 -12
- package/out/_next/static/chunks/{07eeopuufsqp-.js → 0k79ryqehst0b.js} +11 -11
- package/out/_next/static/chunks/{3be6s4_kn9q-o.js → 0kcbdjbdxu_wa.js} +1 -1
- package/out/_next/static/chunks/0kr-bd6fuqc2s.js +1 -0
- package/out/_next/static/chunks/0l3wwyl93sqh9.js +1 -0
- package/out/_next/static/chunks/{3l1dr_qm_x5kp.js → 0m0n7kjzscx0y.js} +1 -1
- package/out/_next/static/chunks/0m3yjobjg36ce.js +1 -0
- package/out/_next/static/chunks/{1a9l89j7e6mqu.js → 0mk8tangq9equ.js} +1 -1
- package/out/_next/static/chunks/0mqi0xn_c010j.js +1 -0
- package/out/_next/static/chunks/0msckddycfy76.js +1 -0
- package/out/_next/static/chunks/0ngai1_zxwsk8.js +1 -0
- package/out/_next/static/chunks/0ngiuj5k-or6g.js +1 -0
- package/out/_next/static/chunks/0nx_t8iq-324h.js +1 -0
- package/out/_next/static/chunks/0oap0o8a8a_cl.js +1 -0
- package/out/_next/static/chunks/{3tm-pqpmq_ppw.js → 0ostjlqtwkhqr.js} +1 -1
- package/out/_next/static/chunks/{1uu-rt_8p1edp.js → 0ptp4ne7j6yg6.js} +11 -11
- package/out/_next/static/chunks/0rruvj1cyflrh.js +1 -0
- package/out/_next/static/chunks/{0o_mp98xzqfyf.js → 0tl8j9f8lt0yf.js} +1 -1
- package/out/_next/static/chunks/{0sqys6o2pbe1q.js → 0ufakw529sr9d.js} +38 -38
- package/out/_next/static/chunks/{3ne77mjdz2y7o.js → 0vddljjnmozzx.js} +1 -1
- package/out/_next/static/chunks/{0dm32-jq30tg8.js → 0w0sx062qmcsh.js} +1 -1
- package/out/_next/static/chunks/{0rys92_73hdb0.js → 0x4-zyy8pzmlq.js} +1 -1
- package/out/_next/static/chunks/0x6i6e6863tir.js +1 -0
- package/out/_next/static/chunks/{3k9d4ylc3li2t.js → 0zcdc17ie6lmh.js} +10 -10
- package/out/_next/static/chunks/{44nxswtahaq4w.js → 0zo4x1j8ug-kb.js} +5 -5
- package/out/_next/static/chunks/{0jmn7u31w95ly.js → 0zwkmsojeuekb.js} +2 -2
- package/out/_next/static/chunks/{3m6nmp2dca6un.js → 1--aypw9o8yng.js} +37 -37
- package/out/_next/static/chunks/1--kelnig7pxx.js +1 -0
- package/out/_next/static/chunks/1-ud6hztxiazp.js +1 -0
- package/out/_next/static/chunks/10v4rskkrjgd_.js +1 -0
- package/out/_next/static/chunks/117ys3lltfmcu.js +1 -0
- package/out/_next/static/chunks/14klj_i6-l-10.js +1 -0
- package/out/_next/static/chunks/159u-hx80yfaw.js +1 -0
- package/out/_next/static/chunks/{3gimb3z_mteou.js → 168r9r65o9jnc.js} +1 -1
- package/out/_next/static/chunks/{0w8_1yjvol1f0.js → 16d4a4iopj2if.js} +5 -5
- package/out/_next/static/chunks/{2z_jn9ud28fk7.js → 17d1isrw8gtnb.js} +1 -1
- package/out/_next/static/chunks/17dabmbnkkplu.js +1 -0
- package/out/_next/static/chunks/17dmbt396_tyq.js +1 -0
- package/out/_next/static/chunks/17ev44x54_jrd.js +1 -0
- package/out/_next/static/chunks/17svumd4o0qnc.js +1 -0
- package/out/_next/static/chunks/17v12p4sfraa0.js +1 -0
- package/out/_next/static/chunks/18avgwx9nlxp9.js +1 -0
- package/out/_next/static/chunks/{0tw4dyl-cp-hd.js → 18k-0jn63_5ie.js} +1 -1
- package/out/_next/static/chunks/18r387bj9iv0j.js +1 -0
- package/out/_next/static/chunks/18ss4ls60s31e.js +1 -0
- package/out/_next/static/chunks/1a7cup181rjod.js +1 -0
- package/out/_next/static/chunks/1ajmblsp0wj0_.js +1 -0
- package/out/_next/static/chunks/{1dsy2ngmfflis.js → 1b2tkk7e_2o0k.js} +2 -2
- package/out/_next/static/chunks/{1ltux4lwz7muf.js → 1bv97vf67p_ri.js} +33 -33
- package/out/_next/static/chunks/1e1zozntzsx42.js +1 -0
- package/out/_next/static/chunks/1ek5rtpo6rxev.js +1 -0
- package/out/_next/static/chunks/1evp209qbr4cr.js +5 -0
- package/out/_next/static/chunks/1f1vq3goue1w4.js +1 -0
- package/out/_next/static/chunks/{296w2ke-v5tbm.js → 1f92k-xa0pl-3.js} +1 -1
- package/out/_next/static/chunks/1fa265388524p.js +1 -0
- package/out/_next/static/chunks/1fruncg3k-3pu.js +3 -0
- package/out/_next/static/chunks/{1_qzlkuxukhpq.js → 1fvlbwp6r93wo.js} +22 -22
- package/out/_next/static/chunks/1g3z43o3h-024.js +31 -0
- package/out/_next/static/chunks/1g_27texazqcj.js +1 -0
- package/out/_next/static/chunks/1iaxzjly2pap1.js +1 -0
- package/out/_next/static/chunks/{0c83pe1mpx456.js → 1j--a56ji33_x.js} +1 -1
- package/out/_next/static/chunks/{112hws17nz665.js → 1kl5xxohpr6-4.js} +1 -1
- package/out/_next/static/chunks/1kmsg9ef5djl3.js +1 -0
- package/out/_next/static/chunks/1kq86iv41cet4.js +1 -0
- package/out/_next/static/chunks/1l12hkz1g7uhf.js +1 -0
- package/out/_next/static/chunks/{3figbil1t4ssj.js → 1ll0ta8a2qx1p.js} +16 -16
- package/out/_next/static/chunks/{1ynju1jqfrcv0.js → 1oara6fkfvgs3.js} +1 -1
- package/out/_next/static/chunks/1par9m038tiov.js +1 -0
- package/out/_next/static/chunks/1rcfy_gzean3n.js +1 -0
- package/out/_next/static/chunks/{35h5n42wxwgzk.js → 1rne-b-ktit5c.js} +2 -2
- package/out/_next/static/chunks/1t60cososq7b0.js +1 -0
- package/out/_next/static/chunks/1tdg_eolxlcdl.js +1 -0
- package/out/_next/static/chunks/1vkww9l6lgqag.js +1 -0
- package/out/_next/static/chunks/1vpcaaf-0dn7q.js +1 -0
- package/out/_next/static/chunks/1vzmzrjhlm1q5.js +1 -0
- package/out/_next/static/chunks/1w9xu1qa9-wmv.js +1 -0
- package/out/_next/static/chunks/1wyr4at61q29n.js +1 -0
- package/out/_next/static/chunks/{3_mu-4rdjajna.js → 1y12bjsbq18_t.js} +34 -34
- package/out/_next/static/chunks/1y20bv6vl4ylk.js +1 -0
- package/out/_next/static/chunks/{0tnlbw78tgaxp.js → 1zcrrq1fx8g2y.js} +2 -2
- package/out/_next/static/chunks/224_scesvd739.js +1 -0
- package/out/_next/static/chunks/229mkx-mtfcgf.js +1 -0
- package/out/_next/static/chunks/{3yfrsm8lfi6ls.js → 22qzld31fbhbv.js} +1 -1
- package/out/_next/static/chunks/245h82k-g1nxr.js +1 -0
- package/out/_next/static/chunks/24cqjhy669845.js +1 -0
- package/out/_next/static/chunks/25ctnyh7njp-d.js +4 -0
- package/out/_next/static/chunks/2716si10ouwu-.js +1 -0
- package/out/_next/static/chunks/286ggpetqnwyo.js +3 -0
- package/out/_next/static/chunks/28f1onw3nywbz.js +1 -0
- package/out/_next/static/chunks/28ycc-1519hl2.js +1 -0
- package/out/_next/static/chunks/{17xd8hnazzr0g.js → 29v8falcmjvev.js} +34 -33
- package/out/_next/static/chunks/{0o6ayai0s01js.js → 2_7dp91937mqi.js} +1 -1
- package/out/_next/static/chunks/2_hgfg-cjqw1-.js +1 -0
- package/out/_next/static/chunks/2ab-99frxpah-.js +1 -0
- package/out/_next/static/chunks/2apt1vh-7rl2l.js +1 -0
- package/out/_next/static/chunks/2bn9u9r0rfhvc.js +1 -0
- package/out/_next/static/chunks/{45bwefvdpztfs.js → 2btqzk0tj0gz6.js} +1 -1
- package/out/_next/static/chunks/2cvvxifoedn6j.js +1 -0
- package/out/_next/static/chunks/2dhv35o59yzao.js +1 -0
- package/out/_next/static/chunks/{17q0c2h5ui10r.js → 2dolerz81xb52.js} +1 -1
- package/out/_next/static/chunks/{2xwy0-qfho1iz.js → 2dqg85hsevk3c.js} +2 -2
- package/out/_next/static/chunks/{41wt50z9tx9cx.js → 2enlv4yy0t-9j.js} +12 -12
- package/out/_next/static/chunks/2ey30qeaob985.js +1 -0
- package/out/_next/static/chunks/2f0r-df7tb3pu.js +1 -0
- package/out/_next/static/chunks/2gh4z57fem0_v.js +1 -0
- package/out/_next/static/chunks/2gtebfttq1v0o.js +1 -0
- package/out/_next/static/chunks/{1ua15kzid0_8p.js → 2h051-1hu4co_.js} +9 -9
- package/out/_next/static/chunks/2h1uw3cluvmmo.js +1 -0
- package/out/_next/static/chunks/2ib62lnqqaf4p.js +1 -0
- package/out/_next/static/chunks/2j-sax2xfdv7l.js +1 -0
- package/out/_next/static/chunks/{3z84au-mitjjw.js → 2k4s5rt7-l8jr.js} +1 -1
- package/out/_next/static/chunks/2kje_jvmwsvwo.js +1 -0
- package/out/_next/static/chunks/{2cbmf9m7lqv6k.js → 2kn_dqzbyabtn.js} +1 -1
- package/out/_next/static/chunks/2ktxjmx03u9l3.js +1 -0
- package/out/_next/static/chunks/2kw33jl_i9o5j.css +3 -0
- package/out/_next/static/chunks/2l_oqx9idxcs8.js +1 -0
- package/out/_next/static/chunks/{42k2-4_2hrg6u.js → 2mleh3pbge181.js} +1 -1
- package/out/_next/static/chunks/{31u5lbu1vxznh.js → 2npk7tr63h7rl.js} +1 -1
- package/out/_next/static/chunks/2op88btas-hl8.js +1 -0
- package/out/_next/static/chunks/{1gs-5722l4u59.js → 2p8dbh81chhon.js} +1 -1
- package/out/_next/static/chunks/{2yph6f7khgqii.js → 2reukv9c7cq_9.js} +1 -1
- package/out/_next/static/chunks/{14ggsmqwej_tt.js → 2rjc8yn50ducj.js} +34 -34
- package/out/_next/static/chunks/2s0dwzg7kq36n.js +1 -0
- package/out/_next/static/chunks/2vaoftqgc44cg.js +1 -0
- package/out/_next/static/chunks/{3_gku1pwluoo0.js → 2vmybybb3dvia.js} +1 -1
- package/out/_next/static/chunks/2w7yf7ouyrlkb.js +1 -0
- package/out/_next/static/chunks/{3218lp8l0a5g_.js → 2y75diyxqlhzl.js} +1 -1
- package/out/_next/static/chunks/{0fh-9h9ylxskr.js → 2yr9wt421xdjr.js} +17 -17
- package/out/_next/static/chunks/{0otsec99kdkt7.js → 2yzui3v-besdu.js} +4 -4
- package/out/_next/static/chunks/{3wi9gzq2mtr_q.js → 2z9ot-w1x60fv.js} +1 -1
- package/out/_next/static/chunks/2zljunurdji0q.js +1 -0
- package/out/_next/static/chunks/30363ptka3vzy.js +1 -0
- package/out/_next/static/chunks/{38x3c1ra5slhe.js → 3043pprgv9ors.js} +23 -23
- package/out/_next/static/chunks/340pg0qkv5tqq.js +1 -0
- package/out/_next/static/chunks/{37epa8fz59vba.js → 348hdbpkkcq_2.js} +22 -21
- package/out/_next/static/chunks/34gp3hvr3j6um.js +1 -0
- package/out/_next/static/chunks/38ea9kqlbxt86.js +1 -0
- package/out/_next/static/chunks/38g9jpxjoxn2x.js +1 -0
- package/out/_next/static/chunks/390fogn9oz13i.js +1 -0
- package/out/_next/static/chunks/{3w9go565cjhq3.js → 39lxb7c--3_2u.js} +30 -30
- package/out/_next/static/chunks/39ojyykom0z2r.js +1 -0
- package/out/_next/static/chunks/{2bjlls8-qe05r.js → 3_bzxvqtk1t53.js} +12 -12
- package/out/_next/static/chunks/3ajhvedcs_lzb.js +1 -0
- package/out/_next/static/chunks/3bsvp8qhjqdu0.js +1 -0
- package/out/_next/static/chunks/{023axeoslq39i.js → 3d0ejsnhbzi-j.js} +1 -1
- package/out/_next/static/chunks/3d5yb9ybkz7hx.js +1 -0
- package/out/_next/static/chunks/{0echnagbkyx79.js → 3efuvh_35yhes.js} +39 -39
- package/out/_next/static/chunks/3fx3sriw1w3sa.js +1 -0
- package/out/_next/static/chunks/{2qq3uzsbiicw3.js → 3fz7tc-4j13uv.js} +21 -21
- package/out/_next/static/chunks/3g4e2txsrb2p2.js +1 -0
- package/out/_next/static/chunks/{1m_buecgcq67j.js → 3g5ae-38cepwm.js} +199 -199
- package/out/_next/static/chunks/3g_h_00xs9u59.js +1 -0
- package/out/_next/static/chunks/3gi0f1kg72xsf.js +1 -0
- package/out/_next/static/chunks/{38fhw7fatsyvd.js → 3he9bxsc67ivq.js} +1 -1
- package/out/_next/static/chunks/3hr-mlwi78nov.js +1 -0
- package/out/_next/static/chunks/3jha6wlqw8459.js +1 -0
- package/out/_next/static/chunks/3kr1polwvt6o_.js +1 -0
- package/out/_next/static/chunks/{0j__xaq_8_di1.js → 3mwoauxszd3mn.js} +1 -1
- package/out/_next/static/chunks/3ovd8o_usay7j.js +1 -0
- package/out/_next/static/chunks/3pdpaqzwhhijn.js +1 -0
- package/out/_next/static/chunks/3pyggl13glbdc.js +1 -0
- package/out/_next/static/chunks/3rl45k759wfi1.js +1 -0
- package/out/_next/static/chunks/{0flc7nppbmsl1.js → 3sbm1ak54_2ep.js} +1 -1
- package/out/_next/static/chunks/3sg4zff4-h3t1.js +1 -0
- package/out/_next/static/chunks/3urd7r018nel4.js +1 -0
- package/out/_next/static/chunks/3v0td-ziuai2i.js +1 -0
- package/out/_next/static/chunks/3vaho-xrtuchd.js +2 -0
- package/out/_next/static/chunks/3vxkkhs0vi_xa.js +1 -0
- package/out/_next/static/chunks/{1g7emwu85bifo.js → 3w1a2o8nevap8.js} +18 -18
- package/out/_next/static/chunks/3wqs57qehored.js +1 -0
- package/out/_next/static/chunks/3x6wpv_z5m6rz.js +1 -0
- package/out/_next/static/chunks/{1qg_etglhvp9h.js → 3y9c26fv1poq_.js} +199 -199
- package/out/_next/static/chunks/{0ql-s-tsmel_u.js → 404f_93w2e8ty.js} +1 -1
- package/out/_next/static/chunks/40acif2eh_unv.js +1 -0
- package/out/_next/static/chunks/{1hatz-jlztrn0.js → 4227p7752rnny.js} +1 -1
- package/out/_next/static/chunks/42oyfkhdvb-u3.js +1 -0
- package/out/_next/static/chunks/44gsjajjdhf51.js +1 -0
- package/out/_next/static/chunks/{turbopack-19105pdhzxp1x.js → turbopack-16ab30_1p4vhq.js} +1 -1
- package/out/_not-found/__next._full.txt +9 -9
- package/out/_not-found/__next._head.txt +4 -4
- package/out/_not-found/__next._index.txt +4 -4
- package/out/_not-found/__next._not-found.__PAGE__.txt +2 -2
- package/out/_not-found/__next._not-found.txt +3 -3
- package/out/_not-found/__next._tree.txt +2 -2
- package/out/_not-found.html +1 -1
- package/out/_not-found.txt +9 -9
- package/out/index.html +1 -1
- package/out/index.txt +11 -11
- package/package.json +8 -8
- package/out/_next/static/chunks/002cjeoit6-up.js +0 -1
- package/out/_next/static/chunks/02n1uiltexy3w.js +0 -1
- package/out/_next/static/chunks/03ab2khhe8-x5.js +0 -1
- package/out/_next/static/chunks/04_yytpc2paxy.js +0 -1
- package/out/_next/static/chunks/06qot1qvlsqaz.js +0 -1
- package/out/_next/static/chunks/08a5xek662n8n.js +0 -1
- package/out/_next/static/chunks/08wuc9--s8zn_.js +0 -1
- package/out/_next/static/chunks/0927l-ygd5c8d.js +0 -1
- package/out/_next/static/chunks/09510356f0lad.js +0 -1
- package/out/_next/static/chunks/0_eu72k69lxj7.js +0 -1
- package/out/_next/static/chunks/0beajlqy8p8b5.js +0 -1
- package/out/_next/static/chunks/0dn0yx0rn6mpf.js +0 -1
- package/out/_next/static/chunks/0eh1ml86u8dh7.js +0 -1
- package/out/_next/static/chunks/0fzmc1up21g1i.js +0 -1
- package/out/_next/static/chunks/0g_v2zswo4l6f.js +0 -1
- package/out/_next/static/chunks/0grlb9lo8e502.js +0 -1
- package/out/_next/static/chunks/0h22pg-0xrxnm.js +0 -1
- package/out/_next/static/chunks/0j6p1pmc14t96.js +0 -1
- package/out/_next/static/chunks/0j_6dx-sttgsy.js +0 -1
- package/out/_next/static/chunks/0kfd-cvj5fvtz.js +0 -1
- package/out/_next/static/chunks/0r47gs_e93cka.js +0 -1
- package/out/_next/static/chunks/0titqrn1qmcsv.js +0 -1
- package/out/_next/static/chunks/0tl_moiyi2txt.js +0 -1
- package/out/_next/static/chunks/0v82oqyoy9zol.js +0 -1
- package/out/_next/static/chunks/0vbce-8omgurc.js +0 -1
- package/out/_next/static/chunks/0vfsg5byzep_0.js +0 -1
- package/out/_next/static/chunks/0xh144a5fz58h.js +0 -1
- package/out/_next/static/chunks/0xjltg_pph0c8.js +0 -1
- package/out/_next/static/chunks/0yeqgh0dnas8d.js +0 -1
- package/out/_next/static/chunks/101-7e_7up7rk.js +0 -1
- package/out/_next/static/chunks/128e51hj_04r0.js +0 -1
- package/out/_next/static/chunks/12kv810lohbsx.js +0 -5
- package/out/_next/static/chunks/14bws-suyy5zu.js +0 -1
- package/out/_next/static/chunks/15s7425ffrec9.js +0 -3
- package/out/_next/static/chunks/17genz6pkmty_.js +0 -1
- package/out/_next/static/chunks/18dczy9ylt2s_.js +0 -1
- package/out/_next/static/chunks/18xs_kvsaolb0.js +0 -1
- package/out/_next/static/chunks/19016f8-ry0z6.js +0 -1
- package/out/_next/static/chunks/1_6oejyxj39li.js +0 -1
- package/out/_next/static/chunks/1_aon8nz9p1fr.js +0 -1
- package/out/_next/static/chunks/1akaj5rhgitn3.js +0 -1
- package/out/_next/static/chunks/1bvl1ws7b_3gn.js +0 -1
- package/out/_next/static/chunks/1cdbk6kxyr1c9.js +0 -1
- package/out/_next/static/chunks/1fbjkk55uu4_g.js +0 -1
- package/out/_next/static/chunks/1furcfsgrw_3g.js +0 -1
- package/out/_next/static/chunks/1g0-f1g3gn_rs.js +0 -1
- package/out/_next/static/chunks/1gt4kh0_xmigy.js +0 -1
- package/out/_next/static/chunks/1h8xzuuhhglu9.js +0 -1
- package/out/_next/static/chunks/1iioifo7i0t0_.js +0 -1
- package/out/_next/static/chunks/1iiz7jqgj20z0.js +0 -1
- package/out/_next/static/chunks/1kujmd5n0j9nk.js +0 -1
- package/out/_next/static/chunks/1n9sy0yt5d2vq.js +0 -1
- package/out/_next/static/chunks/1nj82er7msdto.js +0 -2
- package/out/_next/static/chunks/1p1gz6dseck--.js +0 -1
- package/out/_next/static/chunks/1p1xtsfwvpuqo.js +0 -1
- package/out/_next/static/chunks/1p8f6okk2ewbz.js +0 -1
- package/out/_next/static/chunks/1pdep2_c530sg.js +0 -1
- package/out/_next/static/chunks/1th_t5ujeqlkf.js +0 -1
- package/out/_next/static/chunks/1thr-mdzbu96v.js +0 -1
- package/out/_next/static/chunks/1tta1a064979p.js +0 -1
- package/out/_next/static/chunks/1u_riwm0nfww7.js +0 -1
- package/out/_next/static/chunks/1uu93wuxigx4k.js +0 -1
- package/out/_next/static/chunks/1vuq3dos1406d.css +0 -3
- package/out/_next/static/chunks/1zfojlgb15okk.js +0 -1
- package/out/_next/static/chunks/1zj8x5wbgnzz-.js +0 -1
- package/out/_next/static/chunks/1zl6t15gh34nn.js +0 -1
- package/out/_next/static/chunks/2-qo2o1_fmpy-.js +0 -3
- package/out/_next/static/chunks/223vrr_4sfhsj.js +0 -1
- package/out/_next/static/chunks/22cr2b04btguf.js +0 -1
- package/out/_next/static/chunks/24essz5mmvx-6.js +0 -1
- package/out/_next/static/chunks/259obyrpxcv6r.js +0 -1
- package/out/_next/static/chunks/26v9yqicofqba.js +0 -1
- package/out/_next/static/chunks/2712627rfsmwn.js +0 -1
- package/out/_next/static/chunks/290d93hmm_e8b.js +0 -1
- package/out/_next/static/chunks/2_2fk7iddrs43.js +0 -1
- package/out/_next/static/chunks/2ckd7f1wbfod-.js +0 -1
- package/out/_next/static/chunks/2d6hru4qo23tt.js +0 -1
- package/out/_next/static/chunks/2ejvntxtvf5o9.js +0 -1
- package/out/_next/static/chunks/2f7_3tzf7xhps.js +0 -1
- package/out/_next/static/chunks/2gxd_o1g89_bv.js +0 -1
- package/out/_next/static/chunks/2hd2txb4-m9k1.js +0 -1
- package/out/_next/static/chunks/2hpxou_cnp4f_.js +0 -1
- package/out/_next/static/chunks/2izioctrfc0s5.js +0 -1
- package/out/_next/static/chunks/2jhnk4h4n0udv.js +0 -1
- package/out/_next/static/chunks/2jpkhkk9zi8-f.js +0 -1
- package/out/_next/static/chunks/2kpet_l1kq2sx.js +0 -1
- package/out/_next/static/chunks/2nck5w4c7leb7.js +0 -1
- package/out/_next/static/chunks/2qqqpu0ahfdda.js +0 -1
- package/out/_next/static/chunks/2r3ct6se2qn8z.js +0 -1
- package/out/_next/static/chunks/2u-f7mmxvk8wj.js +0 -1
- package/out/_next/static/chunks/2uk-vwlxe9-xr.js +0 -1
- package/out/_next/static/chunks/2ur5-lxdvv1jm.js +0 -1
- package/out/_next/static/chunks/2veqsohwfhfqc.js +0 -1
- package/out/_next/static/chunks/2vqlv9wnewhu9.js +0 -1
- package/out/_next/static/chunks/2wzshintp5lf8.js +0 -1
- package/out/_next/static/chunks/2x-00glogc485.js +0 -1
- package/out/_next/static/chunks/2yfxy0f5fqs4o.js +0 -1
- package/out/_next/static/chunks/2z88mt3ixktu3.js +0 -1
- package/out/_next/static/chunks/3-eswqjobiqk1.js +0 -1
- package/out/_next/static/chunks/30-tbi7pys6fp.js +0 -4
- package/out/_next/static/chunks/30c-nsedy_ce0.js +0 -1
- package/out/_next/static/chunks/337hn35kts7ud.js +0 -1
- package/out/_next/static/chunks/33dgpebv-tf73.js +0 -1
- package/out/_next/static/chunks/36jkdhq6kb-cf.js +0 -1
- package/out/_next/static/chunks/3833xfnz0a-ub.js +0 -1
- package/out/_next/static/chunks/38awrh_qxn22k.js +0 -1
- package/out/_next/static/chunks/39idqlqlcp5b9.js +0 -1
- package/out/_next/static/chunks/3coacc4-g-g5c.js +0 -1
- package/out/_next/static/chunks/3e00fzdfkclzq.js +0 -1
- package/out/_next/static/chunks/3e8fmlq0k5wkg.js +0 -1
- package/out/_next/static/chunks/3e9tzyrt4_98z.js +0 -1
- package/out/_next/static/chunks/3edelqkq92pil.js +0 -1
- package/out/_next/static/chunks/3j-4wuhs5weba.js +0 -1
- package/out/_next/static/chunks/3jjfnwvybayy7.js +0 -1
- package/out/_next/static/chunks/3jwm5dfk_78gc.js +0 -1
- package/out/_next/static/chunks/3l3_0ack3gy4k.js +0 -1
- package/out/_next/static/chunks/3lwhs5ja7tun3.js +0 -1
- package/out/_next/static/chunks/3mcd08gmt038z.js +0 -1
- package/out/_next/static/chunks/3mt5th7b1i_u9.js +0 -1
- package/out/_next/static/chunks/3puhrqtujktyv.js +0 -1
- package/out/_next/static/chunks/3rdifucupcgkg.js +0 -1
- package/out/_next/static/chunks/3sdoskq_buttj.js +0 -1
- package/out/_next/static/chunks/3sjq_xoi4rbyg.js +0 -31
- package/out/_next/static/chunks/3tg-ma9tv9xu4.js +0 -1
- package/out/_next/static/chunks/3xagd_2_9zft2.js +0 -1
- package/out/_next/static/chunks/3xsq_anpad-fb.js +0 -1
- package/out/_next/static/chunks/3ycv2qq7vpbua.js +0 -1
- package/out/_next/static/chunks/4030dhur2h70-.js +0 -1
- package/out/_next/static/chunks/40ffffml4h_3r.js +0 -4
- package/out/_next/static/chunks/431slrqh0wa0g.js +0 -1
- package/out/_next/static/chunks/43s_lbd1i2krj.js +0 -1
- /package/out/_next/static/{1NTbwHeIsn3AW-SeH9aP0 → 2AsIePMYsPfJoAl46w-g4}/_buildManifest.js +0 -0
- /package/out/_next/static/{1NTbwHeIsn3AW-SeH9aP0 → 2AsIePMYsPfJoAl46w-g4}/_clientMiddlewareManifest.js +0 -0
- /package/out/_next/static/{1NTbwHeIsn3AW-SeH9aP0 → 2AsIePMYsPfJoAl46w-g4}/_ssgManifest.js +0 -0
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,1719,e=>{"use strict";class t{static GetShadersRepository(e=0){return 0===e?t.ShadersRepository:t.ShadersRepositoryWGSL}static GetShadersStore(e=0){return 0===e?t.ShadersStore:t.ShadersStoreWGSL}static GetIncludesShadersStore(e=0){return 0===e?t.IncludesShadersStore:t.IncludesShadersStoreWGSL}}t.ShadersRepository="src/Shaders/",t.ShadersStore={},t.IncludesShadersStore={},t.ShadersRepositoryWGSL="src/ShadersWGSL/",t.ShadersStoreWGSL={},t.IncludesShadersStoreWGSL={},e.s(["ShaderStore",0,t])},87986,e=>{"use strict";let t=(0,e.i(75865).IsNavigatorAvailable)()&&/(Mac|iPhone|iPod|iPad)/i.test(navigator.platform);function r(e){return"number"==typeof e?e:e.value}e.s(["_AreSameIntegerClass",0,function(e,t){return"FlowGraphInteger"===e&&"FlowGraphInteger"===t},"_AreSameMatrixClass",0,function(e,t){return e===t&&("Matrix"===e||"Matrix2D"===e||"Matrix3D"===e)},"_AreSameVectorOrQuaternionClass",0,function(e,t){return e===t&&("Vector2"===e||"Vector3"===e||"Vector4"===e||"Quaternion"===e)},"_GetClassNameOf",0,function(e){if(e.getClassName)return e.getClassName()},"_IsDescendantOf",0,function e(t,r){return!!(t.parent&&(t.parent===r||e(t.parent,r)))},"_IsMacPlatform",0,t,"getNumericValue",0,r,"isNumeric",0,function(e,t){let i="number"==typeof e||"number"==typeof e?.value;return i&&!t?!isNaN(r(e)):i}])},83464,e=>{"use strict";class t{static _CheckLimit(e,r){let i=t._LogLimitOutputs[e];return i?i.current++:(i={limit:r,current:1},t._LogLimitOutputs[e]=i),i.current<=i.limit}static _GenerateLimitMessage(e,r=1){let i=t._LogLimitOutputs[e];if(!i||!t.MessageLimitReached)return;let s=this._Levels[r];i.current===i.limit&&t[s.name](t.MessageLimitReached.replace(/%LIMIT%/g,""+i.limit).replace(/%TYPE%/g,s.name??""))}static _AddLogEntry(e){t._LogCache=e+t._LogCache,t.OnNewCacheEntry&&t.OnNewCacheEntry(e)}static _FormatMessage(e){let t=e=>e<10?"0"+e:""+e,r=new Date;return"["+t(r.getHours())+":"+t(r.getMinutes())+":"+t(r.getSeconds())+"]: "+e}static _LogDisabled(e,t){}static _LogEnabled(e=1,r,i){let s=Array.isArray(r)?r[0]:r;if(void 0!==i&&!t._CheckLimit(s,i))return;let n=t._FormatMessage(s),a=this._Levels[e],o=Array.isArray(r)?r.slice(1):[];a.logFunc&&a.logFunc("BJS - "+n,...o);let l=`<div style='color:${a.color}'>${n}</div><br>`;t._AddLogEntry(l),t._GenerateLimitMessage(s,e)}static get LogCache(){return t._LogCache}static ClearLogCache(){t._LogCache="",t._LogLimitOutputs={},t.errorsCount=0}static set LogLevels(e){for(let r of(t.Log=t._LogDisabled,t.Warn=t._LogDisabled,t.Error=t._LogDisabled,[t.MessageLogLevel,t.WarningLogLevel,t.ErrorLogLevel]))(e&r)===r&&(t[this._Levels[r].name]=t._LogEnabled.bind(t,r))}}t.NoneLogLevel=0,t.MessageLogLevel=1,t.WarningLogLevel=2,t.ErrorLogLevel=4,t.AllLogLevel=7,t.MessageLimitReached="Too many %TYPE%s (%LIMIT%), no more %TYPE%s will be reported for this message.",t._LogCache="",t._LogLimitOutputs={},t._Levels=[{},{color:"white",logFunc:console.log,name:"Log"},{color:"orange",logFunc:console.warn,name:"Warn"},{},{color:"red",logFunc:console.error,name:"Error"}],t.errorsCount=0,t.Log=t._LogEnabled.bind(t,t.MessageLogLevel),t.Warn=t._LogEnabled.bind(t,t.WarningLogLevel),t.Error=t._LogEnabled.bind(t,t.ErrorLogLevel),e.s(["Logger",0,t])},53477,e=>{"use strict";e.s(["RandomGUID",0,function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,e=>{let t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)})}])},82350,14831,97678,e=>{"use strict";var t,r,i=e.i(10534),s=e.i(75053);class n{constructor(e){this.value=this._toInt(e)}_toInt(e){return 0|e}add(e){return new n(this.value+e.value)}subtract(e){return new n(this.value-e.value)}multiply(e){return new n(Math.imul(this.value,e.value))}divide(e){return new n(this.value/e.value)}getClassName(){return n.ClassName}equals(e){return this.value===e.value}static FromValue(e){return new n(e)}toString(){return this.value.toString()}}n.ClassName="FlowGraphInteger",e.s(["FlowGraphInteger",0,n],14831);class a{constructor(e=[1,0,0,1]){this._m=e}get m(){return this._m}transformVector(e){return this.transformVectorToRef(e,new i.Vector2)}transformVectorToRef(e,t){return t.x=e.x*this._m[0]+e.y*this._m[1],t.y=e.x*this._m[2]+e.y*this._m[3],t}asArray(){return this.toArray()}toArray(e=[]){for(let t=0;t<4;t++)e[t]=this._m[t];return e}fromArray(e){for(let t=0;t<4;t++)this._m[t]=e[t];return this}multiplyToRef(e,t){let r=e._m,i=this._m,s=t._m;return s[0]=r[0]*i[0]+r[1]*i[2],s[1]=r[0]*i[1]+r[1]*i[3],s[2]=r[2]*i[0]+r[3]*i[2],s[3]=r[2]*i[1]+r[3]*i[3],t}multiply(e){return this.multiplyToRef(e,new a)}divideToRef(e,t){let r=this._m,i=e._m,s=t._m;return s[0]=r[0]/i[0],s[1]=r[1]/i[1],s[2]=r[2]/i[2],s[3]=r[3]/i[3],t}divide(e){return this.divideToRef(e,new a)}addToRef(e,t){let r=this._m,i=e.m,s=t.m;return s[0]=r[0]+i[0],s[1]=r[1]+i[1],s[2]=r[2]+i[2],s[3]=r[3]+i[3],t}add(e){return this.addToRef(e,new a)}subtractToRef(e,t){let r=this._m,i=e.m,s=t.m;return s[0]=r[0]-i[0],s[1]=r[1]-i[1],s[2]=r[2]-i[2],s[3]=r[3]-i[3],t}subtract(e){return this.subtractToRef(e,new a)}transpose(){let e=this._m;return new a([e[0],e[2],e[1],e[3]])}determinant(){let e=this._m;return e[0]*e[3]-e[1]*e[2]}inverse(){let e=this.determinant();if(0===e)throw Error("Matrix is not invertible");let t=this._m,r=1/e;return new a([t[3]*r,-t[1]*r,-t[2]*r,t[0]*r])}equals(e,t=0){let r=this._m,i=e.m;return 0===t?r[0]===i[0]&&r[1]===i[1]&&r[2]===i[2]&&r[3]===i[3]:Math.abs(r[0]-i[0])<t&&Math.abs(r[1]-i[1])<t&&Math.abs(r[2]-i[2])<t&&Math.abs(r[3]-i[3])<t}getClassName(){return"FlowGraphMatrix2D"}toString(){return`FlowGraphMatrix2D(${this._m.join(", ")})`}}class o{constructor(e=[1,0,0,0,1,0,0,0,1]){this._m=e}get m(){return this._m}transformVector(e){return this.transformVectorToRef(e,new i.Vector3)}transformVectorToRef(e,t){let r=this._m;return t.x=e.x*r[0]+e.y*r[1]+e.z*r[2],t.y=e.x*r[3]+e.y*r[4]+e.z*r[5],t.z=e.x*r[6]+e.y*r[7]+e.z*r[8],t}multiplyToRef(e,t){let r=e._m,i=this._m,s=t.m;return s[0]=r[0]*i[0]+r[1]*i[3]+r[2]*i[6],s[1]=r[0]*i[1]+r[1]*i[4]+r[2]*i[7],s[2]=r[0]*i[2]+r[1]*i[5]+r[2]*i[8],s[3]=r[3]*i[0]+r[4]*i[3]+r[5]*i[6],s[4]=r[3]*i[1]+r[4]*i[4]+r[5]*i[7],s[5]=r[3]*i[2]+r[4]*i[5]+r[5]*i[8],s[6]=r[6]*i[0]+r[7]*i[3]+r[8]*i[6],s[7]=r[6]*i[1]+r[7]*i[4]+r[8]*i[7],s[8]=r[6]*i[2]+r[7]*i[5]+r[8]*i[8],t}multiply(e){return this.multiplyToRef(e,new o)}divideToRef(e,t){let r=this._m,i=e.m,s=t.m;return s[0]=r[0]/i[0],s[1]=r[1]/i[1],s[2]=r[2]/i[2],s[3]=r[3]/i[3],s[4]=r[4]/i[4],s[5]=r[5]/i[5],s[6]=r[6]/i[6],s[7]=r[7]/i[7],s[8]=r[8]/i[8],t}divide(e){return this.divideToRef(e,new o)}addToRef(e,t){let r=this._m,i=e.m,s=t.m;return s[0]=r[0]+i[0],s[1]=r[1]+i[1],s[2]=r[2]+i[2],s[3]=r[3]+i[3],s[4]=r[4]+i[4],s[5]=r[5]+i[5],s[6]=r[6]+i[6],s[7]=r[7]+i[7],s[8]=r[8]+i[8],t}add(e){return this.addToRef(e,new o)}subtractToRef(e,t){let r=this._m,i=e.m,s=t.m;return s[0]=r[0]-i[0],s[1]=r[1]-i[1],s[2]=r[2]-i[2],s[3]=r[3]-i[3],s[4]=r[4]-i[4],s[5]=r[5]-i[5],s[6]=r[6]-i[6],s[7]=r[7]-i[7],s[8]=r[8]-i[8],t}subtract(e){return this.subtractToRef(e,new o)}toArray(e=[]){for(let t=0;t<9;t++)e[t]=this._m[t];return e}asArray(){return this.toArray()}fromArray(e){for(let t=0;t<9;t++)this._m[t]=e[t];return this}transpose(){let e=this._m;return new o([e[0],e[3],e[6],e[1],e[4],e[7],e[2],e[5],e[8]])}determinant(){let e=this._m;return e[0]*(e[4]*e[8]-e[5]*e[7])-e[1]*(e[3]*e[8]-e[5]*e[6])+e[2]*(e[3]*e[7]-e[4]*e[6])}inverse(){let e=this.determinant();if(0===e)throw Error("Matrix is not invertible");let t=this._m,r=1/e;return new o([(t[4]*t[8]-t[5]*t[7])*r,(t[2]*t[7]-t[1]*t[8])*r,(t[1]*t[5]-t[2]*t[4])*r,(t[5]*t[6]-t[3]*t[8])*r,(t[0]*t[8]-t[2]*t[6])*r,(t[2]*t[3]-t[0]*t[5])*r,(t[3]*t[7]-t[4]*t[6])*r,(t[1]*t[6]-t[0]*t[7])*r,(t[0]*t[4]-t[1]*t[3])*r])}equals(e,t=0){let r=this._m,i=e.m;return 0===t?r[0]===i[0]&&r[1]===i[1]&&r[2]===i[2]&&r[3]===i[3]&&r[4]===i[4]&&r[5]===i[5]&&r[6]===i[6]&&r[7]===i[7]&&r[8]===i[8]:Math.abs(r[0]-i[0])<t&&Math.abs(r[1]-i[1])<t&&Math.abs(r[2]-i[2])<t&&Math.abs(r[3]-i[3])<t&&Math.abs(r[4]-i[4])<t&&Math.abs(r[5]-i[5])<t&&Math.abs(r[6]-i[6])<t&&Math.abs(r[7]-i[7])<t&&Math.abs(r[8]-i[8])<t}getClassName(){return"FlowGraphMatrix3D"}toString(){return`FlowGraphMatrix3D(${this._m.join(", ")})`}}e.s(["FlowGraphMatrix2D",0,a,"FlowGraphMatrix3D",0,o],97678),(t=r||(r={})).Any="any",t.String="string",t.Number="number",t.Boolean="boolean",t.Object="object",t.Integer="FlowGraphInteger",t.Vector2="Vector2",t.Vector3="Vector3",t.Vector4="Vector4",t.Quaternion="Quaternion",t.Matrix="Matrix",t.Matrix2D="Matrix2D",t.Matrix3D="Matrix3D",t.Color3="Color3",t.Color4="Color4";class l{constructor(e,t,r=-1){this.typeName=e,this.defaultValue=t,this.animationType=r}serialize(e){e.typeName=this.typeName,e.defaultValue=this.defaultValue}}let c=new l("any",void 0),h=new l("string",""),u=new l("number",0,0),g=new l("boolean",!1),d=new l("Vector2",i.Vector2.Zero(),5),f=new l("Vector3",i.Vector3.Zero(),1),p=new l("Vector4",i.Vector4.Zero()),m=new l("Matrix",i.Matrix.Identity(),3),_=new l("Matrix2D",new a),y=new l("Matrix3D",new o),T=new l("Color3",s.Color3.Black(),4),x=new l("Color4",new s.Color4(0,0,0,0),7),I=new l("Quaternion",i.Quaternion.Identity(),2),P=new l("FlowGraphInteger",new n(0),0),b=!1;e.s(["RegisterFlowGraphRichTypes",0,function(){b||(b=!0,I.typeTransformer=e=>{if(e.getClassName){if("Vector4"===e.getClassName())return i.Quaternion.FromArray(e.asArray());else if("Vector3"===e.getClassName())return i.Quaternion.FromEulerVector(e);else if("Matrix"===e.getClassName())return i.Quaternion.FromRotationMatrix(e)}return e})},"RichTypeAny",0,c,"RichTypeBoolean",0,g,"RichTypeFlowGraphInteger",0,P,"RichTypeMatrix",0,m,"RichTypeMatrix2D",0,_,"RichTypeMatrix3D",0,y,"RichTypeNumber",0,u,"RichTypeQuaternion",0,I,"RichTypeString",0,h,"RichTypeVector2",0,d,"RichTypeVector3",0,f,"RichTypeVector4",0,p,"getAnimationTypeByFlowGraphType",0,function(e){switch(e){case"number":default:return 0;case"Vector2":return 5;case"Vector3":return 1;case"Matrix":return 3;case"Color3":return 4;case"Color4":return 7;case"Quaternion":return 2}},"getRichTypeByAnimationType",0,function(e){switch(e){case 0:return u;case 5:return d;case 1:return f;case 3:return m;case 4:return T;case 7:return x;case 2:return I;default:return c}},"getRichTypeByFlowGraphType",0,function(e){switch(e){case"string":return h;case"number":return u;case"boolean":return g;case"Vector2":return d;case"Vector3":return f;case"Vector4":return p;case"Matrix":return m;case"Color3":return T;case"Color4":return x;case"Quaternion":return I;case"FlowGraphInteger":return P;case"Matrix2D":return _;case"Matrix3D":return y;default:return c}},"getRichTypeFromValue",0,function(e){switch(typeof e){case"string":return h;case"number":return u;case"boolean":return g;case"object":if(e.getClassName)switch(e.getClassName()){case"Vector2":return d;case"Vector3":return f;case"Vector4":return p;case"Matrix":return m;case"Color3":return T;case"Color4":return x;case"Quaternion":return I;case"FlowGraphInteger":return P;case"Matrix2D":return _;case"Matrix3D":return y}return c;default:return c}}],82350)},34032,e=>{"use strict";var t=e.i(83464),r=e.i(75053),i=e.i(10534),s=e.i(14831),n=e.i(82350),a=e.i(97678);function o(e){return"Vector2"===e||"Vector3"===e||"Vector4"===e||"Quaternion"===e||"Color3"===e||"Color4"===e}function l(e,t){if(!e||!e.id&&!e.name)return;let r=t.getNodes().filter(t=>e.id?t.id===e.id:t.name===e.name);if(0===r.length)return;let i=e.type??e.className,s=i?r.filter(e=>e.getClassName()===i):[],n=s.length>0?s:r;return(e.uniqueId?n.find(t=>t.uniqueId===e.uniqueId):void 0)??n[0]}e.s(["GetSceneNodeFromSerializedReference",0,l,"defaultValueParseFunction",0,function e(t,c,h,u){let g,d=c[t],f=d?.type??d?.className,p=l(d,u);if(p)g=p;else if(o(f))g=function(e,t,s=!1){if("Vector2"===e)return i.Vector2.FromArray(t);if("Vector3"===e)return s&&(t[2]*=-1),i.Vector3.FromArray(t);if("Vector4"===e)return i.Vector4.FromArray(t);if("Quaternion"===e)return s&&(t[2]*=-1,t[3]*=-1),i.Quaternion.FromArray(t);if("Color3"===e)return new r.Color3(t[0],t[1],t[2]);else if("Color4"===e)return new r.Color4(t[0],t[1],t[2],t[3]);else throw Error(`Unknown vector class name ${e}`)}(f,d.value);else if("AnimationGroup"===f){let e=u.animationGroups.filter(e=>e.name===d.name);g=1===e.length?e[0]:e.find(e=>e.uniqueId===d.uniqueId)}else g="Matrix"===f?i.Matrix.FromArray(d.value):"Matrix2D"===f?new a.FlowGraphMatrix2D(d.value):"Matrix3D"===f?new a.FlowGraphMatrix3D(d.value):"FlowGraphInteger"===f?s.FlowGraphInteger.FromValue(d.value):"number"===f||"string"===f||"boolean"===f?d.value[0]:d&&void 0!==d.value?d.value:Array.isArray(d)&&d.length>0&&"object"==typeof d[0]&&null!==d[0]&&"eventData"in d[0]?d.reduce((t,r)=>(r.eventData&&(t[r.id]={type:(0,n.getRichTypeByFlowGraphType)(r.type)},void 0!==r.value&&(t[r.id].value=e("value",r,h,u))),t),{}):d;return g},"defaultValueSerializationFunction",0,function(e,r,i){var s;let n=r?.getClassName?.()??"";if(o(n)||"Matrix"===(s=n)||"Matrix2D"===s||"Matrix3D"===s)i[e]={value:r.asArray(),className:n};else if("FlowGraphInteger"===n)i[e]={value:r.value,className:n};else if(n&&(r.id||r.name))i[e]={id:r.id,name:r.name,className:n,uniqueId:r.uniqueId};else if("object"!=typeof r||null===r)i[e]=r;else{if("pathConverter"===e||Object.values(r).some(e=>"function"==typeof e))return;try{i[e]=JSON.parse(JSON.stringify(r))}catch{t.Logger.Warn(`FlowGraph serialization: value for key "${e}" is not JSON-serializable and was skipped.`)}}},"needsPathConverter",0,function(e){return"FlowGraphJsonPointerParserBlock"===e}])},85142,e=>{"use strict";var t,r,i=e.i(53477);(t=r||(r={}))[t.Input=0]="Input",t[t.Output=1]="Output",e.s(["FlowGraphConnection",0,class{constructor(e,t,r){this._ownerBlock=r,this._connectedPoint=[],this.uniqueId=(0,i.RandomGUID)(),this.connectedPointIds=[],this.name=e,this._connectionType=t}get connectionType(){return this._connectionType}_isSingularConnection(){return!0}isConnected(){return this._connectedPoint.length>0}connectTo(e){if(this._connectionType===e._connectionType)throw Error(`Cannot connect two points of type ${this.connectionType}`);if(this._isSingularConnection()&&this._connectedPoint.length>0||e._isSingularConnection()&&e._connectedPoint.length>0)throw Error("Max number of connections for point reached");this._connectedPoint.push(e),e._connectedPoint.push(this)}disconnectFrom(e,t=!0){let r=this._connectedPoint.indexOf(e),i=e._connectedPoint.indexOf(this);-1!==r&&-1!==i&&(t&&this._connectedPoint.splice(r,1),e._connectedPoint.splice(i,1))}disconnectFromAll(){for(let e of this._connectedPoint)this.disconnectFrom(e,!1);this._connectedPoint.length=0}dispose(){for(let e of this._connectedPoint)this.disconnectFrom(e)}serialize(e={}){for(let t of(e.uniqueId=this.uniqueId,e.name=this.name,e._connectionType=this._connectionType,e.connectedPointIds=[],e.className=this.getClassName(),this._connectedPoint))e.connectedPointIds.push(t.uniqueId)}getClassName(){return"FGConnection"}deserialize(e){this.uniqueId=e.uniqueId,this.name=e.name,this._connectionType=e._connectionType,this.connectedPointIds=e.connectedPointIds}}])},82531,e=>{"use strict";var t=e.i(53477),r=e.i(85142),i=e.i(57554),s=e.i(34032);class n extends r.FlowGraphConnection{constructor(e,t,r,s,n=s.defaultValue,a=!1){super(e,t,r),this.richType=s,this._defaultValue=n,this._optional=a,this._isDisabled=!1,this._lastValue=null,this.dataTransformer=null,this.onValueChangedObservable=new i.Observable}get optional(){return this._optional}get isDisabled(){return this._isDisabled}set isDisabled(e){this._isDisabled!==e&&(this._isDisabled=e,this._isDisabled&&this.disconnectFromAll())}_isSingularConnection(){return 0===this.connectionType}setValue(e,t){t._getConnectionValue(this)!==e&&(t._setConnectionValue(this,e),this.onValueChangedObservable.notifyObservers(e))}resetToDefaultValue(e){e._setConnectionValue(this,this._defaultValue)}_reresolveDefaultValueForScene(e){let t,r=this._defaultValue;if(!r||"object"!=typeof r)return;if("function"==typeof r.getClassName&&"function"==typeof r.getScene){if(r.getScene()===e)return;t={id:r.id,name:r.name,className:r.getClassName(),uniqueId:r.uniqueId}}else{if("string"!=typeof r.className||!r.id&&!r.name||void 0!==r.value)return;t=r}let i=(0,s.GetSceneNodeFromSerializedReference)(t,e);i&&(this._defaultValue=i)}connectTo(e){this._isDisabled||super.connectTo(e)}_getValueOrDefault(e){let t=e._getConnectionValue(this)??this._defaultValue;return this.dataTransformer?this.dataTransformer(t):t}getValue(e){if(1===this.connectionType){e._notifyExecuteNode(this._ownerBlock),this._ownerBlock._updateOutputs(e);let t=this._getValueOrDefault(e);return this._lastValue=t,this.richType.typeTransformer?this.richType.typeTransformer(t):t}let t=this.isConnected()?this._connectedPoint[0].getValue(e):this._getValueOrDefault(e);return this._lastValue=t,this.richType.typeTransformer?this.richType.typeTransformer(t):t}_getLastValue(){return this._lastValue}getClassName(){return"FlowGraphDataConnection"}serialize(e={}){super.serialize(e),e.richType={},this.richType.serialize(e.richType),e.optional=this._optional,(0,s.defaultValueSerializationFunction)("defaultValue",this._defaultValue,e)}}e.s(["FlowGraphBlock",0,class{constructor(e){this.config=e,this.uniqueId=(0,t.RandomGUID)(),this.name=this.config?.name??this.getClassName(),this.dataInputs=[],this.dataOutputs=[]}_updateOutputs(e){}registerDataInput(e,t,r){let i=new n(e,0,this,t,r);return this.dataInputs.push(i),i}registerDataOutput(e,t,r){let i=new n(e,1,this,t,r);return this.dataOutputs.push(i),i}getDataInput(e){return this.dataInputs.find(t=>t.name===e)}getDataOutput(e){return this.dataOutputs.find(t=>t.name===e)}serialize(e={},t=s.defaultValueSerializationFunction){if(e.uniqueId=this.uniqueId,e.config={},this.config){let r=this.config;for(let i of Object.keys(r))t(i,r[i],e.config)}for(let t of(e.dataInputs=[],e.dataOutputs=[],e.className=this.getClassName(),this.dataInputs)){let r={};t.serialize(r),e.dataInputs.push(r)}for(let t of this.dataOutputs){let r={};t.serialize(r),e.dataOutputs.push(r)}}deserialize(e){}_log(e,t,r){e.logger?.addLogItem({action:t,payload:r,className:this.getClassName(),uniqueId:this.uniqueId})}getClassName(){return"FlowGraphBlock"}}],82531)},82721,e=>{"use strict";var t=e.i(82531),r=e.i(85142);class i extends r.FlowGraphConnection{constructor(){super(...arguments),this.priority=0,this._lastActivationTime=-1}_isSingularConnection(){return!1}connectTo(e){super.connectTo(e),this._connectedPoint.sort((e,t)=>t.priority-e.priority)}_activateSignal(e){if(this._lastActivationTime=performance.now(),e.logger?.addLogItem({action:"ActivateSignal",className:this._ownerBlock.getClassName(),uniqueId:this._ownerBlock.uniqueId,payload:{connectionType:this.connectionType,name:this.name}}),0===this.connectionType){if(e._shouldBreak(this._ownerBlock,this))return;e._notifyExecuteNode(this._ownerBlock);let t=performance.now();this._ownerBlock._execute(e,this),this._ownerBlock._lastExecutionTime=performance.now()-t,e._increaseExecutionId()}else for(let t of this._connectedPoint)t._activateSignal(e)}}class s extends t.FlowGraphBlock{constructor(e){super(e),this.priority=0,this._lastExecutionTime=-1,this.signalInputs=[],this.signalOutputs=[],this.in=this._registerSignalInput("in"),this.error=this._registerSignalOutput("error")}_registerSignalInput(e){let t=new i(e,0,this);return this.signalInputs.push(t),t}_registerSignalOutput(e){let t=new i(e,1,this);return this.signalOutputs.push(t),t}_unregisterSignalInput(e){let t=this.signalInputs.findIndex(t=>t.name===e);-1!==t&&(this.signalInputs[t].dispose(),this.signalInputs.splice(t,1))}_unregisterSignalOutput(e){let t=this.signalOutputs.findIndex(t=>t.name===e);-1!==t&&(this.signalOutputs[t].dispose(),this.signalOutputs.splice(t,1))}_reportError(e,t){this.error.payload="string"==typeof t?Error(t):t,this.error._activateSignal(e)}getSignalInput(e){return this.signalInputs.find(t=>t.name===e)}getSignalOutput(e){return this.signalOutputs.find(t=>t.name===e)}serialize(e={}){for(let t of(super.serialize(e),e.signalInputs=[],e.signalOutputs=[],this.signalInputs)){let r={};t.serialize(r),e.signalInputs.push(r)}for(let t of this.signalOutputs){let r={};t.serialize(r),e.signalOutputs.push(r)}}deserialize(e){for(let t=0;t<e.signalInputs.length;t++){let r=this.getSignalInput(e.signalInputs[t].name);if(r)r.deserialize(e.signalInputs[t]);else throw Error("Could not find signal input with name "+e.signalInputs[t].name+" in block "+e.className)}for(let t=0;t<e.signalOutputs.length;t++){let r=this.getSignalOutput(e.signalOutputs[t].name);if(r)r.deserialize(e.signalOutputs[t]);else throw Error("Could not find signal output with name "+e.signalOutputs[t].name+" in block "+e.className)}}getClassName(){return"FlowGraphExecutionBlock"}}e.s(["FlowGraphExecutionBlock",0,s],82721)},95330,e=>{"use strict";var t=e.i(82721);class r extends t.FlowGraphExecutionBlock{constructor(e){super(e),this.out=this._registerSignalOutput("out")}}e.s(["FlowGraphExecutionBlockWithOutSignal",0,r])},42561,e=>{"use strict";var t=e.i(95330);class r extends t.FlowGraphExecutionBlockWithOutSignal{constructor(e,t){if(super(e),this._eventsSignalOutputs={},this.done=this._registerSignalOutput("done"),t)for(const e of t)this._eventsSignalOutputs[e]=this._registerSignalOutput(e+"Event")}_executeOnTick(e){}_startPendingTasks(e){e._getExecutionVariable(this,"_initialized",!1)&&(this._cancelPendingTasks(e),this._resetAfterCanceled(e)),this._preparePendingTasks(e),e._addPendingBlock(this),this.out._activateSignal(e),e._setExecutionVariable(this,"_initialized",!0)}_resetAfterCanceled(e){e._deleteExecutionVariable(this,"_initialized"),e._removePendingBlock(this)}}e.s(["FlowGraphAsyncExecutionBlock",0,r])},92719,e=>{"use strict";var t=e.i(42561);class r extends t.FlowGraphAsyncExecutionBlock{constructor(e){super(e),this.initPriority=0,this.type="NoTrigger",this._unregisterSignalInput("in")}deserialize(e){let t={...e};t.signalInputs=(e.signalInputs??[]).filter(e=>"in"!==e.name),super.deserialize(t)}_execute(e){e._notifyExecuteNode(this),this.done._activateSignal(e),this.out._activateSignal(e)}_startPendingTasks(e){e._getExecutionVariable(this,"_initialized",!1)&&(this._cancelPendingTasks(e),this._resetAfterCanceled(e)),this._preparePendingTasks(e),e._addPendingBlock(this),e._setExecutionVariable(this,"_initialized",!0)}}e.s(["FlowGraphEventBlock",0,r])},52572,e=>{"use strict";var t=e.i(4775);e.s(["DrawWrapper",0,class{static GetEffect(e){return void 0===e.getPipelineContext?e.effect:e}constructor(e,t=!0){this._wasPreviouslyReady=!1,this._forceRebindOnNextCall=!0,this._wasPreviouslyUsingInstances=null,this.effect=null,this.defines=null,this.drawContext=e.createDrawContext(),t&&(this.materialContext=e.createMaterialContext())}setEffect(e,t,r=!0){this.effect=e,void 0!==t&&(this.defines=t),r&&this.drawContext?.reset()}dispose(e=!1){if(this.effect){let r=this.effect;e?r.dispose():t.TimingTools.SetImmediate(()=>{r.getEngine().onEndFrameObservable.addOnce(()=>{r.dispose()})}),this.effect=null}this.drawContext?.dispose()}}])},4812,e=>{"use strict";e.s(["IntersectionInfo",0,class{constructor(e,t,r){this.bu=e,this.bv=t,this.distance=r,this.faceId=0,this.subMeshId=0,this._internalSubMeshId=0}}])},91095,e=>{"use strict";var t,r,i,s,n=e.i(10534);(t=i||(i={}))[t.LOCAL=0]="LOCAL",t[t.WORLD=1]="WORLD",t[t.BONE=2]="BONE";class a{}a.X=new n.Vector3(1,0,0),a.Y=new n.Vector3(0,1,0),a.Z=new n.Vector3(0,0,1),(r=s||(s={}))[r.X=0]="X",r[r.Y=1]="Y",r[r.Z=2]="Z",e.s(["Axis",0,a,"Coordinate",0,s,"Space",0,i])},15298,e=>{"use strict";class t{static get ForceFullSceneLoadingForIncremental(){return t._ForceFullSceneLoadingForIncremental}static set ForceFullSceneLoadingForIncremental(e){t._ForceFullSceneLoadingForIncremental=e}static get ShowLoadingScreen(){return t._ShowLoadingScreen}static set ShowLoadingScreen(e){t._ShowLoadingScreen=e}static get loggingLevel(){return t._LoggingLevel}static set loggingLevel(e){t._LoggingLevel=e}static get CleanBoneMatrixWeights(){return t._CleanBoneMatrixWeights}static set CleanBoneMatrixWeights(e){t._CleanBoneMatrixWeights=e}}t._ForceFullSceneLoadingForIncremental=!1,t._ShowLoadingScreen=!0,t._CleanBoneMatrixWeights=!1,t._LoggingLevel=0,e.s(["SceneLoaderFlags",0,t])},12247,e=>{"use strict";var t=e.i(10534);let r=[Math.sqrt(1/(4*Math.PI)),-Math.sqrt(3/(4*Math.PI)),Math.sqrt(3/(4*Math.PI)),-Math.sqrt(3/(4*Math.PI)),Math.sqrt(15/(4*Math.PI)),-Math.sqrt(15/(4*Math.PI)),Math.sqrt(5/(16*Math.PI)),-Math.sqrt(15/(4*Math.PI)),Math.sqrt(15/(16*Math.PI))],i=[()=>1,e=>e.y,e=>e.z,e=>e.x,e=>e.x*e.y,e=>e.y*e.z,e=>3*e.z*e.z-1,e=>e.x*e.z,e=>e.x*e.x-e.y*e.y],s=(e,t)=>r[e]*i[e](t),n=[Math.PI,2*Math.PI/3,2*Math.PI/3,2*Math.PI/3,Math.PI/4,Math.PI/4,Math.PI/4,Math.PI/4,Math.PI/4];class a{constructor(){this.preScaled=!1,this.l00=t.Vector3.Zero(),this.l1_1=t.Vector3.Zero(),this.l10=t.Vector3.Zero(),this.l11=t.Vector3.Zero(),this.l2_2=t.Vector3.Zero(),this.l2_1=t.Vector3.Zero(),this.l20=t.Vector3.Zero(),this.l21=t.Vector3.Zero(),this.l22=t.Vector3.Zero()}addLight(e,r,i){t.TmpVectors.Vector3[0].set(r.r,r.g,r.b);let n=t.TmpVectors.Vector3[0],a=t.TmpVectors.Vector3[1];n.scaleToRef(i,a),a.scaleToRef(s(0,e),t.TmpVectors.Vector3[2]),this.l00.addInPlace(t.TmpVectors.Vector3[2]),a.scaleToRef(s(1,e),t.TmpVectors.Vector3[2]),this.l1_1.addInPlace(t.TmpVectors.Vector3[2]),a.scaleToRef(s(2,e),t.TmpVectors.Vector3[2]),this.l10.addInPlace(t.TmpVectors.Vector3[2]),a.scaleToRef(s(3,e),t.TmpVectors.Vector3[2]),this.l11.addInPlace(t.TmpVectors.Vector3[2]),a.scaleToRef(s(4,e),t.TmpVectors.Vector3[2]),this.l2_2.addInPlace(t.TmpVectors.Vector3[2]),a.scaleToRef(s(5,e),t.TmpVectors.Vector3[2]),this.l2_1.addInPlace(t.TmpVectors.Vector3[2]),a.scaleToRef(s(6,e),t.TmpVectors.Vector3[2]),this.l20.addInPlace(t.TmpVectors.Vector3[2]),a.scaleToRef(s(7,e),t.TmpVectors.Vector3[2]),this.l21.addInPlace(t.TmpVectors.Vector3[2]),a.scaleToRef(s(8,e),t.TmpVectors.Vector3[2]),this.l22.addInPlace(t.TmpVectors.Vector3[2])}scaleInPlace(e){this.l00.scaleInPlace(e),this.l1_1.scaleInPlace(e),this.l10.scaleInPlace(e),this.l11.scaleInPlace(e),this.l2_2.scaleInPlace(e),this.l2_1.scaleInPlace(e),this.l20.scaleInPlace(e),this.l21.scaleInPlace(e),this.l22.scaleInPlace(e)}convertIncidentRadianceToIrradiance(){this.l00.scaleInPlace(n[0]),this.l1_1.scaleInPlace(n[1]),this.l10.scaleInPlace(n[2]),this.l11.scaleInPlace(n[3]),this.l2_2.scaleInPlace(n[4]),this.l2_1.scaleInPlace(n[5]),this.l20.scaleInPlace(n[6]),this.l21.scaleInPlace(n[7]),this.l22.scaleInPlace(n[8])}convertIrradianceToLambertianRadiance(){this.scaleInPlace(1/Math.PI)}preScaleForRendering(){this.preScaled=!0,this.l00.scaleInPlace(r[0]),this.l1_1.scaleInPlace(r[1]),this.l10.scaleInPlace(r[2]),this.l11.scaleInPlace(r[3]),this.l2_2.scaleInPlace(r[4]),this.l2_1.scaleInPlace(r[5]),this.l20.scaleInPlace(r[6]),this.l21.scaleInPlace(r[7]),this.l22.scaleInPlace(r[8])}updateFromArray(e){return t.Vector3.FromArrayToRef(e[0],0,this.l00),t.Vector3.FromArrayToRef(e[1],0,this.l1_1),t.Vector3.FromArrayToRef(e[2],0,this.l10),t.Vector3.FromArrayToRef(e[3],0,this.l11),t.Vector3.FromArrayToRef(e[4],0,this.l2_2),t.Vector3.FromArrayToRef(e[5],0,this.l2_1),t.Vector3.FromArrayToRef(e[6],0,this.l20),t.Vector3.FromArrayToRef(e[7],0,this.l21),t.Vector3.FromArrayToRef(e[8],0,this.l22),this}updateFromFloatsArray(e){return t.Vector3.FromFloatsToRef(e[0],e[1],e[2],this.l00),t.Vector3.FromFloatsToRef(e[3],e[4],e[5],this.l1_1),t.Vector3.FromFloatsToRef(e[6],e[7],e[8],this.l10),t.Vector3.FromFloatsToRef(e[9],e[10],e[11],this.l11),t.Vector3.FromFloatsToRef(e[12],e[13],e[14],this.l2_2),t.Vector3.FromFloatsToRef(e[15],e[16],e[17],this.l2_1),t.Vector3.FromFloatsToRef(e[18],e[19],e[20],this.l20),t.Vector3.FromFloatsToRef(e[21],e[22],e[23],this.l21),t.Vector3.FromFloatsToRef(e[24],e[25],e[26],this.l22),this}static FromArray(e){return new a().updateFromArray(e)}static FromPolynomial(e){let t=new a;return t.l00=e.xx.scale(.376127).add(e.yy.scale(.376127)).add(e.zz.scale(.376126)),t.l1_1=e.y.scale(.977204),t.l10=e.z.scale(.977204),t.l11=e.x.scale(.977204),t.l2_2=e.xy.scale(1.16538),t.l2_1=e.yz.scale(1.16538),t.l20=e.zz.scale(1.34567).subtract(e.xx.scale(.672834)).subtract(e.yy.scale(.672834)),t.l21=e.zx.scale(1.16538),t.l22=e.xx.scale(1.16538).subtract(e.yy.scale(1.16538)),t.l1_1.scaleInPlace(-1),t.l11.scaleInPlace(-1),t.l2_1.scaleInPlace(-1),t.l21.scaleInPlace(-1),t.scaleInPlace(Math.PI),t}}class o{constructor(){this.x=t.Vector3.Zero(),this.y=t.Vector3.Zero(),this.z=t.Vector3.Zero(),this.xx=t.Vector3.Zero(),this.yy=t.Vector3.Zero(),this.zz=t.Vector3.Zero(),this.xy=t.Vector3.Zero(),this.yz=t.Vector3.Zero(),this.zx=t.Vector3.Zero()}get preScaledHarmonics(){return this._harmonics||(this._harmonics=a.FromPolynomial(this)),this._harmonics.preScaled||this._harmonics.preScaleForRendering(),this._harmonics}addAmbient(e){t.TmpVectors.Vector3[0].copyFromFloats(e.r,e.g,e.b);let r=t.TmpVectors.Vector3[0];this.xx.addInPlace(r),this.yy.addInPlace(r),this.zz.addInPlace(r)}scaleInPlace(e){this.x.scaleInPlace(e),this.y.scaleInPlace(e),this.z.scaleInPlace(e),this.xx.scaleInPlace(e),this.yy.scaleInPlace(e),this.zz.scaleInPlace(e),this.yz.scaleInPlace(e),this.zx.scaleInPlace(e),this.xy.scaleInPlace(e)}updateFromHarmonics(e){return this._harmonics=e,this.x.copyFrom(e.l11),this.x.scaleInPlace(1.02333).scaleInPlace(-1),this.y.copyFrom(e.l1_1),this.y.scaleInPlace(1.02333).scaleInPlace(-1),this.z.copyFrom(e.l10),this.z.scaleInPlace(1.02333),this.xx.copyFrom(e.l00),t.TmpVectors.Vector3[0].copyFrom(e.l20).scaleInPlace(.247708),t.TmpVectors.Vector3[1].copyFrom(e.l22).scaleInPlace(.429043),this.xx.scaleInPlace(.886277).subtractInPlace(t.TmpVectors.Vector3[0]).addInPlace(t.TmpVectors.Vector3[1]),this.yy.copyFrom(e.l00),this.yy.scaleInPlace(.886277).subtractInPlace(t.TmpVectors.Vector3[0]).subtractInPlace(t.TmpVectors.Vector3[1]),this.zz.copyFrom(e.l00),t.TmpVectors.Vector3[0].copyFrom(e.l20).scaleInPlace(.495417),this.zz.scaleInPlace(.886277).addInPlace(t.TmpVectors.Vector3[0]),this.yz.copyFrom(e.l2_1),this.yz.scaleInPlace(.858086).scaleInPlace(-1),this.zx.copyFrom(e.l21),this.zx.scaleInPlace(.858086).scaleInPlace(-1),this.xy.copyFrom(e.l2_2),this.xy.scaleInPlace(.858086),this.scaleInPlace(1/Math.PI),this}static FromHarmonics(e){return new o().updateFromHarmonics(e)}static FromArray(e){let r=new o;return t.Vector3.FromArrayToRef(e[0],0,r.x),t.Vector3.FromArrayToRef(e[1],0,r.y),t.Vector3.FromArrayToRef(e[2],0,r.z),t.Vector3.FromArrayToRef(e[3],0,r.xx),t.Vector3.FromArrayToRef(e[4],0,r.yy),t.Vector3.FromArrayToRef(e[5],0,r.zz),t.Vector3.FromArrayToRef(e[6],0,r.yz),t.Vector3.FromArrayToRef(e[7],0,r.zx),t.Vector3.FromArrayToRef(e[8],0,r.xy),r}}e.s(["SphericalHarmonics",0,a,"SphericalPolynomial",0,o])},557,e=>{"use strict";(0,e.i(82350).RegisterFlowGraphRichTypes)(),e.s([])},68069,e=>{"use strict";e.s(["PrePassConfiguration",0,class{constructor(){this.previousWorldMatrices={},this.previousBones={}}static AddUniforms(e){e.push("previousWorld","previousViewProjection","mPreviousBones")}static AddSamplers(e){}bindForSubMesh(e,t,r,i,s){if(t.prePassRenderer&&t.prePassRenderer.enabled&&t.prePassRenderer.currentRTisSceneRT&&(-1!==t.prePassRenderer.getIndex(2)||-1!==t.prePassRenderer.getIndex(11))){this.previousWorldMatrices[r.uniqueId]||(this.previousWorldMatrices[r.uniqueId]=i.clone()),this.previousViewProjection||(this.previousViewProjection=t.getTransformMatrix().clone(),this.currentViewProjection=t.getTransformMatrix().clone());let s=t.getEngine();this.currentViewProjection.updateFlag!==t.getTransformMatrix().updateFlag?(this._lastUpdateFrameId=s.frameId,this.previousViewProjection.copyFrom(this.currentViewProjection),this.currentViewProjection.copyFrom(t.getTransformMatrix())):this._lastUpdateFrameId!==s.frameId&&(this._lastUpdateFrameId=s.frameId,this.previousViewProjection.copyFrom(this.currentViewProjection)),e.setMatrix("previousWorld",this.previousWorldMatrices[r.uniqueId]),e.setMatrix("previousViewProjection",this.previousViewProjection),this.previousWorldMatrices[r.uniqueId]=i.clone()}}}])},90551,e=>{"use strict";e.s(["MaterialDefines",0,class{constructor(e){if(this.VERTEXOUTPUT_INVARIANT=!1,this._keys=[],this._isDirty=!0,this._areLightsDirty=!0,this._areLightsDisposed=!1,this._areAttributesDirty=!0,this._areTexturesDirty=!0,this._areFresnelDirty=!0,this._areMiscDirty=!0,this._arePrePassDirty=!0,this._areImageProcessingDirty=!0,this._normals=!1,this._uvs=!1,this._needNormals=!1,this._needUVs=!1,this._externalProperties=e,e)for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&this._setDefaultValue(t)}get isDirty(){return this._isDirty}markAsProcessed(){this._isDirty=!1,this._areAttributesDirty=!1,this._areTexturesDirty=!1,this._areFresnelDirty=!1,this._areLightsDirty=!1,this._areLightsDisposed=!1,this._areMiscDirty=!1,this._arePrePassDirty=!1,this._areImageProcessingDirty=!1}markAsUnprocessed(){this._isDirty=!0}markAllAsDirty(){this._areTexturesDirty=!0,this._areAttributesDirty=!0,this._areLightsDirty=!0,this._areFresnelDirty=!0,this._areMiscDirty=!0,this._arePrePassDirty=!0,this._areImageProcessingDirty=!0,this._isDirty=!0}markAsImageProcessingDirty(){this._areImageProcessingDirty=!0,this._isDirty=!0}markAsLightDirty(e=!1){this._areLightsDirty=!0,this._areLightsDisposed=this._areLightsDisposed||e,this._isDirty=!0}markAsAttributesDirty(){this._areAttributesDirty=!0,this._isDirty=!0}markAsTexturesDirty(){this._areTexturesDirty=!0,this._isDirty=!0}markAsFresnelDirty(){this._areFresnelDirty=!0,this._isDirty=!0}markAsMiscDirty(){this._areMiscDirty=!0,this._isDirty=!0}markAsPrePassDirty(){this._arePrePassDirty=!0,this._isDirty=!0}rebuild(){for(let e of(this._keys.length=0,Object.keys(this)))"_"!==e[0]&&this._keys.push(e);if(this._externalProperties)for(let e in this._externalProperties)-1===this._keys.indexOf(e)&&this._keys.push(e)}isEqual(e){if(this._keys.length!==e._keys.length)return!1;for(let t=0;t<this._keys.length;t++){let r=this._keys[t];if(this[r]!==e[r])return!1}return!0}cloneTo(e){this._keys.length!==e._keys.length&&(e._keys=this._keys.slice(0));for(let t=0;t<this._keys.length;t++){let r=this._keys[t];e[r]=this[r]}}reset(){for(let e of this._keys)this._setDefaultValue(e)}_setDefaultValue(e){let t=this._externalProperties?.[e]?.type??typeof this[e],r=this._externalProperties?.[e]?.default;switch(t){case"number":this[e]=r??0;break;case"string":this[e]=r??"";break;default:this[e]=r??!1}}toString(){let e="";for(let t=0;t<this._keys.length;t++){let r=this._keys[t],i=this[r];switch(typeof i){case"number":case"string":e+="#define "+r+" "+i+"\n";break;default:i&&(e+="#define "+r+"\n")}}return e}}])},57970,48004,e=>{"use strict";e.i(90551).MaterialDefines,e.s(["ImageProcessingDefinesMixin",0,function(e){return class extends e{constructor(){super(...arguments),this.IMAGEPROCESSING=!1,this.VIGNETTE=!1,this.VIGNETTEBLENDMODEMULTIPLY=!1,this.VIGNETTEBLENDMODEOPAQUE=!1,this.TONEMAPPING=0,this.CONTRAST=!1,this.COLORCURVES=!1,this.COLORGRADING=!1,this.COLORGRADING3D=!1,this.SAMPLER3DGREENDEPTH=!1,this.SAMPLER3DBGRMAP=!1,this.DITHER=!1,this.IMAGEPROCESSINGPOSTPROCESS=!1,this.SKIPFINALCOLORCLAMP=!1,this.EXPOSURE=!1}}}],57970);var t,r,i=e.i(10534);(t=r||(r={}))[t.Zero=0]="Zero",t[t.One=1]="One",t[t.MaxViewZ=2]="MaxViewZ",t[t.NoClear=3]="NoClear";class s{static CreateConfiguration(e){return s._Configurations[e]={defines:{},previousWorldMatrices:{},previousViewProjection:i.Matrix.Zero(),currentViewProjection:i.Matrix.Zero(),previousBones:{},lastUpdateFrameId:-1,excludedSkinnedMesh:[],reverseCulling:!1},s._Configurations[e]}static DeleteConfiguration(e){delete s._Configurations[e]}static GetConfiguration(e){return s._Configurations[e]}static AddUniformsAndSamplers(e,t){e.push("previousWorld","previousViewProjection","mPreviousBones")}static MarkAsDirty(e,t){for(let r of t)if(r.subMeshes)for(let t of r.subMeshes)t._removeDrawWrapper(e)}static PrepareDefines(e,t,r){if(!r._arePrePassDirty)return;let i=s._Configurations[e];if(!i)return;r.PREPASS=!0;let n=0;for(let e=0;e<s.GeometryTextureDescriptions.length;e++){let t=s.GeometryTextureDescriptions[e],a=t.define,o=t.defineIndex,l=i.defines[o];void 0!==l?(r[a]=!0,r[o]=l,n++):(r[a]=!1,delete r[o])}r.SCENE_MRT_COUNT=n,r.BONES_VELOCITY_ENABLED=t.useBones&&t.computeBonesUsingShaders&&t.skeleton&&!t.skeleton.isUsingTextureForMatrices&&-1===i.excludedSkinnedMesh.indexOf(t)}static Bind(e,t,r,i,n){let a=s._Configurations[e];if(!a)return;let o=r.getScene(),l=o.getEngine();if(a.reverseCulling&&l.setStateCullFaceType(o._mirroredCameraPosition?n.cullBackFaces:!n.cullBackFaces),(void 0!==a.defines.PREPASS_VELOCITY_INDEX||void 0!==a.defines.PREPASS_VELOCITY_LINEAR_INDEX)&&(a.previousWorldMatrices[r.uniqueId]||(a.previousWorldMatrices[r.uniqueId]=i.clone()),a.previousViewProjection||(a.previousViewProjection=o.getTransformMatrix().clone(),a.currentViewProjection=o.getTransformMatrix().clone()),a.currentViewProjection.updateFlag!==o.getTransformMatrix().updateFlag?(a.lastUpdateFrameId=l.frameId,a.previousViewProjection.copyFrom(a.currentViewProjection),a.currentViewProjection.copyFrom(o.getTransformMatrix())):a.lastUpdateFrameId!==l.frameId&&(a.lastUpdateFrameId=l.frameId,a.previousViewProjection.copyFrom(a.currentViewProjection)),t.setMatrix("previousWorld",a.previousWorldMatrices[r.uniqueId]),t.setMatrix("previousViewProjection",a.previousViewProjection),a.previousWorldMatrices[r.uniqueId]=i.clone(),r.useBones&&r.computeBonesUsingShaders&&r.skeleton)){let e=r.skeleton;if(!e.isUsingTextureForMatrices||-1===t.getUniformIndex("boneTextureInfo")){let i=e.getTransformMatrices(r);i&&(a.previousBones[r.uniqueId]||(a.previousBones[r.uniqueId]=i.slice()),t.setMatrices("mPreviousBones",a.previousBones[r.uniqueId]),a.previousBones[r.uniqueId].set(i))}}}}s.GeometryTextureDescriptions=[{type:0,name:"IrradianceLegacy",clearType:0,define:"PREPASS_IRRADIANCE_LEGACY",defineIndex:"PREPASS_IRRADIANCE_LEGACY_INDEX"},{type:1,name:"WorldPosition",clearType:0,define:"PREPASS_POSITION",defineIndex:"PREPASS_POSITION_INDEX"},{type:2,name:"Velocity",clearType:0,define:"PREPASS_VELOCITY",defineIndex:"PREPASS_VELOCITY_INDEX"},{type:3,name:"Reflectivity",clearType:0,define:"PREPASS_REFLECTIVITY",defineIndex:"PREPASS_REFLECTIVITY_INDEX"},{type:5,name:"ViewDepth",clearType:2,define:"PREPASS_DEPTH",defineIndex:"PREPASS_DEPTH_INDEX"},{type:6,name:"ViewNormal",clearType:0,define:"PREPASS_NORMAL",defineIndex:"PREPASS_NORMAL_INDEX"},{type:7,name:"AlbedoSqrt",clearType:0,define:"PREPASS_ALBEDO_SQRT",defineIndex:"PREPASS_ALBEDO_SQRT_INDEX"},{type:8,name:"WorldNormal",clearType:0,define:"PREPASS_WORLD_NORMAL",defineIndex:"PREPASS_WORLD_NORMAL_INDEX"},{type:9,name:"LocalPosition",clearType:0,define:"PREPASS_LOCAL_POSITION",defineIndex:"PREPASS_LOCAL_POSITION_INDEX"},{type:10,name:"ScreenDepth",clearType:1,define:"PREPASS_SCREENSPACE_DEPTH",defineIndex:"PREPASS_SCREENSPACE_DEPTH_INDEX"},{type:11,name:"LinearVelocity",clearType:0,define:"PREPASS_VELOCITY_LINEAR",defineIndex:"PREPASS_VELOCITY_LINEAR_INDEX"},{type:12,name:"Albedo",clearType:0,define:"PREPASS_ALBEDO",defineIndex:"PREPASS_ALBEDO_INDEX"},{type:13,name:"NormalizedViewDepth",clearType:1,define:"PREPASS_NORMALIZED_VIEW_DEPTH",defineIndex:"PREPASS_NORMALIZED_VIEW_DEPTH_INDEX"},{type:4,name:"Color",clearType:3,define:"PREPASS_COLOR",defineIndex:"PREPASS_COLOR_INDEX"},{type:14,name:"Irradiance",clearType:0,define:"PREPASS_IRRADIANCE",defineIndex:"PREPASS_IRRADIANCE_INDEX"}],s._Configurations={},e.s(["MaterialHelperGeometryRendering",0,s],48004)},33987,88955,75613,e=>{"use strict";e.s(["UVDefinesMixin",0,function(e){return class extends e{constructor(){super(...arguments),this.MAINUV1=!1,this.MAINUV2=!1,this.MAINUV3=!1,this.MAINUV4=!1,this.MAINUV5=!1,this.MAINUV6=!1,this.UV1=!1,this.UV2=!1,this.UV3=!1,this.UV4=!1,this.UV5=!1,this.UV6=!1}}}],33987),e.s(["PrepassDefinesMixin",0,function(e){return class extends e{constructor(){super(...arguments),this.PREPASS=!1,this.PREPASS_COLOR=!1,this.PREPASS_COLOR_INDEX=-1,this.PREPASS_IRRADIANCE_LEGACY=!1,this.PREPASS_IRRADIANCE_LEGACY_INDEX=-1,this.PREPASS_IRRADIANCE=!1,this.PREPASS_IRRADIANCE_INDEX=-1,this.PREPASS_ALBEDO=!1,this.PREPASS_ALBEDO_INDEX=-1,this.PREPASS_ALBEDO_SQRT=!1,this.PREPASS_ALBEDO_SQRT_INDEX=-1,this.PREPASS_DEPTH=!1,this.PREPASS_DEPTH_INDEX=-1,this.PREPASS_SCREENSPACE_DEPTH=!1,this.PREPASS_SCREENSPACE_DEPTH_INDEX=-1,this.PREPASS_NORMALIZED_VIEW_DEPTH=!1,this.PREPASS_NORMALIZED_VIEW_DEPTH_INDEX=-1,this.PREPASS_NORMAL=!1,this.PREPASS_NORMAL_INDEX=-1,this.PREPASS_NORMAL_WORLDSPACE=!1,this.PREPASS_WORLD_NORMAL=!1,this.PREPASS_WORLD_NORMAL_INDEX=-1,this.PREPASS_POSITION=!1,this.PREPASS_POSITION_INDEX=-1,this.PREPASS_LOCAL_POSITION=!1,this.PREPASS_LOCAL_POSITION_INDEX=-1,this.PREPASS_VELOCITY=!1,this.PREPASS_VELOCITY_INDEX=-1,this.PREPASS_VELOCITY_LINEAR=!1,this.PREPASS_VELOCITY_LINEAR_INDEX=-1,this.PREPASS_REFLECTIVITY=!1,this.PREPASS_REFLECTIVITY_INDEX=-1,this.SCENE_MRT_COUNT=0}}}],88955);var t=e.i(40220);e.s(["ImageProcessingMixin",0,function(e){return class extends e{constructor(...e){super(...e),(0,t.serializeAsImageProcessingConfiguration)()(this,"_imageProcessingConfiguration")}get imageProcessingConfiguration(){return this._imageProcessingConfiguration}set imageProcessingConfiguration(e){this._attachImageProcessingConfiguration(e),this._markAllSubMeshesAsImageProcessingDirty&&this._markAllSubMeshesAsImageProcessingDirty()}_attachImageProcessingConfiguration(e){e!==this._imageProcessingConfiguration&&(this._imageProcessingConfiguration&&this._imageProcessingObserver&&this._imageProcessingConfiguration.onUpdateParameters.remove(this._imageProcessingObserver),!e&&this.getScene?this._imageProcessingConfiguration=this.getScene().imageProcessingConfiguration:e&&(this._imageProcessingConfiguration=e),this._imageProcessingConfiguration&&(this._imageProcessingObserver=this._imageProcessingConfiguration.onUpdateParameters.add(()=>{this._markAllSubMeshesAsImageProcessingDirty&&this._markAllSubMeshesAsImageProcessingDirty()})))}get cameraColorCurvesEnabled(){return this.imageProcessingConfiguration.colorCurvesEnabled}set cameraColorCurvesEnabled(e){this.imageProcessingConfiguration.colorCurvesEnabled=e}get cameraColorGradingEnabled(){return this.imageProcessingConfiguration.colorGradingEnabled}set cameraColorGradingEnabled(e){this.imageProcessingConfiguration.colorGradingEnabled=e}get cameraToneMappingEnabled(){return this._imageProcessingConfiguration.toneMappingEnabled}set cameraToneMappingEnabled(e){this._imageProcessingConfiguration.toneMappingEnabled=e}get cameraExposure(){return this._imageProcessingConfiguration.exposure}set cameraExposure(e){this._imageProcessingConfiguration.exposure=e}get cameraContrast(){return this._imageProcessingConfiguration.contrast}set cameraContrast(e){this._imageProcessingConfiguration.contrast=e}get cameraColorGradingTexture(){return this._imageProcessingConfiguration.colorGradingTexture}set cameraColorGradingTexture(e){this._imageProcessingConfiguration.colorGradingTexture=e}get cameraColorCurves(){return this._imageProcessingConfiguration.colorCurves}set cameraColorCurves(e){this._imageProcessingConfiguration.colorCurves=e}}}],75613)},96066,17619,e=>{"use strict";var t=e.i(16147),r=e.i(52344),i=e.i(40220),s=e.i(47044),n=e.i(90551),a=e.i(18851),o=e.i(1719);let l=RegExp("^([gimus]+)!");class c{constructor(e){this._plugins=[],this._activePlugins=[],this._activePluginsForExtraEvents=[],this._material=e,this._scene=e.getScene(),this._engine=this._scene.getEngine()}_addPlugin(e){for(let t=0;t<this._plugins.length;++t)if(this._plugins[t].name===e.name)return!1;if(this._material._uniformBufferLayoutBuilt&&(this._material.resetDrawCache(),this._material._createUniformBuffer()),!e.isCompatible(this._material.shaderLanguage))throw`The plugin "${e.name}" can't be added to the material "${this._material.name}" because the plugin is not compatible with the shader language of the material.`;let t=e.getClassName();c._MaterialPluginClassToMainDefine[t]||(c._MaterialPluginClassToMainDefine[t]="MATERIALPLUGIN_"+ ++c._MaterialPluginCounter),this._material._callbackPluginEventGeneric=(e,t)=>this._handlePluginEvent(e,t),this._plugins.push(e),this._plugins.sort((e,t)=>e.priority-t.priority),this._codeInjectionPoints={};let r={};for(let e of(r[c._MaterialPluginClassToMainDefine[t]]={type:"boolean",default:!0},this._plugins))e.collectDefines(r),this._collectPointNames("vertex",e.getCustomCode("vertex",this._material.shaderLanguage)),this._collectPointNames("fragment",e.getCustomCode("fragment",this._material.shaderLanguage));return this._defineNamesFromPlugins=r,!0}_activatePlugin(e){-1===this._activePlugins.indexOf(e)&&(this._activePlugins.push(e),this._activePlugins.sort((e,t)=>e.priority-t.priority),this._material._callbackPluginEventIsReadyForSubMesh=this._handlePluginEventIsReadyForSubMesh.bind(this),this._material._callbackPluginEventPrepareDefinesBeforeAttributes=this._handlePluginEventPrepareDefinesBeforeAttributes.bind(this),this._material._callbackPluginEventPrepareDefines=this._handlePluginEventPrepareDefines.bind(this),this._material._callbackPluginEventBindForSubMesh=this._handlePluginEventBindForSubMesh.bind(this),e.registerForExtraEvents&&(this._activePluginsForExtraEvents.push(e),this._activePluginsForExtraEvents.sort((e,t)=>e.priority-t.priority),this._material._callbackPluginEventHasRenderTargetTextures=this._handlePluginEventHasRenderTargetTextures.bind(this),this._material._callbackPluginEventFillRenderTargetTextures=this._handlePluginEventFillRenderTargetTextures.bind(this),this._material._callbackPluginEventHardBindForSubMesh=this._handlePluginEventHardBindForSubMesh.bind(this)))}getPlugin(e){for(let t=0;t<this._plugins.length;++t)if(this._plugins[t].name===e)return this._plugins[t];return null}_handlePluginEventIsReadyForSubMesh(e){let t=!0;for(let r of this._activePlugins)t=t&&r.isReadyForSubMesh(e.defines,this._scene,this._engine,e.subMesh);e.isReadyForSubMesh=t}_handlePluginEventPrepareDefinesBeforeAttributes(e){for(let t of this._activePlugins)t.prepareDefinesBeforeAttributes(e.defines,this._scene,e.mesh)}_handlePluginEventPrepareDefines(e){for(let t of this._activePlugins)t.prepareDefines(e.defines,this._scene,e.mesh)}_handlePluginEventHardBindForSubMesh(e){for(let t of this._activePluginsForExtraEvents)t.hardBindForSubMesh(this._material._uniformBuffer,this._scene,this._engine,e.subMesh)}_handlePluginEventBindForSubMesh(e){for(let t of this._activePlugins)t.bindForSubMesh(this._material._uniformBuffer,this._scene,this._engine,e.subMesh)}_handlePluginEventHasRenderTargetTextures(e){let t=!1;for(let e of this._activePluginsForExtraEvents)if(t=e.hasRenderTargetTextures())break;e.hasRenderTargetTextures=t}_handlePluginEventFillRenderTargetTextures(e){for(let t of this._activePluginsForExtraEvents)t.fillRenderTargetTextures(e.renderTargets)}_handlePluginEvent(e,t){switch(e){case 512:for(let e of this._activePlugins)e.getActiveTextures(t.activeTextures);break;case 256:for(let e of this._activePlugins)e.getAnimatables(t.animatables);break;case 1024:{let e=!1;for(let r of this._activePlugins)if(e=r.hasTexture(t.texture))break;t.hasTexture=e;break}case 2:for(let e of this._plugins)e.dispose(t.forceDisposeTextures);break;case 4:t.defineNames=this._defineNamesFromPlugins;break;case 128:for(let e of this._activePlugins)t.fallbackRank=e.addFallbacks(t.defines,t.fallbacks,t.fallbackRank),e.getAttributes(t.attributes,this._scene,t.mesh);this._uniformList.length>0&&t.uniforms.push(...this._uniformList),this._samplerList.length>0&&t.samplers.push(...this._samplerList),this._uboList.length>0&&t.uniformBuffersNames.push(...this._uboList),t.customCode=this._injectCustomCode(t,t.customCode);break;case 8:{this._uboDeclaration="",this._vertexDeclaration="",this._fragmentDeclaration="",this._uniformList=[],this._samplerList=[],this._uboList=[];let e=1===this._material.shaderLanguage;for(let r of this._plugins){let i=r.getUniforms(this._material.shaderLanguage);if(i){if(i.ubo)for(let r of i.ubo){if(r.size&&r.type){let i=r.arraySize??0;if(t.ubo.addUniform(r.name,r.size,i),e){let e;switch(r.type){case"mat4":e="mat4x4f";break;case"float":e="f32";break;default:e=`${r.type}f`}i>0?this._uboDeclaration+=`uniform ${r.name}: array<${e}, ${i}>;
|
|
2
|
+
`:this._uboDeclaration+=`uniform ${r.name}: ${e};
|
|
3
|
+
`}else this._uboDeclaration+=`${r.type} ${r.name}${i>0?`[${i}]`:""};
|
|
4
|
+
`}this._uniformList.push(r.name)}i.vertex&&(this._vertexDeclaration+=i.vertex+"\n"),i.fragment&&(this._fragmentDeclaration+=i.fragment+"\n"),i.externalUniforms&&this._uniformList.push(...i.externalUniforms)}r.getSamplers(this._samplerList),r.getUniformBuffersNames(this._uboList)}}}}_collectPointNames(e,t){if(t)for(let r in t)this._codeInjectionPoints[e]||(this._codeInjectionPoints[e]={}),this._codeInjectionPoints[e][r]=!0}_injectCustomCode(e,t){return(r,i)=>{t&&(i=t(r,i)),this._uboDeclaration&&(i=i.replace("#define ADDITIONAL_UBO_DECLARATION",this._uboDeclaration)),this._vertexDeclaration&&(i=i.replace("#define ADDITIONAL_VERTEX_DECLARATION",this._vertexDeclaration)),this._fragmentDeclaration&&(i=i.replace("#define ADDITIONAL_FRAGMENT_DECLARATION",this._fragmentDeclaration));let s=this._codeInjectionPoints?.[r];if(!s)return i;let n=null;for(let t in s){let s="";for(let i of this._activePlugins){let l=this._material.shaderLanguage,c=i.getCustomCode(r,l)?.[t];c&&(i.resolveIncludes&&(null===n&&(n={defines:[],indexParameters:e.indexParameters,isFragment:!1,shouldUseHighPrecisionShader:this._engine._shouldUseHighPrecisionShader,processor:void 0,supportsUniformBuffers:this._engine.supportsUniformBuffers,shadersRepository:o.ShaderStore.GetShadersRepository(l),includesShadersStore:o.ShaderStore.GetIncludesShadersStore(l),version:void 0,platformName:this._engine.shaderPlatformName,processingContext:void 0,isNDCHalfZRange:this._engine.isNDCHalfZRange,useReverseDepthBuffer:this._engine.useReverseDepthBuffer,processCodeAfterIncludes:void 0}),n.isFragment="fragment"===r,(0,a.ProcessIncludes)(c,n,e=>c=e)),s+=c+"\n")}if(s.length>0)if("!"===t.charAt(0)){t=t.substring(1);let e="g";if("!"===t.charAt(0))e="",t=t.substring(1);else{let r=l.exec(t);r&&r.length>=2&&(e=r[1],t=t.substring(e.length+1))}0>e.indexOf("g")&&(e+="g");let r=i,n=new RegExp(t,e),a=n.exec(r);for(;null!==a;){let e=s;for(let t=0;t<a.length;++t)e=e.replace("$"+t,a[t]);i=i.replace(a[0],e),a=n.exec(r)}}else{let e="#define "+t;i=i.replace(e,"\n"+s+"\n"+e)}}return i}}}c._MaterialPluginClassToMainDefine={},c._MaterialPluginCounter=0;var h=e.i(95397);class u{isCompatible(e){return 0===e}_enable(e){e&&this._pluginManager._activatePlugin(this)}constructor(e,t,r,i,s=!0,n=!1,a=!1){this.priority=500,this.resolveIncludes=!1,this.registerForExtraEvents=!1,this.doNotSerialize=!1,this._material=e,this.name=t,this.priority=r,this.resolveIncludes=a,e.pluginManager||(e.pluginManager=new c(e),e.onDisposeObservable.add(()=>{e.pluginManager=void 0})),this._pluginDefineNames=i,this._pluginManager=e.pluginManager,s&&this._pluginManager._addPlugin(this),n&&this._enable(!0),this.markAllDefinesAsDirty=e._dirtyCallbacks[127]}getClassName(){return"MaterialPluginBase"}isReadyForSubMesh(e,t,r,i){return!0}hardBindForSubMesh(e,t,r,i){}bindForSubMesh(e,t,r,i){}dispose(e){}getCustomCode(e,t=0){return null}collectDefines(e){if(this._pluginDefineNames)for(let t of Object.keys(this._pluginDefineNames)){if("_"===t[0])continue;let r=typeof this._pluginDefineNames[t];e[t]={type:"number"===r?"number":"string"===r?"string":"boolean"===r?"boolean":"object",default:this._pluginDefineNames[t]}}}prepareDefinesBeforeAttributes(e,t,r){}prepareDefines(e,t,r){}hasTexture(e){return!1}hasRenderTargetTextures(){return!1}fillRenderTargetTextures(e){}getActiveTextures(e){}getAnimatables(e){}addFallbacks(e,t,r){return r}getSamplers(e){}getAttributes(e,t,r){}getUniformBuffersNames(e){}getUniforms(e=0){return{}}copyTo(e){h.SerializationHelper.Clone(()=>e,this)}serialize(){return h.SerializationHelper.Serialize(this)}parse(e,t,r){h.SerializationHelper.Parse(()=>this,e,t,r)}}(0,t.__decorate)([(0,i.serialize)()],u.prototype,"name",void 0),(0,t.__decorate)([(0,i.serialize)()],u.prototype,"priority",void 0),(0,t.__decorate)([(0,i.serialize)()],u.prototype,"resolveIncludes",void 0),(0,t.__decorate)([(0,i.serialize)()],u.prototype,"registerForExtraEvents",void 0),e.s(["MaterialPluginBase",0,u],17619);var g=e.i(72014);class d extends n.MaterialDefines{constructor(){super(...arguments),this.DETAIL=!1,this.DETAILDIRECTUV=0,this.DETAIL_NORMALBLENDMETHOD=0}}class f extends u{_markAllSubMeshesAsTexturesDirty(){this._enable(this._isEnabled),this._internalMarkAllSubMeshesAsTexturesDirty()}isCompatible(){return!0}constructor(e,t=!0){super(e,"DetailMap",140,new d,t),this._texture=null,this.diffuseBlendLevel=1,this.roughnessBlendLevel=1,this.bumpLevel=1,this._normalBlendMethod=r.Material.MATERIAL_NORMALBLENDMETHOD_WHITEOUT,this._isEnabled=!1,this.isEnabled=!1,this._internalMarkAllSubMeshesAsTexturesDirty=e._dirtyCallbacks[1]}isReadyForSubMesh(e,t,r){return!this._isEnabled||!e._areTexturesDirty||!t.texturesEnabled||!r.getCaps().standardDerivatives||!this._texture||!s.MaterialFlags.DetailTextureEnabled||!!this._texture.isReady()}prepareDefines(e,t){if(this._isEnabled){e.DETAIL_NORMALBLENDMETHOD=this._normalBlendMethod;let r=t.getEngine();e._areTexturesDirty&&(r.getCaps().standardDerivatives&&this._texture&&s.MaterialFlags.DetailTextureEnabled&&this._isEnabled?((0,g.PrepareDefinesForMergedUV)(this._texture,e,"DETAIL"),e.DETAIL_NORMALBLENDMETHOD=this._normalBlendMethod):e.DETAIL=!1)}else e.DETAIL=!1}bindForSubMesh(e,t){if(!this._isEnabled)return;let r=this._material.isFrozen;e.useUbo&&r&&e.isSync||!this._texture||!s.MaterialFlags.DetailTextureEnabled||(e.updateFloat4("vDetailInfos",this._texture.coordinatesIndex,this.diffuseBlendLevel,this.bumpLevel,this.roughnessBlendLevel),(0,g.BindTextureMatrix)(this._texture,e,"detail")),t.texturesEnabled&&this._texture&&s.MaterialFlags.DetailTextureEnabled&&e.setTexture("detailSampler",this._texture)}hasTexture(e){return this._texture===e}getActiveTextures(e){this._texture&&e.push(this._texture)}getAnimatables(e){this._texture&&this._texture.animations&&this._texture.animations.length>0&&e.push(this._texture)}dispose(e){e&&this._texture?.dispose()}getClassName(){return"DetailMapConfiguration"}getSamplers(e){e.push("detailSampler")}getUniforms(){return{ubo:[{name:"vDetailInfos",size:4,type:"vec4"},{name:"detailMatrix",size:16,type:"mat4"}]}}}(0,t.__decorate)([(0,i.serializeAsTexture)("detailTexture"),(0,i.expandToProperty)("_markAllSubMeshesAsTexturesDirty")],f.prototype,"texture",void 0),(0,t.__decorate)([(0,i.serialize)()],f.prototype,"diffuseBlendLevel",void 0),(0,t.__decorate)([(0,i.serialize)()],f.prototype,"roughnessBlendLevel",void 0),(0,t.__decorate)([(0,i.serialize)()],f.prototype,"bumpLevel",void 0),(0,t.__decorate)([(0,i.serialize)(),(0,i.expandToProperty)("_markAllSubMeshesAsTexturesDirty")],f.prototype,"normalBlendMethod",void 0),(0,t.__decorate)([(0,i.serialize)(),(0,i.expandToProperty)("_markAllSubMeshesAsTexturesDirty")],f.prototype,"isEnabled",void 0),e.s(["DetailMapConfiguration",0,f],96066)},94198,e=>{"use strict";(0,e.i(79124).RegisterMesh)(),e.s([])},35820,e=>{"use strict";var t=e.i(82531);e.i(557);var r=e.i(82350);class i extends t.FlowGraphBlock{constructor(e){super(e);const t=e.glTF,i=t?.animations?.map(e=>e._babylonAnimationGroup)||[];this.animationGroups=this.registerDataOutput("animationGroups",r.RichTypeAny,i);const s=t?.nodes?.map(e=>e._babylonTransformNode)||[];this.nodes=this.registerDataOutput("nodes",r.RichTypeAny,s)}getClassName(){return"FlowGraphGLTFDataProvider"}}e.s(["FlowGraphGLTFDataProvider",0,i])},24971,e=>{"use strict";class t{constructor(e){this._pendingActions=[],this._workerInfos=e.map(e=>({workerPromise:Promise.resolve(e),idle:!0}))}dispose(){for(let e of this._workerInfos)e.workerPromise.then(e=>{e.terminate()});this._workerInfos.length=0,this._pendingActions.length=0}push(e){this._executeOnIdleWorker(e)||this._pendingActions.push(e)}_executeOnIdleWorker(e){for(let t of this._workerInfos)if(t.idle)return this._execute(t,e),!0;return!1}_execute(e,t){e.idle=!1,e.workerPromise.then(r=>{t(r,()=>{let t=this._pendingActions.shift();t?this._execute(e,t):e.idle=!0})})}}class r extends t{constructor(e,t,i=r.DefaultOptions){super([]),this._maxWorkers=e,this._createWorkerAsync=t,this._options=i}push(e){if(!this._executeOnIdleWorker(e))if(this._workerInfos.length<this._maxWorkers){let t={workerPromise:this._createWorkerAsync(),idle:!1};this._workerInfos.push(t),this._execute(t,e)}else this._pendingActions.push(e)}_execute(e,t){e.timeoutId&&(clearTimeout(e.timeoutId),delete e.timeoutId),super._execute(e,(r,i)=>{t(r,()=>{i(),e.idle&&(e.timeoutId=setTimeout(()=>{e.workerPromise.then(e=>{e.terminate()});let t=this._workerInfos.indexOf(e);-1!==t&&this._workerInfos.splice(t,1)},this._options.idleTimeElapsedBeforeRelease))})})}}r.DefaultOptions={idleTimeElapsedBeforeRelease:1e3},e.s(["AutoReleaseWorkerPool",0,r])},98159,37540,94498,e=>{"use strict";e.s([],37540);var t=e.i(10534),r=e.i(83464),i=e.i(45515),s=e.i(79124),n=e.i(65703);let a="bakedVertexAnimationSettingsInstanced";function o(e){let t=e.bakedVertexAnimationManager?.texture?.getInternalTexture()?._bufferView;return t instanceof Float32Array||t instanceof Uint16Array}let l=!1;function c(){l||(l=!0,s.Mesh.prototype.thinInstanceAdd=function(e,t=!0){if(!this.getScene().getEngine().getCaps().instancedArrays)return r.Logger.Error("Thin Instances are not supported on this device as Instanced Array extension not supported"),-1;this._thinInstanceUpdateBufferSize("matrix",Array.isArray(e)?e.length:1);let i=this._thinInstanceDataStorage.instancesCount;if(Array.isArray(e))for(let r=0;r<e.length;++r)this.thinInstanceSetMatrixAt(this._thinInstanceDataStorage.instancesCount++,e[r],r===e.length-1&&t);else this.thinInstanceSetMatrixAt(this._thinInstanceDataStorage.instancesCount++,e,t);return i},s.Mesh.prototype.thinInstanceAddSelf=function(e=!0){return this.thinInstanceAdd(t.Matrix.IdentityReadOnly,e)},s.Mesh.prototype.thinInstanceRegisterAttribute=function(e,t){e===n.VertexBuffer.ColorKind&&(e=n.VertexBuffer.ColorInstanceKind),this.removeVerticesData(e),this._thinInstanceInitializeUserStorage(),this._userThinInstanceBuffersStorage.strides[e]=t,this._userThinInstanceBuffersStorage.sizes[e]=t*Math.max(32,this._thinInstanceDataStorage.instancesCount),this._userThinInstanceBuffersStorage.data[e]=new Float32Array(this._userThinInstanceBuffersStorage.sizes[e]),this._userThinInstanceBuffersStorage.vertexBuffers[e]=new n.VertexBuffer(this.getEngine(),this._userThinInstanceBuffersStorage.data[e],e,!0,!1,t,!0),this.setVerticesBuffer(this._userThinInstanceBuffersStorage.vertexBuffers[e])},s.Mesh.prototype.thinInstanceSetMatrixAt=function(e,t,r=!0){if(!this._thinInstanceDataStorage.matrixData||e>=this._thinInstanceDataStorage.instancesCount)return!1;let i=this._thinInstanceDataStorage.matrixData;return t.copyToArray(i,16*e),this._thinInstanceDataStorage.worldMatrices&&(this._thinInstanceDataStorage.worldMatrices[e]=t),r&&(this.thinInstanceBufferUpdated("matrix"),this.doNotSyncBoundingInfo||this.thinInstanceRefreshBoundingInfo(!1)),!0},s.Mesh.prototype.thinInstanceSetAttributeAt=function(e,t,r,i=!0){return e===n.VertexBuffer.ColorKind&&(e=n.VertexBuffer.ColorInstanceKind),!!this._userThinInstanceBuffersStorage&&!!this._userThinInstanceBuffersStorage.data[e]&&!(t>=this._thinInstanceDataStorage.instancesCount)&&(this._thinInstanceUpdateBufferSize(e,0),this._userThinInstanceBuffersStorage.data[e].set(r,t*this._userThinInstanceBuffersStorage.strides[e]),i&&this.thinInstanceBufferUpdated(e),!0)},Object.defineProperty(s.Mesh.prototype,"thinInstanceCount",{get:function(){return this._thinInstanceDataStorage.instancesCount},set:function(e){let t=this._thinInstanceDataStorage.matrixData??this.source?._thinInstanceDataStorage.matrixData;e<=(t?t.length/16:0)&&(this._thinInstanceDataStorage.instancesCount=e)},enumerable:!0,configurable:!0}),s.Mesh.prototype._thinInstanceCreateMatrixBuffer=function(e,t,r=!0){let i=new n.Buffer(this.getEngine(),t,!r,16,!1,!0);for(let t=0;t<4;t++)this.setVerticesBuffer(i.createVertexBuffer(e+t,4*t,4));return i},s.Mesh.prototype.thinInstanceSetBuffer=function(e,t,r=0,i=!0){if(r=r||16,"matrix"===e)this._thinInstanceDataStorage.matrixBuffer?.dispose(),this._thinInstanceDataStorage.matrixBuffer=null,this._thinInstanceDataStorage.matrixBufferSize=t?t.length:32*r,this._thinInstanceDataStorage.matrixData=t,this._thinInstanceDataStorage.worldMatrices=null,null!==t?(this._thinInstanceDataStorage.instancesCount=t.length/r,this._thinInstanceDataStorage.matrixBuffer=this._thinInstanceCreateMatrixBuffer("world",t,i),this.doNotSyncBoundingInfo||this.thinInstanceRefreshBoundingInfo(!1)):(this._thinInstanceDataStorage.instancesCount=0,this.doNotSyncBoundingInfo||this.refreshBoundingInfo());else if("previousMatrix"===e)this._thinInstanceDataStorage.previousMatrixBuffer?.dispose(),this._thinInstanceDataStorage.previousMatrixBuffer=null,this._thinInstanceDataStorage.previousMatrixData=t,null!==t&&(this._thinInstanceDataStorage.previousMatrixBuffer=this._thinInstanceCreateMatrixBuffer("previousWorld",t,i));else if("splatIndex"===e&&t){this._thinInstanceInitializeUserStorage(),this._thinInstanceDataStorage.instancesCount=t.length/r,this._userThinInstanceBuffersStorage.data[e]=t,this._userThinInstanceBuffersStorage.strides[e]=r,this._userThinInstanceBuffersStorage.sizes[e]=t.length;let i=new n.Buffer(this.getEngine(),t,!0,16,!1,!0);this._thinInstanceDataStorage.matrixBuffer=i;for(let t=0;t<4;t++)this.setVerticesBuffer(i.createVertexBuffer(e+t,4*t,4))}else e===n.VertexBuffer.ColorKind&&(e=n.VertexBuffer.ColorInstanceKind),null===t?this._userThinInstanceBuffersStorage?.data[e]&&(this.removeVerticesData(e),delete this._userThinInstanceBuffersStorage.data[e],delete this._userThinInstanceBuffersStorage.strides[e],delete this._userThinInstanceBuffersStorage.sizes[e],delete this._userThinInstanceBuffersStorage.vertexBuffers[e]):(this._thinInstanceInitializeUserStorage(),this._userThinInstanceBuffersStorage.data[e]=t,this._userThinInstanceBuffersStorage.strides[e]=r,this._userThinInstanceBuffersStorage.sizes[e]=t.length,this._userThinInstanceBuffersStorage.vertexBuffers[e]=new n.VertexBuffer(this.getEngine(),t,e,!i,!1,r,!0),this.setVerticesBuffer(this._userThinInstanceBuffersStorage.vertexBuffers[e]))},s.Mesh.prototype.thinInstanceBufferUpdated=function(e){"matrix"===e?(this.thinInstanceAllowAutomaticStaticBufferRecreation&&this._thinInstanceDataStorage.matrixBuffer&&!this._thinInstanceDataStorage.matrixBuffer.isUpdatable()&&this._thinInstanceRecreateBuffer(e),this._thinInstanceDataStorage.matrixBuffer?.updateDirectly(this._thinInstanceDataStorage.matrixData,0,this._thinInstanceDataStorage.instancesCount)):"previousMatrix"===e?(this.thinInstanceAllowAutomaticStaticBufferRecreation&&this._thinInstanceDataStorage.previousMatrixBuffer&&!this._thinInstanceDataStorage.previousMatrixBuffer.isUpdatable()&&this._thinInstanceRecreateBuffer(e),this._thinInstanceDataStorage.previousMatrixBuffer?.updateDirectly(this._thinInstanceDataStorage.previousMatrixData,0,this._thinInstanceDataStorage.instancesCount)):"splatIndex"===e?this._thinInstanceDataStorage.matrixBuffer?.updateDirectly(this._userThinInstanceBuffersStorage.data[e],0,this._thinInstanceDataStorage.instancesCount):(e===n.VertexBuffer.ColorKind&&(e=n.VertexBuffer.ColorInstanceKind),this._userThinInstanceBuffersStorage?.vertexBuffers[e]&&(this.thinInstanceAllowAutomaticStaticBufferRecreation&&!this._userThinInstanceBuffersStorage.vertexBuffers[e].isUpdatable()&&this._thinInstanceRecreateBuffer(e),this._userThinInstanceBuffersStorage.vertexBuffers[e].updateDirectly(this._userThinInstanceBuffersStorage.data[e],0)))},s.Mesh.prototype.thinInstancePartialBufferUpdate=function(e,t,r){if("matrix"===e)this._thinInstanceDataStorage.matrixBuffer&&("number"==typeof t?this._thinInstanceDataStorage.matrixBuffer.updateDirectly(new Float32Array(this._thinInstanceDataStorage.matrixData.buffer,this._thinInstanceDataStorage.matrixData.byteOffset+16*r*Float32Array.BYTES_PER_ELEMENT,16*t),16*r):this._thinInstanceDataStorage.matrixBuffer.updateDirectly(t,r));else if(e===n.VertexBuffer.ColorKind&&(e=n.VertexBuffer.ColorInstanceKind),this._userThinInstanceBuffersStorage?.vertexBuffers[e]){let i=this._userThinInstanceBuffersStorage.vertexBuffers[e];if("number"==typeof t){let i=new Float32Array(this._userThinInstanceBuffersStorage.data[e].buffer,this._userThinInstanceBuffersStorage.data[e].byteOffset+r*this._userThinInstanceBuffersStorage.strides[e]*Float32Array.BYTES_PER_ELEMENT,t*this._userThinInstanceBuffersStorage.strides[e]);this._userThinInstanceBuffersStorage.vertexBuffers[e].updateDirectly(i,r*this._userThinInstanceBuffersStorage.strides[e])}else i.updateDirectly(t,r)}},s.Mesh.prototype.thinInstanceGetWorldMatrices=function(){if(!this._thinInstanceDataStorage.matrixData||!this._thinInstanceDataStorage.matrixBuffer)return[];let e=this._thinInstanceDataStorage.matrixData;if(!this._thinInstanceDataStorage.worldMatrices){this._thinInstanceDataStorage.worldMatrices=[];for(let r=0;r<this._thinInstanceDataStorage.instancesCount;++r)this._thinInstanceDataStorage.worldMatrices[r]=t.Matrix.FromArray(e,16*r)}return this._thinInstanceDataStorage.worldMatrices},s.Mesh.prototype.thinInstanceRefreshBoundingInfo=function(e=!1,r=!1,s=!1,l=!1){if(!this._thinInstanceDataStorage.matrixData||!this._thinInstanceDataStorage.matrixBuffer)return;let c=this._thinInstanceDataStorage.boundingVectors;if(e||!this.rawBoundingInfo){if(c.length=0,l&&function(e,r,s){let l=e._userThinInstanceBuffersStorage,c=l?.data[a],h=l?.strides[a];if(!c||!h||h<4||!o(e))return!1;let u=e._thinInstanceDataStorage.matrixData;if(!u)return!1;let g={},d=t.TmpVectors.Vector4[0],f=t.TmpVectors.Vector3[1],p=t.TmpVectors.Vector3[2],m=t.TmpVectors.Vector3[3],_=t.TmpVectors.Vector3[4],y=t.TmpVectors.Vector3[5],T=t.TmpVectors.Vector3[6],x=t.TmpVectors.Matrix[2],I=e.geometry?e.geometry.boundingBias:null,P=e.getTotalVertices();f.setAll(1/0),p.setAll(-1/0),m.setAll(1/0),_.setAll(-1/0);for(let r=0;r<e._thinInstanceDataStorage.instancesCount;++r){let i=r*h;d.set(c[i],c[i+1],c[i+2],c[i+3]);let a=e._getData({applyMorph:s,applyBakedVertexAnimation:!0,bakedVertexAnimationSettings:d,updatePositionsArray:!1,cache:g},null,n.VertexBuffer.PositionKind);if(!a)return!1;y.setAll(1/0),T.setAll(-1/0);for(let e=0;e<3*P;e+=3){let t=a[e],r=a[e+1],i=a[e+2];t<y.x&&(y.x=t),r<y.y&&(y.y=r),i<y.z&&(y.z=i),t>T.x&&(T.x=t),r>T.y&&(T.y=r),i>T.z&&(T.z=i)}I&&(y.x-=y.x*I.x+I.y,y.y-=y.y*I.x+I.y,y.z-=y.z*I.x+I.y,T.x+=T.x*I.x+I.y,T.y+=T.y*I.x+I.y,T.z+=T.z*I.x+I.y),f.minimizeInPlace(y),p.maximizeInPlace(T),t.Matrix.FromArrayToRef(u,16*r,x),I?function(e,r,i,s,n){let a=t.TmpVectors.Vector3[7],o=t.TmpVectors.Vector3[8];for(let l=0;l<2;++l)for(let c=0;c<2;++c)for(let h=0;h<2;++h)a.set(l?r.x:e.x,c?r.y:e.y,h?r.z:e.z),t.Vector3.TransformCoordinatesToRef(a,i,o),s.minimizeInPlace(o),n.maximizeInPlace(o)}(y,T,x,m,_):function(e,r,i,s,n){let a=t.TmpVectors.Vector3[7];for(let o=0;o<3*r;o+=3)t.Vector3.TransformCoordinatesFromFloatsToRef(e[o],e[o+1],e[o+2],i,a),s.minimizeInPlace(a),n.maximizeInPlace(a)}(a,P,x,m,_)}if(!isFinite(f.x)||!isFinite(m.x))return!1;e.getBoundingInfo().reConstruct(m,_),e.rawBoundingInfo=new i.BoundingInfo(f,p);var b=e.rawBoundingInfo;r.length=0;for(let e=0;e<b.boundingBox.vectors.length;++e)r.push(b.boundingBox.vectors[e].clone());return e._updateBoundingInfo(),!0}(this,c,s))return;l&&this.bakedVertexAnimationManager?.isEnabled&&o(this)?this.refreshBoundingInfo({applySkeleton:r,applyMorph:s,applyBakedVertexAnimation:!0,updatePositionsArray:!1}):this.refreshBoundingInfo(r,s);let e=this.getBoundingInfo();this.rawBoundingInfo=new i.BoundingInfo(e.minimum,e.maximum)}let h=this.getBoundingInfo(),u=this._thinInstanceDataStorage.matrixData;if(0===c.length)for(let e=0;e<h.boundingBox.vectors.length;++e)c.push(h.boundingBox.vectors[e].clone());t.TmpVectors.Vector3[0].setAll(1/0),t.TmpVectors.Vector3[1].setAll(-1/0);for(let e=0;e<this._thinInstanceDataStorage.instancesCount;++e){t.Matrix.FromArrayToRef(u,16*e,t.TmpVectors.Matrix[0]);for(let e=0;e<c.length;++e)t.Vector3.TransformCoordinatesToRef(c[e],t.TmpVectors.Matrix[0],t.TmpVectors.Vector3[2]),t.TmpVectors.Vector3[0].minimizeInPlace(t.TmpVectors.Vector3[2]),t.TmpVectors.Vector3[1].maximizeInPlace(t.TmpVectors.Vector3[2])}h.reConstruct(t.TmpVectors.Vector3[0],t.TmpVectors.Vector3[1]),this._updateBoundingInfo()},s.Mesh.prototype._thinInstanceRecreateBuffer=function(e,t=!0){"matrix"===e?(this._thinInstanceDataStorage.matrixBuffer?.dispose(),this._thinInstanceDataStorage.matrixBuffer=this._thinInstanceCreateMatrixBuffer("world",this._thinInstanceDataStorage.matrixData,t)):"previousMatrix"===e?this._scene.needsPreviousWorldMatrices&&(this._thinInstanceDataStorage.previousMatrixBuffer?.dispose(),this._thinInstanceDataStorage.previousMatrixBuffer=this._thinInstanceCreateMatrixBuffer("previousWorld",this._thinInstanceDataStorage.previousMatrixData??this._thinInstanceDataStorage.matrixData,t)):(e===n.VertexBuffer.ColorKind&&(e=n.VertexBuffer.ColorInstanceKind),this._userThinInstanceBuffersStorage.vertexBuffers[e]?.dispose(),this._userThinInstanceBuffersStorage.vertexBuffers[e]=new n.VertexBuffer(this.getEngine(),this._userThinInstanceBuffersStorage.data[e],e,!t,!1,this._userThinInstanceBuffersStorage.strides[e],!0),this.setVerticesBuffer(this._userThinInstanceBuffersStorage.vertexBuffers[e]))},s.Mesh.prototype._thinInstanceUpdateBufferSize=function(e,t=1){e===n.VertexBuffer.ColorKind&&(e=n.VertexBuffer.ColorInstanceKind);let r="matrix"===e;if(!r&&(!this._userThinInstanceBuffersStorage||!this._userThinInstanceBuffersStorage.strides[e]))return;let i=r?16:this._userThinInstanceBuffersStorage.strides[e],s=r?this._thinInstanceDataStorage.matrixBufferSize:this._userThinInstanceBuffersStorage.sizes[e],a=r?this._thinInstanceDataStorage.matrixData:this._userThinInstanceBuffersStorage.data[e],o=(this._thinInstanceDataStorage.instancesCount+t)*i,l=s;for(;l<o;)l*=2;if(!a||s!=l){if(a){let e=new Float32Array(l);e.set(a,0),a=e}else a=new Float32Array(l);r?(this._thinInstanceDataStorage.matrixBuffer?.dispose(),this._thinInstanceDataStorage.matrixBuffer=this._thinInstanceCreateMatrixBuffer("world",a,!1),this._thinInstanceDataStorage.matrixData=a,this._thinInstanceDataStorage.matrixBufferSize=l,this._scene.needsPreviousWorldMatrices&&!this._thinInstanceDataStorage.previousMatrixData&&(this._thinInstanceDataStorage.previousMatrixBuffer?.dispose(),this._thinInstanceDataStorage.previousMatrixBuffer=this._thinInstanceCreateMatrixBuffer("previousWorld",a,!1))):(this._userThinInstanceBuffersStorage.vertexBuffers[e]?.dispose(),this._userThinInstanceBuffersStorage.data[e]=a,this._userThinInstanceBuffersStorage.sizes[e]=l,this._userThinInstanceBuffersStorage.vertexBuffers[e]=new n.VertexBuffer(this.getEngine(),a,e,!0,!1,i,!0),this.setVerticesBuffer(this._userThinInstanceBuffersStorage.vertexBuffers[e]))}},s.Mesh.prototype._thinInstanceInitializeUserStorage=function(){this._userThinInstanceBuffersStorage||(this._userThinInstanceBuffersStorage={data:{},sizes:{},vertexBuffers:{},strides:{}})},s.Mesh.prototype._disposeThinInstanceSpecificData=function(){this._thinInstanceDataStorage?.matrixBuffer&&(this._thinInstanceDataStorage.matrixBuffer.dispose(),this._thinInstanceDataStorage.matrixBuffer=null),this._thinInstanceDataStorage?.previousMatrixBuffer&&(this._thinInstanceDataStorage.previousMatrixBuffer.dispose(),this._thinInstanceDataStorage.previousMatrixBuffer=null)})}e.s(["RegisterThinInstanceMesh",0,c],94498),c(),e.s([],98159)},44336,e=>{"use strict";var t=e.i(16147),r=e.i(40220),i=e.i(10534),s=e.i(75053),n=e.i(98491),a=e.i(39766),o=e.i(48477),l=e.i(86143),c=e.i(95397);class h 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,r){super(e,t,!1),this.diffuse=new s.Color3(1,1,1),this.specular=new s.Color3(1,1,1),this.falloffType=h.FALLOFF_DEFAULT,this.intensity=1,this._range=Number.MAX_VALUE,this._inverseSquaredRange=0,this._photometricScale=1,this._intensityMode=h.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,r||this.getScene().addLight(this),this._uniformBuffer=new a.UniformBuffer(this.getScene().getEngine(),void 0,void 0,e),this._buildUniformLayout(),this.includedOnlyMeshes=[],this.excludedMeshes=[],r||this._resyncMeshes()}transferTexturesToEffect(e,t){return this}_bindLight(e,t,r,i,n=!0){let a=e.toString(),o=!1;if(this._uniformBuffer.bindToEffect(r,"Light"+a),this._renderId!==t.getRenderId()||this._lastUseSpecular!==i||!this._uniformBuffer.useUbo){this._renderId=t.getRenderId(),this._lastUseSpecular=i;let e=this.getScaledIntensity();this.transferToEffect(r,a),this.diffuse.scaleToRef(e,s.TmpColors.Color3[0]),this._uniformBuffer.updateColor4("vLightDiffuse",s.TmpColors.Color3[0],this.range,a),i&&(this.specular.scaleToRef(e,s.TmpColors.Color3[1]),this._uniformBuffer.updateColor4("vLightSpecular",s.TmpColors.Color3[1],this.radius,a)),o=!0}if(this.transferTexturesToEffect(r,a),t.shadowsEnabled&&this.shadowEnabled&&n){let e=this.getShadowGenerator(t.activeCamera)??this.getShadowGenerator();e&&(e.bindShadowLight(a,r),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 r=0;r<this.animations.length;r++)t+=", animation[0]: "+this.animations[r].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 i.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 r=h.GetConstructorFromName(this.getTypeID(),e,this.getScene());if(!r)return null;let i=c.SerializationHelper.Clone(r,this);return e&&(i.name=e),t&&(i.parent=t),i.setEnabled(this.isEnabled()),this.onClonedObservable.notifyObservers(i),i}serialize(){let e=c.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 c.SerializationHelper.AppendSerializedAnimations(this,e),e.ranges=this.serializeAnimationRanges(),e.isEnabled=this.isEnabled(),e}static GetConstructorFromName(e,t,r){let i=n.Node.Construct("Light_Type_"+e,t,r);return i||null}static Parse(e,t,r=""){let i=h.GetConstructorFromName(e.type,e.name,t);if(!i)return null;let s=c.SerializationHelper.Parse(i,e,t,r);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 r=e.animations[t],i=(0,o.GetClass)("BABYLON.Animation");i&&s.animations.push(i.Parse(r))}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,r),s}_onParsed(e,t,r=""){}_hookArrayForExcluded(e){let t=e.push;e.push=(...r)=>{let i=t.apply(e,r);if(this._clusteredContainer)return i;for(let e of r)e._resyncLightSource(this);return i};let r=e.splice;if(e.splice=(t,i)=>{let s=r.call(e,t,i??e.length);if(this._clusteredContainer)return s;for(let e of s)e._resyncLightSource(this);return s},!this._clusteredContainer)for(let t of e)t._resyncLightSource(this)}_hookArrayForIncludedOnly(e){let t=e.push;e.push=(...r)=>{let i=t.apply(e,r);return this._resyncMeshes(),i};let r=e.splice;e.splice=(t,i)=>{let s=r.call(e,t,i??e.length);return this._resyncMeshes(),s},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(),r=this.intensityMode;switch(r===h.INTENSITYMODE_AUTOMATIC&&(r=t===h.LIGHTTYPEID_DIRECTIONALLIGHT?h.INTENSITYMODE_ILLUMINANCE:h.INTENSITYMODE_LUMINOUSINTENSITY),t){case h.LIGHTTYPEID_POINTLIGHT:case h.LIGHTTYPEID_SPOTLIGHT:switch(r){case h.INTENSITYMODE_LUMINOUSPOWER:e=1/(4*Math.PI);break;case h.INTENSITYMODE_LUMINOUSINTENSITY:e=1;break;case h.INTENSITYMODE_LUMINANCE:e=this.radius*this.radius}break;case h.LIGHTTYPEID_DIRECTIONALLIGHT:switch(r){case h.INTENSITYMODE_ILLUMINANCE:e=1;break;case h.INTENSITYMODE_LUMINANCE:{let t=this.radius;e=2*Math.PI*(1-Math.cos(t=Math.max(t,.001)))}}break;case h.LIGHTTYPEID_HEMISPHERICLIGHT:case h.LIGHTTYPEID_RECT_AREALIGHT:e=1}return e}_reorderLightsInScene(){let e=this.getScene();0!=this._renderPriority&&(e.requireLightSorting=!0),this.getScene().sortLightsByPriority()}areLightTexturesReady(){return!0}_isReady(){return!0}}h.FALLOFF_DEFAULT=l.LightConstants.FALLOFF_DEFAULT,h.FALLOFF_PHYSICAL=l.LightConstants.FALLOFF_PHYSICAL,h.FALLOFF_GLTF=l.LightConstants.FALLOFF_GLTF,h.FALLOFF_STANDARD=l.LightConstants.FALLOFF_STANDARD,h.LIGHTMAP_DEFAULT=l.LightConstants.LIGHTMAP_DEFAULT,h.LIGHTMAP_SPECULAR=l.LightConstants.LIGHTMAP_SPECULAR,h.LIGHTMAP_SHADOWSONLY=l.LightConstants.LIGHTMAP_SHADOWSONLY,h.INTENSITYMODE_AUTOMATIC=l.LightConstants.INTENSITYMODE_AUTOMATIC,h.INTENSITYMODE_LUMINOUSPOWER=l.LightConstants.INTENSITYMODE_LUMINOUSPOWER,h.INTENSITYMODE_LUMINOUSINTENSITY=l.LightConstants.INTENSITYMODE_LUMINOUSINTENSITY,h.INTENSITYMODE_ILLUMINANCE=l.LightConstants.INTENSITYMODE_ILLUMINANCE,h.INTENSITYMODE_LUMINANCE=l.LightConstants.INTENSITYMODE_LUMINANCE,h.LIGHTTYPEID_POINTLIGHT=l.LightConstants.LIGHTTYPEID_POINTLIGHT,h.LIGHTTYPEID_DIRECTIONALLIGHT=l.LightConstants.LIGHTTYPEID_DIRECTIONALLIGHT,h.LIGHTTYPEID_SPOTLIGHT=l.LightConstants.LIGHTTYPEID_SPOTLIGHT,h.LIGHTTYPEID_HEMISPHERICLIGHT=l.LightConstants.LIGHTTYPEID_HEMISPHERICLIGHT,h.LIGHTTYPEID_RECT_AREALIGHT=l.LightConstants.LIGHTTYPEID_RECT_AREALIGHT,(0,t.__decorate)([(0,r.serializeAsColor3)()],h.prototype,"diffuse",void 0),(0,t.__decorate)([(0,r.serializeAsColor3)()],h.prototype,"specular",void 0),(0,t.__decorate)([(0,r.serialize)()],h.prototype,"falloffType",void 0),(0,t.__decorate)([(0,r.serialize)()],h.prototype,"intensity",void 0),(0,t.__decorate)([(0,r.serialize)()],h.prototype,"range",null),(0,t.__decorate)([(0,r.serialize)()],h.prototype,"intensityMode",null),(0,t.__decorate)([(0,r.serialize)()],h.prototype,"radius",null),(0,t.__decorate)([(0,r.serialize)()],h.prototype,"_renderPriority",void 0),(0,t.__decorate)([(0,r.expandToProperty)("_reorderLightsInScene")],h.prototype,"renderPriority",void 0),(0,t.__decorate)([(0,r.serialize)("shadowEnabled")],h.prototype,"_shadowEnabled",void 0),(0,t.__decorate)([(0,r.serialize)("excludeWithLayerMask")],h.prototype,"_excludeWithLayerMask",void 0),(0,t.__decorate)([(0,r.serialize)("includeOnlyWithLayerMask")],h.prototype,"_includeOnlyWithLayerMask",void 0),(0,t.__decorate)([(0,r.serialize)("lightmapMode")],h.prototype,"_lightmapMode",void 0),e.s(["Light",0,h])},38153,19895,e=>{"use strict";var t=e.i(16147),r=e.i(40220),i=e.i(10534),s=e.i(75053),n=e.i(44336),a=e.i(98491),o=e.i(48477);class l extends n.Light{constructor(e,t,r,n){super(e,r,n),this.groundColor=new s.Color3(0,0,0),this.direction=t||i.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=i.Vector3.Normalize(e.subtract(i.Vector3.Zero())),this.direction}getShadowGenerator(){return null}transferToEffect(e,t){let r=i.Vector3.Normalize(this.direction);return this._uniformBuffer.updateFloat4("vLightData",r.x,r.y,r.z,0,t),this._uniformBuffer.updateColor3("vLightGround",this.groundColor.scale(this.intensity),t),this}transferToNodeMaterialEffect(e,t){let r=i.Vector3.Normalize(this.direction);return e.setFloat3(t,r.x,r.y,r.z),this}computeWorldMatrix(){return this._worldMatrix||(this._worldMatrix=i.Matrix.Identity()),this._worldMatrix}getTypeID(){return n.Light.LIGHTTYPEID_HEMISPHERICLIGHT}prepareLightSpecificDefines(e,t){e["HEMILIGHT"+t]=!0}}(0,t.__decorate)([(0,r.serializeAsColor3)()],l.prototype,"groundColor",void 0),(0,t.__decorate)([(0,r.serializeAsVector3)()],l.prototype,"direction",void 0);let c=!1;function h(){c||(c=!0,a.Node.AddNodeConstructor("Light_Type_3",(e,t)=>()=>new l(e,i.Vector3.Zero(),t)),(0,o.RegisterClass)("BABYLON.HemisphericLight",l))}e.s(["HemisphericLight",0,l,"RegisterHemisphericLight",0,h],19895),h(),e.s([],38153)},93701,e=>{"use strict";var t=e.i(16147),r=e.i(44988),i=e.i(29711),s=e.i(35270),n=e.i(47867),a=e.i(83464),o=e.i(61023),l=e.i(40220);let c=null;async function h(){let t=n.EngineStore.LastCreatedEngine?.createCanvas(100,100)??new OffscreenCanvas(100,100);t instanceof OffscreenCanvas&&a.Logger.Warn("DumpData: OffscreenCanvas will be used for dumping data. This may result in lossy alpha values.");let{ThinEngine:i}=await e.A(14235);if(!i.IsSupported)throw Error("DumpData: No WebGL context available. Cannot dump data.");let s=new i(t,!1,{preserveDrawingBuffer:!0,depth:!1,stencil:!1,alpha:!0,premultipliedAlpha:!1,antialias:!1,failIfMajorPerformanceCaveat:!1});n.EngineStore.Instances.pop(),n.EngineStore.OnEnginesDisposedObservable.add(e=>{s&&e!==s&&!s.isDisposed&&0===n.EngineStore.Instances.length&&_()}),s.getCaps().parallelShaderCompile=void 0;let o=new r.EffectRenderer(s),{passPixelShader:l}=await e.A(23899),c=new r.EffectWrapper({engine:s,name:l.name,fragmentShader:l.shader,samplerNames:["textureSampler"]});return{canvas:t,dumpEngine:{engine:s,renderer:o,wrapper:c}}}async function u(){return c||(c=h()),await c}class g{static async EncodeImageAsync(e,t,r,s,n,a){let o=await u(),l=o.dumpEngine;l.engine.setSize(t,r,!0);let c=l.engine.createRawTexture(e,t,r,5,!1,!n,1);return l.renderer.setViewport(),l.renderer.applyEffectWrapper(l.wrapper),l.wrapper.effect._bindTexture("textureSampler",c),l.renderer.draw(),c.dispose(),await new Promise((e,t)=>{i.Tools.ToBlob(o.canvas,r=>{r?e(r):t(Error("EncodeImageAsync: Failed to convert canvas to blob."))},s,a)})}}(0,t.__decorate)([l.nativeOverride],g,"EncodeImageAsync",null);let d=g.EncodeImageAsync;async function f(e,t,r,i,s="image/png",n,a){let o=new Uint8Array((await r.readPixels(0,0,e,t)).buffer);m(e,t,o,i,s,n,!0,void 0,a)}async function p(e,t,r,n="image/png",l,c=!1,h=!1,u){if(r instanceof Float32Array){let e=new Uint8Array(r.length),t=r.length;for(;t--;){let i=r[t];e[t]=Math.round(255*(0,s.Clamp)(i))}r=e}let d=await g.EncodeImageAsync(r,e,t,n,c,u);void 0!==l&&i.Tools.DownloadBlob(d,l),d.type!==n&&a.Logger.Warn(`DumpData: The requested mimeType '${n}' is not supported. The result has mimeType '${d.type}' instead.`);let f=await d.arrayBuffer();return h?f:`data:${n};base64,${(0,o.EncodeArrayBufferToBase64)(f)}`}function m(e,t,r,i,s="image/png",n,a=!1,o=!1,l){void 0!==n||i||(n=""),p(e,t,r,s,n,a,o,l).then(e=>{i&&i(e)})}function _(){c&&(c?.then(e=>{e.canvas instanceof HTMLCanvasElement&&e.canvas.remove(),e.dumpEngine&&(e.dumpEngine.engine.dispose(),e.dumpEngine.renderer.dispose(),e.dumpEngine.wrapper.dispose())}),c=null)}let y=!1;e.s(["Dispose",0,_,"DumpData",0,m,"DumpDataAsync",0,p,"DumpFramebuffer",0,f,"DumpTools",0,{DumpData:m,DumpDataAsync:p,DumpFramebuffer:f,Dispose:_},"EncodeImageAsync",0,d,"RegisterDumpTools",0,function(){y||(y=!0,i.Tools.DumpData=m,i.Tools.DumpDataAsync=p,i.Tools.DumpFramebuffer=f)}])},84658,e=>{"use strict";var t=e.i(65679),r=e.i(10534),i=e.i(35270),s=e.i(12247),n=e.i(58727),a=e.i(68061),o=(e.i(56770),e.i(41190)),l=e.i(83464),c=e.i(13456),h=e.i(93701),u=e.i(5512);let g="image/png",d=[134,22,135,150,246,214,150,54];function f(e){if(e.version>2)throw Error(`Unsupported babylon environment map version "${e.version}". Latest supported version is "2".`);return 2===e.version?e:e={...e,version:2,imageType:g}}async function p(e,t,r,i,s,n,a,o,l,c,h){return await new Promise((u,g)=>{if(r){let r=t.createTexture(null,!0,!0,null,1,null,e=>{g(e)},e);i?.onEffectCreatedObservable.addOnce(o=>{o.executeWhenCompiled(()=>{i.externalTextureSamplerBinding=!0,i.onApply=i=>{i._bindTexture("textureSampler",r),i.setFloat2("scale",1,t._features.needsInvertingBitmap&&e instanceof ImageBitmap?-1:1)},t.scenes.length&&(t.scenes[0].postProcessManager.directRender([i],c,!0,n,a),t.restoreDefaultFramebuffer(),r.dispose(),URL.revokeObjectURL(s),u())})})}else{if(t._uploadImageToTexture(h,e,n,a),o){let r=l[a];r&&t._uploadImageToTexture(r._texture,e,n,0)}u()}})}async function m(e,t,r=g){let i=e.getEngine();e.format=5,e.type=0,e.generateMipMaps=!0,e._cachedAnisotropicFilteringLevel=null,i.updateTextureSamplingMode(3,e),await y(e,t,!0,r),e.isReady=!0}async function _(e,t,r,i=g,s=null){let o=e.getEngine(),l=new n.InternalTexture(o,5),c=new a.BaseTexture(o,l);e._irradianceTexture=c,c._dominantDirection=s,l.isCube=!0,l.format=5,l.type=0,l.generateMipMaps=!0,l._cachedAnisotropicFilteringLevel=null,l.generateMipMaps=!0,l.width=r,l.height=r,o.updateTextureSamplingMode(3,l),await y(l,[t],!1,i),o.generateMipMapsForCubemap(l),l.isReady=!0}async function y(r,s,l,c=g){if(!(0,t.IsExponentOfTwo)(r.width))throw Error("Texture size must be a power of two");let h=(0,i.ILog2)(r.width)+1,d=r.getEngine(),f=!1,m=!1,_=null,T=null,x=null,I=d.getCaps();I.textureLOD?d._features.supportRenderAndCopyToLodForFloatTextures?I.textureHalfFloatRender&&I.textureHalfFloatLinearFiltering?(f=!0,r.type=2):I.textureFloatRender&&I.textureFloatLinearFiltering&&(f=!0,r.type=1):f=!1:(f=!1,m=l);let P=0;if(f)d.isWebGPU?(P=1,await e.A(40343)):await e.A(50570),_=new o.PostProcess("rgbdDecode","rgbdDecode",null,null,1,null,3,d,!1,void 0,r.type,void 0,null,!1,void 0,P),r._isRGBD=!1,r.invertY=!1,T=d.createRenderTargetCubeTexture(r.width,{generateDepthBuffer:!1,generateMipMaps:!0,generateStencilBuffer:!1,samplingMode:3,type:r.type,format:5});else if(r._isRGBD=!0,r.invertY=!0,m){x={};let e=r._lodGenerationScale,t=r._lodGenerationOffset;for(let i=0;i<3;i++){let s=(h-1)*e+t,o=Math.round(Math.min(Math.max(t+(s-t)*(1-i/2),0),s)),l=new n.InternalTexture(d,2);l.isCube=!0,l.invertY=!0,l.generateMipMaps=!1,d.updateTextureSamplingMode(2,l);let c=new a.BaseTexture(null);switch(c._isCube=!0,c._texture=l,x[o]=c,i){case 0:r._lodTextureLow=c;break;case 1:r._lodTextureMid=c;break;case 2:r._lodTextureHigh=c}}}let b=[];for(let e=0;e<s.length;e++)for(let t=0;t<6;t++){let i,n=s[e][t],a=new Blob([(0,u.GetBlobBufferSource)(n)],{type:c}),o=URL.createObjectURL(a);if(d._features.forceBitmapOverHTMLImageElement)i=d.createImageBitmap(a,{premultiplyAlpha:"none",colorSpaceConversion:"none"}).then(async i=>await p(i,d,f,_,o,t,e,m,x,T,r));else{let s=new Image;s.src=o,i=new Promise((i,n)=>{s.onload=()=>{p(s,d,f,_,o,t,e,m,x,T,r).then(()=>i()).catch(e=>{n(e)})},s.onerror=e=>{n(e)}})}b.push(i)}if(await Promise.all(b),s.length<h){let e,t=Math.pow(2,h-1-s.length),i=t*t*4;switch(r.type){case 0:e=new Uint8Array(i);break;case 2:e=new Uint16Array(i);break;case 1:e=new Float32Array(i)}for(let t=s.length;t<h;t++)for(let i=0;i<6;i++)d._uploadArrayBufferViewToTexture(T?.texture||r,e,i,t)}if(T){let e=r._irradianceTexture;r._irradianceTexture=null,d._releaseTexture(r),T._swapAndDie(r),r._irradianceTexture=e}_&&_.dispose(),m&&(r._lodTextureHigh&&r._lodTextureHigh._texture&&(r._lodTextureHigh._texture.isReady=!0),r._lodTextureMid&&r._lodTextureMid._texture&&(r._lodTextureMid._texture.isReady=!0),r._lodTextureLow&&r._lodTextureLow._texture&&(r._lodTextureLow._texture.isReady=!0))}e.s(["GetEnvInfo",0,function(e){let t,r=new DataView(e.buffer,e.byteOffset,e.byteLength),i=0;for(let e=0;e<d.length;e++)if(r.getUint8(i++)!==d[e])return l.Logger.Error("Not a babylon environment map"),null;let s="";for(;t=r.getUint8(i++);)s+=String.fromCharCode(t);let n=JSON.parse(s);return(n=f(n)).binaryDataPosition=i,n.specular&&(n.specular.lodGenerationScale=n.specular.lodGenerationScale||.8),n},"UploadEnvLevelsAsync",0,function(e,t,i){let s=(i=f(i)).specular;if(!s)return Promise.resolve([]);e._lodGenerationScale=s.lodGenerationScale;let n=[],a=function(e,t){let r=(t=f(t)).specular,i=Math.log2(t.width);if(i=Math.round(i)+1,r.mipmaps.length!==6*i)throw Error(`Unsupported specular mipmaps number "${r.mipmaps.length}"`);let s=Array(i);for(let n=0;n<i;n++){s[n]=Array(6);for(let i=0;i<6;i++){let a=r.mipmaps[6*n+i];s[n][i]=new Uint8Array(e.buffer,e.byteOffset+t.binaryDataPosition+a.position,a.length)}}return s}(t,i);n.push(m(e,a,i.imageType));let o=i.irradiance?.irradianceTexture;if(o){let s=function(e,t){t=f(t);let r=Array(6),i=t.irradiance?.irradianceTexture;if(i){if(6!==i.faces.length)throw Error(`Incorrect irradiance texture faces number "${i.faces.length}"`);for(let s=0;s<6;s++){let n=i.faces[s];r[s]=new Uint8Array(e.buffer,e.byteOffset+t.binaryDataPosition+n.position,n.length)}}return r}(t,i),a=null;i.irradiance?.irradianceTexture?.dominantDirection&&(a=r.Vector3.FromArray(i.irradiance.irradianceTexture.dominantDirection)),n.push(_(e,s,o.size,i.imageType,a))}return Promise.all(n)},"UploadEnvSpherical",0,function(e,t){let i=(t=f(t)).irradiance;if(!i)return;let n=new s.SphericalPolynomial;r.Vector3.FromArrayToRef(i.x,0,n.x),r.Vector3.FromArrayToRef(i.y,0,n.y),r.Vector3.FromArrayToRef(i.z,0,n.z),r.Vector3.FromArrayToRef(i.xx,0,n.xx),r.Vector3.FromArrayToRef(i.yy,0,n.yy),r.Vector3.FromArrayToRef(i.zz,0,n.zz),r.Vector3.FromArrayToRef(i.yz,0,n.yz),r.Vector3.FromArrayToRef(i.zx,0,n.zx),r.Vector3.FromArrayToRef(i.xy,0,n.xy),e._sphericalPolynomial=n},"_UpdateRGBDAsync",0,function(e,t,r,i,s){let n=m(e.getEngine().createRawCubeTexture(null,e.width,e.format,e.type,e.generateMipMaps,e.invertY,e.samplingMode,e._compression),t).then(()=>e);return e.onRebuildCallback=e=>({proxy:n,isReady:!0,isAsync:!0}),e._source=13,e._bufferViewArrayArray=t,e._lodGenerationScale=i,e._lodGenerationOffset=s,e._sphericalPolynomial=r,m(e,t).then(()=>(e.isReady=!0,e))}])},87456,e=>{"use strict";var t,r,i=e.i(29711),s=e.i(57554),n=e.i(56770),a=e.i(47867),o=e.i(83464),l=e.i(15298),c=e.i(25746),h=e.i(65771),u=e.i(53477),g=e.i(20307),d=e.i(72491);async function f(e,t){let r=t.method||"GET";return await new Promise((i,s)=>{let n=new d.WebRequest;n.addEventListener("readystatechange",()=>{if(4==n.readyState)if(200==n.status){let e={};if(t.responseHeaders)for(let r of t.responseHeaders)e[r]=n.getResponseHeader(r)||"";i({response:n.response,headerValues:e})}else s(`Unable to fetch data from ${e}. Error code: ${n.status}`)}),n.open(r,e),n.send()})}(t=r||(r={}))[t.Clean=0]="Clean",t[t.Stop=1]="Stop",t[t.Sync=2]="Sync",t[t.NoSync=3]="NoSync";let p=new s.Observable,m={},_=!1;function y(){return m[".babylon"]}function T(e,t){let r=m[e];return r||(o.Logger.Warn("Unable to find a plugin to load "+e+" files. Trying to use .babylon default plugin. To load from a specific filetype (eg. gltf) see: https://doc.babylonjs.com/features/featuresDeepDive/importers/loadingFileTypes"),t?y():void 0)}function x(e,t,r){let i,s=(i="Unable to load from "+(e.rawData?"binary data":e.url),t?i+=`: ${t}`:r&&(i+=`: ${r}`),i);return new h.RuntimeError(s,h.ErrorCodes.SceneLoaderError,r)}function I(e){return e instanceof Error?e.message:String(e)}function P(e,t){return t instanceof h.RuntimeError&&t.errorCode===h.ErrorCodes.SceneLoaderError?t:x(e,I(t),t)}function b(e,t){if(!(e.importMesh||e.load||e.loadAssetContainer))return e;let r=e=>{let r,i=e((e,t)=>{r={message:e,exception:t}});if(!i)throw x(t,r?.message,r?.exception);return i};return{name:e.name,extensions:e.extensions,importMeshAsync:async(t,i,s,n)=>{let a=[],o=[],l=[];return r(r=>e.importMesh(t,i,s,n,a,o,l,r)),{meshes:a,particleSystems:o,skeletons:l,animationGroups:[],transformNodes:[],geometries:[],lights:[],spriteManagers:[]}},loadAsync:async(t,i,s)=>{r(r=>e.load(t,i,s,r))},loadAssetContainerAsync:async(t,i,s)=>r(r=>e.loadAssetContainer(t,i,s,r))}}function S(e,t,r){let i=I(r);e&&t?e(t,i,r):o.Logger.Error(i)}function v(e){if(e)return t=>{try{e(t)}catch(e){o.Logger.Warn("Error in onProgress callback: "+I(e))}}}async function M(e,t,r,i,s,n){var a,o;let l,h,u,d="data:"===(a=e.url).substring(0,5)?a.substring(5):null;if(e.rawData&&!i)throw Error("When using ArrayBufferView to load data the file extension must be provided.");let _=d||i?"":(-1!==(h=(o=e.url).indexOf("?"))&&(o=o.substring(0,h)),u=o.lastIndexOf("."),o.substring(u,o.length).toLowerCase()),I=i?T(i,!0):d?function(e){for(let t in m){let r=m[t].plugin;if(r.canDirectLoad&&r.canDirectLoad(e))return m[t]}return y()}(e.url):T(_,!1);if(!I&&_){if(e.url&&!e.url.startsWith("blob:")){let t=await f(e.url,{method:"HEAD",responseHeaders:["Content-Type"]}),r=t.headerValues?t.headerValues["Content-Type"]:"";r&&(I=function(e){for(let t in m){let r=m[t];if(r.mimeType===e)return r}}(r))}I||(I=y())}if(!I)throw Error(`No plugin or fallback for ${i??e.url}`);if(n?.[I.plugin.name]?.enabled===!1)throw Error(`The '${I.plugin.name}' plugin is disabled via the loader options passed to the loading operation.`);if(e.rawData&&!I.isBinary)throw Error("Loading from ArrayBufferView can not be used with plugins that don't support binary loading.");if(I.plugin.createPlugin){let t=I.plugin;try{let e=t.createPlugin(n??{});l=e instanceof Promise?await e:e}catch(t){throw x(e,"Error instantiating plugin.",t)}}else l=I.plugin;if(!l)throw Error(`The loader plugin corresponding to the '${i}' file type has not been found. If using es6, please import the plugin you wish to use before.`);if(p.notifyObservers(l),d&&(l.canDirectLoad&&l.canDirectLoad(e.url)||!(0,c.IsBase64DataUrl)(e.url))){if(l.directLoad){let r;try{r=await l.directLoad(t,d)}catch(t){throw x(e,"Error in directLoad of _loadData: "+t,t)}return{plugin:l,data:r}}return{plugin:l,data:d}}let P=I.isBinary;return await new Promise((i,n)=>{let a=null,o=!1,c=l.onDisposeObservable?.add(()=>{o=!0,a&&(a.abort(),a=null),u(x(e,"Loading was aborted because the plugin was disposed."))}),h=()=>{c&&l.onDisposeObservable?.remove(c)},u=e=>{h(),n(e)},d=(r,s)=>{var n;t.isDisposed?u(x(e,"Scene has been disposed")):(n={plugin:l,data:r,responseURL:s},h(),i(n))},f=()=>{if(o)return;let i=(t,r)=>{u(x(e,t?.statusText,r))};if(!l.loadFile&&e.rawData)return void u(x(e,"Plugin does not support loading ArrayBufferView."));try{a=l.loadFile?l.loadFile(t,e.rawData||e.file||e.url,e.rootUrl,d,r,P,i,s):t._loadFile(e.file||e.url,d,r,!0,P,i)}catch(t){u(x(e,void 0,t))}},p=t.getEngine(),m=!e.file&&!e.rawData&&p.enableOfflineSupport;if(m){let r=!1;for(let i of t.disableOfflineSupportExceptionRules)if(i.test(e.url)){r=!0;break}m=!r}if(m&&g.AbstractEngine.OfflineProviderFactory)try{t.offlineProvider=g.AbstractEngine.OfflineProviderFactory(e.url,f,p.disableManifestCheck)}catch(t){u(x(e,void 0,t))}else f()})}function D(e,t){let r,s,n=null,a=null;if(t)if(t.name)r=`file:${t.name}`,s=t.name,n=t;else if(ArrayBuffer.isView(t))r="",s=(0,u.RandomGUID)(),a=t;else if(t.startsWith("data:"))r=t,s="";else if(e){if("/"===t.substring(0,1))return i.Tools.Error("Wrong sceneFilename parameter"),null;r=e+t,s=t}else r=t,s=i.Tools.GetFilename(t),e=i.Tools.GetFolderPath(t);else r=e,s=i.Tools.GetFilename(e),e=i.Tools.GetFolderPath(e);return{url:r,rootUrl:e,name:s,file:n,rawData:a}}function L(e){if("string"==typeof e.extensions)m[e.extensions.toLowerCase()]={plugin:e,isBinary:!1};else{let t=e.extensions;for(let r of Object.keys(t))m[r.toLowerCase()]={plugin:e,isBinary:t[r].isBinary,mimeType:t[r].mimeType}}}async function E(e,t,r="",i=a.EngineStore.LastCreatedScene,s,n,o="",l={}){if(!i)throw Error("No scene available to import mesh to");let c=D(t,r);if(!c)throw Error("Cannot load file: a valid scene filename or root url was not provided.");let h={};i.addPendingData(h);let u=v(s);try{let t,{plugin:r,data:s,responseURL:a}=await M(c,i,u,n??null,o,l);r.rewriteRootURL&&(c.rootUrl=r.rewriteRootURL(c.rootUrl,a));try{t=await b(r,c).importMeshAsync(e,i,s,c.rootUrl,u,c.name)}catch(e){throw P(c,e)}return i.loadingPluginName=r.name,i.importedMeshesFiles.push(c.url),t}finally{i.removePendingData(h)}}async function A(e,t="",r=a.EngineStore.LastCreatedEngine,i,s,o="",l={}){if(!r)throw Error("No engine available");let c=new n.Scene(r);try{await C(e,t,c,i,s,o,l)}catch(e){throw c.dispose(),e}return c}async function C(e,t="",r=a.EngineStore.LastCreatedScene,i,s,n="",o={}){if(!r)throw Error("No scene available to append to");let c=D(e,t);if(!c)throw Error("Cannot load file: a valid scene filename or root url was not provided.");let h={};r.addPendingData(h),l.SceneLoaderFlags.ShowLoadingScreen&&!_&&(_=!0,r.getEngine().displayLoadingUI(),r.executeWhenReady(()=>{r.getEngine().hideLoadingUI(),_=!1}));let u=v(i);try{let{plugin:e,data:t}=await M(c,r,u,s??null,n,o);try{await b(e,c).loadAsync(r,t,c.rootUrl,u,c.name)}catch(e){throw P(c,e)}return r.loadingPluginName=e.name,r}finally{r.removePendingData(h)}}async function w(e,t="",r=a.EngineStore.LastCreatedScene,i,s,n="",o={}){if(!r)throw Error("No scene available to load asset container to");let l=D(e,t);if(!l)throw Error("Cannot load file: a valid scene filename or root url was not provided.");let c={};r.addPendingData(c);let h=v(i);try{let e,{plugin:t,data:i}=await M(l,r,h,s??null,n,o),a=b(t,l);if(!a.loadAssetContainerAsync)throw x(l,"LoadAssetContainer is not supported by this plugin. Plugin did not provide a loadAssetContainer or loadAssetContainerAsync method.");try{e=await a.loadAssetContainerAsync(r,i,l.rootUrl,h,l.name)}catch(e){throw P(l,e)}return e.populateRootNodes(),r.loadingPluginName=t.name,e}finally{r.removePendingData(c)}}async function R(e,t,r){let{rootUrl:i="",onProgress:s,pluginExtension:n,name:a,pluginOptions:o}=r??{};return await w(i,e,t,s,n,a,o)}async function V(e,t="",r=a.EngineStore.LastCreatedScene,i=!0,s=0,n=null,o,l,c="",h={}){if(!r)throw Error("No scene available to load animations to");if(i){for(let e of r.animatables)e.reset();for(let e of(r.stopAllAnimations(),r.animationGroups.slice()))e.dispose();for(let e of r.getNodes())e.animations&&(e.animations=[])}else switch(s){case 0:for(let e of r.animationGroups.slice())e.dispose();break;case 1:for(let e of r.animationGroups)e.stop();break;case 2:for(let e of r.animationGroups)e.reset(),e.restart();break;case 3:break;default:throw Error("Unknown animation group loading mode value '"+s+"'")}let u=r.animatables.length,g=await w(e,t,r,o,l,c,h);g.mergeAnimationsTo(r,r.animatables.slice(u),n),g.dispose(),r.onAnimationFileImportedObservable.notifyObservers(r)}class N{static get ForceFullSceneLoadingForIncremental(){return l.SceneLoaderFlags.ForceFullSceneLoadingForIncremental}static set ForceFullSceneLoadingForIncremental(e){l.SceneLoaderFlags.ForceFullSceneLoadingForIncremental=e}static get ShowLoadingScreen(){return l.SceneLoaderFlags.ShowLoadingScreen}static set ShowLoadingScreen(e){l.SceneLoaderFlags.ShowLoadingScreen=e}static get loggingLevel(){return l.SceneLoaderFlags.loggingLevel}static set loggingLevel(e){l.SceneLoaderFlags.loggingLevel=e}static get CleanBoneMatrixWeights(){return l.SceneLoaderFlags.CleanBoneMatrixWeights}static set CleanBoneMatrixWeights(e){l.SceneLoaderFlags.CleanBoneMatrixWeights=e}static GetDefaultPlugin(){return y()}static GetPluginForExtension(e){return T(e,!0)?.plugin}static IsPluginForExtensionAvailable(e){return!!m[e]}static RegisterPlugin(e){L(e)}static ImportMesh(e,t,r,i,s,n,o,l,c,h){let u=i??a.EngineStore.LastCreatedScene;(async()=>{try{let a=await E(e,t,r,i,n,l,c,h);s?.(a.meshes,a.particleSystems,a.skeletons,a.animationGroups,a.transformNodes,a.geometries,a.lights,a.spriteManagers)}catch(e){S(o,u,e)}})()}static async ImportMeshAsync(e,t,r,i,s,n,a){return await E(e,t,r,i,s,n,a)}static Load(e,t,r,i,s,n,o,l){(async()=>{try{let n=await A(e,t,r,s,o,l);i?.(n)}catch(e){S(n,a.EngineStore.LastCreatedScene,e)}})()}static async LoadAsync(e,t,r,i,s,n){return await A(e,t,r,i,s,n)}static Append(e,t,r,i,s,n,o,l){let c=r??a.EngineStore.LastCreatedScene;(async()=>{try{let n=await C(e,t,r,s,o,l);i?.(n)}catch(e){S(n,c,e)}})()}static async AppendAsync(e,t,r,i,s,n){return await C(e,t,r,i,s,n)}static LoadAssetContainer(e,t,r,i,s,n,o,l){let c=r??a.EngineStore.LastCreatedScene;(async()=>{try{let n=await w(e,t,r,s,o,l);i?.(n)}catch(e){S(n,c,e)}})()}static async LoadAssetContainerAsync(e,t,r,i,s,n){return await w(e,t,r,i,s,n)}static ImportAnimations(e,t,r,i,s,n,o,l,c,h,u){let g=r??a.EngineStore.LastCreatedScene;(async()=>{try{await V(e,t,r,i,s,n,l,h,u),o?.(g)}catch(e){S(c,g,e)}})()}static async ImportAnimationsAsync(e,t,r,i,s,n,o,l,c,h,u){let g=r??a.EngineStore.LastCreatedScene;return await V(e,t,g,i,s,n,l,h,u),g}}N.NO_LOGGING=0,N.MINIMAL_LOGGING=1,N.SUMMARY_LOGGING=2,N.DETAILED_LOGGING=3,N.OnPluginActivatedObservable=p,e.s(["LoadAssetContainerAsync",0,R,"RegisterSceneLoaderPlugin",0,L],87456)},29820,7233,92799,68230,95723,24921,e=>{"use strict";var t=e.i(58667);(0,t.RegisterAnimation)(),e.s([],7233),e.i(7904);var r=e.i(10534),i=e.i(6426);e.i(89718);var s=e.i(75053),n=e.i(16147),a=e.i(40220),o=e.i(44336),l=o,c=e.i(91095);class h extends l.Light{constructor(){super(...arguments),this._needProjectionMatrixCompute=!0,this._viewMatrix=r.Matrix.Identity(),this._projectionMatrix=r.Matrix.Identity()}_setPosition(e){this._position=e}get position(){return this._position}set position(e){this._setPosition(e)}_setDirection(e){this._direction=e}get direction(){return this._direction}set direction(e){this._setDirection(e)}get shadowMinZ(){return this._shadowMinZ}set shadowMinZ(e){this._shadowMinZ=e,this.forceProjectionMatrixCompute()}get shadowMaxZ(){return this._shadowMaxZ}set shadowMaxZ(e){this._shadowMaxZ=e,this.forceProjectionMatrixCompute()}computeTransformedInformation(){return!!this.parent&&!!this.parent.getWorldMatrix&&(this.transformedPosition||(this.transformedPosition=r.Vector3.Zero()),r.Vector3.TransformCoordinatesToRef(this.position,this.parent.getWorldMatrix(),this.transformedPosition),this.direction&&(this.transformedDirection||(this.transformedDirection=r.Vector3.Zero()),r.Vector3.TransformNormalToRef(this.direction,this.parent.getWorldMatrix(),this.transformedDirection)),!0)}getDepthScale(){return 50}getShadowDirection(e){return this.transformedDirection?this.transformedDirection:this.direction}getAbsolutePosition(){return this.transformedPosition?this.transformedPosition:this.position}setDirectionToTarget(e){return this.direction=r.Vector3.Normalize(e.subtract(this.position)),this.direction}getRotation(){this.direction.normalize();let e=r.Vector3.Cross(this.direction,c.Axis.Y),t=r.Vector3.Cross(e,this.direction);return r.Vector3.RotationFromAxis(e,t,this.direction)}needCube(){return!1}needProjectionMatrixCompute(){return this._needProjectionMatrixCompute}forceProjectionMatrixCompute(){this._needProjectionMatrixCompute=!0}_initCache(){super._initCache(),this._cache.position=r.Vector3.Zero()}_isSynchronized(){return!!this._cache.position.equals(this.position)}computeWorldMatrix(e){return!e&&this.isSynchronized()?this._currentRenderId=this.getScene().getRenderId():(this._updateCache(),this._cache.position.copyFrom(this.position),this._worldMatrix||(this._worldMatrix=r.Matrix.Identity()),r.Matrix.TranslationToRef(this.position.x,this.position.y,this.position.z,this._worldMatrix),this.parent&&this.parent.getWorldMatrix&&(this._worldMatrix.multiplyToRef(this.parent.getWorldMatrix(),this._worldMatrix),this._markSyncedWithParent()),this._worldMatrixDeterminantIsDirty=!0),this._worldMatrix}getDepthMinZ(e){return void 0!==this.shadowMinZ?this.shadowMinZ:e?.minZ||0}getDepthMaxZ(e){return void 0!==this.shadowMaxZ?this.shadowMaxZ:e?.maxZ||1e4}setShadowProjectionMatrix(e,t,r){return this.customProjectionMatrixBuilder?this.customProjectionMatrixBuilder(t,r,e):this._setDefaultShadowProjectionMatrix(e,t,r),this}_syncParentEnabledState(){super._syncParentEnabledState(),this.parent&&this.parent.getWorldMatrix||(this.transformedPosition=null,this.transformedDirection=null)}getViewMatrix(e){let t=r.TmpVectors.Vector3[0],i=this.position;this.computeTransformedInformation()&&(i=this.transformedPosition),r.Vector3.NormalizeToRef(this.getShadowDirection(e),t),1===Math.abs(r.Vector3.Dot(t,r.Vector3.Up()))&&(t.z=1e-13);let s=r.TmpVectors.Vector3[1];return i.addToRef(t,s),r.Matrix.LookAtLHToRef(i,s,r.Vector3.Up(),this._viewMatrix),this._viewMatrix}getProjectionMatrix(e,t){return this.setShadowProjectionMatrix(this._projectionMatrix,e??this._viewMatrix,t??[]),this._projectionMatrix}}(0,n.__decorate)([(0,a.serializeAsVector3)()],h.prototype,"position",null),(0,n.__decorate)([(0,a.serializeAsVector3)()],h.prototype,"direction",null),(0,n.__decorate)([(0,a.serialize)()],h.prototype,"shadowMinZ",null),(0,n.__decorate)([(0,a.serialize)()],h.prototype,"shadowMaxZ",null),e.s(["ShadowLight",0,h],92799);var u=e.i(67374),g=e.i(98491),d=e.i(48477);class f extends h{get iesProfileTexture(){return this._iesProfileTexture}set iesProfileTexture(e){this._iesProfileTexture!==e&&(this._iesProfileTexture=e,this._iesProfileTexture&&f._IsTexture(this._iesProfileTexture)&&this._iesProfileTexture.onLoadObservable.addOnce(()=>{this._markMeshesAsLightDirty()}))}get angle(){return this._angle}set angle(e){this._angle=e,this._cosHalfAngle=Math.cos(.5*e),this._projectionTextureProjectionLightDirty=!0,this.forceProjectionMatrixCompute(),this._computeAngleValues()}get innerAngle(){return this._innerAngle}set innerAngle(e){this._innerAngle=e,this._computeAngleValues()}get shadowAngleScale(){return this._shadowAngleScale}set shadowAngleScale(e){this._shadowAngleScale=e,this.forceProjectionMatrixCompute()}get projectionTextureMatrix(){return this._projectionTextureMatrix}get projectionTextureLightNear(){return this._projectionTextureLightNear}set projectionTextureLightNear(e){this._projectionTextureLightNear=e,this._projectionTextureProjectionLightDirty=!0}get projectionTextureLightFar(){return this._projectionTextureLightFar}set projectionTextureLightFar(e){this._projectionTextureLightFar=e,this._projectionTextureProjectionLightDirty=!0}get projectionTextureUpDirection(){return this._projectionTextureUpDirection}set projectionTextureUpDirection(e){this._projectionTextureUpDirection=e,this._projectionTextureProjectionLightDirty=!0}get projectionTexture(){return this._projectionTexture}set projectionTexture(e){this._projectionTexture!==e&&(this._projectionTexture=e,this._projectionTextureDirty=!0,this._projectionTexture&&!this._projectionTexture.isReady()&&(f._IsProceduralTexture(this._projectionTexture)?this._projectionTexture.getEffect().executeWhenCompiled(()=>{this._markMeshesAsLightDirty()}):f._IsTexture(this._projectionTexture)&&this._projectionTexture.onLoadObservable.addOnce(()=>{this._markMeshesAsLightDirty()})))}static _IsProceduralTexture(e){return void 0!==e.onGeneratedObservable}static _IsTexture(e){return void 0!==e.onLoadObservable}get projectionTextureProjectionLightMatrix(){return this._projectionTextureProjectionLightMatrix}set projectionTextureProjectionLightMatrix(e){this._projectionTextureProjectionLightMatrix=e,this._projectionTextureProjectionLightDirty=!1,this._projectionTextureDirty=!0}constructor(e,t,i,s,n,a,o){super(e,a,o),this._innerAngle=0,this._iesProfileTexture=null,this._projectionTextureMatrix=r.Matrix.Zero(),this._projectionTextureLightNear=1e-6,this._projectionTextureLightFar=1e3,this._projectionTextureUpDirection=r.Vector3.Up(),this._projectionTextureViewLightDirty=!0,this._projectionTextureProjectionLightDirty=!0,this._projectionTextureDirty=!0,this._projectionTextureViewTargetVector=r.Vector3.Zero(),this._projectionTextureViewLightMatrix=r.Matrix.Zero(),this._projectionTextureProjectionLightMatrix=r.Matrix.Zero(),this._projectionTextureScalingMatrix=r.Matrix.FromValues(.5,0,0,0,0,.5,0,0,0,0,.5,0,.5,.5,.5,1),this.position=t,this.direction=i,this.angle=s,this.exponent=n}getClassName(){return"SpotLight"}getTypeID(){return o.Light.LIGHTTYPEID_SPOTLIGHT}_setDirection(e){super._setDirection(e),this._projectionTextureViewLightDirty=!0}_setPosition(e){super._setPosition(e),this._projectionTextureViewLightDirty=!0}_setDefaultShadowProjectionMatrix(e,t,i){let s=this.getScene().activeCamera;if(!s)return;this._shadowAngleScale=this._shadowAngleScale||1;let n=this._shadowAngleScale*this._angle,a=void 0!==this.shadowMinZ?this.shadowMinZ:s.minZ,o=void 0!==this.shadowMaxZ?this.shadowMaxZ:s.maxZ,l=this.getScene().getEngine().useReverseDepthBuffer;r.Matrix.PerspectiveFovLHToRef(n,1,l?o:a,l?a:o,e,!0,this._scene.getEngine().isNDCHalfZRange,void 0,l)}_computeProjectionTextureViewLightMatrix(){this._projectionTextureViewLightDirty=!1,this._projectionTextureDirty=!0,this.getAbsolutePosition().addToRef(this.getShadowDirection(),this._projectionTextureViewTargetVector),r.Matrix.LookAtLHToRef(this.getAbsolutePosition(),this._projectionTextureViewTargetVector,this._projectionTextureUpDirection,this._projectionTextureViewLightMatrix)}_computeProjectionTextureProjectionLightMatrix(){this._projectionTextureProjectionLightDirty=!1,this._projectionTextureDirty=!0;let e=this.projectionTextureLightFar,t=this.projectionTextureLightNear,i=e/(e-t),s=1/Math.tan(this._angle/2);r.Matrix.FromValuesToRef(s/1,0,0,0,0,s,0,0,0,0,i,1,0,0,-i*t,0,this._projectionTextureProjectionLightMatrix)}_computeProjectionTextureMatrix(){if(this._projectionTextureDirty=!1,this._projectionTextureViewLightMatrix.multiplyToRef(this._projectionTextureProjectionLightMatrix,this._projectionTextureMatrix),this._projectionTexture instanceof u.Texture){let e=this._projectionTexture.uScale/2,t=this._projectionTexture.vScale/2;r.Matrix.FromValuesToRef(e,0,0,0,0,t,0,0,0,0,.5,0,.5,.5,.5,1,this._projectionTextureScalingMatrix)}this._projectionTextureMatrix.multiplyToRef(this._projectionTextureScalingMatrix,this._projectionTextureMatrix)}_buildUniformLayout(){this._uniformBuffer.addUniform("vLightData",4),this._uniformBuffer.addUniform("vLightDiffuse",4),this._uniformBuffer.addUniform("vLightSpecular",4),this._uniformBuffer.addUniform("vLightDirection",3),this._uniformBuffer.addUniform("vLightFalloff",4),this._uniformBuffer.addUniform("shadowsInfo",3),this._uniformBuffer.addUniform("depthValues",2),this._uniformBuffer.create()}_computeAngleValues(){this._lightAngleScale=1/Math.max(.001,Math.cos(.5*this._innerAngle)-this._cosHalfAngle),this._lightAngleOffset=-this._cosHalfAngle*this._lightAngleScale}transferTexturesToEffect(e,t){return this.projectionTexture&&this.projectionTexture.isReady()&&(this._projectionTextureViewLightDirty&&this._computeProjectionTextureViewLightMatrix(),this._projectionTextureProjectionLightDirty&&this._computeProjectionTextureProjectionLightMatrix(),this._projectionTextureDirty&&this._computeProjectionTextureMatrix(),e.setMatrix("textureProjectionMatrix"+t,this._projectionTextureMatrix),e.setTexture("projectionLightTexture"+t,this.projectionTexture)),this._iesProfileTexture&&this._iesProfileTexture.isReady()&&e.setTexture("iesLightTexture"+t,this._iesProfileTexture),this}transferToEffect(e,t){let i,s=this._scene.floatingOriginOffset;return this.computeTransformedInformation()?(this._uniformBuffer.updateFloat4("vLightData",this.transformedPosition.x-s.x,this.transformedPosition.y-s.y,this.transformedPosition.z-s.z,this.exponent,t),i=r.Vector3.Normalize(this.transformedDirection)):(this._uniformBuffer.updateFloat4("vLightData",this.position.x-s.x,this.position.y-s.y,this.position.z-s.z,this.exponent,t),i=r.Vector3.Normalize(this.direction)),this._uniformBuffer.updateFloat4("vLightDirection",i.x,i.y,i.z,this._cosHalfAngle,t),this._uniformBuffer.updateFloat4("vLightFalloff",this.range,this._inverseSquaredRange,this._lightAngleScale,this._lightAngleOffset,t),this}transferToNodeMaterialEffect(e,t){let i;return i=this.computeTransformedInformation()?r.Vector3.Normalize(this.transformedDirection):r.Vector3.Normalize(this.direction),this.getScene().useRightHandedSystem?e.setFloat3(t,-i.x,-i.y,-i.z):e.setFloat3(t,i.x,i.y,i.z),this}dispose(){super.dispose(),this._projectionTexture&&this._projectionTexture.dispose(),this._iesProfileTexture&&(this._iesProfileTexture.dispose(),this._iesProfileTexture=null)}getDepthMinZ(e){let t=this._scene.getEngine(),r=void 0!==this.shadowMinZ?this.shadowMinZ:e?.minZ??0;return t.useReverseDepthBuffer&&t.isNDCHalfZRange?r:this._scene.getEngine().isNDCHalfZRange?0:r}getDepthMaxZ(e){let t=this._scene.getEngine(),r=void 0!==this.shadowMaxZ?this.shadowMaxZ:e?.maxZ??1e4;return t.useReverseDepthBuffer&&t.isNDCHalfZRange?0:r}areLightTexturesReady(){return(!this._projectionTexture||!!this._projectionTexture.isReadyOrNotBlocking())&&(!this._iesProfileTexture||!!this._iesProfileTexture.isReadyOrNotBlocking())}prepareLightSpecificDefines(e,t){e["SPOTLIGHT"+t]=!0,e["PROJECTEDLIGHTTEXTURE"+t]=!!(this.projectionTexture&&this.projectionTexture.isReady()),e["IESLIGHTTEXTURE"+t]=!!(this._iesProfileTexture&&this._iesProfileTexture.isReady())}}(0,n.__decorate)([(0,a.serialize)()],f.prototype,"angle",null),(0,n.__decorate)([(0,a.serialize)()],f.prototype,"innerAngle",null),(0,n.__decorate)([(0,a.serialize)()],f.prototype,"shadowAngleScale",null),(0,n.__decorate)([(0,a.serialize)()],f.prototype,"exponent",void 0),(0,n.__decorate)([(0,a.serialize)()],f.prototype,"projectionTextureLightNear",null),(0,n.__decorate)([(0,a.serialize)()],f.prototype,"projectionTextureLightFar",null),(0,n.__decorate)([(0,a.serialize)()],f.prototype,"projectionTextureUpDirection",null),(0,n.__decorate)([(0,a.serializeAsTexture)("projectedLightTexture")],f.prototype,"_projectionTexture",void 0);let p=!1;function m(){p||(p=!0,g.Node.AddNodeConstructor("Light_Type_2",(e,t)=>()=>new f(e,r.Vector3.Zero(),r.Vector3.Zero(),0,0,t)),(0,d.RegisterClass)("BABYLON.SpotLight",f))}e.s(["RegisterSpotLight",0,m,"SpotLight",0,f],68230),m(),e.s([],95723);let _=[{regex:RegExp("^/nodes/\\d+/extensions/")}];class y{constructor(e,t){this._gltf=e,this._infoTree=t}convert(e){let t,r=this._gltf,i=this._infoTree;if(!e.startsWith("/"))throw Error("Path must start with a /");let s=e.split("/");if(s.shift(),s[s.length-1].includes(".length")){let e=s[s.length-1].split(".");s.pop(),s.push(...e)}let n=!1;for(let a of s){let s="length"===a;if(s&&!i.__array__)throw Error(`Path ${e} is invalid`);if(i.__ignoreObjectTree__&&(n=!0),i.__array__&&!s)i=i.__array__;else if(!(i=i[a]))throw Error(`Path ${e} is invalid`);if(!n)if(void 0===r){if(!_.find(t=>t.regex.test(e)))throw Error(`Path ${e} is invalid`)}else s||(r=r?.[a]);(i.__target__||s)&&(t=r)}return{object:t,info:i}}}function T(e,t,r,i){let s=x(e,t);return i?s[r][i]:s[r]}function x(e,t,r){return e._data?.[r?.fillMode??i.Constants.MATERIAL_TriangleFillMode]?.babylonMaterial}function I(e,t){return{offset:{componentsCount:2,type:"Vector2",get:(i,s,n)=>{let a=T(i,n,e,t);return new r.Vector2(a?.uOffset,a?.vOffset)},getTarget:x,set:(r,i,s,n)=>{let a=T(i,n,e,t);a.uOffset=r.x,a.vOffset=r.y},getPropertyName:[()=>`${e}${t?"."+t:""}.uOffset`,()=>`${e}${t?"."+t:""}.vOffset`]},rotation:{type:"number",get:(r,i,s)=>T(r,s,e,t)?.wAng,getTarget:x,set:(r,i,s,n)=>T(i,n,e,t).wAng=r,getPropertyName:[()=>`${e}${t?"."+t:""}.wAng`]},scale:{componentsCount:2,type:"Vector2",get:(i,s,n)=>{let a=T(i,n,e,t);return new r.Vector2(a?.uScale,a?.vScale)},getTarget:x,set:(r,i,s,n)=>{let a=T(i,n,e,t);a.uScale=r.x,a.vScale=r.y},getPropertyName:[()=>`${e}${t?"."+t:""}.uScale`,()=>`${e}${t?"."+t:""}.vScale`]}}}let P={cameras:{__array__:{__target__:!0,orthographic:{xmag:{componentsCount:2,type:"Vector2",get:e=>new r.Vector2(e._babylonCamera?.orthoLeft??0,e._babylonCamera?.orthoRight??0),set:(e,t)=>{t._babylonCamera&&(t._babylonCamera.orthoLeft=e.x,t._babylonCamera.orthoRight=e.y)},getTarget:e=>e,getPropertyName:[()=>"orthoLeft",()=>"orthoRight"]},ymag:{componentsCount:2,type:"Vector2",get:e=>new r.Vector2(e._babylonCamera?.orthoBottom??0,e._babylonCamera?.orthoTop??0),set:(e,t)=>{t._babylonCamera&&(t._babylonCamera.orthoBottom=e.x,t._babylonCamera.orthoTop=e.y)},getTarget:e=>e,getPropertyName:[()=>"orthoBottom",()=>"orthoTop"]},zfar:{type:"number",get:e=>e._babylonCamera?.maxZ,set:(e,t)=>{t._babylonCamera&&(t._babylonCamera.maxZ=e)},getTarget:e=>e,getPropertyName:[()=>"maxZ"]},znear:{type:"number",get:e=>e._babylonCamera?.minZ,set:(e,t)=>{t._babylonCamera&&(t._babylonCamera.minZ=e)},getTarget:e=>e,getPropertyName:[()=>"minZ"]}},perspective:{aspectRatio:{type:"number",get:e=>e._babylonCamera?.getEngine().getAspectRatio(e._babylonCamera),getTarget:e=>e,getPropertyName:[()=>"aspectRatio"],isReadOnly:!0},yfov:{type:"number",get:e=>e._babylonCamera?.fov,set:(e,t)=>{t._babylonCamera&&(t._babylonCamera.fov=e)},getTarget:e=>e,getPropertyName:[()=>"fov"]},zfar:{type:"number",get:e=>e._babylonCamera?.maxZ,set:(e,t)=>{t._babylonCamera&&(t._babylonCamera.maxZ=e)},getTarget:e=>e,getPropertyName:[()=>"maxZ"]},znear:{type:"number",get:e=>e._babylonCamera?.minZ,set:(e,t)=>{t._babylonCamera&&(t._babylonCamera.minZ=e)},getTarget:e=>e,getPropertyName:[()=>"minZ"]}}}},nodes:{length:{type:"number",get:e=>e.length,getTarget:e=>e.map(e=>e._babylonTransformNode),getPropertyName:[()=>"length"]},__array__:{__target__:!0,translation:{type:"Vector3",get:e=>e._babylonTransformNode?.position,set:(e,t)=>t._babylonTransformNode?.position.copyFrom(e),getTarget:e=>e._babylonTransformNode,getPropertyName:[()=>"position"]},rotation:{type:"Quaternion",get:e=>e._babylonTransformNode?.rotationQuaternion,set:(e,t)=>t._babylonTransformNode?.rotationQuaternion?.copyFrom(e),getTarget:e=>e._babylonTransformNode,getPropertyName:[()=>"rotationQuaternion"]},scale:{type:"Vector3",get:e=>e._babylonTransformNode?.scaling,set:(e,t)=>t._babylonTransformNode?.scaling.copyFrom(e),getTarget:e=>e._babylonTransformNode,getPropertyName:[()=>"scaling"]},weights:{length:{type:"number",get:e=>e._numMorphTargets,getTarget:e=>e._babylonTransformNode,getPropertyName:[()=>"influence"]},__array__:{__target__:!0,type:"number",get:(e,t)=>void 0!==t?e._primitiveBabylonMeshes?.[0].morphTargetManager?.getTarget(t).influence:void 0,getTarget:e=>e._babylonTransformNode,getPropertyName:[()=>"influence"]},type:"number[]",get:(e,t)=>[0],getTarget:e=>e._babylonTransformNode,getPropertyName:[()=>"influence"]},matrix:{type:"Matrix",get:e=>r.Matrix.Compose(e._babylonTransformNode?.scaling,e._babylonTransformNode?.rotationQuaternion,e._babylonTransformNode?.position),getTarget:e=>e._babylonTransformNode,isReadOnly:!0},globalMatrix:{type:"Matrix",get:e=>{let t=r.Matrix.Identity(),i=e.parent;for(;i&&i.parent;)i=i.parent;let s=e._babylonTransformNode?.position._isDirty||e._babylonTransformNode?.rotationQuaternion?._isDirty||e._babylonTransformNode?.scaling._isDirty;if(i){let r=i._babylonTransformNode?.computeWorldMatrix(!0).invert();r&&e._babylonTransformNode?.computeWorldMatrix(s)?.multiplyToRef(r,t)}else e._babylonTransformNode&&t.copyFrom(e._babylonTransformNode.computeWorldMatrix(s));return t},getTarget:e=>e._babylonTransformNode,isReadOnly:!0},extensions:{EXT_lights_ies:{multiplier:{type:"number",get:e=>e._babylonTransformNode?.getChildren(e=>e instanceof f,!0)[0]?.intensity,getTarget:e=>e._babylonTransformNode?.getChildren(e=>e instanceof f,!0)[0],set:(e,t)=>{if(t._babylonTransformNode){let r=t._babylonTransformNode.getChildren(e=>e instanceof f,!0)[0];r&&(r.intensity=e)}}},color:{type:"Color3",get:e=>e._babylonTransformNode?.getChildren(e=>e instanceof f,!0)[0]?.diffuse,getTarget:e=>e._babylonTransformNode?.getChildren(e=>e instanceof f,!0)[0],set:(e,t)=>{if(t._babylonTransformNode){let r=t._babylonTransformNode.getChildren(e=>e instanceof f,!0)[0];r&&(r.diffuse=e)}}}},KHR_node_visibility:{visible:{type:"boolean",get:e=>!!e._primitiveBabylonMeshes&&e._primitiveBabylonMeshes[0].isVisible,getTarget:()=>void 0,set:(e,t)=>{t._primitiveBabylonMeshes&&t._primitiveBabylonMeshes.forEach(t=>t.isVisible=e)}}}}}},materials:{__array__:{__target__:!0,emissiveFactor:{type:"Color3",get:(e,t,r)=>x(e,t,r).emissiveColor,set:(e,t,r,i)=>x(t,r,i).emissiveColor.copyFrom(e),getTarget:(e,t,r)=>x(e,t,r),getPropertyName:[()=>"emissiveColor"]},emissiveTexture:{extensions:{KHR_texture_transform:I("emissiveTexture")}},normalTexture:{scale:{type:"number",get:(e,t,r)=>T(e,r,"bumpTexture")?.level,set:(e,t,r,i)=>{let s=T(t,i,"bumpTexture");s&&(s.level=e)},getTarget:(e,t,r)=>x(e,t,r),getPropertyName:[()=>"level"]},extensions:{KHR_texture_transform:I("bumpTexture")}},occlusionTexture:{strength:{type:"number",get:(e,t,r)=>x(e,t,r).ambientTextureStrength,set:(e,t,r,i)=>{let s=x(t,r,i);s&&(s.ambientTextureStrength=e)},getTarget:(e,t,r)=>x(e,t,r),getPropertyName:[()=>"ambientTextureStrength"]},extensions:{KHR_texture_transform:I("ambientTexture")}},pbrMetallicRoughness:{baseColorFactor:{type:"Color4",get:(e,t,r)=>{let i=x(e,t,r);return s.Color4.FromColor3(i.albedoColor,i.alpha)},set:(e,t,r,i)=>{let s=x(t,r,i);s.albedoColor.set(e.r,e.g,e.b),s.alpha=e.a},getTarget:(e,t,r)=>x(e,t,r),getPropertyName:[()=>"albedoColor",()=>"alpha"]},baseColorTexture:{extensions:{KHR_texture_transform:I("albedoTexture")}},metallicFactor:{type:"number",get:(e,t,r)=>x(e,t,r).metallic,set:(e,t,r,i)=>{let s=x(t,r,i);s&&(s.metallic=e)},getTarget:(e,t,r)=>x(e,t,r),getPropertyName:[()=>"metallic"]},roughnessFactor:{type:"number",get:(e,t,r)=>x(e,t,r).roughness,set:(e,t,r,i)=>{let s=x(t,r,i);s&&(s.roughness=e)},getTarget:(e,t,r)=>x(e,t,r),getPropertyName:[()=>"roughness"]},metallicRoughnessTexture:{extensions:{KHR_texture_transform:I("metallicTexture")}}},extensions:{KHR_materials_anisotropy:{anisotropyStrength:{type:"number",get:(e,t,r)=>x(e,t,r).anisotropy.intensity,set:(e,t,r,i)=>{x(t,r,i).anisotropy.intensity=e},getTarget:(e,t,r)=>x(e,t,r),getPropertyName:[()=>"anisotropy.intensity"]},anisotropyRotation:{type:"number",get:(e,t,r)=>x(e,t,r).anisotropy.angle,set:(e,t,r,i)=>{x(t,r,i).anisotropy.angle=e},getTarget:(e,t,r)=>x(e,t,r),getPropertyName:[()=>"anisotropy.angle"]},anisotropyTexture:{extensions:{KHR_texture_transform:I("anisotropy","texture")}}},KHR_materials_clearcoat:{clearcoatFactor:{type:"number",get:(e,t,r)=>x(e,t,r).clearCoat.intensity,set:(e,t,r,i)=>{x(t,r,i).clearCoat.intensity=e},getTarget:(e,t,r)=>x(e,t,r),getPropertyName:[()=>"clearCoat.intensity"]},clearcoatRoughnessFactor:{type:"number",get:(e,t,r)=>x(e,t,r).clearCoat.roughness,set:(e,t,r,i)=>{x(t,r,i).clearCoat.roughness=e},getTarget:(e,t,r)=>x(e,t,r),getPropertyName:[()=>"clearCoat.roughness"]},clearcoatTexture:{extensions:{KHR_texture_transform:I("clearCoat","texture")}},clearcoatNormalTexture:{scale:{type:"number",get:(e,t,r)=>x(e,t,r).clearCoat.bumpTexture?.level,getTarget:x,set:(e,t,r,i)=>x(t,r,i).clearCoat.bumpTexture.level=e},extensions:{KHR_texture_transform:I("clearCoat","bumpTexture")}},clearcoatRoughnessTexture:{extensions:{KHR_texture_transform:I("clearCoat","textureRoughness")}}},KHR_materials_dispersion:{dispersion:{type:"number",get:(e,t,r)=>x(e,t,r).subSurface.dispersion,getTarget:x,set:(e,t,r,i)=>x(t,r,i).subSurface.dispersion=e}},KHR_materials_emissive_strength:{emissiveStrength:{type:"number",get:(e,t,r)=>x(e,t,r).emissiveIntensity,getTarget:x,set:(e,t,r,i)=>x(t,r,i).emissiveIntensity=e}},KHR_materials_ior:{ior:{type:"number",get:(e,t,r)=>x(e,t,r).indexOfRefraction,getTarget:x,set:(e,t,r,i)=>x(t,r,i).indexOfRefraction=e}},KHR_materials_iridescence:{iridescenceFactor:{type:"number",get:(e,t,r)=>x(e,t,r).iridescence.intensity,getTarget:x,set:(e,t,r,i)=>x(t,r,i).iridescence.intensity=e},iridescenceIor:{type:"number",get:(e,t,r)=>x(e,t,r).iridescence.indexOfRefraction,getTarget:x,set:(e,t,r,i)=>x(t,r,i).iridescence.indexOfRefraction=e},iridescenceTexture:{extensions:{KHR_texture_transform:I("iridescence","texture")}},iridescenceThicknessMaximum:{type:"number",get:(e,t,r)=>x(e,t,r).iridescence.maximumThickness,getTarget:x,set:(e,t,r,i)=>x(t,r,i).iridescence.maximumThickness=e},iridescenceThicknessMinimum:{type:"number",get:(e,t,r)=>x(e,t,r).iridescence.minimumThickness,getTarget:x,set:(e,t,r,i)=>x(t,r,i).iridescence.minimumThickness=e},iridescenceThicknessTexture:{extensions:{KHR_texture_transform:I("iridescence","thicknessTexture")}}},KHR_materials_sheen:{sheenColorFactor:{type:"Color3",get:(e,t,r)=>x(e,t,r).sheen.color,getTarget:x,set:(e,t,r,i)=>x(t,r,i).sheen.color.copyFrom(e)},sheenColorTexture:{extensions:{KHR_texture_transform:I("sheen","texture")}},sheenRoughnessFactor:{type:"number",get:(e,t,r)=>x(e,t,r).sheen.intensity,getTarget:x,set:(e,t,r,i)=>x(t,r,i).sheen.intensity=e},sheenRoughnessTexture:{extensions:{KHR_texture_transform:I("sheen","thicknessTexture")}}},KHR_materials_specular:{specularFactor:{type:"number",get:(e,t,r)=>x(e,t,r).metallicF0Factor,getTarget:x,set:(e,t,r,i)=>x(t,r,i).metallicF0Factor=e,getPropertyName:[()=>"metallicF0Factor"]},specularColorFactor:{type:"Color3",get:(e,t,r)=>x(e,t,r).metallicReflectanceColor,getTarget:x,set:(e,t,r,i)=>x(t,r,i).metallicReflectanceColor.copyFrom(e),getPropertyName:[()=>"metallicReflectanceColor"]},specularTexture:{extensions:{KHR_texture_transform:I("metallicReflectanceTexture")}},specularColorTexture:{extensions:{KHR_texture_transform:I("reflectanceTexture")}}},KHR_materials_transmission:{transmissionFactor:{type:"number",get:(e,t,r)=>x(e,t,r).subSurface.refractionIntensity,getTarget:x,set:(e,t,r,i)=>x(t,r,i).subSurface.refractionIntensity=e,getPropertyName:[()=>"subSurface.refractionIntensity"]},transmissionTexture:{extensions:{KHR_texture_transform:I("subSurface","refractionIntensityTexture")}}},KHR_materials_diffuse_transmission:{diffuseTransmissionFactor:{type:"number",get:(e,t,r)=>x(e,t,r).subSurface.translucencyIntensity,getTarget:x,set:(e,t,r,i)=>x(t,r,i).subSurface.translucencyIntensity=e},diffuseTransmissionTexture:{extensions:{KHR_texture_transform:I("subSurface","translucencyIntensityTexture")}},diffuseTransmissionColorFactor:{type:"Color3",get:(e,t,r)=>x(e,t,r).subSurface.translucencyColor,getTarget:x,set:(e,t,r,i)=>e&&x(t,r,i).subSurface.translucencyColor?.copyFrom(e)},diffuseTransmissionColorTexture:{extensions:{KHR_texture_transform:I("subSurface","translucencyColorTexture")}}},KHR_materials_volume:{attenuationColor:{type:"Color3",get:(e,t,r)=>x(e,t,r).subSurface.tintColor,getTarget:x,set:(e,t,r,i)=>x(t,r,i).subSurface.tintColor.copyFrom(e)},attenuationDistance:{type:"number",get:(e,t,r)=>x(e,t,r).subSurface.tintColorAtDistance,getTarget:x,set:(e,t,r,i)=>x(t,r,i).subSurface.tintColorAtDistance=e},thicknessFactor:{type:"number",get:(e,t,r)=>x(e,t,r).subSurface.maximumThickness,getTarget:x,set:(e,t,r,i)=>x(t,r,i).subSurface.maximumThickness=e},thicknessTexture:{extensions:{KHR_texture_transform:I("subSurface","thicknessTexture")}}}}}},extensions:{KHR_lights_punctual:{lights:{length:{type:"number",get:e=>e.length,getTarget:e=>e.map(e=>e._babylonLight),getPropertyName:[e=>"length"]},__array__:{__target__:!0,color:{type:"Color3",get:e=>e._babylonLight?.diffuse,set:(e,t)=>t._babylonLight?.diffuse.copyFrom(e),getTarget:e=>e._babylonLight,getPropertyName:[e=>"diffuse"]},intensity:{type:"number",get:e=>e._babylonLight?.intensity,set:(e,t)=>t._babylonLight?t._babylonLight.intensity=e:void 0,getTarget:e=>e._babylonLight,getPropertyName:[e=>"intensity"]},range:{type:"number",get:e=>e._babylonLight?.range,set:(e,t)=>t._babylonLight?t._babylonLight.range=e:void 0,getTarget:e=>e._babylonLight,getPropertyName:[e=>"range"]},spot:{innerConeAngle:{type:"number",get:e=>e._babylonLight?.innerAngle,set:(e,t)=>t._babylonLight?t._babylonLight.innerAngle=e:void 0,getTarget:e=>e._babylonLight,getPropertyName:[e=>"innerConeAngle"]},outerConeAngle:{type:"number",get:e=>e._babylonLight?.angle,set:(e,t)=>t._babylonLight?t._babylonLight.angle=e:void 0,getTarget:e=>e._babylonLight,getPropertyName:[e=>"outerConeAngle"]}}}}},EXT_lights_area:{lights:{length:{type:"number",get:e=>e.length,getTarget:e=>e.map(e=>e._babylonLight),getPropertyName:[e=>"length"]},__array__:{__target__:!0,color:{type:"Color3",get:e=>e._babylonLight?.diffuse,set:(e,t)=>t._babylonLight?.diffuse.copyFrom(e),getTarget:e=>e._babylonLight,getPropertyName:[e=>"diffuse"]},intensity:{type:"number",get:e=>e._babylonLight?.intensity,set:(e,t)=>t._babylonLight?t._babylonLight.intensity=e:void 0,getTarget:e=>e._babylonLight,getPropertyName:[e=>"intensity"]},size:{type:"number",get:e=>e._babylonLight?.height,set:(e,t)=>t._babylonLight?t._babylonLight.height=e:void 0,getTarget:e=>e._babylonLight,getPropertyName:[e=>"size"]},rect:{aspect:{type:"number",get:e=>e._babylonLight?.width/e._babylonLight?.height,set:(e,t)=>t._babylonLight?t._babylonLight.width=e*t._babylonLight.height:void 0,getTarget:e=>e._babylonLight,getPropertyName:[e=>"aspect"]}}}}},EXT_lights_ies:{lights:{length:{type:"number",get:e=>e.length,getTarget:e=>e.map(e=>e._babylonLight),getPropertyName:[e=>"length"]}}},EXT_lights_image_based:{lights:{length:{type:"number",get:e=>e.length,getTarget:e=>e.map(e=>e._babylonTexture),getPropertyName:[e=>"length"]},__array__:{__target__:!0,intensity:{type:"number",get:e=>e._babylonTexture?.level,set:(e,t)=>{t._babylonTexture&&(t._babylonTexture.level=e)},getTarget:e=>e._babylonTexture},rotation:{type:"Quaternion",get:e=>e._babylonTexture&&r.Quaternion.FromRotationMatrix(e._babylonTexture?.getReflectionTextureMatrix()),set:(e,t)=>{t._babylonTexture&&(t._babylonTexture.getScene()?.useRightHandedSystem||(e=r.Quaternion.Inverse(e)),r.Matrix.FromQuaternionToRef(e,t._babylonTexture.getReflectionTextureMatrix()))},getTarget:e=>e._babylonTexture}}}}},animations:{length:{type:"number",get:e=>e.length,getTarget:e=>e.map(e=>e._babylonAnimationGroup),getPropertyName:[()=>"length"]},__array__:{}},meshes:{length:{type:"number",get:e=>e.length,getTarget:e=>e.map(e=>e.primitives[0]._instanceData?.babylonSourceMesh),getPropertyName:[()=>"length"]},__array__:{}}};function b(e,t){let r=e.split("/").map(e=>e.replace(/{}/g,"__array__")),i=P;for(let e of r)e&&(i=i[e]);i&&i.type&&i.get&&(i.interpolation=t)}function S(e,t,i,s){return r.Vector3.FromArray(t,i).scaleInPlace(s)}function v(e,t,i,s){return r.Quaternion.FromArray(t,i).scaleInPlace(s)}function M(e,t,r,i){let s=Array(e._numMorphTargets);for(let e=0;e<s.length;e++)s[e]=t[r++]*i;return s}e.s(["AddObjectAccessorToKey",0,function(e,t){let r=e.split("/").map(e=>e.replace(/{}/g,"__array__")),i=P;for(let e of r)if(e){if(!i[e]){if("?"===e){i.__ignoreObjectTree__=!0;continue}i[e]={},"__array__"===e&&(i[e].__target__=!0)}i=i[e]}Object.assign(i,t)},"GetMappingForKey",0,function(e){let t=e.split("/").map(e=>e.replace(/{}/g,"__array__")),r=P;for(let e of t)e&&(r=r[e]);if(r&&r.type&&r.get)return r},"GetPathToObjectConverter",0,function(e){return new y(e,P)},"SetInterpolationForKey",0,b],24921);class D{constructor(e,t,r,i){this.type=e,this.name=t,this.getValue=r,this.getStride=i}_buildAnimation(e,r,i){let s=new t.Animation(e,this.name,r,this.type);return s.setKeys(i,!0),s}}class L extends D{buildAnimations(e,t,r,i){let s=[];return s.push({babylonAnimatable:e._babylonTransformNode,babylonAnimation:this._buildAnimation(t,r,i)}),s}}class E extends D{buildAnimations(e,r,i,s){let n=[];if(e._numMorphTargets)for(let a=0;a<e._numMorphTargets;a++){let o=new t.Animation(`${r}_${a}`,this.name,i,this.type);if(o.setKeys(s.map(e=>({frame:e.frame,inTangent:e.inTangent?e.inTangent[a]:void 0,value:e.value[a],outTangent:e.outTangent?e.outTangent[a]:void 0,interpolation:e.interpolation})),!0),e._primitiveBabylonMeshes){for(let t of e._primitiveBabylonMeshes)if(t.morphTargetManager){let e=t.morphTargetManager.getTarget(a),r=o.clone();e.animations.push(r),n.push({babylonAnimatable:e,babylonAnimation:r})}}}return n}}b("/nodes/{}/translation",[new L(t.Animation.ANIMATIONTYPE_VECTOR3,"position",S,()=>3)]),b("/nodes/{}/rotation",[new L(t.Animation.ANIMATIONTYPE_QUATERNION,"rotationQuaternion",v,()=>4)]),b("/nodes/{}/scale",[new L(t.Animation.ANIMATIONTYPE_VECTOR3,"scaling",S,()=>3)]),b("/nodes/{}/weights",[new E(t.Animation.ANIMATIONTYPE_FLOAT,"influence",M,e=>e._numMorphTargets)]),e.s(["AnimationPropertyInfo",0,D,"TransformNodeAnimationPropertyInfo",0,L,"WeightAnimationPropertyInfo",0,E,"getQuaternion",0,v,"getVector3",0,S,"getWeights",0,M],29820)},71261,e=>{e.v(t=>Promise.all(["static/chunks/0m0n7kjzscx0y.js"].map(t=>e.l(t))).then(()=>t(76549)))},34554,e=>{e.v(t=>Promise.all(["static/chunks/08rk1dp1wb-gm.js"].map(t=>e.l(t))).then(()=>t(55414)))},7399,e=>{e.v(t=>Promise.all(["static/chunks/3g5ae-38cepwm.js","static/chunks/3043pprgv9ors.js"].map(t=>e.l(t))).then(()=>t(54019)))},95693,e=>{e.v(t=>Promise.all(["static/chunks/2yzui3v-besdu.js","static/chunks/1bv97vf67p_ri.js"].map(t=>e.l(t))).then(()=>t(85833)))},21288,e=>{e.v(t=>Promise.all(["static/chunks/2enlv4yy0t-9j.js","static/chunks/1fvlbwp6r93wo.js"].map(t=>e.l(t))).then(()=>t(42742)))},47300,e=>{e.v(t=>Promise.all(["static/chunks/0296l8lzd69ns.js","static/chunks/0-tk5ptli--r0.js"].map(t=>e.l(t))).then(()=>t(16546)))},87465,e=>{e.v(e=>Promise.resolve().then(()=>e(29820)))},64291,e=>{e.v(t=>Promise.all(["static/chunks/42oyfkhdvb-u3.js","static/chunks/1g_27texazqcj.js"].map(t=>e.l(t))).then(()=>t(56771)))},49211,e=>{e.v(e=>Promise.resolve().then(()=>e(17255)))},21576,e=>{e.v(t=>Promise.all(["static/chunks/09p5fltt7o3to.js","static/chunks/2ey30qeaob985.js"].map(t=>e.l(t))).then(()=>t(78619)))},72473,e=>{e.v(e=>Promise.resolve().then(()=>e(53638)))},88484,e=>{e.v(t=>Promise.all(["static/chunks/1kl5xxohpr6-4.js"].map(t=>e.l(t))).then(()=>t(99916)))},13831,e=>{e.v(t=>Promise.all(["static/chunks/1f92k-xa0pl-3.js"].map(t=>e.l(t))).then(()=>t(86742)))},16301,e=>{e.v(t=>Promise.all(["static/chunks/1-ud6hztxiazp.js"].map(t=>e.l(t))).then(()=>t(57348)))},23899,e=>{e.v(t=>Promise.all(["static/chunks/2dolerz81xb52.js"].map(t=>e.l(t))).then(()=>t(36090)))},17030,e=>{e.v(t=>Promise.all(["static/chunks/2kn_dqzbyabtn.js"].map(t=>e.l(t))).then(()=>t(67861)))},94467,e=>{e.v(t=>Promise.all(["static/chunks/0c2k-gvwph4qs.js"].map(t=>e.l(t))).then(()=>t(31151)))},28636,e=>{e.v(t=>Promise.all(["static/chunks/0mk8tangq9equ.js"].map(t=>e.l(t))).then(()=>t(86828)))},38938,e=>{e.v(t=>Promise.all(["static/chunks/3he9bxsc67ivq.js"].map(t=>e.l(t))).then(()=>t(76530)))},11,e=>{e.v(t=>Promise.all(["static/chunks/22qzld31fbhbv.js"].map(t=>e.l(t))).then(()=>t(82014)))},11326,e=>{e.v(t=>Promise.all(["static/chunks/3sbm1ak54_2ep.js"].map(t=>e.l(t))).then(()=>t(20009)))},79994,e=>{e.v(t=>Promise.all(["static/chunks/2vmybybb3dvia.js"].map(t=>e.l(t))).then(()=>t(16388)))},28348,e=>{e.v(t=>Promise.all(["static/chunks/0x4-zyy8pzmlq.js"].map(t=>e.l(t))).then(()=>t(78529)))},26797,e=>{e.v(t=>Promise.all(["static/chunks/286ggpetqnwyo.js"].map(t=>e.l(t))).then(()=>t(43682)))},50570,e=>{e.v(t=>Promise.all(["static/chunks/1b2tkk7e_2o0k.js"].map(t=>e.l(t))).then(()=>t(93822)))},40343,e=>{e.v(t=>Promise.all(["static/chunks/2dqg85hsevk3c.js"].map(t=>e.l(t))).then(()=>t(7058)))},55967,e=>{e.v(t=>Promise.all(["static/chunks/0zwkmsojeuekb.js"].map(t=>e.l(t))).then(()=>t(79789)))},82777,e=>{e.v(t=>Promise.all(["static/chunks/1rne-b-ktit5c.js"].map(t=>e.l(t))).then(()=>t(60512)))},14235,e=>{e.v(t=>Promise.all(["static/chunks/2f0r-df7tb3pu.js"].map(t=>e.l(t))).then(()=>t(93891)))},25094,e=>{e.v(t=>Promise.all(["static/chunks/390fogn9oz13i.js","static/chunks/1a7cup181rjod.js"].map(t=>e.l(t))).then(()=>t(85358)))},94183,e=>{e.v(t=>Promise.all(["static/chunks/3kr1polwvt6o_.js"].map(t=>e.l(t))).then(()=>t(68091)))},14112,e=>{e.v(t=>Promise.all(["static/chunks/0i9oqg-xbq-a9.js"].map(t=>e.l(t))).then(()=>t(21666)))},52470,e=>{e.v(t=>Promise.all(["static/chunks/1kq86iv41cet4.js"].map(t=>e.l(t))).then(()=>t(34495)))},80036,e=>{e.v(t=>Promise.all(["static/chunks/0ngiuj5k-or6g.js"].map(t=>e.l(t))).then(()=>t(8918)))},84475,e=>{e.v(t=>Promise.all(["static/chunks/0rruvj1cyflrh.js"].map(t=>e.l(t))).then(()=>t(26112)))},24728,e=>{e.v(t=>Promise.all(["static/chunks/2op88btas-hl8.js"].map(t=>e.l(t))).then(()=>t(37358)))},88167,e=>{e.v(t=>Promise.all(["static/chunks/1fa265388524p.js"].map(t=>e.l(t))).then(()=>t(63032)))},66759,e=>{e.v(t=>Promise.all(["static/chunks/0ngai1_zxwsk8.js"].map(t=>e.l(t))).then(()=>t(25840)))},63626,e=>{e.v(t=>Promise.all(["static/chunks/14klj_i6-l-10.js"].map(t=>e.l(t))).then(()=>t(79968)))},95236,e=>{e.v(t=>Promise.all(["static/chunks/3hr-mlwi78nov.js"].map(t=>e.l(t))).then(()=>t(4350)))},72423,e=>{e.v(t=>Promise.all(["static/chunks/05l3dluxivcor.js"].map(t=>e.l(t))).then(()=>t(39352)))},79438,e=>{e.v(t=>Promise.all(["static/chunks/44gsjajjdhf51.js"].map(t=>e.l(t))).then(()=>t(86911)))},12726,e=>{e.v(t=>Promise.all(["static/chunks/06ljadw2-i91-.js"].map(t=>e.l(t))).then(()=>t(94755)))},64574,e=>{e.v(t=>Promise.all(["static/chunks/1kmsg9ef5djl3.js"].map(t=>e.l(t))).then(()=>t(13953)))},84888,e=>{e.v(t=>Promise.all(["static/chunks/0mqi0xn_c010j.js"].map(t=>e.l(t))).then(()=>t(39305)))},40566,e=>{e.v(t=>Promise.all(["static/chunks/229mkx-mtfcgf.js"].map(t=>e.l(t))).then(()=>t(84575)))},67993,e=>{e.v(t=>Promise.all(["static/chunks/0ioyy42h35hnd.js"].map(t=>e.l(t))).then(()=>t(69646)))},62217,e=>{e.v(t=>Promise.all(["static/chunks/38g9jpxjoxn2x.js"].map(t=>e.l(t))).then(()=>t(65207)))},44489,e=>{e.v(t=>Promise.all(["static/chunks/1f1vq3goue1w4.js"].map(t=>e.l(t))).then(()=>t(41075)))},59746,e=>{e.v(t=>Promise.all(["static/chunks/3x6wpv_z5m6rz.js"].map(t=>e.l(t))).then(()=>t(35381)))},48767,e=>{e.v(t=>Promise.all(["static/chunks/3d5yb9ybkz7hx.js"].map(t=>e.l(t))).then(()=>t(33606)))},29391,e=>{e.v(t=>Promise.all(["static/chunks/168r9r65o9jnc.js"].map(t=>e.l(t))).then(()=>t(21983)))},74678,e=>{e.v(t=>Promise.all(["static/chunks/0ostjlqtwkhqr.js"].map(t=>e.l(t))).then(()=>t(3733)))},65257,e=>{e.v(t=>Promise.all(["static/chunks/2s0dwzg7kq36n.js"].map(t=>e.l(t))).then(()=>t(69878)))},31443,e=>{e.v(t=>Promise.all(["static/chunks/1wyr4at61q29n.js"].map(t=>e.l(t))).then(()=>t(19750)))},98574,e=>{e.v(t=>Promise.all(["static/chunks/2716si10ouwu-.js"].map(t=>e.l(t))).then(()=>t(93013)))},9966,e=>{e.v(t=>Promise.all(["static/chunks/04pk6n3z75dcy.js"].map(t=>e.l(t))).then(()=>t(7850)))},51990,e=>{e.v(t=>Promise.all(["static/chunks/2ib62lnqqaf4p.js"].map(t=>e.l(t))).then(()=>t(72832)))},68763,e=>{e.v(t=>Promise.all(["static/chunks/02tc9r3sc7fgc.js"].map(t=>e.l(t))).then(()=>t(35944)))},55017,e=>{e.v(t=>Promise.all(["static/chunks/0jf3n5n5yrr4o.js"].map(t=>e.l(t))).then(()=>t(25071)))},82229,e=>{e.v(t=>Promise.all(["static/chunks/1ajmblsp0wj0_.js"].map(t=>e.l(t))).then(()=>t(90546)))},76617,e=>{e.v(t=>Promise.all(["static/chunks/10v4rskkrjgd_.js"].map(t=>e.l(t))).then(()=>t(45276)))},47407,e=>{e.v(t=>Promise.all(["static/chunks/006nix8mv66z_.js"].map(t=>e.l(t))).then(()=>t(41853)))},18176,e=>{e.v(t=>Promise.all(["static/chunks/1e1zozntzsx42.js"].map(t=>e.l(t))).then(()=>t(18182)))},75818,e=>{e.v(t=>Promise.all(["static/chunks/159u-hx80yfaw.js"].map(t=>e.l(t))).then(()=>t(84788)))},72027,e=>{e.v(t=>Promise.all(["static/chunks/3ajhvedcs_lzb.js"].map(t=>e.l(t))).then(()=>t(58434)))},97690,e=>{e.v(t=>Promise.all(["static/chunks/0msckddycfy76.js"].map(t=>e.l(t))).then(()=>t(55656)))},42573,e=>{e.v(t=>Promise.all(["static/chunks/0tl8j9f8lt0yf.js"].map(t=>e.l(t))).then(()=>t(68869)))},67983,e=>{e.v(t=>Promise.all(["static/chunks/2k4s5rt7-l8jr.js"].map(t=>e.l(t))).then(()=>t(62889)))},87388,e=>{e.v(t=>Promise.all(["static/chunks/1rcfy_gzean3n.js"].map(t=>e.l(t))).then(()=>t(90188)))},60396,e=>{e.v(t=>Promise.all(["static/chunks/2apt1vh-7rl2l.js"].map(t=>e.l(t))).then(()=>t(38777)))},68460,e=>{e.v(t=>Promise.all(["static/chunks/38ea9kqlbxt86.js"].map(t=>e.l(t))).then(()=>t(94903)))},42716,e=>{e.v(t=>Promise.all(["static/chunks/2ab-99frxpah-.js"].map(t=>e.l(t))).then(()=>t(24101)))},58452,e=>{e.v(t=>Promise.all(["static/chunks/3vxkkhs0vi_xa.js"].map(t=>e.l(t))).then(()=>t(56138)))},59164,e=>{e.v(t=>Promise.all(["static/chunks/2gtebfttq1v0o.js"].map(t=>e.l(t))).then(()=>t(74721)))},12531,e=>{e.v(t=>Promise.all(["static/chunks/0kr-bd6fuqc2s.js"].map(t=>e.l(t))).then(()=>t(14755)))},86050,e=>{e.v(t=>Promise.all(["static/chunks/17ev44x54_jrd.js"].map(t=>e.l(t))).then(()=>t(88638)))},28016,e=>{e.v(t=>Promise.all(["static/chunks/1l12hkz1g7uhf.js"].map(t=>e.l(t))).then(()=>t(88388)))},75922,e=>{e.v(t=>Promise.all(["static/chunks/0h-ohf4gntwtj.js"].map(t=>e.l(t))).then(()=>t(22693)))},25540,e=>{e.v(t=>Promise.all(["static/chunks/1w9xu1qa9-wmv.js"].map(t=>e.l(t))).then(()=>t(62132)))},97534,e=>{e.v(t=>Promise.all(["static/chunks/091ll-lp6spu3.js"].map(t=>e.l(t))).then(()=>t(10478)))},80767,e=>{e.v(t=>Promise.all(["static/chunks/18avgwx9nlxp9.js"].map(t=>e.l(t))).then(()=>t(69030)))},99480,e=>{e.v(t=>Promise.all(["static/chunks/3v0td-ziuai2i.js"].map(t=>e.l(t))).then(()=>t(92430)))},83780,e=>{e.v(t=>Promise.all(["static/chunks/3fx3sriw1w3sa.js"].map(t=>e.l(t))).then(()=>t(63587)))},37892,e=>{e.v(t=>Promise.all(["static/chunks/0h1o0cr3327tt.js"].map(t=>e.l(t))).then(()=>t(23318)))},9663,e=>{e.v(t=>Promise.all(["static/chunks/0m3yjobjg36ce.js"].map(t=>e.l(t))).then(()=>t(77882)))},29698,e=>{e.v(t=>Promise.all(["static/chunks/17dabmbnkkplu.js"].map(t=>e.l(t))).then(()=>t(88777)))},18119,e=>{e.v(t=>Promise.all(["static/chunks/0e7xuupmrw4-e.js"].map(t=>e.l(t))).then(()=>t(53259)))},73420,e=>{e.v(t=>Promise.all(["static/chunks/3gi0f1kg72xsf.js"].map(t=>e.l(t))).then(()=>t(84147)))},58911,e=>{e.v(t=>Promise.all(["static/chunks/0-29qf-q72olu.js"].map(t=>e.l(t))).then(()=>t(39388)))},81868,e=>{e.v(t=>Promise.all(["static/chunks/3sg4zff4-h3t1.js"].map(t=>e.l(t))).then(()=>t(40542)))},90193,e=>{e.v(t=>Promise.all(["static/chunks/0gblbgw7w7r9w.js"].map(t=>e.l(t))).then(()=>t(91161)))},28668,e=>{e.v(t=>Promise.all(["static/chunks/2cvvxifoedn6j.js"].map(t=>e.l(t))).then(()=>t(41890)))},92595,e=>{e.v(t=>Promise.all(["static/chunks/3mwoauxszd3mn.js"].map(t=>e.l(t))).then(()=>t(3784)))},83453,e=>{e.v(t=>Promise.all(["static/chunks/2bn9u9r0rfhvc.js"].map(t=>e.l(t))).then(()=>t(34603)))},46233,e=>{e.v(t=>Promise.all(["static/chunks/2w7yf7ouyrlkb.js"].map(t=>e.l(t))).then(()=>t(26452)))},53970,e=>{e.v(t=>Promise.all(["static/chunks/1t60cososq7b0.js"].map(t=>e.l(t))).then(()=>t(41636)))},28090,e=>{e.v(t=>Promise.all(["static/chunks/18r387bj9iv0j.js"].map(t=>e.l(t))).then(()=>t(55611)))},57211,e=>{e.v(t=>Promise.all(["static/chunks/18ss4ls60s31e.js"].map(t=>e.l(t))).then(()=>t(37525)))},1522,e=>{e.v(t=>Promise.all(["static/chunks/1y20bv6vl4ylk.js"].map(t=>e.l(t))).then(()=>t(15374)))},54783,e=>{e.v(e=>Promise.resolve().then(()=>e(35820)))},34446,e=>{e.v(t=>Promise.all(["static/chunks/0_tqu60oxaj7q.js"].map(t=>e.l(t))).then(()=>t(91028)))},746,e=>{e.v(t=>Promise.all(["static/chunks/2z9ot-w1x60fv.js"].map(t=>e.l(t))).then(()=>t(44465)))},65812,e=>{e.v(t=>Promise.all(["static/chunks/03st_hmor6qju.js"].map(t=>e.l(t))).then(()=>t(26450)))},21504,e=>{e.v(t=>Promise.all(["static/chunks/404f_93w2e8ty.js"].map(t=>e.l(t))).then(()=>t(31571)))}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,83464,e=>{"use strict";class t{static _CheckLimit(e,r){let s=t._LogLimitOutputs[e];return s?s.current++:(s={limit:r,current:1},t._LogLimitOutputs[e]=s),s.current<=s.limit}static _GenerateLimitMessage(e,r=1){let s=t._LogLimitOutputs[e];if(!s||!t.MessageLimitReached)return;let a=this._Levels[r];s.current===s.limit&&t[a.name](t.MessageLimitReached.replace(/%LIMIT%/g,""+s.limit).replace(/%TYPE%/g,a.name??""))}static _AddLogEntry(e){t._LogCache=e+t._LogCache,t.OnNewCacheEntry&&t.OnNewCacheEntry(e)}static _FormatMessage(e){let t=e=>e<10?"0"+e:""+e,r=new Date;return"["+t(r.getHours())+":"+t(r.getMinutes())+":"+t(r.getSeconds())+"]: "+e}static _LogDisabled(e,t){}static _LogEnabled(e=1,r,s){let a=Array.isArray(r)?r[0]:r;if(void 0!==s&&!t._CheckLimit(a,s))return;let n=t._FormatMessage(a),o=this._Levels[e],i=Array.isArray(r)?r.slice(1):[];o.logFunc&&o.logFunc("BJS - "+n,...i);let l=`<div style='color:${o.color}'>${n}</div><br>`;t._AddLogEntry(l),t._GenerateLimitMessage(a,e)}static get LogCache(){return t._LogCache}static ClearLogCache(){t._LogCache="",t._LogLimitOutputs={},t.errorsCount=0}static set LogLevels(e){for(let r of(t.Log=t._LogDisabled,t.Warn=t._LogDisabled,t.Error=t._LogDisabled,[t.MessageLogLevel,t.WarningLogLevel,t.ErrorLogLevel]))(e&r)===r&&(t[this._Levels[r].name]=t._LogEnabled.bind(t,r))}}t.NoneLogLevel=0,t.MessageLogLevel=1,t.WarningLogLevel=2,t.ErrorLogLevel=4,t.AllLogLevel=7,t.MessageLimitReached="Too many %TYPE%s (%LIMIT%), no more %TYPE%s will be reported for this message.",t._LogCache="",t._LogLimitOutputs={},t._Levels=[{},{color:"white",logFunc:console.log,name:"Log"},{color:"orange",logFunc:console.warn,name:"Warn"},{},{color:"red",logFunc:console.error,name:"Error"}],t.errorsCount=0,t.Log=t._LogEnabled.bind(t,t.MessageLogLevel),t.Warn=t._LogEnabled.bind(t,t.WarningLogLevel),t.Error=t._LogEnabled.bind(t,t.ErrorLogLevel),e.s(["Logger",0,t])},53477,e=>{"use strict";e.s(["RandomGUID",0,function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,e=>{let t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)})}])},75865,e=>{"use strict";e.s(["GetDOMTextContent",0,function(e){let t="",r=e.firstChild;for(;r;)3===r.nodeType&&(t+=r.textContent),r=r.nextSibling;return t},"IsDocumentAvailable",0,function(){return"u">typeof document},"IsNavigatorAvailable",0,function(){return"u">typeof navigator},"IsWindowObjectExist",0,function(){return"u">typeof window}])},72491,e=>{"use strict";class t{constructor(){this._xhr="u">typeof _native&&_native.XMLHttpRequest?new _native.XMLHttpRequest:new XMLHttpRequest,this._requestURL=""}static get IsCustomRequestAvailable(){return Object.keys(t.CustomRequestHeaders).length>0||t.CustomRequestModifiers.length>0}static _CleanUrl(e){return e=(e=e.replace("file:http:","http:")).replace("file:https:","https:")}static _ShouldSkipRequestModifications(e){return t.SkipRequestModificationForBabylonCDN&&(e.includes("preview.babylonjs.com")||e.includes("cdn.babylonjs.com"))}static _CollectCustomizations(e,r={}){let s={...r};if(t._ShouldSkipRequestModifications(e))return{url:e,headers:s};for(let e in t.CustomRequestHeaders){let r=t.CustomRequestHeaders[e];r&&(s[e]=r)}let a={setRequestHeader:(e,t)=>{s[e]=t}};for(let r of t.CustomRequestModifiers){if(t._ShouldSkipRequestModifications(e))break;let s=r(a,e);"string"==typeof s&&(e=s)}return{url:e,headers:s}}static async FetchAsync(e,r={}){let s=r.method??"GET";if("u">typeof fetch){let{url:a,headers:n}=t._CollectCustomizations(t._CleanUrl(e),r.headers??{});return await fetch(a,{method:s,headers:n,body:r.body??void 0})}return await new Promise((a,n)=>{let o=new t;o.responseType="arraybuffer",o.addEventListener("readystatechange",()=>{if(4===o.readyState)if(o.status>=200&&o.status<300){let e="u">typeof Headers?new Headers:void 0,t=o.getResponseHeader("Content-Type");t&&e&&e.set("Content-Type",t),"u">typeof Response?a(new Response(o.response,{status:o.status,statusText:o.statusText,headers:e})):a({ok:!0,status:o.status,statusText:o.statusText,headers:{get:e=>o.getResponseHeader(e)},arrayBuffer:async()=>await Promise.resolve(o.response)})}else n(Error(`HTTP ${o.status} loading '${o.requestURL}': ${o.statusText}`))}),o.open(s,e,r.headers),o.send(r.body??null)})}get requestURL(){return this._requestURL}get onprogress(){return this._xhr.onprogress}set onprogress(e){this._xhr.onprogress=e}get readyState(){return this._xhr.readyState}get status(){return this._xhr.status}get statusText(){return this._xhr.statusText}get response(){return this._xhr.response}get responseURL(){return this._xhr.responseURL}get responseText(){return this._xhr.responseText}get responseType(){return this._xhr.responseType}set responseType(e){this._xhr.responseType=e}get timeout(){return this._xhr.timeout}set timeout(e){this._xhr.timeout=e}addEventListener(e,t,r){this._xhr.addEventListener(e,t,r)}removeEventListener(e,t,r){this._xhr.removeEventListener(e,t,r)}abort(){this._xhr.abort()}send(e){this._xhr.send(e)}open(e,r,s){let{url:a,headers:n}=t._CollectCustomizations(r,s);for(let r in this._requestURL=t._CleanUrl(a),this._xhr.open(e,this._requestURL,!0),n)this._xhr.setRequestHeader(r,n[r])}setRequestHeader(e,t){this._xhr.setRequestHeader(e,t)}getResponseHeader(e){return this._xhr.getResponseHeader(e)}}t.CustomRequestHeaders={},t.CustomRequestModifiers=[],t.SkipRequestModificationForBabylonCDN=!0,e.s(["WebRequest",0,t])},37890,e=>{"use strict";let t=null;function r(){if(t)return t;let e=new ArrayBuffer(4),r=new Float32Array(e),s=new Uint32Array(e),a=new Uint32Array(512),n=new Uint32Array(512);for(let e=0;e<256;++e){let t=e-127;t<-24?(a[e]=0,a[256|e]=32768,n[e]=24,n[256|e]=24):t<-14?(a[e]=1024>>-t-14,a[256|e]=1024>>-t-14|32768,n[e]=-t-1,n[256|e]=-t-1):t<=15?(a[e]=t+15<<10,a[256|e]=t+15<<10|32768,n[e]=13,n[256|e]=13):t<128?(a[e]=31744,a[256|e]=64512,n[e]=24,n[256|e]=24):(a[e]=31744,a[256|e]=64512,n[e]=13,n[256|e]=13)}let o=new Uint32Array(2048),i=new Uint32Array(64),l=new Uint32Array(64);for(let e=1;e<1024;++e){let t=e<<13,r=0;for(;(8388608&t)==0;)t<<=1,r-=8388608;t&=-8388609,r+=0x38800000,o[e]=t|r}for(let e=1024;e<2048;++e)o[e]=0x38000000+(e-1024<<13);for(let e=1;e<31;++e)i[e]=e<<23;i[31]=0x47800000,i[32]=0x80000000;for(let e=33;e<63;++e)i[e]=0x80000000+(e-32<<23);i[63]=0xc7800000;for(let e=1;e<64;++e)32!==e&&(l[e]=1024);return t={floatView:r,uint32View:s,baseTable:a,shiftTable:n,mantissaTable:o,exponentTable:i,offsetTable:l}}e.s(["FromHalfFloat",0,function(e){let t=r();return t.uint32View[0]=t.mantissaTable[t.offsetTable[e>>10]+(1023&e)]+t.exponentTable[e>>10],t.floatView[0]},"MaxHalfFloat",0,65504,"ToHalfFloat",0,function(e){let t=r();t.floatView[0]=e;let s=t.uint32View[0],a=s>>23&511;return t.baseTable[a]+((8388607&s)>>t.shiftTable[a])}])},59767,25440,65771,e=>{"use strict";class t{}t.FilesToLoad={},e.s(["FilesInputStore",0,t],59767),e.s(["RetryStrategy",0,class{static ExponentialBackoff(e=3,t=500){return(r,s,a)=>0!==s.status||a>=e||-1!==r.indexOf("file:")?-1:Math.pow(2,a)*t}}],25440);class r extends Error{}r._setPrototypeOf=Object.setPrototypeOf||((e,t)=>(e.__proto__=t,e));class s extends r{constructor(e,t,a){super(e),this.errorCode=t,this.innerError=a,this.name="RuntimeError",r._setPrototypeOf(this,s.prototype)}}e.s(["BaseError",0,r,"ErrorCodes",0,{MeshInvalidPositionsError:0,UnsupportedTextureError:1e3,GLTFLoaderUnexpectedMagicError:2e3,SceneLoaderError:3e3,LoadFileError:4e3,RequestFileError:4001,ReadFileError:4002},"RuntimeError",0,s],65771)},61023,e=>{"use strict";let t=e=>atob(e);e.s(["Decode",0,e=>{if("u">typeof TextDecoder)return new TextDecoder().decode(e);let t="";for(let r=0;r<e.byteLength;r++)t+=String.fromCharCode(e[r]);return t},"DecodeBase64ToBinary",0,e=>"function"==typeof Uint8Array.fromBase64?Uint8Array.fromBase64(e).buffer:function(e){let r=t(e),s=r.length,a=new Uint8Array(new ArrayBuffer(s));for(let e=0;e<s;e++)a[e]=r.charCodeAt(e);return a.buffer}(e),"DecodeBase64ToString",0,t,"EncodeArrayBufferToBase64",0,e=>{let t=ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength):new Uint8Array(e);return"function"==typeof t.toBase64?t.toBase64():function(e){let t,r,s,a,n,o,i,l="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",u="",c=0;for(;c<e.length;)t=e[c++],r=c<e.length?e[c++]:NaN,s=c<e.length?e[c++]:NaN,a=t>>2,n=(3&t)<<4|r>>4,o=(15&r)<<2|s>>6,i=63&s,isNaN(r)?o=i=64:isNaN(s)&&(i=64),u+=l.charAt(a)+l.charAt(n)+l.charAt(o)+l.charAt(i);return u}(t)}])},4775,e=>{"use strict";let t=[];function r(e,t,r){try{if(e())return t(),!0}catch(e){return r?.(e),!0}return!1}e.s(["TimingTools",0,class{static SetImmediate(e){0===t.length&&setTimeout(()=>{let e=t;for(let r of(t=[],e))r()},1),t.push(e)}},"_RetryWithInterval",0,(e,t,s,a=16,n=3e4,o=!0,i)=>{if(o&&r(e,t,s))return null;let l=setInterval(()=>{r(e,t,s)?clearInterval(l):(n-=a)<0&&(clearInterval(l),s?.(Error("Operation timed out after maximum retries. "+(i||"")),!0))},a);return()=>clearInterval(l)}])},5512,e=>{"use strict";var t=e.i(83464),r=e.i(37890);function s(e){switch(e){case 5120:case 5121:return 1;case 5122:case 5123:case 5131:return 2;case 5124:case 5125:case 5126:return 4;default:throw Error(`Invalid type '${e}'`)}}function a(e){switch(e){case 5120:return Int8Array;case 5121:return Uint8Array;case 5122:return Int16Array;case 5123:case 5131:return Uint16Array;case 5124:return Int32Array;case 5125:return Uint32Array;case 5126:return Float32Array;default:throw Error(`Invalid component type '${e}'`)}}function n(e,t,a,n,o,i,l,u){let c=Array(n),f=Array(n);if(e instanceof Array){let r=t/4,s=a/4;for(let t=0;t<i;t+=n){for(let t=0;t<n;t++)c[t]=f[t]=e[r+t];u(f,t);for(let t=0;t<n;t++)c[t]!==f[t]&&(e[r+t]=f[t]);r+=s}}else{let d=ArrayBuffer.isView(e)?new DataView(e.buffer,e.byteOffset,e.byteLength):new DataView(e),g=s(o);for(let e=0;e<i;e+=n){for(let e=0,s=t;e<n;e++,s+=g)c[e]=f[e]=function(e,t,s,a){switch(t){case 5120:{let t=e.getInt8(s);return a&&(t=Math.max(t/127,-1)),t}case 5121:{let t=e.getUint8(s);return a&&(t/=255),t}case 5122:{let t=e.getInt16(s,!0);return a&&(t=Math.max(t/32767,-1)),t}case 5123:{let t=e.getUint16(s,!0);return a&&(t/=65535),t}case 5131:return(0,r.FromHalfFloat)(e.getUint16(s,!0));case 5124:return e.getInt32(s,!0);case 5125:return e.getUint32(s,!0);case 5126:return e.getFloat32(s,!0);default:throw Error(`Invalid component type ${t}`)}}(d,o,s,l);u(f,e);for(let e=0,s=t;e<n;e++,s+=g)c[e]!==f[e]&&function(e,t,s,a,n){switch(t){case 5120:a&&(n=Math.round(127*n)),e.setInt8(s,n);break;case 5121:a&&(n=Math.round(255*n)),e.setUint8(s,n);break;case 5122:a&&(n=Math.round(32767*n)),e.setInt16(s,n,!0);break;case 5123:a&&(n=Math.round(65535*n)),e.setUint16(s,n,!0);break;case 5131:e.setUint16(s,(0,r.ToHalfFloat)(n),!0);break;case 5124:e.setInt32(s,n,!0);break;case 5125:e.setUint32(s,n,!0);break;case 5126:e.setFloat32(s,n,!0);break;default:throw Error(`Invalid component type ${t}`)}}(d,o,s,l,f[e]);t+=a}}}e.s(["CopyFloatData",0,function(e,r,a,o,i,l,u,c){let f=r*s(a),d=u*r;if(c.length!==d)throw Error("Output length is not valid");if(5126!==a||i!==f)return void n(e,o,i,r,a,d,l,(e,t)=>{for(let s=0;s<r;s++)c[t+s]=e[s]});if(e instanceof Array){let t=o/4;c.set(e,t)}else if(ArrayBuffer.isView(e)){let r=e.byteOffset+o;if((3&r)!=0){t.Logger.Warn("Float array must be aligned to 4-bytes border"),c.set(new Float32Array(e.buffer.slice(r,r+d*Float32Array.BYTES_PER_ELEMENT)));return}let s=new Float32Array(e.buffer,r,d);c.set(s)}else{let t=new Float32Array(e,o,d);c.set(t)}},"EnumerateFloatValues",0,n,"GetBlobBufferSource",0,function(e){let t=e.buffer;if(t instanceof ArrayBuffer)return e;let r=new ArrayBuffer(e.byteLength);return new Uint8Array(r).set(new Uint8Array(t,e.byteOffset,e.byteLength)),r},"GetFloatData",0,function(e,r,a,o,i,l,u,c){let f=r*s(a),d=u*r;if(5126!==a||i!==f){let t=new Float32Array(d);return n(e,o,i,r,a,d,l,(e,s)=>{for(let a=0;a<r;a++)t[s+a]=e[a]}),t}if(!(e instanceof Array||e instanceof Float32Array)||0!==o||e.length!==d)if(e instanceof Array){let t=o/4;return e.slice(t,t+d)}else{if(!ArrayBuffer.isView(e))return new Float32Array(e,o,d);let r=e.byteOffset+o;return((3&r)!=0&&(t.Logger.Warn("Float array must be aligned to 4-bytes border"),c=!0),c)?new Float32Array(e.buffer.slice(r,r+d*Float32Array.BYTES_PER_ELEMENT)):new Float32Array(e.buffer,r,d)}return c?e.slice():e},"GetTypeByteLength",0,s,"GetTypedArrayConstructor",0,a,"GetTypedArrayData",0,function(e,r,o,i,l,u,c){let f,d=s(o),g=a(o),p=u*r;if(Array.isArray(e)){if((3&i)!=0||(3&l)!=0)throw Error("byteOffset and byteStride must be a multiple of 4 for number[] data.");let t=i/4,s=l/4;if(t+(u-1)*s+r>e.length)throw Error("Last accessed index is out of bounds.");if(s<r)throw Error("Data stride cannot be smaller than the component size.");if(s!==r){let t=new g(p);return n(e,i,l,r,o,p,!1,(e,s)=>{for(let a=0;a<r;a++)t[s+a]=e[a]}),t}return new g(e.slice(t,t+p))}let y=i;if(ArrayBuffer.isView(e)?(f=e.buffer,y+=e.byteOffset):f=e,y+(u-1)*l+r*d>f.byteLength)throw Error("Last accessed byte is out of bounds.");let h=r*d;if(l<h)throw Error("Byte stride cannot be smaller than the component's byte size.");if(l!==h){let e=new g(p),t=new Uint8Array(f,y),s=new Uint8Array(e.buffer),a=r*d;for(let e=0,r=0,n=0;e<u;e++,r+=l,n+=a)s.set(t.subarray(r,r+a),n);return e}return(1!==d&&(y&d-1)!=0&&(t.Logger.Warn("Array must be aligned to border of element size. Data will be copied."),c=!0),c)?new g(f.slice(y,y+p*d)):new g(f,y,p)}])},25746,e=>{"use strict";var t=e.i(72491),r=e.i(75865),s=e.i(57554),a=e.i(59767),n=e.i(25440),o=e.i(65771),i=e.i(61023),l=e.i(47867),u=e.i(83464),c=e.i(4775),f=e.i(5512);let d=new RegExp(/^data:([^,]+\/[^,]+)?;base64,/i);class g extends o.RuntimeError{constructor(e,r){super(e,o.ErrorCodes.LoadFileError),this.name="LoadFileError",o.BaseError._setPrototypeOf(this,g.prototype),r instanceof t.WebRequest?this.request=r:this.file=r}}class p extends o.RuntimeError{constructor(e,t){super(e,o.ErrorCodes.RequestFileError),this.request=t,this.name="RequestFileError",o.BaseError._setPrototypeOf(this,p.prototype)}}class y extends o.RuntimeError{constructor(e,t){super(e,o.ErrorCodes.ReadFileError),this.file=t,this.name="ReadFileError",o.BaseError._setPrototypeOf(this,y.prototype)}}let h={DefaultRetryStrategy:n.RetryStrategy.ExponentialBackoff(),BaseUrl:"",CorsBehavior:"anonymous",PreprocessUrl:e=>e,ScriptBaseUrl:"",ScriptPreprocessUrl:e=>e,CleanUrl:e=>e=e.replace(/#/gm,"%23")},b=(e,t)=>{if((!e||0!==e.indexOf("data:"))&&h.CorsBehavior)if("string"==typeof h.CorsBehavior||h.CorsBehavior instanceof String)t.crossOrigin=h.CorsBehavior;else{let r=h.CorsBehavior(e);r&&(t.crossOrigin=r)}},m=(e,t,r,a,n)=>{let o=new FileReader,i={onCompleteObservable:new s.Observable,abort:()=>o.abort()};return o.onloadend=()=>i.onCompleteObservable.notifyObservers(i),n&&(o.onerror=()=>{n(new y(`Unable to read ${e.name}`,e))}),o.onload=e=>{t(e.target.result)},r&&(o.onprogress=r),a?o.readAsArrayBuffer(e):o.readAsText(e),i},L=(e,t,r,n,o,i,l)=>{if(e.name)return m(e,t,r,o,i?e=>{i(void 0,e)}:void 0);if(-1!==e.indexOf("file:")){let s=decodeURIComponent(e.substring(5).toLowerCase());0===s.indexOf("./")&&(s=s.substring(2));let n=a.FilesInputStore.FilesToLoad[s];if(n)return m(n,t,r,o,i?e=>i(void 0,new g(e.message,e.file)):void 0)}let{match:f,type:d}=T(e);if(f){let r={onCompleteObservable:new s.Observable,abort:()=>()=>{}};try{let r=o?_(e):x(e);t(r,void 0,d)}catch(e){i?i(void 0,e):u.Logger.Error(e.message||"Failed to parse the Data URL")}return c.TimingTools.SetImmediate(()=>{r.onCompleteObservable.notifyObservers(r)}),r}return v(e,(e,r)=>{t(e,r?.responseURL,r?.getResponseHeader("content-type"))},r,n,o,i?e=>{i(e.request,new g(e.message,e.request))}:void 0,l)},v=(e,a,n,o,i,c,f)=>{null!==o&&(o??(o=l.EngineStore.LastCreatedScene?.offlineProvider)),e=h.CleanUrl(e),e=h.PreprocessUrl(e);let d=h.BaseUrl+e,g=!1,y={onCompleteObservable:new s.Observable,abort:()=>g=!0},b=()=>{let e,s=new t.WebRequest,o=null,l=()=>{s&&(n&&s.removeEventListener("progress",n),e&&s.removeEventListener("readystatechange",e),s.removeEventListener("loadend",b))},b=()=>{l(),y.onCompleteObservable.notifyObservers(y),y.onCompleteObservable.clear(),n=void 0,e=null,b=null,c=void 0,f=void 0,a=void 0};y.abort=()=>{g=!0,b&&b(),s&&s.readyState!==(XMLHttpRequest.DONE||4)&&s.abort(),null!==o&&(clearTimeout(o),o=null),s=null};let m=e=>{let t=e.message||"Unknown error";c&&s?c(new p(t,s)):u.Logger.Error(t)},L=u=>{if(s){if(s.open("GET",d),f)try{f(s)}catch(e){m(e);return}i&&(s.responseType="arraybuffer"),n&&s.addEventListener("progress",n),b&&s.addEventListener("loadend",b),e=()=>{if(!g&&s&&s.readyState===(XMLHttpRequest.DONE||4)){if(e&&s.removeEventListener("readystatechange",e),s.status>=200&&s.status<300||0===s.status&&(!(0,r.IsWindowObjectExist)()||w())){let e=i?s.response:s.responseText;if(null!==e){try{a&&a(e,s)}catch(e){m(e)}return}}let n=h.DefaultRetryStrategy;if(n){let e=n(d,s,u);if(-1!==e){l(),s=new t.WebRequest,o=setTimeout(()=>L(u+1),e);return}}let f=new p("Error status: "+s.status+" "+s.statusText+" - Unable to load "+d,s);c&&c(f)}},s.addEventListener("readystatechange",e),s.send()}};L(0)};if(o&&o.enableSceneOffline&&!e.startsWith("blob:")){let t=e=>{e&&e.status>400?c&&c(e):b()};o.open(()=>{o&&o.loadFile(h.BaseUrl+e,e=>{!g&&a&&a(e),y.onCompleteObservable.notifyObservers(y)},n?e=>{!g&&n&&n(e)}:void 0,t,i)},t)}else b();return y},w=()=>"u">typeof location&&"file:"===location.protocol,T=e=>{let t=d.exec(e);return null===t||0===t.length?{match:!1,type:""}:{match:!0,type:t[0].replace("data:","").replace(";base64,","")}};function _(e){return(0,i.DecodeBase64ToBinary)(e.split(",")[1])}let x=e=>(0,i.DecodeBase64ToString)(e.split(",")[1]);e.s(["DecodeBase64UrlToBinary",0,_,"FileToolsOptions",0,h,"GetMimeType",0,e=>{let{match:t,type:r}=T(e);if(t)return r||void 0;let s=e.lastIndexOf(".");switch(e.substring(s+1).toLowerCase()){case"glb":return"model/gltf-binary";case"bin":return"application/octet-stream";case"gltf":return"model/gltf+json";case"jpg":case"jpeg":return"image/jpeg";case"png":return"image/png";case"webp":return"image/webp";case"ktx":return"image/ktx";case"ktx2":return"image/ktx2";case"avif":return"image/avif";default:return}},"IsBase64DataUrl",0,e=>d.test(e),"LoadFile",0,L,"LoadFileError",0,g,"LoadImage",0,(e,r,s,n,o="",u,c=l.EngineStore.LastCreatedEngine)=>{let d;if("u"<typeof HTMLImageElement&&!c?._features.forceBitmapOverHTMLImageElement)return s("LoadImage is only supported in web or BabylonNative environments."),null;let g=!1;if(e instanceof ArrayBuffer||ArrayBuffer.isView(e))if("u">typeof Blob&&"u">typeof URL){let t;t=e instanceof ArrayBuffer?e:(0,f.GetBlobBufferSource)(e),d=URL.createObjectURL(new Blob([t],{type:o})),g=!0}else d=`data:${o};base64,`+(0,i.EncodeArrayBufferToBase64)(e);else e instanceof Blob?(d=URL.createObjectURL(e),g=!0):(d=h.CleanUrl(e),d=h.PreprocessUrl(d));let p=t=>{if(s){let r=d||e.toString();s(`Error while trying to load image: ${0===r.indexOf("http")||r.length<=128?r:r.slice(0,128)+"..."}`,t)}};if(c?._features.forceBitmapOverHTMLImageElement)return L(d,t=>{c.createImageBitmap(new Blob([t],{type:o}),{premultiplyAlpha:"none",colorSpaceConversion:"none",...u}).then(e=>{r(e),g&&URL.revokeObjectURL(d)}).catch(t=>{s&&s("Error while trying to load image: "+e,t)})},void 0,n||void 0,!0,(e,t)=>{p(t)}),null;let y=new Image;!1;b(d,y);let m=[],v=()=>{for(let e of m)e.target.removeEventListener(e.name,e.handler);m.length=0};for(let e of(m.push({target:y,name:"load",handler:()=>{v(),r(y),g&&y.src&&URL.revokeObjectURL(y.src)}}),m.push({target:y,name:"error",handler:e=>{v(),p(e),g&&y.src&&URL.revokeObjectURL(y.src)}}),m.push({target:document,name:"securitypolicyviolation",handler:e=>{if(e.blockedURI!==y.src||"report"===e.disposition)return;v();let t=Error(`CSP violation of policy ${e.effectiveDirective} ${e.blockedURI}. Current policy is ${e.originalPolicy}`);l.EngineStore.UseFallbackTexture=!1,p(t),g&&y.src&&URL.revokeObjectURL(y.src),y.src=""}}),m))e.target.addEventListener(e.name,e.handler);let w="blob:"===d.substring(0,5),T="data:"===d.substring(0,5),_=()=>{w||T||!t.WebRequest.IsCustomRequestAvailable?y.src=d:L(d,(e,t,r)=>{let s=new Blob([e],{type:!o&&r?r:o}),a=URL.createObjectURL(s);g=!0,y.src=a},void 0,n||void 0,!0,(e,t)=>{p(t)})};if(!w&&!T&&n&&n.enableTexturesOffline)n.open(()=>{n&&n.loadImage(d,y)},_);else{if(-1!==d.indexOf("file:")){let e=decodeURIComponent(d.substring(5).toLowerCase());if(a.FilesInputStore.FilesToLoad[e]&&"u">typeof URL){try{let t;try{t=URL.createObjectURL(a.FilesInputStore.FilesToLoad[e])}catch(r){t=URL.createObjectURL(a.FilesInputStore.FilesToLoad[e])}y.src=t,g=!0}catch(e){y.src=""}return y}}_()}return y},"ReadFile",0,m,"RequestFile",0,v,"SetCorsBehavior",0,b])},85240,e=>{"use strict";var t=e.i(75865);e.s(["PrecisionDate",0,class{static get Now(){return(0,t.IsWindowObjectExist)()&&window.performance&&window.performance.now?window.performance.now():Date.now()}}])},65679,e=>{"use strict";function t(e){let t=r(e),a=s(e);return t-e>e-a?a:t}function r(e){return e--,e|=e>>1,e|=e>>2,e|=e>>4,e|=e>>8,e|=e>>16,++e}function s(e){return e|=e>>1,e|=e>>2,e|=e>>4,e|=e>>8,(e|=e>>16)-(e>>1)}e.s(["FloorPOT",0,s,"GetExponentOfTwo",0,function(e,a,n=2){let o;switch(n){case 1:o=s(e);break;case 2:o=t(e);break;default:o=r(e)}return Math.min(o,a)},"IsExponentOfTwo",0,function(e){let t=1;do t*=2;while(t<e)return t===e},"Mix",0,function(e,t,r){return e*(1-r)+t*r},"NearestPOT",0,t])},16147,68853,40220,e=>{"use strict";e.s(["__decorate",0,function(e,t,r,s){var a,n=arguments.length,o=n<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,r):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,r,s);else for(var i=e.length-1;i>=0;i--)(a=e[i])&&(o=(n<3?a(o):n>3?a(t,r,o):a(t,r))||o);return n>3&&o&&Object.defineProperty(t,r,o),o}],16147);let t={},r={};function s(e){let t=e.getClassName();return r[t]||(r[t]={}),r[t]}function a(e,t){return(r,a)=>{let n=s(r);n[a]||(n[a]={type:e,sourceName:t})}}function n(e,t,r,s){let a=r.value;r.value=(...r)=>{let n=a;if("u">typeof _native&&_native[t]){let e=_native[t];n=s?(...t)=>s(...t)?e(...t):a(...t):e}return e[t]=n,n(...r)}}e.s(["GetDirectStore",0,s,"GetMergedStore",0,function(e){let s=e.getClassName();if(t[s])return t[s];t[s]={};let a=t[s],n=e,o=s;for(;o;){let e,t=r[o];for(let e in t)a[e]=t[e];let s=!1;do{if(!(e=Object.getPrototypeOf(n)).getClassName){s=!0;break}if(e.getClassName()!==o)break;n=e}while(e)if(s)break;o=e.getClassName(),n=e}return a}],68853),n.filter=function(e){return(t,r,s)=>n(t,r,s,e)},e.s(["addAccessorsForMaterialProperty",0,function(e,t=null){return(r,s)=>{Object.defineProperty(r,t||"",{get:function(){return this[s].value},set:function(t){"function"==typeof this[s]?.value?.equals&&this[s].value.equals(t)||this[s].value!==t&&(this[s].value=t,r[e].apply(this))},enumerable:!0,configurable:!0})}},"expandToProperty",0,function(e,t=null){return function(e,t=null){return(r,s)=>{let a=t||"_"+s;Object.defineProperty(r,s,{get:function(){return this[a]},set:function(t){"function"==typeof this[a]?.equals&&this[a].equals(t)||this[a]!==t&&(this[a]=t,r[e].apply(this))},enumerable:!0,configurable:!0})}}(e,t)},"nativeOverride",0,n,"serialize",0,function(e){return a(0,e)},"serializeAsColor3",0,function(e){return a(2,e)},"serializeAsColor4",0,function(e){return a(8,e)},"serializeAsColorCurves",0,function(e){return a(7,e)},"serializeAsFresnelParameters",0,function(e){return a(3,e)},"serializeAsImageProcessingConfiguration",0,function(e){return a(9,e)},"serializeAsMatrix",0,function(e){return a(12,e)},"serializeAsMeshReference",0,function(e){return a(6,e)},"serializeAsQuaternion",0,function(e){return a(10,e)},"serializeAsTexture",0,function(e){return a(1,e)},"serializeAsVector2",0,function(e){return a(4,e)},"serializeAsVector3",0,function(e){return a(5,e)}],40220)},95397,55250,e=>{"use strict";var t=e.i(54670);class r{static Eval(e,t){return"true"===(e=e.match(/\([^()]*\)/g)?e.replace(/\([^()]*\)/g,e=>(e=e.slice(1,e.length-1),r._HandleParenthesisContent(e,t))):r._HandleParenthesisContent(e,t))||"false"!==e&&r.Eval(e,t)}static _HandleParenthesisContent(e,t){let s;t=t||(e=>"true"===e);let a=e.split("||");for(let e in a)if(Object.prototype.hasOwnProperty.call(a,e)){let n=r._SimplifyNegation(a[e].trim()),o=n.split("&&");if(o.length>1)for(let e=0;e<o.length;++e){let a=r._SimplifyNegation(o[e].trim());if(!(s="true"!==a&&"false"!==a?"!"===a[0]?!t(a.substring(1)):t(a):"true"===a)){n="false";break}}if(s||"true"===n){s=!0;break}s="true"!==n&&"false"!==n?"!"===n[0]?!t(n.substring(1)):t(n):"true"===n}return s?"true":"false"}static _SimplifyNegation(e){return"!true"===(e=(e=e.replace(/^[\s!]+/,e=>(e=e.replace(/[\s]/g,()=>"")).length%2?"!":"")).trim())?e="false":"!false"===e&&(e="true"),e}}class s{static EnableFor(e){e._tags=e._tags||{},e.hasTags=()=>s.HasTags(e),e.addTags=t=>s.AddTagsTo(e,t),e.removeTags=t=>s.RemoveTagsFrom(e,t),e.matchesTagsQuery=t=>s.MatchesQuery(e,t)}static DisableFor(e){delete e._tags,delete e.hasTags,delete e.addTags,delete e.removeTags,delete e.matchesTagsQuery}static HasTags(e){if(!e._tags)return!1;let t=e._tags;for(let e in t)if(Object.prototype.hasOwnProperty.call(t,e))return!0;return!1}static GetTags(e,t=!0){if(!e._tags)return null;if(!t)return e._tags;{let t=[];for(let r in e._tags)Object.prototype.hasOwnProperty.call(e._tags,r)&&!0===e._tags[r]&&t.push(r);return t.join(" ")}}static AddTagsTo(e,t){if(t&&"string"==typeof t)for(let r of t.split(" "))s._AddTagTo(e,r)}static _AddTagTo(e,t){""===(t=t.trim())||"true"===t||"false"===t||t.match(/[\s]/)||t.match(/^([!]|([|]|[&]){2})/)||(s.EnableFor(e),e._tags[t]=!0)}static RemoveTagsFrom(e,t){if(!s.HasTags(e))return;let r=t.split(" ");for(let t in r)s._RemoveTagFrom(e,r[t])}static _RemoveTagFrom(e,t){delete e._tags[t]}static MatchesQuery(e,t){return void 0===t||(""===t?s.HasTags(e):r.Eval(t,t=>s.HasTags(e)&&e._tags[t]))}}e.s(["Tags",0,s],55250);var a=e.i(75053),n=e.i(10534),o=e.i(68853);let i=function(e,t,r,a={}){let n=e();s&&s.HasTags(t)&&s.AddTagsTo(n,s.GetTags(t,!0));let i=(0,o.GetMergedStore)(n),u={};for(let e in i){let s=i[e],o=t[e],c=s.type;if(null!=o&&("uniqueId"!==e||l.AllowLoadingUniqueId))switch(c){case 0:case 6:case 9:case 11:"function"==typeof o.slice?n[e]=o.slice():n[e]=o;break;case 1:a.cloneTexturesOnlyOnce&&u[o.uniqueId]?n[e]=u[o.uniqueId]:(n[e]=r||o.isRenderTarget?o:o.clone(),u[o.uniqueId]=n[e]);break;case 2:case 3:case 4:case 5:case 7:case 8:case 10:case 12:n[e]=r?o:o.clone()}}return n};class l{static AppendSerializedAnimations(e,t){if(e.animations){t.animations=[];for(let r=0;r<e.animations.length;r++){let s=e.animations[r];t.animations.push(s.serialize())}}}static Serialize(e,t){t||(t={}),s&&(t.tags=s.GetTags(e));let r=(0,o.GetMergedStore)(e);for(let s in r){let a=r[s],n=a.sourceName||s,o=a.type,i=e[s];if(null!=i&&("uniqueId"!==s||l.AllowLoadingUniqueId))switch(o){case 0:Array.isArray(i)?t[n]=i.slice():t[n]=i;break;case 1:case 3:case 7:case 9:t[n]=i.serialize();break;case 2:case 4:case 5:case 8:case 10:case 12:t[n]=i.asArray();break;case 6:case 11:t[n]=i.id}}return t}static ParseProperties(e,t,r,s){s||(s="");let i=(0,o.GetMergedStore)(t);for(let o in i){let u=i[o],c=e[u.sourceName||o],f=u.type;if(null!=c&&("uniqueId"!==o||l.AllowLoadingUniqueId))switch(f){case 0:t[o]=c;break;case 1:r&&(t[o]=l._TextureParser(c,r,s));break;case 2:t[o]=a.Color3.FromArray(c);break;case 3:t[o]=l._FresnelParametersParser(c);break;case 4:t[o]=n.Vector2.FromArray(c);break;case 5:t[o]=n.Vector3.FromArray(c);break;case 6:r&&(t[o]=r.getLastMeshById(c));break;case 7:t[o]=l._ColorCurvesParser(c);break;case 8:t[o]=a.Color4.FromArray(c);break;case 9:t[o]=l._ImageProcessingConfigurationParser(c);break;case 10:t[o]=n.Quaternion.FromArray(c);break;case 11:r&&(t[o]=r.getCameraById(c));break;case 12:t[o]=n.Matrix.FromArray(c)}}}static Parse(e,t,r,a=null){let n=e();return s&&s.AddTagsTo(n,t.tags),l.ParseProperties(t,n,r,a),n}static Clone(e,t,r={}){return i(e,t,!1,r)}static Instanciate(e,t){return i(e,t,!0)}}l.AllowLoadingUniqueId=!1,l._ImageProcessingConfigurationParser=e=>{throw(0,t._WarnImport)("ImageProcessingConfiguration")},l._FresnelParametersParser=e=>{throw(0,t._WarnImport)("FresnelParameters")},l._ColorCurvesParser=e=>{throw(0,t._WarnImport)("ColorCurves")},l._TextureParser=(e,r,s)=>{throw(0,t._WarnImport)("Texture")},e.s(["SerializationHelper",0,l],95397)}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,1719,e=>{"use strict";class t{static GetShadersRepository(e=0){return 0===e?t.ShadersRepository:t.ShadersRepositoryWGSL}static GetShadersStore(e=0){return 0===e?t.ShadersStore:t.ShadersStoreWGSL}static GetIncludesShadersStore(e=0){return 0===e?t.IncludesShadersStore:t.IncludesShadersStoreWGSL}}t.ShadersRepository="src/Shaders/",t.ShadersStore={},t.IncludesShadersStore={},t.ShadersRepositoryWGSL="src/ShadersWGSL/",t.ShadersStoreWGSL={},t.IncludesShadersStoreWGSL={},e.s(["ShaderStore",0,t])},58727,e=>{"use strict";var t,s,i=e.i(57554);class r{get wrapU(){return this._cachedWrapU}set wrapU(e){this._cachedWrapU=e}get wrapV(){return this._cachedWrapV}set wrapV(e){this._cachedWrapV=e}get wrapR(){return this._cachedWrapR}set wrapR(e){this._cachedWrapR=e}get anisotropicFilteringLevel(){return this._cachedAnisotropicFilteringLevel}set anisotropicFilteringLevel(e){this._cachedAnisotropicFilteringLevel=e}get comparisonFunction(){return this._comparisonFunction}set comparisonFunction(e){this._comparisonFunction=e}get useMipMaps(){return this._useMipMaps}set useMipMaps(e){this._useMipMaps=e}constructor(){this.samplingMode=-1,this._useMipMaps=!0,this._cachedWrapU=null,this._cachedWrapV=null,this._cachedWrapR=null,this._cachedAnisotropicFilteringLevel=null,this._comparisonFunction=0}setParameters(e=1,t=1,s=1,i=1,r=2,a=0){return this._cachedWrapU=e,this._cachedWrapV=t,this._cachedWrapR=s,this._cachedAnisotropicFilteringLevel=i,this.samplingMode=r,this._comparisonFunction=a,this}compareSampler(e){return this._cachedWrapU===e._cachedWrapU&&this._cachedWrapV===e._cachedWrapV&&this._cachedWrapR===e._cachedWrapR&&this._cachedAnisotropicFilteringLevel===e._cachedAnisotropicFilteringLevel&&this.samplingMode===e.samplingMode&&this._comparisonFunction===e._comparisonFunction&&this._useMipMaps===e._useMipMaps}}(t=s||(s={}))[t.Unknown=0]="Unknown",t[t.Url=1]="Url",t[t.Temp=2]="Temp",t[t.Raw=3]="Raw",t[t.Dynamic=4]="Dynamic",t[t.RenderTarget=5]="RenderTarget",t[t.MultiRenderTarget=6]="MultiRenderTarget",t[t.Cube=7]="Cube",t[t.CubeRaw=8]="CubeRaw",t[t.CubePrefiltered=9]="CubePrefiltered",t[t.Raw3D=10]="Raw3D",t[t.Raw2DArray=11]="Raw2DArray",t[t.DepthStencil=12]="DepthStencil",t[t.CubeRawRGBD=13]="CubeRawRGBD",t[t.Depth=14]="Depth",t[t.External=15]="External";class a extends r{get useMipMaps(){return null===this._useMipMaps?this.generateMipMaps:this._useMipMaps}set useMipMaps(e){this._useMipMaps=e}get uniqueId(){return this._uniqueId}_setUniqueId(e){this._uniqueId=e}getEngine(){return this._engine}get source(){return this._source}constructor(e,t,s=!1){super(),this.isReady=!1,this.isCube=!1,this.is3D=!1,this.is2DArray=!1,this.isMultiview=!1,this.url="",this.generateMipMaps=!1,this._useMipMaps=null,this.mipLevelCount=1,this.samples=0,this.type=-1,this.format=-1,this.onLoadedObservable=new i.Observable,this.onErrorObservable=new i.Observable,this.onRebuildCallback=null,this.width=0,this.height=0,this.depth=0,this.baseWidth=0,this.baseHeight=0,this.baseDepth=0,this.invertY=!1,this._invertVScale=!1,this._associatedChannel=-1,this._source=0,this._buffer=null,this._bufferView=null,this._bufferViewArray=null,this._bufferViewArrayArray=null,this._size=0,this._extension="",this._files=null,this._workingCanvas=null,this._workingContext=null,this._cachedCoordinatesMode=null,this._isDisabled=!1,this._compression=null,this._sphericalPolynomial=null,this._sphericalPolynomialPromise=null,this._sphericalPolynomialComputed=!1,this._lodGenerationScale=0,this._lodGenerationOffset=0,this._useSRGBBuffer=!1,this._creationFlags=0,this._lodTextureHigh=null,this._lodTextureMid=null,this._lodTextureLow=null,this._isRGBD=!1,this._linearSpecularLOD=!1,this._irradianceTexture=null,this._hardwareTexture=null,this._maxLodLevel=null,this._references=1,this._gammaSpace=null,this._premulAlpha=!1,this._dynamicTextureSource=null,this._autoMSAAManagement=!1,this._engine=e,this._source=t,this._uniqueId=a._Counter++,s||(this._hardwareTexture=e._createHardwareTexture())}incrementReferences(){this._references++}updateSize(e,t,s=1){this._engine.updateTextureDimensions(this,e,t,s),this.width=e,this.height=t,this.depth=s,this.baseWidth=e,this.baseHeight=t,this.baseDepth=s,this._size=e*t*s}_rebuild(){let e;if(this.isReady=!1,this._cachedCoordinatesMode=null,this._cachedWrapU=null,this._cachedWrapV=null,this._cachedWrapR=null,this._cachedAnisotropicFilteringLevel=null,this.onRebuildCallback){let e=this.onRebuildCallback(this),t=t=>{t._swapAndDie(this,!1),this.isReady=e.isReady};e.isAsync?e.proxy.then(t):t(e.proxy);return}switch(this.source){case 2:case 12:case 14:break;case 1:e=this._engine.createTexture(this._originalUrl??this.url,!this.generateMipMaps,this.invertY,null,this.samplingMode,e=>{e._swapAndDie(this,!1),this.isReady=!0},null,this._buffer,void 0,this.format,this._extension,void 0,void 0,void 0,this._useSRGBBuffer);return;case 3:if((e=this._engine.createRawTexture(this._bufferView,this.baseWidth,this.baseHeight,this.format,this.generateMipMaps,this.invertY,this.samplingMode,this._compression,this.type,this._creationFlags,this._useSRGBBuffer,this.mipLevelCount))._swapAndDie(this,!1),this._bufferViewArray)for(let e=0;e<this._bufferViewArray.length;e++){let t=this._bufferViewArray[e];t&&this._engine.updateRawTexture(this,t,this.format,this.invertY,this._compression,this.type,this._useSRGBBuffer,e)}this.isReady=!0;break;case 10:(e=this._engine.createRawTexture3D(this._bufferView,this.baseWidth,this.baseHeight,this.baseDepth,this.format,this.generateMipMaps,this.invertY,this.samplingMode,this._compression,this.type))._swapAndDie(this,!1),this.isReady=!0;break;case 11:if((e=this._engine.createRawTexture2DArray(this._bufferView,this.baseWidth,this.baseHeight,this.baseDepth,this.format,this.generateMipMaps,this.invertY,this.samplingMode,this._compression,this.type,this._creationFlags,this.mipLevelCount))._swapAndDie(this,!1),this._bufferViewArray)for(let e=0;e<this._bufferViewArray.length;e++){let t=this._bufferViewArray[e];t&&this._engine.updateRawTexture2DArray(this,t,this.format,this.invertY,this._compression,this.type,e)}this.isReady=!0;break;case 4:(e=this._engine.createDynamicTexture(this.baseWidth,this.baseHeight,this.generateMipMaps,this.samplingMode))._swapAndDie(this,!1),this._dynamicTextureSource&&this._engine.updateDynamicTexture(this,this._dynamicTextureSource,this.invertY,this._premulAlpha,this.format,!0);break;case 7:e=this._engine.createCubeTexture(this.url,null,this._files,!this.generateMipMaps,()=>{e._swapAndDie(this,!1),this.isReady=!0},null,this.format,this._extension,!1,0,0,null,void 0,this._useSRGBBuffer,ArrayBuffer.isView(this._buffer)?this._buffer:null);return;case 8:(e=this._engine.createRawCubeTexture(this._bufferViewArray,this.width,this._originalFormat??this.format,this.type,this.generateMipMaps,this.invertY,this.samplingMode,this._compression))._swapAndDie(this,!1),this.isReady=!0;break;case 13:return;case 9:(e=this._engine.createPrefilteredCubeTexture(this.url,null,this._lodGenerationScale,this._lodGenerationOffset,e=>{e&&e._swapAndDie(this,!1),this.isReady=!0},null,this.format,this._extension))._sphericalPolynomial=this._sphericalPolynomial;return}}_swapAndDie(e,t=!0){this._hardwareTexture?.setUsage(e._source,this.generateMipMaps,this.is2DArray,this.isCube,this.is3D,this.width,this.height,this.depth),e._hardwareTexture=this._hardwareTexture,e._setUniqueId(a._Counter++),t&&(e._isRGBD=this._isRGBD),this._lodTextureHigh&&(e._lodTextureHigh&&e._lodTextureHigh.dispose(),e._lodTextureHigh=this._lodTextureHigh),this._lodTextureMid&&(e._lodTextureMid&&e._lodTextureMid.dispose(),e._lodTextureMid=this._lodTextureMid),this._lodTextureLow&&(e._lodTextureLow&&e._lodTextureLow.dispose(),e._lodTextureLow=this._lodTextureLow),this._irradianceTexture&&(e._irradianceTexture&&e._irradianceTexture.dispose(),e._irradianceTexture=this._irradianceTexture);let s=this._engine.getLoadedTexturesCache(),i=s.indexOf(this);-1!==i&&s.splice(i,1),-1===(i=s.indexOf(e))&&s.push(e)}dispose(){this._references--,0===this._references&&(this.onLoadedObservable.clear(),this.onErrorObservable.clear(),this._engine._releaseTexture(this),this._hardwareTexture=null,this._dynamicTextureSource=null)}}a._Counter=0,e.s(["InternalTexture",0,a],58727)},13794,e=>{"use strict";var t=e.i(25282);let s=!1;e.s(["RegisterEngineDynamicBuffer",0,function(){s||(s=!0,t.ThinEngine.prototype.updateDynamicIndexBuffer=function(e,t,s=0){let i;this._currentBoundBuffer[this._gl.ELEMENT_ARRAY_BUFFER]=null,this.bindIndexBuffer(e),i=e.is32Bits?t instanceof Uint32Array?t:new Uint32Array(t):t instanceof Uint16Array?t:new Uint16Array(t),this._gl.bufferData(this._gl.ELEMENT_ARRAY_BUFFER,i,this._gl.DYNAMIC_DRAW),this._resetIndexBufferBinding()},t.ThinEngine.prototype.updateDynamicVertexBuffer=function(e,t,s,i){this.bindArrayBuffer(e),void 0===s&&(s=0);let r=t.byteLength||t.length;void 0===i||i>=r&&0===s?t instanceof Array?this._gl.bufferSubData(this._gl.ARRAY_BUFFER,s,new Float32Array(t)):this._gl.bufferSubData(this._gl.ARRAY_BUFFER,s,t):t instanceof Array?this._gl.bufferSubData(this._gl.ARRAY_BUFFER,s,new Float32Array(t).subarray(0,i/4)):(t=ArrayBuffer.isView(t)?new Uint8Array(t.buffer,t.byteOffset,i):new Uint8Array(t,0,i),this._gl.bufferSubData(this._gl.ARRAY_BUFFER,s,t)),this._resetVertexBufferBinding()})}])},3367,e=>{"use strict";var t=e.i(85240);class s{get min(){return this._min}get max(){return this._max}get average(){return this._average}get lastSecAverage(){return this._lastSecAverage}get current(){return this._current}get total(){return this._totalAccumulated}get count(){return this._totalValueCount}constructor(){this._startMonitoringTime=0,this._min=0,this._max=0,this._average=0,this._lastSecAverage=0,this._current=0,this._totalValueCount=0,this._totalAccumulated=0,this._lastSecAccumulated=0,this._lastSecTime=0,this._lastSecValueCount=0}fetchNewFrame(){this._totalValueCount++,this._current=0,this._lastSecValueCount++}addCount(e,t){s.Enabled&&(this._current+=e,t&&this._fetchResult())}beginMonitoring(){s.Enabled&&(this._startMonitoringTime=t.PrecisionDate.Now)}endMonitoring(e=!0){if(!s.Enabled)return;e&&this.fetchNewFrame();let i=t.PrecisionDate.Now;this._current=i-this._startMonitoringTime,e&&this._fetchResult()}endFrame(){this._fetchResult()}_fetchResult(){this._totalAccumulated+=this._current,this._lastSecAccumulated+=this._current,this._min=Math.min(this._min,this._current),this._max=Math.max(this._max,this._current),this._average=this._totalAccumulated/this._totalValueCount;let e=t.PrecisionDate.Now;e-this._lastSecTime>1e3&&(this._lastSecAverage=this._lastSecAccumulated/this._lastSecValueCount,this._lastSecTime=e,this._lastSecAccumulated=0,this._lastSecValueCount=0)}}s.Enabled=!0,e.s(["PerfCounter",0,s])},95180,e=>{"use strict";class t{constructor(e,t){this.width=e,this.height=t}toString(){return`{W: ${this.width}, H: ${this.height}}`}getClassName(){return"Size"}getHashCode(){let e=0|this.width;return 397*e^this.height}copyFrom(e){this.width=e.width,this.height=e.height}copyFromFloats(e,t){return this.width=e,this.height=t,this}set(e,t){return this.copyFromFloats(e,t)}multiplyByFloats(e,s){return new t(this.width*e,this.height*s)}clone(){return new t(this.width,this.height)}equals(e){return!!e&&this.width===e.width&&this.height===e.height}get surface(){return this.width*this.height}static Zero(){return new t(0,0)}add(e){return new t(this.width+e.width,this.height+e.height)}subtract(e){return new t(this.width-e.width,this.height-e.height)}scale(e){return new t(this.width*e,this.height*e)}static Lerp(e,s,i){return new t(e.width+(s.width-e.width)*i,e.height+(s.height-e.height)*i)}}e.s(["Size",0,t])},68061,e=>{"use strict";var t,s=e.i(16147),i=e.i(40220),r=e.i(57554),a=e.i(10534),h=e.i(47867),n=e.i(53477),l=e.i(95180);class o{get wrapU(){return this._wrapU}set wrapU(e){this._wrapU=e}get wrapV(){return this._wrapV}set wrapV(e){this._wrapV=e}get coordinatesMode(){return 0}get isCube(){return!!this._texture&&this._texture.isCube}set isCube(e){this._texture&&(this._texture.isCube=e)}get is3D(){return!!this._texture&&this._texture.is3D}set is3D(e){this._texture&&(this._texture.is3D=e)}get is2DArray(){return!!this._texture&&this._texture.is2DArray}set is2DArray(e){this._texture&&(this._texture.is2DArray=e)}getClassName(){return"ThinTexture"}static _IsRenderTargetWrapper(e){return e?.shareDepth!==void 0}constructor(e){this._wrapU=1,this._wrapV=1,this.wrapR=1,this.anisotropicFilteringLevel=4,this.delayLoadState=0,this._texture=null,this._engine=null,this._cachedSize=l.Size.Zero(),this._cachedBaseSize=l.Size.Zero(),this._initialSamplingMode=2,this._texture=o._IsRenderTargetWrapper(e)?e.texture:e,this._texture&&(this._engine=this._texture.getEngine(),this.wrapU=this._texture._cachedWrapU??this.wrapU,this.wrapV=this._texture._cachedWrapV??this.wrapV,this.wrapR=this._texture._cachedWrapR??this.wrapR)}isReady(){return 4===this.delayLoadState?(this.delayLoad(),!1):!!this._texture&&this._texture.isReady}delayLoad(){}getInternalTexture(){return this._texture}getSize(){if(this._texture){if(this._texture.width)return this._cachedSize.width=this._texture.width,this._cachedSize.height=this._texture.height,this._cachedSize;this._texture._size&&(this._cachedSize.width=this._texture._size,this._cachedSize.height=this._texture._size)}return this._cachedSize}getBaseSize(){return this.isReady()&&this._texture?this._texture._size?(this._cachedBaseSize.width=this._texture._size,this._cachedBaseSize.height=this._texture._size):(this._cachedBaseSize.width=this._texture.baseWidth,this._cachedBaseSize.height=this._texture.baseHeight):(this._cachedBaseSize.width=0,this._cachedBaseSize.height=0),this._cachedBaseSize}get samplingMode(){return this._texture?this._texture.samplingMode:this._initialSamplingMode}updateSamplingMode(e,t=!1){this._texture&&this._engine&&this._engine.updateTextureSamplingMode(e,this._texture,this._texture.generateMipMaps&&t)}releaseInternalTexture(){this._texture&&(this._texture.dispose(),this._texture=null)}dispose(){this._texture&&(this.releaseInternalTexture(),this._engine=null)}}var c=e.i(95397),u=e.i(54670);class _ extends o{set hasAlpha(e){this._hasAlpha!==e&&(this._hasAlpha=e,this._scene&&this._scene.markAllMaterialsAsDirty(1,e=>e.hasTexture(this)))}get hasAlpha(){return this._hasAlpha}set getAlphaFromRGB(e){this._getAlphaFromRGB!==e&&(this._getAlphaFromRGB=e,this._scene&&this._scene.markAllMaterialsAsDirty(1,e=>e.hasTexture(this)))}get getAlphaFromRGB(){return this._getAlphaFromRGB}set coordinatesIndex(e){this._coordinatesIndex!==e&&(this._coordinatesIndex=e,this._scene&&this._scene.markAllMaterialsAsDirty(1,e=>e.hasTexture(this)))}get coordinatesIndex(){return this._coordinatesIndex}set coordinatesMode(e){this._coordinatesMode!==e&&(this._coordinatesMode=e,this._scene&&this._scene.markAllMaterialsAsDirty(1,e=>e.hasTexture(this)))}get coordinatesMode(){return this._coordinatesMode}get wrapU(){return this._wrapU}set wrapU(e){this._wrapU=e}get wrapV(){return this._wrapV}set wrapV(e){this._wrapV=e}get isCube(){return this._texture?this._texture.isCube:this._isCube}set isCube(e){this._texture?this._texture.isCube=e:this._isCube=e}get is3D(){return!!this._texture&&this._texture.is3D}set is3D(e){this._texture&&(this._texture.is3D=e)}get is2DArray(){return!!this._texture&&this._texture.is2DArray}set is2DArray(e){this._texture&&(this._texture.is2DArray=e)}get gammaSpace(){return this._texture?(null===this._texture._gammaSpace&&(this._texture._gammaSpace=this._gammaSpace),this._texture._gammaSpace&&!this._texture._useSRGBBuffer):this._gammaSpace}set gammaSpace(e){if(this._texture){if(this._texture._gammaSpace===e)return;this._texture._gammaSpace=e}else{if(this._gammaSpace===e)return;this._gammaSpace=e}this.getScene()?.markAllMaterialsAsDirty(1,e=>e.hasTexture(this))}get isRGBD(){return null!=this._texture&&this._texture._isRGBD}set isRGBD(e){e!==this.isRGBD&&(this._texture&&(this._texture._isRGBD=e),this.getScene()?.markAllMaterialsAsDirty(1,e=>e.hasTexture(this)))}get noMipmap(){return!1}get lodGenerationOffset(){return this._texture?this._texture._lodGenerationOffset:0}set lodGenerationOffset(e){this._texture&&(this._texture._lodGenerationOffset=e)}get lodGenerationScale(){return this._texture?this._texture._lodGenerationScale:0}set lodGenerationScale(e){this._texture&&(this._texture._lodGenerationScale=e)}get linearSpecularLOD(){return!!this._texture&&this._texture._linearSpecularLOD}set linearSpecularLOD(e){this._texture&&(this._texture._linearSpecularLOD=e)}get irradianceTexture(){return this._texture?this._texture._irradianceTexture:null}set irradianceTexture(e){this._texture&&(this._texture._irradianceTexture=e)}get uid(){return this._uid||(this._uid=(0,n.RandomGUID)()),this._uid}toString(){return this.name}getClassName(){return"BaseTexture"}set onDispose(e){this._onDisposeObserver&&this.onDisposeObservable.remove(this._onDisposeObserver),this._onDisposeObserver=this.onDisposeObservable.add(e)}get isBlocking(){return!0}get loadingError(){return this._loadingError}get errorObject(){return this._errorObject}constructor(e,t=null){super(null),this.metadata=null,this.reservedDataStore=null,this._hasAlpha=!1,this._getAlphaFromRGB=!1,this.level=1,this._coordinatesIndex=0,this.optimizeUVAllocation=!0,this._coordinatesMode=0,this.wrapR=1,this.anisotropicFilteringLevel=_.DEFAULT_ANISOTROPIC_FILTERING_LEVEL,this._isCube=!1,this._gammaSpace=!0,this.invertZ=!1,this.lodLevelInAlpha=!1,this._dominantDirection=null,this.isRenderTarget=!1,this._prefiltered=!1,this._forceSerialize=!1,this.animations=[],this.onDisposeObservable=new r.Observable,this._onDisposeObserver=null,this._scene=null,this._uid=null,this._parentContainer=null,this._loadingError=!1,e?_._IsScene(e)?this._scene=e:this._engine=e:this._scene=h.EngineStore.LastCreatedScene,this._scene&&(this.uniqueId=this._scene.getUniqueId(),this._scene.addTexture(this),this._engine=this._scene.getEngine()),this._texture=t,this._uid=null}getScene(){return this._scene}_getEngine(){return this._engine}getTextureMatrix(){return a.Matrix.IdentityReadOnly}getReflectionTextureMatrix(){return a.Matrix.IdentityReadOnly}getRefractionTextureMatrix(){return this.getReflectionTextureMatrix()}isReadyOrNotBlocking(){return!this.isBlocking||this.isReady()||this.loadingError}scale(e){}get canRescale(){return!1}_getFromCache(e,t,s,i,r,a){let h=this._getEngine();if(!h)return null;let n=h._getUseSRGBBuffer(!!r,t),l=h.getLoadedTexturesCache();for(let h=0;h<l.length;h++){let o=l[h];if((void 0===r||n===o._useSRGBBuffer)&&(void 0===i||i===o.invertY)&&o.url===e&&!t===o.generateMipMaps&&(!s||s===o.samplingMode)&&(void 0===a||a===o.isCube))return o.incrementReferences(),o}return null}_rebuild(e=!1){}clone(){return null}get textureType(){return this._texture&&void 0!==this._texture.type?this._texture.type:0}get textureFormat(){return this._texture&&void 0!==this._texture.format?this._texture.format:5}_markAllSubMeshesAsTexturesDirty(){let e=this.getScene();e&&e.markAllMaterialsAsDirty(1)}readPixels(e=0,t=0,s=null,i=!0,r=!1,a=0,h=0,n=Number.MAX_VALUE,l=Number.MAX_VALUE){if(!this._texture)return null;let o=this._getEngine();if(!o)return null;let c=this.getSize(),u=c.width,_=c.height;0!==t&&(u/=Math.pow(2,t),_/=Math.pow(2,t),u=Math.round(u),_=Math.round(_)),n=Math.min(u,n),l=Math.min(_,l);try{if(this._texture.isCube||this._texture.is2DArray)return o._readTexturePixels(this._texture,n,l,e,t,s,i,r,a,h);return o._readTexturePixels(this._texture,n,l,-1,t,s,i,r,a,h)}catch(e){return null}}_readPixelsSync(e=0,t=0,s=null,i=!0,r=!1){if(!this._texture)return null;let a=this.getSize(),h=a.width,n=a.height,l=this._getEngine();if(!l)return null;0!=t&&(h/=Math.pow(2,t),n/=Math.pow(2,t),h=Math.round(h),n=Math.round(n));try{if(this._texture.isCube)return l._readTexturePixelsSync(this._texture,h,n,e,t,s,i,r);return l._readTexturePixelsSync(this._texture,h,n,-1,t,s,i,r)}catch(e){return null}}get _lodTextureHigh(){return this._texture?this._texture._lodTextureHigh:null}get _lodTextureMid(){return this._texture?this._texture._lodTextureMid:null}get _lodTextureLow(){return this._texture?this._texture._lodTextureLow:null}dispose(){if(this._scene){this._scene.stopAnimation&&this._scene.stopAnimation(this),this._scene.removePendingData(this);let e=this._scene.textures.indexOf(this);if(e>=0&&this._scene.textures.splice(e,1),this._scene.onTextureRemovedObservable.notifyObservers(this),this._scene=null,this._parentContainer){let e=this._parentContainer.textures.indexOf(this);e>-1&&this._parentContainer.textures.splice(e,1),this._parentContainer=null}}this.onDisposeObservable.notifyObservers(this),this.onDisposeObservable.clear(),this.metadata=null,super.dispose()}serialize(e=!1){if(!this.name&&!e)return null;let t=c.SerializationHelper.Serialize(this);return c.SerializationHelper.AppendSerializedAnimations(this,t),t}static WhenAllReady(e,t){let s=e.length;if(0===s)return void t();for(let i=0;i<e.length;i++){let r=e[i];if(r.isReady())0==--s&&t();else{let e=r.onLoadObservable;e?e.addOnce(()=>{0==--s&&t()}):0==--s&&t()}}}static _IsScene(e){return"Scene"===e.getClassName()}}_.DEFAULT_ANISOTROPIC_FILTERING_LEVEL=4,(0,s.__decorate)([(0,i.serialize)()],_.prototype,"uniqueId",void 0),(0,s.__decorate)([(0,i.serialize)()],_.prototype,"name",void 0),(0,s.__decorate)([(0,i.serialize)()],_.prototype,"displayName",void 0),(0,s.__decorate)([(0,i.serialize)()],_.prototype,"metadata",void 0),(0,s.__decorate)([(0,i.serialize)("hasAlpha")],_.prototype,"_hasAlpha",void 0),(0,s.__decorate)([(0,i.serialize)("getAlphaFromRGB")],_.prototype,"_getAlphaFromRGB",void 0),(0,s.__decorate)([(0,i.serialize)()],_.prototype,"level",void 0),(0,s.__decorate)([(0,i.serialize)("coordinatesIndex")],_.prototype,"_coordinatesIndex",void 0),(0,s.__decorate)([(0,i.serialize)()],_.prototype,"optimizeUVAllocation",void 0),(0,s.__decorate)([(0,i.serialize)("coordinatesMode")],_.prototype,"_coordinatesMode",void 0),(0,s.__decorate)([(0,i.serialize)()],_.prototype,"wrapU",null),(0,s.__decorate)([(0,i.serialize)()],_.prototype,"wrapV",null),(0,s.__decorate)([(0,i.serialize)()],_.prototype,"wrapR",void 0),(0,s.__decorate)([(0,i.serialize)()],_.prototype,"anisotropicFilteringLevel",void 0),(0,s.__decorate)([(0,i.serialize)()],_.prototype,"isCube",null),(0,s.__decorate)([(0,i.serialize)()],_.prototype,"is3D",null),(0,s.__decorate)([(0,i.serialize)()],_.prototype,"is2DArray",null),(0,s.__decorate)([(0,i.serialize)()],_.prototype,"gammaSpace",null),(0,s.__decorate)([(0,i.serialize)()],_.prototype,"invertZ",void 0),(0,s.__decorate)([(0,i.serialize)()],_.prototype,"lodLevelInAlpha",void 0),(0,s.__decorate)([(0,i.serialize)()],_.prototype,"lodGenerationOffset",null),(0,s.__decorate)([(0,i.serialize)()],_.prototype,"lodGenerationScale",null),(0,s.__decorate)([(0,i.serialize)()],_.prototype,"linearSpecularLOD",null),(0,s.__decorate)([(0,i.serializeAsTexture)()],_.prototype,"irradianceTexture",null),(0,s.__decorate)([(0,i.serialize)()],_.prototype,"isRenderTarget",void 0),(t=_.prototype).forceSphericalPolynomialsRecompute??(t.forceSphericalPolynomialsRecompute=(0,u._MissingSideEffect)("BaseTexture","forceSphericalPolynomialsRecompute")),Object.getOwnPropertyDescriptor(_.prototype,"sphericalPolynomial")||Object.defineProperty(_.prototype,"sphericalPolynomial",(0,u._MissingSideEffectProperty)("BaseTexture","sphericalPolynomial")),e.s(["BaseTexture",0,_],68061)},9768,e=>{"use strict";var t=e.i(20307);let s=!1;e.s(["RegisterAbstractEngineRenderPass",0,function(){s||(s=!0,t.AbstractEngine.prototype.getRenderPassNames=function(){return this._renderPassNames},t.AbstractEngine.prototype.getCurrentRenderPassName=function(){return this._renderPassNames[this.currentRenderPassId]},t.AbstractEngine.prototype.createRenderPassId=function(e){let s=++t.AbstractEngine._RenderPassIdCounter;return this._renderPassNames[s]=e??"NONAME",s},t.AbstractEngine.prototype.releaseRenderPassId=function(e){this._renderPassNames[e]=void 0;for(let t=0;t<this.scenes.length;++t){let s=this.scenes[t];for(let t=0;t<s.meshes.length;++t){let i=s.meshes[t];if(i._releaseRenderPassId(e),i.subMeshes)for(let t=0;t<i.subMeshes.length;++t)i.subMeshes[t]._removeDrawWrapper(e)}}})}])},12247,e=>{"use strict";var t=e.i(10534);let s=[Math.sqrt(1/(4*Math.PI)),-Math.sqrt(3/(4*Math.PI)),Math.sqrt(3/(4*Math.PI)),-Math.sqrt(3/(4*Math.PI)),Math.sqrt(15/(4*Math.PI)),-Math.sqrt(15/(4*Math.PI)),Math.sqrt(5/(16*Math.PI)),-Math.sqrt(15/(4*Math.PI)),Math.sqrt(15/(16*Math.PI))],i=[()=>1,e=>e.y,e=>e.z,e=>e.x,e=>e.x*e.y,e=>e.y*e.z,e=>3*e.z*e.z-1,e=>e.x*e.z,e=>e.x*e.x-e.y*e.y],r=(e,t)=>s[e]*i[e](t),a=[Math.PI,2*Math.PI/3,2*Math.PI/3,2*Math.PI/3,Math.PI/4,Math.PI/4,Math.PI/4,Math.PI/4,Math.PI/4];class h{constructor(){this.preScaled=!1,this.l00=t.Vector3.Zero(),this.l1_1=t.Vector3.Zero(),this.l10=t.Vector3.Zero(),this.l11=t.Vector3.Zero(),this.l2_2=t.Vector3.Zero(),this.l2_1=t.Vector3.Zero(),this.l20=t.Vector3.Zero(),this.l21=t.Vector3.Zero(),this.l22=t.Vector3.Zero()}addLight(e,s,i){t.TmpVectors.Vector3[0].set(s.r,s.g,s.b);let a=t.TmpVectors.Vector3[0],h=t.TmpVectors.Vector3[1];a.scaleToRef(i,h),h.scaleToRef(r(0,e),t.TmpVectors.Vector3[2]),this.l00.addInPlace(t.TmpVectors.Vector3[2]),h.scaleToRef(r(1,e),t.TmpVectors.Vector3[2]),this.l1_1.addInPlace(t.TmpVectors.Vector3[2]),h.scaleToRef(r(2,e),t.TmpVectors.Vector3[2]),this.l10.addInPlace(t.TmpVectors.Vector3[2]),h.scaleToRef(r(3,e),t.TmpVectors.Vector3[2]),this.l11.addInPlace(t.TmpVectors.Vector3[2]),h.scaleToRef(r(4,e),t.TmpVectors.Vector3[2]),this.l2_2.addInPlace(t.TmpVectors.Vector3[2]),h.scaleToRef(r(5,e),t.TmpVectors.Vector3[2]),this.l2_1.addInPlace(t.TmpVectors.Vector3[2]),h.scaleToRef(r(6,e),t.TmpVectors.Vector3[2]),this.l20.addInPlace(t.TmpVectors.Vector3[2]),h.scaleToRef(r(7,e),t.TmpVectors.Vector3[2]),this.l21.addInPlace(t.TmpVectors.Vector3[2]),h.scaleToRef(r(8,e),t.TmpVectors.Vector3[2]),this.l22.addInPlace(t.TmpVectors.Vector3[2])}scaleInPlace(e){this.l00.scaleInPlace(e),this.l1_1.scaleInPlace(e),this.l10.scaleInPlace(e),this.l11.scaleInPlace(e),this.l2_2.scaleInPlace(e),this.l2_1.scaleInPlace(e),this.l20.scaleInPlace(e),this.l21.scaleInPlace(e),this.l22.scaleInPlace(e)}convertIncidentRadianceToIrradiance(){this.l00.scaleInPlace(a[0]),this.l1_1.scaleInPlace(a[1]),this.l10.scaleInPlace(a[2]),this.l11.scaleInPlace(a[3]),this.l2_2.scaleInPlace(a[4]),this.l2_1.scaleInPlace(a[5]),this.l20.scaleInPlace(a[6]),this.l21.scaleInPlace(a[7]),this.l22.scaleInPlace(a[8])}convertIrradianceToLambertianRadiance(){this.scaleInPlace(1/Math.PI)}preScaleForRendering(){this.preScaled=!0,this.l00.scaleInPlace(s[0]),this.l1_1.scaleInPlace(s[1]),this.l10.scaleInPlace(s[2]),this.l11.scaleInPlace(s[3]),this.l2_2.scaleInPlace(s[4]),this.l2_1.scaleInPlace(s[5]),this.l20.scaleInPlace(s[6]),this.l21.scaleInPlace(s[7]),this.l22.scaleInPlace(s[8])}updateFromArray(e){return t.Vector3.FromArrayToRef(e[0],0,this.l00),t.Vector3.FromArrayToRef(e[1],0,this.l1_1),t.Vector3.FromArrayToRef(e[2],0,this.l10),t.Vector3.FromArrayToRef(e[3],0,this.l11),t.Vector3.FromArrayToRef(e[4],0,this.l2_2),t.Vector3.FromArrayToRef(e[5],0,this.l2_1),t.Vector3.FromArrayToRef(e[6],0,this.l20),t.Vector3.FromArrayToRef(e[7],0,this.l21),t.Vector3.FromArrayToRef(e[8],0,this.l22),this}updateFromFloatsArray(e){return t.Vector3.FromFloatsToRef(e[0],e[1],e[2],this.l00),t.Vector3.FromFloatsToRef(e[3],e[4],e[5],this.l1_1),t.Vector3.FromFloatsToRef(e[6],e[7],e[8],this.l10),t.Vector3.FromFloatsToRef(e[9],e[10],e[11],this.l11),t.Vector3.FromFloatsToRef(e[12],e[13],e[14],this.l2_2),t.Vector3.FromFloatsToRef(e[15],e[16],e[17],this.l2_1),t.Vector3.FromFloatsToRef(e[18],e[19],e[20],this.l20),t.Vector3.FromFloatsToRef(e[21],e[22],e[23],this.l21),t.Vector3.FromFloatsToRef(e[24],e[25],e[26],this.l22),this}static FromArray(e){return new h().updateFromArray(e)}static FromPolynomial(e){let t=new h;return t.l00=e.xx.scale(.376127).add(e.yy.scale(.376127)).add(e.zz.scale(.376126)),t.l1_1=e.y.scale(.977204),t.l10=e.z.scale(.977204),t.l11=e.x.scale(.977204),t.l2_2=e.xy.scale(1.16538),t.l2_1=e.yz.scale(1.16538),t.l20=e.zz.scale(1.34567).subtract(e.xx.scale(.672834)).subtract(e.yy.scale(.672834)),t.l21=e.zx.scale(1.16538),t.l22=e.xx.scale(1.16538).subtract(e.yy.scale(1.16538)),t.l1_1.scaleInPlace(-1),t.l11.scaleInPlace(-1),t.l2_1.scaleInPlace(-1),t.l21.scaleInPlace(-1),t.scaleInPlace(Math.PI),t}}class n{constructor(){this.x=t.Vector3.Zero(),this.y=t.Vector3.Zero(),this.z=t.Vector3.Zero(),this.xx=t.Vector3.Zero(),this.yy=t.Vector3.Zero(),this.zz=t.Vector3.Zero(),this.xy=t.Vector3.Zero(),this.yz=t.Vector3.Zero(),this.zx=t.Vector3.Zero()}get preScaledHarmonics(){return this._harmonics||(this._harmonics=h.FromPolynomial(this)),this._harmonics.preScaled||this._harmonics.preScaleForRendering(),this._harmonics}addAmbient(e){t.TmpVectors.Vector3[0].copyFromFloats(e.r,e.g,e.b);let s=t.TmpVectors.Vector3[0];this.xx.addInPlace(s),this.yy.addInPlace(s),this.zz.addInPlace(s)}scaleInPlace(e){this.x.scaleInPlace(e),this.y.scaleInPlace(e),this.z.scaleInPlace(e),this.xx.scaleInPlace(e),this.yy.scaleInPlace(e),this.zz.scaleInPlace(e),this.yz.scaleInPlace(e),this.zx.scaleInPlace(e),this.xy.scaleInPlace(e)}updateFromHarmonics(e){return this._harmonics=e,this.x.copyFrom(e.l11),this.x.scaleInPlace(1.02333).scaleInPlace(-1),this.y.copyFrom(e.l1_1),this.y.scaleInPlace(1.02333).scaleInPlace(-1),this.z.copyFrom(e.l10),this.z.scaleInPlace(1.02333),this.xx.copyFrom(e.l00),t.TmpVectors.Vector3[0].copyFrom(e.l20).scaleInPlace(.247708),t.TmpVectors.Vector3[1].copyFrom(e.l22).scaleInPlace(.429043),this.xx.scaleInPlace(.886277).subtractInPlace(t.TmpVectors.Vector3[0]).addInPlace(t.TmpVectors.Vector3[1]),this.yy.copyFrom(e.l00),this.yy.scaleInPlace(.886277).subtractInPlace(t.TmpVectors.Vector3[0]).subtractInPlace(t.TmpVectors.Vector3[1]),this.zz.copyFrom(e.l00),t.TmpVectors.Vector3[0].copyFrom(e.l20).scaleInPlace(.495417),this.zz.scaleInPlace(.886277).addInPlace(t.TmpVectors.Vector3[0]),this.yz.copyFrom(e.l2_1),this.yz.scaleInPlace(.858086).scaleInPlace(-1),this.zx.copyFrom(e.l21),this.zx.scaleInPlace(.858086).scaleInPlace(-1),this.xy.copyFrom(e.l2_2),this.xy.scaleInPlace(.858086),this.scaleInPlace(1/Math.PI),this}static FromHarmonics(e){return new n().updateFromHarmonics(e)}static FromArray(e){let s=new n;return t.Vector3.FromArrayToRef(e[0],0,s.x),t.Vector3.FromArrayToRef(e[1],0,s.y),t.Vector3.FromArrayToRef(e[2],0,s.z),t.Vector3.FromArrayToRef(e[3],0,s.xx),t.Vector3.FromArrayToRef(e[4],0,s.yy),t.Vector3.FromArrayToRef(e[5],0,s.zz),t.Vector3.FromArrayToRef(e[6],0,s.yz),t.Vector3.FromArrayToRef(e[7],0,s.zx),t.Vector3.FromArrayToRef(e[8],0,s.xy),s}}e.s(["SphericalHarmonics",0,h,"SphericalPolynomial",0,n])},34736,e=>{"use strict";var t=e.i(83464);let s=new Map;function i(e,i){var r;r=e,s.delete(r)&&t.Logger.Warn(`Extension with the name '${e}' already exists`),s.set(e,i)}e.s(["_GetCompatibleTextureLoader",0,function(t,r){("image/ktx"===r||"image/ktx2"===r)&&(t=".ktx"),!s.has(t)&&(t.endsWith(".ies")&&i(".ies",async()=>await e.A(59974).then(e=>new e._IESTextureLoader)),t.endsWith(".dds")&&i(".dds",async()=>await e.A(50753).then(e=>new e._DDSTextureLoader)),t.endsWith(".basis")&&i(".basis",async()=>await e.A(88531).then(e=>new e._BasisTextureLoader)),t.endsWith(".env")&&i(".env",async()=>await e.A(10885).then(e=>new e._ENVTextureLoader)),t.endsWith(".hdr")&&i(".hdr",async()=>await e.A(74080).then(e=>new e._HDRTextureLoader)),(t.endsWith(".ktx")||t.endsWith(".ktx2"))&&(i(".ktx",async()=>await e.A(97021).then(e=>new e._KTXTextureLoader)),i(".ktx2",async()=>await e.A(97021).then(e=>new e._KTXTextureLoader))),t.endsWith(".tga")&&i(".tga",async()=>await e.A(55782).then(e=>new e._TGATextureLoader)),t.endsWith(".exr")&&i(".exr",async()=>await e.A(86616).then(e=>new e._ExrTextureLoader)));let a=s.get(t);return a?Promise.resolve(a(r)):null}])},690,e=>{e.v(t=>Promise.all(["static/chunks/2y75diyxqlhzl.js"].map(t=>e.l(t))).then(()=>t(59922)))},59974,e=>{e.v(t=>Promise.all(["static/chunks/2_7dp91937mqi.js"].map(t=>e.l(t))).then(()=>t(91924)))},50753,e=>{e.v(t=>Promise.all(["static/chunks/2reukv9c7cq_9.js"].map(t=>e.l(t))).then(()=>t(25755)))},88531,e=>{e.v(t=>Promise.all(["static/chunks/1iaxzjly2pap1.js","static/chunks/17svumd4o0qnc.js"].map(t=>e.l(t))).then(()=>t(13313)))},10885,e=>{e.v(t=>Promise.all(["static/chunks/1iaxzjly2pap1.js","static/chunks/0l3wwyl93sqh9.js","static/chunks/17d1isrw8gtnb.js","static/chunks/3g_h_00xs9u59.js","static/chunks/24cqjhy669845.js","static/chunks/2dhv35o59yzao.js"].map(t=>e.l(t))).then(()=>t(69384)))},74080,e=>{e.v(t=>Promise.all(["static/chunks/0kcbdjbdxu_wa.js"].map(t=>e.l(t))).then(()=>t(72089)))},97021,e=>{e.v(t=>Promise.all(["static/chunks/18k-0jn63_5ie.js","static/chunks/1iaxzjly2pap1.js"].map(t=>e.l(t))).then(()=>t(29614)))},55782,e=>{e.v(t=>Promise.all(["static/chunks/3d0ejsnhbzi-j.js"].map(t=>e.l(t))).then(()=>t(83960)))},86616,e=>{e.v(t=>Promise.all(["static/chunks/0b7-mrrg7ryj2.js","static/chunks/1iaxzjly2pap1.js"].map(t=>e.l(t))).then(()=>t(8051)))}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,27116,e=>{"use strict";var t=e.i(82531),i=e.i(82350);let l="cachedOperationValue",a="cachedExecutionId";class s extends t.FlowGraphBlock{constructor(e,t){super(t),this.value=this.registerDataOutput("value",e),this.isValid=this.registerDataOutput("isValid",i.RichTypeBoolean)}_updateOutputs(e){let t=e._getExecutionVariable(this,a,-1),i=e._getExecutionVariable(this,l,null);if(null!=i&&t===e.executionId)this.isValid.setValue(!0,e),this.value.setValue(i,e);else try{let t=this._doOperation(e);if(null==t)return void this.isValid.setValue(!1,e);e._setExecutionVariable(this,l,t),e._setExecutionVariable(this,a,e.executionId),this.value.setValue(t,e),this.isValid.setValue(!0,e)}catch(t){this.isValid.setValue(!1,e)}}}e.s(["FlowGraphCachedOperationBlock",0,s])},91161,e=>{"use strict";var t=e.i(82350),i=e.i(27116),l=e.i(10534),a=e.i(48477);class s extends i.FlowGraphCachedOperationBlock{constructor(e){super(t.RichTypeVector3,e),this.body=this.registerDataInput("body",t.RichTypeAny)}_doOperation(e){let t=this.body.getValue(e);if(!t)return;let i=e._getExecutionVariable(this,"_cachedVelocity",null);return i||(i=new l.Vector3,e._setExecutionVariable(this,"_cachedVelocity",i)),t.getAngularVelocityToRef(i),i}getClassName(){return"FlowGraphGetAngularVelocityBlock"}}let o=!1;function r(){o||(o=!0,(0,a.RegisterClass)("FlowGraphGetAngularVelocityBlock",s))}e.s(["FlowGraphGetAngularVelocityBlock",0,s,"RegisterFlowGraphGetAngularVelocityBlock",0,r],93942),r(),e.s([],52051),e.i(52051),e.i(93942),e.s(["FlowGraphGetAngularVelocityBlock",0,s],91161)}]);
|