1var yS=Object.defineProperty,xS=Object.getPrototypeOf,SS=Reflect.get,kv=e=>{throw TypeError(e)},ES=(e,t,n)=>t in e?yS(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Y=(e,t,n)=>ES(e,"symbol"!=typeof t?t+"":t,n),Cf=(e,t,n)=>t.has(e)||kv("Cannot "+n),N=(e,t,n)=>(Cf(e,t,"read from private field"),n?n.call(e):t.get(e)),Re=(e,t,n)=>t.has(e)?kv("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),zt=(e,t,n,i)=>(Cf(e,t,"write to private field"),i?i.call(e,n):t.set(e,n),n),Ro=(e,t,n)=>(Cf(e,t,"access private method"),n),zv=(e,t,n)=>SS(xS(e),n,t);const wS="5";var u0;typeof window<"u"&&((u0=window.__svelte??(window.__svelte={})).v??(u0.v=new Set)).add(wS);const hm=1,pm=2,_0=4,MS=8,TS=16,AS=1,CS=2,y0=4,PS=8,RS=16,LS=1,DS=2,IS=4,NS=1,OS=2,mm="[",vm="[!",gm="]",Gs={},$n=Symbol(),US="http://www.w3.org/1999/xhtml",FS="http://www.w3.org/2000/svg",Hv=!1,fr=2,x0=4,jd=8,Kd=16,Xr=32,ls=64,yd=128,Ii=256,xd=512,Si=1024,qr=2048,Ea=4096,kr=8192,Qd=16384,S0=32768,cs=65536,BS=1<<17,kS=1<<19,E0=1<<20,kh=1<<21,mo=Symbol("$state"),bm=Symbol("legacy props"),zS=Symbol("");var _m=Array.isArray,HS=Array.prototype.indexOf,ym=Array.from,Sd=Object.keys,Ed=Object.defineProperty,zr=Object.getOwnPropertyDescriptor,w0=Object.getOwnPropertyDescriptors,VS=Object.prototype,$S=Array.prototype,xm=Object.getPrototypeOf,Vv=Object.isExtensible;function Us(e){return"function"==typeof e}const ct=()=>{};function M0(e){for(var t=0;t<e.length;t++)e[t]()}const GS=typeof requestIdleCallback>"u"?e=>setTimeout(e,1):requestIdleCallback;let vl=[],gl=[];function T0(){var e=vl;vl=[],M0(e)}function A0(){var e=gl;gl=[],M0(e)}function wa(e){0===vl.length&&queueMicrotask(T0),vl.push(e)}function WS(e){0===gl.length&&GS(A0),gl.push(e)}function $v(){vl.length>0&&T0(),gl.length>0&&A0()}function C0(e){return e===this.v}function Sm(e,t){return e!=e?t==t:e!==t||null!==e&&"object"==typeof e||"function"==typeof e}function XS(e,t){return e!==t}function Em(e){return!Sm(e,this.v)}function qS(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function YS(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function jS(e){throw new Error("https://svelte.dev/e/effect_orphan")}function KS(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function QS(){throw new Error("https://svelte.dev/e/hydration_failed")}function ZS(e){throw new Error("https://svelte.dev/e/props_invalid_value")}function JS(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function eE(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function tE(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}let Ma=!1,nE=!1;function iE(){Ma=!0}function Lt(e,t){if("object"!=typeof e||null===e||mo in e)return e;const n=xm(e);if(n!==VS&&n!==$S)return e;var i=new Map,r=_m(e),o=ie(0),s=$t,a=e=>{var t,n=$t;return Oi(s),t=e(),Oi(n),t};return r&&i.set("length",ie(e.length)),new Proxy(e,{defineProperty(e,t,n){(!("value"in n)||!1===n.configurable||!1===n.enumerable||!1===n.writable)&&JS();var r=i.get(t);return void 0===r?(r=a((()=>ie(n.value))),i.set(t,r)):X(r,a((()=>Lt(n.value)))),!0},deleteProperty(e,t){var n=i.get(t);if(void 0===n)t in e&&i.set(t,a((()=>ie($n))));else{if(r&&"string"==typeof t){var s=i.get("length"),l=Number(t);Number.isInteger(l)&&l<s.v&&X(s,l)}X(n,$n),Gv(o)}return!0},get(t,n,r){var o;if(n===mo)return e;var s=i.get(n),l=n in t;if(void 0===s&&(!l||null!=(o=zr(t,n))&&o.writable)&&(s=a((()=>ie(Lt(l?t[n]:$n)))),i.set(n,s)),void 0!==s){var c=y(s);return c===$n?void 0:c}return Reflect.get(t,n,r)},getOwnPropertyDescriptor(e,t){var n=Reflect.getOwnPropertyDescriptor(e,t);if(n&&"value"in n){var r=i.get(t);r&&(n.value=y(r))}else if(void 0===n){var o=i.get(t),s=null==o?void 0:o.v;if(void 0!==o&&s!==$n)return{enumerable:!0,configurable:!0,value:s,writable:!0}}return n},has(e,t){var n;if(t===mo)return!0;var r=i.get(t),o=void 0!==r&&r.v!==$n||Reflect.has(e,t);if((void 0!==r||null!==Gt&&(!o||null!=(n=zr(e,t))&&n.writable))&&(void 0===r&&(r=a((()=>ie(o?Lt(e[t]):$n))),i.set(t,r)),y(r)===$n))return!1;return o},set(e,t,n,s){var l,c=i.get(t),u=t in e;if(r&&"length"===t)for(var d=n;d<c.v;d+=1){var h=i.get(d+"");void 0!==h?X(h,$n):d in e&&(h=a((()=>ie($n))),i.set(d+"",h))}void 0===c?(!u||null!=(l=zr(e,t))&&l.writable)&&(X(c=a((()=>ie(void 0))),a((()=>Lt(n)))),i.set(t,c)):(u=c.v!==$n,X(c,a((()=>Lt(n)))));var p=Reflect.getOwnPropertyDescriptor(e,t);if(null!=p&&p.set&&p.set.call(s,n),!u){if(r&&"string"==typeof t){var f=i.get("length"),m=Number(t);Number.isInteger(m)&&m>=f.v&&X(f,m+1)}Gv(o)}return!0},ownKeys(e){y(o);var t=Reflect.ownKeys(e).filter((e=>{var t=i.get(e);return void 0===t||t.v!==$n}));for(var[n,r]of i)r.v!==$n&&!(n in e)&&t.push(n);return t},setPrototypeOf(){eE()}})}function Gv(e,t=1){X(e,e.v+t)}const bl=new Map;function Pn(e,t){return{f:0,v:e,reactions:null,equals:C0,rv:0,wv:0}}function ie(e,t){const n=Pn(e);return F0(n),n}function wm(e,t=!1){var n;const i=Pn(e);return t||(i.equals=Em),Ma&&null!==Zt&&null!==Zt.l&&((n=Zt.l).s??(n.s=[])).push(i),i}function X(e,t,n=!1){return null!==$t&&!Gi&&Ta()&&18&$t.f&&(null==Zn||!Zn.includes(e))&&tE(),zh(e,n?Lt(t):t)}function zh(e,t){if(!e.equals(t)){var n=e.v;ru?bl.set(e,t):bl.set(e,n),e.v=t,e.wv=k0(),P0(e,qr),Ta()&&null!==Gt&&Gt.f&Si&&!(96&Gt.f)&&(null===Ci?aE([e]):Ci.push(e))}return t}
1function Wv(e,t=1){var n=y(e),i=1===t?n++:n--;return X(e,n),i}function P0(e,t){var n=e.reactions;if(null!==n)for(var i=Ta(),r=n.length,o=0;o<r;o++){var s=n[o],a=s.f;!(a&qr)&&(!i&&s===Gt||(pr(s,t),1280&a&&(2&a?P0(s,Ea):tf(s))))}}function _l(e){var t=2050,n=null!==$t&&2&$t.f?$t:null;return null===Gt||null!==n&&n.f&Ii?t|=Ii:Gt.f|=E0,{ctx:Zt,deps:null,effects:null,equals:C0,f:t,fn:e,reactions:null,rv:0,v:null,wv:0,parent:n??Gt}}function _e(e){const t=_l(e);return F0(t),t}function R0(e){const t=_l(e);return t.equals=Em,t}function L0(e){var t=e.effects;if(null!==t){e.effects=null;for(var n=0;n<t.length;n+=1)Ui(t[n])}}function rE(e){for(var t=e.parent;null!==t;){if(!(2&t.f))return t;t=t.parent}return null}function oE(e){var t,n=Gt;hr(rE(e));try{L0(e),t=H0(e)}finally{hr(n)}return t}function D0(e){var t=oE(e);pr(e,(ho||e.f&Ii)&&null!==e.deps?Ea:Si),e.equals(t)||(e.v=t,e.wv=k0())}function Zd(e){console.warn("https://svelte.dev/e/hydration_mismatch")}let Tt,bt=!1;function vi(e){bt=e}function Qn(e){if(null===e)throw Zd(),Gs;return Tt=e}function Ni(){return Qn(br(Tt))}function oe(e){if(bt){if(null!==br(Tt))throw Zd(),Gs;Tt=e}}function Jd(e=1){if(bt){for(var t=e,n=Tt;t--;)n=br(n);Tt=n}}function Hh(){for(var e=0,t=Tt;;){if(8===t.nodeType){var n=t.data;if(n===gm){if(0===e)return t;e-=1}else(n===mm||n===vm)&&(e+=1)}var i=br(t);t.remove(),t=i}}var Xv,I0,N0,O0;function Vh(){if(void 0===Xv){Xv=window,I0=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;N0=zr(t,"firstChild").get,O0=zr(t,"nextSibling").get,Vv(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),Vv(n)&&(n.__t=void 0)}}function Gr(e=""){return document.createTextNode(e)}function oi(e){return N0.call(e)}function br(e){return O0.call(e)}function ae(e,t){if(!bt)return oi(e);var n=oi(Tt);if(null===n)n=Tt.appendChild(Gr());else if(t&&3!==n.nodeType){var i=Gr();return null==n||n.before(i),Qn(i),i}return Qn(n),n}function G(e,t){if(!bt){var n=oi(e);return n instanceof Comment&&""===n.data?br(n):n}return Tt}function Ge(e,t=1,n=!1){let i=bt?Tt:e;for(var r;t--;)r=i,i=br(i);if(!bt)return i;var o=null==i?void 0:i.nodeType;if(n&&3!==o){var s=Gr();return null===i?null==r||r.after(s):i.before(s),Qn(s),s}return Qn(i),i}function U0(e){e.textContent=""}let nd=!1,wd=!1,Md=null,Zo=!1,ru=!1;function qv(e){ru=e}let ol=[],$t=null,Gi=!1;function Oi(e){$t=e}let Gt=null;function hr(e){Gt=e}let Zn=null;function sE(e){Zn=e}function F0(e){null!==$t&&$t.f&kh&&(null===Zn?sE([e]):Zn.push(e))}let Yn=null,hi=0,Ci=null;function aE(e){Ci=e}let B0=1,Td=0,ho=!1;function k0(){return++B0}function ou(e){var t,n=e.f;if(n&qr)return!0;if(n&Ea){var i=e.deps,r=!!(n&Ii);if(null!==i){var o,s,a=!!(n&xd),l=r&&null!==Gt&&!ho,c=i.length;if(a||l){var u=e,d=u.parent;for(o=0;o<c;o++)s=i[o],(a||null==(t=null==s?void 0:s.reactions)||!t.includes(u))&&(s.reactions??(s.reactions=[])).push(u);a&&(u.f^=xd),l&&null!==d&&!(d.f&Ii)&&(u.f^=Ii)}for(o=0;o<c;o++)if(ou(s=i[o])&&D0(s),s.wv>e.wv)return!0}(!r||null!==Gt&&!ho)&&pr(e,Si)}return!1}function lE(e,t){for(var n=t;null!==n;){if(n.f&yd)try{return void n.fn(e)}catch{n.f^=yd}n=n.parent}throw nd=!1,e}function cE(e){return!(e.f&Qd||null!==e.parent&&e.parent.f&yd)}function ef(e,t,n,i){if(nd){if(null===n&&(nd=!1),cE(t))throw e}else null!==n&&(nd=!0),lE(e,t)}function z0(e,t,n=!0){var i=e.reactions;if(null!==i)for(var r=0;r<i.length;r++){var o=i[r];null!=Zn&&Zn.includes(e)||(2&o.f?z0(o,t,!1):t===o&&(n?pr(o,qr):!!(o.f&Si)&&pr(o,Ea),tf(o)))}}function H0(e){var t,n=Yn,i=hi,r=Ci,o=$t,s=ho,a=Zn,l=Zt,c=Gi,u=e.f;Yn=null,hi=0,Ci=null,ho=!!(u&Ii)&&(Gi||!Zo||null===$t),$t=96&u?null:e,Zn=null,Yv(e.ctx),Gi=!1,Td++,e.f|=kh;try{var d=(0,e.fn)(),h=e.deps;if(null!==Yn){var p;if(Ad(e,hi),null!==h&&hi>0)for(h.length=hi+Yn.length,p=0;p<Yn.length;p++)h[hi+p]=Yn[p];else e.deps=h=Yn;if(!ho)for(p=hi;p<h.length;p++)((t=h[p]).reactions??(t.reactions=[])).push(e)}else null!==h&&hi<h.length&&(Ad(e,hi),h.length=hi);if(Ta()&&null!==Ci&&!Gi&&null!==h&&!(6146&e.f))for(p=0;p<Ci.length;p++)z0(Ci[p],e);return null!==o&&(Td++,null!==Ci&&(null===r?r=Ci:r.push(...Ci))),d}finally{Yn=n,hi=i,Ci=r,$t=o,ho=s,Zn=a,Yv(l),Gi=c,e.f^=kh}}function uE(e,t){let n=t.reactions;if(null!==n){var i=HS.call(n,e);if(-1!==i){var r=n.length-1;0===r?n=t.reactions=null:(n[i]=n[r],n.pop())}}null===n&&2&t.f&&(null===Yn||!Yn.includes(t))&&(pr(t,Ea),!(768&t.f)&&(t.f^=xd),L0(t),Ad(t,0))}function Ad(e,t){var n=e.deps;if(null!==n)for(var i=t;i<n.length;i++)uE(e,n[i])}function Mm(e){var t=e.f;if(!(t&Qd)){pr(e,Si);var n=Gt,i=Zt,r=Zo;Gt=e,Zo=!0;try{16&t?_E(e):q0(e),X0(e);var o=H0(e);e.teardown="function"==typeof o?o:null,e.wv=B0;e.deps}catch(t){ef(t,e,n,i||e.ctx)}finally{Zo=r,Gt=n}}}function dE(){try{KS()}catch(e){if(null===Md)throw e;ef(e,Md,null)}}function V0(){var e=Zo;try{var t=0;for(Zo=!0;ol.length>0;){t++>1e3&&dE();var n=ol,i=n.length;ol=[];for(var r=0;r<i;r++){fE(hE(n[r]))}bl.clear()}}finally{wd=!1,Zo=e,Md=null}}function fE(e){var t=e.length;if(0!==t)for(var n=0;n<t;n++){var i=e[n];if(!(24576&i.f))try{ou(i)&&(Mm(i),null===i.deps&&null===i.first&&null===i.nodes_start&&(null===i.teardown?Y0(i):i.fn=null))}catch(e){ef(e,i,null,i.ctx)}}}function tf(e){wd||(wd=!0,queueMicrotask(V0));for(var t=Md=e;null!==t.parent;){var n=(t=t.parent).f;if(96&n){if(!(n&Si))return;t.f^=Si}}ol.push(t)}function hE(e){for(var t=[],n=e;null!==n;){var i=n.f,r=!!(96&i);if(!(r&&!!(i&Si)||i&kr)){if(4&i)t.push(n);else if(r)n.f^=Si;else{var o=$t;try{$t=n,ou(n)&&Mm(n)}catch(e){ef(e,n,null,n.ctx)}finally{$t=o}}var s=n.first;if(null!==s){n=s;continue}}var a=n.parent;for(n=n.next;null===n&&null!==a;)n=a.next,a=a.parent}return t}
1function R(e){for($v();ol.length>0;)wd=!0,V0(),$v()}async function su(){await Promise.resolve(),R()}function y(e){var t=!!(2&e.f);if(null===$t||Gi){if(t&&null===e.deps&&null===e.effects){var n=e,i=n.parent;null!==i&&!(i.f&Ii)&&(n.f^=Ii)}}else if(null==Zn||!Zn.includes(e)){var r=$t.deps;e.rv<Td&&(e.rv=Td,null===Yn&&null!==r&&r[hi]===e?hi++:null===Yn?Yn=[e]:(!ho||!Yn.includes(e))&&Yn.push(e))}return t&&(ou(n=e)&&D0(n)),ru&&bl.has(e)?bl.get(e):e.v}function pn(e){var t=Gi;try{return Gi=!0,e()}finally{Gi=t}}const pE=-7169;function pr(e,t){e.f=e.f&pE|t}function $0(e,t){var n={};for(var i in e)t.includes(i)||(n[i]=e[i]);return n}function mE(e){if("object"==typeof e&&e&&!(e instanceof EventTarget))if(mo in e)$h(e);else if(!Array.isArray(e))for(let t in e){const n=e[t];"object"==typeof n&&n&&mo in n&&$h(n)}}function $h(e,t=new Set){if(!("object"!=typeof e||null===e||e instanceof EventTarget||t.has(e))){t.add(e),e instanceof Date&&e.getTime();for(let n in e)try{$h(e[n],t)}catch{}const n=xm(e);if(n!==Object.prototype&&n!==Array.prototype&&n!==Map.prototype&&n!==Set.prototype&&n!==Date.prototype){const t=w0(n);for(let n in t){const i=t[n].get;if(i)try{i.call(e)}catch{}}}}}function G0(e){null===Gt&&null===$t&&jS(),null!==$t&&!!($t.f&Ii)&&null===Gt&&YS(),ru&&qS()}function vE(e,t){var n=t.last;null===n?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}function us(e,t,n,i=!0){var r=Gt,o={ctx:Zt,deps:null,nodes_start:null,nodes_end:null,f:e|qr,first:null,fn:t,last:null,next:null,parent:r,prev:null,teardown:null,transitions:null,wv:0};if(n)try{Mm(o),o.f|=S0}catch(e){throw Ui(o),e}else null!==t&&tf(o);if(!(n&&null===o.deps&&null===o.first&&null===o.nodes_start&&null===o.teardown&&!(o.f&(E0|yd)))&&i&&(null!==r&&vE(o,r),null!==$t&&2&$t.f)){var s=$t;(s.effects??(s.effects=[])).push(o)}return o}function gE(){return null!==$t&&!Gi}function W0(e){const t=us(8,null,!1);return pr(t,Si),t.teardown=e,t}function ut(e){if(G0(),!(null!==Gt&&!!(32&Gt.f)&&null!==Zt&&!Zt.m))return ds(e);var t=Zt;(t.e??(t.e=[])).push({fn:e,effect:Gt,reaction:$t})}function Jn(e){return G0(),fs(e)}function Tm(e){const t=us(64,e,!0);return()=>{Ui(t)}}function bE(e){const t=us(64,e,!0);return(e={})=>new Promise((n=>{e.outro?is(t,(()=>{Ui(t),n(void 0)})):(Ui(t),n(void 0))}))}function ds(e){return us(4,e,!1)}function fs(e){return us(8,e,!0)}function et(e,t=[],n=_l){const i=t.map(n);return wo((()=>e(...i.map(y))))}function wo(e,t=0){return us(24|t,e,!0)}function mr(e,t=!0){return us(40,e,!0,t)}function X0(e){var t=e.teardown;
1if(null!==t){const e=ru,n=$t;qv(!0),Oi(null);try{t.call(null)}finally{qv(e),Oi(n)}}}function q0(e,t=!1){var n=e.first;for(e.first=e.last=null;null!==n;){var i=n.next;64&n.f?n.parent=null:Ui(n,t),n=i}}function _E(e){for(var t=e.first;null!==t;){var n=t.next;!(32&t.f)&&Ui(t),t=n}}function Ui(e,t=!0){var n=!1;if((t||e.f&kS)&&null!==e.nodes_start){for(var i=e.nodes_start,r=e.nodes_end;null!==i;){var o=i===r?null:br(i);i.remove(),i=o}n=!0}q0(e,t&&!n),Ad(e,0),pr(e,Qd);var s=e.transitions;if(null!==s)for(const e of s)e.stop();X0(e);var a=e.parent;null!==a&&null!==a.first&&Y0(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes_start=e.nodes_end=null}function Y0(e){var t=e.parent,n=e.prev,i=e.next;null!==n&&(n.next=i),null!==i&&(i.prev=n),null!==t&&(t.first===e&&(t.first=i),t.last===e&&(t.last=n))}function is(e,t){var n=[];Am(e,n,!0),j0(n,(()=>{Ui(e),t&&t()}))}function j0(e,t){var n=e.length;if(n>0){var i=()=>--n||t();for(var r of e)r.out(i)}else t()}function Am(e,t,n){if(!(e.f&kr)){if(e.f^=kr,null!==e.transitions)for(const i of e.transitions)(i.is_global||n)&&t.push(i);for(var i=e.first;null!==i;){var r=i.next;Am(i,t,!!(!!(i.f&cs)||!!(32&i.f))&&n),i=r}}}function yl(e){K0(e,!0)}function K0(e,t){if(e.f&kr){e.f^=kr,!(e.f&Si)&&(e.f^=Si),ou(e)&&(pr(e,qr),tf(e));for(var n=e.first;null!==n;){var i=n.next;K0(n,!!(!!(n.f&cs)||!!(32&n.f))&&t),n=i}if(null!==e.transitions)for(const n of e.transitions)(n.is_global||t)&&n.in()}}function Cm(e){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}let Zt=null;function Yv(e){Zt=e}function yn(e){return Pm().get(e)}function hs(e,t){return Pm().set(e,t),t}function xl(e){return Pm().has(e)}function he(e,t=!1,n){var i=Zt={p:Zt,c:null,d:!1,e:null,m:!1,s:e,x:null,l:null};Ma&&!t&&(Zt.l={s:null,u:null,r1:[],r2:Pn(!1)}),W0((()=>{i.d=!0}))}function pe(e){const t=Zt;if(null!==t){void 0!==e&&(t.x=e);const s=t.e;if(null!==s){var n=Gt,i=$t;t.e=null;try{for(var r=0;r<s.length;r++){var o=s[r];hr(o.effect),Oi(o.reaction),ds(o.fn)}}finally{hr(n),Oi(i)}}Zt=t.p,t.m=!0}return e||{}}function Ta(){return!Ma||null!==Zt&&null===Zt.l}function Pm(e){return null===Zt&&Cm(),Zt.c??(Zt.c=new Map(yE(Zt)||void 0))}function yE(e){let t=e.p;for(;null!==t;){const e=t.c;if(null!==e)return e;t=t.p}return null}function xE(e){return e.endsWith("capture")&&"gotpointercapture"!==e&&"lostpointercapture"!==e}const SE=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function EE(e){return SE.includes(e)}const wE={formnovalidate:"formNoValidate",ismap:"isMap",nomodule:"noModule",playsinline:"playsInline",readonly:"readOnly",defaultvalue:"defaultValue",defaultchecked:"defaultChecked",srcobject:"srcObject",novalidate:"noValidate",allowfullscreen:"allowFullscreen",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback"};function ME(e){return e=e.toLowerCase(),wE[e]??e}const TE=["touchstart","touchmove"];function AE(e){return TE.includes(e)}const CE=["textarea","script","style","title"];function PE(e){return CE.includes(e)}function RE(e,t){if(t){const t=document.body;e.autofocus=!0,wa((()=>{document.activeElement===t&&e.focus()}))}}let jv=!1;function Q0(){jv||(jv=!0,document.addEventListener("reset",(e=>{Promise.resolve().then((()=>{var t;if(!e.defaultPrevented)for(const n of e.target.elements)null==(t=n.__on_r)||t.call(n)}))}),{capture:!0}))}function Rm(e){var t=$t,n=Gt;Oi(null),hr(null);try{return e()}finally{Oi(t),hr(n)}}function LE(e,t,n,i=n){e.addEventListener(t,(()=>Rm(n)));const r=e.__on_r;e.__on_r=r?()=>{r(),i(!0)}:()=>i(!0),Q0()}const Z0=new Set,Gh=new Set;function Lm(e,t,n,i={}){function r(e){if(i.capture||Ka.call(t,e),!e.cancelBubble)return Rm((()=>null==n?void 0:n.call(this,e)))}return e.startsWith("pointer")||e.startsWith("touch")||"wheel"===e?wa((()=>{t.addEventListener(e,r,i)})):t.addEventListener(e,r,i),r}function Wh(e,t,n,i={}){var r=Lm(t,e,n,i);return()=>{e.removeEventListener(t,r,i)}}function Xh(e,t,n,i,r){var o={capture:i,passive:r},s=Lm(e,t,n,o);(t===document.body||t===window||t===document)&&W0((()=>{t.removeEventListener(e,s,o)}))}function J0(e){for(var t=0;t<e.length;t++)Z0.add(e[t]);for(var n of Gh)n(e)}function Ka(e){var t,n=this,i=n.ownerDocument,r=e.type,o=(null==(t=e.composedPath)?void 0:t.call(e))||[],s=o[0]||e.target,a=0,l=e.__root;if(l){var c=o.indexOf(l);if(-1!==c&&(n===document||n===window))return void(e.__root=n);var u=o.indexOf(n);if(-1===u)return;c<=u&&(a=c)}if((s=o[a]||e.target)!==n){Ed(e,"currentTarget",{configurable:!0,get:()=>s||i});var d=$t,h=Gt;Oi(null),hr(null);try{for(var p,f=[];null!==s;){var m=s.assignedSlot||s.parentNode||s.host||null;try{var g=s["__"+r];
1if(null!=g&&(!s.disabled||e.target===s))if(_m(g)){var[v,...b]=g;v.apply(s,[e,...b])}else g.call(s,e)}catch(e){p?f.push(e):p=e}if(e.cancelBubble||m===n||null===m)break;s=m}if(p){for(let e of f)queueMicrotask((()=>{throw e}));throw p}}finally{e.__root=n,delete e.currentTarget,Oi(d),hr(h)}}}function Dm(e){var t=document.createElement("template");return t.innerHTML=e,t.content}function gi(e,t){var n=Gt;null===n.nodes_start&&(n.nodes_start=e,n.nodes_end=t)}function me(e,t){var n,i=!!(1&t),r=!!(2&t),o=!e.startsWith("<!>");return()=>{if(bt)return gi(Tt,null),Tt;void 0===n&&(n=Dm(o?e:"<!>"+e),i||(n=oi(n)));var t=r||I0?document.importNode(n,!0):n.cloneNode(!0);i?gi(oi(t),t.lastChild):gi(t,t);return t}}function ai(e,t,n="svg"){var i,r=`<${n}>${!e.startsWith("<!>")?e:"<!>"+e}</${n}>`;return()=>{if(bt)return gi(Tt,null),Tt;if(!i){var e=Dm(r);i=oi(oi(e))}var t=i.cloneNode(!0);return gi(t,t),t}}function Im(e=""){if(!bt){var t=Gr(e+"");return gi(t,t),t}var n=Tt;return 3!==n.nodeType&&(n.before(n=Gr()),Qn(n)),gi(n,n),n}function j(){if(bt)return gi(Tt,null),Tt;var e=document.createDocumentFragment(),t=document.createComment(""),n=Gr();return e.append(t,n),gi(t,n),e}function C(e,t){if(bt)return Gt.nodes_end=Tt,void Ni();null!==e&&e.before(t)}function DE(){var e,t;if(bt&&Tt&&8===Tt.nodeType&&null!=(e=Tt.textContent)&&e.startsWith("#")){const e=Tt.textContent.substring(1);return Ni(),e}return(t=window.__svelte??(window.__svelte={})).uid??(t.uid=1),"c"+window.__svelte.uid++}let Cd=!0;function Kv(e){Cd=e}function bn(e,t){var n=null==t?"":"object"==typeof t?t+"":t;n!==(e.__t??(e.__t=e.nodeValue))&&(e.__t=n,e.nodeValue=n+"")}function e_(e,t){return t_(e,t)}function IE(e,t){Vh(),t.intro=t.intro??!1;const n=t.target,i=bt,r=Tt;try{for(var o=oi(n);o&&(8!==o.nodeType||o.data!==mm);)o=br(o);if(!o)throw Gs;vi(!0),Qn(o),Ni();const i=t_(e,{...t,anchor:o});if(null===Tt||8!==Tt.nodeType||Tt.data!==gm)throw Zd(),Gs;return vi(!1),i}catch(i){if(i===Gs)return!1===t.recover&&QS(),Vh(),U0(n),vi(!1),e_(e,t);throw i}finally{vi(i),Qn(r)}}const gs=new Map;function t_(e,{target:t,anchor:n,props:i={},events:r,context:o,intro:s=!0}){Vh();var a=new Set,l=e=>{for(var n=0;n<e.length;n++){var i=e[n];if(!a.has(i)){a.add(i);var r=AE(i);t.addEventListener(i,Ka,{passive:r});var o=gs.get(i);void 0===o?(document.addEventListener(i,Ka,{passive:r}),gs.set(i,1)):gs.set(i,o+1)}}};l(ym(Z0)),Gh.add(l);var c=void 0,u=bE((()=>{var u=n??t.appendChild(Gr());return mr((()=>{o&&(he({}),Zt.c=o);r&&(i.$$events=r),bt&&gi(u,null),Cd=s,c=e(u,i)||{},Cd=!0,bt&&(Gt.nodes_end=Tt),o&&pe()})),()=>{var e;for(var i of a){t.removeEventListener(i,Ka);var r=gs.get(i);0==--r?(document.removeEventListener(i,Ka),gs.delete(i)):gs.set(i,r)}Gh.delete(l),u!==n&&(null==(e=u.parentNode)||e.removeChild(u))}}));return qh.set(c,u),c}let qh=new WeakMap;function NE(e,t){const n=qh.get(e);return n?(qh.delete(e),n(t)):Promise.resolve()}function Ke(e,t,[n,i]=[0,0]){bt&&0===n&&Ni();var r=e,o=null,s=null,a=$n,l=!1;const c=(e,t=!0)=>{l=!0,u(t,e)},u=(e,t)=>{if(a===(a=e))return;let l=!1;if(bt&&-1!==i){if(0===n){const e=r.data;e===mm?i=0:e===vm?i=1/0:(i=parseInt(e.substring(1)))!=i&&(i=a?1/0:-1)}!!a===i>n&&(Qn(r=Hh()),vi(!1),l=!0,i=-1)}a?(o?yl(o):t&&(o=mr((()=>t(r)))),s&&is(s,(()=>{s=null}))):(s?yl(s):t&&(s=mr((()=>t(r,[n+1,i])))),o&&is(o,(()=>{o=null}))),l&&vi(!0)};wo((()=>{l=!1,t(c),l||u(null,null)}),n>0?cs:0),bt&&(r=Tt)}function OE(e,t,n){bt&&Ni();var i,r=e,o=$n,s=Ta()?XS:Sm;wo((()=>{s(o,o=t())&&(i&&is(i),i=mr((()=>n(r))))})),bt&&(r=Tt)}function bo(e,t){return t}function UE(e,t,n,i){for(var r=[],o=t.length,s=0;s<o;s++)Am(t[s].e,r,!0);var a=o>0&&0===r.length&&null!==n;if(a){var l=n.parentNode;U0(l),l.append(n),i.clear(),oo(e,t[0].prev,t[o-1].next)}j0(r,(()=>{for(var n=0;n<o;n++){var r=t[n];a||(i.delete(r.k),oo(e,r.prev,r.next)),Ui(r.e,!a)}}))}function ti(e,t,n,i,r,o=null){var s=e,a={flags:t,items:new Map,first:null};if(!!(4&t)){var l=e;s=bt?Qn(oi(l)):l.appendChild(Gr())}bt&&Ni();var c=null,u=!1,d=R0((()=>{var e=n();return _m(e)?e:null==e?[]:ym(e)}));wo((()=>{var e=y(d),l=e.length;if(u&&0===l)return;u=0===l;let h=!1;bt&&(s.data===vm!==(0===l)&&(Qn(s=Hh()),vi(!1),h=!0));if(bt){for(var p,f=null,m=0;m<l;m++){if(8===Tt.nodeType&&Tt.data===gm){s=Tt,h=!0,vi(!1);break}var g=e[m],v=i(g,m);p=n_(Tt,a,f,null,g,v,m,r,t,n),a.items.set(v,p),f=p}l>0&&Qn(Hh())}bt||FE(e,a,s,r,t,i,n),null!==o&&(0===l?c?yl(c):c=mr((()=>o(s))):null!==c&&is(c,(()=>{c=null}))),h&&vi(!0),y(d)})),bt&&(s=Tt)}function FE(e,t,n,i,r,o,s){var a,l,c,u,d,h,p,f,m,g,v=!!(8&r),b=!!(3&r),y=e.length,_=t.items,x=t.first,S=null,w=[],M=[];if(v)for(g=0;g<y;g+=1)f=o(p=e[g],g),void 0!==(m=_.get(f))&&(null==(a=m.a)||a.measure(),(h??(h=new Set)).add(m));for(g=0;g<y;
1g+=1)if(f=o(p=e[g],g),void 0!==(m=_.get(f))){if(b&&BE(m,p,g,r),!!(m.e.f&kr)&&(yl(m.e),v&&(null==(l=m.a)||l.unfix(),(h??(h=new Set)).delete(m))),m!==x){if(void 0!==d&&d.has(m)){if(w.length<M.length){var E,T=M[0];S=T.prev;var C=w[0],R=w[w.length-1];for(E=0;E<w.length;E+=1)Qv(w[E],T,n);for(E=0;E<M.length;E+=1)d.delete(M[E]);oo(t,C.prev,R.next),oo(t,S,C),oo(t,R,T),x=T,S=R,g-=1,w=[],M=[]}else d.delete(m),Qv(m,x,n),oo(t,m.prev,m.next),oo(t,m,null===S?t.first:S.next),oo(t,S,m),S=m;continue}for(w=[],M=[];null!==x&&x.k!==f;)!(x.e.f&kr)&&(d??(d=new Set)).add(x),M.push(x),x=x.next;if(null===x)continue;m=x}w.push(m),S=m,x=m.next}else{S=n_(x?x.e.nodes_start:n,t,S,null===S?t.first:S.next,p,f,g,i,r,s),_.set(f,S),w=[],M=[],x=S.next}if(null!==x||void 0!==d){for(var A=void 0===d?[]:ym(d);null!==x;)!(x.e.f&kr)&&A.push(x),x=x.next;var L=A.length;if(L>0){var P=4&r&&0===y?n:null;if(v){for(g=0;g<L;g+=1)null==(c=A[g].a)||c.measure();for(g=0;g<L;g+=1)null==(u=A[g].a)||u.fix()}UE(t,A,P,_)}}v&&wa((()=>{var e;if(void 0!==h)for(m of h)null==(e=m.a)||e.apply()})),Gt.first=t.first&&t.first.e,Gt.last=S&&S.e}function BE(e,t,n,i){!!(1&i)&&zh(e.v,t),2&i?zh(e.i,n):e.i=n}function n_(e,t,n,i,r,o,s,a,l,c){var u=!!(1&l)?!(16&l)?wm(r):Pn(r):r,d=2&l?Pn(s):s,h={i:d,v:u,k:o,a:null,e:null,prev:n,next:i};try{return h.e=mr((()=>a(e,u,d,c)),bt),h.e.prev=n&&n.e,h.e.next=i&&i.e,null===n?t.first=h:(n.next=h,n.e.next=h.e),null!==i&&(i.prev=h,i.e.prev=h.e),h}finally{}}function Qv(e,t,n){for(var i=e.next?e.next.e.nodes_start:n,r=t?t.e.nodes_start:n,o=e.e.nodes_start;o!==i;){var s=br(o);r.before(o),o=s}}function oo(e,t,n){null===t?e.first=n:(t.next=n,t.e.next=n&&n.e),null!==n&&(n.prev=t,n.e.prev=t&&t.e)}function yt(e,t,n,i,r){var o,s=e,a="";wo((()=>{a!==(a=t()??"")?(void 0!==o&&(Ui(o),o=void 0),""!==a&&(o=mr((()=>{if(bt){Tt.data;for(var e=Ni(),t=e;null!==e&&(8!==e.nodeType||""!==e.data);)t=e,e=br(e);if(null===e)throw Zd(),Gs;return gi(Tt,t),void(s=Qn(e))}var r=a+"";n&&(r=`<svg>${r}</svg>`);var o=Dm(r);if((n||i)&&(o=oi(o)),gi(oi(o),o.lastChild),n||i)for(;oi(o);)s.before(oi(o));else s.before(o)})))):bt&&Ni()}))}function Wt(e,t,n,i,r){var o;bt&&Ni();var s=null==(o=t.$$slots)?void 0:o[n],a=!1;!0===s&&(s=t["default"===n?"children":n],a=!0),void 0===s||s(e,a?()=>i:i)}function Ue(e,t,...n){var i,r=e,o=ct;wo((()=>{o!==(o=t())&&(i&&(Ui(i),i=null),i=mr((()=>o(r,...n))))}),cs),bt&&(r=Tt)}function Qe(e,t,n){bt&&Ni();var i,r,o=e;wo((()=>{i!==(i=t())&&(r&&(is(r),r=null),i&&(r=mr((()=>n(o,i)))))}),cs),bt&&(o=Tt)}function nf(e,t,n,i,r,o){let s=bt;bt&&Ni();var a,l,c=null;bt&&1===Tt.nodeType&&(c=Tt,Ni());var u,d=bt?Tt:e;wo((()=>{const e=t()||null;var n="svg"===e?FS:null;e!==a&&(u&&(null===e?is(u,(()=>{u=null,l=null})):e===l?yl(u):(Ui(u),Kv(!1))),e&&e!==l&&(u=mr((()=>{if(gi(c=bt?c:n?document.createElementNS(n,e):document.createElement(e),c),i){bt&&PE(e)&&c.append(document.createComment(""));var t=bt?oi(c):c.appendChild(Gr());bt&&(null===t?vi(!1):Qn(t)),i(c,t)}Gt.nodes_end=c,d.before(c)}))),(a=e)&&(l=a),Kv(!0))}),cs),s&&(vi(!0),Qn(d))}function i_(e,t){wa((()=>{var n=e.getRootNode(),i=n.host?n:n.head??n.ownerDocument.head;if(!i.querySelector("#"+t.hash)){const e=document.createElement("style");e.id=t.hash,e.textContent=t.code,i.appendChild(e)}}))}function Nn(e,t,n){ds((()=>{var i=pn((()=>t(e,null==n?void 0:n())||{}));if(n&&null!=i&&i.update){var r=!1,o={};fs((()=>{var e=n();mE(e),r&&Sm(o,e)&&(o=e,i.update(e))})),r=!0}if(null!=i&&i.destroy)return()=>i.destroy()}))}function r_(e){var t,n,i="";if("string"==typeof e||"number"==typeof e)i+=e;else if("object"==typeof e)if(Array.isArray(e)){var r=e.length;for(t=0;t<r;t++)e[t]&&(n=r_(e[t]))&&(i&&(i+=" "),i+=n)}else for(n in e)e[n]&&(i&&(i+=" "),i+=n);return i}function Yh(){for(var e,t,n=0,i="",r=arguments.length;n<r;n++)(e=arguments[n])&&(t=r_(e))&&(i&&(i+=" "),i+=t);return i}function Jt(e){return"object"==typeof e?Yh(e):e??""}const Zv=[..." \t\n\r\f \v\ufeff"];function kE(e,t,n){var i=null==e?"":""+e;if(t&&(i=i?i+" "+t:t),n)for(var r in n)if(n[r])i=i?i+" "+r:r;else if(i.length)for(var o=r.length,s=0;(s=i.indexOf(r,s))>=0;){var a=s+o;0!==s&&!Zv.includes(i[s-1])||a!==i.length&&!Zv.includes(i[a])?s=a:i=(0===s?"":i.substring(0,s))+i.substring(a+1)}return""===i?null:i}function Jv(e,t=!1){var n=t?" !important;":";",i="";for(var r in e){var o=e[r];null!=o&&""!==o&&(i+=" "+r+": "+o+n)}return i}function Pf(e){return"-"!==e[0]||"-"!==e[1]?e.toLowerCase():e}function zE(e,t){if(t){var n,i,r="";if(Array.isArray(t)?(n=t[0],i=t[1]):n=t,e){e=String(e).replaceAll(/\s*\/\*.*?\*\/\s*/g,"").trim();var o=!1,s=0,a=!1,l=[];n&&l.push(...Object.keys(n).map(Pf)),i&&l.push(...Object.keys(i).map(Pf));var c=0,u=-1;const t=e.length;for(var d=0;d<t;d++){var h=e[d];if(a?"/"===h&&"*"===e[d-1]&&(a=!1):o?o===h&&(o=!1):"/"===h&&"*"===e[d+1]?a=!0:'"'===h||"'"===h?o=h:"("===h?s++:")"===h&&s--,!a&&!1===o&&0===s)if(":"===h&&-1===u)u=d;else if(";"===h||d===t-1){if(-1!==u){var p=Pf(e.substring(c,u).trim());if(!l.includes(p))";"!==h&&d++,r+=" "+e.substring(c,d).trim()+";"}c=d+1,u=-1}}}return n&&(r+=Jv(n)),i&&(r+=Jv(i,!0)),""===(r=r.trim())?null:r}return null==e?null:String(e)}function Ft(e,t,n,i,r,o){var s=e.__className;if(bt||s!==n||void 0===s){var a=kE(n,i,o);(!bt||a!==e.getAttribute("class"))&&(null==a?e.removeAttribute("class"):t?e.className=a:e.setAttribute("class",a)),e.__className=n}else if(o&&r!==o)for(var l in o){var c=!!o[l];(null==r||c!==!!r[l])&&e.classList.toggle(l,c)}return o}function Rf(e,t={},n,i){for(var r in n){var o=n[r];t[r]!==o&&(null==n[r]?e.style.removeProperty(r):e.style.setProperty(r,o,i))}}function la(e,t,n,i){var r=e.__style;if(bt||r!==t){var o=zE(t,i);(!bt||o!==e.getAttribute("style"))&&(null==o?e.removeAttribute("style"):e.style.cssText=o),e.__style=t}else i&&(Array.isArray(i)?(Rf(e,null==n?void 0:n[0],i[0]),Rf(e,null==n?void 0:n[1],i[1],"important")):Rf(e,n,i));return i}const Fs=Symbol("class"),Fa=Symbol("style"),o_=Symbol("is custom element"),s_=Symbol("is html");function HE(e){if(bt){var t=!1,n=()=>
1{if(!t){if(t=!0,e.hasAttribute("value")){var n=e.value;nn(e,"value",null),e.value=n}if(e.hasAttribute("checked")){var i=e.checked;nn(e,"checked",null),e.checked=i}}};e.__on_r=n,WS(n),Q0()}}function VE(e,t){t?e.hasAttribute("selected")||e.setAttribute("selected",""):e.removeAttribute("selected")}function nn(e,t,n,i){var r=a_(e);bt&&(r[t]=e.getAttribute(t),"src"===t||"srcset"===t||"href"===t&&"LINK"===e.nodeName)||r[t]!==(r[t]=n)&&("loading"===t&&(e[zS]=n),null==n?e.removeAttribute(t):"string"!=typeof n&&l_(e).includes(t)?e[t]=n:e.setAttribute(t,n))}function gt(e,t,n,i,r=!1){var o=a_(e),s=o[o_],a=!o[s_];let l=bt&&s;l&&vi(!1);var c=t||{},u="OPTION"===e.tagName;for(var d in t)d in n||(n[d]=null);n.class?n.class=Jt(n.class):(i||n[Fs])&&(n.class=null),n[Fa]&&(n.style??(n.style=null));var h=l_(e);for(const r in n){let l=n[r];if(u&&"value"===r&&null==l)e.value=e.__value="",c[r]=l;else if("class"!==r)if("style"!==r){var p=c[r];if(l!==p){c[r]=l;var f=r[0]+r[1];if("$$"!==f)if("on"===f){const t={},n="$$"+r;let i=r.slice(2);var m=EE(i);if(xE(i)&&(i=i.slice(0,-7),t.capture=!0),!m&&p){if(null!=l)continue;e.removeEventListener(i,c[n],t),c[n]=null}if(null!=l)if(m)e[`__${i}`]=l,J0([i]);else{let o=function(e){c[r].call(this,e)};c[n]=Lm(i,e,o,t)}else m&&(e[`__${i}`]=void 0)}else if("style"===r)nn(e,r,l);else if("autofocus"===r)RE(e,!!l);else if(s||"__value"!==r&&("value"!==r||null==l))if("selected"===r&&u)VE(e,l);else{var g=r;a||(g=ME(g));var v="defaultValue"===g||"defaultChecked"===g;if(null!=l||s||v)v||h.includes(g)&&(s||"string"!=typeof l)?e[g]=l:"function"!=typeof l&&nn(e,g,l);else if(o[r]=null,"value"===g||"checked"===g){let n=e;const i=void 0===t;if("value"===g){let e=n.defaultValue;n.removeAttribute(g),n.defaultValue=e,n.value=n.__value=i?e:null}else{let e=n.defaultChecked;n.removeAttribute(g),n.defaultChecked=e,n.checked=!!i&&e}}else e.removeAttribute(r)}else e.value=e.__value=l}}else la(e,l,null==t?void 0:t[Fa],n[Fa]),c[r]=l,c[Fa]=n[Fa];else Ft(e,"http://www.w3.org/1999/xhtml"===e.namespaceURI,l,i,null==t?void 0:t[Fs],n[Fs]),c[r]=l,c[Fs]=n[Fs]}return l&&vi(!0),c}function a_(e){return e.__attributes??(e.__attributes={[o_]:e.nodeName.includes("-"),[s_]:e.namespaceURI===US})}var eg=new Map;function l_(e){var t=eg.get(e.nodeName);if(t)return t;eg.set(e.nodeName,t=[]);for(var n,i=e,r=Element.prototype;r!==i;){for(var o in n=w0(i))n[o].set&&t.push(o);i=xm(i)}return t}const $E=()=>performance.now(),ar={tick:e=>requestAnimationFrame(e),now:()=>$E(),tasks:new Set};function c_(){const e=ar.now();ar.tasks.forEach((t=>{t.c(e)||(ar.tasks.delete(t),t.f())})),0!==ar.tasks.size&&ar.tick(c_)}function u_(e){let t;return 0===ar.tasks.size&&ar.tick(c_),{promise:new Promise((n=>{ar.tasks.add(t={c:e,f:n})})),abort(){ar.tasks.delete(t)}}}function Mu(e,t){Rm((()=>{e.dispatchEvent(new CustomEvent(t))}))}function GE(e){if("float"===e)return"cssFloat";if("offset"===e)return"cssOffset";if(e.startsWith("--"))return e;const t=e.split("-");return 1===t.length?t[0]:t[0]+t.slice(1).map((e=>e[0].toUpperCase()+e.slice(1))).join("")}function tg(e){const t={},n=e.split(";");for(const e of n){const[n,i]=e.split(":");if(!n||void 0===i)break;t[GE(n.trim())]=i.trim()}return t}const WE=e=>e;function Sl(e,t,n,i){var r,o,s,a=!!(1&e),l=!!(2&e),c=!!(4&e),u=a&&l?"both":a?"in":"out",d=t.inert,h=t.style.overflow;function p(){var e=$t,o=Gt;Oi(null),hr(null);try{return r??(r=n()(t,(null==i?void 0:i())??{},{direction:u}))}finally{Oi(e),hr(o)}}var f={is_global:c,in(){var e;if(t.inert=d,!a)return null==s||s.abort(),void(null==(e=null==s?void 0:s.reset)||e.call(s));l||null==o||o.abort(),Mu(t,"introstart"),o=jh(t,p(),s,1,(()=>{Mu(t,"introend"),null==o||o.abort(),o=r=void 0,t.style.overflow=h}))},out(e){if(!l)return null==e||e(),void(r=void 0);t.inert=!0,Mu(t,"outrostart"),s=jh(t,p(),o,0,(()=>{Mu(t,"outroend"),null==e||e()}))},stop:()=>{null==o||o.abort(),null==s||s.abort()}},m=Gt;if((m.transitions??(m.transitions=[])).push(f),a&&Cd){var g=c;if(!g){for(var v=m.parent;v&&v.f&cs;)for(;(v=v.parent)&&!(16&v.f););g=!v||!!(v.f&S0)}g&&ds((()=>{pn((()=>f.in()))}))}}function jh(e,t,n,i,r){var o=1===i;if(Us(t)){var s,a=!1;return wa((()=>
1{if(!a){var l=t({direction:o?"in":"out"});s=jh(e,l,n,i,r)}})),{abort:()=>{a=!0,null==s||s.abort()},deactivate:()=>s.deactivate(),reset:()=>s.reset(),t:()=>s.t()}}if(null==n||n.deactivate(),null==t||!t.duration)return r(),{abort:ct,deactivate:ct,reset:ct,t:()=>i};const{delay:l=0,css:c,tick:u,easing:d=WE}=t;var h=[];if(o&&void 0===n&&(u&&u(0,1),c)){var p=tg(c(0,1));h.push(p,p)}var f=()=>1-i,m=e.animate(h,{duration:l});return m.onfinish=()=>{var o=(null==n?void 0:n.t())??1-i;null==n||n.abort();var s=i-o,a=t.duration*Math.abs(s),l=[];if(a>0){var h=!1;if(c)for(var p=Math.ceil(a/16.666666666666668),g=0;g<=p;g+=1){var v=o+s*d(g/p),b=tg(c(v,1-v));l.push(b),h||(h="hidden"===b.overflow)}h&&(e.style.overflow="hidden"),f=()=>{var e=m.currentTime;return o+s*d(e/a)},u&&u_((()=>{if("running"!==m.playState)return!1;var e=f();return u(e,1-e),!0}))}(m=e.animate(l,{duration:a,fill:"forwards"})).onfinish=()=>{f=()=>i,null==u||u(i,1-i),r()}},{abort:()=>{m&&(m.cancel(),m.effect=null,m.onfinish=ct)},deactivate:()=>{r=ct},reset:()=>{0===i&&(null==u||u(1,0))},t:()=>f()}}function XE(e,t,n=t){var i=Ta();LE(e,"input",(r=>{var o=r?e.defaultValue:e.value;if(o=Lf(e)?Df(o):o,n(o),i&&o!==(o=t())){var s=e.selectionStart,a=e.selectionEnd;e.value=o??"",null!==a&&(e.selectionStart=s,e.selectionEnd=Math.min(a,e.value.length))}})),(bt&&e.defaultValue!==e.value||null==pn(t)&&e.value)&&n(Lf(e)?Df(e.value):e.value),fs((()=>{var n=t();Lf(e)&&n===Df(e.value)||"date"===e.type&&!n&&!e.value||n!==e.value&&(e.value=n??"")}))}function Lf(e){var t=e.type;return"number"===t||"range"===t}function Df(e){return""===e?null:+e}var so,Zs,Ul,$d,d_;const Gd=class{constructor(e){Re(this,$d),Re(this,so,new WeakMap),Re(this,Zs),Re(this,Ul),zt(this,Ul,e)}observe(e,t){var n=N(this,so).get(e)||new Set;return n.add(t),N(this,so).set(e,n),Ro(this,$d,d_).call(this).observe(e,N(this,Ul)),()=>{var n=N(this,so).get(e);n.delete(t),0===n.size&&(N(this,so).delete(e),N(this,Zs).unobserve(e))}}};so=new WeakMap,Zs=new WeakMap,Ul=new WeakMap,$d=new WeakSet,d_=function(){return N(this,Zs)??zt(this,Zs,new ResizeObserver((e=>{for(var t of e)for(var n of(Gd.entries.set(t.target,t),N(this,so).get(t.target)||[]))n(t)})))},Y(Gd,"entries",new WeakMap);let Kh=Gd;var qE=new Kh({box:"border-box"});function po(e,t,n){var i=qE.observe(e,(()=>n(e[t])));ds((()=>(pn((()=>n(e[t]))),i)))}function ng(e,t){return e===t||(null==e?void 0:e[mo])===t}function Xt(e={},t,n,i){return ds((()=>{var i,r;return fs((()=>{i=r,r=[],pn((()=>{e!==n(...r)&&(t(e,...r),i&&ng(n(...i),e)&&t(null,...i))}))})),()=>{wa((()=>{r&&ng(n(...r),e)&&t(null,...r)}))}})),e}function Rn(e){null===Zt&&Cm(),Ma&&null!==Zt.l?YE(Zt).m.push(e):ut((()=>{const t=pn(e);if("function"==typeof t)return t}))}function f_(e){null===Zt&&Cm(),Rn((()=>()=>pn(e)))}function YE(e){var t=e.l;return t.u??(t.u={a:[],b:[],m:[]})}let Tu=!1;function jE(e){var t=Tu;try{return Tu=!1,[e(),Tu]}finally{Tu=t}}const KE={get(e,t){if(!e.exclude.includes(t))return e.props[t]},set:(e,t)=>!1,getOwnPropertyDescriptor(e,t){if(!e.exclude.includes(t)&&t in e.props)return{enumerable:!0,configurable:!0,value:e.props[t]}},has:(e,t)=>!e.exclude.includes(t)&&t in e.props,ownKeys:e=>Reflect.ownKeys(e.props).filter((t=>!e.exclude.includes(t)))};function nt(e,t,n){return new Proxy({props:e,exclude:t},KE)}const QE={get(e,t){if(!e.exclude.includes(t))return y(e.version),t in e.special?e.special[t]():e.props[t]},set:(e,t,n)=>(t in e.special||(e.special[t]=L({get[t](){return e.props[t]}},t,4)),e.special[t](n),Wv(e.version),!0),getOwnPropertyDescriptor(e,t){if(!e.exclude.includes(t)&&t in e.props)return{enumerable:!0,configurable:!0,value:e.props[t]}},deleteProperty:(e,t)=>(e.exclude.includes(t)||(e.exclude.push(t),Wv(e.version)),!0),has:(e,t)=>!e.exclude.includes(t)&&t in e.props,ownKeys:e=>Reflect.ownKeys(e.props).filter((t=>!e.exclude.includes(t)))};function ps(e,t){return new Proxy({props:e,exclude:t,special:{},version:Pn(0)},QE)}const ZE={get(e,t){let n=e.props.length;for(;n--;){let i=e.props[n];if(Us(i)&&(i=i()),"object"==typeof i&&null!==i&&t in i)return i[t]}},set(e,t,n){let i=e.props.length;for(;i--;){let r=e.props[i];Us(r)&&(r=r());const o=zr(r,t);if(o&&o.set)return o.set(n),!0}return!1},getOwnPropertyDescriptor(e,t){let n=e.props.length;for(;n--;){let i=e.props[n];if(Us(i)&&(i=i()),"object"==typeof i&&null!==i&&t in i){const e=zr(i,t);return e&&!e.configurable&&(e.configurable=!0),e}}},has(e,t){if(t===mo||t===bm)return!1;for(let n of e.props)if(Us(n)&&(n=n()),null!=n&&t in n)return!0;return!1},ownKeys(e){const t=[];for(let n of e.props){Us(n)&&(n=n());for(const e in n)t.includes(e)||t.push(e)}return t}};function Dt(...e){return new Proxy({props:e},ZE)}function ig(e){var t;return(null==(t=e.ctx)?void 0:t.d)??!1}function L(e,t,n,i){var r,o,s=!!(1&n),a=!Ma||!!(2&n),l=!!(8&n),c=!!(16&n),u=!1;l?[o,u]=jE((()=>e[t])):o=e[t];var d,h=mo in e||bm in e,p=l&&((null==(r=zr(e,t))?void 0:r.set)??(h&&t in e&&(n=>e[t]=n)))||void 0,f=i,m=!0,g=!1,v=()=>(g=!0,m&&(m=!1,f=c?pn(i):i),f);if(void 0===o&&void 0!==i&&(p&&a&&ZS(),o=v(),p&&p(o)),a)d=()=>{var n=e[t];return void 0===n?v():(m=!0,g=!1,n)};else{var b=(s?_l:R0)((()=>e[t]));b.f|=BS,d=()=>{var e=y(b);return void 0!==e&&(f=void 0),void 0===e?f:e}}if(!(4&n))return d;if(p){var _=e.$$legacy;return function(e,t){return arguments.length>0?((!a||!t||_||u)&&p(t?d():e),e):d()}}var x=!1,S=wm(o),w=_l((()=>{var e=d(),t=y(S);return x?(x=!1,t):S.v=e}));return l&&y(w),s||(w.equals=Em),function(e,t){if(arguments.length>
10){const n=t?y(w):a&&l?Lt(e):e;if(!w.equals(n)){if(x=!0,X(S,n),g&&void 0!==f&&(f=n),ig(w))return e;pn((()=>y(w)))}return e}return ig(w)?w.v:y(w)}}function JE(e){return new ew(e)}var Rr,Pi;class ew{constructor(e){var t;Re(this,Rr),Re(this,Pi);var n=new Map,i=(e,t)=>{var i=wm(t);return n.set(e,i),i};const r=new Proxy({...e.props||{},$$events:{}},{get:(e,t)=>y(n.get(t)??i(t,Reflect.get(e,t))),has:(e,t)=>t===bm||(y(n.get(t)??i(t,Reflect.get(e,t))),Reflect.has(e,t)),set:(e,t,r)=>(X(n.get(t)??i(t,r),r),Reflect.set(e,t,r))});zt(this,Pi,(e.hydrate?IE:e_)(e.component,{target:e.target,anchor:e.anchor,props:r,context:e.context,intro:e.intro??!1,recover:e.recover})),(!(null!=(t=null==e?void 0:e.props)&&t.$$host)||!1===e.sync)&&R(),zt(this,Rr,r.$$events);for(const e of Object.keys(N(this,Pi)))"$set"===e||"$destroy"===e||"$on"===e||Ed(this,e,{get(){return N(this,Pi)[e]},set(t){N(this,Pi)[e]=t},enumerable:!0});N(this,Pi).$set=e=>{Object.assign(r,e)},N(this,Pi).$destroy=()=>{NE(N(this,Pi))}}$set(e){N(this,Pi).$set(e)}$on(e,t){N(this,Rr)[e]=N(this,Rr)[e]||[];const n=(...e)=>t.call(this,...e);return N(this,Rr)[e].push(n),()=>{N(this,Rr)[e]=N(this,Rr)[e].filter((e=>e!==n))}}$destroy(){N(this,Pi).$destroy()}}let h_;function id(e,t,n,i){var r;const o=null==(r=n[e])?void 0:r.type;if(t="Boolean"===o&&"boolean"!=typeof t?null!=t:t,!i||!n[e])return t;if("toAttribute"===i)switch(o){case"Object":case"Array":return null==t?null:JSON.stringify(t);case"Boolean":return t?"":null;case"Number":return t??null;default:return t}else switch(o){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":default:return t;case"Number":return null!=t?+t:t}}function tw(e){const t={};return e.childNodes.forEach((e=>{t[e.slot||"default"]=!0})),t}function se(e,t,n,i,r,o){let s=class extends h_{constructor(){super(e,n,r),this.$$p_d=t}static get observedAttributes(){return Sd(t).map((e=>(t[e].attribute||e).toLowerCase()))}};return Sd(t).forEach((e=>{Ed(s.prototype,e,{get(){return this.$$c&&e in this.$$c?this.$$c[e]:this.$$d[e]},set(n){var i;n=id(e,n,t),this.$$d[e]=n;var r=this.$$c;r&&((null==(i=zr(r,e))?void 0:i.get)?r[e]=n:r.$set({[e]:n}))}})})),i.forEach((e=>{Ed(s.prototype,e,{get(){var t;return null==(t=this.$$c)?void 0:t[e]}})})),o&&(s=o(s)),e.element=s,s}Rr=new WeakMap,Pi=new WeakMap,"function"==typeof HTMLElement&&(h_=class extends HTMLElement{constructor(e,t,n){super(),Y(this,"$$ctor"),Y(this,"$$s"),Y(this,"$$c"),Y(this,"$$cn",!1),Y(this,"$$d",{}),Y(this,"$$r",!1),Y(this,"$$p_d",{}),Y(this,"$$l",{}),Y(this,"$$l_u",new Map),Y(this,"$$me"),this.$$ctor=e,this.$$s=t,n&&this.attachShadow({mode:"open"})}addEventListener(e,t,n){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){const n=this.$$c.$on(e,t);this.$$l_u.set(t,n)}super.addEventListener(e,t,n)}removeEventListener(e,t,n){if(super.removeEventListener(e,t,n),this.$$c){const e=this.$$l_u.get(t);e&&(e(),this.$$l_u.delete(t))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let e=function(e){return t=>{const n=document.createElement("slot");"default"!==e&&(n.name=e),C(t,n)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const t={},n=tw(this);for(const i of this.$$s)i in n&&("default"!==i||this.$$d.children?t[i]=e(i):(this.$$d.children=e(i),t.default=!0));for(const e of this.attributes){const t=this.$$g_p(e.name);t in this.$$d||(this.$$d[t]=id(t,e.value,this.$$p_d,"toProp"))}for(const e in this.$$p_d)!(e in this.$$d)&&void 0!==this[e]&&(this.$$d[e]=this[e],delete this[e]);this.$$c=JE({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=Tm((()=>{fs((()=>{var e;this.$$r=!0;for(const t of Sd(this.$$c)){if(null==(e=this.$$p_d[t])||!e.reflect)continue;this.$$d[t]=this.$$c[t];const n=id(t,this.$$d[t],this.$$p_d,"toAttribute");null==n?this.removeAttribute(this.$$p_d[t].attribute||t):this.setAttribute(this.$$p_d[t].attribute||t,n)}this.$$r=!1}))}));for(const e in this.$$l)for(const t of this.$$l[e]){const n=this.$$c.$on(e,t);this.$$l_u.set(t,n)}this.$$l={}}}attributeChangedCallback(e,t,n){var i;this.$$r||(e=this.$$g_p(e),this.$$d[e]=id(e,n,this.$$p_d,"toProp"),null==(i=this.$$c)||i.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then((()=>
1{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)}))}$$g_p(e){return Sd(this.$$p_d).find((t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e))||e}});const Qh=Symbol("noContext"),El={},nw=Promise.resolve(),iw={contexts:new Set,running:!1,add(e){this.contexts.add(e),this.running||(this.running=!0,nw.then((()=>{this.contexts.forEach((e=>{const t=El[e];t.forEach((({setter:n,payload:i},r)=>{p_(r,e,i,n)&&t.delete(r)}))})),this.contexts.clear(),this.running=!1})))}};function rw(e,t,n,i){(El[t]||(El[t]=new Map)).set(e,{setter:i,payload:n})}function ow(e,t){const n=El[t];n&&n.delete(e)}class sw extends Event{constructor(e,t,n){super("context-request",{bubbles:!0,cancelable:!0,composed:!0}),this.context=e,this.callback=t,this.subscribe=n}}function p_(e,t,n,i){let r;const o=new sw(t,((o,s)=>{r||dw(e,t,s),i(e,o,n),r=!0}),!0);return e.dispatchEvent(o),r}function m_(e,{getter:t,payload:n}){return t(e,n)}function aw(e,t){return t}function lw(e,t,n,i=aw){const r=e.__wcContextObserverMap||(e.__wcContextObserverMap={}),o=e.__wcContextProvided||(e.__wcContextProvided={});o[t]={getter:i,payload:n};const s=r[t]||(r[t]=[]),a=El[t];e.addEventListener("context-request",(n=>{const{target:i,callback:r,subscribe:a}=n;if(n.context!==t||"function"!=typeof r)return;n.stopPropagation();const l=m_(e,o[t]);if(a||l===Qh){const n=()=>{hw(e,t,i)};s.push({consumer:i,callback:r,unsubscribe:n,once:!a}),l!==Qh&&r(l,n),g_(e,t,"observe",s.length)}else r(l)})),a&&a.size&&iw.add(t)}function v_(e,t,n){const i=e.__wcContextProvided,r=i&&i[t];if(!r)throw new Error(`${n}: "${t.name||t}" is not registered`);return r}function cw(e,t,n){const i=e.__wcContextObserverMap,r=v_(e,t,"updateContext");void 0!==n&&(r.payload=n);const o=m_(e,r);o!==Qh&&(i&&i[t]).forEach((({consumer:e,callback:t,unsubscribe:n,once:i})=>{i&&(n(),n=void 0),t.call(e,o,n)}))}function uw(e,t,n){const i=e[n];i!==t&&(e[n]=t,"function"==typeof e.contextChangedCallback&&e.contextChangedCallback(n,i,t))}function g_(e,t,n,i){const r=v_(e,t,"runListeners").listeners;if(r)for(const t of r)t.type===n&&t.callback.call(e,{count:i})}function dw(e,t,n){(e.__wcContextProviderMap||(e.__wcContextProviderMap={}))[t]=n}function fw(e,t,n=t,i=uw){p_(e,t,n,i)||rw(e,t,n,i)}function hw(e,t,n){const i=e.__wcContextObserverMap[t],r=i.findIndex((e=>e.consumer===n));-1!==r&&i.splice(r,1),g_(e,t,"unobserve",i.length)}function pw(e,t){const n=e.__wcContextProviderMap;if(n){const e=n[t];e&&(e(),n[t]=void 0)}ow(e,t)}var b_=__;function __(e,t){if(!rg(e))throw new Error("First argument must be an object");if(!(t instanceof Function))throw new Error("Second argument must be a function");var n={},i=Object.keys(e),r=i.length;for(let a=0;a<r;a++){var o=i[a],s=e[o];n[o]=rg(s)?__(s,t):t(s,o)}return n}function rg(e){return"[object Object]"===Object.prototype.toString.call(e)}class mw{constructor(e,{providedContexts:t,observedContexts:n,contextProvider:i,slot:r}={}){Y(this,"node"),Y(this,"root"),Y(this,"providedContexts"),Y(this,"observedContexts"),Y(this,"contextProvider"),Y(this,"_hostStyle"),this.node=e,this.root=e.shadowRoot,r&&(e.slot=r),e.host=e,e.handleTypography=()=>{},"none"!==e.getAttribute("typography")&&(e.handleTypography=this.handleTypography.bind(this)),e.updateContext=this.updateContext.bind(this),this.disablingHostStyle(),this.createSensor(),this.linkStylesheet(),this.providedContexts=[...t||[],...i?Object.keys(i):[]],this.observedContexts=[...n||[]],this.contextProvider=i,this.providedContexts.forEac
1h((t=>{lw(e,t,void 0)}))}linkStylesheet(){var e;let t=document.createElement("link");const n=import.meta.url.toString(),i=document.querySelectorAll('script[type="module"]'),r=Array.from(i).find((e=>e.src===n));if(!r)throw new Error("Could not find current script");const o=r.dataset.preload;if(!o)throw new Error("Preload ID not found");const s=document.getElementById(o);if(!s)throw new Error("Preload element not found");if(!(s instanceof HTMLLinkElement))throw new Error("Preload element is not a link element");t.setAttribute("href",s.href),t.setAttribute("rel","stylesheet"),t.onload=()=>this.enablingHostStyle(),null==(e=this.root)||e.appendChild(t)}get hostStyle(){var e;return this._hostStyle||(this._hostStyle=document.createElement("style"),null==(e=this.root)||e.appendChild(this._hostStyle)),this._hostStyle}disablingHostStyle(){this.hostStyle.textContent=":host { display: contents; outline: none !important; } * { transition: none !important; visibility: hidden; }"}enablingHostStyle(){this.hostStyle.textContent=":host { display: contents; outline: none !important; }"}createSensor(){var e;const t=document.createElement("style");t.textContent=":host::before { content: ''; position: absolute; transform: translateZ(calc(var(--vision-si, -1) * 1px)); transition: transform 10ms; pointer-events: none; }",null==(e=this.root)||e.appendChild(t),this.node.addEventListener("transitionend",(e=>{getComputedStyle(this.node).getPropertyValue("--vision-si")&&e.target===this.node&&"::before"===e.pseudoElement&&this.dispatchContext()}))}handleTypography(e){const{classes:t}=e.detail,n=t.filter(Boolean).map((e=>e.replace(/prose/g,"vision"))),i=new MutationObserver((e=>{e.forEach((e=>{if("attributes"===e.type){const{classList:t}=e.target;t.add("vision-typography",...n)}})),i.disconnect()}));this.node.classList.add("vision-typography",...n),requestAnimationFrame((()=>{i.observe(this.node,{attributes:!0,attributeFilter:["class"]})}))}dispatchContext(){if(this.contextProvider){const e=window.getComputedStyle(this.node),t=b_(this.contextProvider,(t=>e.getPropertyValue(t).replace(/"/g,"")));Object.entries(t).forEach((([e,t])=>{t.$variants&&this.node.updateContext(e,t.$variants)}))}}
1observeContexts(){this.observedContexts.forEach((e=>{fw(this.node,e,e,((e,t,n)=>{"function"==typeof e.contextChangedCallback&&e.contextChangedCallback(n,t)}))}))}unobserveContexts(){this.observedContexts.forEach((e=>{pw(this.node,e)}))}updateContext(e,t){this.providedContexts.includes(e)&&cw(this.node,e,t)}}class vw{constructor(){Y(this,"headers",new Headers)}setHeaders(e){this.headers=new Headers(e)}}class gw{constructor(){Y(this,"fetch",new vw)}}const Mt=(e={})=>(typeof window<"u"&&(window.vision??(window.vision=new gw)),t=>class extends t{constructor(){super(),Y(this,"vision"),this.vision=new mw(this,e)}connectedCallback(){super.connectedCallback&&super.connectedCallback(),this.vision.observeContexts(),this.vision.dispatchContext()}disconnectedCallback(){super.disconnectedCallback&&super.disconnectedCallback(),this.vision.unobserveContexts()}});var y_=Sw,bw=/[\s\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,\-.\/:;<=>?@\[\]^_`{|}~]+/,_w=/^[a-z\u00E0-\u00FCA-Z\u00C0-\u00DC][\d|a-z\u00E0-\u00FCA-Z\u00C0-\u00DC]*$/,yw=/([A-Z\u00C0-\u00DC]{4,})/g,xw=/^[A-Z\u00C0-\u00DC]+$/;function Sw(e){for(var t=e.split(bw),n=t.length,i=new Array(n),r=0;r<n;r++){var o=t[r];if(""!==o){var s=_w.test(o)&&!xw.test(o);s&&(o=o.replace(yw,(function(e,t,n){return Ew(e,o.length-n-e.length==0)})));var a=o[0];a=r>0?a.toUpperCase():a.toLowerCase(),i[r]=a+(s?o.slice(1):o.slice(1).toLowerCase())}}return i.join("")}function Ew(e,t){var n=e.split(""),i=n.shift().toUpperCase(),r=t?n.pop().toLowerCase():n.pop();return i+n.join("").toLowerCase()+r}const Aa=Symbol();var Fl,Bl,kl,zl,Hl,Vl,$l,Gl,Wl,Xl,ql;class ww{constructor(){Re(this,Fl,ie(Lt({}))),Re(this,Bl,ie(!1)),Re(this,kl,ie()),Re(this,zl,ie()),Re(this,Hl,ie()),Re(this,Vl,ie()),Re(this,$l,ie()),Re(this,Gl,ie()),Re(this,Wl,ie()),Re(this,Xl,ie()),Re(this,ql,ie())}get navigationSource(){return y(N(this,Fl))}set navigationSource(e){X(N(this,Fl),e,!0)}get navigationInline(){return y(N(this,Bl))}set navigationInline(e){X(N(this,Bl),e,!0)}get searchLegacyEndpoint(){return y(N(this,kl))}set searchLegacyEndpoint(e){X(N(this,kl),e,!0)}get searchLegacySearchPage(){return y(N(this,zl))}set searchLegacySearchPage(e){X(N(this,zl),e,!0)}get searchLegacySearchPageQueryKey(){return y(N(this,Hl))}set searchLegacySearchPageQueryKey(e){X(N(this,Hl),e,!0)}get searchEndpoint(){return y(N(this,Vl))}set searchEndpoint(e){X(N(this,Vl),e,!0)}get searchEndpointQueryKey(){return y(N(this,$l))}set searchEndpointQueryKey(e){X(N(this,$l),e,!0)}get searchEndpointQueryParams(){return y(N(this,Gl))}set searchEndpointQueryParams(e){X(N(this,Gl),e,!0)}get searchLabel(){return y(N(this,Wl))}set searchLabel(e){X(N(this,Wl),e,!0)}get searchPlaceholder(){return y(N(this,Xl))}set searchPlaceholder(e){X(N(this,Xl),e,!0)}get searchNoOptions(){return y(N(this,ql))}set searchNoOptions(e){X(N(this,ql),e,!0)}getPropsWithPrefix(e){const t=Object.getPrototypeOf(this);return Object.entries(Object.getOwnPropertyDescriptors(t)).reduce(((t,[n,i])=>{if("function"==typeof i.get&&n.startsWith(e)){const i=n.slice(e.length);t[y_(i)]=this[n]}return t}),{})}}function x_(e,t){he(t,!0);const n=L(t,"children",7),i=nt(t,["$$slots","$$events","$$legacy","$$host","children"]),r=new ww;hs(Aa,r),Jn((()=>{Object.assign(r,i)}));var o=j();return Ue(G(o),n),C(e,o),pe({get children(){return n()},set children(e){n(e),R()}})}Fl=new WeakMap,Bl=new WeakMap,kl=new WeakMap,zl=new WeakMap,Hl=new WeakMap,Vl=new WeakMap,$l=new WeakMap,Gl=new WeakMap,Wl=new WeakMap,Xl=new WeakMap,ql=new WeakMap,se(x_,{children:{}},[],[],!0);const Mw=["top","right","bottom","left"],ca=Math.min,Jo=Math.max,Pd=Math.round,Au=Math.floor,ur=e=>({x:e,y:e}),Tw={left:"right",right:"left",bottom:"top",top:"bottom"},Aw={start:"end",end:"start"};function Zh(e,t,n){return Jo(e,ca(t,n))}function au(e,t){return"function"==typeof e?e(t):e}function ua(e){return e.split("-")[0]}function rf(e){return e.split("-")[1]}function S_(e){return"x"===e?"y":"x"}function Nm(e){return"y"===e?"height":"width"}function wl(e){return["top","bottom"].includes(ua(e))?"y":"x"}function Om(e){return S_(wl(e))}function Cw(e,t,n){void 0===n&&(n=!1);const i=rf(e),r=Om(e),o=Nm(r);let s="x"===r?i===(n?"end":"start")?"right":"left":"start"===i?"bottom":"top";return t.reference[o]>t.floating[o]&&(s=Rd(s)),[s,Rd(s)]}function Pw(e){const t=Rd(e);return[Jh(e),t,Jh(t)]}function Jh(e){return e.replace(/start|end/g,(e=>Aw[e]))}function Rw(e,t,n){const i=["left","right"],r=["right","left"],o=["top","bottom"],s=["bottom","top"];switch(e){case"top":case"bottom":return n?t?r:i:t?i:r;case"left":case"right":return t?o:s;default:return[]}}function Lw(e,t,n,i){const r=rf(e);let o=Rw(ua(e),"start"===n,i);return r&&(o=o.map((e=>e+"-"+r)),t&&(o=o.concat(o.map(Jh)))),o}function Rd(e){return e.replace(/left|right|bottom|top/g,(e=>Tw[e]))}function Dw(e){return{top:0,right:0,bottom:0,left:0,...e}}function E_(e){return"number"!=typeof e?Dw(e):{top:e,right:e,bottom:e,left:e}}function Ld(e){const{x:t,y:n,width:i,height:r}=e;return{width:i,height:r,top:n,left:t,right:t+i,bottom:n+r,x:t,y:n}}function og(e,t,n){let{reference:i,floating:r}=e;const o=wl(t),s=Om(t),a=Nm(s),l=ua(t),c="y"===o,u=i.x+i.width/2-r.width/2,d=i.y+i.height/2-r.height/2,h=i[a]/2-r[a]/2;let p;switch(l){case"top":p={x:u,y:i.y-r.height};break;case"bottom":p={x:u,y:i.y+i.height};break;case"right":p={x:i.x+i.width,y:d};break;case"left":p={x:i.x-r.width,y:d};break;default:p={x:i.x,y:i.y}}switch(rf(t)){case"start":p[s]-=h*(n&&c?-1:1);break;case"end":p[s]+=h*(n&&c?-1:1)}return p}const Iw=async(e,t,n)=>{const{placement:i="bottom",strategy:r="absolute",middleware:o=[],platform:s}
vendor: 4,817 bytes, line 1
1=n,a=o.filter(Boolean),l=await(null==s.isRTL?void 0:s.isRTL(t));let c=await s.getElementRects({reference:e,floating:t,strategy:r}),{x:u,y:d}=og(c,i,l),h=i,p={},f=0;for(let n=0;n<a.length;n++){const{name:o,fn:m}=a[n],{x:g,y:v,data:b,reset:y}=await m({x:u,y:d,initialPlacement:i,placement:h,strategy:r,middlewareData:p,rects:c,platform:s,elements:{reference:e,floating:t}});u=g??u,d=v??d,p={...p,[o]:{...p[o],...b}},y&&f<=50&&(f++,"object"==typeof y&&(y.placement&&(h=y.placement),y.rects&&(c=!0===y.rects?await s.getElementRects({reference:e,floating:t,strategy:r}):y.rects),({x:u,y:d}=og(c,h,l))),n=-1)}return{x:u,y:d,placement:h,strategy:r,middlewareData:p}};async function Dd(e,t){var n;void 0===t&&(t={});const{x:i,y:r,platform:o,rects:s,elements:a,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:h=!1,padding:p=0}=au(t,e),f=E_(p),m=a[h?"floating"===d?"reference":"floating":d],g=Ld(await o.getClippingRect({element:null==(n=await(null==o.isElement?void 0:o.isElement(m)))||n?m:m.contextElement||await(null==o.getDocumentElement?void 0:o.getDocumentElement(a.floating)),boundary:c,rootBoundary:u,strategy:l})),v="floating"===d?{x:i,y:r,width:s.floating.width,height:s.floating.height}:s.reference,b=await(null==o.getOffsetParent?void 0:o.getOffsetParent(a.floating)),y=await(null==o.isElement?void 0:o.isElement(b))&&await(null==o.getScale?void 0:o.getScale(b))||{x:1,y:1},_=Ld(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:v,offsetParent:b,strategy:l}):v);return{top:(g.top-_.top+f.top)/y.y,bottom:(_.bottom-g.bottom+f.bottom)/y.y,left:(g.left-_.left+f.left)/y.x,right:(_.right-g.right+f.right)/y.x}}const Nw=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:i,placement:r,rects:o,platform:s,elements:a,middlewareData:l}=t,{element:c,padding:u=0}=au(e,t)||{};if(null==c)return{};const d=E_(u),h={x:n,y:i},p=Om(r),f=Nm(p),m=await s.getDimensions(c),g="y"===p,v=g?"top":"left",b=g?"bottom":"right",y=g?"clientHeight":"clientWidth",_=o.reference[f]+o.reference[p]-h[p]-o.floating[f],x=h[p]-o.reference[p],S=await(null==s.getOffsetParent?void 0:s.getOffsetParent(c));let w=S?S[y]:0;(!w||!await(null==s.isElement?void 0:s.isElement(S)))&&(w=a.floating[y]||o.floating[f]);const M=_/2-x/2,E=w/2-m[f]/2-1,T=ca(d[v],E),C=ca(d[b],E),R=T,A=w-m[f]-C,L=w/2-m[f]/2+M,P=Zh(R,L,A),N=!l.arrow&&null!=rf(r)&&L!==P&&o.reference[f]/2-(L<R?T:C)-m[f]/2<0,D=N?L<R?L-R:L-A:0;return{[p]:h[p]+D,data:{[p]:P,centerOffset:L-P-D,...N&&{alignmentOffset:D}},reset:N}}}),Ow=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,i;const{placement:r,middlewareData:o,rects:s,initialPlacement:a,platform:l,elements:c}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:h,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:f="none",flipAlignment:m=!0,...g}=au(e,t);if(null!=(n=o.arrow)&&n.alignmentOffset)return{};const v=ua(r),b=wl(a),y=ua(a)===a,_=await(null==l.isRTL?void 0:l.isRTL(c.floating)),x=h||(y||!m?[Rd(a)]:Pw(a)),S="none"!==f;!h&&S&&x.push(...Lw(a,m,f,_));const w=[a,...x],M=await Dd(t,g),E=[];let T=(null==(i=o.flip)?void 0:i.overflows)||[];if(u&&E.push(M[v]),d){const e=Cw(r,s,_);E.push(M[e[0]],M[e[1]])}if(T=[...T,{placement:r,overflows:E}],!E.every((e=>e<=0))){var C,R;const e=((null==(C=o.flip)?void 0:C.index)||0)+1,t=w[e];if(t)return{data:{index:e,overflows:T},reset:{placement:t}};let n=null==(R=T.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:R.placement;if(!n)switch(p){case"bestFit":{var A;const e=null==(A=T.filter((e=>{if(S){const t=wl(e.placement);return t===b||"y"===t}return!0})).map((e=>[e.placement,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0])?void 0:A[0];e&&(n=e);break}case"initialPlacement":n=a}if(r!==n)return{reset:{placement:n}}}return{}}}};function sg(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function ag(e){return Mw.some((t=>e[t]>=0))}const Uw=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:i="referenceHidden",...r}=au(e,t);switch(i){case"referenceHidden":{const e=sg(await Dd(t,{...r,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:ag(e)}}}case"escaped":{const e=sg(await Dd(t,{...r,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:ag(e)}}}default:return{}}}}},Fw=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:i,placement:r}=t,{mainAxis:o=!0,crossAxis:s=!1,limiter:a={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=au(e,t),c={x:n,y:i},u=await Dd(t,l),d=wl(ua(r)),h=S_(d);let p=c[h],f=c[d];if(o){const e="y"===h?"bottom":"right";
1p=Zh(p+u["y"===h?"top":"left"],p,p-u[e])}if(s){const e="y"===d?"bottom":"right";f=Zh(f+u["y"===d?"top":"left"],f,f-u[e])}const m=a.fn({...t,[h]:p,[d]:f});return{...m,data:{x:m.x-n,y:m.y-i,enabled:{[h]:o,[d]:s}}}}}};function of(){return typeof window<"u"}function Ca(e){return w_(e)?(e.nodeName||"").toLowerCase():"#document"}function bi(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function _r(e){var t;return null==(t=(w_(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function w_(e){return!!of()&&(e instanceof Node||e instanceof bi(e).Node)}function qi(e){return!!of()&&(e instanceof Element||e instanceof bi(e).Element)}function vr(e){return!!of()&&(e instanceof HTMLElement||e instanceof bi(e).HTMLElement)}function lg(e){return!(!of()||typeof ShadowRoot>"u")&&(e instanceof ShadowRoot||e instanceof bi(e).ShadowRoot)}function lu(e){const{overflow:t,overflowX:n,overflowY:i,display:r}=Yi(e);return/auto|scroll|overlay|hidden|clip/.test(t+i+n)&&!["inline","contents"].includes(r)}function Bw(e){return["table","td","th"].includes(Ca(e))}function sf(e){return[":popover-open",":modal"].some((t=>{try{return e.matches(t)}catch{return!1}}))}function af(e){const t=Um(),n=qi(e)?Yi(e):e;return["transform","translate","scale","rotate","perspective"].some((e=>!!n[e]&&"none"!==n[e]))||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","translate","scale","rotate","perspective","filter"].some((e=>(n.willChange||"").includes(e)))||["paint","layout","strict","content"].some((e=>(n.contain||"").includes(e)))}function kw(e){let t=_o(e);for(;vr(t)&&!da(t);){if(af(t))return t;if(sf(t))return null;t=_o(t)}return null}function Um(){return!(typeof CSS>"u"||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function da(e){return["html","body","#document"].includes(Ca(e))}function Yi(e){return bi(e).getComputedStyle(e)}function lf(e){return qi(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function _o(e){if("html"===Ca(e))return e;const t=e.assignedSlot||e.parentNode||lg(e)&&e.host||_r(e);return lg(t)?t.host:t}function M_(e){const t=_o(e);return da(t)?e.ownerDocument?e.ownerDocument.body:e.body:vr(t)&&lu(t)?t:M_(t)}function Ml(e,t,n){var i;void 0===t&&(t=[]),void 0===n&&(n=!0);const r=M_(e),o=r===(null==(i=e.ownerDocument)?void 0:i.body),s=bi(r);if(o){const e=ep(s);return t.concat(s,s.visualViewport||[],lu(r)?r:[],e&&n?Ml(e):[])}return t.concat(r,Ml(r,[],n))}function ep(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function T_(e){const t=Yi(e);let n=parseFloat(t.width)||0,i=parseFloat(t.height)||0;const r=vr(e),o=r?e.offsetWidth:n,s=r?e.offsetHeight:i,a=Pd(n)!==o||Pd(i)!==s;return a&&(n=o,i=s),{width:n,height:i,$:a}}function Fm(e){return qi(e)?e:e.contextElement}function Ws(e){const t=Fm(e);if(!vr(t))return ur(1);const n=t.getBoundingClientRect(),{width:i,height:r,$:o}=T_(t);let s=(o?Pd(n.width):n.width)/i,a=(o?Pd(n.height):n.height)/r;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}const zw=ur(0);function A_(e){const t=bi(e);return Um()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:zw}function Hw(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==bi(e))&&t}function rs(e,t,n,i){void 0===t&&(t=!1),void 0===n&&(n=!1);const r=e.getBoundingClientRect(),o=Fm(e);let s=ur(1);t&&(i?qi(i)&&(s=Ws(i)):s=Ws(e));const a=Hw(o,n,i)?A_(o):ur(0);let l=(r.left+a.x)/s.x,c=(r.top+a.y)/s.y,u=r.width/s.x,d=r.height/s.y;if(o){const e=bi(o),t=i&&qi(i)?bi(i):i;let n=e,r=ep(n);for(;r&&i&&t!==n;){const e=Ws(r),t=r.getBoundingClientRect(),i=Yi(r),o=t.left+(r.clientLeft+parseFloat(i.paddingLeft))*e.x,s=t.top+(r.clientTop+parseFloat(i.paddingTop))*e.y;l*=e.x,c*=e.y,u*=e.x,d*=e.y,l+=o,c+=s,n=bi(r),r=ep(n)}}return Ld({width:u,height:d,x:l,y:c})}function Bm(e,t){const n=lf(e).scrollLeft;return t?t.left+n:rs(_r(e)).left+n}function C_(e,t,n){void 0===n&&(n=!1);const i=e.getBoundingClientRect();return{x:i.left+t.scrollLeft-(n?0:Bm(e,i)),y:i.top+t.scrollTop}}function Vw(e){let{elements:t,rect:n,offsetParent:i,strategy:r}=e;const o="fixed"===r,s=_r(i),a=!!t&&sf(t.floating);if(i===s||a&&o)return n;let l={scrollLeft:0,scrollTop:0},c=ur(1);const u=ur(0),d=vr(i);
1if((d||!d&&!o)&&(("body"!==Ca(i)||lu(s))&&(l=lf(i)),vr(i))){const e=rs(i);c=Ws(i),u.x=e.x+i.clientLeft,u.y=e.y+i.clientTop}const h=!s||d||o?ur(0):C_(s,l,!0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+u.x+h.x,y:n.y*c.y-l.scrollTop*c.y+u.y+h.y}}function $w(e){return Array.from(e.getClientRects())}function Gw(e){const t=_r(e),n=lf(e),i=e.ownerDocument.body,r=Jo(t.scrollWidth,t.clientWidth,i.scrollWidth,i.clientWidth),o=Jo(t.scrollHeight,t.clientHeight,i.scrollHeight,i.clientHeight);let s=-n.scrollLeft+Bm(e);const a=-n.scrollTop;return"rtl"===Yi(i).direction&&(s+=Jo(t.clientWidth,i.clientWidth)-r),{width:r,height:o,x:s,y:a}}function Ww(e,t){const n=bi(e),i=_r(e),r=n.visualViewport;let o=i.clientWidth,s=i.clientHeight,a=0,l=0;if(r){o=r.width,s=r.height;const e=Um();(!e||e&&"fixed"===t)&&(a=r.offsetLeft,l=r.offsetTop)}return{width:o,height:s,x:a,y:l}}function Xw(e,t){const n=rs(e,!0,"fixed"===t),i=n.top+e.clientTop,r=n.left+e.clientLeft,o=vr(e)?Ws(e):ur(1);return{width:e.clientWidth*o.x,height:e.clientHeight*o.y,x:r*o.x,y:i*o.y}}function cg(e,t,n){let i;if("viewport"===t)i=Ww(e,n);else if("document"===t)i=Gw(_r(e));else if(qi(t))i=Xw(t,n);else{const n=A_(e);i={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return Ld(i)}function P_(e,t){const n=_o(e);return!(n===t||!qi(n)||da(n))&&("fixed"===Yi(n).position||P_(n,t))}function qw(e,t){const n=t.get(e);if(n)return n;let i=Ml(e,[],!1).filter((e=>qi(e)&&"body"!==Ca(e))),r=null;const o="fixed"===Yi(e).position;let s=o?_o(e):e;for(;qi(s)&&!da(s);){const t=Yi(s),n=af(s);!n&&"fixed"===t.position&&(r=null),(o?!n&&!r:!n&&"static"===t.position&&r&&["absolute","fixed"].includes(r.position)||lu(s)&&!n&&P_(e,s))?i=i.filter((e=>e!==s)):r=t,s=_o(s)}return t.set(e,i),i}function Yw(e){let{element:t,boundary:n,rootBoundary:i,strategy:r}=e;const o=[..."clippingAncestors"===n?sf(t)?[]:qw(t,this._c):[].concat(n),i],s=o[0],a=o.reduce(((e,n)=>{const i=cg(t,n,r);return e.top=Jo(i.top,e.top),e.right=ca(i.right,e.right),e.bottom=ca(i.bottom,e.bottom),e.left=Jo(i.left,e.left),e}),cg(t,s,r));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}}function jw(e){const{width:t,height:n}=T_(e);return{width:t,height:n}}function Kw(e,t,n){const i=vr(t),r=_r(t),o="fixed"===n,s=rs(e,!0,o,t);let a={scrollLeft:0,scrollTop:0};const l=ur(0);if(i||!i&&!o)if(("body"!==Ca(t)||lu(r))&&(a=lf(t)),i){const e=rs(t,!0,o,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else r&&(l.x=Bm(r));const c=!r||i||o?ur(0):C_(r,a);return{x:s.left+a.scrollLeft-l.x-c.x,y:s.top+a.scrollTop-l.y-c.y,width:s.width,height:s.height}}function If(e){return"static"===Yi(e).position}function ug(e,t){if(!vr(e)||"fixed"===Yi(e).position)return null;if(t)return t(e);let n=e.offsetParent;return _r(e)===n&&(n=n.ownerDocument.body),n}function R_(e,t){const n=bi(e);if(sf(e))return n;if(!vr(e)){let t=_o(e);for(;t&&!da(t);){if(qi(t)&&!If(t))return t;t=_o(t)}return n}let i=ug(e,t);for(;i&&Bw(i)&&If(i);)i=ug(i,t);return i&&da(i)&&If(i)&&!af(i)?n:i||kw(e)||n}const Qw=async function(e){const t=this.getOffsetParent||R_,n=this.getDimensions,i=await n(e.floating);return{reference:Kw(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function Zw(e){return"rtl"===Yi(e).direction}const tp={convertOffsetParentRelativeRectToViewportRelativeRect:Vw,getDocumentElement:_r,getClippingRect:Yw,getOffsetParent:R_,getElementRects:Qw,getClientRects:$w,getDimensions:jw,getScale:Ws,isElement:qi,isRTL:Zw};function L_(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Jw(e,t){let n,i=null;const r=_r(e);function o(){var e;clearTimeout(n),null==(e=i)||e.disconnect(),i=null}return function s(a,l){void 0===a&&(a=!1),void 0===l&&(l=1),o();const c=e.getBoundingClientRect(),{left:u,top:d,width:h,height:p}=c;if(a||t(),!h||!p)return;const f={rootMargin:-Au(d)+"px "+-Au(r.clientWidth-(u+h))+"px "+-Au(r.clientHeight-(d+p))+"px "+-Au(u)+"px",threshold:Jo(0,ca(1,l))||1};let m=!0;function g(t){const i=t[0].intersectionRatio;if(i!==l){if(!m)return s();i?s(!1,i):n=setTimeout((()=>{s(!1,1e-7)}),1e3)}1===i&&!L_(c,e.getBoundingClientRect())&&s(),m=!1}try{i=new IntersectionObserver(g,{...f,root:r.ownerDocument})}catch{i=new IntersectionObserver(g,f)}i.observe(e)}(!0),o}function D_(e,t,n,i){void 0===i&&(i={});const{ancestorScroll:r=!0,ancestorResize:o=!0,elementResize:s="function"==typeof ResizeObserver,layoutShift:a="function"==typeof IntersectionObserver,animationFrame:l=!1}=i,c=Fm(e),u=r||o?[...c?Ml(c):[],...Ml(t)]:[];u.forEach((e=>{r&&e.addEventListener("scroll",n,{passive:!0}),o&&e.addEventListener("resize",n)}));const d=c&&a?Jw(c,n):null;let h=-1,p=null;s&&(p=new ResizeObserver((e=>{let[i]=e;i&&i.target===c&&p&&(p.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame((()=>{var e;null==(e=p)||e.observe(t)}))),n()})),c&&!l&&p.observe(c),p.observe(t));let f,m=l?rs(e):null;return l&&function t(){const i=rs(e);m&&!L_(m,i)&&n(),m=i,f=requestAnimationFrame(t)}(),n(),()=>{var e;u.forEach((e=>{r&&e.removeEventListener("scroll",n),o&&e.removeEventListener("resize",n)})),null==d||d(),null==(e=p)||e.disconnect(),p=null,l&&cancelAnimationFrame(f)}}const eM=Fw,I_=Ow,tM=Uw,nM=Nw,N_=(e,t,n)=>{const i=new Map,r={platform:tp,...n},o={...r.platform,_c:i};return Iw(e,t,{...r,platform:o})};let iM="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",rM=(e=21)=>{let t="",n=0|e;for(;n--;)t+=iM[64*Math.random()|0];return t};function yo(){return"vi"+rM(10)}function rd(e){return t=>(e(t),{destroy(){e(void 0)}})}const O_=e=>{if("true"===e)return!0;
1if("false"===e)return!1;if("null"===e)return null;if("undefined"===e)return;const t=Number(e);if(!isNaN(t))return t;try{const t=JSON.parse(e);if("object"==typeof t||"number"==typeof t||"boolean"==typeof t)return t}catch{}return e},cf=(e=document)=>{const t=e.activeElement;return t?t.shadowRoot?cf(t.shadowRoot):t:null},sl=e=>e.composed?e.composedPath()[0]:e.target,Ei=(e,t)=>Array.isArray(e)?e.map((e=>Ei(e,t))):null!==e&&"object"==typeof e?Object.keys(e).reduce(((n,i)=>{const r=/^(aria)/.test(i)?i:y_(i),o="string"!=typeof e[i]||null!=t&&t.includes(i)?e[i]:O_(e[i]);return n[r]=null!==o&&"object"==typeof o?Ei(o,t):o,n}),{}):e,Qa=(e,t)=>{let n=t;for(;n;){if(n===e)return!0;if(n instanceof HTMLElement&&n.assignedSlot)n=n.assignedSlot;else if(n.parentNode)n=n.parentNode;else{if(!(n instanceof ShadowRoot))return!1;n=n.host}}return!1};function oM(e,t,n){const i=[],r=e=>{(e instanceof Element||e instanceof ShadowRoot)&&i.push(...Array.from(e.querySelectorAll(t)));for(const t of Array.from(e.childNodes)){if(t.nodeType!==Node.ELEMENT_NODE)continue;const e=t;if(e.shadowRoot&&r(e.shadowRoot),"SLOT"===e.tagName){const t=e.assignedNodes({flatten:!0});for(const e of t)(e.nodeType===Node.ELEMENT_NODE||e instanceof ShadowRoot)&&r(e)}else r(e)}};return r(e),i}const cu=(e,t={})=>{const{convertStringBooleans:n=!0,customSanitizer:i,booleanProps:r}=t;let o={...e};if(i&&(o=i(o)),n)for(const[e,t]of Object.entries(o))if("string"==typeof t){if(r&&!r.includes(e))continue;""===t||"true"===t?o[e]=!0:"false"===t&&(o[e]=!1)}return o};function sM(e){return aM(e)}function Nf(e){return e.assignedSlot?e.assignedSlot:e.parentNode instanceof ShadowRoot?e.parentNode.host:e.parentNode}function aM(e){for(let t=e;t;t=Nf(t))if(t instanceof Element&&"none"===getComputedStyle(t).display)return null;for(let t=Nf(e);t;t=Nf(t)){if(!(t instanceof Element))continue;const e=getComputedStyle(t);if("contents"!==e.display&&("static"!==e.position||af(e)||"BODY"===t.tagName))return t}return null}const lM=new CustomEvent("popoverstart"),cM=new CustomEvent("popoverend");var Yl,jl;class dg{constructor(e){Re(this,Yl,ie()),this.value=e}get value(){return y(N(this,Yl))}set value(e){X(N(this,Yl),e,!0)}}Yl=new WeakMap;class uM{constructor(){Re(this,jl,ie(Lt([]))),Y(this,"cbs",new Map)}get refs(){return y(N(this,jl))}set refs(e){X(N(this,jl),e,!0)}set(e,t){let n=this.refs.indexOf(e);-1===n?this.refs.push(e):this.refs[n]=e,this.cbs.set(e,t)}get(e){if(e)return this.cbs.get(e)}delete(e){const t=this.refs.indexOf(e);return-1!==t&&(this.refs.splice(t,1),this.cbs.delete(e),!0)}closePopover(e){this.cbs.forEach(((t,n)=>{n!==e&&t.closePopover()}))}enablePopover(e){this.cbs.forEach(((t,n)=>{n!==e&&t.enablePopover()}))}disablePopover(e){this.cbs.forEach(((t,n)=>{n!==e&&t.disablePopover()}))}}jl=new WeakMap;const Ba=new uM;function dM({boundaryCtx:e,openOnMouseEnter:t=!1,openOnFocus:n=!1,closeOnClick:i=!0,closeOnMouseLeave:r=!1,closeOnOutsideClick:o=!0,closeOnEscape:s=!0,groupTriggers:a=!0,renderContent:l=!1,closeOthers:c=!1,disableOthers:u=!1}){if(t&&i)throw new Error("Popover cannot be configured to open on mouse enter and close on click at the same time.");let d,h,p=ie(void 0),f=ie(void 0),m=ie(void 0),g=ie(void 0),v=ie(void 0),b=ie(void 0),_=Lt(new Set),x=Lt(new Set),S=new dg(!1),w=new dg(!1),M=ie(!1),E=!1;const T=yo(),C=async()=>{if(!(y(p)&&y(m)&&y(v)&&y(b)&&y(g)))return;const t=null==e?void 0:e.boundary,n=y(v).offsetWidth,i=Math.sqrt(2*n**2)/2,r=e=>`${e}px`,o=getComputedStyle(y(m));let s={top:parseInt(o.marginTop||"0",10),left:parseInt(o.marginLeft||"0",10),right:parseInt(o.marginRight||"0",10),bottom:parseInt(o.marginBottom||"0",10)};if(t){const e=t.width,n=s.left+s.right;y(m).style.maxWidth="";let i=parseInt(o.maxWidth||String(window.innerWidth),10);i=isNaN(i)?e-n:Math.min(i,e-n),y(m).style.maxWidth=`${i}px`}try{const{x:e,y:n,middlewareData:o,placement:a}=await N_(y(p),y(m),{placement:"bottom",middleware:[I_({boundary:t,padding:s}),eM({boundary:t,padding:s,crossAxis:!0}),tM({boundary:t,padding:s}),nM({element:y(v)})],platform:{...tp,getOffsetParent:e=>tp.getOffsetParent(e,sM)}});o.hide&&Object.assign(y(m).style,{visibility:o.hide.referenceHidden?"hidden":"visible"});
1const l={top:"bottom",right:"left",bottom:"top",left:"right"}[a.split("-")[0]]||"top";if(Object.assign(y(m).style,{left:r(e-s.left),top:r(n-s.top),[`padding-${l}`]:r(i)}),o.arrow){const{x:e,y:t}=o.arrow,n=[y(v),y(b)],s=window.getComputedStyle(y(g)),a=parseInt(s.borderRadius,10),c=e||t||0,u=i-y(v).offsetWidth/2+a,d=Math.ceil(u),h=Math.floor(y(m).offsetWidth-y(v).offsetWidth-u);let p=0;c<d&&(p=d-c),c>h&&(p=c-h);const f=p/u*u;let _=Math.min(Math.max(d,c),h);n.forEach((n=>{Object.assign(n.style,{left:null!=e?r(_):"",top:null!=t?r(_):"",[l]:`${n.offsetWidth-i+f}px`})}))}}catch(e){console.error("Failed to update position:",e)}};ut((()=>{if(y(p)&&y(m))return D_(y(p),y(m),C)}));const R=e=>{E||(u&&Ba.disablePopover(F),c&&Ba.closePopover(F),y(p)&&y(p)!==e&&(clearTimeout(h),S.value=!0),y(p)!==e&&(x.forEach((t=>{t===e||e.contains(t)?(t.setAttribute("aria-expanded","true"),X(f,t,!0)):t.setAttribute("aria-expanded","false")})),X(p,e,!0),y(p).dispatchEvent(lM),w.value=!0,X(M,!1)))},A=()=>{var e;x.forEach((e=>e.setAttribute("aria-expanded","false"))),X(f,void 0),null==(e=y(p))||e.dispatchEvent(cM),X(p,void 0),w.value=!1,S.value=!1,X(M,!1),u&&Ba.enablePopover(F)},L=e=>{const t=sl(e);y(p)&&!Qa(y(p),t)&&y(g)&&!Qa(y(g),t)&&y(v)&&!Qa(y(v),t)&&[..._].every((e=>!Qa(e,t)))&&A()},P=e=>{var t;"Escape"===e.key&&(null==(t=y(f))||t.focus(),A())},N=e=>{if(!y(g))return;const t=sl(e),n=[...oM(y(g),"a[href], area[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), iframe, object, embed, *[tabindex], *[contenteditable]")].filter((e=>e.tabIndex>=0)),i=n[0],r=n[n.length-1],o=cf(),s=o instanceof HTMLElement?n.indexOf(o):-1;switch(e.key){case"Enter":-1===s&&(e.preventDefault(),i.focus());break;case"Tab":-1===s&&(e.preventDefault(),i.focus()),e.shiftKey?t===i&&(e.preventDefault(),r.focus()):t===r&&(e.preventDefault(),i.focus())}},D=e=>{const t=sl(e);[..._].some((e=>t===e||t.contains(e)||e.contains(t)))||A()};o&&ut((()=>(w.value&&document.addEventListener("click",L,!0),()=>document.removeEventListener("click",L,!0)))),s&&ut((()=>(w.value&&document.addEventListener("keydown",P),()=>document.removeEventListener("keydown",P)))),a&&ut((()=>(y(M)&&document.addEventListener("mousemove",D),()=>document.removeEventListener("mousemove",D)))),ut((()=>(w.value&&document.addEventListener("keydown",N),()=>document.removeEventListener("keydown",N))));const I=e=>(x.add(e),e.setAttribute("aria-expanded","false"),e.setAttribute("aria-haspopup","true"),e.setAttribute("aria-controls",T),{destroy:()=>{x.delete(e)}}),O=rd((e=>X(g,e,!0))),U=rd((e=>X(v,e,!0))),k=rd((e=>X(b,e,!0))),F=Symbol();return Ba.set(F,{closePopover:A,disablePopover:()=>E=!0,enablePopover:()=>E=!1}),{referenceAction:(e,o=!0)=>{const s=(e=>{const t=t=>{t instanceof KeyboardEvent&&"Enter"!==t.key||(clearTimeout(d),w.value&&y(p)===e?i&&A():R(e))};return e.addEventListener("click",t),e.addEventListener("keydown",t),{destroy:()=>{e.removeEventListener("click",t),e.removeEventListener("keydown",t)}}})(e),l=(e=>{const t=t=>{clearTimeout(d),d=setTimeout((()=>{R(e)}),150)};return n&&e.addEventListener("focus",t),{destroy:()=>{n&&e.removeEventListener("focus",t)}}})(e),c=(e=>{const n=t=>{clearTimeout(d),R(e)},i=e=>{let t;clearTimeout(d),X(M,!0),_.forEach((e=>{const{top:n,left:i,right:r,bottom:o}=e.getBoundingClientRect();t?(t.top=Math.min(t.top,n),t.left=Math.min(t.left,i),t.right=Math.max(t.right,r),t.bottom=Math.max(t.bottom,o)):t={top:n,left:i,right:r,bottom:o}}));const{clientX:n,clientY:i}=e;t&&(n<=Math.ceil(t.left)||n>=Math.floor(t.right)||i<=Math.ceil(t.top)||i>=Math.floor(t.bottom))&&(d=setTimeout((()=>{A()}),1))},o=e=>{clearTimeout(d),d=setTimeout((()=>{A()}),1)};return t&&e.addEventListener("mouseenter",n),r&&e.addEventListener("mouseleave",a?i:o),{destroy(){t&&e.removeEventListener("mouseenter",n),r&&e.removeEventListener("mouseleave",a?i:o)}}})(e);let u;return o&&(u=I(e)),_.add(e),{destroy:()=>{s.destroy(),l.destroy(),c.destroy(),null==u||u.destroy(),_.delete(e)}}},triggerAction:e=>{const t=I(e);return{destroy:()=>{t.destroy()}}},floatingAction:e=>{const t=()=>{document.removeEventListener("mousemove",a),A()},n=()=>{h=setTimeout((()=>{S.value=!1}),1)},i=()=>{X(M,!1),document.removeEventListener("mousemove",a),clearTimeout(d)};let o=0,s=null;const a=n=>{const{clientX:i,clientY:r}=n,{left:a,top:l,right:c,bottom:u}=e.getBoundingClientRect(),d=(i<a||i>c?Math.min(Math.abs(i-a),Math.abs(i-c)):0)+(r<l||r>u?Math.min(Math.abs(r-l),Math.abs(r-u)):0);null!==s?(o+=d-s,o=Math.max(0,o),o>5&&t()):d<5&&t(),s=d},l=()=>{clearTimeout(d),d=setTimeout((()=>{o=0,s=null,document.addEventListener("mousemove",a)}),1)};return X(m,e,!0),e.addEventListener("transitionend",n),e.addEventListener("mouseenter",i),r&&e.addEventListener("mouseleave",l),e.setAttribute("id",T),{destroy:()=>{e.removeEventListener("transitionend",n),e.removeEventListener("mouseenter",i),r&&(e.removeEventListener("mouseleave",l),document.removeEventListener("mousemove",a)),X(m,void 0)}}},contentAction:O,arrowSurfaceAction:U,arrowShadowAction:k,show:w,render:l,animate:S,get activeTrigger(){return y(f)},destroy:()=>Ba.delete(F)}}function U_(e,t){if(!e||(n=e,"fixed"===window.getComputedStyle(n).position))return null;var n;const i=e=>{const n=window.getComputedStyle(e),i=n.overflowY,r=n.overflowX,o="scroll"===i||"auto"===i,s="scroll"===r||"auto"===r;switch(t){case"x":return s;case"y":return o;default:return s||o}};return(e=>{const t=(e=>{let t=e.parentElement;for(;t&&t!==document.documentElement;){if(i(t))return t;t=t.parentElement}return document})(e);return{emitter:t,element:t instanceof Document?document.documentElement:t}})(e)}const km=typeof window<"u"?window:void 0;function fM(e){let t=e.activeElement;for(;null!=t&&t.shadowRoot;){const e=t.shadowRoot.activeElement;if(e===t)break;t=e}return t}function Or(e){X(e,e.v+1)}var Js,Hi,ao,Wd,F_,hM=["forEach","isDisjointFrom","isSubsetOf","isSupersetOf"],pM=["difference","intersection","symmetricDifference","union"],fg=!1;const Xd=class extends Set{constructor(e){if(super(),Re(this,Wd),Re(this,Js,new Map),Re(this,Hi,Pn(0)),Re(this,ao,Pn(0)),e){for(var t of e)super.add(t);N(this,ao).v=super.size}fg||Ro(this,Wd,F_).call(this)}has(e){var t=super.has(e),n=N(this,Js),i=n.get(e);if(void 0===i){if(!t)return y(N(this,Hi)),!1;i=Pn(!0),n.set(e,i)}return y(i),t}add(e){return super.has(e)||(super.add(e),X(N(this,ao),super.size),Or(N(this,Hi))),this}delete(e){var t=super.delete(e),n=N(this,Js),i=n.get(e);return void 0!==i&&(n.delete(e),X(i,!1)),t&&(X(N(this,ao),super.size),Or(N(this,Hi))),t}clear(){if(0!==super.size){super.clear();var e=N(this,Js);for(var t of e.values())X(t,!1);e.clear(),X(N(this,ao),0),Or(N(this,Hi))}}keys(){return this.values()}values(){return y(N(this,Hi)),super.values()}entries(){return y(N(this,Hi)),super.entries()}[Symbol.iterator](){return this.keys()}get size(){return y(N(this,ao))}};Js=new WeakMap,Hi=new WeakMap,ao=new WeakMap,Wd=new WeakSet,F_=function(){fg=!0;var e=Xd.prototype,t=Set.prototype;for(const n of hM)e[n]=function(...e){return y(N(this,Hi)),t[n].apply(this,e)};for(const n of pM)e[n]=function(...e){y(N(this,Hi));var i=t[n].apply(this,e);return new Xd(i)}};let vo=Xd;var nr,ir,Lr,ea,od;const Dv=class extends Map{constructor(e){if(super(),Re(this,ea),Re(this,nr,new Map),Re(this,ir,Pn(0)),Re(this,Lr,Pn(0)),e){for(var[t,n]of e)super.set(t,n);N(this,Lr).v=super.size}}has(e){var t=N(this,nr),n=t.get(e);if(void 0===n){if(void 0===super.get(e))return y(N(this,ir)),!1;n=Pn(0),t.set(e,n)}return y(n),!0}forEach(e,t){Ro(this,ea,od).call(this),super.forEach(e,t)}get(e){var t=N(this,nr),n=t.get(e);if(void 0===n){if(void 0===super.get(e))return void y(N(this,ir));n=Pn(0),t.set(e,n)}return y(n),super.get(e)}set(e,t){var n,i=N(this,nr),r=i.get(e),o=super.get(e),s=super.set(e,t),a=N(this,ir);if(void 0===r)i.set(e,Pn(0)),X(N(this,Lr),super.size),Or(a);else if(o!==t){Or(r);var l=null===a.reactions?null:new Set(a.reactions);(null===l||!(null!=(n=r.reactions)&&n.every((e=>l.has(e)))))&&Or(a)}return s}delete(e){var t=N(this,nr),n=t.get(e),i=super.delete(e);return void 0!==n&&(t.delete(e),X(N(this,Lr),super.size),X(n,-1),Or(N(this,ir))),i}clear(){if(0!==super.size){super.clear();var e=N(this,nr);
1for(var t of(X(N(this,Lr),0),e.values()))X(t,-1);Or(N(this,ir)),e.clear()}}keys(){return y(N(this,ir)),super.keys()}values(){return Ro(this,ea,od).call(this),super.values()}entries(){return Ro(this,ea,od).call(this),super.entries()}[Symbol.iterator](){return this.entries()}get size(){return y(N(this,Lr)),super.size}};nr=new WeakMap,ir=new WeakMap,Lr=new WeakMap,ea=new WeakSet,od=function(){y(N(this,ir));var e=N(this,nr);if(N(this,Lr).v!==e.size)for(var t of zv(Dv.prototype,this,"keys").call(this))e.has(t)||e.set(t,Pn(0));for(var[,n]of N(this,nr))y(n)};let Hr=Dv;function B_(e){let t,n=0,i=Pn(0);return()=>{gE()&&(y(i),fs((()=>(0===n&&(t=pn((()=>e((()=>Or(i)))))),n+=1,()=>{su().then((()=>{n-=1,0===n&&(null==t||t(),t=void 0)}))}))))}}var Kl,Ql;class mM{constructor(e,t){Re(this,Kl),Re(this,Ql),zt(this,Kl,e),zt(this,Ql,B_(t))}get current(){return N(this,Ql).call(this),N(this,Kl).call(this)}}Kl=new WeakMap,Ql=new WeakMap;const vM=/\(.+\)/;class zm extends mM{constructor(e,t){let n=vM.test(e)?e:`(${e})`;const i=window.matchMedia(n);super((()=>i.matches),(e=>Wh(i,"change",e)))}}var ta,Zl,Wo,Xo,Jl,Dr,ec,tc,nc,ic,rc,oc,d0;class gM{constructor(e={}){Re(this,ta),Re(this,Zl);const{window:t=km,document:n=(null==t?void 0:t.document)}=e;void 0!==t&&(zt(this,ta,n),zt(this,Zl,B_((e=>{const n=Wh(t,"focusin",e),i=Wh(t,"focusout",e);return()=>{n(),i()}}))))}get current(){var e;return null==(e=N(this,Zl))||e.call(this),N(this,ta)?fM(N(this,ta)):null}}function bM(){}function _M(e){return"function"==typeof e}function k_(e,t){if(_M(e)){const n=e;return n()??t??n()}return e??t??e}function yM(e,t=250){let n=ie(null);function i(...i){if(y(n))y(n).timeout&&clearTimeout(y(n).timeout);else{let e,t;const i=new Promise(((n,i)=>{e=n,t=i}));X(n,{timeout:null,runner:null,promise:i,resolve:e,reject:t},!0)}return y(n).runner=async()=>{if(!y(n))return;const t=y(n);X(n,null);try{t.resolve(await e.apply(this,i))}catch(e){t.reject(e)}},y(n).timeout=setTimeout(y(n).runner,"function"==typeof t?t():t),y(n).promise}return i.cancel=async()=>{(!y(n)||null===y(n).timeout)&&(await new Promise((e=>setTimeout(e,0))),!y(n)||null===y(n).timeout)||(clearTimeout(y(n).timeout),y(n).reject("Cancelled"),X(n,null))},i.runScheduledNow=async()=>{var e,t;(!y(n)||!y(n).timeout)&&(await new Promise((e=>setTimeout(e,0))),!y(n)||!y(n).timeout)||(clearTimeout(y(n).timeout),y(n).timeout=null,await(null==(t=(e=y(n)).runner)?void 0:t.call(e)))},Object.defineProperty(i,"pending",{enumerable:!0,get(){var e;return!(null==(e=y(n))||!e.timeout)}}),i}function xM(e,t){switch(e){case"post":ut(t);break;case"pre":Jn(t)}}function z_(e,t,n,i={}){const{lazy:r=!1}=i;let o=!r,s=Array.isArray(e)?[]:void 0;xM(t,(()=>{const t=Array.isArray(e)?e.map((e=>e())):e();if(!o)return o=!0,void(s=t);const i=pn((()=>n(t,s)));return s=t,i}))}function H_(e,t,n){z_(e,"post",t,n)}function SM(e,t,n){z_(e,"pre",t,n)}ta=new WeakMap,Zl=new WeakMap,new gM,H_.pre=SM;class EM{constructor(e,t=250){Re(this,Wo,ie()),Re(this,Xo),X(N(this,Wo),e(),!0),this.cancel=this.cancel.bind(this),this.setImmediately=this.setImmediately.bind(this),this.updateImmediately=this.updateImmediately.bind(this),zt(this,Xo,yM((()=>{X(N(this,Wo),e(),!0)}),t)),H_(e,(()=>{N(this,Xo).call(this).catch(bM)}))}get current(){return y(N(this,Wo))}cancel(){N(this,Xo).cancel()}updateImmediately(){return N(this,Xo).runScheduledNow()}setImmediately(e){this.cancel(),X(N(this,Wo),e,!0)}}function wM(e,t,n={}){const{window:i=km}=n;let r;const o=_e((()=>{const t=k_(e);return new Set(t?Array.isArray(t)?t:[t]:[])})),s=Tm((()=>{ut((()=>{if(y(o).size&&i){r=new i.MutationObserver(t);for(const e of y(o))r.observe(e,n);return()=>{null==r||r.disconnect(),r=void 0}}}))}));return ut((()=>s)),{stop:s,takeRecords:()=>null==r?void 0:r.takeRecords()}}function MM(e,t,n={}){const{window:i=km}=n;let r;const o=_e((()=>{const t=k_(e);return new Set(t?Array.isArray(t)?t:[t]:[])})),s=Tm((()=>{ut((()=>{if(y(o).size&&i){r=new i.ResizeObserver(t);for(const e of y(o))r.observe(e,n);return()=>{null==r||r.disconnect(),r=void 0}}}))}));return ut((()=>s)),{stop:s}}Wo=new WeakMap,Xo=new WeakMap;class uf{constructor(e){Re(this,Jl),Re(this,Dr),zt(this,Jl,e),zt(this,Dr,Symbol(e))}get key(){return N(this,Dr)}exists(){return xl(N(this,Dr))}get(){const e=yn(N(this,Dr));if(void 0===e)throw new Error(`Context "${N(this,Jl)}" not found`);return e}getOr(e){const t=yn(N(this,Dr));return void 0===t?e:t}set(e){return hs(N(this,Dr),e)}}Jl=new WeakMap,Dr=new WeakMap;class TM{constructor(e){Re(this,ec,ie(Lt({x:0,y:0,width:0,height:0})));const t=_e((()=>e));let n=null;const i=()=>{return e=()=>{if(!y(t))return;const e=y(t).getBoundingClientRect();X(N(this,ec),{width:e.width,height:e.height,x:e.x,y:e.y},!0)},void(null===n&&(n=requestAnimationFrame((()=>{e(),n=null}))));var e};MM((()=>y(t)),i),wM((()=>y(t)),i,{attributeFilter:["style","class"]}),ut((()=>{const t=U_(e);return null==t||t.emitter.addEventListener("scroll",i),window.addEventListener("resize",i),()=>{null==t||t.emitter.removeEventListener("scroll",i),window.removeEventListener("resize",i)}}))}get current(){return y(N(this,ec))}}ec=new WeakMap;let AM=(d0=class{constructor(e){Re(this,tc,ie()),Re(this,nc,ie()),Re(this,ic,ie("both")),Re(this,rc,ie(Lt({x:0,y:0,width:0,height:0}))),Re(this,oc,ie()),this.ancestor=e,ut((()=>{var e;let t={x:0,y:0,width:window.innerWidth,height:window.innerHeight};if(null!=(e=this.ancestor)&&e.boundary&&(t={...t,...this.ancestor.boun
1dary}),this.rect){switch(this.axis){case"x":if(this.rect){let{x:e,width:n}=this.rect.current;t={...t,x:e,width:n}}break;case"y":if(this.rect){let{y:e,height:n}=this.rect.current;t={...t,y:e,height:n}}break;default:if(this.rect){let{x:e,y:n,width:i,height:r}=this.rect.current;t={x:e,y:n,width:i,height:r}}}this.boundary=t}else this.boundary=t}))}get ancestor(){return y(N(this,tc))}set ancestor(e){X(N(this,tc),e,!0)}get rect(){return y(N(this,nc))}set rect(e){X(N(this,nc),e,!0)}get axis(){return y(N(this,ic))}set axis(e){X(N(this,ic),e,!0)}get boundary(){return y(N(this,rc))}set boundary(e){X(N(this,rc),e,!0)}get scrollContext(){return y(N(this,oc))}set scrollContext(e){X(N(this,oc),e,!0)}set(e,t="both"){this.axis=t,this.rect=new TM(e)}},tc=new WeakMap,nc=new WeakMap,ic=new WeakMap,rc=new WeakMap,oc=new WeakMap,d0);const np=Symbol("BOUNDARY_CONTEXT_KEY"),CM=(e,t)=>{let n=ie(void 0);const i=yn(t&&xl(t)?t:np),r=new AM(i);return hs(t??np,r),ut((()=>{y(n)&&r.set(y(n),e)})),{get element(){return y(n)},set element(e){X(n,e,!0)}}},V_=(e=np)=>yn(e),uu=Symbol();function $_(e,t){he(t,!0);let n=L(t,"boundaryContextKey",7),i=L(t,"openOnMouseEnter",7,!1),r=L(t,"openOnFocus",7,!1),o=L(t,"closeOnClick",7,!0),s=L(t,"closeOnMouseLeave",7,!1),a=L(t,"closeOnOutsideClick",7,!0),l=L(t,"closeOnEscape",7,!0),c=L(t,"groupTriggers",7,!0),u=L(t,"renderContent",7,!1),d=L(t,"closeOthers",7,!1),h=L(t,"disableOthers",7,!1),p=L(t,"children",7);const f=dM({boundaryCtx:V_(n()),openOnMouseEnter:i(),openOnFocus:r(),closeOnClick:!i()&&o(),closeOnMouseLeave:s(),closeOnOutsideClick:a(),closeOnEscape:l(),groupTriggers:c(),renderContent:u(),closeOthers:d(),disableOthers:h()}),{referenceAction:m}=f;f_((()=>f.destroy())),hs(uu,{controller:f});var g=j(),v=G(g),b=e=>{var t=j();Ue(G(t),p,(()=>m)),C(e,t)};return Ke(v,(e=>{p()&&e(b)})),C(e,g),pe({get boundaryContextKey(){return n()},set boundaryContextKey(e){n(e),R()},get openOnMouseEnter(){return i()},set openOnMouseEnter(e=!1){i(e),R()},get openOnFocus(){return r()},set openOnFocus(e=!1){r(e),R()},get closeOnClick(){return o()},set closeOnClick(e=!0){o(e),R()},get closeOnMouseLeave(){return s()},set closeOnMouseLeave(e=!1){s(e),R()},get closeOnOutsideClick(){return a()},set closeOnOutsideClick(e=!0){a(e),R()},get closeOnEscape(){return l()},set closeOnEscape(e=!0){l(e),R()},get groupTriggers(){return c()},set groupTriggers(e=!0){c(e),R()},get renderContent(){return u()},set renderContent(e=!1){u(e),R()},get closeOthers(){return d()},set closeOthers(e=!1){d(e),R()},get disableOthers(){return h()},set disableOthers(e=!1){h(e),R()},get children(){return p()},set children(e){p(e),R()}})}se($_,{boundaryContextKey:{},openOnMouseEnter:{},openOnFocus:{},closeOnClick:{},closeOnMouseLeave:{},closeOnOutsideClick:{},closeOnEscape:{},groupTriggers:{},renderContent:{},closeOthers:{},disableOthers:{},children:{}},[],[],!0);const Hm="-",PM=e=>{const t=LM(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:i}=e;return{getClassGroupId:e=>{const n=e.split(Hm);return""===n[0]&&1!==n.length&&n.shift(),G_(n,t)||RM(e)},getConflictingClassGroupIds:(e,t)=>{const r=n[e]||[];return t&&i[e]?[...r,...i[e]]:r}}},G_=(e,t)=>{var n;if(0===e.length)return t.classGroupId;const i=e[0],r=t.nextPart.get(i),o=r?G_(e.slice(1),r):void 0;if(o)return o;if(0===t.validators.length)return;const s=e.join(Hm);return null==(n=t.validators.find((({validator:e})=>e(s))))?void 0:n.classGroupId},hg=/^\[(.+)\]$/,RM=e=>{if(hg.test(e)){const t=hg.exec(e)[1],n=null==t?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},LM=e=>{const{theme:t,prefix:n}=e,i={nextPart:new Map,validators:[]};return IM(Object.entries(e.classGroups),n).forEach((([e,n])=>{ip(n,i,e,t)})),i},ip=(e,t,n,i)=>{e.forEach((e=>{if("string"!=typeof e){if("function"==typeof e)return DM(e)?void ip(e(i),t,n,i):void t.validators.push({validator:e,classGroupId:n});Object.entries(e).forEach((([e,r])=>{ip(r,pg(t,e),n,i)}))}else{(""===e?t:pg(t,e)).classGroupId=n}}))},pg=(e,t)=>{let n=e;return t.split(Hm).forEach((e=>{n.nextPart.has(e)||n.nextPart.set(e,{nextPart:new Map,validators:[]}),n=n.nextPart.get(e)})),n},DM=e=>e.isThemeGetter,IM=(e,t)=>t?e.map((([e,n])=>[e,n.map((e=>"string"==typeof e?t+e:"object"==typeof e?Object.fromEntries(Object.entries(e).map((([e,n])=>[t+e,n]))):e))])):e,NM=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,i=new Map;const r=(r,o)=>{n.set(r,o),t++,t>e&&(t=0,i=n,n=new Map)};return{get(e){let t=n.get(e);return void 0!==t?t:void 0!==(t=i.get(e))?(r(e,t),t):void 0},set(e,t){n.has(e)?n.set(e,t):r(e,t)}}},W_="!",OM=e=>{const{separator:t,experimentalParseClassName:n}=e,i=1===t.length,r=t[0],o=t.length,s=e=>{const n=[];let s,a=0,l=0;for(let c=0;c<e.length;c++){let u=e[c];if(0===a){if(u===r&&(i||e.slice(c,c+o)===t)){n.push(e.slice(l,c)),l=c+o;continue}if("/"===u){s=c;continue}}"["===u?a++:"]"===u&&a--}const c=0===n.length?e:e.substring(l),u=c.startsWith(W_);return{modifiers:n,hasImportantModifier:u,baseClassName:u?c.substring(1):c,maybePostfixModifierPosition:s&&s>l?s-l:void 0}};return n?e=>n({className:e,parseClassName:s}):s},UM=e=>{if(e.length<=1)return e;const t=[];let n=[];return e.forEach((e=>{"["===e[0]?(t.push(...n.sort(),e),n=[]):n.push(e)})),t.push(...n.sort()),t},FM=e=>({cache:NM(e.cacheSize),parseClassName:OM(e),...PM(e)}),BM=/\s+/,kM=(e,t)=>{const{parseClassName:n,getClassGroupId:i,getConflictingClassGroupIds:r}=t,o=[],s=e.trim().split(BM);let a="";for(let e=s.length-1;e>=0;e-=1){const t=s[e],{modifiers:l,hasImportantModifier:c,baseClassName:u,maybePostfixModifierPosition:d}=n(t);let h=!!d,p=i(h?u.substring(0,d):u);if(!p){if(!h){a=t+(a.length>0?" "+a:a);continue}if(p=i(u),!p){a=t+(a.length>0?" "+a:a);continue}h=!1}const f=UM(l).join(":"),m=c?f+W_:f,g=m+p;if(o.includes(g))continue;o.push(g);const v=r(p,h);for(let e=0;e<v.length;++e){const t=v[e];o.push(m+t)}a=t+(a.length>0?" "+a:a)}return a};function zM(){let e,t,n=0,i="";for(;n<arguments.length;)(e=arguments[n++])&&(t=X_(e))&&(i&&(i+=" "),i+=t);return i}const X_=e=>{if("string"==typeof e)return e;let t,n="";for(let i=0;i<e.length;i++)e[i]&&(t=X_(e[i]))&&(n&&(n+=" "),n+=t);return n};function mg(e,...t){let n,i,r,o=function(a){const l=t.reduce(((e,t)=>t(e)),e());return n=FM(l),i=n.cache.get,r=n.cache.set,o=s,s(a)};function s(e){const t=i(e);if(t)return t;
vendor: 4,371 bytes, line 1
1const o=kM(e,n);return r(e,o),o}return function(){return o(zM.apply(null,arguments))}}const on=e=>{const t=t=>t[e]||[];return t.isThemeGetter=!0,t},q_=/^\[(?:([a-z-]+):)?(.+)\]$/i,HM=/^\d+\/\d+$/,VM=new Set(["px","full","screen"]),$M=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,GM=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,WM=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,XM=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,qM=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Sr=e=>Xs(e)||VM.has(e)||HM.test(e),Yr=e=>Pa(e,"length",tT),Xs=e=>!!e&&!Number.isNaN(Number(e)),Of=e=>Pa(e,"number",Xs),ka=e=>!!e&&Number.isInteger(Number(e)),YM=e=>e.endsWith("%")&&Xs(e.slice(0,-1)),At=e=>q_.test(e),jr=e=>$M.test(e),jM=new Set(["length","size","percentage"]),KM=e=>Pa(e,jM,Y_),QM=e=>Pa(e,"position",Y_),ZM=new Set(["image","url"]),JM=e=>Pa(e,ZM,iT),eT=e=>Pa(e,"",nT),za=()=>!0,Pa=(e,t,n)=>{const i=q_.exec(e);return!!i&&(i[1]?"string"==typeof t?i[1]===t:t.has(i[1]):n(i[2]))},tT=e=>GM.test(e)&&!WM.test(e),Y_=()=>!1,nT=e=>XM.test(e),iT=e=>qM.test(e),rp=()=>{const e=on("colors"),t=on("spacing"),n=on("blur"),i=on("brightness"),r=on("borderColor"),o=on("borderRadius"),s=on("borderSpacing"),a=on("borderWidth"),l=on("contrast"),c=on("grayscale"),u=on("hueRotate"),d=on("invert"),h=on("gap"),p=on("gradientColorStops"),f=on("gradientColorStopPositions"),m=on("inset"),g=on("margin"),v=on("opacity"),b=on("padding"),y=on("saturate"),_=on("scale"),x=on("sepia"),S=on("skew"),w=on("space"),M=on("translate"),E=()=>["auto",At,t],T=()=>[At,t],C=()=>["",Sr,Yr],R=()=>["auto",Xs,At],A=()=>["","0",At],L=()=>[Xs,At];return{cacheSize:500,separator:":",theme:{colors:[za],spacing:[Sr,Yr],blur:["none","",jr,At],brightness:L(),borderColor:[e],borderRadius:["none","","full",jr,At],borderSpacing:T(),borderWidth:C(),contrast:L(),grayscale:A(),hueRotate:L(),invert:A(),gap:T(),gradientColorStops:[e],gradientColorStopPositions:[YM,Yr],inset:E(),margin:E(),opacity:L(),padding:T(),saturate:L(),scale:L(),sepia:A(),skew:L(),space:T(),translate:T()},classGroups:{aspect:[{aspect:["auto","square","video",At]}],container:["container"],columns:[{columns:[jr]}],"break-after":[{"break-after":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-before":[{"break-before":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top",At]}],overflow:[{overflow:["auto","hidden","clip","visible","scroll"]}],"overflow-x":[{"overflow-x":["auto","hidden","clip","visible","scroll"]}],"overflow-y":[{"overflow-y":["auto","hidden","clip","visible","scroll"]}],overscroll:[{overscroll:["auto","contain","none"]}],"overscroll-x":[{"overscroll-x":["auto","contain","none"]}],"overscroll-y":[{"overscroll-y":["auto","contain","none"]}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[m]}],"inset-x":[{"inset-x":[m]}],"inset-y":[{"inset-y":[m]}],start:[{start:[m]}],end:[{end:[m]}],top:[{top:[m]}],right:[{right:[m]}],bottom:[{bottom:[m]}],left:[{left:[m]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",ka,At]}],basis:[{basis:E()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",At]}],grow:[{grow:A()}],shrink:[{shrink:A()}],order:[{order:["first","last","none",ka,At]}],"grid-cols":[{"grid-cols":[za]}],"col-start-end":[{col:["auto",{span:["full",ka,At]},At]}],"col-start":[{"col-start":R()}
vendor: 4,521 bytes, line 1
1],"col-end":[{"col-end":R()}],"grid-rows":[{"grid-rows":[za]}],"row-start-end":[{row:["auto",{span:[ka,At]},At]}],"row-start":[{"row-start":R()}],"row-end":[{"row-end":R()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",At]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",At]}],gap:[{gap:[h]}],"gap-x":[{"gap-x":[h]}],"gap-y":[{"gap-y":[h]}],"justify-content":[{justify:["normal","start","end","center","between","around","evenly","stretch"]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal","start","end","center","between","around","evenly","stretch","baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":["start","end","center","between","around","evenly","stretch","baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[b]}],px:[{px:[b]}],py:[{py:[b]}],ps:[{ps:[b]}],pe:[{pe:[b]}],pt:[{pt:[b]}],pr:[{pr:[b]}],pb:[{pb:[b]}],pl:[{pl:[b]}],m:[{m:[g]}],mx:[{mx:[g]}],my:[{my:[g]}],ms:[{ms:[g]}],me:[{me:[g]}],mt:[{mt:[g]}],mr:[{mr:[g]}],mb:[{mb:[g]}],ml:[{ml:[g]}],"space-x":[{"space-x":[w]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[w]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",At,t]}],"min-w":[{"min-w":[At,t,"min","max","fit"]}],"max-w":[{"max-w":[At,t,"none","full","min","max","fit","prose",{screen:[jr]},jr]}],h:[{h:[At,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[At,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[At,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[At,t,"auto","min","max","fit"]}],"font-size":[{text:["base",jr,Yr]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Of]}],"font-family":[{font:[za]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",At]}],"line-clamp":[{"line-clamp":["none",Xs,Of]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Sr,At]}],"list-image":[{"list-image":["none",At]}],"list-style-type":[{list:["none","disc","decimal",At]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[v]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[v]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:["solid","dashed","dotted","double","none","wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Sr,Yr]}],"underline-offset":[{"underline-offset":["auto",Sr,At]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:T()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",At]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",At]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[v]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top",QM]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",KM]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},JM]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[f]}
vendor: 4,377 bytes, line 1
1],"gradient-via-pos":[{via:[f]}],"gradient-to-pos":[{to:[f]}],"gradient-from":[{from:[p]}],"gradient-via":[{via:[p]}],"gradient-to":[{to:[p]}],rounded:[{rounded:[o]}],"rounded-s":[{"rounded-s":[o]}],"rounded-e":[{"rounded-e":[o]}],"rounded-t":[{"rounded-t":[o]}],"rounded-r":[{"rounded-r":[o]}],"rounded-b":[{"rounded-b":[o]}],"rounded-l":[{"rounded-l":[o]}],"rounded-ss":[{"rounded-ss":[o]}],"rounded-se":[{"rounded-se":[o]}],"rounded-ee":[{"rounded-ee":[o]}],"rounded-es":[{"rounded-es":[o]}],"rounded-tl":[{"rounded-tl":[o]}],"rounded-tr":[{"rounded-tr":[o]}],"rounded-br":[{"rounded-br":[o]}],"rounded-bl":[{"rounded-bl":[o]}],"border-w":[{border:[a]}],"border-w-x":[{"border-x":[a]}],"border-w-y":[{"border-y":[a]}],"border-w-s":[{"border-s":[a]}],"border-w-e":[{"border-e":[a]}],"border-w-t":[{"border-t":[a]}],"border-w-r":[{"border-r":[a]}],"border-w-b":[{"border-b":[a]}],"border-w-l":[{"border-l":[a]}],"border-opacity":[{"border-opacity":[v]}],"border-style":[{border:["solid","dashed","dotted","double","none","hidden"]}],"divide-x":[{"divide-x":[a]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[a]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[v]}],"divide-style":[{divide:["solid","dashed","dotted","double","none"]}],"border-color":[{border:[r]}],"border-color-x":[{"border-x":[r]}],"border-color-y":[{"border-y":[r]}],"border-color-s":[{"border-s":[r]}],"border-color-e":[{"border-e":[r]}],"border-color-t":[{"border-t":[r]}],"border-color-r":[{"border-r":[r]}],"border-color-b":[{"border-b":[r]}],"border-color-l":[{"border-l":[r]}],"divide-color":[{divide:[r]}],"outline-style":[{outline:["","solid","dashed","dotted","double","none"]}],"outline-offset":[{"outline-offset":[Sr,At]}],"outline-w":[{outline:[Sr,Yr]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:C()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[v]}],"ring-offset-w":[{"ring-offset":[Sr,Yr]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",jr,eT]}],"shadow-color":[{shadow:[za]}],opacity:[{opacity:[v]}],"mix-blend":[{"mix-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"]}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[i]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",jr,At]}],grayscale:[{grayscale:[c]}],"hue-rotate":[{"hue-rotate":[u]}],invert:[{invert:[d]}],saturate:[{saturate:[y]}],sepia:[{sepia:[x]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[i]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[c]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[u]}],"backdrop-invert":[{"backdrop-invert":[d]}],"backdrop-opacity":[{"backdrop-opacity":[v]}],"backdrop-saturate":[{"backdrop-saturate":[y]}],"backdrop-sepia":[{"backdrop-sepia":[x]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[s]}],"border-spacing-x":[{"border-spacing-x":[s]}],"border-spacing-y":[{"border-spacing-y":[s]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",At]}],duration:[{duration:L()}],ease:[{ease:["linear","in","out","in-out",At]}],delay:[{delay:L()}],animate:[{animate:["none","spin","ping","pulse","bounce",At]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[_]}],"scale-x":[{"scale-x":[_]}],"scale-y":[{"scale-y":[_]}],rotate:[{rotate:[ka,At]}],"translate-x":[{"translate-x":[M]}],"translate-y":[{"translate-y":[M]}],"skew-x":[{"skew-x":[S]}],"skew-y":[{"skew-y":[S]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",At]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","
1none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",At]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":T()}],"scroll-mx":[{"scroll-mx":T()}],"scroll-my":[{"scroll-my":T()}],"scroll-ms":[{"scroll-ms":T()}],"scroll-me":[{"scroll-me":T()}],"scroll-mt":[{"scroll-mt":T()}],"scroll-mr":[{"scroll-mr":T()}],"scroll-mb":[{"scroll-mb":T()}],"scroll-ml":[{"scroll-ml":T()}],"scroll-p":[{"scroll-p":T()}],"scroll-px":[{"scroll-px":T()}],"scroll-py":[{"scroll-py":T()}],"scroll-ps":[{"scroll-ps":T()}],"scroll-pe":[{"scroll-pe":T()}],"scroll-pt":[{"scroll-pt":T()}],"scroll-pr":[{"scroll-pr":T()}],"scroll-pb":[{"scroll-pb":T()}],"scroll-pl":[{"scroll-pl":T()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",At]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Sr,Yr,Of]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},rT=(e,{cacheSize:t,prefix:n,separator:i,experimentalParseClassName:r,extend:o={},override:s={}})=>{Za(e,"cacheSize",t),Za(e,"prefix",n),Za(e,"separator",i),Za(e,"experimentalParseClassName",r);for(const t in s)oT(e[t],s[t]);for(const t in o)sT(e[t],o[t]);return e},Za=(e,t,n)=>{void 0!==n&&(e[t]=n)},oT=(e,t)=>
1{if(t)for(const n in t)Za(e,n,t[n])},sT=(e,t)=>{if(t)for(const n in t){const i=t[n];void 0!==i&&(e[n]=(e[n]||[]).concat(i))}},aT=(e,...t)=>"function"==typeof e?mg(rp,e,...t):mg((()=>rT(rp(),e)),...t),vg=e=>"boolean"==typeof e?`${e}`:0===e?"0":e,lT=e=>{const t=(...t)=>{var n;return typeof(null==(n=null==e?void 0:e.hooks)?void 0:n.onComplete)<"u"?null==e?void 0:e.hooks.onComplete(Yh(t)):Yh(t)};return{compose:(...e)=>{const n=[...new Set([].concat(...e.map((e=>e.variants))))];return Object.assign((n=>{const i=Object.fromEntries(Object.entries(n||{}).filter((([e])=>!["class","className"].includes(e))));return t(e.map((e=>e(i))),null==n?void 0:n.class,null==n?void 0:n.className)}),{variants:n})},cva:e=>{const{variants:n,defaultVariants:i}=e??{};return Object.assign((r=>{var o;if(null==n)return t(null==e?void 0:e.base,null==r?void 0:r.class,null==r?void 0:r.className);const s=Object.keys(n).map((e=>{const t=null==r?void 0:r[e],o=null==i?void 0:i[e],s=vg(t)||vg(o);return n[e][s]})),a={...i,...r&&Object.entries(r).reduce(((e,[t,n])=>typeof n>"u"?e:{...e,[t]:n}),{})},l=null==(o=null==e?void 0:e.compoundVariants)?void 0:o.reduce(((e,{class:t,className:n,...i})=>Object.entries(i).every((([e,t])=>{const n=a[e];return Array.isArray(t)?t.includes(n):n===t}))?[...e,t,n]:e),[]);return t(null==e?void 0:e.base,s,l,null==r?void 0:r.class,null==r?void 0:r.className)}),{variants:Object.keys(n??{}),config:Object.freeze(e)})},cx:t}},cT=["border-w","bg-opacity","opacity","text-opacity","text-color"],uT=rp(),dT=e=>new RegExp("^(comp|mod|core)").test(e),fT=Object.fromEntries(Object.entries(uT.classGroups).filter((([e,t])=>"object"==typeof t[0]&&cT.some((t=>e.startsWith(t))))).map((([e,t])=>{const n=Object.keys(t[0])[0];return[e,[{[n]:[dT]}]]}))),hT=aT({extend:{classGroups:{...fT}}}),{cva:_t,cx:Sn}=lT({hooks:{onComplete:e=>hT(e)}}),pT={__defaults:["disabled:bg-slate-300 disabled:border-opacity-0 disabled:text-white","before:inset-[calc(-1*var(--vision-comp-button-solid-border-width))] before:border-comp-button-solid before:border-opacity-comp-button-solid before:bg-comp-button-solid-before before:bg-opacity-comp-button-solid-before","before:opacity-comp-button-solid-before","hover:before:opacity-comp-button-solid-hover-before","active:before:opacity-comp-button-solid-active-before","focus-visible:before:opacity-comp-button-solid-focus-before","disabled:before:opacity-0"],default:["border-comp-button-solid border-opacity-comp-button-solid rounded-comp-button-solid","bg-comp-button-solid bg-opacity-comp-button-solid text-comp-button-solid","ring-comp-button-solid","hover:border-comp-button-solid-hover hover:border-opacity-comp-button-solid-hover hover:rounded-comp-button-solid-hover","hover:bg-comp-button-solid-hover hover:bg-opacity-comp-button-solid-hover hover:text-comp-button-solid-hover","active:border-comp-button-solid-active active:border-opacity-comp-button-solid-active active:rounded-comp-button-solid-active","active:bg-comp-button-solid-active active:bg-opacity-comp-button-solid-active active:text-comp-button-solid-active","focus-visible:border-comp-button-solid-focus focus-visible:border-opacity-comp-button-solid-focus focus-visible:rounded-comp-button-solid-focus","focus-visible:bg-comp-button-solid-focus focus-visible:bg-opacity-comp-button-solid-focus focus-visible:text-comp-button-solid-focus","[--focus-outline-color:rgb(var(--vision-comp-button-solid-outline-color)/0.75)]"],1:["border-comp-button-solid-1 border-opacity-comp-button-solid-1 rounded-comp-button-solid-1","bg-comp-button-solid-1 bg-opacity-comp-button-solid-1 text-comp-button-solid-1","ring-comp-button-solid-1","hover:border-comp-button-solid-1-hover hover:border-opacity-comp-button-solid-1-hover hover:rounded-comp-button-solid-1-hover","hover:bg-comp-button-solid-1-hover hover:bg-opacity-comp-button-solid-1-hover hover:text-comp-button-solid-1-hover","active:border-comp-button-solid-1-active active:border-opacity-comp-button-solid-1-active active:rounded-comp-button-solid-1-active","active:bg-comp-button-solid-1-active active:bg-opacity-comp-button-solid-1-active active:text-comp-button-solid-1-active","focus-visible:border-comp-button-solid-1-focus focus-visible:border-opacity-comp-button-solid-1-focus focus-visible:rounded-comp-button-solid-1-focus","focus-visible:bg-comp-button-solid-1-focus focus-visible:bg-opacity-comp-button-solid-1-focus focus-visible:text-comp-button-solid-1-focus","[--focus-outline-color:rgb(var(--vision-comp-button-solid-1-outline-color)/0.75)]"],2:["border-comp-button-solid-2 border-opacity-comp-button-solid-2 rounded-comp-button-solid-2","bg-comp-button-solid-2 bg-opacity-comp-button-solid-2 text-comp-button-solid-2","ring-comp-button-solid-2","hover:border-comp-button-solid-2-hover hover:border-opacity-comp-button-solid-2-hover hover:rounded-comp-button-solid-2-hover","hover:bg-comp-button-solid-2-hover hover:bg-opacity-comp-button-solid-2-hover hover:text-comp-button-solid-2-hover","active:border-comp-button-solid-2-active active:border-opacity-comp-button-solid-2-active active:rounded-comp-button-solid-2-active","active:bg-comp-button-solid-2-active active:bg-opacity-comp-button-solid-2-active active:text-comp-button-solid-2-active","focus-visible:border-comp-button-solid-2-focus focus-visible:border-opacity-comp-button-solid-2-focus focus-visible:rounded-comp-button-solid-2-focus","focus-visible:bg-comp-button-solid-2-focus focus-visible:bg-opacity-comp-button-solid-2-focus focus-visible:text-comp-button-solid-2-focus","[--focus-outline-color:rgb(var(--vision-comp-button-solid-2-outline-color)/0.75)]"],3:["border-comp-button-solid-3 border-opacity-comp-button-solid-3 rounded-comp-button-solid-3","bg-comp-button-solid-3 bg-opacity-comp-button-solid-3 text-comp-button-solid-3","ring-comp-button-solid-3","hover:border-comp-button-solid-3-hover hover:border-opacity-comp-button-solid-3-hover hover:rounded-comp-button-solid-3-hover","hover:bg-comp-button-solid-3-hover hover:bg-opacity-comp-button-solid-3-hover hover:text-comp-button-solid-3-hover","active:border-comp-button-solid-3-active active:border-opacity-comp-button-solid-3-active active:rounded-comp-button-solid-3-active","active:bg-comp-button-solid-3-active active:bg-opacity-comp-button-solid-3-active active:text-comp-button-solid-3-active","focus-visible:border-comp-button-solid-3-focus focus-visible:border-opacity-comp-button-solid-3-focus focus-visible:rounded-comp-button-solid-3-focus","focus-visible:bg-comp-button-solid-3-focus focus-visible:bg-opacity-comp-button-solid-3-focus focus-visible:text-comp-button-solid-3-focus","[--focus-outline-color:rgb(var(--vision-comp-button-solid-3-outline-color)/0.75)]"],error:["border-comp-button-solid-error border-opacity-comp-button-solid-error roun
1ded-comp-button-solid-error","bg-comp-button-solid-error bg-opacity-comp-button-solid-error text-comp-button-solid-error","ring-comp-button-solid-error","hover:border-comp-button-solid-error-hover hover:border-opacity-comp-button-solid-error-hover hover:rounded-comp-button-solid-error-hover","hover:bg-comp-button-solid-error-hover hover:bg-opacity-comp-button-solid-error-hover hover:text-comp-button-solid-error-hover","active:border-comp-button-solid-error-active active:border-opacity-comp-button-solid-error-active active:rounded-comp-button-solid-error-active","active:bg-comp-button-solid-error-active active:bg-opacity-comp-button-solid-error-active active:text-comp-button-solid-error-active","focus-visible:border-comp-button-solid-error-focus focus-visible:border-opacity-comp-button-solid-error-focus focus-visible:rounded-comp-button-solid-error-focus","focus-visible:bg-comp-button-solid-error-focus focus-visible:bg-opacity-comp-button-solid-error-focus focus-visible:text-comp-button-solid-error-focus","[--focus-outline-color:rgb(var(--vision-comp-button-solid-error-outline-color)/0.75)]"],inversed:["border-comp-button-solid-inversed border-opacity-comp-button-solid-inversed rounded-comp-button-solid-inversed","bg-comp-button-solid-inversed bg-opacity-comp-button-solid-inversed text-comp-button-solid-inversed","ring-comp-button-solid-inversed","hover:border-comp-button-solid-inversed-hover hover:border-opacity-comp-button-solid-inversed-hover hover:rounded-comp-button-solid-inversed-hover","hover:bg-comp-button-solid-inversed-hover hover:bg-opacity-comp-button-solid-inversed-hover hover:text-comp-button-solid-inversed-hover","active:border-comp-button-solid-inversed-active active:border-opacity-comp-button-solid-inversed-active active:rounded-comp-button-solid-inversed-active","active:bg-comp-button-solid-inversed-active active:bg-opacity-comp-button-solid-inversed-active active:text-comp-button-solid-inversed-active","focus-visible:border-comp-button-solid-inversed-focus focus-visible:border-opacity-comp-button-solid-inversed-focus focus-visible:rounded-comp-button-solid-inversed-focus","focus-visible:bg-comp-button-solid-inversed-focus focus-visible:bg-opacity-comp-button-solid-inversed-focus focus-visible:text-comp-button-solid-inversed-focus","[--focus-outline-color:rgb(var(--vision-comp-button-solid-inversed-outline-color)/0.75)]"]},mT={__defaults:["disabled:bg-slate-300 disabled:border-opacity-0 disabled:text-white","before:inset-[calc(-1*var(--vision-comp-button-soft-border-width))] before:border-comp-button-soft before:border-opacity-comp-button-soft before:bg-comp-button-soft-before before:bg-opacity-comp-button-soft-before","before:opacity-comp-button-soft-before","hover:before:opacity-comp-button-soft-hover-before","active:before:opacity-comp-button-soft-active-before","focus-visible:before:opacity-comp-button-soft-focus-before","disabled:before:opacity-0"],default:["border-comp-button-soft border-opacity-comp-button-soft rounded-comp-button-soft","bg-comp-button-soft bg-opacity-comp-button-soft text-comp-button-soft","ring-comp-button-soft","hover:border-comp-button-soft-hover hover:border-opacity-comp-button-soft-hover hover:rounded-comp-button-soft-hover","hover:bg-comp-button-soft-hover hover:bg-opacity-comp-button-soft-hover hover:text-comp-button-soft-hover","active:border-comp-button-soft-active active:border-opacity-comp-button-soft-active active:rounded-comp-button-soft-active","active:bg-comp-button-soft-active active:bg-opacity-comp-button-soft-active active:text-comp-button-soft-active","focus-visible:border-comp-button-soft-focus focus-visible:border-opacity-comp-button-soft-focus focus-visible:rounded-comp-button-soft-focus","focus-visible:bg-comp-button-soft-focus focus-visible:bg-opacity-comp-button-soft-focus focus-visible:text-comp-button-soft-focus","[--focus-outline-color:rgb(var(--vision-comp-button-soft-outline-color)/0.75)]"],1:["border-comp-button-soft-1 border-opacity-comp-button-soft-1 rounded-comp-button-soft-1","bg-comp-button-soft-1 bg-opacity-comp-button-soft-1 text-comp-button-soft-1","ring-comp-button-soft-1","hover:border-comp-button-soft-1-hover hover:border-opacity-comp-button-soft-1-hover hover:rounded-comp-button-soft-1-hover","hover:bg-comp-button-soft-1-hover hover:bg-opacity-comp-button-soft-1-hover hover:text-comp-button-soft-1-hover","active:border-comp-button-soft-1-active active:border-opacity-comp-button-soft-1-active active:rounded-comp-button-soft-1-active","active:bg-comp-button-soft-1-active active:bg-opacity-comp-button-soft-1-active active:text-comp-button-soft-1-active","focus-visible:border-comp-button-soft-1-focus focus-visible:border-opacity-comp-button-soft-1-focus focus-visible:rounded-comp-button-soft-1-focus","focus-visible:bg-comp-button-soft-1-focus focus-visible:bg-opacity-comp-button-soft-1-focus focus-visible:text-comp-button-soft-1-focus","[--focus-outline-color:rgb(var(--vision-comp-button-soft-1-outline-color)/0.75)]"],2:["border-comp-button-soft-2 border-opacity-comp-button-soft-2 rounded-comp-button-soft-2","bg-comp-button-soft-2 bg-opacity-comp-button-soft-2 text-comp-button-soft-2","ring-comp-button-soft-2","hover:border-comp-button-soft-2-hover hover:border-opacity-comp-button-soft-2-hover hover:rounded-comp-button-soft-2-hover","hover:bg-comp-button-soft-2-hover hover:bg-opacity-comp-button-soft-2-hover hover:text-comp-button-soft-2-hover","active:border-comp-button-soft-2-active active:border-opacity-comp-button-soft-2-active active:rounded-comp-button-soft-2-active","active:bg-comp-button-soft-2-active active:bg-opacity-comp-button-soft-2-active active:text-comp-button-soft-2-active","focus-visible:border-comp-button-soft-2-focus focus-visible:border-opacity-comp-button-soft-2-focus focus-visible:rounded-comp-button-soft-2-focus","focus-visible:bg-comp-button-soft-2-focus focus-visible:bg-opacity-comp-button-soft-2-focus focus-visible:text-comp-button-soft-2-focus","[--focus-outline-color:rgb(var(--vision-comp-button-soft-2-outline-color)/0.75)]"],3:["border-comp-button-soft-3 border-opacity-comp-button-soft-3 rounded-comp-button-soft-3","bg-comp-button-soft-3 bg-opacity-comp-button-soft-3 text-comp-button-soft-3","ring-comp-button-soft-3","hover:border-comp-button-soft-3-hover hover:border-opacity-comp-button-soft-3-hover hover:rounded-comp-button-soft-3-hover","hover:bg-comp-button-soft-3-hover hover:bg-opacity-comp-button-soft-3-hover hover:text-comp-button-soft-3-hover","active:border-comp-button-soft-3-active active:border-opacity-comp-button-soft-3-active active:rounded-comp-button-soft-3-active","active:bg-comp-button-soft-3-active active:bg-opacity-comp-button-soft-3-active active:text-comp-button-soft-3-active","focus-visible:border-comp-button-soft-3-focus focus-visible:border-opacity-comp-button-soft-3-focus focus-visible:rounded-comp-button-soft-3-focus","focus-visible:bg-comp-button-soft-3-focus focus-visible:bg-opacity-comp-button-soft-3-focus focus-visible:text-comp-button-soft-3-focus","[--focus-outline-color:rgb(var(--vision-comp-button-soft-3-outline-color)/0.75)]"],error:["border-comp-button-soft-error border-opacity-comp-button-soft-error roun
1ded-comp-button-soft-error","bg-comp-button-soft-error bg-opacity-comp-button-soft-error text-comp-button-soft-error","ring-comp-button-soft-error","hover:border-comp-button-soft-error-hover hover:border-opacity-comp-button-soft-error-hover hover:rounded-comp-button-soft-error-hover","hover:bg-comp-button-soft-error-hover hover:bg-opacity-comp-button-soft-error-hover hover:text-comp-button-soft-error-hover","active:border-comp-button-soft-error-active active:border-opacity-comp-button-soft-error-active active:rounded-comp-button-soft-error-active","active:bg-comp-button-soft-error-active active:bg-opacity-comp-button-soft-error-active active:text-comp-button-soft-error-active","focus-visible:border-comp-button-soft-error-focus focus-visible:border-opacity-comp-button-soft-error-focus focus-visible:rounded-comp-button-soft-error-focus","focus-visible:bg-comp-button-soft-error-focus focus-visible:bg-opacity-comp-button-soft-error-focus focus-visible:text-comp-button-soft-error-focus","[--focus-outline-color:rgb(var(--vision-comp-button-soft-error-outline-color)/0.75)]"],inversed:["border-comp-button-soft-inversed border-opacity-comp-button-soft-inversed rounded-comp-button-soft-inversed","bg-comp-button-soft-inversed bg-opacity-comp-button-soft-inversed text-comp-button-soft-inversed","ring-comp-button-soft-inversed","hover:border-comp-button-soft-inversed-hover hover:border-opacity-comp-button-soft-inversed-hover hover:rounded-comp-button-soft-inversed-hover","hover:bg-comp-button-soft-inversed-hover hover:bg-opacity-comp-button-soft-inversed-hover hover:text-comp-button-soft-inversed-hover","active:border-comp-button-soft-inversed-active active:border-opacity-comp-button-soft-inversed-active active:rounded-comp-button-soft-inversed-active","active:bg-comp-button-soft-inversed-active active:bg-opacity-comp-button-soft-inversed-active active:text-comp-button-soft-inversed-active","focus-visible:border-comp-button-soft-inversed-focus focus-visible:border-opacity-comp-button-soft-inversed-focus focus-visible:rounded-comp-button-soft-inversed-focus","focus-visible:bg-comp-button-soft-inversed-focus focus-visible:bg-opacity-comp-button-soft-inversed-focus focus-visible:text-comp-button-soft-inversed-focus","[--focus-outline-color:rgb(var(--vision-comp-button-soft-inversed-outline-color)/0.75)]"]},vT={__defaults:["disabled:bg-slate-300 disabled:border-opacity-0 disabled:text-white","before:inset-[calc(-1*var(--vision-comp-button-ghost-border-width))] before:border-comp-button-ghost before:border-opacity-comp-button-ghost before:bg-comp-button-ghost-before before:bg-opacity-comp-button-ghost-before","before:opacity-comp-button-ghost-before","hover:before:opacity-comp-button-ghost-hover-before","active:before:opacity-comp-button-ghost-active-before","focus-visible:before:opacity-comp-button-ghost-focus-before","disabled:before:opacity-0"],default:["border-comp-button-ghost border-opacity-comp-button-ghost rounded-comp-button-ghost","bg-comp-button-ghost bg-opacity-comp-button-ghost text-comp-button-ghost","ring-comp-button-ghost","hover:border-comp-button-ghost-hover hover:border-opacity-comp-button-ghost-hover hover:rounded-comp-button-ghost-hover","hover:bg-comp-button-ghost-hover hover:bg-opacity-comp-button-ghost-hover hover:text-comp-button-ghost-hover","active:border-comp-button-ghost-active active:border-opacity-comp-button-ghost-active active:rounded-comp-button-ghost-active","active:bg-comp-button-ghost-active active:bg-opacity-comp-button-ghost-active active:text-comp-button-ghost-active","focus-visible:border-comp-button-ghost-focus focus-visible:border-opacity-comp-button-ghost-focus focus-visible:rounded-comp-button-ghost-focus","focus-visible:bg-comp-button-ghost-focus focus-visible:bg-opacity-comp-button-ghost-focus focus-visible:text-comp-button-ghost-focus","[--focus-outline-color:rgb(var(--vision-comp-button-ghost-outline-color)/0.75)]"],1:["border-comp-button-ghost-1 border-opacity-comp-button-ghost-1 rounded-comp-button-ghost-1","bg-comp-button-ghost-1 bg-opacity-comp-button-ghost-1 text-comp-button-ghost-1","ring-comp-button-ghost-1","hover:border-comp-button-ghost-1-hover hover:border-opacity-comp-button-ghost-1-hover hover:rounded-comp-button-ghost-1-hover","hover:bg-comp-button-ghost-1-hover hover:bg-opacity-comp-button-ghost-1-hover hover:text-comp-button-ghost-1-hover","active:border-comp-button-ghost-1-active active:border-opacity-comp-button-ghost-1-active active:rounded-comp-button-ghost-1-active","active:bg-comp-button-ghost-1-active active:bg-opacity-comp-button-ghost-1-active active:text-comp-button-ghost-1-active","focus-visible:border-comp-button-ghost-1-focus focus-visible:border-opacity-comp-button-ghost-1-focus focus-visible:rounded-comp-button-ghost-1-focus","focus-visible:bg-comp-button-ghost-1-focus focus-visible:bg-opacity-comp-button-ghost-1-focus focus-visible:text-comp-button-ghost-1-focus","[--focus-outline-color:rgb(var(--vision-comp-button-ghost-1-outline-color)/0.75)]"],2:["border-comp-button-ghost-2 border-opacity-comp-button-ghost-2 roun
1ded-comp-button-ghost-2","bg-comp-button-ghost-2 bg-opacity-comp-button-ghost-2 text-comp-button-ghost-2","ring-comp-button-ghost-2","hover:border-comp-button-ghost-2-hover hover:border-opacity-comp-button-ghost-2-hover hover:rounded-comp-button-ghost-2-hover","hover:bg-comp-button-ghost-2-hover hover:bg-opacity-comp-button-ghost-2-hover hover:text-comp-button-ghost-2-hover","active:border-comp-button-ghost-2-active active:border-opacity-comp-button-ghost-2-active active:rounded-comp-button-ghost-2-active","active:bg-comp-button-ghost-2-active active:bg-opacity-comp-button-ghost-2-active active:text-comp-button-ghost-2-active","focus-visible:border-comp-button-ghost-2-focus focus-visible:border-opacity-comp-button-ghost-2-focus focus-visible:rounded-comp-button-ghost-2-focus","focus-visible:bg-comp-button-ghost-2-focus focus-visible:bg-opacity-comp-button-ghost-2-focus focus-visible:text-comp-button-ghost-2-focus","[--focus-outline-color:rgb(var(--vision-comp-button-ghost-2-outline-color)/0.75)]"],3:["border-comp-button-ghost-3 border-opacity-comp-button-ghost-3 rounded-comp-button-ghost-3","bg-comp-button-ghost-3 bg-opacity-comp-button-ghost-3 text-comp-button-ghost-3","ring-comp-button-ghost-3","hover:border-comp-button-ghost-3-hover hover:border-opacity-comp-button-ghost-3-hover hover:rounded-comp-button-ghost-3-hover","hover:bg-comp-button-ghost-3-hover hover:bg-opacity-comp-button-ghost-3-hover hover:text-comp-button-ghost-3-hover","active:border-comp-button-ghost-3-active active:border-opacity-comp-button-ghost-3-active active:rounded-comp-button-ghost-3-active","active:bg-comp-button-ghost-3-active active:bg-opacity-comp-button-ghost-3-active active:text-comp-button-ghost-3-active","focus-visible:border-comp-button-ghost-3-focus focus-visible:border-opacity-comp-button-ghost-3-focus focus-visible:rounded-comp-button-ghost-3-focus","focus-visible:bg-comp-button-ghost-3-focus focus-visible:bg-opacity-comp-button-ghost-3-focus focus-visible:text-comp-button-ghost-3-focus","[--focus-outline-color:rgb(var(--vision-comp-button-ghost-3-outline-color)/0.75)]"],error:["border-comp-button-ghost-error border-opacity-comp-button-ghost-error rounded-comp-button-ghost-error","bg-comp-button-ghost-error bg-opacity-comp-button-ghost-error text-comp-button-ghost-error","ring-comp-button-ghost-error","hover:border-comp-button-ghost-error-hover hover:border-opacity-comp-button-ghost-error-hover hover:rounded-comp-button-ghost-error-hover","hover:bg-comp-button-ghost-error-hover hover:bg-opacity-comp-button-ghost-error-hover hover:text-comp-button-ghost-error-hover","active:border-comp-button-ghost-error-active active:border-opacity-comp-button-ghost-error-active active:rounded-comp-button-ghost-error-active","active:bg-comp-button-ghost-error-active active:bg-opacity-comp-button-ghost-error-active active:text-comp-button-ghost-error-active","focus-visible:border-comp-button-ghost-error-focus focus-visible:border-opacity-comp-button-ghost-error-focus focus-visible:rounded-comp-button-ghost-error-focus","focus-visible:bg-comp-button-ghost-error-focus focus-visible:bg-opacity-comp-button-ghost-error-focus focus-visible:text-comp-button-ghost-error-focus","[--focus-outline-color:rgb(var(--vision-comp-button-ghost-error-outline-color)/0.75)]"],inversed:["border-comp-button-ghost-inversed border-opacity-comp-button-ghost-inversed rounded-comp-button-ghost-inversed","bg-comp-button-ghost-inversed bg-opacity-comp-button-ghost-inversed text-comp-button-ghost-inversed","ring-comp-button-ghost-inversed","hover:border-comp-button-ghost-inversed-hover hover:border-opacity-comp-button-ghost-inversed-hover hover:rounded-comp-button-ghost-inversed-hover","hover:bg-comp-button-ghost-inversed-hover hover:bg-opacity-comp-button-ghost-inversed-hover hover:text-comp-button-ghost-inversed-hover","active:border-comp-button-ghost-inversed-active active:border-opacity-comp-button-ghost-inversed-active active:rounded-comp-button-ghost-inversed-active","active:bg-comp-button-ghost-inversed-active active:bg-opacity-comp-button-ghost-inversed-active active:text-comp-button-ghost-inversed-active","focus-visible:border-comp-button-ghost-inversed-focus focus-visible:border-opacity-comp-button-ghost-inversed-focus focus-visible:rounded-comp-button-ghost-inversed-focus","focus-visible:bg-comp-button-ghost-inversed-focus focus-visible:bg-opacity-comp-button-ghost-inversed-focus focus-visible:text-comp-button-ghost-inversed-focus","[--focus-outline-color:rgb(var(--vision-comp-button-ghost-inversed-outline-color)/0.75)]"]},gT={__defaults:["disabled:bg-slate-300 disabled:border-opacity-0 disabled:text-white","before:inset-[calc(-1*var(--vision-comp-button-outline-border-width))] before:border-comp-button-outline before:border-opacity-comp-button-outline before:bg-comp-button-outline-before before:bg-opacity-comp-button-outline-before","before:opacity-comp-button-outline-before","hover:before:opacity-comp-button-outline-hover-before","active:before:opacity-comp-button-outline-active-before","focus-visible:before:opacity-comp-button-outline-focus-before","disabled:before:opacity-0","hover:ring-2 active:ring-2 focus-visible:ring-2"],default:["border-comp-button-outline border-opacity-comp-button-outline rounded-comp-button-outline","bg-comp-button-outline bg-opacity-comp-button-outline text-comp-button-outline","ring-comp-button-outline","hover:border-comp-button-outline-hover hover:border-opacity-comp-button-outline-hover hover:rounded-comp-button-outline-hover","hover:bg-comp-button-outline-hover hover:bg-opacity-comp-button-outline-hover hover:text-comp-button-outline-hover","active:border-comp-button-outline-active active:border-opacity-comp-button-outline-active active:rounded-comp-button-outline-active","active:bg-comp-button-outline-active active:bg-opacity-comp-button-outline-active active:text-comp-button-outline-active","focus-visible:border-comp-button-outline-focus focus-visible:border-opacity-comp-button-outline-focus focus-visible:rounded-comp-button-outline-focus","focus-visible:bg-comp-button-outline-focus focus-visible:bg-opacity-comp-button-outline-focus focus-visible:text-comp-button-outline-focus","[--focus-outline-color:rgb(var(--vision-comp-button-outline-outline-color)/0.75)]"],1:["border-comp-button-outline-1 border-opacity-comp-button-outline-1 rounded-comp-button-outline-1","bg-comp-button-outline-1 bg-opacity-comp-button-outline-1 text-comp-button-outline-1","ring-comp-button-outline-1","hover:border-comp-button-outline-1-hover hover:border-opacity-comp-button-outline-1-hover hover:rounded-comp-button-outline-1-hover","hover:bg-comp-button-outline-1-hover hover:bg-opacity-comp-button-outline-1-hover hover:text-comp-button-outline-1-hover","active:border-comp-button-outline-1-active active:border-opacity-comp-button-outline-1-active active:rounded-comp-button-outline-1-active","active:bg-comp-button-outline-1-active active:bg-opacity-comp-button-outline-1-active active:text-comp-button-outline-1-active","focus-visible:border-comp-button-outline-1-focus focus-visible:border-opacity-comp-button-outline-1-focus focus-visible:rounded-comp-button-outline-1-focus","focus-visible:bg-comp-button-outline-1-focus focus-visible:bg-opacity-comp-button-outline-1-focus focus-visible:text-comp-button-outline-1-focus","[--focus-outline-color:rgb(var(--vision-comp-button-outline-1-outline-color)/0.75)]"],2:["border-comp-button-outline-2 border-opacity-comp-button-outline-2 rounded-comp-button-outline-2","bg-comp-button-outline-2 bg-opacity-comp-button-outline-2 text-comp-button-outline-2","ring-comp-button-outline-2","hover:border-comp-button-outline-2-hover hover:border-opacity-comp-button-outline-2-hover hover:rounded-comp-button-outline-2-hover","hover:bg-comp-button-outline-2-hover hover:bg-opacity-comp-button-outline-2-hover hover:text-comp-button-outline-2-hover","active:border-comp-button-outline-2-active active:border-opacity-comp-button-outline-2-active active:rounded-comp-button-outline-2-active","active:bg-comp-button-outline-2-active active:bg-opacity-comp-button-outline-2-active active:text-comp-button-outline-2-active","focus-visible:border-comp-button-outline-2-focus focus-visible:border-opacity-comp-button-outline-2-focus focus-visible:rounded-comp-button-outline-2-focus","focus-visible:bg-comp-button-outline-2-focus focus-visible:bg-opacity-comp-button-outline-2-focus focus-visible:text-comp-button-outline-2-focus","[--focus-outline-color:rgb(var(--vision-comp-button-outline-2-outline-color)/0.75)]"],3:["border-comp-button-outline-3 border-opacity-comp-button-outline-3 rounded-comp-button-outline-3","bg-comp-button-outline-3 bg-opacity-comp-button-outline-3 text-comp-button-outline-3","ring-comp-button-outline-3","hover:border-comp-button-outline-3-hover hover:border-opacity-comp-button-outline-3-hover hover:rounded-comp-button-outline-3-hover","hover:bg-comp-button-outline-3-hover hover:bg-opacity-comp-button-outline-3-hover hover:text-comp-button-outline-3-hover","active:border-comp-button-outline-3-active active:border-opacity-comp-button-outline-3-active active:rounded-comp-button-outline-3-active","active:bg-comp-button-outline-3-active active:bg-opacity-comp-button-outline-3-active active:text-comp-button-outline-3-active","focus-visible:border-comp-button-outline-3-focus focus-visible:border-opacity-comp-button-outline-3-focus focus-visible:rounded-comp-button-outline-3-focus","focus-visible:bg-comp-button-outline-3-focus focus-visible:bg-opacity-comp-button-outline-3-focus focus-visible:text-comp-button-outline-3-focus","[--focus-outline-color:rgb(var(--vision-comp-button-outline-3-outline-color)/0.75)]"],error:["border-comp-button-outline-error border-opacity-comp-button-outline-error roun
1ded-comp-button-outline-error","bg-comp-button-outline-error bg-opacity-comp-button-outline-error text-comp-button-outline-error","ring-comp-button-outline-error","hover:border-comp-button-outline-error-hover hover:border-opacity-comp-button-outline-error-hover hover:rounded-comp-button-outline-error-hover","hover:bg-comp-button-outline-error-hover hover:bg-opacity-comp-button-outline-error-hover hover:text-comp-button-outline-error-hover","active:border-comp-button-outline-error-active active:border-opacity-comp-button-outline-error-active active:rounded-comp-button-outline-error-active","active:bg-comp-button-outline-error-active active:bg-opacity-comp-button-outline-error-active active:text-comp-button-outline-error-active","focus-visible:border-comp-button-outline-error-focus focus-visible:border-opacity-comp-button-outline-error-focus focus-visible:rounded-comp-button-outline-error-focus","focus-visible:bg-comp-button-outline-error-focus focus-visible:bg-opacity-comp-button-outline-error-focus focus-visible:text-comp-button-outline-error-focus","[--focus-outline-color:rgb(var(--vision-comp-button-outline-error-outline-color)/0.75)]"],inversed:["border-comp-button-outline-inversed border-opacity-comp-button-outline-inversed rounded-comp-button-outline-inversed","bg-comp-button-outline-inversed bg-opacity-comp-button-outline-inversed text-comp-button-outline-inversed","ring-comp-button-outline-inversed","hover:border-comp-button-outline-inversed-hover hover:border-opacity-comp-button-outline-inversed-hover hover:rounded-comp-button-outline-inversed-hover","hover:bg-comp-button-outline-inversed-hover hover:bg-opacity-comp-button-outline-inversed-hover hover:text-comp-button-outline-inversed-hover","active:border-comp-button-outline-inversed-active active:border-opacity-comp-button-outline-inversed-active active:rounded-comp-button-outline-inversed-active","active:bg-comp-button-outline-inversed-active active:bg-opacity-comp-button-outline-inversed-active active:text-comp-button-outline-inversed-active","focus-visible:border-comp-button-outline-inversed-focus focus-visible:border-opacity-comp-button-outline-inversed-focus focus-visible:rounded-comp-button-outline-inversed-focus","focus-visible:bg-comp-button-outline-inversed-focus focus-visible:bg-opacity-comp-button-outline-inversed-focus focus-visible:text-comp-button-outline-inversed-focus","[--focus-outline-color:rgb(var(--vision-comp-button-outline-inversed-outline-color)/0.75)]"]},bT={__defaults:["disabled:bg-transparent disabled:border-opacity-0 disabled:text-slate-400","before:inset-[calc(-1*var(--vision-comp-button-link-border-width))] before:border-comp-button-link before:border-opacity-comp-button-link before:bg-comp-button-link-before before:bg-opacity-comp-button-link-before","before:opacity-comp-button-link-before","hover:before:opacity-comp-button-link-hover-before","active:before:opacity-comp-button-link-active-before","focus-visible:before:opacity-comp-button-link-focus-before","disabled:before:opacity-0"],default:["border-comp-button-link border-opacity-comp-button-link rounded-comp-button-link","bg-comp-button-link bg-opacity-comp-button-link text-comp-button-link","ring-comp-button-link","hover:border-comp-button-link-hover hover:border-opacity-comp-button-link-hover hover:rounded-comp-button-link-hover","hover:bg-comp-button-link-hover hover:bg-opacity-comp-button-link-hover hover:text-comp-button-link-hover","active:border-comp-button-link-active active:border-opacity-comp-button-link-active active:rounded-comp-button-link-active","active:bg-comp-button-link-active active:bg-opacity-comp-button-link-active active:text-comp-button-link-active","focus-visible:border-comp-button-link-focus focus-visible:border-opacity-comp-button-link-focus focus-visible:rounded-comp-button-link-focus","focus-visible:bg-comp-button-link-focus focus-visible:bg-opacity-comp-button-link-focus focus-visible:text-comp-button-link-focus","[--focus-outline-color:rgb(var(--vision-comp-button-link-outline-color)/0.75)]"],1:["border-comp-button-link-1 border-opacity-comp-button-link-1 rounded-comp-button-link-1","bg-comp-button-link-1 bg-opacity-comp-button-link-1 text-comp-button-link-1","ring-comp-button-link-1","hover:border-comp-button-link-1-hover hover:border-opacity-comp-button-link-1-hover hover:rounded-comp-button-link-1-hover","hover:bg-comp-button-link-1-hover hover:bg-opacity-comp-button-link-1-hover hover:text-comp-button-link-1-hover","active:border-comp-button-link-1-active active:border-opacity-comp-button-link-1-active active:rounded-comp-button-link-1-active","active:bg-comp-button-link-1-active active:bg-opacity-comp-button-link-1-active active:text-comp-button-link-1-active","focus-visible:border-comp-button-link-1-focus focus-visible:border-opacity-comp-button-link-1-focus focus-visible:rounded-comp-button-link-1-focus","focus-visible:bg-comp-button-link-1-focus focus-visible:bg-opacity-comp-button-link-1-focus focus-visible:text-comp-button-link-1-focus","[--focus-outline-color:rgb(var(--vision-comp-button-link-1-outline-color)/0.75)]"],2:["border-comp-button-link-2 border-opacity-comp-button-link-2 rounded-comp-button-link-2","bg-comp-button-link-2 bg-opacity-comp-button-link-2 text-comp-button-link-2","ring-comp-button-link-2","hover:border-comp-button-link-2-hover hover:border-opacity-comp-button-link-2-hover hover:rounded-comp-button-link-2-hover","hover:bg-comp-button-link-2-hover hover:bg-opacity-comp-button-link-2-hover hover:text-comp-button-link-2-hover","active:border-comp-button-link-2-active active:border-opacity-comp-button-link-2-active active:rounded-comp-button-link-2-active","active:bg-comp-button-link-2-active active:bg-opacity-comp-button-link-2-active active:text-comp-button-link-2-active","focus-visible:border-comp-button-link-2-focus focus-visible:border-opacity-comp-button-link-2-focus focus-visible:rounded-comp-button-link-2-focus","focus-visible:bg-comp-button-link-2-focus focus-visible:bg-opacity-comp-button-link-2-focus focus-visible:text-comp-button-link-2-focus","[--focus-outline-color:rgb(var(--vision-comp-button-link-2-outline-color)/0.75)]"],3:["border-comp-button-link-3 border-opacity-comp-button-link-3 rounded-comp-button-link-3","bg-comp-button-link-3 bg-opacity-comp-button-link-3 text-comp-button-link-3","ring-comp-button-link-3","hover:border-comp-button-link-3-hover hover:border-opacity-comp-button-link-3-hover hover:rounded-comp-button-link-3-hover","hover:bg-comp-button-link-3-hover hover:bg-opacity-comp-button-link-3-hover hover:text-comp-button-link-3-hover","active:border-comp-button-link-3-active active:border-opacity-comp-button-link-3-active active:rounded-comp-button-link-3-active","active:bg-comp-button-link-3-active active:bg-opacity-comp-button-link-3-active active:text-comp-button-link-3-active","focus-visible:border-comp-button-link-3-focus focus-visible:border-opacity-comp-button-link-3-focus focus-visible:rounded-comp-button-link-3-focus","focus-visible:bg-comp-button-link-3-focus focus-visible:bg-opacity-comp-button-link-3-focus focus-visible:text-comp-button-link-3-focus","[--focus-outline-color:rgb(var(--vision-comp-button-link-3-outline-color)/0.75)]"],error:["border-comp-button-link-error border-opacity-comp-button-link-error roun
1ded-comp-button-link-error","bg-comp-button-link-error bg-opacity-comp-button-link-error text-comp-button-link-error","ring-comp-button-link-error","hover:border-comp-button-link-error-hover hover:border-opacity-comp-button-link-error-hover hover:rounded-comp-button-link-error-hover","hover:bg-comp-button-link-error-hover hover:bg-opacity-comp-button-link-error-hover hover:text-comp-button-link-error-hover","active:border-comp-button-link-error-active active:border-opacity-comp-button-link-error-active active:rounded-comp-button-link-error-active","active:bg-comp-button-link-error-active active:bg-opacity-comp-button-link-error-active active:text-comp-button-link-error-active","focus-visible:border-comp-button-link-error-focus focus-visible:border-opacity-comp-button-link-error-focus focus-visible:rounded-comp-button-link-error-focus","focus-visible:bg-comp-button-link-error-focus focus-visible:bg-opacity-comp-button-link-error-focus focus-visible:text-comp-button-link-error-focus","[--focus-outline-color:rgb(var(--vision-comp-button-link-error-outline-color)/0.75)]"],inversed:["border-comp-button-link-inversed border-opacity-comp-button-link-inversed rounded-comp-button-link-inversed","bg-comp-button-link-inversed bg-opacity-comp-button-link-inversed text-comp-button-link-inversed","ring-comp-button-link-inversed","hover:border-comp-button-link-inversed-hover hover:border-opacity-comp-button-link-inversed-hover hover:rounded-comp-button-link-inversed-hover","hover:bg-comp-button-link-inversed-hover hover:bg-opacity-comp-button-link-inversed-hover hover:text-comp-button-link-inversed-hover","active:border-comp-button-link-inversed-active active:border-opacity-comp-button-link-inversed-active active:rounded-comp-button-link-inversed-active","active:bg-comp-button-link-inversed-active active:bg-opacity-comp-button-link-inversed-active active:text-comp-button-link-inversed-active","focus-visible:border-comp-button-link-inversed-focus focus-visible:border-opacity-comp-button-link-inversed-focus focus-visible:rounded-comp-button-link-inversed-focus","focus-visible:bg-comp-button-link-inversed-focus focus-visible:bg-opacity-comp-button-link-inversed-focus focus-visible:text-comp-button-link-inversed-focus","[--focus-outline-color:rgb(var(--vision-comp-button-link-inversed-outline-color)/0.75)]"]},_T={solid:"soft",soft:"solid",ghost:"soft",outline:"solid",link:"soft"},qs={solid:pT,soft:mT,ghost:vT,outline:gT,link:bT},yT=Object.keys(qs)[0],xT=Object.keys(qs[yT]),j_=Object.fromEntries(xT.map((e=>[e,""]))),ST=(e="__defaults")=>{const t=[];return Object.keys(j_).filter((t=>t!==e)).forEach((n=>{Object.keys(qs).forEach((i=>{t.push({override:[!1,"false"],family:i,variant:n,class:qs[i][n].concat(qs[i][e])})}))})),t},ET=Object.fromEntries(Object.keys(qs).map((e=>[e,""]))),Uf=_t({base:["appearance-none inline-block not-prose bg-origin-border","text-pretty text-base text-center align-middle antialiased","transition-all duration-comp-button motion-reduce:transition-none","ring-inset ring-current ring-0","relative outline-none active:z-10 focus:z-10 focus-visible:z-10","disabled:cursor-default disabled:ring-0","focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-[--focus-outline-color]","justify-center [:where(&_svg:not(.ov-svg))]:size-[1.25em] [:where(&_svg:not(.ov-svg))]:shrink-0","[:where(&)_svg:not(.ov-svg):where(:not(&>svg))]:inline-block [:where(&)_svg:not(.ov-svg):where(:not(&>svg))]:align-[-0.125rem]","z-[5] before:bg-origin-border before:transition-all before:duration-comp-button before:motion-reduce:transition-none before:absolute before:inset-0 before:rounded-[inherit] before:-z-[5] before:opacity-0 before:pointer-events-none"],variants:{family:ET,size:{xs:"text-xs",sm:"text-sm",md:"text-base",lg:"text-lg"},variant:j_,icon:{false:'inline-flex gap-2 [:where(&>svg:not([class*="self-"]))]:translate-y-[calc(0.5lh-0.625em)]',true:"aspect-square inline-grid place-items-center [:where(&_svg:not(.ov-svg))]:[grid-area:1/1]"},pill:{false:"",true:"rounded-full hover:rounded-full active:rounded-full focus-visible:rounded-full"},boxed:{false:"",true:"rounded-none hover:rounded-none active:rounded-none focus-visible:rounded-none"},justified:{false:"",true:"w-full"},enabledFocusState:{false:"",true:"focus:outline focus:outline-2 focus:outline-offset-2 focus:outline-[--focus-outline-color]"},inset:{false:"",true:"focus-visible:outline-2 focus-visible:outline-dotted focus-visible:-outline-offset-4 focus-visible:outline-current"},nowrap:{false:"",true:"text-nowrap whitespace-nowrap"},collapseInline:{start:"-ms-[var(--inline-x-spacing)]",end:"-me-[var(--inline-x-spacing)]",both:"-mx-[var(--inline-x-spacing)]"},collapseBlock:{start:"!pt-0",end:"!pb-0",both:"!py-0"},state:{enabled:"",default:"pseudo-default",disabled:"pseudo-disabled",active:"pseudo-active",hover:"pseudo-hover",focu
1s:"pseudo-focus",focusVisible:"pseudo-focus-visible"},override:{false:"",true:""},autobox:{false:"",true:""}},compoundVariants:[...ST(),{enabledFocusState:[!0,"true"],inset:[!0,"true"],class:"focus:outline-2 focus:outline-dotted focus:-outline-offset-4 focus:outline-current"},{family:"outline",inset:[!0,"true"],class:"focus-visible:-outline-offset-[6px]"},{family:"outline",enabledFocusState:[!0,"true"],inset:[!0,"true"],class:"focus:-outline-offset-[6px]"},{icon:[!1,"false"],size:"xs",class:"px-2.5 py-0.5 [--inline-x-spacing:theme(spacing[2.5])]"},{icon:[!1,"false"],size:"sm",class:"px-4 py-1 [--inline-x-spacing:theme(spacing[4])]"},{icon:[!1,"false"],size:"md",class:"px-5 py-2 [--inline-x-spacing:theme(spacing[5])]"},{icon:[!1,"false"],size:"lg",class:"px-8 py-4 [--inline-x-spacing:theme(spacing[8])]"},{icon:[!0,"true"],size:"xs",class:"w-[1.375rem] [--inline-x-spacing:0.21875rem]"},{icon:[!0,"true"],size:"sm",class:"w-[1.875rem] [--inline-x-spacing:0.390625rem]"},{icon:[!0,"true"],size:"md",class:"w-[2.625rem] [--inline-x-spacing:0.6875rem]"},{icon:[!0,"true"],size:"lg",class:"w-[3.875rem] [--inline-x-spacing:1.234375rem]"},{family:"link",autobox:[!0,"true"],class:"not-boxed [&:is(.not-boxed+.not-boxed)]:ps-[calc(var(--inline-x-spacing)*0.5)] [&.not-boxed:has(+.not-boxed)]:pe-[calc(var(--inline-x-spacing)*0.5)] [&.not-boxed:first-child]:ps-0 [&.not-boxed:last-child]:pe-0"}],defaultVariants:{family:"solid",variant:"default",icon:!1,inset:!1,enabledFocusState:!1,size:"md",state:"enabled",autobox:!1,override:!1}}),op="solid",wT=(e=op)=>_T[e];var xn=MT;function MT(e,t){var n={};"string"==typeof t&&(t=[].slice.call(arguments,1));for(var i=t.length,r=0;r<i;r++){var o=t[r];o in e&&(n[o]=e[o])}return n}var wn=TT;function TT(e,t){var n={};for(var i in"string"==typeof t&&(t=[].slice.call(arguments,1)),e)(!e.hasOwnProperty||e.hasOwnProperty(i))&&-1===t.indexOf(i)&&(n[i]=e[i]);return n}const wi=e=>{const t=Symbol.for(`mw.${e}`);return[e=>(hs(t,e),e),n=>{if(xl(t))return yn(t);if(void 0!==n)return n;throw new Error(`Missing dependency: No context found for key "${e}" and no fallback was provided.`)},()=>xl(t)]};var sc,ac;class AT{constructor(){Re(this,sc,ie(!1))}get selected(){return y(N(this,sc))}set selected(e){X(N(this,sc),e,!0)}}sc=new WeakMap;class CT{constructor(e){Re(this,ac),zt(this,ac,e)}get selected(){return N(this,ac).selected}}ac=new WeakMap;const[PT,RT]=wi("Button"),LT=()=>{const e=new AT;return PT(e)},K_=()=>new CT(RT());var gg,Lo={};function DT(){if(gg)return Lo;gg=1,Object.defineProperty(Lo,"__esModule",{value:!0}),Lo.useActions=Lo.createActionList=void 0;Lo.createActionList=function(e){return e};return Lo.useActions=function(e,t){var n=[];return t&&t.forEach((function(t){var i=t[0],r=t[1];n.push(i(e,r))})),{update:function(e){e.forEach((function(e,t){var i,r=n[t],o=e[1];r&&typeof o<"u"&&(null===(i=r.update)||void 0===i||i.call(r,o))}))},destroy:function(){n.forEach((function(e){var t;e&&(null===(t=e.destroy)||void 0===t||t.call(e))}))}}},Lo}var Ff=DT();function Q_(e,t){he(t,!0);let n=L(t,"selected",7,!1),i=L(t,"selectedFamily",7),r=L(t,"selectedVariant",7),o=L(t,"family",7,op),s=L(t,"variant",7),a=L(t,"href",7),l=L(t,"type",7),c=L(t,"class",7),u=L(t,"children",7),d=L(t,"ref",15),h=L(t,"use",23,(()=>[])),p=nt(t,["$$slots","$$events","$$legacy","$$host","selected","selectedFamily","selectedVariant","family","variant","href","type","class","children","ref","use"]);const f=_e((()=>
1xn(p,Uf.variants))),m=_e((()=>wn(p,Uf.variants))),g=LT();ut((()=>{g.selected=n()}));let v=_e((()=>n()?i()??wT(o()):o())),b=_e((()=>n()?r()??s():s()));var _=j();return nf(G(_),(()=>a()?"a":"button"),!1,((e,t)=>{let i;Xt(e,(e=>d(e)),(()=>d())),Nn(e,((e,t)=>{var n;return null==(n=Ff.useActions)?void 0:n.call(Ff,e,t)}),h),et((t=>i=gt(e,i,{type:a()?void 0:l(),href:a(),tabindex:"0",...y(m),class:t,"data-family":y(v)})),[()=>Uf({...y(f),family:y(v),variant:y(b),className:c()})]);var r=j(),o=G(r),s=e=>{var t=j();Ue(G(t),u,n),C(e,t)};Ke(o,(e=>{u()&&e(s)})),C(t,r)})),C(e,_),pe({get selected(){return n()},set selected(e=!1){n(e),R()},get selectedFamily(){return i()},set selectedFamily(e){i(e),R()},get selectedVariant(){return r()},set selectedVariant(e){r(e),R()},get family(){return o()},set family(e=op){o(e),R()},get variant(){return s()},set variant(e){s(e),R()},get href(){return a()},set href(e){a(e),R()},get type(){return l()},set type(e){l(e),R()},get class(){return c()},set class(e){c(e),R()},get children(){return u()},set children(e){u(e),R()},get ref(){return d()},set ref(e){d(e),R()},get use(){return h()},set use(e=[]){h(e),R()}})}function Z_(e,t){he(t,!0);const n=L(t,"children",7),i=K_();var r=j(),o=G(r),s=e=>{var t=j();Ue(G(t),(()=>n()??ct)),C(e,t)};return Ke(o,(e=>{i.selected&&e(s)})),C(e,r),pe({get children(){return n()},set children(e){n(e),R()}})}function J_(e,t){he(t,!0);const n=L(t,"children",7),i=K_();var r=j(),o=G(r),s=e=>{var t=j();Ue(G(t),(()=>n()??ct)),C(e,t)};return Ke(o,(e=>{i.selected||e(s)})),C(e,r),pe({get children(){return n()},set children(e){n(e),R()}})}se(Q_,{selected:{},selectedFamily:{},selectedVariant:{},family:{},variant:{},href:{},type:{},class:{},children:{},ref:{},use:{}},[],[],!0),se(Z_,{children:{}},[],[],!0),se(J_,{children:{}},[],[],!0),iE();var IT=ai("<svg><!></svg>");function ey(e,t){const n=ps(t,["children","$$slots","$$events","$$legacy","$$host"]);var i=IT();let r;yt(ae(i),(()=>'<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M21 12a9 9 0 1 1-6.219-8.56"/>'),!0,!1),oe(i),et((()=>r=gt(i,r,{viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",...n}))),C(e,i)}function ty(e){ey(e,{class:"animate-spin"})}se(ey,{},[],[],!0),se(ty,{},[],[],!0);const vn=Object.assign(Q_,{Selected:Z_,Unselected:J_,LoadingIcon:ty});function Vm(e,t){he(t,!0);let n=L(t,"family",7,"solid"),i=nt(t,["$$slots","$$events","$$legacy","$$host","family"]);const{controller:r}=yn(uu);let o=ie(!1),s=ie(void 0);ut((()=>{X(o,y(s)===r.activeTrigger)}));const a=_e((()=>[[r.referenceAction]]));return vn(e,Dt((()=>i),{get family(){return n()},get selected(){return y(o)},get use(){return y(a)},get ref(){return y(s)},set ref(e){X(s,e,!0)}})),pe({get family(){return n()},set family(e="solid"){n(e),R()}})}se(Vm,{family:{}},[],[],!0);var NT=me('<div><div class="bg-white p-7 shadow-[0_0_20px_0_rgb(0_0_0_/_0.1)] rounded-2xl"><div class="relative z-10"><!></div></div> <div aria-hidden="true"></div> <div aria-hidden="true"></div></div>');function ny(e,t){he(t,!0);let n=L(t,"children",7),i=L(t,"class",7),r=nt(t,["$$slots","$$events","$$legacy","$$host","children","class"]);const{controller:{floatingAction:o,contentAction:s,arrowSurfaceAction:a,arrowShadowAction:l,animate:c,render:u,show:d}}=yn(uu);var h=j(),p=G(h),f=e=>{var t=NT();let u;var h=ae(t),p=ae(h);Ue(ae(p),(()=>n()??ct)),oe(p),oe(h),Nn(h,(e=>null==s?void 0:s(e)));var f=Ge(h,2);Nn(f,(e=>null==a?void 0:a(e)));var m=Ge(f,2);Nn(m,(e=>null==l?void 0:l(e))),oe(t),Nn(t,(e=>null==o?void 0:o(e))),et((()=>{u=gt(t,u,{...r,class:["absolute z-10 top-0 left-0 motion-reduce:transition-none w-fit",{"transition-all duration-300":c.value},{hidden:!d.value},i()]}),Ft(f,1,Jt(["absolute size-5 bg-white rotate-45 motion-reduce:transition-none",{"transition-all duration-300":c.value}])),Ft(m,1,Jt(["absolute -z-10 size-5 shadow-[0_0_20px_0_rgb(0_0_0_/_0.1)] rotate-45 motion-reduce:transition-none",{"transition-all duration-300":c.value}]))})),C(e,t)};return Ke(p,(e=>{(n()&&u||d.value)&&e(f)})),C(e,h),pe({get children(){return n()},set children(e){n(e),R()},get class(){return i()},set class(e){i(e),R()}})}se(ny,{children:{},class:{}},[],[],!0);const es=Object.assign($_,{Trigger:Vm,Content:ny});var Ra=e=>Object.prototype.toString.call(e),iy=e=>ArrayBuffer.isView(e)&&!(e instanceof DataView),OT=e=>"[object Date]"===Ra(e),UT=e=>"[object RegExp]"===Ra(e),FT=e=>"[object Error]"===Ra(e),BT=e=>"[object Boolean]"===Ra(e),kT=e=>"[object Number]"===Ra(e),zT=e=>"[object String]"===Ra(e),ry=Array.isArray,HT=Object.getOwnPropertyDescriptor,VT=Object.prototype.propertyIsEnumerable,$T=Object.getOwnPropertySymbols,sd=Object.prototype.hasOwnProperty,df=Object.keys;function $m(e){const t=df(e),n=$T(e);for(let i=0;i<n.length;
1i++)VT.call(e,n[i])&&t.push(n[i]);return t}function GT(e,t){var n;return!(null!=(n=HT(e,t))&&n.writable)}function oy(e,t){if("object"==typeof e&&null!==e){let n;if(ry(e))n=[];else if(OT(e))n=new Date(e.getTime?e.getTime():e);else if(UT(e))n=new RegExp(e);else if(FT(e))n={message:e.message};else if(BT(e)||kT(e)||zT(e))n=Object(e);else{if(iy(e))return e.slice();n=Object.create(Object.getPrototypeOf(e))}const i=t.includeSymbols?$m:df;for(const t of i(e))n[t]=e[t];return n}return e}var sy={includeSymbols:!1,immutable:!1};function bg(e,t,n=sy){const i=[],r=[];let o=!0;const s=n.includeSymbols?$m:df,a=!!n.immutable;return function e(l){var c;const u=a?oy(l,n):l,d={};let h=!0;const p={node:u,node_:l,path:[].concat(i),parent:r[r.length-1],parents:r,key:i[i.length-1],isRoot:0===i.length,level:i.length,circular:void 0,isLeaf:!1,notLeaf:!0,notRoot:!0,isFirst:!1,isLast:!1,update:function(e,t=!1){p.isRoot||(p.parent.node[p.key]=e),p.node=e,t&&(h=!1)},delete:function(e){delete p.parent.node[p.key],e&&(h=!1)},remove:function(e){ry(p.parent.node)?p.parent.node.splice(p.key,1):delete p.parent.node[p.key],e&&(h=!1)},keys:null,before:function(e){d.before=e},after:function(e){d.after=e},pre:function(e){d.pre=e},post:function(e){d.post=e},stop:function(){o=!1},block:function(){h=!1}};if(!o)return p;function f(){if("object"==typeof p.node&&null!==p.node){p.keys&&p.node_===p.node||(p.keys=s(p.node)),p.isLeaf=0===p.keys.length;for(let e=0;e<r.length;e++)if(r[e].node_===l){p.circular=r[e];break}}else p.isLeaf=!0,p.keys=null;p.notLeaf=!p.isLeaf,p.notRoot=!p.isRoot}f();const m=t(p,p.node);if(void 0!==m&&p.update&&p.update(m),d.before&&d.before(p,p.node),!h)return p;if("object"==typeof p.node&&null!==p.node&&!p.circular){r.push(p),f();for(const[t,n]of Object.entries(p.keys??[])){i.push(n),d.pre&&d.pre(p,p.node[n],n);const r=e(p.node[n]);a&&sd.call(p.node,n)&&!GT(p.node,n)&&(p.node[n]=r.node),r.isLast=!(null==(c=p.keys)||!c.length)&&+t==p.keys.length-1,r.isFirst=0==+t,d.post&&d.post(p,r),i.pop()}r.pop()}return d.after&&d.after(p,p.node),p}(e).node}var Wn,Ir,f0,WT=(f0=class{constructor(e,t=sy){Re(this,Wn),Re(this,Ir),zt(this,Wn,e),zt(this,Ir,t)}get(e){let t=N(this,Wn);for(let n=0;t&&n<e.length;n++){const i=e[n];if(!sd.call(t,i)||!N(this,Ir).includeSymbols&&"symbol"==typeof i)return;t=t[i]}return t}has(e){let t=N(this,Wn);for(let n=0;t&&n<e.length;n++){const i=e[n];if(!sd.call(t,i)||!N(this,Ir).includeSymbols&&"symbol"==typeof i)return!1;t=t[i]}return!0}set(e,t){let n=N(this,Wn),i=0;for(i=0;i<e.length-1;i++){const t=e[i];sd.call(n,t)||(n[t]={}),n=n[t]}return n[e[i]]=t,t}map(e){return bg(N(this,Wn),e,{immutable:!0,includeSymbols:!!N(this,Ir).includeSymbols})}forEach(e){return zt(this,Wn,bg(N(this,Wn),e,N(this,Ir))),N(this,Wn)}reduce(e,t){const n=1===arguments.length;let i=n?N(this,Wn):t;return this.forEach(((t,r)=>{t.isRoot&&n||(i=e(t,i,r))})),i}paths(){const e=[];return this.forEach((t=>{e.push(t.path)})),e}nodes(){const e=[];return this.forEach((t=>{e.push(t.node)})),e}clone(){const e=[],t=[],n=N(this,Ir);return iy(N(this,Wn))?N(this,Wn).slice():function i(r){for(let n=0;n<e.length;n++)if(e[n]===r)return t[n];if("object"==typeof r&&null!==r){const o=oy(r,n);e.push(r),t.push(o);const s=n.includeSymbols?$m:df;for(const e of s(r))o[e]=i(r[e]);return e.pop(),t.pop(),o}return r}(N(this,Wn))}},Wn=new WeakMap,Ir=new WeakMap,f0);function fa(e){return void 0!==e.url}function XT(e){return!fa(e)}const Ja=(e,t)=>{var n,i;return(null==(n=null==e?void 0:e.__meta)?void 0:n.itemId)===(null==(i=null==t?void 0:t.__meta)?void 0:i.itemId)},ay=(e,t=[])=>{const n=new WT(e).reduce(((e,t,n)=>(e.notLeaf&&t.push(n),t)),[]).some((e=>e.selected)),i=window.location.origin+window.location.pathname,r=(e,t)=>e.map((e=>{let o=!1;return n||(o=fa(e)&&new URL(e.url,window.location.origin).href.replace(/\/$/,"")===i.replace(/\/$/,"")),{...e,__meta:{...e.__meta,itemId:yo(),parents:t,isCurrent:o},items:e.items?r(e.items,[...t,e]):void 0}})),o=e=>e.map((e=>{const t=e.items?o(e.items):[],n=t.some((e=>{var t,n;return(null==(t=e.__meta)?void 0:t.isCurrent)||(null==(n=e.__meta)?void 0:n.hasActiveDescendant)}));return{...e,__meta:{...e.__meta,hasActiveDescendant:n},items:t.length?t:void 0}})),s=r(e,t);return o(s)};var na;class qT{constructor(){Re(this,na,ie())}set item(e){X(N(this,na),e)}get isCurrent(){var e,t;return null==(t=null==(e=y(N(this,na)))?void 0:e.__meta)?void 0:t.isCurrent}get hasActiveDescendant(){var e,t;return null==(t=null==(e=y(N(this,na)))?void 0:e.__meta)?void 0:t.hasActiveDescendant}get ariaCurrent(){return this.isCurrent?"page":this.hasActiveDescendant?"true":void 0}}na=new WeakMap;const Gm=()=>new qT;var lc,qo,rr,qd,ly,h0,YT=ai("<svg><!></svg>");function du(e,t){const n=ps(t,["children","$$slots","$$events","$$legacy","$$host"]);var i=YT();let r;yt(ae(i),(()=>'<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="m6 9l6 6l6-6"/>'),!0,!1),oe(i),et((()=>r=gt(i,r,{viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",...n}))),C(e,i)}se(du,{},[],[],!0);let jT=(h0=class{constructor(){Re(this,qd),Re(this,lc,ie([])),Re(this,qo,ie()),Re(this,rr,ie()),Y(this,"panels",new Hr)}get items(){return y(N(this,lc))}set items(e){X(N(this,lc),e)}get value(){return y(N(this,rr))}set value(e){X(N(this,qo),y(N(this,rr))),X(N(this,rr),e)}get prev(){return y(N(this,qo))}get move(){const[e,t]=Ro(this,qd,ly).call(this);return e>t?"start":e<t?"end":"none"}is(e){return!!y(N(this,rr))&&Ja(y(N(this,rr)),e)}},lc=new WeakMap,qo=new WeakMap,rr=new WeakMap,qd=new WeakSet,ly=function(){if(!y(N(this,rr))||!y(N(this,qo)))return[-1,-1];return[this.items.indexOf(y(N(this,rr))),this.items.indexOf(y(N(this,qo)))]},h0);const Bf=new uf("Navigation"),ff=()=>{if(Bf.exists())return Bf.get();const e=new jT;return Bf.set(e)},KT={item:{trigger:{$variants:{family:"--vision-comp-cascade-menu-item-trigger-family",variant:"--vision-comp-cascade-menu-item-trigger-variant"},active:{$variants:{family:"--vision-comp-cascade-menu-item-trigger-active-family",variant:"--vision-comp-cascade-menu-item-trigger-active-variant"}}}}},QT={elements:{navtools:{dropdown:{button:{$variants:{family:"--vision-comp-page-header-elements-navtools-dropdown-button-family",selectedFamily:"--vision-comp-page-header-elements-navtools-dropdown-button-selected-family",variant:"--vision-comp-page-header-elements-navtools-dropdown-button-variant"}}},search:{button:{$variants:{family:"--vision-comp-page-header-elements-navtools-search-button-family",selectedFamily:"--vision-comp-page-header-elements-navtools-search-button-selected-family",variant:"--vision-comp-page-header-elements-navtools-search-button-variant"}}}}},"masthead-button":{$variants:{family:"--vision-comp-page-header-masthead-button-family",variant:"--vision-comp-page-header-masthead-button-variant",boxed:"--vision-comp-page-header-masthead-button-boxed",pill:"--vision-comp-page-header-masthead-button-pill",inset:"--vision-comp-page-header-masthead-button-inset",override:"--vision-comp-page-header-masthead-button-override"}},"navigation-inline-list":{item:{button:{$variants:{family:"--vision-comp-page-header-navigation-inline-list-item-button-family",variant:"--vision-comp-page-header-navigation-inline-list-item-button-variant",overridehover:"--vision-comp-page-header-navigation-inline-list-item-button-overridehover"}}}},navigation:{item:{button:{$variants:{family:"--vision-comp-page-header-navigation-item-button-family",variant:"--vision-comp-page-header-navigation-item-button-variant",overridehover:"--vision-comp-page-header-navigation-item-button-overridehover"}},trigger:{$variants:{family:"--vision-comp-page-header-navigation-item-trigger-family",variant:"--vision-comp-page-header-navigation-item-trigger-variant"},active:{$variants:{family:"--vision-comp-page-header-navigation-item-trigger-active-family",variant:"--vision-comp-page-header-navigation-item-trigger-active-variant"}}}}}}
1,ZT={"solid-button":{$variants:{variant:"--vision-comp-strip-solid-button-variant",size:"--vision-comp-strip-solid-button-size"}}},_g=Object.freeze(Object.defineProperty({__proto__:null,cascadeMenu:KT,pageHeader:QT,strip:ZT},Symbol.toStringTag,{value:"Module"}));var cc,uc,dc,JT=e2;function e2(e,t,n){if(!e)return n;var i,r;if(Array.isArray(t)&&(i=t.slice(0)),"string"==typeof t&&(i=t.split(".")),"symbol"==typeof t&&(i=[t]),!Array.isArray(i))throw new Error("props arg must be an array, a string or a symbol");for(;i.length;)if(r=i.shift(),!e||void 0===(e=e[r]))return n;return e}class t2{constructor(){Re(this,cc,!1),Re(this,uc,ie()),Y(this,"resolved",new Hr),Y(this,"variants",new vo),Y(this,"sensorAction",(e=>(this.refSensor=e,e.addEventListener("transitionend",N(this,dc)),this.resolve(),{destroy:()=>{e.removeEventListener("transitionend",N(this,dc))}}))),Re(this,dc,(e=>{this.refSensor&&getComputedStyle(this.refSensor).getPropertyValue("--vision-si")&&e.target===this.refSensor&&"::before"===e.pseudoElement&&this.resolve()}))}get refSensor(){return y(N(this,uc))}set refSensor(e){X(N(this,uc),e,!0)}get show(){return!N(this,cc)&&(zt(this,cc,!0),!0)}resolve(){if(!this.refSensor)return;const e=getComputedStyle(this.refSensor);this.resolved.clear();for(const t in _g){const n=_g[t],i=b_(n,(t=>{const n=e.getPropertyValue(t).trim();return n.startsWith('"')&&n.endsWith('"')?n.slice(1,-1):n}));this.resolved.set(t,i)}
1this.variants.forEach((e=>e.update()))}}cc=new WeakMap,uc=new WeakMap,dc=new WeakMap;const yg=["hover","focus","active","disabled"];var or,Yo,ia,Ri;class n2{constructor(e,t,n,i=[]){Re(this,or),Re(this,Yo),Re(this,ia),Re(this,Ri,new Hr),zt(this,or,e),zt(this,Yo,t),zt(this,ia,n),Jn((()=>{N(this,Ri).set("default",{});for(const e of i)yg.includes(e)?N(this,Ri).set(e,{}):console.error(`State "${e}" is not allowed. Allowed states are: ${yg.join(", ")}`);return pn((()=>{N(this,or).variants.add(this),N(this,or).resolved.size&&this.update()})),()=>{N(this,Ri).clear(),N(this,or).variants.delete(this)}}))}update(){if(N(this,or).resolved.has(N(this,Yo))){const e=N(this,or).resolved.get(N(this,Yo));N(this,Ri).forEach(((t,n)=>{const i="default"===n?N(this,ia):`${N(this,ia)}.${n}`,r=e&&JT(e,i);if(r)if(r&&"$variants"in r){const e={...t};for(const t in r.$variants){let n=O_(r.$variants[t]);isNaN(Number(n))||(n=String(n)),e[t]=n}N(this,Ri).set(n,e)}else console.error(`Variant path "${i}" has no $variants key.`,r);else console.error(`Variant path "${i}" not found in variants.`,e)}))}else console.error(`Variants for component "${N(this,Yo)}" not found in variant provider.`,[...N(this,or).resolved.keys()])}props(e){if(!N(this,Ri).size)return{};const t=e||"default";return N(this,Ri).has(t)?N(this,Ri).get(t)||{}:(console.warn(`State "${t}" is not defined in useVariant. Please define it to avoid fallback to the default state.`),N(this,Ri).get("default")||{})}}or=new WeakMap,Yo=new WeakMap,ia=new WeakMap,Ri=new WeakMap;const[i2,cy,r2]=wi("Variant.Provider"),o2=()=>{if(r2())return cy();{const e=new t2;return i2(e)}},os=(e,t,n)=>{const i=cy(),r=new n2(i,e,t,n);return[e=>r.props(e)]};var s2=me('<div class="absolute -top-2 -start-2 before:absolute before:transition-transform before:duration-[10ms] before:pointer-events-none before:[transform:translateZ(calc(var(--vision-si,-1)_*_1px))]"></div>'),a2=me("<!> <!>",1);function La(e,t){he(t,!0);const n=L(t,"children",7);let i=o2();var r=a2(),o=G(r),s=e=>{var t=s2();t.inert=!0,Nn(t,(e=>{var t;return null==(t=i.sensorAction)?void 0:t.call(i,e)})),C(e,t)};return Ke(o,(e=>{i.show&&e(s)})),Ue(Ge(o,2),(()=>n()??ct)),C(e,r),pe({get children(){return n()},set children(e){n(e),R()}})}se(La,{children:{}},[],[],!0);var l2=me('<div class="block whitespace-nowrap overflow-hidden text-ellipsis"> </div>'),c2=me("<div><!> <!></div>");function uy(e,t){he(t,!0);const n=L(t,"item",7),i=nt(t,["$$slots","$$events","$$legacy","$$host","item"]),{controller:{referenceAction:r,triggerAction:o}}=yn(uu),s=ff(),a=()=>s.value=n(),l=()=>s.value=void 0,c=n().items?r:()=>{},u=n().items?o:()=>{};let d=_e((()=>s.is(n())));const h=_t({base:["no-underline whitespace-nowrap overflow-hidden text-ellipsis","hover:border-comp-button-link-hover hover:border-opacity-comp-button-link-hover hover:rounded-comp-button-link-hover","hover:bg-comp-button-link-hover hover:bg-opacity-comp-button-link-hover hover:text-comp-button-link-hover","aria-[current]:border-comp-button-link-hover aria-[current]:border-opacity-comp-button-link-hover aria-[current]:rounded-comp-button-link-hover","aria-[current]:bg-comp-button-link-hover aria-[current]:bg-opacity-comp-button-link-hover aria-[current]:text-comp-button-link-hover"],variants:{submenu:{true:"",false:""},fill:{true:"",false:"px-3"},hover:{true:["hover:text-comp-page-header-navigation-item-button-hover aria-[current]:text-comp-page-header-navigation-item-button-hover"],false:""}},compoundVariants:[{submenu:!0,fill:!1,class:"pe-7"}],defaultVariants:{submenu:!1,fill:!1}}),p=_t({base:["relative -my-px z-10 self-center after:absolute after:-inset-2 after:rounded-full after:-z-10"],variants:{fill:{true:"",false:"-ms-6"}},defaultVariants:{fill:!1}});let[f]=os("pageHeader","navigation.item.button"),[m]=os("pageHeader","navigation.item.trigger",["active"]),g=Gm();Jn((()=>{g.item=n()}));var v=c2();let b;var _=ae(v),x=_e((()=>xn(f(),"family","variant")));const S=_e((()=>{var e;return null==(e=n().__meta)?void 0:e.itemId})),w=_e((()=>h({submenu:!!n().items,hover:f().overridehover})));vn(_,Dt((()=>y(x)),{get href(){return n().url},get target(){return n().target},get rel(){return n().rel},get id(){return y(S)},get class(){return y(w)},get"aria-current"(){return g.ariaCurrent},children:(e,t)=>{var i=l2(),r=ae(i,!0);oe(i),et((()=>bn(r,n().title))),C(e,i)},$$slots:{default:!0}}
1));var M=Ge(_,2),E=e=>{const t=_e((()=>y(d)?"solid":"ghost"));var i=_e((()=>y(d)?m("active"):m()));const r=_e(p);vn(e,Dt({icon:"true",pill:"true",get family(){return y(t)},size:"xs"},(()=>y(i)),{get class(){return y(r)},get"aria-label"(){return`More ${n().title??""} pages`},use:[[u]],children:(e,t)=>{const n=_e((()=>Sn({"rotate-180 -translate-y-px":y(d)})));du(e,{width:"20",height:"20",get class(){return`size-5 ${y(n)??""}`}})},$$slots:{default:!0}}))};return Ke(M,(e=>{n().items&&e(E)})),oe(v),Nn(v,((e,t)=>null==c?void 0:c(e,t)),(()=>!1)),et((()=>b=gt(v,b,{onpopoverstart:a,onpopoverend:l,...i,class:"flex"}))),C(e,v),pe({get item(){return n()},set item(e){n(e),R()}})}se(uy,{item:{}},[],[],!0);const ad=(e,{options:t,actions:n})=>{const i=i=>{var r;const o=[...e.querySelectorAll((null==t?void 0:t.selector)||"a[href], area[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), iframe, object, embed, *[tabindex], *[contenteditable]")].filter((e=>e.tabIndex>=0)),s=o[0],a=o[o.length-1],l=cf(),c=l instanceof HTMLElement?o.indexOf(l):-1;if(-1==c)return;const u="rtl"===getComputedStyle(e).direction?"rtl":"ltr",d=()=>{null!=t&&t.cycle&&0===c?a.focus():o[Math.max(0,c-1)].focus()},h=()=>{null!=t&&t.cycle&&c===o.length-1?s.focus():o[Math.min(o.length-1,c+1)].focus()};switch(i.key){case"ArrowUp":i.preventDefault(),i.stopImmediatePropagation(),d();break;case"ArrowDown":i.preventDefault(),i.stopImmediatePropagation(),h();break;case"ArrowLeft":i.preventDefault(),i.stopImmediatePropagation(),"ltr"===u?d():h();break;case"ArrowRight":i.preventDefault(),i.stopImmediatePropagation(),"ltr"===u?h():d();break;case"Escape":null==(r=null==n?void 0:n.onEscape)||r.call(n,i)}};return e.addEventListener("keydown",i),{destroy(){e.removeEventListener("keydown",i)}}},u2='<svg class="ov-svg" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 2882.4 2882.4"><path d="M1441.2 2881.7L.7 1441.2 1441.2.7l1440.5 1440.5-1440.5 1440.5zM.7 1441.2h2881M1441.2 2881.7V.7" fill="none" stroke="currentColor" stroke-miterlimit="10"/></svg>\n',dy="group/pointer";var d2=me("<div><div><div><!></div></div></div>");function gr(e,t){he(t,!0);const n=L(t,"class",7),i=nt(t,["$$slots","$$events","$$legacy","$$host","class"]),r=_t({base:["size-[2881px] pointer-events-none absolute -top-[1436px] transition","group-hover/pointer:translate-x-0 group-[.is-active-pointer]/pointer:translate-x-0"],variants:{direction:{start:"start-0 translate-x-1 [:where(:dir(rtl))_&]:-translate-x-1",end:"end-0 -translate-x-1 [:where(:dir(rtl))_&]:translate-x-1",left:"left-0 translate-x-1",right:"right-0 -translate-x-1"},length:{default:"",long:""}},defaultVariants:{direction:"end",length:"default"}}),o=_t({base:"overflow-hidden relative",variants:{length:{default:"w-6 h-[0.5625rem]",long:"w-48 h-[0.5625rem]"}},defaultVariants:{length:"default"}});var s=d2();let a;var l=ae(s),c=ae(l);return yt(ae(c),(()=>u2),!1,!1),oe(c),oe(l),oe(s),et(((e,t,n,i)=>{a=gt(s,a,{...e,class:t}),Ft(l,1,n),Ft(c,1,i)}),[()=>wn(i,r.variants),()=>Sn("vision-pointer inline-grid place-items-center","long"===t.length?"w-12 h-6":"size-6",n()),()=>Jt(o({...xn(i,o.variants)})),()=>Jt(r({...xn(i,r.variants)}))]),C(e,s),pe({get class(){return n()},set class(e){n(e),R()}})}se(gr,{class:{}},[],[],!0);var f2=ai("<svg><!></svg>");function sp(e,t){const n=ps(t,["children","$$slots","$$events","$$legacy","$$host"]);var i=f2();let r;yt(ae(i),(()=>'<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M20 6L9 17l-5-5"/>'),!0,!1),oe(i),et((()=>r=gt(i,r,{viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",...n}))),C(e,i)}se(sp,{},[],[],!0);const h2=e=>new CustomEvent("animationfinish",{detail:e}),bs=e=>{const t=e.children.item(0);if(!t)return{};let n=!1;return su().then((()=>n=!0)),{update({open:i}){n?(n=>{let i=(null==t?void 0:t.offsetHeight)||0;const r=e.animate([{opacity:0,height:0,overflow:"hidden"},{opacity:0,height:i+"px",overflow:"hidden"},{opacity:1,height:"auto",overflow:"visible"}],{duration:400,fill:"both",easing:"ease-in-out"});r.pause(),r.addEventListener("finish",(()=>{e.dispatchEvent(h2({open:n}))})),n?r.play():r.reverse()})(i):(t=>{Object.assign(e.style,t?{opacity:1,height:"auto",overflow:"visible"}:{opacity:0,height:0,overflow:"hidden"})})(i)}}};function p2(e,...t){if(arguments.length<=1)return e;const n=["string","number"].includes(typeof arguments[1])?Array.prototype.slice.call(t):arguments[1];for(let t in n)e=e.replace(new RegExp("\\{"+t+"\\}","gi"),n[t]);return e}var m2=me("<button><!> </button>"),v2=me("<a><!>
1 </a>"),g2=me("<div><!></div>"),b2=me('<li><div><div class="flex justify-between py-1"><!> <!></div></div> <!></li>');function fy(e,t){he(t,!0);const n=L(t,"item",7),i=L(t,"level",7,0),r=yn(ld),o=yo();let s=ie(!0),a=ie(!1);const l=()=>{y(a)?r.close():r.open(n(),i())};ut((()=>{X(s,Ja(r.item,n())||i()>=r.path.length,!0),X(a,r.path.some((e=>Ja(e,n()))),!0)}));let c=ie(!0);ut((()=>{X(c,r.focusable.some((e=>Ja(e,n()))),!0)}));let u=Gm();Jn((()=>{u.item=n()}));let d=ie("");ut((()=>{const e=fa(n())?r.dualIntentExpanderLabel:r.singleIntentExpanderLabel;X(d,p2(e,n()),!0)}));let h=ie(void 0);const p=rd((e=>X(h,e,!0)));ut((()=>{var e;Ja(r.focusItem,n())&&(null==(e=y(h))||e.focus(),pn((()=>{r.focusItem=void 0})))}));let f=_t({base:["flex gap-2 leading-5 text-comp-cascade-menu-item-button text-sm transition-colors","hover:text-comp-cascade-menu-item-button-hover","focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-slate-500",dy],variants:{currentPage:{page:"is-active-pointer text-comp-cascade-menu-item-button-hover",true:""},showList:{true:"font-bold"}}}),[m]=os("cascadeMenu","item.trigger",["active"]);var g=b2(),v=ae(g);let b;var _=ae(v),x=ae(_),S=e=>{var t=m2();t.__click=l,nn(t,"aria-controls",o);var i=ae(t),r=e=>{sp(e,{class:"text-comp-cascade-menu-item-pointer h-5 w-6"})},s=e=>{gr(e,{class:"text-comp-cascade-menu-item-pointer h-5"})};Ke(i,(e=>{n().selected?e(r):e(s,!1)}));var h=Ge(i);oe(t),et((e=>{var i;
1nn(t,"id",null==(i=n().__meta)?void 0:i.itemId),Ft(t,1,e),nn(t,"tabindex",y(c)?0:-1),nn(t,"aria-expanded",y(a)),nn(t,"aria-label",y(d)),bn(h,` ${n().title??""}`)}),[()=>Jt(f({currentPage:u.ariaCurrent,showList:y(a)}))]),C(e,t)},w=(e,t)=>{var i=e=>{var t=v2(),i=ae(t),r=e=>{sp(e,{class:"text-comp-cascade-menu-item-pointer h-5 w-6"})},o=e=>{gr(e,{class:"text-comp-cascade-menu-item-pointer h-5"})};Ke(i,(e=>{n().selected?e(r):e(o,!1)}));var s=Ge(i);oe(t),et((e=>{var i;nn(t,"href",n().url),nn(t,"rel",n().rel),nn(t,"target",n().target),nn(t,"id",null==(i=n().__meta)?void 0:i.itemId),Ft(t,1,e),nn(t,"tabindex",y(c)?0:-1),nn(t,"aria-current",u.ariaCurrent),bn(s,` ${n().title??""}`)}),[()=>Jt(f({currentPage:u.ariaCurrent,showList:y(a)}))]),C(e,t)};Ke(e,(e=>{fa(n())&&e(i)}),t)};Ke(x,(e=>{XT(n())&&n().items?e(S):e(w,!1)}));var M=Ge(x,2),E=e=>{const t=_e((()=>y(a)?"solid":"ghost"));var n=_e((()=>y(a)?m("active"):m()));const i=_e((()=>y(c)?0:-1));vn(e,Dt({onclick:l,icon:"true",pill:"true",get family(){return y(t)},size:"xs"},(()=>y(n)),{class:"relative -my-px z-10 after:absolute after:-inset-2 after:rounded-full after:-z-10",get tabindex(){return y(i)},"aria-controls":o,get"aria-expanded"(){return y(a)},get"aria-label"(){return y(d)},use:[[p]],children:(e,t)=>{const n=_e((()=>Sn({"rotate-180 -translate-y-px":y(a)})));du(e,{get class(){return`size-5 ${y(n)??""}`}})},$$slots:{default:!0}}))};Ke(M,(e=>{n().items&&e(E)})),oe(_),oe(v),Nn(v,((e,t)=>null==bs?void 0:bs(e)),(()=>({open:y(s)})));var T=Ge(v,2),A=e=>{var t=g2();let r;var s=ae(t);const l=_e((()=>i()+1)),u=_e((()=>y(a)&&y(c))),d=_e((()=>{var e;return null==(e=n().__meta)?void 0:e.itemId}));fu(s,{get source(){return n()},get level(){return y(l)},id:o,get isActive(){return y(u)},get"aria-describedby"(){return y(d)}}),oe(t),Nn(t,((e,t)=>
1null==bs?void 0:bs(e)),(()=>({open:y(a)}))),et((e=>{r=Ft(t,1,"h-0",null,r,e),nn(t,"aria-hidden",!y(a))}),[()=>({"overflow-hidden":!y(a)})]),C(e,t)};return Ke(T,(e=>{n().items&&e(A)})),oe(g),et((e=>{nn(g,"aria-hidden",y(s)?void 0:"true"),b=Ft(v,1,"",null,b,e)}),[()=>({"overflow-hidden":!y(s)})]),C(e,g),pe({get item(){return n()},set item(e){n(e),R()},get level(){return i()},set level(e=0){i(e),R()}})}J0(["click"]),se(fy,{item:{},level:{}},[],[],!0);const ld=Symbol();var _2=me("<ul></ul>");function fu(e,t){he(t,!0);let n,i=L(t,"url",7),r=L(t,"level",7,0),o=L(t,"source",7),s=L(t,"isActive",7,!0),a=L(t,"singleIntentExpanderLabel",7,"{title} pages"),l=L(t,"dualIntentExpanderLabel",7,"More {title} pages"),c=L(t,"class",7),u=nt(t,["$$slots","$$events","$$legacy","$$host","url","level","source","isActive","singleIntentExpanderLabel","dualIntentExpanderLabel","class"]),d=_e((()=>{var e;return(null==(e=o())?void 0:e.items)??[]})),h=ie(Lt([]));if(Jn((()=>{X(h,0===r()?ay(y(d)):y(d),!0)})),xl(ld))n=yn(ld);else{let e=ie(Lt([])),t=ie(Lt([])),r=_e((()=>y(e)[y(e).length-1])),o=ie(void 0);Jn((()=>{s()||X(e,[],!0)})),Jn((()=>{X(t,s()?y(h):[],!0)})),n={get url(){return i()},get path(){return y(e)},get item(){return y(r)},get focusItem(){return y(o)},set focusItem(e){X(o,e,!0)},get focusable(){return y(t)},get singleIntentExpanderLabel(){return a()},get dualIntentExpanderLabel(){return l()},close(){X(o,y(e).pop(),!0),y(r)?X(t,y(r).items?[...y(r).items,y(r)]:[],!0):X(t,s()?y(h):[],!0)},open(n,i){X(o,n,!0),X(e,[...y(e).slice(0,i),n],!0),X(t,n.items?[...n.items,n]:[],!0)},openParent(n){var i,r;null!=(i=n.__meta)&&i.parents&&(X(e,null==(r=n.__meta)?void 0:r.parents,!0),X(o,[...y(e)].pop(),!0),X(t,n?n.items?[...n.items,n]:[]:s()?y(h):[],!0))}},hs(ld,n)}const p=0===r()?e=>ad(e,{options:{cycle:!0},actions:{onEscape:e=>{n.path.length>0&&(e.preventDefault(),e.stopImmediatePropagation(),n.close())}}}):()=>{};return La(e,{children:(e,t)=>{var n=_2();let i;ti(n,21,(()=>y(h)),bo,((e,t)=>{fy(e,{get item(){return y(t)},get level(){return r()}})}
1)),oe(n),Nn(n,(e=>null==p?void 0:p(e))),et((e=>i=gt(n,i,{...u,role:"menu",tabindex:s()?0:-1,class:e})),[()=>Sn("flex flex-col focus-visible:outline focus-visible:outline-2 focus-visible:-outline-offset-2 focus-visible:outline-slate-500",c())]),C(e,n)},$$slots:{default:!0}}),pe({get url(){return i()},set url(e){i(e),R()},get level(){return r()},set level(e=0){r(e),R()},get source(){return o()},set source(e){o(e),R()},get isActive(){return s()},set isActive(e=!0){s(e),R()},get singleIntentExpanderLabel(){return a()},set singleIntentExpanderLabel(e="{title} pages"){a(e),R()},get dualIntentExpanderLabel(){return l()},set dualIntentExpanderLabel(e="More {title} pages"){l(e),R()},get class(){return c()},set class(e){c(e),R()}})}se(fu,{url:{},level:{},source:{},isActive:{},singleIntentExpanderLabel:{},dualIntentExpanderLabel:{},class:{}},[],[],!0);const y2=e=>e;function x2(e){const t=e-1;return t*t*t+1}function xg(e){const t="string"==typeof e&&e.match(/^\s*(-?[\d.]+)([^\s]*)\s*$/);return t?[parseFloat(t[1]),t[2]||"px"]:[e,"px"]}function hy(e,{delay:t=0,duration:n=400,easing:i=y2}={}){const r=+getComputedStyle(e).opacity;return{delay:t,duration:n,easing:i,css:e=>"opacity: "+e*r}}function Sg(e,{delay:t=0,duration:n=400,easing:i=x2,x:r=0,y:o=0,opacity:s=0}={}){const a=getComputedStyle(e),l=+a.opacity,c="none"===a.transform?"":a.transform,u=l*(1-s),[d,h]=xg(r),[p,f]=xg(o);return{delay:t,duration:n,easing:i,css:(e,t)=>`\n\t\t\ttransform: ${c} translate(${(1-e)*d}${h}, ${(1-e)*p}${f});\n\t\t\topacity: ${l-u*t}`}}var S2=me('<div class="block whitespace-nowrap overflow-hidden text-ellipsis"> </div>');function py(e,t){he(t,!0);const n=L(t,"class",7),i=L(t,"item",7),r=nt(t,["$$slots","$$events","$$legacy","$$host","class","item"]);let o=Gm();Jn((()=>{o.item=i()}));const s=_t({base:"no-underline",variants:{fill:{true:"",false:"px-3"},hover:{true:["hover:text-comp-page-header-navigation-item-button-hover aria-[current]:text-comp-page-header-navigation-item-button-hover"],false:""}},defaultVariants:{fill:!1}});let[a]=os("pageHeader","navigation-inline-list.item.button");var l=_e((()=>wn(a(),"overridehover"))),c=_e((()=>wn(r,s.variants)));const u=_e((()=>s({...xn(r,s.variants),hover:a().overridehover,className:n()})));return vn(e,Dt({size:"sm",family:"link",get href(){return i().url}},(()=>y(l)),(()=>y(c)),{get class(){return y(u)},get"aria-current"(){return o.ariaCurrent},children:(e,t)=>{var n=S2(),r=ae(n,!0);oe(n),et((()=>bn(r,i().title))),C(e,n)},$$slots:{default:!0}})),pe({get class(){return n()},set class(e){n(e),R()},get item(){return i()},set item(e){i(e),R()}})}se(py,{class:{},item:{}},[],[],!0);const kf=_t({base:"flex gap-2 max-w-max"});var E2=me("<li><!></li>"),w2=me("<ul></ul>");function my(e,t){he(t,!0);const n=L(t,"class",7),i=L(t,"source",7),r=nt(t,["$$slots","$$events","$$legacy","$$host","class","source"]);let o=_e((()=>{var e;return(null==(e=i())?void 0:e.items)??[]})),s=_e((()=>y(o).filter(fa)));return ut((()=>{if(y(o).length!==y(s).length)throw new Error("NavigationInlineList: some items are not of type NavigationLinkItemType");y(s).find((e=>void 0!==e.items))&&console.error("NavigationInlineList: more levels than supported")})),La(e,{children:(e,t)=>{var i=w2();let o;ti(i,21,(()=>y(s)),bo,((e,t)=>{var n=E2();py(ae(n),{get item(){return y(t)}}),oe(n),C(e,n)})),oe(i),et(((e,t)=>o=gt(i,o,{...e,class:t})),[()=>wn(r,kf.variants),()=>kf({...xn(r,kf.variants),className:n()})]),C(e,i)},$$slots:{default:!0}}),pe({get class(){return n()},set class(e){n(e),R()},get source(){return i()},set source(e){i(e),R()}})}se(my,{class:{},source:{}},[],[],!0);var M2=me('<div class="absolute top-0"><!></div>');function vy(e,t){he(t,!0);const n=L(t,"item",7),i=L(t,"animateContainer",7),r=L(t,"inline",7,!1),o=ff(),s=V_(),a=300;let l=ie(!1);const c=e=>{if("none"===o.move)return{duration:0};const t="rtl"===getComputedStyle(e).direction?"rtl":"ltr",n={x:-100,duration:a},i={x:100,duration:a};return Sg(e,{rtl:{start:n,end:i},ltr:{start:i,end:n}}[t][o.move])},u=e=>{if("none"===o.move)return{duration:0};const t="rtl"===getComputedStyle(e).direction?"rtl":"ltr",n={x:100,duration:a},i={x:-100,duration:a};return Sg(e,{rtl:{start:n,end:i},ltr:{start:i,end:n}}[t][o.move])},d=e=>{const t=e.offsetWidth,n=s.boundary.width-32;return X(l,t>n),o.panels.set(e,y(l)),{destroy(){o.panels.delete(e)}}};let h,p=ie(void 0);var f=M2(),m=ae(f),g=e=>{const t=_e((()=>{var e;return null==(e=n().__meta)?void 0:e.itemId}));fu(e,{get source(){return n()},isActive:!0,get"aria-describedby"(){return y(t)},class:"w-80"})},v=e=>{const t=_e((()=>{var e;return null==(e=n().__meta)?void 0:e.itemId}));my(e,{get source(){return n()},get"aria-describedby"(){return y(t)}})};return Ke(m,(e=>{!r()||y(l)?e(g):e(v,!1)})),oe(f),Nn(f,(e=>null==d?void 0:d(e))),Xt(f,(e=>X(p,e)),(()=>y(p))),Xh("introstart",f,(e=>{var t;null==(t=y(p))||t.classList.remove("absolute"),o.panels.keys().forEac
1h((e=>{e!==y(p)&&e.classList.add("absolute")})),clearTimeout(h),h=setTimeout((()=>{y(p)&&i()(y(p))}),0)})),Sl(1,f,(()=>c)),Sl(2,f,(()=>u)),C(e,f),pe({get item(){return n()},set item(e){n(e),R()},get animateContainer(){return i()},set animateContainer(e){i(e),R()},get inline(){return r()},set inline(e=!1){r(e),R()}})}se(vy,{item:{},animateContainer:{},inline:{}},[],[],!0);const zf=_t({base:"navigation-panel overflow-hidden will-change-transform transform-gpu relative"});var T2=me("<div></div>");function gy(e,t){he(t,!0);const n=L(t,"class",7),i=L(t,"items",7),r=L(t,"inline",7,!1),o=nt(t,["$$slots","$$events","$$legacy","$$host","class","items","inline"]),s=ff();let a=ie(void 0),l=0,c=0;const u=e=>{const t=e.children.item(0);if(!t||!(e=>e instanceof HTMLElement)(t))return;let n=t.offsetHeight||0,i=t.offsetWidth||0;if("none"===s.move||!y(a)||n===l&&i===c)return l=n,void(c=i);e.style.height=n+"px",e.style.width=i+"px";const r=y(a).animate([{height:l+"px",width:c+"px"},{height:n+"px",width:i+"px"}],{duration:100,fill:"both",easing:"cubic-bezier(0.4, 0, 0.2, 1)"});r.finished.then((()=>{r.cancel(),l=n,c=i,e.style.height="",e.style.width=""}))};var d=T2();let h;return ti(d,21,i,(e=>{var t;return null==(t=e.__meta)?void 0:t.itemId}),((e,t)=>{var n=j(),i=G(n),o=e=>{vy(e,{animateContainer:u,get item(){return y(t)},get inline(){return r()}})};Ke(i,(e=>{s.is(y(t))&&e(o)})),C(e,n)})),oe(d),Xt(d,(e=>X(a,e)),(()=>y(a))),et(((e,t)=>h=gt(d,h,{...e,class:t})),[()=>wn(o,zf.variants),()=>zf({...xn(o,zf.variants),className:n()})]),C(e,d),pe({get class(){return n()},set class(e){n(e),R()},get items(){return i()},set items(e){i(e),R()},get inline(){return r()},set inline(e=!1){r(e),R()}})}se(gy,{class:{},items:{},inline:{}},[],[],!0);var A2=me('<li class="min-w-0"><!></li>'),C2=me('<nav><ul class="flex gap-2"></ul> <!></nav>');function by(e,t){he(t,!0);const n=L(t,"source",7),i=L(t,"boundaryContextKey",7),r=L(t,"inline",7,!1),o=nt(t,["$$slots","$$events","$$legacy","$$host","source","boundaryContextKey","inline"]);let s=_e((()=>{var e;return(null==(e=n())?void 0:e.items)??[]})),a=ie(Lt([]));Jn((()=>{X(a,ay(y(s)).map((e=>{if(!fa(e))throw Error("First level items should be of NavigationLinkItemType");return{...e}})),!0)}));let l=_e((()=>y(a).filter((e=>e.items))));const c=ff();ut((()=>{c.items=y(a)}));var u=j(),d=G(u),h=e=>{es(e,{get boundaryContextKey(){return i()},renderContent:!0,openOnMouseEnter:!0,closeOnMouseLeave:!0,children:(e,t)=>{La(e,{children:(e,t)=>{var n=C2();let i;var s=ae(n);ti(s,21,(()=>y(a)),bo,((e,t)=>{var n=A2();uy(ae(n),{get item(){return y(t)}}),oe(n),C(e,n)})),oe(s),Qe(Ge(s,2),(()=>es.Content),((e,t)=>{t(e,{children:(e,t)=>{gy(e,{get items(){return y(l)},get inline(){return r()}})},$$slots:{default:!0}})}
1)),oe(n),Nn(n,((e,t)=>null==ad?void 0:ad(e,t)),(()=>({options:{cycle:!0}}))),et((()=>i=gt(n,i,{...o}))),C(e,n)},$$slots:{default:!0}})},$$slots:{default:!0}})};return Ke(d,(e=>{y(a).length&&e(h)})),C(e,u),pe({get source(){return n()},set source(e){n(e),R()},get boundaryContextKey(){return i()},set boundaryContextKey(e){i(e),R()},get inline(){return r()},set inline(e=!1){r(e),R()}})}se(by,{source:{},boundaryContextKey:{},inline:{}},[],[],!0);var P2=me("<div><!></div>");function Wm(e,t){he(t,!0);const n=L(t,"class",7),i=L(t,"children",7),r=L(t,"axis",7),o=L(t,"contextKey",7),s=nt(t,["$$slots","$$events","$$legacy","$$host","class","children","axis","contextKey"]),a=CM(r(),o());var l=P2();let c;return Ue(ae(l),(()=>i()??ct)),oe(l),Xt(l,(e=>a.element=e),(()=>null==a?void 0:a.element)),et((()=>c=gt(l,c,{...s,class:n()}))),C(e,l),pe({get class(){return n()},set class(e){n(e),R()},get children(){return i()},set children(e){i(e),R()},get axis(){return r()},set axis(e){r(e),R()},get contextKey(){return o()},set contextKey(e){o(e),R()}})}se(Wm,{class:{},children:{},axis:{},contextKey:{}},[],[],!0);var R2=me("<div><!></div>");function _y(e,t){he(t,!0);const n=L(t,"children",7),i=L(t,"class",7),r=nt(t,["$$slots","$$events","$$legacy","$$host","children","class"]);var o=R2();let s;var a=ae(o),l=e=>{var t=j();Ue(G(t),n),C(e,t)};return Ke(a,(e=>{n()&&e(l)})),oe(o),et((e=>s=gt(o,s,{...r,class:e})),[()=>Sn("grid grid-flow-col place-items-stretch gap-2",i())]),C(e,o),pe({get children(){return n()},set children(e){n(e),R()},get class(){return i()},set class(e){i(e),R()}})}se(_y,{children:{},class:{}},[],[],!0);var L2=me("<div><!></div>");function yy(e,t){he(t,!0);const n=L(t,"children",7),i=L(t,"class",7),r=nt(t,["$$slots","$$events","$$legacy","$$host","children","class"]),o=_t({base:["flex items-center gap-[inherit]"],variants:{align:{start:"justify-start",end:"justify-end"}},defaultVariants:{align:"start"}});var s=L2();let a;var l=ae(s),c=e=>{var t=j();Ue(G(t),n),C(e,t)};return Ke(l,(e=>{n()&&e(c)})),oe(s),et(((e,t)=>a=gt(s,a,{...e,class:t})),[()=>wn(r,o.variants),()=>o({...xn(r,o.variants),className:i()})]),C(e,s),pe({get children(){return n()},set children(e){n(e),R()},get class(){return i()},set class(e){i(e),R()}})}se(yy,{children:{},class:{}},[],[],!0);const hf=Object.assign(_y,{Item:yy}),Xm=Symbol("NAVTOOL_BOUNDARY_CONTEXT_KEY");function xy(e,t){he(t,!0);const n=L(t,"class",7),i=L(t,"children",7);return Wm(e,{contextKey:Xm,axis:"x",children:(e,t)=>{const r=_e((()=>Sn("py-2",n())));hf(e,{get class(){return y(r)},children:(e,t)=>{var n=j();Ue(G(n),(()=>i()??ct)),C(e,n)},$$slots:{default:!0}})},$$slots:{default:!0}}),pe({get class(){return n()},set class(e){n(e),R()},get children(){return i()},set children(e){i(e),R()}})}function Sy(e,t){he(t,!0);const n=L(t,"class",7),i=L(t,"inline",7,!1),r=yn(Aa),o=_e((()=>i()||r.navigationInline)),s=_e((()=>Sn("only:-ms-3 transition-all",n())));return by(e,{get inline(){return y(o)},boundaryContextKey:Xm,get source(){return r.navigationSource},get class(){return y(s)}}),pe({get class(){return n()},set class(e){n(e),R()},get inline(){return i()},set inline(e=!1){i(e),R()}})}function Ey(e,t){he(t,!0);const n=L(t,"children",7),i=nt(t,["$$slots","$$events","$$legacy","$$host","children"]);var r=j(),o=G(r),s=e=>{es(e,Dt((()=>i),{disableOthers:!0,children:(e,t)=>{var i=j();Ue(G(i),n),C(e,i)},$$slots:{default:!0}}))};return Ke(o,(e=>{n()&&e(s)})),C(e,r),pe({get children(){return n()},set children(e){n(e),R()}})}se(xy,{class:{},children:{}},[],[],!0),se(Sy,{class:{},inline:{}},[],[],!0),se(Ey,{children:{}},[],[],!0);const D2=e=>new CustomEvent("activeoption",{detail:{active:e}}),Eg=e=>new CustomEvent("selectoption",{detail:{selected:e}}),dn={TYPE:1,PREV:5,NEXT:6,FIRST:7,LAST:8,CLEAR:10,CLOSE:16,SELECT:17},wg=(e,{optionsVisible:t=!1})=>{const{key:n,altKey:i,ctrlKey:r,metaKey:o}=e;if("Backspace"===n||"Delete"===n||1===n.length&&" "!==n&&!i&&!r&&!o)return dn.TYPE;if(t)switch(n){case"Home":return dn.FIRST;case"End":return dn.LAST;case"ArrowUp":return i?dn.SELECT:dn.PREV;case"ArrowDown":return dn.NEXT;case"Tab":return dn.CLOSE;case"Escape":return dn.CLEAR;case"Enter":return dn.SELECT}else if("Escape"===n)return dn.CLEAR};var Er,Hf,Vf,$f;function wy(e){return{lang:null==Er?void 0:Er.lang,message:null==e?void 0:e.message,abortEarly:null==Er?void 0:Er.abortEarly,abortPipeEarly:null==Er?void 0:Er.abortPipeEarly}}function I2(e){return null==Hf?void 0:Hf.get(e)}function N2(e){return null==Vf?void 0:Vf.get(e)}function O2(e,t){var n;return null==(n=null==$f?void 0:$f.get(e))?void 0:n.get(t)}function U2(e){var t,n;const i=typeof e;return"string"===i?`"${e}"`:"number"===i||"bigint"===i||"boolean"===i?`${e}`:"object"===i||"function"===i?(e&&(null==(n=null==(t=Object.getPrototypeOf(e))?void 0:t.constructor)?void 0:n.name))??"null":i}function Tl(e,t,n,i,r){const o=r&&"input"in r?r.input:n.value,s=(null==r?void 0:r.expected)??e.expects??null,a=(null==r?void 0:r.received)??U2(o),l={kind:e.kind,type:e.type,input:o,expected:s,received:a,message:`Invalid ${t}: ${s?`Expected ${s} but r`:"R"}eceived ${a}`,requirement:e.requirement,path:null==r?void 0:r.path,issues:null==r?void 0:r.issues,lang:i.lang,abortEarly:i.abortEarly,abortPipeEarly:i.abortPipeEarly},c="schema"===e.kind,u=(null==r?void 0:r.message)??e.message??O2(e.reference,l.lang)??(c?N2(l.lang):null)??i.message??I2(l.lang);void 0!==u&&(l.message="function"==typeof u?u(l):u),c&&(n.typed=!1),n.issues?n.issues.push(l):n.issues=[l]}function hu(e){return{version:1,vendor:"valibot",validate:t=>e["~run"]({value:t},wy())}}
1var F2=class extends Error{constructor(e){super(e[0].message),this.name="ValiError",this.issues=e}};function B2(e,t,n){return"function"==typeof e.fallback?e.fallback(t,n):e.fallback}function My(e,t,n){return"function"==typeof e.default?e.default(t,n):e.default}function Ty(e,t){return{kind:"schema",type:"array",reference:Ty,expects:"Array",async:!1,item:e,message:t,get"~standard"(){return hu(this)},"~run"(e,t){var n;const i=e.value;if(Array.isArray(i)){e.typed=!0,e.value=[];for(let r=0;r<i.length;r++){const o=i[r],s=this.item["~run"]({value:o},t);if(s.issues){const a={type:"array",origin:"value",input:i,key:r,value:o};for(const t of s.issues)t.path?t.path.unshift(a):t.path=[a],null==(n=e.issues)||n.push(t);if(e.issues||(e.issues=s.issues),t.abortEarly){e.typed=!1;break}}s.typed||(e.typed=!1),e.value.push(s.value)}}else Tl(this,"type",e,t);return e}}}function Ay(e){return{kind:"schema",type:"number",reference:Ay,expects:"number",async:!1,message:e,get"~standard"(){return hu(this)},"~run"(e,t){return"number"!=typeof e.value||isNaN(e.value)?Tl(this,"type",e,t):e.typed=!0,e}}}function ap(e,t){return{kind:"schema",type:"object",reference:ap,expects:"Object",async:!1,entries:e,message:t,get"~standard"(){return hu(this)},"~run"(e,t){var n;const i=e.value;if(i&&"object"==typeof i){e.typed=!0,e.value={};for(const r in this.entries){const o=this.entries[r];if(r in i||("exact_optional"===o.type||"optional"===o.type||"nullish"===o.type)&&void 0!==o.default){const s=r in i?i[r]:My(o),a=o["~run"]({value:s},t);if(a.issues){const o={type:"object",origin:"value",input:i,key:r,value:s};for(const t of a.issues)t.path?t.path.unshift(o):t.path=[o],null==(n=e.issues)||n.push(t);if(e.issues||(e.issues=a.issues),t.abortEarly){e.typed=!1;break}}a.typed||(e.typed=!1),e.value[r]=a.value}else if(void 0!==o.fallback)e.value[r]=B2(o);else if("exact_optional"!==o.type&&"optional"!==o.type&&"nullish"!==o.type&&(Tl(this,"key",e,t,{input:void 0,expected:`"${r}"`,path:[{type:"object",origin:"key",input:i,key:r,value:i[r]}]}),t.abortEarly))break}}else Tl(this,"type",e,t);return e}}}function Cy(e,t){return{kind:"schema",type:"optional",reference:Cy,expects:`(${e.expects} | undefined)`,async:!1,wrapped:e,default:t,get"~standard"(){return hu(this)},"~run"(e,t){return void 0===e.value&&(void 0!==this.default&&(e.value=My(this,e,t)),void 0===e.value)?(e.typed=!0,e):this.wrapped["~run"](e,t)}}}function lp(e){return{kind:"schema",type:"string",reference:lp,expects:"string",async:!1,message:e,get"~standard"(){return hu(this)},"~run"(e,t){return"string"==typeof e.value?e.typed=!0:Tl(this,"type",e,t),e}}}function k2(e,t,n){const i=e["~run"]({value:t},wy(n));if(i.issues)throw new F2(i.issues);return i.value}var Py=qm;function qm(e,t){return e===t||e!=e&&t!=t||!(typeof e!=typeof t||{}.toString.call(e)!={}.toString.call(t)||e!==Object(e)||!e)&&(Array.isArray(e)?Mg(e,t):"[object Set]"=={}.toString.call(e)?Mg(Array.from(e),Array.from(t)):"[object Object]"=={}.toString.call(e)?H2(e,t):z2(e,t))}function z2(e,t){return e.toString()===t.toString()}function Mg(e,t){var n=e.length;if(n!=t.length)return!1;for(var i=0;i<n;i++)if(!qm(e[i],t[i]))return!1;return!0}function H2(e,t){var n=Object.keys(e),i=n.length;if(i!=Object.keys(t).length)return!1;for(var r=0;r<i;r++){var o=n[r];if(!t.hasOwnProperty(o)||!qm(e[o],t[o]))return!1}return!0}const V2=ap({total:Ay(),items:Ty(ap({label:lp()})),suggestion:Cy(lp())});function cp(e){const t=document.createElement("textarea");return t.innerHTML=e,t.value}function $2(e){const t=e=>{const t=e.match(/%suggestion%([^%]+)%suggestion%/);return t?t[1]:e};return{total:e.length,items:e.map((({primary:e,secondary:n,suggestion:i})=>{if(!i)return{label:cp(t(e)),segments:n?n.split(" > ").map(cp):void 0}})).filter(Boolean)}}var fc,hc,pc,mc,vc,jo,gc,bc,_c,yc,xc;class G2{constructor(){Re(this,fc,ie(Lt([]))),Re(this,hc,ie(0)),Re(this,pc,ie(!1))}get items(){return y(N(this,fc))}set items(e){X(N(this,fc),e,!0)}get total(){return y(N(this,hc))}set total(e){X(N(this,hc),e,!0)}get populated(){return y(N(this,pc))}set populated(e){X(N(this,pc),e,!0)}results(e){this.items=e.items,this.total=e.total,this.populated=!0}reset(){this.items=[],this.total=0,this.populated=!1}get size(){return this.items.length}posinset(e){return this.indexOf(e)+1}indexOf(e){const t=this.items.find((t=>Py(t,e)));return this.items.indexOf(t)}isMember(e){return this.indexOf(e)>-1}get options(){return this.populated&&this.size>0}get noOptions(){return this.populated&&0===this.size}}fc=new WeakMap,hc=new WeakMap,pc=new WeakMap;class W2{constructor(){Re(this,mc,ie()),Re(this,vc,ie(!1))}get node(){return y(N(this,mc))}set node(e){X(N(this,mc),e,!0)}get visible(){return y(N(this,vc))}set visible(e){X(N(this,vc),e,!0)}hide(){this.visible=!1}show(){this.visible=!0}}mc=new WeakMap,vc=new WeakMap;class X2{constructor(e={}){Y(this,"options"),Re(this,jo,ie()),Y(this,"items",new Map),Re(this,gc,ie(Lt([]))),Re(this,bc,_e((()=>this.nodes.indexOf(y(N(this,jo)))))),this.options={onSet:()=>{},...e}}get nodes(){return y(N(this,gc))}set nodes(e){X(N(this,gc),e,!0)}get index(){return y(N(this,bc))}set index(e){X(N(this,bc),e)}set(e,t){var n,i;let r=this.nodes.indexOf(e);-1===r?this.nodes.push(e):this.nodes[r]=e,this.nodes.sort(((e,t)=>[...e.parentNode.children].indexOf(e)-[...t.parentNode.children].indexOf(t))),this.items.set(e,t),null==(i=(n=this.options).onSet)||i.call(n,e,t)}get(e=this.active){if(e)return this.items.get(e)}delete(e){const t=this.nodes.indexOf(e);return-1!==t&&(this.nodes.splice(t,1),this.items.delete(e),!0)}get size(){return this.nodes.length}get active(){return y(N(this,jo))}
1set active(e){X(N(this,jo),e,!0),this.nodes.forEach((e=>{e.dispatchEvent(D2(y(N(this,jo))===e))}))}}jo=new WeakMap,gc=new WeakMap,bc=new WeakMap;class q2{constructor(e={}){Re(this,_c,ie(Lt([]))),Y(this,"options"),this.options={multiple:!1,deselect:!0,navigate:!0,onToggle:()=>{},...e}}get items(){return y(N(this,_c))}set items(e){X(N(this,_c),e,!0)}toggle(e,t=void 0){var n,i;if(!e)return;const r=this.indexOf(e);if(-1===r){if(this.options.multiple||(this.items=[]),this.items.push(e),this.options.navigate&&this.navigateTo(e,t),this.options.deselect&&(this.items=[e]),this.options.legacySearchPage&&this.options.legacySearchPageQueryKey){const n=`${this.options.legacySearchPage}?${this.options.legacySearchPageQueryKey}=${e.label}`;this.navigateTo({...e,url:n},t)}}else this.options.deselect&&this.items.splice(r,1);null==(i=(n=this.options).onToggle)||i.call(n)}indexOf(e){const t=this.items.find((t=>Py(t,e)));return this.items.indexOf(t)}isSelected(e){return this.indexOf(e)>-1}navigateTo(e,t){let n="string"==typeof e.url?e.url:"";new URL(n);const{target:i}=e;"_blank"===i||t&&(t.metaKey||t.ctrlKey)?window.open(n,"_blank"):window.location.href=n}}_c=new WeakMap;class Y2{constructor(){Re(this,yc,ie()),Re(this,xc,ie(""))}get node(){return y(N(this,yc))}set node(e){X(N(this,yc),e,!0)}get value(){return y(N(this,xc))}set value(e){X(N(this,xc),e,!0)}}function j2(e={}){return Object.entries(e).filter((([e,t])=>null!=t)).map((([e,t])=>`${encodeURIComponent(e)}=${encodeURIComponent(t)}`)).join("&")}function K2({legacyEndpoint:e,legacySearchPage:t,legacySearchPageQueryKey:n,endpoint:i,endpointQueryKey:r,endpointQueryParams:o={},minChars:s=2,multiple:a=!0,deselect:l=!0,navigate:c=!1,clearSelectionOnCollectionChange:u=!1,clearSelectionWhenNotInCollection:d=!1,selectionToInput:h=!1,locales:p}){let f=ie(Lt(yo())),m=Lt(yo()),g=ie(!1),v=ie(Lt(o));const b=new G2,_=new q2({multiple:a,deselect:l,navigate:c,legacySearchPage:t,legacySearchPageQueryKey:n,onToggle:()=>{for(let[e,t]of S.items)e.dispatchEvent(Eg(_.isSelected(t)))}}),x=new W2,S=new X2({onSet:(e,t)=>{e.dispatchEvent(Eg(_.isSelected(t)))}}),w=new Y2,M=new Intl.ListFormat(p,{style:"long",type:"conjunction"});ut((()=>{x.visible=b.populated})),ut((()=>{var e;null==(e=w.node)||e.setAttribute("aria-expanded",String(x.visible))})),ut((()=>{b.items&&(u?_.items=[]:d&&_.items.forEach((e=>{b.isMember(e)||_.toggle(e)})))})),h&&ut((()=>{const e=_.items.map((e=>e.label));w.value=M.format(e)}));const E=()=>{w.node&&i&&(async t=>{var n,o,a,l;if(S.active=void 0,t.length<s)return void b.reset();const c={headers:(null==(o=null==(n=null==window?void 0:window.vision)?void 0:n.fetch)?void 0:o.headers)??new Headers},u=j2({...y(v),[r]:t}),d=await(await fetch(`${i}?${u}`,c)).json();let h;e?(X(g,null==(a=d.find((e=>"suggestion"in e)))?void 0:a.suggestion,!0),h=$2(d)):h={...d,items:null==(l=d.items)?void 0:l.map((e=>({...e,label:cp(e.label)})))},k2(V2,h),b.results(h)})(w.value)};return{inputAction:(e,i)=>{const r=e=>{if(wg(e,{optionsVisible:x.visible&&S.size>0})===dn.TYPE)E()},o=e=>{const i=wg(e,{optionsVisible:x.visible&&S.size>0});switch(i){case dn.FIRST:case dn.LAST:case dn.PREV:case dn.NEXT:((e,t)=>{e.preventDefault();const{index:n}=S;switch(t){case dn.FIRST:S.active=S.nodes[0];break;case dn.LAST:S.active=S.nodes[S.size-1];break;case dn.PREV:S.active=S.nodes[(n-1+S.size)%S.size];break;case dn.NEXT:S.active=S.nodes[(n+1)%S.size]}})(e,i);break;case dn.SELECT:(()=>{const e=S.get();if(e)_.toggle(e);else if(t&&n){const e=`${t}?${n}=${w.value}`;_.navigateTo({label:"",url:e},void 0)}})();break;case dn.CLEAR:w.value="",E();break;case dn.CLOSE:x.hide()}},s=()=>{x.show()},a=e=>{var t;if("mouse"===e.pointerType&&0===e.button||"pen"===e.pointerType||"touch"===e.pointerType){const n=sl(e);n!==w.node&&(null==(t=x.node)||!t.contains(n))&&(w.value="",E())}};return w.node=e,e.addEventListener("keyup",r),e.addEventListener("keydown",o),e.addEventListener("focus",s),document.addEventListener("pointerdown",a),e.id&&X(f,e.id,!0),e.setAttribute("id",y(f)),e.setAttribute("role","combobox"),e.setAttribute("aria-owns",m),i&&e instanceof HTMLInputElement&&(e.value=i),{destroy(){e.removeEventListener("keyup",r),e.removeEventListener("keydown",o),e.removeEventListener("focus",s),document.removeEventListener("pointerdown",a),w.node=void 0}}},detailAction:e=>(x.node=e,e.setAttribute("id",m),{destroy(){x.node=void 0}}),optionAction:(e,t)=>{const n=()=>{S.active=e},i=e=>{e.preventDefault();const t=e.currentTarget;_.toggle(S.get(t),e)},r=e=>{e.preventDefault(),w.node===e.relatedTarget&&w.node.focus({preventScroll:!0})};return S.set(e,t),e.addEventListener("mouseover",n),e.addEventListener("focus",r),e.addEventListener("click",i),{update(t){S.set(e,t)},destroy(){e.removeEventListener("mouseover",n),e.removeEventListener("focus",r),e.removeEventListener("click",i),S.delete(e)}}},collection:b,input:w,detail:x,selection:_,get legacyNoOptions(){return y(g)},get endpointQueryParams(){return y(v)},set endpointQueryParams(e){X(v,e,!0)}}}yc=new WeakMap,xc=new WeakMap;const pu=Symbol();function Ry(e,t){he(t,!0);let n=L(t,"legacyEndpoint",7,!1),i=L(t,"legacySearchPage",7),r=L(t,"legacySearchPageQueryKey",7),o=L(t,"endpoint",7),s=L(t,"endpointQueryKey",7,"query"),a=L(t,"endpointQueryParams",7),l=L(t,"minChars",7,2),c=L(t,"multiple",7,!0),u=L(t,"deselect",7,!0),d=L(t,"navigate",7,!1),h=L(t,"clearSelectionOnCollectionChange",7,!1),p=L(t,"clearSelectionWhenNotInCollection",7,!1),f=L(t,"selectionToInput",7,!1),m=L(t,"locales",7),g=L(t,"children",7);const v=K2({legacyEndpoint:n(),legacySearchPage:i(),legacySearchPageQueryKey:r(),endpoint:o(),endpointQueryKey:s(),endpointQueryParams:a(),minChars:l(),multiple:c(),deselect:u(),navigate:d(),clearSelectionOnCollectionChange:h(),clearSelectionWhenNotInCollection:p(),selectionToInput:f(),locales:m()});hs(pu,v),ut((()=>{v.endpointQueryParams=a()??{}}));const b=v.selection.items;var y=j(),_=G(y),x=e=>{var t=j();Ue(G(t),g),C(e,t)};return Ke(_,(e=>{g()&&e(x)})),C(e,y),pe({selection:b,get legacyEndpoint(){return n()},set legacyEndpoint(e=!1){n(e),R()},get legacySearchPage(){return i()},set legacySearchPage(e){i(e),R()},get legacySearchPageQueryKey(){return r()},set legacySearchPageQueryKey(e){r(e),R()},get endpoint(){return o()},set endpoint(e){o(e),R()},get endpointQueryKey(){return s()},set endpointQueryKey(e="query"){s(e),R()},get endpointQueryParams(){return a()},set endpointQueryParams(e){a(e),R()},get minChars(){return l()},set minChars(e=2){l(e),R()},get multiple(){return c()},set multiple(e=!0){c(e),R()},get deselect(){return u()},set deselect(e=!0){u(e),R()},get navigate(){return d()},set navigate(e=!1){d(e),R()},get clearSelectionOnCollectionChange(){return h()},set clearSelectionOnCollectionChange(e=!1){h(e),R()},get clearSelectionWhenNotInCollection(){return p()},set clearSelectionWhenNotInCollection(e=!1){p(e),R()},get selectionToInput(){return f()},set selectionToInput(e=!1){f(e),R()},get locales(){return m()},set locales(e){m(e),R()},get children(){return g()},set children(e){g(e),R()}})}function Ly(e,t){he(t,!0);const n=L(t,"legacyEndpoint",7,!1),i=L(t,"legacySearchPage",7),r=L(t,"legacySearchPageQueryKey",7),o=L(t,"endpoint",7),s=L(t,"endpointQueryKey",7),a=L(t,"endpointQueryParams",7),l=L(t,"locales",7),c=L(t,"children",7);var u=j(),d=G(u),h=e=>{Ry(e,{get endpoint(){return o()},get endpointQueryKey(){return s()},get endpointQueryParams(){return a()}
1,minChars:2,multiple:!1,deselect:!1,navigate:!1,clearSelectionOnCollectionChange:!1,clearSelectionWhenNotInCollection:!1,selectionToInput:!0,get locales(){return l()},get legacyEndpoint(){return n()},get legacySearchPage(){return i()},get legacySearchPageQueryKey(){return r()},children:(e,t)=>{var n=j();Ue(G(n),c),C(e,n)},$$slots:{default:!0}})};return Ke(d,(e=>{c()&&e(h)})),C(e,u),pe({get legacyEndpoint(){return n()},set legacyEndpoint(e=!1){n(e),R()},get legacySearchPage(){return i()},set legacySearchPage(e){i(e),R()},get legacySearchPageQueryKey(){return r()},set legacySearchPageQueryKey(e){r(e),R()},get endpoint(){return o()},set endpoint(e){o(e),R()},get endpointQueryKey(){return s()},set endpointQueryKey(e){s(e),R()},get endpointQueryParams(){return a()},set endpointQueryParams(e){a(e),R()},get locales(){return l()},set locales(e){l(e),R()},get children(){return c()},set children(e){c(e),R()}})}se(Ry,{legacyEndpoint:{},legacySearchPage:{},legacySearchPageQueryKey:{},endpoint:{},endpointQueryKey:{},endpointQueryParams:{},minChars:{},multiple:{},deselect:{},navigate:{},clearSelectionOnCollectionChange:{},clearSelectionWhenNotInCollection:{},selectionToInput:{},locales:{},children:{}},[],["selection"],!0),se(Ly,{legacyEndpoint:{},legacySearchPage:{},legacySearchPageQueryKey:{},endpoint:{},endpointQueryKey:{},endpointQueryParams:{},locales:{},children:{}},[],[],!0);var Q2=me("<input>");function Dy(e,t){he(t,!0);let n=L(t,"value",7),i=L(t,"class",7),r=nt(t,["$$slots","$$events","$$legacy","$$host","value","class"]);const{input:o,inputAction:s}=yn(pu),a=_t({base:["w-full px-2 py-1"]});var l=Q2();let c;return HE(l),Nn(l,((e,t)=>null==s?void 0:s(e,t)),n),ds((()=>XE(l,(()=>o.value),(e=>o.value=e)))),et(((e,t)=>c=gt(l,c,{autocapitalize:"none",autocomplete:"off",autocorrect:"off",spellcheck:"false",tabindex:"0",type:"text",...e,class:t})),[()=>wn(r,a.variants),()=>a({...xn(r,a.variants),className:i()})]),C(e,l),pe({get value(){return n()},set value(e){n(e),R()},get class(){return i()},set class(e){i(e),R()}})}se(Dy,{value:{},class:{}},[],[],!0);var Z2=me("<li><!></li>");function Id(e,t){he(t,!0);const n=L(t,"item",7),i=L(t,"selected",7,!1),r=L(t,"id",23,yo),o=L(t,"class",7),s=L(t,"children",7),a=nt(t,["$$slots","$$events","$$legacy","$$host","item","selected","id","class","children"]),l=yn(pu),{collection:c,optionAction:u}=l;let d=ie(!1),h=ie(Lt(i()));const p=e=>{X(d,e.detail.active,!0)},f=e=>{X(h,e.detail.selected,!0)};var m=Z2();let g;return Ue(ae(m),s),oe(m),Nn(m,((e,t)=>null==u?void 0:u(e,t)),n),et(((e,t,n)=>g=gt(m,g,{...a,id:r(),role:"option",tabindex:"-1","aria-selected":y(h),"aria-posinset":e,"aria-setsize":c.size,class:t,onactiveoption:p,onselectoption:f,[Fs]:n})),[()=>c.posinset(n()),()=>Sn("px-2 py-1 cursor-pointer text-comp-combocore-option",o()),()=>({"bg-slate-200":y(d)&&!y(h),"bg-blue-300":y(d)&&y(h),"bg-blue-200":y(h)})]),C(e,m),pe({get item(){return n()},set item(e){n(e),R()},get selected(){return i()},set selected(e=!1){i(e),R()},get id(){return r()},set id(e=yo()){r(e),R()},get class(){return o()},set class(e){o(e),R()},get children(){return s()},set children(e){s(e),R()}})}se(Id,{item:{},selected:{},id:{},class:{},children:{}},[],[],!0);var J2=me('<div class="overflow-hidden"><ul><!></ul></div>');function Iy(e,t){he(t,!0);const n=L(t,"children",7),i=nt(t,["$$slots","$$events","$$legacy","$$host","children"]);var r=J2(),o=ae(r);let s;var a=ae(o),l=e=>{var t=j();Ue(G(t),n),C(e,t)};return Ke(a,(e=>{n()&&e(l)})),oe(o),oe(r),et((()=>s=gt(o,s,{class:"antialiased break-words",...i}))),C(e,r),pe({get children(){return n()},set children(e){n(e),R()}})}se(Iy,{children:{}},[],[],!0);const eA='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 2882.4 2882.4"><path d="M1441.2 2881.7L.7 1441.2 1441.2.7l1440.5 1440.5-1440.5 1440.5zM.7 1441.2h2881M1441.2 2881.7V.7" fill="none" stroke="currentColor" stroke-miterlimit="10"/></svg>\n',tA='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 2038.2 2038.2"><path d="M.5 2037.7V.5h2037.2v2037.2H.5zM.5.5l2037.2 2037.2m-2037.2 0L2037.7.5" fill="none" stroke="currentColor" stroke-miterlimit="10"/></svg>\n',nA='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 2882.4 2882.4"><path fill="none" stroke="currentColor" stroke-miterlimit="10" d="M.676 1441.2L1441.18.696 2881.685 1441.2 1441.18 2881.704z" stroke-width=".99999"/></svg>\n',iA='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 2038.2 2038.2"><path fill="none" stroke="currentColor" stroke-miterlimit="10" d="M.5.5h2037.2v2037.2H.5z"/></svg>\n';var rA=me('<div><div class="size-full overflow-hidden relative"><div><!></div></div></div>');function Ny(e,t){he(t,!0);const n={arrow:{straight:eA,diagonal:tA},chevron:{straight:nA,diagonal:iA}},i=L(t,"type",7,"arrow"),r=L(t,"angle",7,"0"),o=L(t,"class",7),s=nt(t,["$$slots","$$events","$$legacy","$$host","type","angle","class"]),a=45===Math.abs(parseInt(r(),10))?"diagonal":"straight",l=_t({base:["size-[2881px] pointer-events-none absolute"],variants:{direction:{start:"",end:"",left:"",right:""},angle:{"-90":"","-45":"",0:"",45:"",90:""}},compoundVariants:[{angle:"0",className:"top-1/2 -translate-y-1/2"},{angle:["-45","45"],className:"size-[2038px] "},{angle:["-45","0","45"],direction:"start",className:"start-0"},{angle:["-45","0","45"],direction:"end",className:"end-0"},{angle:["-45","0","45"],direction:"left",className:"left-0"},{angle:["-45","0","45"],direction:"right",className:"right-0"},{angle:["-90","90"],className:"left-1/2 -translate-x-1/2"},{angle:["-90","-45"],className:"top-0"},{angle:["45","90"],className:"bottom-0"}],defaultVariants:{direction:"end"}});var c=rA();let u;var d=ae(c),h=ae(d);return yt(ae(h),(()=>n[i()][a]),!1,!1),oe(h),oe(d),oe(c),et(((e,t,n)=>{u=gt(c,u,{class:e,...t}),Ft(h,1,n)}),[()=>Sn("size-6 inline-grid place-items-center",o()),()=>wn(s,l.variants),()=>Jt(l({...xn(s,l.variants),angle:r()}))]),C(e,c),pe({get type(){return i()},set type(e="arrow"){i(e),R()},get angle(){return r()},set angle(e="0"){r(e),R()},get class(){return o()},set class(e){o(e),R()}})}se(Ny,{type:{},angle:{},class:{}},[],[],!0);var oA=me("<!><!>",1),sA=me("<li><!></li>");function Oy(e,t){he(t,!0);const n=L(t,"state",7),i=L(t,"mode",7),r=L(t,"href",7),o=L(t,"class",7),s=L(t,"children",7),a=nt(t,["$$slots","$$events","$$legacy","$$host","state","mode","href","class","children"]),l=r()?"a":"span",c=_t({base:["inline no-underline py-2","[&:last-child_.vision-breadcrumb-arrow]:hidden"],variants:{mode:{breadcrumb:[],segment:[]}},defaultVariants:{mode:"breadcrumb"}}),u=_t({base:["text-sm text-slate-400"],variants:{state:{enabled:""}}});var d=sA();return nf(ae(d),(()=>l),!1,((e,t)=>{let i;et((t=>i=gt(e,i,{...a,href:r(),class:t})),[()=>u({state:n()})]);var o=oA(),l=G(o),c=e=>{var t=j();Ue(G(t),s),C(e,t)};Ke(l,(e=>{s()&&e(c)})),Ny(Ge(l),{type:"chevron",class:"size-2 mx-2 vision-breadcrumb-arrow","aria-hidden":"true"}),C(t,o)})),oe(d),et((e=>Ft(d,1,e)),[()=>Jt(c({className:o(),mode:i()}))]),C(e,d),pe({get state(){return n()},set state(e){n(e),R()},get mode(){return i()},set mode(e){i(e),R()},get href(){return r()},set href(e){r(e),R()},get class(){return o()},set class(e){o(e),R()},get children(){return s()},set children(e){s(e),R()}})}se(Oy,{state:{},mode:{},href:{},class:{},children:{}},[],[],!0);const Tg=Object.assign(Iy,{Item:Oy});var aA=me("<p> </p> <!>",1),lA=me('<div class="text-comp-searchcore-listbox-more">Show more results...</div>'),cA=me('<ul role="listbox"><!> <!></ul>'),uA=me('<div class="vision vision-headings:mb-4 px-2 py-4"><!></div>'),dA=me('<div class="vision vision-headings:mb-4 p-2"><!></div>'),fA=me('<div class="p-4 grid place-items-center text-slate-500">No Options</div>'),hA=me("<div><!></div>");function Uy(e,t){he(t,!0);
1const n=L(t,"noOptions",7),i=yn(pu),{collection:r,detail:o,detailAction:s}=i;var a=j(),l=G(a),c=e=>{var t=hA(),o=ae(t),a=e=>{var t=cA(),n=ae(t);ti(n,17,(()=>r.items),bo,((e,t)=>{Id(e,{get item(){return y(t)},children:(e,n)=>{var i=aA(),r=G(i),o=ae(r,!0);oe(r);var s=Ge(r,2),a=e=>{Tg(e,{children:(e,n)=>{var i=j();ti(G(i),17,(()=>y(t).segments),bo,((e,t)=>{var n=j();Qe(G(n),(()=>Tg.Item),((e,n)=>{n(e,{mode:"segment",children:(e,n)=>{Jd();var i=Im();et((()=>bn(i,y(t)))),C(e,i)},$$slots:{default:!0}})})),C(e,n)})),C(e,i)},$$slots:{default:!0}})};Ke(s,(e=>{var n;null!=(n=y(t).segments)&&n.length&&e(a)})),et((()=>bn(o,y(t).label))),C(e,i)},$$slots:{default:!0}})}));var i=Ge(n,2),o=e=>{Id(e,{item:{label:"Showing more results",href:"#more-results"},children:(e,t)=>{C(e,lA())},$$slots:{default:!0}})};Ke(i,(e=>{r.total>r.size&&e(o)})),oe(t),C(e,t)},l=(e,t)=>{var o=e=>{var t=j(),r=G(t),o=e=>{var t=uA();Ue(ae(t),n),oe(t),C(e,t)},s=(e,t)=>{var n=e=>{var t=dA();yt(ae(t),(()=>i.legacyNoOptions),!1,!1),oe(t),C(e,t)},r=e=>{C(e,fA())};Ke(e,(e=>{i.legacyNoOptions?e(n):e(r,!1)}),t)};Ke(r,(e=>{n()?e(o):e(s,!1)})),C(e,t)};Ke(e,(e=>{r.noOptions&&e(o)}),t)};Ke(o,(e=>{r.options?e(a):e(l,!1)})),oe(t),Nn(t,(e=>null==s?void 0:s(e))),C(e,t)};return Ke(l,(e=>{o.visible&&e(c)})),C(e,a),pe({get noOptions(){return n()},set noOptions(e){n(e),R()}})}se(Uy,{noOptions:{}},[],[],!0);const Ys=Object.assign(Ly,{Input:Dy,Listbox:Uy,Option:Id});function Fy(e,t){he(t,!0);const n=L(t,"children",7),{controller:{show:i}}=yn(uu),{input:r}=yn(pu);ut((()=>{var e;i.value&&(null==(e=r.node)||e.focus({preventScroll:!0}))}));var o=j(),s=G(o),a=e=>{var t=j();Ue(G(t),n),C(e,t)};return Ke(s,(e=>{n()&&e(a)})),C(e,o),pe({get children(){return n()},set children(e){n(e),R()}})}se(Fy,{children:{}},[],[],!0);var pA=ai("<svg><!></svg>");function Ym(e,t){const n=ps(t,["children","$$slots","$$events","$$legacy","$$host"]);var i=pA();let r;yt(ae(i),(()=>'<g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><circle cx="11" cy="11" r="8"/><path d="m21 21l-4.3-4.3"/></g>'),!0,!1),oe(i),et((()=>r=gt(i,r,{viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",...n}))),C(e,i)}se(Ym,{},[],[],!0);var mA=me('<div class="border-b border-b-slate-500 relative"><!> <!></div> <!>',1);function By(e,t){he(t,!0);const n=L(t,"label",7,"Search"),i=L(t,"placeholder",7,"Search"),r=L(t,"noOptions",7),o=nt(t,["$$slots","$$events","$$legacy","$$host","label","placeholder","noOptions"]);var s=j();return Qe(G(s),(()=>es.Content),((e,t)=>{t(e,{class:"max-w-lg w-full",children:(e,t)=>{Ys(e,Dt((()=>o),{children:(e,t)=>{Fy(e,{children:(e,t)=>{var o=mA(),s=G(o),a=ae(s);Qe(a,(()=>Ys.Input),((e,t)=>{t(e,{get"aria-label"(){return n()},get placeholder(){return i()},class:"pe-7"})})),Ym(Ge(a,2),{class:"absolute size-6 end-0 top-1.5"}),oe(s),Qe(Ge(s,2),(()=>Ys.Listbox),((e,t)=>{t(e,{get noOptions(){return r()}})})),C(e,o)},$$slots:{default:!0}})},$$slots:{default:!0}}))},$$slots:{default:!0}})})),C(e,s),pe({get label(){return n()},set label(e="Search"){n(e),R()},get placeholder(){return i()},set placeholder(e="Search"){i(e),R()},get noOptions(){return r()},set noOptions(e){r(e),R()}})}se(By,{label:{},placeholder:{},noOptions:{}},[],[],!0);const Gf=Object.assign(Ey,{Trigger:Vm,FloatingBox:By});var vA=me("<!> <!>",1);function ky(e,t){he(t,!0);let n=L(t,"size",7,"sm"),i=L(t,"pill",7,"true"),r=L(t,"family",7,"outline"),o=L(t,"selectedFamily",7,"solid"),s=nt(t,["$$slots","$$events","$$legacy","$$host","size","pill","family","selectedFamily"]);const a=yn(Aa),{endpointQueryParams:l,...c}=a.getPropsWithPrefix("search"),[u]=os("pageHeader","elements.navtools.search.button");let d=_e((()=>({size:n(),pill:i(),family:r(),selectedFamily:o(),...u()})));return Gf(e,{boundaryContextKey:Xm,children:(e,t)=>{var n=vA(),i=G(n);Qe(i,(()=>Gf.Trigger),((e,t)=>{t(e,Dt((()=>y(d)),(()=>s)))})),Qe(Ge(i,2),(()=>Gf.FloatingBox),((e,t)=>{t(e,Dt(c,{get endpointQueryParams(){return a.searchEndpointQueryParams}}))})),C(e,n)},$$slots:{default:!0}}),pe({get size(){return n()},set size(e="sm"){n(e),R()},get pill(){return i()},set pill(e="true"){i(e),R()},get family(){return r()},set family(e="outline"){r(e),R()},get selectedFamily(){return o()},set selectedFamily(e="solid"){o(e),R()}})}function zy(e,t){he(t,!0);const n=nt(t,["$$slots","$$events","$$legacy","$$host"]),i=yn(Aa);fu(e,Dt({get source(){return i.navigationSource}},(()=>n))),pe()}se(ky,{size:{},pill:{},family:{},selectedFamily:{}},[],[],!0),se(zy,{},[],[],!0);var gA=me('<div class="border-b border-b-slate-500 relative"><!> <!></div> <!>',1);function Hy(e,t){he(t,!0);const n=yn(Aa),{noOptions:i,...r}=n.getPropsWithPrefix("search");Ys(e,Dt(r,{children:(e,t)=>{var r=gA(),o=G(r),s=ae(o);Qe(s,(()=>Ys.Input),((e,t)=>{t(e,{get"aria-label"(){return n.searchLabel},get placeholder(){return n.searchPlaceholder},class:"pe-7"})})),Ym(Ge(s,2),{class:"absolute size-6 end-0 top-1.5"}
1),oe(o),Qe(Ge(o,2),(()=>Ys.Listbox),((e,t)=>{t(e,{noOptions:i})})),C(e,r)},$$slots:{default:!0}})),pe()}function Vy(e,t){he(t,!0);const n=L(t,"children",7),i=yn(Aa);return Jn((()=>{i.noSearchOptions=n()})),pe({get children(){return n()},set children(e){n(e),R()}})}se(Hy,{},[],[],!0),se(Vy,{children:{}},[],[],!0);const bA=Object.assign(x_,{NavToolNavigation:Sy,NavToolSearch:ky,MenuNavigation:zy,MenuSearch:Hy,NoSearchOptionsMessage:Vy}),_s={Elements:bA};var _A=ai("<svg><!></svg>");function $y(e,t){const n=ps(t,["children","$$slots","$$events","$$legacy","$$host"]);var i=_A();let r;yt(ae(i),(()=>'<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 12h16M4 6h16M4 18h16"/>'),!0,!1),oe(i),et((()=>r=gt(i,r,{viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",...n}))),C(e,i)}se($y,{},[],[],!0);var Sc,Ec,wc,Mc,yA=ai("<svg><!></svg>");function Gy(e,t){const n=ps(t,["children","$$slots","$$events","$$legacy","$$host"]);var i=yA();let r;yt(ae(i),(()=>'<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M18 6L6 18M6 6l12 12"/>'),!0,!1),oe(i),et((()=>r=gt(i,r,{viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",...n}))),C(e,i)}se(Gy,{},[],[],!0);class xA{constructor(e){Y(this,"screens",["xs","sm","md","lg","xl","2xl"]),Re(this,Sc,ie("xs")),Re(this,Ec,ie()),Y(this,"queryScreen",(e=>{if(void 0===this.screen)throw Error("Screens not initialized");const t=new RegExp(`^(?<operator>>=?|<=?|==)? *?(?<operand>${this.screens.join("|")})$`),n=e.match(t);if(!n||!n.groups)throw Error("Screens query not valid");const{operator:i="==",operand:r}=n.groups,o=this.screens.indexOf(this.screen),s=this.screens.indexOf(r);return{">":(e,t)=>e>t,">=":(e,t)=>
1e>=t,"<":(e,t)=>e<t,"<=":(e,t)=>e<=t,"==":(e,t)=>e===t}[i](o,s)}));const t=()=>{this.refSensor&&(this.screen=getComputedStyle(this.refSensor).fontFamily,e(this.queryScreen))};ut((()=>{var e;return null==(e=this.refSensor)||e.addEventListener("transitionend",t),()=>{var e;null==(e=this.refSensor)||e.removeEventListener("transitionend",t)}}))}get screen(){return y(N(this,Sc))}set screen(e){X(N(this,Sc),e,!0)}get refSensor(){return y(N(this,Ec))}set refSensor(e){X(N(this,Ec),e,!0)}}Sc=new WeakMap,Ec=new WeakMap;class SA{constructor(e){Re(this,wc,ie()),Re(this,Mc,ie()),Y(this,"collapsed",!1),Y(this,"breakpoint"),ut((()=>{if(!this.innerWidth||!this.outerWidth)return;const t=this.innerWidth>this.outerWidth,n=this.collapsed;t?(this.collapsed=!0,this.breakpoint=this.innerWidth):this.breakpoint&&this.outerWidth>=this.breakpoint&&(this.collapsed=!1,this.breakpoint=void 0),n!==this.collapsed&&e(this.collapsed)}))}get innerWidth(){return y(N(this,wc))}set innerWidth(e){X(N(this,wc),e,!0)}get outerWidth(){return y(N(this,Mc))}set outerWidth(e){X(N(this,Mc),e,!0)}}wc=new WeakMap,Mc=new WeakMap;const EA=e=>new xA(e),wA=e=>new SA(e);var MA=me("<div></div>");function Wy(e,t){he(t,!0);const n=L(t,"children",7),i=L(t,"onScreenChange",7,(()=>{})),r=nt(t,["$$slots","$$events","$$legacy","$$host","children","onScreenChange"]);let o=EA(i()),s=ie(!1);ut((()=>(X(s,!0),()=>{X(s,!1)})));var a=MA();let l;return Xt(a,(e=>o.refSensor=e),(()=>null==o?void 0:o.refSensor)),et((e=>l=gt(a,l,{...r,class:e,inert:"true"})),[()=>Sn("absolute before:w-0 before:block before:transition-all before:delay-75 font-[xs]",{"before:w-px sm:before:w-1 md:before:w-2 lg:before:w-3 xl:before:w-4 2xl:before:w-5 sm:font-[sm] md:font-[md] lg:font-[lg] xl:font-[xl] 2xl:font-[2xl]":y(s)})]),C(e,a),pe({get children(){return n()},set children(e){n(e),R()},get onScreenChange(){return i()},set onScreenChange(e=()=>{}){i(e),R()}})}se(Wy,{children:{},onScreenChange:{}},[],[],!0);var TA=me('<div><div class="min-w-fit"><!></div></div>');function jm(e,t){he(t,!0);const n=L(t,"children",7),i=L(t,"onOverflowChange",7,(()=>{})),r=nt(t,["$$slots","$$events","$$legacy","$$host","children","onOverflowChange"]),o=wA(i());var s=TA();let a;var l=ae(s);return Ue(ae(l),(()=>n()??ct)),oe(l),oe(s),et((()=>a=gt(s,a,{...r}))),po(l,"clientWidth",(e=>o.innerWidth=e)),po(s,"clientWidth",(e=>o.outerWidth=e)),C(e,s),pe({get children(){return n()},set children(e){n(e),R()},get onOverflowChange(){return i()},set onOverflowChange(e=()=>{}){i(e),R()}})}se(jm,{children:{},onOverflowChange:{}},[],[],!0);const Wf=e=>`${e}px`,AA=(e,t)=>{const n=n=>{const i=sl(n);e.every((e=>e&&!Qa(e,i)))&&t()};return document.addEventListener("click",n,!0),()=>{document.removeEventListener("click",n,!0)}},CA=e=>{const t=t=>{if(!e)return;const n=[...e.querySelectorAll('a[href], area[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), iframe, object, embed, *[tabindex], *[contenteditable], summary, details, svg[focusable="true"], svg[tabindex]')].filter((e=>e.tabIndex>=0)).filter((e=>!e.closest("[inert]")));if(0===n.length)return;const i=n[0],r=n[n.length-1],o=cf(),s=n.indexOf(o);switch(t.key){case"Enter":-1===s&&(t.preventDefault(),null==i||i.focus());break;case"Tab":-1===s?(t.preventDefault(),null==i||i.focus()):t.shiftKey?o===i&&(t.preventDefault(),null==r||r.focus()):o===r&&(t.preventDefault(),null==i||i.focus())}};return document.addEventListener("keydown",t),()=>{document.removeEventListener("keydown",t)}},PA=(e,t)=>{const n=n=>{e.includes(n.key)&&t(n.key)};return document.addEventListener("keydown",n),()=>{document.removeEventListener("keydown",n)}};var Tc,Ac,Cc,Pc,Rc,Lc,Dc,p0;let RA=(p0=class{constructor(){Y(this,"sections",new Hr),Y(this,"triggers",new vo),Re(this,Tc,ie()),Re(this,Ac,ie()),Re(this,Cc,ie()),Re(this,Pc,ie(!1)),Re(this,Rc,ie()),Re(this,Lc,ie()),Re(this,Dc,ie()),Y(this,"toggleDropdown",((e,t,n)=>{this.show&&this.activeSection===e&&this.activeTrigger===t?this.closeDropdown(n):this.openDropdown(e,t)})),Y(this,"openDropdown",((e,t)=>
1{this.activeSection=e??this.defaultSection,this.activeTrigger=t,this.show=!0})),Y(this,"closeDropdown",(e=>{this.activeSection=void 0,this.activeTrigger=void 0,!e&&(this.show=!1)})),ut((()=>{this.activeSection=this.defaultSection})),ut((()=>AA([this.refContent,...this.triggers],(()=>this.closeDropdown())))),ut((()=>PA(["Escape"],(()=>{var e;null==(e=this.activeTrigger)||e.focus(),this.closeDropdown()})))),ut((()=>CA(this.refContent)))}get defaultSection(){return y(N(this,Tc))}set defaultSection(e){X(N(this,Tc),e,!0)}get activeSection(){return y(N(this,Ac))}set activeSection(e){X(N(this,Ac),e,!0)}get activeTrigger(){return y(N(this,Cc))}set activeTrigger(e){X(N(this,Cc),e)}get show(){return y(N(this,Pc))}set show(e){X(N(this,Pc),e,!0)}get content(){return y(N(this,Rc))}set content(e){X(N(this,Rc),e,!0)}get refReference(){return y(N(this,Lc))}set refReference(e){X(N(this,Lc),e,!0)}get refContent(){return y(N(this,Dc))}set refContent(e){X(N(this,Dc),e,!0)}},Tc=new WeakMap,Ac=new WeakMap,Cc=new WeakMap,Pc=new WeakMap,Rc=new WeakMap,Lc=new WeakMap,Dc=new WeakMap,p0);var Xn,Yd,Ko,Ic,lo,Nc,Oc;class LA{constructor(e,t){Re(this,Xn),Re(this,Yd,(async()=>{if(N(this,Xn).refReference&&this.refContent)try{const{x:e,y:t}=await N_(N(this,Xn).refReference,this.refContent,{placement:"bottom",middleware:[I_()]});Object.assign(this.refContent.style,{width:Wf(N(this,Xn).refReference.clientWidth),left:Wf(e),top:Wf(t)})}catch(e){console.error("Failed to update position:",e)}})),zt(this,Xn,e),N(this,Xn).defaultSection=t,ut((()=>{if(N(this,Xn).refReference&&this.refContent)return D_(N(this,Xn).refReference,this.refContent,N(this,Yd))})),f_((()=>{N(this,Xn).closeDropdown()}))}get content(){return N(this,Xn).content}set content(e){N(this,Xn).content=e}set refContent(e){N(this,Xn).refContent=e}get refContent(){return N(this,Xn).refContent}}Xn=new WeakMap,Yd=new WeakMap;class DA{}class IA{constructor(e,t){Re(this,Ko),Y(this,"section"),Re(this,Ic,ie()),zt(this,Ko,e),this.section=t,ut((()=>(this.refSection&&N(this,Ko).sections.set(t,this.refSection),()=>N(this,Ko).sections.delete(t))))}get refSection(){return y(N(this,Ic))}set refSection(e){X(N(this,Ic),e,!0)}get show(){return N(this,Ko).activeSection===this.section}}Ko=new WeakMap,Ic=new WeakMap;class NA{constructor(e,t,n){Re(this,lo),Re(this,Nc),Y(this,"section"),Re(this,Oc,ie()),Y(this,"handleInvoke",(e=>{e instanceof KeyboardEvent&&"Enter"!==e.key||(e.preventDefault(),this.refTrigger&&N(this,lo).toggleDropdown(this.section,this.refTrigger,!!N(this,Nc)))})),zt(this,lo,e),zt(this,Nc,t),this.section=n,Rn((()=>{const e=this.refTrigger;if(e)return N(this,lo).triggers.add(e),e.addEventListener("click",this.handleInvoke),e.addEventListener("keydown",this.handleInvoke),()=>{N(this,lo).triggers.delete(e),e.removeEventListener("click",this.handleInvoke),e.removeEventListener("keydown",this.handleInvoke)}}))}get refTrigger(){return y(N(this,Oc))}set refTrigger(e){X(N(this,Oc),e,!0)}get selected(){return this.refTrigger===N(this,lo).activeTrigger}}lo=new WeakMap,Nc=new WeakMap,Oc=new WeakMap;const[OA,pf]=wi("Dropdown"),[UA,ik]=wi("Dropdown.Content"),[FA,BA]=wi("Dropdown.ContentOutlet"),[kA]=wi("Dropdown.Section"),[zA]=wi("Dropdown.Trigger"),HA=()=>{const e=new RA;return OA(e)},VA=e=>{const t=pf(),n=new LA(t,e);return UA(n)},$A=()=>FA(new DA),GA=e=>{const t=pf(),n=new IA(t,e);return kA(n)},Xy=e=>{const t=pf(),n=BA(null),i=new NA(t,n,e);return zA(i)};function qy(e,t){he(t,!0);const n=L(t,"children",7);$A();var i=j();return Ue(G(i),n),C(e,i),pe({get children(){return n()},set children(e){n(e),R()}})}se(qy,{children:{}},[],[],!0);var WA=me("<div><!></div> <!>",1);function Yy(e,t){he(t,!0);const n=L(t,"children",7),i=nt(t,["$$slots","$$events","$$legacy","$$host","children"]);let r=HA();var o=WA(),s=G(o);let a;return Ue(ae(s),(()=>n()??ct)),oe(s),Xt(s,(e=>r.refReference=e),(()=>null==r?void 0:r.refReference)),qy(Ge(s,2),{children:(e,t)=>{var n=j(),i=G(n),o=e=>{var t=j();Ue(G(t),(()=>r.content??ct)),C(e,t)};Ke(i,(e=>{r.show&&e(o)})),C(e,n)},$$slots:{default:!0}}),et((()=>a=gt(s,a,{...i}))),C(e,o),pe({get children(){return n()},set children(e){n(e),R()}})}se(Yy,{children:{}},[],[],!0);var XA=me('<div class="bg-white absolute top-0 left-0 motion-reduce:transition-none shadow-sm"><!></div>');function jy(e,t){he(t,!0);const n=e=>{var t=j(),n=G(t),i=e=>{var t=XA();Ue(ae(t),r),oe(t),Xt(t,(e=>o.refContent=e),(()=>null==o?void 0:o.refContent)),Sl(7,t,(()=>hy),(()=>({duration:200}
1))),C(e,t)};Ke(n,(e=>{r()&&e(i)})),C(e,t)},i=L(t,"defaultSection",7),r=L(t,"children",7);let o=VA(i());return Jn((()=>{o.content=n})),pe({get defaultSection(){return i()},set defaultSection(e){i(e),R()},get children(){return r()},set children(e){r(e),R()}})}se(jy,{defaultSection:{},children:{}},[],[],!0);var qA=me("<div><!></div>");function Km(e,t){he(t,!0);const n=L(t,"section",7),i=L(t,"children",7);let r=GA(n());var o=j(),s=G(o),a=e=>{var t=qA();Ue(ae(t),i),oe(t),Xt(t,(e=>r.refSection=e),(()=>null==r?void 0:r.refSection)),Sl(1,t,(()=>hy),(()=>({duration:200}))),C(e,t)};return Ke(s,(e=>{r.show&&i()&&e(a)})),C(e,o),pe({get section(){return n()},set section(e){n(e),R()},get children(){return i()},set children(e){i(e),R()}})}function Qm(e,t){he(t,!0);const n=L(t,"section",7),i=L(t,"ariaLabelOpen",7),r=L(t,"ariaLabelClose",7),o=nt(t,["$$slots","$$events","$$legacy","$$host","section","ariaLabelOpen","ariaLabelClose"]);let s=Xy(n());const[a]=os("pageHeader","elements.navtools.dropdown.button");let l=_e(a);const c=_e((()=>s.selected?r():i()));return vn(e,Dt({get"aria-label"(){return y(c)}},(()=>y(l)),(()=>o),{get selected(){return s.selected},get ref(){return s.refTrigger},set ref(e){s.refTrigger=e}})),pe({get section(){return n()},set section(e){n(e),R()},get ariaLabelOpen(){return i()},set ariaLabelOpen(e){i(e),R()},get ariaLabelClose(){return r()},set ariaLabelClose(e){r(e),R()}})}se(Km,{section:{},children:{}},[],[],!0),se(Qm,{section:{},ariaLabelOpen:{},ariaLabelClose:{}},[],[],!0);const Ky=Object.assign(Yy,{Content:jy,Section:Km,Trigger:Qm});var Uc,Fc,Bc,kc,zc,Hc,Vc,$c,Gc,Wc,Xc,qc,m0,YA=jA;function jA(e,t,n){var i=null,r=null,o=function(){i&&(clearTimeout(i),r=null,i=null)},s=function(){if(!t)return e.apply(this,arguments);var s=this,a=arguments,l=n&&!i;return o(),r=function(){e.apply(s,a)},i=setTimeout((function(){if(i=null,!l){var e=r;return r=null,e()}}),t),l?r():void 0};return s.cancel=o,s.flush=function(){var e=r;o(),e&&e()},s}let KA=(m0=class{constructor(e){if(Re(this,Uc,ie("expanded")),Re(this,Fc,ie("expanded")),Re(this,Bc,ie("static")),Re(this,kc,ie(Lt({masthead:"expanded",identification:"expanded",navtool:"expanded"}))),Re(this,zc,ie(Lt({masthead:{expanded:{expanded:0,collapsed:0},collapsed:{expanded:0,collapsed:0}},identification:{expanded:{expanded:0,collapsed:0},collapsed:{expanded:0,collapsed:0}},navtool:{expanded:{expanded:0,collapsed:0},collapsed:{expanded:0,collapsed:0}}}))),Re(this,Hc,ie()),Re(this,Vc,ie()),Re(this,$c,ie(0)),Re(this,Gc,ie(!1)),Re(this,Wc,ie("up")),Re(this,Xc,ie(!1)),Y(this,"breakpoint"),Y(this,"fixed"),Re(this,qc,ie(400)),Y(this,"scrollAction",(e=>{if(!this.fixed)return;let t=U_(e,"y");if(!t)return;let{emitter:n,element:i}=t,r=i.scrollTop;const o=()=>{const{scrollTop:t,scrollHeight:n,clientHeight:o}=i,{top:s}=e.getBoundingClientRect();this.setScrollDirectionState(t>r?"down":"up"),r=t,this.positionState=n>o&&t+o===n?"absolute":s<0?"fixed":"static"};return n.addEventListener("scroll",o),o(),{destroy(){n.removeEventListener("scroll",o)}}})),Y(this,"handleScreenChange",(e=>{this.layoutState=e(`<${this.breakpoint}`)?"collapsed":"expanded"})),this.breakpoint=e.breakpoint,this.fixed=e.fixed,this.initLayoutStateTracking(),!this.fixed)return;const t=YA((()=>{this.refPlaceholder&&(this.refPlaceholder.style.height=this.positionedHeight+"px")}),100);let n;ut((()=>{this.positionedHeight&&"expanded"===this.scrollState&&t()})),ut((()=>{if(!this.refPlaceholder||!this.refPositioned)return;if("static"===this.positionState)return void Object.assign(this.refPositioned.style,{width:"",top:""});const e=new ResizeObserver((e=>{if(!this.refPositioned)return;const t=e[0].target.getBoundingClientRect(),n="absolute"===this.positionState?Math.abs(t.top):Math.max(t.top,0);Object.assign(this.refPositioned.style,{width:t.width+"px",top:n+"px"})}));return e.observe(this.refPlaceholder),()=>{e.disconnect()}})),ut((()=>{if(!this.refPlaceholder||"static"===this.positionState)return;const e=new IntersectionObserver((e=>{const t=e[0];this.setIntersectionState(t.isIntersecting)}),{threshold:0});return e.observe(this.refPlaceholder),()=>{e.disconnect()}})),ut((()=>(this.layoutState&&this.scrollState&&(clearTimeout(n),n=setTimeout((()=>{document.documentElement.style.setProperty(`--page-header-layout-${this.scrollState}-height`,this.positionedHeight+"px");const e=new CustomEvent("vision:page-header:height-change",{detail:{state:this.scrollState,height:this.positionedHeight}});document.documentElement.dispatchEvent(e)}),this.transitionDuration+10)),()=>{clearTimeout(n)}))),ut((()=>{document.documentElement.setAttribute("data-scroll-direction",this.scrollDirectionState);const e=new CustomEvent("vision:page-header:scroll-direction-change",{detail:{direction:this.scrollDirectionState}});document.documentElement.dispatchEvent(e)})),setTimeout((()=>{this.enableDirectionState=!0}),600)}get scrollState(){return y(N(this,Uc))}set scrollState(e){X(N(this,Uc),e,!0)}get layoutState(){return y(N(this,Fc))}set layoutState(e){X(N(this,Fc),e,!0)}get positionState(){return y(N(this,Bc))}set positionState(e){X(N(this,Bc),e,!0)}get sectionLayoutState(){return y(N(this,kc))}set sectionLayoutState(e){X(N(this,kc),e,!0)}get sectionPresenceMap(){return y(N(this,zc))}set sectionPresenceMap(e){X(N(this,zc),e,!0)}get refPlaceholder(){return y(N(this,Hc))}set refPlaceholder(e){X(N(this,Hc),e,!0)}get refPositioned(){return y(N(this,Vc))}set refPositioned(e){X(N(this,Vc),e,!0)}get positionedHeight(){return y(N(this,$c))}set positionedHeight(e){X(N(this,$c),e,!0)}get intersectionState(){return y(N(this,Gc))}set intersectionState(e){X(N(this,Gc),e,!0)}get scrollDirectionState(){return y(N(this,Wc))}set scrollDirectionState(e){X(N(this,Wc),e,!0)}get enableDirectionState(){return y(N(this,Xc))}set enableDirectionState(e){X(N(this,Xc),e,!0)}get transitionDuration(){return y(N(this,qc))}set transitionDuration(e){X(N(this,qc),e,!0)}setIntersectionState(e){this.intersectionState=e,this.determineScrollState()}setScrollDirectionState(e){this.enableDirectionState&&this.scrollDirectionState!==e&&(this.scrollDirectionState=e,this.determineScrollState())}determineScrollState(){"static"===this.positionState||this.intersectionState||"down"!==this.scrollDirectionState?this.scrollState="expanded":this.scrollState="collapsed"}initLayoutStateTracking(){if("number"==typeof this.breakpoint){const e=new zm(`(min-width: ${this.breakpoint}px)`);ut((()=>{this.layoutState=e.current?"expanded":"collapsed"}))}}updateSectionPresenceMap(e,t,n,i){"both"===t&&"both"===n?(this.sectionPresenceMap[e].expanded.expanded+=i,this.sectionPresenceMap[e].expanded.collapsed+=i,this.sectionPresenceMap[e].collapsed.expanded+=i,this.sectionPresenceMap[e].collapsed.collapsed+=i):"both"===t&&"both"!==n?(this.sectionPresenceMap[e].expanded[n]+=i,this.sectionPresenceMap[e].collapsed[n]+=i):"both"!==t&&"both"===n?(this.sectionPresenceMap[e][t].expanded+=i,this.sectionPresenceMap[e][t].collapsed+=i):"both"!==t&&"both"!==n&&(this.sectionPresenceMap[e][t][n]+=i)}isSectionPresent(e){var t;const n=this.sectionLayoutState[e];return(null==(t=this.sectionPresenceMap[e])?void 0:t[n])[this.scrollState]>0}get breakpointIsScreen(){return"string"==typeof this.breakpoint}},Uc=new WeakMap,Fc=new WeakMap,Bc=new WeakMap,kc=new WeakMap,zc=new WeakMap,Hc=new WeakMap,Vc=new WeakMap,$c=new WeakMap,Gc=new WeakMap,Wc=new WeakMap,Xc=new WeakMap,qc=new WeakMap,m0);var co,ra,Vi,uo,Yc,jc,fo,oa,sa,Kc,up;class QA{constructor(e,t){Re(this,co),Y(this,"section"),Re(this,ra,ie("expanded")),Y(this,"handleOverflowChange",(e=>{X(N(this,ra),e?"collapsed":"expanded",!0)})),zt(this,co,e),this.section=t,ut((()=>{const e="collapsed"===N(this,co).layoutState,t="collapsed"===y(N(this,ra)),n="masthead"!==this.section&&"collapsed"===N(this,co).sectionLayoutState.masthead;this.layoutOverflowState=e||t||n?"collapsed":y(N(this,ra))}))}get layoutOverflowState(){return N(this,co).sectionLayoutState[this.section]}set layoutOverflowState(e){N(this,co).sectionLayoutState[this.section]=e}}co=new WeakMap,ra=new WeakMap;class ZA{constructor(e,t,n){Re(this,Vi),Re(this,uo),Y(this,"displayLayoutState"),Y(this,"displayScrollState"),Re(this,Yc,ie(!1)),Re(this,jc,ie(!1)),Y(this,"sway",((e,{delay:t=0,duration:n=N(this,Vi).transitionDuration}={})=>{const i=e.firstElementChild,r=i instanceof HTMLElement?i.offsetHeight:0;return N(this,Vi).transitionDuration!==n&&(N(this,Vi).transitionDuration=n),{delay:t,duration:n,css:e=>`\n\t\t\t\toverflow:hidden;\n\t\t\t\topacity:${Math.max(0,2*e-1)};\n\t\t\t\theight:${Math.min(2*e*r,r)}px;\n\t\t\t`}})),zt(this,Vi,e),zt(this,uo,t),this.displayLayoutState=n.split("_")[1],this.displayScrollState=n.split("_")[3],Rn((()=>(N(this,Vi).updateSectionPresenceMap(N(this,uo).section,this.displayLayoutState,this.displayScrollState,1),()=>{N(this,Vi).updateSectionPresenceMap(N(this,uo).section,this.displayLayoutState,this.displayScrollState,-1)}))),ut((()=>{this.layoutMatched="both"===this.displayLayoutState||N(this,uo).layoutOverflowState===this.displayLayoutState,this.scrollMatched="both"===this.displayScrollState||N(this,Vi).scrollState===this.displayScrollState}))}get layoutMatched(){return y(N(this,Yc))}set layoutMatched(e){X(N(this,Yc),e,!0)}get scrollMatched(){return y(N(this,jc))}set scrollMatched(e){X(N(this,jc),e,!0)}get section(){return N(this,uo).section}get intersectionSwitch(){return N(this,Vi).intersectionState}}Vi=new WeakMap,uo=new WeakMap,Yc=new WeakMap,jc=new WeakMap;class JA{constructor(e){Re(this,fo),zt(this,fo,e)}get mastheadVisible(){return N(this,fo).isSectionPresent("masthead")&&"expanded"===N(this,fo).sectionLayoutState.masthead}get layoutSwitch(){return[N(this,fo).layoutState,N(this,fo).sectionLayoutState.navtool]}}fo=new WeakMap;class eC{constructor(e){Re(this,Kc),Re(this,oa),Re(this,sa),zt(this,oa,e),zt(this,sa,new EM((()=>N(this,Kc,up)),N(this,oa).transitionDuration)),Rn((()=>{N(this,sa).setImmediately(N(this,Kc,up))}))}get show(){return!N(this,sa).current}}oa=new WeakMap,sa=new WeakMap,Kc=new WeakSet,up=function(){return N(this,oa).isSectionPresent("identification")};const[tC,mu,nC]=wi("Layout"),[iC,rC]=wi("Layout.Section"),[oC]=wi("Layout.DisplayState"),[sC]=wi("Layout.Menu"),[aC]=wi("Layout.Home"),lC=e=>{if(nC())return mu();const t=new KA(e);return tC(t)},Zm=e=>{const t=new QA(mu(),e);return iC(t)},cC=e=>{const t=mu(),n=rC(),i=new ZA(t,n,e);return oC(i)},uC=()=>{const e=mu(),t=new JA(e);return sC(t)},dC=()=>{const e=mu(),t=new eC(e);return aC(t)};var fC=me("<div><!></div>"),hC=me("<div><!> <!></div>");function Qy(e,t){he(t,!0);const n=L(t,"class",7),i=L(t,"children",7),r=L(t,"fixed",7,!1),o=L(t,"breakpoint",7,"sm"),s=nt(t,["$$slots","$$events","$$legacy","$$host","class","children","fixed","breakpoint"]),a=_t({base:["w-full","bg-comp-page-header bg-opacity-comp-page-header text-comp-page-header"],variants:{position:{static:"",f
1ixed:"fixed",absolute:"absolute"}},defaultVariants:{position:"static"}}),l=lC({fixed:r(),breakpoint:o()});var c=hC();let u;var d=ae(c),h=e=>{Wy(e,{get onScreenChange(){return l.handleScreenChange}})};return Ke(d,(e=>{l.breakpointIsScreen&&e(h)})),La(Ge(d,2),{children:(e,t)=>{var n=fC(),r=ae(n);Ky(r,{children:(e,t)=>{var n=j();Ue(G(n),(()=>i()??ct)),C(e,n)},$$slots:{default:!0}}),oe(n),Xt(n,(e=>l.refPositioned=e),(()=>null==l?void 0:l.refPositioned)),et((e=>Ft(n,1,e)),[()=>Jt(a({position:l.positionState}))]),po(n,"clientHeight",(e=>l.positionedHeight=e)),C(e,n)},$$slots:{default:!0}}),oe(c),Xt(c,(e=>l.refPlaceholder=e),(()=>null==l?void 0:l.refPlaceholder)),Nn(c,(e=>{var t;return null==(t=l.scrollAction)?void 0:t.call(l,e)})),et((()=>u=gt(c,u,{class:"relative z-20",...s}))),C(e,c),pe({get class(){return n()},set class(e){n(e),R()},get children(){return i()},set children(e){i(e),R()},get fixed(){return r()},set fixed(e=!1){r(e),R()},get breakpoint(){return o()},set breakpoint(e="sm"){o(e),R()}})}se(Qy,{class:{},children:{},fixed:{},breakpoint:{}},[],[],!0);var pC=me("<div><!></div>");function yr(e,t){he(t,!0);const n=L(t,"children",7),i=L(t,"class",7),r=nt(t,["$$slots","$$events","$$legacy","$$host","children","class"]),o=_t({base:"w-full mx-auto max-w-[calc(var(--vision-local-container-max-width,100%)+2*var(--vision-local-container-spacing,0rem))]",variants:{size:{screen:"",page:"[--vision-local-container-max-width:var(--vision-comp-container-page-max-width)]",main:"[--vision-local-container-max-width:var(--vision-comp-container-main-max-width)]"},column:{false:"",true:"px-comp-container md:px-comp-container-md [--vision-local-container-spacing:var(--vision-comp-container-spacing)] w-comp-container md:[--vision-local-container-spacing:var(--vision-comp-container-md-spacing)]"}},defaultVariants:{column:!0}});var s=pC();let a;var l=ae(s),c=e=>{var t=j();Ue(G(t),n),C(e,t)};return Ke(l,(e=>{n()&&e(c)})),oe(s),et(((e,t)=>a=gt(s,a,{...e,class:t})),[()=>wn(r,o.variants),()=>o({...xn(r,o.variants),className:i()})]),C(e,s),pe({get children(){return n()},set children(e){n(e),R()},get class(){return i()},set class(e){i(e),R()}})}function An(e,t){he(t,!0);const n=L(t,"class",7),i=L(t,"children",7),r=L(t,"ontypography",7,(()=>{}));let o=_e((()=>Sn(n()??"")));ut((()=>{r()(new CustomEvent("typography",{detail:{classes:y(o).split(" ")}}))}));var s=j();return Ue(G(s),(()=>i()??ct)),C(e,s),pe({get class(){return n()},set class(e){n(e),R()},get children(){return i()},set children(e){i(e),R()},get ontypography(){return r()},set ontypography(e=()=>{}){r(e),R()}})}se(yr,{children:{},class:{}},[],[],!0),se(An,{class:{},children:{},ontypography:{}},[],[],!0);var mC=me('<div class="grid grid-cols-none place-items-stretch"><!></div>'),vC=me("<div><!></div>");function Zy(e,t){he(t,!0);const n=L(t,"class",7),i=L(t,"children",7),r=nt(t,["$$slots","$$events","$$legacy","$$host","class","children"]),o=Zm("masthead");var s=vC();let a;return jm(ae(s),{get onOverflowChange(){return o.handleOverflowChange},children:(e,t)=>{yr(e,{size:"page",column:"true",children:(e,t)=>{var n=mC();Ue(ae(n),(()=>i()??ct)),oe(n),C(e,n)},$$slots:{default:!0}})},$$slots:{default:!0}}),oe(s),et((e=>a=gt(s,a,{...r,class:e})),[()=>Sn("min-h-comp-page-header-masthead bg-comp-page-header-masthead bg-opacity-comp-page-header-masthead text-comp-page-header-masthead",n())]),C(e,s),pe({get class(){return n()},set class(e){n(e),R()},get children(){return i()},set children(e){i(e),R()}})}se(Zy,{class:{},children:{}},[],[],!0);var gC=me('<div class="grid grid-cols-none place-items-stretch"><!></div>'),bC=me("<div><!></div>");function Jy(e,t){he(t,!0);const n=L(t,"class",7),i=L(t,"children",7),r=nt(t,["$$slots","$$events","$$legacy","$$host","class","children"]);Zm("identification");var o=bC();let s;return yr(ae(o),{size:"page",column:"true",children:(e,t)=>{var n=gC();Ue(ae(n),(()=>i()??ct)),oe(n),C(e,n)},$$slots:{default:!0}}),oe(o),et((e=>s=gt(o,s,{...r,class:e})),[()=>Sn("bg-comp-page-header-identification bg-opacity-comp-page-header-identification",n())]),C(e,o),pe({get class(){return n()},set class(e){n(e),R()},get children(){return i()},set children(e){i(e),R()}})}se(Jy,{class:{},children:{}},[],[],!0);var _C=me('<div class="grid grid-cols-none place-items-stretch"><!></div>'),yC=me("<div><!></div>");function ex(e,t){he(t,!0);const n=L(t,"class",7),i=L(t,"children",7),r=nt(t,["$$slots","$$events","$$legacy","$$host","class","children"]),o=Zm("navtool");var s=yC();let a;return jm(ae(s),{get onOverflowChange(){return o.handleOverflowChange},children:(e,t)=>{yr(e,{size:"page",column:"true",children:(e,t)=>{var n=_C();Ue(ae(n),(()=>i()??ct)),oe(n),C(e,n)},$$slots:{default:!0}})},$$slots:{default:!0}}),oe(s),et((e=>a=gt(s,a,{...r,class:e})),[()=>Sn("bg-comp-page-header-navtool bg-opacity-comp-page-header-navtool",n())]),C(e,s),pe({get class(){return n()},set class(e){n(e),R()},get children(){return i()},set children(e){i(e),R()}})}se(ex,{class:{},children:{}},[],[],!0);var xC=me("<div><!></div>");function tx(e,t){he(t,!0);const n=L(t,"class",7),i=L(t,"children",7),r=L(t,"display",7,"layout_both_scroll_both"),o=nt(t,["$$slots","$$events","$$legacy","$$host","class","children","display"]),s=cC(r());var a=j(),l=G(a),c=e=>{var t=j();OE(G(t),(()=>s.intersectionSwitch),(e=>{var t=j(),n=G(t),r=e=>{var t=xC();let n;Ue(ae(t),(()=>i()??ct)),oe(t),et((()=>n=gt(t,n,{...o,class:"[grid-area:1/1]"}))),Sl(3,t,(()=>s.sway)),C(e,t)};Ke(n,(e=>{s.scrollMatched&&e(r)})),C(e,t)})),C(e,t)};return Ke(l,(e=>{s.layoutMatched&&e(c)})),C(e,a),pe({get class(){return n()},set class(e){n(e),R()},get children(){return i()},set children(e){i(e),R()},get display(){return r()},set display(e="layout_both_scroll_both"){r(e),R()}})}function nx(e,t){he(t,!0);const n=L(t,"class",7),i=L(t,"children",7),r=_e((()=>Sn("py-comp-page-header-layout-masthead gap-comp-page-header-layout-masthead",n())));return hf(e,{get class(){return y(r)},children:(e,t)=>{var n=j();Ue(G(n),(()=>i()??ct)),C(e,n)},$$slots:{default:!0}}),pe({get class(){return n()},set class(e){n(e),R()},get children(){return i()},set children(e){i(e),R()}})}se(tx,{class:{},children:{},display:{}},[],[],!0),se(nx,{class:{},children:{}},[],[],!0);const SC=new RegExp("([\\p{Ll}\\d])(\\p{Lu})","gu"),EC=new RegExp("(\\p{Lu})([\\p{Lu}][\\p{Ll}])","gu"),wC=new RegExp("(\\d)\\p{Ll}|(\\p{L})\\d","u"),MC=/[^\p{L}\d]+/giu,Ag="$1\0$2",Cg="";function ix(e){let t=e.trim();t=t.replace(SC,Ag).replace(EC,Ag),t=t.replace(MC,"\0");let n=0,i=t.length;for(;"\0"===t.charAt(n);)n++;if(n===i)return[];for(;"\0"===t.charAt(i-1);)i--;return t.slice(n,i).split(/\0/g)}function TC(e){const t=ix(e);for(let e=0;e<t.length;e++){const n=t[e],i=wC.exec(n);if(i){const r=i.index+(i[1]??i[2]).length;t.splice(e,1,n.slice(0,r),n.slice(r))}}return t}function AC(e,t){const[n,i,r]=PC(e,t);return n+i.map(CC(null==t?void 0:t.locale)).join((null==t?void 0:t.delimiter)??" ")+r}function rx(e,t){return AC(e,{delimiter:"-",...t})}function CC(e){return!1===e?e=>e.toLowerCase():t=>t.toLocaleLowerCase(e)}function PC(e,t={}){const n=t.split??(t.separateNumbers?TC:ix),i=t.prefixCharacters??"",r=t.suffixCharacters??"";let o=0,s=e.length;for(;o<e.length;){const t=e.charAt(o);if(!i.includes(t))break;o++}for(;s>o;){const t=s-1,n=e.charAt(t);if(!r.includes(n))break;s=t}return[e.slice(0,o),n(e.slice(o,s)),e.slice(s)]}var RC=me("<div><!></div>");function ox(e,t){he(t,!0);const n=L(t,"layout",7),i=L(t,"scroll",7),r=L(t,"children",7),o=L(t,"class",7),s=nt(t,["$$slots","$$events","$$legacy","$$host","layout","scroll","children","class"]);let a=_e((()=>rx([n(),i()].join(" "))));const l=_t({base:"grid grid-cols-none",variants:{state:{"layout-expanded-scroll-expanded":"pt-comp-page-header-identification-layoutExpanded-scrollExpanded-top pb-comp-page-header-identification-layoutExpanded-scrollExpanded-bottom","layout-expanded-scroll-collapsed":"pt-comp-page-header-identification-layoutExpanded-scrollCollapsed-top pb-comp-page-header-identification-layoutExpanded-scrollCollapsed-bottom","layout-collapsed-scroll-expanded":"pt-comp-page-header-identification-layoutCollapsed-scrollExpanded-top pb-comp-page-header-identification-layoutCollapsed-scrollExpanded-bottom","layout-collapsed-scroll-collapsed":"pt-comp-page-header-identification-layoutCollapsed-scrollCollapsed-top pb-comp-page-header-identification-layoutCollapsed-scrollCollapsed-bottom"}}});var c=RC();let u;return Ue(ae(c),(()=>r()??ct)),oe(c),et((e=>u=gt(c,u,{...s,"data-state":y(a),class:e})),[()=>l({state:y(a),className:o()})]),C(e,c),pe({get layout(){return n()},set layout(e){n(e),R()},get scroll(){return i()},set scroll(e){i(e),R()},get children(){return r()},set children(e){r(e),R()},get class(){return o()},set class(e){o(e),R()}})}se(ox,{layout:{},scroll:{},children:{},class:{}},[],[],!0);var LC=me("<div><!></div>");function Jm(e,t){he(t,!0);const n=L(t,"children",7),i=L(t,"class",7),r=nt(t,["$$slots","$$events","$$legacy","$$host","children","class"]),o=_t({base:["[grid-area:1/1] min-w-11"],variants:{x:{start:"justify-self-start",center:"justify-self-center",end:"justify-self-end"}
1,y:{start:"place-self-start",center:"place-self-center",end:"place-self-end"}},defaultVariants:{x:"start",y:"start"}});var s=LC();let a;return Ue(ae(s),(()=>n()??ct)),oe(s),et(((e,t)=>a=gt(s,a,{...e,class:t})),[()=>wn(r,o.variants),()=>o({...xn(r,o.variants),className:i()})]),C(e,s),pe({get children(){return n()},set children(e){n(e),R()},get class(){return i()},set class(e){i(e),R()}})}function sx(e,t){he(t,!0);let n=L(t,"href",7),i=L(t,"class",7),r=L(t,"children",7),o=nt(t,["$$slots","$$events","$$legacy","$$host","href","class","children"]);var s=j();return nf(G(s),(()=>n()?"a":"span"),!1,((e,t)=>{let s;et((()=>s=gt(e,s,{...o,href:n(),class:i()})));var a=j();Ue(G(a),(()=>r()??ct)),C(t,a)})),C(e,s),pe({get href(){return n()},set href(e){n(e),R()},get class(){return i()},set class(e){i(e),R()},get children(){return r()},set children(e){r(e),R()}})}function ev(e,t){he(t,!0);let n=L(t,"layout",7),i=L(t,"scroll",7),r=L(t,"intent",7),o=L(t,"class",7),s=nt(t,["$$slots","$$events","$$legacy","$$host","layout","scroll","intent","class"]),a=_e((()=>rx([r(),n(),i()].join(" "))));const l=_t({base:"block w-dvw",variants:{state:{"primary-layout-expanded-scroll-expanded":"max-w-comp-page-header-identification-layoutExpanded-scrollExpanded-primary","primary-layout-expanded-scroll-collapsed":"max-w-comp-page-header-identification-layoutExpanded-scrollCollapsed-primary","primary-layout-collapsed-scroll-expanded":"max-w-comp-page-header-identification-layoutCollapsed-scrollExpanded-primary","primary-layout-collapsed-scroll-collapsed":"max-w-comp-page-header-identification-layoutCollapsed-scrollCollapsed-primary","secondary-layout-expanded-scroll-expanded":"max-w-comp-page-header-identification-layoutExpanded-scrollExpanded-secondary","secondary-layout-expanded-scroll-collapsed":"max-w-comp-page-header-identification-layoutExpanded-scrollCollapsed-secondary","secondary-layout-collapsed-scroll-expanded":"max-w-comp-page-header-identification-layoutCollapsed-scrollExpanded-secondary","secondary-layout-collapsed-scroll-collapsed":"max-w-comp-page-header-identification-layoutCollapsed-scrollCollapsed-secondary"}}}),c=_e((()=>l({state:y(a),className:o()})));return sx(e,Dt((()=>s),{get class(){return y(c)}})),pe({get layout(){return n()},set layout(e){n(e),R()},get scroll(){return i()},set scroll(e){i(e),R()},get intent(){return r()},set intent(e){r(e),R()},get class(){return o()},set class(e){o(e),R()}})}function ax(e,t){let n=nt(t,["$$slots","$$events","$$legacy","$$host"]);ev(e,Dt({intent:"primary"},(()=>n)))}function lx(e,t){let n=nt(t,["$$slots","$$events","$$legacy","$$host"]);ev(e,Dt({intent:"secondary"},(()=>n)))}se(Jm,{children:{},class:{}},[],[],!0),se(sx,{href:{},class:{},children:{}},[],[],!0),se(ev,{layout:{},scroll:{},intent:{},class:{}},[],[],!0),se(ax,{},[],[],!0),se(lx,{},[],[],!0);const DC=Object.assign(ox,{Item:Jm,Primary:ax,Secondary:lx});function cx(e,t){he(t,!0);const n=L(t,"children",7),i=nt(t,["$$slots","$$events","$$legacy","$$host","children"]);return DC(e,Dt((()=>i),{children:(e,t)=>{var i=j();Ue(G(i),(()=>n()??ct)),C(e,i)},$$slots:{default:!0}})),pe({get children(){return n()},set children(e){n(e),R()}})}function ux(e,t){he(t,!0);const n=L(t,"children",7);var i=j();return Qe(G(i),(()=>hf.Item),((e,t)=>{t(e,{align:"start",children:(e,t)=>{var i=j();Ue(G(i),(()=>n()??ct)),C(e,i)},$$slots:{default:!0}})})),C(e,i),pe({get children(){return n()},set children(e){n(e),R()}})}function dx(e,t){he(t,!0);const n=L(t,"children",7);var i=j();return Qe(G(i),(()=>hf.Item),((e,t)=>{t(e,{align:"end",children:(e,t)=>{var i=j();Ue(G(i),(()=>n()??ct)),C(e,i)},$$slots:{default:!0}})})),C(e,i),pe({get children(){return n()},set children(e){n(e),R()}})}se(cx,{children:{}},[],[],!0),se(ux,{children:{}},[],[],!0),se(dx,{children:{}},[],[],!0);var IC=ai("<svg><!></svg>");function fx(e,t){const n=ps(t,["children","$$slots","$$events","$$legacy","$$host"]);var i=IC();let r;yt(ae(i),(()=>'<g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><path d="M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8"/><path d="M3 10a2 2 0 0 1 .709-1.528l7-5.999a2 2 0 0 1 2.582 0l7 5.999A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"/></g>'),!0,!1),oe(i),et((()=>r=gt(i,r,{viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",...n}))),C(e,i)}function hx(e,t){he(t,!0);const n=nt(t,["$$slots","$$events","$$legacy","$$host"]);let i=dC();var r=j(),o=G(r),s=e=>{vn(e,Dt({icon:"true"},(()=>n),{children:(e,t)=>{fx(e,{})},$$slots:{default:!0}}
1))};Ke(o,(e=>{i.show&&e(s)})),C(e,r),pe()}function px(e,t){he(t,!0);const n=L(t,"children",7),i=nt(t,["$$slots","$$events","$$legacy","$$host","children"]);let r=pf(),o=uC();ut((()=>{o.layoutSwitch&&r.closeDropdown()}));var s=j();return Qe(G(s),(()=>Ky.Content),((e,t)=>{t(e,Dt((()=>i),{children:(e,t)=>{yr(e,{size:"page",column:"true",class:"my-5",children:(e,t)=>{var i=j();Ue(G(i),(()=>n()??ct),(()=>({mastheadVisible:o.mastheadVisible}))),C(e,i)},$$slots:{default:!0}})},$$slots:{default:!0}}))})),C(e,s),pe({get children(){return n()},set children(e){n(e),R()}})}se(fx,{},[],[],!0),se(hx,{},[],[],!0),se(px,{children:{}},[],[],!0);const mt=Object.assign(Qy,{MastheadSection:Zy,IdentificationSection:Jy,NavToolSection:ex,DisplayState:tx,Masthead:nx,Identification:cx,IdentificationItem:Jm,NavTool:xy,AlignStart:ux,AlignEnd:dx,Home:hx,Menu:px,MenuTrigger:Qm,MenuSection:Km});var Qc,Zc,v0,NC=me('<div><div class="h-full transition-all w-0 bg-comp-reading-progress-bar-bar bg-opacity-comp-reading-progress-bar-bar"></div></div>');function mx(e,t){he(t,!0);const n=L(t,"class",7),i=nt(t,["$$slots","$$events","$$legacy","$$host","class"]),r=_t({base:"bg-comp-reading-progress-bar bg-opacity-comp-reading-progress-bar h-comp-reading-progress-bar"});let o=ie(0);const s=e=>{const t=()=>{const e=document.documentElement.scrollTop||document.body.scrollTop,t=document.documentElement.scrollHeight-document.documentElement.clientHeight;X(o,e/t*100)};return window.addEventListener("scroll",t),t(),{destroy(){window.removeEventListener("scroll",t)}}};var a=NC();let l;var c=ae(a);return oe(a),Nn(a,(e=>null==s?void 0:s())),et(((e,t,n)=>{l=gt(a,l,{...e,class:t,role:"progressbar","aria-valuemin":"0","aria-valuemax":"100","aria-valuenow":n,"aria-label":"Reading Progress"}),la(c,`width:${y(o)??""}%`)}),[()=>wn(i,r.variants),()=>r({...xn(i,r.variants),className:n()}),()=>y(o).toFixed(2)]),C(e,a),pe({get class(){return n()},set class(e){n(e),R()}})}se(mx,{class:{}},[],[],!0);let OC=(v0=class{constructor(){Re(this,Qc,ie()),Re(this,Zc,ie())}get x(){return y(N(this,Qc))}set x(e){X(N(this,Qc),e,!0)}get y(){return y(N(this,Zc))}set y(e){X(N(this,Zc),e,!0)}ping(){console.log("pong")}},Qc=new WeakMap,Zc=new WeakMap,v0);const[UC,FC,BC]=wi("Ident.Wc"),vx=()=>{if(BC())return FC();const e=new OC;return UC(e)};function cd(e,t){he(t,!0);const n=L(t,"children",7);let i=vx();var r=j();return Ue(G(r),(()=>n()??ct),(()=>i)),C(e,r),pe({get children(){return n()},set children(e){n(e),R()}})}se(cd,{children:{}},[],[],!0);var kC=me("<!> <!>",1),zC=me("<!> <!>",1),HC=me("<!> <!>",1),VC=me("<!> <!>",1),$C=me("<!> <!>",1),GC=me("<!> <!>",1),WC=me("<!> <!>",1),XC=me("<!> <!>",1),qC=me("<!> <!>",1),YC=me("<!> <!> <!>",1),jC=me('<div class="flex"><!> <!></div>'),KC=me('<div class="flex"><!> <!></div>'),QC=me("<!> <!> <!>",1),ZC=me("<!> <!>",1),JC=me("<!> ",1),e3=me("<!> ",1),t3=me("<!> <!>",1),n3=me('<div class="flex"><!> <!></div>'),i3=me("<!> <!>",1),r3=me("<!> <!>",1),o3=me("<!> <!>",1),s3=me('<hr class="my-4 invisible"> <div class="flex flex-col items-start gap-2"><!></div>',1),a3=me("<!> <!>",1),l3=me("<!> <!>",1),c3=me("<!> <!> <!> <!> <!>",1),u3=me("<!> <!> <!> <!> <!>",1);function gx(e,t){he(t,!0);const n=L(t,"navigationMenuOpenLabel",7,"Menu"),i=L(t,"navigationMenuOpenAriaLabel",7,"Menu"),r=L(t,"navigationMenuCloseLabel",7,"Close"),o=L(t,"navigationMenuCloseAriaLabel",7,"Close"),s=L(t,"mastheadStart",7),a=L(t,"mastheadEnd",7),l=L(t,"identificationPrimaryExpanded",7),c=L(t,"identificationPrimaryCollapsed",7),u=L(t,"identificationSecondaryExpanded",7),d=L(t,"identificationSecondaryCollapsed",7),h=L(t,"navtoolEnd",7),p=L(t,"navtoolSearchButton",7),f=L(t,"menuEnd",7),m=L(t,"menuSearchButton",7),g=L(t,"menuFooter",7),v=L(t,"menuFooterNavigation",7),b=L(t,"menuFooterSearch",7),_=L(t,"isFixedHeader",7,!1),x=L(t,"showReadingProgressBar",7,!1),S=L(t,"showSecondaryLogoOnScrolldown",7,!1),w=L(t,"slots",7),M=L(t,"triggers",7),E=L(t,"dropdownSections",7),T=L(t,"popoverSections",7),A=L(t,"navigationEnd",7,!1),P=nt(t,["$$slots","$$events","$$legacy","$$host","navigationMenuOpenLabel","navigationMenuOpenAri
1aLabel","navigationMenuCloseLabel","navigationMenuCloseAriaLabel","mastheadStart","mastheadEnd","identificationPrimaryExpanded","identificationPrimaryCollapsed","identificationSecondaryExpanded","identificationSecondaryCollapsed","navtoolEnd","navtoolSearchButton","menuEnd","menuSearchButton","menuFooter","menuFooterNavigation","menuFooterSearch","isFixedHeader","showReadingProgressBar","showSecondaryLogoOnScrolldown","slots","triggers","dropdownSections","popoverSections","navigationEnd"]);return Wm(e,{axis:"x",children:(e,t)=>{var T=j();Qe(G(T),(()=>_s.Elements),((e,t)=>{t(e,Dt((()=>P),{children:(e,t)=>{mt(e,{get fixed(){return _()},children:(e,t)=>{var _=u3(),T=G(_),R=e=>{var t=j();Qe(G(t),(()=>mt.MastheadSection),((e,t)=>{t(e,{children:(e,t)=>{var n=HC(),i=G(n);Qe(i,(()=>mt.DisplayState),((e,t)=>{t(e,{display:"layout_expanded_scroll_expanded",children:(e,t)=>{var n=j();Qe(G(n),(()=>mt.Masthead),((e,t)=>{t(e,{children:(e,t)=>{var n=kC(),i=G(n);Qe(i,(()=>mt.AlignStart),((e,t)=>{t(e,{children:(e,t)=>{var n=j();Ue(G(n),s,(()=>({layout:"layoutExpanded",scroll:"scrollExpanded"}))),C(e,n)},$$slots:{default:!0}})})),Qe(Ge(i,2),(()=>mt.AlignEnd),((e,t)=>{t(e,{children:(e,t)=>{var n=j();Ue(G(n),a,(()=>({layout:"layoutExpanded",scroll:"scrollExpanded"}))),C(e,n)},$$slots:{default:!0}})})),C(e,n)},$$slots:{default:!0}})})),C(e,n)},$$slots:{default:!0}})})),Qe(Ge(i,2),(()=>mt.DisplayState),((e,t)=>{t(e,{display:"layout_collapsed_scroll_expanded",children:(e,t)=>{var n=j();Qe(G(n),(()=>mt.Masthead),((e,t)=>{t(e,{children:(e,t)=>{var n=zC(),i=G(n);Qe(i,(()=>mt.AlignStart),((e,t)=>{t(e,{children:(e,t)=>{var n=j();Ue(G(n),s,(()=>({layout:"layoutCollapsed",scroll:"scrollExpanded"}))),C(e,n)},$$slots:{default:!0}})})),Qe(Ge(i,2),(()=>mt.AlignEnd),((e,t)=>{t(e,{children:(e,t)=>{var n=j();Ue(G(n),a,(()=>({layout:"layoutCollapsed",scroll:"scrollExpanded"}))),C(e,n)},$$slots:{default:!0}})})),C(e,n)},$$slots:{default:!0}})})),C(e,n)},$$slots:{default:!0}})})),C(e,n)},$$slots:{default:!0}})})),C(e,t)};Ke(T,(e=>{var t,n,i,r;(null!=(t=w())&&t.has("masthead-start")||null!=(n=w())&&n.has("masthead-start-collapsed")||null!=(i=w())&&i.has("masthead-end")||null!=(r=w())&&r.has("masthead-end-collapsed"))&&e(R)}));var L=Ge(T,2);Qe(L,(()=>mt.IdentificationSection),((e,t)=>{t(e,{children:(e,t)=>{var n=j(),i=G(n),r=e=>{var t=XC(),n=G(t);cd(n,{children:(e,t=ct)=>{var n=GC(),i=G(n);Qe(i,(()=>mt.DisplayState),((e,n)=>{n(e,{display:"layout_expanded_scroll_expanded",children:(e,n)=>{var i=j();Qe(G(i),(()=>mt.Identification),((e,n)=>{n(e,{class:"pt-8 pb-4",children:(e,n)=>{var i=VC(),r=G(i);Qe(r,(()=>mt.IdentificationItem),((e,t)=>{t(e,{children:(e,t)=>{var n=j();Ue(G(n),l),C(e,n)},$$slots:{default:!0}})}));var o=Ge(r,2),s=e=>{var n=j(),i=G(n);const r=_e((()=>t().x||"end")),o=_e((()=>t().y||"end"));Qe(i,(()=>mt.IdentificationItem),((e,t)=>{t(e,{get x(){return y(r)},get y(){return y(o)},children:(e,t)=>{var n=j();Ue(G(n),u),C(e,n)},$$slots:{default:!0}})})),C(e,n)};Ke(o,(e=>{var t;null!=(t=w())&&t.has("identification-secondary-expanded")&&e(s)})),C(e,i)},$$slots:{default:!0}})})),C(e,i)},$$slots:{default:!0}})})),Qe(Ge(i,2),(()=>mt.DisplayState),((e,n)=>{n(e,{display:"layout_expanded_scroll_collapsed",children:(e,n)=>{var i=j();Qe(G(i),(()=>mt.Identification),((e,n)=>{n(e,{class:"pt-5 pb-3",children:(e,n)=>{var i=$C(),r=G(i);Qe(r,(()=>mt.IdentificationItem),((e,t)=>{t(e,{children:(e,t)=>{var n=j();Ue(G(n),c),C(e,n)},$$slots:{default:!0}})}));var o=Ge(r,2),s=e=>{var n=j(),i=G(n);const r=_e((()=>t().x||"end")),o=_e((()=>t().y||"end"));Qe(i,(()=>mt.IdentificationItem),((e,t)=>{t(e,{get x(){return y(r)},get y(){return y(o)},children:(e,t)=>{var n=j();Ue(G(n),u),C(e,n)},$$slots:{default:!0}})})),C(e,n)};Ke(o,(e=>{var t;null!=(t=w())&&t.has("identification-secondary-expanded")&&e(s)})),C(e,i)},$$slots:{default:!0}})})),C(e,i)},$$slots:{default:!0}})})),C(e,n)},$$slots:{default:!0}}),cd(Ge(n,2),{children:(e,t=ct)=>{var n=j();Qe(G(n),(()=>mt.DisplayState),((e,t)=>{t(e,{display:"layout_collapsed_scroll_both",children:(e,t)=>{var n=j();Qe(G(n),(()=>mt.Identification),((e,t)=>{t(e,{class:"pt-5 pb-3",children:(e,t)=>{var n=WC(),i=G(n);Qe(i,(()=>mt.IdentificationItem),((e,t)=>{t(e,{children:(e,t)=>{var n=j();Ue(G(n),c),C(e,n)},$$slots:{default:!0}})}));var r=Ge(i,2),o=e=>{var t=j();Qe(G(t),(()=>mt.IdentificationItem),((e,t)=>{t(e,{x:"end",children:(e,t)=>{var n=j();Ue(G(n),d),C(e,n)},$$slots:{default:!0}})})),C(e,t)};Ke(r,(e=>{var t;null!=(t=w())&&t.has("identification-secondary-collapsed")&&e(o)})),C(e,n)},$$slots:{default:!0}})})),C(e,n)},$$slots:{default:!0}})})),C(e,n)},$$slots:{default:!0}}),C(e,t)},o=e=>{var t=YC(),n=G(t);cd(n,{children:(e,t=ct)=>{var n=j();Qe(G(n),(()=>mt.DisplayState),((e,n)=>{n(e,{display:"layout_expanded_scroll_expanded",children:(e,n)=>{var i=j();Qe(G(i),(()=>mt.Identification),((e,n)=>{n(e,{class:"pt-8 pb-4",children:(e,n)=>{var i=qC(),r=G(i);Qe(r,(()=>mt.IdentificationItem),((e,t)=>{t(e,{children:(e,t)=>{var n=j();Ue(G(n),l),C(e,n)},$$slots:{default:!0}})}));var o=Ge(r,2),s=e=>{var n=j(),i=G(n);const r=_e((()=>t().x||"end")),o=_e((()=>t().y||"end"));Qe(i,(()=>mt.IdentificationItem),((e,t)=>{t(e,{get x(){return y(r)},get y(){return y(o)},children:(e,t)=>{var n=j();Ue(G(n),u),C(e,n)},$$slots:{default:!0}})})),C(e,n)};Ke(o,(e=>{var t;null!=(t=w())&&t.has("identification-secondary-expanded")&&e(s)})),C(e,i)},$$slots:{default:!0}})})),C(e,i)},$$slots:{default:!0}})})),C(e,n)},$$slots:{default:!0}});var i=Ge(n,2);Qe(i,(()=>mt.DisplayState),((e,t)=>{t(e,{display:"layout_expanded_scroll_collapsed",children:(e,t)=>{var n=j();Qe(G(n),(()=>mt.Identification),((e,t)=>{t(e,{class:"pt-5 pb-3",children:(e,t)=>{var n=j();Qe(G(n),(()=>mt.IdentificationItem),((e,t)=>{t(e,{children:(e,t)=>{var n=j();Ue(G(n),c),C(e,n)},$$slots:{default:!0}})})),C(e,n)},$$slots:{default:!0}})})),C(e,n)},$$slots:{default:!0}})})),Qe(Ge(i,2),(()=>mt.DisplayState),((e,t)=>{t(e,{display:"layout_collapsed_scroll_both",children:(e,t)=>{var n=j();Qe(G(n),(()=>mt.Identification),((e,t)=>{t(e,{class:"pt-5 pb-3",children:(e,t)=>{var n=j();Qe(G(n),(()=>mt.IdentificationItem),((e,t)=>{t(e,{children:(e,t)=>{var n=j();Ue(G(n),c),C(e,n)},$$slots:{default:!0}})})),C(e,n)},$$slots:{default:!0}})})),C(e,n)},$$slots:{default:!0}})})),C(e,t)};Ke(i,(e=>{S()?e(r):e(o,!1)})),C(e,n)},$$slots:{default:!0}})}));var P=Ge(L,2);Qe(P,(()=>mt.NavToolSection),((e,t)=>{t(e,{children:(e,t)=>{var s=o3(),a=G(s);Qe(a,(()=>mt.DisplayState),((e,t)=>{t(e,{display:"layout_expanded_scroll_both",children:(e,t)=>{var n=j();Qe(G(n),(()=>mt.NavTool),((e,t)=>{t(e,{children:(e,t)=>{var n=ZC(),i=G(n);Qe(i,(()=>mt.AlignStart),((e,t)=>{t(e,{children:(e,t)=>{var n=j(),i=G(n),r=e=>{var t=jC(),n=ae(t);Qe(n,(()=>mt.Home),((e,t)=>{t(e,{href:"#home",family:"ghost",size:"sm",pill:"true",collapseInline:"start"})})),Qe(Ge(n,2),(()=>_s.Elements.NavToolNavigation),((e,t)=>{t(e,{})})),oe(t),C(e,t)};Ke(i,(e=>{A()||e(r)})),C(e,n)},$$slots:{default:!0}})})),Qe(Ge(i,2),(()=>mt.AlignEnd),((e,t)=>{t(e,{children:(e,t)=>{var n=QC(),i=G(n),r=e=>{var t=KC(),n=ae(t);Qe(n,(()=>mt.Home),((e,t)=>{t(e,{href:"#home",family:"ghost",size:"sm",pill:"true",collapseInline:"start"})})),Qe(Ge(n,2),(()=>_s.Elements.NavToolNavigation),((e,t)=>{t(e,{})})),oe(t),C(e,t)};Ke(i,(e=>{A()&&e(r)}));var o=Ge(i,2);Ue(o,h);var s=Ge(o,2),a=e=>{var t=j(),n=G(t),i=_e((()=>{var e;return null==(e=M())?void 0:e.get("navtool-search-button")}));Qe(n,(()=>_s.Elements.NavToolSearch),((e,t)=>{t(e,Dt({size:"sm",pill:"true",family:"outline",selectedFamily:"solid",nowrap:"true"},(()=>y(i)),{children:(e,t)=>{var n=j();Ue(G(n),p),C(e,n)},$$slots:{default:!0}}
1))})),C(e,t)};Ke(s,(e=>{var t;null!=(t=w())&&t.has("navtool-search-button")&&e(a)})),C(e,n)},$$slots:{default:!0}})})),C(e,n)},$$slots:{default:!0}})})),C(e,n)},$$slots:{default:!0}})})),Qe(Ge(a,2),(()=>mt.DisplayState),((e,t)=>{t(e,{display:"layout_collapsed_scroll_both",children:(e,t)=>{var s=j();Qe(G(s),(()=>mt.NavTool),((e,t)=>{t(e,{children:(e,t)=>{var s=r3(),a=G(s);Qe(a,(()=>mt.AlignStart),((e,t)=>{t(e,{children:(e,t)=>{var s=n3(),a=ae(s);Qe(a,(()=>mt.Home),((e,t)=>{t(e,{href:"#home",family:"ghost",size:"sm",pill:"true",collapseInline:"start"})})),Qe(Ge(a,2),(()=>mt.MenuTrigger),((e,t)=>{t(e,{section:"navigation",family:"link",selectedFamily:"link",size:"sm",pill:"true",class:"only:-ms-[var(--inline-x-spacing)]",get ariaLabelOpen(){return i()},get ariaLabelClose(){return o()},nowrap:"true",children:(e,t)=>{var i=t3(),o=G(i);Qe(o,(()=>vn.Selected),((e,t)=>{t(e,{children:(e,t)=>{var n=JC(),i=G(n);Gy(i,{class:"size-4","aria-hidden":"true"});var o=Ge(i);et((()=>bn(o,` ${r()??""}`))),C(e,n)},$$slots:{default:!0}})})),Qe(Ge(o,2),(()=>vn.Unselected),((e,t)=>{t(e,{children:(e,t)=>{var i=e3(),r=G(i);$y(r,{class:"size-4","aria-hidden":"true"});var o=Ge(r);et((()=>bn(o,` ${n()??""}`))),C(e,i)},$$slots:{default:!0}})})),C(e,i)},$$slots:{default:!0}})})),oe(s),C(e,s)},$$slots:{default:!0}})})),Qe(Ge(a,2),(()=>mt.AlignEnd),((e,t)=>{t(e,{children:(e,t)=>{var n=i3(),i=G(n);Ue(i,f);var r=Ge(i,2),o=e=>{var t=j(),n=G(t),i=_e((()=>{var e;return null==(e=M())?void 0:e.get("menu-search-button")}));Qe(n,(()=>mt.MenuTrigger),((e,t)=>{t(e,Dt({section:"search",family:"outline",selectedFamily:"solid",size:"sm",pill:"true"},(()=>y(i)),{children:(e,t)=>{var n=j();Ue(G(n),m),C(e,n)},$$slots:{default:!0}}))})),C(e,t)};Ke(r,(e=>{var t;null!=(t=w())&&t.has("menu-search-button")&&e(o)})),C(e,n)},$$slots:{default:!0}})})),C(e,s)},$$slots:{default:!0}})})),C(e,s)},$$slots:{default:!0}})})),C(e,s)},$$slots:{default:!0}})}));var N=Ge(P,2);Qe(N,(()=>mt.Menu),((e,t)=>{t(e,{defaultSection:"navigation",children:(e,t)=>{var n=c3(),i=G(n);Qe(i,(()=>mt.MenuSection),((e,t)=>{t(e,{section:"navigation",children:(e,t)=>{var n=a3(),i=G(n);Qe(i,(()=>_s.Elements.MenuNavigation),((e,t)=>{t(e,{})}));var r=Ge(i,2),o=e=>{var t=s3(),n=Ge(G(t),2);Ue(ae(n),v),oe(n),C(e,t)};Ke(r,(e=>{var t;null!=(t=w())&&t.has("menu-footer-navigation")&&e(o)})),C(e,n)},$$slots:{default:!0}})}));var r=Ge(i,2);Qe(r,(()=>mt.MenuSection),((e,t)=>{t(e,{section:"search",children:(e,t)=>{var n=l3(),i=G(n);Qe(i,(()=>_s.Elements.MenuSearch),((e,t)=>{t(e,{})})),Ue(Ge(i,2),b),C(e,n)},$$slots:{default:!0}})}));var o=Ge(r,2);ti(o,17,(()=>Array.from(E().keys())),bo,((e,t)=>{var n=j();Qe(G(n),(()=>mt.MenuSection),((e,n)=>{n(e,{get section(){return y(t)},children:(e,n)=>{var i=j();yt(G(i),(()=>`<slot name="dropdown-section-${y(t)}" />`),!1,!1),C(e,i)},$$slots:{default:!0}})})),C(e,n)}));var s=Ge(o,2);Ue(s,g);var a=Ge(s,2),l=e=>{var t=j();Qe(G(t),(()=>mt.Identification),((e,t)=>{t(e,{class:"pt-5",children:(e,t)=>{var n=j();Qe(G(n),(()=>mt.IdentificationItem),((e,t)=>{t(e,{x:"end",children:(e,t)=>{var n=j();Ue(G(n),d),C(e,n)},$$slots:{default:!0}})})),C(e,n)},$$slots:{default:!0}})})),C(e,t)};Ke(a,(e=>{var t;!S()&&null!=(t=w())&&t.has("identification-secondary-collapsed")&&e(l)})),C(e,n)},$$slots:{default:!0}})}));var D=Ge(N,2),I=e=>{mx(e,{})};Ke(D,(e=>{x()&&e(I)})),C(e,_)},$$slots:{default:!0}})},$$slots:{default:!0}}))})),C(e,T)},$$slots:{default:!0}}),pe({get navigationMenuOpenLabel(){return n()},set navigationMenuOpenLabel(e="Menu"){n(e),R()},get navigationMenuOpenAriaLabel(){return i()},set navigationMenuOpenAriaLabel(e="Menu"){i(e),R()},get navigationMenuCloseLabel(){return r()},set navigationMenuCloseLabel(e="Close"){r(e),R()},get navigationMenuCloseAriaLabel(){return o()},set navigationMenuCloseAriaLabel(e="Close"){o(e),R()},get mastheadStart(){return s()},set mastheadStart(e){s(e),R()},get mastheadEnd(){return a()},set mastheadEnd(e){a(e),R()},get identificationPrimaryExpanded(){return l()},set identificationPrimaryExpanded(e){l(e),R()},get identificationPrimaryCollapsed(){return c()},set identificationPrimaryCollapsed(e){c(e),R()},get identificationSecondaryExpanded(){return u()},set identificationSecondaryExpanded(e){u(e),R()},get identificationSecondaryCollapsed(){return d()},set identificationSecondaryCollapsed(e){d(e),R()},get navtoolEnd(){return h()},set navtoolEnd(e){h(e),R()},get navtoolSearchButton(){return p()},set navtoolSearchButton(e){p(e),R()},get menuEnd(){return f()},set menuEnd(e){f(e),R()},get menuSearchButton(){return m()},set menuSearchButton(e){m(e),R()},get menuFooter(){return g()},set menuFooter(e){g(e),R()},get menuFooterNavigation(){return v()},set menuFooterNavigation(e){v(e),R()},get menuFooterSearch(){return b()},set menuFooterSearch(e){b(e),R()},get isFixedHeader(){return _()},set isFixedHeader(e=!1){_(e),R()},get showReadingProgressBar(){return x()},set showReadingProgressBar(e=!1){x(e),R()},get showSecondaryLogoOnScrolldown(){return S()},set showSecondaryLogoOnScrolldown(e=!1){S(e),R()},get slots(){return w()},set slots(e){w(e),R()},get triggers(){return M()},set triggers(e){M(e),R()},get dropdownSections(){return E()},set dropdownSections(e){E(e),R()},get popoverSections(){return T()},set popoverSections(e){T(e),R()},get navigationEnd(){return A()},set navigationEnd(e=!1){A(e),R()}})}se(gx,{navigationMenuOpenLabel:{}
1,navigationMenuOpenAriaLabel:{},navigationMenuCloseLabel:{},navigationMenuCloseAriaLabel:{},mastheadStart:{},mastheadEnd:{},identificationPrimaryExpanded:{},identificationPrimaryCollapsed:{},identificationSecondaryExpanded:{},identificationSecondaryCollapsed:{},navtoolEnd:{},navtoolSearchButton:{},menuEnd:{},menuSearchButton:{},menuFooter:{},menuFooterNavigation:{},menuFooterSearch:{},isFixedHeader:{},showReadingProgressBar:{},showSecondaryLogoOnScrolldown:{},slots:{},triggers:{},dropdownSections:{},popoverSections:{},navigationEnd:{}},[],[],!0);var d3=me('<div class="flex items-center gap-[inherit] justify-end"><!></div>');function bx(e,t){he(t,!0);let n,i=L(t,"dropdownButtonConnectEvents",7),r=L(t,"children",7);Rn((()=>{n.addEventListener("dropdown-button-connect",(e=>{let t=Xy(e.detail.section);t.refTrigger=e.detail.ref,e.detail.dropdownTrigger=t})),i().forEach((e=>{e()}))}));var o=d3();return Ue(ae(o),(()=>r()??ct)),oe(o),Xt(o,(e=>n=e),(()=>n)),C(e,o),pe({get dropdownButtonConnectEvents(){return i()},set dropdownButtonConnectEvents(e){i(e),R()},get children(){return r()},set children(e){r(e),R()}})}se(bx,{dropdownButtonConnectEvents:{},children:{}},[],[],!0);var f3=me("<div><!></div>");function _x(e,t){he(t,!0);let n,i=L(t,"identConnectEvents",7),r=L(t,"children",7),o=vx();Rn((()=>{n.addEventListener("ident-connect",(e=>{e.detail.ident=o}
1)),i().forEach((e=>{e()}))}));var s=f3();return Ue(ae(s),(()=>r()??ct)),oe(s),Xt(s,(e=>n=e),(()=>n)),C(e,s),pe({get identConnectEvents(){return i()},set identConnectEvents(e){i(e),R()},get children(){return r()},set children(e){r(e),R()}})}function h3(e,t){he(t,!0);const n=L(t,"searchEndpointQueryParams",7),i=nt(t,["$$slots","$$events","$$legacy","$$host","searchEndpointQueryParams"]),r=_e((()=>Ei(i)));let o=new vo,s=new Hr,a=new vo,l=new vo,c=new Hr,u=new Hr;return Rn((()=>(t.$$host.querySelectorAll("[slot]").forEach((e=>{o.add(e.slot)})),t.$$host.addEventListener("trigger",(e=>{s.set(e.detail.slot,xn(e.detail,"icon","aria-label"))})),t.$$host.addEventListener("dropdown-button-register",(e=>{const{section:t,dispatchConnectEvent:n}=e.detail;c.set(t,`dropdown-section-${t}`),a.add(n)})),t.$$host.addEventListener("ident-register",(e=>{const{dispatchConnectEvent:t}=e.detail;l.add(t)})),t.$$host.addEventListener("popover-button",(e=>{const t=e.detail.section;u.set(t,`popover-section-${t}`)})),()=>{o.clear(),s.clear(),c.clear(),u.clear()}))),gx(e,Dt({get searchEndpointQueryParams(){return n()}},(()=>y(r)),{slots:o,triggers:s,dropdownSections:c,popoverSections:u,mastheadStart:(e,n)=>{let i=()=>null==n?void 0:n().layout;var r=j(),o=G(r),s=e=>{var n=j();Wt(G(n),t,"masthead-start",{}),C(e,n)},a=(e,n)=>{var r=e=>{var n=j();Wt(G(n),t,"masthead-start-collapsed",{}),C(e,n)};Ke(e,(e=>{"layoutCollapsed"===i()&&e(r)}),n)};Ke(o,(e=>{"layoutExpanded"===i()?e(s):e(a,!1)})),C(e,r)},mastheadEnd:(e,n)=>{let i=()=>null==n?void 0:n().layout;var r=j(),o=G(r),s=e=>{var n=j();Wt(G(n),t,"masthead-end",{}),C(e,n)},a=(e,n)=>{var r=e=>{var n=j();Wt(G(n),t,"masthead-end-collapsed",{}),C(e,n)};Ke(e,(e=>{"layoutCollapsed"===i()&&e(r)}),n)};Ke(o,(e=>{"layoutExpanded"===i()?e(s):e(a,!1)})),C(e,r)},identificationPrimaryExpanded:e=>{var n=j();Wt(G(n),t,"identification-primary-expanded",{}),C(e,n)},identificationPrimaryCollapsed:e=>{var n=j();Wt(G(n),t,"identification-primary-collapsed",{}),C(e,n)},identificationSecondaryExpanded:e=>{_x(e,{identConnectEvents:l,children:(e,n)=>{var i=j();Wt(G(i),t,"identification-secondary-expanded",{}),C(e,i)},$$slots:{default:!0}})},identificationSecondaryCollapsed:e=>{var n=j();Wt(G(n),t,"identification-secondary-collapsed",{}),C(e,n)},navtoolEnd:e=>{var n=j();Wt(G(n),t,"navtool-end",{}),C(e,n)}
1,navtoolSearchButton:e=>{var n=j();Wt(G(n),t,"navtool-search-button",{}),C(e,n)},menuEnd:e=>{bx(e,{dropdownButtonConnectEvents:a,children:(e,n)=>{var i=j();Wt(G(i),t,"menu-end",{}),C(e,i)},$$slots:{default:!0}})},menuSearchButton:e=>{var n=j();Wt(G(n),t,"menu-search-button",{}),C(e,n)},menuFooter:e=>{var n=j();Wt(G(n),t,"menu-footer",{}),C(e,n)},menuFooterNavigation:e=>{var n=j();Wt(G(n),t,"menu-footer-navigation",{}),C(e,n)},menuFooterSearch:e=>{var n=j();Wt(G(n),t,"menu-footer-search",{}),C(e,n)},$$slots:{mastheadStart:!0,mastheadEnd:!0,identificationPrimaryExpanded:!0,identificationPrimaryCollapsed:!0,identificationSecondaryExpanded:!0,identificationSecondaryCollapsed:!0,navtoolEnd:!0,navtoolSearchButton:!0,menuEnd:!0,menuSearchButton:!0,menuFooter:!0,menuFooterNavigation:!0,menuFooterSearch:!0}})),pe({get searchEndpointQueryParams(){return n()},set searchEndpointQueryParams(e){n(e),R()}})}se(_x,{identConnectEvents:{},children:{}},[],[],!0),customElements.define("vision-page-header",se(h3,{navigationMenuOpenLabel:{attribute:"navigation-menu-open-label",reflect:!0,type:"String"},navigationMenuOpenAriaLabel:{attribute:"navigation-menu-open-aria-label",reflect:!0,type:"String"},navigationMenuCloseLabel:{attribute:"navigation-menu-close-label",reflect:!0,type:"String"},navigationMenuCloseAriaLabel:{attribute:"navigation-menu-close-aria-label",reflect:!0,type:"String"},searchEndpointQueryParams:{attribute:"search-endpoint-query-params",reflect:!0,type:"Object"},showSecondaryLogoOnScrolldown:{attribute:"show-secondary-logo-on-scrolldown",reflect:!0,type:"Boolean"}},["masthead-start","masthead-start-collapsed","masthead-end","masthead-end-collapsed","identification-primary-expanded","identification-primary-collapsed","identification-secondary-expanded","identification-secondary-collapsed","navtool-end","navtool-search-button","menu-end","menu-search-button","menu-footer","menu-footer-navigation","menu-footer-search"],[],!0,Mt()));var p3=me("<!> <!>",1),m3=me("<!> <!>",1);function v3(e,t){he(t,!0);const n=L(t,"children",7),i=nt(t,["$$slots","$$events","$$legacy","$$host","children"]),r=_e((()=>Ei(i,["variant","selectedVariant"]))),o=_t({base:["justify-center [:where(&_svg:not(.ov-svg))]:size-[1.25em] [:where(&_svg:not(.ov-svg))]:shrink-0","[:where(&)_svg:not(.ov-svg):where(:not(&>svg))]:inline-block [:where(&)_svg:not(.ov-svg):where(:not(&>svg))]:align-[-0.125rem]"],variants:{icon:{false:'inline-flex gap-2 [:where(&>svg:not([class*="self-"]))]:translate-y-[calc(0.5lh-0.625em)]',true:"aspect-square inline-grid place-items-center [:where(&_svg:not(.ov-svg))]:[grid-area:1/1]"}},defaultVariants:{icon:!1}});ut((()=>{if(!y(r).slot)return;const e=new CustomEvent("popover-button",{detail:y(r),bubbles:!0,composed:!0});t.$$host.dispatchEvent(e)}));const s=_e((()=>o({icon:y(r).icon})));return An(e,{ontypography:t.$$host.handleTypography,get class(){return y(s)},children:(e,n)=>{es(e,{disableOthers:!0,children:(e,n)=>{var i=m3(),o=G(i);Qe(o,(()=>es.Trigger),((e,n)=>{n(e,Dt((()=>y(r)),{children:(e,n=ct)=>{var i=p3(),o=G(i);Wt(o,t,"default",{});var s=Ge(o,2),a=e=>{const t=_e((()=>Sn({"rotate-180 -translate-y-px":n()})));du(e,{width:"20",height:"20",get class(){return`size-5 ${y(t)??""}`}})};Ke(s,(e=>{y(r).chevron&&e(a)})),C(e,i)},$$slots:{default:!0}}))})),Qe(Ge(o,2),(()=>es.Content),((e,n)=>{n(e,{class:"w-full max-w-80",children:(e,n)=>{var i=j();Wt(G(i),t,"popover-content",{}),C(e,i)},$$slots:{default:!0}})})),C(e,i)},$$slots:{default:!0}})},$$slots:{default:!0}}),pe({get children(){return n()},set children(e){n(e),R()}})}function g3(e,t){var n=j();Wt(G(n),t,"default",{}),C(e,n)}customElements.define("vision-popover-button",se(v3,{children:{}},["default","popover-content"],[],!0,Mt({slot:"navtool-end"}))),customElements.define("vision-popover-content",se(g3,{},["default"],[],!0,Mt({slot:"popover-content"})));var b3=me("<!> <!>",1);function _3(e,t){he(t,!0);const n=L(t,"children",7),i=nt(t,["$$slots","$$events","$$legacy","$$host","children"]),r=_e((()=>Ei(i,["variant","selectedVariant"]))),o=_t({base:["justify-center [:where(&_svg:not(.ov-svg))]:size-[1.25em] [:where(&_svg:not(.ov-svg))]:shrink-0","[:where(&)_svg:not(.ov-svg):where(:not
1(&>svg))]:inline-block [:where(&)_svg:not(.ov-svg):where(:not(&>svg))]:align-[-0.125rem]"],variants:{icon:{false:'inline-flex gap-2 [:where(&>svg:not([class*="self-"]))]:translate-y-[calc(0.5lh-0.625em)]',true:"aspect-square inline-grid place-items-center [:where(&_svg:not(.ov-svg))]:[grid-area:1/1]"}},defaultVariants:{icon:!1}});let s=ie(!1),a=ie(void 0),l=ie(void 0);ut((()=>{var e;X(s,!0===(null==(e=y(l))?void 0:e.selected))}));const c=()=>{var e;const t=new CustomEvent("dropdown-button-connect",{detail:{section:y(r).section,get ref(){return y(a)},get dropdownTrigger(){return y(l)},set dropdownTrigger(e){X(l,e,!0)}},bubbles:!0,composed:!0});null==(e=y(a))||e.dispatchEvent(t)};Rn((async()=>{await su(),(()=>{var e;const t=new CustomEvent("dropdown-button-register",{detail:{section:y(r).section,dispatchConnectEvent:c},bubbles:!0,composed:!0});null==(e=y(a))||e.dispatchEvent(t)})(),c()}));const u=_e((()=>o({icon:y(r).icon})));return An(e,{ontypography:t.$$host.handleTypography,get class(){return y(u)},children:(e,n)=>{vn(e,Dt((()=>y(r)),{get selected(){return y(s)},get ref(){return y(a)},set ref(e){X(a,e,!0)},children:(e,n)=>{var i=b3(),o=G(i);Wt(o,t,"default",{});var a=Ge(o,2),l=e=>{const t=_e((()=>Sn({"rotate-180 -translate-y-px":y(s)})));du(e,{width:"20",height:"20",get class(){return`size-5 ${y(t)??""}`}})};Ke(a,(e=>{y(r).chevron&&e(l)})),C(e,i)},$$slots:{default:!0}}))},$$slots:{default:!0}}),pe({get children(){return n()},set children(e){n(e),R()}})}function y3(e,t){he(t,!0);const n=nt(t,["$$slots","$$events","$$legacy","$$host"]),i=_e((()=>Ei(n)));Rn((()=>{t.$$host.slot=`dropdown-section-${y(i).section}`}));var r=j();Wt(G(r),t,"default",{}),C(e,r),pe()}customElements.define("vision-dropdown-button",se(_3,{children:{}},["default"],[],!0,Mt({slot:"menu-end"}))),customElements.define("vision-dropdown-content",se(y3,{},["default"],[],!0,Mt()));var x3=me("<!><!>",1);function S3(e,t){he(t,!0);const n=L(t,"children",7),i=nt(t,["$$slots","$$events","$$legacy","$$host","children"]),r=_e((()=>(()=>{const e=cu(i),t={};for(const[n,i]of Object.entries(e))/^aria[A-Z]/.test(n)?t[`aria-${n.slice(4).toLowerCase()}`]=i:t[n]=i;return t})())),o=_e((()=>y(r).pointer)),s=_e((()=>$0(y(r),["pointer"]))),a=_t({base:["justify-center [:where(&_svg:not(.ov-svg))]:size-[1.25em] [:where(&_svg:not(.ov-svg))]:shrink-0","[:where(&)_svg:not(.ov-svg):where(:not(&>svg))]:inline-block [:where(&)_svg:not(.ov-svg):where(:not(&>svg))]:align-[-0.125rem]"],variants:{icon:{false:'inline-flex gap-2 [:where(&>svg:not([class*="self-"]))]:translate-y-[calc(0.5lh-0.625em)]',true:"aspect-square inline-grid place-items-center [:where(&_svg:not(.ov-svg))]:[grid-area:1/1]"}},defaultVariants:{icon:!1}});let l=ie(void 0);t.$$host.focus=()=>{var e;null==(e=y(l))||e.focus()};const c=_e((()=>a({icon:y(s).icon})));return An(e,{ontypography:t.$$host.handleTypography,get class(){return y(c)},children:(e,n)=>{const i=_e((()=>({"group/pointer":y(o)})));vn(e,Dt((()=>y(s)),{get class(){return y(i)},get ref(){return y(l)},set ref(e){X(l,e,!0)},children:(e,n)=>{var i=x3(),r=G(i);Wt(r,t,"default",{});var s=Ge(r),a=e=>{gr(e,{direction:"end",class:"text-current h-5 translate-y-0.5"})};Ke(s,(e=>{y(o)&&e(a)})),C(e,i)},$$slots:{default:!0}}))},$$slots:{default:!0}}),pe({get children(){return n()},set children(e){n(e),R()}})}function yx(e,t){he(t,!0);let n=L(t,"class",7),i=L(t,"variant",7),r=nt(t,["$$slots","$$events","$$legacy","$$host","class","variant"]);const o=_t({variants:{override:{true:["disabled:bg-slate-300 disabled:border-opacity-0 disabled:text-white","before:inset-[calc(-1*var(--vision-comp-page-header-masthead-button-border-width))] before:border-comp-page-header-masthead-button before:border-opacity-comp-page-header-masthead-button before:bg-comp-page-header-masthead-button-before before:bg-opacity-comp-page-header-masthead-button-before","before:opacity-comp-page-header-masthead-button-before","hover:before:opacity-comp-page-header-masthead-button-hover-before","active:before:opacity-comp-page-header-masthead-button-active-before","focus-visible:before:opacity-comp-page-header-masthead-button-focus-before","disabled:before:opacity-0"],false:""},variant:{default:"",1:"",2:"",3:"",4:"",5:"",6:""}},compoundVariants:[{override:[!0,"true"],variant:"default",class:["border-comp-page-header-masthead-button border-opacity-comp-page-header-masthead-button rounded-comp-page-header-masthead-button","bg-comp-page-header-masthead-button bg-opacity-comp-page-header-masthead-button text-comp-page-header-masthead-button","ring-comp-page-header-masthead-button","hover:border-comp-page-header-masthead-button-hover hover:border-opacity-comp-page-header-masthead-button-hover hover:rounded-comp-page-header-masthead-button-hover","hover:bg-comp-page-header-masthead-button-hover hover:bg-opacity-comp-page-header-masthead-button-hover hover:text-comp-page-header-masthead-button-hover","active:border-comp-page-header-masthead-button-active active:border-opacity-comp-page-header-masthead-button-active active:rounded-comp-page-header-masthead-button-active","active:bg-comp-page-header-masthead-button-active active:bg-opacity-comp-page-header-masthead-button-active active:text-comp-page-header-masthead-button-active","focus-visible:border-comp-page-header-masthead-button-focus focus-visible:border-opacity-comp-page-header-masthead-button-focus focus-visible:rounded-comp-page-header-masthead-button-focus","focus-visible:bg-comp-page-header-masthead-button-focus focus-visible:bg-opacity-comp-page-header-masthead-button-focus focus-visible:text-comp-page-header-masthead-button-focus","[--focus-outline-color:rgb(var(--vision-comp-page-header-masthead-button-outline-color)/0.75)]"]},{override:[!0,"true"],variant:"1",class:["border-comp-page-header-masthead-button-1 border-opacity-comp-page-header-masthead-button-1 rounded-comp-page-header-masthead-button-1","bg-comp-page-header-masthead-button-1 bg-opacity-comp-page-header-masthead-button-1 text-comp-page-header-masthead-button-1","ring-comp-page-header-masthead-button-1","hover:border-comp-page-header-masthead-button-1-hover hover:border-opacity-comp-page-header-masthead-button-1-hover hover:rounded-comp-page-header-masthead-button-1-hover","hover:bg-comp-page-header-masthead-button-1-hover hover:bg-opacity-comp-page-header-masthead-button-1-hover hover:text-comp-page-header-masthead-button-1-hover","active:border-comp-page-header-masthead-button-1-active active:border-opacity-comp-page-header-masthead-button-1-active active:rounded-comp-page-header-masthead-button-1-active","active:bg-comp-page-header-masthead-button-1-active active:bg-opacity-comp-page-header-masthead-button-1-active active:text-comp-page-header-masthead-button-1-active","focus-visible:border-comp-page-header-masthead-button-1-focus focus-visible:border-opacity-comp-page-header-masthead-button-1-focus focus-visible:rounded-comp-page-header-masthead-button-1-focus","focus-visible:bg-comp-page-header-masthead-button-1-focus focus-visible:bg-opacity-comp-page-header-masthead-button-1-focus focus-visible:text-comp-page-header-masthead-button-1-focus","[--focus-outline-color:rgb(var(--vision-comp-page-header-masthead-button-1-outline-color)/0.75)]"]},{override:[!0,"true"],variant:"2",class:["border-comp-page-header-masthead-button-2 border-opacity-comp-page-header-masthead-button-2 rounded-comp-page-header-masthead-button-2","bg-comp-page-header-masthead-button-2 bg-opacity-comp-page-header-masthead-button-2 text-comp-page-header-masthead-button-2","ring-comp-page-header-masthead-button-2","hover:border-comp-page-header-masthead-button-2-hover hover:border-opacity-comp-page-header-masthead-button-2-hover hover:rounded-comp-page-header-masthead-button-2-hover","hover:bg-comp-page-header-masthead-button-2-hover hover:bg-opacity-comp-page-header-masthead-button-2-hover hover:text-comp-page-header-masthead-button-2-hover","active:border-comp-page-header-masthead-button-2-active active:border-opacity-comp-page-header-masthead-button-2-active active:rounded-comp-page-header-masthead-button-2-active","active:bg-comp-page-header-masthead-button-2-active active:bg-opacity-comp-page-header-masthead-button-2-active active:text-comp-page-header-masthead-button-2-active","focus-visible:border-comp-page-header-masthead-button-2-focus focus-visible:border-opacity-comp-page-header-masthead-button-2-focus focus-visible:rounded-comp-page-header-masthead-button-2-focus","focus-visible:bg-comp-page-header-masthead-button-2-focus focus-visible:bg-opacity-comp-page-header-masthead-button-2-focus focus-visible:text-comp-page-header-masthead-button-2-focus","[--focus-outline-color:rgb(var(--vision-comp-page-header-masthead-button-2-outline-color)/0.75)]"]},{override:[!0,"true"],variant:"3",class:["border-comp-page-header-masthead-button-3 border-opacity-comp-page-header-masthead-button-3 rounded-comp-page-header-masthead-button-3","bg-comp-page-header-masthead-button-3 bg-opacity-comp-page-header-masthead-button-3 text-comp-page-header-masthead-button-3","ring-comp-page-header-masthead-button-3","hover:border-comp-page-header-masthead-button-3-hover hover:border-opacity-comp-page-header-masthead-button-3-hover hover:rounded-comp-page-header-masthead-button-3-hover","hover:bg-comp-page-header-masthead-button-3-hover hover:bg-opacity-comp-page-header-masthead-button-3-hover hover:text-comp-page-header-masthead-button-3-hover","active:border-comp-page-header-masthead-button-3-active active:border-opacity-comp-page-header-masthead-button-3-active active:rounded-comp-page-header-masthead-button-3-active","active:bg-comp-page-header-masthead-button-3-active active:bg-opacity-comp-page-header-masthead-button-3-active active:text-comp-page-header-masthead-button-3-active","focus-visible:border-comp-page-header-masthead-button-3-focus focus-visible:border-opacity-comp-page-header-masthead-button-3-focus focus-visible:rounded-comp-page-header-masthead-button-3-focus","focus-visible:bg-comp-page-header-masthead-button-3-focus focus-visible:bg-opacity-comp-page-header-masthead-button-3-focus focus-visible:text-comp-page-header-masthead-button-3-focus","[--focus-outline-color:rgb(var(--vision-comp-page-header-masthead-button-3-
1outline-color)/0.75)]"]},{override:[!0,"true"],variant:"4",class:["border-comp-page-header-masthead-button-4 border-opacity-comp-page-header-masthead-button-4 rounded-comp-page-header-masthead-button-4","bg-comp-page-header-masthead-button-4 bg-opacity-comp-page-header-masthead-button-4 text-comp-page-header-masthead-button-4","ring-comp-page-header-masthead-button-4","hover:border-comp-page-header-masthead-button-4-hover hover:border-opacity-comp-page-header-masthead-button-4-hover hover:rounded-comp-page-header-masthead-button-4-hover","hover:bg-comp-page-header-masthead-button-4-hover hover:bg-opacity-comp-page-header-masthead-button-4-hover hover:text-comp-page-header-masthead-button-4-hover","active:border-comp-page-header-masthead-button-4-active active:border-opacity-comp-page-header-masthead-button-4-active active:rounded-comp-page-header-masthead-button-4-active","active:bg-comp-page-header-masthead-button-4-active active:bg-opacity-comp-page-header-masthead-button-4-active active:text-comp-page-header-masthead-button-4-active","focus-visible:border-comp-page-header-masthead-button-4-focus focus-visible:border-opacity-comp-page-header-masthead-button-4-focus focus-visible:rounded-comp-page-header-masthead-button-4-focus","focus-visible:bg-comp-page-header-masthead-button-4-focus focus-visible:bg-opacity-comp-page-header-masthead-button-4-focus focus-visible:text-comp-page-header-masthead-button-4-focus","[--focus-outline-color:rgb(var(--vision-comp-page-header-masthead-button-4-outline-color)/0.75)]"]},{override:[!0,"true"],variant:"5",class:["border-comp-page-header-masthead-button-5 border-opacity-comp-page-header-masthead-button-5 rounded-comp-page-header-masthead-button-5","bg-comp-page-header-masthead-button-5 bg-opacity-comp-page-header-masthead-button-5 text-comp-page-header-masthead-button-5","ring-comp-page-header-masthead-button-5","hover:border-comp-page-header-masthead-button-5-hover hover:border-opacity-comp-page-header-masthead-button-5-hover hover:rounded-comp-page-header-masthead-button-5-hover","hover:bg-comp-page-header-masthead-button-5-hover hover:bg-opacity-comp-page-header-masthead-button-5-hover hover:text-comp-page-header-masthead-button-5-hover","active:border-comp-page-header-masthead-button-5-active active:border-opacity-comp-page-header-masthead-button-5-active active:rounded-comp-page-header-masthead-button-5-active","active:bg-comp-page-header-masthead-button-5-active active:bg-opacity-comp-page-header-masthead-button-5-active active:text-comp-page-header-masthead-button-5-active","focus-visible:border-comp-page-header-masthead-button-5-focus focus-visible:border-opacity-comp-page-header-masthead-button-5-focus focus-visible:rounded-comp-page-header-masthead-button-5-focus","focus-visible:bg-comp-page-header-masthead-button-5-focus focus-visible:bg-opacity-comp-page-header-masthead-button-5-focus focus-visible:text-comp-page-header-masthead-button-5-focus","[--focus-outline-color:rgb(var(--vision-comp-page-header-masthead-button-5-outline-color)/0.75)]"]},{override:[!0,"true"],variant:"6",class:["border-comp-page-header-masthead-button-6 border-opacity-comp-page-header-masthead-button-6 rounded-comp-page-header-masthead-button-6","bg-comp-page-header-masthead-button-6 bg-opacity-comp-page-header-masthead-button-6 text-comp-page-header-masthead-button-6","ring-comp-page-header-masthead-button-6","hover:border-comp-page-header-masthead-button-6-hover hover:border-opacity-comp-page-header-masthead-button-6-hover hover:rounded-comp-page-header-masthead-button-6-hover","hover:bg-comp-page-header-masthead-button-6-hover hover:bg-opacity-comp-page-header-masthead-button-6-hover hover:text-comp-page-header-masthead-button-6-hover","active:border-comp-page-header-masthead-button-6-active active:border-opacity-comp-page-header-masthead-button-6-active active:rounded-comp-page-header-masthead-button-6-active","active:bg-comp-page-header-masthead-button-6-active active:bg-opacity-comp-page-header-masthead-button-6-active active:text-comp-page-header-masthead-button-6-active","focus-visible:border-comp-page-header-masthead-button-6-focus focus-visible:border-opacity-comp-page-header-masthead-button-6-focus focus-visible:rounded-comp-page-header-masthead-button-6-focus","focus-visible:bg-comp-page-header-masthead-button-6-focus focus-visible:bg-opacity-comp-page-header-masthead-button-6-focus focus-visible:text-comp-page-header-masthead-button-6-focus","[--focus-outline-color:rgb(var(--vision-comp-page-header-masthead-button-6-outline-color)/0.75)]"]}],defaultVariants:{variant:"default"}});let[s]=os("pageHeader","masthead-button"),a=_e((()=>xn(s(),"family","override","boxed","pill","inset"))),l=_e((()=>
1{if("true"!==y(a).override)return{4:"error",5:"inversed",6:"default"}[i()]??i()}));const c=_e((()=>o({override:y(a).override,variant:i(),className:n()})));var u=_e((()=>wn(r,["family"])));return vn(e,Dt((()=>y(a)),{get variant(){return y(l)},get class(){return y(c)}},(()=>y(u)))),pe({get class(){return n()},set class(e){n(e),R()},get variant(){return i()},set variant(e){i(e),R()}})}customElements.define("vision-button",se(S3,{selected:{attribute:"selected",reflect:!0,type:"String"},disabled:{attribute:"disabled",reflect:!0,type:"String"},href:{attribute:"href",reflect:!0,type:"String"},type:{attribute:"type",reflect:!0,type:"String"},family:{attribute:"family",reflect:!0,type:"String"},variant:{attribute:"variant",reflect:!0,type:"String"},selectedFamily:{attribute:"selected-family",reflect:!0,type:"String"},selectedVariant:{attribute:"selected-variant",reflect:!0,type:"String"},size:{attribute:"size",reflect:!0,type:"String"},icon:{attribute:"icon",reflect:!0,type:"String"},pill:{attribute:"pill",reflect:!0,type:"String"},boxed:{attribute:"boxed",reflect:!0,type:"String"},justified:{attribute:"justified",reflect:!0,type:"String"},nowrap:{attribute:"nowrap",reflect:!0,type:"String"},inset:{attribute:"inset",reflect:!0,type:"String"},ariaHaspopup:{attribute:"aria-haspopup",reflect:!0,type:"String"},ariaExpanded:{attribute:"aria-expanded",reflect:!0,type:"String"},ariaControls:{attribute:"aria-controls",reflect:!0,type:"String"},ariaPressed:{attribute:"aria-pressed",reflect:!0,type:"String"},ariaLabel:{attribute:"aria-label",reflect:!0,type:"String"},ariaDescribedby:{attribute:"aria-describedby",reflect:!0,type:"String"},ariaDisabled:{attribute:"aria-disabled",reflect:!0,type:"String"},title:{attribute:"title",reflect:!0,type:"String"},collapseInline:{attribute:"collapse-inline",reflect:!0,type:"String"},collapseBlock:{attribute:"collapse-block",reflect:!0,type:"String"},autobox:{attribute:"autobox",reflect:!0,type:"String"},pointer:{attribute:"pointer",reflect:!0,type:"String"},state:{attribute:"state",reflect:!0,type:"String"},children:{}},["default"],[],!0,Mt())),se(yx,{class:{},variant:{}},[],[],!0);const E3=yx;function w3(e,t){he(t,!0);const n=L(t,"children",7),i=nt(t,["$$slots","$$events","$$legacy","$$host","children"]),r=_e((()=>Ei(i,["variant","selectedVariant"]))),o=_t({base:["justify-center [:where(&_svg:not(.ov-svg))]:size-[1.25em] [:where(&_svg:not(.ov-svg))]:shrink-0","[:where(&)_svg:not(.ov-svg):where(:not(&>svg))]:inline-block [:where(&)_svg:not(.ov-svg):where(:not(&>svg))]:align-[-0.125rem]"],variants:{icon:{false:'inline-flex gap-2 [:where(&>svg:not([class*="self-"]))]:translate-y-[calc(0.5lh-0.625em)]',true:"aspect-square inline-grid place-items-center [:where(&_svg:not(.ov-svg))]:[grid-area:1/1]"}},defaultVariants:{icon:!1}});return La(e,{children:(e,n)=>{const i=_e((()=>o({icon:y(r).icon})));An(e,{ontypography:t.$$host.handleTypography,get class(){return y(i)},children:(e,n)=>{E3(e,Dt((()=>y(r)),{children:(e,n)=>{var i=j();Wt(G(i),t,"default",{}),C(e,i)},$$slots:{default:!0}}))},$$slots:{default:!0}})},$$slots:{default:!0}}),pe({get children(){return n()},set children(e){n(e),R()}})}function M3(e,t){he(t,!0);const n=nt(t,["$$slots","$$events","$$legacy","$$host"]),i=_e((()=>Ei(n,["variant","selectedVariant"]))),r=_t({base:["justify-center [:where(&_svg:not(.ov-svg))]:size-[1.25em] [:where(&_svg:not(.ov-svg))]:shrink-0","[:where(&)_svg:not(.ov-svg):where(:not(&>svg))]:inline-block [:where(&)_svg:not(.ov-svg):where(:not(&>svg))]:align-[-0.125rem]"],variants:{icon:{false:'inline-flex gap-2 [:where(&>svg:not([class*="self-"]))]:translate-y-[calc(0.5lh-0.625em)]',true:"aspect-square inline-grid place-items-center [:where(&_svg:not(.ov-svg))]:[grid-area:1/1]"}},defaultVariants:{icon:!1}});ut((()=>{y(i).slot&&t.$$host.dispatchEvent(new CustomEvent("trigger",{detail:y(i),bubbles:!0,composed:!0}))}));const o=_e((()=>r({icon:y(i).icon})));An(e,{ontypography:t.$$host.handleTypography,get class(){return y(o)},children:(e,n)=>{var i=j();Wt(G(i),t,"default",{}),C(e,i)},$$slots:{default:!0}}),pe()}function T3(e,t){he(t,!0);const n=L(t,"children",7);{const n=e=>{var n=j();Wt(G(n),t,"default",{}),C(e,n)};An(e,{ontypography:t.$$host.handleTypography,children:n,$$slots:{default:!0}})}return pe({get children(){return n()},set children(e){n(e),R()}})}function tv(e,t){he(t,!0);let n=L(t,"href",7),i=L(t,"class",7),r=L(t,"children",7),o=L(t,"ref",15),s=nt(t,["$$slots","$$events","$$legacy","$$host","href","class","children","ref"]);var a=j();return nf(G(a),(()=>n()?"a":"span"),!1,((e,t)=>{let a;Xt(e,(e=>o(e)),(()=>o())),et((()=>a=gt(e,a,{...s,href:n(),class:i()})));var l=j();Ue(G(l),(()=>r()??ct)),C(t,l)}
1)),C(e,a),pe({get href(){return n()},set href(e){n(e),R()},get class(){return i()},set class(e){i(e),R()},get children(){return r()},set children(e){r(e),R()},get ref(){return o()},set ref(e){o(e),R()}})}function xx(e,t){he(t,!0);let n=L(t,"class",7),i=L(t,"ref",15),r=nt(t,["$$slots","$$events","$$legacy","$$host","class","ref"]);const o=_t({variants:{variant:{expanded:"block w-dvw max-w-comp-ident-primary-expanded",collapsed:"block w-dvw max-w-comp-ident-primary-collapsed"}}});var s=_e((()=>wn(r,o.variants)));const a=_e((()=>o({...xn(r,o.variants),className:n()})));return tv(e,Dt((()=>r),(()=>y(s)),{get class(){return y(a)},get ref(){return i()},set ref(e){i(e)}})),pe({get class(){return n()},set class(e){n(e),R()},get ref(){return i()},set ref(e){i(e),R()}})}function Sx(e,t){he(t,!0);let n=L(t,"class",7),i=L(t,"ref",15),r=nt(t,["$$slots","$$events","$$legacy","$$host","class","ref"]);const o=_t({variants:{variant:{expanded:"block w-dvw max-w-comp-ident-secondary-expanded",collapsed:"block w-dvw max-w-comp-ident-secondary-collapsed"}}});var s=_e((()=>wn(r,o.variants)));const a=_e((()=>o({...xn(r,o.variants),className:n()})));return tv(e,Dt((()=>r),(()=>y(s)),{get class(){return y(a)},get ref(){return i()},set ref(e){i(e)}})),pe({get class(){return n()},set class(e){n(e),R()},get ref(){return i()},set ref(e){i(e),R()}})}customElements.define("vision-masthead-button",se(w3,{children:{}},["default"],[],!0,Mt())),customElements.define("vision-trigger",se(M3,{},["default"],[],!0,Mt())),customElements.define("vision-typography",se(T3,{children:{}},["default"],[],!0,Mt())),se(tv,{href:{},class:{},children:{},ref:{}},[],[],!0),se(xx,{class:{},ref:{}},[],[],!0),se(Sx,{class:{},ref:{}},[],[],!0);const Pg={Primary:xx,Secondary:Sx};function A3(e,t){he(t,!0);const n=L(t,"children",7),i=nt(t,["$$slots","$$events","$$legacy","$$host","children"]),r=_e((()=>Ei(i))),o=_e((()=>y(r).x)),s=_e((()=>y(r).y)),a=_e((()=>$0(y(r),["x","y"])));let l=ie(void 0);const c=t.$$host.slot.split("-").slice(-2),u="secondary"===c[0]?Pg.Secondary:Pg.Primary,d="collapsed"===c[1]?"collapsed":"expanded";let h=ie(void 0);const p=()=>{var e;const t=new CustomEvent("ident-connect",{detail:{get ref(){return y(l)},get ident(){return y(h)},set ident(e){X(h,e,!0)}},bubbles:!0,composed:!0});null==(e=y(l))||e.dispatchEvent(t)};return Rn((async()=>{await su(),(()=>{var e;const t=new CustomEvent("ident-register",{detail:{dispatchConnectEvent:p},bubbles:!0,composed:!0});null==(e=y(l))||e.dispatchEvent(t)})(),p()})),ut((()=>{y(h)&&(y(h).x=y(o),y(h).y=y(s))})),An(e,{ontypography:t.$$host.handleTypography,class:"[:where(&_img)]:w-full",children:(e,n)=>{u(e,Dt((()=>y(a)),{variant:d,get ref(){return y(l)},set ref(e){X(l,e,!0)},children:(e,n)=>{var i=j();Wt(G(i),t,"default",{}),C(e,i)},$$slots:{default:!0}}))},$$slots:{default:!0}}),pe({get children(){return n()},set children(e){n(e),R()}})}customElements.define("vision-ident",se(A3,{children:{}},["default"],[],!0,Mt()));var C3=me('<nav><ul class="flex antialiased"><!></ul></nav>');function Ex(e,t){he(t,!0);const n=L(t,"class",7),i=L(t,"children",7),r=nt(t,["$$slots","$$events","$$legacy","$$host","class","children"]);var o=C3();let s;var a=ae(o),l=ae(a),c=e=>{var t=j();Ue(G(t),i),C(e,t)};return Ke(l,(e=>{i()&&e(c)})),oe(a),oe(o),et((e=>s=gt(o,s,{...r,class:e})),[()=>Sn("px-5 not-boxed [&:is(.not-boxed+.not-boxed)]:ps-2.5 [&.not-boxed:has(+.not-boxed)]:pe-2.5 [&.not-boxed:first-child]:ps-0 [&.not-boxed:last-child]:pe-0",n())]),C(e,o),pe({get class(){return n()},set class(e){n(e),R()},get children(){return i()},set children(e){i(e),R()}})}se(Ex,{class:{},children:{}},[],[],!0);const P3=_t({base:['after:content-["/"] after:mx-[0.5ch] after:last:hidden text-nowrap'],variants:{variant:{masthead:"after:text-comp-language-selector-item-separator after:text-opacity-comp-language-selector-item-separator",menu:"after:text-comp-language-selector-item-menu-separator after:text-opacity-comp-language-selector-item-menu-separator"}},defaultVariants:{variant:"masthead"}}),R3=_t({base:["outline-current outline-2 outline-offset-2 transition-opacity"],variants:{state:{enabled:"",default:"pseudo-default",active:"pseudo-active",hover:"pseudo-hover"},variant:{masthead:["text-comp-language-selector-item text-opacity-comp-language-selector-item","active:text-comp-language-selector-item-active active:text-opacity-comp-language-selector-item-active","hover:text-comp-language-selector-item-hover hover:text-opacity-comp-language-selector-item-hover"],menu:["text-comp-language-selector-item-menu text-opacity-comp-language-selector-item-menu","active:text-comp-language-selector-item-menu-active active:text-opacity-comp-language-selector-item-menu-active","hover:text-comp-language-selector-item-menu-hover hover:text-opacity-comp-language-selector-item-menu-hover"]}},defaultVariants:{state:"enabled",variant:"masthead"}});var L3=me("<li><a><!></a></li>");function wx(e,t){he(t,!0);const n=L(t,"children",7),i=L(t,"state",7),r=L(t,"variant",7),o=L(t,"class",7),s=nt(t,["$$slots","$$events","$$legacy","$$host","children","state","variant","class"]),a=s["aria-current"];var l=L3(),c=ae(l);let u;var d=ae(c),h=e=>{var t=j();Ue(G(t),n),C(e,t)};return Ke(d,(e=>{n()&&e(h)})),oe(c),oe(l),et(((e,t)=>{Ft(l,1,e),u=gt(c,u,{...s,class:t})}),[()=>Jt(P3({variant:r(),className:o()}
1)),()=>R3({variant:r(),state:a?"active":i()})]),C(e,l),pe({get children(){return n()},set children(e){n(e),R()},get state(){return i()},set state(e){i(e),R()},get variant(){return r()},set variant(e){r(e),R()},get class(){return o()},set class(e){o(e),R()}})}se(wx,{children:{},state:{},variant:{},class:{}},[],[],!0);const Rg=Object.assign(Ex,{Item:wx});var Jc,D3=me("<div><!></div>");function I3(e,t){he(t,!0);const n=nt(t,["$$slots","$$events","$$legacy","$$host"]),i=_e((()=>Ei(n)));var r=D3(),o=ae(r);Rg(o,{class:"!px-0",children:(e,t)=>{var n=j();ti(G(n),17,(()=>y(i).languages),bo,((e,t)=>{var n=j(),r=G(n),o=_e((()=>wn(y(t),"label")));Qe(r,(()=>Rg.Item),((e,n)=>{n(e,Dt({get variant(){return y(i).variant}},(()=>y(o)),{children:(e,n)=>{Jd();var i=Im();et((()=>bn(i,y(t).label))),C(e,i)},$$slots:{default:!0}}))})),C(e,n)})),C(e,n)},$$slots:{default:!0}}),oe(r),et((e=>Ft(r,1,e)),[()=>Jt(Sn("px-4",{"ps-0":"start"===y(i).collapseInline,"pe-0":"end"===y(i).collapseInline,"px-0":"both"===y(i).collapseInline}))]),C(e,r),pe()}function N3(e,t){he(t,!0);const n=nt(t,["$$slots","$$events","$$legacy","$$host"]),i=_e((()=>Ei(n)));fu(e,{get source(){return y(i).source}}),pe()}customElements.define("vision-language-selector",se(I3,{},[],[],!0,Mt())),customElements.define("vision-cascade-menu",se(N3,{source:{attribute:"source",reflect:!0,type:"String"}},[],[],!0,Mt()));class O3{constructor(){Re(this,Jc,ie()),this.variant="color"}get variant(){return y(N(this,Jc))}set variant(e){X(N(this,Jc),e,!0)}}Jc=new WeakMap;const Xf=new uf("SocialMediaBar"),Mx=()=>
1{if(Xf.exists())return Xf.get();const e=new O3;return Xf.set(e)};var U3=me("<div><!></div>");function nv(e,t){he(t,!0);const n=_t({base:"ov-social-bar flex gap-2 overflow-hidden",variants:{autobox:{true:"px-5 not-boxed [&:is(.not-boxed+.not-boxed)]:ps-2.5 [&.not-boxed:has(+.not-boxed)]:pe-2.5 [&.not-boxed:first-child]:ps-0 [&.not-boxed:last-child]:pe-0",false:"-mx-1 px-4"}},defaultVariants:{autobox:!1}});let i=L(t,"variant",7,"color"),r=L(t,"class",7),o=L(t,"autobox",7,!1),s=L(t,"children",7),a=nt(t,["$$slots","$$events","$$legacy","$$host","variant","class","autobox","children"]),l=Mx();Jn((()=>{l.variant=i()}));var c=U3();let u;return Ue(ae(c),(()=>s()??ct)),oe(c),et((e=>u=gt(c,u,{class:e,...a})),[()=>n({autobox:o(),className:r()})]),C(e,c),pe({get variant(){return i()},set variant(e="color"){i(e),R()},get class(){return r()},set class(e){r(e),R()},get autobox(){return o()},set autobox(e=!1){o(e),R()},get children(){return s()},set children(e){s(e),R()}})}se(nv,{variant:{},class:{},autobox:{},children:{}},[],[],!0);const F3=JSON.parse('{"email-color":{"body":"<path fill-rule=\\"evenodd\\" d=\\"M15 0c-2.1 0-4 .4-5.8 1.2S5.8 3 4.4 4.4C3.1 5.7 2 7.3 1.2 9.1S0 12.9 0 15s.4 4 1.2 5.8 1.9 3.4 3.2 4.8C5.8 27 7.3 28 9.2 28.8S12.9 30 15 30s4-.4 5.8-1.2 3.4-1.9 4.8-3.2c1.4-1.4 2.4-2.9 3.2-4.8.8-1.8 1.2-3.7 1.2-5.8s-.4-4-1.2-5.8-1.9-3.4-3.2-4.8-3-2.4-4.8-3.2S17.1 0 15 0M9.7 10.6l5.2 5.4 5.2-5.4zm-1.2.9v7.6q0 .3.3.3h12.4q.3 0 .3-.3v-7.8l-5.7 5.9
1c-.5.5-1.3.5-1.8 0zM21.2 21H8.8c-1 0-1.8-.8-1.8-1.9v-8.3C7 9.8 7.8 9 8.8 9h12.4c1 0 1.8.8 1.8 1.9v8.3c0 1-.8 1.8-1.8 1.8\\" clip-rule=\\"evenodd\\"/>","width":30,"height":30},"email-monochrome":{"body":"<path fill-rule=\\"evenodd\\" d=\\"M15 0c-2.1 0-4 .4-5.8 1.2S5.8 3 4.4 4.4C3.1 5.7 2 7.3 1.2 9.1S0 12.9 0 15s.4 4 1.2 5.8 1.9 3.4 3.2 4.8C5.8 27 7.3 28 9.2 28.8S12.9 30 15 30s4-.4 5.8-1.2 3.4-1.9 4.8-3.2c1.4-1.4 2.4-2.9 3.2-4.8.8-1.8 1.2-3.7 1.2-5.8s-.4-4-1.2-5.8-1.9-3.4-3.2-4.8-3-2.4-4.8-3.2S17.1 0 15 0M9.7 10.6l5.2 5.4 5.2-5.4zm-1.2.9v7.6q0 .3.3.3h12.4q.3 0 .3-.3v-7.8l-5.7 5.9c-.5.5-1.3.5-1.8 0zM21.2 21H8.8c-1 0-1.8-.8-1.8-1.9v-8.3C7 9.8 7.8 9 8.8 9h12.4c1 0 1.8.8 1.8 1.9v8.3c0 1-.8 1.8-1.8 1.8\\" clip-rule=\\"evenodd\\"/>","width":30,"height":30},"facebook-color":{"body":"<g fill=\\"none\\" fill-rule=\\"evenodd\\"><path fill=\\"#1877F2\\" d=\\"M32 17c0-8.284-6.716-15-15-15S2 8.716 2 17c0 7.487 5.485 13.692 12.656 14.818V21.336h-3.808V17h3.808v-3.305c0-3.76 2.24-5.836 5.666-5.836 1.641 0 3.358.293 3.358.293v3.692h-1.892c-1.863 0-2.444 1.156-2.444 2.342V17h4.16l-.665 4.336h-3.495v10.482C26.514 30.692 32 24.487 32 17\\"/><path fill=\\"#FFF\\" d=\\"M22.839 21.336 23.504 17h-4.16v-2.814c0-1.186.58-2.342 2.444-2.342h1.892V8.152s-1.717-.293-3.358-.293c-3.426 0-5.666 2.077-5.666 5.836V17h-3.808v4.336h3.808v10.482a15.1 15.1 0 0 0 4.688 0V21.336z\\"/></g>"},"facebook-monochrome":{"body":"<path fill-rule=\\"evenodd\\" d=\\"M32 17c0-8.284-6.716-15-15-15S2 8.716 2 17c0 7.487 5.485 13.692 12.656 14.818V21.336h-3.808V17h3.808v-3.305c0-3.76 2.24-5.836 5.666-5.836 1.641 0 3.358.293 3.358.293v3.692h-1.892c-1.863 0-2.444 1.156-2.444 2.342V17h4.16l-.665 4.336h-3.495v10.482C26.514 30.692 32 24.487 32 17\\"/>"},"headhunter-color":{"body":"<g fill=\\"none\\" fill-rule=\\"evenodd\\"><path fill=\\"#D20A11\\" d=\\"M32 17c0 8.29-6.716 15.001-15 15.001s-1
15-6.71-15-15C2 8.717 8.717 2 17 2s15 6.717 15 15\\"/><path fill=\\"#FFF\\" d=\\"M10.455 9.74v5.146c.783-.934 1.723-1.405 2.812-1.405q.84 0 1.514.32.677.317 1.018.812.344.497.469 1.097.125.598.125 1.861v5.504h-2.435v-4.957q.001-1.475-.137-1.87a1.2 1.2 0 0 0-.489-.631q-.35-.237-.878-.237-.607.001-1.08.302-.482.302-.699.906-.224.604-.22 1.788l-.003 4.7H8.021V9.738zm9.587 0v5.146q1.177-1.403 2.812-1.405.838 0 1.517.32.675.317 1.015.812.344.497.468 1.097.126.598.125 1.861v5.504h-2.432v-4.957q.001-1.475-.139-1.87a1.2 1.2 0 0 0-.49-.631q-.348-.237-.878-.237-.606.001-1.08.302-.476.302-.698.906-.22.604-.22 1.788v4.7H17.61V9.738z\\"/></g>"},"headhunter-monochrome":{"body":"<path fill-rule=\\"evenodd\\" d=\\"M25.947 23.058h-2.4v-4.94q.001-1.475-.139-1.87a1.2 1.2 0 0 0-.49-.631q-.348-.237-.878-.237a2 2 0 0 0-1.08.302c-.318.201-.56.503-.708.906-.146.403-.23.999-.23 1.788v4.682h-2.437V9.708h2.437v5.178c.788-.934 1.732-1.405 2.822-1.405.559 0 1.07.107 1.522.32q.675.318 1.018.812c.23.332.37.696.453 1.097.083.398.11 1.02.11 1.862zm-9.562 0h-2.438v-4.94c0-.983-.039-1.607-.131-1.87a1.2 1.2 0 0 0-.487-.631q-.35-.237-.877-.237-.605.001-1.08.302-.479.302-.697.906c-.15.403-.223.99-.22 1.779l-.003 4.691h-2.43V9.708h2.4v5.178c.788-.934 1.74-1.405 2.829-1.405.56 0 1.072.107 1.522.32q.679.318 1.022.812c.23.332.383.696.467 1.097q.124.598.123 1.862zM17 2C8.717 2 2 8.717 2 17c0 8.29 6.717 15.002 15 15.002S32 25.29 32 17C32 8.717 25.284 2 17 2\\"/>"},"instagram-color":{"body":"<defs><linearGradient id=\\"one-teva-icons-share-19afcfdbe44-30000bc\\" x1=\\"7.19%\\" x2=\\"92.179%\\" y1=\\"90.73%\\" y2=\\"8.125%\\"><stop offset=\\"0%\\" stop-color=\\"#FECB1E\\"/><stop offset=\\"30.18%\\" stop-color=\\"#F9550D\\"/><stop offset=\\"69.159%\\" stop-color=\\"#DD0048\\"/><stop offset=\\"100%\\" stop-color=\\"#BF00A7\\"/></linearGradient></defs><path fill=\\"url(#one-teva-icons-share-19afcfdbe44-30000bc)\\" fill-rule=\\"evenodd\\" d=\\"M15.788 0c1.825.003 2.688.013 3.45.037l.237.008c.315.011.628.025 1.003.042 1.544.07 2.598.316 3.52.674.954.37 1.762.867 2.568 1.673a7.1 7.1 0 0 1 1.673 2.568c.358.922.603 1.976.674 3.52.017.375.03.688.042 1.003l.008.238c.024.76.034 1.624.036 3.449v.609L29 14.5v1.289a116 116 0 0 1-.037 3.448l-.008.238c-.011.315-.025.628-.042 1.003-.07 1.544-.316 2.598-.674 3.52a7.1 7.1 0 0 1-1.673 2.568 7.1 7.1 0 0 1-2.568 1.673c-.922.358-1.976.603-3.52.674-.375.017-.688.03-1.003.042l-.238.008c-.76.024-1.624.034-3.449.036l-.94.001h-1.637a116 116 0 0 1-3.448-.037l-.238-.008c-.315-.011-.628-.025-1.003-.042-1.544-.07-2.598-.316-3.52-.674a7.1 7.1 0 0 1-2.568-1.673A7.1 7.1 0 0 1 .76 23.998c-.358-.922-.603-1.976-.674-3.52a102 102 0 0 1-.042-1.003l-.008-.238c-.024-.76-.034-1.624-.036-3.449v-2.576c.002-1.825.012-2.688.036-3.45l.008-.237c.011-.315.025-.628.042-1.003.07-1.544.316-2.598.674-3.52a7.1 7.1 0 0 1 1.673-2.568A7.1 7.1 0 0 1 5.002.76C5.924.403 6.978.158 8.522.087 8.897.07 9.21.057 9.525.045l.238-.008c.76-.024 1.624-.034 3.449-.036Zm-.62 2.613H12.96c-2.495.005-3.022.025-4.32.084-1.413.065-2.18.3-2.692.5A4.5 4.5 0 0 0 4.281 4.28c-.507.507-.822.99-1.085 1.667-.198.511-.434 1.279-.499 2.693-.059 1.297-.079 1.824-.083 4.319v.565l-.001.308v2.207c.005 2.495.025 3.022.084 4.32.065 1.413.3 2.18.5 2.692.262.677.577 1.16 1.084 1.667s.99.822 1.667 1.085c.511.198 1.28.434 2.693.499.324.015.6.027.871.037l.232.008c.736.025 1.523.035 3.216.038l.565.001h2.516c1.693-.004 2.48-.014 3.215-.039l.232-.008c.27-.01.547-.022.871-.037 1.414-.065 2.182-.3 2.693-.5a4.5 4.5 0 0 0 1.667-1.084c.507-.507.822-.99 1.085-1.667.198-.511.434-1.279.499-2.693.06-1.297.079-1.824.083-4.319l.001-.565V12.96c-.005-2.495-.025-3.022-.084-4.32-.065-1.413-.3-2.18-.5-2.692a4.5 4.5 0 0 0-1.084-1.667 4.5 4.5 0 0 0-1.667-1.085c-.511-.198-1.279-.434-2.693-.499-1.297-.059-1.824-.079-4.319-.083l-.565-.001zM14.5 7.054a7.446 7.446 0 1 1 0 14.892 7.446 7.446 0 0 1 0-14.892m0 2.613a4.833 4.833 0 1 0 0 9.666 4.833 4.833 0 0 0 0-9.666m7.74-4.647a1.74 1.74 0 1 1 0 3.48 1.74 1.74 0 0 1 0-3.48\\" transform=\\"translate(2.5 2.5)\\"/>"},"instagram-monochrome":{"body":"<g fill-rule=\\"evenodd\\"><path d=\\"M17 2.5c-3.938 0-4.432.017-5.978.087-1.544.07-2.598.316-3.52.674a7.1 7.1 0 0 0-2.568 1.673A7.1 7.1 0 0 0 3.26 7.502c-.358.922-.603 1.976-.674 3.52-.07 1.546-.087 2.04-.087 5.978s.017 4.432.087 5.978c.07 1.544.316 2.598.674 3.52.37.954.867 1.762 1.673 2.568a7.1 7.1 0 0 0 2.568 1.673c.922.358 1.976.603 3.52.674 1.546.07 2.04.087 5.978.087s4.432-.017 5.978-.087c1.544-.07 2.598-.316 3.52-.674a7.1 7.1 0 0 0 2.568-1.673 7.1 7.1 0 0 0 1.673-2.568c.358-.922.603-1.976.674-3.52.07-1.546.087-2.04.087-5.978s-.017-4.432-.087-5.978c-.07-1.544-.316-2.598-.674-3.52a7.1 7.1 0 0 0-1.673-2.568 7.1 7.1 0 0 0-2.568-1.673c-.922-.358-1.976-.603-3.52-.674-1.546-.07-2.04-.087-5.978-.087m0 2.613c3.872 0 4.33.014 5.86.084 1.413.065 2.18.3 2.692.5.677.262 1.16.577 1.667 1.084s.822.99 1.085 1.667c.198.511.434 1.279.499 2.693.07 1.529.084 1.987.084 5.859s-.014 4.33-.084 5.86c-.065 1.413-.3 2.18-.5 2.692a4.5 4.5 0 0 1-1.084 1.667c-.507.507-.99.822-1.667 1.085-.511.198-1.279.434-2.693.499-1.528.07-1.987.084-5.859.084s-4.33-.014-5.86-.084c-1.413-.065-2.18-.3-2.692-.5a4.5 4.5 0 0 1-1.667-1.084 4.5 4.5 0 0 1-1.085-1.667c-.198-.511-.434-1.279-.499-2.693-.07-1.529-.084-1.987-.084-5.859s.014-4.33.084-5.86c.065-1.413.3-2.18.5-2.692A4.5 4.5 0 0 1 6.78
16.781c.508-.507.99-.822 1.667-1.085.511-.198 1.28-.434 2.693-.499 1.529-.07 1.987-.084 5.859-.084\\"/><path d=\\"M17 21.833a4.833 4.833 0 1 1 0-9.666 4.833 4.833 0 0 1 0 9.666m0-12.279a7.446 7.446 0 1 0 0 14.892 7.446 7.446 0 0 0 0-14.892m9.48-.294a1.74 1.74 0 1 1-3.48 0 1.74 1.74 0 0 1 3.48 0\\"/></g>"},"linkedin-color":{"body":"<g fill=\\"none\\" fill-rule=\\"evenodd\\"><path fill=\\"#0A66C2\\" d=\\"M31 5.059V28.94A2.06 2.06 0 0 1 28.941 31H5.06A2.06 2.06 0 0 1 3 28.941V5.06C3 3.922 3.922 3 5.059 3H28.94C30.078 3 31 3.922 31 5.059\\"/><path fill=\\"#FFF\\" d=\\"M26.882 18.878c0-3.962-2.52-5.502-5.023-5.502a4.7 4.7 0 0 0-4.167 2.125h-.116v-1.795h-3.87v13.176h4.118v-7.008a2.734 2.734 0 0 1 2.47-2.948h.157c1.309 0 2.28.823 2.28 2.899v7.057h4.118zM11.606 9.176A2.37 2.37 0 0 0 9.25 6.788h-.075a2.389 2.389 0 0 0 0 4.777 2.37 2.37 0 0 0 2.43-2.313v-.076M7.118 26.882h4.117V13.706H7.118z\\"/></g>"},"linkedin-monochrome":{"body":"<path fill-rule=\\"evenodd\\" d=\\"M26.882 18.878c0-3.962-2.52-5.502-5.023-5.502a4.7 4.7 0 0 0-4.167 2.125h-.116v-1.795h-3.87v13.176h4.118v-7.008a2.734 2.734 0 0 1 2.47-2.948h.157c1.309 0 2.28.823 2.28 2.899v7.057h4.118zM11.606 9.176A2.37 2.37 0 0 0 9.25 6.788h-.075a2.389 2.389 0 0 0 0 4.777 2.37 2.37 0 0 0 2.43-2.313v-.076M7.118 26.882h4.117V13.706H7.118zM31 5.06V28.94A2.06 2.06 0 0 1 28.941 31H5.06A2.06 2.06 0 0 1 3 28.941V5.06C3 3.922 3.922 3 5.059 3H28.94C30.078 3 31 3.922 31 5.059\\"/>"},"tiktok-color":{"body":"<defs><path id=\\"one-teva-icons-share-19afcfdbe45-3024081\\" d=\\"M0 0h8.983v14.397H0z\\"/><path id=\\"one-teva-icons-share-19afcfdbe45-30200b3\\" d=\\"M0 0h19.69v19.166H0z\\"/></defs><g fill=\\"none\\" fill-rule=\\"evenodd\\"><g transform=\\"translate(5 13.184)\\"><mask id=\\"one-teva-icons-share-19afcfdbe45-302011b\\" fill=\\"#fff\\"><use href=\\"#one-teva-icons-share-19afcfdbe45-3024081\\"/></mask><path fill=\\"#25F4EE\\" d=\\"M8.983 1.121V.077A8 8 0 0 0 7.916 0C3.551 0 0 3.551 0 7.916a7.91 7.91 0 0 0 3.38 6.481 7.86 7.86 0 0 1-2.1-5.39 7.88 7.88 0 0 1 7.703-7.886\\" mask=\\"url(#one-teva-icons-share-19afcfdbe45-302011b)\\"/></g><path fill=\\"#25F4EE\\" d=\\"M14.17 25.833c1.947 0 3.563-1.576 3.635-3.506l.006-17.21 3.122-.026A6 6 0 0 1 20.832 4h-4.3l-.008 17.236a3.617 3.617 0 0 1-3.608 3.48 3.6 3.6 0 0 1-1.677-.416c.657.91 1.724 1.533 2.93 1.533M26.816 10.97v-.987a5.95 5.95 0 0 1-3.258-.969c.835.96 1.97 1.68 3.258 1.956\\"/><path fill=\\"#FE2C55\\" d=\\"M23.557 9.014a5.96 5.96 0 0 1-1.471-3.923h-1.153a6 6 0 0 0 2.624 3.923m-10.641 8.47A3.62 3.62 0 0 0 9.301 21.1c0 1.388.787 2.594 1.938 3.2a3.6 3.6 0 0 1-.685-2.109 3.62 3.62 0 0 1 3.616-3.615c.372 0 .729.061 1.066.167v-4.39a8 8 0 0 0-1.066-.078q-.094.001-.187.005v3.372a3.6 3.6 0 0 0-1.067-.167\\"/><g transform=\\"translate(8.38 10.941)\\"><mask id=\\"one-teva-icons-share-19afcfdbe45-3004003\\" fill=\\"#fff\\"><use href=\\"#one-teva-icons-share-19afcfdbe45-30200b3\\"/></mask><path fill=\\"#FE2C55\\" d=\\"M18.436 0v3.343c-2.23 0-4.297-.714-5.983-1.925v8.74c0 4.365-3.552 7.916-7.916 7.916A7.87 7.87 0 0 1 0 16.64a7.9 7.9 0 0 0 5.79 2.526c4.365 0 7.916-3.551 7.916-7.916V2.51a10.23 10.23 0 0 0 5.984 1.924v-4.3Q19.043.131 18.436 0\\" mask=\\"url(#one-teva-icons-share-19afcfdbe45-3004003)\\"/></g><path fill=\\"#000\\" d=\\"M20.832 21.1v-8.74a10.23 10.23 0 0 0 5.983 1.924v-3.343a6 6 0 0 1-3.258-1.927 6 6 0 0 1-2.624-3.923h-3.148l-.007 17.236a3.617 3.617 0 0 1-3.608 3.48 3.61 3.61 0 0 1-2.931-1.507 3.62 3.62 0 0 1-1.938-3.2 3.62 3.62 0 0 1 3.615-3.615c.372 0 .73.061 1.067.167V14.28c-4.279.1-7.73 3.61-7.73 7.911 0 2.081.809 3.976 2.126 5.39a7.87 7.87 0 0 0 4.537 1.435c4.365 0 7.916-3.551 7.916-7.916\\"/></g>"},"tiktok-monochrome":{"body":"<path fill-rule=\\"evenodd\\" d=\\"M24.624 9.303A6.34 6.34 0 0 1 21.742 4h-4.548l-.007 18.227a3.825 3.825 0 0 1-3.816 3.68c-.64 0-1.243-.16-1.773-.44a3.83 3.83 0 0 1-2.05-3.384 3.83 3.83 0 0 1 3.823-3.823c.394 0 .771.065 1.128.177v-4.643a8 8 0 0 0-1.128-.082C8.755 13.712 5 17.467 5 22.083a8.37 8.37 0 0 0 3.574 6.855 8.32 8.32 0 0 0 4.797 1.517c4.616 0 8.371-3.756 8.371-8.372v-9.242a10.8 10.8 0 0 0 6.328 2.034v-4.548a6.3 6.3 0 0 1-3.446-1.024\\"/>"},"vk-color":{"body":"<g fill=\\"none\\" fill-rule=\\"evenodd\\"><path fill=\\"#07F\\" d=\\"M3 16.44c0-6.336 0-9.504 1.968-11.472S10.104 3 16.44 3h1.12c6.336 0 9.504 0 11.472 1.968S31 10.104 31 16.44v1.12c0 6.336 0 9.504-1.968 11.472S23.896 31 17.56 31h-1.12c-6.336 0-9.504 0-11.472-1.968S3 23.896 3 17.56z\\"/><path fill=\\"#FFF\\" d=\\"M17.898 23.172c-6.381 0-10.021-4.375-10.173-11.655h3.197c.105 5.343 2.461 7.606 4.328 8.073v-8.073h3.01v4.608c1.843-.198 3.78-2.298 4.433-4.608h3.01c-.501 2.846-2.601 4.946-4.095 5.81 1.494.7 3.885 2.531 4.795 5.845H23.09c-.712-2.217-2.485-3.932-4.83-4.165v4.165z\\"/></g>"},"vk-monochrome":{"body":"<path fill-rule=\\"evenodd\\" d=\\"M29.031 4.968c1.88 1.878 1.964 4.85 1.968 10.627v2.809c-.004 5.777-.089 8.749-1.968 10.627-1.878 1.88-4.85 1.964-10.627 1.968h-2.809c-5.777-.004-8.749-.089-10.627-1.968C3.089 27.153 3.004 24.181 3 18.404v-2.809c.004-5.777.089-8.749 1.968-10.627C6.846 3.089 9.818 3.004 15.595 3h2.809c5.777.004 8.749.089 10.627 1.968m-18.11 6.548H7.725c.151 7.28 3.791 11.655 10.173 11.655h.362v-4.165c2.345.234 4.118 1.949 4.83 4.165h3.313c-.9
11-3.313-3.302-5.145-4.795-5.845 1.493-.863 3.593-2.963 4.095-5.81h-3.01c-.653 2.31-2.59 4.41-4.433 4.609v-4.609h-3.01v8.074c-1.867-.467-4.224-2.73-4.329-8.074\\"/>"},"whatsapp-color":{"body":"<defs><linearGradient id=\\"one-teva-icons-share-19afcfdbe46-3024019\\" x1=\\"50%\\" x2=\\"50%\\" y1=\\"100%\\" y2=\\"0%\\"><stop offset=\\"0%\\" stop-color=\\"#1FAF38\\"/><stop offset=\\"100%\\" stop-color=\\"#60D669\\"/></linearGradient><linearGradient id=\\"one-teva-icons-share-19afcfdbe46-30201b9\\" x1=\\"50%\\" x2=\\"50%\\" y1=\\"100%\\" y2=\\"0%\\"><stop offset=\\"0%\\" stop-color=\\"#F9F9F9\\"/><stop offset=\\"100%\\" stop-color=\\"#FFF\\"/></linearGradient><filter id=\\"one-teva-icons-share-19afcfdbe46-3000182\\" width=\\"112.5%\\" height=\\"112.4%\\" x=\\"-6.2%\\" y=\\"-5.4%\\" filterUnits=\\"objectBoundingBox\\"><feOffset dy=\\".25\\" in=\\"SourceAlpha\\" result=\\"shadowOffsetOuter1\\"/><feGaussianBlur in=\\"shadowOffsetOuter1\\" result=\\"shadowBlurOuter1\\" stdDeviation=\\".625\\"/><feColorMatrix in=\\"shadowBlurOuter1\\" values=\\"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.6 0\\"/></filter><path id=\\"one-teva-icons-share-19afcfdbe46-3000109\\" d=\\"m8.838 27.045.483.287a13.2 13.2 0 0 0 6.74 1.846h.006c7.299 0 13.24-5.94 13.243-13.24a13.16 13.16 0 0 0-3.876-9.365 13.16 13.16 0 0 0-9.362-3.883C8.767 2.69 2.827 8.63 2.824 15.928a13.2 13.2 0 0 0 2.024 7.045l.316.501-1.339 4.885zM0 32.143l2.26-8.253a15.9 15.9 0 0 1-2.126-7.963C.137 7.145 7.284 0 16.067 0a15.83 15.83 0 0 1 11.27 4.671A15.83 15.83 0 0 1 32 15.94c-.004 8.782-7.152 15.928-15.933 15.928h-.007a15.9 15.9 0 0 1-7.614-1.94z\\"/></defs><g fill=\\"none\\" fill-rule=\\"evenodd\\" transform=\\"translate(1 1)\\"><use fill=\\"#000\\" filter=\\"url(#one-teva-icons-share-19afcfdbe46-3000182)\\" href=\\"#one-teva-icons-share-19afcfdbe46-3000109\\"/><use fill=\\"#FFF\\" href=\\"#one-teva-icons-share-19afcfdbe46-3000109\\"/><path fill=\\"url(#one-teva-icons-share-19afcfdbe46-3024019)\\" d=\\"M.683 15.932c-.001 2.71.707 5.355 2.053 7.687L.554 31.587l8.154-2.138a15.4 15.4 0 0 0 7.35 1.872h.007c8.477 0 15.377-6.899 15.38-15.377a15.28 15.28 0 0 0-4.5-10.878 15.28 15.28 0 0 0-10.88-4.51C7.585.557.685 7.455.682 15.933\\"/><path fill=\\"url(#one-teva-icons-share-19afcfdbe46-30201b9)\\" d=\\"M.134 15.927A15.9 15.9 0 0 0 2.26 23.89L0 32.143l8.446-2.214a15.9 15.9 0 0 0 7.614 1.939h.007c8.781 0 15.93-7.146 15.933-15.928A15.83 15.83 0 0 0 27.338 4.67 15.83 15.83 0 0 0 16.067 0C7.284 0 .137 7.145.134 15.927m5.03 7.547-.316-.5a13.2 13.2 0 0 1-2.024-7.046C2.827 8.628 8.767 2.69 16.072 2.69a13.16 13.16 0 0 1 9.362 3.883 13.16 13.16 0 0 1 3.876 9.366c-.003 7.3-5.944 13.239-13.243 13.239h-.005a13.2 13.2 0 0 1-6.74-1.846l-.484-.287-5.013 1.314z\\"/><path fill=\\"#FFF\\" d=\\"M12.085 9.269c-.298-.663-.612-.677-.896-.688-.232-.01-.498-.01-.763-.01s-.697.1-1.062.499c-.365.398-1.393 1.36-1.393 3.32 0 1.958 1.427 3.851 1.625 4.117.2.265 2.755 4.413 6.801 6.01 3.363 1.325 4.047 1.061 4.777.995s2.356-.963 2.688-1.892c.331-.93.331-1.727.232-1.893-.1-.166-.365-.266-.763-.465s-2.356-1.162-2.72-1.295c-.366-.132-.631-.199-.896.2-.266.398-1.028 1.294-1.26 1.56-.233.266-.465.3-.863.1-.399-.2-1.68-.62-3.202-1.976-1.183-1.055-1.982-2.358-2.215-2.757-.232-.398-.025-.613.175-.812.179-.178.398-.465.597-.697.2-.233.265-.398.398-.664s.067-.498-.033-.697c-.1-.2-.873-2.168-1.227-2.955\\"/></g>"},"whatsapp-monochrome":{"body":"<path fill-rule=\\"evenodd\\" d=\\"M23.873 20.064c-.373-.187-2.208-1.09-2.55-1.214-.343-.125-.591-.187-.84.187-.25.373-.964 1.214-1.182 1.463s-.436.28-.809.093c-.373-.186-1.576-.58-3.001-1.852-1.11-.99-1.859-2.212-2.076-2.586s-.024-.575.163-.761c.168-.168.373-.436.56-.654s.249-.374.373-.623c.125-.249.062-.467-.03-.654-.094-.186-.84-2.024-1.152-2.771-.303-.728-.61-.63-.84-.64a15 15 0 0 0-.715-.014c-.248 0-.653.094-.995.467-.342.374-1.306 1.277-1.306 3.114s1.337 3.612 1.524 3.86c.186.25 2.632 4.02 6.376 5.636.89.385 1.585.615 2.127.787.894.284 1.708.244 2.351.148.717-.108 2.208-.903 2.52-1.775.31-.872.31-1.62.217-1.775-.093-.156-.342-.249-.715-.436m-6.81 9.298h-.005c-2.228 0-4.413-.599-6.32-1.73l-.453-.27-4.699 1.233 1.255-4.58-.296-.47a12.4 12.4 0 0 1-1.898-6.608c.003-6.845 5.572-12.414 12.42-12.414a12.33 12.33 0 0 1 8.778 3.64 12.34 12.34 0 0 1 3.633 8.784c-.003 6.846-5.572 12.415-12.415 12.415M27.629 6.381A14.84 14.84 0 0 0 17.063 2C8.829 2 2.128 8.7 2.125 16.936a14.9 14.9 0 0 0 1.994 7.468L2 32.144l7.918-2.077a14.9 14.9 0 0 0 7.139 1.818h.006c8.232
10 14.934-6.701 14.937-14.937a14.85 14.85 0 0 0-4.37-10.567\\"/>"},"x-color":{"body":"<path fill-rule=\\"evenodd\\" d=\\"m26.647 4-8.223 9.56L11.856 4H4.28l9.932 14.455L4.28 30h2.244l8.685-10.095L22.145 30h7.576l-10.3-14.99L28.89 4zm-10.3 14.583-1.007-1.44L7.333 5.69h3.447l6.462 9.243 1.007 1.44 8.4 12.014H23.2z\\"/>"},"x-monochrome":{"body":"<path fill-rule=\\"evenodd\\" d=\\"m26.647 4-8.223 9.56L11.856 4H4.28l9.932 14.455L4.28 30h2.244l8.685-10.095L22.145 30h7.576l-10.3-14.99L28.89 4zm-10.3 14.583-1.007-1.44L7.333 5.69h3.447l6.462 9.243 1.007 1.44 8.4 12.014H23.2z\\"/>"},"youtube-color":{"body":"<g fill=\\"none\\" fill-rule=\\"evenodd\\"><path fill=\\"red\\" d=\\"M33.29 8.74a4.27 4.27 0 0 0-3.006-3.025C27.632 5 17 5 17 5S6.368 5 3.716 5.715A4.27 4.27 0 0 0 .71 8.741C0 11.409 0 16.977 0 16.977s0 5.568.71 8.237a4.27 4.27 0 0 0 3.006 3.026c2.652.715 13.284.715 13.284.715s10.632 0 13.284-.715a4.27 4.27 0 0 0 3.005-3.026C34 22.545 34 16.977 34 16.977s0-5.568-.71-8.236\\"/><path fill=\\"#FFF\\" d=\\"m13.523 22.033 8.886-5.056-8.886-5.055z\\"/></g>"},"youtube-monochrome":{"body":"<path fill-rule=\\"evenodd\\" d=\\"M17.146 5h.08l.332.002c1.067.005 3.515.028 6.025.118l.628.024c2.512.101 4.975.275 6.073.57a4.27 4.27 0 0 1 3.005 3.026c.646 2.426.705 7.249.71 8.105v.264c-.005.856-.064 5.679-.71 8.105a4.27 4.27 0 0 1-3.005 3.025c-1.098.296-3.561.47-6.073.571l-.628.024c-2.615.094-5.162.115-6.151.119h-.207l-.08.001h-.37l-.207-.001c-.99-.004-3.537-.025-6.151-.119l-.628-.024c-2.512-.101-4.975-.275-6.073-.57A4.27 4.27 0 0 1 .71 25.213c-.613-2.305-.697-6.772-.708-7.948L0 17.011v-.068l.002-.255c.011-1.176.095-5.643.708-7.948a4.27 4.27 0 0 1 3.006-3.025c1.098-.296 3.561-.47 6.073-.571l.628-.024c2.51-.09 4.958-.113 6.025-.118L16.775 5h.08Zm-3.623 6.922v10.11l8.886-5.055z\\"/>"}}'),B3=34,k3=34,Ha={icons:F3,width:34,height:34};var z3=ai("<svg><!></svg>");function Tx(e,t){he(t,!0),Object.keys(Ha.icons).filter((e=>e.endsWith("color"))).map((e=>e.replace(/\-color$/,"")));let n=L(t,"platform",7),i=L(t,"variant",7,"color"),r=L(t,"class",7),o=nt(t,["$$slots","$$events","$$legacy","$$host","platform","variant","class"]),s=_e((()=>`${n()}-${i()}`)),a=_e((()=>y(s)in Ha.icons?Ha.icons[y(s)]:void 0)),l=ie("");ut((()=>{var e;X(l,(null==(e=y(a))?void 0:e.body)??"",!0)}));var c=j(),u=G(c),d=e=>{var t=z3();let i;yt(ae(t),(()=>y(l)),!0,!1),oe(t),et((e=>i=gt(t,i,{viewBox:`0 0 ${Ha.width} ${Ha.height}`,role:"img","aria-label":n(),width:"1em",height:"1em",class:e,...o})),[()=>Sn("fill-current",r())]),C(e,t)};return Ke(u,(e=>{y(a)&&e(d)})),C(e,c),pe({get platform(){return n()},set platform(e){n(e),R()},get variant(){return i()},set variant(e="color"){i(e),R()},get class(){return r()},set class(e){r(e),R()}})}function iv(e,t){he(t,!0);let n=L(t,"class",7),i=L(t,"platform",7),r=L(t,"context",7),o=L(t,"children",7),s=nt(t,["$$slots","$$events","$$legacy","$$host","class","platform","context","children"]),a=Mx();const l=_t({base:"text-current",variants:{context:{masthead:["text-comp-social-media-bar-item-masthead text-opacity-comp-social-media-bar-item-masthead","active:text-comp-social-media-bar-item-masthead-active active:text-opacity-comp-social-media-bar-item-masthead-active","hover:text-comp-social-media-bar-item-masthead-hover hover:text-opacity-comp-social-media-bar-item-masthead-hover"],menu:["text-comp-social-media-bar-item-menu text-opacity-comp-social-media-bar-item-menu","active:text-comp-social-media-bar-item-menu-active active:text-opacity-comp-social-media-bar-item-menu-active","hover:text-comp-social-media-bar-item-menu-hover hover:text-opacity-comp-social-media-bar-item-menu-hover"]}},defaultVariants:{context:"masthead"}}),c=_e((()=>l({className:n()})));return vn(e,Dt({family:"link",icon:!0,pill:!0,size:"sm",get class(){return y(c)}},(()=>s),{children:(e,t)=>{var n=j(),r=G(n),s=e=>{Tx(e,{get platform(){return i()},get variant(){return a.variant},class:"size-6"})},l=e=>{var t=j();Ue(G(t),(()=>o()??ct),(()=>!1)),C(e,t)};Ke(r,(e=>{i()?e(s):e(l,!1)})),C(e,n)},$$slots:{default:!0}})),pe({get class(){return n()},set class(e){n(e),R()},get platform(){return i()},set platform(e){i(e),R()},get context(){return r()},set context(e){r(e),R()},get children(){return o()},set children(e){o(e),R()}})}function H3(e,t){he(t,!0);const n=nt(t,["$$slots","$$events","$$legacy","$$host"]),i=_e((()=>Ei(n)));nv(e,Dt((()=>y(i)),{children:(e,n)=>{var i=j();Wt(G(i),t,"default",{}),C(e,i)},$$slots:{default:!0}}
1)),pe()}function V3(e,t){he(t,!0);const n=nt(t,["$$slots","$$events","$$legacy","$$host"]),i=_e((()=>Ei(n)));An(e,{ontypography:t.$$host.handleTypography,class:"[&_svg]:size-6 [&_svg]:fill-current",children:(e,n)=>{iv(e,Dt((()=>y(i)),{children:(e,n)=>{var i=j();Wt(G(i),t,"default",{}),C(e,i)},$$slots:{default:!0}}))},$$slots:{default:!0}}),pe()}se(Tx,{platform:{},variant:{},class:{}},[],[],!0),se(iv,{class:{},platform:{},context:{},children:{}},[],[],!0),Object.assign(nv,{Item:iv}),customElements.define("vision-social-media-bar",se(H3,{source:{attribute:"source",reflect:!0,type:"String"}},["default"],[],!0,Mt())),customElements.define("vision-social-media-bar-item",se(V3,{source:{attribute:"source",reflect:!0,type:"String"}},["default"],[],!0,Mt()));var $3=me('<div class="bg-[#00A03B] relative overflow-hidden"><!></div>');function rv(e,t){he(t,!0);let n=L(t,"children",7);var i=$3();return Ue(ae(i),(()=>n()??ct)),oe(i),C(e,i),pe({get children(){return n()},set children(e){n(e),R()}})}se(rv,{children:{}},[],[],!0);var G3=me("<div><!></div>");function Ax(e,t){he(t,!0);let n=L(t,"children",7),i=L(t,"class",7),r=nt(t,["$$slots","$$events","$$legacy","$$host","children","class"]);var o=G3();let s;return Ue(ae(o),(()=>n()??ct)),oe(o),et((()=>s=gt(o,s,{class:["v-image-credit","bg-core-neutral-400/50 text-white text-[0.75rem] leading-[1.75] py-1 px-5",i()],...r}))),C(e,o),pe({get children(){return n()},set children(e){n(e),R()},get class(){return i()},set class(e){i(e),R()}})}se(Ax,{children:{},class:{}},[],[],!0);var W3=me('<div class="absolute inset-0 z-10 mix-blend-color-dodge bg-[#AFCB37] opacity-30"></div> <div class="absolute inset-0 z-10 mix-blend-color-burn bg-[#AFCB37]"></div> <div class="absolute inset-0 z-10 mix-blend-multiply bg-white"></div> <div class="absolute inset-0 z-10 mix-blend-screen bg-[#00A03B]"></div>',1),X3=me('<div class="absolute top-0 start-0 z-50 w-full ml:w-1/2"><!></div>'),q3=me('<div class="relative ml:absolute ml:inset-y-0 ml:start-[50%] ml:w-full overflow-hidden"><!> <div class="absolute inset-0 z-10 bg-gradient-to-t from-[#00A03B] to-transparent to-70% ml:bg-gradient-to-r rtl:ml:bg-gradient-to-l [&:dir(rtl)]:ml:bg-gradient-to-l ml:to-40%"></div> <div><!></div> <!></div>');function ov(e,t){he(t,!0);let n=L(t,"mode",7,"original"),i=L(t,"children",7),r=L(t,"credit",7);const o=yo();var s=q3(),a=ae(s),l=e=>{var t=W3();Jd(6),C(e,t)};Ke(a,(e=>{"duotone"===n()&&e(l)}
1));var c=Ge(a,4);Ue(ae(c),(()=>i()??ct)),oe(c);var u=Ge(c,2),d=e=>{var t=X3();Ax(ae(t),{class:"absolute top-0 end-0 z-50",id:o,children:(e,t)=>{var n=j();Ue(G(n),(()=>r()??ct)),C(e,n)},$$slots:{default:!0}}),oe(t),C(e,t)};return Ke(u,(e=>{r()&&e(d)})),oe(s),et((()=>{Ft(c,1,Jt(["relative w-full h-auto ml:h-full aspect-square scale-[200%] ml:scale-100 -translate-y-1/2 ml:translate-y-0","[&_img]:size-full [&_img]:object-cover",{"[&_img]:filter [&_img]:grayscale [&_img]:brightness-110":"duotone"===n()}])),nn(c,"role",r()?"group":void 0),nn(c,"aria-labelledby",r()?o:void 0)})),C(e,s),pe({get mode(){return n()},set mode(e="original"){n(e),R()},get children(){return i()},set children(e){i(e),R()},get credit(){return r()},set credit(e){r(e),R()}})}se(ov,{mode:{},children:{},credit:{}},[],[],!0);const qf=_t({base:["antialiased vision vision-lg vision-p:leading-[1.55] font-light vision-headings:font-light vision-headings:mb-[1.875rem] vision-p:mb-[1.875rem] [&>:where(:last-child)]:mb-0"],variants:{context:{inversed:"text-white vision-headings:text-inherit",banner_duotone:"text-white vision-headings:text-inherit vision-headings:leading-[1.3] vision-headings:text-[2.125rem] md:vision-headings:text-[3rem] xl:vision-headings:text-[3.25rem]",hero_banner_content:"text-[1.3125rem] text-core-support-1 vision-headings:mb-[1.25rem] vision-headings:text-core-primary vision-headings:leading-[1.3] vision-headings:text-[2.125rem] md:vision-headings:text-[3rem] xl:vision-headings:text-[3.25rem]",hero_carousel_slide:["text-[1.3125rem] text-core-support-1 ","vision-headings:text-core-primary vision-headings:leading-[1.35] vision-headings:text-[2.375rem] md:vision-headings:text-[3.75rem] xl:vision-headings:text-[4.25rem]","vision-em:text-core-accent vision-em:not-italic vision-em:font-bold"],bentobox_card:["text-white vision-headings:text-inherit vision-p:text-[1.1875rem] vision-headings:text-[1.1875rem] vision-p:leading-[1.55] vision-headings:leading-[1.55]","vision-em:not-italic vision-em:font-bold"],bentobox_card_inversed:["text-core-primary vision-headings:text-inherit vision-p:text-[1.1875rem] vision-headings:text-[1.1875rem] vision-p:leading-[1.55] vision-headings:leading-[1.55]","vision-em:text-core-accent vision-em:not-italic vision-em:font-bold"],card_list_card:["text-core-secondary vision-headings:text-core-secondary vision-headings:text-[1.3125rem] vision-headings:leading-[1.55] vision-headings:mb-[0.9375rem]","vision-p:text-[1.3125rem] vision-p:leading-[1.55] vision-p:mb-[1.25rem]"]}}});var Y3=me("<div><!></div>");function Cx(e,t){he(t,!0);let n=L(t,"children",7),i=L(t,"class",7),r=nt(t,["$$slots","$$events","$$legacy","$$host","children","class"]);const o=_e((()=>xn(r,qf.variants))),s=_e((()=>wn(r,qf.variants)));var a=Y3();let l;return Ue(ae(a),(()=>n()??ct)),oe(a),et((e=>l=gt(a,l,{class:e,...y(s)})),[()=>qf({...y(o),className:i()})]),C(e,a),pe({get children(){return n()},set children(e){n(e),R()},get class(){return i()},set class(e){i(e),R()}})}se(Cx,{children:{},class:{}},[],[],!0);const ha=Cx;var j3=me("<div><!></div>"),K3=me('<div class="max-w-[33.125rem] ml:max-w-[42.125rem] mx-auto ml:ms-0 flex flex-col gap-[2.5rem] md:gap-[3.125rem] items-start"><!> <!></div>');function sv(e,t){he(t,!0);let n=L(t,"children",7),i=L(t,"footer",7);return yr(e,{size:"main",column:"true",class:"pb-[3.75rem] md:pb-[5.625rem] ml:py-[5.625rem] relative z-10",children:(e,t)=>{var r=K3(),o=ae(r);ha(o,{context:"banner_duotone",children:(e,t)=>{var i=j();Ue(G(i),(()=>n()??ct)),C(e,i)},$$slots:{default:!0}});var s=Ge(o,2),a=e=>{var t=j3();Ue(ae(t),i),oe(t),C(e,t)};Ke(s,(e=>{i()&&e(a)})),oe(r),C(e,r)},$$slots:{default:!0}}),pe({get children(){return n()},set children(e){n(e),R()},get footer(){return i()},set footer(e){i(e),R()}})}function Q3(e,t){rv(e,{children:(e,n)=>{var i=j();Wt(G(i),t,"default",{}),C(e,i)},$$slots:{default:!0}})}se(sv,{children:{},footer:{}},[],[],!0),Object.assign(rv,{BackgroundImage:ov,Content:sv}),customElements.define("vision-banner-duotone",se(Q3,{},["default"],[],!0,Mt()));const Z3=e=>{var t=j();yt(G(t),(()=>'<slot name="image-credit" />'),!1,!1),C(e,t)};function J3(e,t){he(t,!0);let n=L(t,"mode",7,"original"),i=ie(!1);ut((()=>{const e=t.$$host.querySelector('[slot="image-credit"]');X(i,null!==e)}));const r=_t({base:["[&_img]:w-full [&_img]:h-full [&_img]:object-cover [&_img]:ml:object-right rtl:ml:object-left [&:dir(rtl)]:ml:object-left"],variants:{mode:{original:"",duotone:"[&_img]:filter [&_img]:grayscale [&_img]:brightness-110"}},defaultVariants:{mode:"original"}}),o=_e((()=>r({mode:n()})));return An(e,{ontypography:t.$$host.handleTypography,get class(){return y(o)},children:(e,t)=>{const r=_e((()=>y(i)?Z3:void 0));ov(e,{get mode(){return n()},get credit(){return y(r)},children:(e,t)=>{var n=j();yt(G(n),(()=>"<slot />"),!1,!1),C(e,n)},$$slots:{default:!0}})},$$slots:{default:!0}}),pe({get mode(){return n()},set mode(e="original"){n(e),R()}})}customElements.define("vision-banner-duotone-background-image",se(J3,{mode:{attribute:"mode",type:"String"}},[],[],!0,Mt()));const mf=(e,...t)=>{const n=Lt({});let i=null;const r=()=>{t.forEach((t=>{n[t]=null!==e.querySelector(`[slot="${t}"]`)}))};return ut((()=>(r(),i=new MutationObserver((()=>{r()})),i.observe(e,{childList:!0,attributes:!0,attributeFilter:["slot"]}),()=>{null==i||i.disconnect()}))),n},eP=e=>{var t=j();yt(G(t),(()=>'<slot name="footer" />'),!1,!1),C(e,t)};function tP(e,t){he(t,!0);const n=mf(t.$$host,"footer"),i=_e((()=>n.footer?eP:void 0));sv(e,{get footer(){return y(i)},children:(e,t)=>{var n=j();yt(G(n),(()=>"<slot />"),!1,!1),C(e,n)},$$slots:{default:!0}}),pe()}function nP(e){var t=j();yt(G(t),(()=>"<slot />"),!1,!1),C(e,t)}customElements.define("vision-banner-duotone-content",se(tP,{},[],[],!0,Mt())),customElements.define("vision-image-credit",se(nP,{},[],[],!0,Mt({slot:"image-credit"})));var iP=me('<div class="flex flex-col gap-5"><!></div>');function Px(e,t){he(t,!0);let n=L(t,"children",7);var i=iP();return Ue(ae(i),(()=>n()??ct)),oe(i),C(e,i),pe({get children(){return n()},set children(e){n(e),R()}})}se(Px,{children:{}},[],[],!0);var rP=me('<div class="grid grid-flow-col place-items-stretch gap-2"><!></div>');function Rx(e,t){he(t,!0);let n=L(t,"children",7);var i=rP();return Ue(ae(i),(()=>n()??ct)),oe(i),C(e,i),pe({get children(){return n()},set children(e){n(e),R()}})}se(Rx,{children:{}},[],[],!0);var oP=me("<div><!></div>");function Lx(e,t){he(t,!0);const n=L(t,"children",7),i=L(t,"align",7),r=_t({base:["flex items-center gap-[inherit]"],variants:{align:{start:"justify-start",end:"justify-end"}},defaultVariants:{align:"start"}});var o=oP();return Ue(ae(o),(()=>n()??ct)),oe(o),et((e=>Ft(o,1,e)),[()=>Jt(r({align:i()}))]),C(e,o),pe({get children(){return n()},set children(e){n(e),R()},get align(){return i()},set align(e){i(e),R()}})}se(Lx,{children:{},align:{}},[],[],!0);const al=Object.assign(Px,{Line:Rx,StartEnd:Lx});function sP(e,t){he(t,!0);let n=ie(Lt([]));ut((()=>(X(n,Array.from(t.$$host.children),!0),pn((()=>{for(let e=0;e<y(n).length;e++)y(n)[e].slot="child-"+e})),()=>{X(n,[],!0)}))),al(e,{children:(e,t)=>{var i=j();ti(G(i),18,(()=>y(n)),(e=>e),((e,t,n)=>{var i=j();Qe(G(i),(()=>al.Line),((e,t)=>{t(e,{children:(e,t)=>{var i=j();yt(G(i),(()=>'<slot name="child-'+y(n)+'" />'),!1,!1),C(e,i)},$$slots:{default:!0}})})),C(e,i)})),C(e,i)},$$slots:{default:!0}}),pe()}customElements.define("vision-stack",se(sP,{},[],[],!0,Mt()));var aP=me("<!> <!>",1);function lP(e,t){he(t,!0);let n=ie(Lt([])),i=ie(Lt([]));const r="VISION-STACK-END";ut((()=>(X(n,Array.from(t.$$host.children).filter((e=>e.tagName!==r)),!0),X(i,Array.from(t.$$host.children).filter((e=>e.tagName===r)),!0),pn((()=>{for(let e=0;e<y(n).length;e++)y(n)[e].slot="child-at-start-"+e;for(let e=0;e<y(i).length;e++)y(i)[e].slot="child-at-end-"+e})),()=>{X(n,[],!0)})));var o=j();Qe(G(o),(()=>al.Line),((e,t)=>{t(e,{children:(e,t)=>{var r=aP(),o=G(r);Qe(o,(()=>al.StartEnd),((e,t)=>{t(e,{align:"start",children:(e,t)=>{var i=j();ti(G(i),18,(()=>y(n)),(e=>e),((e,t,n)=>{var i=j();yt(G(i),(()=>'<slot name="child-at-start-'+y(n)+'" />'),!1,!1),C(e,i)})),C(e,i)},$$slots:{default:!0}})}));var s=Ge(o,2),a=e=>{var t=j();Qe(G(t),(()=>al.StartEnd),((e,t)=>{t(e,{align:"end",children:(e,t)=>{var n=j();ti(G(n),18,(()=>y(i)),(e=>e),((e,t,n)=>{var i=j();yt(G(i),(()=>'<slot name="child-at-end-'+y(n)+'" />'),!1,!1),C(e,i)})),C(e,n)},$$slots:{default:!0}})})),C(e,t)};Ke(s,(e=>{y(i).length>0&&e(a)})),C(e,r)},$$slots:{default:!0}})})),C(e,o),pe()}function cP(e){var t=j();yt(G(t),(()=>"<slot />"),!1,!1),C(e,t)}function uP(e){var t=j();yt(G(t),(()=>"<slot />"),!1,!1),C(e,t)}customElements.define("vision-stack-line",se(lP,{},[],[],!0,Mt())),customElements.define("vision-stack-start",se(cP,{},[],[],!0)),customElements.define("vision-stack-end",se(uP,{},[],[],!0));const dP={active:!0,breakpoints:{},delay:4e3,jump:!1,playOnInit:!0,stopOnFocusIn:!0,stopOnInteraction:!0,stopOnMouseEnter:!1,stopOnLastSnap:!1,rootNode:null};function fP(e,t){const n=e.scrollSnapList();return"number"==typeof t?n.map((()=>t)):t(n,e)}function hP(e,t){const n=e.rootNode();return t&&t(n)||n}function vf(e={}){let t,n,i,r,o=null,s=0,a=!1,l=!1,c=!1,u=!1;function d(){if(!i){if(f())return void(c=!0);a||n.emit("autoplay:play"),function(){const{ownerWindow:e}=n.internalEngine();e.clearTimeout(s),s=e.setTimeout(y,r[n.selectedScrollSnap()]),o=(new Date).getTime(),n.emit("autoplay:timerset")}(),a=!0}}function h(){i||(a&&n.emit("autoplay:stop"),function(){const{ownerWindow:e}=n.internalEngine();e.clearTimeout(s),s=0,o=null,n.emit("autoplay:timerstopped")}(),a=!1)}function p(){if(f())return c=a,h();c&&d()}function f(){const{ownerDocument:e}=n.internalEngine();return"hidden"===e.visibilityState}function m(){l||h()}function g(){l||d()}function v(){l=!0,h()}function b(){l=!1,d()}function y(){const{index:e}=n.internalEngine(),i=e.clone().add(1).get(),r=n.scrollSnapList().length-1,o=t.stopOnLastSnap&&i===r;if(n.canScrollNext()?n.scrollNext(u):n.scrollTo(0,u),n.emit("autoplay:select"),o)return h();d()}return{name:"autoplay",options:e,init:function(o,s){n=o;const{mergeOptions:a,optionsAtMedia:l}=s,c=a(dP,vf.globalOptions),f=a(c,e);if(t=l(f),n.scrollSnapList().length<=1)return;u=t.jump,i=!1,r=fP(n,t.delay);const{eventStore:y,ownerDocument:_}=n.internalEngine(),x=!!n.internalEngine().options.watchDrag,S=hP(n,t.rootNode);y.add(_,"visibilitychange",p),x&&n.on("pointerDown",m),x&&!t.stopOn
1Interaction&&n.on("pointerUp",g),t.stopOnMouseEnter&&y.add(S,"mouseenter",v),t.stopOnMouseEnter&&!t.stopOnInteraction&&y.add(S,"mouseleave",b),t.stopOnFocusIn&&n.on("slideFocusStart",h),t.stopOnFocusIn&&!t.stopOnInteraction&&y.add(n.containerNode(),"focusout",d),t.playOnInit&&d()},destroy:function(){n.off("pointerDown",m).off("pointerUp",g).off("slideFocusStart",h),h(),i=!0,a=!1},play:function(e){typeof e<"u"&&(u=e),d()},stop:function(){a&&h()},reset:function(){a&&d()},isPlaying:function(){return a},timeUntilNext:function(){return o?r[n.selectedScrollSnap()]-((new Date).getTime()-o):null}}}function Dx(e={}){let t,n=[];const i=["select","slideFocus"];function r(){const{slideRegistry:e}=t.internalEngine(),i=e[t.selectedScrollSnap()];return i?i.map((e=>n[e])).reduce(((e,t)=>Math.max(e,t)),0):null}function o(){null!==r()&&(t.containerNode().style.height=`${r()}px`)}return{name:"autoHeight",options:e,init:function(e){t=e;const{options:{axis:r},slideRects:s}=t.internalEngine();"y"!==r&&(n=s.map((e=>e.height)),i.forEach((e=>t.on(e,o))),o())},destroy:function(){i.forEach((e=>t.off(e,o)));const e=t.containerNode();e.style.height="",e.getAttribute("style")||e.removeAttribute("style")}}}function av(e){return"number"==typeof e}function dp(e){return"string"==typeof e}function gf(e){return"boolean"==typeof e}function Lg(e){return"[object Object]"===Object.prototype.toString.call(e)}function ln(e){return Math.abs(e)}function lv(e){return Math.sign(e)}function ll(e,t){return ln(e-t)}function pP(e,t){if(0===e||0===t||ln(e)<=ln(t))return 0;const n=ll(ln(e),ln(t));return ln(n/e)}function mP(e){return Math.round(100*e)/100}function Al(e){return Cl(e).map(Number)}function Xi(e){return e[vu(e)]}function vu(e){return Math.max(0,e.length-1)}function cv(e,t){return t===vu(e)}function Dg(e,t=0){return Array.from(Array(e),((e,n)=>t+n))}function Cl(e){return Object.keys(e)}function Ix(e,t){return[e,t].reduce(((e,t)=>(Cl(t).forEach((n=>{const i=e[n],r=t[n],o=Lg(i)&&Lg(r);e[n]=o?Ix(i,r):r})),e)),{})}function fp(e,t){return typeof t.MouseEvent<"u"&&e instanceof t.MouseEvent}function vP(e,t){const n={start:function(){return 0},center:function(e){return i(e)/2},end:i};function i(e){return t-e}return{measure:function(i,r){return dp(e)?n[e](i):e(t,i,r)}}}function Pl(){let e=[];const t={add:function(n,i,r,o={passive:!0}){let s;if("addEventListener"in n)n.addEventListener(i,r,o),s=()=>n.removeEventListener(i,r,o);else{const e=n;e.addListener(r),s=()=>e.removeListener(r)}return e.push(s),t},clear:function(){e=e.filter((e=>e()))}};return t}function gP(e,t,n,i){const r=Pl(),o=1e3/60;let s=null,a=0,l=0;function c(e){if(!l)return;s||(s=e,n(),n());const r=e-s;for(s=e,a+=r;a>=o;)n(),a-=o;i(a/o),l&&(l=t.requestAnimationFrame(c))}function u(){t.cancelAnimationFrame(l),s=null,a=0,l=0}return{init:function(){r.add(e,"visibilitychange",(()=>{e.hidden&&(s=null,a=0)}))},destroy:function(){u(),r.clear()},start:function(){l||(l=t.requestAnimationFrame(c))},stop:u,update:n,render:i}}function bP(e,t){const n="rtl"===t,i="y"===e,r=!i&&n?-1:1;return{scroll:i?"y":"x",cross:i?"x":"y",startEdge:i?"top":n?"right":"left",endEdge:i?"bottom":n?"left":"right",measureSize:function(e){const{height:t,width:n}=e;return i?t:n},direction:function(e){return e*r}}}function ss(e=0,t=0){const n=ln(e-t);function i(t){return t<e}function r(e){return e>t}function o(e){return i(e)||r(e)}return{length:n,max:t,min:e,constrain:function(n){return o(n)?i(n)?e:t:n},reachedAny:o,reachedMax:r,reachedMin:i,removeOffset:function(e){return n?e-n*Math.ceil((e-t)/n):e}}}function Nx(e,t,n){const{constrain:i}=ss(0,e),r=e+1;let o=s(t);function s(e){return n?ln((r+e)%r):i(e)}function a(){return o}function l(){return Nx(e,a(),n)}const c={get:a,set:function(e){return o=s(e),c},add:function(e){return l().set(a()+e)},clone:l};return c}function _P(e,t,n,i,r,o,s,a,l,c,u,d,h,p,f,m,g,v,b){const{cross:y,direction:_}=e,x=["INPUT","SELECT","TEXTAREA"],S={passive:!1},w=Pl(),M=Pl(),E=ss(50,225).constrain(p.measure(20)),T={mouse:300,touch:400},C={mouse:500,touch:600},R=f?43:25;let A=!1,L=0,P=0,N=!1,D=!1,I=!1,O=!1;function U(e){if(!fp(e,i)&&e.touches.length>=2)return k(e);const t=o.readPoint(e),n=o.readPoint(e,y),s=ll(t,L),l=ll(n,P);if(!(D||O||e.cancelable&&(D=s>l,D)))return k(e);const u=o.pointerMove(e);s>m&&(I=!0),c.useFriction(.3).useDuration(.75),a.start(),r.add(_(u)),e.preventDefault()}function k(e){const t=u.byDistance(0,!1).index!==d.get(),n=o.pointerUp(e)*(f?C:T)[O?"mouse":"touch"],i=function(e,t){const n=d.add(-1*lv(e)),i=u.byDistance(e,!f).distance;return f||ln(e)<E?i:g&&t?.5*i:u.byIndex(n.get(),0).distance}
1(_(n),t),r=pP(n,i),s=R-10*r,a=v+r/50;D=!1,N=!1,M.clear(),c.useDuration(s).useFriction(a),l.distance(i,!f),O=!1,h.emit("pointerUp")}function F(e){I&&(e.stopPropagation(),e.preventDefault(),I=!1)}return{init:function(e){if(!b)return;function a(a){(gf(b)||b(e,a))&&function(e){const a=fp(e,i);O=a,I=f&&a&&!e.buttons&&A,A=ll(r.get(),s.get())>=2,(!a||0===e.button)&&(function(e){const t=e.nodeName||"";return x.includes(t)}(e.target)||(N=!0,o.pointerDown(e),c.useFriction(0).useDuration(0),r.set(s),function(){const e=O?n:t;M.add(e,"touchmove",U,S).add(e,"touchend",k).add(e,"mousemove",U,S).add(e,"mouseup",k)}(),L=o.readPoint(e),P=o.readPoint(e,y),h.emit("pointerDown")))}(a)}const l=t;w.add(l,"dragstart",(e=>e.preventDefault()),S).add(l,"touchmove",(()=>{}),S).add(l,"touchend",(()=>{})).add(l,"touchstart",a).add(l,"mousedown",a).add(l,"touchcancel",k).add(l,"contextmenu",k).add(l,"click",F,!0)},destroy:function(){w.clear(),M.clear()},pointerDown:function(){return N}}}function yP(e,t){let n,i;function r(e){return e.timeStamp}function o(n,i){const r="client"+("x"===(i||e.scroll)?"X":"Y");return(fp(n,t)?n:n.touches[0])[r]}return{pointerDown:function(e){return n=e,i=e,o(e)},pointerMove:function(e){const t=o(e)-o(i),s=r(e)-r(n)>170;return i=e,s&&(n=e),t},pointerUp:function(e){if(!n||!i)return 0;
1const t=o(i)-o(n),s=r(e)-r(n),a=r(e)-r(i)>170,l=t/s;return s&&!a&&ln(l)>.1?l:0},readPoint:o}}function xP(){return{measure:function(e){const{offsetTop:t,offsetLeft:n,offsetWidth:i,offsetHeight:r}=e;return{top:t,right:n+i,bottom:t+r,left:n,width:i,height:r}}}}function SP(e){return{measure:function(t){return e*(t/100)}}}function EP(e,t,n,i,r,o,s){const a=[e].concat(i);let l,c,u=[],d=!1;function h(e){return r.measureSize(s.measure(e))}return{init:function(r){o&&(c=h(e),u=i.map(h),l=new ResizeObserver((n=>{(gf(o)||o(r,n))&&function(n){for(const o of n){if(d)return;const n=o.target===e,s=i.indexOf(o.target),a=n?c:u[s];if(ln(h(n?e:i[s])-a)>=.5){r.reInit(),t.emit("resize");break}}}(n)})),n.requestAnimationFrame((()=>{a.forEach((e=>l.observe(e)))})))},destroy:function(){d=!0,l&&l.disconnect()}}}function wP(e,t,n,i,r,o){let s=0,a=0,l=r,c=o,u=e.get(),d=0;function h(e){return l=e,f}function p(e){return c=e,f}const f={direction:function(){return a},duration:function(){return l},velocity:function(){return s},seek:function(){const t=i.get()-e.get();let r=0;return!l?(s=0,n.set(i),e.set(i),r=t):(n.set(e),s+=t/l,s*=c,u+=s,e.add(s),r=u-d),a=lv(r),d=u,f},settled:function(){return ln(i.get()-t.get())<.001},useBaseFriction:function(){return p(o)},useBaseDuration:function(){return h(r)},useFriction:p,useDuration:h};return f}function MP(e,t,n,i,r){const o=r.measure(10),s=r.measure(50),a=ss(.1,.99);let l=!1;function c(){return!(l||!e.reachedAny(n.get())||!e.reachedAny(t.get()))}return{shouldConstrain:c,constrain:function(r){if(!c())return;const l=e.reachedMin(t.get())?"min":"max",u=ln(e[l]-t.get()),d=n.get()-t.get(),h=a.constrain(u/s);n.subtract(d*h),!r&&ln(d)<o&&(n.set(e.constrain(n.get())),i.useDuration(25).useBaseFriction())},toggleActive:function(e){l=!e}}}function TP(e,t,n,i,r){const o=ss(-t+e,0),s=n.map(((e,t)=>{const{min:i,max:r}=o,s=o.constrain(e),a=!t,c=cv(n,t);return a?r:c||l(i,s)?i:l(r,s)?r:s})).map((e=>parseFloat(e.toFixed(3)))),a=function(){const e=s[0],t=Xi(s),n=s.lastIndexOf(e),i=s.indexOf(t)+1;return ss(n,i)}();function l(e,t){return ll(e,t)<=1}return{snapsContained:function(){if(t<=e+r)return[o.max];if("keepSnaps"===i)return s;const{min:n,max:l}=a;return s.slice(n,l)}(),scrollContainLimit:a}}function AP(e,t,n){const i=t[0];return{limit:ss(n?i-e:Xi(t),i)}}function CP(e,t,n,i){const r=t.min+.1,o=t.max+.1,{reachedMin:s,reachedMax:a}=ss(r,o);return{loop:function(t){if(!function(e){return 1===e?a(n.get()):-1===e&&s(n.get())}(t))return;const r=e*(-1*t);i.forEach((e=>e.add(r)))}}}function PP(e){const{max:t,length:n}=e;return{get:function(e){return n?(e-t)/-n:0}}}function RP(e,t,n,i,r){const{startEdge:o,endEdge:s}=e,{groupSlides:a}=r,l=a(i).map((e=>Xi(e)[s]-e[0][o])).map(ln).map(t.measure),c=i.map((e=>n[o]-e[o])).map((e=>-ln(e))),u=a(c).map((e=>e[0])).map(((e,t)=>e+l[t]));return{snaps:c,snapsAligned:u}}function LP(e,t,n,i,r,o){const{groupSlides:s}=r,{min:a,max:l}=i;return{slideRegistry:function(){const i=s(o),r=!e||"keepSnaps"===t;return 1===n.length?[o]:r?i:i.slice(a,l).map(((e,t,n)=>{const i=!t,r=cv(n,t);if(i){return Dg(Xi(n[0])+1)}if(r){return Dg(vu(o)-Xi(n)[0]+1,Xi(n)[0])}return e}))}()}}function DP(e,t,n,i,r){const{reachedAny:o,removeOffset:s,constrain:a}=i;function l(e){return e.concat().sort(((e,t)=>ln(e)-ln(t)))[0]}function c(t,i){const r=[t,t+n,t-n];if(!e)return t;if(!i)return l(r);const o=r.filter((e=>lv(e)===i));return o.length?l(o):Xi(r)-n}return{byDistance:function(n,i){const l=r.get()+n,{index:u,distance:d}=function(n){const i=e?s(n):a(n),r=t.map(((e,t)=>({diff:c(e-i,0),index:t}))).sort(((e,t)=>ln(e.diff)-ln(t.diff))),{index:o}=r[0];return{index:o,distance:i}}(l),h=!e&&o(l);return!i||h?{index:u,distance:n}:{index:u,distance:n+c(t[u]-d,0)}},byIndex:function(e,n){return{index:e,distance:c(t[e]-r.get(),n)}},shortcut:c}}function IP(e,t,n,i,r,o,s){function a(r){const a=r.distance,l=r.index!==t.get();
vendor: 4,286 bytes, line 1
1o.add(a),a&&(i.duration()?e.start():(e.update(),e.render(1),e.update())),l&&(n.set(t.get()),t.set(r.index),s.emit("select"))}return{distance:function(e,t){a(r.byDistance(e,t))},index:function(e,n){const i=t.clone().set(e);a(r.byIndex(i.get(),n))}}}function NP(e,t,n,i,r,o,s,a){const l={passive:!0,capture:!0};let c=0;function u(e){"Tab"===e.code&&(c=(new Date).getTime())}return{init:function(d){a&&(o.add(document,"keydown",u,!1),t.forEach(((t,u)=>{o.add(t,"focus",(t=>{(gf(a)||a(d,t))&&function(t){if((new Date).getTime()-c>10)return;s.emit("slideFocusStart"),e.scrollLeft=0;const o=n.findIndex((e=>e.includes(t)));av(o)&&(r.useDuration(0),i.index(o,0),s.emit("slideFocus"))}(u)}),l)})))}}}function el(e){let t=e;function n(e){return av(e)?e:e.get()}return{get:function(){return t},set:function(e){t=n(e)},add:function(e){t+=n(e)},subtract:function(e){t-=n(e)}}}function Ox(e,t){const n="x"===e.scroll?function(e){return`translate3d(${e}px,0px,0px)`}:function(e){return`translate3d(0px,${e}px,0px)`},i=t.style;let r=null,o=!1;return{clear:function(){o||(i.transform="",t.getAttribute("style")||t.removeAttribute("style"))},to:function(t){if(o)return;const s=mP(e.direction(t));s!==r&&(i.transform=n(s),r=s)},toggleActive:function(e){o=!e}}}function OP(e,t,n,i,r,o,s,a,l){const c=Al(r),u=Al(r).reverse(),d=function(){const e=s[0];return f(p(u,e),n,!1)}().concat(function(){const e=t-s[0]-1;return f(p(c,e),-n,!0)}());function h(e,t){return e.reduce(((e,t)=>e-r[t]),t)}function p(e,t){return e.reduce(((e,n)=>h(e,t)>0?e.concat([n]):e),[])}function f(r,s,c){const u=function(e){return o.map(((n,r)=>({start:n-i[r]+.5+e,end:n+t-.5+e})))}(s);return r.map((t=>{const i=c?0:-n,r=c?n:0,o=c?"end":"start",s=u[t][o];return{index:t,loopPoint:s,slideLocation:el(-1),translate:Ox(e,l[t]),target:()=>a.get()>s?i:r}}))}return{canLoop:function(){return d.every((({index:e})=>h(c.filter((t=>t!==e)),t)<=.1))},clear:function(){d.forEach((e=>e.translate.clear()))},loop:function(){d.forEach((e=>{const{target:t,translate:n,slideLocation:i}=e,r=t();r!==i.get()&&(n.to(r),i.set(r))}))},loopPoints:d}}function UP(e,t,n){let i,r=!1;return{init:function(o){n&&(i=new MutationObserver((e=>{r||(gf(n)||n(o,e))&&function(e){for(const n of e)if("childList"===n.type){o.reInit(),t.emit("slidesChanged");break}}(e)})),i.observe(e,{childList:!0}))},destroy:function(){i&&i.disconnect(),r=!0}}}function FP(e,t,n,i){const r={};let o,s=null,a=null,l=!1;return{init:function(){o=new IntersectionObserver((e=>{l||(e.forEach((e=>{const n=t.indexOf(e.target);r[n]=e})),s=null,a=null,n.emit("slidesInView"))}),{root:e.parentElement,threshold:i}),t.forEach((e=>o.observe(e)))},destroy:function(){o&&o.disconnect(),l=!0},get:function(e=!0){if(e&&s)return s;if(!e&&a)return a;const t=function(e){return Cl(r).reduce(((t,n)=>{const i=parseInt(n),{isIntersecting:o}=r[i];return(e&&o||!e&&!o)&&t.push(i),t}),[])}(e);return e&&(s=t),e||(a=t),t}}}function BP(e,t,n,i,r,o){const{measureSize:s,startEdge:a,endEdge:l}=e,c=n[0]&&r,u=function(){if(!c)return 0;const e=n[0];return ln(t[a]-e[a])}(),d=function(){if(!c)return 0;const e=o.getComputedStyle(Xi(i));return parseFloat(e.getPropertyValue(`margin-${l}`))}(),h=n.map(s),p=n.map(((e,t,n)=>{const i=!t,r=cv(n,t);return i?h[t]+u:r?h[t]+d:n[t+1][a]-e[a]})).map(ln);return{slideSizes:h,slideSizesWithGaps:p,startGap:u,endGap:d}}function kP(e,t,n,i,r,o,s,a,l){const{startEdge:c,endEdge:u,direction:d}=e,h=av(n);return{groupSlides:function(e){return h?function(e,t){return Al(e).filter((e=>e%t==0)).map((n=>e.slice(n,n+t)))}(e,n):function(e){return e.length?Al(e).reduce(((n,h,p)=>{const f=Xi(n)||0,m=0===f,g=h===vu(e),v=r[c]-o[f][c],b=r[c]-o[h][u],y=!i&&m?d(s):0,_=ln(b-(!i&&g?d(a):0)-(v+y));return p&&_>t+l&&n.push(h),g&&n.push(e.length),n}),[]).map(((t,n,i)=>{const r=Math.max(i[n-1]||0);return e.slice(r,t)})):[]}(e)}}}function zP(e,t,n,i,r,o,s){const{align:a,axis:l,direction:c,startIndex:u,loop:d,duration:h,dragFree:p,dragThreshold:f,inViewThreshold:m,slidesToScroll:g,skipSnaps:v,containScroll:b,watchResize:y,watchSlides:_,watchDrag:x,watchFocus:S}=o,w=xP(),M=w.measure(t),E=n.map(w.measure),T=bP(l,c),C=T.measureSize(M),R=SP(C),A=vP(a,C),L=!d&&!!b,P=d||!!b,{slideSizes:N,slideSizesWithGaps:D,startGap:I,endGap:O}=BP(T,M,E,n,P,r),U=kP(T,C,g,d,M,E,I,O,2),{snaps:k,snapsAligned:F}
1=RP(T,A,M,E,U),z=-Xi(k)+Xi(D),{snapsContained:B,scrollContainLimit:$}=TP(C,z,F,b,2),G=L?B:F,{limit:H}=AP(z,G,d),V=Nx(vu(G),u,d),W=V.clone(),j=Al(n),X=gP(i,r,(()=>(({dragHandler:e,scrollBody:t,scrollBounds:n,options:{loop:i}})=>{i||n.constrain(e.pointerDown()),t.seek()})(ae)),(e=>(({scrollBody:e,translate:t,location:n,offsetLocation:i,previousLocation:r,scrollLooper:o,slideLooper:s,dragHandler:a,animation:l,eventHandler:c,scrollBounds:u,options:{loop:d}},h)=>{const p=e.settled(),f=!u.shouldConstrain(),m=d?p:p&&f,g=m&&!a.pointerDown();g&&l.stop();const v=n.get()*h+r.get()*(1-h);i.set(v),d&&(o.loop(e.direction()),s.loop()),t.to(i.get()),g&&c.emit("settle"),m||c.emit("scroll")})(ae,e))),Y=G[V.get()],q=el(Y),K=el(Y),Q=el(Y),J=el(Y),Z=wP(q,Q,K,J,h,.68),ee=DP(d,G,z,H,J),te=IP(X,V,W,Z,ee,J,s),ne=PP(H),ie=Pl(),re=FP(t,n,s,m),{slideRegistry:oe}=LP(L,b,G,$,U,j),se=NP(e,n,oe,te,Z,ie,s,S),ae={ownerDocument:i,ownerWindow:r,eventHandler:s,containerRect:M,slideRects:E,animation:X,axis:T,dragHandler:_P(T,e,i,r,J,yP(T,r),q,X,te,Z,ee,V,s,R,p,f,v,.68,x),eventStore:ie,percentOfView:R,index:V,indexPrevious:W,limit:H,location:q,offsetLocation:Q,previousLocation:K,options:o,resizeHandler:EP(t,s,r,n,T,y,w),scrollBody:Z,scrollBounds:MP(H,Q,J,Z,R),scrollLooper:CP(z,H,Q,[q,Q,K,J]),scrollProgress:ne,scrollSnapList:G.map(ne.get),scrollSnaps:G,scrollTarget:ee,scrollTo:te,slideLooper:OP(T,C,z,N,D,k,G,Q,n),slideFocus:se,slidesHandler:UP(t,s,_),slidesInView:re,slideIndexes:j,slideRegistry:oe,slidesToScroll:U,target:J,translate:Ox(T,t)};return ae}function HP(){let e,t={};function n(e){return t[e]||[]}const i={init:function(t){e=t},emit:function(t){return n(t).forEach((n=>n(e,t))),i},off:function(e,r){return t[e]=n(e).filter((e=>e!==r)),i},on:function(e,r){return t[e]=n(e).concat([r]),i},clear:function(){t={}}};return i}vf.globalOptions=void 0,Dx.globalOptions=void 0;const VP={align:"center",axis:"x",container:null,slides:null,containScroll:"trimSnaps",direction:"ltr",slidesToScroll:1,inViewThreshold:0,breakpoints:{},dragFree:!1,dragThreshold:10,loop:!1,skipSnaps:!1,duration:25,startIndex:0,active:!0,watchDrag:!0,watchResize:!0,watchSlides:!0,watchFocus:!0};function $P(e){function t(e,t){return Ix(e,t||{})}return{mergeOptions:t,optionsAtMedia:function(n){const i=n.breakpoints||{},r=Cl(i).filter((t=>e.matchMedia(t).matches)).map((e=>i[e])).reduce(((e,n)=>t(e,n)),{});return t(n,r)},optionsMediaQueries:function(t){return t.map((e=>Cl(e.breakpoints||{}))).reduce(((e,t)=>e.concat(t)),[]).map(e.matchMedia)}}}function GP(e){let t=[];return{init:function(n,i){return t=i.filter((({options:t})=>!1!==e.optionsAtMedia(t).active)),t.forEach((t=>t.init(n,e))),i.reduce(((e,t)=>Object.assign(e,{[t.name]:t})),{})},destroy:function(){t=t.filter((e=>e.destroy()))}}}function bf(e,t,n){const i=e.ownerDocument,r=i.defaultView,o=$P(r),s=GP(o),a=Pl(),l=HP(),{mergeOptions:c,optionsAtMedia:u,optionsMediaQueries:d}=o,{on:h,off:p,emit:f}=l,m=T;let g,v,b,y,_=!1,x=c(VP,bf.globalOptions),S=c(x),w=[];function M(t){const n=zP(e,b,y,i,r,t,l);if(t.loop&&!n.slideLooper.canLoop()){return M(Object.assign({},t,{loop:!1}))}return n}function E(t,n){_||(x=c(x,t),S=u(x),w=n||w,function(){const{container:t,slides:n}=S;b=(dp(t)?e.querySelector(t):t)||e.children[0];const i=dp(n)?b.querySelectorAll(n):n;y=[].slice.call(i||b.children)}(),g=M(S),d([x,...w.map((({options:e})=>e))]).forEach((e=>a.add(e,"change",T))),S.active&&(g.translate.to(g.location.get()),g.animation.init(),g.slidesInView.init(),g.slideFocus.init(L),g.eventHandler.init(L),g.resizeHandler.init(L),g.slidesHandler.init(L),g.options.loop&&g.slideLooper.loop(),b.offsetParent&&y.length&&g.dragHandler.init(L),v=s.init(L,w)))}function T(e,t){const n=A();C(),E(c({startIndex:n},e),t),l.emit("reInit")}function C(){g.dragHandler.destroy(),g.eventStore.clear(),g.translate.clear(),g.slideLooper.clear(),g.resizeHandler.destroy(),g.slidesHandler.destroy(),g.slidesInView.destroy(),g.animation.destroy(),s.destroy(),a.clear()}function R(e,t,n){!S.active||_||(g.scrollBody.useBaseFriction().useDuration(!0===t?0:S.duration),g.scrollTo.index(e,n||0))}function A(){return g.index.get()}const L={canScrollNext:function(){return g.index.add(1).get()!==A()},canScrollPrev:function(){return g.index.add(-1).get()!==A()},containerNode:function(){return b},internalEngine:function(){return g}
1,destroy:function(){_||(_=!0,a.clear(),C(),l.emit("destroy"),l.clear())},off:p,on:h,emit:f,plugins:function(){return v},previousScrollSnap:function(){return g.indexPrevious.get()},reInit:m,rootNode:function(){return e},scrollNext:function(e){R(g.index.add(1).get(),e,-1)},scrollPrev:function(e){R(g.index.add(-1).get(),e,1)},scrollProgress:function(){return g.scrollProgress.get(g.offsetLocation.get())},scrollSnapList:function(){return g.scrollSnapList},scrollTo:R,selectedScrollSnap:A,slideNodes:function(){return y},slidesInView:function(){return g.slidesInView.get()},slidesNotInView:function(){return g.slidesInView.get(!1)}};return E(t,n),setTimeout((()=>l.emit("init")),0),L}function WP(e,t){let n=[...e];Array.isArray(n[0])||(n=n.map((({x:e,y:t})=>[e,t])));const i=n;if(t){const e=i[i.length-1],t=i[i.length-2],n=i[0],r=i[1];i.unshift(e),i.unshift(t),i.push(n),i.push(r)}return i.flat()}function XP(e=[],t=1,n=!1,i){const r=WP(e,n),o=r.length,s=o-4;let a="M"+[n?r[2]:r[0],n?r[3]:r[1]];const l=n?o-4:o-2;for(let e=n?2:0;e<l;e+=2){const n=e?r[e-2]:r[0],i=e?r[e-1]:r[1],o=r[e+0],l=r[e+1],c=r[e+2],u=r[e+3];a+="C"+[o+(c-n)/6*t,l+(u-i)/6*t,c-((e!==s?r[e+4]:c)-o)/6*t,u-((e!==s?r[e+5]:u)-l)/6*t,c,u]}return a}function qP(){const e=[],t=2*Math.PI/6;for(let n=1;n<=6;n++){const i=n*t,r=100+75*Math.cos(i),o=100+75*Math.sin(i);e.push({x:r,y:o,originX:r,originY:o,noiseOffsetX:1e3*Math.random(),noiseOffsetY:1e3*Math.random()})}return e}function Ig(e,t,n,i,r){return(e-t)/(n-t)*(r-i)+i}bf.globalOptions=void 0;const Ux=Math.sqrt(3),YP=.5*(Ux-1),Va=(3-Ux)/6,Ng=e=>0|Math.floor(e),Og=new Float64Array([1,1,-1,1,1,-1,-1,-1,1,0,-1,0,1,0,-1,0,0,1,0,-1,0,1,0,-1]);function Fx(e=Math.random){const t=jP(e),n=new Float64Array(t).map((e=>Og[e%12*2])),i=new Float64Array(t).map((e=>Og[e%12*2+1]));return function(e,r){let o=0,s=0,a=0;const l=(e+r)*YP,c=Ng(e+l),u=Ng(r+l),d=(c+u)*Va,h=e-(c-d),p=r-(u-d);let f,m;h>p?(f=1,m=0):(f=0,m=1);const g=h-f+Va,v=p-m+Va,b=h-1+2*Va,y=p-1+2*Va,_=255&c,x=255&u;let S=.5-h*h-p*p;if(S>=0){const e=_+t[x];S*=S,o=S*S*(n[e]*h+i[e]*p)}let w=.5-g*g-v*v;if(w>=0){const e=_+f+t[x+m];w*=w,s=w*w*(n[e]*g+i[e]*v)}let M=.5-b*b-y*y;if(M>=0){const e=_+1+t[x+1];M*=M,a=M*M*(n[e]*b+i[e]*y)}return 70*(o+s+a)}}function jP(e){const t=new Uint8Array(512);for(let e=0;e<256;e++)t[e]=e;for(let n=0;n<255;n++){const i=n+~~(e()*(256-n)),r=t[n];t[n]=t[i],t[i]=r}for(let e=256;e<512;e++)t[e]=t[e-256];return t}function Ug(e){return"[object Date]"===Object.prototype.toString.call(e)}function KP(e){return e}function hp(e,t){if(e===t||e!=e)return()=>e;const n=typeof e;if(n!==typeof t||Array.isArray(e)!==Array.isArray(t))throw new Error("Cannot interpolate values of different type");if(Array.isArray(e)){const n=t.map(((t,n)=>hp(e[n],t)));return e=>n.map((t=>t(e)))}if("object"===n){if(!e||!t)throw new Error("Object cannot be null");if(Ug(e)&&Ug(t)){const n=e.getTime(),i=t.getTime()-n;return e=>new Date(n+e*i)}const n=Object.keys(t),i={};return n.forEach((n=>{i[n]=hp(e[n],t[n])})),e=>{const t={};return n.forEach((n=>{t[n]=i[n](e)})),t}}if("number"===n){const n=t-e;return t=>e+t*n}return()=>t}var Nr,aa,eu,Qo;const Iv=class e{constructor(e,t={}){Re(this,Nr,Pn(void 0)),Re(this,aa,Pn(void 0)),Re(this,eu),Re(this,Qo,null),N(this,Nr).v=N(this,aa).v=e,zt(this,eu,t)}static of(t,n){const i=new e(t(),n);return fs((()=>{i.set(t())})),i}set(e,t){var n;X(N(this,aa),e);let{delay:i=0,duration:r=400,easing:o=KP,interpolate:s=hp}={...N(this,eu),...t};if(0===r)return null==(n=N(this,Qo))||n.abort(),X(N(this,Nr),e),Promise.resolve();const a=ar.now()+i;let l,c=!1,u=N(this,Qo);return zt(this,Qo,u_((t=>{if(t<a)return!0;if(!c){c=!0;const t=N(this,Nr).v;l=s(t,e),"function"==typeof r&&(r=r(t,e)),null==u||u.abort()}const n=t-a;return n>r?(X(N(this,Nr),e),!1):(X(N(this,Nr),l(o(n/r))),!0)}))),N(this,Qo).promise}get current(){return y(N(this,Nr))}get target(){return y(N(this,aa))}set target(e){this.set(e)}};Nr=new WeakMap,aa=new WeakMap,eu=new WeakMap,Qo=new WeakMap;let pa=Iv;var QP=ai('<svg aria-hidden="true" viewBox="0 0 200 200" class="scale-[1.33333333]"><path d="" fill="#fff"></path></svg>');function Bx(e,t){he(t,!0);const n=Fx();let i=new pa(.001,{duration:1e3,delay:200}),r=new pa(0,{duration:1e3,delay:200}),o=ie(void 0),s=qP();const a=()=>{var e;null==(e=y(o))||e.setAttribute("d",XP(s,1.25,!0));for(let e=0;e<s.length;e++){const t=s[e],o=n(t.noiseOffsetX,t.noiseOffsetX),a=n(t.noiseOffsetY,t.noiseOffsetY);t.x=Ig(o,-1,1,t.originX-r.current,t.originX+r.current),t.y=Ig(a,-1,1,t.originY-r.current,t.originY+r.current),t.noiseOffsetX+=i.current,t.noiseOffsetY+=i.current}requestAnimationFrame(a)};Rn(a);
1var l=QP();return Xt(ae(l),(e=>X(o,e)),(()=>y(o))),oe(l),C(e,l),pe({runAgitation:async()=>{await Promise.all([i.set(.01,{duration:200,delay:0}),r.set(5,{duration:200,delay:0})]),i.target=.001,r.target=0}})}se(Bx,{},[],["runAgitation"],!0);var ZP=me('<div class="flex gap-2.5 flex-wrap"></div>'),JP=ai('<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" class="size-4 fill-white block" width="16" height="16"><path d="M3 2v12c0 .6.4 1 1 1s1-.4 1-1V2c0-.6-.4-1-1-1s-1 .4-1 1m8 0v12c0 .6.4 1 1 1s1-.4 1-1V2c0-.6-.4-1-1-1s-1 .4-1 1" fill-rule="evenodd"></path></svg>'),eR=ai('<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" class="size-4 fill-white block" width="16" height="16"><path d="M4 1.498v13.004a.8.8 0 0 0 1.245.665l9.715-6.502a.8.8 0 0 0 0-1.33L5.245.833A.8.8 0 0 0 4 1.498z" fill-rule="evenodd"></path></svg>'),tR=me('<div class="grid grid-flow-col place-items-stretch gap-2 w-full"><div class="flex justify-start gap-[inherit] items-end"><!></div> <div class="flex justify-end gap-[inherit] items-end"><!> <!> <!></div></div>'),nR=me('<div><div aria-hidden="true" class="absolute translate-x-0 rtl:translate-x-1 [&:dir(rtl)]:translate-x-1 transition-transform duration-75"></div> <div aria-hidden="true" class="absolute aspect-square start-1/2 -bottom-24 md:-bottom-24 ml:top-1/2 ml:bottom-auto -translate-x-1/2 [&:dir(rtl)]:translate-x-1/2 rtl:translate-x-1/2 ml:-translate-y-1/2"><!></div> <div class="max-w-[33.1875rem] mx-auto ml:max-w-full grid grid-rows-[1fr,auto] gap-8"><div role="region"><div class="v-orb-carousel__container flex items-start transition-[height] duration-300"><!></div></div> <!></div></div>'),iR=me('<div class="overflow-hidden"><div class="ml:bg-transparent overflow-x-clip"><!></div> <div class="sr-only" aria-live="polite" aria-atomic="true"> </div></div>');function kx(e,t){he(t,!0);let n,i=L(t,"children",7),r=L(t,"class",7),o=L(t,"autoplay",7,!1),s=L(t,"autoplayDelay",7,5e3),a=L(t,"slideButtonLabel",7,"Go to slide %"),l=L(t,"prevButtonLabel",7,"Previous slide"),c=L(t,"nextButtonLabel",7,"Next slide"),u=L(t,"playButtonLabel",7,"Start autoplay"),d=L(t,"pauseButtonLabel",7,"Pause autoplay"),h=L(t,"slideLabel",7,"Slide % of $"),p=L(t,"carouselLabel",7,"Carousel"),f=ie(Lt({loop:!0,direction:"ltr"})),m=_e((()=>{const e=[Dx()];return o()&&e.push(vf({delay:s(),stopOnInteraction:!1,stopOnMouseEnter:!1,stopOnFocusIn:!0})),e})),g=ie(void 0),v=ie(void 0),b=ie(void 0),_=ie(void 0),x=ie(Lt([])),S=ie(0),w=ie(void 0),M=ie(0),E=ie(0),T=ie("");const A=()=>{var e;null==(e=y(w))||e.runAgitation(),X(M,(null==n?void 0:n.selectedScrollSnap())??0,!0),D(),X(T,Q(h(),y(M)+1,y(x).length),!0)},P=()=>{X(W,!1)},N=()=>{X(W,!0)},D=()=>{if(!n)return;const e=n.slideNodes();e.forEach(((t,i)=>{if(!n)return;const r=i===n.selectedScrollSnap();t.setAttribute("aria-hidden",(!r).toString());const o=i+1,s=e.length,a=h().replace("%",o.toString()).replace("$",s.toString());t.setAttribute("aria-label",a),r?t.setAttribute("aria-current","true"):t.removeAttribute("aria-current")}))},I=()=>{y(v)&&(y(f).direction="rtl"===getComputedStyle(y(v)).direction?"rtl":"ltr",null==n||n.reInit(y(f),y(m)))};ut((()=>{var e;return null==(e=y(v))||e.addEventListener("transitionend",I),()=>{var e;null==(e=y(v))||e.removeEventListener("transitionend",I)}}));const O=()=>{y(b)&&y(S)>0&&(n&&(n.off("init",F),n.off("select",A),n.off("autoplay:play",N),n.off("autoplay:stop",P),n.destroy()),y(v)&&(y(f).direction="rtl"===getComputedStyle(y(v)).direction?"rtl":"ltr"),n=bf(y(b),y(f),y(m)),X(x,(null==n?void 0:n.scrollSnapList().map(((e,t)=>t)))??[],!0),n.on("init",F),n.on("select",A),n.on("autoplay:play",N),n.on("autoplay:stop",P),pn((()=>{D()})))};Rn((()=>{const e=new MutationObserver((()=>{y(_)&&(X(S,y(_).children.length,!0),O())}));return y(_)&&(X(S,y(_).children.length,!0),O(),e.observe(y(_),{childList:!0})),()=>{e.disconnect(),n&&(n.off("init",F),n.off("select",A),n.off("autoplay:play",N),n.off("autoplay:stop",P),n.destroy(),n=void 0)}}));let U=ie(0),k=ie(0);const F=()=>{var e,t;if(n){let i=(null==(e=y(g))?void 0:e.getBoundingClientRect().top)??0,r=((null==(t=y(b))?void 0:t.getBoundingClientRect().top)??0)-i,o=32;
1X(U,n.slideNodes().reduce(((e,t)=>{const n=t.clientHeight+y(k)+o,i=t.clientWidth,s=(Math.hypot(i,n)*y(H)-n)/2,a=r+n+s+64;return a>e?a:e}),0),!0)}else X(U,0)};ut((()=>{y(E)>0&&n&&F()}));let z=new zm("min-width: 960px");let B=ie(0),$=ie(0),H=_e((()=>z.current?1.1:1.9)),V=_e((()=>Math.hypot(y(B),y($))*y(H))),W=ie(Lt(o()));const Y=()=>{if(n&&o()){const e=n.plugins().autoplay;e&&(e.isPlaying()?e.stop():e.play())}},q=()=>{var e;null==n||n.scrollPrev();const t=null==(e=null==n?void 0:n.plugins())?void 0:e.autoplay;t&&(!1===t.options.stopOnInteraction?t.reset():t.stop())},K=()=>{var e;null==n||n.scrollNext();const t=null==(e=null==n?void 0:n.plugins())?void 0:e.autoplay;t&&(!1===t.options.stopOnInteraction?t.reset():t.stop())},Q=(e,t,n)=>e.replace("%",t.toString()).replace("$",(n||y(x).length).toString());var J=iR(),Z=ae(J);yr(ae(Z),{size:"main",column:"true",class:"mt-8 ml:mt-16 2xl:mt-24",children:(e,t)=>{var s=nR();Ft(s,1,Jt(["relative","ml:w-[clamp(26rem,calc(26rem+0.484375*(100vw-60rem)),27.9375rem)]","lg:w-[clamp(28rem,calc(28rem+0.19157*(100vw-64rem)),31.125rem)]","xl:w-[clamp(31.125rem,calc(31.125rem+0.56051*(100vw-80.375rem)),42.125rem)]"]));var h=ae(s);Xt(h,(e=>X(v,e)),(()=>y(v)));var f=Ge(h,2);Xt(Bx(ae(f),{}),(e=>X(w,e,!0)),(()=>y(w))),oe(f);var m=Ge(f,2),g=ae(m),S=ae(g);Ue(ae(S),(()=>i()??ct)),oe(S),Xt(S,(e=>X(_,e)),(()=>y(_))),oe(g),Xt(g,(e=>X(b,e)),(()=>y(b)));var E=Ge(g,2),T=e=>{var t=tR(),i=ae(t),r=ae(i),s=e=>{var t=ZP();ti(t,21,(()=>y(x)),bo,((e,t)=>{const i=_e((()=>Q(a(),y(t)+1,y(x).length))),r=_e((()=>y(M)===y(t)?"true":void 0)),o=_e((()=>["size-4",{"!bg-core-accent":y(M)===y(t)}]));vn(e,{variant:"3",icon:!0,pill:!0,size:"xs",family:"outline",onclick:()=>(e=>{var t;null==n||n.scrollTo(e);const i=null==(t=null==n?void 0:n.plugins())?void 0:t.autoplay;i&&(!1===i.options.stopOnInteraction?i.reset():i.stop())})(y(t)),get"aria-label"(){return y(i)},get"aria-current"(){return y(r)},get class(){return y(o)}})})),oe(t),C(e,t)};Ke(r,(e=>{y(x).length>0&&e(s)})),oe(i);var h=Ge(i,2),p=ae(h),f=e=>{const t=_e((()=>y(W)?d():u()));vn(e,{variant:"3",icon:!0,pill:!0,onclick:Y,get"aria-label"(){return y(t)},children:(e,t)=>{var n=j(),i=G(n),r=e=>{C(e,JP())},o=e=>{C(e,eR())};Ke(i,(e=>{y(W)?e(r):e(o,!1)})),C(e,n)},$$slots:{default:!0}})};Ke(p,(e=>{o()&&e(f)}));var m=Ge(p,2);vn(m,{variant:"3",icon:!0,pill:!0,onclick:q,class:"group/pointer",get"aria-label"(){return l()},children:(e,t)=>{gr(e,{"aria-hidden":"true",direction:"start",class:"text-white h-5"})},$$slots:{default:!0}});var g=Ge(m,2);vn(g,{variant:"3",icon:!0,pill:!0,onclick:K,class:"group/pointer",get"aria-label"(){return c()},children:(e,t)=>{gr(e,{"aria-hidden":"true",direction:"end",class:"text-white h-5"})},$$slots:{default:!0}}),oe(h),oe(t),po(t,"clientHeight",(e=>X(k,e))),C(e,t)};Ke(E,(e=>{y(x).length>1&&e(T)})),oe(m),oe(s),et((()=>{la(f,`width:${y(V)??""}px;`),Ft(g,1,Jt(["v-orb-carousel overflow-hidden size-full",r()])),nn(g,"aria-label",p())})),po(s,"clientHeight",(e=>X($,e))),po(s,"clientWidth",(e=>X(B,e))),C(e,s)},$$slots:{default:!0}}),oe(Z);var ee=Ge(Z,2),te=ae(ee,!0);return oe(ee),oe(J),Xt(J,(e=>X(g,e)),(()=>y(g))),et((()=>{la(J,`min-height: ${y(U)??""}px;`),bn(te,y(T))})),po(J,"clientWidth",(e=>X(E,e))),C(e,J),pe({get children(){return i()},set children(e){i(e),R()},get class(){return r()},set class(e){r(e),R()},get autoplay(){return o()},set autoplay(e=!1){o(e),R()},get autoplayDelay(){return s()},set autoplayDelay(e=5e3){s(e),R()},get slideButtonLabel(){return a()},set slideButtonLabel(e="Go to slide %"){a(e),R()},get prevButtonLabel(){return l()},set prevButtonLabel(e="Previous slide"){l(e),R()},get nextButtonLabel(){return c()},set nextButtonLabel(e="Next slide"){c(e),R()},get playButtonLabel(){return u()},set playButtonLabel(e="Start autoplay"){u(e),R()},get pauseButtonLabel(){return d()},set pauseButtonLabel(e="Pause autoplay"){d(e),R()},get slideLabel(){return h()},set slideLabel(e="Slide % of $"){h(e),R()},get carouselLabel(){return p()},set carouselLabel(e="Carousel"){p(e),R()}})}se(kx,{children:{},class:{},autoplay:{},autoplayDelay:{},slideButtonLabel:{},prevButtonLabel:{},nextButtonLabel:{},playButtonLabel:{},pauseButtonLabel:{},slideLabel:{},carouselLabel:{}},[],[],!0);var rR=me('<div class="v-orb-carousel__slide flex-[0_0_100%] ms-8 first:ms-0"><!></div>');function zx(e,t){he(t,!0);let n=L(t,"children",7);var i=rR(),r=ae(i);return ha(r,{context:"hero_carousel_slide",children:(e,t)=>{var i=j();Ue(G(i),(()=>n()??ct)),C(e,i)},$$slots:{default:!0}}),oe(i),C(e,i),pe({get children(){return n()},set children(e){n(e),R()}})}se(zx,{children:{}},[],[],!0);const Fg=Object.assign(kx,{Slide:zx});function oR(e,t){he(t,!0);let n=ie(Lt([]));ut((()=>(X(n,Array.from(t.$$host.querySelectorAll("vision-teva-2025-hero-carousel-slide")),!0),pn((()=>{for(let e=0;e<y(n).length;e++)y(n)[e].slot="slide-"+e})),()=>{X(n,[],!0)})));const i=nt(t,["$$slots","$$events","$$legacy","$$host"]),r=_e((()=>cu(i)));Fg(e,Dt((()=>y(r)),{children:(e,t)=>{var i=j();ti(G(i),18,(()=>y(n)),(e=>e),((e,t,n)=>{var i=j();Qe(G(i),(()=>Fg.Slide),((e,t)=>{t(e,{children:(e,t)=>{var i=j();yt(G(i),(()=>'<slot name="slide-'+y(n)+'" />'),!1,!1),C(e,i)},$$slots:{default:!0}})})),C(e,i)})),C(e,i)},$$slots:{default:!0}}
1)),pe()}customElements.define("vision-teva-2025-hero-carousel",se(oR,{autoplay:{attribute:"autoplay",reflect:!0,type:"String"},autoplayDelay:{attribute:"autoplay-delay",reflect:!0,type:"Number"},slideButtonLabel:{attribute:"slide-button-label",reflect:!0,type:"String"},prevButtonLabel:{attribute:"prev-button-label",reflect:!0,type:"String"},nextButtonLabel:{attribute:"next-button-label",reflect:!0,type:"String"},playButtonLabel:{attribute:"play-button-label",reflect:!0,type:"String"},pauseButtonLabel:{attribute:"pause-button-label",reflect:!0,type:"String"},slideLabel:{attribute:"slide-label",reflect:!0,type:"String"},carouselLabel:{attribute:"carousel-label",reflect:!0,type:"String"}},[],[],!0,Mt()));var tu,nu,g0,sR=me("<div><!></div>"),aR=me('<div class="flex flex-col gap-[1.875rem]"><div><!></div> <!></div>');function lR(e,t){he(t,!0);const n=mf(t.$$host,"footer");var i=aR(),r=ae(i);yt(ae(r),(()=>"<slot />"),!1,!1),oe(r);var o=Ge(r,2),s=e=>{var t=sR();yt(ae(t),(()=>'<slot name="footer" />'),!1,!1),oe(t),C(e,t)};Ke(o,(e=>{n.footer&&e(s)})),oe(i),C(e,i),pe()}customElements.define("vision-teva-2025-hero-carousel-slide",se(lR,{},[],[],!0,Mt()));let cR=(g0=class{constructor(){Re(this,tu,ie(!1)),Re(this,nu,ie()),Y(this,"ml"),this.ml=new zm("min-width: 960px")}get reversed(){return y(N(this,tu))}set reversed(e){X(N(this,tu),e,!0)}get eyebrow(){return y(N(this,nu))}set eyebrow(e){X(N(this,nu),e,!0)}get hasEyebrow(){return void 0!==this.eyebrow}},tu=new WeakMap,nu=new WeakMap,g0);const Yf=new uf("HeroBanner"),_f=()=>{if(Yf.exists())return Yf.get();const e=new cR;return Yf.set(e)};var uR=me('<div class="border-t-2 border-core-support-1 inline-block self-start pt-[1.875rem]"><div class="uppercase text-core-support-1 text-[1.4375rem] lead-[1.45] md:text-[1.6875rem] font-bold"><!></div></div>');function gu(e,t){he(t,!0);let n=L(t,"children",7);var i=uR(),r=ae(i);return Ue(ae(r),(()=>n()??ct)),oe(r),oe(i),C(e,i),pe({get children(){return n()},set children(e){n(e),R()}})}se(gu,{children:{}},[],[],!0);var dR=me("<!> <div><!></div>",1),fR=me('<div class="overflow-x-clip"><!></div>');function Hx(e,t){he(t,!0);let n=L(t,"children",7),i=L(t,"reversed",7,!1),r=_f();ut((()=>{r.reversed=i()}));var o=fR();return yr(ae(o),{size:"main",children:(e,t)=>{var o=dR(),s=G(o),a=e=>{gu(e,{children:(e,t)=>{var n=j();Ue(G(n),(()=>r.eyebrow)),C(e,n)},$$slots:{default:!0}})};Ke(s,(e=>{(!i()||!r.ml.current)&&r.eyebrow&&e(a)}));var l=Ge(s,2);Ft(l,1,Jt(["max-w-[33.125rem] ml:max-w-full mx-auto ml:flex data-[reversed='true']:flex-row-reverse ml:gap-[3.75rem] ml:items-center","data-[reversed='true']:data-[eyebrow='true']:justify-end","data-[eyebrow='true']:mt-[3.75rem]"])),Ue(ae(l),(()=>n()??ct)),oe(l),et((()=>{nn(l,"data-reversed",i()),nn(l,"data-eyebrow",!!r.eyebrow)})),C(e,o)},$$slots:{default:!0}}),oe(o),C(e,o),pe({get children(){return n()},set children(e){n(e),R()},get reversed(){return i()},set reversed(e=!1){i(e),R()}})}se(Hx,{children:{},reversed:{}},[],[],!0);const hR=(e,t)=>{const n=Array.isArray(e[0])?e:e.map((({x:e,y:t})=>[e,t]));if(t){const e=n[n.length-1],t=n[n.length-2],i=n[0],r=n[1];n.unshift(t,e),n.push(i,r)}return n.flat()},pR=(e=[],t=1,n=!1,i)=>{const r=hR(e,n),o=r.length,s=o-4;let a=`M${n?r[2]:r[0]},${n?r[3]:r[1]}`;const l=n?o-4:o-2;for(let e=n?2:0;e<l;e+=2){const n=e?r[e-2]:r[0],i=e?r[e-1]:r[1],o=r[e],l=r[e+1],c=r[e+2],u=r[e+3];a+=`C${o+(c-n)/6*t},${l+(u-i)/6*t},${c-((e!==s?r[e+4]:c)-o)/6*t},${u-((e!==s?r[e+5]:u)-l)/6*t},${c},${u}`}return a},mR=({center:e,radius:t})=>{const n=2*Math.PI/6;return Array.from({length:6},((i,r)=>{const o=(r+1)*n,s=e.x+Math.cos(o)*t,a=e.y+Math.sin(o)*t;return{x:s,y:a,originX:s,originY:a,noiseOffsetX:1e3*Math.random(),noiseOffsetY:1e3*Math.random()}}))},Bg=(e,t,n,i,r)=>(e-t)/(n-t)*(r-i)+i;var vR=ai('<svg aria-hidden="true" viewBox="0 0 200 200"><defs><clipPath><path d="" fill="#fff"></path></clipPath></defs></svg>');function pp(e,t){he(t,!0);let n=L(t,"id",7,"mask"),i=L(t,"class",7),r=L(t,"inset",7,0),o=ie(void 0),s=ie(void 0),a=_e((()=>y(o)?y(o)/(y(o)+2*r()):1));const l=Fx();let c=new pa(0,{duration:1e3,delay:200}),u=new pa(0,{duration:1e3,delay:200}),d=_e((()=>0!==c.current||0!==u.current)),h=null,p=_e((()=>{const e=y(o)?y(o)/2:0;return mR({center:{x:e,y:e},radius:e*y(a)})}));const f=()=>{var e;null==(e=y(s))||e.setAttribute("d",pR(y(p),1.25,!0));for(let e=0;e<y(p).length;
1e++){const t=y(p)[e],n=l(t.noiseOffsetX,t.noiseOffsetX),i=l(t.noiseOffsetY,t.noiseOffsetY);t.x=Bg(n,-1,1,t.originX-u.current,t.originX+u.current),t.y=Bg(i,-1,1,t.originY-u.current,t.originY+u.current),t.noiseOffsetX+=c.current,t.noiseOffsetY+=c.current}h=y(d)?requestAnimationFrame(f):null};Rn(f),ut((()=>((y(o)||y(d)&&null===h)&&f(),()=>{h&&cancelAnimationFrame(h),h=null})));var m=vR(),g=ae(m),v=ae(g);return Xt(ae(v),(e=>X(s,e)),(()=>y(s))),oe(v),oe(g),oe(m),et((()=>{Ft(m,0,Jt(i())),nn(v,"id",n())})),po(m,"clientWidth",(e=>X(o,e))),C(e,m),pe({runAgitation:async({noiseStep:e=.01,offset:t=5,duration:n=0}={})=>{await Promise.all([c.set(e,{duration:200,delay:0}),u.set(t,{duration:200,delay:0})]),await new Promise((e=>setTimeout(e,n))),c.target=0,u.target=0},get id(){return n()},set id(e="mask"){n(e),R()},get class(){return i()},set class(e){i(e),R()},get inset(){return r()},set inset(e=0){r(e),R()}})}se(pp,{id:{},class:{},inset:{}},[],["runAgitation"],!0);var gR=me('<div aria-hidden="true"></div> <div aria-hidden="true"><div class="circles absolute size-[calc(0.5rem+round(100%,2rem))] rounded-full transition-all duration-200 ease-linear svelte-5leuvz"></div></div>',1),bR=me('<div><!> <div aria-hidden="true" class="absolute -z-[1] inset-0"><!></div> <div aria-hidden="true" class="absolute -z-[1] size-[82%]"><!></div> <div role="img"><div class="absolute -inset-2 [&_img]:w-full [&_img]:h-full [&_img]:object-cover [&_img]:pointer-events-none transition-transform duration-500"><!></div></div></div>');const _R={hash:"svelte-5leuvz",code:".circles.svelte-5leuvz {background-image:repeating-radial-gradient(\n\t\t\tellipse 100px 100px at 50%,\n\t\t\ttransparent,\n\t\t\ttransparent 14px,\n\t\t\t#fff 15px,\n\t\t\ttransparent 16px\n\t\t);}"};function Vx(e,t){const n=DE();he(t,!0),i_(e,_R);let i=L(t,"children",7),r=L(t,"visual",7,"moment");const o=`${n}-1`,s=`${n}-2`;let a=ie(void 0),l=ie(void 0),c=ie(void 0),u=ie(void 0),d=ie(void 0),h=ie(!0);ut((()=>{const e=new IntersectionObserver((([e])=>{e.intersectionRatio>=.7?X(h,!0):0===e.intersectionRatio&&X(h,!1)}),{threshold:[0,.7]});return y(a)&&e.observe(y(a)),()=>{y(a)&&e.unobserve(y(a))}}));const p=_t({base:["ml:mx-0 ml:shrink-0 ml:mb-0 relative z-10"],variants:{visual:{small:["mb-[2.5rem] mx-[3.75rem] ml:w-[20.125rem] xl:w-[23.875rem]"],large:["mb-[1.875rem] -mx-[0.9375rem] ml:w-[calc(50%+0.9375rem)]"],moment:["mb-[2.5rem] mx-[1.5625rem] ml:w-[24.0625rem]"]},reversed:{true:"",false:""}},compoundVariants:[{visual:"small",reversed:!0,className:"ml:-me-[1.5625rem] xl:-me-[1.875rem] ml:rtl:-ms-[1.5625rem] ml:[&:dir(rtl)]:-ms-[1.5625rem] xl:rtl:-ms-[1.875rem] xl:[&:dir(rtl)]:-ms-[1.875rem]"},{visual:"small",reversed:!1,className:"ml:-ms-[1.5625rem] xl:-ms-[1.875rem] ml:rtl:-me-[1.5625rem] ml:[&:dir(rtl)]:-me-[1.5625rem] xl:rtl:-me-[1.875rem] xl:[&:dir(rtl)]:-me-[1.875rem]"},{visual:"large",reversed:!0,className:"ml:-me-[3.75rem] ml:rtl:-me-[3.75rem] ml:[&:dir(rtl)]:-me-[3.75rem]"},{visual:"large",reversed:!1,className:"ml:-ms-[3.75rem] ml:rtl:-ms-[3.75rem] ml:[&:dir(rtl)]:-ms-[3.75rem]"}],defaultVariants:{visual:"small"}}),f=_t({base:"aspect-square bg-[#00ACA8] rounded-full absolute -z-[1] size-[82%] -top-20 transition duration-500 ease-in-out",variants:{masked:{true:"overflow-hidden rounded-full"},reversed:{true:"start-[65%] ",false:"end-[65%] "},inview:{true:" delay-100",false:"scale-75 opacity-0 translate-y-20"}},compoundVariants:[{reversed:!1,inview:!1,className:"translate-x-1/2 rtl:-translate-x-1/2 [&:dir(rtl)]:-translate-x-1/2"},{reversed:!0,inview:!1,className:"-translate-x-1/2 rtl:translate-x-1/2 [&:dir(rtl)]:translate-x-1/2"}],defaultVariants:{reversed:"false"}}),m=_t({base:"aspect-square rounded-full absolute z-[1] size-[calc(0.5rem+round(65%,2rem))] -bottom-0 overflow-hidden grid place-items-center",variants:{reversed:{true:"end-3 translate-x-1/2 rtl:-translate-x-1/2 [&:dir(rtl)]:-translate-x-1/2",false:"start-3 -translate-x-1/2 rtl:translate-x-1/2 [&:dir(rtl)]:translate-x-1/2"},inview:{true:"[&>.circles]:delay-200",false:"[&>.circles]:size-[calc(0.5rem+round(0%,2rem))]"}},defaultVariants:{reversed:"false"}}),g=_t({base:"aspect-square relative w-full opacity-100 transition duration-500 ease-in-out",variants:{masked:{true:"overflow-hidden rounded-full"},reversed:{true:"",false:""},inview:{true:"",false:"scale-90 opacity-0"}},compoundVariants:[{reversed:!1,inview:!1,className:"-translate-x-12 rtl:translate-x-12 [&:dir(rtl)]:translate-x-12"},{reversed:!0,inview:!1,className:"translate-x-12 rtl:-translate-x-12 [&:dir(rtl)]:-translate-x-12"}]});Rn((()=>{y(u)&&(y(u).style.clipPath=`url(#${o})`),y(d)&&(y(d).style.clipPath=`url(#${s})`)}));let v=_f();var b=bR(),_=ae(b),x=e=>{var t=gR(),n=G(t);
1Xt(n,(e=>X(d,e)),(()=>y(d)));var i=Ge(n,2);et(((e,t)=>{Ft(n,1,e,"svelte-5leuvz"),Ft(i,1,t,"svelte-5leuvz")}),[()=>Jt(f({masked:!y(d),reversed:v.reversed,inview:y(h)})),()=>Jt(m({reversed:v.reversed,inview:y(h)}))]),Xh("transitionstart",n,(()=>{var e;return null==(e=y(c))?void 0:e.runAgitation({duration:500,offset:10})})),C(e,t)};Ke(_,(e=>{"moment"===r()&&e(x)}));var S=Ge(_,2);Xt(pp(ae(S),{id:o,inset:8}),(e=>X(l,e,!0)),(()=>y(l))),oe(S);var w=Ge(S,2);Xt(pp(ae(w),{id:s,inset:8}),(e=>X(c,e,!0)),(()=>y(c))),oe(w);var M=Ge(w,2),E=ae(M);return Ue(ae(E),(()=>i()??ct)),oe(E),oe(M),Xt(M,(e=>X(u,e)),(()=>y(u))),oe(b),Xt(b,(e=>X(a,e)),(()=>y(a))),et(((e,t)=>{Ft(b,1,e,"svelte-5leuvz"),Ft(M,1,t,"svelte-5leuvz")}),[()=>Jt(p({visual:r(),reversed:v.reversed})),()=>Jt(g({masked:!y(u),reversed:v.reversed,inview:y(h)}))]),Xh("transitionstart",M,(()=>{var e;return null==(e=y(l))?void 0:e.runAgitation({duration:500,offset:7})})),C(e,b),pe({get children(){return i()},set children(e){i(e),R()},get visual(){return r()},set visual(e="moment"){r(e),R()}})}se(Vx,{children:{},visual:{}},[],[],!0);var yR=me("<div><!></div>"),xR=me('<div class="ml:max-w-[calc(50%-0.9375rem)] flex flex-col gap-[3.75rem]"><!> <div class="flex flex-col gap-[1.875rem]"><!> <!></div></div>');function $x(e,t){he(t,!0);let n=L(t,"children",7),i=L(t,"footer",7),r=L(t,"blurredBackdrop",7,!0),o=_f();var s=xR(),a=ae(s),l=e=>{gu(e,{children:(e,t)=>{var n=j();Ue(G(n),(()=>o.eyebrow)),C(e,n)},$$slots:{default:!0}})};Ke(a,(e=>{o.reversed&&o.ml.current&&o.eyebrow&&e(l)}));var c=Ge(a,2),u=ae(c);ha(u,{context:"hero_banner_content",children:(e,t)=>{var i=j();Ue(G(i),(()=>n()??ct)),C(e,i)},$$slots:{default:!0}});var d=Ge(u,2),h=e=>{var t=yR();Ue(ae(t),i),oe(t),C(e,t)};return Ke(d,(e=>{i()&&e(h)})),oe(c),oe(s),et((()=>la(c,r()?"backdrop-filter: blur(6px);":""))),C(e,s),pe({get children(){return n()},set children(e){n(e),R()},get footer(){return i()},set footer(e){i(e),R()},get blurredBackdrop(){return r()},set blurredBackdrop(e=!0){r(e),R()}})}function Gx(e,t){he(t,!0);let n=L(t,"children",7),i=_f();return ut((()=>{i.eyebrow=n()})),pe({get children(){return n()},set children(e){n(e),R()}})}se($x,{children:{},footer:{},blurredBackdrop:{}},[],[],!0),se(Gx,{children:{}},[],[],!0);const Cu=Object.assign(Hx,{Image:Vx,Content:$x,Eyebrow:Gx});var SR=me("<!> <!> <!>",1);function ER(e,t){he(t,!0);const n=L(t,"reversed",7,"false"),i=L(t,"visual",7,"small"),r=L(t,"blurredBackdrop",7,"true");let o=new vo;Rn((()=>{t.$$host.querySelectorAll('[slot="teva-2025-hero-banner-eyebrow"]').forEach((e=>{e instanceof HTMLElement&&e.slot&&o.add(e.slot)}))}));const s=_e((()=>"true"===n()));return Cu(e,{get reversed(){return y(s)},children:(e,t)=>{var n=SR(),s=G(n),a=e=>{var t=j();Qe(G(t),(()=>Cu.Eyebrow),((e,t)=>{t(e,{children:(e,t)=>{var n=j();yt(G(n),(()=>'<slot name="teva-2025-hero-banner-eyebrow" />'),!1,!1),C(e,n)},$$slots:{default:!0}})})),C(e,t)};Ke(s,(e=>{null!=o&&o.has("teva-2025-hero-banner-eyebrow")&&e(a)}));var l=Ge(s,2);Qe(l,(()=>Cu.Image),((e,t)=>{t(e,{get visual(){return i()},children:(e,t)=>{var n=j();yt(G(n),(()=>'<slot name="teva-2025-hero-banner-image" />'),!1,!1),C(e,n)},$$slots:{default:!0}})}));var c=Ge(l,2);const u=_e((()=>"true"===r()));Qe(c,(()=>Cu.Content),((e,t)=>{t(e,{get blurredBackdrop(){return y(u)},children:(e,t)=>{var n=j();yt(G(n),(()=>'<slot name="teva-2025-hero-banner-content" />'),!1,!1),C(e,n)},$$slots:{default:!0}})})),C(e,n)},$$slots:{default:!0}}),pe({get reversed(){return n()},set reversed(e="false"){n(e),R()},get visual(){return i()},set visual(e="small"){i(e),R()},get blurredBackdrop(){return r()},set blurredBackdrop(e="true"){r(e),R()}})}customElements.define("vision-teva-2025-hero-banner",se(ER,{reversed:{attribute:"reversed",reflect:!0,type:"String"},visual:{attribute:"visual",reflect:!0,type:"String"},blurredBackdrop:{attribute:"blurred-backdrop",reflect:!0,type:"String"}},[],[],!0,Mt()));var wR=me("<div><!></div>"),MR=me('<div class="flex flex-col gap-[1.875rem]"><div><!></div> <!></div>');function TR(e,t){he(t,!0);const n=L(t,"blurredBackdrop",7,"true"),i=mf(t.$$host,"footer");var r=MR(),o=ae(r);yt(ae(o),(()=>"<slot />
1"),!1,!1),oe(o);var s=Ge(o,2),a=e=>{var t=wR();yt(ae(t),(()=>'<slot name="footer" />'),!1,!1),oe(t),C(e,t)};return Ke(s,(e=>{i.footer&&e(a)})),oe(r),et((()=>la(r,"false"!==n()?"backdrop-filter: blur(6px);":""))),C(e,r),pe({get blurredBackdrop(){return n()},set blurredBackdrop(e="true"){n(e),R()}})}function AR(e,t){he(t,!0),An(e,{ontypography:t.$$host.handleTypography,class:["[&_*]:uppercase [&_*]:mb-0 [&_*]:text-core-support-1 [&_*]:text-[1.4375rem] [&_*]:lead-[1.45] [&_*]:md:text-[1.6875rem] [&_*]:font-bold"],children:(e,t)=>{var n=j();yt(G(n),(()=>"<slot />"),!1,!1),C(e,n)},$$slots:{default:!0}}),pe()}function CR(e,t){he(t,!0),An(e,{ontypography:t.$$host.handleTypography,class:["[&_img]:size-full [&_img]:object-cover"],children:(e,t)=>{var n=j();yt(G(n),(()=>"<slot />"),!1,!1),C(e,n)},$$slots:{default:!0}}),pe()}customElements.define("vision-teva-2025-hero-banner-content",se(TR,{blurredBackdrop:{attribute:"blurred-backdrop",reflect:!0,type:"String"}},[],[],!0,Mt({slot:"teva-2025-hero-banner-content"}))),customElements.define("vision-teva-2025-hero-banner-eyebrow",se(AR,{},[],[],!0,Mt({slot:"teva-2025-hero-banner-eyebrow"}))),customElements.define("vision-teva-2025-hero-banner-image",se(CR,{},[],[],!0,Mt({slot:"teva-2025-hero-banner-image"})));var PR=me("<div><!></div>");function Wx(e,t){he(t,!0);let n=L(t,"children",7),i=L(t,"top",7),r=L(t,"bottom",7);const o=_t({variants:{top:{none:"",sm:"mt-[1.875rem]",md:"mt-[3.75rem]",lg:"mt-[5.625rem]"},bottom:{none:"",sm:"mb-[1.875rem]",md:"mb-[3.75rem]",lg:"mb-[5.625rem]"}},defaultVariants:{top:"lg",bottom:"lg"}});var s=PR();return Ue(ae(s),(()=>n()??ct)),oe(s),et((e=>Ft(s,1,e)),[()=>Jt(o({top:i(),bottom:r()}))]),C(e,s),pe({getComp:()=>o,get children(){return n()},set children(e){n(e),R()},get top(){return i()},set top(e){i(e),R()},get bottom(){return r()},set bottom(e){r(e),R()}})}function RR(e,t){he(t,!0);const n=L(t,"top",7,"lg"),i=L(t,"bottom",7,"lg");return Wx(e,{get top(){return n()},get bottom(){return i()},children:(e,t)=>{var n=j();yt(G(n),(()=>"<slot />"),!1,!1),C(e,n)},$$slots:{default:!0}}),pe({get top(){return n()},set top(e="lg"){n(e),R()},get bottom(){return i()},set bottom(e="lg"){i(e),R()}})}function LR(e,t){he(t,!0),An(e,{ontypography:t.$$host.handleTypography,class:["[&_*]:uppercase [&_*]:mb-0 [&_*]:text-core-support-1 [&_*]:text-[1.4375rem] [&_*]:lead-[1.45] [&_*]:md:text-[1.6875rem] [&_*]:font-bold"],children:(e,t)=>{gu(e,{children:(e,t)=>{var n=j();yt(G(n),(()=>"<slot />"),!1,!1),C(e,n)},$$slots:{default:!0}})},$$slots:{default:!0}}),pe()}se(Wx,{children:{},top:{},bottom:{}},[],["getComp"],!0),customElements.define("vision-teva-2025-hero-spacing",se(RR,{top:{attribute:"top",reflect:!0,type:"String"},bottom:{attribute:"bottom",reflect:!0,type:"String"}},[],[],!0,Mt())),customElements.define("vision-teva-2025-heading-eyebrow",se(LR,{},[],[],!0,Mt()));var DR=me('<div class="flex gap-5"><!></div>');function Xx(e,t){he(t,!0);let n=L(t,"children",7);var i=DR();return Ue(ae(i),(()=>n()??ct)),oe(i),C(e,i),pe({get children(){return n()},set children(e){n(e),R()}})}se(Xx,{children:{}},[],[],!0);var IR=me("<div><!></div>");function qx(e,t){he(t,!0);let n=L(t,"children",7),i=nt(t,["$$slots","$$events","$$legacy","$$host","children"]);var r=IR();let o;return Ue(ae(r),(()=>n()??ct)),oe(r),et((()=>o=gt(r,o,{class:"overflow-hidden",...i}))),C(e,r),pe({get children(){return n()},set children(e){n(e),R()}})}se(qx,{children:{}},[],[],!0);var NR=me("<div><!></div>");function Yx(e,t){he(t,!0);let n=L(t,"children",7),i=nt(t,["$$slots","$$events","$$legacy","$$host","children"]);var r=NR();let o;return Ue(ae(r),(()=>n()??ct)),oe(r),et((()=>o=gt(r,o,{class:"text-core-support-1 first:font-bold text-[0.8125rem] leading-[1.75] truncate max-w-40",...i}))),C(e,r),pe({get children(){return n()},set children(e){n(e),R()}})}se(Yx,{children:{}},[],[],!0);const uv=Object.assign(Xx,{Group:qx,Item:Yx});function OR(e){uv(e,{children:(e,t)=>{var n=j();yt(G(n),(()=>'<slot name="ticker-info-group" />'),!1,!1),C(e,n)},$$slots:{default:!0}})}function UR(e){uv.Group(e,{children:(e,t)=>{var n=j();yt(G(n),(()=>'<slot name="ticker-info-item" />'),!1,!1),C(e,n)},$$slots:{default:!0}})}function FR(e,t){he(t,!0),An(e,{ontypography:t.$$host.handleTypography,class:["text-core-support-1 first:font-bold text-[0.8125rem] leading-[1.75] "],children:(e,t)=>{var n=j();Qe(G(n),(()=>uv.Item),((e,t)=>{t(e,{children:(e,t)=>{var n=j();yt(G(n),(()=>"<slot />"),!1,!1),C(e,n)},$$slots:{default:!0}})})),C(e,n)},$$slots:{default:!0}}),pe()}customElements.define("vision-ticker-info",se(OR,{},[],[],!0,Mt())),customElements.define("vision-ticker-info-group",se(UR,{},[],[],!0,Mt({slot:"ticker-info-group"}))),customElements.define("vision-ticker-info-item",se(FR,{},[],[],!0,Mt({slot:"ticker-info-item"})));var BR=me(" <strong> </strong>
1",1),kR=me('<div class="text-start leading-[1] text-[10px]"><div> </div> <div class="font-bold"> </div></div> <strong> </strong>',1);function jx(e,t){he(t,!0);let n=L(t,"exchange",7),i=L(t,"ticker",7),r=L(t,"price",7),o=L(t,"priceLabel",7),s=L(t,"expanded",7,!0);var a=j(),l=G(a),c=e=>{var t=BR(),o=G(t),s=Ge(o),a=ae(s,!0);oe(s),et((()=>{bn(o,`${n()??""}: ${i()??""} `),bn(a,r())})),C(e,t)},u=e=>{var t=kR(),s=G(t),a=ae(s),l=ae(a);oe(a);var c=Ge(a,2),u=ae(c,!0);oe(c),oe(s);var d=Ge(s,2),h=ae(d,!0);oe(d),et((()=>{bn(l,`${n()??""}:`),bn(u,i()),nn(d,"aria-label",o()),bn(h,r())})),C(e,t)};return Ke(l,(e=>{s()?e(c):e(u,!1)})),C(e,a),pe({get exchange(){return n()},set exchange(e){n(e),R()},get ticker(){return i()},set ticker(e){i(e),R()},get price(){return r()},set price(e){r(e),R()},get priceLabel(){return o()},set priceLabel(e){o(e),R()},get expanded(){return s()},set expanded(e=!0){s(e),R()}})}function zR(e,t){he(t,!0);let n=L(t,"exchange",7),i=L(t,"ticker",7),r=L(t,"price",7),o=L(t,"priceLabel",7),s=L(t,"expanded",7);const a=_e((()=>"true"===s()));return jx(e,{get exchange(){return n()},get ticker(){return i()},get price(){return r()},get priceLabel(){return o()},get expanded(){return y(a)}}),pe({get exchange(){return n()},set exchange(e){n(e),R()},get ticker(){return i()},set ticker(e){i(e),R()},get price(){return r()},set price(e){r(e),R()},get priceLabel(){return o()},set priceLabel(e){o(e),R()},get expanded(){return s()},set expanded(e){s(e),R()}})}se(jx,{exchange:{},ticker:{},price:{},priceLabel:{},expanded:{}},[],[],!0),customElements.define("vision-format-ticker-button",se(zR,{exchange:{attribute:"exchange",type:"String"},ticker:{attribute:"ticker",type:"String"},price:{attribute:"price",type:"String"},priceLabel:{attribute:"price-label",type:"String"},expanded:{attribute:"expanded",type:"String"}},[],[],!0,Mt()));var HR=me('<div class="flex justify-start gap-[inherit] items-end"><!></div>'),VR=ai('<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" class="size-4 fill-white block" width="16" height="16"><path d="M3 2v12c0 .6.4 1 1 1s1-.4 1-1V2c0-.6-.4-1-1-1s-1 .4-1 1m8 0v12c0 .6.4 1 1 1s1-.4 1-1V2c0-.6-.4-1-1-1s-1 .4-1 1" fill-rule="evenodd"></path></svg>'),$R=ai('<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" class="size-4 fill-white block" width="16" height="16"><path d="M4 1.498v13.004a.8.8 0 0 0 1.245.665l9.715-6.502a.8.8 0 0 0 0-1.33L5.245.833A.8.8 0 0 0 4 1.498z" fill-rule="evenodd"></path></svg>'),GR=me('<div class="flex justify-end gap-[inherit] items-end"><!> <!> <!></div>'),WR=me('<div class="grid grid-flow-col place-items-stretch gap-2 w-full"><!> <!></div>'),XR=me('<div><div aria-hidden="true" class="absolute translate-x-0 rtl:translate-x-1 [&:dir(rtl)]:translate-x-1 transition-transform duration-75"></div> <div role="region"><div class="flex gap-[0.9375rem] md:gap-[1.875rem] ps-[0.9375rem] md:ps-[1.875rem]"><!></div></div> <!></div>');function Kx(e,t){he(t,!0);let n,i=L(t,"class",7),r=L(t,"children",7),o=L(t,"footer",7),s=L(t,"autoplay",7,!1),a=L(t,"autoplayDelay",7,5e3),l=L(t,"prevButtonLabel",7,"Previous slide"),c=L(t,"nextButtonLabel",7,"Next slide"),u=L(t,"playButtonLabel",7,"Start autoplay"),d=L(t,"pauseButtonLabel",7,"Pause autoplay"),h=L(t,"slideLabel",7,"Slide % of $"),p=L(t,"carouselLabel",7,"Carousel"),f=ie(Lt({loop:!0,direction:"ltr"})),m=_e((()=>{const e=[];return s()&&e.push(vf({delay:a(),stopOnInteraction:!1,stopOnMouseEnter:!0,stopOnFocusIn:!0})),e})),g=ie(void 0),v=ie(void 0),b=ie(Lt([])),_=ie(0),x=ie(0),S=ie(""),w=ie(void 0);const M=()=>{X(x,(null==n?void 0:n.selectedScrollSnap())??0,!0),E(),X(S,D(h(),y(x)+1,y(b).length),!0)},E=()=>{if(!n)return;const e=n.slideNodes();e.forEach(((t,i)=>{if(!n)return;const r=i===n.selectedScrollSnap();t.setAttribute("aria-hidden",(!r).toString());const o=i+1,s=e.length,a=h().replace("%",o.toString()).replace("$",s.toString());t.setAttribute("aria-label",a),r?t.setAttribute("aria-current","true"):t.removeAttribute("aria-current")}))},T=()=>{y(w)&&(y(f).direction="rtl"===getComputedStyle(y(w)).direction?"rtl":"ltr",null==n||n.reInit(y(f),y(m)))};ut((()=>{var e;return null==(e=y(w))||e.addEventListener("transitionend",T),()=>{var e;null==(e=y(w))||e.removeEventListener("transitionend",T)}}));const A=()=>{y(g)&&y(_)>0&&(n&&(n.off("select",M),n.destroy()),y(w)&&(y(f).direction="rtl"===getComputedStyle(y(w)).direction?"rtl":"ltr"),n=bf(y(g),y(f),y(m)),X(b,(null==n?void 0:n.scrollSnapList().map(((e,t)=>t)))??[],!0),n.on("select",M),pn((()=>{E()})))};Rn((()=>{const e=new MutationObserver((()=>{y(v)&&(X(_,y(v).children.length,!0),A())}));return y(v)&&(X(_,y(v).children.length,!0),A(),e.observe(y(v),{childList:!0})),()=>{e.disconnect(),n&&(n.off("select",M),n.destroy(),n=void 0)}})),ut((()=>{var e;const t=()=>{n&&n.reInit(y(f),y(m))};return null==(e=y(g))||e.addEventListener("mousedown",t),()=>{var e;return null==(e=y(g))?void 0:e.removeEventListener("mousedown",t)}}));let P=ie(Lt(s()));const N=()=>
1{if(n&&s()){const e=n.plugins().autoplay;e&&(e.isPlaying()?(e.stop(),X(P,!1)):(e.play(),X(P,!0)))}},D=(e,t,n)=>e.replace("%",t.toString()).replace("$",(n||y(b).length).toString());var I=XR(),O=ae(I);Xt(O,(e=>X(w,e)),(()=>y(w)));var U=Ge(O,2),k=ae(U);Ue(ae(k),(()=>r()??ct)),oe(k),Xt(k,(e=>X(v,e)),(()=>y(v))),oe(U),Xt(U,(e=>X(g,e)),(()=>y(g)));var F=Ge(U,2),z=e=>{yr(e,{size:"main",column:"true",class:"mt-[1.875rem]",children:(e,t)=>{var i=WR(),r=ae(i),a=e=>{var t=HR();Ue(ae(t),o),oe(t),C(e,t)};Ke(r,(e=>{o()&&e(a)}));var h=Ge(r,2),p=e=>{var t=GR(),i=ae(t),r=e=>{const t=_e((()=>y(P)?d():u()));vn(e,{variant:"3",icon:!0,pill:!0,onclick:N,get"aria-label"(){return y(t)},children:(e,t)=>{var n=j(),i=G(n),r=e=>{C(e,VR())},o=e=>{C(e,$R())};Ke(i,(e=>{y(P)?e(r):e(o,!1)})),C(e,n)},$$slots:{default:!0}})};Ke(i,(e=>{s()&&e(r)}));var o=Ge(i,2);vn(o,{variant:"3",icon:!0,pill:!0,onclick:()=>null==n?void 0:n.scrollPrev(),class:"group/pointer",get"aria-label"(){return l()},children:(e,t)=>{gr(e,{"aria-hidden":"true",direction:"start",class:"text-white h-5"})},$$slots:{default:!0}});var a=Ge(o,2);vn(a,{variant:"3",icon:!0,pill:!0,onclick:()=>null==n?void 0:n.scrollNext(),class:"group/pointer",get"aria-label"(){return c()},children:(e,t)=>{gr(e,{"aria-hidden":"true",direction:"end",class:"text-white h-5"})},$$slots:{default:!0}}),oe(t),C(e,t)};Ke(h,(e=>{y(b).length>1&&e(p)})),oe(i),C(e,i)},$$slots:{default:!0}})};return Ke(F,(e=>{(o()||y(b).length>1)&&e(z)})),oe(I),et((e=>{Ft(I,1,e),nn(U,"aria-label",p())}),[()=>Jt(["overflow-x-clip mx-auto max-w-[3000px]",i()].filter(Boolean).join(" "))]),C(e,I),pe({get class(){return i()},set class(e){i(e),R()},get children(){return r()},set children(e){r(e),R()},get footer(){return o()},set footer(e){o(e),R()},get autoplay(){return s()},set autoplay(e=!1){s(e),R()},get autoplayDelay(){return a()},set autoplayDelay(e=5e3){a(e),R()},get prevButtonLabel(){return l()},set prevButtonLabel(e="Previous slide"){l(e),R()},get nextButtonLabel(){return c()},set nextButtonLabel(e="Next slide"){c(e),R()},get playButtonLabel(){return u()},set playButtonLabel(e="Start autoplay"){u(e),R()},get pauseButtonLabel(){return d()},set pauseButtonLabel(e="Pause autoplay"){d(e),R()},get slideLabel(){return h()},set slideLabel(e="Slide % of $"){h(e),R()},get carouselLabel(){return p()},set carouselLabel(e="Carousel"){p(e),R()}})}se(Kx,{class:{},children:{},footer:{},autoplay:{},autoplayDelay:{},prevButtonLabel:{},nextButtonLabel:{},playButtonLabel:{},pauseButtonLabel:{},slideLabel:{},carouselLabel:{}},[],[],!0);var qR=me("<div><!></div>");function Qx(e,t){he(t,!0);let n=L(t,"children",7),i=L(t,"type",7,"normal");const r=_t({base:"flex-shrink-0 w-[20.125rem] max-w-full grid grid-rows-1",variants:{type:{normal:"",wide:"w-[31.125rem] lg:w-[41.25rem]",image:"",stacked:""}},defaultVariants:{type:"normal"}});var o=qR();return Ue(ae(o),(()=>n()??ct)),oe(o),et((e=>Ft(o,1,e)),[()=>Jt(r({type:i()}))]),C(e,o),pe({get children(){return n()},set children(e){n(e),R()},get type(){return i()},set type(e="normal"){i(e),R()}})}se(Qx,{children:{},type:{}},[],[],!0);var YR=me("<div><!></div>"),jR=me('<div class="flex flex-col justify-between gap-[1.875rem]"><!></div> <div class="relative z-[1] mt-[1.25rem]"><!></div>',1),KR=me("<a><!></a>"),QR=me('<div><!> <!> <div class="relative image-gradient svelte-hxp3fy"><div><div class="relative z-[1] mb-[0.625rem] ml:mb-[1.25rem] pointer-events-none"><!></div> <!></div></div></div>');const ZR={hash:"svelte-hxp3fy",code:'.image-gradient[data-type="image"].svelte-hxp3fy {padding-top:3.125rem;background:linear-gradient(180deg,\n\t\t\trgba(0,0,0,0) 0%,\n\t\t\trgba(0,0,0,0.54) 80px,\n\t\t\trgba(0,0,0,0.54) calc(100% - 80px),\n\t\t\trgba(0,0,0,0.42) 100%);}'};function Zx(e,t){he(t,!0),i_(e,ZR);let n=L(t,"children",7),i=L(t,"image",7),r=L(t,"taxonomy",7),o=L(t,"inset",7),s=L(t,"cta",7),a=L(t,"ctaLabel",7),l=L(t,"ctaAriaLabel",7),c=L(t,"ariaLabel",7),u=L(t,"type",7,"normal"),d=L(t,"context",7),h=L(t,"href",7),p=L(t,"target",7),f=L(t,"rel",7),m=nt(t,["$$slots","$$events","$$legacy","$$host","children","image","taxonomy","inset","cta","ctaLabel","ctaAriaLabel","ariaLabel","type","context","href","target","rel"]),g=_e((()=>!(!s()&&!a())));const v=_t({base:"bg-core-primary rounded-[1.25rem] overflow-hidden group/pointer cursor-pointer grid relative",variants:{type:{normal:"flex-shrink-0 w-full",wide:"flex-shrink-0 w-full",image:"flex-shrink-0 w-full pt-[12.5rem] grid-rows-1 items-end",stacked:"w-full grid-rows-1"},context:{inversed:"bg-white","life-effects":"bg-[#eee]"}},compoundVariants:[{type:["normal","wide"],className:"grid-rows-[auto_1fr]"}],defaultVariants:{type:"normal"}}),b=_t({base:"w-full [&>img]:size-full [&>img]:object-cover",variants:{type:{normal:"aspect-[32/19]",wide:"aspect-[50/31] max-h-[50dvh]",image:"absolute inset-0"}},defaultVariants:{type:"normal"}}),_=_t({base:["vision-headings:last:after:inline-block","vision-headings:last:after:w-6","vision-headings:last:after:h-[9px]","vision-headings:last:after:ms-2",'vision-headings:last:after:[mask-image:url("data:image/svg+xml,%3Csvg%20class%3D%22ov-svg%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%202882.4%202882.4%22%3E%3Cpath%20d%3D%22M1441.2%202881.7L.7%201441.2%201441.2.7l1440.5%201440.5-1440.5%201440.5zM.7%201441.2h2881M1441.2%202881.7V.7%22%20fill%3D%22none%22%20stroke%3D%22currentColor%22%20stroke-miterlimit%3D%2210%22%2F%3E%3C%2Fsvg%3E")]',"vision-headings:last:after:[mask-size:2881px_2881px]","vision-headings:last:after:[mask-position:right_4px_top_-1436px]","vision-headings:last:after:[mask-repeat:no-repeat]","vision-headings:last:after:pointer-events-none","vision-headings:last:after:transition-all","vision-headings:last:after:duration-150","group-hover/pointer:vision-headings:last:after:[mask-position:right_0px_top_-1436px]"],variants:{inversed:{false:"vision-headings:last:after:bg-white",true:"vision-headings:last:after:bg-core-accent"}}});let x=_e((()=>("inversed"===d()||"life-effects"===d())&&"image"!==u()));var S=QR(),w=ae(S);Ue(w,(()=>o()??ct));var M=Ge(w,2),E=e=>{var t=YR();Ue(ae(t),i),oe(t),et((e=>Ft(t,1,e)),[()=>Jt(b({type:u()}))]),C(e,t)};Ke(M,(e=>{i()&&["normal","wide","image"].includes(u())&&e(E)}));var T=Ge(M,2),A=ae(T),P=ae(A);Ue(ae(P),(()=>r()??ct)),oe(P);var N=Ge(P,2),D=e=>{var t=jR(),i=G(t),r=ae(i);const o=_e((()=>y(x)?"bentobox_card_inversed":"bentobox_card"));ha(r,{get context(){return y(o)},class:"relative z-[1]",children:(e,t)=>{var i=j();Ue(G(i),(()=>n()??ct)),C(e,i)},$$slots:{default:!0}}),oe(i);var c=Ge(i,2),u=ae(c),d=e=>{var t=j();Ue(G(t),s,(()=>({href:h()??void 0,target:p()??void 0,rel:f()??void 0}))),C(e,t)},m=(e,t)=>
1{var n=e=>{vn(e,{get href(){return h()},get target(){return p()},get rel(){return f()},variant:"inversed",get"aria-label"(){return l()},children:(e,t)=>{Jd();var n=Im();et((()=>bn(n,a()))),C(e,n)},$$slots:{default:!0}})};Ke(e,(e=>{a()&&e(n)}),t)};Ke(u,(e=>{s()?e(d):e(m,!1)})),oe(c),C(e,t)},I=e=>{var t=KR();let i;var r=ae(t);const o=_e((()=>y(x)?"bentobox_card_inversed":"bentobox_card")),s=_e((()=>["relative z-[1]",_({inversed:y(x)})]));ha(r,{get context(){return y(o)},get class(){return y(s)},children:(e,t)=>{var i=j();Ue(G(i),(()=>n()??ct)),C(e,i)},$$slots:{default:!0}}),oe(t),et((()=>i=gt(t,i,{href:h(),target:p(),rel:f(),...m,"aria-label":c(),class:"flex flex-col justify-between gap-[1.875rem] before:absolute before:inset-0"},"svelte-hxp3fy"))),C(e,t)};return Ke(N,(e=>{y(g)?e(D):e(I,!1)})),oe(A),oe(T),oe(S),et((e=>{Ft(S,1,e),nn(T,"data-type",u()),Ft(A,1,Jt(["px-[1.875rem] py-[1.25rem] ml:px-[2.5rem] ml:py-[1.875rem] h-full grid",y(g)?"grid-rows-[auto_1fr_auto]":"grid-rows-[auto_1fr]"]))}),[()=>Jt([v({type:u(),context:d()}),y(g)&&"!cursor-default"])]),C(e,S),pe({get children(){return n()},set children(e){n(e),R()},get image(){return i()},set image(e){i(e),R()},get taxonomy(){return r()},set taxonomy(e){r(e),R()},get inset(){return o()},set inset(e){o(e),R()},get cta(){return s()},set cta(e){s(e),R()},get ctaLabel(){return a()},set ctaLabel(e){a(e),R()},get ctaAriaLabel(){return l()},set ctaAriaLabel(e){l(e),R()},get ariaLabel(){return c()},set ariaLabel(e){c(e),R()},get type(){return u()},set type(e="normal"){u(e),R()},get context(){return d()},set context(e){d(e),R()},get href(){return h()},set href(e){h(e),R()},get target(){return p()},set target(e){p(e),R()},get rel(){return f()},set rel(e){f(e),R()}})}se(Zx,{children:{},image:{},taxonomy:{},inset:{},cta:{},ctaLabel:{},ctaAriaLabel:{},ariaLabel:{},type:{},context:{},href:{},target:{},rel:{}},[],[],!0);var JR=me('<div class="flex-shrink-0 w-full grid grid-rows-[1fr,1fr] gap-[0.9375rem] md:gap-[1.875rem]"><!> <!></div>');function Jx(e,t){he(t,!0);let n=L(t,"top",7),i=L(t,"bottom",7);var r=JR(),o=ae(r);return Ue(o,(()=>n()??ct)),Ue(Ge(o,2),(()=>i()??ct)),oe(r),C(e,r),pe({get top(){return n()},set top(e){n(e),R()},get bottom(){return i()},set bottom(e){i(e),R()}})}se(Jx,{top:{},bottom:{}},[],[],!0);const Nd=Object.assign(Kx,{Slide:Qx,Card:Zx,CardStack:Jx}),eL=e=>{var t=j();yt(G(t),(()=>'<slot name="footer" />'),!1,!1),C(e,t)};function tL(e,t){he(t,!0);let n=ie(Lt([])),i=ie(!1);Rn((async()=>{await su(),X(i,!0)})),ut((()=>(X(n,Array.from(t.$$host.querySelectorAll(":scope>vision-bentobox-card,:scope>vision-bentobox-card-stack")),!0),pn((()=>{for(let e=0;e<y(n).length;e++)y(n)[e].slot="slide-"+e})),()=>{X(n,[],!0)})));const r=nt(t,["$$slots","$$events","$$legacy","$$host"]),o=_e((()=>cu(r))),s=mf(t.$$host,"footer"),a=_e((()=>y(i)?"visible":"invisible")),l=_e((()=>s.footer?eL:void 0));Nd(e,Dt((()=>y(o)),{get class(){return y(a)},get footer(){return y(l)},children:(e,t)=>{var i=j();ti(G(i),18,(()=>y(n)),(e=>e),((e,t,n)=>{var i=j(),r=G(i);const o=_e((()=>(e=>{const t=e.getAttribute("type");return"normal"===t||"wide"===t||"image"===t||"stacked"===t?t:"VISION-BENTOBOX-CARD-STACK"===e.tagName?"stacked":"normal"})(t)));Qe(r,(()=>Nd.Slide),((e,t)=>{t(e,{get type(){return y(o)},children:(e,t)=>{var i=j();yt(G(i),(()=>'<slot name="slide-'+y(n)+'" />'),!1,!1),C(e,i)},$$slots:{default:!0}})})),C(e,i)})),C(e,i)},$$slots:{default:!0}})),pe()}customElements.define("vision-bentobox",se(tL,{autoplay:{attribute:"autoplay",reflect:!0,type:"String"},autoplayDelay:{attribute:"autoplay-delay",reflect:!0,type:"Number"},prevButtonLabel:{attribute:"prev-button-label",reflect:!0,type:"String"},nextButtonLabel:{attribute:"next-button-label",reflect:!0,type:"String"},playButtonLabel:{attribute:"play-button-label",reflect:!0,type:"String"},pauseButtonLabel:{attribute:"pause-button-label",reflect:!0,type:"String"},slideLabel:{attribute:"slide-label",reflect:!0,type:"String"},carouselLabel:{attribute:"carousel-label",reflect:!0,type:"String"}},[],[],!0,Mt()));const nL=e=>{var t=j();yt(G(t),(()=>'<slot name="top" />'),!1,!1),C(e,t)},iL=e=>{var t=j();yt(G(t),(()=>'<slot name="bottom" />'),!1,!1),C(e,t)};function rL(e,t){he(t,!0);let n=ie(Lt([]));ut((()=>{const e=Array.from(t.$$host.querySelectorAll(":scope>vision-bentobox-card"));return pn((()=>{const t=["top","bottom"],i=e.slice(0,2);
1i.forEach(((e,n)=>{e.slot=t[n]})),X(n,i,!0)})),()=>{X(n,[],!0)}}));const i=_e((()=>y(n).length>=1?nL:void 0)),r=_e((()=>y(n).length>=2?iL:void 0));var o=j();Qe(G(o),(()=>Nd.CardStack),((e,t)=>{t(e,{get top(){return y(i)},get bottom(){return y(r)}})})),C(e,o),pe()}customElements.define("vision-bentobox-card-stack",se(rL,{},[],[],!0,Mt()));const oL=(e,t=ct)=>{var n=j();yt(G(n),(()=>'<slot name="vision-bentobox-card-footer" />'),!1,!1),C(e,n)};function sL(e,t){he(t,!0);const n=nt(t,["$$slots","$$events","$$legacy","$$host"]),i=_e((()=>cu(n)));let r=ie(!1);ut((()=>{const e=t.$$host.querySelector(":scope > vision-bentobox-card-footer");pn((()=>{X(r,!!e)}))})),An(e,{ontypography:t.$$host.handleTypography,class:"group/pointer",children:(e,t)=>{var n=j(),o=G(n);const s=_e((()=>y(r)?oL:void 0));Qe(o,(()=>Nd.Card),((e,t)=>{t(e,Dt((()=>y(i)),{get cta(){return y(s)},image:e=>{var t=j();yt(G(t),(()=>'<slot name="vision-bentobox-card-image" />'),!1,!1),C(e,t)},taxonomy:e=>{var t=j();yt(G(t),(()=>'<slot name="taxonomy" />'),!1,!1),C(e,t)},children:e=>{var t=j();yt(G(t),(()=>'<slot name="vision-bentobox-card-content" />'),!1,!1),C(e,t)},$$slots:{image:!0,taxonomy:!0,default:!0}}))})),C(e,n)},$$slots:{default:!0}}),pe()}function aL(e,t){he(t,!0);let n=ie(!1),i=ie(!1);Jn((()=>{const e=t.$$host.parentElement;if(e){const t=e.getAttribute("type"),r=e.getAttribute("context");X(n,("inversed"===r||"life-effects"===r)&&"image"!==t,!0),X(i,e.hasAttribute("cta-label")||!!e.querySelector(":scope > vision-bentobox-card-footer"),!0)}}));const r=_t({base:["antialiased vision vision-lg vision-p:leading-[1.55] font-light vision-headings:font-light vision-headings:mb-[1.875rem] vision-p:mb-[1.875rem] [&>:where(:last-child)]:mb-0"],variants:{context:{bentobox_card:["text-white vision-headings:text-inherit vision-p:text-[1.1875rem] vision-headings:text-[1.1875rem] vision-p:leading-[1.55] vision-headings:leading-[1.55]","vision-em:not-italic vision-em:font-bold"],bentobox_card_inversed:["text-core-primary vision-headings:text-inherit vision-p:text-[1.1875rem] vision-headings:text-[1.1875rem] vision-p:leading-[1.55] vision-headings:leading-[1.55]","vision-em:text-core-accent vision-em:not-italic vision-em:font-bold"]}}}),o=_t({base:["vision-headings:last:after:inline-block","vision-headings:last:after:w-6","vision-headings:last:after:h-[9px]","vision-headings:last:after:ms-2",'vision-headings:last:after:[mask-image:url("data:image/svg+xml,%3Csvg%20class%3D%22ov-svg%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%202882.4%202882.4%22%3E%3Cpath%20d%3D%22M1441.2%202881.7L.7%201441.2%201441.2.7l1440.5%201440.5-1440.5%201440.5zM.7%201441.2h2881M1441.2%202881.7V.7%22%20fill%3D%22none%22%20stroke%3D%22currentColor%22%20stroke-miterlimit%3D%2210%22%2F%3E%3C%2Fsvg%3E")]',"vision-headings:last:after:[mask-size:2881px_2881px]","vision-headings:last:after:[mask-position:right_4px_top_-1436px]","vision-headings:last:after:[mask-repeat:no-repeat]","vision-headings:last:after:pointer-events-none","vision-headings:last:after:transition-all","vision-headings:last:after:duration-150","group-hover/pointer:vision-headings:last:after:[mask-position:right_0px_top_-1436px]"],variants:{inversed:{false:"vision-headings:last:after:bg-white",true:"vision-headings:last:after:bg-core-accent"}}}),s=_e((()=>[r({context:y(n)?"bentobox_card_inversed":"bentobox_card"}),!y(i)&&o({inversed:y(n)})]));An(e,{ontypography:t.$$host.handleTypography,get class(){return y(s)},children:(e,t)=>{var n=j();yt(G(n),(()=>"<slot />"),!1,!1),C(e,n)},$$slots:{default:!0}}),pe()}function lL(e,t){he(t,!0),An(e,{ontypography:t.$$host.handleTypography,class:" [&_img]:size-full [&_img]:object-cover",children:(e,t)=>{var n=j();yt(G(n),(()=>"<slot />"),!1,!1),C(e,n)},$$slots:{default:!0}}),pe()}function cL(e,t){he(t,!0),An(e,{ontypography:t.$$host.handleTypography,children:(e,t)=>{var n=j();yt(G(n),(()=>"<slot />"),!1,!1),C(e,n)},$$slots:{default:!0}}),pe()}var iu,b0;customElements.define("vision-bentobox-card",se(sL,{type:{attribute:"type",reflect:!0,type:"String"},context:{attribute:"context",reflect:!0,type:"String"},href:{attribute:"href",reflect:!0,type:"String"},target:{attribute:"target",reflect:!0,type:"String"},rel:{attribute:"rel",reflect:!0,type:"String"},ctaLabel:{attribute:"cta-label",reflect:!0,type:"String"},ctaAriaLabel:{attribute:"cta-aria-label",reflect:!0,type:"String"},ariaLabel:{attribute:"aria-label",reflect:!0,type:"String"}},[],[],!0,Mt())),customElements.define("vision-bentobox-card-content",se(aL,{},[],[],!0,Mt({slot:"vision-bentobox-card-content"}))),customElements.define("vision-bentobox-card-image",se(lL,{},[],[],!0,Mt({slot:"vision-bentobox-card-image"}))),customElements.define("vision-bentobox-card-footer",se(cL,{},[],[],!0,Mt({slot:"vision-bentobox-card-footer"})));let uL=(b0=class{constructor(){Re(this,iu,ie("default"))}get context(){return y(N(this,iu))}set context(e){X(N(this,iu),e,!0)}},iu=new WeakMap,b0);const jf=new uf("Taxonomy"),e1=()=>
1{if(jf.exists())return jf.get();const e=new uL;return jf.set(e)};var dL=me("<ul><!></ul>");function t1(e,t){he(t,!0);let n=L(t,"children",7),i=L(t,"context",7,"default"),r=nt(t,["$$slots","$$events","$$legacy","$$host","children","context"]);const o=e1();Jn((()=>{o.context=i()}));var s=dL();let a;return Ue(ae(s),(()=>n()??ct)),oe(s),et((()=>a=gt(s,a,{...r,class:"flex flex-wrap gap-x-3 pointer-events-none"}))),C(e,s),pe({get children(){return n()},set children(e){n(e),R()},get context(){return i()},set context(e="default"){i(e),R()}})}se(t1,{children:{},context:{}},[],[],!0);var fL=me("<li><!></li>");function n1(e,t){he(t,!0);let n=L(t,"children",7),i=nt(t,["$$slots","$$events","$$legacy","$$host","children"]);const r=e1();let o=_e((()=>r.context));const s=_t({base:"pointer-events-auto [&>*]:underline [&>*]:text-[0.6875rem] [&>*]:leading-[1.8] [&>*]:uppercase [&>*]:font-semibold [&>*]:underline-offset-2 [&>*]:transition-color [&>*]:duration-300 [&>*]:min-w-6 [&>*]:min-h-6 [&>*]:inline-block",variants:{context:{default:"[&>*]:text-core-primary [&>*]:hover:text-core-support-3",inversed:"[&>*]:text-white [&>*]:hover:!text-core-support-3"}},defaultVariants:{context:"default"}});var a=fL();let l;return Ue(ae(a),(()=>n()??ct)),oe(a),et((e=>l=gt(a,l,{...i,class:e})),[()=>s({context:y(o)})]),C(e,a),pe({get children(){return n()},set children(e){n(e),R()}})}se(n1,{children:{}},[],[],!0);const kg=Object.assign(t1,{Item:n1});function hL(e,t){he(t,!0);let n=ie(Lt([]));const i=L(t,"context",7),r=nt(t,["$$slots","$$events","$$legacy","$$host","context"]),o=_e((()=>cu(r)));return ut((()=>(X(n,Array.from(t.$$host.querySelectorAll(":scope>vision-taxonomy-item")),!0),i()&&pn((()=>{for(let e=0;e<y(n).length;e++)y(n)[e].slot="item-"+e,y(n)[e].setAttribute("context",i()||"inversed")})),()=>{X(n,[],!0)}))),kg(e,Dt((()=>y(o)),{children:(e,t)=>{var i=j();ti(G(i),18,(()=>y(n)),(e=>e),((e,t,n)=>{var i=j();Qe(G(i),(()=>kg.Item),((e,t)=>{t(e,{children:(e,t)=>{var i=j();yt(G(i),(()=>'<slot name="item-'+y(n)+'" />'),!1,!1),C(e,i)},$$slots:{default:!0}})})),C(e,i)})),C(e,i)},$$slots:{default:!0}})),pe({get context(){return i()},set context(e){i(e),R()}})}function pL(e,t){he(t,!0);const n=L(t,"context",7),i=_t({base:"[&_*]:underline [&_*]:text-[0.6875rem] [&_*]:leading-[1.8] [&_*]:uppercase [&_*]:font-semibold [&_*]:underline-offset-2 [&_*]:transition-color [&_*]:duration-300 [&_*]:text-inherit [&>*]:min-w-6 [&>*]:min-h-6 [&>*]:inline-block",variants:{context:{default:"text-core-primary hover:text-core-support-3",inversed:"text-white hover:!text-core-support-3"}},defaultVariants:{context:"default"}});let r=_e((()=>i({context:n()})));return An(e,{ontypography:t.$$host.handleTypography,get class(){return y(r)},children:(e,t)=>{var n=j();yt(G(n),(()=>"<slot />"),!1,!1),C(e,n)},$$slots:{default:!0}}),pe({get context(){return n()},set context(e){n(e),R()}})}customElements.define("vision-taxonomy",se(hL,{context:{attribute:"context",reflect:!0,type:"String"}},[],[],!0,Mt())),customElements.define("vision-taxonomy-item",se(pL,{context:{attribute:"context",reflect:!0,type:"String"}},[],[],!0,Mt())); 2/** 3 * @license 4 * Copyright 2010-2025 Three.js Authors 5 * SPDX-License-Identifier: MIT 6 */ 7const yf="180",mL=0,zg=1,vL=2,i1=1,r1=2,Pr=3,Wr=0,En=1,mi=2,dr=0,js=1,Hg=2,Vg=3,$g=4,gL=5,Ho=100,bL=101,_L=102,yL=103,xL=104,SL=200,EL=201,wL=202,ML=203,mp=204,vp=205,TL=206,AL=207,CL=208,PL=209,RL=210,LL=211,DL=212,IL=213,NL=214,gp=0,bp=1,_p=2,ma=3,yp=4,xp=5,Sp=6,Ep=7,o1=0,OL=1,UL=2,go=0,FL=1,BL=2,kL=3,zL=4,HL=5,VL=6,$L=7,s1=300,va=301,ga=302,wp=303,Mp=304,xf=306,Tp=1e3,Ur=1001,Ap=1002,_i=1003,GL=1004,Pu=1005,zn=1006,Kf=1007,Go=1008,si=1009,a1=1010,l1=1011,Rl=1012,dv=1013,xo=1014,Fr=1015,bu=1016,fv=1017,hv=1018,ba=1020,c1=35902,u1=35899,d1=1021,f1=1022,Di=1023,Ll=1026,_a=1027,h1=1028,pv=1029,p1=1030,mv=1031,vv=1033,ud=33776,dd=33777,fd=33778,hd=33779,Cp=35840,Pp=35841,Rp=35842,Lp=35843,Dp=36196,Ip=37492,Np=37496,Op=37808,Up=37809,Fp=37810,Bp=37811,kp=37812,zp=37813,Hp=37814,Vp=37815,$p=37816,Gp=37817,Wp=37818,Xp=37819,qp=37820,Yp=37821,jp=36492,Kp=36494,Qp=36495,Zp=36283,Jp=36284,em=36285,tm=36286,_u=3200,WL=3201,m1=0,XL=1,lr="",fn="srgb",So="srgb-linear",Od="linear",jt="srgb",ys=7680,Gg=519,qL=512,YL=513,jL=514,v1=515,KL=516,QL=517,ZL=518,JL=519,Wg=35044,Xg="300 es",cr=2e3,Ud=2001;class Mo{addEventListener(e,t){void 0===this._listeners&&(this._listeners={});const n=this._listeners;void 0===n[e]&&(n[e]=[]),-1===n[e].indexOf(t)&&n[e].push(t)}hasEventListener(e,t){const n=this._listeners;return void 0!==n&&(void 0!==n[e]&&-1!==n[e].indexOf(t))}removeEventListener(e,t){const n=this._listeners;if(void 0===n)return;const i=n[e];if(void 0!==i){const e=i.indexOf(t);-1!==e&&i.splice(e,1)}}dispatchEvent(e){const t=this._listeners;if(void 0===t)return;const n=t[e.type];if(void 0!==n){e.target=this;const t=n.slice(0);for(let n=0,i=t.length;n<i;n++)t[n].call(this,e);e.target=null}}}const Fn=["00","01","02","03","04","05","06","07","08","09","0a","0b","0c","0d","0e","0f","10","11","12","13","14","15","16","17","18","19","1a","1b","1c","1d","1e","1f","20","21","22","23","24","25","26","27","28","29","2a","2b","2c","2d","2e","2f","30","31","32","33","34","35","36","37","38","39","3a","3b","3c","3d","3e","3f","40","41","42","43","44","45","46","47","48","49","4a","4b","4c","4d","4e","4f","50","51","52","53","54","5
75","56","57","58","59","5a","5b","5c","5d","5e","5f","60","61","62","63","64","65","66","67","68","69","6a","6b","6c","6d","6e","6f","70","71","72","73","74","75","76","77","78","79","7a","7b","7c","7d","7e","7f","80","81","82","83","84","85","86","87","88","89","8a","8b","8c","8d","8e","8f","90","91","92","93","94","95","96","97","98","99","9a","9b","9c","9d","9e","9f","a0","a1","a2","a3","a4","a5","a6","a7","a8","a9","aa","ab","ac","ad","ae","af","b0","b1","b2","b3","b4","b5","b6","b7","b8","b9","ba","bb","bc","bd","be","bf","c0","c1","c2","c3","c4","c5","c6","c7","c8","c9","ca","cb","cc","cd","ce","cf","d0","d1","d2","d3","d4","d5","d6","d7","d8","d9","da","db","dc","dd","de","df","e0","e1","e2","e3","e4","e5","e6","e7","e8","e9","ea","eb","ec","ed","ee","ef","f0","f1","f2","f3","f4","f5","f6","f7","f8","f9","fa","fb","fc","fd","fe","ff"];let qg=1234567;const cl=Math.PI/180,Dl=180/Math.PI;function Da(){const e=4294967295*Math.random()|0,t=4294967295*Math.random()|0,n=4294967295*Math.random()|0,i=4294967295*Math.random()|0;return(Fn[255&e]+Fn[e>>8&255]+Fn[e>>16&255]+Fn[e>>24&255]+"-"+Fn[255&t]+Fn[t>>8&255]+"-"+Fn[t>>16&15|64]+Fn[t>>24&255]+"-"+Fn[63&n|128]+Fn[n>>8&255]+"-"+Fn[n>>16&255]+Fn[n>>24&255]+Fn[255&i]+Fn[i>>8&255]+Fn[i>>16&255]+Fn[i>>24&255]).toLowerCase()}function It(e,t,n){return Math.max(t,Math.min(n,e))}function gv(e,t){return(e%t+t)%t}function eD(e,t,n,i,r){return i+(e-t)*(r-i)/(n-t)}function tD(e,t,n){return e!==t?(n-e)/(t-e):0}function ul(e,t,n){return(1-n)*e+n*t}function nD(e,t,n,i){return ul(e,t,1-Math.exp(-n*i))}function iD(e,t=1){return t-Math.abs(gv(e,2*t)-t)}function rD(e,t,n){return e<=t?0:e>=n?1:(e=(e-t)/(n-t))*e*(3-2*e)}function oD(e,t,n){return e<=t?0:e>=n?1:(e=(e-t)/(n-t))*e*e*(e*(6*e-15)+10)}function sD(e,t){return e+Math.floor(Math.random()*(t-e+1))}function aD(e,t){return e+Math.random()*(t-e)}function lD(e){return e*(.5-Math.random())}function cD(e){void 0!==e&&(qg=e);let t=qg+=1831565813;return t=Math.imul(t^t>>>15,1|t),t^=t+Math.imul(t^t>>>7,61|t),((t^t>>>14)>>>0)/4294967296}function uD(e){return e*cl}function dD(e){return e*Dl}function fD(e){return!(e&e-1)&&0!==e}function hD(e){return Math.pow(2,Math.ceil(Math.log(e)/Math.LN2))}function pD(e){return Math.pow(2,Math.floor(Math.log(e)/Math.LN2))}function mD(e,t,n,i,r){const o=Math.cos,s=Math.sin,a=o(n/2),l=s(n/2),c=o((t+i)/2),u=s((t+i)/2),d=o((t-i)/2),h=s((t-i)/2),p=o((i-t)/2),f=s((i-t)/2);switch(r){case"XYX":e.set(a*u,l*d,l*h,a*c);break;case"YZY":e.set(l*h,a*u,l*d,a*c);break;case"ZXZ":e.set(l*d,l*h,a*u,a*c);break;case"XZX":e.set(a*u,l*f,l*p,a*c);break;case"YXY":e.set(l*p,a*u,l*f,a*c);break;case"ZYZ":e.set(l*f,l*p,a*u,a*c);break;default:console.warn("THREE.MathUtils: .setQuaternionFromProperEuler() encountered an unknown order: "+r)}}function Bs(e,t){switch(t.constructor){case Float32Array:return e;case Uint32Array:return e/4294967295;case Uint16Array:return e/65535;case Uint8Array:return e/255;case Int32Array:return Math.max(e/2147483647,-1);case Int16Array:return Math.max(e/32767,-1);case Int8Array:return Math.max(e/127,-1);default:throw new Error("Invalid component type.")}}function Vn(e,t){switch(t.constructor){case Float32Array:return e;case Uint32Array:return Math.round(4294967295*e);case Uint16Array:return Math.round(65535*e);case Uint8Array:return Math.round(255*e);case Int32Array:return Math.round(2147483647*e);case Int16Array:return Math.round(32767*e);case Int8Array:return Math.round(127*e);default:throw new Error("Invalid component type.")}}const Ru={DEG2RAD:cl,RAD2DEG:Dl,generateUUID:Da,clamp:It,euclideanModulo:gv,mapLinear:eD,inverseLerp:tD,lerp:ul,damp:nD,pingpong:iD,smoothstep:rD,smootherstep:oD,randInt:sD,randFloat:aD,randFloatSpread:lD,seededRandom:cD,degToRad:uD,radToDeg:dD,isPowerOfTwo:fD,ceilPowerOfTwo:hD,floorPowerOfTwo:pD,setQuaternionFromProperEuler:mD,normalize:Vn,denormalize:Bs};class tt{constructor(e=0,t=0){tt.prototype.isVector2=!0,this.x=e,this.y=t}get width(){return this.x}set width(e){this.x=e}get height(){return this.y}set height(e){this.y=e}set(e,t){return this.x=e,this.y=t,this}setScalar(e){return this.x=e,this.y=e,this}setX(e){return this.x=e,this}setY(e){return this.y=e,this}setComponent(e,t){switch(e){case 0:this.x=t;break;case 1:this.y=t;break;default:throw new Error("index is out of range: "+e)}return this}getComponent(e){switch(e){case 0:return this.x;case 1:return this.y;default:throw new Error("index is out of range: "+e)}}clone(){return new this.constructor(this.x,this.y)}copy(e){return this.x=e.x,this.y=e.y,this}add(e){return this.x+=e.x,this.y+=e.y,this}addScalar(e){return this.x+=e,this.y+=e,this}addVectors(e,t){return this.x=e.x+t.x,this.y=e.y+t.y,this}addScaledVector(e,t){return this.x+=e.x*t,this.y+=e.y*t,this}
vendor: 11,633 bytes, line 7
7sub(e){return this.x-=e.x,this.y-=e.y,this}subScalar(e){return this.x-=e,this.y-=e,this}subVectors(e,t){return this.x=e.x-t.x,this.y=e.y-t.y,this}multiply(e){return this.x*=e.x,this.y*=e.y,this}multiplyScalar(e){return this.x*=e,this.y*=e,this}divide(e){return this.x/=e.x,this.y/=e.y,this}divideScalar(e){return this.multiplyScalar(1/e)}applyMatrix3(e){const t=this.x,n=this.y,i=e.elements;return this.x=i[0]*t+i[3]*n+i[6],this.y=i[1]*t+i[4]*n+i[7],this}min(e){return this.x=Math.min(this.x,e.x),this.y=Math.min(this.y,e.y),this}max(e){return this.x=Math.max(this.x,e.x),this.y=Math.max(this.y,e.y),this}clamp(e,t){return this.x=It(this.x,e.x,t.x),this.y=It(this.y,e.y,t.y),this}clampScalar(e,t){return this.x=It(this.x,e,t),this.y=It(this.y,e,t),this}clampLength(e,t){const n=this.length();return this.divideScalar(n||1).multiplyScalar(It(n,e,t))}floor(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this}ceil(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this}round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}roundToZero(){return this.x=Math.trunc(this.x),this.y=Math.trunc(this.y),this}negate(){return this.x=-this.x,this.y=-this.y,this}dot(e){return this.x*e.x+this.y*e.y}cross(e){return this.x*e.y-this.y*e.x}lengthSq(){return this.x*this.x+this.y*this.y}length(){return Math.sqrt(this.x*this.x+this.y*this.y)}manhattanLength(){return Math.abs(this.x)+Math.abs(this.y)}normalize(){return this.divideScalar(this.length()||1)}angle(){return Math.atan2(-this.y,-this.x)+Math.PI}angleTo(e){const t=Math.sqrt(this.lengthSq()*e.lengthSq());if(0===t)return Math.PI/2;const n=this.dot(e)/t;return Math.acos(It(n,-1,1))}distanceTo(e){return Math.sqrt(this.distanceToSquared(e))}distanceToSquared(e){const t=this.x-e.x,n=this.y-e.y;return t*t+n*n}manhattanDistanceTo(e){return Math.abs(this.x-e.x)+Math.abs(this.y-e.y)}setLength(e){return this.normalize().multiplyScalar(e)}lerp(e,t){return this.x+=(e.x-this.x)*t,this.y+=(e.y-this.y)*t,this}lerpVectors(e,t,n){return this.x=e.x+(t.x-e.x)*n,this.y=e.y+(t.y-e.y)*n,this}equals(e){return e.x===this.x&&e.y===this.y}fromArray(e,t=0){return this.x=e[t],this.y=e[t+1],this}toArray(e=[],t=0){return e[t]=this.x,e[t+1]=this.y,e}fromBufferAttribute(e,t){return this.x=e.getX(t),this.y=e.getY(t),this}rotateAround(e,t){const n=Math.cos(t),i=Math.sin(t),r=this.x-e.x,o=this.y-e.y;return this.x=r*n-o*i+e.x,this.y=r*i+o*n+e.y,this}random(){return this.x=Math.random(),this.y=Math.random(),this}*[Symbol.iterator](){yield this.x,yield this.y}}class Ia{constructor(e=0,t=0,n=0,i=1){this.isQuaternion=!0,this._x=e,this._y=t,this._z=n,this._w=i}static slerpFlat(e,t,n,i,r,o,s){let a=n[i+0],l=n[i+1],c=n[i+2],u=n[i+3];const d=r[o+0],h=r[o+1],p=r[o+2],f=r[o+3];if(0===s)return e[t+0]=a,e[t+1]=l,e[t+2]=c,void(e[t+3]=u);if(1===s)return e[t+0]=d,e[t+1]=h,e[t+2]=p,void(e[t+3]=f);if(u!==f||a!==d||l!==h||c!==p){let e=1-s;const t=a*d+l*h+c*p+u*f,n=t>=0?1:-1,i=1-t*t;if(i>Number.EPSILON){const r=Math.sqrt(i),o=Math.atan2(r,t*n);e=Math.sin(e*o)/r,s=Math.sin(s*o)/r}const r=s*n;if(a=a*e+d*r,l=l*e+h*r,c=c*e+p*r,u=u*e+f*r,e===1-s){const e=1/Math.sqrt(a*a+l*l+c*c+u*u);a*=e,l*=e,c*=e,u*=e}}e[t]=a,e[t+1]=l,e[t+2]=c,e[t+3]=u}static multiplyQuaternionsFlat(e,t,n,i,r,o){const s=n[i],a=n[i+1],l=n[i+2],c=n[i+3],u=r[o],d=r[o+1],h=r[o+2],p=r[o+3];return e[t]=s*p+c*u+a*h-l*d,e[t+1]=a*p+c*d+l*u-s*h,e[t+2]=l*p+c*h+s*d-a*u,e[t+3]=c*p-s*u-a*d-l*h,e}get x(){return this._x}set x(e){this._x=e,this._onChangeCallback()}get y(){return this._y}set y(e){this._y=e,this._onChangeCallback()}get z(){return this._z}set z(e){this._z=e,this._onChangeCallback()}get w(){return this._w}set w(e){this._w=e,this._onChangeCallback()}set(e,t,n,i){return this._x=e,this._y=t,this._z=n,this._w=i,this._onChangeCallback(),this}clone(){return new this.constructor(this._x,this._y,this._z,this._w)}copy(e){return this._x=e.x,this._y=e.y,this._z=e.z,this._w=e.w,this._onChangeCallback(),this}setFromEuler(e,t=!0){const n=e._x,i=e._y,r=e._z,o=e._order,s=Math.cos,a=Math.sin,l=s(n/2),c=s(i/2),u=s(r/2),d=a(n/2),h=a(i/2),p=a(r/2);switch(o){case"XYZ":this._x=d*c*u+l*h*p,this._y=l*h*u-d*c*p,this._z=l*c*p+d*h*u,this._w=l*c*u-d*h*p;break;case"YXZ":this._x=d*c*u+l*h*p,this._y=l*h*u-d*c*p,this._z=l*c*p-d*h*u,this._w=l*c*u+d*h*p;break;case"ZXY":this._x=d*c*u-l*h*p,this._y=l*h*u+d*c*p,this._z=l*c*p+d*h*u,this._w=l*c*u-d*h*p;break;case"ZYX":this._x=d*c*u-l*h*p,this._y=l*h*u+d*c*p,this._z=l*c*p-d*h*u,this._w=l*c*u+d*h*p;break;case"YZX":this._x=d*c*u+l*h*p,this._y=l*h*u+d*c*p,this._z=l*c*p-d*h*u,this._w=l*c*u-d*h*p;break;case"XZY":this._x=d*c*u-l*h*p,this._y=l*h*u-d*c*p,this._z=l*c*p+d*h*u,this._w=l*c*u+d*h*p;break;default:console.warn("THREE.Quaternion: .setFromEuler() encountered an unknown order: "+o)}return!0===t&&this._onChangeCallback(),this}setFromAxisAngle(e,t){const n=t/2,i=Math.sin(n);return this._x=e.x*i,this._y=e.y*i,this._z=e.z*i,this._w=Math.cos(n),this._onChangeCallback(),this}setFromRotationMatrix(e){const t=e.elements,n=t[0],i=t[4],r=t[8],o=t[1],s=t[5],a=t[9],l=t[2],c=t[6],u=t[10],d=n+s+u;if(d>0){const e=.5/Math.sqrt(d+1);this._w=.25/e,this._x=(c-a)*e,this._y=(r-l)*e,this._z=(o-i)*e}else if(n>s&&n>u){const e=2*Math.sqrt(1+n-s-u);this._w=(c-a)/e,this._x=.25*e,this._y=(i+o)/e,this._z=(r+l)/e}else if(s>u){const e=2*Math.sqrt(1+s-n-u);this._w=(r-l)/e,this._x=(i+o)/e,this._y=.25*e,this._z=(a+c)/e}else{const e=2*Math.sqrt(1+u-n-s);this._w=(o-i)/e,this._x=(r+l)/e,this._y=(a+c)/e,this._z=.25*e}return this._onChangeCallback(),this}setFromUnitVectors(e,t){let n=e.dot(t)+1;return n<1e-8?(n=0,Math.abs(e.x)>Math.abs(e.z)?(this._x=-e.y,this._y=e.x,this._z=0,this._w=n):(this._x=0,this._y=-e.z,this._z=e.y,this._w=n)):(this._x=e.y*t.z-e.z*t.y,this._y=e.z*t.x-e.x*t.z,this._z=e.x*t.y-e.y*t.x,this._w=n),this.normalize()}angleTo(e){return 2*Math.acos(Math.abs(It(this.dot(e),-1,1)))}rotateTowards(e,t){const n=this.angleTo(e);if(0===n)return this;const i=Math.min(1,t/n);return this.slerp(e,i),this}identity(){return this.set(0,0,0,1)}invert(){return this.conjugate()}conjugate(){return this._x*=-1,this._y*=-1,this._z*=-1,this._onChangeCallback(),this}dot(e){return this._x*e._x+this._y*e._y+this._z*e._z+this._w*e._w}lengthSq(){return this._x*this._x+this._y*this._y+this._z*this._z+this._w*this._w}length(){return Math.sqrt(this._x*this._x+this._y*this._y+this._z*this._z+this._w*this._w)}normalize(){let e=this.length();return 0===e?(this._x=0,this._y=0,this._z=0,this._w=1):(e=1/e,this._x=this._x*e,this._y=this._y*e,this._z=this._z*e,this._w=this._w*e),this._onChangeCallback(),this}multiply(e){return this.multiplyQuaternions(this,e)}premultiply(e){return this.multiplyQuaternions(e,this)}multiplyQuaternions(e,t){const n=e._x,i=e._y,r=e._z,o=e._w,s=t._x,a=t._y,l=t._z,c=t._w;return this._x=n*c+o*s+i*l-r*a,this._y=i*c+o*a+r*s-n*l,this._z=r*c+o*l+n*a-i*s,this._w=o*c-n*s-i*a-r*l,this._onChangeCallback(),this}slerp(e,t){if(0===t)return this;if(1===t)return this.copy(e);const n=this._x,i=this._y,r=this._z,o=this._w;let s=o*e._w+n*e._x+i*e._y+r*e._z;if(s<0?(this._w=-e._w,this._x=-e._x,this._y=-e._y,this._z=-e._z,s=-s):this.copy(e),s>=1)return this._w=o,this._x=n,this._y=i,this._z=r,this;const a=1-s*s;if(a<=Number.EPSILON){const e=1-t;return this._w=e*o+t*this._w,this._x=e*n+t*this._x,this._y=e*i+t*this._y,this._z=e*r+t*this._z,this.normalize(),this}const l=Math.sqrt(a),c=Math.atan2(l,s),u=Math.sin((1-t)*c)/l,d=Math.sin(t*c)/l;return this._w=o*u+this._w*d,this._x=n*u+this._x*d,this._y=i*u+this._y*d,this._z=r*u+this._z*d,this._onChangeCallback(),this}slerpQuaternions(e,t,n){return this.copy(e).slerp(t,n)}random(){const e=2*Math.PI*Math.random(),t=2*Math.PI*Math.random(),n=Math.random(),i=Math.sqrt(1-n),r=Math.sqrt(n);return this.set(i*Math.sin(e),i*Math.cos(e),r*Math.sin(t),r*Math.cos(t))}equals(e){return e._x===this._x&&e._y===this._y&&e._z===this._z&&e._w===this._w}fromArray(e,t=0){return this._x=e[t],this._y=e[t+1],this._z=e[t+2],this._w=e[t+3],this._onChangeCallback(),this}toArray(e=[],t=0){return e[t]=this._x,e[t+1]=this._y,e[t+2]=this._z,e[t+3]=this._w,e}fromBufferAttribute(e,t){return this._x=e.getX(t),this._y=e.getY(t),this._z=e.getZ(t),this._w=e.getW(t),this._onChangeCallback(),this}toJSON(){return this.toArray()}_onChange(e){return this._onChangeCallback=e,this}_onChangeCallback(){}*[Symbol.iterator](){yield this._x,yield this._y,yield this._z,yield this._w}}class k{constructor(e=0,t=0,n=0){k.prototype.isVector3=!0,this.x=e,this.y=t,this.z=n}set(e,t,n){return void 0===n&&(n=this.z),this.x=e,this.y=t,this.z=n,this}setScalar(e){return this.x=e,this.y=e,this.z=e,this}setX(e){return this.x=e,this}setY(e){return this.y=e,this}setZ(e){return this.z=e,this}setComponent(e,t){switch(e){case 0:this.x=t;break;case 1:this.y=t;break;case 2:this.z=t;break;default:throw new Error("index is out of range: "+e)}return this}getComponent(e){switch(e){case 0:return this.x;case 1:return this.y;case 2:return this.z;default:throw new Error("index is out of range: "+e)}}clone(){return new this.constructor(this.x,this.y,this.z)}copy(e){return this.x=e.x,this.y=e.y,this.z=e.z,this}add(e){return this.x+=e.x,this.y+=e.y,this.z+=e.z,this}addScalar(e){return this.x+=e,this.y+=e,this.z+=e,this}addVectors(e,t){return this.x=e.x+t.x,this.y=e.y+t.y,this.z=e.z+t.z,this}addScaledVector(e,t){return this.x+=e.x*t,this.y+=e.y*t,this.z+=e.z*t,this}sub(e){return this.x-=e.x,this.y-=e.y,this.z-=e.z,this}subScalar(e){return this.x-=e,this.y-=e,this.z-=e,this}subVectors(e,t){return this.x=e.x-t.x,this.y=e.y-t.y,this.z=e.z-t.z,this}multiply(e){return this.x*=e.x,this.y*=e.y,this.z*=e.z,this}multiplyScalar(e){return this.x*=e,this.y*=e,this.z*=e,this}multiplyVectors(e,t){return this.x=e.x*t.x,this.y=e.y*t.y,this.z=e.z*t.z,this}applyEuler(e){return this.applyQuaternion(Yg.setFromEuler(e))}applyAxisAngle(e,t){return this.applyQuaternion(Yg.setFromAxisAngle(e,t))}applyMatrix3(e){const t=this.x,n=this.y,i=this.z,r=e.elements;return this.x=r[0]*t+r[3]*n+r[6]*i,this.y=r[1]*t+r[4]*n+r[7]*i,this.z=r[2]*t+r[5]*n+r[8]*i,this}applyNormalMatrix(e){return this.applyMatrix3(e).normalize()}applyMatrix4(e){const t=this.x,n=this.y,i=this.z,r=e.elements,o=1/(r[3]*t+r[7]*n+r[11]*i+r[15]);return this.x=(r[0]*t+r[4]*n+r[8]*i+r[12])*o,this.y=(r[1]*t+r[5]*n+r[9]*i+r[13])*o,this.z=(r[2]*t+r[6]*n+r[10]*i+r[14])*o,this}applyQuaternion(e){const t=this.x,n=this.y,i=this.z,r=e.x,o=e.y,s=e.z,a=e.w,l=2*(o*i-s*n),c=2*(s*t-r*i),u=2*(r*n-o*t);return this.x=t+a*l+o*u-s*c,this.y=n+a*c+s*l-r*u,this.z=i+a*u+r*c-o*l,this}project(e){return this.applyMatrix4(e.matrixWorldInverse).applyMatrix4(e.projectionMatrix)}unproject(e){return this.applyMatrix4(e.projectionMatrixInverse).applyMatrix4(e.matrixWorld)}transformDirection(e){const t=this.x,n=this.y,i=this.z,r=e.elements;return this.x=r[0]*t+r[4]*n+r[8]*i,this.y=r[1]*t+r[5]*n+r[9]*i,this.z=r[2]*t+r[6]*n+r[10]*i,this.normalize()}divide(e){return this.x/=e.x,this.y/=e.y,this.z/=e.z,this}divideScalar(e){return this.multiplyScalar(1/e)}min(e){return this.x=Math.min(this.x,e.x),this.y=Math.min(this.y,e.y),this.z=Math.min(this.z,e.z),this}max(e){return this.x=Math.max(this.x,e.x),this.y=Math.max(this.y,e.y),this.z=Math.max(this.z,e.z),this}clamp(e,t){return this.x=It(this.x,e.x,t.x),this.y=It(this.y,e.y,t.y),this.z=It(this.z,e.z,t.z),this}clampScalar(e,t){return this.x=It(this.x,e,t),this.y=It(this.y,e,t),this.z=It(this.z,e,t),this}clampLength(e,t){const n=this.length();return this.divideScalar(n||1).multiplyScalar(It(n,e,t))}floor(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this.z=Math.floor(this.z),this}ceil(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this.z=Math.ceil(this.z),this}
vendor: 6,938 bytes, line 7
7round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this.z=Math.round(this.z),this}roundToZero(){return this.x=Math.trunc(this.x),this.y=Math.trunc(this.y),this.z=Math.trunc(this.z),this}negate(){return this.x=-this.x,this.y=-this.y,this.z=-this.z,this}dot(e){return this.x*e.x+this.y*e.y+this.z*e.z}lengthSq(){return this.x*this.x+this.y*this.y+this.z*this.z}length(){return Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z)}manhattanLength(){return Math.abs(this.x)+Math.abs(this.y)+Math.abs(this.z)}normalize(){return this.divideScalar(this.length()||1)}setLength(e){return this.normalize().multiplyScalar(e)}lerp(e,t){return this.x+=(e.x-this.x)*t,this.y+=(e.y-this.y)*t,this.z+=(e.z-this.z)*t,this}lerpVectors(e,t,n){return this.x=e.x+(t.x-e.x)*n,this.y=e.y+(t.y-e.y)*n,this.z=e.z+(t.z-e.z)*n,this}cross(e){return this.crossVectors(this,e)}crossVectors(e,t){const n=e.x,i=e.y,r=e.z,o=t.x,s=t.y,a=t.z;return this.x=i*a-r*s,this.y=r*o-n*a,this.z=n*s-i*o,this}projectOnVector(e){const t=e.lengthSq();if(0===t)return this.set(0,0,0);const n=e.dot(this)/t;return this.copy(e).multiplyScalar(n)}projectOnPlane(e){return Qf.copy(this).projectOnVector(e),this.sub(Qf)}reflect(e){return this.sub(Qf.copy(e).multiplyScalar(2*this.dot(e)))}angleTo(e){const t=Math.sqrt(this.lengthSq()*e.lengthSq());if(0===t)return Math.PI/2;const n=this.dot(e)/t;return Math.acos(It(n,-1,1))}distanceTo(e){return Math.sqrt(this.distanceToSquared(e))}distanceToSquared(e){const t=this.x-e.x,n=this.y-e.y,i=this.z-e.z;return t*t+n*n+i*i}manhattanDistanceTo(e){return Math.abs(this.x-e.x)+Math.abs(this.y-e.y)+Math.abs(this.z-e.z)}setFromSpherical(e){return this.setFromSphericalCoords(e.radius,e.phi,e.theta)}setFromSphericalCoords(e,t,n){const i=Math.sin(t)*e;return this.x=i*Math.sin(n),this.y=Math.cos(t)*e,this.z=i*Math.cos(n),this}setFromCylindrical(e){return this.setFromCylindricalCoords(e.radius,e.theta,e.y)}setFromCylindricalCoords(e,t,n){return this.x=e*Math.sin(t),this.y=n,this.z=e*Math.cos(t),this}setFromMatrixPosition(e){const t=e.elements;return this.x=t[12],this.y=t[13],this.z=t[14],this}setFromMatrixScale(e){const t=this.setFromMatrixColumn(e,0).length(),n=this.setFromMatrixColumn(e,1).length(),i=this.setFromMatrixColumn(e,2).length();return this.x=t,this.y=n,this.z=i,this}setFromMatrixColumn(e,t){return this.fromArray(e.elements,4*t)}setFromMatrix3Column(e,t){return this.fromArray(e.elements,3*t)}setFromEuler(e){return this.x=e._x,this.y=e._y,this.z=e._z,this}setFromColor(e){return this.x=e.r,this.y=e.g,this.z=e.b,this}equals(e){return e.x===this.x&&e.y===this.y&&e.z===this.z}fromArray(e,t=0){return this.x=e[t],this.y=e[t+1],this.z=e[t+2],this}toArray(e=[],t=0){return e[t]=this.x,e[t+1]=this.y,e[t+2]=this.z,e}fromBufferAttribute(e,t){return this.x=e.getX(t),this.y=e.getY(t),this.z=e.getZ(t),this}random(){return this.x=Math.random(),this.y=Math.random(),this.z=Math.random(),this}randomDirection(){const e=Math.random()*Math.PI*2,t=2*Math.random()-1,n=Math.sqrt(1-t*t);return this.x=n*Math.cos(e),this.y=t,this.z=n*Math.sin(e),this}*[Symbol.iterator](){yield this.x,yield this.y,yield this.z}}const Qf=new k,Yg=new Ia;class Ct{constructor(e,t,n,i,r,o,s,a,l){Ct.prototype.isMatrix3=!0,this.elements=[1,0,0,0,1,0,0,0,1],void 0!==e&&this.set(e,t,n,i,r,o,s,a,l)}set(e,t,n,i,r,o,s,a,l){const c=this.elements;return c[0]=e,c[1]=i,c[2]=s,c[3]=t,c[4]=r,c[5]=a,c[6]=n,c[7]=o,c[8]=l,this}identity(){return this.set(1,0,0,0,1,0,0,0,1),this}copy(e){const t=this.elements,n=e.elements;return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t[4]=n[4],t[5]=n[5],t[6]=n[6],t[7]=n[7],t[8]=n[8],this}extractBasis(e,t,n){return e.setFromMatrix3Column(this,0),t.setFromMatrix3Column(this,1),n.setFromMatrix3Column(this,2),this}setFromMatrix4(e){const t=e.elements;return this.set(t[0],t[4],t[8],t[1],t[5],t[9],t[2],t[6],t[10]),this}multiply(e){return this.multiplyMatrices(this,e)}premultiply(e){return this.multiplyMatrices(e,this)}multiplyMatrices(e,t){const n=e.elements,i=t.elements,r=this.elements,o=n[0],s=n[3],a=n[6],l=n[1],c=n[4],u=n[7],d=n[2],h=n[5],p=n[8],f=i[0],m=i[3],g=i[6],v=i[1],b=i[4],y=i[7],_=i[2],x=i[5],S=i[8];return r[0]=o*f+s*v+a*_,r[3]=o*m+s*b+a*x,r[6]=o*g+s*y+a*S,r[1]=l*f+c*v+u*_,r[4]=l*m+c*b+u*x,r[7]=l*g+c*y+u*S,r[2]=d*f+h*v+p*_,r[5]=d*m+h*b+p*x,r[8]=d*g+h*y+p*S,this}multiplyScalar(e){const t=this.elements;return t[0]*=e,t[3]*=e,t[6]*=e,t[1]*=e,t[4]*=e,t[7]*=e,t[2]*=e,t[5]*=e,t[8]*=e,this}determinant(){const e=this.elements,t=e[0],n=e[1],i=e[2],r=e[3],o=e[4],s=e[5],a=e[6],l=e[7],c=e[8];return t*o*c-t*s*l-n*r*c+n*s*a+i*r*l-i*o*a}invert(){const e=this.elements,t=e[0],n=e[1],i=e[2],r=e[3],o=e[4],s=e[5],a=e[6],l=e[7],c=e[8],u=c*o-s*l,d=s*a-c*r,h=l*r-o*a,p=t*u+n*d+i*h;if(0===p)return this.set(0,0,0,0,0,0,0,0,0);const f=1/p;return e[0]=u*f,e[1]=(i*l-c*n)*f,e[2]=(s*n-i*o)*f,e[3]=d*f,e[4]=(c*t-i*a)*f,e[5]=(i*r-s*t)*f,e[6]=h*f,e[7]=(n*a-l*t)*f,e[8]=(o*t-n*r)*f,this}transpose(){let e;const t=this.elements;return e=t[1],t[1]=t[3],t[3]=e,e=t[2],t[2]=t[6],t[6]=e,e=t[5],t[5]=t[7],t[7]=e,this}getNormalMatrix(e){return this.setFromMatrix4(e).invert().transpose()}transposeIntoArray(e){const t=this.elements;return e[0]=t[0],e[1]=t[3],e[2]=t[6],e[3]=t[1],e[4]=t[4],e[5]=t[7],e[6]=t[2],e[7]=t[5],e[8]=t[8],this}setUvTransform(e,t,n,i,r,o,s){const a=Math.cos(r),l=Math.sin(r);return this.set(n*a,n*l,-n*(a*o+l*s)+o+e,-i*l,i*a,-i*(-l*o+a*s)+s+t,0,0,1),this}scale(e,t){return this.premultiply(Zf.makeScale(e,t)),this}rotate(e){return this.premultiply(Zf.makeRotation(-e)),this}translate(e,t){return this.premultiply(Zf.makeTranslation(e,t)),this}makeTranslation(e,t){return e.isVector2?this.set(1,0,e.x,0,1,e.y,0,0,1):this.set(1,0,e,0,1,t,0,0,1),this}makeRotation(e){const t=Math.cos(e),n=Math.sin(e);return this.set(t,-n,0,n,t,0,0,0,1),this}makeScale(e,t){return this.set(e,0,0,0,t,0,0,0,1),this}equals(e){const t=this.elements,n=e.elements;for(let e=0;e<9;e++)if(t[e]!==n[e])return!1;return!0}fromArray(e,t=0){for(let n=0;n<9;n++)this.elements[n]=e[n+t];return this}toArray(e=[],t=0){const n=this.elements;return e[t]=n[0],e[t+1]=n[1],e[t+2]=n[2],e[t+3]=n[3],e[t+4]=n[4],e[t+5]=n[5],e[t+6]=n[6],e[t+7]=n[7],e[t+8]=n[8],e}clone(){return(new this.constructor).fromArray(this.elements)}}const Zf=new Ct;function g1(e){for(let t=e.length-1;t>=0;--t)if(e[t]>=65535)return!0;return!1}function Fd(e){return document.createElementNS("http://www.w3.org/1999/xhtml",e)}function vD(){const e=Fd("canvas");return e.style.display="block",e}const jg={};function Il(e){e in jg||(jg[e]=!0,console.warn(e))}function gD(e,t,n){return new Promise((function(i,r){setTimeout((function o(){switch(e.clientWaitSync(t,e.SYNC_FLUSH_COMMANDS_BIT,0)){case e.WAIT_FAILED:r();break;case e.TIMEOUT_EXPIRED:setTimeout(o,n);break;default:i()}}),n)}))}const Kg=(new Ct).set(.4123908,.3575843,.1804808,.212639,.7151687,.0721923,.0193308,.1191948,.9505322),Qg=(new Ct).set(3.2409699,-1.5373832,-.4986108,-.9692436,1.8759675,.0415551,.0556301,-.20397
77,1.0569715);function bD(){const e={enabled:!0,workingColorSpace:So,spaces:{},convert:function(e,t,n){return!1===this.enabled||t===n||!t||!n||(this.spaces[t].transfer===jt&&(e.r=Vr(e.r),e.g=Vr(e.g),e.b=Vr(e.b)),this.spaces[t].primaries!==this.spaces[n].primaries&&(e.applyMatrix3(this.spaces[t].toXYZ),e.applyMatrix3(this.spaces[n].fromXYZ)),this.spaces[n].transfer===jt&&(e.r=Ks(e.r),e.g=Ks(e.g),e.b=Ks(e.b))),e},workingToColorSpace:function(e,t){return this.convert(e,this.workingColorSpace,t)},colorSpaceToWorking:function(e,t){return this.convert(e,t,this.workingColorSpace)},getPrimaries:function(e){return this.spaces[e].primaries},getTransfer:function(e){return""===e?Od:this.spaces[e].transfer},getToneMappingMode:function(e){return this.spaces[e].outputColorSpaceConfig.toneMappingMode||"standard"},getLuminanceCoefficients:function(e,t=this.workingColorSpace){return e.fromArray(this.spaces[t].luminanceCoefficients)},define:function(e){Object.assign(this.spaces,e)},_getMatrix:function(e,t,n){return e.copy(this.spaces[t].toXYZ).multiply(this.spaces[n].fromXYZ)},_getDrawingBufferColorSpace:function(e){return this.spaces[e].outputColorSpaceConfig.drawingBufferColorSpace},_getUnpackColorSpace:function(e=this.workingColorSpace){return this.spaces[e].workingColorSpaceConfig.unpackColorSpace},fromWorkingColorSpace:function(t,n){return Il("THREE.ColorManagement: .fromWorkingColorSpace() has been renamed to .workingToColorSpace()."),e.workingToColorSpace(t,n)},toWorkingColorSpace:function(t,n){return Il("THREE.ColorManagement: .toWorkingColorSpace() has been renamed to .colorSpaceToWorking()."),e.colorSpaceToWorking(t,n)}},t=[.64,.33,.3,.6,.15,.06],n=[.2126,.7152,.0722],i=[.3127,.329];return e.define({[So]:{primaries:t,whitePoint:i,transfer:Od,toXYZ:Kg,fromXYZ:Qg,luminanceCoefficients:n,workingColorSpaceConfig:{unpackColorSpace:fn},outputColorSpaceConfig:{drawingBufferColorSpace:fn}},[fn]:{primaries:t,whitePoint:i,transfer:jt,toXYZ:Kg,fromXYZ:Qg,luminanceCoefficients:n,outputColorSpaceConfig:{drawingBufferColorSpace:fn}}}),e}const Ht=bD();function Vr(e){return e<.04045?.0773993808*e:Math.pow(.9478672986*e+.0521327014,2.4)}function Ks(e){return e<.0031308?12.92*e:1.055*Math.pow(e,.41666)-.055}let xs;class _D{static getDataURL(e,t="image/png"){if(/^data:/i.test(e.src)||typeof HTMLCanvasElement>"u")return e.src;let n;if(e instanceof HTMLCanvasElement)n=e;else{void 0===xs&&(xs=Fd("canvas")),xs.width=e.width,xs.height=e.height;const t=xs.getContext("2d");e instanceof ImageData?t.putImageData(e,0,0):t.drawImage(e,0,0,e.width,e.height),n=xs}return n.toDataURL(t)}static sRGBToLinear(e){if(typeof HTMLImageElement<"u"&&e instanceof HTMLImageElement||typeof HTMLCanvasElement<"u"&&e instanceof HTMLCanvasElement||typeof ImageBitmap<"u"&&e instanceof ImageBitmap){const t=Fd("canvas");t.width=e.width,t.height=e.height;const n=t.getContext("2d");n.drawImage(e,0,0,e.width,e.height);const i=n.getImageData(0,0,e.width,e.height),r=i.data;for(let e=0;e<r.length;e++)r[e]=255*Vr(r[e]/255);return n.putImageData(i,0,0),t}if(e.data){const t=e.data.slice(0);for(let e=0;e<t.length;e++)t instanceof Uint8Array||t instanceof Uint8ClampedArray?t[e]=Math.floor(255*Vr(t[e]/255)):t[e]=Vr(t[e]);return{data:t,width:e.width,height:e.height}}return console.warn("THREE.ImageUtils.sRGBToLinear(): Unsupported image type. No color space conversion applied."),e}}let yD=0;class bv{constructor(e=null){this.isSource=!0,Object.defineProperty(this,"id",{value:yD++}),this.uuid=Da(),this.data=e,this.dataReady=!0,this.version=0}getSize(e){const t=this.data;return typeof HTMLVideoElement<"u"&&t instanceof HTMLVideoElement?e.set(t.videoWidth,t.videoHeight,0):t instanceof VideoFrame?e.set(t.displayHeight,t.displayWidth,0):null!==t?e.set(t.width,t.height,t.depth||0):e.set(0,0,0),e}set needsUpdate(e){!0===e&&this.version++}toJSON(e){const t=void 0===e||"string"==typeof e;if(!t&&void 0!==e.images[this.uuid])return e.images[this.uuid];const n={uuid:this.uuid,url:""},i=this.data;if(null!==i){let e;if(Array.isArray(i)){e=[];for(let t=0,n=i.length;t<n;t++)i[t].isDataTexture?e.push(Jf(i[t].image)):e.push(Jf(i[t]))}else e=Jf(i);n.url=e}return t||(e.images[this.uuid]=n),n}}function Jf(e){return typeof HTMLImageElement<"u"&&e instanceof HTMLImageElement||typeof HTMLCanvasElement<"u"&&e instanceof HTMLCanvasElement||typeof ImageBitmap<"u"&&e instanceof ImageBitmap?_D.getDataURL(e):e.data?{data:Array.from(e.data),width:e.width,height:e.height,type:e.data.constructor.name}:(console.warn("THREE.Texture: Unable to serialize Texture."),{})}let xD=0;const eh=new k;class Un extends Mo{constructor(e=Un.DEFAULT_IMAGE,t=Un.DEFAULT_MAPPING,n=Ur,i=Ur,r=zn,o=Go,s=Di,a=si,l=Un.DEFAULT_ANISOTROPY,c=""){super(),this.isTexture=!0,Object.defineProperty(this,"id",{value:xD++}),this.uuid=Da(),this.name="",this.source=new bv(e),this.mipmaps=[],this.mapping=t,this.channel=0,this.wrapS=n,this.wrapT=i,this.magFilter=r,this.minFilter=o,this.anisotropy=l,this.format=s,this.internalFormat=null,this.type=a,this.offset=new tt(0,0),this.repeat=new tt(1,1),this.center=new tt(0,0),this.rotation=0,this.matrixAutoUpdate=!0,this.matrix=new Ct,this.generateMipmaps=!0,this.premultiplyAlpha=!1,this.flipY=!0,this.unpackAlignment=4,this.colorSpace
vendor: 4,757 bytes, line 7
7=c,this.userData={},this.updateRanges=[],this.version=0,this.onUpdate=null,this.renderTarget=null,this.isRenderTargetTexture=!1,this.isArrayTexture=!!(e&&e.depth&&e.depth>1),this.pmremVersion=0}get width(){return this.source.getSize(eh).x}get height(){return this.source.getSize(eh).y}get depth(){return this.source.getSize(eh).z}get image(){return this.source.data}set image(e=null){this.source.data=e}updateMatrix(){this.matrix.setUvTransform(this.offset.x,this.offset.y,this.repeat.x,this.repeat.y,this.rotation,this.center.x,this.center.y)}addUpdateRange(e,t){this.updateRanges.push({start:e,count:t})}clearUpdateRanges(){this.updateRanges.length=0}clone(){return(new this.constructor).copy(this)}copy(e){return this.name=e.name,this.source=e.source,this.mipmaps=e.mipmaps.slice(0),this.mapping=e.mapping,this.channel=e.channel,this.wrapS=e.wrapS,this.wrapT=e.wrapT,this.magFilter=e.magFilter,this.minFilter=e.minFilter,this.anisotropy=e.anisotropy,this.format=e.format,this.internalFormat=e.internalFormat,this.type=e.type,this.offset.copy(e.offset),this.repeat.copy(e.repeat),this.center.copy(e.center),this.rotation=e.rotation,this.matrixAutoUpdate=e.matrixAutoUpdate,this.matrix.copy(e.matrix),this.generateMipmaps=e.generateMipmaps,this.premultiplyAlpha=e.premultiplyAlpha,this.flipY=e.flipY,this.unpackAlignment=e.unpackAlignment,this.colorSpace=e.colorSpace,this.renderTarget=e.renderTarget,this.isRenderTargetTexture=e.isRenderTargetTexture,this.isArrayTexture=e.isArrayTexture,this.userData=JSON.parse(JSON.stringify(e.userData)),this.needsUpdate=!0,this}setValues(e){for(const t in e){const n=e[t];if(void 0===n){console.warn(`THREE.Texture.setValues(): parameter '${t}' has value of undefined.`);continue}const i=this[t];void 0!==i?i&&n&&i.isVector2&&n.isVector2||i&&n&&i.isVector3&&n.isVector3||i&&n&&i.isMatrix3&&n.isMatrix3?i.copy(n):this[t]=n:console.warn(`THREE.Texture.setValues(): property '${t}' does not exist.`)}}toJSON(e){const t=void 0===e||"string"==typeof e;if(!t&&void 0!==e.textures[this.uuid])return e.textures[this.uuid];const n={metadata:{version:4.7,type:"Texture",generator:"Texture.toJSON"},uuid:this.uuid,name:this.name,image:this.source.toJSON(e).uuid,mapping:this.mapping,channel:this.channel,repeat:[this.repeat.x,this.repeat.y],offset:[this.offset.x,this.offset.y],center:[this.center.x,this.center.y],rotation:this.rotation,wrap:[this.wrapS,this.wrapT],format:this.format,internalFormat:this.internalFormat,type:this.type,colorSpace:this.colorSpace,minFilter:this.minFilter,magFilter:this.magFilter,anisotropy:this.anisotropy,flipY:this.flipY,generateMipmaps:this.generateMipmaps,premultiplyAlpha:this.premultiplyAlpha,unpackAlignment:this.unpackAlignment};return Object.keys(this.userData).length>0&&(n.userData=this.userData),t||(e.textures[this.uuid]=n),n}dispose(){this.dispatchEvent({type:"dispose"})}transformUv(e){if(this.mapping!==s1)return e;if(e.applyMatrix3(this.matrix),e.x<0||e.x>1)switch(this.wrapS){case Tp:e.x=e.x-Math.floor(e.x);break;case Ur:e.x=e.x<0?0:1;break;case Ap:1===Math.abs(Math.floor(e.x)%2)?e.x=Math.ceil(e.x)-e.x:e.x=e.x-Math.floor(e.x)}if(e.y<0||e.y>1)switch(this.wrapT){case Tp:e.y=e.y-Math.floor(e.y);break;case Ur:e.y=e.y<0?0:1;break;case Ap:1===Math.abs(Math.floor(e.y)%2)?e.y=Math.ceil(e.y)-e.y:e.y=e.y-Math.floor(e.y)}return this.flipY&&(e.y=1-e.y),e}set needsUpdate(e){!0===e&&(this.version++,this.source.needsUpdate=!0)}set needsPMREMUpdate(e){!0===e&&this.pmremVersion++}}Un.DEFAULT_IMAGE=null,Un.DEFAULT_MAPPING=s1,Un.DEFAULT_ANISOTROPY=1;class Qt{constructor(e=0,t=0,n=0,i=1){Qt.prototype.isVector4=!0,this.x=e,this.y=t,this.z=n,this.w=i}get width(){return this.z}set width(e){this.z=e}get height(){return this.w}set height(e){this.w=e}set(e,t,n,i){return this.x=e,this.y=t,this.z=n,this.w=i,this}setScalar(e){return this.x=e,this.y=e,this.z=e,this.w=e,this}setX(e){return this.x=e,this}setY(e){return this.y=e,this}setZ(e){return this.z=e,this}setW(e){return this.w=e,this}setComponent(e,t){switch(e){case 0:this.x=t;break;case 1:this.y=t;break;case 2:this.z=t;break;case 3:this.w=t;break;default:throw new Error("index is out of range: "+e)}return this}getComponent(e){switch(e){case 0:return this.x;case 1:return this.y;case 2:return this.z;case 3:return this.w;default:throw new Error("index is out of range: "+e)}}clone(){return new this.constructor(this.x,this.y,this.z,this.w)}copy(e){return this.x=e.x,this.y=e.y,this.z=e.z,this.w=void 0!==e.w?e.w:1,this}add(e){return this.x+=e.x,this.y+=e.y,this.z+=e.z,this.w+=e.w,this}addScalar(e){return this.x+=e,this.y+=e,this.z+=e,this.w+=e,this}addVectors(e,t){return this.x=e.x+t.x,this.y=e.y+t.y,this.z=e.z+t.z,this.w=e.w+t.w,this}addScaledVector(e,t){return this.x+=e.x*t,this.y+=e.y*t,this.z+=e.z*t,this.w+=e.w*t,this}
vendor: 4,575 bytes, line 7
7sub(e){return this.x-=e.x,this.y-=e.y,this.z-=e.z,this.w-=e.w,this}subScalar(e){return this.x-=e,this.y-=e,this.z-=e,this.w-=e,this}subVectors(e,t){return this.x=e.x-t.x,this.y=e.y-t.y,this.z=e.z-t.z,this.w=e.w-t.w,this}multiply(e){return this.x*=e.x,this.y*=e.y,this.z*=e.z,this.w*=e.w,this}multiplyScalar(e){return this.x*=e,this.y*=e,this.z*=e,this.w*=e,this}applyMatrix4(e){const t=this.x,n=this.y,i=this.z,r=this.w,o=e.elements;return this.x=o[0]*t+o[4]*n+o[8]*i+o[12]*r,this.y=o[1]*t+o[5]*n+o[9]*i+o[13]*r,this.z=o[2]*t+o[6]*n+o[10]*i+o[14]*r,this.w=o[3]*t+o[7]*n+o[11]*i+o[15]*r,this}divide(e){return this.x/=e.x,this.y/=e.y,this.z/=e.z,this.w/=e.w,this}divideScalar(e){return this.multiplyScalar(1/e)}setAxisAngleFromQuaternion(e){this.w=2*Math.acos(e.w);const t=Math.sqrt(1-e.w*e.w);return t<1e-4?(this.x=1,this.y=0,this.z=0):(this.x=e.x/t,this.y=e.y/t,this.z=e.z/t),this}setAxisAngleFromRotationMatrix(e){let t,n,i,r;const o=e.elements,s=o[0],a=o[4],l=o[8],c=o[1],u=o[5],d=o[9],h=o[2],p=o[6],f=o[10];if(Math.abs(a-c)<.01&&Math.abs(l-h)<.01&&Math.abs(d-p)<.01){if(Math.abs(a+c)<.1&&Math.abs(l+h)<.1&&Math.abs(d+p)<.1&&Math.abs(s+u+f-3)<.1)return this.set(1,0,0,0),this;t=Math.PI;const e=(s+1)/2,o=(u+1)/2,m=(f+1)/2,g=(a+c)/4,v=(l+h)/4,b=(d+p)/4;return e>o&&e>m?e<.01?(n=0,i=.707106781,r=.707106781):(n=Math.sqrt(e),i=g/n,r=v/n):o>m?o<.01?(n=.707106781,i=0,r=.707106781):(i=Math.sqrt(o),n=g/i,r=b/i):m<.01?(n=.707106781,i=.707106781,r=0):(r=Math.sqrt(m),n=v/r,i=b/r),this.set(n,i,r,t),this}let m=Math.sqrt((p-d)*(p-d)+(l-h)*(l-h)+(c-a)*(c-a));return Math.abs(m)<.001&&(m=1),this.x=(p-d)/m,this.y=(l-h)/m,this.z=(c-a)/m,this.w=Math.acos((s+u+f-1)/2),this}setFromMatrixPosition(e){const t=e.elements;return this.x=t[12],this.y=t[13],this.z=t[14],this.w=t[15],this}min(e){return this.x=Math.min(this.x,e.x),this.y=Math.min(this.y,e.y),this.z=Math.min(this.z,e.z),this.w=Math.min(this.w,e.w),this}max(e){return this.x=Math.max(this.x,e.x),this.y=Math.max(this.y,e.y),this.z=Math.max(this.z,e.z),this.w=Math.max(this.w,e.w),this}clamp(e,t){return this.x=It(this.x,e.x,t.x),this.y=It(this.y,e.y,t.y),this.z=It(this.z,e.z,t.z),this.w=It(this.w,e.w,t.w),this}clampScalar(e,t){return this.x=It(this.x,e,t),this.y=It(this.y,e,t),this.z=It(this.z,e,t),this.w=It(this.w,e,t),this}clampLength(e,t){const n=this.length();return this.divideScalar(n||1).multiplyScalar(It(n,e,t))}floor(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this.z=Math.floor(this.z),this.w=Math.floor(this.w),this}ceil(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this.z=Math.ceil(this.z),this.w=Math.ceil(this.w),this}round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this.z=Math.round(this.z),this.w=Math.round(this.w),this}roundToZero(){return this.x=Math.trunc(this.x),this.y=Math.trunc(this.y),this.z=Math.trunc(this.z),this.w=Math.trunc(this.w),this}negate(){return this.x=-this.x,this.y=-this.y,this.z=-this.z,this.w=-this.w,this}dot(e){return this.x*e.x+this.y*e.y+this.z*e.z+this.w*e.w}lengthSq(){return this.x*this.x+this.y*this.y+this.z*this.z+this.w*this.w}length(){return Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z+this.w*this.w)}manhattanLength(){return Math.abs(this.x)+Math.abs(this.y)+Math.abs(this.z)+Math.abs(this.w)}normalize(){return this.divideScalar(this.length()||1)}setLength(e){return this.normalize().multiplyScalar(e)}lerp(e,t){return this.x+=(e.x-this.x)*t,this.y+=(e.y-this.y)*t,this.z+=(e.z-this.z)*t,this.w+=(e.w-this.w)*t,this}lerpVectors(e,t,n){return this.x=e.x+(t.x-e.x)*n,this.y=e.y+(t.y-e.y)*n,this.z=e.z+(t.z-e.z)*n,this.w=e.w+(t.w-e.w)*n,this}equals(e){return e.x===this.x&&e.y===this.y&&e.z===this.z&&e.w===this.w}fromArray(e,t=0){return this.x=e[t],this.y=e[t+1],this.z=e[t+2],this.w=e[t+3],this}toArray(e=[],t=0){return e[t]=this.x,e[t+1]=this.y,e[t+2]=this.z,e[t+3]=this.w,e}fromBufferAttribute(e,t){return this.x=e.getX(t),this.y=e.getY(t),this.z=e.getZ(t),this.w=e.getW(t),this}random(){return this.x=Math.random(),this.y=Math.random(),this.z=Math.random(),this.w=Math.random(),this}*[Symbol.iterator](){yield this.x,yield this.y,yield this.z,yield this.w}}class SD extends Mo{constructor(e=1,t=1,n={}){super(),n=Object.assign({generateMipmaps:!1,internalFormat:null,minFilter:zn,depthBuffer:!0,stencilBuffer:!1,resolveDepthBuffer:!0,resolveStencilBuffer:!0,depthTexture:null,samples:0,count:1,depth:1,multiview:!1},n),this.isRenderTarget=!0,this.width=e,this.height=t,this.depth=n.depth,this.scissor=new Qt(0,0,e,t),this.scissorTest=!1,this.viewport=new Qt(0,0,e,t);const i={width:e,height:t,depth:n.depth}
vendor: 5,185 bytes, line 7
7,r=new Un(i);this.textures=[];const o=n.count;for(let e=0;e<o;e++)this.textures[e]=r.clone(),this.textures[e].isRenderTargetTexture=!0,this.textures[e].renderTarget=this;this._setTextureOptions(n),this.depthBuffer=n.depthBuffer,this.stencilBuffer=n.stencilBuffer,this.resolveDepthBuffer=n.resolveDepthBuffer,this.resolveStencilBuffer=n.resolveStencilBuffer,this._depthTexture=null,this.depthTexture=n.depthTexture,this.samples=n.samples,this.multiview=n.multiview}_setTextureOptions(e={}){const t={minFilter:zn,generateMipmaps:!1,flipY:!1,internalFormat:null};void 0!==e.mapping&&(t.mapping=e.mapping),void 0!==e.wrapS&&(t.wrapS=e.wrapS),void 0!==e.wrapT&&(t.wrapT=e.wrapT),void 0!==e.wrapR&&(t.wrapR=e.wrapR),void 0!==e.magFilter&&(t.magFilter=e.magFilter),void 0!==e.minFilter&&(t.minFilter=e.minFilter),void 0!==e.format&&(t.format=e.format),void 0!==e.type&&(t.type=e.type),void 0!==e.anisotropy&&(t.anisotropy=e.anisotropy),void 0!==e.colorSpace&&(t.colorSpace=e.colorSpace),void 0!==e.flipY&&(t.flipY=e.flipY),void 0!==e.generateMipmaps&&(t.generateMipmaps=e.generateMipmaps),void 0!==e.internalFormat&&(t.internalFormat=e.internalFormat);for(let e=0;e<this.textures.length;e++)this.textures[e].setValues(t)}get texture(){return this.textures[0]}set texture(e){this.textures[0]=e}set depthTexture(e){null!==this._depthTexture&&(this._depthTexture.renderTarget=null),null!==e&&(e.renderTarget=this),this._depthTexture=e}get depthTexture(){return this._depthTexture}setSize(e,t,n=1){if(this.width!==e||this.height!==t||this.depth!==n){this.width=e,this.height=t,this.depth=n;for(let i=0,r=this.textures.length;i<r;i++)this.textures[i].image.width=e,this.textures[i].image.height=t,this.textures[i].image.depth=n,this.textures[i].isArrayTexture=this.textures[i].image.depth>1;this.dispose()}this.viewport.set(0,0,e,t),this.scissor.set(0,0,e,t)}clone(){return(new this.constructor).copy(this)}copy(e){this.width=e.width,this.height=e.height,this.depth=e.depth,this.scissor.copy(e.scissor),this.scissorTest=e.scissorTest,this.viewport.copy(e.viewport),this.textures.length=0;for(let t=0,n=e.textures.length;t<n;t++){this.textures[t]=e.textures[t].clone(),this.textures[t].isRenderTargetTexture=!0,this.textures[t].renderTarget=this;const n=Object.assign({},e.textures[t].image);this.textures[t].source=new bv(n)}return this.depthBuffer=e.depthBuffer,this.stencilBuffer=e.stencilBuffer,this.resolveDepthBuffer=e.resolveDepthBuffer,this.resolveStencilBuffer=e.resolveStencilBuffer,null!==e.depthTexture&&(this.depthTexture=e.depthTexture.clone()),this.samples=e.samples,this}dispose(){this.dispatchEvent({type:"dispose"})}}class ji extends SD{constructor(e=1,t=1,n={}){super(e,t,n),this.isWebGLRenderTarget=!0}}class b1 extends Un{constructor(e=null,t=1,n=1,i=1){super(null),this.isDataArrayTexture=!0,this.image={data:e,width:t,height:n,depth:i},this.magFilter=_i,this.minFilter=_i,this.wrapR=Ur,this.generateMipmaps=!1,this.flipY=!1,this.unpackAlignment=1,this.layerUpdates=new Set}addLayerUpdate(e){this.layerUpdates.add(e)}clearLayerUpdates(){this.layerUpdates.clear()}}class ED extends Un{constructor(e=null,t=1,n=1,i=1){super(null),this.isData3DTexture=!0,this.image={data:e,width:t,height:n,depth:i},this.magFilter=_i,this.minFilter=_i,this.wrapR=Ur,this.generateMipmaps=!1,this.flipY=!1,this.unpackAlignment=1}}class To{constructor(e=new k(1/0,1/0,1/0),t=new k(-1/0,-1/0,-1/0)){this.isBox3=!0,this.min=e,this.max=t}set(e,t){return this.min.copy(e),this.max.copy(t),this}setFromArray(e){this.makeEmpty();for(let t=0,n=e.length;t<n;t+=3)this.expandByPoint(Bi.fromArray(e,t));return this}setFromBufferAttribute(e){this.makeEmpty();for(let t=0,n=e.count;t<n;t++)this.expandByPoint(Bi.fromBufferAttribute(e,t));return this}setFromPoints(e){this.makeEmpty();for(let t=0,n=e.length;t<n;t++)this.expandByPoint(e[t]);return this}setFromCenterAndSize(e,t){const n=Bi.copy(t).multiplyScalar(.5);return this.min.copy(e).sub(n),this.max.copy(e).add(n),this}setFromObject(e,t=!1){return this.makeEmpty(),this.expandByObject(e,t)}clone(){return(new this.constructor).copy(this)}copy(e){return this.min.copy(e.min),this.max.copy(e.max),this}makeEmpty(){return this.min.x=this.min.y=this.min.z=1/0,this.max.x=this.max.y=this.max.z=-1/0,this}isEmpty(){return this.max.x<this.min.x||this.max.y<this.min.y||this.max.z<this.min.z}getCenter(e){return this.isEmpty()?e.set(0,0,0):e.addVectors(this.min,this.max).multiplyScalar(.5)}getSize(e){return this.isEmpty()?e.set(0,0,0):e.subVectors(this.max,this.min)}expandByPoint(e){return this.min.min(e),this.max.max(e),this}expandByVector(e){return this.min.sub(e),this.max.add(e),this}expandByScalar(e){return this.min.addScalar(-e),this.max.addScalar(e),this}expandByObject(e,t=!1){e.updateWorldMatrix(!1,!1);const n=e.geometry;if(void 0!==n){const i=n.getAttribute("position");if(!0===t&&void 0!==i&&!0!==e.isInstancedMesh)for(let t=0,n=i.count;t<n;t++)!0===e.isMesh?e.getVertexPosition(t,Bi):Bi.fromBufferAttribute(i,t),Bi.applyMatrix4(e.matrixWorld),this.expandByPoint(Bi);else void 0!==e.boundingBox?(null===e.boundingBox&&e.computeBoundingBox(),Lu.copy(e.boundingBox)):(null===n.boundingBox&&n.computeBoundingBox(),Lu.copy(n.boundingBox)),Lu.applyM
vendor: 4,551 bytes, line 7
7atrix4(e.matrixWorld),this.union(Lu)}const i=e.children;for(let e=0,n=i.length;e<n;e++)this.expandByObject(i[e],t);return this}containsPoint(e){return e.x>=this.min.x&&e.x<=this.max.x&&e.y>=this.min.y&&e.y<=this.max.y&&e.z>=this.min.z&&e.z<=this.max.z}containsBox(e){return this.min.x<=e.min.x&&e.max.x<=this.max.x&&this.min.y<=e.min.y&&e.max.y<=this.max.y&&this.min.z<=e.min.z&&e.max.z<=this.max.z}getParameter(e,t){return t.set((e.x-this.min.x)/(this.max.x-this.min.x),(e.y-this.min.y)/(this.max.y-this.min.y),(e.z-this.min.z)/(this.max.z-this.min.z))}intersectsBox(e){return e.max.x>=this.min.x&&e.min.x<=this.max.x&&e.max.y>=this.min.y&&e.min.y<=this.max.y&&e.max.z>=this.min.z&&e.min.z<=this.max.z}intersectsSphere(e){return this.clampPoint(e.center,Bi),Bi.distanceToSquared(e.center)<=e.radius*e.radius}intersectsPlane(e){let t,n;return e.normal.x>0?(t=e.normal.x*this.min.x,n=e.normal.x*this.max.x):(t=e.normal.x*this.max.x,n=e.normal.x*this.min.x),e.normal.y>0?(t+=e.normal.y*this.min.y,n+=e.normal.y*this.max.y):(t+=e.normal.y*this.max.y,n+=e.normal.y*this.min.y),e.normal.z>0?(t+=e.normal.z*this.min.z,n+=e.normal.z*this.max.z):(t+=e.normal.z*this.max.z,n+=e.normal.z*this.min.z),t<=-e.constant&&n>=-e.constant}intersectsTriangle(e){if(this.isEmpty())return!1;this.getCenter($a),Du.subVectors(this.max,$a),Ss.subVectors(e.a,$a),Es.subVectors(e.b,$a),ws.subVectors(e.c,$a),Kr.subVectors(Es,Ss),Qr.subVectors(ws,Es),Do.subVectors(Ss,ws);let t=[0,-Kr.z,Kr.y,0,-Qr.z,Qr.y,0,-Do.z,Do.y,Kr.z,0,-Kr.x,Qr.z,0,-Qr.x,Do.z,0,-Do.x,-Kr.y,Kr.x,0,-Qr.y,Qr.x,0,-Do.y,Do.x,0];return!(!th(t,Ss,Es,ws,Du)||(t=[1,0,0,0,1,0,0,0,1],!th(t,Ss,Es,ws,Du)))&&(Iu.crossVectors(Kr,Qr),t=[Iu.x,Iu.y,Iu.z],th(t,Ss,Es,ws,Du))}clampPoint(e,t){return t.copy(e).clamp(this.min,this.max)}distanceToPoint(e){return this.clampPoint(e,Bi).distanceTo(e)}getBoundingSphere(e){return this.isEmpty()?e.makeEmpty():(this.getCenter(e.center),e.radius=.5*this.getSize(Bi).length()),e}intersect(e){return this.min.max(e.min),this.max.min(e.max),this.isEmpty()&&this.makeEmpty(),this}union(e){return this.min.min(e.min),this.max.max(e.max),this}applyMatrix4(e){return this.isEmpty()||(wr[0].set(this.min.x,this.min.y,this.min.z).applyMatrix4(e),wr[1].set(this.min.x,this.min.y,this.max.z).applyMatrix4(e),wr[2].set(this.min.x,this.max.y,this.min.z).applyMatrix4(e),wr[3].set(this.min.x,this.max.y,this.max.z).applyMatrix4(e),wr[4].set(this.max.x,this.min.y,this.min.z).applyMatrix4(e),wr[5].set(this.max.x,this.min.y,this.max.z).applyMatrix4(e),wr[6].set(this.max.x,this.max.y,this.min.z).applyMatrix4(e),wr[7].set(this.max.x,this.max.y,this.max.z).applyMatrix4(e),this.setFromPoints(wr)),this}translate(e){return this.min.add(e),this.max.add(e),this}equals(e){return e.min.equals(this.min)&&e.max.equals(this.max)}toJSON(){return{min:this.min.toArray(),max:this.max.toArray()}}fromJSON(e){return this.min.fromArray(e.min),this.max.fromArray(e.max),this}}const wr=[new k,new k,new k,new k,new k,new k,new k,new k],Bi=new k,Lu=new To,Ss=new k,Es=new k,ws=new k,Kr=new k,Qr=new k,Do=new k,$a=new k,Du=new k,Iu=new k,Io=new k;function th(e,t,n,i,r){for(let o=0,s=e.length-3;o<=s;o+=3){Io.fromArray(e,o);const s=r.x*Math.abs(Io.x)+r.y*Math.abs(Io.y)+r.z*Math.abs(Io.z),a=t.dot(Io),l=n.dot(Io),c=i.dot(Io);if(Math.max(-Math.max(a,l,c),Math.min(a,l,c))>s)return!1}return!0}const wD=new To,Ga=new k,nh=new k;class _v{constructor(e=new k,t=-1){this.isSphere=!0,this.center=e,this.radius=t}set(e,t){return this.center.copy(e),this.radius=t,this}setFromPoints(e,t){const n=this.center;void 0!==t?n.copy(t):wD.setFromPoints(e).getCenter(n);let i=0;for(let t=0,r=e.length;t<r;t++)i=Math.max(i,n.distanceToSquared(e[t]));return this.radius=Math.sqrt(i),this}copy(e){return this.center.copy(e.center),this.radius=e.radius,this}isEmpty(){return this.radius<0}makeEmpty(){return this.center.set(0,0,0),this.radius=-1,this}containsPoint(e){return e.distanceToSquared(this.center)<=this.radius*this.radius}distanceToPoint(e){return e.distanceTo(this.center)-this.radius}intersectsSphere(e){const t=this.radius+e.radius;return e.center.distanceToSquared(this.center)<=t*t}intersectsBox(e){return e.intersectsSphere(this)}intersectsPlane(e){return Math.abs(e.distanceToPoint(this.center))<=this.radius}clampPoint(e,t){const n=this.center.distanceToSquared(e);return t.copy(e),n>this.radius*this.radius&&(t.sub(this.center).normalize(),t.multiplyScalar(this.radius).add(this.center)),t}getBoundingBox(e){return this.isEmpty()?(e.makeEmpty(),e):(e.set(this.center,this.center),e.expandByScalar(this.radius),e)}
vendor: 12,471 bytes, line 7
7applyMatrix4(e){return this.center.applyMatrix4(e),this.radius=this.radius*e.getMaxScaleOnAxis(),this}translate(e){return this.center.add(e),this}expandByPoint(e){if(this.isEmpty())return this.center.copy(e),this.radius=0,this;Ga.subVectors(e,this.center);const t=Ga.lengthSq();if(t>this.radius*this.radius){const e=Math.sqrt(t),n=.5*(e-this.radius);this.center.addScaledVector(Ga,n/e),this.radius+=n}return this}union(e){return e.isEmpty()?this:this.isEmpty()?(this.copy(e),this):(!0===this.center.equals(e.center)?this.radius=Math.max(this.radius,e.radius):(nh.subVectors(e.center,this.center).setLength(e.radius),this.expandByPoint(Ga.copy(e.center).add(nh)),this.expandByPoint(Ga.copy(e.center).sub(nh))),this)}equals(e){return e.center.equals(this.center)&&e.radius===this.radius}clone(){return(new this.constructor).copy(this)}toJSON(){return{radius:this.radius,center:this.center.toArray()}}fromJSON(e){return this.radius=e.radius,this.center.fromArray(e.center),this}}const Mr=new k,ih=new k,Nu=new k,Zr=new k,rh=new k,Ou=new k,oh=new k;class MD{constructor(e=new k,t=new k(0,0,-1)){this.origin=e,this.direction=t}set(e,t){return this.origin.copy(e),this.direction.copy(t),this}copy(e){return this.origin.copy(e.origin),this.direction.copy(e.direction),this}at(e,t){return t.copy(this.origin).addScaledVector(this.direction,e)}lookAt(e){return this.direction.copy(e).sub(this.origin).normalize(),this}recast(e){return this.origin.copy(this.at(e,Mr)),this}closestPointToPoint(e,t){t.subVectors(e,this.origin);const n=t.dot(this.direction);return n<0?t.copy(this.origin):t.copy(this.origin).addScaledVector(this.direction,n)}distanceToPoint(e){return Math.sqrt(this.distanceSqToPoint(e))}distanceSqToPoint(e){const t=Mr.subVectors(e,this.origin).dot(this.direction);return t<0?this.origin.distanceToSquared(e):(Mr.copy(this.origin).addScaledVector(this.direction,t),Mr.distanceToSquared(e))}distanceSqToSegment(e,t,n,i){ih.copy(e).add(t).multiplyScalar(.5),Nu.copy(t).sub(e).normalize(),Zr.copy(this.origin).sub(ih);const r=.5*e.distanceTo(t),o=-this.direction.dot(Nu),s=Zr.dot(this.direction),a=-Zr.dot(Nu),l=Zr.lengthSq(),c=Math.abs(1-o*o);let u,d,h,p;if(c>0)if(u=o*a-s,d=o*s-a,p=r*c,u>=0)if(d>=-p)if(d<=p){const e=1/c;u*=e,d*=e,h=u*(u+o*d+2*s)+d*(o*u+d+2*a)+l}else d=r,u=Math.max(0,-(o*d+s)),h=-u*u+d*(d+2*a)+l;else d=-r,u=Math.max(0,-(o*d+s)),h=-u*u+d*(d+2*a)+l;else d<=-p?(u=Math.max(0,-(-o*r+s)),d=u>0?-r:Math.min(Math.max(-r,-a),r),h=-u*u+d*(d+2*a)+l):d<=p?(u=0,d=Math.min(Math.max(-r,-a),r),h=d*(d+2*a)+l):(u=Math.max(0,-(o*r+s)),d=u>0?r:Math.min(Math.max(-r,-a),r),h=-u*u+d*(d+2*a)+l);else d=o>0?-r:r,u=Math.max(0,-(o*d+s)),h=-u*u+d*(d+2*a)+l;return n&&n.copy(this.origin).addScaledVector(this.direction,u),i&&i.copy(ih).addScaledVector(Nu,d),h}intersectSphere(e,t){Mr.subVectors(e.center,this.origin);const n=Mr.dot(this.direction),i=Mr.dot(Mr)-n*n,r=e.radius*e.radius;if(i>r)return null;const o=Math.sqrt(r-i),s=n-o,a=n+o;return a<0?null:s<0?this.at(a,t):this.at(s,t)}intersectsSphere(e){return!(e.radius<0)&&this.distanceSqToPoint(e.center)<=e.radius*e.radius}distanceToPlane(e){const t=e.normal.dot(this.direction);if(0===t)return 0===e.distanceToPoint(this.origin)?0:null;const n=-(this.origin.dot(e.normal)+e.constant)/t;return n>=0?n:null}intersectPlane(e,t){const n=this.distanceToPlane(e);return null===n?null:this.at(n,t)}intersectsPlane(e){const t=e.distanceToPoint(this.origin);return 0===t||e.normal.dot(this.direction)*t<0}intersectBox(e,t){let n,i,r,o,s,a;const l=1/this.direction.x,c=1/this.direction.y,u=1/this.direction.z,d=this.origin;return l>=0?(n=(e.min.x-d.x)*l,i=(e.max.x-d.x)*l):(n=(e.max.x-d.x)*l,i=(e.min.x-d.x)*l),c>=0?(r=(e.min.y-d.y)*c,o=(e.max.y-d.y)*c):(r=(e.max.y-d.y)*c,o=(e.min.y-d.y)*c),n>o||r>i||((r>n||isNaN(n))&&(n=r),(o<i||isNaN(i))&&(i=o),u>=0?(s=(e.min.z-d.z)*u,a=(e.max.z-d.z)*u):(s=(e.max.z-d.z)*u,a=(e.min.z-d.z)*u),n>a||s>i)||((s>n||n!=n)&&(n=s),(a<i||i!=i)&&(i=a),i<0)?null:this.at(n>=0?n:i,t)}intersectsBox(e){return null!==this.intersectBox(e,Mr)}intersectTriangle(e,t,n,i,r){rh.subVectors(t,e),Ou.subVectors(n,e),oh.crossVectors(rh,Ou);let o,s=this.direction.dot(oh);if(s>0){if(i)return null;o=1}else{if(!(s<0))return null;o=-1,s=-s}Zr.subVectors(this.origin,e);const a=o*this.direction.dot(Ou.crossVectors(Zr,Ou));if(a<0)return null;const l=o*this.direction.dot(rh.cross(Zr));if(l<0||a+l>s)return null;const c=-o*Zr.dot(oh);return c<0?null:this.at(c/s,r)}applyMatrix4(e){return this.origin.applyMatrix4(e),this.direction.transformDirection(e),this}equals(e){return e.origin.equals(this.origin)&&e.direction.equals(this.direction)}clone(){return(new this.constructor).copy(this)}}class cn{constructor(e,t,n,i,r,o,s,a,l,c,u,d,h,p,f,m){cn.prototype.isMatrix4=!0,this.elements=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],void 0!==e&&this.set(e,t,n,i,r,o,s,a,l,c,u,d,h,p,f,m)}set(e,t,n,i,r,o,s,a,l,c,u,d,h,p,f,m){const g=this.elements;return g[0]=e,g[4]=t,g[8]=n,g[12]=i,g[1]=r,g[5]=o,g[9]=s,g[13]=a,g[2]=l,g[6]=c,g[10]=u,g[14]=d,g[3]=h,g[7]=p,g[11]=f,g[15]=m,this}identity(){return this.set(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1),this}clone(){return(new cn).fromArray(this.elements)}copy(e){const t=this.elements,n=e.elements;return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t[4]=n[4],t[5]=n[5],t[6]=n[6],t[7]=n[7],t[8]=n[8],t[9]=n[9],t[10]=n[10],t[11]=n[11],t[12]=n[12],t[13]=n[13],t[14]=n[14],t[15]=n[15],this}copyPosition(e){const t=this.elements,n=e.elements;return t[12]=n[12],t[13]=n[13],t[14]=n[14],this}setFromMatrix3(e){const t=e.elements;return this.set(t[0],t[3],t[6],0,t[1],t[4],t[7],0,t[2],t[5],t[8],0,0,0,0,1),this}extractBasis(e,t,n){return e.setFromMatrixColumn(this,0),t.setFromMatrixColumn(this,1),n.setFromMatrixColumn(this,2),this}makeBasis(e,t,n){return this.set(e.x,t.x,n.x,0,e.y,t.y,n.y,0,e.z,t.z,n.z,0,0,0,0,1),this}extractRotation(e){const t=this.elements,n=e.elements,i=1/Ms.setFromMatrixColumn(e,0).length(),r=1/Ms.setFromMatrixColumn(e,1).length(),o=1/Ms.setFromMatrixColumn(e,2).length();return t[0]=n[0]*i,t[1]=n[1]*i,t[2]=n[2]*i,t[3]=0,t[4]=n[4]*r,t[5]=n[5]*r,t[6]=n[6]*r,t[7]=0,t[8]=n[8]*o,t[9]=n[9]*o,t[10]=n[10]*o,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,this}makeRotationFromEuler(e){const t=this.elements,n=e.x,i=e.y,r=e.z,o=Math.cos(n),s=Math.sin(n),a=Math.cos(i),l=Math.sin(i),c=Math.cos(r),u=Math.sin(r);if("XYZ"===e.order){const e=o*c,n=o*u,i=s*c,r=s*u;t[0]=a*c,t[4]=-a*u,t[8]=l,t[1]=n+i*l,t[5]=e-r*l,t[9]=-s*a,t[2]=r-e*l,t[6]=i+n*l,t[10]=o*a}else if("YXZ"===e.order){const e=a*c,n=a*u,i=l*c,r=l*u;t[0]=e+r*s,t[4]=i*s-n,t[8]=o*l,t[1]=o*u,t[5]=o*c,t[9]=-s,t[2]=n*s-i,t[6]=r+e*s,t[10]=o*a}else if("ZXY"===e.order){const e=a*c,n=a*u,i=l*c,r=l*u;t[0]=e-r*s,t[4]=-o*u,t[8]=i+n*s,t[1]=n+i*s,t[5]=o*c,t[9]=r-e*s,t[2]=-o*l,t[6]=s,t[10]=o*a}else if("ZYX"===e.order){const e=o*c,n=o*u,i=s*c,r=s*u;t[0]=a*c,t[4]=i*l-n,t[8]=e*l+r,t[1]=a*u,t[5]=r*l+e,t[9]=n*l-i,t[2]=-l,t[6]=s*a,t[10]=o*a}else if("YZX"===e.order){const e=o*a,n=o*l,i=s*a,r=s*l;t[0]=a*c,t[4]=r-e*u,t[8]=i*u+n,t[1]=u,t[5]=o*c,t[9]=-s*c,t[2]=-l*c,t[6]=n*u+i,t[10]=e-r*u}else if("XZY"===e.order){const e=o*a,n=o*l,i=s*a,r=s*l;t[0]=a*c,t[4]=-u,t[8]=l*c,t[1]=e*u+r,t[5]=o*c,t[9]=n*u-i,t[2]=i*u-n,t[6]=s*c,t[10]=r*u+e}return t[3]=0,t[7]=0,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,this}makeRotationFromQuaternion(e){return this.compose(TD,e,AD)}lookAt(e,t,n){const i=this.elements;return di.subVectors(e,t),0===di.lengthSq()&&(di.z=1),di.normalize(),Jr.crossVectors(n,di),0===Jr.lengthSq()&&(1===Math.abs(n.z)?di.x+=1e-4:di.z+=1e-4,di.normalize(),Jr.crossVectors(n,di)),Jr.normalize(),Uu.crossVectors(di,Jr),i[0]=Jr.x,i[4]=Uu.x,i[8]=di.x,i[1]=Jr.y,i[5]=Uu.y,i[9]=di.y,i[2]=Jr.z,i[6]=Uu.z,i[10]=di.z,this}multiply(e){return this.multiplyMatrices(this,e)}premultiply(e){return this.multiplyMatrices(e,this)}multiplyMatrices(e,t){const n=e.elements,i=t.elements,r=this.elements,o=n[0],s=n[4],a=n[8],l=n[12],c=n[1],u=n[5],d=n[9],h=n[13],p=n[2],f=n[6],m=n[10],g=n[14],v=n[3],b=n[7],y=n[11],_=n[15],x=i[0],S=i[4],w=i[8],M=i[12],E=i[1],T=i[5],C=i[9],R=i[13],A=i[2],L=i[6],P=i[10],N=i[14],D=i[3],I=i[7],O=i[11],U=i[15];return r[0]=o*x+s*E+a*A+l*D,r[4]=o*S+s*T+a*L+l*I,r[8]=o*w+s*C+a*P+l*O,r[12]=o*M+s*R+a*N+l*U,r[1]=c*x+u*E+d*A+h*D,r[5]=c*S+u*T+d*L+h*I,r[9]=c*w+u*C+d*P+h*O,r[13]=c*M+u*R+d*N+h*U,r[2]=p*x+f*E+m*A+g*D,r[6]=p*S+f*T+m*L+g*I,r[10]=p*w+f*C+m*P+g*O,r[14]=p*M+f*R+m*N+g*U,r[3]=v*x+b*E+y*A+_*D,r[7]=v*S+b*T+y*L+_*I,r[11]=v*w+b*C+y*P+_*O,r[15]=v*M+b*R+y*N+_*U,this}multiplyScalar(e){const t=this.elements;return t[0]*=e,t[4]*=e,t[8]*=e,t[12]*=e,t[1]*=e,t[5]*=e,t[9]*=e,t[13]*=e,t[2]*=e,t[6]*=e,t[10]*=e,t[14]*=e,t[3]*=e,t[7]*=e,t[11]*=e,t[15]*=e,this}determinant(){const e=this.elements,t=e[0],n=e[4],i=e[8],r=e[12],o=e[1],s=e[5],a=e[9],l=e[13],c=e[2],u=e[6],d=e[10],h=e[14];return e[3]*(+r*a*u-i*l*u-r*s*d+n*l*d+i*s*h-n*a*h)+e[7]*(+t*a*h-t*l*d+r*o*d-i*o*h+i*l*c-r*a*c)+e[11]*(+t*l*u-t*s*h-r*o*u+n*o*h+r*s*c-n*l*c)+e[15]*(-i*s*c-t*a*u+t*s*d+i*o*u-n*o*d+n*a*c)}transpose(){const e=this.elements;let t;return t=e[1],e[1]=e[4],e[4]=t,t=e[2],e[2]=e[8],e[8]=t,t=e[6],e[6]=e[9],e[9]=t,t=e[3],e[3]=e[12],e[12]=t,t=e[7],e[7]=e[13],e[13]=t,t=e[11],e[11]=e[14],e[14]=t,this}setPosition(e,t,n){const i=this.elements;return e.isVector3?(i[12]=e.x,i[13]=e.y,i[14]=e.z):(i[12]=e,i[13]=t,i[14]=n),this}invert(){const e=this.elements,t=e[0],n=e[1],i=e[2],r=e[3],o=e[4],s=e[5],a=e[6],l=e[7],c=e[8],u=e[9],d=e[10],h=e[11],p=e[12],f=e[13],m=e[14],g=e[15],v=u*m*l-f*d*l+f*a*h-s*m*h-u*a*g+s*d*g,b=p*d*l-c*m*l-p*a*h+o*m*h+c*a*g-o*d*g,y=c*f*l-p*u*l+p*s*h-o*f*h-c*s*g+o*u*g,_=p*u*a-c*f*a-p*s*d+o*f*d+c*s*m-o*u*m,x=t*v+n*b+i*y+r*_;if(0===x)return this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0);const S=1/x;return e[0]=v*S,e[1]=(f*d*r-u*m*r-f*i*h+n*m*h+u*i*g-n*d*g)*S,e[2]=(s*m*r-f*a*r+f*i*l-n*m*l-s*i*g+n*a*g)*S,e[3]=(u*a*r-s*d*r-u*i*l+n*d*l+s*i*h-n*a*h)*S,e[4]=b*S,e[5]=(c*m*r-p*d*r+p*i*h-t*m*h-c*i*g+t*d*g)*S,e[6]=(p*a*r-o*m*r-p*i*l+t*m*l+o*i*g-t*a*g)*S,e[7]=(o*d*r-c*a*r+c*i*l-t*d*l-o*i*h+t*a*h)*S,e[8]=y*S,e[9]=(p*u*r-c*f*r-p*n*h+t*f*h+c*n*g-t*u*g)*S,e[10]=(o*f*r-p*s*r+p*n*l-t*f*l-o*n*g+t*s*g)*S,e[11]=(c*s*r-o*u*r-c*n*l+t*u*l+o*n*h-t*s*h)*S,e[12]=_*S,e[13]=(c*f*i-p*u*i+p*n*d-t*f*d-c*n*m+t*u*m)*S,e[14]=(p*s*i-o*f*i-p*n*a+t*f*a+o*n*m-t*s*m)*S,e[15]=(o*u*i-c*s*i+c*n*a-t*u*a-o*n*d+t*s*d)*S,this}scale(e){const t=this.elements,n=e.x,i=e.y,r=e.z;return t[0]*=n,t[4]*=i,t[8]*=r,t[1]*=n,t[5]*=i,t[9]*=r,t[2]*=n,t[6]*=i,t[10]*=r,t[3]*=n,t[7]*=i,t[11]*=r,this}getMaxScaleOnAxis(){const e=this.elements,t=e[0]*e[0]+e[1]*e[1]+e[2]*e[2],n=e[4]*e[4]+e[5]*e[5]+e[6]*e[6],i=e[8]*e[8]+e[9]*e[9]+e[10]*e[10];return Math.sqrt(Math.max(t,n,i))}makeTranslation(e,t,n){return e.isVector3?this.set(1,0,0,e.x,0,1,0,e.y,0,0,1,e.z,0,0,0,1):this.set(1,0,0,e,0,1,0,t,0,0,1,n,0,0,0,1),this}makeRotationX(e){const t=Math.cos(e),n=Math.sin(e);return this.set(1,0,0,0,0,t,-n,0,0,n,t,0,0,0,0,1),this}makeRotationY(e){const t=Math.cos(e),n=Math.sin(e);return this.set(t,0,n,0,0,1,0,0,-n,0,t,0,0,0,0,1),this}makeRotationZ(e){const t=Math.cos(e),n=Math.sin(e);return this.set(t,-n,0,0,n,t,0,0,0,0,1,0,0,0,0,1),this}makeRotationAxis(e,t){const n=Math.cos(t),i=Math.sin(t),r=1-n,o=e.x,s=e.y,a=e.z,l=r*o,c=r*s;return this.set(l*o+n,l*s-i*a,l*a+i*s,0,l*s+i*a,c*s+n,c*a-i*o,0,l*a-i*s,c*a+i*o,r*a*a+n,0,0,0,0,1),this}makeScale(e,t,n){return this.set(e,0,0,0,0,t,0,0,0,0,n,0,0,0,0,1),this}makeShear(e,t,n,i,r,o){return this.set(1,n,r,0,e,1,o,0,t,i,1,0,0,0,0,1),this}compose(e,t,n){const i=this.elements,r=t._x,o=t._y,s=t._z,a=t._w,l=r+r,c=o+o,u=s+s,d=r*l,h=r*c,p=r*u,f=o*c,m=o*u,g=s*u,v=a*l,b=a*c,y=a*u,_=n.x,x=n.y,S=n.z;return i[0]=(1-(f+g))*_,i[1]=(h+y)*_,i[2]=(p-b)*_,i[3]=0,i[4]=(h-y)*x,i[5]=(1-(d+g))*x,i[6]=(m+v)*x,i[7]=0,i[8]=(p+b)*S,i[9]=(m-v)*S,i[10]=(1-(d+f))*S,i[11]=0,i[12]=e.x,i[13]=e.y,i[14]=e.z,i[15]=1,this}decompose(e,t,n){const i=this.elements;let r=Ms.set(i[0],i[1],i[2]).length();const o=Ms.set(i[4],i[5],i[6]).length(),s=Ms.set(i[8],i[9],i[10]).length();this.determinant()<0&&(r=-r),e.x=i[12],e.y=i[13],e.z=i[14],ki.copy(this);const a=1/r,l=1/o,c=1/s;return ki.elements[0]*=a,ki.elements[1]*=a,ki.elements[2]*=a,ki.elements[4]*=l,ki.elements[5]*=l,ki.elements[6]*=l,ki.elements[8]*=c,ki.elements[9]*=c,ki.elements[10]*=c,t.setFromRotationMatrix(ki),n.x=r,n.y=o,n.z=s,this}makePerspective(e,t,n,i,r,o,s=cr,a=!1){const l=this.elements,c=2*r/(t-e),u=2*r/(n-i),d=(t+e)/(t-e),h=(n+i)/(n-i);let p,f;if(a)p=r/(o-r),f=o*r/(o-r);else if(s===cr)p=-(o+r)/(o-r),f=-2*o*r/(o-r);else{if(s!==Ud)throw new Error("THREE.Matrix4.makePerspective(): Invalid coordinate system: "+s);p=-o/(o-r),f=-o*r/(o-r)}
vendor: 5,689 bytes, line 7
7return l[0]=c,l[4]=0,l[8]=d,l[12]=0,l[1]=0,l[5]=u,l[9]=h,l[13]=0,l[2]=0,l[6]=0,l[10]=p,l[14]=f,l[3]=0,l[7]=0,l[11]=-1,l[15]=0,this}makeOrthographic(e,t,n,i,r,o,s=cr,a=!1){const l=this.elements,c=2/(t-e),u=2/(n-i),d=-(t+e)/(t-e),h=-(n+i)/(n-i);let p,f;if(a)p=1/(o-r),f=o/(o-r);else if(s===cr)p=-2/(o-r),f=-(o+r)/(o-r);else{if(s!==Ud)throw new Error("THREE.Matrix4.makeOrthographic(): Invalid coordinate system: "+s);p=-1/(o-r),f=-r/(o-r)}return l[0]=c,l[4]=0,l[8]=0,l[12]=d,l[1]=0,l[5]=u,l[9]=0,l[13]=h,l[2]=0,l[6]=0,l[10]=p,l[14]=f,l[3]=0,l[7]=0,l[11]=0,l[15]=1,this}equals(e){const t=this.elements,n=e.elements;for(let e=0;e<16;e++)if(t[e]!==n[e])return!1;return!0}fromArray(e,t=0){for(let n=0;n<16;n++)this.elements[n]=e[n+t];return this}toArray(e=[],t=0){const n=this.elements;return e[t]=n[0],e[t+1]=n[1],e[t+2]=n[2],e[t+3]=n[3],e[t+4]=n[4],e[t+5]=n[5],e[t+6]=n[6],e[t+7]=n[7],e[t+8]=n[8],e[t+9]=n[9],e[t+10]=n[10],e[t+11]=n[11],e[t+12]=n[12],e[t+13]=n[13],e[t+14]=n[14],e[t+15]=n[15],e}}const Ms=new k,ki=new cn,TD=new k(0,0,0),AD=new k(1,1,1),Jr=new k,Uu=new k,di=new k,Zg=new cn,Jg=new Ia;class Ki{constructor(e=0,t=0,n=0,i=Ki.DEFAULT_ORDER){this.isEuler=!0,this._x=e,this._y=t,this._z=n,this._order=i}get x(){return this._x}set x(e){this._x=e,this._onChangeCallback()}get y(){return this._y}set y(e){this._y=e,this._onChangeCallback()}get z(){return this._z}set z(e){this._z=e,this._onChangeCallback()}get order(){return this._order}set order(e){this._order=e,this._onChangeCallback()}set(e,t,n,i=this._order){return this._x=e,this._y=t,this._z=n,this._order=i,this._onChangeCallback(),this}clone(){return new this.constructor(this._x,this._y,this._z,this._order)}copy(e){return this._x=e._x,this._y=e._y,this._z=e._z,this._order=e._order,this._onChangeCallback(),this}setFromRotationMatrix(e,t=this._order,n=!0){const i=e.elements,r=i[0],o=i[4],s=i[8],a=i[1],l=i[5],c=i[9],u=i[2],d=i[6],h=i[10];switch(t){case"XYZ":this._y=Math.asin(It(s,-1,1)),Math.abs(s)<.9999999?(this._x=Math.atan2(-c,h),this._z=Math.atan2(-o,r)):(this._x=Math.atan2(d,l),this._z=0);break;case"YXZ":this._x=Math.asin(-It(c,-1,1)),Math.abs(c)<.9999999?(this._y=Math.atan2(s,h),this._z=Math.atan2(a,l)):(this._y=Math.atan2(-u,r),this._z=0);break;case"ZXY":this._x=Math.asin(It(d,-1,1)),Math.abs(d)<.9999999?(this._y=Math.atan2(-u,h),this._z=Math.atan2(-o,l)):(this._y=0,this._z=Math.atan2(a,r));break;case"ZYX":this._y=Math.asin(-It(u,-1,1)),Math.abs(u)<.9999999?(this._x=Math.atan2(d,h),this._z=Math.atan2(a,r)):(this._x=0,this._z=Math.atan2(-o,l));break;case"YZX":this._z=Math.asin(It(a,-1,1)),Math.abs(a)<.9999999?(this._x=Math.atan2(-c,l),this._y=Math.atan2(-u,r)):(this._x=0,this._y=Math.atan2(s,h));break;case"XZY":this._z=Math.asin(-It(o,-1,1)),Math.abs(o)<.9999999?(this._x=Math.atan2(d,l),this._y=Math.atan2(s,r)):(this._x=Math.atan2(-c,h),this._y=0);break;default:console.warn("THREE.Euler: .setFromRotationMatrix() encountered an unknown order: "+t)}return this._order=t,!0===n&&this._onChangeCallback(),this}setFromQuaternion(e,t,n){return Zg.makeRotationFromQuaternion(e),this.setFromRotationMatrix(Zg,t,n)}setFromVector3(e,t=this._order){return this.set(e.x,e.y,e.z,t)}reorder(e){return Jg.setFromEuler(this),this.setFromQuaternion(Jg,e)}equals(e){return e._x===this._x&&e._y===this._y&&e._z===this._z&&e._order===this._order}fromArray(e){return this._x=e[0],this._y=e[1],this._z=e[2],void 0!==e[3]&&(this._order=e[3]),this._onChangeCallback(),this}toArray(e=[],t=0){return e[t]=this._x,e[t+1]=this._y,e[t+2]=this._z,e[t+3]=this._order,e}_onChange(e){return this._onChangeCallback=e,this}_onChangeCallback(){}*[Symbol.iterator](){yield this._x,yield this._y,yield this._z,yield this._order}}Ki.DEFAULT_ORDER="XYZ";class _1{constructor(){this.mask=1}set(e){this.mask=1<<e>>>0}enable(e){this.mask|=1<<e}enableAll(){this.mask=-1}toggle(e){this.mask^=1<<e}disable(e){this.mask&=~(1<<e)}disableAll(){this.mask=0}test(e){return!!(this.mask&e.mask)}isEnabled(e){return!!(this.mask&1<<e)}}let CD=0;const eb=new k,Ts=new Ia,Tr=new cn,Fu=new k,Wa=new k,PD=new k,RD=new Ia,tb=new k(1,0,0),nb=new k(0,1,0),ib=new k(0,0,1),rb={type:"added"},LD={type:"removed"},As={type:"childadded",child:null},sh={type:"childremoved",child:null};class ei extends Mo{constructor(){super(),this.isObject3D=!0,Object.defineProperty(this,"id",{value:CD++}),this.uuid=Da(),this.name="",this.type="Object3D",this.parent=null,this.children=[],this.up=ei.DEFAULT_UP.clone();const e=new k,t=new Ki,n=new Ia,i=new k(1,1,1);t._onChange((function(){n.setFromEuler(t,!1)})),n._onChange((function(){t.setFromQuaternion(n,void 0,!1)})),Object.defineProperties(this,{position:{configurable:!0,enumerable:!0,value:e},rotation:{configurable:!0,enumerable:!0,value:t},quaternion:{configurable:!0,enumerable:!0,value:n},scale:{configurable:!0,enumerable:!0,value:i},modelViewMatrix:{value:new cn},normalMatrix:{value:new Ct}}),this.matrix=new cn,this.matrixWorld=new cn,this.matrixAutoUpdate=ei.DEFAULT_MATRIX_AUTO_UPDATE,this.matrixWorldAutoUpdate=ei.DEFAULT_MATRIX_WORLD_AUTO_UPDATE,this.matrixWorldNeedsUpdate=!1,this.layers=new _1,this.visible=!0,this.castShadow=!1,this.receiveShadow=!1,this.frustumCulled=!0,this.renderOrder=0,this.animations=[],this.customDepthMaterial=void 0,this.customDistanceMaterial=void 0,this.userData={}}onBeforeShadow(){}onAfterShadow(){}onBeforeRender(){}onAfterRender(){}applyMatrix4(e){this.matrixAutoUpdate&&this.updateMatrix(),this.matrix.premultiply(e),this.matrix.decompose(this.position,this.quaternion,this.scale)}applyQuaternion(e){return this.quaternion.premultiply(e),this}setRotationFromAxisAngle(e,t){this.quaternion.setFromAxisAngle(e,t)}setRotationFromEuler(e){this.quaternion.setFromEuler(e,!0)}
vendor: 4,288 bytes, line 7
7setRotationFromMatrix(e){this.quaternion.setFromRotationMatrix(e)}setRotationFromQuaternion(e){this.quaternion.copy(e)}rotateOnAxis(e,t){return Ts.setFromAxisAngle(e,t),this.quaternion.multiply(Ts),this}rotateOnWorldAxis(e,t){return Ts.setFromAxisAngle(e,t),this.quaternion.premultiply(Ts),this}rotateX(e){return this.rotateOnAxis(tb,e)}rotateY(e){return this.rotateOnAxis(nb,e)}rotateZ(e){return this.rotateOnAxis(ib,e)}translateOnAxis(e,t){return eb.copy(e).applyQuaternion(this.quaternion),this.position.add(eb.multiplyScalar(t)),this}translateX(e){return this.translateOnAxis(tb,e)}translateY(e){return this.translateOnAxis(nb,e)}translateZ(e){return this.translateOnAxis(ib,e)}localToWorld(e){return this.updateWorldMatrix(!0,!1),e.applyMatrix4(this.matrixWorld)}worldToLocal(e){return this.updateWorldMatrix(!0,!1),e.applyMatrix4(Tr.copy(this.matrixWorld).invert())}lookAt(e,t,n){e.isVector3?Fu.copy(e):Fu.set(e,t,n);const i=this.parent;this.updateWorldMatrix(!0,!1),Wa.setFromMatrixPosition(this.matrixWorld),this.isCamera||this.isLight?Tr.lookAt(Wa,Fu,this.up):Tr.lookAt(Fu,Wa,this.up),this.quaternion.setFromRotationMatrix(Tr),i&&(Tr.extractRotation(i.matrixWorld),Ts.setFromRotationMatrix(Tr),this.quaternion.premultiply(Ts.invert()))}add(e){if(arguments.length>1){for(let e=0;e<arguments.length;e++)this.add(arguments[e]);return this}return e===this?(console.error("THREE.Object3D.add: object can't be added as a child of itself.",e),this):(e&&e.isObject3D?(e.removeFromParent(),e.parent=this,this.children.push(e),e.dispatchEvent(rb),As.child=e,this.dispatchEvent(As),As.child=null):console.error("THREE.Object3D.add: object not an instance of THREE.Object3D.",e),this)}remove(e){if(arguments.length>1){for(let e=0;e<arguments.length;e++)this.remove(arguments[e]);return this}const t=this.children.indexOf(e);return-1!==t&&(e.parent=null,this.children.splice(t,1),e.dispatchEvent(LD),sh.child=e,this.dispatchEvent(sh),sh.child=null),this}removeFromParent(){const e=this.parent;return null!==e&&e.remove(this),this}clear(){return this.remove(...this.children)}attach(e){return this.updateWorldMatrix(!0,!1),Tr.copy(this.matrixWorld).invert(),null!==e.parent&&(e.parent.updateWorldMatrix(!0,!1),Tr.multiply(e.parent.matrixWorld)),e.applyMatrix4(Tr),e.removeFromParent(),e.parent=this,this.children.push(e),e.updateWorldMatrix(!1,!0),e.dispatchEvent(rb),As.child=e,this.dispatchEvent(As),As.child=null,this}getObjectById(e){return this.getObjectByProperty("id",e)}getObjectByName(e){return this.getObjectByProperty("name",e)}getObjectByProperty(e,t){if(this[e]===t)return this;for(let n=0,i=this.children.length;n<i;n++){const i=this.children[n].getObjectByProperty(e,t);if(void 0!==i)return i}}getObjectsByProperty(e,t,n=[]){this[e]===t&&n.push(this);const i=this.children;for(let r=0,o=i.length;r<o;r++)i[r].getObjectsByProperty(e,t,n);return n}getWorldPosition(e){return this.updateWorldMatrix(!0,!1),e.setFromMatrixPosition(this.matrixWorld)}getWorldQuaternion(e){return this.updateWorldMatrix(!0,!1),this.matrixWorld.decompose(Wa,e,PD),e}getWorldScale(e){return this.updateWorldMatrix(!0,!1),this.matrixWorld.decompose(Wa,RD,e),e}getWorldDirection(e){this.updateWorldMatrix(!0,!1);const t=this.matrixWorld.elements;return e.set(t[8],t[9],t[10]).normalize()}raycast(){}traverse(e){e(this);const t=this.children;for(let n=0,i=t.length;n<i;n++)t[n].traverse(e)}traverseVisible(e){if(!1===this.visible)return;e(this);const t=this.children;for(let n=0,i=t.length;n<i;n++)t[n].traverseVisible(e)}traverseAncestors(e){const t=this.parent;null!==t&&(e(t),t.traverseAncestors(e))}updateMatrix(){this.matrix.compose(this.position,this.quaternion,this.scale),this.matrixWorldNeedsUpdate=!0}updateMatrixWorld(e){this.matrixAutoUpdate&&this.updateMatrix(),(this.matrixWorldNeedsUpdate||e)&&(!0===this.matrixWorldAutoUpdate&&(null===this.parent?this.matrixWorld.copy(this.matrix):this.matrixWorld.multiplyMatrices(this.parent.matrixWorld,this.matrix)),this.matrixWorldNeedsUpdate=!1,e=!0);const t=this.children;for(let n=0,i=t.length;n<i;n++)t[n].updateMatrixWorld(e)}updateWorldMatrix(e,t){const n=this.parent;if(!0===e&&null!==n&&n.updateWorldMatrix(!0,!1),this.matrixAutoUpdate&&this.updateMatrix(),!0===this.matrixWorldAutoUpdate&&(null===this.parent?this.matrixWorld.copy(this.matrix
vendor: 5,349 bytes, line 7
7):this.matrixWorld.multiplyMatrices(this.parent.matrixWorld,this.matrix)),!0===t){const e=this.children;for(let t=0,n=e.length;t<n;t++)e[t].updateWorldMatrix(!1,!0)}}toJSON(e){const t=void 0===e||"string"==typeof e,n={};t&&(e={geometries:{},materials:{},textures:{},images:{},shapes:{},skeletons:{},animations:{},nodes:{}},n.metadata={version:4.7,type:"Object",generator:"Object3D.toJSON"});const i={};function r(t,n){return void 0===t[n.uuid]&&(t[n.uuid]=n.toJSON(e)),n.uuid}if(i.uuid=this.uuid,i.type=this.type,""!==this.name&&(i.name=this.name),!0===this.castShadow&&(i.castShadow=!0),!0===this.receiveShadow&&(i.receiveShadow=!0),!1===this.visible&&(i.visible=!1),!1===this.frustumCulled&&(i.frustumCulled=!1),0!==this.renderOrder&&(i.renderOrder=this.renderOrder),Object.keys(this.userData).length>0&&(i.userData=this.userData),i.layers=this.layers.mask,i.matrix=this.matrix.toArray(),i.up=this.up.toArray(),!1===this.matrixAutoUpdate&&(i.matrixAutoUpdate=!1),this.isInstancedMesh&&(i.type="InstancedMesh",i.count=this.count,i.instanceMatrix=this.instanceMatrix.toJSON(),null!==this.instanceColor&&(i.instanceColor=this.instanceColor.toJSON())),this.isBatchedMesh&&(i.type="BatchedMesh",i.perObjectFrustumCulled=this.perObjectFrustumCulled,i.sortObjects=this.sortObjects,i.drawRanges=this._drawRanges,i.reservedRanges=this._reservedRanges,i.geometryInfo=this._geometryInfo.map((e=>({...e,boundingBox:e.boundingBox?e.boundingBox.toJSON():void 0,boundingSphere:e.boundingSphere?e.boundingSphere.toJSON():void 0}))),i.instanceInfo=this._instanceInfo.map((e=>({...e}))),i.availableInstanceIds=this._availableInstanceIds.slice(),i.availableGeometryIds=this._availableGeometryIds.slice(),i.nextIndexStart=this._nextIndexStart,i.nextVertexStart=this._nextVertexStart,i.geometryCount=this._geometryCount,i.maxInstanceCount=this._maxInstanceCount,i.maxVertexCount=this._maxVertexCount,i.maxIndexCount=this._maxIndexCount,i.geometryInitialized=this._geometryInitialized,i.matricesTexture=this._matricesTexture.toJSON(e),i.indirectTexture=this._indirectTexture.toJSON(e),null!==this._colorsTexture&&(i.colorsTexture=this._colorsTexture.toJSON(e)),null!==this.boundingSphere&&(i.boundingSphere=this.boundingSphere.toJSON()),null!==this.boundingBox&&(i.boundingBox=this.boundingBox.toJSON())),this.isScene)this.background&&(this.background.isColor?i.background=this.background.toJSON():this.background.isTexture&&(i.background=this.background.toJSON(e).uuid)),this.environment&&this.environment.isTexture&&!0!==this.environment.isRenderTargetTexture&&(i.environment=this.environment.toJSON(e).uuid);else if(this.isMesh||this.isLine||this.isPoints){i.geometry=r(e.geometries,this.geometry);const t=this.geometry.parameters;if(void 0!==t&&void 0!==t.shapes){const n=t.shapes;if(Array.isArray(n))for(let t=0,i=n.length;t<i;t++){const i=n[t];r(e.shapes,i)}else r(e.shapes,n)}}if(this.isSkinnedMesh&&(i.bindMode=this.bindMode,i.bindMatrix=this.bindMatrix.toArray(),void 0!==this.skeleton&&(r(e.skeletons,this.skeleton),i.skeleton=this.skeleton.uuid)),void 0!==this.material)if(Array.isArray(this.material)){const t=[];for(let n=0,i=this.material.length;n<i;n++)t.push(r(e.materials,this.material[n]));i.material=t}else i.material=r(e.materials,this.material);if(this.children.length>0){i.children=[];for(let t=0;t<this.children.length;t++)i.children.push(this.children[t].toJSON(e).object)}if(this.animations.length>0){i.animations=[];for(let t=0;t<this.animations.length;t++){const n=this.animations[t];i.animations.push(r(e.animations,n))}}if(t){const t=o(e.geometries),i=o(e.materials),r=o(e.textures),s=o(e.images),a=o(e.shapes),l=o(e.skeletons),c=o(e.animations),u=o(e.nodes);t.length>0&&(n.geometries=t),i.length>0&&(n.materials=i),r.length>0&&(n.textures=r),s.length>0&&(n.images=s),a.length>0&&(n.shapes=a),l.length>0&&(n.skeletons=l),c.length>0&&(n.animations=c),u.length>0&&(n.nodes=u)}return n.object=i,n;function o(e){const t=[];for(const n in e){const i=e[n];delete i.metadata,t.push(i)}return t}}clone(e){return(new this.constructor).copy(this,e)}copy(e,t=!0){if(this.name=e.name,this.up.copy(e.up),this.position.copy(e.position),this.rotation.order=e.rotation.order,this.quaternion.copy(e.quaternion),this.scale.copy(e.scale),this.matrix.copy(e.matrix),this.matrixWorld.copy(e.matrixWorld),this.matrixAutoUpdate=e.matrixAutoUpdate,this.matrixWorldAutoUpdate=e.matrixWorldAutoUpdate,this.matrixWorldNeedsUpdate=e.matrixWorldNeedsUpdate,this.layers.mask=e.layers.mask,this.visible=e.visible,this.castShadow=e.castShadow,this.receiveShadow=e.receiveShadow,this.frustumCulled=e.frustumCulled,this.renderOrder=e.renderOrder,this.animations=e.animations.slice(),this.userData=JSON.parse(JSON.stringify(e.userData)),!0===t)for(let t=0;t<e.children.length;t++){const n=e.children[t];this.add(n.clone())}return this}}ei.DEFAULT_UP=new k(0,1,0),ei.DEFAULT_MATRIX_AUTO_UPDATE=!0,ei.DEFAULT_MATRIX_WORLD_AUTO_UPDATE=!0;const zi=new k,Ar=new k,ah=new k,Cr=new k,Cs=new k,Ps=new k,ob=new k,lh=new k,ch=new k,uh=new k,dh=new Qt,fh=new Qt,hh=new Qt;class Wi{constructor(e=new k,t=new k,n=new k){this.a=e,this.b=t,this.c=n}static getNormal(e,t,n,i){i.subVectors(n,t),zi.subVectors(e,t),i.cross(zi);const r=i.lengthSq();return r>0?i.multiplyScalar(1/Math.sqrt(r)):i.set(0,0,0)}static getBarycoord(e,t,n,i,r){zi.subVectors(i,t),Ar.subVectors(n,t),ah.subVectors(e,t);
vendor: 9,733 bytes, line 7
7const o=zi.dot(zi),s=zi.dot(Ar),a=zi.dot(ah),l=Ar.dot(Ar),c=Ar.dot(ah),u=o*l-s*s;if(0===u)return r.set(0,0,0),null;const d=1/u,h=(l*a-s*c)*d,p=(o*c-s*a)*d;return r.set(1-h-p,p,h)}static containsPoint(e,t,n,i){return null!==this.getBarycoord(e,t,n,i,Cr)&&(Cr.x>=0&&Cr.y>=0&&Cr.x+Cr.y<=1)}static getInterpolation(e,t,n,i,r,o,s,a){return null===this.getBarycoord(e,t,n,i,Cr)?(a.x=0,a.y=0,"z"in a&&(a.z=0),"w"in a&&(a.w=0),null):(a.setScalar(0),a.addScaledVector(r,Cr.x),a.addScaledVector(o,Cr.y),a.addScaledVector(s,Cr.z),a)}static getInterpolatedAttribute(e,t,n,i,r,o){return dh.setScalar(0),fh.setScalar(0),hh.setScalar(0),dh.fromBufferAttribute(e,t),fh.fromBufferAttribute(e,n),hh.fromBufferAttribute(e,i),o.setScalar(0),o.addScaledVector(dh,r.x),o.addScaledVector(fh,r.y),o.addScaledVector(hh,r.z),o}static isFrontFacing(e,t,n,i){return zi.subVectors(n,t),Ar.subVectors(e,t),zi.cross(Ar).dot(i)<0}set(e,t,n){return this.a.copy(e),this.b.copy(t),this.c.copy(n),this}setFromPointsAndIndices(e,t,n,i){return this.a.copy(e[t]),this.b.copy(e[n]),this.c.copy(e[i]),this}setFromAttributeAndIndices(e,t,n,i){return this.a.fromBufferAttribute(e,t),this.b.fromBufferAttribute(e,n),this.c.fromBufferAttribute(e,i),this}clone(){return(new this.constructor).copy(this)}copy(e){return this.a.copy(e.a),this.b.copy(e.b),this.c.copy(e.c),this}getArea(){return zi.subVectors(this.c,this.b),Ar.subVectors(this.a,this.b),.5*zi.cross(Ar).length()}getMidpoint(e){return e.addVectors(this.a,this.b).add(this.c).multiplyScalar(1/3)}getNormal(e){return Wi.getNormal(this.a,this.b,this.c,e)}getPlane(e){return e.setFromCoplanarPoints(this.a,this.b,this.c)}getBarycoord(e,t){return Wi.getBarycoord(e,this.a,this.b,this.c,t)}getInterpolation(e,t,n,i,r){return Wi.getInterpolation(e,this.a,this.b,this.c,t,n,i,r)}containsPoint(e){return Wi.containsPoint(e,this.a,this.b,this.c)}isFrontFacing(e){return Wi.isFrontFacing(this.a,this.b,this.c,e)}intersectsBox(e){return e.intersectsTriangle(this)}closestPointToPoint(e,t){const n=this.a,i=this.b,r=this.c;let o,s;Cs.subVectors(i,n),Ps.subVectors(r,n),lh.subVectors(e,n);const a=Cs.dot(lh),l=Ps.dot(lh);if(a<=0&&l<=0)return t.copy(n);ch.subVectors(e,i);const c=Cs.dot(ch),u=Ps.dot(ch);if(c>=0&&u<=c)return t.copy(i);const d=a*u-c*l;if(d<=0&&a>=0&&c<=0)return o=a/(a-c),t.copy(n).addScaledVector(Cs,o);uh.subVectors(e,r);const h=Cs.dot(uh),p=Ps.dot(uh);if(p>=0&&h<=p)return t.copy(r);const f=h*l-a*p;if(f<=0&&l>=0&&p<=0)return s=l/(l-p),t.copy(n).addScaledVector(Ps,s);const m=c*p-h*u;if(m<=0&&u-c>=0&&h-p>=0)return ob.subVectors(r,i),s=(u-c)/(u-c+(h-p)),t.copy(i).addScaledVector(ob,s);const g=1/(m+f+d);return o=f*g,s=d*g,t.copy(n).addScaledVector(Cs,o).addScaledVector(Ps,s)}equals(e){return e.a.equals(this.a)&&e.b.equals(this.b)&&e.c.equals(this.c)}}const y1={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074},eo={h:0,s:0,l:0},Bu={h:0,s:0,l:0};function ph(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+6*(t-e)*(2/3-n):e}class Ut{constructor(e,t,n){return this.isColor=!0,this.r=1,this.g=1,this.b=1,this.set(e,t,n)}set(e,t,n){if(void 0===t&&void 0===n){const t=e;t&&t.isColor?this.copy(t):"number"==typeof t?this.setHex(t):"string"==typeof t&&this.setStyle(t)}else this.setRGB(e,t,n);return this}setScalar(e){return this.r=e,this.g=e,this.b=e,this}setHex(e,t=fn){return e=Math.floor(e),this.r=(e>>16&255)/255,this.g=(e>>8&255)/255,this.b=(255&e)/255,Ht.colorSpaceToWorking(this,t),this}setRGB(e,t,n,i=Ht.workingColorSpace){return this.r=e,this.g=t,this.b=n,Ht.colorSpaceToWorking(this,i),this}setHSL(e,t,n,i=Ht.workingColorSpace){if(e=gv(e,1),t=It(t,0,1),n=It(n,0,1),0===t)this.r=this.g=this.b=n;else{const i=n<=.5?n*(1+t):n+t-n*t,r=2*n-i;this.r=ph(r,i,e+1/3),this.g=ph(r,i,e),this.b=ph(r,i,e-1/3)}return Ht.colorSpaceToWorking(this,i),this}setStyle(e,t=fn){function n(t){void 0!==t&&parseFloat(t)<1&&console.warn("THREE.Color: Alpha component of "+e+" will be ignored.")}let i;if(i=/^(\w+)\(([^\)]*)\)/.exec(e)){let r;const o=i[1],s=i[2];switch(o){case"rgb":case"rgba":if(r=/^\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(s))return n(r[4]),this.setRGB(Math.min(255,parseInt(r[1],10))/255,Math.min(255,parseInt(r[2],10))/255,Math.min(255,parseInt(r[3],10))/255,t);if(r=/^\s*(\d+)\%\s*,\s*(\d+)\%\s*,\s*(\d+)\%\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(s))return n(r[4]),this.setRGB(Math.min(100,parseInt(r[1],10))/100,Math.min(100,parseInt(r[2],10))/100,Math.min(100,parseInt(r[3],10))/100,t);break;case"hsl":case"hsla":if(r=/^\s*(\d*\.?\d+)\s*,\s*(\d*\.?\d+)\%\s*,\s*(\d*\.?\d+)\%\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(s))return n(r[4]),this.setHSL(parseFloat(r[1])/360,parseFloat(r[2])/100,parseFloat(r[3])/100,t);break;default:console.warn("THREE.Color: Unknown color model "+e)}}else if(i=/^\#([A-Fa-f\d]+)$/.exec(e)){const n=i[1],r=n.length;if(3===r)return this.setRGB(parseInt(n.charAt(0),16)/15,parseInt(n.charAt(1),16)/15,parseInt(n.charAt(2),16)/15,t);if(6===r)return this.setHex(parseInt(n,16),t);console.warn("THREE.Color: Invalid hex color "+e)}else if(e&&e.length>0)return this.setColorName(e,t);return this}setColorName(e,t=fn){const n=y1[e.toLowerCase()];return void 0!==n?this.setHex(n,t):console.warn("THREE.Color: Unknown color "+e),this}clone(){return new this.constructor(this.r,this.g,this.b)}copy(e){return this.r=e.r,this.g=e.g,this.b=e.b,this}copySRGBToLinear(e){return this.r=Vr(e.r),this.g=Vr(e.g),this.b=Vr(e.b),this}copyLinearToSRGB(e){return this.r=Ks(e.r),this.g=Ks(e.g),this.b=Ks(e.b),this}convertSRGBToLinear(){return this.copySRGBToLinear(this),this}convertLinearToSRGB(){return this.copyLinearToSRGB(this),this}getHex(e=fn){return Ht.workingToColorSpace(Bn.copy(this),e),65536*Math.round(It(255*Bn.r,0,255))+256*Math.round(It(255*Bn.g,0,255))+Math.round(It(255*Bn.b,0,255))}getHexString(e=fn){return("000000"+this.getHex(e).toString(16)).slice(-6)}getHSL(e,t=Ht.workingColorSpace){Ht.workingToColorSpace(Bn.copy(this),t);const n=Bn.r,i=Bn.g,r=Bn.b,o=Math.max(n,i,r),s=Math.min(n,i,r);let a,l;const c=(s+o)/2;if(s===o)a=0,l=0;else{const e=o-s;switch(l=c<=.5?e/(o+s):e/(2-o-s),o){case n:a=(i-r)/e+(i<r?6:0);break;case i:a=(r-n)/e+2;break;case r:a=(n-i)/e+4}a/=6}return e.h=a,e.s=l,e.l=c,e}getRGB(e,t=Ht.workingColorSpace){return Ht.workingToColorSpace(Bn.copy(this),t),e.r=Bn.r,e.g=Bn.g,e.b=Bn.b,e}getStyle(e=fn){Ht.workingToColorSpace(Bn.copy(this),e);const t=Bn.r,n=Bn.g,i=Bn.b;return e!==fn?`color(${e} ${t.toFixed(3)} ${n.toFixed(3)} ${i.toFixed(3)})`:`rgb(${Math.round(255*t)},${Math.round(255*n)},${Math.round(255*i)})`}offsetHSL(e,t,n){return this.getHSL(eo),this.setHSL(eo.h+e,eo.s+t,eo.l+n)}add(e){return this.r+=e.r,this.g+=e.g,this.b+=e.b,this}addColors(e,t){return this.r=e.r+t.r,this.g=e.g+t.g,this.b=e.b+t.b,this}addScalar(e){return this.r+=e,this.g+=e,this.b+=e,this}sub(e){return this.r=Math.max(0,this.r-e.r),this.g=Math.max(0,this.g-e.g),this.b=Math.max(0,this.b-e.b),this}multiply(e){return this.r*=e.r,this.g*=e.g,this.b*=e.b,this}multiplyScalar(e){return this.r*=e,this.g*=e,this.b*=e,this}lerp(e,t){return this.r+=(e.r-this.r)*t,this.g+=(e.g-this.g)*t,this.b+=(e.b-this.b)*t,this}
vendor: 2,732 bytes, line 7
7lerpColors(e,t,n){return this.r=e.r+(t.r-e.r)*n,this.g=e.g+(t.g-e.g)*n,this.b=e.b+(t.b-e.b)*n,this}lerpHSL(e,t){this.getHSL(eo),e.getHSL(Bu);const n=ul(eo.h,Bu.h,t),i=ul(eo.s,Bu.s,t),r=ul(eo.l,Bu.l,t);return this.setHSL(n,i,r),this}setFromVector3(e){return this.r=e.x,this.g=e.y,this.b=e.z,this}applyMatrix3(e){const t=this.r,n=this.g,i=this.b,r=e.elements;return this.r=r[0]*t+r[3]*n+r[6]*i,this.g=r[1]*t+r[4]*n+r[7]*i,this.b=r[2]*t+r[5]*n+r[8]*i,this}equals(e){return e.r===this.r&&e.g===this.g&&e.b===this.b}fromArray(e,t=0){return this.r=e[t],this.g=e[t+1],this.b=e[t+2],this}toArray(e=[],t=0){return e[t]=this.r,e[t+1]=this.g,e[t+2]=this.b,e}fromBufferAttribute(e,t){return this.r=e.getX(t),this.g=e.getY(t),this.b=e.getZ(t),this}toJSON(){return this.getHex()}*[Symbol.iterator](){yield this.r,yield this.g,yield this.b}}const Bn=new Ut;Ut.NAMES=y1;let DD=0;class ms extends Mo{constructor(){super(),this.isMaterial=!0,Object.defineProperty(this,"id",{value:DD++}),this.uuid=Da(),this.name="",this.type="Material",this.blending=1,this.side=0,this.vertexColors=!1,this.opacity=1,this.transparent=!1,this.alphaHash=!1,this.blendSrc=mp,this.blendDst=vp,this.blendEquation=Ho,this.blendSrcAlpha=null,this.blendDstAlpha=null,this.blendEquationAlpha=null,this.blendColor=new Ut(0,0,0),this.blendAlpha=0,this.depthFunc=3,this.depthTest=!0,this.depthWrite=!0,this.stencilWriteMask=255,this.stencilFunc=Gg,this.stencilRef=0,this.stencilFuncMask=255,this.stencilFail=ys,this.stencilZFail=ys,this.stencilZPass=ys,this.stencilWrite=!1,this.clippingPlanes=null,this.clipIntersection=!1,this.clipShadows=!1,this.shadowSide=null,this.colorWrite=!0,this.precision=null,this.polygonOffset=!1,this.polygonOffsetFactor=0,this.polygonOffsetUnits=0,this.dithering=!1,this.alphaToCoverage=!1,this.premultipliedAlpha=!1,this.forceSinglePass=!1,this.allowOverride=!0,this.visible=!0,this.toneMapped=!0,this.userData={},this.version=0,this._alphaTest=0}get alphaTest(){return this._alphaTest}set alphaTest(e){this._alphaTest>0!=e>0&&this.version++,this._alphaTest=e}onBeforeRender(){}onBeforeCompile(){}customProgramCacheKey(){return this.onBeforeCompile.toString()}setValues(e){if(void 0!==e)for(const t in e){const n=e[t];if(void 0===n){console.warn(`THREE.Material: parameter '${t}' has value of undefined.`);continue}const i=this[t];void 0!==i?i&&i.isColor?i.set(n):i&&i.isVector3&&n&&n.isVector3?i.copy(n):this[t]=n:console.warn(`THREE.Material: '${t}' is not a property of THREE.${this.type}.`)}}toJSON(e){const t=void 0===e||"string"==typeof e;t&&(e={textures:{},images:{}});const n={metadata:{version:4.7,type:"Material",generator:"Material.toJSON"}};function i(e){const t=[];for(const n in e){const i=e[n];delete i.metadata,t.push(i)}return t}
vendor: 5,517 bytes, line 7
7if(n.uuid=this.uuid,n.type=this.type,""!==this.name&&(n.name=this.name),this.color&&this.color.isColor&&(n.color=this.color.getHex()),void 0!==this.roughness&&(n.roughness=this.roughness),void 0!==this.metalness&&(n.metalness=this.metalness),void 0!==this.sheen&&(n.sheen=this.sheen),this.sheenColor&&this.sheenColor.isColor&&(n.sheenColor=this.sheenColor.getHex()),void 0!==this.sheenRoughness&&(n.sheenRoughness=this.sheenRoughness),this.emissive&&this.emissive.isColor&&(n.emissive=this.emissive.getHex()),void 0!==this.emissiveIntensity&&1!==this.emissiveIntensity&&(n.emissiveIntensity=this.emissiveIntensity),this.specular&&this.specular.isColor&&(n.specular=this.specular.getHex()),void 0!==this.specularIntensity&&(n.specularIntensity=this.specularIntensity),this.specularColor&&this.specularColor.isColor&&(n.specularColor=this.specularColor.getHex()),void 0!==this.shininess&&(n.shininess=this.shininess),void 0!==this.clearcoat&&(n.clearcoat=this.clearcoat),void 0!==this.clearcoatRoughness&&(n.clearcoatRoughness=this.clearcoatRoughness),this.clearcoatMap&&this.clearcoatMap.isTexture&&(n.clearcoatMap=this.clearcoatMap.toJSON(e).uuid),this.clearcoatRoughnessMap&&this.clearcoatRoughnessMap.isTexture&&(n.clearcoatRoughnessMap=this.clearcoatRoughnessMap.toJSON(e).uuid),this.clearcoatNormalMap&&this.clearcoatNormalMap.isTexture&&(n.clearcoatNormalMap=this.clearcoatNormalMap.toJSON(e).uuid,n.clearcoatNormalScale=this.clearcoatNormalScale.toArray()),this.sheenColorMap&&this.sheenColorMap.isTexture&&(n.sheenColorMap=this.sheenColorMap.toJSON(e).uuid),this.sheenRoughnessMap&&this.sheenRoughnessMap.isTexture&&(n.sheenRoughnessMap=this.sheenRoughnessMap.toJSON(e).uuid),void 0!==this.dispersion&&(n.dispersion=this.dispersion),void 0!==this.iridescence&&(n.iridescence=this.iridescence),void 0!==this.iridescenceIOR&&(n.iridescenceIOR=this.iridescenceIOR),void 0!==this.iridescenceThicknessRange&&(n.iridescenceThicknessRange=this.iridescenceThicknessRange),this.iridescenceMap&&this.iridescenceMap.isTexture&&(n.iridescenceMap=this.iridescenceMap.toJSON(e).uuid),this.iridescenceThicknessMap&&this.iridescenceThicknessMap.isTexture&&(n.iridescenceThicknessMap=this.iridescenceThicknessMap.toJSON(e).uuid),void 0!==this.anisotropy&&(n.anisotropy=this.anisotropy),void 0!==this.anisotropyRotation&&(n.anisotropyRotation=this.anisotropyRotation),this.anisotropyMap&&this.anisotropyMap.isTexture&&(n.anisotropyMap=this.anisotropyMap.toJSON(e).uuid),this.map&&this.map.isTexture&&(n.map=this.map.toJSON(e).uuid),this.matcap&&this.matcap.isTexture&&(n.matcap=this.matcap.toJSON(e).uuid),this.alphaMap&&this.alphaMap.isTexture&&(n.alphaMap=this.alphaMap.toJSON(e).uuid),this.lightMap&&this.lightMap.isTexture&&(n.lightMap=this.lightMap.toJSON(e).uuid,n.lightMapIntensity=this.lightMapIntensity),this.aoMap&&this.aoMap.isTexture&&(n.aoMap=this.aoMap.toJSON(e).uuid,n.aoMapIntensity=this.aoMapIntensity),this.bumpMap&&this.bumpMap.isTexture&&(n.bumpMap=this.bumpMap.toJSON(e).uuid,n.bumpScale=this.bumpScale),this.normalMap&&this.normalMap.isTexture&&(n.normalMap=this.normalMap.toJSON(e).uuid,n.normalMapType=this.normalMapType,n.normalScale=this.normalScale.toArray()),this.displacementMap&&this.displacementMap.isTexture&&(n.displacementMap=this.displacementMap.toJSON(e).uuid,n.displacementScale=this.displacementScale,n.displacementBias=this.displacementBias),this.roughnessMap&&this.roughnessMap.isTexture&&(n.roughnessMap=this.roughnessMap.toJSON(e).uuid),this.metalnessMap&&this.metalnessMap.isTexture&&(n.metalnessMap=this.metalnessMap.toJSON(e).uuid),this.emissiveMap&&this.emissiveMap.isTexture&&(n.emissiveMap=this.emissiveMap.toJSON(e).uuid),this.specularMap&&this.specularMap.isTexture&&(n.specularMap=this.specularMap.toJSON(e).uuid),this.specularIntensityMap&&this.specularIntensityMap.isTexture&&(n.specularIntensityMap=this.specularIntensityMap.toJSON(e).uuid),this.specularColorMap&&this.specularColorMap.isTexture&&(n.specularColorMap=this.specularColorMap.toJSON(e).uuid),this.envMap&&this.envMap.isTexture&&(n.envMap=this.envMap.toJSON(e).uuid,void 0!==this.combine&&(n.combine=this.combine)),void 0!==this.envMapRotation&&(n.envMapRotation=this.envMapRotation.toArray()),void 0!==this.envMapIntensity&&(n.envMapIntensity=this.envMapIntensity),void 0!==this.reflectivity&&(n.reflectivity=this.reflectivity),void 0!==this.refractionRatio&&(n.refractionRatio=this.refractionRatio),this.gradientMap&&this.gradientMap.isTexture&&(n.gradientMap=this.gradientMap.toJSON(e).uuid),void 0!==this.transmission&&(n.transmission=this.transmission),this.transmissionMap&&this.transmissionMap.isTexture&&(n.transmissionMap=this.transmissionMap.toJSON(e).uuid),void 0!==this.thickness&&(n.thickness=this.thickness),this.thicknessMap&&this.thicknessMap.isTexture&&(n.thicknessMap=this.thicknessMap.toJSON(e).uuid),void 0!==this.attenuationDistance&&this.attenuationDistance!==1/0&&(n.attenuationDistance=this.attenuationDistance),void 0!==this.attenuationColor&&(n.attenuationColor=this.attenuationColor.getHex()),void 0!==this.size&&(n.size=this.size),null!==this.shadowSide&&(n.shadowSide=this.shadowSide),void 0!==this.sizeAttenuation&&(n.sizeAttenuation=this.sizeAttenuation),1!==this.blending&&(n.blending=this.blending),0!==this.side&&(n.side=this.side),!0===this.vertexColors&&(n.vertexColors=!0),this.opacity<1&&(n.opacity=this.opacity),!0===this.transparent&&(n.transparent=!0),this.blendSrc!==mp&&(n.blendSrc=this.blendSrc),this.blendDst!==vp&&(n.blendDst=this.blendDst),this.blendEquation!==Ho&&
vendor: 5,994 bytes, line 7
7(n.blendEquation=this.blendEquation),null!==this.blendSrcAlpha&&(n.blendSrcAlpha=this.blendSrcAlpha),null!==this.blendDstAlpha&&(n.blendDstAlpha=this.blendDstAlpha),null!==this.blendEquationAlpha&&(n.blendEquationAlpha=this.blendEquationAlpha),this.blendColor&&this.blendColor.isColor&&(n.blendColor=this.blendColor.getHex()),0!==this.blendAlpha&&(n.blendAlpha=this.blendAlpha),3!==this.depthFunc&&(n.depthFunc=this.depthFunc),!1===this.depthTest&&(n.depthTest=this.depthTest),!1===this.depthWrite&&(n.depthWrite=this.depthWrite),!1===this.colorWrite&&(n.colorWrite=this.colorWrite),255!==this.stencilWriteMask&&(n.stencilWriteMask=this.stencilWriteMask),this.stencilFunc!==Gg&&(n.stencilFunc=this.stencilFunc),0!==this.stencilRef&&(n.stencilRef=this.stencilRef),255!==this.stencilFuncMask&&(n.stencilFuncMask=this.stencilFuncMask),this.stencilFail!==ys&&(n.stencilFail=this.stencilFail),this.stencilZFail!==ys&&(n.stencilZFail=this.stencilZFail),this.stencilZPass!==ys&&(n.stencilZPass=this.stencilZPass),!0===this.stencilWrite&&(n.stencilWrite=this.stencilWrite),void 0!==this.rotation&&0!==this.rotation&&(n.rotation=this.rotation),!0===this.polygonOffset&&(n.polygonOffset=!0),0!==this.polygonOffsetFactor&&(n.polygonOffsetFactor=this.polygonOffsetFactor),0!==this.polygonOffsetUnits&&(n.polygonOffsetUnits=this.polygonOffsetUnits),void 0!==this.linewidth&&1!==this.linewidth&&(n.linewidth=this.linewidth),void 0!==this.dashSize&&(n.dashSize=this.dashSize),void 0!==this.gapSize&&(n.gapSize=this.gapSize),void 0!==this.scale&&(n.scale=this.scale),!0===this.dithering&&(n.dithering=!0),this.alphaTest>0&&(n.alphaTest=this.alphaTest),!0===this.alphaHash&&(n.alphaHash=!0),!0===this.alphaToCoverage&&(n.alphaToCoverage=!0),!0===this.premultipliedAlpha&&(n.premultipliedAlpha=!0),!0===this.forceSinglePass&&(n.forceSinglePass=!0),!0===this.wireframe&&(n.wireframe=!0),this.wireframeLinewidth>1&&(n.wireframeLinewidth=this.wireframeLinewidth),"round"!==this.wireframeLinecap&&(n.wireframeLinecap=this.wireframeLinecap),"round"!==this.wireframeLinejoin&&(n.wireframeLinejoin=this.wireframeLinejoin),!0===this.flatShading&&(n.flatShading=!0),!1===this.visible&&(n.visible=!1),!1===this.toneMapped&&(n.toneMapped=!1),!1===this.fog&&(n.fog=!1),Object.keys(this.userData).length>0&&(n.userData=this.userData),t){const t=i(e.textures),r=i(e.images);t.length>0&&(n.textures=t),r.length>0&&(n.images=r)}return n}clone(){return(new this.constructor).copy(this)}copy(e){this.name=e.name,this.blending=e.blending,this.side=e.side,this.vertexColors=e.vertexColors,this.opacity=e.opacity,this.transparent=e.transparent,this.blendSrc=e.blendSrc,this.blendDst=e.blendDst,this.blendEquation=e.blendEquation,this.blendSrcAlpha=e.blendSrcAlpha,this.blendDstAlpha=e.blendDstAlpha,this.blendEquationAlpha=e.blendEquationAlpha,this.blendColor.copy(e.blendColor),this.blendAlpha=e.blendAlpha,this.depthFunc=e.depthFunc,this.depthTest=e.depthTest,this.depthWrite=e.depthWrite,this.stencilWriteMask=e.stencilWriteMask,this.stencilFunc=e.stencilFunc,this.stencilRef=e.stencilRef,this.stencilFuncMask=e.stencilFuncMask,this.stencilFail=e.stencilFail,this.stencilZFail=e.stencilZFail,this.stencilZPass=e.stencilZPass,this.stencilWrite=e.stencilWrite;const t=e.clippingPlanes;let n=null;if(null!==t){const e=t.length;n=new Array(e);for(let i=0;i!==e;++i)n[i]=t[i].clone()}return this.clippingPlanes=n,this.clipIntersection=e.clipIntersection,this.clipShadows=e.clipShadows,this.shadowSide=e.shadowSide,this.colorWrite=e.colorWrite,this.precision=e.precision,this.polygonOffset=e.polygonOffset,this.polygonOffsetFactor=e.polygonOffsetFactor,this.polygonOffsetUnits=e.polygonOffsetUnits,this.dithering=e.dithering,this.alphaTest=e.alphaTest,this.alphaHash=e.alphaHash,this.alphaToCoverage=e.alphaToCoverage,this.premultipliedAlpha=e.premultipliedAlpha,this.forceSinglePass=e.forceSinglePass,this.visible=e.visible,this.toneMapped=e.toneMapped,this.userData=JSON.parse(JSON.stringify(e.userData)),this}dispose(){this.dispatchEvent({type:"dispose"})}set needsUpdate(e){!0===e&&this.version++}}class x1 extends ms{constructor(e){super(),this.isMeshBasicMaterial=!0,this.type="MeshBasicMaterial",this.color=new Ut(16777215),this.map=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.specularMap=null,this.alphaMap=null,this.envMap=null,this.envMapRotation=new Ki,this.combine=0,this.reflectivity=1,this.refractionRatio=.98,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinecap="round",this.wireframeLinejoin="round",this.fog=!0,this.setValues(e)}copy(e){return super.copy(e),this.color.copy(e.color),this.map=e.map,this.lightMap=e.lightMap,this.lightMapIntensity=e.lightMapIntensity,this.aoMap=e.aoMap,this.aoMapIntensity=e.aoMapIntensity,this.specularMap=e.specularMap,this.alphaMap=e.alphaMap,this.envMap=e.envMap,this.envMapRotation.copy(e.envMapRotation),this.combine=e.combine,this.reflectivity=e.reflectivity,this.refractionRatio=e.refractionRatio,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this.wireframeLinecap=e.wireframeLinecap,this.wireframeLinejoin=e.wireframeLinejoin,this.fog=e.fog,this}}const gn=new k,ku=new tt;let ID=0;class yi{constructor(e,t,n=!1){if(Array.isArray(e))throw new TypeError("THREE.BufferAttribute: array should be a Typed Array.");this.isBufferAttribute=!0,Object.defineProperty(this,"id",{value:ID++}),this.name="",this.array=e,this.itemSize=t,this.count=void 0!==e?e.length/t:0,this.normalized=n,this.usage=Wg,this.updateRanges=[],this.gpuType=Fr,this.version=0}onUploadCallback(){}set needsUpdate(e){!0===e&&this.version++}setUsage(e){return this.usage=e,this}addUpdateRange(e,t){this.updateRanges.push({start:e,count:t})}clearUpdateRanges(){this.updateRanges.length=0}copy(e){return this.name=e.name,this.array=new e.array.constructor(e.array),this.itemSize=e.itemSize,this.count=e.count,this.normalized=e.normalized,this.usage=e.usage,this.gpuType=e.gpuType,this}copyAt(e,t,n){e*=this.itemSize,n*=t.itemSize;
vendor: 9,508 bytes, line 7
7for(let i=0,r=this.itemSize;i<r;i++)this.array[e+i]=t.array[n+i];return this}copyArray(e){return this.array.set(e),this}applyMatrix3(e){if(2===this.itemSize)for(let t=0,n=this.count;t<n;t++)ku.fromBufferAttribute(this,t),ku.applyMatrix3(e),this.setXY(t,ku.x,ku.y);else if(3===this.itemSize)for(let t=0,n=this.count;t<n;t++)gn.fromBufferAttribute(this,t),gn.applyMatrix3(e),this.setXYZ(t,gn.x,gn.y,gn.z);return this}applyMatrix4(e){for(let t=0,n=this.count;t<n;t++)gn.fromBufferAttribute(this,t),gn.applyMatrix4(e),this.setXYZ(t,gn.x,gn.y,gn.z);return this}applyNormalMatrix(e){for(let t=0,n=this.count;t<n;t++)gn.fromBufferAttribute(this,t),gn.applyNormalMatrix(e),this.setXYZ(t,gn.x,gn.y,gn.z);return this}transformDirection(e){for(let t=0,n=this.count;t<n;t++)gn.fromBufferAttribute(this,t),gn.transformDirection(e),this.setXYZ(t,gn.x,gn.y,gn.z);return this}set(e,t=0){return this.array.set(e,t),this}getComponent(e,t){let n=this.array[e*this.itemSize+t];return this.normalized&&(n=Bs(n,this.array)),n}setComponent(e,t,n){return this.normalized&&(n=Vn(n,this.array)),this.array[e*this.itemSize+t]=n,this}getX(e){let t=this.array[e*this.itemSize];return this.normalized&&(t=Bs(t,this.array)),t}setX(e,t){return this.normalized&&(t=Vn(t,this.array)),this.array[e*this.itemSize]=t,this}getY(e){let t=this.array[e*this.itemSize+1];return this.normalized&&(t=Bs(t,this.array)),t}setY(e,t){return this.normalized&&(t=Vn(t,this.array)),this.array[e*this.itemSize+1]=t,this}getZ(e){let t=this.array[e*this.itemSize+2];return this.normalized&&(t=Bs(t,this.array)),t}setZ(e,t){return this.normalized&&(t=Vn(t,this.array)),this.array[e*this.itemSize+2]=t,this}getW(e){let t=this.array[e*this.itemSize+3];return this.normalized&&(t=Bs(t,this.array)),t}setW(e,t){return this.normalized&&(t=Vn(t,this.array)),this.array[e*this.itemSize+3]=t,this}setXY(e,t,n){return e*=this.itemSize,this.normalized&&(t=Vn(t,this.array),n=Vn(n,this.array)),this.array[e+0]=t,this.array[e+1]=n,this}setXYZ(e,t,n,i){return e*=this.itemSize,this.normalized&&(t=Vn(t,this.array),n=Vn(n,this.array),i=Vn(i,this.array)),this.array[e+0]=t,this.array[e+1]=n,this.array[e+2]=i,this}setXYZW(e,t,n,i,r){return e*=this.itemSize,this.normalized&&(t=Vn(t,this.array),n=Vn(n,this.array),i=Vn(i,this.array),r=Vn(r,this.array)),this.array[e+0]=t,this.array[e+1]=n,this.array[e+2]=i,this.array[e+3]=r,this}onUpload(e){return this.onUploadCallback=e,this}clone(){return new this.constructor(this.array,this.itemSize).copy(this)}toJSON(){const e={itemSize:this.itemSize,type:this.array.constructor.name,array:Array.from(this.array),normalized:this.normalized};return""!==this.name&&(e.name=this.name),this.usage!==Wg&&(e.usage=this.usage),e}}class S1 extends yi{constructor(e,t,n){super(new Uint16Array(e),t,n)}}class E1 extends yi{constructor(e,t,n){super(new Uint32Array(e),t,n)}}class xi extends yi{constructor(e,t,n){super(new Float32Array(e),t,n)}}let ND=0;const Ai=new cn,mh=new ei,Rs=new k,fi=new To,Xa=new To,Cn=new k;class Zi extends Mo{constructor(){super(),this.isBufferGeometry=!0,Object.defineProperty(this,"id",{value:ND++}),this.uuid=Da(),this.name="",this.type="BufferGeometry",this.index=null,this.indirect=null,this.attributes={},this.morphAttributes={},this.morphTargetsRelative=!1,this.groups=[],this.boundingBox=null,this.boundingSphere=null,this.drawRange={start:0,count:1/0},this.userData={}}getIndex(){return this.index}setIndex(e){return Array.isArray(e)?this.index=new(g1(e)?E1:S1)(e,1):this.index=e,this}setIndirect(e){return this.indirect=e,this}getIndirect(){return this.indirect}getAttribute(e){return this.attributes[e]}setAttribute(e,t){return this.attributes[e]=t,this}deleteAttribute(e){return delete this.attributes[e],this}hasAttribute(e){return void 0!==this.attributes[e]}addGroup(e,t,n=0){this.groups.push({start:e,count:t,materialIndex:n})}clearGroups(){this.groups=[]}setDrawRange(e,t){this.drawRange.start=e,this.drawRange.count=t}applyMatrix4(e){const t=this.attributes.position;void 0!==t&&(t.applyMatrix4(e),t.needsUpdate=!0);const n=this.attributes.normal;if(void 0!==n){const t=(new Ct).getNormalMatrix(e);n.applyNormalMatrix(t),n.needsUpdate=!0}const i=this.attributes.tangent;return void 0!==i&&(i.transformDirection(e),i.needsUpdate=!0),null!==this.boundingBox&&this.computeBoundingBox(),null!==this.boundingSphere&&this.computeBoundingSphere(),this}applyQuaternion(e){return Ai.makeRotationFromQuaternion(e),this.applyMatrix4(Ai),this}rotateX(e){return Ai.makeRotationX(e),this.applyMatrix4(Ai),this}rotateY(e){return Ai.makeRotationY(e),this.applyMatrix4(Ai),this}rotateZ(e){return Ai.makeRotationZ(e),this.applyMatrix4(Ai),this}translate(e,t,n){return Ai.makeTranslation(e,t,n),this.applyMatrix4(Ai),this}scale(e,t,n){return Ai.makeScale(e,t,n),this.applyMatrix4(Ai),this}lookAt(e){return mh.lookAt(e),mh.updateMatrix(),this.applyMatrix4(mh.matrix),this}center(){return this.computeBoundingBox(),this.boundingBox.getCenter(Rs).negate(),this.translate(Rs.x,Rs.y,Rs.z),this}setFromPoints(e){const t=this.getAttribute("position");if(void 0===t){const t=[];for(let n=0,i=e.length;n<i;n++){const i=e[n];t.push(i.x,i.y,i.z||0)}this.setAttribute("position",new xi(t,3))}else{const n=Math.min(e.length,t.count);for(let i=0;i<n;i++){const n=e[i];t.setXYZ(i,n.x,n.y,n.z||0)}e.length>t.count&&console.warn("THREE.BufferGeometry: Buffer size too small for points data. Use .dispose() and create a new geometry."),t.needsUpdate=!0}return this}computeBoundingBox(){null===this.boundingBox&&(this.boundingBox=new To);const e=this.attributes.position,t=this.morphAttributes.position;if(e&&e.isGLBufferAttribute)return console.error("THREE.BufferGeometry.computeBoundingBox(): GLBufferAttribute requires a manual bounding box.",this),void this.boundingBox.set(new k(-1/0,-1/0,-1/0),new k(1/0,1/0,1/0));if(void 0!==e){if(this.boundingBox.setFromBufferAttribute(e),t)for(let e=0,n=t.length;e<n;e++){const n=t[e];fi.setFromBufferAttribute(n),this.morphTargetsRelative?(Cn.addVectors(this.boundingBox.min,fi.min),this.boundingBox.expandByPoint(Cn),Cn.addVectors(this.boundingBox.max,fi.max),this.boundingBox.expandByPoint(Cn)):(this.boundingBox.expandByPoint(fi.min),this.boundingBox.expandByPoint(fi.max))}}else this.boundingBox.makeEmpty();(isNaN(this.boundingBox.min.x)||isNaN(this.boundingBox.min.y)||isNaN(this.boundingBox.min.z))&&console.error('THREE.BufferGeometry.computeBoundingBox(): Computed min/max have NaN values. The "position" attribute is likely to have NaN values.',this)}computeBoundingSphere(){null===this.boundingSphere&&(this.boundingSphere=new _v);const e=this.attributes.position,t=this.morphAttributes.position;if(e&&e.isGLBufferAttribute)return console.error("THREE.BufferGeometry.computeBoundingSphere(): GLBufferAttribute requires a manual bounding sphere.",this),void this.boundingSphere.set(new k,1/0);if(e){const n=this.boundingSphere.center;if(fi.setFromBufferAttribute(e),t)for(let e=0,n=t.length;e<n;e++){const n=t[e];Xa.setFromBufferAttribute(n),this.morphTargetsRelative?(Cn.addVectors(fi.min,Xa.min),fi.expandByPoint(Cn),Cn.addVectors(fi.max,Xa.max),fi.expandByPoint(Cn)):(fi.expandByPoint(Xa.min),fi.expandByPoint(Xa.max))}fi.getCenter(n);let i=0;for(let t=0,r=e.count;t<r;t++)Cn.fromBufferAttribute(e,t),i=Math.max(i,n.distanceToSquared(Cn));if(t)for(let r=0,o=t.length;r<o;r++){const o=t[r],s=this.morphTargetsRelative;for(let t=0,r=o.count;t<r;t++)Cn.fromBufferAttribute(o,t),s&&(Rs.fromBufferAttribute(e,t),Cn.add(Rs)),i=Math.max(i,n.distanceToSquared(Cn))}this.boundingSphere.radius=Math.sqrt(i),isNaN(this.boundingSphere.radius)&&console.error('THREE.BufferGeometry.computeBoundingSphere(): Computed radius is NaN. The "position" attribute is likely to have NaN values.',this)}}computeTangents(){const e=this.index,t=this.attributes;if(null===e||void 0===t.position||void 0===t.normal||void 0===t.uv)return void console.error("THREE.BufferGeometry: .computeTangents() failed. Missing required attributes (index, position, normal or uv)");const n=t.position,i=t.normal,r=t.uv;!1===this.hasAttribute("tangent")&&this.setAttribute("tangent",new yi(new Float32Array(4*n.count),4));const o=this.getAttribute("tangent"),s=[],a=[];for(let e=0;e<n.count;e++)s[e]=new k,a[e]=new k;const l=new k,c=new k,u=new k,d=new tt,h=new tt,p=new tt,f=new k,m=new k;function g(e,t,i){l.fromBufferAttribute(n,e),c.fromBufferAttribute(n,t),u.fromBufferAttribute(n,i),d.fromBufferAttribute(r,e),h.fromBufferAttribute(r,t),p.fromBufferAttribute(r,i),c.sub(l),u.sub(l),h.sub(d),p.sub(d);const o=1/(h.x*p.y-p.x*h.y);isFinite(o)&&(f.copy(c).multiplyScalar(p.y).addScaledVector(u,-h.y).multiplyScalar(o),m.copy(u).multiplyScalar(h.x).addScaledVector(c,-p.x).multiplyScalar(o),s[e].add(f),s[t].add(f),s[i].add(f),a[e].add(m),a[t].add(m),a[i].add(m))}let v=this.groups;0===v.length&&(v=[{start:0,count:e.count}]);for(let t=0,n=v.length;t<n;++t){const n=v[t],i=n.start;for(let t=i,r=i+n.count;t<r;t+=3)g(e.getX(t+0),e.getX(t+1),e.getX(t+2))}const b=new k,y=new k,_=new k,x=new k;function S(e){_.fromBufferAttribute(i,e),x.copy(_);const t=s[e];b.copy(t),b.sub(_.multiplyScalar(_.dot(t))).normalize(),y.crossVectors(x,t);const n=y.dot(a[e])<0?-1:1;o.setXYZW(e,b.x,b.y,b.z,n)}for(let t=0,n=v.length;t<n;++t){const n=v[t],i=n.start;for(let t=i,r=i+n.count;t<r;t+=3)S(e.getX(t+0)),S(e.getX(t+1)),S(e.getX(t+2))}}computeVertexNormals(){const e=this.index,t=this.getAttribute("position");if(void 0!==t){let n=this.getAttribute("normal");if(void 0===n)n=new yi(new Float32Array(3*t.count),3),this.setAttribute("normal",n
vendor: 3,801 bytes, line 7
7);else for(let e=0,t=n.count;e<t;e++)n.setXYZ(e,0,0,0);const i=new k,r=new k,o=new k,s=new k,a=new k,l=new k,c=new k,u=new k;if(e)for(let d=0,h=e.count;d<h;d+=3){const h=e.getX(d+0),p=e.getX(d+1),f=e.getX(d+2);i.fromBufferAttribute(t,h),r.fromBufferAttribute(t,p),o.fromBufferAttribute(t,f),c.subVectors(o,r),u.subVectors(i,r),c.cross(u),s.fromBufferAttribute(n,h),a.fromBufferAttribute(n,p),l.fromBufferAttribute(n,f),s.add(c),a.add(c),l.add(c),n.setXYZ(h,s.x,s.y,s.z),n.setXYZ(p,a.x,a.y,a.z),n.setXYZ(f,l.x,l.y,l.z)}else for(let e=0,s=t.count;e<s;e+=3)i.fromBufferAttribute(t,e+0),r.fromBufferAttribute(t,e+1),o.fromBufferAttribute(t,e+2),c.subVectors(o,r),u.subVectors(i,r),c.cross(u),n.setXYZ(e+0,c.x,c.y,c.z),n.setXYZ(e+1,c.x,c.y,c.z),n.setXYZ(e+2,c.x,c.y,c.z);this.normalizeNormals(),n.needsUpdate=!0}}normalizeNormals(){const e=this.attributes.normal;for(let t=0,n=e.count;t<n;t++)Cn.fromBufferAttribute(e,t),Cn.normalize(),e.setXYZ(t,Cn.x,Cn.y,Cn.z)}toNonIndexed(){function e(e,t){const n=e.array,i=e.itemSize,r=e.normalized,o=new n.constructor(t.length*i);let s=0,a=0;for(let r=0,l=t.length;r<l;r++){s=e.isInterleavedBufferAttribute?t[r]*e.data.stride+e.offset:t[r]*i;for(let e=0;e<i;e++)o[a++]=n[s++]}return new yi(o,i,r)}if(null===this.index)return console.warn("THREE.BufferGeometry.toNonIndexed(): BufferGeometry is already non-indexed."),this;const t=new Zi,n=this.index.array,i=this.attributes;for(const r in i){const o=e(i[r],n);t.setAttribute(r,o)}const r=this.morphAttributes;for(const i in r){const o=[],s=r[i];for(let t=0,i=s.length;t<i;t++){const i=e(s[t],n);o.push(i)}t.morphAttributes[i]=o}t.morphTargetsRelative=this.morphTargetsRelative;const o=this.groups;for(let e=0,n=o.length;e<n;e++){const n=o[e];t.addGroup(n.start,n.count,n.materialIndex)}return t}toJSON(){const e={metadata:{version:4.7,type:"BufferGeometry",generator:"BufferGeometry.toJSON"}};if(e.uuid=this.uuid,e.type=this.type,""!==this.name&&(e.name=this.name),Object.keys(this.userData).length>0&&(e.userData=this.userData),void 0!==this.parameters){const t=this.parameters;for(const n in t)void 0!==t[n]&&(e[n]=t[n]);return e}e.data={attributes:{}};const t=this.index;null!==t&&(e.data.index={type:t.array.constructor.name,array:Array.prototype.slice.call(t.array)});const n=this.attributes;for(const t in n){const i=n[t];e.data.attributes[t]=i.toJSON(e.data)}const i={};let r=!1;for(const t in this.morphAttributes){const n=this.morphAttributes[t],o=[];for(let t=0,i=n.length;t<i;t++){const i=n[t];o.push(i.toJSON(e.data))}o.length>0&&(i[t]=o,r=!0)}r&&(e.data.morphAttributes=i,e.data.morphTargetsRelative=this.morphTargetsRelative);const o=this.groups;o.length>0&&(e.data.groups=JSON.parse(JSON.stringify(o)));const s=this.boundingSphere;return null!==s&&(e.data.boundingSphere=s.toJSON()),e}clone(){return(new this.constructor).copy(this)}copy(e){this.index=null,this.attributes={},this.morphAttributes={},this.groups=[],this.boundingBox=null,this.boundingSphere=null;const t={};this.name=e.name;const n=e.index;null!==n&&this.setIndex(n.clone());const i=e.attributes;for(const e in i){const n=i[e];this.setAttribute(e,n.clone(t))}const r=e.morphAttributes;for(const e in r){const n=[],i=r[e];for(let e=0,r=i.length;e<r;e++)n.push(i[e].clone(t));this.morphAttributes[e]=n}this.morphTargetsRelative=e.morphTargetsRelative;const o=e.groups;for(let e=0,t=o.length;e<t;e++){const t=o[e];this.addGroup(t.start,t.count,t.materialIndex)}const s=e.boundingBox;null!==s&&(this.boundingBox=s.clone());const a=e.boundingSphere;return null!==a&&(this.boundingSphere=a.clone()),this.drawRange.start=e.drawRange.start,this.drawRange.count=e.drawRange.count,this.userData=e.userData,this}dispose(){this.dispatchEvent({type:"dispose"})}}const sb=new cn,No=new MD,zu=new _v,ab=new k,Hu=new k,Vu=new k,$u=new k,vh=new k,Gu=ne
7w k,lb=new k,Wu=new k;class On extends ei{constructor(e=new Zi,t=new x1){super(),this.isMesh=!0,this.type="Mesh",this.geometry=e,this.material=t,this.morphTargetDictionary=void 0,this.morphTargetInfluences=void 0,this.count=1,this.updateMorphTargets()}copy(e,t){return super.copy(e,t),void 0!==e.morphTargetInfluences&&(this.morphTargetInfluences=e.morphTargetInfluences.slice()),void 0!==e.morphTargetDictionary&&(this.morphTargetDictionary=Object.assign({},e.morphTargetDictionary)),this.material=Array.isArray(e.material)?e.material.slice():e.material,this.geometry=e.geometry,this}updateMorphTargets(){const e=this.geometry.morphAttributes,t=Object.keys(e);if(t.length>0){const n=e[t[0]];if(void 0!==n){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(let e=0,t=n.length;e<t;e++){const t=n[e].name||String(e);this.morphTargetInfluences.push(0),this.morphTargetDictionary[t]=e}}}}getVertexPosition(e,t){const n=this.geometry,i=n.attributes.position,r=n.morphAttributes.position,o=n.morphTargetsRelative;t.fromBufferAttribute(i,e);const s=this.morphTargetInfluences;if(r&&s){Gu.set(0,0,0);for(let n=0,i=r.length;n<i;n++){const i=s[n],a=r[n];0!==i&&(vh.fromBufferAttribute(a,e),o?Gu.addScaledVector(vh,i):Gu.addScaledVector(vh.sub(t),i))}t.add(Gu)}return t}raycast(e,t){const n=this.geometry,i=this.material,r=this.matrixWorld;void 0!==i&&(null===n.boundingSphere&&n.computeBoundingSphere(),zu.copy(n.boundingSphere),zu.applyMatrix4(r),No.copy(e.ray).recast(e.near),(!1!==zu.containsPoint(No.origin)||!(null===No.intersectSphere(zu,ab)||No.origin.distanceToSquared(ab)>(e.far-e.near)**2))&&(sb.copy(r).invert(),No.copy(e.ray).applyMatrix4(sb),(null===n.boundingBox||!1!==No.intersectsBox(n.boundingBox))&&this._computeIntersections(e,t,No)))}_computeIntersections(e,t,n){let i;const r=this.geometry,o=this.material,s=r.index,a=r.attributes.position,l=r.attributes.uv,c=r.attributes.uv1,u=r.attributes.normal,d=r.groups,h=r.drawRange;if(null!==s)if(Array.isArray(o))for(let r=0,a=d.length;r<a;r++){const a=d[r],p=o[a.materialIndex];for(let r=Math.max(a.start,h.start),o=Math.min(s.count,Math.min(a.start+a.count,h.start+h.count));r<o;
vendor: 6,559 bytes, line 7
7r+=3){i=Xu(this,p,e,n,l,c,u,s.getX(r),s.getX(r+1),s.getX(r+2)),i&&(i.faceIndex=Math.floor(r/3),i.face.materialIndex=a.materialIndex,t.push(i))}}else{for(let r=Math.max(0,h.start),a=Math.min(s.count,h.start+h.count);r<a;r+=3){i=Xu(this,o,e,n,l,c,u,s.getX(r),s.getX(r+1),s.getX(r+2)),i&&(i.faceIndex=Math.floor(r/3),t.push(i))}}else if(void 0!==a)if(Array.isArray(o))for(let r=0,s=d.length;r<s;r++){const s=d[r],p=o[s.materialIndex];for(let r=Math.max(s.start,h.start),o=Math.min(a.count,Math.min(s.start+s.count,h.start+h.count));r<o;r+=3){i=Xu(this,p,e,n,l,c,u,r,r+1,r+2),i&&(i.faceIndex=Math.floor(r/3),i.face.materialIndex=s.materialIndex,t.push(i))}}else{for(let r=Math.max(0,h.start),s=Math.min(a.count,h.start+h.count);r<s;r+=3){i=Xu(this,o,e,n,l,c,u,r,r+1,r+2),i&&(i.faceIndex=Math.floor(r/3),t.push(i))}}}}function OD(e,t,n,i,r,o,s,a){let l;if(l=1===t.side?i.intersectTriangle(s,o,r,!0,a):i.intersectTriangle(r,o,s,0===t.side,a),null===l)return null;Wu.copy(a),Wu.applyMatrix4(e.matrixWorld);const c=n.ray.origin.distanceTo(Wu);return c<n.near||c>n.far?null:{distance:c,point:Wu.clone(),object:e}}function Xu(e,t,n,i,r,o,s,a,l,c){e.getVertexPosition(a,Hu),e.getVertexPosition(l,Vu),e.getVertexPosition(c,$u);const u=OD(e,t,n,i,Hu,Vu,$u,lb);if(u){const e=new k;Wi.getBarycoord(lb,Hu,Vu,$u,e),r&&(u.uv=Wi.getInterpolatedAttribute(r,a,l,c,e,new tt)),o&&(u.uv1=Wi.getInterpolatedAttribute(o,a,l,c,e,new tt)),s&&(u.normal=Wi.getInterpolatedAttribute(s,a,l,c,e,new k),u.normal.dot(i.direction)>0&&u.normal.multiplyScalar(-1));const t={a:a,b:l,c:c,normal:new k,materialIndex:0};Wi.getNormal(Hu,Vu,$u,t.normal),u.face=t,u.barycoord=e}return u}class Na extends Zi{constructor(e=1,t=1,n=1,i=1,r=1,o=1){super(),this.type="BoxGeometry",this.parameters={width:e,height:t,depth:n,widthSegments:i,heightSegments:r,depthSegments:o};const s=this;i=Math.floor(i),r=Math.floor(r),o=Math.floor(o);const a=[],l=[],c=[],u=[];let d=0,h=0;function p(e,t,n,i,r,o,p,f,m,g,v){const b=o/m,y=p/g,_=o/2,x=p/2,S=f/2,w=m+1,M=g+1;let E=0,T=0;const C=new k;for(let o=0;o<M;o++){const s=o*y-x;for(let a=0;a<w;a++){const d=a*b-_;C[e]=d*i,C[t]=s*r,C[n]=S,l.push(C.x,C.y,C.z),C[e]=0,C[t]=0,C[n]=f>0?1:-1,c.push(C.x,C.y,C.z),u.push(a/m),u.push(1-o/g),E+=1}}for(let e=0;e<g;e++)for(let t=0;t<m;t++){const n=d+t+w*e,i=d+t+w*(e+1),r=d+(t+1)+w*(e+1),o=d+(t+1)+w*e;a.push(n,i,o),a.push(i,r,o),T+=6}s.addGroup(h,T,v),h+=T,d+=E}p("z","y","x",-1,-1,n,t,e,o,r,0),p("z","y","x",1,-1,n,t,-e,o,r,1),p("x","z","y",1,1,e,n,t,i,o,2),p("x","z","y",1,-1,e,n,-t,i,o,3),p("x","y","z",1,-1,e,t,n,i,r,4),p("x","y","z",-1,-1,e,t,-n,i,r,5),this.setIndex(a),this.setAttribute("position",new xi(l,3)),this.setAttribute("normal",new xi(c,3)),this.setAttribute("uv",new xi(u,2))}copy(e){return super.copy(e),this.parameters=Object.assign({},e.parameters),this}static fromJSON(e){return new Na(e.width,e.height,e.depth,e.widthSegments,e.heightSegments,e.depthSegments)}}function ya(e){const t={};for(const n in e){t[n]={};for(const i in e[n]){const r=e[n][i];r&&(r.isColor||r.isMatrix3||r.isMatrix4||r.isVector2||r.isVector3||r.isVector4||r.isTexture||r.isQuaternion)?r.isRenderTargetTexture?(console.warn("UniformsUtils: Textures of render targets cannot be cloned via cloneUniforms() or mergeUniforms()."),t[n][i]=null):t[n][i]=r.clone():Array.isArray(r)?t[n][i]=r.slice():t[n][i]=r}}return t}function Gn(e){const t={};for(let n=0;n<e.length;n++){const i=ya(e[n]);for(const e in i)t[e]=i[e]}return t}function UD(e){const t=[];for(let n=0;n<e.length;n++)t.push(e[n].clone());return t}function w1(e){const t=e.getRenderTarget();return null===t?e.outputColorSpace:!0===t.isXRRenderTarget?t.texture.colorSpace:Ht.workingColorSpace}const FD={clone:ya,merge:Gn};var BD="void main() {\n\tgl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );\n}",kD="void main() {\n\tgl_FragColor = vec4( 1.0, 0.0, 0.0, 1.0 );\n}";class Qi extends ms{constructor(e){super(),this.isShaderMaterial=!0,this.type="ShaderMaterial",this.defines={},this.uniforms={},this.uniformsGroups=[],this.vertexShader=BD,this.fragmentShader=kD,this.linewidth=1,this.wireframe=!1,this.wireframeLinewidth=1,this.fog=!1,this.lights=!1,this.clipping=!1,this.forceSinglePass=!0,this.extensions={clipCullDistance:!1,multiDraw:!1},this.defaultAttributeValues={color:[1,1,1],uv:[0,0],uv1:[0,0]},this.index0AttributeName=void 0,this.uniformsNeedUpdate=!1,this.glslVersion=null,void 0!==e&&this.setValues(e)}copy(e){return super.copy(e),this.fragmentShader=e.fragmentShader,this.vertexShader=e.vertexShader,this.uniforms=ya(e.uniforms),this.uniformsGroups=UD(e.uniformsGroups),this.defines=Object.assign({},e.defines),this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this.fog=e.fog,this.lights=e.lights,this.clipping=e.clipping,this.extensions=Object.assign({},e.extensions),this.glslVersion=e.glslVersion,this}toJSON(e){const t=super.toJSON(e);t.glslVersion=this.glslVersion,t.uniforms={};for(const n in this.uniforms){const i=this.uniforms[n].value;i&&i.isTexture?t.uniforms[n]={type:"t",value:i.toJSON(e).uuid}:i&&i.isColor?t.uniforms[n]={type:"c",value:i.getHex()}:i&&i.isVector2?t.uniforms[n]={type:"v2",value:i.toArray()}:i&&i.isVector3?t.uniforms[n]={type:"v3",value:i.toArray()}:i&&i.isVector4?t.uniforms[n]={type:"v4",value:i.toArray()}:i&&i.isMatrix3?t.uniforms[n]={type:"m3",value:i.toArray()}:i&&i.isMatrix4?t.uniforms[n]={type:"m4",value:i.toArray()}:t.uniforms[n]={value:i}}Object.keys(this.defines).length>0&&(t.defines=this.defines),t.vertexShader=this.vertexShader,t.fragmentShader=this.fragmentShader,t.lights=this.lights,t.clipping=this.clipping;const n={};for(const e in this.extensions)!0===this.extensions[e]&&(n[e]=!0);return Object.keys(n).length>0&&(t.extensions=n),t}}class yv extends ei{constructor(){super(),this.isCamera=!0,this.type="Camera",this.matrixWorldInverse=new cn,this.projectionMatrix=new cn,this.projectionMatrixInverse=new cn,this.coordinateSystem=cr,this._reversedDepth=!1}get reversedDepth(){return this._reversedDepth}copy(e,t){return super.copy(e,t),this.matrixWorldInverse.copy(e.matrixWorldInverse),this.projectionMatrix.copy(e.projectionMatrix),this.projectionMatrixInverse.copy(e.projectionMatrixInverse),this.coordinateSystem=e.coordinateSystem,this}getWorldDirection(e){return super.getWorldDirection(e).negate()}updateMatrixWorld(e){super.updateMatrixWorld(e),this.matrixWorldInverse.copy(this.matrixWorld).invert()}updateWorldMatrix(e,t){super.updateWorldMatrix(e,t),this.matrixWorldInverse.copy(this.matrixWorld).invert()}clone(){return(new this.constructor).copy(this)}}
vendor: 4,650 bytes, line 7
7const to=new k,cb=new tt,ub=new tt;class ri extends yv{constructor(e=50,t=1,n=.1,i=2e3){super(),this.isPerspectiveCamera=!0,this.type="PerspectiveCamera",this.fov=e,this.zoom=1,this.near=n,this.far=i,this.focus=10,this.aspect=t,this.view=null,this.filmGauge=35,this.filmOffset=0,this.updateProjectionMatrix()}copy(e,t){return super.copy(e,t),this.fov=e.fov,this.zoom=e.zoom,this.near=e.near,this.far=e.far,this.focus=e.focus,this.aspect=e.aspect,this.view=null===e.view?null:Object.assign({},e.view),this.filmGauge=e.filmGauge,this.filmOffset=e.filmOffset,this}setFocalLength(e){const t=.5*this.getFilmHeight()/e;this.fov=2*Dl*Math.atan(t),this.updateProjectionMatrix()}getFocalLength(){const e=Math.tan(.5*cl*this.fov);return.5*this.getFilmHeight()/e}getEffectiveFOV(){return 2*Dl*Math.atan(Math.tan(.5*cl*this.fov)/this.zoom)}getFilmWidth(){return this.filmGauge*Math.min(this.aspect,1)}getFilmHeight(){return this.filmGauge/Math.max(this.aspect,1)}getViewBounds(e,t,n){to.set(-1,-1,.5).applyMatrix4(this.projectionMatrixInverse),t.set(to.x,to.y).multiplyScalar(-e/to.z),to.set(1,1,.5).applyMatrix4(this.projectionMatrixInverse),n.set(to.x,to.y).multiplyScalar(-e/to.z)}getViewSize(e,t){return this.getViewBounds(e,cb,ub),t.subVectors(ub,cb)}setViewOffset(e,t,n,i,r,o){this.aspect=e/t,null===this.view&&(this.view={enabled:!0,fullWidth:1,fullHeight:1,offsetX:0,offsetY:0,width:1,height:1}),this.view.enabled=!0,this.view.fullWidth=e,this.view.fullHeight=t,this.view.offsetX=n,this.view.offsetY=i,this.view.width=r,this.view.height=o,this.updateProjectionMatrix()}clearViewOffset(){null!==this.view&&(this.view.enabled=!1),this.updateProjectionMatrix()}updateProjectionMatrix(){const e=this.near;let t=e*Math.tan(.5*cl*this.fov)/this.zoom,n=2*t,i=this.aspect*n,r=-.5*i;const o=this.view;if(null!==this.view&&this.view.enabled){const e=o.fullWidth,s=o.fullHeight;r+=o.offsetX*i/e,t-=o.offsetY*n/s,i*=o.width/e,n*=o.height/s}const s=this.filmOffset;0!==s&&(r+=e*s/this.getFilmWidth()),this.projectionMatrix.makePerspective(r,r+i,t,t-n,e,this.far,this.coordinateSystem,this.reversedDepth),this.projectionMatrixInverse.copy(this.projectionMatrix).invert()}toJSON(e){const t=super.toJSON(e);return t.object.fov=this.fov,t.object.zoom=this.zoom,t.object.near=this.near,t.object.far=this.far,t.object.focus=this.focus,t.object.aspect=this.aspect,null!==this.view&&(t.object.view=Object.assign({},this.view)),t.object.filmGauge=this.filmGauge,t.object.filmOffset=this.filmOffset,t}}const Ls=-90,Ds=1;class zD extends ei{constructor(e,t,n){super(),this.type="CubeCamera",this.renderTarget=n,this.coordinateSystem=null,this.activeMipmapLevel=0;const i=new ri(Ls,1,e,t);i.layers=this.layers,this.add(i);const r=new ri(Ls,1,e,t);r.layers=this.layers,this.add(r);const o=new ri(Ls,1,e,t);o.layers=this.layers,this.add(o);const s=new ri(Ls,1,e,t);s.layers=this.layers,this.add(s);const a=new ri(Ls,1,e,t);a.layers=this.layers,this.add(a);const l=new ri(Ls,1,e,t);l.layers=this.layers,this.add(l)}updateCoordinateSystem(){const e=this.coordinateSystem,t=this.children.concat(),[n,i,r,o,s,a]=t;for(const e of t)this.remove(e);if(e===cr)n.up.set(0,1,0),n.lookAt(1,0,0),i.up.set(0,1,0),i.lookAt(-1,0,0),r.up.set(0,0,-1),r.lookAt(0,1,0),o.up.set(0,0,1),o.lookAt(0,-1,0),s.up.set(0,1,0),s.lookAt(0,0,1),a.up.set(0,1,0),a.lookAt(0,0,-1);else{if(e!==Ud)throw new Error("THREE.CubeCamera.updateCoordinateSystem(): Invalid coordinate system: "+e);n.up.set(0,-1,0),n.lookAt(-1,0,0),i.up.set(0,-1,0),i.lookAt(1,0,0),r.up.set(0,0,1),r.lookAt(0,1,0),o.up.set(0,0,-1),o.lookAt(0,-1,0),s.up.set(0,-1,0),s.lookAt(0,0,1),a.up.set(0,-1,0),a.lookAt(0,0,-1)}for(const e of t)this.add(e),e.updateMatrixWorld()}update(e,t){null===this.parent&&this.updateMatrixWorld();const{renderTarget:n,activeMipmapLevel:i}=this;this.coordinateSystem!==e.coordinateSystem&&(this.coordinateSystem=e.coordinateSystem,this.updateCoordinateSystem());const[r,o,s,a,l,c]=this.children,u=e.getRenderTarget(),d=e.getActiveCubeFace(),h=e.getActiveMipmapLevel(),p=e.xr.enabled;e.xr.enabled=!1;const f=n.texture.generateMipmaps;n.texture.generateMipmaps=!1,e.setRenderTarget(n,0,i),e.render(t,r),e.setRenderTarget(n,1,i),e.render(t,o),e.setRenderTarget(n,2,i),e.render(t,s),e.setRenderTarget(n,3,i),e.render(t,a),e.setRenderTarget(n,4,i),e.render(t,l),n.texture.generateMipmaps=f,e.setRenderTarget(n,5,i),e.render(t,c),e.setRenderTarget(u,d,h),e.xr.enabled=p,n.texture.needsPMREMUpdate=!0}}class M1 extends Un{constructor(e=[],t=va,n,i,r,o,s,a,l,c){super(e,t,n,i,r,o,s,a,l,c),this.isCubeTexture=!0,this.flipY=!1}get images(){return this.image}set images(e){this.image=e}}class HD extends ji{constructor(e=1,t={}
vendor: 7,096 bytes, line 7
7){super(e,e,t),this.isWebGLCubeRenderTarget=!0;const n={width:e,height:e,depth:1},i=[n,n,n,n,n,n];this.texture=new M1(i),this._setTextureOptions(t),this.texture.isRenderTargetTexture=!0}fromEquirectangularTexture(e,t){this.texture.type=t.type,this.texture.colorSpace=t.colorSpace,this.texture.generateMipmaps=t.generateMipmaps,this.texture.minFilter=t.minFilter,this.texture.magFilter=t.magFilter;const n={uniforms:{tEquirect:{value:null}},vertexShader:"\n\n\t\t\t\tvarying vec3 vWorldDirection;\n\n\t\t\t\tvec3 transformDirection( in vec3 dir, in mat4 matrix ) {\n\n\t\t\t\t\treturn normalize( ( matrix * vec4( dir, 0.0 ) ).xyz );\n\n\t\t\t\t}\n\n\t\t\t\tvoid main() {\n\n\t\t\t\t\tvWorldDirection = transformDirection( position, modelMatrix );\n\n\t\t\t\t\t#include <begin_vertex>\n\t\t\t\t\t#include <project_vertex>\n\n\t\t\t\t}\n\t\t\t",fragmentShader:"\n\n\t\t\t\tuniform sampler2D tEquirect;\n\n\t\t\t\tvarying vec3 vWorldDirection;\n\n\t\t\t\t#include <common>\n\n\t\t\t\tvoid main() {\n\n\t\t\t\t\tvec3 direction = normalize( vWorldDirection );\n\n\t\t\t\t\tvec2 sampleUV = equirectUv( direction );\n\n\t\t\t\t\tgl_FragColor = texture2D( tEquirect, sampleUV );\n\n\t\t\t\t}\n\t\t\t"},i=new Na(5,5,5),r=new Qi({name:"CubemapFromEquirect",uniforms:ya(n.uniforms),vertexShader:n.vertexShader,fragmentShader:n.fragmentShader,side:1,blending:0});r.uniforms.tEquirect.value=t;const o=new On(i,r),s=t.minFilter;return t.minFilter===Go&&(t.minFilter=zn),new zD(1,10,this).update(e,o),t.minFilter=s,o.geometry.dispose(),o.material.dispose(),this}clear(e,t=!0,n=!0,i=!0){const r=e.getRenderTarget();for(let r=0;r<6;r++)e.setRenderTarget(this,r),e.clear(t,n,i);e.setRenderTarget(r)}}class Br extends ei{constructor(){super(),this.isGroup=!0,this.type="Group"}}const VD={type:"move"};class gh{constructor(){this._targetRay=null,this._grip=null,this._hand=null}getHandSpace(){return null===this._hand&&(this._hand=new Br,this._hand.matrixAutoUpdate=!1,this._hand.visible=!1,this._hand.joints={},this._hand.inputState={pinching:!1}),this._hand}getTargetRaySpace(){return null===this._targetRay&&(this._targetRay=new Br,this._targetRay.matrixAutoUpdate=!1,this._targetRay.visible=!1,this._targetRay.hasLinearVelocity=!1,this._targetRay.linearVelocity=new k,this._targetRay.hasAngularVelocity=!1,this._targetRay.angularVelocity=new k),this._targetRay}getGripSpace(){return null===this._grip&&(this._grip=new Br,this._grip.matrixAutoUpdate=!1,this._grip.visible=!1,this._grip.hasLinearVelocity=!1,this._grip.linearVelocity=new k,this._grip.hasAngularVelocity=!1,this._grip.angularVelocity=new k),this._grip}dispatchEvent(e){return null!==this._targetRay&&this._targetRay.dispatchEvent(e),null!==this._grip&&this._grip.dispatchEvent(e),null!==this._hand&&this._hand.dispatchEvent(e),this}connect(e){if(e&&e.hand){const t=this._hand;if(t)for(const n of e.hand.values())this._getHandJoint(t,n)}return this.dispatchEvent({type:"connected",data:e}),this}disconnect(e){return this.dispatchEvent({type:"disconnected",data:e}),null!==this._targetRay&&(this._targetRay.visible=!1),null!==this._grip&&(this._grip.visible=!1),null!==this._hand&&(this._hand.visible=!1),this}update(e,t,n){let i=null,r=null,o=null;const s=this._targetRay,a=this._grip,l=this._hand;if(e&&"visible-blurred"!==t.session.visibilityState){if(l&&e.hand){o=!0;for(const i of e.hand.values()){const e=t.getJointPose(i,n),r=this._getHandJoint(l,i);null!==e&&(r.matrix.fromArray(e.transform.matrix),r.matrix.decompose(r.position,r.rotation,r.scale),r.matrixWorldNeedsUpdate=!0,r.jointRadius=e.radius),r.visible=null!==e}const i=l.joints["index-finger-tip"],r=l.joints["thumb-tip"],s=i.position.distanceTo(r.position),a=.02,c=.005;l.inputState.pinching&&s>a+c?(l.inputState.pinching=!1,this.dispatchEvent({type:"pinchend",handedness:e.handedness,target:this})):!l.inputState.pinching&&s<=a-c&&(l.inputState.pinching=!0,this.dispatchEvent({type:"pinchstart",handedness:e.handedness,target:this}))}else null!==a&&e.gripSpace&&(r=t.getPose(e.gripSpace,n),null!==r&&(a.matrix.fromArray(r.transform.matrix),a.matrix.decompose(a.position,a.rotation,a.scale),a.matrixWorldNeedsUpdate=!0,r.linearVelocity?(a.hasLinearVelocity=!0,a.linearVelocity.copy(r.linearVelocity)):a.hasLinearVelocity=!1,r.angularVelocity?(a.hasAngularVelocity=!0,a.angularVelocity.copy(r.angularVelocity)):a.hasAngularVelocity=!1));null!==s&&(i=t.getPose(e.targetRaySpace,n),null===i&&null!==r&&(i=r),null!==i&&(s.matrix.fromArray(i.transform.matrix),s.matrix.decompose(s.position,s.rotation,s.scale),s.matrixWorldNeedsUpdate=!0,i.linearVelocity?(s.hasLinearVelocity=!0,s.linearVelocity.copy(i.linearVelocity)):s.hasLinearVelocity=!1,i.angularVelocity?(s.hasAngularVelocity=!0,s.angularVelocity.copy(i.angularVelocity)):s.hasAngularVelocity=!1,this.dispatchEvent(VD)))}return null!==s&&(s.visible=null!==i),null!==a&&(a.visible=null!==r),null!==l&&(l.visible=null!==o),this}_getHandJoint(e,t){if(void 0===e.joints[t.jointName]){const n=new Br;n.matrixAutoUpdate=!1,n.visible=!1,e.joints[t.jointName]=n,e.add(n)}return e.joints[t.jointName]}}class Bd extends ei{constructor(){super(),this.isScene=!0,this.type="Scene",this.background=null,this.environment=null,this.fog=null,this.backgroundBlurriness=0,this.backgroundIntensity=1,this.backgroundRotation=new Ki,this.environmentIntensity=1,this.environmentRotation=new Ki,this.overrideMaterial=null,typeof __THREE_DEVTOOLS__<"u"&&__THREE_DEVTOOLS__.dispatchEvent(new CustomEvent("observe",{detail:this}))}copy(e,t){return super.copy(e,t),null!==e.background&&(this.background=e.background.clone()),null!==e.environment&&(this.environment=e.environment.clone()),null!==e.fog&&(this.fog=e.fog.clone()),this.backgroundBlurriness=e.backgroundBlurriness,this.backgroundIntensity=e.backgroundIntensity,this.backgroundRotation.copy(e.backgroundRotation),this.environmentIntensity=e.environmentIntensity,this.environmentRotation.copy(e.environmentRotation),null!==e.overrideMaterial&&(this.overrideMaterial=e.overrideMaterial.clone()),this.matrixAutoUpdate=e.matrixAutoUpdate,this}toJSON(e){const t=super.toJSON(e);return null!==this.fog&&(t.object.fog=this.fog.toJSON()),this.backgroundBlurriness>0&&(t.object.backgroundBlurriness=this.backgroundBlurriness),1!==this.backgroundIntensity&&(t.object.backgroundIntensity=this.backgroundIntensity),t.object.backgroundRotation=this.backgroundRotation.toArray(),1!==this.environmentIntensity&&(t.object.environmentIntensity=this.environmentIntensity),t.object.environmentRotation=this.environmentRotation.toArray(),t}}class $D extends Un{constructor(e=null,t=1,n=1,i,r,o,s,a,l=_i,c=_i,u,d){super(null,o,s,a,l,c,i,r,u,d),this.isDataTexture=!0,this.image={data:e,width:t,height:n},this.generateMipmaps=!1,this.flipY=!1,this.unpackAlignment=1}}const bh=new k,GD=new k,WD=new Ct;class ko{constructor(e=new k(1,0,0),t=0){this.isPlane=!0,this.normal=e,this.constant=t}set(e,t){return this.normal.copy(e),this.constant=t,this}setComponents(e,t,n,i){return this.normal.set(e,t,n),this.constant=i,this}setFromNormalAndCoplanarPoint(e,t){return this.normal.copy(e),this.constant=-t.dot(this.normal),this}
vendor: 12,842 bytes, line 7
7setFromCoplanarPoints(e,t,n){const i=bh.subVectors(n,t).cross(GD.subVectors(e,t)).normalize();return this.setFromNormalAndCoplanarPoint(i,e),this}copy(e){return this.normal.copy(e.normal),this.constant=e.constant,this}normalize(){const e=1/this.normal.length();return this.normal.multiplyScalar(e),this.constant*=e,this}negate(){return this.constant*=-1,this.normal.negate(),this}distanceToPoint(e){return this.normal.dot(e)+this.constant}distanceToSphere(e){return this.distanceToPoint(e.center)-e.radius}projectPoint(e,t){return t.copy(e).addScaledVector(this.normal,-this.distanceToPoint(e))}intersectLine(e,t){const n=e.delta(bh),i=this.normal.dot(n);if(0===i)return 0===this.distanceToPoint(e.start)?t.copy(e.start):null;const r=-(e.start.dot(this.normal)+this.constant)/i;return r<0||r>1?null:t.copy(e.start).addScaledVector(n,r)}intersectsLine(e){const t=this.distanceToPoint(e.start),n=this.distanceToPoint(e.end);return t<0&&n>0||n<0&&t>0}intersectsBox(e){return e.intersectsPlane(this)}intersectsSphere(e){return e.intersectsPlane(this)}coplanarPoint(e){return e.copy(this.normal).multiplyScalar(-this.constant)}applyMatrix4(e,t){const n=t||WD.getNormalMatrix(e),i=this.coplanarPoint(bh).applyMatrix4(e),r=this.normal.applyMatrix3(n).normalize();return this.constant=-i.dot(r),this}translate(e){return this.constant-=e.dot(this.normal),this}equals(e){return e.normal.equals(this.normal)&&e.constant===this.constant}clone(){return(new this.constructor).copy(this)}}const Oo=new _v,XD=new tt(.5,.5),qu=new k;class xv{constructor(e=new ko,t=new ko,n=new ko,i=new ko,r=new ko,o=new ko){this.planes=[e,t,n,i,r,o]}set(e,t,n,i,r,o){const s=this.planes;return s[0].copy(e),s[1].copy(t),s[2].copy(n),s[3].copy(i),s[4].copy(r),s[5].copy(o),this}copy(e){const t=this.planes;for(let n=0;n<6;n++)t[n].copy(e.planes[n]);return this}setFromProjectionMatrix(e,t=cr,n=!1){const i=this.planes,r=e.elements,o=r[0],s=r[1],a=r[2],l=r[3],c=r[4],u=r[5],d=r[6],h=r[7],p=r[8],f=r[9],m=r[10],g=r[11],v=r[12],b=r[13],y=r[14],_=r[15];if(i[0].setComponents(l-o,h-c,g-p,_-v).normalize(),i[1].setComponents(l+o,h+c,g+p,_+v).normalize(),i[2].setComponents(l+s,h+u,g+f,_+b).normalize(),i[3].setComponents(l-s,h-u,g-f,_-b).normalize(),n)i[4].setComponents(a,d,m,y).normalize(),i[5].setComponents(l-a,h-d,g-m,_-y).normalize();else if(i[4].setComponents(l-a,h-d,g-m,_-y).normalize(),t===cr)i[5].setComponents(l+a,h+d,g+m,_+y).normalize();else{if(t!==Ud)throw new Error("THREE.Frustum.setFromProjectionMatrix(): Invalid coordinate system: "+t);i[5].setComponents(a,d,m,y).normalize()}return this}intersectsObject(e){if(void 0!==e.boundingSphere)null===e.boundingSphere&&e.computeBoundingSphere(),Oo.copy(e.boundingSphere).applyMatrix4(e.matrixWorld);else{const t=e.geometry;null===t.boundingSphere&&t.computeBoundingSphere(),Oo.copy(t.boundingSphere).applyMatrix4(e.matrixWorld)}return this.intersectsSphere(Oo)}intersectsSprite(e){Oo.center.set(0,0,0);const t=XD.distanceTo(e.center);return Oo.radius=.7071067811865476+t,Oo.applyMatrix4(e.matrixWorld),this.intersectsSphere(Oo)}intersectsSphere(e){const t=this.planes,n=e.center,i=-e.radius;for(let e=0;e<6;e++)if(t[e].distanceToPoint(n)<i)return!1;return!0}intersectsBox(e){const t=this.planes;for(let n=0;n<6;n++){const i=t[n];if(qu.x=i.normal.x>0?e.max.x:e.min.x,qu.y=i.normal.y>0?e.max.y:e.min.y,qu.z=i.normal.z>0?e.max.z:e.min.z,i.distanceToPoint(qu)<0)return!1}return!0}containsPoint(e){const t=this.planes;for(let n=0;n<6;n++)if(t[n].distanceToPoint(e)<0)return!1;return!0}clone(){return(new this.constructor).copy(this)}}class Sv extends Un{constructor(e,t,n=xo,i,r,o,s=_i,a=_i,l,c=Ll,u=1){if(c!==Ll&&c!==_a)throw new Error("DepthTexture format must be either THREE.DepthFormat or THREE.DepthStencilFormat");super({width:e,height:t,depth:u},i,r,o,s,a,c,n,l),this.isDepthTexture=!0,this.flipY=!1,this.generateMipmaps=!1,this.compareFunction=null}copy(e){return super.copy(e),this.source=new bv(Object.assign({},e.image)),this.compareFunction=e.compareFunction,this}toJSON(e){const t=super.toJSON(e);return null!==this.compareFunction&&(t.compareFunction=this.compareFunction),t}}class T1 extends Un{constructor(e=null){super(),this.sourceTexture=e,this.isExternalTexture=!0}copy(e){return super.copy(e),this.sourceTexture=e.sourceTexture,this}}class xr{constructor(){this.type="Curve",this.arcLengthDivisions=200,this.needsUpdate=!1,this.cacheArcLengths=null}getPoint(){console.warn("THREE.Curve: .getPoint() not implemented.")}getPointAt(e,t){const n=this.getUtoTmapping(e);return this.getPoint(n,t)}getPoints(e=5){const t=[];for(let n=0;n<=e;n++)t.push(this.getPoint(n/e));return t}getSpacedPoints(e=5){const t=[];for(let n=0;n<=e;n++)t.push(this.getPointAt(n/e));return t}getLength(){const e=this.getLengths();return e[e.length-1]}getLengths(e=this.arcLengthDivisions){if(this.cacheArcLengths&&this.cacheArcLengths.length===e+1&&!this.needsUpdate)return this.cacheArcLengths;this.needsUpdate=!1;const t=[];let n,i=this.getPoint(0),r=0;t.push(0);for(let o=1;o<=e;o++)n=this.getPoint(o/e),r+=n.distanceTo(i),t.push(r),i=n;return this.cacheArcLengths=t,t}updateArcLengths(){this.needsUpdate=!0,this.getLengths()}getUtoTmapping(e,t=null){const n=this.getLengths();let i=0;const r=n.length;let o;o=t||e*n[r-1];let s,a=0,l=r-1;for(;a<=l;)if(i=Math.floor(a+(l-a)/2),s=n[i]-o,s<0)a=i+1;else{if(!(s>0)){l=i;break}l=i-1}if(i=l,n[i]===o)return i/(r-1);const c=n[i];return(i+(o-c)/(n[i+1]-c))/(r-1)}getTangent(e,t){let n=e-1e-4,i=e+1e-4;n<0&&(n=0),i>1&&(i=1);const r=this.getPoint(n),o=this.getPoint(i),s=t||(r.isVector2?new tt:new k);return s.copy(o).sub(r).normalize(),s}getTangentAt(e,t){const n=this.getUtoTmapping(e);return this.getTangent(n,t)}computeFrenetFrames(e,t=!1){const n=new k,i=[],r=[],o=[],s=new k,a=new cn;for(let t=0;t<=e;t++){const n=t/e;i[t]=this.getTangentAt(n,new k)}r[0]=new k,o[0]=new k;let l=Number.MAX_VALUE;const c=Math.abs(i[0].x),u=Math.abs(i[0].y),d=Math.abs(i[0].z);c<=l&&(l=c,n.set(1,0,0)),u<=l&&(l=u,n.set(0,1,0)),d<=l&&n.set(0,0,1),s.crossVectors(i[0],n).normalize(),r[0].crossVectors(i[0],s),o[0].crossVectors(i[0],r[0]);for(let t=1;t<=e;t++){if(r[t]=r[t-1].clone(),o[t]=o[t-1].clone(),s.crossVectors(i[t-1],i[t]),s.length()>Number.EPSILON){s.normalize();const e=Math.acos(It(i[t-1].dot(i[t]),-1,1));r[t].applyMatrix4(a.makeRotationAxis(s,e))}o[t].crossVectors(i[t],r[t])}if(!0===t){let t=Math.acos(It(r[0].dot(r[e]),-1,1));t/=e,i[0].dot(s.crossVectors(r[0],r[e]))>0&&(t=-t);for(let n=1;n<=e;n++)r[n].applyMatrix4(a.makeRotationAxis(i[n],t*n)),o[n].crossVectors(i[n],r[n])}return{tangents:i,normals:r,binormals:o}}clone(){return(new this.constructor).copy(this)}copy(e){return this.arcLengthDivisions=e.arcLengthDivisions,this}toJSON(){const e={metadata:{version:4.7,type:"Curve",generator:"Curve.toJSON"}};return e.arcLengthDivisions=this.arcLengthDivisions,e.type=this.type,e}fromJSON(e){return this.arcLengthDivisions=e.arcLengthDivisions,this}}class A1 extends xr{constructor(e=0,t=0,n=1,i=1,r=0,o=2*Math.PI,s=!1,a=0){super(),this.isEllipseCurve=!0,this.type="EllipseCurve",this.aX=e,this.aY=t,this.xRadius=n,this.yRadius=i,this.aStartAngle=r,this.aEndAngle=o,this.aClockwise=s,this.aRotation=a}getPoint(e,t=new tt){const n=t,i=2*Math.PI;let r=this.aEndAngle-this.aStartAngle;const o=Math.abs(r)<Number.EPSILON;for(;r<0;)r+=i;for(;r>i;)r-=i;r<Number.EPSILON&&(r=o?0:i),!0===this.aClockwise&&!o&&(r===i?r=-i:r-=i);const s=this.aStartAngle+e*r;let a=this.aX+this.xRadius*Math.cos(s),l=this.aY+this.yRadius*Math.sin(s);if(0!==this.aRotation){const e=Math.cos(this.aRotation),t=Math.sin(this.aRotation),n=a-this.aX,i=l-this.aY;a=n*e-i*t+this.aX,l=n*t+i*e+this.aY}return n.set(a,l)}copy(e){return super.copy(e),this.aX=e.aX,this.aY=e.aY,this.xRadius=e.xRadius,this.yRadius=e.yRadius,this.aStartAngle=e.aStartAngle,this.aEndAngle=e.aEndAngle,this.aClockwise=e.aClockwise,this.aRotation=e.aRotation,this}toJSON(){const e=super.toJSON();return e.aX=this.aX,e.aY=this.aY,e.xRadius=this.xRadius,e.yRadius=this.yRadius,e.aStartAngle=this.aStartAngle,e.aEndAngle=this.aEndAngle,e.aClockwise=this.aClockwise,e.aRotation=this.aRotation,e}fromJSON(e){return super.fromJSON(e),this.aX=e.aX,this.aY=e.aY,this.xRadius=e.xRadius,this.yRadius=e.yRadius,this.aStartAngle=e.aStartAngle,this.aEndAngle=e.aEndAngle,this.aClockwise=e.aClockwise,this.aRotation=e.aRotation,this}}class qD extends A1{constructor(e,t,n,i,r,o){super(e,t,n,n,i,r,o),this.isArcCurve=!0,this.type="ArcCurve"}}function Ev(){let e=0,t=0,n=0,i=0;function r(r,o,s,a){e=r,t=s,n=-3*r+3*o-2*s-a,i=2*r-2*o+s+a}return{initCatmullRom:function(e,t,n,i,o){r(t,n,o*(n-e),o*(i-t))},initNonuniformCatmullRom:function(e,t,n,i,o,s,a){let l=(t-e)/o-(n-e)/(o+s)+(n-t)/s,c=(n-t)/s-(i-t)/(s+a)+(i-n)/a;l*=s,c*=s,r(t,n,l,c)},calc:function(r){const o=r*r;return e+t*r+n*o+i*(o*r)}}}const Yu=new k,_h=new Ev,yh=new Ev,xh=new Ev;class C1 extends xr{constructor(e=[],t=!1,n="centripetal",i=.5){super(),this.isCatmullRomCurve3=!0,this.type="CatmullRomCurve3",this.points=e,this.closed=t,this.curveType=n,this.tension=i}getPoint(e,t=new k){const n=t,i=this.points,r=i.length,o=(r-(this.closed?0:1))*e;let s,a,l=Math.floor(o),c=o-l;this.closed?l+=l>0?0:(Math.floor(Math.abs(l)/r)+1)*r:0===c&&l===r-1&&(l=r-2,c=1),this.closed||l>0?s=i[(l-1)%r]:(Yu.subVectors(i[0],i[1]).add(i[0]),s=Yu);const u=i[l%r],d=i[(l+1)%r];if(this.closed||l+2<r?a=i[(l+2)%r]:(Yu.subVectors(i[r-1],i[r-2]).add(i[r-1]),a=Yu),"centripetal"===this.curveType||"chordal"===this.curveType){const e="chordal"===this.curveType?.5:.25;let t=Math.pow(s.distanceToSquared(u),e),n=Math.pow(u.distanceToSquared(d),e),i=Math.pow(d.distanceToSquared(a),e);n<1e-4&&(n=1),t<1e-4&&(t=n),i<1e-4&&(i=n),_h.initNonuniformCatmullRom(s.x,u.x,d.x,a.x,t,n,i),yh.initNonuniformCatmullRom(s.y,u.y,d.y,a.y,t,n,i),xh.initNonuniformCatmullRom(s.z,u.z,d.z,a.z,t,n,i)}else"catmullrom"===this.curveType&&(_h.initCatmullRom(s.x,u.x,d.x,a.x,this.tension),yh.initCatmullRom(s.y,u.y,d.y,a.y,this.tension),xh.initCatmullRom(s.z,u.z,d.z,a.z,this.tension));return n.set(_h.calc(c),yh.calc(c),xh.calc(c)),n}copy(e){super.copy(e),this.points=[];for(let t=0,n=e.points.length;t<n;t++){const n=e.points[t];this.points.push(n.clone())}return this.closed=e.closed,this.curveType=e.curveType,this.tension=e.tension,this}toJSON(){const e=super.toJSON();e.points=[];for(let t=0,n=this.points.length;t<n;t++){const n=this.points[t];e.points.push(n.toArray())}return e.closed=this.closed,e.curveType=this.curveType,e.tension=this.tension,e}fromJSON(e){super.fromJSON(e),this.points=[];for(let t=0,n=e.points.length;t<n;t++){const n=e.points[t];this.points.push((new k).fromArray(n))}return this.closed=e.closed,this.curveType=e.curveType,this.tension=e.tension,this}}function db(e,t,n,i,r){const o=.5*(i-t),s=.5*(r-n),a=e*e;return(2*n-2*i+o+s)*(e*a)+(-3*n+3*i-2*o-s)*a+o*e+n}function YD(e,t){const n=1-e;return n*n*t}function jD(e,t){return 2*(1-e)*e*t}function KD(e,t){return e*e*t}function dl(e,t,n,i){return YD(e,t)+jD(e,n)+KD(e,i)}function QD(e,t){const n=1-e;return n*n*n*t}function ZD(e,t){const n=1-e;return 3*n*n*e*t}function JD(e,t){return 3*(1-e)*e*e*t}function eI(e,t){return e*e*e*t}function fl(e,t,n,i,r){return QD(e,t)+ZD(e,n)+JD(e,i)+eI(e,r)}class tl extends xr{constructor(e=new tt,t=new tt,n=new tt,i=new tt){super(),this.isCubicBezierCurve=!0,this.type="CubicBezierCurve",this.v0=e,this.v1=t,this.v2=n,this.v3=i}getPoint(e,t=new tt){const n=t,i=this.v0,r=this.v1,o=this.v2,s=this.v3;return n.set(fl(e,i.x,r.x,o.x,s.x),fl(e,i.y,r.y,o.y,s.y)),n}copy(e){return super.copy(e),this.v0.copy(e.v0),this.v1.copy(e.v1),this.v2.copy(e.v2),this.v3.copy(e.v3),this}toJSON(){const e=super.toJSON();return e.v0=this.v0.toArray(),e.v1=this.v1.toArray(),e.v2=this.v2.toArray(),e.v3=this.v3.toArray(),e}fromJSON(e){return super.fromJSON(e),this.v0.fromArray(e.v0),this.v1.fromArray(e.v1),this.v2.fromArray(e.v2),this.v3.fromArray(e.v3),this}}class tI extends xr{constructor(e=new k,t=new k,n=new k,i=new k){super(),this.isCubicBezierCurve3=!0,this.type="CubicBezierCurve3",this.v0=e,this.v1=t,this.v2=n,this.v3=i}getPoint(e,t=new k){const n=t,i=this.v0,r=this.v1,o=this.v2,s=this.v3;return n.set(fl(e,i.x,r.x,o.x,s.x),fl(e,i.y,r.y,o.y,s.y),fl(e,i.z,r.z,o.z,s.z)),n}copy(e){return super.copy(e),this.v0.copy(e.v0),this.v1.copy(e.v1),this.v2.copy(e.v2),this.v3.copy(e.v3),this}toJSON(){const e=super.toJSON();return e.v0=this.v0.toArray(),e.v1=this.v1.toArray(),e.v2=this.v2.toArray(),e.v3=this.v3.toArray(),e}fromJSON(e){return super.fromJSON(e),this.v0.fromArray(e.v0),this.v1.fromArray(e.v1),this.v2.fromArray(e.v2),this.v3.fromArray(e.v3),this}}class P1 extends xr{constructor(e=new tt,t=new tt){super(),this.isLineCurve=!0,this.type="LineCurve",this.v1=e,this.v2=t}getPoint(e,t=new tt){const n=t;return 1===e?n.copy(this.v2):(n.copy(this.v2).sub(this.v1),n.multiplyScalar(e).add(this.v1)),n}getPointAt(e,t){return this.getPoint(e,t)}
vendor: 4,414 bytes, line 7
7getTangent(e,t=new tt){return t.subVectors(this.v2,this.v1).normalize()}getTangentAt(e,t){return this.getTangent(e,t)}copy(e){return super.copy(e),this.v1.copy(e.v1),this.v2.copy(e.v2),this}toJSON(){const e=super.toJSON();return e.v1=this.v1.toArray(),e.v2=this.v2.toArray(),e}fromJSON(e){return super.fromJSON(e),this.v1.fromArray(e.v1),this.v2.fromArray(e.v2),this}}class nI extends xr{constructor(e=new k,t=new k){super(),this.isLineCurve3=!0,this.type="LineCurve3",this.v1=e,this.v2=t}getPoint(e,t=new k){const n=t;return 1===e?n.copy(this.v2):(n.copy(this.v2).sub(this.v1),n.multiplyScalar(e).add(this.v1)),n}getPointAt(e,t){return this.getPoint(e,t)}getTangent(e,t=new k){return t.subVectors(this.v2,this.v1).normalize()}getTangentAt(e,t){return this.getTangent(e,t)}copy(e){return super.copy(e),this.v1.copy(e.v1),this.v2.copy(e.v2),this}toJSON(){const e=super.toJSON();return e.v1=this.v1.toArray(),e.v2=this.v2.toArray(),e}fromJSON(e){return super.fromJSON(e),this.v1.fromArray(e.v1),this.v2.fromArray(e.v2),this}}class iI extends xr{constructor(e=new tt,t=new tt,n=new tt){super(),this.isQuadraticBezierCurve=!0,this.type="QuadraticBezierCurve",this.v0=e,this.v1=t,this.v2=n}getPoint(e,t=new tt){const n=t,i=this.v0,r=this.v1,o=this.v2;return n.set(dl(e,i.x,r.x,o.x),dl(e,i.y,r.y,o.y)),n}copy(e){return super.copy(e),this.v0.copy(e.v0),this.v1.copy(e.v1),this.v2.copy(e.v2),this}toJSON(){const e=super.toJSON();return e.v0=this.v0.toArray(),e.v1=this.v1.toArray(),e.v2=this.v2.toArray(),e}fromJSON(e){return super.fromJSON(e),this.v0.fromArray(e.v0),this.v1.fromArray(e.v1),this.v2.fromArray(e.v2),this}}class rI extends xr{constructor(e=new k,t=new k,n=new k){super(),this.isQuadraticBezierCurve3=!0,this.type="QuadraticBezierCurve3",this.v0=e,this.v1=t,this.v2=n}getPoint(e,t=new k){const n=t,i=this.v0,r=this.v1,o=this.v2;return n.set(dl(e,i.x,r.x,o.x),dl(e,i.y,r.y,o.y),dl(e,i.z,r.z,o.z)),n}copy(e){return super.copy(e),this.v0.copy(e.v0),this.v1.copy(e.v1),this.v2.copy(e.v2),this}toJSON(){const e=super.toJSON();return e.v0=this.v0.toArray(),e.v1=this.v1.toArray(),e.v2=this.v2.toArray(),e}fromJSON(e){return super.fromJSON(e),this.v0.fromArray(e.v0),this.v1.fromArray(e.v1),this.v2.fromArray(e.v2),this}}class oI extends xr{constructor(e=[]){super(),this.isSplineCurve=!0,this.type="SplineCurve",this.points=e}getPoint(e,t=new tt){const n=t,i=this.points,r=(i.length-1)*e,o=Math.floor(r),s=r-o,a=i[0===o?o:o-1],l=i[o],c=i[o>i.length-2?i.length-1:o+1],u=i[o>i.length-3?i.length-1:o+2];return n.set(db(s,a.x,l.x,c.x,u.x),db(s,a.y,l.y,c.y,u.y)),n}copy(e){super.copy(e),this.points=[];for(let t=0,n=e.points.length;t<n;t++){const n=e.points[t];this.points.push(n.clone())}return this}toJSON(){const e=super.toJSON();e.points=[];for(let t=0,n=this.points.length;t<n;t++){const n=this.points[t];e.points.push(n.toArray())}return e}fromJSON(e){super.fromJSON(e),this.points=[];for(let t=0,n=e.points.length;t<n;t++){const n=e.points[t];this.points.push((new tt).fromArray(n))}return this}}var fb=Object.freeze({__proto__:null,ArcCurve:qD,CatmullRomCurve3:C1,CubicBezierCurve:tl,CubicBezierCurve3:tI,EllipseCurve:A1,LineCurve:P1,LineCurve3:nI,QuadraticBezierCurve:iI,QuadraticBezierCurve3:rI,SplineCurve:oI});class sI extends xr{constructor(){super(),this.type="CurvePath",this.curves=[],this.autoClose=!1}add(e){this.curves.push(e)}closePath(){const e=this.curves[0].getPoint(0),t=this.curves[this.curves.length-1].getPoint(1);if(!e.equals(t)){const n=!0===e.isVector2?"LineCurve":"LineCurve3";this.curves.push(new fb[n](t,e))}return this}getPoint(e,t){const n=e*this.getLength(),i=this.getCurveLengths();let r=0;for(;r<i.length;){if(i[r]>=n){const e=i[r]-n,o=this.curves[r],s=o.getLength(),a=0===s?0:1-e/s;return o.getPointAt(a,t)}r++}return null}getLength(){const e=this.getCurveLengths();return e[e.length-1]}updateArcLengths(){this.needsUpdate=!0,this.cacheLengths=null,this.getCurveLengths()}getCurveLengths(){if(this.cacheLengths&&this.cacheLengths.length===this.curves.length)return this.cacheLengths;const e=[];let t=0;for(let n=0,i=this.curves.length;n<i;n++)t+=this.curves[n].getLength(),e.push(t);return this.cacheLengths=e,e}getSpacedPoints(e=40){const t=[];for(let n=0;n<=e;n++)t.push(this.getPoint(n/e));return this.autoClose&&t.push(t[0]),t}getPoints(e=12){const t=[];let n;for(let i=0,r=this.curves;i<r.length;i++){const o=r[i],s=o.isEllipseCurve?2*e:o.isLineCurve||o.isLineCurve3?1:o.isS
vendor: 3,362 bytes, line 7
7plineCurve?e*o.points.length:e,a=o.getPoints(s);for(let e=0;e<a.length;e++){const i=a[e];n&&n.equals(i)||(t.push(i),n=i)}}return this.autoClose&&t.length>1&&!t[t.length-1].equals(t[0])&&t.push(t[0]),t}copy(e){super.copy(e),this.curves=[];for(let t=0,n=e.curves.length;t<n;t++){const n=e.curves[t];this.curves.push(n.clone())}return this.autoClose=e.autoClose,this}toJSON(){const e=super.toJSON();e.autoClose=this.autoClose,e.curves=[];for(let t=0,n=this.curves.length;t<n;t++){const n=this.curves[t];e.curves.push(n.toJSON())}return e}fromJSON(e){super.fromJSON(e),this.autoClose=e.autoClose,this.curves=[];for(let t=0,n=e.curves.length;t<n;t++){const n=e.curves[t];this.curves.push((new fb[n.type]).fromJSON(n))}return this}}class wv extends Zi{constructor(e=[new tt(0,-.5),new tt(.5,0),new tt(0,.5)],t=12,n=0,i=2*Math.PI){super(),this.type="LatheGeometry",this.parameters={points:e,segments:t,phiStart:n,phiLength:i},t=Math.floor(t),i=It(i,0,2*Math.PI);const r=[],o=[],s=[],a=[],l=[],c=1/t,u=new k,d=new tt,h=new k,p=new k,f=new k;let m=0,g=0;for(let t=0;t<=e.length-1;t++)switch(t){case 0:m=e[t+1].x-e[t].x,g=e[t+1].y-e[t].y,h.x=1*g,h.y=-m,h.z=0*g,f.copy(h),h.normalize(),a.push(h.x,h.y,h.z);break;case e.length-1:a.push(f.x,f.y,f.z);break;default:m=e[t+1].x-e[t].x,g=e[t+1].y-e[t].y,h.x=1*g,h.y=-m,h.z=0*g,p.copy(h),h.x+=f.x,h.y+=f.y,h.z+=f.z,h.normalize(),a.push(h.x,h.y,h.z),f.copy(p)}for(let r=0;r<=t;r++){const h=n+r*c*i,p=Math.sin(h),f=Math.cos(h);for(let n=0;n<=e.length-1;n++){u.x=e[n].x*p,u.y=e[n].y,u.z=e[n].x*f,o.push(u.x,u.y,u.z),d.x=r/t,d.y=n/(e.length-1),s.push(d.x,d.y);const i=a[3*n+0]*p,c=a[3*n+1],h=a[3*n+0]*f;l.push(i,c,h)}}for(let n=0;n<t;n++)for(let t=0;t<e.length-1;t++){const i=t+n*e.length,o=i,s=i+e.length,a=i+e.length+1,l=i+1;r.push(o,s,l),r.push(a,l,s)}this.setIndex(r),this.setAttribute("position",new xi(o,3)),this.setAttribute("uv",new xi(s,2)),this.setAttribute("normal",new xi(l,3))}copy(e){return super.copy(e),this.parameters=Object.assign({},e.parameters),this}static fromJSON(e){return new wv(e.points,e.segments,e.phiStart,e.phiLength)}}class Sf extends Zi{constructor(e=1,t=1,n=1,i=1){super(),this.type="PlaneGeometry",this.parameters={width:e,height:t,widthSegments:n,heightSegments:i};const r=e/2,o=t/2,s=Math.floor(n),a=Math.floor(i),l=s+1,c=a+1,u=e/s,d=t/a,h=[],p=[],f=[],m=[];for(let e=0;e<c;e++){const t=e*d-o;for(let n=0;n<l;n++){const i=n*u-r;p.push(i,-t,0),f.push(0,0,1),m.push(n/s),m.push(1-e/a)}}for(let e=0;e<a;e++)for(let t=0;t<s;t++){const n=t+l*e,i=t+l*(e+1),r=t+1+l*(e+1),o=t+1+l*e;h.push(n,i,o),h.push(i,r,o)}this.setIndex(h),this.setAttribute("position",new xi(p,3)),this.setAttribute("normal",new xi(f,3)),this.setAttribute("uv",new xi(m,2))}copy(e){return super.copy(e),this.parameters=Object.assign({},e.parameters),this}static fromJSON(e){return new Sf(e.width,e.height,e.widthSegments,e.heightSegments)}}class Ef extends Zi{constructor(e=1,t=32,n=16,i=0,r=2*Math.PI,o=0,s=Math.PI){super(),this.type="SphereGeometry",this.parameters={radius:e,widthSegments:t,heightSegments:n,phiStart:i,phiLength:r,thetaStart:o,thetaLength:s},t=Math.max(3,Math.floor(t)),n=Math.max(2,Math.floor(n));const a=Math.min(o+s,Math.PI);let l=0;const c=[],u=new k,d=new k,h=[],p=[],f=[],m=[];for(let h=0;h<=n;h++){const g=[],v=h/n;let b=0;0===h&&0===o?b=.5/t:h===n&&a===Math.PI&&(b=-.5/t);for(let n=0;n<=t;n++){const a=n/t;
vendor: 5,626 bytes, line 7
7u.x=-e*Math.cos(i+a*r)*Math.sin(o+v*s),u.y=e*Math.cos(o+v*s),u.z=e*Math.sin(i+a*r)*Math.sin(o+v*s),p.push(u.x,u.y,u.z),d.copy(u).normalize(),f.push(d.x,d.y,d.z),m.push(a+b,1-v),g.push(l++)}c.push(g)}for(let e=0;e<n;e++)for(let i=0;i<t;i++){const t=c[e][i+1],r=c[e][i],s=c[e+1][i],l=c[e+1][i+1];(0!==e||o>0)&&h.push(t,r,l),(e!==n-1||a<Math.PI)&&h.push(r,s,l)}this.setIndex(h),this.setAttribute("position",new xi(p,3)),this.setAttribute("normal",new xi(f,3)),this.setAttribute("uv",new xi(m,2))}copy(e){return super.copy(e),this.parameters=Object.assign({},e.parameters),this}static fromJSON(e){return new Ef(e.radius,e.widthSegments,e.heightSegments,e.phiStart,e.phiLength,e.thetaStart,e.thetaLength)}}class R1 extends ms{constructor(e){super(),this.isMeshStandardMaterial=!0,this.type="MeshStandardMaterial",this.defines={STANDARD:""},this.color=new Ut(16777215),this.roughness=1,this.metalness=0,this.map=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.emissive=new Ut(0),this.emissiveIntensity=1,this.emissiveMap=null,this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=0,this.normalScale=new tt(1,1),this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.roughnessMap=null,this.metalnessMap=null,this.alphaMap=null,this.envMap=null,this.envMapRotation=new Ki,this.envMapIntensity=1,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinecap="round",this.wireframeLinejoin="round",this.flatShading=!1,this.fog=!0,this.setValues(e)}copy(e){return super.copy(e),this.defines={STANDARD:""},this.color.copy(e.color),this.roughness=e.roughness,this.metalness=e.metalness,this.map=e.map,this.lightMap=e.lightMap,this.lightMapIntensity=e.lightMapIntensity,this.aoMap=e.aoMap,this.aoMapIntensity=e.aoMapIntensity,this.emissive.copy(e.emissive),this.emissiveMap=e.emissiveMap,this.emissiveIntensity=e.emissiveIntensity,this.bumpMap=e.bumpMap,this.bumpScale=e.bumpScale,this.normalMap=e.normalMap,this.normalMapType=e.normalMapType,this.normalScale.copy(e.normalScale),this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this.roughnessMap=e.roughnessMap,this.metalnessMap=e.metalnessMap,this.alphaMap=e.alphaMap,this.envMap=e.envMap,this.envMapRotation.copy(e.envMapRotation),this.envMapIntensity=e.envMapIntensity,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this.wireframeLinecap=e.wireframeLinecap,this.wireframeLinejoin=e.wireframeLinejoin,this.flatShading=e.flatShading,this.fog=e.fog,this}}class aI extends ms{constructor(e){super(),this.isMeshDepthMaterial=!0,this.type="MeshDepthMaterial",this.depthPacking=_u,this.map=null,this.alphaMap=null,this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.wireframe=!1,this.wireframeLinewidth=1,this.setValues(e)}copy(e){return super.copy(e),this.depthPacking=e.depthPacking,this.map=e.map,this.alphaMap=e.alphaMap,this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this}}class lI extends ms{constructor(e){super(),this.isMeshDistanceMaterial=!0,this.type="MeshDistanceMaterial",this.map=null,this.alphaMap=null,this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.setValues(e)}copy(e){return super.copy(e),this.map=e.map,this.alphaMap=e.alphaMap,this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this}}class cI extends ei{constructor(e,t=1){super(),this.isLight=!0,this.type="Light",this.color=new Ut(e),this.intensity=t}dispose(){}copy(e,t){return super.copy(e,t),this.color.copy(e.color),this.intensity=e.intensity,this}toJSON(e){const t=super.toJSON(e);return t.object.color=this.color.getHex(),t.object.intensity=this.intensity,void 0!==this.groundColor&&(t.object.groundColor=this.groundColor.getHex()),void 0!==this.distance&&(t.object.distance=this.distance),void 0!==this.angle&&(t.object.angle=this.angle),void 0!==this.decay&&(t.object.decay=this.decay),void 0!==this.penumbra&&(t.object.penumbra=this.penumbra),void 0!==this.shadow&&(t.object.shadow=this.shadow.toJSON()),void 0!==this.target&&(t.object.target=this.target.uuid),t}}const Sh=new cn,hb=new k,pb=new k;class uI{constructor(e){this.camera=e,this.intensity=1,this.bias=0,this.normalBias=0,this.radius=1,this.blurSamples=8,this.mapSize=new tt(512,512),this.mapType=si,this.map=null,this.mapPass=null,this.matrix=new cn,this.autoUpdate=!0,this.needsUpdate=!1,this._frustum=new xv,this._frameExtents=new tt(1,1),this._viewportCount=1,this._viewports=[new Qt(0,0,1,1)]}getViewportCount(){return this._viewportCount}getFrustum(){return this._frustum}updateMatrices(e){const t=this.camera,n=this.matrix;hb.setFromMatrixPosition(e.matrixWorld),t.position.copy(hb),pb.setFromMatrixPosition(e.target.matrixWorld),t.lookAt(pb),t.updateMatrixWorld(),Sh.multiplyMatrices(t.projectionMatrix,t.matrixWorldInverse),this._frustum.setFromProjectionMatrix(Sh,t.coordinateSystem,t.reversedDepth),t.reversedDepth?n.set(.5,0,0,.5,0,.5,0,.5,0,0,1,0,0,0,0,1):n.set(.5,0,0,.5,0,.5,0,.5,0,0,.5,.5,0,0,0,1),n.multiply(Sh)}getViewport(e){return this._viewports[e]}getFrameExtents(){return this._frameExtents}dispose(){this.map&&this.map.dispose(),this.mapPass&&this.mapPass.dispose()}copy(e){return this.camera=e.camera.clone(),this.intensity=e.intensity,this.bias=e.bias,this.radius=e.radius,this.autoUpdate=e.autoUpdate,this.needsUpdate=e.needsUpdate,this.normalBias=e.n
vendor: 6,941 bytes, lines 7-13
7ormalBias,this.blurSamples=e.blurSamples,this.mapSize.copy(e.mapSize),this}clone(){return(new this.constructor).copy(this)}toJSON(){const e={};return 1!==this.intensity&&(e.intensity=this.intensity),0!==this.bias&&(e.bias=this.bias),0!==this.normalBias&&(e.normalBias=this.normalBias),1!==this.radius&&(e.radius=this.radius),(512!==this.mapSize.x||512!==this.mapSize.y)&&(e.mapSize=this.mapSize.toArray()),e.camera=this.camera.toJSON(!1).object,delete e.camera.matrix,e}}const mb=new cn,qa=new k,Eh=new k;class dI extends uI{constructor(){super(new ri(90,1,.5,500)),this.isPointLightShadow=!0,this._frameExtents=new tt(4,2),this._viewportCount=6,this._viewports=[new Qt(2,1,1,1),new Qt(0,1,1,1),new Qt(3,1,1,1),new Qt(1,1,1,1),new Qt(3,0,1,1),new Qt(1,0,1,1)],this._cubeDirections=[new k(1,0,0),new k(-1,0,0),new k(0,0,1),new k(0,0,-1),new k(0,1,0),new k(0,-1,0)],this._cubeUps=[new k(0,1,0),new k(0,1,0),new k(0,1,0),new k(0,1,0),new k(0,0,1),new k(0,0,-1)]}updateMatrices(e,t=0){const n=this.camera,i=this.matrix,r=e.distance||n.far;r!==n.far&&(n.far=r,n.updateProjectionMatrix()),qa.setFromMatrixPosition(e.matrixWorld),n.position.copy(qa),Eh.copy(n.position),Eh.add(this._cubeDirections[t]),n.up.copy(this._cubeUps[t]),n.lookAt(Eh),n.updateMatrixWorld(),i.makeTranslation(-qa.x,-qa.y,-qa.z),mb.multiplyMatrices(n.projectionMatrix,n.matrixWorldInverse),this._frustum.setFromProjectionMatrix(mb,n.coordinateSystem,n.reversedDepth)}}class fI extends cI{constructor(e,t,n=0,i=2){super(e,t),this.isPointLight=!0,this.type="PointLight",this.distance=n,this.decay=i,this.shadow=new dI}get power(){return 4*this.intensity*Math.PI}set power(e){this.intensity=e/(4*Math.PI)}dispose(){this.shadow.dispose()}copy(e,t){return super.copy(e,t),this.distance=e.distance,this.decay=e.decay,this.shadow=e.shadow.clone(),this}}class hI extends yv{constructor(e=-1,t=1,n=1,i=-1,r=.1,o=2e3){super(),this.isOrthographicCamera=!0,this.type="OrthographicCamera",this.zoom=1,this.view=null,this.left=e,this.right=t,this.top=n,this.bottom=i,this.near=r,this.far=o,this.updateProjectionMatrix()}copy(e,t){return super.copy(e,t),this.left=e.left,this.right=e.right,this.top=e.top,this.bottom=e.bottom,this.near=e.near,this.far=e.far,this.zoom=e.zoom,this.view=null===e.view?null:Object.assign({},e.view),this}setViewOffset(e,t,n,i,r,o){null===this.view&&(this.view={enabled:!0,fullWidth:1,fullHeight:1,offsetX:0,offsetY:0,width:1,height:1}),this.view.enabled=!0,this.view.fullWidth=e,this.view.fullHeight=t,this.view.offsetX=n,this.view.offsetY=i,this.view.width=r,this.view.height=o,this.updateProjectionMatrix()}clearViewOffset(){null!==this.view&&(this.view.enabled=!1),this.updateProjectionMatrix()}updateProjectionMatrix(){const e=(this.right-this.left)/(2*this.zoom),t=(this.top-this.bottom)/(2*this.zoom),n=(this.right+this.left)/2,i=(this.top+this.bottom)/2;let r=n-e,o=n+e,s=i+t,a=i-t;if(null!==this.view&&this.view.enabled){const e=(this.right-this.left)/this.view.fullWidth/this.zoom,t=(this.top-this.bottom)/this.view.fullHeight/this.zoom;r+=e*this.view.offsetX,o=r+e*this.view.width,s-=t*this.view.offsetY,a=s-t*this.view.height}this.projectionMatrix.makeOrthographic(r,o,s,a,this.near,this.far,this.coordinateSystem,this.reversedDepth),this.projectionMatrixInverse.copy(this.projectionMatrix).invert()}toJSON(e){const t=super.toJSON(e);return t.object.zoom=this.zoom,t.object.left=this.left,t.object.right=this.right,t.object.top=this.top,t.object.bottom=this.bottom,t.object.near=this.near,t.object.far=this.far,null!==this.view&&(t.object.view=Object.assign({},this.view)),t}}class pI extends ri{constructor(e=[]){super(),this.isArrayCamera=!0,this.isMultiViewCamera=!1,this.cameras=e}}let mI=class{constructor(e=!0){this.autoStart=e,this.startTime=0,this.oldTime=0,this.elapsedTime=0,this.running=!1}start(){this.startTime=performance.now(),this.oldTime=this.startTime,this.elapsedTime=0,this.running=!0}stop(){this.getElapsedTime(),this.running=!1,this.autoStart=!1}getElapsedTime(){return this.getDelta(),this.elapsedTime}getDelta(){let e=0;if(this.autoStart&&!this.running)return this.start(),0;if(this.running){const t=performance.now();e=(t-this.oldTime)/1e3,this.oldTime=t,this.elapsedTime+=e}return e}};class Dn{constructor(e){this.value=e}clone(){return new Dn(void 0===this.value.clone?this.value:this.value.clone())}}function vb(e,t,n,i){const r=vI(i);switch(n){case d1:return e*t;case h1:case pv:return e*t/r.components*r.byteLength;case p1:case mv:return e*t*2/r.components*r.byteLength;case f1:return e*t*3/r.components*r.byteLength;case Di:case vv:return e*t*4/r.components*r.byteLength;case ud:case dd:return Math.floor((e+3)/4)*Math.floor((t+3)/4)*8;case fd:case hd:return Math.floor((e+3)/4)*Math.floor((t+3)/4)*16;case Pp:case Lp:return Math.max(e,16)*Math.max(t,8)/4;case Cp:case Rp:return Math.max(e,8)*Math.max(t,8)/2;case Dp:case Ip:return Math.floor((e+3)/4)*Math.floor((t+3)/4)*8;case Np:case Op:return Math.floor((e+3)/4)*Math.floor((t+3)/4)*16;case Up:return Math.floor((e+4)/5)*Math.floor((t+3)/4)*16;case Fp:return Math.floor((e+4)/5)*Math.floor((t+4)/5)*16;case Bp:return Math.floor((e+5)/6)*Math.floor((t+4)/5)*16;case kp:return Math.floor((e+5)/6)*Math.floor((t+5)/6)*16;case zp:return Math.floor((e+7)/8)*Math.floor((t+4)/5)*16;case Hp:return Math.floor((e+7)/8)*Math.floor((t+5)/6)*16;case Vp:return Math.floor((e+7)/8)*Math.floor((t+7)/8)*16;case $p:return Math.floor((e+9)/10)*Math.floor((t+4)/5)*16;case Gp:return Math.floor((e+9)/10)*Math.floor((t+5)/6)*16;case Wp:return Math.floor((e+9)/10)*Math.floor((t+7)/8)*16;case Xp:return Math.floor((e+9)/10)*Math.floor((t+9)/10)*16;case qp:return Math.floor((e+11)/12)*Math.floor((t+9)/10)*16;case Yp:return Math.floor((e+11)/12)*Math.floor((t+11)/12)*16;case jp:case Kp:case Qp:return Math.ceil(e/4)*Math.ceil(t/4)*16;case Zp:case Jp:return Math.ceil(e/4)*Math.ceil(t/4)*8;case em:case tm:return Math.ceil(e/4)*Math.ceil(t/4)*16}throw new Error(`Unable to determine texture byte length for ${n} format.`)}function vI(e){switch(e){case si:case a1:return{byteLength:1,components:1};case Rl:case l1:case bu:return{byteLength:2,components:1};case fv:case hv:return{byteLength:2,components:4};case xo:case dv:case Fr:return{byteLength:4,components:1};case c1:case u1:return{byteLength:4,components:3}}throw new Error(`Unknown texture type ${e}.`)} 8/** 9 * @license 10 * Copyright 2010-2025 Three.js Authors 11 * SPDX-License-Identifier: MIT 12 */ 13function L1(){let e=null,t=!1,n=null,i=null;function r(t,o){n(t,o),i=e.requestAnimationFrame(r)}return{start:function(){!0!==t&&null!==n&&(i=e.requestAnimationFrame(r),t=!0)},stop:function(){e.cancelAnimationFrame(i),t=!1},setAnimationLoop:function(e){n=e},setContext:function(t){e=t}}}function gI(e){const t=new WeakMap;return{get:function(e){return e.isInterleavedBufferAttribute&&(e=e.data),t.get(e)},remove:function(n){n.isInterleavedBufferAttribute&&(n=n.data);const i=t.get(n);i&&(e.deleteBuffer(i.buffer),t.delete(n))}
13,update:function(n,i){if(n.isInterleavedBufferAttribute&&(n=n.data),n.isGLBufferAttribute){const e=t.get(n);return void((!e||e.version<n.version)&&t.set(n,{buffer:n.buffer,type:n.type,bytesPerElement:n.elementSize,version:n.version}))}const r=t.get(n);if(void 0===r)t.set(n,function(t,n){const i=t.array,r=t.usage,o=i.byteLength,s=e.createBuffer();let a;if(e.bindBuffer(n,s),e.bufferData(n,i,r),t.onUploadCallback(),i instanceof Float32Array)a=e.FLOAT;else if(typeof Float16Array<"u"&&i instanceof Float16Array)a=e.HALF_FLOAT;else if(i instanceof Uint16Array)a=t.isFloat16BufferAttribute?e.HALF_FLOAT:e.UNSIGNED_SHORT;else if(i instanceof Int16Array)a=e.SHORT;else if(i instanceof Uint32Array)a=e.UNSIGNED_INT;else if(i instanceof Int32Array)a=e.INT;else if(i instanceof Int8Array)a=e.BYTE;else if(i instanceof Uint8Array)a=e.UNSIGNED_BYTE;else{if(!(i instanceof Uint8ClampedArray))throw new Error("THREE.WebGLAttributes: Unsupported buffer data format: "+i);a=e.UNSIGNED_BYTE}return{buffer:s,type:a,bytesPerElement:i.BYTES_PER_ELEMENT,version:t.version,size:o}}(n,i));else if(r.version<n.version){if(r.size!==n.array.byteLength)throw new Error("THREE.WebGLAttributes: The size of the buffer attribute's array buffer does not match the original size. Resizing buffer attributes is not supported.");(function(t,n,i){const r=n.array,o=n.updateRanges;if(e.bindBuffer(i,t),0===o.length)e.bufferSubData(i,0,r);else{o.sort(((e,t)=>e.start-t.start));let t=0;for(let e=1;e<o.length;e++){const n=o[t],i=o[e];i.start<=n.start+n.count+1?n.count=Math.max(n.count,i.start+i.count-n.start):(++t,o[t]=i)}o.length=t+1;for(let t=0,n=o.length;t<n;t++){const n=o[t];e.bufferSubData(i,n.start*r.BYTES_PER_ELEMENT,r,n.start,n.count)}n.clearUpdateRanges()}n.onUploadCallback()})(r.buffer,n,i),r.version=n.version}}}}typeof __THREE_DEVTOOLS__<"u"&&__THREE_DEVTOOLS__.dispatchEvent(new CustomEvent("register",{detail:{revision:yf}})),typeof window<"u"&&(window.__THREE__?console.warn("WARNING: Multiple instances of Three.js being imported."):window.__THREE__=yf);var bI="#ifdef USE_ALPHAHASH\n\tif ( diffuseColor.a < getAlphaHashThreshold( vPosition ) ) discard;\n#endif",_I="#ifdef USE_ALPHAHASH\n\tconst float ALPHA_HASH_SCALE = 0.05;\n\tfloat hash2D( vec2 value ) {\n\t\treturn fract( 1.0e4 * sin( 17.0 * value.x + 0.1 * value.y ) * ( 0.1 + abs( sin( 13.0 * value.y + value.x ) ) ) );\n\t}\n\tfloat hash3D( vec3 value ) {\n\t\treturn hash2D( vec2( hash2D( value.xy ), value.z ) );\n\t}\n\tfloat getAlphaHashThreshold( vec3 position ) {\n\t\tfloat maxDeriv = max(\n\t\t\tlength( dFdx( position.xyz ) ),\n\t\t\tlength( dFdy( position.xyz ) )\n\t\t);\n\t\tfloat pixScale = 1.0 / ( ALPHA_HASH_SCALE * maxDeriv );\n\t\tvec2 pixScales = vec2(\n\t\t\texp2( floor( log2( pixScale ) ) ),\n\t\t\texp2( ceil( log2( pixScale ) ) )\n\t\t);\n\t\tvec2 alpha = vec2(\n\t\t\thash3D( floor( pixScales.x * position.xyz ) ),\n\t\t\thash3D( floor( pixScales.y * position.xyz ) )\n\t\t);\n\t\tfloat lerpFactor = fract( log2( pixScale ) );\n\t\tfloat x = ( 1.0 - lerpFactor ) * alpha.x + lerpFactor * alpha.y;\n\t\tfloat a = min( lerpFactor, 1.0 - lerpFactor );\n\t\tvec3 cases = vec3(\n\t\t\tx * x / ( 2.0 * a * ( 1.0 - a ) ),\n\t\t\t( x - 0.5 * a ) / ( 1.0 - a ),\n\t\t\t1.0 - ( ( 1.0 - x ) * ( 1.0 - x ) / ( 2.0 * a * ( 1.0 - a ) ) )\n\t\t);\n\t\tfloat threshold = ( x < ( 1.0 - a ) )\n\t\t\t? ( ( x < a ) ? cases.x : cases.y )\n\t\t\t: cases.z;\n\t\treturn clamp( threshold , 1.0e-6, 1.0 );\n\t}\n#endif",yI="#ifdef USE_ALPHAMAP\n\tdiffuseColor.a *= texture2D( alphaMap, vAlphaMapUv ).g;\n#endif",xI="#ifdef USE_ALPHAMAP\n\tuniform sampler2D alphaMap;\n#endif",SI="#ifdef USE_ALPHATEST\n\t#ifdef ALPHA_TO_COVERAGE\n\tdiffuseColor.a = smoothstep( alphaTest, alphaTest + fwidth( diffuseColor.a ), diffuseColor.a );\n\tif ( diffuseColor.a == 0.0 ) discard;\n\t#else\n\tif ( diffuseColor.a < alphaTest ) discard;\n\t#endif\n#endif",EI="#ifdef USE_ALPHATEST\n\tuniform float alphaTest;\n#endif",wI="#ifdef USE_AOMAP\n\tfloat ambientOcclusion = ( texture2D( aoMap, vAoMapUv ).r - 1.0 ) * aoMapIntensity + 1.0;\n\treflectedLight.indirectDiffuse *= ambientOcclusion;\n\t#if defined( USE_CLEARCOAT ) \n\t\tclearcoatSpecularIndirect *= ambientOcclusion;\n\t#endif\n\t#if defined( USE_SHEEN ) \n\t\tsheenSpecularIndirect *= ambientOcclusion;\n\t#endif\n\t#if defined( USE_ENVMAP ) && defined( STANDARD )\n\t\tfloat dotNV = saturate( dot
13( geometryNormal, geometryViewDir ) );\n\t\treflectedLight.indirectSpecular *= computeSpecularOcclusion( dotNV, ambientOcclusion, material.roughness );\n\t#endif\n#endif",MI="#ifdef USE_AOMAP\n\tuniform sampler2D aoMap;\n\tuniform float aoMapIntensity;\n#endif",TI="#ifdef USE_BATCHING\n\t#if ! defined( GL_ANGLE_multi_draw )\n\t#define gl_DrawID _gl_DrawID\n\tuniform int _gl_DrawID;\n\t#endif\n\tuniform highp sampler2D batchingTexture;\n\tuniform highp usampler2D batchingIdTexture;\n\tmat4 getBatchingMatrix( const in float i ) {\n\t\tint size = textureSize( batchingTexture, 0 ).x;\n\t\tint j = int( i ) * 4;\n\t\tint x = j % size;\n\t\tint y = j / size;\n\t\tvec4 v1 = texelFetch( batchingTexture, ivec2( x, y ), 0 );\n\t\tvec4 v2 = texelFetch( batchingTexture, ivec2( x + 1, y ), 0 );\n\t\tvec4 v3 = texelFetch( batchingTexture, ivec2( x + 2, y ), 0 );\n\t\tvec4 v4 = texelFetch( batchingTexture, ivec2( x + 3, y ), 0 );\n\t\treturn mat4( v1, v2, v3, v4 );\n\t}\n\tfloat getIndirectIndex( const in int i ) {\n\t\tint size = textureSize( batchingIdTexture, 0 ).x;\n\t\tint x = i % size;\n\t\tint y = i / size;\n\t\treturn float( texelFetch( batchingIdTexture, ivec2( x, y ), 0 ).r );\n\t}\n#endif\n#ifdef USE_BATCHING_COLOR\n\tuniform sampler2D batchingColorTexture;\n\tvec3 getBatchingColor( const in float i ) {\n\t\tint size = textureSize( batchingColorTexture, 0 ).x;\n\t\tint j = int( i );\n\t\tint x = j % size;\n\t\tint y = j / size;\n\t\treturn texelFetch( batchingColorTexture, ivec2( x, y ), 0 ).rgb;\n\t}\n#endif",AI="#ifdef USE_BATCHING\n\tmat4 batchingMatrix = getBatchingMatrix( getIndirectIndex( gl_DrawID ) );\n#endif",CI="vec3 transformed = vec3( position );\n#ifdef USE_ALPHAHASH\n\tvPosition = vec3( position );\n#endif",PI="vec3 objectNormal = vec3( normal );\n#ifdef USE_TANGENT\n\tvec3 objectTangent = vec3( tangent.xyz );\n#endif",RI="float G_BlinnPhong_Implicit( ) {\n\treturn 0.25;\n}\nfloat D_BlinnPhong( const in float shininess, const in float dotNH ) {\n\treturn RECIPROCAL_PI * ( shininess * 0.5 + 1.0 ) * pow( dotNH, shininess );\n}\nvec3 BRDF_BlinnPhong( const in vec3 lightDir, const in vec3 viewDir, const in vec3 normal, const in vec3 specularColor, const in float shininess ) {\n\tvec3 halfDir = normalize( lightDir + viewDir );\n\tfloat dotNH = saturate( dot( normal, halfDir ) );\n\tfloat dotVH = saturate( dot( viewDir, halfDir ) );\n\tvec3 F = F_Schlick( specularColor, 1.0, dotVH );\n\tfloat G = G_BlinnPhong_Implicit( );\n\tfloat D = D_BlinnPhong( shininess, dotNH );\n\treturn F * ( G * D );\n} // validated",LI="#ifdef USE_IRIDESCENCE\n\tconst mat3 XYZ_TO_REC709 = mat3(\n\t\t 3.2404542, -0.9692660, 0.0556434,\n\t\t-1.5371385, 1.8760108, -0.2040259,\n\t\t-0.4985314, 0.0415560, 1.0572252\n\t);\n\tvec3 Fresnel0ToIor( vec3 fresnel0 ) {\n\t\tvec3 sqrtF0 = sqrt( fresnel0 );\n\t\treturn ( vec3( 1.0 ) + sqrtF0 ) / ( vec3( 1.0 ) - sqrtF0 );\n\t}\n\tvec3 IorToFresnel0( vec3 transmittedIor, float incidentIor ) {\n\t\treturn pow2( ( transmittedIor - vec3( incidentIor ) ) / ( transmittedIor + vec3( incidentIor ) ) );\n\t}\n\tfloat IorToFresnel0( float transmittedIor, float incidentIor ) {\n\t\treturn pow2( ( transmittedIor - incidentIor ) / ( transmittedIor + incidentIor ));\n\t}\n\tvec3 evalSensitivity( float OPD, vec3 shift ) {\n\t\tfloat phase = 2.0 * PI * OPD * 1.0e-9;\n\t\tvec3 val = vec3( 5.4856e-13, 4.4201e-13, 5.2481e-13 );\n\t\tvec3 pos = vec3( 1.6810e+06, 1.7953e+06, 2.2084e+06 );\n\t\tvec3 var = vec3( 4.3278e+09, 9.3046e+09, 6.6121e+09 );\n\t\tvec3 xyz = val * sqrt( 2.0 * PI * var ) * cos( pos * phase + shift ) * exp( - pow2( phase ) * var );\n\t\txyz.x += 9.7470e-14 * sqrt( 2.0 * PI * 4.5282e+09 ) * cos( 2.2399e+06 * phase + shift[ 0 ] ) * exp( - 4.5282e+09 * pow2( phase ) );\n\t\txyz /= 1.0685e-7;\n\t\tvec3 rgb = XYZ_TO_REC709 * xyz;\n\t\treturn rgb;\n\t}\n\tvec3 evalIridescence( float outsideIOR, float eta2, float cosTheta1, float thinFilmThickness, vec3 baseF0 ) {\n\t\tvec3 I;\n\t\tfloat iridescenceIOR = mix( outsideIOR, eta2, smoothstep( 0.0, 0.03, thinFilmThickness ) );\n\t\tfloat sinTheta2Sq = pow2( outsideIOR / iridescenceIOR ) * ( 1.0 - pow2( cosTheta1 ) );\n\t\tfloat cosTheta2Sq = 1.0 - sinTheta2Sq;\n\t\tif ( cosTheta2Sq < 0.0 ) {\n\t\t\treturn vec3( 1.0 );\n\t\t}\n\t\tfloat cosTheta2 = sqrt( cosTheta2Sq );\n\t\tfloat R0 = IorToFresnel0( iridescenceIOR, outsideIOR );
13\n\t\tfloat R12 = F_Schlick( R0, 1.0, cosTheta1 );\n\t\tfloat T121 = 1.0 - R12;\n\t\tfloat phi12 = 0.0;\n\t\tif ( iridescenceIOR < outsideIOR ) phi12 = PI;\n\t\tfloat phi21 = PI - phi12;\n\t\tvec3 baseIOR = Fresnel0ToIor( clamp( baseF0, 0.0, 0.9999 ) );\t\tvec3 R1 = IorToFresnel0( baseIOR, iridescenceIOR );\n\t\tvec3 R23 = F_Schlick( R1, 1.0, cosTheta2 );\n\t\tvec3 phi23 = vec3( 0.0 );\n\t\tif ( baseIOR[ 0 ] < iridescenceIOR ) phi23[ 0 ] = PI;\n\t\tif ( baseIOR[ 1 ] < iridescenceIOR ) phi23[ 1 ] = PI;\n\t\tif ( baseIOR[ 2 ] < iridescenceIOR ) phi23[ 2 ] = PI;\n\t\tfloat OPD = 2.0 * iridescenceIOR * thinFilmThickness * cosTheta2;\n\t\tvec3 phi = vec3( phi21 ) + phi23;\n\t\tvec3 R123 = clamp( R12 * R23, 1e-5, 0.9999 );\n\t\tvec3 r123 = sqrt( R123 );\n\t\tvec3 Rs = pow2( T121 ) * R23 / ( vec3( 1.0 ) - R123 );\n\t\tvec3 C0 = R12 + Rs;\n\t\tI = C0;\n\t\tvec3 Cm = Rs - T121;\n\t\tfor ( int m = 1; m <= 2; ++ m ) {\n\t\t\tCm *= r123;\n\t\t\tvec3 Sm = 2.0 * evalSensitivity( float( m ) * OPD, float( m ) * phi );\n\t\t\tI += Cm * Sm;\n\t\t}\n\t\treturn max( I, vec3( 0.0 ) );\n\t}\n#endif",DI="#ifdef USE_BUMPMAP\n\tuniform sampler2D bumpMap;\n\tuniform float bumpScale;\n\tvec2 dHdxy_fwd() {\n\t\tvec2 dSTdx = dFdx( vBumpMapUv );\n\t\tvec2 dSTdy = dFdy( vBumpMapUv );\n\t\tfloat Hll = bumpScale * texture2D( bumpMap, vBumpMapUv ).x;\n\t\tfloat dBx = bumpScale * texture2D( bumpMap, vBumpMapUv + dSTdx ).x - Hll;\n\t\tfloat dBy = bumpScale * texture2D( bumpMap, vBumpMapUv + dSTdy ).x - Hll;\n\t\treturn vec2( dBx, dBy );\n\t}\n\tvec3 perturbNormalArb( vec3 surf_pos, vec3 surf_norm, vec2 dHdxy, float faceDirection ) {\n\t\tvec3 vSigmaX = normalize( dFdx( surf_pos.xyz ) );\n\t\tvec3 vSigmaY = normalize( dFdy( surf_pos.xyz ) );\n\t\tvec3 vN = surf_norm;\n\t\tvec3 R1 = cross( vSigmaY, vN );\n\t\tvec3 R2 = cross( vN, vSigmaX );\n\t\tfloat fDet = dot( vSigmaX, R1 ) * faceDirection;\n\t\tvec3 vGrad = sign( fDet ) * ( dHdxy.x * R1 + dHdxy.y * R2 );\n\t\treturn normalize( abs( fDet ) * surf_norm - vGrad );\n\t}\n#endif",II="#if NUM_CLIPPING_PLANES > 0\n\tvec4 plane;\n\t#ifdef ALPHA_TO_COVERAGE\n\t\tfloat distanceToPlane, distanceGradient;\n\t\tfloat clipOpacity = 1.0;\n\t\t#pragma unroll_loop_start\n\t\tfor ( int i = 0; i < UNION_CLIPPING_PLANES; i ++ ) {\n\t\t\tplane = clippingPlanes[ i ];\n\t\t\tdistanceToPlane = - dot( vClipPosition, plane.xyz ) + plane.w;\n\t\t\tdistanceGradient = fwidth( distanceToPlane ) / 2.0;\n\t\t\tclipOpacity *= smoothstep( - distanceGradient, distanceGradient, distanceToPlane );\n\t\t\tif ( clipOpacity == 0.0 ) discard;\n\t\t}\n\t\t#pragma unroll_loop_end\n\t\t#if UNION_CLIPPING_PLANES < NUM_CLIPPING_PLANES\n\t\t\tfloat unionClipOpacity = 1.0;\n\t\t\t#pragma unroll_loop_start\n\t\t\tfor ( int i = UNION_CLIPPING_PLANES; i < NUM_CLIPPING_PLANES; i ++ ) {\n\t\t\t\tplane = clippingPlanes[ i ];\n\t\t\t\tdistanceToPlane = - dot( vClipPosition, plane.xyz ) + plane.w;\n\t\t\t\tdistanceGradient = fwidth( distanceToPlane ) / 2.0;\n\t\t\t\tunionClipOpacity *= 1.0 - smoothstep( - distanceGradient, distanceGradient, distanceToPlane );\n\t\t\t}\n\t\t\t#pragma unroll_loop_end\n\t\t\tclipOpacity *= 1.0 - unionClipOpacity;\n\t\t#endif\n\t\tdiffuseColor.a *= clipOpacity;\n\t\tif ( diffuseColor.a == 0.0 ) discard;\n\t#else\n\t\t#pragma unroll_loop_start\n\t\tfor ( int i = 0; i < UNION_CLIPPING_PLANES; i ++ ) {\n\t\t\tplane = clippingPlanes[ i ];\n\t\t\tif ( dot( vClipPosition, plane.xyz ) > plane.w ) discard;\n\t\t}\n\t\t#pragma unroll_loop_end\n\t\t#if UNION_CLIPPING_PLANES < NUM_CLIPPING_PLANES\n\t\t\tbool clipped = true;\n\t\t\t#pragma unroll_loop_start\n\t\t\tfor ( int i = UNION_CLIPPING_PLANES; i < NUM_CLIPPING_PLANES; i ++ ) {\n\t\t\t\tplane = clippingPlanes[ i ];\n\t\t\t\tclipped = ( dot( vClipPosition, plane.xyz ) > plane.w ) && clipped;\n\t\t\t}\n\t\t\t#pragma unroll_loop_end\n\t\t\tif ( clipped ) discard;\n\t\t#endif\n\t#endif\n#endif",NI="#if NUM_CLIPPING_PLANES > 0\n\tvarying vec3 vClipPosition;\n\tuniform vec4 clippingPlanes[ NUM_CLIPPING_PLANES ];\n#endif",OI="#if NUM_CLIPPING_PLANES > 0\n\tvarying vec3 vClipPosition;\n#endif",UI="#if NUM_CLIPPING_PLANES > 0\n\tvClipPosition = - mvPosition.xyz;\n#endif",FI="#if defined( USE_COLOR_ALPHA )\n\tdiffuseColor *= vColor;\n#elif defined( USE_COLOR )\n\tdiffuseColor.rgb *= vColor;\n#endif",BI="#if defined( USE_COLOR_ALPHA )\n\tvarying vec4 vColor;\n#elif defined( USE_COLOR )\n\tvarying vec3 vColor;\n#endif",kI="#if defined( USE_COLOR_ALPHA )\n\tvarying vec4 vColor;\n#elif defined( USE_COLOR ) || defined( USE_INSTANCING_COLOR ) || defined( USE_BATCHING_COLOR )\n\tvarying vec3 vColor;\n#endif",zI="#if defined( USE_COLOR_ALPHA )\n\tvColor = vec4( 1.0 );\n#elif defined( USE_COLOR ) || defined( USE_INSTANCING_COLOR ) || defined( USE_BATCHING_COLOR )\n\tvColor = vec3( 1.0 );\n#endif\n#ifdef USE_COLOR\n\tvColor *= color;\n#endif\n#ifdef USE_INSTANCING_COLOR\n\tvColor.xyz *= instanceColor.xyz;\n#endif\n#ifdef USE_BATCHING_COLOR\n\tvec3 batchingColor = getBatchingColor( getIndirectIndex( gl_DrawID ) );\n\tvColor.xyz *= batchingColor.xyz;\n#endif",HI="#define PI 3.141592653589793\n#define PI2 6.283185307179586\n#define PI_HALF 1.5707963267948966\n#define RECIPROCAL_PI 0.3183098861837907\n#define RECIPROCAL_PI2 0.15915494309189535\n#define EPSILON 1e-6\n#ifndef saturate\n#define saturate( a ) clamp( a, 0.0, 1.0 )\n#endif\n#define whiteComplement( a ) ( 1.0 - saturate( a ) )\nfloat pow2( const in float x ) { return x*x; }\nvec3 pow2( const in vec3 x ) { return x*x; }\nfloat pow3( const in float x ) { return x*x*x; }\nfloat pow4( const in float x ) { float x2 = x*x; return x2*x2; }\nfloat max3( const in vec3 v ) { return max( max( v.x, v.y ), v.z ); }\nfloat average( const in vec3 v ) { return dot( v, vec3( 0.3333333 ) ); }\nhighp float rand( const in vec2 uv ) {\n\tconst highp float a = 12.9898, b = 78.233, c = 43758.5453;\n\thighp float dt = dot( uv.xy, vec2( a,b ) ), sn = mod( dt, PI );\n\treturn fract( sin( sn ) * c );\n}\n#ifdef HIGH_PRECISION\n\tfloat precisionSafeLength( vec3 v ) { return length( v ); }\n#else\n\tfloat precisionSafeLength( vec3 v ) {\n\t\tfloat maxComponent = max3( abs( v ) );\n\t\treturn length( v / maxComponent ) * maxComponent;\n\t}\n#endif\nstruct IncidentLight {\n\tvec3 color;\n\tvec3 direction;\n\tbool visible;\n};\nstruct ReflectedLight {\n\tvec3 directDiffuse;\n\tvec3 directSpecular;\n\tvec3 indirectDiffuse;\n\tvec3 indirectSpecular;\n};\n#ifdef USE_ALPHAHASH\n\tvarying vec3 vPosition;\n#endif\nvec3 transformDirection( in vec3 dir, in mat4 matrix ) {\n\treturn normalize( ( matrix * vec4( dir, 0.0 ) ).xyz );\n}\nvec3 inverseTransformDirection( in vec3 dir, in mat4 matrix ) {\n\treturn normalize( ( vec4( dir, 0.0 ) * matrix ).xyz );\n}\nmat3 transposeMat3( const in mat3 m ) {\n\tmat3 tmp;\n\ttmp[ 0 ] = vec3( m[ 0 ].x, m[ 1 ].x, m[ 2 ].x );\n\ttmp[ 1 ] = vec3( m[ 0 ].y, m[ 1 ].y, m[ 2 ].y );\n\ttmp[ 2 ] = vec3( m[ 0 ].z, m[ 1 ].z, m[ 2 ].z );\n\treturn tmp;\n}\nbool isPerspectiveMatrix( mat4 m ) {\n\treturn m[ 2 ][ 3 ] == - 1.0;\n}\nvec2 equirectUv( in vec3 dir ) {\n\tfloat u = atan( dir.z, dir.x ) * RECIPROCAL_PI2 + 0.5;\n\tfloat v = asin( clamp( dir.y, - 1.0, 1.0 ) ) * RECIPROCAL_PI + 0.5;\n\treturn vec2( u, v );\n}\nvec3 BRDF_Lambert( const in vec3 diffuseColor ) {\n\treturn RECIPROCAL_PI * diffuseColor;\n}\nvec3 F_Schlick( const in vec3 f0, const in float f90, const in float dotVH ) {\n\tfloat fresnel = exp2( ( - 5.55473 * dotVH - 6.98316 ) * dotVH );\n\treturn f0 * ( 1.0 - fresnel ) + ( f90 * fresnel );\n}\nfloat F_Schlick( const in float f0, const in float f90, const in float dotVH ) {\n\tfloat fresnel = exp2( ( - 5.55473 * dotVH - 6.98316 ) * dotVH );\n\treturn f0 * ( 1.0 - fresnel ) + ( f90 * fresnel );\n} // validated",VI="#ifdef ENVMAP_TYPE_CUBE_UV\n\t#define cubeUV_minMipLevel 4.0\n\t#define cubeUV_minTileSize 16.0\n\tfloat getFace( vec3 direction ) {\n\t\tvec3 absDirection = abs( direction );\n\t\tfloat face = - 1.0;\n\t\tif ( absDirection.x > absDirection.z ) {\n\t\t\tif ( absDirection.x > absDirection.y )\n\t\t\t\tface = direction.x > 0.0 ? 0.0 : 3.0;\n\t\t\telse\n\t\t\t\tface = direction.y > 0.0 ? 1.0 : 4.0;\n\t\t} else {\n\t\t\tif ( absDirection.z > absDirection.y )\n\t\t\t\tface = direction.z > 0.0 ? 2.0 : 5.0;\n\t\t\telse\n\t\t\t\tface = direction.y > 0.0 ? 1.0 : 4.0;\n\t\t}\n\t\treturn face;\n\t}\n\tvec2 getUV( vec3 direction, float face ) {\n\t\tvec2 uv;\n\t\tif ( face == 0.0 ) {\n\t\t\tuv = vec2( direction.z, direction.y ) / abs( direction.x );\n\t\t} else if ( face == 1.0 ) {\n\t\t\tuv = vec2( - direction.x, - direction.z ) / abs( direction.y );\n\t\t} else if ( face == 2.0 ) {\n\t\t\tuv = vec2( - direction.x, direction.y ) / abs( direction.z );\n\t\t} else if ( face == 3.0 ) {\n\t\t\tuv = vec2( - direction.z, direction.y ) / abs( direction.x );\n\t\t} else if ( face == 4.0 ) {\n\t\t\tuv = vec2( - direction.x, direction.z ) / abs( direction.y );\n\t\t} else {\n\t\t\tuv = vec2( direction.x, direction.y ) / abs( direction.z );\n\t\t}\n\t\treturn 0.5 * ( uv + 1.0 );\n\t}\n\tvec3 bilinearCubeUV( sampler2D envMap, vec3 direction, float mipInt ) {\n\t\tfloat face = getFace( direction );\n\t\tfloat filterInt = max( cubeUV_minMipLevel - mipInt, 0.0 );\n\t\tmipInt = max( mipInt, cubeUV_minMipLevel );\n\t\tfloat faceSize = exp2( mipInt );\n\t\thighp vec2 uv = getUV( direction, face ) * ( faceSize - 2.0 ) + 1.0;\n\t\tif ( face > 2.0 ) {\n\t\t\tuv.y += faceSize;\n\t\t\tface -= 3.0;\n\t\t}\n\t\tuv.x += face * faceSize;\n\t\tuv.x += filterInt * 3.0 * cubeUV_minTileSize;\n\t\tuv.y += 4.0 * ( exp2( CUBEUV_MAX_MIP ) - faceSize );\n\t\tuv.x *= CUBEUV_TEXEL_WIDTH;\n\t\tuv.y *= CUBEUV_TEXEL_HEIGHT;\n\t\t#ifdef texture2DGradEXT\n\t\t\treturn texture2DGradEXT( envMap, uv, vec2( 0.0 ), vec2( 0.0 ) ).rgb;\n\t\t#else\n\t\t\treturn texture2D( envMap, uv ).rgb;\n\t\t#endif\n\t}\n\t#define cubeUV_r0 1.0\n\t#define cubeUV_m0 - 2.0\n\t#define cubeUV_r1 0.8\n\t#define cubeUV_m1 - 1.0\n\t#define cubeUV_r4 0.4\n\t#define cubeUV_m4 2.0\n\t#define cubeUV_r5 0.305\n\t#define cubeUV_m5 3.0\n\t#define cubeUV_r6 0.21\n\t#define cubeUV_m6 4.0\n\tfloat roughnessToMip( float roughness ) {\n\t\tfloat mip = 0.0;\n\t\tif ( roughness >= cubeUV_r1 ) {\n\t\t\tmip = ( cubeUV_r0 - roughness ) * ( cubeUV_m1 - cubeUV_m0 ) / ( cubeUV_r0 - cubeUV_r1 ) + cubeUV_m0;\n\t\t} else if ( roughness >= cubeUV_r4 ) {\n\t\t\tmip = ( cubeUV_r1 - roughness ) * ( cubeUV_m4 - cubeUV_m1 ) / ( cubeUV_r1 - cubeUV_r4 ) + cubeUV_m1;\n\t\t} else if ( roughness >= cubeUV_r5 ) {\n\t\t\tmip = ( cubeUV_r4 - roughness ) * ( cubeUV_m5 - cubeUV_m4 ) / ( cubeUV_r4 - cubeUV_r5 ) + cubeUV_m4;\n\t\t} else if ( roughness >= cubeUV_r6 ) {\n\t\t\tmip = ( cubeUV_r5 - roughness ) * ( cubeUV_m6 - cubeUV_m5 ) / ( cubeUV_r5 - cubeUV_r6 ) + cubeUV_m5;\n\t\t} else {\n\t\t\tmip = - 2.0 * log2( 1.16 * roughness );\t\t}\n\t\treturn mip;\n\t}\n\tvec4 textureCubeUV( sampler2D envMap, vec3 sampleDir, float roughness ) {\n\t\tfloat mip = clamp( roughnessToMip( roughness ), cubeUV_m0, CUBEUV_MAX_MIP );\n\t\tfloat mipF = fract( mip );\n\t\tfloat mipInt = floor( mip );\n\t\tvec3 color0 = bilinearCubeUV( envMap, sampleDir, mipInt );\n\t\tif ( mipF == 0.0 ) {\n\t\t\treturn vec4( color0, 1.0 );\n\t\t} else {\n\t\t\tvec3 color1 = bilinearCubeUV( envMap, sampleDir, mipInt + 1.0 );\n\t\t\treturn vec4( mix( color0, color1, mipF ), 1.0 );\n\t\t}\n\t}\n#endif",$I="vec3 transformedNormal = objectNormal;\n#ifdef USE_TANGENT\n\tvec3 transformedTangent = objectTangent;\n#endif\n#ifdef USE_BATCHING\n\tmat3 bm = mat3( batchingMatrix );
13\n\ttransformedNormal /= vec3( dot( bm[ 0 ], bm[ 0 ] ), dot( bm[ 1 ], bm[ 1 ] ), dot( bm[ 2 ], bm[ 2 ] ) );\n\ttransformedNormal = bm * transformedNormal;\n\t#ifdef USE_TANGENT\n\t\ttransformedTangent = bm * transformedTangent;\n\t#endif\n#endif\n#ifdef USE_INSTANCING\n\tmat3 im = mat3( instanceMatrix );\n\ttransformedNormal /= vec3( dot( im[ 0 ], im[ 0 ] ), dot( im[ 1 ], im[ 1 ] ), dot( im[ 2 ], im[ 2 ] ) );\n\ttransformedNormal = im * transformedNormal;\n\t#ifdef USE_TANGENT\n\t\ttransformedTangent = im * transformedTangent;\n\t#endif\n#endif\ntransformedNormal = normalMatrix * transformedNormal;\n#ifdef FLIP_SIDED\n\ttransformedNormal = - transformedNormal;\n#endif\n#ifdef USE_TANGENT\n\ttransformedTangent = ( modelViewMatrix * vec4( transformedTangent, 0.0 ) ).xyz;\n\t#ifdef FLIP_SIDED\n\t\ttransformedTangent = - transformedTangent;\n\t#endif\n#endif",GI="#ifdef USE_DISPLACEMENTMAP\n\tuniform sampler2D displacementMap;\n\tuniform float displacementScale;\n\tuniform float displacementBias;\n#endif",WI="#ifdef USE_DISPLACEMENTMAP\n\ttransformed += normalize( objectNormal ) * ( texture2D( displacementMap, vDisplacementMapUv ).x * displacementScale + displacementBias );\n#endif",XI="#ifdef USE_EMISSIVEMAP\n\tvec4 emissiveColor = texture2D( emissiveMap, vEmissiveMapUv );\n\t#ifdef DECODE_VIDEO_TEXTURE_EMISSIVE\n\t\temissiveColor = sRGBTransferEOTF( emissiveColor );\n\t#endif\n\ttotalEmissiveRadiance *= emissiveColor.rgb;\n#endif",qI="#ifdef USE_EMISSIVEMAP\n\tuniform sampler2D emissiveMap;\n#endif",YI="gl_FragColor = linearToOutputTexel( gl_FragColor );",jI="vec4 LinearTransferOETF( in vec4 value ) {\n\treturn value;\n}\nvec4 sRGBTransferEOTF( in vec4 value ) {\n\treturn vec4( mix( pow( value.rgb * 0.9478672986 + vec3( 0.0521327014 ), vec3( 2.4 ) ), value.rgb * 0.0773993808, vec3( lessThanEqual( value.rgb, vec3( 0.04045 ) ) ) ), value.a );\n}\nvec4 sRGBTransferOETF( in vec4 value ) {\n\treturn vec4( mix( pow( value.rgb, vec3( 0.41666 ) ) * 1.055 - vec3( 0.055 ), value.rgb * 12.92, vec3( lessThanEqual( value.rgb, vec3( 0.0031308 ) ) ) ), value.a );\n}",KI="#ifdef USE_ENVMAP\n\t#ifdef ENV_WORLDPOS\n\t\tvec3 cameraToFrag;\n\t\tif ( isOrthographic ) {\n\t\t\tcameraToFrag = normalize( vec3( - viewMatrix[ 0 ][ 2 ], - viewMatrix[ 1 ][ 2 ], - viewMatrix[ 2 ][ 2 ] ) );\n\t\t} else {\n\t\t\tcameraToFrag = normalize( vWorldPosition - cameraPosition );\n\t\t}\n\t\tvec3 worldNormal = inverseTransformDirection( normal, viewMatrix );\n\t\t#ifdef ENVMAP_MODE_REFLECTION\n\t\t\tvec3 reflectVec = reflect( cameraToFrag, worldNormal );\n\t\t#else\n\t\t\tvec3 reflectVec = refract( cameraToFrag, worldNormal, refractionRatio );\n\t\t#endif\n\t#else\n\t\tvec3 reflectVec = vReflect;\n\t#endif\n\t#ifdef ENVMAP_TYPE_CUBE\n\t\tvec4 envColor = textureCube( envMap, envMapRotation * vec3( flipEnvMap * reflectVec.x, reflectVec.yz ) );\n\t#else\n\t\tvec4 envColor = vec4( 0.0 );\n\t#endif\n\t#ifdef ENVMAP_BLENDING_MULTIPLY\n\t\toutgoingLight = mix( outgoingLight, outgoingLight * envColor.xyz, specularStrength * reflectivity );\n\t#elif defined( ENVMAP_BLENDING_MIX )\n\t\toutgoingLight = mix( outgoingLight, envColor.xyz, specularStrength * reflectivity );\n\t#elif defined( ENVMAP_BLENDING_ADD )\n\t\toutgoingLight += envColor.xyz * specularStrength * reflectivity;\n\t#endif\n#endif",QI="#ifdef USE_ENVMAP\n\tuniform float envMapIntensity;\n\tuniform float flipEnvMap;\n\tuniform mat3 envMapRotation;\n\t#ifdef ENVMAP_TYPE_CUBE\n\t\tuniform samplerCube envMap;\n\t#else\n\t\tuniform sampler2D envMap;\n\t#endif\n\t\n#endif",ZI="#ifdef USE_ENVMAP\n\tuniform float reflectivity;\n\t#if defined( USE_BUMPMAP ) || defined( USE_NORMALMAP ) || defined( PHONG ) || defined( LAMBERT )\n\t\t#define ENV_WORLDPOS\n\t#endif\n\t#ifdef ENV_WORLDPOS\n\t\tvarying vec3 vWorldPosition;\n\t\tuniform float refractionRatio;\n\t#else\n\t\tvarying vec3 vReflect;\n\t#endif\n#endif",JI="#ifdef USE_ENVMAP\n\t#if defined( USE_BUMPMAP ) || defined( USE_NORMALMAP ) || defined( PHONG ) || defined( LAMBERT )\n\t\t#define ENV_WORLDPOS\n\t#endif\n\t#ifdef ENV_WORLDPOS\n\t\t\n\t\tvarying vec3 vWorldPosition;\n\t#else\n\t\tvarying vec3 vReflect;\n\t\tuniform float refractionRatio;\n\t#endif\n#endif",eN="#ifdef USE_ENVMAP\n\t#ifdef ENV_WORLDPOS\n\t\tvWorldPosition = worldPosition.xyz;\n\t#else\n\t\tvec3 cameraToVertex;\n\t\tif ( isOrthographic ) {\n\t\t\tcameraToVertex = normalize( vec3( - viewMatrix[ 0 ][ 2 ], - viewMatrix[ 1 ][ 2 ], - viewMatrix[ 2 ][ 2 ] ) );\n\t\t}
13 else {\n\t\t\tcameraToVertex = normalize( worldPosition.xyz - cameraPosition );\n\t\t}\n\t\tvec3 worldNormal = inverseTransformDirection( transformedNormal, viewMatrix );\n\t\t#ifdef ENVMAP_MODE_REFLECTION\n\t\t\tvReflect = reflect( cameraToVertex, worldNormal );\n\t\t#else\n\t\t\tvReflect = refract( cameraToVertex, worldNormal, refractionRatio );\n\t\t#endif\n\t#endif\n#endif",tN="#ifdef USE_FOG\n\tvFogDepth = - mvPosition.z;\n#endif",nN="#ifdef USE_FOG\n\tvarying float vFogDepth;\n#endif",iN="#ifdef USE_FOG\n\t#ifdef FOG_EXP2\n\t\tfloat fogFactor = 1.0 - exp( - fogDensity * fogDensity * vFogDepth * vFogDepth );\n\t#else\n\t\tfloat fogFactor = smoothstep( fogNear, fogFar, vFogDepth );\n\t#endif\n\tgl_FragColor.rgb = mix( gl_FragColor.rgb, fogColor, fogFactor );\n#endif",rN="#ifdef USE_FOG\n\tuniform vec3 fogColor;\n\tvarying float vFogDepth;\n\t#ifdef FOG_EXP2\n\t\tuniform float fogDensity;\n\t#else\n\t\tuniform float fogNear;\n\t\tuniform float fogFar;\n\t#endif\n#endif",oN="#ifdef USE_GRADIENTMAP\n\tuniform sampler2D gradientMap;\n#endif\nvec3 getGradientIrradiance( vec3 normal, vec3 lightDirection ) {\n\tfloat dotNL = dot( normal, lightDirection );\n\tvec2 coord = vec2( dotNL * 0.5 + 0.5, 0.0 );\n\t#ifdef USE_GRADIENTMAP\n\t\treturn vec3( texture2D( gradientMap, coord ).r );\n\t#else\n\t\tvec2 fw = fwidth( coord ) * 0.5;\n\t\treturn mix( vec3( 0.7 ), vec3( 1.0 ), smoothstep( 0.7 - fw.x, 0.7 + fw.x, coord.x ) );\n\t#endif\n}",sN="#ifdef USE_LIGHTMAP\n\tuniform sampler2D lightMap;\n\tuniform float lightMapIntensity;\n#endif",aN="LambertMaterial material;\nmaterial.diffuseColor = diffuseColor.rgb;\nmaterial.specularStrength = specularStrength;",lN="varying vec3 vViewPosition;\nstruct LambertMaterial {\n\tvec3 diffuseColor;\n\tfloat specularStrength;\n};\nvoid RE_Direct_Lambert( const in IncidentLight directLight, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in LambertMaterial material, inout ReflectedLight reflectedLight ) {\n\tfloat dotNL = saturate( dot( geometryNormal, directLight.direction ) );\n\tvec3 irradiance = dotNL * directLight.color;\n\treflectedLight.directDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );\n}\nvoid RE_IndirectDiffuse_Lambert( const in vec3 irradiance, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in LambertMaterial material, inout ReflectedLight reflectedLight ) {\n\treflectedLight.indirectDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );\n}\n#define RE_Direct\t\t\t\tRE_Direct_Lambert\n#define RE_IndirectDiffuse\t\tRE_IndirectDiffuse_Lambert",cN="uniform bool receiveShadow;\nuniform vec3 ambientLightColor;\n#if defined( USE_LIGHT_PROBES )\n\tuniform vec3 lightProbe[ 9 ];\n#endif\nvec3 shGetIrradianceAt( in vec3 normal, in vec3 shCoefficients[ 9 ] ) {\n\tfloat x = normal.x, y = normal.y, z = normal.z;\n\tvec3 result = shCoefficients[ 0 ] * 0.886227;\n\tresult += shCoefficients[ 1 ] * 2.0 * 0.511664 * y;\n\tresult += shCoefficients[ 2 ] * 2.0 * 0.511664 * z;\n\tresult += shCoefficients[ 3 ] * 2.0 * 0.511664 * x;\n\tresult += shCoefficients[ 4 ] * 2.0 * 0.429043 * x * y;\n\tresult += shCoefficients[ 5 ] * 2.0 * 0.429043 * y * z;\n\tresult += shCoefficients[ 6 ] * ( 0.743125 * z * z - 0.247708 );\n\tresult += shCoefficients[ 7 ] * 2.0 * 0.429043 * x * z;\n\tresult += shCoefficients[ 8 ] * 0.429043 * ( x * x - y * y );\n\treturn result;\n}\nvec3 getLightProbeIrradiance( const in vec3 lightProbe[ 9 ], const in vec3 normal ) {\n\tvec3 worldNormal = inverseTransformDirection( normal, viewMatrix );\n\tvec3 irradiance = shGetIrradianceAt( worldNormal, lightProbe );\n\treturn irradiance;\n}\nvec3 getAmbientLightIrradiance( const in vec3 ambientLightColor ) {\n\tvec3 irradiance = ambientLightColor;\n\treturn irradiance;\n}\nfloat getDistanceAttenuation( const in float lightDistance, const in float cutoffDistance, const in float decayExponent ) {\n\tfloat distanceFalloff = 1.0 / max( pow( lightDistance, decayExponent ), 0.01 );\n\tif ( cutoffDistance > 0.0 ) {\n\t\tdistanceFalloff *= pow2( saturate( 1.0 - pow4( lightDistance / cutoffDistance ) ) );\n\t}\n\treturn distanceFalloff;\n}\nfloat getSpotAttenuation( const in float coneCosine, const in float penumbraCosine, const in float angleCosine ) {\n\treturn smoothstep( coneCosine, penumbraCosine, angleCosine );\n}\n#if NUM_DIR_LIGHTS > 0\n\tstruct DirectionalLight {\n\t\tvec3 direction;\n\t\tvec3 color;\n\t};\n\tuniform DirectionalLight directionalLights[ NUM_DIR_LIGHTS ];\n\tvoid getDirectionalLightInfo( const in DirectionalLight directionalLight, out IncidentLight light ) {\n\t\tlight.color = directionalLight.color;\n\t\tlight.direction = directionalLight.direction;\n\t\tlight.visible = true;\n\t}\n#endif\n#if NUM_POINT_LIGHTS > 0\n\tstruct PointLight {\n\t\tvec3 position;\n\t\tvec3 color;\n\t\tfloat distance;\n\t\tfloat decay;\n\t};\n\tuniform PointLight pointLights[ NUM_POINT_LIGHTS ];\n\tvoid getPointLightInfo( const in PointLight pointLight, const in vec3 geometryPosition, out IncidentLight light ) {\n\t\tvec3 lVector = pointLight.position - geometryPosition;\n\t\tlight.direction = normalize( lVector );\n\t\tfloat lightDistance = length( lVector );\n\t\tlight.color = pointLight.color;\n\t\tlight.color *= getDistanceAttenuation( lightDistance, pointLight.distance, pointLight.decay );\n\t\tlight.visible = ( light.color != vec3( 0.0 ) );\n\t}
13\n#endif\n#if NUM_SPOT_LIGHTS > 0\n\tstruct SpotLight {\n\t\tvec3 position;\n\t\tvec3 direction;\n\t\tvec3 color;\n\t\tfloat distance;\n\t\tfloat decay;\n\t\tfloat coneCos;\n\t\tfloat penumbraCos;\n\t};\n\tuniform SpotLight spotLights[ NUM_SPOT_LIGHTS ];\n\tvoid getSpotLightInfo( const in SpotLight spotLight, const in vec3 geometryPosition, out IncidentLight light ) {\n\t\tvec3 lVector = spotLight.position - geometryPosition;\n\t\tlight.direction = normalize( lVector );\n\t\tfloat angleCos = dot( light.direction, spotLight.direction );\n\t\tfloat spotAttenuation = getSpotAttenuation( spotLight.coneCos, spotLight.penumbraCos, angleCos );\n\t\tif ( spotAttenuation > 0.0 ) {\n\t\t\tfloat lightDistance = length( lVector );\n\t\t\tlight.color = spotLight.color * spotAttenuation;\n\t\t\tlight.color *= getDistanceAttenuation( lightDistance, spotLight.distance, spotLight.decay );\n\t\t\tlight.visible = ( light.color != vec3( 0.0 ) );\n\t\t} else {\n\t\t\tlight.color = vec3( 0.0 );\n\t\t\tlight.visible = false;\n\t\t}\n\t}\n#endif\n#if NUM_RECT_AREA_LIGHTS > 0\n\tstruct RectAreaLight {\n\t\tvec3 color;\n\t\tvec3 position;\n\t\tvec3 halfWidth;\n\t\tvec3 halfHeight;\n\t};\n\tuniform sampler2D ltc_1;\tuniform sampler2D ltc_2;\n\tuniform RectAreaLight rectAreaLights[ NUM_RECT_AREA_LIGHTS ];\n#endif\n#if NUM_HEMI_LIGHTS > 0\n\tstruct HemisphereLight {\n\t\tvec3 direction;\n\t\tvec3 skyColor;\n\t\tvec3 groundColor;\n\t};\n\tuniform HemisphereLight hemisphereLights[ NUM_HEMI_LIGHTS ];\n\tvec3 getHemisphereLightIrradiance( const in HemisphereLight hemiLight, const in vec3 normal ) {\n\t\tfloat dotNL = dot( normal, hemiLight.direction );\n\t\tfloat hemiDiffuseWeight = 0.5 * dotNL + 0.5;\n\t\tvec3 irradiance = mix( hemiLight.groundColor, hemiLight.skyColor, hemiDiffuseWeight );\n\t\treturn irradiance;\n\t}\n#endif",uN="#ifdef USE_ENVMAP\n\tvec3 getIBLIrradiance( const in vec3 normal ) {\n\t\t#ifdef ENVMAP_TYPE_CUBE_UV\n\t\t\tvec3 worldNormal = inverseTransformDirection( normal, viewMatrix );\n\t\t\tvec4 envMapColor = textureCubeUV( envMap, envMapRotation * worldNormal, 1.0 );\n\t\t\treturn PI * envMapColor.rgb * envMapIntensity;\n\t\t#else\n\t\t\treturn vec3( 0.0 );\n\t\t#endif\n\t}\n\tvec3 getIBLRadiance( const in vec3 viewDir, const in vec3 normal, const in float roughness ) {\n\t\t#ifdef ENVMAP_TYPE_CUBE_UV\n\t\t\tvec3 reflectVec = reflect( - viewDir, normal );\n\t\t\treflectVec = normalize( mix( reflectVec, normal, roughness * roughness) );\n\t\t\treflectVec = inverseTransformDirection( reflectVec, viewMatrix );\n\t\t\tvec4 envMapColor = textureCubeUV( envMap, envMapRotation * reflectVec, roughness );\n\t\t\treturn envMapColor.rgb * envMapIntensity;\n\t\t#else\n\t\t\treturn vec3( 0.0 );\n\t\t#endif\n\t}\n\t#ifdef USE_ANISOTROPY\n\t\tvec3 getIBLAnisotropyRadiance( const in vec3 viewDir, const in vec3 normal, const in float roughness, const in vec3 bitangent, const in float anisotropy ) {\n\t\t\t#ifdef ENVMAP_TYPE_CUBE_UV\n\t\t\t\tvec3 bentNormal = cross( bitangent, viewDir );\n\t\t\t\tbentNormal = normalize( cross( bentNormal, bitangent ) );\n\t\t\t\tbentNormal = normalize( mix( bentNormal, normal, pow2( pow2( 1.0 - anisotropy * ( 1.0 - roughness ) ) ) ) );\n\t\t\t\treturn getIBLRadiance( viewDir, bentNormal, roughness );\n\t\t\t#else\n\t\t\t\treturn vec3( 0.0 );\n\t\t\t#endif\n\t\t}\n\t#endif\n#endif",dN="ToonMaterial material;\nmaterial.diffuseColor = diffuseColor.rgb;",fN="varying vec3 vViewPosition;\nstruct ToonMaterial {\n\tvec3 diffuseColor;\n};\nvoid RE_Direct_Toon( const in IncidentLight directLight, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in ToonMaterial material, inout ReflectedLight reflectedLight ) {\n\tvec3 irradiance = getGradientIrradiance( geometryNormal, directLight.direction ) * directLight.color;\n\treflectedLight.directDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );\n}\nvoid RE_IndirectDiffuse_Toon( const in vec3 irradiance, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in ToonMaterial material, inout ReflectedLight reflectedLight ) {\n\treflectedLight.indirectDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );\n}\n#define RE_Direct\t\t\t\tRE_Direct_Toon\n#define RE_IndirectDiffuse\t\tRE_IndirectDiffuse_Toon",hN="BlinnPhongMaterial material;\nmaterial.diffuseColor = diffuseColor.rgb;\nmaterial.specularColor = specular;\nmaterial.specularShininess = shininess;\nmaterial.specularStrength = specularStrength;",pN="varying vec3 vViewPosition;\nstruct BlinnPhongMaterial {\n\tvec3 diffuseColor;\n\tvec3 specularColor;\n\tfloat specularShininess;\n\tfloat specularStrength;\n};\nvoid RE_Direct_BlinnPhong( const in IncidentLight directLight, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in BlinnPhongMaterial material, inout ReflectedLight reflectedLight ) {\n\tfloat dotNL = saturate( dot
13( geometryNormal, directLight.direction ) );\n\tvec3 irradiance = dotNL * directLight.color;\n\treflectedLight.directDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );\n\treflectedLight.directSpecular += irradiance * BRDF_BlinnPhong( directLight.direction, geometryViewDir, geometryNormal, material.specularColor, material.specularShininess ) * material.specularStrength;\n}\nvoid RE_IndirectDiffuse_BlinnPhong( const in vec3 irradiance, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in BlinnPhongMaterial material, inout ReflectedLight reflectedLight ) {\n\treflectedLight.indirectDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );\n}\n#define RE_Direct\t\t\t\tRE_Direct_BlinnPhong\n#define RE_IndirectDiffuse\t\tRE_IndirectDiffuse_BlinnPhong",mN="PhysicalMaterial material;\nmaterial.diffuseColor = diffuseColor.rgb * ( 1.0 - metalnessFactor );\nvec3 dxy = max( abs( dFdx( nonPerturbedNormal ) ), abs( dFdy( nonPerturbedNormal ) ) );\nfloat geometryRoughness = max( max( dxy.x, dxy.y ), dxy.z );\nmaterial.roughness = max( roughnessFactor, 0.0525 );material.roughness += geometryRoughness;\nmaterial.roughness = min( material.roughness, 1.0 );\n#ifdef IOR\n\tmaterial.ior = ior;\n\t#ifdef USE_SPECULAR\n\t\tfloat specularIntensityFactor = specularIntensity;\n\t\tvec3 specularColorFactor = specularColor;\n\t\t#ifdef USE_SPECULAR_COLORMAP\n\t\t\tspecularColorFactor *= texture2D( specularColorMap, vSpecularColorMapUv ).rgb;\n\t\t#endif\n\t\t#ifdef USE_SPECULAR_INTENSITYMAP\n\t\t\tspecularIntensityFactor *= texture2D( specularIntensityMap, vSpecularIntensityMapUv ).a;\n\t\t#endif\n\t\tmaterial.specularF90 = mix( specularIntensityFactor, 1.0, metalnessFactor );\n\t#else\n\t\tfloat specularIntensityFactor = 1.0;\n\t\tvec3 specularColorFactor = vec3( 1.0 );\n\t\tmaterial.specularF90 = 1.0;\n\t#endif\n\tmaterial.specularColor = mix( min( pow2( ( material.ior - 1.0 ) / ( material.ior + 1.0 ) ) * specularColorFactor, vec3( 1.0 ) ) * specularIntensityFactor, diffuseColor.rgb, metalnessFactor );\n#else\n\tmaterial.specularColor = mix( vec3( 0.04 ), diffuseColor.rgb, metalnessFactor );\n\tmaterial.specularF90 = 1.0;\n#endif\n#ifdef USE_CLEARCOAT\n\tmaterial.clearcoat = clearcoat;
13\n\tmaterial.clearcoatRoughness = clearcoatRoughness;\n\tmaterial.clearcoatF0 = vec3( 0.04 );\n\tmaterial.clearcoatF90 = 1.0;\n\t#ifdef USE_CLEARCOATMAP\n\t\tmaterial.clearcoat *= texture2D( clearcoatMap, vClearcoatMapUv ).x;\n\t#endif\n\t#ifdef USE_CLEARCOAT_ROUGHNESSMAP\n\t\tmaterial.clearcoatRoughness *= texture2D( clearcoatRoughnessMap, vClearcoatRoughnessMapUv ).y;\n\t#endif\n\tmaterial.clearcoat = saturate( material.clearcoat );\tmaterial.clearcoatRoughness = max( material.clearcoatRoughness, 0.0525 );\n\tmaterial.clearcoatRoughness += geometryRoughness;\n\tmaterial.clearcoatRoughness = min( material.clearcoatRoughness, 1.0 );\n#endif\n#ifdef USE_DISPERSION\n\tmaterial.dispersion = dispersion;\n#endif\n#ifdef USE_IRIDESCENCE\n\tmaterial.iridescence = iridescence;\n\tmaterial.iridescenceIOR = iridescenceIOR;\n\t#ifdef USE_IRIDESCENCEMAP\n\t\tmaterial.iridescence *= texture2D( iridescenceMap, vIridescenceMapUv ).r;\n\t#endif\n\t#ifdef USE_IRIDESCENCE_THICKNESSMAP\n\t\tmaterial.iridescenceThickness = (iridescenceThicknessMaximum - iridescenceThicknessMinimum) * texture2D( iridescenceThicknessMap, vIridescenceThicknessMapUv ).g + iridescenceThicknessMinimum;\n\t#else\n\t\tmaterial.iridescenceThickness = iridescenceThicknessMaximum;\n\t#endif\n#endif\n#ifdef USE_SHEEN\n\tmaterial.sheenColor = sheenColor;\n\t#ifdef USE_SHEEN_COLORMAP\n\t\tmaterial.sheenColor *= texture2D( sheenColorMap, vSheenColorMapUv ).rgb;\n\t#endif\n\tmaterial.sheenRoughness = clamp( sheenRoughness, 0.07, 1.0 );\n\t#ifdef USE_SHEEN_ROUGHNESSMAP\n\t\tmaterial.sheenRoughness *= texture2D( sheenRoughnessMap, vSheenRoughnessMapUv ).a;\n\t#endif\n#endif\n#ifdef USE_ANISOTROPY\n\t#ifdef USE_ANISOTROPYMAP\n\t\tmat2 anisotropyMat = mat2( anisotropyVector.x, anisotropyVector.y, - anisotropyVector.y, anisotropyVector.x );\n\t\tvec3 anisotropyPolar = texture2D( anisotropyMap, vAnisotropyMapUv ).rgb;\n\t\tvec2 anisotropyV = anisotropyMat * normalize( 2.0 * anisotropyPolar.rg - vec2( 1.0 ) ) * anisotropyPolar.b;\n\t#else\n\t\tvec2 anisotropyV = anisotropyVector;\n\t#endif\n\tmaterial.anisotropy = length( anisotropyV );\n\tif( material.anisotropy == 0.0 ) {\n\t\tanisotropyV = vec2( 1.0, 0.0 );\n\t} else {\n\t\tanisotropyV /= material.anisotropy;\n\t\tmaterial.anisotropy = saturate( material.anisotropy );\n\t}\n\tmaterial.alphaT = mix( pow2( material.roughness ), 1.0, pow2( material.anisotropy ) );\n\tmaterial.anisotropyT = tbn[ 0 ] * anisotropyV.x + tbn[ 1 ] * anisotropyV.y;\n\tmaterial.anisotropyB = tbn[ 1 ] * anisotropyV.x - tbn[ 0 ] * anisotropyV.y;\n#endif",vN="struct PhysicalMaterial {\n\tvec3 diffuseColor;\n\tfloat roughness;\n\tvec3 specularColor;\n\tfloat specularF90;\n\tfloat dispersion
vendor: 15,194 bytes, line 13
13;\n\t#ifdef USE_CLEARCOAT\n\t\tfloat clearcoat;\n\t\tfloat clearcoatRoughness;\n\t\tvec3 clearcoatF0;\n\t\tfloat clearcoatF90;\n\t#endif\n\t#ifdef USE_IRIDESCENCE\n\t\tfloat iridescence;\n\t\tfloat iridescenceIOR;\n\t\tfloat iridescenceThickness;\n\t\tvec3 iridescenceFresnel;\n\t\tvec3 iridescenceF0;\n\t#endif\n\t#ifdef USE_SHEEN\n\t\tvec3 sheenColor;\n\t\tfloat sheenRoughness;\n\t#endif\n\t#ifdef IOR\n\t\tfloat ior;\n\t#endif\n\t#ifdef USE_TRANSMISSION\n\t\tfloat transmission;\n\t\tfloat transmissionAlpha;\n\t\tfloat thickness;\n\t\tfloat attenuationDistance;\n\t\tvec3 attenuationColor;\n\t#endif\n\t#ifdef USE_ANISOTROPY\n\t\tfloat anisotropy;\n\t\tfloat alphaT;\n\t\tvec3 anisotropyT;\n\t\tvec3 anisotropyB;\n\t#endif\n};\nvec3 clearcoatSpecularDirect = vec3( 0.0 );\nvec3 clearcoatSpecularIndirect = vec3( 0.0 );\nvec3 sheenSpecularDirect = vec3( 0.0 );\nvec3 sheenSpecularIndirect = vec3(0.0 );\nvec3 Schlick_to_F0( const in vec3 f, const in float f90, const in float dotVH ) {\n float x = clamp( 1.0 - dotVH, 0.0, 1.0 );\n float x2 = x * x;\n float x5 = clamp( x * x2 * x2, 0.0, 0.9999 );\n return ( f - vec3( f90 ) * x5 ) / ( 1.0 - x5 );\n}\nfloat V_GGX_SmithCorrelated( const in float alpha, const in float dotNL, const in float dotNV ) {\n\tfloat a2 = pow2( alpha );\n\tfloat gv = dotNL * sqrt( a2 + ( 1.0 - a2 ) * pow2( dotNV ) );\n\tfloat gl = dotNV * sqrt( a2 + ( 1.0 - a2 ) * pow2( dotNL ) );\n\treturn 0.5 / max( gv + gl, EPSILON );\n}\nfloat D_GGX( const in float alpha, const in float dotNH ) {\n\tfloat a2 = pow2( alpha );\n\tfloat denom = pow2( dotNH ) * ( a2 - 1.0 ) + 1.0;\n\treturn RECIPROCAL_PI * a2 / pow2( denom );\n}\n#ifdef USE_ANISOTROPY\n\tfloat V_GGX_SmithCorrelated_Anisotropic( const in float alphaT, const in float alphaB, const in float dotTV, const in float dotBV, const in float dotTL, const in float dotBL, const in float dotNV, const in float dotNL ) {\n\t\tfloat gv = dotNL * length( vec3( alphaT * dotTV, alphaB * dotBV, dotNV ) );\n\t\tfloat gl = dotNV * length( vec3( alphaT * dotTL, alphaB * dotBL, dotNL ) );\n\t\tfloat v = 0.5 / ( gv + gl );\n\t\treturn saturate(v);\n\t}\n\tfloat D_GGX_Anisotropic( const in float alphaT, const in float alphaB, const in float dotNH, const in float dotTH, const in float dotBH ) {\n\t\tfloat a2 = alphaT * alphaB;\n\t\thighp vec3 v = vec3( alphaB * dotTH, alphaT * dotBH, a2 * dotNH );\n\t\thighp float v2 = dot( v, v );\n\t\tfloat w2 = a2 / v2;\n\t\treturn RECIPROCAL_PI * a2 * pow2 ( w2 );\n\t}\n#endif\n#ifdef USE_CLEARCOAT\n\tvec3 BRDF_GGX_Clearcoat( const in vec3 lightDir, const in vec3 viewDir, const in vec3 normal, const in PhysicalMaterial material) {\n\t\tvec3 f0 = material.clearcoatF0;\n\t\tfloat f90 = material.clearcoatF90;\n\t\tfloat roughness = material.clearcoatRoughness;\n\t\tfloat alpha = pow2( roughness );\n\t\tvec3 halfDir = normalize( lightDir + viewDir );\n\t\tfloat dotNL = saturate( dot( normal, lightDir ) );\n\t\tfloat dotNV = saturate( dot( normal, viewDir ) );\n\t\tfloat dotNH = saturate( dot( normal, halfDir ) );\n\t\tfloat dotVH = saturate( dot( viewDir, halfDir ) );\n\t\tvec3 F = F_Schlick( f0, f90, dotVH );\n\t\tfloat V = V_GGX_SmithCorrelated( alpha, dotNL, dotNV );\n\t\tfloat D = D_GGX( alpha, dotNH );\n\t\treturn F * ( V * D );\n\t}\n#endif\nvec3 BRDF_GGX( const in vec3 lightDir, const in vec3 viewDir, const in vec3 normal, const in PhysicalMaterial material ) {\n\tvec3 f0 = material.specularColor;\n\tfloat f90 = material.specularF90;\n\tfloat roughness = material.roughness;\n\tfloat alpha = pow2( roughness );\n\tvec3 halfDir = normalize( lightDir + viewDir );\n\tfloat dotNL = saturate( dot( normal, lightDir ) );\n\tfloat dotNV = saturate( dot( normal, viewDir ) );\n\tfloat dotNH = saturate( dot( normal, halfDir ) );\n\tfloat dotVH = saturate( dot( viewDir, halfDir ) );\n\tvec3 F = F_Schlick( f0, f90, dotVH );\n\t#ifdef USE_IRIDESCENCE\n\t\tF = mix( F, material.iridescenceFresnel, material.iridescence );\n\t#endif\n\t#ifdef USE_ANISOTROPY\n\t\tfloat dotTL = dot( material.anisotropyT, lightDir );\n\t\tfloat dotTV = dot( material.anisotropyT, viewDir );\n\t\tfloat dotTH = dot( material.anisotropyT, halfDir );\n\t\tfloat dotBL = dot( material.anisotropyB, lightDir );\n\t\tfloat dotBV = dot( material.anisotropyB, viewDir );\n\t\tfloat dotBH = dot( material.anisotropyB, halfDir );\n\t\tfloat V = V_GGX_SmithCorrelated_Anisotropic( material.alphaT, alpha, dotTV, dotBV, dotTL, dotBL, dotNV, dotNL );\n\t\tfloat D = D_GGX_Anisotropic( material.alphaT, alpha, dotNH, dotTH, dotBH );\n\t#else\n\t\tfloat V = V_GGX_SmithCorrelated( alpha, dotNL, dotNV );\n\t\tfloat D = D_GGX( alpha, dotNH );\n\t#endif\n\treturn F * ( V * D );\n}\nvec2 LTC_Uv( const in vec3 N, const in vec3 V, const in float roughness ) {\n\tconst float LUT_SIZE = 64.0;\n\tconst float LUT_SCALE = ( LUT_SIZE - 1.0 ) / LUT_SIZE;\n\tconst float LUT_BIAS = 0.5 / LUT_SIZE;\n\tfloat dotNV = saturate( dot( N, V ) );\n\tvec2 uv = vec2( roughness, sqrt( 1.0 - dotNV ) );\n\tuv = uv * LUT_SCALE + LUT_BIAS;\n\treturn uv;\n}\nfloat LTC_ClippedSphereFormFactor( const in vec3 f ) {\n\tfloat l = length( f );\n\treturn max( ( l * l + f.z ) / ( l + 1.0 ), 0.0 );\n}\nvec3 LTC_EdgeVectorFormFactor( const in vec3 v1, const in vec3 v2 ) {\n\tfloat x = dot( v1, v2 );\n\tfloat y = abs( x );\n\tfloat a = 0.8543985 + ( 0.4965155 + 0.0145206 * y ) * y;\n\tfloat b = 3.4175940 + ( 4.1616724 + y ) * y;\n\tfloat v = a / b;\n\tfloat theta_sintheta = ( x > 0.0 ) ? v : 0.5 * inversesqrt( max( 1.0 - x * x, 1e-7 ) ) - v;\n\treturn cross( v1, v2 ) * theta_sintheta;\n}\nvec3 LTC_Evaluate( const in vec3 N, const in vec3 V, const in vec3 P, const in mat3 mInv, const in vec3 rectCoords[ 4 ] ) {\n\tvec3 v1 = rectCoords[ 1 ] - rectCoords[ 0 ];\n\tvec3 v2 = rectCoords[ 3 ] - rectCoords[ 0 ];\n\tvec3 lightNormal = cross( v1, v2 );\n\tif( dot( lightNormal, P - rectCoords[ 0 ] ) < 0.0 ) return vec3( 0.0 );\n\tvec3 T1, T2;\n\tT1 = normalize( V - N * dot( V, N ) );\n\tT2 = - cross( N, T1 );\n\tmat3 mat = mInv * transposeMat3( mat3( T1, T2, N ) );\n\tvec3 coords[ 4 ];\n\tcoords[ 0 ] = mat * ( rectCoords[ 0 ] - P );\n\tcoords[ 1 ] = mat * ( rectCoords[ 1 ] - P );\n\tcoords[ 2 ] = mat * ( rectCoords[ 2 ] - P );\n\tcoords[ 3 ] = mat * ( rectCoords[ 3 ] - P );\n\tcoords[ 0 ] = normalize( coords[ 0 ] );\n\tcoords[ 1 ] = normalize( coords[ 1 ] );\n\tcoords[ 2 ] = normalize( coords[ 2 ] );\n\tcoords[ 3 ] = normalize( coords[ 3 ] );\n\tvec3 vectorFormFactor = vec3( 0.0 );\n\tvectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 0 ], coords[ 1 ] );\n\tvectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 1 ], coords[ 2 ] );\n\tvectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 2 ], coords[ 3 ] );\n\tvectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 3 ], coords[ 0 ] );\n\tfloat result = LTC_ClippedSphereFormFactor( vectorFormFactor );\n\treturn vec3( result );\n}\n#if defined( USE_SHEEN )\nfloat D_Charlie( float roughness, float dotNH ) {\n\tfloat alpha = pow2( roughness );\n\tfloat invAlpha = 1.0 / alpha;\n\tfloat cos2h = dotNH * dotNH;\n\tfloat sin2h = max( 1.0 - cos2h, 0.0078125 );\n\treturn ( 2.0 + invAlpha ) * pow( sin2h, invAlpha * 0.5 ) / ( 2.0 * PI );\n}\nfloat V_Neubelt( float dotNV, float dotNL ) {\n\treturn saturate( 1.0 / ( 4.0 * ( dotNL + dotNV - dotNL * dotNV ) ) );\n}\nvec3 BRDF_Sheen( const in vec3 lightDir, const in vec3 viewDir, const in vec3 normal, vec3 sheenColor, const in float sheenRoughness ) {\n\tvec3 halfDir = normalize( lightDir + viewDir );\n\tfloat dotNL = saturate( dot( normal, lightDir ) );\n\tfloat dotNV = saturate( dot( normal, viewDir ) );\n\tfloat dotNH = saturate( dot( normal, halfDir ) );\n\tfloat D = D_Charlie( sheenRoughness, dotNH );\n\tfloat V = V_Neubelt( dotNV, dotNL );\n\treturn sheenColor * ( D * V );\n}\n#endif\nfloat IBLSheenBRDF( const in vec3 normal, const in vec3 viewDir, const in float roughness ) {\n\tfloat dotNV = saturate( dot( normal, viewDir ) );\n\tfloat r2 = roughness * roughness;\n\tfloat a = roughness < 0.25 ? -339.2 * r2 + 161.4 * roughness - 25.9 : -8.48 * r2 + 14.3 * roughness - 9.95;\n\tfloat b = roughness < 0.25 ? 44.0 * r2 - 23.7 * roughness + 3.26 : 1.97 * r2 - 3.27 * roughness + 0.72;\n\tfloat DG = exp( a * dotNV + b ) + ( roughness < 0.25 ? 0.0 : 0.1 * ( roughness - 0.25 ) );\n\treturn saturate( DG * RECIPROCAL_PI );\n}\nvec2 DFGApprox( const in vec3 normal, const in vec3 viewDir, const in float roughness ) {\n\tfloat dotNV = saturate( dot( normal, viewDir ) );\n\tconst vec4 c0 = vec4( - 1, - 0.0275, - 0.572, 0.022 );\n\tconst vec4 c1 = vec4( 1, 0.0425, 1.04, - 0.04 );\n\tvec4 r = roughness * c0 + c1;\n\tfloat a004 = min( r.x * r.x, exp2( - 9.28 * dotNV ) ) * r.x + r.y;\n\tvec2 fab = vec2( - 1.04, 1.04 ) * a004 + r.zw;\n\treturn fab;\n}\nvec3 EnvironmentBRDF( const in vec3 normal, const in vec3 viewDir, const in vec3 specularColor, const in float specularF90, const in float roughness ) {\n\tvec2 fab = DFGApprox( normal, viewDir, roughness );\n\treturn specularColor * fab.x + specularF90 * fab.y;\n}\n#ifdef USE_IRIDESCENCE\nvoid computeMultiscatteringIridescence( const in vec3 normal, const in vec3 viewDir, const in vec3 specularColor, const in float specularF90, const in float iridescence, const in vec3 iridescenceF0, const in float roughness, inout vec3 singleScatter, inout vec3 multiScatter ) {\n#else\nvoid computeMultiscattering( const in vec3 normal, const in vec3 viewDir, const in vec3 specularColor, const in float specularF90, const in float roughness, inout vec3 singleScatter, inout vec3 multiScatter ) {\n#endif\n\tvec2 fab = DFGApprox( normal, viewDir, roughness );\n\t#ifdef USE_IRIDESCENCE\n\t\tvec3 Fr = mix( specularColor, iridescenceF0, iridescence );\n\t#else\n\t\tvec3 Fr = specularColor;\n\t#endif\n\tvec3 FssEss = Fr * fab.x + specularF90 * fab.y;\n\tfloat Ess = fab.x + fab.y;\n\tfloat Ems = 1.0 - Ess;\n\tvec3 Favg = Fr + ( 1.0 - Fr ) * 0.047619;\tvec3 Fms = FssEss * Favg / ( 1.0 - Ems * Favg );\n\tsingleScatter += FssEss;\n\tmultiScatter += Fms * Ems;\n}\n#if NUM_RECT_AREA_LIGHTS > 0\n\tvoid RE_Direct_RectArea_Physical( const in RectAreaLight rectAreaLight, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in PhysicalMaterial material, inout ReflectedLight reflectedLight ) {\n\t\tvec3 normal = geometryNormal;\n\t\tvec3 viewDir = geometryViewDir;\n\t\tvec3 position = geometryPosition;\n\t\tvec3 lightPos = rectAreaLight.position;\n\t\tvec3 halfWidth = rectAreaLight.halfWidth;\n\t\tvec3 halfHeight = rectAreaLight.halfHeight;\n\t\tvec3 lightColor = rectAreaLight.color;\n\t\tfloat roughness = material.roughness;\n\t\tvec3 rectCoords[ 4 ];\n\t\trectCoords[ 0 ] = lightPos + halfWidth - halfHeight;\t\trectCoords[ 1 ] = lightPos - halfWidth - halfHeight;\n\t\trectCoords[ 2 ] = lightPos - halfWidth + halfHeight;\n\t\trectCoords[ 3 ] = lightPos + halfWidth + halfHeight;\n\t\tvec2 uv = LTC_Uv( normal, viewDir, roughness );\n\t\tvec4 t1 = texture2D( ltc_1, uv );\n\t\tvec4 t2 = texture2D( ltc_2, uv );\n\t\tmat3 mInv = mat3(\n\t\t\tvec3( t1.x, 0, t1.y ),\n\t\t\tvec3( 0, 1, 0 ),\n\t\t\tvec3( t1.z, 0, t1.w )\n\t\t);\n\t\tvec3 fresnel = ( material.specularColor * t2.x + ( vec3( 1.0 ) - material.specularColor ) * t2.y );\n\t\treflectedLight.directSpecular += lightColor * fresnel * LTC_Evaluate( normal, viewDir, position, mInv, rectCoords );\n\t\treflectedLight.directDiffuse += lightColor * material.diffuseColor * LTC_Evaluate( normal, viewDir, position, mat3( 1.0 ), rectCoords );\n\t}\n#endif\nvoid RE_Direct_Physical( const in IncidentLight directLight, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in PhysicalMaterial material, inout ReflectedLight reflectedLight ) {\n\tfloat dotNL = saturate( dot( geometryNormal, directLight.direction ) );\n\tvec3 irradiance = dotNL * directLight.color;\n\t#ifdef USE_CLEARCOAT\n\t\tfloat dotNLcc = saturate( dot( geometryClearcoatNormal, directLight.direction ) );\n\t\tvec3 ccIrradiance = dotNLcc * directLight.color;\n\t\tclearcoatSpecularDirect += ccIrradiance * BRDF_GGX_Clearcoat( directLight.direction, geometryViewDir, geometryClearcoatNormal, material );\n\t#endif\n\t#ifdef USE_SHEEN\n\t\tsheenSpecularDirect += irradiance * BRDF_Sheen( directLight.direction, geometryViewDir, geometryNormal, material.sheenColor, material.sheenRoughness );\n\t#endif\n\treflectedLight.directSpecular += irradiance * BRDF_GGX( directLight.direction, geometryViewDir, geometryNormal, material );\n\treflectedLight.directDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );\n}\nvoid RE_IndirectDiffuse_Physical( const in vec3 irradiance, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in PhysicalMaterial material, inout ReflectedLight reflectedLight ) {\n\treflectedLight.indirectDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );\n}\nvoid RE_IndirectSpecular_Physical( const in vec3 radiance, const in vec3 irradiance, const in vec3 clearcoatRadiance, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in PhysicalMaterial material, inout ReflectedLight reflectedLight) {\n\t#ifdef USE_CLEARCOAT\n\t\tclearcoatSpecularIndirect += clearcoatRadiance * EnvironmentBRDF( geometryClearcoatNormal, geometryViewDir, material.clearcoatF0, material.clearcoatF90, material.clearcoatRoughness );\n\t#endif\n\t#ifdef USE_SHEEN\n\t\tsheenSpecularIndirect += irradiance * material.sheenColor * IBLSheenBRDF( geometryNormal, geometryViewDir, material.sheenRoughness );\n\t#endif\n\tvec3 singleScattering = vec3( 0.0 );\n\tvec3 multiScattering = vec3( 0.0 );\n\tvec3 cosineWeightedIrradiance = irradiance * RECIPROCAL_PI;\n\t#ifdef USE_IRIDESCENCE\n\t\tcomputeMultiscatteringIridescence( geometryNormal, geometryViewDir, material.specularColor, material.specularF90, material.iridescence, material.iridescenceFresnel, material.roughness, singleScattering, multiScattering );\n\t#else\n\t\tcomputeMultiscattering( geometryNormal, geometryViewDir, material.specularColor, material.specularF90, material.roughness, singleScattering, multiScattering );\n\t#endif\n\tvec3 totalScattering = singleScattering + multiScattering;\n\tvec3 diffuse = material.diffuseColor * ( 1.0 - max( max( totalScattering.r, totalScattering.g ), totalScattering.b ) );\n\treflectedLight.indirectSpecular += radiance * singleScattering;\n\treflectedLight.indirectSpecular += multiScattering * cosineWeightedIrradiance;\n\treflectedLight.indirectDiffuse += diffuse * cosineWeightedIrradiance;\n}\n#define RE_Direct\t\t\t\tRE_Direct_Physical\n#define RE_Direct_RectArea\t\tRE_Direct_RectArea_Physical\n#define RE_IndirectDiffuse\t\tRE_IndirectDiffuse_Physical\n#define RE_IndirectSpecular\t\tRE_IndirectSpecular_Physical\nfloat computeSpecularOcclusion( const in float dotNV, const in float ambientOcclusion, const in float roughness ) {\n\treturn saturate( pow( dotNV + ambientOcclusion, exp2( - 16.0 * roughness - 1.0 ) ) - 1.0 + ambientOcclusion );\n}"
13,gN="\nvec3 geometryPosition = - vViewPosition;\nvec3 geometryNormal = normal;\nvec3 geometryViewDir = ( isOrthographic ) ? vec3( 0, 0, 1 ) : normalize( vViewPosition );\nvec3 geometryClearcoatNormal = vec3( 0.0 );\n#ifdef USE_CLEARCOAT\n\tgeometryClearcoatNormal = clearcoatNormal;\n#endif\n#ifdef USE_IRIDESCENCE\n\tfloat dotNVi = saturate( dot( normal, geometryViewDir ) );\n\tif ( material.iridescenceThickness == 0.0 ) {\n\t\tmaterial.iridescence = 0.0;\n\t} else {\n\t\tmaterial.iridescence = saturate( material.iridescence );\n\t}\n\tif ( material.iridescence > 0.0 ) {\n\t\tmaterial.iridescenceFresnel = evalIridescence( 1.0, material.iridescenceIOR, dotNVi, material.iridescenceThickness, material.specularColor );\n\t\tmaterial.iridescenceF0 = Schlick_to_F0( material.iridescenceFresnel, 1.0, dotNVi );\n\t}\n#endif\nIncidentLight directLight;\n#if ( NUM_POINT_LIGHTS > 0 ) && defined( RE_Direct )\n\tPointLight pointLight;\n\t#if defined( USE_SHADOWMAP ) && NUM_POINT_LIGHT_SHADOWS > 0\n\tPointLightShadow pointLightShadow;\n\t#endif\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_POINT_LIGHTS; i ++ ) {\n\t\tpointLight = pointLights[ i ];\n\t\tgetPointLightInfo( pointLight, geometryPosition, directLight );\n\t\t#if defined( USE_SHADOWMAP ) && ( UNROLLED_LOOP_INDEX < NUM_POINT_LIGHT_SHADOWS )\n\t\tpointLightShadow = pointLightShadows[ i ];\n\t\tdirectLight.color *= ( directLight.visible && receiveShadow ) ? getPointShadow( pointShadowMap[ i ], pointLightShadow.shadowMapSize, pointLightShadow.shadowIntensity, pointLightShadow.shadowBias, pointLightShadow.shadowRadius, vPointShadowCoord[ i ], pointLightShadow.shadowCameraNear, pointLightShadow.shadowCameraFar ) : 1.0;\n\t\t#endif\n\t\tRE_Direct( directLight, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight );\n\t}\n\t#pragma unroll_loop_end\n#endif\n#if ( NUM_SPOT_LIGHTS > 0 ) && defined( RE_Direct )\n\tSpotLight spotLight;\n\tvec4 spotColor;\n\tvec3 spotLightCoord;\n\tbool inSpotLightMap;\n\t#if defined( USE_SHADOWMAP ) && NUM_SPOT_LIGHT_SHADOWS > 0\n\tSpotLightShadow spotLightShadow;\n\t#endif\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_SPOT_LIGHTS; i ++ ) {\n\t\tspotLight = spotLights[ i ];\n\t\tgetSpotLightInfo( spotLight, geometryPosition, directLight );\n\t\t#if ( UNROLLED_LOOP_INDEX < NUM_SPOT_LIGHT_SHADOWS_WITH_MAPS )\n\t\t#define SPOT_LIGHT_MAP_INDEX UNROLLED_LOOP_INDEX\n\t\t#elif ( UNROLLED_LOOP_INDEX < NUM_SPOT_LIGHT_SHADOWS )\n\t\t#define SPOT_LIGHT_MAP_INDEX NUM_SPOT_LIGHT_MAPS\n\t\t#else\n\t\t#define SPOT_LIGHT_MAP_INDEX ( UNROLLED_LOOP_INDEX - NUM_SPOT_LIGHT_SHADOWS + NUM_SPOT_LIGHT_SHADOWS_WITH_MAPS )\n\t\t#endif\n\t\t#if ( SPOT_LIGHT_MAP_INDEX < NUM_SPOT_LIGHT_MAPS )\n\t\t\tspotLightCoord = vSpotLightCoord[ i ].xyz / vSpotLightCoord[ i ].w;\n\t\t\tinSpotLightMap = all( lessThan( abs( spotLightCoord * 2. - 1. ), vec3( 1.0 ) ) );\n\t\t\tspotColor = texture2D( spotLightMap[ SPOT_LIGHT_MAP_INDEX ], spotLightCoord.xy );\n\t\t\tdirectLight.color = inSpotLightMap ? directLight.color * spotColor.rgb : directLight.color;\n\t\t#endif\n\t\t#undef SPOT_LIGHT_MAP_INDEX\n\t\t#if defined( USE_SHADOWMAP ) && ( UNROLLED_LOOP_INDEX < NUM_SPOT_LIGHT_SHADOWS )\n\t\tspotLightShadow = spotLightShadows[ i ];\n\t\tdirectLight.color *= ( directLight.visible && receiveShadow ) ? getShadow( spotShadowMap[ i ], spotLightShadow.shadowMapSize, spotLightShadow.shadowIntensity, spotLightShadow.shadowBias, spotLightShadow.shadowRadius, vSpotLightCoord[ i ] ) : 1.0;\n\t\t#endif\n\t\tRE_Direct( directLight, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight );\n\t}\n\t#pragma unroll_loop_end\n#endif\n#if ( NUM_DIR_LIGHTS > 0 ) && defined( RE_Direct )\n\tDirectionalLight directionalLight;\n\t#if defined( USE_SHADOWMAP ) && NUM_DIR_LIGHT_SHADOWS > 0\n\tDirectionalLightShadow directionalLightShadow;\n\t#endif\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_DIR_LIGHTS; i ++ ) {\n\t\tdirectionalLight = directionalLights[ i ];\n\t\tgetDirectionalLightInfo( directionalLight, directLight );\n\t\t#if defined( USE_SHADOWMAP ) && ( UNROLLED_LOOP_INDEX < NUM_DIR_LIGHT_SHADOWS )\n\t\tdirectionalLightShadow = directionalLightShadows[ i ];\n\t\tdirectLight.color *= ( directLight.visible && receiveShadow ) ? getShadow( directionalShadowMap[ i ], directionalLightShadow.shadowMapSize, directionalLightShadow.shadowIntensity, directionalLightShadow.shadowBias, directionalLightShadow.shadowRadius, vDirectionalShadowCoord[ i ] ) : 1.0;\n\t\t#endif\n\t\tRE_Direct( directLight, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight );\n\t}\n\t#pragma unroll_loop_end\n#endif\n#if ( NUM_RECT_AREA_LIGHTS > 0 ) && defined( RE_Direct_RectArea )\n\tRectAreaLight rectAreaLight;\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_RECT_AREA_LIGHTS; i ++ ) {\n\t\trectAreaLight = rectAreaLights[ i ];\n\t\tRE_Direct_RectArea( rectAreaLight, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight );\n\t}\n\t#pragma unroll_loop_end\n#endif\n#if defined( RE_IndirectDiffuse )\n\tvec3 iblIrradiance = vec3( 0.0 );\n\tvec3 irradiance = getAmbientLightIrradiance( ambientLightColor );\n\t#if defined( USE_LIGHT_PROBES )\n\t\tirradiance += getLightProbeIrradiance( lightProbe, geometryNormal );\n\t#endif\n\t#if ( NUM_HEMI_LIGHTS > 0 )\n\t\t#pragma unroll_loop_start\n\t\tfor ( int i = 0; i < NUM_HEMI_LIGHTS; i ++ ) {\n\t\t\tirradiance += getHemisphereLightIrradiance( hemisphereLights[ i ], geometryNormal );\n\t\t}\n\t\t#pragma unroll_loop_end\n\t#endif\n#endif\n#if defined( RE_IndirectSpecular )\n\tvec3 radiance = vec3( 0.0 );\n\tvec3 clearcoatRadiance = vec3( 0.0 );\n#endif",bN="#if defined( RE_IndirectDiffuse )\n\t#ifdef USE_LIGHTMAP\n\t\tvec4 lightMapTexel = texture2D( lightMap, vLightMapUv );\n\t\tvec3 lightMapIrradiance = lightMapTexel.rgb * lightMapIntensity;\n\t\tirradiance += lightMapIrradiance;\n\t#endif\n\t#if defined( USE_ENVMAP ) && defined( STANDARD ) && defined( ENVMAP_TYPE_CUBE_UV )\n\t\tiblIrradiance += getIBLIrradiance( geometryNormal );\n\t#endif\n#endif\n#if defined( USE_ENVMAP ) && defined( RE_IndirectSpecular )\n\t#ifdef USE_ANISOTROPY\n\t\tradiance += getIBLAnisotropyRadiance( geometryViewDir, geometryNormal, material.roughness, material.anisotropyB, material.anisotropy );\n\t#else\n\t\tradiance += getIBLRadiance( geometryViewDir, geometryNormal, material.roughness );\n\t#endif\n\t#ifdef USE_CLEARCOAT\n\t\tclearcoatRadiance += getIBLRadiance( geometryViewDir, geometryClearcoatNormal, material.clearcoatRoughness );\n\t#endif\n#endif",_N="#if defined( RE_IndirectDiffuse )\n\tRE_IndirectDiffuse( irradiance, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight );\n#endif\n#if defined( RE_IndirectSpecular )\n\tRE_IndirectSpecular( radiance, iblIrradiance, clearcoatRadiance, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight );\n#endif",yN="#if defined( USE_LOGARITHMIC_DEPTH_BUFFER )\n\tgl_FragDepth = vIsPerspective == 0.0 ? gl_FragCoord.z : log2( vFragDepth ) * logDepthBufFC * 0.5;\n#endif",xN="#if defined( USE_LOGARITHMIC_DEPTH_BUFFER )\n\tuniform float logDepthBufFC;\n\tvarying float vFragDepth;\n\tvarying float vIsPerspective;\n#endif",SN="#ifdef USE_LOGARITHMIC_DEPTH_BUFFER\n\tvarying float vFragDepth;\n\tvarying float vIsPerspective;\n#endif",EN="#ifdef USE_LOGARITHMIC_DEPTH_BUFFER\n\tvFragDepth = 1.0 + gl_Position.w;\n\tvIsPerspective = float( isPerspectiveMatrix( projectionMatrix ) );\n#endif",wN="#ifdef USE_MAP\n\tvec4 sampledDiffuseColor = texture2D( map, vMapUv );\n\t#ifdef DECODE_VIDEO_TEXTURE\n\t\tsampledDiffuseColor = sRGBTransferEOTF( sampledDiffuseColor );\n\t#endif\n\tdiffuseColor *= sampledDiffuseColor;\n#endif",MN="#ifdef USE_MAP\n\tuniform sampler2D map;\n#endif",TN="#if defined( USE_MAP ) || defined( USE_ALPHAMAP )\n\t#if defined( USE_POINTS_UV )\n\t\tvec2 uv = vUv;\n\t#else\n\t\tvec2 uv = ( uvTransform * vec3( gl_PointCoord.x, 1.0 - gl_PointCoord.y, 1 ) ).xy;\n\t#endif\n#endif\n#ifdef USE_MAP\n\tdiffuseColor *= texture2D( map, uv );\n#endif\n#ifdef USE_ALPHAMAP\n\tdiffuseColor.a *= texture2D( alphaMap, uv ).g;\n#endif",AN="#if defined( USE_POINTS_UV )\n\tvarying vec2 vUv;\n#else\n\t#if defined( USE_MAP ) || defined( USE_ALPHAMAP )\n\t\tuniform mat3 uvTransform;\n\t#endif\n#endif\n#ifdef USE_MAP\n\tuniform sampler2D map;\n#endif\n#ifdef USE_ALPHAMAP\n\tuniform sampler2D alphaMap;\n#endif",CN="float metalnessFactor = metalness;\n#ifdef USE_METALNESSMAP\n\tvec4 texelMetalness = texture2D( metalnessMap, vMetalnessMapUv );\n\tmetalnessFactor *= texelMetalness.b;\n#endif",PN="#ifdef USE_METALNESSMAP\n\tuniform sampler2D metalnessMap;\n#endif",RN="#ifdef USE_INSTANCING_MORPH\n\tfloat morphTargetInfluences[ MORPHTARGETS_COUNT ];\n\tfloat morphTargetBaseInfluence = texelFetch( morphTexture, ivec2( 0, gl_InstanceID ), 0 ).r;\n\tfor ( int i = 0; i < MORPHTARGETS_COUNT; i ++ ) {\n\t\tmorphTargetInfluences[i] = texelFetch( morphTexture, ivec2( i + 1, gl_InstanceID ), 0 ).r;\n\t}\n#endif",LN="#if defined( USE_MORPHCOLORS )\n\tvColor *= morphTargetBaseInfluence;\n\tfor ( int i = 0; i < MORPHTARGETS_COUNT; i ++ ) {\n\t\t#if defined( USE_COLOR_ALPHA )\n\t\t\tif ( morphTargetInfluences[ i ] != 0.0 ) vColor += getMorph( gl_VertexID, i, 2 ) * morphTargetInfluences[ i ];\n\t\t#elif defined( USE_COLOR )\n\t\t\tif ( morphTargetInfluences[ i ] != 0.0 ) vColor += getMorph( gl_VertexID, i, 2 ).rgb * morphTargetInfluences[ i ];\n\t\t#endif\n\t}\n#endif",DN="#ifdef USE_MORPHNORMALS\n\tobjectNormal *= morphTargetBaseInfluence;\n\tfor ( int i = 0; i < MORPHTARGETS_COUNT; i ++ ) {\n\t\tif ( morphTargetInfluences[ i ] != 0.0 ) objectNormal += getMorph( gl_VertexID, i, 1 ).xyz * morphTargetInfluences[ i ];\n\t}\n#endif",IN="#ifdef USE_MORPHTARGETS\n\t#ifndef USE_INSTANCING_MORPH\n\t\tuniform float morphTargetBaseInfluence;\n\t\tuniform float morphTargetInfluences[ MORPHTARGETS_COUNT ];\n\t#endif\n\tuniform sampler2DArray morphTargetsTexture;\n\tuniform ivec2 morphTargetsTextureSize;\n\tvec4 getMorph( const in int vertexIndex, const in int morphTargetIndex, const in int offset ) {\n\t\tint texelIndex = vertexIndex * MORPHTARGETS_TEXTURE_STRIDE + offset;\n\t\tint y = texelIndex / morphTargetsTextureSize.x;\n\t\tint x = texelIndex - y * morphTargetsTextureSize.x;\n\t\tivec3 morphUV = ivec3( x, y, morphTargetIndex );\n\t\treturn texelFetch( morphTargetsTexture, morphUV, 0 );\n\t}\n#endif",NN="#ifdef USE_MORPHTARGETS\n\ttransformed *= morphTargetBaseInfluence;\n\tfor ( int i = 0; i < MORPHTARGETS_COUNT; i ++ ) {\n\t\tif ( morphTargetInfluences[ i ] != 0.0 ) transformed += getMorph( gl_VertexID, i, 0 ).xyz * morphTargetInfluences[ i ];\n\t}\n#endif",ON="float faceDirection = gl_FrontFacing ? 1.0 : - 1.0;\n#ifdef FLAT_SHADED\n\tvec3 fdx = dFdx( vViewPosition );\n\tvec3 fdy = dFdy( vViewPosition );\n\tvec3 normal = normalize( cross( fdx, fdy ) );\n#else\n\tvec3 normal = normalize( vNormal );\n\t#ifdef DOUBLE_SIDED\n\t\tnormal *= faceDirection;\n\t#endif\n#endif\n#if defined( USE_NORMALMAP_TANGENTSPACE ) || defined( USE_CLEARCOAT_NORMALMAP ) || defined( USE_ANISOTROPY )\n\t#ifdef USE_TANGENT\n\t\tmat3 tbn = mat3( normalize( vTangent ), normalize( vBitangent ), normal );\n\t#else\n\t\tmat3 tbn = getTangentFrame( - vViewPosition, normal,\n\t\t#if defined( USE_NORMALMAP )\n\t\t\tvNormalMapUv\n\t\t#elif defined( USE_CLEARCOAT_NORMALMAP )\n\t\t\tvClearcoatNormalMapUv\n\t\t#else\n\t\t\tvUv\n\t\t#endif\n\t\t);\n\t#endif\n\t#if defined( DOUBLE_SIDED ) && ! defined( FLAT_SHADED )\n\t\ttbn[0] *= faceDirection;\n\t\ttbn[1] *= faceDirection;\n\t#endif\n#endif\n#ifdef USE_CLEARCOAT_NORMALMAP\n\t#ifdef USE_TANGENT\n\t\tmat3 tbn2 = mat3( normalize( vTangent ), normalize( vBitangent ), normal );\n\t#else\n\t\tmat3 tbn2 = getTangentFrame( - vViewPosition, normal, vClearcoatNormalMapUv );\n\t#endif\n\t#if defined( DOUBLE_SIDED ) && ! defined( FLAT_SHADED )\n\t\ttbn2[0] *= faceDirection;\n\t\ttbn2[1] *= faceDirection;\n\t#endif\n#endif\nvec3 nonPerturbedNormal = normal;",UN="#ifdef USE_NORMALMAP_OBJECTSPACE\n\tnormal = texture2D( normalMap, vNormalMapUv ).xyz * 2.0 - 1.0;\n\t#ifdef FLIP_SIDED\n\t\tnormal = - normal;\n\t#endif\n\t#ifdef DOUBLE_SIDED\n\t\tnormal = normal * faceDirection;\n\t#endif\n\tnormal = normalize( normalMatrix * normal );\n#elif defined( USE_NORMALMAP_TANGENTSPACE )\n\tvec3 mapN = texture2D( normalMap, vNormalMapUv ).xyz * 2.0 - 1.0;\n\tmapN.xy *= normalScale;\n\tnormal = normalize( tbn * mapN );
13\n#elif defined( USE_BUMPMAP )\n\tnormal = perturbNormalArb( - vViewPosition, normal, dHdxy_fwd(), faceDirection );\n#endif",FN="#ifndef FLAT_SHADED\n\tvarying vec3 vNormal;\n\t#ifdef USE_TANGENT\n\t\tvarying vec3 vTangent;\n\t\tvarying vec3 vBitangent;\n\t#endif\n#endif",BN="#ifndef FLAT_SHADED\n\tvarying vec3 vNormal;\n\t#ifdef USE_TANGENT\n\t\tvarying vec3 vTangent;\n\t\tvarying vec3 vBitangent;\n\t#endif\n#endif",kN="#ifndef FLAT_SHADED\n\tvNormal = normalize( transformedNormal );\n\t#ifdef USE_TANGENT\n\t\tvTangent = normalize( transformedTangent );\n\t\tvBitangent = normalize( cross( vNormal, vTangent ) * tangent.w );\n\t#endif\n#endif",zN="#ifdef USE_NORMALMAP\n\tuniform sampler2D normalMap;\n\tuniform vec2 normalScale;\n#endif\n#ifdef USE_NORMALMAP_OBJECTSPACE\n\tuniform mat3 normalMatrix;\n#endif\n#if ! defined ( USE_TANGENT ) && ( defined ( USE_NORMALMAP_TANGENTSPACE ) || defined ( USE_CLEARCOAT_NORMALMAP ) || defined( USE_ANISOTROPY ) )\n\tmat3 getTangentFrame( vec3 eye_pos, vec3 surf_norm, vec2 uv ) {\n\t\tvec3 q0 = dFdx( eye_pos.xyz );\n\t\tvec3 q1 = dFdy( eye_pos.xyz );\n\t\tvec2 st0 = dFdx( uv.st );\n\t\tvec2 st1 = dFdy( uv.st );\n\t\tvec3 N = surf_norm;\n\t\tvec3 q1perp = cross( q1, N );\n\t\tvec3 q0perp = cross( N, q0 );\n\t\tvec3 T = q1perp * st0.x + q0perp * st1.x;\n\t\tvec3 B = q1perp * st0.y + q0perp * st1.y;\n\t\tfloat det = max( dot( T, T ), dot( B, B ) );\n\t\tfloat scale = ( det == 0.0 ) ? 0.0 : inversesqrt( det );\n\t\treturn mat3( T * scale, B * scale, N );\n\t}\n#endif",HN="#ifdef USE_CLEARCOAT\n\tvec3 clearcoatNormal = nonPerturbedNormal;\n#endif",VN="#ifdef USE_CLEARCOAT_NORMALMAP\n\tvec3 clearcoatMapN = texture2D( clearcoatNormalMap, vClearcoatNormalMapUv ).xyz * 2.0 - 1.0;\n\tclearcoatMapN.xy *= clearcoatNormalScale;\n\tclearcoatNormal = normalize( tbn2 * clearcoatMapN );\n#endif",$N="#ifdef USE_CLEARCOATMAP\n\tuniform sampler2D clearcoatMap;\n#endif\n#ifdef USE_CLEARCOAT_NORMALMAP\n\tuniform sampler2D clearcoatNormalMap;\n\tuniform vec2 clearcoatNormalScale;\n#endif\n#ifdef USE_CLEARCOAT_ROUGHNESSMAP\n\tuniform sampler2D clearcoatRoughnessMap;\n#endif",GN="#ifdef USE_IRIDESCENCEMAP\n\tuniform sampler2D iridescenceMap;\n#endif\n#ifdef USE_IRIDESCENCE_THICKNESSMAP\n\tuniform sampler2D iridescenceThicknessMap;\n#endif",WN="#ifdef OPAQUE\ndiffuseColor.a = 1.0;\n#endif\n#ifdef USE_TRANSMISSION\ndiffuseColor.a *= material.transmissionAlpha;\n#endif\ngl_FragColor = vec4( outgoingLight, diffuseColor.a );",XN="vec3 packNormalToRGB( const in vec3 normal ) {\n\treturn normalize( normal ) * 0.5 + 0.5;\n}\nvec3 unpackRGBToNormal( const in vec3 rgb ) {\n\treturn 2.0 * rgb.xyz - 1.0;\n}\nconst float PackUpscale = 256. / 255.;const float UnpackDownscale = 255. / 256.;const float ShiftRight8 = 1. / 256.;\nconst float Inv255 = 1. / 255.;\nconst vec4 PackFactors = vec4( 1.0, 256.0, 256.0 * 256.0, 256.0 * 256.0 * 256.0 );\nconst vec2 UnpackFactors2 = vec2( UnpackDownscale, 1.0 / PackFactors.g );\nconst vec3 UnpackFactors3 = vec3( UnpackDownscale / PackFactors.rg, 1.0 / PackFactors.b );\nconst vec4 UnpackFactors4 = vec4( UnpackDownscale / PackFactors.rgb, 1.0 / PackFactors.a );\nvec4 packDepthToRGBA( const in float v ) {\n\tif( v <= 0.0 )\n\t\treturn vec4( 0., 0., 0., 0. );\n\tif( v >= 1.0 )\n\t\treturn vec4( 1., 1., 1., 1. );\n\tfloat vuf;\n\tfloat af = modf( v * PackFactors.a, vuf );\n\tfloat bf = modf( vuf * ShiftRight8, vuf );\n\tfloat gf = modf( vuf * ShiftRight8, vuf );\n\treturn vec4( vuf * Inv255, gf * PackUpscale, bf * PackUpscale, af );\n}\nvec3 packDepthToRGB( const in float v ) {\n\tif( v <= 0.0 )\n\t\treturn vec3( 0., 0., 0. );\n\tif( v >= 1.0 )\n\t\treturn vec3( 1., 1., 1. );\n\tfloat vuf;\n\tfloat bf = modf( v * PackFactors.b, vuf );\n\tfloat gf = modf( vuf * ShiftRight8, vuf );\n\treturn vec3( vuf * Inv255, gf * PackUpscale, bf );\n}\nvec2 packDepthToRG( const in float v ) {\n\tif( v <= 0.0 )\n\t\treturn vec2( 0., 0. );\n\tif( v >= 1.0 )\n\t\treturn vec2( 1., 1. );\n\tfloat vuf;\n\tfloat gf = modf( v * 256., vuf );\n\treturn vec2( vuf * Inv255, gf );\n}\nfloat unpackRGBAToDepth( const in vec4 v ) {\n\treturn dot( v, UnpackFactors4 );\n}\nfloat unpackRGBToDepth( const in vec3 v ) {\n\treturn dot( v, UnpackFactors3 );\n}\nfloat unpackRGToDepth( const in vec2 v ) {\n\treturn v.r * UnpackFactors2.r + v.g * UnpackFactors2.g;\n}\nvec4 pack2HalfToRGBA( const in vec2 v ) {\n\tvec4 r = vec4( v.x, fract( v.x * 25
135.0 ), v.y, fract( v.y * 255.0 ) );\n\treturn vec4( r.x - r.y / 255.0, r.y, r.z - r.w / 255.0, r.w );\n}\nvec2 unpackRGBATo2Half( const in vec4 v ) {\n\treturn vec2( v.x + ( v.y / 255.0 ), v.z + ( v.w / 255.0 ) );\n}\nfloat viewZToOrthographicDepth( const in float viewZ, const in float near, const in float far ) {\n\treturn ( viewZ + near ) / ( near - far );\n}\nfloat orthographicDepthToViewZ( const in float depth, const in float near, const in float far ) {\n\treturn depth * ( near - far ) - near;\n}\nfloat viewZToPerspectiveDepth( const in float viewZ, const in float near, const in float far ) {\n\treturn ( ( near + viewZ ) * far ) / ( ( far - near ) * viewZ );\n}\nfloat perspectiveDepthToViewZ( const in float depth, const in float near, const in float far ) {\n\treturn ( near * far ) / ( ( far - near ) * depth - far );\n}",qN="#ifdef PREMULTIPLIED_ALPHA\n\tgl_FragColor.rgb *= gl_FragColor.a;\n#endif",YN="vec4 mvPosition = vec4( transformed, 1.0 );\n#ifdef USE_BATCHING\n\tmvPosition = batchingMatrix * mvPosition;\n#endif\n#ifdef USE_INSTANCING\n\tmvPosition = instanceMatrix * mvPosition;\n#endif\nmvPosition = modelViewMatrix * mvPosition;\ngl_Position = projectionMatrix * mvPosition;",jN="#ifdef DITHERING\n\tgl_FragColor.rgb = dithering( gl_FragColor.rgb );\n#endif",KN="#ifdef DITHERING\n\tvec3 dithering( vec3 color ) {\n\t\tfloat grid_position = rand( gl_FragCoord.xy );\n\t\tvec3 dither_shift_RGB = vec3( 0.25 / 255.0, -0.25 / 255.0, 0.25 / 255.0 );\n\t\tdither_shift_RGB = mix( 2.0 * dither_shift_RGB, -2.0 * dither_shift_RGB, grid_position );\n\t\treturn color + dither_shift_RGB;\n\t}\n#endif",QN="float roughnessFactor = roughness;\n#ifdef USE_ROUGHNESSMAP\n\tvec4 texelRoughness = texture2D( roughnessMap, vRoughnessMapUv );\n\troughnessFactor *= texelRoughness.g;\n#endif",ZN="#ifdef USE_ROUGHNESSMAP\n\tuniform sampler2D roughnessMap;\n#endif",JN="#if NUM_SPOT_LIGHT_COORDS > 0\n\tvarying vec4 vSpotLightCoord[ NUM_SPOT_LIGHT_COORDS ];\n#endif\n#if NUM_SPOT_LIGHT_MAPS > 0\n\tuniform sampler2D spotLightMap[ NUM_SPOT_LIGHT_MAPS ];\n#endif\n#ifdef USE_SHADOWMAP\n\t#if NUM_DIR_LIGHT_SHADOWS > 0\n\t\tuniform sampler2D directionalShadowMap[ NUM_DIR_LIGHT_SHADOWS ];\n\t\tvarying vec4 vDirectionalShadowCoord[ NUM_DIR_LIGHT_SHADOWS ];\n\t\tstruct DirectionalLightShadow {\n\t\t\tfloat shadowIntensity;\n\t\t\tfloat shadowBias;\n\t\t\tfloat shadowNormalBias;\n\t\t\tfloat shadowRadius;\n\t\t\tvec2 shadowMapSize;\n\t\t};\n\t\tuniform DirectionalLightShadow directionalLightShadows[ NUM_DIR_LIGHT_SHADOWS ];\n\t#endif\n\t#if NUM_SPOT_LIGHT_SHADOWS > 0\n\t\tuniform sampler2D spotShadowMap[ NUM_SPOT_LIGHT_SHADOWS ];\n\t\tstruct SpotLightShadow {\n\t\t\tfloat shadowIntensity;\n\t\t\tfloat shadowBias;\n\t\t\tfloat shadowNormalBias;\n\t\t\tfloat shadowRadius;\n\t\t\tvec2 shadowMapSize;\n\t\t};\n\t\tuniform SpotLightShadow spotLightShadows[ NUM_SPOT_LIGHT_SHADOWS ];\n\t#endif\n\t#if NUM_POINT_LIGHT_SHADOWS > 0\n\t\tuniform sampler2D pointShadowMap[ NUM_POINT_LIGHT_SHADOWS ];\n\t\tvarying vec4 vPointShadowCoord[ NUM_POINT_LIGHT_SHADOWS ];\n\t\tstruct PointLightShadow {\n\t\t\tfloat shadowIntensity;\n\t\t\tfloat shadowBias;\n\t\t\tfloat shadowNormalBias;\n\t\t\tfloat shadowRadius;\n\t\t\tvec2 shadowMapSize;\n\t\t\tfloat shadowCameraNear;\n\t\t\tfloat shadowCameraFar;\n\t\t};\n\t\tuniform PointLightShadow pointLightShadows[ NUM_POINT_LIGHT_SHADOWS ];\n\t#endif\n\tfloat texture2DCompare( sampler2D depths, vec2 uv, float compare ) {\n\t\tfloat depth = unpackRGBAToDepth( texture2D( depths, uv ) );\n\t\t#ifdef USE_REVERSED_DEPTH_BUFFER\n\t\t\treturn step( depth, compare );\n\t\t#else\n\t\t\treturn step( compare, depth );\n\t\t#endif\n\t}\n\tvec2 texture2DDistribution( sampler2D shadow, vec2 uv ) {\n\t\treturn unpackRGBATo2Half( texture2D( shadow, uv ) );\n\t}\n\tfloat VSMShadow( sampler2D shadow, vec2 uv, float compare ) {\n\t\tfloat occlusion = 1.0;\n\t\tvec2 distribution = texture2DDistribution( shadow, uv );\n\t\t#ifdef USE_REVERSED_DEPTH_BUFFER\n\t\t\tfloat hard_shadow = step( distribution.x, compare );\n\t\t#else\n\t\t\tfloat hard_shadow = step( compare, distribution.x );\n\t\t#endif\n\t\tif ( hard_shadow != 1.0 ) {\n\t\t\tfloat distance = compare - distribution.x
vendor: 7,526 bytes, line 13
13;\n\t\t\tfloat variance = max( 0.00000, distribution.y * distribution.y );\n\t\t\tfloat softness_probability = variance / (variance + distance * distance );\t\t\tsoftness_probability = clamp( ( softness_probability - 0.3 ) / ( 0.95 - 0.3 ), 0.0, 1.0 );\t\t\tocclusion = clamp( max( hard_shadow, softness_probability ), 0.0, 1.0 );\n\t\t}\n\t\treturn occlusion;\n\t}\n\tfloat getShadow( sampler2D shadowMap, vec2 shadowMapSize, float shadowIntensity, float shadowBias, float shadowRadius, vec4 shadowCoord ) {\n\t\tfloat shadow = 1.0;\n\t\tshadowCoord.xyz /= shadowCoord.w;\n\t\tshadowCoord.z += shadowBias;\n\t\tbool inFrustum = shadowCoord.x >= 0.0 && shadowCoord.x <= 1.0 && shadowCoord.y >= 0.0 && shadowCoord.y <= 1.0;\n\t\tbool frustumTest = inFrustum && shadowCoord.z <= 1.0;\n\t\tif ( frustumTest ) {\n\t\t#if defined( SHADOWMAP_TYPE_PCF )\n\t\t\tvec2 texelSize = vec2( 1.0 ) / shadowMapSize;\n\t\t\tfloat dx0 = - texelSize.x * shadowRadius;\n\t\t\tfloat dy0 = - texelSize.y * shadowRadius;\n\t\t\tfloat dx1 = + texelSize.x * shadowRadius;\n\t\t\tfloat dy1 = + texelSize.y * shadowRadius;\n\t\t\tfloat dx2 = dx0 / 2.0;\n\t\t\tfloat dy2 = dy0 / 2.0;\n\t\t\tfloat dx3 = dx1 / 2.0;\n\t\t\tfloat dy3 = dy1 / 2.0;\n\t\t\tshadow = (\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx0, dy0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( 0.0, dy0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx1, dy0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx2, dy2 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( 0.0, dy2 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx3, dy2 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx0, 0.0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx2, 0.0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy, shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx3, 0.0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx1, 0.0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx2, dy3 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( 0.0, dy3 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx3, dy3 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx0, dy1 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( 0.0, dy1 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx1, dy1 ), shadowCoord.z )\n\t\t\t) * ( 1.0 / 17.0 );\n\t\t#elif defined( SHADOWMAP_TYPE_PCF_SOFT )\n\t\t\tvec2 texelSize = vec2( 1.0 ) / shadowMapSize;\n\t\t\tfloat dx = texelSize.x;\n\t\t\tfloat dy = texelSize.y;\n\t\t\tvec2 uv = shadowCoord.xy;\n\t\t\tvec2 f = fract( uv * shadowMapSize + 0.5 );\n\t\t\tuv -= f * texelSize;\n\t\t\tshadow = (\n\t\t\t\ttexture2DCompare( shadowMap, uv, shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, uv + vec2( dx, 0.0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, uv + vec2( 0.0, dy ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, uv + texelSize, shadowCoord.z ) +\n\t\t\t\tmix( texture2DCompare( shadowMap, uv + vec2( -dx, 0.0 ), shadowCoord.z ),\n\t\t\t\t\t texture2DCompare( shadowMap, uv + vec2( 2.0 * dx, 0.0 ), shadowCoord.z ),\n\t\t\t\t\t f.x ) +\n\t\t\t\tmix( texture2DCompare( shadowMap, uv + vec2( -dx, dy ), shadowCoord.z ),\n\t\t\t\t\t texture2DCompare( shadowMap, uv + vec2( 2.0 * dx, dy ), shadowCoord.z ),\n\t\t\t\t\t f.x ) +\n\t\t\t\tmix( texture2DCompare( shadowMap, uv + vec2( 0.0, -dy ), shadowCoord.z ),\n\t\t\t\t\t texture2DCompare( shadowMap, uv + vec2( 0.0, 2.0 * dy ), shadowCoord.z ),\n\t\t\t\t\t f.y ) +\n\t\t\t\tmix( texture2DCompare( shadowMap, uv + vec2( dx, -dy ), shadowCoord.z ),\n\t\t\t\t\t texture2DCompare( shadowMap, uv + vec2( dx, 2.0 * dy ), shadowCoord.z ),\n\t\t\t\t\t f.y ) +\n\t\t\t\tmix( mix( texture2DCompare( shadowMap, uv + vec2( -dx, -dy ), shadowCoord.z ),\n\t\t\t\t\t\t texture2DCompare( shadowMap, uv + vec2( 2.0 * dx, -dy ), shadowCoord.z ),\n\t\t\t\t\t\t f.x ),\n\t\t\t\t\t mix( texture2DCompare( shadowMap, uv + vec2( -dx, 2.0 * dy ), shadowCoord.z ),\n\t\t\t\t\t\t texture2DCompare( shadowMap, uv + vec2( 2.0 * dx, 2.0 * dy ), shadowCoord.z ),\n\t\t\t\t\t\t f.x ),\n\t\t\t\t\t f.y )\n\t\t\t) * ( 1.0 / 9.0 );\n\t\t#elif defined( SHADOWMAP_TYPE_VSM )\n\t\t\tshadow = VSMShadow( shadowMap, shadowCoord.xy, shadowCoord.z );\n\t\t#else\n\t\t\tshadow = texture2DCompare( shadowMap, shadowCoord.xy, shadowCoord.z );\n\t\t#endif\n\t\t}\n\t\treturn mix( 1.0, shadow, shadowIntensity );\n\t}\n\tvec2 cubeToUV( vec3 v, float texelSizeY ) {\n\t\tvec3 absV = abs( v );\n\t\tfloat scaleToCube = 1.0 / max( absV.x, max( absV.y, absV.z ) );\n\t\tabsV *= scaleToCube;\n\t\tv *= scaleToCube * ( 1.0 - 2.0 * texelSizeY );\n\t\tvec2 planar = v.xy;\n\t\tfloat almostATexel = 1.5 * texelSizeY;\n\t\tfloat almostOne = 1.0 - almostATexel;\n\t\tif ( absV.z >= almostOne ) {\n\t\t\tif ( v.z > 0.0 )\n\t\t\t\tplanar.x = 4.0 - v.x;\n\t\t} else if ( absV.x >= almostOne ) {\n\t\t\tfloat signX = sign( v.x );\n\t\t\tplanar.x = v.z * signX + 2.0 * signX;\n\t\t} else if ( absV.y >= almostOne ) {\n\t\t\tfloat signY = sign( v.y );\n\t\t\tplanar.x = v.x + 2.0 * signY + 2.0;\n\t\t\tplanar.y = v.z * signY - 2.0;\n\t\t}\n\t\treturn vec2( 0.125, 0.25 ) * planar + vec2( 0.375, 0.75 );\n\t}\n\tfloat getPointShadow( sampler2D shadowMap, vec2 shadowMapSize, float shadowIntensity, float shadowBias, float shadowRadius, vec4 shadowCoord, float shadowCameraNear, float shadowCameraFar ) {\n\t\tfloat shadow = 1.0;\n\t\tvec3 lightToPosition = shadowCoord.xyz;\n\t\t\n\t\tfloat lightToPositionLength = length( lightToPosition );\n\t\tif ( lightToPositionLength - shadowCameraFar <= 0.0 && lightToPositionLength - shadowCameraNear >= 0.0 ) {\n\t\t\tfloat dp = ( lightToPositionLength - shadowCameraNear ) / ( shadowCameraFar - shadowCameraNear );\t\t\tdp += shadowBias;\n\t\t\tvec3 bd3D = normalize( lightToPosition );\n\t\t\tvec2 texelSize = vec2( 1.0 ) / ( shadowMapSize * vec2( 4.0, 2.0 ) );\n\t\t\t#if defined( SHADOWMAP_TYPE_PCF ) || defined( SHADOWMAP_TYPE_PCF_SOFT ) || defined( SHADOWMAP_TYPE_VSM )\n\t\t\t\tvec2 offset = vec2( - 1, 1 ) * shadowRadius * texelSize.y;\n\t\t\t\tshadow = (\n\t\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.xyy, texelSize.y ), dp ) +\n\t\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.yyy, texelSize.y ), dp ) +\n\t\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.xyx, texelSize.y ), dp ) +\n\t\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.yyx, texelSize.y ), dp ) +\n\t\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D, texelSize.y ), dp ) +\n\t\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.xxy, texelSize.y ), dp ) +\n\t\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.yxy, texelSize.y ), dp ) +\n\t\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.xxx, texelSize.y ), dp ) +\n\t\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.yxx, texelSize.y ), dp )\n\t\t\t\t) * ( 1.0 / 9.0 );\n\t\t\t#else\n\t\t\t\tshadow = texture2DCompare( shadowMap, cubeToUV( bd3D, texelSize.y ), dp );\n\t\t\t#endif\n\t\t}\n\t\treturn mix( 1.0, shadow, shadowIntensity );\n\t}\n#endif",
13e4="#if NUM_SPOT_LIGHT_COORDS > 0\n\tuniform mat4 spotLightMatrix[ NUM_SPOT_LIGHT_COORDS ];\n\tvarying vec4 vSpotLightCoord[ NUM_SPOT_LIGHT_COORDS ];\n#endif\n#ifdef USE_SHADOWMAP\n\t#if NUM_DIR_LIGHT_SHADOWS > 0\n\t\tuniform mat4 directionalShadowMatrix[ NUM_DIR_LIGHT_SHADOWS ];\n\t\tvarying vec4 vDirectionalShadowCoord[ NUM_DIR_LIGHT_SHADOWS ];\n\t\tstruct DirectionalLightShadow {\n\t\t\tfloat shadowIntensity;\n\t\t\tfloat shadowBias;\n\t\t\tfloat shadowNormalBias;\n\t\t\tfloat shadowRadius;\n\t\t\tvec2 shadowMapSize;\n\t\t};\n\t\tuniform DirectionalLightShadow directionalLightShadows[ NUM_DIR_LIGHT_SHADOWS ];\n\t#endif\n\t#if NUM_SPOT_LIGHT_SHADOWS > 0\n\t\tstruct SpotLightShadow {\n\t\t\tfloat shadowIntensity;\n\t\t\tfloat shadowBias;\n\t\t\tfloat shadowNormalBias;\n\t\t\tfloat shadowRadius;\n\t\t\tvec2 shadowMapSize;\n\t\t};\n\t\tuniform SpotLightShadow spotLightShadows[ NUM_SPOT_LIGHT_SHADOWS ];\n\t#endif\n\t#if NUM_POINT_LIGHT_SHADOWS > 0\n\t\tuniform mat4 pointShadowMatrix[ NUM_POINT_LIGHT_SHADOWS ];\n\t\tvarying vec4 vPointShadowCoord[ NUM_POINT_LIGHT_SHADOWS ];\n\t\tstruct PointLightShadow {\n\t\t\tfloat shadowIntensity;\n\t\t\tfloat shadowBias;\n\t\t\tfloat shadowNormalBias;\n\t\t\tfloat shadowRadius;\n\t\t\tvec2 shadowMapSize;\n\t\t\tfloat shadowCameraNear;\n\t\t\tfloat shadowCameraFar;\n\t\t};\n\t\tuniform PointLightShadow pointLightShadows[ NUM_POINT_LIGHT_SHADOWS ];\n\t#endif\n#endif",t4="#if ( defined( USE_SHADOWMAP ) && ( NUM_DIR_LIGHT_SHADOWS > 0 || NUM_POINT_LIGHT_SHADOWS > 0 ) ) || ( NUM_SPOT_LIGHT_COORDS > 0 )\n\tvec3 shadowWorldNormal = inverseTransformDirection( transformedNormal, viewMatrix );\n\tvec4 shadowWorldPosition;\n#endif\n#if defined( USE_SHADOWMAP )\n\t#if NUM_DIR_LIGHT_SHADOWS > 0\n\t\t#pragma unroll_loop_start\n\t\tfor ( int i = 0; i < NUM_DIR_LIGHT_SHADOWS; i ++ ) {\n\t\t\tshadowWorldPosition = worldPosition + vec4( shadowWorldNormal * directionalLightShadows[ i ].shadowNormalBias, 0 );\n\t\t\tvDirectionalShadowCoord[ i ] = directionalShadowMatrix[ i ] * shadowWorldPosition;\n\t\t}\n\t\t#pragma unroll_loop_end\n\t#endif\n\t#if NUM_POINT_LIGHT_SHADOWS > 0\n\t\t#pragma unroll_loop_start\n\t\tfor ( int i = 0; i < NUM_POINT_LIGHT_SHADOWS; i ++ ) {\n\t\t\tshadowWorldPosition = worldPosition + vec4( shadowWorldNormal * pointLightShadows[ i ].shadowNormalBias, 0 );\n\t\t\tvPointShadowCoord[ i ] = pointShadowMatrix[ i ] * shadowWorldPosition;\n\t\t}\n\t\t#pragma unroll_loop_end\n\t#endif\n#endif\n#if NUM_SPOT_LIGHT_COORDS > 0\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_SPOT_LIGHT_COORDS; i ++ ) {\n\t\tshadowWorldPosition = worldPosition;\n\t\t#if ( defined( USE_SHADOWMAP ) && UNROLLED_LOOP_INDEX < NUM_SPOT_LIGHT_SHADOWS )\n\t\t\tshadowWorldPosition.xyz += shadowWorldNormal * spotLightShadows[ i ].shadowNormalBias;\n\t\t#endif\n\t\tvSpotLightCoord[ i ] = spotLightMatrix[ i ] * shadowWorldPosition;\n\t}\n\t#pragma unroll_loop_end\n#endif",n4="float getShadowMask() {\n\tfloat shadow = 1.0;\n\t#ifdef USE_SHADOWMAP\n\t#if NUM_DIR_LIGHT_SHADOWS > 0\n\tDirectionalLightShadow directionalLight;\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_DIR_LIGHT_SHADOWS; i ++ ) {\n\t\tdirectionalLight = directionalLightShadows[ i ];\n\t\tshadow *= receiveShadow ? getShadow( directionalShadowMap[ i ], directionalLight.shadowMapSize, directionalLight.shadowIntensity, directionalLight.shadowBias, directionalLight.shadowRadius, vDirectionalShadowCoord[ i ] ) : 1.0;\n\t}\n\t#pragma unroll_loop_end\n\t#endif\n\t#if NUM_SPOT_LIGHT_SHADOWS > 0\n\tSpotLightShadow spotLight;\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_SPOT_LIGHT_SHADOWS; i ++ ) {\n\t\tspotLight = spotLightShadows[ i ];\n\t\tshadow *= receiveShadow ? getShadow( spotShadowMap[ i ], spotLight.shadowMapSize, spotLight.shadowIntensity, spotLight.shadowBias, spotLight.shadowRadius, vSpotLightCoord[ i ] ) : 1.0;\n\t}\n\t#pragma unroll_loop_end\n\t#endif\n\t#if NUM_POINT_LIGHT_SHADOWS > 0\n\tPointLightShadow pointLight;\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_POINT_LIGHT_SHADOWS; i ++ ) {\n\t\tpointLight = pointLightShadows[ i ];\n\t\tshadow *= receiveShadow ? getPointShadow( pointShadowMap[ i ], pointLight.shadowMapSize, pointLight.shadowIntensity, pointLight.shadowBias, pointLight.shadowRadius, vPointShadowCoord[ i ], pointLight.shadowCameraNear, pointLight.shadowCameraFar ) : 1.0;\n\t}\n\t#pragma unroll_loop_end\n\t#endif\n\t#endif\n\treturn shadow;\n}",i4="#ifdef USE_SKINNING\n\tmat4 boneMatX = getBoneMatrix( skinIndex.x );\n\tmat4 boneMatY = getBoneMatrix( skinIndex.y );\n\tmat4 boneMatZ = getBoneMatrix( skinIndex.z );\n\tmat4 boneMatW = getBoneMatrix( skinIndex.w );\n#endif",r4="#ifdef USE_SKINNING\n\tuniform mat4 bindMatrix;\n\tuniform mat4 bindMatrixInverse;\n\tuniform highp sampler2D boneTexture;\n\tmat4 getBoneMatrix( const in float i ) {\n\t\tint size = textureSize( boneTexture, 0 ).x;\n\t\tint j = int( i ) * 4;\n\t\tint x = j % size;\n\t\tint y = j / size;\n\t\tvec4 v1 = texelFetch( boneTexture, ivec2( x, y ), 0 );\n\t\tvec4 v2 = texelFetch( boneTexture, ivec2( x + 1, y ), 0 );\n\t\tvec4 v3 = texelFetch( boneTexture, ivec2( x + 2, y ), 0 );\n\t\tvec4 v4 = texelFetch( boneTexture, ivec2( x + 3, y ), 0 );\n\t\treturn mat4( v1, v2, v3, v4 );\n\t}\n#endif",o4="#ifdef USE_SKINNING\n\tvec4 skinVertex = bindMatrix * vec4( transformed, 1.0 );\n\tvec4 skinned = vec4( 0.0 );\n\tskinned += boneMatX * skinVertex * skinWeight.x;\n\tskinned += boneMatY * skinVertex * skinWeight.y;\n\tskinned += boneMatZ * skinVertex * skinWeight.z;\n\tskinned += boneMatW * skinVertex * skinWeight.w;\n\ttransformed = ( bindMatrixInverse * skinned ).xyz;\n#endif",s4="#ifdef USE_SKINNING\n\tmat4 skinMatrix = mat4( 0.0 );\n\tskinMatrix += skinWeight.x * boneMatX;\n\tskinMatrix += skinWeight.y * boneMatY;\n\tskinMatrix += skinWeight.z * boneMatZ;\n\tskinMatrix += skinWeight.w * boneMatW;\n\tskinMatrix = bindMatrixInverse * skinMatrix * bindMatrix;\n\tobjectNormal = vec4( skinMatrix * vec4( objectNormal, 0.0 ) ).xyz;\n\t#ifdef USE_TANGENT\n\t\tobjectTangent = vec4( skinMatrix * vec4( objectTangent, 0.0 ) ).xyz;\n\t#endif\n#endif",a4="float specularStrength;\n#ifdef USE_SPECULARMAP\n\tvec4 texelSpecular = texture2D( specularMap, vSpecularMapUv );\n\tspecularStrength = texelSpecular.r;\n#else\n\tspecularStrength = 1.0;\n#endif",l4="#ifdef USE_SPECULARMAP\n\tuniform sampler2D specularMap;\n#endif",c4="#if defined( TONE_MAPPING )\n\tgl_FragColor.rgb = toneMapping( gl_FragColor.rgb );\n#endif",u4=
vendor: 3,669 bytes, line 13
13"#ifndef saturate\n#define saturate( a ) clamp( a, 0.0, 1.0 )\n#endif\nuniform float toneMappingExposure;\nvec3 LinearToneMapping( vec3 color ) {\n\treturn saturate( toneMappingExposure * color );\n}\nvec3 ReinhardToneMapping( vec3 color ) {\n\tcolor *= toneMappingExposure;\n\treturn saturate( color / ( vec3( 1.0 ) + color ) );\n}\nvec3 CineonToneMapping( vec3 color ) {\n\tcolor *= toneMappingExposure;\n\tcolor = max( vec3( 0.0 ), color - 0.004 );\n\treturn pow( ( color * ( 6.2 * color + 0.5 ) ) / ( color * ( 6.2 * color + 1.7 ) + 0.06 ), vec3( 2.2 ) );\n}\nvec3 RRTAndODTFit( vec3 v ) {\n\tvec3 a = v * ( v + 0.0245786 ) - 0.000090537;\n\tvec3 b = v * ( 0.983729 * v + 0.4329510 ) + 0.238081;\n\treturn a / b;\n}\nvec3 ACESFilmicToneMapping( vec3 color ) {\n\tconst mat3 ACESInputMat = mat3(\n\t\tvec3( 0.59719, 0.07600, 0.02840 ),\t\tvec3( 0.35458, 0.90834, 0.13383 ),\n\t\tvec3( 0.04823, 0.01566, 0.83777 )\n\t);\n\tconst mat3 ACESOutputMat = mat3(\n\t\tvec3( 1.60475, -0.10208, -0.00327 ),\t\tvec3( -0.53108, 1.10813, -0.07276 ),\n\t\tvec3( -0.07367, -0.00605, 1.07602 )\n\t);\n\tcolor *= toneMappingExposure / 0.6;\n\tcolor = ACESInputMat * color;\n\tcolor = RRTAndODTFit( color );\n\tcolor = ACESOutputMat * color;\n\treturn saturate( color );\n}\nconst mat3 LINEAR_REC2020_TO_LINEAR_SRGB = mat3(\n\tvec3( 1.6605, - 0.1246, - 0.0182 ),\n\tvec3( - 0.5876, 1.1329, - 0.1006 ),\n\tvec3( - 0.0728, - 0.0083, 1.1187 )\n);\nconst mat3 LINEAR_SRGB_TO_LINEAR_REC2020 = mat3(\n\tvec3( 0.6274, 0.0691, 0.0164 ),\n\tvec3( 0.3293, 0.9195, 0.0880 ),\n\tvec3( 0.0433, 0.0113, 0.8956 )\n);\nvec3 agxDefaultContrastApprox( vec3 x ) {\n\tvec3 x2 = x * x;\n\tvec3 x4 = x2 * x2;\n\treturn + 15.5 * x4 * x2\n\t\t- 40.14 * x4 * x\n\t\t+ 31.96 * x4\n\t\t- 6.868 * x2 * x\n\t\t+ 0.4298 * x2\n\t\t+ 0.1191 * x\n\t\t- 0.00232;\n}\nvec3 AgXToneMapping( vec3 color ) {\n\tconst mat3 AgXInsetMatrix = mat3(\n\t\tvec3( 0.856627153315983, 0.137318972929847, 0.11189821299995 ),\n\t\tvec3( 0.0951212405381588, 0.761241990602591, 0.0767994186031903 ),\n\t\tvec3( 0.0482516061458583, 0.101439036467562, 0.811302368396859 )\n\t);\n\tconst mat3 AgXOutsetMatrix = mat3(\n\t\tvec3( 1.1271005818144368, - 0.1413297634984383, - 0.14132976349843826 ),\n\t\tvec3( - 0.11060664309660323, 1.157823702216272, - 0.11060664309660294 ),\n\t\tvec3( - 0.016493938717834573, - 0.016493938717834257, 1.2519364065950405 )\n\t);\n\tconst float AgxMinEv = - 12.47393;\tconst float AgxMaxEv = 4.026069;\n\tcolor *= toneMappingExposure;\n\tcolor = LINEAR_SRGB_TO_LINEAR_REC2020 * color;\n\tcolor = AgXInsetMatrix * color;\n\tcolor = max( color, 1e-10 );\tcolor = log2( color );\n\tcolor = ( color - AgxMinEv ) / ( AgxMaxEv - AgxMinEv );\n\tcolor = clamp( color, 0.0, 1.0 );\n\tcolor = agxDefaultContrastApprox( color );\n\tcolor = AgXOutsetMatrix * color;\n\tcolor = pow( max( vec3( 0.0 ), color ), vec3( 2.2 ) );\n\tcolor = LINEAR_REC2020_TO_LINEAR_SRGB * color;\n\tcolor = clamp( color, 0.0, 1.0 );\n\treturn color;\n}\nvec3 NeutralToneMapping( vec3 color ) {\n\tconst float StartCompression = 0.8 - 0.04;\n\tconst float Desaturation = 0.15;\n\tcolor *= toneMappingExposure;\n\tfloat x = min( color.r, min( color.g, color.b ) );\n\tfloat offset = x < 0.08 ? x - 6.25 * x * x : 0.04;\n\tcolor -= offset;\n\tfloat peak = max( color.r, max( color.g, color.b ) );\n\tif ( peak < StartCompression ) return color;\n\tfloat d = 1. - StartCompression;\n\tfloat newPeak = 1. - d * d / ( peak + d - StartCompression );\n\tcolor *= newPeak / peak;\n\tfloat g = 1. - 1. / ( Desaturation * ( peak - newPeak ) + 1. );\n\treturn mix( color, vec3( newPeak ), g );\n}\nvec3 CustomToneMapping( vec3 color ) { return color; }",
13d4="#ifdef USE_TRANSMISSION\n\tmaterial.transmission = transmission;\n\tmaterial.transmissionAlpha = 1.0;\n\tmaterial.thickness = thickness;\n\tmaterial.attenuationDistance = attenuationDistance;\n\tmaterial.attenuationColor = attenuationColor;\n\t#ifdef USE_TRANSMISSIONMAP\n\t\tmaterial.transmission *= texture2D( transmissionMap, vTransmissionMapUv ).r;\n\t#endif\n\t#ifdef USE_THICKNESSMAP\n\t\tmaterial.thickness *= texture2D( thicknessMap, vThicknessMapUv ).g;\n\t#endif\n\tvec3 pos = vWorldPosition;\n\tvec3 v = normalize( cameraPosition - pos );\n\tvec3 n = inverseTransformDirection( normal, viewMatrix );\n\tvec4 transmitted = getIBLVolumeRefraction(\n\t\tn, v, material.roughness, material.diffuseColor, material.specularColor, material.specularF90,\n\t\tpos, modelMatrix, viewMatrix, projectionMatrix, material.dispersion, material.ior, material.thickness,\n\t\tmaterial.attenuationColor, material.attenuationDistance );\n\tmaterial.transmissionAlpha = mix( material.transmissionAlpha, transmitted.a, material.transmission );\n\ttotalDiffuse = mix( totalDiffuse, transmitted.rgb, material.transmission );\n#endif",f4="#ifdef USE_TRANSMISSION\n\tuniform float transmission;\n\tuniform float thickness;\n\tuniform float attenuationDistance;\n\tuniform vec3 attenuationColor;\n\t#ifdef USE_TRANSMISSIONMAP\n\t\tuniform sampler2D transmissionMap;\n\t#endif\n\t#ifdef USE_THICKNESSMAP\n\t\tuniform sampler2D thicknessMap;\n\t#endif\n\tuniform vec2 transmissionSamplerSize;\n\tuniform sampler2D transmissionSamplerMap;\n\tuniform mat4 modelMatrix;\n\tuniform mat4 projectionMatrix;\n\tvarying vec3 vWorldPosition;\n\tfloat w0( float a ) {\n\t\treturn ( 1.0 / 6.0 ) * ( a * ( a * ( - a + 3.0 ) - 3.0 ) + 1.0 );\n\t}\n\tfloat w1( float a ) {\n\t\treturn ( 1.0 / 6.0 ) * ( a * a * ( 3.0 * a - 6.0 ) + 4.0 );\n\t}\n\tfloat w2( float a ){\n\t\treturn ( 1.0 / 6.0 ) * ( a * ( a * ( - 3.0 * a + 3.0 ) + 3.0 ) + 1.0 );\n\t}\n\tfloat w3( float a ) {\n\t\treturn ( 1.0 / 6.0 ) * ( a * a * a );\n\t}\n\tfloat g0( float a ) {\n\t\treturn w0( a ) + w1( a );\n\t}\n\tfloat g1( float a ) {\n\t\treturn w2( a ) + w3( a );\n\t}\n\tfloat h0( float a ) {\n\t\treturn - 1.0 + w1( a ) / ( w0( a ) + w1( a ) );\n\t}\n\tfloat h1( float a ) {\n\t\treturn 1.0 + w3( a ) / ( w2( a ) + w3( a ) );\n\t}\n\tvec4 bicubic( sampler2D tex, vec2 uv, vec4 texelSize, float lod ) {\n\t\tuv = uv * texelSize.zw + 0.5;\n\t\tvec2 iuv = floor( uv );\n\t\tvec2 fuv = fract( uv );\n\t\tfloat g0x = g0( fuv.x );\n\t\tfloat g1x = g1( fuv.x );\n\t\tfloat h0x = h0( fuv.x );\n\t\tfloat h1x = h1( fuv.x );\n\t\tfloat h0y = h0( fuv.y );\n\t\tfloat h1y = h1( fuv.y );\n\t\tvec2 p0 = ( vec2( iuv.x + h0x, iuv.y + h0y ) - 0.5 ) * texelSize.xy;\n\t\tvec2 p1 = ( vec2( iuv.x + h1x, iuv.y + h0y ) - 0.5 ) * texelSize.xy;\n\t\tvec2 p2 = ( vec2( iuv.x + h0x, iuv.y + h1y ) - 0.5 ) * texelSize.xy;\n\t\tvec2 p3 = ( vec2( iuv.x + h1x, iuv.y + h1y ) - 0.5 ) * texelSize.xy;\n\t\treturn g0( fuv.y ) * ( g0x * textureLod( tex, p0, lod ) + g1x * textureLod( tex, p1, lod ) ) +\n\t\t\tg1( fuv.y ) * ( g0x * textureLod( tex, p2, lod ) + g1x * textureLod( tex, p3, lod ) );\n\t}\n\tvec4 textureBicubic( sampler2D sampler, vec2 uv, float lod ) {\n\t\tvec2 fLodSize = vec2( textureSize( sampler, int( lod ) ) );\n\t\tvec2 cLodSize = vec2( textureSize( sampler, int( lod + 1.0 ) ) );\n\t\tvec2 fLodSizeInv = 1.0 / fLodSize;\n\t\tvec2 cLodSizeInv = 1.0 / cLodSize;\n\t\tvec4 fSample = bicubic( sampler, uv, vec4( fLodSizeInv, fLodSize ), floor( lod ) );\n\t\tvec4 cSample = bicubic( sampler, uv, vec4( cLodSizeInv, cLodSize ), ceil( lod ) );\n\t\treturn mix( fSample, cSample, fract( lod ) );\n\t}\n\tvec3 getVolumeTransmissionRay( const in vec3 n, const in vec3 v, const in float thickness, const in float ior, const in mat4 modelMatrix ) {\n\t\tvec3 refractionVector = refract( - v, normalize( n ), 1.0 / ior );\n\t\tvec3 modelScale;\n\t\tmodelScale.x = length( vec3( modelMatrix[ 0 ].xyz ) );\n\t\tmodelScale.y = length( vec3( modelMatrix[ 1 ].xyz ) );\n\t\tmodelScale.z = length( vec3( modelMatrix[ 2 ].xyz ) );\n\t\treturn normalize( refractionVector ) * thickness * modelScale;\n\t}\n\tfloat applyIorToRoughness( const in float roughness, const in float ior ) {\n\t\treturn roughness * clamp( ior * 2.0 - 2.0, 0.0, 1.0 );\n\t}\n\tvec4 getTransmissionSample( const in vec2 fragCoord, const in float roughness, const in float ior ) {\n\t\tfloat lod = log2( transmissionSamplerSize.x ) * applyIorToRoughness( roughness, ior );\n\t\treturn textureBicubic( transmissionSamplerMap, fragCoord.xy, lod );\n\t}\n\tvec3 volumeAttenuation( const in float transmissionDistance, const in vec3 attenuationColor, const in float attenuationDistance ) {\n\t\tif ( isinf( attenuationDistance ) ) {\n\t\t\treturn vec3( 1.0 );\n\t\t} else {\n\t\t\tvec3 attenuationCoefficient = -log( attenuationColor ) / attenuationDistance;\n\t\t\tvec3 transmittance = exp( - attenuationCoefficient * transmissionDistance );\t\t\treturn transmittance;\n\t\t}\n\t}\n\tvec4 getIBLVolumeRefraction( const in vec3 n, const in vec3 v, const in float roughness, const in vec3 diffuseColor,\n\t\tconst in vec3 specularColor, const in float specularF90, const in vec3 position, const in mat4 modelMatrix,\n\t\tconst in mat4 viewMatrix, const in mat4 projMatrix, const in float dispersion, const in float ior, const in float thickness,\n\t\tconst in vec3 attenuationColor, const in float attenuationDistance ) {\n\t\tvec4 transmittedLight;\n\t\tvec3 transmittance;\n\t\t#ifdef USE_DISPERSION\n\t\t\tfloat halfSpread = ( ior - 1.0 ) * 0.025 * dispersion;\n\t\t\tvec3 iors = vec3( ior - halfSpread, ior, ior + halfSpread );\n\t\t\tfor ( int i = 0; i < 3; i ++ ) {\n\t\t\t\tvec3 transmissionRay = getVolumeTransmissionRay( n, v, thickness, iors[ i ], modelMatrix );\n\t\t\t\tvec3 refractedRayExit = position + transmissionRay;\n\t\t\t\tvec4 ndcPos = projMatrix * viewMatrix * vec4( refractedRayExit, 1.0 );\n\t\t\t\tvec2 refractionCoords = ndcPos.xy / ndcPos.w;\n\t\t\t\trefractionCoords += 1.0;\n\t\t\t\trefractionCoords /= 2.0;\n\t\t\t\tvec4 transmissionSample = getTransmissionSample( refractionCoords, roughness, iors[ i ] );\n\t\t\t\ttransmittedLight[ i ] = transmissionSample[ i ];\n\t\t\t\ttransmittedLight.a += transmissionSample.a;\n\t\t\t\ttransmittance[ i ] = diffuseColor[ i ] * volumeAttenuation( length( transmissionRay ), attenuationColor, attenuationDistance )[ i ];\n\t\t\t}\n\t\t\ttransmittedLight.a /= 3.0;\n\t\t#else\n\t\t\tvec3 transmissionRay = getVolumeTransmissionRay( n, v, thickness, ior, modelMatrix );\n\t\t\tvec3 refractedRayExit = position + transmissionRay;\n\t\t\tvec4 ndcPos = projMatrix * viewMatrix * vec4( refractedRayExit, 1.0 );\n\t\t\tvec2 refractionCoords = ndcPos.xy / ndcPos.w;\n\t\t\trefractionCoords += 1.0;\n\t\t\trefractionCoords /= 2.0;\n\t\t\ttransmittedLight = getTransmissionSample( refractionCoords, roughness, ior );\n\t\t\ttransmittance = diffuseColor * volumeAttenuation( length( transmissionRay ), attenuationColor, attenuationDistance );\n\t\t#endif\n\t\tvec3 attenuatedColor = transmittance * transmittedLight.rgb;\n\t\tvec3 F = EnvironmentBRDF( n, v, specularColor, specularF90, roughness );\n\t\tfloat transmittanceFactor = ( transmittance.r + transmittance.g + transmittance.b ) / 3.0;\n\t\treturn vec4( ( 1.0 - F ) * attenuatedColor, 1.0 - ( 1.0 - transmittedLight.a ) * transmittanceFactor );\n\t}\n#endif",h4="#if defined( USE_UV ) || defined( USE_ANISOTROPY )\n\tvarying vec2 vUv;\n#endif\n#ifdef USE_MAP\n\tvarying vec2 vMapUv;
13\n#endif\n#ifdef USE_ALPHAMAP\n\tvarying vec2 vAlphaMapUv;\n#endif\n#ifdef USE_LIGHTMAP\n\tvarying vec2 vLightMapUv;\n#endif\n#ifdef USE_AOMAP\n\tvarying vec2 vAoMapUv;\n#endif\n#ifdef USE_BUMPMAP\n\tvarying vec2 vBumpMapUv;\n#endif\n#ifdef USE_NORMALMAP\n\tvarying vec2 vNormalMapUv;\n#endif\n#ifdef USE_EMISSIVEMAP\n\tvarying vec2 vEmissiveMapUv;\n#endif\n#ifdef USE_METALNESSMAP\n\tvarying vec2 vMetalnessMapUv;\n#endif\n#ifdef USE_ROUGHNESSMAP\n\tvarying vec2 vRoughnessMapUv;\n#endif\n#ifdef USE_ANISOTROPYMAP\n\tvarying vec2 vAnisotropyMapUv;\n#endif\n#ifdef USE_CLEARCOATMAP\n\tvarying vec2 vClearcoatMapUv;\n#endif\n#ifdef USE_CLEARCOAT_NORMALMAP\n\tvarying vec2 vClearcoatNormalMapUv;\n#endif\n#ifdef USE_CLEARCOAT_ROUGHNESSMAP\n\tvarying vec2 vClearcoatRoughnessMapUv;\n#endif\n#ifdef USE_IRIDESCENCEMAP\n\tvarying vec2 vIridescenceMapUv;\n#endif\n#ifdef USE_IRIDESCENCE_THICKNESSMAP\n\tvarying vec2 vIridescenceThicknessMapUv;\n#endif\n#ifdef USE_SHEEN_COLORMAP\n\tvarying vec2 vSheenColorMapUv;\n#endif\n#ifdef USE_SHEEN_ROUGHNESSMAP\n\tvarying vec2 vSheenRoughnessMapUv;\n#endif\n#ifdef USE_SPECULARMAP\n\tvarying vec2 vSpecularMapUv;\n#endif\n#ifdef USE_SPECULAR_COLORMAP\n\tvarying vec2 vSpecularColorMapUv;\n#endif\n#ifdef USE_SPECULAR_INTENSITYMAP\n\tvarying vec2 vSpecularIntensityMapUv;\n#endif\n#ifdef USE_TRANSMISSIONMAP\n\tuniform mat3 transmissionMapTransform;\n\tvarying vec2 vTransmissionMapUv;\n#endif\n#ifdef USE_THICKNESSMAP\n\tuniform mat3 thicknessMapTransform;\n\tvarying vec2 vThicknessMapUv;\n#endif",p4="#if defined( USE_UV ) || defined( USE_ANISOTROPY )\n\tvarying vec2 vUv;\n#endif\n#ifdef USE_MAP\n\tuniform mat3 mapTransform;\n\tvarying vec2 vMapUv;\n#endif\n#ifdef USE_ALPHAMAP\n\tuniform mat3 alphaMapTransform;\n\tvarying vec2 vAlphaMapUv;\n#endif\n#ifdef USE_LIGHTMAP\n\tuniform mat3 lightMapTransform;\n\tvarying vec2 vLightMapUv;\n#endif\n#ifdef USE_AOMAP\n\tuniform mat3 aoMapTransform;\n\tvarying vec2 vAoMapUv;\n#endif\n#ifdef USE_BUMPMAP\n\tuniform mat3 bumpMapTransform;\n\tvarying vec2 vBumpMapUv;\n#endif\n#ifdef USE_NORMALMAP\n\tuniform mat3 normalMapTransform;\n\tvarying vec2 vNormalMapUv;\n#endif\n#ifdef USE_DISPLACEMENTMAP\n\tuniform mat3 displacementMapTransform;\n\tvarying vec2 vDisplacementMapUv;\n#endif\n#ifdef USE_EMISSIVEMAP\n\tuniform mat3 emissiveMapTransform;\n\tvarying vec2 vEmissiveMapUv;\n#endif\n#ifdef USE_METALNESSMAP\n\tuniform mat3 metalnessMapTransform;\n\tvarying vec2 vMetalnessMapUv;\n#endif\n#ifdef USE_ROUGHNESSMAP\n\tuniform mat3 roughnessMapTransform;\n\tvarying vec2 vRoughnessMapUv;\n#endif\n#ifdef USE_ANISOTROPYMAP\n\tuniform mat3 anisotropyMapTransform;\n\tvarying vec2 vAnisotropyMapUv;\n#endif\n#ifdef USE_CLEARCOATMAP\n\tuniform mat3 clearcoatMapTransform;\n\tvarying vec2 vClearcoatMapUv;\n#endif\n#ifdef USE_CLEARCOAT_NORMALMAP\n\tuniform mat3 clearcoatNormalMapTransform;\n\tvarying vec2 vClearcoatNormalMapUv;\n#endif\n#ifdef USE_CLEARCOAT_ROUGHNESSMAP\n\tuniform mat3 clearcoatRoughnessMapTransform;\n\tvarying vec2 vClearcoatRoughnessMapUv;\n#endif\n#ifdef USE_SHEEN_COLORMAP\n\tuniform mat3 sheenColorMapTransform;\n\tvarying vec2 vSheenColorMapUv;\n#endif\n#ifdef USE_SHEEN_ROUGHNESSMAP\n\tuniform mat3 sheenRoughnessMapTransform;\n\tvarying vec2 vSheenRoughnessMapUv;\n#endif\n#ifdef USE_IRIDESCENCEMAP\n\tuniform mat3 iridescenceMapTransform;\n\tvarying vec2 vIridescenceMapUv;\n#endif\n#ifdef USE_IRIDESCENCE_THICKNESSMAP\n\tuniform mat3 iridescenceThicknessMapTransform;\n\tvarying vec2 vIridescenceThicknessMapUv;\n#endif\n#ifdef USE_SPECULARMAP\n\tuniform mat3 specularMapTransform;\n\tvarying vec2 vSpecularMapUv;\n#endif\n#ifdef USE_SPECULAR_COLORMAP\n\tuniform mat3 specularColorMapTransform;\n\tvarying vec2 vSpecularColorMapUv;\n#endif\n#ifdef USE_SPECULAR_INTENSITYMAP\n\tuniform mat3 specularIntensityMapTransform;\n\tvarying vec2 vSpecularIntensityMapUv;\n#endif\n#ifdef USE_TRANSMISSIONMAP\n\tuniform mat3 transmissionMapTransform;\n\tvarying vec2 vTransmissionMapUv;\n#endif\n#ifdef USE_THICKNESSMAP\n\tuniform mat3 thicknessMapTransform;\n\tvarying vec2 vThicknessMapUv;\n#endif",m4="#if defined( USE_UV ) || defined( USE_ANISOTROPY )\n\tvUv = vec3( uv, 1 ).xy;\n#endif\n#ifdef USE_MAP\n\tvMapUv = ( mapTransform * vec3( MAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_ALPHAMAP\n\tvAlphaMapUv = ( alphaMapTransform * vec3( ALPHAMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_LIGHTMAP\n\tvLightMapUv = ( lightMapTransform * vec3( LIGHTMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_AOMAP\n\tvAoMapUv = ( aoMapTransform * vec3( AOMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_BUMPMAP\n\tvBumpMapUv = ( bumpMapTransform * vec3( BUMPMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_NORMALMAP\n\tvNormalMapUv = ( normalMapTransform * vec3( NORMALMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_DISPLACEMENTMAP\n\tvDisplacementMapUv = ( displacementMapTransform * vec3( DISPLACEMENTMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_EMISSIVEMAP\n\tvEmissiveMapUv = ( emissiveMapTransform * vec3( EMISSIVEMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_METALNESSMAP\n\tvMetalnessMapUv = ( metalnessMapTransform * vec3( METALNESSMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_ROUGHNESSMAP\n\tvRoughnessMapUv = ( roughnessMapTransform * vec3( ROUGHNESSMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_ANISOTROPYMAP\n\tvAnisotropyMapUv = ( anisotropyMapTransform * vec3( ANISOTROPYMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_CLEARCOATMAP\n\tvClearcoatMapUv = ( clearcoatMapTransform * vec3( CLEARCOATMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_CLEARCOAT_NORMALMAP\n\tvClearcoatNormalMapUv = ( clearcoatNormalMapTransform * vec3( CLEARCOAT_NORMALMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_CLEARCOAT_ROUGHNESSMAP\n\tvClearcoatRoughnessMapUv = ( clearcoatRoughnessMapTransform * vec3( CLEARCOAT_ROUGHNESSMAP_UV, 1 ) ).xy;
13\n#endif\n#ifdef USE_IRIDESCENCEMAP\n\tvIridescenceMapUv = ( iridescenceMapTransform * vec3( IRIDESCENCEMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_IRIDESCENCE_THICKNESSMAP\n\tvIridescenceThicknessMapUv = ( iridescenceThicknessMapTransform * vec3( IRIDESCENCE_THICKNESSMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_SHEEN_COLORMAP\n\tvSheenColorMapUv = ( sheenColorMapTransform * vec3( SHEEN_COLORMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_SHEEN_ROUGHNESSMAP\n\tvSheenRoughnessMapUv = ( sheenRoughnessMapTransform * vec3( SHEEN_ROUGHNESSMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_SPECULARMAP\n\tvSpecularMapUv = ( specularMapTransform * vec3( SPECULARMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_SPECULAR_COLORMAP\n\tvSpecularColorMapUv = ( specularColorMapTransform * vec3( SPECULAR_COLORMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_SPECULAR_INTENSITYMAP\n\tvSpecularIntensityMapUv = ( specularIntensityMapTransform * vec3( SPECULAR_INTENSITYMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_TRANSMISSIONMAP\n\tvTransmissionMapUv = ( transmissionMapTransform * vec3( TRANSMISSIONMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_THICKNESSMAP\n\tvThicknessMapUv = ( thicknessMapTransform * vec3( THICKNESSMAP_UV, 1 ) ).xy;\n#endif",v4="#if defined( USE_ENVMAP ) || defined( DISTANCE ) || defined ( USE_SHADOWMAP ) || defined ( USE_TRANSMISSION ) || NUM_SPOT_LIGHT_COORDS > 0\n\tvec4 worldPosition = vec4( transformed, 1.0 );\n\t#ifdef USE_BATCHING\n\t\tworldPosition = batchingMatrix * worldPosition;\n\t#endif\n\t#ifdef USE_INSTANCING\n\t\tworldPosition = instanceMatrix * worldPosition;\n\t#endif\n\tworldPosition = modelMatrix * worldPosition;\n#endif";const g4="varying vec2 vUv;\nuniform mat3 uvTransform;\nvoid main() {\n\tvUv = ( uvTransform * vec3( uv, 1 ) ).xy;\n\tgl_Position = vec4( position.xy, 1.0, 1.0 );\n}",b4="uniform sampler2D t2D;\nuniform float backgroundIntensity;\nvarying vec2 vUv;\nvoid main() {\n\tvec4 texColor = texture2D( t2D, vUv );\n\t#ifdef DECODE_VIDEO_TEXTURE\n\t\ttexColor = vec4( mix( pow( texColor.rgb * 0.9478672986 + vec3( 0.0521327014 ), vec3( 2.4 ) ), texColor.rgb * 0.0773993808, vec3( lessThanEqual( texColor.rgb, vec3( 0.04045 ) ) ) ), texColor.w );\n\t#endif\n\ttexColor.rgb *= backgroundIntensity;\n\tgl_FragColor = texColor;\n\t#include <tonemapping_fragment>\n\t#include <colorspace_fragment>\n}",_4="varying vec3 vWorldDirection;\n#include <common>\nvoid main() {\n\tvWorldDirection = transformDirection( position, modelMatrix );\n\t#include <begin_vertex>\n\t#include <project_vertex>\n\tgl_Position.z = gl_Position.w;\n}",y4="#ifdef ENVMAP_TYPE_CUBE\n\tuniform samplerCube envMap;\n#elif defined( ENVMAP_TYPE_CUBE_UV )\n\tuniform sampler2D envMap;\n#endif\nuniform float flipEnvMap;\nuniform float backgroundBlurriness;\nuniform float backgroundIntensity;\nuniform mat3 backgroundRotation;\nvarying vec3 vWorldDirection;\n#include <cube_uv_reflection_fragment>\nvoid main() {\n\t#ifdef ENVMAP_TYPE_CUBE\n\t\tvec4 texColor = textureCube( envMap, backgroundRotation * vec3( flipEnvMap * vWorldDirection.x, vWorldDirection.yz ) );\n\t#elif defined( ENVMAP_TYPE_CUBE_UV )\n\t\tvec4 texColor = textureCubeUV( envMap, backgroundRotation * vWorldDirection, backgroundBlurriness );\n\t#else\n\t\tvec4 texColor = vec4( 0.0, 0.0, 0.0, 1.0 );\n\t#endif\n\ttexColor.rgb *= backgroundIntensity;\n\tgl_FragColor = texColor;\n\t#include <tonemapping_fragment>\n\t#include <colorspace_fragment>\n}",x4="varying vec3 vWorldDirection;\n#include <common>\nvoid main() {\n\tvWorldDirection = transformDirection( position, modelMatrix );\n\t#include <begin_vertex>\n\t#include <project_vertex>\n\tgl_Position.z = gl_Position.w;\n}",S4="uniform samplerCube tCube;\nuniform float tFlip;\nuniform float opacity;\nvarying vec3 vWorldDirection;\nvoid main() {\n\tvec4 texColor = textureCube( tCube, vec3( tFlip * vWorldDirection.x, vWorldDirection.yz ) );\n\tgl_FragColor = texColor;\n\tgl_FragColor.a *= opacity;\n\t#include <tonemapping_fragment>\n\t#include <colorspace_fragment>\n}",E4="#include <common>\n#include <batching_pars_vertex>\n#include <uv_pars_vertex>\n#include <displacementmap_pars_vertex>\n#include <morphtarget_pars_vertex>\n#include <skinning_pars_vertex>\n#include <logdepthbuf_pars_vertex>\n#include <clipping_planes_pars_vertex>\nvarying vec2 vHighPrecisionZW;\nvoid main() {\n\t#include <uv_vertex>\n\t#include <batching_vertex>\n\t#include <skinbase_vertex>\n\t#include <morphinstance_vertex>\n\t#ifdef USE_DISPLACEMENTMAP\n\t\t#include <beginnormal_vertex>\n\t\t#include <morphnormal_vertex>\n\t\t#include <skinnormal_vertex>\n\t#endif\n\t#include <begin_vertex>\n\t#include <morphtarget_vertex>\n\t#include <skinning_vertex>\n\t#include <displacementmap_vertex>\n\t#include <project_vertex>\n\t#include <logdepthbuf_vertex>\n\t#include <clipping_planes_vertex>\n\tvHighPrecisionZW = gl_Position.zw;\n}",w4="#if DEPTH_PACKING == 3200\n\tuniform float opacity;\n#endif\n#include <common>\n#include <packing>\n#include <uv_pars_fragment>\n#include <map_pars_fragment>\n#include <alphamap_pars_fragment>\n#include <alphatest_pars_fragment>\n#include <alphahash_pars_fragment>\n#include <logdepthbuf_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvarying vec2 vHighPrecisionZW;\nvoid main() {\n\tvec4 diffuseColor = vec4( 1.0 );\n\t#include <clipping_planes_fragment>\n\t#if DEPTH_PACKING == 3200\n\t\tdiffuseColor.a = opacity;\n\t#endif\n\t#include <map_fragment>\n\t#include <alphamap_fragment>\n\t#include <alphatest_fragment>\n\t#include <alphahash_fragment>\n\t#include <logdepthbuf_fragment>\n\t#ifdef USE_REVERSED_DEPTH_BUFFER\n\t\tfloat fragCoordZ = vHighPrecisionZW[ 0 ] / vHighPrecisionZW[ 1 ];\n\t#else\n\t\tfloat fragCoordZ = 0.5 * vHighPrecisionZW[ 0 ] / vHighPrecisionZW[ 1 ] + 0.5;\n\t#endif\n\t#if DEPTH_PACKING == 3200\n\t\tgl_FragColor = vec4( vec3( 1.0 - fragCoordZ ), opacity );\n\t#elif DEPTH_PACKING == 3201\n\t\tgl_FragColor = packDepthToRGBA( fragCoordZ );\n\t#elif DEPTH_PACKING == 3202\n\t\tgl_FragColor = vec4( packDepthToRGB( fragCoordZ ), 1.0 );\n\t#elif DEPTH_PACKING == 3203\n\t\tgl_FragColor = vec4( packDepthToRG( fragCoordZ ), 0.0, 1.0 );\n\t#endif\n}",M4="#define DISTANCE\nvarying vec3 vWorldPosition;\n#include <common>\n#include <batching_pars_vertex>\n#include <uv_pars_vertex>\n#include <displacementmap_pars_vertex>\n#include <morphtarget_pars_vertex>\n#include <skinning_pars_vertex>\n#include <clipping_planes_pars_vertex>\nvoid main() {\n\t#include <uv_vertex>\n\t#include <batching_vertex>\n\t#include <skinbase_vertex>\n\t#include <morphinstance_vertex>\n\t#ifdef USE_DISPLACEMENTMAP\n\t\t#include <beginnormal_vertex>\n\t\t#include <morphnormal_vertex>\n\t\t#include <skinnormal_vertex>\n\t#endif\n\t#include <begin_vertex>\n\t#include <morphtarget_vertex>\n\t#include <skinning_vertex>\n\t#include <displacementmap_vertex>\n\t#include <project_vertex>\n\t#include <worldpos_vertex>\n\t#include <clipping_planes_vertex>\n\tvWorldPosition = worldPosition.xyz;\n}",T4="#define DISTANCE\nuniform vec3 referencePosition;\nuniform float nearDistance;\nuniform float farDistance;\nvarying vec3 vWorldPosition;\n#include <common>\n#include <packing>\n#include <uv_pars_fragment>\n#include <map_pars_fragment>\n#include <alphamap_pars_fragment>\n#include <alphatest_pars_fragment>\n#include <alphahash_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvoid main () {\n\tvec4 diffuseColor = vec4( 1.0 );\n\t#include <clipping_planes_fragment>\n\t#include <map_fragment>\n\t#include <alphamap_fragment>\n\t#include <alphatest_fragment>\n\t#include <alphahash_fragment>\n\tfloat dist = length( vWorldPosition - referencePosition );\n\tdist = ( dist - nearDistance ) / ( farDistance - nearDistance );\n\tdist = saturate( dist );\n\tgl_FragColor = packDepthToRGBA( dist );\n}",A4="varying vec3 vWorldDirection;\n#include <common>\nvoid main() {\n\tvWorldDirection = transformDirection( position, modelMatrix );\n\t#include <begin_vertex>\n\t#include <project_vertex>\n}",C4="uniform sampler2D tEquirect;\nvarying vec3 vWorldDirection;\n#include <common>\nvoid main() {\n\tvec3 direction = normalize( vWorldDirection );\n\tvec2 sampleUV = equirectUv( direction );\n\tgl_FragColor = texture2D( tEquirect, sampleUV );\n\t#include <tonemapping_fragment>\n\t#include <colorspace_fragment>\n}",P4="uniform float scale;\nattribute float lineDistance;\nvarying float vLineDistance;\n#include <common>\n#include <uv_pars_vertex>\n#include <color_pars_vertex>\n#include <fog_pars_vertex>\n#include <morphtarget_pars_vertex>\n#include <logdepthbuf_pars_vertex>\n#include <clipping_planes_pars_vertex>\nvoid main() {\n\tvLineDistance = scale * lineDistance;\n\t#include <uv_vertex>\n\t#include <color_vertex>\n\t#include <morphinstance_vertex>\n\t#include <morphcolor_vertex>\n\t#include <begin_vertex>\n\t#include <morphtarget_vertex>\n\t#include <project_vertex>\n\t#include <logdepthbuf_vertex>\n\t#include <clipping_planes_vertex>\n\t#include <fog_vertex>\n}",R4="uniform vec3 diffuse;\nuniform float opacity;\nuniform float dashSize;\nuniform float totalSize;\nvarying float vLineDistance;\n#include <common>\n#include <color_pars_fragment>\n#include <uv_pars_fragment>\n#include <map_pars_fragment>\n#include <fog_pars_fragment>\n#include <logdepthbuf_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvoid main() {\n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\t#include <clipping_planes_fragment>\n\tif ( mod( vLineDistance, totalSize ) > dashSize ) {\n\t\tdiscard;\n\t}\n\tvec3 outgoingLight = vec3( 0.0 );\n\t#include <logdepthbuf_fragment>\n\t#include <map_fragment>\n\t#include <color_fragment>\n\toutgoingLight = diffuseColor.rgb;\n\t#include <opaque_fragment>\n\t#include <tonemapping_fragment>\n\t#include <colorspace_fragment>\n\t#include <fog_fragment>\n\t#include <premultiplied_alpha_fragment>\n}",L4="#include <common>\n#include <batching_pars_vertex>\n#include <uv_pars_vertex>\n#include <envmap_pars_vertex>\n#include <color_pars_vertex>\n#include <fog_pars_vertex>\n#include <morphtarget_pars_vertex>\n#include <skinning_pars_vertex>\n#include <logdepthbuf_pars_vertex>\n#include <clipping_planes_pars_vertex>\nvoid main() {\n\t#include <uv_vertex>\n\t#include <color_vertex>\n\t#include <morphinstance_vertex>\n\t#include <morphcolor_vertex>\n\t#include <batching_vertex>\n\t#if defined ( USE_ENVMAP ) || defined ( USE_SKINNING )\n\t\t#include <beginnormal_vertex>\n\t\t#include <morphnormal_vertex>\n\t\t#include <skinbase_vertex>\n\t\t#include <skinnormal_vertex>\n\t\t#include <defaultnormal_vertex>\n\t#endif\n\t#include <begin_vertex>\n\t#include <morphtarget_vertex>\n\t#include <skinning_vertex>\n\t#include <project_vertex>\n\t#include <logdepthbuf_vertex>\n\t#include <clipping_planes_vertex>\n\t#include <worldpos_vertex>\n\t#include <envmap_vertex>\n\t#include <fog_vertex>\n}",D4="uniform vec3 diffuse;\nuniform float opacity;\n#ifndef FLAT_SHADED\n\tvarying vec3 vNormal;\n#endif\n#include <common>\n#include <dithering_pars_fragment>\n#include <color_pars_fragment>\n#include <uv_pars_fragment>\n#include <map_pars_fragment>\n#include <alphamap_pars_fragment>\n#include <alphatest_pars_fragment>\n#include <alphahash_pars_fragment>\n#include <aomap_pars_fragment>\n#include <lightmap_pars_fragment>\n#include <envmap_common_pars_fragment>\n#include <envmap_pars_fragment>\n#include <fog_pars_fragment>\n#include <specularmap_pars_fragment>\n#include <logdepthbuf_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvoid main() {\n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\t#include <clipping_planes_fragment>\n\t#include <logdepthbuf_fragment>\n\t#include <map_fragment>\n\t#include <color_fragment>\n\t#include <alphamap_fragment>\n\t#include <alphatest_fragment>\n\t#include <alphahash_fragment>\n\t#include <specularmap_fragment>\n\tReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) );\n\t#ifdef USE_LIGHTMAP\n\t\tvec4 lightMapTexel = texture2D( lightMap, vLightMapUv );\n\t\treflectedLight.indirectDiffuse += lightMapTexel.rgb * lightMapIntensity * RECIPROCAL_PI;\n\t#else\n\t\treflectedLight.indirectDiffuse += vec3( 1.0 );\n\t#endif\n\t#include <aomap_fragment>\n\treflectedLight.indirectDiffuse *= diffuseColor.rgb;\n\tvec3 outgoingLight = reflectedLight.indirectDiffuse;\n\t#include <envmap_fragment>\n\t#include <opaque_fragment>\n\t#include <tonemapping_fragment>\n\t#include <colorspace_fragment>\n\t#include <fog_fragment>\n\t#include <premultiplied_alpha_fragment>\n\t#include <dithering_fragment>\n}",I4="#define LAMBERT\nvarying vec3 vViewPosition;\n#include <common>\n#include <batching_pars_vertex>\n#include <uv_pars_vertex>\n#include <displacementmap_pars_vertex>\n#include <envmap_pars_vertex>\n#include <color_pars_vertex>\n#include <fog_pars_vertex>\n#include <normal_pars_vertex>\n#include <morphtarget_pars_vertex>\n#include <skinning_pars_vertex>\n#include <shadowmap_pars_vertex>\n#include <logdepthbuf_pars_vertex>\n#include <clipping_planes_pars_vertex>\nvoid main() {\n\t#include <uv_vertex>\n\t#include <color_vertex>\n\t#include <morphinstance_vertex>\n\t#include <morphcolor_vertex>\n\t#include <batching_vertex>\n\t#include <beginnormal_vertex>\n\t#include <morphnormal_vertex>\n\t#include <skinbase_vertex>\n\t#include <skinnormal_vertex>\n\t#include <defaultnormal_vertex>\n\t#include <normal_vertex>\n\t#include <begin_vertex>\n\t#include <morphtarget_vertex>\n\t#include <skinning_vertex>\n\t#include <displacementmap_vertex>\n\t#include <project_vertex>\n\t#include <logdepthbuf_vertex>\n\t#include <clipping_planes_vertex>\n\tvViewPosition = - mvPosition.xyz;\n\t#include <worldpos_vertex>\n\t#include <envmap_vertex>\n\t#include <shadowmap_vertex>\n\t#include <fog_vertex>\n}",N4="#define LAMBERT\nuniform vec3 diffuse;\nuniform vec3 emissive;\nuniform float opacity;\n#include <common>\n#include <packing>\n#include <dithering_pars_fragment>\n#include <color_pars_fragment>\n#include <uv_pars_fragment>\n#include <map_pars_fragment>\n#include <alphamap_pars_fragment>\n#include <alphatest_pars_fragment>\n#include <alphahash_pars_fragment>\n#include <aomap_pars_fragment>\n#include <lightmap_pars_fragment>\n#include <emissivemap_pars_fragment>\n#include <envmap_common_pars_fragment>\n#include <envmap_pars_fragment>\n#include <fog_pars_fragment>\n#include <bsdfs>\n#include <lights_pars_begin>\n#include <normal_pars_fragment>\n#include <lights_lambert_pars_fragment>\n#include <shadowmap_pars_fragment>\n#include <bumpmap_pars_fragment>\n#include <normalmap_pars_fragment>\n#include <specularmap_pars_fragment>\n#include <logdepthbuf_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvoid main() {\n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\t#include <clipping_planes_fragment>\n\tReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) );\n\tvec3 totalEmissiveRadiance = emissive;\n\t#include <logdepthbuf_fragment>\n\t#include <map_fragment>\n\t#include <color_fragment>\n\t#include <alphamap_fragment>\n\t#include <alphatest_fragment>\n\t#include <alphahash_fragment>\n\t#include <specularmap_fragment>\n\t#include <normal_fragment_begin>\n\t#include <normal_fragment_maps>\n\t#include <emissivemap_fragment>\n\t#include <lights_lambert_fragment>\n\t#include <lights_fragment_begin>\n\t#include <lights_fragment_maps>\n\t#include <lights_fragment_end>\n\t#include <aomap_fragment>\n\tvec3 outgoingLight = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse + totalEmissiveRadiance;\n\t#include <envmap_fragment>\n\t#include <opaque_fragment>\n\t#include <tonemapping_fragment>\n\t#include <colorspace_fragment>\n\t#include <fog_fragment>\n\t#include <premultiplied_alpha_fragment>\n\t#include <dithering_fragment>\n}",O4="#define MATCAP\nvarying vec3 vViewPosition;\n#include <common>\n#include <batching_pars_vertex>\n#include <uv_pars_vertex>\n#include <color_pars_vertex>\n#include <displacementmap_pars_vertex>\n#include <fog_pars_vertex>\n#include <normal_pars_vertex>\n#include <morphtarget_pars_vertex>\n#include <skinning_pars_vertex>\n#include <logdepthbuf_pars_vertex>\n#include <clipping_planes_pars_vertex>\nvoid main() {\n\t#include <uv_vertex>\n\t#include <color_vertex>\n\t#include <morphinstance_vertex>\n\t#include <morphcolor_vertex>\n\t#include <batching_vertex>\n\t#include <beginnormal_vertex>\n\t#include <morphnormal_vertex>\n\t#include <skinbase_vertex>\n\t#include <skinnormal_vertex>\n\t#include <defau
13ltnormal_vertex>\n\t#include <normal_vertex>\n\t#include <begin_vertex>\n\t#include <morphtarget_vertex>\n\t#include <skinning_vertex>\n\t#include <displacementmap_vertex>\n\t#include <project_vertex>\n\t#include <logdepthbuf_vertex>\n\t#include <clipping_planes_vertex>\n\t#include <fog_vertex>\n\tvViewPosition = - mvPosition.xyz;\n}",U4="#define MATCAP\nuniform vec3 diffuse;\nuniform float opacity;\nuniform sampler2D matcap;\nvarying vec3 vViewPosition;\n#include <common>\n#include <dithering_pars_fragment>\n#include <color_pars_fragment>\n#include <uv_pars_fragment>\n#include <map_pars_fragment>\n#include <alphamap_pars_fragment>\n#include <alphatest_pars_fragment>\n#include <alphahash_pars_fragment>\n#include <fog_pars_fragment>\n#include <normal_pars_fragment>\n#include <bumpmap_pars_fragment>\n#include <normalmap_pars_fragment>\n#include <logdepthbuf_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvoid main() {\n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\t#include <clipping_planes_fragment>\n\t#include <logdepthbuf_fragment>\n\t#include <map_fragment>\n\t#include <color_fragment>\n\t#include <alphamap_fragment>\n\t#include <alphatest_fragment>\n\t#include <alphahash_fragment>\n\t#include <normal_fragment_begin>\n\t#include <normal_fragment_maps>\n\tvec3 viewDir = normalize( vViewPosition );\n\tvec3 x = normalize( vec3( viewDir.z, 0.0, - viewDir.x ) );\n\tvec3 y = cross( viewDir, x );\n\tvec2 uv = vec2( dot( x, normal ), dot( y, normal ) ) * 0.495 + 0.5;\n\t#ifdef USE_MATCAP\n\t\tvec4 matcapColor = texture2D( matcap, uv );\n\t#else\n\t\tvec4 matcapColor = vec4( vec3( mix( 0.2, 0.8, uv.y ) ), 1.0 );\n\t#endif\n\tvec3 outgoingLight = diffuseColor.rgb * matcapColor.rgb;\n\t#include <opaque_fragment>\n\t#include <tonemapping_fragment>\n\t#include <colorspace_fragment>\n\t#include <fog_fragment>\n\t#include <premultiplied_alpha_fragment>\n\t#include <dithering_fragment>\n}",F4="#define NORMAL\n#if defined( FLAT_SHADED ) || defined( USE_BUMPMAP ) || defined( USE_NORMALMAP_TANGENTSPACE )\n\tvarying vec3 vViewPosition;\n#endif\n#include <common>\n#include <batching_pars_vertex>\n#include <uv_pars_vertex>\n#include <displacementmap_pars_vertex>\n#include <normal_pars_vertex>\n#include <morphtarget_pars_vertex>\n#include <skinning_pars_vertex>\n#include <logdepthbuf_pars_vertex>\n#include <clipping_planes_pars_vertex>\nvoid main() {\n\t#include <uv_vertex>\n\t#include <batching_vertex>\n\t#include <beginnormal_vertex>\n\t#include <morphinstance_vertex>\n\t#include <morphnormal_vertex>\n\t#include <skinbase_vertex>\n\t#include <skinnormal_vertex>\n\t#include <defaultnormal_vertex>\n\t#include <normal_vertex>\n\t#include <begin_vertex>\n\t#include <morphtarget_vertex>\n\t#include <skinning_vertex>\n\t#include <displacementmap_vertex>\n\t#include <project_vertex>\n\t#include <logdepthbuf_vertex>\n\t#include <clipping_planes_vertex>\n#if defined( FLAT_SHADED ) || defined( USE_BUMPMAP ) || defined( USE_NORMALMAP_TANGENTSPACE )\n\tvViewPosition = - mvPosition.xyz;\n#endif\n}",B4="#define NORMAL\nuniform float opacity;\n#if defined( FLAT_SHADED ) || defined( USE_BUMPMAP ) || defined( USE_NORMALMAP_TANGENTSPACE )\n\tvarying vec3 vViewPosition;\n#endif\n#include <packing>\n#include <uv_pars_fragment>\n#include <normal_pars_fragment>\n#include <bumpmap_pars_fragment>\n#include <normalmap_pars_fragment>\n#include <logdepthbuf_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvoid main() {\n\tvec4 diffuseColor = vec4( 0.0, 0.0, 0.0, opacity );\n\t#include <clipping_planes_fragment>\n\t#include <logdepthbuf_fragment>\n\t#include <normal_fragment_begin>\n\t#include <normal_fragment_maps>\n\tgl_FragColor = vec4( packNormalToRGB( normal ), diffuseColor.a );\n\t#ifdef OPAQUE\n\t\tgl_FragColor.a = 1.0;\n\t#endif\n}",k4="#define PHONG\nvarying vec3 vViewPosition;\n#include <common>\n#include <batching_pars_vertex>\n#include <uv_pars_vertex>\n#include <displacementmap_pars_vertex>\n#include <envmap_pars_vertex>\n#include <color_pars_vertex>\n#include <fog_pars_vertex>\n#include <normal_pars_vertex>\n#include <morphtarget_pars_vertex>\n#include <skinning_pars_vertex>\n#include <shadowmap_pars_vertex>\n#include <logdepthbuf_pars_vertex>\n#include <clipping_planes_pars_vertex>\nvoid main() {\n\t#include <uv_vertex>\n\t#include <color_vertex>\n\t#include <morphcolor_vertex>\n\t#include <batching_vertex>\n\t#include <beginnormal_vertex>\n\t#include <morphinstance_vertex>\n\t#include <morphnormal_vertex>\n\t#include <skinbase_vertex>\n\t#include <skinnormal_vertex>\n\t#include <defaultnormal_vertex>\n\t#include <normal_vertex>\n\t#include <begin_vertex>\n\t#include <morphtarget_vertex>\n\t#include <skinning_vertex>\n\t#include <displacementmap_vertex>\n\t#include <project_vertex>\n\t#include <logdepthbuf_vertex>\n\t#include <clipping_planes_vertex>\n\tvViewPosition = - mvPosition.xyz;\n\t#include <worldpos_vertex>\n\t#include <envmap_vertex>\n\t#include <shadowmap_vertex>\n\t#include <fog_vertex>\n}",z4="#define PHONG\nuniform vec3 diffuse;\nuniform vec3 emissive;\nuniform vec3 specular;\nuniform float shininess;\nuniform float opacity;\n#include <common>\n#include <packing>\n#include <dithering_pars_fragment>\n#include <color_pars_fragment>\n#include <uv_pars_fragment>\n#include <map_pars_fragment>\n#include <alphamap_pars_fragment>\n#include <alphatest_pars_fragment>\n#include <alphahash_pars_fragment>\n#include <aomap_pars_fragment>\n#include <lightmap_pars_fragment>\n#include <emissivemap_pars_fragment>\n#include <envmap_common_pars_fragment>\n#include <envmap_pars_fragment>\n#include <fog_pars_fragment>\n#include <bsdfs>\n#include <lights_pars_begin>\n#include <normal_pars_fragment>\n#include <lights_phong_pars_fragment>\n#include <shadowmap_pars_fragment>\n#include <bumpmap_pars_fragment>\n#include <normalmap_pars_fragment>\n#include <specularmap_pars_fragment>\n#include <logdepthbuf_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvoid main() {\n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\t#include <clipping_planes_fragment>\n\tReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) );\n\tvec3 totalEmissiveRadiance = emissive;\n\t#include <logdepthbuf_fragment>\n\t#include <map_fragment>\n\t#include <color_fragment>\n\t#include <alphamap_fragment>\n\t#include <alphatest_fragment>\n\t#include <alphahash_fragment>\n\t#include <specularmap_fragment>\n\t#include <normal_fragment_begin>\n\t#include <normal_fragment_maps>\n\t#include <emissivemap_fragment>\n\t#include <lights_phong_fragment>\n\t#include <lights_fragment_begin>\n\t#include <lights_fragment_maps>\n\t#include <lights_fragment_end>\n\t#include <aomap_fragment>\n\tvec3 outgoingLight = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse + reflectedLight.directSpecular + reflectedLight.indirectSpecular + totalEmissiveRadiance;\n\t#include <envmap_fragment>\n\t#include <opaque_fragment>\n\t#include <tonemapping_fragment>\n\t#include <colorspace_fragment>\n\t#include <fog_fragment>\n\t#include <premultiplied_alpha_fragment>\n\t#include <dithering_fragment>\n}",H4="#define STANDARD\nvarying vec3 vViewPosition;\n#ifdef USE_TRANSMISSION\n\tvarying vec3 vWorldPosition;\n#endif\n#include <common>\n#include <batching_pars_vertex>\n#include <uv_pars_vertex>\n#include <displacementmap_pars_vertex>\n#include <color_pars_vertex>\n#include <fog_pars_vertex>\n#include <normal_pars_vertex>\n#include <morphtarget_pars_vertex>\n#include <skinning_pars_vertex>\n#include <shadowmap_pars_vertex>\n#include <logdepthbuf_pars_vertex>\n#include <clipping_planes_pars_vertex>\nvoid main() {\n\t#include <uv_vertex>\n\t#include <color_vertex>\n\t#include <morphinstance_vertex>\n\t#include <morphcolor_vertex>\n\t#include <batching_vertex>\n\t#include <beginnormal_vertex>\n\t#include <morphnormal_vertex>\n\t#include <skinbase_vertex>\n\t#include <skinnormal_vertex>\n\t#include <defaultnormal_vertex>\n\t#include <normal_vertex>\n\t#include <begin_vertex>\n\t#include <morphtarget_vertex>\n\t#include <skinning_vertex>\n\t#include <displacementmap_vertex>\n\t#include <project_vertex>\n\t#include <logdepthbuf_vertex>\n\t#include <clipping_planes_vertex>\n\tvViewPosition = - mvPosition.xyz;\n\t#include <worldpos_vertex>\n\t#include <shadowmap_vertex>\n\t#include <fog_vertex>\n#ifdef USE_TRANSMISSION\n\tvWorldPosition = worldPosition.xyz;\n#endif\n}",V4=
vendor: 4,252 bytes, line 13
13"#define STANDARD\n#ifdef PHYSICAL\n\t#define IOR\n\t#define USE_SPECULAR\n#endif\nuniform vec3 diffuse;\nuniform vec3 emissive;\nuniform float roughness;\nuniform float metalness;\nuniform float opacity;\n#ifdef IOR\n\tuniform float ior;\n#endif\n#ifdef USE_SPECULAR\n\tuniform float specularIntensity;\n\tuniform vec3 specularColor;\n\t#ifdef USE_SPECULAR_COLORMAP\n\t\tuniform sampler2D specularColorMap;\n\t#endif\n\t#ifdef USE_SPECULAR_INTENSITYMAP\n\t\tuniform sampler2D specularIntensityMap;\n\t#endif\n#endif\n#ifdef USE_CLEARCOAT\n\tuniform float clearcoat;\n\tuniform float clearcoatRoughness;\n#endif\n#ifdef USE_DISPERSION\n\tuniform float dispersion;\n#endif\n#ifdef USE_IRIDESCENCE\n\tuniform float iridescence;\n\tuniform float iridescenceIOR;\n\tuniform float iridescenceThicknessMinimum;\n\tuniform float iridescenceThicknessMaximum;\n#endif\n#ifdef USE_SHEEN\n\tuniform vec3 sheenColor;\n\tuniform float sheenRoughness;\n\t#ifdef USE_SHEEN_COLORMAP\n\t\tuniform sampler2D sheenColorMap;\n\t#endif\n\t#ifdef USE_SHEEN_ROUGHNESSMAP\n\t\tuniform sampler2D sheenRoughnessMap;\n\t#endif\n#endif\n#ifdef USE_ANISOTROPY\n\tuniform vec2 anisotropyVector;\n\t#ifdef USE_ANISOTROPYMAP\n\t\tuniform sampler2D anisotropyMap;\n\t#endif\n#endif\nvarying vec3 vViewPosition;\n#include <common>\n#include <packing>\n#include <dithering_pars_fragment>\n#include <color_pars_fragment>\n#include <uv_pars_fragment>\n#include <map_pars_fragment>\n#include <alphamap_pars_fragment>\n#include <alphatest_pars_fragment>\n#include <alphahash_pars_fragment>\n#include <aomap_pars_fragment>\n#include <lightmap_pars_fragment>\n#include <emissivemap_pars_fragment>\n#include <iridescence_fragment>\n#include <cube_uv_reflection_fragment>\n#include <envmap_common_pars_fragment>\n#include <envmap_physical_pars_fragment>\n#include <fog_pars_fragment>\n#include <lights_pars_begin>\n#include <normal_pars_fragment>\n#include <lights_physical_pars_fragment>\n#include <transmission_pars_fragment>\n#include <shadowmap_pars_fragment>\n#include <bumpmap_pars_fragment>\n#include <normalmap_pars_fragment>\n#include <clearcoat_pars_fragment>\n#include <iridescence_pars_fragment>\n#include <roughnessmap_pars_fragment>\n#include <metalnessmap_pars_fragment>\n#include <logdepthbuf_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvoid main() {\n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\t#include <clipping_planes_fragment>\n\tReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) );\n\tvec3 totalEmissiveRadiance = emissive;\n\t#include <logdepthbuf_fragment>\n\t#include <map_fragment>\n\t#include <color_fragment>\n\t#include <alphamap_fragment>\n\t#include <alphatest_fragment>\n\t#include <alphahash_fragment>\n\t#include <roughnessmap_fragment>\n\t#include <metalnessmap_fragment>\n\t#include <normal_fragment_begin>\n\t#include <normal_fragment_maps>\n\t#include <clearcoat_normal_fragment_begin>\n\t#include <clearcoat_normal_fragment_maps>\n\t#include <emissivemap_fragment>\n\t#include <lights_physical_fragment>\n\t#include <lights_fragment_begin>\n\t#include <lights_fragment_maps>\n\t#include <lights_fragment_end>\n\t#include <aomap_fragment>\n\tvec3 totalDiffuse = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse;\n\tvec3 totalSpecular = reflectedLight.directSpecular + reflectedLight.indirectSpecular;\n\t#include <transmission_fragment>\n\tvec3 outgoingLight = totalDiffuse + totalSpecular + totalEmissiveRadiance;\n\t#ifdef USE_SHEEN\n\t\tfloat sheenEnergyComp = 1.0 - 0.157 * max3( material.sheenColor );\n\t\toutgoingLight = outgoingLight * sheenEnergyComp + sheenSpecularDirect + sheenSpecularIndirect;\n\t#endif\n\t#ifdef USE_CLEARCOAT\n\t\tfloat dotNVcc = saturate( dot( geometryClearcoatNormal, geometryViewDir ) );\n\t\tvec3 Fcc = F_Schlick( material.clearcoatF0, material.clearcoatF90, dotNVcc );\n\t\toutgoingLight = outgoingLight * ( 1.0 - material.clearcoat * Fcc ) + ( clearcoatSpecularDirect + clearcoatSpecularIndirect ) * material.clearcoat;\n\t#endif\n\t#include <opaque_fragment>\n\t#include <tonemapping_fragment>\n\t#include <colorspace_fragment>\n\t#include <fog_fragment>\n\t#include <premultiplied_alpha_fragment>\n\t#include <dithering_fragment>\n}",
13$4="#define TOON\nvarying vec3 vViewPosition;\n#include <common>\n#include <batching_pars_vertex>\n#include <uv_pars_vertex>\n#include <displacementmap_pars_vertex>\n#include <color_pars_vertex>\n#include <fog_pars_vertex>\n#include <normal_pars_vertex>\n#include <morphtarget_pars_vertex>\n#include <skinning_pars_vertex>\n#include <shadowmap_pars_vertex>\n#include <logdepthbuf_pars_vertex>\n#include <clipping_planes_pars_vertex>\nvoid main() {\n\t#include <uv_vertex>\n\t#include <color_vertex>\n\t#include <morphinstance_vertex>\n\t#include <morphcolor_vertex>\n\t#include <batching_vertex>\n\t#include <beginnormal_vertex>\n\t#include <morphnormal_vertex>\n\t#include <skinbase_vertex>\n\t#include <skinnormal_vertex>\n\t#include <defaultnormal_vertex>\n\t#include <normal_vertex>\n\t#include <begin_vertex>\n\t#include <morphtarget_vertex>\n\t#include <skinning_vertex>\n\t#include <displacementmap_vertex>\n\t#include <project_vertex>\n\t#include <logdepthbuf_vertex>\n\t#include <clipping_planes_vertex>\n\tvViewPosition = - mvPosition.xyz;\n\t#include <worldpos_vertex>\n\t#include <shadowmap_vertex>\n\t#include <fog_vertex>\n}",G4="#define TOON\nuniform vec3 diffuse;\nuniform vec3 emissive;\nuniform float opacity;\n#include <common>\n#include <packing>\n#include <dithering_pars_fragment>\n#include <color_pars_fragment>\n#include <uv_pars_fragment>\n#include <map_pars_fragment>\n#include <alphamap_pars_fragment>\n#include <alphatest_pars_fragment>\n#include <alphahash_pars_fragment>\n#include <aomap_pars_fragment>\n#include <lightmap_pars_fragment>\n#include <emissivemap_pars_fragment>\n#include <gradientmap_pars_fragment>\n#include <fog_pars_fragment>\n#include <bsdfs>\n#include <lights_pars_begin>\n#include <normal_pars_fragment>\n#include <lights_toon_pars_fragment>\n#include <shadowmap_pars_fragment>\n#include <bumpmap_pars_fragment>\n#include <normalmap_pars_fragment>\n#include <logdepthbuf_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvoid main() {\n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\t#include <clipping_planes_fragment>\n\tReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) );\n\tvec3 totalEmissiveRadiance = emissive;\n\t#include <logdepthbuf_fragment>\n\t#include <map_fragment>\n\t#include <color_fragment>\n\t#include <alphamap_fragment>\n\t#include <alphatest_fragment>\n\t#include <alphahash_fragment>\n\t#include <normal_fragment_begin>\n\t#include <normal_fragment_maps>\n\t#include <emissivemap_fragment>\n\t#include <lights_toon_fragment>\n\t#include <lights_fragment_begin>\n\t#include <lights_fragment_maps>\n\t#include <lights_fragment_end>\n\t#include <aomap_fragment>\n\tvec3 outgoingLight = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse + totalEmissiveRadiance;\n\t#include <opaque_fragment>\n\t#include <tonemapping_fragment>\n\t#include <colorspace_fragment>\n\t#include <fog_fragment>\n\t#include <premultiplied_alpha_fragment>\n\t#include <dithering_fragment>\n}",W4="uniform float size;\nuniform float scale;\n#include <common>\n#include <color_pars_vertex>\n#include <fog_pars_vertex>\n#include <morphtarget_pars_vertex>\n#include <logdepthbuf_pars_vertex>\n#include <clipping_planes_pars_vertex>\n#ifdef USE_POINTS_UV\n\tvarying vec2 vUv;\n\tuniform mat3 uvTransform;\n#endif\nvoid main() {\n\t#ifdef USE_POINTS_UV\n\t\tvUv = ( uvTransform * vec3( uv, 1 ) ).xy;\n\t#endif\n\t#include <color_vertex>\n\t#include <morphinstance_vertex>\n\t#include <morphcolor_vertex>\n\t#include <begin_vertex>\n\t#include <morphtarget_vertex>\n\t#include <project_vertex>\n\tgl_PointSize = size;\n\t#ifdef USE_SIZEATTENUATION\n\t\tbool isPerspective = isPerspectiveMatrix( projectionMatrix );\n\t\tif ( isPerspective ) gl_PointSize *= ( scale / - mvPosition.z );\n\t#endif\n\t#include <logdepthbuf_vertex>\n\t#include <clipping_planes_vertex>\n\t#include <worldpos_vertex>\n\t#include <fog_vertex>\n}",X4="uniform vec3 diffuse;\nuniform float opacity;\n#include <common>\n#include <color_pars_fragment>\n#include <map_particle_pars_fragment>\n#include <alphatest_pars_fragment>\n#include <alphahash_pars_fragment>\n#include <fog_pars_fragment>\n#include <logdepthbuf_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvoid main() {\n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\t#include <clipping_planes_fragment>\n\tvec3 outgoingLight = vec3( 0.0 );\n\t#include <logdepthbuf_fragment>\n\t#include <map_particle_fragment>\n\t#include <color_fragment>\n\t#include <alphatest_fragment>\n\t#include <alphahash_fragment>\n\toutgoingLight = diffuseColor.rgb;\n\t#include <opaque_fragment>\n\t#include <tonemapping_fragment>\n\t#include <colorspace_fragment>\n\t#include <fog_fragment>\n\t#include <premultiplied_alpha_fragment>\n}",q4="#include <common>\n#include <batching_pars_vertex>\n#include <fog_pars_vertex>\n#include <morphtarget_pars_vertex>\n#include <skinning_pars_vertex>\n#include <logdepthbuf_pars_vertex>\n#include <shadowmap_pars_vertex>\nvoid main() {\n\t#include <batching_vertex>\n\t#include <beginnormal_vertex>\n\t#include <morphinstance_vertex>\n\t#include <morphnormal_vertex>\n\t#include <skinbase_vertex>\n\t#include <skinnormal_vertex>\n\t#include <defaultnormal_vertex>\n\t#include <begin_vertex>\n\t#include <morphtarget_vertex>\n\t#include <skinning_vertex>\n\t#include <project_vertex>\n\t#include <logdepthbuf_vertex>\n\t#include <worldpos_vertex>\n\t#include <shadowmap_vertex>\n\t#include <fog_vertex>\n}",Y4="uniform vec3 color;\nuniform float opacity;\n#include <common>\n#include <packing>\n#include <fog_pars_fragment>\n#include <bsdfs>\n#include <lights_pars_begin>\n#include <logdepthbuf_pars_fragment>\n#include <shadowmap_pars_fragment>\n#include <shadowmask_pars_fragment>\nvoid main() {\n\t#include <logdepthbuf_fragment>\n\tgl_FragColor = vec4( color, opacity * ( 1.0 - getShadowMask() ) );\n\t#include <tonemapping_fragment>\n\t#include <colorspace_fragment>\n\t#include <fog_fragment>\n}",j4="uniform float rotation;\nuniform vec2 center;\n#include <common>\n#include <uv_pars_vertex>\n#include <fog_pars_vertex>\n#include <logdepthbuf_pars_vertex>\n#include <clipping_planes_pars_vertex>\nvoid main() {\n\t#include <uv_vertex>\n\tvec4 mvPosition = modelViewMatrix[ 3 ];\n\tvec2 scale = vec2( length( modelMatrix[ 0 ].xyz ), length( modelMatrix[ 1 ].xyz ) );\n\t#ifndef USE_SIZEATTENUATION\n\t\tbool isPerspective = isPerspectiveMatrix( projectionMatrix );\n\t\tif ( isPerspective ) scale *= - mvPosition.z;\n\t#endif\n\tvec2 alignedPosition = ( position.xy - ( center - vec2( 0.5 ) ) ) * scale;\n\tvec2 rotatedPosition;\n\trotatedPosition.x = cos( rotation ) * alignedPosition.x - sin( rotation ) * alignedPosition.y;\n\trotatedPosition.y = sin( rotation ) * alignedPosition.x + cos( rotation ) * alignedPosition.y;\n\tmvPosition.xy += rotatedPosition;\n\tgl_Position = projectionMatrix * mvPosition;\n\t#include <logdepthbuf_vertex>\n\t#include <clipping_planes_vertex>\n\t#include <fog_vertex>\n}",K4="uniform vec3 diffuse;\nuniform float opacity;\n#include <common>\n#include <uv_pars_fragment>\n#include <map_pars_fragment>\n#include <alphamap_pars_fragment>\n#include <alphatest_pars_fragment>\n#include <alphahash_pars_fragment>\n#include <fog_pars_fragment>\n#include <logdepthbuf_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvoid main() {\n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\t#include <clipping_planes_fragment>\n\tvec3 outgoingLight = vec3( 0.0 );\n\t#include <logdepthbuf_fragment>\n\t#include <map_fragment>\n\t#include <alphamap_fragment>\n\t#include <alphatest_fragment>\n\t#include <alphahash_fragment>\n\toutgoingLight = diffuseColor.rgb;\n\t#include <opaque_fragment>\n\t#include <tonemapping_fragment>\n\t#include <colorspace_fragment>\n\t#include <fog_fragment>\n}",Rt={alphahash_fragment:bI,alphahash_pars_fragment:_I,alphamap_fragment:yI,alph
vendor: 7,325 bytes, line 13
13amap_pars_fragment:xI,alphatest_fragment:SI,alphatest_pars_fragment:EI,aomap_fragment:wI,aomap_pars_fragment:MI,batching_pars_vertex:TI,batching_vertex:AI,begin_vertex:CI,beginnormal_vertex:PI,bsdfs:RI,iridescence_fragment:LI,bumpmap_pars_fragment:DI,clipping_planes_fragment:II,clipping_planes_pars_fragment:NI,clipping_planes_pars_vertex:OI,clipping_planes_vertex:UI,color_fragment:FI,color_pars_fragment:BI,color_pars_vertex:kI,color_vertex:zI,common:HI,cube_uv_reflection_fragment:VI,defaultnormal_vertex:$I,displacementmap_pars_vertex:GI,displacementmap_vertex:WI,emissivemap_fragment:XI,emissivemap_pars_fragment:qI,colorspace_fragment:YI,colorspace_pars_fragment:jI,envmap_fragment:KI,envmap_common_pars_fragment:QI,envmap_pars_fragment:ZI,envmap_pars_vertex:JI,envmap_physical_pars_fragment:uN,envmap_vertex:eN,fog_vertex:tN,fog_pars_vertex:nN,fog_fragment:iN,fog_pars_fragment:rN,gradientmap_pars_fragment:oN,lightmap_pars_fragment:sN,lights_lambert_fragment:aN,lights_lambert_pars_fragment:lN,lights_pars_begin:cN,lights_toon_fragment:dN,lights_toon_pars_fragment:fN,lights_phong_fragment:hN,lights_phong_pars_fragment:pN,lights_physical_fragment:mN,lights_physical_pars_fragment:vN,lights_fragment_begin:gN,lights_fragment_maps:bN,lights_fragment_end:_N,logdepthbuf_fragment:yN,logdepthbuf_pars_fragment:xN,logdepthbuf_pars_vertex:SN,logdepthbuf_vertex:EN,map_fragment:wN,map_pars_fragment:MN,map_particle_fragment:TN,map_particle_pars_fragment:AN,metalnessmap_fragment:CN,metalnessmap_pars_fragment:PN,morphinstance_vertex:RN,morphcolor_vertex:LN,morphnormal_vertex:DN,morphtarget_pars_vertex:IN,morphtarget_vertex:NN,normal_fragment_begin:ON,normal_fragment_maps:UN,normal_pars_fragment:FN,normal_pars_vertex:BN,normal_vertex:kN,normalmap_pars_fragment:zN,clearcoat_normal_fragment_begin:HN,clearcoat_normal_fragment_maps:VN,clearcoat_pars_fragment:$N,iridescence_pars_fragment:GN,opaque_fragment:WN,packing:XN,premultiplied_alpha_fragment:qN,project_vertex:YN,dithering_fragment:jN,dithering_pars_fragment:KN,roughnessmap_fragment:QN,roughnessmap_pars_fragment:ZN,shadowmap_pars_fragment:JN,shadowmap_pars_vertex:e4,shadowmap_vertex:t4,shadowmask_pars_fragment:n4,skinbase_vertex:i4,skinning_pars_vertex:r4,skinning_vertex:o4,skinnormal_vertex:s4,specularmap_fragment:a4,specularmap_pars_fragment:l4,tonemapping_fragment:c4,tonemapping_pars_fragment:u4,transmission_fragment:d4,transmission_pars_fragment:f4,uv_pars_fragment:h4,uv_pars_vertex:p4,uv_vertex:m4,worldpos_vertex:v4,background_vert:g4,background_frag:b4,backgroundCube_vert:_4,backgroundCube_frag:y4,cube_vert:x4,cube_frag:S4,depth_vert:E4,depth_frag:w4,distanceRGBA_vert:M4,distanceRGBA_frag:T4,equirect_vert:A4,equirect_frag:C4,linedashed_vert:P4,linedashed_frag:R4,meshbasic_vert:L4,meshbasic_frag:D4,meshlambert_vert:I4,meshlambert_frag:N4,meshmatcap_vert:O4,meshmatcap_frag:U4,meshnormal_vert:F4,meshnormal_frag:B4,meshphong_vert:k4,meshphong_frag:z4,meshphysical_vert:H4,meshphysical_frag:V4,meshtoon_vert:$4,meshtoon_frag:G4,points_vert:W4,points_frag:X4,shadow_vert:q4,shadow_frag:Y4,sprite_vert:j4,sprite_frag:K4},at={common:{diffuse:{value:new Ut(16777215)},opacity:{value:1},map:{value:null},mapTransform:{value:new Ct},alphaMap:{value:null},alphaMapTransform:{value:new Ct},alphaTest:{value:0}},specularmap:{specularMap:{value:null},specularMapTransform:{value:new Ct}},envmap:{envMap:{value:null},envMapRotation:{value:new Ct},flipEnvMap:{value:-1},reflectivity:{value:1},ior:{value:1.5},refractionRatio:{value:.98}},aomap:{aoMap:{value:null},aoMapIntensity:{value:1},aoMapTransform:{value:new Ct}},lightmap:{lightMap:{value:null},lightMapIntensity:{value:1},lightMapTransform:{value:new Ct}},bumpmap:{bumpMap:{value:null},bumpMapTransform:{value:new Ct},bumpScale:{value:1}},normalmap:{normalMap:{value:null},normalMapTransform:{value:new Ct},normalScale:{value:new tt(1,1)}},displacementmap:{displacementMap:{value:null},displacementMapTransform:{value:new Ct},displacementScale:{value:1},displacementBias:{value:0}},emissivemap:{emissiveMap:{value:null},emissiveMapTransform:{value:new Ct}},metalnessmap:{metalnessMap:{value:null},metalnessMapTransform:{value:new Ct}},roughnessmap:{roughnessMap:{value:null},roughnessMapTransform:{value:new Ct}},gradientmap:{gradientMap:{value:null}},fog:{fogDensity:{value:25e-5},fogNear:{value:1},fogFar:{value:2e3},fogColor:{value:new Ut(16777215)}},lights:{ambientLightColor:{value:[]},lightProbe:{value:[]},directionalLights:{value:[],properties:{direction:{},color:{}}},directionalLightShadows:{value:[],properties:{shadowIntensity:1,shadowBias:{},shadowNormalBias:{},shadowRadius:{},shadowMapSize:{}}},directionalShadowMap:{value:[]},directionalShadowMatrix:{value:[]},spotLights:{value:[],properties:{color:{},position:{},direction:{},distance:{},coneCos:{},penumbraCos:{},decay:{}}},spotLightShadows:{value:[],properties:{shadowIntensity:1,shadowBias:{},shadowNormalBias:{},shadowRadius:{},shadowMapSize:{}}},spotLightMap:{value:[]},spotShadowMap:{value:[]},spotLightMatrix:{value:[]},pointLights:{value:[],properties:{color:{},position:{},decay:{},distance:{}}},pointLightShadows:{value:[],properties:{shadowIntensity:1,shadowBias:{},shadowNormalBias:{},shadowRadius:{},shadowMapSize:{},shadowCameraNear:{},shadowCameraFar:{}}},pointShadowMap:{value:[]},pointShadowMatrix:{value:[]},hemisphereLights:{value:[],properties:{direction:{},skyColor:{},groundColor:{}}},rectAreaLights:{value:[],properties:{color:{},position:{},width:{},height:{}}},ltc_1:{value:null},ltc_2:{value:null}},points:{diffuse:{value:new Ut(16777215)},opacity:{value:1},size:{value:1},scale:{value:1},map:{value:null},alphaMap:{value:null},alphaMapTransform:{value:new Ct},alphaTest:{value:0},uvTransform:{value:new Ct}},sprite:{diffuse:{value:new Ut(16777215)},opacity:{value:1},center:{value:new tt(.5,.5)},rotation:{value:0},map:{value:null},mapTransform:{value:new Ct},alphaMap:{value:null},alphaMapTransform:{value:new Ct},alphaTest:{value:0}}},sr={basic:{uniforms:Gn([at.common,at.specularmap,at.envmap,at.aomap,at.lightmap,at.fog]),vertexShader:Rt.meshbasic_vert,fragmentShader:Rt.meshbasic_frag},lambert:{uniforms:Gn([at.common,at.specularmap,at.envmap,at.aomap,at.lightmap,at.emissivemap,at.bumpmap,at.normalmap,at.displacementmap,at.fog,at.lights,{emissive:{value:new Ut(0)}}]),vertexShader:Rt.meshlambert_vert,fragmentShader:Rt.meshlambert_frag},phong:{uniforms:Gn([at.common,at.specularmap,at.envmap,at.aomap,at.lightmap,at.emissivemap,at.bumpmap,at.normalmap,at.displacementmap,at.fog,at.lights,{emissive:{value:new Ut(0)},specular:{value:new Ut(1118481)},shininess:{value:30}}]),vertexShader:Rt.meshphong_vert,fragmentShader:Rt.meshphong_frag},standard:{uniforms:Gn([at.common,at.envmap,at.aomap,at.lightmap,at.emissivemap,at.bumpmap,at.normalmap,at.displacementmap,at.roughnessmap,at.metalnessmap,at.fog,at.lights,{emissive:{value:new Ut(0)},roughness:{value:1},metalness:{value:0},envMapIntensity:{value:1}}]),vertexShader:Rt.meshphysical_vert,fragmentShader:Rt.meshphysical_frag},toon:{uniforms:Gn([at.common,at.aomap,at.lightmap,at.emissivemap,at.bumpmap,at.normalmap,at.displacementmap,at.gradientmap,at.fog,at.lights,{emissive:{value:new Ut(0)}}]),vertexShader:Rt.meshtoon_vert,fragmentShader:Rt.meshtoon_frag},matcap:{uniforms:Gn([at.common,at.bumpmap,at.normalmap,at.displacementmap,at.fog,{matc
vendor: 4,306 bytes, line 13
13ap:{value:null}}]),vertexShader:Rt.meshmatcap_vert,fragmentShader:Rt.meshmatcap_frag},points:{uniforms:Gn([at.points,at.fog]),vertexShader:Rt.points_vert,fragmentShader:Rt.points_frag},dashed:{uniforms:Gn([at.common,at.fog,{scale:{value:1},dashSize:{value:1},totalSize:{value:2}}]),vertexShader:Rt.linedashed_vert,fragmentShader:Rt.linedashed_frag},depth:{uniforms:Gn([at.common,at.displacementmap]),vertexShader:Rt.depth_vert,fragmentShader:Rt.depth_frag},normal:{uniforms:Gn([at.common,at.bumpmap,at.normalmap,at.displacementmap,{opacity:{value:1}}]),vertexShader:Rt.meshnormal_vert,fragmentShader:Rt.meshnormal_frag},sprite:{uniforms:Gn([at.sprite,at.fog]),vertexShader:Rt.sprite_vert,fragmentShader:Rt.sprite_frag},background:{uniforms:{uvTransform:{value:new Ct},t2D:{value:null},backgroundIntensity:{value:1}},vertexShader:Rt.background_vert,fragmentShader:Rt.background_frag},backgroundCube:{uniforms:{envMap:{value:null},flipEnvMap:{value:-1},backgroundBlurriness:{value:0},backgroundIntensity:{value:1},backgroundRotation:{value:new Ct}},vertexShader:Rt.backgroundCube_vert,fragmentShader:Rt.backgroundCube_frag},cube:{uniforms:{tCube:{value:null},tFlip:{value:-1},opacity:{value:1}},vertexShader:Rt.cube_vert,fragmentShader:Rt.cube_frag},equirect:{uniforms:{tEquirect:{value:null}},vertexShader:Rt.equirect_vert,fragmentShader:Rt.equirect_frag},distanceRGBA:{uniforms:Gn([at.common,at.displacementmap,{referencePosition:{value:new k},nearDistance:{value:1},farDistance:{value:1e3}}]),vertexShader:Rt.distanceRGBA_vert,fragmentShader:Rt.distanceRGBA_frag},shadow:{uniforms:Gn([at.lights,at.fog,{color:{value:new Ut(0)},opacity:{value:1}}]),vertexShader:Rt.shadow_vert,fragmentShader:Rt.shadow_frag}};sr.physical={uniforms:Gn([sr.standard.uniforms,{clearcoat:{value:0},clearcoatMap:{value:null},clearcoatMapTransform:{value:new Ct},clearcoatNormalMap:{value:null},clearcoatNormalMapTransform:{value:new Ct},clearcoatNormalScale:{value:new tt(1,1)},clearcoatRoughness:{value:0},clearcoatRoughnessMap:{value:null},clearcoatRoughnessMapTransform:{value:new Ct},dispersion:{value:0},iridescence:{value:0},iridescenceMap:{value:null},iridescenceMapTransform:{value:new Ct},iridescenceIOR:{value:1.3},iridescenceThicknessMinimum:{value:100},iridescenceThicknessMaximum:{value:400},iridescenceThicknessMap:{value:null},iridescenceThicknessMapTransform:{value:new Ct},sheen:{value:0},sheenColor:{value:new Ut(0)},sheenColorMap:{value:null},sheenColorMapTransform:{value:new Ct},sheenRoughness:{value:1},sheenRoughnessMap:{value:null},sheenRoughnessMapTransform:{value:new Ct},transmission:{value:0},transmissionMap:{value:null},transmissionMapTransform:{value:new Ct},transmissionSamplerSize:{value:new tt},transmissionSamplerMap:{value:null},thickness:{value:0},thicknessMap:{value:null},thicknessMapTransform:{value:new Ct},attenuationDistance:{value:0},attenuationColor:{value:new Ut(0)},specularColor:{value:new Ut(1,1,1)},specularColorMap:{value:null},specularColorMapTransform:{value:new Ct},specularIntensity:{value:1},specularIntensityMap:{value:null},specularIntensityMapTransform:{value:new Ct},anisotropyVector:{value:new tt},anisotropyMap:{value:null},anisotropyMapTransform:{value:new Ct}}]),vertexShader:Rt.meshphysical_vert,fragmentShader:Rt.meshphysical_frag};const ju={r:0,b:0,g:0},Uo=new Ki,Q4=new cn;function Z4(e,t,n,i,r,o,s){const a=new Ut(0);let l,c,u=!0===o?0:1,d=null,h=0,p=null;function f(e){let i=!0===e.isScene?e.background:null;return i&&i.isTexture&&(i=(e.backgroundBlurriness>0?n:t).get(i)),i}function m(t,n){t.getRGB(ju,w1(e)),i.buffers.color.setClear(ju.r,ju.g,ju.b,n,s)}return{getClearColor:function(){return a},setClearColor:function(e,t=1){a.set(e),u=t,m(a,u)},getClearAlpha:function(){return u},setClearAlpha:function(e){u=e,m(a,u)},render:function(t){let n=!1;const r=f(t);null===r?m(a,u):r&&r.isColor&&(m(r,1),n=!0);const o=e.xr.getEnvironmentBlendMode();"additive"===o?i.buffers.color.setClear(0,0,0,1,s):"alpha-blend"===o&&i.buffers.color.setClear(0,0,0,0,s),(e.autoClear||n)&&(i.buffers.depth.setTest(!0),i.buffers.depth.setMask(!0),i.buffers.color.setMask(!0),e.clear(e.autoClearColor,e.autoClearDepth,e.autoClearStencil))},addToRenderList:function(t,n){const i=f(n);i&&(i.isCubeTexture||i.mapping===xf)?(void 0===c&&(c=new On(new Na(1,1,1),new Qi({name:"Backgroun
13dCubeMaterial",uniforms:ya(sr.backgroundCube.uniforms),vertexShader:sr.backgroundCube.vertexShader,fragmentShader:sr.backgroundCube.fragmentShader,side:1,depthTest:!1,depthWrite:!1,fog:!1,allowOverride:!1})),c.geometry.deleteAttribute("normal"),c.geometry.deleteAttribute("uv"),c.onBeforeRender=function(e,t,n){this.matrixWorld.copyPosition(n.matrixWorld)},Object.defineProperty(c.material,"envMap",{get:function(){return this.uniforms.envMap.value}}),r.update(c)),Uo.copy(n.backgroundRotation),Uo.x*=-1,Uo.y*=-1,Uo.z*=-1,i.isCubeTexture&&!1===i.isRenderTargetTexture&&(Uo.y*=-1,Uo.z*=-1),c.material.uniforms.envMap.value=i,c.material.uniforms.flipEnvMap.value=i.isCubeTexture&&!1===i.isRenderTargetTexture?-1:1,c.material.uniforms.backgroundBlurriness.value=n.backgroundBlurriness,c.material.uniforms.backgroundIntensity.value=n.backgroundIntensity,c.material.uniforms.backgroundRotation.value.setFromMatrix4(Q4.makeRotationFromEuler(Uo)),c.material.toneMapped=Ht.getTransfer(i.colorSpace)!==jt,(d!==i||h!==i.version||p!==e.toneMapping)&&(c.material.needsUpdate=!0,d=i,h=i.version,p=e.toneMapping),c.layers.enableAll(),t.unshift(c,c.geometry,c.material,0,0,null)):i&&i.isTexture&&(void 0===l&&(l=new On(new Sf(2,2),new Qi({name:"BackgroundMaterial",uniforms:ya(sr.background.uniforms),vertexShader:sr.background.vertexShader,fragmentShader:sr.background.fragmentShader,side:0,depthTest:!1,depthWrite:!1,fog:!1,allowOverride:!1})),l.geometry.deleteAttribute("normal"),Object.defineProperty(l.material,"map",{get:function(){return this.uniforms.t2D.value}}),r.update(l)),l.material.uniforms.t2D.value=i,l.material.uniforms.backgroundIntensity.value=n.backgroundIntensity,l.material.toneMapped=Ht.getTransfer(i.colorSpace)!==jt,!0===i.matrixAutoUpdate&&i.updateMatrix(),l.material.uniforms.uvTransform.value.copy(i.matrix),(d!==i||h!==i.version||p!==e.toneMapping)&&(l.material.needsUpdate=!0,d=i,h=i.version,p=e.toneMapping),l.layers.enableAll(),t.unshift(l,l.geometry,l.material,0,0,null))},dispose:function(){void 0!==c&&(c.geometry.dispose(),c.material.dispose(),c=void 0),void 0!==l&&(l.geometry.dispose(),l.material.dispose(),l=void 0)}}}function J4(e,t){const n=e.getParameter(e.MAX_VERTEX_ATTRIBS),i={},r=c(null);let o=r,s=!1;function a(t){return e.bindVertexArray(t)}function l(t){return e.deleteVertexArray(t)}function c(e){const t=[],i=[],r=[];for(let e=0;e<n;e++)t[e]=0,i[e]=0,r[e]=0;return{geometry:null,program:null,wireframe:!1,newAttributes:t,enabledAttributes:i,attributeDivisors:r,object:e,attributes:{},index:null}}function u(){const e=o.newAttributes;for(let t=0,n=e.length;t<n;t++)e[t]=0}function d(e){h(e,0)}function h(t,n){const i=o.newAttributes,r=o.enabledAttributes,s=o.attributeDivisors;i[t]=1,0===r[t]&&(e.enableVertexAttribArray(t),r[t]=1),s[t]!==n&&(e.vertexAttribDivisor(t,n),s[t]=n)}function p(){const t=o.newAttributes,n=o.enabledAttributes;for(let i=0,r=n.length;i<r;i++)n[i]!==t[i]&&(e.disableVertexAttribArray(i),n[i]=0)}function f(t,n,i,r,o,s,a){!0===a?e.vertexAttribIPointer(t,n,i,o,s):e.vertexAttribPointer(t,n,i,r,o,s)}function m(){g(),s=!0,o!==r&&(o=r,a(o.object))}function g(){r.geometry=null,r.program=null,r.wireframe=!1}return{setup:function(n,r,l,m,g){let v=!1;const b=function(t,n,r){const o=!0===r.wireframe;let s=i[t.id];void 0===s&&(s={},i[t.id]=s);let a=s[n.id];void 0===a&&(a={},s[n.id]=a);let l=a[o];return void 0===l&&(l=c(e.createVertexArray()),a[o]=l),l}(m,l,r);o!==b&&(o=b,a(o.object)),v=function(e,t,n,i){const r=o.attributes,s=t.attributes;let a=0;const l=n.getAttributes();for(const t in l)if(l[t].location>=0){const n=r[t];let i=s[t];if(void 0===i&&("instanceMatrix"===t&&e.instanceMatrix&&(i=e.instanceMatrix),"instanceColor"===t&&e.instanceColor&&(i=e.instanceColor)),void 0===n||n.attribute!==i||i&&n.data!==i.data)return!0;a++}return o.attributesNum!==a||o.index!==i}(n,m,l,g),v&&function(e,t,n,i){const r={},s=t.attributes;let a=0;const l=n.getAttributes();for(const t in l)if(l[t].location>=0){let n=s[t];void 0===n&&("instanceMatrix"===t&&e.instanceMatrix&&(n=e.instanceMatrix),"instanceColor"===t&&e.instanceColor&&(n=e.instanceColor));const i={};i.attribute=n,n&&n.data&&(i.data=n.data),r[t]=i,a++}o.attributes=r,o.attributesNum=a,o.index=i}(n,m,l,g),null!==g&&t.update(g,e.ELEMENT_ARRAY_BUFFER),(v||s)&&(s=!1,function(n,i,r,o){u();const s=o.attributes,a=r.getAttributes(),l=i.defaultAttributeValues;for(const i in a){const r=a[i];if(r.location>=0){let a=s[i];if(void 0===a&&("instanceMatrix"===i&&n.instanceMatrix&&(a=n.instanceMatrix),"instanceColor"===i&&n.instanceColor&&(a=n.instanceColor)),void 0!==a){const i=a.normalized,s=a.itemSize,l=t.get(a);if(void 0===l)continue;const c=l.buffer,u=l.type,p=l.bytesPerElement,m=u===e.INT||u===e.UNSIGNED_INT||a.gpuType===dv;if(a.isInterleavedBufferAttribute){const t=a.data,l=t.stride,g=a.offset;if(t.isInstancedInterleavedBuffer){for(let e=0;e<r.locationSize;e++)h(r.location+e,t.meshPerAttribute);!0!==n.isInstancedMesh&&void 0===o._maxInstanceCount&&(o._maxInstanceCount=t.meshPerAttribute*t.count)}else for(let e=0;e<r.locationSize;e++)d(r.location+e);e.bindBuffer(e.ARRAY_BUFFER,c);for(let e=0;e<r.locationSize;e++)f(r.location+e,s/r.locationSize,u,i,l*p,(g+s/r.locationSize*e)*p,m)}else{if(a.isInstancedBufferAttribute){for(let e=0;e<r.locationSize;e++)h(r.location+e,a.meshPerAttribute);!0!==n.isInstancedMesh&&void 0===o._maxInstanceCount&&(o._maxInstanceCount=a.meshPerAttribute*a.count)}
vendor: 1,639 bytes, line 13
13else for(let e=0;e<r.locationSize;e++)d(r.location+e);e.bindBuffer(e.ARRAY_BUFFER,c);for(let e=0;e<r.locationSize;e++)f(r.location+e,s/r.locationSize,u,i,s*p,s/r.locationSize*e*p,m)}}else if(void 0!==l){const t=l[i];if(void 0!==t)switch(t.length){case 2:e.vertexAttrib2fv(r.location,t);break;case 3:e.vertexAttrib3fv(r.location,t);break;case 4:e.vertexAttrib4fv(r.location,t);break;default:e.vertexAttrib1fv(r.location,t)}}}}p()}(n,r,l,m),null!==g&&e.bindBuffer(e.ELEMENT_ARRAY_BUFFER,t.get(g).buffer))},reset:m,resetDefaultState:g,dispose:function(){m();for(const e in i){const t=i[e];for(const e in t){const n=t[e];for(const e in n)l(n[e].object),delete n[e];delete t[e]}delete i[e]}},releaseStatesOfGeometry:function(e){if(void 0===i[e.id])return;const t=i[e.id];for(const e in t){const n=t[e];for(const e in n)l(n[e].object),delete n[e];delete t[e]}delete i[e.id]},releaseStatesOfProgram:function(e){for(const t in i){const n=i[t];if(void 0===n[e.id])continue;const r=n[e.id];for(const e in r)l(r[e].object),delete r[e];delete n[e.id]}},initAttributes:u,enableAttribute:d,disableUnusedAttributes:p}}function eO(e,t,n){let i;function r(t,r,o){0!==o&&(e.drawArraysInstanced(i,t,r,o),n.update(r,i,o))}this.setMode=function(e){i=e},this.render=function(t,r){e.drawArrays(i,t,r),n.update(r,i,1)},this.renderInstances=r,this.renderMultiDraw=function(e,r,o){if(0===o)return;t.get("WEBGL_multi_draw").multiDrawArraysWEBGL(i,e,0,r,0,o);let s=0;for(let e=0;e<o;e++)s+=r[e];n.update(s,i,1)},this.renderMultiDrawInstances=function(e,o,s,a){if(0===s)return;const l=t.get("WEBGL_multi_draw");if(null===l)for(let t=0;t<e.length;t++)r(e[t],o[t],a[t]);
vendor: 12,689 bytes, line 13
13else{l.multiDrawArraysInstancedWEBGL(i,e,0,o,0,a,0,s);let t=0;for(let e=0;e<s;e++)t+=o[e]*a[e];n.update(t,i,1)}}}function tO(e,t,n,i){let r;function o(t){if("highp"===t){if(e.getShaderPrecisionFormat(e.VERTEX_SHADER,e.HIGH_FLOAT).precision>0&&e.getShaderPrecisionFormat(e.FRAGMENT_SHADER,e.HIGH_FLOAT).precision>0)return"highp";t="mediump"}return"mediump"===t&&e.getShaderPrecisionFormat(e.VERTEX_SHADER,e.MEDIUM_FLOAT).precision>0&&e.getShaderPrecisionFormat(e.FRAGMENT_SHADER,e.MEDIUM_FLOAT).precision>0?"mediump":"lowp"}let s=void 0!==n.precision?n.precision:"highp";const a=o(s);a!==s&&(console.warn("THREE.WebGLRenderer:",s,"not supported, using",a,"instead."),s=a);const l=!0===n.logarithmicDepthBuffer,c=!0===n.reversedDepthBuffer&&t.has("EXT_clip_control"),u=e.getParameter(e.MAX_TEXTURE_IMAGE_UNITS),d=e.getParameter(e.MAX_VERTEX_TEXTURE_IMAGE_UNITS);return{isWebGL2:!0,getMaxAnisotropy:function(){if(void 0!==r)return r;if(!0===t.has("EXT_texture_filter_anisotropic")){const n=t.get("EXT_texture_filter_anisotropic");r=e.getParameter(n.MAX_TEXTURE_MAX_ANISOTROPY_EXT)}else r=0;return r},getMaxPrecision:o,textureFormatReadable:function(t){return!(t!==Di&&i.convert(t)!==e.getParameter(e.IMPLEMENTATION_COLOR_READ_FORMAT))},textureTypeReadable:function(n){const r=n===bu&&(t.has("EXT_color_buffer_half_float")||t.has("EXT_color_buffer_float"));return!(n!==si&&i.convert(n)!==e.getParameter(e.IMPLEMENTATION_COLOR_READ_TYPE)&&n!==Fr&&!r)},precision:s,logarithmicDepthBuffer:l,reversedDepthBuffer:c,maxTextures:u,maxVertexTextures:d,maxTextureSize:e.getParameter(e.MAX_TEXTURE_SIZE),maxCubemapSize:e.getParameter(e.MAX_CUBE_MAP_TEXTURE_SIZE),maxAttributes:e.getParameter(e.MAX_VERTEX_ATTRIBS),maxVertexUniforms:e.getParameter(e.MAX_VERTEX_UNIFORM_VECTORS),maxVaryings:e.getParameter(e.MAX_VARYING_VECTORS),maxFragmentUniforms:e.getParameter(e.MAX_FRAGMENT_UNIFORM_VECTORS),vertexTextures:d>0,maxSamples:e.getParameter(e.MAX_SAMPLES)}}function nO(e){const t=this;let n=null,i=0,r=!1,o=!1;const s=new ko,a=new Ct,l={value:null,needsUpdate:!1};function c(e,n,i,r){const o=null!==e?e.length:0;let c=null;if(0!==o){if(c=l.value,!0!==r||null===c){const t=i+4*o,r=n.matrixWorldInverse;a.getNormalMatrix(r),(null===c||c.length<t)&&(c=new Float32Array(t));for(let t=0,n=i;t!==o;++t,n+=4)s.copy(e[t]).applyMatrix4(r,a),s.normal.toArray(c,n),c[n+3]=s.constant}l.value=c,l.needsUpdate=!0}return t.numPlanes=o,t.numIntersection=0,c}this.uniform=l,this.numPlanes=0,this.numIntersection=0,this.init=function(e,t){const n=0!==e.length||t||0!==i||r;return r=t,i=e.length,n},this.beginShadows=function(){o=!0,c(null)},this.endShadows=function(){o=!1},this.setGlobalState=function(e,t){n=c(e,t,0)},this.setState=function(s,a,u){const d=s.clippingPlanes,h=s.clipIntersection,p=s.clipShadows,f=e.get(s);if(!r||null===d||0===d.length||o&&!p)o?c(null):(l.value!==n&&(l.value=n,l.needsUpdate=i>0),t.numPlanes=i,t.numIntersection=0);else{const e=o?0:i,t=4*e;let r=f.clippingState||null;l.value=r,r=c(d,a,t,u);for(let e=0;e!==t;++e)r[e]=n[e];f.clippingState=r,this.numIntersection=h?this.numPlanes:0,this.numPlanes+=e}}}function iO(e){let t=new WeakMap;function n(e,t){return t===wp?e.mapping=va:t===Mp&&(e.mapping=ga),e}function i(e){const n=e.target;n.removeEventListener("dispose",i);const r=t.get(n);void 0!==r&&(t.delete(n),r.dispose())}return{get:function(r){if(r&&r.isTexture){const o=r.mapping;if(o===wp||o===Mp){if(t.has(r)){return n(t.get(r).texture,r.mapping)}{const o=r.image;if(o&&o.height>0){const s=new HD(o.height);return s.fromEquirectangularTexture(e,r),t.set(r,s),r.addEventListener("dispose",i),n(s.texture,r.mapping)}return null}}}return r},dispose:function(){t=new WeakMap}}}const Vs=4,gb=[.125,.215,.35,.446,.526,.582],Vo=20,wh=new hI,bb=new Ut;let Mh=null,Th=0,Ah=0,Ch=!1;const zo=(1+Math.sqrt(5))/2,Is=1/zo,_b=[new k(-zo,Is,0),new k(zo,Is,0),new k(-Is,0,zo),new k(Is,0,zo),new k(0,zo,-Is),new k(0,zo,Is),new k(-1,1,-1),new k(1,1,-1),new k(-1,1,1),new k(1,1,1)],rO=new k;class nm{constructor(e){this._renderer=e,this._pingPongRenderTarget=null,this._lodMax=0,this._cubeSize=0,this._lodPlanes=[],this._sizeLods=[],this._sigmas=[],this._blurMaterial=null,this._cubemapMaterial=null,this._equirectMaterial=null,this._compileMaterial(this._blurMaterial)}fromScene(e,t=0,n=.1,i=100,r={}){const{size:o=256,position:s=rO}=r;Mh=this._renderer.getRenderTarget(),Th=this._renderer.getActiveCubeFace(),Ah=this._renderer.getActiveMipmapLevel(),Ch=this._renderer.xr.enabled,this._renderer.xr.enabled=!1,this._setSize(o);const a=this._allocateTargets();return a.depthBuffer=!0,this._sceneToCubeUV(e,n,i,a,s),t>0&&this._blur(a,0,0,t),this._applyPMREM(a),this._cleanup(a),a}fromEquirectangular(e,t=null){return this._fromTexture(e,t)}fromCubemap(e,t=null){return this._fromTexture(e,t)}compileCubemapShader(){null===this._cubemapMaterial&&(this._cubemapMaterial=Sb(),this._compileMaterial(this._cubemapMaterial))}compileEquirectangularShader(){null===this._equirectMaterial&&(this._equirectMaterial=xb(),this._compileMaterial(this._equirectMaterial))}dispose(){this._dispose(),null!==this._cubemapMaterial&&this._cubemapMaterial.dispose(),null!==this._equirectMaterial&&this._equirectMaterial.dispose()}_setSize(e){this._lodMax=Math.floor(Math.log2(e)),this._cubeSize=Math.pow(2,this._lodMax)}_dispose(){null!==this._blurMaterial&&this._blurMaterial.dispose(),null!==this._pingPongRenderTarget&&this._pingPongRenderTarget.dispose();for(let e=0;e<this._lodPlanes.length;e++)this._lodPlanes[e].dispose()}_cleanup(e){this._renderer.setRenderTarget(Mh,Th,Ah),this._renderer.xr.enabled=Ch,e.scissorTest=!1,Ku(e,0,0,e.width,e.height)}_fromTexture(e,t){e.mapping===va||e.mapping===ga?this._setSize(0===e.image.length?16:e.image[0].width||e.image[0].image.width):this._setSize(e.image.width/4),Mh=this._renderer.getRenderTarget(),Th=this._renderer.getActiveCubeFace(),Ah=this._renderer.getActiveMipmapLevel(),Ch=this._renderer.xr.enabled,this._renderer.xr.enabled=!1;const n=t||this._allocateTargets();return this._textureToCubeUV(e,n),this._applyPMREM(n),this._cleanup(n),n}_allocateTargets(){const e=3*Math.max(this._cubeSize,112),t=4*this._cubeSize,n={magFilter:zn,minFilter:zn,generateMipmaps:!1,type:bu,format:Di,colorSpace:So,depthBuffer:!1},i=yb(e,t,n);if(null===this._pingPongRenderTarget||this._pingPongRenderTarget.width!==e||this._pingPongRenderTarget.height!==t){null!==this._pingPongRenderTarget&&this._dispose(),this._pingPongRenderTarget=yb(e,t,n);const{_lodMax:i}=this;({sizeLods:this._sizeLods,lodPlanes:this._lodPlanes,sigmas:this._sigmas}=oO(i)),this._blurMaterial=sO(i,e,t)}return i}_compileMaterial(e){const t=new On(this._lodPlanes[0],e);this._renderer.compile(t,wh)}_sceneToCubeUV(e,t,n,i,r){const o=new ri(90,1,t,n),s=[1,-1,1,1,1,1],a=[1,1,1,-1,-1,-1],l=this._renderer,c=l.autoClear,u=l.toneMapping;l.getClearColor(bb),l.toneMapping=0,l.autoClear=!1,l.state.buffers.depth.getReversed()&&(l.setRenderTarget(i),l.clearDepth(),l.setRenderTarget(null));const d=new x1({name:"PMREM.Background",side:1,depthWrite:!1,depthTest:!1}),h=new On(new Na,d);let p=!1;const f=e.background;f?f.isColor&&(d.color.copy(f),e.background=null,p=!0):(d.color.copy(bb),p=!0);for(let t=0;t<6;t++){const n=t%3;0===n?(o.up.set(0,s[t],0),o.position.set(r.x,r.y,r.z),o.lookAt(r.x+a[t],r.y,r.z)):1===n?(o.up.set(0,0,s[t]),o.position.set(r.x,r.y,r.z),o.lookAt(r.x,r.y+a[t],r.z)):(o.up.set(0,s[t],0),o.position.set(r.x,r.y,r.z),o.lookAt(r.x,r.y,r.z+a[t]));const c=this._cubeSize;Ku(i,n*c,t>2?c:0,c,c),l.setRenderTarget(i),p&&l.render(h,o),l.render(e,o)}h.geometry.dispose(),h.material.dispose(),l.toneMapping=u,l.autoClear=c,e.background=f}_textureToCubeUV(e,t){const n=this._renderer,i=e.mapping===va||e.mapping===ga;i?(null===this._cubemapMaterial&&(this._cubemapMaterial=Sb()),this._cubemapMaterial.uniforms.flipEnvMap.value=!1===e.isRenderTargetTexture?-1:1):null===this._equirectMaterial&&(this._equirectMaterial=xb());const r=i?this._cubemapMaterial:this._equirectMaterial,o=new On(this._lodPlanes[0],r);r.uniforms.envMap.value=e;const s=this._cubeSize;Ku(t,0,0,3*s,2*s),n.setRenderTarget(t),n.render(o,wh)}_applyPMREM(e){const t=this._renderer,n=t.autoClear;t.autoClear=!1;const i=this._lodPlanes.length;for(let t=1;t<i;t++){const n=Math.sqrt(this._sigmas[t]*this._sigmas[t]-this._sigmas[t-1]*this._sigmas[t-1]),r=_b[(i-t-1)%_b.length];this._blur(e,t-1,t,n,r)}t.autoClear=n}_blur(e,t,n,i,r){const o=this._pingPongRenderTarget;this._halfBlur(e,o,t,n,i,"latitudinal",r),this._halfBlur(o,e,n,n,i,"longitudinal",r)}_halfBlur(e,t,n,i,r,o,s){const a=this._renderer,l=this._blurMaterial;"latitudinal"!==o&&"longitudinal"!==o&&console.error("blur direction must be either latitudinal or longitudinal!");const c=new On(this._lodPlanes[i],l),u=l.uniforms,d=this._sizeLods[n]-1,h=isFinite(r)?Math.PI/(2*d):2*Math.PI/39,p=r/h,f=isFinite(r)?1+Math.floor(3*p):20;f>20&&console.warn(`sigmaRadians, ${r}, is too large and will clip, as it requested ${f} samples when the maximum is set to 20`);const m=[];let g=0;for(let e=0;e<20;++e){const t=e/p,n=Math.exp(-t*t/2);m.push(n),0===e?g+=n:e<f&&(g+=2*n)}for(let e=0;e<m.length;e++)m[e]=m[e]/g;u.envMap.value=e.texture,u.samples.value=f,u.weights.value=m,u.latitudinal.value="latitudinal"===o,s&&(u.poleAxis.value=s);const{_lodMax:v}=this;u.dTheta.value=h,u.mipInt.value=v-n;const b=this._sizeLods[i];Ku(t,3*b*(i>v-4?i-v+4:0),4*(this._cubeSize-b),3*b,2*b),a.setRenderTarget(t),a.render(c,wh)}}function oO(e){const t=[],n=[],i=[];let r=e;const o=e-4+1+gb.length;for(let s=0;s<o;s++){const o=Math.pow(2,r);n.push(o);let a=1/o;s>e-4?a=gb[s-e+4-1]:0===s&&(a=0),i.push(a);const l=1/(o-2),c=-l,u=1+l,d=[c,c,u,c,u,u,c,c,u,u,c,u],h=6,p=6,f=3,m=2,g=1,v=new Float32Array(f*p*h),b=new Float32Array(m*p*h),y=new Float32Array(g*p*h);for(let e=0;e<h;e++){const t=e%3*2/3-1,n=e>2?0:-1,i=[t,n,0,t+2/3,n,0,t+2/3,n+1,0,t,n,0,t+2/3,n+1,0,t,n+1,0];v.set(i,f*p*e),b.set(d,m*p*e);const r=[e,e,e,e,e,e];y.set(r,g*p*e)}const _=new Zi;_.setAttribute("position",new yi(v,f)),_.setAttribute("uv",new yi(b,m)),_.setAttribute("faceIndex",new yi(y,g)),t.push(_),r>4&&r--}return{lodPlanes:t,sizeLods:n,sigmas:i}}function yb(e,t,n){const i=new ji(e,t,n);return i.texture.mapping=xf,i.texture.name="PMREM.cubeUv",i.scissorTest=!0,i}function Ku(e,t,n,i,r){e.viewport.set(t,n,i,r),e.scissor.set(t,n,i,r)}function sO(e,t,n){const i=new Float32Array(20),r=new k(0,1,0);return new Qi({name:"SphericalGaussianBlur",defines:{n:20,CUBEUV_TEXEL_WIDTH:1/t,CUBEUV_TEXEL_HEIGHT:1/n,CUBEUV_MAX_MIP:`${e}.0`},uniforms:{envMap:{value:null},samples:{value:1},weights:{value:i},latitudinal:{value:!1},dTheta:{value:0},mipInt:{value:0},poleAxis:{value:r}},vertexShader:Mv(),fragmentShader:"\n\n\t\t\tprecision mediump float;\n\t\t\tprecision mediump int;\n\n\t\t\tvarying vec3 vOutputDirection;\n\n\t\t\tuniform sampler2D envMap;\n\t\t\tuniform int samples;\n\t\t\tuniform float weights[ n ];\n\t\t\tuniform bool latitudinal;\n\t\t\tuniform float dTheta;\n\t\t\tuniform float mipInt;\n\t\t\tuniform vec3 poleAxis;\n\n\t\t\t#define ENVMAP_TYPE_CUBE_UV\n\t\t\t#include <cube_uv_reflection_fragment>\n\n\t\t\tvec3 getSample( float theta, vec3 axis ) {\n\n\t\t\t\tfloat cosTheta = cos( theta );\n\t\t\t\t// Rodrigues' axis-angle rotation\n\t\t\t\tvec3 sampleDirection = vOutputDirection * cosTheta\n\t\t\t\t\t+ cross( axis, vOutputDirection ) * sin( theta )\n\t\t\t\t\t+ axis * dot( axis, vOutputDirection ) * ( 1.0 - cosTheta );\n\n\t\t\t\treturn bilinearCubeUV( envMap, sampleDirection, mipInt );\n\n\t\t\t}\n\n\t\t\tvoid main() {\n\n\t\t\t\tvec3 axis = latitudinal ? poleAxis : cross( poleAxis, vOutputDirection );\n\n\t\t\t\tif ( all( equal( axis, vec3( 0.0 ) ) ) ) {\n\n\t\t\t\t\taxis = vec3( vOutputDirection.z, 0.0, - vOutputDirection.x );\n\n\t\t\t\t}\n\n\t\t\t\taxis = normalize( axis );\n\n\t\t\t\tgl_FragColor = vec4( 0.0, 0.0, 0.0, 1.0 );\n\t\t\t\tgl_FragColor.rgb += weights[ 0 ] * getSample( 0.0, axis );\n\n\t\t\t\tfor ( int i = 1; i < n; i++ ) {\n\n\t\t\t\t\tif ( i >= samples ) {\n\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t}\n\n\t\t\t\t\tfloat theta = dTheta * float( i );\n\t\t\t\t\tgl_FragColor.rgb += weights[ i ] * getSample( -1.0 * theta, axis );\n\t\t\t\t\tgl_FragColor.rgb += weights[ i ] * getSample( theta, axis );\n\n\t\t\t\t}\n\n\t\t\t}\n\t\t",blending:0,depthTest:!1,depthWrite:!1})}function xb(){return new Qi({name:"EquirectangularToCubeUV",uniforms:{envMap:{value:null}},vertexShader:Mv(),fragmentShader:"\n\n\t\t\tprecision mediump float;\n\t\t\tprecision mediump int;\n\n\t\t\tvarying vec3 vOutputDirection;\n\n\t\t\tuniform sampler2D envMap;\n\n\t\t\t#include <common>\n\n\t\t\tvoid main() {\n\n\t\t\t\tvec3 outputDirection = normalize( vOutputDirection );\n\t\t\t\tvec2 uv = equirectUv( outputDirection );
13\n\n\t\t\t\tgl_FragColor = vec4( texture2D ( envMap, uv ).rgb, 1.0 );\n\n\t\t\t}\n\t\t",blending:0,depthTest:!1,depthWrite:!1})}function Sb(){return new Qi({name:"CubemapToCubeUV",uniforms:{envMap:{value:null},flipEnvMap:{value:-1}},vertexShader:Mv(),fragmentShader:"\n\n\t\t\tprecision mediump float;\n\t\t\tprecision mediump int;\n\n\t\t\tuniform float flipEnvMap;\n\n\t\t\tvarying vec3 vOutputDirection;\n\n\t\t\tuniform samplerCube envMap;\n\n\t\t\tvoid main() {\n\n\t\t\t\tgl_FragColor = textureCube( envMap, vec3( flipEnvMap * vOutputDirection.x, vOutputDirection.yz ) );\n\n\t\t\t}\n\t\t",blending:0,depthTest:!1,depthWrite:!1})}function Mv(){return"\n\n\t\tprecision mediump float;\n\t\tprecision mediump int;\n\n\t\tattribute float faceIndex;\n\n\t\tvarying vec3 vOutputDirection;\n\n\t\t// RH coordinate system; PMREM face-indexing convention\n\t\tvec3 getDirection( vec2 uv, float face ) {\n\n\t\t\tuv = 2.0 * uv - 1.0;\n\n\t\t\tvec3 direction = vec3( uv, 1.0 );\n\n\t\t\tif ( face == 0.0 ) {\n\n\t\t\t\tdirection = direction.zyx; // ( 1, v, u ) pos x\n\n\t\t\t} else if ( face == 1.0 ) {\n\n\t\t\t\tdirection = direction.xzy;\n\t\t\t\tdirection.xz *= -1.0; // ( -u, 1, -v ) pos y\n\n\t\t\t} else if ( face == 2.0 ) {\n\n\t\t\t\tdirection.x *= -1.0; // ( -u, v, 1 ) pos z\n\n\t\t\t} else if ( face == 3.0 ) {\n\n\t\t\t\tdirection = direction.zyx;\n\t\t\t\tdirection.xz *= -1.0; // ( -1, v, -u ) neg x\n\n\t\t\t} else if ( face == 4.0 ) {\n\n\t\t\t\tdirection = direction.xzy;\n\t\t\t\tdirection.xy *= -1.0; // ( -u, -1, v ) neg y\n\n\t\t\t} else if ( face == 5.0 ) {\n\n\t\t\t\tdirection.z *= -1.0; // ( u, v, -1 ) neg z\n\n\t\t\t}\n\n\t\t\treturn direction;\n\n\t\t}\n\n\t\tvoid main() {\n\n\t\t\tvOutputDirection = getDirection( uv, faceIndex );\n\t\t\tgl_Position = vec4( position, 1.0 );\n\n\t\t}\n\t"}function aO(e){let t=new WeakMap,n=null;function i(e){const n=e.target;n.removeEventListener("dispose",i);const r=t.get(n);void 0!==r&&(t.delete(n),r.dispose())}return{get:function(r){if(r&&r.isTexture){const o=r.mapping,s=o===wp||o===Mp,a=o===va||o===ga;if(s||a){let o=t.get(r);const l=void 0!==o?o.texture.pmremVersion:0;if(r.isRenderTargetTexture&&r.pmremVersion!==l)return null===n&&(n=new nm(e)),o=s?n.fromEquirectangular(r,o):n.fromCubemap(r,o),o.texture.pmremVersion=r.pmremVersion,t.set(r,o),o.texture;if(void 0!==o)return o.texture;{const l=r.image;return s&&l&&l.height>0||a&&l&&function(e){let t=0;const n=6;for(let i=0;i<n;i++)void 0!==e[i]&&t++;return t===n}(l)?(null===n&&(n=new nm(e)),o=s?n.fromEquirectangular(r):n.fromCubemap(r),o.texture.pmremVersion=r.pmremVersion,t.set(r,o),r.addEventListener("dispose",i),o.texture):null}}}return r},dispose:function(){t=new WeakMap,null!==n&&(n.dispose(),n=null)}}}function lO(e){const t={};
vendor: 5,838 bytes, line 13
13function n(n){if(void 0!==t[n])return t[n];let i;switch(n){case"WEBGL_depth_texture":i=e.getExtension("WEBGL_depth_texture")||e.getExtension("MOZ_WEBGL_depth_texture")||e.getExtension("WEBKIT_WEBGL_depth_texture");break;case"EXT_texture_filter_anisotropic":i=e.getExtension("EXT_texture_filter_anisotropic")||e.getExtension("MOZ_EXT_texture_filter_anisotropic")||e.getExtension("WEBKIT_EXT_texture_filter_anisotropic");break;case"WEBGL_compressed_texture_s3tc":i=e.getExtension("WEBGL_compressed_texture_s3tc")||e.getExtension("MOZ_WEBGL_compressed_texture_s3tc")||e.getExtension("WEBKIT_WEBGL_compressed_texture_s3tc");break;case"WEBGL_compressed_texture_pvrtc":i=e.getExtension("WEBGL_compressed_texture_pvrtc")||e.getExtension("WEBKIT_WEBGL_compressed_texture_pvrtc");break;default:i=e.getExtension(n)}return t[n]=i,i}return{has:function(e){return null!==n(e)},init:function(){n("EXT_color_buffer_float"),n("WEBGL_clip_cull_distance"),n("OES_texture_float_linear"),n("EXT_color_buffer_half_float"),n("WEBGL_multisampled_render_to_texture"),n("WEBGL_render_shared_exponent")},get:function(e){const t=n(e);return null===t&&Il("THREE.WebGLRenderer: "+e+" extension not supported."),t}}}function cO(e,t,n,i){const r={},o=new WeakMap;function s(e){const a=e.target;null!==a.index&&t.remove(a.index);for(const e in a.attributes)t.remove(a.attributes[e]);a.removeEventListener("dispose",s),delete r[a.id];const l=o.get(a);l&&(t.remove(l),o.delete(a)),i.releaseStatesOfGeometry(a),!0===a.isInstancedBufferGeometry&&delete a._maxInstanceCount,n.memory.geometries--}function a(e){const n=[],i=e.index,r=e.attributes.position;let s=0;if(null!==i){const e=i.array;s=i.version;for(let t=0,i=e.length;t<i;t+=3){const i=e[t+0],r=e[t+1],o=e[t+2];n.push(i,r,r,o,o,i)}}else{if(void 0===r)return;{const e=r.array;s=r.version;for(let t=0,i=e.length/3-1;t<i;t+=3){const e=t+0,i=t+1,r=t+2;n.push(e,i,i,r,r,e)}}}const a=new(g1(n)?E1:S1)(n,1);a.version=s;const l=o.get(e);l&&t.remove(l),o.set(e,a)}return{get:function(e,t){return!0===r[t.id]||(t.addEventListener("dispose",s),r[t.id]=!0,n.memory.geometries++),t},update:function(n){const i=n.attributes;for(const n in i)t.update(i[n],e.ARRAY_BUFFER)},getWireframeAttribute:function(e){const t=o.get(e);if(t){const n=e.index;null!==n&&t.version<n.version&&a(e)}else a(e);return o.get(e)}}}function uO(e,t,n){let i,r,o;function s(t,s,a){0!==a&&(e.drawElementsInstanced(i,s,r,t*o,a),n.update(s,i,a))}this.setMode=function(e){i=e},this.setIndex=function(e){r=e.type,o=e.bytesPerElement},this.render=function(t,s){e.drawElements(i,s,r,t*o),n.update(s,i,1)},this.renderInstances=s,this.renderMultiDraw=function(e,o,s){if(0===s)return;t.get("WEBGL_multi_draw").multiDrawElementsWEBGL(i,o,0,r,e,0,s);let a=0;for(let e=0;e<s;e++)a+=o[e];n.update(a,i,1)},this.renderMultiDrawInstances=function(e,a,l,c){if(0===l)return;const u=t.get("WEBGL_multi_draw");if(null===u)for(let t=0;t<e.length;t++)s(e[t]/o,a[t],c[t]);else{u.multiDrawElementsInstancedWEBGL(i,a,0,r,e,0,c,0,l);let t=0;for(let e=0;e<l;e++)t+=a[e]*c[e];n.update(t,i,1)}}}function dO(e){const t={frame:0,calls:0,triangles:0,points:0,lines:0};return{memory:{geometries:0,textures:0},render:t,programs:null,autoReset:!0,reset:function(){t.calls=0,t.triangles=0,t.points=0,t.lines=0},update:function(n,i,r){switch(t.calls++,i){case e.TRIANGLES:t.triangles+=r*(n/3);break;case e.LINES:t.lines+=r*(n/2);break;case e.LINE_STRIP:t.lines+=r*(n-1);break;case e.LINE_LOOP:t.lines+=r*n;break;case e.POINTS:t.points+=r*n;break;default:console.error("THREE.WebGLInfo: Unknown draw mode:",i)}}}}function fO(e,t,n){const i=new WeakMap,r=new Qt;return{update:function(o,s,a){const l=o.morphTargetInfluences,c=s.morphAttributes.position||s.morphAttributes.normal||s.morphAttributes.color,u=void 0!==c?c.length:0;let d=i.get(s);if(void 0===d||d.count!==u){let e=function(){v.dispose(),i.delete(s),s.removeEventListener("dispose",e)};void 0!==d&&d.texture.dispose();const n=void 0!==s.morphAttributes.position,o=void 0!==s.morphAttributes.normal,a=void 0!==s.morphAttributes.color,l=s.morphAttributes.position||[],c=s.morphAttributes.normal||[],h=s.morphAttributes.color||[];let p=0;!0===n&&(p=1),!0===o&&(p=2),!0===a&&(p=3);let f=s.attributes.position.count*p,m=1;f>t.maxTextureSize&&(m=Math.ceil(f/t.maxTextureSize),f=t.maxTextureSize);const g=new Float32Array(f*m*4*u),v=new b1(g,f,m,u);v.type=Fr,v.needsUpdate=!0;const b=4*p;for(let e=0;e<u;e++){const t=l[e],i=c[e],s=h[e],u=f*m*4*e;for(let e=0;e<t.count;e++){const l=e*b;!0===n&&(r.fromBufferAttribute(t,e),g[u+l+0]=r.x,g[u+l+1]=r.y,g[u+l+2]=r.z,g[u+l+3]=0),!0===o&&(r.fromBufferAttribute(i,e),g[u+l+4]=r.x,g[u+l+5]=r.y,g[u+l+6]=r.z,g[u+l+7]=0),!0===a&&(r.fromBufferAttribute(s,e),g[u+l+8]=r.x,g[u+l+9]=r.y,g[u+l+10]=r.z,g[u+l+11]=4===s.itemSize?r.w:1)}}d={count:u,texture:v,size:new tt(f,m)},i.set(s,d),s.addEventListener("dispose",e)}if(!0===o.isInstancedMesh&&null!==o.morphTexture)a.getUniforms().setValue(e,"morphTexture",o.morphTexture,n);else{let t=0;for(let e=0;e<l.length;e++)t+=l[e];const n=s.morphTargetsRelative?1:1-t;a.getUniforms().setValue(e,"morphTargetBaseInfluence",n),a.getUniforms().setValue(e,"morphTargetInfluences",l)}a.getUniforms().setValue(e,"morphTargetsTexture",d.texture,n),a.getUniforms().setValue(e,"morphTargetsTextureSize",d.size)}}}function hO(e,t,n,i){let r=new WeakMap;function o(e){const t=e.target;t.removeEventListener("dispose",o),n.remove(t.instanceMatrix),null!==t.instanceColor&&n.remove(t.instanceColor)}return{update:function(s){const a=i.render.frame,l=s.geometry,c=t.get(s,l);if(r.get(c)!==a&&(t.update(c),r.set(c,a)),s.isInstancedMesh&&(!1===s.hasEventListener("dispose",o)&&s.addEventListener("dispose",o),r.get(s)!==a&&(n.update(s.instanceMatrix,e.ARRAY_BUFFER),null!==s.instanceColor&&n.update(s.instanceColor,e.ARRAY_BUFFER),r.set(s,a))),s.isSkinnedMesh){const e=s.skeleton;
vendor: 6,522 bytes, line 13
13r.get(e)!==a&&(e.update(),r.set(e,a))}return c},dispose:function(){r=new WeakMap}}}const D1=new Un,Eb=new Sv(1,1),I1=new b1,N1=new ED,O1=new M1,wb=[],Mb=[],Tb=new Float32Array(16),Ab=new Float32Array(9),Cb=new Float32Array(4);function Oa(e,t,n){const i=e[0];if(i<=0||i>0)return e;const r=t*n;let o=wb[r];if(void 0===o&&(o=new Float32Array(r),wb[r]=o),0!==t){i.toArray(o,0);for(let i=1,r=0;i!==t;++i)r+=n,e[i].toArray(o,r)}return o}function Mn(e,t){if(e.length!==t.length)return!1;for(let n=0,i=e.length;n<i;n++)if(e[n]!==t[n])return!1;return!0}function Tn(e,t){for(let n=0,i=t.length;n<i;n++)e[n]=t[n]}function wf(e,t){let n=Mb[t];void 0===n&&(n=new Int32Array(t),Mb[t]=n);for(let i=0;i!==t;++i)n[i]=e.allocateTextureUnit();return n}function pO(e,t){const n=this.cache;n[0]!==t&&(e.uniform1f(this.addr,t),n[0]=t)}function mO(e,t){const n=this.cache;if(void 0!==t.x)(n[0]!==t.x||n[1]!==t.y)&&(e.uniform2f(this.addr,t.x,t.y),n[0]=t.x,n[1]=t.y);else{if(Mn(n,t))return;e.uniform2fv(this.addr,t),Tn(n,t)}}function vO(e,t){const n=this.cache;if(void 0!==t.x)(n[0]!==t.x||n[1]!==t.y||n[2]!==t.z)&&(e.uniform3f(this.addr,t.x,t.y,t.z),n[0]=t.x,n[1]=t.y,n[2]=t.z);else if(void 0!==t.r)(n[0]!==t.r||n[1]!==t.g||n[2]!==t.b)&&(e.uniform3f(this.addr,t.r,t.g,t.b),n[0]=t.r,n[1]=t.g,n[2]=t.b);else{if(Mn(n,t))return;e.uniform3fv(this.addr,t),Tn(n,t)}}function gO(e,t){const n=this.cache;if(void 0!==t.x)(n[0]!==t.x||n[1]!==t.y||n[2]!==t.z||n[3]!==t.w)&&(e.uniform4f(this.addr,t.x,t.y,t.z,t.w),n[0]=t.x,n[1]=t.y,n[2]=t.z,n[3]=t.w);else{if(Mn(n,t))return;e.uniform4fv(this.addr,t),Tn(n,t)}}function bO(e,t){const n=this.cache,i=t.elements;if(void 0===i){if(Mn(n,t))return;e.uniformMatrix2fv(this.addr,!1,t),Tn(n,t)}else{if(Mn(n,i))return;Cb.set(i),e.uniformMatrix2fv(this.addr,!1,Cb),Tn(n,i)}}function _O(e,t){const n=this.cache,i=t.elements;if(void 0===i){if(Mn(n,t))return;e.uniformMatrix3fv(this.addr,!1,t),Tn(n,t)}else{if(Mn(n,i))return;Ab.set(i),e.uniformMatrix3fv(this.addr,!1,Ab),Tn(n,i)}}function yO(e,t){const n=this.cache,i=t.elements;if(void 0===i){if(Mn(n,t))return;e.uniformMatrix4fv(this.addr,!1,t),Tn(n,t)}else{if(Mn(n,i))return;Tb.set(i),e.uniformMatrix4fv(this.addr,!1,Tb),Tn(n,i)}}function xO(e,t){const n=this.cache;n[0]!==t&&(e.uniform1i(this.addr,t),n[0]=t)}function SO(e,t){const n=this.cache;if(void 0!==t.x)(n[0]!==t.x||n[1]!==t.y)&&(e.uniform2i(this.addr,t.x,t.y),n[0]=t.x,n[1]=t.y);else{if(Mn(n,t))return;e.uniform2iv(this.addr,t),Tn(n,t)}}function EO(e,t){const n=this.cache;if(void 0!==t.x)(n[0]!==t.x||n[1]!==t.y||n[2]!==t.z)&&(e.uniform3i(this.addr,t.x,t.y,t.z),n[0]=t.x,n[1]=t.y,n[2]=t.z);else{if(Mn(n,t))return;e.uniform3iv(this.addr,t),Tn(n,t)}}function wO(e,t){const n=this.cache;if(void 0!==t.x)(n[0]!==t.x||n[1]!==t.y||n[2]!==t.z||n[3]!==t.w)&&(e.uniform4i(this.addr,t.x,t.y,t.z,t.w),n[0]=t.x,n[1]=t.y,n[2]=t.z,n[3]=t.w);else{if(Mn(n,t))return;e.uniform4iv(this.addr,t),Tn(n,t)}}function MO(e,t){const n=this.cache;n[0]!==t&&(e.uniform1ui(this.addr,t),n[0]=t)}function TO(e,t){const n=this.cache;if(void 0!==t.x)(n[0]!==t.x||n[1]!==t.y)&&(e.uniform2ui(this.addr,t.x,t.y),n[0]=t.x,n[1]=t.y);else{if(Mn(n,t))return;e.uniform2uiv(this.addr,t),Tn(n,t)}}function AO(e,t){const n=this.cache;if(void 0!==t.x)(n[0]!==t.x||n[1]!==t.y||n[2]!==t.z)&&(e.uniform3ui(this.addr,t.x,t.y,t.z),n[0]=t.x,n[1]=t.y,n[2]=t.z);else{if(Mn(n,t))return;e.uniform3uiv(this.addr,t),Tn(n,t)}}function CO(e,t){const n=this.cache;if(void 0!==t.x)(n[0]!==t.x||n[1]!==t.y||n[2]!==t.z||n[3]!==t.w)&&(e.uniform4ui(this.addr,t.x,t.y,t.z,t.w),n[0]=t.x,n[1]=t.y,n[2]=t.z,n[3]=t.w);else{if(Mn(n,t))return;e.uniform4uiv(this.addr,t),Tn(n,t)}}function PO(e,t,n){const i=this.cache,r=n.allocateTextureUnit();let o;i[0]!==r&&(e.uniform1i(this.addr,r),i[0]=r),this.type===e.SAMPLER_2D_SHADOW?(Eb.compareFunction=v1,o=Eb):o=D1,n.setTexture2D(t||o,r)}function RO(e,t,n){const i=this.cache,r=n.allocateTextureUnit();i[0]!==r&&(e.uniform1i(this.addr,r),i[0]=r),n.setTexture3D(t||N1,r)}function LO(e,t,n){const i=this.cache,r=n.allocateTextureUnit();i[0]!==r&&(e.uniform1i(this.addr,r),i[0]=r),n.setTextureCube(t||O1,r)}function DO(e,t,n){const i=this.cache,r=n.allocateTextureUnit();i[0]!==r&&(e.uniform1i(this.addr,r),i[0]=r),n.setTexture2DArray(t||I1,r)}function IO(e){switch(e){case 5126:return pO;case 35664:return mO;case 35665:return vO;case 35666:return gO;case 35674:return bO;case 35675:return _O;case 35676:return yO;case 5124:case 35670:return xO;case 35667:case 35671:return SO;case 35668:case 35672:return EO;case 35669:case 35673:return wO;case 5125:return MO;case 36294:return TO;case 36295:return AO;case 36296:return CO;case 35678:case 36198:case 36298:case 36306:case 35682:return PO;case 35679:case 36299:case 36307:return RO;case 35680:case 36300:case 36308:case 36293:return LO;case 36289:case 36303:case 36311:case 36292:return DO}}function NO(e,t){e.uniform1fv(this.addr,t)}function OO(e,t){const n=Oa(t,this.size,2);e.uniform2fv(this.addr,n)}function UO(e,t){const n=Oa(t,this.size,3);e.uniform3fv(this.addr,n)}function FO(e,t){const n=Oa(t,this.size,4);e.uniform4fv(this.addr,n)}function BO(e,t){const n=Oa(t,this.size,4);e.uniformMatrix2fv(this.addr,!1,n)}function kO(e,t){const n=Oa(t,this.size,9);e.uniformMatrix3fv(this.addr,!1,n)}function zO(e,t){const n=Oa(t,this.size,16);e.uniformMatrix4fv(this.addr,!1,n)}function HO(e,t){e.uniform1iv(this.addr,t)}function VO(e,t){e.uniform2iv(this.addr,t)}function $O(e,t){e.uniform3iv(this.addr,t)}function GO(e,t){e.uniform4iv(this.addr,t)}function WO(e,t){e.uniform1uiv(this.addr,t)}function XO(e,t){e.uniform2uiv(this.addr,t)}function qO(e,t){e.uniform3uiv(this.addr,t)}function YO(e,t){e.uniform4uiv(this.addr,t)}function jO(e,t,n){const i=this.cache,r=t.length,o=wf(n,r);Mn(i,o)||(e.uniform1iv(this.addr,o),Tn(i,o));for(let e=0;e!==r;++e)n.setTexture2D(t[e]||D1,o[e])}function KO(e,t,n){const i=this.cache,r=t.length,o=wf(n,r);Mn(i,o)||(e.uniform1iv(this.addr,o),Tn(i,o));for(let e=0;e!==r;++e)n.setTexture3D(t[e]||N1,o[e])}function QO(e,t,n){const i=this.cache,r=t.length,o=wf(n,r);Mn(i,o)||(e.uniform1iv(this.addr,o),Tn(i,o));for(let e=0;e!==r;++e)n.setTextureCube(t[e]||O1,o[e])}function ZO(e,t,n){const i=this.cache,r=t.length,o=wf(n,r);Mn(i,o)||(e.uniform1iv(this.addr,o),Tn(i,o));for(let e=0;e!==r;++e)n.setTexture2DArray(t[e]||I1,o[e])}function JO(e){switch(e){case 5126:return NO;case 35664:return OO;case 35665:return UO;case 35666:return FO;case 35674:return BO;case 35675:return kO;case 35676:return zO;case 5124:case 35670:return HO;case 35667:case 35671:return VO;
vendor: 2,118 bytes, line 13
13case 35668:case 35672:return $O;case 35669:case 35673:return GO;case 5125:return WO;case 36294:return XO;case 36295:return qO;case 36296:return YO;case 35678:case 36198:case 36298:case 36306:case 35682:return jO;case 35679:case 36299:case 36307:return KO;case 35680:case 36300:case 36308:case 36293:return QO;case 36289:case 36303:case 36311:case 36292:return ZO}}class e5{constructor(e,t,n){this.id=e,this.addr=n,this.cache=[],this.type=t.type,this.setValue=IO(t.type)}}class t5{constructor(e,t,n){this.id=e,this.addr=n,this.cache=[],this.type=t.type,this.size=t.size,this.setValue=JO(t.type)}}class n5{constructor(e){this.id=e,this.seq=[],this.map={}}setValue(e,t,n){const i=this.seq;for(let r=0,o=i.length;r!==o;++r){const o=i[r];o.setValue(e,t[o.id],n)}}}const Ph=/(\w+)(\])?(\[|\.)?/g;function Pb(e,t){e.seq.push(t),e.map[t.id]=t}function i5(e,t,n){const i=e.name,r=i.length;for(Ph.lastIndex=0;;){const o=Ph.exec(i),s=Ph.lastIndex;let a=o[1];const l="]"===o[2],c=o[3];if(l&&(a|=0),void 0===c||"["===c&&s+2===r){Pb(n,void 0===c?new e5(a,e,t):new t5(a,e,t));break}{let e=n.map[a];void 0===e&&(e=new n5(a),Pb(n,e)),n=e}}}class pd{constructor(e,t){this.seq=[],this.map={};const n=e.getProgramParameter(t,e.ACTIVE_UNIFORMS);for(let i=0;i<n;++i){const n=e.getActiveUniform(t,i);i5(n,e.getUniformLocation(t,n.name),this)}}setValue(e,t,n,i){const r=this.map[t];void 0!==r&&r.setValue(e,n,i)}setOptional(e,t,n){const i=t[n];void 0!==i&&this.setValue(e,n,i)}static upload(e,t,n,i){for(let r=0,o=t.length;r!==o;++r){const o=t[r],s=n[o.id];!1!==s.needsUpdate&&o.setValue(e,s.value,i)}}static seqWithValue(e,t){const n=[];for(let i=0,r=e.length;i!==r;++i){const r=e[i];r.id in t&&n.push(r)}return n}}function Rb(e,t,n){const i=e.createShader(t);return e.shaderSource(i,n),e.compileShader(i),i}const r5=37297;let o5=0;function s5(e,t){const n=e.split("\n"),i=[],r=Math.max(t-6,0),o=Math.min(t+6,n.length);for(let e=r;e<o;e++){const r=e+1;i.push(`${r===t?">":" "} ${r}: ${n[e]}`)}return i.join("\n")}const Lb=new Ct;function a5(e){Ht._getMatrix(Lb,Ht.workingColorSpace,e);const t=`mat3( ${Lb.elements.map((e=>e.toFixed(4)))} )`;
13switch(Ht.getTransfer(e)){case Od:return[t,"LinearTransferOETF"];case jt:return[t,"sRGBTransferOETF"];default:return console.warn("THREE.WebGLProgram: Unsupported color space: ",e),[t,"LinearTransferOETF"]}}function Db(e,t,n){const i=e.getShaderParameter(t,e.COMPILE_STATUS),r=(e.getShaderInfoLog(t)||"").trim();if(i&&""===r)return"";const o=/ERROR: 0:(\d+)/.exec(r);if(o){const i=parseInt(o[1]);return n.toUpperCase()+"\n\n"+r+"\n\n"+s5(e.getShaderSource(t),i)}return r}function l5(e,t){const n=a5(t);return[`vec4 ${e}( vec4 value ) {`,`\treturn ${n[1]}( vec4( value.rgb * ${n[0]}, value.a ) );`,"}"].join("\n")}function c5(e,t){let n;switch(t){case 1:n="Linear";break;case 2:n="Reinhard";break;case 3:n="Cineon";break;case 4:n="ACESFilmic";break;case 6:n="AgX";break;case 7:n="Neutral";break;case 5:n="Custom";break;default:console.warn("THREE.WebGLProgram: Unsupported toneMapping:",t),n="Linear"}return"vec3 "+e+"( vec3 color ) { return "+n+"ToneMapping( color ); }"}const Qu=new k;function u5(){Ht.getLuminanceCoefficients(Qu);return["float luminance( const in vec3 rgb ) {",`\tconst vec3 weights = vec3( ${Qu.x.toFixed(4)}, ${Qu.y.toFixed(4)}, ${Qu.z.toFixed(4)} );`,"\treturn dot( weights, rgb );","}"].join("\n")}function d5(e){return[e.extensionClipCullDistance?"#extension GL_ANGLE_clip_cull_distance : require":"",e.extensionMultiDraw?"#extension GL_ANGLE_multi_draw : require":""].filter(nl).join("\n")}function f5(e){const t=[];for(const n in e){const i=e[n];!1!==i&&t.push("#define "+n+" "+i)}return t.join("\n")}function h5(e,t){const n={},i=e.getProgramParameter(t,e.ACTIVE_ATTRIBUTES);for(let r=0;r<i;r++){const i=e.getActiveAttrib(t,r),o=i.name;let s=1;i.type===e.FLOAT_MAT2&&(s=2),i.type===e.FLOAT_MAT3&&(s=3),i.type===e.FLOAT_MAT4&&(s=4),n[o]={type:i.type,location:e.getAttribLocation(t,o),locationSize:s}}return n}function nl(e){return""!==e}function Ib(e,t){const n=t.numSpotLightShadows+t.numSpotLightMaps-t.numSpotLightShadowsWithMaps;return e.replace(/NUM_DIR_LIGHTS/g,t.numDirLights).replace(/NUM_SPOT_LIGHTS/g,t.numSpotLights).replace(/NUM_SPOT_LIGHT_MAPS/g,t.numSpotLightMaps).replace(/NUM_SPOT_LIGHT_COORDS/g,n).replace(/NUM_RECT_AREA_LIGHTS/g,t.numRectAreaLights).replace(/NUM_POINT_LIGHTS/g,t.numPointLights).replace(/NUM_HEMI_LIGHTS/g,t.numHemiLights).replace(/NUM_DIR_LIGHT_SHADOWS/g,t.numDirLightShadows).replace(/NUM_SPOT_LIGHT_SHADOWS_WITH_MAPS/g,t.numSpotLightShadowsWithMaps).replace(/NUM_SPOT_LIGHT_SHADOWS/g,t.numSpotLightShadows).replace(/NUM_POINT_LIGHT_SHADOWS/g,t.numPointLightShadows)}function Nb(e,t){return e.replace(/NUM_CLIPPING_PLANES/g,t.numClippingPlanes).replace(/UNION_CLIPPING_PLANES/g,t.numClippingPlanes-t.numClipIntersection)}const p5=/^[ \t]*#include +<([\w\d./]+)>/gm;function im(e){return e.replace(p5,v5)}const m5=new Map;function v5(e,t){let n=Rt[t];if(void 0===n){const e=m5.get(t);if(void 0===e)throw new Error("Can not resolve #include <"+t+">");n=Rt[e],console.warn('THREE.WebGLRenderer: Shader chunk "%s" has been deprecated. Use "%s" instead.',t,e)}return im(n)}const g5=/#pragma unroll_loop_start\s+for\s*\(\s*int\s+i\s*=\s*(\d+)\s*;\s*i\s*<\s*(\d+)\s*;\s*i\s*\+\+\s*\)\s*{([\s\S]+?)}\s+#pragma unroll_loop_end/g;function Ob(e){return e.replace(g5,b5)}function b5(e,t,n,i){let r="";for(let e=parseInt(t);e<parseInt(n);e++)r+=i.replace(/\[\s*i\s*\]/g,"[ "+e+" ]").replace(/UNROLLED_LOOP_INDEX/g,e);return r}function Ub(e){let t=`precision ${e.precision} float;\n\tprecision ${e.precision} int;\n\tprecision ${e.precision} sampler2D;\n\tprecision ${e.precision} samplerCube;\n\tprecision ${e.precision} sampler3D;\n\tprecision ${e.precision} sampler2DArray;\n\tprecision ${e.precision} sampler2DShadow;\n\tprecision ${e.precision} samplerCubeShadow;\n\tprecision ${e.precision} sampler2DArrayShadow;\n\tprecision ${e.precision} isampler2D;\n\tprecision ${e.precision} isampler3D;\n\tprecision ${e.precision} isamplerCube;\n\tprecision ${e.precision} isampler2DArray;\n\tprecision ${e.precision} usampler2D;\n\tprecision ${e.precision} usampler3D;\n\tprecision ${e.precision} usamplerCube;\n\tprecision ${e.precision} usampler2DArray;\n\t`;return"highp"===e.precision?t+="\n#define HIGH_PRECISION":"mediump"===e.precision?t+="\n#define MEDIUM_PRECISION":"lowp"===e.precision&&(t+="\n#define LOW_PRECISION"),t}function _5(e){let t="SHADOWMAP_TYPE_BASIC";return 1===e.shadowMapType?t="SHADOWMAP_TYPE_PCF":2===e.shadowMapType?t="SHADOWMAP_TYPE_PCF_SOFT":3===e.shadowMapType&&(t="SHADOWMAP_TYPE_VSM"),t}function y5(e){let t="ENVMAP_TYPE_CUBE";if(e.envMap)switch(e.envMapMode){case va:case ga:t="ENVMAP_TYPE_CUBE";break;case xf:t="ENVMAP_TYPE_CUBE_UV"}return t}function x5(e){let t="ENVMAP_MODE_REFLECTION";if(e.envMap&&e.envMapMode===ga)t="ENVMAP_MODE_REFRACTION";return t}function S5(e){let t="ENVMAP_BLENDING_NONE";if(e.envMap)switch(e.combine){case 0:t="ENVMAP_BLENDING_MULTIPLY";break;case 1:t="ENVMAP_BLENDING_MIX";break;case 2:t="ENVMAP_BLENDING_ADD"}return t}function E5(e){const t=e.envMapCubeUVHeight;if(null===t)return null;const n=Math.log2(t)-2,i=1/t;return{texelWidth:1/(3*Math.max(Math.pow(2,n),112)),texelHeight:i,maxMip:n}}function w5(e,t,n,i){const r=e.getContext(),o=n.defines;let s=n.vertexShader,a=n.fragmentShader;const l=_5(n),c=y5(n),u=x5(n),d=S5(n),h=E5(n),p=d5(n),f=f5(o),m=r.createProgram();let g,v,b=n.glslVersion?"#version "+n.glslVersion+"\n":"";n.isRawShaderMaterial?(g=["#define SHADER_TYPE "+n.shaderType,"#define SHADER_NAME "+n.shaderName,f].filter(nl).join("\n"),g.length>0&&(g+="\n"),v=["#define SHADER_TYPE "+n.shaderType,"#define SHADER_NAME "+n.shaderName,f].filter(nl).join("\n"),v.length>0&&(v+="\n")):(g=[Ub(n),"#define SHADER_TYPE "+n.shaderType,"#define SHADER_NAME "+n.shaderName,f,n.extensionCl
vendor: 5,458 bytes, line 13
13ipCullDistance?"#define USE_CLIP_DISTANCE":"",n.batching?"#define USE_BATCHING":"",n.batchingColor?"#define USE_BATCHING_COLOR":"",n.instancing?"#define USE_INSTANCING":"",n.instancingColor?"#define USE_INSTANCING_COLOR":"",n.instancingMorph?"#define USE_INSTANCING_MORPH":"",n.useFog&&n.fog?"#define USE_FOG":"",n.useFog&&n.fogExp2?"#define FOG_EXP2":"",n.map?"#define USE_MAP":"",n.envMap?"#define USE_ENVMAP":"",n.envMap?"#define "+u:"",n.lightMap?"#define USE_LIGHTMAP":"",n.aoMap?"#define USE_AOMAP":"",n.bumpMap?"#define USE_BUMPMAP":"",n.normalMap?"#define USE_NORMALMAP":"",n.normalMapObjectSpace?"#define USE_NORMALMAP_OBJECTSPACE":"",n.normalMapTangentSpace?"#define USE_NORMALMAP_TANGENTSPACE":"",n.displacementMap?"#define USE_DISPLACEMENTMAP":"",n.emissiveMap?"#define USE_EMISSIVEMAP":"",n.anisotropy?"#define USE_ANISOTROPY":"",n.anisotropyMap?"#define USE_ANISOTROPYMAP":"",n.clearcoatMap?"#define USE_CLEARCOATMAP":"",n.clearcoatRoughnessMap?"#define USE_CLEARCOAT_ROUGHNESSMAP":"",n.clearcoatNormalMap?"#define USE_CLEARCOAT_NORMALMAP":"",n.iridescenceMap?"#define USE_IRIDESCENCEMAP":"",n.iridescenceThicknessMap?"#define USE_IRIDESCENCE_THICKNESSMAP":"",n.specularMap?"#define USE_SPECULARMAP":"",n.specularColorMap?"#define USE_SPECULAR_COLORMAP":"",n.specularIntensityMap?"#define USE_SPECULAR_INTENSITYMAP":"",n.roughnessMap?"#define USE_ROUGHNESSMAP":"",n.metalnessMap?"#define USE_METALNESSMAP":"",n.alphaMap?"#define USE_ALPHAMAP":"",n.alphaHash?"#define USE_ALPHAHASH":"",n.transmission?"#define USE_TRANSMISSION":"",n.transmissionMap?"#define USE_TRANSMISSIONMAP":"",n.thicknessMap?"#define USE_THICKNESSMAP":"",n.sheenColorMap?"#define USE_SHEEN_COLORMAP":"",n.sheenRoughnessMap?"#define USE_SHEEN_ROUGHNESSMAP":"",n.mapUv?"#define MAP_UV "+n.mapUv:"",n.alphaMapUv?"#define ALPHAMAP_UV "+n.alphaMapUv:"",n.lightMapUv?"#define LIGHTMAP_UV "+n.lightMapUv:"",n.aoMapUv?"#define AOMAP_UV "+n.aoMapUv:"",n.emissiveMapUv?"#define EMISSIVEMAP_UV "+n.emissiveMapUv:"",n.bumpMapUv?"#define BUMPMAP_UV "+n.bumpMapUv:"",n.normalMapUv?"#define NORMALMAP_UV "+n.normalMapUv:"",n.displacementMapUv?"#define DISPLACEMENTMAP_UV "+n.displacementMapUv:"",n.metalnessMapUv?"#define METALNESSMAP_UV "+n.metalnessMapUv:"",n.roughnessMapUv?"#define ROUGHNESSMAP_UV "+n.roughnessMapUv:"",n.anisotropyMapUv?"#define ANISOTROPYMAP_UV "+n.anisotropyMapUv:"",n.clearcoatMapUv?"#define CLEARCOATMAP_UV "+n.clearcoatMapUv:"",n.clearcoatNormalMapUv?"#define CLEARCOAT_NORMALMAP_UV "+n.clearcoatNormalMapUv:"",n.clearcoatRoughnessMapUv?"#define CLEARCOAT_ROUGHNESSMAP_UV "+n.clearcoatRoughnessMapUv:"",n.iridescenceMapUv?"#define IRIDESCENCEMAP_UV "+n.iridescenceMapUv:"",n.iridescenceThicknessMapUv?"#define IRIDESCENCE_THICKNESSMAP_UV "+n.iridescenceThicknessMapUv:"",n.sheenColorMapUv?"#define SHEEN_COLORMAP_UV "+n.sheenColorMapUv:"",n.sheenRoughnessMapUv?"#define SHEEN_ROUGHNESSMAP_UV "+n.sheenRoughnessMapUv:"",n.specularMapUv?"#define SPECULARMAP_UV "+n.specularMapUv:"",n.specularColorMapUv?"#define SPECULAR_COLORMAP_UV "+n.specularColorMapUv:"",n.specularIntensityMapUv?"#define SPECULAR_INTENSITYMAP_UV "+n.specularIntensityMapUv:"",n.transmissionMapUv?"#define TRANSMISSIONMAP_UV "+n.transmissionMapUv:"",n.thicknessMapUv?"#define THICKNESSMAP_UV "+n.thicknessMapUv:"",n.vertexTangents&&!1===n.flatShading?"#define USE_TANGENT":"",n.vertexColors?"#define USE_COLOR":"",n.vertexAlphas?"#define USE_COLOR_ALPHA":"",n.vertexUv1s?"#define USE_UV1":"",n.vertexUv2s?"#define USE_UV2":"",n.vertexUv3s?"#define USE_UV3":"",n.pointsUvs?"#define USE_POINTS_UV":"",n.flatShading?"#define FLAT_SHADED":"",n.skinning?"#define USE_SKINNING":"",n.morphTargets?"#define USE_MORPHTARGETS":"",n.morphNormals&&!1===n.flatShading?"#define USE_MORPHNORMALS":"",n.morphColors?"#define USE_MORPHCOLORS":"",n.morphTargetsCount>0?"#define MORPHTARGETS_TEXTURE_STRIDE "+n.morphTextureStride:"",n.morphTargetsCount>0?"#define MORPHTARGETS_COUNT "+n.morphTargetsCount:"",n.doubleSided?"#define DOUBLE_SIDED":"",n.flipSided?"#define FLIP_SIDED":"",n.shadowMapEnabled?"#define USE_SHADOWMAP":"",n.shadowMapEnabled?"#define "+l:"",n.sizeAttenuation?"#define USE_SIZEATTENUATION":"",n.numLightProbes>0?"#define USE_LIGHT_PROBES":"",n.logarithmicDepthBuffer?"#define USE_LOGARITHMIC_DEPTH_BUFFER":"",n.reversedDepthBuffer?"#define USE_REVERSED_DEPTH_BUFFER":"","uniform mat4 modelMatrix;","uniform mat4 modelViewMatrix;","uniform mat4 projectionMatrix;","uniform mat4 viewMatrix;","uniform mat3 normalMatrix;","uniform vec3 cameraPosition;","uniform bool isOrthographic;","#ifdef USE_INSTANCING","\tattribute mat4 instanceMatrix;","#endif","#ifdef USE_INSTANCING_COLOR","\tattribute vec3 instanceColor;","#endif","#ifdef USE_INSTANCING_MORPH","\tuniform sampler2D morphTexture;","#endif","attribute vec3 position;","attribute vec3 normal;","attribute vec2 uv;","#ifdef USE_UV1","\tattribute vec2 uv1;","#endif","#ifdef USE_UV2","\tattribute vec2 uv2;","#endif","#ifdef USE_UV3","\tattribute vec2 uv3;","#endif","#ifdef USE_TANGENT","\tattribute vec4 tangent;","#endif","#if defined( USE_COLOR_ALPHA )","\tattribute vec4 color;","#elif defined( USE_COLOR )","\tattribute vec3 color;","#endif","#ifdef USE_SKINNING","\tattribute vec4 skinIndex;","\tattribute vec4 skinWeight;","#endif","\n"].filter(nl).join("\n"),v=[Ub(n),"#define SHADER_TYPE "+n.shaderType,"#define SHADER_NAME "+n.shaderName,f,n.useFog&&n.fog?"#define USE_FOG":"",n.useFog&&n.fogExp2?"#define FOG_EXP2":"",n.alph
vendor: 4,308 bytes, line 13
13aToCoverage?"#define ALPHA_TO_COVERAGE":"",n.map?"#define USE_MAP":"",n.matcap?"#define USE_MATCAP":"",n.envMap?"#define USE_ENVMAP":"",n.envMap?"#define "+c:"",n.envMap?"#define "+u:"",n.envMap?"#define "+d:"",h?"#define CUBEUV_TEXEL_WIDTH "+h.texelWidth:"",h?"#define CUBEUV_TEXEL_HEIGHT "+h.texelHeight:"",h?"#define CUBEUV_MAX_MIP "+h.maxMip+".0":"",n.lightMap?"#define USE_LIGHTMAP":"",n.aoMap?"#define USE_AOMAP":"",n.bumpMap?"#define USE_BUMPMAP":"",n.normalMap?"#define USE_NORMALMAP":"",n.normalMapObjectSpace?"#define USE_NORMALMAP_OBJECTSPACE":"",n.normalMapTangentSpace?"#define USE_NORMALMAP_TANGENTSPACE":"",n.emissiveMap?"#define USE_EMISSIVEMAP":"",n.anisotropy?"#define USE_ANISOTROPY":"",n.anisotropyMap?"#define USE_ANISOTROPYMAP":"",n.clearcoat?"#define USE_CLEARCOAT":"",n.clearcoatMap?"#define USE_CLEARCOATMAP":"",n.clearcoatRoughnessMap?"#define USE_CLEARCOAT_ROUGHNESSMAP":"",n.clearcoatNormalMap?"#define USE_CLEARCOAT_NORMALMAP":"",n.dispersion?"#define USE_DISPERSION":"",n.iridescence?"#define USE_IRIDESCENCE":"",n.iridescenceMap?"#define USE_IRIDESCENCEMAP":"",n.iridescenceThicknessMap?"#define USE_IRIDESCENCE_THICKNESSMAP":"",n.specularMap?"#define USE_SPECULARMAP":"",n.specularColorMap?"#define USE_SPECULAR_COLORMAP":"",n.specularIntensityMap?"#define USE_SPECULAR_INTENSITYMAP":"",n.roughnessMap?"#define USE_ROUGHNESSMAP":"",n.metalnessMap?"#define USE_METALNESSMAP":"",n.alphaMap?"#define USE_ALPHAMAP":"",n.alphaTest?"#define USE_ALPHATEST":"",n.alphaHash?"#define USE_ALPHAHASH":"",n.sheen?"#define USE_SHEEN":"",n.sheenColorMap?"#define USE_SHEEN_COLORMAP":"",n.sheenRoughnessMap?"#define USE_SHEEN_ROUGHNESSMAP":"",n.transmission?"#define USE_TRANSMISSION":"",n.transmissionMap?"#define USE_TRANSMISSIONMAP":"",n.thicknessMap?"#define USE_THICKNESSMAP":"",n.vertexTangents&&!1===n.flatShading?"#define USE_TANGENT":"",n.vertexColors||n.instancingColor||n.batchingColor?"#define USE_COLOR":"",n.vertexAlphas?"#define USE_COLOR_ALPHA":"",n.vertexUv1s?"#define USE_UV1":"",n.vertexUv2s?"#define USE_UV2":"",n.vertexUv3s?"#define USE_UV3":"",n.pointsUvs?"#define USE_POINTS_UV":"",n.gradientMap?"#define USE_GRADIENTMAP":"",n.flatShading?"#define FLAT_SHADED":"",n.doubleSided?"#define DOUBLE_SIDED":"",n.flipSided?"#define FLIP_SIDED":"",n.shadowMapEnabled?"#define USE_SHADOWMAP":"",n.shadowMapEnabled?"#define "+l:"",n.premultipliedAlpha?"#define PREMULTIPLIED_ALPHA":"",n.numLightProbes>0?"#define USE_LIGHT_PROBES":"",n.decodeVideoTexture?"#define DECODE_VIDEO_TEXTURE":"",n.decodeVideoTextureEmissive?"#define DECODE_VIDEO_TEXTURE_EMISSIVE":"",n.logarithmicDepthBuffer?"#define USE_LOGARITHMIC_DEPTH_BUFFER":"",n.reversedDepthBuffer?"#define USE_REVERSED_DEPTH_BUFFER":"","uniform mat4 viewMatrix;","uniform vec3 cameraPosition;","uniform bool isOrthographic;",0!==n.toneMapping?"#define TONE_MAPPING":"",0!==n.toneMapping?Rt.tonemapping_pars_fragment:"",0!==n.toneMapping?c5("toneMapping",n.toneMapping):"",n.dithering?"#define DITHERING":"",n.opaque?"#define OPAQUE":"",Rt.colorspace_pars_fragment,l5("linearToOutputTexel",n.outputColorSpace),u5(),n.useDepthPacking?"#define DEPTH_PACKING "+n.depthPacking:"","\n"].filter(nl).join("\n")),s=im(s),s=Ib(s,n),s=Nb(s,n),a=im(a),a=Ib(a,n),a=Nb(a,n),s=Ob(s),a=Ob(a),!0!==n.isRawShaderMaterial&&(b="#version 300 es\n",g=[p,"#define attribute in","#define varying out","#define texture2D texture"].join("\n")+"\n"+g,v=["#define varying in",n.glslVersion===Xg?"":"layout(location = 0) out highp vec4 pc_fragColor;",n.glslVersion===Xg?"":"#define gl_FragColor pc_fragColor","#define gl_FragDepthEXT gl_FragDepth","#define texture2D texture","#define textureCube texture","#define texture2DProj textureProj","#define texture2DLodEXT textureLod","#define texture2DProjLodEXT textureProjLod","#define textureCubeLodEXT textureLod","#define texture2DGradEXT textureGrad","#define texture2DProjGradEXT textureProjGrad","#define textureCubeGradEXT textureGrad"].join("\n")+"\n"+v);const y=b+g+s,_=b+v+a,x=Rb(r,r.VERTEX_SHADER,y),S=Rb(r,r.FRAGMENT_SHADER,_);function w(t){if(e.debug.checkShaderErrors){const n=r.getProgramInfoLog(m)||"",i=r.getShaderInfoLog(x)||"",o=r.getShaderInfoLog(S)||"",s=n.trim(),a=i.trim(),l=o.trim();let c=!0,u=!0;if(!1===r.getProgramParameter(m,r.LINK_STATUS))if(c=!1,"function"==typeof e.debug.onSha
vendor: 4,401 bytes, line 13
13derError)e.debug.onShaderError(r,m,x,S);else{const e=Db(r,x,"vertex"),n=Db(r,S,"fragment");console.error("THREE.WebGLProgram: Shader Error "+r.getError()+" - VALIDATE_STATUS "+r.getProgramParameter(m,r.VALIDATE_STATUS)+"\n\nMaterial Name: "+t.name+"\nMaterial Type: "+t.type+"\n\nProgram Info Log: "+s+"\n"+e+"\n"+n)}else""!==s?console.warn("THREE.WebGLProgram: Program Info Log:",s):(""===a||""===l)&&(u=!1);u&&(t.diagnostics={runnable:c,programLog:s,vertexShader:{log:a,prefix:g},fragmentShader:{log:l,prefix:v}})}r.deleteShader(x),r.deleteShader(S),M=new pd(r,m),E=h5(r,m)}let M,E;r.attachShader(m,x),r.attachShader(m,S),void 0!==n.index0AttributeName?r.bindAttribLocation(m,0,n.index0AttributeName):!0===n.morphTargets&&r.bindAttribLocation(m,0,"position"),r.linkProgram(m),this.getUniforms=function(){return void 0===M&&w(this),M},this.getAttributes=function(){return void 0===E&&w(this),E};let T=!1===n.rendererExtensionParallelShaderCompile;return this.isReady=function(){return!1===T&&(T=r.getProgramParameter(m,r5)),T},this.destroy=function(){i.releaseStatesOfProgram(this),r.deleteProgram(m),this.program=void 0},this.type=n.shaderType,this.name=n.shaderName,this.id=o5++,this.cacheKey=t,this.usedTimes=1,this.program=m,this.vertexShader=x,this.fragmentShader=S,this}let M5=0;class T5{constructor(){this.shaderCache=new Map,this.materialCache=new Map}update(e){const t=e.vertexShader,n=e.fragmentShader,i=this._getShaderStage(t),r=this._getShaderStage(n),o=this._getShaderCacheForMaterial(e);return!1===o.has(i)&&(o.add(i),i.usedTimes++),!1===o.has(r)&&(o.add(r),r.usedTimes++),this}remove(e){const t=this.materialCache.get(e);for(const e of t)e.usedTimes--,0===e.usedTimes&&this.shaderCache.delete(e.code);return this.materialCache.delete(e),this}getVertexShaderID(e){return this._getShaderStage(e.vertexShader).id}getFragmentShaderID(e){return this._getShaderStage(e.fragmentShader).id}dispose(){this.shaderCache.clear(),this.materialCache.clear()}_getShaderCacheForMaterial(e){const t=this.materialCache;let n=t.get(e);return void 0===n&&(n=new Set,t.set(e,n)),n}_getShaderStage(e){const t=this.shaderCache;let n=t.get(e);return void 0===n&&(n=new A5(e),t.set(e,n)),n}}class A5{constructor(e){this.id=M5++,this.code=e,this.usedTimes=0}}function C5(e,t,n,i,r,o,s){const a=new _1,l=new T5,c=new Set,u=[],d=r.logarithmicDepthBuffer,h=r.vertexTextures;let p=r.precision;const f={MeshDepthMaterial:"depth",MeshDistanceMaterial:"distanceRGBA",MeshNormalMaterial:"normal",MeshBasicMaterial:"basic",MeshLambertMaterial:"lambert",MeshPhongMaterial:"phong",MeshToonMaterial:"toon",MeshStandardMaterial:"physical",MeshPhysicalMaterial:"physical",MeshMatcapMaterial:"matcap",LineBasicMaterial:"basic",LineDashedMaterial:"dashed",PointsMaterial:"points",ShadowMaterial:"shadow",SpriteMaterial:"sprite"};function m(e){return c.add(e),0===e?"uv":`uv${e}`}return{getParameters:function(o,a,u,g,v){const b=g.fog,y=v.geometry,_=o.isMeshStandardMaterial?g.environment:null,x=(o.isMeshStandardMaterial?n:t).get(o.envMap||_),S=x&&x.mapping===xf?x.image.height:null,w=f[o.type];null!==o.precision&&(p=r.getMaxPrecision(o.precision),p!==o.precision&&console.warn("THREE.WebGLProgram.getParameters:",o.precision,"not supported, using",p,"instead."));const M=y.morphAttributes.position||y.morphAttributes.normal||y.morphAttributes.color,E=void 0!==M?M.length:0;let T,C,R,A,L=0;if(void 0!==y.morphAttributes.position&&(L=1),void 0!==y.morphAttributes.normal&&(L=2),void 0!==y.morphAttributes.color&&(L=3),w){const e=sr[w];T=e.vertexShader,C=e.fragmentShader}else T=o.vertexShader,C=o.fragmentShader,l.update(o),R=l.getVertexShaderID(o),A=l.getFragmentShaderID(o);const P=e.getRenderTarget(),N=e.state.buffers.depth.getReversed(),D=!0===v.isInstancedMesh,I=!0===v.isBatchedMesh,O=!!o.map,U=!!o.matcap,k=!!x,F=!!o.aoMap,z=!!o.lightMap,B=!!o.bumpMap,$=!!o.normalMap,G=!!o.displacementMap,H=!!o.emissiveMap,V=!!o.metalnessMap,W=!!o.roughnessMap,j=o.anisotropy>0,X=o.clearcoat>0,Y=o.dispersion>0,q=o.iridescence>0,K=o.sheen>0,Q=o.transmission>0,J=j&&!!o.anisotropyMap,Z=X&&!!o.clearcoatMap,ee=X&&!!o.clearcoatNormalMap,te=X&&!!o.clearcoatRoughnessMap,ne=q&&!!o.iridescenceMap,ie=q&&!!o.iridescenceThicknessMap,re=K&&!!o.sheenColorMap,oe=K&&!!o.sheenRoughnessMap,se=!!o.specularMap,ae=!!o.specularColorMap,le=!!o.specularIntensityMap,ce=Q&&!!o.transmissionMap,ue=Q&&!!o.thicknessMap,de=!!o.gradientMap,he=!!o.alphaMap,pe
13=o.alphaTest>0,fe=!!o.alphaHash,me=!!o.extensions;let ge=0;o.toneMapped&&(null===P||!0===P.isXRRenderTarget)&&(ge=e.toneMapping);const ve={shaderID:w,shaderType:o.type,shaderName:o.name,vertexShader:T,fragmentShader:C,defines:o.defines,customVertexShaderID:R,customFragmentShaderID:A,isRawShaderMaterial:!0===o.isRawShaderMaterial,glslVersion:o.glslVersion,precision:p,batching:I,batchingColor:I&&null!==v._colorsTexture,instancing:D,instancingColor:D&&null!==v.instanceColor,instancingMorph:D&&null!==v.morphTexture,supportsVertexTextures:h,outputColorSpace:null===P?e.outputColorSpace:!0===P.isXRRenderTarget?P.texture.colorSpace:So,alphaToCoverage:!!o.alphaToCoverage,map:O,matcap:U,envMap:k,envMapMode:k&&x.mapping,envMapCubeUVHeight:S,aoMap:F,lightMap:z,bumpMap:B,normalMap:$,displacementMap:h&&G,emissiveMap:H,normalMapObjectSpace:$&&1===o.normalMapType,normalMapTangentSpace:$&&0===o.normalMapType,metalnessMap:V,roughnessMap:W,anisotropy:j,anisotropyMap:J,clearcoat:X,clearcoatMap:Z,clearcoatNormalMap:ee,clearcoatRoughnessMap:te,dispersion:Y,iridescence:q,iridescenceMap:ne,iridescenceThicknessMap:ie,sheen:K,sheenColorMap:re,sheenRoughnessMap:oe,specularMap:se,specularColorMap:ae,specularIntensityMap:le,transmission:Q,transmissionMap:ce,thicknessMap:ue,gradientMap:de,opaque:!1===o.transparent&&1===o.blending&&!1===o.alphaToCoverage,alphaMap:he,alphaTest:pe,alphaHash:fe,combine:o.combine,mapUv:O&&m(o.map.channel),aoMapUv:F&&m(o.aoMap.channel),lightMapUv:z&&m(o.lightMap.channel),bumpMapUv:B&&m(
vendor: 5,985 bytes, line 13
13o.bumpMap.channel),normalMapUv:$&&m(o.normalMap.channel),displacementMapUv:G&&m(o.displacementMap.channel),emissiveMapUv:H&&m(o.emissiveMap.channel),metalnessMapUv:V&&m(o.metalnessMap.channel),roughnessMapUv:W&&m(o.roughnessMap.channel),anisotropyMapUv:J&&m(o.anisotropyMap.channel),clearcoatMapUv:Z&&m(o.clearcoatMap.channel),clearcoatNormalMapUv:ee&&m(o.clearcoatNormalMap.channel),clearcoatRoughnessMapUv:te&&m(o.clearcoatRoughnessMap.channel),iridescenceMapUv:ne&&m(o.iridescenceMap.channel),iridescenceThicknessMapUv:ie&&m(o.iridescenceThicknessMap.channel),sheenColorMapUv:re&&m(o.sheenColorMap.channel),sheenRoughnessMapUv:oe&&m(o.sheenRoughnessMap.channel),specularMapUv:se&&m(o.specularMap.channel),specularColorMapUv:ae&&m(o.specularColorMap.channel),specularIntensityMapUv:le&&m(o.specularIntensityMap.channel),transmissionMapUv:ce&&m(o.transmissionMap.channel),thicknessMapUv:ue&&m(o.thicknessMap.channel),alphaMapUv:he&&m(o.alphaMap.channel),vertexTangents:!!y.attributes.tangent&&($||j),vertexColors:o.vertexColors,vertexAlphas:!0===o.vertexColors&&!!y.attributes.color&&4===y.attributes.color.itemSize,pointsUvs:!0===v.isPoints&&!!y.attributes.uv&&(O||he),fog:!!b,useFog:!0===o.fog,fogExp2:!!b&&b.isFogExp2,flatShading:!0===o.flatShading&&!1===o.wireframe,sizeAttenuation:!0===o.sizeAttenuation,logarithmicDepthBuffer:d,reversedDepthBuffer:N,skinning:!0===v.isSkinnedMesh,morphTargets:void 0!==y.morphAttributes.position,morphNormals:void 0!==y.morphAttributes.normal,morphColors:void 0!==y.morphAttributes.color,morphTargetsCount:E,morphTextureStride:L,numDirLights:a.directional.length,numPointLights:a.point.length,numSpotLights:a.spot.length,numSpotLightMaps:a.spotLightMap.length,numRectAreaLights:a.rectArea.length,numHemiLights:a.hemi.length,numDirLightShadows:a.directionalShadowMap.length,numPointLightShadows:a.pointShadowMap.length,numSpotLightShadows:a.spotShadowMap.length,numSpotLightShadowsWithMaps:a.numSpotLightShadowsWithMaps,numLightProbes:a.numLightProbes,numClippingPlanes:s.numPlanes,numClipIntersection:s.numIntersection,dithering:o.dithering,shadowMapEnabled:e.shadowMap.enabled&&u.length>0,shadowMapType:e.shadowMap.type,toneMapping:ge,decodeVideoTexture:O&&!0===o.map.isVideoTexture&&Ht.getTransfer(o.map.colorSpace)===jt,decodeVideoTextureEmissive:H&&!0===o.emissiveMap.isVideoTexture&&Ht.getTransfer(o.emissiveMap.colorSpace)===jt,premultipliedAlpha:o.premultipliedAlpha,doubleSided:2===o.side,flipSided:1===o.side,useDepthPacking:o.depthPacking>=0,depthPacking:o.depthPacking||0,index0AttributeName:o.index0AttributeName,extensionClipCullDistance:me&&!0===o.extensions.clipCullDistance&&i.has("WEBGL_clip_cull_distance"),extensionMultiDraw:(me&&!0===o.extensions.multiDraw||I)&&i.has("WEBGL_multi_draw"),rendererExtensionParallelShaderCompile:i.has("KHR_parallel_shader_compile"),customProgramCacheKey:o.customProgramCacheKey()};return ve.vertexUv1s=c.has(1),ve.vertexUv2s=c.has(2),ve.vertexUv3s=c.has(3),c.clear(),ve},getProgramCacheKey:function(t){const n=[];if(t.shaderID?n.push(t.shaderID):(n.push(t.customVertexShaderID),n.push(t.customFragmentShaderID)),void 0!==t.defines)for(const e in t.defines)n.push(e),n.push(t.defines[e]);return!1===t.isRawShaderMaterial&&(function(e,t){e.push(t.precision),e.push(t.outputColorSpace),e.push(t.envMapMode),e.push(t.envMapCubeUVHeight),e.push(t.mapUv),e.push(t.alphaMapUv),e.push(t.lightMapUv),e.push(t.aoMapUv),e.push(t.bumpMapUv),e.push(t.normalMapUv),e.push(t.displacementMapUv),e.push(t.emissiveMapUv),e.push(t.metalnessMapUv),e.push(t.roughnessMapUv),e.push(t.anisotropyMapUv),e.push(t.clearcoatMapUv),e.push(t.clearcoatNormalMapUv),e.push(t.clearcoatRoughnessMapUv),e.push(t.iridescenceMapUv),e.push(t.iridescenceThicknessMapUv),e.push(t.sheenColorMapUv),e.push(t.sheenRoughnessMapUv),e.push(t.specularMapUv),e.push(t.specularColorMapUv),e.push(t.specularIntensityMapUv),e.push(t.transmissionMapUv),e.push(t.thicknessMapUv),e.push(t.combine),e.push(t.fogExp2),e.push(t.sizeAttenuation),e.push(t.morphTargetsCount),e.push(t.morphAttributeCount),e.push(t.numDirLights),e.push(t.numPointLights),e.push(t.numSpotLights),e.push(t.numSpotLightMaps),e.push(t.numHemiLights),e.push(t.numRectAreaLights),e.push(t.numDirLightShadows),e.push(t.numPointLightShadows),e.push(t.numSpotLightShadows),e.push(t.numSpotLightShadowsWithMaps),e.push(t.numLightProbes),e.push(t.shadowMapType),e.push(t.toneMapping),e.push(t.numClippingPlanes),e.push(t.numClipIntersection),e.push(t.depthPacking)}(n,t),function(e,t){a.disableAll(),t.supportsVertexTextures&&a.enable(0),t.instancing&&a.enable(1),t.instancingColor&&a.enable(2),t.instancingMorph&&a.enable(3),t.matcap&&a.enable(4),t.envMap&&a.enable(5),t.normalMapObjectSpace&&a.enable(6),t.normalMapTangentSpace&&a.enable(7),t.clearcoat&&a.enable(8),t.iridescence&&a.enable(9),t.alphaTest&&a.enable(10),t.vertexColors&&a.enable(11),t.vertexAlphas&&a.enable(12),t.vertexUv1s&&a.enable(13),t.vertexUv2s&&a.enable(14),t.vertexUv3s&&a.enable(15),t.vertexTangents&&a.enable(16),t.anisotropy&&a.enable(17),t.alphaHash&&a.enable(18),t.batching&&a.enable(19),t.dispersion&&a.enable(20),t.batchingColor&&a.enable(21),t.gradientMap&&a.enable(22),e.push(a.mask),a.disableAll(),t.fog&&a.enable(0),t.useFog&&a.enable(1),t.flatShading&&a.enable(2),t.logarithmicDepthBuffer&&a.enable(3),t.reversedDepthBuffer&&a.enable(4),t.skinning&&a.enable(5),t.morphTargets&&a.enable(6),t.morphNormals&&a.enable(7),t.morphColors&&a.enable(8),t.premultipliedAlpha&&a.enable(9),t.shadowMapEnabled&&a.enable(10),t.doubleSided&&a.enable(11),t.flipSided&&a.enable(12),t.useDepthPacking&&a.enable(13),t.dithering&&a.enable(14),t.transmission&&a.enable(15),t.sheen&&a.enable(16),t.opaque&&a.enable(17),t.pointsUvs&&a.enable(18),t.decodeVideoTexture&&a.enable(19),t.decodeVideoTextureEmissive&&a.enable(20),t.alphaToCoverage&&a.enable(21),e.push(a.mask)}(n,t),n.push(e.outputColorSpace)),n.push(t.customProgramCacheKey),n.join()},getUniforms:function(e){const t=f[e.type];let n;if(t){const e=sr[t];
vendor: 4,518 bytes, line 13
13n=FD.clone(e.uniforms)}else n=e.uniforms;return n},acquireProgram:function(t,n){let i;for(let e=0,t=u.length;e<t;e++){const t=u[e];if(t.cacheKey===n){i=t,++i.usedTimes;break}}return void 0===i&&(i=new w5(e,n,t,o),u.push(i)),i},releaseProgram:function(e){if(0==--e.usedTimes){const t=u.indexOf(e);u[t]=u[u.length-1],u.pop(),e.destroy()}},releaseShaderCache:function(e){l.remove(e)},programs:u,dispose:function(){l.dispose()}}}function P5(){let e=new WeakMap;return{has:function(t){return e.has(t)},get:function(t){let n=e.get(t);return void 0===n&&(n={},e.set(t,n)),n},remove:function(t){e.delete(t)},update:function(t,n,i){e.get(t)[n]=i},dispose:function(){e=new WeakMap}}}function R5(e,t){return e.groupOrder!==t.groupOrder?e.groupOrder-t.groupOrder:e.renderOrder!==t.renderOrder?e.renderOrder-t.renderOrder:e.material.id!==t.material.id?e.material.id-t.material.id:e.z!==t.z?e.z-t.z:e.id-t.id}function Fb(e,t){return e.groupOrder!==t.groupOrder?e.groupOrder-t.groupOrder:e.renderOrder!==t.renderOrder?e.renderOrder-t.renderOrder:e.z!==t.z?t.z-e.z:e.id-t.id}function Bb(){const e=[];let t=0;const n=[],i=[],r=[];function o(n,i,r,o,s,a){let l=e[t];return void 0===l?(l={id:n.id,object:n,geometry:i,material:r,groupOrder:o,renderOrder:n.renderOrder,z:s,group:a},e[t]=l):(l.id=n.id,l.object=n,l.geometry=i,l.material=r,l.groupOrder=o,l.renderOrder=n.renderOrder,l.z=s,l.group=a),t++,l}return{opaque:n,transmissive:i,transparent:r,init:function(){t=0,n.length=0,i.length=0,r.length=0},push:function(e,t,s,a,l,c){const u=o(e,t,s,a,l,c);s.transmission>0?i.push(u):!0===s.transparent?r.push(u):n.push(u)},unshift:function(e,t,s,a,l,c){const u=o(e,t,s,a,l,c);s.transmission>0?i.unshift(u):!0===s.transparent?r.unshift(u):n.unshift(u)},finish:function(){for(let n=t,i=e.length;n<i;n++){const t=e[n];if(null===t.id)break;t.id=null,t.object=null,t.geometry=null,t.material=null,t.group=null}},sort:function(e,t){n.length>1&&n.sort(e||R5),i.length>1&&i.sort(t||Fb),r.length>1&&r.sort(t||Fb)}}}function L5(){let e=new WeakMap;return{get:function(t,n){const i=e.get(t);let r;return void 0===i?(r=new Bb,e.set(t,[r])):n>=i.length?(r=new Bb,i.push(r)):r=i[n],r},dispose:function(){e=new WeakMap}}}function D5(){const e={};return{get:function(t){if(void 0!==e[t.id])return e[t.id];let n;switch(t.type){case"DirectionalLight":n={direction:new k,color:new Ut};break;case"SpotLight":n={position:new k,direction:new k,color:new Ut,distance:0,coneCos:0,penumbraCos:0,decay:0};break;case"PointLight":n={position:new k,color:new Ut,distance:0,decay:0};break;case"HemisphereLight":n={direction:new k,skyColor:new Ut,groundColor:new Ut};break;case"RectAreaLight":n={color:new Ut,position:new k,halfWidth:new k,halfHeight:new k}}return e[t.id]=n,n}}}function I5(){const e={};return{get:function(t){if(void 0!==e[t.id])return e[t.id];let n;switch(t.type){case"DirectionalLight":case"SpotLight":n={shadowIntensity:1,shadowBias:0,shadowNormalBias:0,shadowRadius:1,shadowMapSize:new tt};break;case"PointLight":n={shadowIntensity:1,shadowBias:0,shadowNormalBias:0,shadowRadius:1,shadowMapSize:new tt,shadowCameraNear:1,shadowCameraFar:1e3}}return e[t.id]=n,n}}}let N5=0;function O5(e,t){return(t.castShadow?2:0)-(e.castShadow?2:0)+(t.map?1:0)-(e.map?1:0)}function U5(e){const t=new D5,n=I5(),i={version:0,hash:{directionalLength:-1,pointLength:-1,spotLength:-1,rectAreaLength:-1,hemiLength:-1,numDirectionalShadows:-1,numPointShadows:-1,numSpotShadows:-1,numSpotMaps:-1,numLightProbes:-1},ambient:[0,0,0],probe:[],directional:[],directionalShadow:[],directionalShadowMap:[],directionalShadowMatrix:[],spot:[],spotLightMap:[],spotShadow:[],spotShadowMap:[],spotLightMatrix:[],rectArea:[],rectAreaLTC1:null,rectAreaLTC2:null,point:[],pointShadow:[],pointShadowMap:[],pointShadowMatrix:[],hemi:[],numSpotLightShadowsWithMaps:0,numLightProbes:0};for(let e=0;e<9;e++)i.probe.push(new k);const r=new k,o=new cn,s=new cn;return{setup:function(r){let o=0,s=0,a=0;for(let e=0;e<9;e++)i.probe[e].set(0,0,0);let l=0,c=0,u=0,d=0,h=0,p=0,f=0,m=0,g=0,v=0,b=0;r.sort(O5);for(let e=0,y=r.length;e<y;e++){const y=r[e],_=y.color,x=y.intensity,S=y.distance,w=y.shadow&&y.shadow.map?y.shadow.map.texture:null;if(y.isAmbientLight)o+=_.r*x,s+=_.g*x,a+=_.b*x;else if(y.isLightProbe){for(let e=0;e<9;e++)i.probe[e].addScaledVector(y.sh.coefficients[e],x);b++}else if(y.isDirectionalLight){const e=t.get(y);if(e.color.copy(y.color).multiplyScalar(y.intensity),y.castShadow){const e=y.shadow,t=n.get(y);t.shadowIntensity=e.intensity,t.shadowBias=e.bias,t.shadowNormalBias=e.n
vendor: 4,532 bytes, line 13
13ormalBias,t.shadowRadius=e.radius,t.shadowMapSize=e.mapSize,i.directionalShadow[l]=t,i.directionalShadowMap[l]=w,i.directionalShadowMatrix[l]=y.shadow.matrix,p++}i.directional[l]=e,l++}else if(y.isSpotLight){const e=t.get(y);e.position.setFromMatrixPosition(y.matrixWorld),e.color.copy(_).multiplyScalar(x),e.distance=S,e.coneCos=Math.cos(y.angle),e.penumbraCos=Math.cos(y.angle*(1-y.penumbra)),e.decay=y.decay,i.spot[u]=e;const r=y.shadow;if(y.map&&(i.spotLightMap[g]=y.map,g++,r.updateMatrices(y),y.castShadow&&v++),i.spotLightMatrix[u]=r.matrix,y.castShadow){const e=n.get(y);e.shadowIntensity=r.intensity,e.shadowBias=r.bias,e.shadowNormalBias=r.normalBias,e.shadowRadius=r.radius,e.shadowMapSize=r.mapSize,i.spotShadow[u]=e,i.spotShadowMap[u]=w,m++}u++}else if(y.isRectAreaLight){const e=t.get(y);e.color.copy(_).multiplyScalar(x),e.halfWidth.set(.5*y.width,0,0),e.halfHeight.set(0,.5*y.height,0),i.rectArea[d]=e,d++}else if(y.isPointLight){const e=t.get(y);if(e.color.copy(y.color).multiplyScalar(y.intensity),e.distance=y.distance,e.decay=y.decay,y.castShadow){const e=y.shadow,t=n.get(y);t.shadowIntensity=e.intensity,t.shadowBias=e.bias,t.shadowNormalBias=e.normalBias,t.shadowRadius=e.radius,t.shadowMapSize=e.mapSize,t.shadowCameraNear=e.camera.near,t.shadowCameraFar=e.camera.far,i.pointShadow[c]=t,i.pointShadowMap[c]=w,i.pointShadowMatrix[c]=y.shadow.matrix,f++}i.point[c]=e,c++}else if(y.isHemisphereLight){const e=t.get(y);e.skyColor.copy(y.color).multiplyScalar(x),e.groundColor.copy(y.groundColor).multiplyScalar(x),i.hemi[h]=e,h++}}d>0&&(!0===e.has("OES_texture_float_linear")?(i.rectAreaLTC1=at.LTC_FLOAT_1,i.rectAreaLTC2=at.LTC_FLOAT_2):(i.rectAreaLTC1=at.LTC_HALF_1,i.rectAreaLTC2=at.LTC_HALF_2)),i.ambient[0]=o,i.ambient[1]=s,i.ambient[2]=a;const y=i.hash;(y.directionalLength!==l||y.pointLength!==c||y.spotLength!==u||y.rectAreaLength!==d||y.hemiLength!==h||y.numDirectionalShadows!==p||y.numPointShadows!==f||y.numSpotShadows!==m||y.numSpotMaps!==g||y.numLightProbes!==b)&&(i.directional.length=l,i.spot.length=u,i.rectArea.length=d,i.point.length=c,i.hemi.length=h,i.directionalShadow.length=p,i.directionalShadowMap.length=p,i.pointShadow.length=f,i.pointShadowMap.length=f,i.spotShadow.length=m,i.spotShadowMap.length=m,i.directionalShadowMatrix.length=p,i.pointShadowMatrix.length=f,i.spotLightMatrix.length=m+g-v,i.spotLightMap.length=g,i.numSpotLightShadowsWithMaps=v,i.numLightProbes=b,y.directionalLength=l,y.pointLength=c,y.spotLength=u,y.rectAreaLength=d,y.hemiLength=h,y.numDirectionalShadows=p,y.numPointShadows=f,y.numSpotShadows=m,y.numSpotMaps=g,y.numLightProbes=b,i.version=N5++)},setupView:function(e,t){let n=0,a=0,l=0,c=0,u=0;const d=t.matrixWorldInverse;for(let t=0,h=e.length;t<h;t++){const h=e[t];if(h.isDirectionalLight){const e=i.directional[n];e.direction.setFromMatrixPosition(h.matrixWorld),r.setFromMatrixPosition(h.target.matrixWorld),e.direction.sub(r),e.direction.transformDirection(d),n++}else if(h.isSpotLight){const e=i.spot[l];e.position.setFromMatrixPosition(h.matrixWorld),e.position.applyMatrix4(d),e.direction.setFromMatrixPosition(h.matrixWorld),r.setFromMatrixPosition(h.target.matrixWorld),e.direction.sub(r),e.direction.transformDirection(d),l++}else if(h.isRectAreaLight){const e=i.rectArea[c];e.position.setFromMatrixPosition(h.matrixWorld),e.position.applyMatrix4(d),s.identity(),o.copy(h.matrixWorld),o.premultiply(d),s.extractRotation(o),e.halfWidth.set(.5*h.width,0,0),e.halfHeight.set(0,.5*h.height,0),e.halfWidth.applyMatrix4(s),e.halfHeight.applyMatrix4(s),c++}else if(h.isPointLight){const e=i.point[a];e.position.setFromMatrixPosition(h.matrixWorld),e.position.applyMatrix4(d),a++}else if(h.isHemisphereLight){const e=i.hemi[u];e.direction.setFromMatrixPosition(h.matrixWorld),e.direction.transformDirection(d),u++}}},state:i}}function kb(e){const t=new U5(e),n=[],i=[];const r={lightsArray:n,shadowsArray:i,camera:null,lights:t,transmissionRenderTarget:{}};return{init:function(e){r.camera=e,n.length=0,i.length=0},state:r,setupLights:function(){t.setup(n)},setupLightsView:function(e){t.setupView(n,e)},pushLight:function(e){n.push(e)},pushShadow:function(e){i.push(e)}}}function F5(e){let t=new WeakMap;return{get:function(n,i=0){const r=t.get(n);let o;return void 0===r?(o=new kb(e),t.set(n,[o])):i>=r.length?(o=new kb(e),r.push(o)):o=r[i],o},dispose:function(){t=new WeakMap}}}const B5="void main() {\n\tgl_Position = vec4( position, 1.0 );\n}",k5="uniform sampler2D shadow_pass;\nuniform vec2 resolution;\nuniform float radius;\n#include <packing>
13\nvoid main() {\n\tconst float samples = float( VSM_SAMPLES );\n\tfloat mean = 0.0;\n\tfloat squared_mean = 0.0;\n\tfloat uvStride = samples <= 1.0 ? 0.0 : 2.0 / ( samples - 1.0 );\n\tfloat uvStart = samples <= 1.0 ? 0.0 : - 1.0;\n\tfor ( float i = 0.0; i < samples; i ++ ) {\n\t\tfloat uvOffset = uvStart + i * uvStride;\n\t\t#ifdef HORIZONTAL_PASS\n\t\t\tvec2 distribution = unpackRGBATo2Half( texture2D( shadow_pass, ( gl_FragCoord.xy + vec2( uvOffset, 0.0 ) * radius ) / resolution ) );\n\t\t\tmean += distribution.x;\n\t\t\tsquared_mean += distribution.y * distribution.y + distribution.x * distribution.x;\n\t\t#else\n\t\t\tfloat depth = unpackRGBAToDepth( texture2D( shadow_pass, ( gl_FragCoord.xy + vec2( 0.0, uvOffset ) * radius ) / resolution ) );\n\t\t\tmean += depth;\n\t\t\tsquared_mean += depth * depth;\n\t\t#endif\n\t}\n\tmean = mean / samples;\n\tsquared_mean = squared_mean / samples;\n\tfloat std_dev = sqrt( squared_mean - mean * mean );\n\tgl_FragColor = pack2HalfToRGBA( vec2( mean, std_dev ) );\n}";function z5(e,t,n){let i=new xv;const r=new tt,o=new tt,s=new Qt,a=new aI({depthPacking:WL}),l=new lI,c={},u=n.maxTextureSize,d={[Wr]:1,[En]:0,[mi]:2},h=new Qi({defines:{VSM_SAMPLES:8},uniforms:{shadow_pass:{value:null},resolution:{value:new tt},radius:{value:4}},vertexShader:B5,fragmentShader:k5}),p=h.clone();p.defines.HORIZONTAL_PASS=1;const f=new Zi;f.setAttribute("position",new yi(new Float32Array([-1,-1,.5,3,-1,.5,-1,3,.5]),3));const m=new On(f,h),g=this;this.enabled=!1,this.autoUpdate=!0,this.needsUpdate=!1,this.type=1;let v=this.type;function b(n,i){const o=t.update(m);h.defines.VSM_SAMPLES!==n.blurSamples&&(h.defines.VSM_SAMPLES=n.blurSamples,p.defines.VSM_SAMPLES=n.blurSamples,h.needsUpdate=!0,p.needsUpdate=!0),null===n.mapPass&&(n.mapPass=new ji(r.x,r.y)),h.uniforms.shadow_pass.value=n.map.texture,h.uniforms.resolution.value=n.mapSize,h.uniforms.radius.value=n.radius,e.setRenderTarget(n.mapPass),e.clear(),e.renderBufferDirect(i,null,o,h,m,null),p.uniforms.shadow_pass.value=n.mapPass.texture,p.uniforms.resolution.value=n.mapSize,p.uniforms.radius.value=n.radius,e.setRenderTarget(n.map),e.clear(),e.renderBufferDirect(i,null,o,p,m,null)}function y(t,n,i,r){let o=null;const s=!0===i.isPointLight?t.customDistanceMaterial:t.customDepthMaterial;if(void 0!==s)o=s;else if(o=!0===i.isPointLight?l:a,e.localClippingEnabled&&!0===n.clipShadows&&Array.isArray(n.clippingPlanes)&&0!==n.clippingPlanes.length||n.displacementMap&&0!==n.displacementScale||n.alphaMap&&n.alphaTest>0||n.map&&n.alphaTest>0||!0===n.alphaToCoverage){const e=o.uuid,t=n.uuid;let i=c[e];void 0===i&&(i={},c[e]=i);let r=i[t];void 0===r&&(r=o.clone(),i[t]=r,n.addEventListener("dispose",x)),o=r}if(o.visible=n.visible,o.wireframe=n.wireframe,o.side=3===r?null!==n.shadowSide?n.shadowSide:n.side:null!==n.shadowSide?n.shadowSide:d[n.side],o.alphaMap=n.alphaMap,o.alphaTest=!0===n.alphaToCoverage?.5:n.alphaTest,o.map=n.map,o.clipShadows=n.clipShadows,o.clippingPlanes=n.clippingPlanes,o.clipIntersection=n.clipIntersection,o.displacementMap=n.displacementMap,o.displacementScale=n.displacementScale,o.displacementBias=n.displacementBias,o.wireframeLinewidth=n.wireframeLinewidth,o.linewidth=n.linewidth,!0===i.isPointLight&&!0===o.isMeshDistanceMaterial){e.properties.get(o).light=i}return o}function _(n,r,o,s,a){if(!1===n.visible)return;if(n.layers.test(r.layers)&&(n.isMesh||n.isLine||n.isPoints)&&(n.castShadow||n.receiveShadow&&3===a)&&(!n.frustumCulled||i.intersectsObject(n))){n.modelViewMatrix.multiplyMatrices(o.matrixWorldInverse,n.matrixWorld);const i=t.update(n),l=n.material;if(Array.isArray(l)){const t=i.groups;for(let c=0,u=t.length;c<u;c++){const u=t[c],d=l[u.materialIndex];if(d&&d.visible){const t=y(n,d,s,a);n.onBeforeShadow(e,n,r,o,i,t,u),e.renderBufferDirect(o,null,i,t,n,u),n.onAfterShadow(e,n,r,o,i,t,u)}}}else if(l.visible){const t=y(n,l,s,a);n.onBeforeShadow(e,n,r,o,i,t,null),e.renderBufferDirect(o,null,i,t,n,null),n.onAfterShadow(e,n,r,o,i,t,null)}}const l=n.children;for(let e=0,t=l.length;e<t;e++)_(l[e],r,o,s,a)}function x(e){e.target.removeEventListener("dispose",x);for(const t in c){const n=c[t],i=e.target.uuid;i in n&&(n[i].dispose(),delete n[i])}}this.render=function(t,n,a){if(!1===g.enabled||!1===g.autoUpdate&&!1===g.needsUpdate||0===t.length)return;const l=e.getRenderTarget(),c=e.getActiveCubeFace(),d=e.getActiveMipmapLevel(),h=e.state;h.setBlending(0),!0===h.buffers.depth.getReversed()?h.buffers.color.setClear(0,0,0,0):h.buffers.color.setClear(1,1,1,1),h.buffers.depth.setTest(!0),h.setScissorTest(!1);const p=3!==v&&3===this.type,f=3===v&&3!==this.type;for(let l=0,c=t.length;l<c;l++){const c=t[l],d=c.shadow;if(void 0===d){console.warn("THREE.WebGLShadowMap:",c,"has no shadow.");continue}if(!1===d.autoUpdate&&!1===d.needsUpdate)continue;r.copy(d.mapSize);const m=d.getFrameExtents();if(r.multiply(m),o.copy(d.mapSize),(r.x>u||r.y>u)&&(r.x>u&&(o.x=Math.floor(u/m.x),r.x=o.x*m.x,d.mapSize.x=o.x),r.y>u&&(o.y=Math.floor(u/m.y),r.y=o.y*m.y,d.mapSize.y=o.y)),null===d.map||!0===p||!0===f){const e=3!==this.type?{minFilter:_i,magFilter:_i}:{};null!==d.map&&d.map.dispose(),d.map=new ji(r.x,r.y,e),d.map.texture.name=c.name+".shadowMap",d.camera.updateProjectionMatrix()}e.setRenderTarget(d.map),e.clear();const g=d.getViewportCount();for(let e=0;e<g;e++){const t=d.getViewport(e);s.set(o.x*t.x,o.y*t.y,o.x*t.z,o.y*t.w),h.viewport(s),d.updateMatrices(c,e),i=d.getFrustum(),_(n,a,d.camera,c,this.type)}!0!==d.isPointLightShadow&&3===this.type&&b(d,a),d.needsUpdate=!1}
vendor: 14,252 bytes, line 13
13v=this.type,g.needsUpdate=!1,e.setRenderTarget(l,c,d)}}const H5={[gp]:1,[_p]:6,[yp]:7,[ma]:5,[bp]:0,[Sp]:2,[Ep]:4,[xp]:3};function V5(e,t){const n=new function(){let t=!1;const n=new Qt;let i=null;const r=new Qt(0,0,0,0);return{setMask:function(n){i!==n&&!t&&(e.colorMask(n,n,n,n),i=n)},setLocked:function(e){t=e},setClear:function(t,i,o,s,a){!0===a&&(t*=s,i*=s,o*=s),n.set(t,i,o,s),!1===r.equals(n)&&(e.clearColor(t,i,o,s),r.copy(n))},reset:function(){t=!1,i=null,r.set(-1,0,0,0)}}},i=new function(){let n=!1,i=!1,r=null,o=null,s=null;return{setReversed:function(e){if(i!==e){const n=t.get("EXT_clip_control");e?n.clipControlEXT(n.LOWER_LEFT_EXT,n.ZERO_TO_ONE_EXT):n.clipControlEXT(n.LOWER_LEFT_EXT,n.NEGATIVE_ONE_TO_ONE_EXT),i=e;const r=s;s=null,this.setClear(r)}},getReversed:function(){return i},setTest:function(t){t?B(e.DEPTH_TEST):$(e.DEPTH_TEST)},setMask:function(t){r!==t&&!n&&(e.depthMask(t),r=t)},setFunc:function(t){if(i&&(t=H5[t]),o!==t){switch(t){case 0:e.depthFunc(e.NEVER);break;case 1:e.depthFunc(e.ALWAYS);break;case 2:e.depthFunc(e.LESS);break;case 3:default:e.depthFunc(e.LEQUAL);break;case 4:e.depthFunc(e.EQUAL);break;case 5:e.depthFunc(e.GEQUAL);break;case 6:e.depthFunc(e.GREATER);break;case 7:e.depthFunc(e.NOTEQUAL)}o=t}},setLocked:function(e){n=e},setClear:function(t){s!==t&&(i&&(t=1-t),e.clearDepth(t),s=t)},reset:function(){n=!1,r=null,o=null,s=null,i=!1}}},r=new function(){let t=!1,n=null,i=null,r=null,o=null,s=null,a=null,l=null,c=null;return{setTest:function(n){t||(n?B(e.STENCIL_TEST):$(e.STENCIL_TEST))},setMask:function(i){n!==i&&!t&&(e.stencilMask(i),n=i)},setFunc:function(t,n,s){(i!==t||r!==n||o!==s)&&(e.stencilFunc(t,n,s),i=t,r=n,o=s)},setOp:function(t,n,i){(s!==t||a!==n||l!==i)&&(e.stencilOp(t,n,i),s=t,a=n,l=i)},setLocked:function(e){t=e},setClear:function(t){c!==t&&(e.clearStencil(t),c=t)},reset:function(){t=!1,n=null,i=null,r=null,o=null,s=null,a=null,l=null,c=null}}},o=new WeakMap,s=new WeakMap;let a={},l={},c=new WeakMap,u=[],d=null,h=!1,p=null,f=null,m=null,g=null,v=null,b=null,y=null,_=new Ut(0,0,0),x=0,S=!1,w=null,M=null,E=null,T=null,C=null;const R=e.getParameter(e.MAX_COMBINED_TEXTURE_IMAGE_UNITS);let A=!1,L=0;const P=e.getParameter(e.VERSION);-1!==P.indexOf("WebGL")?(L=parseFloat(/^WebGL (\d)/.exec(P)[1]),A=L>=1):-1!==P.indexOf("OpenGL ES")&&(L=parseFloat(/^OpenGL ES (\d)/.exec(P)[1]),A=L>=2);let N=null,D={};const I=e.getParameter(e.SCISSOR_BOX),O=e.getParameter(e.VIEWPORT),U=(new Qt).fromArray(I),k=(new Qt).fromArray(O);function F(t,n,i,r){const o=new Uint8Array(4),s=e.createTexture();e.bindTexture(t,s),e.texParameteri(t,e.TEXTURE_MIN_FILTER,e.NEAREST),e.texParameteri(t,e.TEXTURE_MAG_FILTER,e.NEAREST);for(let s=0;s<i;s++)t===e.TEXTURE_3D||t===e.TEXTURE_2D_ARRAY?e.texImage3D(n,0,e.RGBA,1,1,r,0,e.RGBA,e.UNSIGNED_BYTE,o):e.texImage2D(n+s,0,e.RGBA,1,1,0,e.RGBA,e.UNSIGNED_BYTE,o);return s}const z={};function B(t){!0!==a[t]&&(e.enable(t),a[t]=!0)}function $(t){!1!==a[t]&&(e.disable(t),a[t]=!1)}z[e.TEXTURE_2D]=F(e.TEXTURE_2D,e.TEXTURE_2D,1),z[e.TEXTURE_CUBE_MAP]=F(e.TEXTURE_CUBE_MAP,e.TEXTURE_CUBE_MAP_POSITIVE_X,6),z[e.TEXTURE_2D_ARRAY]=F(e.TEXTURE_2D_ARRAY,e.TEXTURE_2D_ARRAY,1,1),z[e.TEXTURE_3D]=F(e.TEXTURE_3D,e.TEXTURE_3D,1,1),n.setClear(0,0,0,1),i.setClear(1),r.setClear(0),B(e.DEPTH_TEST),i.setFunc(3),W(!1),j(1),B(e.CULL_FACE),V(0);const G={[Ho]:e.FUNC_ADD,[bL]:e.FUNC_SUBTRACT,[_L]:e.FUNC_REVERSE_SUBTRACT};G[yL]=e.MIN,G[xL]=e.MAX;const H={[SL]:e.ZERO,[EL]:e.ONE,[wL]:e.SRC_COLOR,[mp]:e.SRC_ALPHA,[RL]:e.SRC_ALPHA_SATURATE,[CL]:e.DST_COLOR,[TL]:e.DST_ALPHA,[ML]:e.ONE_MINUS_SRC_COLOR,[vp]:e.ONE_MINUS_SRC_ALPHA,[PL]:e.ONE_MINUS_DST_COLOR,[AL]:e.ONE_MINUS_DST_ALPHA,[LL]:e.CONSTANT_COLOR,[DL]:e.ONE_MINUS_CONSTANT_COLOR,[IL]:e.CONSTANT_ALPHA,[NL]:e.ONE_MINUS_CONSTANT_ALPHA};function V(t,n,i,r,o,s,a,l,c,u){if(0!==t){if(!1===h&&(B(e.BLEND),h=!0),5===t)o=o||n,s=s||i,a=a||r,(n!==f||o!==v)&&(e.blendEquationSeparate(G[n],G[o]),f=n,v=o),(i!==m||r!==g||s!==b||a!==y)&&(e.blendFuncSeparate(H[i],H[r],H[s],H[a]),m=i,g=r,b=s,y=a),(!1===l.equals(_)||c!==x)&&(e.blendColor(l.r,l.g,l.b,c),_.copy(l),x=c),p=t,S=!1;else if(t!==p||u!==S){if((f!==Ho||v!==Ho)&&(e.blendEquation(e.FUNC_ADD),f=Ho,v=Ho),u)switch(t){case 1:e.blendFuncSeparate(e.ONE,e.ONE_MINUS_SRC_ALPHA,e.ONE,e.ONE_MINUS_SRC_ALPHA);break;case 2:e.blendFunc(e.ONE,e.ONE);break;case 3:e.blendFuncSeparate(e.ZERO,e.ONE_MINUS_SRC_COLOR,e.ZERO,e.ONE);break;case 4:e.blendFuncSeparate(e.DST_COLOR,e.ONE_MINUS_SRC_ALPHA,e.ZERO,e.ONE);break;default:console.error("THREE.WebGLState: Invalid blending: ",t)}else switch(t){case 1:e.blendFuncSeparate(e.SRC_ALPHA,e.ONE_MINUS_SRC_ALPHA,e.ONE,e.ONE_MINUS_SRC_ALPHA);break;case 2:e.blendFuncSeparate(e.SRC_ALPHA,e.ONE,e.ONE,e.ONE);break;case 3:console.error("THREE.WebGLState: SubtractiveBlending requires material.premultipliedAlpha = true");break;case 4:console.error("THREE.WebGLState: MultiplyBlending requires material.premultipliedAlpha = true");break;default:console.error("THREE.WebGLState: Invalid blending: ",t)}m=null,g=null,b=null,y=null,_.set(0,0,0),x=0,p=t,S=u}}else!0===h&&($(e.BLEND),h=!1)}function W(t){w!==t&&(t?e.frontFace(e.CW):e.frontFace(e.CCW),w=t)}function j(t){0!==t?(B(e.CULL_FACE),t!==M&&(1===t?e.cullFace(e.BACK):2===t?e.cullFace(e.FRONT):e.cullFace(e.FRONT_AND_BACK))):$(e.CULL_FACE),M=t}function X(t,n,i){t?(B(e.POLYGON_OFFSET_FILL),(T!==n||C!==i)&&(e.polygonOffset(n,i),T=n,C=i)):$(e.POLYGON_OFFSET_FILL)}return{buffers:{color:n,depth:i,stencil:r},enable:B,disable:$,bindFramebuffer:function(t,n){return l[t]!==n&&(e.bindFramebuffer(t,n),l[t]=n,t===e.DRAW_FRAMEBUFFER&&(l[e.FRAMEBUFFER]=n),t===e.FRAMEBUFFER&&(l[e.DRAW_FRAMEBUFFER]=n),!0)},drawBuffers:function(t,n){let i=u,r=!1;if(t){i=c.get(n),void 0===i&&(i=[],c.set(n,i));const o=t.textures;if(i.length!==o.length||i[0]!==e.COLOR_ATTACHMENT0){for(let t=0,n=o.length;t<n;t++)i[t]=e.COLOR_ATTACHMENT0+t;i.length=o.length,r=!0}}else i[0]!==e.BACK&&(i[0]=e.BACK,r=!0);r&&e.drawBuffers(i)},useProgram:function(t){return d!==t&&(e.useProgram(t),d=t,!0)},setBlending:V,setMaterial:function(t,o){2===t.side?$(e.CULL_FACE):B(e.CULL_FACE);let s=1===t.side;o&&(s=!s),W(s),1===t.blending&&!1===t.transparent?V(0):V(t.blending,t.blendEquation,t.blendSrc,t.blendDst,t.blendEquationAlpha,t.blendSrcAlpha,t.blendDstAlpha,t.blendColor,t.blendAlpha,t.premultipliedAlpha),i.setFunc(t.depthFunc),i.setTest(t.depthTest),i.setMask(t.depthWrite),n.setMask(t.colorWrite);const a=t.stencilWrite;r.setTest(a),a&&(r.setMask(t.stencilWriteMask),r.setFunc(t.stencilFunc,t.stencilRef,t.stencilFuncMask),r.setOp(t.stencilFail,t.stencilZFail,t.stencilZPass)),X(t.polygonOffset,t.polygonOffsetFactor,t.polygonOffsetUnits),!0===t.alphaToCoverage?B(e.SAMPLE_ALPHA_TO_COVERAGE):$(e.SAMPLE_ALPHA_TO_COVERAGE)},setFlipSided:W,setCullFace:j,setLineWidth:function(t){t!==E&&(A&&e.lineWidth(t),E=t)},setPolygonOffset:X,setScissorTest:function(t){t?B(e.SCISSOR_TEST):$(e.SCISSOR_TEST)},activeTexture:function(t){void 0===t&&(t=e.TEXTURE0+R-1),N!==t&&(e.activeTexture(t),N=t)},bindTexture:function(t,n,i){void 0===i&&(i=null===N?e.TEXTURE0+R-1:N);let r=D[i];void 0===r&&(r={type:void 0,texture:void 0},D[i]=r),(r.type!==t||r.texture!==n)&&(N!==i&&(e.activeTexture(i),N=i),e.bindTexture(t,n||z[t]),r.type=t,r.texture=n)},unbindTexture:function(){const t=D[N];void 0!==t&&void 0!==t.type&&(e.bindTexture(t.type,null),t.type=void 0,t.texture=void 0)},compressedTexImage2D:function(){try{e.compressedTexImage2D(...arguments)}catch(e){console.error("THREE.WebGLState:",e)}},compressedTexImage3D:function(){try{e.compressedTexImage3D(...arguments)}catch(e){console.error("THREE.WebGLState:",e)}},texImage2D:function(){try{e.texImage2D(...arguments)}catch(e){console.error("THREE.WebGLState:",e)}},texImage3D:function(){try{e.texImage3D(...arguments)}catch(e){console.error("THREE.WebGLState:",e)}},updateUBOMapping:function(t,n){let i=s.get(n);void 0===i&&(i=new WeakMap,s.set(n,i));let r=i.get(t);void 0===r&&(r=e.getUniformBlockIndex(n,t.name),i.set(t,r))},uniformBlockBinding:function(t,n){const i=s.get(n).get(t);o.get(n)!==i&&(e.uniformBlockBinding(n,i,t.__bindingPointIndex),o.set(n,i))},texStorage2D:function(){try{e.texStorage2D(...arguments)}catch(e){console.error("THREE.WebGLState:",e)}},texStorage3D:function(){try{e.texStorage3D(...arguments)}catch(e){console.error("THREE.WebGLState:",e)}},texSubImage2D:function(){try{e.texSubImage2D(...arguments)}catch(e){console.error("THREE.WebGLState:",e)}},texSubImage3D:function(){try{e.texSubImage3D(...arguments)}catch(e){console.error("THREE.WebGLState:",e)}},compressedTexSubImage2D:function(){try{e.compressedTexSubImage2D(...arguments)}catch(e){console.error("THREE.WebGLState:",e)}},compressedTexSubImage3D:function(){try{e.compressedTexSubImage3D(...arguments)}catch(e){console.error("THREE.WebGLState:",e)}},scissor:function(t){!1===U.equals(t)&&(e.scissor(t.x,t.y,t.z,t.w),U.copy(t))},viewport:function(t){!1===k.equals(t)&&(e.viewport(t.x,t.y,t.z,t.w),k.copy(t))},reset:function(){e.disable(e.BLEND),e.disable(e.CULL_FACE),e.disable(e.DEPTH_TEST),e.disable(e.POLYGON_OFFSET_FILL),e.disable(e.SCISSOR_TEST),e.disable(e.STENCIL_TEST),e.disable(e.SAMPLE_ALPHA_TO_COVERAGE),e.blendEquation(e.FUNC_ADD),e.blendFunc(e.ONE,e.ZERO),e.blendFuncSeparate(e.ONE,e.ZERO,e.ONE,e.ZERO),e.blendColor(0,0,0,0),e.colorMask(!0,!0,!0,!0),e.clearColor(0,0,0,0),e.depthMask(!0),e.depthFunc(e.LESS),i.setReversed(!1),e.clearDepth(1),e.stencilMask(4294967295),e.stencilFunc(e.ALWAYS,0,4294967295),e.stencilOp(e.KEEP,e.KEEP,e.KEEP),e.clearStencil(0),e.cullFace(e.BACK),e.frontFace(e.CCW),e.polygonOffset(0,0),e.activeTexture(e.TEXTURE0),e.bindFramebuffer(e.FRAMEBUFFER,null),e.bindFramebuffer(e.DRAW_FRAMEBUFFER,null),e.bindFramebuffer(e.READ_FRAMEBUFFER,null),e.useProgram(null),e.lineWidth(1),e.scissor(0,0,e.canvas.width,e.canvas.height),e.viewport(0,0,e.canvas.width,e.canvas.height),a={},N=null,D={},l={},c=new WeakMap,u=[],d=null,h=!1,p=null,f=null,m=null,g=null,v=null,b=null,y=null,_=new Ut(0,0,0),x=0,S=!1,w=null,M=null,E=null,T=null,C=null,U.set(0,0,e.canvas.width,e.canvas.height),k.set(0,0,e.canvas.width,e.canvas.height),n.reset(),i.reset(),r.reset()}}}function $5(e,t,n,i,r,o,s){const a=t.has("WEBGL_multisampled_render_to_texture")?t.get("WEBGL_multisampled_render_to_texture"):null,l=!(typeof navigator>"u")&&/OculusBrowser/g.test(navigator.userAgent),c=new tt,u=new WeakMap;let d;const h=new WeakMap;let p=!1;try{p=typeof OffscreenCanvas<"u"&&null!==new OffscreenCanvas(1,1).getContext("2d")}catch{}function f(e,t){return p?new OffscreenCanvas(e,t):Fd("canvas")}function m(e,t,n){let i=1;const r=H(e);if((r.width>n||r.height>n)&&(i=n/Math.max(r.width,r.height)),i<1){if(typeof HTMLImageElement<"u"&&e instanceof HTMLImageElement||typeof HTMLCanvasElement<"u"&&e instanceof HTMLCanvasElement||typeof ImageBitmap<"u"&&e instanceof ImageBitmap||typeof VideoFrame<"u"&&e instanceof VideoFrame){const n=Math.floor(i*r.width),o=Math.floor(i*r.height);void 0===d&&(d=f(n,o));const s=t?f(n,o):d;return s.width=n,s.height=o,s.getContext("2d").drawImage(e,0,0,n,o),console.warn("THREE.WebGLRenderer: Texture has been resized from ("+r.width+"x"+r.height+") to ("+n+"x"+o+")."),s}return"data"in e&&console.warn("THREE.WebGLRenderer: Image in DataTexture is too big ("+r.width+"x"+r.height+")."),e}return e}function g(e){return e.generateMipmaps}function v(t){e.generateMipmap(t)}function b(t){return t.isWebGLCubeRenderTarget?e.TEXTURE_CUBE_MAP:t.isWebGL3DRenderTarget?e.TEXTURE_3D:t.isWebGLArrayRenderTarget||t.isCompressedArrayTexture?e.TEXTURE_2D_ARRAY:e.TEXTURE_2D}function y(n,i,r,o,s=!1){if(null!==n){if(void 0!==e[n])return e[n];console.warn("THREE.WebGLRenderer: Attempt to use non-existing WebGL internal format '"+n+"'")}let a=i;if(i===e.RED&&(r===e.FLOAT&&(a=e.R32F),r===e.HALF_FLOAT&&(a=e.R16F),r===e.UNSIGNED_BYTE&&(a=e.R8)),i===e.RED_INTEGER&&(r===e.UNSIGNED_BYTE&&(a=e.R8UI),r===e.UNSIGNED_SHORT&&(a=e.R16UI),r===e.UNSIGNED_INT&&(a=e.R32UI),r===e.BYTE&&(a=e.R8I),r===e.SHORT&&(a=e.R16I),r===e.INT&&(a=e.R32I)),i===e.RG&&(r===e.FLOAT&&(a=e.RG32F),r===e.HALF_FLOAT&&(a=e.RG16F),r===e.UNSIGNED_BYTE&&(a=e.RG8)),i===e.RG_INTEGER&&(r===e.UNSIGNED_BYTE&&(a=e.RG8UI),r===e.UNSIGNED_SHORT&&(a=e.RG16UI),r===e.UNSIGNED_INT&&(a=e.RG32UI),r===e.BYTE&&(a=e.RG8I),r===e.SHORT&&(a=e.RG16I),r===e.INT&&(a=e.RG32I)),i===e.RGB_INTEGER&&(r===e.UNSIGNED_BYTE&&(a=e.RGB8UI),r===e.UNSIGNED_SHORT&&(a=e.RGB16UI),r===e.UNSIGNED_INT&&(a=e.RGB32UI),r===e.BYTE&&(a=e.RGB8I),r===e.SHORT&&(a=e.RGB16I),r===e.INT&&(a=e.RGB32I)),i===e.RGBA_INTEGER&&(r===e.UNSIGNED_BYTE&&(a=e.RGBA8UI),r===e.UNSIGNED_SHORT&&(a=e.RGBA16UI),r===e.UNSIGNED_INT&&(a=e.RGBA32UI),r===e.BYTE&&(a=e.RGBA8I),r===e.SHORT&&(a=e.RGBA16I),r===e.INT&&(a=e.RGBA32I)),i===e.RGB&&(r===e.UNSIGNED_INT_5_9_9_9_REV&&(a=e.RGB9_E5),r===e.UNSIGNED_INT_10F_11F_11F_REV&&(a=e.R11F_G11F_B10F)),i===e.RGBA){const t=s?Od:Ht.getTransfer(o);r===e.FLOAT&&(a=e.RGBA32F),r===e.HALF_FLOAT&&(a=e.RGBA16F),r===e.UNSIGNED_BYTE&&(a=t===jt?e.SRGB8_ALPHA8:e.RGBA8),r===e.UNSIGNED_SHORT_4_4_4_4&&(a=e.RGBA4),r===e.UNSIGNED_SHORT_5_5_5_1&&(a=e.RGB5_A1)}return(a===e.R16F||a===e.R32F||a===e.RG16F||a===e.RG32F||a===e.RGBA16F||a===e.RGBA32F)&&t.get("EXT_color_buffer_float"),a}function _(t,n){let i;return t?null===n||n===xo||n===ba?i=e.DEPTH24_STENCIL8:n===Fr?i=e.DEPTH32F_STENCIL8:n===Rl&&(i=e.DEPTH24_STENCIL8,console.warn("DepthTexture: 16 bit depth attachment is not supported with stencil. Using 24-bit attachment.")):null===n||n===xo||n===ba?i=e.DEPTH_COMPONENT24:n===Fr?i=e.DEPTH_COMPONENT32F:n===Rl&&(i=e.DEPTH_COMPONENT16),i}function x(e,t){return!0===g(e)||e.isFramebufferTexture&&e.minFilter!==_i&&e.minFilter!==zn?Math.log2(Math.max(t.width,t.height))+1:void 0!==e.mipmaps&&e.mipmaps.length>0?e.mipmaps.length:e.isCompressedTexture&&Array.isArray(e.image)?t.mipmaps.length:1}function S(e){const t=e.target;t.removeEventListener("dispose",S),function(e){const t=i.get(e);if(void 0===t.__webglInit)return;const n=e.source,r=h.get(n);if(r){const i=r[t.__cacheKey];i.usedTimes--,0===i.usedTimes&&M(e),0===Object.keys(r).length&&h.delete(n)}i.remove(e)}(t),t.isVideoTexture&&u.delete(t)}function w(t){const n=t.target;n.removeEventListener("dispose",w),function(t){const n=i.get(t);if(t.depthTexture&&(t.depthTexture.dispose(),i.remove(t.depthTexture)),t.isWebGLCubeRen
13derTarget)for(let t=0;t<6;t++){if(Array.isArray(n.__webglFramebuffer[t]))for(let i=0;i<n.__webglFramebuffer[t].length;i++)e.deleteFramebuffer(n.__webglFramebuffer[t][i]);else e.deleteFramebuffer(n.__webglFramebuffer[t]);n.__webglDepthbuffer&&e.deleteRenderbuffer(n.__webglDepthbuffer[t])}else{if(Array.isArray(n.__webglFramebuffer))for(let t=0;t<n.__webglFramebuffer.length;t++)e.deleteFramebuffer(n.__webglFramebuffer[t]);else e.deleteFramebuffer(n.__webglFramebuffer);if(n.__webglDepthbuffer&&e.deleteRenderbuffer(n.__webglDepthbuffer),n.__webglMultisampledFramebuffer&&e.deleteFramebuffer(n.__webglMultisampledFramebuffer),n.__webglColorRenderbuffer)for(let t=0;t<n.__webglColorRenderbuffer.length;t++)n.__webglColorRenderbuffer[t]&&e.deleteRenderbuffer(n.__webglColorRenderbuffer[t]);n.__webglDepthRenderbuffer&&e.deleteRenderbuffer(n.__webglDepthRenderbuffer)}const r=t.textures;for(let t=0,n=r.length;t<n;t++){const n=i.get(r[t]);n.__webglTexture&&(e.deleteTexture(n.__webglTexture),s.memory.textures--),i.remove(r[t])}i.remove(t)}(n)}function M(t){const n=i.get(t);e.deleteTexture(n.__webglTexture);const r=t.source;delete h.get(r)[n.__cacheKey],s.memory.textures--}let E=0;function T(t,r){const o=i.get(t);if(t.isVideoTexture&&function(e){const t=s.render.frame;u.get(e)!==t&&(u.set(e,t),e.update())}(t),!1===t.isRenderTargetTexture&&!0!==t.isExternalTexture&&t.version>0&&o.__version!==t.version){const e=t.image;if(null===e)console.warn("THREE.WebGLRenderer: Texture marked for update but no image data found.");else{if(!1!==e.complete)return void D(o,t,r);console.warn("THREE.WebGLRenderer: Texture marked for update but image is incomplete")}}else t.isExternalTexture&&(o.__webglTexture=t.sourceTexture?t.sourceTexture:null);n.bindTexture(e.TEXTURE_2D,o.__webglTexture,e.TEXTURE0+r)}const C={[Tp]:e.REPEAT,[Ur]:e.CLAMP_TO_EDGE,[Ap]:e.MIRRORED_REPEAT},R={[_i]:e.NEAREST,[GL]:e.NEAREST_MIPMAP_NEAREST,[Pu]:e.NEAREST_MIPMAP_LINEAR,[zn]:e.LINEAR,[Kf]:e.LINEAR_MIPMAP_NEAREST,[Go]:e.LINEAR_MIPMAP_LINEAR},A={[qL]:e.NEVER,[JL]:e.ALWAYS,[YL]:e.LESS,[v1]:e.LEQUAL,[jL]:e.EQUAL,[ZL]:e.GEQUAL,[KL]:e.GREATER,[QL]:e.NOTEQUAL};function L(n,o){if(o.type===Fr&&!1===t.has("OES_texture_float_linear")&&(o.magFilter===zn||o.magFilter===Kf||o.magFilter===Pu||o.magFilter===Go||o.minFilter===zn||o.minFilter===Kf||o.minFilter===Pu||o.minFilter===Go)&&console.warn("THREE.WebGLRenderer: Unable to use linear filtering with floating point textures. OES_texture_float_linear not supported on this device."),e.texParameteri(n,e.TEXTURE_WRAP_S,C[o.wrapS]),e.texParameteri(n,e.TEXTURE_WRAP_T,C[o.wrapT]),(n===e.TEXTURE_3D||n===e.TEXTURE_2D_ARRAY)&&e.texParameteri(n,e.TEXTURE_WRAP_R,C[o.wrapR]),e.texParameteri(n,e.TEXTURE_MAG_FILTER,R[o.magFilter]),e.texParameteri(n,e.TEXTURE_MIN_FILTER,R[o.minFilter]),o.compareFunction&&(e.texParameteri(n,e.TEXTURE_COMPARE_MODE,e.COMPARE_REF_TO_TEXTURE),e.texParameteri(n,e.TEXTURE_COMPARE_FUNC,A[o.compareFunction])),!0===t.has("EXT_texture_filter_anisotropic")){if(o.magFilter===_i||o.minFilter!==Pu&&o.minFilter!==Go||o.type===Fr&&!1===t.has("OES_texture_float_linear"))return;if(o.anisotropy>1||i.get(o).__currentAnisotropy){const s=t.get("EXT_texture_filter_anisotropic");e.texParameterf(n,s.TEXTURE_MAX_ANISOTROPY_EXT,Math.min(o.anisotropy,r.getMaxAnisotropy())),i.get(o).__currentAnisotropy=o.anisotropy}}}function P(t,n){let i=!1;void 0===t.__webglInit&&(t.__webglInit=!0,n.addEventListener("dispose",S));const r=n.source;let o=h.get(r);void 0===o&&(o={},h.set(r,o));const a=function(e){const t=[];
vendor: 4,884 bytes, line 13
13return t.push(e.wrapS),t.push(e.wrapT),t.push(e.wrapR||0),t.push(e.magFilter),t.push(e.minFilter),t.push(e.anisotropy),t.push(e.internalFormat),t.push(e.format),t.push(e.type),t.push(e.generateMipmaps),t.push(e.premultiplyAlpha),t.push(e.flipY),t.push(e.unpackAlignment),t.push(e.colorSpace),t.join()}(n);if(a!==t.__cacheKey){void 0===o[a]&&(o[a]={texture:e.createTexture(),usedTimes:0},s.memory.textures++,i=!0),o[a].usedTimes++;const r=o[t.__cacheKey];void 0!==r&&(o[t.__cacheKey].usedTimes--,0===r.usedTimes&&M(n)),t.__cacheKey=a,t.__webglTexture=o[a].texture}return i}function N(e,t,n){return Math.floor(Math.floor(e/n)/t)}function D(t,s,a){let l=e.TEXTURE_2D;(s.isDataArrayTexture||s.isCompressedArrayTexture)&&(l=e.TEXTURE_2D_ARRAY),s.isData3DTexture&&(l=e.TEXTURE_3D);const c=P(t,s),u=s.source;n.bindTexture(l,t.__webglTexture,e.TEXTURE0+a);const d=i.get(u);if(u.version!==d.__version||!0===c){n.activeTexture(e.TEXTURE0+a);const t=Ht.getPrimaries(Ht.workingColorSpace),i=""===s.colorSpace?null:Ht.getPrimaries(s.colorSpace),h=""===s.colorSpace||t===i?e.NONE:e.BROWSER_DEFAULT_WEBGL;e.pixelStorei(e.UNPACK_FLIP_Y_WEBGL,s.flipY),e.pixelStorei(e.UNPACK_PREMULTIPLY_ALPHA_WEBGL,s.premultiplyAlpha),e.pixelStorei(e.UNPACK_ALIGNMENT,s.unpackAlignment),e.pixelStorei(e.UNPACK_COLORSPACE_CONVERSION_WEBGL,h);let p=m(s.image,!1,r.maxTextureSize);p=G(s,p);const f=o.convert(s.format,s.colorSpace),b=o.convert(s.type);let S,w=y(s.internalFormat,f,b,s.colorSpace,s.isVideoTexture);L(l,s);const M=s.mipmaps,E=!0!==s.isVideoTexture,T=void 0===d.__version||!0===c,C=u.dataReady,R=x(s,p);if(s.isDepthTexture)w=_(s.format===_a,s.type),T&&(E?n.texStorage2D(e.TEXTURE_2D,1,w,p.width,p.height):n.texImage2D(e.TEXTURE_2D,0,w,p.width,p.height,0,f,b,null));else if(s.isDataTexture)if(M.length>0){E&&T&&n.texStorage2D(e.TEXTURE_2D,R,w,M[0].width,M[0].height);for(let t=0,i=M.length;t<i;t++)S=M[t],E?C&&n.texSubImage2D(e.TEXTURE_2D,t,0,0,S.width,S.height,f,b,S.data):n.texImage2D(e.TEXTURE_2D,t,w,S.width,S.height,0,f,b,S.data);s.generateMipmaps=!1}else E?(T&&n.texStorage2D(e.TEXTURE_2D,R,w,p.width,p.height),C&&function(t,i,r,o){const s=t.updateRanges;if(0===s.length)n.texSubImage2D(e.TEXTURE_2D,0,0,0,i.width,i.height,r,o,i.data);else{s.sort(((e,t)=>e.start-t.start));let a=0;for(let e=1;e<s.length;e++){const t=s[a],n=s[e],r=t.start+t.count,o=N(n.start,i.width,4),l=N(t.start,i.width,4);n.start<=r+1&&o===l&&N(n.start+n.count-1,i.width,4)===o?t.count=Math.max(t.count,n.start+n.count-t.start):(++a,s[a]=n)}s.length=a+1;const l=e.getParameter(e.UNPACK_ROW_LENGTH),c=e.getParameter(e.UNPACK_SKIP_PIXELS),u=e.getParameter(e.UNPACK_SKIP_ROWS);e.pixelStorei(e.UNPACK_ROW_LENGTH,i.width);for(let t=0,a=s.length;t<a;t++){const a=s[t],l=Math.floor(a.start/4),c=Math.ceil(a.count/4),u=l%i.width,d=Math.floor(l/i.width),h=c,p=1;e.pixelStorei(e.UNPACK_SKIP_PIXELS,u),e.pixelStorei(e.UNPACK_SKIP_ROWS,d),n.texSubImage2D(e.TEXTURE_2D,0,u,d,h,p,r,o,i.data)}t.clearUpdateRanges(),e.pixelStorei(e.UNPACK_ROW_LENGTH,l),e.pixelStorei(e.UNPACK_SKIP_PIXELS,c),e.pixelStorei(e.UNPACK_SKIP_ROWS,u)}}(s,p,f,b)):n.texImage2D(e.TEXTURE_2D,0,w,p.width,p.height,0,f,b,p.data);else if(s.isCompressedTexture)if(s.isCompressedArrayTexture){E&&T&&n.texStorage3D(e.TEXTURE_2D_ARRAY,R,w,M[0].width,M[0].height,p.depth);for(let t=0,i=M.length;t<i;t++)if(S=M[t],s.format!==Di)if(null!==f)if(E){if(C)if(s.layerUpdates.size>0){const i=vb(S.width,S.height,s.format,s.type);for(const r of s.layerUpdates){const o=S.data.subarray(r*i/S.data.BYTES_PER_ELEMENT,(r+1)*i/S.data.BYTES_PER_ELEMENT);n.compressedTexSubImage3D(e.TEXTURE_2D_ARRAY,t,0,0,r,S.width,S.height,1,f,o)}s.clearLayerUpdates()}else n.compressedTexSubImage3D(e.TEXTURE_2D_ARRAY,t,0,0,0,S.width,S.height,p.depth,f,S.data)}else n.compressedTexImage3D(e.TEXTURE_2D_ARRAY,t,w,S.width,S.height,p.depth,0,S.data,0,0);else console.warn("THREE.WebGLRenderer: Attempt to load unsupported compressed texture format in .uploadTexture()");else E?C&&n.texSubImage3D(e.TEXTURE_2D_ARRAY,t,0,0,0,S.width,S.height,p.depth,f,b,S.data):n.texImage3D(e.TEXTURE_2D_ARRAY,t,w,S.width,S.height,p.depth,0,f,b,S.data)}else{E&&T&&n.texStorage2D(e.TEXTURE_2D,R,w,M[0].width,M[0].height);for(let t=0,i=M.length;t<i;t++)S=M[t],s.format!==Di?null!==f?E?C&&n.compressedTexSubImage2D(e.TEXTURE_2D,t,0,0,S.width,S.height,f,S.data):n.compressedTexImage2D(e.TEXTURE_2D,t,w,S.width,S.height,0,S.data):console.warn("THREE.WebGLRenderer: Attempt to load unsupported compressed texture format in .uploadTexture()"):E?C&&n.texSubImage2D(e.TEXTURE_2D,t,0,0,S.width,S.height,f,b,S.data):n.texImage2D(e.TEXTURE_2D,t,w,S.width,S.height,0,f,b,S.data)}else if(s.isDataArrayTexture)if(E){if(T&&n.texStorage3D(e.TEXTURE_2D_ARRAY,R,w,p.width,p.height,p.depth),C)if(s.layerUpdates.size>0){const t=vb(p.width,p.height,s.format,s.type);for(const i of s.layerUpdates){const r=p.data.subarray(i*t/p.data.BYTES_PER_ELEMENT,(i+1)
vendor: 6,051 bytes, line 13
13*t/p.data.BYTES_PER_ELEMENT);n.texSubImage3D(e.TEXTURE_2D_ARRAY,0,0,0,i,p.width,p.height,1,f,b,r)}s.clearLayerUpdates()}else n.texSubImage3D(e.TEXTURE_2D_ARRAY,0,0,0,0,p.width,p.height,p.depth,f,b,p.data)}else n.texImage3D(e.TEXTURE_2D_ARRAY,0,w,p.width,p.height,p.depth,0,f,b,p.data);else if(s.isData3DTexture)E?(T&&n.texStorage3D(e.TEXTURE_3D,R,w,p.width,p.height,p.depth),C&&n.texSubImage3D(e.TEXTURE_3D,0,0,0,0,p.width,p.height,p.depth,f,b,p.data)):n.texImage3D(e.TEXTURE_3D,0,w,p.width,p.height,p.depth,0,f,b,p.data);else if(s.isFramebufferTexture){if(T)if(E)n.texStorage2D(e.TEXTURE_2D,R,w,p.width,p.height);else{let t=p.width,i=p.height;for(let r=0;r<R;r++)n.texImage2D(e.TEXTURE_2D,r,w,t,i,0,f,b,null),t>>=1,i>>=1}}else if(M.length>0){if(E&&T){const t=H(M[0]);n.texStorage2D(e.TEXTURE_2D,R,w,t.width,t.height)}for(let t=0,i=M.length;t<i;t++)S=M[t],E?C&&n.texSubImage2D(e.TEXTURE_2D,t,0,0,f,b,S):n.texImage2D(e.TEXTURE_2D,t,w,f,b,S);s.generateMipmaps=!1}else if(E){if(T){const t=H(p);n.texStorage2D(e.TEXTURE_2D,R,w,t.width,t.height)}C&&n.texSubImage2D(e.TEXTURE_2D,0,0,0,f,b,p)}else n.texImage2D(e.TEXTURE_2D,0,w,f,b,p);g(s)&&v(l),d.__version=u.version,s.onUpdate&&s.onUpdate(s)}t.__version=s.version}function I(t,r,s,l,c,u){const d=o.convert(s.format,s.colorSpace),h=o.convert(s.type),p=y(s.internalFormat,d,h,s.colorSpace),f=i.get(r),m=i.get(s);if(m.__renderTarget=r,!f.__hasExternalTextures){const t=Math.max(1,r.width>>u),i=Math.max(1,r.height>>u);c===e.TEXTURE_3D||c===e.TEXTURE_2D_ARRAY?n.texImage3D(c,u,p,t,i,r.depth,0,d,h,null):n.texImage2D(c,u,p,t,i,0,d,h,null)}n.bindFramebuffer(e.FRAMEBUFFER,t),$(r)?a.framebufferTexture2DMultisampleEXT(e.FRAMEBUFFER,l,c,m.__webglTexture,0,B(r)):(c===e.TEXTURE_2D||c>=e.TEXTURE_CUBE_MAP_POSITIVE_X&&c<=e.TEXTURE_CUBE_MAP_NEGATIVE_Z)&&e.framebufferTexture2D(e.FRAMEBUFFER,l,c,m.__webglTexture,u),n.bindFramebuffer(e.FRAMEBUFFER,null)}function O(t,n,i){if(e.bindRenderbuffer(e.RENDERBUFFER,t),n.depthBuffer){const r=n.depthTexture,o=r&&r.isDepthTexture?r.type:null,s=_(n.stencilBuffer,o),l=n.stencilBuffer?e.DEPTH_STENCIL_ATTACHMENT:e.DEPTH_ATTACHMENT,c=B(n);$(n)?a.renderbufferStorageMultisampleEXT(e.RENDERBUFFER,c,s,n.width,n.height):i?e.renderbufferStorageMultisample(e.RENDERBUFFER,c,s,n.width,n.height):e.renderbufferStorage(e.RENDERBUFFER,s,n.width,n.height),e.framebufferRenderbuffer(e.FRAMEBUFFER,l,e.RENDERBUFFER,t)}else{const t=n.textures;for(let r=0;r<t.length;r++){const s=t[r],l=o.convert(s.format,s.colorSpace),c=o.convert(s.type),u=y(s.internalFormat,l,c,s.colorSpace),d=B(n);i&&!1===$(n)?e.renderbufferStorageMultisample(e.RENDERBUFFER,d,u,n.width,n.height):$(n)?a.renderbufferStorageMultisampleEXT(e.RENDERBUFFER,d,u,n.width,n.height):e.renderbufferStorage(e.RENDERBUFFER,u,n.width,n.height)}}e.bindRenderbuffer(e.RENDERBUFFER,null)}function U(t,r){if(r&&r.isWebGLCubeRenderTarget)throw new Error("Depth Texture with cube render targets is not supported");if(n.bindFramebuffer(e.FRAMEBUFFER,t),!r.depthTexture||!r.depthTexture.isDepthTexture)throw new Error("renderTarget.depthTexture must be an instance of THREE.DepthTexture");const o=i.get(r.depthTexture);o.__renderTarget=r,(!o.__webglTexture||r.depthTexture.image.width!==r.width||r.depthTexture.image.height!==r.height)&&(r.depthTexture.image.width=r.width,r.depthTexture.image.height=r.height,r.depthTexture.needsUpdate=!0),T(r.depthTexture,0);const s=o.__webglTexture,l=B(r);if(r.depthTexture.format===Ll)$(r)?a.framebufferTexture2DMultisampleEXT(e.FRAMEBUFFER,e.DEPTH_ATTACHMENT,e.TEXTURE_2D,s,0,l):e.framebufferTexture2D(e.FRAMEBUFFER,e.DEPTH_ATTACHMENT,e.TEXTURE_2D,s,0);else{if(r.depthTexture.format!==_a)throw new Error("Unknown depthTexture format");$(r)?a.framebufferTexture2DMultisampleEXT(e.FRAMEBUFFER,e.DEPTH_STENCIL_ATTACHMENT,e.TEXTURE_2D,s,0,l):e.framebufferTexture2D(e.FRAMEBUFFER,e.DEPTH_STENCIL_ATTACHMENT,e.TEXTURE_2D,s,0)}}function k(t){const r=i.get(t),o=!0===t.isWebGLCubeRenderTarget;if(r.__boundDepthTexture!==t.depthTexture){const e=t.depthTexture;if(r.__depthDisposeCallback&&r.__depthDisposeCallback(),e){const t=()=>{delete r.__boundDepthTexture,delete r.__depthDisposeCallback,e.removeEventListener("dispose",t)};e.addEventListener("dispose",t),r.__depthDisposeCallback=t}r.__boundDepthTexture=e}if(t.depthTexture&&!r.__autoAllocateDepthBuffer){if(o)throw new Error("target.depthTexture not supported in Cube render targets");const e=t.texture.mipmaps;e&&e.length>0?U(r.__webglFramebuffer[0],t):U(r.__webglFramebuffer,t)}else if(o){r.__webglDepthbuffer=[];for(let i=0;i<6;i++)if(n.bindFramebuffer(e.FRAMEBUFFER,r.__webglFramebuffer[i]),void 0===r.__webglDepthbuffer[i])r.__webglDepthbuffer[i]=e.createRenderbuffer(),O(r.__webglDepthbuffer[i],t,!1);else{const n=t.stencilBuffer?e.DEPTH_STENCIL_ATTACHMENT:e.DEPTH_ATTACHMENT,o=r.__webglDepthbuffer[i];e.bindRenderbuffer(e.RENDERBUFFER,o),e.framebufferRenderbuffer(e.FRAMEBUFFER,n,e.RENDERBUFFER,o)}}else{const i=t.texture.mipmaps;if(i&&i.length>0?n.bindFramebuffer(e.FRAMEBUFFER,r.__webglFramebuffer[0]):n.bindFramebuffer(e.FRAMEBUFFER,r.__webglFramebuffer),void 0===r.__webglDepthbuffer)r.__webglDepthbuffer=e.createRenderbuffer(),O(r.__webglDepthbuffer,t,!1);else{const n=t.stencilBuffer?e.DEPTH_STENCIL_ATTACHMENT:e.DEPTH_ATTACHMENT,i=r.__webglDepthbuffer;e.bindRenderbuffer(e.RENDERBUFFER,i),e.framebufferRenderbuffer(e.FRAMEBUFFER,n,e.RENDERBUFFER,i)}}n.bindFramebuffer(e.FRAMEBUFFER,null)}const F=[],z=[];function B(e){return Math.min(r.maxSamples,e.samples)}function $(e){const n=i.get(e);return e.samples>0&&!0===t.has("WEBGL_multisampled_render_to_texture")&&!1!==n.__useRenderToTexture}function G(e,t){const n=e.colorSpace,i=e.format,r=e.type;return!0===e.isCompressedTexture||!0===e.isVideoTexture||n!==So&&""!==n&&(Ht.getTransfer(n)===jt?(i!==Di||r!==si)&&console.warn("THREE.WebGLTextures: sRGB encoded textures have to use RGBAFormat and UnsignedByteType."):console.error("THREE.WebGLTextures: Unsupported texture color space:",n)),t}function H(e){return typeof HTMLImageElement<"u"&&e instanceof HTMLImageElement?(c.width=e.naturalWi
13dth||e.width,c.height=e.naturalHeight||e.height):typeof VideoFrame<"u"&&e instanceof VideoFrame?(c.width=e.displayWidth,c.height=e.displayHeight):(c.width=e.width,c.height=e.height),c}this.allocateTextureUnit=function(){const e=E;return e>=r.maxTextures&&console.warn("THREE.WebGLTextures: Trying to use "+e+" texture units while this GPU supports only "+r.maxTextures),E+=1,e},this.resetTextureUnits=function(){E=0},this.setTexture2D=T,this.setTexture2DArray=function(t,r){const o=i.get(t);!1===t.isRenderTargetTexture&&t.version>0&&o.__version!==t.version?D(o,t,r):n.bindTexture(e.TEXTURE_2D_ARRAY,o.__webglTexture,e.TEXTURE0+r)},this.setTexture3D=function(t,r){const o=i.get(t);!1===t.isRenderTargetTexture&&t.version>0&&o.__version!==t.version?D(o,t,r):n.bindTexture(e.TEXTURE_3D,o.__webglTexture,e.TEXTURE0+r)},this.setTextureCube=function(t,s){const a=i.get(t);t.version>0&&a.__version!==t.version?function(t,s,a){if(6!==s.image.length)return;const l=P(t,s),c=s.source;n.bindTexture(e.TEXTURE_CUBE_MAP,t.__webglTexture,e.TEXTURE0+a);const u=i.get(c);if(c.version!==u.__version||!0===l){n.activeTexture(e.TEXTURE0+a);const t=Ht.getPrimaries(Ht.workingColorSpace),i=""===s.colorSpace?null:Ht.getPrimaries(s.colorSpace),d=""===s.colorSpace||t===i?e.NONE:e.BROWSER_DEFAULT_WEBGL;e.pixelStorei(e.UNPACK_FLIP_Y_WEBGL,s.flipY),e.pixelStorei(e.UNPACK_PREMULTIPLY_ALPHA_WEBGL,s.premultiplyAlpha),e.pixelStorei(e.UNPACK_ALIGNMENT,s.unpackAlignment),e.pixelStorei(e.UNPACK_COLORSPACE_CONVERSION_WEBGL,d);const h=s.isCompressedTexture||s.image[0].isCompressedTexture,p=s.image[0]&&s.image[0].isDataTexture,f=[];for(let e=0;e<6;e++)f[e]=h||p?p?s.image[e].image:s.image[e]:m(s.image[e],!0,r.maxCubemapSize),f[e]=G(s,f[e]);const b=f[0],_=o.convert(s.format,s.colorSpace),S=o.convert(s.type),w=y(s.internalFormat,_,S,s.colorSpace),M=!0!==s.isVideoTexture,E=void 0===u.__version||!0===l,T=c.dataReady;let C,R=x(s,b);
vendor: 14,751 bytes, line 13
13if(L(e.TEXTURE_CUBE_MAP,s),h){M&&E&&n.texStorage2D(e.TEXTURE_CUBE_MAP,R,w,b.width,b.height);for(let t=0;t<6;t++){C=f[t].mipmaps;for(let i=0;i<C.length;i++){const r=C[i];s.format!==Di?null!==_?M?T&&n.compressedTexSubImage2D(e.TEXTURE_CUBE_MAP_POSITIVE_X+t,i,0,0,r.width,r.height,_,r.data):n.compressedTexImage2D(e.TEXTURE_CUBE_MAP_POSITIVE_X+t,i,w,r.width,r.height,0,r.data):console.warn("THREE.WebGLRenderer: Attempt to load unsupported compressed texture format in .setTextureCube()"):M?T&&n.texSubImage2D(e.TEXTURE_CUBE_MAP_POSITIVE_X+t,i,0,0,r.width,r.height,_,S,r.data):n.texImage2D(e.TEXTURE_CUBE_MAP_POSITIVE_X+t,i,w,r.width,r.height,0,_,S,r.data)}}}else{if(C=s.mipmaps,M&&E){C.length>0&&R++;const t=H(f[0]);n.texStorage2D(e.TEXTURE_CUBE_MAP,R,w,t.width,t.height)}for(let t=0;t<6;t++)if(p){M?T&&n.texSubImage2D(e.TEXTURE_CUBE_MAP_POSITIVE_X+t,0,0,0,f[t].width,f[t].height,_,S,f[t].data):n.texImage2D(e.TEXTURE_CUBE_MAP_POSITIVE_X+t,0,w,f[t].width,f[t].height,0,_,S,f[t].data);for(let i=0;i<C.length;i++){const r=C[i].image[t].image;M?T&&n.texSubImage2D(e.TEXTURE_CUBE_MAP_POSITIVE_X+t,i+1,0,0,r.width,r.height,_,S,r.data):n.texImage2D(e.TEXTURE_CUBE_MAP_POSITIVE_X+t,i+1,w,r.width,r.height,0,_,S,r.data)}}else{M?T&&n.texSubImage2D(e.TEXTURE_CUBE_MAP_POSITIVE_X+t,0,0,0,_,S,f[t]):n.texImage2D(e.TEXTURE_CUBE_MAP_POSITIVE_X+t,0,w,_,S,f[t]);for(let i=0;i<C.length;i++){const r=C[i];M?T&&n.texSubImage2D(e.TEXTURE_CUBE_MAP_POSITIVE_X+t,i+1,0,0,_,S,r.image[t]):n.texImage2D(e.TEXTURE_CUBE_MAP_POSITIVE_X+t,i+1,w,_,S,r.image[t])}}}g(s)&&v(e.TEXTURE_CUBE_MAP),u.__version=c.version,s.onUpdate&&s.onUpdate(s)}t.__version=s.version}(a,t,s):n.bindTexture(e.TEXTURE_CUBE_MAP,a.__webglTexture,e.TEXTURE0+s)},this.rebindTextures=function(t,n,r){const o=i.get(t);void 0!==n&&I(o.__webglFramebuffer,t,t.texture,e.COLOR_ATTACHMENT0,e.TEXTURE_2D,0),void 0!==r&&k(t)},this.setupRenderTarget=function(t){const r=t.texture,a=i.get(t),l=i.get(r);t.addEventListener("dispose",w);const c=t.textures,u=!0===t.isWebGLCubeRenderTarget,d=c.length>1;if(d||(void 0===l.__webglTexture&&(l.__webglTexture=e.createTexture()),l.__version=r.version,s.memory.textures++),u){a.__webglFramebuffer=[];for(let t=0;t<6;t++)if(r.mipmaps&&r.mipmaps.length>0){a.__webglFramebuffer[t]=[];for(let n=0;n<r.mipmaps.length;n++)a.__webglFramebuffer[t][n]=e.createFramebuffer()}else a.__webglFramebuffer[t]=e.createFramebuffer()}else{if(r.mipmaps&&r.mipmaps.length>0){a.__webglFramebuffer=[];for(let t=0;t<r.mipmaps.length;t++)a.__webglFramebuffer[t]=e.createFramebuffer()}else a.__webglFramebuffer=e.createFramebuffer();if(d)for(let t=0,n=c.length;t<n;t++){const n=i.get(c[t]);void 0===n.__webglTexture&&(n.__webglTexture=e.createTexture(),s.memory.textures++)}if(t.samples>0&&!1===$(t)){a.__webglMultisampledFramebuffer=e.createFramebuffer(),a.__webglColorRenderbuffer=[],n.bindFramebuffer(e.FRAMEBUFFER,a.__webglMultisampledFramebuffer);for(let n=0;n<c.length;n++){const i=c[n];a.__webglColorRenderbuffer[n]=e.createRenderbuffer(),e.bindRenderbuffer(e.RENDERBUFFER,a.__webglColorRenderbuffer[n]);const r=o.convert(i.format,i.colorSpace),s=o.convert(i.type),l=y(i.internalFormat,r,s,i.colorSpace,!0===t.isXRRenderTarget),u=B(t);e.renderbufferStorageMultisample(e.RENDERBUFFER,u,l,t.width,t.height),e.framebufferRenderbuffer(e.FRAMEBUFFER,e.COLOR_ATTACHMENT0+n,e.RENDERBUFFER,a.__webglColorRenderbuffer[n])}e.bindRenderbuffer(e.RENDERBUFFER,null),t.depthBuffer&&(a.__webglDepthRenderbuffer=e.createRenderbuffer(),O(a.__webglDepthRenderbuffer,t,!0)),n.bindFramebuffer(e.FRAMEBUFFER,null)}}if(u){n.bindTexture(e.TEXTURE_CUBE_MAP,l.__webglTexture),L(e.TEXTURE_CUBE_MAP,r);for(let n=0;n<6;n++)if(r.mipmaps&&r.mipmaps.length>0)for(let i=0;i<r.mipmaps.length;i++)I(a.__webglFramebuffer[n][i],t,r,e.COLOR_ATTACHMENT0,e.TEXTURE_CUBE_MAP_POSITIVE_X+n,i);else I(a.__webglFramebuffer[n],t,r,e.COLOR_ATTACHMENT0,e.TEXTURE_CUBE_MAP_POSITIVE_X+n,0);g(r)&&v(e.TEXTURE_CUBE_MAP),n.unbindTexture()}else if(d){for(let r=0,o=c.length;r<o;r++){const o=c[r],s=i.get(o);let l=e.TEXTURE_2D;(t.isWebGL3DRenderTarget||t.isWebGLArrayRenderTarget)&&(l=t.isWebGL3DRenderTarget?e.TEXTURE_3D:e.TEXTURE_2D_ARRAY),n.bindTexture(l,s.__webglTexture),L(l,o),I(a.__webglFramebuffer,t,o,e.COLOR_ATTACHMENT0+r,l,0),g(o)&&v(l)}n.unbindTexture()}else{let i=e.TEXTURE_2D;if((t.isWebGL3DRenderTarget||t.isWebGLArrayRenderTarget)&&(i=t.isWebGL3DRenderTarget?e.TEXTURE_3D:e.TEXTURE_2D_ARRAY),n.bindTexture(i,l.__webglTexture),L(i,r),r.mipmaps&&r.mipmaps.length>0)for(let n=0;n<r.mipmaps.length;n++)I(a.__webglFramebuffer[n],t,r,e.COLOR_ATTACHMENT0,i,n);else I(a.__webglFramebuffer,t,r,e.COLOR_ATTACHMENT0,i,0);g(r)&&v(i),n.unbindTexture()}t.depthBuffer&&k(t)},this.updateRenderTargetMipmap=function(e){const t=e.textures;for(let r=0,o=t.length;r<o;r++){const o=t[r];if(g(o)){const t=b(e),r=i.get(o).__webglTexture;n.bindTexture(t,r),v(t),n.unbindTexture()}}},this.updateMultisampleRenderTarget=function(t){if(t.samples>0)if(!1===$(t)){const r=t.textures,o=t.width,s=t.height;let a=e.COLOR_BUFFER_BIT;const c=t.stencilBuffer?e.DEPTH_STENCIL_ATTACHMENT:e.DEPTH_ATTACHMENT,u=i.get(t),d=r.length>1;if(d)for(let t=0;t<r.length;t++)n.bindFramebuffer(e.FRAMEBUFFER,u.__webglMultisampledFramebuffer),e.framebufferRenderbuffer(e.FRAMEBUFFER,e.COLOR_ATTACHMENT0+t,e.RENDERBUFFER,null),n.bindFramebuffer(e.FRAMEBUFFER,u.__webglFramebuffer),e.framebufferTexture2D(e.DRAW_FRAMEBUFFER,e.COLOR_ATTACHMENT0+t,e.TEXTURE_2D,null,0);n.bindFramebuffer(e.READ_FRAMEBUFFER,u.__webglMultisampledFramebuffer);const h=t.texture.mipmaps;h&&h.length>0?n.bindFramebuffer(e.DRAW_FRAMEBUFFER,u.__webglFramebuffer[0]):n.bindFramebuffer(e.DRAW_FRAMEBUFFER,u.__webglFramebuffer);for(let n=0;n<r.length;n++){if(t.resolveDepthBuffer&&(t.depthBuffer&&(a|=e.DEPTH_BUFFER_BIT),t.stencilBuffer&&t.resolveStencilBuffer&&(a|=e.STENCIL_BUFFER_BIT)),d){e.framebufferRenderbuffer(e.READ_FRAMEBUFFER,e.COLOR_ATTACHMENT0,e.RENDERBUFFER,u.__webglColorRenderbuffer[n]);const t=i.get(r[n]).__webglTexture;e.framebufferTexture2D(e.DRAW_FRAMEBUFFER,e.COLOR_ATTACHMENT0,e.TEXTURE_2D,t,0)}e.blitFramebuffer(0,0,o,s,0,0,o,s,a,e.NEAREST),!0===l&&(F.length=0,z.length=0,F.push(e.COLOR_ATTACHMENT0+n),t.depthBuffer&&!1===t.resolveDepthBuffer&&(F.push(c),z.push(c),e.invalidateFramebuffer(e.DRAW_FRAMEBUFFER,z)),e.invalidateFramebuffer(e.READ_FRAMEBUFFER,F))}if(n.bindFramebuffer(e.READ_FRAMEBUFFER,null),n.bindFramebuffer(e.DRAW_FRAMEBUFFER,null),d)for(let t=0;t<r.length;t++){n.bindFramebuffer(e.FRAMEBUFFER,u.__webglMultisampledFramebuffer),e.framebufferRenderbuffer(e.FRAMEBUFFER,e.COLOR_ATTACHMENT0+t,e.RENDERBUFFER,u.__webglColorRenderbuffer[t]);const o=i.get(r[t]).__webglTexture;n.bindFramebuffer(e.FRAMEBUFFER,u.__webglFramebuffer),e.framebufferTexture2D(e.DRAW_FRAMEBUFFER,e.COLOR_ATTACHMENT0+t,e.TEXTURE_2D,o,0)}n.bindFramebuffer(e.DRAW_FRAMEBUFFER,u.__webglMultisampledFramebuffer)}else if(t.depthBuffer&&!1===t.resolveDepthBuffer&&l){const n=t.stencilBuffer?e.DEPTH_STENCIL_ATTACHMENT:e.DEPTH_ATTACHMENT;e.invalidateFramebuffer(e.DRAW_FRAMEBUFFER,[n])}},this.setupDepthRenderbuffer=k,this.setupFrameBufferTexture=I,this.useMultisampledRTT=$}function G5(e,t){return{convert:function(n,i=""){let r;const o=Ht.getTransfer(i);if(n===si)return e.UNSIGNED_BYTE;if(n===fv)return e.UNSIGNED_SHORT_4_4_4_4;if(n===hv)return e.UNSIGNED_SHORT_5_5_5_1;if(n===c1)return e.UNSIGNED_INT_5_9_9_9_REV;if(n===u1)return e.UNSIGNED_INT_10F_11F_11F_REV;if(n===a1)return e.BYTE;if(n===l1)return e.SHORT;if(n===Rl)return e.UNSIGNED_SHORT;if(n===dv)return e.INT;if(n===xo)return e.UNSIGNED_INT;if(n===Fr)return e.FLOAT;if(n===bu)return e.HALF_FLOAT;if(n===d1)return e.ALPHA;if(n===f1)return e.RGB;if(n===Di)return e.RGBA;if(n===Ll)return e.DEPTH_COMPONENT;if(n===_a)return e.DEPTH_STENCIL;if(n===h1)return e.RED;if(n===pv)return e.RED_INTEGER;if(n===p1)return e.RG;if(n===mv)return e.RG_INTEGER;if(n===vv)return e.RGBA_INTEGER;if(n===ud||n===dd||n===fd||n===hd)if(o===jt){if(r=t.get("WEBGL_compressed_texture_s3tc_srgb"),null===r)return null;if(n===ud)return r.COMPRESSED_SRGB_S3TC_DXT1_EXT;if(n===dd)return r.COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT;if(n===fd)return r.COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT;if(n===hd)return r.COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT}else{if(r=t.get("WEBGL_compressed_texture_s3tc"),null===r)return null;if(n===ud)return r.COMPRESSED_RGB_S3TC_DXT1_EXT;if(n===dd)return r.COMPRESSED_RGBA_S3TC_DXT1_EXT;if(n===fd)return r.COMPRESSED_RGBA_S3TC_DXT3_EXT;if(n===hd)return r.COMPRESSED_RGBA_S3TC_DXT5_EXT}if(n===Cp||n===Pp||n===Rp||n===Lp){if(r=t.get("WEBGL_compressed_texture_pvrtc"),null===r)return null;if(n===Cp)return r.COMPRESSED_RGB_PVRTC_4BPPV1_IMG;if(n===Pp)return r.COMPRESSED_RGB_PVRTC_2BPPV1_IMG;if(n===Rp)return r.COMPRESSED_RGBA_PVRTC_4BPPV1_IMG;if(n===Lp)return r.COMPRESSED_RGBA_PVRTC_2BPPV1_IMG}if(n===Dp||n===Ip||n===Np){if(r=t.get("WEBGL_compressed_texture_etc"),null===r)return null;if(n===Dp||n===Ip)return o===jt?r.COMPRESSED_SRGB8_ETC2:r.COMPRESSED_RGB8_ETC2;if(n===Np)return o===jt?r.COMPRESSED_SRGB8_ALPHA8_ETC2_EAC:r.COMPRESSED_RGBA8_ETC2_EAC}if(n===Op||n===Up||n===Fp||n===Bp||n===kp||n===zp||n===Hp||n===Vp||n===$p||n===Gp||n===Wp||n===Xp||n===qp||n===Yp){if(r=t.get("WEBGL_compressed_texture_astc"),null===r)return null;if(n===Op)return o===jt?r.COMPRESSED_SRGB8_ALPHA8_ASTC_4x4_KHR:r.COMPRESSED_RGBA_ASTC_4x4_KHR;if(n===Up)return o===jt?r.COMPRESSED_SRGB8_ALPHA8_ASTC_5x4_KHR:r.COMPRESSED_RGBA_ASTC_5x4_KHR;if(n===Fp)return o===jt?r.COMPRESSED_SRGB8_ALPHA8_ASTC_5x5_KHR:r.COMPRESSED_RGBA_ASTC_5x5_KHR;if(n===Bp)return o===jt?r.COMPRESSED_SRGB8_ALPHA8_ASTC_6x5_KHR:r.COMPRESSED_RGBA_ASTC_6x5_KHR;if(n===kp)return o===jt?r.COMPRESSED_SRGB8_ALPHA8_ASTC_6x6_KHR:r.COMPRESSED_RGBA_ASTC_6x6_KHR;if(n===zp)return o===jt?r.COMPRESSED_SRGB8_ALPHA8_ASTC_8x5_KHR:r.COMPRESSED_RGBA_ASTC_8x5_KHR;if(n===Hp)return o===jt?r.COMPRESSED_SRGB8_ALPHA8_ASTC_8x6_KHR:r.COMPRESSED_RGBA_ASTC_8x6_KHR;if(n===Vp)return o===jt?r.COMPRESSED_SRGB8_ALPHA8_ASTC_8x8_KHR:r.COMPRESSED_RGBA_ASTC_8x8_KHR;if(n===$p)return o===jt?r.COMPRESSED_SRGB8_ALPHA8_ASTC_10x5_KHR:r.COMPRESSED_RGBA_ASTC_10x5_KHR;if(n===Gp)return o===jt?r.COMPRESSED_SRGB8_ALPHA8_ASTC_10x6_KHR:r.COMPRESSED_RGBA_ASTC_10x6_KHR;if(n===Wp)return o===jt?r.COMPRESSED_SRGB8_ALPHA8_ASTC_10x8_KHR:r.COMPRESSED_RGBA_ASTC_10x8_KHR;if(n===Xp)return o===jt?r.COMPRESSED_SRGB8_ALPHA8_ASTC_10x10_KHR:r.COMPRESSED_RGBA_ASTC_10x10_KHR;if(n===qp)return o===jt?r.COMPRESSED_SRGB8_ALPHA8_ASTC_12x10_KHR:r.COMPRESSED_RGBA_ASTC_12x10_KHR;if(n===Yp)return o===jt?r.COMPRESSED_SRGB8_ALPHA8_ASTC_12x12_KHR:r.COMPRESSED_RGBA_ASTC_12x12_KHR}if(n===jp||n===Kp||n===Qp){if(r=t.get("EXT_texture_compression_bptc"),null===r)return null;if(n===jp)return o===jt?r.COMPRESSED_SRGB_ALPHA_BPTC_UNORM_EXT:r.COMPRESSED_RGBA_BPTC_UNORM_EXT;if(n===Kp)return r.COMPRESSED_RGB_BPTC_SIGNED_FLOAT_EXT;if(n===Qp)return r.COMPRESSED_RGB_BPTC_UNSIGNED_FLOAT_EXT}if(n===Zp||n===Jp||n===em||n===tm){if(r=t.get("EXT_texture_compression_rgtc"),null===r)return null;if(n===Zp)return r.COMPRESSED_RED_RGTC1_EXT;if(n===Jp)return r.COMPRESSED_SIGNED_RED_RGTC1_EXT;if(n===em)return r.COMPRESSED_RED_GREEN_RGTC2_EXT;if(n===tm)return r.COMPRESSED_SIGNED_RED_GREEN_RGTC2_EXT}return n===ba?e.UNSIGNED_INT_24_8:void 0!==e[n]?e[n]:null}}}const W5="\nvoid main() {\n\n\tgl_Position = vec4( position, 1.0 );\n\n}",X5="\nuniform sampler2DArray depthColor;\nuniform float depthWidth;\nuniform float depthHeight;\n\nvoid main() {\n\n\tvec2 coord = vec2( gl_FragCoord.x / depthWidth, gl_FragCoord.y / depthHeight );\n\n\tif ( coord.x >= 1.0 ) {\n\n\t\tgl_FragDepth = texture( depthColor, vec3( coord.x - 1.0, coord.y, 1 ) ).r;\n\n\t} else {\n\n\t\tgl_FragDepth = texture( depthColor, vec3( coord.x, coord.y, 0 ) ).r;\n\n\t}\n\n}";class q5{constructor(){this.texture=null,this.mesh=null,this.depthNear=0,this.depthFar=0}init(e,t){if(null===this.texture){const n=new T1(e.texture);(e.depthNear!==t.depthNear||e.depthFar!==t.depthFar)&&(this.depthNear=e.depthNear,this.depthFar=e.depthFar),this.texture=n}}getMesh(e){if(null!==this.texture&&null===this.mesh){const t=e.cameras[0].viewport,n=new Qi({vertexShader:W5,fragmentShader:X5,uniforms:{depthColor:{value:this.texture},depthWidth:{value:t.z},depthHeight:{value:t.w}}});this.mesh=new On(new Sf(20,20),n)}return this.mesh}reset(){this.texture=null,this.mesh=null}getDepthTexture(){return this.texture}}class Y5 extends Mo{constructor(e,t){super();const n=this;let i=null,r=1,o=null,s="local-floor",a=1,l=null,c=null,u=null,d=null,h=null,p=null;const f=typeof XRWebGLBinding<"u",m=new q5,g={},v=t.getContextAttributes();let b=null,y=null;const _=[],x=[],S=new tt;let w=null;const M=new ri;M.viewport=new Qt;const E=new ri;E.viewport=new Qt;const T=[M,E],C=new pI;let R=null,A=null;function L(e){const t=x.indexOf(e.inputSource);if(-1===t)return;const n=_[t];void 0!==n&&(n.update(e.inputSource,e.frame,l||o),n.dispatchEvent({type:e.type,data:e.inputSource}))}function P(){i.removeEventListener("select",L),i.removeEventListener("selectstart",L),i.removeEventListener("selectend",L),i.removeEventListener("squeeze",L),i.removeEventListener("squeezestart",L),i.removeEventListener("squeezeend",L),i.removeEventListener("end",P),i.removeEventListener("inputsourceschange",N);for(let e=0;e<_.length;e++){const t=x[e];null!==t&&(x[e]=null,_[e].disconnect(t))}R=null,A=null,m.reset();for(const e in g)delete g[e];e.setRenderTarget(b),h=null,d=null,u=null,i=null,y=null,F.stop(),n.isPresenting=!1,e.setPixelRatio(w),e.setSize(S.width,S.height,!1),n.dispatchEvent({type:"sessionend"})}function N(e){for(let t=0;t<e.removed.length;t++){const n=e.removed[t],i=x.indexOf(n);i>=0&&(x[i]=null,_[i].disconnect(n))}for(let t=0;t<e.added.length;t++){const n=e.added[t];let i=x.indexOf(n);if(-1===i){for(let e=0;e<_.length;e++){if(e>=x.length){x.push(n),i=e;break}if(null===x[e]){x[e]=n,i=e;break}}if(-1===i)break}const r=_[i];r&&r.connect(n)}}this.cameraAutoUpdate=!0,this.enabled=!1,this.isPresenting=!1,this.getController=function(e){let t=_[e];return void 0===t&&(t=new gh,_[e]=t),t.getTargetRaySpace()},this.getControllerGrip=function(e){let t=_[e];return void 0===t&&(t=new gh,_[e]=t),t.getGripSpace()},this.getHand=function(e){let t=_[e];return void 0===t&&(t=new gh,_[e]=t),t.getHandSpace()},this.setFramebufferScaleFactor=function(e){r=e,!0===n.isPresenting&&console.warn("THREE.WebXRManager: Cannot change framebuffer scale while presenting.")},this.setReferenceSpaceType=function(e){s=e,!0===n.isPresenting&&console.warn("THREE.WebXRManager: Cannot change reference space type while presenting.")},this.getReferenceSpace=function(){return l||o},this.setReferenceSpace=function(e){l=e},this.getBaseLayer=function(){return null!==d?d:h},this.getBinding=function(){return null===u&&f&&(u=new XRWebGLBinding(i,t)),u},this.getFrame=function(){return p}
vendor: 9,402 bytes, line 13
13,this.getSession=function(){return i},this.setSession=async function(c){if(i=c,null!==i){if(b=e.getRenderTarget(),i.addEventListener("select",L),i.addEventListener("selectstart",L),i.addEventListener("selectend",L),i.addEventListener("squeeze",L),i.addEventListener("squeezestart",L),i.addEventListener("squeezeend",L),i.addEventListener("end",P),i.addEventListener("inputsourceschange",N),!0!==v.xrCompatible&&await t.makeXRCompatible(),w=e.getPixelRatio(),e.getSize(S),f&&"createProjectionLayer"in XRWebGLBinding.prototype){let n=null,o=null,s=null;v.depth&&(s=v.stencil?t.DEPTH24_STENCIL8:t.DEPTH_COMPONENT24,n=v.stencil?_a:Ll,o=v.stencil?ba:xo);const a={colorFormat:t.RGBA8,depthFormat:s,scaleFactor:r};u=this.getBinding(),d=u.createProjectionLayer(a),i.updateRenderState({layers:[d]}),e.setPixelRatio(1),e.setSize(d.textureWidth,d.textureHeight,!1),y=new ji(d.textureWidth,d.textureHeight,{format:Di,type:si,depthTexture:new Sv(d.textureWidth,d.textureHeight,o,void 0,void 0,void 0,void 0,void 0,void 0,n),stencilBuffer:v.stencil,colorSpace:e.outputColorSpace,samples:v.antialias?4:0,resolveDepthBuffer:!1===d.ignoreDepthValues,resolveStencilBuffer:!1===d.ignoreDepthValues})}else{const n={antialias:v.antialias,alpha:!0,depth:v.depth,stencil:v.stencil,framebufferScaleFactor:r};h=new XRWebGLLayer(i,t,n),i.updateRenderState({baseLayer:h}),e.setPixelRatio(1),e.setSize(h.framebufferWidth,h.framebufferHeight,!1),y=new ji(h.framebufferWidth,h.framebufferHeight,{format:Di,type:si,colorSpace:e.outputColorSpace,stencilBuffer:v.stencil,resolveDepthBuffer:!1===h.ignoreDepthValues,resolveStencilBuffer:!1===h.ignoreDepthValues})}y.isXRRenderTarget=!0,this.setFoveation(a),l=null,o=await i.requestReferenceSpace(s),F.setContext(i),F.start(),n.isPresenting=!0,n.dispatchEvent({type:"sessionstart"})}},this.getEnvironmentBlendMode=function(){if(null!==i)return i.environmentBlendMode},this.getDepthTexture=function(){return m.getDepthTexture()};const D=new k,I=new k;function O(e,t){null===t?e.matrixWorld.copy(e.matrix):e.matrixWorld.multiplyMatrices(t.matrixWorld,e.matrix),e.matrixWorldInverse.copy(e.matrixWorld).invert()}this.updateCamera=function(e){if(null===i)return;let t=e.near,n=e.far;null!==m.texture&&(m.depthNear>0&&(t=m.depthNear),m.depthFar>0&&(n=m.depthFar)),C.near=E.near=M.near=t,C.far=E.far=M.far=n,(R!==C.near||A!==C.far)&&(i.updateRenderState({depthNear:C.near,depthFar:C.far}),R=C.near,A=C.far),C.layers.mask=6|e.layers.mask,M.layers.mask=3&C.layers.mask,E.layers.mask=5&C.layers.mask;const r=e.parent,o=C.cameras;O(C,r);for(let e=0;e<o.length;e++)O(o[e],r);2===o.length?function(e,t,n){D.setFromMatrixPosition(t.matrixWorld),I.setFromMatrixPosition(n.matrixWorld);const i=D.distanceTo(I),r=t.projectionMatrix.elements,o=n.projectionMatrix.elements,s=r[14]/(r[10]-1),a=r[14]/(r[10]+1),l=(r[9]+1)/r[5],c=(r[9]-1)/r[5],u=(r[8]-1)/r[0],d=(o[8]+1)/o[0],h=s*u,p=s*d,f=i/(-u+d),m=f*-u;if(t.matrixWorld.decompose(e.position,e.quaternion,e.scale),e.translateX(m),e.translateZ(f),e.matrixWorld.compose(e.position,e.quaternion,e.scale),e.matrixWorldInverse.copy(e.matrixWorld).invert(),-1===r[10])e.projectionMatrix.copy(t.projectionMatrix),e.projectionMatrixInverse.copy(t.projectionMatrixInverse);else{const t=s+f,n=a+f,r=h-m,o=p+(i-m),u=l*a/n*t,d=c*a/n*t;e.projectionMatrix.makePerspective(r,o,u,d,t,n),e.projectionMatrixInverse.copy(e.projectionMatrix).invert()}}(C,M,E):C.projectionMatrix.copy(M.projectionMatrix),function(e,t,n){null===n?e.matrix.copy(t.matrixWorld):(e.matrix.copy(n.matrixWorld),e.matrix.invert(),e.matrix.multiply(t.matrixWorld)),e.matrix.decompose(e.position,e.quaternion,e.scale),e.updateMatrixWorld(!0),e.projectionMatrix.copy(t.projectionMatrix),e.projectionMatrixInverse.copy(t.projectionMatrixInverse),e.isPerspectiveCamera&&(e.fov=2*Dl*Math.atan(1/e.projectionMatrix.elements[5]),e.zoom=1)}(e,C,r)},this.getCamera=function(){return C},this.getFoveation=function(){if(null!==d||null!==h)return a},this.setFoveation=function(e){a=e,null!==d&&(d.fixedFoveation=e),null!==h&&void 0!==h.fixedFoveation&&(h.fixedFoveation=e)},this.hasDepthSensing=function(){return null!==m.texture},this.getDepthSensingMesh=function(){return m.getMesh(C)},this.getCameraTexture=function(e){return g[e]};let U=null;const F=new L1;F.setAnimationLoop((function(t,r){if(c=r.getViewerPose(l||o),p=r,null!==c){const t=c.views;null!==h&&(e.setRenderTargetFramebuffer(y,h.framebuffer),e.setRenderTarget(y));let r=!1;t.length!==C.cameras.length&&(C.cameras.length=0,r=!0);for(let n=0;n<t.length;n++){const i=t[n];let o=null;if(null!==h)o=h.getViewport(i);else{const t=u.getViewSubImage(d,i);o=t.viewport,0===n&&(e.setRenderTargetTextures(y,t.colorTexture,t.depthStencilTexture),e.setRenderTarget(y))}let s=T[n];void 0===s&&(s=new ri,s.layers.enable(n),s.viewport=new Qt,T[n]=s),s.matrix.fromArray(i.transform.matrix),s.matrix.decompose(s.position,s.quaternion,s.scale),s.projectionMatrix.fromArray(i.projectionMatrix),s.projectionMatrixInverse.copy(s.projectionMatrix).invert(),s.viewport.set(o.x,o.y,o.width,o.height),0===n&&(C.matrix.copy(s.matrix),C.matrix.decompose(C.position,C.quaternion,C.scale)),!0===r&&C.cameras.push(s)}const o=i.enabledFeatures;if(o&&o.includes("depth-sensing")&&"gpu-optimized"==i.depthUsage&&f){u=n.getBinding();const e=u.getDepthInformation(t[0]);e&&e.isValid&&e.texture&&m.init(e,i.renderState)}if(o&&o.includes("camera-access")&&f){e.state.unbindTexture(),u=n.getBinding();for(let e=0;e<t.length;e++){const n=t[e].camera;if(n){let e=g[n];e||(e=new T1,g[n]=e);const t=u.getCameraImage(n);e.sourceTexture=t}}}}for(let e=0;e<_.length;e++){const t=x[e],n=_[e];null!==t&&void 0!==n&&n.update(t,r,l||o)}U&&U(t,r),r.detectedPlanes&&n.dispatchEvent({type:"planesdetected",data:r}),p=null})),this.setAnimationLoop=function(e){U=e},this.dispose=function(){}}}const Fo=new Ki,j5=new cn;function K5(e,t){function n(e,t){!0===e.matrixAutoUpdate&&e.updateMatrix(),t.value.copy(e.matrix)}function i(e,i){e.opacity.value=i.opacity,i.color&&e.diffuse.value.copy(i.color),i.emissive&&e.emissive.value.copy(i.emissive).multiplyScalar(i.emissiveIntensity),i.map&&(e.map.value=i.map,n(i.map,e.mapTransform)),i.alphaMap&&(e.alphaMap.value=i.alphaMap,n(i.alphaMap,e.alphaMapTransform)),i.bumpMap&&(e.bumpMap.value=i.bumpMap,n(i.bumpMap,e.bumpMapTransform),e.bumpScale.value=i.bumpScale,1===i.side&&(e.bumpScale.value*=-1)),i.normalMap&&(e.normalMap.value=i.normalMap,n(i.normalMap,e.normalMapTransform),e.normalScale.value.copy(i.normalScale),1===i.side&&e.normalScale.value.negate()),i.displacementMap&&(e.displacementMap.value=i.displacementMap,n(i.displacementMap,e.displacementMapTransform),e.displacementScale.value=i.displacementScale,e.displacementBias.value=i.displacementBias),i.emissiveMap&&(e.emissiveMap.value=i.emissiveMap,n(i.emissiveMap,e.emissiveMapTransform)),i.specularMap&&(e.specularMap.value=i.specularMap,n(i.specularMap,e.specularMapTransform)),i.alphaTest>0&&(e.alphaTest.value=i.alphaTest);const r=t.get(i),o=r.envMap,s=r.envMapRotation;o&&(e.envMap.value=o,Fo.copy(s),Fo.x*=-1,Fo.y*=-1,Fo.z*=-1,o.isCubeTexture&&!1===o.isRenderTargetTexture&&(Fo.y*=-1,Fo.z*=-1),e.envMapRotation.value.setFromMatrix4(j5.makeRotationFromEuler(Fo)),e.flipEnvMap.value=o.isCubeTexture&&!1===o.isRenderTargetTexture?-1:1,e.reflectivity.value=i.reflectivity,e.ior.value=i.ior,e.refractionRatio.value=i.refractionRatio),i.lightMap&&(e.lightMap.value=i.lightMap,e.lightMapIntensity.value=i.lightMapIntensity,n(i.lightMap,e.lightMapTransform)),i.aoMap&&(e.aoMap.value=i.aoMap,e.aoMapIntensity.value=i.aoMapIntensity,n(i.aoMap,e.aoMapTransform))}return{refreshFogUniforms:function(t,n){n.color.getRGB(t.fogColor.value,w1(e)),n.isFog?(t.fogNear.value=n.near,t.fogFar.value=n.far):n.isFogExp2&&(t.fogDensity.value=n.density)},refreshMaterialUniforms:function(e,r,o,s,a){r.isMeshBasicMaterial||r.isMeshLambertMaterial?i(e,r):r.isMeshToonMaterial?(i(e,r),function(e,t){t.gradientMap&&(e.gradientMap.value=t.gradientMap)}(e,r)):r.isMeshPhongMaterial?(i(e,r),function(e,t){e.specular.value.copy(t.specular),e.shininess.value=Math.max(t.shininess,1e-4)}(e,r)):r.isMeshStandardMaterial?(i(e,r),function(e,t){e.metalness.value=t.metalness,t.metalnessMap&&(e.metalnessMap.value=t.metalnessMap,n(t.metalnessMap,e.metalnessMapTransform)),e.roughness.value=t.roughness,t.roughnessMap&&(e.roughnessMap.value=t.roughnessMap,n(t.roughnessMap,e.roughnessMapTransform)),t.envMap&&(e.envMapIntensity.value=t.envMapIntensity)}(e,r),r.isMeshPhysicalMaterial&&function(e,t,i){e.ior.value=t.ior,t.sheen>0&&(e.sheenColor.value.copy(t.sheenColor).multiplyScalar(t.sheen),e.sheenRoughness.value=t.sheenRoughness,t.sheenColorMap&&(e.sheenColorMap.value=t.sheenColorMap,n(t.sheenColorMap,e.sheenColorMapTransform)),t.sheenRoughnessMap&&(e.sheenRoughnessMap.value=t.sheenRoughnessMap,n(t.sheenRoughnessMap,e.sheenRoughnessMapTransform))),t.clearcoat>0&&(e.clearcoat.value=t.clearcoat,e.clearcoatRoughness.value=t.clearcoatRoughness,t.clearcoatMap&&(e.clearcoatMap.value=t.clearcoatMap,n(t.clearcoatMap,e.clearcoatMapTransform)),t.clearcoatRoughnessMap&&(e.clearcoatRoughnessMap.value=t.clearcoatRoughnessMap,n(t.clearcoatRoughnessMap,e.clearcoatRoughnessMapTransform)),t.clearcoatNormalMap&&(e.clearcoatNormalMap.value=t.clearcoatNormalMap,n(t.clearcoatNormalMap,e.clearcoatNormalMapTransform),e.clearcoatNormalScale.value.copy(t.clearcoatNormalScale),1===t.side&&e.clearcoatNormalScale.value.negate())),t.dis
vendor: 24,214 bytes, line 13
13persion>0&&(e.dispersion.value=t.dispersion),t.iridescence>0&&(e.iridescence.value=t.iridescence,e.iridescenceIOR.value=t.iridescenceIOR,e.iridescenceThicknessMinimum.value=t.iridescenceThicknessRange[0],e.iridescenceThicknessMaximum.value=t.iridescenceThicknessRange[1],t.iridescenceMap&&(e.iridescenceMap.value=t.iridescenceMap,n(t.iridescenceMap,e.iridescenceMapTransform)),t.iridescenceThicknessMap&&(e.iridescenceThicknessMap.value=t.iridescenceThicknessMap,n(t.iridescenceThicknessMap,e.iridescenceThicknessMapTransform))),t.transmission>0&&(e.transmission.value=t.transmission,e.transmissionSamplerMap.value=i.texture,e.transmissionSamplerSize.value.set(i.width,i.height),t.transmissionMap&&(e.transmissionMap.value=t.transmissionMap,n(t.transmissionMap,e.transmissionMapTransform)),e.thickness.value=t.thickness,t.thicknessMap&&(e.thicknessMap.value=t.thicknessMap,n(t.thicknessMap,e.thicknessMapTransform)),e.attenuationDistance.value=t.attenuationDistance,e.attenuationColor.value.copy(t.attenuationColor)),t.anisotropy>0&&(e.anisotropyVector.value.set(t.anisotropy*Math.cos(t.anisotropyRotation),t.anisotropy*Math.sin(t.anisotropyRotation)),t.anisotropyMap&&(e.anisotropyMap.value=t.anisotropyMap,n(t.anisotropyMap,e.anisotropyMapTransform))),e.specularIntensity.value=t.specularIntensity,e.specularColor.value.copy(t.specularColor),t.specularColorMap&&(e.specularColorMap.value=t.specularColorMap,n(t.specularColorMap,e.specularColorMapTransform)),t.specularIntensityMap&&(e.specularIntensityMap.value=t.specularIntensityMap,n(t.specularIntensityMap,e.specularIntensityMapTransform))}(e,r,a)):r.isMeshMatcapMaterial?(i(e,r),function(e,t){t.matcap&&(e.matcap.value=t.matcap)}(e,r)):r.isMeshDepthMaterial?i(e,r):r.isMeshDistanceMaterial?(i(e,r),function(e,n){const i=t.get(n).light;e.referencePosition.value.setFromMatrixPosition(i.matrixWorld),e.nearDistance.value=i.shadow.camera.near,e.farDistance.value=i.shadow.camera.far}(e,r)):r.isMeshNormalMaterial?i(e,r):r.isLineBasicMaterial?(function(e,t){e.diffuse.value.copy(t.color),e.opacity.value=t.opacity,t.map&&(e.map.value=t.map,n(t.map,e.mapTransform))}(e,r),r.isLineDashedMaterial&&function(e,t){e.dashSize.value=t.dashSize,e.totalSize.value=t.dashSize+t.gapSize,e.scale.value=t.scale}(e,r)):r.isPointsMaterial?function(e,t,i,r){e.diffuse.value.copy(t.color),e.opacity.value=t.opacity,e.size.value=t.size*i,e.scale.value=.5*r,t.map&&(e.map.value=t.map,n(t.map,e.uvTransform)),t.alphaMap&&(e.alphaMap.value=t.alphaMap,n(t.alphaMap,e.alphaMapTransform)),t.alphaTest>0&&(e.alphaTest.value=t.alphaTest)}(e,r,o,s):r.isSpriteMaterial?function(e,t){e.diffuse.value.copy(t.color),e.opacity.value=t.opacity,e.rotation.value=t.rotation,t.map&&(e.map.value=t.map,n(t.map,e.mapTransform)),t.alphaMap&&(e.alphaMap.value=t.alphaMap,n(t.alphaMap,e.alphaMapTransform)),t.alphaTest>0&&(e.alphaTest.value=t.alphaTest)}(e,r):r.isShadowMaterial?(e.color.value.copy(r.color),e.opacity.value=r.opacity):r.isShaderMaterial&&(r.uniformsNeedUpdate=!1)}}}function Q5(e,t,n,i){let r={},o={},s=[];const a=e.getParameter(e.MAX_UNIFORM_BUFFER_BINDINGS);function l(e,t,n,i){const r=e.value,o=t+"_"+n;if(void 0===i[o])return i[o]="number"==typeof r||"boolean"==typeof r?r:r.clone(),!0;{const e=i[o];if("number"==typeof r||"boolean"==typeof r){if(e!==r)return i[o]=r,!0}else if(!1===e.equals(r))return e.copy(r),!0}return!1}function c(e){const t={boundary:0,storage:0};return"number"==typeof e||"boolean"==typeof e?(t.boundary=4,t.storage=4):e.isVector2?(t.boundary=8,t.storage=8):e.isVector3||e.isColor?(t.boundary=16,t.storage=12):e.isVector4?(t.boundary=16,t.storage=16):e.isMatrix3?(t.boundary=48,t.storage=48):e.isMatrix4?(t.boundary=64,t.storage=64):e.isTexture?console.warn("THREE.WebGLRenderer: Texture samplers can not be part of an uniforms group."):console.warn("THREE.WebGLRenderer: Unsupported uniform value type.",e),t}function u(t){const n=t.target;n.removeEventListener("dispose",u);const i=s.indexOf(n.__bindingPointIndex);s.splice(i,1),e.deleteBuffer(r[n.id]),delete r[n.id],delete o[n.id]}return{bind:function(e,t){const n=t.program;i.uniformBlockBinding(e,n)},update:function(n,d){let h=r[n.id];void 0===h&&(function(e){const t=e.uniforms;let n=0;const i=16;for(let e=0,r=t.length;e<r;e++){const r=Array.isArray(t[e])?t[e]:[t[e]];for(let e=0,t=r.length;e<t;e++){const t=r[e],o=Array.isArray(t.value)?t.value:[t.value];for(let e=0,r=o.length;e<r;e++){const r=c(o[e]),s=n%i,a=s%r.boundary,l=s+a;n+=a,0!==l&&i-l<r.storage&&(n+=i-l),t.__data=new Float32Array(r.storage/Float32Array.BYTES_PER_ELEMENT),t.__offset=n,n+=r.storage}}}const r=n%i;r>0&&(n+=i-r),e.__size=n,e.__cache={}}(n),h=function(t){const n=function(){for(let e=0;e<a;e++)if(-1===s.indexOf(e))return s.push(e),e;return console.error("THREE.WebGLRenderer: Maximum number of simultaneously usable uniforms groups reached."),0}();t.__bindingPointIndex=n;const i=e.createBuffer(),r=t.__size,o=t.usage;return e.bindBuffer(e.UNIFORM_BUFFER,i),e.bufferData(e.UNIFORM_BUFFER,r,o),e.bindBuffer(e.UNIFORM_BUFFER,null),e.bindBufferBase(e.UNIFORM_BUFFER,n,i),i}(n),r[n.id]=h,n.addEventListener("dispose",u));const p=d.program;i.updateUBOMapping(n,p);const f=t.render.frame;o[n.id]!==f&&(function(t){const n=r[t.id],i=t.uniforms,o=t.__cache;e.bindBuffer(e.UNIFORM_BUFFER,n);for(let t=0,n=i.length;t<n;t++){const n=Array.isArray(i[t])?i[t]:[i[t]];for(let i=0,r=n.length;i<r;i++){const r=n[i];if(!0===l(r,t,i,o)){const t=r.__offset,n=Array.isArray(r.value)?r.value:[r.value];let i=0;for(let o=0;o<n.length;o++){const s=n[o],a=c(s);"number"==typeof s||"boolean"==typeof s?(r.__data[0]=s,e.bufferSubData(e.UNIFORM_BUFFER,t+i,r.__data)):s.isMatrix3?(r.__data[0]=s.elements[0],r.__data[1]=s.elements[1],r.__data[2]=s.elements[2],r.__data[3]=0,r.__data[4]=s.elements[3],r.__data[5]=s.elements[4],r.__data[6]=s.elements[5],r.__data[7]=0,r.__data[8]=s.elements[6],r.__data[9]=s.elements[7],r.__data[10]=s.elements[8],r.__data[11]=0):(s.toArray(r.__data,i),i+=a.storage/Float32Array.BYTES_PER_ELEMENT)}e.bufferSubData(e.UNIFORM_BUFFER,t,r.__data)}}}e.bindBuffer(e.UNIFORM_BUFFER,null)}(n),o[n.id]=f)},dispose:function(){for(const t in r)e.deleteBuffer(r[t]);s=[],r={},o={}}}}class Z5{constructor(e={}){const{canvas:t=vD(),context:n=null,depth:i=!0,stencil:r=!1,alpha:o=!1,antialias:s=!1,premultipliedAlpha:a=!0,preserveDrawingBuffer:l=!1,powerPreference:c="default",failIfMajorPerformanceCaveat:u=!1,reversedDepthBuffer:d=!1}=e;let h;if(this.isWebGLRenderer=!0,null!==n){if(typeof WebGLRenderingContext<"u"&&n instanceof WebGLRenderingContext)throw new Error("THREE.WebGLRenderer: WebGL 1 is not supported since r163.");h=n.getContextAttributes().alpha}else h=o;const p=new Uint32Array(4),f=new Int32Array(4);let m=null,g=null;const v=[],b=[];this.domElement=t,this.debug={checkShaderErrors:!0,onShaderError:null},this.autoClear=!0,this.autoClearColor=!0,this.autoClearDepth=!0,this.autoClearStencil=!0,this.sortObjects=!0,this.clippingPlanes=[],this.localClippingEnabled=!1,this.toneMapping=0,this.toneMappingExposure=1,this.transmissionResolutionScale=1;const y=this;let _=!1;this._outputColorSpace=fn;let x=0,S=0,w=null,M=-1,E=null;const T=new Qt,C=new Qt;let R=null;const A=new Ut(0);let L=0,P=t.width,N=t.height,D=1,I=null,O=null;const U=new Qt(0,0,P,N),F=new Qt(0,0,P,N);let z=!1;const B=new xv;let $=!1,G=!1;const H=new cn,V=new k,W=new Qt,j={background:null,fog:null,environment:null,overrideMaterial:null,isScene:!0};let X=!1;function Y(){return null===w?D:1}let q,K,Q,J,Z,ee,te,ne,ie,re,oe,se,ae,le,ce,ue,de,he,pe,fe,me,ge,ve,be,ye=n;function _e(e,n){return t.getContext(e,n)}try{const e={alpha:!0,depth:i,stencil:r,antialias:s,premultipliedAlpha:a,preserveDrawingBuffer:l,powerPreference:c,failIfMajorPerformanceCaveat:u};if("setAttribute"in t&&t.setAttribute("data-engine",`three.js r${yf}`),t.addEventListener("webglcontextlost",we,!1),t.addEventListener("webglcontextrestored",Me,!1),t.addEventListener("webglcontextcreationerror",Ee,!1),null===ye){const t="webgl2";if(ye=_e(t,e),null===ye)throw _e(t)?new Error("Error creating WebGL context with your selected attributes."):new Error("Error creating WebGL context.")}}catch(e){throw console.error("THREE.WebGLRenderer: "+e.message),e}function xe(){q=new lO(ye),q.init(),ge=new G5(ye,q),K=new tO(ye,q,e,ge),Q=new V5(ye,q),K.reversedDepthBuffer&&d&&Q.buffers.depth.setReversed(!0),J=new dO(ye),Z=new P5,ee=new $5(ye,q,Q,Z,K,ge,J),te=new iO(y),ne=new aO(y),ie=new gI(ye),ve=new J4(ye,ie),re=new cO(ye,ie,J,ve),oe=new hO(ye,re,ie,J),pe=new fO(ye,K,ee),ue=new nO(Z),se=new C5(y,te,ne,q,K,ve,ue),ae=new K5(y,Z),le=new L5,ce=new F5(q),he=new Z4(y,te,ne,Q,oe,h,a),de=new z5(y,oe,K),be=new Q5(ye,J,K,Q),fe=new eO(ye,q,J),me=new uO(ye,q,J),J.programs=se.programs,y.capabilities=K,y.extensions=q,y.properties=Z,y.renderLists=le,y.shadowMap=de,y.state=Q,y.info=J}xe();const Se=new Y5(y,ye);function we(e){e.preventDefault(),console.log("THREE.WebGLRenderer: Context Lost."),_=!0}function Me(){console.log("THREE.WebGLRenderer: Context Restored."),_=!1;const e=J.autoReset,t=de.enabled,n=de.autoUpdate,i=de.needsUpdate,r=de.type;xe(),J.autoReset=e,de.enabled=t,de.autoUpdate=n,de.needsUpdate=i,de.type=r}function Ee(e){console.error("THREE.WebGLRenderer: A WebGL context could not be created. Reason: ",e.statusMessage)}function Te(e){const t=e.target;t.removeEventListener("dispose",Te),function(e){(function(e){const t=Z.get(e).programs;void 0!==t&&(t.forEach((function(e){se.releaseProgram(e)})),e.isShaderMaterial&&se.releaseShaderCache(e))})(e),Z.remove(e)}(t)}function Ce(e,t,n){!0===e.transparent&&2===e.side&&!1===e.forceSinglePass?(e.side=1,e.needsUpdate=!0,ke(e,t,n),e.side=0,e.needsUpdate=!0,ke(e,t,n),e.side=2):ke(e,t,n)}this.xr=Se,this.getContext=function(){return ye},this.getContextAttributes=function(){return ye.getContextAttributes()},this.forceContextLoss=function(){const e=q.get("WEBGL_lose_context");e&&e.loseContext()},this.forceContextRestore=function(){const e=q.get("WEBGL_lose_context");e&&e.restoreContext()},this.getPixelRatio=function(){return D},this.setPixelRatio=function(e){void 0!==e&&(D=e,this.setSize(P,N,!1))},this.getSize=function(e){return e.set(P,N)},this.setSize=function(e,n,i=!0){Se.isPresenting?console.warn("THREE.WebGLRenderer: Can't change size while VR device is presenting."):(P=e,N=n,t.width=Math.floor(e*D),t.height=Math.floor(n*D),!0===i&&(t.style.width=e+"px",t.style.height=n+"px"),this.setViewport(0,0,e,n))},this.getDrawingBufferSize=function(e){return e.set(P*D,N*D).floor()},this.setDrawingBufferSize=function(e,n,i){P=e,N=n,D=i,t.width=Math.floor(e*i),t.height=Math.floor(n*i),this.setViewport(0,0,e,n)},this.getCurrentViewport=function(e){return e.copy(T)},this.getViewport=function(e){return e.copy(U)},this.setViewport=function(e,t,n,i){e.isVector4?U.set(e.x,e.y,e.z,e.w):U.set(e,t,n,i),Q.viewport(T.copy(U).multiplyScalar(D).round())},this.getScissor=function(e){return e.copy(F)},this.setScissor=function(e,t,n,i){e.isVector4?F.set(e.x,e.y,e.z,e.w):F.set(e,t,n,i),Q.scissor(C.copy(F).multiplyScalar(D).round())},this.getScissorTest=function(){return z},this.setScissorTest=function(e){Q.setScissorTest(z=e)},this.setOpaqueSort=function(e){I=e},this.setTransparentSort=function(e){O=e},this.getClearColor=function(e){return e.copy(he.getClearColor())},this.setClearColor=function(){he.setClearColor(...arguments)},this.getClearAlpha=function(){return he.getClearAlpha()},this.setClearAlpha=function(){he.setClearAlpha(...arguments)},this.clear=function(e=!0,t=!0,n=!0){let i=0;if(e){let e=!1;if(null!==w){const t=w.texture.format;e=t===vv||t===mv||t===pv}if(e){const e=w.texture.type,t=e===si||e===xo||e===Rl||e===ba||e===fv||e===hv,n=he.getClearColor(),i=he.getClearAlpha(),r=n.r,o=n.g,s=n.b;t?(p[0]=r,p[1]=o,p[2]=s,p[3]=i,ye.clearBufferuiv(ye.COLOR,0,p)):(f[0]=r,f[1]=o,f[2]=s,f[3]=i,ye.clearBufferiv(ye.COLOR,0,f))}else i|=ye.COLOR_BUFFER_BIT}t&&(i|=ye.DEPTH_BUFFER_BIT),n&&(i|=ye.STENCIL_BUFFER_BIT,this.state.buffers.stencil.setMask(4294967295)),ye.clear(i)},this.clearColor=function(){this.clear(!0,!1,!1)},this.clearDepth=function(){this.clear(!1,!0,!1)},this.clearStencil=function(){this.clear(!1,!1,!0)},this.dispose=function(){t.removeEventListener("webglcontextlost",we,!1),t.removeEventListener("webglcontextrestored",Me,!1),t.removeEventListener("webglcontextcreationerror",Ee,!1),he.dispose(),le.dispose(),ce.dispose(),Z.dispose(),te.dispose(),ne.dispose(),oe.dispose(),ve.dispose(),be.dispose(),se.dispose(),Se.dispose(),Se.removeEventListener("sessionstart",Ae),Se.removeEventListener("sessionend",Le),Pe.stop()},this.renderBufferDirect=function(e,t,n,i,r,o){null===t&&(t=j);const s=r.isMesh&&r.matrixWorld.determinant()<0,a=function(e,t,n,i,r){!0!==t.isScene&&(t=j),ee.resetTextureUnits();const o=t.fog,s=i.isMeshStandardMaterial?t.environment:null,a=null===w?y.outputColorSpace:!0===w.isXRRenderTarget?w.texture.colorSpace:So,l=(i.isMeshStandardMaterial?ne:te).get(i.envMap||s),c=!0===i.vertexColors&&!!n.attributes.color&&4===n.attributes.color.itemSize,u=!!n.attributes.tangent&&(!!i.normalMap||i.anisotropy>0),d=!!n.morphAttributes.position,h=!!n.morphAttributes.normal,p=!!n.morphAttributes.color;let f=0;i.toneMapped&&(null===w||!0===w.isXRRenderTarget)&&(f=y.toneMapping);const m=n.morphAttributes.position||n.morphAttributes.normal||n.morphAttributes.color,v=void 0!==m?m.length:0,b=Z.get(i),_=g.state.lights;if(!0===$&&(!0===G||e!==E)){const t=e===E&&i.id===M;ue.setState(i,e,t)}let x=!1;i.version===b.__version?(b.needsLights&&b.lightsStateVersion!==_.state.version||b.outputColorSpace!==a||r.isBatchedMesh&&!1===b.batching||!r.isBatchedMesh&&!0===b.batching||r.isBatchedMesh&&!0===b.batchingColor&&null===r.colorTexture||r.isBatchedMesh&&!1===b.batchingColor&&null!==r.colorTexture||r.isInstancedMesh&&!1===b.instancing||!r.isInstancedMesh&&!0===b.instancing||r.isSkinnedMesh&&!1===b.skinning||!r.isSkinnedMesh&&!0===b.skinning||r.isInstancedMesh&&!0===b.instancingColor&&null===r.instanceColor||r.isInstancedMesh&&!1===b.instancingColor&&null!==r.instanceColor||r.isInstancedMesh&&!0===b.instancingMorph&&null===r.morphTexture||r.isInstancedMesh&&!1===b.instancingMorph&&null!==r.morphTexture||b.envMap!==l||!0===i.fog&&b.fog!==o||void 0!==b.numClippingPlanes&&(b.numClippingPlanes!==ue.numPlanes||b.numIntersection!==ue.numIntersection)||b.vertexAlphas!==c||b.vertexTangents!==u||b.morphTargets!==d||b.morphNormals!==h||b.morphColors!==p||b.toneMapping!==f||b.morphTargetsCount!==v)&&(x=!0):(x=!0,b.__version=i.version);let S=b.currentProgram;!0===x&&(S=ke(i,t,r));let T=!1,C=!1,R=!1;const A=S.getUniforms(),L=b.uniforms;if(Q.useProgram(S.program)&&(T=!0,C=!0,R=!0),i.id!==M&&(M=i.id,C=!0),T||E!==e){Q.buffers.depth.getReversed()&&!0!==e.reversedDepth&&(e._reversedDepth=!0,e.updateProjectionMatrix()),A.setValue(ye,"projectionMatrix",e.projectionMatrix),A.setValue(ye,"viewMatrix",e.matrixWorldInverse);const t=A.map.cameraPosition;void 0!==t&&t.setValue(ye,V.setFromMatrixPosition(e.matrixWorld)),K.logarithmicDepthBuffer&&A.setValue(ye,"logDepthBufFC",2/(Math.log(e.far+1)/Math.LN2)),(i.isMeshPhongMaterial||i.isMeshToonMaterial||i.isMeshLambertMaterial||i.isMeshBasicMaterial||i.isMeshStandardMaterial||i.isShaderMaterial)&&A.setValue(ye,"isOrthographic",!0===e.isOrthographicCamera),E!==e&&(E=e,C=!0,R=!0)}if(r.isSkinnedMesh){A.setOptional(ye,r,"bindMatrix"),A.setOptional(ye,r,"bindMatrixInverse");const e=r.skeleton;e&&(null===e.boneTexture&&e.computeBoneTexture(),A.setValue(ye,"boneTexture",e.boneTexture,ee))}r.isBatchedMesh&&(A.setOptional(ye,r,"batchingTexture"),A.setValue(ye,"batchingTexture",r._matricesTexture,ee),A.setOptional(ye,r,"batchingIdTexture"),A.setValue(ye,"batchingIdTexture",r._indirectTexture,ee),A.setOptional(ye,r,"batchingColorTexture"),null!==r._colorsTexture&&A.setValue(ye,"batchingColorTexture",r._colorsTexture,ee));const P=n.morphAttributes;if((void 0!==P.position||void 0!==P.normal||void 0!==P.color)&&pe.update(r,n,S),(C||b.receiveShadow!==r.receiveShadow)&&(b.receiveShadow=r.receiveShadow,A.setValue(ye,"receiveShadow",r.receiveShadow)),i.isMeshGouraudMaterial&&null!==i.envMap&&(L.envMap.value=l,L.flipEnvMap.value=l.isCubeTexture&&!1===l.isRenderTargetTexture?-1:1),i.isMeshStandardMaterial&&null===i.envMap&&null!==t.environment&&(L.envMapIntensity.value=t.environmentIntensity),C&&(A.setValue(ye,"toneMappingExposure",y.toneMappingExposure),b.needsLights&&function(e,t){e.ambientLightColor.needsUpdate=t,e.lightProbe.needsUpdate=t,e.directionalLights.needsUpdate=t,e.directionalLightShadows.needsUpdate=t,e.pointLights.needsUpdate=t,e.pointLightShadows.needsUpdate=t,e.spotLights.needsUpdate=t,e.spotLightShadows.needsUpdate=t,e.rectAreaLights.needsUpdate=t,e.hemisphereLights.needsUpdate=t}(L,R),o&&!0===i.fog&&ae.refreshFogUniforms(L,o),ae.refreshMaterialUniforms(L,i,D,N,g.state.transmissionRenderTarget[e.id]),pd.upload(ye,Fe(b),L,ee)),i.isShaderMaterial&&!0===i.uniformsNeedUpdate&&(pd.upload(ye,Fe(b),L,ee),i.uniformsNeedUpdate=!1),i.isSpriteMaterial&&A.setValue(ye,"center",r.center),A.setValue(ye,"modelViewMatrix",r.modelViewMatrix),A.setValue(ye,"normalMatrix",r.normalMatrix),A.setValue(ye,"modelMatrix",r.matrixWorld),i.isShaderMaterial||i.isRawShaderMaterial){const e=i.uniformsGroups;for(let t=0,n=e.length;t<n;t++){const n=e[t];be.update(n,S),be.bind(n,S)}}return S}(e,t,n,i,r);Q.setMaterial(i,s);let l=n.index,c=1;if(!0===i.wireframe){if(l=re.getWireframeAttribute(n),void 0===l)return;c=2}const u=n.drawRange,d=n.attributes.position;let h=u.start*c,p=(u.start+u.count)*c;null!==o&&(h=Math.max(h,o.start*c),p=Math.min(p,(o.start+o.count)*c)),null!==l?(h=Math.max(h,0),p=Math.min(p,l.count)):null!=d&&(h=Math.max(h,0),p=Math.min(p,d.count));const f=p-h;if(f<0||f===1/0)return;ve.setup(r,i,a,n,l);let m,v=fe;if(null!==l&&(m=ie.get(l),v=me,v.setIndex(m)),r.isMesh)!0===i.wireframe?(Q.setLineWidth(i.wireframeLinewidth*Y()),v.setMode(ye.LINES)):v.setMode(ye.TRIANGLES);else if(r.isLine){let e=i.linewidth;void 0===e&&(e=1),Q.setLineWidth(e*Y()),r.isLineSegments?v.setMode(ye.LINES):r.isLineLoop?v.setMode(ye.LINE_LOOP):v.setMode(ye.LINE_STRIP)}else r.isPoints?v.setMode(ye.POINTS):r.isSprite&&v.setMode(ye.TRIANGLES);if(r.isBatchedMesh)if(null!==r._multiDrawInstances)Il("THREE.WebGLRenderer: renderMultiDrawInstances has been deprecated and will be removed in r184. Append to renderMultiDraw arguments and use indirection."),v.renderMultiDrawInstances(r._multiDrawStarts,r._multiDrawCounts,r._multiDrawCount,r._multiDrawInstances);else if(q.get("WEBGL_multi_draw"))v.renderMultiDraw(r._multiDrawStarts,r._multiDrawCounts,r._multiDrawCount);else{const e=r._multiDrawStarts,t=r._multiDrawCounts,n=r._multiDrawCount,o=l?ie.get(l).bytesPerElement:1,s=Z.get(i).currentProgram.getUniforms();for(let i=0;i<n;i++)s.setValue(ye,"_gl_DrawID",i),v.render(e[i]/o,t[i])}else if(r.isInstancedMesh)v.renderInstances(h,f,r.count);else if(n.isInstancedBufferGeometry){const e=void 0!==n._maxInstanceCount?n._maxInstanceCount:1/0,t=Math.min(n.instanceCount,e);v.renderInstances(h,f,t)}else v.render(h,f)},this.compile=function(e,t,n=null){null===n&&(n=e),g=ce.get(n),g.init(t),b.push(g),n.traverseVisible((function(e){e.isLight&&e.layers.test(t.layers)&&(g.pushLight(e),e.castShadow&&g.pushShadow(e))})),e!==n&&e.traverseVisible((function(e){e.isLight&&e.layers.test(t.layers)&&(g.pushLight(e),e.castShadow&&g.pushShadow(e))})),g.setupLights();const i=new Set;return e.traverse((function(e){if(!(e.isMesh||e.isPoints||e.isLine||e.isSprite))return;const t=e.material;if(t)if(Array.isArray(t))for(let r=0;r<t.length;r++){const o=t[r];Ce(o,n,e),i.add(o)}else Ce(t,n,e),i.add(t)})),g=b.pop(),i},this.compileAsync=function(e,t,n=null){const i=this.compile(e,t,n);return new Promise((t=>{function n(){i.forEach((function(e){Z.get(e).currentProgram.isReady()&&i.delete(e)})),0!==i.size?setTimeout(n,10):t(e)}null!==q.get("KHR_parallel_shader_compile")?n():setTimeout(n,10)}))};let Re=null;function Ae(){Pe.stop()}function Le(){Pe.start()}const Pe=new L1;function Ne(e,t,n,i){if(!1===e.visible)return;if(e.layers.test(t.layers))if(e.isGroup)n=e.renderOrder;else if(e.isLOD)!0===e.autoUpdate&&e.update(t);else if(e.isLight)g.pushLight(e),e.castShadow&&g.pushShadow(e);else if(e.isSprite){if(!e.frustumCulled||B.intersectsSprite(e)){i&&W.setFromMatrixPosition(e.matrixWorld).applyMatrix4(H);const t=oe.update(e),r=e.material;r.visible&&m.push(e,t,r,n,W.z,null)}}else if((e.isMesh||e.isLine||e.isPoints)&&(!e.frustumCulled||B.intersectsObject(e))){const t=oe.update(e),r=e.material;if(i&&(void 0!==e.boundingSphere?(null===e.boundingSphere&&e.computeBoundingSphere(),W.copy(e.boundingSphere.center)):(null===t.boundingSphere&&t.computeBoundingSphere(),W.copy(t.boundingSphere.center)),W.applyMatrix4(e.matrixWorld).applyMatrix4(H)),Array.isArray(r)){const i=t.groups;for(let o=0,s=i.length;o<s;o++){const s=i[o],a=r[s.materialIndex];a&&a.visible&&m.push(e,t,a,n,W.z,s)}}else r.visible&&m.push(e,t,r,n,W.z,null)}const r=e.children;for(let e=0,o=r.length;e<o;e++)Ne(r[e],t,n,i)}function De(e,t,n,i){const r=e.opaque,o=e.transmissive,s=e.transparent;g.setupLightsView(n),!0===$&&ue.setGlobalState(y.clippingPlanes,n),i&&Q.viewport(T.copy(i)),r.length>0&&Oe(r,t,n),o.length>0&&Oe(o,t,n),s.length>0&&Oe(s,t,n),Q.buffers.depth.setTest(!0),Q.buffers.depth.setMask(!0),Q.buffers.color.setMask(!0),Q.setPolygonOffset(!1)}function Ie(e,t,n,i){if(null!==(!0===n.isScene?n.overrideMaterial:null))return;void 0===g.state.transmissionRenderTarget[i.id]&&(g.state.transmissionRenderTarget[i.id]=new ji(1,1,{generateMipmaps:!0,type:q.has("EXT_color_buffer_half_float")||q.has("EXT_color_buffer_float")?bu:si,minFilter:Go,samples:4,stencilBuffer:r,resolveDepthBuffer:!1,resolveStencilBuffer:!1,colorSpace:Ht.workingColorSpace}));const o=g.state.transmissionRenderTarget[i.id],s=i.viewport||T;o.setSize(s.z*y.transmissionResolutionScale,s.w*y.transmissionResolutionScale);const a=y.getRenderTarget(),l=y.getActiveCubeFace(),c=y.getActiveMipmapLevel();y.setRenderTarget(o),y.getClearColor(A),L=y.getClearAlpha(),L<1&&y.setClearColor(16777215,.5),y.clear(),X&&he.render(n);const u=y.toneMapping;y.toneMapping=0;const d=i.viewport;if(void 0!==i.viewport&&(i.viewport=void 0),g.setupLightsView(i),!0===$&&ue.setGlobalState(y.clippingPlanes,i),Oe(e,n,i),ee.updateMultisampleRenderTarget(o),ee.updateRenderTargetMipmap(o),!1===q.has("WEBGL_multisampled_render_to_texture")){let e=!1;for(let r=0,o=t.length;r<o;r++){const o=t[r],s=o.object,a=o.geometry,l=o.material,c=o.group;if(2===l.side&&s.layers.test(i.layers)){const t=l.side;l.side=1,l.needsUpdate=!0,Ue(s,n,i,a,l,c),l.side=t,l.needsUpdate=!0,e=!0}}!0===e&&(ee.updateMultisampleRenderTarget(o),ee.updateRenderTargetMipmap(o))}y.setRenderTarget(a,l,c),y.setClearColor(A,L),void 0!==d&&(i.viewport=d),y.toneMapping=u}function Oe(e,t,n){const i=!0===t.isScene?t.overrideMaterial:null;for(let r=0,o=e.length;r<o;r++){const o=e[r],s=o.object,a=o.geometry,l=o.group;let c=o.material;!0===c.allowOverride&&null!==i&&(c=i),s.layers.test(n.layers)&&Ue(s,t,n,a,c,l)}}function Ue(e,t,n,i,r,o){e.onBeforeRender(y,t,n,i,r,o),e.modelViewMatrix.multiplyMatrices(n.matrixWorldInverse,e.matrixWorld),e.normalMatrix.getNormalMatrix(e.modelViewMatrix),r.onBeforeRender(y,t,n,i,e,o),!0===r.transparent&&2===r.side&&!1===r.forceSinglePass?(r.side=1,r.needsUpdate=!0,y.renderBufferDirect(n,t,i,r,e,o),r.side=0,r.needsUpdate=!0,y.renderBufferDirect(n,t,i,r,e,o),r.side=2):y.renderBufferDirect(n,t,i,r,e,o),e.onAfterRender(y,t,n,i,r,o)}function ke(e,t,n){!0!==t.isScene&&(t=j);const i=Z.get(e),r=g.state.lights,o=g.state.shadowsArray,s=r.state.version,a=se.getParameters(e,r.state,o,t,n),l=se.getProgramCacheKey(a);let c=i.programs;i.environment=e.isMeshStandardMaterial?t.environment:null,i.fog=t.fog,i.envMap=(e.isMeshStandardMaterial?ne:te).get(e.envMap||i.environment),i.envMapRotation=null!==i.environment&&null===e.envMap?t.environmentRotation:e.envMapRotation,void 0===c&&(e.addEventListener("dispose",Te),c=new Map,i.programs=c);let u=c.get(l);if(void 0!==u){if(i.currentProgram===u&&i.lightsStateVersion===s)return ze(e,a),u}else a.uniforms=se.getUniforms(e),e.onBeforeCompile(a,y),u=se.acquireProgram(a,l),c.set(l,u),i.uniforms=a.uniforms;const d=i.uniforms;return(!e.isShaderMaterial&&!e.isRawShaderMaterial||!0===e.clipping)&&(
vendor: 5,195 bytes, line 13
13d.clippingPlanes=ue.uniform),ze(e,a),i.needsLights=function(e){return e.isMeshLambertMaterial||e.isMeshToonMaterial||e.isMeshPhongMaterial||e.isMeshStandardMaterial||e.isShadowMaterial||e.isShaderMaterial&&!0===e.lights}(e),i.lightsStateVersion=s,i.needsLights&&(d.ambientLightColor.value=r.state.ambient,d.lightProbe.value=r.state.probe,d.directionalLights.value=r.state.directional,d.directionalLightShadows.value=r.state.directionalShadow,d.spotLights.value=r.state.spot,d.spotLightShadows.value=r.state.spotShadow,d.rectAreaLights.value=r.state.rectArea,d.ltc_1.value=r.state.rectAreaLTC1,d.ltc_2.value=r.state.rectAreaLTC2,d.pointLights.value=r.state.point,d.pointLightShadows.value=r.state.pointShadow,d.hemisphereLights.value=r.state.hemi,d.directionalShadowMap.value=r.state.directionalShadowMap,d.directionalShadowMatrix.value=r.state.directionalShadowMatrix,d.spotShadowMap.value=r.state.spotShadowMap,d.spotLightMatrix.value=r.state.spotLightMatrix,d.spotLightMap.value=r.state.spotLightMap,d.pointShadowMap.value=r.state.pointShadowMap,d.pointShadowMatrix.value=r.state.pointShadowMatrix),i.currentProgram=u,i.uniformsList=null,u}function Fe(e){if(null===e.uniformsList){const t=e.currentProgram.getUniforms();e.uniformsList=pd.seqWithValue(t.seq,e.uniforms)}return e.uniformsList}function ze(e,t){const n=Z.get(e);n.outputColorSpace=t.outputColorSpace,n.batching=t.batching,n.batchingColor=t.batchingColor,n.instancing=t.instancing,n.instancingColor=t.instancingColor,n.instancingMorph=t.instancingMorph,n.skinning=t.skinning,n.morphTargets=t.morphTargets,n.morphNormals=t.morphNormals,n.morphColors=t.morphColors,n.morphTargetsCount=t.morphTargetsCount,n.numClippingPlanes=t.numClippingPlanes,n.numIntersection=t.numClipIntersection,n.vertexAlphas=t.vertexAlphas,n.vertexTangents=t.vertexTangents,n.toneMapping=t.toneMapping}Pe.setAnimationLoop((function(e){Re&&Re(e)})),typeof self<"u"&&Pe.setContext(self),this.setAnimationLoop=function(e){Re=e,Se.setAnimationLoop(e),null===e?Pe.stop():Pe.start()},Se.addEventListener("sessionstart",Ae),Se.addEventListener("sessionend",Le),this.render=function(e,t){if(void 0!==t&&!0!==t.isCamera)return void console.error("THREE.WebGLRenderer.render: camera is not an instance of THREE.Camera.");if(!0===_)return;if(!0===e.matrixWorldAutoUpdate&&e.updateMatrixWorld(),null===t.parent&&!0===t.matrixWorldAutoUpdate&&t.updateMatrixWorld(),!0===Se.enabled&&!0===Se.isPresenting&&(!0===Se.cameraAutoUpdate&&Se.updateCamera(t),t=Se.getCamera()),!0===e.isScene&&e.onBeforeRender(y,e,t,w),g=ce.get(e,b.length),g.init(t),b.push(g),H.multiplyMatrices(t.projectionMatrix,t.matrixWorldInverse),B.setFromProjectionMatrix(H,cr,t.reversedDepth),G=this.localClippingEnabled,$=ue.init(this.clippingPlanes,G),m=le.get(e,v.length),m.init(),v.push(m),!0===Se.enabled&&!0===Se.isPresenting){const e=y.xr.getDepthSensingMesh();null!==e&&Ne(e,t,-1/0,y.sortObjects)}Ne(e,t,0,y.sortObjects),m.finish(),!0===y.sortObjects&&m.sort(I,O),X=!1===Se.enabled||!1===Se.isPresenting||!1===Se.hasDepthSensing(),X&&he.addToRenderList(m,e),this.info.render.frame++,!0===$&&ue.beginShadows();const n=g.state.shadowsArray;de.render(n,e,t),!0===$&&ue.endShadows(),!0===this.info.autoReset&&this.info.reset();const i=m.opaque,r=m.transmissive;if(g.setupLights(),t.isArrayCamera){const n=t.cameras;if(r.length>0)for(let t=0,o=n.length;t<o;t++){Ie(i,r,e,n[t])}X&&he.render(e);for(let t=0,i=n.length;t<i;t++){const i=n[t];De(m,e,i,i.viewport)}}else r.length>0&&Ie(i,r,e,t),X&&he.render(e),De(m,e,t);null!==w&&0===S&&(ee.updateMultisampleRenderTarget(w),ee.updateRenderTargetMipmap(w)),!0===e.isScene&&e.onAfterRender(y,e,t),ve.resetDefaultState(),M=-1,E=null,b.pop(),b.length>0?(g=b[b.length-1],!0===$&&ue.setGlobalState(y.clippingPlanes,g.state.camera)):g=null,v.pop(),m=v.length>0?v[v.length-1]:null},this.getActiveCubeFace=function(){return x},this.getActiveMipmapLevel=function(){return S},this.getRenderTarget=function(){return w},this.setRenderTargetTextures=function(e,t,n){const i=Z.get(e);i.__autoAllocateDepthBuffer=!1===e.resolveDepthBuffer,!1===i.__autoAllocateDepthBuffer&&(i.__useRenderToTexture=!1),Z.get(e.texture).__webglTexture=t,Z.get(e.depthTexture).__webglTexture=i.__autoAllocateDepthBuffer?void 0:n,i.__hasExternalTextures=!0},this.setRenderTargetFramebuffer=function(e,t){const n=Z.get(e);n.__webglFramebuffer=t,n.__useDefaultFramebuffer=void 0===t};const Be=ye.createFramebuffer();this.setRenderTarget=function(e,t=0,n=0){w=e,x=t,S=n;let i=!0,r=null,o=!1,s=!1;if(e){const a=Z.get(e);if(void 0!==a.__useDefaultFramebuffer)Q.bindFramebuffer(ye.FRAMEBUFFER,null),i=!1;else if(void 0===a.__webglFramebuffer)ee.setupRenderTarget(e);else if(a.__hasExternalTextures)ee.rebindTextures(e,Z.get(e.texture).__webglTexture,Z.get(e.depthTexture).__webglTexture);else if(e.depthBuffer){const t=e.depthTexture;if(a.__boundDepthTexture!==t){if(null!==t&&Z.has(t)&&(e.width!==t.image.width||e.height!==t.image.height))throw new Error("WebGLRenderTarget: Attached DepthTexture is initialized to the incorrect size.");ee.setupDepthRenderbuffer(e)}}const l=e.texture;(l.isData3DTexture||l.isDataArrayTexture||l.isCompressedArrayTexture)&&(s=!0);const c=Z.get(e).__webglFramebuffer;
vendor: 4,397 bytes, line 13
13e.isWebGLCubeRenderTarget?(r=Array.isArray(c[t])?c[t][n]:c[t],o=!0):r=e.samples>0&&!1===ee.useMultisampledRTT(e)?Z.get(e).__webglMultisampledFramebuffer:Array.isArray(c)?c[n]:c,T.copy(e.viewport),C.copy(e.scissor),R=e.scissorTest}else T.copy(U).multiplyScalar(D).floor(),C.copy(F).multiplyScalar(D).floor(),R=z;if(0!==n&&(r=Be),Q.bindFramebuffer(ye.FRAMEBUFFER,r)&&i&&Q.drawBuffers(e,r),Q.viewport(T),Q.scissor(C),Q.setScissorTest(R),o){const i=Z.get(e.texture);ye.framebufferTexture2D(ye.FRAMEBUFFER,ye.COLOR_ATTACHMENT0,ye.TEXTURE_CUBE_MAP_POSITIVE_X+t,i.__webglTexture,n)}else if(s){const i=t;for(let t=0;t<e.textures.length;t++){const r=Z.get(e.textures[t]);ye.framebufferTextureLayer(ye.FRAMEBUFFER,ye.COLOR_ATTACHMENT0+t,r.__webglTexture,n,i)}}else if(null!==e&&0!==n){const t=Z.get(e.texture);ye.framebufferTexture2D(ye.FRAMEBUFFER,ye.COLOR_ATTACHMENT0,ye.TEXTURE_2D,t.__webglTexture,n)}M=-1},this.readRenderTargetPixels=function(e,t,n,i,r,o,s,a=0){if(!e||!e.isWebGLRenderTarget)return void console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not THREE.WebGLRenderTarget.");let l=Z.get(e).__webglFramebuffer;if(e.isWebGLCubeRenderTarget&&void 0!==s&&(l=l[s]),l){Q.bindFramebuffer(ye.FRAMEBUFFER,l);try{const s=e.textures[a],l=s.format,c=s.type;if(!K.textureFormatReadable(l))return void console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not in RGBA or implementation defined format.");if(!K.textureTypeReadable(c))return void console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not in UnsignedByteType or implementation defined type.");t>=0&&t<=e.width-i&&n>=0&&n<=e.height-r&&(e.textures.length>1&&ye.readBuffer(ye.COLOR_ATTACHMENT0+a),ye.readPixels(t,n,i,r,ge.convert(l),ge.convert(c),o))}finally{const e=null!==w?Z.get(w).__webglFramebuffer:null;Q.bindFramebuffer(ye.FRAMEBUFFER,e)}}},this.readRenderTargetPixelsAsync=async function(e,t,n,i,r,o,s,a=0){if(!e||!e.isWebGLRenderTarget)throw new Error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not THREE.WebGLRenderTarget.");let l=Z.get(e).__webglFramebuffer;if(e.isWebGLCubeRenderTarget&&void 0!==s&&(l=l[s]),l){if(t>=0&&t<=e.width-i&&n>=0&&n<=e.height-r){Q.bindFramebuffer(ye.FRAMEBUFFER,l);const s=e.textures[a],c=s.format,u=s.type;if(!K.textureFormatReadable(c))throw new Error("THREE.WebGLRenderer.readRenderTargetPixelsAsync: renderTarget is not in RGBA or implementation defined format.");if(!K.textureTypeReadable(u))throw new Error("THREE.WebGLRenderer.readRenderTargetPixelsAsync: renderTarget is not in UnsignedByteType or implementation defined type.");const d=ye.createBuffer();ye.bindBuffer(ye.PIXEL_PACK_BUFFER,d),ye.bufferData(ye.PIXEL_PACK_BUFFER,o.byteLength,ye.STREAM_READ),e.textures.length>1&&ye.readBuffer(ye.COLOR_ATTACHMENT0+a),ye.readPixels(t,n,i,r,ge.convert(c),ge.convert(u),0);const h=null!==w?Z.get(w).__webglFramebuffer:null;Q.bindFramebuffer(ye.FRAMEBUFFER,h);const p=ye.fenceSync(ye.SYNC_GPU_COMMANDS_COMPLETE,0);return ye.flush(),await gD(ye,p,4),ye.bindBuffer(ye.PIXEL_PACK_BUFFER,d),ye.getBufferSubData(ye.PIXEL_PACK_BUFFER,0,o),ye.deleteBuffer(d),ye.deleteSync(p),o}throw new Error("THREE.WebGLRenderer.readRenderTargetPixelsAsync: requested read bounds are out of range.")}},this.copyFramebufferToTexture=function(e,t=null,n=0){const i=Math.pow(2,-n),r=Math.floor(e.image.width*i),o=Math.floor(e.image.height*i),s=null!==t?t.x:0,a=null!==t?t.y:0;ee.setTexture2D(e,0),ye.copyTexSubImage2D(ye.TEXTURE_2D,n,0,0,s,a,r,o),Q.unbindTexture()};const $e=ye.createFramebuffer(),Ge=ye.createFramebuffer();this.copyTextureToTexture=function(e,t,n=null,i=null,r=0,o=null){let s,a,l,c,u,d,h,p,f;null===o&&(0!==r?(Il("WebGLRenderer: copyTextureToTexture function signature has changed to support src and dst mipmap levels."),o=r,r=0):o=0);const m=e.isCompressedTexture?e.mipmaps[o]:e.image;if(null!==n)s=n.max.x-n.min.x,a=n.max.y-n.min.y,l=n.isBox3?n.max.z-n.min.z:1,c=n.min.x,u=n.min.y,d=n.isBox3?n.min.z:0;else{const t=Math.pow(2,-r);s=Math.floor(m.width*t),a=Math.floor(m.height*t),l=e.isDataArrayTexture?m.depth:e.isData3DTexture?Math.floor(m.depth*t):1,c=0,u=0,d=0}null!==i?(h=i.x,p=i.y,f=i.z):(h=0,p=0,f=0);const g=ge.convert(t.format),v=ge.convert(t.type);let b;t.isData3DTexture?(ee.setTexture3D(t,0),b=ye.TEXTURE_3D):t.isDataArrayTexture||t.isCompressedArrayTexture?(ee.setTexture2DArray(t,0),b=ye.TEXTURE_2D_ARRAY):(ee.
13setTexture2D(t,0),b=ye.TEXTURE_2D),ye.pixelStorei(ye.UNPACK_FLIP_Y_WEBGL,t.flipY),ye.pixelStorei(ye.UNPACK_PREMULTIPLY_ALPHA_WEBGL,t.premultiplyAlpha),ye.pixelStorei(ye.UNPACK_ALIGNMENT,t.unpackAlignment);const y=ye.getParameter(ye.UNPACK_ROW_LENGTH),_=ye.getParameter(ye.UNPACK_IMAGE_HEIGHT),x=ye.getParameter(ye.UNPACK_SKIP_PIXELS),S=ye.getParameter(ye.UNPACK_SKIP_ROWS),w=ye.getParameter(ye.UNPACK_SKIP_IMAGES);ye.pixelStorei(ye.UNPACK_ROW_LENGTH,m.width),ye.pixelStorei(ye.UNPACK_IMAGE_HEIGHT,m.height),ye.pixelStorei(ye.UNPACK_SKIP_PIXELS,c),ye.pixelStorei(ye.UNPACK_SKIP_ROWS,u),ye.pixelStorei(ye.UNPACK_SKIP_IMAGES,d);const M=e.isDataArrayTexture||e.isData3DTexture,E=t.isDataArrayTexture||t.isData3DTexture;if(e.isDepthTexture){const n=Z.get(e),i=Z.get(t),m=Z.get(n.__renderTarget),g=Z.get(i.__renderTarget);Q.bindFramebuffer(ye.READ_FRAMEBUFFER,m.__webglFramebuffer),Q.bindFramebuffer(ye.DRAW_FRAMEBUFFER,g.__webglFramebuffer);for(let n=0;n<l;n++)M&&(ye.framebufferTextureLayer(ye.READ_FRAMEBUFFER,ye.COLOR_ATTACHMENT0,Z.get(e).__webglTexture,r,d+n),ye.framebufferTextureLayer(ye.DRAW_FRAMEBUFFER,ye.COLOR_ATTACHMENT0,Z.get(t).__webglTexture,o,f+n)),ye.blitFramebuffer(c,u,s,a,h,p,s,a,ye.DEPTH_BUFFER_BIT,ye.NEAREST);Q.bindFramebuffer(ye.READ_FRAMEBUFFER,null),Q.bindFramebuffer(ye.DRAW_FRAMEBUFFER,null)}else if(0!==r||e.isRenderTargetTexture||Z.has(e)){const n=Z.get(e),i=Z.get(t);Q.bindFramebuffer(ye.READ_FRAMEBUFFER,$e),Q.bindFramebuffer(ye.DRAW_FRAMEBUFFER,Ge);for(let e=0;e<l;e++)M?ye.framebufferTextureLayer(ye.READ_FRAMEBUFFER,ye.COLOR_ATTACHMENT0,n.__webglTexture,r,d+e):ye.framebufferTexture2D(ye.READ_FRAMEBUFFER,ye.COLOR_ATTACHMENT0,ye.TEXTURE_2D,n.__webglTexture,r),E?ye.framebufferTextureLayer(ye.DRAW_FRAMEBUFFER,ye.COLOR_ATTACHMENT0,i.__webglTexture,o,f+e):ye.framebufferTexture2D(ye.DRAW_FRAMEBUFFER,ye.COLOR_ATTACHMENT0,ye.TEXTURE_2D,i.__webglTexture,o),0!==r?ye.blitFramebuffer(c,u,s,a,h,p,s,a,ye.COLOR_BUFFER_BIT,ye.NEAREST):E?ye.copyTexSubImage3D(b,o,h,p,f+e,c,u,s,a):ye.copyTexSubImage2D(b,o,h,p,c,u,s,a);Q.bindFramebuffer(ye.READ_FRAMEBUFFER,null),Q.bindFramebuffer(ye.DRAW_FRAMEBUFFER,null)}else E?e.isDataTexture||e.isData3DTexture?ye.texSubImage3D(b,o,h,p,f,s,a,l,g,v,m.data):t.isCompressedArrayTexture?ye.compressedTexSubImage3D(b,o,h,p,f,s,a,l,g,m.data):ye.texSubImage3D(b,o,h,p,f,s,a,l,g,v,m):e.isDataTexture?ye.texSubImage2D(ye.TEXTURE_2D,o,h,p,s,a,g,v,m.data):e.isCompressedTexture?ye.compressedTexSubImage2D(ye.TEXTURE_2D,o,h,p,m.width,m.height,g,m.data):ye.texSubImage2D(ye.TEXTURE_2D,o,h,p,s,a,g,v,m);ye.pixelStorei(ye.UNPACK_ROW_LENGTH,y),ye.pixelStorei(ye.UNPACK_IMAGE_HEIGHT,_),ye.pixelStorei(ye.UNPACK_SKIP_PIXELS,x),ye.pixelStorei(ye.UNPACK_SKIP_ROWS,S),ye.pixelStorei(ye.UNPACK_SKIP_IMAGES,w),0===o&&t.generateMipmaps&&ye.generateMipmap(b),Q.unbindTexture()},this.initRenderTarget=function(e){void 0===Z.get(e).__webglFramebuffer&&ee.setupRenderTarget(e)},this.initTexture=function(e){e.isCubeTexture?ee.setTextureCube(e,0):e.isData3DTexture?ee.setTexture3D(e,0):e.isDataArrayTexture||e.isCompressedArrayTexture?ee.setTexture2DArray(e,0):ee.setTexture2D(e,0),Q.unbindTexture()},this.resetState=function(){x=0,S=0,w=null,Q.reset(),ve.reset()},typeof __THREE_DEVTOOLS__<"u"&&__THREE_DEVTOOLS__.dispatchEvent(new CustomEvent("observe",{detail:this}))}get coordinateSystem(){return cr}get outputColorSpace(){return this._outputColorSpace}set outputColorSpace(e){this._outputColorSpace=e;const t=this.getContext();t.drawingBufferColorSpace=Ht._getDrawingBufferColorSpace(e),t.unpackColorSpace=Ht._getUnpackColorSpace()}}const J5=()=>new Bd,eU=e=>{const t=new ri(50,e.aspect,.1,2e3);return t.position.set(0,0,50),t.lookAt(0,0,0),t},tU=(e,t)=>{e.aspect=t.aspect,e.updateProjectionMatrix()},nU=e=>{const t=new Z5({antialias:!1,alpha:!0});return t.setSize(e.width,e.height),t.setPixelRatio(Math.min(window.devicePixelRatio,2)),t.outputColorSpace=fn,t.shadowMap.enabled=!0,t.shadowMap.type=2,t},iU=(e,t)=>{e.setSize(t.width,t.height),e.setPixelRatio(t.pixelRatio)},rU=(e,t,n,i)=>{const r=new mI,o=[];let s=!1;const a=i||(()=>n.render(t,e)),l=()=>{var e;const t=r.getDelta();for(const n of o)null==(e=n.tick)||e.call(n,t);a()};return{start:()=>{s||(s=!0,n.setAnimationLoop(l))},stop:()=>{s&&(s=!1,n.setAnimationLoop(null))},addUpdatable:e=>o.push(e),removeUpdatable:e=>{const t=o.indexOf(e);t>-1&&o.splice(t,1)}}},oU=(...e)=>{const t=new Na(...e);return t.userData.isEnvironment=!0,t},zb=(e=16777215)=>{const t="number"==typeof e&&e<256,n=new R1({side:1,color:t?16777215:e});return t&&n.color.setScalar(e),n.userData.isEnvironment=!0,n},sU=(...e)=>{const t=new Ef(...e);return t.userData.isEnvironment=!0,t},aU=e=>{const t=new k(1,0,0),n=new k(0,1,0),{lightColor:i=16777215,backdropColor:r=30}={},o=new Bd,s=new fI(i,240,500);s.position.set(-30,25,-25),o.add(s);const a=oU(600,60,300),l=zb(r),c=new On(a,l);c.rotateX(.15*Math.PI),c.position.set(0,0,30),o.add(c);const u=sU(8,16,16),d=zb(10);{const e=new On(u,d);for(let i=0;i<20;i++){const r=e.clone();
13r.position.z=20+15*Math.random(),Hb(r,new k(0,0,0),t,180*(Math.random()-.5)*(Math.PI/180)),Hb(r,new k(0,0,0),n,18*i*(Math.PI/180)),o.add(r)}}return o},lU=e=>{const t=new Set;e.traverse((e=>{var n,i;e instanceof On&&e.isMesh&&(null!=(n=e.geometry.userData)&&n.isEnvironment||null!=(i=e.material.userData)&&i.isEnvironment)&&(t.add(e.geometry),t.add(e.material))}));for(const e of t)e.dispose()},cU=async(e,t)=>{const n=aU(),i=new nm(t);e.environment=i.fromScene(n).texture,lU(n),i.dispose()},Hb=(e,t,n,i)=>{e.position.sub(t),e.position.applyAxisAngle(n,i),e.position.add(t),e.rotateOnAxis(n,i)};function uU(e,t=!1){const n=null!==e[0].index,i=new Set(Object.keys(e[0].attributes)),r=new Set(Object.keys(e[0].morphAttributes)),o={},s={},a=e[0].morphTargetsRelative,l=new Zi;let c=0;for(let u=0;u<e.length;++u){const d=e[u];let h=0;if(n!==(null!==d.index))return console.error("THREE.BufferGeometryUtils: .mergeGeometries() failed with geometry at index "+u+". All geometries must have compatible attributes; make sure index attribute exists among all geometries, or in none of them."),null;for(const e in d.attributes){if(!i.has(e))return console.error("THREE.BufferGeometryUtils: .mergeGeometries() failed with geometry at index "+u+'. All geometries must have compatible attributes; make sure "'+e+'" attribute exists among all geometries, or in none of them.'),null;void 0===o[e]&&(o[e]=[]),o[e].push(d.attributes[e]),h++}if(h!==i.size)return console.error("THREE.BufferGeometryUtils: .mergeGeometries() failed with geometry at index "+u+". Make sure all geometries have the same number of attributes."),null;if(a!==d.morphTargetsRelative)return console.error("THREE.BufferGeometryUtils: .mergeGeometries() failed with geometry at index "+u+". .morphTargetsRelative must be consistent throughout all geometries."),null;for(const e in d.morphAttributes){if(!r.has(e))return console.error("THREE.BufferGeometryUtils: .mergeGeometries() failed with geometry at index "+u+". .morphAttributes must be consistent throughout all geometries."),null;void 0===s[e]&&(s[e]=[]),s[e].push(d.morphAttributes[e])}if(t){let e;if(n)e=d.index.count;else{if(void 0===d.attributes.position)return console.error("THREE.BufferGeometryUtils: .mergeGeometries() failed with geometry at index "+u+". The geometry must have either an index or a position attribute"),null;e=d.attributes.position.count}l.addGroup(c,e,u),c+=e}}if(n){let t=0;const n=[];for(let i=0;i<e.length;++i){const r=e[i].index;for(let e=0;e<r.count;++e)n.push(r.getX(e)+t);t+=e[i].attributes.position.count}l.setIndex(n)}for(const e in o){const t=Vb(o[e]);if(!t)return console.error("THREE.BufferGeometryUtils: .mergeGeometries() failed while trying to merge the "+e+" attribute."),null;l.setAttribute(e,t)}for(const e in s){const t=s[e][0].length;if(0===t)break;l.morphAttributes=l.morphAttributes||{},l.morphAttributes[e]=[];for(let n=0;n<t;++n){const t=[];for(let i=0;i<s[e].length;++i)t.push(s[e][i][n]);const i=Vb(t);if(!i)return console.error("THREE.BufferGeometryUtils: .mergeGeometries() failed while trying to merge the "+e+" morphAttribute."),null;l.morphAttributes[e].push(i)}}return l}function Vb(e){let t,n,i,r=-1,o=0;for(let s=0;s<e.length;++s){const a=e[s];if(void 0===t&&(t=a.array.constructor),t!==a.array.constructor)return console.error("THREE.BufferGeometryUtils: .mergeAttributes() failed. BufferAttribute.array must be of consistent array types across matching attributes."),null;if(void 0===n&&(n=a.itemSize),n!==a.itemSize)return console.error("THREE.BufferGeometryUtils: .mergeAttributes() failed. BufferAttribute.itemSize must be consistent across matching attributes."),null;if(void 0===i&&(i=a.normalized),i!==a.normalized)return console.error("THREE.BufferGeometryUtils: .mergeAttributes() failed. BufferAttribute.normalized must be consistent across matching attributes."),null;if(-1===r&&(r=a.gpuType),r!==a.gpuType)return console.error("THREE.BufferGeometryUtils: .mergeAttributes() failed. BufferAttribute.gpuType must be consistent across matching attributes."),null;o+=a.count*n}const s=new t(o),a=new yi(s,n,i);let l=0;for(let t=0;t<e.length;++t){const i=e[t];if(i.isInterleavedBufferAttribute){const e=l/n;for(let t=0,r=i.count;t<r;t++)for(let r=0;r<n;r++){const n=i.getComponent(t,r);a.setComponent(t+e,r,n)}}else s.set(i.array,l);l+=i.count*n}return void 0!==r&&(a.gpuType=r),a}const dU={tetrahedral:[new k(1,1,1),new k(-1,-1,1),new k(-1,1,-1),new k(1,-1,-1)],linear:[new k(1,0,0),new k(-1,0,0)],trigonalPlanar:[new k(1,0,0),new k(Math.cos(2*Math.PI/3),0,Math.sin(2*Math.PI/3)),new k(Math.cos(4*Math.PI/3),0,Math.sin(4*Math.PI/3))],trigonalBipyrami
13dal:[new k(1,0,0),new k(Math.cos(2*Math.PI/3),0,Math.sin(2*Math.PI/3)),new k(Math.cos(4*Math.PI/3),0,Math.sin(4*Math.PI/3)),new k(0,1,0),new k(0,-1,0)]},U1=(()=>{const e=new Map;return(...t)=>{const n=t.join("_");return e.has(n)||e.set(n,new Ef(...t)),e.get(n).clone()}})(),fU=(()=>{const e=new Map;return(t,n,i,r,o=16)=>{const s=`${t}_${n}_${i}_${r}_${o}`;if(!e.has(s)){const a=n/2,l=new tt(0,-a),c=new tt(0,a),u=.3,d=.3,h=.3,p=.5,f=.01,m=-1+i*(1+.4)/a,g=1-r*(1+.4)/a,v=m*a,b=g*a,y=Math.sqrt(Math.pow(i,2)-Math.pow(t,2)),_=Math.sqrt(Math.pow(r,2)-Math.pow(t,2)),x=new tt(t,l.y+y),S=new tt(t,c.y-_),w=Math.max(f,t/i),M=Math.max(f,t/r),E=p*Math.max(0,(1-w)/(1-f)),T=p*Math.max(0,(1-M)/(1-f)),C=1.001,R=new tt((x.x+E*i)*C,l.y+Math.sqrt(Math.pow(i,2)-Math.pow(x.x+E*i,2))),A=new tt((S.x+T*r)*C,c.y-Math.sqrt(Math.pow(r,2)-Math.pow(S.x+T*r,2))),L=new tt(t,v),P=new tt(t,b),N=(new tt).subVectors(R,l).normalize(),D=new tt(-N.y,N.x),I=(new tt).addVectors(R,D.multiplyScalar(u*i)),O=(new tt).subVectors(A,c).normalize(),U=new tt(-O.y,O.x),k=(new tt).addVectors(A,U.multiplyScalar(-.3*r)),F=d*i,z=new tt(L.x,L.y-F),B=h*r,$=new tt(P.x,P.y+B),G=new sI;if(m>=g){const e=new tt(t,(i-r)/(i+r)*a),n=new tt(e.x,e.y-F),o=new tt(e.x,e.y+B);G.add(new tl(R,I,n,e)),G.add(new tl(e,o,k,A))}else G.add(new tl(R,I,z,L)),G.add(new P1(L,P)),G.add(new tl(P,$,k,A));const H=G.getPoints(o);e.set(s,new wv(H,o))}return e.get(s).clone()}})(),md=(()=>{let e=null;return()=>(e||(e=new R1({roughness:.1,metalness:.8,emissiveIntensity:1})),e.clone())})(),Rh=(e,t,n,i)=>{const{centerRadius:r,satelliteRadius:o,bondRadius:s,bondLength:a,fromCenter:l=!0}=t,c=U1(o,32,32);n.onSatellite(c,e);const u=l?r:o,d=o,h=i||new k(0,0,0),p=e.clone().sub(h),f=l?a:p.length(),m=p.normalize(),g=/iPhone|iPad|iPod|Macintosh/i.test(navigator.userAgent),v=fU(s,f,u,d,g?16:32),b=new k(0,1,0),y=new Ia;y.setFromUnitVectors(b,m),v.applyQuaternion(y);const _=h.clone().add(e).multiplyScalar(.5);v.translate(_.x,_.y,_.z),n.onBond(v,e)},F1=(e,t)=>{yu("tetrahedral",e,t)},hU=(e,t)=>{yu("linear",e,t)},pU=(e,t)=>{yu("trigonalPlanar",e,t)},mU=(e,t)=>{yu("trigonalBipyramidal",e,t)},vU=(e,t)=>{yu("doubleBent",e,t)},yu=(e,t,n)=>{const{centerRadius:i,satelliteRadius:r,bondRadius:o,bondLength:s}=t,a=U1(i,32,32);if(n.onCenter(a),"doubleBent"!==e)dU[e].map((e=>e.clone().normalize().multiplyScalar(s))).forEach((e=>{Rh(e,{centerRadius:i,satelliteRadius:r,bondRadius:o,bondLength:s,fromCenter:!0},n)}));else{const e=new k(1,1,1),t=new k(-1,-1,1),a=e.clone().normalize().multiplyScalar(s);[a,t.clone().normalize().multiplyScalar(s)].forEach((e=>{Rh(e,{centerRadius:i,satelliteRadius:r,bondRadius:o,bondLength:s,fromCenter:!0},n)}));const l=new k(1,1,-1).normalize().multiplyScalar(s),c=a.clone().add(l);Rh(c,{centerRadius:r,satelliteRadius:r,bondRadius:o,bondLength:s,fromCenter:!1},n,a)}},$b=e=>{const{centerRadius:t=2.5,satelliteRadius:n=2.5,bondRadius:i=.5,bondLength:r=10,position:o=new k(0,0,0)}=e||{},s=new Br;return F1({centerRadius:t,satelliteRadius:n,bondRadius:i,bondLength:r},{onCenter:e=>{const t=md(),n=new On(e,t);n.castShadow=!0,n.receiveShadow=!0,s.add(n)},onSatellite:(e,t)=>{const n=md(),i=new On(e,n);i.position.copy(t),i.castShadow=!0,i.receiveShadow=!0,s.add(i)},onBond:(e,t)=>{const n=md(),i=new On(e,n);i.castShadow=!0,i.receiveShadow=!0,s.add(i)}}),s.position.copy(o),{object:s,metadata:{centerRadius:t,satelliteRadius:n,bondRadius:i,bondLength:r,initialPosition:o.clone()}}},xu=(e,t)=>{const{centerRadius:n=2.5,satelliteRadius:i=2.5,bondRadius:r=.5,bondLength:o=10,bentAngle:s=104.5}=t,a=[];return e({centerRadius:n,satelliteRadius:i,bondRadius:r,bondLength:o,bentAngle:s},{onCenter:e=>{a.push(e)},onSatellite:(e,t)=>{e.translate(t.x,t.y,t.z),a.push(e)},onBond:e=>{a.push(e)}}),uU(a)},gU=e=>xu(F1,e||{}),bU=e=>xu(hU,e||{}),_U=e=>xu(pU,e||{}),yU=e=>xu(mU,e||{}),xU=e=>xu(vU,e||{}),Su=(e,t)=>{const n=new Map;return i=>{const{centerRadius:r=2.5,satelliteRadius:o=2.5,bondRadius:s=.5,bondLength:a=10,bentAngle:l=104.5}=i||{},c=`${e}_${r}_${o}_${s}_${a}_${l}`;return n.has(c)||n.set(c,t(i)),n.get(c)}},SU=Su("tetrahedral",gU),EU=Su("linear",bU),wU=Su("trigonalPlanar",_U),MU=Su("trigonalBipyrami
13dal",yU),TU=Su("doubleBent",xU),AU=e=>{const t={tetrahedral:1,linear:0,trigonalPlanar:0,trigonalBipyramidal:0,doubleBent:0,...e},n=t.tetrahedral+t.linear+t.trigonalPlanar+t.trigonalBipyramidal+t.doubleBent;if(0===n)return"tetrahedral";const i=Math.random()*n;let r=0;return r+=t.tetrahedral,i<r?"tetrahedral":(r+=t.linear,i<r?"linear":(r+=t.trigonalPlanar,i<r?"trigonalPlanar":(r+=t.trigonalBipyramidal,i<r?"trigonalBipyramidal":"doubleBent")))},CU=e=>{const{centerRadius:t=2.5,satelliteRadius:n=2.5,bondRadius:i=.5,bondLength:r=10,bentAngle:o=104.5,position:s=new k(0,0,0),scale:a=1,geometryRatios:l}=e||{};let c;switch(AU(l)){case"linear":c=EU({centerRadius:t,satelliteRadius:n,bondRadius:i,bondLength:r});break;case"trigonalPlanar":c=wU({centerRadius:t,satelliteRadius:n,bondRadius:i,bondLength:r});break;case"trigonalBipyramidal":c=MU({centerRadius:t,satelliteRadius:n,bondRadius:i,bondLength:r});break;case"doubleBent":c=TU({centerRadius:t,satelliteRadius:n,bondRadius:i,bondLength:r,bentAngle:o});break;default:c=SU({centerRadius:t,satelliteRadius:n,bondRadius:i,bondLength:r})}const u=md(),d=new On(c,u);d.castShadow=!0,d.receiveShadow=!0;const h=new Br;return h.add(d),h.position.copy(s),h.scale.setScalar(a),h},Ao=typeof window<"u",Lh=Ao?window:null,Nl=Ao?document:null,mn={OBJECT:0,ATTRIBUTE:1,CSS:2,TRANSFORM:3,CSS_VAR:4},Bt={NUMBER:0,UNIT:1,COLOR:2,COMPLEX:3},Li={NONE:0,AUTO:1,FORCE:2},Kn={replace:0,none:1,blend:2},Gb=Symbol(),Tv=Symbol(),B1=Symbol(),Mf=Symbol(),PU=Symbol(),tn=1e-11,k1=1e12,xa=1e3,rm=120,ts="",RU="var(",z1=(()=>{const e=new Map;return e.set("x","translateX"),e.set("y","translateY"),e.set("z","translateZ"),e})(),H1=["translateX","translateY","translateZ","rotate","rotateX","rotateY","rotateZ","scale","scaleX","scaleY","scaleZ","skew","skewX","skewY","matrix","matrix3d","perspective"],V1=H1.reduce(((e,t)=>({...e,[t]:t+"("})),{}),pi=()=>{},LU=/(^#([\da-f]{3}){1,2}$)|(^#([\da-f]{4}){1,2}$)/i,DU=/rgb\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/i,IU=/rgba\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*(-?\d+|-?\d*.\d+)\s*\)/i,NU=/hsl\(\s*(-?\d+|-?\d*.\d+)\s*,\s*(-?\d+|-?\d*.\d+)%\s*,\s*(-?\d+|-?\d*.\d+)%\s*\)/i,OU=/hsla\(\s*(-?\d+|-?\d*.\d+)\s*,\s*(-?\d+|-?\d*.\d+)%\s*,\s*(-?\d+|-?\d*.\d+)%\s*,\s*(-?\d+|-?\d*.\d+)\s*\)/i,Wb=/[-+]?\d*\.?\d+(?:e[-+]?\d)?/gi,UU=/^([-+]?\d*\.?\d+(?:e[-+]?\d+)?)([a-z]+|%)$/i,FU=/([a-z])([A-Z])/g,BU=/(\w+)(\([^)]+\)+)/g,kU=/var\(\s*(--[\w-]+)(?:\s*,\s*([^)]+))?\s*\)/,$1={id:null,keyframes:null,playbackEase:null,playbackRate:1,frameRate:rm,loop:0,reversed:!1,alternate:!1,autoplay:!0,persist:!1,duration:xa,delay:0,loopDelay:0,ease:"out(2)",composition:Kn.replace,modifier:e=>e,onBegin:pi,onBeforeUpdate:pi,onUpdate:pi,onLoop:pi,onPause:pi,onComplete:pi,onRender:pi},zU={root:Nl},In={defaults:$1,precision:4,timeScale:1,tickThreshold:200},G1={version:"4.2.2",engine:null}; 14/** 15 * Anime.js - core - ESM 16 * @version v4.2.2 17 * @license MIT 18 * @copyright 2025 - Julian Garnier 19 */Ao&&(Lh.AnimeJS||(Lh.AnimeJS=[]),Lh.AnimeJS.push(G1)); 20/** 21 * Anime.js - core - ESM 22 * @version v4.2.2 23 * @license MIT 24 * @copyright 2025 - Julian Garnier 25 */ 26const W1=e=>e.replace(FU,"$1-$2").toLowerCase(),$r=(e,t)=>0===e.indexOf(t),Sa=Date.now,as=Array.isArray,vd=e=>e&&e.constructor===Object,HU=e=>"number"==typeof e&&!isNaN(e),Ol=e=>"string"==typeof e,kd=e=>"function"==typeof e,Kt=e=>typeof e>"u",hl=e=>Kt(e)||null===e,X1=e=>Ao&&e instanceof SVGElement,q1=e=>LU.test(e),Y1=e=>$r(e,"rgb"),j1=e=>$r(e,"hsl"),VU=e=>q1(e)||Y1(e)||j1(e),pl=e=>!In.defaults.hasOwnProperty(e),$U=["opacity","rotate","overflow","color"],GU=(e,t)=>{if($U.includes(t))return!1;if(e.getAttribute(t)||t in e){if("scale"===t){const t=e.parentNode;return t&&"filter"===t.tagName}return!0}},ks=Math.pow,WU=Math.sqrt,XU=Math.sin,qU=Math.cos,YU=Math.floor,jU=Math.asin,Av=Math.PI,Xb=Math.round,ii=(e,t,n)=>e<t?t:e>n?n:e,qb={},hn=(e,t)=>{if(t<0)return e;if(!t)return Xb(e);let n=qb[t];return n||(n=qb[t]=10**t),Xb(e*n)/n},Bo=(e,t,n)=>e+(t-e)*n,Cv=e=>e===1/0?k1:e===-1/0?-1e12:e,ml=e=>e<=tn?tn:Cv(hn(e,11)),qn=e=>as(e)?[...e]:e,om=(e,t)=>{const n={...e};for(let i in t){const r=e[i];n[i]=Kt(r)?t[i]:r}return n},_n=(e,t,n,i="_prev",r="_next")=>{let o=e._head,s=r;for(n&&(o=e._tail,s=i);o;){const e=o[s];t(o),o=e}},il=(e,t,n="_prev",i="_next")=>{const r=t[n],o=t[i];r?r[i]=o:e._head=o,o?o[n]=r:e._tail=r,t[n]=null,t[i]=null},$s=(e,t,n,i="_prev",r="_next")=>{let o=e._tail;for(;o&&n&&n(o,t);)o=o[i];const s=o?o[r]:e._head;o?o[r]=t:e._head=t,s?s[i]=t:e._tail=t,t[i]=o,t[r]=s},KU=(e,t,n)=>{const i=e.style.transform;let r;if(i){const o=e[Mf];let s;for(;s=BU.exec(i);){const e=s[1],i=s[2].slice(1,-1);o[e]=i,e===t&&(r=i,n&&(n[t]=i))}}return i&&!Kt(r)?r:$r(t,"scale")?"1":$r(t,"rotate")||$r(t,"skew")?"0deg":"0px"},QU=e=>{const t=DU.exec(e)||IU.exec(e),n=Kt(t[4])?1:+t[4];return[+t[1],+t[2],+t[3],n]},ZU=e=>{const t=e.length,n=4===t||5===t;return[+("0x"+e[1]+e[n?1:2]),+("0x"+e[n?2:3]+e[n?2:4]),+("0x"+e[n?3:5]+e[n?3:6]),5===t||9===t?+(+("0x"+e[n?4:7]+e[n?4:8])/255).toFixed(3):1]},Dh=(e,t,n)=>(n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e),JU=e=>{const t=NU.exec(e)||OU.exec(e),n=+t[1]/360,i=+t[2]/100,r=+t[3]/100,o=Kt(t[4])?1:+t[4];let s,a,l;if(0===i)s=a=l=r;else{const e=r<.5?r*(1+i):r+i-r*i,t=2*r-e;s=hn(255*Dh(t,e,n+1/3),0),a=hn(255*Dh(t,e,n),0),l=hn(255*Dh(t,e,n-1/3),0)}return[s,a,l,o]},eF=e=>Y1(e)?QU(e):q1(e)?ZU(e):j1(e)?JU(e):[0,0,0,1] 27/**
28 * Anime.js - core - ESM 29 * @version v4.2.2 30 * @license MIT 31 * @copyright 2025 - Julian Garnier 32 */,jn=(e,t)=>Kt(e)?t:e,no=(e,t,n,i,r)=>{let o;if(kd(e))o=()=>{const r=e(t,n,i);return isNaN(+r)?r||0:+r};else{if(!Ol(e)||!$r(e,RU))return e;o=()=>{var n;const i=e.match(kU),r=i[1],o=i[2];let s=null==(n=getComputedStyle(t))?void 0:n.getPropertyValue(r);return(!s||""===s.trim())&&o&&(s=o.trim()),s||0}}return r&&(r.func=o),o()},K1=(e,t)=>e[Tv]?e[B1]&&GU(e,t)?mn.ATTRIBUTE:H1.includes(t)||z1.get(t)?mn.TRANSFORM:$r(t,"--")?mn.CSS_VAR:t in e.style?mn.CSS:t in e?mn.OBJECT:mn.ATTRIBUTE:mn.OBJECT,Yb=(e,t,n)=>{const i=e.style[t];i&&n&&(n[t]=i);const r=i||getComputedStyle(e[PU]||e).getPropertyValue(t);return"auto"===r?"0":r},Ya=(e,t,n,i)=>{const r=Kt(n)?K1(e,t):n;return r===mn.OBJECT?e[t]||0:r===mn.ATTRIBUTE?e.getAttribute(t):r===mn.TRANSFORM?KU(e,t,i):r===mn.CSS_VAR?Yb(e,t,i).trimStart():Yb(e,t,i)},Ih=(e,t,n)=>"-"===n?e-t:"+"===n?e+t:e*t,Pv=()=>({t:Bt.NUMBER,n:0,u:null,o:null,d:null,s:null}),er=(e,t)=>{if(t.t=Bt.NUMBER,t.n=0,t.u=null,t.o=null,t.d=null,t.s=null,!e)return t;const n=+e;if(isNaN(n)){let n=e;"="===n[1]&&(t.o=n[0],n=n.slice(2));const i=!n.includes(" ")&&UU.exec(n);if(i)return t.t=Bt.UNIT,t.n=+i[1],t.u=i[2],t;if(t.o)return t.n=+n,t;if(VU(n))return t.t=Bt.COLOR,t.d=eF(n),t;{const e=n.match(Wb);return t.t=Bt.COMPLEX,t.d=e?e.map(Number):[],t.s=n.split(Wb)||[],t}}return t.n=n,t},jb=(e,t)=>(t.t=e._valueType,t.n=e._toNumber,t.u=e._unit,t.o=null,t.d=qn(e._toNumbers),t.s=qn(e._strings),t),io=Pv(),gd=(e,t,n,i,r)=>{const o=e.parent,s=e.duration,a=e.completed,l=e.iterationDuration,c=e.iterationCount,u=e._currentIteration,d=e._loopDelay,h=e._reversed,p=e._alternate,f=e._hasChildren,m=e._delay,g=e._currentTime,v=m+l,b=t-m,y=ii(g,-m,s),_=ii(b,-m,s),x=b-g,S=_>0,w=_>=s,M=s<=tn,E=r===Li.FORCE;let T=0,C=b,R=0;if(c>1){const t=~~(_/(l+(w?0:d)));e._currentIteration=ii(t,0,c),w&&e._currentIteration--,T=e._currentIteration%2,C=_%(l+d)||0}const A=h^(p&&T),L=e._ease;let P=w?A?0:s:A?l-C:C;L&&(P=l*L(P/l)||0);const N=(o?o.backwards:b<g)?!A:!!A;if(e._currentTime=b,e._iterationTime=P,e.backwards=N,S&&!e.began?(e.began=!0,!n&&!(o&&(N||!o.began))&&e.onBegin(e)):b<=0&&(e.began=!1),!n&&!f&&S&&e._currentIteration!==u&&e.onLoop(e),E||r===Li.AUTO&&(t>=m&&t<=v||t<=m&&y>m||t>=v&&y!==s)||P>=v&&y!==s||P<=m&&y>0||t<=y&&y===s&&a||w&&!a&&M){if(S&&(e.computeDeltaTime(y),n||e.onBeforeUpdate(e)),!f){const t=E||(N?-1*x:x)>=In.tickThreshold,r=e._offset+(o?o._offset:0)+m+P;let s,a,l,c,u=e._head,d=0;for(;u;){const e=u._composition,n=u._currentTime,o=u._changeDuration,h=u._absoluteStartTime+u._changeDuration,p=u._nextRep,f=u._prevRep,m=e!==Kn.none;if((t||(n!==o||r<=h+(p?p._delay:0))&&(0!==n||r>=u._absoluteStartTime))&&(!m||!u._isOverridden&&(!u._isOverlapped||r<=h)&&(!p||p._isOverridden||r<=p._absoluteStartTime)&&(!f||f._isOverridden||r>=f._absoluteStartTime+f._changeDuration+u._delay))){const t=u._currentTime=ii(P-u._startTime,0,o),n=u._ease(t/u._updateDuration),r=u._modifier,h=u._valueType,p=u._tweenType,f=p===mn.OBJECT,g=h===Bt.NUMBER,v=g&&f||0===n||1===n?-1:In.precision;let b,y;if(g)b=y=r(hn(Bo(u._fromNumber,u._toNumber,n),v));else if(h===Bt.UNIT)y=r(hn(Bo(u._fromNumber,u._toNumber,n),v)),b=`${y}${u._unit}`;else if(h===Bt.COLOR){const e=u._fromNumbers,t=u._toNumbers,i=hn(ii(r(Bo(e[0],t[0],n)),0,255),0),o=hn(ii(r(Bo(e[1],t[1],n)),0,255),0),s=hn(ii(r(Bo(e[2],t[2],n)),0,255),0),a=ii(r(hn(Bo(e[3],t[3],n),v)),0,1);if(b=`rgba(${i},${o},${s},${a})`,m){const e=u._numbers;e[0]=i,e[1]=o,e[2]=s,e[3]=a}}else if(h===Bt.COMPLEX){b=u._strings[0];for(let e=0,t=u._toNumbers.length;e<t;e++){const t=r(hn(Bo(u._fromNumbers[e],u._toNumbers[e],n),v)),i=u._strings[e+1];b+=`${i?t+i:t}`,m&&(u._numbers[e]=t)}}if(m&&(u._number=y),i||e===Kn.blend)u._value=b;else{const e=u.property;s=u.target,f?s[e]=b:p===mn.ATTRIBUTE?s.setAttribute(e,b):(a=s.style,p===mn.TRANSFORM?(s!==l&&(l=s,c=s[Mf]),c[e]=b,d=1):p===mn.CSS?a[e]=b:p===mn.CSS_VAR&&a.setProperty(e,b)),S&&(R=1)}}if(d&&u._renderTransforms){let e="";for(let t in c)e+=`${V1[t]}${c[t]}) `;a.transform=e,d=0}u=u._next}!n&&R&&e.onRender(e)}!n&&S&&e.onUpdate(e)}return o&&M?!n&&(o.began&&!N&&b>0&&!a||N&&b<=tn&&a)&&(e.onComplete(e),e.completed=!N):S&&w?c===1/0?e._startTime+=e.duration:e._currentIteration>=c-1&&(e.paused=!0,!a&&!f&&(e.completed=!0,!n&&!(o&&(N||!o.began))&&(e.onComplete(e),e._resolve(e)))
32):e.completed=!1,R},zs=(e,t,n,i,r)=>{const o=e._currentIteration;if(gd(e,t,n,i,r),e._hasChildren){const s=e,a=s.backwards,l=i?t:s._iterationTime,c=Sa();let u=0,d=!0;if(!i&&s._currentIteration!==o){const e=s.iterationDuration;_n(s,(t=>{if(a){const i=t.duration,r=t._offset+t._delay;!n&&i<=tn&&(!r||r+i===e)&&t.onComplete(t)}else!t.completed&&!t.backwards&&t._currentTime<t.iterationDuration&&gd(t,e,n,1,Li.FORCE),t.began=!1,t.completed=!1})),n||s.onLoop(s)}_n(s,(e=>{const t=hn((l-e._offset)*e._speed,12),o=e._fps<s._fps?e.requestTick(c):r;u+=gd(e,t,n,i,o),!e.completed&&d&&(d=!1)}),a),!n&&u&&s.onRender(s),(d||a)&&s._currentTime>=s.duration&&(s.paused=!0,s.completed||(s.completed=!0,n||(s.onComplete(s),s._resolve(s))))}},Kb={},tF=(e,t,n)=>{if(n===mn.TRANSFORM){return z1.get(e)||e}if(n===mn.CSS||n===mn.ATTRIBUTE&&X1(t)&&e in t.style){const t=Kb[e];if(t)return t;{const t=e&&W1(e);return Kb[e]=t,t}}return e},Q1=e=>{if(e._hasChildren)_n(e,Q1,!0);else{const t=e;t.pause(),_n(t,(e=>{const n=e.property,i=e.target;if(i[Tv]){const r=i.style,o=e._inlineValue,s=hl(o)||""===o;if(e._tweenType===mn.TRANSFORM){const t=i[Mf];if(s?delete t[n]:t[n]=o,e._renderTransforms)if(Object.keys(t).length){let e="";for(let n in t)e+=V1[n]+t[n]+") ";r.transform=e}else r.removeProperty("transform")}else s?r.removeProperty(W1(n)):r[n]=o;t._tail===e&&t.targets.forEach((e=>{e.getAttribute&&""===e.getAttribute("style")&&e.removeAttribute("style")}))}}))}return e}; 33/** 34 * Anime.js - core - ESM 35 * @version v4.2.2 36 * @license MIT 37 * @copyright 2025 - Julian Garnier 38 */ 39/** 40 * Anime.js - core - ESM 41 * @version v4.2.2 42 * @license MIT 43 * @copyright 2025 - Julian Garnier 44 */ 45class Z1{constructor(e=0){this.deltaTime=0,this._currentTime=e,this._elapsedTime=e,this._startTime=e,this._lastTime=e,this._scheduledTime=0,this._frameDuration=hn(xa/rm,0),this._fps=rm,this._speed=1,this._hasChildren=!1,this._head=null,this._tail=null}get fps(){return this._fps}set fps(e){const t=this._frameDuration,n=+e,i=n<tn?tn:n,r=hn(xa/i,0);this._fps=i,this._frameDuration=r,this._scheduledTime+=r-t}get speed(){return this._speed}set speed(e){const t=+e;this._speed=t<tn?tn:t}requestTick(e){const t=this._scheduledTime,n=this._elapsedTime;if(this._elapsedTime+=e-n,n<t)return Li.NONE;const i=this._frameDuration,r=n-t;return this._scheduledTime+=r<i?i:r,Li.AUTO}computeDeltaTime(e){const t=e-this._lastTime;return this.deltaTime=t,this._lastTime=e,t}} 46/** 47 * Anime.js - animation - ESM 48 * @version v4.2.2 49 * @license MIT 50 * @copyright 2025 - Julian Garnier 51 */const Qs={animation:null,update:pi},nF=e=>{let t=Qs.animation;return t||(t={duration:tn,computeDeltaTime:pi,_offset:0,_delay:0,_head:null,_tail:null},Qs.animation=t,Qs.update=()=>{e.forEach((e=>{for(let t in e){const n=e[t],i=n._head;if(i){const e=i._valueType,t=e===Bt.COMPLEX||e===Bt.COLOR?qn(i._fromNumbers):null;let r=i._fromNumber,o=n._tail;for(;o&&o!==i;){if(t)for(let e=0,n=o._numbers.length;e<n;e++)t[e]+=o._numbers[e];else r+=o._number;o=o._prevAdd}i._toNumber=r,i._toNumbers=t}}})),gd(t,1,1,0,Li.FORCE)}),t},J1=Ao?requestAnimationFrame:setImmediate,iF=Ao?cancelAnimationFrame:clearImmediate; 52/** 53 * Anime.js - engine - ESM 54 * @version v4.2.2 55 * @license MIT 56 * @copyright 2025 - Julian Garnier 57 */class rF extends Z1{constructor(e){super(e),this.useDefaultMainLoop=!0,this.pauseOnDocumentHidden=!0,this.defaults=$1,this.paused=!0,this.reqId=0}update(){const e=this._currentTime=Sa();if(this.requestTick(e)){this.computeDeltaTime(e);const t=this._speed,n=this._fps;let i=this._head;for(;i;){const r=i._next;i.paused?(il(this,i),this._hasChildren=!!this._tail,i._running=!1,i.completed&&!i._cancelled&&i.cancel()):zs(i,(e-i._startTime)*i._speed*t,0,0,i._fps<n?i.requestTick(e):Li.AUTO),i=r}Qs.update()}}wake(){return this.useDefaultMainLoop&&!this.reqId&&(this.requestTick(Sa()),this.reqId=J1(eS)),this}pause(){if(this.reqId)return this.paused=!0,oF()}resume(){if(this.paused)return this.paused=!1,_n(this,(e=>e.resetTime())),this.wake()}get speed(){return this._speed*(1===In.timeScale?1:xa)}set speed(e){this._speed=e*In.timeScale,_n(this,(e=>e.speed=e._speed))}get timeUnit(){return 1===In.timeScale?"ms":"s"}set timeUnit(e){const t="s"===e,n=t?.001:1;if(In.timeScale!==n){In.timeScale=n,In.tickThreshold=200*n;const e=t?.001:xa;this.defaults.duration*=e,this._speed*=e}}get precision(){return In.precision}set precision(e){In.precision=e}}const kn=(()=>{const e=new rF(Sa());return Ao&&(G1.engine=e,Nl.addEventListener("visibilitychange",(()=>{e.pauseOnDocumentHidden&&(Nl.hidden?e.pause():e.resume())}))),e})(),eS=()=>{kn._head?(kn.reqId=J1(eS),kn.update()):kn.reqId=0},oF=()=>(iF(kn.reqId),kn.reqId=0,kn) 58/**
59 * Anime.js - animation - ESM 60 * @version v4.2.2 61 * @license MIT 62 * @copyright 2025 - Julian Garnier 63 */,zd={_rep:new WeakMap,_add:new Map},Rv=(e,t,n="_rep")=>{const i=zd[n];let r=i.get(e);return r||(r={},i.set(e,r)),r[t]?r[t]:r[t]={_head:null,_tail:null}},sF=(e,t)=>e._isOverridden||e._absoluteStartTime>t._absoluteStartTime,bd=e=>{e._isOverlapped=1,e._isOverridden=1,e._changeDuration=tn,e._currentTime=tn},tS=(e,t)=>{const n=e._composition;if(n===Kn.replace){const n=e._absoluteStartTime;$s(t,e,sF,"_prevRep","_nextRep");const i=e._prevRep;if(i){const t=i.parent,r=i._absoluteStartTime+i._changeDuration;if(e.parent.id!==t.id&&t.iterationCount>1&&r+(t.duration-t.iterationDuration)>n){bd(i);let e=i._prevRep;for(;e&&e.parent.id===t.id;)bd(e),e=e._prevRep}const o=n-e._delay;if(r>o){const e=i._startTime,t=r-(e+i._updateDuration),n=hn(o-t-e,12);i._changeDuration=n,i._currentTime=n,i._isOverlapped=1,n<tn&&bd(i)}let s=!0;if(_n(t,(e=>{e._isOverlapped||(s=!1)})),s){const e=t.parent;if(e){let n=!0;_n(e,(e=>{e!==t&&_n(e,(e=>{e._isOverlapped||(n=!1)}))})),n&&e.cancel()}else t.cancel()}}}else if(n===Kn.blend){const t=Rv(e.target,e.property,"_add"),n=nF(zd._add);let i=t._head;i||(i={...e},i._composition=Kn.replace,i._updateDuration=tn,i._startTime=0,i._numbers=qn(e._fromNumbers),i._number=0,i._next=null,i._prev=null,$s(t,i),$s(n,i));const r=e._toNumber;if(e._fromNumber=i._fromNumber-r,e._toNumber=0,e._numbers=qn(e._fromNumbers),e._number=0,i._fromNumber=r,e._toNumbers){const t=qn(e._toNumbers);t&&t.forEach(((t,n)=>{e._fromNumbers[n]=i._fromNumbers[n]-t,e._toNumbers[n]=0})),i._fromNumbers=t}$s(t,e,null,"_prevAdd","_nextAdd")}return e},aF=e=>{const t=e._composition;if(t!==Kn.none){const n=e.target,i=e.property,r=zd._rep.get(n)[i];if(il(r,e,"_prevRep","_nextRep"),t===Kn.blend){const t=zd._add,r=t.get(n);if(!r)return;const o=r[i],s=Qs.animation;il(o,e,"_prevAdd","_nextAdd");const a=o._head;if(a&&a===o._tail){il(o,a,"_prevAdd","_nextAdd"),il(s,a);let e=!0;for(let t in r)if(r[t]._head){e=!1;break}e&&t.delete(n)}}}return e},Qb=e=>(e.paused=!0,e.began=!1,e.completed=!1,e),sm=e=>(e._cancelled&&(e._hasChildren?_n(e,sm):_n(e,(e=>{e._composition!==Kn.none&&tS(e,Rv(e.target,e.property))})),e._cancelled=0),e);let lF=0,cF=class extends Z1{constructor(e={},t=null,n=0){super(0);const{id:i,delay:r,duration:o,reversed:s,alternate:a,loop:l,loopDelay:c,autoplay:u,frameRate:d,playbackRate:h,onComplete:p,onLoop:f,onPause:m,onBegin:g,onBeforeUpdate:v,onUpdate:b}=e,y=t?0:kn._elapsedTime,_=t?t.defaults:In.defaults,x=kd(r)||Kt(r)?_.delay:+r,S=kd(o)||Kt(o)?1/0:+o,w=jn(l,_.loop),M=jn(c,_.loopDelay),E=!0===w||w===1/0||w<0?1/0:w+1;let T=0;t?T=n:(kn.reqId||kn.requestTick(Sa()),T=(kn._elapsedTime-kn._startTime)*In.timeScale),this.id=Kt(i)?++lF:i,this.parent=t,this.duration=Cv((S+M)*E-M)||tn,this.backwards=!1,this.paused=!0,this.began=!1,this.completed=!1,this.onBegin=g||_.onBegin,this.onBeforeUpdate=v||_.onBeforeUpdate,this.onUpdate=b||_.onUpdate,this.onLoop=f||_.onLoop,this.onPause=m||_.onPause,this.onComplete=p||_.onComplete,this.iterationDuration=S,this.iterationCount=E,this._autoplay=!t&&jn(u,_.auto
vendor: 4,405 bytes, lines 63-70
63play),this._offset=T,this._delay=x,this._loopDelay=M,this._iterationTime=0,this._currentIteration=0,this._resolve=pi,this._running=!1,this._reversed=+jn(s,_.reversed),this._reverse=this._reversed,this._cancelled=0,this._alternate=jn(a,_.alternate),this._prev=null,this._next=null,this._elapsedTime=y,this._startTime=y,this._lastTime=y,this._fps=jn(d,_.frameRate),this._speed=jn(h,_.playbackRate)}get cancelled(){return!!this._cancelled}set cancelled(e){e?this.cancel():this.reset(!0).play()}get currentTime(){return ii(hn(this._currentTime,In.precision),-this._delay,this.duration)}set currentTime(e){const t=this.paused;this.pause().seek(+e),t||this.resume()}get iterationCurrentTime(){return hn(this._iterationTime,In.precision)}set iterationCurrentTime(e){this.currentTime=this.iterationDuration*this._currentIteration+e}get progress(){return ii(hn(this._currentTime/this.duration,10),0,1)}set progress(e){this.currentTime=this.duration*e}get iterationProgress(){return ii(hn(this._iterationTime/this.iterationDuration,10),0,1)}set iterationProgress(e){const t=this.iterationDuration;this.currentTime=t*this._currentIteration+t*e}get currentIteration(){return this._currentIteration}set currentIteration(e){this.currentTime=this.iterationDuration*ii(+e,0,this.iterationCount-1)}get reversed(){return!!this._reversed}set reversed(e){e?this.reverse():this.play()}get speed(){return super.speed}set speed(e){super.speed=e,this.resetTime()}reset(e=!1){return sm(this),this._reversed&&!this._reverse&&(this.reversed=!1),this._iterationTime=this.iterationDuration,zs(this,0,1,~~e,Li.FORCE),Qb(this),this._hasChildren&&_n(this,Qb),this}init(e=!1){this.fps=this._fps,this.speed=this._speed,!e&&this._hasChildren&&zs(this,this.duration,1,~~e,Li.FORCE),this.reset(e);const t=this._autoplay;return!0===t?this.resume():t&&!Kt(t.linked)&&t.link(this),this}resetTime(){const e=1/(this._speed*kn._speed);return this._startTime=Sa()-(this._currentTime+this._delay)*e,this}pause(){return this.paused||(this.paused=!0,this.onPause(this)),this}resume(){return this.paused?(this.paused=!1,this.duration<=tn&&!this._hasChildren?zs(this,tn,0,0,Li.FORCE):(this._running||($s(kn,this),kn._hasChildren=!0,this._running=!0),this.resetTime(),this._startTime-=12,kn.wake()),this):this}restart(){return this.reset().resume()}seek(e,t=0,n=0){sm(this),this.completed=!1;const i=this.paused;return this.paused=!0,zs(this,e+this._delay,~~t,~~n,Li.AUTO),i?this:this.resume()}alternate(){const e=this._reversed,t=this.iterationCount,n=this.iterationDuration,i=t===1/0?YU(k1/n):t;return this._reversed=+(!this._alternate||i%2?!e:e),t===1/0?this.iterationProgress=this._reversed?1-this.iterationProgress:this.iterationProgress:this.seek(n*i-this._currentTime),this.resetTime(),this}play(){return this._reversed&&this.alternate(),this.resume()}reverse(){return this._reversed||this.alternate(),this.resume()}cancel(){return this._hasChildren?_n(this,(e=>e.cancel()),!0):_n(this,aF),this._cancelled=1,this.pause()}stretch(e){const t=this.duration,n=ml(e);if(t===n)return this;const i=e/t,r=e<=tn;return this.duration=r?tn:n,this.iterationDuration=r?tn:ml(this.iterationDuration*i),this._offset*=i,this._delay*=i,this._loopDelay*=i,this}revert(){zs(this,0,1,0,Li.AUTO);const e=this._autoplay;return e&&e.linked&&e.linked===this&&e.revert(),this.cancel()}complete(){return this.seek(this.duration).cancel()}then(e=pi){const t=this.then,n=()=>{this.then=null,e(this),this.then=t,this._resolve=pi};return new Promise((e=>(this._resolve=()=>e(n()),this.completed&&this._resolve(),this)))}}; 64/** 65 * Anime.js - core - ESM 66 * @version v4.2.2 67 * @license MIT 68 * @copyright 2025 - Julian Garnier 69 */function Zb(e){const t=Ol(e)?zU.root.querySelectorAll(e):e;if(t instanceof NodeList||t instanceof HTMLCollection)return t}function uF(e){if(hl(e))return[];if(!Ao)return as(e)&&e.flat(1/0)||[e];if(as(e)){const t=e.flat(1/0),n=[];for(let e=0,i=t.length;e<i;e++){const i=t[e];if(!hl(i)){const e=Zb(i);if(e)for(let t=0,i=e.length;t<i;t++){const i=e[t];if(!hl(i)){let e=!1;for(let t=0,r=n.length;t<r;t++)if(n[t]===i){e=!0;break}e||n.push(i)}}else{let e=!1;for(let t=0,r=n.length;t<r;t++)if(n[t]===i){e=!0;break}e||n.push(i)}}}return n}const t=Zb(e);return t?Array.from(t):[e]}function dF(e){const t=uF(e),n=t.length;if(n)for(let e=0;e<n;e++){const n=t[e];if(!n[Gb]){n[Gb]=!0;const e=X1(n);(n.nodeType||e)&&(n[Tv]=!0,n[B1]=e,n[Mf]={})}}return t} 70/**
71 * Anime.js - core - ESM 72 * @version v4.2.2 73 * @license MIT 74 * @copyright 2025 - Julian Garnier 75 */const Nh={deg:1,rad:180/Av,turn:360},Jb={},fF=(e,t,n,i=!1)=>{const r=t.u,o=t.n;if(t.t===Bt.UNIT&&r===n)return t;const s=o+r+n,a=Jb[s];if(Kt(a)||i){let i;if(r in Nh)i=o*Nh[r]/Nh[n];else{const t=e.cloneNode(),s=e.parentNode,a=s&&s!==Nl?s:Nl.body;a.appendChild(t);const l=t.style;l.width=100+r;const c=t.offsetWidth||100;l.width=100+n;const u=c/(t.offsetWidth||100);a.removeChild(t),i=u*o}t.n=i,Jb[s]=i}else t.n=a;return t.t,t.u=n,t},Eo=e=>e 76/** 77 * Anime.js - easings - ESM 78 * @version v4.2.2 79 * @license MIT 80 * @copyright 2025 - Julian Garnier 81 */,ja=(e=1.68)=>t=>ks(t,+e),am={in:e=>t=>e(t),out:e=>t=>1-e(1-t),inOut:e=>t=>t<.5?e(2*t)/2:1-e(-2*t+2)/2,outIn:e=>t=>t<.5?(1-e(1-2*t))/2:(e(2*t-1)+1)/2},hF=Av/2,e0=2*Av,t0={[ts]:ja,Quad:ja(2),Cubic:ja(3),Quart:ja(4),Quint:ja(5),Sine:e=>1-qU(e*hF),Circ:e=>1-WU(1-e*e),Expo:e=>e?ks(2,10*e-10):0,Bounce:e=>{let t,n=4;for(;e<((t=ks(2,--n))-1)/11;);return 1/ks(4,3-n)-7.5625*ks((3*t-2)/22-e,2)},Back:(e=1.7)=>t=>(+e+1)*t*t*t-+e*t*t,Elastic:(e=1,t=.3)=>{const n=ii(+e,1,10),i=ii(+t,tn,2),r=i/e0*jU(1/n),o=e0/i;return e=>0===e||1===e?e:-n*ks(2,-10*(1-e))*XU((1-e-r)*o)}},$i=(()=>{const e={linear:Eo,none:Eo};for(let t in am)for(let n in t0){const i=t0[n],r=am[t];e[t+n]=""===n||"Back"===n||"Elastic"===n?(e,t)=>r(i(e,t)):r(i)}return e})(),Zu={linear:Eo,none:Eo},pF=e=>{if(Zu[e])return Zu[e];if(e.indexOf("(")<=-1){const t=am[e]||e.includes("Back")||e.includes("Elastic")?$i[e]():$i[e];return t?Zu[e]=t:Eo}{const t=e.slice(0,-1).split("("),n=$i[t[0]];return n?Zu[e]=n(...t[1].split(",")):Eo}},n0=["steps(","irregular(","linear(","cubicBezier("],lm=e=>{if(Ol(e))for(let t=0,n=n0.length;t<n;t++)if($r(e,n0[t]))return console.warn(`String syntax for \`ease: "${e}"\` has been removed from the core and replaced by importing and passing the easing function directly: \`ease: ${e}\``),Eo;return kd(e)?e:Ol(e)?pF(e):Eo},wt=Pv(),Pt=Pv(),Ns={},Ju={func:null},ed=[null],Os=[null,null],td={to:null}; 82/** 83 * Anime.js - easings - ESM 84 * @version v4.2.2 85 * @license MIT 86 * @copyright 2025 - Julian Garnier 87 */let ro,tr,mF=0;const vF=(e,t)=>{const n={};if(as(e)){const t=[].concat(...e.map((e=>Object.keys(e)))).filter(pl);for(let i=0,r=t.length;i<r;i++){const r=t[i],o=e.map((e=>{const t={};for(let n in e){const i=e[n];pl(n)?n===r&&(t.to=i):t[n]=i}return t}));n[r]=o}}else{const i=jn(t.duration,In.defaults.duration);Object.keys(e).map((t=>({o:parseFloat(t)/100,p:e[t]}))).sort(((e,t)=>e.o-t.o)).forEach((e=>{const t=e.o,r=e.p;for(let e in r)if(pl(e)){let o=n[e];o||(o=n[e]=[]);const s=t*i;let a=o.length,l=o[a-1];const c={to:r[e]};let u=0;for(let e=0;e<a;e++)u+=o[e].duration;1===a&&(c.from=l.to),r.ease&&(c.ease=r.ease),c.duration=s-(a?u:0),o.push(c)}return e}));for(let e in n){const t=n[e];let i;for(let e=0,n=t.length;e<n;e++){const n=t[e],r=n.ease;n.ease=i||void 0,i=r}t[0].duration||t.shift()}}return n};class i0 extends cF{constructor(e,t,n,i,r=!1,o=0,s=0){super(t,n,i);const a=dF(e),l=a.length,c=t.keyframes,u=c?om(vF(c,t),t):t,{delay:d,duration:h,ease:p,playbackEase:f,modifier:m,composition:g,onRender:v}=u,b=n?n.defaults:In.defaults,y=jn(f,b.playbackEase),_=y?lm(y):null,x=!Kt(p)&&!Kt(p.ease),S=x?p.ease:jn(p,_?"linear":b.ease),w=x?p.settlingDuration:jn(h,b.duration),M=jn(d,b.delay),E=m||b.modifier,T=Kt(g)&&l>=xa?Kn.none:Kt(g)?b.composition:g,C=this._offset+(n?n._offset:0);x&&(p.parent=this);let R=NaN,A=NaN,L=0,P=0;for(let e=0;e<l;e++){const t=a[e],i=o||e,c=s||l;let d=NaN,h=NaN;for(let e in u)if(pl(e)){const o=K1(t,e),s=tF(e,t,o);let a=u[e];const l=as(a);if(r&&!l&&(Os[0]=a,Os[1]=a,a=Os),l){const e=a.length,t=!vd(a[0]);2===e&&t?(td.to=a,ed[0]=td,ro=ed):e>2&&t?(ro=[],a.forEach(((e,t)=>{t?1===t?(Os[1]=e,ro.push(Os)):ro.push(e):Os[0]=e}))):ro=a}else ed[0]=a,ro=ed;let p=null,f=null,m=NaN,g=0,v=0;for(let e=ro.length;v<e;v++){const r=ro[v];vd(r)?tr=r:(td.to=r,tr=td),Ju.func=null;const a=no(tr.to,t,i,c,Ju);let l;vd(a)&&!Kt(a.to)?(tr=a,l=a.to):l=a;const u=no(tr.from,t,i,c),d=tr.ease,h=!Kt(d)&&!Kt(d.ease),b=h?d.ease:d||S,y=h?d.settlingDuration:no(jn(tr.duration,e>1?no(w,t,i,c)/e:w),t,i,c),_=no(jn(tr.delay,v?0:M),t,i,c),x=no(jn(tr.composition,T),t,i,c),R=HU(x)?x:Kn[x],A=tr.modifier||E,N=!Kt(u),D=!Kt(l),I=as(l),O=I||N&&D,U=f?g+_:_,k=hn(C+U,12);!P&&(N||I)&&(P=1);let F=f;if(R!==Kn.none){p||(p=Rv(t,s));let e=p._head;for(;
87e&&!e._isOverridden&&e._absoluteStartTime<=k;)if(F=e,e=e._nextRep,e&&e._absoluteStartTime>=k)for(;e;)bd(e),e=e._nextRep}if(O?(er(I?no(l[0],t,i,c):u,wt),er(I?no(l[1],t,i,c,Ju):l,Pt),wt.t===Bt.NUMBER&&(F?F._valueType===Bt.UNIT&&(wt.t=Bt.UNIT,wt.u=F._unit):(er(Ya(t,s,o,Ns),io),io.t===Bt.UNIT&&(wt.t=Bt.UNIT,wt.u=io.u)))):(D?er(l,Pt):f?jb(f,Pt):er(n&&F&&F.parent.parent===n?F._value:Ya(t,s,o,Ns),Pt),N?er(u,wt):f?jb(f,wt):er(n&&F&&F.parent.parent===n?F._value:Ya(t,s,o,Ns),wt)),wt.o&&(wt.n=Ih(F?F._toNumber:er(Ya(t,s,o,Ns),io).n,wt.n,wt.o)),Pt.o&&(Pt.n=Ih(wt.n,Pt.n,Pt.o)),wt.t!==Pt.t)if(wt.t===Bt.COMPLEX||Pt.t===Bt.COMPLEX){const e=wt.t===Bt.COMPLEX?wt:Pt,t=wt.t===Bt.COMPLEX?Pt:wt;t.t=Bt.COMPLEX,t.s=qn(e.s),t.d=e.d.map((()=>t.n))}else if(wt.t===Bt.UNIT||Pt.t===Bt.UNIT){const e=wt.t===Bt.UNIT?wt:Pt,t=wt.t===Bt.UNIT?Pt:wt;t.t=Bt.UNIT,t.u=e.u}else if(wt.t===Bt.COLOR||Pt.t===Bt.COLOR){const e=wt.t===Bt.COLOR?wt:Pt,t=wt.t===Bt.COLOR?Pt:wt;t.t=Bt.COLOR,t.s=e.s,t.d=[0,0,0,1]}if(wt.u!==Pt.u){let e=Pt.u?wt:Pt;e=fF(t,e,Pt.u?Pt.u:wt.u,!1)}if(Pt.d&&wt.d&&Pt.d.length!==wt.d.length){const e=wt.d.length>Pt.d.length?wt:Pt,t=e===wt?Pt:wt;t.d=e.d.map(((e,n)=>Kt(t.d[n])?0:t.d[n])),t.s=qn(e.s)}const z=hn(+y||tn,12);let B=Ns[s];hl(B)||(Ns[s]=null);const $={parent:this,id:mF++,property:s,target:t,_value:null,_func:Ju.func,_ease:lm(b),_fromNumbers:qn(wt.d),_toNumbers:qn(Pt.d),_strings:qn(Pt.s),_fromNumber:wt.n,_toNumber:Pt.n,_numbers:qn(wt.d),_number:wt.n,_unit:Pt.u,_modifier:A,_currentTime:0,_startTime:U,_delay:+_,_updateDuration:z,_changeDuration:z,_absoluteStartTime:k,_tweenType:o,_valueType:Pt.t,_composition:R,_isOverlapped:0,_isOverridden:0,_renderTransforms:0,_inlineValue:B,_prevRep:null,_nextRep:null,_prevAdd:null,_nextAdd:null,_prev:null,_next:null};R!==Kn.none&&tS($,p),isNaN(m)&&(m=$._startTime),g=hn(U+z,12),f=$,L++,$s(this,$)}(isNaN(A)||m<A)&&(A=m),(isNaN(R)||g>R)&&(R=g),o===mn.TRANSFORM&&(d=L-v,h=L)}if(!isNaN(d)){let e=0;_n(this,(t=>{e>=d&&e<h&&(t._renderTransforms=1,t._composition===Kn.blend&&_n(Qs.animation,(e=>{e.id===t.id&&(e._renderTransforms=1)}))),e++}))}}l||console.warn("No target found. Make sure the element you're trying to animate is accessible before creating your animation."),A?(_n(this,(e=>{e._startTime-e._delay||(e._delay-=A),e._startTime-=A})),R-=A):A=0,R||(R=tn,this.iterationCount=0),this.targets=a,this.duration=R===tn?tn:Cv((R+this._loopDelay)*this.iterationCount-this._loopDelay)||tn,this.onRender=v||b.onRender,this._ease=_,this._delay=A,this.iterationDuration=R,!this._autoplay&&P&&this.onRender(this)}stretch(e){const t=this.duration;if(t===ml(e))return this;const n=e/t;return _n(this,(e=>{e._updateDuration=ml(e._updateDuration*n),e._changeDuration=ml(e._changeDuration*n),e._currentTime*=n,e._startTime*=n,e._absoluteStartTime*=n})),super.stretch(e)}refresh(){return _n(this,(e=>{const t=e._func;if(t){const n=Ya(e.target,e.property,e._tweenType);er(n,io),er(t(),Pt),e._fromNumbers=qn(io.d),e._fromNumber=io.n,e._toNumbers=qn(Pt.d),e._strings=qn(Pt.s),e._toNumber=Pt.o?Ih(io.n,Pt.n,Pt.o):Pt.n}})),this.duration===tn&&this.restart(),this}revert(){return super.revert(),Q1(this)}then(e){return super.then(e)}} 88/** 89 * Anime.js - animatable - ESM 90 * @version v4.2.2 91 * @license MIT 92 * @copyright 2025 - Julian Garnier 93 */class gF{constructor(e,t){const n=()=>
93{if(this.callbacks.completed)return;let e=!0;for(let t in this.animations)if(!this.animations[t].paused&&e){e=!1;break}e&&this.callbacks.complete()},i={onBegin:()=>{this.callbacks.completed&&this.callbacks.reset(),this.callbacks.play()},onComplete:n,onPause:n},r={v:1,autoplay:!1},o={};if(this.targets=[],this.animations={},this.callbacks=null,!Kt(e)&&!Kt(t)){for(let e in t){const n=t[e];pl(e)?o[e]=n:$r(e,"on")?r[e]=n:i[e]=n}this.callbacks=new i0({v:0},r);for(let t in o){const n=o[t],r=vd(n);let s={},a="+=0";if(r){const e=n.unit;Ol(e)&&(a+=e)}else s.duration=n;s[t]=r?om({to:a},n):a;const l=om(i,s);l.composition=Kn.replace,l.autoplay=!1;const c=this.animations[t]=new i0(e,l,null,0,!1).init();this.targets.length||this.targets.push(...c.targets),this[t]=(e,t,n)=>{const i=c._head;if(Kt(e)&&i){const e=i._numbers;return e&&e.length?e:i._modifier(i._number)}return _n(c,(t=>{if(as(e))for(let n=0,i=e.length;n<i;n++)Kt(t._numbers[n])||(t._fromNumbers[n]=t._modifier(t._numbers[n]),t._toNumbers[n]=e[n]);else t._fromNumber=t._modifier(t._number),t._toNumber=e;Kt(n)||(t._ease=lm(n)),t._currentTime=0})),Kt(t)||c.stretch(t),c.reset(!0).resume(),this}}}}revert(){for(let e in this.animations)this[e]=pi,this.animations[e].revert();return this.animations={},this.targets.length=0,this.callbacks&&this.callbacks.revert(),this}}const Hd=(e,t)=>new gF(e,t),bF=(e,t,n,i,r="outExpo")=>{const o=[];let s;try{if(r.includes("(")){const e=r.match(/^(\w+)\((.*)\)$/);if(e){const[,t,n]=e,i=n.split(",").map((e=>parseFloat(e.trim()))),r=$i[t];s="function"==typeof r?r(...i):$i.outExpo}else s=$i.outExpo}else s=$i[r]||$i.outExpo}catch{console.warn(`Invalid easing function: ${r}, falling back to outExpo`),s=$i.outExpo}for(let r=0;r<e;r++){const e=Math.random()*Math.PI*2,r=Math.acos(1-2*Math.random()),a=t+(n-t)*s(Math.random()),l=i.x+a*Math.sin(r)*Math.cos(e),c=i.y+a*Math.sin(r)*Math.sin(e),u=i.z+a*Math.cos(r);o.push(new k(l,c,u))}return o},_F=(e,t)=>{const n={moleculeCount:100,minDistance:500,maxDistance:1200,moleculeScale:1,ease:"outExpo",geometryRatios:{tetrahedral:.4,linear:.2,trigonalPlanar:.2,trigonalBipyramidal:.15,doubleBent:.05},...t},i=new Br,r=[],o=[],s=[],a=bF(n.moleculeCount,n.minDistance,n.maxDistance,e.position,n.ease),l=a.map((e=>e.clone()));return a.forEach(((e,t)=>{const a=n.moleculeScale;s.push(a),o.push(e);const l=CU({position:e,scale:a,geometryRatios:n.geometryRatios});r.push(l),i.add(l)})),{object:i,metadata:{molecules:r,positions:o,scales:s,originalPositions:l,config:n}}};function nS(e){return null!==e&&"object"==typeof e&&"object"in e}function yF(e){return nS(e)?e.object:e}function xF(e){return nS(e)?e.metadata:void 0}const SF=()=>{const e=[];let t=0;return{register:t=>{e.includes(t)||e.push(t)},unregister:t=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},handle:n=>{const i=n-t;t=n,e.forEach((e=>{var t;null==(t=e.onScroll)||t.call(e,n,i)}))},getCount:()=>e.length}},EF=()=>{const e=[];return{register:t=>{e.includes(t)||e.push(t)},unregister:t=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},handle:(t,n)=>{e.forEach((e=>{e.onResize(t,n)}))},getCount:()=>e.length}},wF=()=>{const e=SF(),t=EF();return{registerScrollAware:e.register,unregisterScrollAware:e.unregister,handleScroll:e.handle,registerResizeAware:t.register,unregisterResizeAware:t.unregister,handleResize:t.handle,getRegisteredEntities:()=>({scrollAware:e.getCount(),resizeAware:t.getCount()})}};class MF{constructor(){Y(this,"name","TransformSystem")}tick(e){for(const t of e)this.applyTransformsRecursive(t)}applyTransformsRecursive(e){this.applyTransforms(e.object3D);for(const t of e.childEntities)this.applyTransformsRecursive(t)}applyTransforms(e){const t=e.userData.transforms;if(t&&t.needsUpdate){if(Object.keys(t.position).length>0){const n=(e.userData.basePosition||e.position).clone();for(const e of Object.values(t.position))n.add(e);e.position.copy(n)}if(Object.keys(t.scale).length>0){const n=(e.userData.baseScale||new k(1,1,1)).clone();for(const e of Object.values(t.scale))n.multiply(e);e.scale.copy(n)}if(Object.keys(t.rotation).length>0){const n=(e.userData.baseRotation||new k(0,0,0)).clone();for(const e of Object.values(t.rotation))n.add(e);e.rotation.setFromVector3(n)}t.needsUpdate=!1}}forceUpdateAll(e){for(const t of e)this.markForUpdate(t);this.tick(e)}markForUpdate(e){e.object3D.userData.transforms&&(e.object3D.userData.transforms.needsUpdate=!0);for(const t of e.childEntities)this.markForUpdate(t)}}const TF={"@sm":"(min-width: 640px)","@md":"(min-width: 768px)","@lg":"(min-width: 1024px)","@xl":"(min-width: 1280px)","@2xl":"(min-width: 1536px)"},AF=e=>{const t=e||TF,n=new Map,i=new Map;let r=null,o=!1;const s=()=>{var e;if(o)return;
93if(!r)return void console.warn("MediaQueryManager: EntityManager not set, cannot apply breakpoints");const i=[];for(const[e,n]of Object.entries(t))window.matchMedia(n).matches&&i.push(e);for(const t of n.values()){const{entityId:n,config:o,baseConfigs:s}=t,a=r.getEntity(n);if(!a){console.warn(`MediaQueryManager: Entity "${n}" not found`);continue}const l={},c=new Set;Object.keys(s).forEach((e=>c.add(e))),i.forEach((e=>{o[e]&&Object.keys(o[e]).forEach((e=>c.add(e)))}));for(const t of c){let n={...s[t]||{}};for(const r of i){const i=null==(e=o[r])?void 0:e[t];i&&(n={...n,...i})}l[t]=n}for(const[e,t]of Object.entries(l)){const i=a.components.find((t=>t.name===e));if(i)try{i.updateConfig(t)}catch(t){console.error(`MediaQueryManager: Error updating "${e}" on "${n}":`,t)}else console.warn(`MediaQueryManager: Component "${e}" not found on entity "${n}"`)}}},a=()=>{for(const[e,n]of Object.entries(t))if(window.matchMedia(n).matches)return e;return null};return{setEntityManager:e=>{r=e},setupMediaQueryListeners:()=>{for(const[e,n]of Object.entries(t)){const t=window.matchMedia(n);i.set(e,t);const r=()=>{s()};t.addEventListener("change",r)}},registerResponsive:(e,t,i={})=>{n.set(e,{entityId:e,config:t,baseConfigs:i})},unregisterResponsive:e=>{n.delete(e)},applyBreakpointsForEntity:e=>{var i;if(o)return;if(!r)return void console.warn("MediaQueryManager: EntityManager not set, cannot apply breakpoints");const s=n.get(e);if(!s)return;const a=[];for(const[e,n]of Object.entries(t))window.matchMedia(n).matches&&a.push(e);const{config:l,baseConfigs:c}=s,u=r.getEntity(e);if(!u)return void console.warn(`MediaQueryManager: Entity "${e}" not found`);const d={},h=new Set;Object.keys(c).forEach((e=>h.add(e))),a.forEach((e=>
93{l[e]&&Object.keys(l[e]).forEach((e=>h.add(e)))}));for(const e of h){let t={...c[e]||{}};for(const n of a){const r=null==(i=l[n])?void 0:i[e];r&&(t={...t,...r})}d[e]=t}for(const[t,n]of Object.entries(d)){const i=u.components.find((e=>e.name===t));if(i)try{i.updateConfig(n)}catch(n){console.error(`MediaQueryManager: Error updating "${t}" on "${e}":`,n)}else console.warn(`MediaQueryManager: Component "${t}" not found on entity "${e}"`)}},getActiveBreakpoint:a,getBreakpoints:()=>({...t}),getRegisteredCount:()=>n.size,enableDebugMode:()=>{o=!0},disableDebugMode:()=>{o=!1;const e=a();e&&(e=>{if(!o){if(!r)return void console.warn("MediaQueryManager: EntityManager not set, cannot trigger updates");for(const t of n.values()){const{entityId:n,config:i}=t,o=i[e];if(!o)continue;const s=r.getEntity(n);if(s)for(const[e,t]of Object.entries(o)){const i=s.components.find((t=>t.name===e));if(i)try{i.updateConfig(t)}catch(t){console.error(`MediaQueryManager: Error updating "${e}" on "${n}":`,t)}else console.warn(`MediaQueryManager: Component "${e}" not found on entity "${n}"`)}else console.warn(`MediaQueryManager: Entity "${n}" not found`)}}})(e)},isDebugModeEnabled:()=>o,dispose:()=>{i.clear(),n.clear(),r=null}}};class Ji{constructor(e){Y(this,"target"),Y(this,"_enabled",!0),this.target=e}initialize(){}updateConfig(e){for(const[t,n]of Object.entries(e)){const e=`set${t.charAt(0).toUpperCase()}${t.slice(1)}`;"function"==typeof this[e]&&this[e](n)}}dispose(){const e=this.name.toLowerCase();this.removeTransform("position",e),this.removeTransform("scale",e),this.removeTransform("rotation",e)}get enabled(){return this._enabled}set enabled(e){this._enabled=e}toString(){return`${this.name}Component`}setPositionTransform(e,t){this.ensureTransforms(),this.target.userData.transforms.position[e]=t.clone(),this.target.userData.transforms.needsUpdate=!0}setScaleTransform(e,t){this.ensureTransforms(),this.target.userData.transforms.scale[e]=t.clone(),this.target.userData.transforms.needsUpdate=!0}setRotationTransform(e,t){this.ensureTransforms(),this.target.userData.transforms.rotation[e]=t.clone(),this.target.userData.transforms.needsUpdate=!0}removeTransform(e,t){var n;null!=(n=this.target.userData.transforms)&&n[e]&&(delete this.target.userData.transforms[e][t],this.target.userData.transforms.needsUpdate=!0)}ensureTransforms(){this.target.userData.transforms||(this.target.userData.transforms={position:{},scale:{},rotation:{},needsUpdate:!1},this.target.userData.basePosition=this.target.position.clone(),this.target.userData.baseScale=this.target.scale.clone(),this.target.userData.baseRotation=this.target.rotation.clone())}}class Vd{constructor(e,t,n=[],i=[]){var r;Y(this,"id"),Y(this,"object3D"),Y(this,"components"),Y(this,"childEntities"),Y(this,"_enabled",!0),this.id=e,this.object3D=t,this.components=[...n],this.childEntities=[...i];for(const e of this.components)null==(r=e.initialize)||r.call(e)}get enabled(){return this._enabled}set enabled(e){this._enabled=e;for(const t of this.components)t.enabled=e}tick(e){var t,n,i;if(!this._enabled)return;for(const n of this.childEntities)n.enabled&&(null==(t=n.tick)||t.call(n,e));const r=this.components.filter((e=>"ScrollExpansion"===e.name)),o=this.components.filter((e=>"ScrollExpansion"!==e.name));for(const t of r)t.enabled&&(null==(n=t.tick)||n.call(t,e));for(const t of o)t.enabled&&(null==(i=t.tick)||i.call(t,e))}dispose(){var e,t;for(const t of this.childEntities)null==(e=t.dispose)||e.call(t);for(const e of this.components)null==(t=e.dispose)||t.call(e);this.components.length=0}addComponent(e){var t;this.components.includes(e)?console.warn(`Component ${e.name} is already attached to entity ${this.id}`):(this.components.push(e),null==(t=e.initialize)||t.call(e))}
93removeComponent(e){var t;const n=this.components.indexOf(e);return-1!==n&&(null==(t=e.dispose)||t.call(e),this.components.splice(n,1),!0)}getComponent(e){return this.components.find((t=>t instanceof e))}getComponents(e){return this.components.filter((t=>t instanceof e))}hasComponent(e){return this.components.some((t=>t instanceof e))}getScrollAwareComponents(){return this.components.filter((e=>"onScroll"in e&&"function"==typeof e.onScroll))}getResizeAwareComponents(){return this.components.filter((e=>"onResize"in e&&"function"==typeof e.onResize))}}class cm{constructor(e,t,n=[],i=[]){var r;Y(this,"id"),Y(this,"object3D"),Y(this,"components"),Y(this,"childEntities"),Y(this,"enabled",!0),this.id=e,this.object3D=t,this.components=n,this.childEntities=i;for(const e of this.components)null==(r=e.initialize)||r.call(e)}tick(e){var t,n;if(this.enabled){for(let n=0;n<this.childEntities.length;n++){const i=this.childEntities[n];i.enabled&&(null==(t=i.tick)||t.call(i,e))}for(let t=0;t<this.components.length;t++){const i=this.components[t];i.enabled&&(null==(n=i.tick)||n.call(i,e))}}}dispose(){var e,t;for(const t of this.childEntities)null==(e=t.dispose)||e.call(t);for(const e of this.components)null==(t=e.dispose)||t.call(e)}}class r0{static createStandard(e,t,n=[],i=[]){return new Vd(e,t,n,i)}static createLightweight(e,t,n,i=[]){return new cm(e,t,n,i)}static createAuto(e,t,n,i=[]){return n.length<=3?new cm(e,t,n,i):new Vd(e,t,n,i)}}var o0;(e=>{e.clone=function(e,t){const n=e.object3D.clone(),i=[...e.components];return e instanceof Vd?new Vd(t,n,i):new cm(t,n,i)},e.getEntitiesWithComponent=function(e,t){return e.filter((e=>e.components.some((e=>e instanceof t))))},e.tickAll=function(e,t){for(const n of e)n.tick(t)},e.disposeAll=function(e){for(const t of e)t.dispose()}})(o0||(o0={}));const $o=class e{constructor(){Y(this,"registry",new Map),Y(this,"constructorToName",new Map)}static getInstance(){return e.instance||(e.instance=new e),e.instance}register(e,t,n={}){this.registry.has(e)&&console.warn(`Component '${e}' is already registered. Overwriting existing registration.`);const i={name:e,constructor:t,defaultConfig:n.defaultConfig,description:n.description,category:n.category};this.registry.set(e,i),this.constructorToName.set(t,e)}get(e){return this.registry.get(e)}getName(e){return this.constructorToName.get(e)}isRegistered(e){return"string"==typeof e?this.registry.has(e):this.constructorToName.has(e)}getAllNames(){return Array.from(this.registry.keys())}getByCategory(e){return Array.from(this.registry.values()).filter((t=>t.category===e))}createComponent(e,t,n){const i=this.get(e);if(!i)return void console.error(`Component '${e}' is not registered.`);const r={...i.defaultConfig,...n};return new i.constructor(t,r)}validateConfig(e,t){const n=this.get(e);if(!n)return!1;if(n.defaultConfig)for(const i of Object.keys(n.defaultConfig))if(void 0!==n.defaultConfig[i]&&void 0===t[i])return console.warn(`Component '${e}' is missing required config property: ${i}`),!1;return!0}clear(){this.registry.clear(),this.constructorToName.clear()}getStats(){const e=new Set,t={};for(const n of this.registry.values())n.category&&(e.add(n.category),t[n.category]=(t[n.category]||0)+1);return{totalComponents:this.registry.size,categories:Array.from(e),componentsByCategory:t}}};Y($o,"instance",null);let um=$o;function Lv(){return um.getInstance()}class iS{constructor(e){Y(this,"registry"),this.registry=e||Lv()}create(e,t,n={}){return this.registry.createComponent(e,t,n)}createByConstructor(e,t,n){const i=this.registry.getName(e);if(i){const e=this.registry.createComponent(i,t,n);if(e)return e}return new e(t,n)}createMultiple(e,t){const n=[];for(const i of t){const t=this.create(i.name,e,i.config);t&&n.push(t)}return n}}var s0;new iS,(e=>{e.validateComponentConfig=function(e,t){try{return new e(new ei,t),!0}catch(e){return console.warn("Component config validation failed:",e),!1}},e.isValidConfig=function(e){return"object"==typeof e&&null!==e}})(s0||(s0={}));class CF{constructor(e,t,n,i,r){Y(this,"entityId"),Y(this,"object3D"),Y(this,"componentEntries",[]),Y(this,"groupChildComponentEntries",[]),Y(this,"componentFactory"),Y(this,"inputSystem"),Y(this,"mediaQueryManager"),Y(this,"entityManager"),Y(this,"responsiveConfigs",new Map),this.entity
93Id=e,this.object3D=t||new Br,this.componentFactory=new iS,this.inputSystem=n,this.mediaQueryManager=i,this.entityManager=r}addComponent(e,t,n){if(this.componentEntries.push({constructor:e,config:t}),n){const i=new e(this.object3D,t).name;this.responsiveConfigs.set(i,n)}return this}addGroupChildComponents(e,t){return this.groupChildComponentEntries.push({constructor:e,configFactory:t}),this}addObject(e){return this.object3D.add(e),this}setPosition(e,t,n){return e instanceof k?this.object3D.position.copy(e):this.object3D.position.set(e,t,n),this}setScale(e){return"number"==typeof e?this.object3D.scale.setScalar(e):this.object3D.scale.copy(e),this}setRotation(e,t,n){return e instanceof Ki?this.object3D.rotation.copy(e):this.object3D.rotation.set(e,t,n),this}build(){var e;const t=this.computeInitialConfigs(),n=[];for(const e of this.componentEntries){const i=t[new e.constructor(this.object3D,e.config).name]||e.config,r=this.componentFactory.createByConstructor(e.constructor,this.object3D,i);n.push(r),this.inputSystem&&(this.isResizeAware(r)&&this.inputSystem.registerResizeAware(r),this.isScrollAware(r)&&this.inputSystem.registerScrollAware(r))}const i=[];if(this.groupChildComponentEntries.length>0){const t=null==(e=this.entityManager)?void 0:e.getMetadata(this.entityId);this.object3D.children.forEach(((e,n)=>{const r=[];for(const i of this.groupChildComponentEntries){const o=i.configFactory(n,e,t),s=this.componentFactory.createByConstructor(i.constructor,e,o);r.push(s),this.inputSystem&&(this.isResizeAware(s)&&this.inputSystem.registerResizeAware(s),this.isScrollAware(s)&&this.inputSystem.registerScrollAware(s))}if(r.length>0){const t=r0.createAuto(`${this.entityId}-child-${n}`,e,r);i.push(t)}}))}const r=r0.createAuto(this.entityId,this.object3D,n,i);if(this.responsiveConfigs.size>0&&this.mediaQueryManager){const e=this.formatResponsiveConfigs(),t={};for(const e of this.componentEntries){t[new e.constructor(this.object3D,e.config).name]=e.config}this.mediaQueryManager.registerResponsive(this.entityId,e,t)}return r}computeInitialConfigs(){const e={};if(0===this.responsiveConfigs.size||!this.mediaQueryManager)return e;const t=[],n=this.mediaQueryManager.getBreakpoints();for(const[e,i]of Object.entries(n))typeof window<"u"&&window.matchMedia(i).matches&&t.push(e);for(const[n,i]of this.responsiveConfigs){const r=this.componentEntries.find((e=>new e.constructor(this.object3D,e.config).name===n));if(!r)continue;let o={...r.config};for(const e of t){const t=i[e];t&&(o={...o,...t})}e[n]=o}return e}formatResponsiveConfigs(){const e={};for(const[t,n]of this.responsiveConfigs)for(const[i,r]of Object.entries(n))e[i]||(e[i]={}),e[i][t]=r;return e}isResizeAware(e){return"onResize"in e&&"function"==typeof e.onResize}isScrollAware(e){return"onScroll"in e&&"function"==typeof e.onScroll}getObject3D(){return this.object3D}}class PF{constructor(e){Y(this,"scene"),Y(this,"entities",new Map),Y(this,"entityMetadata",new Map),Y(this,"inputSystem"),Y(this,"mediaQueryManager"),this.scene=e}setInputSystem(e){this.inputSystem=e}setMediaQueryManager(e){this.mediaQueryManager=e}createEntity(e,t){if(this.entities.has(e))throw new Error(`Entity with ID "${e}" already exists. Use removeEntity() first or choose a different ID.`);const n=t?yF(t).clone(!0):void 0,i=t?xF(t):void 0;void 0!==i&&this.entityMetadata.set(e,i);const r=new CF(e,n,this.inputSystem,this.mediaQueryManager,this);return this.wrapBuilder(r)}getMetadata(e){return this.entityMetadata.get(e)}createMeshEntity(e,t){return this.createEntity(e,t)}createGroupEntity(e){return this.createEntity(e,new Br)}getEntity(e){return this.entities.get(e)}getAllEntities(){return Array.from(this.entities.values())}removeEntity(e){const t=this.entities.get(e);return!!t&&(this.scene.remove(t.object3D),t.dispose(),this.entities.delete(e),this.entityMetadata.delete(e),!0)}tick(e){for(const t of this.entities.values())t.tick(e)}dispose(){for(const e of this.entities.values())this.scene.remove(e.object3D),e.dispose();this.entities.clear()}getEntityCount(){return this.entities.size}findEntitiesByName(e){const t="string"==typeof e?new RegExp(e,"i"):e;return Array.from(this.entities.entries()).filter((([e,n])=>t.test(e))).map((([e,t])=>t))}wrapBuilder(e){const t=e.build.bind(e);return e.build=()=>{const e=t();return this.scene.children.includes(e.object3D)||this.scene.add(e.object3D),this.entities.set(e.id,e),this.mediaQueryManager&&this.mediaQueryManager.applyBreakpointsForEntity(e.id),e},e}}class Hs extends Ji{constructor(e,t={}){var n;super(e),Y(this,"name","Rotation"),Y(this,"speed"),this.speed=(null==(n=t.speed)?void 0:n.clone())||new k(.5,.8,.3)}tick(e){this.enabled&&(this.target.rotation.x+=e*this.speed.x,this.target.rotation.y+=e*this.speed.y,this.target.rotation.z+=e*this.speed.z)}setSpeed(e){this.speed.copy(e)}getSpeed(){return this.speed.clone()}}class _d extends Ji{constructor(e,t){super(e),Y(this,"name","ResponsivePositioning"),Y(this,"x"),Y(this,"y"),Y(this,"targetZ"),Y(this,"camera"),Y(this,"anchor"),this.x=t.x,this.y=t.y,this.targetZ=void 0!==t.z?t.z:e.position.z,this.camera=t.camera,this.anchor=t.anchor||"top-left"}initialize(){this.updatePosition(1920,1080)}tick(e){}screenPixelsToWorld(e,t,n,i,r){const o=new k(e/n*2-1,-t/i*2+1,0),s=new k(0,0,r);return s.project(this.camera),o.z=s.z,o.unproject(this.camera),o}updatePosition(e,t){const n=(e,t)=>"number"==typeof e?e:"%"===e.unit?e.value/100*t:e.value;let i=n(this.x,e),r=n(this.y,t);switch(this.anchor){case"top-left":break;case"top-right":i=e-i;break;case"bottom-left":r=t-r;break;case"bottom-right":i=e-i,r=t-r;break;case"center":i=e/2+i,r=t/2+r}const o=this.screenPixelsToWorld(i,r,e,t,this.targetZ);this.setPositionTransform("responsive-positioning",o)}onResize(e,t){this.updatePosition(e,t)}updateConfig(e){("x"in e||"y"in e||"z"in e)&&this.setPosition(e.x??this.x,e.y??this.y,e.z??this.targetZ),"anchor"in e&&e.anchor&&this.setAnchor(e.anchor)}setPosition(e,t,n){this.x=e,this.y=t,void 0!==n&&(this.targetZ=n),typeof window<"u"&&this.updatePosition(window.innerWidth,window.innerHeight)}getPosition(){return{x:this.x,y:this.y,z:this.targetZ}}setAnchor(e){this.anchor=e,typeof window<"u"&&this.updatePosition(window.innerWidth,window.innerHeight)}getAnchor(){return this.anchor}}class RF extends Ji{constructor(e,t={}){super(e),Y(this,"name","Bobbing"),Y(this,"amplitude"),Y(this,"frequency"),Y(this,"time",0),Y(this,"coordinateSystem"),this.amplitude=t.amplitude||10,this.frequency=t.frequency||2,this.coordinateSystem=t.coordinateSystem||"world"}tick(e){if(!this.enabled)return;this.time+=e;const t=Math.sin(this.time*this.frequency)*this.amplitude;let n;n="local"===this.coordinateSystem?new k(0,1,0).applyQuaternion(this.target.quaternion).multiplyScalar(t):new k(0,t,0),this.setPositionTransform("bobbing",n)}setAmplitude(e){this.amplitude=e}getAmplitude(){return this.amplitude}setFrequency(e){this.frequency=e}getFrequency(){return this.frequency}}class LF extends Ji{constructor(e,t={}){super(e),Y(this,"name","Scaling"),Y(this,"minScale"),Y(this,"maxScale"),Y(this,"frequency"),Y(this,"time",0),this.minScale=t.minScale||.8,this.maxScale=t.maxScale||1.2,this.frequency=t.frequency||2}initialize(){}tick(e){this.time+=e;const t=this.minScale+(this.maxScale-this.minScale)*(Math.sin(this.time*this.frequency)+1)/2,n=new k(t,t,t);this.setScaleTransform("scaling",n)}setMinScale(e){this.minScale=e}getMinScale(){return this.minScale}setMaxScale(e){this.maxScale=e}getMaxScale(){return this.maxScale}setFrequency(e){this.frequency=e}getFrequency(){return this.frequency}setScaleRange(e,t){this.minScale=e,this.maxScale=t}dispose(){this.removeTransform("scale","scaling"),super.dispose()}}class rl extends Ji{constructor(e,t={}){var n;
93super(e),Y(this,"name","Circling"),Y(this,"radius"),Y(this,"speed"),Y(this,"axis"),Y(this,"time",0),this.radius=t.radius||20,this.speed=t.speed||1,this.axis=(null==(n=t.axis)?void 0:n.clone())||new k(0,1,0)}initialize(){}tick(e){this.time+=e*this.speed;const t=new k;if(this.axis.equals(new k(0,1,0)))t.x=Math.cos(this.time)*this.radius,t.z=Math.sin(this.time)*this.radius;else if(this.axis.equals(new k(1,0,0)))t.y=Math.cos(this.time)*this.radius,t.z=Math.sin(this.time)*this.radius;else if(this.axis.equals(new k(0,0,1)))t.x=Math.cos(this.time)*this.radius,t.y=Math.sin(this.time)*this.radius;else{const e=new k,n=new k;Math.abs(this.axis.x)<.9?e.crossVectors(this.axis,new k(1,0,0)).normalize():e.crossVectors(this.axis,new k(0,1,0)).normalize(),n.crossVectors(this.axis,e).normalize(),t.copy(e).multiplyScalar(Math.cos(this.time)*this.radius),t.addScaledVector(n,Math.sin(this.time)*this.radius)}this.setPositionTransform("circling",t)}setRadius(e){this.radius=e}setSpeed(e){this.speed=e}setAxis(e){this.axis.copy(e)}getRadius(){return this.radius}getSpeed(){return this.speed}getAxis(){return this.axis.clone()}dispose(){this.removeTransform("position","circling"),super.dispose()}}class rS extends Ji{constructor(e,t){super(e),Y(this,"name","ScrollExpansion"),Y(this,"originalLocalPosition"),Y(this,"camera"),Y(this,"maxExpansion"),Y(this,"scrollStartExpansion"),Y(this,"scrollEndExpansion"),Y(this,"scrollSensitivity"),Y(this,"currentScrollProgress",0),this.originalLocalPosition=t.originalLocalPosition.clone(),this.camera=t.camera,this.maxExpansion=t.maxExpansion||2,this.scrollStartExpansion=t.scrollStartExpansion||0,this.scrollEndExpansion=t.scrollEndExpansion||2e3,this.scrollSensitivity=t.scrollSensitivity||1,this.initializeTransforms()}initializeTransforms(){this.target.userData.transforms||(this.target.userData.transforms={position:{},scale:{},rotation:{},needsUpdate:!1},this.target.userData.basePosition=this.target.position.clone(),this.target.userData.baseScale=this.target.scale.clone(),this.target.userData.baseRotation=this.target.rotation.clone())}setPositionTransform(e,t){this.target.userData.transforms||this.initializeTransforms(),this.target.userData.transforms.position[e]=t.clone(),this.target.userData.transforms.needsUpdate=!0}initialize(){}tick(e){const t=1+this.currentScrollProgress*this.maxExpansion,n=this.target.parent;let i;i=n?n.worldToLocal(this.camera.position.clone()):this.camera.position.clone();const r=this.originalLocalPosition.clone().sub(i),o=r.length()*t,s=r.normalize(),a=i.clone().add(s.multiplyScalar(o)).clone().sub(this.originalLocalPosition);this.setPositionTransform("scrollExpansion",a)}onScroll(e,t){const n=this.scrollEndExpansion-this.scrollStartExpansion;if(e<=this.scrollStartExpansion)this.currentScrollProgress=0;else{const t=e-this.scrollStartExpansion,i=Math.min(t/n,1)*this.scrollSensitivity;this.currentScrollProgress=Math.max(0,Math.min(1,i))}}setExpansionConfig(e,t,n,i=1){this.maxExpansion=e,this.scrollStartExpansion=t,this.scrollEndExpansion=n,this.scrollSensitivity=i}getMaxExpansion(){return this.maxExpansion}getScrollRange(){return{start:this.scrollStartExpansion,end:this.scrollEndExpansion}}getScrollSensitivity(){return this.scrollSensitivity}updateConfig(e){("maxExpansion"in e||"scrollStartExpansion"in e||"scrollEndExpansion"in e||"scrollSensitivity"in e)&&this.setExpansionConfig(e.maxExpansion??this.maxExpansion,e.scrollStartExpansion??this.scrollStartExpansion,e.scrollEndExpansion??this.scrollEndExpansion,e.scrollSensitivity??this.scrollSensitivity)}dispose(){this.target.userData.transforms&&(delete this.target.userData.transforms.position.scrollExpansion,this.target.userData.transforms.needsUpdate=!0),super.dispose()}}class DF extends Ji{constructor(e,t){var n,i;super(e),Y(this,"name","ScrollPath"),Y(this,"scrollStart"),Y(this,"scrollEnd"),Y(this,"crossPoint"),Y(this,"exitDistance"),Y(this,"direction"),Y(this,"camera"),Y(this,"controlPointOffsets"),Y(this,"duration"),Y(this,"animationMode"),Y(this,"restPosition"),Y(this,"endPosition"),Y(this,"controlPoint1"),Y(this,"controlPoint2"),Y(this,"currentScrollY",0),Y(this,"progressAnimatable"),Y(this,"positionTarget"),Y(this,"isFirstScroll",!0),this.scrollStart=t.scrollStart,this.scrollEnd=t.scrollEnd,this.crossPoint=t.crossPoint,this.exitDistance=t.exitDistance,this.direction=t.direction??"out",this.camera=t.camera,this.duration=t.duration??800,this.animationMode=t.animationMode??"progress",this.controlPointOffsets={cp1:(null==(n=t.controlPointOffsets)?void 0:n.cp1)||new k(20,-30,20),cp2:(null==(i=t.controlPointOffsets)?void 0:i.cp2)||new k(-30,20,-20)},this.restPosition=new k,this.endPosition=new k,this.controlPoint1=new k,this.controlPoint2=new k}initialize(){this.captureRestPosition(),this.calculateCurve(),"progress"===this.animationMode?this.progressAnimatable=Hd({value:0},{ease:"out(3)",value:this.duration}):(this.positionTarget={x:this.restPosition.x,y:this.restPosition.y,z:this.restPosition.z},this.progressAnimatable=Hd(this.positionTarget,{ease:"out(3)",x:this.duration,y:this.duration,z:this.duration}))}tick(e){"progress"===this.animationMode?this.applyProgress():this.applyPosition()}captureRestPosition(){var e;const t=this.target.userData.transforms,n=this.target.userData.basePosition||new k;this.restPosition.copy(n),null!=(e=null==t?void 0:t.position)&&e["responsive-positioning"]&&this.restPosition.add(t.position["responsive-positioning"])}getObjectSize(){const e=(new To).setFromObject(this.target),t=new k;return e.getSize(t),Math.max(t.x,t.y,t.z)}calculateAutoExitDistance(e){const t=this.getObjectSize(),n=e.distanceTo(this.camera.position);if(this.camera.isPerspectiveCamera){const e=this.camera,i=e.fov*Math.PI/180,r=2*Math.tan(i/2)*n,o=r*e.aspect;return 1.5*Math.max(o,r,2*t)}return 3*t}toPixels(e,t){return"number"==typeof e?e*t:"%"===e.unit?e.value/100*t:e.value}calculateEndPosition(e,t){const n=this.toPixels(this.crossPoint.x,e),i=this.toPixels(this.crossPoint.y,t),r=new k(n/e*2-1,-i/t*2+1,0);let o;o=void 0!==this.crossPoint.z?this.crossPoint.z:this.restPosition.z;const s=new k(0,0,o);s.project(this.camera),r.z=s.z;const a=r.unproject(this.camera);a.z=o;const l=(new k).subVectors(a,this.restPosition).normalize(),c="auto"===this.exitDistance?this.calculateAutoExitDistance(a):this.exitDistance;return a.clone().add(l.multiplyScalar(c))}calculateCurve(){const e=typeof window<"u"?window.innerWidth:1920,t=typeof window<"u"?window.innerHeight:1080;this.endPosition=this.calculateEndPosition(e,t),this.controlPoint1=this.restPosition.clone().add(this.controlPointOffsets.cp1),this.controlPoint2=this.endPosition.clone().add(this.controlPointOffsets.cp2)}cubicBezier(e,t,n,i,r){const o=1-e,s=e*e,a=o*o,l=a*o,c=s*e,u=new k;return u.addScaledVector(t,l),u.addScaledVector(n,3*a*e),u.addScaledVector(i,3*o*s),u.addScaledVector(r,c),u}easeIn(e){return e*e*e}animateToProgress(e,t=!1){if("progress"===this.animationMode)t?this.progressAnimatable.value(e,0):this.progressAnimatable.value(e,this.duration);else{const n=this.cubicBezier(e,this.restPosition,this.controlPoint1,this.controlPoint2,this.endPosition);t?(this.progressAnimatable.x(n.x,0),this.progressAnimatable.y(n.y,0),this.progressAnimatable.z(n.z,0)):(this.progressAnimatable.x(n.x,this.duration),this.progressAnimatable.y(n.y,this.duration),this.progressAnimatable.z(n.z,this.duration))}}applyProgress(){const e=this.progressAnimatable.value(),t=this.cubicBezier(e,this.restPosition,this.controlPoint1,this.controlPoint2,this.endPosition),n=this.target.userData.basePosition||new k,i=t.clone().sub(n);this.removeTransform("position","responsive-positioning"),this.setPositionTransform("scroll-path",i)}applyPosition(){if(!this.positionTarget)return;const e=new k(this.positionTarget.x,this.positionTarget.y,this.positionTarget.z),t=this.target.userData.basePosition||new k,n=e.clone().sub(t);this.removeTransform("position","responsive-positioning"),this.setPositionTransform("scroll-path",n)}onScroll(e){this.enabled&&(this.currentScrollY=e,this.updatePosition(e,this.isFirstScroll),this.isFirstScroll&&(this.isFirstScroll=!1))}onResize(e,t){this.enabled&&(this.captureRestPosition(),this.calculateCurve(),this.updatePosition(this.currentScrollY))}updateConfig(e){("scrollStart"in e||"scrollEnd"in e)&&this.setScrollRange(e.scrollStart??this.scrollStart,e.scrollEnd??this.scrollEnd),"crossPoint"in e&&e.crossPoint&&this.setCrossPoint(e.crossPoint.x,e.crossPoint.y,e.crossPoint.z),"exitDistance"in e&&void 0!==e.exitDistance&&this.setExitDistance(e.exitDistance),"controlPointOffsets"in e&&e.controlPointOffsets&&(e.controlPointOffsets.cp1&&this.controlPointOffsets.cp1.copy(e.controlPointOffsets.cp1),e.controlPointOffsets.cp2&&this.controlPointOffsets.cp2.copy(e.controlPointOffsets.cp2),this.calculateCurve()),"duration"in e&&void 0!==e.duration&&(this.duration=e.duration),"animationMode"in e&&e.animationMode&&(this.animationMode=e.animationMode),"direction"in e&&e.direction&&(this.direction=e.direction,this.updatePosition(this.currentScrollY))}updatePosition(e,t=!1){const n=this.scrollEnd-this.scrollStart;let i=(e-this.scrollStart)/n;i=Math.max(0,Math.min(1,i)),"in"===this.direction&&(i=1-i),this.animateToProgress(i,t)}setScrollRange(e,t){this.scrollStart=e,this.scrollEnd=t}getScrollRange(){return{start:this.scrollStart,end:this.scrollEnd}}setCrossPoint(e,t,n){this.crossPoint.x=e,this.crossPoint.y=t,void 0!==n&&(this.crossPoint.z=n),this.calculateCurve()}getCrossPoint(){return{...this.crossPoint}}setExitPoint(e,t,n){this.setCrossPoint(e,t,n)}getExitPoint(){return this.getCrossPoint()}setExitDistance(e){this.exitDistance=e,this.calculateCurve()}getProgress(){const e=this.scrollEnd-this.scrollStart,t=(this.currentScrollY-this.scrollStart)/e;return Math.max(0,Math.min(1,t))}}class oS extends Ji{constructor(e,t){super(e),Y(this,"name","ScrollPathLinger"),Y(this,"entryCrossPoint"),Y(this,"entryDistance"),Y(this,"exit
93CrossPoint"),Y(this,"exitDistance"),Y(this,"camera"),Y(this,"entryDuration"),Y(this,"exitDelay"),Y(this,"exitDuration"),Y(this,"entryDelay"),Y(this,"loopDelay"),Y(this,"entryEasing"),Y(this,"exitEasing"),Y(this,"scrollThreshold"),Y(this,"energyThreshold"),Y(this,"debugVisualization",!1),Y(this,"currentPhase","entry-delay"),Y(this,"phaseStartTime",0),Y(this,"currentT",0),Y(this,"previousT",0),Y(this,"previousDeltaT",0),Y(this,"scrollTriggered",!1),Y(this,"velocityLocked",!1),Y(this,"lockTime",0),Y(this,"restPosition"),Y(this,"entryStartPosition"),Y(this,"exitEndPosition"),Y(this,"entryCrossWorldPos"),Y(this,"exitCrossWorldPos"),Y(this,"curve",null),Y(this,"restPointT",.5),Y(this,"debugTube",null),Y(this,"debugMarkers",[]),Y(this,"debugAnimatedSphere",null),Y(this,"debugEnergyThresholdSphere",null),Y(this,"viewportWidth",1920),Y(this,"viewportHeight",1080),this.entryCrossPoint=t.entryCrossPoint,this.entryDistance=t.entryDistance,this.exitCrossPoint=t.exitCrossPoint,this.exitDistance=t.exitDistance,this.camera=t.camera,this.entryDuration=t.entryDuration,this.exitDelay=t.exitDelay,this.exitDuration=t.exitDuration,this.entryDelay=t.entryDelay??0,this.loopDelay=t.loopDelay??0,this.entryEasing=t.entryEasing??"linear",this.exitEasing=t.exitEasing??"linear",this.scrollThreshold=t.scrollThreshold,this.energyThreshold=t.energyThreshold??.85,this.debugVisualization=t.debugVisualization??!1,this.restPosition=new k,this.entryStartPosition=new k,this.exitEndPosition=new k,this.entryCrossWorldPos=new k,this.exitCrossWorldPos=new k}initialize(){this.updateViewportDimensions(),this.captureRestPosition(),this.calculatePathPositions(),this.buildCurvePath(),this.debugVisualization&&this.createDebugVisualization(),this.ensureTransforms(),this.phaseStartTime=performance.now()}tick(e){const t=performance.now(),n=t-this.phaseStartTime;switch(this.currentPhase){case"entry-delay":if(this.scrollTriggered){this.phaseStartTime=t;break}n>=this.entryDelay&&(this.currentPhase="entry",this.phaseStartTime=t);break;case"entry":const e=Math.min(n/this.entryDuration,1),i=this.getEasingFunction(this.entryEasing),r=i(e),o=this.getEasingEnergy(i,e);if(this.scrollTriggered&&o<=this.energyThreshold&&!this.velocityLocked&&(this.velocityLocked=!0,this.lockTime=t),this.velocityLocked){this.currentT=this.currentT+1*this.previousDeltaT,this.currentT>=1&&(this.currentT=1,this.currentPhase="loop-delay",this.phaseStartTime=t,this.velocityLocked=!1);break}this.currentT=r*this.restPointT,e>=1&&(this.currentPhase="exit-delay",this.phaseStartTime=t,this.currentT=this.restPointT);break;case"exit-delay":if(this.scrollTriggered){this.currentPhase="exit",this.phaseStartTime=t;break}n>=this.exitDelay&&(this.currentPhase="exit",this.phaseStartTime=t);break;case"exit":const s=Math.min(n/this.exitDuration,1),a=this.getEasingFunction(this.exitEasing)(s);this.currentT=this.restPointT+a*(1-this.restPointT),s>=1&&(this.currentPhase="loop-delay",this.phaseStartTime=t,this.currentT=1);break;case"loop-delay":n>=this.loopDelay&&(this.currentPhase="entry-delay",this.phaseStartTime=t,this.currentT=0,this.velocityLocked=!1)}if(this.curve){const e=this.curve.getPointAt(this.currentT).clone().sub(this.restPosition);this.setPositionTransform("scroll-path-linger",e)}this.previousDeltaT=this.currentT-this.previousT,this.previousT=this.currentT}onScroll(e,t){this.scrollTriggered=e>=this.scrollThreshold}onResize(e,t){this.updateViewportDimensions(e,t),this.captureRestPosition(),this.calculatePathPositions(),this.buildCurvePath(),this.debugVisualization&&this.createDebugVisualization()}dispose(){super.dispose(),this.removeDebugVisualization()}updateViewportDimensions(e,t){const n=e??1920,i=t??1080;this.viewportWidth=isFinite(n)&&n>0?n:1920,this.viewportHeight=isFinite(i)&&i>0?i:1080}captureRestPosition(){var e;const t=this.target.userData.transforms,n=this.target.userData.basePosition||new k;this.restPosition.copy(n),null!=(e=null==t?void 0:t.position)&&e["responsive-positioning"]&&this.restPosition.add(t.position["responsive-positioning"]),(!isFinite(this.restPosition.x)||!isFinite(this.restPosition.y)||!isFinite(this.restPosition.z))&&this.restPosition.set(0,0,0)}toPixels(e,t){return"number"==typeof e?e:"%"===e.unit?e.value/100*t:e.value}getObjectSize(){const e=(new To).setFromObject(this.target),t=new k;return e.getSize(t),2*Math.max(t.x,t.y,t.z)}calculateFrustumClearanceDistance(e,t,n){if(!this.camera.isPerspectiveCamera)return 3*n;const i=this.camera,r=i.fov*(Math.PI/180);e.distanceTo(this.camera.position);const o=2*Math.tan(r/2)*Math.abs(e.z-this.camera.position.z),s=o*i.aspect,a=e.clone().sub(this.camera.position),l=new tt(t.x,t.y),c=new tt(a.x,a.y);let u=0;if(Math.abs(l.x)>.001){const e=(s/2-Math.abs(c.x))/Math.abs(l.x);u=Math.max(u,e)}
93if(Math.abs(l.y)>.001){const e=(o/2-Math.abs(c.y))/Math.abs(l.y);u=Math.max(u,e)}const d=u+n+.2*n;return Math.max(d,2*n)}calculatePathPositions(){this.calculateCrossPointWorldPosition(this.entryCrossPoint,this.entryCrossWorldPos),this.calculateCrossPointWorldPosition(this.exitCrossPoint,this.exitCrossWorldPos),this.calculateStartPosition(),this.calculateEndPosition()}calculateCrossPointWorldPosition(e,t){const n=this.toPixels(e.x,this.viewportWidth),i=this.toPixels(e.y,this.viewportHeight);if(!isFinite(n)||!isFinite(i))return void t.set(0,0,0);const r=n/this.viewportWidth*2-1,o=-i/this.viewportHeight*2+1;if(!isFinite(r)||!isFinite(o))return void t.set(0,0,0);const s=new k(r,o,0);let a;a=void 0!==e.z?e.z:this.restPosition.z,isFinite(a)||(a=0);try{const e=new k(0,0,a);e.project(this.camera),isFinite(e.z)?s.z=e.z:s.z=0;const n=s.unproject(this.camera);if(!isFinite(n.x)||!isFinite(n.y)||!isFinite(n.z))return void t.set(0,0,a);n.z=a,t.copy(n)}catch{t.set(0,0,a)}}calculateStartPosition(){const e=this.restPosition.clone().sub(this.entryCrossWorldPos);0!==e.length()&&isFinite(e.x)&&isFinite(e.y)&&isFinite(e.z)?e.normalize():e.set(-1,0,0),e.negate();let t=this.entryCrossWorldPos.clone();const n=this.getObjectSize()/2;if("auto"===this.entryDistance){const i=this.calculateFrustumClearanceDistance(t,e,n);t.add(e.clone().multiplyScalar(i))}else t.add(e.clone().multiplyScalar(this.entryDistance));this.entryStartPosition.copy(t)}calculateEndPosition(){const e=this.exitCrossWorldPos.clone().sub(this.restPosition);0!==e.length()&&isFinite(e.x)&&isFinite(e.y)&&isFinite(e.z)?e.normalize():e.set(1,0,0);let t=this.exitCrossWorldPos.clone();const n=this.getObjectSize()/2;if("auto"===this.exitDistance){const i=this.calculateFrustumClearanceDistance(t,e,n);t.add(e.clone().multiplyScalar(i))}else t.add(e.clone().multiplyScalar(this.exitDistance));this.exitEndPosition.copy(t)}buildCurvePath(){const e=[this.entryStartPosition,this.entryCrossWorldPos,this.restPosition,this.exitCrossWorldPos,this.exitEndPosition];if(e.some((e=>!isFinite(e.x)||!isFinite(e.y)||!isFinite(e.z))))return void(this.curve=null);this.curve=new C1(e,!1,"centripetal");let t=0,n=1/0;const i=new k;for(let e=0;e<=100;e++){const r=e/100;this.curve.getPointAt(r,i);const o=i.distanceToSquared(this.restPosition);o<n&&(n=o,t=r)}this.restPointT=t}getEasingFunction(e){let t;try{if(e.includes("(")){const n=e.match(/^(\w+)\(([^)]+)\)$/);if(n){const[,e,i]=n,r=parseFloat(i);t=$i[e](r)}else t=e=>e}else t=$i[e]}catch{console.warn(`Invalid easing function: ${e}, using linear`),t=e=>e}return t}getEasingEnergy(e,t){const n=Math.max(0,t-1e-4),i=Math.min(1,t+1e-4),r=e(n),o=(e(i)-r)/(i-n);return Math.abs(o)}createDebugVisualization(){}removeDebugVisualization(){}}class IF extends Ji{constructor(e,t){super(e),Y(this,"name","scroll-based-scale"),Y(this,"scrollStart"),Y(this,"scrollEnd"),Y(this,"fromScale"),Y(this,"toScale"),Y(this,"easing"),Y(this,"duration"),Y(this,"scrollDownDelay"),Y(this,"currentScrollY",0),Y(this,"previousScrollY",0),Y(this,"scaleTarget",{value:0}),Y(this,"targetScaleValue",0),Y(this,"scaleAnimatable",null),Y(this,"delayTimeout",null),this.scrollStart=t.scrollStart,this.scrollEnd=t.scrollEnd,this.fromScale=t.fromScale??0,this.toScale=t.toScale??1,this.easing=t.easing??"inOut(1.45)",this.duration=t.duration??400,this.scrollDownDelay=t.scrollDownDelay??0,this.scaleTarget.value=this.fromScale,this.previousScrollY=0}initialize(){this.ensureTransforms(),this.scaleAnimatable=Hd(this.scaleTarget,{ease:this.easing,value:this.duration}),this.updateTargetScale()}onScroll(e,t){this.previousScrollY=this.currentScrollY,this.currentScrollY=e,this.updateTargetScale()}tick(e){this.applyScale()}updateTargetScale(){const e=Math.max(0,Math.min(1,(this.currentScrollY-this.scrollStart)/(this.scrollEnd-this.scrollStart)));this.targetScaleValue=this.fromScale+(this.toScale-this.fromScale)*e;const t=this.currentScrollY>this.previousScrollY;null!==this.delayTimeout&&(clearTimeout(this.delayTimeout),this.delayTimeout=null),t&&this.scrollDownDelay>0?this.delayTimeout=window.setTimeout((()=>{this.animateToScale(this.targetScaleValue),this.delayTimeout=null}),this.scrollDownDelay):this.animateToScale(this.targetScaleValue)}animateToScale(e){this.scaleAnimatable.value(e)}
93applyScale(){const e=this.scaleTarget.value;this.setScaleTransform("scroll-based-scale",new k(e,e,e))}dispose(){null!==this.delayTimeout&&(clearTimeout(this.delayTimeout),this.delayTimeout=null),this.removeTransform("scale","scroll-based-scale"),super.dispose()}}class dm extends Ji{constructor(e,t){super(e),Y(this,"name","ScrollLinger"),Y(this,"scrollPosition"),Y(this,"scrollDownDelay"),Y(this,"duration"),Y(this,"easing"),Y(this,"crossPoint"),Y(this,"exitDistance"),Y(this,"direction"),Y(this,"camera"),Y(this,"restPosition"),Y(this,"outsidePosition"),Y(this,"currentScrollY",0),Y(this,"lastScrollY",0),Y(this,"hasTriggered",!1),Y(this,"positionAnimatable",null),Y(this,"animationTarget"),Y(this,"isInitialized",!1),Y(this,"hasRealViewportSize",!1),this.scrollPosition=t.scrollPosition,this.scrollDownDelay=t.scrollDownDelay??0,this.duration=t.duration,this.easing=t.easing??"inOut(1.45)",this.crossPoint=t.crossPoint,this.exitDistance=t.exitDistance,this.direction=t.direction,this.camera=t.camera,this.restPosition=new k,this.outsidePosition=new k,this.animationTarget={x:0,y:0,z:0}}initialize(){if(this.isInitialized=!1,"in"===this.direction){const e=new k(1e4,1e4,0);this.setPositionTransform("scroll-linger",e)}}deferredInitialize(){this.isInitialized||(this.captureRestPosition(),this.calculateOutsidePosition(),"in"===this.direction?(this.animationTarget.x=this.outsidePosition.x,this.animationTarget.y=this.outsidePosition.y,this.animationTarget.z=this.outsidePosition.z):(this.animationTarget.x=this.restPosition.x,this.animationTarget.y=this.restPosition.y,this.animationTarget.z=this.restPosition.z),this.positionAnimatable=Hd(this.animationTarget,{ease:this.easing,x:this.duration,y:this.duration,z:this.duration}),this.applyPosition(),this.isInitialized=!0)}tick(e){this.enabled&&(this.isInitialized||this.deferredInitialize(),this.applyPosition())}captureRestPosition(){var e;const t=this.target.userData.transforms,n=this.target.userData.basePosition||new k;this.restPosition.copy(n),null!=(e=null==t?void 0:t.position)&&e["responsive-positioning"]&&this.restPosition.add(t.position["responsive-positioning"])}getObjectSize(){const e=(new To).setFromObject(this.target),t=new k;return e.getSize(t),Math.max(t.x,t.y,t.z)}calculateAutoExitDistance(e){const t=this.getObjectSize(),n=e.distanceTo(this.camera.position);if(this.camera.isPerspectiveCamera){const e=this.camera,i=e.fov*Math.PI/180,r=2*Math.tan(i/2)*n,o=r*e.aspect;return 1.5*Math.max(o,r,2*t)}return 3*t}calculateOutsidePosition(){const e=typeof window<"u"?window.innerWidth:1920,t=typeof window<"u"?window.innerHeight:1080,n=(e,t)=>"number"==typeof e?e*t:"%"===e.unit?e.value/100*t:e.value,i=n(this.crossPoint.x,e),r=n(this.crossPoint.y,t),o=new k(i/e*2-1,-r/t*2+1,0);let s;s=void 0!==this.crossPoint.z?this.crossPoint.z:this.restPosition.z;const a=new k(0,0,s);a.project(this.camera),o.z=a.z;const l=o.unproject(this.camera);l.z=s;const c=new k(0,0,s),u=(new k).subVectors(l,c).normalize(),d="auto"===this.exitDistance?this.calculateAutoExitDistance(l):this.exitDistance;this.outsidePosition.copy(l).add(u.multiplyScalar(d))}applyPosition(){const e=new k(this.animationTarget.x,this.animationTarget.y,this.animationTarget.z),t=this.target.userData.basePosition||new k,n=e.clone().sub(t);this.removeTransform("position","responsive-positioning"),this.setPositionTransform("scroll-linger",n)}animateTo(e,t=0){this.positionAnimatable&&(t>0?setTimeout((()=>{this.positionAnimatable.x(e.x),this.positionAnimatable.y(e.y),this.positionAnimatable.z(e.z)}),t):(this.positionAnimatable.x(e.x),this.positionAnimatable.y(e.y),this.positionAnimatable.z(e.z)))}onScroll(e){if(!this.enabled)return;if(this.currentScrollY=e,!this.isInitialized||!this.hasRealViewportSize)return void(this.lastScrollY=e);this.lastScrollY;const t=!this.hasTriggered&&e>=this.scrollPosition,n=this.hasTriggered&&e<this.scrollPosition;t?(this.hasTriggered=!0,"in"===this.direction?this.animateTo(this.restPosition,this.scrollDownDelay):this.animateTo(this.outsidePosition,this.scrollDownDelay)):n&&(this.hasTriggered=!1,"in"===this.direction?this.animateTo(this.outsidePosition,0):this.animateTo(this.restPosition,0)),this.lastScrollY=e}onResize(e,t){if(this.enabled){if(this.hasRealViewportSize=!0,!this.isInitialized){this.deferredInitialize();const e=this.currentScrollY>=this.scrollPosition;if(this.hasTriggered=e,"in"===this.direction){const t=e?this.restPosition:this.outsidePosition;this.animationTarget.x=t.x,this.animationTarget.y=t.y,this.animationTarget.z=t.z}else{const t=e?this.outsidePosition:this.restPosition;this.animationTarget.x=t.x,this.animationTarget.y=t.y,this.animationTarget.z=t.z}return void this.applyPosition()}this.captureRestPosition(),this.calculateOutsidePosition(),this.hasTriggered?"in"===this.direction?(this.animationTarget.x=this.restPosition.x,this.animationTarget.y=this.restPosition.y,this.animationTarget.z=this.restPosition.z):(this.animationTarget.x=this.outsidePosition.x,this.animationTarget.y=this.outsidePosition.y,this.animationTarget.z=this.outsidePosition.z):"in"===this.direction?(this.animationTarget.x=this.outsidePosition.x,this.animationTarget.y=this.outsidePosition.y,this.animationTarget.z=this.outsidePosition.z):(this.animationTarget.x=this.restPosition.x,this.animationTarget.y=this.restPosition.y,this.animationTarget.z=this.restPosition.z),this.applyPosition()}}updateConfig(e){"scrollPosition"in e&&void 0!==e.scrollPosition&&(this.scrollPosition=e.scrollPosition),"scrollDownDelay"in e&&void 0!==e.scrollDownDelay&&(this.scrollDownDelay=e.scrollDownDelay),"duration"in e&&void 0!==e.duration&&(this.duration=e.duration),"easing"in e&&e.easing&&(this.easing=e.easing),"crossPoint"in e&&e.crossPoint&&(this.crossPoint={...this.crossPoint,...e.crossPoint},this.calculateOutsidePosition()),"exitDistance"in e&&void 0!==e.exitDistance&&(this.exitDistance=e.exitDistance,this.calculateOutsidePosition()),"direction"in e&&e.direction&&(this.direction=e.direction,this.hasTriggered=!1,this.isInitialized=!1,this.deferredInitialize())}}class sS extends Ji{constructor(e,t){super(e),Y(this,"name","ScrollOffset"),Y(this,"scrollStart"),Y(this,"scrollEnd"),Y(this,"offsets"),Y(this,"currentScrollY",0),Y(this,"isFirstScroll",!0),this.scrollStart=t.scrollStart,this.scrollEnd=t.scrollEnd,this.offsets={...t.offsets}}initialize(){this.applyOffset(this.currentScrollY)}calculateProgress(e){const t=this.scrollEnd-this.scrollStart;if(0===t)return 0;const n=(e-this.scrollStart)/t;return Math.max(0,Math.min(1,n))}applyOffset(e){const t=this.calculateProgress(e),n=new k(this.offsets.x*t,this.offsets.y*t,this.offsets.z*t);this.setPositionTransform("scroll-offset",n)}onScroll(e){this.enabled&&(this.currentScrollY=e,this.applyOffset(e),this.isFirstScroll&&(this.isFirstScroll=!1))}updateConfig(e){("scrollStart"in e||"scrollEnd"in e)&&(void 0!==e.scrollStart&&(this.scrollStart=e.scrollStart),void 0!==e.scrollEnd&&(this.scrollEnd=e.scrollEnd),this.applyOffset(this.currentScrollY)),"offsets"in e&&e.offsets&&(void 0!==e.offsets.x&&(this.offsets.x=e.offsets.x),void 0!==e.offsets.y&&(this.offsets.y=e.offsets.y),void 0!==e.offsets.z&&(this.offsets.z=e.offsets.z),this.applyOffset(this.currentScrollY))}getScrollRange(){return{start:this.scrollStart,end:this.scrollEnd}}setScrollRange(e,t){this.scrollStart=e,this.scrollEnd=t,this.applyOffset(this.currentScrollY)}getOffsets(){return{...this.offsets}}setOffsets(e){this.offsets={...e},this.applyOffset(this.currentScrollY)}getProgress(){return this.calculateProgress(this.currentScrollY)}}function NF(){const e=Lv();e.register("rotation",Hs,{category:"animation",description:"Continuous rotation animation",defaultConfig:{speed:void 0}}),e.register("bobbing",RF,{category:"animation",description:"Oscillating vertical movement",defaultConfig:{amplitude:10,frequency:2}}),e.register("scaling",LF,{category:"animation",description:"Pulsing scale animation",defaultConfig:{minScale:.8,maxScale:1.2,frequency:2}}),e.register("circling",rl,{category:"animation",description:"Circular motion around initial position",defaultConfig:{radius:20,speed:1,axis:void 0}}),e.register("scroll-expansion",rS,{category:"scroll",description:"Expands molecules based on scroll progress",defaultConfig:{originalPositions:[],maxExpansion:2,cameraFarLimit:2e3,scrollStartExpansion:0,scrollEndExpansion:2e3,scrollSensitivity:1}}),e.register("scroll-path",DF,{category:"scroll",description:"Animates object along bezier curve based on scroll",defaultConfig:{scrollStart:300,scrollEnd:2300,exitPoint:{x:1.2,y:.5},exitDistance:200,camera:void 0}}),e.register("scroll-based-scale",IF,{category:"scroll",description:"Scale animation triggered by scroll position",defaultConfig:{scrollStart:0,scrollEnd:1e3,fromScale:0,toScale:1,easing:"linear"}}),e.register("scroll-linger",dm,{category:"scroll",description:"Entrance/exit animation triggered by scroll position",defaultConfig:{scrollPosition:500,scrollDownDelay:0,duration:1e3,easing:"inOut(1.45)",crossPoint:{x:{value:100,unit:"%"},y:{value:50,unit:"%"}},exitDistance:"auto",direction:"in",camera:void 0}}),e.register("scroll-offset",sS,{category:"scroll",description:"Linear position offset based on scroll",defaultConfig:{scrollStart:0,scrollEnd:500,offsets:{x:0,y:0,z:0}}}),e.register("scroll-path-linger",oS,{category:"scroll",description:"Auto-animate entry â linger â exit sequence with scroll override",defaultConfig:{entryDuration:2e3,lingerDuration:3e3,exitDuration:2e3,entryEasing:"outExpo",exitEasing:"inExpo",crossPointIn:{x:{value:120,unit:"%"},y:{value:50,unit:"%"}},crossPointOut:{x:{value:-20,unit:"%"},y:{value:50,unit:"%"}},entryDistance:200,exitDistance:200,scrollOverride:!0,scrollThreshold:150,camera:void 0,responsivePositioning:void 0}}),e.register("responsive-positioning",_d,{category:"responsive",description:"Screen-relative positioning",defaultConfig:{positionType:"screen-percentage",x:.5,y:.5,z:0,camera:void 0}})}function OF(){0===Lv().getAllNames().length&&NF()}const UF=async(e,t,n,i,r,o)=>{OF();const s=wF(),a=new MF,l=AF({"@sm":"(min-width: 640px)","@md":"(min-width: 768px)","@ml":"(min-width: 960px)","@lg":"(min-width: 1024px)","@xl":"(min-width: 1280px)","@2xl":"(min-width: 1536px)"}),c=new PF(e);
93e.visible=!1,c.setInputSystem(s),c.setMediaQueryManager(l),l.setEntityManager(c),l.setupMediaQueryListeners();const u=e=>{c.removeEntity("molecule-field");const t=_F(n,e);c.createEntity("molecule-field",t).addGroupChildComponents(rS,((e,t,i)=>({originalLocalPosition:i.originalPositions[e],camera:n,maxExpansion:12,scrollStartExpansion:20,scrollEndExpansion:3300,scrollSensitivity:1}))).addComponent(Hs,{speed:new k(.01,.03,.01)}).addGroupChildComponents(Hs,(e=>({speed:new k(2*(Math.random()-.5),2*(Math.random()-.5),2*(Math.random()-.5))}))).addGroupChildComponents(rl,(e=>({radius:5*Math.random(),speed:.2+.6*Math.random(),axis:new k(Math.random()-.5,Math.random()-.5,Math.random()-.5).normalize()}))).build()},d=()=>{c.removeEntity("single-molecule");const e=$b({position:new k(0,0,0)});c.createEntity("single-molecule",e).addComponent(Hs,{speed:new k(.6,.3,.5)}).addComponent(_d,{anchor:"top-left",x:{value:60,unit:"%"},y:{value:640,unit:"px"},z:-40,camera:n},{"@sm":{x:{value:65,unit:"%"},y:{value:640,unit:"px"},z:-20},"@ml":{x:{value:75,unit:"%"},y:{value:400,unit:"px"},z:-10},"@xl":{x:{value:85,unit:"%"},z:0}}).addComponent(oS,{loopDelay:10,entryDelay:10,entryDuration:2e4,exitDelay:600,exitDuration:16e3,entryEasing:"outQuad",exitEasing:"inQuad",entryCrossPoint:{x:{value:0,unit:"%"},y:{value:75,unit:"%"},z:20},entryDistance:"auto",exitCrossPoint:{x:{value:100,unit:"%"},y:{value:500,unit:"px"},z:20},exitDistance:"auto",scrollThreshold:100,energyThreshold:.85,debugVisualization:!1,camera:n},{"@ml":{exitDelay:0,entryCrossPoint:{x:{value:0,unit:"%"},y:{value:700,unit:"px"},z:20},exitCrossPoint:{x:{value:35,unit:"%"},y:{value:300,unit:"px"},z:-20}}}).addComponent(sS,{scrollStart:20,scrollEnd:700,offsets:{x:0,y:40,z:-20}}).addComponent(rl,{radius:3,speed:.5+.5*Math.random(),axis:new k(Math.random()-.5,-1,Math.random()-.5).normalize()}).build()};u({moleculeCount:300,minDistance:75,maxDistance:900,moleculeScale:1,ease:"outSine",geometryRatios:{tetrahedral:.3,linear:.1,trigonalPlanar:.2,trigonalBipyramidal:.2,doubleBent:.2}}),await new Promise((e=>setTimeout(e,0))),d(),(()=>{c.removeEntity("lingering-molecules1"),c.removeEntity("lingering-molecules2");const e=$b({position:new k(0,0,0)});c.createEntity("lingering-molecules1",e).addComponent(Hs,{speed:new k(.3,.2,.2)}).addComponent(_d,{x:{value:-60,unit:"%"},y:{value:65,unit:"%"},z:-150,camera:n},{"@md":{x:{value:0,unit:"%"},y:{value:65,unit:"%"},z:-300},"@ml":{x:{value:0,unit:"%"},y:{value:65,unit:"%"},z:-150},"@xl":{z:-100}}).addComponent(dm,{scrollPosition:500,scrollDownDelay:0,duration:2e3,easing:"inOut(1.45)",crossPoint:{x:{value:0,unit:"%"},y:{value:65,unit:"%"},z:-300},exitDistance:"auto",direction:"in",camera:n}).addComponent(rl,{radius:20,speed:.1+.3*Math.random(),axis:new k(Math.random()-.5,-1,Math.random()-.5).normalize()}).build(),c.createEntity("lingering-molecules2",e).addComponent(Hs,{speed:new k(.3,.2,.2)}).addComponent(_d,{x:{value:160,unit:"%"},y:{value:35,unit:"%"},z:-300,camera:n},{"@md":{x:{value:100,unit:"%"},y:{value:35,unit:"%"},z:-300},"@ml":{x:{value:100,unit:"%"},y:{value:35,unit:"%"},z:-150},"@xl":{z:-100}}).addComponent(dm,{scrollPosition:500,scrollDownDelay:200,duration:12e3,easing:"inOut(2.48)",crossPoint:{x:{value:100,unit:"%"},y:{value:40,unit:"%"},z:-150},exitDistance:"auto",direction:"in",camera:n}).addComponent(rl,{radius:30,speed:.1+.1*Math.random(),axis:new k(Math.random()-.5,1,Math.random()-.5).normalize()}).build()})(),await new Promise((e=>setTimeout(e,0))),await cU(e,t);const h={tick:t=>{e.environmentRotation.y+=.5*t,c.tick(t),a.tick(c.getAllEntities())},start:()=>{c.tick(0),a.tick(c.getAllEntities()),e.visible=!0},entityManager:c,mediaQueryManager:l,handleScroll:e=>{s.handleScroll(e)},handleResize:(e,t)=>
vendor: 10,744 bytes, lines 93-99
93{s.handleResize(e,t)},setupMoleculeField:u,setupSingleMolecule:d};return void 0!==o&&h.handleScroll(o),void 0!==i&&void 0!==r&&h.handleResize(i,r),h},aS=e=>(()=>{const t=e.getBoundingClientRect();return{width:t.width,height:t.height,aspect:t.width/t.height,pixelRatio:Math.min(window.devicePixelRatio,2)}})(),FF=(e,t)=>{const n=new ResizeObserver((()=>{const n=aS(e);t(n)}));return n.observe(e),n}; 94/** 95 * postprocessing v6.37.8 build Fri Sep 12 2025 96 * https://github.com/pmndrs/postprocessing 97 * Copyright 2015-2025 Raoul van Rüschen 98 * @license Zlib 99 */var Oh=.001,BF=1e3,kF=class{constructor(){this.startTime=performance.now(),this.previousTime=0,this.currentTime=0,this._delta=0,this._elapsed=0,this._fixedDelta=1e3/60,this.timescale=1,this.useFixedDelta=!1,this._autoReset=!1}get autoReset(){return this._autoReset}set autoReset(e){typeof document<"u"&&void 0!==document.hidden&&(e?document.addEventListener("visibilitychange",this):document.removeEventListener("visibilitychange",this),this._autoReset=e)}get delta(){return this._delta*Oh}get fixedDelta(){return this._fixedDelta*Oh}set fixedDelta(e){this._fixedDelta=e*BF}get elapsed(){return this._elapsed*Oh}update(e){this.useFixedDelta?this._delta=this.fixedDelta:(this.previousTime=this.currentTime,this.currentTime=(void 0!==e?e:performance.now())-this.startTime,this._delta=this.currentTime-this.previousTime),this._delta*=this.timescale,this._elapsed+=this._delta}reset(){this._delta=0,this._elapsed=0,this.currentTime=performance.now()-this.startTime}getDelta(){return this.delta}getElapsed(){return this.elapsed}handleEvent(e){document.hidden||(this.currentTime=performance.now()-this.startTime)}dispose(){this.autoReset=!1}},zF=(()=>{const e=new Float32Array([-1,-1,0,3,-1,0,-1,3,0]),t=new Float32Array([0,0,2,0,0,2]),n=new Zi;return n.setAttribute("position",new yi(e,3)),n.setAttribute("uv",new yi(t,2)),n})(),Co=class e{static get fullscreenGeometry(){return zF}constructor(e="Pass",t=new Bd,n=new yv){this.name=e,this.renderer=null,this.scene=t,this.camera=n,this.screen=null,this.rtt=!0,this.needsSwap=!0,this.needsDepthTexture=!1,this.enabled=!0}get renderToScreen(){return!this.rtt}set renderToScreen(e){if(this.rtt===e){const t=this.fullscreenMaterial;null!==t&&(t.needsUpdate=!0),this.rtt=!e}}set mainScene(e){}set mainCamera(e){}setRenderer(e){this.renderer=e}isEnabled(){return this.enabled}setEnabled(e){this.enabled=e}get fullscreenMaterial(){return null!==this.screen?this.screen.material:null}set fullscreenMaterial(t){let n=this.screen;null!==n?n.material=t:(n=new On(e.fullscreenGeometry,t),n.frustumCulled=!1,null===this.scene&&(this.scene=new Bd),this.scene.add(n),this.screen=n)}getFullscreenMaterial(){return this.fullscreenMaterial}setFullscreenMaterial(e){this.fullscreenMaterial=e}getDepthTexture(){return null}setDepthTexture(e,t=_u){}render(e,t,n,i,r){throw new Error("Render method not implemented!")}setSize(e,t){}initialize(e,t,n){}dispose(){for(const t of Object.keys(this)){const n=this[t];(n instanceof ji||n instanceof ms||n instanceof Un||n instanceof e)&&this[t].dispose()}null!==this.fullscreenMaterial&&this.fullscreenMaterial.dispose()}},HF=class extends Co{constructor(){super("ClearMaskPass",null,null),this.needsSwap=!1}render(e,t,n,i,r){const o=e.state.buffers.stencil;o.setLocked(!1),o.setTest(!1)}},VF="#include <common>\n#include <dithering_pars_fragment>\n#ifdef FRAMEBUFFER_PRECISION_HIGH\nuniform mediump sampler2D inputBuffer;\n#else\nuniform lowp sampler2D inputBuffer;\n#endif\nuniform float opacity;varying vec2 vUv;void main(){vec4 texel=texture2D(inputBuffer,vUv);gl_FragColor=opacity*texel;\n#include <colorspace_fragment>\n#include <dithering_fragment>\n}",$F="varying vec2 vUv;void main(){vUv=position.xy*0.5+0.5;gl_Position=vec4(position.xy,1.0,1.0);}",GF=class extends Qi{constructor(){super({name:"CopyMaterial",uniforms:{inputBuffer:new Dn(null),opacity:new Dn(1)},blending:0,toneMapped:!1,depthWrite:!1,depthTest:!1,fragmentShader:VF,vertexShader:$F})}set inputBuffer(e){this.uniforms.inputBuffer.value=e}setInputBuffer(e){this.uniforms.inputBuffer.value=e}getOpacity(e){return this.uniforms.opacity.value}setOpacity(e){this.uniforms.opacity.value=e}},WF=class extends Co{constructor(e,t=!0){super("CopyPass"),this.fullscreenMaterial=new GF,this.needsSwap=!1,this.renderTarget=e,void 0===e&&(this.renderTarget=new ji(1,1,{minFilter:zn,magFilter:zn,stencilBuffer:!1,depthBuffer:!1}),this.renderTarget.texture.name="CopyPass.Target"),this.autoResize=t}get resize(){return this.autoResize}set resize(e){this.autoResize=e}get texture(){return this.renderTarget.texture}getTexture(){return this.renderTarget.texture}setAutoResizeEnabled(e){this.autoResize=e}render(e,t,n,i,r){this.fullscreenMaterial.inputBuffer=t.texture,e.setRenderTarget(this.renderToScreen?null:this.renderTarget),e.render(this.scene,this.camera)}setSize(e,t){this.autoResize&&this.renderTarget.setSize(e,t)}initialize(e,t,n){void 0!==n&&(this.renderTarget.texture.type=n,n!==si?this.fullscreenMaterial.defines.FRAMEBUFFER_PRECISION_HIGH="1":null!==e&&e.outputColorSpace===fn&&(this.renderTarget.texture.colorSpace=fn))}},a0=new Ut,lS=class extends Co{constructor(e=!0,t=!0,n=!1){super("ClearPass",null,null),this.needsSwap=!1,this.color=e,this.depth=t,this.stencil=n,this.overrideClearColor=null,this.overrideClearAlpha=-1}setClearFlags(e,t,n){this.color=e,this.depth=t,this.stencil=n}getOverrideClearColor(){return this.overrideClearColor}setOverrideClearColor(e){this.overrideClearColor=e}getOverrideClearAlpha(){return this.overrideClearAlpha}setOverrideClearAlpha(e){this.overrideClearAlpha=e}render(e,t,n,i,r){const o=this.overrideClearColor,s=this.overrideClearAlpha,a=e.getClearAlpha(),l=null!==o,c=s>=0;l?(e.getClearColor(a0),e.setClearColor(o,c?s:a)):c&&e.setClearAlpha(s),e.setRenderTarget(this.renderToScreen?null:t),e.clear(this.color,this.depth,this.stencil),l?e.setClearColor(a0,a):c&&e.setClearAlpha(a)}},XF=class extends Co{constructor(e,t){super("MaskPass",e,t),this.needsSwap=!1,this.clearPass=new lS(!1,!1,!0),this.inverse=!1}set mainScene(e){this.scene=e}set mainCamera(e){this.camera=e}get inverted(){return this.inverse}set inverted(e){this.inverse=e}get clear(){return this.clearPass.enabled}set clear(e){this.clearPass.enabled=e}getClearPass(){return this.clearPass}isInverted(){return this.inverted}setInverted(e){this.inverted=e}render(e,t,n,i,r){const o=e.getContext(),s=e.state.buffers,a=this.scene,l=this.camera,c=this.clearPass,u=this.inverted?0:1,d=1-u;s.color.setMask(!1),s.depth.setMask(!1),s.color.setLocked(!0),s.depth.setLocked(!0),s.stencil.setTest(!0),s.stencil.setOp(o.REPLACE,o.REPLACE,o.REPLACE),s.stencil.setFunc(o.ALWAYS,u,4294967295),s.stencil.setClear(d),s.stencil.setLocked(!0),this.clearPass.enabled&&(this.renderToScreen?c.render(e,null):(c.render(e,t),c.render(e,n))),this.renderToScreen?(e.setRenderTarget(null),e.render(a,l)):(e.setRenderTarget(t),e.render(a,l),e.setRenderTarget(n),e.render(a,l)),s.color.setLocked(!1),s.depth.setLocked(!1),s.stencil.setLocked(!1),s.stencil.setFunc(o.EQUAL,1,4294967295),s.stencil.setOp(o.KEEP,o.KEEP,o.KEEP),s.stencil.setLocked(!0)}},qF=class{constructor(e=null,{depthBuffer:t=!0,stencilBuffer:n=!1,multisampling:i=0,frameBufferType:r}={}){this.renderer=null,this.inputBuffer=this.createBuffer(t,n,r,i),this.outputBuffer=this.inputBuffer.clone(),this.copyPass=new WF,this.depthTexture=null,this.passes=[],this.timer=new kF,this.autoRenderToScreen=!0,this.setRenderer(e)}get multisampling(){return this.inputBuffer.samples||0}set multisampling(e){const t=this.inputBuffer,n=this.multisampling;n>0&&e>0?(this.inputBuffer.samples=e,this.outputBuffer.samples=e,this.inputBuffer.dispose(),this.outputBuffer.dispose()):n!==e&&(this.inputBuffer.dispose(),this.outputBuffer.dispose(),this.inputBuffer=this.createBuffer(t.depthBuffer,t.stencilBuffer,t.texture.type,e),this.inputBuffer.depthTexture=this.depthTexture,this.outputBuffer=this.inputBuffer.clone())}getTimer(){return this.timer}getRenderer(){return this.renderer}setRenderer(e){if(this.renderer=e,null!==e){const t=e.getSize(new tt),n=e.getContext().getContextAttributes().alpha,i=this.inputBuffer.texture.type;i===si&&e.outputColorSpace===fn&&(this.inputBuffer.texture.colorSpace=fn,this.outputBuffer.texture.colorSpace=fn,this.inputBuffer.dispose(),this.outputBuffer.dispose()),e.autoClear=!1,this.setSize(t.width,t.height);for(const t of this.passes)t.initialize(e,n,i)}}replaceRenderer(e,t=!0){const n=this.renderer,i=n.domElement.parentNode;return this.setRenderer(e),t&&null!==i&&(i.removeChild(n.domElement),i.appendChild(e.domElement)),n}createDepthTexture(){const e=this.depthTexture=new Sv;return this.inputBuffer.depthTexture=e,this.inputBuffer.dispose(),this.inputBuffer.stencilBuffer?(e.format=_a,e.type=ba):e.type=xo,e}deleteDepthTexture(){if(null!==this.depthTexture){this.depthTexture.dispose(),this.depthTexture=null,this.inputBuffer.depthTexture=null,this.inputBuffer.dispose();for(const e of this.passes)e.setDepthTexture(null)}}createBuffer(e,t,n,i){const r=this.renderer,o=null===r?new tt:r.getDrawingBufferSize(new tt),s={minFilter:zn,magFilter:zn,stencilBuffer:t,depthBuffer:e,type:n},a=new ji(o.width,o.height,s);return i>0&&(a.ignoreDepthForMultisampleCopy=!1,a.samples=i),n===si&&null!==r&&r.outputColorSpace===fn&&(a.texture.colorSpace=fn),a.texture.name="EffectComposer.Buffer",a.texture.generateMipmaps=!1,a}setMainScene(e){for(const t of this.passes)t.mainScene=e}setMainCamera(e){for(const t of this.passes)t.mainCamera=e}addPass(e,t){const n=this.passes,i=this.renderer,r=i.getDrawingBufferSize(new tt),o=i.getContext().getContextAttributes().alpha,s=this.inputBuffer.texture.type;if(e.setRenderer(i),e.setSize(r.width,r.height),e.initialize(i,o,s),this.autoRenderToScreen&&(n.length>0&&(n[n.length-1].renderToScreen=!1),e.renderToScreen&&(this.autoRenderToScreen=!1)),void 0!==t?n.splice(t,0,e):n.push(e),this.autoRenderToScreen&&(n[n.length-1].renderToScreen=!0),e.needsDepthTexture||null!==this.depthTexture)if(null===this.depthTexture){const t=this.createDepthTexture();for(e of n)e.setDepthTexture(t)}else e.setDepthTexture(this.depthTexture)}removePass(e){const t=this.passes,n=t.indexOf(e);if(-1!==n&&t.splice(n,1).length>0){if(null!==this.depthTexture){const n=(e,t)=>e||t.needsDepthTexture;t.reduce(n,!1)||(e.getDepthTexture()===this.depthTexture&&e.setDepthTexture(null),this.deleteDepthTexture())}this.autoRenderToScreen&&n===t.length&&(e.renderToScreen=!1,t.length>0&&(t[t.length-1].renderToScreen=!0))}}removeAllPasses(){const e=this.passes;this.deleteDepthTexture(),e.length>0&&(this.autoRenderToScreen&&(e[e.length-1].renderToScreen=!1),this.passes=[])}render(e){const t=this.renderer,n=this.copyPass;let i,r,o,s=this.inputBuffer,a=this.outputBuffer,l=!1;
99void 0===e&&(this.timer.update(),e=this.timer.getDelta());for(const c of this.passes)c.enabled&&(c.render(t,s,a,e,l),c.needsSwap&&(l&&(n.renderToScreen=c.renderToScreen,i=t.getContext(),r=t.state.buffers.stencil,r.setFunc(i.NOTEQUAL,1,4294967295),n.render(t,s,a,e,l),r.setFunc(i.EQUAL,1,4294967295)),o=s,s=a,a=o),c instanceof XF?l=!0:c instanceof HF&&(l=!1))}setSize(e,t,n){const i=this.renderer,r=i.getSize(new tt);(void 0===e||void 0===t)&&(e=r.width,t=r.height),(r.width!==e||r.height!==t)&&i.setSize(e,t,n);const o=i.getDrawingBufferSize(new tt);this.inputBuffer.setSize(o.width,o.height),this.outputBuffer.setSize(o.width,o.height);for(const e of this.passes)e.setSize(o.width,o.height)}reset(){this.dispose(),this.autoRenderToScreen=!0}dispose(){for(const e of this.passes)e.dispose();this.passes=[],null!==this.inputBuffer&&this.inputBuffer.dispose(),null!==this.outputBuffer&&this.outputBuffer.dispose(),this.deleteDepthTexture(),this.copyPass.dispose(),this.timer.dispose(),Co.fullscreenGeometry.dispose()}},ns={NONE:0,DEPTH:1,CONVOLUTION:2},Vt={FRAGMENT_HEAD:"FRAGMENT_HEAD",FRAGMENT_MAIN_UV:"FRAGMENT_MAIN_UV",FRAGMENT_MAIN_IMAGE:"FRAGMENT_MAIN_IMAGE",VERTEX_HEAD:"VERTEX_HEAD",VERTEX_MAIN_SUPPORT:"VERTEX_MAIN_SUPPORT"},YF=class{constructor(){this.shaderParts=new Map([[Vt.FRAGMENT_HEAD,null],[Vt.FRAGMENT_MAIN_UV,null],[Vt.FRAGMENT_MAIN_IMAGE,null],[Vt.VERTEX_HEAD,null],[Vt.VERTEX_MAIN_SUPPORT,null]]),this.defines=new Map,this.uniforms=new Map,this.blendModes=new Map,this.extensions=new Set,this.attributes=ns.NONE,this.varyings=new Set,this.uvTransformation=!1,this.readDepth=!1,this.colorSpace=So}},Uh=!1,l0=class{constructor(e=null){this.originalMaterials=new Map,this.material=null,this.materials=null,this.materialsBackSide=null,this.materialsDoubleSide=null,this.materialsFlatShaded=null,this.materialsFlatShadedBackSide=null,this.materialsFlatShadedDoubleSide=null,this.setMaterial(e),this.meshCount=0,this.replaceMaterial=e=>{if(e.isMesh){let t;if(e.material.flatShading)switch(e.material.side){case 2:t=this.materialsFlatShadedDoubleSide;break;case 1:t=this.materialsFlatShadedBackSide;break;default:t=this.materialsFlatShaded}else switch(e.material.side){case 2:t=this.materialsDoubleSide;break;case 1:t=this.materialsBackSide;break;default:t=this.materials}this.originalMaterials.set(e,e.material),e.isSkinnedMesh?e.material=t[2]:e.isInstancedMesh?e.material=t[1]:e.material=t[0],++this.meshCount}}}cloneMaterial(e){if(!(e instanceof Qi))return e.clone();const t=e.uniforms,n=new Map;for(const e in t){const i=t[e].value;i.isRenderTargetTexture&&(t[e].value=null,n.set(e,i))}const i=e.clone();for(const e of n)t[e[0]].value=e[1],i.uniforms[e[0]].value=e[1];return i}setMaterial(e){if(this.disposeMaterials(),this.material=e,null!==e){const t=this.materials=[this.cloneMaterial(e),this.cloneMaterial(e),this.cloneMaterial(e)];for(const n of t)n.uniforms=Object.assign({},e.uniforms),n.side=0;t[2].skinning=!0,this.materialsBackSide=t.map((t=>{const n=this.cloneMaterial(t);return n.uniforms=Object.assign({},e.uniforms),n.side=1,n})),this.materialsDoubleSide=t.map((t=>{const n=this.cloneMaterial(t);return n.uniforms=Object.assign({},e.uniforms),n.side=2,n})),this.materialsFlatShaded=t.map((t=>{const n=this.cloneMaterial(t);return n.uniforms=Object.assign({},e.uniforms),n.flatShading=!0,n})),this.materialsFlatShadedBackSide=t.map((t=>{const n=this.cloneMaterial(t);return n.uniforms=Object.assign({},e.uniforms),n.flatShading=!0,n.side=1,n})),this.materialsFlatShadedDoubleSide=t.map((t=>{const n=this.cloneMaterial(t);return n.uniforms=Object.assign({},e.uniforms),n.flatShading=!0,n.side=2,n}))}}render(e,t,n){const i=e.shadowMap.enabled;if(e.shadowMap.enabled=!1,Uh){const i=this.originalMaterials;this.meshCount=0,t.traverse(this.replaceMaterial),e.render(t,n);for(const e of i)e[0].material=e[1];this.meshCount!==i.size&&i.clear()}else{const i=t.overrideMaterial;t.overrideMaterial=this.material,e.render(t,n),t.overrideMaterial=i}e.shadowMap.enabled=i}disposeMaterials(){if(null!==this.material){const e=this.materials.concat(this.materialsBackSide).concat(this.materialsDoubleSide).concat(this.materialsFlatShaded).concat(this.materialsFlatShadedBackSide).concat(this.materialsFlatShadedDoubleSide);for(const t of e)t.dispose()}}dispose(){this.originalMaterials.clear(),this.disposeMaterials()}static get workaroundEnabled(){return Uh}static set workaroundEnabled(e){Uh=e}},Ot={ADD:0,ALPHA:1,AVERAGE:2,COLOR:3,COLOR_BURN:4,COLOR_DODGE:5,DARKEN:6,DIFFERENCE:7,DIVIDE:8,DST:9,EXCLUSION:10,HARD_LIGHT:11,HARD_MIX:12,HUE:13,INVERT:14,INVERT_RGB:1
995,LIGHTEN:16,LINEAR_BURN:17,LINEAR_DODGE:18,LINEAR_LIGHT:19,LUMINOSITY:20,MULTIPLY:21,NEGATION:22,NORMAL:23,OVERLAY:24,PIN_LIGHT:25,REFLECT:26,SATURATION:27,SCREEN:28,SOFT_LIGHT:29,SRC:30,SUBTRACT:31,VIVID_LIGHT:32},jF="vec4 blend(const in vec4 x,const in vec4 y,const in float opacity){return mix(x,vec4(x.rgb+y.rgb,y.a),opacity);}",KF="vec4 blend(const in vec4 x,const in vec4 y,const in float opacity){return mix(x,y,y.a*opacity);}",QF="vec4 blend(const in vec4 x,const in vec4 y,const in float opacity){return mix(x,vec4((x.rgb+y.rgb)*0.5,y.a),opacity);}",ZF="vec4 blend(const in vec4 x,const in vec4 y,const in float opacity){vec3 xHSL=RGBToHSL(x.rgb);vec3 yHSL=RGBToHSL(y.rgb);vec3 z=HSLToRGB(vec3(yHSL.xy,xHSL.z));return mix(x,vec4(z,y.a),opacity);}",JF="vec4 blend(const in vec4 x,const in vec4 y,const in float opacity){vec3 a=x.rgb,b=y.rgb;vec3 z=mix(step(0.0,b)*(1.0-min(vec3(1.0),(1.0-a)/b)),vec3(1.0),step(1.0,a));return mix(x,vec4(z,y.a),opacity);}",eB="vec4 blend(const in vec4 x,const in vec4 y,const in float opacity){vec3 a=x.rgb,b=y.rgb;vec3 z=step(0.0,a)*mix(min(vec3(1.0),a/max(1.0-b,1e-9)),vec3(1.0),step(1.0,b));return mix(x,vec4(z,y.a),opacity);}",tB="vec4 blend(const in vec4 x,const in vec4 y,const in float opacity){return mix(x,vec4(min(x.rgb,y.rgb),y.a),opacity);}",nB="vec4 blend(const in vec4 x,const in vec4 y,const in float opacity){return mix(x,vec4(abs(x.rgb-y.rgb),y.a),opacity);}",iB="vec4 blend(const in vec4 x,const in vec4 y,const in float opacity){return mix(x,vec4(x.rgb/max(y.rgb,1e-12),y.a),opacity);}",rB="vec4 blend(const in vec4 x,const in vec4 y,const in float opacity){return mix(x,vec4((x.rgb+y.rgb-2.0*x.rgb*y.rgb),y.a),opacity);}",oB="vec4 blend(const in vec4 x,const in vec4 y,const in float opacity){vec3 a=min(x.rgb,1.0);vec3 b=min(y.rgb,1.0);vec3 z=mix(2.0*a*b,1.0-2.0*(1.0-a)*(1.0-b),step(0.5,b));return mix(x,vec4(z,y.a),opacity);}",sB="vec4 blend(const in vec4 x,const in vec4 y,const in float opacity){return mix(x,vec4(step(1.0,x.rgb+y.rgb),y.a),opacity);}",aB="vec4 blend(const in vec4 x,const in vec4 y,const in float opacity){vec3 xHSL=RGBToHSL(x.rgb);vec3 yHSL=RGBToHSL(y.rgb);vec3 z=HSLToRGB(vec3(yHSL.x,xHSL.yz));return mix(x,vec4(z,y.a),opacity);}",lB="vec4 blend(const in vec4 x,const in vec4 y,const in float opacity){return mix(x,vec4(1.0-y.rgb,y.a),opacity);}",cB="vec4 blend(const in vec4 x,const in vec4 y,const in float opacity){return mix(x,vec4(y.rgb*(1.0-x.rgb),y.a),opacity);}",uB="vec4 blend(const in vec4 x,const in vec4 y,const in float opacity){return mix(x,vec4(max(x.rgb,y.rgb),y.a),opacity);}",dB="vec4 blend(const in vec4 x,const in vec4 y,const in float opacity){return mix(x,vec4(clamp(y.rgb+x.rgb-1.
990,0.0,1.0),y.a),opacity);}",fB="vec4 blend(const in vec4 x,const in vec4 y,const in float opacity){return mix(x,vec4(min(x.rgb+y.rgb,1.0),y.a),opacity);}",hB="vec4 blend(const in vec4 x,const in vec4 y,const in float opacity){return mix(x,vec4(clamp(2.0*y.rgb+x.rgb-1.0,0.0,1.0),y.a),opacity);}",pB="vec4 blend(const in vec4 x,const in vec4 y,const in float opacity){vec3 xHSL=RGBToHSL(x.rgb);vec3 yHSL=RGBToHSL(y.rgb);vec3 z=HSLToRGB(vec3(xHSL.xy,yHSL.z));return mix(x,vec4(z,y.a),opacity);}",mB="vec4 blend(const in vec4 x,const in vec4 y,const in float opacity){return mix(x,vec4(x.rgb*y.rgb,y.a),opacity);}",vB="vec4 blend(const in vec4 x,const in vec4 y,const in float opacity){return mix(x,vec4(1.0-abs(1.0-x.rgb-y.rgb),y.a),opacity);}",gB="vec4 blend(const in vec4 x,const in vec4 y,const in float opacity){return mix(x,y,opacity);}",bB="vec4 blend(const in vec4 x,const in vec4 y,const in float opacity){vec3 z=mix(2.0*y.rgb*x.rgb,1.0-2.0*(1.0-y.rgb)*(1.0-x.rgb),step(0.5,x.rgb));return mix(x,vec4(z,y.a),opacity);}",_B="vec4 blend(const in vec4 x,const in vec4 y,const in float opacity){vec3 y2=2.0*y.rgb;vec3 z=mix(mix(y2,x.rgb,step(0.5*x.rgb,y.rgb)),max(y2-1.0,vec3(0.0)),step(x.rgb,y2-1.0));return mix(x,vec4(z,y.a),opacity);}",yB="vec4 blend(const in vec4 x,const in vec4 y,const in float opacity){vec3 z=mix(min(x.rgb*x.rgb/max(1.0-y.rgb,1e-12),1.0),y.rgb,step(1.0,y.rgb));return mix(x,vec4(z,y.a),opacity);}",xB="vec4 blend(const in vec4 x,const in vec4 y,const in float opacity){vec3 xHSL=RGBToHSL(x.rgb);vec3 yHSL=RGBToHSL(y.rgb);vec3 z=HSLToRGB(vec3(xHSL.x,yHSL.y,xHSL.z));return mix(x,vec4(z,y.a),opacity);}",SB="vec4 blend(const in vec4 x,const in vec4 y,const in float opacity){return mix(x,vec4(x.rgb+y.rgb-min(x.rgb*y.rgb,1.0),y.a),opacity);}",EB="vec4 blend(const in vec4 x,const in vec4 y,const in float opacity){vec3 a=x.rgb;vec3 b=y.rgb;vec3 y2=2.0*b;vec3 w=step(0.5,b);vec3 c=a-(1.0-y2)*a*(1.0-a);vec3 d=mix(a+(y2-1.0)*(sqrt(a)-a),a+(y2-1.0)*a*((16.0*a-12.0)*a+3.0),w*(1.0-step(0.25,a)));vec3 z=mix(c,d,w);return mix(x,vec4(z,y.a),opacity);}",wB="vec4 blend(const in vec4 x,const in vec4 y,const in float opacity){return y;}",MB="vec4 blend(const in vec4 x,const in vec4 y,const in float opacity){return mix(x,vec4(max(x.rgb+y.rgb-1.0,0.0),y.a),opacity);}",TB="vec4 blend(const in vec4 x,const in vec4 y,const in float opacity){vec3 z=mix(max(1.0-min((1.0-x.rgb)/(2.0*y.rgb),1.0),0.0),min(x.rgb/(2.0*(1.0-y.rgb)),1.0),step(0.5,y.rgb));return mix(x,vec4(z,y.a),opacity);}",AB=new Map([[Ot.ADD,jF],[Ot.ALPHA,KF],[Ot.AVERAGE,QF],[Ot.COLOR,ZF],[Ot.COLOR_BURN,JF],[Ot.COLOR_DODGE,eB],[Ot.DARKEN,tB],[Ot.DIFFERENCE,nB],[Ot.DIVIDE,iB],[Ot.DST,null],[Ot.EXCLUSION,rB],[Ot.HARD_LIGHT,oB],[Ot.HARD_MIX,sB],[Ot.HUE,aB],[Ot.INVERT,lB],[Ot.INVERT_RGB,cB],[Ot.LIGHTEN,uB],[Ot.LINEAR_BURN,dB],[Ot.LINEAR_DODGE,fB],[Ot.LINEAR_LIGHT,hB],[Ot.LUMINOSITY,pB],[Ot.MULTIPLY,mB],[Ot.NEGATION,vB],[Ot.NORMAL,gB],[Ot.OVERLAY,bB],[Ot.PIN_LIGHT,_B],[Ot.REFLECT,yB],[Ot.SATURATION,xB],[Ot.SCREEN,SB],[Ot.SOFT_LIGHT,EB],[Ot.SRC,wB],[Ot.SUBTRACT,MB],[Ot.VIVID_LIGHT,TB]]),CB=class extends Mo{constructor(e,t=1){super(),this._blendFunction=e,this.opacity=new Dn(t)}getOpacity(){return this.opacity.value}setOpacity(e){this.opacity.value=e}get blendFunction(){return this._blendFunction}set blendFunction(e){this._blendFunction=e,this.dispatchEvent({type:"change"})}getBlendFunction(){return this.blendFunction}setBlendFunction(e){this.blendFunction=e}getShaderCode(){return AB.get(this.blendFunction)}},PB=class extends Mo{constructor(e,t,{attributes:n=ns.NONE,blendFunction:i=Ot.NORMAL,defines:r=new Map,uniforms:o=new Map,extensions:s=null,vertexShader:a=null}={}){super(),this.name=e,this.renderer=null,this.attributes=n,this.fragmentShader=t,this.vertexShader=a,this.defines=r,this.uniforms=o,this.extensions=s,this.blendMode=new CB(i),this.blendMode.addEventListener("change",(e=>this.setChanged())),this._inputColorSpace=So,this._outputColorSpace=""}get inputColorSpace(){return this._inputColorSpace}set inputColorSpace(e){this._inputColorSpace=e,this.setChanged()}get outputColorSpace(){return this._outputColorSpace}
vendor: 9,119 bytes, line 99
99set outputColorSpace(e){this._outputColorSpace=e,this.setChanged()}set mainScene(e){}set mainCamera(e){}getName(){return this.name}setRenderer(e){this.renderer=e}getDefines(){return this.defines}getUniforms(){return this.uniforms}getExtensions(){return this.extensions}getBlendMode(){return this.blendMode}getAttributes(){return this.attributes}setAttributes(e){this.attributes=e,this.setChanged()}getFragmentShader(){return this.fragmentShader}setFragmentShader(e){this.fragmentShader=e,this.setChanged()}getVertexShader(){return this.vertexShader}setVertexShader(e){this.vertexShader=e,this.setChanged()}setChanged(){this.dispatchEvent({type:"change"})}setDepthTexture(e,t=_u){}update(e,t,n){}setSize(e,t){}initialize(e,t,n){}dispose(){for(const e of Object.keys(this)){const t=this[e];(t instanceof ji||t instanceof ms||t instanceof Un||t instanceof Co)&&this[e].dispose()}}},RB=class extends Co{constructor(e,t,n=null){super("RenderPass",e,t),this.needsSwap=!1,this.clearPass=new lS,this.overrideMaterialManager=null===n?null:new l0(n),this.ignoreBackground=!1,this.skipShadowMapUpdate=!1,this.selection=null}set mainScene(e){this.scene=e}set mainCamera(e){this.camera=e}get renderToScreen(){return super.renderToScreen}set renderToScreen(e){super.renderToScreen=e,this.clearPass.renderToScreen=e}get overrideMaterial(){const e=this.overrideMaterialManager;return null!==e?e.material:null}set overrideMaterial(e){const t=this.overrideMaterialManager;null!==e?null!==t?t.setMaterial(e):this.overrideMaterialManager=new l0(e):null!==t&&(t.dispose(),this.overrideMaterialManager=null)}getOverrideMaterial(){return this.overrideMaterial}setOverrideMaterial(e){this.overrideMaterial=e}get clear(){return this.clearPass.enabled}set clear(e){this.clearPass.enabled=e}getSelection(){return this.selection}setSelection(e){this.selection=e}isBackgroundDisabled(){return this.ignoreBackground}setBackgroundDisabled(e){this.ignoreBackground=e}isShadowMapDisabled(){return this.skipShadowMapUpdate}setShadowMapDisabled(e){this.skipShadowMapUpdate=e}getClearPass(){return this.clearPass}render(e,t,n,i,r){const o=this.scene,s=this.camera,a=this.selection,l=s.layers.mask,c=o.background,u=e.shadowMap.autoUpdate,d=this.renderToScreen?null:t;null!==a&&s.layers.set(a.getLayer()),this.skipShadowMapUpdate&&(e.shadowMap.autoUpdate=!1),(this.ignoreBackground||null!==this.clearPass.overrideClearColor)&&(o.background=null),this.clearPass.enabled&&this.clearPass.render(e,t),e.setRenderTarget(d),null!==this.overrideMaterialManager?this.overrideMaterialManager.render(e,o,s):e.render(o,s),s.layers.mask=l,o.background=c,e.shadowMap.autoUpdate=u}},LB="#include <common>\n#include <packing>\n#include <dithering_pars_fragment>\n#define packFloatToRGBA(v) packDepthToRGBA(v)\n#define unpackRGBAToFloat(v) unpackRGBAToDepth(v)\n#ifdef FRAMEBUFFER_PRECISION_HIGH\nuniform mediump sampler2D inputBuffer;\n#else\nuniform lowp sampler2D inputBuffer;\n#endif\n#if DEPTH_PACKING == 3201\nuniform lowp sampler2D depthBuffer;\n#elif defined(GL_FRAGMENT_PRECISION_HIGH)\nuniform highp sampler2D depthBuffer;\n#else\nuniform mediump sampler2D depthBuffer;\n#endif\nuniform vec2 resolution;uniform vec2 texelSize;uniform float cameraNear;uniform float cameraFar;uniform float aspect;uniform float time;varying vec2 vUv;vec4 sRGBToLinear(const in vec4 value){return vec4(mix(pow(value.rgb*0.9478672986+vec3(0.0521327014),vec3(2.4)),value.rgb*0.0773993808,vec3(lessThanEqual(value.rgb,vec3(0.04045)))),value.a);}float readDepth(const in vec2 uv){\n#if DEPTH_PACKING == 3201\nreturn unpackRGBAToDepth(texture2D(depthBuffer,uv));\n#else\nreturn texture2D(depthBuffer,uv).r;\n#endif\n}float getViewZ(const in float depth){\n#ifdef PERSPECTIVE_CAMERA\nreturn perspectiveDepthToViewZ(depth,cameraNear,cameraFar);\n#else\nreturn orthographicDepthToViewZ(depth,cameraNear,cameraFar);\n#endif\n}vec3 RGBToHCV(const in vec3 RGB){vec4 P=mix(vec4(RGB.bg,-1.0,2.0/3.0),vec4(RGB.gb,0.0,-1.0/3.0),step(RGB.b,RGB.g));vec4 Q=mix(vec4(P.xyw,RGB.r),vec4(RGB.r,P.yzx),step(P.x,RGB.r));float C=Q.x-min(Q.w,Q.y);float H=abs((Q.w-Q.y)/(6.0*C+EPSILON)+Q.z);return vec3(H,C,Q.x);}vec3 RGBToHSL(const in vec3 RGB){vec3 HCV=RGBToHCV(RGB);float L=HCV.z-HCV.y*0.5;float S=HCV.y/(1.0-abs(L*2.0-1.0)+EPSILON);return vec3(HCV.x,S,L);}vec3 HueToRGB(const in float H){float R=abs(H*6.0-3.0)-1.0;float G=2.0-abs(H*6.0-2.0);float B=2.0-abs(H*6.0-4.0);return clamp(vec3(R,G,B),0.0,1.0);}vec3 HSLToRGB(const in vec3 HSL){vec3 RGB=HueToRGB(HSL.x);float C=(1.0-abs(2.0*HSL.z-1.0))*HSL.y;return(RGB-0.5)*C+HSL.z;}FRAGMENT_HEAD void main(){FRAGMENT_MAIN_UV vec4 color0=texture2D(inputBuffer,UV);vec4 color1=vec4(0.0);FRAGMENT_MAIN_IMAGE color0.a=clamp(color0.a,0.0,1.0);gl_FragColor=color0;\n#ifdef ENCODE_OUTPUT\n#include <colorspace_fragment>\n#endif\n#include <dithering_fragment>\n}",DB="uniform vec2 resolution;uniform vec2 texelSize;uniform float cameraNear;uniform float cameraFar;uniform float aspect;uniform float time;varying vec2 vUv;VERTEX_HEAD void main(){vUv=position.xy*0.5+0.5;VERTEX_MAIN_SUPPORT gl_Position=vec4(position.xy,1.0,1.0);}",IB=class extends Qi{constructor(e,t,n,i,r=!1){super({name:"EffectMaterial",defines:{THREE_REVISION:yf.replace(/\D+/g,""),DEPTH_PACKING:"0",ENCODE_OUTPUT:"1"},uniforms:{inputBuffer:new Dn(null),depthBuffer:new Dn(null),resolution:new Dn(new tt),texelSize:new Dn(new tt),cameraNear:new Dn(.3),cameraFar:new Dn(1e3),aspect:new Dn(1),time:new Dn(0)},blending:0,toneMapped:!1,depthWrite:!1,depthTest:!1,dithering:r}),e&&this.setShaderParts(e),t&&this.setDefines(t),n&&this.setUniforms(n),this.copyCameraSettings(i)}set inputBuffer(e){this.uniforms.inputBuffer.value=e}setInputBuffer(e){this.uniforms.inputBuffer.value=e}get depthBuffer(){return this.uniforms.depthBuffer.value}set depthBuffer(e){this.uniforms.depthBuffer.value=e}get depthPacking(){return Number(this.defines.DEPTH_PACKING)}set depthPacking(e){this.defines.DEPTH_PACKING=e.toFixed(0),this.needsUpdate=!0}setDepthBuffer(e,t=_u){this.depthBuffer=e,this.depthPacking=t}setShaderData(e){this.setShaderParts(e.shaderParts),this.setDefines(e.defines),this.setUniforms(e.uniforms),this.setExtensions(e.extensions)}setShaderParts(e){return this.fragmentShader=LB.replace(Vt.FRAGMENT_HEAD,e.get(Vt.FRAGMENT_HEAD)||"").replace(Vt.FRAGMENT_MAIN_UV,e.get(Vt.FRAGMENT_MAIN_UV)||"").replace(Vt.FRAGMENT_MAIN_IMAGE,e.get(Vt.FRAGMENT_MAIN_IMAGE)||""),this.vertexShader=DB.replace(Vt.VERTEX_HEAD,e.get(Vt.VERTEX_HEAD)||"").replace(Vt.VERTEX_MAIN_SUPPORT,e.get(Vt.VERTEX_MAIN_SUPPORT)||""),this.needsUpdate=!0,this}setDefines(e){for(const t of e.entries())this.defines[t[0]]=t[1];return this.needsUpdate=!0,this}setUniforms(e){for(const t of e.entries())this.uniforms[t[0]]=t[1];return this}setExtensions(e){this.extensions={};for(const t of e)this.extensions[t]=!0;return this}get encodeOutput(){return void 0!==this.defines.ENCODE_OUTPUT}set encodeOutput(e){this.encodeOutput!==e&&(e?this.defines.ENCODE_OUTPUT="1":delete this.defines.ENCODE_OUTPUT,this.needsUpdate=!0)}isOutputEncodingEnabled(e){return this.encodeOutput}setOutputEncodingEnabled(e){this.encodeOutput=e}get time(){return this.uniforms.time.value}set time(e){this.uniforms.time.value=e}setDeltaTime(e){this.uniforms.time.value+=e}adoptCameraSettings(e){this.copyCameraSettings(e)}copyCameraSettings(e){e&&(this.uniforms.cameraNear.value=e.near,this.uniforms.cameraFar.value=e.far,e instanceof ri?this.defines.PERSPECTIVE_CAMERA="1":delete this.defines.PERSPECTIVE_CAMERA,this.needsUpdate=!0)}setSize(e,t){const n=this.uniforms;n.resolution.value.set(e,t),n.texelSize.value.set(1/e,1/t),n.aspect.value=e/t}static get Section(){return Vt}};function c0(e,t,n){for(const i of t){const t="$1"+e+i.charAt(0).toUpperCase()+i.slice(1),r=new RegExp("([^\\.])(\\b"+i+"\\b)","g");for(const e of n.entries())null!==e[1]&&n.set(e[0],e[1].replace(r,t))}}function NB(e,t,n){let i=t.getFragmentShader(),r=t.getVertexShader();const o=void 0!==i&&/mainImage/.test(i),s=void 0!==i&&/mainUv/.test(i);if(n.attributes|=t.getAttributes(),void 0===i)throw new Error(`Missing fragment shader (${t.name})`);if(s&&n.attributes&ns.CONVOLUTION)throw new Error(`Effects that transform UVs are incompatible with convolution effects (${t.name})`);if(!o&&!s)throw new Error(`Could not find mainImage or mainUv function (${t.name})`);{const a=/\w+\s+(\w+)\([\w\s,]*\)\s*{/g,l=n.shaderParts;let c=l.get(Vt.FRAGMENT_HEAD)||"",u=l.get(Vt.FRAGMENT_MAIN_UV)||"",d=l.get(Vt.FRAGMENT_MAIN_IMAGE)||"",h=l.get(Vt.VERTEX_HEAD)||"",p=l.get(Vt.VERTEX_MAIN_SUPPORT)||"";const f=new Set,m=new Set;if(s&&(u+=`\t${e}MainUv(UV);\n`,n.uvTransformation=!0),null!==r&&/mainSupport/.test(r)){const t=/mainSupport *\([\w\s]*?uv\s*?\)/.test(r);p+=`\t${e}MainSupport(`,p+=t?"vUv);\n":");\n";for(const e of r.matchAll(/(?:varying\s+\w+\s+([\S\s]*?);)/g))for(const t of e[1].split(/\s*,\s*/))n.varyings.add(t),f.add(t),m.add(t);for(const e of r.matchAll(a))m.add(e[1])}for(const e of i.matchAll(a))m.add(e[1]);for(const e of t.defines.keys())m.add(e.replace(/\([\w\s,]*\)/g,""));for(const e of t.uniforms.keys())m.add(e);m.delete("while"),m.delete("for"),m.delete("if"),t.uniforms.forEac
99h(((t,i)=>n.uniforms.set(e+i.charAt(0).toUpperCase()+i.slice(1),t))),t.defines.forEach(((t,i)=>n.defines.set(e+i.charAt(0).toUpperCase()+i.slice(1),t)));const g=new Map([["fragment",i],["vertex",r]]);c0(e,m,n.defines),c0(e,m,g),i=g.get("fragment"),r=g.get("vertex");const v=t.blendMode;if(n.blendModes.set(v.blendFunction,v),o){null!==t.inputColorSpace&&t.inputColorSpace!==n.colorSpace&&(d+=t.inputColorSpace===fn?"color0 = sRGBTransferOETF(color0);\n\t":"color0 = sRGBToLinear(color0);\n\t"),""!==t.outputColorSpace?n.colorSpace=t.outputColorSpace:null!==t.inputColorSpace&&(n.colorSpace=t.inputColorSpace);const r=/MainImage *\([\w\s,]*?depth[\w\s,]*?\)/;d+=`${e}MainImage(color0, UV, `,!!(n.attributes&ns.DEPTH)&&r.test(i)&&(d+="depth, ",n.readDepth=!0),d+="color1);\n\t";const o=e+"BlendOpacity";n.uniforms.set(o,v.opacity),d+=`color0 = blend${v.blendFunction}(color0, color1, ${o});\n\n\t`,c+=`uniform float ${o};\n\n`}if(c+=i+"\n",null!==r&&(h+=r+"\n"),l.set(Vt.FRAGMENT_HEAD,c),l.set(Vt.FRAGMENT_MAIN_UV,u),l.set(Vt.FRAGMENT_MAIN_IMAGE,d),l.set(Vt.VERTEX_HEAD,h),l.set(Vt.VERTEX_MAIN_SUPPORT,p),null!==t.extensions)for(const e of t.extensions)n.extensions.add(e)}}var OB=class extends Co{constructor(e,...t){super("EffectPass"),this.fullscreenMaterial=new IB(null,null,null,e),this.listener=e=>this.handleEvent(e),this.effects=[],this.setEffects(t),this.skipRendering=!1,this.minTime=1,this.maxTime=Number.POSITIVE_INFINITY,this.timeScale=1}set mainScene(e){for(const t of this.effects)t.mainScene=e}set mainCamera(e){this.fullscreenMaterial.copyCameraSettings(e);for(const t of this.effects)t.mainCamera=e}get encodeOutput(){return this.fullscreenMaterial.encodeOutput}set encodeOutput(e){this.fullscreenMaterial.encodeOutput=e}get dithering(){return this.fullscreenMaterial.dithering}set dithering(e){const t=this.fullscreenMaterial;t.dithering=e,t.needsUpdate=!0}setEffects(e){for(const e of this.effects)e.removeEventListener("change",this.listener);this.effects=e.sort(((e,t)=>t.attributes-e.attributes));for(const e of this.effects)e.addEventListener("change",this.listener)}updateMaterial(){const e=new YF;let t=0;for(const n of this.effects)if(n.blendMode.blendFunction===Ot.DST)e.attributes|=n.getAttributes()&ns.DEPTH;else{if(e.attributes&n.getAttributes()&ns.CONVOLUTION)throw new Error(`Convolution effects cannot be merged (${n.name})`);NB("e"+t++,n,e)}let n=e.shaderParts.get(Vt.FRAGMENT_HEAD),i=e.shaderParts.get(Vt.FRAGMENT_MAIN_IMAGE),r=e.shaderParts.get(Vt.FRAGMENT_MAIN_UV);const o=/\bblend\b/g;for(const t of e.blendModes.values())n+=t.getShaderCode().replace(o,`blend${t.blendFunction}`)+"\n";e.attributes&ns.DEPTH?(e.readDepth&&(i="float depth = readDepth(UV);\n\n\t"+i),this.needsDepthTexture=null===this.getDepthTexture()):this.needsDepthTexture=!1,e.colorSpace===fn&&(i+="color0 = sRGBToLinear(color0);\n\t"),e.uvTransformation?(r="vec2 transformedUv = vUv;\n"+r,e.defines.set("UV","transformedUv")):e.defines.set("UV","vUv"),e.shaderParts.set(Vt.FRAGMENT_HEAD,n),e.shaderParts.set(Vt.FRAGMENT_MAIN_IMAGE,i),e.shaderParts.set(Vt.FRAGMENT_MAIN_UV,r);for(const[t,n]of e.shaderParts)null!==n&&e.shaderParts.set(t,n.trim().replace(/^#/,"\n#"));this.skipRendering=0===t,this.needsSwap=!this.skipRendering,this.fullscreenMaterial.setShaderData(e)}recompile(){this.updateMaterial()}getDepthTexture(){return this.fullscreenMaterial.depthBuffer}setDepthTexture(e,t=_u){this.fullscreenMaterial.depthBuffer=e,this.fullscreenMaterial.depthPacking=t;for(const n of this.effects)n.setDepthTexture(e,t)}render(e,t,n,i,r){for(const n of this.effects)n.update(e,t,i);if(!this.skipRendering||this.renderToScreen){const r=this.fullscreenMaterial;r.inputBuffer=t.texture,r.time+=i*this.timeScale,e.setRenderTarget(this.renderToScreen?null:n),e.render(this.scene,this.camera)}}setSize(e,t){this.fullscreenMaterial.setSize(e,t);for(const n of this.effects)n.setSize(e,t)}initialize(e,t,n){this.renderer=e;for(const i of this.effects)i.initialize(e,t,n);this.updateMaterial(),void 0!==n&&n!==si&&(this.fullscreenMaterial.defines.FRAMEBUFFER_PRECISION_HIGH="1")}dispose(){super.dispose();for(const e of this.effects)e.removeEventListener("change",this.listener),e.dispose()}handleEvent(e){if("change"===e.type)this.recompile()}};function UB(e,t=256){var n,i,r,o;const s=e.map((({pos:e,color:t})=>({pos:Ru.clamp(e,0,1),color:new Ut(t)}))).sort(((e,t)=>e.pos-t.pos));if(0!==(null==(n=s[0])?void 0:n.pos)){const e=(null==(i=s[0])?void 0:i.color)??new Ut("#000");s.unshift({pos:0,color:e})}if(1!==(null==(r=s[s.length-1])?void 0:r.pos)){const e=(null==(o=s[s.length-1])?void 0:o.color)??new Ut("#fff");s.push({pos:1,color:e})}const a=new Uint8Array(4*t);for(let e=0;e<t;e++){const n=e/(t-1);let i=0;for(;i<s.length-1&&!(n>=s[i].pos&&n<=s[i+1].pos);)i++;const r=s[i],o=s[i+1],l=o.pos-r.pos,c=0===l?0:(n-r.pos)/l,u=Ru.lerp(r.color.r,o.color.r,c),d=Ru.lerp(r.color.g,o.color.g,c),h=Ru.lerp(r.color.b,o.color.b,c),p=4*e;a[p+0]=Math.round(255*u),a[p+1]=Math.round(255*d),a[p+2]=Math.round(255*h),a[p+3]=255}const l=new $D(a,t,1,Di);return l.magFilter=zn,l.minFilter=zn,l.wrapS=Ur,l.wrapT=Ur,l.needsUpdate=!0,l}const FB="uniform sampler2D tGradient;\nuniform float opacity;\nuniform float strength; // 1 = full gradient map, 0 = original\nuniform float ditherAmount; // small value like 1.0/255.0\n\n// Luminance in simplified sRGB color space.\nfloat luma(vec3 c) {\n\treturn dot(c, vec3(0.2126, 0.7152, 0.0722));\n}\n\n// Tiny hash-based noise (temporal/stable by uv)\nfloat noise(vec2 p) {\n\treturn fract(sin(dot(p, vec2(12.9898, 78.233))) * 43758.5453);\n}\n\nvoid mainImage(const in vec4 inputColor, const in vec2 uv, out vec4 outputColor) {\n\t// Skip transparent pixels completely\n\tif (inputColor.a < 0.01) {\n\t\toutputColor = inputColor;\n\t\treturn;\n\t}\n\n\t// Store original alpha - this will be preserved\n\tfloat originalAlpha = inputColor.a;\n\n\t// compute luminance in [0,1] from RGB only\n\tfloat y = luma(inputColor.rgb);\n\n\t// Simple dithering (no alpha scaling needed)\n\ty = clamp(y + (noise(uv * 512.0) - 0.5) * ditherAmount, 0.0, 1.0);\n\n\t// sample gradient strip at (y, 0.5)\n\tvec3 mapped = texture2D(tGradient, vec2(y, 0.5)).rgb;\n\n\t// Apply gradient map to RGB channels only\n\tvec3 graded = mix(inputColor.rgb, mapped, strength);\n\tvec3 finalRGB = mix(inputColor.rgb, graded, opacity);\n\t\n\t// Always preserve original alpha - this maintains perfect antialiasing\n\toutputColor = vec4(finalRGB, originalAlpha);\n}";class BB extends PB{constructor(e,t){super("GradientMapEffect",FB,{uniforms:new Map([["tGradient",new Dn(e)],["opacity",new Dn((null==t?void 0:t.opacity)??1)],["strength",new Dn((null==t?void 0:t.strength)??1)],["ditherAmount",new Dn((null==t?void 0:t.ditherAmount)??1/255)]])})}setGradientTexture(e){var t;const n=null==(t=this.uniforms.get("tGradient"))?void 0:t.value;n&&n!==e&&n.dispose(),this.uniforms.get("tGradient").value=e}setOpacity(e){this.uniforms.get("opacity").value=e}setStrength(e){this.uniforms.get("strength").value=e}setDitherAmount(e){this.uniforms.get("ditherAmount").value=e}dispose(){var e,t;null==(t=null==(e=this.uniforms.get("tGradient"))?void 0:e.value)||t.dispose(),super.dispose()}}const kB=e=>{const t=UB([{pos:0,color:"#006f29"},{pos:.1,color:"#00a03b"},{pos:.9,color:"#d5fde4"},{pos:1,color:"#F8F8F8"}]);return new BB(t,{opacity:1,strength:1,ditherAmount:1/255})},zB=(e,t,n,i)=>{const r=new qF(e,{multisampling:0});r.addPass(new RB(t,n));const o=kB();return r.addPass(new OB(n,o)),r},HB=(e,t,n,i)=>({main:zB(e,t.main,n.main)}),VB=async e=>{if(!e)return console.warn("Container element is required"),null;const t=aS(e),n=typeof window<"u"?window.scrollY:0,i=J5(),r=eU(t),o=nU(t),s=HB(o,{main:i},{main:r});e.appendChild(o.domElement);const a=rU(r,i,o,(()=>{s.main.render()}));a.start();const l=await UF(i,o,r,t.width,t.height,n);l.start(),a.addUpdatable({tick:l.tick});const c=FF(e,(e=>{tU(r,e),iU(o,e),l.handleResize(e.width,e.height)}));return{dispose:()=>{a.stop(),c.disconnect(),o.dispose(),e.contains(o.domElement)&&e.removeChild(o.domElement)},handleScroll:e=>{l.handleScroll(e)}}};var $B=me('<div class="size-full overflow-hidden"></div>');function cS(e,t){he(t,!0);let n=ie(void 0),i=ie(null),r=null;Rn((()=>
99{if(y(i)&&(y(i).dispose(),X(i,null)),!y(n))return;const e=setTimeout((()=>{if(!y(n))return;VB(y(n)).then((e=>{e&&X(i,e,!0)})).catch(console.error);const e=()=>{y(i)&&y(i).handleScroll(window.scrollY)};r=e,window.addEventListener("scroll",e)}),500);return()=>{clearTimeout(e),y(i)&&(y(i).dispose(),X(i,null)),r&&window.removeEventListener("scroll",r)}}));var o=$B();Xt(o,(e=>X(n,e)),(()=>y(n))),C(e,o),pe()}se(cS,{},[],[],!0);var GB=me('<div aria-hidden="true" class="relative"><div aria-hidden="true" class="h-dvh fixed top-0 inset-x-0 -z-10 bg-[#f8f8f8]"><!></div></div>');function uS(e){var t=GB(),n=ae(t);cS(ae(n),{}),oe(n),oe(t),C(e,t)}function WB(e){uS(e)}se(uS,{},[],[],!0),customElements.define("vision-teva-2025-background",se(WB,{},[],[],!0,Mt()));const Fh=_t({base:"flex flex-col gap-[30px]"});var XB=me("<div><!></div>"),qB=me("<a> <!></a>"),YB=me('<div class="flex flex-col gap-[30px]"><!> <!> <!></div>');function dS(e,t){he(t,!0);let n=L(t,"class",7),i=L(t,"children",7),r=L(t,"heading",7),o=L(t,"viewAllText",7),s=L(t,"viewAllHref",7,"#"),a=L(t,"viewAllTarget",7),l=L(t,"viewAllAriaLabel",7),c=nt(t,["$$slots","$$events","$$legacy","$$host","class","children","heading","viewAllText","viewAllHref","viewAllTarget","viewAllAriaLabel"]);const u=_e((()=>xn(c,Fh.variants))),d=_e((()=>wn(c,Fh.variants)));var h=YB(),p=ae(h),f=e=>{gu(e,{children:(e,t)=>{var n=j();Ue(G(n),(()=>r()??ct)),C(e,n)},$$slots:{default:!0}})};Ke(p,(e=>{r()&&e(f)}));var m=Ge(p,2);yr(m,{size:"main",column:"false",children:(e,t)=>{var r=XB();let o;Ue(ae(r),(()=>i()??ct)),oe(r),et((e=>o=gt(r,o,{class:e,...y(d)})),[()=>Fh({...y(u),className:n()})]),C(e,r)},$$slots:{default:!0}});var g=Ge(m,2),v=e=>{var t=qB();let n;var i=ae(t);gr(Ge(i),{length:"long"}),oe(t),et((e=>{n=gt(t,n,{href:s(),...a()&&{target:a()},...e,class:`${dy} text-core-accent hover:text-core-accent-hover flex flex-col items-start text-lg font-light`}),bn(i,`${o()??""} `)}),[()=>l()&&""!==l().trim()&&{"aria-label":l()}]),C(e,t)};return Ke(g,(e=>{o()&&""!==o().trim()&&e(v)})),oe(h),C(e,h),pe({get class(){return n()},set class(e){n(e),R()},get children(){return i()},set children(e){i(e),R()},get heading(){return r()},set heading(e){r(e),R()},get viewAllText(){return o()},set viewAllText(e){o(e),R()},get viewAllHref(){return s()},set viewAllHref(e="#"){s(e),R()},get viewAllTarget(){return a()},set viewAllTarget(e){a(e),R()},get viewAllAriaLabel(){return l()},set viewAllAriaLabel(e){l(e),R()}})}se(dS,{class:{},children:{},heading:{},viewAllText:{},viewAllHref:{},viewAllTarget:{},viewAllAriaLabel:{}},[],[],!0);const Bh=_t({base:["bg-white border border-gray-200","px-[30px] pb-[30px]","lg:mt-0 lg:pt-10 lg:pr-10 lg:pb-10","transition-shadow relative","[box-shadow:0_0_15px_rgba(0,0,0,0.1)]"].join(" "),variants:{circleSize:{sm:"mt-[30px] pt-[67px]",md:"mt-[60px] pt-[97px]",lg:"mt-[90px] pt-[127px]"}}});var jB=me('<div><div><span> </span> <span> </span></div> <div class="mb-4"><!></div> <a><span class="link-text font-light"> </span> <!></a></div>');function fS(e,t){he(t,!0);let n=L(t,"children",7),i=L(t,"date",23,(()=>new Date)),r=L(t,"showYear",7,!1),o=L(t,"circleSize",7,"sm"),s=L(t,"linkText",7,"Read more"),a=L(t,"locale",7),l=nt(t,["$$slots","$$events","$$legacy","$$host","children","date","showYear","circleSize","linkText","locale"]);const c=_e((()=>xn({...l,circleSize:o()},Bh.variants))),u=_e((()=>wn(l,Bh.variants)));let d=ie("en-US"),h=ie(!1),p=ie(void 0);ut((()=>{typeof document<"u"&&X(d,document.documentElement.lang||"en-US",!0)})),ut((()=>{if(typeof document>"u"||!y(p))return;const e=()=>{X(h,"rtl"===getComputedStyle(y(p)).direction)};e();const t=new MutationObserver(e);return t.observe(document.documentElement,{attributes:!0,attributeFilter:["dir"],subtree:!0}),()=>t.disconnect()}));const f=_e((()=>a()||y(d))),m=_e((()=>((e,t,n)=>{const i=e.toLocaleDateString(n,{month:"short"}),r=e.toLocaleDateString(n,{day:"numeric"}),o=e.toLocaleDateString(n,{year:"numeric"});return t?{top:`${i} ${r}`,bottom:o}:{top:i,bottom:r}})(i(),r(),y(f)))),g=_e((()=>({sm:{size:"min-w-24 min-h-24 w-24 h-24",margin:"lg:ms-12 lg:ps-[calc(3rem+40px)]",fontSize:{withYear:r()?"text-[1.125rem]":"text-[1.625rem]",withoutYear:r()?"text-[0.8125rem]":"text-[1.3125rem]"}},md:{size:"min-w-36 min-h-36 w-36 h-36",margin:"lg:ms-[4.250rem] lg:ps-[calc(4.250rem+40px)]",fontSize:{withYear:r()?"text-[1.9375rem]":"text-[2.4375rem]",withoutYear:r()?"text-[1.46875rem]":"text-[1.9687
995rem]"}},lg:{size:"min-w-52 min-h-52 w-52 h-52",margin:"lg:ms-[6.250rem] lg:ps-[calc(6.250rem+40px)]",fontSize:{withYear:r()?"text-[3rem]":"text-[3.5rem]",withoutYear:r()?"text-[2.34375rem]":"text-[2.84375rem]"}}}[o()])));var v=jB(),b=ae(v),_=ae(b),x=ae(_,!0);oe(_);var S=Ge(_,2),w=ae(S,!0);oe(S),oe(b);var M=Ge(b,2),E=ae(M);ha(E,{context:"card_list_card",children:(e,t)=>{var i=j();Ue(G(i),(()=>n()??ct)),C(e,i)},$$slots:{default:!0}}),oe(M);var T=Ge(M,2);let A;var P=ae(T),N=ae(P,!0);return oe(P),gr(Ge(P,2),{class:"h-4 text-current group-hover:translate-x-1 transition-transform"}),oe(T),oe(v),Xt(v,(e=>X(p,e)),(()=>y(p))),et((e=>{Ft(v,1,e),Ft(b,1,`circle absolute bg-core-support-2 rounded-full flex flex-col items-center justify-center text-white top-0 -translate-y-1/2 start-10 lg:start-0 lg:top-1/2 ${y(h)?"lg:translate-x-1/2":"lg:-translate-x-1/2"} ${y(g).size} p-2`),Ft(_,1,"leading-tight "+(r()?`font-light ${y(g).fontSize.withYear} whitespace-nowrap`:`text-center ${y(g).fontSize.withoutYear}`)),bn(x,y(m).top),Ft(S,1,"leading-tight "+(r()?`font-light ${y(g).fontSize.withoutYear}`:`font-light ${y(g).fontSize.withYear}`)),bn(w,y(m).bottom),A=gt(T,A,{...y(u),class:"inline-flex items-center gap-2 text-core-accent hover:text-core-accent-dark group"}),bn(N,s())}),[()=>`${Bh(y(c))} ${y(g).margin}`]),C(e,v),pe({get children(){return n()},set children(e){n(e),R()},get date(){return i()},set date(e=new Date){i(e),R()},get showYear(){return r()},set showYear(e=!1){r(e),R()},get circleSize(){return o()},set circleSize(e="sm"){o(e),R()},get linkText(){return s()},set linkText(e="Read more"){s(e),R()},get locale(){return a()},set locale(e){a(e),R()}})}se(fS,{children:{},date:{},showYear:{},circleSize:{},linkText:{},locale:{}},[],[],!0);const hS=Object.assign(dS,{Card:fS});function KB(e,t){he(t,!0);const n=L(t,"children",7),i=L(t,"title",7),r=L(t,"viewAllText",7),o=L(t,"viewAllHref",7),s=L(t,"viewAllTarget",7),a=L(t,"viewAllAriaLabel",7),l=nt(t,["$$slots","$$events","$$legacy","$$host","children","title","viewAllText","viewAllHref","viewAllTarget","viewAllAriaLabel"]);return hS(e,Dt({get viewAllText(){return r()},get viewAllHref(){return o()},get viewAllTarget(){return s()},get viewAllAriaLabel(){return a()}},(()=>l),{heading:e=>{var n=j();Wt(G(n),t,"heading",{}),C(e,n)},children:(e,n)=>{var i=j();Wt(G(i),t,"default",{}),C(e,i)},$$slots:{heading:!0,default:!0}})),pe({get children(){return n()},set children(e){n(e),R()},get title(){return i()},set title(e){i(e),R()},get viewAllText(){return r()},set viewAllText(e){r(e),R()},get viewAllHref(){return o()},set viewAllHref(e){o(e),R()},get viewAllTarget(){return s()},set viewAllTarget(e){s(e),R()},get viewAllAriaLabel(){return a()},set viewAllAriaLabel(e){a(e),R()}})}function QB(e,t){he(t,!0);const n=L(t,"children",7),i=L(t,"date",7),r=L(t,"showYear",7),o=L(t,"circleSize",7),s=L(t,"linkText",7),a=nt(t,["$$slots","$$events","$$legacy","$$host","children","date","showYear","circleSize","linkText"]),l=_e((()=>i()?new Date(i()):new Date)),c=_e((()=>
99"true"===r()||""===r())),u=_e((()=>o()||"sm"));var d=j();return Qe(G(d),(()=>hS.Card),((e,n)=>{n(e,Dt({get date(){return y(l)},get showYear(){return y(c)},get circleSize(){return y(u)},get linkText(){return s()}},(()=>a),{children:e=>{var n=j();Wt(G(n),t,"default",{}),C(e,n)},$$slots:{default:!0}}))})),C(e,d),pe({get children(){return n()},set children(e){n(e),R()},get date(){return i()},set date(e){i(e),R()},get showYear(){return r()},set showYear(e){r(e),R()},get circleSize(){return o()},set circleSize(e){o(e),R()},get linkText(){return s()},set linkText(e){s(e),R()}})}customElements.define("vision-cardlist",se(KB,{viewAllText:{attribute:"view-all-text",reflect:!0,type:"String"},viewAllHref:{attribute:"view-all-href",reflect:!0,type:"String"},viewAllTarget:{attribute:"view-all-target",reflect:!0,type:"String"},viewAllAriaLabel:{attribute:"view-all-aria-label",reflect:!0,type:"String"},children:{},title:{}},["heading","default"],[],!0,Mt())),customElements.define("vision-cardlist-card",se(QB,{date:{attribute:"date",reflect:!0,type:"String"},showYear:{attribute:"show-year",reflect:!0,type:"String"},circleSize:{attribute:"circle-size",reflect:!0,type:"String"},linkText:{attribute:"link-text",reflect:!0,type:"String"},href:{attribute:"href",reflect:!0,type:"String"},target:{attribute:"target",reflect:!0,type:"String"},rel:{attribute:"rel",reflect:!0,type:"String"},locale:{attribute:"locale",reflect:!0,type:"String"},children:{}},["default"],[],!0,Mt()));
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.