@widelab-development/pirxey-webflow-dev 0.0.12 → 0.0.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/prx-site.js +1 -1
- package/package.json +1 -1
package/dist/prx-site.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(()=>{function gi(r){if(r===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r}function Dh(r,t){r.prototype=Object.create(t.prototype),r.prototype.constructor=r,r.__proto__=t}var Mn={autoSleep:120,force3D:"auto",nullTargetWarn:1,units:{lineHeight:""}},Qr={duration:.5,overwrite:!1,delay:0},Kl,$e,ye,Nn=1e8,me=1/Nn,kl=Math.PI*2,bm=kl/4,Em=0,Ch=Math.sqrt,wm=Math.cos,Tm=Math.sin,Ue=function(t){return typeof t=="string"},Te=function(t){return typeof t=="function"},xi=function(t){return typeof t=="number"},qa=function(t){return typeof t>"u"},li=function(t){return typeof t=="object"},yn=function(t){return t!==!1},Ql=function(){return typeof window<"u"},Oa=function(t){return Te(t)||Ue(t)},Rh=typeof ArrayBuffer=="function"&&ArrayBuffer.isView||function(){},Ke=Array.isArray,Vl=/(?:-?\.?\d|\.)+/gi,jl=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,_r=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,Ll=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,tc=/[+-]=-?[.\d]+/,Ph=/[^,'"\[\]\s]+/gi,Am=/^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i,be,ai,Hl,ec,Dn={},Va={},Ih,Lh=function(t){return(Va=gr(t,Dn))&&Qe},Ya=function(t,e){return console.warn("Invalid property",t,"set to",e,"Missing plugin? gsap.registerPlugin()")},Ks=function(t,e){return!e&&console.warn(t)},Fh=function(t,e){return t&&(Dn[t]=e)&&Va&&(Va[t]=e)||Dn},Qs=function(){return 0},Dm={suppressEvents:!0,isStart:!0,kill:!1},Ba={suppressEvents:!0,kill:!1},Cm={suppressEvents:!0},nc={},zi=[],Gl={},Uh,xn={},Fl={},Mh=30,za=[],ic="",rc=function(t){var e=t[0],n,i;if(li(e)||Te(e)||(t=[t]),!(n=(e._gsap||{}).harness)){for(i=za.length;i--&&!za[i].targetTest(e););n=za[i]}for(i=t.length;i--;)t[i]&&(t[i]._gsap||(t[i]._gsap=new oc(t[i],n)))||t.splice(i,1);return t},ki=function(t){return t._gsap||rc(On(t))[0]._gsap},sc=function(t,e,n){return(n=t[e])&&Te(n)?t[e]():qa(n)&&t.getAttribute&&t.getAttribute(e)||n},on=function(t,e){return(t=t.split(",")).forEach(e)||t},Ae=function(t){return Math.round(t*1e5)/1e5||0},ke=function(t){return Math.round(t*1e7)/1e7||0},xr=function(t,e){var n=e.charAt(0),i=parseFloat(e.substr(2));return t=parseFloat(t),n==="+"?t+i:n==="-"?t-i:n==="*"?t*i:t/i},Rm=function(t,e){for(var n=e.length,i=0;t.indexOf(e[i])<0&&++i<n;);return i<n},Ha=function(){var t=zi.length,e=zi.slice(0),n,i;for(Gl={},zi.length=0,n=0;n<t;n++)i=e[n],i&&i._lazy&&(i.render(i._lazy[0],i._lazy[1],!0)._lazy=0)},Nh=function(t,e,n,i){zi.length&&!$e&&Ha(),t.render(e,n,i||$e&&e<0&&(t._initted||t._startAt)),zi.length&&!$e&&Ha()},Oh=function(t){var e=parseFloat(t);return(e||e===0)&&(t+"").match(Ph).length<2?e:Ue(t)?t.trim():t},Bh=function(t){return t},Bn=function(t,e){for(var n in e)n in t||(t[n]=e[n]);return t},Pm=function(t){return function(e,n){for(var i in n)i in e||i==="duration"&&t||i==="ease"||(e[i]=n[i])}},gr=function(t,e){for(var n in e)t[n]=e[n];return t},Sh=function r(t,e){for(var n in e)n!=="__proto__"&&n!=="constructor"&&n!=="prototype"&&(t[n]=li(e[n])?r(t[n]||(t[n]={}),e[n]):e[n]);return t},Ga=function(t,e){var n={},i;for(i in t)i in e||(n[i]=t[i]);return n},Zs=function(t){var e=t.parent||be,n=t.keyframes?Pm(Ke(t.keyframes)):Bn;if(yn(t.inherit))for(;e;)n(t,e.vars.defaults),e=e.parent||e._dp;return t},Im=function(t,e){for(var n=t.length,i=n===e.length;i&&n--&&t[n]===e[n];);return n<0},zh=function(t,e,n,i,s){n===void 0&&(n="_first"),i===void 0&&(i="_last");var a=t[i],o;if(s)for(o=e[s];a&&a[s]>o;)a=a._prev;return a?(e._next=a._next,a._next=e):(e._next=t[n],t[n]=e),e._next?e._next._prev=e:t[i]=e,e._prev=a,e.parent=e._dp=t,e},Za=function(t,e,n,i){n===void 0&&(n="_first"),i===void 0&&(i="_last");var s=e._prev,a=e._next;s?s._next=a:t[n]===e&&(t[n]=a),a?a._prev=s:t[i]===e&&(t[i]=s),e._next=e._prev=e.parent=null},Vi=function(t,e){t.parent&&(!e||t.parent.autoRemoveChildren)&&t.parent.remove&&t.parent.remove(t),t._act=0},dr=function(t,e){if(t&&(!e||e._end>t._dur||e._start<0))for(var n=t;n;)n._dirty=1,n=n.parent;return t},Lm=function(t){for(var e=t.parent;e&&e.parent;)e._dirty=1,e.totalDuration(),e=e.parent;return t},Wl=function(t,e,n,i){return t._startAt&&($e?t._startAt.revert(Ba):t.vars.immediateRender&&!t.vars.autoRevert||t._startAt.render(e,!0,i))},Fm=function r(t){return!t||t._ts&&r(t.parent)},bh=function(t){return t._repeat?jr(t._tTime,t=t.duration()+t._rDelay)*t:0},jr=function(t,e){var n=Math.floor(t/=e);return t&&n===t?n-1:n},Wa=function(t,e){return(t-e._start)*e._ts+(e._ts>=0?0:e._dirty?e.totalDuration():e._tDur)},Ja=function(t){return t._end=ke(t._start+(t._tDur/Math.abs(t._ts||t._rts||me)||0))},$a=function(t,e){var n=t._dp;return n&&n.smoothChildTiming&&t._ts&&(t._start=ke(n._time-(t._ts>0?e/t._ts:((t._dirty?t.totalDuration():t._tDur)-e)/-t._ts)),Ja(t),n._dirty||dr(n,t)),t},kh=function(t,e){var n;if((e._time||!e._dur&&e._initted||e._start<t._time&&(e._dur||!e.add))&&(n=Wa(t.rawTime(),e),(!e._dur||ea(0,e.totalDuration(),n)-e._tTime>me)&&e.render(n,!0)),dr(t,e)._dp&&t._initted&&t._time>=t._dur&&t._ts){if(t._dur<t.duration())for(n=t;n._dp;)n.rawTime()>=0&&n.totalTime(n._tTime),n=n._dp;t._zTime=-me}},oi=function(t,e,n,i){return e.parent&&Vi(e),e._start=ke((xi(n)?n:n||t!==be?Un(t,n,e):t._time)+e._delay),e._end=ke(e._start+(e.totalDuration()/Math.abs(e.timeScale())||0)),zh(t,e,"_first","_last",t._sort?"_start":0),Xl(e)||(t._recent=e),i||kh(t,e),t._ts<0&&$a(t,t._tTime),t},Vh=function(t,e){return(Dn.ScrollTrigger||Ya("scrollTrigger",e))&&Dn.ScrollTrigger.create(e,t)},Hh=function(t,e,n,i,s){if(uc(t,e,s),!t._initted)return 1;if(!n&&t._pt&&!$e&&(t._dur&&t.vars.lazy!==!1||!t._dur&&t.vars.lazy)&&Uh!==vn.frame)return zi.push(t),t._lazy=[s,i],1},Um=function r(t){var e=t.parent;return e&&e._ts&&e._initted&&!e._lock&&(e.rawTime()<0||r(e))},Xl=function(t){var e=t.data;return e==="isFromStart"||e==="isStart"},Nm=function(t,e,n,i){var s=t.ratio,a=e<0||!e&&(!t._start&&Um(t)&&!(!t._initted&&Xl(t))||(t._ts<0||t._dp._ts<0)&&!Xl(t))?0:1,o=t._rDelay,l=0,c,u,f;if(o&&t._repeat&&(l=ea(0,t._tDur,e),u=jr(l,o),t._yoyo&&u&1&&(a=1-a),u!==jr(t._tTime,o)&&(s=1-a,t.vars.repeatRefresh&&t._initted&&t.invalidate())),a!==s||$e||i||t._zTime===me||!e&&t._zTime){if(!t._initted&&Hh(t,e,i,n,l))return;for(f=t._zTime,t._zTime=e||(n?me:0),n||(n=e&&!f),t.ratio=a,t._from&&(a=1-a),t._time=0,t._tTime=l,c=t._pt;c;)c.r(a,c.d),c=c._next;e<0&&Wl(t,e,n,!0),t._onUpdate&&!n&&An(t,"onUpdate"),l&&t._repeat&&!n&&t.parent&&An(t,"onRepeat"),(e>=t._tDur||e<0)&&t.ratio===a&&(a&&Vi(t,1),!n&&!$e&&(An(t,a?"onComplete":"onReverseComplete",!0),t._prom&&t._prom()))}else t._zTime||(t._zTime=e)},Om=function(t,e,n){var i;if(n>e)for(i=t._first;i&&i._start<=n;){if(i.data==="isPause"&&i._start>e)return i;i=i._next}else for(i=t._last;i&&i._start>=n;){if(i.data==="isPause"&&i._start<e)return i;i=i._prev}},ts=function(t,e,n,i){var s=t._repeat,a=ke(e)||0,o=t._tTime/t._tDur;return o&&!i&&(t._time*=a/t._dur),t._dur=a,t._tDur=s?s<0?1e10:ke(a*(s+1)+t._rDelay*s):a,o>0&&!i&&$a(t,t._tTime=t._tDur*o),t.parent&&Ja(t),n||dr(t.parent,t),t},Eh=function(t){return t instanceof Xe?dr(t):ts(t,t._dur)},Bm={_start:0,endTime:Qs,totalDuration:Qs},Un=function r(t,e,n){var i=t.labels,s=t._recent||Bm,a=t.duration()>=Nn?s.endTime(!1):t._dur,o,l,c;return Ue(e)&&(isNaN(e)||e in i)?(l=e.charAt(0),c=e.substr(-1)==="%",o=e.indexOf("="),l==="<"||l===">"?(o>=0&&(e=e.replace(/=/,"")),(l==="<"?s._start:s.endTime(s._repeat>=0))+(parseFloat(e.substr(1))||0)*(c?(o<0?s:n).totalDuration()/100:1)):o<0?(e in i||(i[e]=a),i[e]):(l=parseFloat(e.charAt(o-1)+e.substr(o+1)),c&&n&&(l=l/100*(Ke(n)?n[0]:n).totalDuration()),o>1?r(t,e.substr(0,o-1),n)+l:a+l)):e==null?a:+e},Js=function(t,e,n){var i=xi(e[1]),s=(i?2:1)+(t<2?0:1),a=e[s],o,l;if(i&&(a.duration=e[1]),a.parent=n,t){for(o=a,l=n;l&&!("immediateRender"in o);)o=l.vars.defaults||{},l=yn(l.vars.inherit)&&l.parent;a.immediateRender=yn(o.immediateRender),t<2?a.runBackwards=1:a.startAt=e[s-1]}return new Ce(e[0],a,e[s+1])},Hi=function(t,e){return t||t===0?e(t):e},ea=function(t,e,n){return n<t?t:n>e?e:n},qe=function(t,e){return!Ue(t)||!(e=Am.exec(t))?"":e[1]},zm=function(t,e,n){return Hi(n,function(i){return ea(t,e,i)})},ql=[].slice,Gh=function(t,e){return t&&li(t)&&"length"in t&&(!e&&!t.length||t.length-1 in t&&li(t[0]))&&!t.nodeType&&t!==ai},km=function(t,e,n){return n===void 0&&(n=[]),t.forEach(function(i){var s;return Ue(i)&&!e||Gh(i,1)?(s=n).push.apply(s,On(i)):n.push(i)})||n},On=function(t,e,n){return ye&&!e&&ye.selector?ye.selector(t):Ue(t)&&!n&&(Hl||!es())?ql.call((e||ec).querySelectorAll(t),0):Ke(t)?km(t,n):Gh(t)?ql.call(t,0):t?[t]:[]},Yl=function(t){return t=On(t)[0]||Ks("Invalid scope")||{},function(e){var n=t.current||t.nativeElement||t;return On(e,n.querySelectorAll?n:n===t?Ks("Invalid scope")||ec.createElement("div"):t)}},Wh=function(t){return t.sort(function(){return .5-Math.random()})},Xh=function(t){if(Te(t))return t;var e=li(t)?t:{each:t},n=pr(e.ease),i=e.from||0,s=parseFloat(e.base)||0,a={},o=i>0&&i<1,l=isNaN(i)||o,c=e.axis,u=i,f=i;return Ue(i)?u=f={center:.5,edges:.5,end:1}[i]||0:!o&&l&&(u=i[0],f=i[1]),function(h,d,_){var g=(_||e).length,p=a[g],m,S,v,M,D,T,w,P,y;if(!p){if(y=e.grid==="auto"?0:(e.grid||[1,Nn])[1],!y){for(w=-Nn;w<(w=_[y++].getBoundingClientRect().left)&&y<g;);y<g&&y--}for(p=a[g]=[],m=l?Math.min(y,g)*u-.5:i%y,S=y===Nn?0:l?g*f/y-.5:i/y|0,w=0,P=Nn,T=0;T<g;T++)v=T%y-m,M=S-(T/y|0),p[T]=D=c?Math.abs(c==="y"?M:v):Ch(v*v+M*M),D>w&&(w=D),D<P&&(P=D);i==="random"&&Wh(p),p.max=w-P,p.min=P,p.v=g=(parseFloat(e.amount)||parseFloat(e.each)*(y>g?g-1:c?c==="y"?g/y:y:Math.max(y,g/y))||0)*(i==="edges"?-1:1),p.b=g<0?s-g:s,p.u=qe(e.amount||e.each)||0,n=n&&g<0?tf(n):n}return g=(p[h]-p.min)/p.max||0,ke(p.b+(n?n(g):g)*p.v)+p.u}},Zl=function(t){var e=Math.pow(10,((t+"").split(".")[1]||"").length);return function(n){var i=ke(Math.round(parseFloat(n)/t)*t*e);return(i-i%1)/e+(xi(n)?0:qe(n))}},qh=function(t,e){var n=Ke(t),i,s;return!n&&li(t)&&(i=n=t.radius||Nn,t.values?(t=On(t.values),(s=!xi(t[0]))&&(i*=i)):t=Zl(t.increment)),Hi(e,n?Te(t)?function(a){return s=t(a),Math.abs(s-a)<=i?s:a}:function(a){for(var o=parseFloat(s?a.x:a),l=parseFloat(s?a.y:0),c=Nn,u=0,f=t.length,h,d;f--;)s?(h=t[f].x-o,d=t[f].y-l,h=h*h+d*d):h=Math.abs(t[f]-o),h<c&&(c=h,u=f);return u=!i||c<=i?t[u]:a,s||u===a||xi(a)?u:u+qe(a)}:Zl(t))},Yh=function(t,e,n,i){return Hi(Ke(t)?!e:n===!0?!!(n=0):!i,function(){return Ke(t)?t[~~(Math.random()*t.length)]:(n=n||1e-5)&&(i=n<1?Math.pow(10,(n+"").length-2):1)&&Math.floor(Math.round((t-n/2+Math.random()*(e-t+n*.99))/n)*n*i)/i})},Vm=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return function(i){return e.reduce(function(s,a){return a(s)},i)}},Hm=function(t,e){return function(n){return t(parseFloat(n))+(e||qe(n))}},Gm=function(t,e,n){return Jh(t,e,0,1,n)},Zh=function(t,e,n){return Hi(n,function(i){return t[~~e(i)]})},Wm=function r(t,e,n){var i=e-t;return Ke(t)?Zh(t,r(0,t.length),e):Hi(n,function(s){return(i+(s-t)%i)%i+t})},Xm=function r(t,e,n){var i=e-t,s=i*2;return Ke(t)?Zh(t,r(0,t.length-1),e):Hi(n,function(a){return a=(s+(a-t)%s)%s||0,t+(a>i?s-a:a)})},ns=function(t){for(var e=0,n="",i,s,a,o;~(i=t.indexOf("random(",e));)a=t.indexOf(")",i),o=t.charAt(i+7)==="[",s=t.substr(i+7,a-i-7).match(o?Ph:Vl),n+=t.substr(e,i-e)+Yh(o?s:+s[0],o?0:+s[1],+s[2]||1e-5),e=a+1;return n+t.substr(e,t.length-e)},Jh=function(t,e,n,i,s){var a=e-t,o=i-n;return Hi(s,function(l){return n+((l-t)/a*o||0)})},qm=function r(t,e,n,i){var s=isNaN(t+e)?0:function(d){return(1-d)*t+d*e};if(!s){var a=Ue(t),o={},l,c,u,f,h;if(n===!0&&(i=1)&&(n=null),a)t={p:t},e={p:e};else if(Ke(t)&&!Ke(e)){for(u=[],f=t.length,h=f-2,c=1;c<f;c++)u.push(r(t[c-1],t[c]));f--,s=function(_){_*=f;var g=Math.min(h,~~_);return u[g](_-g)},n=e}else i||(t=gr(Ke(t)?[]:{},t));if(!u){for(l in e)lc.call(o,t,l,"get",e[l]);s=function(_){return dc(_,o)||(a?t.p:t)}}}return Hi(n,s)},wh=function(t,e,n){var i=t.labels,s=Nn,a,o,l;for(a in i)o=i[a]-e,o<0==!!n&&o&&s>(o=Math.abs(o))&&(l=a,s=o);return l},An=function(t,e,n){var i=t.vars,s=i[e],a=ye,o=t._ctx,l,c,u;if(s)return l=i[e+"Params"],c=i.callbackScope||t,n&&zi.length&&Ha(),o&&(ye=o),u=l?s.apply(c,l):s.call(c),ye=a,u},qs=function(t){return Vi(t),t.scrollTrigger&&t.scrollTrigger.kill(!!$e),t.progress()<1&&An(t,"onInterrupt"),t},Kr,$h=[],Kh=function(t){if(t)if(t=!t.name&&t.default||t,Ql()||t.headless){var e=t.name,n=Te(t),i=e&&!n&&t.init?function(){this._props=[]}:t,s={init:Qs,render:dc,add:lc,kill:lg,modifier:og,rawVars:0},a={targetTest:0,get:0,getSetter:Ka,aliases:{},register:0};if(es(),t!==i){if(xn[e])return;Bn(i,Bn(Ga(t,s),a)),gr(i.prototype,gr(s,Ga(t,a))),xn[i.prop=e]=i,t.targetTest&&(za.push(i),nc[e]=1),e=(e==="css"?"CSS":e.charAt(0).toUpperCase()+e.substr(1))+"Plugin"}Fh(e,i),t.register&&t.register(Qe,i,ln)}else $h.push(t)},fe=255,Ys={aqua:[0,fe,fe],lime:[0,fe,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,fe],navy:[0,0,128],white:[fe,fe,fe],olive:[128,128,0],yellow:[fe,fe,0],orange:[fe,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[fe,0,0],pink:[fe,192,203],cyan:[0,fe,fe],transparent:[fe,fe,fe,0]},Ul=function(t,e,n){return t+=t<0?1:t>1?-1:0,(t*6<1?e+(n-e)*t*6:t<.5?n:t*3<2?e+(n-e)*(2/3-t)*6:e)*fe+.5|0},Qh=function(t,e,n){var i=t?xi(t)?[t>>16,t>>8&fe,t&fe]:0:Ys.black,s,a,o,l,c,u,f,h,d,_;if(!i){if(t.substr(-1)===","&&(t=t.substr(0,t.length-1)),Ys[t])i=Ys[t];else if(t.charAt(0)==="#"){if(t.length<6&&(s=t.charAt(1),a=t.charAt(2),o=t.charAt(3),t="#"+s+s+a+a+o+o+(t.length===5?t.charAt(4)+t.charAt(4):"")),t.length===9)return i=parseInt(t.substr(1,6),16),[i>>16,i>>8&fe,i&fe,parseInt(t.substr(7),16)/255];t=parseInt(t.substr(1),16),i=[t>>16,t>>8&fe,t&fe]}else if(t.substr(0,3)==="hsl"){if(i=_=t.match(Vl),!e)l=+i[0]%360/360,c=+i[1]/100,u=+i[2]/100,a=u<=.5?u*(c+1):u+c-u*c,s=u*2-a,i.length>3&&(i[3]*=1),i[0]=Ul(l+1/3,s,a),i[1]=Ul(l,s,a),i[2]=Ul(l-1/3,s,a);else if(~t.indexOf("="))return i=t.match(jl),n&&i.length<4&&(i[3]=1),i}else i=t.match(Vl)||Ys.transparent;i=i.map(Number)}return e&&!_&&(s=i[0]/fe,a=i[1]/fe,o=i[2]/fe,f=Math.max(s,a,o),h=Math.min(s,a,o),u=(f+h)/2,f===h?l=c=0:(d=f-h,c=u>.5?d/(2-f-h):d/(f+h),l=f===s?(a-o)/d+(a<o?6:0):f===a?(o-s)/d+2:(s-a)/d+4,l*=60),i[0]=~~(l+.5),i[1]=~~(c*100+.5),i[2]=~~(u*100+.5)),n&&i.length<4&&(i[3]=1),i},jh=function(t){var e=[],n=[],i=-1;return t.split(_i).forEach(function(s){var a=s.match(_r)||[];e.push.apply(e,a),n.push(i+=a.length+1)}),e.c=n,e},Th=function(t,e,n){var i="",s=(t+i).match(_i),a=e?"hsla(":"rgba(",o=0,l,c,u,f;if(!s)return t;if(s=s.map(function(h){return(h=Qh(h,e,1))&&a+(e?h[0]+","+h[1]+"%,"+h[2]+"%,"+h[3]:h.join(","))+")"}),n&&(u=jh(t),l=n.c,l.join(i)!==u.c.join(i)))for(c=t.replace(_i,"1").split(_r),f=c.length-1;o<f;o++)i+=c[o]+(~l.indexOf(o)?s.shift()||a+"0,0,0,0)":(u.length?u:s.length?s:n).shift());if(!c)for(c=t.split(_i),f=c.length-1;o<f;o++)i+=c[o]+s[o];return i+c[f]},_i=function(){var r="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3,4}){1,2}\\b",t;for(t in Ys)r+="|"+t+"\\b";return new RegExp(r+")","gi")}(),Ym=/hsl[a]?\(/,ac=function(t){var e=t.join(" "),n;if(_i.lastIndex=0,_i.test(e))return n=Ym.test(e),t[1]=Th(t[1],n),t[0]=Th(t[0],n,jh(t[1])),!0},js,vn=function(){var r=Date.now,t=500,e=33,n=r(),i=n,s=1e3/240,a=s,o=[],l,c,u,f,h,d,_=function g(p){var m=r()-i,S=p===!0,v,M,D,T;if((m>t||m<0)&&(n+=m-e),i+=m,D=i-n,v=D-a,(v>0||S)&&(T=++f.frame,h=D-f.time*1e3,f.time=D=D/1e3,a+=v+(v>=s?4:s-v),M=1),S||(l=c(g)),M)for(d=0;d<o.length;d++)o[d](D,h,T,p)};return f={time:0,frame:0,tick:function(){_(!0)},deltaRatio:function(p){return h/(1e3/(p||60))},wake:function(){Ih&&(!Hl&&Ql()&&(ai=Hl=window,ec=ai.document||{},Dn.gsap=Qe,(ai.gsapVersions||(ai.gsapVersions=[])).push(Qe.version),Lh(Va||ai.GreenSockGlobals||!ai.gsap&&ai||{}),$h.forEach(Kh)),u=typeof requestAnimationFrame<"u"&&requestAnimationFrame,l&&f.sleep(),c=u||function(p){return setTimeout(p,a-f.time*1e3+1|0)},js=1,_(2))},sleep:function(){(u?cancelAnimationFrame:clearTimeout)(l),js=0,c=Qs},lagSmoothing:function(p,m){t=p||1/0,e=Math.min(m||33,t)},fps:function(p){s=1e3/(p||240),a=f.time*1e3+s},add:function(p,m,S){var v=m?function(M,D,T,w){p(M,D,T,w),f.remove(v)}:p;return f.remove(p),o[S?"unshift":"push"](v),es(),v},remove:function(p,m){~(m=o.indexOf(p))&&o.splice(m,1)&&d>=m&&d--},_listeners:o},f}(),es=function(){return!js&&vn.wake()},ee={},Zm=/^[\d.\-M][\d.\-,\s]/,Jm=/["']/g,$m=function(t){for(var e={},n=t.substr(1,t.length-3).split(":"),i=n[0],s=1,a=n.length,o,l,c;s<a;s++)l=n[s],o=s!==a-1?l.lastIndexOf(","):l.length,c=l.substr(0,o),e[i]=isNaN(c)?c.replace(Jm,"").trim():+c,i=l.substr(o+1).trim();return e},Km=function(t){var e=t.indexOf("(")+1,n=t.indexOf(")"),i=t.indexOf("(",e);return t.substring(e,~i&&i<n?t.indexOf(")",n+1):n)},Qm=function(t){var e=(t+"").split("("),n=ee[e[0]];return n&&e.length>1&&n.config?n.config.apply(null,~t.indexOf("{")?[$m(e[1])]:Km(t).split(",").map(Oh)):ee._CE&&Zm.test(t)?ee._CE("",t):n},tf=function(t){return function(e){return 1-t(1-e)}},ef=function r(t,e){for(var n=t._first,i;n;)n instanceof Xe?r(n,e):n.vars.yoyoEase&&(!n._yoyo||!n._repeat)&&n._yoyo!==e&&(n.timeline?r(n.timeline,e):(i=n._ease,n._ease=n._yEase,n._yEase=i,n._yoyo=e)),n=n._next},pr=function(t,e){return t&&(Te(t)?t:ee[t]||Qm(t))||e},vr=function(t,e,n,i){n===void 0&&(n=function(l){return 1-e(1-l)}),i===void 0&&(i=function(l){return l<.5?e(l*2)/2:1-e((1-l)*2)/2});var s={easeIn:e,easeOut:n,easeInOut:i},a;return on(t,function(o){ee[o]=Dn[o]=s,ee[a=o.toLowerCase()]=n;for(var l in s)ee[a+(l==="easeIn"?".in":l==="easeOut"?".out":".inOut")]=ee[o+"."+l]=s[l]}),s},nf=function(t){return function(e){return e<.5?(1-t(1-e*2))/2:.5+t((e-.5)*2)/2}},Nl=function r(t,e,n){var i=e>=1?e:1,s=(n||(t?.3:.45))/(e<1?e:1),a=s/kl*(Math.asin(1/i)||0),o=function(u){return u===1?1:i*Math.pow(2,-10*u)*Tm((u-a)*s)+1},l=t==="out"?o:t==="in"?function(c){return 1-o(1-c)}:nf(o);return s=kl/s,l.config=function(c,u){return r(t,c,u)},l},Ol=function r(t,e){e===void 0&&(e=1.70158);var n=function(a){return a?--a*a*((e+1)*a+e)+1:0},i=t==="out"?n:t==="in"?function(s){return 1-n(1-s)}:nf(n);return i.config=function(s){return r(t,s)},i};on("Linear,Quad,Cubic,Quart,Quint,Strong",function(r,t){var e=t<5?t+1:t;vr(r+",Power"+(e-1),t?function(n){return Math.pow(n,e)}:function(n){return n},function(n){return 1-Math.pow(1-n,e)},function(n){return n<.5?Math.pow(n*2,e)/2:1-Math.pow((1-n)*2,e)/2})});ee.Linear.easeNone=ee.none=ee.Linear.easeIn;vr("Elastic",Nl("in"),Nl("out"),Nl());(function(r,t){var e=1/t,n=2*e,i=2.5*e,s=function(o){return o<e?r*o*o:o<n?r*Math.pow(o-1.5/t,2)+.75:o<i?r*(o-=2.25/t)*o+.9375:r*Math.pow(o-2.625/t,2)+.984375};vr("Bounce",function(a){return 1-s(1-a)},s)})(7.5625,2.75);vr("Expo",function(r){return r?Math.pow(2,10*(r-1)):0});vr("Circ",function(r){return-(Ch(1-r*r)-1)});vr("Sine",function(r){return r===1?1:-wm(r*bm)+1});vr("Back",Ol("in"),Ol("out"),Ol());ee.SteppedEase=ee.steps=Dn.SteppedEase={config:function(t,e){t===void 0&&(t=1);var n=1/t,i=t+(e?0:1),s=e?1:0,a=1-me;return function(o){return((i*ea(0,a,o)|0)+s)*n}}};Qr.ease=ee["quad.out"];on("onComplete,onUpdate,onStart,onRepeat,onReverseComplete,onInterrupt",function(r){return ic+=r+","+r+"Params,"});var oc=function(t,e){this.id=Em++,t._gsap=this,this.target=t,this.harness=e,this.get=e?e.get:sc,this.set=e?e.getSetter:Ka},ta=function(){function r(e){this.vars=e,this._delay=+e.delay||0,(this._repeat=e.repeat===1/0?-2:e.repeat||0)&&(this._rDelay=e.repeatDelay||0,this._yoyo=!!e.yoyo||!!e.yoyoEase),this._ts=1,ts(this,+e.duration,1,1),this.data=e.data,ye&&(this._ctx=ye,ye.data.push(this)),js||vn.wake()}var t=r.prototype;return t.delay=function(n){return n||n===0?(this.parent&&this.parent.smoothChildTiming&&this.startTime(this._start+n-this._delay),this._delay=n,this):this._delay},t.duration=function(n){return arguments.length?this.totalDuration(this._repeat>0?n+(n+this._rDelay)*this._repeat:n):this.totalDuration()&&this._dur},t.totalDuration=function(n){return arguments.length?(this._dirty=0,ts(this,this._repeat<0?n:(n-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},t.totalTime=function(n,i){if(es(),!arguments.length)return this._tTime;var s=this._dp;if(s&&s.smoothChildTiming&&this._ts){for($a(this,n),!s._dp||s.parent||kh(s,this);s&&s.parent;)s.parent._time!==s._start+(s._ts>=0?s._tTime/s._ts:(s.totalDuration()-s._tTime)/-s._ts)&&s.totalTime(s._tTime,!0),s=s.parent;!this.parent&&this._dp.autoRemoveChildren&&(this._ts>0&&n<this._tDur||this._ts<0&&n>0||!this._tDur&&!n)&&oi(this._dp,this,this._start-this._delay)}return(this._tTime!==n||!this._dur&&!i||this._initted&&Math.abs(this._zTime)===me||!n&&!this._initted&&(this.add||this._ptLookup))&&(this._ts||(this._pTime=n),Nh(this,n,i)),this},t.time=function(n,i){return arguments.length?this.totalTime(Math.min(this.totalDuration(),n+bh(this))%(this._dur+this._rDelay)||(n?this._dur:0),i):this._time},t.totalProgress=function(n,i){return arguments.length?this.totalTime(this.totalDuration()*n,i):this.totalDuration()?Math.min(1,this._tTime/this._tDur):this.rawTime()>0?1:0},t.progress=function(n,i){return arguments.length?this.totalTime(this.duration()*(this._yoyo&&!(this.iteration()&1)?1-n:n)+bh(this),i):this.duration()?Math.min(1,this._time/this._dur):this.rawTime()>0?1:0},t.iteration=function(n,i){var s=this.duration()+this._rDelay;return arguments.length?this.totalTime(this._time+(n-1)*s,i):this._repeat?jr(this._tTime,s)+1:1},t.timeScale=function(n,i){if(!arguments.length)return this._rts===-me?0:this._rts;if(this._rts===n)return this;var s=this.parent&&this._ts?Wa(this.parent._time,this):this._tTime;return this._rts=+n||0,this._ts=this._ps||n===-me?0:this._rts,this.totalTime(ea(-Math.abs(this._delay),this._tDur,s),i!==!1),Ja(this),Lm(this)},t.paused=function(n){return arguments.length?(this._ps!==n&&(this._ps=n,n?(this._pTime=this._tTime||Math.max(-this._delay,this.rawTime()),this._ts=this._act=0):(es(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,this.progress()===1&&Math.abs(this._zTime)!==me&&(this._tTime-=me)))),this):this._ps},t.startTime=function(n){if(arguments.length){this._start=n;var i=this.parent||this._dp;return i&&(i._sort||!this.parent)&&oi(i,this,n-this._delay),this}return this._start},t.endTime=function(n){return this._start+(yn(n)?this.totalDuration():this.duration())/Math.abs(this._ts||1)},t.rawTime=function(n){var i=this.parent||this._dp;return i?n&&(!this._ts||this._repeat&&this._time&&this.totalProgress()<1)?this._tTime%(this._dur+this._rDelay):this._ts?Wa(i.rawTime(n),this):this._tTime:this._tTime},t.revert=function(n){n===void 0&&(n=Cm);var i=$e;return $e=n,(this._initted||this._startAt)&&(this.timeline&&this.timeline.revert(n),this.totalTime(-.01,n.suppressEvents)),this.data!=="nested"&&n.kill!==!1&&this.kill(),$e=i,this},t.globalTime=function(n){for(var i=this,s=arguments.length?n:i.rawTime();i;)s=i._start+s/(Math.abs(i._ts)||1),i=i._dp;return!this.parent&&this._sat?this._sat.globalTime(n):s},t.repeat=function(n){return arguments.length?(this._repeat=n===1/0?-2:n,Eh(this)):this._repeat===-2?1/0:this._repeat},t.repeatDelay=function(n){if(arguments.length){var i=this._time;return this._rDelay=n,Eh(this),i?this.time(i):this}return this._rDelay},t.yoyo=function(n){return arguments.length?(this._yoyo=n,this):this._yoyo},t.seek=function(n,i){return this.totalTime(Un(this,n),yn(i))},t.restart=function(n,i){return this.play().totalTime(n?-this._delay:0,yn(i))},t.play=function(n,i){return n!=null&&this.seek(n,i),this.reversed(!1).paused(!1)},t.reverse=function(n,i){return n!=null&&this.seek(n||this.totalDuration(),i),this.reversed(!0).paused(!1)},t.pause=function(n,i){return n!=null&&this.seek(n,i),this.paused(!0)},t.resume=function(){return this.paused(!1)},t.reversed=function(n){return arguments.length?(!!n!==this.reversed()&&this.timeScale(-this._rts||(n?-me:0)),this):this._rts<0},t.invalidate=function(){return this._initted=this._act=0,this._zTime=-me,this},t.isActive=function(){var n=this.parent||this._dp,i=this._start,s;return!!(!n||this._ts&&this._initted&&n.isActive()&&(s=n.rawTime(!0))>=i&&s<this.endTime(!0)-me)},t.eventCallback=function(n,i,s){var a=this.vars;return arguments.length>1?(i?(a[n]=i,s&&(a[n+"Params"]=s),n==="onUpdate"&&(this._onUpdate=i)):delete a[n],this):a[n]},t.then=function(n){var i=this;return new Promise(function(s){var a=Te(n)?n:Bh,o=function(){var c=i.then;i.then=null,Te(a)&&(a=a(i))&&(a.then||a===i)&&(i.then=c),s(a),i.then=c};i._initted&&i.totalProgress()===1&&i._ts>=0||!i._tTime&&i._ts<0?o():i._prom=o})},t.kill=function(){qs(this)},r}();Bn(ta.prototype,{_time:0,_start:0,_end:0,_tTime:0,_tDur:0,_dirty:0,_repeat:0,_yoyo:!1,parent:null,_initted:!1,_rDelay:0,_ts:1,_dp:0,ratio:0,_zTime:-me,_prom:0,_ps:!1,_rts:1});var Xe=function(r){Dh(t,r);function t(n,i){var s;return n===void 0&&(n={}),s=r.call(this,n)||this,s.labels={},s.smoothChildTiming=!!n.smoothChildTiming,s.autoRemoveChildren=!!n.autoRemoveChildren,s._sort=yn(n.sortChildren),be&&oi(n.parent||be,gi(s),i),n.reversed&&s.reverse(),n.paused&&s.paused(!0),n.scrollTrigger&&Vh(gi(s),n.scrollTrigger),s}var e=t.prototype;return e.to=function(i,s,a){return Js(0,arguments,this),this},e.from=function(i,s,a){return Js(1,arguments,this),this},e.fromTo=function(i,s,a,o){return Js(2,arguments,this),this},e.set=function(i,s,a){return s.duration=0,s.parent=this,Zs(s).repeatDelay||(s.repeat=0),s.immediateRender=!!s.immediateRender,new Ce(i,s,Un(this,a),1),this},e.call=function(i,s,a){return oi(this,Ce.delayedCall(0,i,s),a)},e.staggerTo=function(i,s,a,o,l,c,u){return a.duration=s,a.stagger=a.stagger||o,a.onComplete=c,a.onCompleteParams=u,a.parent=this,new Ce(i,a,Un(this,l)),this},e.staggerFrom=function(i,s,a,o,l,c,u){return a.runBackwards=1,Zs(a).immediateRender=yn(a.immediateRender),this.staggerTo(i,s,a,o,l,c,u)},e.staggerFromTo=function(i,s,a,o,l,c,u,f){return o.startAt=a,Zs(o).immediateRender=yn(o.immediateRender),this.staggerTo(i,s,o,l,c,u,f)},e.render=function(i,s,a){var o=this._time,l=this._dirty?this.totalDuration():this._tDur,c=this._dur,u=i<=0?0:ke(i),f=this._zTime<0!=i<0&&(this._initted||!c),h,d,_,g,p,m,S,v,M,D,T,w;if(this!==be&&u>l&&i>=0&&(u=l),u!==this._tTime||a||f){if(o!==this._time&&c&&(u+=this._time-o,i+=this._time-o),h=u,M=this._start,v=this._ts,m=!v,f&&(c||(o=this._zTime),(i||!s)&&(this._zTime=i)),this._repeat){if(T=this._yoyo,p=c+this._rDelay,this._repeat<-1&&i<0)return this.totalTime(p*100+i,s,a);if(h=ke(u%p),u===l?(g=this._repeat,h=c):(g=~~(u/p),g&&g===u/p&&(h=c,g--),h>c&&(h=c)),D=jr(this._tTime,p),!o&&this._tTime&&D!==g&&this._tTime-D*p-this._dur<=0&&(D=g),T&&g&1&&(h=c-h,w=1),g!==D&&!this._lock){var P=T&&D&1,y=P===(T&&g&1);if(g<D&&(P=!P),o=P?0:u%c?c:u,this._lock=1,this.render(o||(w?0:ke(g*p)),s,!c)._lock=0,this._tTime=u,!s&&this.parent&&An(this,"onRepeat"),this.vars.repeatRefresh&&!w&&(this.invalidate()._lock=1),o&&o!==this._time||m!==!this._ts||this.vars.onRepeat&&!this.parent&&!this._act)return this;if(c=this._dur,l=this._tDur,y&&(this._lock=2,o=P?c:-1e-4,this.render(o,!0),this.vars.repeatRefresh&&!w&&this.invalidate()),this._lock=0,!this._ts&&!m)return this;ef(this,w)}}if(this._hasPause&&!this._forcing&&this._lock<2&&(S=Om(this,ke(o),ke(h)),S&&(u-=h-(h=S._start))),this._tTime=u,this._time=h,this._act=!v,this._initted||(this._onUpdate=this.vars.onUpdate,this._initted=1,this._zTime=i,o=0),!o&&h&&!s&&!g&&(An(this,"onStart"),this._tTime!==u))return this;if(h>=o&&i>=0)for(d=this._first;d;){if(_=d._next,(d._act||h>=d._start)&&d._ts&&S!==d){if(d.parent!==this)return this.render(i,s,a);if(d.render(d._ts>0?(h-d._start)*d._ts:(d._dirty?d.totalDuration():d._tDur)+(h-d._start)*d._ts,s,a),h!==this._time||!this._ts&&!m){S=0,_&&(u+=this._zTime=-me);break}}d=_}else{d=this._last;for(var x=i<0?i:h;d;){if(_=d._prev,(d._act||x<=d._end)&&d._ts&&S!==d){if(d.parent!==this)return this.render(i,s,a);if(d.render(d._ts>0?(x-d._start)*d._ts:(d._dirty?d.totalDuration():d._tDur)+(x-d._start)*d._ts,s,a||$e&&(d._initted||d._startAt)),h!==this._time||!this._ts&&!m){S=0,_&&(u+=this._zTime=x?-me:me);break}}d=_}}if(S&&!s&&(this.pause(),S.render(h>=o?0:-me)._zTime=h>=o?1:-1,this._ts))return this._start=M,Ja(this),this.render(i,s,a);this._onUpdate&&!s&&An(this,"onUpdate",!0),(u===l&&this._tTime>=this.totalDuration()||!u&&o)&&(M===this._start||Math.abs(v)!==Math.abs(this._ts))&&(this._lock||((i||!c)&&(u===l&&this._ts>0||!u&&this._ts<0)&&Vi(this,1),!s&&!(i<0&&!o)&&(u||o||!l)&&(An(this,u===l&&i>=0?"onComplete":"onReverseComplete",!0),this._prom&&!(u<l&&this.timeScale()>0)&&this._prom())))}return this},e.add=function(i,s){var a=this;if(xi(s)||(s=Un(this,s,i)),!(i instanceof ta)){if(Ke(i))return i.forEach(function(o){return a.add(o,s)}),this;if(Ue(i))return this.addLabel(i,s);if(Te(i))i=Ce.delayedCall(0,i);else return this}return this!==i?oi(this,i,s):this},e.getChildren=function(i,s,a,o){i===void 0&&(i=!0),s===void 0&&(s=!0),a===void 0&&(a=!0),o===void 0&&(o=-Nn);for(var l=[],c=this._first;c;)c._start>=o&&(c instanceof Ce?s&&l.push(c):(a&&l.push(c),i&&l.push.apply(l,c.getChildren(!0,s,a)))),c=c._next;return l},e.getById=function(i){for(var s=this.getChildren(1,1,1),a=s.length;a--;)if(s[a].vars.id===i)return s[a]},e.remove=function(i){return Ue(i)?this.removeLabel(i):Te(i)?this.killTweensOf(i):(Za(this,i),i===this._recent&&(this._recent=this._last),dr(this))},e.totalTime=function(i,s){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=ke(vn.time-(this._ts>0?i/this._ts:(this.totalDuration()-i)/-this._ts))),r.prototype.totalTime.call(this,i,s),this._forcing=0,this):this._tTime},e.addLabel=function(i,s){return this.labels[i]=Un(this,s),this},e.removeLabel=function(i){return delete this.labels[i],this},e.addPause=function(i,s,a){var o=Ce.delayedCall(0,s||Qs,a);return o.data="isPause",this._hasPause=1,oi(this,o,Un(this,i))},e.removePause=function(i){var s=this._first;for(i=Un(this,i);s;)s._start===i&&s.data==="isPause"&&Vi(s),s=s._next},e.killTweensOf=function(i,s,a){for(var o=this.getTweensOf(i,a),l=o.length;l--;)Bi!==o[l]&&o[l].kill(i,s);return this},e.getTweensOf=function(i,s){for(var a=[],o=On(i),l=this._first,c=xi(s),u;l;)l instanceof Ce?Rm(l._targets,o)&&(c?(!Bi||l._initted&&l._ts)&&l.globalTime(0)<=s&&l.globalTime(l.totalDuration())>s:!s||l.isActive())&&a.push(l):(u=l.getTweensOf(o,s)).length&&a.push.apply(a,u),l=l._next;return a},e.tweenTo=function(i,s){s=s||{};var a=this,o=Un(a,i),l=s,c=l.startAt,u=l.onStart,f=l.onStartParams,h=l.immediateRender,d,_=Ce.to(a,Bn({ease:s.ease||"none",lazy:!1,immediateRender:!1,time:o,overwrite:"auto",duration:s.duration||Math.abs((o-(c&&"time"in c?c.time:a._time))/a.timeScale())||me,onStart:function(){if(a.pause(),!d){var p=s.duration||Math.abs((o-(c&&"time"in c?c.time:a._time))/a.timeScale());_._dur!==p&&ts(_,p,0,1).render(_._time,!0,!0),d=1}u&&u.apply(_,f||[])}},s));return h?_.render(0):_},e.tweenFromTo=function(i,s,a){return this.tweenTo(s,Bn({startAt:{time:Un(this,i)}},a))},e.recent=function(){return this._recent},e.nextLabel=function(i){return i===void 0&&(i=this._time),wh(this,Un(this,i))},e.previousLabel=function(i){return i===void 0&&(i=this._time),wh(this,Un(this,i),1)},e.currentLabel=function(i){return arguments.length?this.seek(i,!0):this.previousLabel(this._time+me)},e.shiftChildren=function(i,s,a){a===void 0&&(a=0);for(var o=this._first,l=this.labels,c;o;)o._start>=a&&(o._start+=i,o._end+=i),o=o._next;if(s)for(c in l)l[c]>=a&&(l[c]+=i);return dr(this)},e.invalidate=function(i){var s=this._first;for(this._lock=0;s;)s.invalidate(i),s=s._next;return r.prototype.invalidate.call(this,i)},e.clear=function(i){i===void 0&&(i=!0);for(var s=this._first,a;s;)a=s._next,this.remove(s),s=a;return this._dp&&(this._time=this._tTime=this._pTime=0),i&&(this.labels={}),dr(this)},e.totalDuration=function(i){var s=0,a=this,o=a._last,l=Nn,c,u,f;if(arguments.length)return a.timeScale((a._repeat<0?a.duration():a.totalDuration())/(a.reversed()?-i:i));if(a._dirty){for(f=a.parent;o;)c=o._prev,o._dirty&&o.totalDuration(),u=o._start,u>l&&a._sort&&o._ts&&!a._lock?(a._lock=1,oi(a,o,u-o._delay,1)._lock=0):l=u,u<0&&o._ts&&(s-=u,(!f&&!a._dp||f&&f.smoothChildTiming)&&(a._start+=u/a._ts,a._time-=u,a._tTime-=u),a.shiftChildren(-u,!1,-1/0),l=0),o._end>s&&o._ts&&(s=o._end),o=c;ts(a,a===be&&a._time>s?a._time:s,1,1),a._dirty=0}return a._tDur},t.updateRoot=function(i){if(be._ts&&(Nh(be,Wa(i,be)),Uh=vn.frame),vn.frame>=Mh){Mh+=Mn.autoSleep||120;var s=be._first;if((!s||!s._ts)&&Mn.autoSleep&&vn._listeners.length<2){for(;s&&!s._ts;)s=s._next;s||vn.sleep()}}},t}(ta);Bn(Xe.prototype,{_lock:0,_hasPause:0,_forcing:0});var jm=function(t,e,n,i,s,a,o){var l=new ln(this._pt,t,e,0,1,fc,null,s),c=0,u=0,f,h,d,_,g,p,m,S;for(l.b=n,l.e=i,n+="",i+="",(m=~i.indexOf("random("))&&(i=ns(i)),a&&(S=[n,i],a(S,t,e),n=S[0],i=S[1]),h=n.match(Ll)||[];f=Ll.exec(i);)_=f[0],g=i.substring(c,f.index),d?d=(d+1)%5:g.substr(-5)==="rgba("&&(d=1),_!==h[u++]&&(p=parseFloat(h[u-1])||0,l._pt={_next:l._pt,p:g||u===1?g:",",s:p,c:_.charAt(1)==="="?xr(p,_)-p:parseFloat(_)-p,m:d&&d<4?Math.round:0},c=Ll.lastIndex);return l.c=c<i.length?i.substring(c,i.length):"",l.fp=o,(tc.test(i)||m)&&(l.e=0),this._pt=l,l},lc=function(t,e,n,i,s,a,o,l,c,u){Te(i)&&(i=i(s||0,t,a));var f=t[e],h=n!=="get"?n:Te(f)?c?t[e.indexOf("set")||!Te(t["get"+e.substr(3)])?e:"get"+e.substr(3)](c):t[e]():f,d=Te(f)?c?rg:af:hc,_;if(Ue(i)&&(~i.indexOf("random(")&&(i=ns(i)),i.charAt(1)==="="&&(_=xr(h,i)+(qe(h)||0),(_||_===0)&&(i=_))),!u||h!==i||Jl)return!isNaN(h*i)&&i!==""?(_=new ln(this._pt,t,e,+h||0,i-(h||0),typeof f=="boolean"?ag:of,0,d),c&&(_.fp=c),o&&_.modifier(o,this,t),this._pt=_):(!f&&!(e in t)&&Ya(e,i),jm.call(this,t,e,h,i,d,l||Mn.stringFilter,c))},tg=function(t,e,n,i,s){if(Te(t)&&(t=$s(t,s,e,n,i)),!li(t)||t.style&&t.nodeType||Ke(t)||Rh(t))return Ue(t)?$s(t,s,e,n,i):t;var a={},o;for(o in t)a[o]=$s(t[o],s,e,n,i);return a},cc=function(t,e,n,i,s,a){var o,l,c,u;if(xn[t]&&(o=new xn[t]).init(s,o.rawVars?e[t]:tg(e[t],i,s,a,n),n,i,a)!==!1&&(n._pt=l=new ln(n._pt,s,t,0,1,o.render,o,0,o.priority),n!==Kr))for(c=n._ptLookup[n._targets.indexOf(s)],u=o._props.length;u--;)c[o._props[u]]=l;return o},Bi,Jl,uc=function r(t,e,n){var i=t.vars,s=i.ease,a=i.startAt,o=i.immediateRender,l=i.lazy,c=i.onUpdate,u=i.runBackwards,f=i.yoyoEase,h=i.keyframes,d=i.autoRevert,_=t._dur,g=t._startAt,p=t._targets,m=t.parent,S=m&&m.data==="nested"?m.vars.targets:p,v=t._overwrite==="auto"&&!Kl,M=t.timeline,D,T,w,P,y,x,F,I,R,B,G,Z,J;if(M&&(!h||!s)&&(s="none"),t._ease=pr(s,Qr.ease),t._yEase=f?tf(pr(f===!0?s:f,Qr.ease)):0,f&&t._yoyo&&!t._repeat&&(f=t._yEase,t._yEase=t._ease,t._ease=f),t._from=!M&&!!i.runBackwards,!M||h&&!i.stagger){if(I=p[0]?ki(p[0]).harness:0,Z=I&&i[I.prop],D=Ga(i,nc),g&&(g._zTime<0&&g.progress(1),e<0&&u&&o&&!d?g.render(-1,!0):g.revert(u&&_?Ba:Dm),g._lazy=0),a){if(Vi(t._startAt=Ce.set(p,Bn({data:"isStart",overwrite:!1,parent:m,immediateRender:!0,lazy:!g&&yn(l),startAt:null,delay:0,onUpdate:c&&function(){return An(t,"onUpdate")},stagger:0},a))),t._startAt._dp=0,t._startAt._sat=t,e<0&&($e||!o&&!d)&&t._startAt.revert(Ba),o&&_&&e<=0&&n<=0){e&&(t._zTime=e);return}}else if(u&&_&&!g){if(e&&(o=!1),w=Bn({overwrite:!1,data:"isFromStart",lazy:o&&!g&&yn(l),immediateRender:o,stagger:0,parent:m},D),Z&&(w[I.prop]=Z),Vi(t._startAt=Ce.set(p,w)),t._startAt._dp=0,t._startAt._sat=t,e<0&&($e?t._startAt.revert(Ba):t._startAt.render(-1,!0)),t._zTime=e,!o)r(t._startAt,me,me);else if(!e)return}for(t._pt=t._ptCache=0,l=_&&yn(l)||l&&!_,T=0;T<p.length;T++){if(y=p[T],F=y._gsap||rc(p)[T]._gsap,t._ptLookup[T]=B={},Gl[F.id]&&zi.length&&Ha(),G=S===p?T:S.indexOf(y),I&&(R=new I).init(y,Z||D,t,G,S)!==!1&&(t._pt=P=new ln(t._pt,y,R.name,0,1,R.render,R,0,R.priority),R._props.forEach(function(N){B[N]=P}),R.priority&&(x=1)),!I||Z)for(w in D)xn[w]&&(R=cc(w,D,t,G,y,S))?R.priority&&(x=1):B[w]=P=lc.call(t,y,w,"get",D[w],G,S,0,i.stringFilter);t._op&&t._op[T]&&t.kill(y,t._op[T]),v&&t._pt&&(Bi=t,be.killTweensOf(y,B,t.globalTime(e)),J=!t.parent,Bi=0),t._pt&&l&&(Gl[F.id]=1)}x&&pc(t),t._onInit&&t._onInit(t)}t._onUpdate=c,t._initted=(!t._op||t._pt)&&!J,h&&e<=0&&M.render(Nn,!0,!0)},eg=function(t,e,n,i,s,a,o,l){var c=(t._pt&&t._ptCache||(t._ptCache={}))[e],u,f,h,d;if(!c)for(c=t._ptCache[e]=[],h=t._ptLookup,d=t._targets.length;d--;){if(u=h[d][e],u&&u.d&&u.d._pt)for(u=u.d._pt;u&&u.p!==e&&u.fp!==e;)u=u._next;if(!u)return Jl=1,t.vars[e]="+=0",uc(t,o),Jl=0,l?Ks(e+" not eligible for reset"):1;c.push(u)}for(d=c.length;d--;)f=c[d],u=f._pt||f,u.s=(i||i===0)&&!s?i:u.s+(i||0)+a*u.c,u.c=n-u.s,f.e&&(f.e=Ae(n)+qe(f.e)),f.b&&(f.b=u.s+qe(f.b))},ng=function(t,e){var n=t[0]?ki(t[0]).harness:0,i=n&&n.aliases,s,a,o,l;if(!i)return e;s=gr({},e);for(a in i)if(a in s)for(l=i[a].split(","),o=l.length;o--;)s[l[o]]=s[a];return s},ig=function(t,e,n,i){var s=e.ease||i||"power1.inOut",a,o;if(Ke(e))o=n[t]||(n[t]=[]),e.forEach(function(l,c){return o.push({t:c/(e.length-1)*100,v:l,e:s})});else for(a in e)o=n[a]||(n[a]=[]),a==="ease"||o.push({t:parseFloat(t),v:e[a],e:s})},$s=function(t,e,n,i,s){return Te(t)?t.call(e,n,i,s):Ue(t)&&~t.indexOf("random(")?ns(t):t},rf=ic+"repeat,repeatDelay,yoyo,repeatRefresh,yoyoEase,autoRevert",sf={};on(rf+",id,stagger,delay,duration,paused,scrollTrigger",function(r){return sf[r]=1});var Ce=function(r){Dh(t,r);function t(n,i,s,a){var o;typeof i=="number"&&(s.duration=i,i=s,s=null),o=r.call(this,a?i:Zs(i))||this;var l=o.vars,c=l.duration,u=l.delay,f=l.immediateRender,h=l.stagger,d=l.overwrite,_=l.keyframes,g=l.defaults,p=l.scrollTrigger,m=l.yoyoEase,S=i.parent||be,v=(Ke(n)||Rh(n)?xi(n[0]):"length"in i)?[n]:On(n),M,D,T,w,P,y,x,F;if(o._targets=v.length?rc(v):Ks("GSAP target "+n+" not found. https://gsap.com",!Mn.nullTargetWarn)||[],o._ptLookup=[],o._overwrite=d,_||h||Oa(c)||Oa(u)){if(i=o.vars,M=o.timeline=new Xe({data:"nested",defaults:g||{},targets:S&&S.data==="nested"?S.vars.targets:v}),M.kill(),M.parent=M._dp=gi(o),M._start=0,h||Oa(c)||Oa(u)){if(w=v.length,x=h&&Xh(h),li(h))for(P in h)~rf.indexOf(P)&&(F||(F={}),F[P]=h[P]);for(D=0;D<w;D++)T=Ga(i,sf),T.stagger=0,m&&(T.yoyoEase=m),F&&gr(T,F),y=v[D],T.duration=+$s(c,gi(o),D,y,v),T.delay=(+$s(u,gi(o),D,y,v)||0)-o._delay,!h&&w===1&&T.delay&&(o._delay=u=T.delay,o._start+=u,T.delay=0),M.to(y,T,x?x(D,y,v):0),M._ease=ee.none;M.duration()?c=u=0:o.timeline=0}else if(_){Zs(Bn(M.vars.defaults,{ease:"none"})),M._ease=pr(_.ease||i.ease||"none");var I=0,R,B,G;if(Ke(_))_.forEach(function(Z){return M.to(v,Z,">")}),M.duration();else{T={};for(P in _)P==="ease"||P==="easeEach"||ig(P,_[P],T,_.easeEach);for(P in T)for(R=T[P].sort(function(Z,J){return Z.t-J.t}),I=0,D=0;D<R.length;D++)B=R[D],G={ease:B.e,duration:(B.t-(D?R[D-1].t:0))/100*c},G[P]=B.v,M.to(v,G,I),I+=G.duration;M.duration()<c&&M.to({},{duration:c-M.duration()})}}c||o.duration(c=M.duration())}else o.timeline=0;return d===!0&&!Kl&&(Bi=gi(o),be.killTweensOf(v),Bi=0),oi(S,gi(o),s),i.reversed&&o.reverse(),i.paused&&o.paused(!0),(f||!c&&!_&&o._start===ke(S._time)&&yn(f)&&Fm(gi(o))&&S.data!=="nested")&&(o._tTime=-me,o.render(Math.max(0,-u)||0)),p&&Vh(gi(o),p),o}var e=t.prototype;return e.render=function(i,s,a){var o=this._time,l=this._tDur,c=this._dur,u=i<0,f=i>l-me&&!u?l:i<me?0:i,h,d,_,g,p,m,S,v,M;if(!c)Nm(this,i,s,a);else if(f!==this._tTime||!i||a||!this._initted&&this._tTime||this._startAt&&this._zTime<0!==u){if(h=f,v=this.timeline,this._repeat){if(g=c+this._rDelay,this._repeat<-1&&u)return this.totalTime(g*100+i,s,a);if(h=ke(f%g),f===l?(_=this._repeat,h=c):(_=~~(f/g),_&&_===ke(f/g)&&(h=c,_--),h>c&&(h=c)),m=this._yoyo&&_&1,m&&(M=this._yEase,h=c-h),p=jr(this._tTime,g),h===o&&!a&&this._initted&&_===p)return this._tTime=f,this;_!==p&&(v&&this._yEase&&ef(v,m),this.vars.repeatRefresh&&!m&&!this._lock&&this._time!==g&&this._initted&&(this._lock=a=1,this.render(ke(g*_),!0).invalidate()._lock=0))}if(!this._initted){if(Hh(this,u?i:h,a,s,f))return this._tTime=0,this;if(o!==this._time&&!(a&&this.vars.repeatRefresh&&_!==p))return this;if(c!==this._dur)return this.render(i,s,a)}if(this._tTime=f,this._time=h,!this._act&&this._ts&&(this._act=1,this._lazy=0),this.ratio=S=(M||this._ease)(h/c),this._from&&(this.ratio=S=1-S),h&&!o&&!s&&!_&&(An(this,"onStart"),this._tTime!==f))return this;for(d=this._pt;d;)d.r(S,d.d),d=d._next;v&&v.render(i<0?i:v._dur*v._ease(h/this._dur),s,a)||this._startAt&&(this._zTime=i),this._onUpdate&&!s&&(u&&Wl(this,i,s,a),An(this,"onUpdate")),this._repeat&&_!==p&&this.vars.onRepeat&&!s&&this.parent&&An(this,"onRepeat"),(f===this._tDur||!f)&&this._tTime===f&&(u&&!this._onUpdate&&Wl(this,i,!0,!0),(i||!c)&&(f===this._tDur&&this._ts>0||!f&&this._ts<0)&&Vi(this,1),!s&&!(u&&!o)&&(f||o||m)&&(An(this,f===l?"onComplete":"onReverseComplete",!0),this._prom&&!(f<l&&this.timeScale()>0)&&this._prom()))}return this},e.targets=function(){return this._targets},e.invalidate=function(i){return(!i||!this.vars.runBackwards)&&(this._startAt=0),this._pt=this._op=this._onUpdate=this._lazy=this.ratio=0,this._ptLookup=[],this.timeline&&this.timeline.invalidate(i),r.prototype.invalidate.call(this,i)},e.resetTo=function(i,s,a,o,l){js||vn.wake(),this._ts||this.play();var c=Math.min(this._dur,(this._dp._time-this._start)*this._ts),u;return this._initted||uc(this,c),u=this._ease(c/this._dur),eg(this,i,s,a,o,u,c,l)?this.resetTo(i,s,a,o,1):($a(this,0),this.parent||zh(this._dp,this,"_first","_last",this._dp._sort?"_start":0),this.render(0))},e.kill=function(i,s){if(s===void 0&&(s="all"),!i&&(!s||s==="all"))return this._lazy=this._pt=0,this.parent?qs(this):this;if(this.timeline){var a=this.timeline.totalDuration();return this.timeline.killTweensOf(i,s,Bi&&Bi.vars.overwrite!==!0)._first||qs(this),this.parent&&a!==this.timeline.totalDuration()&&ts(this,this._dur*this.timeline._tDur/a,0,1),this}var o=this._targets,l=i?On(i):o,c=this._ptLookup,u=this._pt,f,h,d,_,g,p,m;if((!s||s==="all")&&Im(o,l))return s==="all"&&(this._pt=0),qs(this);for(f=this._op=this._op||[],s!=="all"&&(Ue(s)&&(g={},on(s,function(S){return g[S]=1}),s=g),s=ng(o,s)),m=o.length;m--;)if(~l.indexOf(o[m])){h=c[m],s==="all"?(f[m]=s,_=h,d={}):(d=f[m]=f[m]||{},_=s);for(g in _)p=h&&h[g],p&&((!("kill"in p.d)||p.d.kill(g)===!0)&&Za(this,p,"_pt"),delete h[g]),d!=="all"&&(d[g]=1)}return this._initted&&!this._pt&&u&&qs(this),this},t.to=function(i,s){return new t(i,s,arguments[2])},t.from=function(i,s){return Js(1,arguments)},t.delayedCall=function(i,s,a,o){return new t(s,0,{immediateRender:!1,lazy:!1,overwrite:!1,delay:i,onComplete:s,onReverseComplete:s,onCompleteParams:a,onReverseCompleteParams:a,callbackScope:o})},t.fromTo=function(i,s,a){return Js(2,arguments)},t.set=function(i,s){return s.duration=0,s.repeatDelay||(s.repeat=0),new t(i,s)},t.killTweensOf=function(i,s,a){return be.killTweensOf(i,s,a)},t}(ta);Bn(Ce.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0});on("staggerTo,staggerFrom,staggerFromTo",function(r){Ce[r]=function(){var t=new Xe,e=ql.call(arguments,0);return e.splice(r==="staggerFromTo"?5:4,0,0),t[r].apply(t,e)}});var hc=function(t,e,n){return t[e]=n},af=function(t,e,n){return t[e](n)},rg=function(t,e,n,i){return t[e](i.fp,n)},sg=function(t,e,n){return t.setAttribute(e,n)},Ka=function(t,e){return Te(t[e])?af:qa(t[e])&&t.setAttribute?sg:hc},of=function(t,e){return e.set(e.t,e.p,Math.round((e.s+e.c*t)*1e6)/1e6,e)},ag=function(t,e){return e.set(e.t,e.p,!!(e.s+e.c*t),e)},fc=function(t,e){var n=e._pt,i="";if(!t&&e.b)i=e.b;else if(t===1&&e.e)i=e.e;else{for(;n;)i=n.p+(n.m?n.m(n.s+n.c*t):Math.round((n.s+n.c*t)*1e4)/1e4)+i,n=n._next;i+=e.c}e.set(e.t,e.p,i,e)},dc=function(t,e){for(var n=e._pt;n;)n.r(t,n.d),n=n._next},og=function(t,e,n,i){for(var s=this._pt,a;s;)a=s._next,s.p===i&&s.modifier(t,e,n),s=a},lg=function(t){for(var e=this._pt,n,i;e;)i=e._next,e.p===t&&!e.op||e.op===t?Za(this,e,"_pt"):e.dep||(n=1),e=i;return!n},cg=function(t,e,n,i){i.mSet(t,e,i.m.call(i.tween,n,i.mt),i)},pc=function(t){for(var e=t._pt,n,i,s,a;e;){for(n=e._next,i=s;i&&i.pr>e.pr;)i=i._next;(e._prev=i?i._prev:a)?e._prev._next=e:s=e,(e._next=i)?i._prev=e:a=e,e=n}t._pt=s},ln=function(){function r(e,n,i,s,a,o,l,c,u){this.t=n,this.s=s,this.c=a,this.p=i,this.r=o||of,this.d=l||this,this.set=c||hc,this.pr=u||0,this._next=e,e&&(e._prev=this)}var t=r.prototype;return t.modifier=function(n,i,s){this.mSet=this.mSet||this.set,this.set=cg,this.m=n,this.mt=s,this.tween=i},r}();on(ic+"parent,duration,ease,delay,overwrite,runBackwards,startAt,yoyo,immediateRender,repeat,repeatDelay,data,paused,reversed,lazy,callbackScope,stringFilter,id,yoyoEase,stagger,inherit,repeatRefresh,keyframes,autoRevert,scrollTrigger",function(r){return nc[r]=1});Dn.TweenMax=Dn.TweenLite=Ce;Dn.TimelineLite=Dn.TimelineMax=Xe;be=new Xe({sortChildren:!1,defaults:Qr,autoRemoveChildren:!0,id:"root",smoothChildTiming:!0});Mn.stringFilter=ac;var mr=[],ka={},ug=[],Ah=0,hg=0,Bl=function(t){return(ka[t]||ug).map(function(e){return e()})},$l=function(){var t=Date.now(),e=[];t-Ah>2&&(Bl("matchMediaInit"),mr.forEach(function(n){var i=n.queries,s=n.conditions,a,o,l,c;for(o in i)a=ai.matchMedia(i[o]).matches,a&&(l=1),a!==s[o]&&(s[o]=a,c=1);c&&(n.revert(),l&&e.push(n))}),Bl("matchMediaRevert"),e.forEach(function(n){return n.onMatch(n,function(i){return n.add(null,i)})}),Ah=t,Bl("matchMedia"))},lf=function(){function r(e,n){this.selector=n&&Yl(n),this.data=[],this._r=[],this.isReverted=!1,this.id=hg++,e&&this.add(e)}var t=r.prototype;return t.add=function(n,i,s){Te(n)&&(s=i,i=n,n=Te);var a=this,o=function(){var c=ye,u=a.selector,f;return c&&c!==a&&c.data.push(a),s&&(a.selector=Yl(s)),ye=a,f=i.apply(a,arguments),Te(f)&&a._r.push(f),ye=c,a.selector=u,a.isReverted=!1,f};return a.last=o,n===Te?o(a,function(l){return a.add(null,l)}):n?a[n]=o:o},t.ignore=function(n){var i=ye;ye=null,n(this),ye=i},t.getTweens=function(){var n=[];return this.data.forEach(function(i){return i instanceof r?n.push.apply(n,i.getTweens()):i instanceof Ce&&!(i.parent&&i.parent.data==="nested")&&n.push(i)}),n},t.clear=function(){this._r.length=this.data.length=0},t.kill=function(n,i){var s=this;if(n?function(){for(var o=s.getTweens(),l=s.data.length,c;l--;)c=s.data[l],c.data==="isFlip"&&(c.revert(),c.getChildren(!0,!0,!1).forEach(function(u){return o.splice(o.indexOf(u),1)}));for(o.map(function(u){return{g:u._dur||u._delay||u._sat&&!u._sat.vars.immediateRender?u.globalTime(0):-1/0,t:u}}).sort(function(u,f){return f.g-u.g||-1/0}).forEach(function(u){return u.t.revert(n)}),l=s.data.length;l--;)c=s.data[l],c instanceof Xe?c.data!=="nested"&&(c.scrollTrigger&&c.scrollTrigger.revert(),c.kill()):!(c instanceof Ce)&&c.revert&&c.revert(n);s._r.forEach(function(u){return u(n,s)}),s.isReverted=!0}():this.data.forEach(function(o){return o.kill&&o.kill()}),this.clear(),i)for(var a=mr.length;a--;)mr[a].id===this.id&&mr.splice(a,1)},t.revert=function(n){this.kill(n||{})},r}(),fg=function(){function r(e){this.contexts=[],this.scope=e,ye&&ye.data.push(this)}var t=r.prototype;return t.add=function(n,i,s){li(n)||(n={matches:n});var a=new lf(0,s||this.scope),o=a.conditions={},l,c,u;ye&&!a.selector&&(a.selector=ye.selector),this.contexts.push(a),i=a.add("onMatch",i),a.queries=n;for(c in n)c==="all"?u=1:(l=ai.matchMedia(n[c]),l&&(mr.indexOf(a)<0&&mr.push(a),(o[c]=l.matches)&&(u=1),l.addListener?l.addListener($l):l.addEventListener("change",$l)));return u&&i(a,function(f){return a.add(null,f)}),this},t.revert=function(n){this.kill(n||{})},t.kill=function(n){this.contexts.forEach(function(i){return i.kill(n,!0)})},r}(),Xa={registerPlugin:function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];e.forEach(function(i){return Kh(i)})},timeline:function(t){return new Xe(t)},getTweensOf:function(t,e){return be.getTweensOf(t,e)},getProperty:function(t,e,n,i){Ue(t)&&(t=On(t)[0]);var s=ki(t||{}).get,a=n?Bh:Oh;return n==="native"&&(n=""),t&&(e?a((xn[e]&&xn[e].get||s)(t,e,n,i)):function(o,l,c){return a((xn[o]&&xn[o].get||s)(t,o,l,c))})},quickSetter:function(t,e,n){if(t=On(t),t.length>1){var i=t.map(function(u){return Qe.quickSetter(u,e,n)}),s=i.length;return function(u){for(var f=s;f--;)i[f](u)}}t=t[0]||{};var a=xn[e],o=ki(t),l=o.harness&&(o.harness.aliases||{})[e]||e,c=a?function(u){var f=new a;Kr._pt=0,f.init(t,n?u+n:u,Kr,0,[t]),f.render(1,f),Kr._pt&&dc(1,Kr)}:o.set(t,l);return a?c:function(u){return c(t,l,n?u+n:u,o,1)}},quickTo:function(t,e,n){var i,s=Qe.to(t,gr((i={},i[e]="+=0.1",i.paused=!0,i),n||{})),a=function(l,c,u){return s.resetTo(e,l,c,u)};return a.tween=s,a},isTweening:function(t){return be.getTweensOf(t,!0).length>0},defaults:function(t){return t&&t.ease&&(t.ease=pr(t.ease,Qr.ease)),Sh(Qr,t||{})},config:function(t){return Sh(Mn,t||{})},registerEffect:function(t){var e=t.name,n=t.effect,i=t.plugins,s=t.defaults,a=t.extendTimeline;(i||"").split(",").forEach(function(o){return o&&!xn[o]&&!Dn[o]&&Ks(e+" effect requires "+o+" plugin.")}),Fl[e]=function(o,l,c){return n(On(o),Bn(l||{},s),c)},a&&(Xe.prototype[e]=function(o,l,c){return this.add(Fl[e](o,li(l)?l:(c=l)&&{},this),c)})},registerEase:function(t,e){ee[t]=pr(e)},parseEase:function(t,e){return arguments.length?pr(t,e):ee},getById:function(t){return be.getById(t)},exportRoot:function(t,e){t===void 0&&(t={});var n=new Xe(t),i,s;for(n.smoothChildTiming=yn(t.smoothChildTiming),be.remove(n),n._dp=0,n._time=n._tTime=be._time,i=be._first;i;)s=i._next,(e||!(!i._dur&&i instanceof Ce&&i.vars.onComplete===i._targets[0]))&&oi(n,i,i._start-i._delay),i=s;return oi(be,n,0),n},context:function(t,e){return t?new lf(t,e):ye},matchMedia:function(t){return new fg(t)},matchMediaRefresh:function(){return mr.forEach(function(t){var e=t.conditions,n,i;for(i in e)e[i]&&(e[i]=!1,n=1);n&&t.revert()})||$l()},addEventListener:function(t,e){var n=ka[t]||(ka[t]=[]);~n.indexOf(e)||n.push(e)},removeEventListener:function(t,e){var n=ka[t],i=n&&n.indexOf(e);i>=0&&n.splice(i,1)},utils:{wrap:Wm,wrapYoyo:Xm,distribute:Xh,random:Yh,snap:qh,normalize:Gm,getUnit:qe,clamp:zm,splitColor:Qh,toArray:On,selector:Yl,mapRange:Jh,pipe:Vm,unitize:Hm,interpolate:qm,shuffle:Wh},install:Lh,effects:Fl,ticker:vn,updateRoot:Xe.updateRoot,plugins:xn,globalTimeline:be,core:{PropTween:ln,globals:Fh,Tween:Ce,Timeline:Xe,Animation:ta,getCache:ki,_removeLinkedListItem:Za,reverting:function(){return $e},context:function(t){return t&&ye&&(ye.data.push(t),t._ctx=ye),ye},suppressOverwrites:function(t){return Kl=t}}};on("to,from,fromTo,delayedCall,set,killTweensOf",function(r){return Xa[r]=Ce[r]});vn.add(Xe.updateRoot);Kr=Xa.to({},{duration:0});var dg=function(t,e){for(var n=t._pt;n&&n.p!==e&&n.op!==e&&n.fp!==e;)n=n._next;return n},pg=function(t,e){var n=t._targets,i,s,a;for(i in e)for(s=n.length;s--;)a=t._ptLookup[s][i],a&&(a=a.d)&&(a._pt&&(a=dg(a,i)),a&&a.modifier&&a.modifier(e[i],t,n[s],i))},zl=function(t,e){return{name:t,rawVars:1,init:function(i,s,a){a._onInit=function(o){var l,c;if(Ue(s)&&(l={},on(s,function(u){return l[u]=1}),s=l),e){l={};for(c in s)l[c]=e(s[c]);s=l}pg(o,s)}}}},Qe=Xa.registerPlugin({name:"attr",init:function(t,e,n,i,s){var a,o,l;this.tween=n;for(a in e)l=t.getAttribute(a)||"",o=this.add(t,"setAttribute",(l||0)+"",e[a],i,s,0,0,a),o.op=a,o.b=l,this._props.push(a)},render:function(t,e){for(var n=e._pt;n;)$e?n.set(n.t,n.p,n.b,n):n.r(t,n.d),n=n._next}},{name:"endArray",init:function(t,e){for(var n=e.length;n--;)this.add(t,n,t[n]||0,e[n],0,0,0,0,0,1)}},zl("roundProps",Zl),zl("modifiers"),zl("snap",qh))||Xa;Ce.version=Xe.version=Qe.version="3.12.5";Ih=1;Ql()&&es();var mg=ee.Power0,gg=ee.Power1,_g=ee.Power2,xg=ee.Power3,vg=ee.Power4,yg=ee.Linear,Mg=ee.Quad,Sg=ee.Cubic,bg=ee.Quart,Eg=ee.Quint,wg=ee.Strong,Tg=ee.Elastic,Ag=ee.Back,Dg=ee.SteppedEase,Cg=ee.Bounce,Rg=ee.Sine,Pg=ee.Expo,Ig=ee.Circ;var cf,Gi,rs,Mc,br,Lg,uf,Sc,Fg=function(){return typeof window<"u"},yi={},Sr=180/Math.PI,ss=Math.PI/180,is=Math.atan2,hf=1e8,bc=/([A-Z])/g,Ug=/(left|right|width|margin|padding|x)/i,Ng=/[\s,\(]\S/,ci={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},_c=function(t,e){return e.set(e.t,e.p,Math.round((e.s+e.c*t)*1e4)/1e4+e.u,e)},Og=function(t,e){return e.set(e.t,e.p,t===1?e.e:Math.round((e.s+e.c*t)*1e4)/1e4+e.u,e)},Bg=function(t,e){return e.set(e.t,e.p,t?Math.round((e.s+e.c*t)*1e4)/1e4+e.u:e.b,e)},zg=function(t,e){var n=e.s+e.c*t;e.set(e.t,e.p,~~(n+(n<0?-.5:.5))+e.u,e)},xf=function(t,e){return e.set(e.t,e.p,t?e.e:e.b,e)},vf=function(t,e){return e.set(e.t,e.p,t!==1?e.b:e.e,e)},kg=function(t,e,n){return t.style[e]=n},Vg=function(t,e,n){return t.style.setProperty(e,n)},Hg=function(t,e,n){return t._gsap[e]=n},Gg=function(t,e,n){return t._gsap.scaleX=t._gsap.scaleY=n},Wg=function(t,e,n,i,s){var a=t._gsap;a.scaleX=a.scaleY=n,a.renderTransform(s,a)},Xg=function(t,e,n,i,s){var a=t._gsap;a[e]=n,a.renderTransform(s,a)},Ee="transform",Sn=Ee+"Origin",qg=function r(t,e){var n=this,i=this.target,s=i.style,a=i._gsap;if(t in yi&&s){if(this.tfm=this.tfm||{},t!=="transform")t=ci[t]||t,~t.indexOf(",")?t.split(",").forEach(function(o){return n.tfm[o]=vi(i,o)}):this.tfm[t]=a.x?a[t]:vi(i,t),t===Sn&&(this.tfm.zOrigin=a.zOrigin);else return ci.transform.split(",").forEach(function(o){return r.call(n,o,e)});if(this.props.indexOf(Ee)>=0)return;a.svg&&(this.svgo=i.getAttribute("data-svg-origin"),this.props.push(Sn,e,"")),t=Ee}(s||e)&&this.props.push(t,e,s[t])},yf=function(t){t.translate&&(t.removeProperty("translate"),t.removeProperty("scale"),t.removeProperty("rotate"))},Yg=function(){var t=this.props,e=this.target,n=e.style,i=e._gsap,s,a;for(s=0;s<t.length;s+=3)t[s+1]?e[t[s]]=t[s+2]:t[s+2]?n[t[s]]=t[s+2]:n.removeProperty(t[s].substr(0,2)==="--"?t[s]:t[s].replace(bc,"-$1").toLowerCase());if(this.tfm){for(a in this.tfm)i[a]=this.tfm[a];i.svg&&(i.renderTransform(),e.setAttribute("data-svg-origin",this.svgo||"")),s=Sc(),(!s||!s.isStart)&&!n[Ee]&&(yf(n),i.zOrigin&&n[Sn]&&(n[Sn]+=" "+i.zOrigin+"px",i.zOrigin=0,i.renderTransform()),i.uncache=1)}},Mf=function(t,e){var n={target:t,props:[],revert:Yg,save:qg};return t._gsap||Qe.core.getCache(t),e&&e.split(",").forEach(function(i){return n.save(i)}),n},Sf,xc=function(t,e){var n=Gi.createElementNS?Gi.createElementNS((e||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),t):Gi.createElement(t);return n&&n.style?n:Gi.createElement(t)},ui=function r(t,e,n){var i=getComputedStyle(t);return i[e]||i.getPropertyValue(e.replace(bc,"-$1").toLowerCase())||i.getPropertyValue(e)||!n&&r(t,as(e)||e,1)||""},ff="O,Moz,ms,Ms,Webkit".split(","),as=function(t,e,n){var i=e||br,s=i.style,a=5;if(t in s&&!n)return t;for(t=t.charAt(0).toUpperCase()+t.substr(1);a--&&!(ff[a]+t in s););return a<0?null:(a===3?"ms":a>=0?ff[a]:"")+t},vc=function(){Fg()&&window.document&&(cf=window,Gi=cf.document,rs=Gi.documentElement,br=xc("div")||{style:{}},Lg=xc("div"),Ee=as(Ee),Sn=Ee+"Origin",br.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",Sf=!!as("perspective"),Sc=Qe.core.reverting,Mc=1)},mc=function r(t){var e=xc("svg",this.ownerSVGElement&&this.ownerSVGElement.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),n=this.parentNode,i=this.nextSibling,s=this.style.cssText,a;if(rs.appendChild(e),e.appendChild(this),this.style.display="block",t)try{a=this.getBBox(),this._gsapBBox=this.getBBox,this.getBBox=r}catch{}else this._gsapBBox&&(a=this._gsapBBox());return n&&(i?n.insertBefore(this,i):n.appendChild(this)),rs.removeChild(e),this.style.cssText=s,a},df=function(t,e){for(var n=e.length;n--;)if(t.hasAttribute(e[n]))return t.getAttribute(e[n])},bf=function(t){var e;try{e=t.getBBox()}catch{e=mc.call(t,!0)}return e&&(e.width||e.height)||t.getBBox===mc||(e=mc.call(t,!0)),e&&!e.width&&!e.x&&!e.y?{x:+df(t,["x","cx","x1"])||0,y:+df(t,["y","cy","y1"])||0,width:0,height:0}:e},Ef=function(t){return!!(t.getCTM&&(!t.parentNode||t.ownerSVGElement)&&bf(t))},Er=function(t,e){if(e){var n=t.style,i;e in yi&&e!==Sn&&(e=Ee),n.removeProperty?(i=e.substr(0,2),(i==="ms"||e.substr(0,6)==="webkit")&&(e="-"+e),n.removeProperty(i==="--"?e:e.replace(bc,"-$1").toLowerCase())):n.removeAttribute(e)}},Wi=function(t,e,n,i,s,a){var o=new ln(t._pt,e,n,0,1,a?vf:xf);return t._pt=o,o.b=i,o.e=s,t._props.push(n),o},pf={deg:1,rad:1,turn:1},Zg={grid:1,flex:1},Xi=function r(t,e,n,i){var s=parseFloat(n)||0,a=(n+"").trim().substr((s+"").length)||"px",o=br.style,l=Ug.test(e),c=t.tagName.toLowerCase()==="svg",u=(c?"client":"offset")+(l?"Width":"Height"),f=100,h=i==="px",d=i==="%",_,g,p,m;if(i===a||!s||pf[i]||pf[a])return s;if(a!=="px"&&!h&&(s=r(t,e,n,"px")),m=t.getCTM&&Ef(t),(d||a==="%")&&(yi[e]||~e.indexOf("adius")))return _=m?t.getBBox()[l?"width":"height"]:t[u],Ae(d?s/_*f:s/100*_);if(o[l?"width":"height"]=f+(h?a:i),g=~e.indexOf("adius")||i==="em"&&t.appendChild&&!c?t:t.parentNode,m&&(g=(t.ownerSVGElement||{}).parentNode),(!g||g===Gi||!g.appendChild)&&(g=Gi.body),p=g._gsap,p&&d&&p.width&&l&&p.time===vn.time&&!p.uncache)return Ae(s/p.width*f);if(d&&(e==="height"||e==="width")){var S=t.style[e];t.style[e]=f+i,_=t[u],S?t.style[e]=S:Er(t,e)}else(d||a==="%")&&!Zg[ui(g,"display")]&&(o.position=ui(t,"position")),g===t&&(o.position="static"),g.appendChild(br),_=br[u],g.removeChild(br),o.position="absolute";return l&&d&&(p=ki(g),p.time=vn.time,p.width=g[u]),Ae(h?_*s/f:_&&s?f/_*s:0)},vi=function(t,e,n,i){var s;return Mc||vc(),e in ci&&e!=="transform"&&(e=ci[e],~e.indexOf(",")&&(e=e.split(",")[0])),yi[e]&&e!=="transform"?(s=ra(t,i),s=e!=="transformOrigin"?s[e]:s.svg?s.origin:ja(ui(t,Sn))+" "+s.zOrigin+"px"):(s=t.style[e],(!s||s==="auto"||i||~(s+"").indexOf("calc("))&&(s=Qa[e]&&Qa[e](t,e,n)||ui(t,e)||sc(t,e)||(e==="opacity"?1:0))),n&&!~(s+"").trim().indexOf(" ")?Xi(t,e,s,n)+n:s},Jg=function(t,e,n,i){if(!n||n==="none"){var s=as(e,t,1),a=s&&ui(t,s,1);a&&a!==n?(e=s,n=a):e==="borderColor"&&(n=ui(t,"borderTopColor"))}var o=new ln(this._pt,t.style,e,0,1,fc),l=0,c=0,u,f,h,d,_,g,p,m,S,v,M,D;if(o.b=n,o.e=i,n+="",i+="",i==="auto"&&(g=t.style[e],t.style[e]=i,i=ui(t,e)||i,g?t.style[e]=g:Er(t,e)),u=[n,i],ac(u),n=u[0],i=u[1],h=n.match(_r)||[],D=i.match(_r)||[],D.length){for(;f=_r.exec(i);)p=f[0],S=i.substring(l,f.index),_?_=(_+1)%5:(S.substr(-5)==="rgba("||S.substr(-5)==="hsla(")&&(_=1),p!==(g=h[c++]||"")&&(d=parseFloat(g)||0,M=g.substr((d+"").length),p.charAt(1)==="="&&(p=xr(d,p)+M),m=parseFloat(p),v=p.substr((m+"").length),l=_r.lastIndex-v.length,v||(v=v||Mn.units[e]||M,l===i.length&&(i+=v,o.e+=v)),M!==v&&(d=Xi(t,e,g,v)||0),o._pt={_next:o._pt,p:S||c===1?S:",",s:d,c:m-d,m:_&&_<4||e==="zIndex"?Math.round:0});o.c=l<i.length?i.substring(l,i.length):""}else o.r=e==="display"&&i==="none"?vf:xf;return tc.test(i)&&(o.e=0),this._pt=o,o},mf={top:"0%",bottom:"100%",left:"0%",right:"100%",center:"50%"},$g=function(t){var e=t.split(" "),n=e[0],i=e[1]||"50%";return(n==="top"||n==="bottom"||i==="left"||i==="right")&&(t=n,n=i,i=t),e[0]=mf[n]||n,e[1]=mf[i]||i,e.join(" ")},Kg=function(t,e){if(e.tween&&e.tween._time===e.tween._dur){var n=e.t,i=n.style,s=e.u,a=n._gsap,o,l,c;if(s==="all"||s===!0)i.cssText="",l=1;else for(s=s.split(","),c=s.length;--c>-1;)o=s[c],yi[o]&&(l=1,o=o==="transformOrigin"?Sn:Ee),Er(n,o);l&&(Er(n,Ee),a&&(a.svg&&n.removeAttribute("transform"),ra(n,1),a.uncache=1,yf(i)))}},Qa={clearProps:function(t,e,n,i,s){if(s.data!=="isFromStart"){var a=t._pt=new ln(t._pt,e,n,0,0,Kg);return a.u=i,a.pr=-10,a.tween=s,t._props.push(n),1}}},ia=[1,0,0,1,0,0],wf={},Tf=function(t){return t==="matrix(1, 0, 0, 1, 0, 0)"||t==="none"||!t},gf=function(t){var e=ui(t,Ee);return Tf(e)?ia:e.substr(7).match(jl).map(Ae)},Ec=function(t,e){var n=t._gsap||ki(t),i=t.style,s=gf(t),a,o,l,c;return n.svg&&t.getAttribute("transform")?(l=t.transform.baseVal.consolidate().matrix,s=[l.a,l.b,l.c,l.d,l.e,l.f],s.join(",")==="1,0,0,1,0,0"?ia:s):(s===ia&&!t.offsetParent&&t!==rs&&!n.svg&&(l=i.display,i.display="block",a=t.parentNode,(!a||!t.offsetParent)&&(c=1,o=t.nextElementSibling,rs.appendChild(t)),s=gf(t),l?i.display=l:Er(t,"display"),c&&(o?a.insertBefore(t,o):a?a.appendChild(t):rs.removeChild(t))),e&&s.length>6?[s[0],s[1],s[4],s[5],s[12],s[13]]:s)},yc=function(t,e,n,i,s,a){var o=t._gsap,l=s||Ec(t,!0),c=o.xOrigin||0,u=o.yOrigin||0,f=o.xOffset||0,h=o.yOffset||0,d=l[0],_=l[1],g=l[2],p=l[3],m=l[4],S=l[5],v=e.split(" "),M=parseFloat(v[0])||0,D=parseFloat(v[1])||0,T,w,P,y;n?l!==ia&&(w=d*p-_*g)&&(P=M*(p/w)+D*(-g/w)+(g*S-p*m)/w,y=M*(-_/w)+D*(d/w)-(d*S-_*m)/w,M=P,D=y):(T=bf(t),M=T.x+(~v[0].indexOf("%")?M/100*T.width:M),D=T.y+(~(v[1]||v[0]).indexOf("%")?D/100*T.height:D)),i||i!==!1&&o.smooth?(m=M-c,S=D-u,o.xOffset=f+(m*d+S*g)-m,o.yOffset=h+(m*_+S*p)-S):o.xOffset=o.yOffset=0,o.xOrigin=M,o.yOrigin=D,o.smooth=!!i,o.origin=e,o.originIsAbsolute=!!n,t.style[Sn]="0px 0px",a&&(Wi(a,o,"xOrigin",c,M),Wi(a,o,"yOrigin",u,D),Wi(a,o,"xOffset",f,o.xOffset),Wi(a,o,"yOffset",h,o.yOffset)),t.setAttribute("data-svg-origin",M+" "+D)},ra=function(t,e){var n=t._gsap||new oc(t);if("x"in n&&!e&&!n.uncache)return n;var i=t.style,s=n.scaleX<0,a="px",o="deg",l=getComputedStyle(t),c=ui(t,Sn)||"0",u,f,h,d,_,g,p,m,S,v,M,D,T,w,P,y,x,F,I,R,B,G,Z,J,N,Q,A,at,bt,Zt,X,tt;return u=f=h=g=p=m=S=v=M=0,d=_=1,n.svg=!!(t.getCTM&&Ef(t)),l.translate&&((l.translate!=="none"||l.scale!=="none"||l.rotate!=="none")&&(i[Ee]=(l.translate!=="none"?"translate3d("+(l.translate+" 0 0").split(" ").slice(0,3).join(", ")+") ":"")+(l.rotate!=="none"?"rotate("+l.rotate+") ":"")+(l.scale!=="none"?"scale("+l.scale.split(" ").join(",")+") ":"")+(l[Ee]!=="none"?l[Ee]:"")),i.scale=i.rotate=i.translate="none"),w=Ec(t,n.svg),n.svg&&(n.uncache?(N=t.getBBox(),c=n.xOrigin-N.x+"px "+(n.yOrigin-N.y)+"px",J=""):J=!e&&t.getAttribute("data-svg-origin"),yc(t,J||c,!!J||n.originIsAbsolute,n.smooth!==!1,w)),D=n.xOrigin||0,T=n.yOrigin||0,w!==ia&&(F=w[0],I=w[1],R=w[2],B=w[3],u=G=w[4],f=Z=w[5],w.length===6?(d=Math.sqrt(F*F+I*I),_=Math.sqrt(B*B+R*R),g=F||I?is(I,F)*Sr:0,S=R||B?is(R,B)*Sr+g:0,S&&(_*=Math.abs(Math.cos(S*ss))),n.svg&&(u-=D-(D*F+T*R),f-=T-(D*I+T*B))):(tt=w[6],Zt=w[7],A=w[8],at=w[9],bt=w[10],X=w[11],u=w[12],f=w[13],h=w[14],P=is(tt,bt),p=P*Sr,P&&(y=Math.cos(-P),x=Math.sin(-P),J=G*y+A*x,N=Z*y+at*x,Q=tt*y+bt*x,A=G*-x+A*y,at=Z*-x+at*y,bt=tt*-x+bt*y,X=Zt*-x+X*y,G=J,Z=N,tt=Q),P=is(-R,bt),m=P*Sr,P&&(y=Math.cos(-P),x=Math.sin(-P),J=F*y-A*x,N=I*y-at*x,Q=R*y-bt*x,X=B*x+X*y,F=J,I=N,R=Q),P=is(I,F),g=P*Sr,P&&(y=Math.cos(P),x=Math.sin(P),J=F*y+I*x,N=G*y+Z*x,I=I*y-F*x,Z=Z*y-G*x,F=J,G=N),p&&Math.abs(p)+Math.abs(g)>359.9&&(p=g=0,m=180-m),d=Ae(Math.sqrt(F*F+I*I+R*R)),_=Ae(Math.sqrt(Z*Z+tt*tt)),P=is(G,Z),S=Math.abs(P)>2e-4?P*Sr:0,M=X?1/(X<0?-X:X):0),n.svg&&(J=t.getAttribute("transform"),n.forceCSS=t.setAttribute("transform","")||!Tf(ui(t,Ee)),J&&t.setAttribute("transform",J))),Math.abs(S)>90&&Math.abs(S)<270&&(s?(d*=-1,S+=g<=0?180:-180,g+=g<=0?180:-180):(_*=-1,S+=S<=0?180:-180)),e=e||n.uncache,n.x=u-((n.xPercent=u&&(!e&&n.xPercent||(Math.round(t.offsetWidth/2)===Math.round(-u)?-50:0)))?t.offsetWidth*n.xPercent/100:0)+a,n.y=f-((n.yPercent=f&&(!e&&n.yPercent||(Math.round(t.offsetHeight/2)===Math.round(-f)?-50:0)))?t.offsetHeight*n.yPercent/100:0)+a,n.z=h+a,n.scaleX=Ae(d),n.scaleY=Ae(_),n.rotation=Ae(g)+o,n.rotationX=Ae(p)+o,n.rotationY=Ae(m)+o,n.skewX=S+o,n.skewY=v+o,n.transformPerspective=M+a,(n.zOrigin=parseFloat(c.split(" ")[2])||!e&&n.zOrigin||0)&&(i[Sn]=ja(c)),n.xOffset=n.yOffset=0,n.force3D=Mn.force3D,n.renderTransform=n.svg?jg:Sf?Af:Qg,n.uncache=0,n},ja=function(t){return(t=t.split(" "))[0]+" "+t[1]},gc=function(t,e,n){var i=qe(e);return Ae(parseFloat(e)+parseFloat(Xi(t,"x",n+"px",i)))+i},Qg=function(t,e){e.z="0px",e.rotationY=e.rotationX="0deg",e.force3D=0,Af(t,e)},yr="0deg",na="0px",Mr=") ",Af=function(t,e){var n=e||this,i=n.xPercent,s=n.yPercent,a=n.x,o=n.y,l=n.z,c=n.rotation,u=n.rotationY,f=n.rotationX,h=n.skewX,d=n.skewY,_=n.scaleX,g=n.scaleY,p=n.transformPerspective,m=n.force3D,S=n.target,v=n.zOrigin,M="",D=m==="auto"&&t&&t!==1||m===!0;if(v&&(f!==yr||u!==yr)){var T=parseFloat(u)*ss,w=Math.sin(T),P=Math.cos(T),y;T=parseFloat(f)*ss,y=Math.cos(T),a=gc(S,a,w*y*-v),o=gc(S,o,-Math.sin(T)*-v),l=gc(S,l,P*y*-v+v)}p!==na&&(M+="perspective("+p+Mr),(i||s)&&(M+="translate("+i+"%, "+s+"%) "),(D||a!==na||o!==na||l!==na)&&(M+=l!==na||D?"translate3d("+a+", "+o+", "+l+") ":"translate("+a+", "+o+Mr),c!==yr&&(M+="rotate("+c+Mr),u!==yr&&(M+="rotateY("+u+Mr),f!==yr&&(M+="rotateX("+f+Mr),(h!==yr||d!==yr)&&(M+="skew("+h+", "+d+Mr),(_!==1||g!==1)&&(M+="scale("+_+", "+g+Mr),S.style[Ee]=M||"translate(0, 0)"},jg=function(t,e){var n=e||this,i=n.xPercent,s=n.yPercent,a=n.x,o=n.y,l=n.rotation,c=n.skewX,u=n.skewY,f=n.scaleX,h=n.scaleY,d=n.target,_=n.xOrigin,g=n.yOrigin,p=n.xOffset,m=n.yOffset,S=n.forceCSS,v=parseFloat(a),M=parseFloat(o),D,T,w,P,y;l=parseFloat(l),c=parseFloat(c),u=parseFloat(u),u&&(u=parseFloat(u),c+=u,l+=u),l||c?(l*=ss,c*=ss,D=Math.cos(l)*f,T=Math.sin(l)*f,w=Math.sin(l-c)*-h,P=Math.cos(l-c)*h,c&&(u*=ss,y=Math.tan(c-u),y=Math.sqrt(1+y*y),w*=y,P*=y,u&&(y=Math.tan(u),y=Math.sqrt(1+y*y),D*=y,T*=y)),D=Ae(D),T=Ae(T),w=Ae(w),P=Ae(P)):(D=f,P=h,T=w=0),(v&&!~(a+"").indexOf("px")||M&&!~(o+"").indexOf("px"))&&(v=Xi(d,"x",a,"px"),M=Xi(d,"y",o,"px")),(_||g||p||m)&&(v=Ae(v+_-(_*D+g*w)+p),M=Ae(M+g-(_*T+g*P)+m)),(i||s)&&(y=d.getBBox(),v=Ae(v+i/100*y.width),M=Ae(M+s/100*y.height)),y="matrix("+D+","+T+","+w+","+P+","+v+","+M+")",d.setAttribute("transform",y),S&&(d.style[Ee]=y)},t_=function(t,e,n,i,s){var a=360,o=Ue(s),l=parseFloat(s)*(o&&~s.indexOf("rad")?Sr:1),c=l-i,u=i+c+"deg",f,h;return o&&(f=s.split("_")[1],f==="short"&&(c%=a,c!==c%(a/2)&&(c+=c<0?a:-a)),f==="cw"&&c<0?c=(c+a*hf)%a-~~(c/a)*a:f==="ccw"&&c>0&&(c=(c-a*hf)%a-~~(c/a)*a)),t._pt=h=new ln(t._pt,e,n,i,c,Og),h.e=u,h.u="deg",t._props.push(n),h},_f=function(t,e){for(var n in e)t[n]=e[n];return t},e_=function(t,e,n){var i=_f({},n._gsap),s="perspective,force3D,transformOrigin,svgOrigin",a=n.style,o,l,c,u,f,h,d,_;i.svg?(c=n.getAttribute("transform"),n.setAttribute("transform",""),a[Ee]=e,o=ra(n,1),Er(n,Ee),n.setAttribute("transform",c)):(c=getComputedStyle(n)[Ee],a[Ee]=e,o=ra(n,1),a[Ee]=c);for(l in yi)c=i[l],u=o[l],c!==u&&s.indexOf(l)<0&&(d=qe(c),_=qe(u),f=d!==_?Xi(n,l,c,_):parseFloat(c),h=parseFloat(u),t._pt=new ln(t._pt,o,l,f,h-f,_c),t._pt.u=_||0,t._props.push(l));_f(o,i)};on("padding,margin,Width,Radius",function(r,t){var e="Top",n="Right",i="Bottom",s="Left",a=(t<3?[e,n,i,s]:[e+s,e+n,i+n,i+s]).map(function(o){return t<2?r+o:"border"+o+r});Qa[t>1?"border"+r:r]=function(o,l,c,u,f){var h,d;if(arguments.length<4)return h=a.map(function(_){return vi(o,_,c)}),d=h.join(" "),d.split(h[0]).length===5?h[0]:d;h=(u+"").split(" "),d={},a.forEach(function(_,g){return d[_]=h[g]=h[g]||h[(g-1)/2|0]}),o.init(l,d,f)}});var wc={name:"css",register:vc,targetTest:function(t){return t.style&&t.nodeType},init:function(t,e,n,i,s){var a=this._props,o=t.style,l=n.vars.startAt,c,u,f,h,d,_,g,p,m,S,v,M,D,T,w,P;Mc||vc(),this.styles=this.styles||Mf(t),P=this.styles.props,this.tween=n;for(g in e)if(g!=="autoRound"&&(u=e[g],!(xn[g]&&cc(g,e,n,i,t,s)))){if(d=typeof u,_=Qa[g],d==="function"&&(u=u.call(n,i,t,s),d=typeof u),d==="string"&&~u.indexOf("random(")&&(u=ns(u)),_)_(this,t,g,u,n)&&(w=1);else if(g.substr(0,2)==="--")c=(getComputedStyle(t).getPropertyValue(g)+"").trim(),u+="",_i.lastIndex=0,_i.test(c)||(p=qe(c),m=qe(u)),m?p!==m&&(c=Xi(t,g,c,m)+m):p&&(u+=p),this.add(o,"setProperty",c,u,i,s,0,0,g),a.push(g),P.push(g,0,o[g]);else if(d!=="undefined"){if(l&&g in l?(c=typeof l[g]=="function"?l[g].call(n,i,t,s):l[g],Ue(c)&&~c.indexOf("random(")&&(c=ns(c)),qe(c+"")||c==="auto"||(c+=Mn.units[g]||qe(vi(t,g))||""),(c+"").charAt(1)==="="&&(c=vi(t,g))):c=vi(t,g),h=parseFloat(c),S=d==="string"&&u.charAt(1)==="="&&u.substr(0,2),S&&(u=u.substr(2)),f=parseFloat(u),g in ci&&(g==="autoAlpha"&&(h===1&&vi(t,"visibility")==="hidden"&&f&&(h=0),P.push("visibility",0,o.visibility),Wi(this,o,"visibility",h?"inherit":"hidden",f?"inherit":"hidden",!f)),g!=="scale"&&g!=="transform"&&(g=ci[g],~g.indexOf(",")&&(g=g.split(",")[0]))),v=g in yi,v){if(this.styles.save(g),M||(D=t._gsap,D.renderTransform&&!e.parseTransform||ra(t,e.parseTransform),T=e.smoothOrigin!==!1&&D.smooth,M=this._pt=new ln(this._pt,o,Ee,0,1,D.renderTransform,D,0,-1),M.dep=1),g==="scale")this._pt=new ln(this._pt,D,"scaleY",D.scaleY,(S?xr(D.scaleY,S+f):f)-D.scaleY||0,_c),this._pt.u=0,a.push("scaleY",g),g+="X";else if(g==="transformOrigin"){P.push(Sn,0,o[Sn]),u=$g(u),D.svg?yc(t,u,0,T,0,this):(m=parseFloat(u.split(" ")[2])||0,m!==D.zOrigin&&Wi(this,D,"zOrigin",D.zOrigin,m),Wi(this,o,g,ja(c),ja(u)));continue}else if(g==="svgOrigin"){yc(t,u,1,T,0,this);continue}else if(g in wf){t_(this,D,g,h,S?xr(h,S+u):u);continue}else if(g==="smoothOrigin"){Wi(this,D,"smooth",D.smooth,u);continue}else if(g==="force3D"){D[g]=u;continue}else if(g==="transform"){e_(this,u,t);continue}}else g in o||(g=as(g)||g);if(v||(f||f===0)&&(h||h===0)&&!Ng.test(u)&&g in o)p=(c+"").substr((h+"").length),f||(f=0),m=qe(u)||(g in Mn.units?Mn.units[g]:p),p!==m&&(h=Xi(t,g,c,m)),this._pt=new ln(this._pt,v?D:o,g,h,(S?xr(h,S+f):f)-h,!v&&(m==="px"||g==="zIndex")&&e.autoRound!==!1?zg:_c),this._pt.u=m||0,p!==m&&m!=="%"&&(this._pt.b=c,this._pt.r=Bg);else if(g in o)Jg.call(this,t,g,c,S?S+u:u);else if(g in t)this.add(t,g,c||t[g],S?S+u:u,i,s);else if(g!=="parseTransform"){Ya(g,u);continue}v||(g in o?P.push(g,0,o[g]):P.push(g,1,c||t[g])),a.push(g)}}w&&pc(this)},render:function(t,e){if(e.tween._time||!Sc())for(var n=e._pt;n;)n.r(t,n.d),n=n._next;else e.styles.revert()},get:vi,aliases:ci,getSetter:function(t,e,n){var i=ci[e];return i&&i.indexOf(",")<0&&(e=i),e in yi&&e!==Sn&&(t._gsap.x||vi(t,"x"))?n&&uf===n?e==="scale"?Gg:Hg:(uf=n||{})&&(e==="scale"?Wg:Xg):t.style&&!qa(t.style[e])?kg:~e.indexOf("-")?Vg:Ka(t,e)},core:{_removeProperty:Er,_getMatrix:Ec}};Qe.utils.checkPrefix=as;Qe.core.getStyleSaver=Mf;(function(r,t,e,n){var i=on(r+","+t+","+e,function(s){yi[s]=1});on(t,function(s){Mn.units[s]="deg",wf[s]=1}),ci[i[13]]=r+","+t,on(n,function(s){var a=s.split(":");ci[a[1]]=i[a[0]]})})("x,y,z,scale,scaleX,scaleY,xPercent,yPercent","rotation,rotationX,rotationY,skewX,skewY","transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective","0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY");on("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",function(r){Mn.units[r]="px"});Qe.registerPlugin(wc);var bn=Qe.registerPlugin(wc)||Qe,qS=bn.core.Tween;var Df=()=>{document.querySelectorAll(".client-list_wrapper").forEach(r=>{let t=r.querySelector(".client-list_wrap");if(!t)return;let e=Array.from(t.children),n=t.scrollWidth;e.forEach(i=>{let s=i.cloneNode(!0);s.style.width=`${i.offsetWidth}px`,t.appendChild(s)}),t.style.width=`${n*2}px`,bn.fromTo(t,{x:0},{x:-n,duration:60,ease:"linear",repeat:-1,force3D:!0})})};var Cf=()=>{let r=document.querySelectorAll("[data-contact-popup-toggler]"),t=document.querySelector("[data-contact-popup]");var e=0;if(!r||!t)return;let n=t.querySelector("[data-contact-popup-close]");if(!n)return;let i=t.querySelector(".contact-popup_box");if(!i)return;let s=(a,o)=>{let l=document.createElement("script"),c=document.getElementsByTagName("script")[0];l.async=1,l.onload=l.onreadystatechange=(u,f)=>{(f||!l.readyState||/loaded|complete/.test(l.readyState))&&(l.onload=l.onreadystatechange=null,l=void 0,f||o&&o())},l.src=a,c.parentNode.insertBefore(l,c)};r.forEach(a=>{a.addEventListener("click",o=>{o.preventDefault,e?(t.classList.add("-open"),document.body.classList.add("-popup-open")):s("https://embed.typeform.com/next/embed.js",()=>{e=1,t.classList.add("-open"),document.body.classList.add("-popup-open")})})}),n.addEventListener("click",a=>{a.preventDefault,t.classList.remove("-open"),document.body.classList.remove("-popup-open")}),t.addEventListener("click",a=>{i.contains(a.target)||(t.classList.remove("-open"),document.body.classList.remove("-popup-open"))}),new URL(document.location).searchParams.has("invicible")&&setTimeout(()=>{s("https://embed.typeform.com/next/embed.js",()=>{e=1,setTimeout(()=>{t.classList.add("-open"),document.body.classList.add("-popup-open")},200)})},2e3)};var Rf=()=>{let r=document.querySelector(".is-section-loader");if(!r)return;let t=r.querySelector(".loader_line"),e=r.querySelector(".loader_value");!t||!e||bn.to(t,{width:"100%",duration:1.5,onUpdate:function(){let n=Math.round(this.progress()*100);e.innerHTML=`${n}%`},onComplete:function(){bn.to(r,{y:"-100dvh",duration:.75})}},"<")};function Pf(r,t){for(var e=0;e<t.length;e++){var n=t[e];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(r,n.key,n)}}function n_(r,t,e){return t&&Pf(r.prototype,t),e&&Pf(r,e),r}var Ye,no,i_,Cn,qi,Yi,ls,Lf,wr,aa,Ff,Mi,Jn,Uf,Nf=function(){return Ye||typeof window<"u"&&(Ye=window.gsap)&&Ye.registerPlugin&&Ye},Of=1,os=[],$t=[],$n=[],oa=Date.now,Tc=function(t,e){return e},r_=function(){var t=aa.core,e=t.bridge||{},n=t._scrollers,i=t._proxies;n.push.apply(n,$t),i.push.apply(i,$n),$t=n,$n=i,Tc=function(a,o){return e[a](o)}},bi=function(t,e){return~$n.indexOf(t)&&$n[$n.indexOf(t)+1][e]},la=function(t){return!!~Ff.indexOf(t)},un=function(t,e,n,i,s){return t.addEventListener(e,n,{passive:i!==!1,capture:!!s})},cn=function(t,e,n,i){return t.removeEventListener(e,n,!!i)},to="scrollLeft",eo="scrollTop",Ac=function(){return Mi&&Mi.isPressed||$t.cache++},io=function(t,e){var n=function i(s){if(s||s===0){Of&&(Cn.history.scrollRestoration="manual");var a=Mi&&Mi.isPressed;s=i.v=Math.round(s)||(Mi&&Mi.iOS?1:0),t(s),i.cacheID=$t.cache,a&&Tc("ss",s)}else(e||$t.cache!==i.cacheID||Tc("ref"))&&(i.cacheID=$t.cache,i.v=t());return i.v+i.offset};return n.offset=0,t&&n},je={s:to,p:"left",p2:"Left",os:"right",os2:"Right",d:"width",d2:"Width",a:"x",sc:io(function(r){return arguments.length?Cn.scrollTo(r,Ie.sc()):Cn.pageXOffset||qi[to]||Yi[to]||ls[to]||0})},Ie={s:eo,p:"top",p2:"Top",os:"bottom",os2:"Bottom",d:"height",d2:"Height",a:"y",op:je,sc:io(function(r){return arguments.length?Cn.scrollTo(je.sc(),r):Cn.pageYOffset||qi[eo]||Yi[eo]||ls[eo]||0})},hn=function(t,e){return(e&&e._ctx&&e._ctx.selector||Ye.utils.toArray)(t)[0]||(typeof t=="string"&&Ye.config().nullTargetWarn!==!1?console.warn("Element not found:",t):null)},Si=function(t,e){var n=e.s,i=e.sc;la(t)&&(t=qi.scrollingElement||Yi);var s=$t.indexOf(t),a=i===Ie.sc?1:2;!~s&&(s=$t.push(t)-1),$t[s+a]||un(t,"scroll",Ac);var o=$t[s+a],l=o||($t[s+a]=io(bi(t,n),!0)||(la(t)?i:io(function(c){return arguments.length?t[n]=c:t[n]})));return l.target=t,o||(l.smooth=Ye.getProperty(t,"scrollBehavior")==="smooth"),l},ro=function(t,e,n){var i=t,s=t,a=oa(),o=a,l=e||50,c=Math.max(500,l*3),u=function(_,g){var p=oa();g||p-a>l?(s=i,i=_,o=a,a=p):n?i+=_:i=s+(_-s)/(p-o)*(a-o)},f=function(){s=i=n?0:i,o=a=0},h=function(_){var g=o,p=s,m=oa();return(_||_===0)&&_!==i&&u(_),a===o||m-o>c?0:(i+(n?p:-p))/((n?m:a)-g)*1e3};return{update:u,reset:f,getVelocity:h}},sa=function(t,e){return e&&!t._gsapAllow&&t.preventDefault(),t.changedTouches?t.changedTouches[0]:t},If=function(t){var e=Math.max.apply(Math,t),n=Math.min.apply(Math,t);return Math.abs(e)>=Math.abs(n)?e:n},Bf=function(){aa=Ye.core.globals().ScrollTrigger,aa&&aa.core&&r_()},zf=function(t){return Ye=t||Nf(),!no&&Ye&&typeof document<"u"&&document.body&&(Cn=window,qi=document,Yi=qi.documentElement,ls=qi.body,Ff=[Cn,qi,Yi,ls],i_=Ye.utils.clamp,Uf=Ye.core.context||function(){},wr="onpointerenter"in ls?"pointer":"mouse",Lf=De.isTouch=Cn.matchMedia&&Cn.matchMedia("(hover: none), (pointer: coarse)").matches?1:"ontouchstart"in Cn||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0?2:0,Jn=De.eventTypes=("ontouchstart"in Yi?"touchstart,touchmove,touchcancel,touchend":"onpointerdown"in Yi?"pointerdown,pointermove,pointercancel,pointerup":"mousedown,mousemove,mouseup,mouseup").split(","),setTimeout(function(){return Of=0},500),Bf(),no=1),no};je.op=Ie;$t.cache=0;var De=function(){function r(e){this.init(e)}var t=r.prototype;return t.init=function(n){no||zf(Ye)||console.warn("Please gsap.registerPlugin(Observer)"),aa||Bf();var i=n.tolerance,s=n.dragMinimum,a=n.type,o=n.target,l=n.lineHeight,c=n.debounce,u=n.preventDefault,f=n.onStop,h=n.onStopDelay,d=n.ignore,_=n.wheelSpeed,g=n.event,p=n.onDragStart,m=n.onDragEnd,S=n.onDrag,v=n.onPress,M=n.onRelease,D=n.onRight,T=n.onLeft,w=n.onUp,P=n.onDown,y=n.onChangeX,x=n.onChangeY,F=n.onChange,I=n.onToggleX,R=n.onToggleY,B=n.onHover,G=n.onHoverEnd,Z=n.onMove,J=n.ignoreCheck,N=n.isNormalizer,Q=n.onGestureStart,A=n.onGestureEnd,at=n.onWheel,bt=n.onEnable,Zt=n.onDisable,X=n.onClick,tt=n.scrollSpeed,ft=n.capture,nt=n.allowClicks,It=n.lockAxis,Rt=n.onLockAxis;this.target=o=hn(o)||Yi,this.vars=n,d&&(d=Ye.utils.toArray(d)),i=i||1e-9,s=s||0,_=_||1,tt=tt||1,a=a||"wheel,touch,pointer",c=c!==!1,l||(l=parseFloat(Cn.getComputedStyle(ls).lineHeight)||22);var O,Gt,St,Et,_t,Ft,Pt,z=this,jt=0,C=0,b=n.passive||!u,W=Si(o,je),K=Si(o,Ie),j=W(),et=K(),mt=~a.indexOf("touch")&&!~a.indexOf("pointer")&&Jn[0]==="pointerdown",lt=la(o),it=o.ownerDocument||qi,Lt=[0,0,0],rt=[0,0,0],Mt=0,Yt=function(){return Mt=oa()},gt=function(vt,ie){return(z.event=vt)&&d&&~d.indexOf(vt.target)||ie&&mt&&vt.pointerType!=="touch"||J&&J(vt,ie)},xt=function(){z._vx.reset(),z._vy.reset(),Gt.pause(),f&&f(z)},Ut=function(){var vt=z.deltaX=If(Lt),ie=z.deltaY=If(rt),ut=Math.abs(vt)>=i,kt=Math.abs(ie)>=i;F&&(ut||kt)&&F(z,vt,ie,Lt,rt),ut&&(D&&z.deltaX>0&&D(z),T&&z.deltaX<0&&T(z),y&&y(z),I&&z.deltaX<0!=jt<0&&I(z),jt=z.deltaX,Lt[0]=Lt[1]=Lt[2]=0),kt&&(P&&z.deltaY>0&&P(z),w&&z.deltaY<0&&w(z),x&&x(z),R&&z.deltaY<0!=C<0&&R(z),C=z.deltaY,rt[0]=rt[1]=rt[2]=0),(Et||St)&&(Z&&Z(z),St&&(S(z),St=!1),Et=!1),Ft&&!(Ft=!1)&&Rt&&Rt(z),_t&&(at(z),_t=!1),O=0},Ht=function(vt,ie,ut){Lt[ut]+=vt,rt[ut]+=ie,z._vx.update(vt),z._vy.update(ie),c?O||(O=requestAnimationFrame(Ut)):Ut()},ue=function(vt,ie){It&&!Pt&&(z.axis=Pt=Math.abs(vt)>Math.abs(ie)?"x":"y",Ft=!0),Pt!=="y"&&(Lt[2]+=vt,z._vx.update(vt,!0)),Pt!=="x"&&(rt[2]+=ie,z._vy.update(ie,!0)),c?O||(O=requestAnimationFrame(Ut)):Ut()},Nt=function(vt){if(!gt(vt,1)){vt=sa(vt,u);var ie=vt.clientX,ut=vt.clientY,kt=ie-z.x,At=ut-z.y,zt=z.isDragging;z.x=ie,z.y=ut,(zt||Math.abs(z.startX-ie)>=s||Math.abs(z.startY-ut)>=s)&&(S&&(St=!0),zt||(z.isDragging=!0),ue(kt,At),zt||p&&p(z))}},L=z.onPress=function(Ct){gt(Ct,1)||Ct&&Ct.button||(z.axis=Pt=null,Gt.pause(),z.isPressed=!0,Ct=sa(Ct),jt=C=0,z.startX=z.x=Ct.clientX,z.startY=z.y=Ct.clientY,z._vx.reset(),z._vy.reset(),un(N?o:it,Jn[1],Nt,b,!0),z.deltaX=z.deltaY=0,v&&v(z))},Y=z.onRelease=function(Ct){if(!gt(Ct,1)){cn(N?o:it,Jn[1],Nt,!0);var vt=!isNaN(z.y-z.startY),ie=z.isDragging,ut=ie&&(Math.abs(z.x-z.startX)>3||Math.abs(z.y-z.startY)>3),kt=sa(Ct);!ut&&vt&&(z._vx.reset(),z._vy.reset(),u&&nt&&Ye.delayedCall(.08,function(){if(oa()-Mt>300&&!Ct.defaultPrevented){if(Ct.target.click)Ct.target.click();else if(it.createEvent){var At=it.createEvent("MouseEvents");At.initMouseEvent("click",!0,!0,Cn,1,kt.screenX,kt.screenY,kt.clientX,kt.clientY,!1,!1,!1,!1,0,null),Ct.target.dispatchEvent(At)}}})),z.isDragging=z.isGesturing=z.isPressed=!1,f&&ie&&!N&&Gt.restart(!0),m&&ie&&m(z),M&&M(z,ut)}},$=function(vt){return vt.touches&&vt.touches.length>1&&(z.isGesturing=!0)&&Q(vt,z.isDragging)},ot=function(){return(z.isGesturing=!1)||A(z)},ct=function(vt){if(!gt(vt)){var ie=W(),ut=K();Ht((ie-j)*tt,(ut-et)*tt,1),j=ie,et=ut,f&&Gt.restart(!0)}},Vt=function(vt){if(!gt(vt)){vt=sa(vt,u),at&&(_t=!0);var ie=(vt.deltaMode===1?l:vt.deltaMode===2?Cn.innerHeight:1)*_;Ht(vt.deltaX*ie,vt.deltaY*ie,0),f&&!N&&Gt.restart(!0)}},se=function(vt){if(!gt(vt)){var ie=vt.clientX,ut=vt.clientY,kt=ie-z.x,At=ut-z.y;z.x=ie,z.y=ut,Et=!0,f&&Gt.restart(!0),(kt||At)&&ue(kt,At)}},ce=function(vt){z.event=vt,B(z)},de=function(vt){z.event=vt,G(z)},te=function(vt){return gt(vt)||sa(vt,u)&&X(z)};Gt=z._dc=Ye.delayedCall(h||.25,xt).pause(),z.deltaX=z.deltaY=0,z._vx=ro(0,50,!0),z._vy=ro(0,50,!0),z.scrollX=W,z.scrollY=K,z.isDragging=z.isGesturing=z.isPressed=!1,Uf(this),z.enable=function(Ct){return z.isEnabled||(un(lt?it:o,"scroll",Ac),a.indexOf("scroll")>=0&&un(lt?it:o,"scroll",ct,b,ft),a.indexOf("wheel")>=0&&un(o,"wheel",Vt,b,ft),(a.indexOf("touch")>=0&&Lf||a.indexOf("pointer")>=0)&&(un(o,Jn[0],L,b,ft),un(it,Jn[2],Y),un(it,Jn[3],Y),nt&&un(o,"click",Yt,!0,!0),X&&un(o,"click",te),Q&&un(it,"gesturestart",$),A&&un(it,"gestureend",ot),B&&un(o,wr+"enter",ce),G&&un(o,wr+"leave",de),Z&&un(o,wr+"move",se)),z.isEnabled=!0,Ct&&Ct.type&&L(Ct),bt&&bt(z)),z},z.disable=function(){z.isEnabled&&(os.filter(function(Ct){return Ct!==z&&la(Ct.target)}).length||cn(lt?it:o,"scroll",Ac),z.isPressed&&(z._vx.reset(),z._vy.reset(),cn(N?o:it,Jn[1],Nt,!0)),cn(lt?it:o,"scroll",ct,ft),cn(o,"wheel",Vt,ft),cn(o,Jn[0],L,ft),cn(it,Jn[2],Y),cn(it,Jn[3],Y),cn(o,"click",Yt,!0),cn(o,"click",te),cn(it,"gesturestart",$),cn(it,"gestureend",ot),cn(o,wr+"enter",ce),cn(o,wr+"leave",de),cn(o,wr+"move",se),z.isEnabled=z.isPressed=z.isDragging=!1,Zt&&Zt(z))},z.kill=z.revert=function(){z.disable();var Ct=os.indexOf(z);Ct>=0&&os.splice(Ct,1),Mi===z&&(Mi=0)},os.push(z),N&&la(o)&&(Mi=z),z.enable(g)},n_(r,[{key:"velocityX",get:function(){return this._vx.getVelocity()}},{key:"velocityY",get:function(){return this._vy.getVelocity()}}]),r}();De.version="3.12.5";De.create=function(r){return new De(r)};De.register=zf;De.getAll=function(){return os.slice()};De.getById=function(r){return os.filter(function(t){return t.vars.id===r})[0]};Nf()&&Ye.registerPlugin(De);var yt,hs,ne,we,Kn,ge,id,Mo,Ma,ma,ua,so,tn,wo,Uc,dn,kf,Vf,fs,rd,Dc,sd,fn,Nc,ad,od,Zi,Oc,Hc,ds,Gc,So,Bc,Cc,ao=1,en=Date.now,Rc=en(),Vn=0,ha=0,Hf=function(t,e,n){var i=Pn(t)&&(t.substr(0,6)==="clamp("||t.indexOf("max")>-1);return n["_"+e+"Clamp"]=i,i?t.substr(6,t.length-7):t},Gf=function(t,e){return e&&(!Pn(t)||t.substr(0,6)!=="clamp(")?"clamp("+t+")":t},s_=function r(){return ha&&requestAnimationFrame(r)},Wf=function(){return wo=1},Xf=function(){return wo=0},hi=function(t){return t},fa=function(t){return Math.round(t*1e5)/1e5||0},ld=function(){return typeof window<"u"},cd=function(){return yt||ld()&&(yt=window.gsap)&&yt.registerPlugin&&yt},Pr=function(t){return!!~id.indexOf(t)},ud=function(t){return(t==="Height"?Gc:ne["inner"+t])||Kn["client"+t]||ge["client"+t]},hd=function(t){return bi(t,"getBoundingClientRect")||(Pr(t)?function(){return yo.width=ne.innerWidth,yo.height=Gc,yo}:function(){return Ei(t)})},a_=function(t,e,n){var i=n.d,s=n.d2,a=n.a;return(a=bi(t,"getBoundingClientRect"))?function(){return a()[i]}:function(){return(e?ud(s):t["client"+s])||0}},o_=function(t,e){return!e||~$n.indexOf(t)?hd(t):function(){return yo}},fi=function(t,e){var n=e.s,i=e.d2,s=e.d,a=e.a;return Math.max(0,(n="scroll"+i)&&(a=bi(t,n))?a()-hd(t)()[s]:Pr(t)?(Kn[n]||ge[n])-ud(i):t[n]-t["offset"+i])},oo=function(t,e){for(var n=0;n<fs.length;n+=3)(!e||~e.indexOf(fs[n+1]))&&t(fs[n],fs[n+1],fs[n+2])},Pn=function(t){return typeof t=="string"},mn=function(t){return typeof t=="function"},da=function(t){return typeof t=="number"},Tr=function(t){return typeof t=="object"},ca=function(t,e,n){return t&&t.progress(e?0:1)&&n&&t.pause()},Pc=function(t,e){if(t.enabled){var n=t._ctx?t._ctx.add(function(){return e(t)}):e(t);n&&n.totalTime&&(t.callbackAnimation=n)}},cs=Math.abs,fd="left",dd="top",Wc="right",Xc="bottom",Dr="width",Cr="height",ga="Right",_a="Left",xa="Top",va="Bottom",Le="padding",zn="margin",ms="Width",qc="Height",Ne="px",kn=function(t){return ne.getComputedStyle(t)},l_=function(t){var e=kn(t).position;t.style.position=e==="absolute"||e==="fixed"?e:"relative"},qf=function(t,e){for(var n in e)n in t||(t[n]=e[n]);return t},Ei=function(t,e){var n=e&&kn(t)[Uc]!=="matrix(1, 0, 0, 1, 0, 0)"&&yt.to(t,{x:0,y:0,xPercent:0,yPercent:0,rotation:0,rotationX:0,rotationY:0,scale:1,skewX:0,skewY:0}).progress(1),i=t.getBoundingClientRect();return n&&n.progress(0).kill(),i},bo=function(t,e){var n=e.d2;return t["offset"+n]||t["client"+n]||0},pd=function(t){var e=[],n=t.labels,i=t.duration(),s;for(s in n)e.push(n[s]/i);return e},c_=function(t){return function(e){return yt.utils.snap(pd(t),e)}},Yc=function(t){var e=yt.utils.snap(t),n=Array.isArray(t)&&t.slice(0).sort(function(i,s){return i-s});return n?function(i,s,a){a===void 0&&(a=.001);var o;if(!s)return e(i);if(s>0){for(i-=a,o=0;o<n.length;o++)if(n[o]>=i)return n[o];return n[o-1]}else for(o=n.length,i+=a;o--;)if(n[o]<=i)return n[o];return n[0]}:function(i,s,a){a===void 0&&(a=.001);var o=e(i);return!s||Math.abs(o-i)<a||o-i<0==s<0?o:e(s<0?i-t:i+t)}},u_=function(t){return function(e,n){return Yc(pd(t))(e,n.direction)}},lo=function(t,e,n,i){return n.split(",").forEach(function(s){return t(e,s,i)})},He=function(t,e,n,i,s){return t.addEventListener(e,n,{passive:!i,capture:!!s})},Ve=function(t,e,n,i){return t.removeEventListener(e,n,!!i)},co=function(t,e,n){n=n&&n.wheelHandler,n&&(t(e,"wheel",n),t(e,"touchmove",n))},Yf={startColor:"green",endColor:"red",indent:0,fontSize:"16px",fontWeight:"normal"},uo={toggleActions:"play",anticipatePin:0},Eo={top:0,left:0,center:.5,bottom:1,right:1},go=function(t,e){if(Pn(t)){var n=t.indexOf("="),i=~n?+(t.charAt(n-1)+1)*parseFloat(t.substr(n+1)):0;~n&&(t.indexOf("%")>n&&(i*=e/100),t=t.substr(0,n-1)),t=i+(t in Eo?Eo[t]*e:~t.indexOf("%")?parseFloat(t)*e/100:parseFloat(t)||0)}return t},ho=function(t,e,n,i,s,a,o,l){var c=s.startColor,u=s.endColor,f=s.fontSize,h=s.indent,d=s.fontWeight,_=we.createElement("div"),g=Pr(n)||bi(n,"pinType")==="fixed",p=t.indexOf("scroller")!==-1,m=g?ge:n,S=t.indexOf("start")!==-1,v=S?c:u,M="border-color:"+v+";font-size:"+f+";color:"+v+";font-weight:"+d+";pointer-events:none;white-space:nowrap;font-family:sans-serif,Arial;z-index:1000;padding:4px 8px;border-width:0;border-style:solid;";return M+="position:"+((p||l)&&g?"fixed;":"absolute;"),(p||l||!g)&&(M+=(i===Ie?Wc:Xc)+":"+(a+parseFloat(h))+"px;"),o&&(M+="box-sizing:border-box;text-align:left;width:"+o.offsetWidth+"px;"),_._isStart=S,_.setAttribute("class","gsap-marker-"+t+(e?" marker-"+e:"")),_.style.cssText=M,_.innerText=e||e===0?t+"-"+e:t,m.children[0]?m.insertBefore(_,m.children[0]):m.appendChild(_),_._offset=_["offset"+i.op.d2],_o(_,0,i,S),_},_o=function(t,e,n,i){var s={display:"block"},a=n[i?"os2":"p2"],o=n[i?"p2":"os2"];t._isFlipped=i,s[n.a+"Percent"]=i?-100:0,s[n.a]=i?"1px":0,s["border"+a+ms]=1,s["border"+o+ms]=0,s[n.p]=e+"px",yt.set(t,s)},Kt=[],zc={},Sa,Zf=function(){return en()-Vn>34&&(Sa||(Sa=requestAnimationFrame(wi)))},us=function(){(!fn||!fn.isPressed||fn.startX>ge.clientWidth)&&($t.cache++,fn?Sa||(Sa=requestAnimationFrame(wi)):wi(),Vn||Lr("scrollStart"),Vn=en())},Ic=function(){od=ne.innerWidth,ad=ne.innerHeight},pa=function(){$t.cache++,!tn&&!sd&&!we.fullscreenElement&&!we.webkitFullscreenElement&&(!Nc||od!==ne.innerWidth||Math.abs(ne.innerHeight-ad)>ne.innerHeight*.25)&&Mo.restart(!0)},Ir={},h_=[],md=function r(){return Ve(Qt,"scrollEnd",r)||Ar(!0)},Lr=function(t){return Ir[t]&&Ir[t].map(function(e){return e()})||h_},Rn=[],gd=function(t){for(var e=0;e<Rn.length;e+=5)(!t||Rn[e+4]&&Rn[e+4].query===t)&&(Rn[e].style.cssText=Rn[e+1],Rn[e].getBBox&&Rn[e].setAttribute("transform",Rn[e+2]||""),Rn[e+3].uncache=1)},Zc=function(t,e){var n;for(dn=0;dn<Kt.length;dn++)n=Kt[dn],n&&(!e||n._ctx===e)&&(t?n.kill(1):n.revert(!0,!0));So=!0,e&&gd(e),e||Lr("revert")},_d=function(t,e){$t.cache++,(e||!pn)&&$t.forEach(function(n){return mn(n)&&n.cacheID++&&(n.rec=0)}),Pn(t)&&(ne.history.scrollRestoration=Hc=t)},pn,Rr=0,Jf,f_=function(){if(Jf!==Rr){var t=Jf=Rr;requestAnimationFrame(function(){return t===Rr&&Ar(!0)})}},xd=function(){ge.appendChild(ds),Gc=!fn&&ds.offsetHeight||ne.innerHeight,ge.removeChild(ds)},$f=function(t){return Ma(".gsap-marker-start, .gsap-marker-end, .gsap-marker-scroller-start, .gsap-marker-scroller-end").forEach(function(e){return e.style.display=t?"none":"block"})},Ar=function(t,e){if(Vn&&!t&&!So){He(Qt,"scrollEnd",md);return}xd(),pn=Qt.isRefreshing=!0,$t.forEach(function(i){return mn(i)&&++i.cacheID&&(i.rec=i())});var n=Lr("refreshInit");rd&&Qt.sort(),e||Zc(),$t.forEach(function(i){mn(i)&&(i.smooth&&(i.target.style.scrollBehavior="auto"),i(0))}),Kt.slice(0).forEach(function(i){return i.refresh()}),So=!1,Kt.forEach(function(i){if(i._subPinOffset&&i.pin){var s=i.vars.horizontal?"offsetWidth":"offsetHeight",a=i.pin[s];i.revert(!0,1),i.adjustPinSpacing(i.pin[s]-a),i.refresh()}}),Bc=1,$f(!0),Kt.forEach(function(i){var s=fi(i.scroller,i._dir),a=i.vars.end==="max"||i._endClamp&&i.end>s,o=i._startClamp&&i.start>=s;(a||o)&&i.setPositions(o?s-1:i.start,a?Math.max(o?s:i.start+1,s):i.end,!0)}),$f(!1),Bc=0,n.forEach(function(i){return i&&i.render&&i.render(-1)}),$t.forEach(function(i){mn(i)&&(i.smooth&&requestAnimationFrame(function(){return i.target.style.scrollBehavior="smooth"}),i.rec&&i(i.rec))}),_d(Hc,1),Mo.pause(),Rr++,pn=2,wi(2),Kt.forEach(function(i){return mn(i.vars.onRefresh)&&i.vars.onRefresh(i)}),pn=Qt.isRefreshing=!1,Lr("refresh")},kc=0,xo=1,ya,wi=function(t){if(t===2||!pn&&!So){Qt.isUpdating=!0,ya&&ya.update(0);var e=Kt.length,n=en(),i=n-Rc>=50,s=e&&Kt[0].scroll();if(xo=kc>s?-1:1,pn||(kc=s),i&&(Vn&&!wo&&n-Vn>200&&(Vn=0,Lr("scrollEnd")),ua=Rc,Rc=n),xo<0){for(dn=e;dn-- >0;)Kt[dn]&&Kt[dn].update(0,i);xo=1}else for(dn=0;dn<e;dn++)Kt[dn]&&Kt[dn].update(0,i);Qt.isUpdating=!1}Sa=0},Vc=[fd,dd,Xc,Wc,zn+va,zn+ga,zn+xa,zn+_a,"display","flexShrink","float","zIndex","gridColumnStart","gridColumnEnd","gridRowStart","gridRowEnd","gridArea","justifySelf","alignSelf","placeSelf","order"],vo=Vc.concat([Dr,Cr,"boxSizing","max"+ms,"max"+qc,"position",zn,Le,Le+xa,Le+ga,Le+va,Le+_a]),d_=function(t,e,n){ps(n);var i=t._gsap;if(i.spacerIsNative)ps(i.spacerState);else if(t._gsap.swappedIn){var s=e.parentNode;s&&(s.insertBefore(t,e),s.removeChild(e))}t._gsap.swappedIn=!1},Lc=function(t,e,n,i){if(!t._gsap.swappedIn){for(var s=Vc.length,a=e.style,o=t.style,l;s--;)l=Vc[s],a[l]=n[l];a.position=n.position==="absolute"?"absolute":"relative",n.display==="inline"&&(a.display="inline-block"),o[Xc]=o[Wc]="auto",a.flexBasis=n.flexBasis||"auto",a.overflow="visible",a.boxSizing="border-box",a[Dr]=bo(t,je)+Ne,a[Cr]=bo(t,Ie)+Ne,a[Le]=o[zn]=o[dd]=o[fd]="0",ps(i),o[Dr]=o["max"+ms]=n[Dr],o[Cr]=o["max"+qc]=n[Cr],o[Le]=n[Le],t.parentNode!==e&&(t.parentNode.insertBefore(e,t),e.appendChild(t)),t._gsap.swappedIn=!0}},p_=/([A-Z])/g,ps=function(t){if(t){var e=t.t.style,n=t.length,i=0,s,a;for((t.t._gsap||yt.core.getCache(t.t)).uncache=1;i<n;i+=2)a=t[i+1],s=t[i],a?e[s]=a:e[s]&&e.removeProperty(s.replace(p_,"-$1").toLowerCase())}},fo=function(t){for(var e=vo.length,n=t.style,i=[],s=0;s<e;s++)i.push(vo[s],n[vo[s]]);return i.t=t,i},m_=function(t,e,n){for(var i=[],s=t.length,a=n?8:0,o;a<s;a+=2)o=t[a],i.push(o,o in e?e[o]:t[a+1]);return i.t=t.t,i},yo={left:0,top:0},Kf=function(t,e,n,i,s,a,o,l,c,u,f,h,d,_){mn(t)&&(t=t(l)),Pn(t)&&t.substr(0,3)==="max"&&(t=h+(t.charAt(4)==="="?go("0"+t.substr(3),n):0));var g=d?d.time():0,p,m,S;if(d&&d.seek(0),isNaN(t)||(t=+t),da(t))d&&(t=yt.utils.mapRange(d.scrollTrigger.start,d.scrollTrigger.end,0,h,t)),o&&_o(o,n,i,!0);else{mn(e)&&(e=e(l));var v=(t||"0").split(" "),M,D,T,w;S=hn(e,l)||ge,M=Ei(S)||{},(!M||!M.left&&!M.top)&&kn(S).display==="none"&&(w=S.style.display,S.style.display="block",M=Ei(S),w?S.style.display=w:S.style.removeProperty("display")),D=go(v[0],M[i.d]),T=go(v[1]||"0",n),t=M[i.p]-c[i.p]-u+D+s-T,o&&_o(o,T,i,n-T<20||o._isStart&&T>20),n-=n-T}if(_&&(l[_]=t||-.001,t<0&&(t=0)),a){var P=t+n,y=a._isStart;p="scroll"+i.d2,_o(a,P,i,y&&P>20||!y&&(f?Math.max(ge[p],Kn[p]):a.parentNode[p])<=P+1),f&&(c=Ei(o),f&&(a.style[i.op.p]=c[i.op.p]-i.op.m-a._offset+Ne))}return d&&S&&(p=Ei(S),d.seek(h),m=Ei(S),d._caScrollDist=p[i.p]-m[i.p],t=t/d._caScrollDist*h),d&&d.seek(g),d?t:Math.round(t)},g_=/(webkit|moz|length|cssText|inset)/i,Qf=function(t,e,n,i){if(t.parentNode!==e){var s=t.style,a,o;if(e===ge){t._stOrig=s.cssText,o=kn(t);for(a in o)!+a&&!g_.test(a)&&o[a]&&typeof s[a]=="string"&&a!=="0"&&(s[a]=o[a]);s.top=n,s.left=i}else s.cssText=t._stOrig;yt.core.getCache(t).uncache=1,e.appendChild(t)}},vd=function(t,e,n){var i=e,s=i;return function(a){var o=Math.round(t());return o!==i&&o!==s&&Math.abs(o-i)>3&&Math.abs(o-s)>3&&(a=o,n&&n()),s=i,i=a,a}},po=function(t,e,n){var i={};i[e.p]="+="+n,yt.set(t,i)},jf=function(t,e){var n=Si(t,e),i="_scroll"+e.p2,s=function a(o,l,c,u,f){var h=a.tween,d=l.onComplete,_={};c=c||n();var g=vd(n,c,function(){h.kill(),a.tween=0});return f=u&&f||0,u=u||o-c,h&&h.kill(),l[i]=o,l.inherit=!1,l.modifiers=_,_[i]=function(){return g(c+u*h.ratio+f*h.ratio*h.ratio)},l.onUpdate=function(){$t.cache++,a.tween&&wi()},l.onComplete=function(){a.tween=0,d&&d.call(h)},h=a.tween=yt.to(t,l),h};return t[i]=n,n.wheelHandler=function(){return s.tween&&s.tween.kill()&&(s.tween=0)},He(t,"wheel",n.wheelHandler),Qt.isTouch&&He(t,"touchmove",n.wheelHandler),s},Qt=function(){function r(e,n){hs||r.register(yt)||console.warn("Please gsap.registerPlugin(ScrollTrigger)"),Oc(this),this.init(e,n)}var t=r.prototype;return t.init=function(n,i){if(this.progress=this.start=0,this.vars&&this.kill(!0,!0),!ha){this.update=this.refresh=this.kill=hi;return}n=qf(Pn(n)||da(n)||n.nodeType?{trigger:n}:n,uo);var s=n,a=s.onUpdate,o=s.toggleClass,l=s.id,c=s.onToggle,u=s.onRefresh,f=s.scrub,h=s.trigger,d=s.pin,_=s.pinSpacing,g=s.invalidateOnRefresh,p=s.anticipatePin,m=s.onScrubComplete,S=s.onSnapComplete,v=s.once,M=s.snap,D=s.pinReparent,T=s.pinSpacer,w=s.containerAnimation,P=s.fastScrollEnd,y=s.preventOverlaps,x=n.horizontal||n.containerAnimation&&n.horizontal!==!1?je:Ie,F=!f&&f!==0,I=hn(n.scroller||ne),R=yt.core.getCache(I),B=Pr(I),G=("pinType"in n?n.pinType:bi(I,"pinType")||B&&"fixed")==="fixed",Z=[n.onEnter,n.onLeave,n.onEnterBack,n.onLeaveBack],J=F&&n.toggleActions.split(" "),N="markers"in n?n.markers:uo.markers,Q=B?0:parseFloat(kn(I)["border"+x.p2+ms])||0,A=this,at=n.onRefreshInit&&function(){return n.onRefreshInit(A)},bt=a_(I,B,x),Zt=o_(I,B),X=0,tt=0,ft=0,nt=Si(I,x),It,Rt,O,Gt,St,Et,_t,Ft,Pt,z,jt,C,b,W,K,j,et,mt,lt,it,Lt,rt,Mt,Yt,gt,xt,Ut,Ht,ue,Nt,L,Y,$,ot,ct,Vt,se,ce,de;if(A._startClamp=A._endClamp=!1,A._dir=x,p*=45,A.scroller=I,A.scroll=w?w.time.bind(w):nt,Gt=nt(),A.vars=n,i=i||n.animation,"refreshPriority"in n&&(rd=1,n.refreshPriority===-9999&&(ya=A)),R.tweenScroll=R.tweenScroll||{top:jf(I,Ie),left:jf(I,je)},A.tweenTo=It=R.tweenScroll[x.p],A.scrubDuration=function(ut){$=da(ut)&&ut,$?Y?Y.duration(ut):Y=yt.to(i,{ease:"expo",totalProgress:"+=0",inherit:!1,duration:$,paused:!0,onComplete:function(){return m&&m(A)}}):(Y&&Y.progress(1).kill(),Y=0)},i&&(i.vars.lazy=!1,i._initted&&!A.isReverted||i.vars.immediateRender!==!1&&n.immediateRender!==!1&&i.duration()&&i.render(0,!0,!0),A.animation=i.pause(),i.scrollTrigger=A,A.scrubDuration(f),Nt=0,l||(l=i.vars.id)),M&&((!Tr(M)||M.push)&&(M={snapTo:M}),"scrollBehavior"in ge.style&&yt.set(B?[ge,Kn]:I,{scrollBehavior:"auto"}),$t.forEach(function(ut){return mn(ut)&&ut.target===(B?we.scrollingElement||Kn:I)&&(ut.smooth=!1)}),O=mn(M.snapTo)?M.snapTo:M.snapTo==="labels"?c_(i):M.snapTo==="labelsDirectional"?u_(i):M.directional!==!1?function(ut,kt){return Yc(M.snapTo)(ut,en()-tt<500?0:kt.direction)}:yt.utils.snap(M.snapTo),ot=M.duration||{min:.1,max:2},ot=Tr(ot)?ma(ot.min,ot.max):ma(ot,ot),ct=yt.delayedCall(M.delay||$/2||.1,function(){var ut=nt(),kt=en()-tt<500,At=It.tween;if((kt||Math.abs(A.getVelocity())<10)&&!At&&!wo&&X!==ut){var zt=(ut-Et)/W,Se=i&&!F?i.totalProgress():zt,Jt=kt?0:(Se-L)/(en()-ua)*1e3||0,xe=yt.utils.clamp(-zt,1-zt,cs(Jt/2)*Jt/.185),ze=zt+(M.inertia===!1?0:xe),ve,pe,E=M,U=E.onStart,k=E.onInterrupt,V=E.onComplete;if(ve=O(ze,A),da(ve)||(ve=ze),pe=Math.round(Et+ve*W),ut<=_t&&ut>=Et&&pe!==ut){if(At&&!At._initted&&At.data<=cs(pe-ut))return;M.inertia===!1&&(xe=ve-zt),It(pe,{duration:ot(cs(Math.max(cs(ze-Se),cs(ve-Se))*.185/Jt/.05||0)),ease:M.ease||"power3",data:cs(pe-ut),onInterrupt:function(){return ct.restart(!0)&&k&&k(A)},onComplete:function(){A.update(),X=nt(),i&&(Y?Y.resetTo("totalProgress",ve,i._tTime/i._tDur):i.progress(ve)),Nt=L=i&&!F?i.totalProgress():A.progress,S&&S(A),V&&V(A)}},ut,xe*W,pe-ut-xe*W),U&&U(A,It.tween)}}else A.isActive&&X!==ut&&ct.restart(!0)}).pause()),l&&(zc[l]=A),h=A.trigger=hn(h||d!==!0&&d),de=h&&h._gsap&&h._gsap.stRevert,de&&(de=de(A)),d=d===!0?h:hn(d),Pn(o)&&(o={targets:h,className:o}),d&&(_===!1||_===zn||(_=!_&&d.parentNode&&d.parentNode.style&&kn(d.parentNode).display==="flex"?!1:Le),A.pin=d,Rt=yt.core.getCache(d),Rt.spacer?K=Rt.pinState:(T&&(T=hn(T),T&&!T.nodeType&&(T=T.current||T.nativeElement),Rt.spacerIsNative=!!T,T&&(Rt.spacerState=fo(T))),Rt.spacer=mt=T||we.createElement("div"),mt.classList.add("pin-spacer"),l&&mt.classList.add("pin-spacer-"+l),Rt.pinState=K=fo(d)),n.force3D!==!1&&yt.set(d,{force3D:!0}),A.spacer=mt=Rt.spacer,ue=kn(d),Yt=ue[_+x.os2],it=yt.getProperty(d),Lt=yt.quickSetter(d,x.a,Ne),Lc(d,mt,ue),et=fo(d)),N){C=Tr(N)?qf(N,Yf):Yf,z=ho("scroller-start",l,I,x,C,0),jt=ho("scroller-end",l,I,x,C,0,z),lt=z["offset"+x.op.d2];var te=hn(bi(I,"content")||I);Ft=this.markerStart=ho("start",l,te,x,C,lt,0,w),Pt=this.markerEnd=ho("end",l,te,x,C,lt,0,w),w&&(ce=yt.quickSetter([Ft,Pt],x.a,Ne)),!G&&!($n.length&&bi(I,"fixedMarkers")===!0)&&(l_(B?ge:I),yt.set([z,jt],{force3D:!0}),xt=yt.quickSetter(z,x.a,Ne),Ht=yt.quickSetter(jt,x.a,Ne))}if(w){var Ct=w.vars.onUpdate,vt=w.vars.onUpdateParams;w.eventCallback("onUpdate",function(){A.update(0,0,1),Ct&&Ct.apply(w,vt||[])})}if(A.previous=function(){return Kt[Kt.indexOf(A)-1]},A.next=function(){return Kt[Kt.indexOf(A)+1]},A.revert=function(ut,kt){if(!kt)return A.kill(!0);var At=ut!==!1||!A.enabled,zt=tn;At!==A.isReverted&&(At&&(Vt=Math.max(nt(),A.scroll.rec||0),ft=A.progress,se=i&&i.progress()),Ft&&[Ft,Pt,z,jt].forEach(function(Se){return Se.style.display=At?"none":"block"}),At&&(tn=A,A.update(At)),d&&(!D||!A.isActive)&&(At?d_(d,mt,K):Lc(d,mt,kn(d),gt)),At||A.update(At),tn=zt,A.isReverted=At)},A.refresh=function(ut,kt,At,zt){if(!((tn||!A.enabled)&&!kt)){if(d&&ut&&Vn){He(r,"scrollEnd",md);return}!pn&&at&&at(A),tn=A,It.tween&&!At&&(It.tween.kill(),It.tween=0),Y&&Y.pause(),g&&i&&i.revert({kill:!1}).invalidate(),A.isReverted||A.revert(!0,!0),A._subPinOffset=!1;var Se=bt(),Jt=Zt(),xe=w?w.duration():fi(I,x),ze=W<=.01,ve=0,pe=zt||0,E=Tr(At)?At.end:n.end,U=n.endTrigger||h,k=Tr(At)?At.start:n.start||(n.start===0||!h?0:d?"0 0":"0 100%"),V=A.pinnedContainer=n.pinnedContainer&&hn(n.pinnedContainer,A),H=h&&Math.max(0,Kt.indexOf(A))||0,st=H,ht,pt,Dt,Bt,Tt,wt,oe,Pe,Ze,an,Wt,Ot,si;for(N&&Tr(At)&&(Ot=yt.getProperty(z,x.p),si=yt.getProperty(jt,x.p));st--;)wt=Kt[st],wt.end||wt.refresh(0,1)||(tn=A),oe=wt.pin,oe&&(oe===h||oe===d||oe===V)&&!wt.isReverted&&(an||(an=[]),an.unshift(wt),wt.revert(!0,!0)),wt!==Kt[st]&&(H--,st--);for(mn(k)&&(k=k(A)),k=Hf(k,"start",A),Et=Kf(k,h,Se,x,nt(),Ft,z,A,Jt,Q,G,xe,w,A._startClamp&&"_startClamp")||(d?-.001:0),mn(E)&&(E=E(A)),Pn(E)&&!E.indexOf("+=")&&(~E.indexOf(" ")?E=(Pn(k)?k.split(" ")[0]:"")+E:(ve=go(E.substr(2),Se),E=Pn(k)?k:(w?yt.utils.mapRange(0,w.duration(),w.scrollTrigger.start,w.scrollTrigger.end,Et):Et)+ve,U=h)),E=Hf(E,"end",A),_t=Math.max(Et,Kf(E||(U?"100% 0":xe),U,Se,x,nt()+ve,Pt,jt,A,Jt,Q,G,xe,w,A._endClamp&&"_endClamp"))||-.001,ve=0,st=H;st--;)wt=Kt[st],oe=wt.pin,oe&&wt.start-wt._pinPush<=Et&&!w&&wt.end>0&&(ht=wt.end-(A._startClamp?Math.max(0,wt.start):wt.start),(oe===h&&wt.start-wt._pinPush<Et||oe===V)&&isNaN(k)&&(ve+=ht*(1-wt.progress)),oe===d&&(pe+=ht));if(Et+=ve,_t+=ve,A._startClamp&&(A._startClamp+=ve),A._endClamp&&!pn&&(A._endClamp=_t||-.001,_t=Math.min(_t,fi(I,x))),W=_t-Et||(Et-=.01)&&.001,ze&&(ft=yt.utils.clamp(0,1,yt.utils.normalize(Et,_t,Vt))),A._pinPush=pe,Ft&&ve&&(ht={},ht[x.a]="+="+ve,V&&(ht[x.p]="-="+nt()),yt.set([Ft,Pt],ht)),d&&!(Bc&&A.end>=fi(I,x)))ht=kn(d),Bt=x===Ie,Dt=nt(),rt=parseFloat(it(x.a))+pe,!xe&&_t>1&&(Wt=(B?we.scrollingElement||Kn:I).style,Wt={style:Wt,value:Wt["overflow"+x.a.toUpperCase()]},B&&kn(ge)["overflow"+x.a.toUpperCase()]!=="scroll"&&(Wt.style["overflow"+x.a.toUpperCase()]="scroll")),Lc(d,mt,ht),et=fo(d),pt=Ei(d,!0),Pe=G&&Si(I,Bt?je:Ie)(),_?(gt=[_+x.os2,W+pe+Ne],gt.t=mt,st=_===Le?bo(d,x)+W+pe:0,st&&(gt.push(x.d,st+Ne),mt.style.flexBasis!=="auto"&&(mt.style.flexBasis=st+Ne)),ps(gt),V&&Kt.forEach(function(le){le.pin===V&&le.vars.pinSpacing!==!1&&(le._subPinOffset=!0)}),G&&nt(Vt)):(st=bo(d,x),st&&mt.style.flexBasis!=="auto"&&(mt.style.flexBasis=st+Ne)),G&&(Tt={top:pt.top+(Bt?Dt-Et:Pe)+Ne,left:pt.left+(Bt?Pe:Dt-Et)+Ne,boxSizing:"border-box",position:"fixed"},Tt[Dr]=Tt["max"+ms]=Math.ceil(pt.width)+Ne,Tt[Cr]=Tt["max"+qc]=Math.ceil(pt.height)+Ne,Tt[zn]=Tt[zn+xa]=Tt[zn+ga]=Tt[zn+va]=Tt[zn+_a]="0",Tt[Le]=ht[Le],Tt[Le+xa]=ht[Le+xa],Tt[Le+ga]=ht[Le+ga],Tt[Le+va]=ht[Le+va],Tt[Le+_a]=ht[Le+_a],j=m_(K,Tt,D),pn&&nt(0)),i?(Ze=i._initted,Dc(1),i.render(i.duration(),!0,!0),Mt=it(x.a)-rt+W+pe,Ut=Math.abs(W-Mt)>1,G&&Ut&&j.splice(j.length-2,2),i.render(0,!0,!0),Ze||i.invalidate(!0),i.parent||i.totalTime(i.totalTime()),Dc(0)):Mt=W,Wt&&(Wt.value?Wt.style["overflow"+x.a.toUpperCase()]=Wt.value:Wt.style.removeProperty("overflow-"+x.a));else if(h&&nt()&&!w)for(pt=h.parentNode;pt&&pt!==ge;)pt._pinOffset&&(Et-=pt._pinOffset,_t-=pt._pinOffset),pt=pt.parentNode;an&&an.forEach(function(le){return le.revert(!1,!0)}),A.start=Et,A.end=_t,Gt=St=pn?Vt:nt(),!w&&!pn&&(Gt<Vt&&nt(Vt),A.scroll.rec=0),A.revert(!1,!0),tt=en(),ct&&(X=-1,ct.restart(!0)),tn=0,i&&F&&(i._initted||se)&&i.progress()!==se&&i.progress(se||0,!0).render(i.time(),!0,!0),(ze||ft!==A.progress||w||g)&&(i&&!F&&i.totalProgress(w&&Et<-.001&&!ft?yt.utils.normalize(Et,_t,0):ft,!0),A.progress=ze||(Gt-Et)/W===ft?0:ft),d&&_&&(mt._pinOffset=Math.round(A.progress*Mt)),Y&&Y.invalidate(),isNaN(Ot)||(Ot-=yt.getProperty(z,x.p),si-=yt.getProperty(jt,x.p),po(z,x,Ot),po(Ft,x,Ot-(zt||0)),po(jt,x,si),po(Pt,x,si-(zt||0))),ze&&!pn&&A.update(),u&&!pn&&!b&&(b=!0,u(A),b=!1)}},A.getVelocity=function(){return(nt()-St)/(en()-ua)*1e3||0},A.endAnimation=function(){ca(A.callbackAnimation),i&&(Y?Y.progress(1):i.paused()?F||ca(i,A.direction<0,1):ca(i,i.reversed()))},A.labelToScroll=function(ut){return i&&i.labels&&(Et||A.refresh()||Et)+i.labels[ut]/i.duration()*W||0},A.getTrailing=function(ut){var kt=Kt.indexOf(A),At=A.direction>0?Kt.slice(0,kt).reverse():Kt.slice(kt+1);return(Pn(ut)?At.filter(function(zt){return zt.vars.preventOverlaps===ut}):At).filter(function(zt){return A.direction>0?zt.end<=Et:zt.start>=_t})},A.update=function(ut,kt,At){if(!(w&&!At&&!ut)){var zt=pn===!0?Vt:A.scroll(),Se=ut?0:(zt-Et)/W,Jt=Se<0?0:Se>1?1:Se||0,xe=A.progress,ze,ve,pe,E,U,k,V,H;if(kt&&(St=Gt,Gt=w?nt():zt,M&&(L=Nt,Nt=i&&!F?i.totalProgress():Jt)),p&&d&&!tn&&!ao&&Vn&&(!Jt&&Et<zt+(zt-St)/(en()-ua)*p?Jt=1e-4:Jt===1&&_t>zt+(zt-St)/(en()-ua)*p&&(Jt=.9999)),Jt!==xe&&A.enabled){if(ze=A.isActive=!!Jt&&Jt<1,ve=!!xe&&xe<1,k=ze!==ve,U=k||!!Jt!=!!xe,A.direction=Jt>xe?1:-1,A.progress=Jt,U&&!tn&&(pe=Jt&&!xe?0:Jt===1?1:xe===1?2:3,F&&(E=!k&&J[pe+1]!=="none"&&J[pe+1]||J[pe],H=i&&(E==="complete"||E==="reset"||E in i))),y&&(k||H)&&(H||f||!i)&&(mn(y)?y(A):A.getTrailing(y).forEach(function(Dt){return Dt.endAnimation()})),F||(Y&&!tn&&!ao?(Y._dp._time-Y._start!==Y._time&&Y.render(Y._dp._time-Y._start),Y.resetTo?Y.resetTo("totalProgress",Jt,i._tTime/i._tDur):(Y.vars.totalProgress=Jt,Y.invalidate().restart())):i&&i.totalProgress(Jt,!!(tn&&(tt||ut)))),d){if(ut&&_&&(mt.style[_+x.os2]=Yt),!G)Lt(fa(rt+Mt*Jt));else if(U){if(V=!ut&&Jt>xe&&_t+1>zt&&zt+1>=fi(I,x),D)if(!ut&&(ze||V)){var st=Ei(d,!0),ht=zt-Et;Qf(d,ge,st.top+(x===Ie?ht:0)+Ne,st.left+(x===Ie?0:ht)+Ne)}else Qf(d,mt);ps(ze||V?j:et),Ut&&Jt<1&&ze||Lt(rt+(Jt===1&&!V?Mt:0))}}M&&!It.tween&&!tn&&!ao&&ct.restart(!0),o&&(k||v&&Jt&&(Jt<1||!Cc))&&Ma(o.targets).forEach(function(Dt){return Dt.classList[ze||v?"add":"remove"](o.className)}),a&&!F&&!ut&&a(A),U&&!tn?(F&&(H&&(E==="complete"?i.pause().totalProgress(1):E==="reset"?i.restart(!0).pause():E==="restart"?i.restart(!0):i[E]()),a&&a(A)),(k||!Cc)&&(c&&k&&Pc(A,c),Z[pe]&&Pc(A,Z[pe]),v&&(Jt===1?A.kill(!1,1):Z[pe]=0),k||(pe=Jt===1?1:3,Z[pe]&&Pc(A,Z[pe]))),P&&!ze&&Math.abs(A.getVelocity())>(da(P)?P:2500)&&(ca(A.callbackAnimation),Y?Y.progress(1):ca(i,E==="reverse"?1:!Jt,1))):F&&a&&!tn&&a(A)}if(Ht){var pt=w?zt/w.duration()*(w._caScrollDist||0):zt;xt(pt+(z._isFlipped?1:0)),Ht(pt)}ce&&ce(-zt/w.duration()*(w._caScrollDist||0))}},A.enable=function(ut,kt){A.enabled||(A.enabled=!0,He(I,"resize",pa),B||He(I,"scroll",us),at&&He(r,"refreshInit",at),ut!==!1&&(A.progress=ft=0,Gt=St=X=nt()),kt!==!1&&A.refresh())},A.getTween=function(ut){return ut&&It?It.tween:Y},A.setPositions=function(ut,kt,At,zt){if(w){var Se=w.scrollTrigger,Jt=w.duration(),xe=Se.end-Se.start;ut=Se.start+xe*ut/Jt,kt=Se.start+xe*kt/Jt}A.refresh(!1,!1,{start:Gf(ut,At&&!!A._startClamp),end:Gf(kt,At&&!!A._endClamp)},zt),A.update()},A.adjustPinSpacing=function(ut){if(gt&&ut){var kt=gt.indexOf(x.d)+1;gt[kt]=parseFloat(gt[kt])+ut+Ne,gt[1]=parseFloat(gt[1])+ut+Ne,ps(gt)}},A.disable=function(ut,kt){if(A.enabled&&(ut!==!1&&A.revert(!0,!0),A.enabled=A.isActive=!1,kt||Y&&Y.pause(),Vt=0,Rt&&(Rt.uncache=1),at&&Ve(r,"refreshInit",at),ct&&(ct.pause(),It.tween&&It.tween.kill()&&(It.tween=0)),!B)){for(var At=Kt.length;At--;)if(Kt[At].scroller===I&&Kt[At]!==A)return;Ve(I,"resize",pa),B||Ve(I,"scroll",us)}},A.kill=function(ut,kt){A.disable(ut,kt),Y&&!kt&&Y.kill(),l&&delete zc[l];var At=Kt.indexOf(A);At>=0&&Kt.splice(At,1),At===dn&&xo>0&&dn--,At=0,Kt.forEach(function(zt){return zt.scroller===A.scroller&&(At=1)}),At||pn||(A.scroll.rec=0),i&&(i.scrollTrigger=null,ut&&i.revert({kill:!1}),kt||i.kill()),Ft&&[Ft,Pt,z,jt].forEach(function(zt){return zt.parentNode&&zt.parentNode.removeChild(zt)}),ya===A&&(ya=0),d&&(Rt&&(Rt.uncache=1),At=0,Kt.forEach(function(zt){return zt.pin===d&&At++}),At||(Rt.spacer=0)),n.onKill&&n.onKill(A)},Kt.push(A),A.enable(!1,!1),de&&de(A),i&&i.add&&!W){var ie=A.update;A.update=function(){A.update=ie,Et||_t||A.refresh()},yt.delayedCall(.01,A.update),W=.01,Et=_t=0}else A.refresh();d&&f_()},r.register=function(n){return hs||(yt=n||cd(),ld()&&window.document&&r.enable(),hs=ha),hs},r.defaults=function(n){if(n)for(var i in n)uo[i]=n[i];return uo},r.disable=function(n,i){ha=0,Kt.forEach(function(a){return a[i?"kill":"disable"](n)}),Ve(ne,"wheel",us),Ve(we,"scroll",us),clearInterval(so),Ve(we,"touchcancel",hi),Ve(ge,"touchstart",hi),lo(Ve,we,"pointerdown,touchstart,mousedown",Wf),lo(Ve,we,"pointerup,touchend,mouseup",Xf),Mo.kill(),oo(Ve);for(var s=0;s<$t.length;s+=3)co(Ve,$t[s],$t[s+1]),co(Ve,$t[s],$t[s+2])},r.enable=function(){if(ne=window,we=document,Kn=we.documentElement,ge=we.body,yt&&(Ma=yt.utils.toArray,ma=yt.utils.clamp,Oc=yt.core.context||hi,Dc=yt.core.suppressOverwrites||hi,Hc=ne.history.scrollRestoration||"auto",kc=ne.pageYOffset,yt.core.globals("ScrollTrigger",r),ge)){ha=1,ds=document.createElement("div"),ds.style.height="100vh",ds.style.position="absolute",xd(),s_(),De.register(yt),r.isTouch=De.isTouch,Zi=De.isTouch&&/(iPad|iPhone|iPod|Mac)/g.test(navigator.userAgent),Nc=De.isTouch===1,He(ne,"wheel",us),id=[ne,we,Kn,ge],yt.matchMedia?(r.matchMedia=function(l){var c=yt.matchMedia(),u;for(u in l)c.add(u,l[u]);return c},yt.addEventListener("matchMediaInit",function(){return Zc()}),yt.addEventListener("matchMediaRevert",function(){return gd()}),yt.addEventListener("matchMedia",function(){Ar(0,1),Lr("matchMedia")}),yt.matchMedia("(orientation: portrait)",function(){return Ic(),Ic})):console.warn("Requires GSAP 3.11.0 or later"),Ic(),He(we,"scroll",us);var n=ge.style,i=n.borderTopStyle,s=yt.core.Animation.prototype,a,o;for(s.revert||Object.defineProperty(s,"revert",{value:function(){return this.time(-.01,!0)}}),n.borderTopStyle="solid",a=Ei(ge),Ie.m=Math.round(a.top+Ie.sc())||0,je.m=Math.round(a.left+je.sc())||0,i?n.borderTopStyle=i:n.removeProperty("border-top-style"),so=setInterval(Zf,250),yt.delayedCall(.5,function(){return ao=0}),He(we,"touchcancel",hi),He(ge,"touchstart",hi),lo(He,we,"pointerdown,touchstart,mousedown",Wf),lo(He,we,"pointerup,touchend,mouseup",Xf),Uc=yt.utils.checkPrefix("transform"),vo.push(Uc),hs=en(),Mo=yt.delayedCall(.2,Ar).pause(),fs=[we,"visibilitychange",function(){var l=ne.innerWidth,c=ne.innerHeight;we.hidden?(kf=l,Vf=c):(kf!==l||Vf!==c)&&pa()},we,"DOMContentLoaded",Ar,ne,"load",Ar,ne,"resize",pa],oo(He),Kt.forEach(function(l){return l.enable(0,1)}),o=0;o<$t.length;o+=3)co(Ve,$t[o],$t[o+1]),co(Ve,$t[o],$t[o+2])}},r.config=function(n){"limitCallbacks"in n&&(Cc=!!n.limitCallbacks);var i=n.syncInterval;i&&clearInterval(so)||(so=i)&&setInterval(Zf,i),"ignoreMobileResize"in n&&(Nc=r.isTouch===1&&n.ignoreMobileResize),"autoRefreshEvents"in n&&(oo(Ve)||oo(He,n.autoRefreshEvents||"none"),sd=(n.autoRefreshEvents+"").indexOf("resize")===-1)},r.scrollerProxy=function(n,i){var s=hn(n),a=$t.indexOf(s),o=Pr(s);~a&&$t.splice(a,o?6:2),i&&(o?$n.unshift(ne,i,ge,i,Kn,i):$n.unshift(s,i))},r.clearMatchMedia=function(n){Kt.forEach(function(i){return i._ctx&&i._ctx.query===n&&i._ctx.kill(!0,!0)})},r.isInViewport=function(n,i,s){var a=(Pn(n)?hn(n):n).getBoundingClientRect(),o=a[s?Dr:Cr]*i||0;return s?a.right-o>0&&a.left+o<ne.innerWidth:a.bottom-o>0&&a.top+o<ne.innerHeight},r.positionInViewport=function(n,i,s){Pn(n)&&(n=hn(n));var a=n.getBoundingClientRect(),o=a[s?Dr:Cr],l=i==null?o/2:i in Eo?Eo[i]*o:~i.indexOf("%")?parseFloat(i)*o/100:parseFloat(i)||0;return s?(a.left+l)/ne.innerWidth:(a.top+l)/ne.innerHeight},r.killAll=function(n){if(Kt.slice(0).forEach(function(s){return s.vars.id!=="ScrollSmoother"&&s.kill()}),n!==!0){var i=Ir.killAll||[];Ir={},i.forEach(function(s){return s()})}},r}();Qt.version="3.12.5";Qt.saveStyles=function(r){return r?Ma(r).forEach(function(t){if(t&&t.style){var e=Rn.indexOf(t);e>=0&&Rn.splice(e,5),Rn.push(t,t.style.cssText,t.getBBox&&t.getAttribute("transform"),yt.core.getCache(t),Oc())}}):Rn};Qt.revert=function(r,t){return Zc(!r,t)};Qt.create=function(r,t){return new Qt(r,t)};Qt.refresh=function(r){return r?pa():(hs||Qt.register())&&Ar(!0)};Qt.update=function(r){return++$t.cache&&wi(r===!0?2:0)};Qt.clearScrollMemory=_d;Qt.maxScroll=function(r,t){return fi(r,t?je:Ie)};Qt.getScrollFunc=function(r,t){return Si(hn(r),t?je:Ie)};Qt.getById=function(r){return zc[r]};Qt.getAll=function(){return Kt.filter(function(r){return r.vars.id!=="ScrollSmoother"})};Qt.isScrolling=function(){return!!Vn};Qt.snapDirectional=Yc;Qt.addEventListener=function(r,t){var e=Ir[r]||(Ir[r]=[]);~e.indexOf(t)||e.push(t)};Qt.removeEventListener=function(r,t){var e=Ir[r],n=e&&e.indexOf(t);n>=0&&e.splice(n,1)};Qt.batch=function(r,t){var e=[],n={},i=t.interval||.016,s=t.batchMax||1e9,a=function(c,u){var f=[],h=[],d=yt.delayedCall(i,function(){u(f,h),f=[],h=[]}).pause();return function(_){f.length||d.restart(!0),f.push(_.trigger),h.push(_),s<=f.length&&d.progress(1)}},o;for(o in t)n[o]=o.substr(0,2)==="on"&&mn(t[o])&&o!=="onRefreshInit"?a(o,t[o]):t[o];return mn(s)&&(s=s(),He(Qt,"refresh",function(){return s=t.batchMax()})),Ma(r).forEach(function(l){var c={};for(o in n)c[o]=n[o];c.trigger=l,e.push(Qt.create(c))}),e};var td=function(t,e,n,i){return e>i?t(i):e<0&&t(0),n>i?(i-e)/(n-e):n<0?e/(e-n):1},Fc=function r(t,e){e===!0?t.style.removeProperty("touch-action"):t.style.touchAction=e===!0?"auto":e?"pan-"+e+(De.isTouch?" pinch-zoom":""):"none",t===Kn&&r(ge,e)},mo={auto:1,scroll:1},__=function(t){var e=t.event,n=t.target,i=t.axis,s=(e.changedTouches?e.changedTouches[0]:e).target,a=s._gsap||yt.core.getCache(s),o=en(),l;if(!a._isScrollT||o-a._isScrollT>2e3){for(;s&&s!==ge&&(s.scrollHeight<=s.clientHeight&&s.scrollWidth<=s.clientWidth||!(mo[(l=kn(s)).overflowY]||mo[l.overflowX]));)s=s.parentNode;a._isScroll=s&&s!==n&&!Pr(s)&&(mo[(l=kn(s)).overflowY]||mo[l.overflowX]),a._isScrollT=o}(a._isScroll||i==="x")&&(e.stopPropagation(),e._gsapAllow=!0)},yd=function(t,e,n,i){return De.create({target:t,capture:!0,debounce:!1,lockAxis:!0,type:e,onWheel:i=i&&__,onPress:i,onDrag:i,onScroll:i,onEnable:function(){return n&&He(we,De.eventTypes[0],nd,!1,!0)},onDisable:function(){return Ve(we,De.eventTypes[0],nd,!0)}})},x_=/(input|label|select|textarea)/i,ed,nd=function(t){var e=x_.test(t.target.tagName);(e||ed)&&(t._gsapAllow=!0,ed=e)},v_=function(t){Tr(t)||(t={}),t.preventDefault=t.isNormalizer=t.allowClicks=!0,t.type||(t.type="wheel,touch"),t.debounce=!!t.debounce,t.id=t.id||"normalizer";var e=t,n=e.normalizeScrollX,i=e.momentum,s=e.allowNestedScroll,a=e.onRelease,o,l,c=hn(t.target)||Kn,u=yt.core.globals().ScrollSmoother,f=u&&u.get(),h=Zi&&(t.content&&hn(t.content)||f&&t.content!==!1&&!f.smooth()&&f.content()),d=Si(c,Ie),_=Si(c,je),g=1,p=(De.isTouch&&ne.visualViewport?ne.visualViewport.scale*ne.visualViewport.width:ne.outerWidth)/ne.innerWidth,m=0,S=mn(i)?function(){return i(o)}:function(){return i||2.8},v,M,D=yd(c,t.type,!0,s),T=function(){return M=!1},w=hi,P=hi,y=function(){l=fi(c,Ie),P=ma(Zi?1:0,l),n&&(w=ma(0,fi(c,je))),v=Rr},x=function(){h._gsap.y=fa(parseFloat(h._gsap.y)+d.offset)+"px",h.style.transform="matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, "+parseFloat(h._gsap.y)+", 0, 1)",d.offset=d.cacheID=0},F=function(){if(M){requestAnimationFrame(T);var N=fa(o.deltaY/2),Q=P(d.v-N);if(h&&Q!==d.v+d.offset){d.offset=Q-d.v;var A=fa((parseFloat(h&&h._gsap.y)||0)-d.offset);h.style.transform="matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, "+A+", 0, 1)",h._gsap.y=A+"px",d.cacheID=$t.cache,wi()}return!0}d.offset&&x(),M=!0},I,R,B,G,Z=function(){y(),I.isActive()&&I.vars.scrollY>l&&(d()>l?I.progress(1)&&d(l):I.resetTo("scrollY",l))};return h&&yt.set(h,{y:"+=0"}),t.ignoreCheck=function(J){return Zi&&J.type==="touchmove"&&F(J)||g>1.05&&J.type!=="touchstart"||o.isGesturing||J.touches&&J.touches.length>1},t.onPress=function(){M=!1;var J=g;g=fa((ne.visualViewport&&ne.visualViewport.scale||1)/p),I.pause(),J!==g&&Fc(c,g>1.01?!0:n?!1:"x"),R=_(),B=d(),y(),v=Rr},t.onRelease=t.onGestureStart=function(J,N){if(d.offset&&x(),!N)G.restart(!0);else{$t.cache++;var Q=S(),A,at;n&&(A=_(),at=A+Q*.05*-J.velocityX/.227,Q*=td(_,A,at,fi(c,je)),I.vars.scrollX=w(at)),A=d(),at=A+Q*.05*-J.velocityY/.227,Q*=td(d,A,at,fi(c,Ie)),I.vars.scrollY=P(at),I.invalidate().duration(Q).play(.01),(Zi&&I.vars.scrollY>=l||A>=l-1)&&yt.to({},{onUpdate:Z,duration:Q})}a&&a(J)},t.onWheel=function(){I._ts&&I.pause(),en()-m>1e3&&(v=0,m=en())},t.onChange=function(J,N,Q,A,at){if(Rr!==v&&y(),N&&n&&_(w(A[2]===N?R+(J.startX-J.x):_()+N-A[1])),Q){d.offset&&x();var bt=at[2]===Q,Zt=bt?B+J.startY-J.y:d()+Q-at[1],X=P(Zt);bt&&Zt!==X&&(B+=X-Zt),d(X)}(Q||N)&&wi()},t.onEnable=function(){Fc(c,n?!1:"x"),Qt.addEventListener("refresh",Z),He(ne,"resize",Z),d.smooth&&(d.target.style.scrollBehavior="auto",d.smooth=_.smooth=!1),D.enable()},t.onDisable=function(){Fc(c,!0),Ve(ne,"resize",Z),Qt.removeEventListener("refresh",Z),D.kill()},t.lockAxis=t.lockAxis!==!1,o=new De(t),o.iOS=Zi,Zi&&!d()&&d(1),Zi&&yt.ticker.add(hi),G=o._dc,I=yt.to(o,{ease:"power4",paused:!0,inherit:!1,scrollX:n?"+=0.1":"+=0",scrollY:"+=0.1",modifiers:{scrollY:vd(d,d(),function(){return I.pause()})},onUpdate:wi,onComplete:G.vars.onComplete}),o};Qt.sort=function(r){return Kt.sort(r||function(t,e){return(t.vars.refreshPriority||0)*-1e6+t.start-(e.start+(e.vars.refreshPriority||0)*-1e6)})};Qt.observe=function(r){return new De(r)};Qt.normalizeScroll=function(r){if(typeof r>"u")return fn;if(r===!0&&fn)return fn.enable();if(r===!1){fn&&fn.kill(),fn=r;return}var t=r instanceof De?r:v_(r);return fn&&fn.target===t.target&&fn.kill(),Pr(t.target)&&(fn=t),t};Qt.core={_getVelocityProp:ro,_inputObserver:yd,_scrollers:$t,_proxies:$n,bridge:{ss:function(){Vn||Lr("scrollStart"),Vn=en()},ref:function(){return tn}}};cd()&&yt.registerPlugin(Qt);bn.registerPlugin(Qt);var Md=()=>{[{wrapperSelector:".prx-steps-wrap",itemSelector:".prx-step-box"},{wrapperSelector:".prx-trust_grid",itemSelector:".prx-trust-box"},{wrapperSelector:".prx-areas_wrapper",itemSelector:".prx-areas_item"}].forEach(({wrapperSelector:t,itemSelector:e})=>{let n=document.querySelector(t);if(!n)return;let i=n.querySelectorAll(e);i.length&&(bn.set(i,{opacity:0,y:48}),bn.timeline({scrollTrigger:{trigger:n,start:"top bottom-=12%",toggleActions:"play none none reverse"}}).to(i,{opacity:1,y:0,duration:.7,ease:"power2.out",stagger:.22}))})};var y_=/(?:^\s+|\s+$)/g,M_=/([\uD800-\uDBFF][\uDC00-\uDFFF](?:[\u200D\uFE0F][\uD800-\uDBFF][\uDC00-\uDFFF]){2,}|\uD83D\uDC69(?:\u200D(?:(?:\uD83D\uDC69\u200D)?\uD83D\uDC67|(?:\uD83D\uDC69\u200D)?\uD83D\uDC66)|\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC69\u200D(?:\uD83D\uDC69\u200D)?\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D(?:\uD83D\uDC69\u200D)?\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]\uFE0F|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC6F\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3C-\uDD3E\uDDD6-\uDDDF])\u200D[\u2640\u2642]\uFE0F|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF6\uD83C\uDDE6|\uD83C\uDDF4\uD83C\uDDF2|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uFE0F\u200D[\u2640\u2642]|(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642])\uFE0F|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2695\u2696\u2708]|\uD83D\uDC69\u200D[\u2695\u2696\u2708]|\uD83D\uDC68(?:(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708]))\uFE0F|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83D\uDC69\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69]))|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|[#\*0-9]\uFE0F\u20E3|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67)\uDB40\uDC7F|\uD83D\uDC68(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:(?:\uD83D[\uDC68\uDC69])\u200D)?\uD83D\uDC66\u200D\uD83D\uDC66|(?:(?:\uD83D[\uDC68\uDC69])\u200D)?\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92])|(?:\uD83C[\uDFFB-\uDFFF])\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]))|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270A-\u270D]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC70\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDCAA\uDD74\uDD7A\uDD90\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD36\uDDD1-\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\u200D(?:(?:(?:\uD83D[\uDC68\uDC69])\u200D)?\uD83D\uDC67|(?:(?:\uD83D[\uDC68\uDC69])\u200D)?\uD83D\uDC66)|\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC69\uDC6E\uDC70-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD18-\uDD1C\uDD1E\uDD1F\uDD26\uDD30-\uDD39\uDD3D\uDD3E\uDDD1-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])?|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDEEB\uDEEC\uDEF4-\uDEF8]|\uD83E[\uDD10-\uDD3A\uDD3C-\uDD3E\uDD40-\uDD45\uDD47-\uDD4C\uDD50-\uDD6B\uDD80-\uDD97\uDDC0\uDDD0-\uDDE6])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u2660\u2663\u2665\u2666\u2668\u267B\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEF8]|\uD83E[\uDD10-\uDD3A\uDD3C-\uDD3E\uDD40-\uDD45\uDD47-\uDD4C\uDD50-\uDD6B\uDD80-\uDD97\uDDC0\uDDD0-\uDDE6])\uFE0F)/;function To(r){var t=r.nodeType,e="";if(t===1||t===9||t===11){if(typeof r.textContent=="string")return r.textContent;for(r=r.firstChild;r;r=r.nextSibling)e+=To(r)}else if(t===3||t===4)return r.nodeValue;return e}function Qn(r,t,e,n){if(r+="",e&&(r=r.trim?r.trim():r.replace(y_,"")),t&&t!=="")return r.replace(/>/g,">").replace(/</g,"<").split(t);for(var i=[],s=r.length,a=0,o,l;a<s;a++)l=r.charAt(a),(l.charCodeAt(0)>=55296&&l.charCodeAt(0)<=56319||r.charCodeAt(a+1)>=65024&&r.charCodeAt(a+1)<=65039)&&(o=((r.substr(a,12).split(M_)||[])[1]||"").length||2,l=r.substr(a,o),i.emoji=1,a+=o-1),i.push(l===">"?">":l==="<"?"<":n&&l===" "&&(r.charAt(a-1)===" "||r.charAt(a+1)===" ")?" ":l);return i}var Ao=function(){function r(e){this.chars=Qn(e),this.sets=[],this.length=50;for(var n=0;n<20;n++)this.sets[n]=bd(80,this.chars)}var t=r.prototype;return t.grow=function(n){for(var i=0;i<20;i++)this.sets[i]+=bd(n-this.length,this.chars);this.length=n},r}(),Fr,Td,Ad=function(){return Fr||typeof window<"u"&&(Fr=window.gsap)&&Fr.registerPlugin&&Fr},S_=1,Sd=/\s+/g,bd=function(t,e){for(var n=e.length,i="";--t>-1;)i+=e[~~(Math.random()*n)];return i},Jc="ABCDEFGHIJKLMNOPQRSTUVWXYZ",Ed=Jc.toLowerCase(),b_={upperCase:new Ao(Jc),lowerCase:new Ao(Ed),upperAndLowerCase:new Ao(Jc+Ed)},wd=function(){Td=Fr=Ad()},ba={version:"3.12.5",name:"scrambleText",register:function(t,e,n){Fr=t,wd()},init:function(t,e,n,i,s){if(Td||wd(),this.prop="innerHTML"in t?"innerHTML":"textContent"in t?"textContent":0,!!this.prop){this.target=t,typeof e!="object"&&(e={text:e});var a=e.text||e.value||"",o=e.trim!==!1,l=this,c,u,f,h;return l.delimiter=c=e.delimiter||"",l.original=Qn(To(t).replace(Sd," ").split(" ").join(""),c,o),(a==="{original}"||a===!0||a==null)&&(a=l.original.join(c)),l.text=Qn((a||"").replace(Sd," "),c,o),l.hasClass=!!(e.newClass||e.oldClass),l.newClass=e.newClass,l.oldClass=e.oldClass,h=c==="",l.textHasEmoji=h&&!!l.text.emoji,l.charsHaveEmoji=!!e.chars&&!!Qn(e.chars).emoji,l.length=h?l.original.length:l.original.join(c).length,l.lengthDif=(h?l.text.length:l.text.join(c).length)-l.length,l.fillChar=e.fillChar||e.chars&&~e.chars.indexOf(" ")?" ":"",l.charSet=f=b_[e.chars||"upperCase"]||new Ao(e.chars),l.speed=.05/(e.speed||1),l.prevScrambleTime=0,l.setIndex=Math.random()*20|0,u=l.length+Math.max(l.lengthDif,0),u>f.length&&f.grow(u),l.chars=f.sets[l.setIndex],l.revealDelay=e.revealDelay||0,l.tweenLength=e.tweenLength!==!1,l.tween=n,l.rightToLeft=!!e.rightToLeft,l._props.push("scrambleText","text"),S_}},render:function(t,e){var n=e.target,i=e.prop,s=e.text,a=e.delimiter,o=e.tween,l=e.prevScrambleTime,c=e.revealDelay,u=e.setIndex,f=e.chars,h=e.charSet,d=e.length,_=e.textHasEmoji,g=e.charsHaveEmoji,p=e.lengthDif,m=e.tweenLength,S=e.oldClass,v=e.newClass,M=e.rightToLeft,D=e.fillChar,T=e.speed,w=e.original,P=e.hasClass,y=s.length,x=o._time,F=x-l,I,R,B,G,Z,J,N,Q,A,at,bt;c&&(o._from&&(x=o._dur-x),t=x===0?0:x<c?1e-6:x===o._dur?1:o._ease((x-c)/(o._dur-c))),t<0?t=0:t>1&&(t=1),M&&(t=1-t),I=~~(t*y+.5),t?((F>T||F<-T)&&(e.setIndex=u=(u+(Math.random()*19|0))%20,e.chars=h.sets[u],e.prevScrambleTime+=F),G=f):G=w.join(a),bt=o._from?t:1-t,at=d+(m?o._from?bt*bt*bt:1-bt*bt*bt:1)*p,M?t===1&&(o._from||o.data==="isFromStart")?(B="",G=w.join(a)):(N=s.slice(I).join(a),g?B=Qn(G).slice(0,at-(_?Qn(N):N).length+.5|0).join(""):B=G.substr(0,at-(_?Qn(N):N).length+.5|0),G=N):(B=s.slice(0,I).join(a),R=(_?Qn(B):B).length,g?G=Qn(G).slice(R,at+.5|0).join(""):G=G.substr(R,at-R+.5|0)),P?(Q=M?S:v,A=M?v:S,Z=Q&&I!==0,J=A&&I!==y,N=(Z?"<span class='"+Q+"'>":"")+B+(Z?"</span>":"")+(J?"<span class='"+A+"'>":"")+a+G+(J?"</span>":"")):N=B+a+G,n[i]=D===" "&&~N.indexOf(" ")?N.split(" ").join(" "):N}};ba.emojiSafeSplit=Qn;ba.getText=To;Ad()&&Fr.registerPlugin(ba);bn.registerPlugin(ba);var Dd=()=>{document.querySelectorAll("[data-scramble-link]").forEach(t=>{let e=t.querySelector("[data-scramble-text]");if(!e)return;let n=e.textContent;t.addEventListener("mouseenter",()=>{bn.matchMedia().add("(min-width: 768px)",()=>{bn.to(e,{duration:1,scrambleText:{text:n,chars:"10"}})})})})};var dh="164";var E_=0,Cd=1,w_=2;var em=1,ph=2,Pi=3,or=0,Tn=1,Li=2,rr=0,sr=1,Rd=2,Pd=3,Id=4,T_=5,Hr=100,A_=101,D_=102,C_=103,R_=104,P_=200,I_=201,L_=202,F_=203,Ru=204,Pu=205,U_=206,N_=207,O_=208,B_=209,z_=210,k_=211,V_=212,H_=213,G_=214,W_=0,X_=1,q_=2,jo=3,Y_=4,Z_=5,J_=6,$_=7,nm=0,K_=1,Q_=2,ar=0,j_=1,t0=2,e0=3,n0=4,i0=5,r0=6,s0=7;var im=300,Bs=301,zs=302,Iu=303,Lu=304,Tl=306,Fu=1e3,Wr=1001,Uu=1002,Wn=1003,a0=1004;var Do=1005;var ni=1006,$c=1007;var Xr=1008;var lr=1009,o0=1010,l0=1011,rm=1012,sm=1013,ks=1014,nr=1015,Al=1016,am=1017,om=1018,Ua=1020,c0=35902,u0=1021,h0=1022,pi=1023,f0=1024,d0=1025,Us=1026,Pa=1027,p0=1028,lm=1029,m0=1030,cm=1031,um=1033,Kc=33776,Qc=33777,jc=33778,tu=33779,Ld=35840,Fd=35841,Ud=35842,Nd=35843,Od=36196,Bd=37492,zd=37496,kd=37808,Vd=37809,Hd=37810,Gd=37811,Wd=37812,Xd=37813,qd=37814,Yd=37815,Zd=37816,Jd=37817,$d=37818,Kd=37819,Qd=37820,jd=37821,eu=36492,tp=36494,ep=36495,g0=36283,np=36284,ip=36285,rp=36286;var tl=2300,el=2301,nu=2302,sp=2400,ap=2401,op=2402;var _0=3200,x0=3201,v0=0,y0=1,er="",Gn="srgb",hr="srgb-linear",mh="display-p3",Dl="display-p3-linear",nl="linear",_e="srgb",il="rec709",rl="p3";var gs=7680;var lp=519,M0=512,S0=513,b0=514,hm=515,E0=516,w0=517,T0=518,A0=519,cp=35044;var up="300 es",Fi=2e3,sl=2001,cr=class{addEventListener(t,e){this._listeners===void 0&&(this._listeners={});let n=this._listeners;n[t]===void 0&&(n[t]=[]),n[t].indexOf(e)===-1&&n[t].push(e)}hasEventListener(t,e){if(this._listeners===void 0)return!1;let n=this._listeners;return n[t]!==void 0&&n[t].indexOf(e)!==-1}removeEventListener(t,e){if(this._listeners===void 0)return;let i=this._listeners[t];if(i!==void 0){let s=i.indexOf(e);s!==-1&&i.splice(s,1)}}dispatchEvent(t){if(this._listeners===void 0)return;let n=this._listeners[t.type];if(n!==void 0){t.target=this;let i=n.slice(0);for(let s=0,a=i.length;s<a;s++)i[s].call(this,t);t.target=null}}},nn=["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","55","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"];var iu=Math.PI/180,Nu=180/Math.PI;function Na(){let r=Math.random()*4294967295|0,t=Math.random()*4294967295|0,e=Math.random()*4294967295|0,n=Math.random()*4294967295|0;return(nn[r&255]+nn[r>>8&255]+nn[r>>16&255]+nn[r>>24&255]+"-"+nn[t&255]+nn[t>>8&255]+"-"+nn[t>>16&15|64]+nn[t>>24&255]+"-"+nn[e&63|128]+nn[e>>8&255]+"-"+nn[e>>16&255]+nn[e>>24&255]+nn[n&255]+nn[n>>8&255]+nn[n>>16&255]+nn[n>>24&255]).toLowerCase()}function wn(r,t,e){return Math.max(t,Math.min(e,r))}function D0(r,t){return(r%t+t)%t}function ru(r,t,e){return(1-e)*r+e*t}function Ea(r,t){switch(t.constructor){case Float32Array:return r;case Uint32Array:return r/4294967295;case Uint16Array:return r/65535;case Uint8Array:return r/255;case Int32Array:return Math.max(r/2147483647,-1);case Int16Array:return Math.max(r/32767,-1);case Int8Array:return Math.max(r/127,-1);default:throw new Error("Invalid component type.")}}function En(r,t){switch(t.constructor){case Float32Array:return r;case Uint32Array:return Math.round(r*4294967295);case Uint16Array:return Math.round(r*65535);case Uint8Array:return Math.round(r*255);case Int32Array:return Math.round(r*2147483647);case Int16Array:return Math.round(r*32767);case Int8Array:return Math.round(r*127);default:throw new Error("Invalid component type.")}}var ae=class r{constructor(t=0,e=0){r.prototype.isVector2=!0,this.x=t,this.y=e}get width(){return this.x}set width(t){this.x=t}get height(){return this.y}set height(t){this.y=t}set(t,e){return this.x=t,this.y=e,this}setScalar(t){return this.x=t,this.y=t,this}setX(t){return this.x=t,this}setY(t){return this.y=t,this}setComponent(t,e){switch(t){case 0:this.x=e;break;case 1:this.y=e;break;default:throw new Error("index is out of range: "+t)}return this}getComponent(t){switch(t){case 0:return this.x;case 1:return this.y;default:throw new Error("index is out of range: "+t)}}clone(){return new this.constructor(this.x,this.y)}copy(t){return this.x=t.x,this.y=t.y,this}add(t){return this.x+=t.x,this.y+=t.y,this}addScalar(t){return this.x+=t,this.y+=t,this}addVectors(t,e){return this.x=t.x+e.x,this.y=t.y+e.y,this}addScaledVector(t,e){return this.x+=t.x*e,this.y+=t.y*e,this}sub(t){return this.x-=t.x,this.y-=t.y,this}subScalar(t){return this.x-=t,this.y-=t,this}subVectors(t,e){return this.x=t.x-e.x,this.y=t.y-e.y,this}multiply(t){return this.x*=t.x,this.y*=t.y,this}multiplyScalar(t){return this.x*=t,this.y*=t,this}divide(t){return this.x/=t.x,this.y/=t.y,this}divideScalar(t){return this.multiplyScalar(1/t)}applyMatrix3(t){let e=this.x,n=this.y,i=t.elements;return this.x=i[0]*e+i[3]*n+i[6],this.y=i[1]*e+i[4]*n+i[7],this}min(t){return this.x=Math.min(this.x,t.x),this.y=Math.min(this.y,t.y),this}max(t){return this.x=Math.max(this.x,t.x),this.y=Math.max(this.y,t.y),this}clamp(t,e){return this.x=Math.max(t.x,Math.min(e.x,this.x)),this.y=Math.max(t.y,Math.min(e.y,this.y)),this}clampScalar(t,e){return this.x=Math.max(t,Math.min(e,this.x)),this.y=Math.max(t,Math.min(e,this.y)),this}clampLength(t,e){let n=this.length();return this.divideScalar(n||1).multiplyScalar(Math.max(t,Math.min(e,n)))}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(t){return this.x*t.x+this.y*t.y}cross(t){return this.x*t.y-this.y*t.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(t){let e=Math.sqrt(this.lengthSq()*t.lengthSq());if(e===0)return Math.PI/2;let n=this.dot(t)/e;return Math.acos(wn(n,-1,1))}distanceTo(t){return Math.sqrt(this.distanceToSquared(t))}distanceToSquared(t){let e=this.x-t.x,n=this.y-t.y;return e*e+n*n}manhattanDistanceTo(t){return Math.abs(this.x-t.x)+Math.abs(this.y-t.y)}setLength(t){return this.normalize().multiplyScalar(t)}lerp(t,e){return this.x+=(t.x-this.x)*e,this.y+=(t.y-this.y)*e,this}lerpVectors(t,e,n){return this.x=t.x+(e.x-t.x)*n,this.y=t.y+(e.y-t.y)*n,this}equals(t){return t.x===this.x&&t.y===this.y}fromArray(t,e=0){return this.x=t[e],this.y=t[e+1],this}toArray(t=[],e=0){return t[e]=this.x,t[e+1]=this.y,t}fromBufferAttribute(t,e){return this.x=t.getX(e),this.y=t.getY(e),this}rotateAround(t,e){let n=Math.cos(e),i=Math.sin(e),s=this.x-t.x,a=this.y-t.y;return this.x=s*n-a*i+t.x,this.y=s*i+a*n+t.y,this}random(){return this.x=Math.random(),this.y=Math.random(),this}*[Symbol.iterator](){yield this.x,yield this.y}},qt=class r{constructor(t,e,n,i,s,a,o,l,c){r.prototype.isMatrix3=!0,this.elements=[1,0,0,0,1,0,0,0,1],t!==void 0&&this.set(t,e,n,i,s,a,o,l,c)}set(t,e,n,i,s,a,o,l,c){let u=this.elements;return u[0]=t,u[1]=i,u[2]=o,u[3]=e,u[4]=s,u[5]=l,u[6]=n,u[7]=a,u[8]=c,this}identity(){return this.set(1,0,0,0,1,0,0,0,1),this}copy(t){let e=this.elements,n=t.elements;return e[0]=n[0],e[1]=n[1],e[2]=n[2],e[3]=n[3],e[4]=n[4],e[5]=n[5],e[6]=n[6],e[7]=n[7],e[8]=n[8],this}extractBasis(t,e,n){return t.setFromMatrix3Column(this,0),e.setFromMatrix3Column(this,1),n.setFromMatrix3Column(this,2),this}setFromMatrix4(t){let e=t.elements;return this.set(e[0],e[4],e[8],e[1],e[5],e[9],e[2],e[6],e[10]),this}multiply(t){return this.multiplyMatrices(this,t)}premultiply(t){return this.multiplyMatrices(t,this)}multiplyMatrices(t,e){let n=t.elements,i=e.elements,s=this.elements,a=n[0],o=n[3],l=n[6],c=n[1],u=n[4],f=n[7],h=n[2],d=n[5],_=n[8],g=i[0],p=i[3],m=i[6],S=i[1],v=i[4],M=i[7],D=i[2],T=i[5],w=i[8];return s[0]=a*g+o*S+l*D,s[3]=a*p+o*v+l*T,s[6]=a*m+o*M+l*w,s[1]=c*g+u*S+f*D,s[4]=c*p+u*v+f*T,s[7]=c*m+u*M+f*w,s[2]=h*g+d*S+_*D,s[5]=h*p+d*v+_*T,s[8]=h*m+d*M+_*w,this}multiplyScalar(t){let e=this.elements;return e[0]*=t,e[3]*=t,e[6]*=t,e[1]*=t,e[4]*=t,e[7]*=t,e[2]*=t,e[5]*=t,e[8]*=t,this}determinant(){let t=this.elements,e=t[0],n=t[1],i=t[2],s=t[3],a=t[4],o=t[5],l=t[6],c=t[7],u=t[8];return e*a*u-e*o*c-n*s*u+n*o*l+i*s*c-i*a*l}invert(){let t=this.elements,e=t[0],n=t[1],i=t[2],s=t[3],a=t[4],o=t[5],l=t[6],c=t[7],u=t[8],f=u*a-o*c,h=o*l-u*s,d=c*s-a*l,_=e*f+n*h+i*d;if(_===0)return this.set(0,0,0,0,0,0,0,0,0);let g=1/_;return t[0]=f*g,t[1]=(i*c-u*n)*g,t[2]=(o*n-i*a)*g,t[3]=h*g,t[4]=(u*e-i*l)*g,t[5]=(i*s-o*e)*g,t[6]=d*g,t[7]=(n*l-c*e)*g,t[8]=(a*e-n*s)*g,this}transpose(){let t,e=this.elements;return t=e[1],e[1]=e[3],e[3]=t,t=e[2],e[2]=e[6],e[6]=t,t=e[5],e[5]=e[7],e[7]=t,this}getNormalMatrix(t){return this.setFromMatrix4(t).invert().transpose()}transposeIntoArray(t){let e=this.elements;return t[0]=e[0],t[1]=e[3],t[2]=e[6],t[3]=e[1],t[4]=e[4],t[5]=e[7],t[6]=e[2],t[7]=e[5],t[8]=e[8],this}setUvTransform(t,e,n,i,s,a,o){let l=Math.cos(s),c=Math.sin(s);return this.set(n*l,n*c,-n*(l*a+c*o)+a+t,-i*c,i*l,-i*(-c*a+l*o)+o+e,0,0,1),this}scale(t,e){return this.premultiply(su.makeScale(t,e)),this}rotate(t){return this.premultiply(su.makeRotation(-t)),this}translate(t,e){return this.premultiply(su.makeTranslation(t,e)),this}makeTranslation(t,e){return t.isVector2?this.set(1,0,t.x,0,1,t.y,0,0,1):this.set(1,0,t,0,1,e,0,0,1),this}makeRotation(t){let e=Math.cos(t),n=Math.sin(t);return this.set(e,-n,0,n,e,0,0,0,1),this}makeScale(t,e){return this.set(t,0,0,0,e,0,0,0,1),this}equals(t){let e=this.elements,n=t.elements;for(let i=0;i<9;i++)if(e[i]!==n[i])return!1;return!0}fromArray(t,e=0){for(let n=0;n<9;n++)this.elements[n]=t[n+e];return this}toArray(t=[],e=0){let n=this.elements;return t[e]=n[0],t[e+1]=n[1],t[e+2]=n[2],t[e+3]=n[3],t[e+4]=n[4],t[e+5]=n[5],t[e+6]=n[6],t[e+7]=n[7],t[e+8]=n[8],t}clone(){return new this.constructor().fromArray(this.elements)}},su=new qt;function fm(r){for(let t=r.length-1;t>=0;--t)if(r[t]>=65535)return!0;return!1}function al(r){return document.createElementNS("http://www.w3.org/1999/xhtml",r)}function C0(){let r=al("canvas");return r.style.display="block",r}var hp={};function R0(r){r in hp||(hp[r]=!0,console.warn(r))}var fp=new qt().set(.8224621,.177538,0,.0331941,.9668058,0,.0170827,.0723974,.9105199),dp=new qt().set(1.2249401,-.2249404,0,-.0420569,1.0420571,0,-.0196376,-.0786361,1.0982735),Co={[hr]:{transfer:nl,primaries:il,toReference:r=>r,fromReference:r=>r},[Gn]:{transfer:_e,primaries:il,toReference:r=>r.convertSRGBToLinear(),fromReference:r=>r.convertLinearToSRGB()},[Dl]:{transfer:nl,primaries:rl,toReference:r=>r.applyMatrix3(dp),fromReference:r=>r.applyMatrix3(fp)},[mh]:{transfer:_e,primaries:rl,toReference:r=>r.convertSRGBToLinear().applyMatrix3(dp),fromReference:r=>r.applyMatrix3(fp).convertLinearToSRGB()}},P0=new Set([hr,Dl]),he={enabled:!0,_workingColorSpace:hr,get workingColorSpace(){return this._workingColorSpace},set workingColorSpace(r){if(!P0.has(r))throw new Error(`Unsupported working color space, "${r}".`);this._workingColorSpace=r},convert:function(r,t,e){if(this.enabled===!1||t===e||!t||!e)return r;let n=Co[t].toReference,i=Co[e].fromReference;return i(n(r))},fromWorkingColorSpace:function(r,t){return this.convert(r,this._workingColorSpace,t)},toWorkingColorSpace:function(r,t){return this.convert(r,t,this._workingColorSpace)},getPrimaries:function(r){return Co[r].primaries},getTransfer:function(r){return r===er?nl:Co[r].transfer}};function Ns(r){return r<.04045?r*.0773993808:Math.pow(r*.9478672986+.0521327014,2.4)}function au(r){return r<.0031308?r*12.92:1.055*Math.pow(r,.41666)-.055}var _s,Ou=class{static getDataURL(t){if(/^data:/i.test(t.src)||typeof HTMLCanvasElement>"u")return t.src;let e;if(t instanceof HTMLCanvasElement)e=t;else{_s===void 0&&(_s=al("canvas")),_s.width=t.width,_s.height=t.height;let n=_s.getContext("2d");t instanceof ImageData?n.putImageData(t,0,0):n.drawImage(t,0,0,t.width,t.height),e=_s}return e.width>2048||e.height>2048?(console.warn("THREE.ImageUtils.getDataURL: Image converted to jpg for performance reasons",t),e.toDataURL("image/jpeg",.6)):e.toDataURL("image/png")}static sRGBToLinear(t){if(typeof HTMLImageElement<"u"&&t instanceof HTMLImageElement||typeof HTMLCanvasElement<"u"&&t instanceof HTMLCanvasElement||typeof ImageBitmap<"u"&&t instanceof ImageBitmap){let e=al("canvas");e.width=t.width,e.height=t.height;let n=e.getContext("2d");n.drawImage(t,0,0,t.width,t.height);let i=n.getImageData(0,0,t.width,t.height),s=i.data;for(let a=0;a<s.length;a++)s[a]=Ns(s[a]/255)*255;return n.putImageData(i,0,0),e}else if(t.data){let e=t.data.slice(0);for(let n=0;n<e.length;n++)e instanceof Uint8Array||e instanceof Uint8ClampedArray?e[n]=Math.floor(Ns(e[n]/255)*255):e[n]=Ns(e[n]);return{data:e,width:t.width,height:t.height}}else return console.warn("THREE.ImageUtils.sRGBToLinear(): Unsupported image type. No color space conversion applied."),t}},I0=0,ol=class{constructor(t=null){this.isSource=!0,Object.defineProperty(this,"id",{value:I0++}),this.uuid=Na(),this.data=t,this.dataReady=!0,this.version=0}set needsUpdate(t){t===!0&&this.version++}toJSON(t){let e=t===void 0||typeof t=="string";if(!e&&t.images[this.uuid]!==void 0)return t.images[this.uuid];let n={uuid:this.uuid,url:""},i=this.data;if(i!==null){let s;if(Array.isArray(i)){s=[];for(let a=0,o=i.length;a<o;a++)i[a].isDataTexture?s.push(ou(i[a].image)):s.push(ou(i[a]))}else s=ou(i);n.url=s}return e||(t.images[this.uuid]=n),n}};function ou(r){return typeof HTMLImageElement<"u"&&r instanceof HTMLImageElement||typeof HTMLCanvasElement<"u"&&r instanceof HTMLCanvasElement||typeof ImageBitmap<"u"&&r instanceof ImageBitmap?Ou.getDataURL(r):r.data?{data:Array.from(r.data),width:r.width,height:r.height,type:r.data.constructor.name}:(console.warn("THREE.Texture: Unable to serialize Texture."),{})}var L0=0,Yn=class r extends cr{constructor(t=r.DEFAULT_IMAGE,e=r.DEFAULT_MAPPING,n=Wr,i=Wr,s=ni,a=Xr,o=pi,l=lr,c=r.DEFAULT_ANISOTROPY,u=er){super(),this.isTexture=!0,Object.defineProperty(this,"id",{value:L0++}),this.uuid=Na(),this.name="",this.source=new ol(t),this.mipmaps=[],this.mapping=e,this.channel=0,this.wrapS=n,this.wrapT=i,this.magFilter=s,this.minFilter=a,this.anisotropy=c,this.format=o,this.internalFormat=null,this.type=l,this.offset=new ae(0,0),this.repeat=new ae(1,1),this.center=new ae(0,0),this.rotation=0,this.matrixAutoUpdate=!0,this.matrix=new qt,this.generateMipmaps=!0,this.premultiplyAlpha=!1,this.flipY=!0,this.unpackAlignment=4,this.colorSpace=u,this.userData={},this.version=0,this.onUpdate=null,this.isRenderTargetTexture=!1,this.pmremVersion=0}get image(){return this.source.data}set image(t=null){this.source.data=t}updateMatrix(){this.matrix.setUvTransform(this.offset.x,this.offset.y,this.repeat.x,this.repeat.y,this.rotation,this.center.x,this.center.y)}clone(){return new this.constructor().copy(this)}copy(t){return this.name=t.name,this.source=t.source,this.mipmaps=t.mipmaps.slice(0),this.mapping=t.mapping,this.channel=t.channel,this.wrapS=t.wrapS,this.wrapT=t.wrapT,this.magFilter=t.magFilter,this.minFilter=t.minFilter,this.anisotropy=t.anisotropy,this.format=t.format,this.internalFormat=t.internalFormat,this.type=t.type,this.offset.copy(t.offset),this.repeat.copy(t.repeat),this.center.copy(t.center),this.rotation=t.rotation,this.matrixAutoUpdate=t.matrixAutoUpdate,this.matrix.copy(t.matrix),this.generateMipmaps=t.generateMipmaps,this.premultiplyAlpha=t.premultiplyAlpha,this.flipY=t.flipY,this.unpackAlignment=t.unpackAlignment,this.colorSpace=t.colorSpace,this.userData=JSON.parse(JSON.stringify(t.userData)),this.needsUpdate=!0,this}toJSON(t){let e=t===void 0||typeof t=="string";if(!e&&t.textures[this.uuid]!==void 0)return t.textures[this.uuid];let n={metadata:{version:4.6,type:"Texture",generator:"Texture.toJSON"},uuid:this.uuid,name:this.name,image:this.source.toJSON(t).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),e||(t.textures[this.uuid]=n),n}dispose(){this.dispatchEvent({type:"dispose"})}transformUv(t){if(this.mapping!==im)return t;if(t.applyMatrix3(this.matrix),t.x<0||t.x>1)switch(this.wrapS){case Fu:t.x=t.x-Math.floor(t.x);break;case Wr:t.x=t.x<0?0:1;break;case Uu:Math.abs(Math.floor(t.x)%2)===1?t.x=Math.ceil(t.x)-t.x:t.x=t.x-Math.floor(t.x);break}if(t.y<0||t.y>1)switch(this.wrapT){case Fu:t.y=t.y-Math.floor(t.y);break;case Wr:t.y=t.y<0?0:1;break;case Uu:Math.abs(Math.floor(t.y)%2)===1?t.y=Math.ceil(t.y)-t.y:t.y=t.y-Math.floor(t.y);break}return this.flipY&&(t.y=1-t.y),t}set needsUpdate(t){t===!0&&(this.version++,this.source.needsUpdate=!0)}set needsPMREMUpdate(t){t===!0&&this.pmremVersion++}};Yn.DEFAULT_IMAGE=null;Yn.DEFAULT_MAPPING=im;Yn.DEFAULT_ANISOTROPY=1;var We=class r{constructor(t=0,e=0,n=0,i=1){r.prototype.isVector4=!0,this.x=t,this.y=e,this.z=n,this.w=i}get width(){return this.z}set width(t){this.z=t}get height(){return this.w}set height(t){this.w=t}set(t,e,n,i){return this.x=t,this.y=e,this.z=n,this.w=i,this}setScalar(t){return this.x=t,this.y=t,this.z=t,this.w=t,this}setX(t){return this.x=t,this}setY(t){return this.y=t,this}setZ(t){return this.z=t,this}setW(t){return this.w=t,this}setComponent(t,e){switch(t){case 0:this.x=e;break;case 1:this.y=e;break;case 2:this.z=e;break;case 3:this.w=e;break;default:throw new Error("index is out of range: "+t)}return this}getComponent(t){switch(t){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: "+t)}}clone(){return new this.constructor(this.x,this.y,this.z,this.w)}copy(t){return this.x=t.x,this.y=t.y,this.z=t.z,this.w=t.w!==void 0?t.w:1,this}add(t){return this.x+=t.x,this.y+=t.y,this.z+=t.z,this.w+=t.w,this}addScalar(t){return this.x+=t,this.y+=t,this.z+=t,this.w+=t,this}addVectors(t,e){return this.x=t.x+e.x,this.y=t.y+e.y,this.z=t.z+e.z,this.w=t.w+e.w,this}addScaledVector(t,e){return this.x+=t.x*e,this.y+=t.y*e,this.z+=t.z*e,this.w+=t.w*e,this}sub(t){return this.x-=t.x,this.y-=t.y,this.z-=t.z,this.w-=t.w,this}subScalar(t){return this.x-=t,this.y-=t,this.z-=t,this.w-=t,this}subVectors(t,e){return this.x=t.x-e.x,this.y=t.y-e.y,this.z=t.z-e.z,this.w=t.w-e.w,this}multiply(t){return this.x*=t.x,this.y*=t.y,this.z*=t.z,this.w*=t.w,this}multiplyScalar(t){return this.x*=t,this.y*=t,this.z*=t,this.w*=t,this}applyMatrix4(t){let e=this.x,n=this.y,i=this.z,s=this.w,a=t.elements;return this.x=a[0]*e+a[4]*n+a[8]*i+a[12]*s,this.y=a[1]*e+a[5]*n+a[9]*i+a[13]*s,this.z=a[2]*e+a[6]*n+a[10]*i+a[14]*s,this.w=a[3]*e+a[7]*n+a[11]*i+a[15]*s,this}divideScalar(t){return this.multiplyScalar(1/t)}setAxisAngleFromQuaternion(t){this.w=2*Math.acos(t.w);let e=Math.sqrt(1-t.w*t.w);return e<1e-4?(this.x=1,this.y=0,this.z=0):(this.x=t.x/e,this.y=t.y/e,this.z=t.z/e),this}setAxisAngleFromRotationMatrix(t){let e,n,i,s,l=t.elements,c=l[0],u=l[4],f=l[8],h=l[1],d=l[5],_=l[9],g=l[2],p=l[6],m=l[10];if(Math.abs(u-h)<.01&&Math.abs(f-g)<.01&&Math.abs(_-p)<.01){if(Math.abs(u+h)<.1&&Math.abs(f+g)<.1&&Math.abs(_+p)<.1&&Math.abs(c+d+m-3)<.1)return this.set(1,0,0,0),this;e=Math.PI;let v=(c+1)/2,M=(d+1)/2,D=(m+1)/2,T=(u+h)/4,w=(f+g)/4,P=(_+p)/4;return v>M&&v>D?v<.01?(n=0,i=.707106781,s=.707106781):(n=Math.sqrt(v),i=T/n,s=w/n):M>D?M<.01?(n=.707106781,i=0,s=.707106781):(i=Math.sqrt(M),n=T/i,s=P/i):D<.01?(n=.707106781,i=.707106781,s=0):(s=Math.sqrt(D),n=w/s,i=P/s),this.set(n,i,s,e),this}let S=Math.sqrt((p-_)*(p-_)+(f-g)*(f-g)+(h-u)*(h-u));return Math.abs(S)<.001&&(S=1),this.x=(p-_)/S,this.y=(f-g)/S,this.z=(h-u)/S,this.w=Math.acos((c+d+m-1)/2),this}min(t){return this.x=Math.min(this.x,t.x),this.y=Math.min(this.y,t.y),this.z=Math.min(this.z,t.z),this.w=Math.min(this.w,t.w),this}max(t){return this.x=Math.max(this.x,t.x),this.y=Math.max(this.y,t.y),this.z=Math.max(this.z,t.z),this.w=Math.max(this.w,t.w),this}clamp(t,e){return this.x=Math.max(t.x,Math.min(e.x,this.x)),this.y=Math.max(t.y,Math.min(e.y,this.y)),this.z=Math.max(t.z,Math.min(e.z,this.z)),this.w=Math.max(t.w,Math.min(e.w,this.w)),this}clampScalar(t,e){return this.x=Math.max(t,Math.min(e,this.x)),this.y=Math.max(t,Math.min(e,this.y)),this.z=Math.max(t,Math.min(e,this.z)),this.w=Math.max(t,Math.min(e,this.w)),this}clampLength(t,e){let n=this.length();return this.divideScalar(n||1).multiplyScalar(Math.max(t,Math.min(e,n)))}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(t){return this.x*t.x+this.y*t.y+this.z*t.z+this.w*t.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(t){return this.normalize().multiplyScalar(t)}lerp(t,e){return this.x+=(t.x-this.x)*e,this.y+=(t.y-this.y)*e,this.z+=(t.z-this.z)*e,this.w+=(t.w-this.w)*e,this}lerpVectors(t,e,n){return this.x=t.x+(e.x-t.x)*n,this.y=t.y+(e.y-t.y)*n,this.z=t.z+(e.z-t.z)*n,this.w=t.w+(e.w-t.w)*n,this}equals(t){return t.x===this.x&&t.y===this.y&&t.z===this.z&&t.w===this.w}fromArray(t,e=0){return this.x=t[e],this.y=t[e+1],this.z=t[e+2],this.w=t[e+3],this}toArray(t=[],e=0){return t[e]=this.x,t[e+1]=this.y,t[e+2]=this.z,t[e+3]=this.w,t}fromBufferAttribute(t,e){return this.x=t.getX(e),this.y=t.getY(e),this.z=t.getZ(e),this.w=t.getW(e),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}},Bu=class extends cr{constructor(t=1,e=1,n={}){super(),this.isRenderTarget=!0,this.width=t,this.height=e,this.depth=1,this.scissor=new We(0,0,t,e),this.scissorTest=!1,this.viewport=new We(0,0,t,e);let i={width:t,height:e,depth:1};n=Object.assign({generateMipmaps:!1,internalFormat:null,minFilter:ni,depthBuffer:!0,stencilBuffer:!1,resolveDepthBuffer:!0,resolveStencilBuffer:!0,depthTexture:null,samples:0,count:1},n);let s=new Yn(i,n.mapping,n.wrapS,n.wrapT,n.magFilter,n.minFilter,n.format,n.type,n.anisotropy,n.colorSpace);s.flipY=!1,s.generateMipmaps=n.generateMipmaps,s.internalFormat=n.internalFormat,this.textures=[];let a=n.count;for(let o=0;o<a;o++)this.textures[o]=s.clone(),this.textures[o].isRenderTargetTexture=!0;this.depthBuffer=n.depthBuffer,this.stencilBuffer=n.stencilBuffer,this.resolveDepthBuffer=n.resolveDepthBuffer,this.resolveStencilBuffer=n.resolveStencilBuffer,this.depthTexture=n.depthTexture,this.samples=n.samples}get texture(){return this.textures[0]}set texture(t){this.textures[0]=t}setSize(t,e,n=1){if(this.width!==t||this.height!==e||this.depth!==n){this.width=t,this.height=e,this.depth=n;for(let i=0,s=this.textures.length;i<s;i++)this.textures[i].image.width=t,this.textures[i].image.height=e,this.textures[i].image.depth=n;this.dispose()}this.viewport.set(0,0,t,e),this.scissor.set(0,0,t,e)}clone(){return new this.constructor().copy(this)}copy(t){this.width=t.width,this.height=t.height,this.depth=t.depth,this.scissor.copy(t.scissor),this.scissorTest=t.scissorTest,this.viewport.copy(t.viewport),this.textures.length=0;for(let n=0,i=t.textures.length;n<i;n++)this.textures[n]=t.textures[n].clone(),this.textures[n].isRenderTargetTexture=!0;let e=Object.assign({},t.texture.image);return this.texture.source=new ol(e),this.depthBuffer=t.depthBuffer,this.stencilBuffer=t.stencilBuffer,this.resolveDepthBuffer=t.resolveDepthBuffer,this.resolveStencilBuffer=t.resolveStencilBuffer,t.depthTexture!==null&&(this.depthTexture=t.depthTexture.clone()),this.samples=t.samples,this}dispose(){this.dispatchEvent({type:"dispose"})}},Ui=class extends Bu{constructor(t=1,e=1,n={}){super(t,e,n),this.isWebGLRenderTarget=!0}},ll=class extends Yn{constructor(t=null,e=1,n=1,i=1){super(null),this.isDataArrayTexture=!0,this.image={data:t,width:e,height:n,depth:i},this.magFilter=Wn,this.minFilter=Wn,this.wrapR=Wr,this.generateMipmaps=!1,this.flipY=!1,this.unpackAlignment=1}};var zu=class extends Yn{constructor(t=null,e=1,n=1,i=1){super(null),this.isData3DTexture=!0,this.image={data:t,width:e,height:n,depth:i},this.magFilter=Wn,this.minFilter=Wn,this.wrapR=Wr,this.generateMipmaps=!1,this.flipY=!1,this.unpackAlignment=1}};var ur=class{constructor(t=0,e=0,n=0,i=1){this.isQuaternion=!0,this._x=t,this._y=e,this._z=n,this._w=i}static slerpFlat(t,e,n,i,s,a,o){let l=n[i+0],c=n[i+1],u=n[i+2],f=n[i+3],h=s[a+0],d=s[a+1],_=s[a+2],g=s[a+3];if(o===0){t[e+0]=l,t[e+1]=c,t[e+2]=u,t[e+3]=f;return}if(o===1){t[e+0]=h,t[e+1]=d,t[e+2]=_,t[e+3]=g;return}if(f!==g||l!==h||c!==d||u!==_){let p=1-o,m=l*h+c*d+u*_+f*g,S=m>=0?1:-1,v=1-m*m;if(v>Number.EPSILON){let D=Math.sqrt(v),T=Math.atan2(D,m*S);p=Math.sin(p*T)/D,o=Math.sin(o*T)/D}let M=o*S;if(l=l*p+h*M,c=c*p+d*M,u=u*p+_*M,f=f*p+g*M,p===1-o){let D=1/Math.sqrt(l*l+c*c+u*u+f*f);l*=D,c*=D,u*=D,f*=D}}t[e]=l,t[e+1]=c,t[e+2]=u,t[e+3]=f}static multiplyQuaternionsFlat(t,e,n,i,s,a){let o=n[i],l=n[i+1],c=n[i+2],u=n[i+3],f=s[a],h=s[a+1],d=s[a+2],_=s[a+3];return t[e]=o*_+u*f+l*d-c*h,t[e+1]=l*_+u*h+c*f-o*d,t[e+2]=c*_+u*d+o*h-l*f,t[e+3]=u*_-o*f-l*h-c*d,t}get x(){return this._x}set x(t){this._x=t,this._onChangeCallback()}get y(){return this._y}set y(t){this._y=t,this._onChangeCallback()}get z(){return this._z}set z(t){this._z=t,this._onChangeCallback()}get w(){return this._w}set w(t){this._w=t,this._onChangeCallback()}set(t,e,n,i){return this._x=t,this._y=e,this._z=n,this._w=i,this._onChangeCallback(),this}clone(){return new this.constructor(this._x,this._y,this._z,this._w)}copy(t){return this._x=t.x,this._y=t.y,this._z=t.z,this._w=t.w,this._onChangeCallback(),this}setFromEuler(t,e=!0){let n=t._x,i=t._y,s=t._z,a=t._order,o=Math.cos,l=Math.sin,c=o(n/2),u=o(i/2),f=o(s/2),h=l(n/2),d=l(i/2),_=l(s/2);switch(a){case"XYZ":this._x=h*u*f+c*d*_,this._y=c*d*f-h*u*_,this._z=c*u*_+h*d*f,this._w=c*u*f-h*d*_;break;case"YXZ":this._x=h*u*f+c*d*_,this._y=c*d*f-h*u*_,this._z=c*u*_-h*d*f,this._w=c*u*f+h*d*_;break;case"ZXY":this._x=h*u*f-c*d*_,this._y=c*d*f+h*u*_,this._z=c*u*_+h*d*f,this._w=c*u*f-h*d*_;break;case"ZYX":this._x=h*u*f-c*d*_,this._y=c*d*f+h*u*_,this._z=c*u*_-h*d*f,this._w=c*u*f+h*d*_;break;case"YZX":this._x=h*u*f+c*d*_,this._y=c*d*f+h*u*_,this._z=c*u*_-h*d*f,this._w=c*u*f-h*d*_;break;case"XZY":this._x=h*u*f-c*d*_,this._y=c*d*f-h*u*_,this._z=c*u*_+h*d*f,this._w=c*u*f+h*d*_;break;default:console.warn("THREE.Quaternion: .setFromEuler() encountered an unknown order: "+a)}return e===!0&&this._onChangeCallback(),this}setFromAxisAngle(t,e){let n=e/2,i=Math.sin(n);return this._x=t.x*i,this._y=t.y*i,this._z=t.z*i,this._w=Math.cos(n),this._onChangeCallback(),this}setFromRotationMatrix(t){let e=t.elements,n=e[0],i=e[4],s=e[8],a=e[1],o=e[5],l=e[9],c=e[2],u=e[6],f=e[10],h=n+o+f;if(h>0){let d=.5/Math.sqrt(h+1);this._w=.25/d,this._x=(u-l)*d,this._y=(s-c)*d,this._z=(a-i)*d}else if(n>o&&n>f){let d=2*Math.sqrt(1+n-o-f);this._w=(u-l)/d,this._x=.25*d,this._y=(i+a)/d,this._z=(s+c)/d}else if(o>f){let d=2*Math.sqrt(1+o-n-f);this._w=(s-c)/d,this._x=(i+a)/d,this._y=.25*d,this._z=(l+u)/d}else{let d=2*Math.sqrt(1+f-n-o);this._w=(a-i)/d,this._x=(s+c)/d,this._y=(l+u)/d,this._z=.25*d}return this._onChangeCallback(),this}setFromUnitVectors(t,e){let n=t.dot(e)+1;return n<Number.EPSILON?(n=0,Math.abs(t.x)>Math.abs(t.z)?(this._x=-t.y,this._y=t.x,this._z=0,this._w=n):(this._x=0,this._y=-t.z,this._z=t.y,this._w=n)):(this._x=t.y*e.z-t.z*e.y,this._y=t.z*e.x-t.x*e.z,this._z=t.x*e.y-t.y*e.x,this._w=n),this.normalize()}angleTo(t){return 2*Math.acos(Math.abs(wn(this.dot(t),-1,1)))}rotateTowards(t,e){let n=this.angleTo(t);if(n===0)return this;let i=Math.min(1,e/n);return this.slerp(t,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(t){return this._x*t._x+this._y*t._y+this._z*t._z+this._w*t._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 t=this.length();return t===0?(this._x=0,this._y=0,this._z=0,this._w=1):(t=1/t,this._x=this._x*t,this._y=this._y*t,this._z=this._z*t,this._w=this._w*t),this._onChangeCallback(),this}multiply(t){return this.multiplyQuaternions(this,t)}premultiply(t){return this.multiplyQuaternions(t,this)}multiplyQuaternions(t,e){let n=t._x,i=t._y,s=t._z,a=t._w,o=e._x,l=e._y,c=e._z,u=e._w;return this._x=n*u+a*o+i*c-s*l,this._y=i*u+a*l+s*o-n*c,this._z=s*u+a*c+n*l-i*o,this._w=a*u-n*o-i*l-s*c,this._onChangeCallback(),this}slerp(t,e){if(e===0)return this;if(e===1)return this.copy(t);let n=this._x,i=this._y,s=this._z,a=this._w,o=a*t._w+n*t._x+i*t._y+s*t._z;if(o<0?(this._w=-t._w,this._x=-t._x,this._y=-t._y,this._z=-t._z,o=-o):this.copy(t),o>=1)return this._w=a,this._x=n,this._y=i,this._z=s,this;let l=1-o*o;if(l<=Number.EPSILON){let d=1-e;return this._w=d*a+e*this._w,this._x=d*n+e*this._x,this._y=d*i+e*this._y,this._z=d*s+e*this._z,this.normalize(),this}let c=Math.sqrt(l),u=Math.atan2(c,o),f=Math.sin((1-e)*u)/c,h=Math.sin(e*u)/c;return this._w=a*f+this._w*h,this._x=n*f+this._x*h,this._y=i*f+this._y*h,this._z=s*f+this._z*h,this._onChangeCallback(),this}slerpQuaternions(t,e,n){return this.copy(t).slerp(e,n)}random(){let t=2*Math.PI*Math.random(),e=2*Math.PI*Math.random(),n=Math.random(),i=Math.sqrt(1-n),s=Math.sqrt(n);return this.set(i*Math.sin(t),i*Math.cos(t),s*Math.sin(e),s*Math.cos(e))}equals(t){return t._x===this._x&&t._y===this._y&&t._z===this._z&&t._w===this._w}fromArray(t,e=0){return this._x=t[e],this._y=t[e+1],this._z=t[e+2],this._w=t[e+3],this._onChangeCallback(),this}toArray(t=[],e=0){return t[e]=this._x,t[e+1]=this._y,t[e+2]=this._z,t[e+3]=this._w,t}fromBufferAttribute(t,e){return this._x=t.getX(e),this._y=t.getY(e),this._z=t.getZ(e),this._w=t.getW(e),this._onChangeCallback(),this}toJSON(){return this.toArray()}_onChange(t){return this._onChangeCallback=t,this}_onChangeCallback(){}*[Symbol.iterator](){yield this._x,yield this._y,yield this._z,yield this._w}},q=class r{constructor(t=0,e=0,n=0){r.prototype.isVector3=!0,this.x=t,this.y=e,this.z=n}set(t,e,n){return n===void 0&&(n=this.z),this.x=t,this.y=e,this.z=n,this}setScalar(t){return this.x=t,this.y=t,this.z=t,this}setX(t){return this.x=t,this}setY(t){return this.y=t,this}setZ(t){return this.z=t,this}setComponent(t,e){switch(t){case 0:this.x=e;break;case 1:this.y=e;break;case 2:this.z=e;break;default:throw new Error("index is out of range: "+t)}return this}getComponent(t){switch(t){case 0:return this.x;case 1:return this.y;case 2:return this.z;default:throw new Error("index is out of range: "+t)}}clone(){return new this.constructor(this.x,this.y,this.z)}copy(t){return this.x=t.x,this.y=t.y,this.z=t.z,this}add(t){return this.x+=t.x,this.y+=t.y,this.z+=t.z,this}addScalar(t){return this.x+=t,this.y+=t,this.z+=t,this}addVectors(t,e){return this.x=t.x+e.x,this.y=t.y+e.y,this.z=t.z+e.z,this}addScaledVector(t,e){return this.x+=t.x*e,this.y+=t.y*e,this.z+=t.z*e,this}sub(t){return this.x-=t.x,this.y-=t.y,this.z-=t.z,this}subScalar(t){return this.x-=t,this.y-=t,this.z-=t,this}subVectors(t,e){return this.x=t.x-e.x,this.y=t.y-e.y,this.z=t.z-e.z,this}multiply(t){return this.x*=t.x,this.y*=t.y,this.z*=t.z,this}multiplyScalar(t){return this.x*=t,this.y*=t,this.z*=t,this}multiplyVectors(t,e){return this.x=t.x*e.x,this.y=t.y*e.y,this.z=t.z*e.z,this}applyEuler(t){return this.applyQuaternion(pp.setFromEuler(t))}applyAxisAngle(t,e){return this.applyQuaternion(pp.setFromAxisAngle(t,e))}applyMatrix3(t){let e=this.x,n=this.y,i=this.z,s=t.elements;return this.x=s[0]*e+s[3]*n+s[6]*i,this.y=s[1]*e+s[4]*n+s[7]*i,this.z=s[2]*e+s[5]*n+s[8]*i,this}applyNormalMatrix(t){return this.applyMatrix3(t).normalize()}applyMatrix4(t){let e=this.x,n=this.y,i=this.z,s=t.elements,a=1/(s[3]*e+s[7]*n+s[11]*i+s[15]);return this.x=(s[0]*e+s[4]*n+s[8]*i+s[12])*a,this.y=(s[1]*e+s[5]*n+s[9]*i+s[13])*a,this.z=(s[2]*e+s[6]*n+s[10]*i+s[14])*a,this}applyQuaternion(t){let e=this.x,n=this.y,i=this.z,s=t.x,a=t.y,o=t.z,l=t.w,c=2*(a*i-o*n),u=2*(o*e-s*i),f=2*(s*n-a*e);return this.x=e+l*c+a*f-o*u,this.y=n+l*u+o*c-s*f,this.z=i+l*f+s*u-a*c,this}project(t){return this.applyMatrix4(t.matrixWorldInverse).applyMatrix4(t.projectionMatrix)}unproject(t){return this.applyMatrix4(t.projectionMatrixInverse).applyMatrix4(t.matrixWorld)}transformDirection(t){let e=this.x,n=this.y,i=this.z,s=t.elements;return this.x=s[0]*e+s[4]*n+s[8]*i,this.y=s[1]*e+s[5]*n+s[9]*i,this.z=s[2]*e+s[6]*n+s[10]*i,this.normalize()}divide(t){return this.x/=t.x,this.y/=t.y,this.z/=t.z,this}divideScalar(t){return this.multiplyScalar(1/t)}min(t){return this.x=Math.min(this.x,t.x),this.y=Math.min(this.y,t.y),this.z=Math.min(this.z,t.z),this}max(t){return this.x=Math.max(this.x,t.x),this.y=Math.max(this.y,t.y),this.z=Math.max(this.z,t.z),this}clamp(t,e){return this.x=Math.max(t.x,Math.min(e.x,this.x)),this.y=Math.max(t.y,Math.min(e.y,this.y)),this.z=Math.max(t.z,Math.min(e.z,this.z)),this}clampScalar(t,e){return this.x=Math.max(t,Math.min(e,this.x)),this.y=Math.max(t,Math.min(e,this.y)),this.z=Math.max(t,Math.min(e,this.z)),this}clampLength(t,e){let n=this.length();return this.divideScalar(n||1).multiplyScalar(Math.max(t,Math.min(e,n)))}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}round(){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(t){return this.x*t.x+this.y*t.y+this.z*t.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(t){return this.normalize().multiplyScalar(t)}lerp(t,e){return this.x+=(t.x-this.x)*e,this.y+=(t.y-this.y)*e,this.z+=(t.z-this.z)*e,this}lerpVectors(t,e,n){return this.x=t.x+(e.x-t.x)*n,this.y=t.y+(e.y-t.y)*n,this.z=t.z+(e.z-t.z)*n,this}cross(t){return this.crossVectors(this,t)}crossVectors(t,e){let n=t.x,i=t.y,s=t.z,a=e.x,o=e.y,l=e.z;return this.x=i*l-s*o,this.y=s*a-n*l,this.z=n*o-i*a,this}projectOnVector(t){let e=t.lengthSq();if(e===0)return this.set(0,0,0);let n=t.dot(this)/e;return this.copy(t).multiplyScalar(n)}projectOnPlane(t){return lu.copy(this).projectOnVector(t),this.sub(lu)}reflect(t){return this.sub(lu.copy(t).multiplyScalar(2*this.dot(t)))}angleTo(t){let e=Math.sqrt(this.lengthSq()*t.lengthSq());if(e===0)return Math.PI/2;let n=this.dot(t)/e;return Math.acos(wn(n,-1,1))}distanceTo(t){return Math.sqrt(this.distanceToSquared(t))}distanceToSquared(t){let e=this.x-t.x,n=this.y-t.y,i=this.z-t.z;return e*e+n*n+i*i}manhattanDistanceTo(t){return Math.abs(this.x-t.x)+Math.abs(this.y-t.y)+Math.abs(this.z-t.z)}setFromSpherical(t){return this.setFromSphericalCoords(t.radius,t.phi,t.theta)}setFromSphericalCoords(t,e,n){let i=Math.sin(e)*t;return this.x=i*Math.sin(n),this.y=Math.cos(e)*t,this.z=i*Math.cos(n),this}setFromCylindrical(t){return this.setFromCylindricalCoords(t.radius,t.theta,t.y)}setFromCylindricalCoords(t,e,n){return this.x=t*Math.sin(e),this.y=n,this.z=t*Math.cos(e),this}setFromMatrixPosition(t){let e=t.elements;return this.x=e[12],this.y=e[13],this.z=e[14],this}setFromMatrixScale(t){let e=this.setFromMatrixColumn(t,0).length(),n=this.setFromMatrixColumn(t,1).length(),i=this.setFromMatrixColumn(t,2).length();return this.x=e,this.y=n,this.z=i,this}setFromMatrixColumn(t,e){return this.fromArray(t.elements,e*4)}setFromMatrix3Column(t,e){return this.fromArray(t.elements,e*3)}setFromEuler(t){return this.x=t._x,this.y=t._y,this.z=t._z,this}setFromColor(t){return this.x=t.r,this.y=t.g,this.z=t.b,this}equals(t){return t.x===this.x&&t.y===this.y&&t.z===this.z}fromArray(t,e=0){return this.x=t[e],this.y=t[e+1],this.z=t[e+2],this}toArray(t=[],e=0){return t[e]=this.x,t[e+1]=this.y,t[e+2]=this.z,t}fromBufferAttribute(t,e){return this.x=t.getX(e),this.y=t.getY(e),this.z=t.getZ(e),this}random(){return this.x=Math.random(),this.y=Math.random(),this.z=Math.random(),this}randomDirection(){let t=Math.random()*Math.PI*2,e=Math.random()*2-1,n=Math.sqrt(1-e*e);return this.x=n*Math.cos(t),this.y=e,this.z=n*Math.sin(t),this}*[Symbol.iterator](){yield this.x,yield this.y,yield this.z}},lu=new q,pp=new ur,qr=class{constructor(t=new q(1/0,1/0,1/0),e=new q(-1/0,-1/0,-1/0)){this.isBox3=!0,this.min=t,this.max=e}set(t,e){return this.min.copy(t),this.max.copy(e),this}setFromArray(t){this.makeEmpty();for(let e=0,n=t.length;e<n;e+=3)this.expandByPoint(jn.fromArray(t,e));return this}setFromBufferAttribute(t){this.makeEmpty();for(let e=0,n=t.count;e<n;e++)this.expandByPoint(jn.fromBufferAttribute(t,e));return this}setFromPoints(t){this.makeEmpty();for(let e=0,n=t.length;e<n;e++)this.expandByPoint(t[e]);return this}setFromCenterAndSize(t,e){let n=jn.copy(e).multiplyScalar(.5);return this.min.copy(t).sub(n),this.max.copy(t).add(n),this}setFromObject(t,e=!1){return this.makeEmpty(),this.expandByObject(t,e)}clone(){return new this.constructor().copy(this)}copy(t){return this.min.copy(t.min),this.max.copy(t.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(t){return this.isEmpty()?t.set(0,0,0):t.addVectors(this.min,this.max).multiplyScalar(.5)}getSize(t){return this.isEmpty()?t.set(0,0,0):t.subVectors(this.max,this.min)}expandByPoint(t){return this.min.min(t),this.max.max(t),this}expandByVector(t){return this.min.sub(t),this.max.add(t),this}expandByScalar(t){return this.min.addScalar(-t),this.max.addScalar(t),this}expandByObject(t,e=!1){t.updateWorldMatrix(!1,!1);let n=t.geometry;if(n!==void 0){let s=n.getAttribute("position");if(e===!0&&s!==void 0&&t.isInstancedMesh!==!0)for(let a=0,o=s.count;a<o;a++)t.isMesh===!0?t.getVertexPosition(a,jn):jn.fromBufferAttribute(s,a),jn.applyMatrix4(t.matrixWorld),this.expandByPoint(jn);else t.boundingBox!==void 0?(t.boundingBox===null&&t.computeBoundingBox(),Ro.copy(t.boundingBox)):(n.boundingBox===null&&n.computeBoundingBox(),Ro.copy(n.boundingBox)),Ro.applyMatrix4(t.matrixWorld),this.union(Ro)}let i=t.children;for(let s=0,a=i.length;s<a;s++)this.expandByObject(i[s],e);return this}containsPoint(t){return!(t.x<this.min.x||t.x>this.max.x||t.y<this.min.y||t.y>this.max.y||t.z<this.min.z||t.z>this.max.z)}containsBox(t){return this.min.x<=t.min.x&&t.max.x<=this.max.x&&this.min.y<=t.min.y&&t.max.y<=this.max.y&&this.min.z<=t.min.z&&t.max.z<=this.max.z}getParameter(t,e){return e.set((t.x-this.min.x)/(this.max.x-this.min.x),(t.y-this.min.y)/(this.max.y-this.min.y),(t.z-this.min.z)/(this.max.z-this.min.z))}intersectsBox(t){return!(t.max.x<this.min.x||t.min.x>this.max.x||t.max.y<this.min.y||t.min.y>this.max.y||t.max.z<this.min.z||t.min.z>this.max.z)}intersectsSphere(t){return this.clampPoint(t.center,jn),jn.distanceToSquared(t.center)<=t.radius*t.radius}intersectsPlane(t){let e,n;return t.normal.x>0?(e=t.normal.x*this.min.x,n=t.normal.x*this.max.x):(e=t.normal.x*this.max.x,n=t.normal.x*this.min.x),t.normal.y>0?(e+=t.normal.y*this.min.y,n+=t.normal.y*this.max.y):(e+=t.normal.y*this.max.y,n+=t.normal.y*this.min.y),t.normal.z>0?(e+=t.normal.z*this.min.z,n+=t.normal.z*this.max.z):(e+=t.normal.z*this.max.z,n+=t.normal.z*this.min.z),e<=-t.constant&&n>=-t.constant}intersectsTriangle(t){if(this.isEmpty())return!1;this.getCenter(wa),Po.subVectors(this.max,wa),xs.subVectors(t.a,wa),vs.subVectors(t.b,wa),ys.subVectors(t.c,wa),Ji.subVectors(vs,xs),$i.subVectors(ys,vs),Ur.subVectors(xs,ys);let e=[0,-Ji.z,Ji.y,0,-$i.z,$i.y,0,-Ur.z,Ur.y,Ji.z,0,-Ji.x,$i.z,0,-$i.x,Ur.z,0,-Ur.x,-Ji.y,Ji.x,0,-$i.y,$i.x,0,-Ur.y,Ur.x,0];return!cu(e,xs,vs,ys,Po)||(e=[1,0,0,0,1,0,0,0,1],!cu(e,xs,vs,ys,Po))?!1:(Io.crossVectors(Ji,$i),e=[Io.x,Io.y,Io.z],cu(e,xs,vs,ys,Po))}clampPoint(t,e){return e.copy(t).clamp(this.min,this.max)}distanceToPoint(t){return this.clampPoint(t,jn).distanceTo(t)}getBoundingSphere(t){return this.isEmpty()?t.makeEmpty():(this.getCenter(t.center),t.radius=this.getSize(jn).length()*.5),t}intersect(t){return this.min.max(t.min),this.max.min(t.max),this.isEmpty()&&this.makeEmpty(),this}union(t){return this.min.min(t.min),this.max.max(t.max),this}applyMatrix4(t){return this.isEmpty()?this:(Ti[0].set(this.min.x,this.min.y,this.min.z).applyMatrix4(t),Ti[1].set(this.min.x,this.min.y,this.max.z).applyMatrix4(t),Ti[2].set(this.min.x,this.max.y,this.min.z).applyMatrix4(t),Ti[3].set(this.min.x,this.max.y,this.max.z).applyMatrix4(t),Ti[4].set(this.max.x,this.min.y,this.min.z).applyMatrix4(t),Ti[5].set(this.max.x,this.min.y,this.max.z).applyMatrix4(t),Ti[6].set(this.max.x,this.max.y,this.min.z).applyMatrix4(t),Ti[7].set(this.max.x,this.max.y,this.max.z).applyMatrix4(t),this.setFromPoints(Ti),this)}translate(t){return this.min.add(t),this.max.add(t),this}equals(t){return t.min.equals(this.min)&&t.max.equals(this.max)}},Ti=[new q,new q,new q,new q,new q,new q,new q,new q],jn=new q,Ro=new qr,xs=new q,vs=new q,ys=new q,Ji=new q,$i=new q,Ur=new q,wa=new q,Po=new q,Io=new q,Nr=new q;function cu(r,t,e,n,i){for(let s=0,a=r.length-3;s<=a;s+=3){Nr.fromArray(r,s);let o=i.x*Math.abs(Nr.x)+i.y*Math.abs(Nr.y)+i.z*Math.abs(Nr.z),l=t.dot(Nr),c=e.dot(Nr),u=n.dot(Nr);if(Math.max(-Math.max(l,c,u),Math.min(l,c,u))>o)return!1}return!0}var F0=new qr,Ta=new q,uu=new q,Vs=class{constructor(t=new q,e=-1){this.isSphere=!0,this.center=t,this.radius=e}set(t,e){return this.center.copy(t),this.radius=e,this}setFromPoints(t,e){let n=this.center;e!==void 0?n.copy(e):F0.setFromPoints(t).getCenter(n);let i=0;for(let s=0,a=t.length;s<a;s++)i=Math.max(i,n.distanceToSquared(t[s]));return this.radius=Math.sqrt(i),this}copy(t){return this.center.copy(t.center),this.radius=t.radius,this}isEmpty(){return this.radius<0}makeEmpty(){return this.center.set(0,0,0),this.radius=-1,this}containsPoint(t){return t.distanceToSquared(this.center)<=this.radius*this.radius}distanceToPoint(t){return t.distanceTo(this.center)-this.radius}intersectsSphere(t){let e=this.radius+t.radius;return t.center.distanceToSquared(this.center)<=e*e}intersectsBox(t){return t.intersectsSphere(this)}intersectsPlane(t){return Math.abs(t.distanceToPoint(this.center))<=this.radius}clampPoint(t,e){let n=this.center.distanceToSquared(t);return e.copy(t),n>this.radius*this.radius&&(e.sub(this.center).normalize(),e.multiplyScalar(this.radius).add(this.center)),e}getBoundingBox(t){return this.isEmpty()?(t.makeEmpty(),t):(t.set(this.center,this.center),t.expandByScalar(this.radius),t)}applyMatrix4(t){return this.center.applyMatrix4(t),this.radius=this.radius*t.getMaxScaleOnAxis(),this}translate(t){return this.center.add(t),this}expandByPoint(t){if(this.isEmpty())return this.center.copy(t),this.radius=0,this;Ta.subVectors(t,this.center);let e=Ta.lengthSq();if(e>this.radius*this.radius){let n=Math.sqrt(e),i=(n-this.radius)*.5;this.center.addScaledVector(Ta,i/n),this.radius+=i}return this}union(t){return t.isEmpty()?this:this.isEmpty()?(this.copy(t),this):(this.center.equals(t.center)===!0?this.radius=Math.max(this.radius,t.radius):(uu.subVectors(t.center,this.center).setLength(t.radius),this.expandByPoint(Ta.copy(t.center).add(uu)),this.expandByPoint(Ta.copy(t.center).sub(uu))),this)}equals(t){return t.center.equals(this.center)&&t.radius===this.radius}clone(){return new this.constructor().copy(this)}},Ai=new q,hu=new q,Lo=new q,Ki=new q,fu=new q,Fo=new q,du=new q,cl=class{constructor(t=new q,e=new q(0,0,-1)){this.origin=t,this.direction=e}set(t,e){return this.origin.copy(t),this.direction.copy(e),this}copy(t){return this.origin.copy(t.origin),this.direction.copy(t.direction),this}at(t,e){return e.copy(this.origin).addScaledVector(this.direction,t)}lookAt(t){return this.direction.copy(t).sub(this.origin).normalize(),this}recast(t){return this.origin.copy(this.at(t,Ai)),this}closestPointToPoint(t,e){e.subVectors(t,this.origin);let n=e.dot(this.direction);return n<0?e.copy(this.origin):e.copy(this.origin).addScaledVector(this.direction,n)}distanceToPoint(t){return Math.sqrt(this.distanceSqToPoint(t))}distanceSqToPoint(t){let e=Ai.subVectors(t,this.origin).dot(this.direction);return e<0?this.origin.distanceToSquared(t):(Ai.copy(this.origin).addScaledVector(this.direction,e),Ai.distanceToSquared(t))}distanceSqToSegment(t,e,n,i){hu.copy(t).add(e).multiplyScalar(.5),Lo.copy(e).sub(t).normalize(),Ki.copy(this.origin).sub(hu);let s=t.distanceTo(e)*.5,a=-this.direction.dot(Lo),o=Ki.dot(this.direction),l=-Ki.dot(Lo),c=Ki.lengthSq(),u=Math.abs(1-a*a),f,h,d,_;if(u>0)if(f=a*l-o,h=a*o-l,_=s*u,f>=0)if(h>=-_)if(h<=_){let g=1/u;f*=g,h*=g,d=f*(f+a*h+2*o)+h*(a*f+h+2*l)+c}else h=s,f=Math.max(0,-(a*h+o)),d=-f*f+h*(h+2*l)+c;else h=-s,f=Math.max(0,-(a*h+o)),d=-f*f+h*(h+2*l)+c;else h<=-_?(f=Math.max(0,-(-a*s+o)),h=f>0?-s:Math.min(Math.max(-s,-l),s),d=-f*f+h*(h+2*l)+c):h<=_?(f=0,h=Math.min(Math.max(-s,-l),s),d=h*(h+2*l)+c):(f=Math.max(0,-(a*s+o)),h=f>0?s:Math.min(Math.max(-s,-l),s),d=-f*f+h*(h+2*l)+c);else h=a>0?-s:s,f=Math.max(0,-(a*h+o)),d=-f*f+h*(h+2*l)+c;return n&&n.copy(this.origin).addScaledVector(this.direction,f),i&&i.copy(hu).addScaledVector(Lo,h),d}intersectSphere(t,e){Ai.subVectors(t.center,this.origin);let n=Ai.dot(this.direction),i=Ai.dot(Ai)-n*n,s=t.radius*t.radius;if(i>s)return null;let a=Math.sqrt(s-i),o=n-a,l=n+a;return l<0?null:o<0?this.at(l,e):this.at(o,e)}intersectsSphere(t){return this.distanceSqToPoint(t.center)<=t.radius*t.radius}distanceToPlane(t){let e=t.normal.dot(this.direction);if(e===0)return t.distanceToPoint(this.origin)===0?0:null;let n=-(this.origin.dot(t.normal)+t.constant)/e;return n>=0?n:null}intersectPlane(t,e){let n=this.distanceToPlane(t);return n===null?null:this.at(n,e)}intersectsPlane(t){let e=t.distanceToPoint(this.origin);return e===0||t.normal.dot(this.direction)*e<0}intersectBox(t,e){let n,i,s,a,o,l,c=1/this.direction.x,u=1/this.direction.y,f=1/this.direction.z,h=this.origin;return c>=0?(n=(t.min.x-h.x)*c,i=(t.max.x-h.x)*c):(n=(t.max.x-h.x)*c,i=(t.min.x-h.x)*c),u>=0?(s=(t.min.y-h.y)*u,a=(t.max.y-h.y)*u):(s=(t.max.y-h.y)*u,a=(t.min.y-h.y)*u),n>a||s>i||((s>n||isNaN(n))&&(n=s),(a<i||isNaN(i))&&(i=a),f>=0?(o=(t.min.z-h.z)*f,l=(t.max.z-h.z)*f):(o=(t.max.z-h.z)*f,l=(t.min.z-h.z)*f),n>l||o>i)||((o>n||n!==n)&&(n=o),(l<i||i!==i)&&(i=l),i<0)?null:this.at(n>=0?n:i,e)}intersectsBox(t){return this.intersectBox(t,Ai)!==null}intersectTriangle(t,e,n,i,s){fu.subVectors(e,t),Fo.subVectors(n,t),du.crossVectors(fu,Fo);let a=this.direction.dot(du),o;if(a>0){if(i)return null;o=1}else if(a<0)o=-1,a=-a;else return null;Ki.subVectors(this.origin,t);let l=o*this.direction.dot(Fo.crossVectors(Ki,Fo));if(l<0)return null;let c=o*this.direction.dot(fu.cross(Ki));if(c<0||l+c>a)return null;let u=-o*Ki.dot(du);return u<0?null:this.at(u/a,s)}applyMatrix4(t){return this.origin.applyMatrix4(t),this.direction.transformDirection(t),this}equals(t){return t.origin.equals(this.origin)&&t.direction.equals(this.direction)}clone(){return new this.constructor().copy(this)}},Re=class r{constructor(t,e,n,i,s,a,o,l,c,u,f,h,d,_,g,p){r.prototype.isMatrix4=!0,this.elements=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],t!==void 0&&this.set(t,e,n,i,s,a,o,l,c,u,f,h,d,_,g,p)}set(t,e,n,i,s,a,o,l,c,u,f,h,d,_,g,p){let m=this.elements;return m[0]=t,m[4]=e,m[8]=n,m[12]=i,m[1]=s,m[5]=a,m[9]=o,m[13]=l,m[2]=c,m[6]=u,m[10]=f,m[14]=h,m[3]=d,m[7]=_,m[11]=g,m[15]=p,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 r().fromArray(this.elements)}copy(t){let e=this.elements,n=t.elements;return e[0]=n[0],e[1]=n[1],e[2]=n[2],e[3]=n[3],e[4]=n[4],e[5]=n[5],e[6]=n[6],e[7]=n[7],e[8]=n[8],e[9]=n[9],e[10]=n[10],e[11]=n[11],e[12]=n[12],e[13]=n[13],e[14]=n[14],e[15]=n[15],this}copyPosition(t){let e=this.elements,n=t.elements;return e[12]=n[12],e[13]=n[13],e[14]=n[14],this}setFromMatrix3(t){let e=t.elements;return this.set(e[0],e[3],e[6],0,e[1],e[4],e[7],0,e[2],e[5],e[8],0,0,0,0,1),this}extractBasis(t,e,n){return t.setFromMatrixColumn(this,0),e.setFromMatrixColumn(this,1),n.setFromMatrixColumn(this,2),this}makeBasis(t,e,n){return this.set(t.x,e.x,n.x,0,t.y,e.y,n.y,0,t.z,e.z,n.z,0,0,0,0,1),this}extractRotation(t){let e=this.elements,n=t.elements,i=1/Ms.setFromMatrixColumn(t,0).length(),s=1/Ms.setFromMatrixColumn(t,1).length(),a=1/Ms.setFromMatrixColumn(t,2).length();return e[0]=n[0]*i,e[1]=n[1]*i,e[2]=n[2]*i,e[3]=0,e[4]=n[4]*s,e[5]=n[5]*s,e[6]=n[6]*s,e[7]=0,e[8]=n[8]*a,e[9]=n[9]*a,e[10]=n[10]*a,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,this}makeRotationFromEuler(t){let e=this.elements,n=t.x,i=t.y,s=t.z,a=Math.cos(n),o=Math.sin(n),l=Math.cos(i),c=Math.sin(i),u=Math.cos(s),f=Math.sin(s);if(t.order==="XYZ"){let h=a*u,d=a*f,_=o*u,g=o*f;e[0]=l*u,e[4]=-l*f,e[8]=c,e[1]=d+_*c,e[5]=h-g*c,e[9]=-o*l,e[2]=g-h*c,e[6]=_+d*c,e[10]=a*l}else if(t.order==="YXZ"){let h=l*u,d=l*f,_=c*u,g=c*f;e[0]=h+g*o,e[4]=_*o-d,e[8]=a*c,e[1]=a*f,e[5]=a*u,e[9]=-o,e[2]=d*o-_,e[6]=g+h*o,e[10]=a*l}else if(t.order==="ZXY"){let h=l*u,d=l*f,_=c*u,g=c*f;e[0]=h-g*o,e[4]=-a*f,e[8]=_+d*o,e[1]=d+_*o,e[5]=a*u,e[9]=g-h*o,e[2]=-a*c,e[6]=o,e[10]=a*l}else if(t.order==="ZYX"){let h=a*u,d=a*f,_=o*u,g=o*f;e[0]=l*u,e[4]=_*c-d,e[8]=h*c+g,e[1]=l*f,e[5]=g*c+h,e[9]=d*c-_,e[2]=-c,e[6]=o*l,e[10]=a*l}else if(t.order==="YZX"){let h=a*l,d=a*c,_=o*l,g=o*c;e[0]=l*u,e[4]=g-h*f,e[8]=_*f+d,e[1]=f,e[5]=a*u,e[9]=-o*u,e[2]=-c*u,e[6]=d*f+_,e[10]=h-g*f}else if(t.order==="XZY"){let h=a*l,d=a*c,_=o*l,g=o*c;e[0]=l*u,e[4]=-f,e[8]=c*u,e[1]=h*f+g,e[5]=a*u,e[9]=d*f-_,e[2]=_*f-d,e[6]=o*u,e[10]=g*f+h}return e[3]=0,e[7]=0,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,this}makeRotationFromQuaternion(t){return this.compose(U0,t,N0)}lookAt(t,e,n){let i=this.elements;return In.subVectors(t,e),In.lengthSq()===0&&(In.z=1),In.normalize(),Qi.crossVectors(n,In),Qi.lengthSq()===0&&(Math.abs(n.z)===1?In.x+=1e-4:In.z+=1e-4,In.normalize(),Qi.crossVectors(n,In)),Qi.normalize(),Uo.crossVectors(In,Qi),i[0]=Qi.x,i[4]=Uo.x,i[8]=In.x,i[1]=Qi.y,i[5]=Uo.y,i[9]=In.y,i[2]=Qi.z,i[6]=Uo.z,i[10]=In.z,this}multiply(t){return this.multiplyMatrices(this,t)}premultiply(t){return this.multiplyMatrices(t,this)}multiplyMatrices(t,e){let n=t.elements,i=e.elements,s=this.elements,a=n[0],o=n[4],l=n[8],c=n[12],u=n[1],f=n[5],h=n[9],d=n[13],_=n[2],g=n[6],p=n[10],m=n[14],S=n[3],v=n[7],M=n[11],D=n[15],T=i[0],w=i[4],P=i[8],y=i[12],x=i[1],F=i[5],I=i[9],R=i[13],B=i[2],G=i[6],Z=i[10],J=i[14],N=i[3],Q=i[7],A=i[11],at=i[15];return s[0]=a*T+o*x+l*B+c*N,s[4]=a*w+o*F+l*G+c*Q,s[8]=a*P+o*I+l*Z+c*A,s[12]=a*y+o*R+l*J+c*at,s[1]=u*T+f*x+h*B+d*N,s[5]=u*w+f*F+h*G+d*Q,s[9]=u*P+f*I+h*Z+d*A,s[13]=u*y+f*R+h*J+d*at,s[2]=_*T+g*x+p*B+m*N,s[6]=_*w+g*F+p*G+m*Q,s[10]=_*P+g*I+p*Z+m*A,s[14]=_*y+g*R+p*J+m*at,s[3]=S*T+v*x+M*B+D*N,s[7]=S*w+v*F+M*G+D*Q,s[11]=S*P+v*I+M*Z+D*A,s[15]=S*y+v*R+M*J+D*at,this}multiplyScalar(t){let e=this.elements;return e[0]*=t,e[4]*=t,e[8]*=t,e[12]*=t,e[1]*=t,e[5]*=t,e[9]*=t,e[13]*=t,e[2]*=t,e[6]*=t,e[10]*=t,e[14]*=t,e[3]*=t,e[7]*=t,e[11]*=t,e[15]*=t,this}determinant(){let t=this.elements,e=t[0],n=t[4],i=t[8],s=t[12],a=t[1],o=t[5],l=t[9],c=t[13],u=t[2],f=t[6],h=t[10],d=t[14],_=t[3],g=t[7],p=t[11],m=t[15];return _*(+s*l*f-i*c*f-s*o*h+n*c*h+i*o*d-n*l*d)+g*(+e*l*d-e*c*h+s*a*h-i*a*d+i*c*u-s*l*u)+p*(+e*c*f-e*o*d-s*a*f+n*a*d+s*o*u-n*c*u)+m*(-i*o*u-e*l*f+e*o*h+i*a*f-n*a*h+n*l*u)}transpose(){let t=this.elements,e;return e=t[1],t[1]=t[4],t[4]=e,e=t[2],t[2]=t[8],t[8]=e,e=t[6],t[6]=t[9],t[9]=e,e=t[3],t[3]=t[12],t[12]=e,e=t[7],t[7]=t[13],t[13]=e,e=t[11],t[11]=t[14],t[14]=e,this}setPosition(t,e,n){let i=this.elements;return t.isVector3?(i[12]=t.x,i[13]=t.y,i[14]=t.z):(i[12]=t,i[13]=e,i[14]=n),this}invert(){let t=this.elements,e=t[0],n=t[1],i=t[2],s=t[3],a=t[4],o=t[5],l=t[6],c=t[7],u=t[8],f=t[9],h=t[10],d=t[11],_=t[12],g=t[13],p=t[14],m=t[15],S=f*p*c-g*h*c+g*l*d-o*p*d-f*l*m+o*h*m,v=_*h*c-u*p*c-_*l*d+a*p*d+u*l*m-a*h*m,M=u*g*c-_*f*c+_*o*d-a*g*d-u*o*m+a*f*m,D=_*f*l-u*g*l-_*o*h+a*g*h+u*o*p-a*f*p,T=e*S+n*v+i*M+s*D;if(T===0)return this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0);let w=1/T;return t[0]=S*w,t[1]=(g*h*s-f*p*s-g*i*d+n*p*d+f*i*m-n*h*m)*w,t[2]=(o*p*s-g*l*s+g*i*c-n*p*c-o*i*m+n*l*m)*w,t[3]=(f*l*s-o*h*s-f*i*c+n*h*c+o*i*d-n*l*d)*w,t[4]=v*w,t[5]=(u*p*s-_*h*s+_*i*d-e*p*d-u*i*m+e*h*m)*w,t[6]=(_*l*s-a*p*s-_*i*c+e*p*c+a*i*m-e*l*m)*w,t[7]=(a*h*s-u*l*s+u*i*c-e*h*c-a*i*d+e*l*d)*w,t[8]=M*w,t[9]=(_*f*s-u*g*s-_*n*d+e*g*d+u*n*m-e*f*m)*w,t[10]=(a*g*s-_*o*s+_*n*c-e*g*c-a*n*m+e*o*m)*w,t[11]=(u*o*s-a*f*s-u*n*c+e*f*c+a*n*d-e*o*d)*w,t[12]=D*w,t[13]=(u*g*i-_*f*i+_*n*h-e*g*h-u*n*p+e*f*p)*w,t[14]=(_*o*i-a*g*i-_*n*l+e*g*l+a*n*p-e*o*p)*w,t[15]=(a*f*i-u*o*i+u*n*l-e*f*l-a*n*h+e*o*h)*w,this}scale(t){let e=this.elements,n=t.x,i=t.y,s=t.z;return e[0]*=n,e[4]*=i,e[8]*=s,e[1]*=n,e[5]*=i,e[9]*=s,e[2]*=n,e[6]*=i,e[10]*=s,e[3]*=n,e[7]*=i,e[11]*=s,this}getMaxScaleOnAxis(){let t=this.elements,e=t[0]*t[0]+t[1]*t[1]+t[2]*t[2],n=t[4]*t[4]+t[5]*t[5]+t[6]*t[6],i=t[8]*t[8]+t[9]*t[9]+t[10]*t[10];return Math.sqrt(Math.max(e,n,i))}makeTranslation(t,e,n){return t.isVector3?this.set(1,0,0,t.x,0,1,0,t.y,0,0,1,t.z,0,0,0,1):this.set(1,0,0,t,0,1,0,e,0,0,1,n,0,0,0,1),this}makeRotationX(t){let e=Math.cos(t),n=Math.sin(t);return this.set(1,0,0,0,0,e,-n,0,0,n,e,0,0,0,0,1),this}makeRotationY(t){let e=Math.cos(t),n=Math.sin(t);return this.set(e,0,n,0,0,1,0,0,-n,0,e,0,0,0,0,1),this}makeRotationZ(t){let e=Math.cos(t),n=Math.sin(t);return this.set(e,-n,0,0,n,e,0,0,0,0,1,0,0,0,0,1),this}makeRotationAxis(t,e){let n=Math.cos(e),i=Math.sin(e),s=1-n,a=t.x,o=t.y,l=t.z,c=s*a,u=s*o;return this.set(c*a+n,c*o-i*l,c*l+i*o,0,c*o+i*l,u*o+n,u*l-i*a,0,c*l-i*o,u*l+i*a,s*l*l+n,0,0,0,0,1),this}makeScale(t,e,n){return this.set(t,0,0,0,0,e,0,0,0,0,n,0,0,0,0,1),this}makeShear(t,e,n,i,s,a){return this.set(1,n,s,0,t,1,a,0,e,i,1,0,0,0,0,1),this}compose(t,e,n){let i=this.elements,s=e._x,a=e._y,o=e._z,l=e._w,c=s+s,u=a+a,f=o+o,h=s*c,d=s*u,_=s*f,g=a*u,p=a*f,m=o*f,S=l*c,v=l*u,M=l*f,D=n.x,T=n.y,w=n.z;return i[0]=(1-(g+m))*D,i[1]=(d+M)*D,i[2]=(_-v)*D,i[3]=0,i[4]=(d-M)*T,i[5]=(1-(h+m))*T,i[6]=(p+S)*T,i[7]=0,i[8]=(_+v)*w,i[9]=(p-S)*w,i[10]=(1-(h+g))*w,i[11]=0,i[12]=t.x,i[13]=t.y,i[14]=t.z,i[15]=1,this}decompose(t,e,n){let i=this.elements,s=Ms.set(i[0],i[1],i[2]).length(),a=Ms.set(i[4],i[5],i[6]).length(),o=Ms.set(i[8],i[9],i[10]).length();this.determinant()<0&&(s=-s),t.x=i[12],t.y=i[13],t.z=i[14],ti.copy(this);let c=1/s,u=1/a,f=1/o;return ti.elements[0]*=c,ti.elements[1]*=c,ti.elements[2]*=c,ti.elements[4]*=u,ti.elements[5]*=u,ti.elements[6]*=u,ti.elements[8]*=f,ti.elements[9]*=f,ti.elements[10]*=f,e.setFromRotationMatrix(ti),n.x=s,n.y=a,n.z=o,this}makePerspective(t,e,n,i,s,a,o=Fi){let l=this.elements,c=2*s/(e-t),u=2*s/(n-i),f=(e+t)/(e-t),h=(n+i)/(n-i),d,_;if(o===Fi)d=-(a+s)/(a-s),_=-2*a*s/(a-s);else if(o===sl)d=-a/(a-s),_=-a*s/(a-s);else throw new Error("THREE.Matrix4.makePerspective(): Invalid coordinate system: "+o);return l[0]=c,l[4]=0,l[8]=f,l[12]=0,l[1]=0,l[5]=u,l[9]=h,l[13]=0,l[2]=0,l[6]=0,l[10]=d,l[14]=_,l[3]=0,l[7]=0,l[11]=-1,l[15]=0,this}makeOrthographic(t,e,n,i,s,a,o=Fi){let l=this.elements,c=1/(e-t),u=1/(n-i),f=1/(a-s),h=(e+t)*c,d=(n+i)*u,_,g;if(o===Fi)_=(a+s)*f,g=-2*f;else if(o===sl)_=s*f,g=-1*f;else throw new Error("THREE.Matrix4.makeOrthographic(): Invalid coordinate system: "+o);return l[0]=2*c,l[4]=0,l[8]=0,l[12]=-h,l[1]=0,l[5]=2*u,l[9]=0,l[13]=-d,l[2]=0,l[6]=0,l[10]=g,l[14]=-_,l[3]=0,l[7]=0,l[11]=0,l[15]=1,this}equals(t){let e=this.elements,n=t.elements;for(let i=0;i<16;i++)if(e[i]!==n[i])return!1;return!0}fromArray(t,e=0){for(let n=0;n<16;n++)this.elements[n]=t[n+e];return this}toArray(t=[],e=0){let n=this.elements;return t[e]=n[0],t[e+1]=n[1],t[e+2]=n[2],t[e+3]=n[3],t[e+4]=n[4],t[e+5]=n[5],t[e+6]=n[6],t[e+7]=n[7],t[e+8]=n[8],t[e+9]=n[9],t[e+10]=n[10],t[e+11]=n[11],t[e+12]=n[12],t[e+13]=n[13],t[e+14]=n[14],t[e+15]=n[15],t}},Ms=new q,ti=new Re,U0=new q(0,0,0),N0=new q(1,1,1),Qi=new q,Uo=new q,In=new q,mp=new Re,gp=new ur,Ni=class r{constructor(t=0,e=0,n=0,i=r.DEFAULT_ORDER){this.isEuler=!0,this._x=t,this._y=e,this._z=n,this._order=i}get x(){return this._x}set x(t){this._x=t,this._onChangeCallback()}get y(){return this._y}set y(t){this._y=t,this._onChangeCallback()}get z(){return this._z}set z(t){this._z=t,this._onChangeCallback()}get order(){return this._order}set order(t){this._order=t,this._onChangeCallback()}set(t,e,n,i=this._order){return this._x=t,this._y=e,this._z=n,this._order=i,this._onChangeCallback(),this}clone(){return new this.constructor(this._x,this._y,this._z,this._order)}copy(t){return this._x=t._x,this._y=t._y,this._z=t._z,this._order=t._order,this._onChangeCallback(),this}setFromRotationMatrix(t,e=this._order,n=!0){let i=t.elements,s=i[0],a=i[4],o=i[8],l=i[1],c=i[5],u=i[9],f=i[2],h=i[6],d=i[10];switch(e){case"XYZ":this._y=Math.asin(wn(o,-1,1)),Math.abs(o)<.9999999?(this._x=Math.atan2(-u,d),this._z=Math.atan2(-a,s)):(this._x=Math.atan2(h,c),this._z=0);break;case"YXZ":this._x=Math.asin(-wn(u,-1,1)),Math.abs(u)<.9999999?(this._y=Math.atan2(o,d),this._z=Math.atan2(l,c)):(this._y=Math.atan2(-f,s),this._z=0);break;case"ZXY":this._x=Math.asin(wn(h,-1,1)),Math.abs(h)<.9999999?(this._y=Math.atan2(-f,d),this._z=Math.atan2(-a,c)):(this._y=0,this._z=Math.atan2(l,s));break;case"ZYX":this._y=Math.asin(-wn(f,-1,1)),Math.abs(f)<.9999999?(this._x=Math.atan2(h,d),this._z=Math.atan2(l,s)):(this._x=0,this._z=Math.atan2(-a,c));break;case"YZX":this._z=Math.asin(wn(l,-1,1)),Math.abs(l)<.9999999?(this._x=Math.atan2(-u,c),this._y=Math.atan2(-f,s)):(this._x=0,this._y=Math.atan2(o,d));break;case"XZY":this._z=Math.asin(-wn(a,-1,1)),Math.abs(a)<.9999999?(this._x=Math.atan2(h,c),this._y=Math.atan2(o,s)):(this._x=Math.atan2(-u,d),this._y=0);break;default:console.warn("THREE.Euler: .setFromRotationMatrix() encountered an unknown order: "+e)}return this._order=e,n===!0&&this._onChangeCallback(),this}setFromQuaternion(t,e,n){return mp.makeRotationFromQuaternion(t),this.setFromRotationMatrix(mp,e,n)}setFromVector3(t,e=this._order){return this.set(t.x,t.y,t.z,e)}reorder(t){return gp.setFromEuler(this),this.setFromQuaternion(gp,t)}equals(t){return t._x===this._x&&t._y===this._y&&t._z===this._z&&t._order===this._order}fromArray(t){return this._x=t[0],this._y=t[1],this._z=t[2],t[3]!==void 0&&(this._order=t[3]),this._onChangeCallback(),this}toArray(t=[],e=0){return t[e]=this._x,t[e+1]=this._y,t[e+2]=this._z,t[e+3]=this._order,t}_onChange(t){return this._onChangeCallback=t,this}_onChangeCallback(){}*[Symbol.iterator](){yield this._x,yield this._y,yield this._z,yield this._order}};Ni.DEFAULT_ORDER="XYZ";var ul=class{constructor(){this.mask=1}set(t){this.mask=(1<<t|0)>>>0}enable(t){this.mask|=1<<t|0}enableAll(){this.mask=-1}toggle(t){this.mask^=1<<t|0}disable(t){this.mask&=~(1<<t|0)}disableAll(){this.mask=0}test(t){return(this.mask&t.mask)!==0}isEnabled(t){return(this.mask&(1<<t|0))!==0}},O0=0,_p=new q,Ss=new ur,Di=new Re,No=new q,Aa=new q,B0=new q,z0=new ur,xp=new q(1,0,0),vp=new q(0,1,0),yp=new q(0,0,1),Mp={type:"added"},k0={type:"removed"},bs={type:"childadded",child:null},pu={type:"childremoved",child:null},sn=class r extends cr{constructor(){super(),this.isObject3D=!0,Object.defineProperty(this,"id",{value:O0++}),this.uuid=Na(),this.name="",this.type="Object3D",this.parent=null,this.children=[],this.up=r.DEFAULT_UP.clone();let t=new q,e=new Ni,n=new ur,i=new q(1,1,1);function s(){n.setFromEuler(e,!1)}function a(){e.setFromQuaternion(n,void 0,!1)}e._onChange(s),n._onChange(a),Object.defineProperties(this,{position:{configurable:!0,enumerable:!0,value:t},rotation:{configurable:!0,enumerable:!0,value:e},quaternion:{configurable:!0,enumerable:!0,value:n},scale:{configurable:!0,enumerable:!0,value:i},modelViewMatrix:{value:new Re},normalMatrix:{value:new qt}}),this.matrix=new Re,this.matrixWorld=new Re,this.matrixAutoUpdate=r.DEFAULT_MATRIX_AUTO_UPDATE,this.matrixWorldAutoUpdate=r.DEFAULT_MATRIX_WORLD_AUTO_UPDATE,this.matrixWorldNeedsUpdate=!1,this.layers=new ul,this.visible=!0,this.castShadow=!1,this.receiveShadow=!1,this.frustumCulled=!0,this.renderOrder=0,this.animations=[],this.userData={}}onBeforeShadow(){}onAfterShadow(){}onBeforeRender(){}onAfterRender(){}applyMatrix4(t){this.matrixAutoUpdate&&this.updateMatrix(),this.matrix.premultiply(t),this.matrix.decompose(this.position,this.quaternion,this.scale)}applyQuaternion(t){return this.quaternion.premultiply(t),this}setRotationFromAxisAngle(t,e){this.quaternion.setFromAxisAngle(t,e)}setRotationFromEuler(t){this.quaternion.setFromEuler(t,!0)}setRotationFromMatrix(t){this.quaternion.setFromRotationMatrix(t)}setRotationFromQuaternion(t){this.quaternion.copy(t)}rotateOnAxis(t,e){return Ss.setFromAxisAngle(t,e),this.quaternion.multiply(Ss),this}rotateOnWorldAxis(t,e){return Ss.setFromAxisAngle(t,e),this.quaternion.premultiply(Ss),this}rotateX(t){return this.rotateOnAxis(xp,t)}rotateY(t){return this.rotateOnAxis(vp,t)}rotateZ(t){return this.rotateOnAxis(yp,t)}translateOnAxis(t,e){return _p.copy(t).applyQuaternion(this.quaternion),this.position.add(_p.multiplyScalar(e)),this}translateX(t){return this.translateOnAxis(xp,t)}translateY(t){return this.translateOnAxis(vp,t)}translateZ(t){return this.translateOnAxis(yp,t)}localToWorld(t){return this.updateWorldMatrix(!0,!1),t.applyMatrix4(this.matrixWorld)}worldToLocal(t){return this.updateWorldMatrix(!0,!1),t.applyMatrix4(Di.copy(this.matrixWorld).invert())}lookAt(t,e,n){t.isVector3?No.copy(t):No.set(t,e,n);let i=this.parent;this.updateWorldMatrix(!0,!1),Aa.setFromMatrixPosition(this.matrixWorld),this.isCamera||this.isLight?Di.lookAt(Aa,No,this.up):Di.lookAt(No,Aa,this.up),this.quaternion.setFromRotationMatrix(Di),i&&(Di.extractRotation(i.matrixWorld),Ss.setFromRotationMatrix(Di),this.quaternion.premultiply(Ss.invert()))}add(t){if(arguments.length>1){for(let e=0;e<arguments.length;e++)this.add(arguments[e]);return this}return t===this?(console.error("THREE.Object3D.add: object can't be added as a child of itself.",t),this):(t&&t.isObject3D?(t.removeFromParent(),t.parent=this,this.children.push(t),t.dispatchEvent(Mp),bs.child=t,this.dispatchEvent(bs),bs.child=null):console.error("THREE.Object3D.add: object not an instance of THREE.Object3D.",t),this)}remove(t){if(arguments.length>1){for(let n=0;n<arguments.length;n++)this.remove(arguments[n]);return this}let e=this.children.indexOf(t);return e!==-1&&(t.parent=null,this.children.splice(e,1),t.dispatchEvent(k0),pu.child=t,this.dispatchEvent(pu),pu.child=null),this}removeFromParent(){let t=this.parent;return t!==null&&t.remove(this),this}clear(){return this.remove(...this.children)}attach(t){return this.updateWorldMatrix(!0,!1),Di.copy(this.matrixWorld).invert(),t.parent!==null&&(t.parent.updateWorldMatrix(!0,!1),Di.multiply(t.parent.matrixWorld)),t.applyMatrix4(Di),t.removeFromParent(),t.parent=this,this.children.push(t),t.updateWorldMatrix(!1,!0),t.dispatchEvent(Mp),bs.child=t,this.dispatchEvent(bs),bs.child=null,this}getObjectById(t){return this.getObjectByProperty("id",t)}getObjectByName(t){return this.getObjectByProperty("name",t)}getObjectByProperty(t,e){if(this[t]===e)return this;for(let n=0,i=this.children.length;n<i;n++){let a=this.children[n].getObjectByProperty(t,e);if(a!==void 0)return a}}getObjectsByProperty(t,e,n=[]){this[t]===e&&n.push(this);let i=this.children;for(let s=0,a=i.length;s<a;s++)i[s].getObjectsByProperty(t,e,n);return n}getWorldPosition(t){return this.updateWorldMatrix(!0,!1),t.setFromMatrixPosition(this.matrixWorld)}getWorldQuaternion(t){return this.updateWorldMatrix(!0,!1),this.matrixWorld.decompose(Aa,t,B0),t}getWorldScale(t){return this.updateWorldMatrix(!0,!1),this.matrixWorld.decompose(Aa,z0,t),t}getWorldDirection(t){this.updateWorldMatrix(!0,!1);let e=this.matrixWorld.elements;return t.set(e[8],e[9],e[10]).normalize()}raycast(){}traverse(t){t(this);let e=this.children;for(let n=0,i=e.length;n<i;n++)e[n].traverse(t)}traverseVisible(t){if(this.visible===!1)return;t(this);let e=this.children;for(let n=0,i=e.length;n<i;n++)e[n].traverseVisible(t)}traverseAncestors(t){let e=this.parent;e!==null&&(t(e),e.traverseAncestors(t))}updateMatrix(){this.matrix.compose(this.position,this.quaternion,this.scale),this.matrixWorldNeedsUpdate=!0}updateMatrixWorld(t){this.matrixAutoUpdate&&this.updateMatrix(),(this.matrixWorldNeedsUpdate||t)&&(this.parent===null?this.matrixWorld.copy(this.matrix):this.matrixWorld.multiplyMatrices(this.parent.matrixWorld,this.matrix),this.matrixWorldNeedsUpdate=!1,t=!0);let e=this.children;for(let n=0,i=e.length;n<i;n++){let s=e[n];(s.matrixWorldAutoUpdate===!0||t===!0)&&s.updateMatrixWorld(t)}}updateWorldMatrix(t,e){let n=this.parent;if(t===!0&&n!==null&&n.matrixWorldAutoUpdate===!0&&n.updateWorldMatrix(!0,!1),this.matrixAutoUpdate&&this.updateMatrix(),this.parent===null?this.matrixWorld.copy(this.matrix):this.matrixWorld.multiplyMatrices(this.parent.matrixWorld,this.matrix),e===!0){let i=this.children;for(let s=0,a=i.length;s<a;s++){let o=i[s];o.matrixWorldAutoUpdate===!0&&o.updateWorldMatrix(!1,!0)}}}toJSON(t){let e=t===void 0||typeof t=="string",n={};e&&(t={geometries:{},materials:{},textures:{},images:{},shapes:{},skeletons:{},animations:{},nodes:{}},n.metadata={version:4.6,type:"Object",generator:"Object3D.toJSON"});let i={};i.uuid=this.uuid,i.type=this.type,this.name!==""&&(i.name=this.name),this.castShadow===!0&&(i.castShadow=!0),this.receiveShadow===!0&&(i.receiveShadow=!0),this.visible===!1&&(i.visible=!1),this.frustumCulled===!1&&(i.frustumCulled=!1),this.renderOrder!==0&&(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(),this.matrixAutoUpdate===!1&&(i.matrixAutoUpdate=!1),this.isInstancedMesh&&(i.type="InstancedMesh",i.count=this.count,i.instanceMatrix=this.instanceMatrix.toJSON(),this.instanceColor!==null&&(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.visibility=this._visibility,i.active=this._active,i.bounds=this._bounds.map(o=>({boxInitialized:o.boxInitialized,boxMin:o.box.min.toArray(),boxMax:o.box.max.toArray(),sphereInitialized:o.sphereInitialized,sphereRadius:o.sphere.radius,sphereCenter:o.sphere.center.toArray()})),i.maxGeometryCount=this._maxGeometryCount,i.maxVertexCount=this._maxVertexCount,i.maxIndexCount=this._maxIndexCount,i.geometryInitialized=this._geometryInitialized,i.geometryCount=this._geometryCount,i.matricesTexture=this._matricesTexture.toJSON(t),this.boundingSphere!==null&&(i.boundingSphere={center:i.boundingSphere.center.toArray(),radius:i.boundingSphere.radius}),this.boundingBox!==null&&(i.boundingBox={min:i.boundingBox.min.toArray(),max:i.boundingBox.max.toArray()}));function s(o,l){return o[l.uuid]===void 0&&(o[l.uuid]=l.toJSON(t)),l.uuid}if(this.isScene)this.background&&(this.background.isColor?i.background=this.background.toJSON():this.background.isTexture&&(i.background=this.background.toJSON(t).uuid)),this.environment&&this.environment.isTexture&&this.environment.isRenderTargetTexture!==!0&&(i.environment=this.environment.toJSON(t).uuid);else if(this.isMesh||this.isLine||this.isPoints){i.geometry=s(t.geometries,this.geometry);let o=this.geometry.parameters;if(o!==void 0&&o.shapes!==void 0){let l=o.shapes;if(Array.isArray(l))for(let c=0,u=l.length;c<u;c++){let f=l[c];s(t.shapes,f)}else s(t.shapes,l)}}if(this.isSkinnedMesh&&(i.bindMode=this.bindMode,i.bindMatrix=this.bindMatrix.toArray(),this.skeleton!==void 0&&(s(t.skeletons,this.skeleton),i.skeleton=this.skeleton.uuid)),this.material!==void 0)if(Array.isArray(this.material)){let o=[];for(let l=0,c=this.material.length;l<c;l++)o.push(s(t.materials,this.material[l]));i.material=o}else i.material=s(t.materials,this.material);if(this.children.length>0){i.children=[];for(let o=0;o<this.children.length;o++)i.children.push(this.children[o].toJSON(t).object)}if(this.animations.length>0){i.animations=[];for(let o=0;o<this.animations.length;o++){let l=this.animations[o];i.animations.push(s(t.animations,l))}}if(e){let o=a(t.geometries),l=a(t.materials),c=a(t.textures),u=a(t.images),f=a(t.shapes),h=a(t.skeletons),d=a(t.animations),_=a(t.nodes);o.length>0&&(n.geometries=o),l.length>0&&(n.materials=l),c.length>0&&(n.textures=c),u.length>0&&(n.images=u),f.length>0&&(n.shapes=f),h.length>0&&(n.skeletons=h),d.length>0&&(n.animations=d),_.length>0&&(n.nodes=_)}return n.object=i,n;function a(o){let l=[];for(let c in o){let u=o[c];delete u.metadata,l.push(u)}return l}}clone(t){return new this.constructor().copy(this,t)}copy(t,e=!0){if(this.name=t.name,this.up.copy(t.up),this.position.copy(t.position),this.rotation.order=t.rotation.order,this.quaternion.copy(t.quaternion),this.scale.copy(t.scale),this.matrix.copy(t.matrix),this.matrixWorld.copy(t.matrixWorld),this.matrixAutoUpdate=t.matrixAutoUpdate,this.matrixWorldAutoUpdate=t.matrixWorldAutoUpdate,this.matrixWorldNeedsUpdate=t.matrixWorldNeedsUpdate,this.layers.mask=t.layers.mask,this.visible=t.visible,this.castShadow=t.castShadow,this.receiveShadow=t.receiveShadow,this.frustumCulled=t.frustumCulled,this.renderOrder=t.renderOrder,this.animations=t.animations.slice(),this.userData=JSON.parse(JSON.stringify(t.userData)),e===!0)for(let n=0;n<t.children.length;n++){let i=t.children[n];this.add(i.clone())}return this}};sn.DEFAULT_UP=new q(0,1,0);sn.DEFAULT_MATRIX_AUTO_UPDATE=!0;sn.DEFAULT_MATRIX_WORLD_AUTO_UPDATE=!0;var ei=new q,Ci=new q,mu=new q,Ri=new q,Es=new q,ws=new q,Sp=new q,gu=new q,_u=new q,xu=new q,Ls=class r{constructor(t=new q,e=new q,n=new q){this.a=t,this.b=e,this.c=n}static getNormal(t,e,n,i){i.subVectors(n,e),ei.subVectors(t,e),i.cross(ei);let s=i.lengthSq();return s>0?i.multiplyScalar(1/Math.sqrt(s)):i.set(0,0,0)}static getBarycoord(t,e,n,i,s){ei.subVectors(i,e),Ci.subVectors(n,e),mu.subVectors(t,e);let a=ei.dot(ei),o=ei.dot(Ci),l=ei.dot(mu),c=Ci.dot(Ci),u=Ci.dot(mu),f=a*c-o*o;if(f===0)return s.set(0,0,0),null;let h=1/f,d=(c*l-o*u)*h,_=(a*u-o*l)*h;return s.set(1-d-_,_,d)}static containsPoint(t,e,n,i){return this.getBarycoord(t,e,n,i,Ri)===null?!1:Ri.x>=0&&Ri.y>=0&&Ri.x+Ri.y<=1}static getInterpolation(t,e,n,i,s,a,o,l){return this.getBarycoord(t,e,n,i,Ri)===null?(l.x=0,l.y=0,"z"in l&&(l.z=0),"w"in l&&(l.w=0),null):(l.setScalar(0),l.addScaledVector(s,Ri.x),l.addScaledVector(a,Ri.y),l.addScaledVector(o,Ri.z),l)}static isFrontFacing(t,e,n,i){return ei.subVectors(n,e),Ci.subVectors(t,e),ei.cross(Ci).dot(i)<0}set(t,e,n){return this.a.copy(t),this.b.copy(e),this.c.copy(n),this}setFromPointsAndIndices(t,e,n,i){return this.a.copy(t[e]),this.b.copy(t[n]),this.c.copy(t[i]),this}setFromAttributeAndIndices(t,e,n,i){return this.a.fromBufferAttribute(t,e),this.b.fromBufferAttribute(t,n),this.c.fromBufferAttribute(t,i),this}clone(){return new this.constructor().copy(this)}copy(t){return this.a.copy(t.a),this.b.copy(t.b),this.c.copy(t.c),this}getArea(){return ei.subVectors(this.c,this.b),Ci.subVectors(this.a,this.b),ei.cross(Ci).length()*.5}getMidpoint(t){return t.addVectors(this.a,this.b).add(this.c).multiplyScalar(1/3)}getNormal(t){return r.getNormal(this.a,this.b,this.c,t)}getPlane(t){return t.setFromCoplanarPoints(this.a,this.b,this.c)}getBarycoord(t,e){return r.getBarycoord(t,this.a,this.b,this.c,e)}getInterpolation(t,e,n,i,s){return r.getInterpolation(t,this.a,this.b,this.c,e,n,i,s)}containsPoint(t){return r.containsPoint(t,this.a,this.b,this.c)}isFrontFacing(t){return r.isFrontFacing(this.a,this.b,this.c,t)}intersectsBox(t){return t.intersectsTriangle(this)}closestPointToPoint(t,e){let n=this.a,i=this.b,s=this.c,a,o;Es.subVectors(i,n),ws.subVectors(s,n),gu.subVectors(t,n);let l=Es.dot(gu),c=ws.dot(gu);if(l<=0&&c<=0)return e.copy(n);_u.subVectors(t,i);let u=Es.dot(_u),f=ws.dot(_u);if(u>=0&&f<=u)return e.copy(i);let h=l*f-u*c;if(h<=0&&l>=0&&u<=0)return a=l/(l-u),e.copy(n).addScaledVector(Es,a);xu.subVectors(t,s);let d=Es.dot(xu),_=ws.dot(xu);if(_>=0&&d<=_)return e.copy(s);let g=d*c-l*_;if(g<=0&&c>=0&&_<=0)return o=c/(c-_),e.copy(n).addScaledVector(ws,o);let p=u*_-d*f;if(p<=0&&f-u>=0&&d-_>=0)return Sp.subVectors(s,i),o=(f-u)/(f-u+(d-_)),e.copy(i).addScaledVector(Sp,o);let m=1/(p+g+h);return a=g*m,o=h*m,e.copy(n).addScaledVector(Es,a).addScaledVector(ws,o)}equals(t){return t.a.equals(this.a)&&t.b.equals(this.b)&&t.c.equals(this.c)}},dm={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},ji={h:0,s:0,l:0},Oo={h:0,s:0,l:0};function vu(r,t,e){return e<0&&(e+=1),e>1&&(e-=1),e<1/6?r+(t-r)*6*e:e<1/2?t:e<2/3?r+(t-r)*6*(2/3-e):r}var re=class{constructor(t,e,n){return this.isColor=!0,this.r=1,this.g=1,this.b=1,this.set(t,e,n)}set(t,e,n){if(e===void 0&&n===void 0){let i=t;i&&i.isColor?this.copy(i):typeof i=="number"?this.setHex(i):typeof i=="string"&&this.setStyle(i)}else this.setRGB(t,e,n);return this}setScalar(t){return this.r=t,this.g=t,this.b=t,this}setHex(t,e=Gn){return t=Math.floor(t),this.r=(t>>16&255)/255,this.g=(t>>8&255)/255,this.b=(t&255)/255,he.toWorkingColorSpace(this,e),this}setRGB(t,e,n,i=he.workingColorSpace){return this.r=t,this.g=e,this.b=n,he.toWorkingColorSpace(this,i),this}setHSL(t,e,n,i=he.workingColorSpace){if(t=D0(t,1),e=wn(e,0,1),n=wn(n,0,1),e===0)this.r=this.g=this.b=n;else{let s=n<=.5?n*(1+e):n+e-n*e,a=2*n-s;this.r=vu(a,s,t+1/3),this.g=vu(a,s,t),this.b=vu(a,s,t-1/3)}return he.toWorkingColorSpace(this,i),this}setStyle(t,e=Gn){function n(s){s!==void 0&&parseFloat(s)<1&&console.warn("THREE.Color: Alpha component of "+t+" will be ignored.")}let i;if(i=/^(\w+)\(([^\)]*)\)/.exec(t)){let s,a=i[1],o=i[2];switch(a){case"rgb":case"rgba":if(s=/^\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(o))return n(s[4]),this.setRGB(Math.min(255,parseInt(s[1],10))/255,Math.min(255,parseInt(s[2],10))/255,Math.min(255,parseInt(s[3],10))/255,e);if(s=/^\s*(\d+)\%\s*,\s*(\d+)\%\s*,\s*(\d+)\%\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(o))return n(s[4]),this.setRGB(Math.min(100,parseInt(s[1],10))/100,Math.min(100,parseInt(s[2],10))/100,Math.min(100,parseInt(s[3],10))/100,e);break;case"hsl":case"hsla":if(s=/^\s*(\d*\.?\d+)\s*,\s*(\d*\.?\d+)\%\s*,\s*(\d*\.?\d+)\%\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(o))return n(s[4]),this.setHSL(parseFloat(s[1])/360,parseFloat(s[2])/100,parseFloat(s[3])/100,e);break;default:console.warn("THREE.Color: Unknown color model "+t)}}else if(i=/^\#([A-Fa-f\d]+)$/.exec(t)){let s=i[1],a=s.length;if(a===3)return this.setRGB(parseInt(s.charAt(0),16)/15,parseInt(s.charAt(1),16)/15,parseInt(s.charAt(2),16)/15,e);if(a===6)return this.setHex(parseInt(s,16),e);console.warn("THREE.Color: Invalid hex color "+t)}else if(t&&t.length>0)return this.setColorName(t,e);return this}setColorName(t,e=Gn){let n=dm[t.toLowerCase()];return n!==void 0?this.setHex(n,e):console.warn("THREE.Color: Unknown color "+t),this}clone(){return new this.constructor(this.r,this.g,this.b)}copy(t){return this.r=t.r,this.g=t.g,this.b=t.b,this}copySRGBToLinear(t){return this.r=Ns(t.r),this.g=Ns(t.g),this.b=Ns(t.b),this}copyLinearToSRGB(t){return this.r=au(t.r),this.g=au(t.g),this.b=au(t.b),this}convertSRGBToLinear(){return this.copySRGBToLinear(this),this}convertLinearToSRGB(){return this.copyLinearToSRGB(this),this}getHex(t=Gn){return he.fromWorkingColorSpace(rn.copy(this),t),Math.round(wn(rn.r*255,0,255))*65536+Math.round(wn(rn.g*255,0,255))*256+Math.round(wn(rn.b*255,0,255))}getHexString(t=Gn){return("000000"+this.getHex(t).toString(16)).slice(-6)}getHSL(t,e=he.workingColorSpace){he.fromWorkingColorSpace(rn.copy(this),e);let n=rn.r,i=rn.g,s=rn.b,a=Math.max(n,i,s),o=Math.min(n,i,s),l,c,u=(o+a)/2;if(o===a)l=0,c=0;else{let f=a-o;switch(c=u<=.5?f/(a+o):f/(2-a-o),a){case n:l=(i-s)/f+(i<s?6:0);break;case i:l=(s-n)/f+2;break;case s:l=(n-i)/f+4;break}l/=6}return t.h=l,t.s=c,t.l=u,t}getRGB(t,e=he.workingColorSpace){return he.fromWorkingColorSpace(rn.copy(this),e),t.r=rn.r,t.g=rn.g,t.b=rn.b,t}getStyle(t=Gn){he.fromWorkingColorSpace(rn.copy(this),t);let e=rn.r,n=rn.g,i=rn.b;return t!==Gn?`color(${t} ${e.toFixed(3)} ${n.toFixed(3)} ${i.toFixed(3)})`:`rgb(${Math.round(e*255)},${Math.round(n*255)},${Math.round(i*255)})`}offsetHSL(t,e,n){return this.getHSL(ji),this.setHSL(ji.h+t,ji.s+e,ji.l+n)}add(t){return this.r+=t.r,this.g+=t.g,this.b+=t.b,this}addColors(t,e){return this.r=t.r+e.r,this.g=t.g+e.g,this.b=t.b+e.b,this}addScalar(t){return this.r+=t,this.g+=t,this.b+=t,this}sub(t){return this.r=Math.max(0,this.r-t.r),this.g=Math.max(0,this.g-t.g),this.b=Math.max(0,this.b-t.b),this}multiply(t){return this.r*=t.r,this.g*=t.g,this.b*=t.b,this}multiplyScalar(t){return this.r*=t,this.g*=t,this.b*=t,this}lerp(t,e){return this.r+=(t.r-this.r)*e,this.g+=(t.g-this.g)*e,this.b+=(t.b-this.b)*e,this}lerpColors(t,e,n){return this.r=t.r+(e.r-t.r)*n,this.g=t.g+(e.g-t.g)*n,this.b=t.b+(e.b-t.b)*n,this}lerpHSL(t,e){this.getHSL(ji),t.getHSL(Oo);let n=ru(ji.h,Oo.h,e),i=ru(ji.s,Oo.s,e),s=ru(ji.l,Oo.l,e);return this.setHSL(n,i,s),this}setFromVector3(t){return this.r=t.x,this.g=t.y,this.b=t.z,this}applyMatrix3(t){let e=this.r,n=this.g,i=this.b,s=t.elements;return this.r=s[0]*e+s[3]*n+s[6]*i,this.g=s[1]*e+s[4]*n+s[7]*i,this.b=s[2]*e+s[5]*n+s[8]*i,this}equals(t){return t.r===this.r&&t.g===this.g&&t.b===this.b}fromArray(t,e=0){return this.r=t[e],this.g=t[e+1],this.b=t[e+2],this}toArray(t=[],e=0){return t[e]=this.r,t[e+1]=this.g,t[e+2]=this.b,t}fromBufferAttribute(t,e){return this.r=t.getX(e),this.g=t.getY(e),this.b=t.getZ(e),this}toJSON(){return this.getHex()}*[Symbol.iterator](){yield this.r,yield this.g,yield this.b}},rn=new re;re.NAMES=dm;var V0=0,Yr=class extends cr{constructor(){super(),this.isMaterial=!0,Object.defineProperty(this,"id",{value:V0++}),this.uuid=Na(),this.name="",this.type="Material",this.blending=sr,this.side=or,this.vertexColors=!1,this.opacity=1,this.transparent=!1,this.alphaHash=!1,this.blendSrc=Ru,this.blendDst=Pu,this.blendEquation=Hr,this.blendSrcAlpha=null,this.blendDstAlpha=null,this.blendEquationAlpha=null,this.blendColor=new re(0,0,0),this.blendAlpha=0,this.depthFunc=jo,this.depthTest=!0,this.depthWrite=!0,this.stencilWriteMask=255,this.stencilFunc=lp,this.stencilRef=0,this.stencilFuncMask=255,this.stencilFail=gs,this.stencilZFail=gs,this.stencilZPass=gs,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.visible=!0,this.toneMapped=!0,this.userData={},this.version=0,this._alphaTest=0}get alphaTest(){return this._alphaTest}set alphaTest(t){this._alphaTest>0!=t>0&&this.version++,this._alphaTest=t}onBuild(){}onBeforeRender(){}onBeforeCompile(){}customProgramCacheKey(){return this.onBeforeCompile.toString()}setValues(t){if(t!==void 0)for(let e in t){let n=t[e];if(n===void 0){console.warn(`THREE.Material: parameter '${e}' has value of undefined.`);continue}let i=this[e];if(i===void 0){console.warn(`THREE.Material: '${e}' is not a property of THREE.${this.type}.`);continue}i&&i.isColor?i.set(n):i&&i.isVector3&&n&&n.isVector3?i.copy(n):this[e]=n}}toJSON(t){let e=t===void 0||typeof t=="string";e&&(t={textures:{},images:{}});let n={metadata:{version:4.6,type:"Material",generator:"Material.toJSON"}};n.uuid=this.uuid,n.type=this.type,this.name!==""&&(n.name=this.name),this.color&&this.color.isColor&&(n.color=this.color.getHex()),this.roughness!==void 0&&(n.roughness=this.roughness),this.metalness!==void 0&&(n.metalness=this.metalness),this.sheen!==void 0&&(n.sheen=this.sheen),this.sheenColor&&this.sheenColor.isColor&&(n.sheenColor=this.sheenColor.getHex()),this.sheenRoughness!==void 0&&(n.sheenRoughness=this.sheenRoughness),this.emissive&&this.emissive.isColor&&(n.emissive=this.emissive.getHex()),this.emissiveIntensity!==void 0&&this.emissiveIntensity!==1&&(n.emissiveIntensity=this.emissiveIntensity),this.specular&&this.specular.isColor&&(n.specular=this.specular.getHex()),this.specularIntensity!==void 0&&(n.specularIntensity=this.specularIntensity),this.specularColor&&this.specularColor.isColor&&(n.specularColor=this.specularColor.getHex()),this.shininess!==void 0&&(n.shininess=this.shininess),this.clearcoat!==void 0&&(n.clearcoat=this.clearcoat),this.clearcoatRoughness!==void 0&&(n.clearcoatRoughness=this.clearcoatRoughness),this.clearcoatMap&&this.clearcoatMap.isTexture&&(n.clearcoatMap=this.clearcoatMap.toJSON(t).uuid),this.clearcoatRoughnessMap&&this.clearcoatRoughnessMap.isTexture&&(n.clearcoatRoughnessMap=this.clearcoatRoughnessMap.toJSON(t).uuid),this.clearcoatNormalMap&&this.clearcoatNormalMap.isTexture&&(n.clearcoatNormalMap=this.clearcoatNormalMap.toJSON(t).uuid,n.clearcoatNormalScale=this.clearcoatNormalScale.toArray()),this.dispersion!==void 0&&(n.dispersion=this.dispersion),this.iridescence!==void 0&&(n.iridescence=this.iridescence),this.iridescenceIOR!==void 0&&(n.iridescenceIOR=this.iridescenceIOR),this.iridescenceThicknessRange!==void 0&&(n.iridescenceThicknessRange=this.iridescenceThicknessRange),this.iridescenceMap&&this.iridescenceMap.isTexture&&(n.iridescenceMap=this.iridescenceMap.toJSON(t).uuid),this.iridescenceThicknessMap&&this.iridescenceThicknessMap.isTexture&&(n.iridescenceThicknessMap=this.iridescenceThicknessMap.toJSON(t).uuid),this.anisotropy!==void 0&&(n.anisotropy=this.anisotropy),this.anisotropyRotation!==void 0&&(n.anisotropyRotation=this.anisotropyRotation),this.anisotropyMap&&this.anisotropyMap.isTexture&&(n.anisotropyMap=this.anisotropyMap.toJSON(t).uuid),this.map&&this.map.isTexture&&(n.map=this.map.toJSON(t).uuid),this.matcap&&this.matcap.isTexture&&(n.matcap=this.matcap.toJSON(t).uuid),this.alphaMap&&this.alphaMap.isTexture&&(n.alphaMap=this.alphaMap.toJSON(t).uuid),this.lightMap&&this.lightMap.isTexture&&(n.lightMap=this.lightMap.toJSON(t).uuid,n.lightMapIntensity=this.lightMapIntensity),this.aoMap&&this.aoMap.isTexture&&(n.aoMap=this.aoMap.toJSON(t).uuid,n.aoMapIntensity=this.aoMapIntensity),this.bumpMap&&this.bumpMap.isTexture&&(n.bumpMap=this.bumpMap.toJSON(t).uuid,n.bumpScale=this.bumpScale),this.normalMap&&this.normalMap.isTexture&&(n.normalMap=this.normalMap.toJSON(t).uuid,n.normalMapType=this.normalMapType,n.normalScale=this.normalScale.toArray()),this.displacementMap&&this.displacementMap.isTexture&&(n.displacementMap=this.displacementMap.toJSON(t).uuid,n.displacementScale=this.displacementScale,n.displacementBias=this.displacementBias),this.roughnessMap&&this.roughnessMap.isTexture&&(n.roughnessMap=this.roughnessMap.toJSON(t).uuid),this.metalnessMap&&this.metalnessMap.isTexture&&(n.metalnessMap=this.metalnessMap.toJSON(t).uuid),this.emissiveMap&&this.emissiveMap.isTexture&&(n.emissiveMap=this.emissiveMap.toJSON(t).uuid),this.specularMap&&this.specularMap.isTexture&&(n.specularMap=this.specularMap.toJSON(t).uuid),this.specularIntensityMap&&this.specularIntensityMap.isTexture&&(n.specularIntensityMap=this.specularIntensityMap.toJSON(t).uuid),this.specularColorMap&&this.specularColorMap.isTexture&&(n.specularColorMap=this.specularColorMap.toJSON(t).uuid),this.envMap&&this.envMap.isTexture&&(n.envMap=this.envMap.toJSON(t).uuid,this.combine!==void 0&&(n.combine=this.combine)),this.envMapRotation!==void 0&&(n.envMapRotation=this.envMapRotation.toArray()),this.envMapIntensity!==void 0&&(n.envMapIntensity=this.envMapIntensity),this.reflectivity!==void 0&&(n.reflectivity=this.reflectivity),this.refractionRatio!==void 0&&(n.refractionRatio=this.refractionRatio),this.gradientMap&&this.gradientMap.isTexture&&(n.gradientMap=this.gradientMap.toJSON(t).uuid),this.transmission!==void 0&&(n.transmission=this.transmission),this.transmissionMap&&this.transmissionMap.isTexture&&(n.transmissionMap=this.transmissionMap.toJSON(t).uuid),this.thickness!==void 0&&(n.thickness=this.thickness),this.thicknessMap&&this.thicknessMap.isTexture&&(n.thicknessMap=this.thicknessMap.toJSON(t).uuid),this.attenuationDistance!==void 0&&this.attenuationDistance!==1/0&&(n.attenuationDistance=this.attenuationDistance),this.attenuationColor!==void 0&&(n.attenuationColor=this.attenuationColor.getHex()),this.size!==void 0&&(n.size=this.size),this.shadowSide!==null&&(n.shadowSide=this.shadowSide),this.sizeAttenuation!==void 0&&(n.sizeAttenuation=this.sizeAttenuation),this.blending!==sr&&(n.blending=this.blending),this.side!==or&&(n.side=this.side),this.vertexColors===!0&&(n.vertexColors=!0),this.opacity<1&&(n.opacity=this.opacity),this.transparent===!0&&(n.transparent=!0),this.blendSrc!==Ru&&(n.blendSrc=this.blendSrc),this.blendDst!==Pu&&(n.blendDst=this.blendDst),this.blendEquation!==Hr&&(n.blendEquation=this.blendEquation),this.blendSrcAlpha!==null&&(n.blendSrcAlpha=this.blendSrcAlpha),this.blendDstAlpha!==null&&(n.blendDstAlpha=this.blendDstAlpha),this.blendEquationAlpha!==null&&(n.blendEquationAlpha=this.blendEquationAlpha),this.blendColor&&this.blendColor.isColor&&(n.blendColor=this.blendColor.getHex()),this.blendAlpha!==0&&(n.blendAlpha=this.blendAlpha),this.depthFunc!==jo&&(n.depthFunc=this.depthFunc),this.depthTest===!1&&(n.depthTest=this.depthTest),this.depthWrite===!1&&(n.depthWrite=this.depthWrite),this.colorWrite===!1&&(n.colorWrite=this.colorWrite),this.stencilWriteMask!==255&&(n.stencilWriteMask=this.stencilWriteMask),this.stencilFunc!==lp&&(n.stencilFunc=this.stencilFunc),this.stencilRef!==0&&(n.stencilRef=this.stencilRef),this.stencilFuncMask!==255&&(n.stencilFuncMask=this.stencilFuncMask),this.stencilFail!==gs&&(n.stencilFail=this.stencilFail),this.stencilZFail!==gs&&(n.stencilZFail=this.stencilZFail),this.stencilZPass!==gs&&(n.stencilZPass=this.stencilZPass),this.stencilWrite===!0&&(n.stencilWrite=this.stencilWrite),this.rotation!==void 0&&this.rotation!==0&&(n.rotation=this.rotation),this.polygonOffset===!0&&(n.polygonOffset=!0),this.polygonOffsetFactor!==0&&(n.polygonOffsetFactor=this.polygonOffsetFactor),this.polygonOffsetUnits!==0&&(n.polygonOffsetUnits=this.polygonOffsetUnits),this.linewidth!==void 0&&this.linewidth!==1&&(n.linewidth=this.linewidth),this.dashSize!==void 0&&(n.dashSize=this.dashSize),this.gapSize!==void 0&&(n.gapSize=this.gapSize),this.scale!==void 0&&(n.scale=this.scale),this.dithering===!0&&(n.dithering=!0),this.alphaTest>0&&(n.alphaTest=this.alphaTest),this.alphaHash===!0&&(n.alphaHash=!0),this.alphaToCoverage===!0&&(n.alphaToCoverage=!0),this.premultipliedAlpha===!0&&(n.premultipliedAlpha=!0),this.forceSinglePass===!0&&(n.forceSinglePass=!0),this.wireframe===!0&&(n.wireframe=!0),this.wireframeLinewidth>1&&(n.wireframeLinewidth=this.wireframeLinewidth),this.wireframeLinecap!=="round"&&(n.wireframeLinecap=this.wireframeLinecap),this.wireframeLinejoin!=="round"&&(n.wireframeLinejoin=this.wireframeLinejoin),this.flatShading===!0&&(n.flatShading=!0),this.visible===!1&&(n.visible=!1),this.toneMapped===!1&&(n.toneMapped=!1),this.fog===!1&&(n.fog=!1),Object.keys(this.userData).length>0&&(n.userData=this.userData);function i(s){let a=[];for(let o in s){let l=s[o];delete l.metadata,a.push(l)}return a}if(e){let s=i(t.textures),a=i(t.images);s.length>0&&(n.textures=s),a.length>0&&(n.images=a)}return n}clone(){return new this.constructor().copy(this)}copy(t){this.name=t.name,this.blending=t.blending,this.side=t.side,this.vertexColors=t.vertexColors,this.opacity=t.opacity,this.transparent=t.transparent,this.blendSrc=t.blendSrc,this.blendDst=t.blendDst,this.blendEquation=t.blendEquation,this.blendSrcAlpha=t.blendSrcAlpha,this.blendDstAlpha=t.blendDstAlpha,this.blendEquationAlpha=t.blendEquationAlpha,this.blendColor.copy(t.blendColor),this.blendAlpha=t.blendAlpha,this.depthFunc=t.depthFunc,this.depthTest=t.depthTest,this.depthWrite=t.depthWrite,this.stencilWriteMask=t.stencilWriteMask,this.stencilFunc=t.stencilFunc,this.stencilRef=t.stencilRef,this.stencilFuncMask=t.stencilFuncMask,this.stencilFail=t.stencilFail,this.stencilZFail=t.stencilZFail,this.stencilZPass=t.stencilZPass,this.stencilWrite=t.stencilWrite;let e=t.clippingPlanes,n=null;if(e!==null){let i=e.length;n=new Array(i);for(let s=0;s!==i;++s)n[s]=e[s].clone()}return this.clippingPlanes=n,this.clipIntersection=t.clipIntersection,this.clipShadows=t.clipShadows,this.shadowSide=t.shadowSide,this.colorWrite=t.colorWrite,this.precision=t.precision,this.polygonOffset=t.polygonOffset,this.polygonOffsetFactor=t.polygonOffsetFactor,this.polygonOffsetUnits=t.polygonOffsetUnits,this.dithering=t.dithering,this.alphaTest=t.alphaTest,this.alphaHash=t.alphaHash,this.alphaToCoverage=t.alphaToCoverage,this.premultipliedAlpha=t.premultipliedAlpha,this.forceSinglePass=t.forceSinglePass,this.visible=t.visible,this.toneMapped=t.toneMapped,this.userData=JSON.parse(JSON.stringify(t.userData)),this}dispose(){this.dispatchEvent({type:"dispose"})}set needsUpdate(t){t===!0&&this.version++}},hl=class extends Yr{constructor(t){super(),this.isMeshBasicMaterial=!0,this.type="MeshBasicMaterial",this.color=new re(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 Ni,this.combine=nm,this.reflectivity=1,this.refractionRatio=.98,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinecap="round",this.wireframeLinejoin="round",this.fog=!0,this.setValues(t)}copy(t){return super.copy(t),this.color.copy(t.color),this.map=t.map,this.lightMap=t.lightMap,this.lightMapIntensity=t.lightMapIntensity,this.aoMap=t.aoMap,this.aoMapIntensity=t.aoMapIntensity,this.specularMap=t.specularMap,this.alphaMap=t.alphaMap,this.envMap=t.envMap,this.envMapRotation.copy(t.envMapRotation),this.combine=t.combine,this.reflectivity=t.reflectivity,this.refractionRatio=t.refractionRatio,this.wireframe=t.wireframe,this.wireframeLinewidth=t.wireframeLinewidth,this.wireframeLinecap=t.wireframeLinecap,this.wireframeLinejoin=t.wireframeLinejoin,this.fog=t.fog,this}};var Fe=new q,Bo=new ae,Xn=class{constructor(t,e,n=!1){if(Array.isArray(t))throw new TypeError("THREE.BufferAttribute: array should be a Typed Array.");this.isBufferAttribute=!0,this.name="",this.array=t,this.itemSize=e,this.count=t!==void 0?t.length/e:0,this.normalized=n,this.usage=cp,this._updateRange={offset:0,count:-1},this.updateRanges=[],this.gpuType=nr,this.version=0}onUploadCallback(){}set needsUpdate(t){t===!0&&this.version++}get updateRange(){return R0("THREE.BufferAttribute: updateRange() is deprecated and will be removed in r169. Use addUpdateRange() instead."),this._updateRange}setUsage(t){return this.usage=t,this}addUpdateRange(t,e){this.updateRanges.push({start:t,count:e})}clearUpdateRanges(){this.updateRanges.length=0}copy(t){return this.name=t.name,this.array=new t.array.constructor(t.array),this.itemSize=t.itemSize,this.count=t.count,this.normalized=t.normalized,this.usage=t.usage,this.gpuType=t.gpuType,this}copyAt(t,e,n){t*=this.itemSize,n*=e.itemSize;for(let i=0,s=this.itemSize;i<s;i++)this.array[t+i]=e.array[n+i];return this}copyArray(t){return this.array.set(t),this}applyMatrix3(t){if(this.itemSize===2)for(let e=0,n=this.count;e<n;e++)Bo.fromBufferAttribute(this,e),Bo.applyMatrix3(t),this.setXY(e,Bo.x,Bo.y);else if(this.itemSize===3)for(let e=0,n=this.count;e<n;e++)Fe.fromBufferAttribute(this,e),Fe.applyMatrix3(t),this.setXYZ(e,Fe.x,Fe.y,Fe.z);return this}applyMatrix4(t){for(let e=0,n=this.count;e<n;e++)Fe.fromBufferAttribute(this,e),Fe.applyMatrix4(t),this.setXYZ(e,Fe.x,Fe.y,Fe.z);return this}applyNormalMatrix(t){for(let e=0,n=this.count;e<n;e++)Fe.fromBufferAttribute(this,e),Fe.applyNormalMatrix(t),this.setXYZ(e,Fe.x,Fe.y,Fe.z);return this}transformDirection(t){for(let e=0,n=this.count;e<n;e++)Fe.fromBufferAttribute(this,e),Fe.transformDirection(t),this.setXYZ(e,Fe.x,Fe.y,Fe.z);return this}set(t,e=0){return this.array.set(t,e),this}getComponent(t,e){let n=this.array[t*this.itemSize+e];return this.normalized&&(n=Ea(n,this.array)),n}setComponent(t,e,n){return this.normalized&&(n=En(n,this.array)),this.array[t*this.itemSize+e]=n,this}getX(t){let e=this.array[t*this.itemSize];return this.normalized&&(e=Ea(e,this.array)),e}setX(t,e){return this.normalized&&(e=En(e,this.array)),this.array[t*this.itemSize]=e,this}getY(t){let e=this.array[t*this.itemSize+1];return this.normalized&&(e=Ea(e,this.array)),e}setY(t,e){return this.normalized&&(e=En(e,this.array)),this.array[t*this.itemSize+1]=e,this}getZ(t){let e=this.array[t*this.itemSize+2];return this.normalized&&(e=Ea(e,this.array)),e}setZ(t,e){return this.normalized&&(e=En(e,this.array)),this.array[t*this.itemSize+2]=e,this}getW(t){let e=this.array[t*this.itemSize+3];return this.normalized&&(e=Ea(e,this.array)),e}setW(t,e){return this.normalized&&(e=En(e,this.array)),this.array[t*this.itemSize+3]=e,this}setXY(t,e,n){return t*=this.itemSize,this.normalized&&(e=En(e,this.array),n=En(n,this.array)),this.array[t+0]=e,this.array[t+1]=n,this}setXYZ(t,e,n,i){return t*=this.itemSize,this.normalized&&(e=En(e,this.array),n=En(n,this.array),i=En(i,this.array)),this.array[t+0]=e,this.array[t+1]=n,this.array[t+2]=i,this}setXYZW(t,e,n,i,s){return t*=this.itemSize,this.normalized&&(e=En(e,this.array),n=En(n,this.array),i=En(i,this.array),s=En(s,this.array)),this.array[t+0]=e,this.array[t+1]=n,this.array[t+2]=i,this.array[t+3]=s,this}onUpload(t){return this.onUploadCallback=t,this}clone(){return new this.constructor(this.array,this.itemSize).copy(this)}toJSON(){let t={itemSize:this.itemSize,type:this.array.constructor.name,array:Array.from(this.array),normalized:this.normalized};return this.name!==""&&(t.name=this.name),this.usage!==cp&&(t.usage=this.usage),t}};var fl=class extends Xn{constructor(t,e,n){super(new Uint16Array(t),e,n)}};var dl=class extends Xn{constructor(t,e,n){super(new Uint32Array(t),e,n)}};var qn=class extends Xn{constructor(t,e,n){super(new Float32Array(t),e,n)}},H0=0,Hn=new Re,yu=new sn,Ts=new q,Ln=new qr,Da=new qr,Ge=new q,mi=class r extends cr{constructor(){super(),this.isBufferGeometry=!0,Object.defineProperty(this,"id",{value:H0++}),this.uuid=Na(),this.name="",this.type="BufferGeometry",this.index=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(t){return Array.isArray(t)?this.index=new(fm(t)?dl:fl)(t,1):this.index=t,this}getAttribute(t){return this.attributes[t]}setAttribute(t,e){return this.attributes[t]=e,this}deleteAttribute(t){return delete this.attributes[t],this}hasAttribute(t){return this.attributes[t]!==void 0}addGroup(t,e,n=0){this.groups.push({start:t,count:e,materialIndex:n})}clearGroups(){this.groups=[]}setDrawRange(t,e){this.drawRange.start=t,this.drawRange.count=e}applyMatrix4(t){let e=this.attributes.position;e!==void 0&&(e.applyMatrix4(t),e.needsUpdate=!0);let n=this.attributes.normal;if(n!==void 0){let s=new qt().getNormalMatrix(t);n.applyNormalMatrix(s),n.needsUpdate=!0}let i=this.attributes.tangent;return i!==void 0&&(i.transformDirection(t),i.needsUpdate=!0),this.boundingBox!==null&&this.computeBoundingBox(),this.boundingSphere!==null&&this.computeBoundingSphere(),this}applyQuaternion(t){return Hn.makeRotationFromQuaternion(t),this.applyMatrix4(Hn),this}rotateX(t){return Hn.makeRotationX(t),this.applyMatrix4(Hn),this}rotateY(t){return Hn.makeRotationY(t),this.applyMatrix4(Hn),this}rotateZ(t){return Hn.makeRotationZ(t),this.applyMatrix4(Hn),this}translate(t,e,n){return Hn.makeTranslation(t,e,n),this.applyMatrix4(Hn),this}scale(t,e,n){return Hn.makeScale(t,e,n),this.applyMatrix4(Hn),this}lookAt(t){return yu.lookAt(t),yu.updateMatrix(),this.applyMatrix4(yu.matrix),this}center(){return this.computeBoundingBox(),this.boundingBox.getCenter(Ts).negate(),this.translate(Ts.x,Ts.y,Ts.z),this}setFromPoints(t){let e=[];for(let n=0,i=t.length;n<i;n++){let s=t[n];e.push(s.x,s.y,s.z||0)}return this.setAttribute("position",new qn(e,3)),this}computeBoundingBox(){this.boundingBox===null&&(this.boundingBox=new qr);let t=this.attributes.position,e=this.morphAttributes.position;if(t&&t.isGLBufferAttribute){console.error("THREE.BufferGeometry.computeBoundingBox(): GLBufferAttribute requires a manual bounding box.",this),this.boundingBox.set(new q(-1/0,-1/0,-1/0),new q(1/0,1/0,1/0));return}if(t!==void 0){if(this.boundingBox.setFromBufferAttribute(t),e)for(let n=0,i=e.length;n<i;n++){let s=e[n];Ln.setFromBufferAttribute(s),this.morphTargetsRelative?(Ge.addVectors(this.boundingBox.min,Ln.min),this.boundingBox.expandByPoint(Ge),Ge.addVectors(this.boundingBox.max,Ln.max),this.boundingBox.expandByPoint(Ge)):(this.boundingBox.expandByPoint(Ln.min),this.boundingBox.expandByPoint(Ln.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(){this.boundingSphere===null&&(this.boundingSphere=new Vs);let t=this.attributes.position,e=this.morphAttributes.position;if(t&&t.isGLBufferAttribute){console.error("THREE.BufferGeometry.computeBoundingSphere(): GLBufferAttribute requires a manual bounding sphere.",this),this.boundingSphere.set(new q,1/0);return}if(t){let n=this.boundingSphere.center;if(Ln.setFromBufferAttribute(t),e)for(let s=0,a=e.length;s<a;s++){let o=e[s];Da.setFromBufferAttribute(o),this.morphTargetsRelative?(Ge.addVectors(Ln.min,Da.min),Ln.expandByPoint(Ge),Ge.addVectors(Ln.max,Da.max),Ln.expandByPoint(Ge)):(Ln.expandByPoint(Da.min),Ln.expandByPoint(Da.max))}Ln.getCenter(n);let i=0;for(let s=0,a=t.count;s<a;s++)Ge.fromBufferAttribute(t,s),i=Math.max(i,n.distanceToSquared(Ge));if(e)for(let s=0,a=e.length;s<a;s++){let o=e[s],l=this.morphTargetsRelative;for(let c=0,u=o.count;c<u;c++)Ge.fromBufferAttribute(o,c),l&&(Ts.fromBufferAttribute(t,c),Ge.add(Ts)),i=Math.max(i,n.distanceToSquared(Ge))}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(){let t=this.index,e=this.attributes;if(t===null||e.position===void 0||e.normal===void 0||e.uv===void 0){console.error("THREE.BufferGeometry: .computeTangents() failed. Missing required attributes (index, position, normal or uv)");return}let n=e.position,i=e.normal,s=e.uv;this.hasAttribute("tangent")===!1&&this.setAttribute("tangent",new Xn(new Float32Array(4*n.count),4));let a=this.getAttribute("tangent"),o=[],l=[];for(let P=0;P<n.count;P++)o[P]=new q,l[P]=new q;let c=new q,u=new q,f=new q,h=new ae,d=new ae,_=new ae,g=new q,p=new q;function m(P,y,x){c.fromBufferAttribute(n,P),u.fromBufferAttribute(n,y),f.fromBufferAttribute(n,x),h.fromBufferAttribute(s,P),d.fromBufferAttribute(s,y),_.fromBufferAttribute(s,x),u.sub(c),f.sub(c),d.sub(h),_.sub(h);let F=1/(d.x*_.y-_.x*d.y);isFinite(F)&&(g.copy(u).multiplyScalar(_.y).addScaledVector(f,-d.y).multiplyScalar(F),p.copy(f).multiplyScalar(d.x).addScaledVector(u,-_.x).multiplyScalar(F),o[P].add(g),o[y].add(g),o[x].add(g),l[P].add(p),l[y].add(p),l[x].add(p))}let S=this.groups;S.length===0&&(S=[{start:0,count:t.count}]);for(let P=0,y=S.length;P<y;++P){let x=S[P],F=x.start,I=x.count;for(let R=F,B=F+I;R<B;R+=3)m(t.getX(R+0),t.getX(R+1),t.getX(R+2))}let v=new q,M=new q,D=new q,T=new q;function w(P){D.fromBufferAttribute(i,P),T.copy(D);let y=o[P];v.copy(y),v.sub(D.multiplyScalar(D.dot(y))).normalize(),M.crossVectors(T,y);let F=M.dot(l[P])<0?-1:1;a.setXYZW(P,v.x,v.y,v.z,F)}for(let P=0,y=S.length;P<y;++P){let x=S[P],F=x.start,I=x.count;for(let R=F,B=F+I;R<B;R+=3)w(t.getX(R+0)),w(t.getX(R+1)),w(t.getX(R+2))}}computeVertexNormals(){let t=this.index,e=this.getAttribute("position");if(e!==void 0){let n=this.getAttribute("normal");if(n===void 0)n=new Xn(new Float32Array(e.count*3),3),this.setAttribute("normal",n);else for(let h=0,d=n.count;h<d;h++)n.setXYZ(h,0,0,0);let i=new q,s=new q,a=new q,o=new q,l=new q,c=new q,u=new q,f=new q;if(t)for(let h=0,d=t.count;h<d;h+=3){let _=t.getX(h+0),g=t.getX(h+1),p=t.getX(h+2);i.fromBufferAttribute(e,_),s.fromBufferAttribute(e,g),a.fromBufferAttribute(e,p),u.subVectors(a,s),f.subVectors(i,s),u.cross(f),o.fromBufferAttribute(n,_),l.fromBufferAttribute(n,g),c.fromBufferAttribute(n,p),o.add(u),l.add(u),c.add(u),n.setXYZ(_,o.x,o.y,o.z),n.setXYZ(g,l.x,l.y,l.z),n.setXYZ(p,c.x,c.y,c.z)}else for(let h=0,d=e.count;h<d;h+=3)i.fromBufferAttribute(e,h+0),s.fromBufferAttribute(e,h+1),a.fromBufferAttribute(e,h+2),u.subVectors(a,s),f.subVectors(i,s),u.cross(f),n.setXYZ(h+0,u.x,u.y,u.z),n.setXYZ(h+1,u.x,u.y,u.z),n.setXYZ(h+2,u.x,u.y,u.z);this.normalizeNormals(),n.needsUpdate=!0}}normalizeNormals(){let t=this.attributes.normal;for(let e=0,n=t.count;e<n;e++)Ge.fromBufferAttribute(t,e),Ge.normalize(),t.setXYZ(e,Ge.x,Ge.y,Ge.z)}toNonIndexed(){function t(o,l){let c=o.array,u=o.itemSize,f=o.normalized,h=new c.constructor(l.length*u),d=0,_=0;for(let g=0,p=l.length;g<p;g++){o.isInterleavedBufferAttribute?d=l[g]*o.data.stride+o.offset:d=l[g]*u;for(let m=0;m<u;m++)h[_++]=c[d++]}return new Xn(h,u,f)}if(this.index===null)return console.warn("THREE.BufferGeometry.toNonIndexed(): BufferGeometry is already non-indexed."),this;let e=new r,n=this.index.array,i=this.attributes;for(let o in i){let l=i[o],c=t(l,n);e.setAttribute(o,c)}let s=this.morphAttributes;for(let o in s){let l=[],c=s[o];for(let u=0,f=c.length;u<f;u++){let h=c[u],d=t(h,n);l.push(d)}e.morphAttributes[o]=l}e.morphTargetsRelative=this.morphTargetsRelative;let a=this.groups;for(let o=0,l=a.length;o<l;o++){let c=a[o];e.addGroup(c.start,c.count,c.materialIndex)}return e}toJSON(){let t={metadata:{version:4.6,type:"BufferGeometry",generator:"BufferGeometry.toJSON"}};if(t.uuid=this.uuid,t.type=this.type,this.name!==""&&(t.name=this.name),Object.keys(this.userData).length>0&&(t.userData=this.userData),this.parameters!==void 0){let l=this.parameters;for(let c in l)l[c]!==void 0&&(t[c]=l[c]);return t}t.data={attributes:{}};let e=this.index;e!==null&&(t.data.index={type:e.array.constructor.name,array:Array.prototype.slice.call(e.array)});let n=this.attributes;for(let l in n){let c=n[l];t.data.attributes[l]=c.toJSON(t.data)}let i={},s=!1;for(let l in this.morphAttributes){let c=this.morphAttributes[l],u=[];for(let f=0,h=c.length;f<h;f++){let d=c[f];u.push(d.toJSON(t.data))}u.length>0&&(i[l]=u,s=!0)}s&&(t.data.morphAttributes=i,t.data.morphTargetsRelative=this.morphTargetsRelative);let a=this.groups;a.length>0&&(t.data.groups=JSON.parse(JSON.stringify(a)));let o=this.boundingSphere;return o!==null&&(t.data.boundingSphere={center:o.center.toArray(),radius:o.radius}),t}clone(){return new this.constructor().copy(this)}copy(t){this.index=null,this.attributes={},this.morphAttributes={},this.groups=[],this.boundingBox=null,this.boundingSphere=null;let e={};this.name=t.name;let n=t.index;n!==null&&this.setIndex(n.clone(e));let i=t.attributes;for(let c in i){let u=i[c];this.setAttribute(c,u.clone(e))}let s=t.morphAttributes;for(let c in s){let u=[],f=s[c];for(let h=0,d=f.length;h<d;h++)u.push(f[h].clone(e));this.morphAttributes[c]=u}this.morphTargetsRelative=t.morphTargetsRelative;let a=t.groups;for(let c=0,u=a.length;c<u;c++){let f=a[c];this.addGroup(f.start,f.count,f.materialIndex)}let o=t.boundingBox;o!==null&&(this.boundingBox=o.clone());let l=t.boundingSphere;return l!==null&&(this.boundingSphere=l.clone()),this.drawRange.start=t.drawRange.start,this.drawRange.count=t.drawRange.count,this.userData=t.userData,this}dispose(){this.dispatchEvent({type:"dispose"})}},bp=new Re,Or=new cl,zo=new Vs,Ep=new q,As=new q,Ds=new q,Cs=new q,Mu=new q,ko=new q,Vo=new ae,Ho=new ae,Go=new ae,wp=new q,Tp=new q,Ap=new q,Wo=new q,Xo=new q,ii=class extends sn{constructor(t=new mi,e=new hl){super(),this.isMesh=!0,this.type="Mesh",this.geometry=t,this.material=e,this.updateMorphTargets()}copy(t,e){return super.copy(t,e),t.morphTargetInfluences!==void 0&&(this.morphTargetInfluences=t.morphTargetInfluences.slice()),t.morphTargetDictionary!==void 0&&(this.morphTargetDictionary=Object.assign({},t.morphTargetDictionary)),this.material=Array.isArray(t.material)?t.material.slice():t.material,this.geometry=t.geometry,this}updateMorphTargets(){let e=this.geometry.morphAttributes,n=Object.keys(e);if(n.length>0){let i=e[n[0]];if(i!==void 0){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(let s=0,a=i.length;s<a;s++){let o=i[s].name||String(s);this.morphTargetInfluences.push(0),this.morphTargetDictionary[o]=s}}}}getVertexPosition(t,e){let n=this.geometry,i=n.attributes.position,s=n.morphAttributes.position,a=n.morphTargetsRelative;e.fromBufferAttribute(i,t);let o=this.morphTargetInfluences;if(s&&o){ko.set(0,0,0);for(let l=0,c=s.length;l<c;l++){let u=o[l],f=s[l];u!==0&&(Mu.fromBufferAttribute(f,t),a?ko.addScaledVector(Mu,u):ko.addScaledVector(Mu.sub(e),u))}e.add(ko)}return e}raycast(t,e){let n=this.geometry,i=this.material,s=this.matrixWorld;i!==void 0&&(n.boundingSphere===null&&n.computeBoundingSphere(),zo.copy(n.boundingSphere),zo.applyMatrix4(s),Or.copy(t.ray).recast(t.near),!(zo.containsPoint(Or.origin)===!1&&(Or.intersectSphere(zo,Ep)===null||Or.origin.distanceToSquared(Ep)>(t.far-t.near)**2))&&(bp.copy(s).invert(),Or.copy(t.ray).applyMatrix4(bp),!(n.boundingBox!==null&&Or.intersectsBox(n.boundingBox)===!1)&&this._computeIntersections(t,e,Or)))}_computeIntersections(t,e,n){let i,s=this.geometry,a=this.material,o=s.index,l=s.attributes.position,c=s.attributes.uv,u=s.attributes.uv1,f=s.attributes.normal,h=s.groups,d=s.drawRange;if(o!==null)if(Array.isArray(a))for(let _=0,g=h.length;_<g;_++){let p=h[_],m=a[p.materialIndex],S=Math.max(p.start,d.start),v=Math.min(o.count,Math.min(p.start+p.count,d.start+d.count));for(let M=S,D=v;M<D;M+=3){let T=o.getX(M),w=o.getX(M+1),P=o.getX(M+2);i=qo(this,m,t,n,c,u,f,T,w,P),i&&(i.faceIndex=Math.floor(M/3),i.face.materialIndex=p.materialIndex,e.push(i))}}else{let _=Math.max(0,d.start),g=Math.min(o.count,d.start+d.count);for(let p=_,m=g;p<m;p+=3){let S=o.getX(p),v=o.getX(p+1),M=o.getX(p+2);i=qo(this,a,t,n,c,u,f,S,v,M),i&&(i.faceIndex=Math.floor(p/3),e.push(i))}}else if(l!==void 0)if(Array.isArray(a))for(let _=0,g=h.length;_<g;_++){let p=h[_],m=a[p.materialIndex],S=Math.max(p.start,d.start),v=Math.min(l.count,Math.min(p.start+p.count,d.start+d.count));for(let M=S,D=v;M<D;M+=3){let T=M,w=M+1,P=M+2;i=qo(this,m,t,n,c,u,f,T,w,P),i&&(i.faceIndex=Math.floor(M/3),i.face.materialIndex=p.materialIndex,e.push(i))}}else{let _=Math.max(0,d.start),g=Math.min(l.count,d.start+d.count);for(let p=_,m=g;p<m;p+=3){let S=p,v=p+1,M=p+2;i=qo(this,a,t,n,c,u,f,S,v,M),i&&(i.faceIndex=Math.floor(p/3),e.push(i))}}}};function G0(r,t,e,n,i,s,a,o){let l;if(t.side===Tn?l=n.intersectTriangle(a,s,i,!0,o):l=n.intersectTriangle(i,s,a,t.side===or,o),l===null)return null;Xo.copy(o),Xo.applyMatrix4(r.matrixWorld);let c=e.ray.origin.distanceTo(Xo);return c<e.near||c>e.far?null:{distance:c,point:Xo.clone(),object:r}}function qo(r,t,e,n,i,s,a,o,l,c){r.getVertexPosition(o,As),r.getVertexPosition(l,Ds),r.getVertexPosition(c,Cs);let u=G0(r,t,e,n,As,Ds,Cs,Wo);if(u){i&&(Vo.fromBufferAttribute(i,o),Ho.fromBufferAttribute(i,l),Go.fromBufferAttribute(i,c),u.uv=Ls.getInterpolation(Wo,As,Ds,Cs,Vo,Ho,Go,new ae)),s&&(Vo.fromBufferAttribute(s,o),Ho.fromBufferAttribute(s,l),Go.fromBufferAttribute(s,c),u.uv1=Ls.getInterpolation(Wo,As,Ds,Cs,Vo,Ho,Go,new ae)),a&&(wp.fromBufferAttribute(a,o),Tp.fromBufferAttribute(a,l),Ap.fromBufferAttribute(a,c),u.normal=Ls.getInterpolation(Wo,As,Ds,Cs,wp,Tp,Ap,new q),u.normal.dot(n.direction)>0&&u.normal.multiplyScalar(-1));let f={a:o,b:l,c,normal:new q,materialIndex:0};Ls.getNormal(As,Ds,Cs,f.normal),u.face=f}return u}var Ia=class r extends mi{constructor(t=1,e=1,n=1,i=1,s=1,a=1){super(),this.type="BoxGeometry",this.parameters={width:t,height:e,depth:n,widthSegments:i,heightSegments:s,depthSegments:a};let o=this;i=Math.floor(i),s=Math.floor(s),a=Math.floor(a);let l=[],c=[],u=[],f=[],h=0,d=0;_("z","y","x",-1,-1,n,e,t,a,s,0),_("z","y","x",1,-1,n,e,-t,a,s,1),_("x","z","y",1,1,t,n,e,i,a,2),_("x","z","y",1,-1,t,n,-e,i,a,3),_("x","y","z",1,-1,t,e,n,i,s,4),_("x","y","z",-1,-1,t,e,-n,i,s,5),this.setIndex(l),this.setAttribute("position",new qn(c,3)),this.setAttribute("normal",new qn(u,3)),this.setAttribute("uv",new qn(f,2));function _(g,p,m,S,v,M,D,T,w,P,y){let x=M/w,F=D/P,I=M/2,R=D/2,B=T/2,G=w+1,Z=P+1,J=0,N=0,Q=new q;for(let A=0;A<Z;A++){let at=A*F-R;for(let bt=0;bt<G;bt++){let Zt=bt*x-I;Q[g]=Zt*S,Q[p]=at*v,Q[m]=B,c.push(Q.x,Q.y,Q.z),Q[g]=0,Q[p]=0,Q[m]=T>0?1:-1,u.push(Q.x,Q.y,Q.z),f.push(bt/w),f.push(1-A/P),J+=1}}for(let A=0;A<P;A++)for(let at=0;at<w;at++){let bt=h+at+G*A,Zt=h+at+G*(A+1),X=h+(at+1)+G*(A+1),tt=h+(at+1)+G*A;l.push(bt,Zt,tt),l.push(Zt,X,tt),N+=6}o.addGroup(d,N,y),d+=N,h+=J}}copy(t){return super.copy(t),this.parameters=Object.assign({},t.parameters),this}static fromJSON(t){return new r(t.width,t.height,t.depth,t.widthSegments,t.heightSegments,t.depthSegments)}};function Hs(r){let t={};for(let e in r){t[e]={};for(let n in r[e]){let i=r[e][n];i&&(i.isColor||i.isMatrix3||i.isMatrix4||i.isVector2||i.isVector3||i.isVector4||i.isTexture||i.isQuaternion)?i.isRenderTargetTexture?(console.warn("UniformsUtils: Textures of render targets cannot be cloned via cloneUniforms() or mergeUniforms()."),t[e][n]=null):t[e][n]=i.clone():Array.isArray(i)?t[e][n]=i.slice():t[e][n]=i}}return t}function gn(r){let t={};for(let e=0;e<r.length;e++){let n=Hs(r[e]);for(let i in n)t[i]=n[i]}return t}function W0(r){let t=[];for(let e=0;e<r.length;e++)t.push(r[e].clone());return t}function pm(r){let t=r.getRenderTarget();return t===null?r.outputColorSpace:t.isXRRenderTarget===!0?t.texture.colorSpace:he.workingColorSpace}var X0={clone:Hs,merge:gn},q0=`void main() {
|
|
1
|
+
(()=>{function gi(r){if(r===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r}function Dh(r,t){r.prototype=Object.create(t.prototype),r.prototype.constructor=r,r.__proto__=t}var Mn={autoSleep:120,force3D:"auto",nullTargetWarn:1,units:{lineHeight:""}},Qr={duration:.5,overwrite:!1,delay:0},Kl,$e,ye,Nn=1e8,me=1/Nn,kl=Math.PI*2,bm=kl/4,Em=0,Ch=Math.sqrt,wm=Math.cos,Tm=Math.sin,Ue=function(t){return typeof t=="string"},Te=function(t){return typeof t=="function"},xi=function(t){return typeof t=="number"},qa=function(t){return typeof t>"u"},li=function(t){return typeof t=="object"},yn=function(t){return t!==!1},Ql=function(){return typeof window<"u"},Oa=function(t){return Te(t)||Ue(t)},Rh=typeof ArrayBuffer=="function"&&ArrayBuffer.isView||function(){},Ke=Array.isArray,Vl=/(?:-?\.?\d|\.)+/gi,jl=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,_r=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,Ll=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,tc=/[+-]=-?[.\d]+/,Ph=/[^,'"\[\]\s]+/gi,Am=/^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i,be,ai,Hl,ec,Dn={},Va={},Ih,Lh=function(t){return(Va=gr(t,Dn))&&Qe},Ya=function(t,e){return console.warn("Invalid property",t,"set to",e,"Missing plugin? gsap.registerPlugin()")},Ks=function(t,e){return!e&&console.warn(t)},Fh=function(t,e){return t&&(Dn[t]=e)&&Va&&(Va[t]=e)||Dn},Qs=function(){return 0},Dm={suppressEvents:!0,isStart:!0,kill:!1},Ba={suppressEvents:!0,kill:!1},Cm={suppressEvents:!0},nc={},zi=[],Gl={},Uh,xn={},Fl={},Mh=30,za=[],ic="",rc=function(t){var e=t[0],n,i;if(li(e)||Te(e)||(t=[t]),!(n=(e._gsap||{}).harness)){for(i=za.length;i--&&!za[i].targetTest(e););n=za[i]}for(i=t.length;i--;)t[i]&&(t[i]._gsap||(t[i]._gsap=new oc(t[i],n)))||t.splice(i,1);return t},ki=function(t){return t._gsap||rc(On(t))[0]._gsap},sc=function(t,e,n){return(n=t[e])&&Te(n)?t[e]():qa(n)&&t.getAttribute&&t.getAttribute(e)||n},on=function(t,e){return(t=t.split(",")).forEach(e)||t},Ae=function(t){return Math.round(t*1e5)/1e5||0},ke=function(t){return Math.round(t*1e7)/1e7||0},xr=function(t,e){var n=e.charAt(0),i=parseFloat(e.substr(2));return t=parseFloat(t),n==="+"?t+i:n==="-"?t-i:n==="*"?t*i:t/i},Rm=function(t,e){for(var n=e.length,i=0;t.indexOf(e[i])<0&&++i<n;);return i<n},Ha=function(){var t=zi.length,e=zi.slice(0),n,i;for(Gl={},zi.length=0,n=0;n<t;n++)i=e[n],i&&i._lazy&&(i.render(i._lazy[0],i._lazy[1],!0)._lazy=0)},Nh=function(t,e,n,i){zi.length&&!$e&&Ha(),t.render(e,n,i||$e&&e<0&&(t._initted||t._startAt)),zi.length&&!$e&&Ha()},Oh=function(t){var e=parseFloat(t);return(e||e===0)&&(t+"").match(Ph).length<2?e:Ue(t)?t.trim():t},Bh=function(t){return t},Bn=function(t,e){for(var n in e)n in t||(t[n]=e[n]);return t},Pm=function(t){return function(e,n){for(var i in n)i in e||i==="duration"&&t||i==="ease"||(e[i]=n[i])}},gr=function(t,e){for(var n in e)t[n]=e[n];return t},Sh=function r(t,e){for(var n in e)n!=="__proto__"&&n!=="constructor"&&n!=="prototype"&&(t[n]=li(e[n])?r(t[n]||(t[n]={}),e[n]):e[n]);return t},Ga=function(t,e){var n={},i;for(i in t)i in e||(n[i]=t[i]);return n},Zs=function(t){var e=t.parent||be,n=t.keyframes?Pm(Ke(t.keyframes)):Bn;if(yn(t.inherit))for(;e;)n(t,e.vars.defaults),e=e.parent||e._dp;return t},Im=function(t,e){for(var n=t.length,i=n===e.length;i&&n--&&t[n]===e[n];);return n<0},zh=function(t,e,n,i,s){n===void 0&&(n="_first"),i===void 0&&(i="_last");var a=t[i],o;if(s)for(o=e[s];a&&a[s]>o;)a=a._prev;return a?(e._next=a._next,a._next=e):(e._next=t[n],t[n]=e),e._next?e._next._prev=e:t[i]=e,e._prev=a,e.parent=e._dp=t,e},Za=function(t,e,n,i){n===void 0&&(n="_first"),i===void 0&&(i="_last");var s=e._prev,a=e._next;s?s._next=a:t[n]===e&&(t[n]=a),a?a._prev=s:t[i]===e&&(t[i]=s),e._next=e._prev=e.parent=null},Vi=function(t,e){t.parent&&(!e||t.parent.autoRemoveChildren)&&t.parent.remove&&t.parent.remove(t),t._act=0},dr=function(t,e){if(t&&(!e||e._end>t._dur||e._start<0))for(var n=t;n;)n._dirty=1,n=n.parent;return t},Lm=function(t){for(var e=t.parent;e&&e.parent;)e._dirty=1,e.totalDuration(),e=e.parent;return t},Wl=function(t,e,n,i){return t._startAt&&($e?t._startAt.revert(Ba):t.vars.immediateRender&&!t.vars.autoRevert||t._startAt.render(e,!0,i))},Fm=function r(t){return!t||t._ts&&r(t.parent)},bh=function(t){return t._repeat?jr(t._tTime,t=t.duration()+t._rDelay)*t:0},jr=function(t,e){var n=Math.floor(t/=e);return t&&n===t?n-1:n},Wa=function(t,e){return(t-e._start)*e._ts+(e._ts>=0?0:e._dirty?e.totalDuration():e._tDur)},Ja=function(t){return t._end=ke(t._start+(t._tDur/Math.abs(t._ts||t._rts||me)||0))},$a=function(t,e){var n=t._dp;return n&&n.smoothChildTiming&&t._ts&&(t._start=ke(n._time-(t._ts>0?e/t._ts:((t._dirty?t.totalDuration():t._tDur)-e)/-t._ts)),Ja(t),n._dirty||dr(n,t)),t},kh=function(t,e){var n;if((e._time||!e._dur&&e._initted||e._start<t._time&&(e._dur||!e.add))&&(n=Wa(t.rawTime(),e),(!e._dur||ea(0,e.totalDuration(),n)-e._tTime>me)&&e.render(n,!0)),dr(t,e)._dp&&t._initted&&t._time>=t._dur&&t._ts){if(t._dur<t.duration())for(n=t;n._dp;)n.rawTime()>=0&&n.totalTime(n._tTime),n=n._dp;t._zTime=-me}},oi=function(t,e,n,i){return e.parent&&Vi(e),e._start=ke((xi(n)?n:n||t!==be?Un(t,n,e):t._time)+e._delay),e._end=ke(e._start+(e.totalDuration()/Math.abs(e.timeScale())||0)),zh(t,e,"_first","_last",t._sort?"_start":0),Xl(e)||(t._recent=e),i||kh(t,e),t._ts<0&&$a(t,t._tTime),t},Vh=function(t,e){return(Dn.ScrollTrigger||Ya("scrollTrigger",e))&&Dn.ScrollTrigger.create(e,t)},Hh=function(t,e,n,i,s){if(uc(t,e,s),!t._initted)return 1;if(!n&&t._pt&&!$e&&(t._dur&&t.vars.lazy!==!1||!t._dur&&t.vars.lazy)&&Uh!==vn.frame)return zi.push(t),t._lazy=[s,i],1},Um=function r(t){var e=t.parent;return e&&e._ts&&e._initted&&!e._lock&&(e.rawTime()<0||r(e))},Xl=function(t){var e=t.data;return e==="isFromStart"||e==="isStart"},Nm=function(t,e,n,i){var s=t.ratio,a=e<0||!e&&(!t._start&&Um(t)&&!(!t._initted&&Xl(t))||(t._ts<0||t._dp._ts<0)&&!Xl(t))?0:1,o=t._rDelay,l=0,c,u,f;if(o&&t._repeat&&(l=ea(0,t._tDur,e),u=jr(l,o),t._yoyo&&u&1&&(a=1-a),u!==jr(t._tTime,o)&&(s=1-a,t.vars.repeatRefresh&&t._initted&&t.invalidate())),a!==s||$e||i||t._zTime===me||!e&&t._zTime){if(!t._initted&&Hh(t,e,i,n,l))return;for(f=t._zTime,t._zTime=e||(n?me:0),n||(n=e&&!f),t.ratio=a,t._from&&(a=1-a),t._time=0,t._tTime=l,c=t._pt;c;)c.r(a,c.d),c=c._next;e<0&&Wl(t,e,n,!0),t._onUpdate&&!n&&An(t,"onUpdate"),l&&t._repeat&&!n&&t.parent&&An(t,"onRepeat"),(e>=t._tDur||e<0)&&t.ratio===a&&(a&&Vi(t,1),!n&&!$e&&(An(t,a?"onComplete":"onReverseComplete",!0),t._prom&&t._prom()))}else t._zTime||(t._zTime=e)},Om=function(t,e,n){var i;if(n>e)for(i=t._first;i&&i._start<=n;){if(i.data==="isPause"&&i._start>e)return i;i=i._next}else for(i=t._last;i&&i._start>=n;){if(i.data==="isPause"&&i._start<e)return i;i=i._prev}},ts=function(t,e,n,i){var s=t._repeat,a=ke(e)||0,o=t._tTime/t._tDur;return o&&!i&&(t._time*=a/t._dur),t._dur=a,t._tDur=s?s<0?1e10:ke(a*(s+1)+t._rDelay*s):a,o>0&&!i&&$a(t,t._tTime=t._tDur*o),t.parent&&Ja(t),n||dr(t.parent,t),t},Eh=function(t){return t instanceof Xe?dr(t):ts(t,t._dur)},Bm={_start:0,endTime:Qs,totalDuration:Qs},Un=function r(t,e,n){var i=t.labels,s=t._recent||Bm,a=t.duration()>=Nn?s.endTime(!1):t._dur,o,l,c;return Ue(e)&&(isNaN(e)||e in i)?(l=e.charAt(0),c=e.substr(-1)==="%",o=e.indexOf("="),l==="<"||l===">"?(o>=0&&(e=e.replace(/=/,"")),(l==="<"?s._start:s.endTime(s._repeat>=0))+(parseFloat(e.substr(1))||0)*(c?(o<0?s:n).totalDuration()/100:1)):o<0?(e in i||(i[e]=a),i[e]):(l=parseFloat(e.charAt(o-1)+e.substr(o+1)),c&&n&&(l=l/100*(Ke(n)?n[0]:n).totalDuration()),o>1?r(t,e.substr(0,o-1),n)+l:a+l)):e==null?a:+e},Js=function(t,e,n){var i=xi(e[1]),s=(i?2:1)+(t<2?0:1),a=e[s],o,l;if(i&&(a.duration=e[1]),a.parent=n,t){for(o=a,l=n;l&&!("immediateRender"in o);)o=l.vars.defaults||{},l=yn(l.vars.inherit)&&l.parent;a.immediateRender=yn(o.immediateRender),t<2?a.runBackwards=1:a.startAt=e[s-1]}return new Ce(e[0],a,e[s+1])},Hi=function(t,e){return t||t===0?e(t):e},ea=function(t,e,n){return n<t?t:n>e?e:n},qe=function(t,e){return!Ue(t)||!(e=Am.exec(t))?"":e[1]},zm=function(t,e,n){return Hi(n,function(i){return ea(t,e,i)})},ql=[].slice,Gh=function(t,e){return t&&li(t)&&"length"in t&&(!e&&!t.length||t.length-1 in t&&li(t[0]))&&!t.nodeType&&t!==ai},km=function(t,e,n){return n===void 0&&(n=[]),t.forEach(function(i){var s;return Ue(i)&&!e||Gh(i,1)?(s=n).push.apply(s,On(i)):n.push(i)})||n},On=function(t,e,n){return ye&&!e&&ye.selector?ye.selector(t):Ue(t)&&!n&&(Hl||!es())?ql.call((e||ec).querySelectorAll(t),0):Ke(t)?km(t,n):Gh(t)?ql.call(t,0):t?[t]:[]},Yl=function(t){return t=On(t)[0]||Ks("Invalid scope")||{},function(e){var n=t.current||t.nativeElement||t;return On(e,n.querySelectorAll?n:n===t?Ks("Invalid scope")||ec.createElement("div"):t)}},Wh=function(t){return t.sort(function(){return .5-Math.random()})},Xh=function(t){if(Te(t))return t;var e=li(t)?t:{each:t},n=pr(e.ease),i=e.from||0,s=parseFloat(e.base)||0,a={},o=i>0&&i<1,l=isNaN(i)||o,c=e.axis,u=i,f=i;return Ue(i)?u=f={center:.5,edges:.5,end:1}[i]||0:!o&&l&&(u=i[0],f=i[1]),function(h,d,_){var g=(_||e).length,p=a[g],m,S,v,M,D,T,w,P,y;if(!p){if(y=e.grid==="auto"?0:(e.grid||[1,Nn])[1],!y){for(w=-Nn;w<(w=_[y++].getBoundingClientRect().left)&&y<g;);y<g&&y--}for(p=a[g]=[],m=l?Math.min(y,g)*u-.5:i%y,S=y===Nn?0:l?g*f/y-.5:i/y|0,w=0,P=Nn,T=0;T<g;T++)v=T%y-m,M=S-(T/y|0),p[T]=D=c?Math.abs(c==="y"?M:v):Ch(v*v+M*M),D>w&&(w=D),D<P&&(P=D);i==="random"&&Wh(p),p.max=w-P,p.min=P,p.v=g=(parseFloat(e.amount)||parseFloat(e.each)*(y>g?g-1:c?c==="y"?g/y:y:Math.max(y,g/y))||0)*(i==="edges"?-1:1),p.b=g<0?s-g:s,p.u=qe(e.amount||e.each)||0,n=n&&g<0?tf(n):n}return g=(p[h]-p.min)/p.max||0,ke(p.b+(n?n(g):g)*p.v)+p.u}},Zl=function(t){var e=Math.pow(10,((t+"").split(".")[1]||"").length);return function(n){var i=ke(Math.round(parseFloat(n)/t)*t*e);return(i-i%1)/e+(xi(n)?0:qe(n))}},qh=function(t,e){var n=Ke(t),i,s;return!n&&li(t)&&(i=n=t.radius||Nn,t.values?(t=On(t.values),(s=!xi(t[0]))&&(i*=i)):t=Zl(t.increment)),Hi(e,n?Te(t)?function(a){return s=t(a),Math.abs(s-a)<=i?s:a}:function(a){for(var o=parseFloat(s?a.x:a),l=parseFloat(s?a.y:0),c=Nn,u=0,f=t.length,h,d;f--;)s?(h=t[f].x-o,d=t[f].y-l,h=h*h+d*d):h=Math.abs(t[f]-o),h<c&&(c=h,u=f);return u=!i||c<=i?t[u]:a,s||u===a||xi(a)?u:u+qe(a)}:Zl(t))},Yh=function(t,e,n,i){return Hi(Ke(t)?!e:n===!0?!!(n=0):!i,function(){return Ke(t)?t[~~(Math.random()*t.length)]:(n=n||1e-5)&&(i=n<1?Math.pow(10,(n+"").length-2):1)&&Math.floor(Math.round((t-n/2+Math.random()*(e-t+n*.99))/n)*n*i)/i})},Vm=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return function(i){return e.reduce(function(s,a){return a(s)},i)}},Hm=function(t,e){return function(n){return t(parseFloat(n))+(e||qe(n))}},Gm=function(t,e,n){return Jh(t,e,0,1,n)},Zh=function(t,e,n){return Hi(n,function(i){return t[~~e(i)]})},Wm=function r(t,e,n){var i=e-t;return Ke(t)?Zh(t,r(0,t.length),e):Hi(n,function(s){return(i+(s-t)%i)%i+t})},Xm=function r(t,e,n){var i=e-t,s=i*2;return Ke(t)?Zh(t,r(0,t.length-1),e):Hi(n,function(a){return a=(s+(a-t)%s)%s||0,t+(a>i?s-a:a)})},ns=function(t){for(var e=0,n="",i,s,a,o;~(i=t.indexOf("random(",e));)a=t.indexOf(")",i),o=t.charAt(i+7)==="[",s=t.substr(i+7,a-i-7).match(o?Ph:Vl),n+=t.substr(e,i-e)+Yh(o?s:+s[0],o?0:+s[1],+s[2]||1e-5),e=a+1;return n+t.substr(e,t.length-e)},Jh=function(t,e,n,i,s){var a=e-t,o=i-n;return Hi(s,function(l){return n+((l-t)/a*o||0)})},qm=function r(t,e,n,i){var s=isNaN(t+e)?0:function(d){return(1-d)*t+d*e};if(!s){var a=Ue(t),o={},l,c,u,f,h;if(n===!0&&(i=1)&&(n=null),a)t={p:t},e={p:e};else if(Ke(t)&&!Ke(e)){for(u=[],f=t.length,h=f-2,c=1;c<f;c++)u.push(r(t[c-1],t[c]));f--,s=function(_){_*=f;var g=Math.min(h,~~_);return u[g](_-g)},n=e}else i||(t=gr(Ke(t)?[]:{},t));if(!u){for(l in e)lc.call(o,t,l,"get",e[l]);s=function(_){return dc(_,o)||(a?t.p:t)}}}return Hi(n,s)},wh=function(t,e,n){var i=t.labels,s=Nn,a,o,l;for(a in i)o=i[a]-e,o<0==!!n&&o&&s>(o=Math.abs(o))&&(l=a,s=o);return l},An=function(t,e,n){var i=t.vars,s=i[e],a=ye,o=t._ctx,l,c,u;if(s)return l=i[e+"Params"],c=i.callbackScope||t,n&&zi.length&&Ha(),o&&(ye=o),u=l?s.apply(c,l):s.call(c),ye=a,u},qs=function(t){return Vi(t),t.scrollTrigger&&t.scrollTrigger.kill(!!$e),t.progress()<1&&An(t,"onInterrupt"),t},Kr,$h=[],Kh=function(t){if(t)if(t=!t.name&&t.default||t,Ql()||t.headless){var e=t.name,n=Te(t),i=e&&!n&&t.init?function(){this._props=[]}:t,s={init:Qs,render:dc,add:lc,kill:lg,modifier:og,rawVars:0},a={targetTest:0,get:0,getSetter:Ka,aliases:{},register:0};if(es(),t!==i){if(xn[e])return;Bn(i,Bn(Ga(t,s),a)),gr(i.prototype,gr(s,Ga(t,a))),xn[i.prop=e]=i,t.targetTest&&(za.push(i),nc[e]=1),e=(e==="css"?"CSS":e.charAt(0).toUpperCase()+e.substr(1))+"Plugin"}Fh(e,i),t.register&&t.register(Qe,i,ln)}else $h.push(t)},fe=255,Ys={aqua:[0,fe,fe],lime:[0,fe,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,fe],navy:[0,0,128],white:[fe,fe,fe],olive:[128,128,0],yellow:[fe,fe,0],orange:[fe,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[fe,0,0],pink:[fe,192,203],cyan:[0,fe,fe],transparent:[fe,fe,fe,0]},Ul=function(t,e,n){return t+=t<0?1:t>1?-1:0,(t*6<1?e+(n-e)*t*6:t<.5?n:t*3<2?e+(n-e)*(2/3-t)*6:e)*fe+.5|0},Qh=function(t,e,n){var i=t?xi(t)?[t>>16,t>>8&fe,t&fe]:0:Ys.black,s,a,o,l,c,u,f,h,d,_;if(!i){if(t.substr(-1)===","&&(t=t.substr(0,t.length-1)),Ys[t])i=Ys[t];else if(t.charAt(0)==="#"){if(t.length<6&&(s=t.charAt(1),a=t.charAt(2),o=t.charAt(3),t="#"+s+s+a+a+o+o+(t.length===5?t.charAt(4)+t.charAt(4):"")),t.length===9)return i=parseInt(t.substr(1,6),16),[i>>16,i>>8&fe,i&fe,parseInt(t.substr(7),16)/255];t=parseInt(t.substr(1),16),i=[t>>16,t>>8&fe,t&fe]}else if(t.substr(0,3)==="hsl"){if(i=_=t.match(Vl),!e)l=+i[0]%360/360,c=+i[1]/100,u=+i[2]/100,a=u<=.5?u*(c+1):u+c-u*c,s=u*2-a,i.length>3&&(i[3]*=1),i[0]=Ul(l+1/3,s,a),i[1]=Ul(l,s,a),i[2]=Ul(l-1/3,s,a);else if(~t.indexOf("="))return i=t.match(jl),n&&i.length<4&&(i[3]=1),i}else i=t.match(Vl)||Ys.transparent;i=i.map(Number)}return e&&!_&&(s=i[0]/fe,a=i[1]/fe,o=i[2]/fe,f=Math.max(s,a,o),h=Math.min(s,a,o),u=(f+h)/2,f===h?l=c=0:(d=f-h,c=u>.5?d/(2-f-h):d/(f+h),l=f===s?(a-o)/d+(a<o?6:0):f===a?(o-s)/d+2:(s-a)/d+4,l*=60),i[0]=~~(l+.5),i[1]=~~(c*100+.5),i[2]=~~(u*100+.5)),n&&i.length<4&&(i[3]=1),i},jh=function(t){var e=[],n=[],i=-1;return t.split(_i).forEach(function(s){var a=s.match(_r)||[];e.push.apply(e,a),n.push(i+=a.length+1)}),e.c=n,e},Th=function(t,e,n){var i="",s=(t+i).match(_i),a=e?"hsla(":"rgba(",o=0,l,c,u,f;if(!s)return t;if(s=s.map(function(h){return(h=Qh(h,e,1))&&a+(e?h[0]+","+h[1]+"%,"+h[2]+"%,"+h[3]:h.join(","))+")"}),n&&(u=jh(t),l=n.c,l.join(i)!==u.c.join(i)))for(c=t.replace(_i,"1").split(_r),f=c.length-1;o<f;o++)i+=c[o]+(~l.indexOf(o)?s.shift()||a+"0,0,0,0)":(u.length?u:s.length?s:n).shift());if(!c)for(c=t.split(_i),f=c.length-1;o<f;o++)i+=c[o]+s[o];return i+c[f]},_i=function(){var r="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3,4}){1,2}\\b",t;for(t in Ys)r+="|"+t+"\\b";return new RegExp(r+")","gi")}(),Ym=/hsl[a]?\(/,ac=function(t){var e=t.join(" "),n;if(_i.lastIndex=0,_i.test(e))return n=Ym.test(e),t[1]=Th(t[1],n),t[0]=Th(t[0],n,jh(t[1])),!0},js,vn=function(){var r=Date.now,t=500,e=33,n=r(),i=n,s=1e3/240,a=s,o=[],l,c,u,f,h,d,_=function g(p){var m=r()-i,S=p===!0,v,M,D,T;if((m>t||m<0)&&(n+=m-e),i+=m,D=i-n,v=D-a,(v>0||S)&&(T=++f.frame,h=D-f.time*1e3,f.time=D=D/1e3,a+=v+(v>=s?4:s-v),M=1),S||(l=c(g)),M)for(d=0;d<o.length;d++)o[d](D,h,T,p)};return f={time:0,frame:0,tick:function(){_(!0)},deltaRatio:function(p){return h/(1e3/(p||60))},wake:function(){Ih&&(!Hl&&Ql()&&(ai=Hl=window,ec=ai.document||{},Dn.gsap=Qe,(ai.gsapVersions||(ai.gsapVersions=[])).push(Qe.version),Lh(Va||ai.GreenSockGlobals||!ai.gsap&&ai||{}),$h.forEach(Kh)),u=typeof requestAnimationFrame<"u"&&requestAnimationFrame,l&&f.sleep(),c=u||function(p){return setTimeout(p,a-f.time*1e3+1|0)},js=1,_(2))},sleep:function(){(u?cancelAnimationFrame:clearTimeout)(l),js=0,c=Qs},lagSmoothing:function(p,m){t=p||1/0,e=Math.min(m||33,t)},fps:function(p){s=1e3/(p||240),a=f.time*1e3+s},add:function(p,m,S){var v=m?function(M,D,T,w){p(M,D,T,w),f.remove(v)}:p;return f.remove(p),o[S?"unshift":"push"](v),es(),v},remove:function(p,m){~(m=o.indexOf(p))&&o.splice(m,1)&&d>=m&&d--},_listeners:o},f}(),es=function(){return!js&&vn.wake()},ee={},Zm=/^[\d.\-M][\d.\-,\s]/,Jm=/["']/g,$m=function(t){for(var e={},n=t.substr(1,t.length-3).split(":"),i=n[0],s=1,a=n.length,o,l,c;s<a;s++)l=n[s],o=s!==a-1?l.lastIndexOf(","):l.length,c=l.substr(0,o),e[i]=isNaN(c)?c.replace(Jm,"").trim():+c,i=l.substr(o+1).trim();return e},Km=function(t){var e=t.indexOf("(")+1,n=t.indexOf(")"),i=t.indexOf("(",e);return t.substring(e,~i&&i<n?t.indexOf(")",n+1):n)},Qm=function(t){var e=(t+"").split("("),n=ee[e[0]];return n&&e.length>1&&n.config?n.config.apply(null,~t.indexOf("{")?[$m(e[1])]:Km(t).split(",").map(Oh)):ee._CE&&Zm.test(t)?ee._CE("",t):n},tf=function(t){return function(e){return 1-t(1-e)}},ef=function r(t,e){for(var n=t._first,i;n;)n instanceof Xe?r(n,e):n.vars.yoyoEase&&(!n._yoyo||!n._repeat)&&n._yoyo!==e&&(n.timeline?r(n.timeline,e):(i=n._ease,n._ease=n._yEase,n._yEase=i,n._yoyo=e)),n=n._next},pr=function(t,e){return t&&(Te(t)?t:ee[t]||Qm(t))||e},vr=function(t,e,n,i){n===void 0&&(n=function(l){return 1-e(1-l)}),i===void 0&&(i=function(l){return l<.5?e(l*2)/2:1-e((1-l)*2)/2});var s={easeIn:e,easeOut:n,easeInOut:i},a;return on(t,function(o){ee[o]=Dn[o]=s,ee[a=o.toLowerCase()]=n;for(var l in s)ee[a+(l==="easeIn"?".in":l==="easeOut"?".out":".inOut")]=ee[o+"."+l]=s[l]}),s},nf=function(t){return function(e){return e<.5?(1-t(1-e*2))/2:.5+t((e-.5)*2)/2}},Nl=function r(t,e,n){var i=e>=1?e:1,s=(n||(t?.3:.45))/(e<1?e:1),a=s/kl*(Math.asin(1/i)||0),o=function(u){return u===1?1:i*Math.pow(2,-10*u)*Tm((u-a)*s)+1},l=t==="out"?o:t==="in"?function(c){return 1-o(1-c)}:nf(o);return s=kl/s,l.config=function(c,u){return r(t,c,u)},l},Ol=function r(t,e){e===void 0&&(e=1.70158);var n=function(a){return a?--a*a*((e+1)*a+e)+1:0},i=t==="out"?n:t==="in"?function(s){return 1-n(1-s)}:nf(n);return i.config=function(s){return r(t,s)},i};on("Linear,Quad,Cubic,Quart,Quint,Strong",function(r,t){var e=t<5?t+1:t;vr(r+",Power"+(e-1),t?function(n){return Math.pow(n,e)}:function(n){return n},function(n){return 1-Math.pow(1-n,e)},function(n){return n<.5?Math.pow(n*2,e)/2:1-Math.pow((1-n)*2,e)/2})});ee.Linear.easeNone=ee.none=ee.Linear.easeIn;vr("Elastic",Nl("in"),Nl("out"),Nl());(function(r,t){var e=1/t,n=2*e,i=2.5*e,s=function(o){return o<e?r*o*o:o<n?r*Math.pow(o-1.5/t,2)+.75:o<i?r*(o-=2.25/t)*o+.9375:r*Math.pow(o-2.625/t,2)+.984375};vr("Bounce",function(a){return 1-s(1-a)},s)})(7.5625,2.75);vr("Expo",function(r){return r?Math.pow(2,10*(r-1)):0});vr("Circ",function(r){return-(Ch(1-r*r)-1)});vr("Sine",function(r){return r===1?1:-wm(r*bm)+1});vr("Back",Ol("in"),Ol("out"),Ol());ee.SteppedEase=ee.steps=Dn.SteppedEase={config:function(t,e){t===void 0&&(t=1);var n=1/t,i=t+(e?0:1),s=e?1:0,a=1-me;return function(o){return((i*ea(0,a,o)|0)+s)*n}}};Qr.ease=ee["quad.out"];on("onComplete,onUpdate,onStart,onRepeat,onReverseComplete,onInterrupt",function(r){return ic+=r+","+r+"Params,"});var oc=function(t,e){this.id=Em++,t._gsap=this,this.target=t,this.harness=e,this.get=e?e.get:sc,this.set=e?e.getSetter:Ka},ta=function(){function r(e){this.vars=e,this._delay=+e.delay||0,(this._repeat=e.repeat===1/0?-2:e.repeat||0)&&(this._rDelay=e.repeatDelay||0,this._yoyo=!!e.yoyo||!!e.yoyoEase),this._ts=1,ts(this,+e.duration,1,1),this.data=e.data,ye&&(this._ctx=ye,ye.data.push(this)),js||vn.wake()}var t=r.prototype;return t.delay=function(n){return n||n===0?(this.parent&&this.parent.smoothChildTiming&&this.startTime(this._start+n-this._delay),this._delay=n,this):this._delay},t.duration=function(n){return arguments.length?this.totalDuration(this._repeat>0?n+(n+this._rDelay)*this._repeat:n):this.totalDuration()&&this._dur},t.totalDuration=function(n){return arguments.length?(this._dirty=0,ts(this,this._repeat<0?n:(n-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},t.totalTime=function(n,i){if(es(),!arguments.length)return this._tTime;var s=this._dp;if(s&&s.smoothChildTiming&&this._ts){for($a(this,n),!s._dp||s.parent||kh(s,this);s&&s.parent;)s.parent._time!==s._start+(s._ts>=0?s._tTime/s._ts:(s.totalDuration()-s._tTime)/-s._ts)&&s.totalTime(s._tTime,!0),s=s.parent;!this.parent&&this._dp.autoRemoveChildren&&(this._ts>0&&n<this._tDur||this._ts<0&&n>0||!this._tDur&&!n)&&oi(this._dp,this,this._start-this._delay)}return(this._tTime!==n||!this._dur&&!i||this._initted&&Math.abs(this._zTime)===me||!n&&!this._initted&&(this.add||this._ptLookup))&&(this._ts||(this._pTime=n),Nh(this,n,i)),this},t.time=function(n,i){return arguments.length?this.totalTime(Math.min(this.totalDuration(),n+bh(this))%(this._dur+this._rDelay)||(n?this._dur:0),i):this._time},t.totalProgress=function(n,i){return arguments.length?this.totalTime(this.totalDuration()*n,i):this.totalDuration()?Math.min(1,this._tTime/this._tDur):this.rawTime()>0?1:0},t.progress=function(n,i){return arguments.length?this.totalTime(this.duration()*(this._yoyo&&!(this.iteration()&1)?1-n:n)+bh(this),i):this.duration()?Math.min(1,this._time/this._dur):this.rawTime()>0?1:0},t.iteration=function(n,i){var s=this.duration()+this._rDelay;return arguments.length?this.totalTime(this._time+(n-1)*s,i):this._repeat?jr(this._tTime,s)+1:1},t.timeScale=function(n,i){if(!arguments.length)return this._rts===-me?0:this._rts;if(this._rts===n)return this;var s=this.parent&&this._ts?Wa(this.parent._time,this):this._tTime;return this._rts=+n||0,this._ts=this._ps||n===-me?0:this._rts,this.totalTime(ea(-Math.abs(this._delay),this._tDur,s),i!==!1),Ja(this),Lm(this)},t.paused=function(n){return arguments.length?(this._ps!==n&&(this._ps=n,n?(this._pTime=this._tTime||Math.max(-this._delay,this.rawTime()),this._ts=this._act=0):(es(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,this.progress()===1&&Math.abs(this._zTime)!==me&&(this._tTime-=me)))),this):this._ps},t.startTime=function(n){if(arguments.length){this._start=n;var i=this.parent||this._dp;return i&&(i._sort||!this.parent)&&oi(i,this,n-this._delay),this}return this._start},t.endTime=function(n){return this._start+(yn(n)?this.totalDuration():this.duration())/Math.abs(this._ts||1)},t.rawTime=function(n){var i=this.parent||this._dp;return i?n&&(!this._ts||this._repeat&&this._time&&this.totalProgress()<1)?this._tTime%(this._dur+this._rDelay):this._ts?Wa(i.rawTime(n),this):this._tTime:this._tTime},t.revert=function(n){n===void 0&&(n=Cm);var i=$e;return $e=n,(this._initted||this._startAt)&&(this.timeline&&this.timeline.revert(n),this.totalTime(-.01,n.suppressEvents)),this.data!=="nested"&&n.kill!==!1&&this.kill(),$e=i,this},t.globalTime=function(n){for(var i=this,s=arguments.length?n:i.rawTime();i;)s=i._start+s/(Math.abs(i._ts)||1),i=i._dp;return!this.parent&&this._sat?this._sat.globalTime(n):s},t.repeat=function(n){return arguments.length?(this._repeat=n===1/0?-2:n,Eh(this)):this._repeat===-2?1/0:this._repeat},t.repeatDelay=function(n){if(arguments.length){var i=this._time;return this._rDelay=n,Eh(this),i?this.time(i):this}return this._rDelay},t.yoyo=function(n){return arguments.length?(this._yoyo=n,this):this._yoyo},t.seek=function(n,i){return this.totalTime(Un(this,n),yn(i))},t.restart=function(n,i){return this.play().totalTime(n?-this._delay:0,yn(i))},t.play=function(n,i){return n!=null&&this.seek(n,i),this.reversed(!1).paused(!1)},t.reverse=function(n,i){return n!=null&&this.seek(n||this.totalDuration(),i),this.reversed(!0).paused(!1)},t.pause=function(n,i){return n!=null&&this.seek(n,i),this.paused(!0)},t.resume=function(){return this.paused(!1)},t.reversed=function(n){return arguments.length?(!!n!==this.reversed()&&this.timeScale(-this._rts||(n?-me:0)),this):this._rts<0},t.invalidate=function(){return this._initted=this._act=0,this._zTime=-me,this},t.isActive=function(){var n=this.parent||this._dp,i=this._start,s;return!!(!n||this._ts&&this._initted&&n.isActive()&&(s=n.rawTime(!0))>=i&&s<this.endTime(!0)-me)},t.eventCallback=function(n,i,s){var a=this.vars;return arguments.length>1?(i?(a[n]=i,s&&(a[n+"Params"]=s),n==="onUpdate"&&(this._onUpdate=i)):delete a[n],this):a[n]},t.then=function(n){var i=this;return new Promise(function(s){var a=Te(n)?n:Bh,o=function(){var c=i.then;i.then=null,Te(a)&&(a=a(i))&&(a.then||a===i)&&(i.then=c),s(a),i.then=c};i._initted&&i.totalProgress()===1&&i._ts>=0||!i._tTime&&i._ts<0?o():i._prom=o})},t.kill=function(){qs(this)},r}();Bn(ta.prototype,{_time:0,_start:0,_end:0,_tTime:0,_tDur:0,_dirty:0,_repeat:0,_yoyo:!1,parent:null,_initted:!1,_rDelay:0,_ts:1,_dp:0,ratio:0,_zTime:-me,_prom:0,_ps:!1,_rts:1});var Xe=function(r){Dh(t,r);function t(n,i){var s;return n===void 0&&(n={}),s=r.call(this,n)||this,s.labels={},s.smoothChildTiming=!!n.smoothChildTiming,s.autoRemoveChildren=!!n.autoRemoveChildren,s._sort=yn(n.sortChildren),be&&oi(n.parent||be,gi(s),i),n.reversed&&s.reverse(),n.paused&&s.paused(!0),n.scrollTrigger&&Vh(gi(s),n.scrollTrigger),s}var e=t.prototype;return e.to=function(i,s,a){return Js(0,arguments,this),this},e.from=function(i,s,a){return Js(1,arguments,this),this},e.fromTo=function(i,s,a,o){return Js(2,arguments,this),this},e.set=function(i,s,a){return s.duration=0,s.parent=this,Zs(s).repeatDelay||(s.repeat=0),s.immediateRender=!!s.immediateRender,new Ce(i,s,Un(this,a),1),this},e.call=function(i,s,a){return oi(this,Ce.delayedCall(0,i,s),a)},e.staggerTo=function(i,s,a,o,l,c,u){return a.duration=s,a.stagger=a.stagger||o,a.onComplete=c,a.onCompleteParams=u,a.parent=this,new Ce(i,a,Un(this,l)),this},e.staggerFrom=function(i,s,a,o,l,c,u){return a.runBackwards=1,Zs(a).immediateRender=yn(a.immediateRender),this.staggerTo(i,s,a,o,l,c,u)},e.staggerFromTo=function(i,s,a,o,l,c,u,f){return o.startAt=a,Zs(o).immediateRender=yn(o.immediateRender),this.staggerTo(i,s,o,l,c,u,f)},e.render=function(i,s,a){var o=this._time,l=this._dirty?this.totalDuration():this._tDur,c=this._dur,u=i<=0?0:ke(i),f=this._zTime<0!=i<0&&(this._initted||!c),h,d,_,g,p,m,S,v,M,D,T,w;if(this!==be&&u>l&&i>=0&&(u=l),u!==this._tTime||a||f){if(o!==this._time&&c&&(u+=this._time-o,i+=this._time-o),h=u,M=this._start,v=this._ts,m=!v,f&&(c||(o=this._zTime),(i||!s)&&(this._zTime=i)),this._repeat){if(T=this._yoyo,p=c+this._rDelay,this._repeat<-1&&i<0)return this.totalTime(p*100+i,s,a);if(h=ke(u%p),u===l?(g=this._repeat,h=c):(g=~~(u/p),g&&g===u/p&&(h=c,g--),h>c&&(h=c)),D=jr(this._tTime,p),!o&&this._tTime&&D!==g&&this._tTime-D*p-this._dur<=0&&(D=g),T&&g&1&&(h=c-h,w=1),g!==D&&!this._lock){var P=T&&D&1,y=P===(T&&g&1);if(g<D&&(P=!P),o=P?0:u%c?c:u,this._lock=1,this.render(o||(w?0:ke(g*p)),s,!c)._lock=0,this._tTime=u,!s&&this.parent&&An(this,"onRepeat"),this.vars.repeatRefresh&&!w&&(this.invalidate()._lock=1),o&&o!==this._time||m!==!this._ts||this.vars.onRepeat&&!this.parent&&!this._act)return this;if(c=this._dur,l=this._tDur,y&&(this._lock=2,o=P?c:-1e-4,this.render(o,!0),this.vars.repeatRefresh&&!w&&this.invalidate()),this._lock=0,!this._ts&&!m)return this;ef(this,w)}}if(this._hasPause&&!this._forcing&&this._lock<2&&(S=Om(this,ke(o),ke(h)),S&&(u-=h-(h=S._start))),this._tTime=u,this._time=h,this._act=!v,this._initted||(this._onUpdate=this.vars.onUpdate,this._initted=1,this._zTime=i,o=0),!o&&h&&!s&&!g&&(An(this,"onStart"),this._tTime!==u))return this;if(h>=o&&i>=0)for(d=this._first;d;){if(_=d._next,(d._act||h>=d._start)&&d._ts&&S!==d){if(d.parent!==this)return this.render(i,s,a);if(d.render(d._ts>0?(h-d._start)*d._ts:(d._dirty?d.totalDuration():d._tDur)+(h-d._start)*d._ts,s,a),h!==this._time||!this._ts&&!m){S=0,_&&(u+=this._zTime=-me);break}}d=_}else{d=this._last;for(var x=i<0?i:h;d;){if(_=d._prev,(d._act||x<=d._end)&&d._ts&&S!==d){if(d.parent!==this)return this.render(i,s,a);if(d.render(d._ts>0?(x-d._start)*d._ts:(d._dirty?d.totalDuration():d._tDur)+(x-d._start)*d._ts,s,a||$e&&(d._initted||d._startAt)),h!==this._time||!this._ts&&!m){S=0,_&&(u+=this._zTime=x?-me:me);break}}d=_}}if(S&&!s&&(this.pause(),S.render(h>=o?0:-me)._zTime=h>=o?1:-1,this._ts))return this._start=M,Ja(this),this.render(i,s,a);this._onUpdate&&!s&&An(this,"onUpdate",!0),(u===l&&this._tTime>=this.totalDuration()||!u&&o)&&(M===this._start||Math.abs(v)!==Math.abs(this._ts))&&(this._lock||((i||!c)&&(u===l&&this._ts>0||!u&&this._ts<0)&&Vi(this,1),!s&&!(i<0&&!o)&&(u||o||!l)&&(An(this,u===l&&i>=0?"onComplete":"onReverseComplete",!0),this._prom&&!(u<l&&this.timeScale()>0)&&this._prom())))}return this},e.add=function(i,s){var a=this;if(xi(s)||(s=Un(this,s,i)),!(i instanceof ta)){if(Ke(i))return i.forEach(function(o){return a.add(o,s)}),this;if(Ue(i))return this.addLabel(i,s);if(Te(i))i=Ce.delayedCall(0,i);else return this}return this!==i?oi(this,i,s):this},e.getChildren=function(i,s,a,o){i===void 0&&(i=!0),s===void 0&&(s=!0),a===void 0&&(a=!0),o===void 0&&(o=-Nn);for(var l=[],c=this._first;c;)c._start>=o&&(c instanceof Ce?s&&l.push(c):(a&&l.push(c),i&&l.push.apply(l,c.getChildren(!0,s,a)))),c=c._next;return l},e.getById=function(i){for(var s=this.getChildren(1,1,1),a=s.length;a--;)if(s[a].vars.id===i)return s[a]},e.remove=function(i){return Ue(i)?this.removeLabel(i):Te(i)?this.killTweensOf(i):(Za(this,i),i===this._recent&&(this._recent=this._last),dr(this))},e.totalTime=function(i,s){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=ke(vn.time-(this._ts>0?i/this._ts:(this.totalDuration()-i)/-this._ts))),r.prototype.totalTime.call(this,i,s),this._forcing=0,this):this._tTime},e.addLabel=function(i,s){return this.labels[i]=Un(this,s),this},e.removeLabel=function(i){return delete this.labels[i],this},e.addPause=function(i,s,a){var o=Ce.delayedCall(0,s||Qs,a);return o.data="isPause",this._hasPause=1,oi(this,o,Un(this,i))},e.removePause=function(i){var s=this._first;for(i=Un(this,i);s;)s._start===i&&s.data==="isPause"&&Vi(s),s=s._next},e.killTweensOf=function(i,s,a){for(var o=this.getTweensOf(i,a),l=o.length;l--;)Bi!==o[l]&&o[l].kill(i,s);return this},e.getTweensOf=function(i,s){for(var a=[],o=On(i),l=this._first,c=xi(s),u;l;)l instanceof Ce?Rm(l._targets,o)&&(c?(!Bi||l._initted&&l._ts)&&l.globalTime(0)<=s&&l.globalTime(l.totalDuration())>s:!s||l.isActive())&&a.push(l):(u=l.getTweensOf(o,s)).length&&a.push.apply(a,u),l=l._next;return a},e.tweenTo=function(i,s){s=s||{};var a=this,o=Un(a,i),l=s,c=l.startAt,u=l.onStart,f=l.onStartParams,h=l.immediateRender,d,_=Ce.to(a,Bn({ease:s.ease||"none",lazy:!1,immediateRender:!1,time:o,overwrite:"auto",duration:s.duration||Math.abs((o-(c&&"time"in c?c.time:a._time))/a.timeScale())||me,onStart:function(){if(a.pause(),!d){var p=s.duration||Math.abs((o-(c&&"time"in c?c.time:a._time))/a.timeScale());_._dur!==p&&ts(_,p,0,1).render(_._time,!0,!0),d=1}u&&u.apply(_,f||[])}},s));return h?_.render(0):_},e.tweenFromTo=function(i,s,a){return this.tweenTo(s,Bn({startAt:{time:Un(this,i)}},a))},e.recent=function(){return this._recent},e.nextLabel=function(i){return i===void 0&&(i=this._time),wh(this,Un(this,i))},e.previousLabel=function(i){return i===void 0&&(i=this._time),wh(this,Un(this,i),1)},e.currentLabel=function(i){return arguments.length?this.seek(i,!0):this.previousLabel(this._time+me)},e.shiftChildren=function(i,s,a){a===void 0&&(a=0);for(var o=this._first,l=this.labels,c;o;)o._start>=a&&(o._start+=i,o._end+=i),o=o._next;if(s)for(c in l)l[c]>=a&&(l[c]+=i);return dr(this)},e.invalidate=function(i){var s=this._first;for(this._lock=0;s;)s.invalidate(i),s=s._next;return r.prototype.invalidate.call(this,i)},e.clear=function(i){i===void 0&&(i=!0);for(var s=this._first,a;s;)a=s._next,this.remove(s),s=a;return this._dp&&(this._time=this._tTime=this._pTime=0),i&&(this.labels={}),dr(this)},e.totalDuration=function(i){var s=0,a=this,o=a._last,l=Nn,c,u,f;if(arguments.length)return a.timeScale((a._repeat<0?a.duration():a.totalDuration())/(a.reversed()?-i:i));if(a._dirty){for(f=a.parent;o;)c=o._prev,o._dirty&&o.totalDuration(),u=o._start,u>l&&a._sort&&o._ts&&!a._lock?(a._lock=1,oi(a,o,u-o._delay,1)._lock=0):l=u,u<0&&o._ts&&(s-=u,(!f&&!a._dp||f&&f.smoothChildTiming)&&(a._start+=u/a._ts,a._time-=u,a._tTime-=u),a.shiftChildren(-u,!1,-1/0),l=0),o._end>s&&o._ts&&(s=o._end),o=c;ts(a,a===be&&a._time>s?a._time:s,1,1),a._dirty=0}return a._tDur},t.updateRoot=function(i){if(be._ts&&(Nh(be,Wa(i,be)),Uh=vn.frame),vn.frame>=Mh){Mh+=Mn.autoSleep||120;var s=be._first;if((!s||!s._ts)&&Mn.autoSleep&&vn._listeners.length<2){for(;s&&!s._ts;)s=s._next;s||vn.sleep()}}},t}(ta);Bn(Xe.prototype,{_lock:0,_hasPause:0,_forcing:0});var jm=function(t,e,n,i,s,a,o){var l=new ln(this._pt,t,e,0,1,fc,null,s),c=0,u=0,f,h,d,_,g,p,m,S;for(l.b=n,l.e=i,n+="",i+="",(m=~i.indexOf("random("))&&(i=ns(i)),a&&(S=[n,i],a(S,t,e),n=S[0],i=S[1]),h=n.match(Ll)||[];f=Ll.exec(i);)_=f[0],g=i.substring(c,f.index),d?d=(d+1)%5:g.substr(-5)==="rgba("&&(d=1),_!==h[u++]&&(p=parseFloat(h[u-1])||0,l._pt={_next:l._pt,p:g||u===1?g:",",s:p,c:_.charAt(1)==="="?xr(p,_)-p:parseFloat(_)-p,m:d&&d<4?Math.round:0},c=Ll.lastIndex);return l.c=c<i.length?i.substring(c,i.length):"",l.fp=o,(tc.test(i)||m)&&(l.e=0),this._pt=l,l},lc=function(t,e,n,i,s,a,o,l,c,u){Te(i)&&(i=i(s||0,t,a));var f=t[e],h=n!=="get"?n:Te(f)?c?t[e.indexOf("set")||!Te(t["get"+e.substr(3)])?e:"get"+e.substr(3)](c):t[e]():f,d=Te(f)?c?rg:af:hc,_;if(Ue(i)&&(~i.indexOf("random(")&&(i=ns(i)),i.charAt(1)==="="&&(_=xr(h,i)+(qe(h)||0),(_||_===0)&&(i=_))),!u||h!==i||Jl)return!isNaN(h*i)&&i!==""?(_=new ln(this._pt,t,e,+h||0,i-(h||0),typeof f=="boolean"?ag:of,0,d),c&&(_.fp=c),o&&_.modifier(o,this,t),this._pt=_):(!f&&!(e in t)&&Ya(e,i),jm.call(this,t,e,h,i,d,l||Mn.stringFilter,c))},tg=function(t,e,n,i,s){if(Te(t)&&(t=$s(t,s,e,n,i)),!li(t)||t.style&&t.nodeType||Ke(t)||Rh(t))return Ue(t)?$s(t,s,e,n,i):t;var a={},o;for(o in t)a[o]=$s(t[o],s,e,n,i);return a},cc=function(t,e,n,i,s,a){var o,l,c,u;if(xn[t]&&(o=new xn[t]).init(s,o.rawVars?e[t]:tg(e[t],i,s,a,n),n,i,a)!==!1&&(n._pt=l=new ln(n._pt,s,t,0,1,o.render,o,0,o.priority),n!==Kr))for(c=n._ptLookup[n._targets.indexOf(s)],u=o._props.length;u--;)c[o._props[u]]=l;return o},Bi,Jl,uc=function r(t,e,n){var i=t.vars,s=i.ease,a=i.startAt,o=i.immediateRender,l=i.lazy,c=i.onUpdate,u=i.runBackwards,f=i.yoyoEase,h=i.keyframes,d=i.autoRevert,_=t._dur,g=t._startAt,p=t._targets,m=t.parent,S=m&&m.data==="nested"?m.vars.targets:p,v=t._overwrite==="auto"&&!Kl,M=t.timeline,D,T,w,P,y,x,F,I,R,B,G,Z,J;if(M&&(!h||!s)&&(s="none"),t._ease=pr(s,Qr.ease),t._yEase=f?tf(pr(f===!0?s:f,Qr.ease)):0,f&&t._yoyo&&!t._repeat&&(f=t._yEase,t._yEase=t._ease,t._ease=f),t._from=!M&&!!i.runBackwards,!M||h&&!i.stagger){if(I=p[0]?ki(p[0]).harness:0,Z=I&&i[I.prop],D=Ga(i,nc),g&&(g._zTime<0&&g.progress(1),e<0&&u&&o&&!d?g.render(-1,!0):g.revert(u&&_?Ba:Dm),g._lazy=0),a){if(Vi(t._startAt=Ce.set(p,Bn({data:"isStart",overwrite:!1,parent:m,immediateRender:!0,lazy:!g&&yn(l),startAt:null,delay:0,onUpdate:c&&function(){return An(t,"onUpdate")},stagger:0},a))),t._startAt._dp=0,t._startAt._sat=t,e<0&&($e||!o&&!d)&&t._startAt.revert(Ba),o&&_&&e<=0&&n<=0){e&&(t._zTime=e);return}}else if(u&&_&&!g){if(e&&(o=!1),w=Bn({overwrite:!1,data:"isFromStart",lazy:o&&!g&&yn(l),immediateRender:o,stagger:0,parent:m},D),Z&&(w[I.prop]=Z),Vi(t._startAt=Ce.set(p,w)),t._startAt._dp=0,t._startAt._sat=t,e<0&&($e?t._startAt.revert(Ba):t._startAt.render(-1,!0)),t._zTime=e,!o)r(t._startAt,me,me);else if(!e)return}for(t._pt=t._ptCache=0,l=_&&yn(l)||l&&!_,T=0;T<p.length;T++){if(y=p[T],F=y._gsap||rc(p)[T]._gsap,t._ptLookup[T]=B={},Gl[F.id]&&zi.length&&Ha(),G=S===p?T:S.indexOf(y),I&&(R=new I).init(y,Z||D,t,G,S)!==!1&&(t._pt=P=new ln(t._pt,y,R.name,0,1,R.render,R,0,R.priority),R._props.forEach(function(N){B[N]=P}),R.priority&&(x=1)),!I||Z)for(w in D)xn[w]&&(R=cc(w,D,t,G,y,S))?R.priority&&(x=1):B[w]=P=lc.call(t,y,w,"get",D[w],G,S,0,i.stringFilter);t._op&&t._op[T]&&t.kill(y,t._op[T]),v&&t._pt&&(Bi=t,be.killTweensOf(y,B,t.globalTime(e)),J=!t.parent,Bi=0),t._pt&&l&&(Gl[F.id]=1)}x&&pc(t),t._onInit&&t._onInit(t)}t._onUpdate=c,t._initted=(!t._op||t._pt)&&!J,h&&e<=0&&M.render(Nn,!0,!0)},eg=function(t,e,n,i,s,a,o,l){var c=(t._pt&&t._ptCache||(t._ptCache={}))[e],u,f,h,d;if(!c)for(c=t._ptCache[e]=[],h=t._ptLookup,d=t._targets.length;d--;){if(u=h[d][e],u&&u.d&&u.d._pt)for(u=u.d._pt;u&&u.p!==e&&u.fp!==e;)u=u._next;if(!u)return Jl=1,t.vars[e]="+=0",uc(t,o),Jl=0,l?Ks(e+" not eligible for reset"):1;c.push(u)}for(d=c.length;d--;)f=c[d],u=f._pt||f,u.s=(i||i===0)&&!s?i:u.s+(i||0)+a*u.c,u.c=n-u.s,f.e&&(f.e=Ae(n)+qe(f.e)),f.b&&(f.b=u.s+qe(f.b))},ng=function(t,e){var n=t[0]?ki(t[0]).harness:0,i=n&&n.aliases,s,a,o,l;if(!i)return e;s=gr({},e);for(a in i)if(a in s)for(l=i[a].split(","),o=l.length;o--;)s[l[o]]=s[a];return s},ig=function(t,e,n,i){var s=e.ease||i||"power1.inOut",a,o;if(Ke(e))o=n[t]||(n[t]=[]),e.forEach(function(l,c){return o.push({t:c/(e.length-1)*100,v:l,e:s})});else for(a in e)o=n[a]||(n[a]=[]),a==="ease"||o.push({t:parseFloat(t),v:e[a],e:s})},$s=function(t,e,n,i,s){return Te(t)?t.call(e,n,i,s):Ue(t)&&~t.indexOf("random(")?ns(t):t},rf=ic+"repeat,repeatDelay,yoyo,repeatRefresh,yoyoEase,autoRevert",sf={};on(rf+",id,stagger,delay,duration,paused,scrollTrigger",function(r){return sf[r]=1});var Ce=function(r){Dh(t,r);function t(n,i,s,a){var o;typeof i=="number"&&(s.duration=i,i=s,s=null),o=r.call(this,a?i:Zs(i))||this;var l=o.vars,c=l.duration,u=l.delay,f=l.immediateRender,h=l.stagger,d=l.overwrite,_=l.keyframes,g=l.defaults,p=l.scrollTrigger,m=l.yoyoEase,S=i.parent||be,v=(Ke(n)||Rh(n)?xi(n[0]):"length"in i)?[n]:On(n),M,D,T,w,P,y,x,F;if(o._targets=v.length?rc(v):Ks("GSAP target "+n+" not found. https://gsap.com",!Mn.nullTargetWarn)||[],o._ptLookup=[],o._overwrite=d,_||h||Oa(c)||Oa(u)){if(i=o.vars,M=o.timeline=new Xe({data:"nested",defaults:g||{},targets:S&&S.data==="nested"?S.vars.targets:v}),M.kill(),M.parent=M._dp=gi(o),M._start=0,h||Oa(c)||Oa(u)){if(w=v.length,x=h&&Xh(h),li(h))for(P in h)~rf.indexOf(P)&&(F||(F={}),F[P]=h[P]);for(D=0;D<w;D++)T=Ga(i,sf),T.stagger=0,m&&(T.yoyoEase=m),F&&gr(T,F),y=v[D],T.duration=+$s(c,gi(o),D,y,v),T.delay=(+$s(u,gi(o),D,y,v)||0)-o._delay,!h&&w===1&&T.delay&&(o._delay=u=T.delay,o._start+=u,T.delay=0),M.to(y,T,x?x(D,y,v):0),M._ease=ee.none;M.duration()?c=u=0:o.timeline=0}else if(_){Zs(Bn(M.vars.defaults,{ease:"none"})),M._ease=pr(_.ease||i.ease||"none");var I=0,R,B,G;if(Ke(_))_.forEach(function(Z){return M.to(v,Z,">")}),M.duration();else{T={};for(P in _)P==="ease"||P==="easeEach"||ig(P,_[P],T,_.easeEach);for(P in T)for(R=T[P].sort(function(Z,J){return Z.t-J.t}),I=0,D=0;D<R.length;D++)B=R[D],G={ease:B.e,duration:(B.t-(D?R[D-1].t:0))/100*c},G[P]=B.v,M.to(v,G,I),I+=G.duration;M.duration()<c&&M.to({},{duration:c-M.duration()})}}c||o.duration(c=M.duration())}else o.timeline=0;return d===!0&&!Kl&&(Bi=gi(o),be.killTweensOf(v),Bi=0),oi(S,gi(o),s),i.reversed&&o.reverse(),i.paused&&o.paused(!0),(f||!c&&!_&&o._start===ke(S._time)&&yn(f)&&Fm(gi(o))&&S.data!=="nested")&&(o._tTime=-me,o.render(Math.max(0,-u)||0)),p&&Vh(gi(o),p),o}var e=t.prototype;return e.render=function(i,s,a){var o=this._time,l=this._tDur,c=this._dur,u=i<0,f=i>l-me&&!u?l:i<me?0:i,h,d,_,g,p,m,S,v,M;if(!c)Nm(this,i,s,a);else if(f!==this._tTime||!i||a||!this._initted&&this._tTime||this._startAt&&this._zTime<0!==u){if(h=f,v=this.timeline,this._repeat){if(g=c+this._rDelay,this._repeat<-1&&u)return this.totalTime(g*100+i,s,a);if(h=ke(f%g),f===l?(_=this._repeat,h=c):(_=~~(f/g),_&&_===ke(f/g)&&(h=c,_--),h>c&&(h=c)),m=this._yoyo&&_&1,m&&(M=this._yEase,h=c-h),p=jr(this._tTime,g),h===o&&!a&&this._initted&&_===p)return this._tTime=f,this;_!==p&&(v&&this._yEase&&ef(v,m),this.vars.repeatRefresh&&!m&&!this._lock&&this._time!==g&&this._initted&&(this._lock=a=1,this.render(ke(g*_),!0).invalidate()._lock=0))}if(!this._initted){if(Hh(this,u?i:h,a,s,f))return this._tTime=0,this;if(o!==this._time&&!(a&&this.vars.repeatRefresh&&_!==p))return this;if(c!==this._dur)return this.render(i,s,a)}if(this._tTime=f,this._time=h,!this._act&&this._ts&&(this._act=1,this._lazy=0),this.ratio=S=(M||this._ease)(h/c),this._from&&(this.ratio=S=1-S),h&&!o&&!s&&!_&&(An(this,"onStart"),this._tTime!==f))return this;for(d=this._pt;d;)d.r(S,d.d),d=d._next;v&&v.render(i<0?i:v._dur*v._ease(h/this._dur),s,a)||this._startAt&&(this._zTime=i),this._onUpdate&&!s&&(u&&Wl(this,i,s,a),An(this,"onUpdate")),this._repeat&&_!==p&&this.vars.onRepeat&&!s&&this.parent&&An(this,"onRepeat"),(f===this._tDur||!f)&&this._tTime===f&&(u&&!this._onUpdate&&Wl(this,i,!0,!0),(i||!c)&&(f===this._tDur&&this._ts>0||!f&&this._ts<0)&&Vi(this,1),!s&&!(u&&!o)&&(f||o||m)&&(An(this,f===l?"onComplete":"onReverseComplete",!0),this._prom&&!(f<l&&this.timeScale()>0)&&this._prom()))}return this},e.targets=function(){return this._targets},e.invalidate=function(i){return(!i||!this.vars.runBackwards)&&(this._startAt=0),this._pt=this._op=this._onUpdate=this._lazy=this.ratio=0,this._ptLookup=[],this.timeline&&this.timeline.invalidate(i),r.prototype.invalidate.call(this,i)},e.resetTo=function(i,s,a,o,l){js||vn.wake(),this._ts||this.play();var c=Math.min(this._dur,(this._dp._time-this._start)*this._ts),u;return this._initted||uc(this,c),u=this._ease(c/this._dur),eg(this,i,s,a,o,u,c,l)?this.resetTo(i,s,a,o,1):($a(this,0),this.parent||zh(this._dp,this,"_first","_last",this._dp._sort?"_start":0),this.render(0))},e.kill=function(i,s){if(s===void 0&&(s="all"),!i&&(!s||s==="all"))return this._lazy=this._pt=0,this.parent?qs(this):this;if(this.timeline){var a=this.timeline.totalDuration();return this.timeline.killTweensOf(i,s,Bi&&Bi.vars.overwrite!==!0)._first||qs(this),this.parent&&a!==this.timeline.totalDuration()&&ts(this,this._dur*this.timeline._tDur/a,0,1),this}var o=this._targets,l=i?On(i):o,c=this._ptLookup,u=this._pt,f,h,d,_,g,p,m;if((!s||s==="all")&&Im(o,l))return s==="all"&&(this._pt=0),qs(this);for(f=this._op=this._op||[],s!=="all"&&(Ue(s)&&(g={},on(s,function(S){return g[S]=1}),s=g),s=ng(o,s)),m=o.length;m--;)if(~l.indexOf(o[m])){h=c[m],s==="all"?(f[m]=s,_=h,d={}):(d=f[m]=f[m]||{},_=s);for(g in _)p=h&&h[g],p&&((!("kill"in p.d)||p.d.kill(g)===!0)&&Za(this,p,"_pt"),delete h[g]),d!=="all"&&(d[g]=1)}return this._initted&&!this._pt&&u&&qs(this),this},t.to=function(i,s){return new t(i,s,arguments[2])},t.from=function(i,s){return Js(1,arguments)},t.delayedCall=function(i,s,a,o){return new t(s,0,{immediateRender:!1,lazy:!1,overwrite:!1,delay:i,onComplete:s,onReverseComplete:s,onCompleteParams:a,onReverseCompleteParams:a,callbackScope:o})},t.fromTo=function(i,s,a){return Js(2,arguments)},t.set=function(i,s){return s.duration=0,s.repeatDelay||(s.repeat=0),new t(i,s)},t.killTweensOf=function(i,s,a){return be.killTweensOf(i,s,a)},t}(ta);Bn(Ce.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0});on("staggerTo,staggerFrom,staggerFromTo",function(r){Ce[r]=function(){var t=new Xe,e=ql.call(arguments,0);return e.splice(r==="staggerFromTo"?5:4,0,0),t[r].apply(t,e)}});var hc=function(t,e,n){return t[e]=n},af=function(t,e,n){return t[e](n)},rg=function(t,e,n,i){return t[e](i.fp,n)},sg=function(t,e,n){return t.setAttribute(e,n)},Ka=function(t,e){return Te(t[e])?af:qa(t[e])&&t.setAttribute?sg:hc},of=function(t,e){return e.set(e.t,e.p,Math.round((e.s+e.c*t)*1e6)/1e6,e)},ag=function(t,e){return e.set(e.t,e.p,!!(e.s+e.c*t),e)},fc=function(t,e){var n=e._pt,i="";if(!t&&e.b)i=e.b;else if(t===1&&e.e)i=e.e;else{for(;n;)i=n.p+(n.m?n.m(n.s+n.c*t):Math.round((n.s+n.c*t)*1e4)/1e4)+i,n=n._next;i+=e.c}e.set(e.t,e.p,i,e)},dc=function(t,e){for(var n=e._pt;n;)n.r(t,n.d),n=n._next},og=function(t,e,n,i){for(var s=this._pt,a;s;)a=s._next,s.p===i&&s.modifier(t,e,n),s=a},lg=function(t){for(var e=this._pt,n,i;e;)i=e._next,e.p===t&&!e.op||e.op===t?Za(this,e,"_pt"):e.dep||(n=1),e=i;return!n},cg=function(t,e,n,i){i.mSet(t,e,i.m.call(i.tween,n,i.mt),i)},pc=function(t){for(var e=t._pt,n,i,s,a;e;){for(n=e._next,i=s;i&&i.pr>e.pr;)i=i._next;(e._prev=i?i._prev:a)?e._prev._next=e:s=e,(e._next=i)?i._prev=e:a=e,e=n}t._pt=s},ln=function(){function r(e,n,i,s,a,o,l,c,u){this.t=n,this.s=s,this.c=a,this.p=i,this.r=o||of,this.d=l||this,this.set=c||hc,this.pr=u||0,this._next=e,e&&(e._prev=this)}var t=r.prototype;return t.modifier=function(n,i,s){this.mSet=this.mSet||this.set,this.set=cg,this.m=n,this.mt=s,this.tween=i},r}();on(ic+"parent,duration,ease,delay,overwrite,runBackwards,startAt,yoyo,immediateRender,repeat,repeatDelay,data,paused,reversed,lazy,callbackScope,stringFilter,id,yoyoEase,stagger,inherit,repeatRefresh,keyframes,autoRevert,scrollTrigger",function(r){return nc[r]=1});Dn.TweenMax=Dn.TweenLite=Ce;Dn.TimelineLite=Dn.TimelineMax=Xe;be=new Xe({sortChildren:!1,defaults:Qr,autoRemoveChildren:!0,id:"root",smoothChildTiming:!0});Mn.stringFilter=ac;var mr=[],ka={},ug=[],Ah=0,hg=0,Bl=function(t){return(ka[t]||ug).map(function(e){return e()})},$l=function(){var t=Date.now(),e=[];t-Ah>2&&(Bl("matchMediaInit"),mr.forEach(function(n){var i=n.queries,s=n.conditions,a,o,l,c;for(o in i)a=ai.matchMedia(i[o]).matches,a&&(l=1),a!==s[o]&&(s[o]=a,c=1);c&&(n.revert(),l&&e.push(n))}),Bl("matchMediaRevert"),e.forEach(function(n){return n.onMatch(n,function(i){return n.add(null,i)})}),Ah=t,Bl("matchMedia"))},lf=function(){function r(e,n){this.selector=n&&Yl(n),this.data=[],this._r=[],this.isReverted=!1,this.id=hg++,e&&this.add(e)}var t=r.prototype;return t.add=function(n,i,s){Te(n)&&(s=i,i=n,n=Te);var a=this,o=function(){var c=ye,u=a.selector,f;return c&&c!==a&&c.data.push(a),s&&(a.selector=Yl(s)),ye=a,f=i.apply(a,arguments),Te(f)&&a._r.push(f),ye=c,a.selector=u,a.isReverted=!1,f};return a.last=o,n===Te?o(a,function(l){return a.add(null,l)}):n?a[n]=o:o},t.ignore=function(n){var i=ye;ye=null,n(this),ye=i},t.getTweens=function(){var n=[];return this.data.forEach(function(i){return i instanceof r?n.push.apply(n,i.getTweens()):i instanceof Ce&&!(i.parent&&i.parent.data==="nested")&&n.push(i)}),n},t.clear=function(){this._r.length=this.data.length=0},t.kill=function(n,i){var s=this;if(n?function(){for(var o=s.getTweens(),l=s.data.length,c;l--;)c=s.data[l],c.data==="isFlip"&&(c.revert(),c.getChildren(!0,!0,!1).forEach(function(u){return o.splice(o.indexOf(u),1)}));for(o.map(function(u){return{g:u._dur||u._delay||u._sat&&!u._sat.vars.immediateRender?u.globalTime(0):-1/0,t:u}}).sort(function(u,f){return f.g-u.g||-1/0}).forEach(function(u){return u.t.revert(n)}),l=s.data.length;l--;)c=s.data[l],c instanceof Xe?c.data!=="nested"&&(c.scrollTrigger&&c.scrollTrigger.revert(),c.kill()):!(c instanceof Ce)&&c.revert&&c.revert(n);s._r.forEach(function(u){return u(n,s)}),s.isReverted=!0}():this.data.forEach(function(o){return o.kill&&o.kill()}),this.clear(),i)for(var a=mr.length;a--;)mr[a].id===this.id&&mr.splice(a,1)},t.revert=function(n){this.kill(n||{})},r}(),fg=function(){function r(e){this.contexts=[],this.scope=e,ye&&ye.data.push(this)}var t=r.prototype;return t.add=function(n,i,s){li(n)||(n={matches:n});var a=new lf(0,s||this.scope),o=a.conditions={},l,c,u;ye&&!a.selector&&(a.selector=ye.selector),this.contexts.push(a),i=a.add("onMatch",i),a.queries=n;for(c in n)c==="all"?u=1:(l=ai.matchMedia(n[c]),l&&(mr.indexOf(a)<0&&mr.push(a),(o[c]=l.matches)&&(u=1),l.addListener?l.addListener($l):l.addEventListener("change",$l)));return u&&i(a,function(f){return a.add(null,f)}),this},t.revert=function(n){this.kill(n||{})},t.kill=function(n){this.contexts.forEach(function(i){return i.kill(n,!0)})},r}(),Xa={registerPlugin:function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];e.forEach(function(i){return Kh(i)})},timeline:function(t){return new Xe(t)},getTweensOf:function(t,e){return be.getTweensOf(t,e)},getProperty:function(t,e,n,i){Ue(t)&&(t=On(t)[0]);var s=ki(t||{}).get,a=n?Bh:Oh;return n==="native"&&(n=""),t&&(e?a((xn[e]&&xn[e].get||s)(t,e,n,i)):function(o,l,c){return a((xn[o]&&xn[o].get||s)(t,o,l,c))})},quickSetter:function(t,e,n){if(t=On(t),t.length>1){var i=t.map(function(u){return Qe.quickSetter(u,e,n)}),s=i.length;return function(u){for(var f=s;f--;)i[f](u)}}t=t[0]||{};var a=xn[e],o=ki(t),l=o.harness&&(o.harness.aliases||{})[e]||e,c=a?function(u){var f=new a;Kr._pt=0,f.init(t,n?u+n:u,Kr,0,[t]),f.render(1,f),Kr._pt&&dc(1,Kr)}:o.set(t,l);return a?c:function(u){return c(t,l,n?u+n:u,o,1)}},quickTo:function(t,e,n){var i,s=Qe.to(t,gr((i={},i[e]="+=0.1",i.paused=!0,i),n||{})),a=function(l,c,u){return s.resetTo(e,l,c,u)};return a.tween=s,a},isTweening:function(t){return be.getTweensOf(t,!0).length>0},defaults:function(t){return t&&t.ease&&(t.ease=pr(t.ease,Qr.ease)),Sh(Qr,t||{})},config:function(t){return Sh(Mn,t||{})},registerEffect:function(t){var e=t.name,n=t.effect,i=t.plugins,s=t.defaults,a=t.extendTimeline;(i||"").split(",").forEach(function(o){return o&&!xn[o]&&!Dn[o]&&Ks(e+" effect requires "+o+" plugin.")}),Fl[e]=function(o,l,c){return n(On(o),Bn(l||{},s),c)},a&&(Xe.prototype[e]=function(o,l,c){return this.add(Fl[e](o,li(l)?l:(c=l)&&{},this),c)})},registerEase:function(t,e){ee[t]=pr(e)},parseEase:function(t,e){return arguments.length?pr(t,e):ee},getById:function(t){return be.getById(t)},exportRoot:function(t,e){t===void 0&&(t={});var n=new Xe(t),i,s;for(n.smoothChildTiming=yn(t.smoothChildTiming),be.remove(n),n._dp=0,n._time=n._tTime=be._time,i=be._first;i;)s=i._next,(e||!(!i._dur&&i instanceof Ce&&i.vars.onComplete===i._targets[0]))&&oi(n,i,i._start-i._delay),i=s;return oi(be,n,0),n},context:function(t,e){return t?new lf(t,e):ye},matchMedia:function(t){return new fg(t)},matchMediaRefresh:function(){return mr.forEach(function(t){var e=t.conditions,n,i;for(i in e)e[i]&&(e[i]=!1,n=1);n&&t.revert()})||$l()},addEventListener:function(t,e){var n=ka[t]||(ka[t]=[]);~n.indexOf(e)||n.push(e)},removeEventListener:function(t,e){var n=ka[t],i=n&&n.indexOf(e);i>=0&&n.splice(i,1)},utils:{wrap:Wm,wrapYoyo:Xm,distribute:Xh,random:Yh,snap:qh,normalize:Gm,getUnit:qe,clamp:zm,splitColor:Qh,toArray:On,selector:Yl,mapRange:Jh,pipe:Vm,unitize:Hm,interpolate:qm,shuffle:Wh},install:Lh,effects:Fl,ticker:vn,updateRoot:Xe.updateRoot,plugins:xn,globalTimeline:be,core:{PropTween:ln,globals:Fh,Tween:Ce,Timeline:Xe,Animation:ta,getCache:ki,_removeLinkedListItem:Za,reverting:function(){return $e},context:function(t){return t&&ye&&(ye.data.push(t),t._ctx=ye),ye},suppressOverwrites:function(t){return Kl=t}}};on("to,from,fromTo,delayedCall,set,killTweensOf",function(r){return Xa[r]=Ce[r]});vn.add(Xe.updateRoot);Kr=Xa.to({},{duration:0});var dg=function(t,e){for(var n=t._pt;n&&n.p!==e&&n.op!==e&&n.fp!==e;)n=n._next;return n},pg=function(t,e){var n=t._targets,i,s,a;for(i in e)for(s=n.length;s--;)a=t._ptLookup[s][i],a&&(a=a.d)&&(a._pt&&(a=dg(a,i)),a&&a.modifier&&a.modifier(e[i],t,n[s],i))},zl=function(t,e){return{name:t,rawVars:1,init:function(i,s,a){a._onInit=function(o){var l,c;if(Ue(s)&&(l={},on(s,function(u){return l[u]=1}),s=l),e){l={};for(c in s)l[c]=e(s[c]);s=l}pg(o,s)}}}},Qe=Xa.registerPlugin({name:"attr",init:function(t,e,n,i,s){var a,o,l;this.tween=n;for(a in e)l=t.getAttribute(a)||"",o=this.add(t,"setAttribute",(l||0)+"",e[a],i,s,0,0,a),o.op=a,o.b=l,this._props.push(a)},render:function(t,e){for(var n=e._pt;n;)$e?n.set(n.t,n.p,n.b,n):n.r(t,n.d),n=n._next}},{name:"endArray",init:function(t,e){for(var n=e.length;n--;)this.add(t,n,t[n]||0,e[n],0,0,0,0,0,1)}},zl("roundProps",Zl),zl("modifiers"),zl("snap",qh))||Xa;Ce.version=Xe.version=Qe.version="3.12.5";Ih=1;Ql()&&es();var mg=ee.Power0,gg=ee.Power1,_g=ee.Power2,xg=ee.Power3,vg=ee.Power4,yg=ee.Linear,Mg=ee.Quad,Sg=ee.Cubic,bg=ee.Quart,Eg=ee.Quint,wg=ee.Strong,Tg=ee.Elastic,Ag=ee.Back,Dg=ee.SteppedEase,Cg=ee.Bounce,Rg=ee.Sine,Pg=ee.Expo,Ig=ee.Circ;var cf,Gi,rs,Mc,br,Lg,uf,Sc,Fg=function(){return typeof window<"u"},yi={},Sr=180/Math.PI,ss=Math.PI/180,is=Math.atan2,hf=1e8,bc=/([A-Z])/g,Ug=/(left|right|width|margin|padding|x)/i,Ng=/[\s,\(]\S/,ci={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},_c=function(t,e){return e.set(e.t,e.p,Math.round((e.s+e.c*t)*1e4)/1e4+e.u,e)},Og=function(t,e){return e.set(e.t,e.p,t===1?e.e:Math.round((e.s+e.c*t)*1e4)/1e4+e.u,e)},Bg=function(t,e){return e.set(e.t,e.p,t?Math.round((e.s+e.c*t)*1e4)/1e4+e.u:e.b,e)},zg=function(t,e){var n=e.s+e.c*t;e.set(e.t,e.p,~~(n+(n<0?-.5:.5))+e.u,e)},xf=function(t,e){return e.set(e.t,e.p,t?e.e:e.b,e)},vf=function(t,e){return e.set(e.t,e.p,t!==1?e.b:e.e,e)},kg=function(t,e,n){return t.style[e]=n},Vg=function(t,e,n){return t.style.setProperty(e,n)},Hg=function(t,e,n){return t._gsap[e]=n},Gg=function(t,e,n){return t._gsap.scaleX=t._gsap.scaleY=n},Wg=function(t,e,n,i,s){var a=t._gsap;a.scaleX=a.scaleY=n,a.renderTransform(s,a)},Xg=function(t,e,n,i,s){var a=t._gsap;a[e]=n,a.renderTransform(s,a)},Ee="transform",Sn=Ee+"Origin",qg=function r(t,e){var n=this,i=this.target,s=i.style,a=i._gsap;if(t in yi&&s){if(this.tfm=this.tfm||{},t!=="transform")t=ci[t]||t,~t.indexOf(",")?t.split(",").forEach(function(o){return n.tfm[o]=vi(i,o)}):this.tfm[t]=a.x?a[t]:vi(i,t),t===Sn&&(this.tfm.zOrigin=a.zOrigin);else return ci.transform.split(",").forEach(function(o){return r.call(n,o,e)});if(this.props.indexOf(Ee)>=0)return;a.svg&&(this.svgo=i.getAttribute("data-svg-origin"),this.props.push(Sn,e,"")),t=Ee}(s||e)&&this.props.push(t,e,s[t])},yf=function(t){t.translate&&(t.removeProperty("translate"),t.removeProperty("scale"),t.removeProperty("rotate"))},Yg=function(){var t=this.props,e=this.target,n=e.style,i=e._gsap,s,a;for(s=0;s<t.length;s+=3)t[s+1]?e[t[s]]=t[s+2]:t[s+2]?n[t[s]]=t[s+2]:n.removeProperty(t[s].substr(0,2)==="--"?t[s]:t[s].replace(bc,"-$1").toLowerCase());if(this.tfm){for(a in this.tfm)i[a]=this.tfm[a];i.svg&&(i.renderTransform(),e.setAttribute("data-svg-origin",this.svgo||"")),s=Sc(),(!s||!s.isStart)&&!n[Ee]&&(yf(n),i.zOrigin&&n[Sn]&&(n[Sn]+=" "+i.zOrigin+"px",i.zOrigin=0,i.renderTransform()),i.uncache=1)}},Mf=function(t,e){var n={target:t,props:[],revert:Yg,save:qg};return t._gsap||Qe.core.getCache(t),e&&e.split(",").forEach(function(i){return n.save(i)}),n},Sf,xc=function(t,e){var n=Gi.createElementNS?Gi.createElementNS((e||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),t):Gi.createElement(t);return n&&n.style?n:Gi.createElement(t)},ui=function r(t,e,n){var i=getComputedStyle(t);return i[e]||i.getPropertyValue(e.replace(bc,"-$1").toLowerCase())||i.getPropertyValue(e)||!n&&r(t,as(e)||e,1)||""},ff="O,Moz,ms,Ms,Webkit".split(","),as=function(t,e,n){var i=e||br,s=i.style,a=5;if(t in s&&!n)return t;for(t=t.charAt(0).toUpperCase()+t.substr(1);a--&&!(ff[a]+t in s););return a<0?null:(a===3?"ms":a>=0?ff[a]:"")+t},vc=function(){Fg()&&window.document&&(cf=window,Gi=cf.document,rs=Gi.documentElement,br=xc("div")||{style:{}},Lg=xc("div"),Ee=as(Ee),Sn=Ee+"Origin",br.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",Sf=!!as("perspective"),Sc=Qe.core.reverting,Mc=1)},mc=function r(t){var e=xc("svg",this.ownerSVGElement&&this.ownerSVGElement.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),n=this.parentNode,i=this.nextSibling,s=this.style.cssText,a;if(rs.appendChild(e),e.appendChild(this),this.style.display="block",t)try{a=this.getBBox(),this._gsapBBox=this.getBBox,this.getBBox=r}catch{}else this._gsapBBox&&(a=this._gsapBBox());return n&&(i?n.insertBefore(this,i):n.appendChild(this)),rs.removeChild(e),this.style.cssText=s,a},df=function(t,e){for(var n=e.length;n--;)if(t.hasAttribute(e[n]))return t.getAttribute(e[n])},bf=function(t){var e;try{e=t.getBBox()}catch{e=mc.call(t,!0)}return e&&(e.width||e.height)||t.getBBox===mc||(e=mc.call(t,!0)),e&&!e.width&&!e.x&&!e.y?{x:+df(t,["x","cx","x1"])||0,y:+df(t,["y","cy","y1"])||0,width:0,height:0}:e},Ef=function(t){return!!(t.getCTM&&(!t.parentNode||t.ownerSVGElement)&&bf(t))},Er=function(t,e){if(e){var n=t.style,i;e in yi&&e!==Sn&&(e=Ee),n.removeProperty?(i=e.substr(0,2),(i==="ms"||e.substr(0,6)==="webkit")&&(e="-"+e),n.removeProperty(i==="--"?e:e.replace(bc,"-$1").toLowerCase())):n.removeAttribute(e)}},Wi=function(t,e,n,i,s,a){var o=new ln(t._pt,e,n,0,1,a?vf:xf);return t._pt=o,o.b=i,o.e=s,t._props.push(n),o},pf={deg:1,rad:1,turn:1},Zg={grid:1,flex:1},Xi=function r(t,e,n,i){var s=parseFloat(n)||0,a=(n+"").trim().substr((s+"").length)||"px",o=br.style,l=Ug.test(e),c=t.tagName.toLowerCase()==="svg",u=(c?"client":"offset")+(l?"Width":"Height"),f=100,h=i==="px",d=i==="%",_,g,p,m;if(i===a||!s||pf[i]||pf[a])return s;if(a!=="px"&&!h&&(s=r(t,e,n,"px")),m=t.getCTM&&Ef(t),(d||a==="%")&&(yi[e]||~e.indexOf("adius")))return _=m?t.getBBox()[l?"width":"height"]:t[u],Ae(d?s/_*f:s/100*_);if(o[l?"width":"height"]=f+(h?a:i),g=~e.indexOf("adius")||i==="em"&&t.appendChild&&!c?t:t.parentNode,m&&(g=(t.ownerSVGElement||{}).parentNode),(!g||g===Gi||!g.appendChild)&&(g=Gi.body),p=g._gsap,p&&d&&p.width&&l&&p.time===vn.time&&!p.uncache)return Ae(s/p.width*f);if(d&&(e==="height"||e==="width")){var S=t.style[e];t.style[e]=f+i,_=t[u],S?t.style[e]=S:Er(t,e)}else(d||a==="%")&&!Zg[ui(g,"display")]&&(o.position=ui(t,"position")),g===t&&(o.position="static"),g.appendChild(br),_=br[u],g.removeChild(br),o.position="absolute";return l&&d&&(p=ki(g),p.time=vn.time,p.width=g[u]),Ae(h?_*s/f:_&&s?f/_*s:0)},vi=function(t,e,n,i){var s;return Mc||vc(),e in ci&&e!=="transform"&&(e=ci[e],~e.indexOf(",")&&(e=e.split(",")[0])),yi[e]&&e!=="transform"?(s=ra(t,i),s=e!=="transformOrigin"?s[e]:s.svg?s.origin:ja(ui(t,Sn))+" "+s.zOrigin+"px"):(s=t.style[e],(!s||s==="auto"||i||~(s+"").indexOf("calc("))&&(s=Qa[e]&&Qa[e](t,e,n)||ui(t,e)||sc(t,e)||(e==="opacity"?1:0))),n&&!~(s+"").trim().indexOf(" ")?Xi(t,e,s,n)+n:s},Jg=function(t,e,n,i){if(!n||n==="none"){var s=as(e,t,1),a=s&&ui(t,s,1);a&&a!==n?(e=s,n=a):e==="borderColor"&&(n=ui(t,"borderTopColor"))}var o=new ln(this._pt,t.style,e,0,1,fc),l=0,c=0,u,f,h,d,_,g,p,m,S,v,M,D;if(o.b=n,o.e=i,n+="",i+="",i==="auto"&&(g=t.style[e],t.style[e]=i,i=ui(t,e)||i,g?t.style[e]=g:Er(t,e)),u=[n,i],ac(u),n=u[0],i=u[1],h=n.match(_r)||[],D=i.match(_r)||[],D.length){for(;f=_r.exec(i);)p=f[0],S=i.substring(l,f.index),_?_=(_+1)%5:(S.substr(-5)==="rgba("||S.substr(-5)==="hsla(")&&(_=1),p!==(g=h[c++]||"")&&(d=parseFloat(g)||0,M=g.substr((d+"").length),p.charAt(1)==="="&&(p=xr(d,p)+M),m=parseFloat(p),v=p.substr((m+"").length),l=_r.lastIndex-v.length,v||(v=v||Mn.units[e]||M,l===i.length&&(i+=v,o.e+=v)),M!==v&&(d=Xi(t,e,g,v)||0),o._pt={_next:o._pt,p:S||c===1?S:",",s:d,c:m-d,m:_&&_<4||e==="zIndex"?Math.round:0});o.c=l<i.length?i.substring(l,i.length):""}else o.r=e==="display"&&i==="none"?vf:xf;return tc.test(i)&&(o.e=0),this._pt=o,o},mf={top:"0%",bottom:"100%",left:"0%",right:"100%",center:"50%"},$g=function(t){var e=t.split(" "),n=e[0],i=e[1]||"50%";return(n==="top"||n==="bottom"||i==="left"||i==="right")&&(t=n,n=i,i=t),e[0]=mf[n]||n,e[1]=mf[i]||i,e.join(" ")},Kg=function(t,e){if(e.tween&&e.tween._time===e.tween._dur){var n=e.t,i=n.style,s=e.u,a=n._gsap,o,l,c;if(s==="all"||s===!0)i.cssText="",l=1;else for(s=s.split(","),c=s.length;--c>-1;)o=s[c],yi[o]&&(l=1,o=o==="transformOrigin"?Sn:Ee),Er(n,o);l&&(Er(n,Ee),a&&(a.svg&&n.removeAttribute("transform"),ra(n,1),a.uncache=1,yf(i)))}},Qa={clearProps:function(t,e,n,i,s){if(s.data!=="isFromStart"){var a=t._pt=new ln(t._pt,e,n,0,0,Kg);return a.u=i,a.pr=-10,a.tween=s,t._props.push(n),1}}},ia=[1,0,0,1,0,0],wf={},Tf=function(t){return t==="matrix(1, 0, 0, 1, 0, 0)"||t==="none"||!t},gf=function(t){var e=ui(t,Ee);return Tf(e)?ia:e.substr(7).match(jl).map(Ae)},Ec=function(t,e){var n=t._gsap||ki(t),i=t.style,s=gf(t),a,o,l,c;return n.svg&&t.getAttribute("transform")?(l=t.transform.baseVal.consolidate().matrix,s=[l.a,l.b,l.c,l.d,l.e,l.f],s.join(",")==="1,0,0,1,0,0"?ia:s):(s===ia&&!t.offsetParent&&t!==rs&&!n.svg&&(l=i.display,i.display="block",a=t.parentNode,(!a||!t.offsetParent)&&(c=1,o=t.nextElementSibling,rs.appendChild(t)),s=gf(t),l?i.display=l:Er(t,"display"),c&&(o?a.insertBefore(t,o):a?a.appendChild(t):rs.removeChild(t))),e&&s.length>6?[s[0],s[1],s[4],s[5],s[12],s[13]]:s)},yc=function(t,e,n,i,s,a){var o=t._gsap,l=s||Ec(t,!0),c=o.xOrigin||0,u=o.yOrigin||0,f=o.xOffset||0,h=o.yOffset||0,d=l[0],_=l[1],g=l[2],p=l[3],m=l[4],S=l[5],v=e.split(" "),M=parseFloat(v[0])||0,D=parseFloat(v[1])||0,T,w,P,y;n?l!==ia&&(w=d*p-_*g)&&(P=M*(p/w)+D*(-g/w)+(g*S-p*m)/w,y=M*(-_/w)+D*(d/w)-(d*S-_*m)/w,M=P,D=y):(T=bf(t),M=T.x+(~v[0].indexOf("%")?M/100*T.width:M),D=T.y+(~(v[1]||v[0]).indexOf("%")?D/100*T.height:D)),i||i!==!1&&o.smooth?(m=M-c,S=D-u,o.xOffset=f+(m*d+S*g)-m,o.yOffset=h+(m*_+S*p)-S):o.xOffset=o.yOffset=0,o.xOrigin=M,o.yOrigin=D,o.smooth=!!i,o.origin=e,o.originIsAbsolute=!!n,t.style[Sn]="0px 0px",a&&(Wi(a,o,"xOrigin",c,M),Wi(a,o,"yOrigin",u,D),Wi(a,o,"xOffset",f,o.xOffset),Wi(a,o,"yOffset",h,o.yOffset)),t.setAttribute("data-svg-origin",M+" "+D)},ra=function(t,e){var n=t._gsap||new oc(t);if("x"in n&&!e&&!n.uncache)return n;var i=t.style,s=n.scaleX<0,a="px",o="deg",l=getComputedStyle(t),c=ui(t,Sn)||"0",u,f,h,d,_,g,p,m,S,v,M,D,T,w,P,y,x,F,I,R,B,G,Z,J,N,Q,A,at,bt,Zt,X,tt;return u=f=h=g=p=m=S=v=M=0,d=_=1,n.svg=!!(t.getCTM&&Ef(t)),l.translate&&((l.translate!=="none"||l.scale!=="none"||l.rotate!=="none")&&(i[Ee]=(l.translate!=="none"?"translate3d("+(l.translate+" 0 0").split(" ").slice(0,3).join(", ")+") ":"")+(l.rotate!=="none"?"rotate("+l.rotate+") ":"")+(l.scale!=="none"?"scale("+l.scale.split(" ").join(",")+") ":"")+(l[Ee]!=="none"?l[Ee]:"")),i.scale=i.rotate=i.translate="none"),w=Ec(t,n.svg),n.svg&&(n.uncache?(N=t.getBBox(),c=n.xOrigin-N.x+"px "+(n.yOrigin-N.y)+"px",J=""):J=!e&&t.getAttribute("data-svg-origin"),yc(t,J||c,!!J||n.originIsAbsolute,n.smooth!==!1,w)),D=n.xOrigin||0,T=n.yOrigin||0,w!==ia&&(F=w[0],I=w[1],R=w[2],B=w[3],u=G=w[4],f=Z=w[5],w.length===6?(d=Math.sqrt(F*F+I*I),_=Math.sqrt(B*B+R*R),g=F||I?is(I,F)*Sr:0,S=R||B?is(R,B)*Sr+g:0,S&&(_*=Math.abs(Math.cos(S*ss))),n.svg&&(u-=D-(D*F+T*R),f-=T-(D*I+T*B))):(tt=w[6],Zt=w[7],A=w[8],at=w[9],bt=w[10],X=w[11],u=w[12],f=w[13],h=w[14],P=is(tt,bt),p=P*Sr,P&&(y=Math.cos(-P),x=Math.sin(-P),J=G*y+A*x,N=Z*y+at*x,Q=tt*y+bt*x,A=G*-x+A*y,at=Z*-x+at*y,bt=tt*-x+bt*y,X=Zt*-x+X*y,G=J,Z=N,tt=Q),P=is(-R,bt),m=P*Sr,P&&(y=Math.cos(-P),x=Math.sin(-P),J=F*y-A*x,N=I*y-at*x,Q=R*y-bt*x,X=B*x+X*y,F=J,I=N,R=Q),P=is(I,F),g=P*Sr,P&&(y=Math.cos(P),x=Math.sin(P),J=F*y+I*x,N=G*y+Z*x,I=I*y-F*x,Z=Z*y-G*x,F=J,G=N),p&&Math.abs(p)+Math.abs(g)>359.9&&(p=g=0,m=180-m),d=Ae(Math.sqrt(F*F+I*I+R*R)),_=Ae(Math.sqrt(Z*Z+tt*tt)),P=is(G,Z),S=Math.abs(P)>2e-4?P*Sr:0,M=X?1/(X<0?-X:X):0),n.svg&&(J=t.getAttribute("transform"),n.forceCSS=t.setAttribute("transform","")||!Tf(ui(t,Ee)),J&&t.setAttribute("transform",J))),Math.abs(S)>90&&Math.abs(S)<270&&(s?(d*=-1,S+=g<=0?180:-180,g+=g<=0?180:-180):(_*=-1,S+=S<=0?180:-180)),e=e||n.uncache,n.x=u-((n.xPercent=u&&(!e&&n.xPercent||(Math.round(t.offsetWidth/2)===Math.round(-u)?-50:0)))?t.offsetWidth*n.xPercent/100:0)+a,n.y=f-((n.yPercent=f&&(!e&&n.yPercent||(Math.round(t.offsetHeight/2)===Math.round(-f)?-50:0)))?t.offsetHeight*n.yPercent/100:0)+a,n.z=h+a,n.scaleX=Ae(d),n.scaleY=Ae(_),n.rotation=Ae(g)+o,n.rotationX=Ae(p)+o,n.rotationY=Ae(m)+o,n.skewX=S+o,n.skewY=v+o,n.transformPerspective=M+a,(n.zOrigin=parseFloat(c.split(" ")[2])||!e&&n.zOrigin||0)&&(i[Sn]=ja(c)),n.xOffset=n.yOffset=0,n.force3D=Mn.force3D,n.renderTransform=n.svg?jg:Sf?Af:Qg,n.uncache=0,n},ja=function(t){return(t=t.split(" "))[0]+" "+t[1]},gc=function(t,e,n){var i=qe(e);return Ae(parseFloat(e)+parseFloat(Xi(t,"x",n+"px",i)))+i},Qg=function(t,e){e.z="0px",e.rotationY=e.rotationX="0deg",e.force3D=0,Af(t,e)},yr="0deg",na="0px",Mr=") ",Af=function(t,e){var n=e||this,i=n.xPercent,s=n.yPercent,a=n.x,o=n.y,l=n.z,c=n.rotation,u=n.rotationY,f=n.rotationX,h=n.skewX,d=n.skewY,_=n.scaleX,g=n.scaleY,p=n.transformPerspective,m=n.force3D,S=n.target,v=n.zOrigin,M="",D=m==="auto"&&t&&t!==1||m===!0;if(v&&(f!==yr||u!==yr)){var T=parseFloat(u)*ss,w=Math.sin(T),P=Math.cos(T),y;T=parseFloat(f)*ss,y=Math.cos(T),a=gc(S,a,w*y*-v),o=gc(S,o,-Math.sin(T)*-v),l=gc(S,l,P*y*-v+v)}p!==na&&(M+="perspective("+p+Mr),(i||s)&&(M+="translate("+i+"%, "+s+"%) "),(D||a!==na||o!==na||l!==na)&&(M+=l!==na||D?"translate3d("+a+", "+o+", "+l+") ":"translate("+a+", "+o+Mr),c!==yr&&(M+="rotate("+c+Mr),u!==yr&&(M+="rotateY("+u+Mr),f!==yr&&(M+="rotateX("+f+Mr),(h!==yr||d!==yr)&&(M+="skew("+h+", "+d+Mr),(_!==1||g!==1)&&(M+="scale("+_+", "+g+Mr),S.style[Ee]=M||"translate(0, 0)"},jg=function(t,e){var n=e||this,i=n.xPercent,s=n.yPercent,a=n.x,o=n.y,l=n.rotation,c=n.skewX,u=n.skewY,f=n.scaleX,h=n.scaleY,d=n.target,_=n.xOrigin,g=n.yOrigin,p=n.xOffset,m=n.yOffset,S=n.forceCSS,v=parseFloat(a),M=parseFloat(o),D,T,w,P,y;l=parseFloat(l),c=parseFloat(c),u=parseFloat(u),u&&(u=parseFloat(u),c+=u,l+=u),l||c?(l*=ss,c*=ss,D=Math.cos(l)*f,T=Math.sin(l)*f,w=Math.sin(l-c)*-h,P=Math.cos(l-c)*h,c&&(u*=ss,y=Math.tan(c-u),y=Math.sqrt(1+y*y),w*=y,P*=y,u&&(y=Math.tan(u),y=Math.sqrt(1+y*y),D*=y,T*=y)),D=Ae(D),T=Ae(T),w=Ae(w),P=Ae(P)):(D=f,P=h,T=w=0),(v&&!~(a+"").indexOf("px")||M&&!~(o+"").indexOf("px"))&&(v=Xi(d,"x",a,"px"),M=Xi(d,"y",o,"px")),(_||g||p||m)&&(v=Ae(v+_-(_*D+g*w)+p),M=Ae(M+g-(_*T+g*P)+m)),(i||s)&&(y=d.getBBox(),v=Ae(v+i/100*y.width),M=Ae(M+s/100*y.height)),y="matrix("+D+","+T+","+w+","+P+","+v+","+M+")",d.setAttribute("transform",y),S&&(d.style[Ee]=y)},t_=function(t,e,n,i,s){var a=360,o=Ue(s),l=parseFloat(s)*(o&&~s.indexOf("rad")?Sr:1),c=l-i,u=i+c+"deg",f,h;return o&&(f=s.split("_")[1],f==="short"&&(c%=a,c!==c%(a/2)&&(c+=c<0?a:-a)),f==="cw"&&c<0?c=(c+a*hf)%a-~~(c/a)*a:f==="ccw"&&c>0&&(c=(c-a*hf)%a-~~(c/a)*a)),t._pt=h=new ln(t._pt,e,n,i,c,Og),h.e=u,h.u="deg",t._props.push(n),h},_f=function(t,e){for(var n in e)t[n]=e[n];return t},e_=function(t,e,n){var i=_f({},n._gsap),s="perspective,force3D,transformOrigin,svgOrigin",a=n.style,o,l,c,u,f,h,d,_;i.svg?(c=n.getAttribute("transform"),n.setAttribute("transform",""),a[Ee]=e,o=ra(n,1),Er(n,Ee),n.setAttribute("transform",c)):(c=getComputedStyle(n)[Ee],a[Ee]=e,o=ra(n,1),a[Ee]=c);for(l in yi)c=i[l],u=o[l],c!==u&&s.indexOf(l)<0&&(d=qe(c),_=qe(u),f=d!==_?Xi(n,l,c,_):parseFloat(c),h=parseFloat(u),t._pt=new ln(t._pt,o,l,f,h-f,_c),t._pt.u=_||0,t._props.push(l));_f(o,i)};on("padding,margin,Width,Radius",function(r,t){var e="Top",n="Right",i="Bottom",s="Left",a=(t<3?[e,n,i,s]:[e+s,e+n,i+n,i+s]).map(function(o){return t<2?r+o:"border"+o+r});Qa[t>1?"border"+r:r]=function(o,l,c,u,f){var h,d;if(arguments.length<4)return h=a.map(function(_){return vi(o,_,c)}),d=h.join(" "),d.split(h[0]).length===5?h[0]:d;h=(u+"").split(" "),d={},a.forEach(function(_,g){return d[_]=h[g]=h[g]||h[(g-1)/2|0]}),o.init(l,d,f)}});var wc={name:"css",register:vc,targetTest:function(t){return t.style&&t.nodeType},init:function(t,e,n,i,s){var a=this._props,o=t.style,l=n.vars.startAt,c,u,f,h,d,_,g,p,m,S,v,M,D,T,w,P;Mc||vc(),this.styles=this.styles||Mf(t),P=this.styles.props,this.tween=n;for(g in e)if(g!=="autoRound"&&(u=e[g],!(xn[g]&&cc(g,e,n,i,t,s)))){if(d=typeof u,_=Qa[g],d==="function"&&(u=u.call(n,i,t,s),d=typeof u),d==="string"&&~u.indexOf("random(")&&(u=ns(u)),_)_(this,t,g,u,n)&&(w=1);else if(g.substr(0,2)==="--")c=(getComputedStyle(t).getPropertyValue(g)+"").trim(),u+="",_i.lastIndex=0,_i.test(c)||(p=qe(c),m=qe(u)),m?p!==m&&(c=Xi(t,g,c,m)+m):p&&(u+=p),this.add(o,"setProperty",c,u,i,s,0,0,g),a.push(g),P.push(g,0,o[g]);else if(d!=="undefined"){if(l&&g in l?(c=typeof l[g]=="function"?l[g].call(n,i,t,s):l[g],Ue(c)&&~c.indexOf("random(")&&(c=ns(c)),qe(c+"")||c==="auto"||(c+=Mn.units[g]||qe(vi(t,g))||""),(c+"").charAt(1)==="="&&(c=vi(t,g))):c=vi(t,g),h=parseFloat(c),S=d==="string"&&u.charAt(1)==="="&&u.substr(0,2),S&&(u=u.substr(2)),f=parseFloat(u),g in ci&&(g==="autoAlpha"&&(h===1&&vi(t,"visibility")==="hidden"&&f&&(h=0),P.push("visibility",0,o.visibility),Wi(this,o,"visibility",h?"inherit":"hidden",f?"inherit":"hidden",!f)),g!=="scale"&&g!=="transform"&&(g=ci[g],~g.indexOf(",")&&(g=g.split(",")[0]))),v=g in yi,v){if(this.styles.save(g),M||(D=t._gsap,D.renderTransform&&!e.parseTransform||ra(t,e.parseTransform),T=e.smoothOrigin!==!1&&D.smooth,M=this._pt=new ln(this._pt,o,Ee,0,1,D.renderTransform,D,0,-1),M.dep=1),g==="scale")this._pt=new ln(this._pt,D,"scaleY",D.scaleY,(S?xr(D.scaleY,S+f):f)-D.scaleY||0,_c),this._pt.u=0,a.push("scaleY",g),g+="X";else if(g==="transformOrigin"){P.push(Sn,0,o[Sn]),u=$g(u),D.svg?yc(t,u,0,T,0,this):(m=parseFloat(u.split(" ")[2])||0,m!==D.zOrigin&&Wi(this,D,"zOrigin",D.zOrigin,m),Wi(this,o,g,ja(c),ja(u)));continue}else if(g==="svgOrigin"){yc(t,u,1,T,0,this);continue}else if(g in wf){t_(this,D,g,h,S?xr(h,S+u):u);continue}else if(g==="smoothOrigin"){Wi(this,D,"smooth",D.smooth,u);continue}else if(g==="force3D"){D[g]=u;continue}else if(g==="transform"){e_(this,u,t);continue}}else g in o||(g=as(g)||g);if(v||(f||f===0)&&(h||h===0)&&!Ng.test(u)&&g in o)p=(c+"").substr((h+"").length),f||(f=0),m=qe(u)||(g in Mn.units?Mn.units[g]:p),p!==m&&(h=Xi(t,g,c,m)),this._pt=new ln(this._pt,v?D:o,g,h,(S?xr(h,S+f):f)-h,!v&&(m==="px"||g==="zIndex")&&e.autoRound!==!1?zg:_c),this._pt.u=m||0,p!==m&&m!=="%"&&(this._pt.b=c,this._pt.r=Bg);else if(g in o)Jg.call(this,t,g,c,S?S+u:u);else if(g in t)this.add(t,g,c||t[g],S?S+u:u,i,s);else if(g!=="parseTransform"){Ya(g,u);continue}v||(g in o?P.push(g,0,o[g]):P.push(g,1,c||t[g])),a.push(g)}}w&&pc(this)},render:function(t,e){if(e.tween._time||!Sc())for(var n=e._pt;n;)n.r(t,n.d),n=n._next;else e.styles.revert()},get:vi,aliases:ci,getSetter:function(t,e,n){var i=ci[e];return i&&i.indexOf(",")<0&&(e=i),e in yi&&e!==Sn&&(t._gsap.x||vi(t,"x"))?n&&uf===n?e==="scale"?Gg:Hg:(uf=n||{})&&(e==="scale"?Wg:Xg):t.style&&!qa(t.style[e])?kg:~e.indexOf("-")?Vg:Ka(t,e)},core:{_removeProperty:Er,_getMatrix:Ec}};Qe.utils.checkPrefix=as;Qe.core.getStyleSaver=Mf;(function(r,t,e,n){var i=on(r+","+t+","+e,function(s){yi[s]=1});on(t,function(s){Mn.units[s]="deg",wf[s]=1}),ci[i[13]]=r+","+t,on(n,function(s){var a=s.split(":");ci[a[1]]=i[a[0]]})})("x,y,z,scale,scaleX,scaleY,xPercent,yPercent","rotation,rotationX,rotationY,skewX,skewY","transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective","0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY");on("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",function(r){Mn.units[r]="px"});Qe.registerPlugin(wc);var bn=Qe.registerPlugin(wc)||Qe,qS=bn.core.Tween;var Df=()=>{document.querySelectorAll(".client-list_wrapper").forEach(r=>{let t=r.querySelector(".client-list_wrap");if(!t)return;let e=Array.from(t.children),n=t.scrollWidth;e.forEach(i=>{let s=i.cloneNode(!0);s.style.width=`${i.offsetWidth}px`,t.appendChild(s)}),t.style.width=`${n*2}px`,bn.fromTo(t,{x:0},{x:-n,duration:60,ease:"linear",repeat:-1,force3D:!0})})};var Cf=()=>{let r=document.querySelectorAll("[data-contact-popup-toggler]"),t=document.querySelector("[data-contact-popup]");var e=0;if(!r||!t)return;let n=t.querySelector("[data-contact-popup-close]");if(!n)return;let i=t.querySelector(".contact-popup_box");if(!i)return;let s=(a,o)=>{let l=document.createElement("script"),c=document.getElementsByTagName("script")[0];l.async=1,l.onload=l.onreadystatechange=(u,f)=>{(f||!l.readyState||/loaded|complete/.test(l.readyState))&&(l.onload=l.onreadystatechange=null,l=void 0,f||o&&o())},l.src=a,c.parentNode.insertBefore(l,c)};r.forEach(a=>{a.addEventListener("click",o=>{o.preventDefault,e?(t.classList.add("-open"),document.body.classList.add("-popup-open")):s("https://embed.typeform.com/next/embed.js",()=>{e=1,t.classList.add("-open"),document.body.classList.add("-popup-open")})})}),n.addEventListener("click",a=>{a.preventDefault,t.classList.remove("-open"),document.body.classList.remove("-popup-open")}),t.addEventListener("click",a=>{i.contains(a.target)||(t.classList.remove("-open"),document.body.classList.remove("-popup-open"))}),new URL(document.location).searchParams.has("invicible")&&setTimeout(()=>{s("https://embed.typeform.com/next/embed.js",()=>{e=1,setTimeout(()=>{t.classList.add("-open"),document.body.classList.add("-popup-open")},200)})},2e3)};var Rf=()=>{let r=document.querySelector(".is-section-loader");if(!r)return;let t=r.querySelector(".loader_line"),e=r.querySelector(".loader_value");!t||!e||bn.to(t,{width:"100%",duration:1.5,onUpdate:function(){let n=Math.round(this.progress()*100);e.innerHTML=`${n}%`},onComplete:function(){bn.to(r,{y:"-100dvh",duration:.75})}},"<")};function Pf(r,t){for(var e=0;e<t.length;e++){var n=t[e];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(r,n.key,n)}}function n_(r,t,e){return t&&Pf(r.prototype,t),e&&Pf(r,e),r}var Ye,no,i_,Cn,qi,Yi,ls,Lf,wr,aa,Ff,Mi,Jn,Uf,Nf=function(){return Ye||typeof window<"u"&&(Ye=window.gsap)&&Ye.registerPlugin&&Ye},Of=1,os=[],$t=[],$n=[],oa=Date.now,Tc=function(t,e){return e},r_=function(){var t=aa.core,e=t.bridge||{},n=t._scrollers,i=t._proxies;n.push.apply(n,$t),i.push.apply(i,$n),$t=n,$n=i,Tc=function(a,o){return e[a](o)}},bi=function(t,e){return~$n.indexOf(t)&&$n[$n.indexOf(t)+1][e]},la=function(t){return!!~Ff.indexOf(t)},un=function(t,e,n,i,s){return t.addEventListener(e,n,{passive:i!==!1,capture:!!s})},cn=function(t,e,n,i){return t.removeEventListener(e,n,!!i)},to="scrollLeft",eo="scrollTop",Ac=function(){return Mi&&Mi.isPressed||$t.cache++},io=function(t,e){var n=function i(s){if(s||s===0){Of&&(Cn.history.scrollRestoration="manual");var a=Mi&&Mi.isPressed;s=i.v=Math.round(s)||(Mi&&Mi.iOS?1:0),t(s),i.cacheID=$t.cache,a&&Tc("ss",s)}else(e||$t.cache!==i.cacheID||Tc("ref"))&&(i.cacheID=$t.cache,i.v=t());return i.v+i.offset};return n.offset=0,t&&n},je={s:to,p:"left",p2:"Left",os:"right",os2:"Right",d:"width",d2:"Width",a:"x",sc:io(function(r){return arguments.length?Cn.scrollTo(r,Ie.sc()):Cn.pageXOffset||qi[to]||Yi[to]||ls[to]||0})},Ie={s:eo,p:"top",p2:"Top",os:"bottom",os2:"Bottom",d:"height",d2:"Height",a:"y",op:je,sc:io(function(r){return arguments.length?Cn.scrollTo(je.sc(),r):Cn.pageYOffset||qi[eo]||Yi[eo]||ls[eo]||0})},hn=function(t,e){return(e&&e._ctx&&e._ctx.selector||Ye.utils.toArray)(t)[0]||(typeof t=="string"&&Ye.config().nullTargetWarn!==!1?console.warn("Element not found:",t):null)},Si=function(t,e){var n=e.s,i=e.sc;la(t)&&(t=qi.scrollingElement||Yi);var s=$t.indexOf(t),a=i===Ie.sc?1:2;!~s&&(s=$t.push(t)-1),$t[s+a]||un(t,"scroll",Ac);var o=$t[s+a],l=o||($t[s+a]=io(bi(t,n),!0)||(la(t)?i:io(function(c){return arguments.length?t[n]=c:t[n]})));return l.target=t,o||(l.smooth=Ye.getProperty(t,"scrollBehavior")==="smooth"),l},ro=function(t,e,n){var i=t,s=t,a=oa(),o=a,l=e||50,c=Math.max(500,l*3),u=function(_,g){var p=oa();g||p-a>l?(s=i,i=_,o=a,a=p):n?i+=_:i=s+(_-s)/(p-o)*(a-o)},f=function(){s=i=n?0:i,o=a=0},h=function(_){var g=o,p=s,m=oa();return(_||_===0)&&_!==i&&u(_),a===o||m-o>c?0:(i+(n?p:-p))/((n?m:a)-g)*1e3};return{update:u,reset:f,getVelocity:h}},sa=function(t,e){return e&&!t._gsapAllow&&t.preventDefault(),t.changedTouches?t.changedTouches[0]:t},If=function(t){var e=Math.max.apply(Math,t),n=Math.min.apply(Math,t);return Math.abs(e)>=Math.abs(n)?e:n},Bf=function(){aa=Ye.core.globals().ScrollTrigger,aa&&aa.core&&r_()},zf=function(t){return Ye=t||Nf(),!no&&Ye&&typeof document<"u"&&document.body&&(Cn=window,qi=document,Yi=qi.documentElement,ls=qi.body,Ff=[Cn,qi,Yi,ls],i_=Ye.utils.clamp,Uf=Ye.core.context||function(){},wr="onpointerenter"in ls?"pointer":"mouse",Lf=De.isTouch=Cn.matchMedia&&Cn.matchMedia("(hover: none), (pointer: coarse)").matches?1:"ontouchstart"in Cn||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0?2:0,Jn=De.eventTypes=("ontouchstart"in Yi?"touchstart,touchmove,touchcancel,touchend":"onpointerdown"in Yi?"pointerdown,pointermove,pointercancel,pointerup":"mousedown,mousemove,mouseup,mouseup").split(","),setTimeout(function(){return Of=0},500),Bf(),no=1),no};je.op=Ie;$t.cache=0;var De=function(){function r(e){this.init(e)}var t=r.prototype;return t.init=function(n){no||zf(Ye)||console.warn("Please gsap.registerPlugin(Observer)"),aa||Bf();var i=n.tolerance,s=n.dragMinimum,a=n.type,o=n.target,l=n.lineHeight,c=n.debounce,u=n.preventDefault,f=n.onStop,h=n.onStopDelay,d=n.ignore,_=n.wheelSpeed,g=n.event,p=n.onDragStart,m=n.onDragEnd,S=n.onDrag,v=n.onPress,M=n.onRelease,D=n.onRight,T=n.onLeft,w=n.onUp,P=n.onDown,y=n.onChangeX,x=n.onChangeY,F=n.onChange,I=n.onToggleX,R=n.onToggleY,B=n.onHover,G=n.onHoverEnd,Z=n.onMove,J=n.ignoreCheck,N=n.isNormalizer,Q=n.onGestureStart,A=n.onGestureEnd,at=n.onWheel,bt=n.onEnable,Zt=n.onDisable,X=n.onClick,tt=n.scrollSpeed,ft=n.capture,nt=n.allowClicks,It=n.lockAxis,Rt=n.onLockAxis;this.target=o=hn(o)||Yi,this.vars=n,d&&(d=Ye.utils.toArray(d)),i=i||1e-9,s=s||0,_=_||1,tt=tt||1,a=a||"wheel,touch,pointer",c=c!==!1,l||(l=parseFloat(Cn.getComputedStyle(ls).lineHeight)||22);var O,Gt,St,Et,_t,Ft,Pt,z=this,jt=0,C=0,b=n.passive||!u,W=Si(o,je),K=Si(o,Ie),j=W(),et=K(),mt=~a.indexOf("touch")&&!~a.indexOf("pointer")&&Jn[0]==="pointerdown",lt=la(o),it=o.ownerDocument||qi,Lt=[0,0,0],rt=[0,0,0],Mt=0,Yt=function(){return Mt=oa()},gt=function(vt,ie){return(z.event=vt)&&d&&~d.indexOf(vt.target)||ie&&mt&&vt.pointerType!=="touch"||J&&J(vt,ie)},xt=function(){z._vx.reset(),z._vy.reset(),Gt.pause(),f&&f(z)},Ut=function(){var vt=z.deltaX=If(Lt),ie=z.deltaY=If(rt),ut=Math.abs(vt)>=i,kt=Math.abs(ie)>=i;F&&(ut||kt)&&F(z,vt,ie,Lt,rt),ut&&(D&&z.deltaX>0&&D(z),T&&z.deltaX<0&&T(z),y&&y(z),I&&z.deltaX<0!=jt<0&&I(z),jt=z.deltaX,Lt[0]=Lt[1]=Lt[2]=0),kt&&(P&&z.deltaY>0&&P(z),w&&z.deltaY<0&&w(z),x&&x(z),R&&z.deltaY<0!=C<0&&R(z),C=z.deltaY,rt[0]=rt[1]=rt[2]=0),(Et||St)&&(Z&&Z(z),St&&(S(z),St=!1),Et=!1),Ft&&!(Ft=!1)&&Rt&&Rt(z),_t&&(at(z),_t=!1),O=0},Ht=function(vt,ie,ut){Lt[ut]+=vt,rt[ut]+=ie,z._vx.update(vt),z._vy.update(ie),c?O||(O=requestAnimationFrame(Ut)):Ut()},ue=function(vt,ie){It&&!Pt&&(z.axis=Pt=Math.abs(vt)>Math.abs(ie)?"x":"y",Ft=!0),Pt!=="y"&&(Lt[2]+=vt,z._vx.update(vt,!0)),Pt!=="x"&&(rt[2]+=ie,z._vy.update(ie,!0)),c?O||(O=requestAnimationFrame(Ut)):Ut()},Nt=function(vt){if(!gt(vt,1)){vt=sa(vt,u);var ie=vt.clientX,ut=vt.clientY,kt=ie-z.x,At=ut-z.y,zt=z.isDragging;z.x=ie,z.y=ut,(zt||Math.abs(z.startX-ie)>=s||Math.abs(z.startY-ut)>=s)&&(S&&(St=!0),zt||(z.isDragging=!0),ue(kt,At),zt||p&&p(z))}},L=z.onPress=function(Ct){gt(Ct,1)||Ct&&Ct.button||(z.axis=Pt=null,Gt.pause(),z.isPressed=!0,Ct=sa(Ct),jt=C=0,z.startX=z.x=Ct.clientX,z.startY=z.y=Ct.clientY,z._vx.reset(),z._vy.reset(),un(N?o:it,Jn[1],Nt,b,!0),z.deltaX=z.deltaY=0,v&&v(z))},Y=z.onRelease=function(Ct){if(!gt(Ct,1)){cn(N?o:it,Jn[1],Nt,!0);var vt=!isNaN(z.y-z.startY),ie=z.isDragging,ut=ie&&(Math.abs(z.x-z.startX)>3||Math.abs(z.y-z.startY)>3),kt=sa(Ct);!ut&&vt&&(z._vx.reset(),z._vy.reset(),u&&nt&&Ye.delayedCall(.08,function(){if(oa()-Mt>300&&!Ct.defaultPrevented){if(Ct.target.click)Ct.target.click();else if(it.createEvent){var At=it.createEvent("MouseEvents");At.initMouseEvent("click",!0,!0,Cn,1,kt.screenX,kt.screenY,kt.clientX,kt.clientY,!1,!1,!1,!1,0,null),Ct.target.dispatchEvent(At)}}})),z.isDragging=z.isGesturing=z.isPressed=!1,f&&ie&&!N&&Gt.restart(!0),m&&ie&&m(z),M&&M(z,ut)}},$=function(vt){return vt.touches&&vt.touches.length>1&&(z.isGesturing=!0)&&Q(vt,z.isDragging)},ot=function(){return(z.isGesturing=!1)||A(z)},ct=function(vt){if(!gt(vt)){var ie=W(),ut=K();Ht((ie-j)*tt,(ut-et)*tt,1),j=ie,et=ut,f&&Gt.restart(!0)}},Vt=function(vt){if(!gt(vt)){vt=sa(vt,u),at&&(_t=!0);var ie=(vt.deltaMode===1?l:vt.deltaMode===2?Cn.innerHeight:1)*_;Ht(vt.deltaX*ie,vt.deltaY*ie,0),f&&!N&&Gt.restart(!0)}},se=function(vt){if(!gt(vt)){var ie=vt.clientX,ut=vt.clientY,kt=ie-z.x,At=ut-z.y;z.x=ie,z.y=ut,Et=!0,f&&Gt.restart(!0),(kt||At)&&ue(kt,At)}},ce=function(vt){z.event=vt,B(z)},de=function(vt){z.event=vt,G(z)},te=function(vt){return gt(vt)||sa(vt,u)&&X(z)};Gt=z._dc=Ye.delayedCall(h||.25,xt).pause(),z.deltaX=z.deltaY=0,z._vx=ro(0,50,!0),z._vy=ro(0,50,!0),z.scrollX=W,z.scrollY=K,z.isDragging=z.isGesturing=z.isPressed=!1,Uf(this),z.enable=function(Ct){return z.isEnabled||(un(lt?it:o,"scroll",Ac),a.indexOf("scroll")>=0&&un(lt?it:o,"scroll",ct,b,ft),a.indexOf("wheel")>=0&&un(o,"wheel",Vt,b,ft),(a.indexOf("touch")>=0&&Lf||a.indexOf("pointer")>=0)&&(un(o,Jn[0],L,b,ft),un(it,Jn[2],Y),un(it,Jn[3],Y),nt&&un(o,"click",Yt,!0,!0),X&&un(o,"click",te),Q&&un(it,"gesturestart",$),A&&un(it,"gestureend",ot),B&&un(o,wr+"enter",ce),G&&un(o,wr+"leave",de),Z&&un(o,wr+"move",se)),z.isEnabled=!0,Ct&&Ct.type&&L(Ct),bt&&bt(z)),z},z.disable=function(){z.isEnabled&&(os.filter(function(Ct){return Ct!==z&&la(Ct.target)}).length||cn(lt?it:o,"scroll",Ac),z.isPressed&&(z._vx.reset(),z._vy.reset(),cn(N?o:it,Jn[1],Nt,!0)),cn(lt?it:o,"scroll",ct,ft),cn(o,"wheel",Vt,ft),cn(o,Jn[0],L,ft),cn(it,Jn[2],Y),cn(it,Jn[3],Y),cn(o,"click",Yt,!0),cn(o,"click",te),cn(it,"gesturestart",$),cn(it,"gestureend",ot),cn(o,wr+"enter",ce),cn(o,wr+"leave",de),cn(o,wr+"move",se),z.isEnabled=z.isPressed=z.isDragging=!1,Zt&&Zt(z))},z.kill=z.revert=function(){z.disable();var Ct=os.indexOf(z);Ct>=0&&os.splice(Ct,1),Mi===z&&(Mi=0)},os.push(z),N&&la(o)&&(Mi=z),z.enable(g)},n_(r,[{key:"velocityX",get:function(){return this._vx.getVelocity()}},{key:"velocityY",get:function(){return this._vy.getVelocity()}}]),r}();De.version="3.12.5";De.create=function(r){return new De(r)};De.register=zf;De.getAll=function(){return os.slice()};De.getById=function(r){return os.filter(function(t){return t.vars.id===r})[0]};Nf()&&Ye.registerPlugin(De);var yt,hs,ne,we,Kn,ge,id,Mo,Ma,ma,ua,so,tn,wo,Uc,dn,kf,Vf,fs,rd,Dc,sd,fn,Nc,ad,od,Zi,Oc,Hc,ds,Gc,So,Bc,Cc,ao=1,en=Date.now,Rc=en(),Vn=0,ha=0,Hf=function(t,e,n){var i=Pn(t)&&(t.substr(0,6)==="clamp("||t.indexOf("max")>-1);return n["_"+e+"Clamp"]=i,i?t.substr(6,t.length-7):t},Gf=function(t,e){return e&&(!Pn(t)||t.substr(0,6)!=="clamp(")?"clamp("+t+")":t},s_=function r(){return ha&&requestAnimationFrame(r)},Wf=function(){return wo=1},Xf=function(){return wo=0},hi=function(t){return t},fa=function(t){return Math.round(t*1e5)/1e5||0},ld=function(){return typeof window<"u"},cd=function(){return yt||ld()&&(yt=window.gsap)&&yt.registerPlugin&&yt},Pr=function(t){return!!~id.indexOf(t)},ud=function(t){return(t==="Height"?Gc:ne["inner"+t])||Kn["client"+t]||ge["client"+t]},hd=function(t){return bi(t,"getBoundingClientRect")||(Pr(t)?function(){return yo.width=ne.innerWidth,yo.height=Gc,yo}:function(){return Ei(t)})},a_=function(t,e,n){var i=n.d,s=n.d2,a=n.a;return(a=bi(t,"getBoundingClientRect"))?function(){return a()[i]}:function(){return(e?ud(s):t["client"+s])||0}},o_=function(t,e){return!e||~$n.indexOf(t)?hd(t):function(){return yo}},fi=function(t,e){var n=e.s,i=e.d2,s=e.d,a=e.a;return Math.max(0,(n="scroll"+i)&&(a=bi(t,n))?a()-hd(t)()[s]:Pr(t)?(Kn[n]||ge[n])-ud(i):t[n]-t["offset"+i])},oo=function(t,e){for(var n=0;n<fs.length;n+=3)(!e||~e.indexOf(fs[n+1]))&&t(fs[n],fs[n+1],fs[n+2])},Pn=function(t){return typeof t=="string"},mn=function(t){return typeof t=="function"},da=function(t){return typeof t=="number"},Tr=function(t){return typeof t=="object"},ca=function(t,e,n){return t&&t.progress(e?0:1)&&n&&t.pause()},Pc=function(t,e){if(t.enabled){var n=t._ctx?t._ctx.add(function(){return e(t)}):e(t);n&&n.totalTime&&(t.callbackAnimation=n)}},cs=Math.abs,fd="left",dd="top",Wc="right",Xc="bottom",Dr="width",Cr="height",ga="Right",_a="Left",xa="Top",va="Bottom",Le="padding",zn="margin",ms="Width",qc="Height",Ne="px",kn=function(t){return ne.getComputedStyle(t)},l_=function(t){var e=kn(t).position;t.style.position=e==="absolute"||e==="fixed"?e:"relative"},qf=function(t,e){for(var n in e)n in t||(t[n]=e[n]);return t},Ei=function(t,e){var n=e&&kn(t)[Uc]!=="matrix(1, 0, 0, 1, 0, 0)"&&yt.to(t,{x:0,y:0,xPercent:0,yPercent:0,rotation:0,rotationX:0,rotationY:0,scale:1,skewX:0,skewY:0}).progress(1),i=t.getBoundingClientRect();return n&&n.progress(0).kill(),i},bo=function(t,e){var n=e.d2;return t["offset"+n]||t["client"+n]||0},pd=function(t){var e=[],n=t.labels,i=t.duration(),s;for(s in n)e.push(n[s]/i);return e},c_=function(t){return function(e){return yt.utils.snap(pd(t),e)}},Yc=function(t){var e=yt.utils.snap(t),n=Array.isArray(t)&&t.slice(0).sort(function(i,s){return i-s});return n?function(i,s,a){a===void 0&&(a=.001);var o;if(!s)return e(i);if(s>0){for(i-=a,o=0;o<n.length;o++)if(n[o]>=i)return n[o];return n[o-1]}else for(o=n.length,i+=a;o--;)if(n[o]<=i)return n[o];return n[0]}:function(i,s,a){a===void 0&&(a=.001);var o=e(i);return!s||Math.abs(o-i)<a||o-i<0==s<0?o:e(s<0?i-t:i+t)}},u_=function(t){return function(e,n){return Yc(pd(t))(e,n.direction)}},lo=function(t,e,n,i){return n.split(",").forEach(function(s){return t(e,s,i)})},He=function(t,e,n,i,s){return t.addEventListener(e,n,{passive:!i,capture:!!s})},Ve=function(t,e,n,i){return t.removeEventListener(e,n,!!i)},co=function(t,e,n){n=n&&n.wheelHandler,n&&(t(e,"wheel",n),t(e,"touchmove",n))},Yf={startColor:"green",endColor:"red",indent:0,fontSize:"16px",fontWeight:"normal"},uo={toggleActions:"play",anticipatePin:0},Eo={top:0,left:0,center:.5,bottom:1,right:1},go=function(t,e){if(Pn(t)){var n=t.indexOf("="),i=~n?+(t.charAt(n-1)+1)*parseFloat(t.substr(n+1)):0;~n&&(t.indexOf("%")>n&&(i*=e/100),t=t.substr(0,n-1)),t=i+(t in Eo?Eo[t]*e:~t.indexOf("%")?parseFloat(t)*e/100:parseFloat(t)||0)}return t},ho=function(t,e,n,i,s,a,o,l){var c=s.startColor,u=s.endColor,f=s.fontSize,h=s.indent,d=s.fontWeight,_=we.createElement("div"),g=Pr(n)||bi(n,"pinType")==="fixed",p=t.indexOf("scroller")!==-1,m=g?ge:n,S=t.indexOf("start")!==-1,v=S?c:u,M="border-color:"+v+";font-size:"+f+";color:"+v+";font-weight:"+d+";pointer-events:none;white-space:nowrap;font-family:sans-serif,Arial;z-index:1000;padding:4px 8px;border-width:0;border-style:solid;";return M+="position:"+((p||l)&&g?"fixed;":"absolute;"),(p||l||!g)&&(M+=(i===Ie?Wc:Xc)+":"+(a+parseFloat(h))+"px;"),o&&(M+="box-sizing:border-box;text-align:left;width:"+o.offsetWidth+"px;"),_._isStart=S,_.setAttribute("class","gsap-marker-"+t+(e?" marker-"+e:"")),_.style.cssText=M,_.innerText=e||e===0?t+"-"+e:t,m.children[0]?m.insertBefore(_,m.children[0]):m.appendChild(_),_._offset=_["offset"+i.op.d2],_o(_,0,i,S),_},_o=function(t,e,n,i){var s={display:"block"},a=n[i?"os2":"p2"],o=n[i?"p2":"os2"];t._isFlipped=i,s[n.a+"Percent"]=i?-100:0,s[n.a]=i?"1px":0,s["border"+a+ms]=1,s["border"+o+ms]=0,s[n.p]=e+"px",yt.set(t,s)},Kt=[],zc={},Sa,Zf=function(){return en()-Vn>34&&(Sa||(Sa=requestAnimationFrame(wi)))},us=function(){(!fn||!fn.isPressed||fn.startX>ge.clientWidth)&&($t.cache++,fn?Sa||(Sa=requestAnimationFrame(wi)):wi(),Vn||Lr("scrollStart"),Vn=en())},Ic=function(){od=ne.innerWidth,ad=ne.innerHeight},pa=function(){$t.cache++,!tn&&!sd&&!we.fullscreenElement&&!we.webkitFullscreenElement&&(!Nc||od!==ne.innerWidth||Math.abs(ne.innerHeight-ad)>ne.innerHeight*.25)&&Mo.restart(!0)},Ir={},h_=[],md=function r(){return Ve(Qt,"scrollEnd",r)||Ar(!0)},Lr=function(t){return Ir[t]&&Ir[t].map(function(e){return e()})||h_},Rn=[],gd=function(t){for(var e=0;e<Rn.length;e+=5)(!t||Rn[e+4]&&Rn[e+4].query===t)&&(Rn[e].style.cssText=Rn[e+1],Rn[e].getBBox&&Rn[e].setAttribute("transform",Rn[e+2]||""),Rn[e+3].uncache=1)},Zc=function(t,e){var n;for(dn=0;dn<Kt.length;dn++)n=Kt[dn],n&&(!e||n._ctx===e)&&(t?n.kill(1):n.revert(!0,!0));So=!0,e&&gd(e),e||Lr("revert")},_d=function(t,e){$t.cache++,(e||!pn)&&$t.forEach(function(n){return mn(n)&&n.cacheID++&&(n.rec=0)}),Pn(t)&&(ne.history.scrollRestoration=Hc=t)},pn,Rr=0,Jf,f_=function(){if(Jf!==Rr){var t=Jf=Rr;requestAnimationFrame(function(){return t===Rr&&Ar(!0)})}},xd=function(){ge.appendChild(ds),Gc=!fn&&ds.offsetHeight||ne.innerHeight,ge.removeChild(ds)},$f=function(t){return Ma(".gsap-marker-start, .gsap-marker-end, .gsap-marker-scroller-start, .gsap-marker-scroller-end").forEach(function(e){return e.style.display=t?"none":"block"})},Ar=function(t,e){if(Vn&&!t&&!So){He(Qt,"scrollEnd",md);return}xd(),pn=Qt.isRefreshing=!0,$t.forEach(function(i){return mn(i)&&++i.cacheID&&(i.rec=i())});var n=Lr("refreshInit");rd&&Qt.sort(),e||Zc(),$t.forEach(function(i){mn(i)&&(i.smooth&&(i.target.style.scrollBehavior="auto"),i(0))}),Kt.slice(0).forEach(function(i){return i.refresh()}),So=!1,Kt.forEach(function(i){if(i._subPinOffset&&i.pin){var s=i.vars.horizontal?"offsetWidth":"offsetHeight",a=i.pin[s];i.revert(!0,1),i.adjustPinSpacing(i.pin[s]-a),i.refresh()}}),Bc=1,$f(!0),Kt.forEach(function(i){var s=fi(i.scroller,i._dir),a=i.vars.end==="max"||i._endClamp&&i.end>s,o=i._startClamp&&i.start>=s;(a||o)&&i.setPositions(o?s-1:i.start,a?Math.max(o?s:i.start+1,s):i.end,!0)}),$f(!1),Bc=0,n.forEach(function(i){return i&&i.render&&i.render(-1)}),$t.forEach(function(i){mn(i)&&(i.smooth&&requestAnimationFrame(function(){return i.target.style.scrollBehavior="smooth"}),i.rec&&i(i.rec))}),_d(Hc,1),Mo.pause(),Rr++,pn=2,wi(2),Kt.forEach(function(i){return mn(i.vars.onRefresh)&&i.vars.onRefresh(i)}),pn=Qt.isRefreshing=!1,Lr("refresh")},kc=0,xo=1,ya,wi=function(t){if(t===2||!pn&&!So){Qt.isUpdating=!0,ya&&ya.update(0);var e=Kt.length,n=en(),i=n-Rc>=50,s=e&&Kt[0].scroll();if(xo=kc>s?-1:1,pn||(kc=s),i&&(Vn&&!wo&&n-Vn>200&&(Vn=0,Lr("scrollEnd")),ua=Rc,Rc=n),xo<0){for(dn=e;dn-- >0;)Kt[dn]&&Kt[dn].update(0,i);xo=1}else for(dn=0;dn<e;dn++)Kt[dn]&&Kt[dn].update(0,i);Qt.isUpdating=!1}Sa=0},Vc=[fd,dd,Xc,Wc,zn+va,zn+ga,zn+xa,zn+_a,"display","flexShrink","float","zIndex","gridColumnStart","gridColumnEnd","gridRowStart","gridRowEnd","gridArea","justifySelf","alignSelf","placeSelf","order"],vo=Vc.concat([Dr,Cr,"boxSizing","max"+ms,"max"+qc,"position",zn,Le,Le+xa,Le+ga,Le+va,Le+_a]),d_=function(t,e,n){ps(n);var i=t._gsap;if(i.spacerIsNative)ps(i.spacerState);else if(t._gsap.swappedIn){var s=e.parentNode;s&&(s.insertBefore(t,e),s.removeChild(e))}t._gsap.swappedIn=!1},Lc=function(t,e,n,i){if(!t._gsap.swappedIn){for(var s=Vc.length,a=e.style,o=t.style,l;s--;)l=Vc[s],a[l]=n[l];a.position=n.position==="absolute"?"absolute":"relative",n.display==="inline"&&(a.display="inline-block"),o[Xc]=o[Wc]="auto",a.flexBasis=n.flexBasis||"auto",a.overflow="visible",a.boxSizing="border-box",a[Dr]=bo(t,je)+Ne,a[Cr]=bo(t,Ie)+Ne,a[Le]=o[zn]=o[dd]=o[fd]="0",ps(i),o[Dr]=o["max"+ms]=n[Dr],o[Cr]=o["max"+qc]=n[Cr],o[Le]=n[Le],t.parentNode!==e&&(t.parentNode.insertBefore(e,t),e.appendChild(t)),t._gsap.swappedIn=!0}},p_=/([A-Z])/g,ps=function(t){if(t){var e=t.t.style,n=t.length,i=0,s,a;for((t.t._gsap||yt.core.getCache(t.t)).uncache=1;i<n;i+=2)a=t[i+1],s=t[i],a?e[s]=a:e[s]&&e.removeProperty(s.replace(p_,"-$1").toLowerCase())}},fo=function(t){for(var e=vo.length,n=t.style,i=[],s=0;s<e;s++)i.push(vo[s],n[vo[s]]);return i.t=t,i},m_=function(t,e,n){for(var i=[],s=t.length,a=n?8:0,o;a<s;a+=2)o=t[a],i.push(o,o in e?e[o]:t[a+1]);return i.t=t.t,i},yo={left:0,top:0},Kf=function(t,e,n,i,s,a,o,l,c,u,f,h,d,_){mn(t)&&(t=t(l)),Pn(t)&&t.substr(0,3)==="max"&&(t=h+(t.charAt(4)==="="?go("0"+t.substr(3),n):0));var g=d?d.time():0,p,m,S;if(d&&d.seek(0),isNaN(t)||(t=+t),da(t))d&&(t=yt.utils.mapRange(d.scrollTrigger.start,d.scrollTrigger.end,0,h,t)),o&&_o(o,n,i,!0);else{mn(e)&&(e=e(l));var v=(t||"0").split(" "),M,D,T,w;S=hn(e,l)||ge,M=Ei(S)||{},(!M||!M.left&&!M.top)&&kn(S).display==="none"&&(w=S.style.display,S.style.display="block",M=Ei(S),w?S.style.display=w:S.style.removeProperty("display")),D=go(v[0],M[i.d]),T=go(v[1]||"0",n),t=M[i.p]-c[i.p]-u+D+s-T,o&&_o(o,T,i,n-T<20||o._isStart&&T>20),n-=n-T}if(_&&(l[_]=t||-.001,t<0&&(t=0)),a){var P=t+n,y=a._isStart;p="scroll"+i.d2,_o(a,P,i,y&&P>20||!y&&(f?Math.max(ge[p],Kn[p]):a.parentNode[p])<=P+1),f&&(c=Ei(o),f&&(a.style[i.op.p]=c[i.op.p]-i.op.m-a._offset+Ne))}return d&&S&&(p=Ei(S),d.seek(h),m=Ei(S),d._caScrollDist=p[i.p]-m[i.p],t=t/d._caScrollDist*h),d&&d.seek(g),d?t:Math.round(t)},g_=/(webkit|moz|length|cssText|inset)/i,Qf=function(t,e,n,i){if(t.parentNode!==e){var s=t.style,a,o;if(e===ge){t._stOrig=s.cssText,o=kn(t);for(a in o)!+a&&!g_.test(a)&&o[a]&&typeof s[a]=="string"&&a!=="0"&&(s[a]=o[a]);s.top=n,s.left=i}else s.cssText=t._stOrig;yt.core.getCache(t).uncache=1,e.appendChild(t)}},vd=function(t,e,n){var i=e,s=i;return function(a){var o=Math.round(t());return o!==i&&o!==s&&Math.abs(o-i)>3&&Math.abs(o-s)>3&&(a=o,n&&n()),s=i,i=a,a}},po=function(t,e,n){var i={};i[e.p]="+="+n,yt.set(t,i)},jf=function(t,e){var n=Si(t,e),i="_scroll"+e.p2,s=function a(o,l,c,u,f){var h=a.tween,d=l.onComplete,_={};c=c||n();var g=vd(n,c,function(){h.kill(),a.tween=0});return f=u&&f||0,u=u||o-c,h&&h.kill(),l[i]=o,l.inherit=!1,l.modifiers=_,_[i]=function(){return g(c+u*h.ratio+f*h.ratio*h.ratio)},l.onUpdate=function(){$t.cache++,a.tween&&wi()},l.onComplete=function(){a.tween=0,d&&d.call(h)},h=a.tween=yt.to(t,l),h};return t[i]=n,n.wheelHandler=function(){return s.tween&&s.tween.kill()&&(s.tween=0)},He(t,"wheel",n.wheelHandler),Qt.isTouch&&He(t,"touchmove",n.wheelHandler),s},Qt=function(){function r(e,n){hs||r.register(yt)||console.warn("Please gsap.registerPlugin(ScrollTrigger)"),Oc(this),this.init(e,n)}var t=r.prototype;return t.init=function(n,i){if(this.progress=this.start=0,this.vars&&this.kill(!0,!0),!ha){this.update=this.refresh=this.kill=hi;return}n=qf(Pn(n)||da(n)||n.nodeType?{trigger:n}:n,uo);var s=n,a=s.onUpdate,o=s.toggleClass,l=s.id,c=s.onToggle,u=s.onRefresh,f=s.scrub,h=s.trigger,d=s.pin,_=s.pinSpacing,g=s.invalidateOnRefresh,p=s.anticipatePin,m=s.onScrubComplete,S=s.onSnapComplete,v=s.once,M=s.snap,D=s.pinReparent,T=s.pinSpacer,w=s.containerAnimation,P=s.fastScrollEnd,y=s.preventOverlaps,x=n.horizontal||n.containerAnimation&&n.horizontal!==!1?je:Ie,F=!f&&f!==0,I=hn(n.scroller||ne),R=yt.core.getCache(I),B=Pr(I),G=("pinType"in n?n.pinType:bi(I,"pinType")||B&&"fixed")==="fixed",Z=[n.onEnter,n.onLeave,n.onEnterBack,n.onLeaveBack],J=F&&n.toggleActions.split(" "),N="markers"in n?n.markers:uo.markers,Q=B?0:parseFloat(kn(I)["border"+x.p2+ms])||0,A=this,at=n.onRefreshInit&&function(){return n.onRefreshInit(A)},bt=a_(I,B,x),Zt=o_(I,B),X=0,tt=0,ft=0,nt=Si(I,x),It,Rt,O,Gt,St,Et,_t,Ft,Pt,z,jt,C,b,W,K,j,et,mt,lt,it,Lt,rt,Mt,Yt,gt,xt,Ut,Ht,ue,Nt,L,Y,$,ot,ct,Vt,se,ce,de;if(A._startClamp=A._endClamp=!1,A._dir=x,p*=45,A.scroller=I,A.scroll=w?w.time.bind(w):nt,Gt=nt(),A.vars=n,i=i||n.animation,"refreshPriority"in n&&(rd=1,n.refreshPriority===-9999&&(ya=A)),R.tweenScroll=R.tweenScroll||{top:jf(I,Ie),left:jf(I,je)},A.tweenTo=It=R.tweenScroll[x.p],A.scrubDuration=function(ut){$=da(ut)&&ut,$?Y?Y.duration(ut):Y=yt.to(i,{ease:"expo",totalProgress:"+=0",inherit:!1,duration:$,paused:!0,onComplete:function(){return m&&m(A)}}):(Y&&Y.progress(1).kill(),Y=0)},i&&(i.vars.lazy=!1,i._initted&&!A.isReverted||i.vars.immediateRender!==!1&&n.immediateRender!==!1&&i.duration()&&i.render(0,!0,!0),A.animation=i.pause(),i.scrollTrigger=A,A.scrubDuration(f),Nt=0,l||(l=i.vars.id)),M&&((!Tr(M)||M.push)&&(M={snapTo:M}),"scrollBehavior"in ge.style&&yt.set(B?[ge,Kn]:I,{scrollBehavior:"auto"}),$t.forEach(function(ut){return mn(ut)&&ut.target===(B?we.scrollingElement||Kn:I)&&(ut.smooth=!1)}),O=mn(M.snapTo)?M.snapTo:M.snapTo==="labels"?c_(i):M.snapTo==="labelsDirectional"?u_(i):M.directional!==!1?function(ut,kt){return Yc(M.snapTo)(ut,en()-tt<500?0:kt.direction)}:yt.utils.snap(M.snapTo),ot=M.duration||{min:.1,max:2},ot=Tr(ot)?ma(ot.min,ot.max):ma(ot,ot),ct=yt.delayedCall(M.delay||$/2||.1,function(){var ut=nt(),kt=en()-tt<500,At=It.tween;if((kt||Math.abs(A.getVelocity())<10)&&!At&&!wo&&X!==ut){var zt=(ut-Et)/W,Se=i&&!F?i.totalProgress():zt,Jt=kt?0:(Se-L)/(en()-ua)*1e3||0,xe=yt.utils.clamp(-zt,1-zt,cs(Jt/2)*Jt/.185),ze=zt+(M.inertia===!1?0:xe),ve,pe,E=M,U=E.onStart,k=E.onInterrupt,V=E.onComplete;if(ve=O(ze,A),da(ve)||(ve=ze),pe=Math.round(Et+ve*W),ut<=_t&&ut>=Et&&pe!==ut){if(At&&!At._initted&&At.data<=cs(pe-ut))return;M.inertia===!1&&(xe=ve-zt),It(pe,{duration:ot(cs(Math.max(cs(ze-Se),cs(ve-Se))*.185/Jt/.05||0)),ease:M.ease||"power3",data:cs(pe-ut),onInterrupt:function(){return ct.restart(!0)&&k&&k(A)},onComplete:function(){A.update(),X=nt(),i&&(Y?Y.resetTo("totalProgress",ve,i._tTime/i._tDur):i.progress(ve)),Nt=L=i&&!F?i.totalProgress():A.progress,S&&S(A),V&&V(A)}},ut,xe*W,pe-ut-xe*W),U&&U(A,It.tween)}}else A.isActive&&X!==ut&&ct.restart(!0)}).pause()),l&&(zc[l]=A),h=A.trigger=hn(h||d!==!0&&d),de=h&&h._gsap&&h._gsap.stRevert,de&&(de=de(A)),d=d===!0?h:hn(d),Pn(o)&&(o={targets:h,className:o}),d&&(_===!1||_===zn||(_=!_&&d.parentNode&&d.parentNode.style&&kn(d.parentNode).display==="flex"?!1:Le),A.pin=d,Rt=yt.core.getCache(d),Rt.spacer?K=Rt.pinState:(T&&(T=hn(T),T&&!T.nodeType&&(T=T.current||T.nativeElement),Rt.spacerIsNative=!!T,T&&(Rt.spacerState=fo(T))),Rt.spacer=mt=T||we.createElement("div"),mt.classList.add("pin-spacer"),l&&mt.classList.add("pin-spacer-"+l),Rt.pinState=K=fo(d)),n.force3D!==!1&&yt.set(d,{force3D:!0}),A.spacer=mt=Rt.spacer,ue=kn(d),Yt=ue[_+x.os2],it=yt.getProperty(d),Lt=yt.quickSetter(d,x.a,Ne),Lc(d,mt,ue),et=fo(d)),N){C=Tr(N)?qf(N,Yf):Yf,z=ho("scroller-start",l,I,x,C,0),jt=ho("scroller-end",l,I,x,C,0,z),lt=z["offset"+x.op.d2];var te=hn(bi(I,"content")||I);Ft=this.markerStart=ho("start",l,te,x,C,lt,0,w),Pt=this.markerEnd=ho("end",l,te,x,C,lt,0,w),w&&(ce=yt.quickSetter([Ft,Pt],x.a,Ne)),!G&&!($n.length&&bi(I,"fixedMarkers")===!0)&&(l_(B?ge:I),yt.set([z,jt],{force3D:!0}),xt=yt.quickSetter(z,x.a,Ne),Ht=yt.quickSetter(jt,x.a,Ne))}if(w){var Ct=w.vars.onUpdate,vt=w.vars.onUpdateParams;w.eventCallback("onUpdate",function(){A.update(0,0,1),Ct&&Ct.apply(w,vt||[])})}if(A.previous=function(){return Kt[Kt.indexOf(A)-1]},A.next=function(){return Kt[Kt.indexOf(A)+1]},A.revert=function(ut,kt){if(!kt)return A.kill(!0);var At=ut!==!1||!A.enabled,zt=tn;At!==A.isReverted&&(At&&(Vt=Math.max(nt(),A.scroll.rec||0),ft=A.progress,se=i&&i.progress()),Ft&&[Ft,Pt,z,jt].forEach(function(Se){return Se.style.display=At?"none":"block"}),At&&(tn=A,A.update(At)),d&&(!D||!A.isActive)&&(At?d_(d,mt,K):Lc(d,mt,kn(d),gt)),At||A.update(At),tn=zt,A.isReverted=At)},A.refresh=function(ut,kt,At,zt){if(!((tn||!A.enabled)&&!kt)){if(d&&ut&&Vn){He(r,"scrollEnd",md);return}!pn&&at&&at(A),tn=A,It.tween&&!At&&(It.tween.kill(),It.tween=0),Y&&Y.pause(),g&&i&&i.revert({kill:!1}).invalidate(),A.isReverted||A.revert(!0,!0),A._subPinOffset=!1;var Se=bt(),Jt=Zt(),xe=w?w.duration():fi(I,x),ze=W<=.01,ve=0,pe=zt||0,E=Tr(At)?At.end:n.end,U=n.endTrigger||h,k=Tr(At)?At.start:n.start||(n.start===0||!h?0:d?"0 0":"0 100%"),V=A.pinnedContainer=n.pinnedContainer&&hn(n.pinnedContainer,A),H=h&&Math.max(0,Kt.indexOf(A))||0,st=H,ht,pt,Dt,Bt,Tt,wt,oe,Pe,Ze,an,Wt,Ot,si;for(N&&Tr(At)&&(Ot=yt.getProperty(z,x.p),si=yt.getProperty(jt,x.p));st--;)wt=Kt[st],wt.end||wt.refresh(0,1)||(tn=A),oe=wt.pin,oe&&(oe===h||oe===d||oe===V)&&!wt.isReverted&&(an||(an=[]),an.unshift(wt),wt.revert(!0,!0)),wt!==Kt[st]&&(H--,st--);for(mn(k)&&(k=k(A)),k=Hf(k,"start",A),Et=Kf(k,h,Se,x,nt(),Ft,z,A,Jt,Q,G,xe,w,A._startClamp&&"_startClamp")||(d?-.001:0),mn(E)&&(E=E(A)),Pn(E)&&!E.indexOf("+=")&&(~E.indexOf(" ")?E=(Pn(k)?k.split(" ")[0]:"")+E:(ve=go(E.substr(2),Se),E=Pn(k)?k:(w?yt.utils.mapRange(0,w.duration(),w.scrollTrigger.start,w.scrollTrigger.end,Et):Et)+ve,U=h)),E=Hf(E,"end",A),_t=Math.max(Et,Kf(E||(U?"100% 0":xe),U,Se,x,nt()+ve,Pt,jt,A,Jt,Q,G,xe,w,A._endClamp&&"_endClamp"))||-.001,ve=0,st=H;st--;)wt=Kt[st],oe=wt.pin,oe&&wt.start-wt._pinPush<=Et&&!w&&wt.end>0&&(ht=wt.end-(A._startClamp?Math.max(0,wt.start):wt.start),(oe===h&&wt.start-wt._pinPush<Et||oe===V)&&isNaN(k)&&(ve+=ht*(1-wt.progress)),oe===d&&(pe+=ht));if(Et+=ve,_t+=ve,A._startClamp&&(A._startClamp+=ve),A._endClamp&&!pn&&(A._endClamp=_t||-.001,_t=Math.min(_t,fi(I,x))),W=_t-Et||(Et-=.01)&&.001,ze&&(ft=yt.utils.clamp(0,1,yt.utils.normalize(Et,_t,Vt))),A._pinPush=pe,Ft&&ve&&(ht={},ht[x.a]="+="+ve,V&&(ht[x.p]="-="+nt()),yt.set([Ft,Pt],ht)),d&&!(Bc&&A.end>=fi(I,x)))ht=kn(d),Bt=x===Ie,Dt=nt(),rt=parseFloat(it(x.a))+pe,!xe&&_t>1&&(Wt=(B?we.scrollingElement||Kn:I).style,Wt={style:Wt,value:Wt["overflow"+x.a.toUpperCase()]},B&&kn(ge)["overflow"+x.a.toUpperCase()]!=="scroll"&&(Wt.style["overflow"+x.a.toUpperCase()]="scroll")),Lc(d,mt,ht),et=fo(d),pt=Ei(d,!0),Pe=G&&Si(I,Bt?je:Ie)(),_?(gt=[_+x.os2,W+pe+Ne],gt.t=mt,st=_===Le?bo(d,x)+W+pe:0,st&&(gt.push(x.d,st+Ne),mt.style.flexBasis!=="auto"&&(mt.style.flexBasis=st+Ne)),ps(gt),V&&Kt.forEach(function(le){le.pin===V&&le.vars.pinSpacing!==!1&&(le._subPinOffset=!0)}),G&&nt(Vt)):(st=bo(d,x),st&&mt.style.flexBasis!=="auto"&&(mt.style.flexBasis=st+Ne)),G&&(Tt={top:pt.top+(Bt?Dt-Et:Pe)+Ne,left:pt.left+(Bt?Pe:Dt-Et)+Ne,boxSizing:"border-box",position:"fixed"},Tt[Dr]=Tt["max"+ms]=Math.ceil(pt.width)+Ne,Tt[Cr]=Tt["max"+qc]=Math.ceil(pt.height)+Ne,Tt[zn]=Tt[zn+xa]=Tt[zn+ga]=Tt[zn+va]=Tt[zn+_a]="0",Tt[Le]=ht[Le],Tt[Le+xa]=ht[Le+xa],Tt[Le+ga]=ht[Le+ga],Tt[Le+va]=ht[Le+va],Tt[Le+_a]=ht[Le+_a],j=m_(K,Tt,D),pn&&nt(0)),i?(Ze=i._initted,Dc(1),i.render(i.duration(),!0,!0),Mt=it(x.a)-rt+W+pe,Ut=Math.abs(W-Mt)>1,G&&Ut&&j.splice(j.length-2,2),i.render(0,!0,!0),Ze||i.invalidate(!0),i.parent||i.totalTime(i.totalTime()),Dc(0)):Mt=W,Wt&&(Wt.value?Wt.style["overflow"+x.a.toUpperCase()]=Wt.value:Wt.style.removeProperty("overflow-"+x.a));else if(h&&nt()&&!w)for(pt=h.parentNode;pt&&pt!==ge;)pt._pinOffset&&(Et-=pt._pinOffset,_t-=pt._pinOffset),pt=pt.parentNode;an&&an.forEach(function(le){return le.revert(!1,!0)}),A.start=Et,A.end=_t,Gt=St=pn?Vt:nt(),!w&&!pn&&(Gt<Vt&&nt(Vt),A.scroll.rec=0),A.revert(!1,!0),tt=en(),ct&&(X=-1,ct.restart(!0)),tn=0,i&&F&&(i._initted||se)&&i.progress()!==se&&i.progress(se||0,!0).render(i.time(),!0,!0),(ze||ft!==A.progress||w||g)&&(i&&!F&&i.totalProgress(w&&Et<-.001&&!ft?yt.utils.normalize(Et,_t,0):ft,!0),A.progress=ze||(Gt-Et)/W===ft?0:ft),d&&_&&(mt._pinOffset=Math.round(A.progress*Mt)),Y&&Y.invalidate(),isNaN(Ot)||(Ot-=yt.getProperty(z,x.p),si-=yt.getProperty(jt,x.p),po(z,x,Ot),po(Ft,x,Ot-(zt||0)),po(jt,x,si),po(Pt,x,si-(zt||0))),ze&&!pn&&A.update(),u&&!pn&&!b&&(b=!0,u(A),b=!1)}},A.getVelocity=function(){return(nt()-St)/(en()-ua)*1e3||0},A.endAnimation=function(){ca(A.callbackAnimation),i&&(Y?Y.progress(1):i.paused()?F||ca(i,A.direction<0,1):ca(i,i.reversed()))},A.labelToScroll=function(ut){return i&&i.labels&&(Et||A.refresh()||Et)+i.labels[ut]/i.duration()*W||0},A.getTrailing=function(ut){var kt=Kt.indexOf(A),At=A.direction>0?Kt.slice(0,kt).reverse():Kt.slice(kt+1);return(Pn(ut)?At.filter(function(zt){return zt.vars.preventOverlaps===ut}):At).filter(function(zt){return A.direction>0?zt.end<=Et:zt.start>=_t})},A.update=function(ut,kt,At){if(!(w&&!At&&!ut)){var zt=pn===!0?Vt:A.scroll(),Se=ut?0:(zt-Et)/W,Jt=Se<0?0:Se>1?1:Se||0,xe=A.progress,ze,ve,pe,E,U,k,V,H;if(kt&&(St=Gt,Gt=w?nt():zt,M&&(L=Nt,Nt=i&&!F?i.totalProgress():Jt)),p&&d&&!tn&&!ao&&Vn&&(!Jt&&Et<zt+(zt-St)/(en()-ua)*p?Jt=1e-4:Jt===1&&_t>zt+(zt-St)/(en()-ua)*p&&(Jt=.9999)),Jt!==xe&&A.enabled){if(ze=A.isActive=!!Jt&&Jt<1,ve=!!xe&&xe<1,k=ze!==ve,U=k||!!Jt!=!!xe,A.direction=Jt>xe?1:-1,A.progress=Jt,U&&!tn&&(pe=Jt&&!xe?0:Jt===1?1:xe===1?2:3,F&&(E=!k&&J[pe+1]!=="none"&&J[pe+1]||J[pe],H=i&&(E==="complete"||E==="reset"||E in i))),y&&(k||H)&&(H||f||!i)&&(mn(y)?y(A):A.getTrailing(y).forEach(function(Dt){return Dt.endAnimation()})),F||(Y&&!tn&&!ao?(Y._dp._time-Y._start!==Y._time&&Y.render(Y._dp._time-Y._start),Y.resetTo?Y.resetTo("totalProgress",Jt,i._tTime/i._tDur):(Y.vars.totalProgress=Jt,Y.invalidate().restart())):i&&i.totalProgress(Jt,!!(tn&&(tt||ut)))),d){if(ut&&_&&(mt.style[_+x.os2]=Yt),!G)Lt(fa(rt+Mt*Jt));else if(U){if(V=!ut&&Jt>xe&&_t+1>zt&&zt+1>=fi(I,x),D)if(!ut&&(ze||V)){var st=Ei(d,!0),ht=zt-Et;Qf(d,ge,st.top+(x===Ie?ht:0)+Ne,st.left+(x===Ie?0:ht)+Ne)}else Qf(d,mt);ps(ze||V?j:et),Ut&&Jt<1&&ze||Lt(rt+(Jt===1&&!V?Mt:0))}}M&&!It.tween&&!tn&&!ao&&ct.restart(!0),o&&(k||v&&Jt&&(Jt<1||!Cc))&&Ma(o.targets).forEach(function(Dt){return Dt.classList[ze||v?"add":"remove"](o.className)}),a&&!F&&!ut&&a(A),U&&!tn?(F&&(H&&(E==="complete"?i.pause().totalProgress(1):E==="reset"?i.restart(!0).pause():E==="restart"?i.restart(!0):i[E]()),a&&a(A)),(k||!Cc)&&(c&&k&&Pc(A,c),Z[pe]&&Pc(A,Z[pe]),v&&(Jt===1?A.kill(!1,1):Z[pe]=0),k||(pe=Jt===1?1:3,Z[pe]&&Pc(A,Z[pe]))),P&&!ze&&Math.abs(A.getVelocity())>(da(P)?P:2500)&&(ca(A.callbackAnimation),Y?Y.progress(1):ca(i,E==="reverse"?1:!Jt,1))):F&&a&&!tn&&a(A)}if(Ht){var pt=w?zt/w.duration()*(w._caScrollDist||0):zt;xt(pt+(z._isFlipped?1:0)),Ht(pt)}ce&&ce(-zt/w.duration()*(w._caScrollDist||0))}},A.enable=function(ut,kt){A.enabled||(A.enabled=!0,He(I,"resize",pa),B||He(I,"scroll",us),at&&He(r,"refreshInit",at),ut!==!1&&(A.progress=ft=0,Gt=St=X=nt()),kt!==!1&&A.refresh())},A.getTween=function(ut){return ut&&It?It.tween:Y},A.setPositions=function(ut,kt,At,zt){if(w){var Se=w.scrollTrigger,Jt=w.duration(),xe=Se.end-Se.start;ut=Se.start+xe*ut/Jt,kt=Se.start+xe*kt/Jt}A.refresh(!1,!1,{start:Gf(ut,At&&!!A._startClamp),end:Gf(kt,At&&!!A._endClamp)},zt),A.update()},A.adjustPinSpacing=function(ut){if(gt&&ut){var kt=gt.indexOf(x.d)+1;gt[kt]=parseFloat(gt[kt])+ut+Ne,gt[1]=parseFloat(gt[1])+ut+Ne,ps(gt)}},A.disable=function(ut,kt){if(A.enabled&&(ut!==!1&&A.revert(!0,!0),A.enabled=A.isActive=!1,kt||Y&&Y.pause(),Vt=0,Rt&&(Rt.uncache=1),at&&Ve(r,"refreshInit",at),ct&&(ct.pause(),It.tween&&It.tween.kill()&&(It.tween=0)),!B)){for(var At=Kt.length;At--;)if(Kt[At].scroller===I&&Kt[At]!==A)return;Ve(I,"resize",pa),B||Ve(I,"scroll",us)}},A.kill=function(ut,kt){A.disable(ut,kt),Y&&!kt&&Y.kill(),l&&delete zc[l];var At=Kt.indexOf(A);At>=0&&Kt.splice(At,1),At===dn&&xo>0&&dn--,At=0,Kt.forEach(function(zt){return zt.scroller===A.scroller&&(At=1)}),At||pn||(A.scroll.rec=0),i&&(i.scrollTrigger=null,ut&&i.revert({kill:!1}),kt||i.kill()),Ft&&[Ft,Pt,z,jt].forEach(function(zt){return zt.parentNode&&zt.parentNode.removeChild(zt)}),ya===A&&(ya=0),d&&(Rt&&(Rt.uncache=1),At=0,Kt.forEach(function(zt){return zt.pin===d&&At++}),At||(Rt.spacer=0)),n.onKill&&n.onKill(A)},Kt.push(A),A.enable(!1,!1),de&&de(A),i&&i.add&&!W){var ie=A.update;A.update=function(){A.update=ie,Et||_t||A.refresh()},yt.delayedCall(.01,A.update),W=.01,Et=_t=0}else A.refresh();d&&f_()},r.register=function(n){return hs||(yt=n||cd(),ld()&&window.document&&r.enable(),hs=ha),hs},r.defaults=function(n){if(n)for(var i in n)uo[i]=n[i];return uo},r.disable=function(n,i){ha=0,Kt.forEach(function(a){return a[i?"kill":"disable"](n)}),Ve(ne,"wheel",us),Ve(we,"scroll",us),clearInterval(so),Ve(we,"touchcancel",hi),Ve(ge,"touchstart",hi),lo(Ve,we,"pointerdown,touchstart,mousedown",Wf),lo(Ve,we,"pointerup,touchend,mouseup",Xf),Mo.kill(),oo(Ve);for(var s=0;s<$t.length;s+=3)co(Ve,$t[s],$t[s+1]),co(Ve,$t[s],$t[s+2])},r.enable=function(){if(ne=window,we=document,Kn=we.documentElement,ge=we.body,yt&&(Ma=yt.utils.toArray,ma=yt.utils.clamp,Oc=yt.core.context||hi,Dc=yt.core.suppressOverwrites||hi,Hc=ne.history.scrollRestoration||"auto",kc=ne.pageYOffset,yt.core.globals("ScrollTrigger",r),ge)){ha=1,ds=document.createElement("div"),ds.style.height="100vh",ds.style.position="absolute",xd(),s_(),De.register(yt),r.isTouch=De.isTouch,Zi=De.isTouch&&/(iPad|iPhone|iPod|Mac)/g.test(navigator.userAgent),Nc=De.isTouch===1,He(ne,"wheel",us),id=[ne,we,Kn,ge],yt.matchMedia?(r.matchMedia=function(l){var c=yt.matchMedia(),u;for(u in l)c.add(u,l[u]);return c},yt.addEventListener("matchMediaInit",function(){return Zc()}),yt.addEventListener("matchMediaRevert",function(){return gd()}),yt.addEventListener("matchMedia",function(){Ar(0,1),Lr("matchMedia")}),yt.matchMedia("(orientation: portrait)",function(){return Ic(),Ic})):console.warn("Requires GSAP 3.11.0 or later"),Ic(),He(we,"scroll",us);var n=ge.style,i=n.borderTopStyle,s=yt.core.Animation.prototype,a,o;for(s.revert||Object.defineProperty(s,"revert",{value:function(){return this.time(-.01,!0)}}),n.borderTopStyle="solid",a=Ei(ge),Ie.m=Math.round(a.top+Ie.sc())||0,je.m=Math.round(a.left+je.sc())||0,i?n.borderTopStyle=i:n.removeProperty("border-top-style"),so=setInterval(Zf,250),yt.delayedCall(.5,function(){return ao=0}),He(we,"touchcancel",hi),He(ge,"touchstart",hi),lo(He,we,"pointerdown,touchstart,mousedown",Wf),lo(He,we,"pointerup,touchend,mouseup",Xf),Uc=yt.utils.checkPrefix("transform"),vo.push(Uc),hs=en(),Mo=yt.delayedCall(.2,Ar).pause(),fs=[we,"visibilitychange",function(){var l=ne.innerWidth,c=ne.innerHeight;we.hidden?(kf=l,Vf=c):(kf!==l||Vf!==c)&&pa()},we,"DOMContentLoaded",Ar,ne,"load",Ar,ne,"resize",pa],oo(He),Kt.forEach(function(l){return l.enable(0,1)}),o=0;o<$t.length;o+=3)co(Ve,$t[o],$t[o+1]),co(Ve,$t[o],$t[o+2])}},r.config=function(n){"limitCallbacks"in n&&(Cc=!!n.limitCallbacks);var i=n.syncInterval;i&&clearInterval(so)||(so=i)&&setInterval(Zf,i),"ignoreMobileResize"in n&&(Nc=r.isTouch===1&&n.ignoreMobileResize),"autoRefreshEvents"in n&&(oo(Ve)||oo(He,n.autoRefreshEvents||"none"),sd=(n.autoRefreshEvents+"").indexOf("resize")===-1)},r.scrollerProxy=function(n,i){var s=hn(n),a=$t.indexOf(s),o=Pr(s);~a&&$t.splice(a,o?6:2),i&&(o?$n.unshift(ne,i,ge,i,Kn,i):$n.unshift(s,i))},r.clearMatchMedia=function(n){Kt.forEach(function(i){return i._ctx&&i._ctx.query===n&&i._ctx.kill(!0,!0)})},r.isInViewport=function(n,i,s){var a=(Pn(n)?hn(n):n).getBoundingClientRect(),o=a[s?Dr:Cr]*i||0;return s?a.right-o>0&&a.left+o<ne.innerWidth:a.bottom-o>0&&a.top+o<ne.innerHeight},r.positionInViewport=function(n,i,s){Pn(n)&&(n=hn(n));var a=n.getBoundingClientRect(),o=a[s?Dr:Cr],l=i==null?o/2:i in Eo?Eo[i]*o:~i.indexOf("%")?parseFloat(i)*o/100:parseFloat(i)||0;return s?(a.left+l)/ne.innerWidth:(a.top+l)/ne.innerHeight},r.killAll=function(n){if(Kt.slice(0).forEach(function(s){return s.vars.id!=="ScrollSmoother"&&s.kill()}),n!==!0){var i=Ir.killAll||[];Ir={},i.forEach(function(s){return s()})}},r}();Qt.version="3.12.5";Qt.saveStyles=function(r){return r?Ma(r).forEach(function(t){if(t&&t.style){var e=Rn.indexOf(t);e>=0&&Rn.splice(e,5),Rn.push(t,t.style.cssText,t.getBBox&&t.getAttribute("transform"),yt.core.getCache(t),Oc())}}):Rn};Qt.revert=function(r,t){return Zc(!r,t)};Qt.create=function(r,t){return new Qt(r,t)};Qt.refresh=function(r){return r?pa():(hs||Qt.register())&&Ar(!0)};Qt.update=function(r){return++$t.cache&&wi(r===!0?2:0)};Qt.clearScrollMemory=_d;Qt.maxScroll=function(r,t){return fi(r,t?je:Ie)};Qt.getScrollFunc=function(r,t){return Si(hn(r),t?je:Ie)};Qt.getById=function(r){return zc[r]};Qt.getAll=function(){return Kt.filter(function(r){return r.vars.id!=="ScrollSmoother"})};Qt.isScrolling=function(){return!!Vn};Qt.snapDirectional=Yc;Qt.addEventListener=function(r,t){var e=Ir[r]||(Ir[r]=[]);~e.indexOf(t)||e.push(t)};Qt.removeEventListener=function(r,t){var e=Ir[r],n=e&&e.indexOf(t);n>=0&&e.splice(n,1)};Qt.batch=function(r,t){var e=[],n={},i=t.interval||.016,s=t.batchMax||1e9,a=function(c,u){var f=[],h=[],d=yt.delayedCall(i,function(){u(f,h),f=[],h=[]}).pause();return function(_){f.length||d.restart(!0),f.push(_.trigger),h.push(_),s<=f.length&&d.progress(1)}},o;for(o in t)n[o]=o.substr(0,2)==="on"&&mn(t[o])&&o!=="onRefreshInit"?a(o,t[o]):t[o];return mn(s)&&(s=s(),He(Qt,"refresh",function(){return s=t.batchMax()})),Ma(r).forEach(function(l){var c={};for(o in n)c[o]=n[o];c.trigger=l,e.push(Qt.create(c))}),e};var td=function(t,e,n,i){return e>i?t(i):e<0&&t(0),n>i?(i-e)/(n-e):n<0?e/(e-n):1},Fc=function r(t,e){e===!0?t.style.removeProperty("touch-action"):t.style.touchAction=e===!0?"auto":e?"pan-"+e+(De.isTouch?" pinch-zoom":""):"none",t===Kn&&r(ge,e)},mo={auto:1,scroll:1},__=function(t){var e=t.event,n=t.target,i=t.axis,s=(e.changedTouches?e.changedTouches[0]:e).target,a=s._gsap||yt.core.getCache(s),o=en(),l;if(!a._isScrollT||o-a._isScrollT>2e3){for(;s&&s!==ge&&(s.scrollHeight<=s.clientHeight&&s.scrollWidth<=s.clientWidth||!(mo[(l=kn(s)).overflowY]||mo[l.overflowX]));)s=s.parentNode;a._isScroll=s&&s!==n&&!Pr(s)&&(mo[(l=kn(s)).overflowY]||mo[l.overflowX]),a._isScrollT=o}(a._isScroll||i==="x")&&(e.stopPropagation(),e._gsapAllow=!0)},yd=function(t,e,n,i){return De.create({target:t,capture:!0,debounce:!1,lockAxis:!0,type:e,onWheel:i=i&&__,onPress:i,onDrag:i,onScroll:i,onEnable:function(){return n&&He(we,De.eventTypes[0],nd,!1,!0)},onDisable:function(){return Ve(we,De.eventTypes[0],nd,!0)}})},x_=/(input|label|select|textarea)/i,ed,nd=function(t){var e=x_.test(t.target.tagName);(e||ed)&&(t._gsapAllow=!0,ed=e)},v_=function(t){Tr(t)||(t={}),t.preventDefault=t.isNormalizer=t.allowClicks=!0,t.type||(t.type="wheel,touch"),t.debounce=!!t.debounce,t.id=t.id||"normalizer";var e=t,n=e.normalizeScrollX,i=e.momentum,s=e.allowNestedScroll,a=e.onRelease,o,l,c=hn(t.target)||Kn,u=yt.core.globals().ScrollSmoother,f=u&&u.get(),h=Zi&&(t.content&&hn(t.content)||f&&t.content!==!1&&!f.smooth()&&f.content()),d=Si(c,Ie),_=Si(c,je),g=1,p=(De.isTouch&&ne.visualViewport?ne.visualViewport.scale*ne.visualViewport.width:ne.outerWidth)/ne.innerWidth,m=0,S=mn(i)?function(){return i(o)}:function(){return i||2.8},v,M,D=yd(c,t.type,!0,s),T=function(){return M=!1},w=hi,P=hi,y=function(){l=fi(c,Ie),P=ma(Zi?1:0,l),n&&(w=ma(0,fi(c,je))),v=Rr},x=function(){h._gsap.y=fa(parseFloat(h._gsap.y)+d.offset)+"px",h.style.transform="matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, "+parseFloat(h._gsap.y)+", 0, 1)",d.offset=d.cacheID=0},F=function(){if(M){requestAnimationFrame(T);var N=fa(o.deltaY/2),Q=P(d.v-N);if(h&&Q!==d.v+d.offset){d.offset=Q-d.v;var A=fa((parseFloat(h&&h._gsap.y)||0)-d.offset);h.style.transform="matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, "+A+", 0, 1)",h._gsap.y=A+"px",d.cacheID=$t.cache,wi()}return!0}d.offset&&x(),M=!0},I,R,B,G,Z=function(){y(),I.isActive()&&I.vars.scrollY>l&&(d()>l?I.progress(1)&&d(l):I.resetTo("scrollY",l))};return h&&yt.set(h,{y:"+=0"}),t.ignoreCheck=function(J){return Zi&&J.type==="touchmove"&&F(J)||g>1.05&&J.type!=="touchstart"||o.isGesturing||J.touches&&J.touches.length>1},t.onPress=function(){M=!1;var J=g;g=fa((ne.visualViewport&&ne.visualViewport.scale||1)/p),I.pause(),J!==g&&Fc(c,g>1.01?!0:n?!1:"x"),R=_(),B=d(),y(),v=Rr},t.onRelease=t.onGestureStart=function(J,N){if(d.offset&&x(),!N)G.restart(!0);else{$t.cache++;var Q=S(),A,at;n&&(A=_(),at=A+Q*.05*-J.velocityX/.227,Q*=td(_,A,at,fi(c,je)),I.vars.scrollX=w(at)),A=d(),at=A+Q*.05*-J.velocityY/.227,Q*=td(d,A,at,fi(c,Ie)),I.vars.scrollY=P(at),I.invalidate().duration(Q).play(.01),(Zi&&I.vars.scrollY>=l||A>=l-1)&&yt.to({},{onUpdate:Z,duration:Q})}a&&a(J)},t.onWheel=function(){I._ts&&I.pause(),en()-m>1e3&&(v=0,m=en())},t.onChange=function(J,N,Q,A,at){if(Rr!==v&&y(),N&&n&&_(w(A[2]===N?R+(J.startX-J.x):_()+N-A[1])),Q){d.offset&&x();var bt=at[2]===Q,Zt=bt?B+J.startY-J.y:d()+Q-at[1],X=P(Zt);bt&&Zt!==X&&(B+=X-Zt),d(X)}(Q||N)&&wi()},t.onEnable=function(){Fc(c,n?!1:"x"),Qt.addEventListener("refresh",Z),He(ne,"resize",Z),d.smooth&&(d.target.style.scrollBehavior="auto",d.smooth=_.smooth=!1),D.enable()},t.onDisable=function(){Fc(c,!0),Ve(ne,"resize",Z),Qt.removeEventListener("refresh",Z),D.kill()},t.lockAxis=t.lockAxis!==!1,o=new De(t),o.iOS=Zi,Zi&&!d()&&d(1),Zi&&yt.ticker.add(hi),G=o._dc,I=yt.to(o,{ease:"power4",paused:!0,inherit:!1,scrollX:n?"+=0.1":"+=0",scrollY:"+=0.1",modifiers:{scrollY:vd(d,d(),function(){return I.pause()})},onUpdate:wi,onComplete:G.vars.onComplete}),o};Qt.sort=function(r){return Kt.sort(r||function(t,e){return(t.vars.refreshPriority||0)*-1e6+t.start-(e.start+(e.vars.refreshPriority||0)*-1e6)})};Qt.observe=function(r){return new De(r)};Qt.normalizeScroll=function(r){if(typeof r>"u")return fn;if(r===!0&&fn)return fn.enable();if(r===!1){fn&&fn.kill(),fn=r;return}var t=r instanceof De?r:v_(r);return fn&&fn.target===t.target&&fn.kill(),Pr(t.target)&&(fn=t),t};Qt.core={_getVelocityProp:ro,_inputObserver:yd,_scrollers:$t,_proxies:$n,bridge:{ss:function(){Vn||Lr("scrollStart"),Vn=en()},ref:function(){return tn}}};cd()&&yt.registerPlugin(Qt);bn.registerPlugin(Qt);var Md=()=>{[{wrapperSelector:".prx-steps-wrap",itemSelector:".prx-step-box, .prx-step-divider"},{wrapperSelector:".prx-trust_grid",itemSelector:".prx-trust-box"},{wrapperSelector:".prx-areas_wrapper",itemSelector:".prx-areas_item"}].forEach(({wrapperSelector:t,itemSelector:e})=>{let n=document.querySelector(t);if(!n)return;let i=n.querySelectorAll(e);i.length&&(bn.set(i,{opacity:0,y:48}),bn.timeline({scrollTrigger:{trigger:n,start:"top bottom-=12%",toggleActions:"play none none reverse"}}).to(i,{opacity:1,y:0,duration:.7,ease:"power2.out",stagger:.22}))})};var y_=/(?:^\s+|\s+$)/g,M_=/([\uD800-\uDBFF][\uDC00-\uDFFF](?:[\u200D\uFE0F][\uD800-\uDBFF][\uDC00-\uDFFF]){2,}|\uD83D\uDC69(?:\u200D(?:(?:\uD83D\uDC69\u200D)?\uD83D\uDC67|(?:\uD83D\uDC69\u200D)?\uD83D\uDC66)|\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC69\u200D(?:\uD83D\uDC69\u200D)?\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D(?:\uD83D\uDC69\u200D)?\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]\uFE0F|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC6F\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3C-\uDD3E\uDDD6-\uDDDF])\u200D[\u2640\u2642]\uFE0F|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF6\uD83C\uDDE6|\uD83C\uDDF4\uD83C\uDDF2|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uFE0F\u200D[\u2640\u2642]|(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642])\uFE0F|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2695\u2696\u2708]|\uD83D\uDC69\u200D[\u2695\u2696\u2708]|\uD83D\uDC68(?:(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708]))\uFE0F|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83D\uDC69\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69]))|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|[#\*0-9]\uFE0F\u20E3|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67)\uDB40\uDC7F|\uD83D\uDC68(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:(?:\uD83D[\uDC68\uDC69])\u200D)?\uD83D\uDC66\u200D\uD83D\uDC66|(?:(?:\uD83D[\uDC68\uDC69])\u200D)?\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92])|(?:\uD83C[\uDFFB-\uDFFF])\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]))|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270A-\u270D]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC70\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDCAA\uDD74\uDD7A\uDD90\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD36\uDDD1-\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\u200D(?:(?:(?:\uD83D[\uDC68\uDC69])\u200D)?\uD83D\uDC67|(?:(?:\uD83D[\uDC68\uDC69])\u200D)?\uD83D\uDC66)|\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC69\uDC6E\uDC70-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD18-\uDD1C\uDD1E\uDD1F\uDD26\uDD30-\uDD39\uDD3D\uDD3E\uDDD1-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])?|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDEEB\uDEEC\uDEF4-\uDEF8]|\uD83E[\uDD10-\uDD3A\uDD3C-\uDD3E\uDD40-\uDD45\uDD47-\uDD4C\uDD50-\uDD6B\uDD80-\uDD97\uDDC0\uDDD0-\uDDE6])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u2660\u2663\u2665\u2666\u2668\u267B\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEF8]|\uD83E[\uDD10-\uDD3A\uDD3C-\uDD3E\uDD40-\uDD45\uDD47-\uDD4C\uDD50-\uDD6B\uDD80-\uDD97\uDDC0\uDDD0-\uDDE6])\uFE0F)/;function To(r){var t=r.nodeType,e="";if(t===1||t===9||t===11){if(typeof r.textContent=="string")return r.textContent;for(r=r.firstChild;r;r=r.nextSibling)e+=To(r)}else if(t===3||t===4)return r.nodeValue;return e}function Qn(r,t,e,n){if(r+="",e&&(r=r.trim?r.trim():r.replace(y_,"")),t&&t!=="")return r.replace(/>/g,">").replace(/</g,"<").split(t);for(var i=[],s=r.length,a=0,o,l;a<s;a++)l=r.charAt(a),(l.charCodeAt(0)>=55296&&l.charCodeAt(0)<=56319||r.charCodeAt(a+1)>=65024&&r.charCodeAt(a+1)<=65039)&&(o=((r.substr(a,12).split(M_)||[])[1]||"").length||2,l=r.substr(a,o),i.emoji=1,a+=o-1),i.push(l===">"?">":l==="<"?"<":n&&l===" "&&(r.charAt(a-1)===" "||r.charAt(a+1)===" ")?" ":l);return i}var Ao=function(){function r(e){this.chars=Qn(e),this.sets=[],this.length=50;for(var n=0;n<20;n++)this.sets[n]=bd(80,this.chars)}var t=r.prototype;return t.grow=function(n){for(var i=0;i<20;i++)this.sets[i]+=bd(n-this.length,this.chars);this.length=n},r}(),Fr,Td,Ad=function(){return Fr||typeof window<"u"&&(Fr=window.gsap)&&Fr.registerPlugin&&Fr},S_=1,Sd=/\s+/g,bd=function(t,e){for(var n=e.length,i="";--t>-1;)i+=e[~~(Math.random()*n)];return i},Jc="ABCDEFGHIJKLMNOPQRSTUVWXYZ",Ed=Jc.toLowerCase(),b_={upperCase:new Ao(Jc),lowerCase:new Ao(Ed),upperAndLowerCase:new Ao(Jc+Ed)},wd=function(){Td=Fr=Ad()},ba={version:"3.12.5",name:"scrambleText",register:function(t,e,n){Fr=t,wd()},init:function(t,e,n,i,s){if(Td||wd(),this.prop="innerHTML"in t?"innerHTML":"textContent"in t?"textContent":0,!!this.prop){this.target=t,typeof e!="object"&&(e={text:e});var a=e.text||e.value||"",o=e.trim!==!1,l=this,c,u,f,h;return l.delimiter=c=e.delimiter||"",l.original=Qn(To(t).replace(Sd," ").split(" ").join(""),c,o),(a==="{original}"||a===!0||a==null)&&(a=l.original.join(c)),l.text=Qn((a||"").replace(Sd," "),c,o),l.hasClass=!!(e.newClass||e.oldClass),l.newClass=e.newClass,l.oldClass=e.oldClass,h=c==="",l.textHasEmoji=h&&!!l.text.emoji,l.charsHaveEmoji=!!e.chars&&!!Qn(e.chars).emoji,l.length=h?l.original.length:l.original.join(c).length,l.lengthDif=(h?l.text.length:l.text.join(c).length)-l.length,l.fillChar=e.fillChar||e.chars&&~e.chars.indexOf(" ")?" ":"",l.charSet=f=b_[e.chars||"upperCase"]||new Ao(e.chars),l.speed=.05/(e.speed||1),l.prevScrambleTime=0,l.setIndex=Math.random()*20|0,u=l.length+Math.max(l.lengthDif,0),u>f.length&&f.grow(u),l.chars=f.sets[l.setIndex],l.revealDelay=e.revealDelay||0,l.tweenLength=e.tweenLength!==!1,l.tween=n,l.rightToLeft=!!e.rightToLeft,l._props.push("scrambleText","text"),S_}},render:function(t,e){var n=e.target,i=e.prop,s=e.text,a=e.delimiter,o=e.tween,l=e.prevScrambleTime,c=e.revealDelay,u=e.setIndex,f=e.chars,h=e.charSet,d=e.length,_=e.textHasEmoji,g=e.charsHaveEmoji,p=e.lengthDif,m=e.tweenLength,S=e.oldClass,v=e.newClass,M=e.rightToLeft,D=e.fillChar,T=e.speed,w=e.original,P=e.hasClass,y=s.length,x=o._time,F=x-l,I,R,B,G,Z,J,N,Q,A,at,bt;c&&(o._from&&(x=o._dur-x),t=x===0?0:x<c?1e-6:x===o._dur?1:o._ease((x-c)/(o._dur-c))),t<0?t=0:t>1&&(t=1),M&&(t=1-t),I=~~(t*y+.5),t?((F>T||F<-T)&&(e.setIndex=u=(u+(Math.random()*19|0))%20,e.chars=h.sets[u],e.prevScrambleTime+=F),G=f):G=w.join(a),bt=o._from?t:1-t,at=d+(m?o._from?bt*bt*bt:1-bt*bt*bt:1)*p,M?t===1&&(o._from||o.data==="isFromStart")?(B="",G=w.join(a)):(N=s.slice(I).join(a),g?B=Qn(G).slice(0,at-(_?Qn(N):N).length+.5|0).join(""):B=G.substr(0,at-(_?Qn(N):N).length+.5|0),G=N):(B=s.slice(0,I).join(a),R=(_?Qn(B):B).length,g?G=Qn(G).slice(R,at+.5|0).join(""):G=G.substr(R,at-R+.5|0)),P?(Q=M?S:v,A=M?v:S,Z=Q&&I!==0,J=A&&I!==y,N=(Z?"<span class='"+Q+"'>":"")+B+(Z?"</span>":"")+(J?"<span class='"+A+"'>":"")+a+G+(J?"</span>":"")):N=B+a+G,n[i]=D===" "&&~N.indexOf(" ")?N.split(" ").join(" "):N}};ba.emojiSafeSplit=Qn;ba.getText=To;Ad()&&Fr.registerPlugin(ba);bn.registerPlugin(ba);var Dd=()=>{document.querySelectorAll("[data-scramble-link]").forEach(t=>{let e=t.querySelector("[data-scramble-text]");if(!e)return;let n=e.textContent;t.addEventListener("mouseenter",()=>{bn.matchMedia().add("(min-width: 768px)",()=>{bn.to(e,{duration:1,scrambleText:{text:n,chars:"10"}})})})})};var dh="164";var E_=0,Cd=1,w_=2;var em=1,ph=2,Pi=3,or=0,Tn=1,Li=2,rr=0,sr=1,Rd=2,Pd=3,Id=4,T_=5,Hr=100,A_=101,D_=102,C_=103,R_=104,P_=200,I_=201,L_=202,F_=203,Ru=204,Pu=205,U_=206,N_=207,O_=208,B_=209,z_=210,k_=211,V_=212,H_=213,G_=214,W_=0,X_=1,q_=2,jo=3,Y_=4,Z_=5,J_=6,$_=7,nm=0,K_=1,Q_=2,ar=0,j_=1,t0=2,e0=3,n0=4,i0=5,r0=6,s0=7;var im=300,Bs=301,zs=302,Iu=303,Lu=304,Tl=306,Fu=1e3,Wr=1001,Uu=1002,Wn=1003,a0=1004;var Do=1005;var ni=1006,$c=1007;var Xr=1008;var lr=1009,o0=1010,l0=1011,rm=1012,sm=1013,ks=1014,nr=1015,Al=1016,am=1017,om=1018,Ua=1020,c0=35902,u0=1021,h0=1022,pi=1023,f0=1024,d0=1025,Us=1026,Pa=1027,p0=1028,lm=1029,m0=1030,cm=1031,um=1033,Kc=33776,Qc=33777,jc=33778,tu=33779,Ld=35840,Fd=35841,Ud=35842,Nd=35843,Od=36196,Bd=37492,zd=37496,kd=37808,Vd=37809,Hd=37810,Gd=37811,Wd=37812,Xd=37813,qd=37814,Yd=37815,Zd=37816,Jd=37817,$d=37818,Kd=37819,Qd=37820,jd=37821,eu=36492,tp=36494,ep=36495,g0=36283,np=36284,ip=36285,rp=36286;var tl=2300,el=2301,nu=2302,sp=2400,ap=2401,op=2402;var _0=3200,x0=3201,v0=0,y0=1,er="",Gn="srgb",hr="srgb-linear",mh="display-p3",Dl="display-p3-linear",nl="linear",_e="srgb",il="rec709",rl="p3";var gs=7680;var lp=519,M0=512,S0=513,b0=514,hm=515,E0=516,w0=517,T0=518,A0=519,cp=35044;var up="300 es",Fi=2e3,sl=2001,cr=class{addEventListener(t,e){this._listeners===void 0&&(this._listeners={});let n=this._listeners;n[t]===void 0&&(n[t]=[]),n[t].indexOf(e)===-1&&n[t].push(e)}hasEventListener(t,e){if(this._listeners===void 0)return!1;let n=this._listeners;return n[t]!==void 0&&n[t].indexOf(e)!==-1}removeEventListener(t,e){if(this._listeners===void 0)return;let i=this._listeners[t];if(i!==void 0){let s=i.indexOf(e);s!==-1&&i.splice(s,1)}}dispatchEvent(t){if(this._listeners===void 0)return;let n=this._listeners[t.type];if(n!==void 0){t.target=this;let i=n.slice(0);for(let s=0,a=i.length;s<a;s++)i[s].call(this,t);t.target=null}}},nn=["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","55","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"];var iu=Math.PI/180,Nu=180/Math.PI;function Na(){let r=Math.random()*4294967295|0,t=Math.random()*4294967295|0,e=Math.random()*4294967295|0,n=Math.random()*4294967295|0;return(nn[r&255]+nn[r>>8&255]+nn[r>>16&255]+nn[r>>24&255]+"-"+nn[t&255]+nn[t>>8&255]+"-"+nn[t>>16&15|64]+nn[t>>24&255]+"-"+nn[e&63|128]+nn[e>>8&255]+"-"+nn[e>>16&255]+nn[e>>24&255]+nn[n&255]+nn[n>>8&255]+nn[n>>16&255]+nn[n>>24&255]).toLowerCase()}function wn(r,t,e){return Math.max(t,Math.min(e,r))}function D0(r,t){return(r%t+t)%t}function ru(r,t,e){return(1-e)*r+e*t}function Ea(r,t){switch(t.constructor){case Float32Array:return r;case Uint32Array:return r/4294967295;case Uint16Array:return r/65535;case Uint8Array:return r/255;case Int32Array:return Math.max(r/2147483647,-1);case Int16Array:return Math.max(r/32767,-1);case Int8Array:return Math.max(r/127,-1);default:throw new Error("Invalid component type.")}}function En(r,t){switch(t.constructor){case Float32Array:return r;case Uint32Array:return Math.round(r*4294967295);case Uint16Array:return Math.round(r*65535);case Uint8Array:return Math.round(r*255);case Int32Array:return Math.round(r*2147483647);case Int16Array:return Math.round(r*32767);case Int8Array:return Math.round(r*127);default:throw new Error("Invalid component type.")}}var ae=class r{constructor(t=0,e=0){r.prototype.isVector2=!0,this.x=t,this.y=e}get width(){return this.x}set width(t){this.x=t}get height(){return this.y}set height(t){this.y=t}set(t,e){return this.x=t,this.y=e,this}setScalar(t){return this.x=t,this.y=t,this}setX(t){return this.x=t,this}setY(t){return this.y=t,this}setComponent(t,e){switch(t){case 0:this.x=e;break;case 1:this.y=e;break;default:throw new Error("index is out of range: "+t)}return this}getComponent(t){switch(t){case 0:return this.x;case 1:return this.y;default:throw new Error("index is out of range: "+t)}}clone(){return new this.constructor(this.x,this.y)}copy(t){return this.x=t.x,this.y=t.y,this}add(t){return this.x+=t.x,this.y+=t.y,this}addScalar(t){return this.x+=t,this.y+=t,this}addVectors(t,e){return this.x=t.x+e.x,this.y=t.y+e.y,this}addScaledVector(t,e){return this.x+=t.x*e,this.y+=t.y*e,this}sub(t){return this.x-=t.x,this.y-=t.y,this}subScalar(t){return this.x-=t,this.y-=t,this}subVectors(t,e){return this.x=t.x-e.x,this.y=t.y-e.y,this}multiply(t){return this.x*=t.x,this.y*=t.y,this}multiplyScalar(t){return this.x*=t,this.y*=t,this}divide(t){return this.x/=t.x,this.y/=t.y,this}divideScalar(t){return this.multiplyScalar(1/t)}applyMatrix3(t){let e=this.x,n=this.y,i=t.elements;return this.x=i[0]*e+i[3]*n+i[6],this.y=i[1]*e+i[4]*n+i[7],this}min(t){return this.x=Math.min(this.x,t.x),this.y=Math.min(this.y,t.y),this}max(t){return this.x=Math.max(this.x,t.x),this.y=Math.max(this.y,t.y),this}clamp(t,e){return this.x=Math.max(t.x,Math.min(e.x,this.x)),this.y=Math.max(t.y,Math.min(e.y,this.y)),this}clampScalar(t,e){return this.x=Math.max(t,Math.min(e,this.x)),this.y=Math.max(t,Math.min(e,this.y)),this}clampLength(t,e){let n=this.length();return this.divideScalar(n||1).multiplyScalar(Math.max(t,Math.min(e,n)))}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(t){return this.x*t.x+this.y*t.y}cross(t){return this.x*t.y-this.y*t.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(t){let e=Math.sqrt(this.lengthSq()*t.lengthSq());if(e===0)return Math.PI/2;let n=this.dot(t)/e;return Math.acos(wn(n,-1,1))}distanceTo(t){return Math.sqrt(this.distanceToSquared(t))}distanceToSquared(t){let e=this.x-t.x,n=this.y-t.y;return e*e+n*n}manhattanDistanceTo(t){return Math.abs(this.x-t.x)+Math.abs(this.y-t.y)}setLength(t){return this.normalize().multiplyScalar(t)}lerp(t,e){return this.x+=(t.x-this.x)*e,this.y+=(t.y-this.y)*e,this}lerpVectors(t,e,n){return this.x=t.x+(e.x-t.x)*n,this.y=t.y+(e.y-t.y)*n,this}equals(t){return t.x===this.x&&t.y===this.y}fromArray(t,e=0){return this.x=t[e],this.y=t[e+1],this}toArray(t=[],e=0){return t[e]=this.x,t[e+1]=this.y,t}fromBufferAttribute(t,e){return this.x=t.getX(e),this.y=t.getY(e),this}rotateAround(t,e){let n=Math.cos(e),i=Math.sin(e),s=this.x-t.x,a=this.y-t.y;return this.x=s*n-a*i+t.x,this.y=s*i+a*n+t.y,this}random(){return this.x=Math.random(),this.y=Math.random(),this}*[Symbol.iterator](){yield this.x,yield this.y}},qt=class r{constructor(t,e,n,i,s,a,o,l,c){r.prototype.isMatrix3=!0,this.elements=[1,0,0,0,1,0,0,0,1],t!==void 0&&this.set(t,e,n,i,s,a,o,l,c)}set(t,e,n,i,s,a,o,l,c){let u=this.elements;return u[0]=t,u[1]=i,u[2]=o,u[3]=e,u[4]=s,u[5]=l,u[6]=n,u[7]=a,u[8]=c,this}identity(){return this.set(1,0,0,0,1,0,0,0,1),this}copy(t){let e=this.elements,n=t.elements;return e[0]=n[0],e[1]=n[1],e[2]=n[2],e[3]=n[3],e[4]=n[4],e[5]=n[5],e[6]=n[6],e[7]=n[7],e[8]=n[8],this}extractBasis(t,e,n){return t.setFromMatrix3Column(this,0),e.setFromMatrix3Column(this,1),n.setFromMatrix3Column(this,2),this}setFromMatrix4(t){let e=t.elements;return this.set(e[0],e[4],e[8],e[1],e[5],e[9],e[2],e[6],e[10]),this}multiply(t){return this.multiplyMatrices(this,t)}premultiply(t){return this.multiplyMatrices(t,this)}multiplyMatrices(t,e){let n=t.elements,i=e.elements,s=this.elements,a=n[0],o=n[3],l=n[6],c=n[1],u=n[4],f=n[7],h=n[2],d=n[5],_=n[8],g=i[0],p=i[3],m=i[6],S=i[1],v=i[4],M=i[7],D=i[2],T=i[5],w=i[8];return s[0]=a*g+o*S+l*D,s[3]=a*p+o*v+l*T,s[6]=a*m+o*M+l*w,s[1]=c*g+u*S+f*D,s[4]=c*p+u*v+f*T,s[7]=c*m+u*M+f*w,s[2]=h*g+d*S+_*D,s[5]=h*p+d*v+_*T,s[8]=h*m+d*M+_*w,this}multiplyScalar(t){let e=this.elements;return e[0]*=t,e[3]*=t,e[6]*=t,e[1]*=t,e[4]*=t,e[7]*=t,e[2]*=t,e[5]*=t,e[8]*=t,this}determinant(){let t=this.elements,e=t[0],n=t[1],i=t[2],s=t[3],a=t[4],o=t[5],l=t[6],c=t[7],u=t[8];return e*a*u-e*o*c-n*s*u+n*o*l+i*s*c-i*a*l}invert(){let t=this.elements,e=t[0],n=t[1],i=t[2],s=t[3],a=t[4],o=t[5],l=t[6],c=t[7],u=t[8],f=u*a-o*c,h=o*l-u*s,d=c*s-a*l,_=e*f+n*h+i*d;if(_===0)return this.set(0,0,0,0,0,0,0,0,0);let g=1/_;return t[0]=f*g,t[1]=(i*c-u*n)*g,t[2]=(o*n-i*a)*g,t[3]=h*g,t[4]=(u*e-i*l)*g,t[5]=(i*s-o*e)*g,t[6]=d*g,t[7]=(n*l-c*e)*g,t[8]=(a*e-n*s)*g,this}transpose(){let t,e=this.elements;return t=e[1],e[1]=e[3],e[3]=t,t=e[2],e[2]=e[6],e[6]=t,t=e[5],e[5]=e[7],e[7]=t,this}getNormalMatrix(t){return this.setFromMatrix4(t).invert().transpose()}transposeIntoArray(t){let e=this.elements;return t[0]=e[0],t[1]=e[3],t[2]=e[6],t[3]=e[1],t[4]=e[4],t[5]=e[7],t[6]=e[2],t[7]=e[5],t[8]=e[8],this}setUvTransform(t,e,n,i,s,a,o){let l=Math.cos(s),c=Math.sin(s);return this.set(n*l,n*c,-n*(l*a+c*o)+a+t,-i*c,i*l,-i*(-c*a+l*o)+o+e,0,0,1),this}scale(t,e){return this.premultiply(su.makeScale(t,e)),this}rotate(t){return this.premultiply(su.makeRotation(-t)),this}translate(t,e){return this.premultiply(su.makeTranslation(t,e)),this}makeTranslation(t,e){return t.isVector2?this.set(1,0,t.x,0,1,t.y,0,0,1):this.set(1,0,t,0,1,e,0,0,1),this}makeRotation(t){let e=Math.cos(t),n=Math.sin(t);return this.set(e,-n,0,n,e,0,0,0,1),this}makeScale(t,e){return this.set(t,0,0,0,e,0,0,0,1),this}equals(t){let e=this.elements,n=t.elements;for(let i=0;i<9;i++)if(e[i]!==n[i])return!1;return!0}fromArray(t,e=0){for(let n=0;n<9;n++)this.elements[n]=t[n+e];return this}toArray(t=[],e=0){let n=this.elements;return t[e]=n[0],t[e+1]=n[1],t[e+2]=n[2],t[e+3]=n[3],t[e+4]=n[4],t[e+5]=n[5],t[e+6]=n[6],t[e+7]=n[7],t[e+8]=n[8],t}clone(){return new this.constructor().fromArray(this.elements)}},su=new qt;function fm(r){for(let t=r.length-1;t>=0;--t)if(r[t]>=65535)return!0;return!1}function al(r){return document.createElementNS("http://www.w3.org/1999/xhtml",r)}function C0(){let r=al("canvas");return r.style.display="block",r}var hp={};function R0(r){r in hp||(hp[r]=!0,console.warn(r))}var fp=new qt().set(.8224621,.177538,0,.0331941,.9668058,0,.0170827,.0723974,.9105199),dp=new qt().set(1.2249401,-.2249404,0,-.0420569,1.0420571,0,-.0196376,-.0786361,1.0982735),Co={[hr]:{transfer:nl,primaries:il,toReference:r=>r,fromReference:r=>r},[Gn]:{transfer:_e,primaries:il,toReference:r=>r.convertSRGBToLinear(),fromReference:r=>r.convertLinearToSRGB()},[Dl]:{transfer:nl,primaries:rl,toReference:r=>r.applyMatrix3(dp),fromReference:r=>r.applyMatrix3(fp)},[mh]:{transfer:_e,primaries:rl,toReference:r=>r.convertSRGBToLinear().applyMatrix3(dp),fromReference:r=>r.applyMatrix3(fp).convertLinearToSRGB()}},P0=new Set([hr,Dl]),he={enabled:!0,_workingColorSpace:hr,get workingColorSpace(){return this._workingColorSpace},set workingColorSpace(r){if(!P0.has(r))throw new Error(`Unsupported working color space, "${r}".`);this._workingColorSpace=r},convert:function(r,t,e){if(this.enabled===!1||t===e||!t||!e)return r;let n=Co[t].toReference,i=Co[e].fromReference;return i(n(r))},fromWorkingColorSpace:function(r,t){return this.convert(r,this._workingColorSpace,t)},toWorkingColorSpace:function(r,t){return this.convert(r,t,this._workingColorSpace)},getPrimaries:function(r){return Co[r].primaries},getTransfer:function(r){return r===er?nl:Co[r].transfer}};function Ns(r){return r<.04045?r*.0773993808:Math.pow(r*.9478672986+.0521327014,2.4)}function au(r){return r<.0031308?r*12.92:1.055*Math.pow(r,.41666)-.055}var _s,Ou=class{static getDataURL(t){if(/^data:/i.test(t.src)||typeof HTMLCanvasElement>"u")return t.src;let e;if(t instanceof HTMLCanvasElement)e=t;else{_s===void 0&&(_s=al("canvas")),_s.width=t.width,_s.height=t.height;let n=_s.getContext("2d");t instanceof ImageData?n.putImageData(t,0,0):n.drawImage(t,0,0,t.width,t.height),e=_s}return e.width>2048||e.height>2048?(console.warn("THREE.ImageUtils.getDataURL: Image converted to jpg for performance reasons",t),e.toDataURL("image/jpeg",.6)):e.toDataURL("image/png")}static sRGBToLinear(t){if(typeof HTMLImageElement<"u"&&t instanceof HTMLImageElement||typeof HTMLCanvasElement<"u"&&t instanceof HTMLCanvasElement||typeof ImageBitmap<"u"&&t instanceof ImageBitmap){let e=al("canvas");e.width=t.width,e.height=t.height;let n=e.getContext("2d");n.drawImage(t,0,0,t.width,t.height);let i=n.getImageData(0,0,t.width,t.height),s=i.data;for(let a=0;a<s.length;a++)s[a]=Ns(s[a]/255)*255;return n.putImageData(i,0,0),e}else if(t.data){let e=t.data.slice(0);for(let n=0;n<e.length;n++)e instanceof Uint8Array||e instanceof Uint8ClampedArray?e[n]=Math.floor(Ns(e[n]/255)*255):e[n]=Ns(e[n]);return{data:e,width:t.width,height:t.height}}else return console.warn("THREE.ImageUtils.sRGBToLinear(): Unsupported image type. No color space conversion applied."),t}},I0=0,ol=class{constructor(t=null){this.isSource=!0,Object.defineProperty(this,"id",{value:I0++}),this.uuid=Na(),this.data=t,this.dataReady=!0,this.version=0}set needsUpdate(t){t===!0&&this.version++}toJSON(t){let e=t===void 0||typeof t=="string";if(!e&&t.images[this.uuid]!==void 0)return t.images[this.uuid];let n={uuid:this.uuid,url:""},i=this.data;if(i!==null){let s;if(Array.isArray(i)){s=[];for(let a=0,o=i.length;a<o;a++)i[a].isDataTexture?s.push(ou(i[a].image)):s.push(ou(i[a]))}else s=ou(i);n.url=s}return e||(t.images[this.uuid]=n),n}};function ou(r){return typeof HTMLImageElement<"u"&&r instanceof HTMLImageElement||typeof HTMLCanvasElement<"u"&&r instanceof HTMLCanvasElement||typeof ImageBitmap<"u"&&r instanceof ImageBitmap?Ou.getDataURL(r):r.data?{data:Array.from(r.data),width:r.width,height:r.height,type:r.data.constructor.name}:(console.warn("THREE.Texture: Unable to serialize Texture."),{})}var L0=0,Yn=class r extends cr{constructor(t=r.DEFAULT_IMAGE,e=r.DEFAULT_MAPPING,n=Wr,i=Wr,s=ni,a=Xr,o=pi,l=lr,c=r.DEFAULT_ANISOTROPY,u=er){super(),this.isTexture=!0,Object.defineProperty(this,"id",{value:L0++}),this.uuid=Na(),this.name="",this.source=new ol(t),this.mipmaps=[],this.mapping=e,this.channel=0,this.wrapS=n,this.wrapT=i,this.magFilter=s,this.minFilter=a,this.anisotropy=c,this.format=o,this.internalFormat=null,this.type=l,this.offset=new ae(0,0),this.repeat=new ae(1,1),this.center=new ae(0,0),this.rotation=0,this.matrixAutoUpdate=!0,this.matrix=new qt,this.generateMipmaps=!0,this.premultiplyAlpha=!1,this.flipY=!0,this.unpackAlignment=4,this.colorSpace=u,this.userData={},this.version=0,this.onUpdate=null,this.isRenderTargetTexture=!1,this.pmremVersion=0}get image(){return this.source.data}set image(t=null){this.source.data=t}updateMatrix(){this.matrix.setUvTransform(this.offset.x,this.offset.y,this.repeat.x,this.repeat.y,this.rotation,this.center.x,this.center.y)}clone(){return new this.constructor().copy(this)}copy(t){return this.name=t.name,this.source=t.source,this.mipmaps=t.mipmaps.slice(0),this.mapping=t.mapping,this.channel=t.channel,this.wrapS=t.wrapS,this.wrapT=t.wrapT,this.magFilter=t.magFilter,this.minFilter=t.minFilter,this.anisotropy=t.anisotropy,this.format=t.format,this.internalFormat=t.internalFormat,this.type=t.type,this.offset.copy(t.offset),this.repeat.copy(t.repeat),this.center.copy(t.center),this.rotation=t.rotation,this.matrixAutoUpdate=t.matrixAutoUpdate,this.matrix.copy(t.matrix),this.generateMipmaps=t.generateMipmaps,this.premultiplyAlpha=t.premultiplyAlpha,this.flipY=t.flipY,this.unpackAlignment=t.unpackAlignment,this.colorSpace=t.colorSpace,this.userData=JSON.parse(JSON.stringify(t.userData)),this.needsUpdate=!0,this}toJSON(t){let e=t===void 0||typeof t=="string";if(!e&&t.textures[this.uuid]!==void 0)return t.textures[this.uuid];let n={metadata:{version:4.6,type:"Texture",generator:"Texture.toJSON"},uuid:this.uuid,name:this.name,image:this.source.toJSON(t).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),e||(t.textures[this.uuid]=n),n}dispose(){this.dispatchEvent({type:"dispose"})}transformUv(t){if(this.mapping!==im)return t;if(t.applyMatrix3(this.matrix),t.x<0||t.x>1)switch(this.wrapS){case Fu:t.x=t.x-Math.floor(t.x);break;case Wr:t.x=t.x<0?0:1;break;case Uu:Math.abs(Math.floor(t.x)%2)===1?t.x=Math.ceil(t.x)-t.x:t.x=t.x-Math.floor(t.x);break}if(t.y<0||t.y>1)switch(this.wrapT){case Fu:t.y=t.y-Math.floor(t.y);break;case Wr:t.y=t.y<0?0:1;break;case Uu:Math.abs(Math.floor(t.y)%2)===1?t.y=Math.ceil(t.y)-t.y:t.y=t.y-Math.floor(t.y);break}return this.flipY&&(t.y=1-t.y),t}set needsUpdate(t){t===!0&&(this.version++,this.source.needsUpdate=!0)}set needsPMREMUpdate(t){t===!0&&this.pmremVersion++}};Yn.DEFAULT_IMAGE=null;Yn.DEFAULT_MAPPING=im;Yn.DEFAULT_ANISOTROPY=1;var We=class r{constructor(t=0,e=0,n=0,i=1){r.prototype.isVector4=!0,this.x=t,this.y=e,this.z=n,this.w=i}get width(){return this.z}set width(t){this.z=t}get height(){return this.w}set height(t){this.w=t}set(t,e,n,i){return this.x=t,this.y=e,this.z=n,this.w=i,this}setScalar(t){return this.x=t,this.y=t,this.z=t,this.w=t,this}setX(t){return this.x=t,this}setY(t){return this.y=t,this}setZ(t){return this.z=t,this}setW(t){return this.w=t,this}setComponent(t,e){switch(t){case 0:this.x=e;break;case 1:this.y=e;break;case 2:this.z=e;break;case 3:this.w=e;break;default:throw new Error("index is out of range: "+t)}return this}getComponent(t){switch(t){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: "+t)}}clone(){return new this.constructor(this.x,this.y,this.z,this.w)}copy(t){return this.x=t.x,this.y=t.y,this.z=t.z,this.w=t.w!==void 0?t.w:1,this}add(t){return this.x+=t.x,this.y+=t.y,this.z+=t.z,this.w+=t.w,this}addScalar(t){return this.x+=t,this.y+=t,this.z+=t,this.w+=t,this}addVectors(t,e){return this.x=t.x+e.x,this.y=t.y+e.y,this.z=t.z+e.z,this.w=t.w+e.w,this}addScaledVector(t,e){return this.x+=t.x*e,this.y+=t.y*e,this.z+=t.z*e,this.w+=t.w*e,this}sub(t){return this.x-=t.x,this.y-=t.y,this.z-=t.z,this.w-=t.w,this}subScalar(t){return this.x-=t,this.y-=t,this.z-=t,this.w-=t,this}subVectors(t,e){return this.x=t.x-e.x,this.y=t.y-e.y,this.z=t.z-e.z,this.w=t.w-e.w,this}multiply(t){return this.x*=t.x,this.y*=t.y,this.z*=t.z,this.w*=t.w,this}multiplyScalar(t){return this.x*=t,this.y*=t,this.z*=t,this.w*=t,this}applyMatrix4(t){let e=this.x,n=this.y,i=this.z,s=this.w,a=t.elements;return this.x=a[0]*e+a[4]*n+a[8]*i+a[12]*s,this.y=a[1]*e+a[5]*n+a[9]*i+a[13]*s,this.z=a[2]*e+a[6]*n+a[10]*i+a[14]*s,this.w=a[3]*e+a[7]*n+a[11]*i+a[15]*s,this}divideScalar(t){return this.multiplyScalar(1/t)}setAxisAngleFromQuaternion(t){this.w=2*Math.acos(t.w);let e=Math.sqrt(1-t.w*t.w);return e<1e-4?(this.x=1,this.y=0,this.z=0):(this.x=t.x/e,this.y=t.y/e,this.z=t.z/e),this}setAxisAngleFromRotationMatrix(t){let e,n,i,s,l=t.elements,c=l[0],u=l[4],f=l[8],h=l[1],d=l[5],_=l[9],g=l[2],p=l[6],m=l[10];if(Math.abs(u-h)<.01&&Math.abs(f-g)<.01&&Math.abs(_-p)<.01){if(Math.abs(u+h)<.1&&Math.abs(f+g)<.1&&Math.abs(_+p)<.1&&Math.abs(c+d+m-3)<.1)return this.set(1,0,0,0),this;e=Math.PI;let v=(c+1)/2,M=(d+1)/2,D=(m+1)/2,T=(u+h)/4,w=(f+g)/4,P=(_+p)/4;return v>M&&v>D?v<.01?(n=0,i=.707106781,s=.707106781):(n=Math.sqrt(v),i=T/n,s=w/n):M>D?M<.01?(n=.707106781,i=0,s=.707106781):(i=Math.sqrt(M),n=T/i,s=P/i):D<.01?(n=.707106781,i=.707106781,s=0):(s=Math.sqrt(D),n=w/s,i=P/s),this.set(n,i,s,e),this}let S=Math.sqrt((p-_)*(p-_)+(f-g)*(f-g)+(h-u)*(h-u));return Math.abs(S)<.001&&(S=1),this.x=(p-_)/S,this.y=(f-g)/S,this.z=(h-u)/S,this.w=Math.acos((c+d+m-1)/2),this}min(t){return this.x=Math.min(this.x,t.x),this.y=Math.min(this.y,t.y),this.z=Math.min(this.z,t.z),this.w=Math.min(this.w,t.w),this}max(t){return this.x=Math.max(this.x,t.x),this.y=Math.max(this.y,t.y),this.z=Math.max(this.z,t.z),this.w=Math.max(this.w,t.w),this}clamp(t,e){return this.x=Math.max(t.x,Math.min(e.x,this.x)),this.y=Math.max(t.y,Math.min(e.y,this.y)),this.z=Math.max(t.z,Math.min(e.z,this.z)),this.w=Math.max(t.w,Math.min(e.w,this.w)),this}clampScalar(t,e){return this.x=Math.max(t,Math.min(e,this.x)),this.y=Math.max(t,Math.min(e,this.y)),this.z=Math.max(t,Math.min(e,this.z)),this.w=Math.max(t,Math.min(e,this.w)),this}clampLength(t,e){let n=this.length();return this.divideScalar(n||1).multiplyScalar(Math.max(t,Math.min(e,n)))}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(t){return this.x*t.x+this.y*t.y+this.z*t.z+this.w*t.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(t){return this.normalize().multiplyScalar(t)}lerp(t,e){return this.x+=(t.x-this.x)*e,this.y+=(t.y-this.y)*e,this.z+=(t.z-this.z)*e,this.w+=(t.w-this.w)*e,this}lerpVectors(t,e,n){return this.x=t.x+(e.x-t.x)*n,this.y=t.y+(e.y-t.y)*n,this.z=t.z+(e.z-t.z)*n,this.w=t.w+(e.w-t.w)*n,this}equals(t){return t.x===this.x&&t.y===this.y&&t.z===this.z&&t.w===this.w}fromArray(t,e=0){return this.x=t[e],this.y=t[e+1],this.z=t[e+2],this.w=t[e+3],this}toArray(t=[],e=0){return t[e]=this.x,t[e+1]=this.y,t[e+2]=this.z,t[e+3]=this.w,t}fromBufferAttribute(t,e){return this.x=t.getX(e),this.y=t.getY(e),this.z=t.getZ(e),this.w=t.getW(e),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}},Bu=class extends cr{constructor(t=1,e=1,n={}){super(),this.isRenderTarget=!0,this.width=t,this.height=e,this.depth=1,this.scissor=new We(0,0,t,e),this.scissorTest=!1,this.viewport=new We(0,0,t,e);let i={width:t,height:e,depth:1};n=Object.assign({generateMipmaps:!1,internalFormat:null,minFilter:ni,depthBuffer:!0,stencilBuffer:!1,resolveDepthBuffer:!0,resolveStencilBuffer:!0,depthTexture:null,samples:0,count:1},n);let s=new Yn(i,n.mapping,n.wrapS,n.wrapT,n.magFilter,n.minFilter,n.format,n.type,n.anisotropy,n.colorSpace);s.flipY=!1,s.generateMipmaps=n.generateMipmaps,s.internalFormat=n.internalFormat,this.textures=[];let a=n.count;for(let o=0;o<a;o++)this.textures[o]=s.clone(),this.textures[o].isRenderTargetTexture=!0;this.depthBuffer=n.depthBuffer,this.stencilBuffer=n.stencilBuffer,this.resolveDepthBuffer=n.resolveDepthBuffer,this.resolveStencilBuffer=n.resolveStencilBuffer,this.depthTexture=n.depthTexture,this.samples=n.samples}get texture(){return this.textures[0]}set texture(t){this.textures[0]=t}setSize(t,e,n=1){if(this.width!==t||this.height!==e||this.depth!==n){this.width=t,this.height=e,this.depth=n;for(let i=0,s=this.textures.length;i<s;i++)this.textures[i].image.width=t,this.textures[i].image.height=e,this.textures[i].image.depth=n;this.dispose()}this.viewport.set(0,0,t,e),this.scissor.set(0,0,t,e)}clone(){return new this.constructor().copy(this)}copy(t){this.width=t.width,this.height=t.height,this.depth=t.depth,this.scissor.copy(t.scissor),this.scissorTest=t.scissorTest,this.viewport.copy(t.viewport),this.textures.length=0;for(let n=0,i=t.textures.length;n<i;n++)this.textures[n]=t.textures[n].clone(),this.textures[n].isRenderTargetTexture=!0;let e=Object.assign({},t.texture.image);return this.texture.source=new ol(e),this.depthBuffer=t.depthBuffer,this.stencilBuffer=t.stencilBuffer,this.resolveDepthBuffer=t.resolveDepthBuffer,this.resolveStencilBuffer=t.resolveStencilBuffer,t.depthTexture!==null&&(this.depthTexture=t.depthTexture.clone()),this.samples=t.samples,this}dispose(){this.dispatchEvent({type:"dispose"})}},Ui=class extends Bu{constructor(t=1,e=1,n={}){super(t,e,n),this.isWebGLRenderTarget=!0}},ll=class extends Yn{constructor(t=null,e=1,n=1,i=1){super(null),this.isDataArrayTexture=!0,this.image={data:t,width:e,height:n,depth:i},this.magFilter=Wn,this.minFilter=Wn,this.wrapR=Wr,this.generateMipmaps=!1,this.flipY=!1,this.unpackAlignment=1}};var zu=class extends Yn{constructor(t=null,e=1,n=1,i=1){super(null),this.isData3DTexture=!0,this.image={data:t,width:e,height:n,depth:i},this.magFilter=Wn,this.minFilter=Wn,this.wrapR=Wr,this.generateMipmaps=!1,this.flipY=!1,this.unpackAlignment=1}};var ur=class{constructor(t=0,e=0,n=0,i=1){this.isQuaternion=!0,this._x=t,this._y=e,this._z=n,this._w=i}static slerpFlat(t,e,n,i,s,a,o){let l=n[i+0],c=n[i+1],u=n[i+2],f=n[i+3],h=s[a+0],d=s[a+1],_=s[a+2],g=s[a+3];if(o===0){t[e+0]=l,t[e+1]=c,t[e+2]=u,t[e+3]=f;return}if(o===1){t[e+0]=h,t[e+1]=d,t[e+2]=_,t[e+3]=g;return}if(f!==g||l!==h||c!==d||u!==_){let p=1-o,m=l*h+c*d+u*_+f*g,S=m>=0?1:-1,v=1-m*m;if(v>Number.EPSILON){let D=Math.sqrt(v),T=Math.atan2(D,m*S);p=Math.sin(p*T)/D,o=Math.sin(o*T)/D}let M=o*S;if(l=l*p+h*M,c=c*p+d*M,u=u*p+_*M,f=f*p+g*M,p===1-o){let D=1/Math.sqrt(l*l+c*c+u*u+f*f);l*=D,c*=D,u*=D,f*=D}}t[e]=l,t[e+1]=c,t[e+2]=u,t[e+3]=f}static multiplyQuaternionsFlat(t,e,n,i,s,a){let o=n[i],l=n[i+1],c=n[i+2],u=n[i+3],f=s[a],h=s[a+1],d=s[a+2],_=s[a+3];return t[e]=o*_+u*f+l*d-c*h,t[e+1]=l*_+u*h+c*f-o*d,t[e+2]=c*_+u*d+o*h-l*f,t[e+3]=u*_-o*f-l*h-c*d,t}get x(){return this._x}set x(t){this._x=t,this._onChangeCallback()}get y(){return this._y}set y(t){this._y=t,this._onChangeCallback()}get z(){return this._z}set z(t){this._z=t,this._onChangeCallback()}get w(){return this._w}set w(t){this._w=t,this._onChangeCallback()}set(t,e,n,i){return this._x=t,this._y=e,this._z=n,this._w=i,this._onChangeCallback(),this}clone(){return new this.constructor(this._x,this._y,this._z,this._w)}copy(t){return this._x=t.x,this._y=t.y,this._z=t.z,this._w=t.w,this._onChangeCallback(),this}setFromEuler(t,e=!0){let n=t._x,i=t._y,s=t._z,a=t._order,o=Math.cos,l=Math.sin,c=o(n/2),u=o(i/2),f=o(s/2),h=l(n/2),d=l(i/2),_=l(s/2);switch(a){case"XYZ":this._x=h*u*f+c*d*_,this._y=c*d*f-h*u*_,this._z=c*u*_+h*d*f,this._w=c*u*f-h*d*_;break;case"YXZ":this._x=h*u*f+c*d*_,this._y=c*d*f-h*u*_,this._z=c*u*_-h*d*f,this._w=c*u*f+h*d*_;break;case"ZXY":this._x=h*u*f-c*d*_,this._y=c*d*f+h*u*_,this._z=c*u*_+h*d*f,this._w=c*u*f-h*d*_;break;case"ZYX":this._x=h*u*f-c*d*_,this._y=c*d*f+h*u*_,this._z=c*u*_-h*d*f,this._w=c*u*f+h*d*_;break;case"YZX":this._x=h*u*f+c*d*_,this._y=c*d*f+h*u*_,this._z=c*u*_-h*d*f,this._w=c*u*f-h*d*_;break;case"XZY":this._x=h*u*f-c*d*_,this._y=c*d*f-h*u*_,this._z=c*u*_+h*d*f,this._w=c*u*f+h*d*_;break;default:console.warn("THREE.Quaternion: .setFromEuler() encountered an unknown order: "+a)}return e===!0&&this._onChangeCallback(),this}setFromAxisAngle(t,e){let n=e/2,i=Math.sin(n);return this._x=t.x*i,this._y=t.y*i,this._z=t.z*i,this._w=Math.cos(n),this._onChangeCallback(),this}setFromRotationMatrix(t){let e=t.elements,n=e[0],i=e[4],s=e[8],a=e[1],o=e[5],l=e[9],c=e[2],u=e[6],f=e[10],h=n+o+f;if(h>0){let d=.5/Math.sqrt(h+1);this._w=.25/d,this._x=(u-l)*d,this._y=(s-c)*d,this._z=(a-i)*d}else if(n>o&&n>f){let d=2*Math.sqrt(1+n-o-f);this._w=(u-l)/d,this._x=.25*d,this._y=(i+a)/d,this._z=(s+c)/d}else if(o>f){let d=2*Math.sqrt(1+o-n-f);this._w=(s-c)/d,this._x=(i+a)/d,this._y=.25*d,this._z=(l+u)/d}else{let d=2*Math.sqrt(1+f-n-o);this._w=(a-i)/d,this._x=(s+c)/d,this._y=(l+u)/d,this._z=.25*d}return this._onChangeCallback(),this}setFromUnitVectors(t,e){let n=t.dot(e)+1;return n<Number.EPSILON?(n=0,Math.abs(t.x)>Math.abs(t.z)?(this._x=-t.y,this._y=t.x,this._z=0,this._w=n):(this._x=0,this._y=-t.z,this._z=t.y,this._w=n)):(this._x=t.y*e.z-t.z*e.y,this._y=t.z*e.x-t.x*e.z,this._z=t.x*e.y-t.y*e.x,this._w=n),this.normalize()}angleTo(t){return 2*Math.acos(Math.abs(wn(this.dot(t),-1,1)))}rotateTowards(t,e){let n=this.angleTo(t);if(n===0)return this;let i=Math.min(1,e/n);return this.slerp(t,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(t){return this._x*t._x+this._y*t._y+this._z*t._z+this._w*t._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 t=this.length();return t===0?(this._x=0,this._y=0,this._z=0,this._w=1):(t=1/t,this._x=this._x*t,this._y=this._y*t,this._z=this._z*t,this._w=this._w*t),this._onChangeCallback(),this}multiply(t){return this.multiplyQuaternions(this,t)}premultiply(t){return this.multiplyQuaternions(t,this)}multiplyQuaternions(t,e){let n=t._x,i=t._y,s=t._z,a=t._w,o=e._x,l=e._y,c=e._z,u=e._w;return this._x=n*u+a*o+i*c-s*l,this._y=i*u+a*l+s*o-n*c,this._z=s*u+a*c+n*l-i*o,this._w=a*u-n*o-i*l-s*c,this._onChangeCallback(),this}slerp(t,e){if(e===0)return this;if(e===1)return this.copy(t);let n=this._x,i=this._y,s=this._z,a=this._w,o=a*t._w+n*t._x+i*t._y+s*t._z;if(o<0?(this._w=-t._w,this._x=-t._x,this._y=-t._y,this._z=-t._z,o=-o):this.copy(t),o>=1)return this._w=a,this._x=n,this._y=i,this._z=s,this;let l=1-o*o;if(l<=Number.EPSILON){let d=1-e;return this._w=d*a+e*this._w,this._x=d*n+e*this._x,this._y=d*i+e*this._y,this._z=d*s+e*this._z,this.normalize(),this}let c=Math.sqrt(l),u=Math.atan2(c,o),f=Math.sin((1-e)*u)/c,h=Math.sin(e*u)/c;return this._w=a*f+this._w*h,this._x=n*f+this._x*h,this._y=i*f+this._y*h,this._z=s*f+this._z*h,this._onChangeCallback(),this}slerpQuaternions(t,e,n){return this.copy(t).slerp(e,n)}random(){let t=2*Math.PI*Math.random(),e=2*Math.PI*Math.random(),n=Math.random(),i=Math.sqrt(1-n),s=Math.sqrt(n);return this.set(i*Math.sin(t),i*Math.cos(t),s*Math.sin(e),s*Math.cos(e))}equals(t){return t._x===this._x&&t._y===this._y&&t._z===this._z&&t._w===this._w}fromArray(t,e=0){return this._x=t[e],this._y=t[e+1],this._z=t[e+2],this._w=t[e+3],this._onChangeCallback(),this}toArray(t=[],e=0){return t[e]=this._x,t[e+1]=this._y,t[e+2]=this._z,t[e+3]=this._w,t}fromBufferAttribute(t,e){return this._x=t.getX(e),this._y=t.getY(e),this._z=t.getZ(e),this._w=t.getW(e),this._onChangeCallback(),this}toJSON(){return this.toArray()}_onChange(t){return this._onChangeCallback=t,this}_onChangeCallback(){}*[Symbol.iterator](){yield this._x,yield this._y,yield this._z,yield this._w}},q=class r{constructor(t=0,e=0,n=0){r.prototype.isVector3=!0,this.x=t,this.y=e,this.z=n}set(t,e,n){return n===void 0&&(n=this.z),this.x=t,this.y=e,this.z=n,this}setScalar(t){return this.x=t,this.y=t,this.z=t,this}setX(t){return this.x=t,this}setY(t){return this.y=t,this}setZ(t){return this.z=t,this}setComponent(t,e){switch(t){case 0:this.x=e;break;case 1:this.y=e;break;case 2:this.z=e;break;default:throw new Error("index is out of range: "+t)}return this}getComponent(t){switch(t){case 0:return this.x;case 1:return this.y;case 2:return this.z;default:throw new Error("index is out of range: "+t)}}clone(){return new this.constructor(this.x,this.y,this.z)}copy(t){return this.x=t.x,this.y=t.y,this.z=t.z,this}add(t){return this.x+=t.x,this.y+=t.y,this.z+=t.z,this}addScalar(t){return this.x+=t,this.y+=t,this.z+=t,this}addVectors(t,e){return this.x=t.x+e.x,this.y=t.y+e.y,this.z=t.z+e.z,this}addScaledVector(t,e){return this.x+=t.x*e,this.y+=t.y*e,this.z+=t.z*e,this}sub(t){return this.x-=t.x,this.y-=t.y,this.z-=t.z,this}subScalar(t){return this.x-=t,this.y-=t,this.z-=t,this}subVectors(t,e){return this.x=t.x-e.x,this.y=t.y-e.y,this.z=t.z-e.z,this}multiply(t){return this.x*=t.x,this.y*=t.y,this.z*=t.z,this}multiplyScalar(t){return this.x*=t,this.y*=t,this.z*=t,this}multiplyVectors(t,e){return this.x=t.x*e.x,this.y=t.y*e.y,this.z=t.z*e.z,this}applyEuler(t){return this.applyQuaternion(pp.setFromEuler(t))}applyAxisAngle(t,e){return this.applyQuaternion(pp.setFromAxisAngle(t,e))}applyMatrix3(t){let e=this.x,n=this.y,i=this.z,s=t.elements;return this.x=s[0]*e+s[3]*n+s[6]*i,this.y=s[1]*e+s[4]*n+s[7]*i,this.z=s[2]*e+s[5]*n+s[8]*i,this}applyNormalMatrix(t){return this.applyMatrix3(t).normalize()}applyMatrix4(t){let e=this.x,n=this.y,i=this.z,s=t.elements,a=1/(s[3]*e+s[7]*n+s[11]*i+s[15]);return this.x=(s[0]*e+s[4]*n+s[8]*i+s[12])*a,this.y=(s[1]*e+s[5]*n+s[9]*i+s[13])*a,this.z=(s[2]*e+s[6]*n+s[10]*i+s[14])*a,this}applyQuaternion(t){let e=this.x,n=this.y,i=this.z,s=t.x,a=t.y,o=t.z,l=t.w,c=2*(a*i-o*n),u=2*(o*e-s*i),f=2*(s*n-a*e);return this.x=e+l*c+a*f-o*u,this.y=n+l*u+o*c-s*f,this.z=i+l*f+s*u-a*c,this}project(t){return this.applyMatrix4(t.matrixWorldInverse).applyMatrix4(t.projectionMatrix)}unproject(t){return this.applyMatrix4(t.projectionMatrixInverse).applyMatrix4(t.matrixWorld)}transformDirection(t){let e=this.x,n=this.y,i=this.z,s=t.elements;return this.x=s[0]*e+s[4]*n+s[8]*i,this.y=s[1]*e+s[5]*n+s[9]*i,this.z=s[2]*e+s[6]*n+s[10]*i,this.normalize()}divide(t){return this.x/=t.x,this.y/=t.y,this.z/=t.z,this}divideScalar(t){return this.multiplyScalar(1/t)}min(t){return this.x=Math.min(this.x,t.x),this.y=Math.min(this.y,t.y),this.z=Math.min(this.z,t.z),this}max(t){return this.x=Math.max(this.x,t.x),this.y=Math.max(this.y,t.y),this.z=Math.max(this.z,t.z),this}clamp(t,e){return this.x=Math.max(t.x,Math.min(e.x,this.x)),this.y=Math.max(t.y,Math.min(e.y,this.y)),this.z=Math.max(t.z,Math.min(e.z,this.z)),this}clampScalar(t,e){return this.x=Math.max(t,Math.min(e,this.x)),this.y=Math.max(t,Math.min(e,this.y)),this.z=Math.max(t,Math.min(e,this.z)),this}clampLength(t,e){let n=this.length();return this.divideScalar(n||1).multiplyScalar(Math.max(t,Math.min(e,n)))}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}round(){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(t){return this.x*t.x+this.y*t.y+this.z*t.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(t){return this.normalize().multiplyScalar(t)}lerp(t,e){return this.x+=(t.x-this.x)*e,this.y+=(t.y-this.y)*e,this.z+=(t.z-this.z)*e,this}lerpVectors(t,e,n){return this.x=t.x+(e.x-t.x)*n,this.y=t.y+(e.y-t.y)*n,this.z=t.z+(e.z-t.z)*n,this}cross(t){return this.crossVectors(this,t)}crossVectors(t,e){let n=t.x,i=t.y,s=t.z,a=e.x,o=e.y,l=e.z;return this.x=i*l-s*o,this.y=s*a-n*l,this.z=n*o-i*a,this}projectOnVector(t){let e=t.lengthSq();if(e===0)return this.set(0,0,0);let n=t.dot(this)/e;return this.copy(t).multiplyScalar(n)}projectOnPlane(t){return lu.copy(this).projectOnVector(t),this.sub(lu)}reflect(t){return this.sub(lu.copy(t).multiplyScalar(2*this.dot(t)))}angleTo(t){let e=Math.sqrt(this.lengthSq()*t.lengthSq());if(e===0)return Math.PI/2;let n=this.dot(t)/e;return Math.acos(wn(n,-1,1))}distanceTo(t){return Math.sqrt(this.distanceToSquared(t))}distanceToSquared(t){let e=this.x-t.x,n=this.y-t.y,i=this.z-t.z;return e*e+n*n+i*i}manhattanDistanceTo(t){return Math.abs(this.x-t.x)+Math.abs(this.y-t.y)+Math.abs(this.z-t.z)}setFromSpherical(t){return this.setFromSphericalCoords(t.radius,t.phi,t.theta)}setFromSphericalCoords(t,e,n){let i=Math.sin(e)*t;return this.x=i*Math.sin(n),this.y=Math.cos(e)*t,this.z=i*Math.cos(n),this}setFromCylindrical(t){return this.setFromCylindricalCoords(t.radius,t.theta,t.y)}setFromCylindricalCoords(t,e,n){return this.x=t*Math.sin(e),this.y=n,this.z=t*Math.cos(e),this}setFromMatrixPosition(t){let e=t.elements;return this.x=e[12],this.y=e[13],this.z=e[14],this}setFromMatrixScale(t){let e=this.setFromMatrixColumn(t,0).length(),n=this.setFromMatrixColumn(t,1).length(),i=this.setFromMatrixColumn(t,2).length();return this.x=e,this.y=n,this.z=i,this}setFromMatrixColumn(t,e){return this.fromArray(t.elements,e*4)}setFromMatrix3Column(t,e){return this.fromArray(t.elements,e*3)}setFromEuler(t){return this.x=t._x,this.y=t._y,this.z=t._z,this}setFromColor(t){return this.x=t.r,this.y=t.g,this.z=t.b,this}equals(t){return t.x===this.x&&t.y===this.y&&t.z===this.z}fromArray(t,e=0){return this.x=t[e],this.y=t[e+1],this.z=t[e+2],this}toArray(t=[],e=0){return t[e]=this.x,t[e+1]=this.y,t[e+2]=this.z,t}fromBufferAttribute(t,e){return this.x=t.getX(e),this.y=t.getY(e),this.z=t.getZ(e),this}random(){return this.x=Math.random(),this.y=Math.random(),this.z=Math.random(),this}randomDirection(){let t=Math.random()*Math.PI*2,e=Math.random()*2-1,n=Math.sqrt(1-e*e);return this.x=n*Math.cos(t),this.y=e,this.z=n*Math.sin(t),this}*[Symbol.iterator](){yield this.x,yield this.y,yield this.z}},lu=new q,pp=new ur,qr=class{constructor(t=new q(1/0,1/0,1/0),e=new q(-1/0,-1/0,-1/0)){this.isBox3=!0,this.min=t,this.max=e}set(t,e){return this.min.copy(t),this.max.copy(e),this}setFromArray(t){this.makeEmpty();for(let e=0,n=t.length;e<n;e+=3)this.expandByPoint(jn.fromArray(t,e));return this}setFromBufferAttribute(t){this.makeEmpty();for(let e=0,n=t.count;e<n;e++)this.expandByPoint(jn.fromBufferAttribute(t,e));return this}setFromPoints(t){this.makeEmpty();for(let e=0,n=t.length;e<n;e++)this.expandByPoint(t[e]);return this}setFromCenterAndSize(t,e){let n=jn.copy(e).multiplyScalar(.5);return this.min.copy(t).sub(n),this.max.copy(t).add(n),this}setFromObject(t,e=!1){return this.makeEmpty(),this.expandByObject(t,e)}clone(){return new this.constructor().copy(this)}copy(t){return this.min.copy(t.min),this.max.copy(t.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(t){return this.isEmpty()?t.set(0,0,0):t.addVectors(this.min,this.max).multiplyScalar(.5)}getSize(t){return this.isEmpty()?t.set(0,0,0):t.subVectors(this.max,this.min)}expandByPoint(t){return this.min.min(t),this.max.max(t),this}expandByVector(t){return this.min.sub(t),this.max.add(t),this}expandByScalar(t){return this.min.addScalar(-t),this.max.addScalar(t),this}expandByObject(t,e=!1){t.updateWorldMatrix(!1,!1);let n=t.geometry;if(n!==void 0){let s=n.getAttribute("position");if(e===!0&&s!==void 0&&t.isInstancedMesh!==!0)for(let a=0,o=s.count;a<o;a++)t.isMesh===!0?t.getVertexPosition(a,jn):jn.fromBufferAttribute(s,a),jn.applyMatrix4(t.matrixWorld),this.expandByPoint(jn);else t.boundingBox!==void 0?(t.boundingBox===null&&t.computeBoundingBox(),Ro.copy(t.boundingBox)):(n.boundingBox===null&&n.computeBoundingBox(),Ro.copy(n.boundingBox)),Ro.applyMatrix4(t.matrixWorld),this.union(Ro)}let i=t.children;for(let s=0,a=i.length;s<a;s++)this.expandByObject(i[s],e);return this}containsPoint(t){return!(t.x<this.min.x||t.x>this.max.x||t.y<this.min.y||t.y>this.max.y||t.z<this.min.z||t.z>this.max.z)}containsBox(t){return this.min.x<=t.min.x&&t.max.x<=this.max.x&&this.min.y<=t.min.y&&t.max.y<=this.max.y&&this.min.z<=t.min.z&&t.max.z<=this.max.z}getParameter(t,e){return e.set((t.x-this.min.x)/(this.max.x-this.min.x),(t.y-this.min.y)/(this.max.y-this.min.y),(t.z-this.min.z)/(this.max.z-this.min.z))}intersectsBox(t){return!(t.max.x<this.min.x||t.min.x>this.max.x||t.max.y<this.min.y||t.min.y>this.max.y||t.max.z<this.min.z||t.min.z>this.max.z)}intersectsSphere(t){return this.clampPoint(t.center,jn),jn.distanceToSquared(t.center)<=t.radius*t.radius}intersectsPlane(t){let e,n;return t.normal.x>0?(e=t.normal.x*this.min.x,n=t.normal.x*this.max.x):(e=t.normal.x*this.max.x,n=t.normal.x*this.min.x),t.normal.y>0?(e+=t.normal.y*this.min.y,n+=t.normal.y*this.max.y):(e+=t.normal.y*this.max.y,n+=t.normal.y*this.min.y),t.normal.z>0?(e+=t.normal.z*this.min.z,n+=t.normal.z*this.max.z):(e+=t.normal.z*this.max.z,n+=t.normal.z*this.min.z),e<=-t.constant&&n>=-t.constant}intersectsTriangle(t){if(this.isEmpty())return!1;this.getCenter(wa),Po.subVectors(this.max,wa),xs.subVectors(t.a,wa),vs.subVectors(t.b,wa),ys.subVectors(t.c,wa),Ji.subVectors(vs,xs),$i.subVectors(ys,vs),Ur.subVectors(xs,ys);let e=[0,-Ji.z,Ji.y,0,-$i.z,$i.y,0,-Ur.z,Ur.y,Ji.z,0,-Ji.x,$i.z,0,-$i.x,Ur.z,0,-Ur.x,-Ji.y,Ji.x,0,-$i.y,$i.x,0,-Ur.y,Ur.x,0];return!cu(e,xs,vs,ys,Po)||(e=[1,0,0,0,1,0,0,0,1],!cu(e,xs,vs,ys,Po))?!1:(Io.crossVectors(Ji,$i),e=[Io.x,Io.y,Io.z],cu(e,xs,vs,ys,Po))}clampPoint(t,e){return e.copy(t).clamp(this.min,this.max)}distanceToPoint(t){return this.clampPoint(t,jn).distanceTo(t)}getBoundingSphere(t){return this.isEmpty()?t.makeEmpty():(this.getCenter(t.center),t.radius=this.getSize(jn).length()*.5),t}intersect(t){return this.min.max(t.min),this.max.min(t.max),this.isEmpty()&&this.makeEmpty(),this}union(t){return this.min.min(t.min),this.max.max(t.max),this}applyMatrix4(t){return this.isEmpty()?this:(Ti[0].set(this.min.x,this.min.y,this.min.z).applyMatrix4(t),Ti[1].set(this.min.x,this.min.y,this.max.z).applyMatrix4(t),Ti[2].set(this.min.x,this.max.y,this.min.z).applyMatrix4(t),Ti[3].set(this.min.x,this.max.y,this.max.z).applyMatrix4(t),Ti[4].set(this.max.x,this.min.y,this.min.z).applyMatrix4(t),Ti[5].set(this.max.x,this.min.y,this.max.z).applyMatrix4(t),Ti[6].set(this.max.x,this.max.y,this.min.z).applyMatrix4(t),Ti[7].set(this.max.x,this.max.y,this.max.z).applyMatrix4(t),this.setFromPoints(Ti),this)}translate(t){return this.min.add(t),this.max.add(t),this}equals(t){return t.min.equals(this.min)&&t.max.equals(this.max)}},Ti=[new q,new q,new q,new q,new q,new q,new q,new q],jn=new q,Ro=new qr,xs=new q,vs=new q,ys=new q,Ji=new q,$i=new q,Ur=new q,wa=new q,Po=new q,Io=new q,Nr=new q;function cu(r,t,e,n,i){for(let s=0,a=r.length-3;s<=a;s+=3){Nr.fromArray(r,s);let o=i.x*Math.abs(Nr.x)+i.y*Math.abs(Nr.y)+i.z*Math.abs(Nr.z),l=t.dot(Nr),c=e.dot(Nr),u=n.dot(Nr);if(Math.max(-Math.max(l,c,u),Math.min(l,c,u))>o)return!1}return!0}var F0=new qr,Ta=new q,uu=new q,Vs=class{constructor(t=new q,e=-1){this.isSphere=!0,this.center=t,this.radius=e}set(t,e){return this.center.copy(t),this.radius=e,this}setFromPoints(t,e){let n=this.center;e!==void 0?n.copy(e):F0.setFromPoints(t).getCenter(n);let i=0;for(let s=0,a=t.length;s<a;s++)i=Math.max(i,n.distanceToSquared(t[s]));return this.radius=Math.sqrt(i),this}copy(t){return this.center.copy(t.center),this.radius=t.radius,this}isEmpty(){return this.radius<0}makeEmpty(){return this.center.set(0,0,0),this.radius=-1,this}containsPoint(t){return t.distanceToSquared(this.center)<=this.radius*this.radius}distanceToPoint(t){return t.distanceTo(this.center)-this.radius}intersectsSphere(t){let e=this.radius+t.radius;return t.center.distanceToSquared(this.center)<=e*e}intersectsBox(t){return t.intersectsSphere(this)}intersectsPlane(t){return Math.abs(t.distanceToPoint(this.center))<=this.radius}clampPoint(t,e){let n=this.center.distanceToSquared(t);return e.copy(t),n>this.radius*this.radius&&(e.sub(this.center).normalize(),e.multiplyScalar(this.radius).add(this.center)),e}getBoundingBox(t){return this.isEmpty()?(t.makeEmpty(),t):(t.set(this.center,this.center),t.expandByScalar(this.radius),t)}applyMatrix4(t){return this.center.applyMatrix4(t),this.radius=this.radius*t.getMaxScaleOnAxis(),this}translate(t){return this.center.add(t),this}expandByPoint(t){if(this.isEmpty())return this.center.copy(t),this.radius=0,this;Ta.subVectors(t,this.center);let e=Ta.lengthSq();if(e>this.radius*this.radius){let n=Math.sqrt(e),i=(n-this.radius)*.5;this.center.addScaledVector(Ta,i/n),this.radius+=i}return this}union(t){return t.isEmpty()?this:this.isEmpty()?(this.copy(t),this):(this.center.equals(t.center)===!0?this.radius=Math.max(this.radius,t.radius):(uu.subVectors(t.center,this.center).setLength(t.radius),this.expandByPoint(Ta.copy(t.center).add(uu)),this.expandByPoint(Ta.copy(t.center).sub(uu))),this)}equals(t){return t.center.equals(this.center)&&t.radius===this.radius}clone(){return new this.constructor().copy(this)}},Ai=new q,hu=new q,Lo=new q,Ki=new q,fu=new q,Fo=new q,du=new q,cl=class{constructor(t=new q,e=new q(0,0,-1)){this.origin=t,this.direction=e}set(t,e){return this.origin.copy(t),this.direction.copy(e),this}copy(t){return this.origin.copy(t.origin),this.direction.copy(t.direction),this}at(t,e){return e.copy(this.origin).addScaledVector(this.direction,t)}lookAt(t){return this.direction.copy(t).sub(this.origin).normalize(),this}recast(t){return this.origin.copy(this.at(t,Ai)),this}closestPointToPoint(t,e){e.subVectors(t,this.origin);let n=e.dot(this.direction);return n<0?e.copy(this.origin):e.copy(this.origin).addScaledVector(this.direction,n)}distanceToPoint(t){return Math.sqrt(this.distanceSqToPoint(t))}distanceSqToPoint(t){let e=Ai.subVectors(t,this.origin).dot(this.direction);return e<0?this.origin.distanceToSquared(t):(Ai.copy(this.origin).addScaledVector(this.direction,e),Ai.distanceToSquared(t))}distanceSqToSegment(t,e,n,i){hu.copy(t).add(e).multiplyScalar(.5),Lo.copy(e).sub(t).normalize(),Ki.copy(this.origin).sub(hu);let s=t.distanceTo(e)*.5,a=-this.direction.dot(Lo),o=Ki.dot(this.direction),l=-Ki.dot(Lo),c=Ki.lengthSq(),u=Math.abs(1-a*a),f,h,d,_;if(u>0)if(f=a*l-o,h=a*o-l,_=s*u,f>=0)if(h>=-_)if(h<=_){let g=1/u;f*=g,h*=g,d=f*(f+a*h+2*o)+h*(a*f+h+2*l)+c}else h=s,f=Math.max(0,-(a*h+o)),d=-f*f+h*(h+2*l)+c;else h=-s,f=Math.max(0,-(a*h+o)),d=-f*f+h*(h+2*l)+c;else h<=-_?(f=Math.max(0,-(-a*s+o)),h=f>0?-s:Math.min(Math.max(-s,-l),s),d=-f*f+h*(h+2*l)+c):h<=_?(f=0,h=Math.min(Math.max(-s,-l),s),d=h*(h+2*l)+c):(f=Math.max(0,-(a*s+o)),h=f>0?s:Math.min(Math.max(-s,-l),s),d=-f*f+h*(h+2*l)+c);else h=a>0?-s:s,f=Math.max(0,-(a*h+o)),d=-f*f+h*(h+2*l)+c;return n&&n.copy(this.origin).addScaledVector(this.direction,f),i&&i.copy(hu).addScaledVector(Lo,h),d}intersectSphere(t,e){Ai.subVectors(t.center,this.origin);let n=Ai.dot(this.direction),i=Ai.dot(Ai)-n*n,s=t.radius*t.radius;if(i>s)return null;let a=Math.sqrt(s-i),o=n-a,l=n+a;return l<0?null:o<0?this.at(l,e):this.at(o,e)}intersectsSphere(t){return this.distanceSqToPoint(t.center)<=t.radius*t.radius}distanceToPlane(t){let e=t.normal.dot(this.direction);if(e===0)return t.distanceToPoint(this.origin)===0?0:null;let n=-(this.origin.dot(t.normal)+t.constant)/e;return n>=0?n:null}intersectPlane(t,e){let n=this.distanceToPlane(t);return n===null?null:this.at(n,e)}intersectsPlane(t){let e=t.distanceToPoint(this.origin);return e===0||t.normal.dot(this.direction)*e<0}intersectBox(t,e){let n,i,s,a,o,l,c=1/this.direction.x,u=1/this.direction.y,f=1/this.direction.z,h=this.origin;return c>=0?(n=(t.min.x-h.x)*c,i=(t.max.x-h.x)*c):(n=(t.max.x-h.x)*c,i=(t.min.x-h.x)*c),u>=0?(s=(t.min.y-h.y)*u,a=(t.max.y-h.y)*u):(s=(t.max.y-h.y)*u,a=(t.min.y-h.y)*u),n>a||s>i||((s>n||isNaN(n))&&(n=s),(a<i||isNaN(i))&&(i=a),f>=0?(o=(t.min.z-h.z)*f,l=(t.max.z-h.z)*f):(o=(t.max.z-h.z)*f,l=(t.min.z-h.z)*f),n>l||o>i)||((o>n||n!==n)&&(n=o),(l<i||i!==i)&&(i=l),i<0)?null:this.at(n>=0?n:i,e)}intersectsBox(t){return this.intersectBox(t,Ai)!==null}intersectTriangle(t,e,n,i,s){fu.subVectors(e,t),Fo.subVectors(n,t),du.crossVectors(fu,Fo);let a=this.direction.dot(du),o;if(a>0){if(i)return null;o=1}else if(a<0)o=-1,a=-a;else return null;Ki.subVectors(this.origin,t);let l=o*this.direction.dot(Fo.crossVectors(Ki,Fo));if(l<0)return null;let c=o*this.direction.dot(fu.cross(Ki));if(c<0||l+c>a)return null;let u=-o*Ki.dot(du);return u<0?null:this.at(u/a,s)}applyMatrix4(t){return this.origin.applyMatrix4(t),this.direction.transformDirection(t),this}equals(t){return t.origin.equals(this.origin)&&t.direction.equals(this.direction)}clone(){return new this.constructor().copy(this)}},Re=class r{constructor(t,e,n,i,s,a,o,l,c,u,f,h,d,_,g,p){r.prototype.isMatrix4=!0,this.elements=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],t!==void 0&&this.set(t,e,n,i,s,a,o,l,c,u,f,h,d,_,g,p)}set(t,e,n,i,s,a,o,l,c,u,f,h,d,_,g,p){let m=this.elements;return m[0]=t,m[4]=e,m[8]=n,m[12]=i,m[1]=s,m[5]=a,m[9]=o,m[13]=l,m[2]=c,m[6]=u,m[10]=f,m[14]=h,m[3]=d,m[7]=_,m[11]=g,m[15]=p,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 r().fromArray(this.elements)}copy(t){let e=this.elements,n=t.elements;return e[0]=n[0],e[1]=n[1],e[2]=n[2],e[3]=n[3],e[4]=n[4],e[5]=n[5],e[6]=n[6],e[7]=n[7],e[8]=n[8],e[9]=n[9],e[10]=n[10],e[11]=n[11],e[12]=n[12],e[13]=n[13],e[14]=n[14],e[15]=n[15],this}copyPosition(t){let e=this.elements,n=t.elements;return e[12]=n[12],e[13]=n[13],e[14]=n[14],this}setFromMatrix3(t){let e=t.elements;return this.set(e[0],e[3],e[6],0,e[1],e[4],e[7],0,e[2],e[5],e[8],0,0,0,0,1),this}extractBasis(t,e,n){return t.setFromMatrixColumn(this,0),e.setFromMatrixColumn(this,1),n.setFromMatrixColumn(this,2),this}makeBasis(t,e,n){return this.set(t.x,e.x,n.x,0,t.y,e.y,n.y,0,t.z,e.z,n.z,0,0,0,0,1),this}extractRotation(t){let e=this.elements,n=t.elements,i=1/Ms.setFromMatrixColumn(t,0).length(),s=1/Ms.setFromMatrixColumn(t,1).length(),a=1/Ms.setFromMatrixColumn(t,2).length();return e[0]=n[0]*i,e[1]=n[1]*i,e[2]=n[2]*i,e[3]=0,e[4]=n[4]*s,e[5]=n[5]*s,e[6]=n[6]*s,e[7]=0,e[8]=n[8]*a,e[9]=n[9]*a,e[10]=n[10]*a,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,this}makeRotationFromEuler(t){let e=this.elements,n=t.x,i=t.y,s=t.z,a=Math.cos(n),o=Math.sin(n),l=Math.cos(i),c=Math.sin(i),u=Math.cos(s),f=Math.sin(s);if(t.order==="XYZ"){let h=a*u,d=a*f,_=o*u,g=o*f;e[0]=l*u,e[4]=-l*f,e[8]=c,e[1]=d+_*c,e[5]=h-g*c,e[9]=-o*l,e[2]=g-h*c,e[6]=_+d*c,e[10]=a*l}else if(t.order==="YXZ"){let h=l*u,d=l*f,_=c*u,g=c*f;e[0]=h+g*o,e[4]=_*o-d,e[8]=a*c,e[1]=a*f,e[5]=a*u,e[9]=-o,e[2]=d*o-_,e[6]=g+h*o,e[10]=a*l}else if(t.order==="ZXY"){let h=l*u,d=l*f,_=c*u,g=c*f;e[0]=h-g*o,e[4]=-a*f,e[8]=_+d*o,e[1]=d+_*o,e[5]=a*u,e[9]=g-h*o,e[2]=-a*c,e[6]=o,e[10]=a*l}else if(t.order==="ZYX"){let h=a*u,d=a*f,_=o*u,g=o*f;e[0]=l*u,e[4]=_*c-d,e[8]=h*c+g,e[1]=l*f,e[5]=g*c+h,e[9]=d*c-_,e[2]=-c,e[6]=o*l,e[10]=a*l}else if(t.order==="YZX"){let h=a*l,d=a*c,_=o*l,g=o*c;e[0]=l*u,e[4]=g-h*f,e[8]=_*f+d,e[1]=f,e[5]=a*u,e[9]=-o*u,e[2]=-c*u,e[6]=d*f+_,e[10]=h-g*f}else if(t.order==="XZY"){let h=a*l,d=a*c,_=o*l,g=o*c;e[0]=l*u,e[4]=-f,e[8]=c*u,e[1]=h*f+g,e[5]=a*u,e[9]=d*f-_,e[2]=_*f-d,e[6]=o*u,e[10]=g*f+h}return e[3]=0,e[7]=0,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,this}makeRotationFromQuaternion(t){return this.compose(U0,t,N0)}lookAt(t,e,n){let i=this.elements;return In.subVectors(t,e),In.lengthSq()===0&&(In.z=1),In.normalize(),Qi.crossVectors(n,In),Qi.lengthSq()===0&&(Math.abs(n.z)===1?In.x+=1e-4:In.z+=1e-4,In.normalize(),Qi.crossVectors(n,In)),Qi.normalize(),Uo.crossVectors(In,Qi),i[0]=Qi.x,i[4]=Uo.x,i[8]=In.x,i[1]=Qi.y,i[5]=Uo.y,i[9]=In.y,i[2]=Qi.z,i[6]=Uo.z,i[10]=In.z,this}multiply(t){return this.multiplyMatrices(this,t)}premultiply(t){return this.multiplyMatrices(t,this)}multiplyMatrices(t,e){let n=t.elements,i=e.elements,s=this.elements,a=n[0],o=n[4],l=n[8],c=n[12],u=n[1],f=n[5],h=n[9],d=n[13],_=n[2],g=n[6],p=n[10],m=n[14],S=n[3],v=n[7],M=n[11],D=n[15],T=i[0],w=i[4],P=i[8],y=i[12],x=i[1],F=i[5],I=i[9],R=i[13],B=i[2],G=i[6],Z=i[10],J=i[14],N=i[3],Q=i[7],A=i[11],at=i[15];return s[0]=a*T+o*x+l*B+c*N,s[4]=a*w+o*F+l*G+c*Q,s[8]=a*P+o*I+l*Z+c*A,s[12]=a*y+o*R+l*J+c*at,s[1]=u*T+f*x+h*B+d*N,s[5]=u*w+f*F+h*G+d*Q,s[9]=u*P+f*I+h*Z+d*A,s[13]=u*y+f*R+h*J+d*at,s[2]=_*T+g*x+p*B+m*N,s[6]=_*w+g*F+p*G+m*Q,s[10]=_*P+g*I+p*Z+m*A,s[14]=_*y+g*R+p*J+m*at,s[3]=S*T+v*x+M*B+D*N,s[7]=S*w+v*F+M*G+D*Q,s[11]=S*P+v*I+M*Z+D*A,s[15]=S*y+v*R+M*J+D*at,this}multiplyScalar(t){let e=this.elements;return e[0]*=t,e[4]*=t,e[8]*=t,e[12]*=t,e[1]*=t,e[5]*=t,e[9]*=t,e[13]*=t,e[2]*=t,e[6]*=t,e[10]*=t,e[14]*=t,e[3]*=t,e[7]*=t,e[11]*=t,e[15]*=t,this}determinant(){let t=this.elements,e=t[0],n=t[4],i=t[8],s=t[12],a=t[1],o=t[5],l=t[9],c=t[13],u=t[2],f=t[6],h=t[10],d=t[14],_=t[3],g=t[7],p=t[11],m=t[15];return _*(+s*l*f-i*c*f-s*o*h+n*c*h+i*o*d-n*l*d)+g*(+e*l*d-e*c*h+s*a*h-i*a*d+i*c*u-s*l*u)+p*(+e*c*f-e*o*d-s*a*f+n*a*d+s*o*u-n*c*u)+m*(-i*o*u-e*l*f+e*o*h+i*a*f-n*a*h+n*l*u)}transpose(){let t=this.elements,e;return e=t[1],t[1]=t[4],t[4]=e,e=t[2],t[2]=t[8],t[8]=e,e=t[6],t[6]=t[9],t[9]=e,e=t[3],t[3]=t[12],t[12]=e,e=t[7],t[7]=t[13],t[13]=e,e=t[11],t[11]=t[14],t[14]=e,this}setPosition(t,e,n){let i=this.elements;return t.isVector3?(i[12]=t.x,i[13]=t.y,i[14]=t.z):(i[12]=t,i[13]=e,i[14]=n),this}invert(){let t=this.elements,e=t[0],n=t[1],i=t[2],s=t[3],a=t[4],o=t[5],l=t[6],c=t[7],u=t[8],f=t[9],h=t[10],d=t[11],_=t[12],g=t[13],p=t[14],m=t[15],S=f*p*c-g*h*c+g*l*d-o*p*d-f*l*m+o*h*m,v=_*h*c-u*p*c-_*l*d+a*p*d+u*l*m-a*h*m,M=u*g*c-_*f*c+_*o*d-a*g*d-u*o*m+a*f*m,D=_*f*l-u*g*l-_*o*h+a*g*h+u*o*p-a*f*p,T=e*S+n*v+i*M+s*D;if(T===0)return this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0);let w=1/T;return t[0]=S*w,t[1]=(g*h*s-f*p*s-g*i*d+n*p*d+f*i*m-n*h*m)*w,t[2]=(o*p*s-g*l*s+g*i*c-n*p*c-o*i*m+n*l*m)*w,t[3]=(f*l*s-o*h*s-f*i*c+n*h*c+o*i*d-n*l*d)*w,t[4]=v*w,t[5]=(u*p*s-_*h*s+_*i*d-e*p*d-u*i*m+e*h*m)*w,t[6]=(_*l*s-a*p*s-_*i*c+e*p*c+a*i*m-e*l*m)*w,t[7]=(a*h*s-u*l*s+u*i*c-e*h*c-a*i*d+e*l*d)*w,t[8]=M*w,t[9]=(_*f*s-u*g*s-_*n*d+e*g*d+u*n*m-e*f*m)*w,t[10]=(a*g*s-_*o*s+_*n*c-e*g*c-a*n*m+e*o*m)*w,t[11]=(u*o*s-a*f*s-u*n*c+e*f*c+a*n*d-e*o*d)*w,t[12]=D*w,t[13]=(u*g*i-_*f*i+_*n*h-e*g*h-u*n*p+e*f*p)*w,t[14]=(_*o*i-a*g*i-_*n*l+e*g*l+a*n*p-e*o*p)*w,t[15]=(a*f*i-u*o*i+u*n*l-e*f*l-a*n*h+e*o*h)*w,this}scale(t){let e=this.elements,n=t.x,i=t.y,s=t.z;return e[0]*=n,e[4]*=i,e[8]*=s,e[1]*=n,e[5]*=i,e[9]*=s,e[2]*=n,e[6]*=i,e[10]*=s,e[3]*=n,e[7]*=i,e[11]*=s,this}getMaxScaleOnAxis(){let t=this.elements,e=t[0]*t[0]+t[1]*t[1]+t[2]*t[2],n=t[4]*t[4]+t[5]*t[5]+t[6]*t[6],i=t[8]*t[8]+t[9]*t[9]+t[10]*t[10];return Math.sqrt(Math.max(e,n,i))}makeTranslation(t,e,n){return t.isVector3?this.set(1,0,0,t.x,0,1,0,t.y,0,0,1,t.z,0,0,0,1):this.set(1,0,0,t,0,1,0,e,0,0,1,n,0,0,0,1),this}makeRotationX(t){let e=Math.cos(t),n=Math.sin(t);return this.set(1,0,0,0,0,e,-n,0,0,n,e,0,0,0,0,1),this}makeRotationY(t){let e=Math.cos(t),n=Math.sin(t);return this.set(e,0,n,0,0,1,0,0,-n,0,e,0,0,0,0,1),this}makeRotationZ(t){let e=Math.cos(t),n=Math.sin(t);return this.set(e,-n,0,0,n,e,0,0,0,0,1,0,0,0,0,1),this}makeRotationAxis(t,e){let n=Math.cos(e),i=Math.sin(e),s=1-n,a=t.x,o=t.y,l=t.z,c=s*a,u=s*o;return this.set(c*a+n,c*o-i*l,c*l+i*o,0,c*o+i*l,u*o+n,u*l-i*a,0,c*l-i*o,u*l+i*a,s*l*l+n,0,0,0,0,1),this}makeScale(t,e,n){return this.set(t,0,0,0,0,e,0,0,0,0,n,0,0,0,0,1),this}makeShear(t,e,n,i,s,a){return this.set(1,n,s,0,t,1,a,0,e,i,1,0,0,0,0,1),this}compose(t,e,n){let i=this.elements,s=e._x,a=e._y,o=e._z,l=e._w,c=s+s,u=a+a,f=o+o,h=s*c,d=s*u,_=s*f,g=a*u,p=a*f,m=o*f,S=l*c,v=l*u,M=l*f,D=n.x,T=n.y,w=n.z;return i[0]=(1-(g+m))*D,i[1]=(d+M)*D,i[2]=(_-v)*D,i[3]=0,i[4]=(d-M)*T,i[5]=(1-(h+m))*T,i[6]=(p+S)*T,i[7]=0,i[8]=(_+v)*w,i[9]=(p-S)*w,i[10]=(1-(h+g))*w,i[11]=0,i[12]=t.x,i[13]=t.y,i[14]=t.z,i[15]=1,this}decompose(t,e,n){let i=this.elements,s=Ms.set(i[0],i[1],i[2]).length(),a=Ms.set(i[4],i[5],i[6]).length(),o=Ms.set(i[8],i[9],i[10]).length();this.determinant()<0&&(s=-s),t.x=i[12],t.y=i[13],t.z=i[14],ti.copy(this);let c=1/s,u=1/a,f=1/o;return ti.elements[0]*=c,ti.elements[1]*=c,ti.elements[2]*=c,ti.elements[4]*=u,ti.elements[5]*=u,ti.elements[6]*=u,ti.elements[8]*=f,ti.elements[9]*=f,ti.elements[10]*=f,e.setFromRotationMatrix(ti),n.x=s,n.y=a,n.z=o,this}makePerspective(t,e,n,i,s,a,o=Fi){let l=this.elements,c=2*s/(e-t),u=2*s/(n-i),f=(e+t)/(e-t),h=(n+i)/(n-i),d,_;if(o===Fi)d=-(a+s)/(a-s),_=-2*a*s/(a-s);else if(o===sl)d=-a/(a-s),_=-a*s/(a-s);else throw new Error("THREE.Matrix4.makePerspective(): Invalid coordinate system: "+o);return l[0]=c,l[4]=0,l[8]=f,l[12]=0,l[1]=0,l[5]=u,l[9]=h,l[13]=0,l[2]=0,l[6]=0,l[10]=d,l[14]=_,l[3]=0,l[7]=0,l[11]=-1,l[15]=0,this}makeOrthographic(t,e,n,i,s,a,o=Fi){let l=this.elements,c=1/(e-t),u=1/(n-i),f=1/(a-s),h=(e+t)*c,d=(n+i)*u,_,g;if(o===Fi)_=(a+s)*f,g=-2*f;else if(o===sl)_=s*f,g=-1*f;else throw new Error("THREE.Matrix4.makeOrthographic(): Invalid coordinate system: "+o);return l[0]=2*c,l[4]=0,l[8]=0,l[12]=-h,l[1]=0,l[5]=2*u,l[9]=0,l[13]=-d,l[2]=0,l[6]=0,l[10]=g,l[14]=-_,l[3]=0,l[7]=0,l[11]=0,l[15]=1,this}equals(t){let e=this.elements,n=t.elements;for(let i=0;i<16;i++)if(e[i]!==n[i])return!1;return!0}fromArray(t,e=0){for(let n=0;n<16;n++)this.elements[n]=t[n+e];return this}toArray(t=[],e=0){let n=this.elements;return t[e]=n[0],t[e+1]=n[1],t[e+2]=n[2],t[e+3]=n[3],t[e+4]=n[4],t[e+5]=n[5],t[e+6]=n[6],t[e+7]=n[7],t[e+8]=n[8],t[e+9]=n[9],t[e+10]=n[10],t[e+11]=n[11],t[e+12]=n[12],t[e+13]=n[13],t[e+14]=n[14],t[e+15]=n[15],t}},Ms=new q,ti=new Re,U0=new q(0,0,0),N0=new q(1,1,1),Qi=new q,Uo=new q,In=new q,mp=new Re,gp=new ur,Ni=class r{constructor(t=0,e=0,n=0,i=r.DEFAULT_ORDER){this.isEuler=!0,this._x=t,this._y=e,this._z=n,this._order=i}get x(){return this._x}set x(t){this._x=t,this._onChangeCallback()}get y(){return this._y}set y(t){this._y=t,this._onChangeCallback()}get z(){return this._z}set z(t){this._z=t,this._onChangeCallback()}get order(){return this._order}set order(t){this._order=t,this._onChangeCallback()}set(t,e,n,i=this._order){return this._x=t,this._y=e,this._z=n,this._order=i,this._onChangeCallback(),this}clone(){return new this.constructor(this._x,this._y,this._z,this._order)}copy(t){return this._x=t._x,this._y=t._y,this._z=t._z,this._order=t._order,this._onChangeCallback(),this}setFromRotationMatrix(t,e=this._order,n=!0){let i=t.elements,s=i[0],a=i[4],o=i[8],l=i[1],c=i[5],u=i[9],f=i[2],h=i[6],d=i[10];switch(e){case"XYZ":this._y=Math.asin(wn(o,-1,1)),Math.abs(o)<.9999999?(this._x=Math.atan2(-u,d),this._z=Math.atan2(-a,s)):(this._x=Math.atan2(h,c),this._z=0);break;case"YXZ":this._x=Math.asin(-wn(u,-1,1)),Math.abs(u)<.9999999?(this._y=Math.atan2(o,d),this._z=Math.atan2(l,c)):(this._y=Math.atan2(-f,s),this._z=0);break;case"ZXY":this._x=Math.asin(wn(h,-1,1)),Math.abs(h)<.9999999?(this._y=Math.atan2(-f,d),this._z=Math.atan2(-a,c)):(this._y=0,this._z=Math.atan2(l,s));break;case"ZYX":this._y=Math.asin(-wn(f,-1,1)),Math.abs(f)<.9999999?(this._x=Math.atan2(h,d),this._z=Math.atan2(l,s)):(this._x=0,this._z=Math.atan2(-a,c));break;case"YZX":this._z=Math.asin(wn(l,-1,1)),Math.abs(l)<.9999999?(this._x=Math.atan2(-u,c),this._y=Math.atan2(-f,s)):(this._x=0,this._y=Math.atan2(o,d));break;case"XZY":this._z=Math.asin(-wn(a,-1,1)),Math.abs(a)<.9999999?(this._x=Math.atan2(h,c),this._y=Math.atan2(o,s)):(this._x=Math.atan2(-u,d),this._y=0);break;default:console.warn("THREE.Euler: .setFromRotationMatrix() encountered an unknown order: "+e)}return this._order=e,n===!0&&this._onChangeCallback(),this}setFromQuaternion(t,e,n){return mp.makeRotationFromQuaternion(t),this.setFromRotationMatrix(mp,e,n)}setFromVector3(t,e=this._order){return this.set(t.x,t.y,t.z,e)}reorder(t){return gp.setFromEuler(this),this.setFromQuaternion(gp,t)}equals(t){return t._x===this._x&&t._y===this._y&&t._z===this._z&&t._order===this._order}fromArray(t){return this._x=t[0],this._y=t[1],this._z=t[2],t[3]!==void 0&&(this._order=t[3]),this._onChangeCallback(),this}toArray(t=[],e=0){return t[e]=this._x,t[e+1]=this._y,t[e+2]=this._z,t[e+3]=this._order,t}_onChange(t){return this._onChangeCallback=t,this}_onChangeCallback(){}*[Symbol.iterator](){yield this._x,yield this._y,yield this._z,yield this._order}};Ni.DEFAULT_ORDER="XYZ";var ul=class{constructor(){this.mask=1}set(t){this.mask=(1<<t|0)>>>0}enable(t){this.mask|=1<<t|0}enableAll(){this.mask=-1}toggle(t){this.mask^=1<<t|0}disable(t){this.mask&=~(1<<t|0)}disableAll(){this.mask=0}test(t){return(this.mask&t.mask)!==0}isEnabled(t){return(this.mask&(1<<t|0))!==0}},O0=0,_p=new q,Ss=new ur,Di=new Re,No=new q,Aa=new q,B0=new q,z0=new ur,xp=new q(1,0,0),vp=new q(0,1,0),yp=new q(0,0,1),Mp={type:"added"},k0={type:"removed"},bs={type:"childadded",child:null},pu={type:"childremoved",child:null},sn=class r extends cr{constructor(){super(),this.isObject3D=!0,Object.defineProperty(this,"id",{value:O0++}),this.uuid=Na(),this.name="",this.type="Object3D",this.parent=null,this.children=[],this.up=r.DEFAULT_UP.clone();let t=new q,e=new Ni,n=new ur,i=new q(1,1,1);function s(){n.setFromEuler(e,!1)}function a(){e.setFromQuaternion(n,void 0,!1)}e._onChange(s),n._onChange(a),Object.defineProperties(this,{position:{configurable:!0,enumerable:!0,value:t},rotation:{configurable:!0,enumerable:!0,value:e},quaternion:{configurable:!0,enumerable:!0,value:n},scale:{configurable:!0,enumerable:!0,value:i},modelViewMatrix:{value:new Re},normalMatrix:{value:new qt}}),this.matrix=new Re,this.matrixWorld=new Re,this.matrixAutoUpdate=r.DEFAULT_MATRIX_AUTO_UPDATE,this.matrixWorldAutoUpdate=r.DEFAULT_MATRIX_WORLD_AUTO_UPDATE,this.matrixWorldNeedsUpdate=!1,this.layers=new ul,this.visible=!0,this.castShadow=!1,this.receiveShadow=!1,this.frustumCulled=!0,this.renderOrder=0,this.animations=[],this.userData={}}onBeforeShadow(){}onAfterShadow(){}onBeforeRender(){}onAfterRender(){}applyMatrix4(t){this.matrixAutoUpdate&&this.updateMatrix(),this.matrix.premultiply(t),this.matrix.decompose(this.position,this.quaternion,this.scale)}applyQuaternion(t){return this.quaternion.premultiply(t),this}setRotationFromAxisAngle(t,e){this.quaternion.setFromAxisAngle(t,e)}setRotationFromEuler(t){this.quaternion.setFromEuler(t,!0)}setRotationFromMatrix(t){this.quaternion.setFromRotationMatrix(t)}setRotationFromQuaternion(t){this.quaternion.copy(t)}rotateOnAxis(t,e){return Ss.setFromAxisAngle(t,e),this.quaternion.multiply(Ss),this}rotateOnWorldAxis(t,e){return Ss.setFromAxisAngle(t,e),this.quaternion.premultiply(Ss),this}rotateX(t){return this.rotateOnAxis(xp,t)}rotateY(t){return this.rotateOnAxis(vp,t)}rotateZ(t){return this.rotateOnAxis(yp,t)}translateOnAxis(t,e){return _p.copy(t).applyQuaternion(this.quaternion),this.position.add(_p.multiplyScalar(e)),this}translateX(t){return this.translateOnAxis(xp,t)}translateY(t){return this.translateOnAxis(vp,t)}translateZ(t){return this.translateOnAxis(yp,t)}localToWorld(t){return this.updateWorldMatrix(!0,!1),t.applyMatrix4(this.matrixWorld)}worldToLocal(t){return this.updateWorldMatrix(!0,!1),t.applyMatrix4(Di.copy(this.matrixWorld).invert())}lookAt(t,e,n){t.isVector3?No.copy(t):No.set(t,e,n);let i=this.parent;this.updateWorldMatrix(!0,!1),Aa.setFromMatrixPosition(this.matrixWorld),this.isCamera||this.isLight?Di.lookAt(Aa,No,this.up):Di.lookAt(No,Aa,this.up),this.quaternion.setFromRotationMatrix(Di),i&&(Di.extractRotation(i.matrixWorld),Ss.setFromRotationMatrix(Di),this.quaternion.premultiply(Ss.invert()))}add(t){if(arguments.length>1){for(let e=0;e<arguments.length;e++)this.add(arguments[e]);return this}return t===this?(console.error("THREE.Object3D.add: object can't be added as a child of itself.",t),this):(t&&t.isObject3D?(t.removeFromParent(),t.parent=this,this.children.push(t),t.dispatchEvent(Mp),bs.child=t,this.dispatchEvent(bs),bs.child=null):console.error("THREE.Object3D.add: object not an instance of THREE.Object3D.",t),this)}remove(t){if(arguments.length>1){for(let n=0;n<arguments.length;n++)this.remove(arguments[n]);return this}let e=this.children.indexOf(t);return e!==-1&&(t.parent=null,this.children.splice(e,1),t.dispatchEvent(k0),pu.child=t,this.dispatchEvent(pu),pu.child=null),this}removeFromParent(){let t=this.parent;return t!==null&&t.remove(this),this}clear(){return this.remove(...this.children)}attach(t){return this.updateWorldMatrix(!0,!1),Di.copy(this.matrixWorld).invert(),t.parent!==null&&(t.parent.updateWorldMatrix(!0,!1),Di.multiply(t.parent.matrixWorld)),t.applyMatrix4(Di),t.removeFromParent(),t.parent=this,this.children.push(t),t.updateWorldMatrix(!1,!0),t.dispatchEvent(Mp),bs.child=t,this.dispatchEvent(bs),bs.child=null,this}getObjectById(t){return this.getObjectByProperty("id",t)}getObjectByName(t){return this.getObjectByProperty("name",t)}getObjectByProperty(t,e){if(this[t]===e)return this;for(let n=0,i=this.children.length;n<i;n++){let a=this.children[n].getObjectByProperty(t,e);if(a!==void 0)return a}}getObjectsByProperty(t,e,n=[]){this[t]===e&&n.push(this);let i=this.children;for(let s=0,a=i.length;s<a;s++)i[s].getObjectsByProperty(t,e,n);return n}getWorldPosition(t){return this.updateWorldMatrix(!0,!1),t.setFromMatrixPosition(this.matrixWorld)}getWorldQuaternion(t){return this.updateWorldMatrix(!0,!1),this.matrixWorld.decompose(Aa,t,B0),t}getWorldScale(t){return this.updateWorldMatrix(!0,!1),this.matrixWorld.decompose(Aa,z0,t),t}getWorldDirection(t){this.updateWorldMatrix(!0,!1);let e=this.matrixWorld.elements;return t.set(e[8],e[9],e[10]).normalize()}raycast(){}traverse(t){t(this);let e=this.children;for(let n=0,i=e.length;n<i;n++)e[n].traverse(t)}traverseVisible(t){if(this.visible===!1)return;t(this);let e=this.children;for(let n=0,i=e.length;n<i;n++)e[n].traverseVisible(t)}traverseAncestors(t){let e=this.parent;e!==null&&(t(e),e.traverseAncestors(t))}updateMatrix(){this.matrix.compose(this.position,this.quaternion,this.scale),this.matrixWorldNeedsUpdate=!0}updateMatrixWorld(t){this.matrixAutoUpdate&&this.updateMatrix(),(this.matrixWorldNeedsUpdate||t)&&(this.parent===null?this.matrixWorld.copy(this.matrix):this.matrixWorld.multiplyMatrices(this.parent.matrixWorld,this.matrix),this.matrixWorldNeedsUpdate=!1,t=!0);let e=this.children;for(let n=0,i=e.length;n<i;n++){let s=e[n];(s.matrixWorldAutoUpdate===!0||t===!0)&&s.updateMatrixWorld(t)}}updateWorldMatrix(t,e){let n=this.parent;if(t===!0&&n!==null&&n.matrixWorldAutoUpdate===!0&&n.updateWorldMatrix(!0,!1),this.matrixAutoUpdate&&this.updateMatrix(),this.parent===null?this.matrixWorld.copy(this.matrix):this.matrixWorld.multiplyMatrices(this.parent.matrixWorld,this.matrix),e===!0){let i=this.children;for(let s=0,a=i.length;s<a;s++){let o=i[s];o.matrixWorldAutoUpdate===!0&&o.updateWorldMatrix(!1,!0)}}}toJSON(t){let e=t===void 0||typeof t=="string",n={};e&&(t={geometries:{},materials:{},textures:{},images:{},shapes:{},skeletons:{},animations:{},nodes:{}},n.metadata={version:4.6,type:"Object",generator:"Object3D.toJSON"});let i={};i.uuid=this.uuid,i.type=this.type,this.name!==""&&(i.name=this.name),this.castShadow===!0&&(i.castShadow=!0),this.receiveShadow===!0&&(i.receiveShadow=!0),this.visible===!1&&(i.visible=!1),this.frustumCulled===!1&&(i.frustumCulled=!1),this.renderOrder!==0&&(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(),this.matrixAutoUpdate===!1&&(i.matrixAutoUpdate=!1),this.isInstancedMesh&&(i.type="InstancedMesh",i.count=this.count,i.instanceMatrix=this.instanceMatrix.toJSON(),this.instanceColor!==null&&(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.visibility=this._visibility,i.active=this._active,i.bounds=this._bounds.map(o=>({boxInitialized:o.boxInitialized,boxMin:o.box.min.toArray(),boxMax:o.box.max.toArray(),sphereInitialized:o.sphereInitialized,sphereRadius:o.sphere.radius,sphereCenter:o.sphere.center.toArray()})),i.maxGeometryCount=this._maxGeometryCount,i.maxVertexCount=this._maxVertexCount,i.maxIndexCount=this._maxIndexCount,i.geometryInitialized=this._geometryInitialized,i.geometryCount=this._geometryCount,i.matricesTexture=this._matricesTexture.toJSON(t),this.boundingSphere!==null&&(i.boundingSphere={center:i.boundingSphere.center.toArray(),radius:i.boundingSphere.radius}),this.boundingBox!==null&&(i.boundingBox={min:i.boundingBox.min.toArray(),max:i.boundingBox.max.toArray()}));function s(o,l){return o[l.uuid]===void 0&&(o[l.uuid]=l.toJSON(t)),l.uuid}if(this.isScene)this.background&&(this.background.isColor?i.background=this.background.toJSON():this.background.isTexture&&(i.background=this.background.toJSON(t).uuid)),this.environment&&this.environment.isTexture&&this.environment.isRenderTargetTexture!==!0&&(i.environment=this.environment.toJSON(t).uuid);else if(this.isMesh||this.isLine||this.isPoints){i.geometry=s(t.geometries,this.geometry);let o=this.geometry.parameters;if(o!==void 0&&o.shapes!==void 0){let l=o.shapes;if(Array.isArray(l))for(let c=0,u=l.length;c<u;c++){let f=l[c];s(t.shapes,f)}else s(t.shapes,l)}}if(this.isSkinnedMesh&&(i.bindMode=this.bindMode,i.bindMatrix=this.bindMatrix.toArray(),this.skeleton!==void 0&&(s(t.skeletons,this.skeleton),i.skeleton=this.skeleton.uuid)),this.material!==void 0)if(Array.isArray(this.material)){let o=[];for(let l=0,c=this.material.length;l<c;l++)o.push(s(t.materials,this.material[l]));i.material=o}else i.material=s(t.materials,this.material);if(this.children.length>0){i.children=[];for(let o=0;o<this.children.length;o++)i.children.push(this.children[o].toJSON(t).object)}if(this.animations.length>0){i.animations=[];for(let o=0;o<this.animations.length;o++){let l=this.animations[o];i.animations.push(s(t.animations,l))}}if(e){let o=a(t.geometries),l=a(t.materials),c=a(t.textures),u=a(t.images),f=a(t.shapes),h=a(t.skeletons),d=a(t.animations),_=a(t.nodes);o.length>0&&(n.geometries=o),l.length>0&&(n.materials=l),c.length>0&&(n.textures=c),u.length>0&&(n.images=u),f.length>0&&(n.shapes=f),h.length>0&&(n.skeletons=h),d.length>0&&(n.animations=d),_.length>0&&(n.nodes=_)}return n.object=i,n;function a(o){let l=[];for(let c in o){let u=o[c];delete u.metadata,l.push(u)}return l}}clone(t){return new this.constructor().copy(this,t)}copy(t,e=!0){if(this.name=t.name,this.up.copy(t.up),this.position.copy(t.position),this.rotation.order=t.rotation.order,this.quaternion.copy(t.quaternion),this.scale.copy(t.scale),this.matrix.copy(t.matrix),this.matrixWorld.copy(t.matrixWorld),this.matrixAutoUpdate=t.matrixAutoUpdate,this.matrixWorldAutoUpdate=t.matrixWorldAutoUpdate,this.matrixWorldNeedsUpdate=t.matrixWorldNeedsUpdate,this.layers.mask=t.layers.mask,this.visible=t.visible,this.castShadow=t.castShadow,this.receiveShadow=t.receiveShadow,this.frustumCulled=t.frustumCulled,this.renderOrder=t.renderOrder,this.animations=t.animations.slice(),this.userData=JSON.parse(JSON.stringify(t.userData)),e===!0)for(let n=0;n<t.children.length;n++){let i=t.children[n];this.add(i.clone())}return this}};sn.DEFAULT_UP=new q(0,1,0);sn.DEFAULT_MATRIX_AUTO_UPDATE=!0;sn.DEFAULT_MATRIX_WORLD_AUTO_UPDATE=!0;var ei=new q,Ci=new q,mu=new q,Ri=new q,Es=new q,ws=new q,Sp=new q,gu=new q,_u=new q,xu=new q,Ls=class r{constructor(t=new q,e=new q,n=new q){this.a=t,this.b=e,this.c=n}static getNormal(t,e,n,i){i.subVectors(n,e),ei.subVectors(t,e),i.cross(ei);let s=i.lengthSq();return s>0?i.multiplyScalar(1/Math.sqrt(s)):i.set(0,0,0)}static getBarycoord(t,e,n,i,s){ei.subVectors(i,e),Ci.subVectors(n,e),mu.subVectors(t,e);let a=ei.dot(ei),o=ei.dot(Ci),l=ei.dot(mu),c=Ci.dot(Ci),u=Ci.dot(mu),f=a*c-o*o;if(f===0)return s.set(0,0,0),null;let h=1/f,d=(c*l-o*u)*h,_=(a*u-o*l)*h;return s.set(1-d-_,_,d)}static containsPoint(t,e,n,i){return this.getBarycoord(t,e,n,i,Ri)===null?!1:Ri.x>=0&&Ri.y>=0&&Ri.x+Ri.y<=1}static getInterpolation(t,e,n,i,s,a,o,l){return this.getBarycoord(t,e,n,i,Ri)===null?(l.x=0,l.y=0,"z"in l&&(l.z=0),"w"in l&&(l.w=0),null):(l.setScalar(0),l.addScaledVector(s,Ri.x),l.addScaledVector(a,Ri.y),l.addScaledVector(o,Ri.z),l)}static isFrontFacing(t,e,n,i){return ei.subVectors(n,e),Ci.subVectors(t,e),ei.cross(Ci).dot(i)<0}set(t,e,n){return this.a.copy(t),this.b.copy(e),this.c.copy(n),this}setFromPointsAndIndices(t,e,n,i){return this.a.copy(t[e]),this.b.copy(t[n]),this.c.copy(t[i]),this}setFromAttributeAndIndices(t,e,n,i){return this.a.fromBufferAttribute(t,e),this.b.fromBufferAttribute(t,n),this.c.fromBufferAttribute(t,i),this}clone(){return new this.constructor().copy(this)}copy(t){return this.a.copy(t.a),this.b.copy(t.b),this.c.copy(t.c),this}getArea(){return ei.subVectors(this.c,this.b),Ci.subVectors(this.a,this.b),ei.cross(Ci).length()*.5}getMidpoint(t){return t.addVectors(this.a,this.b).add(this.c).multiplyScalar(1/3)}getNormal(t){return r.getNormal(this.a,this.b,this.c,t)}getPlane(t){return t.setFromCoplanarPoints(this.a,this.b,this.c)}getBarycoord(t,e){return r.getBarycoord(t,this.a,this.b,this.c,e)}getInterpolation(t,e,n,i,s){return r.getInterpolation(t,this.a,this.b,this.c,e,n,i,s)}containsPoint(t){return r.containsPoint(t,this.a,this.b,this.c)}isFrontFacing(t){return r.isFrontFacing(this.a,this.b,this.c,t)}intersectsBox(t){return t.intersectsTriangle(this)}closestPointToPoint(t,e){let n=this.a,i=this.b,s=this.c,a,o;Es.subVectors(i,n),ws.subVectors(s,n),gu.subVectors(t,n);let l=Es.dot(gu),c=ws.dot(gu);if(l<=0&&c<=0)return e.copy(n);_u.subVectors(t,i);let u=Es.dot(_u),f=ws.dot(_u);if(u>=0&&f<=u)return e.copy(i);let h=l*f-u*c;if(h<=0&&l>=0&&u<=0)return a=l/(l-u),e.copy(n).addScaledVector(Es,a);xu.subVectors(t,s);let d=Es.dot(xu),_=ws.dot(xu);if(_>=0&&d<=_)return e.copy(s);let g=d*c-l*_;if(g<=0&&c>=0&&_<=0)return o=c/(c-_),e.copy(n).addScaledVector(ws,o);let p=u*_-d*f;if(p<=0&&f-u>=0&&d-_>=0)return Sp.subVectors(s,i),o=(f-u)/(f-u+(d-_)),e.copy(i).addScaledVector(Sp,o);let m=1/(p+g+h);return a=g*m,o=h*m,e.copy(n).addScaledVector(Es,a).addScaledVector(ws,o)}equals(t){return t.a.equals(this.a)&&t.b.equals(this.b)&&t.c.equals(this.c)}},dm={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},ji={h:0,s:0,l:0},Oo={h:0,s:0,l:0};function vu(r,t,e){return e<0&&(e+=1),e>1&&(e-=1),e<1/6?r+(t-r)*6*e:e<1/2?t:e<2/3?r+(t-r)*6*(2/3-e):r}var re=class{constructor(t,e,n){return this.isColor=!0,this.r=1,this.g=1,this.b=1,this.set(t,e,n)}set(t,e,n){if(e===void 0&&n===void 0){let i=t;i&&i.isColor?this.copy(i):typeof i=="number"?this.setHex(i):typeof i=="string"&&this.setStyle(i)}else this.setRGB(t,e,n);return this}setScalar(t){return this.r=t,this.g=t,this.b=t,this}setHex(t,e=Gn){return t=Math.floor(t),this.r=(t>>16&255)/255,this.g=(t>>8&255)/255,this.b=(t&255)/255,he.toWorkingColorSpace(this,e),this}setRGB(t,e,n,i=he.workingColorSpace){return this.r=t,this.g=e,this.b=n,he.toWorkingColorSpace(this,i),this}setHSL(t,e,n,i=he.workingColorSpace){if(t=D0(t,1),e=wn(e,0,1),n=wn(n,0,1),e===0)this.r=this.g=this.b=n;else{let s=n<=.5?n*(1+e):n+e-n*e,a=2*n-s;this.r=vu(a,s,t+1/3),this.g=vu(a,s,t),this.b=vu(a,s,t-1/3)}return he.toWorkingColorSpace(this,i),this}setStyle(t,e=Gn){function n(s){s!==void 0&&parseFloat(s)<1&&console.warn("THREE.Color: Alpha component of "+t+" will be ignored.")}let i;if(i=/^(\w+)\(([^\)]*)\)/.exec(t)){let s,a=i[1],o=i[2];switch(a){case"rgb":case"rgba":if(s=/^\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(o))return n(s[4]),this.setRGB(Math.min(255,parseInt(s[1],10))/255,Math.min(255,parseInt(s[2],10))/255,Math.min(255,parseInt(s[3],10))/255,e);if(s=/^\s*(\d+)\%\s*,\s*(\d+)\%\s*,\s*(\d+)\%\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(o))return n(s[4]),this.setRGB(Math.min(100,parseInt(s[1],10))/100,Math.min(100,parseInt(s[2],10))/100,Math.min(100,parseInt(s[3],10))/100,e);break;case"hsl":case"hsla":if(s=/^\s*(\d*\.?\d+)\s*,\s*(\d*\.?\d+)\%\s*,\s*(\d*\.?\d+)\%\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(o))return n(s[4]),this.setHSL(parseFloat(s[1])/360,parseFloat(s[2])/100,parseFloat(s[3])/100,e);break;default:console.warn("THREE.Color: Unknown color model "+t)}}else if(i=/^\#([A-Fa-f\d]+)$/.exec(t)){let s=i[1],a=s.length;if(a===3)return this.setRGB(parseInt(s.charAt(0),16)/15,parseInt(s.charAt(1),16)/15,parseInt(s.charAt(2),16)/15,e);if(a===6)return this.setHex(parseInt(s,16),e);console.warn("THREE.Color: Invalid hex color "+t)}else if(t&&t.length>0)return this.setColorName(t,e);return this}setColorName(t,e=Gn){let n=dm[t.toLowerCase()];return n!==void 0?this.setHex(n,e):console.warn("THREE.Color: Unknown color "+t),this}clone(){return new this.constructor(this.r,this.g,this.b)}copy(t){return this.r=t.r,this.g=t.g,this.b=t.b,this}copySRGBToLinear(t){return this.r=Ns(t.r),this.g=Ns(t.g),this.b=Ns(t.b),this}copyLinearToSRGB(t){return this.r=au(t.r),this.g=au(t.g),this.b=au(t.b),this}convertSRGBToLinear(){return this.copySRGBToLinear(this),this}convertLinearToSRGB(){return this.copyLinearToSRGB(this),this}getHex(t=Gn){return he.fromWorkingColorSpace(rn.copy(this),t),Math.round(wn(rn.r*255,0,255))*65536+Math.round(wn(rn.g*255,0,255))*256+Math.round(wn(rn.b*255,0,255))}getHexString(t=Gn){return("000000"+this.getHex(t).toString(16)).slice(-6)}getHSL(t,e=he.workingColorSpace){he.fromWorkingColorSpace(rn.copy(this),e);let n=rn.r,i=rn.g,s=rn.b,a=Math.max(n,i,s),o=Math.min(n,i,s),l,c,u=(o+a)/2;if(o===a)l=0,c=0;else{let f=a-o;switch(c=u<=.5?f/(a+o):f/(2-a-o),a){case n:l=(i-s)/f+(i<s?6:0);break;case i:l=(s-n)/f+2;break;case s:l=(n-i)/f+4;break}l/=6}return t.h=l,t.s=c,t.l=u,t}getRGB(t,e=he.workingColorSpace){return he.fromWorkingColorSpace(rn.copy(this),e),t.r=rn.r,t.g=rn.g,t.b=rn.b,t}getStyle(t=Gn){he.fromWorkingColorSpace(rn.copy(this),t);let e=rn.r,n=rn.g,i=rn.b;return t!==Gn?`color(${t} ${e.toFixed(3)} ${n.toFixed(3)} ${i.toFixed(3)})`:`rgb(${Math.round(e*255)},${Math.round(n*255)},${Math.round(i*255)})`}offsetHSL(t,e,n){return this.getHSL(ji),this.setHSL(ji.h+t,ji.s+e,ji.l+n)}add(t){return this.r+=t.r,this.g+=t.g,this.b+=t.b,this}addColors(t,e){return this.r=t.r+e.r,this.g=t.g+e.g,this.b=t.b+e.b,this}addScalar(t){return this.r+=t,this.g+=t,this.b+=t,this}sub(t){return this.r=Math.max(0,this.r-t.r),this.g=Math.max(0,this.g-t.g),this.b=Math.max(0,this.b-t.b),this}multiply(t){return this.r*=t.r,this.g*=t.g,this.b*=t.b,this}multiplyScalar(t){return this.r*=t,this.g*=t,this.b*=t,this}lerp(t,e){return this.r+=(t.r-this.r)*e,this.g+=(t.g-this.g)*e,this.b+=(t.b-this.b)*e,this}lerpColors(t,e,n){return this.r=t.r+(e.r-t.r)*n,this.g=t.g+(e.g-t.g)*n,this.b=t.b+(e.b-t.b)*n,this}lerpHSL(t,e){this.getHSL(ji),t.getHSL(Oo);let n=ru(ji.h,Oo.h,e),i=ru(ji.s,Oo.s,e),s=ru(ji.l,Oo.l,e);return this.setHSL(n,i,s),this}setFromVector3(t){return this.r=t.x,this.g=t.y,this.b=t.z,this}applyMatrix3(t){let e=this.r,n=this.g,i=this.b,s=t.elements;return this.r=s[0]*e+s[3]*n+s[6]*i,this.g=s[1]*e+s[4]*n+s[7]*i,this.b=s[2]*e+s[5]*n+s[8]*i,this}equals(t){return t.r===this.r&&t.g===this.g&&t.b===this.b}fromArray(t,e=0){return this.r=t[e],this.g=t[e+1],this.b=t[e+2],this}toArray(t=[],e=0){return t[e]=this.r,t[e+1]=this.g,t[e+2]=this.b,t}fromBufferAttribute(t,e){return this.r=t.getX(e),this.g=t.getY(e),this.b=t.getZ(e),this}toJSON(){return this.getHex()}*[Symbol.iterator](){yield this.r,yield this.g,yield this.b}},rn=new re;re.NAMES=dm;var V0=0,Yr=class extends cr{constructor(){super(),this.isMaterial=!0,Object.defineProperty(this,"id",{value:V0++}),this.uuid=Na(),this.name="",this.type="Material",this.blending=sr,this.side=or,this.vertexColors=!1,this.opacity=1,this.transparent=!1,this.alphaHash=!1,this.blendSrc=Ru,this.blendDst=Pu,this.blendEquation=Hr,this.blendSrcAlpha=null,this.blendDstAlpha=null,this.blendEquationAlpha=null,this.blendColor=new re(0,0,0),this.blendAlpha=0,this.depthFunc=jo,this.depthTest=!0,this.depthWrite=!0,this.stencilWriteMask=255,this.stencilFunc=lp,this.stencilRef=0,this.stencilFuncMask=255,this.stencilFail=gs,this.stencilZFail=gs,this.stencilZPass=gs,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.visible=!0,this.toneMapped=!0,this.userData={},this.version=0,this._alphaTest=0}get alphaTest(){return this._alphaTest}set alphaTest(t){this._alphaTest>0!=t>0&&this.version++,this._alphaTest=t}onBuild(){}onBeforeRender(){}onBeforeCompile(){}customProgramCacheKey(){return this.onBeforeCompile.toString()}setValues(t){if(t!==void 0)for(let e in t){let n=t[e];if(n===void 0){console.warn(`THREE.Material: parameter '${e}' has value of undefined.`);continue}let i=this[e];if(i===void 0){console.warn(`THREE.Material: '${e}' is not a property of THREE.${this.type}.`);continue}i&&i.isColor?i.set(n):i&&i.isVector3&&n&&n.isVector3?i.copy(n):this[e]=n}}toJSON(t){let e=t===void 0||typeof t=="string";e&&(t={textures:{},images:{}});let n={metadata:{version:4.6,type:"Material",generator:"Material.toJSON"}};n.uuid=this.uuid,n.type=this.type,this.name!==""&&(n.name=this.name),this.color&&this.color.isColor&&(n.color=this.color.getHex()),this.roughness!==void 0&&(n.roughness=this.roughness),this.metalness!==void 0&&(n.metalness=this.metalness),this.sheen!==void 0&&(n.sheen=this.sheen),this.sheenColor&&this.sheenColor.isColor&&(n.sheenColor=this.sheenColor.getHex()),this.sheenRoughness!==void 0&&(n.sheenRoughness=this.sheenRoughness),this.emissive&&this.emissive.isColor&&(n.emissive=this.emissive.getHex()),this.emissiveIntensity!==void 0&&this.emissiveIntensity!==1&&(n.emissiveIntensity=this.emissiveIntensity),this.specular&&this.specular.isColor&&(n.specular=this.specular.getHex()),this.specularIntensity!==void 0&&(n.specularIntensity=this.specularIntensity),this.specularColor&&this.specularColor.isColor&&(n.specularColor=this.specularColor.getHex()),this.shininess!==void 0&&(n.shininess=this.shininess),this.clearcoat!==void 0&&(n.clearcoat=this.clearcoat),this.clearcoatRoughness!==void 0&&(n.clearcoatRoughness=this.clearcoatRoughness),this.clearcoatMap&&this.clearcoatMap.isTexture&&(n.clearcoatMap=this.clearcoatMap.toJSON(t).uuid),this.clearcoatRoughnessMap&&this.clearcoatRoughnessMap.isTexture&&(n.clearcoatRoughnessMap=this.clearcoatRoughnessMap.toJSON(t).uuid),this.clearcoatNormalMap&&this.clearcoatNormalMap.isTexture&&(n.clearcoatNormalMap=this.clearcoatNormalMap.toJSON(t).uuid,n.clearcoatNormalScale=this.clearcoatNormalScale.toArray()),this.dispersion!==void 0&&(n.dispersion=this.dispersion),this.iridescence!==void 0&&(n.iridescence=this.iridescence),this.iridescenceIOR!==void 0&&(n.iridescenceIOR=this.iridescenceIOR),this.iridescenceThicknessRange!==void 0&&(n.iridescenceThicknessRange=this.iridescenceThicknessRange),this.iridescenceMap&&this.iridescenceMap.isTexture&&(n.iridescenceMap=this.iridescenceMap.toJSON(t).uuid),this.iridescenceThicknessMap&&this.iridescenceThicknessMap.isTexture&&(n.iridescenceThicknessMap=this.iridescenceThicknessMap.toJSON(t).uuid),this.anisotropy!==void 0&&(n.anisotropy=this.anisotropy),this.anisotropyRotation!==void 0&&(n.anisotropyRotation=this.anisotropyRotation),this.anisotropyMap&&this.anisotropyMap.isTexture&&(n.anisotropyMap=this.anisotropyMap.toJSON(t).uuid),this.map&&this.map.isTexture&&(n.map=this.map.toJSON(t).uuid),this.matcap&&this.matcap.isTexture&&(n.matcap=this.matcap.toJSON(t).uuid),this.alphaMap&&this.alphaMap.isTexture&&(n.alphaMap=this.alphaMap.toJSON(t).uuid),this.lightMap&&this.lightMap.isTexture&&(n.lightMap=this.lightMap.toJSON(t).uuid,n.lightMapIntensity=this.lightMapIntensity),this.aoMap&&this.aoMap.isTexture&&(n.aoMap=this.aoMap.toJSON(t).uuid,n.aoMapIntensity=this.aoMapIntensity),this.bumpMap&&this.bumpMap.isTexture&&(n.bumpMap=this.bumpMap.toJSON(t).uuid,n.bumpScale=this.bumpScale),this.normalMap&&this.normalMap.isTexture&&(n.normalMap=this.normalMap.toJSON(t).uuid,n.normalMapType=this.normalMapType,n.normalScale=this.normalScale.toArray()),this.displacementMap&&this.displacementMap.isTexture&&(n.displacementMap=this.displacementMap.toJSON(t).uuid,n.displacementScale=this.displacementScale,n.displacementBias=this.displacementBias),this.roughnessMap&&this.roughnessMap.isTexture&&(n.roughnessMap=this.roughnessMap.toJSON(t).uuid),this.metalnessMap&&this.metalnessMap.isTexture&&(n.metalnessMap=this.metalnessMap.toJSON(t).uuid),this.emissiveMap&&this.emissiveMap.isTexture&&(n.emissiveMap=this.emissiveMap.toJSON(t).uuid),this.specularMap&&this.specularMap.isTexture&&(n.specularMap=this.specularMap.toJSON(t).uuid),this.specularIntensityMap&&this.specularIntensityMap.isTexture&&(n.specularIntensityMap=this.specularIntensityMap.toJSON(t).uuid),this.specularColorMap&&this.specularColorMap.isTexture&&(n.specularColorMap=this.specularColorMap.toJSON(t).uuid),this.envMap&&this.envMap.isTexture&&(n.envMap=this.envMap.toJSON(t).uuid,this.combine!==void 0&&(n.combine=this.combine)),this.envMapRotation!==void 0&&(n.envMapRotation=this.envMapRotation.toArray()),this.envMapIntensity!==void 0&&(n.envMapIntensity=this.envMapIntensity),this.reflectivity!==void 0&&(n.reflectivity=this.reflectivity),this.refractionRatio!==void 0&&(n.refractionRatio=this.refractionRatio),this.gradientMap&&this.gradientMap.isTexture&&(n.gradientMap=this.gradientMap.toJSON(t).uuid),this.transmission!==void 0&&(n.transmission=this.transmission),this.transmissionMap&&this.transmissionMap.isTexture&&(n.transmissionMap=this.transmissionMap.toJSON(t).uuid),this.thickness!==void 0&&(n.thickness=this.thickness),this.thicknessMap&&this.thicknessMap.isTexture&&(n.thicknessMap=this.thicknessMap.toJSON(t).uuid),this.attenuationDistance!==void 0&&this.attenuationDistance!==1/0&&(n.attenuationDistance=this.attenuationDistance),this.attenuationColor!==void 0&&(n.attenuationColor=this.attenuationColor.getHex()),this.size!==void 0&&(n.size=this.size),this.shadowSide!==null&&(n.shadowSide=this.shadowSide),this.sizeAttenuation!==void 0&&(n.sizeAttenuation=this.sizeAttenuation),this.blending!==sr&&(n.blending=this.blending),this.side!==or&&(n.side=this.side),this.vertexColors===!0&&(n.vertexColors=!0),this.opacity<1&&(n.opacity=this.opacity),this.transparent===!0&&(n.transparent=!0),this.blendSrc!==Ru&&(n.blendSrc=this.blendSrc),this.blendDst!==Pu&&(n.blendDst=this.blendDst),this.blendEquation!==Hr&&(n.blendEquation=this.blendEquation),this.blendSrcAlpha!==null&&(n.blendSrcAlpha=this.blendSrcAlpha),this.blendDstAlpha!==null&&(n.blendDstAlpha=this.blendDstAlpha),this.blendEquationAlpha!==null&&(n.blendEquationAlpha=this.blendEquationAlpha),this.blendColor&&this.blendColor.isColor&&(n.blendColor=this.blendColor.getHex()),this.blendAlpha!==0&&(n.blendAlpha=this.blendAlpha),this.depthFunc!==jo&&(n.depthFunc=this.depthFunc),this.depthTest===!1&&(n.depthTest=this.depthTest),this.depthWrite===!1&&(n.depthWrite=this.depthWrite),this.colorWrite===!1&&(n.colorWrite=this.colorWrite),this.stencilWriteMask!==255&&(n.stencilWriteMask=this.stencilWriteMask),this.stencilFunc!==lp&&(n.stencilFunc=this.stencilFunc),this.stencilRef!==0&&(n.stencilRef=this.stencilRef),this.stencilFuncMask!==255&&(n.stencilFuncMask=this.stencilFuncMask),this.stencilFail!==gs&&(n.stencilFail=this.stencilFail),this.stencilZFail!==gs&&(n.stencilZFail=this.stencilZFail),this.stencilZPass!==gs&&(n.stencilZPass=this.stencilZPass),this.stencilWrite===!0&&(n.stencilWrite=this.stencilWrite),this.rotation!==void 0&&this.rotation!==0&&(n.rotation=this.rotation),this.polygonOffset===!0&&(n.polygonOffset=!0),this.polygonOffsetFactor!==0&&(n.polygonOffsetFactor=this.polygonOffsetFactor),this.polygonOffsetUnits!==0&&(n.polygonOffsetUnits=this.polygonOffsetUnits),this.linewidth!==void 0&&this.linewidth!==1&&(n.linewidth=this.linewidth),this.dashSize!==void 0&&(n.dashSize=this.dashSize),this.gapSize!==void 0&&(n.gapSize=this.gapSize),this.scale!==void 0&&(n.scale=this.scale),this.dithering===!0&&(n.dithering=!0),this.alphaTest>0&&(n.alphaTest=this.alphaTest),this.alphaHash===!0&&(n.alphaHash=!0),this.alphaToCoverage===!0&&(n.alphaToCoverage=!0),this.premultipliedAlpha===!0&&(n.premultipliedAlpha=!0),this.forceSinglePass===!0&&(n.forceSinglePass=!0),this.wireframe===!0&&(n.wireframe=!0),this.wireframeLinewidth>1&&(n.wireframeLinewidth=this.wireframeLinewidth),this.wireframeLinecap!=="round"&&(n.wireframeLinecap=this.wireframeLinecap),this.wireframeLinejoin!=="round"&&(n.wireframeLinejoin=this.wireframeLinejoin),this.flatShading===!0&&(n.flatShading=!0),this.visible===!1&&(n.visible=!1),this.toneMapped===!1&&(n.toneMapped=!1),this.fog===!1&&(n.fog=!1),Object.keys(this.userData).length>0&&(n.userData=this.userData);function i(s){let a=[];for(let o in s){let l=s[o];delete l.metadata,a.push(l)}return a}if(e){let s=i(t.textures),a=i(t.images);s.length>0&&(n.textures=s),a.length>0&&(n.images=a)}return n}clone(){return new this.constructor().copy(this)}copy(t){this.name=t.name,this.blending=t.blending,this.side=t.side,this.vertexColors=t.vertexColors,this.opacity=t.opacity,this.transparent=t.transparent,this.blendSrc=t.blendSrc,this.blendDst=t.blendDst,this.blendEquation=t.blendEquation,this.blendSrcAlpha=t.blendSrcAlpha,this.blendDstAlpha=t.blendDstAlpha,this.blendEquationAlpha=t.blendEquationAlpha,this.blendColor.copy(t.blendColor),this.blendAlpha=t.blendAlpha,this.depthFunc=t.depthFunc,this.depthTest=t.depthTest,this.depthWrite=t.depthWrite,this.stencilWriteMask=t.stencilWriteMask,this.stencilFunc=t.stencilFunc,this.stencilRef=t.stencilRef,this.stencilFuncMask=t.stencilFuncMask,this.stencilFail=t.stencilFail,this.stencilZFail=t.stencilZFail,this.stencilZPass=t.stencilZPass,this.stencilWrite=t.stencilWrite;let e=t.clippingPlanes,n=null;if(e!==null){let i=e.length;n=new Array(i);for(let s=0;s!==i;++s)n[s]=e[s].clone()}return this.clippingPlanes=n,this.clipIntersection=t.clipIntersection,this.clipShadows=t.clipShadows,this.shadowSide=t.shadowSide,this.colorWrite=t.colorWrite,this.precision=t.precision,this.polygonOffset=t.polygonOffset,this.polygonOffsetFactor=t.polygonOffsetFactor,this.polygonOffsetUnits=t.polygonOffsetUnits,this.dithering=t.dithering,this.alphaTest=t.alphaTest,this.alphaHash=t.alphaHash,this.alphaToCoverage=t.alphaToCoverage,this.premultipliedAlpha=t.premultipliedAlpha,this.forceSinglePass=t.forceSinglePass,this.visible=t.visible,this.toneMapped=t.toneMapped,this.userData=JSON.parse(JSON.stringify(t.userData)),this}dispose(){this.dispatchEvent({type:"dispose"})}set needsUpdate(t){t===!0&&this.version++}},hl=class extends Yr{constructor(t){super(),this.isMeshBasicMaterial=!0,this.type="MeshBasicMaterial",this.color=new re(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 Ni,this.combine=nm,this.reflectivity=1,this.refractionRatio=.98,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinecap="round",this.wireframeLinejoin="round",this.fog=!0,this.setValues(t)}copy(t){return super.copy(t),this.color.copy(t.color),this.map=t.map,this.lightMap=t.lightMap,this.lightMapIntensity=t.lightMapIntensity,this.aoMap=t.aoMap,this.aoMapIntensity=t.aoMapIntensity,this.specularMap=t.specularMap,this.alphaMap=t.alphaMap,this.envMap=t.envMap,this.envMapRotation.copy(t.envMapRotation),this.combine=t.combine,this.reflectivity=t.reflectivity,this.refractionRatio=t.refractionRatio,this.wireframe=t.wireframe,this.wireframeLinewidth=t.wireframeLinewidth,this.wireframeLinecap=t.wireframeLinecap,this.wireframeLinejoin=t.wireframeLinejoin,this.fog=t.fog,this}};var Fe=new q,Bo=new ae,Xn=class{constructor(t,e,n=!1){if(Array.isArray(t))throw new TypeError("THREE.BufferAttribute: array should be a Typed Array.");this.isBufferAttribute=!0,this.name="",this.array=t,this.itemSize=e,this.count=t!==void 0?t.length/e:0,this.normalized=n,this.usage=cp,this._updateRange={offset:0,count:-1},this.updateRanges=[],this.gpuType=nr,this.version=0}onUploadCallback(){}set needsUpdate(t){t===!0&&this.version++}get updateRange(){return R0("THREE.BufferAttribute: updateRange() is deprecated and will be removed in r169. Use addUpdateRange() instead."),this._updateRange}setUsage(t){return this.usage=t,this}addUpdateRange(t,e){this.updateRanges.push({start:t,count:e})}clearUpdateRanges(){this.updateRanges.length=0}copy(t){return this.name=t.name,this.array=new t.array.constructor(t.array),this.itemSize=t.itemSize,this.count=t.count,this.normalized=t.normalized,this.usage=t.usage,this.gpuType=t.gpuType,this}copyAt(t,e,n){t*=this.itemSize,n*=e.itemSize;for(let i=0,s=this.itemSize;i<s;i++)this.array[t+i]=e.array[n+i];return this}copyArray(t){return this.array.set(t),this}applyMatrix3(t){if(this.itemSize===2)for(let e=0,n=this.count;e<n;e++)Bo.fromBufferAttribute(this,e),Bo.applyMatrix3(t),this.setXY(e,Bo.x,Bo.y);else if(this.itemSize===3)for(let e=0,n=this.count;e<n;e++)Fe.fromBufferAttribute(this,e),Fe.applyMatrix3(t),this.setXYZ(e,Fe.x,Fe.y,Fe.z);return this}applyMatrix4(t){for(let e=0,n=this.count;e<n;e++)Fe.fromBufferAttribute(this,e),Fe.applyMatrix4(t),this.setXYZ(e,Fe.x,Fe.y,Fe.z);return this}applyNormalMatrix(t){for(let e=0,n=this.count;e<n;e++)Fe.fromBufferAttribute(this,e),Fe.applyNormalMatrix(t),this.setXYZ(e,Fe.x,Fe.y,Fe.z);return this}transformDirection(t){for(let e=0,n=this.count;e<n;e++)Fe.fromBufferAttribute(this,e),Fe.transformDirection(t),this.setXYZ(e,Fe.x,Fe.y,Fe.z);return this}set(t,e=0){return this.array.set(t,e),this}getComponent(t,e){let n=this.array[t*this.itemSize+e];return this.normalized&&(n=Ea(n,this.array)),n}setComponent(t,e,n){return this.normalized&&(n=En(n,this.array)),this.array[t*this.itemSize+e]=n,this}getX(t){let e=this.array[t*this.itemSize];return this.normalized&&(e=Ea(e,this.array)),e}setX(t,e){return this.normalized&&(e=En(e,this.array)),this.array[t*this.itemSize]=e,this}getY(t){let e=this.array[t*this.itemSize+1];return this.normalized&&(e=Ea(e,this.array)),e}setY(t,e){return this.normalized&&(e=En(e,this.array)),this.array[t*this.itemSize+1]=e,this}getZ(t){let e=this.array[t*this.itemSize+2];return this.normalized&&(e=Ea(e,this.array)),e}setZ(t,e){return this.normalized&&(e=En(e,this.array)),this.array[t*this.itemSize+2]=e,this}getW(t){let e=this.array[t*this.itemSize+3];return this.normalized&&(e=Ea(e,this.array)),e}setW(t,e){return this.normalized&&(e=En(e,this.array)),this.array[t*this.itemSize+3]=e,this}setXY(t,e,n){return t*=this.itemSize,this.normalized&&(e=En(e,this.array),n=En(n,this.array)),this.array[t+0]=e,this.array[t+1]=n,this}setXYZ(t,e,n,i){return t*=this.itemSize,this.normalized&&(e=En(e,this.array),n=En(n,this.array),i=En(i,this.array)),this.array[t+0]=e,this.array[t+1]=n,this.array[t+2]=i,this}setXYZW(t,e,n,i,s){return t*=this.itemSize,this.normalized&&(e=En(e,this.array),n=En(n,this.array),i=En(i,this.array),s=En(s,this.array)),this.array[t+0]=e,this.array[t+1]=n,this.array[t+2]=i,this.array[t+3]=s,this}onUpload(t){return this.onUploadCallback=t,this}clone(){return new this.constructor(this.array,this.itemSize).copy(this)}toJSON(){let t={itemSize:this.itemSize,type:this.array.constructor.name,array:Array.from(this.array),normalized:this.normalized};return this.name!==""&&(t.name=this.name),this.usage!==cp&&(t.usage=this.usage),t}};var fl=class extends Xn{constructor(t,e,n){super(new Uint16Array(t),e,n)}};var dl=class extends Xn{constructor(t,e,n){super(new Uint32Array(t),e,n)}};var qn=class extends Xn{constructor(t,e,n){super(new Float32Array(t),e,n)}},H0=0,Hn=new Re,yu=new sn,Ts=new q,Ln=new qr,Da=new qr,Ge=new q,mi=class r extends cr{constructor(){super(),this.isBufferGeometry=!0,Object.defineProperty(this,"id",{value:H0++}),this.uuid=Na(),this.name="",this.type="BufferGeometry",this.index=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(t){return Array.isArray(t)?this.index=new(fm(t)?dl:fl)(t,1):this.index=t,this}getAttribute(t){return this.attributes[t]}setAttribute(t,e){return this.attributes[t]=e,this}deleteAttribute(t){return delete this.attributes[t],this}hasAttribute(t){return this.attributes[t]!==void 0}addGroup(t,e,n=0){this.groups.push({start:t,count:e,materialIndex:n})}clearGroups(){this.groups=[]}setDrawRange(t,e){this.drawRange.start=t,this.drawRange.count=e}applyMatrix4(t){let e=this.attributes.position;e!==void 0&&(e.applyMatrix4(t),e.needsUpdate=!0);let n=this.attributes.normal;if(n!==void 0){let s=new qt().getNormalMatrix(t);n.applyNormalMatrix(s),n.needsUpdate=!0}let i=this.attributes.tangent;return i!==void 0&&(i.transformDirection(t),i.needsUpdate=!0),this.boundingBox!==null&&this.computeBoundingBox(),this.boundingSphere!==null&&this.computeBoundingSphere(),this}applyQuaternion(t){return Hn.makeRotationFromQuaternion(t),this.applyMatrix4(Hn),this}rotateX(t){return Hn.makeRotationX(t),this.applyMatrix4(Hn),this}rotateY(t){return Hn.makeRotationY(t),this.applyMatrix4(Hn),this}rotateZ(t){return Hn.makeRotationZ(t),this.applyMatrix4(Hn),this}translate(t,e,n){return Hn.makeTranslation(t,e,n),this.applyMatrix4(Hn),this}scale(t,e,n){return Hn.makeScale(t,e,n),this.applyMatrix4(Hn),this}lookAt(t){return yu.lookAt(t),yu.updateMatrix(),this.applyMatrix4(yu.matrix),this}center(){return this.computeBoundingBox(),this.boundingBox.getCenter(Ts).negate(),this.translate(Ts.x,Ts.y,Ts.z),this}setFromPoints(t){let e=[];for(let n=0,i=t.length;n<i;n++){let s=t[n];e.push(s.x,s.y,s.z||0)}return this.setAttribute("position",new qn(e,3)),this}computeBoundingBox(){this.boundingBox===null&&(this.boundingBox=new qr);let t=this.attributes.position,e=this.morphAttributes.position;if(t&&t.isGLBufferAttribute){console.error("THREE.BufferGeometry.computeBoundingBox(): GLBufferAttribute requires a manual bounding box.",this),this.boundingBox.set(new q(-1/0,-1/0,-1/0),new q(1/0,1/0,1/0));return}if(t!==void 0){if(this.boundingBox.setFromBufferAttribute(t),e)for(let n=0,i=e.length;n<i;n++){let s=e[n];Ln.setFromBufferAttribute(s),this.morphTargetsRelative?(Ge.addVectors(this.boundingBox.min,Ln.min),this.boundingBox.expandByPoint(Ge),Ge.addVectors(this.boundingBox.max,Ln.max),this.boundingBox.expandByPoint(Ge)):(this.boundingBox.expandByPoint(Ln.min),this.boundingBox.expandByPoint(Ln.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(){this.boundingSphere===null&&(this.boundingSphere=new Vs);let t=this.attributes.position,e=this.morphAttributes.position;if(t&&t.isGLBufferAttribute){console.error("THREE.BufferGeometry.computeBoundingSphere(): GLBufferAttribute requires a manual bounding sphere.",this),this.boundingSphere.set(new q,1/0);return}if(t){let n=this.boundingSphere.center;if(Ln.setFromBufferAttribute(t),e)for(let s=0,a=e.length;s<a;s++){let o=e[s];Da.setFromBufferAttribute(o),this.morphTargetsRelative?(Ge.addVectors(Ln.min,Da.min),Ln.expandByPoint(Ge),Ge.addVectors(Ln.max,Da.max),Ln.expandByPoint(Ge)):(Ln.expandByPoint(Da.min),Ln.expandByPoint(Da.max))}Ln.getCenter(n);let i=0;for(let s=0,a=t.count;s<a;s++)Ge.fromBufferAttribute(t,s),i=Math.max(i,n.distanceToSquared(Ge));if(e)for(let s=0,a=e.length;s<a;s++){let o=e[s],l=this.morphTargetsRelative;for(let c=0,u=o.count;c<u;c++)Ge.fromBufferAttribute(o,c),l&&(Ts.fromBufferAttribute(t,c),Ge.add(Ts)),i=Math.max(i,n.distanceToSquared(Ge))}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(){let t=this.index,e=this.attributes;if(t===null||e.position===void 0||e.normal===void 0||e.uv===void 0){console.error("THREE.BufferGeometry: .computeTangents() failed. Missing required attributes (index, position, normal or uv)");return}let n=e.position,i=e.normal,s=e.uv;this.hasAttribute("tangent")===!1&&this.setAttribute("tangent",new Xn(new Float32Array(4*n.count),4));let a=this.getAttribute("tangent"),o=[],l=[];for(let P=0;P<n.count;P++)o[P]=new q,l[P]=new q;let c=new q,u=new q,f=new q,h=new ae,d=new ae,_=new ae,g=new q,p=new q;function m(P,y,x){c.fromBufferAttribute(n,P),u.fromBufferAttribute(n,y),f.fromBufferAttribute(n,x),h.fromBufferAttribute(s,P),d.fromBufferAttribute(s,y),_.fromBufferAttribute(s,x),u.sub(c),f.sub(c),d.sub(h),_.sub(h);let F=1/(d.x*_.y-_.x*d.y);isFinite(F)&&(g.copy(u).multiplyScalar(_.y).addScaledVector(f,-d.y).multiplyScalar(F),p.copy(f).multiplyScalar(d.x).addScaledVector(u,-_.x).multiplyScalar(F),o[P].add(g),o[y].add(g),o[x].add(g),l[P].add(p),l[y].add(p),l[x].add(p))}let S=this.groups;S.length===0&&(S=[{start:0,count:t.count}]);for(let P=0,y=S.length;P<y;++P){let x=S[P],F=x.start,I=x.count;for(let R=F,B=F+I;R<B;R+=3)m(t.getX(R+0),t.getX(R+1),t.getX(R+2))}let v=new q,M=new q,D=new q,T=new q;function w(P){D.fromBufferAttribute(i,P),T.copy(D);let y=o[P];v.copy(y),v.sub(D.multiplyScalar(D.dot(y))).normalize(),M.crossVectors(T,y);let F=M.dot(l[P])<0?-1:1;a.setXYZW(P,v.x,v.y,v.z,F)}for(let P=0,y=S.length;P<y;++P){let x=S[P],F=x.start,I=x.count;for(let R=F,B=F+I;R<B;R+=3)w(t.getX(R+0)),w(t.getX(R+1)),w(t.getX(R+2))}}computeVertexNormals(){let t=this.index,e=this.getAttribute("position");if(e!==void 0){let n=this.getAttribute("normal");if(n===void 0)n=new Xn(new Float32Array(e.count*3),3),this.setAttribute("normal",n);else for(let h=0,d=n.count;h<d;h++)n.setXYZ(h,0,0,0);let i=new q,s=new q,a=new q,o=new q,l=new q,c=new q,u=new q,f=new q;if(t)for(let h=0,d=t.count;h<d;h+=3){let _=t.getX(h+0),g=t.getX(h+1),p=t.getX(h+2);i.fromBufferAttribute(e,_),s.fromBufferAttribute(e,g),a.fromBufferAttribute(e,p),u.subVectors(a,s),f.subVectors(i,s),u.cross(f),o.fromBufferAttribute(n,_),l.fromBufferAttribute(n,g),c.fromBufferAttribute(n,p),o.add(u),l.add(u),c.add(u),n.setXYZ(_,o.x,o.y,o.z),n.setXYZ(g,l.x,l.y,l.z),n.setXYZ(p,c.x,c.y,c.z)}else for(let h=0,d=e.count;h<d;h+=3)i.fromBufferAttribute(e,h+0),s.fromBufferAttribute(e,h+1),a.fromBufferAttribute(e,h+2),u.subVectors(a,s),f.subVectors(i,s),u.cross(f),n.setXYZ(h+0,u.x,u.y,u.z),n.setXYZ(h+1,u.x,u.y,u.z),n.setXYZ(h+2,u.x,u.y,u.z);this.normalizeNormals(),n.needsUpdate=!0}}normalizeNormals(){let t=this.attributes.normal;for(let e=0,n=t.count;e<n;e++)Ge.fromBufferAttribute(t,e),Ge.normalize(),t.setXYZ(e,Ge.x,Ge.y,Ge.z)}toNonIndexed(){function t(o,l){let c=o.array,u=o.itemSize,f=o.normalized,h=new c.constructor(l.length*u),d=0,_=0;for(let g=0,p=l.length;g<p;g++){o.isInterleavedBufferAttribute?d=l[g]*o.data.stride+o.offset:d=l[g]*u;for(let m=0;m<u;m++)h[_++]=c[d++]}return new Xn(h,u,f)}if(this.index===null)return console.warn("THREE.BufferGeometry.toNonIndexed(): BufferGeometry is already non-indexed."),this;let e=new r,n=this.index.array,i=this.attributes;for(let o in i){let l=i[o],c=t(l,n);e.setAttribute(o,c)}let s=this.morphAttributes;for(let o in s){let l=[],c=s[o];for(let u=0,f=c.length;u<f;u++){let h=c[u],d=t(h,n);l.push(d)}e.morphAttributes[o]=l}e.morphTargetsRelative=this.morphTargetsRelative;let a=this.groups;for(let o=0,l=a.length;o<l;o++){let c=a[o];e.addGroup(c.start,c.count,c.materialIndex)}return e}toJSON(){let t={metadata:{version:4.6,type:"BufferGeometry",generator:"BufferGeometry.toJSON"}};if(t.uuid=this.uuid,t.type=this.type,this.name!==""&&(t.name=this.name),Object.keys(this.userData).length>0&&(t.userData=this.userData),this.parameters!==void 0){let l=this.parameters;for(let c in l)l[c]!==void 0&&(t[c]=l[c]);return t}t.data={attributes:{}};let e=this.index;e!==null&&(t.data.index={type:e.array.constructor.name,array:Array.prototype.slice.call(e.array)});let n=this.attributes;for(let l in n){let c=n[l];t.data.attributes[l]=c.toJSON(t.data)}let i={},s=!1;for(let l in this.morphAttributes){let c=this.morphAttributes[l],u=[];for(let f=0,h=c.length;f<h;f++){let d=c[f];u.push(d.toJSON(t.data))}u.length>0&&(i[l]=u,s=!0)}s&&(t.data.morphAttributes=i,t.data.morphTargetsRelative=this.morphTargetsRelative);let a=this.groups;a.length>0&&(t.data.groups=JSON.parse(JSON.stringify(a)));let o=this.boundingSphere;return o!==null&&(t.data.boundingSphere={center:o.center.toArray(),radius:o.radius}),t}clone(){return new this.constructor().copy(this)}copy(t){this.index=null,this.attributes={},this.morphAttributes={},this.groups=[],this.boundingBox=null,this.boundingSphere=null;let e={};this.name=t.name;let n=t.index;n!==null&&this.setIndex(n.clone(e));let i=t.attributes;for(let c in i){let u=i[c];this.setAttribute(c,u.clone(e))}let s=t.morphAttributes;for(let c in s){let u=[],f=s[c];for(let h=0,d=f.length;h<d;h++)u.push(f[h].clone(e));this.morphAttributes[c]=u}this.morphTargetsRelative=t.morphTargetsRelative;let a=t.groups;for(let c=0,u=a.length;c<u;c++){let f=a[c];this.addGroup(f.start,f.count,f.materialIndex)}let o=t.boundingBox;o!==null&&(this.boundingBox=o.clone());let l=t.boundingSphere;return l!==null&&(this.boundingSphere=l.clone()),this.drawRange.start=t.drawRange.start,this.drawRange.count=t.drawRange.count,this.userData=t.userData,this}dispose(){this.dispatchEvent({type:"dispose"})}},bp=new Re,Or=new cl,zo=new Vs,Ep=new q,As=new q,Ds=new q,Cs=new q,Mu=new q,ko=new q,Vo=new ae,Ho=new ae,Go=new ae,wp=new q,Tp=new q,Ap=new q,Wo=new q,Xo=new q,ii=class extends sn{constructor(t=new mi,e=new hl){super(),this.isMesh=!0,this.type="Mesh",this.geometry=t,this.material=e,this.updateMorphTargets()}copy(t,e){return super.copy(t,e),t.morphTargetInfluences!==void 0&&(this.morphTargetInfluences=t.morphTargetInfluences.slice()),t.morphTargetDictionary!==void 0&&(this.morphTargetDictionary=Object.assign({},t.morphTargetDictionary)),this.material=Array.isArray(t.material)?t.material.slice():t.material,this.geometry=t.geometry,this}updateMorphTargets(){let e=this.geometry.morphAttributes,n=Object.keys(e);if(n.length>0){let i=e[n[0]];if(i!==void 0){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(let s=0,a=i.length;s<a;s++){let o=i[s].name||String(s);this.morphTargetInfluences.push(0),this.morphTargetDictionary[o]=s}}}}getVertexPosition(t,e){let n=this.geometry,i=n.attributes.position,s=n.morphAttributes.position,a=n.morphTargetsRelative;e.fromBufferAttribute(i,t);let o=this.morphTargetInfluences;if(s&&o){ko.set(0,0,0);for(let l=0,c=s.length;l<c;l++){let u=o[l],f=s[l];u!==0&&(Mu.fromBufferAttribute(f,t),a?ko.addScaledVector(Mu,u):ko.addScaledVector(Mu.sub(e),u))}e.add(ko)}return e}raycast(t,e){let n=this.geometry,i=this.material,s=this.matrixWorld;i!==void 0&&(n.boundingSphere===null&&n.computeBoundingSphere(),zo.copy(n.boundingSphere),zo.applyMatrix4(s),Or.copy(t.ray).recast(t.near),!(zo.containsPoint(Or.origin)===!1&&(Or.intersectSphere(zo,Ep)===null||Or.origin.distanceToSquared(Ep)>(t.far-t.near)**2))&&(bp.copy(s).invert(),Or.copy(t.ray).applyMatrix4(bp),!(n.boundingBox!==null&&Or.intersectsBox(n.boundingBox)===!1)&&this._computeIntersections(t,e,Or)))}_computeIntersections(t,e,n){let i,s=this.geometry,a=this.material,o=s.index,l=s.attributes.position,c=s.attributes.uv,u=s.attributes.uv1,f=s.attributes.normal,h=s.groups,d=s.drawRange;if(o!==null)if(Array.isArray(a))for(let _=0,g=h.length;_<g;_++){let p=h[_],m=a[p.materialIndex],S=Math.max(p.start,d.start),v=Math.min(o.count,Math.min(p.start+p.count,d.start+d.count));for(let M=S,D=v;M<D;M+=3){let T=o.getX(M),w=o.getX(M+1),P=o.getX(M+2);i=qo(this,m,t,n,c,u,f,T,w,P),i&&(i.faceIndex=Math.floor(M/3),i.face.materialIndex=p.materialIndex,e.push(i))}}else{let _=Math.max(0,d.start),g=Math.min(o.count,d.start+d.count);for(let p=_,m=g;p<m;p+=3){let S=o.getX(p),v=o.getX(p+1),M=o.getX(p+2);i=qo(this,a,t,n,c,u,f,S,v,M),i&&(i.faceIndex=Math.floor(p/3),e.push(i))}}else if(l!==void 0)if(Array.isArray(a))for(let _=0,g=h.length;_<g;_++){let p=h[_],m=a[p.materialIndex],S=Math.max(p.start,d.start),v=Math.min(l.count,Math.min(p.start+p.count,d.start+d.count));for(let M=S,D=v;M<D;M+=3){let T=M,w=M+1,P=M+2;i=qo(this,m,t,n,c,u,f,T,w,P),i&&(i.faceIndex=Math.floor(M/3),i.face.materialIndex=p.materialIndex,e.push(i))}}else{let _=Math.max(0,d.start),g=Math.min(l.count,d.start+d.count);for(let p=_,m=g;p<m;p+=3){let S=p,v=p+1,M=p+2;i=qo(this,a,t,n,c,u,f,S,v,M),i&&(i.faceIndex=Math.floor(p/3),e.push(i))}}}};function G0(r,t,e,n,i,s,a,o){let l;if(t.side===Tn?l=n.intersectTriangle(a,s,i,!0,o):l=n.intersectTriangle(i,s,a,t.side===or,o),l===null)return null;Xo.copy(o),Xo.applyMatrix4(r.matrixWorld);let c=e.ray.origin.distanceTo(Xo);return c<e.near||c>e.far?null:{distance:c,point:Xo.clone(),object:r}}function qo(r,t,e,n,i,s,a,o,l,c){r.getVertexPosition(o,As),r.getVertexPosition(l,Ds),r.getVertexPosition(c,Cs);let u=G0(r,t,e,n,As,Ds,Cs,Wo);if(u){i&&(Vo.fromBufferAttribute(i,o),Ho.fromBufferAttribute(i,l),Go.fromBufferAttribute(i,c),u.uv=Ls.getInterpolation(Wo,As,Ds,Cs,Vo,Ho,Go,new ae)),s&&(Vo.fromBufferAttribute(s,o),Ho.fromBufferAttribute(s,l),Go.fromBufferAttribute(s,c),u.uv1=Ls.getInterpolation(Wo,As,Ds,Cs,Vo,Ho,Go,new ae)),a&&(wp.fromBufferAttribute(a,o),Tp.fromBufferAttribute(a,l),Ap.fromBufferAttribute(a,c),u.normal=Ls.getInterpolation(Wo,As,Ds,Cs,wp,Tp,Ap,new q),u.normal.dot(n.direction)>0&&u.normal.multiplyScalar(-1));let f={a:o,b:l,c,normal:new q,materialIndex:0};Ls.getNormal(As,Ds,Cs,f.normal),u.face=f}return u}var Ia=class r extends mi{constructor(t=1,e=1,n=1,i=1,s=1,a=1){super(),this.type="BoxGeometry",this.parameters={width:t,height:e,depth:n,widthSegments:i,heightSegments:s,depthSegments:a};let o=this;i=Math.floor(i),s=Math.floor(s),a=Math.floor(a);let l=[],c=[],u=[],f=[],h=0,d=0;_("z","y","x",-1,-1,n,e,t,a,s,0),_("z","y","x",1,-1,n,e,-t,a,s,1),_("x","z","y",1,1,t,n,e,i,a,2),_("x","z","y",1,-1,t,n,-e,i,a,3),_("x","y","z",1,-1,t,e,n,i,s,4),_("x","y","z",-1,-1,t,e,-n,i,s,5),this.setIndex(l),this.setAttribute("position",new qn(c,3)),this.setAttribute("normal",new qn(u,3)),this.setAttribute("uv",new qn(f,2));function _(g,p,m,S,v,M,D,T,w,P,y){let x=M/w,F=D/P,I=M/2,R=D/2,B=T/2,G=w+1,Z=P+1,J=0,N=0,Q=new q;for(let A=0;A<Z;A++){let at=A*F-R;for(let bt=0;bt<G;bt++){let Zt=bt*x-I;Q[g]=Zt*S,Q[p]=at*v,Q[m]=B,c.push(Q.x,Q.y,Q.z),Q[g]=0,Q[p]=0,Q[m]=T>0?1:-1,u.push(Q.x,Q.y,Q.z),f.push(bt/w),f.push(1-A/P),J+=1}}for(let A=0;A<P;A++)for(let at=0;at<w;at++){let bt=h+at+G*A,Zt=h+at+G*(A+1),X=h+(at+1)+G*(A+1),tt=h+(at+1)+G*A;l.push(bt,Zt,tt),l.push(Zt,X,tt),N+=6}o.addGroup(d,N,y),d+=N,h+=J}}copy(t){return super.copy(t),this.parameters=Object.assign({},t.parameters),this}static fromJSON(t){return new r(t.width,t.height,t.depth,t.widthSegments,t.heightSegments,t.depthSegments)}};function Hs(r){let t={};for(let e in r){t[e]={};for(let n in r[e]){let i=r[e][n];i&&(i.isColor||i.isMatrix3||i.isMatrix4||i.isVector2||i.isVector3||i.isVector4||i.isTexture||i.isQuaternion)?i.isRenderTargetTexture?(console.warn("UniformsUtils: Textures of render targets cannot be cloned via cloneUniforms() or mergeUniforms()."),t[e][n]=null):t[e][n]=i.clone():Array.isArray(i)?t[e][n]=i.slice():t[e][n]=i}}return t}function gn(r){let t={};for(let e=0;e<r.length;e++){let n=Hs(r[e]);for(let i in n)t[i]=n[i]}return t}function W0(r){let t=[];for(let e=0;e<r.length;e++)t.push(r[e].clone());return t}function pm(r){let t=r.getRenderTarget();return t===null?r.outputColorSpace:t.isXRRenderTarget===!0?t.texture.colorSpace:he.workingColorSpace}var X0={clone:Hs,merge:gn},q0=`void main() {
|
|
2
2
|
gl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );
|
|
3
3
|
}`,Y0=`void main() {
|
|
4
4
|
gl_FragColor = vec4( 1.0, 0.0, 0.0, 1.0 );
|