@uptimizr/dashboard 0.4.4 → 0.4.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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/{2o8k8x5zcepfy.js → 0-k4hp87gwues.js} +1 -1
- package/out/_next/static/chunks/{0s84ekz_f9ngx.js → 0-laj-bivzp4x.js} +1 -1
- package/out/_next/static/chunks/{3tdzweqszru4y.js → 04zj0yf1qhk1o.js} +1 -1
- package/out/_next/static/chunks/05s0t-besbvu1.css +3 -0
- package/out/_next/static/chunks/{1e_-_7biavwmb.js → 06fbalmyyfpsy.js} +1 -1
- package/out/_next/static/chunks/{3yr66ufoli71t.js → 07hgbbqksqd1g.js} +1 -1
- package/out/_next/static/chunks/08ou2nvy48e0u.js +1 -0
- package/out/_next/static/chunks/08y5-irjbsiy8.js +1 -0
- package/out/_next/static/chunks/{2pbgsq7vvtk8_.js → 0_jrfk2u1u3fi.js} +1 -1
- package/out/_next/static/chunks/{1-4v8oivkgnyl.js → 0a475u_q5i_dd.js} +2 -2
- package/out/_next/static/chunks/0aad2r4s4wl1x.js +5 -0
- package/out/_next/static/chunks/{2rjfrjhp4kjev.js → 0cmyc-uvk93kl.js} +52 -52
- package/out/_next/static/chunks/{1ozi46t8jajqh.js → 0d9pxx1w_zqr9.js} +1 -1
- package/out/_next/static/chunks/{3-x7522okdy-7.js → 0e5dcxmkprebg.js} +1 -1
- package/out/_next/static/chunks/{1n_gxvu31aofy.js → 0gk5rnci1hznh.js} +2 -2
- package/out/_next/static/chunks/0gnjtwq-474uc.js +1 -0
- package/out/_next/static/chunks/0gsh_d0m5xss1.js +1 -0
- package/out/_next/static/chunks/0i9wa8hjd-5tc.js +1 -0
- package/out/_next/static/chunks/0ibzpjo0h731v.js +1 -0
- package/out/_next/static/chunks/{41yy4p3-rtyz1.js → 0j0a0wvmmghxj.js} +1 -1
- package/out/_next/static/chunks/{29gv2swsp7tzu.js → 0j2ygtc_-bo3m.js} +1 -1
- package/out/_next/static/chunks/{0dck67in84de0.js → 0j_3k5qhv_mdx.js} +1 -1
- package/out/_next/static/chunks/0jap7l5-bskj4.js +114 -0
- package/out/_next/static/chunks/{0n92hec_jb_-_.js → 0jis2w2mfx062.js} +1 -1
- package/out/_next/static/chunks/0jjvp2slpf7d6.js +1 -0
- package/out/_next/static/chunks/0ko10wo4rc9-b.js +1 -0
- package/out/_next/static/chunks/0lqmvz6k2h_of.js +1 -0
- package/out/_next/static/chunks/0lwjmr8efrlbt.js +17 -0
- package/out/_next/static/chunks/0noxyupihh8dk.js +1 -0
- package/out/_next/static/chunks/{2-hdejef-mpka.js → 0o0qtv35dqv3i.js} +219 -16
- package/out/_next/static/chunks/{43hwl25uke0l_.js → 0o1vph7x9shzu.js} +1 -1
- package/out/_next/static/chunks/{1tt1bbry-4f-6.js → 0o73w0cn5n_vl.js} +1 -1
- package/out/_next/static/chunks/0p6phe9kjlxn8.js +1 -0
- package/out/_next/static/chunks/0ptxb9dcwsw3o.js +1 -0
- package/out/_next/static/chunks/{31ei992g8gqz9.js → 0q0i4pdyq66gb.js} +1 -1
- package/out/_next/static/chunks/0q8pt8fd0ma30.js +1 -0
- package/out/_next/static/chunks/0qqx9aoz8l5d2.js +1 -0
- package/out/_next/static/chunks/0r-x702_jvhud.js +112 -0
- package/out/_next/static/chunks/{2h5nvlgky7fpa.js → 0rykrf_vofbad.js} +1 -1
- package/out/_next/static/chunks/0tsk32q-88t_7.js +1 -0
- package/out/_next/static/chunks/0u7577db_ivyr.js +1 -0
- package/out/_next/static/chunks/0unnrt0un064x.js +1 -0
- package/out/_next/static/chunks/{3mvaub8qjdyuc.js → 0uygtr4mo3h0v.js} +1 -1
- package/out/_next/static/chunks/0vf3facit951s.js +1 -0
- package/out/_next/static/chunks/{2pcdnd4nzcw4c.js → 0vzo-8t8c26k9.js} +1 -1
- package/out/_next/static/chunks/0xx7_7y5jdlh4.js +1 -0
- package/out/_next/static/chunks/0xyija62b6txc.js +1 -0
- package/out/_next/static/chunks/{0vso09vdz38sr.js → 0xzamrecplwzw.js} +1 -1
- package/out/_next/static/chunks/{2khh_pmm224k5.js → 0yd4_xh476fjn.js} +14 -217
- package/out/_next/static/chunks/0ypejzd74ixbw.js +338 -0
- package/out/_next/static/chunks/0zeb37703zcz3.js +1 -0
- package/out/_next/static/chunks/0zu5ato7-1-q9.js +1 -0
- package/out/_next/static/chunks/0zydv7y47dxgh.js +1 -0
- package/out/_next/static/chunks/103x4jwovb6d-.js +1 -0
- package/out/_next/static/chunks/107wfq84g9-kn.js +1 -0
- package/out/_next/static/chunks/10afagk8yn__n.js +1 -0
- package/out/_next/static/chunks/12ory_c78yl31.js +1 -0
- package/out/_next/static/chunks/{1ccn725by19i1.js → 133dqp8_7_yo6.js} +1 -1
- package/out/_next/static/chunks/1365lgwdd4vuo.js +1 -0
- package/out/_next/static/chunks/146ou-ohb_qhs.js +1 -0
- package/out/_next/static/chunks/{425epvuw3yy-n.js → 14e4k-718qadd.js} +31 -31
- package/out/_next/static/chunks/14orr68xgdykd.js +1 -0
- package/out/_next/static/chunks/15qfoj-vl9thu.js +1 -0
- package/out/_next/static/chunks/{0okbyggxe6mx5.js → 161yjxmdz9obc.js} +1 -1
- package/out/_next/static/chunks/166yqx3_qvbpy.js +1 -0
- package/out/_next/static/chunks/16gwjao676ieb.js +1 -0
- package/out/_next/static/chunks/{0n-zml1gn0o1u.js → 16rmmzhy2p7bw.js} +1 -1
- package/out/_next/static/chunks/{442e2l3jzxd-_.js → 17_jjyx4jz9dd.js} +1 -1
- package/out/_next/static/chunks/{0zf26k6juhlzo.js → 184pz6z3dflfm.js} +13 -10
- package/out/_next/static/chunks/18h9ugdz6igdb.js +1 -0
- package/out/_next/static/chunks/19d8n5t7ka2fb.js +1 -0
- package/out/_next/static/chunks/{1mvadj46owrck.js → 1_4hh3dfop93j.js} +1 -1
- package/out/_next/static/chunks/1_rbzw3n4fk0g.js +1 -0
- package/out/_next/static/chunks/{22ja7c3gk0_ko.js → 1a94whad0y57f.js} +1 -1
- package/out/_next/static/chunks/{1vmpltnr0cyos.js → 1aa9g197l4twm.js} +1 -1
- package/out/_next/static/chunks/1bq0fcnt1wy86.js +1 -0
- package/out/_next/static/chunks/{1fyh50hjt7hi_.js → 1bv-jzy_2jiqs.js} +1 -1
- package/out/_next/static/chunks/1c6mho7e0enta.js +1 -0
- package/out/_next/static/chunks/{2ymtumj-hfrjo.js → 1dfaheve77dhi.js} +1 -1
- package/out/_next/static/chunks/1dgf112ehnhm1.js +1 -0
- package/out/_next/static/chunks/{32vaw89wdwv5_.js → 1eirucr9s6-h5.js} +1 -1
- package/out/_next/static/chunks/{0dva036n8ab62.js → 1f07l3q77zat1.js} +1 -1
- package/out/_next/static/chunks/1fervgvgv10r-.js +1 -0
- package/out/_next/static/chunks/1fsof7un7igrn.js +1 -0
- package/out/_next/static/chunks/{3gyyjsot8mdav.js → 1gvu5a6ffbs7l.js} +1 -1
- package/out/_next/static/chunks/{0t89-lfct-7m6.js → 1h1gixjbjkbsl.js} +5 -5
- package/out/_next/static/chunks/1iel4pzhhh-c3.js +1 -0
- package/out/_next/static/chunks/1iojfx3-g4_n9.js +1 -0
- package/out/_next/static/chunks/{1__nujzr9e352.js → 1j4c0nvdo5q68.js} +1 -1
- package/out/_next/static/chunks/{1o3ggu95lfu6i.js → 1j4jt5q7px8sy.js} +1 -1
- package/out/_next/static/chunks/{2g_1ov-0j2kwd.js → 1jjw9hxgi2vzi.js} +1 -1
- package/out/_next/static/chunks/1k_8olnprvi8r.js +1 -0
- package/out/_next/static/chunks/1l0rt7d4m-xdk.js +5 -0
- package/out/_next/static/chunks/{1oljzgz5jistn.js → 1lu7rjfvxj8yj.js} +1 -1
- package/out/_next/static/chunks/{2c2dspoukng-5.js → 1mt4cnd_d6jvf.js} +1 -1
- package/out/_next/static/chunks/1my968s78he8g.js +272 -0
- package/out/_next/static/chunks/{03zip1uidm6x9.js → 1s0dpdqy480hg.js} +1 -1
- package/out/_next/static/chunks/1t-yolk97lmot.js +12 -0
- package/out/_next/static/chunks/1t2g1v0ubcsam.js +1 -0
- package/out/_next/static/chunks/{18wa83g0qfh-b.js → 1tbes2sv-qzcx.js} +1 -1
- package/out/_next/static/chunks/1upy8a5cb75kt.js +1 -0
- package/out/_next/static/chunks/{2zpn7010iqgsy.js → 1x0j78ohufpul.js} +1 -1
- package/out/_next/static/chunks/1xed71f608m4b.js +1 -0
- package/out/_next/static/chunks/1z790xxb46gxy.js +1 -0
- package/out/_next/static/chunks/{22rl_arnzs-ve.js → 1zmx71cvc6ksk.js} +1 -1
- package/out/_next/static/chunks/{3kalvwsf11-ss.js → 2-_a-v1xeo5hb.js} +15 -12
- package/out/_next/static/chunks/2-i29-jdbwww6.js +532 -0
- package/out/_next/static/chunks/{1solqr18og2ot.js → 2117sv2qzo6yq.js} +1 -1
- package/out/_next/static/chunks/219n3q-_eengm.js +1 -0
- package/out/_next/static/chunks/21wo3vdr_uby8.js +1 -0
- package/out/_next/static/chunks/{1nqojcig-0m3c.js → 22yht3s7c-xih.js} +1 -1
- package/out/_next/static/chunks/{3go-mst7n3udd.js → 23-y1f_zw56vo.js} +1 -1
- package/out/_next/static/chunks/{0-tzsd_n-ywom.js → 25brs445bjbik.js} +2 -2
- package/out/_next/static/chunks/25gep78-izw79.js +4 -0
- package/out/_next/static/chunks/{099ilz3dmm1jw.js → 26i7dn31afdtm.js} +1 -1
- package/out/_next/static/chunks/27hbplu797elx.js +1 -0
- package/out/_next/static/chunks/{3n-7bcmfbh299.js → 27z7j17kcrty_.js} +11 -11
- package/out/_next/static/chunks/{380ivzcfb4o_3.js → 287hakn2ijupp.js} +2 -2
- package/out/_next/static/chunks/28i3wgvgn_at1.js +1 -0
- package/out/_next/static/chunks/2992eiy52nazj.js +1 -0
- package/out/_next/static/chunks/29_n5j-hg_gsa.js +1 -0
- package/out/_next/static/chunks/29bxq-67oazfg.js +1 -0
- package/out/_next/static/chunks/{309f81l5ucsb_.js → 29hkkj9raxte9.js} +50 -50
- package/out/_next/static/chunks/29ings58w7kp1.js +1 -0
- package/out/_next/static/chunks/{2e46-2ubc90do.js → 2_6b9lraq-exh.js} +5 -5
- package/out/_next/static/chunks/{3w4qettzp7khe.js → 2_lw4d7t-xcqi.js} +32 -32
- package/out/_next/static/chunks/2_n0cpkdsjzli.js +1 -0
- package/out/_next/static/chunks/2a3iy701j4r_y.js +1 -0
- package/out/_next/static/chunks/2al9dh3_1ixhv.js +1 -0
- package/out/_next/static/chunks/{1gvdmbr65lpud.js → 2as_br1awqk6k.js} +69 -69
- package/out/_next/static/chunks/{0c5d3qn2mb3ew.js → 2awr1c_vfsutb.js} +1 -1
- package/out/_next/static/chunks/{2q0rz76kj6h5z.js → 2b5nt7yn-pq3a.js} +1 -1
- package/out/_next/static/chunks/2bxe3kjr17tdp.js +1 -0
- package/out/_next/static/chunks/{2z9mdtudj8crz.js → 2c8rmxz151fxa.js} +20 -18
- package/out/_next/static/chunks/{35aagg46wp139.js → 2clevl_9ayd0x.js} +1 -1
- package/out/_next/static/chunks/{41qxc142snm22.js → 2dvbzar93ooc-.js} +1 -1
- package/out/_next/static/chunks/2e-vp0e11g9ew.js +1 -0
- package/out/_next/static/chunks/{2-p206i_ihx09.js → 2epukrz6paj9n.js} +1 -1
- package/out/_next/static/chunks/2exj9-0p6n9x-.js +1 -0
- package/out/_next/static/chunks/{05uqfgf-hh-p5.js → 2fspbfbxbswzd.js} +1 -1
- package/out/_next/static/chunks/2gf8l6hbmt7v3.js +1 -0
- package/out/_next/static/chunks/{1ph0tfo-4hl-f.js → 2h07np207nlx7.js} +1 -1
- package/out/_next/static/chunks/{11p92pnn5el0v.js → 2h9i_adbqaxs4.js} +1 -1
- package/out/_next/static/chunks/{0bj_310rugcn1.js → 2iu0_3cx-ny74.js} +11 -11
- package/out/_next/static/chunks/2jio3sio-_43z.js +1 -0
- package/out/_next/static/chunks/{0uxdbfa8gv6tk.js → 2kk_vvmr2xm3d.js} +29 -29
- package/out/_next/static/chunks/2kmmk9coo9_b0.js +505 -0
- package/out/_next/static/chunks/{055baac5e-c2o.js → 2laz1v9fg2a2z.js} +1 -1
- package/out/_next/static/chunks/{1qsut_e3msg0l.js → 2mjjo0yj-4ro4.js} +1 -1
- package/out/_next/static/chunks/{0av6n_6q6kzo3.js → 2mrkv0z2i74pv.js} +2 -2
- package/out/_next/static/chunks/{04_3ri5emyfcu.js → 2neieeo9g2u56.js} +1 -1
- package/out/_next/static/chunks/{1upkv4ltuh3s5.js → 2oacwtbslo90t.js} +84 -84
- package/out/_next/static/chunks/2pb_uosb-aa8x.js +1 -0
- package/out/_next/static/chunks/2qu-gpm3ux1l6.js +1 -0
- package/out/_next/static/chunks/2rsi6v7qmqx2b.js +1 -0
- package/out/_next/static/chunks/2s4fzgzkwjluu.js +2 -0
- package/out/_next/static/chunks/2tdvuc-27khif.js +1 -0
- package/out/_next/static/chunks/{2bm95r0011asw.js → 2trolrgd7neax.js} +1 -1
- package/out/_next/static/chunks/2uyuafmoe5wi0.js +3 -0
- package/out/_next/static/chunks/2w2e0pxgs-n8f.js +1 -0
- package/out/_next/static/chunks/{1qxhgauuomthl.js → 2wgh5i70bzelt.js} +60 -60
- package/out/_next/static/chunks/{3d76e_yd8l_0x.js → 2x-7kbwq8tl-o.js} +59 -59
- package/out/_next/static/chunks/{1t2exh89lnazc.js → 2xe4bgir5l-9b.js} +32 -99
- package/out/_next/static/chunks/2xujlsx3stqig.js +1 -0
- package/out/_next/static/chunks/{267q_eg-c6f6m.js → 3-yhe6rcsjh88.js} +1 -1
- package/out/_next/static/chunks/30y71dxdpv52d.js +1 -0
- package/out/_next/static/chunks/32c-e_v8_2xkf.js +1 -0
- package/out/_next/static/chunks/32oj0iudhp8bm.js +1 -0
- package/out/_next/static/chunks/{0w-hm7g7trtjg.js → 336ckqpboqmbn.js} +1 -1
- package/out/_next/static/chunks/33p9du6y9eegg.js +1 -0
- package/out/_next/static/chunks/{3w_umk1xtj6to.js → 36pz_ews7u0xb.js} +1 -1
- package/out/_next/static/chunks/{1ux1rpe-n1mai.js → 374lzksboll-t.js} +1 -1
- package/out/_next/static/chunks/38om-j0h0rryk.js +1 -0
- package/out/_next/static/chunks/{3oyuoqr8y2g9r.js → 38q0enmlg5q9o.js} +2 -2
- package/out/_next/static/chunks/{25gf6xn9u1c57.js → 39cou9lia_g7l.js} +1 -1
- package/out/_next/static/chunks/39pkya0_bvcaj.js +1 -0
- package/out/_next/static/chunks/{1x99m91nt1m3b.js → 39rhmj_32ujyj.js} +1 -1
- package/out/_next/static/chunks/3_1zzmx92j9c0.js +1 -0
- package/out/_next/static/chunks/{3z4suna4kq4j5.js → 3_dm45k0vk1aa.js} +34 -35
- package/out/_next/static/chunks/3_earszshuz4n.js +1 -0
- package/out/_next/static/chunks/{1ephzzweysylq.js → 3_gfl66zf638s.js} +38 -105
- package/out/_next/static/chunks/3ap_uxc8lx7ni.js +1 -0
- package/out/_next/static/chunks/{0pv2wirx45e1m.js → 3b6na8zrex8jo.js} +1 -1
- package/out/_next/static/chunks/3c0cxt72vilyz.js +1 -0
- package/out/_next/static/chunks/3cp5nmtwxq4gr.js +1 -0
- package/out/_next/static/chunks/{0tn-9w46cwydp.js → 3d43gd91r06y6.js} +39 -40
- package/out/_next/static/chunks/3g78x0pdaoi_4.js +1 -0
- package/out/_next/static/chunks/{1di5enkavl9vx.js → 3gjvl1p-tugfe.js} +2 -2
- package/out/_next/static/chunks/{1mrvp94tietcv.js → 3i8iro1gas1vx.js} +1 -1
- package/out/_next/static/chunks/{3-_08i4_7yhno.js → 3ioxfi3bvznhh.js} +1 -1
- package/out/_next/static/chunks/{2i82rmjta9ijs.js → 3j3ol_d1vsdhx.js} +1 -1
- package/out/_next/static/chunks/3kpqfqr99vo7z.js +1 -0
- package/out/_next/static/chunks/3lladf_wemm-2.js +1 -0
- package/out/_next/static/chunks/{0-0hui1_v3h8b.js → 3mmy9zsb7zo-m.js} +12 -9
- package/out/_next/static/chunks/{17aahvhpls1l7.js → 3my05px5mv_s5.js} +83 -16
- package/out/_next/static/chunks/3n62hbywoknop.js +1 -0
- package/out/_next/static/chunks/{0wq_9f98weoe3.js → 3nr48h9zwum-3.js} +1 -1
- package/out/_next/static/chunks/{2x83vs8ns4pww.js → 3nwaovnpiyrt8.js} +1 -1
- package/out/_next/static/chunks/3o_dmzpahx-5g.js +1 -0
- package/out/_next/static/chunks/{0g2wngc6oe7fd.js → 3p03l0z65c8vc.js} +27 -25
- package/out/_next/static/chunks/{00xc-0pj7on2s.js → 3puu2_-t0lln9.js} +29 -29
- package/out/_next/static/chunks/{077eo-0dhbxz-.js → 3qo7e6b73mfxq.js} +1 -1
- package/out/_next/static/chunks/3r7v7un976sn7.js +1 -0
- package/out/_next/static/chunks/{255knovck7pv2.js → 3rj-5v0j_2-_2.js} +4 -4
- package/out/_next/static/chunks/3rl_nhqwew40w.js +1 -0
- package/out/_next/static/chunks/3s7hqij6xp_4e.js +1 -0
- package/out/_next/static/chunks/{1ng-fqh2_n984.js → 3si3migsmvz9o.js} +1 -1
- package/out/_next/static/chunks/3t4ys6th6gf2w.js +1 -0
- package/out/_next/static/chunks/{1og49_atcksim.js → 3twr9ds68-9us.js} +1 -1
- package/out/_next/static/chunks/{2ftp5xmq_w23j.js → 3txu-i5qn183a.js} +65 -65
- package/out/_next/static/chunks/{3y_51bmdnc0ey.js → 3uarw1i1ij1er.js} +1 -1
- package/out/_next/static/chunks/3un-w6wutw1qn.js +1 -0
- package/out/_next/static/chunks/3v8kgnjk27wbe.js +1 -0
- package/out/_next/static/chunks/{1t7nl8rx7mabd.js → 3vtmucpx25o7q.js} +61 -61
- package/out/_next/static/chunks/{04j9pexbmysdy.js → 3vu5y270muh-7.js} +1 -1
- package/out/_next/static/chunks/3we1khqfexh3x.js +1 -0
- package/out/_next/static/chunks/3yk0hzfq5rcs6.js +1 -0
- package/out/_next/static/chunks/3z35loj4i-id4.js +1 -0
- package/out/_next/static/chunks/{28ndw4nsw2t_4.js → 3zv5kyos9vtmm.js} +1 -1
- package/out/_next/static/chunks/{1hsvckd0sgdgr.js → 415g3asdds1ac.js} +1 -1
- package/out/_next/static/chunks/{1nasz7q3tvb53.js → 42lqt7ig40wk5.js} +1 -1
- package/out/_next/static/chunks/42s6ghsurq5q7.js +1 -0
- package/out/_next/static/chunks/42yctcfi2rfwr.js +1 -0
- package/out/_next/static/chunks/43_fau1gg69eo.js +1 -0
- package/out/_next/static/chunks/43ywrdzg_7af8.js +31 -0
- package/out/_next/static/chunks/{1ho02fc091nj2.js → 44m1ijc5cv80x.js} +1 -1
- package/out/_next/static/chunks/{3k-gz8qf-mj-p.js → 453_bg0lgesmp.js} +1 -1
- package/out/_next/static/chunks/{turbopack-3r8yn0j92tqw_.js → turbopack-1s36ieuku1ds3.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 +14 -14
- package/out/_next/static/chunks/00g5suuoa-_wn.js +0 -1
- package/out/_next/static/chunks/00o9hr_3hd0r8.js +0 -1
- package/out/_next/static/chunks/01fh3_bncbe5u.js +0 -1
- package/out/_next/static/chunks/01urdkl1j8o6l.js +0 -1
- package/out/_next/static/chunks/026vw95s88gsy.js +0 -1
- package/out/_next/static/chunks/02eui3ctddbd2.js +0 -1
- package/out/_next/static/chunks/04c4nksb5y9r-.js +0 -1
- package/out/_next/static/chunks/04g-l-_b4payc.js +0 -1
- package/out/_next/static/chunks/05bdni_jrobq1.js +0 -1
- package/out/_next/static/chunks/05o0tb8l_htmw.js +0 -1
- package/out/_next/static/chunks/07z6p262h5hgl.js +0 -1
- package/out/_next/static/chunks/08m_4cihfmik8.js +0 -1
- package/out/_next/static/chunks/08obqw64faj8j.js +0 -1
- package/out/_next/static/chunks/09ppu_k464q-n.js +0 -1
- package/out/_next/static/chunks/0bgcaf2x51kms.js +0 -1
- package/out/_next/static/chunks/0dg4wxz-6u5lo.js +0 -1
- package/out/_next/static/chunks/0erga_bzezbza.js +0 -1
- package/out/_next/static/chunks/0f0-i105odxqd.js +0 -1
- package/out/_next/static/chunks/0gyeqz9pagssf.js +0 -1
- package/out/_next/static/chunks/0i82k-t0fbn8f.js +0 -1
- package/out/_next/static/chunks/0kzw45f61wm3j.js +0 -1
- package/out/_next/static/chunks/0l8bfa2xewq69.js +0 -1
- package/out/_next/static/chunks/0qxd_8t3nca36.js +0 -1
- package/out/_next/static/chunks/0s1jghzw8jufz.js +0 -1
- package/out/_next/static/chunks/0ti58h622yo-_.js +0 -2
- package/out/_next/static/chunks/0u8yr4k1y6m2t.js +0 -1
- package/out/_next/static/chunks/0ubxyut5rr600.js +0 -1
- package/out/_next/static/chunks/0wbw9h7rsis2r.js +0 -1
- package/out/_next/static/chunks/0y4e49hpuucdi.js +0 -1
- package/out/_next/static/chunks/0yvevihll7sz-.js +0 -1
- package/out/_next/static/chunks/1-b44873bjsdw.js +0 -1
- package/out/_next/static/chunks/1-c3a1vnl8v1q.js +0 -1
- package/out/_next/static/chunks/1-xf86jgea22y.js +0 -1
- package/out/_next/static/chunks/10b0qqdnb_nox.js +0 -1
- package/out/_next/static/chunks/12kdmh0h_mboy.js +0 -1
- package/out/_next/static/chunks/141tngxsk32hq.js +0 -1
- package/out/_next/static/chunks/14ijcpo72av4r.js +0 -1
- package/out/_next/static/chunks/16hdip1drt8o-.js +0 -1
- package/out/_next/static/chunks/18txc1wwwu9f9.js +0 -1
- package/out/_next/static/chunks/19dp8nr4uygg2.js +0 -5
- package/out/_next/static/chunks/1_8acnu6_-qe-.js +0 -1
- package/out/_next/static/chunks/1bmyq1b0by7ug.js +0 -1
- package/out/_next/static/chunks/1d1tpj9nm1nhf.js +0 -1
- package/out/_next/static/chunks/1dfwa563iciz3.js +0 -1
- package/out/_next/static/chunks/1fwsjnd1y-lx_.js +0 -1
- package/out/_next/static/chunks/1gaexq_suxai0.js +0 -1
- package/out/_next/static/chunks/1gtj_l5ame5mw.js +0 -1
- package/out/_next/static/chunks/1i4f3n_2_3ery.js +0 -1
- package/out/_next/static/chunks/1j7e3qpjuj89a.js +0 -1
- package/out/_next/static/chunks/1qjsgebn9m-0l.js +0 -1
- package/out/_next/static/chunks/1rb8wewjbdisv.js +0 -1
- package/out/_next/static/chunks/1rr74xxjtckyv.js +0 -1
- package/out/_next/static/chunks/1uu55ejvi7q5u.js +0 -1
- package/out/_next/static/chunks/1xbzxfeq9789f.js +0 -1
- package/out/_next/static/chunks/1ybiu-rkt50_1.js +0 -1
- package/out/_next/static/chunks/20qelrstvz9_n.js +0 -1
- package/out/_next/static/chunks/21at65obnoo8z.js +0 -1
- package/out/_next/static/chunks/21ko5mxfderw0.js +0 -1
- package/out/_next/static/chunks/21muzwu43o8xg.js +0 -1
- package/out/_next/static/chunks/23d-hvrwpixpm.js +0 -1
- package/out/_next/static/chunks/2569rrrffvm2w.js +0 -31
- package/out/_next/static/chunks/29o74k0d6hkdf.js +0 -1
- package/out/_next/static/chunks/2btabnibkm0db.js +0 -1
- package/out/_next/static/chunks/2c--awgkdcikq.js +0 -1
- package/out/_next/static/chunks/2ep7mjbaoeou0.js +0 -1
- package/out/_next/static/chunks/2ezgqm7atphi6.js +0 -1
- package/out/_next/static/chunks/2gfjzq_vjea4w.js +0 -1
- package/out/_next/static/chunks/2h5hase6ewoyc.js +0 -1
- package/out/_next/static/chunks/2hghi41nhdww2.css +0 -3
- package/out/_next/static/chunks/2ies66gmou203.js +0 -1
- package/out/_next/static/chunks/2jenu2eek9viz.js +0 -1
- package/out/_next/static/chunks/2luaj_cf5f19-.js +0 -1
- package/out/_next/static/chunks/2mgmvz66gh5ub.js +0 -1
- package/out/_next/static/chunks/2nwlqtv3vrzcv.js +0 -1
- package/out/_next/static/chunks/2si5cg3hl5dtf.js +0 -4
- package/out/_next/static/chunks/2uhrhq35bki6u.js +0 -1
- package/out/_next/static/chunks/2zdzgmacaoor9.js +0 -1
- package/out/_next/static/chunks/2zyjw8g4tiu51.js +0 -1
- package/out/_next/static/chunks/3-irhmtm1q5qw.js +0 -1
- package/out/_next/static/chunks/3-k74vn9exnb6.js +0 -1
- package/out/_next/static/chunks/34845aqksy1dl.js +0 -3
- package/out/_next/static/chunks/34y7nx6qmat06.js +0 -1
- package/out/_next/static/chunks/36rqw8h6ildpl.js +0 -1
- package/out/_next/static/chunks/3a_khw6q6pyh1.js +0 -1
- package/out/_next/static/chunks/3c_31f20z4jrl.js +0 -1
- package/out/_next/static/chunks/3ckp70rgr63u9.js +0 -1
- package/out/_next/static/chunks/3ed24zmt8qfys.js +0 -1
- package/out/_next/static/chunks/3ez20hi1mxw0w.js +0 -1
- package/out/_next/static/chunks/3fdx-rnos5ft-.js +0 -1
- package/out/_next/static/chunks/3fgfbxxb-j_bn.js +0 -4
- package/out/_next/static/chunks/3lehc5pujwhsz.js +0 -1
- package/out/_next/static/chunks/3m0ytnc241yfz.js +0 -1
- package/out/_next/static/chunks/3mpe7c3iyxn5h.js +0 -1
- package/out/_next/static/chunks/3nw7u4bie0-g6.js +0 -1
- package/out/_next/static/chunks/3qatb38-tk_gd.js +0 -1
- package/out/_next/static/chunks/3rpm-1ryf073k.js +0 -1
- package/out/_next/static/chunks/3tdcdi_utmoy_.js +0 -1
- package/out/_next/static/chunks/3tt_ir_va6262.js +0 -1
- package/out/_next/static/chunks/43qmngblcab8f.js +0 -1
- /package/out/_next/static/{UgXxCZvX6DcLoCaAHvGbP → 5UjNvd7WCk97iC2cSmEGH}/_buildManifest.js +0 -0
- /package/out/_next/static/{UgXxCZvX6DcLoCaAHvGbP → 5UjNvd7WCk97iC2cSmEGH}/_clientMiddlewareManifest.js +0 -0
- /package/out/_next/static/{UgXxCZvX6DcLoCaAHvGbP → 5UjNvd7WCk97iC2cSmEGH}/_ssgManifest.js +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,57568,21550,11,58890,92928,67125,e=>{"use strict";var t=e.i(47150);let r="bonesDeclaration",i=`#if NUM_BONE_INFLUENCERS>0
|
|
2
2
|
#ifndef USE_VERTEX_PULLING
|
|
3
3
|
attribute matricesIndices : vec4f;attribute matricesWeights : vec4f;
|
|
4
4
|
#if NUM_BONE_INFLUENCERS>4
|
|
@@ -21,7 +21,7 @@ let textureWidth=i32(uniforms.boneTextureInfo.x);let y=offset/textureWidth;let x
|
|
|
21
21
|
#endif
|
|
22
22
|
#endif
|
|
23
23
|
#endif
|
|
24
|
-
`;t.ShaderStore.IncludesShadersStoreWGSL[r]||(t.ShaderStore.IncludesShadersStoreWGSL[r]=i),e.s(["bonesDeclarationWGSL",0,{name:r,shader:i}],
|
|
24
|
+
`;t.ShaderStore.IncludesShadersStoreWGSL[r]||(t.ShaderStore.IncludesShadersStoreWGSL[r]=i),e.s(["bonesDeclarationWGSL",0,{name:r,shader:i}],57568);let n="bakedVertexAnimationDeclaration",a=`#ifdef BAKED_VERTEX_ANIMATION_TEXTURE
|
|
25
25
|
uniform bakedVertexAnimationTime: f32;uniform bakedVertexAnimationSettings: vec4<f32>;var bakedVertexAnimationTexture : texture_2d<f32>;
|
|
26
26
|
#ifdef INSTANCES
|
|
27
27
|
attribute bakedVertexAnimationSettingsInstanced : vec4<f32>;
|
|
@@ -29,25 +29,7 @@ attribute bakedVertexAnimationSettingsInstanced : vec4<f32>;
|
|
|
29
29
|
fn readMatrixFromRawSamplerVAT(smp : texture_2d<f32>,index : f32,frame : f32)->mat4x4<f32>
|
|
30
30
|
{let offset=i32(index)*4;let frameUV=i32(frame);let m0=textureLoad(smp,vec2<i32>(offset+0,frameUV),0);let m1=textureLoad(smp,vec2<i32>(offset+1,frameUV),0);let m2=textureLoad(smp,vec2<i32>(offset+2,frameUV),0);let m3=textureLoad(smp,vec2<i32>(offset+3,frameUV),0);return mat4x4<f32>(m0,m1,m2,m3);}
|
|
31
31
|
#endif
|
|
32
|
-
`;t.ShaderStore.IncludesShadersStoreWGSL[n]||(t.ShaderStore.IncludesShadersStoreWGSL[n]=a),e.s(["bakedVertexAnimationDeclarationWGSL",0,{name:n,shader:a}],
|
|
33
|
-
uniform vClipPlane: vec4<f32>;varying fClipDistance: f32;
|
|
34
|
-
#endif
|
|
35
|
-
#ifdef CLIPPLANE2
|
|
36
|
-
uniform vClipPlane2: vec4<f32>;varying fClipDistance2: f32;
|
|
37
|
-
#endif
|
|
38
|
-
#ifdef CLIPPLANE3
|
|
39
|
-
uniform vClipPlane3: vec4<f32>;varying fClipDistance3: f32;
|
|
40
|
-
#endif
|
|
41
|
-
#ifdef CLIPPLANE4
|
|
42
|
-
uniform vClipPlane4: vec4<f32>;varying fClipDistance4: f32;
|
|
43
|
-
#endif
|
|
44
|
-
#ifdef CLIPPLANE5
|
|
45
|
-
uniform vClipPlane5: vec4<f32>;varying fClipDistance5: f32;
|
|
46
|
-
#endif
|
|
47
|
-
#ifdef CLIPPLANE6
|
|
48
|
-
uniform vClipPlane6: vec4<f32>;varying fClipDistance6: f32;
|
|
49
|
-
#endif
|
|
50
|
-
`;t.ShaderStore.IncludesShadersStoreWGSL[r]||(t.ShaderStore.IncludesShadersStoreWGSL[r]=i),e.s(["clipPlaneVertexDeclarationWGSL",0,{name:r,shader:i}])},63547,e=>{"use strict";var t=e.i(37875);let r="instancesDeclaration",i=`#ifdef INSTANCES
|
|
32
|
+
`;t.ShaderStore.IncludesShadersStoreWGSL[n]||(t.ShaderStore.IncludesShadersStoreWGSL[n]=a),e.s(["bakedVertexAnimationDeclarationWGSL",0,{name:n,shader:a}],21550);let f="instancesDeclaration",d=`#ifdef INSTANCES
|
|
51
33
|
attribute world0 : vec4<f32>;attribute world1 : vec4<f32>;attribute world2 : vec4<f32>;attribute world3 : vec4<f32>;
|
|
52
34
|
#ifdef INSTANCESCOLOR
|
|
53
35
|
attribute instanceColor : vec4<f32>;
|
|
@@ -69,7 +51,7 @@ uniform world : mat4x4<f32>;
|
|
|
69
51
|
uniform previousWorld : mat4x4<f32>;
|
|
70
52
|
#endif
|
|
71
53
|
#endif
|
|
72
|
-
`;t.ShaderStore.IncludesShadersStoreWGSL[
|
|
54
|
+
`;t.ShaderStore.IncludesShadersStoreWGSL[f]||(t.ShaderStore.IncludesShadersStoreWGSL[f]=d),e.s(["instancesDeclarationWGSL",0,{name:f,shader:d}],11);let s="instancesVertex",o=`#ifdef INSTANCES
|
|
73
55
|
var finalWorld=mat4x4<f32>(vertexInputs.world0,vertexInputs.world1,vertexInputs.world2,vertexInputs.world3);
|
|
74
56
|
#if defined(PREPASS_VELOCITY) || defined(VELOCITY) || defined(PREPASS_VELOCITY_LINEAR) || defined(VELOCITY_LINEAR)
|
|
75
57
|
var finalPreviousWorld=mat4x4<f32>(
|
|
@@ -96,7 +78,7 @@ var finalWorld=mesh.world;
|
|
|
96
78
|
var finalPreviousWorld=uniforms.previousWorld;
|
|
97
79
|
#endif
|
|
98
80
|
#endif
|
|
99
|
-
`;t.ShaderStore.IncludesShadersStoreWGSL[
|
|
81
|
+
`;t.ShaderStore.IncludesShadersStoreWGSL[s]||(t.ShaderStore.IncludesShadersStoreWGSL[s]=o),e.s(["instancesVertexWGSL",0,{name:s,shader:o}],58890);let l="bonesVertex",u=`#ifndef BAKED_VERTEX_ANIMATION_TEXTURE
|
|
100
82
|
#if NUM_BONE_INFLUENCERS>0
|
|
101
83
|
var influence : mat4x4<f32>;
|
|
102
84
|
#ifdef BONETEXTURE
|
|
@@ -149,7 +131,7 @@ influence=influence+uniforms.mBones[i32(vertexInputs.matricesIndicesExtra[3])]*v
|
|
|
149
131
|
finalWorld=finalWorld*influence;
|
|
150
132
|
#endif
|
|
151
133
|
#endif
|
|
152
|
-
`;t.ShaderStore.IncludesShadersStoreWGSL[
|
|
134
|
+
`;t.ShaderStore.IncludesShadersStoreWGSL[l]||(t.ShaderStore.IncludesShadersStoreWGSL[l]=u),e.s(["bonesVertexWGSL",0,{name:l,shader:u}],92928);let m="bakedVertexAnimation",c=`#ifdef BAKED_VERTEX_ANIMATION_TEXTURE
|
|
153
135
|
{
|
|
154
136
|
#ifdef INSTANCES
|
|
155
137
|
let VATStartFrame: f32=vertexInputs.bakedVertexAnimationSettingsInstanced.x;let VATEndFrame: f32=vertexInputs.bakedVertexAnimationSettingsInstanced.y;let VATOffsetFrame: f32=vertexInputs.bakedVertexAnimationSettingsInstanced.z;let VATSpeed: f32=vertexInputs.bakedVertexAnimationSettingsInstanced.w;
|
|
@@ -180,7 +162,25 @@ VATInfluence=VATInfluence+readMatrixFromRawSamplerVAT(bakedVertexAnimationTextur
|
|
|
180
162
|
#endif
|
|
181
163
|
finalWorld=finalWorld*VATInfluence;}
|
|
182
164
|
#endif
|
|
183
|
-
`;t.ShaderStore.IncludesShadersStoreWGSL[
|
|
165
|
+
`;t.ShaderStore.IncludesShadersStoreWGSL[m]||(t.ShaderStore.IncludesShadersStoreWGSL[m]=c),e.s(["bakedVertexAnimationWGSL",0,{name:m,shader:c}],67125)},63593,4534,e=>{"use strict";var t=e.i(47150);let r="clipPlaneVertexDeclaration",i=`#ifdef CLIPPLANE
|
|
166
|
+
uniform vClipPlane: vec4<f32>;varying fClipDistance: f32;
|
|
167
|
+
#endif
|
|
168
|
+
#ifdef CLIPPLANE2
|
|
169
|
+
uniform vClipPlane2: vec4<f32>;varying fClipDistance2: f32;
|
|
170
|
+
#endif
|
|
171
|
+
#ifdef CLIPPLANE3
|
|
172
|
+
uniform vClipPlane3: vec4<f32>;varying fClipDistance3: f32;
|
|
173
|
+
#endif
|
|
174
|
+
#ifdef CLIPPLANE4
|
|
175
|
+
uniform vClipPlane4: vec4<f32>;varying fClipDistance4: f32;
|
|
176
|
+
#endif
|
|
177
|
+
#ifdef CLIPPLANE5
|
|
178
|
+
uniform vClipPlane5: vec4<f32>;varying fClipDistance5: f32;
|
|
179
|
+
#endif
|
|
180
|
+
#ifdef CLIPPLANE6
|
|
181
|
+
uniform vClipPlane6: vec4<f32>;varying fClipDistance6: f32;
|
|
182
|
+
#endif
|
|
183
|
+
`;t.ShaderStore.IncludesShadersStoreWGSL[r]||(t.ShaderStore.IncludesShadersStoreWGSL[r]=i),e.s(["clipPlaneVertexDeclarationWGSL",0,{name:r,shader:i}],63593);let n="clipPlaneVertex",a=`#ifdef CLIPPLANE
|
|
184
184
|
vertexOutputs.fClipDistance=dot(worldPos,uniforms.vClipPlane);
|
|
185
185
|
#endif
|
|
186
186
|
#ifdef CLIPPLANE2
|
|
@@ -198,17 +198,17 @@ vertexOutputs.fClipDistance5=dot(worldPos,uniforms.vClipPlane5);
|
|
|
198
198
|
#ifdef CLIPPLANE6
|
|
199
199
|
vertexOutputs.fClipDistance6=dot(worldPos,uniforms.vClipPlane6);
|
|
200
200
|
#endif
|
|
201
|
-
`;t.ShaderStore.IncludesShadersStoreWGSL[
|
|
201
|
+
`;t.ShaderStore.IncludesShadersStoreWGSL[n]||(t.ShaderStore.IncludesShadersStoreWGSL[n]=a),e.s(["clipPlaneVertexWGSL",0,{name:n,shader:a}],4534)},53318,80849,e=>{"use strict";var t=e.i(47150);let r="fogVertexDeclaration",i=`#ifdef FOG
|
|
202
202
|
varying vFogDistance: vec3f;
|
|
203
203
|
#endif
|
|
204
|
-
`;t.ShaderStore.IncludesShadersStoreWGSL[r]||(t.ShaderStore.IncludesShadersStoreWGSL[r]=i),e.s(["fogVertexDeclarationWGSL",0,{name:r,shader:i}],
|
|
204
|
+
`;t.ShaderStore.IncludesShadersStoreWGSL[r]||(t.ShaderStore.IncludesShadersStoreWGSL[r]=i),e.s(["fogVertexDeclarationWGSL",0,{name:r,shader:i}],53318);let n="fogVertex",a=`#ifdef FOG
|
|
205
205
|
#ifdef SCENE_UBO
|
|
206
206
|
vertexOutputs.vFogDistance=(scene.view*worldPos).xyz;
|
|
207
207
|
#else
|
|
208
208
|
vertexOutputs.vFogDistance=(uniforms.view*worldPos).xyz;
|
|
209
209
|
#endif
|
|
210
210
|
#endif
|
|
211
|
-
`;t.ShaderStore.IncludesShadersStoreWGSL[n]||(t.ShaderStore.IncludesShadersStoreWGSL[n]=a),e.s(["fogVertexWGSL",0,{name:n,shader:a}],
|
|
211
|
+
`;t.ShaderStore.IncludesShadersStoreWGSL[n]||(t.ShaderStore.IncludesShadersStoreWGSL[n]=a),e.s(["fogVertexWGSL",0,{name:n,shader:a}],80849)},4825,e=>{"use strict";var t=e.i(47150);let r="vertexColorMixing",i=`#if defined(VERTEXCOLOR) || defined(INSTANCESCOLOR) && defined(INSTANCES)
|
|
212
212
|
vertexOutputs.vColor=vec4f(1.0);
|
|
213
213
|
#ifdef VERTEXCOLOR
|
|
214
214
|
#ifdef VERTEXALPHA
|
|
@@ -221,7 +221,7 @@ vertexOutputs.vColor=vec4f(vertexOutputs.vColor.rgb*colorUpdated.rgb,vertexOutpu
|
|
|
221
221
|
vertexOutputs.vColor*=vertexInputs.instanceColor;
|
|
222
222
|
#endif
|
|
223
223
|
#endif
|
|
224
|
-
`;t.ShaderStore.IncludesShadersStoreWGSL[
|
|
224
|
+
`;t.ShaderStore.IncludesShadersStoreWGSL[r]||(t.ShaderStore.IncludesShadersStoreWGSL[r]=i),e.s(["vertexColorMixingWGSL",0,{name:r,shader:i}])},72867,e=>{"use strict";var t=e.i(47150),r=e.i(57568),i=e.i(21550),n=e.i(63593),a=e.i(53318),f=e.i(11),d=e.i(58890),s=e.i(92928),o=e.i(67125),l=e.i(4534),u=e.i(80849),m=e.i(4825);let c="colorVertexShader",S=`attribute position: vec3f;
|
|
225
225
|
#ifdef VERTEXCOLOR
|
|
226
226
|
attribute color: vec4f;
|
|
227
227
|
#endif
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,78640,e=>{"use strict";var n=e.i(78992),t=e.i(75105),s=e.i(44520);class o extends n.FlowGraphEventBlock{constructor(e){super(e),this.sound=this.registerDataInput("sound",t.RichTypeAny)}_preparePendingTasks(e){let n=this.sound.getValue(e);if(!n)return void this._reportError(e,"No sound provided for sound-ended event");let t=n.onEndedObservable.add(()=>{this._execute(e)});e._setExecutionVariable(this,"_soundEndedObserver",t),e._setExecutionVariable(this,"_subscribedSound",n)}_executeEvent(e,n){return!0}_cancelPendingTasks(e){let n=e._getExecutionVariable(this,"_soundEndedObserver",null),t=e._getExecutionVariable(this,"_subscribedSound",null);n&&t&&t.onEndedObservable.remove(n),e._setExecutionVariable(this,"_soundEndedObserver",null),e._setExecutionVariable(this,"_subscribedSound",null)}getClassName(){return"FlowGraphSoundEndedEventBlock"}}let d=!1;function r(){d||(d=!0,(0,s.RegisterClass)("FlowGraphSoundEndedEventBlock",o))}e.s(["FlowGraphSoundEndedEventBlock",0,o,"RegisterFlowGraphSoundEndedEventBlock",0,r],74189),r(),e.s([],20163),e.i(20163),e.i(74189),e.s(["FlowGraphSoundEndedEventBlock",0,o],78640)}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,47150,t=>{"use strict";class e{static GetShadersRepository(t=0){return 0===t?e.ShadersRepository:e.ShadersRepositoryWGSL}static GetShadersStore(t=0){return 0===t?e.ShadersStore:e.ShadersStoreWGSL}static GetIncludesShadersStore(t=0){return 0===t?e.IncludesShadersStore:e.IncludesShadersStoreWGSL}}e.ShadersRepository="src/Shaders/",e.ShadersStore={},e.IncludesShadersStore={},e.ShadersRepositoryWGSL="src/ShadersWGSL/",e.ShadersStoreWGSL={},e.IncludesShadersStoreWGSL={},t.s(["ShaderStore",0,e])},57660,t=>{"use strict";var e=t.i(96042);class i{static GetPlanes(t){let n=[];for(let t=0;t<6;t++)n.push(new e.Plane(0,0,0,0));return i.GetPlanesToRef(t,n),n}static GetNearPlaneToRef(t,e){let i=t.m;e.normal.x=i[3]+i[2],e.normal.y=i[7]+i[6],e.normal.z=i[11]+i[10],e.d=i[15]+i[14],e.normalize()}static GetFarPlaneToRef(t,e){let i=t.m;e.normal.x=i[3]-i[2],e.normal.y=i[7]-i[6],e.normal.z=i[11]-i[10],e.d=i[15]-i[14],e.normalize()}static GetLeftPlaneToRef(t,e){let i=t.m;e.normal.x=i[3]+i[0],e.normal.y=i[7]+i[4],e.normal.z=i[11]+i[8],e.d=i[15]+i[12],e.normalize()}static GetRightPlaneToRef(t,e){let i=t.m;e.normal.x=i[3]-i[0],e.normal.y=i[7]-i[4],e.normal.z=i[11]-i[8],e.d=i[15]-i[12],e.normalize()}static GetTopPlaneToRef(t,e){let i=t.m;e.normal.x=i[3]-i[1],e.normal.y=i[7]-i[5],e.normal.z=i[11]-i[9],e.d=i[15]-i[13],e.normalize()}static GetBottomPlaneToRef(t,e){let i=t.m;e.normal.x=i[3]+i[1],e.normal.y=i[7]+i[5],e.normal.z=i[11]+i[9],e.d=i[15]+i[13],e.normalize()}static GetPlanesToRef(t,e){i.GetNearPlaneToRef(t,e[0]),i.GetFarPlaneToRef(t,e[1]),i.GetLeftPlaneToRef(t,e[2]),i.GetRightPlaneToRef(t,e[3]),i.GetTopPlaneToRef(t,e[4]),i.GetBottomPlaneToRef(t,e[5])}static IsPointInFrustum(t,e){for(let i=0;i<6;i++)if(0>e[i].dotCoordinate(t))return!1;return!0}}t.s(["Frustum",0,i])},92247,t=>{"use strict";var e=t.i(69400),i=t.i(41041);t.s(["PickingInfo",0,class{constructor(){this.hit=!1,this.distance=0,this.pickedPoint=null,this.pickedMesh=null,this.bu=0,this.bv=0,this.faceId=-1,this.subMeshFaceId=-1,this.subMeshId=0,this.pickedSprite=null,this.thinInstanceIndex=-1,this.ray=null,this.originMesh=null,this.aimTransform=null,this.gripTransform=null}getNormal(t=!1,n=!0){let a;if(!this.pickedMesh||n&&!this.pickedMesh.isVerticesDataPresent(i.VertexBuffer.NormalKind))return null;let r=this.pickedMesh.getIndices();r?.length===0&&(r=null);let s=e.TmpVectors.Vector3[0],o=e.TmpVectors.Vector3[1],h=e.TmpVectors.Vector3[2];if(n){let t=this.pickedMesh.getVerticesData(i.VertexBuffer.NormalKind),n=r?e.Vector3.FromArrayToRef(t,3*r[3*this.faceId],s):s.copyFromFloats(t[3*this.faceId*3],t[3*this.faceId*3+1],t[3*this.faceId*3+2]),l=r?e.Vector3.FromArrayToRef(t,3*r[3*this.faceId+1],o):o.copyFromFloats(t[(3*this.faceId+1)*3],t[(3*this.faceId+1)*3+1],t[(3*this.faceId+1)*3+2]),c=r?e.Vector3.FromArrayToRef(t,3*r[3*this.faceId+2],h):h.copyFromFloats(t[(3*this.faceId+2)*3],t[(3*this.faceId+2)*3+1],t[(3*this.faceId+2)*3+2]);n=n.scale(this.bu),l=l.scale(this.bv),c=c.scale(1-this.bu-this.bv),a=new e.Vector3(n.x+l.x+c.x,n.y+l.y+c.y,n.z+l.z+c.z)}else{let t=this.pickedMesh.getVerticesData(i.VertexBuffer.PositionKind),n=r?e.Vector3.FromArrayToRef(t,3*r[3*this.faceId],s):s.copyFromFloats(t[3*this.faceId*3],t[3*this.faceId*3+1],t[3*this.faceId*3+2]),l=r?e.Vector3.FromArrayToRef(t,3*r[3*this.faceId+1],o):o.copyFromFloats(t[(3*this.faceId+1)*3],t[(3*this.faceId+1)*3+1],t[(3*this.faceId+1)*3+2]),c=r?e.Vector3.FromArrayToRef(t,3*r[3*this.faceId+2],h):h.copyFromFloats(t[(3*this.faceId+2)*3],t[(3*this.faceId+2)*3+1],t[(3*this.faceId+2)*3+2]),u=n.subtract(l),d=c.subtract(l);a=e.Vector3.Cross(u,d)}let l=(t,i)=>{if(-1!==this.thinInstanceIndex){let n=t._thinInstanceDataStorage.matrixData,a=this.thinInstanceIndex<<4;if(n&&n.length>a){let t=e.TmpVectors.Matrix[0];e.Matrix.FromArrayToRef(n,a,t),e.Vector3.TransformNormalToRef(i,t,i)}}let n=t.getWorldMatrix();t.nonUniformScaling&&(e.TmpVectors.Matrix[0].copyFrom(n),(n=e.TmpVectors.Matrix[0]).setTranslationFromFloats(0,0,0),n.invert(),n.transposeToRef(e.TmpVectors.Matrix[1]),n=e.TmpVectors.Matrix[1]),e.Vector3.TransformNormalToRef(i,n,i)};if(t&&l(this.pickedMesh,a),this.ray){let i=e.TmpVectors.Vector3[0].copyFrom(a);t||l(this.pickedMesh,i),e.Vector3.Dot(i,this.ray.direction)>0&&a.negateInPlace()}return a.normalize(),a}getTextureCoordinates(t=i.VertexBuffer.UVKind){if(!this.pickedMesh||!this.pickedMesh.isVerticesDataPresent(t))return null;let n=this.pickedMesh.getIndices();if(!n)return null;let a=this.pickedMesh.getVerticesData(t);if(!a)return null;let r=e.Vector2.FromArray(a,2*n[3*this.faceId]),s=e.Vector2.FromArray(a,2*n[3*this.faceId+1]),o=e.Vector2.FromArray(a,2*n[3*this.faceId+2]);return r=r.scale(this.bu),s=s.scale(this.bv),o=o.scale(1-this.bu-this.bv),new e.Vector2(r.x+s.x+o.x,r.y+s.y+o.y)}}])},84964,t=>{"use strict";var e=t.i(69400);class i{}i.POINTERDOWN=1,i.POINTERUP=2,i.POINTERMOVE=4,i.POINTERWHEEL=8,i.POINTERPICK=16,i.POINTERTAP=32,i.POINTERDOUBLETAP=64;class n{constructor(t,e){this.type=t,this.event=e}}t.s(["PointerEventTypes",0,i,"PointerInfo",0,class extends n{get pickInfo(){return this._pickInfo||this._generatePickInfo(),this._pickInfo}constructor(t,e,i,n=null){super(t,e),this._pickInfo=i,this._inputManager=n}_generatePickInfo(){this._inputManager&&(this._pickInfo=this._inputManager._pickMove(this.event),this._inputManager._setRayOnPointerInfo(this._pickInfo,this.event),this._inputManager=null)}},"PointerInfoPre",0,class extends n{constructor(t,i,n,a){super(t,i),this.ray=null,this.originalPickingInfo=null,this.skipOnPointerObservable=!1,this.localPosition=new e.Vector2(n,a)}}])},71092,t=>{"use strict";class e{}e.KEYDOWN=1,e.KEYUP=2;class i{constructor(t,e){this.type=t,this.event=e}}t.s(["KeyboardEventTypes",0,e,"KeyboardInfo",0,i,"KeyboardInfoPre",0,class extends i{get skipOnPointerObservable(){return this.skipOnKeyboardObservable}set skipOnPointerObservable(t){this.skipOnKeyboardObservable=t}constructor(t,e){super(t,e),this.type=t,this.event=e,this.skipOnKeyboardObservable=!1}}])},4021,t=>{"use strict";var e,i;(i=e||(e={}))[i.PointerMove=0]="PointerMove",i[i.PointerDown=1]="PointerDown",i[i.PointerUp=2]="PointerUp";class n{}n.DOM_DELTA_PIXEL=0,n.DOM_DELTA_LINE=1,n.DOM_DELTA_PAGE=2,t.s(["EventConstants",0,n])},75441,t=>{"use strict";class e{constructor(t,e){this.width=t,this.height=e}toString(){return`{W: ${this.width}, H: ${this.height}}`}getClassName(){return"Size"}getHashCode(){let t=0|this.width;return 397*t^this.height}copyFrom(t){this.width=t.width,this.height=t.height}copyFromFloats(t,e){return this.width=t,this.height=e,this}set(t,e){return this.copyFromFloats(t,e)}multiplyByFloats(t,i){return new e(this.width*t,this.height*i)}clone(){return new e(this.width,this.height)}equals(t){return!!t&&this.width===t.width&&this.height===t.height}get surface(){return this.width*this.height}static Zero(){return new e(0,0)}add(t){return new e(this.width+t.width,this.height+t.height)}subtract(t){return new e(this.width-t.width,this.height-t.height)}scale(t){return new e(this.width*t,this.height*t)}static Lerp(t,i,n){return new e(t.width+(i.width-t.width)*n,t.height+(i.height-t.height)*n)}}t.s(["Size",0,e])},372,t=>{"use strict";t.s(["useOpenGLOrientationForUV",()=>!1])},8265,95663,t=>{"use strict";var e=t.i(69400),i=t.i(19919),n=t.i(63235);class a{constructor(t,e,i){this.name=t,this.from=e,this.to=i}clone(){return new a(this.name,this.from,this.to)}}t.s(["AnimationRange",0,a],95663);var r=t.i(52624),s=t.i(75441),o=t.i(98207),h=t.i(2060),l=t.i(44520);let c=Object.freeze(new e.Quaternion(0,0,0,0)),u=Object.freeze(e.Vector3.Zero()),d=Object.freeze(e.Vector2.Zero()),_=Object.freeze(s.Size.Zero()),p=Object.freeze(i.Color3.Black()),m=Object.freeze(new i.Color4(0,0,0,0)),g={key:0,repeatCount:0,loopMode:2};class f{static _PrepareAnimation(t,n,a,r,o,h,l,c){let u;if(!isNaN(parseFloat(o))&&isFinite(o)?u=f.ANIMATIONTYPE_FLOAT:o instanceof e.Quaternion?u=f.ANIMATIONTYPE_QUATERNION:o instanceof e.Vector3?u=f.ANIMATIONTYPE_VECTOR3:o instanceof e.Vector2?u=f.ANIMATIONTYPE_VECTOR2:o instanceof i.Color3?u=f.ANIMATIONTYPE_COLOR3:o instanceof i.Color4?u=f.ANIMATIONTYPE_COLOR4:o instanceof s.Size&&(u=f.ANIMATIONTYPE_SIZE),void 0==u)return null;let d=new f(t,n,a,u,l);return d.setKeys([{frame:0,value:o},{frame:r,value:h}]),void 0!==c&&d.setEasingFunction(c),d}get runtimeAnimations(){return this._runtimeAnimations}get hasRunningRuntimeAnimations(){for(let t of this._runtimeAnimations)if(!t.isStopped())return!0;return!1}constructor(t,e,i,n,a,r){this.name=t,this.targetProperty=e,this.framePerSecond=i,this.dataType=n,this.loopMode=a,this.enableBlending=r,this._easingFunction=null,this._runtimeAnimations=[],this._events=[],this.blendingSpeed=.01,this._ranges={},this._coreAnimation=null,this.targetPropertyPath=e.split("."),this.dataType=n,this.loopMode=void 0===a?f.ANIMATIONLOOPMODE_CYCLE:a,this.uniqueId=f._UniqueIdGenerator++}toString(t){let e="Name: "+this.name+", property: "+this.targetProperty;if(e+=", datatype: "+["Float","Vector3","Quaternion","Matrix","Color3","Vector2"][this.dataType],e+=", nKeys: "+(this._keys?this._keys.length:"none"),e+=", nRanges: "+(this._ranges?Object.keys(this._ranges).length:"none"),t){e+=", Ranges: {";let t=!0;for(let i in this._ranges)t||(e+=", "),t=!1,e+=i;e+="}"}return e}addEvent(t){this._events.push(t),this._events.sort((t,e)=>t.frame-e.frame)}removeEvents(t){for(let e=0;e<this._events.length;e++)this._events[e].frame===t&&(this._events.splice(e,1),e--)}getEvents(){return this._events}createRange(t,e,i){this._ranges[t]||(this._ranges[t]=new a(t,e,i))}deleteRange(t,e=!0){let i=this._ranges[t];if(i){if(e){let t=i.from,e=i.to;for(let i=this._keys.length-1;i>=0;i--)this._keys[i].frame>=t&&this._keys[i].frame<=e&&this._keys.splice(i,1)}this._ranges[t]=null}}getRange(t){return this._ranges[t]}getKeys(){return this._keys}getHighestFrame(){let t=0;for(let e=0,i=this._keys.length;e<i;e++)t<this._keys[e].frame&&(t=this._keys[e].frame);return t}getEasingFunction(){return this._easingFunction}setEasingFunction(t){this._easingFunction=t}floatInterpolateFunction(t,e,i){return(0,n.Lerp)(t,e,i)}floatInterpolateFunctionWithTangents(t,e,i,a,r){return(0,n.Hermite)(t,e,i,a,r)}quaternionInterpolateFunction(t,i,n){return e.Quaternion.Slerp(t,i,n)}quaternionInterpolateFunctionWithTangents(t,i,n,a,r){return e.Quaternion.Hermite(t,i,n,a,r).normalize()}vector3InterpolateFunction(t,i,n){return e.Vector3.Lerp(t,i,n)}vector3InterpolateFunctionWithTangents(t,i,n,a,r){return e.Vector3.Hermite(t,i,n,a,r)}vector2InterpolateFunction(t,i,n){return e.Vector2.Lerp(t,i,n)}vector2InterpolateFunctionWithTangents(t,i,n,a,r){return e.Vector2.Hermite(t,i,n,a,r)}sizeInterpolateFunction(t,e,i){return s.Size.Lerp(t,e,i)}color3InterpolateFunction(t,e,n){return i.Color3.Lerp(t,e,n)}color3InterpolateFunctionWithTangents(t,e,n,a,r){return i.Color3.Hermite(t,e,n,a,r)}color4InterpolateFunction(t,e,n){return i.Color4.Lerp(t,e,n)}color4InterpolateFunctionWithTangents(t,e,n,a,r){return i.Color4.Hermite(t,e,n,a,r)}_getKeyValue(t){return"function"==typeof t?t():t}evaluate(t){return g.key=0,this._interpolate(t,g)}_interpolate(t,e,i=!1){let n;if(e.loopMode===f.ANIMATIONLOOPMODE_CONSTANT&&e.repeatCount>0)return e.highLimitValue.clone?e.highLimitValue.clone():e.highLimitValue;let a=this._keys;if(this._coreAnimation)n=this._coreAnimation._key;else{let r=a.length;for(n=e.key;n>=0&&t<a[n].frame;)--n;for(;n+1<=r-1&&t>=a[n+1].frame;)++n;if(e.key=n,n<0)return i?void 0:this._getKeyValue(a[0].value);if(n+1>r-1)return i?void 0:this._getKeyValue(a[r-1].value);this._key=n}let r=a[n],s=a[n+1];if(i&&(t===r.frame||t===s.frame))return;let o=this._getKeyValue(r.value),h=this._getKeyValue(s.value);if(1===r.interpolation)if(s.frame>t)return o;else return h;let l=void 0!==r.outTangent&&void 0!==s.inTangent,g=s.frame-r.frame,I=(t-r.frame)/g,A=r.easingFunction||this.getEasingFunction();switch(A&&(I=A.ease(I)),this.dataType){case f.ANIMATIONTYPE_FLOAT:{let t=l?this.floatInterpolateFunctionWithTangents(o,r.outTangent*g,h,s.inTangent*g,I):this.floatInterpolateFunction(o,h,I);switch(e.loopMode){case f.ANIMATIONLOOPMODE_CYCLE:case f.ANIMATIONLOOPMODE_CONSTANT:case f.ANIMATIONLOOPMODE_YOYO:return t;case f.ANIMATIONLOOPMODE_RELATIVE:case f.ANIMATIONLOOPMODE_RELATIVE_FROM_CURRENT:return(e.offsetValue??0)*e.repeatCount+t}break}case f.ANIMATIONTYPE_QUATERNION:{let t=l?this.quaternionInterpolateFunctionWithTangents(o,r.outTangent.scale(g),h,s.inTangent.scale(g),I):this.quaternionInterpolateFunction(o,h,I);switch(e.loopMode){case f.ANIMATIONLOOPMODE_CYCLE:case f.ANIMATIONLOOPMODE_CONSTANT:case f.ANIMATIONLOOPMODE_YOYO:break;case f.ANIMATIONLOOPMODE_RELATIVE:case f.ANIMATIONLOOPMODE_RELATIVE_FROM_CURRENT:return t.addInPlace((e.offsetValue||c).scale(e.repeatCount))}return t}case f.ANIMATIONTYPE_VECTOR3:{let t=l?this.vector3InterpolateFunctionWithTangents(o,r.outTangent.scale(g),h,s.inTangent.scale(g),I):this.vector3InterpolateFunction(o,h,I);switch(e.loopMode){case f.ANIMATIONLOOPMODE_CYCLE:case f.ANIMATIONLOOPMODE_CONSTANT:case f.ANIMATIONLOOPMODE_YOYO:return t;case f.ANIMATIONLOOPMODE_RELATIVE:case f.ANIMATIONLOOPMODE_RELATIVE_FROM_CURRENT:return t.add((e.offsetValue||u).scale(e.repeatCount))}break}case f.ANIMATIONTYPE_VECTOR2:{let t=l?this.vector2InterpolateFunctionWithTangents(o,r.outTangent.scale(g),h,s.inTangent.scale(g),I):this.vector2InterpolateFunction(o,h,I);switch(e.loopMode){case f.ANIMATIONLOOPMODE_CYCLE:case f.ANIMATIONLOOPMODE_CONSTANT:case f.ANIMATIONLOOPMODE_YOYO:return t;case f.ANIMATIONLOOPMODE_RELATIVE:case f.ANIMATIONLOOPMODE_RELATIVE_FROM_CURRENT:return t.add((e.offsetValue||d).scale(e.repeatCount))}break}case f.ANIMATIONTYPE_SIZE:switch(e.loopMode){case f.ANIMATIONLOOPMODE_CYCLE:case f.ANIMATIONLOOPMODE_CONSTANT:case f.ANIMATIONLOOPMODE_YOYO:return this.sizeInterpolateFunction(o,h,I);case f.ANIMATIONLOOPMODE_RELATIVE:case f.ANIMATIONLOOPMODE_RELATIVE_FROM_CURRENT:return this.sizeInterpolateFunction(o,h,I).add((e.offsetValue||_).scale(e.repeatCount))}break;case f.ANIMATIONTYPE_COLOR3:{let t=l?this.color3InterpolateFunctionWithTangents(o,r.outTangent.scale(g),h,s.inTangent.scale(g),I):this.color3InterpolateFunction(o,h,I);switch(e.loopMode){case f.ANIMATIONLOOPMODE_CYCLE:case f.ANIMATIONLOOPMODE_CONSTANT:case f.ANIMATIONLOOPMODE_YOYO:return t;case f.ANIMATIONLOOPMODE_RELATIVE:case f.ANIMATIONLOOPMODE_RELATIVE_FROM_CURRENT:return t.add((e.offsetValue||p).scale(e.repeatCount))}break}case f.ANIMATIONTYPE_COLOR4:{let t=l?this.color4InterpolateFunctionWithTangents(o,r.outTangent.scale(g),h,s.inTangent.scale(g),I):this.color4InterpolateFunction(o,h,I);switch(e.loopMode){case f.ANIMATIONLOOPMODE_CYCLE:case f.ANIMATIONLOOPMODE_CONSTANT:case f.ANIMATIONLOOPMODE_YOYO:return t;case f.ANIMATIONLOOPMODE_RELATIVE:case f.ANIMATIONLOOPMODE_RELATIVE_FROM_CURRENT:return t.add((e.offsetValue||m).scale(e.repeatCount))}break}case f.ANIMATIONTYPE_MATRIX:switch(e.loopMode){case f.ANIMATIONLOOPMODE_CYCLE:case f.ANIMATIONLOOPMODE_CONSTANT:case f.ANIMATIONLOOPMODE_YOYO:if(f.AllowMatricesInterpolation)return this.matrixInterpolateFunction(o,h,I,e.workValue);return o;case f.ANIMATIONLOOPMODE_RELATIVE:case f.ANIMATIONLOOPMODE_RELATIVE_FROM_CURRENT:return o}}return 0}matrixInterpolateFunction(t,i,n,a){return f.AllowMatrixDecomposeForInterpolation?a?(e.Matrix.DecomposeLerpToRef(t,i,n,a),a):e.Matrix.DecomposeLerp(t,i,n):a?(e.Matrix.LerpToRef(t,i,n,a),a):e.Matrix.Lerp(t,i,n)}clone(t=!1){let e=new f(this.name,this.targetPropertyPath.join("."),this.framePerSecond,this.dataType,this.loopMode);if(e.enableBlending=this.enableBlending,e.blendingSpeed=this.blendingSpeed,this._keys&&e.setKeys(this._keys,!1,t),this._ranges)for(let t in e._ranges={},this._ranges){let i=this._ranges[t];i&&(e._ranges[t]=i.clone())}return e}setKeys(t,e=!1,i=!1){if(e)this._keys=t;else if(this._keys=t.slice(0),i)for(let t=0;t<this._keys.length;t++){let e=this._keys[t];this._keys[t]={frame:e.frame,value:e.value.clone?e.value.clone():e.value,inTangent:e.inTangent&&e.inTangent.clone?e.inTangent.clone():e.inTangent,outTangent:e.outTangent&&e.outTangent.clone?e.outTangent.clone():e.outTangent,interpolation:e.interpolation,lockedTangent:e.lockedTangent,easingFunction:e.easingFunction}}}createKeyForFrame(t){g.key=0;let e=this._interpolate(t,g,!0);if(!e)return this._keys[g.key].frame===t?g.key:g.key+1;let i={frame:t,value:e.clone?e.clone():e};return this._keys.splice(g.key+1,0,i),g.key+1}serialize(){let t={};t.name=this.name,t.property=this.targetProperty,t.framePerSecond=this.framePerSecond,t.dataType=this.dataType,t.loopBehavior=this.loopMode,t.enableBlending=this.enableBlending,t.blendingSpeed=this.blendingSpeed;let e=this.dataType;t.keys=[];let i=this.getKeys();for(let n=0;n<i.length;n++){let a=i[n],r={};switch(r.frame=a.frame,e){case f.ANIMATIONTYPE_FLOAT:r.values=[a.value],void 0!==a.inTangent&&r.values.push(a.inTangent),void 0!==a.outTangent&&(void 0===a.inTangent&&r.values.push(void 0),r.values.push(a.outTangent)),void 0!==a.interpolation&&(void 0===a.inTangent&&r.values.push(void 0),void 0===a.outTangent&&r.values.push(void 0),r.values.push(a.interpolation));break;case f.ANIMATIONTYPE_QUATERNION:case f.ANIMATIONTYPE_MATRIX:case f.ANIMATIONTYPE_VECTOR3:case f.ANIMATIONTYPE_COLOR3:case f.ANIMATIONTYPE_COLOR4:r.values=a.value.asArray(),void 0!=a.inTangent&&r.values.push(a.inTangent.asArray()),void 0!=a.outTangent&&(void 0===a.inTangent&&r.values.push(void 0),r.values.push(a.outTangent.asArray())),void 0!==a.interpolation&&(void 0===a.inTangent&&r.values.push(void 0),void 0===a.outTangent&&r.values.push(void 0),r.values.push(a.interpolation))}t.keys.push(r)}for(let e in t.ranges=[],this._ranges){let i=this._ranges[e];if(!i)continue;let n={};n.name=e,n.from=i.from,n.to=i.to,t.ranges.push(n)}return t}static _UniversalLerp(t,e,i){let n=t.constructor;return n.Lerp?n.Lerp(t,e,i):n.Slerp?n.Slerp(t,e,i):t.toFixed?t*(1-i)+i*e:e}}function I(t,i,n,a=!1,r){let s,o=t;(s="object"==typeof i?i:{referenceFrame:i??0,range:n,cloneOriginalAnimation:a,clonedAnimationName:r}).cloneOriginalAnimation&&((o=t.clone()).name=s.clonedAnimationName||o.name);let h=o.getKeys();if(!h.length)return o;let l=s.referenceFrame&&s.referenceFrame>=0?s.referenceFrame:0,c=0,u=h[0],d=h.length-1,_=h[d],p={referenceValue:u.value,referencePosition:e.TmpVectors.Vector3[0],referenceQuaternion:e.TmpVectors.Quaternion[0],referenceScaling:e.TmpVectors.Vector3[1],keyPosition:e.TmpVectors.Vector3[2],keyQuaternion:e.TmpVectors.Quaternion[1],keyScaling:e.TmpVectors.Vector3[3]},m=u.frame,A=_.frame;if(s.range){let t=o.getRange(s.range);t&&(m=t.from,A=t.to)}else m=s.fromFrame??m,A=s.toFrame??A;m!==u.frame&&(c=o.createKeyForFrame(m)),A!==_.frame&&(d=o.createKeyForFrame(A));let T=o.getKeys();if(1===T.length){let t=o._getKeyValue(T[0]);p.referenceValue=t.clone?t.clone():t}else if(l<=u.frame){let t=o._getKeyValue(u.value);p.referenceValue=t.clone?t.clone():t}else if(l>=_.frame){let t=o._getKeyValue(_.value);p.referenceValue=t.clone?t.clone():t}else{g.key=0;let t=o._interpolate(l,g);p.referenceValue=t.clone?t.clone():t}o.dataType===f.ANIMATIONTYPE_QUATERNION?p.referenceValue.normalize().conjugateInPlace():o.dataType===f.ANIMATIONTYPE_MATRIX&&(p.referenceValue.decompose(p.referenceScaling,p.referenceQuaternion,p.referencePosition),p.referenceQuaternion.normalize().conjugateInPlace());let O=Number.MAX_VALUE,M=s.clipKeys?[]:null;for(let t=c;t<=d;t++){let i=T[t];if((M||s.cloneOriginalAnimation)&&(i={frame:i.frame,value:i.value.clone?i.value.clone():i.value,inTangent:i.inTangent,outTangent:i.outTangent,interpolation:i.interpolation,lockedTangent:i.lockedTangent,easingFunction:i.easingFunction},M&&(O===Number.MAX_VALUE&&(O=i.frame),i.frame-=O,M.push(i))),!t||o.dataType===f.ANIMATIONTYPE_FLOAT||i.value!==u.value)switch(o.dataType){case f.ANIMATIONTYPE_MATRIX:i.value.decompose(p.keyScaling,p.keyQuaternion,p.keyPosition),p.keyPosition.subtractInPlace(p.referencePosition),p.keyScaling.divideInPlace(p.referenceScaling),p.referenceQuaternion.multiplyToRef(p.keyQuaternion,p.keyQuaternion),e.Matrix.ComposeToRef(p.keyScaling,p.keyQuaternion,p.keyPosition,i.value);break;case f.ANIMATIONTYPE_QUATERNION:p.referenceValue.multiplyToRef(i.value,i.value);break;case f.ANIMATIONTYPE_VECTOR2:case f.ANIMATIONTYPE_VECTOR3:case f.ANIMATIONTYPE_COLOR3:case f.ANIMATIONTYPE_COLOR4:i.value.subtractToRef(p.referenceValue,i.value);break;case f.ANIMATIONTYPE_SIZE:i.value.width-=p.referenceValue.width,i.value.height-=p.referenceValue.height;break;default:i.value-=p.referenceValue}}return M&&o.setKeys(M,!0),o}function A(t,e,i,n){let a=new f(t+"Animation",t,i,e,f.ANIMATIONLOOPMODE_CONSTANT);return a.setEasingFunction(n),a}function T(t,e,i,n,a,r,s,o,h,l,c){let u=f._PrepareAnimation(t,i,n,a,r,s,o,h);return u&&(e.getScene&&(c=e.getScene()),c)?c.beginDirectAnimation(e,[u],0,a,u.loopMode!==f.ANIMATIONLOOPMODE_CONSTANT,1,l):null}function O(t,e,i,n,a,r,s,o,h,l,c){let u=f._PrepareAnimation(t,n,a,r,s,o,h,l);return u?e.getScene().beginDirectHierarchyAnimation(e,i,[u],0,r,1===u.loopMode,1,c):null}function M(t,e,i,n,a,r,s,o,h,l){let c=f._PrepareAnimation(t,i,n,a,r,s,o,h);return c?(e.animations.push(c),e.getScene().beginAnimation(e,0,a,1===c.loopMode,1,l)):null}function y(t,e,i,n,a,r,s,o=null,h=!0,l){if(s<=0)return i[t]=e,o&&o(),null;let c=s/1e3*a;return r.setKeys(l??[{frame:0,value:i[t].clone?i[t].clone():i[t]},{frame:c,value:e}]),i.animations||(i.animations=[]),i.animations.push(r),n.beginAnimation(i,0,c,!1,1,o??void 0,void 0,h)}function v(t,e){h.SerializationHelper.AppendSerializedAnimations(t,e)}function E(t){let n,a,r=new f(t.name,t.property,t.framePerSecond,t.dataType,t.loopBehavior),s=t.dataType,o=[];for(t.enableBlending&&(r.enableBlending=t.enableBlending),t.blendingSpeed&&(r.blendingSpeed=t.blendingSpeed),a=0;a<t.keys.length;a++){let r,h,l,c=t.keys[a];switch(s){case f.ANIMATIONTYPE_FLOAT:n=c.values[0],c.values.length>=2&&(r=c.values[1]),c.values.length>=3&&(h=c.values[2]),c.values.length>=4&&(l=c.values[3]);break;case f.ANIMATIONTYPE_QUATERNION:if(n=e.Quaternion.FromArray(c.values),c.values.length>=8){let t=e.Quaternion.FromArray(c.values.slice(4,8));t.equals(e.Quaternion.Zero())||(r=t)}if(c.values.length>=12){let t=e.Quaternion.FromArray(c.values.slice(8,12));t.equals(e.Quaternion.Zero())||(h=t)}c.values.length>=13&&(l=c.values[12]);break;case f.ANIMATIONTYPE_MATRIX:n=e.Matrix.FromArray(c.values),c.values.length>=17&&(l=c.values[16]);break;case f.ANIMATIONTYPE_COLOR3:n=i.Color3.FromArray(c.values),c.values[3]&&(r=i.Color3.FromArray(c.values[3])),c.values[4]&&(h=i.Color3.FromArray(c.values[4])),c.values[5]&&(l=c.values[5]);break;case f.ANIMATIONTYPE_COLOR4:n=i.Color4.FromArray(c.values),c.values[4]&&(r=i.Color4.FromArray(c.values[4])),c.values[5]&&(h=i.Color4.FromArray(c.values[5])),c.values[6]&&(l=i.Color4.FromArray(c.values[6]));break;case f.ANIMATIONTYPE_VECTOR3:default:n=e.Vector3.FromArray(c.values),c.values[3]&&(r=e.Vector3.FromArray(c.values[3])),c.values[4]&&(h=e.Vector3.FromArray(c.values[4])),c.values[5]&&(l=c.values[5])}let u={};u.frame=c.frame,u.value=n,void 0!=r&&(u.inTangent=r),void 0!=h&&(u.outTangent=h),void 0!=l&&(u.interpolation=l),o.push(u)}if(r.setKeys(o),t.ranges)for(a=0;a<t.ranges.length;a++)n=t.ranges[a],r.createRange(n.name,n.from,n.to);return r}async function N(t,e){return await new Promise((i,n)=>{let a=new o.WebRequest;a.addEventListener("readystatechange",()=>{if(4==a.readyState)if(200==a.status){let e=JSON.parse(a.responseText);if(e.animations&&(e=e.animations),e.length){let t=[];for(let i of e)t.push(E(i));i(t)}else{let n=E(e);t&&(n.name=t),i(n)}}else n("Unable to load the animation")}),a.open("GET",e),a.send()})}async function P(t){let e=this?.SnippetUrl??f.SnippetUrl;return await new Promise((i,n)=>{let a=new o.WebRequest;a.addEventListener("readystatechange",()=>{if(4==a.readyState)if(200==a.status){let e=JSON.parse(JSON.parse(a.responseText).jsonPayload);if(e.animations){let n=JSON.parse(e.animations),a=[];for(let e of n.animations){let i=E(e);i.snippetId=t,a.push(i)}i(a)}else{let n=E(JSON.parse(e.animation));n.snippetId=t,i(n)}}else n("Unable to load the snippet "+t)}),a.open("GET",e+"/"+t.replace(/#/g,"/")),a.send()})}f._UniqueIdGenerator=0,f.AllowMatricesInterpolation=!1,f.AllowMatrixDecomposeForInterpolation=!0,f.InheritOriginalValueFromActiveAnimations=!1,f.SnippetUrl="https://snippet.babylonjs.com",f.ANIMATIONTYPE_FLOAT=0,f.ANIMATIONTYPE_VECTOR3=1,f.ANIMATIONTYPE_QUATERNION=2,f.ANIMATIONTYPE_MATRIX=3,f.ANIMATIONTYPE_COLOR3=4,f.ANIMATIONTYPE_COLOR4=7,f.ANIMATIONTYPE_VECTOR2=5,f.ANIMATIONTYPE_SIZE=6,f.ANIMATIONLOOPMODE_RELATIVE=0,f.ANIMATIONLOOPMODE_CYCLE=1,f.ANIMATIONLOOPMODE_CONSTANT=2,f.ANIMATIONLOOPMODE_YOYO=4,f.ANIMATIONLOOPMODE_RELATIVE_FROM_CURRENT=5;let R=!1;t.s(["Animation",0,f,"AnimationCreateAnimation",0,A,"AnimationMakeAnimationAdditive",0,I,"AnimationParse",0,E,"RegisterAnimation",0,function(){R||(R=!0,f.Parse=E,f.ParseFromFileAsync=N,f.ParseFromSnippetAsync=P,f.CreateFromSnippetAsync=P,f.CreateAnimation=A,f.CreateAndStartAnimation=T,f.CreateAndStartHierarchyAnimation=O,f.CreateMergeAndStartAnimation=M,f.MakeAnimationAdditive=I,f.TransitionTo=y,f.AppendSerializedAnimations=v,(0,l.RegisterClass)("BABYLON.Animation",f),r.Node._AnimationRangeFactory=(t,e,i)=>new a(t,e,i))},"_StaticOffsetValueColor3",0,p,"_StaticOffsetValueColor4",0,m,"_StaticOffsetValueQuaternion",0,c,"_StaticOffsetValueSize",0,_,"_StaticOffsetValueVector2",0,d,"_StaticOffsetValueVector3",0,u],8265)},16771,t=>{"use strict";var e=t.i(44816);t.s(["DrawWrapper",0,class{static GetEffect(t){return void 0===t.getPipelineContext?t.effect:t}constructor(t,e=!0){this._wasPreviouslyReady=!1,this._forceRebindOnNextCall=!0,this._wasPreviouslyUsingInstances=null,this.effect=null,this.defines=null,this.drawContext=t.createDrawContext(),e&&(this.materialContext=t.createMaterialContext())}setEffect(t,e,i=!0){this.effect=t,void 0!==e&&(this.defines=e),i&&this.drawContext?.reset()}dispose(t=!1){if(this.effect){let i=this.effect;t?i.dispose():e.TimingTools.SetImmediate(()=>{i.getEngine().onEndFrameObservable.addOnce(()=>{i.dispose()})}),this.effect=null}this.drawContext?.dispose()}}])},22287,t=>{"use strict";t.s(["IntersectionInfo",0,class{constructor(t,e,i){this.bu=t,this.bv=e,this.distance=i,this.faceId=0,this.subMeshId=0,this._internalSubMeshId=0}}])},52624,t=>{"use strict";let e,i,n,a,r,s,o,h,l,c,u,d,_,p,m,g;var f,I=t.i(57575),A=t.i(69400),T=t.i(9855),O=t.i(3864),M=t.i(23003),y=t.i(85050),v=t.i(2060);class E{constructor(){this._doNotSerialize=!1,this._isDisposed=!1,this._sceneRootNodesIndex=-1,this._isEnabled=!0,this._isParentEnabled=!0,this._isReady=!0,this._onEnabledStateChangedObservable=new O.Observable,this._onEffectiveEnabledStateChangedObservable=null,this._onClonedObservable=new O.Observable,this._inheritVisibility=!1,this._isVisible=!0}}let N=(s=[],o=[],h=[],l=[],c=[],u=[],d=[],_=[],p=[],m=[],f=class{static AddNodeConstructor(t,e){this._NodeConstructors[t]=e}static Construct(t,e,i,n){let a=this._NodeConstructors[t];return a?a(e,i,n):null}set accessibilityTag(t){this._accessibilityTag=t,this.onAccessibilityTagChangedObservable.notifyObservers(t)}get accessibilityTag(){return this._accessibilityTag}get doNotSerialize(){return!!this._nodeDataStorage._doNotSerialize||!!this._parentNode&&this._parentNode.doNotSerialize}set doNotSerialize(t){this._nodeDataStorage._doNotSerialize=t}isDisposed(){return this._nodeDataStorage._isDisposed}set parent(t){if(this._parentNode===t)return;let e=this._parentNode;if(this._parentNode&&void 0!==this._parentNode._children&&null!==this._parentNode._children){let e=this._parentNode._children.indexOf(this);-1!==e&&this._parentNode._children.splice(e,1),t||this._nodeDataStorage._isDisposed||this._addToSceneRootNodes()}this._parentNode=t,this._isDirty=!0,this._parentNode&&((void 0===this._parentNode._children||null===this._parentNode._children)&&(this._parentNode._children=[]),this._parentNode._children.push(this),e||this._removeFromSceneRootNodes()),this._syncParentEnabledState()}get parent(){return this._parentNode}get inheritVisibility(){return this._nodeDataStorage._inheritVisibility}set inheritVisibility(t){this._nodeDataStorage._inheritVisibility=t}get isVisible(){return(!this.inheritVisibility||!this._parentNode||!!this._parentNode.isVisible)&&this._nodeDataStorage._isVisible}set isVisible(t){this._nodeDataStorage._isVisible=t}_serializeAsParent(t){t.parentId=this.uniqueId}_addToSceneRootNodes(){-1===this._nodeDataStorage._sceneRootNodesIndex&&(this._nodeDataStorage._sceneRootNodesIndex=this._scene.rootNodes.length,this._scene.rootNodes.push(this))}_removeFromSceneRootNodes(){if(-1!==this._nodeDataStorage._sceneRootNodesIndex){let t=this._scene.rootNodes,e=t.length-1;t[this._nodeDataStorage._sceneRootNodesIndex]=t[e],t[this._nodeDataStorage._sceneRootNodesIndex]._nodeDataStorage._sceneRootNodesIndex=this._nodeDataStorage._sceneRootNodesIndex,this._scene.rootNodes.pop(),this._nodeDataStorage._sceneRootNodesIndex=-1}}get animationPropertiesOverride(){return this._animationPropertiesOverride?this._animationPropertiesOverride:this._scene.animationPropertiesOverride}set animationPropertiesOverride(t){this._animationPropertiesOverride=t}getClassName(){return"Node"}set onDispose(t){this._onDisposeObserver&&this.onDisposeObservable.remove(this._onDisposeObserver),this._onDisposeObserver=this.onDisposeObservable.add(t)}get onEnabledStateChangedObservable(){return this._nodeDataStorage._onEnabledStateChangedObservable}get onEffectiveEnabledStateChangedObservable(){var t;return(t=this._nodeDataStorage)._onEffectiveEnabledStateChangedObservable??(t._onEffectiveEnabledStateChangedObservable=new O.Observable)}get onClonedObservable(){return this._nodeDataStorage._onClonedObservable}constructor(t,e=null,i=!0){this._isDirty=!1,this._nodeDataStorage=new E,this.name=(0,I.__runInitializers)(this,s,void 0),this.id=((0,I.__runInitializers)(this,o),(0,I.__runInitializers)(this,h,void 0)),this.uniqueId=((0,I.__runInitializers)(this,l),(0,I.__runInitializers)(this,c,void 0)),this.state=((0,I.__runInitializers)(this,u),(0,I.__runInitializers)(this,d,"")),this.metadata=((0,I.__runInitializers)(this,_),(0,I.__runInitializers)(this,p,null)),this._internalMetadata=(0,I.__runInitializers)(this,m),this.reservedDataStore=null,this._accessibilityTag=null,this.onAccessibilityTagChangedObservable=new O.Observable,this._parentContainer=null,this.animations=[],this._ranges={},this.onReady=null,this._currentRenderId=-1,this._parentUpdateId=-1,this._childUpdateId=-1,this._waitingParentId=null,this._waitingParentInstanceIndex=null,this._waitingParsedUniqueId=null,this._cache={},this._parentNode=null,this._children=null,this._worldMatrix=A.Matrix.Identity(),this._worldMatrixDeterminant=0,this._worldMatrixDeterminantIsDirty=!0,this._animationPropertiesOverride=null,this._isNode=!0,this.onDisposeObservable=new O.Observable,this._onDisposeObserver=null,this._behaviors=[],this.name=t,this.id=t,this._scene=e||M.EngineStore.LastCreatedScene,this.uniqueId=this._scene.getUniqueId(),this._initCache(),i&&this._addToSceneRootNodes()}getScene(){return this._scene}getEngine(){return this._scene.getEngine()}addBehavior(t,e=!1){return -1!==this._behaviors.indexOf(t)||(t.init(),this._scene.isLoading&&!e?this._scene.onDataLoadedObservable.addOnce(()=>{this._behaviors.includes(t)&&t.attach(this)}):t.attach(this),this._behaviors.push(t)),this}removeBehavior(t){let e=this._behaviors.indexOf(t);return -1===e||(this._behaviors.splice(e,1),t.detach()),this}get behaviors(){return this._behaviors}getBehaviorByName(t){for(let e of this._behaviors)if(e.name===t)return e;return null}getWorldMatrix(){return this._currentRenderId!==this._scene.getRenderId()&&this.computeWorldMatrix(),this._worldMatrix}_getWorldMatrixDeterminant(){return this._worldMatrixDeterminantIsDirty&&(this._worldMatrixDeterminantIsDirty=!1,this._worldMatrixDeterminant=this._worldMatrix.determinant()),this._worldMatrixDeterminant}get worldMatrixFromCache(){return this._worldMatrix}_initCache(){this._cache={}}updateCache(t){!t&&this.isSynchronized()||this._updateCache()}_getActionManagerForTrigger(t,e=!0){return this.parent?this.parent._getActionManagerForTrigger(t,!1):null}_updateCache(t){}_isSynchronized(){return!0}_markSyncedWithParent(){this._parentNode&&(this._parentUpdateId=this._parentNode._childUpdateId)}isSynchronizedWithParent(){return!this._parentNode||!this._parentNode._isDirty&&this._parentUpdateId===this._parentNode._childUpdateId&&this._parentNode.isSynchronized()}isSynchronized(){return(!this._parentNode||!!this.isSynchronizedWithParent())&&this._isSynchronized()}isReady(t=!1){return this._nodeDataStorage._isReady}markAsDirty(t){return this._currentRenderId=Number.MAX_VALUE,this._isDirty=!0,this}isEnabled(t=!0){return!1===t?this._nodeDataStorage._isEnabled:!!this._nodeDataStorage._isEnabled&&this._nodeDataStorage._isParentEnabled}_hasEffectiveEnabledStateObservers(){let t=this._nodeDataStorage._onEffectiveEnabledStateChangedObservable;return!!t&&t.hasObservers()}_syncParentEnabledState(){let t=this._hasEffectiveEnabledStateObservers(),e=t?this.isEnabled():null;if(this._nodeDataStorage._isParentEnabled=!this._parentNode||this._parentNode.isEnabled(),this._children)for(let t of this._children)t._syncParentEnabledState();if(t){let t=this.isEnabled();t!==e&&this._nodeDataStorage._onEffectiveEnabledStateChangedObservable.notifyObservers(t)}}setEnabled(t){if(this._nodeDataStorage._isEnabled===t)return;let e=this._hasEffectiveEnabledStateObservers(),i=e?this.isEnabled():null;if(this._nodeDataStorage._isEnabled=t,this._syncParentEnabledState(),this._nodeDataStorage._onEnabledStateChangedObservable.notifyObservers(t),e){let t=this.isEnabled();t!==i&&this._nodeDataStorage._onEffectiveEnabledStateChangedObservable.notifyObservers(t)}}isDescendantOf(t){return!!this.parent&&(this.parent===t||this.parent.isDescendantOf(t))}_getDescendants(t,e=!1,i){if(this._children)for(let n=0;n<this._children.length;n++){let a=this._children[n];(!i||i(a))&&t.push(a),e||a._getDescendants(t,!1,i)}}getDescendants(t,e){let i=[];return this._getDescendants(i,t,e),i}getChildMeshes(t,e){let i=[];return this._getDescendants(i,t,t=>(!e||e(t))&&void 0!==t.cullingStrategy),i}getChildren(t,e=!0){return this.getDescendants(e,t)}_setReady(t){if(t!==this._nodeDataStorage._isReady){if(!t){this._nodeDataStorage._isReady=!1;return}this.onReady&&this.onReady(this),this._nodeDataStorage._isReady=!0}}getAnimationByName(t){for(let e=0;e<this.animations.length;e++){let i=this.animations[e];if(i.name===t)return i}return null}createAnimationRange(t,e,i){if(!this._ranges[t]){this._ranges[t]=f._AnimationRangeFactory(t,e,i);for(let n=0,a=this.animations.length;n<a;n++)this.animations[n]&&this.animations[n].createRange(t,e,i)}}deleteAnimationRange(t,e=!0){for(let i=0,n=this.animations.length;i<n;i++)this.animations[i]&&this.animations[i].deleteRange(t,e);this._ranges[t]=null}getAnimationRange(t){return this._ranges[t]||null}clone(t,e,i){let n=v.SerializationHelper.Clone(()=>new f(t,this.getScene()),this);if(e&&(n.parent=e),!i){let e=this.getDescendants(!0);for(let i=0;i<e.length;i++){let a=e[i];a.clone(t+"."+a.name,n)}}return n}getAnimationRanges(){let t,e=[];for(t in this._ranges)e.push(this._ranges[t]);return e}beginAnimation(t,e,i,n){let a=this.getAnimationRange(t);return a?this._scene.beginAnimation(this,a.from,a.to,e,i,n):null}serializeAnimationRanges(){let t=[];for(let e in this._ranges){let i=this._ranges[e];if(!i)continue;let n={};n.name=e,n.from=i.from,n.to=i.to,t.push(n)}return t}computeWorldMatrix(t){return this._worldMatrix||(this._worldMatrix=A.Matrix.Identity()),this._worldMatrix}dispose(t,e=!1){if(this._nodeDataStorage._isDisposed=!0,!t)for(let i of this.getDescendants(!0))i.dispose(t,e);for(let t of(this.parent?this.parent=null:this._removeFromSceneRootNodes(),this.onDisposeObservable.notifyObservers(this),this.onDisposeObservable.clear(),this.onEnabledStateChangedObservable.clear(),this._nodeDataStorage._onEffectiveEnabledStateChangedObservable?.clear(),this.onClonedObservable.clear(),this._behaviors))t.detach();this._behaviors.length=0,this.metadata=null}static ParseAnimationRanges(t,e,i){if(e.ranges)for(let i=0;i<e.ranges.length;i++){let n=e.ranges[i];t.createAnimationRange(n.name,n.from,n.to)}}getHierarchyBoundingVectors(t=!0,e=null){let i,n;if(this.getScene().incrementRenderId(),this.computeWorldMatrix(!0),this.getBoundingInfo&&this.subMeshes){let t=this.getBoundingInfo();i=t.boundingBox.minimumWorld.clone(),n=t.boundingBox.maximumWorld.clone()}else i=new A.Vector3(Number.MAX_VALUE,Number.MAX_VALUE,Number.MAX_VALUE),n=new A.Vector3(-Number.MAX_VALUE,-Number.MAX_VALUE,-Number.MAX_VALUE);if(t)for(let t of this.getDescendants(!1)){if(t.computeWorldMatrix(!0),e&&!e(t)||!t.getBoundingInfo||0===t.getTotalVertices())continue;let a=t.getBoundingInfo().boundingBox,r=a.minimumWorld,s=a.maximumWorld;A.Vector3.CheckExtends(r,i,n),A.Vector3.CheckExtends(s,i,n)}return{min:i,max:n}}},g="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0,e=[(0,T.serialize)()],i=[(0,T.serialize)()],n=[(0,T.serialize)()],a=[(0,T.serialize)()],r=[(0,T.serialize)()],(0,I.__esDecorate)(null,null,e,{kind:"field",name:"name",static:!1,private:!1,access:{has:t=>"name"in t,get:t=>t.name,set:(t,e)=>{t.name=e}},metadata:g},s,o),(0,I.__esDecorate)(null,null,i,{kind:"field",name:"id",static:!1,private:!1,access:{has:t=>"id"in t,get:t=>t.id,set:(t,e)=>{t.id=e}},metadata:g},h,l),(0,I.__esDecorate)(null,null,n,{kind:"field",name:"uniqueId",static:!1,private:!1,access:{has:t=>"uniqueId"in t,get:t=>t.uniqueId,set:(t,e)=>{t.uniqueId=e}},metadata:g},c,u),(0,I.__esDecorate)(null,null,a,{kind:"field",name:"state",static:!1,private:!1,access:{has:t=>"state"in t,get:t=>t.state,set:(t,e)=>{t.state=e}},metadata:g},d,_),(0,I.__esDecorate)(null,null,r,{kind:"field",name:"metadata",static:!1,private:!1,access:{has:t=>"metadata"in t,get:t=>t.metadata,set:(t,e)=>{t.metadata=e}},metadata:g},p,m),g&&Object.defineProperty(f,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:g}),f._AnimationRangeFactory=(t,e,i)=>{throw(0,y._WarnImport)("AnimationRange")},f._NodeConstructors={},f);t.s(["Node",0,N])},26924,t=>{"use strict";var e,i,n,a,r=t.i(69400);(e=n||(n={}))[e.LOCAL=0]="LOCAL",e[e.WORLD=1]="WORLD",e[e.BONE=2]="BONE";class s{}s.X=new r.Vector3(1,0,0),s.Y=new r.Vector3(0,1,0),s.Z=new r.Vector3(0,0,1),(i=a||(a={}))[i.X=0]="X",i[i.Y=1]="Y",i[i.Z=2]="Z",t.s(["Axis",0,s,"Coordinate",0,a,"Space",0,n])},31837,t=>{"use strict";class e{static get ForceFullSceneLoadingForIncremental(){return e._ForceFullSceneLoadingForIncremental}static set ForceFullSceneLoadingForIncremental(t){e._ForceFullSceneLoadingForIncremental=t}static get ShowLoadingScreen(){return e._ShowLoadingScreen}static set ShowLoadingScreen(t){e._ShowLoadingScreen=t}static get loggingLevel(){return e._LoggingLevel}static set loggingLevel(t){e._LoggingLevel=t}static get CleanBoneMatrixWeights(){return e._CleanBoneMatrixWeights}static set CleanBoneMatrixWeights(t){e._CleanBoneMatrixWeights=t}}e._ForceFullSceneLoadingForIncremental=!1,e._ShowLoadingScreen=!0,e._CleanBoneMatrixWeights=!1,e._LoggingLevel=0,t.s(["SceneLoaderFlags",0,e])},29667,t=>{"use strict";var e,i,n=t.i(63235),a=t.i(69400),r=t.i(84106);(e=i||(i={}))[e.CW=0]="CW",e[e.CCW=1]="CCW";class s{constructor(t){this._radians=t,this._radians<0&&(this._radians+=2*Math.PI)}degrees(){return 180*this._radians/Math.PI}radians(){return this._radians}static BetweenTwoPoints(t,e){let i=e.subtract(t);return new s(Math.atan2(i.y,i.x))}static BetweenTwoVectors(t,e){let i=t.lengthSquared()*e.lengthSquared();if(0===i)return new s(Math.PI/2);i=Math.sqrt(i);let a=t.dot(e)/i;return new s(Math.acos(a=(0,n.Clamp)(a,-1,1)))}static FromRadians(t){return new s(t)}static FromDegrees(t){return new s(t*Math.PI/180)}}class o{constructor(t,e,i){this.startPoint=t,this.midPoint=e,this.endPoint=i;const n=Math.pow(e.x,2)+Math.pow(e.y,2),r=(Math.pow(t.x,2)+Math.pow(t.y,2)-n)/2,o=(n-Math.pow(i.x,2)-Math.pow(i.y,2))/2,h=(t.x-e.x)*(e.y-i.y)-(e.x-i.x)*(t.y-e.y);this.centerPoint=new a.Vector2((r*(e.y-i.y)-o*(t.y-e.y))/h,((t.x-e.x)*o-(e.x-i.x)*r)/h),this.radius=this.centerPoint.subtract(this.startPoint).length(),this.startAngle=s.BetweenTwoPoints(this.centerPoint,this.startPoint);const l=this.startAngle.degrees();let c=s.BetweenTwoPoints(this.centerPoint,this.midPoint).degrees(),u=s.BetweenTwoPoints(this.centerPoint,this.endPoint).degrees();c-l>180&&(c-=360),c-l<-180&&(c+=360),u-c>180&&(u-=360),u-c<-180&&(u+=360),this.orientation=c-l<0?0:1,this.angle=s.FromDegrees(0===this.orientation?l-u:u-l)}}class h{constructor(t,e){this._points=[],this._length=0,this.closed=!1,this._points.push(new a.Vector2(t,e))}addLineTo(t,e){if(this.closed)return this;let i=new a.Vector2(t,e),n=this._points[this._points.length-1];return this._points.push(i),this._length+=i.subtract(n).length(),this}addArcTo(t,e,i,n,r=36){if(this.closed)return this;let s=new o(this._points[this._points.length-1],new a.Vector2(t,e),new a.Vector2(i,n)),h=s.angle.radians()/r;0===s.orientation&&(h*=-1);let l=s.startAngle.radians()+h;for(let t=0;t<r;t++){let t=Math.cos(l)*s.radius+s.centerPoint.x,e=Math.sin(l)*s.radius+s.centerPoint.y;this.addLineTo(t,e),l+=h}return this}addQuadraticCurveTo(t,e,i,n,a=36){if(this.closed)return this;let r=(t,e,i,n)=>(1-t)*(1-t)*e+2*t*(1-t)*i+t*t*n,s=this._points[this._points.length-1];for(let o=0;o<=a;o++){let h=o/a,l=r(h,s.x,t,i),c=r(h,s.y,e,n);this.addLineTo(l,c)}return this}addBezierCurveTo(t,e,i,n,a,r,s=36){if(this.closed)return this;let o=(t,e,i,n,a)=>(1-t)*(1-t)*(1-t)*e+3*t*(1-t)*(1-t)*i+3*t*t*(1-t)*n+t*t*t*a,h=this._points[this._points.length-1];for(let l=0;l<=s;l++){let c=l/s,u=o(c,h.x,t,i,a),d=o(c,h.y,e,n,r);this.addLineTo(u,d)}return this}isPointInside(t){let e=!1,i=this._points.length;for(let n=i-1,a=0;a<i;n=a++){let i=this._points[n],r=this._points[a],s=r.x-i.x,o=r.y-i.y;if(Math.abs(o)>Number.EPSILON){if(o<0&&(i=this._points[a],s=-s,r=this._points[n],o=-o),t.y<i.y||t.y>r.y)continue;if(t.y===i.y&&t.x===i.x)return!0;{let n=o*(t.x-i.x)-s*(t.y-i.y);if(0===n)return!0;if(n<0)continue;e=!e}}else{if(t.y!==i.y)continue;if(r.x<=t.x&&t.x<=i.x||i.x<=t.x&&t.x<=r.x)return!0}}return e}close(){return this.closed=!0,this}length(){let t=this._length;if(this.closed){let e=this._points[this._points.length-1];t+=this._points[0].subtract(e).length()}return t}area(){let t=this._points.length,e=0;for(let i=t-1,n=0;n<t;i=n++)e+=this._points[i].x*this._points[n].y-this._points[n].x*this._points[i].y;return .5*e}getPoints(){return this._points}getPointAtLengthPosition(t){if(t<0||t>1)return a.Vector2.Zero();let e=t*this.length(),i=0;for(let t=0;t<this._points.length;t++){let n=(t+1)%this._points.length,r=this._points[t],s=this._points[n].subtract(r),o=s.length()+i;if(e>=i&&e<=o){let t=s.normalize(),n=e-i;return new a.Vector2(r.x+t.x*n,r.y+t.y*n)}i=o}return a.Vector2.Zero()}static StartingAt(t,e){return new h(t,e)}}class l{constructor(t,e=null,i,n=!1){this.path=t,this._curve=[],this._distances=[],this._tangents=[],this._normals=[],this._binormals=[],this._pointAtData={id:0,point:a.Vector3.Zero(),previousPointArrayIndex:0,position:0,subPosition:0,interpolateReady:!1,interpolationMatrix:a.Matrix.Identity()};for(let e=0;e<t.length;e++)this._curve[e]=t[e].clone();this._raw=i||!1,this._alignTangentsWithPath=n,this._compute(e,n)}getCurve(){return this._curve}getPoints(){return this._curve}length(){return this._distances[this._distances.length-1]}getTangents(){return this._tangents}getNormals(){return this._normals}getBinormals(){return this._binormals}getDistances(){return this._distances}getPointAt(t){return this._updatePointAtData(t).point}getTangentAt(t,e=!1){return this._updatePointAtData(t,e),e?a.Vector3.TransformCoordinates(a.Vector3.Forward(),this._pointAtData.interpolationMatrix):this._tangents[this._pointAtData.previousPointArrayIndex]}getNormalAt(t,e=!1){return this._updatePointAtData(t,e),e?a.Vector3.TransformCoordinates(a.Vector3.Right(),this._pointAtData.interpolationMatrix):this._normals[this._pointAtData.previousPointArrayIndex]}getBinormalAt(t,e=!1){return this._updatePointAtData(t,e),e?a.Vector3.TransformCoordinates(a.Vector3.UpReadOnly,this._pointAtData.interpolationMatrix):this._binormals[this._pointAtData.previousPointArrayIndex]}getDistanceAt(t){return this.length()*t}getPreviousPointIndexAt(t){return this._updatePointAtData(t),this._pointAtData.previousPointArrayIndex}getSubPositionAt(t){return this._updatePointAtData(t),this._pointAtData.subPosition}getClosestPositionTo(t){let e=Number.MAX_VALUE,i=0;for(let n=0;n<this._curve.length-1;n++){let r=this._curve[n+0],s=this._curve[n+1].subtract(r).normalize(),o=this._distances[n+1]-this._distances[n+0],h=Math.min(Math.max(a.Vector3.Dot(s,t.subtract(r).normalize()),0)*a.Vector3.Distance(r,t)/o,1),l=a.Vector3.Distance(r.add(s.scale(h*o)),t);l<e&&(e=l,i=(this._distances[n+0]+o*h)/this.length())}return i}slice(t=0,e=1){if(t<0&&(t=1- -1*t%1),e<0&&(e=1- -1*e%1),t>e){let i=t;t=e,e=i}let i=this.getCurve(),n=this.getPointAt(t),a=this.getPreviousPointIndexAt(t),r=this.getPointAt(e),s=this.getPreviousPointIndexAt(e)+1,o=[];return 0!==t&&(a++,o.push(n)),o.push(...i.slice(a,s)),(1!==e||1===t)&&o.push(r),new l(o,this.getNormalAt(t),this._raw,this._alignTangentsWithPath)}update(t,e=null,i=!1){for(let e=0;e<t.length;e++)this._curve[e].x=t[e].x,this._curve[e].y=t[e].y,this._curve[e].z=t[e].z;return this._compute(e,i),this}_compute(t,e=!1){let i,n,r,s,o,h=this._curve.length;if(h<2)return;this._tangents[0]=this._getFirstNonNullVector(0),this._raw||this._tangents[0].normalize(),this._tangents[h-1]=this._curve[h-1].subtract(this._curve[h-2]),this._raw||this._tangents[h-1].normalize();let l=this._tangents[0],c=this._normalVector(l,t);this._normals[0]=c,this._raw||this._normals[0].normalize(),this._binormals[0]=a.Vector3.Cross(l,this._normals[0]),this._raw||this._binormals[0].normalize(),this._distances[0]=0;for(let t=1;t<h;t++)i=this._getLastNonNullVector(t),t<h-1&&(n=this._getFirstNonNullVector(t),this._tangents[t]=e?n:i.add(n),this._tangents[t].normalize()),this._distances[t]=this._distances[t-1]+this._curve[t].subtract(this._curve[t-1]).length(),r=this._tangents[t],o=this._binormals[t-1],this._normals[t]=a.Vector3.Cross(o,r),this._raw||(0===this._normals[t].length()?(s=this._normals[t-1],this._normals[t]=s.clone()):this._normals[t].normalize()),this._binormals[t]=a.Vector3.Cross(r,this._normals[t]),this._raw||this._binormals[t].normalize();this._pointAtData.id=NaN}_getFirstNonNullVector(t){let e=1,i=this._curve[t+e].subtract(this._curve[t]);for(;0===i.length()&&t+e+1<this._curve.length;)e++,i=this._curve[t+e].subtract(this._curve[t]);return i}_getLastNonNullVector(t){let e=1,i=this._curve[t].subtract(this._curve[t-e]);for(;0===i.length()&&t>e+1;)e++,i=this._curve[t].subtract(this._curve[t-e]);return i}_normalVector(t,e){let i,s=t.length();if(0===s&&(s=1),null==e){let e;e=(0,n.WithinEpsilon)(Math.abs(t.y)/s,1,r.Epsilon)?(0,n.WithinEpsilon)(Math.abs(t.x)/s,1,r.Epsilon)?(0,n.WithinEpsilon)(Math.abs(t.z)/s,1,r.Epsilon)?a.Vector3.Zero():new a.Vector3(0,0,1):new a.Vector3(1,0,0):new a.Vector3(0,-1,0),i=a.Vector3.Cross(t,e)}else i=a.Vector3.Cross(t,e),a.Vector3.CrossToRef(i,t,i);return i.normalize(),i}_updatePointAtData(t,e=!1){let i;if(this._pointAtData.id===t)return this._pointAtData.interpolateReady||this._updateInterpolationMatrix(),this._pointAtData;this._pointAtData.id=t;let n=this.getPoints();if(t<=0)return this._setPointAtData(0,0,n[0],0,e);if(t>=1)return this._setPointAtData(1,1,n[n.length-1],n.length-1,e);let r=n[0],s=0,o=t*this.length();for(let h=1;h<n.length;h++){i=n[h];let l=a.Vector3.Distance(r,i);if((s+=l)===o)return this._setPointAtData(t,1,i,h,e);if(s>o){let n=(s-o)/l,a=r.subtract(i),c=i.add(a.scaleInPlace(n));return this._setPointAtData(t,1-n,c,h-1,e)}r=i}return this._pointAtData}_setPointAtData(t,e,i,n,a){return this._pointAtData.point=i,this._pointAtData.position=t,this._pointAtData.subPosition=e,this._pointAtData.previousPointArrayIndex=n,this._pointAtData.interpolateReady=a,a&&this._updateInterpolationMatrix(),this._pointAtData}_updateInterpolationMatrix(){this._pointAtData.interpolationMatrix=a.Matrix.Identity();let t=this._pointAtData.previousPointArrayIndex;if(t!==this._tangents.length-1){let e=t+1,i=this._tangents[t].clone(),n=this._normals[t].clone(),r=this._binormals[t].clone(),s=this._tangents[e].clone(),o=this._normals[e].clone(),h=this._binormals[e].clone(),l=a.Quaternion.RotationQuaternionFromAxis(n,r,i),c=a.Quaternion.RotationQuaternionFromAxis(o,h,s);a.Quaternion.Slerp(l,c,this._pointAtData.subPosition).toRotationMatrix(this._pointAtData.interpolationMatrix)}}}class c{static CreateQuadraticBezier(t,e,i,n){n=n>2?n:3;let r=[],s=(t,e,i,n)=>(1-t)*(1-t)*e+2*t*(1-t)*i+t*t*n;for(let o=0;o<=n;o++)r.push(new a.Vector3(s(o/n,t.x,e.x,i.x),s(o/n,t.y,e.y,i.y),s(o/n,t.z,e.z,i.z)));return new c(r)}static CreateCubicBezier(t,e,i,n,r){r=r>3?r:4;let s=[],o=(t,e,i,n,a)=>(1-t)*(1-t)*(1-t)*e+3*t*(1-t)*(1-t)*i+3*t*t*(1-t)*n+t*t*t*a;for(let h=0;h<=r;h++)s.push(new a.Vector3(o(h/r,t.x,e.x,i.x,n.x),o(h/r,t.y,e.y,i.y,n.y),o(h/r,t.z,e.z,i.z,n.z)));return new c(s)}static CreateHermiteSpline(t,e,i,n,r){let s=[],o=1/r;for(let h=0;h<=r;h++)s.push(a.Vector3.Hermite(t,e,i,n,h*o));return new c(s)}static CreateCatmullRomSpline(t,e,i){let n=[],r=1/e,s=0;if(i){let i=t.length;for(let o=0;o<i;o++){s=0;for(let h=0;h<e;h++)n.push(a.Vector3.CatmullRom(t[o%i],t[(o+1)%i],t[(o+2)%i],t[(o+3)%i],s)),s+=r}n.push(n[0])}else{let i=[];i.push(t[0].clone()),i.push(...t),i.push(t[t.length-1].clone());let o=0;for(;o<i.length-3;o++){s=0;for(let t=0;t<e;t++)n.push(a.Vector3.CatmullRom(i[o],i[o+1],i[o+2],i[o+3],s)),s+=r}o--,n.push(a.Vector3.CatmullRom(i[o],i[o+1],i[o+2],i[o+3],s))}return new c(n)}static ArcThru3Points(t,e,i,n=32,r=!1,s=!1){let o=[],h=e.subtract(t),l=i.subtract(e),u=t.subtract(i),d=a.Vector3.Cross(h,l),_=d.length();if(_<1e-8)return new c(o);let p=h.lengthSquared(),m=l.lengthSquared(),g=u.lengthSquared(),f=d.lengthSquared(),I=.5*h.length()*l.length()*u.length()/_,A=a.Vector3.Dot(h,u),T=a.Vector3.Dot(h,l),O=a.Vector3.Dot(l,u),M=t.scale(-.5*m*A/f).add(e.scale(-.5*g*T/f)).add(i.scale(-.5*p*O/f)),y=t.subtract(M).normalize(),v=a.Vector3.Cross(d,y).normalize();if(s){let e=2*Math.PI/n;for(let t=0;t<=2*Math.PI;t+=e)o.push(M.add(y.scale(I*Math.cos(t)).add(v.scale(I*Math.sin(t)))));o.push(t)}else{let e,a=1/n,s=0;do e=M.add(y.scale(I*Math.cos(s)).add(v.scale(I*Math.sin(s)))),o.push(e),s+=a;while(!e.equalsWithEpsilon(i,I*a*1.1))o.push(i),r&&o.push(t)}return new c(o)}constructor(t){this._length=0,this._points=t,this._length=this._computeLength(t)}getPoints(){return this._points}length(){return this._length}continue(t){let e=this._points[this._points.length-1],i=this._points.slice(),n=t.getPoints();for(let t=1;t<n.length;t++)i.push(n[t].subtract(n[0]).add(e));return new c(i)}_computeLength(t){let e=0;for(let i=1;i<t.length;i++)e+=t[i].subtract(t[i-1]).length();return e}}t.s(["Angle",0,s,"Arc2",0,o,"BezierCurve",0,class{static Interpolate(t,e,i,n,a){if(0===t)return 0;let r=1-3*n+3*e,s=3*n-6*e,o=3*e,h=t;for(let e=0;e<5;e++){let e=h*h,i=e*h*r+s*e+o*h,n=1/(3*r*e+2*s*h+o);h-=(i-t)*n,h=Math.min(1,Math.max(0,h))}return 3*Math.pow(1-h,2)*h*i+3*(1-h)*Math.pow(h,2)*a+Math.pow(h,3)}},"Curve3",0,c,"Orientation",0,i,"Path2",0,h,"Path3D",0,l])},40780,t=>{"use strict";var e=t.i(29667);class i{constructor(){this._easingMode=i.EASINGMODE_EASEIN}setEasingMode(t){let e=Math.min(Math.max(t,0),2);this._easingMode=e}getEasingMode(){return this._easingMode}easeInCore(t){throw Error("You must implement this method")}ease(t){switch(this._easingMode){case i.EASINGMODE_EASEIN:return this.easeInCore(t);case i.EASINGMODE_EASEOUT:return 1-this.easeInCore(1-t)}return t>=.5?(1-this.easeInCore((1-t)*2))*.5+.5:.5*this.easeInCore(2*t)}}i.EASINGMODE_EASEIN=0,i.EASINGMODE_EASEOUT=1,i.EASINGMODE_EASEINOUT=2,t.s(["BackEase",0,class extends i{constructor(t=1){super(),this.amplitude=t}easeInCore(t){return Math.pow(t,3)-t*Math.max(0,this.amplitude)*Math.sin(3.141592653589793*t)}},"BezierCurveEase",0,class extends i{constructor(t=0,e=0,i=1,n=1){super(),this.x1=t,this.y1=e,this.x2=i,this.y2=n}easeInCore(t){return e.BezierCurve.Interpolate(t,this.x1,this.y1,this.x2,this.y2)}},"BounceEase",0,class extends i{constructor(t=3,e=2){super(),this.bounces=t,this.bounciness=e}easeInCore(t){let e=Math.max(0,this.bounces),i=this.bounciness;i<=1&&(i=1.001);let n=Math.pow(i,e),a=1-i,r=(1-n)/a+.5*n,s=Math.floor(Math.log(-(t*r)*(1-i)+1)/Math.log(i)),o=(1-Math.pow(i,s))/(a*r),h=(o+(1-Math.pow(i,s+1))/(a*r))*.5,l=t-h,c=h-o;return-Math.pow(1/i,e-s)/(c*c)*(l-c)*(l+c)}},"CircleEase",0,class extends i{easeInCore(t){return 1-Math.sqrt(1-(t=Math.max(0,Math.min(1,t)))*t)}},"CubicEase",0,class extends i{easeInCore(t){return t*t*t}},"EasingFunction",0,i,"ElasticEase",0,class extends i{constructor(t=3,e=3){super(),this.oscillations=t,this.springiness=e}easeInCore(t){let e=Math.max(0,this.oscillations),i=Math.max(0,this.springiness);return(0===i?t:(Math.exp(i*t)-1)/(Math.exp(i)-1))*Math.sin((6.283185307179586*e+1.5707963267948966)*t)}},"ExponentialEase",0,class extends i{constructor(t=2){super(),this.exponent=t}easeInCore(t){return this.exponent<=0?t:(Math.exp(this.exponent*t)-1)/(Math.exp(this.exponent)-1)}}])},82571,91586,57113,25970,t=>{"use strict";let e,i,n,a,r,s,o,h,l,c,u,d,_,p;var m,g=t.i(57575),f=t.i(9855),I=t.i(55288),A=t.i(69400),T=t.i(84106),O=t.i(26924);class M{constructor(t,e,i){this._cameraPosition=e,this._behavior=i,this.activeInput=!1,this.speed=1,this.zoomSpeed=1,this.panSpeed=1,this.rotationXSpeed=1,this.rotationYSpeed=1,this._zoomSpeedMultiplier=1,this._panSpeedMultiplier=1,this.zoomInertia=.9,this.panInertia=.9,this.rotationInertia=.9,this.zoomAccumulatedPixels=0,this.panAccumulatedPixels=new A.Vector3,this.rotationAccumulatedPixels=new A.Vector3,this.zoomDeltaCurrentFrame=0,this.panDeltaCurrentFrame=A.Vector3.Zero(),this.rotationDeltaCurrentFrame=A.Vector3.Zero(),this._zoomVelocity=0,this._panVelocity=new A.Vector3,this.referenceFrameRate=60,this._rotationVelocity=new A.Vector3,this._prevFrameTimeMs=0,this._scene=t}computeCurrentFrameDeltas(){let t=this._scene.getEngine().getDeltaTime(),e=this._getEffectiveDeltaMs(t);if(0===this._zoomVelocity&&0===this.zoomAccumulatedPixels&&0===this._panVelocity.x&&0===this._panVelocity.y&&0===this._panVelocity.z&&0===this.panAccumulatedPixels.x&&0===this.panAccumulatedPixels.y&&0===this.panAccumulatedPixels.z&&0===this._rotationVelocity.x&&0===this._rotationVelocity.y&&0===this._rotationVelocity.z&&0===this.rotationAccumulatedPixels.x&&0===this.rotationAccumulatedPixels.y&&0===this.rotationAccumulatedPixels.z&&!this.activeInput){this.panDeltaCurrentFrame.setAll(0),this.rotationDeltaCurrentFrame.setAll(0),this.zoomDeltaCurrentFrame=0,t>0&&(this._prevFrameTimeMs=t);return}this.panDeltaCurrentFrame.setAll(0),this.rotationDeltaCurrentFrame.setAll(0),this.zoomDeltaCurrentFrame=0,(this.panAccumulatedPixels.lengthSquared()>0||this.rotationAccumulatedPixels.lengthSquared()>0||0!==this.zoomAccumulatedPixels)&&this._behavior?.isInterpolating&&this._behavior.stopAllAnimations(),this._panVelocity.copyFromFloats(this._calculateCurrentVelocity(this._panVelocity.x,this.panAccumulatedPixels.x,this.panInertia),this._calculateCurrentVelocity(this._panVelocity.y,this.panAccumulatedPixels.y,this.panInertia),this._calculateCurrentVelocity(this._panVelocity.z,this.panAccumulatedPixels.z,this.panInertia)),this._panVelocity.scaleToRef(this.speed*this.panSpeed*this._panSpeedMultiplier*e,this.panDeltaCurrentFrame),this._rotationVelocity.copyFromFloats(this._calculateCurrentVelocity(this._rotationVelocity.x,this.rotationAccumulatedPixels.x,this.rotationInertia),this._calculateCurrentVelocity(this._rotationVelocity.y,this.rotationAccumulatedPixels.y,this.rotationInertia),this._calculateCurrentVelocity(this._rotationVelocity.z,this.rotationAccumulatedPixels.z,this.rotationInertia)),this.rotationDeltaCurrentFrame.copyFromFloats(this._rotationVelocity.x*this.speed*this.rotationXSpeed*e,this._rotationVelocity.y*this.speed*this.rotationYSpeed*e,0),this._zoomVelocity=this._calculateCurrentVelocity(this._zoomVelocity,this.zoomAccumulatedPixels,this.zoomInertia),this.zoomDeltaCurrentFrame=this._zoomVelocity*(this.speed*this.zoomSpeed*this._zoomSpeedMultiplier)*e,t>0&&(this._prevFrameTimeMs=t),this.zoomAccumulatedPixels=0,this.panAccumulatedPixels.setAll(0),this.rotationAccumulatedPixels.setAll(0),this.activeInput=!1}resetRotationVelocity(){this._rotationVelocity.setAll(0),this.rotationAccumulatedPixels.setAll(0)}resetPanVelocity(){this._panVelocity.setAll(0),this.panAccumulatedPixels.setAll(0)}resetZoomVelocity(){this._zoomVelocity=0,this.zoomAccumulatedPixels=0}get isInterpolating(){return!!this._behavior?.isInterpolating}getFrameIndependentDecay(t){let e=this._scene.getEngine().getDeltaTime();return Math.pow(t,this._getEffectiveDeltaMs(e)/(1e3/this.referenceFrameRate))}getFrameIndependentInputScale(t){let e=1-t;return e<=0?1:(1-this.getFrameIndependentDecay(t))/e}_getEffectiveDeltaMs(t){return t>0?t:this._prevFrameTimeMs>0?this._prevFrameTimeMs:1e3/this.referenceFrameRate}_calculateCurrentVelocity(t,e,i){let n=t,a=this._scene.getEngine().getDeltaTime(),r=this._getEffectiveDeltaMs(a);if(0===r)return n;let s=this.getFrameIndependentDecay(i);if(n*=s,0!==e||this.activeInput){let t=1-i;n+=e/r*(t>0?(1-s)/t:1)}else 1e-6>Math.abs(n)&&(n=0);return n}}t.s(["CameraMovement",0,M],91586);class y{constructor(t,e){this.inputMap=[],this.handlers=t,this._createDefaultEntries=e,this.resetInputMap()}resolveInteraction(t,e){for(let i of this.inputMap)if(i.source===t&&this._entryMatches(i,e))return i;return null}resetInputMap(){this.inputMap=this._createDefaultEntries?.()??[]}getEntry(t,e,i){let n=this.inputMap;for(let a=0;a<n.length;a++){let r=n[a];if(r.source===t&&r.interaction===e&&this._entryConditionsMatch(r,i))return r}}getEntries(t,e,i){let n=[],a=this.inputMap;for(let r=0;r<a.length;r++){let s=a[r];s.source===t&&s.interaction===e&&this._entryConditionsMatch(s,i)&&n.push(s)}return n}addEntry(t){let e=this._entrySpecificity(t),i=this.inputMap.length;for(let t=0;t<this.inputMap.length;t++)if(this._entrySpecificity(this.inputMap[t])<e){i=t;break}this.inputMap.splice(i,0,t)}setInteraction(t,e,i){let n=this.resolveInteraction(t,e);return n&&this._entryCoversAllConditionsOf(n,e)?n.interaction=i:this.addEntry({source:t,...e??{},interaction:i}),!0}_entryCoversAllConditionsOf(t,e){if(!e)return!0;for(let i of Object.keys(e)){let n=e[i];if(void 0!==n){if("modifiers"===i){let e=t.modifiers??{};for(let t of Object.keys(n))if(void 0!==n[t]&&void 0===e[t])return!1}else if(void 0===t[i])return!1}}return!0}setInteractions(t,e,i){let n=0,a=this.inputMap;for(let r=0;r<a.length;r++){let s=a[r];s.source===t&&this._entryMatches(s,e)&&(s.interaction=i,n++)}return n}_entryMatches(t,e){switch(t.source){case"pointer":if(void 0!==t.button&&t.button!==e?.button)return!1;return this._matchModifiers(t.modifiers,e?.modifiers);case"wheel":return this._matchModifiers(t.modifiers,e?.modifiers);case"touch":if(void 0!==t.touchCount&&t.touchCount!==e?.touchCount)return!1;return!0;case"keyboard":if(void 0!==t.key&&(Array.isArray(t.key)?-1===t.key.indexOf(e?.key??-1):t.key!==e?.key))return!1;return this._matchModifiers(t.modifiers,e?.modifiers)}}_entryConditionsMatch(t,e){if(!e)return!0;switch(t.source){case"pointer":if("button"in e&&t.button!==e.button)return!1;return!("modifiers"in e)||this._entryModifiersMatch(t.modifiers,e.modifiers);case"wheel":return!("modifiers"in e)||this._entryModifiersMatch(t.modifiers,e.modifiers);case"touch":return!("touchCount"in e)||t.touchCount===e.touchCount;case"keyboard":if("key"in e){if(void 0===t.key)return void 0===e.key;if(void 0===e.key||(Array.isArray(t.key)?-1===t.key.indexOf(e.key):t.key!==e.key))return!1}return!("modifiers"in e)||this._entryModifiersMatch(t.modifiers,e.modifiers)}}_entrySpecificity(t){let e=0;return"button"in t&&void 0!==t.button&&e++,"key"in t&&void 0!==t.key&&e++,"touchCount"in t&&void 0!==t.touchCount&&e++,"modifiers"in t&&t.modifiers&&e++,e}_matchModifiers(t,e){return!t||(void 0===t.ctrl||t.ctrl===(e?.ctrl??!1))&&(void 0===t.shift||t.shift===(e?.shift??!1))&&(void 0===t.alt||t.alt===(e?.alt??!1))}_entryModifiersMatch(t,e){return e?void 0===e.ctrl&&void 0===e.shift&&void 0===e.alt?!t||void 0===t.ctrl&&void 0===t.shift&&void 0===t.alt:(void 0===e.ctrl||t?.ctrl===e.ctrl)&&(void 0===e.shift||t?.shift===e.shift)&&(void 0===e.alt||t?.alt===e.alt):!t}}t.s(["InputMapper",0,y],57113);class v extends M{constructor(t,e,i){super(t,e,i),this.input=new y({translate:(t,e,i)=>{this.panAccumulatedPixels.x+=t,this.panAccumulatedPixels.y+=e,this.panAccumulatedPixels.z+=i},rotate:(t,e)=>{this.rotationAccumulatedPixels.x+=t,this.rotationAccumulatedPixels.y+=e}},()=>this._createDefaultInputMap())}_createDefaultInputMap(){return[{source:"pointer",interaction:"rotate"},{source:"keyboard",interaction:"translate"},{source:"keyboard",interaction:"rotate"},{source:"touch",interaction:"rotate"},{source:"touch",interaction:"translate"}]}}let E=A.Matrix.Zero(),N=A.Quaternion.Identity(),P=(r=I.Camera,s=[],o=[],h=[],l=[],c=[],u=[],d=[],_=[],m=class extends r{get inertia(){return this._targetInertia}set inertia(t){this._targetInertia=t,this.movement&&(this.movement.panInertia=t,this.movement.rotationInertia=t)}constructor(t,e,i,n=!0){super(t,e,i,n),this.cameraDirection=new A.Vector3(0,0,0),this.cameraRotation=new A.Vector2(0,0),this._targetInertia=.9,this.updateUpVectorFromRotation=(0,g.__runInitializers)(this,s,!1),this.rotation=((0,g.__runInitializers)(this,o),(0,g.__runInitializers)(this,h,void 0)),this.rotationQuaternion=(0,g.__runInitializers)(this,l),this.speed=(0,g.__runInitializers)(this,c,2),this.noRotationConstraint=((0,g.__runInitializers)(this,u),!1),this.invertRotation=!1,this.inverseRotationSpeed=.2,this._panningEpsilon=T.Epsilon,this._rotationEpsilon=T.Epsilon,this.lockedTarget=(0,g.__runInitializers)(this,d,null),this._currentTarget=((0,g.__runInitializers)(this,_),A.Vector3.Zero()),this._initialFocalDistance=1,this._viewMatrix=A.Matrix.Zero(),this._cameraTransformMatrix=A.Matrix.Zero(),this._cameraRotationMatrix=A.Matrix.Zero(),this._transformedReferencePoint=A.Vector3.Zero(),this._deferredPositionUpdate=new A.Vector3,this._deferredRotationQuaternionUpdate=new A.Quaternion,this._deferredRotationUpdate=new A.Vector3,this._deferredUpdated=!1,this._deferOnly=!1,this._cachedRotationZ=0,this._cachedQuaternionRotationZ=0,this._referencePoint=A.Vector3.Forward(this.getScene().useRightHandedSystem),this.rotation=new A.Vector3(0,this.getScene().useRightHandedSystem?Math.PI:0,0),this.movement=new v(this.getScene(),this.position),this.movement.panInertia=this.inertia,this.movement.rotationInertia=this.inertia}getFrontPosition(t){this.getWorldMatrix();let e=A.TmpVectors.Vector3[0],i=A.TmpVectors.Vector3[1];return i.set(0,0,this._scene.useRightHandedSystem?-1:1),this.getDirectionToRef(i,e),e.scaleInPlace(t),this.globalPosition.add(e)}_getLockedTargetPosition(){if(!this.lockedTarget)return null;if(this.lockedTarget.absolutePosition){let t=this.lockedTarget;t.computeWorldMatrix().getTranslationToRef(t.absolutePosition)}return this.lockedTarget.absolutePosition||this.lockedTarget}storeState(){return this._storedPosition=this.position.clone(),this._storedRotation=this.rotation.clone(),this.rotationQuaternion&&(this._storedRotationQuaternion=this.rotationQuaternion.clone()),super.storeState()}_restoreStateValues(){return!!super._restoreStateValues()&&(this.position=this._storedPosition.clone(),this.rotation=this._storedRotation.clone(),this.rotationQuaternion&&this._storedRotationQuaternion&&(this.rotationQuaternion=this._storedRotationQuaternion.clone()),this.cameraDirection.copyFromFloats(0,0,0),this.cameraRotation.copyFromFloats(0,0),!0)}_initCache(){super._initCache(),this._cache.lockedTarget=new A.Vector3(Number.MAX_VALUE,Number.MAX_VALUE,Number.MAX_VALUE),this._cache.rotation=new A.Vector3(Number.MAX_VALUE,Number.MAX_VALUE,Number.MAX_VALUE),this._cache.rotationQuaternion=new A.Quaternion(Number.MAX_VALUE,Number.MAX_VALUE,Number.MAX_VALUE,Number.MAX_VALUE)}_updateCache(t){t||super._updateCache();let e=this._getLockedTargetPosition();e?this._cache.lockedTarget?this._cache.lockedTarget.copyFrom(e):this._cache.lockedTarget=e.clone():this._cache.lockedTarget=null,this._cache.rotation.copyFrom(this.rotation),this.rotationQuaternion&&this._cache.rotationQuaternion.copyFrom(this.rotationQuaternion)}_isSynchronizedViewMatrix(){if(!super._isSynchronizedViewMatrix())return!1;let t=this._getLockedTargetPosition();return(this._cache.lockedTarget?this._cache.lockedTarget.equals(t):!t)&&(this.rotationQuaternion?this.rotationQuaternion.equals(this._cache.rotationQuaternion):this._cache.rotation.equals(this.rotation))}_computeLocalCameraSpeed(){let t=this.getEngine();return this.speed*Math.sqrt(t.getDeltaTime()/(100*t.getFps()))}setTarget(t){this.upVector.normalize(),this._initialFocalDistance=t.subtract(this.position).length(),this.position.z===t.z&&(this.position.z+=T.Epsilon),this._referencePoint.normalize().scaleInPlace(this._initialFocalDistance),this.getScene().useRightHandedSystem?A.Matrix.LookAtRHToRef(this.position,t,A.Vector3.UpReadOnly,E):A.Matrix.LookAtLHToRef(this.position,t,A.Vector3.UpReadOnly,E),E.invert();let e=this.rotationQuaternion||N;A.Quaternion.FromRotationMatrixToRef(E,e),e.toEulerAnglesToRef(this.rotation),this.rotation.z=0}get target(){return this.getTarget()}set target(t){this.setTarget(t)}getTarget(){return this._currentTarget}_decideIfNeedsToMove(){return Math.abs(this.cameraDirection.x)>0||Math.abs(this.cameraDirection.y)>0||Math.abs(this.cameraDirection.z)>0}_updatePosition(){if(this.parent){this.parent.getWorldMatrix().invertToRef(A.TmpVectors.Matrix[0]),A.Vector3.TransformNormalToRef(this.cameraDirection,A.TmpVectors.Matrix[0],A.TmpVectors.Vector3[0]),this._deferredPositionUpdate.addInPlace(A.TmpVectors.Vector3[0]),this._deferOnly?this._deferredUpdated=!0:this.position.copyFrom(this._deferredPositionUpdate);return}this._deferredPositionUpdate.addInPlace(this.cameraDirection),this._deferOnly?this._deferredUpdated=!0:this.position.copyFrom(this._deferredPositionUpdate)}_checkInputs(){let t=this.movement,e=0!==this.cameraDirection.x||0!==this.cameraDirection.y||0!==this.cameraDirection.z;t.panAccumulatedPixels.addInPlace(this.cameraDirection),t.rotationAccumulatedPixels.x+=this.cameraRotation.x,t.rotationAccumulatedPixels.y+=this.cameraRotation.y,t.computeCurrentFrameDeltas(),this.cameraDirection.copyFrom(t.panDeltaCurrentFrame),this.cameraRotation.set(t.rotationDeltaCurrentFrame.x,t.rotationDeltaCurrentFrame.y);let i=this.speed*this._panningEpsilon;!e&&Math.abs(this.cameraDirection.x)<i&&Math.abs(this.cameraDirection.y)<i&&Math.abs(this.cameraDirection.z)<i&&(this.cameraDirection.setAll(0),t.resetPanVelocity());let n=this.invertRotation?-this.inverseRotationSpeed:1,a=this._decideIfNeedsToMove(),r=!!(this.cameraRotation.x||this.cameraRotation.y);this._deferredUpdated=!1,this._deferredRotationUpdate.copyFrom(this.rotation),this._deferredPositionUpdate.copyFrom(this.position),this.rotationQuaternion&&this._deferredRotationQuaternionUpdate.copyFrom(this.rotationQuaternion),a&&this._updatePosition(),r&&(this.rotationQuaternion&&this.rotationQuaternion.toEulerAnglesToRef(this._deferredRotationUpdate),this._deferredRotationUpdate.x+=this.cameraRotation.x*n,this._deferredRotationUpdate.y+=this.cameraRotation.y*n,!this.noRotationConstraint&&(this._deferredRotationUpdate.x>1.570796&&(this._deferredRotationUpdate.x=1.570796),this._deferredRotationUpdate.x<-1.570796&&(this._deferredRotationUpdate.x=-1.570796)),this._deferOnly?this._deferredUpdated=!0:this.rotation.copyFrom(this._deferredRotationUpdate),this.rotationQuaternion&&this._deferredRotationUpdate.lengthSquared()&&(A.Quaternion.RotationYawPitchRollToRef(this._deferredRotationUpdate.y,this._deferredRotationUpdate.x,this._deferredRotationUpdate.z,this._deferredRotationQuaternionUpdate),this._deferOnly?this._deferredUpdated=!0:this.rotationQuaternion.copyFrom(this._deferredRotationQuaternionUpdate))),this.cameraDirection.setAll(0),this.cameraRotation.set(0,0),super._checkInputs()}_updateCameraRotationMatrix(){this.rotationQuaternion?this.rotationQuaternion.toRotationMatrix(this._cameraRotationMatrix):A.Matrix.RotationYawPitchRollToRef(this.rotation.y,this.rotation.x,this.rotation.z,this._cameraRotationMatrix)}_rotateUpVectorWithCameraRotationMatrix(){return A.Vector3.TransformNormalToRef(A.Vector3.UpReadOnly,this._cameraRotationMatrix,this.upVector),this}_getViewMatrix(){return this.lockedTarget&&this.setTarget(this._getLockedTargetPosition()),this._updateCameraRotationMatrix(),this.rotationQuaternion&&this._cachedQuaternionRotationZ!=this.rotationQuaternion.z?(this._rotateUpVectorWithCameraRotationMatrix(),this._cachedQuaternionRotationZ=this.rotationQuaternion.z):this._cachedRotationZ!==this.rotation.z&&(this._rotateUpVectorWithCameraRotationMatrix(),this._cachedRotationZ=this.rotation.z),A.Vector3.TransformCoordinatesToRef(this._referencePoint,this._cameraRotationMatrix,this._transformedReferencePoint),this.position.addToRef(this._transformedReferencePoint,this._currentTarget),this.updateUpVectorFromRotation&&(this.rotationQuaternion?O.Axis.Y.rotateByQuaternionToRef(this.rotationQuaternion,this.upVector):(A.Quaternion.FromEulerVectorToRef(this.rotation,N),O.Axis.Y.rotateByQuaternionToRef(N,this.upVector))),this._computeViewMatrix(this.position,this._currentTarget,this.upVector),this._viewMatrix}_computeViewMatrix(t,e,i){if(this.getScene().useRightHandedSystem?A.Matrix.LookAtRHToRef(t,e,i,this._viewMatrix):A.Matrix.LookAtLHToRef(t,e,i,this._viewMatrix),this.parent){let t=this.parent.getWorldMatrix();this._viewMatrix.invert(),this._viewMatrix.multiplyToRef(t,this._viewMatrix),this._viewMatrix.invert(),this._markSyncedWithParent()}}createRigCamera(t,e){if(this.cameraRigMode!==I.Camera.RIG_MODE_NONE){let e=new m(t,this.position.clone(),this.getScene());return e.isRigCamera=!0,e.rigParent=this,this.cameraRigMode===I.Camera.RIG_MODE_VR&&(this.rotationQuaternion||(this.rotationQuaternion=new A.Quaternion),e._cameraRigParams={},e.rotationQuaternion=new A.Quaternion),e.mode=this.mode,e.orthoLeft=this.orthoLeft,e.orthoRight=this.orthoRight,e.orthoTop=this.orthoTop,e.orthoBottom=this.orthoBottom,e}return null}_updateRigCameras(){let t=this._rigCameras[0],e=this._rigCameras[1];switch(this.computeWorldMatrix(),this.cameraRigMode){case I.Camera.RIG_MODE_STEREOSCOPIC_ANAGLYPH:case I.Camera.RIG_MODE_STEREOSCOPIC_SIDEBYSIDE_PARALLEL:case I.Camera.RIG_MODE_STEREOSCOPIC_SIDEBYSIDE_CROSSEYED:case I.Camera.RIG_MODE_STEREOSCOPIC_OVERUNDER:case I.Camera.RIG_MODE_STEREOSCOPIC_INTERLACED:{let i=this.cameraRigMode===I.Camera.RIG_MODE_STEREOSCOPIC_SIDEBYSIDE_CROSSEYED?1:-1,n=this.cameraRigMode===I.Camera.RIG_MODE_STEREOSCOPIC_SIDEBYSIDE_CROSSEYED?-1:1;this._getRigCamPositionAndTarget(this._cameraRigParams.stereoHalfAngle*i,t),this._getRigCamPositionAndTarget(this._cameraRigParams.stereoHalfAngle*n,e);break}case I.Camera.RIG_MODE_VR:t.rotationQuaternion&&e.rotationQuaternion&&this.rotationQuaternion?(t.rotationQuaternion.copyFrom(this.rotationQuaternion),e.rotationQuaternion.copyFrom(this.rotationQuaternion)):(t.rotation.copyFrom(this.rotation),e.rotation.copyFrom(this.rotation)),t.position.copyFrom(this.position),e.position.copyFrom(this.position)}super._updateRigCameras()}_getRigCamPositionAndTarget(t,e){this.getTarget().subtractToRef(this.position,m._TargetFocalPoint),m._TargetFocalPoint.normalize().scaleInPlace(this._initialFocalDistance);let i=m._TargetFocalPoint.addInPlace(this.position);A.Matrix.TranslationToRef(-i.x,-i.y,-i.z,m._TargetTransformMatrix),m._TargetTransformMatrix.multiplyToRef(A.Matrix.RotationAxis(e.upVector,t),m._RigCamTransformMatrix),A.Matrix.TranslationToRef(i.x,i.y,i.z,m._TargetTransformMatrix),m._RigCamTransformMatrix.multiplyToRef(m._TargetTransformMatrix,m._RigCamTransformMatrix),A.Vector3.TransformCoordinatesToRef(this.position,m._RigCamTransformMatrix,e.position),e.setTarget(i)}getClassName(){return"TargetCamera"}},p="function"==typeof Symbol&&Symbol.metadata?Object.create(r[Symbol.metadata]??null):void 0,e=[(0,f.serialize)()],i=[(0,f.serializeAsVector3)()],n=[(0,f.serialize)()],a=[(0,f.serializeAsMeshReference)("lockedTargetId")],(0,g.__esDecorate)(null,null,e,{kind:"field",name:"updateUpVectorFromRotation",static:!1,private:!1,access:{has:t=>"updateUpVectorFromRotation"in t,get:t=>t.updateUpVectorFromRotation,set:(t,e)=>{t.updateUpVectorFromRotation=e}},metadata:p},s,o),(0,g.__esDecorate)(null,null,i,{kind:"field",name:"rotation",static:!1,private:!1,access:{has:t=>"rotation"in t,get:t=>t.rotation,set:(t,e)=>{t.rotation=e}},metadata:p},h,l),(0,g.__esDecorate)(null,null,n,{kind:"field",name:"speed",static:!1,private:!1,access:{has:t=>"speed"in t,get:t=>t.speed,set:(t,e)=>{t.speed=e}},metadata:p},c,u),(0,g.__esDecorate)(null,null,a,{kind:"field",name:"lockedTarget",static:!1,private:!1,access:{has:t=>"lockedTarget"in t,get:t=>t.lockedTarget,set:(t,e)=>{t.lockedTarget=e}},metadata:p},d,_),p&&Object.defineProperty(m,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:p}),m._RigCamTransformMatrix=new A.Matrix,m._TargetTransformMatrix=new A.Matrix,m._TargetFocalPoint=new A.Vector3,m);t.s(["TargetCamera",0,P],82571);var R=t.i(16347),b=t.i(2060),C={};t.s(["CameraInputTypes",0,C,"CameraInputsManager",0,class{constructor(t){this.attachedToElement=!1,this.attached={},this.camera=t,this.checkInputs=()=>{}}add(t){let e=t.getSimpleName();this.attached[e]?R.Logger.Warn("camera input of type "+e+" already exists on camera"):(this.attached[e]=t,t.camera=this.camera,t.checkInputs&&(this.checkInputs=this._addCheckInputs(t.checkInputs.bind(t))),this.attachedToElement&&t.attachControl(this.noPreventDefault))}remove(t){for(let e in this.attached){let i=this.attached[e];if(i===t){i.detachControl(),i.camera=null,delete this.attached[e],this.rebuildInputCheck();return}}}removeByType(t){for(let e in this.attached){let i=this.attached[e];i.getClassName()===t&&(i.detachControl(),i.camera=null,delete this.attached[e],this.rebuildInputCheck())}}_addCheckInputs(t){let e=this.checkInputs;return()=>{e(),t()}}attachInput(t){this.attachedToElement&&t.attachControl(this.noPreventDefault)}attachElement(t=!1){if(!this.attachedToElement)for(let e in t=!I.Camera.ForceAttachControlToAlwaysPreventDefault&&t,this.attachedToElement=!0,this.noPreventDefault=t,this.attached)this.attached[e].attachControl(t)}detachElement(t=!1){for(let e in this.attached)this.attached[e].detachControl(),t&&(this.attached[e].camera=null);this.attachedToElement=!1}rebuildInputCheck(){for(let t in this.checkInputs=()=>{},this.attached){let e=this.attached[t];e.checkInputs&&(this.checkInputs=this._addCheckInputs(e.checkInputs.bind(e)))}}clear(){this.attachedToElement&&this.detachElement(!0),this.attached={},this.attachedToElement=!1,this.checkInputs=()=>{}}serialize(t){let e={};for(let t in this.attached){let i=this.attached[t],n=b.SerializationHelper.Serialize(i);e[i.getClassName()]=n}t.inputsmgr=e}parse(t){let e=t.inputsmgr;if(e)for(let t in this.clear(),e){let i=C[t];if(i){let n=e[t],a=b.SerializationHelper.Parse(()=>new i,n,null);this.add(a)}}else for(let e in this.attached){let i=C[this.attached[e].getClassName()];if(i){let n=b.SerializationHelper.Parse(()=>new i,t,null);this.remove(this.attached[e]),this.add(n)}}}}],25970)},5742,t=>{t.v(e=>Promise.all(["static/chunks/0rykrf_vofbad.js"].map(e=>t.l(e))).then(()=>e(12838)))}]);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,59952,e=>{"use strict";var i=e.i(47150);e.i(97793),e.i(36113);let t="defaultUboDeclaration",r=`uniform diffuseLeftColor: vec4f;uniform diffuseRightColor: vec4f;uniform opacityParts: vec4f;uniform reflectionLeftColor: vec4f;uniform reflectionRightColor: vec4f;uniform refractionLeftColor: vec4f;uniform refractionRightColor: vec4f;uniform emissiveLeftColor: vec4f;uniform emissiveRightColor: vec4f;uniform vDiffuseInfos: vec2f;uniform vAmbientInfos: vec2f;uniform vOpacityInfos: vec2f;uniform vEmissiveInfos: vec2f;uniform vLightmapInfos: vec2f;uniform vSpecularInfos: vec2f;uniform vBumpInfos: vec3f;uniform diffuseMatrix: mat4x4f;uniform ambientMatrix: mat4x4f;uniform opacityMatrix: mat4x4f;uniform emissiveMatrix: mat4x4f;uniform lightmapMatrix: mat4x4f;uniform specularMatrix: mat4x4f;uniform bumpMatrix: mat4x4f;uniform vTangentSpaceParams: vec2f;uniform pointSize: f32;uniform alphaCutOff: f32;uniform refractionMatrix: mat4x4f;uniform vRefractionInfos: vec4f;uniform vRefractionPosition: vec3f;uniform vRefractionSize: vec3f;uniform vSpecularColor: vec4f;uniform vEmissiveColor: vec3f;uniform vDiffuseColor: vec4f;uniform vAmbientColor: vec3f;uniform cameraInfo: vec4f;uniform vTextureRepetitionHexTilingParams: vec4f;uniform vReflectionInfos: vec2f;uniform reflectionMatrix: mat4x4f;uniform vReflectionPosition: vec3f;uniform vReflectionSize: vec3f;
|
|
2
2
|
#define ADDITIONAL_UBO_DECLARATION
|
|
3
3
|
#include<sceneUboDeclaration>
|
|
4
4
|
#include<meshUboDeclaration>
|
|
5
|
-
`;i.ShaderStore.IncludesShadersStoreWGSL[t]||(i.ShaderStore.IncludesShadersStoreWGSL[t]=r),e.s(["defaultUboDeclarationWGSL",0,{name:t,shader:r}])},
|
|
5
|
+
`;i.ShaderStore.IncludesShadersStoreWGSL[t]||(i.ShaderStore.IncludesShadersStoreWGSL[t]=r),e.s(["defaultUboDeclarationWGSL",0,{name:t,shader:r}])},10959,e=>{"use strict";var i=e.i(47150),t=e.i(97793),r=e.i(36113),n=e.i(59952),a=e.i(26579),f=e.i(55880),o=e.i(57568),d=e.i(21550),l=e.i(11),c=e.i(44295),s=e.i(47569),v=e.i(27283),u=e.i(49283),m=e.i(63593),E=e.i(53318);let I="lightVxFragmentDeclaration",A=`#ifdef LIGHT{X}
|
|
6
6
|
uniform vLightData{X}: vec4f;uniform vLightDiffuse{X}: vec4f;
|
|
7
7
|
#ifdef SPECULARTERM
|
|
8
8
|
uniform vLightSpecular{X}: vec4f;
|
|
@@ -29,7 +29,7 @@ uniform vLightGround{X}: vec3f;
|
|
|
29
29
|
uniform vLightWidth{X}: vec4f;uniform vLightHeight{X}: vec4f;
|
|
30
30
|
#endif
|
|
31
31
|
#endif
|
|
32
|
-
`;i.ShaderStore.IncludesShadersStoreWGSL[I]||(i.ShaderStore.IncludesShadersStoreWGSL[I]=A);var p=e.i(
|
|
32
|
+
`;i.ShaderStore.IncludesShadersStoreWGSL[I]||(i.ShaderStore.IncludesShadersStoreWGSL[I]=A);var p=e.i(15363),_=e.i(92459),N=e.i(22253),S=e.i(73317),x=e.i(30408),M=e.i(39775),V=e.i(61408),L=e.i(34609),D=e.i(58890),T=e.i(92928),R=e.i(67125),U=e.i(21515),G=e.i(63639),O=e.i(50936),h=e.i(19276),W=e.i(4534),g=e.i(80849),C=e.i(67196),P=e.i(4825),X=e.i(52362);let F="defaultVertexShader",b=`#include<defaultUboDeclaration>
|
|
33
33
|
#define CUSTOM_VERTEX_BEGIN
|
|
34
34
|
#ifndef USE_VERTEX_PULLING
|
|
35
35
|
attribute position: vec3f;
|
|
@@ -210,4 +210,4 @@ vertexOutputs.vMainUV2=uv2Updated;
|
|
|
210
210
|
#include<logDepthVertex>
|
|
211
211
|
#define CUSTOM_VERTEX_MAIN_END
|
|
212
212
|
}
|
|
213
|
-
`;for(let e of(i.ShaderStore.ShadersStoreWGSL[F]||(i.ShaderStore.ShadersStoreWGSL[F]=b),[t.sceneUboDeclarationWGSL,r.meshUboDeclarationWGSL,n.defaultUboDeclarationWGSL,a.uvAttributeDeclarationWGSL,f.helperFunctionsWGSL,o.bonesDeclarationWGSL,d.bakedVertexAnimationDeclarationWGSL,l.instancesDeclarationWGSL,c.prePassVertexDeclarationWGSL,s.mainUVVaryingDeclarationWGSL,v.samplerVertexDeclarationWGSL,u.bumpVertexDeclarationWGSL,m.clipPlaneVertexDeclarationWGSL,E.fogVertexDeclarationWGSL,{name:I,shader:A},p.lightVxUboDeclarationWGSL,_.morphTargetsVertexGlobalDeclarationWGSL,N.morphTargetsVertexDeclarationWGSL,S.logDepthDeclarationWGSL,x.vertexPullingDeclarationWGSL,M.vertexPullingVertexWGSL,V.morphTargetsVertexGlobalWGSL,L.morphTargetsVertexWGSL,D.instancesVertexWGSL,T.bonesVertexWGSL,R.bakedVertexAnimationWGSL,U.prePassVertexWGSL,G.uvVariableDeclarationWGSL,O.samplerVertexImplementationWGSL,h.bumpVertexWGSL,W.clipPlaneVertexWGSL,g.fogVertexWGSL,C.shadowsVertexWGSL,P.vertexColorMixingWGSL,X.logDepthVertexWGSL]))i.ShaderStore.IncludesShadersStoreWGSL[e.name]||(i.ShaderStore.IncludesShadersStoreWGSL[e.name]=e.shader);e.s(["defaultVertexShaderWGSL",0,{name:F,shader:b}],
|
|
213
|
+
`;for(let e of(i.ShaderStore.ShadersStoreWGSL[F]||(i.ShaderStore.ShadersStoreWGSL[F]=b),[t.sceneUboDeclarationWGSL,r.meshUboDeclarationWGSL,n.defaultUboDeclarationWGSL,a.uvAttributeDeclarationWGSL,f.helperFunctionsWGSL,o.bonesDeclarationWGSL,d.bakedVertexAnimationDeclarationWGSL,l.instancesDeclarationWGSL,c.prePassVertexDeclarationWGSL,s.mainUVVaryingDeclarationWGSL,v.samplerVertexDeclarationWGSL,u.bumpVertexDeclarationWGSL,m.clipPlaneVertexDeclarationWGSL,E.fogVertexDeclarationWGSL,{name:I,shader:A},p.lightVxUboDeclarationWGSL,_.morphTargetsVertexGlobalDeclarationWGSL,N.morphTargetsVertexDeclarationWGSL,S.logDepthDeclarationWGSL,x.vertexPullingDeclarationWGSL,M.vertexPullingVertexWGSL,V.morphTargetsVertexGlobalWGSL,L.morphTargetsVertexWGSL,D.instancesVertexWGSL,T.bonesVertexWGSL,R.bakedVertexAnimationWGSL,U.prePassVertexWGSL,G.uvVariableDeclarationWGSL,O.samplerVertexImplementationWGSL,h.bumpVertexWGSL,W.clipPlaneVertexWGSL,g.fogVertexWGSL,C.shadowsVertexWGSL,P.vertexColorMixingWGSL,X.logDepthVertexWGSL]))i.ShaderStore.IncludesShadersStoreWGSL[e.name]||(i.ShaderStore.IncludesShadersStoreWGSL[e.name]=e.shader);e.s(["defaultVertexShaderWGSL",0,{name:F,shader:b}],10959)}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,85303,e=>{"use strict";var t=e.i(94559);let i=!1;i=!0,t.ThinEngine.prototype.setAlphaMode=function(e,t=!1,i=0){if(this._alphaMode[i]===e){if(!t){let t=0===e;this.depthCullingState.depthMask!==t&&(this.depthCullingState.depthMask=t)}return}let r=0===e;this._alphaState.setAlphaBlend(!r,i),this._alphaState.setAlphaMode(e,i),t||(this.depthCullingState.depthMask=r),this._alphaMode[i]=e};let r=!1;!function(){if(r)return;r=!0;let e=new WeakMap,i=new WeakMap,n=new WeakMap,s=new WeakMap;t.ThinEngine.prototype.getAlphaToCoverage=function(){return e.get(this)??!1},t.ThinEngine.prototype.setAlphaToCoverage=function(t){e.get(this)===t&&(!this._gl||i.get(this)===this._gl)||(e.set(this,t),this._gl&&(t?this._gl.enable(this._gl.SAMPLE_ALPHA_TO_COVERAGE):this._gl.disable(this._gl.SAMPLE_ALPHA_TO_COVERAGE),i.set(this,this._gl)))},Object.defineProperty(t.ThinEngine.prototype,"currentSampleCount",{get:function(){return this._currentRenderTarget?this._currentRenderTarget.samples:this._gl?(s.get(this)!==this._gl&&(n.set(this,this._gl.getContextAttributes()?.antialias?Math.max(1,this._gl.getParameter(this._gl.SAMPLES)):1),s.set(this,this._gl)),n.get(this)):1},enumerable:!1,configurable:!0})}();var n=e.i(8636),s=e.i(16347),a=e.i(44265);let l=!1;function h(e,t,i,r){let n,s=1;1===r?n=new Float32Array(t*i*4):2===r?(n=new Uint16Array(t*i*4),s=15360):n=7===r?new Uint32Array(t*i*4):new Uint8Array(t*i*4);for(let r=0;r<t;r++)for(let a=0;a<i;a++){let i=(a*t+r)*3,l=(a*t+r)*4;n[l+0]=e[i+0],n[l+1]=e[i+1],n[l+2]=e[i+2],n[l+3]=s}return n}function u(e){return function(t,i,r,s,a,l,h,u,_=null,o=0){let f=e?this._gl.TEXTURE_3D:this._gl.TEXTURE_2D_ARRAY,c=new n.InternalTexture(this,e?10:11);c.baseWidth=i,c.baseHeight=r,c.baseDepth=s,c.width=i,c.height=r,c.depth=s,c.format=a,c.type=o,c.generateMipMaps=l,c.samplingMode=u,e?c.is3D=!0:c.is2DArray=!0,this._doNotHandleContextLost||(c._bufferView=t),e?this.updateRawTexture3D(c,t,a,h,_,o):this.updateRawTexture2DArray(c,t,a,h,_,o),this._bindTextureDirectly(f,c,!0);let p=this._getSamplingParameters(u,l);return this._gl.texParameteri(f,this._gl.TEXTURE_MAG_FILTER,p.mag),this._gl.texParameteri(f,this._gl.TEXTURE_MIN_FILTER,p.min),l&&this._gl.generateMipmap(f),this._bindTextureDirectly(f,null),this._internalTexturesCache.push(c),c}}function _(e){return function(t,i,r,n,s=null,a=0){let l=e?this._gl.TEXTURE_3D:this._gl.TEXTURE_2D_ARRAY,h=this._getWebGLTextureType(a),u=this._getInternalFormat(r),_=this._getRGBABufferInternalSizedFormat(a,r);this._bindTextureDirectly(l,t,!0),this._unpackFlipY(void 0===n||!!n),this._doNotHandleContextLost||(t._bufferView=i,t.format=r,t.invertY=n,t._compression=s),t.width%4!=0&&this._gl.pixelStorei(this._gl.UNPACK_ALIGNMENT,1),s&&i?this._gl.compressedTexImage3D(l,0,this.getCaps().s3tc[s],t.width,t.height,t.depth,0,i):this._gl.texImage3D(l,0,_,t.width,t.height,t.depth,0,u,h,i),t.generateMipMaps&&this._gl.generateMipmap(l),this._bindTextureDirectly(l,null),t.isReady=!0}}l=!0,t.ThinEngine.prototype.updateRawTexture=function(e,t,i,r,n=null,s=0,a=!1){if(!e)return;let l=this._getRGBABufferInternalSizedFormat(s,i,a),h=this._getInternalFormat(i),u=this._getWebGLTextureType(s);this._bindTextureDirectly(this._gl.TEXTURE_2D,e,!0),this._unpackFlipY(void 0===r||!!r),this._doNotHandleContextLost||(e._bufferView=t,e.format=i,e.type=s,e.invertY=r,e._compression=n),e.width%4!=0&&this._gl.pixelStorei(this._gl.UNPACK_ALIGNMENT,1),n&&t?this._gl.compressedTexImage2D(this._gl.TEXTURE_2D,0,this.getCaps().s3tc[n],e.width,e.height,0,t):this._gl.texImage2D(this._gl.TEXTURE_2D,0,l,e.width,e.height,0,h,u,t),e.generateMipMaps&&this._gl.generateMipmap(this._gl.TEXTURE_2D),this._bindTextureDirectly(this._gl.TEXTURE_2D,null),e.isReady=!0},t.ThinEngine.prototype.createRawTexture=function(e,t,i,r,s,a,l,h=null,u=0,_=0,o=!1){let f=new n.InternalTexture(this,3);f.baseWidth=t,f.baseHeight=i,f.width=t,f.height=i,f.format=r,f.generateMipMaps=s,f.samplingMode=l,f.invertY=a,f._compression=h,f.type=u,f._useSRGBBuffer=this._getUseSRGBBuffer(o,!s),this._doNotHandleContextLost||(f._bufferView=e),this.updateRawTexture(f,e,r,a,h,u,f._useSRGBBuffer),this._bindTextureDirectly(this._gl.TEXTURE_2D,f,!0);let c=this._getSamplingParameters(l,s);return this._gl.texParameteri(this._gl.TEXTURE_2D,this._gl.TEXTURE_MAG_FILTER,c.mag),this._gl.texParameteri(this._gl.TEXTURE_2D,this._gl.TEXTURE_MIN_FILTER,c.min),s&&this._gl.generateMipmap(this._gl.TEXTURE_2D),this._bindTextureDirectly(this._gl.TEXTURE_2D,null),this._internalTexturesCache.push(f),f},t.ThinEngine.prototype.createRawCubeTexture=function(e,t,i,r,l,h,u,_=null){let o=this._gl,f=new n.InternalTexture(this,8);f.isCube=!0,f.format=i,f.type=r,this._doNotHandleContextLost||(f._bufferViewArray=e);let c=this._getWebGLTextureType(r),p=this._getInternalFormat(i);if(p===o.RGB&&(p=o.RGBA),c!==o.FLOAT||this._caps.textureFloatLinearFiltering?c!==this._gl.HALF_FLOAT_OES||this._caps.textureHalfFloatLinearFiltering?c!==o.FLOAT||this._caps.textureFloatRender?c!==o.HALF_FLOAT||this._caps.colorBufferFloat||(l=!1,s.Logger.Warn("Render to half float textures is not supported. Mipmap generation forced to false.")):(l=!1,s.Logger.Warn("Render to float textures is not supported. Mipmap generation forced to false.")):(l=!1,u=1,s.Logger.Warn("Half float texture filtering is not supported. Mipmap generation and sampling mode are forced to false and TEXTURE_NEAREST_SAMPLINGMODE, respectively.")):(l=!1,u=1,s.Logger.Warn("Float texture filtering is not supported. Mipmap generation and sampling mode are forced to false and TEXTURE_NEAREST_SAMPLINGMODE, respectively.")),f.width=t,f.height=t,f.invertY=h,f._compression=_,!this.needPOTTextures||(0,a.IsExponentOfTwo)(f.width)&&(0,a.IsExponentOfTwo)(f.height)||(l=!1),e)this.updateRawCubeTexture(f,e,i,r,h,_);else{let e=this._getRGBABufferInternalSizedFormat(r);this._bindTextureDirectly(o.TEXTURE_CUBE_MAP,f,!0);for(let t=0;t<6;t++)_?o.compressedTexImage2D(o.TEXTURE_CUBE_MAP_POSITIVE_X+t,0,this.getCaps().s3tc[_],f.width,f.height,0,void 0):o.texImage2D(o.TEXTURE_CUBE_MAP_POSITIVE_X+t,0,e,f.width,f.height,0,p,c,null);this._bindTextureDirectly(this._gl.TEXTURE_CUBE_MAP,null)}this._bindTextureDirectly(this._gl.TEXTURE_CUBE_MAP,f,!0),e&&l&&this._gl.generateMipmap(this._gl.TEXTURE_CUBE_MAP);let T=this._getSamplingParameters(u,l);return o.texParameteri(o.TEXTURE_CUBE_MAP,o.TEXTURE_MAG_FILTER,T.mag),o.texParameteri(o.TEXTURE_CUBE_MAP,o.TEXTURE_MIN_FILTER,T.min),o.texParameteri(o.TEXTURE_CUBE_MAP,o.TEXTURE_WRAP_S,o.CLAMP_TO_EDGE),o.texParameteri(o.TEXTURE_CUBE_MAP,o.TEXTURE_WRAP_T,o.CLAMP_TO_EDGE),this._bindTextureDirectly(o.TEXTURE_CUBE_MAP,null),f.generateMipMaps=l,f.samplingMode=u,f.isReady=!0,f},t.ThinEngine.prototype.updateRawCubeTexture=function(e,t,i,r,n,s=null,l=0){e._bufferViewArray=t,e.format=i,e.type=r,e.invertY=n,e._compression=s;let u=this._gl,_=this._getWebGLTextureType(r),o=this._getInternalFormat(i),f=this._getRGBABufferInternalSizedFormat(r),c=!1;o===u.RGB&&(o=u.RGBA,c=!0),this._bindTextureDirectly(u.TEXTURE_CUBE_MAP,e,!0),this._unpackFlipY(void 0===n||!!n),e.width%4!=0&&u.pixelStorei(u.UNPACK_ALIGNMENT,1);for(let i=0;i<6;i++){let n=t[i];s?u.compressedTexImage2D(u.TEXTURE_CUBE_MAP_POSITIVE_X+i,l,this.getCaps().s3tc[s],e.width,e.height,0,n):(c&&(n=h(n,e.width,e.height,r)),u.texImage2D(u.TEXTURE_CUBE_MAP_POSITIVE_X+i,l,f,e.width,e.height,0,o,_,n))}(!this.needPOTTextures||(0,a.IsExponentOfTwo)(e.width)&&(0,a.IsExponentOfTwo)(e.height))&&e.generateMipMaps&&0===l&&this._gl.generateMipmap(this._gl.TEXTURE_CUBE_MAP),this._bindTextureDirectly(this._gl.TEXTURE_CUBE_MAP,null),e.isReady=!0},t.ThinEngine.prototype.createRawCubeTextureFromUrl=function(e,t,i,r,n,s,a,l,u=null,_=null,o=3,f=!1){let c=this._gl,p=this.createRawCubeTexture(null,i,r,n,!s,f,o,null);t?.addPendingData(p),p.url=e,p.isReady=!1,this._internalTexturesCache.push(p);let T=(e,i)=>{t?.removePendingData(p),_&&_(e?e.status+" "+e.statusText:"Failed to parse texture data",i)},d=async e=>{if(!p._hardwareTexture)return;let i=a(e);if(!i)return;let s=i instanceof Promise?await i:i,_=p.width;if(l){let e=this._getWebGLTextureType(n),t=this._getInternalFormat(r),i=this._getRGBABufferInternalSizedFormat(n),a=!1;t===c.RGB&&(t=c.RGBA,a=!0),this._bindTextureDirectly(c.TEXTURE_CUBE_MAP,p,!0),this._unpackFlipY(!1);let u=l(s);for(let r=0;r<u.length;r++){let s=_>>r;for(let l=0;l<6;l++){let _=u[r][l];a&&(_=h(_,s,s,n)),c.texImage2D(l,r,i,s,s,0,t,e,_)}}this._bindTextureDirectly(c.TEXTURE_CUBE_MAP,null)}else this.updateRawCubeTexture(p,s,r,n,f);p.isReady=!0,t?.removePendingData(p),p.onLoadedObservable.notifyObservers(p),p.onLoadedObservable.clear(),u&&u()};return this._loadFile(e,e=>{d(e).catch(e=>{T(void 0,e)})},void 0,t?.offlineProvider,!0,T),p},t.ThinEngine.prototype.createRawTexture2DArray=u(!1),t.ThinEngine.prototype.createRawTexture3D=u(!0),t.ThinEngine.prototype.updateRawTexture2DArray=_(!1),t.ThinEngine.prototype.updateRawTexture3D=_(!0);var o=e.i(98955);let f=!1;f=!0,t.ThinEngine.prototype._readTexturePixelsSync=function(e,t,i,r=-1,n=0,s=null,a=!0,l=!1,h=0,u=0){let _=this._gl;if(!_)throw Error("Engine does not have gl rendering context.");if(!this._dummyFramebuffer){let e=_.createFramebuffer();if(!e)throw Error("Unable to create dummy framebuffer");this._dummyFramebuffer=e}_.bindFramebuffer(_.FRAMEBUFFER,this._dummyFramebuffer),r>-1&&(e.is2DArray||e.is3D)?_.framebufferTextureLayer(_.FRAMEBUFFER,_.COLOR_ATTACHMENT0,e._hardwareTexture?.underlyingResource,n,r):r>-1?_.framebufferTexture2D(_.FRAMEBUFFER,_.COLOR_ATTACHMENT0,_.TEXTURE_CUBE_MAP_POSITIVE_X+r,e._hardwareTexture?.underlyingResource,n):_.framebufferTexture2D(_.FRAMEBUFFER,_.COLOR_ATTACHMENT0,_.TEXTURE_2D,e._hardwareTexture?.underlyingResource,n);let f=void 0!==e.type?this._getWebGLTextureType(e.type):_.UNSIGNED_BYTE;return l?s||(s=(0,o.allocateAndCopyTypedBuffer)(e.type,4*t*i)):f===_.UNSIGNED_BYTE?(s||(s=new Uint8Array(4*t*i)),f=_.UNSIGNED_BYTE):(s||(s=new Float32Array(4*t*i)),f=_.FLOAT),a&&this.flushFramebuffer(),_.readPixels(h,u,t,i,_.RGBA,f,s),_.bindFramebuffer(_.FRAMEBUFFER,this._currentFramebuffer),s},t.ThinEngine.prototype._readTexturePixels=function(e,t,i,r=-1,n=0,s=null,a=!0,l=!1,h=0,u=0){return Promise.resolve(this._readTexturePixelsSync(e,t,i,r,n,s,a,l,h,u))},(0,e.i(7102).RegisterEngineDynamicBuffer)();let c=!1;c=!0,t.ThinEngine.prototype._createDepthStencilCubeTexture=function(e,t){let i=new n.InternalTexture(this,12);if(i.isCube=!0,1===this.webGLVersion)return s.Logger.Error("Depth cube texture is not supported by WebGL 1."),i;let r={bilinearFiltering:!1,comparisonFunction:0,generateStencil:!1,...t},a=this._gl;this._bindTextureDirectly(a.TEXTURE_CUBE_MAP,i,!0),this._setupDepthStencilTexture(i,e,r.bilinearFiltering,r.comparisonFunction);for(let t=0;t<6;t++)r.generateStencil?a.texImage2D(a.TEXTURE_CUBE_MAP_POSITIVE_X+t,0,a.DEPTH24_STENCIL8,e,e,0,a.DEPTH_STENCIL,a.UNSIGNED_INT_24_8,null):a.texImage2D(a.TEXTURE_CUBE_MAP_POSITIVE_X+t,0,a.DEPTH_COMPONENT24,e,e,0,a.DEPTH_COMPONENT,a.UNSIGNED_INT,null);return this._bindTextureDirectly(a.TEXTURE_CUBE_MAP,null),this._internalTexturesCache.push(i),i},t.ThinEngine.prototype._setCubeMapTextureParams=function(e,t,i){let r=this._gl;r.texParameteri(r.TEXTURE_CUBE_MAP,r.TEXTURE_MAG_FILTER,r.LINEAR),r.texParameteri(r.TEXTURE_CUBE_MAP,r.TEXTURE_MIN_FILTER,t?r.LINEAR_MIPMAP_LINEAR:r.LINEAR),r.texParameteri(r.TEXTURE_CUBE_MAP,r.TEXTURE_WRAP_S,r.CLAMP_TO_EDGE),r.texParameteri(r.TEXTURE_CUBE_MAP,r.TEXTURE_WRAP_T,r.CLAMP_TO_EDGE),e.samplingMode=t?3:2,t&&this.getCaps().textureMaxLevel&&void 0!==i&&i>0&&(r.texParameteri(r.TEXTURE_CUBE_MAP,r.TEXTURE_MAX_LEVEL,i),e._maxLodLevel=i),this._bindTextureDirectly(r.TEXTURE_CUBE_MAP,null)},t.ThinEngine.prototype.createCubeTexture=function(e,t,i,r,n=null,l=null,h,u=null,_=!1,o=0,f=0,c=null,p,T=!1,d=null){let g=this._gl;return this.createCubeTextureBase(e,t,i,!!r,n,l,h,u,_,o,f,c,e=>this._bindTextureDirectly(g.TEXTURE_CUBE_MAP,e,!0),(e,t)=>{let i=this.needPOTTextures?(0,a.GetExponentOfTwo)(t[0].width,this._caps.maxCubemapTextureSize):t[0].width,l=[g.TEXTURE_CUBE_MAP_POSITIVE_X,g.TEXTURE_CUBE_MAP_POSITIVE_Y,g.TEXTURE_CUBE_MAP_POSITIVE_Z,g.TEXTURE_CUBE_MAP_NEGATIVE_X,g.TEXTURE_CUBE_MAP_NEGATIVE_Y,g.TEXTURE_CUBE_MAP_NEGATIVE_Z];this._bindTextureDirectly(g.TEXTURE_CUBE_MAP,e,!0),this._unpackFlipY(!1);let u=h?this._getInternalFormat(h,e._useSRGBBuffer):e._useSRGBBuffer?this._glSRGBExtensionValues.SRGB8_ALPHA8:g.RGBA,_=h?this._getInternalFormat(h):g.RGBA;e._useSRGBBuffer&&1===this.webGLVersion&&(_=u);for(let e=0;e<l.length;e++)if(t[e].width!==i||t[e].height!==i){if(this._prepareWorkingCanvas(),!this._workingCanvas||!this._workingContext)return void s.Logger.Warn("Cannot create canvas to resize texture.");this._workingCanvas.width=i,this._workingCanvas.height=i,this._workingContext.drawImage(t[e],0,0,t[e].width,t[e].height,0,0,i,i),g.texImage2D(l[e],0,u,_,g.UNSIGNED_BYTE,this._workingCanvas)}else g.texImage2D(l[e],0,u,_,g.UNSIGNED_BYTE,t[e]);r||g.generateMipmap(g.TEXTURE_CUBE_MAP),this._setCubeMapTextureParams(e,!r),e.width=i,e.height=i,e.isReady=!0,h&&(e.format=h),e.onLoadedObservable.notifyObservers(e),e.onLoadedObservable.clear(),n&&n()},!!T,d)},t.ThinEngine.prototype.generateMipMapsForCubemap=function(e,t=!0){if(e.generateMipMaps){let i=this._gl;this._bindTextureDirectly(i.TEXTURE_CUBE_MAP,e,!0),i.generateMipmap(i.TEXTURE_CUBE_MAP),t&&this._bindTextureDirectly(i.TEXTURE_CUBE_MAP,null)}};var p=e.i(43695);class T{get depthStencilTexture(){return this._depthStencilTexture}setDepthStencilTexture(e,t=!0){t&&this._depthStencilTexture&&this._depthStencilTexture.dispose(),this._depthStencilTexture=e,this._generateDepthBuffer=this._generateStencilBuffer=this._depthStencilTextureWithStencil=!1,e&&(this._generateDepthBuffer=!0,this._generateStencilBuffer=this._depthStencilTextureWithStencil=(0,p.HasStencilAspect)(e.format))}get depthStencilTextureWithStencil(){return this._depthStencilTextureWithStencil}get isCube(){return this._isCube}get isMulti(){return this._isMulti}get is2DArray(){return this.layers>0}get is3D(){return this.depth>0}get size(){return this.width}get width(){return this._size.width??this._size}get height(){return this._size.height??this._size}get layers(){return this._size.layers||0}get depth(){return this._size.depth||0}get texture(){return this._textures?.[0]??null}get textures(){return this._textures}get faceIndices(){return this._faceIndices}get layerIndices(){return this._layerIndices}getBaseArrayLayer(e){if(!this._textures)return -1;let t=this._textures[e],i=this._layerIndices?.[e]??0,r=this._faceIndices?.[e]??0;return t.isCube?6*i+r:t.is3D?0:i}get samples(){return this._samples}setSamples(e,t=!0,i=!1){if(this.samples===e&&!i)return e;let r=this._isMulti?this._engine.updateMultipleRenderTargetTextureSampleCount(this,e,t):this._engine.updateRenderTargetTextureSampleCount(this,e);return this._samples=e,r}resolveMSAATextures(){this.isMulti?this._engine.resolveMultiFramebuffer(this):this._engine.resolveFramebuffer(this)}generateMipMaps(){this._engine._currentRenderTarget===this&&(this.isMulti?this._engine.unBindMultiColorAttachmentFramebuffer(this,!0):this._engine.unBindFramebuffer(this,!0)),this.isMulti?this._engine.generateMipMapsMultiFramebuffer(this):this._engine.generateMipMapsFramebuffer(this)}constructor(e,t,i,r,n){this._textures=null,this._faceIndices=null,this._layerIndices=null,this._samples=1,this._attachments=null,this._generateStencilBuffer=!1,this._generateDepthBuffer=!1,this._depthStencilTextureWithStencil=!1,this.disableAutomaticMSAAResolve=!1,this.resolveMSAAColors=!0,this.resolveMSAADepth=!1,this.resolveMSAAStencil=!1,this.depthReadOnly=!1,this.stencilReadOnly=!1,this._isMulti=e,this._isCube=t,this._size=i,this._engine=r,this._depthStencilTexture=null,this.label=n}setTextures(e){Array.isArray(e)?this._textures=e:e?this._textures=[e]:this._textures=null}setTexture(e,t=0,i=!0){this._textures||(this._textures=[]),this._textures[t]!==e&&(this._textures[t]&&i&&this._textures[t].dispose(),this._textures[t]=e)}setLayerAndFaceIndices(e,t){this._layerIndices=e,this._faceIndices=t}setLayerAndFaceIndex(e=0,t,i){this._layerIndices||(this._layerIndices=[]),this._faceIndices||(this._faceIndices=[]),void 0!==t&&t>=0&&(this._layerIndices[e]=t),void 0!==i&&i>=0&&(this._faceIndices[e]=i)}createDepthStencilTexture(e=0,t=!0,i=!1,r=1,n=14,s){return this._depthStencilTexture?.dispose(),this._depthStencilTextureWithStencil=i,this._depthStencilTextureLabel=s,this._depthStencilTexture=this._engine.createDepthStencilTexture(this._size,{bilinearFiltering:t,comparisonFunction:e,generateStencil:i,isCube:this._isCube,samples:r,depthTextureFormat:n,label:s},this),this._depthStencilTexture}_shareDepth(e){this.shareDepth(e)}shareDepth(e){this._depthStencilTexture&&(e._depthStencilTexture&&e._depthStencilTexture.dispose(),e._depthStencilTexture=this._depthStencilTexture,e._depthStencilTextureWithStencil=this._depthStencilTextureWithStencil,this._depthStencilTexture.incrementReferences())}_swapAndDie(e){this.texture&&this.texture._swapAndDie(e),this._textures=null,this.dispose(!0)}_cloneRenderTargetWrapper(){let e=null;if(this._isMulti){let t=this.textures;if(t&&t.length>0){let i=!1,r=t.length,n=-1,s=t[t.length-1]._source;(14===s||12===s)&&(i=!0,n=t[t.length-1].format,r--);let a=[],l=[],h=[],u=[],_=[],o=[],f=[],c={};for(let e=0;e<r;++e){let i=t[e];a.push(i.samplingMode),l.push(i.type),h.push(i.format),void 0!==c[i.uniqueId]?(u.push(-1),f.push(0)):(c[i.uniqueId]=e,i.is2DArray?(u.push(35866),f.push(i.depth)):i.isCube?(u.push(34067),f.push(0)):i.is3D?(u.push(32879),f.push(i.depth)):(u.push(3553),f.push(0))),this._faceIndices&&_.push(this._faceIndices[e]??0),this._layerIndices&&o.push(this._layerIndices[e]??0)}let p={samplingModes:a,generateMipMaps:t[0].generateMipMaps,generateDepthBuffer:this._generateDepthBuffer,generateStencilBuffer:this._generateStencilBuffer,generateDepthTexture:i,depthTextureFormat:n,types:l,formats:h,textureCount:r,targetTypes:u,faceIndex:_,layerIndex:o,layerCounts:f,label:this.label},T={width:this.width,height:this.height,depth:this.depth};e=this._engine.createMultipleRenderTarget(T,p);for(let i=0;i<r;++i){if(-1!==u[i])continue;let r=c[t[i].uniqueId];e.setTexture(e.textures[r],i)}}}else{let t={};if(t.generateDepthBuffer=this._generateDepthBuffer,t.generateMipMaps=this.texture?.generateMipMaps??!1,t.generateStencilBuffer=this._generateStencilBuffer,t.samplingMode=this.texture?.samplingMode,t.type=this.texture?.type,t.format=this.texture?.format,t.noColorAttachment=!this._textures,t.label=this.label,this.isCube)e=this._engine.createRenderTargetCubeTexture(this.width,t);else{let i={width:this.width,height:this.height,layers:this.is2DArray||this.is3D?this.texture?.depth:void 0};e=this._engine.createRenderTargetTexture(i,t)}e.texture&&(e.texture.isReady=!0)}return e}_swapRenderTargetWrapper(e){if(this._textures&&e._textures)for(let t=0;t<this._textures.length;++t)this._textures[t]._swapAndDie(e._textures[t],!1),e._textures[t].isReady=!0;this._depthStencilTexture&&e._depthStencilTexture&&(this._depthStencilTexture._swapAndDie(e._depthStencilTexture),e._depthStencilTexture.isReady=!0),this._textures=null,this._depthStencilTexture=null}_rebuild(){let e=this._cloneRenderTargetWrapper();if(e){if(this._depthStencilTexture){let t=this._depthStencilTexture.samplingMode,i=this._depthStencilTexture.format;e.createDepthStencilTexture(this._depthStencilTexture._comparisonFunction,2===t||3===t||11===t,this._depthStencilTextureWithStencil,this._depthStencilTexture.samples,i,this._depthStencilTextureLabel)}this.samples>1&&e.setSamples(this.samples),e._swapRenderTargetWrapper(this),e.dispose()}}releaseTextures(){if(this._textures)for(let e=0;e<this._textures.length;++e)this._textures[e].dispose();this._textures=null}dispose(e=!1){e||(this._depthStencilTexture?.dispose(),this._depthStencilTexture=null,this.releaseTextures()),this._engine._releaseRenderTargetWrapper(this)}}class d extends T{setDepthStencilTexture(e,t=!0){if(super.setDepthStencilTexture(e,t),!e)return;let i=this._engine,r=this._context,n=e._hardwareTexture;if(n&&e._autoMSAAManagement&&this._MSAAFramebuffer){let t=i._currentFramebuffer;i._bindUnboundFramebuffer(this._MSAAFramebuffer),r.framebufferRenderbuffer(r.FRAMEBUFFER,(0,p.HasStencilAspect)(e.format)?r.DEPTH_STENCIL_ATTACHMENT:r.DEPTH_ATTACHMENT,r.RENDERBUFFER,n.getMSAARenderBuffer()),i._bindUnboundFramebuffer(t)}}constructor(e,t,i,r,n){super(e,t,i,r),this._framebuffer=null,this._depthStencilBuffer=null,this._MSAAFramebuffer=null,this._colorTextureArray=null,this._depthStencilTextureArray=null,this._disposeOnlyFramebuffers=!1,this._currentLOD=0,this._context=n}_cloneRenderTargetWrapper(){let e;return this._colorTextureArray&&this._depthStencilTextureArray?(e=this._engine.createMultiviewRenderTargetTexture(this.width,this.height)).texture.isReady=!0:e=super._cloneRenderTargetWrapper(),e}_swapRenderTargetWrapper(e){super._swapRenderTargetWrapper(e),e._framebuffer=this._framebuffer,e._depthStencilBuffer=this._depthStencilBuffer,e._MSAAFramebuffer=this._MSAAFramebuffer,e._colorTextureArray=this._colorTextureArray,e._depthStencilTextureArray=this._depthStencilTextureArray,this._framebuffer=this._depthStencilBuffer=this._MSAAFramebuffer=this._colorTextureArray=this._depthStencilTextureArray=null}createDepthStencilTexture(e=0,t=!0,i=!1,r=1,n=14,s){if(this._depthStencilBuffer){let e=this._engine,t=e._currentFramebuffer,i=this._context;e._bindUnboundFramebuffer(this._framebuffer),i.framebufferRenderbuffer(i.FRAMEBUFFER,i.DEPTH_STENCIL_ATTACHMENT,i.RENDERBUFFER,null),i.framebufferRenderbuffer(i.FRAMEBUFFER,i.DEPTH_ATTACHMENT,i.RENDERBUFFER,null),i.framebufferRenderbuffer(i.FRAMEBUFFER,i.STENCIL_ATTACHMENT,i.RENDERBUFFER,null),e._bindUnboundFramebuffer(t),i.deleteRenderbuffer(this._depthStencilBuffer),this._depthStencilBuffer=null}return super.createDepthStencilTexture(e,t,i,r,n,s)}shareDepth(e){super.shareDepth(e);let t=this._context,i=this._depthStencilBuffer,r=e._MSAAFramebuffer||e._framebuffer,n=this._engine;e._depthStencilBuffer&&e._depthStencilBuffer!==i&&t.deleteRenderbuffer(e._depthStencilBuffer),e._depthStencilBuffer=i;let s=e._generateStencilBuffer?t.DEPTH_STENCIL_ATTACHMENT:t.DEPTH_ATTACHMENT;n._bindUnboundFramebuffer(r),t.framebufferRenderbuffer(t.FRAMEBUFFER,s,t.RENDERBUFFER,i),n._bindUnboundFramebuffer(null)}_bindTextureRenderTarget(e,t=0,i,r=0){let n,s=e._hardwareTexture;if(!s)return;let a=this._framebuffer,l=this._engine,h=l._currentFramebuffer;if(l._bindUnboundFramebuffer(a),l.webGLVersion>1){let a=this._context;n=a["COLOR_ATTACHMENT"+t],e.is2DArray||e.is3D?(i=i??this.layerIndices?.[t]??0,a.framebufferTextureLayer(a.FRAMEBUFFER,n,s.underlyingResource,r,i)):e.isCube?(i=i??this.faceIndices?.[t]??0,a.framebufferTexture2D(a.FRAMEBUFFER,n,a.TEXTURE_CUBE_MAP_POSITIVE_X+i,s.underlyingResource,r)):a.framebufferTexture2D(a.FRAMEBUFFER,n,a.TEXTURE_2D,s.underlyingResource,r)}else{let e=this._context;n=e["COLOR_ATTACHMENT"+t+"_WEBGL"];let a=void 0!==i?e.TEXTURE_CUBE_MAP_POSITIVE_X+i:e.TEXTURE_2D;e.framebufferTexture2D(e.FRAMEBUFFER,n,a,s.underlyingResource,r)}if(e._autoMSAAManagement&&this._MSAAFramebuffer){let e=this._context;l._bindUnboundFramebuffer(this._MSAAFramebuffer),e.framebufferRenderbuffer(e.FRAMEBUFFER,n,e.RENDERBUFFER,s.getMSAARenderBuffer())}l._bindUnboundFramebuffer(h)}setTexture(e,t=0,i=!0){super.setTexture(e,t,i),this._bindTextureRenderTarget(e,t)}setLayerAndFaceIndices(e,t){if(super.setLayerAndFaceIndices(e,t),!this.textures||!this.layerIndices||!this.faceIndices)return;let i=this._attachments?.length??this.textures.length;for(let e=0;e<i;e++){let t=this.textures[e];t&&(t.is2DArray||t.is3D?this._bindTextureRenderTarget(t,e,this.layerIndices[e]):t.isCube?this._bindTextureRenderTarget(t,e,this.faceIndices[e]):this._bindTextureRenderTarget(t,e))}}setLayerAndFaceIndex(e=0,t,i){if(super.setLayerAndFaceIndex(e,t,i),!this.textures||!this.layerIndices||!this.faceIndices)return;let r=this.textures[e];r.is2DArray||r.is3D?this._bindTextureRenderTarget(this.textures[e],e,this.layerIndices[e]):r.isCube&&this._bindTextureRenderTarget(this.textures[e],e,this.faceIndices[e])}resolveMSAATextures(){let e=this._engine,t=e._currentFramebuffer;e._bindUnboundFramebuffer(this._MSAAFramebuffer),super.resolveMSAATextures(),e._bindUnboundFramebuffer(t)}dispose(e=this._disposeOnlyFramebuffers){let t=this._context;!e&&(this._colorTextureArray&&(this._context.deleteTexture(this._colorTextureArray),this._colorTextureArray=null),this._depthStencilTextureArray&&(this._context.deleteTexture(this._depthStencilTextureArray),this._depthStencilTextureArray=null)),this._framebuffer&&(t.deleteFramebuffer(this._framebuffer),this._framebuffer=null),this._depthStencilBuffer&&(t.deleteRenderbuffer(this._depthStencilBuffer),this._depthStencilBuffer=null),this._MSAAFramebuffer&&(t.deleteFramebuffer(this._MSAAFramebuffer),this._MSAAFramebuffer=null),super.dispose(e)}}let g=!1;g=!0,t.ThinEngine.prototype._createHardwareRenderTargetWrapper=function(e,t,i){let r=new d(e,t,i,this,this._gl);return this._renderTargetWrapperCache.push(r),r},t.ThinEngine.prototype.createRenderTargetTexture=function(e,t){let i,r,n=this._createHardwareRenderTargetWrapper(!1,!1,e),s=!0,a=!1,l=!1,h=1;void 0!==t&&"object"==typeof t&&(s=t.generateDepthBuffer??!0,a=!!t.generateStencilBuffer,l=!!t.noColorAttachment,i=t.colorAttachment,h=t.samples??1,r=t.label);let u=i||(l?null:this._createInternalTexture(e,t,!0,5)),_=e.width||e,o=e.height||e,f=this._currentFramebuffer,c=this._gl,p=c.createFramebuffer();if(this._bindUnboundFramebuffer(p),n._depthStencilBuffer=this._setupFramebufferDepthAttachments(a,s,_,o),!u||u.is2DArray||u.is3D||c.framebufferTexture2D(c.FRAMEBUFFER,c.COLOR_ATTACHMENT0,c.TEXTURE_2D,u._hardwareTexture.underlyingResource,0),this._bindUnboundFramebuffer(f),n.label=r??"RenderTargetWrapper",n._framebuffer=p,n._generateDepthBuffer=s,n._generateStencilBuffer=a,n.setTextures(u),i){if(n._samples=i.samples,i.samples>1){let e=i._hardwareTexture.getMSAARenderBuffer(0);n._MSAAFramebuffer=c.createFramebuffer(),this._bindUnboundFramebuffer(n._MSAAFramebuffer),c.framebufferRenderbuffer(c.FRAMEBUFFER,c.COLOR_ATTACHMENT0,c.RENDERBUFFER,e),this._bindUnboundFramebuffer(null)}}else this.updateRenderTargetTextureSampleCount(n,h);return n},t.ThinEngine.prototype._createDepthStencilTexture=function(e,t,i){let r=this._gl,a=e.layers||0,l=e.depth||0,h=r.TEXTURE_2D;0!==a?h=r.TEXTURE_2D_ARRAY:0!==l&&(h=r.TEXTURE_3D);let u=new n.InternalTexture(this,12);if(u.label=t.label,!this._caps.depthTextureExtension)return s.Logger.Error("Depth texture is not supported by your browser or hardware."),u;let _={bilinearFiltering:!1,comparisonFunction:0,generateStencil:!1,...t};if(this._bindTextureDirectly(h,u,!0),this._setupDepthStencilTexture(u,e,0!==_.comparisonFunction&&_.bilinearFiltering,_.comparisonFunction,_.samples),void 0!==_.depthTextureFormat){if(15!==_.depthTextureFormat&&16!==_.depthTextureFormat&&17!==_.depthTextureFormat&&13!==_.depthTextureFormat&&14!==_.depthTextureFormat&&18!==_.depthTextureFormat)return s.Logger.Error(`Depth texture ${_.depthTextureFormat} format is not supported.`),u;u.format=_.depthTextureFormat}else u.format=_.generateStencil?13:16;let o=(0,p.HasStencilAspect)(u.format),f=this._getWebGLTextureTypeFromDepthTextureFormat(u.format),c=o?r.DEPTH_STENCIL:r.DEPTH_COMPONENT,T=this._getInternalFormatFromDepthTextureFormat(u.format,!0,o);return u.is2DArray?r.texImage3D(h,0,T,u.width,u.height,a,0,c,f,null):u.is3D?r.texImage3D(h,0,T,u.width,u.height,l,0,c,f,null):r.texImage2D(h,0,T,u.width,u.height,0,c,f,null),this._bindTextureDirectly(h,null),this._internalTexturesCache.push(u),i._depthStencilBuffer&&(r.deleteRenderbuffer(i._depthStencilBuffer),i._depthStencilBuffer=null),this._bindUnboundFramebuffer(i._MSAAFramebuffer??i._framebuffer),i._generateStencilBuffer=o,i._depthStencilTextureWithStencil=o,i._depthStencilBuffer=this._setupFramebufferDepthAttachments(i._generateStencilBuffer,i._generateDepthBuffer,i.width,i.height,i.samples,u.format),this._bindUnboundFramebuffer(null),u},t.ThinEngine.prototype.updateRenderTargetTextureSampleCount=function(e,t){if(this.webGLVersion<2||!e)return 1;if(e.samples===t)return t;let i=this._gl;t=Math.min(t,this.getCaps().maxMSAASamples),e._depthStencilBuffer&&(i.deleteRenderbuffer(e._depthStencilBuffer),e._depthStencilBuffer=null),e._MSAAFramebuffer&&(i.deleteFramebuffer(e._MSAAFramebuffer),e._MSAAFramebuffer=null);let r=e.texture?._hardwareTexture;if(r?.releaseMSAARenderBuffers(),e.texture&&t>1&&"function"==typeof i.renderbufferStorageMultisample){let n=i.createFramebuffer();if(!n)throw Error("Unable to create multi sampled framebuffer");e._MSAAFramebuffer=n,this._bindUnboundFramebuffer(e._MSAAFramebuffer);let s=this._createRenderBuffer(e.texture.width,e.texture.height,t,-1,this._getRGBABufferInternalSizedFormat(e.texture.type,e.texture.format,e.texture._useSRGBBuffer),i.COLOR_ATTACHMENT0,!1);if(!s)throw Error("Unable to create multi sampled framebuffer");r?.addMSAARenderBuffer(s)}this._bindUnboundFramebuffer(e._MSAAFramebuffer??e._framebuffer),e.texture&&(e.texture.samples=t),e._samples=t;let n=e._depthStencilTexture?e._depthStencilTexture.format:void 0;return e._depthStencilBuffer=this._setupFramebufferDepthAttachments(e._generateStencilBuffer,e._generateDepthBuffer,e.width,e.height,t,n),this._bindUnboundFramebuffer(null),t},t.ThinEngine.prototype._setupDepthStencilTexture=function(e,t,i,r,n=1){let s=t.width??t,a=t.height??t,l=t.layers||0,h=t.depth||0;e.baseWidth=s,e.baseHeight=a,e.width=s,e.height=a,e.is2DArray=l>0,e.depth=l||h,e.isReady=!0,e.samples=n,e.generateMipMaps=!1,e.samplingMode=i?2:1,e.type=0,e._comparisonFunction=r;let u=this._gl,_=this._getTextureTarget(e),o=this._getSamplingParameters(e.samplingMode,!1);u.texParameteri(_,u.TEXTURE_MAG_FILTER,o.mag),u.texParameteri(_,u.TEXTURE_MIN_FILTER,o.min),u.texParameteri(_,u.TEXTURE_WRAP_S,u.CLAMP_TO_EDGE),u.texParameteri(_,u.TEXTURE_WRAP_T,u.CLAMP_TO_EDGE),this.webGLVersion>1&&(0===r?(u.texParameteri(_,u.TEXTURE_COMPARE_FUNC,515),u.texParameteri(_,u.TEXTURE_COMPARE_MODE,u.NONE)):(u.texParameteri(_,u.TEXTURE_COMPARE_FUNC,r),u.texParameteri(_,u.TEXTURE_COMPARE_MODE,u.COMPARE_REF_TO_TEXTURE)))};let E=!1;E=!0,t.ThinEngine.prototype.setDepthStencilTexture=function(e,t,i,r){void 0!==e&&(t&&(this._boundUniforms[e]=t),i&&i.depthStencilTexture?this._setTexture(e,i,!1,!0,r):this._setTexture(e,null,void 0,void 0,r))};let A=!1;A=!0,t.ThinEngine.prototype.createRenderTargetCubeTexture=function(e,t){let i=this._createHardwareRenderTargetWrapper(!1,!0,e),r={generateMipMaps:!0,generateDepthBuffer:!0,generateStencilBuffer:!1,type:0,samplingMode:3,format:5,...t};r.generateStencilBuffer=r.generateDepthBuffer&&r.generateStencilBuffer,(1!==r.type||this._caps.textureFloatLinearFiltering)&&(2!==r.type||this._caps.textureHalfFloatLinearFiltering)||(r.samplingMode=1);let a=this._gl,l=new n.InternalTexture(this,5);this._bindTextureDirectly(a.TEXTURE_CUBE_MAP,l,!0);let h=this._getSamplingParameters(r.samplingMode,r.generateMipMaps);1!==r.type||this._caps.textureFloat||(r.type=0,s.Logger.Warn("Float textures are not supported. Cube render target forced to TEXTURETYPE_UNESIGNED_BYTE type")),a.texParameteri(a.TEXTURE_CUBE_MAP,a.TEXTURE_MAG_FILTER,h.mag),a.texParameteri(a.TEXTURE_CUBE_MAP,a.TEXTURE_MIN_FILTER,h.min),a.texParameteri(a.TEXTURE_CUBE_MAP,a.TEXTURE_WRAP_S,a.CLAMP_TO_EDGE),a.texParameteri(a.TEXTURE_CUBE_MAP,a.TEXTURE_WRAP_T,a.CLAMP_TO_EDGE);for(let t=0;t<6;t++)a.texImage2D(a.TEXTURE_CUBE_MAP_POSITIVE_X+t,0,this._getRGBABufferInternalSizedFormat(r.type,r.format),e,e,0,this._getInternalFormat(r.format),this._getWebGLTextureType(r.type),null);let u=a.createFramebuffer();return this._bindUnboundFramebuffer(u),i._depthStencilBuffer=this._setupFramebufferDepthAttachments(r.generateStencilBuffer,r.generateDepthBuffer,e,e),r.generateMipMaps&&a.generateMipmap(a.TEXTURE_CUBE_MAP),this._bindTextureDirectly(a.TEXTURE_CUBE_MAP,null),this._bindUnboundFramebuffer(null),i._framebuffer=u,i._generateDepthBuffer=r.generateDepthBuffer,i._generateStencilBuffer=r.generateStencilBuffer,l.width=e,l.height=e,l.isReady=!0,l.isCube=!0,l.samples=1,l.generateMipMaps=r.generateMipMaps,l.samplingMode=r.samplingMode,l.type=r.type,l.format=r.format,this._internalTexturesCache.push(l),i.setTextures(l),i};var b=e.i(88),m=e.i(74868);let x=!1;x=!0,t.ThinEngine.prototype.createPrefilteredCubeTexture=function(t,i,r,a,l=null,h=null,u,_=null,o=!0){let f=async t=>{if(!t){l&&l(null);return}let h=t.texture;if(o?t.info.sphericalPolynomial&&(h._sphericalPolynomial=t.info.sphericalPolynomial):h._sphericalPolynomial=h._sphericalPolynomial??new b.SphericalPolynomial,h._source=9,this.getCaps().textureLOD){l&&l(h);return}let u=this._gl,_=t.width;if(!_)return;let{DDSTools:f}=await e.A(39375),c=[];for(let e=0;e<3;e++){let l=Math.log2(_)*r+a,o=Math.round(Math.min(Math.max(a+(l-a)*(1-e/2),0),l)),p=new n.InternalTexture(this,2);if(p.type=h.type,p.format=h.format,p.width=Math.pow(2,Math.max(Math.log2(_)-o,0)),p.height=p.width,p.isCube=!0,p._cachedWrapU=0,p._cachedWrapV=0,this._bindTextureDirectly(u.TEXTURE_CUBE_MAP,p,!0),p.samplingMode=2,u.texParameteri(u.TEXTURE_CUBE_MAP,u.TEXTURE_MAG_FILTER,u.LINEAR),u.texParameteri(u.TEXTURE_CUBE_MAP,u.TEXTURE_MIN_FILTER,u.LINEAR),u.texParameteri(u.TEXTURE_CUBE_MAP,u.TEXTURE_WRAP_S,u.CLAMP_TO_EDGE),u.texParameteri(u.TEXTURE_CUBE_MAP,u.TEXTURE_WRAP_T,u.CLAMP_TO_EDGE),t.isDDS){let e=t.info,i=t.data;this._unpackFlipY(e.isCompressed),f.UploadDDSLevels(this,p,i,e,!0,6,o)}else s.Logger.Warn("DDS is the only prefiltered cube map supported so far.");this._bindTextureDirectly(u.TEXTURE_CUBE_MAP,null);let T=new m.BaseTexture(i);T._isCube=!0,T._texture=p,p.isReady=!0,c.push(T)}h._lodTextureHigh=c[2],h._lodTextureMid=c[1],h._lodTextureLow=c[0],l&&l(h)};return this.createCubeTexture(t,i,null,!1,f,h,u,_,o,r,a)};var R=e.i(26220);let S=!1;S=!0,t.ThinEngine.prototype.createUniformBuffer=function(e,t){let i=this._gl.createBuffer();if(!i)throw Error("Unable to create uniform buffer");let r=new R.WebGLDataBuffer(i);return this.bindUniformBuffer(r),e instanceof Float32Array?this._gl.bufferData(this._gl.UNIFORM_BUFFER,e,this._gl.STATIC_DRAW):this._gl.bufferData(this._gl.UNIFORM_BUFFER,new Float32Array(e),this._gl.STATIC_DRAW),this.bindUniformBuffer(null),r.references=1,r},t.ThinEngine.prototype.createDynamicUniformBuffer=function(e,t){let i=this._gl.createBuffer();if(!i)throw Error("Unable to create dynamic uniform buffer");let r=new R.WebGLDataBuffer(i);return this.bindUniformBuffer(r),e instanceof Float32Array?this._gl.bufferData(this._gl.UNIFORM_BUFFER,e,this._gl.DYNAMIC_DRAW):this._gl.bufferData(this._gl.UNIFORM_BUFFER,new Float32Array(e),this._gl.DYNAMIC_DRAW),this.bindUniformBuffer(null),r.references=1,r},t.ThinEngine.prototype.updateUniformBuffer=function(e,t,i,r){this.bindUniformBuffer(e),void 0===i&&(i=0),void 0===r?t instanceof Float32Array?this._gl.bufferSubData(this._gl.UNIFORM_BUFFER,i,t):this._gl.bufferSubData(this._gl.UNIFORM_BUFFER,i,new Float32Array(t)):t instanceof Float32Array?this._gl.bufferSubData(this._gl.UNIFORM_BUFFER,0,t.subarray(i,i+r)):this._gl.bufferSubData(this._gl.UNIFORM_BUFFER,0,new Float32Array(t).subarray(i,i+r)),this.bindUniformBuffer(null)},t.ThinEngine.prototype.bindUniformBuffer=function(e){this._gl.bindBuffer(this._gl.UNIFORM_BUFFER,e?e.underlyingResource:null)},t.ThinEngine.prototype.bindUniformBufferBase=function(e,t,i){this._gl.bindBufferBase(this._gl.UNIFORM_BUFFER,t,e?e.underlyingResource:null)},t.ThinEngine.prototype.bindUniformBlock=function(e,t,i){let r=e.program,n=this._gl.getUniformBlockIndex(r,t);0xffffffff!==n&&this._gl.uniformBlockBinding(r,n,i)};var F=e.i(36460),M=e.i(51843);let y=!1;y=!0,M.AbstractEngine.prototype.displayLoadingUI=function(){if(!(0,F.IsWindowObjectExist)())return;let e=this.loadingScreen;e&&e.displayLoadingUI()},M.AbstractEngine.prototype.hideLoadingUI=function(){if(!(0,F.IsWindowObjectExist)())return;let e=this._loadingScreen;e&&e.hideLoadingUI()},Object.defineProperty(M.AbstractEngine.prototype,"loadingScreen",{get:function(){return!this._loadingScreen&&this._renderingCanvas&&(this._loadingScreen=M.AbstractEngine.DefaultLoadingScreenFactory(this._renderingCanvas)),this._loadingScreen},set:function(e){this._loadingScreen=e},enumerable:!0,configurable:!0}),Object.defineProperty(M.AbstractEngine.prototype,"loadingUIText",{set:function(e){this.loadingScreen.loadingUIText=e},enumerable:!0,configurable:!0}),Object.defineProperty(M.AbstractEngine.prototype,"loadingUIBackgroundColor",{set:function(e){this.loadingScreen.loadingUIBackgroundColor=e},enumerable:!0,configurable:!0}),(0,e.i(22932).RegisterAbstractEngineDom)();let U=!1;U=!0,M.AbstractEngine.prototype.getInputElement=function(){return this._renderingCanvas},M.AbstractEngine.prototype.getDepthFunction=function(){return this._depthCullingState.depthFunc},M.AbstractEngine.prototype.setDepthFunction=function(e){this._depthCullingState.depthFunc=e},M.AbstractEngine.prototype.setDepthFunctionToGreater=function(){this.setDepthFunction(516)},M.AbstractEngine.prototype.setDepthFunctionToGreaterOrEqual=function(){this.setDepthFunction(518)},M.AbstractEngine.prototype.setDepthFunctionToLess=function(){this.setDepthFunction(513)},M.AbstractEngine.prototype.setDepthFunctionToLessOrEqual=function(){this.setDepthFunction(515)},M.AbstractEngine.prototype.getDepthWrite=function(){return this._depthCullingState.depthMask},M.AbstractEngine.prototype.setDepthWrite=function(e){this._depthCullingState.depthMask=e},M.AbstractEngine.prototype.setAlphaConstants=function(e,t,i,r){this._alphaState.setAlphaBlendConstants(e,t,i,r)},M.AbstractEngine.prototype.getAlphaMode=function(e=0){return this._alphaMode[e]},M.AbstractEngine.prototype.getAlphaEquation=function(e=0){return this._alphaEquation[e]};let B=!1;B=!0,M.AbstractEngine.prototype.getStencilBuffer=function(){return this._stencilState.stencilTest},M.AbstractEngine.prototype.setStencilBuffer=function(e){this._stencilState.stencilTest=e},M.AbstractEngine.prototype.getStencilMask=function(){return this._stencilState.stencilMask},M.AbstractEngine.prototype.setStencilMask=function(e){this._stencilState.stencilMask=e},M.AbstractEngine.prototype.getStencilFunction=function(){return this._stencilState.stencilFunc},M.AbstractEngine.prototype.getStencilBackFunction=function(){return this._stencilState.stencilBackFunc},M.AbstractEngine.prototype.getStencilFunctionReference=function(){return this._stencilState.stencilFuncRef},M.AbstractEngine.prototype.getStencilFunctionMask=function(){return this._stencilState.stencilFuncMask},M.AbstractEngine.prototype.setStencilFunction=function(e){this._stencilState.stencilFunc=e},M.AbstractEngine.prototype.setStencilBackFunction=function(e){this._stencilState.stencilBackFunc=e},M.AbstractEngine.prototype.setStencilFunctionReference=function(e){this._stencilState.stencilFuncRef=e},M.AbstractEngine.prototype.setStencilFunctionMask=function(e){this._stencilState.stencilFuncMask=e},M.AbstractEngine.prototype.getStencilOperationFail=function(){return this._stencilState.stencilOpStencilFail},M.AbstractEngine.prototype.getStencilBackOperationFail=function(){return this._stencilState.stencilBackOpStencilFail},M.AbstractEngine.prototype.getStencilOperationDepthFail=function(){return this._stencilState.stencilOpDepthFail},M.AbstractEngine.prototype.getStencilBackOperationDepthFail=function(){return this._stencilState.stencilBackOpDepthFail},M.AbstractEngine.prototype.getStencilOperationPass=function(){return this._stencilState.stencilOpStencilDepthPass},M.AbstractEngine.prototype.getStencilBackOperationPass=function(){return this._stencilState.stencilBackOpStencilDepthPass},M.AbstractEngine.prototype.setStencilOperationFail=function(e){this._stencilState.stencilOpStencilFail=e},M.AbstractEngine.prototype.setStencilBackOperationFail=function(e){this._stencilState.stencilBackOpStencilFail=e},M.AbstractEngine.prototype.setStencilOperationDepthFail=function(e){this._stencilState.stencilOpDepthFail=e},M.AbstractEngine.prototype.setStencilBackOperationDepthFail=function(e){this._stencilState.stencilBackOpDepthFail=e},M.AbstractEngine.prototype.setStencilOperationPass=function(e){this._stencilState.stencilOpStencilDepthPass=e},M.AbstractEngine.prototype.setStencilBackOperationPass=function(e){this._stencilState.stencilBackOpStencilDepthPass=e},M.AbstractEngine.prototype.cacheStencilState=function(){this._cachedStencilBuffer=this.getStencilBuffer(),this._cachedStencilFunction=this.getStencilFunction(),this._cachedStencilMask=this.getStencilMask(),this._cachedStencilOperationPass=this.getStencilOperationPass(),this._cachedStencilOperationFail=this.getStencilOperationFail(),this._cachedStencilOperationDepthFail=this.getStencilOperationDepthFail(),this._cachedStencilReference=this.getStencilFunctionReference()},M.AbstractEngine.prototype.restoreStencilState=function(){this.setStencilFunction(this._cachedStencilFunction),this.setStencilMask(this._cachedStencilMask),this.setStencilBuffer(this._cachedStencilBuffer),this.setStencilOperationPass(this._cachedStencilOperationPass),this.setStencilOperationFail(this._cachedStencilOperationFail),this.setStencilOperationDepthFail(this._cachedStencilOperationDepthFail),this.setStencilFunctionReference(this._cachedStencilReference)},(0,e.i(67213).RegisterAbstractEngineRenderPass)(),(0,e.i(93661).RegisterAbstractEngineTexture)();var D=e.i(14958);let C=!1;C=!0,(0,D.RegisterFileTools)(),M.AbstractEngine.prototype._loadFileAsync=async function(e,t,i){return await new Promise((r,n)=>{this._loadFile(e,e=>{r(e)},void 0,t,i,(e,t)=>{n(t)})})};var P=e.i(28854);M.AbstractEngine.GetCompatibleTextureLoader=P._GetCompatibleTextureLoader;let I=!1;I=!0,t.ThinEngine.prototype.enableScissor=function(e,t,i,r){let n=this._gl;n.enable(n.SCISSOR_TEST),n.scissor(e,t,i,r)},t.ThinEngine.prototype.disableScissor=function(){let e=this._gl;e.disable(e.SCISSOR_TEST)},e.s([],34338),e.i(34338);var w=e.i(34149);e.s(["Engine",()=>w.Engine],85303)}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,372,e=>{"use strict";e.s(["useOpenGLOrientationForUV",()=>!1])},75441,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,i){return new t(this.width*e,this.height*i)}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,i,r){return new t(e.width+(i.width-e.width)*r,e.height+(i.height-e.height)*r)}}e.s(["Size",0,t])},74868,e=>{"use strict";let t,i,r,s,a,n,h,l,o,u,_,c,d,g,x,f,m,p,R,S,T,M,I,v,A,O,b,z,y,E,D,w,L,C,B,U,V,N,G,P,F,k,W,Y,j,q,H,Z,X,$,J,K,Q,ee,et,ei,er,es;var ea,en,eh=e.i(57575),el=e.i(9855),eo=e.i(3864),eu=e.i(69400),e_=e.i(23003),ec=e.i(80065),ed=e.i(75441);class eg{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=ed.Size.Zero(),this._cachedBaseSize=ed.Size.Zero(),this._initialSamplingMode=2,this._texture=eg._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 ex=e.i(2060),ef=e.i(85050);let em=(O=eg,b=[],z=[],y=[],E=[],D=[],w=[],L=[],C=[],B=[],U=[],V=[],N=[],G=[],P=[],F=[],k=[],W=[],Y=[],j=[],q=[],H=[],Z=[],X=[],$=[],J=[],K=[],Q=[],ee=[],et=[],ei=[],er=[],ea=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,ec.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.uniqueId=((0,eh.__runInitializers)(this,b),(0,eh.__runInitializers)(this,z,void 0)),this.name=((0,eh.__runInitializers)(this,y),(0,eh.__runInitializers)(this,E,void 0)),this.displayName=((0,eh.__runInitializers)(this,D),(0,eh.__runInitializers)(this,w,void 0)),this.metadata=((0,eh.__runInitializers)(this,L),(0,eh.__runInitializers)(this,C,null)),this._internalMetadata=(0,eh.__runInitializers)(this,B),this.reservedDataStore=null,this._hasAlpha=(0,eh.__runInitializers)(this,U,!1),this._getAlphaFromRGB=((0,eh.__runInitializers)(this,V),(0,eh.__runInitializers)(this,N,!1)),this.level=((0,eh.__runInitializers)(this,G),(0,eh.__runInitializers)(this,P,1)),this._coordinatesIndex=((0,eh.__runInitializers)(this,F),(0,eh.__runInitializers)(this,k,0)),this.optimizeUVAllocation=((0,eh.__runInitializers)(this,W),(0,eh.__runInitializers)(this,Y,!0)),this._coordinatesMode=((0,eh.__runInitializers)(this,j),(0,eh.__runInitializers)(this,q,0)),this.wrapR=((0,eh.__runInitializers)(this,H),(0,eh.__runInitializers)(this,Z,1)),this.anisotropicFilteringLevel=((0,eh.__runInitializers)(this,X),(0,eh.__runInitializers)(this,$,ea.DEFAULT_ANISOTROPIC_FILTERING_LEVEL)),this._isCube=((0,eh.__runInitializers)(this,J),!1),this._gammaSpace=!0,this.invertZ=(0,eh.__runInitializers)(this,K,!1),this.lodLevelInAlpha=((0,eh.__runInitializers)(this,Q),(0,eh.__runInitializers)(this,ee,!1)),this._dominantDirection=((0,eh.__runInitializers)(this,et),null),this.isRenderTarget=(0,eh.__runInitializers)(this,ei,!1),this._prefiltered=((0,eh.__runInitializers)(this,er),!1),this._forceSerialize=!1,this.animations=[],this.onDisposeObservable=new eo.Observable,this._onDisposeObserver=null,this._scene=null,this._uid=null,this._parentContainer=null,this._loadingError=!1,e?ea._IsScene(e)?this._scene=e:this._engine=e:this._scene=e_.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 eu.Matrix.IdentityReadOnly}getReflectionTextureMatrix(){return eu.Matrix.IdentityReadOnly}getRefractionTextureMatrix(){return this.getReflectionTextureMatrix()}isReadyOrNotBlocking(){return!this.isBlocking||this.isReady()||this.loadingError}scale(e){}get canRescale(){return!1}_getFromCache(e,t,i,r,s,a){let n=this._getEngine();if(!n)return null;let h=n._getUseSRGBBuffer(!!s,t),l=n.getLoadedTexturesCache();for(let n=0;n<l.length;n++){let o=l[n];if((void 0===s||h===o._useSRGBBuffer)&&(void 0===r||r===o.invertY)&&o.url===e&&!t===o.generateMipMaps&&(!i||i===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,i=null,r=!0,s=!1,a=0,n=0,h=Number.MAX_VALUE,l=Number.MAX_VALUE){if(!this._texture)return null;let o=this._getEngine();if(!o)return null;let u=this.getSize(),_=u.width,c=u.height;0!==t&&(_/=Math.pow(2,t),c/=Math.pow(2,t),_=Math.round(_),c=Math.round(c)),h=Math.min(_,h),l=Math.min(c,l);try{if(this._texture.isCube||this._texture.is2DArray)return o._readTexturePixels(this._texture,h,l,e,t,i,r,s,a,n);return o._readTexturePixels(this._texture,h,l,-1,t,i,r,s,a,n)}catch(e){return null}}_readPixelsSync(e=0,t=0,i=null,r=!0,s=!1){if(!this._texture)return null;let a=this.getSize(),n=a.width,h=a.height,l=this._getEngine();if(!l)return null;0!=t&&(n/=Math.pow(2,t),h/=Math.pow(2,t),n=Math.round(n),h=Math.round(h));try{if(this._texture.isCube)return l._readTexturePixelsSync(this._texture,n,h,e,t,i,r,s);return l._readTexturePixelsSync(this._texture,n,h,-1,t,i,r,s)}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=ex.SerializationHelper.Serialize(this);return ex.SerializationHelper.AppendSerializedAnimations(this,t),t}static WhenAllReady(e,t){let i=e.length;if(0===i)return void t();for(let r=0;r<e.length;r++){let s=e[r];if(s.isReady())0==--i&&t();else{let e=s.onLoadObservable;e?e.addOnce(()=>{0==--i&&t()}):0==--i&&t()}}}static _IsScene(e){return"Scene"===e.getClassName()}},es="function"==typeof Symbol&&Symbol.metadata?Object.create(O[Symbol.metadata]??null):void 0,t=[(0,el.serialize)()],i=[(0,el.serialize)()],r=[(0,el.serialize)()],s=[(0,el.serialize)()],a=[(0,el.serialize)("hasAlpha")],n=[(0,el.serialize)("getAlphaFromRGB")],h=[(0,el.serialize)()],l=[(0,el.serialize)("coordinatesIndex")],o=[(0,el.serialize)()],u=[(0,el.serialize)("coordinatesMode")],_=[(0,el.serialize)()],c=[(0,el.serialize)()],d=[(0,el.serialize)()],g=[(0,el.serialize)()],x=[(0,el.serialize)()],f=[(0,el.serialize)()],m=[(0,el.serialize)()],p=[(0,el.serialize)()],R=[(0,el.serialize)()],S=[(0,el.serialize)()],T=[(0,el.serialize)()],M=[(0,el.serialize)()],I=[(0,el.serialize)()],v=[(0,el.serializeAsTexture)()],A=[(0,el.serialize)()],(0,eh.__esDecorate)(ea,null,_,{kind:"getter",name:"wrapU",static:!1,private:!1,access:{has:e=>"wrapU"in e,get:e=>e.wrapU},metadata:es},null,b),(0,eh.__esDecorate)(ea,null,c,{kind:"getter",name:"wrapV",static:!1,private:!1,access:{has:e=>"wrapV"in e,get:e=>e.wrapV},metadata:es},null,b),(0,eh.__esDecorate)(ea,null,x,{kind:"getter",name:"isCube",static:!1,private:!1,access:{has:e=>"isCube"in e,get:e=>e.isCube},metadata:es},null,b),(0,eh.__esDecorate)(ea,null,f,{kind:"getter",name:"is3D",static:!1,private:!1,access:{has:e=>"is3D"in e,get:e=>e.is3D},metadata:es},null,b),(0,eh.__esDecorate)(ea,null,m,{kind:"getter",name:"is2DArray",static:!1,private:!1,access:{has:e=>"is2DArray"in e,get:e=>e.is2DArray},metadata:es},null,b),(0,eh.__esDecorate)(ea,null,p,{kind:"getter",name:"gammaSpace",static:!1,private:!1,access:{has:e=>"gammaSpace"in e,get:e=>e.gammaSpace},metadata:es},null,b),(0,eh.__esDecorate)(ea,null,T,{kind:"getter",name:"lodGenerationOffset",static:!1,private:!1,access:{has:e=>"lodGenerationOffset"in e,get:e=>e.lodGenerationOffset},metadata:es},null,b),(0,eh.__esDecorate)(ea,null,M,{kind:"getter",name:"lodGenerationScale",static:!1,private:!1,access:{has:e=>"lodGenerationScale"in e,get:e=>e.lodGenerationScale},metadata:es},null,b),(0,eh.__esDecorate)(ea,null,I,{kind:"getter",name:"linearSpecularLOD",static:!1,private:!1,access:{has:e=>"linearSpecularLOD"in e,get:e=>e.linearSpecularLOD},metadata:es},null,b),(0,eh.__esDecorate)(ea,null,v,{kind:"getter",name:"irradianceTexture",static:!1,private:!1,access:{has:e=>"irradianceTexture"in e,get:e=>e.irradianceTexture},metadata:es},null,b),(0,eh.__esDecorate)(null,null,t,{kind:"field",name:"uniqueId",static:!1,private:!1,access:{has:e=>"uniqueId"in e,get:e=>e.uniqueId,set:(e,t)=>{e.uniqueId=t}},metadata:es},z,y),(0,eh.__esDecorate)(null,null,i,{kind:"field",name:"name",static:!1,private:!1,access:{has:e=>"name"in e,get:e=>e.name,set:(e,t)=>{e.name=t}},metadata:es},E,D),(0,eh.__esDecorate)(null,null,r,{kind:"field",name:"displayName",static:!1,private:!1,access:{has:e=>"displayName"in e,get:e=>e.displayName,set:(e,t)=>{e.displayName=t}},metadata:es},w,L),(0,eh.__esDecorate)(null,null,s,{kind:"field",name:"metadata",static:!1,private:!1,access:{has:e=>"metadata"in e,get:e=>e.metadata,set:(e,t)=>{e.metadata=t}},metadata:es},C,B),(0,eh.__esDecorate)(null,null,a,{kind:"field",name:"_hasAlpha",static:!1,private:!1,access:{has:e=>"_hasAlpha"in e,get:e=>e._hasAlpha,set:(e,t)=>{e._hasAlpha=t}},metadata:es},U,V),(0,eh.__esDecorate)(null,null,n,{kind:"field",name:"_getAlphaFromRGB",static:!1,private:!1,access:{has:e=>"_getAlphaFromRGB"in e,get:e=>e._getAlphaFromRGB,set:(e,t)=>{e._getAlphaFromRGB=t}},metadata:es},N,G),(0,eh.__esDecorate)(null,null,h,{kind:"field",name:"level",static:!1,private:!1,access:{has:e=>"level"in e,get:e=>e.level,set:(e,t)=>{e.level=t}},metadata:es},P,F),(0,eh.__esDecorate)(null,null,l,{kind:"field",name:"_coordinatesIndex",static:!1,private:!1,access:{has:e=>"_coordinatesIndex"in e,get:e=>e._coordinatesIndex,set:(e,t)=>{e._coordinatesIndex=t}},metadata:es},k,W),(0,eh.__esDecorate)(null,null,o,{kind:"field",name:"optimizeUVAllocation",static:!1,private:!1,access:{has:e=>"optimizeUVAllocation"in e,get:e=>e.optimizeUVAllocation,set:(e,t)=>{e.optimizeUVAllocation=t}},metadata:es},Y,j),(0,eh.__esDecorate)(null,null,u,{kind:"field",name:"_coordinatesMode",static:!1,private:!1,access:{has:e=>"_coordinatesMode"in e,get:e=>e._coordinatesMode,set:(e,t)=>{e._coordinatesMode=t}},metadata:es},q,H),(0,eh.__esDecorate)(null,null,d,{kind:"field",name:"wrapR",static:!1,private:!1,access:{has:e=>"wrapR"in e,get:e=>e.wrapR,set:(e,t)=>{e.wrapR=t}},metadata:es},Z,X),(0,eh.__esDecorate)(null,null,g,{kind:"field",name:"anisotropicFilteringLevel",static:!1,private:!1,access:{has:e=>"anisotropicFilteringLevel"in e,get:e=>e.anisotropicFilteringLevel,set:(e,t)=>{e.anisotropicFilteringLevel=t}},metadata:es},$,J),(0,eh.__esDecorate)(null,null,R,{kind:"field",name:"invertZ",static:!1,private:!1,access:{has:e=>"invertZ"in e,get:e=>e.invertZ,set:(e,t)=>{e.invertZ=t}},metadata:es},K,Q),(0,eh.__esDecorate)(null,null,S,{kind:"field",name:"lodLevelInAlpha",static:!1,private:!1,access:{has:e=>"lodLevelInAlpha"in e,get:e=>e.lodLevelInAlpha,set:(e,t)=>{e.lodLevelInAlpha=t}},metadata:es},ee,et),(0,eh.__esDecorate)(null,null,A,{kind:"field",name:"isRenderTarget",static:!1,private:!1,access:{has:e=>"isRenderTarget"in e,get:e=>e.isRenderTarget,set:(e,t)=>{e.isRenderTarget=t}},metadata:es},ei,er),es&&Object.defineProperty(ea,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:es}),ea.DEFAULT_ANISOTROPIC_FILTERING_LEVEL=4,ea);(en=em.prototype).forceSphericalPolynomialsRecompute??(en.forceSphericalPolynomialsRecompute=(0,ef._MissingSideEffect)("BaseTexture","forceSphericalPolynomialsRecompute")),Object.getOwnPropertyDescriptor(em.prototype,"sphericalPolynomial")||Object.defineProperty(em.prototype,"sphericalPolynomial",(0,ef._MissingSideEffectProperty)("BaseTexture","sphericalPolynomial")),e.s(["BaseTexture",0,em],74868)},20363,38329,e=>{"use strict";let t,i,r,s,a,n,h,l,o,u,_,c,d,g,x,f,m,p,R,S,T,M,I,v,A,O,b,z,y,E,D,w,L,C,B,U,V,N,G,P;var F,k=e.i(57575),W=e.i(9855),Y=e.i(3864),j=e.i(69400),q=e.i(74868),H=e.i(44520),Z=e.i(85050),X=e.i(44816),$=e.i(78755),J=e.i(96042),K=e.i(1229);function Q(e,t,i=!1){let r=t.width,s=t.height;if(e instanceof Float32Array){let t=e.byteLength/e.BYTES_PER_ELEMENT,i=new Uint8Array(t);for(;--t>=0;){let r=e[t];r<0?r=0:r>1&&(r=1),i[t]=255*r}e=i}let a=document.createElement("canvas");a.width=r,a.height=s;let n=a.getContext("2d");if(!n)return null;let h=n.createImageData(r,s);if(h.data.set(e),n.putImageData(h,0,0),i){let e=document.createElement("canvas");e.width=r,e.height=s;let t=e.getContext("2d");return t?(t.translate(0,s),t.scale(1,-1),t.drawImage(a,0,0),e.toDataURL("image/png")):null}return a.toDataURL("image/png")}function ee(e,t=0,i=0){let r=e.getInternalTexture();if(!r)return null;let s=e._readPixelsSync(t,i);return s?Q(s,e.getSize(),r.invertY):null}async function et(e,t=0,i=0){let r=e.getInternalTexture();if(!r)return null;let s=await e.readPixels(t,i);return s?Q(s,e.getSize(),r.invertY):null}e.s(["GenerateBase64StringFromTexture",0,ee,"GenerateBase64StringFromTextureAsync",0,et],38329);var ei=e.i(372),er=e.i(2060);let es=(g=q.BaseTexture,x=[],f=[],m=[],p=[],R=[],S=[],T=[],M=[],I=[],v=[],A=[],O=[],b=[],z=[],y=[],E=[],D=[],w=[],L=[],C=[],B=[],U=[],V=[],N=[],G=[],F=class extends g{static _CreateVideoTexture(e,t,i,r=!1,s=!1,a=F.TRILINEAR_SAMPLINGMODE,n={},h,l=5){throw(0,Z._WarnImport)("VideoTexture")}get noMipmap(){return this._noMipmap}get mimeType(){return this._mimeType}set isBlocking(e){this._isBlocking=e}get isBlocking(){return this._isBlocking}get invertY(){return this._invertY}constructor(e,t,i,r,s=F.TRILINEAR_SAMPLINGMODE,a=null,n=null,h=null,l=!1,o,u,_,c,d){let g;super(t),this.url=((0,k.__runInitializers)(this,x),(0,k.__runInitializers)(this,f,null)),this.uOffset=((0,k.__runInitializers)(this,m),(0,k.__runInitializers)(this,p,0)),this.vOffset=((0,k.__runInitializers)(this,R),(0,k.__runInitializers)(this,S,0)),this.uScale=((0,k.__runInitializers)(this,T),(0,k.__runInitializers)(this,M,1)),this.vScale=((0,k.__runInitializers)(this,I),(0,k.__runInitializers)(this,v,1)),this.uAng=((0,k.__runInitializers)(this,A),(0,k.__runInitializers)(this,O,0)),this.vAng=((0,k.__runInitializers)(this,b),(0,k.__runInitializers)(this,z,0)),this.wAng=((0,k.__runInitializers)(this,y),(0,k.__runInitializers)(this,E,0)),this.uRotationCenter=((0,k.__runInitializers)(this,D),(0,k.__runInitializers)(this,w,.5)),this.vRotationCenter=((0,k.__runInitializers)(this,L),(0,k.__runInitializers)(this,C,.5)),this.wRotationCenter=((0,k.__runInitializers)(this,B),(0,k.__runInitializers)(this,U,.5)),this.homogeneousRotationInUVTransform=((0,k.__runInitializers)(this,V),(0,k.__runInitializers)(this,N,!1)),this.inspectableCustomProperties=((0,k.__runInitializers)(this,G),null),this._noMipmap=!1,this._invertY=!1,this._rowGenerationMatrix=null,this._cachedTextureMatrix=null,this._projectionModeMatrix=null,this._t0=null,this._t1=null,this._t2=null,this._cachedUOffset=-1,this._cachedVOffset=-1,this._cachedUScale=0,this._cachedVScale=0,this._cachedUAng=-1,this._cachedVAng=-1,this._cachedWAng=-1,this._cachedReflectionProjectionMatrixId=-1,this._cachedURotationCenter=-1,this._cachedVRotationCenter=-1,this._cachedWRotationCenter=-1,this._cachedHomogeneousRotationInUVTransform=!1,this._cachedIdentity3x2=!0,this._cachedReflectionTextureMatrix=null,this._cachedReflectionUOffset=-1,this._cachedReflectionVOffset=-1,this._cachedReflectionUScale=0,this._cachedReflectionVScale=0,this._cachedReflectionCoordinatesMode=-1,this._buffer=null,this._deleteBuffer=!1,this._format=null,this._delayedOnLoad=null,this._delayedOnError=null,this.onLoadObservable=new Y.Observable,this._isBlocking=!0,this.name=e||"",this.url=e;let P=!1,W=null,j=!0;"object"==typeof i&&null!==i?(g=i.noMipmap??!1,r=i.invertY??!ei.useOpenGLOrientationForUV,s=i.samplingMode??F.TRILINEAR_SAMPLINGMODE,a=i.onLoad??null,n=i.onError??null,h=i.buffer??null,l=i.deleteBuffer??!1,o=i.format,u=i.mimeType,_=i.loaderOptions,c=i.creationFlags,P=i.useSRGBBuffer??!1,W=i.internalTexture??null,j=i.gammaSpace??j,d=i.forcedExtension??d):g=!!i,this._gammaSpace=j,this._noMipmap=g,this._invertY=void 0===r?!ei.useOpenGLOrientationForUV:r,this._initialSamplingMode=s,this._buffer=h,this._deleteBuffer=l,this._mimeType=u,this._loaderOptions=_,this._creationFlags=c,this._useSRGBBuffer=P,this._forcedExtension=d,void 0!==o&&(this._format=o);const q=this.getScene(),H=this._getEngine();if(!H)return;H.onBeforeTextureInitObservable.notifyObservers(this);const Z=()=>{this._texture&&(this._texture._invertVScale&&(this.vScale*=-1,this.vOffset+=1),null!==this._texture._cachedWrapU&&(this.wrapU=this._texture._cachedWrapU,this._texture._cachedWrapU=null),null!==this._texture._cachedWrapV&&(this.wrapV=this._texture._cachedWrapV,this._texture._cachedWrapV=null),null!==this._texture._cachedWrapR&&(this.wrapR=this._texture._cachedWrapR,this._texture._cachedWrapR=null)),this.onLoadObservable.hasObservers()&&this.onLoadObservable.notifyObservers(this),a&&a(),!this.isBlocking&&q&&q.resetCachedMaterial()},$=(e,t)=>{this._loadingError=!0,this._errorObject={message:e,exception:t},n&&n(e,t),F.OnTextureLoadErrorObservable.notifyObservers(this)};if(!this.url&&!W){this._delayedOnLoad=Z,this._delayedOnError=$;return}if(this._texture=W??this._getFromCache(this.url,g,s,this._invertY,P,this.isCube),this._texture)if(this._texture.isReady)X.TimingTools.SetImmediate(()=>Z());else{const e=this._texture.onLoadedObservable.add(Z);this._texture.onErrorObservable.add(t=>{$(t.message,t.exception),this._texture?.onLoadedObservable.remove(e)})}else if(q&&q.useDelayedTextureLoading)this.delayLoadState=4,this._delayedOnLoad=Z,this._delayedOnError=$;else{try{this._texture=H.createTexture(this.url,g,this._invertY,q,s,Z,$,this._buffer,void 0,this._format,this._forcedExtension,u,_,c,P)}catch(e){throw $("error loading",e),e}l&&(this._buffer=null)}}updateURL(e,t=null,i,r){this.url&&(this.releaseInternalTexture(),this.getScene().markAllMaterialsAsDirty(1,e=>e.hasTexture(this))),(!this.name||this.name.startsWith("data:"))&&(this.name=e),this.url=e,this._buffer=t,this._forcedExtension=r,this.delayLoadState=4;let s=this._delayedOnLoad,a=()=>{s?s():this.onLoadObservable.hasObservers()&&this.onLoadObservable.notifyObservers(this),i&&i()};this._delayedOnLoad=a,this.delayLoad()}delayLoad(){if(4!==this.delayLoadState)return;let e=this.getScene();if(!e)return;let t=this.url;!t&&(this.name.indexOf("://")>0||this.name.startsWith("data:"))&&(t=this.name),this.delayLoadState=1,this._texture=this._getFromCache(t,this._noMipmap,this.samplingMode,this._invertY,this._useSRGBBuffer,this.isCube),this._texture?this._delayedOnLoad&&(this._texture.isReady?X.TimingTools.SetImmediate(this._delayedOnLoad):this._texture.onLoadedObservable.add(this._delayedOnLoad)):(this._texture=e.getEngine().createTexture(t,this._noMipmap,this._invertY,e,this.samplingMode,this._delayedOnLoad,this._delayedOnError,this._buffer,null,this._format,this._forcedExtension,this._mimeType,this._loaderOptions,this._creationFlags,this._useSRGBBuffer),this._deleteBuffer&&(this._buffer=null)),this._delayedOnLoad=null,this._delayedOnError=null}_prepareRowForTextureGeneration(e,t,i,r){e*=this._cachedUScale,t*=this._cachedVScale,e-=this.uRotationCenter*this._cachedUScale,t-=this.vRotationCenter*this._cachedVScale,i-=this.wRotationCenter,j.Vector3.TransformCoordinatesFromFloatsToRef(e,t,i,this._rowGenerationMatrix,r),r.x+=this.uRotationCenter*this._cachedUScale+this._cachedUOffset,r.y+=this.vRotationCenter*this._cachedVScale+this._cachedVOffset,r.z+=this.wRotationCenter}getTextureMatrix(e=1){if(this.uOffset===this._cachedUOffset&&this.vOffset===this._cachedVOffset&&this.uScale*e===this._cachedUScale&&this.vScale===this._cachedVScale&&this.uAng===this._cachedUAng&&this.vAng===this._cachedVAng&&this.wAng===this._cachedWAng&&this.uRotationCenter===this._cachedURotationCenter&&this.vRotationCenter===this._cachedVRotationCenter&&this.wRotationCenter===this._cachedWRotationCenter&&this.homogeneousRotationInUVTransform===this._cachedHomogeneousRotationInUVTransform)return this._cachedTextureMatrix;this._cachedUOffset=this.uOffset,this._cachedVOffset=this.vOffset,this._cachedUScale=this.uScale*e,this._cachedVScale=this.vScale,this._cachedUAng=this.uAng,this._cachedVAng=this.vAng,this._cachedWAng=this.wAng,this._cachedURotationCenter=this.uRotationCenter,this._cachedVRotationCenter=this.vRotationCenter,this._cachedWRotationCenter=this.wRotationCenter,this._cachedHomogeneousRotationInUVTransform=this.homogeneousRotationInUVTransform,this._cachedTextureMatrix&&this._rowGenerationMatrix||(this._cachedTextureMatrix=j.Matrix.Zero(),this._rowGenerationMatrix=new j.Matrix,this._t0=j.Vector3.Zero(),this._t1=j.Vector3.Zero(),this._t2=j.Vector3.Zero()),j.Matrix.RotationYawPitchRollToRef(this.vAng,this.uAng,this.wAng,this._rowGenerationMatrix),this.homogeneousRotationInUVTransform?(j.Matrix.TranslationToRef(-this._cachedURotationCenter,-this._cachedVRotationCenter,-this._cachedWRotationCenter,j.TmpVectors.Matrix[0]),j.Matrix.TranslationToRef(this._cachedURotationCenter,this._cachedVRotationCenter,this._cachedWRotationCenter,j.TmpVectors.Matrix[1]),j.Matrix.ScalingToRef(this._cachedUScale,this._cachedVScale,0,j.TmpVectors.Matrix[2]),j.Matrix.TranslationToRef(this._cachedUOffset,this._cachedVOffset,0,j.TmpVectors.Matrix[3]),j.TmpVectors.Matrix[0].multiplyToRef(this._rowGenerationMatrix,this._cachedTextureMatrix),this._cachedTextureMatrix.multiplyToRef(j.TmpVectors.Matrix[1],this._cachedTextureMatrix),this._cachedTextureMatrix.multiplyToRef(j.TmpVectors.Matrix[2],this._cachedTextureMatrix),this._cachedTextureMatrix.multiplyToRef(j.TmpVectors.Matrix[3],this._cachedTextureMatrix),this._cachedTextureMatrix.setRowFromFloats(2,this._cachedTextureMatrix.m[12],this._cachedTextureMatrix.m[13],this._cachedTextureMatrix.m[14],1)):(this._prepareRowForTextureGeneration(0,0,0,this._t0),this._prepareRowForTextureGeneration(1,0,0,this._t1),this._prepareRowForTextureGeneration(0,1,0,this._t2),this._t1.subtractInPlace(this._t0),this._t2.subtractInPlace(this._t0),j.Matrix.FromValuesToRef(this._t1.x,this._t1.y,this._t1.z,0,this._t2.x,this._t2.y,this._t2.z,0,this._t0.x,this._t0.y,this._t0.z,0,0,0,0,1,this._cachedTextureMatrix));let t=this.getScene();if(!t)return this._cachedTextureMatrix;let i=this._cachedIdentity3x2;return this._cachedIdentity3x2=this._cachedTextureMatrix.isIdentityAs3x2(),this.optimizeUVAllocation&&i!==this._cachedIdentity3x2&&t.markAllMaterialsAsDirty(1,e=>e.hasTexture(this)),this._cachedTextureMatrix}getReflectionTextureMatrix(){let e=this.getScene();if(!e)return this._cachedReflectionTextureMatrix;if(this.uOffset===this._cachedReflectionUOffset&&this.vOffset===this._cachedReflectionVOffset&&this.uScale===this._cachedReflectionUScale&&this.vScale===this._cachedReflectionVScale&&this.coordinatesMode===this._cachedReflectionCoordinatesMode){if(this.coordinatesMode!==F.PROJECTION_MODE)return this._cachedReflectionTextureMatrix;else if(this._cachedReflectionProjectionMatrixId===e.getProjectionMatrix().updateFlag)return this._cachedReflectionTextureMatrix}this._cachedReflectionTextureMatrix||(this._cachedReflectionTextureMatrix=j.Matrix.Zero()),this._projectionModeMatrix||(this._projectionModeMatrix=j.Matrix.Zero());let t=this._cachedReflectionCoordinatesMode!==this.coordinatesMode;switch(this._cachedReflectionUOffset=this.uOffset,this._cachedReflectionVOffset=this.vOffset,this._cachedReflectionUScale=this.uScale,this._cachedReflectionVScale=this.vScale,this._cachedReflectionCoordinatesMode=this.coordinatesMode,this.coordinatesMode){case F.PLANAR_MODE:j.Matrix.IdentityToRef(this._cachedReflectionTextureMatrix),this._cachedReflectionTextureMatrix[0]=this.uScale,this._cachedReflectionTextureMatrix[5]=this.vScale,this._cachedReflectionTextureMatrix[12]=this.uOffset,this._cachedReflectionTextureMatrix[13]=this.vOffset;break;case F.PROJECTION_MODE:{j.Matrix.FromValuesToRef(.5,0,0,0,0,-.5,0,0,0,0,0,0,.5,.5,1,1,this._projectionModeMatrix);let t=e.getProjectionMatrix();this._cachedReflectionProjectionMatrixId=t.updateFlag,t.multiplyToRef(this._projectionModeMatrix,this._cachedReflectionTextureMatrix);break}default:j.Matrix.IdentityToRef(this._cachedReflectionTextureMatrix)}return t&&e.markAllMaterialsAsDirty(1,e=>e.hasTexture(this)),this._cachedReflectionTextureMatrix}clone(){let e={noMipmap:this._noMipmap,invertY:this._invertY,samplingMode:this.samplingMode,onLoad:void 0,onError:void 0,buffer:this._texture?this._texture._buffer:void 0,deleteBuffer:this._deleteBuffer,format:this.textureFormat,mimeType:this.mimeType,loaderOptions:this._loaderOptions,creationFlags:this._creationFlags,useSRGBBuffer:this._useSRGBBuffer};return er.SerializationHelper.Clone(()=>new F(this._texture?this._texture.url:null,this.getScene(),e),this)}serialize(){let e=this.name;!F.SerializeBuffers&&this.name.startsWith("data:")&&(this.name=""),this.name.startsWith("data:")&&this.url===this.name&&(this.url="");let t=super.serialize(F._SerializeInternalTextureUniqueId);if(!t)return null;if(F.SerializeBuffers||F.ForceSerializeBuffers)if("string"==typeof this._buffer&&this._buffer.startsWith("data:"))t.base64String=this._buffer,t.name=t.name.replace("data:","");else if(this.url&&this.url.startsWith("data:")&&this._buffer instanceof Uint8Array){let e=this.mimeType||"image/png";t.base64String=`data:${e};base64,${(0,K.EncodeArrayBufferToBase64)(this._buffer)}`}else(F.ForceSerializeBuffers||this.url&&this.url.startsWith("blob:")||this._forceSerialize)&&(t.base64String=!this._engine||this._engine._features.supportSyncTextureRead?ee(this):et(this));return t.invertY=this._invertY,t.samplingMode=this.samplingMode,t._creationFlags=this._creationFlags,t._useSRGBBuffer=this._useSRGBBuffer,F._SerializeInternalTextureUniqueId&&(t.internalTextureUniqueId=this._texture?.uniqueId),t.internalTextureLabel=this._texture?.label,t.noMipmap=this._noMipmap,this.name=e,t}getClassName(){return"Texture"}dispose(){super.dispose(),this.onLoadObservable.clear(),this._delayedOnLoad=null,this._delayedOnError=null,this._buffer=null}static Parse(e,t,i){let r;if(e.customType){let r=$.InstantiationTools.Instantiate(e.customType).Parse(e,t,i);return e.samplingMode&&r.updateSamplingMode&&r._samplingMode&&r._samplingMode!==e.samplingMode&&r.updateSamplingMode(e.samplingMode),r}if(e.isCube&&!e.isRenderTarget)return F._CubeTextureParser(e,t,i);let s=void 0!==e.internalTextureUniqueId;if(!e.name&&!e.isRenderTarget&&!s)return null;if(s){for(let i of t.getEngine().getLoadedTexturesCache())if(i.uniqueId===e.internalTextureUniqueId){r=i;break}}let a=t=>{if(t&&t._texture&&(t._texture._cachedWrapU=null,t._texture._cachedWrapV=null,t._texture._cachedWrapR=null),e.samplingMode){let i=e.samplingMode;t&&t.samplingMode!==i&&t.updateSamplingMode(i)}if(t&&e.animations)for(let i=0;i<e.animations.length;i++){let r=e.animations[i],s=(0,H.GetClass)("BABYLON.Animation");s&&t.animations.push(s.Parse(r))}t&&t._texture&&(s&&!r&&t._texture._setUniqueId(e.internalTextureUniqueId),t._texture.label=e.internalTextureLabel)};return er.SerializationHelper.Parse(()=>{let s=!0;if(e.noMipmap&&(s=!1),e.mirrorPlane){let i=F._CreateMirror(e.name,e.renderTargetSize,t,s);return i._waitingRenderList=e.renderList,i.mirrorPlane=J.Plane.FromArray(e.mirrorPlane),a(i),i}if(e.isRenderTarget&&!e.base64String){let i=null;if(e.isCube){if(t.reflectionProbes)for(let i=0;i<t.reflectionProbes.length;i++){let r=t.reflectionProbes[i];if(r.name===e.name)return r.cubeTexture}}else(i=F._CreateRenderTargetTexture(e.name,e.renderTargetSize,t,s,e._creationFlags??0))._waitingRenderList=e.renderList;return a(i),i}if(e.isVideo){let r=F._CreateVideoTexture(i+(e.url||e.name),i+(e.src||e.url),t,s,e.invertY,e.samplingMode,e.settings||{});return a(r),r}{let n;if("string"==typeof e.base64String&&e.base64String&&!r){let i={buffer:e.base64String,noMipmap:!s,invertY:e.invertY,samplingMode:e.samplingMode,useSRGBBuffer:e._useSRGBBuffer??!1,creationFlags:e._creationFlags??0,onLoad:()=>{a(n)}},r=e.base64String,h=r.startsWith("data:")?r.substring(5):r;(n=F.CreateFromBase64String("",h,t,i)).name=e.name}else{let h;h=e.name&&(e.name.indexOf("://")>0||e.name.startsWith("data:"))?e.name:i+e.name,e.url&&(e.url.startsWith("data:")||F.UseSerializedUrlIfAny)&&(h=e.url);let l={noMipmap:!s,invertY:e.invertY,samplingMode:e.samplingMode,useSRGBBuffer:e._useSRGBBuffer??!1,creationFlags:e._creationFlags??0,onLoad:()=>{a(n)},internalTexture:r};n=new F(h,t,l)}return n}},e,t)}static CreateFromBase64String(e,t,i,r,s,a=F.TRILINEAR_SAMPLINGMODE,n=null,h=null,l=5,o,u){return new F("data:"+t,i,r,s,a,n,h,e,!1,l,void 0,void 0,o,u)}static LoadFromDataString(e,t,i,r=!1,s,a=!0,n=F.TRILINEAR_SAMPLINGMODE,h=null,l=null,o=5,u,_){return"data:"!==e.substring(0,5)&&(e="data:"+e),new F(e,i,s,a,n,h,l,t,r,o,void 0,void 0,u,_)}},P="function"==typeof Symbol&&Symbol.metadata?Object.create(g[Symbol.metadata]??null):void 0,t=[(0,W.serialize)()],i=[(0,W.serialize)()],r=[(0,W.serialize)()],s=[(0,W.serialize)()],a=[(0,W.serialize)()],n=[(0,W.serialize)()],h=[(0,W.serialize)()],l=[(0,W.serialize)()],o=[(0,W.serialize)()],u=[(0,W.serialize)()],_=[(0,W.serialize)()],c=[(0,W.serialize)()],d=[(0,W.serialize)()],(0,k.__esDecorate)(F,null,d,{kind:"getter",name:"isBlocking",static:!1,private:!1,access:{has:e=>"isBlocking"in e,get:e=>e.isBlocking},metadata:P},null,x),(0,k.__esDecorate)(null,null,t,{kind:"field",name:"url",static:!1,private:!1,access:{has:e=>"url"in e,get:e=>e.url,set:(e,t)=>{e.url=t}},metadata:P},f,m),(0,k.__esDecorate)(null,null,i,{kind:"field",name:"uOffset",static:!1,private:!1,access:{has:e=>"uOffset"in e,get:e=>e.uOffset,set:(e,t)=>{e.uOffset=t}},metadata:P},p,R),(0,k.__esDecorate)(null,null,r,{kind:"field",name:"vOffset",static:!1,private:!1,access:{has:e=>"vOffset"in e,get:e=>e.vOffset,set:(e,t)=>{e.vOffset=t}},metadata:P},S,T),(0,k.__esDecorate)(null,null,s,{kind:"field",name:"uScale",static:!1,private:!1,access:{has:e=>"uScale"in e,get:e=>e.uScale,set:(e,t)=>{e.uScale=t}},metadata:P},M,I),(0,k.__esDecorate)(null,null,a,{kind:"field",name:"vScale",static:!1,private:!1,access:{has:e=>"vScale"in e,get:e=>e.vScale,set:(e,t)=>{e.vScale=t}},metadata:P},v,A),(0,k.__esDecorate)(null,null,n,{kind:"field",name:"uAng",static:!1,private:!1,access:{has:e=>"uAng"in e,get:e=>e.uAng,set:(e,t)=>{e.uAng=t}},metadata:P},O,b),(0,k.__esDecorate)(null,null,h,{kind:"field",name:"vAng",static:!1,private:!1,access:{has:e=>"vAng"in e,get:e=>e.vAng,set:(e,t)=>{e.vAng=t}},metadata:P},z,y),(0,k.__esDecorate)(null,null,l,{kind:"field",name:"wAng",static:!1,private:!1,access:{has:e=>"wAng"in e,get:e=>e.wAng,set:(e,t)=>{e.wAng=t}},metadata:P},E,D),(0,k.__esDecorate)(null,null,o,{kind:"field",name:"uRotationCenter",static:!1,private:!1,access:{has:e=>"uRotationCenter"in e,get:e=>e.uRotationCenter,set:(e,t)=>{e.uRotationCenter=t}},metadata:P},w,L),(0,k.__esDecorate)(null,null,u,{kind:"field",name:"vRotationCenter",static:!1,private:!1,access:{has:e=>"vRotationCenter"in e,get:e=>e.vRotationCenter,set:(e,t)=>{e.vRotationCenter=t}},metadata:P},C,B),(0,k.__esDecorate)(null,null,_,{kind:"field",name:"wRotationCenter",static:!1,private:!1,access:{has:e=>"wRotationCenter"in e,get:e=>e.wRotationCenter,set:(e,t)=>{e.wRotationCenter=t}},metadata:P},U,V),(0,k.__esDecorate)(null,null,c,{kind:"field",name:"homogeneousRotationInUVTransform",static:!1,private:!1,access:{has:e=>"homogeneousRotationInUVTransform"in e,get:e=>e.homogeneousRotationInUVTransform,set:(e,t)=>{e.homogeneousRotationInUVTransform=t}},metadata:P},N,G),P&&Object.defineProperty(F,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:P}),F.SerializeBuffers=!0,F.ForceSerializeBuffers=!1,F.OnTextureLoadErrorObservable=new Y.Observable,F._SerializeInternalTextureUniqueId=!1,F._CubeTextureParser=(e,t,i)=>{throw(0,Z._WarnImport)("CubeTexture")},F._CreateMirror=(e,t,i,r)=>{throw(0,Z._WarnImport)("MirrorTexture")},F._CreateRenderTargetTexture=(e,t,i,r,s)=>{throw(0,Z._WarnImport)("RenderTargetTexture")},F.NEAREST_SAMPLINGMODE=1,F.NEAREST_NEAREST_MIPLINEAR=8,F.BILINEAR_SAMPLINGMODE=2,F.LINEAR_LINEAR_MIPNEAREST=11,F.TRILINEAR_SAMPLINGMODE=3,F.LINEAR_LINEAR_MIPLINEAR=3,F.NEAREST_NEAREST_MIPNEAREST=4,F.NEAREST_LINEAR_MIPNEAREST=5,F.NEAREST_LINEAR_MIPLINEAR=6,F.NEAREST_LINEAR=7,F.NEAREST_NEAREST=1,F.LINEAR_NEAREST_MIPNEAREST=9,F.LINEAR_NEAREST_MIPLINEAR=10,F.LINEAR_LINEAR=2,F.LINEAR_NEAREST=12,F.EXPLICIT_MODE=0,F.SPHERICAL_MODE=1,F.PLANAR_MODE=2,F.CUBIC_MODE=3,F.PROJECTION_MODE=4,F.SKYBOX_MODE=5,F.INVCUBIC_MODE=6,F.EQUIRECTANGULAR_MODE=7,F.FIXED_EQUIRECTANGULAR_MODE=8,F.FIXED_EQUIRECTANGULAR_MIRRORED_MODE=9,F.CLAMP_ADDRESSMODE=0,F.WRAP_ADDRESSMODE=1,F.MIRROR_ADDRESSMODE=2,F.UseSerializedUrlIfAny=!1,F),ea=!1;e.s(["RegisterTexture",0,function(){ea||(ea=!0,(0,H.RegisterClass)("BABYLON.Texture",es),er.SerializationHelper._TextureParser=es.Parse)},"Texture",0,es],20363)}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,69003,e=>{"use strict";var l=e.i(63235);function n(e){return e.split(" ").filter(e=>""!==e).map(e=>parseFloat(e))}function t(e,l,t){for(;t.length!==l;){let l=n(e.lines[e.index++]);t.push(...l)}}e.s(["_IESTextureLoader",0,class{constructor(){this.supportCascades=!1}loadCubeData(){throw".ies not supported in Cube."}loadData(e,a,r){let i=function(e){let a={lines:new TextDecoder("utf-8").decode(e).split("\n"),index:0},r={version:a.lines[0],candelaValues:[],horizontalAngles:[],verticalAngles:[],numberOfHorizontalAngles:0,numberOfVerticalAngles:0};for(a.index=1;a.lines.length>0&&!a.lines[a.index].includes("TILT=");)a.index++;a.lines[a.index].includes("INCLUDE"),a.index++;let i=n(a.lines[a.index++]);r.numberOfLights=i[0],r.lumensPerLamp=i[1],r.candelaMultiplier=i[2],r.numberOfVerticalAngles=i[3],r.numberOfHorizontalAngles=i[4],r.photometricType=i[5],r.unitsType=i[6],r.width=i[7],r.length=i[8],r.height=i[9];let o=n(a.lines[a.index++]);r.ballastFactor=o[0],r.fileGenerationType=o[1],r.inputWatts=o[2];for(let e=0;e<r.numberOfHorizontalAngles;e++)r.candelaValues[e]=[];t(a,r.numberOfVerticalAngles,r.verticalAngles),t(a,r.numberOfHorizontalAngles,r.horizontalAngles);for(let e=0;e<r.numberOfHorizontalAngles;e++)t(a,r.numberOfVerticalAngles,r.candelaValues[e]);let s=-1;for(let e=0;e<r.numberOfHorizontalAngles;e++)for(let l=0;l<r.numberOfVerticalAngles;l++)r.candelaValues[e][l]*=r.candelaValues[e][l]*r.candelaMultiplier*r.ballastFactor*r.fileGenerationType,s=Math.max(s,r.candelaValues[e][l]);if(s>0)for(let e=0;e<r.numberOfHorizontalAngles;e++)for(let l=0;l<r.numberOfVerticalAngles;l++)r.candelaValues[e][l]/=s;let u=new Float32Array(64800),c=r.horizontalAngles[0],f=r.horizontalAngles[r.numberOfHorizontalAngles-1];for(let e=0;e<64800;e++){let n=e%360,t=Math.floor(e/360);f-c!=0&&(n<c||n>=f)&&(n%=2*f)>f&&(n=2*f-n),u[t+180*n]=function(e,n,t){let a=0,r=0,i=0,o=0,s=0,u=0;for(let l=0;l<e.numberOfHorizontalAngles-1;l++)if(t<e.horizontalAngles[l+1]||l===e.numberOfHorizontalAngles-2){r=l,i=e.horizontalAngles[l],o=e.horizontalAngles[l+1];break}for(let l=0;l<e.numberOfVerticalAngles-1;l++)if(n<e.verticalAngles[l+1]||l===e.numberOfVerticalAngles-2){a=l,s=e.verticalAngles[l],u=e.verticalAngles[l+1];break}let c=o-i,f=u-s;if(0===f)return 0;let g=0===c?0:(t-i)/c,d=(n-s)/f,A=0===c?r:r+1,b=(0,l.Lerp)(e.candelaValues[r][a],e.candelaValues[A][a],g),h=(0,l.Lerp)(e.candelaValues[r][a+1],e.candelaValues[A][a+1],g);return(0,l.Lerp)(b,h,d)}(r,t,n)}return{width:180,height:1,data:u}}(new Uint8Array(e.buffer,e.byteOffset,e.byteLength));r(i.width,i.height,!!a.useMipMaps,!1,()=>{let e=a.getEngine();a.type=1,a.format=6,a._gammaSpace=!1,e._uploadDataToTextureDirectly(a,i.data)})}}],69003)}]);
|