@widelab-development/pirxey-webflow-dev 0.0.8 → 0.0.9
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/blog.js +2 -2
- package/package.json +1 -1
package/dist/blog.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(()=>{function Oi(r){if(r===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r}function Fd(r,t){r.prototype=Object.create(t.prototype),r.prototype.constructor=r,r.__proto__=t}var Pn={autoSleep:120,force3D:"auto",nullTargetWarn:1,units:{lineHeight:""}},ks={duration:.5,overwrite:!1,delay:0},Au,an,Ae,Yn=1e8,we=1/Yn,gu=Math.PI*2,W0=gu/4,X0=0,Nd=Math.sqrt,Y0=Math.cos,q0=Math.sin,Ge=function(t){return typeof t=="string"},Ie=function(t){return typeof t=="function"},ki=function(t){return typeof t=="number"},cl=function(t){return typeof t>"u"},Ti=function(t){return typeof t=="object"},Rn=function(t){return t!==!1},Du=function(){return typeof window<"u"},tl=function(t){return Ie(t)||Ge(t)},Ud=typeof ArrayBuffer=="function"&&ArrayBuffer.isView||function(){},ln=Array.isArray,_u=/(?:-?\.?\d|\.)+/gi,Cu=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,$r=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,cu=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,Ru=/[+-]=-?[.\d]+/,Od=/[^,'"\[\]\s]+/gi,Z0=/^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i,Ce,wi,xu,Pu,On={},rl={},Bd,kd=function(t){return(rl=Jr(t,On))&&cn},ul=function(t,e){return console.warn("Invalid property",t,"set to",e,"Missing plugin? gsap.registerPlugin()")},jo=function(t,e){return!e&&console.warn(t)},zd=function(t,e){return t&&(On[t]=e)&&rl&&(rl[t]=e)||On},Qo=function(){return 0},J0={suppressEvents:!0,isStart:!0,kill:!1},el={suppressEvents:!0,kill:!1},$0={suppressEvents:!0},Iu={},ur=[],vu={},Vd,Dn={},uu={},Ad=30,nl=[],Lu="",Fu=function(t){var e=t[0],n,i;if(Ti(e)||Ie(e)||(t=[t]),!(n=(e._gsap||{}).harness)){for(i=nl.length;i--&&!nl[i].targetTest(e););n=nl[i]}for(i=t.length;i--;)t[i]&&(t[i]._gsap||(t[i]._gsap=new Ou(t[i],n)))||t.splice(i,1);return t},hr=function(t){return t._gsap||Fu(qn(t))[0]._gsap},Nu=function(t,e,n){return(n=t[e])&&Ie(n)?t[e]():cl(n)&&t.getAttribute&&t.getAttribute(e)||n},_n=function(t,e){return(t=t.split(",")).forEach(e)||t},Le=function(t){return Math.round(t*1e5)/1e5||0},Je=function(t){return Math.round(t*1e7)/1e7||0},Kr=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},K0=function(t,e){for(var n=e.length,i=0;t.indexOf(e[i])<0&&++i<n;);return i<n},sl=function(){var t=ur.length,e=ur.slice(0),n,i;for(vu={},ur.length=0,n=0;n<t;n++)i=e[n],i&&i._lazy&&(i.render(i._lazy[0],i._lazy[1],!0)._lazy=0)},Hd=function(t,e,n,i){ur.length&&!an&&sl(),t.render(e,n,i||an&&e<0&&(t._initted||t._startAt)),ur.length&&!an&&sl()},Gd=function(t){var e=parseFloat(t);return(e||e===0)&&(t+"").match(Od).length<2?e:Ge(t)?t.trim():t},Wd=function(t){return t},Zn=function(t,e){for(var n in e)n in t||(t[n]=e[n]);return t},j0=function(t){return function(e,n){for(var i in n)i in e||i==="duration"&&t||i==="ease"||(e[i]=n[i])}},Jr=function(t,e){for(var n in e)t[n]=e[n];return t},Dd=function r(t,e){for(var n in e)n!=="__proto__"&&n!=="constructor"&&n!=="prototype"&&(t[n]=Ti(e[n])?r(t[n]||(t[n]={}),e[n]):e[n]);return t},ol=function(t,e){var n={},i;for(i in t)i in e||(n[i]=t[i]);return n},Jo=function(t){var e=t.parent||Ce,n=t.keyframes?j0(ln(t.keyframes)):Zn;if(Rn(t.inherit))for(;e;)n(t,e.vars.defaults),e=e.parent||e._dp;return t},Q0=function(t,e){for(var n=t.length,i=n===e.length;i&&n--&&t[n]===e[n];);return n<0},Xd=function(t,e,n,i,s){n===void 0&&(n="_first"),i===void 0&&(i="_last");var o=t[i],a;if(s)for(a=e[s];o&&o[s]>a;)o=o._prev;return o?(e._next=o._next,o._next=e):(e._next=t[n],t[n]=e),e._next?e._next._prev=e:t[i]=e,e._prev=o,e.parent=e._dp=t,e},hl=function(t,e,n,i){n===void 0&&(n="_first"),i===void 0&&(i="_last");var s=e._prev,o=e._next;s?s._next=o:t[n]===e&&(t[n]=o),o?o._prev=s:t[i]===e&&(t[i]=s),e._next=e._prev=e.parent=null},fr=function(t,e){t.parent&&(!e||t.parent.autoRemoveChildren)&&t.parent.remove&&t.parent.remove(t),t._act=0},Yr=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},tx=function(t){for(var e=t.parent;e&&e.parent;)e._dirty=1,e.totalDuration(),e=e.parent;return t},yu=function(t,e,n,i){return t._startAt&&(an?t._startAt.revert(el):t.vars.immediateRender&&!t.vars.autoRevert||t._startAt.render(e,!0,i))},ex=function r(t){return!t||t._ts&&r(t.parent)},Cd=function(t){return t._repeat?zs(t._tTime,t=t.duration()+t._rDelay)*t:0},zs=function(t,e){var n=Math.floor(t/=e);return t&&n===t?n-1:n},al=function(t,e){return(t-e._start)*e._ts+(e._ts>=0?0:e._dirty?e.totalDuration():e._tDur)},fl=function(t){return t._end=Je(t._start+(t._tDur/Math.abs(t._ts||t._rts||we)||0))},dl=function(t,e){var n=t._dp;return n&&n.smoothChildTiming&&t._ts&&(t._start=Je(n._time-(t._ts>0?e/t._ts:((t._dirty?t.totalDuration():t._tDur)-e)/-t._ts)),fl(t),n._dirty||Yr(n,t)),t},Yd=function(t,e){var n;if((e._time||!e._dur&&e._initted||e._start<t._time&&(e._dur||!e.add))&&(n=al(t.rawTime(),e),(!e._dur||na(0,e.totalDuration(),n)-e._tTime>we)&&e.render(n,!0)),Yr(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=-we}},Ei=function(t,e,n,i){return e.parent&&fr(e),e._start=Je((ki(n)?n:n||t!==Ce?Xn(t,n,e):t._time)+e._delay),e._end=Je(e._start+(e.totalDuration()/Math.abs(e.timeScale())||0)),Xd(t,e,"_first","_last",t._sort?"_start":0),Su(e)||(t._recent=e),i||Yd(t,e),t._ts<0&&dl(t,t._tTime),t},qd=function(t,e){return(On.ScrollTrigger||ul("scrollTrigger",e))&&On.ScrollTrigger.create(e,t)},Zd=function(t,e,n,i,s){if(zu(t,e,s),!t._initted)return 1;if(!n&&t._pt&&!an&&(t._dur&&t.vars.lazy!==!1||!t._dur&&t.vars.lazy)&&Vd!==Cn.frame)return ur.push(t),t._lazy=[s,i],1},nx=function r(t){var e=t.parent;return e&&e._ts&&e._initted&&!e._lock&&(e.rawTime()<0||r(e))},Su=function(t){var e=t.data;return e==="isFromStart"||e==="isStart"},ix=function(t,e,n,i){var s=t.ratio,o=e<0||!e&&(!t._start&&nx(t)&&!(!t._initted&&Su(t))||(t._ts<0||t._dp._ts<0)&&!Su(t))?0:1,a=t._rDelay,l=0,c,h,f;if(a&&t._repeat&&(l=na(0,t._tDur,e),h=zs(l,a),t._yoyo&&h&1&&(o=1-o),h!==zs(t._tTime,a)&&(s=1-o,t.vars.repeatRefresh&&t._initted&&t.invalidate())),o!==s||an||i||t._zTime===we||!e&&t._zTime){if(!t._initted&&Zd(t,e,i,n,l))return;for(f=t._zTime,t._zTime=e||(n?we:0),n||(n=e&&!f),t.ratio=o,t._from&&(o=1-o),t._time=0,t._tTime=l,c=t._pt;c;)c.r(o,c.d),c=c._next;e<0&&yu(t,e,n,!0),t._onUpdate&&!n&&Un(t,"onUpdate"),l&&t._repeat&&!n&&t.parent&&Un(t,"onRepeat"),(e>=t._tDur||e<0)&&t.ratio===o&&(o&&fr(t,1),!n&&!an&&(Un(t,o?"onComplete":"onReverseComplete",!0),t._prom&&t._prom()))}else t._zTime||(t._zTime=e)},rx=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}},Vs=function(t,e,n,i){var s=t._repeat,o=Je(e)||0,a=t._tTime/t._tDur;return a&&!i&&(t._time*=o/t._dur),t._dur=o,t._tDur=s?s<0?1e10:Je(o*(s+1)+t._rDelay*s):o,a>0&&!i&&dl(t,t._tTime=t._tDur*a),t.parent&&fl(t),n||Yr(t.parent,t),t},Rd=function(t){return t instanceof tn?Yr(t):Vs(t,t._dur)},sx={_start:0,endTime:Qo,totalDuration:Qo},Xn=function r(t,e,n){var i=t.labels,s=t._recent||sx,o=t.duration()>=Yn?s.endTime(!1):t._dur,a,l,c;return Ge(e)&&(isNaN(e)||e in i)?(l=e.charAt(0),c=e.substr(-1)==="%",a=e.indexOf("="),l==="<"||l===">"?(a>=0&&(e=e.replace(/=/,"")),(l==="<"?s._start:s.endTime(s._repeat>=0))+(parseFloat(e.substr(1))||0)*(c?(a<0?s:n).totalDuration()/100:1)):a<0?(e in i||(i[e]=o),i[e]):(l=parseFloat(e.charAt(a-1)+e.substr(a+1)),c&&n&&(l=l/100*(ln(n)?n[0]:n).totalDuration()),a>1?r(t,e.substr(0,a-1),n)+l:o+l)):e==null?o:+e},$o=function(t,e,n){var i=ki(e[1]),s=(i?2:1)+(t<2?0:1),o=e[s],a,l;if(i&&(o.duration=e[1]),o.parent=n,t){for(a=o,l=n;l&&!("immediateRender"in a);)a=l.vars.defaults||{},l=Rn(l.vars.inherit)&&l.parent;o.immediateRender=Rn(a.immediateRender),t<2?o.runBackwards=1:o.startAt=e[s-1]}return new Ne(e[0],o,e[s+1])},dr=function(t,e){return t||t===0?e(t):e},na=function(t,e,n){return n<t?t:n>e?e:n},en=function(t,e){return!Ge(t)||!(e=Z0.exec(t))?"":e[1]},ox=function(t,e,n){return dr(n,function(i){return na(t,e,i)})},Mu=[].slice,Jd=function(t,e){return t&&Ti(t)&&"length"in t&&(!e&&!t.length||t.length-1 in t&&Ti(t[0]))&&!t.nodeType&&t!==wi},ax=function(t,e,n){return n===void 0&&(n=[]),t.forEach(function(i){var s;return Ge(i)&&!e||Jd(i,1)?(s=n).push.apply(s,qn(i)):n.push(i)})||n},qn=function(t,e,n){return Ae&&!e&&Ae.selector?Ae.selector(t):Ge(t)&&!n&&(xu||!Hs())?Mu.call((e||Pu).querySelectorAll(t),0):ln(t)?ax(t,n):Jd(t)?Mu.call(t,0):t?[t]:[]},bu=function(t){return t=qn(t)[0]||jo("Invalid scope")||{},function(e){var n=t.current||t.nativeElement||t;return qn(e,n.querySelectorAll?n:n===t?jo("Invalid scope")||Pu.createElement("div"):t)}},$d=function(t){return t.sort(function(){return .5-Math.random()})},Kd=function(t){if(Ie(t))return t;var e=Ti(t)?t:{each:t},n=qr(e.ease),i=e.from||0,s=parseFloat(e.base)||0,o={},a=i>0&&i<1,l=isNaN(i)||a,c=e.axis,h=i,f=i;return Ge(i)?h=f={center:.5,edges:.5,end:1}[i]||0:!a&&l&&(h=i[0],f=i[1]),function(d,u,_){var p=(_||e).length,m=o[p],g,b,y,S,D,T,w,P,M;if(!m){if(M=e.grid==="auto"?0:(e.grid||[1,Yn])[1],!M){for(w=-Yn;w<(w=_[M++].getBoundingClientRect().left)&&M<p;);M<p&&M--}for(m=o[p]=[],g=l?Math.min(M,p)*h-.5:i%M,b=M===Yn?0:l?p*f/M-.5:i/M|0,w=0,P=Yn,T=0;T<p;T++)y=T%M-g,S=b-(T/M|0),m[T]=D=c?Math.abs(c==="y"?S:y):Nd(y*y+S*S),D>w&&(w=D),D<P&&(P=D);i==="random"&&$d(m),m.max=w-P,m.min=P,m.v=p=(parseFloat(e.amount)||parseFloat(e.each)*(M>p?p-1:c?c==="y"?p/M:M:Math.max(M,p/M))||0)*(i==="edges"?-1:1),m.b=p<0?s-p:s,m.u=en(e.amount||e.each)||0,n=n&&p<0?op(n):n}return p=(m[d]-m.min)/m.max||0,Je(m.b+(n?n(p):p)*m.v)+m.u}},wu=function(t){var e=Math.pow(10,((t+"").split(".")[1]||"").length);return function(n){var i=Je(Math.round(parseFloat(n)/t)*t*e);return(i-i%1)/e+(ki(n)?0:en(n))}},jd=function(t,e){var n=ln(t),i,s;return!n&&Ti(t)&&(i=n=t.radius||Yn,t.values?(t=qn(t.values),(s=!ki(t[0]))&&(i*=i)):t=wu(t.increment)),dr(e,n?Ie(t)?function(o){return s=t(o),Math.abs(s-o)<=i?s:o}:function(o){for(var a=parseFloat(s?o.x:o),l=parseFloat(s?o.y:0),c=Yn,h=0,f=t.length,d,u;f--;)s?(d=t[f].x-a,u=t[f].y-l,d=d*d+u*u):d=Math.abs(t[f]-a),d<c&&(c=d,h=f);return h=!i||c<=i?t[h]:o,s||h===o||ki(o)?h:h+en(o)}:wu(t))},Qd=function(t,e,n,i){return dr(ln(t)?!e:n===!0?!!(n=0):!i,function(){return ln(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})},lx=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,o){return o(s)},i)}},cx=function(t,e){return function(n){return t(parseFloat(n))+(e||en(n))}},ux=function(t,e,n){return ep(t,e,0,1,n)},tp=function(t,e,n){return dr(n,function(i){return t[~~e(i)]})},hx=function r(t,e,n){var i=e-t;return ln(t)?tp(t,r(0,t.length),e):dr(n,function(s){return(i+(s-t)%i)%i+t})},fx=function r(t,e,n){var i=e-t,s=i*2;return ln(t)?tp(t,r(0,t.length-1),e):dr(n,function(o){return o=(s+(o-t)%s)%s||0,t+(o>i?s-o:o)})},Gs=function(t){for(var e=0,n="",i,s,o,a;~(i=t.indexOf("random(",e));)o=t.indexOf(")",i),a=t.charAt(i+7)==="[",s=t.substr(i+7,o-i-7).match(a?Od:_u),n+=t.substr(e,i-e)+Qd(a?s:+s[0],a?0:+s[1],+s[2]||1e-5),e=o+1;return n+t.substr(e,t.length-e)},ep=function(t,e,n,i,s){var o=e-t,a=i-n;return dr(s,function(l){return n+((l-t)/o*a||0)})},dx=function r(t,e,n,i){var s=isNaN(t+e)?0:function(u){return(1-u)*t+u*e};if(!s){var o=Ge(t),a={},l,c,h,f,d;if(n===!0&&(i=1)&&(n=null),o)t={p:t},e={p:e};else if(ln(t)&&!ln(e)){for(h=[],f=t.length,d=f-2,c=1;c<f;c++)h.push(r(t[c-1],t[c]));f--,s=function(_){_*=f;var p=Math.min(d,~~_);return h[p](_-p)},n=e}else i||(t=Jr(ln(t)?[]:{},t));if(!h){for(l in e)Bu.call(a,t,l,"get",e[l]);s=function(_){return Gu(_,a)||(o?t.p:t)}}}return dr(n,s)},Pd=function(t,e,n){var i=t.labels,s=Yn,o,a,l;for(o in i)a=i[o]-e,a<0==!!n&&a&&s>(a=Math.abs(a))&&(l=o,s=a);return l},Un=function(t,e,n){var i=t.vars,s=i[e],o=Ae,a=t._ctx,l,c,h;if(s)return l=i[e+"Params"],c=i.callbackScope||t,n&&ur.length&&sl(),a&&(Ae=a),h=l?s.apply(c,l):s.call(c),Ae=o,h},qo=function(t){return fr(t),t.scrollTrigger&&t.scrollTrigger.kill(!!an),t.progress()<1&&Un(t,"onInterrupt"),t},Bs,np=[],ip=function(t){if(t)if(t=!t.name&&t.default||t,Du()||t.headless){var e=t.name,n=Ie(t),i=e&&!n&&t.init?function(){this._props=[]}:t,s={init:Qo,render:Gu,add:Bu,kill:Cx,modifier:Dx,rawVars:0},o={targetTest:0,get:0,getSetter:pl,aliases:{},register:0};if(Hs(),t!==i){if(Dn[e])return;Zn(i,Zn(ol(t,s),o)),Jr(i.prototype,Jr(s,ol(t,o))),Dn[i.prop=e]=i,t.targetTest&&(nl.push(i),Iu[e]=1),e=(e==="css"?"CSS":e.charAt(0).toUpperCase()+e.substr(1))+"Plugin"}zd(e,i),t.register&&t.register(cn,i,xn)}else np.push(t)},Me=255,Zo={aqua:[0,Me,Me],lime:[0,Me,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,Me],navy:[0,0,128],white:[Me,Me,Me],olive:[128,128,0],yellow:[Me,Me,0],orange:[Me,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[Me,0,0],pink:[Me,192,203],cyan:[0,Me,Me],transparent:[Me,Me,Me,0]},hu=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)*Me+.5|0},rp=function(t,e,n){var i=t?ki(t)?[t>>16,t>>8&Me,t&Me]:0:Zo.black,s,o,a,l,c,h,f,d,u,_;if(!i){if(t.substr(-1)===","&&(t=t.substr(0,t.length-1)),Zo[t])i=Zo[t];else if(t.charAt(0)==="#"){if(t.length<6&&(s=t.charAt(1),o=t.charAt(2),a=t.charAt(3),t="#"+s+s+o+o+a+a+(t.length===5?t.charAt(4)+t.charAt(4):"")),t.length===9)return i=parseInt(t.substr(1,6),16),[i>>16,i>>8&Me,i&Me,parseInt(t.substr(7),16)/255];t=parseInt(t.substr(1),16),i=[t>>16,t>>8&Me,t&Me]}else if(t.substr(0,3)==="hsl"){if(i=_=t.match(_u),!e)l=+i[0]%360/360,c=+i[1]/100,h=+i[2]/100,o=h<=.5?h*(c+1):h+c-h*c,s=h*2-o,i.length>3&&(i[3]*=1),i[0]=hu(l+1/3,s,o),i[1]=hu(l,s,o),i[2]=hu(l-1/3,s,o);else if(~t.indexOf("="))return i=t.match(Cu),n&&i.length<4&&(i[3]=1),i}else i=t.match(_u)||Zo.transparent;i=i.map(Number)}return e&&!_&&(s=i[0]/Me,o=i[1]/Me,a=i[2]/Me,f=Math.max(s,o,a),d=Math.min(s,o,a),h=(f+d)/2,f===d?l=c=0:(u=f-d,c=h>.5?u/(2-f-d):u/(f+d),l=f===s?(o-a)/u+(o<a?6:0):f===o?(a-s)/u+2:(s-o)/u+4,l*=60),i[0]=~~(l+.5),i[1]=~~(c*100+.5),i[2]=~~(h*100+.5)),n&&i.length<4&&(i[3]=1),i},sp=function(t){var e=[],n=[],i=-1;return t.split(Bi).forEach(function(s){var o=s.match($r)||[];e.push.apply(e,o),n.push(i+=o.length+1)}),e.c=n,e},Id=function(t,e,n){var i="",s=(t+i).match(Bi),o=e?"hsla(":"rgba(",a=0,l,c,h,f;if(!s)return t;if(s=s.map(function(d){return(d=rp(d,e,1))&&o+(e?d[0]+","+d[1]+"%,"+d[2]+"%,"+d[3]:d.join(","))+")"}),n&&(h=sp(t),l=n.c,l.join(i)!==h.c.join(i)))for(c=t.replace(Bi,"1").split($r),f=c.length-1;a<f;a++)i+=c[a]+(~l.indexOf(a)?s.shift()||o+"0,0,0,0)":(h.length?h:s.length?s:n).shift());if(!c)for(c=t.split(Bi),f=c.length-1;a<f;a++)i+=c[a]+s[a];return i+c[f]},Bi=function(){var r="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3,4}){1,2}\\b",t;for(t in Zo)r+="|"+t+"\\b";return new RegExp(r+")","gi")}(),px=/hsl[a]?\(/,Uu=function(t){var e=t.join(" "),n;if(Bi.lastIndex=0,Bi.test(e))return n=px.test(e),t[1]=Id(t[1],n),t[0]=Id(t[0],n,sp(t[1])),!0},ta,Cn=function(){var r=Date.now,t=500,e=33,n=r(),i=n,s=1e3/240,o=s,a=[],l,c,h,f,d,u,_=function p(m){var g=r()-i,b=m===!0,y,S,D,T;if((g>t||g<0)&&(n+=g-e),i+=g,D=i-n,y=D-o,(y>0||b)&&(T=++f.frame,d=D-f.time*1e3,f.time=D=D/1e3,o+=y+(y>=s?4:s-y),S=1),b||(l=c(p)),S)for(u=0;u<a.length;u++)a[u](D,d,T,m)};return f={time:0,frame:0,tick:function(){_(!0)},deltaRatio:function(m){return d/(1e3/(m||60))},wake:function(){Bd&&(!xu&&Du()&&(wi=xu=window,Pu=wi.document||{},On.gsap=cn,(wi.gsapVersions||(wi.gsapVersions=[])).push(cn.version),kd(rl||wi.GreenSockGlobals||!wi.gsap&&wi||{}),np.forEach(ip)),h=typeof requestAnimationFrame<"u"&&requestAnimationFrame,l&&f.sleep(),c=h||function(m){return setTimeout(m,o-f.time*1e3+1|0)},ta=1,_(2))},sleep:function(){(h?cancelAnimationFrame:clearTimeout)(l),ta=0,c=Qo},lagSmoothing:function(m,g){t=m||1/0,e=Math.min(g||33,t)},fps:function(m){s=1e3/(m||240),o=f.time*1e3+s},add:function(m,g,b){var y=g?function(S,D,T,w){m(S,D,T,w),f.remove(y)}:m;return f.remove(m),a[b?"unshift":"push"](y),Hs(),y},remove:function(m,g){~(g=a.indexOf(m))&&a.splice(g,1)&&u>=g&&u--},_listeners:a},f}(),Hs=function(){return!ta&&Cn.wake()},fe={},mx=/^[\d.\-M][\d.\-,\s]/,gx=/["']/g,_x=function(t){for(var e={},n=t.substr(1,t.length-3).split(":"),i=n[0],s=1,o=n.length,a,l,c;s<o;s++)l=n[s],a=s!==o-1?l.lastIndexOf(","):l.length,c=l.substr(0,a),e[i]=isNaN(c)?c.replace(gx,"").trim():+c,i=l.substr(a+1).trim();return e},xx=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)},vx=function(t){var e=(t+"").split("("),n=fe[e[0]];return n&&e.length>1&&n.config?n.config.apply(null,~t.indexOf("{")?[_x(e[1])]:xx(t).split(",").map(Gd)):fe._CE&&mx.test(t)?fe._CE("",t):n},op=function(t){return function(e){return 1-t(1-e)}},ap=function r(t,e){for(var n=t._first,i;n;)n instanceof tn?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},qr=function(t,e){return t&&(Ie(t)?t:fe[t]||vx(t))||e},jr=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},o;return _n(t,function(a){fe[a]=On[a]=s,fe[o=a.toLowerCase()]=n;for(var l in s)fe[o+(l==="easeIn"?".in":l==="easeOut"?".out":".inOut")]=fe[a+"."+l]=s[l]}),s},lp=function(t){return function(e){return e<.5?(1-t(1-e*2))/2:.5+t((e-.5)*2)/2}},fu=function r(t,e,n){var i=e>=1?e:1,s=(n||(t?.3:.45))/(e<1?e:1),o=s/gu*(Math.asin(1/i)||0),a=function(h){return h===1?1:i*Math.pow(2,-10*h)*q0((h-o)*s)+1},l=t==="out"?a:t==="in"?function(c){return 1-a(1-c)}:lp(a);return s=gu/s,l.config=function(c,h){return r(t,c,h)},l},du=function r(t,e){e===void 0&&(e=1.70158);var n=function(o){return o?--o*o*((e+1)*o+e)+1:0},i=t==="out"?n:t==="in"?function(s){return 1-n(1-s)}:lp(n);return i.config=function(s){return r(t,s)},i};_n("Linear,Quad,Cubic,Quart,Quint,Strong",function(r,t){var e=t<5?t+1:t;jr(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})});fe.Linear.easeNone=fe.none=fe.Linear.easeIn;jr("Elastic",fu("in"),fu("out"),fu());(function(r,t){var e=1/t,n=2*e,i=2.5*e,s=function(a){return a<e?r*a*a:a<n?r*Math.pow(a-1.5/t,2)+.75:a<i?r*(a-=2.25/t)*a+.9375:r*Math.pow(a-2.625/t,2)+.984375};jr("Bounce",function(o){return 1-s(1-o)},s)})(7.5625,2.75);jr("Expo",function(r){return r?Math.pow(2,10*(r-1)):0});jr("Circ",function(r){return-(Nd(1-r*r)-1)});jr("Sine",function(r){return r===1?1:-Y0(r*W0)+1});jr("Back",du("in"),du("out"),du());fe.SteppedEase=fe.steps=On.SteppedEase={config:function(t,e){t===void 0&&(t=1);var n=1/t,i=t+(e?0:1),s=e?1:0,o=1-we;return function(a){return((i*na(0,o,a)|0)+s)*n}}};ks.ease=fe["quad.out"];_n("onComplete,onUpdate,onStart,onRepeat,onReverseComplete,onInterrupt",function(r){return Lu+=r+","+r+"Params,"});var Ou=function(t,e){this.id=X0++,t._gsap=this,this.target=t,this.harness=e,this.get=e?e.get:Nu,this.set=e?e.getSetter:pl},ea=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,Vs(this,+e.duration,1,1),this.data=e.data,Ae&&(this._ctx=Ae,Ae.data.push(this)),ta||Cn.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,Vs(this,this._repeat<0?n:(n-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},t.totalTime=function(n,i){if(Hs(),!arguments.length)return this._tTime;var s=this._dp;if(s&&s.smoothChildTiming&&this._ts){for(dl(this,n),!s._dp||s.parent||Yd(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)&&Ei(this._dp,this,this._start-this._delay)}return(this._tTime!==n||!this._dur&&!i||this._initted&&Math.abs(this._zTime)===we||!n&&!this._initted&&(this.add||this._ptLookup))&&(this._ts||(this._pTime=n),Hd(this,n,i)),this},t.time=function(n,i){return arguments.length?this.totalTime(Math.min(this.totalDuration(),n+Cd(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)+Cd(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?zs(this._tTime,s)+1:1},t.timeScale=function(n,i){if(!arguments.length)return this._rts===-we?0:this._rts;if(this._rts===n)return this;var s=this.parent&&this._ts?al(this.parent._time,this):this._tTime;return this._rts=+n||0,this._ts=this._ps||n===-we?0:this._rts,this.totalTime(na(-Math.abs(this._delay),this._tDur,s),i!==!1),fl(this),tx(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):(Hs(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,this.progress()===1&&Math.abs(this._zTime)!==we&&(this._tTime-=we)))),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)&&Ei(i,this,n-this._delay),this}return this._start},t.endTime=function(n){return this._start+(Rn(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?al(i.rawTime(n),this):this._tTime:this._tTime},t.revert=function(n){n===void 0&&(n=$0);var i=an;return an=n,(this._initted||this._startAt)&&(this.timeline&&this.timeline.revert(n),this.totalTime(-.01,n.suppressEvents)),this.data!=="nested"&&n.kill!==!1&&this.kill(),an=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,Rd(this)):this._repeat===-2?1/0:this._repeat},t.repeatDelay=function(n){if(arguments.length){var i=this._time;return this._rDelay=n,Rd(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(Xn(this,n),Rn(i))},t.restart=function(n,i){return this.play().totalTime(n?-this._delay:0,Rn(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?-we:0)),this):this._rts<0},t.invalidate=function(){return this._initted=this._act=0,this._zTime=-we,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)-we)},t.eventCallback=function(n,i,s){var o=this.vars;return arguments.length>1?(i?(o[n]=i,s&&(o[n+"Params"]=s),n==="onUpdate"&&(this._onUpdate=i)):delete o[n],this):o[n]},t.then=function(n){var i=this;return new Promise(function(s){var o=Ie(n)?n:Wd,a=function(){var c=i.then;i.then=null,Ie(o)&&(o=o(i))&&(o.then||o===i)&&(i.then=c),s(o),i.then=c};i._initted&&i.totalProgress()===1&&i._ts>=0||!i._tTime&&i._ts<0?a():i._prom=a})},t.kill=function(){qo(this)},r}();Zn(ea.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:-we,_prom:0,_ps:!1,_rts:1});var tn=function(r){Fd(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=Rn(n.sortChildren),Ce&&Ei(n.parent||Ce,Oi(s),i),n.reversed&&s.reverse(),n.paused&&s.paused(!0),n.scrollTrigger&&qd(Oi(s),n.scrollTrigger),s}var e=t.prototype;return e.to=function(i,s,o){return $o(0,arguments,this),this},e.from=function(i,s,o){return $o(1,arguments,this),this},e.fromTo=function(i,s,o,a){return $o(2,arguments,this),this},e.set=function(i,s,o){return s.duration=0,s.parent=this,Jo(s).repeatDelay||(s.repeat=0),s.immediateRender=!!s.immediateRender,new Ne(i,s,Xn(this,o),1),this},e.call=function(i,s,o){return Ei(this,Ne.delayedCall(0,i,s),o)},e.staggerTo=function(i,s,o,a,l,c,h){return o.duration=s,o.stagger=o.stagger||a,o.onComplete=c,o.onCompleteParams=h,o.parent=this,new Ne(i,o,Xn(this,l)),this},e.staggerFrom=function(i,s,o,a,l,c,h){return o.runBackwards=1,Jo(o).immediateRender=Rn(o.immediateRender),this.staggerTo(i,s,o,a,l,c,h)},e.staggerFromTo=function(i,s,o,a,l,c,h,f){return a.startAt=o,Jo(a).immediateRender=Rn(a.immediateRender),this.staggerTo(i,s,a,l,c,h,f)},e.render=function(i,s,o){var a=this._time,l=this._dirty?this.totalDuration():this._tDur,c=this._dur,h=i<=0?0:Je(i),f=this._zTime<0!=i<0&&(this._initted||!c),d,u,_,p,m,g,b,y,S,D,T,w;if(this!==Ce&&h>l&&i>=0&&(h=l),h!==this._tTime||o||f){if(a!==this._time&&c&&(h+=this._time-a,i+=this._time-a),d=h,S=this._start,y=this._ts,g=!y,f&&(c||(a=this._zTime),(i||!s)&&(this._zTime=i)),this._repeat){if(T=this._yoyo,m=c+this._rDelay,this._repeat<-1&&i<0)return this.totalTime(m*100+i,s,o);if(d=Je(h%m),h===l?(p=this._repeat,d=c):(p=~~(h/m),p&&p===h/m&&(d=c,p--),d>c&&(d=c)),D=zs(this._tTime,m),!a&&this._tTime&&D!==p&&this._tTime-D*m-this._dur<=0&&(D=p),T&&p&1&&(d=c-d,w=1),p!==D&&!this._lock){var P=T&&D&1,M=P===(T&&p&1);if(p<D&&(P=!P),a=P?0:h%c?c:h,this._lock=1,this.render(a||(w?0:Je(p*m)),s,!c)._lock=0,this._tTime=h,!s&&this.parent&&Un(this,"onRepeat"),this.vars.repeatRefresh&&!w&&(this.invalidate()._lock=1),a&&a!==this._time||g!==!this._ts||this.vars.onRepeat&&!this.parent&&!this._act)return this;if(c=this._dur,l=this._tDur,M&&(this._lock=2,a=P?c:-1e-4,this.render(a,!0),this.vars.repeatRefresh&&!w&&this.invalidate()),this._lock=0,!this._ts&&!g)return this;ap(this,w)}}if(this._hasPause&&!this._forcing&&this._lock<2&&(b=rx(this,Je(a),Je(d)),b&&(h-=d-(d=b._start))),this._tTime=h,this._time=d,this._act=!y,this._initted||(this._onUpdate=this.vars.onUpdate,this._initted=1,this._zTime=i,a=0),!a&&d&&!s&&!p&&(Un(this,"onStart"),this._tTime!==h))return this;if(d>=a&&i>=0)for(u=this._first;u;){if(_=u._next,(u._act||d>=u._start)&&u._ts&&b!==u){if(u.parent!==this)return this.render(i,s,o);if(u.render(u._ts>0?(d-u._start)*u._ts:(u._dirty?u.totalDuration():u._tDur)+(d-u._start)*u._ts,s,o),d!==this._time||!this._ts&&!g){b=0,_&&(h+=this._zTime=-we);break}}u=_}else{u=this._last;for(var v=i<0?i:d;u;){if(_=u._prev,(u._act||v<=u._end)&&u._ts&&b!==u){if(u.parent!==this)return this.render(i,s,o);if(u.render(u._ts>0?(v-u._start)*u._ts:(u._dirty?u.totalDuration():u._tDur)+(v-u._start)*u._ts,s,o||an&&(u._initted||u._startAt)),d!==this._time||!this._ts&&!g){b=0,_&&(h+=this._zTime=v?-we:we);break}}u=_}}if(b&&!s&&(this.pause(),b.render(d>=a?0:-we)._zTime=d>=a?1:-1,this._ts))return this._start=S,fl(this),this.render(i,s,o);this._onUpdate&&!s&&Un(this,"onUpdate",!0),(h===l&&this._tTime>=this.totalDuration()||!h&&a)&&(S===this._start||Math.abs(y)!==Math.abs(this._ts))&&(this._lock||((i||!c)&&(h===l&&this._ts>0||!h&&this._ts<0)&&fr(this,1),!s&&!(i<0&&!a)&&(h||a||!l)&&(Un(this,h===l&&i>=0?"onComplete":"onReverseComplete",!0),this._prom&&!(h<l&&this.timeScale()>0)&&this._prom())))}return this},e.add=function(i,s){var o=this;if(ki(s)||(s=Xn(this,s,i)),!(i instanceof ea)){if(ln(i))return i.forEach(function(a){return o.add(a,s)}),this;if(Ge(i))return this.addLabel(i,s);if(Ie(i))i=Ne.delayedCall(0,i);else return this}return this!==i?Ei(this,i,s):this},e.getChildren=function(i,s,o,a){i===void 0&&(i=!0),s===void 0&&(s=!0),o===void 0&&(o=!0),a===void 0&&(a=-Yn);for(var l=[],c=this._first;c;)c._start>=a&&(c instanceof Ne?s&&l.push(c):(o&&l.push(c),i&&l.push.apply(l,c.getChildren(!0,s,o)))),c=c._next;return l},e.getById=function(i){for(var s=this.getChildren(1,1,1),o=s.length;o--;)if(s[o].vars.id===i)return s[o]},e.remove=function(i){return Ge(i)?this.removeLabel(i):Ie(i)?this.killTweensOf(i):(hl(this,i),i===this._recent&&(this._recent=this._last),Yr(this))},e.totalTime=function(i,s){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=Je(Cn.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]=Xn(this,s),this},e.removeLabel=function(i){return delete this.labels[i],this},e.addPause=function(i,s,o){var a=Ne.delayedCall(0,s||Qo,o);return a.data="isPause",this._hasPause=1,Ei(this,a,Xn(this,i))},e.removePause=function(i){var s=this._first;for(i=Xn(this,i);s;)s._start===i&&s.data==="isPause"&&fr(s),s=s._next},e.killTweensOf=function(i,s,o){for(var a=this.getTweensOf(i,o),l=a.length;l--;)cr!==a[l]&&a[l].kill(i,s);return this},e.getTweensOf=function(i,s){for(var o=[],a=qn(i),l=this._first,c=ki(s),h;l;)l instanceof Ne?K0(l._targets,a)&&(c?(!cr||l._initted&&l._ts)&&l.globalTime(0)<=s&&l.globalTime(l.totalDuration())>s:!s||l.isActive())&&o.push(l):(h=l.getTweensOf(a,s)).length&&o.push.apply(o,h),l=l._next;return o},e.tweenTo=function(i,s){s=s||{};var o=this,a=Xn(o,i),l=s,c=l.startAt,h=l.onStart,f=l.onStartParams,d=l.immediateRender,u,_=Ne.to(o,Zn({ease:s.ease||"none",lazy:!1,immediateRender:!1,time:a,overwrite:"auto",duration:s.duration||Math.abs((a-(c&&"time"in c?c.time:o._time))/o.timeScale())||we,onStart:function(){if(o.pause(),!u){var m=s.duration||Math.abs((a-(c&&"time"in c?c.time:o._time))/o.timeScale());_._dur!==m&&Vs(_,m,0,1).render(_._time,!0,!0),u=1}h&&h.apply(_,f||[])}},s));return d?_.render(0):_},e.tweenFromTo=function(i,s,o){return this.tweenTo(s,Zn({startAt:{time:Xn(this,i)}},o))},e.recent=function(){return this._recent},e.nextLabel=function(i){return i===void 0&&(i=this._time),Pd(this,Xn(this,i))},e.previousLabel=function(i){return i===void 0&&(i=this._time),Pd(this,Xn(this,i),1)},e.currentLabel=function(i){return arguments.length?this.seek(i,!0):this.previousLabel(this._time+we)},e.shiftChildren=function(i,s,o){o===void 0&&(o=0);for(var a=this._first,l=this.labels,c;a;)a._start>=o&&(a._start+=i,a._end+=i),a=a._next;if(s)for(c in l)l[c]>=o&&(l[c]+=i);return Yr(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,o;s;)o=s._next,this.remove(s),s=o;return this._dp&&(this._time=this._tTime=this._pTime=0),i&&(this.labels={}),Yr(this)},e.totalDuration=function(i){var s=0,o=this,a=o._last,l=Yn,c,h,f;if(arguments.length)return o.timeScale((o._repeat<0?o.duration():o.totalDuration())/(o.reversed()?-i:i));if(o._dirty){for(f=o.parent;a;)c=a._prev,a._dirty&&a.totalDuration(),h=a._start,h>l&&o._sort&&a._ts&&!o._lock?(o._lock=1,Ei(o,a,h-a._delay,1)._lock=0):l=h,h<0&&a._ts&&(s-=h,(!f&&!o._dp||f&&f.smoothChildTiming)&&(o._start+=h/o._ts,o._time-=h,o._tTime-=h),o.shiftChildren(-h,!1,-1/0),l=0),a._end>s&&a._ts&&(s=a._end),a=c;Vs(o,o===Ce&&o._time>s?o._time:s,1,1),o._dirty=0}return o._tDur},t.updateRoot=function(i){if(Ce._ts&&(Hd(Ce,al(i,Ce)),Vd=Cn.frame),Cn.frame>=Ad){Ad+=Pn.autoSleep||120;var s=Ce._first;if((!s||!s._ts)&&Pn.autoSleep&&Cn._listeners.length<2){for(;s&&!s._ts;)s=s._next;s||Cn.sleep()}}},t}(ea);Zn(tn.prototype,{_lock:0,_hasPause:0,_forcing:0});var yx=function(t,e,n,i,s,o,a){var l=new xn(this._pt,t,e,0,1,Hu,null,s),c=0,h=0,f,d,u,_,p,m,g,b;for(l.b=n,l.e=i,n+="",i+="",(g=~i.indexOf("random("))&&(i=Gs(i)),o&&(b=[n,i],o(b,t,e),n=b[0],i=b[1]),d=n.match(cu)||[];f=cu.exec(i);)_=f[0],p=i.substring(c,f.index),u?u=(u+1)%5:p.substr(-5)==="rgba("&&(u=1),_!==d[h++]&&(m=parseFloat(d[h-1])||0,l._pt={_next:l._pt,p:p||h===1?p:",",s:m,c:_.charAt(1)==="="?Kr(m,_)-m:parseFloat(_)-m,m:u&&u<4?Math.round:0},c=cu.lastIndex);return l.c=c<i.length?i.substring(c,i.length):"",l.fp=a,(Ru.test(i)||g)&&(l.e=0),this._pt=l,l},Bu=function(t,e,n,i,s,o,a,l,c,h){Ie(i)&&(i=i(s||0,t,o));var f=t[e],d=n!=="get"?n:Ie(f)?c?t[e.indexOf("set")||!Ie(t["get"+e.substr(3)])?e:"get"+e.substr(3)](c):t[e]():f,u=Ie(f)?c?Ex:hp:Vu,_;if(Ge(i)&&(~i.indexOf("random(")&&(i=Gs(i)),i.charAt(1)==="="&&(_=Kr(d,i)+(en(d)||0),(_||_===0)&&(i=_))),!h||d!==i||Eu)return!isNaN(d*i)&&i!==""?(_=new xn(this._pt,t,e,+d||0,i-(d||0),typeof f=="boolean"?Ax:fp,0,u),c&&(_.fp=c),a&&_.modifier(a,this,t),this._pt=_):(!f&&!(e in t)&&ul(e,i),yx.call(this,t,e,d,i,u,l||Pn.stringFilter,c))},Sx=function(t,e,n,i,s){if(Ie(t)&&(t=Ko(t,s,e,n,i)),!Ti(t)||t.style&&t.nodeType||ln(t)||Ud(t))return Ge(t)?Ko(t,s,e,n,i):t;var o={},a;for(a in t)o[a]=Ko(t[a],s,e,n,i);return o},ku=function(t,e,n,i,s,o){var a,l,c,h;if(Dn[t]&&(a=new Dn[t]).init(s,a.rawVars?e[t]:Sx(e[t],i,s,o,n),n,i,o)!==!1&&(n._pt=l=new xn(n._pt,s,t,0,1,a.render,a,0,a.priority),n!==Bs))for(c=n._ptLookup[n._targets.indexOf(s)],h=a._props.length;h--;)c[a._props[h]]=l;return a},cr,Eu,zu=function r(t,e,n){var i=t.vars,s=i.ease,o=i.startAt,a=i.immediateRender,l=i.lazy,c=i.onUpdate,h=i.runBackwards,f=i.yoyoEase,d=i.keyframes,u=i.autoRevert,_=t._dur,p=t._startAt,m=t._targets,g=t.parent,b=g&&g.data==="nested"?g.vars.targets:m,y=t._overwrite==="auto"&&!Au,S=t.timeline,D,T,w,P,M,v,I,N,C,V,$,W,Z;if(S&&(!d||!s)&&(s="none"),t._ease=qr(s,ks.ease),t._yEase=f?op(qr(f===!0?s:f,ks.ease)):0,f&&t._yoyo&&!t._repeat&&(f=t._yEase,t._yEase=t._ease,t._ease=f),t._from=!S&&!!i.runBackwards,!S||d&&!i.stagger){if(N=m[0]?hr(m[0]).harness:0,W=N&&i[N.prop],D=ol(i,Iu),p&&(p._zTime<0&&p.progress(1),e<0&&h&&a&&!u?p.render(-1,!0):p.revert(h&&_?el:J0),p._lazy=0),o){if(fr(t._startAt=Ne.set(m,Zn({data:"isStart",overwrite:!1,parent:g,immediateRender:!0,lazy:!p&&Rn(l),startAt:null,delay:0,onUpdate:c&&function(){return Un(t,"onUpdate")},stagger:0},o))),t._startAt._dp=0,t._startAt._sat=t,e<0&&(an||!a&&!u)&&t._startAt.revert(el),a&&_&&e<=0&&n<=0){e&&(t._zTime=e);return}}else if(h&&_&&!p){if(e&&(a=!1),w=Zn({overwrite:!1,data:"isFromStart",lazy:a&&!p&&Rn(l),immediateRender:a,stagger:0,parent:g},D),W&&(w[N.prop]=W),fr(t._startAt=Ne.set(m,w)),t._startAt._dp=0,t._startAt._sat=t,e<0&&(an?t._startAt.revert(el):t._startAt.render(-1,!0)),t._zTime=e,!a)r(t._startAt,we,we);else if(!e)return}for(t._pt=t._ptCache=0,l=_&&Rn(l)||l&&!_,T=0;T<m.length;T++){if(M=m[T],I=M._gsap||Fu(m)[T]._gsap,t._ptLookup[T]=V={},vu[I.id]&&ur.length&&sl(),$=b===m?T:b.indexOf(M),N&&(C=new N).init(M,W||D,t,$,b)!==!1&&(t._pt=P=new xn(t._pt,M,C.name,0,1,C.render,C,0,C.priority),C._props.forEach(function(z){V[z]=P}),C.priority&&(v=1)),!N||W)for(w in D)Dn[w]&&(C=ku(w,D,t,$,M,b))?C.priority&&(v=1):V[w]=P=Bu.call(t,M,w,"get",D[w],$,b,0,i.stringFilter);t._op&&t._op[T]&&t.kill(M,t._op[T]),y&&t._pt&&(cr=t,Ce.killTweensOf(M,V,t.globalTime(e)),Z=!t.parent,cr=0),t._pt&&l&&(vu[I.id]=1)}v&&Wu(t),t._onInit&&t._onInit(t)}t._onUpdate=c,t._initted=(!t._op||t._pt)&&!Z,d&&e<=0&&S.render(Yn,!0,!0)},Mx=function(t,e,n,i,s,o,a,l){var c=(t._pt&&t._ptCache||(t._ptCache={}))[e],h,f,d,u;if(!c)for(c=t._ptCache[e]=[],d=t._ptLookup,u=t._targets.length;u--;){if(h=d[u][e],h&&h.d&&h.d._pt)for(h=h.d._pt;h&&h.p!==e&&h.fp!==e;)h=h._next;if(!h)return Eu=1,t.vars[e]="+=0",zu(t,a),Eu=0,l?jo(e+" not eligible for reset"):1;c.push(h)}for(u=c.length;u--;)f=c[u],h=f._pt||f,h.s=(i||i===0)&&!s?i:h.s+(i||0)+o*h.c,h.c=n-h.s,f.e&&(f.e=Le(n)+en(f.e)),f.b&&(f.b=h.s+en(f.b))},bx=function(t,e){var n=t[0]?hr(t[0]).harness:0,i=n&&n.aliases,s,o,a,l;if(!i)return e;s=Jr({},e);for(o in i)if(o in s)for(l=i[o].split(","),a=l.length;a--;)s[l[a]]=s[o];return s},wx=function(t,e,n,i){var s=e.ease||i||"power1.inOut",o,a;if(ln(e))a=n[t]||(n[t]=[]),e.forEach(function(l,c){return a.push({t:c/(e.length-1)*100,v:l,e:s})});else for(o in e)a=n[o]||(n[o]=[]),o==="ease"||a.push({t:parseFloat(t),v:e[o],e:s})},Ko=function(t,e,n,i,s){return Ie(t)?t.call(e,n,i,s):Ge(t)&&~t.indexOf("random(")?Gs(t):t},cp=Lu+"repeat,repeatDelay,yoyo,repeatRefresh,yoyoEase,autoRevert",up={};_n(cp+",id,stagger,delay,duration,paused,scrollTrigger",function(r){return up[r]=1});var Ne=function(r){Fd(t,r);function t(n,i,s,o){var a;typeof i=="number"&&(s.duration=i,i=s,s=null),a=r.call(this,o?i:Jo(i))||this;var l=a.vars,c=l.duration,h=l.delay,f=l.immediateRender,d=l.stagger,u=l.overwrite,_=l.keyframes,p=l.defaults,m=l.scrollTrigger,g=l.yoyoEase,b=i.parent||Ce,y=(ln(n)||Ud(n)?ki(n[0]):"length"in i)?[n]:qn(n),S,D,T,w,P,M,v,I;if(a._targets=y.length?Fu(y):jo("GSAP target "+n+" not found. https://gsap.com",!Pn.nullTargetWarn)||[],a._ptLookup=[],a._overwrite=u,_||d||tl(c)||tl(h)){if(i=a.vars,S=a.timeline=new tn({data:"nested",defaults:p||{},targets:b&&b.data==="nested"?b.vars.targets:y}),S.kill(),S.parent=S._dp=Oi(a),S._start=0,d||tl(c)||tl(h)){if(w=y.length,v=d&&Kd(d),Ti(d))for(P in d)~cp.indexOf(P)&&(I||(I={}),I[P]=d[P]);for(D=0;D<w;D++)T=ol(i,up),T.stagger=0,g&&(T.yoyoEase=g),I&&Jr(T,I),M=y[D],T.duration=+Ko(c,Oi(a),D,M,y),T.delay=(+Ko(h,Oi(a),D,M,y)||0)-a._delay,!d&&w===1&&T.delay&&(a._delay=h=T.delay,a._start+=h,T.delay=0),S.to(M,T,v?v(D,M,y):0),S._ease=fe.none;S.duration()?c=h=0:a.timeline=0}else if(_){Jo(Zn(S.vars.defaults,{ease:"none"})),S._ease=qr(_.ease||i.ease||"none");var N=0,C,V,$;if(ln(_))_.forEach(function(W){return S.to(y,W,">")}),S.duration();else{T={};for(P in _)P==="ease"||P==="easeEach"||wx(P,_[P],T,_.easeEach);for(P in T)for(C=T[P].sort(function(W,Z){return W.t-Z.t}),N=0,D=0;D<C.length;D++)V=C[D],$={ease:V.e,duration:(V.t-(D?C[D-1].t:0))/100*c},$[P]=V.v,S.to(y,$,N),N+=$.duration;S.duration()<c&&S.to({},{duration:c-S.duration()})}}c||a.duration(c=S.duration())}else a.timeline=0;return u===!0&&!Au&&(cr=Oi(a),Ce.killTweensOf(y),cr=0),Ei(b,Oi(a),s),i.reversed&&a.reverse(),i.paused&&a.paused(!0),(f||!c&&!_&&a._start===Je(b._time)&&Rn(f)&&ex(Oi(a))&&b.data!=="nested")&&(a._tTime=-we,a.render(Math.max(0,-h)||0)),m&&qd(Oi(a),m),a}var e=t.prototype;return e.render=function(i,s,o){var a=this._time,l=this._tDur,c=this._dur,h=i<0,f=i>l-we&&!h?l:i<we?0:i,d,u,_,p,m,g,b,y,S;if(!c)ix(this,i,s,o);else if(f!==this._tTime||!i||o||!this._initted&&this._tTime||this._startAt&&this._zTime<0!==h){if(d=f,y=this.timeline,this._repeat){if(p=c+this._rDelay,this._repeat<-1&&h)return this.totalTime(p*100+i,s,o);if(d=Je(f%p),f===l?(_=this._repeat,d=c):(_=~~(f/p),_&&_===Je(f/p)&&(d=c,_--),d>c&&(d=c)),g=this._yoyo&&_&1,g&&(S=this._yEase,d=c-d),m=zs(this._tTime,p),d===a&&!o&&this._initted&&_===m)return this._tTime=f,this;_!==m&&(y&&this._yEase&&ap(y,g),this.vars.repeatRefresh&&!g&&!this._lock&&this._time!==p&&this._initted&&(this._lock=o=1,this.render(Je(p*_),!0).invalidate()._lock=0))}if(!this._initted){if(Zd(this,h?i:d,o,s,f))return this._tTime=0,this;if(a!==this._time&&!(o&&this.vars.repeatRefresh&&_!==m))return this;if(c!==this._dur)return this.render(i,s,o)}if(this._tTime=f,this._time=d,!this._act&&this._ts&&(this._act=1,this._lazy=0),this.ratio=b=(S||this._ease)(d/c),this._from&&(this.ratio=b=1-b),d&&!a&&!s&&!_&&(Un(this,"onStart"),this._tTime!==f))return this;for(u=this._pt;u;)u.r(b,u.d),u=u._next;y&&y.render(i<0?i:y._dur*y._ease(d/this._dur),s,o)||this._startAt&&(this._zTime=i),this._onUpdate&&!s&&(h&&yu(this,i,s,o),Un(this,"onUpdate")),this._repeat&&_!==m&&this.vars.onRepeat&&!s&&this.parent&&Un(this,"onRepeat"),(f===this._tDur||!f)&&this._tTime===f&&(h&&!this._onUpdate&&yu(this,i,!0,!0),(i||!c)&&(f===this._tDur&&this._ts>0||!f&&this._ts<0)&&fr(this,1),!s&&!(h&&!a)&&(f||a||g)&&(Un(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,o,a,l){ta||Cn.wake(),this._ts||this.play();var c=Math.min(this._dur,(this._dp._time-this._start)*this._ts),h;return this._initted||zu(this,c),h=this._ease(c/this._dur),Mx(this,i,s,o,a,h,c,l)?this.resetTo(i,s,o,a,1):(dl(this,0),this.parent||Xd(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?qo(this):this;if(this.timeline){var o=this.timeline.totalDuration();return this.timeline.killTweensOf(i,s,cr&&cr.vars.overwrite!==!0)._first||qo(this),this.parent&&o!==this.timeline.totalDuration()&&Vs(this,this._dur*this.timeline._tDur/o,0,1),this}var a=this._targets,l=i?qn(i):a,c=this._ptLookup,h=this._pt,f,d,u,_,p,m,g;if((!s||s==="all")&&Q0(a,l))return s==="all"&&(this._pt=0),qo(this);for(f=this._op=this._op||[],s!=="all"&&(Ge(s)&&(p={},_n(s,function(b){return p[b]=1}),s=p),s=bx(a,s)),g=a.length;g--;)if(~l.indexOf(a[g])){d=c[g],s==="all"?(f[g]=s,_=d,u={}):(u=f[g]=f[g]||{},_=s);for(p in _)m=d&&d[p],m&&((!("kill"in m.d)||m.d.kill(p)===!0)&&hl(this,m,"_pt"),delete d[p]),u!=="all"&&(u[p]=1)}return this._initted&&!this._pt&&h&&qo(this),this},t.to=function(i,s){return new t(i,s,arguments[2])},t.from=function(i,s){return $o(1,arguments)},t.delayedCall=function(i,s,o,a){return new t(s,0,{immediateRender:!1,lazy:!1,overwrite:!1,delay:i,onComplete:s,onReverseComplete:s,onCompleteParams:o,onReverseCompleteParams:o,callbackScope:a})},t.fromTo=function(i,s,o){return $o(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,o){return Ce.killTweensOf(i,s,o)},t}(ea);Zn(Ne.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0});_n("staggerTo,staggerFrom,staggerFromTo",function(r){Ne[r]=function(){var t=new tn,e=Mu.call(arguments,0);return e.splice(r==="staggerFromTo"?5:4,0,0),t[r].apply(t,e)}});var Vu=function(t,e,n){return t[e]=n},hp=function(t,e,n){return t[e](n)},Ex=function(t,e,n,i){return t[e](i.fp,n)},Tx=function(t,e,n){return t.setAttribute(e,n)},pl=function(t,e){return Ie(t[e])?hp:cl(t[e])&&t.setAttribute?Tx:Vu},fp=function(t,e){return e.set(e.t,e.p,Math.round((e.s+e.c*t)*1e6)/1e6,e)},Ax=function(t,e){return e.set(e.t,e.p,!!(e.s+e.c*t),e)},Hu=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)},Gu=function(t,e){for(var n=e._pt;n;)n.r(t,n.d),n=n._next},Dx=function(t,e,n,i){for(var s=this._pt,o;s;)o=s._next,s.p===i&&s.modifier(t,e,n),s=o},Cx=function(t){for(var e=this._pt,n,i;e;)i=e._next,e.p===t&&!e.op||e.op===t?hl(this,e,"_pt"):e.dep||(n=1),e=i;return!n},Rx=function(t,e,n,i){i.mSet(t,e,i.m.call(i.tween,n,i.mt),i)},Wu=function(t){for(var e=t._pt,n,i,s,o;e;){for(n=e._next,i=s;i&&i.pr>e.pr;)i=i._next;(e._prev=i?i._prev:o)?e._prev._next=e:s=e,(e._next=i)?i._prev=e:o=e,e=n}t._pt=s},xn=function(){function r(e,n,i,s,o,a,l,c,h){this.t=n,this.s=s,this.c=o,this.p=i,this.r=a||fp,this.d=l||this,this.set=c||Vu,this.pr=h||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=Rx,this.m=n,this.mt=s,this.tween=i},r}();_n(Lu+"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 Iu[r]=1});On.TweenMax=On.TweenLite=Ne;On.TimelineLite=On.TimelineMax=tn;Ce=new tn({sortChildren:!1,defaults:ks,autoRemoveChildren:!0,id:"root",smoothChildTiming:!0});Pn.stringFilter=Uu;var Zr=[],il={},Px=[],Ld=0,Ix=0,pu=function(t){return(il[t]||Px).map(function(e){return e()})},Tu=function(){var t=Date.now(),e=[];t-Ld>2&&(pu("matchMediaInit"),Zr.forEach(function(n){var i=n.queries,s=n.conditions,o,a,l,c;for(a in i)o=wi.matchMedia(i[a]).matches,o&&(l=1),o!==s[a]&&(s[a]=o,c=1);c&&(n.revert(),l&&e.push(n))}),pu("matchMediaRevert"),e.forEach(function(n){return n.onMatch(n,function(i){return n.add(null,i)})}),Ld=t,pu("matchMedia"))},dp=function(){function r(e,n){this.selector=n&&bu(n),this.data=[],this._r=[],this.isReverted=!1,this.id=Ix++,e&&this.add(e)}var t=r.prototype;return t.add=function(n,i,s){Ie(n)&&(s=i,i=n,n=Ie);var o=this,a=function(){var c=Ae,h=o.selector,f;return c&&c!==o&&c.data.push(o),s&&(o.selector=bu(s)),Ae=o,f=i.apply(o,arguments),Ie(f)&&o._r.push(f),Ae=c,o.selector=h,o.isReverted=!1,f};return o.last=a,n===Ie?a(o,function(l){return o.add(null,l)}):n?o[n]=a:a},t.ignore=function(n){var i=Ae;Ae=null,n(this),Ae=i},t.getTweens=function(){var n=[];return this.data.forEach(function(i){return i instanceof r?n.push.apply(n,i.getTweens()):i instanceof Ne&&!(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 a=s.getTweens(),l=s.data.length,c;l--;)c=s.data[l],c.data==="isFlip"&&(c.revert(),c.getChildren(!0,!0,!1).forEach(function(h){return a.splice(a.indexOf(h),1)}));for(a.map(function(h){return{g:h._dur||h._delay||h._sat&&!h._sat.vars.immediateRender?h.globalTime(0):-1/0,t:h}}).sort(function(h,f){return f.g-h.g||-1/0}).forEach(function(h){return h.t.revert(n)}),l=s.data.length;l--;)c=s.data[l],c instanceof tn?c.data!=="nested"&&(c.scrollTrigger&&c.scrollTrigger.revert(),c.kill()):!(c instanceof Ne)&&c.revert&&c.revert(n);s._r.forEach(function(h){return h(n,s)}),s.isReverted=!0}():this.data.forEach(function(a){return a.kill&&a.kill()}),this.clear(),i)for(var o=Zr.length;o--;)Zr[o].id===this.id&&Zr.splice(o,1)},t.revert=function(n){this.kill(n||{})},r}(),Lx=function(){function r(e){this.contexts=[],this.scope=e,Ae&&Ae.data.push(this)}var t=r.prototype;return t.add=function(n,i,s){Ti(n)||(n={matches:n});var o=new dp(0,s||this.scope),a=o.conditions={},l,c,h;Ae&&!o.selector&&(o.selector=Ae.selector),this.contexts.push(o),i=o.add("onMatch",i),o.queries=n;for(c in n)c==="all"?h=1:(l=wi.matchMedia(n[c]),l&&(Zr.indexOf(o)<0&&Zr.push(o),(a[c]=l.matches)&&(h=1),l.addListener?l.addListener(Tu):l.addEventListener("change",Tu)));return h&&i(o,function(f){return o.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}(),ll={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 ip(i)})},timeline:function(t){return new tn(t)},getTweensOf:function(t,e){return Ce.getTweensOf(t,e)},getProperty:function(t,e,n,i){Ge(t)&&(t=qn(t)[0]);var s=hr(t||{}).get,o=n?Wd:Gd;return n==="native"&&(n=""),t&&(e?o((Dn[e]&&Dn[e].get||s)(t,e,n,i)):function(a,l,c){return o((Dn[a]&&Dn[a].get||s)(t,a,l,c))})},quickSetter:function(t,e,n){if(t=qn(t),t.length>1){var i=t.map(function(h){return cn.quickSetter(h,e,n)}),s=i.length;return function(h){for(var f=s;f--;)i[f](h)}}t=t[0]||{};var o=Dn[e],a=hr(t),l=a.harness&&(a.harness.aliases||{})[e]||e,c=o?function(h){var f=new o;Bs._pt=0,f.init(t,n?h+n:h,Bs,0,[t]),f.render(1,f),Bs._pt&&Gu(1,Bs)}:a.set(t,l);return o?c:function(h){return c(t,l,n?h+n:h,a,1)}},quickTo:function(t,e,n){var i,s=cn.to(t,Jr((i={},i[e]="+=0.1",i.paused=!0,i),n||{})),o=function(l,c,h){return s.resetTo(e,l,c,h)};return o.tween=s,o},isTweening:function(t){return Ce.getTweensOf(t,!0).length>0},defaults:function(t){return t&&t.ease&&(t.ease=qr(t.ease,ks.ease)),Dd(ks,t||{})},config:function(t){return Dd(Pn,t||{})},registerEffect:function(t){var e=t.name,n=t.effect,i=t.plugins,s=t.defaults,o=t.extendTimeline;(i||"").split(",").forEach(function(a){return a&&!Dn[a]&&!On[a]&&jo(e+" effect requires "+a+" plugin.")}),uu[e]=function(a,l,c){return n(qn(a),Zn(l||{},s),c)},o&&(tn.prototype[e]=function(a,l,c){return this.add(uu[e](a,Ti(l)?l:(c=l)&&{},this),c)})},registerEase:function(t,e){fe[t]=qr(e)},parseEase:function(t,e){return arguments.length?qr(t,e):fe},getById:function(t){return Ce.getById(t)},exportRoot:function(t,e){t===void 0&&(t={});var n=new tn(t),i,s;for(n.smoothChildTiming=Rn(t.smoothChildTiming),Ce.remove(n),n._dp=0,n._time=n._tTime=Ce._time,i=Ce._first;i;)s=i._next,(e||!(!i._dur&&i instanceof Ne&&i.vars.onComplete===i._targets[0]))&&Ei(n,i,i._start-i._delay),i=s;return Ei(Ce,n,0),n},context:function(t,e){return t?new dp(t,e):Ae},matchMedia:function(t){return new Lx(t)},matchMediaRefresh:function(){return Zr.forEach(function(t){var e=t.conditions,n,i;for(i in e)e[i]&&(e[i]=!1,n=1);n&&t.revert()})||Tu()},addEventListener:function(t,e){var n=il[t]||(il[t]=[]);~n.indexOf(e)||n.push(e)},removeEventListener:function(t,e){var n=il[t],i=n&&n.indexOf(e);i>=0&&n.splice(i,1)},utils:{wrap:hx,wrapYoyo:fx,distribute:Kd,random:Qd,snap:jd,normalize:ux,getUnit:en,clamp:ox,splitColor:rp,toArray:qn,selector:bu,mapRange:ep,pipe:lx,unitize:cx,interpolate:dx,shuffle:$d},install:kd,effects:uu,ticker:Cn,updateRoot:tn.updateRoot,plugins:Dn,globalTimeline:Ce,core:{PropTween:xn,globals:zd,Tween:Ne,Timeline:tn,Animation:ea,getCache:hr,_removeLinkedListItem:hl,reverting:function(){return an},context:function(t){return t&&Ae&&(Ae.data.push(t),t._ctx=Ae),Ae},suppressOverwrites:function(t){return Au=t}}};_n("to,from,fromTo,delayedCall,set,killTweensOf",function(r){return ll[r]=Ne[r]});Cn.add(tn.updateRoot);Bs=ll.to({},{duration:0});var Fx=function(t,e){for(var n=t._pt;n&&n.p!==e&&n.op!==e&&n.fp!==e;)n=n._next;return n},Nx=function(t,e){var n=t._targets,i,s,o;for(i in e)for(s=n.length;s--;)o=t._ptLookup[s][i],o&&(o=o.d)&&(o._pt&&(o=Fx(o,i)),o&&o.modifier&&o.modifier(e[i],t,n[s],i))},mu=function(t,e){return{name:t,rawVars:1,init:function(i,s,o){o._onInit=function(a){var l,c;if(Ge(s)&&(l={},_n(s,function(h){return l[h]=1}),s=l),e){l={};for(c in s)l[c]=e(s[c]);s=l}Nx(a,s)}}}},cn=ll.registerPlugin({name:"attr",init:function(t,e,n,i,s){var o,a,l;this.tween=n;for(o in e)l=t.getAttribute(o)||"",a=this.add(t,"setAttribute",(l||0)+"",e[o],i,s,0,0,o),a.op=o,a.b=l,this._props.push(o)},render:function(t,e){for(var n=e._pt;n;)an?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)}},mu("roundProps",wu),mu("modifiers"),mu("snap",jd))||ll;Ne.version=tn.version=cn.version="3.12.5";Bd=1;Du()&&Hs();var Ux=fe.Power0,Ox=fe.Power1,Bx=fe.Power2,kx=fe.Power3,zx=fe.Power4,Vx=fe.Linear,Hx=fe.Quad,Gx=fe.Cubic,Wx=fe.Quart,Xx=fe.Quint,Yx=fe.Strong,qx=fe.Elastic,Zx=fe.Back,Jx=fe.SteppedEase,$x=fe.Bounce,Kx=fe.Sine,jx=fe.Expo,Qx=fe.Circ;var pp,pr,Xs,Ku,ns,tv,mp,ju,ev=function(){return typeof window<"u"},Vi={},es=180/Math.PI,Ys=Math.PI/180,Ws=Math.atan2,gp=1e8,Qu=/([A-Z])/g,nv=/(left|right|width|margin|padding|x)/i,iv=/[\s,\(]\S/,Ai={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},qu=function(t,e){return e.set(e.t,e.p,Math.round((e.s+e.c*t)*1e4)/1e4+e.u,e)},rv=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)},sv=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)},ov=function(t,e){var n=e.s+e.c*t;e.set(e.t,e.p,~~(n+(n<0?-.5:.5))+e.u,e)},bp=function(t,e){return e.set(e.t,e.p,t?e.e:e.b,e)},wp=function(t,e){return e.set(e.t,e.p,t!==1?e.b:e.e,e)},av=function(t,e,n){return t.style[e]=n},lv=function(t,e,n){return t.style.setProperty(e,n)},cv=function(t,e,n){return t._gsap[e]=n},uv=function(t,e,n){return t._gsap.scaleX=t._gsap.scaleY=n},hv=function(t,e,n,i,s){var o=t._gsap;o.scaleX=o.scaleY=n,o.renderTransform(s,o)},fv=function(t,e,n,i,s){var o=t._gsap;o[e]=n,o.renderTransform(s,o)},Re="transform",In=Re+"Origin",dv=function r(t,e){var n=this,i=this.target,s=i.style,o=i._gsap;if(t in Vi&&s){if(this.tfm=this.tfm||{},t!=="transform")t=Ai[t]||t,~t.indexOf(",")?t.split(",").forEach(function(a){return n.tfm[a]=zi(i,a)}):this.tfm[t]=o.x?o[t]:zi(i,t),t===In&&(this.tfm.zOrigin=o.zOrigin);else return Ai.transform.split(",").forEach(function(a){return r.call(n,a,e)});if(this.props.indexOf(Re)>=0)return;o.svg&&(this.svgo=i.getAttribute("data-svg-origin"),this.props.push(In,e,"")),t=Re}(s||e)&&this.props.push(t,e,s[t])},Ep=function(t){t.translate&&(t.removeProperty("translate"),t.removeProperty("scale"),t.removeProperty("rotate"))},pv=function(){var t=this.props,e=this.target,n=e.style,i=e._gsap,s,o;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(Qu,"-$1").toLowerCase());if(this.tfm){for(o in this.tfm)i[o]=this.tfm[o];i.svg&&(i.renderTransform(),e.setAttribute("data-svg-origin",this.svgo||"")),s=ju(),(!s||!s.isStart)&&!n[Re]&&(Ep(n),i.zOrigin&&n[In]&&(n[In]+=" "+i.zOrigin+"px",i.zOrigin=0,i.renderTransform()),i.uncache=1)}},Tp=function(t,e){var n={target:t,props:[],revert:pv,save:dv};return t._gsap||cn.core.getCache(t),e&&e.split(",").forEach(function(i){return n.save(i)}),n},Ap,Zu=function(t,e){var n=pr.createElementNS?pr.createElementNS((e||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),t):pr.createElement(t);return n&&n.style?n:pr.createElement(t)},Di=function r(t,e,n){var i=getComputedStyle(t);return i[e]||i.getPropertyValue(e.replace(Qu,"-$1").toLowerCase())||i.getPropertyValue(e)||!n&&r(t,qs(e)||e,1)||""},_p="O,Moz,ms,Ms,Webkit".split(","),qs=function(t,e,n){var i=e||ns,s=i.style,o=5;if(t in s&&!n)return t;for(t=t.charAt(0).toUpperCase()+t.substr(1);o--&&!(_p[o]+t in s););return o<0?null:(o===3?"ms":o>=0?_p[o]:"")+t},Ju=function(){ev()&&window.document&&(pp=window,pr=pp.document,Xs=pr.documentElement,ns=Zu("div")||{style:{}},tv=Zu("div"),Re=qs(Re),In=Re+"Origin",ns.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",Ap=!!qs("perspective"),ju=cn.core.reverting,Ku=1)},Xu=function r(t){var e=Zu("svg",this.ownerSVGElement&&this.ownerSVGElement.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),n=this.parentNode,i=this.nextSibling,s=this.style.cssText,o;if(Xs.appendChild(e),e.appendChild(this),this.style.display="block",t)try{o=this.getBBox(),this._gsapBBox=this.getBBox,this.getBBox=r}catch{}else this._gsapBBox&&(o=this._gsapBBox());return n&&(i?n.insertBefore(this,i):n.appendChild(this)),Xs.removeChild(e),this.style.cssText=s,o},xp=function(t,e){for(var n=e.length;n--;)if(t.hasAttribute(e[n]))return t.getAttribute(e[n])},Dp=function(t){var e;try{e=t.getBBox()}catch{e=Xu.call(t,!0)}return e&&(e.width||e.height)||t.getBBox===Xu||(e=Xu.call(t,!0)),e&&!e.width&&!e.x&&!e.y?{x:+xp(t,["x","cx","x1"])||0,y:+xp(t,["y","cy","y1"])||0,width:0,height:0}:e},Cp=function(t){return!!(t.getCTM&&(!t.parentNode||t.ownerSVGElement)&&Dp(t))},is=function(t,e){if(e){var n=t.style,i;e in Vi&&e!==In&&(e=Re),n.removeProperty?(i=e.substr(0,2),(i==="ms"||e.substr(0,6)==="webkit")&&(e="-"+e),n.removeProperty(i==="--"?e:e.replace(Qu,"-$1").toLowerCase())):n.removeAttribute(e)}},mr=function(t,e,n,i,s,o){var a=new xn(t._pt,e,n,0,1,o?wp:bp);return t._pt=a,a.b=i,a.e=s,t._props.push(n),a},vp={deg:1,rad:1,turn:1},mv={grid:1,flex:1},gr=function r(t,e,n,i){var s=parseFloat(n)||0,o=(n+"").trim().substr((s+"").length)||"px",a=ns.style,l=nv.test(e),c=t.tagName.toLowerCase()==="svg",h=(c?"client":"offset")+(l?"Width":"Height"),f=100,d=i==="px",u=i==="%",_,p,m,g;if(i===o||!s||vp[i]||vp[o])return s;if(o!=="px"&&!d&&(s=r(t,e,n,"px")),g=t.getCTM&&Cp(t),(u||o==="%")&&(Vi[e]||~e.indexOf("adius")))return _=g?t.getBBox()[l?"width":"height"]:t[h],Le(u?s/_*f:s/100*_);if(a[l?"width":"height"]=f+(d?o:i),p=~e.indexOf("adius")||i==="em"&&t.appendChild&&!c?t:t.parentNode,g&&(p=(t.ownerSVGElement||{}).parentNode),(!p||p===pr||!p.appendChild)&&(p=pr.body),m=p._gsap,m&&u&&m.width&&l&&m.time===Cn.time&&!m.uncache)return Le(s/m.width*f);if(u&&(e==="height"||e==="width")){var b=t.style[e];t.style[e]=f+i,_=t[h],b?t.style[e]=b:is(t,e)}else(u||o==="%")&&!mv[Di(p,"display")]&&(a.position=Di(t,"position")),p===t&&(a.position="static"),p.appendChild(ns),_=ns[h],p.removeChild(ns),a.position="absolute";return l&&u&&(m=hr(p),m.time=Cn.time,m.width=p[h]),Le(d?_*s/f:_&&s?f/_*s:0)},zi=function(t,e,n,i){var s;return Ku||Ju(),e in Ai&&e!=="transform"&&(e=Ai[e],~e.indexOf(",")&&(e=e.split(",")[0])),Vi[e]&&e!=="transform"?(s=sa(t,i),s=e!=="transformOrigin"?s[e]:s.svg?s.origin:gl(Di(t,In))+" "+s.zOrigin+"px"):(s=t.style[e],(!s||s==="auto"||i||~(s+"").indexOf("calc("))&&(s=ml[e]&&ml[e](t,e,n)||Di(t,e)||Nu(t,e)||(e==="opacity"?1:0))),n&&!~(s+"").trim().indexOf(" ")?gr(t,e,s,n)+n:s},gv=function(t,e,n,i){if(!n||n==="none"){var s=qs(e,t,1),o=s&&Di(t,s,1);o&&o!==n?(e=s,n=o):e==="borderColor"&&(n=Di(t,"borderTopColor"))}var a=new xn(this._pt,t.style,e,0,1,Hu),l=0,c=0,h,f,d,u,_,p,m,g,b,y,S,D;if(a.b=n,a.e=i,n+="",i+="",i==="auto"&&(p=t.style[e],t.style[e]=i,i=Di(t,e)||i,p?t.style[e]=p:is(t,e)),h=[n,i],Uu(h),n=h[0],i=h[1],d=n.match($r)||[],D=i.match($r)||[],D.length){for(;f=$r.exec(i);)m=f[0],b=i.substring(l,f.index),_?_=(_+1)%5:(b.substr(-5)==="rgba("||b.substr(-5)==="hsla(")&&(_=1),m!==(p=d[c++]||"")&&(u=parseFloat(p)||0,S=p.substr((u+"").length),m.charAt(1)==="="&&(m=Kr(u,m)+S),g=parseFloat(m),y=m.substr((g+"").length),l=$r.lastIndex-y.length,y||(y=y||Pn.units[e]||S,l===i.length&&(i+=y,a.e+=y)),S!==y&&(u=gr(t,e,p,y)||0),a._pt={_next:a._pt,p:b||c===1?b:",",s:u,c:g-u,m:_&&_<4||e==="zIndex"?Math.round:0});a.c=l<i.length?i.substring(l,i.length):""}else a.r=e==="display"&&i==="none"?wp:bp;return Ru.test(i)&&(a.e=0),this._pt=a,a},yp={top:"0%",bottom:"100%",left:"0%",right:"100%",center:"50%"},_v=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]=yp[n]||n,e[1]=yp[i]||i,e.join(" ")},xv=function(t,e){if(e.tween&&e.tween._time===e.tween._dur){var n=e.t,i=n.style,s=e.u,o=n._gsap,a,l,c;if(s==="all"||s===!0)i.cssText="",l=1;else for(s=s.split(","),c=s.length;--c>-1;)a=s[c],Vi[a]&&(l=1,a=a==="transformOrigin"?In:Re),is(n,a);l&&(is(n,Re),o&&(o.svg&&n.removeAttribute("transform"),sa(n,1),o.uncache=1,Ep(i)))}},ml={clearProps:function(t,e,n,i,s){if(s.data!=="isFromStart"){var o=t._pt=new xn(t._pt,e,n,0,0,xv);return o.u=i,o.pr=-10,o.tween=s,t._props.push(n),1}}},ra=[1,0,0,1,0,0],Rp={},Pp=function(t){return t==="matrix(1, 0, 0, 1, 0, 0)"||t==="none"||!t},Sp=function(t){var e=Di(t,Re);return Pp(e)?ra:e.substr(7).match(Cu).map(Le)},th=function(t,e){var n=t._gsap||hr(t),i=t.style,s=Sp(t),o,a,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"?ra:s):(s===ra&&!t.offsetParent&&t!==Xs&&!n.svg&&(l=i.display,i.display="block",o=t.parentNode,(!o||!t.offsetParent)&&(c=1,a=t.nextElementSibling,Xs.appendChild(t)),s=Sp(t),l?i.display=l:is(t,"display"),c&&(a?o.insertBefore(t,a):o?o.appendChild(t):Xs.removeChild(t))),e&&s.length>6?[s[0],s[1],s[4],s[5],s[12],s[13]]:s)},$u=function(t,e,n,i,s,o){var a=t._gsap,l=s||th(t,!0),c=a.xOrigin||0,h=a.yOrigin||0,f=a.xOffset||0,d=a.yOffset||0,u=l[0],_=l[1],p=l[2],m=l[3],g=l[4],b=l[5],y=e.split(" "),S=parseFloat(y[0])||0,D=parseFloat(y[1])||0,T,w,P,M;n?l!==ra&&(w=u*m-_*p)&&(P=S*(m/w)+D*(-p/w)+(p*b-m*g)/w,M=S*(-_/w)+D*(u/w)-(u*b-_*g)/w,S=P,D=M):(T=Dp(t),S=T.x+(~y[0].indexOf("%")?S/100*T.width:S),D=T.y+(~(y[1]||y[0]).indexOf("%")?D/100*T.height:D)),i||i!==!1&&a.smooth?(g=S-c,b=D-h,a.xOffset=f+(g*u+b*p)-g,a.yOffset=d+(g*_+b*m)-b):a.xOffset=a.yOffset=0,a.xOrigin=S,a.yOrigin=D,a.smooth=!!i,a.origin=e,a.originIsAbsolute=!!n,t.style[In]="0px 0px",o&&(mr(o,a,"xOrigin",c,S),mr(o,a,"yOrigin",h,D),mr(o,a,"xOffset",f,a.xOffset),mr(o,a,"yOffset",d,a.yOffset)),t.setAttribute("data-svg-origin",S+" "+D)},sa=function(t,e){var n=t._gsap||new Ou(t);if("x"in n&&!e&&!n.uncache)return n;var i=t.style,s=n.scaleX<0,o="px",a="deg",l=getComputedStyle(t),c=Di(t,In)||"0",h,f,d,u,_,p,m,g,b,y,S,D,T,w,P,M,v,I,N,C,V,$,W,Z,z,U,R,at,_t,Ut,X,ot;return h=f=d=p=m=g=b=y=S=0,u=_=1,n.svg=!!(t.getCTM&&Cp(t)),l.translate&&((l.translate!=="none"||l.scale!=="none"||l.rotate!=="none")&&(i[Re]=(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[Re]!=="none"?l[Re]:"")),i.scale=i.rotate=i.translate="none"),w=th(t,n.svg),n.svg&&(n.uncache?(z=t.getBBox(),c=n.xOrigin-z.x+"px "+(n.yOrigin-z.y)+"px",Z=""):Z=!e&&t.getAttribute("data-svg-origin"),$u(t,Z||c,!!Z||n.originIsAbsolute,n.smooth!==!1,w)),D=n.xOrigin||0,T=n.yOrigin||0,w!==ra&&(I=w[0],N=w[1],C=w[2],V=w[3],h=$=w[4],f=W=w[5],w.length===6?(u=Math.sqrt(I*I+N*N),_=Math.sqrt(V*V+C*C),p=I||N?Ws(N,I)*es:0,b=C||V?Ws(C,V)*es+p:0,b&&(_*=Math.abs(Math.cos(b*Ys))),n.svg&&(h-=D-(D*I+T*C),f-=T-(D*N+T*V))):(ot=w[6],Ut=w[7],R=w[8],at=w[9],_t=w[10],X=w[11],h=w[12],f=w[13],d=w[14],P=Ws(ot,_t),m=P*es,P&&(M=Math.cos(-P),v=Math.sin(-P),Z=$*M+R*v,z=W*M+at*v,U=ot*M+_t*v,R=$*-v+R*M,at=W*-v+at*M,_t=ot*-v+_t*M,X=Ut*-v+X*M,$=Z,W=z,ot=U),P=Ws(-C,_t),g=P*es,P&&(M=Math.cos(-P),v=Math.sin(-P),Z=I*M-R*v,z=N*M-at*v,U=C*M-_t*v,X=V*v+X*M,I=Z,N=z,C=U),P=Ws(N,I),p=P*es,P&&(M=Math.cos(P),v=Math.sin(P),Z=I*M+N*v,z=$*M+W*v,N=N*M-I*v,W=W*M-$*v,I=Z,$=z),m&&Math.abs(m)+Math.abs(p)>359.9&&(m=p=0,g=180-g),u=Le(Math.sqrt(I*I+N*N+C*C)),_=Le(Math.sqrt(W*W+ot*ot)),P=Ws($,W),b=Math.abs(P)>2e-4?P*es:0,S=X?1/(X<0?-X:X):0),n.svg&&(Z=t.getAttribute("transform"),n.forceCSS=t.setAttribute("transform","")||!Pp(Di(t,Re)),Z&&t.setAttribute("transform",Z))),Math.abs(b)>90&&Math.abs(b)<270&&(s?(u*=-1,b+=p<=0?180:-180,p+=p<=0?180:-180):(_*=-1,b+=b<=0?180:-180)),e=e||n.uncache,n.x=h-((n.xPercent=h&&(!e&&n.xPercent||(Math.round(t.offsetWidth/2)===Math.round(-h)?-50:0)))?t.offsetWidth*n.xPercent/100:0)+o,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)+o,n.z=d+o,n.scaleX=Le(u),n.scaleY=Le(_),n.rotation=Le(p)+a,n.rotationX=Le(m)+a,n.rotationY=Le(g)+a,n.skewX=b+a,n.skewY=y+a,n.transformPerspective=S+o,(n.zOrigin=parseFloat(c.split(" ")[2])||!e&&n.zOrigin||0)&&(i[In]=gl(c)),n.xOffset=n.yOffset=0,n.force3D=Pn.force3D,n.renderTransform=n.svg?yv:Ap?Ip:vv,n.uncache=0,n},gl=function(t){return(t=t.split(" "))[0]+" "+t[1]},Yu=function(t,e,n){var i=en(e);return Le(parseFloat(e)+parseFloat(gr(t,"x",n+"px",i)))+i},vv=function(t,e){e.z="0px",e.rotationY=e.rotationX="0deg",e.force3D=0,Ip(t,e)},Qr="0deg",ia="0px",ts=") ",Ip=function(t,e){var n=e||this,i=n.xPercent,s=n.yPercent,o=n.x,a=n.y,l=n.z,c=n.rotation,h=n.rotationY,f=n.rotationX,d=n.skewX,u=n.skewY,_=n.scaleX,p=n.scaleY,m=n.transformPerspective,g=n.force3D,b=n.target,y=n.zOrigin,S="",D=g==="auto"&&t&&t!==1||g===!0;if(y&&(f!==Qr||h!==Qr)){var T=parseFloat(h)*Ys,w=Math.sin(T),P=Math.cos(T),M;T=parseFloat(f)*Ys,M=Math.cos(T),o=Yu(b,o,w*M*-y),a=Yu(b,a,-Math.sin(T)*-y),l=Yu(b,l,P*M*-y+y)}m!==ia&&(S+="perspective("+m+ts),(i||s)&&(S+="translate("+i+"%, "+s+"%) "),(D||o!==ia||a!==ia||l!==ia)&&(S+=l!==ia||D?"translate3d("+o+", "+a+", "+l+") ":"translate("+o+", "+a+ts),c!==Qr&&(S+="rotate("+c+ts),h!==Qr&&(S+="rotateY("+h+ts),f!==Qr&&(S+="rotateX("+f+ts),(d!==Qr||u!==Qr)&&(S+="skew("+d+", "+u+ts),(_!==1||p!==1)&&(S+="scale("+_+", "+p+ts),b.style[Re]=S||"translate(0, 0)"},yv=function(t,e){var n=e||this,i=n.xPercent,s=n.yPercent,o=n.x,a=n.y,l=n.rotation,c=n.skewX,h=n.skewY,f=n.scaleX,d=n.scaleY,u=n.target,_=n.xOrigin,p=n.yOrigin,m=n.xOffset,g=n.yOffset,b=n.forceCSS,y=parseFloat(o),S=parseFloat(a),D,T,w,P,M;l=parseFloat(l),c=parseFloat(c),h=parseFloat(h),h&&(h=parseFloat(h),c+=h,l+=h),l||c?(l*=Ys,c*=Ys,D=Math.cos(l)*f,T=Math.sin(l)*f,w=Math.sin(l-c)*-d,P=Math.cos(l-c)*d,c&&(h*=Ys,M=Math.tan(c-h),M=Math.sqrt(1+M*M),w*=M,P*=M,h&&(M=Math.tan(h),M=Math.sqrt(1+M*M),D*=M,T*=M)),D=Le(D),T=Le(T),w=Le(w),P=Le(P)):(D=f,P=d,T=w=0),(y&&!~(o+"").indexOf("px")||S&&!~(a+"").indexOf("px"))&&(y=gr(u,"x",o,"px"),S=gr(u,"y",a,"px")),(_||p||m||g)&&(y=Le(y+_-(_*D+p*w)+m),S=Le(S+p-(_*T+p*P)+g)),(i||s)&&(M=u.getBBox(),y=Le(y+i/100*M.width),S=Le(S+s/100*M.height)),M="matrix("+D+","+T+","+w+","+P+","+y+","+S+")",u.setAttribute("transform",M),b&&(u.style[Re]=M)},Sv=function(t,e,n,i,s){var o=360,a=Ge(s),l=parseFloat(s)*(a&&~s.indexOf("rad")?es:1),c=l-i,h=i+c+"deg",f,d;return a&&(f=s.split("_")[1],f==="short"&&(c%=o,c!==c%(o/2)&&(c+=c<0?o:-o)),f==="cw"&&c<0?c=(c+o*gp)%o-~~(c/o)*o:f==="ccw"&&c>0&&(c=(c-o*gp)%o-~~(c/o)*o)),t._pt=d=new xn(t._pt,e,n,i,c,rv),d.e=h,d.u="deg",t._props.push(n),d},Mp=function(t,e){for(var n in e)t[n]=e[n];return t},Mv=function(t,e,n){var i=Mp({},n._gsap),s="perspective,force3D,transformOrigin,svgOrigin",o=n.style,a,l,c,h,f,d,u,_;i.svg?(c=n.getAttribute("transform"),n.setAttribute("transform",""),o[Re]=e,a=sa(n,1),is(n,Re),n.setAttribute("transform",c)):(c=getComputedStyle(n)[Re],o[Re]=e,a=sa(n,1),o[Re]=c);for(l in Vi)c=i[l],h=a[l],c!==h&&s.indexOf(l)<0&&(u=en(c),_=en(h),f=u!==_?gr(n,l,c,_):parseFloat(c),d=parseFloat(h),t._pt=new xn(t._pt,a,l,f,d-f,qu),t._pt.u=_||0,t._props.push(l));Mp(a,i)};_n("padding,margin,Width,Radius",function(r,t){var e="Top",n="Right",i="Bottom",s="Left",o=(t<3?[e,n,i,s]:[e+s,e+n,i+n,i+s]).map(function(a){return t<2?r+a:"border"+a+r});ml[t>1?"border"+r:r]=function(a,l,c,h,f){var d,u;if(arguments.length<4)return d=o.map(function(_){return zi(a,_,c)}),u=d.join(" "),u.split(d[0]).length===5?d[0]:u;d=(h+"").split(" "),u={},o.forEach(function(_,p){return u[_]=d[p]=d[p]||d[(p-1)/2|0]}),a.init(l,u,f)}});var eh={name:"css",register:Ju,targetTest:function(t){return t.style&&t.nodeType},init:function(t,e,n,i,s){var o=this._props,a=t.style,l=n.vars.startAt,c,h,f,d,u,_,p,m,g,b,y,S,D,T,w,P;Ku||Ju(),this.styles=this.styles||Tp(t),P=this.styles.props,this.tween=n;for(p in e)if(p!=="autoRound"&&(h=e[p],!(Dn[p]&&ku(p,e,n,i,t,s)))){if(u=typeof h,_=ml[p],u==="function"&&(h=h.call(n,i,t,s),u=typeof h),u==="string"&&~h.indexOf("random(")&&(h=Gs(h)),_)_(this,t,p,h,n)&&(w=1);else if(p.substr(0,2)==="--")c=(getComputedStyle(t).getPropertyValue(p)+"").trim(),h+="",Bi.lastIndex=0,Bi.test(c)||(m=en(c),g=en(h)),g?m!==g&&(c=gr(t,p,c,g)+g):m&&(h+=m),this.add(a,"setProperty",c,h,i,s,0,0,p),o.push(p),P.push(p,0,a[p]);else if(u!=="undefined"){if(l&&p in l?(c=typeof l[p]=="function"?l[p].call(n,i,t,s):l[p],Ge(c)&&~c.indexOf("random(")&&(c=Gs(c)),en(c+"")||c==="auto"||(c+=Pn.units[p]||en(zi(t,p))||""),(c+"").charAt(1)==="="&&(c=zi(t,p))):c=zi(t,p),d=parseFloat(c),b=u==="string"&&h.charAt(1)==="="&&h.substr(0,2),b&&(h=h.substr(2)),f=parseFloat(h),p in Ai&&(p==="autoAlpha"&&(d===1&&zi(t,"visibility")==="hidden"&&f&&(d=0),P.push("visibility",0,a.visibility),mr(this,a,"visibility",d?"inherit":"hidden",f?"inherit":"hidden",!f)),p!=="scale"&&p!=="transform"&&(p=Ai[p],~p.indexOf(",")&&(p=p.split(",")[0]))),y=p in Vi,y){if(this.styles.save(p),S||(D=t._gsap,D.renderTransform&&!e.parseTransform||sa(t,e.parseTransform),T=e.smoothOrigin!==!1&&D.smooth,S=this._pt=new xn(this._pt,a,Re,0,1,D.renderTransform,D,0,-1),S.dep=1),p==="scale")this._pt=new xn(this._pt,D,"scaleY",D.scaleY,(b?Kr(D.scaleY,b+f):f)-D.scaleY||0,qu),this._pt.u=0,o.push("scaleY",p),p+="X";else if(p==="transformOrigin"){P.push(In,0,a[In]),h=_v(h),D.svg?$u(t,h,0,T,0,this):(g=parseFloat(h.split(" ")[2])||0,g!==D.zOrigin&&mr(this,D,"zOrigin",D.zOrigin,g),mr(this,a,p,gl(c),gl(h)));continue}else if(p==="svgOrigin"){$u(t,h,1,T,0,this);continue}else if(p in Rp){Sv(this,D,p,d,b?Kr(d,b+h):h);continue}else if(p==="smoothOrigin"){mr(this,D,"smooth",D.smooth,h);continue}else if(p==="force3D"){D[p]=h;continue}else if(p==="transform"){Mv(this,h,t);continue}}else p in a||(p=qs(p)||p);if(y||(f||f===0)&&(d||d===0)&&!iv.test(h)&&p in a)m=(c+"").substr((d+"").length),f||(f=0),g=en(h)||(p in Pn.units?Pn.units[p]:m),m!==g&&(d=gr(t,p,c,g)),this._pt=new xn(this._pt,y?D:a,p,d,(b?Kr(d,b+f):f)-d,!y&&(g==="px"||p==="zIndex")&&e.autoRound!==!1?ov:qu),this._pt.u=g||0,m!==g&&g!=="%"&&(this._pt.b=c,this._pt.r=sv);else if(p in a)gv.call(this,t,p,c,b?b+h:h);else if(p in t)this.add(t,p,c||t[p],b?b+h:h,i,s);else if(p!=="parseTransform"){ul(p,h);continue}y||(p in a?P.push(p,0,a[p]):P.push(p,1,c||t[p])),o.push(p)}}w&&Wu(this)},render:function(t,e){if(e.tween._time||!ju())for(var n=e._pt;n;)n.r(t,n.d),n=n._next;else e.styles.revert()},get:zi,aliases:Ai,getSetter:function(t,e,n){var i=Ai[e];return i&&i.indexOf(",")<0&&(e=i),e in Vi&&e!==In&&(t._gsap.x||zi(t,"x"))?n&&mp===n?e==="scale"?uv:cv:(mp=n||{})&&(e==="scale"?hv:fv):t.style&&!cl(t.style[e])?av:~e.indexOf("-")?lv:pl(t,e)},core:{_removeProperty:is,_getMatrix:th}};cn.utils.checkPrefix=qs;cn.core.getStyleSaver=Tp;(function(r,t,e,n){var i=_n(r+","+t+","+e,function(s){Vi[s]=1});_n(t,function(s){Pn.units[s]="deg",Rp[s]=1}),Ai[i[13]]=r+","+t,_n(n,function(s){var o=s.split(":");Ai[o[1]]=i[o[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");_n("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",function(r){Pn.units[r]="px"});cn.registerPlugin(eh);var ue=cn.registerPlugin(eh)||cn,_T=ue.core.Tween;function Lp(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 bv(r,t,e){return t&&Lp(r.prototype,t),e&&Lp(r,e),r}var ve,_l,nn,ss,Zs,ai,wv,rs,Fp,ie,Ci,xl,Np,Up,Op,Bp,kp=function(){return typeof window<"u"},zp=function(){return ve||kp()&&(ve=window.gsap)&&ve.registerPlugin&&ve};var Ev=function(t){return Math.round(t*1e5)/1e5||0},_r=function(t){return ie.maxScroll(t||nn)},Tv=function(t,e){var n=t.parentNode||Zs,i=t.getBoundingClientRect(),s=n.getBoundingClientRect(),o=s.top-i.top,a=s.bottom-i.bottom,l=(Math.abs(o)>Math.abs(a)?o:a)/(1-e),c=-l*e,h,f;return l>0&&(h=s.height/(nn.innerHeight+s.height),f=h===.5?s.height*2:Math.min(s.height,Math.abs(-l*h/(2*h-1)))*2*(e||1),c+=e?-f*e:-f/2,l+=f),{change:l,offset:c}},Av=function(t){var e=ss.querySelector(".ScrollSmoother-wrapper");return e||(e=ss.createElement("div"),e.classList.add("ScrollSmoother-wrapper"),t.parentNode.insertBefore(e,t),e.appendChild(t)),e},li=function(){function r(t){var e=this;_l||r.register(ve)||console.warn("Please gsap.registerPlugin(ScrollSmoother)"),t=this.vars=t||{},Ci&&Ci.kill(),Ci=this,Op(this);var n=t,i=n.smoothTouch,s=n.onUpdate,o=n.onStop,a=n.smooth,l=n.onFocusIn,c=n.normalizeScroll,h=n.wholePixels,f,d,u,_,p,m,g,b,y,S,D,T,w,P,M=this,v=t.effectsPrefix||"",I=ie.getScrollFunc(nn),N=ie.isTouch===1?i===!0?.8:parseFloat(i)||0:a===0||a===!1?0:parseFloat(a)||.8,C=N&&+t.speed||1,V=0,$=0,W=1,Z=Np(0),z=function(){return Z.update(-V)},U={y:0},R=function(){return f.style.overflow="visible"},at,_t=function(x){x.update();var F=x.getTween();F&&(F.pause(),F._time=F._dur,F._tTime=F._tDur),at=!1,x.animation.progress(x.progress,!0)},Ut=function(x,F){(x!==V&&!S||F)&&(h&&(x=Math.round(x)),N&&(f.style.transform="matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, "+x+", 0, 1)",f._gsap.y=x+"px"),$=x-V,V=x,ie.isUpdating||r.isRefreshing||ie.update())},X=function(x){return arguments.length?(x<0&&(x=0),U.y=-x,at=!0,S?V=-x:Ut(-x),ie.isRefreshing?_.update():I(x/C),this):-V},ot=typeof ResizeObserver<"u"&&t.autoResize!==!1&&new ResizeObserver(function(){if(!ie.isRefreshing){var A=_r(d)*C;A<-V&&X(A),Bp.restart(!0)}}),xt,ct=function(x){d.scrollTop=0,!(x.target.contains&&x.target.contains(d)||l&&l(e,x)===!1)&&(ie.isInViewport(x.target)||x.target===xt||e.scrollTo(x.target,!1,"center center"),xt=x.target)},Rt=function(x,F){if(x<F.start)return x;var Y=isNaN(F.ratio)?1:F.ratio,tt=F.end-F.start,it=x-F.start,yt=F.offset||0,pt=F.pins||[],lt=pt.offset||0,Lt=F._startClamp&&F.start<=0||F.pins&&F.pins.offset?0:F._endClamp&&F.end===_r()?1:.5;return pt.forEach(function(ht){tt-=ht.distance,ht.nativeStart<=x&&(it-=ht.distance)}),lt&&(it*=(tt-lt/Y)/tt),x+(it-yt*Lt)/Y-it},kt=function A(x,F,Y){Y||(x.pins.length=x.pins.offset=0);var tt=x.pins,it=x.markers,yt,pt,lt,Lt,ht,vt,Yt,ut;for(Yt=0;Yt<F.length;Yt++)if(ut=F[Yt],x.trigger&&ut.trigger&&x!==ut&&(ut.trigger===x.trigger||ut.pinnedContainer===x.trigger||x.trigger.contains(ut.trigger))&&(ht=ut._startNative||ut._startClamp||ut.start,vt=ut._endNative||ut._endClamp||ut.end,lt=Rt(ht,x),Lt=ut.pin&&vt>0?lt+(vt-ht):Rt(vt,x),ut.setPositions(lt,Lt,!0,(ut._startClamp?Math.max(0,lt):lt)-ht),ut.markerStart&&it.push(ve.quickSetter([ut.markerStart,ut.markerEnd],"y","px")),ut.pin&&ut.end>0&&!Y)){if(yt=ut.end-ut.start,pt=x._startClamp&&ut.start<0,pt){if(x.start>0){x.setPositions(0,x.end+(x._startNative-x.start),!0),A(x,F);return}yt+=ut.start,tt.offset=-ut.start}tt.push({start:ut.start,nativeStart:ht,end:ut.end,distance:yt,trig:ut}),x.setPositions(x.start,x.end+(pt?-ut.start:yt),!0)}},q=function(x,F){p.forEach(function(Y){return kt(Y,x,F)})},Jt=function(){R(),requestAnimationFrame(R),p&&(ie.getAll().forEach(function(x){x._startNative=x.start,x._endNative=x.end}),p.forEach(function(x){var F=x._startClamp||x.start,Y=x.autoSpeed?Math.min(_r(),x.end):F+Math.abs((x.end-F)/x.ratio),tt=Y-x.end;if(F-=tt/2,Y-=tt/2,F>Y){var it=F;F=Y,Y=it}x._startClamp&&F<0?(Y=x.ratio<0?_r():x.end/x.ratio,tt=Y-x.end,F=0):(x.ratio<0||x._endClamp&&Y>=_r())&&(Y=_r(),F=x.ratio<0||x.ratio>1?0:Y-(Y-x.start)/x.ratio,tt=(Y-F)*x.ratio-(x.end-x.start)),x.offset=tt||1e-4,x.pins.length=x.pins.offset=0,x.setPositions(F,Y,!0)}),q(ie.sort())),Z.reset()},It=function(){return ie.addEventListener("refresh",Jt)},Ft=function(){return p&&p.forEach(function(x){return x.vars.onRefresh(x)})},bt=function(){return p&&p.forEach(function(x){return x.vars.onRefreshInit(x)}),Ft},Et=function(x,F,Y,tt){return function(){var it=typeof F=="function"?F(Y,tt):F;it||it===0||(it=tt.getAttribute("data-"+v+x)||(x==="speed"?1:0)),tt.setAttribute("data-"+v+x,it);var yt=(it+"").substr(0,6)==="clamp(";return{clamp:yt,value:yt?it.substr(6,it.length-7):it}}},Ht=function(x,F,Y,tt,it){it=(typeof it=="function"?it(tt,x):it)||0;var yt=Et("speed",F,tt,x),pt=Et("lag",Y,tt,x),lt=ve.getProperty(x,"y"),Lt=x._gsap,ht,vt,Yt,ut,Tt,Wt,qt=[],ce=function(){F=yt(),Y=parseFloat(pt().value),ht=parseFloat(F.value)||1,Yt=F.value==="auto",Tt=Yt||vt&&vt._startClamp&&vt.start<=0||qt.offset?0:vt&&vt._endClamp&&vt.end===_r()?1:.5,ut&&ut.kill(),ut=Y&&ve.to(x,{ease:xl,overwrite:!1,y:"+=0",duration:Y}),vt&&(vt.ratio=ht,vt.autoSpeed=Yt)},Zt=function(){Lt.y=lt+"px",Lt.renderTransform(1),ce()},k=[],Q=0,st=function(gt){if(Yt){Zt();var Bt=Tv(x,Fp(0,1,-gt.start/(gt.end-gt.start)));Q=Bt.change,Wt=Bt.offset}else Wt=qt.offset||0,Q=(gt.end-gt.start-Wt)*(1-ht);qt.forEach(function(ee){return Q-=ee.distance*(1-ht)}),gt.offset=Q||.001,gt.vars.onUpdate(gt),ut&&ut.progress(1)};return ce(),(ht!==1||Yt||ut)&&(vt=ie.create({trigger:Yt?x.parentNode:x,start:function(){return F.clamp?"clamp(top bottom+="+it+")":"top bottom+="+it},end:function(){return F.value<0?"max":F.clamp?"clamp(bottom top-="+it+")":"bottom top-="+it},scroller:d,scrub:!0,refreshPriority:-999,onRefreshInit:Zt,onRefresh:st,onKill:function(gt){var Bt=p.indexOf(gt);Bt>=0&&p.splice(Bt,1),Zt()},onUpdate:function(gt){var Bt=lt+Q*(gt.progress-Tt),ee=qt.length,Mt=0,L,rt,O;if(gt.offset){if(ee){for(rt=-V,O=gt.end;ee--;){if(L=qt[ee],L.trig.isActive||rt>=L.start&&rt<=L.end){ut&&(L.trig.progress+=L.trig.direction<0?.001:-.001,L.trig.update(0,0,1),ut.resetTo("y",parseFloat(Lt.y),-$,!0),W&&ut.progress(1));return}rt>L.end&&(Mt+=L.distance),O-=L.distance}Bt=lt+Mt+Q*((ve.utils.clamp(gt.start,gt.end,rt)-gt.start-Mt)/(O-gt.start)-Tt)}k.length&&!Yt&&k.forEach(function(j){return j(Bt-Mt)}),Bt=Ev(Bt+Wt),ut?(ut.resetTo("y",Bt,-$,!0),W&&ut.progress(1)):(Lt.y=Bt+"px",Lt.renderTransform(1))}}}),st(vt),ve.core.getCache(vt.trigger).stRevert=bt,vt.startY=lt,vt.pins=qt,vt.markers=k,vt.ratio=ht,vt.autoSpeed=Yt,x.style.willChange="transform"),vt};It(),ie.addEventListener("killAll",It),ve.delayedCall(.5,function(){return W=0}),this.scrollTop=X,this.scrollTo=function(A,x,F){var Y=ve.utils.clamp(0,_r(),isNaN(A)?e.offset(A,F,!!x&&!S):+A);x?S?ve.to(e,{duration:N,scrollTop:Y,overwrite:"auto",ease:xl}):I(Y):X(Y)},this.offset=function(A,x,F){A=rs(A)[0];var Y=A.style.cssText,tt=ie.create({trigger:A,start:x||"top top"}),it;return p&&(W?ie.refresh():q([tt],!0)),it=tt.start/(F?C:1),tt.kill(!1),A.style.cssText=Y,ve.core.getCache(A).uncache=1,it};function G(){return u=f.clientHeight,f.style.overflow="visible",ai.style.height=nn.innerHeight+(u-nn.innerHeight)/C+"px",u-nn.innerHeight}this.content=function(A){if(arguments.length){var x=rs(A||"#smooth-content")[0]||console.warn("ScrollSmoother needs a valid content element.")||ai.children[0];return x!==f&&(f=x,y=f.getAttribute("style")||"",ot&&ot.observe(f),ve.set(f,{overflow:"visible",width:"100%",boxSizing:"border-box",y:"+=0"}),N||ve.set(f,{clearProps:"transform"})),this}return f},this.wrapper=function(A){return arguments.length?(d=rs(A||"#smooth-wrapper")[0]||Av(f),b=d.getAttribute("style")||"",G(),ve.set(d,N?{overflow:"hidden",position:"fixed",height:"100%",width:"100%",top:0,left:0,right:0,bottom:0}:{overflow:"visible",position:"relative",width:"100%",height:"auto",top:"auto",bottom:"auto",left:"auto",right:"auto"}),this):d},this.effects=function(A,x){var F;if(p||(p=[]),!A)return p.slice(0);A=rs(A),A.forEach(function(ht){for(var vt=p.length;vt--;)p[vt].trigger===ht&&p[vt].kill()}),x=x||{};var Y=x,tt=Y.speed,it=Y.lag,yt=Y.effectsPadding,pt=[],lt,Lt;for(lt=0;lt<A.length;lt++)Lt=Ht(A[lt],tt,it,lt,yt),Lt&&pt.push(Lt);return(F=p).push.apply(F,pt),x.refresh!==!1&&ie.refresh(),pt},this.sections=function(A,x){var F;if(m||(m=[]),!A)return m.slice(0);var Y=rs(A).map(function(tt){return ie.create({trigger:tt,start:"top 120%",end:"bottom -20%",onToggle:function(yt){tt.style.opacity=yt.isActive?"1":"0",tt.style.pointerEvents=yt.isActive?"all":"none"}})});return x&&x.add?(F=m).push.apply(F,Y):m=Y.slice(0),Y},this.content(t.content),this.wrapper(t.wrapper),this.render=function(A){return Ut(A||A===0?A:V)},this.getVelocity=function(){return Z.getVelocity(-V)},ie.scrollerProxy(d,{scrollTop:X,scrollHeight:function(){return G()&&ai.scrollHeight},fixedMarkers:t.fixedMarkers!==!1&&!!N,content:f,getBoundingClientRect:function(){return{top:0,left:0,width:nn.innerWidth,height:nn.innerHeight}}}),ie.defaults({scroller:d});var $t=ie.getAll().filter(function(A){return A.scroller===nn||A.scroller===d});$t.forEach(function(A){return A.revert(!0,!0)}),_=ie.create({animation:ve.fromTo(U,{y:function(){return P=0,0}},{y:function(){return P=1,-G()},immediateRender:!1,ease:"none",data:"ScrollSmoother",duration:100,onUpdate:function(){if(P){var x=at;x&&(_t(_),U.y=V),Ut(U.y,x),z(),s&&!S&&s(M)}}}),onRefreshInit:function(x){if(!r.isRefreshing){if(r.isRefreshing=!0,p){var F=ie.getAll().filter(function(tt){return!!tt.pin});p.forEach(function(tt){tt.vars.pinnedContainer||F.forEach(function(it){if(it.pin.contains(tt.trigger)){var yt=tt.vars;yt.pinnedContainer=it.pin,tt.vars=null,tt.init(yt,tt.animation)}})})}var Y=x.getTween();w=Y&&Y._end>Y._dp._time,T=V,U.y=0,N&&(ie.isTouch===1&&(d.style.position="absolute"),d.scrollTop=0,ie.isTouch===1&&(d.style.position="fixed"))}},onRefresh:function(x){x.animation.invalidate(),x.setPositions(x.start,G()/C),w||_t(x),U.y=-I()*C,Ut(U.y),W||(w&&(at=!1),x.animation.progress(ve.utils.clamp(0,1,T/C/-x.end))),w&&(x.progress-=.001,x.update()),r.isRefreshing=!1},id:"ScrollSmoother",scroller:nn,invalidateOnRefresh:!0,start:0,refreshPriority:-9999,end:function(){return G()/C},onScrubComplete:function(){Z.reset(),o&&o(e)},scrub:N||!0}),this.smooth=function(A){return arguments.length&&(N=A||0,C=N&&+t.speed||1,_.scrubDuration(A)),_.getTween()?_.getTween().duration():0},_.getTween()&&(_.getTween().vars.ease=t.ease||xl),this.scrollTrigger=_,t.effects&&this.effects(t.effects===!0?"[data-"+v+"speed], [data-"+v+"lag]":t.effects,{effectsPadding:t.effectsPadding,refresh:!1}),t.sections&&this.sections(t.sections===!0?"[data-section]":t.sections),$t.forEach(function(A){A.vars.scroller=d,A.revert(!1,!0),A.init(A.vars,A.animation)}),this.paused=function(A,x){return arguments.length?(!!S!==A&&(A?(_.getTween()&&_.getTween().pause(),I(-V/C),Z.reset(),D=ie.normalizeScroll(),D&&D.disable(),S=ie.observe({preventDefault:!0,type:"wheel,touch,scroll",debounce:!1,allowClicks:!0,onChangeY:function(){return X(-V)}}),S.nested=Up(Zs,"wheel,touch,scroll",!0,x!==!1)):(S.nested.kill(),S.kill(),S=0,D&&D.enable(),_.progress=(-V/C-_.start)/(_.end-_.start),_t(_))),this):!!S},this.kill=this.revert=function(){e.paused(!1),_t(_),_.kill();for(var A=(p||[]).concat(m||[]),x=A.length;x--;)A[x].kill();ie.scrollerProxy(d),ie.removeEventListener("killAll",It),ie.removeEventListener("refresh",Jt),d.style.cssText=b,f.style.cssText=y;var F=ie.defaults({});F&&F.scroller===d&&ie.defaults({scroller:nn}),e.normalizer&&ie.normalizeScroll(!1),clearInterval(g),Ci=null,ot&&ot.disconnect(),ai.style.removeProperty("height"),nn.removeEventListener("focusin",ct)},this.refresh=function(A,x){return _.refresh(A,x)},c&&(this.normalizer=ie.normalizeScroll(c===!0?{debounce:!0,content:!N&&f}:c)),ie.config(t),"overscrollBehavior"in nn.getComputedStyle(ai)&&ve.set([ai,Zs],{overscrollBehavior:"none"}),"scrollBehavior"in nn.getComputedStyle(ai)&&ve.set([ai,Zs],{scrollBehavior:"auto"}),nn.addEventListener("focusin",ct),g=setInterval(z,250),ss.readyState==="loading"||requestAnimationFrame(function(){return ie.refresh()})}return r.register=function(e){return _l||(ve=e||zp(),kp()&&window.document&&(nn=window,ss=document,Zs=ss.documentElement,ai=ss.body),ve&&(rs=ve.utils.toArray,Fp=ve.utils.clamp,xl=ve.parseEase("expo"),Op=ve.core.context||function(){},ie=ve.core.globals().ScrollTrigger,ve.core.globals("ScrollSmoother",r),ai&&ie&&(Bp=ve.delayedCall(.2,function(){return ie.isRefreshing||Ci&&Ci.refresh()}).pause(),wv=[nn,ss,Zs,ai],Np=ie.core._getVelocityProp,Up=ie.core._inputObserver,r.refresh=ie.refresh,_l=1))),_l},bv(r,[{key:"progress",get:function(){return this.scrollTrigger?this.scrollTrigger.animation._time/100:0}}]),r}();li.version="3.12.5";li.create=function(r){return Ci&&r&&Ci.content()===rs(r.content)[0]?Ci:new li(r)};li.get=function(){return Ci};zp()&&ve.registerPlugin(li);function Vp(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 Dv(r,t,e){return t&&Vp(r.prototype,t),e&&Vp(r,e),r}var rn,Sl,Cv,Bn,xr,vr,$s,Gp,os,aa,Wp,Hi,ci,Xp,Yp=function(){return rn||typeof window<"u"&&(rn=window.gsap)&&rn.registerPlugin&&rn},qp=1,Js=[],ae=[],ui=[],la=Date.now,nh=function(t,e){return e},Rv=function(){var t=aa.core,e=t.bridge||{},n=t._scrollers,i=t._proxies;n.push.apply(n,ae),i.push.apply(i,ui),ae=n,ui=i,nh=function(o,a){return e[o](a)}},Wi=function(t,e){return~ui.indexOf(t)&&ui[ui.indexOf(t)+1][e]},ca=function(t){return!!~Wp.indexOf(t)},yn=function(t,e,n,i,s){return t.addEventListener(e,n,{passive:i!==!1,capture:!!s})},vn=function(t,e,n,i){return t.removeEventListener(e,n,!!i)},vl="scrollLeft",yl="scrollTop",ih=function(){return Hi&&Hi.isPressed||ae.cache++},Ml=function(t,e){var n=function i(s){if(s||s===0){qp&&(Bn.history.scrollRestoration="manual");var o=Hi&&Hi.isPressed;s=i.v=Math.round(s)||(Hi&&Hi.iOS?1:0),t(s),i.cacheID=ae.cache,o&&nh("ss",s)}else(e||ae.cache!==i.cacheID||nh("ref"))&&(i.cacheID=ae.cache,i.v=t());return i.v+i.offset};return n.offset=0,t&&n},un={s:vl,p:"left",p2:"Left",os:"right",os2:"Right",d:"width",d2:"Width",a:"x",sc:Ml(function(r){return arguments.length?Bn.scrollTo(r,ke.sc()):Bn.pageXOffset||xr[vl]||vr[vl]||$s[vl]||0})},ke={s:yl,p:"top",p2:"Top",os:"bottom",os2:"Bottom",d:"height",d2:"Height",a:"y",op:un,sc:Ml(function(r){return arguments.length?Bn.scrollTo(un.sc(),r):Bn.pageYOffset||xr[yl]||vr[yl]||$s[yl]||0})},Sn=function(t,e){return(e&&e._ctx&&e._ctx.selector||rn.utils.toArray)(t)[0]||(typeof t=="string"&&rn.config().nullTargetWarn!==!1?console.warn("Element not found:",t):null)},Gi=function(t,e){var n=e.s,i=e.sc;ca(t)&&(t=xr.scrollingElement||vr);var s=ae.indexOf(t),o=i===ke.sc?1:2;!~s&&(s=ae.push(t)-1),ae[s+o]||yn(t,"scroll",ih);var a=ae[s+o],l=a||(ae[s+o]=Ml(Wi(t,n),!0)||(ca(t)?i:Ml(function(c){return arguments.length?t[n]=c:t[n]})));return l.target=t,a||(l.smooth=rn.getProperty(t,"scrollBehavior")==="smooth"),l},bl=function(t,e,n){var i=t,s=t,o=la(),a=o,l=e||50,c=Math.max(500,l*3),h=function(_,p){var m=la();p||m-o>l?(s=i,i=_,a=o,o=m):n?i+=_:i=s+(_-s)/(m-a)*(o-a)},f=function(){s=i=n?0:i,a=o=0},d=function(_){var p=a,m=s,g=la();return(_||_===0)&&_!==i&&h(_),o===a||g-a>c?0:(i+(n?m:-m))/((n?g:o)-p)*1e3};return{update:h,reset:f,getVelocity:d}},oa=function(t,e){return e&&!t._gsapAllow&&t.preventDefault(),t.changedTouches?t.changedTouches[0]:t},Hp=function(t){var e=Math.max.apply(Math,t),n=Math.min.apply(Math,t);return Math.abs(e)>=Math.abs(n)?e:n},Zp=function(){aa=rn.core.globals().ScrollTrigger,aa&&aa.core&&Rv()},Jp=function(t){return rn=t||Yp(),!Sl&&rn&&typeof document<"u"&&document.body&&(Bn=window,xr=document,vr=xr.documentElement,$s=xr.body,Wp=[Bn,xr,vr,$s],Cv=rn.utils.clamp,Xp=rn.core.context||function(){},os="onpointerenter"in $s?"pointer":"mouse",Gp=Fe.isTouch=Bn.matchMedia&&Bn.matchMedia("(hover: none), (pointer: coarse)").matches?1:"ontouchstart"in Bn||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0?2:0,ci=Fe.eventTypes=("ontouchstart"in vr?"touchstart,touchmove,touchcancel,touchend":"onpointerdown"in vr?"pointerdown,pointermove,pointercancel,pointerup":"mousedown,mousemove,mouseup,mouseup").split(","),setTimeout(function(){return qp=0},500),Zp(),Sl=1),Sl};un.op=ke;ae.cache=0;var Fe=function(){function r(e){this.init(e)}var t=r.prototype;return t.init=function(n){Sl||Jp(rn)||console.warn("Please gsap.registerPlugin(Observer)"),aa||Zp();var i=n.tolerance,s=n.dragMinimum,o=n.type,a=n.target,l=n.lineHeight,c=n.debounce,h=n.preventDefault,f=n.onStop,d=n.onStopDelay,u=n.ignore,_=n.wheelSpeed,p=n.event,m=n.onDragStart,g=n.onDragEnd,b=n.onDrag,y=n.onPress,S=n.onRelease,D=n.onRight,T=n.onLeft,w=n.onUp,P=n.onDown,M=n.onChangeX,v=n.onChangeY,I=n.onChange,N=n.onToggleX,C=n.onToggleY,V=n.onHover,$=n.onHoverEnd,W=n.onMove,Z=n.ignoreCheck,z=n.isNormalizer,U=n.onGestureStart,R=n.onGestureEnd,at=n.onWheel,_t=n.onEnable,Ut=n.onDisable,X=n.onClick,ot=n.scrollSpeed,xt=n.capture,ct=n.allowClicks,Rt=n.lockAxis,kt=n.onLockAxis;this.target=a=Sn(a)||vr,this.vars=n,u&&(u=rn.utils.toArray(u)),i=i||1e-9,s=s||0,_=_||1,ot=ot||1,o=o||"wheel,touch,pointer",c=c!==!1,l||(l=parseFloat(Bn.getComputedStyle($s).lineHeight)||22);var q,Jt,It,Ft,bt,Et,Ht,G=this,$t=0,A=0,x=n.passive||!h,F=Gi(a,un),Y=Gi(a,ke),tt=F(),it=Y(),yt=~o.indexOf("touch")&&!~o.indexOf("pointer")&&ci[0]==="pointerdown",pt=ca(a),lt=a.ownerDocument||xr,Lt=[0,0,0],ht=[0,0,0],vt=0,Yt=function(){return vt=la()},ut=function(j,dt){return(G.event=j)&&u&&~u.indexOf(j.target)||dt&&yt&&j.pointerType!=="touch"||Z&&Z(j,dt)},Tt=function(){G._vx.reset(),G._vy.reset(),Jt.pause(),f&&f(G)},Wt=function(){var j=G.deltaX=Hp(Lt),dt=G.deltaY=Hp(ht),et=Math.abs(j)>=i,wt=Math.abs(dt)>=i;I&&(et||wt)&&I(G,j,dt,Lt,ht),et&&(D&&G.deltaX>0&&D(G),T&&G.deltaX<0&&T(G),M&&M(G),N&&G.deltaX<0!=$t<0&&N(G),$t=G.deltaX,Lt[0]=Lt[1]=Lt[2]=0),wt&&(P&&G.deltaY>0&&P(G),w&&G.deltaY<0&&w(G),v&&v(G),C&&G.deltaY<0!=A<0&&C(G),A=G.deltaY,ht[0]=ht[1]=ht[2]=0),(Ft||It)&&(W&&W(G),It&&(b(G),It=!1),Ft=!1),Et&&!(Et=!1)&&kt&&kt(G),bt&&(at(G),bt=!1),q=0},qt=function(j,dt,et){Lt[et]+=j,ht[et]+=dt,G._vx.update(j),G._vy.update(dt),c?q||(q=requestAnimationFrame(Wt)):Wt()},ce=function(j,dt){Rt&&!Ht&&(G.axis=Ht=Math.abs(j)>Math.abs(dt)?"x":"y",Et=!0),Ht!=="y"&&(Lt[2]+=j,G._vx.update(j,!0)),Ht!=="x"&&(ht[2]+=dt,G._vy.update(dt,!0)),c?q||(q=requestAnimationFrame(Wt)):Wt()},Zt=function(j){if(!ut(j,1)){j=oa(j,h);var dt=j.clientX,et=j.clientY,wt=dt-G.x,ft=et-G.y,Dt=G.isDragging;G.x=dt,G.y=et,(Dt||Math.abs(G.startX-dt)>=s||Math.abs(G.startY-et)>=s)&&(b&&(It=!0),Dt||(G.isDragging=!0),ce(wt,ft),Dt||m&&m(G))}},k=G.onPress=function(O){ut(O,1)||O&&O.button||(G.axis=Ht=null,Jt.pause(),G.isPressed=!0,O=oa(O),$t=A=0,G.startX=G.x=O.clientX,G.startY=G.y=O.clientY,G._vx.reset(),G._vy.reset(),yn(z?a:lt,ci[1],Zt,x,!0),G.deltaX=G.deltaY=0,y&&y(G))},Q=G.onRelease=function(O){if(!ut(O,1)){vn(z?a:lt,ci[1],Zt,!0);var j=!isNaN(G.y-G.startY),dt=G.isDragging,et=dt&&(Math.abs(G.x-G.startX)>3||Math.abs(G.y-G.startY)>3),wt=oa(O);!et&&j&&(G._vx.reset(),G._vy.reset(),h&&ct&&rn.delayedCall(.08,function(){if(la()-vt>300&&!O.defaultPrevented){if(O.target.click)O.target.click();else if(lt.createEvent){var ft=lt.createEvent("MouseEvents");ft.initMouseEvent("click",!0,!0,Bn,1,wt.screenX,wt.screenY,wt.clientX,wt.clientY,!1,!1,!1,!1,0,null),O.target.dispatchEvent(ft)}}})),G.isDragging=G.isGesturing=G.isPressed=!1,f&&dt&&!z&&Jt.restart(!0),g&&dt&&g(G),S&&S(G,et)}},st=function(j){return j.touches&&j.touches.length>1&&(G.isGesturing=!0)&&U(j,G.isDragging)},mt=function(){return(G.isGesturing=!1)||R(G)},gt=function(j){if(!ut(j)){var dt=F(),et=Y();qt((dt-tt)*ot,(et-it)*ot,1),tt=dt,it=et,f&&Jt.restart(!0)}},Bt=function(j){if(!ut(j)){j=oa(j,h),at&&(bt=!0);var dt=(j.deltaMode===1?l:j.deltaMode===2?Bn.innerHeight:1)*_;qt(j.deltaX*dt,j.deltaY*dt,0),f&&!z&&Jt.restart(!0)}},ee=function(j){if(!ut(j)){var dt=j.clientX,et=j.clientY,wt=dt-G.x,ft=et-G.y;G.x=dt,G.y=et,Ft=!0,f&&Jt.restart(!0),(wt||ft)&&ce(wt,ft)}},Mt=function(j){G.event=j,V(G)},L=function(j){G.event=j,$(G)},rt=function(j){return ut(j)||oa(j,h)&&X(G)};Jt=G._dc=rn.delayedCall(d||.25,Tt).pause(),G.deltaX=G.deltaY=0,G._vx=bl(0,50,!0),G._vy=bl(0,50,!0),G.scrollX=F,G.scrollY=Y,G.isDragging=G.isGesturing=G.isPressed=!1,Xp(this),G.enable=function(O){return G.isEnabled||(yn(pt?lt:a,"scroll",ih),o.indexOf("scroll")>=0&&yn(pt?lt:a,"scroll",gt,x,xt),o.indexOf("wheel")>=0&&yn(a,"wheel",Bt,x,xt),(o.indexOf("touch")>=0&&Gp||o.indexOf("pointer")>=0)&&(yn(a,ci[0],k,x,xt),yn(lt,ci[2],Q),yn(lt,ci[3],Q),ct&&yn(a,"click",Yt,!0,!0),X&&yn(a,"click",rt),U&&yn(lt,"gesturestart",st),R&&yn(lt,"gestureend",mt),V&&yn(a,os+"enter",Mt),$&&yn(a,os+"leave",L),W&&yn(a,os+"move",ee)),G.isEnabled=!0,O&&O.type&&k(O),_t&&_t(G)),G},G.disable=function(){G.isEnabled&&(Js.filter(function(O){return O!==G&&ca(O.target)}).length||vn(pt?lt:a,"scroll",ih),G.isPressed&&(G._vx.reset(),G._vy.reset(),vn(z?a:lt,ci[1],Zt,!0)),vn(pt?lt:a,"scroll",gt,xt),vn(a,"wheel",Bt,xt),vn(a,ci[0],k,xt),vn(lt,ci[2],Q),vn(lt,ci[3],Q),vn(a,"click",Yt,!0),vn(a,"click",rt),vn(lt,"gesturestart",st),vn(lt,"gestureend",mt),vn(a,os+"enter",Mt),vn(a,os+"leave",L),vn(a,os+"move",ee),G.isEnabled=G.isPressed=G.isDragging=!1,Ut&&Ut(G))},G.kill=G.revert=function(){G.disable();var O=Js.indexOf(G);O>=0&&Js.splice(O,1),Hi===G&&(Hi=0)},Js.push(G),z&&ca(a)&&(Hi=G),G.enable(p)},Dv(r,[{key:"velocityX",get:function(){return this._vx.getVelocity()}},{key:"velocityY",get:function(){return this._vy.getVelocity()}}]),r}();Fe.version="3.12.5";Fe.create=function(r){return new Fe(r)};Fe.register=Jp;Fe.getAll=function(){return Js.slice()};Fe.getById=function(r){return Js.filter(function(t){return t.vars.id===r})[0]};Yp()&&rn.registerPlugin(Fe);var Ot,Qs,de,Pe,hi,Ee,dm,kl,Ma,ga,ha,wl,hn,Gl,hh,bn,$p,Kp,to,pm,rh,mm,Mn,fh,gm,_m,yr,dh,xh,eo,vh,zl,ph,sh,El=1,fn=Date.now,oh=fn(),Kn=0,fa=0,jp=function(t,e,n){var i=zn(t)&&(t.substr(0,6)==="clamp("||t.indexOf("max")>-1);return n["_"+e+"Clamp"]=i,i?t.substr(6,t.length-7):t},Qp=function(t,e){return e&&(!zn(t)||t.substr(0,6)!=="clamp(")?"clamp("+t+")":t},Pv=function r(){return fa&&requestAnimationFrame(r)},tm=function(){return Gl=1},em=function(){return Gl=0},Ri=function(t){return t},da=function(t){return Math.round(t*1e5)/1e5||0},xm=function(){return typeof window<"u"},vm=function(){return Ot||xm()&&(Ot=window.gsap)&&Ot.registerPlugin&&Ot},fs=function(t){return!!~dm.indexOf(t)},ym=function(t){return(t==="Height"?vh:de["inner"+t])||hi["client"+t]||Ee["client"+t]},Sm=function(t){return Wi(t,"getBoundingClientRect")||(fs(t)?function(){return Bl.width=de.innerWidth,Bl.height=vh,Bl}:function(){return Xi(t)})},Iv=function(t,e,n){var i=n.d,s=n.d2,o=n.a;return(o=Wi(t,"getBoundingClientRect"))?function(){return o()[i]}:function(){return(e?ym(s):t["client"+s])||0}},Lv=function(t,e){return!e||~ui.indexOf(t)?Sm(t):function(){return Bl}},Pi=function(t,e){var n=e.s,i=e.d2,s=e.d,o=e.a;return Math.max(0,(n="scroll"+i)&&(o=Wi(t,n))?o()-Sm(t)()[s]:fs(t)?(hi[n]||Ee[n])-ym(i):t[n]-t["offset"+i])},Tl=function(t,e){for(var n=0;n<to.length;n+=3)(!e||~e.indexOf(to[n+1]))&&t(to[n],to[n+1],to[n+2])},zn=function(t){return typeof t=="string"},En=function(t){return typeof t=="function"},pa=function(t){return typeof t=="number"},as=function(t){return typeof t=="object"},ua=function(t,e,n){return t&&t.progress(e?0:1)&&n&&t.pause()},ah=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)}},Ks=Math.abs,Mm="left",bm="top",yh="right",Sh="bottom",cs="width",us="height",_a="Right",xa="Left",va="Top",ya="Bottom",ze="padding",Jn="margin",io="Width",Mh="Height",We="px",$n=function(t){return de.getComputedStyle(t)},Fv=function(t){var e=$n(t).position;t.style.position=e==="absolute"||e==="fixed"?e:"relative"},nm=function(t,e){for(var n in e)n in t||(t[n]=e[n]);return t},Xi=function(t,e){var n=e&&$n(t)[hh]!=="matrix(1, 0, 0, 1, 0, 0)"&&Ot.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},Vl=function(t,e){var n=e.d2;return t["offset"+n]||t["client"+n]||0},wm=function(t){var e=[],n=t.labels,i=t.duration(),s;for(s in n)e.push(n[s]/i);return e},Nv=function(t){return function(e){return Ot.utils.snap(wm(t),e)}},bh=function(t){var e=Ot.utils.snap(t),n=Array.isArray(t)&&t.slice(0).sort(function(i,s){return i-s});return n?function(i,s,o){o===void 0&&(o=.001);var a;if(!s)return e(i);if(s>0){for(i-=o,a=0;a<n.length;a++)if(n[a]>=i)return n[a];return n[a-1]}else for(a=n.length,i+=o;a--;)if(n[a]<=i)return n[a];return n[0]}:function(i,s,o){o===void 0&&(o=.001);var a=e(i);return!s||Math.abs(a-i)<o||a-i<0==s<0?a:e(s<0?i-t:i+t)}},Uv=function(t){return function(e,n){return bh(wm(t))(e,n.direction)}},Al=function(t,e,n,i){return n.split(",").forEach(function(s){return t(e,s,i)})},Ke=function(t,e,n,i,s){return t.addEventListener(e,n,{passive:!i,capture:!!s})},$e=function(t,e,n,i){return t.removeEventListener(e,n,!!i)},Dl=function(t,e,n){n=n&&n.wheelHandler,n&&(t(e,"wheel",n),t(e,"touchmove",n))},im={startColor:"green",endColor:"red",indent:0,fontSize:"16px",fontWeight:"normal"},Cl={toggleActions:"play",anticipatePin:0},Hl={top:0,left:0,center:.5,bottom:1,right:1},Fl=function(t,e){if(zn(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 Hl?Hl[t]*e:~t.indexOf("%")?parseFloat(t)*e/100:parseFloat(t)||0)}return t},Rl=function(t,e,n,i,s,o,a,l){var c=s.startColor,h=s.endColor,f=s.fontSize,d=s.indent,u=s.fontWeight,_=Pe.createElement("div"),p=fs(n)||Wi(n,"pinType")==="fixed",m=t.indexOf("scroller")!==-1,g=p?Ee:n,b=t.indexOf("start")!==-1,y=b?c:h,S="border-color:"+y+";font-size:"+f+";color:"+y+";font-weight:"+u+";pointer-events:none;white-space:nowrap;font-family:sans-serif,Arial;z-index:1000;padding:4px 8px;border-width:0;border-style:solid;";return S+="position:"+((m||l)&&p?"fixed;":"absolute;"),(m||l||!p)&&(S+=(i===ke?yh:Sh)+":"+(o+parseFloat(d))+"px;"),a&&(S+="box-sizing:border-box;text-align:left;width:"+a.offsetWidth+"px;"),_._isStart=b,_.setAttribute("class","gsap-marker-"+t+(e?" marker-"+e:"")),_.style.cssText=S,_.innerText=e||e===0?t+"-"+e:t,g.children[0]?g.insertBefore(_,g.children[0]):g.appendChild(_),_._offset=_["offset"+i.op.d2],Nl(_,0,i,b),_},Nl=function(t,e,n,i){var s={display:"block"},o=n[i?"os2":"p2"],a=n[i?"p2":"os2"];t._isFlipped=i,s[n.a+"Percent"]=i?-100:0,s[n.a]=i?"1px":0,s["border"+o+io]=1,s["border"+a+io]=0,s[n.p]=e+"px",Ot.set(t,s)},le=[],mh={},ba,rm=function(){return fn()-Kn>34&&(ba||(ba=requestAnimationFrame(Yi)))},js=function(){(!Mn||!Mn.isPressed||Mn.startX>Ee.clientWidth)&&(ae.cache++,Mn?ba||(ba=requestAnimationFrame(Yi)):Yi(),Kn||ps("scrollStart"),Kn=fn())},lh=function(){_m=de.innerWidth,gm=de.innerHeight},ma=function(){ae.cache++,!hn&&!mm&&!Pe.fullscreenElement&&!Pe.webkitFullscreenElement&&(!fh||_m!==de.innerWidth||Math.abs(de.innerHeight-gm)>de.innerHeight*.25)&&kl.restart(!0)},ds={},Ov=[],Em=function r(){return $e(te,"scrollEnd",r)||ls(!0)},ps=function(t){return ds[t]&&ds[t].map(function(e){return e()})||Ov},kn=[],Tm=function(t){for(var e=0;e<kn.length;e+=5)(!t||kn[e+4]&&kn[e+4].query===t)&&(kn[e].style.cssText=kn[e+1],kn[e].getBBox&&kn[e].setAttribute("transform",kn[e+2]||""),kn[e+3].uncache=1)},wh=function(t,e){var n;for(bn=0;bn<le.length;bn++)n=le[bn],n&&(!e||n._ctx===e)&&(t?n.kill(1):n.revert(!0,!0));zl=!0,e&&Tm(e),e||ps("revert")},Am=function(t,e){ae.cache++,(e||!wn)&&ae.forEach(function(n){return En(n)&&n.cacheID++&&(n.rec=0)}),zn(t)&&(de.history.scrollRestoration=xh=t)},wn,hs=0,sm,Bv=function(){if(sm!==hs){var t=sm=hs;requestAnimationFrame(function(){return t===hs&&ls(!0)})}},Dm=function(){Ee.appendChild(eo),vh=!Mn&&eo.offsetHeight||de.innerHeight,Ee.removeChild(eo)},om=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"})},ls=function(t,e){if(Kn&&!t&&!zl){Ke(te,"scrollEnd",Em);return}Dm(),wn=te.isRefreshing=!0,ae.forEach(function(i){return En(i)&&++i.cacheID&&(i.rec=i())});var n=ps("refreshInit");pm&&te.sort(),e||wh(),ae.forEach(function(i){En(i)&&(i.smooth&&(i.target.style.scrollBehavior="auto"),i(0))}),le.slice(0).forEach(function(i){return i.refresh()}),zl=!1,le.forEach(function(i){if(i._subPinOffset&&i.pin){var s=i.vars.horizontal?"offsetWidth":"offsetHeight",o=i.pin[s];i.revert(!0,1),i.adjustPinSpacing(i.pin[s]-o),i.refresh()}}),ph=1,om(!0),le.forEach(function(i){var s=Pi(i.scroller,i._dir),o=i.vars.end==="max"||i._endClamp&&i.end>s,a=i._startClamp&&i.start>=s;(o||a)&&i.setPositions(a?s-1:i.start,o?Math.max(a?s:i.start+1,s):i.end,!0)}),om(!1),ph=0,n.forEach(function(i){return i&&i.render&&i.render(-1)}),ae.forEach(function(i){En(i)&&(i.smooth&&requestAnimationFrame(function(){return i.target.style.scrollBehavior="smooth"}),i.rec&&i(i.rec))}),Am(xh,1),kl.pause(),hs++,wn=2,Yi(2),le.forEach(function(i){return En(i.vars.onRefresh)&&i.vars.onRefresh(i)}),wn=te.isRefreshing=!1,ps("refresh")},gh=0,Ul=1,Sa,Yi=function(t){if(t===2||!wn&&!zl){te.isUpdating=!0,Sa&&Sa.update(0);var e=le.length,n=fn(),i=n-oh>=50,s=e&&le[0].scroll();if(Ul=gh>s?-1:1,wn||(gh=s),i&&(Kn&&!Gl&&n-Kn>200&&(Kn=0,ps("scrollEnd")),ha=oh,oh=n),Ul<0){for(bn=e;bn-- >0;)le[bn]&&le[bn].update(0,i);Ul=1}else for(bn=0;bn<e;bn++)le[bn]&&le[bn].update(0,i);te.isUpdating=!1}ba=0},_h=[Mm,bm,Sh,yh,Jn+ya,Jn+_a,Jn+va,Jn+xa,"display","flexShrink","float","zIndex","gridColumnStart","gridColumnEnd","gridRowStart","gridRowEnd","gridArea","justifySelf","alignSelf","placeSelf","order"],Ol=_h.concat([cs,us,"boxSizing","max"+io,"max"+Mh,"position",Jn,ze,ze+va,ze+_a,ze+ya,ze+xa]),kv=function(t,e,n){no(n);var i=t._gsap;if(i.spacerIsNative)no(i.spacerState);else if(t._gsap.swappedIn){var s=e.parentNode;s&&(s.insertBefore(t,e),s.removeChild(e))}t._gsap.swappedIn=!1},ch=function(t,e,n,i){if(!t._gsap.swappedIn){for(var s=_h.length,o=e.style,a=t.style,l;s--;)l=_h[s],o[l]=n[l];o.position=n.position==="absolute"?"absolute":"relative",n.display==="inline"&&(o.display="inline-block"),a[Sh]=a[yh]="auto",o.flexBasis=n.flexBasis||"auto",o.overflow="visible",o.boxSizing="border-box",o[cs]=Vl(t,un)+We,o[us]=Vl(t,ke)+We,o[ze]=a[Jn]=a[bm]=a[Mm]="0",no(i),a[cs]=a["max"+io]=n[cs],a[us]=a["max"+Mh]=n[us],a[ze]=n[ze],t.parentNode!==e&&(t.parentNode.insertBefore(e,t),e.appendChild(t)),t._gsap.swappedIn=!0}},zv=/([A-Z])/g,no=function(t){if(t){var e=t.t.style,n=t.length,i=0,s,o;for((t.t._gsap||Ot.core.getCache(t.t)).uncache=1;i<n;i+=2)o=t[i+1],s=t[i],o?e[s]=o:e[s]&&e.removeProperty(s.replace(zv,"-$1").toLowerCase())}},Pl=function(t){for(var e=Ol.length,n=t.style,i=[],s=0;s<e;s++)i.push(Ol[s],n[Ol[s]]);return i.t=t,i},Vv=function(t,e,n){for(var i=[],s=t.length,o=n?8:0,a;o<s;o+=2)a=t[o],i.push(a,a in e?e[a]:t[o+1]);return i.t=t.t,i},Bl={left:0,top:0},am=function(t,e,n,i,s,o,a,l,c,h,f,d,u,_){En(t)&&(t=t(l)),zn(t)&&t.substr(0,3)==="max"&&(t=d+(t.charAt(4)==="="?Fl("0"+t.substr(3),n):0));var p=u?u.time():0,m,g,b;if(u&&u.seek(0),isNaN(t)||(t=+t),pa(t))u&&(t=Ot.utils.mapRange(u.scrollTrigger.start,u.scrollTrigger.end,0,d,t)),a&&Nl(a,n,i,!0);else{En(e)&&(e=e(l));var y=(t||"0").split(" "),S,D,T,w;b=Sn(e,l)||Ee,S=Xi(b)||{},(!S||!S.left&&!S.top)&&$n(b).display==="none"&&(w=b.style.display,b.style.display="block",S=Xi(b),w?b.style.display=w:b.style.removeProperty("display")),D=Fl(y[0],S[i.d]),T=Fl(y[1]||"0",n),t=S[i.p]-c[i.p]-h+D+s-T,a&&Nl(a,T,i,n-T<20||a._isStart&&T>20),n-=n-T}if(_&&(l[_]=t||-.001,t<0&&(t=0)),o){var P=t+n,M=o._isStart;m="scroll"+i.d2,Nl(o,P,i,M&&P>20||!M&&(f?Math.max(Ee[m],hi[m]):o.parentNode[m])<=P+1),f&&(c=Xi(a),f&&(o.style[i.op.p]=c[i.op.p]-i.op.m-o._offset+We))}return u&&b&&(m=Xi(b),u.seek(d),g=Xi(b),u._caScrollDist=m[i.p]-g[i.p],t=t/u._caScrollDist*d),u&&u.seek(p),u?t:Math.round(t)},Hv=/(webkit|moz|length|cssText|inset)/i,lm=function(t,e,n,i){if(t.parentNode!==e){var s=t.style,o,a;if(e===Ee){t._stOrig=s.cssText,a=$n(t);for(o in a)!+o&&!Hv.test(o)&&a[o]&&typeof s[o]=="string"&&o!=="0"&&(s[o]=a[o]);s.top=n,s.left=i}else s.cssText=t._stOrig;Ot.core.getCache(t).uncache=1,e.appendChild(t)}},Cm=function(t,e,n){var i=e,s=i;return function(o){var a=Math.round(t());return a!==i&&a!==s&&Math.abs(a-i)>3&&Math.abs(a-s)>3&&(o=a,n&&n()),s=i,i=o,o}},Il=function(t,e,n){var i={};i[e.p]="+="+n,Ot.set(t,i)},cm=function(t,e){var n=Gi(t,e),i="_scroll"+e.p2,s=function o(a,l,c,h,f){var d=o.tween,u=l.onComplete,_={};c=c||n();var p=Cm(n,c,function(){d.kill(),o.tween=0});return f=h&&f||0,h=h||a-c,d&&d.kill(),l[i]=a,l.inherit=!1,l.modifiers=_,_[i]=function(){return p(c+h*d.ratio+f*d.ratio*d.ratio)},l.onUpdate=function(){ae.cache++,o.tween&&Yi()},l.onComplete=function(){o.tween=0,u&&u.call(d)},d=o.tween=Ot.to(t,l),d};return t[i]=n,n.wheelHandler=function(){return s.tween&&s.tween.kill()&&(s.tween=0)},Ke(t,"wheel",n.wheelHandler),te.isTouch&&Ke(t,"touchmove",n.wheelHandler),s},te=function(){function r(e,n){Qs||r.register(Ot)||console.warn("Please gsap.registerPlugin(ScrollTrigger)"),dh(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),!fa){this.update=this.refresh=this.kill=Ri;return}n=nm(zn(n)||pa(n)||n.nodeType?{trigger:n}:n,Cl);var s=n,o=s.onUpdate,a=s.toggleClass,l=s.id,c=s.onToggle,h=s.onRefresh,f=s.scrub,d=s.trigger,u=s.pin,_=s.pinSpacing,p=s.invalidateOnRefresh,m=s.anticipatePin,g=s.onScrubComplete,b=s.onSnapComplete,y=s.once,S=s.snap,D=s.pinReparent,T=s.pinSpacer,w=s.containerAnimation,P=s.fastScrollEnd,M=s.preventOverlaps,v=n.horizontal||n.containerAnimation&&n.horizontal!==!1?un:ke,I=!f&&f!==0,N=Sn(n.scroller||de),C=Ot.core.getCache(N),V=fs(N),$=("pinType"in n?n.pinType:Wi(N,"pinType")||V&&"fixed")==="fixed",W=[n.onEnter,n.onLeave,n.onEnterBack,n.onLeaveBack],Z=I&&n.toggleActions.split(" "),z="markers"in n?n.markers:Cl.markers,U=V?0:parseFloat($n(N)["border"+v.p2+io])||0,R=this,at=n.onRefreshInit&&function(){return n.onRefreshInit(R)},_t=Iv(N,V,v),Ut=Lv(N,V),X=0,ot=0,xt=0,ct=Gi(N,v),Rt,kt,q,Jt,It,Ft,bt,Et,Ht,G,$t,A,x,F,Y,tt,it,yt,pt,lt,Lt,ht,vt,Yt,ut,Tt,Wt,qt,ce,Zt,k,Q,st,mt,gt,Bt,ee,Mt,L;if(R._startClamp=R._endClamp=!1,R._dir=v,m*=45,R.scroller=N,R.scroll=w?w.time.bind(w):ct,Jt=ct(),R.vars=n,i=i||n.animation,"refreshPriority"in n&&(pm=1,n.refreshPriority===-9999&&(Sa=R)),C.tweenScroll=C.tweenScroll||{top:cm(N,ke),left:cm(N,un)},R.tweenTo=Rt=C.tweenScroll[v.p],R.scrubDuration=function(et){st=pa(et)&&et,st?Q?Q.duration(et):Q=Ot.to(i,{ease:"expo",totalProgress:"+=0",inherit:!1,duration:st,paused:!0,onComplete:function(){return g&&g(R)}}):(Q&&Q.progress(1).kill(),Q=0)},i&&(i.vars.lazy=!1,i._initted&&!R.isReverted||i.vars.immediateRender!==!1&&n.immediateRender!==!1&&i.duration()&&i.render(0,!0,!0),R.animation=i.pause(),i.scrollTrigger=R,R.scrubDuration(f),Zt=0,l||(l=i.vars.id)),S&&((!as(S)||S.push)&&(S={snapTo:S}),"scrollBehavior"in Ee.style&&Ot.set(V?[Ee,hi]:N,{scrollBehavior:"auto"}),ae.forEach(function(et){return En(et)&&et.target===(V?Pe.scrollingElement||hi:N)&&(et.smooth=!1)}),q=En(S.snapTo)?S.snapTo:S.snapTo==="labels"?Nv(i):S.snapTo==="labelsDirectional"?Uv(i):S.directional!==!1?function(et,wt){return bh(S.snapTo)(et,fn()-ot<500?0:wt.direction)}:Ot.utils.snap(S.snapTo),mt=S.duration||{min:.1,max:2},mt=as(mt)?ga(mt.min,mt.max):ga(mt,mt),gt=Ot.delayedCall(S.delay||st/2||.1,function(){var et=ct(),wt=fn()-ot<500,ft=Rt.tween;if((wt||Math.abs(R.getVelocity())<10)&&!ft&&!Gl&&X!==et){var Dt=(et-Ft)/F,zt=i&&!I?i.totalProgress():Dt,Nt=wt?0:(zt-k)/(fn()-ha)*1e3||0,Qt=Ot.utils.clamp(-Dt,1-Dt,Ks(Nt/2)*Nt/.185),he=Dt+(S.inertia===!1?0:Qt),me,oe,E=S,B=E.onStart,H=E.onInterrupt,K=E.onComplete;if(me=q(he,R),pa(me)||(me=he),oe=Math.round(Ft+me*F),et<=bt&&et>=Ft&&oe!==et){if(ft&&!ft._initted&&ft.data<=Ks(oe-et))return;S.inertia===!1&&(Qt=me-Dt),Rt(oe,{duration:mt(Ks(Math.max(Ks(he-zt),Ks(me-zt))*.185/Nt/.05||0)),ease:S.ease||"power3",data:Ks(oe-et),onInterrupt:function(){return gt.restart(!0)&&H&&H(R)},onComplete:function(){R.update(),X=ct(),i&&(Q?Q.resetTo("totalProgress",me,i._tTime/i._tDur):i.progress(me)),Zt=k=i&&!I?i.totalProgress():R.progress,b&&b(R),K&&K(R)}},et,Qt*F,oe-et-Qt*F),B&&B(R,Rt.tween)}}else R.isActive&&X!==et&>.restart(!0)}).pause()),l&&(mh[l]=R),d=R.trigger=Sn(d||u!==!0&&u),L=d&&d._gsap&&d._gsap.stRevert,L&&(L=L(R)),u=u===!0?d:Sn(u),zn(a)&&(a={targets:d,className:a}),u&&(_===!1||_===Jn||(_=!_&&u.parentNode&&u.parentNode.style&&$n(u.parentNode).display==="flex"?!1:ze),R.pin=u,kt=Ot.core.getCache(u),kt.spacer?Y=kt.pinState:(T&&(T=Sn(T),T&&!T.nodeType&&(T=T.current||T.nativeElement),kt.spacerIsNative=!!T,T&&(kt.spacerState=Pl(T))),kt.spacer=yt=T||Pe.createElement("div"),yt.classList.add("pin-spacer"),l&&yt.classList.add("pin-spacer-"+l),kt.pinState=Y=Pl(u)),n.force3D!==!1&&Ot.set(u,{force3D:!0}),R.spacer=yt=kt.spacer,ce=$n(u),Yt=ce[_+v.os2],lt=Ot.getProperty(u),Lt=Ot.quickSetter(u,v.a,We),ch(u,yt,ce),it=Pl(u)),z){A=as(z)?nm(z,im):im,G=Rl("scroller-start",l,N,v,A,0),$t=Rl("scroller-end",l,N,v,A,0,G),pt=G["offset"+v.op.d2];var rt=Sn(Wi(N,"content")||N);Et=this.markerStart=Rl("start",l,rt,v,A,pt,0,w),Ht=this.markerEnd=Rl("end",l,rt,v,A,pt,0,w),w&&(Mt=Ot.quickSetter([Et,Ht],v.a,We)),!$&&!(ui.length&&Wi(N,"fixedMarkers")===!0)&&(Fv(V?Ee:N),Ot.set([G,$t],{force3D:!0}),Tt=Ot.quickSetter(G,v.a,We),qt=Ot.quickSetter($t,v.a,We))}if(w){var O=w.vars.onUpdate,j=w.vars.onUpdateParams;w.eventCallback("onUpdate",function(){R.update(0,0,1),O&&O.apply(w,j||[])})}if(R.previous=function(){return le[le.indexOf(R)-1]},R.next=function(){return le[le.indexOf(R)+1]},R.revert=function(et,wt){if(!wt)return R.kill(!0);var ft=et!==!1||!R.enabled,Dt=hn;ft!==R.isReverted&&(ft&&(Bt=Math.max(ct(),R.scroll.rec||0),xt=R.progress,ee=i&&i.progress()),Et&&[Et,Ht,G,$t].forEach(function(zt){return zt.style.display=ft?"none":"block"}),ft&&(hn=R,R.update(ft)),u&&(!D||!R.isActive)&&(ft?kv(u,yt,Y):ch(u,yt,$n(u),ut)),ft||R.update(ft),hn=Dt,R.isReverted=ft)},R.refresh=function(et,wt,ft,Dt){if(!((hn||!R.enabled)&&!wt)){if(u&&et&&Kn){Ke(r,"scrollEnd",Em);return}!wn&&at&&at(R),hn=R,Rt.tween&&!ft&&(Rt.tween.kill(),Rt.tween=0),Q&&Q.pause(),p&&i&&i.revert({kill:!1}).invalidate(),R.isReverted||R.revert(!0,!0),R._subPinOffset=!1;var zt=_t(),Nt=Ut(),Qt=w?w.duration():Pi(N,v),he=F<=.01,me=0,oe=Dt||0,E=as(ft)?ft.end:n.end,B=n.endTrigger||d,H=as(ft)?ft.start:n.start||(n.start===0||!d?0:u?"0 0":"0 100%"),K=R.pinnedContainer=n.pinnedContainer&&Sn(n.pinnedContainer,R),J=d&&Math.max(0,le.indexOf(R))||0,St=J,At,Pt,Xt,jt,Gt,Vt,xe,Be,sn,gn,ne,Kt,bi;for(z&&as(ft)&&(Kt=Ot.getProperty(G,v.p),bi=Ot.getProperty($t,v.p));St--;)Vt=le[St],Vt.end||Vt.refresh(0,1)||(hn=R),xe=Vt.pin,xe&&(xe===d||xe===u||xe===K)&&!Vt.isReverted&&(gn||(gn=[]),gn.unshift(Vt),Vt.revert(!0,!0)),Vt!==le[St]&&(J--,St--);for(En(H)&&(H=H(R)),H=jp(H,"start",R),Ft=am(H,d,zt,v,ct(),Et,G,R,Nt,U,$,Qt,w,R._startClamp&&"_startClamp")||(u?-.001:0),En(E)&&(E=E(R)),zn(E)&&!E.indexOf("+=")&&(~E.indexOf(" ")?E=(zn(H)?H.split(" ")[0]:"")+E:(me=Fl(E.substr(2),zt),E=zn(H)?H:(w?Ot.utils.mapRange(0,w.duration(),w.scrollTrigger.start,w.scrollTrigger.end,Ft):Ft)+me,B=d)),E=jp(E,"end",R),bt=Math.max(Ft,am(E||(B?"100% 0":Qt),B,zt,v,ct()+me,Ht,$t,R,Nt,U,$,Qt,w,R._endClamp&&"_endClamp"))||-.001,me=0,St=J;St--;)Vt=le[St],xe=Vt.pin,xe&&Vt.start-Vt._pinPush<=Ft&&!w&&Vt.end>0&&(At=Vt.end-(R._startClamp?Math.max(0,Vt.start):Vt.start),(xe===d&&Vt.start-Vt._pinPush<Ft||xe===K)&&isNaN(H)&&(me+=At*(1-Vt.progress)),xe===u&&(oe+=At));if(Ft+=me,bt+=me,R._startClamp&&(R._startClamp+=me),R._endClamp&&!wn&&(R._endClamp=bt||-.001,bt=Math.min(bt,Pi(N,v))),F=bt-Ft||(Ft-=.01)&&.001,he&&(xt=Ot.utils.clamp(0,1,Ot.utils.normalize(Ft,bt,Bt))),R._pinPush=oe,Et&&me&&(At={},At[v.a]="+="+me,K&&(At[v.p]="-="+ct()),Ot.set([Et,Ht],At)),u&&!(ph&&R.end>=Pi(N,v)))At=$n(u),jt=v===ke,Xt=ct(),ht=parseFloat(lt(v.a))+oe,!Qt&&bt>1&&(ne=(V?Pe.scrollingElement||hi:N).style,ne={style:ne,value:ne["overflow"+v.a.toUpperCase()]},V&&$n(Ee)["overflow"+v.a.toUpperCase()]!=="scroll"&&(ne.style["overflow"+v.a.toUpperCase()]="scroll")),ch(u,yt,At),it=Pl(u),Pt=Xi(u,!0),Be=$&&Gi(N,jt?un:ke)(),_?(ut=[_+v.os2,F+oe+We],ut.t=yt,St=_===ze?Vl(u,v)+F+oe:0,St&&(ut.push(v.d,St+We),yt.style.flexBasis!=="auto"&&(yt.style.flexBasis=St+We)),no(ut),K&&le.forEach(function(ye){ye.pin===K&&ye.vars.pinSpacing!==!1&&(ye._subPinOffset=!0)}),$&&ct(Bt)):(St=Vl(u,v),St&&yt.style.flexBasis!=="auto"&&(yt.style.flexBasis=St+We)),$&&(Gt={top:Pt.top+(jt?Xt-Ft:Be)+We,left:Pt.left+(jt?Be:Xt-Ft)+We,boxSizing:"border-box",position:"fixed"},Gt[cs]=Gt["max"+io]=Math.ceil(Pt.width)+We,Gt[us]=Gt["max"+Mh]=Math.ceil(Pt.height)+We,Gt[Jn]=Gt[Jn+va]=Gt[Jn+_a]=Gt[Jn+ya]=Gt[Jn+xa]="0",Gt[ze]=At[ze],Gt[ze+va]=At[ze+va],Gt[ze+_a]=At[ze+_a],Gt[ze+ya]=At[ze+ya],Gt[ze+xa]=At[ze+xa],tt=Vv(Y,Gt,D),wn&&ct(0)),i?(sn=i._initted,rh(1),i.render(i.duration(),!0,!0),vt=lt(v.a)-ht+F+oe,Wt=Math.abs(F-vt)>1,$&&Wt&&tt.splice(tt.length-2,2),i.render(0,!0,!0),sn||i.invalidate(!0),i.parent||i.totalTime(i.totalTime()),rh(0)):vt=F,ne&&(ne.value?ne.style["overflow"+v.a.toUpperCase()]=ne.value:ne.style.removeProperty("overflow-"+v.a));else if(d&&ct()&&!w)for(Pt=d.parentNode;Pt&&Pt!==Ee;)Pt._pinOffset&&(Ft-=Pt._pinOffset,bt-=Pt._pinOffset),Pt=Pt.parentNode;gn&&gn.forEach(function(ye){return ye.revert(!1,!0)}),R.start=Ft,R.end=bt,Jt=It=wn?Bt:ct(),!w&&!wn&&(Jt<Bt&&ct(Bt),R.scroll.rec=0),R.revert(!1,!0),ot=fn(),gt&&(X=-1,gt.restart(!0)),hn=0,i&&I&&(i._initted||ee)&&i.progress()!==ee&&i.progress(ee||0,!0).render(i.time(),!0,!0),(he||xt!==R.progress||w||p)&&(i&&!I&&i.totalProgress(w&&Ft<-.001&&!xt?Ot.utils.normalize(Ft,bt,0):xt,!0),R.progress=he||(Jt-Ft)/F===xt?0:xt),u&&_&&(yt._pinOffset=Math.round(R.progress*vt)),Q&&Q.invalidate(),isNaN(Kt)||(Kt-=Ot.getProperty(G,v.p),bi-=Ot.getProperty($t,v.p),Il(G,v,Kt),Il(Et,v,Kt-(Dt||0)),Il($t,v,bi),Il(Ht,v,bi-(Dt||0))),he&&!wn&&R.update(),h&&!wn&&!x&&(x=!0,h(R),x=!1)}},R.getVelocity=function(){return(ct()-It)/(fn()-ha)*1e3||0},R.endAnimation=function(){ua(R.callbackAnimation),i&&(Q?Q.progress(1):i.paused()?I||ua(i,R.direction<0,1):ua(i,i.reversed()))},R.labelToScroll=function(et){return i&&i.labels&&(Ft||R.refresh()||Ft)+i.labels[et]/i.duration()*F||0},R.getTrailing=function(et){var wt=le.indexOf(R),ft=R.direction>0?le.slice(0,wt).reverse():le.slice(wt+1);return(zn(et)?ft.filter(function(Dt){return Dt.vars.preventOverlaps===et}):ft).filter(function(Dt){return R.direction>0?Dt.end<=Ft:Dt.start>=bt})},R.update=function(et,wt,ft){if(!(w&&!ft&&!et)){var Dt=wn===!0?Bt:R.scroll(),zt=et?0:(Dt-Ft)/F,Nt=zt<0?0:zt>1?1:zt||0,Qt=R.progress,he,me,oe,E,B,H,K,J;if(wt&&(It=Jt,Jt=w?ct():Dt,S&&(k=Zt,Zt=i&&!I?i.totalProgress():Nt)),m&&u&&!hn&&!El&&Kn&&(!Nt&&Ft<Dt+(Dt-It)/(fn()-ha)*m?Nt=1e-4:Nt===1&&bt>Dt+(Dt-It)/(fn()-ha)*m&&(Nt=.9999)),Nt!==Qt&&R.enabled){if(he=R.isActive=!!Nt&&Nt<1,me=!!Qt&&Qt<1,H=he!==me,B=H||!!Nt!=!!Qt,R.direction=Nt>Qt?1:-1,R.progress=Nt,B&&!hn&&(oe=Nt&&!Qt?0:Nt===1?1:Qt===1?2:3,I&&(E=!H&&Z[oe+1]!=="none"&&Z[oe+1]||Z[oe],J=i&&(E==="complete"||E==="reset"||E in i))),M&&(H||J)&&(J||f||!i)&&(En(M)?M(R):R.getTrailing(M).forEach(function(Xt){return Xt.endAnimation()})),I||(Q&&!hn&&!El?(Q._dp._time-Q._start!==Q._time&&Q.render(Q._dp._time-Q._start),Q.resetTo?Q.resetTo("totalProgress",Nt,i._tTime/i._tDur):(Q.vars.totalProgress=Nt,Q.invalidate().restart())):i&&i.totalProgress(Nt,!!(hn&&(ot||et)))),u){if(et&&_&&(yt.style[_+v.os2]=Yt),!$)Lt(da(ht+vt*Nt));else if(B){if(K=!et&&Nt>Qt&&bt+1>Dt&&Dt+1>=Pi(N,v),D)if(!et&&(he||K)){var St=Xi(u,!0),At=Dt-Ft;lm(u,Ee,St.top+(v===ke?At:0)+We,St.left+(v===ke?0:At)+We)}else lm(u,yt);no(he||K?tt:it),Wt&&Nt<1&&he||Lt(ht+(Nt===1&&!K?vt:0))}}S&&!Rt.tween&&!hn&&!El&>.restart(!0),a&&(H||y&&Nt&&(Nt<1||!sh))&&Ma(a.targets).forEach(function(Xt){return Xt.classList[he||y?"add":"remove"](a.className)}),o&&!I&&!et&&o(R),B&&!hn?(I&&(J&&(E==="complete"?i.pause().totalProgress(1):E==="reset"?i.restart(!0).pause():E==="restart"?i.restart(!0):i[E]()),o&&o(R)),(H||!sh)&&(c&&H&&ah(R,c),W[oe]&&ah(R,W[oe]),y&&(Nt===1?R.kill(!1,1):W[oe]=0),H||(oe=Nt===1?1:3,W[oe]&&ah(R,W[oe]))),P&&!he&&Math.abs(R.getVelocity())>(pa(P)?P:2500)&&(ua(R.callbackAnimation),Q?Q.progress(1):ua(i,E==="reverse"?1:!Nt,1))):I&&o&&!hn&&o(R)}if(qt){var Pt=w?Dt/w.duration()*(w._caScrollDist||0):Dt;Tt(Pt+(G._isFlipped?1:0)),qt(Pt)}Mt&&Mt(-Dt/w.duration()*(w._caScrollDist||0))}},R.enable=function(et,wt){R.enabled||(R.enabled=!0,Ke(N,"resize",ma),V||Ke(N,"scroll",js),at&&Ke(r,"refreshInit",at),et!==!1&&(R.progress=xt=0,Jt=It=X=ct()),wt!==!1&&R.refresh())},R.getTween=function(et){return et&&Rt?Rt.tween:Q},R.setPositions=function(et,wt,ft,Dt){if(w){var zt=w.scrollTrigger,Nt=w.duration(),Qt=zt.end-zt.start;et=zt.start+Qt*et/Nt,wt=zt.start+Qt*wt/Nt}R.refresh(!1,!1,{start:Qp(et,ft&&!!R._startClamp),end:Qp(wt,ft&&!!R._endClamp)},Dt),R.update()},R.adjustPinSpacing=function(et){if(ut&&et){var wt=ut.indexOf(v.d)+1;ut[wt]=parseFloat(ut[wt])+et+We,ut[1]=parseFloat(ut[1])+et+We,no(ut)}},R.disable=function(et,wt){if(R.enabled&&(et!==!1&&R.revert(!0,!0),R.enabled=R.isActive=!1,wt||Q&&Q.pause(),Bt=0,kt&&(kt.uncache=1),at&&$e(r,"refreshInit",at),gt&&(gt.pause(),Rt.tween&&Rt.tween.kill()&&(Rt.tween=0)),!V)){for(var ft=le.length;ft--;)if(le[ft].scroller===N&&le[ft]!==R)return;$e(N,"resize",ma),V||$e(N,"scroll",js)}},R.kill=function(et,wt){R.disable(et,wt),Q&&!wt&&Q.kill(),l&&delete mh[l];var ft=le.indexOf(R);ft>=0&&le.splice(ft,1),ft===bn&&Ul>0&&bn--,ft=0,le.forEach(function(Dt){return Dt.scroller===R.scroller&&(ft=1)}),ft||wn||(R.scroll.rec=0),i&&(i.scrollTrigger=null,et&&i.revert({kill:!1}),wt||i.kill()),Et&&[Et,Ht,G,$t].forEach(function(Dt){return Dt.parentNode&&Dt.parentNode.removeChild(Dt)}),Sa===R&&(Sa=0),u&&(kt&&(kt.uncache=1),ft=0,le.forEach(function(Dt){return Dt.pin===u&&ft++}),ft||(kt.spacer=0)),n.onKill&&n.onKill(R)},le.push(R),R.enable(!1,!1),L&&L(R),i&&i.add&&!F){var dt=R.update;R.update=function(){R.update=dt,Ft||bt||R.refresh()},Ot.delayedCall(.01,R.update),F=.01,Ft=bt=0}else R.refresh();u&&Bv()},r.register=function(n){return Qs||(Ot=n||vm(),xm()&&window.document&&r.enable(),Qs=fa),Qs},r.defaults=function(n){if(n)for(var i in n)Cl[i]=n[i];return Cl},r.disable=function(n,i){fa=0,le.forEach(function(o){return o[i?"kill":"disable"](n)}),$e(de,"wheel",js),$e(Pe,"scroll",js),clearInterval(wl),$e(Pe,"touchcancel",Ri),$e(Ee,"touchstart",Ri),Al($e,Pe,"pointerdown,touchstart,mousedown",tm),Al($e,Pe,"pointerup,touchend,mouseup",em),kl.kill(),Tl($e);for(var s=0;s<ae.length;s+=3)Dl($e,ae[s],ae[s+1]),Dl($e,ae[s],ae[s+2])},r.enable=function(){if(de=window,Pe=document,hi=Pe.documentElement,Ee=Pe.body,Ot&&(Ma=Ot.utils.toArray,ga=Ot.utils.clamp,dh=Ot.core.context||Ri,rh=Ot.core.suppressOverwrites||Ri,xh=de.history.scrollRestoration||"auto",gh=de.pageYOffset,Ot.core.globals("ScrollTrigger",r),Ee)){fa=1,eo=document.createElement("div"),eo.style.height="100vh",eo.style.position="absolute",Dm(),Pv(),Fe.register(Ot),r.isTouch=Fe.isTouch,yr=Fe.isTouch&&/(iPad|iPhone|iPod|Mac)/g.test(navigator.userAgent),fh=Fe.isTouch===1,Ke(de,"wheel",js),dm=[de,Pe,hi,Ee],Ot.matchMedia?(r.matchMedia=function(l){var c=Ot.matchMedia(),h;for(h in l)c.add(h,l[h]);return c},Ot.addEventListener("matchMediaInit",function(){return wh()}),Ot.addEventListener("matchMediaRevert",function(){return Tm()}),Ot.addEventListener("matchMedia",function(){ls(0,1),ps("matchMedia")}),Ot.matchMedia("(orientation: portrait)",function(){return lh(),lh})):console.warn("Requires GSAP 3.11.0 or later"),lh(),Ke(Pe,"scroll",js);var n=Ee.style,i=n.borderTopStyle,s=Ot.core.Animation.prototype,o,a;for(s.revert||Object.defineProperty(s,"revert",{value:function(){return this.time(-.01,!0)}}),n.borderTopStyle="solid",o=Xi(Ee),ke.m=Math.round(o.top+ke.sc())||0,un.m=Math.round(o.left+un.sc())||0,i?n.borderTopStyle=i:n.removeProperty("border-top-style"),wl=setInterval(rm,250),Ot.delayedCall(.5,function(){return El=0}),Ke(Pe,"touchcancel",Ri),Ke(Ee,"touchstart",Ri),Al(Ke,Pe,"pointerdown,touchstart,mousedown",tm),Al(Ke,Pe,"pointerup,touchend,mouseup",em),hh=Ot.utils.checkPrefix("transform"),Ol.push(hh),Qs=fn(),kl=Ot.delayedCall(.2,ls).pause(),to=[Pe,"visibilitychange",function(){var l=de.innerWidth,c=de.innerHeight;Pe.hidden?($p=l,Kp=c):($p!==l||Kp!==c)&&ma()},Pe,"DOMContentLoaded",ls,de,"load",ls,de,"resize",ma],Tl(Ke),le.forEach(function(l){return l.enable(0,1)}),a=0;a<ae.length;a+=3)Dl($e,ae[a],ae[a+1]),Dl($e,ae[a],ae[a+2])}},r.config=function(n){"limitCallbacks"in n&&(sh=!!n.limitCallbacks);var i=n.syncInterval;i&&clearInterval(wl)||(wl=i)&&setInterval(rm,i),"ignoreMobileResize"in n&&(fh=r.isTouch===1&&n.ignoreMobileResize),"autoRefreshEvents"in n&&(Tl($e)||Tl(Ke,n.autoRefreshEvents||"none"),mm=(n.autoRefreshEvents+"").indexOf("resize")===-1)},r.scrollerProxy=function(n,i){var s=Sn(n),o=ae.indexOf(s),a=fs(s);~o&&ae.splice(o,a?6:2),i&&(a?ui.unshift(de,i,Ee,i,hi,i):ui.unshift(s,i))},r.clearMatchMedia=function(n){le.forEach(function(i){return i._ctx&&i._ctx.query===n&&i._ctx.kill(!0,!0)})},r.isInViewport=function(n,i,s){var o=(zn(n)?Sn(n):n).getBoundingClientRect(),a=o[s?cs:us]*i||0;return s?o.right-a>0&&o.left+a<de.innerWidth:o.bottom-a>0&&o.top+a<de.innerHeight},r.positionInViewport=function(n,i,s){zn(n)&&(n=Sn(n));var o=n.getBoundingClientRect(),a=o[s?cs:us],l=i==null?a/2:i in Hl?Hl[i]*a:~i.indexOf("%")?parseFloat(i)*a/100:parseFloat(i)||0;return s?(o.left+l)/de.innerWidth:(o.top+l)/de.innerHeight},r.killAll=function(n){if(le.slice(0).forEach(function(s){return s.vars.id!=="ScrollSmoother"&&s.kill()}),n!==!0){var i=ds.killAll||[];ds={},i.forEach(function(s){return s()})}},r}();te.version="3.12.5";te.saveStyles=function(r){return r?Ma(r).forEach(function(t){if(t&&t.style){var e=kn.indexOf(t);e>=0&&kn.splice(e,5),kn.push(t,t.style.cssText,t.getBBox&&t.getAttribute("transform"),Ot.core.getCache(t),dh())}}):kn};te.revert=function(r,t){return wh(!r,t)};te.create=function(r,t){return new te(r,t)};te.refresh=function(r){return r?ma():(Qs||te.register())&&ls(!0)};te.update=function(r){return++ae.cache&&Yi(r===!0?2:0)};te.clearScrollMemory=Am;te.maxScroll=function(r,t){return Pi(r,t?un:ke)};te.getScrollFunc=function(r,t){return Gi(Sn(r),t?un:ke)};te.getById=function(r){return mh[r]};te.getAll=function(){return le.filter(function(r){return r.vars.id!=="ScrollSmoother"})};te.isScrolling=function(){return!!Kn};te.snapDirectional=bh;te.addEventListener=function(r,t){var e=ds[r]||(ds[r]=[]);~e.indexOf(t)||e.push(t)};te.removeEventListener=function(r,t){var e=ds[r],n=e&&e.indexOf(t);n>=0&&e.splice(n,1)};te.batch=function(r,t){var e=[],n={},i=t.interval||.016,s=t.batchMax||1e9,o=function(c,h){var f=[],d=[],u=Ot.delayedCall(i,function(){h(f,d),f=[],d=[]}).pause();return function(_){f.length||u.restart(!0),f.push(_.trigger),d.push(_),s<=f.length&&u.progress(1)}},a;for(a in t)n[a]=a.substr(0,2)==="on"&&En(t[a])&&a!=="onRefreshInit"?o(a,t[a]):t[a];return En(s)&&(s=s(),Ke(te,"refresh",function(){return s=t.batchMax()})),Ma(r).forEach(function(l){var c={};for(a in n)c[a]=n[a];c.trigger=l,e.push(te.create(c))}),e};var um=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},uh=function r(t,e){e===!0?t.style.removeProperty("touch-action"):t.style.touchAction=e===!0?"auto":e?"pan-"+e+(Fe.isTouch?" pinch-zoom":""):"none",t===hi&&r(Ee,e)},Ll={auto:1,scroll:1},Gv=function(t){var e=t.event,n=t.target,i=t.axis,s=(e.changedTouches?e.changedTouches[0]:e).target,o=s._gsap||Ot.core.getCache(s),a=fn(),l;if(!o._isScrollT||a-o._isScrollT>2e3){for(;s&&s!==Ee&&(s.scrollHeight<=s.clientHeight&&s.scrollWidth<=s.clientWidth||!(Ll[(l=$n(s)).overflowY]||Ll[l.overflowX]));)s=s.parentNode;o._isScroll=s&&s!==n&&!fs(s)&&(Ll[(l=$n(s)).overflowY]||Ll[l.overflowX]),o._isScrollT=a}(o._isScroll||i==="x")&&(e.stopPropagation(),e._gsapAllow=!0)},Rm=function(t,e,n,i){return Fe.create({target:t,capture:!0,debounce:!1,lockAxis:!0,type:e,onWheel:i=i&&Gv,onPress:i,onDrag:i,onScroll:i,onEnable:function(){return n&&Ke(Pe,Fe.eventTypes[0],fm,!1,!0)},onDisable:function(){return $e(Pe,Fe.eventTypes[0],fm,!0)}})},Wv=/(input|label|select|textarea)/i,hm,fm=function(t){var e=Wv.test(t.target.tagName);(e||hm)&&(t._gsapAllow=!0,hm=e)},Xv=function(t){as(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,o=e.onRelease,a,l,c=Sn(t.target)||hi,h=Ot.core.globals().ScrollSmoother,f=h&&h.get(),d=yr&&(t.content&&Sn(t.content)||f&&t.content!==!1&&!f.smooth()&&f.content()),u=Gi(c,ke),_=Gi(c,un),p=1,m=(Fe.isTouch&&de.visualViewport?de.visualViewport.scale*de.visualViewport.width:de.outerWidth)/de.innerWidth,g=0,b=En(i)?function(){return i(a)}:function(){return i||2.8},y,S,D=Rm(c,t.type,!0,s),T=function(){return S=!1},w=Ri,P=Ri,M=function(){l=Pi(c,ke),P=ga(yr?1:0,l),n&&(w=ga(0,Pi(c,un))),y=hs},v=function(){d._gsap.y=da(parseFloat(d._gsap.y)+u.offset)+"px",d.style.transform="matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, "+parseFloat(d._gsap.y)+", 0, 1)",u.offset=u.cacheID=0},I=function(){if(S){requestAnimationFrame(T);var z=da(a.deltaY/2),U=P(u.v-z);if(d&&U!==u.v+u.offset){u.offset=U-u.v;var R=da((parseFloat(d&&d._gsap.y)||0)-u.offset);d.style.transform="matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, "+R+", 0, 1)",d._gsap.y=R+"px",u.cacheID=ae.cache,Yi()}return!0}u.offset&&v(),S=!0},N,C,V,$,W=function(){M(),N.isActive()&&N.vars.scrollY>l&&(u()>l?N.progress(1)&&u(l):N.resetTo("scrollY",l))};return d&&Ot.set(d,{y:"+=0"}),t.ignoreCheck=function(Z){return yr&&Z.type==="touchmove"&&I(Z)||p>1.05&&Z.type!=="touchstart"||a.isGesturing||Z.touches&&Z.touches.length>1},t.onPress=function(){S=!1;var Z=p;p=da((de.visualViewport&&de.visualViewport.scale||1)/m),N.pause(),Z!==p&&uh(c,p>1.01?!0:n?!1:"x"),C=_(),V=u(),M(),y=hs},t.onRelease=t.onGestureStart=function(Z,z){if(u.offset&&v(),!z)$.restart(!0);else{ae.cache++;var U=b(),R,at;n&&(R=_(),at=R+U*.05*-Z.velocityX/.227,U*=um(_,R,at,Pi(c,un)),N.vars.scrollX=w(at)),R=u(),at=R+U*.05*-Z.velocityY/.227,U*=um(u,R,at,Pi(c,ke)),N.vars.scrollY=P(at),N.invalidate().duration(U).play(.01),(yr&&N.vars.scrollY>=l||R>=l-1)&&Ot.to({},{onUpdate:W,duration:U})}o&&o(Z)},t.onWheel=function(){N._ts&&N.pause(),fn()-g>1e3&&(y=0,g=fn())},t.onChange=function(Z,z,U,R,at){if(hs!==y&&M(),z&&n&&_(w(R[2]===z?C+(Z.startX-Z.x):_()+z-R[1])),U){u.offset&&v();var _t=at[2]===U,Ut=_t?V+Z.startY-Z.y:u()+U-at[1],X=P(Ut);_t&&Ut!==X&&(V+=X-Ut),u(X)}(U||z)&&Yi()},t.onEnable=function(){uh(c,n?!1:"x"),te.addEventListener("refresh",W),Ke(de,"resize",W),u.smooth&&(u.target.style.scrollBehavior="auto",u.smooth=_.smooth=!1),D.enable()},t.onDisable=function(){uh(c,!0),$e(de,"resize",W),te.removeEventListener("refresh",W),D.kill()},t.lockAxis=t.lockAxis!==!1,a=new Fe(t),a.iOS=yr,yr&&!u()&&u(1),yr&&Ot.ticker.add(Ri),$=a._dc,N=Ot.to(a,{ease:"power4",paused:!0,inherit:!1,scrollX:n?"+=0.1":"+=0",scrollY:"+=0.1",modifiers:{scrollY:Cm(u,u(),function(){return N.pause()})},onUpdate:Yi,onComplete:$.vars.onComplete}),a};te.sort=function(r){return le.sort(r||function(t,e){return(t.vars.refreshPriority||0)*-1e6+t.start-(e.start+(e.vars.refreshPriority||0)*-1e6)})};te.observe=function(r){return new Fe(r)};te.normalizeScroll=function(r){if(typeof r>"u")return Mn;if(r===!0&&Mn)return Mn.enable();if(r===!1){Mn&&Mn.kill(),Mn=r;return}var t=r instanceof Fe?r:Xv(r);return Mn&&Mn.target===t.target&&Mn.kill(),fs(t.target)&&(Mn=t),t};te.core={_getVelocityProp:bl,_inputObserver:Rm,_scrollers:ae,_proxies:ui,bridge:{ss:function(){Kn||ps("scrollStart"),Kn=fn()},ref:function(){return hn}}};vm()&&Ot.registerPlugin(te);ue.registerPlugin(te,li);var Pm=()=>{ue.matchMedia().add("(min-width: 992px)",()=>{let t=document.querySelector(".casestudies-heading-section");t&&ue.to(t,{ease:"none",scrollTrigger:{trigger:t,start:"top top",endTrigger:".casestudies-wrapper",end:"bottom bottom",pin:!0,pinSpacing:!1,scrub:!0,anticipatePin:1}})})};var Im=()=>{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`,ue.fromTo(t,{x:0},{x:-n,duration:60,ease:"linear",repeat:-1,force3D:!0})})};var Lm=()=>{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=(o,a)=>{let l=document.createElement("script"),c=document.getElementsByTagName("script")[0];l.async=1,l.onload=l.onreadystatechange=(h,f)=>{(f||!l.readyState||/loaded|complete/.test(l.readyState))&&(l.onload=l.onreadystatechange=null,l=void 0,f||a&&a())},l.src=o,c.parentNode.insertBefore(l,c)};r.forEach(o=>{o.addEventListener("click",a=>{a.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",o=>{o.preventDefault,t.classList.remove("-open"),document.body.classList.remove("-popup-open")}),t.addEventListener("click",o=>{i.contains(o.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 Fm=()=>{let r=new Date().toLocaleTimeString("pl-PL",{timeZone:"Poland"}).split(":");return r[0]+" - "+r[1]},Nm=()=>{let r=document.querySelectorAll("[data-current-time]");r.length>0&&r.forEach(t=>{t.textContent=Fm(),setInterval(()=>{t.textContent=Fm()},5e3)})};var Yv=/(?:^\s+|\s+$)/g,Eh=/([\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 ro(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+=ro(r)}else if(t===3||t===4)return r.nodeValue;return e}function fi(r,t,e,n){if(r+="",e&&(r=r.trim?r.trim():r.replace(Yv,"")),t&&t!=="")return r.replace(/>/g,">").replace(/</g,"<").split(t);for(var i=[],s=r.length,o=0,a,l;o<s;o++)l=r.charAt(o),(l.charCodeAt(0)>=55296&&l.charCodeAt(0)<=56319||r.charCodeAt(o+1)>=65024&&r.charCodeAt(o+1)<=65039)&&(a=((r.substr(o,12).split(Eh)||[])[1]||"").length||2,l=r.substr(o,a),i.emoji=1,o+=a-1),i.push(l===">"?">":l==="<"?"<":n&&l===" "&&(r.charAt(o-1)===" "||r.charAt(o+1)===" ")?" ":l);return i}var so,Ah,Bm,wa,km,Wl,qv=/(?:\r|\n|\t\t)/g,Zv=/(?:\s\s+)/g,Jv="\xA0",zm=function(t){so=document,Ah=window,wa=wa||t||Ah.gsap||console.warn("Please gsap.registerPlugin(SplitText)"),wa&&(Wl=wa.utils.toArray,km=wa.core.context||function(){},Bm=1)},$v=1,Vm=function(t){return Ah.getComputedStyle(t)},Dh=function(t){return t.position==="absolute"||t.absolute===!0},Kv=function(t,e){for(var n=e.length,i;--n>-1;)if(i=e[n],t.substr(0,i.length)===i)return i.length},jv=" style='position:relative;display:inline-block;'",Um=function(t,e){t===void 0&&(t="");var n=~t.indexOf("++"),i=1;return n&&(t=t.split("++").join("")),function(){return"<"+e+jv+(t?" class='"+t+(n?i++:"")+"'>":">")}},Hm=function r(t,e,n){var i=t.nodeType;if(i===1||i===9||i===11)for(t=t.firstChild;t;t=t.nextSibling)r(t,e,n);else(i===3||i===4)&&(t.nodeValue=t.nodeValue.split(e).join(n))},Th=function(t,e){for(var n=e.length;--n>-1;)t.push(e[n])},Om=function(t,e,n){for(var i;t&&t!==e;){if(i=t._next||t.nextSibling,i)return i.textContent.charAt(0)===n;t=t.parentNode||t._parent}},Qv=function r(t){var e=Wl(t.childNodes),n=e.length,i,s;for(i=0;i<n;i++)s=e[i],s._isSplit?r(s):i&&s.previousSibling&&s.previousSibling.nodeType===3?(s.previousSibling.nodeValue+=s.nodeType===3?s.nodeValue:s.firstChild.nodeValue,t.removeChild(s)):s.nodeType!==3&&(t.insertBefore(s.firstChild,s),t.removeChild(s))},Ii=function(t,e){return parseFloat(e[t])||0},ty=function(t,e,n,i,s,o,a){var l=Vm(t),c=Ii("paddingLeft",l),h=-999,f=Ii("borderBottomWidth",l)+Ii("borderTopWidth",l),d=Ii("borderLeftWidth",l)+Ii("borderRightWidth",l),u=Ii("paddingTop",l)+Ii("paddingBottom",l),_=Ii("paddingLeft",l)+Ii("paddingRight",l),p=Ii("fontSize",l)*(e.lineThreshold||.2),m=l.textAlign,g=[],b=[],y=[],S=e.wordDelimiter||" ",D=e.tag?e.tag:e.span?"span":"div",T=e.type||e.split||"chars,words,lines",w=s&&~T.indexOf("lines")?[]:null,P=~T.indexOf("words"),M=~T.indexOf("chars"),v=Dh(e),I=e.linesClass,N=~(I||"").indexOf("++"),C=[],V=l.display==="flex",$=t.style.display,W,Z,z,U,R,at,_t,Ut,X,ot,xt,ct;for(N&&(I=I.split("++").join("")),V&&(t.style.display="block"),Z=t.getElementsByTagName("*"),z=Z.length,R=[],W=0;W<z;W++)R[W]=Z[W];if(w||v)for(W=0;W<z;W++)U=R[W],at=U.parentNode===t,(at||v||M&&!P)&&(ct=U.offsetTop,w&&at&&Math.abs(ct-h)>p&&(U.nodeName!=="BR"||W===0)&&(_t=[],w.push(_t),h=ct),v&&(U._x=U.offsetLeft,U._y=ct,U._w=U.offsetWidth,U._h=U.offsetHeight),w&&((U._isSplit&&at||!M&&at||P&&at||!P&&U.parentNode.parentNode===t&&!U.parentNode._isSplit)&&(_t.push(U),U._x-=c,Om(U,t,S)&&(U._wordEnd=!0)),U.nodeName==="BR"&&(U.nextSibling&&U.nextSibling.nodeName==="BR"||W===0)&&w.push([])));for(W=0;W<z;W++){if(U=R[W],at=U.parentNode===t,U.nodeName==="BR"){w||v?(U.parentNode&&U.parentNode.removeChild(U),R.splice(W--,1),z--):P||t.appendChild(U);continue}if(v&&(X=U.style,!P&&!at&&(U._x+=U.parentNode._x,U._y+=U.parentNode._y),X.left=U._x+"px",X.top=U._y+"px",X.position="absolute",X.display="block",X.width=U._w+1+"px",X.height=U._h+"px"),!P&&M)if(U._isSplit)for(U._next=Z=U.nextSibling,U.parentNode.appendChild(U);Z&&Z.nodeType===3&&Z.textContent===" ";)U._next=Z.nextSibling,U.parentNode.appendChild(Z),Z=Z.nextSibling;else U.parentNode._isSplit?(U._parent=U.parentNode,!U.previousSibling&&U.firstChild&&(U.firstChild._isFirst=!0),U.nextSibling&&U.nextSibling.textContent===" "&&!U.nextSibling.nextSibling&&C.push(U.nextSibling),U._next=U.nextSibling&&U.nextSibling._isFirst?null:U.nextSibling,U.parentNode.removeChild(U),R.splice(W--,1),z--):at||(ct=!U.nextSibling&&Om(U.parentNode,t,S),U.parentNode._parent&&U.parentNode._parent.appendChild(U),ct&&U.parentNode.appendChild(so.createTextNode(" ")),D==="span"&&(U.style.display="inline"),g.push(U));else U.parentNode._isSplit&&!U._isSplit&&U.innerHTML!==""?b.push(U):M&&!U._isSplit&&(D==="span"&&(U.style.display="inline"),g.push(U))}for(W=C.length;--W>-1;)C[W].parentNode.removeChild(C[W]);if(w){for(v&&(ot=so.createElement(D),t.appendChild(ot),xt=ot.offsetWidth+"px",ct=ot.offsetParent===t?0:t.offsetLeft,t.removeChild(ot)),X=t.style.cssText,t.style.cssText="display:none;";t.firstChild;)t.removeChild(t.firstChild);for(Ut=S===" "&&(!v||!P&&!M),W=0;W<w.length;W++){for(_t=w[W],ot=so.createElement(D),ot.style.cssText="display:block;text-align:"+m+";position:"+(v?"absolute;":"relative;"),I&&(ot.className=I+(N?W+1:"")),y.push(ot),z=_t.length,Z=0;Z<z;Z++)_t[Z].nodeName!=="BR"&&(U=_t[Z],ot.appendChild(U),Ut&&U._wordEnd&&ot.appendChild(so.createTextNode(" ")),v&&(Z===0&&(ot.style.top=U._y+"px",ot.style.left=c+ct+"px"),U.style.top="0px",ct&&(U.style.left=U._x-ct+"px")));z===0?ot.innerHTML=" ":!P&&!M&&(Qv(ot),Hm(ot,"\xA0"," ")),v&&(ot.style.width=xt,ot.style.height=U._h+"px"),t.appendChild(ot)}t.style.cssText=X}v&&(a>t.clientHeight&&(t.style.height=a-u+"px",t.clientHeight<a&&(t.style.height=a+f+"px")),o>t.clientWidth&&(t.style.width=o-_+"px",t.clientWidth<o&&(t.style.width=o+d+"px"))),V&&($?t.style.display=$:t.style.removeProperty("display")),Th(n,g),P&&Th(i,b),Th(s,y)},ey=function(t,e,n,i){var s=e.tag?e.tag:e.span?"span":"div",o=e.type||e.split||"chars,words,lines",a=~o.indexOf("chars"),l=Dh(e),c=e.wordDelimiter||" ",h=function(v){return v===c||v===Jv&&c===" "},f=c!==" "?"":l?"­ ":" ",d="</"+s+">",u=1,_=e.specialChars?typeof e.specialChars=="function"?e.specialChars:Kv:null,p,m,g,b,y,S,D,T,w=so.createElement("div"),P=t.parentNode;for(P.insertBefore(w,t),w.textContent=t.nodeValue,P.removeChild(t),t=w,p=ro(t),D=p.indexOf("<")!==-1,e.reduceWhiteSpace!==!1&&(p=p.replace(Zv," ").replace(qv,"")),D&&(p=p.split("<").join("{{LT}}")),y=p.length,m=(p.charAt(0)===" "?f:"")+n(),g=0;g<y;g++)if(S=p.charAt(g),_&&(T=_(p.substr(g),e.specialChars)))S=p.substr(g,T||1),m+=a&&S!==" "?i()+S+"</"+s+">":S,g+=T-1;else if(h(S)&&!h(p.charAt(g-1))&&g){for(m+=u?d:"",u=0;h(p.charAt(g+1));)m+=f,g++;g===y-1?m+=f:p.charAt(g+1)!==")"&&(m+=f+n(),u=1)}else S==="{"&&p.substr(g,6)==="{{LT}}"?(m+=a?i()+"{{LT}}</"+s+">":"{{LT}}",g+=5):S.charCodeAt(0)>=55296&&S.charCodeAt(0)<=56319||p.charCodeAt(g+1)>=65024&&p.charCodeAt(g+1)<=65039?(b=((p.substr(g,12).split(Eh)||[])[1]||"").length||2,m+=a&&S!==" "?i()+p.substr(g,b)+"</"+s+">":p.substr(g,b),g+=b-1):m+=a&&S!==" "?i()+S+"</"+s+">":S;t.outerHTML=m+(u?d:""),D&&Hm(P,"{{LT}}","<")},ny=function r(t,e,n,i){var s=Wl(t.childNodes),o=s.length,a=Dh(e),l,c;if(t.nodeType!==3||o>1){for(e.absolute=!1,l=0;l<o;l++)c=s[l],c._next=c._isFirst=c._parent=c._wordEnd=null,(c.nodeType!==3||/\S+/.test(c.nodeValue))&&(a&&c.nodeType!==3&&Vm(c).display==="inline"&&(c.style.display="inline-block",c.style.position="relative"),c._isSplit=!0,r(c,e,n,i));e.absolute=a,t._isSplit=!0;return}ey(t,e,n,i)},oo=function(){function r(e,n){Bm||zm(),this.elements=Wl(e),this.chars=[],this.words=[],this.lines=[],this._originals=[],this.vars=n||{},km(this),$v&&this.split(n)}var t=r.prototype;return t.split=function(n){this.isSplit&&this.revert(),this.vars=n=n||this.vars,this._originals.length=this.chars.length=this.words.length=this.lines.length=0;for(var i=this.elements.length,s=n.tag?n.tag:n.span?"span":"div",o=Um(n.wordsClass,s),a=Um(n.charsClass,s),l,c,h;--i>-1;)h=this.elements[i],this._originals[i]={html:h.innerHTML,style:h.getAttribute("style")},l=h.clientHeight,c=h.clientWidth,ny(h,n,o,a),ty(h,n,this.chars,this.words,this.lines,c,l);return this.chars.reverse(),this.words.reverse(),this.lines.reverse(),this.isSplit=!0,this},t.revert=function(){var n=this._originals;if(!n)throw"revert() call wasn't scoped properly.";return this.elements.forEach(function(i,s){i.innerHTML=n[s].html,i.setAttribute("style",n[s].style)}),this.chars=[],this.words=[],this.lines=[],this.isSplit=!1,this},r.create=function(n,i){return new r(n,i)},r}();oo.version="3.12.5";oo.register=zm;var Gm=()=>{if(ue.registerPlugin(te,oo),document.querySelector(".hero_grid")){let r=document.querySelector(".hero_grid"),t=r.querySelector(".hero_holo"),e=r.querySelector("h1"),n=r.querySelector(".paragraph-big"),i=new oo(e,{type:"lines",tag:"span"}),s=new oo(e,{type:"lines",linesClass:"header_line"});i.lines=s.chars.concat(i.lines),ue.timeline({scrollTrigger:{trigger:r,start:"top bottom",toggleActions:"play none none reset"}}).fromTo(n,{autoAlpha:0},{autoAlpha:1,duration:.35,ease:"circ.out"},"+=1.75").fromTo(i.lines,{y:"100%"},{y:0,duration:.75,stagger:.05,ease:"circ.out"},"-=0.25").fromTo(t,{autoAlpha:0},{autoAlpha:1,duration:.75,ease:"circ.out"},"+-=0.25")}};var Wm=()=>{let r=document.querySelector(".is-section-loader");if(!r)return;let t=r.querySelector(".loader_line"),e=r.querySelector(".loader_value");!t||!e||ue.to(t,{width:"100%",duration:1.5,onUpdate:function(){let n=Math.round(this.progress()*100);e.innerHTML=`${n}%`},onComplete:function(){ue.to(r,{y:"-100dvh",duration:.75})}},"<")};var Xl=function(){function r(e){this.chars=fi(e),this.sets=[],this.length=50;for(var n=0;n<20;n++)this.sets[n]=Ym(80,this.chars)}var t=r.prototype;return t.grow=function(n){for(var i=0;i<20;i++)this.sets[i]+=Ym(n-this.length,this.chars);this.length=n},r}(),ms,Jm,$m=function(){return ms||typeof window<"u"&&(ms=window.gsap)&&ms.registerPlugin&&ms},iy=1,Xm=/\s+/g,Ym=function(t,e){for(var n=e.length,i="";--t>-1;)i+=e[~~(Math.random()*n)];return i},Ch="ABCDEFGHIJKLMNOPQRSTUVWXYZ",qm=Ch.toLowerCase(),ry={upperCase:new Xl(Ch),lowerCase:new Xl(qm),upperAndLowerCase:new Xl(Ch+qm)},Zm=function(){Jm=ms=$m()},Ea={version:"3.12.5",name:"scrambleText",register:function(t,e,n){ms=t,Zm()},init:function(t,e,n,i,s){if(Jm||Zm(),this.prop="innerHTML"in t?"innerHTML":"textContent"in t?"textContent":0,!!this.prop){this.target=t,typeof e!="object"&&(e={text:e});var o=e.text||e.value||"",a=e.trim!==!1,l=this,c,h,f,d;return l.delimiter=c=e.delimiter||"",l.original=fi(ro(t).replace(Xm," ").split(" ").join(""),c,a),(o==="{original}"||o===!0||o==null)&&(o=l.original.join(c)),l.text=fi((o||"").replace(Xm," "),c,a),l.hasClass=!!(e.newClass||e.oldClass),l.newClass=e.newClass,l.oldClass=e.oldClass,d=c==="",l.textHasEmoji=d&&!!l.text.emoji,l.charsHaveEmoji=!!e.chars&&!!fi(e.chars).emoji,l.length=d?l.original.length:l.original.join(c).length,l.lengthDif=(d?l.text.length:l.text.join(c).length)-l.length,l.fillChar=e.fillChar||e.chars&&~e.chars.indexOf(" ")?" ":"",l.charSet=f=ry[e.chars||"upperCase"]||new Xl(e.chars),l.speed=.05/(e.speed||1),l.prevScrambleTime=0,l.setIndex=Math.random()*20|0,h=l.length+Math.max(l.lengthDif,0),h>f.length&&f.grow(h),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"),iy}},render:function(t,e){var n=e.target,i=e.prop,s=e.text,o=e.delimiter,a=e.tween,l=e.prevScrambleTime,c=e.revealDelay,h=e.setIndex,f=e.chars,d=e.charSet,u=e.length,_=e.textHasEmoji,p=e.charsHaveEmoji,m=e.lengthDif,g=e.tweenLength,b=e.oldClass,y=e.newClass,S=e.rightToLeft,D=e.fillChar,T=e.speed,w=e.original,P=e.hasClass,M=s.length,v=a._time,I=v-l,N,C,V,$,W,Z,z,U,R,at,_t;c&&(a._from&&(v=a._dur-v),t=v===0?0:v<c?1e-6:v===a._dur?1:a._ease((v-c)/(a._dur-c))),t<0?t=0:t>1&&(t=1),S&&(t=1-t),N=~~(t*M+.5),t?((I>T||I<-T)&&(e.setIndex=h=(h+(Math.random()*19|0))%20,e.chars=d.sets[h],e.prevScrambleTime+=I),$=f):$=w.join(o),_t=a._from?t:1-t,at=u+(g?a._from?_t*_t*_t:1-_t*_t*_t:1)*m,S?t===1&&(a._from||a.data==="isFromStart")?(V="",$=w.join(o)):(z=s.slice(N).join(o),p?V=fi($).slice(0,at-(_?fi(z):z).length+.5|0).join(""):V=$.substr(0,at-(_?fi(z):z).length+.5|0),$=z):(V=s.slice(0,N).join(o),C=(_?fi(V):V).length,p?$=fi($).slice(C,at+.5|0).join(""):$=$.substr(C,at-C+.5|0)),P?(U=S?b:y,R=S?y:b,W=U&&N!==0,Z=R&&N!==M,z=(W?"<span class='"+U+"'>":"")+V+(W?"</span>":"")+(Z?"<span class='"+R+"'>":"")+o+$+(Z?"</span>":"")):z=V+o+$,n[i]=D===" "&&~z.indexOf(" ")?z.split(" ").join(" "):z}};Ea.emojiSafeSplit=fi;Ea.getText=ro;$m()&&ms.registerPlugin(Ea);ue.registerPlugin(Ea);var Km=()=>{document.querySelectorAll("[data-scramble-link]").forEach(t=>{let e=t.querySelector("[data-scramble-text]");if(!e)return;let n=e.textContent;t.addEventListener("mouseenter",()=>{ue.matchMedia().add("(min-width: 768px)",()=>{ue.to(e,{duration:1,scrambleText:{text:n,chars:"10"}})})})})};ue.registerPlugin(li,te);var jm=()=>{ue.registerPlugin(li),li.create({smooth:1.5,effects:!0}),te.refresh()};ue.registerPlugin(te);var Qm=()=>{let r=document.querySelector(".special_decors-wrapper"),t=document.querySelector(".special_decors");ue.to(t,{scrollTrigger:{trigger:t,endTrigger:r,start:()=>"top top",end:()=>"bottom bottom",pin:!0,scrub:!0}})};var ng=()=>{let r=document.querySelector(".mastery_techonologies-wrapper");if(!r)return;let t=r.querySelectorAll("img");t&&(window.innerWidth>991?eg(r,t):tg(r,t),window.addEventListener("resize",function(){window.innerWidth>991?eg(r,t):tg(r,t)},!0))};function tg(r,t){r.innerHTML="",t.forEach(s=>{let o=document.createElement("figure");o.classList.add("mastery_techonologies_slide"),o.appendChild(s),r.appendChild(o)});let e=r.querySelectorAll(".mastery_techonologies_slide");ue.set(e,{autoAlpha:1}),e.forEach((s,o)=>{ue.set(s,{xPercent:100*o})});let n=ue.utils.wrap(-100,(e.length-1)*100),i=e.length*2.5;ue.to(e,{xPercent:`-=${e.length*100}`,duration:i,repeat:-1,ease:"none",modifiers:{xPercent:s=>n(parseFloat(s))}})}function eg(r,t){r.innerHTML="";let e=sy(t);e&&(oy(r,e),ay(r))}function sy(r){let t=Math.floor(r.length/2)<11?Math.floor(r.length/2):11,e=Array.from({length:t},()=>[]),n=Math.floor(r.length/t),i=r.length%t,s=0;for(let o=0;o<t;o++){let a=n+(o<i?1:0);for(let l=0;l<a;l++)s<r.length&&(e[o].push(r[s]),s+=1)}return e}function oy(r,t){r.innerHTML="",t.forEach(e=>{let n=document.createElement("div");n.classList.add("mastery_techonologies_vertical_slider"),e.forEach(i=>{let s=document.createElement("figure");s.classList.add("mastery_techonologies_vertical_slider_item"),s.appendChild(i),n.appendChild(s)}),r.appendChild(n)})}function ay(r){let t=r.querySelectorAll(".mastery_techonologies_vertical_slider"),e=parseInt(window.getComputedStyle(document.body).fontSize)*1.5;if(window.addEventListener("resize",function(){e=parseInt(window.getComputedStyle(document.body).fontSize)*1.5},!0),!t)return;function n(){t.forEach((i,s)=>{i.querySelectorAll(".mastery_techonologies_vertical_slider_item").forEach((a,l)=>{let c=l===0,h=window.getComputedStyle(a),f=new WebKitCSSMatrix(h.transform);ue.fromTo(a,{y:c?(l+1)*e:f.f},{y:c?l*e:f.f-e,duration:.5,ease:"circ.out",delay:.1*s,onComplete:function(){c&&i.appendChild(a)}}).play()})})}n(),setInterval(n,5e3)}var Zf="164";var ly=0,ig=1,cy=2;var C_=1,Jf=2,ji=3,Lr=0,Nn=1,tr=2,Rr=0,Pr=1,rg=2,sg=3,og=4,uy=5,bs=100,hy=101,fy=102,dy=103,py=104,my=200,gy=201,_y=202,xy=203,hf=204,ff=205,vy=206,yy=207,Sy=208,My=209,by=210,wy=211,Ey=212,Ty=213,Ay=214,Dy=0,Cy=1,Ry=2,_c=3,Py=4,Iy=5,Ly=6,Fy=7,R_=0,Ny=1,Uy=2,Ir=0,Oy=1,By=2,ky=3,zy=4,Vy=5,Hy=6,Gy=7;var P_=300,Ro=301,Po=302,df=303,pf=304,Wc=306,mf=1e3,Es=1001,gf=1002,ti=1003,Wy=1004;var Yl=1005;var gi=1006,Rh=1007;var Ts=1008;var Fr=1009,Xy=1010,Yy=1011,I_=1012,L_=1013,Io=1014,Dr=1015,Xc=1016,F_=1017,N_=1018,Oa=1020,qy=35902,Zy=1021,Jy=1022,Fi=1023,$y=1024,Ky=1025,Ao=1026,La=1027,jy=1028,U_=1029,Qy=1030,O_=1031,B_=1033,Ph=33776,Ih=33777,Lh=33778,Fh=33779,ag=35840,lg=35841,cg=35842,ug=35843,hg=36196,fg=37492,dg=37496,pg=37808,mg=37809,gg=37810,_g=37811,xg=37812,vg=37813,yg=37814,Sg=37815,Mg=37816,bg=37817,wg=37818,Eg=37819,Tg=37820,Ag=37821,Nh=36492,Dg=36494,Cg=36495,tS=36283,Rg=36284,Pg=36285,Ig=36286;var xc=2300,vc=2301,Uh=2302,Lg=2400,Fg=2401,Ng=2402;var eS=3200,nS=3201,iS=0,rS=1,Ar="",Qn="srgb",Or="srgb-linear",$f="display-p3",Yc="display-p3-linear",yc="linear",Te="srgb",Sc="rec709",Mc="p3";var ao=7680;var Ug=519,sS=512,oS=513,aS=514,k_=515,lS=516,cS=517,uS=518,hS=519,Og=35044;var Bg="300 es",er=2e3,bc=2001,Nr=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,o=i.length;s<o;s++)i[s].call(this,t);t.target=null}}},dn=["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 Oh=Math.PI/180,_f=180/Math.PI;function Ba(){let r=Math.random()*4294967295|0,t=Math.random()*4294967295|0,e=Math.random()*4294967295|0,n=Math.random()*4294967295|0;return(dn[r&255]+dn[r>>8&255]+dn[r>>16&255]+dn[r>>24&255]+"-"+dn[t&255]+dn[t>>8&255]+"-"+dn[t>>16&15|64]+dn[t>>24&255]+"-"+dn[e&63|128]+dn[e>>8&255]+"-"+dn[e>>16&255]+dn[e>>24&255]+dn[n&255]+dn[n>>8&255]+dn[n>>16&255]+dn[n>>24&255]).toLowerCase()}function Fn(r,t,e){return Math.max(t,Math.min(e,r))}function fS(r,t){return(r%t+t)%t}function Bh(r,t,e){return(1-e)*r+e*t}function Ta(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 Ln(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 _e=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(Fn(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,o=this.y-t.y;return this.x=s*n-o*i+t.x,this.y=s*i+o*n+t.y,this}random(){return this.x=Math.random(),this.y=Math.random(),this}*[Symbol.iterator](){yield this.x,yield this.y}},se=class r{constructor(t,e,n,i,s,o,a,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,o,a,l,c)}set(t,e,n,i,s,o,a,l,c){let h=this.elements;return h[0]=t,h[1]=i,h[2]=a,h[3]=e,h[4]=s,h[5]=l,h[6]=n,h[7]=o,h[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,o=n[0],a=n[3],l=n[6],c=n[1],h=n[4],f=n[7],d=n[2],u=n[5],_=n[8],p=i[0],m=i[3],g=i[6],b=i[1],y=i[4],S=i[7],D=i[2],T=i[5],w=i[8];return s[0]=o*p+a*b+l*D,s[3]=o*m+a*y+l*T,s[6]=o*g+a*S+l*w,s[1]=c*p+h*b+f*D,s[4]=c*m+h*y+f*T,s[7]=c*g+h*S+f*w,s[2]=d*p+u*b+_*D,s[5]=d*m+u*y+_*T,s[8]=d*g+u*S+_*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],o=t[4],a=t[5],l=t[6],c=t[7],h=t[8];return e*o*h-e*a*c-n*s*h+n*a*l+i*s*c-i*o*l}invert(){let t=this.elements,e=t[0],n=t[1],i=t[2],s=t[3],o=t[4],a=t[5],l=t[6],c=t[7],h=t[8],f=h*o-a*c,d=a*l-h*s,u=c*s-o*l,_=e*f+n*d+i*u;if(_===0)return this.set(0,0,0,0,0,0,0,0,0);let p=1/_;return t[0]=f*p,t[1]=(i*c-h*n)*p,t[2]=(a*n-i*o)*p,t[3]=d*p,t[4]=(h*e-i*l)*p,t[5]=(i*s-a*e)*p,t[6]=u*p,t[7]=(n*l-c*e)*p,t[8]=(o*e-n*s)*p,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,o,a){let l=Math.cos(s),c=Math.sin(s);return this.set(n*l,n*c,-n*(l*o+c*a)+o+t,-i*c,i*l,-i*(-c*o+l*a)+a+e,0,0,1),this}scale(t,e){return this.premultiply(kh.makeScale(t,e)),this}rotate(t){return this.premultiply(kh.makeRotation(-t)),this}translate(t,e){return this.premultiply(kh.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)}},kh=new se;function z_(r){for(let t=r.length-1;t>=0;--t)if(r[t]>=65535)return!0;return!1}function wc(r){return document.createElementNS("http://www.w3.org/1999/xhtml",r)}function dS(){let r=wc("canvas");return r.style.display="block",r}var kg={};function pS(r){r in kg||(kg[r]=!0,console.warn(r))}var zg=new se().set(.8224621,.177538,0,.0331941,.9668058,0,.0170827,.0723974,.9105199),Vg=new se().set(1.2249401,-.2249404,0,-.0420569,1.0420571,0,-.0196376,-.0786361,1.0982735),ql={[Or]:{transfer:yc,primaries:Sc,toReference:r=>r,fromReference:r=>r},[Qn]:{transfer:Te,primaries:Sc,toReference:r=>r.convertSRGBToLinear(),fromReference:r=>r.convertLinearToSRGB()},[Yc]:{transfer:yc,primaries:Mc,toReference:r=>r.applyMatrix3(Vg),fromReference:r=>r.applyMatrix3(zg)},[$f]:{transfer:Te,primaries:Mc,toReference:r=>r.convertSRGBToLinear().applyMatrix3(Vg),fromReference:r=>r.applyMatrix3(zg).convertLinearToSRGB()}},mS=new Set([Or,Yc]),Se={enabled:!0,_workingColorSpace:Or,get workingColorSpace(){return this._workingColorSpace},set workingColorSpace(r){if(!mS.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=ql[t].toReference,i=ql[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 ql[r].primaries},getTransfer:function(r){return r===Ar?yc:ql[r].transfer}};function Do(r){return r<.04045?r*.0773993808:Math.pow(r*.9478672986+.0521327014,2.4)}function zh(r){return r<.0031308?r*12.92:1.055*Math.pow(r,.41666)-.055}var lo,xf=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{lo===void 0&&(lo=wc("canvas")),lo.width=t.width,lo.height=t.height;let n=lo.getContext("2d");t instanceof ImageData?n.putImageData(t,0,0):n.drawImage(t,0,0,t.width,t.height),e=lo}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=wc("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 o=0;o<s.length;o++)s[o]=Do(s[o]/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(Do(e[n]/255)*255):e[n]=Do(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}},gS=0,Ec=class{constructor(t=null){this.isSource=!0,Object.defineProperty(this,"id",{value:gS++}),this.uuid=Ba(),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 o=0,a=i.length;o<a;o++)i[o].isDataTexture?s.push(Vh(i[o].image)):s.push(Vh(i[o]))}else s=Vh(i);n.url=s}return e||(t.images[this.uuid]=n),n}};function Vh(r){return typeof HTMLImageElement<"u"&&r instanceof HTMLImageElement||typeof HTMLCanvasElement<"u"&&r instanceof HTMLCanvasElement||typeof ImageBitmap<"u"&&r instanceof ImageBitmap?xf.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 _S=0,ii=class r extends Nr{constructor(t=r.DEFAULT_IMAGE,e=r.DEFAULT_MAPPING,n=Es,i=Es,s=gi,o=Ts,a=Fi,l=Fr,c=r.DEFAULT_ANISOTROPY,h=Ar){super(),this.isTexture=!0,Object.defineProperty(this,"id",{value:_S++}),this.uuid=Ba(),this.name="",this.source=new Ec(t),this.mipmaps=[],this.mapping=e,this.channel=0,this.wrapS=n,this.wrapT=i,this.magFilter=s,this.minFilter=o,this.anisotropy=c,this.format=a,this.internalFormat=null,this.type=l,this.offset=new _e(0,0),this.repeat=new _e(1,1),this.center=new _e(0,0),this.rotation=0,this.matrixAutoUpdate=!0,this.matrix=new se,this.generateMipmaps=!0,this.premultiplyAlpha=!1,this.flipY=!0,this.unpackAlignment=4,this.colorSpace=h,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!==P_)return t;if(t.applyMatrix3(this.matrix),t.x<0||t.x>1)switch(this.wrapS){case mf:t.x=t.x-Math.floor(t.x);break;case Es:t.x=t.x<0?0:1;break;case gf: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 mf:t.y=t.y-Math.floor(t.y);break;case Es:t.y=t.y<0?0:1;break;case gf: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++}};ii.DEFAULT_IMAGE=null;ii.DEFAULT_MAPPING=P_;ii.DEFAULT_ANISOTROPY=1;var Qe=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,o=t.elements;return this.x=o[0]*e+o[4]*n+o[8]*i+o[12]*s,this.y=o[1]*e+o[5]*n+o[9]*i+o[13]*s,this.z=o[2]*e+o[6]*n+o[10]*i+o[14]*s,this.w=o[3]*e+o[7]*n+o[11]*i+o[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],h=l[4],f=l[8],d=l[1],u=l[5],_=l[9],p=l[2],m=l[6],g=l[10];if(Math.abs(h-d)<.01&&Math.abs(f-p)<.01&&Math.abs(_-m)<.01){if(Math.abs(h+d)<.1&&Math.abs(f+p)<.1&&Math.abs(_+m)<.1&&Math.abs(c+u+g-3)<.1)return this.set(1,0,0,0),this;e=Math.PI;let y=(c+1)/2,S=(u+1)/2,D=(g+1)/2,T=(h+d)/4,w=(f+p)/4,P=(_+m)/4;return y>S&&y>D?y<.01?(n=0,i=.707106781,s=.707106781):(n=Math.sqrt(y),i=T/n,s=w/n):S>D?S<.01?(n=.707106781,i=0,s=.707106781):(i=Math.sqrt(S),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 b=Math.sqrt((m-_)*(m-_)+(f-p)*(f-p)+(d-h)*(d-h));return Math.abs(b)<.001&&(b=1),this.x=(m-_)/b,this.y=(f-p)/b,this.z=(d-h)/b,this.w=Math.acos((c+u+g-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}},vf=class extends Nr{constructor(t=1,e=1,n={}){super(),this.isRenderTarget=!0,this.width=t,this.height=e,this.depth=1,this.scissor=new Qe(0,0,t,e),this.scissorTest=!1,this.viewport=new Qe(0,0,t,e);let i={width:t,height:e,depth:1};n=Object.assign({generateMipmaps:!1,internalFormat:null,minFilter:gi,depthBuffer:!0,stencilBuffer:!1,resolveDepthBuffer:!0,resolveStencilBuffer:!0,depthTexture:null,samples:0,count:1},n);let s=new ii(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 o=n.count;for(let a=0;a<o;a++)this.textures[a]=s.clone(),this.textures[a].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 Ec(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"})}},nr=class extends vf{constructor(t=1,e=1,n={}){super(t,e,n),this.isWebGLRenderTarget=!0}},Tc=class extends ii{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=ti,this.minFilter=ti,this.wrapR=Es,this.generateMipmaps=!1,this.flipY=!1,this.unpackAlignment=1}};var yf=class extends ii{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=ti,this.minFilter=ti,this.wrapR=Es,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,o,a){let l=n[i+0],c=n[i+1],h=n[i+2],f=n[i+3],d=s[o+0],u=s[o+1],_=s[o+2],p=s[o+3];if(a===0){t[e+0]=l,t[e+1]=c,t[e+2]=h,t[e+3]=f;return}if(a===1){t[e+0]=d,t[e+1]=u,t[e+2]=_,t[e+3]=p;return}if(f!==p||l!==d||c!==u||h!==_){let m=1-a,g=l*d+c*u+h*_+f*p,b=g>=0?1:-1,y=1-g*g;if(y>Number.EPSILON){let D=Math.sqrt(y),T=Math.atan2(D,g*b);m=Math.sin(m*T)/D,a=Math.sin(a*T)/D}let S=a*b;if(l=l*m+d*S,c=c*m+u*S,h=h*m+_*S,f=f*m+p*S,m===1-a){let D=1/Math.sqrt(l*l+c*c+h*h+f*f);l*=D,c*=D,h*=D,f*=D}}t[e]=l,t[e+1]=c,t[e+2]=h,t[e+3]=f}static multiplyQuaternionsFlat(t,e,n,i,s,o){let a=n[i],l=n[i+1],c=n[i+2],h=n[i+3],f=s[o],d=s[o+1],u=s[o+2],_=s[o+3];return t[e]=a*_+h*f+l*u-c*d,t[e+1]=l*_+h*d+c*f-a*u,t[e+2]=c*_+h*u+a*d-l*f,t[e+3]=h*_-a*f-l*d-c*u,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,o=t._order,a=Math.cos,l=Math.sin,c=a(n/2),h=a(i/2),f=a(s/2),d=l(n/2),u=l(i/2),_=l(s/2);switch(o){case"XYZ":this._x=d*h*f+c*u*_,this._y=c*u*f-d*h*_,this._z=c*h*_+d*u*f,this._w=c*h*f-d*u*_;break;case"YXZ":this._x=d*h*f+c*u*_,this._y=c*u*f-d*h*_,this._z=c*h*_-d*u*f,this._w=c*h*f+d*u*_;break;case"ZXY":this._x=d*h*f-c*u*_,this._y=c*u*f+d*h*_,this._z=c*h*_+d*u*f,this._w=c*h*f-d*u*_;break;case"ZYX":this._x=d*h*f-c*u*_,this._y=c*u*f+d*h*_,this._z=c*h*_-d*u*f,this._w=c*h*f+d*u*_;break;case"YZX":this._x=d*h*f+c*u*_,this._y=c*u*f+d*h*_,this._z=c*h*_-d*u*f,this._w=c*h*f-d*u*_;break;case"XZY":this._x=d*h*f-c*u*_,this._y=c*u*f-d*h*_,this._z=c*h*_+d*u*f,this._w=c*h*f+d*u*_;break;default:console.warn("THREE.Quaternion: .setFromEuler() encountered an unknown order: "+o)}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],o=e[1],a=e[5],l=e[9],c=e[2],h=e[6],f=e[10],d=n+a+f;if(d>0){let u=.5/Math.sqrt(d+1);this._w=.25/u,this._x=(h-l)*u,this._y=(s-c)*u,this._z=(o-i)*u}else if(n>a&&n>f){let u=2*Math.sqrt(1+n-a-f);this._w=(h-l)/u,this._x=.25*u,this._y=(i+o)/u,this._z=(s+c)/u}else if(a>f){let u=2*Math.sqrt(1+a-n-f);this._w=(s-c)/u,this._x=(i+o)/u,this._y=.25*u,this._z=(l+h)/u}else{let u=2*Math.sqrt(1+f-n-a);this._w=(o-i)/u,this._x=(s+c)/u,this._y=(l+h)/u,this._z=.25*u}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(Fn(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,o=t._w,a=e._x,l=e._y,c=e._z,h=e._w;return this._x=n*h+o*a+i*c-s*l,this._y=i*h+o*l+s*a-n*c,this._z=s*h+o*c+n*l-i*a,this._w=o*h-n*a-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,o=this._w,a=o*t._w+n*t._x+i*t._y+s*t._z;if(a<0?(this._w=-t._w,this._x=-t._x,this._y=-t._y,this._z=-t._z,a=-a):this.copy(t),a>=1)return this._w=o,this._x=n,this._y=i,this._z=s,this;let l=1-a*a;if(l<=Number.EPSILON){let u=1-e;return this._w=u*o+e*this._w,this._x=u*n+e*this._x,this._y=u*i+e*this._y,this._z=u*s+e*this._z,this.normalize(),this}let c=Math.sqrt(l),h=Math.atan2(c,a),f=Math.sin((1-e)*h)/c,d=Math.sin(e*h)/c;return this._w=o*f+this._w*d,this._x=n*f+this._x*d,this._y=i*f+this._y*d,this._z=s*f+this._z*d,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}},nt=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(Hg.setFromEuler(t))}applyAxisAngle(t,e){return this.applyQuaternion(Hg.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,o=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])*o,this.y=(s[1]*e+s[5]*n+s[9]*i+s[13])*o,this.z=(s[2]*e+s[6]*n+s[10]*i+s[14])*o,this}applyQuaternion(t){let e=this.x,n=this.y,i=this.z,s=t.x,o=t.y,a=t.z,l=t.w,c=2*(o*i-a*n),h=2*(a*e-s*i),f=2*(s*n-o*e);return this.x=e+l*c+o*f-a*h,this.y=n+l*h+a*c-s*f,this.z=i+l*f+s*h-o*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,o=e.x,a=e.y,l=e.z;return this.x=i*l-s*a,this.y=s*o-n*l,this.z=n*a-i*o,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 Hh.copy(this).projectOnVector(t),this.sub(Hh)}reflect(t){return this.sub(Hh.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(Fn(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}},Hh=new nt,Hg=new Ur,As=class{constructor(t=new nt(1/0,1/0,1/0),e=new nt(-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(di.fromArray(t,e));return this}setFromBufferAttribute(t){this.makeEmpty();for(let e=0,n=t.count;e<n;e++)this.expandByPoint(di.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=di.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 o=0,a=s.count;o<a;o++)t.isMesh===!0?t.getVertexPosition(o,di):di.fromBufferAttribute(s,o),di.applyMatrix4(t.matrixWorld),this.expandByPoint(di);else t.boundingBox!==void 0?(t.boundingBox===null&&t.computeBoundingBox(),Zl.copy(t.boundingBox)):(n.boundingBox===null&&n.computeBoundingBox(),Zl.copy(n.boundingBox)),Zl.applyMatrix4(t.matrixWorld),this.union(Zl)}let i=t.children;for(let s=0,o=i.length;s<o;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,di),di.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(Aa),Jl.subVectors(this.max,Aa),co.subVectors(t.a,Aa),uo.subVectors(t.b,Aa),ho.subVectors(t.c,Aa),Sr.subVectors(uo,co),Mr.subVectors(ho,uo),gs.subVectors(co,ho);let e=[0,-Sr.z,Sr.y,0,-Mr.z,Mr.y,0,-gs.z,gs.y,Sr.z,0,-Sr.x,Mr.z,0,-Mr.x,gs.z,0,-gs.x,-Sr.y,Sr.x,0,-Mr.y,Mr.x,0,-gs.y,gs.x,0];return!Gh(e,co,uo,ho,Jl)||(e=[1,0,0,0,1,0,0,0,1],!Gh(e,co,uo,ho,Jl))?!1:($l.crossVectors(Sr,Mr),e=[$l.x,$l.y,$l.z],Gh(e,co,uo,ho,Jl))}clampPoint(t,e){return e.copy(t).clamp(this.min,this.max)}distanceToPoint(t){return this.clampPoint(t,di).distanceTo(t)}getBoundingSphere(t){return this.isEmpty()?t.makeEmpty():(this.getCenter(t.center),t.radius=this.getSize(di).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:(qi[0].set(this.min.x,this.min.y,this.min.z).applyMatrix4(t),qi[1].set(this.min.x,this.min.y,this.max.z).applyMatrix4(t),qi[2].set(this.min.x,this.max.y,this.min.z).applyMatrix4(t),qi[3].set(this.min.x,this.max.y,this.max.z).applyMatrix4(t),qi[4].set(this.max.x,this.min.y,this.min.z).applyMatrix4(t),qi[5].set(this.max.x,this.min.y,this.max.z).applyMatrix4(t),qi[6].set(this.max.x,this.max.y,this.min.z).applyMatrix4(t),qi[7].set(this.max.x,this.max.y,this.max.z).applyMatrix4(t),this.setFromPoints(qi),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)}},qi=[new nt,new nt,new nt,new nt,new nt,new nt,new nt,new nt],di=new nt,Zl=new As,co=new nt,uo=new nt,ho=new nt,Sr=new nt,Mr=new nt,gs=new nt,Aa=new nt,Jl=new nt,$l=new nt,_s=new nt;function Gh(r,t,e,n,i){for(let s=0,o=r.length-3;s<=o;s+=3){_s.fromArray(r,s);let a=i.x*Math.abs(_s.x)+i.y*Math.abs(_s.y)+i.z*Math.abs(_s.z),l=t.dot(_s),c=e.dot(_s),h=n.dot(_s);if(Math.max(-Math.max(l,c,h),Math.min(l,c,h))>a)return!1}return!0}var xS=new As,Da=new nt,Wh=new nt,Lo=class{constructor(t=new nt,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):xS.setFromPoints(t).getCenter(n);let i=0;for(let s=0,o=t.length;s<o;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;Da.subVectors(t,this.center);let e=Da.lengthSq();if(e>this.radius*this.radius){let n=Math.sqrt(e),i=(n-this.radius)*.5;this.center.addScaledVector(Da,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):(Wh.subVectors(t.center,this.center).setLength(t.radius),this.expandByPoint(Da.copy(t.center).add(Wh)),this.expandByPoint(Da.copy(t.center).sub(Wh))),this)}equals(t){return t.center.equals(this.center)&&t.radius===this.radius}clone(){return new this.constructor().copy(this)}},Zi=new nt,Xh=new nt,Kl=new nt,br=new nt,Yh=new nt,jl=new nt,qh=new nt,Ac=class{constructor(t=new nt,e=new nt(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,Zi)),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=Zi.subVectors(t,this.origin).dot(this.direction);return e<0?this.origin.distanceToSquared(t):(Zi.copy(this.origin).addScaledVector(this.direction,e),Zi.distanceToSquared(t))}distanceSqToSegment(t,e,n,i){Xh.copy(t).add(e).multiplyScalar(.5),Kl.copy(e).sub(t).normalize(),br.copy(this.origin).sub(Xh);let s=t.distanceTo(e)*.5,o=-this.direction.dot(Kl),a=br.dot(this.direction),l=-br.dot(Kl),c=br.lengthSq(),h=Math.abs(1-o*o),f,d,u,_;if(h>0)if(f=o*l-a,d=o*a-l,_=s*h,f>=0)if(d>=-_)if(d<=_){let p=1/h;f*=p,d*=p,u=f*(f+o*d+2*a)+d*(o*f+d+2*l)+c}else d=s,f=Math.max(0,-(o*d+a)),u=-f*f+d*(d+2*l)+c;else d=-s,f=Math.max(0,-(o*d+a)),u=-f*f+d*(d+2*l)+c;else d<=-_?(f=Math.max(0,-(-o*s+a)),d=f>0?-s:Math.min(Math.max(-s,-l),s),u=-f*f+d*(d+2*l)+c):d<=_?(f=0,d=Math.min(Math.max(-s,-l),s),u=d*(d+2*l)+c):(f=Math.max(0,-(o*s+a)),d=f>0?s:Math.min(Math.max(-s,-l),s),u=-f*f+d*(d+2*l)+c);else d=o>0?-s:s,f=Math.max(0,-(o*d+a)),u=-f*f+d*(d+2*l)+c;return n&&n.copy(this.origin).addScaledVector(this.direction,f),i&&i.copy(Xh).addScaledVector(Kl,d),u}intersectSphere(t,e){Zi.subVectors(t.center,this.origin);let n=Zi.dot(this.direction),i=Zi.dot(Zi)-n*n,s=t.radius*t.radius;if(i>s)return null;let o=Math.sqrt(s-i),a=n-o,l=n+o;return l<0?null:a<0?this.at(l,e):this.at(a,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,o,a,l,c=1/this.direction.x,h=1/this.direction.y,f=1/this.direction.z,d=this.origin;return c>=0?(n=(t.min.x-d.x)*c,i=(t.max.x-d.x)*c):(n=(t.max.x-d.x)*c,i=(t.min.x-d.x)*c),h>=0?(s=(t.min.y-d.y)*h,o=(t.max.y-d.y)*h):(s=(t.max.y-d.y)*h,o=(t.min.y-d.y)*h),n>o||s>i||((s>n||isNaN(n))&&(n=s),(o<i||isNaN(i))&&(i=o),f>=0?(a=(t.min.z-d.z)*f,l=(t.max.z-d.z)*f):(a=(t.max.z-d.z)*f,l=(t.min.z-d.z)*f),n>l||a>i)||((a>n||n!==n)&&(n=a),(l<i||i!==i)&&(i=l),i<0)?null:this.at(n>=0?n:i,e)}intersectsBox(t){return this.intersectBox(t,Zi)!==null}intersectTriangle(t,e,n,i,s){Yh.subVectors(e,t),jl.subVectors(n,t),qh.crossVectors(Yh,jl);let o=this.direction.dot(qh),a;if(o>0){if(i)return null;a=1}else if(o<0)a=-1,o=-o;else return null;br.subVectors(this.origin,t);let l=a*this.direction.dot(jl.crossVectors(br,jl));if(l<0)return null;let c=a*this.direction.dot(Yh.cross(br));if(c<0||l+c>o)return null;let h=-a*br.dot(qh);return h<0?null:this.at(h/o,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)}},Ue=class r{constructor(t,e,n,i,s,o,a,l,c,h,f,d,u,_,p,m){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,o,a,l,c,h,f,d,u,_,p,m)}set(t,e,n,i,s,o,a,l,c,h,f,d,u,_,p,m){let g=this.elements;return g[0]=t,g[4]=e,g[8]=n,g[12]=i,g[1]=s,g[5]=o,g[9]=a,g[13]=l,g[2]=c,g[6]=h,g[10]=f,g[14]=d,g[3]=u,g[7]=_,g[11]=p,g[15]=m,this}identity(){return this.set(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1),this}clone(){return new 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/fo.setFromMatrixColumn(t,0).length(),s=1/fo.setFromMatrixColumn(t,1).length(),o=1/fo.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]*o,e[9]=n[9]*o,e[10]=n[10]*o,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,o=Math.cos(n),a=Math.sin(n),l=Math.cos(i),c=Math.sin(i),h=Math.cos(s),f=Math.sin(s);if(t.order==="XYZ"){let d=o*h,u=o*f,_=a*h,p=a*f;e[0]=l*h,e[4]=-l*f,e[8]=c,e[1]=u+_*c,e[5]=d-p*c,e[9]=-a*l,e[2]=p-d*c,e[6]=_+u*c,e[10]=o*l}else if(t.order==="YXZ"){let d=l*h,u=l*f,_=c*h,p=c*f;e[0]=d+p*a,e[4]=_*a-u,e[8]=o*c,e[1]=o*f,e[5]=o*h,e[9]=-a,e[2]=u*a-_,e[6]=p+d*a,e[10]=o*l}else if(t.order==="ZXY"){let d=l*h,u=l*f,_=c*h,p=c*f;e[0]=d-p*a,e[4]=-o*f,e[8]=_+u*a,e[1]=u+_*a,e[5]=o*h,e[9]=p-d*a,e[2]=-o*c,e[6]=a,e[10]=o*l}else if(t.order==="ZYX"){let d=o*h,u=o*f,_=a*h,p=a*f;e[0]=l*h,e[4]=_*c-u,e[8]=d*c+p,e[1]=l*f,e[5]=p*c+d,e[9]=u*c-_,e[2]=-c,e[6]=a*l,e[10]=o*l}else if(t.order==="YZX"){let d=o*l,u=o*c,_=a*l,p=a*c;e[0]=l*h,e[4]=p-d*f,e[8]=_*f+u,e[1]=f,e[5]=o*h,e[9]=-a*h,e[2]=-c*h,e[6]=u*f+_,e[10]=d-p*f}else if(t.order==="XZY"){let d=o*l,u=o*c,_=a*l,p=a*c;e[0]=l*h,e[4]=-f,e[8]=c*h,e[1]=d*f+p,e[5]=o*h,e[9]=u*f-_,e[2]=_*f-u,e[6]=a*h,e[10]=p*f+d}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(vS,t,yS)}lookAt(t,e,n){let i=this.elements;return Vn.subVectors(t,e),Vn.lengthSq()===0&&(Vn.z=1),Vn.normalize(),wr.crossVectors(n,Vn),wr.lengthSq()===0&&(Math.abs(n.z)===1?Vn.x+=1e-4:Vn.z+=1e-4,Vn.normalize(),wr.crossVectors(n,Vn)),wr.normalize(),Ql.crossVectors(Vn,wr),i[0]=wr.x,i[4]=Ql.x,i[8]=Vn.x,i[1]=wr.y,i[5]=Ql.y,i[9]=Vn.y,i[2]=wr.z,i[6]=Ql.z,i[10]=Vn.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,o=n[0],a=n[4],l=n[8],c=n[12],h=n[1],f=n[5],d=n[9],u=n[13],_=n[2],p=n[6],m=n[10],g=n[14],b=n[3],y=n[7],S=n[11],D=n[15],T=i[0],w=i[4],P=i[8],M=i[12],v=i[1],I=i[5],N=i[9],C=i[13],V=i[2],$=i[6],W=i[10],Z=i[14],z=i[3],U=i[7],R=i[11],at=i[15];return s[0]=o*T+a*v+l*V+c*z,s[4]=o*w+a*I+l*$+c*U,s[8]=o*P+a*N+l*W+c*R,s[12]=o*M+a*C+l*Z+c*at,s[1]=h*T+f*v+d*V+u*z,s[5]=h*w+f*I+d*$+u*U,s[9]=h*P+f*N+d*W+u*R,s[13]=h*M+f*C+d*Z+u*at,s[2]=_*T+p*v+m*V+g*z,s[6]=_*w+p*I+m*$+g*U,s[10]=_*P+p*N+m*W+g*R,s[14]=_*M+p*C+m*Z+g*at,s[3]=b*T+y*v+S*V+D*z,s[7]=b*w+y*I+S*$+D*U,s[11]=b*P+y*N+S*W+D*R,s[15]=b*M+y*C+S*Z+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],o=t[1],a=t[5],l=t[9],c=t[13],h=t[2],f=t[6],d=t[10],u=t[14],_=t[3],p=t[7],m=t[11],g=t[15];return _*(+s*l*f-i*c*f-s*a*d+n*c*d+i*a*u-n*l*u)+p*(+e*l*u-e*c*d+s*o*d-i*o*u+i*c*h-s*l*h)+m*(+e*c*f-e*a*u-s*o*f+n*o*u+s*a*h-n*c*h)+g*(-i*a*h-e*l*f+e*a*d+i*o*f-n*o*d+n*l*h)}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],o=t[4],a=t[5],l=t[6],c=t[7],h=t[8],f=t[9],d=t[10],u=t[11],_=t[12],p=t[13],m=t[14],g=t[15],b=f*m*c-p*d*c+p*l*u-a*m*u-f*l*g+a*d*g,y=_*d*c-h*m*c-_*l*u+o*m*u+h*l*g-o*d*g,S=h*p*c-_*f*c+_*a*u-o*p*u-h*a*g+o*f*g,D=_*f*l-h*p*l-_*a*d+o*p*d+h*a*m-o*f*m,T=e*b+n*y+i*S+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]=b*w,t[1]=(p*d*s-f*m*s-p*i*u+n*m*u+f*i*g-n*d*g)*w,t[2]=(a*m*s-p*l*s+p*i*c-n*m*c-a*i*g+n*l*g)*w,t[3]=(f*l*s-a*d*s-f*i*c+n*d*c+a*i*u-n*l*u)*w,t[4]=y*w,t[5]=(h*m*s-_*d*s+_*i*u-e*m*u-h*i*g+e*d*g)*w,t[6]=(_*l*s-o*m*s-_*i*c+e*m*c+o*i*g-e*l*g)*w,t[7]=(o*d*s-h*l*s+h*i*c-e*d*c-o*i*u+e*l*u)*w,t[8]=S*w,t[9]=(_*f*s-h*p*s-_*n*u+e*p*u+h*n*g-e*f*g)*w,t[10]=(o*p*s-_*a*s+_*n*c-e*p*c-o*n*g+e*a*g)*w,t[11]=(h*a*s-o*f*s-h*n*c+e*f*c+o*n*u-e*a*u)*w,t[12]=D*w,t[13]=(h*p*i-_*f*i+_*n*d-e*p*d-h*n*m+e*f*m)*w,t[14]=(_*a*i-o*p*i-_*n*l+e*p*l+o*n*m-e*a*m)*w,t[15]=(o*f*i-h*a*i+h*n*l-e*f*l-o*n*d+e*a*d)*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,o=t.x,a=t.y,l=t.z,c=s*o,h=s*a;return this.set(c*o+n,c*a-i*l,c*l+i*a,0,c*a+i*l,h*a+n,h*l-i*o,0,c*l-i*a,h*l+i*o,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,o){return this.set(1,n,s,0,t,1,o,0,e,i,1,0,0,0,0,1),this}compose(t,e,n){let i=this.elements,s=e._x,o=e._y,a=e._z,l=e._w,c=s+s,h=o+o,f=a+a,d=s*c,u=s*h,_=s*f,p=o*h,m=o*f,g=a*f,b=l*c,y=l*h,S=l*f,D=n.x,T=n.y,w=n.z;return i[0]=(1-(p+g))*D,i[1]=(u+S)*D,i[2]=(_-y)*D,i[3]=0,i[4]=(u-S)*T,i[5]=(1-(d+g))*T,i[6]=(m+b)*T,i[7]=0,i[8]=(_+y)*w,i[9]=(m-b)*w,i[10]=(1-(d+p))*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=fo.set(i[0],i[1],i[2]).length(),o=fo.set(i[4],i[5],i[6]).length(),a=fo.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],pi.copy(this);let c=1/s,h=1/o,f=1/a;return pi.elements[0]*=c,pi.elements[1]*=c,pi.elements[2]*=c,pi.elements[4]*=h,pi.elements[5]*=h,pi.elements[6]*=h,pi.elements[8]*=f,pi.elements[9]*=f,pi.elements[10]*=f,e.setFromRotationMatrix(pi),n.x=s,n.y=o,n.z=a,this}makePerspective(t,e,n,i,s,o,a=er){let l=this.elements,c=2*s/(e-t),h=2*s/(n-i),f=(e+t)/(e-t),d=(n+i)/(n-i),u,_;if(a===er)u=-(o+s)/(o-s),_=-2*o*s/(o-s);else if(a===bc)u=-o/(o-s),_=-o*s/(o-s);else throw new Error("THREE.Matrix4.makePerspective(): Invalid coordinate system: "+a);return l[0]=c,l[4]=0,l[8]=f,l[12]=0,l[1]=0,l[5]=h,l[9]=d,l[13]=0,l[2]=0,l[6]=0,l[10]=u,l[14]=_,l[3]=0,l[7]=0,l[11]=-1,l[15]=0,this}makeOrthographic(t,e,n,i,s,o,a=er){let l=this.elements,c=1/(e-t),h=1/(n-i),f=1/(o-s),d=(e+t)*c,u=(n+i)*h,_,p;if(a===er)_=(o+s)*f,p=-2*f;else if(a===bc)_=s*f,p=-1*f;else throw new Error("THREE.Matrix4.makeOrthographic(): Invalid coordinate system: "+a);return l[0]=2*c,l[4]=0,l[8]=0,l[12]=-d,l[1]=0,l[5]=2*h,l[9]=0,l[13]=-u,l[2]=0,l[6]=0,l[10]=p,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}},fo=new nt,pi=new Ue,vS=new nt(0,0,0),yS=new nt(1,1,1),wr=new nt,Ql=new nt,Vn=new nt,Gg=new Ue,Wg=new Ur,ir=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],o=i[4],a=i[8],l=i[1],c=i[5],h=i[9],f=i[2],d=i[6],u=i[10];switch(e){case"XYZ":this._y=Math.asin(Fn(a,-1,1)),Math.abs(a)<.9999999?(this._x=Math.atan2(-h,u),this._z=Math.atan2(-o,s)):(this._x=Math.atan2(d,c),this._z=0);break;case"YXZ":this._x=Math.asin(-Fn(h,-1,1)),Math.abs(h)<.9999999?(this._y=Math.atan2(a,u),this._z=Math.atan2(l,c)):(this._y=Math.atan2(-f,s),this._z=0);break;case"ZXY":this._x=Math.asin(Fn(d,-1,1)),Math.abs(d)<.9999999?(this._y=Math.atan2(-f,u),this._z=Math.atan2(-o,c)):(this._y=0,this._z=Math.atan2(l,s));break;case"ZYX":this._y=Math.asin(-Fn(f,-1,1)),Math.abs(f)<.9999999?(this._x=Math.atan2(d,u),this._z=Math.atan2(l,s)):(this._x=0,this._z=Math.atan2(-o,c));break;case"YZX":this._z=Math.asin(Fn(l,-1,1)),Math.abs(l)<.9999999?(this._x=Math.atan2(-h,c),this._y=Math.atan2(-f,s)):(this._x=0,this._y=Math.atan2(a,u));break;case"XZY":this._z=Math.asin(-Fn(o,-1,1)),Math.abs(o)<.9999999?(this._x=Math.atan2(d,c),this._y=Math.atan2(a,s)):(this._x=Math.atan2(-h,u),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 Gg.makeRotationFromQuaternion(t),this.setFromRotationMatrix(Gg,e,n)}setFromVector3(t,e=this._order){return this.set(t.x,t.y,t.z,e)}reorder(t){return Wg.setFromEuler(this),this.setFromQuaternion(Wg,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}};ir.DEFAULT_ORDER="XYZ";var Dc=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}},SS=0,Xg=new nt,po=new Ur,Ji=new Ue,tc=new nt,Ca=new nt,MS=new nt,bS=new Ur,Yg=new nt(1,0,0),qg=new nt(0,1,0),Zg=new nt(0,0,1),Jg={type:"added"},wS={type:"removed"},mo={type:"childadded",child:null},Zh={type:"childremoved",child:null},mn=class r extends Nr{constructor(){super(),this.isObject3D=!0,Object.defineProperty(this,"id",{value:SS++}),this.uuid=Ba(),this.name="",this.type="Object3D",this.parent=null,this.children=[],this.up=r.DEFAULT_UP.clone();let t=new nt,e=new ir,n=new Ur,i=new nt(1,1,1);function s(){n.setFromEuler(e,!1)}function o(){e.setFromQuaternion(n,void 0,!1)}e._onChange(s),n._onChange(o),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 Ue},normalMatrix:{value:new se}}),this.matrix=new Ue,this.matrixWorld=new Ue,this.matrixAutoUpdate=r.DEFAULT_MATRIX_AUTO_UPDATE,this.matrixWorldAutoUpdate=r.DEFAULT_MATRIX_WORLD_AUTO_UPDATE,this.matrixWorldNeedsUpdate=!1,this.layers=new Dc,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 po.setFromAxisAngle(t,e),this.quaternion.multiply(po),this}rotateOnWorldAxis(t,e){return po.setFromAxisAngle(t,e),this.quaternion.premultiply(po),this}rotateX(t){return this.rotateOnAxis(Yg,t)}rotateY(t){return this.rotateOnAxis(qg,t)}rotateZ(t){return this.rotateOnAxis(Zg,t)}translateOnAxis(t,e){return Xg.copy(t).applyQuaternion(this.quaternion),this.position.add(Xg.multiplyScalar(e)),this}translateX(t){return this.translateOnAxis(Yg,t)}translateY(t){return this.translateOnAxis(qg,t)}translateZ(t){return this.translateOnAxis(Zg,t)}localToWorld(t){return this.updateWorldMatrix(!0,!1),t.applyMatrix4(this.matrixWorld)}worldToLocal(t){return this.updateWorldMatrix(!0,!1),t.applyMatrix4(Ji.copy(this.matrixWorld).invert())}lookAt(t,e,n){t.isVector3?tc.copy(t):tc.set(t,e,n);let i=this.parent;this.updateWorldMatrix(!0,!1),Ca.setFromMatrixPosition(this.matrixWorld),this.isCamera||this.isLight?Ji.lookAt(Ca,tc,this.up):Ji.lookAt(tc,Ca,this.up),this.quaternion.setFromRotationMatrix(Ji),i&&(Ji.extractRotation(i.matrixWorld),po.setFromRotationMatrix(Ji),this.quaternion.premultiply(po.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(Jg),mo.child=t,this.dispatchEvent(mo),mo.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(wS),Zh.child=t,this.dispatchEvent(Zh),Zh.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),Ji.copy(this.matrixWorld).invert(),t.parent!==null&&(t.parent.updateWorldMatrix(!0,!1),Ji.multiply(t.parent.matrixWorld)),t.applyMatrix4(Ji),t.removeFromParent(),t.parent=this,this.children.push(t),t.updateWorldMatrix(!1,!0),t.dispatchEvent(Jg),mo.child=t,this.dispatchEvent(mo),mo.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 o=this.children[n].getObjectByProperty(t,e);if(o!==void 0)return o}}getObjectsByProperty(t,e,n=[]){this[t]===e&&n.push(this);let i=this.children;for(let s=0,o=i.length;s<o;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(Ca,t,MS),t}getWorldScale(t){return this.updateWorldMatrix(!0,!1),this.matrixWorld.decompose(Ca,bS,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,o=i.length;s<o;s++){let a=i[s];a.matrixWorldAutoUpdate===!0&&a.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(a=>({boxInitialized:a.boxInitialized,boxMin:a.box.min.toArray(),boxMax:a.box.max.toArray(),sphereInitialized:a.sphereInitialized,sphereRadius:a.sphere.radius,sphereCenter:a.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(a,l){return a[l.uuid]===void 0&&(a[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 a=this.geometry.parameters;if(a!==void 0&&a.shapes!==void 0){let l=a.shapes;if(Array.isArray(l))for(let c=0,h=l.length;c<h;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 a=[];for(let l=0,c=this.material.length;l<c;l++)a.push(s(t.materials,this.material[l]));i.material=a}else i.material=s(t.materials,this.material);if(this.children.length>0){i.children=[];for(let a=0;a<this.children.length;a++)i.children.push(this.children[a].toJSON(t).object)}if(this.animations.length>0){i.animations=[];for(let a=0;a<this.animations.length;a++){let l=this.animations[a];i.animations.push(s(t.animations,l))}}if(e){let a=o(t.geometries),l=o(t.materials),c=o(t.textures),h=o(t.images),f=o(t.shapes),d=o(t.skeletons),u=o(t.animations),_=o(t.nodes);a.length>0&&(n.geometries=a),l.length>0&&(n.materials=l),c.length>0&&(n.textures=c),h.length>0&&(n.images=h),f.length>0&&(n.shapes=f),d.length>0&&(n.skeletons=d),u.length>0&&(n.animations=u),_.length>0&&(n.nodes=_)}return n.object=i,n;function o(a){let l=[];for(let c in a){let h=a[c];delete h.metadata,l.push(h)}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}};mn.DEFAULT_UP=new nt(0,1,0);mn.DEFAULT_MATRIX_AUTO_UPDATE=!0;mn.DEFAULT_MATRIX_WORLD_AUTO_UPDATE=!0;var mi=new nt,$i=new nt,Jh=new nt,Ki=new nt,go=new nt,_o=new nt,$g=new nt,$h=new nt,Kh=new nt,jh=new nt,Eo=class r{constructor(t=new nt,e=new nt,n=new nt){this.a=t,this.b=e,this.c=n}static getNormal(t,e,n,i){i.subVectors(n,e),mi.subVectors(t,e),i.cross(mi);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){mi.subVectors(i,e),$i.subVectors(n,e),Jh.subVectors(t,e);let o=mi.dot(mi),a=mi.dot($i),l=mi.dot(Jh),c=$i.dot($i),h=$i.dot(Jh),f=o*c-a*a;if(f===0)return s.set(0,0,0),null;let d=1/f,u=(c*l-a*h)*d,_=(o*h-a*l)*d;return s.set(1-u-_,_,u)}static containsPoint(t,e,n,i){return this.getBarycoord(t,e,n,i,Ki)===null?!1:Ki.x>=0&&Ki.y>=0&&Ki.x+Ki.y<=1}static getInterpolation(t,e,n,i,s,o,a,l){return this.getBarycoord(t,e,n,i,Ki)===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,Ki.x),l.addScaledVector(o,Ki.y),l.addScaledVector(a,Ki.z),l)}static isFrontFacing(t,e,n,i){return mi.subVectors(n,e),$i.subVectors(t,e),mi.cross($i).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 mi.subVectors(this.c,this.b),$i.subVectors(this.a,this.b),mi.cross($i).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,o,a;go.subVectors(i,n),_o.subVectors(s,n),$h.subVectors(t,n);let l=go.dot($h),c=_o.dot($h);if(l<=0&&c<=0)return e.copy(n);Kh.subVectors(t,i);let h=go.dot(Kh),f=_o.dot(Kh);if(h>=0&&f<=h)return e.copy(i);let d=l*f-h*c;if(d<=0&&l>=0&&h<=0)return o=l/(l-h),e.copy(n).addScaledVector(go,o);jh.subVectors(t,s);let u=go.dot(jh),_=_o.dot(jh);if(_>=0&&u<=_)return e.copy(s);let p=u*c-l*_;if(p<=0&&c>=0&&_<=0)return a=c/(c-_),e.copy(n).addScaledVector(_o,a);let m=h*_-u*f;if(m<=0&&f-h>=0&&u-_>=0)return $g.subVectors(s,i),a=(f-h)/(f-h+(u-_)),e.copy(i).addScaledVector($g,a);let g=1/(m+p+d);return o=p*g,a=d*g,e.copy(n).addScaledVector(go,o).addScaledVector(_o,a)}equals(t){return t.a.equals(this.a)&&t.b.equals(this.b)&&t.c.equals(this.c)}},V_={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},Er={h:0,s:0,l:0},ec={h:0,s:0,l:0};function Qh(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 ge=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=Qn){return t=Math.floor(t),this.r=(t>>16&255)/255,this.g=(t>>8&255)/255,this.b=(t&255)/255,Se.toWorkingColorSpace(this,e),this}setRGB(t,e,n,i=Se.workingColorSpace){return this.r=t,this.g=e,this.b=n,Se.toWorkingColorSpace(this,i),this}setHSL(t,e,n,i=Se.workingColorSpace){if(t=fS(t,1),e=Fn(e,0,1),n=Fn(n,0,1),e===0)this.r=this.g=this.b=n;else{let s=n<=.5?n*(1+e):n+e-n*e,o=2*n-s;this.r=Qh(o,s,t+1/3),this.g=Qh(o,s,t),this.b=Qh(o,s,t-1/3)}return Se.toWorkingColorSpace(this,i),this}setStyle(t,e=Qn){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,o=i[1],a=i[2];switch(o){case"rgb":case"rgba":if(s=/^\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(a))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(a))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(a))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],o=s.length;if(o===3)return this.setRGB(parseInt(s.charAt(0),16)/15,parseInt(s.charAt(1),16)/15,parseInt(s.charAt(2),16)/15,e);if(o===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=Qn){let n=V_[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=Do(t.r),this.g=Do(t.g),this.b=Do(t.b),this}copyLinearToSRGB(t){return this.r=zh(t.r),this.g=zh(t.g),this.b=zh(t.b),this}convertSRGBToLinear(){return this.copySRGBToLinear(this),this}convertLinearToSRGB(){return this.copyLinearToSRGB(this),this}getHex(t=Qn){return Se.fromWorkingColorSpace(pn.copy(this),t),Math.round(Fn(pn.r*255,0,255))*65536+Math.round(Fn(pn.g*255,0,255))*256+Math.round(Fn(pn.b*255,0,255))}getHexString(t=Qn){return("000000"+this.getHex(t).toString(16)).slice(-6)}getHSL(t,e=Se.workingColorSpace){Se.fromWorkingColorSpace(pn.copy(this),e);let n=pn.r,i=pn.g,s=pn.b,o=Math.max(n,i,s),a=Math.min(n,i,s),l,c,h=(a+o)/2;if(a===o)l=0,c=0;else{let f=o-a;switch(c=h<=.5?f/(o+a):f/(2-o-a),o){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=h,t}getRGB(t,e=Se.workingColorSpace){return Se.fromWorkingColorSpace(pn.copy(this),e),t.r=pn.r,t.g=pn.g,t.b=pn.b,t}getStyle(t=Qn){Se.fromWorkingColorSpace(pn.copy(this),t);let e=pn.r,n=pn.g,i=pn.b;return t!==Qn?`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(Er),this.setHSL(Er.h+t,Er.s+e,Er.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(Er),t.getHSL(ec);let n=Bh(Er.h,ec.h,e),i=Bh(Er.s,ec.s,e),s=Bh(Er.l,ec.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}},pn=new ge;ge.NAMES=V_;var ES=0,Ds=class extends Nr{constructor(){super(),this.isMaterial=!0,Object.defineProperty(this,"id",{value:ES++}),this.uuid=Ba(),this.name="",this.type="Material",this.blending=Pr,this.side=Lr,this.vertexColors=!1,this.opacity=1,this.transparent=!1,this.alphaHash=!1,this.blendSrc=hf,this.blendDst=ff,this.blendEquation=bs,this.blendSrcAlpha=null,this.blendDstAlpha=null,this.blendEquationAlpha=null,this.blendColor=new ge(0,0,0),this.blendAlpha=0,this.depthFunc=_c,this.depthTest=!0,this.depthWrite=!0,this.stencilWriteMask=255,this.stencilFunc=Ug,this.stencilRef=0,this.stencilFuncMask=255,this.stencilFail=ao,this.stencilZFail=ao,this.stencilZPass=ao,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!==Pr&&(n.blending=this.blending),this.side!==Lr&&(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!==hf&&(n.blendSrc=this.blendSrc),this.blendDst!==ff&&(n.blendDst=this.blendDst),this.blendEquation!==bs&&(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!==_c&&(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!==Ug&&(n.stencilFunc=this.stencilFunc),this.stencilRef!==0&&(n.stencilRef=this.stencilRef),this.stencilFuncMask!==255&&(n.stencilFuncMask=this.stencilFuncMask),this.stencilFail!==ao&&(n.stencilFail=this.stencilFail),this.stencilZFail!==ao&&(n.stencilZFail=this.stencilZFail),this.stencilZPass!==ao&&(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 o=[];for(let a in s){let l=s[a];delete l.metadata,o.push(l)}return o}if(e){let s=i(t.textures),o=i(t.images);s.length>0&&(n.textures=s),o.length>0&&(n.images=o)}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++}},Cc=class extends Ds{constructor(t){super(),this.isMeshBasicMaterial=!0,this.type="MeshBasicMaterial",this.color=new ge(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 ir,this.combine=R_,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 Ve=new nt,nc=new _e,ei=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=Og,this._updateRange={offset:0,count:-1},this.updateRanges=[],this.gpuType=Dr,this.version=0}onUploadCallback(){}set needsUpdate(t){t===!0&&this.version++}get updateRange(){return pS("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++)nc.fromBufferAttribute(this,e),nc.applyMatrix3(t),this.setXY(e,nc.x,nc.y);else if(this.itemSize===3)for(let e=0,n=this.count;e<n;e++)Ve.fromBufferAttribute(this,e),Ve.applyMatrix3(t),this.setXYZ(e,Ve.x,Ve.y,Ve.z);return this}applyMatrix4(t){for(let e=0,n=this.count;e<n;e++)Ve.fromBufferAttribute(this,e),Ve.applyMatrix4(t),this.setXYZ(e,Ve.x,Ve.y,Ve.z);return this}applyNormalMatrix(t){for(let e=0,n=this.count;e<n;e++)Ve.fromBufferAttribute(this,e),Ve.applyNormalMatrix(t),this.setXYZ(e,Ve.x,Ve.y,Ve.z);return this}transformDirection(t){for(let e=0,n=this.count;e<n;e++)Ve.fromBufferAttribute(this,e),Ve.transformDirection(t),this.setXYZ(e,Ve.x,Ve.y,Ve.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=Ta(n,this.array)),n}setComponent(t,e,n){return this.normalized&&(n=Ln(n,this.array)),this.array[t*this.itemSize+e]=n,this}getX(t){let e=this.array[t*this.itemSize];return this.normalized&&(e=Ta(e,this.array)),e}setX(t,e){return this.normalized&&(e=Ln(e,this.array)),this.array[t*this.itemSize]=e,this}getY(t){let e=this.array[t*this.itemSize+1];return this.normalized&&(e=Ta(e,this.array)),e}setY(t,e){return this.normalized&&(e=Ln(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=Ta(e,this.array)),e}setZ(t,e){return this.normalized&&(e=Ln(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=Ta(e,this.array)),e}setW(t,e){return this.normalized&&(e=Ln(e,this.array)),this.array[t*this.itemSize+3]=e,this}setXY(t,e,n){return t*=this.itemSize,this.normalized&&(e=Ln(e,this.array),n=Ln(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=Ln(e,this.array),n=Ln(n,this.array),i=Ln(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=Ln(e,this.array),n=Ln(n,this.array),i=Ln(i,this.array),s=Ln(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!==Og&&(t.usage=this.usage),t}};var Rc=class extends ei{constructor(t,e,n){super(new Uint16Array(t),e,n)}};var Pc=class extends ei{constructor(t,e,n){super(new Uint32Array(t),e,n)}};var ni=class extends ei{constructor(t,e,n){super(new Float32Array(t),e,n)}},TS=0,jn=new Ue,tf=new mn,xo=new nt,Hn=new As,Ra=new As,je=new nt,Ni=class r extends Nr{constructor(){super(),this.isBufferGeometry=!0,Object.defineProperty(this,"id",{value:TS++}),this.uuid=Ba(),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(z_(t)?Pc:Rc)(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 se().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 jn.makeRotationFromQuaternion(t),this.applyMatrix4(jn),this}rotateX(t){return jn.makeRotationX(t),this.applyMatrix4(jn),this}rotateY(t){return jn.makeRotationY(t),this.applyMatrix4(jn),this}rotateZ(t){return jn.makeRotationZ(t),this.applyMatrix4(jn),this}translate(t,e,n){return jn.makeTranslation(t,e,n),this.applyMatrix4(jn),this}scale(t,e,n){return jn.makeScale(t,e,n),this.applyMatrix4(jn),this}lookAt(t){return tf.lookAt(t),tf.updateMatrix(),this.applyMatrix4(tf.matrix),this}center(){return this.computeBoundingBox(),this.boundingBox.getCenter(xo).negate(),this.translate(xo.x,xo.y,xo.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 ni(e,3)),this}computeBoundingBox(){this.boundingBox===null&&(this.boundingBox=new As);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 nt(-1/0,-1/0,-1/0),new nt(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];Hn.setFromBufferAttribute(s),this.morphTargetsRelative?(je.addVectors(this.boundingBox.min,Hn.min),this.boundingBox.expandByPoint(je),je.addVectors(this.boundingBox.max,Hn.max),this.boundingBox.expandByPoint(je)):(this.boundingBox.expandByPoint(Hn.min),this.boundingBox.expandByPoint(Hn.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 Lo);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 nt,1/0);return}if(t){let n=this.boundingSphere.center;if(Hn.setFromBufferAttribute(t),e)for(let s=0,o=e.length;s<o;s++){let a=e[s];Ra.setFromBufferAttribute(a),this.morphTargetsRelative?(je.addVectors(Hn.min,Ra.min),Hn.expandByPoint(je),je.addVectors(Hn.max,Ra.max),Hn.expandByPoint(je)):(Hn.expandByPoint(Ra.min),Hn.expandByPoint(Ra.max))}Hn.getCenter(n);let i=0;for(let s=0,o=t.count;s<o;s++)je.fromBufferAttribute(t,s),i=Math.max(i,n.distanceToSquared(je));if(e)for(let s=0,o=e.length;s<o;s++){let a=e[s],l=this.morphTargetsRelative;for(let c=0,h=a.count;c<h;c++)je.fromBufferAttribute(a,c),l&&(xo.fromBufferAttribute(t,c),je.add(xo)),i=Math.max(i,n.distanceToSquared(je))}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 ei(new Float32Array(4*n.count),4));let o=this.getAttribute("tangent"),a=[],l=[];for(let P=0;P<n.count;P++)a[P]=new nt,l[P]=new nt;let c=new nt,h=new nt,f=new nt,d=new _e,u=new _e,_=new _e,p=new nt,m=new nt;function g(P,M,v){c.fromBufferAttribute(n,P),h.fromBufferAttribute(n,M),f.fromBufferAttribute(n,v),d.fromBufferAttribute(s,P),u.fromBufferAttribute(s,M),_.fromBufferAttribute(s,v),h.sub(c),f.sub(c),u.sub(d),_.sub(d);let I=1/(u.x*_.y-_.x*u.y);isFinite(I)&&(p.copy(h).multiplyScalar(_.y).addScaledVector(f,-u.y).multiplyScalar(I),m.copy(f).multiplyScalar(u.x).addScaledVector(h,-_.x).multiplyScalar(I),a[P].add(p),a[M].add(p),a[v].add(p),l[P].add(m),l[M].add(m),l[v].add(m))}let b=this.groups;b.length===0&&(b=[{start:0,count:t.count}]);for(let P=0,M=b.length;P<M;++P){let v=b[P],I=v.start,N=v.count;for(let C=I,V=I+N;C<V;C+=3)g(t.getX(C+0),t.getX(C+1),t.getX(C+2))}let y=new nt,S=new nt,D=new nt,T=new nt;function w(P){D.fromBufferAttribute(i,P),T.copy(D);let M=a[P];y.copy(M),y.sub(D.multiplyScalar(D.dot(M))).normalize(),S.crossVectors(T,M);let I=S.dot(l[P])<0?-1:1;o.setXYZW(P,y.x,y.y,y.z,I)}for(let P=0,M=b.length;P<M;++P){let v=b[P],I=v.start,N=v.count;for(let C=I,V=I+N;C<V;C+=3)w(t.getX(C+0)),w(t.getX(C+1)),w(t.getX(C+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 ei(new Float32Array(e.count*3),3),this.setAttribute("normal",n);else for(let d=0,u=n.count;d<u;d++)n.setXYZ(d,0,0,0);let i=new nt,s=new nt,o=new nt,a=new nt,l=new nt,c=new nt,h=new nt,f=new nt;if(t)for(let d=0,u=t.count;d<u;d+=3){let _=t.getX(d+0),p=t.getX(d+1),m=t.getX(d+2);i.fromBufferAttribute(e,_),s.fromBufferAttribute(e,p),o.fromBufferAttribute(e,m),h.subVectors(o,s),f.subVectors(i,s),h.cross(f),a.fromBufferAttribute(n,_),l.fromBufferAttribute(n,p),c.fromBufferAttribute(n,m),a.add(h),l.add(h),c.add(h),n.setXYZ(_,a.x,a.y,a.z),n.setXYZ(p,l.x,l.y,l.z),n.setXYZ(m,c.x,c.y,c.z)}else for(let d=0,u=e.count;d<u;d+=3)i.fromBufferAttribute(e,d+0),s.fromBufferAttribute(e,d+1),o.fromBufferAttribute(e,d+2),h.subVectors(o,s),f.subVectors(i,s),h.cross(f),n.setXYZ(d+0,h.x,h.y,h.z),n.setXYZ(d+1,h.x,h.y,h.z),n.setXYZ(d+2,h.x,h.y,h.z);this.normalizeNormals(),n.needsUpdate=!0}}normalizeNormals(){let t=this.attributes.normal;for(let e=0,n=t.count;e<n;e++)je.fromBufferAttribute(t,e),je.normalize(),t.setXYZ(e,je.x,je.y,je.z)}toNonIndexed(){function t(a,l){let c=a.array,h=a.itemSize,f=a.normalized,d=new c.constructor(l.length*h),u=0,_=0;for(let p=0,m=l.length;p<m;p++){a.isInterleavedBufferAttribute?u=l[p]*a.data.stride+a.offset:u=l[p]*h;for(let g=0;g<h;g++)d[_++]=c[u++]}return new ei(d,h,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 a in i){let l=i[a],c=t(l,n);e.setAttribute(a,c)}let s=this.morphAttributes;for(let a in s){let l=[],c=s[a];for(let h=0,f=c.length;h<f;h++){let d=c[h],u=t(d,n);l.push(u)}e.morphAttributes[a]=l}e.morphTargetsRelative=this.morphTargetsRelative;let o=this.groups;for(let a=0,l=o.length;a<l;a++){let c=o[a];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],h=[];for(let f=0,d=c.length;f<d;f++){let u=c[f];h.push(u.toJSON(t.data))}h.length>0&&(i[l]=h,s=!0)}s&&(t.data.morphAttributes=i,t.data.morphTargetsRelative=this.morphTargetsRelative);let o=this.groups;o.length>0&&(t.data.groups=JSON.parse(JSON.stringify(o)));let a=this.boundingSphere;return a!==null&&(t.data.boundingSphere={center:a.center.toArray(),radius:a.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 h=i[c];this.setAttribute(c,h.clone(e))}let s=t.morphAttributes;for(let c in s){let h=[],f=s[c];for(let d=0,u=f.length;d<u;d++)h.push(f[d].clone(e));this.morphAttributes[c]=h}this.morphTargetsRelative=t.morphTargetsRelative;let o=t.groups;for(let c=0,h=o.length;c<h;c++){let f=o[c];this.addGroup(f.start,f.count,f.materialIndex)}let a=t.boundingBox;a!==null&&(this.boundingBox=a.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"})}},Kg=new Ue,xs=new Ac,ic=new Lo,jg=new nt,vo=new nt,yo=new nt,So=new nt,ef=new nt,rc=new nt,sc=new _e,oc=new _e,ac=new _e,Qg=new nt,t_=new nt,e_=new nt,lc=new nt,cc=new nt,_i=class extends mn{constructor(t=new Ni,e=new Cc){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,o=i.length;s<o;s++){let a=i[s].name||String(s);this.morphTargetInfluences.push(0),this.morphTargetDictionary[a]=s}}}}getVertexPosition(t,e){let n=this.geometry,i=n.attributes.position,s=n.morphAttributes.position,o=n.morphTargetsRelative;e.fromBufferAttribute(i,t);let a=this.morphTargetInfluences;if(s&&a){rc.set(0,0,0);for(let l=0,c=s.length;l<c;l++){let h=a[l],f=s[l];h!==0&&(ef.fromBufferAttribute(f,t),o?rc.addScaledVector(ef,h):rc.addScaledVector(ef.sub(e),h))}e.add(rc)}return e}raycast(t,e){let n=this.geometry,i=this.material,s=this.matrixWorld;i!==void 0&&(n.boundingSphere===null&&n.computeBoundingSphere(),ic.copy(n.boundingSphere),ic.applyMatrix4(s),xs.copy(t.ray).recast(t.near),!(ic.containsPoint(xs.origin)===!1&&(xs.intersectSphere(ic,jg)===null||xs.origin.distanceToSquared(jg)>(t.far-t.near)**2))&&(Kg.copy(s).invert(),xs.copy(t.ray).applyMatrix4(Kg),!(n.boundingBox!==null&&xs.intersectsBox(n.boundingBox)===!1)&&this._computeIntersections(t,e,xs)))}_computeIntersections(t,e,n){let i,s=this.geometry,o=this.material,a=s.index,l=s.attributes.position,c=s.attributes.uv,h=s.attributes.uv1,f=s.attributes.normal,d=s.groups,u=s.drawRange;if(a!==null)if(Array.isArray(o))for(let _=0,p=d.length;_<p;_++){let m=d[_],g=o[m.materialIndex],b=Math.max(m.start,u.start),y=Math.min(a.count,Math.min(m.start+m.count,u.start+u.count));for(let S=b,D=y;S<D;S+=3){let T=a.getX(S),w=a.getX(S+1),P=a.getX(S+2);i=uc(this,g,t,n,c,h,f,T,w,P),i&&(i.faceIndex=Math.floor(S/3),i.face.materialIndex=m.materialIndex,e.push(i))}}else{let _=Math.max(0,u.start),p=Math.min(a.count,u.start+u.count);for(let m=_,g=p;m<g;m+=3){let b=a.getX(m),y=a.getX(m+1),S=a.getX(m+2);i=uc(this,o,t,n,c,h,f,b,y,S),i&&(i.faceIndex=Math.floor(m/3),e.push(i))}}else if(l!==void 0)if(Array.isArray(o))for(let _=0,p=d.length;_<p;_++){let m=d[_],g=o[m.materialIndex],b=Math.max(m.start,u.start),y=Math.min(l.count,Math.min(m.start+m.count,u.start+u.count));for(let S=b,D=y;S<D;S+=3){let T=S,w=S+1,P=S+2;i=uc(this,g,t,n,c,h,f,T,w,P),i&&(i.faceIndex=Math.floor(S/3),i.face.materialIndex=m.materialIndex,e.push(i))}}else{let _=Math.max(0,u.start),p=Math.min(l.count,u.start+u.count);for(let m=_,g=p;m<g;m+=3){let b=m,y=m+1,S=m+2;i=uc(this,o,t,n,c,h,f,b,y,S),i&&(i.faceIndex=Math.floor(m/3),e.push(i))}}}};function AS(r,t,e,n,i,s,o,a){let l;if(t.side===Nn?l=n.intersectTriangle(o,s,i,!0,a):l=n.intersectTriangle(i,s,o,t.side===Lr,a),l===null)return null;cc.copy(a),cc.applyMatrix4(r.matrixWorld);let c=e.ray.origin.distanceTo(cc);return c<e.near||c>e.far?null:{distance:c,point:cc.clone(),object:r}}function uc(r,t,e,n,i,s,o,a,l,c){r.getVertexPosition(a,vo),r.getVertexPosition(l,yo),r.getVertexPosition(c,So);let h=AS(r,t,e,n,vo,yo,So,lc);if(h){i&&(sc.fromBufferAttribute(i,a),oc.fromBufferAttribute(i,l),ac.fromBufferAttribute(i,c),h.uv=Eo.getInterpolation(lc,vo,yo,So,sc,oc,ac,new _e)),s&&(sc.fromBufferAttribute(s,a),oc.fromBufferAttribute(s,l),ac.fromBufferAttribute(s,c),h.uv1=Eo.getInterpolation(lc,vo,yo,So,sc,oc,ac,new _e)),o&&(Qg.fromBufferAttribute(o,a),t_.fromBufferAttribute(o,l),e_.fromBufferAttribute(o,c),h.normal=Eo.getInterpolation(lc,vo,yo,So,Qg,t_,e_,new nt),h.normal.dot(n.direction)>0&&h.normal.multiplyScalar(-1));let f={a,b:l,c,normal:new nt,materialIndex:0};Eo.getNormal(vo,yo,So,f.normal),h.face=f}return h}var Fa=class r extends Ni{constructor(t=1,e=1,n=1,i=1,s=1,o=1){super(),this.type="BoxGeometry",this.parameters={width:t,height:e,depth:n,widthSegments:i,heightSegments:s,depthSegments:o};let a=this;i=Math.floor(i),s=Math.floor(s),o=Math.floor(o);let l=[],c=[],h=[],f=[],d=0,u=0;_("z","y","x",-1,-1,n,e,t,o,s,0),_("z","y","x",1,-1,n,e,-t,o,s,1),_("x","z","y",1,1,t,n,e,i,o,2),_("x","z","y",1,-1,t,n,-e,i,o,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 ni(c,3)),this.setAttribute("normal",new ni(h,3)),this.setAttribute("uv",new ni(f,2));function _(p,m,g,b,y,S,D,T,w,P,M){let v=S/w,I=D/P,N=S/2,C=D/2,V=T/2,$=w+1,W=P+1,Z=0,z=0,U=new nt;for(let R=0;R<W;R++){let at=R*I-C;for(let _t=0;_t<$;_t++){let Ut=_t*v-N;U[p]=Ut*b,U[m]=at*y,U[g]=V,c.push(U.x,U.y,U.z),U[p]=0,U[m]=0,U[g]=T>0?1:-1,h.push(U.x,U.y,U.z),f.push(_t/w),f.push(1-R/P),Z+=1}}for(let R=0;R<P;R++)for(let at=0;at<w;at++){let _t=d+at+$*R,Ut=d+at+$*(R+1),X=d+(at+1)+$*(R+1),ot=d+(at+1)+$*R;l.push(_t,Ut,ot),l.push(Ut,X,ot),z+=6}a.addGroup(u,z,M),u+=z,d+=Z}}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 Fo(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 Tn(r){let t={};for(let e=0;e<r.length;e++){let n=Fo(r[e]);for(let i in n)t[i]=n[i]}return t}function DS(r){let t=[];for(let e=0;e<r.length;e++)t.push(r[e].clone());return t}function H_(r){let t=r.getRenderTarget();return t===null?r.outputColorSpace:t.isXRRenderTarget===!0?t.texture.colorSpace:Se.workingColorSpace}var CS={clone:Fo,merge:Tn},RS=`void main() {
|
|
1
|
+
(()=>{function Oi(r){if(r===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r}function Fd(r,t){r.prototype=Object.create(t.prototype),r.prototype.constructor=r,r.__proto__=t}var Pn={autoSleep:120,force3D:"auto",nullTargetWarn:1,units:{lineHeight:""}},ks={duration:.5,overwrite:!1,delay:0},Au,an,Ae,Yn=1e8,we=1/Yn,gu=Math.PI*2,W0=gu/4,X0=0,Nd=Math.sqrt,Y0=Math.cos,q0=Math.sin,Ge=function(t){return typeof t=="string"},Ie=function(t){return typeof t=="function"},ki=function(t){return typeof t=="number"},cl=function(t){return typeof t>"u"},Ti=function(t){return typeof t=="object"},Rn=function(t){return t!==!1},Du=function(){return typeof window<"u"},tl=function(t){return Ie(t)||Ge(t)},Ud=typeof ArrayBuffer=="function"&&ArrayBuffer.isView||function(){},ln=Array.isArray,_u=/(?:-?\.?\d|\.)+/gi,Cu=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,$r=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,cu=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,Ru=/[+-]=-?[.\d]+/,Od=/[^,'"\[\]\s]+/gi,Z0=/^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i,Ce,wi,xu,Pu,On={},rl={},Bd,kd=function(t){return(rl=Jr(t,On))&&cn},ul=function(t,e){return console.warn("Invalid property",t,"set to",e,"Missing plugin? gsap.registerPlugin()")},jo=function(t,e){return!e&&console.warn(t)},zd=function(t,e){return t&&(On[t]=e)&&rl&&(rl[t]=e)||On},Qo=function(){return 0},J0={suppressEvents:!0,isStart:!0,kill:!1},el={suppressEvents:!0,kill:!1},$0={suppressEvents:!0},Iu={},ur=[],vu={},Vd,Dn={},uu={},Ad=30,nl=[],Lu="",Fu=function(t){var e=t[0],n,i;if(Ti(e)||Ie(e)||(t=[t]),!(n=(e._gsap||{}).harness)){for(i=nl.length;i--&&!nl[i].targetTest(e););n=nl[i]}for(i=t.length;i--;)t[i]&&(t[i]._gsap||(t[i]._gsap=new Ou(t[i],n)))||t.splice(i,1);return t},hr=function(t){return t._gsap||Fu(qn(t))[0]._gsap},Nu=function(t,e,n){return(n=t[e])&&Ie(n)?t[e]():cl(n)&&t.getAttribute&&t.getAttribute(e)||n},_n=function(t,e){return(t=t.split(",")).forEach(e)||t},Le=function(t){return Math.round(t*1e5)/1e5||0},Je=function(t){return Math.round(t*1e7)/1e7||0},Kr=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},K0=function(t,e){for(var n=e.length,i=0;t.indexOf(e[i])<0&&++i<n;);return i<n},sl=function(){var t=ur.length,e=ur.slice(0),n,i;for(vu={},ur.length=0,n=0;n<t;n++)i=e[n],i&&i._lazy&&(i.render(i._lazy[0],i._lazy[1],!0)._lazy=0)},Hd=function(t,e,n,i){ur.length&&!an&&sl(),t.render(e,n,i||an&&e<0&&(t._initted||t._startAt)),ur.length&&!an&&sl()},Gd=function(t){var e=parseFloat(t);return(e||e===0)&&(t+"").match(Od).length<2?e:Ge(t)?t.trim():t},Wd=function(t){return t},Zn=function(t,e){for(var n in e)n in t||(t[n]=e[n]);return t},j0=function(t){return function(e,n){for(var i in n)i in e||i==="duration"&&t||i==="ease"||(e[i]=n[i])}},Jr=function(t,e){for(var n in e)t[n]=e[n];return t},Dd=function r(t,e){for(var n in e)n!=="__proto__"&&n!=="constructor"&&n!=="prototype"&&(t[n]=Ti(e[n])?r(t[n]||(t[n]={}),e[n]):e[n]);return t},ol=function(t,e){var n={},i;for(i in t)i in e||(n[i]=t[i]);return n},Jo=function(t){var e=t.parent||Ce,n=t.keyframes?j0(ln(t.keyframes)):Zn;if(Rn(t.inherit))for(;e;)n(t,e.vars.defaults),e=e.parent||e._dp;return t},Q0=function(t,e){for(var n=t.length,i=n===e.length;i&&n--&&t[n]===e[n];);return n<0},Xd=function(t,e,n,i,s){n===void 0&&(n="_first"),i===void 0&&(i="_last");var o=t[i],a;if(s)for(a=e[s];o&&o[s]>a;)o=o._prev;return o?(e._next=o._next,o._next=e):(e._next=t[n],t[n]=e),e._next?e._next._prev=e:t[i]=e,e._prev=o,e.parent=e._dp=t,e},hl=function(t,e,n,i){n===void 0&&(n="_first"),i===void 0&&(i="_last");var s=e._prev,o=e._next;s?s._next=o:t[n]===e&&(t[n]=o),o?o._prev=s:t[i]===e&&(t[i]=s),e._next=e._prev=e.parent=null},fr=function(t,e){t.parent&&(!e||t.parent.autoRemoveChildren)&&t.parent.remove&&t.parent.remove(t),t._act=0},Yr=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},tx=function(t){for(var e=t.parent;e&&e.parent;)e._dirty=1,e.totalDuration(),e=e.parent;return t},yu=function(t,e,n,i){return t._startAt&&(an?t._startAt.revert(el):t.vars.immediateRender&&!t.vars.autoRevert||t._startAt.render(e,!0,i))},ex=function r(t){return!t||t._ts&&r(t.parent)},Cd=function(t){return t._repeat?zs(t._tTime,t=t.duration()+t._rDelay)*t:0},zs=function(t,e){var n=Math.floor(t/=e);return t&&n===t?n-1:n},al=function(t,e){return(t-e._start)*e._ts+(e._ts>=0?0:e._dirty?e.totalDuration():e._tDur)},fl=function(t){return t._end=Je(t._start+(t._tDur/Math.abs(t._ts||t._rts||we)||0))},dl=function(t,e){var n=t._dp;return n&&n.smoothChildTiming&&t._ts&&(t._start=Je(n._time-(t._ts>0?e/t._ts:((t._dirty?t.totalDuration():t._tDur)-e)/-t._ts)),fl(t),n._dirty||Yr(n,t)),t},Yd=function(t,e){var n;if((e._time||!e._dur&&e._initted||e._start<t._time&&(e._dur||!e.add))&&(n=al(t.rawTime(),e),(!e._dur||na(0,e.totalDuration(),n)-e._tTime>we)&&e.render(n,!0)),Yr(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=-we}},Ei=function(t,e,n,i){return e.parent&&fr(e),e._start=Je((ki(n)?n:n||t!==Ce?Xn(t,n,e):t._time)+e._delay),e._end=Je(e._start+(e.totalDuration()/Math.abs(e.timeScale())||0)),Xd(t,e,"_first","_last",t._sort?"_start":0),Su(e)||(t._recent=e),i||Yd(t,e),t._ts<0&&dl(t,t._tTime),t},qd=function(t,e){return(On.ScrollTrigger||ul("scrollTrigger",e))&&On.ScrollTrigger.create(e,t)},Zd=function(t,e,n,i,s){if(zu(t,e,s),!t._initted)return 1;if(!n&&t._pt&&!an&&(t._dur&&t.vars.lazy!==!1||!t._dur&&t.vars.lazy)&&Vd!==Cn.frame)return ur.push(t),t._lazy=[s,i],1},nx=function r(t){var e=t.parent;return e&&e._ts&&e._initted&&!e._lock&&(e.rawTime()<0||r(e))},Su=function(t){var e=t.data;return e==="isFromStart"||e==="isStart"},ix=function(t,e,n,i){var s=t.ratio,o=e<0||!e&&(!t._start&&nx(t)&&!(!t._initted&&Su(t))||(t._ts<0||t._dp._ts<0)&&!Su(t))?0:1,a=t._rDelay,l=0,c,h,f;if(a&&t._repeat&&(l=na(0,t._tDur,e),h=zs(l,a),t._yoyo&&h&1&&(o=1-o),h!==zs(t._tTime,a)&&(s=1-o,t.vars.repeatRefresh&&t._initted&&t.invalidate())),o!==s||an||i||t._zTime===we||!e&&t._zTime){if(!t._initted&&Zd(t,e,i,n,l))return;for(f=t._zTime,t._zTime=e||(n?we:0),n||(n=e&&!f),t.ratio=o,t._from&&(o=1-o),t._time=0,t._tTime=l,c=t._pt;c;)c.r(o,c.d),c=c._next;e<0&&yu(t,e,n,!0),t._onUpdate&&!n&&Un(t,"onUpdate"),l&&t._repeat&&!n&&t.parent&&Un(t,"onRepeat"),(e>=t._tDur||e<0)&&t.ratio===o&&(o&&fr(t,1),!n&&!an&&(Un(t,o?"onComplete":"onReverseComplete",!0),t._prom&&t._prom()))}else t._zTime||(t._zTime=e)},rx=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}},Vs=function(t,e,n,i){var s=t._repeat,o=Je(e)||0,a=t._tTime/t._tDur;return a&&!i&&(t._time*=o/t._dur),t._dur=o,t._tDur=s?s<0?1e10:Je(o*(s+1)+t._rDelay*s):o,a>0&&!i&&dl(t,t._tTime=t._tDur*a),t.parent&&fl(t),n||Yr(t.parent,t),t},Rd=function(t){return t instanceof tn?Yr(t):Vs(t,t._dur)},sx={_start:0,endTime:Qo,totalDuration:Qo},Xn=function r(t,e,n){var i=t.labels,s=t._recent||sx,o=t.duration()>=Yn?s.endTime(!1):t._dur,a,l,c;return Ge(e)&&(isNaN(e)||e in i)?(l=e.charAt(0),c=e.substr(-1)==="%",a=e.indexOf("="),l==="<"||l===">"?(a>=0&&(e=e.replace(/=/,"")),(l==="<"?s._start:s.endTime(s._repeat>=0))+(parseFloat(e.substr(1))||0)*(c?(a<0?s:n).totalDuration()/100:1)):a<0?(e in i||(i[e]=o),i[e]):(l=parseFloat(e.charAt(a-1)+e.substr(a+1)),c&&n&&(l=l/100*(ln(n)?n[0]:n).totalDuration()),a>1?r(t,e.substr(0,a-1),n)+l:o+l)):e==null?o:+e},$o=function(t,e,n){var i=ki(e[1]),s=(i?2:1)+(t<2?0:1),o=e[s],a,l;if(i&&(o.duration=e[1]),o.parent=n,t){for(a=o,l=n;l&&!("immediateRender"in a);)a=l.vars.defaults||{},l=Rn(l.vars.inherit)&&l.parent;o.immediateRender=Rn(a.immediateRender),t<2?o.runBackwards=1:o.startAt=e[s-1]}return new Ne(e[0],o,e[s+1])},dr=function(t,e){return t||t===0?e(t):e},na=function(t,e,n){return n<t?t:n>e?e:n},en=function(t,e){return!Ge(t)||!(e=Z0.exec(t))?"":e[1]},ox=function(t,e,n){return dr(n,function(i){return na(t,e,i)})},Mu=[].slice,Jd=function(t,e){return t&&Ti(t)&&"length"in t&&(!e&&!t.length||t.length-1 in t&&Ti(t[0]))&&!t.nodeType&&t!==wi},ax=function(t,e,n){return n===void 0&&(n=[]),t.forEach(function(i){var s;return Ge(i)&&!e||Jd(i,1)?(s=n).push.apply(s,qn(i)):n.push(i)})||n},qn=function(t,e,n){return Ae&&!e&&Ae.selector?Ae.selector(t):Ge(t)&&!n&&(xu||!Hs())?Mu.call((e||Pu).querySelectorAll(t),0):ln(t)?ax(t,n):Jd(t)?Mu.call(t,0):t?[t]:[]},bu=function(t){return t=qn(t)[0]||jo("Invalid scope")||{},function(e){var n=t.current||t.nativeElement||t;return qn(e,n.querySelectorAll?n:n===t?jo("Invalid scope")||Pu.createElement("div"):t)}},$d=function(t){return t.sort(function(){return .5-Math.random()})},Kd=function(t){if(Ie(t))return t;var e=Ti(t)?t:{each:t},n=qr(e.ease),i=e.from||0,s=parseFloat(e.base)||0,o={},a=i>0&&i<1,l=isNaN(i)||a,c=e.axis,h=i,f=i;return Ge(i)?h=f={center:.5,edges:.5,end:1}[i]||0:!a&&l&&(h=i[0],f=i[1]),function(d,u,_){var p=(_||e).length,m=o[p],g,b,y,S,D,T,w,P,M;if(!m){if(M=e.grid==="auto"?0:(e.grid||[1,Yn])[1],!M){for(w=-Yn;w<(w=_[M++].getBoundingClientRect().left)&&M<p;);M<p&&M--}for(m=o[p]=[],g=l?Math.min(M,p)*h-.5:i%M,b=M===Yn?0:l?p*f/M-.5:i/M|0,w=0,P=Yn,T=0;T<p;T++)y=T%M-g,S=b-(T/M|0),m[T]=D=c?Math.abs(c==="y"?S:y):Nd(y*y+S*S),D>w&&(w=D),D<P&&(P=D);i==="random"&&$d(m),m.max=w-P,m.min=P,m.v=p=(parseFloat(e.amount)||parseFloat(e.each)*(M>p?p-1:c?c==="y"?p/M:M:Math.max(M,p/M))||0)*(i==="edges"?-1:1),m.b=p<0?s-p:s,m.u=en(e.amount||e.each)||0,n=n&&p<0?op(n):n}return p=(m[d]-m.min)/m.max||0,Je(m.b+(n?n(p):p)*m.v)+m.u}},wu=function(t){var e=Math.pow(10,((t+"").split(".")[1]||"").length);return function(n){var i=Je(Math.round(parseFloat(n)/t)*t*e);return(i-i%1)/e+(ki(n)?0:en(n))}},jd=function(t,e){var n=ln(t),i,s;return!n&&Ti(t)&&(i=n=t.radius||Yn,t.values?(t=qn(t.values),(s=!ki(t[0]))&&(i*=i)):t=wu(t.increment)),dr(e,n?Ie(t)?function(o){return s=t(o),Math.abs(s-o)<=i?s:o}:function(o){for(var a=parseFloat(s?o.x:o),l=parseFloat(s?o.y:0),c=Yn,h=0,f=t.length,d,u;f--;)s?(d=t[f].x-a,u=t[f].y-l,d=d*d+u*u):d=Math.abs(t[f]-a),d<c&&(c=d,h=f);return h=!i||c<=i?t[h]:o,s||h===o||ki(o)?h:h+en(o)}:wu(t))},Qd=function(t,e,n,i){return dr(ln(t)?!e:n===!0?!!(n=0):!i,function(){return ln(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})},lx=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,o){return o(s)},i)}},cx=function(t,e){return function(n){return t(parseFloat(n))+(e||en(n))}},ux=function(t,e,n){return ep(t,e,0,1,n)},tp=function(t,e,n){return dr(n,function(i){return t[~~e(i)]})},hx=function r(t,e,n){var i=e-t;return ln(t)?tp(t,r(0,t.length),e):dr(n,function(s){return(i+(s-t)%i)%i+t})},fx=function r(t,e,n){var i=e-t,s=i*2;return ln(t)?tp(t,r(0,t.length-1),e):dr(n,function(o){return o=(s+(o-t)%s)%s||0,t+(o>i?s-o:o)})},Gs=function(t){for(var e=0,n="",i,s,o,a;~(i=t.indexOf("random(",e));)o=t.indexOf(")",i),a=t.charAt(i+7)==="[",s=t.substr(i+7,o-i-7).match(a?Od:_u),n+=t.substr(e,i-e)+Qd(a?s:+s[0],a?0:+s[1],+s[2]||1e-5),e=o+1;return n+t.substr(e,t.length-e)},ep=function(t,e,n,i,s){var o=e-t,a=i-n;return dr(s,function(l){return n+((l-t)/o*a||0)})},dx=function r(t,e,n,i){var s=isNaN(t+e)?0:function(u){return(1-u)*t+u*e};if(!s){var o=Ge(t),a={},l,c,h,f,d;if(n===!0&&(i=1)&&(n=null),o)t={p:t},e={p:e};else if(ln(t)&&!ln(e)){for(h=[],f=t.length,d=f-2,c=1;c<f;c++)h.push(r(t[c-1],t[c]));f--,s=function(_){_*=f;var p=Math.min(d,~~_);return h[p](_-p)},n=e}else i||(t=Jr(ln(t)?[]:{},t));if(!h){for(l in e)Bu.call(a,t,l,"get",e[l]);s=function(_){return Gu(_,a)||(o?t.p:t)}}}return dr(n,s)},Pd=function(t,e,n){var i=t.labels,s=Yn,o,a,l;for(o in i)a=i[o]-e,a<0==!!n&&a&&s>(a=Math.abs(a))&&(l=o,s=a);return l},Un=function(t,e,n){var i=t.vars,s=i[e],o=Ae,a=t._ctx,l,c,h;if(s)return l=i[e+"Params"],c=i.callbackScope||t,n&&ur.length&&sl(),a&&(Ae=a),h=l?s.apply(c,l):s.call(c),Ae=o,h},qo=function(t){return fr(t),t.scrollTrigger&&t.scrollTrigger.kill(!!an),t.progress()<1&&Un(t,"onInterrupt"),t},Bs,np=[],ip=function(t){if(t)if(t=!t.name&&t.default||t,Du()||t.headless){var e=t.name,n=Ie(t),i=e&&!n&&t.init?function(){this._props=[]}:t,s={init:Qo,render:Gu,add:Bu,kill:Cx,modifier:Dx,rawVars:0},o={targetTest:0,get:0,getSetter:pl,aliases:{},register:0};if(Hs(),t!==i){if(Dn[e])return;Zn(i,Zn(ol(t,s),o)),Jr(i.prototype,Jr(s,ol(t,o))),Dn[i.prop=e]=i,t.targetTest&&(nl.push(i),Iu[e]=1),e=(e==="css"?"CSS":e.charAt(0).toUpperCase()+e.substr(1))+"Plugin"}zd(e,i),t.register&&t.register(cn,i,xn)}else np.push(t)},Me=255,Zo={aqua:[0,Me,Me],lime:[0,Me,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,Me],navy:[0,0,128],white:[Me,Me,Me],olive:[128,128,0],yellow:[Me,Me,0],orange:[Me,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[Me,0,0],pink:[Me,192,203],cyan:[0,Me,Me],transparent:[Me,Me,Me,0]},hu=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)*Me+.5|0},rp=function(t,e,n){var i=t?ki(t)?[t>>16,t>>8&Me,t&Me]:0:Zo.black,s,o,a,l,c,h,f,d,u,_;if(!i){if(t.substr(-1)===","&&(t=t.substr(0,t.length-1)),Zo[t])i=Zo[t];else if(t.charAt(0)==="#"){if(t.length<6&&(s=t.charAt(1),o=t.charAt(2),a=t.charAt(3),t="#"+s+s+o+o+a+a+(t.length===5?t.charAt(4)+t.charAt(4):"")),t.length===9)return i=parseInt(t.substr(1,6),16),[i>>16,i>>8&Me,i&Me,parseInt(t.substr(7),16)/255];t=parseInt(t.substr(1),16),i=[t>>16,t>>8&Me,t&Me]}else if(t.substr(0,3)==="hsl"){if(i=_=t.match(_u),!e)l=+i[0]%360/360,c=+i[1]/100,h=+i[2]/100,o=h<=.5?h*(c+1):h+c-h*c,s=h*2-o,i.length>3&&(i[3]*=1),i[0]=hu(l+1/3,s,o),i[1]=hu(l,s,o),i[2]=hu(l-1/3,s,o);else if(~t.indexOf("="))return i=t.match(Cu),n&&i.length<4&&(i[3]=1),i}else i=t.match(_u)||Zo.transparent;i=i.map(Number)}return e&&!_&&(s=i[0]/Me,o=i[1]/Me,a=i[2]/Me,f=Math.max(s,o,a),d=Math.min(s,o,a),h=(f+d)/2,f===d?l=c=0:(u=f-d,c=h>.5?u/(2-f-d):u/(f+d),l=f===s?(o-a)/u+(o<a?6:0):f===o?(a-s)/u+2:(s-o)/u+4,l*=60),i[0]=~~(l+.5),i[1]=~~(c*100+.5),i[2]=~~(h*100+.5)),n&&i.length<4&&(i[3]=1),i},sp=function(t){var e=[],n=[],i=-1;return t.split(Bi).forEach(function(s){var o=s.match($r)||[];e.push.apply(e,o),n.push(i+=o.length+1)}),e.c=n,e},Id=function(t,e,n){var i="",s=(t+i).match(Bi),o=e?"hsla(":"rgba(",a=0,l,c,h,f;if(!s)return t;if(s=s.map(function(d){return(d=rp(d,e,1))&&o+(e?d[0]+","+d[1]+"%,"+d[2]+"%,"+d[3]:d.join(","))+")"}),n&&(h=sp(t),l=n.c,l.join(i)!==h.c.join(i)))for(c=t.replace(Bi,"1").split($r),f=c.length-1;a<f;a++)i+=c[a]+(~l.indexOf(a)?s.shift()||o+"0,0,0,0)":(h.length?h:s.length?s:n).shift());if(!c)for(c=t.split(Bi),f=c.length-1;a<f;a++)i+=c[a]+s[a];return i+c[f]},Bi=function(){var r="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3,4}){1,2}\\b",t;for(t in Zo)r+="|"+t+"\\b";return new RegExp(r+")","gi")}(),px=/hsl[a]?\(/,Uu=function(t){var e=t.join(" "),n;if(Bi.lastIndex=0,Bi.test(e))return n=px.test(e),t[1]=Id(t[1],n),t[0]=Id(t[0],n,sp(t[1])),!0},ta,Cn=function(){var r=Date.now,t=500,e=33,n=r(),i=n,s=1e3/240,o=s,a=[],l,c,h,f,d,u,_=function p(m){var g=r()-i,b=m===!0,y,S,D,T;if((g>t||g<0)&&(n+=g-e),i+=g,D=i-n,y=D-o,(y>0||b)&&(T=++f.frame,d=D-f.time*1e3,f.time=D=D/1e3,o+=y+(y>=s?4:s-y),S=1),b||(l=c(p)),S)for(u=0;u<a.length;u++)a[u](D,d,T,m)};return f={time:0,frame:0,tick:function(){_(!0)},deltaRatio:function(m){return d/(1e3/(m||60))},wake:function(){Bd&&(!xu&&Du()&&(wi=xu=window,Pu=wi.document||{},On.gsap=cn,(wi.gsapVersions||(wi.gsapVersions=[])).push(cn.version),kd(rl||wi.GreenSockGlobals||!wi.gsap&&wi||{}),np.forEach(ip)),h=typeof requestAnimationFrame<"u"&&requestAnimationFrame,l&&f.sleep(),c=h||function(m){return setTimeout(m,o-f.time*1e3+1|0)},ta=1,_(2))},sleep:function(){(h?cancelAnimationFrame:clearTimeout)(l),ta=0,c=Qo},lagSmoothing:function(m,g){t=m||1/0,e=Math.min(g||33,t)},fps:function(m){s=1e3/(m||240),o=f.time*1e3+s},add:function(m,g,b){var y=g?function(S,D,T,w){m(S,D,T,w),f.remove(y)}:m;return f.remove(m),a[b?"unshift":"push"](y),Hs(),y},remove:function(m,g){~(g=a.indexOf(m))&&a.splice(g,1)&&u>=g&&u--},_listeners:a},f}(),Hs=function(){return!ta&&Cn.wake()},fe={},mx=/^[\d.\-M][\d.\-,\s]/,gx=/["']/g,_x=function(t){for(var e={},n=t.substr(1,t.length-3).split(":"),i=n[0],s=1,o=n.length,a,l,c;s<o;s++)l=n[s],a=s!==o-1?l.lastIndexOf(","):l.length,c=l.substr(0,a),e[i]=isNaN(c)?c.replace(gx,"").trim():+c,i=l.substr(a+1).trim();return e},xx=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)},vx=function(t){var e=(t+"").split("("),n=fe[e[0]];return n&&e.length>1&&n.config?n.config.apply(null,~t.indexOf("{")?[_x(e[1])]:xx(t).split(",").map(Gd)):fe._CE&&mx.test(t)?fe._CE("",t):n},op=function(t){return function(e){return 1-t(1-e)}},ap=function r(t,e){for(var n=t._first,i;n;)n instanceof tn?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},qr=function(t,e){return t&&(Ie(t)?t:fe[t]||vx(t))||e},jr=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},o;return _n(t,function(a){fe[a]=On[a]=s,fe[o=a.toLowerCase()]=n;for(var l in s)fe[o+(l==="easeIn"?".in":l==="easeOut"?".out":".inOut")]=fe[a+"."+l]=s[l]}),s},lp=function(t){return function(e){return e<.5?(1-t(1-e*2))/2:.5+t((e-.5)*2)/2}},fu=function r(t,e,n){var i=e>=1?e:1,s=(n||(t?.3:.45))/(e<1?e:1),o=s/gu*(Math.asin(1/i)||0),a=function(h){return h===1?1:i*Math.pow(2,-10*h)*q0((h-o)*s)+1},l=t==="out"?a:t==="in"?function(c){return 1-a(1-c)}:lp(a);return s=gu/s,l.config=function(c,h){return r(t,c,h)},l},du=function r(t,e){e===void 0&&(e=1.70158);var n=function(o){return o?--o*o*((e+1)*o+e)+1:0},i=t==="out"?n:t==="in"?function(s){return 1-n(1-s)}:lp(n);return i.config=function(s){return r(t,s)},i};_n("Linear,Quad,Cubic,Quart,Quint,Strong",function(r,t){var e=t<5?t+1:t;jr(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})});fe.Linear.easeNone=fe.none=fe.Linear.easeIn;jr("Elastic",fu("in"),fu("out"),fu());(function(r,t){var e=1/t,n=2*e,i=2.5*e,s=function(a){return a<e?r*a*a:a<n?r*Math.pow(a-1.5/t,2)+.75:a<i?r*(a-=2.25/t)*a+.9375:r*Math.pow(a-2.625/t,2)+.984375};jr("Bounce",function(o){return 1-s(1-o)},s)})(7.5625,2.75);jr("Expo",function(r){return r?Math.pow(2,10*(r-1)):0});jr("Circ",function(r){return-(Nd(1-r*r)-1)});jr("Sine",function(r){return r===1?1:-Y0(r*W0)+1});jr("Back",du("in"),du("out"),du());fe.SteppedEase=fe.steps=On.SteppedEase={config:function(t,e){t===void 0&&(t=1);var n=1/t,i=t+(e?0:1),s=e?1:0,o=1-we;return function(a){return((i*na(0,o,a)|0)+s)*n}}};ks.ease=fe["quad.out"];_n("onComplete,onUpdate,onStart,onRepeat,onReverseComplete,onInterrupt",function(r){return Lu+=r+","+r+"Params,"});var Ou=function(t,e){this.id=X0++,t._gsap=this,this.target=t,this.harness=e,this.get=e?e.get:Nu,this.set=e?e.getSetter:pl},ea=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,Vs(this,+e.duration,1,1),this.data=e.data,Ae&&(this._ctx=Ae,Ae.data.push(this)),ta||Cn.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,Vs(this,this._repeat<0?n:(n-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},t.totalTime=function(n,i){if(Hs(),!arguments.length)return this._tTime;var s=this._dp;if(s&&s.smoothChildTiming&&this._ts){for(dl(this,n),!s._dp||s.parent||Yd(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)&&Ei(this._dp,this,this._start-this._delay)}return(this._tTime!==n||!this._dur&&!i||this._initted&&Math.abs(this._zTime)===we||!n&&!this._initted&&(this.add||this._ptLookup))&&(this._ts||(this._pTime=n),Hd(this,n,i)),this},t.time=function(n,i){return arguments.length?this.totalTime(Math.min(this.totalDuration(),n+Cd(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)+Cd(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?zs(this._tTime,s)+1:1},t.timeScale=function(n,i){if(!arguments.length)return this._rts===-we?0:this._rts;if(this._rts===n)return this;var s=this.parent&&this._ts?al(this.parent._time,this):this._tTime;return this._rts=+n||0,this._ts=this._ps||n===-we?0:this._rts,this.totalTime(na(-Math.abs(this._delay),this._tDur,s),i!==!1),fl(this),tx(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):(Hs(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,this.progress()===1&&Math.abs(this._zTime)!==we&&(this._tTime-=we)))),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)&&Ei(i,this,n-this._delay),this}return this._start},t.endTime=function(n){return this._start+(Rn(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?al(i.rawTime(n),this):this._tTime:this._tTime},t.revert=function(n){n===void 0&&(n=$0);var i=an;return an=n,(this._initted||this._startAt)&&(this.timeline&&this.timeline.revert(n),this.totalTime(-.01,n.suppressEvents)),this.data!=="nested"&&n.kill!==!1&&this.kill(),an=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,Rd(this)):this._repeat===-2?1/0:this._repeat},t.repeatDelay=function(n){if(arguments.length){var i=this._time;return this._rDelay=n,Rd(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(Xn(this,n),Rn(i))},t.restart=function(n,i){return this.play().totalTime(n?-this._delay:0,Rn(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?-we:0)),this):this._rts<0},t.invalidate=function(){return this._initted=this._act=0,this._zTime=-we,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)-we)},t.eventCallback=function(n,i,s){var o=this.vars;return arguments.length>1?(i?(o[n]=i,s&&(o[n+"Params"]=s),n==="onUpdate"&&(this._onUpdate=i)):delete o[n],this):o[n]},t.then=function(n){var i=this;return new Promise(function(s){var o=Ie(n)?n:Wd,a=function(){var c=i.then;i.then=null,Ie(o)&&(o=o(i))&&(o.then||o===i)&&(i.then=c),s(o),i.then=c};i._initted&&i.totalProgress()===1&&i._ts>=0||!i._tTime&&i._ts<0?a():i._prom=a})},t.kill=function(){qo(this)},r}();Zn(ea.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:-we,_prom:0,_ps:!1,_rts:1});var tn=function(r){Fd(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=Rn(n.sortChildren),Ce&&Ei(n.parent||Ce,Oi(s),i),n.reversed&&s.reverse(),n.paused&&s.paused(!0),n.scrollTrigger&&qd(Oi(s),n.scrollTrigger),s}var e=t.prototype;return e.to=function(i,s,o){return $o(0,arguments,this),this},e.from=function(i,s,o){return $o(1,arguments,this),this},e.fromTo=function(i,s,o,a){return $o(2,arguments,this),this},e.set=function(i,s,o){return s.duration=0,s.parent=this,Jo(s).repeatDelay||(s.repeat=0),s.immediateRender=!!s.immediateRender,new Ne(i,s,Xn(this,o),1),this},e.call=function(i,s,o){return Ei(this,Ne.delayedCall(0,i,s),o)},e.staggerTo=function(i,s,o,a,l,c,h){return o.duration=s,o.stagger=o.stagger||a,o.onComplete=c,o.onCompleteParams=h,o.parent=this,new Ne(i,o,Xn(this,l)),this},e.staggerFrom=function(i,s,o,a,l,c,h){return o.runBackwards=1,Jo(o).immediateRender=Rn(o.immediateRender),this.staggerTo(i,s,o,a,l,c,h)},e.staggerFromTo=function(i,s,o,a,l,c,h,f){return a.startAt=o,Jo(a).immediateRender=Rn(a.immediateRender),this.staggerTo(i,s,a,l,c,h,f)},e.render=function(i,s,o){var a=this._time,l=this._dirty?this.totalDuration():this._tDur,c=this._dur,h=i<=0?0:Je(i),f=this._zTime<0!=i<0&&(this._initted||!c),d,u,_,p,m,g,b,y,S,D,T,w;if(this!==Ce&&h>l&&i>=0&&(h=l),h!==this._tTime||o||f){if(a!==this._time&&c&&(h+=this._time-a,i+=this._time-a),d=h,S=this._start,y=this._ts,g=!y,f&&(c||(a=this._zTime),(i||!s)&&(this._zTime=i)),this._repeat){if(T=this._yoyo,m=c+this._rDelay,this._repeat<-1&&i<0)return this.totalTime(m*100+i,s,o);if(d=Je(h%m),h===l?(p=this._repeat,d=c):(p=~~(h/m),p&&p===h/m&&(d=c,p--),d>c&&(d=c)),D=zs(this._tTime,m),!a&&this._tTime&&D!==p&&this._tTime-D*m-this._dur<=0&&(D=p),T&&p&1&&(d=c-d,w=1),p!==D&&!this._lock){var P=T&&D&1,M=P===(T&&p&1);if(p<D&&(P=!P),a=P?0:h%c?c:h,this._lock=1,this.render(a||(w?0:Je(p*m)),s,!c)._lock=0,this._tTime=h,!s&&this.parent&&Un(this,"onRepeat"),this.vars.repeatRefresh&&!w&&(this.invalidate()._lock=1),a&&a!==this._time||g!==!this._ts||this.vars.onRepeat&&!this.parent&&!this._act)return this;if(c=this._dur,l=this._tDur,M&&(this._lock=2,a=P?c:-1e-4,this.render(a,!0),this.vars.repeatRefresh&&!w&&this.invalidate()),this._lock=0,!this._ts&&!g)return this;ap(this,w)}}if(this._hasPause&&!this._forcing&&this._lock<2&&(b=rx(this,Je(a),Je(d)),b&&(h-=d-(d=b._start))),this._tTime=h,this._time=d,this._act=!y,this._initted||(this._onUpdate=this.vars.onUpdate,this._initted=1,this._zTime=i,a=0),!a&&d&&!s&&!p&&(Un(this,"onStart"),this._tTime!==h))return this;if(d>=a&&i>=0)for(u=this._first;u;){if(_=u._next,(u._act||d>=u._start)&&u._ts&&b!==u){if(u.parent!==this)return this.render(i,s,o);if(u.render(u._ts>0?(d-u._start)*u._ts:(u._dirty?u.totalDuration():u._tDur)+(d-u._start)*u._ts,s,o),d!==this._time||!this._ts&&!g){b=0,_&&(h+=this._zTime=-we);break}}u=_}else{u=this._last;for(var v=i<0?i:d;u;){if(_=u._prev,(u._act||v<=u._end)&&u._ts&&b!==u){if(u.parent!==this)return this.render(i,s,o);if(u.render(u._ts>0?(v-u._start)*u._ts:(u._dirty?u.totalDuration():u._tDur)+(v-u._start)*u._ts,s,o||an&&(u._initted||u._startAt)),d!==this._time||!this._ts&&!g){b=0,_&&(h+=this._zTime=v?-we:we);break}}u=_}}if(b&&!s&&(this.pause(),b.render(d>=a?0:-we)._zTime=d>=a?1:-1,this._ts))return this._start=S,fl(this),this.render(i,s,o);this._onUpdate&&!s&&Un(this,"onUpdate",!0),(h===l&&this._tTime>=this.totalDuration()||!h&&a)&&(S===this._start||Math.abs(y)!==Math.abs(this._ts))&&(this._lock||((i||!c)&&(h===l&&this._ts>0||!h&&this._ts<0)&&fr(this,1),!s&&!(i<0&&!a)&&(h||a||!l)&&(Un(this,h===l&&i>=0?"onComplete":"onReverseComplete",!0),this._prom&&!(h<l&&this.timeScale()>0)&&this._prom())))}return this},e.add=function(i,s){var o=this;if(ki(s)||(s=Xn(this,s,i)),!(i instanceof ea)){if(ln(i))return i.forEach(function(a){return o.add(a,s)}),this;if(Ge(i))return this.addLabel(i,s);if(Ie(i))i=Ne.delayedCall(0,i);else return this}return this!==i?Ei(this,i,s):this},e.getChildren=function(i,s,o,a){i===void 0&&(i=!0),s===void 0&&(s=!0),o===void 0&&(o=!0),a===void 0&&(a=-Yn);for(var l=[],c=this._first;c;)c._start>=a&&(c instanceof Ne?s&&l.push(c):(o&&l.push(c),i&&l.push.apply(l,c.getChildren(!0,s,o)))),c=c._next;return l},e.getById=function(i){for(var s=this.getChildren(1,1,1),o=s.length;o--;)if(s[o].vars.id===i)return s[o]},e.remove=function(i){return Ge(i)?this.removeLabel(i):Ie(i)?this.killTweensOf(i):(hl(this,i),i===this._recent&&(this._recent=this._last),Yr(this))},e.totalTime=function(i,s){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=Je(Cn.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]=Xn(this,s),this},e.removeLabel=function(i){return delete this.labels[i],this},e.addPause=function(i,s,o){var a=Ne.delayedCall(0,s||Qo,o);return a.data="isPause",this._hasPause=1,Ei(this,a,Xn(this,i))},e.removePause=function(i){var s=this._first;for(i=Xn(this,i);s;)s._start===i&&s.data==="isPause"&&fr(s),s=s._next},e.killTweensOf=function(i,s,o){for(var a=this.getTweensOf(i,o),l=a.length;l--;)cr!==a[l]&&a[l].kill(i,s);return this},e.getTweensOf=function(i,s){for(var o=[],a=qn(i),l=this._first,c=ki(s),h;l;)l instanceof Ne?K0(l._targets,a)&&(c?(!cr||l._initted&&l._ts)&&l.globalTime(0)<=s&&l.globalTime(l.totalDuration())>s:!s||l.isActive())&&o.push(l):(h=l.getTweensOf(a,s)).length&&o.push.apply(o,h),l=l._next;return o},e.tweenTo=function(i,s){s=s||{};var o=this,a=Xn(o,i),l=s,c=l.startAt,h=l.onStart,f=l.onStartParams,d=l.immediateRender,u,_=Ne.to(o,Zn({ease:s.ease||"none",lazy:!1,immediateRender:!1,time:a,overwrite:"auto",duration:s.duration||Math.abs((a-(c&&"time"in c?c.time:o._time))/o.timeScale())||we,onStart:function(){if(o.pause(),!u){var m=s.duration||Math.abs((a-(c&&"time"in c?c.time:o._time))/o.timeScale());_._dur!==m&&Vs(_,m,0,1).render(_._time,!0,!0),u=1}h&&h.apply(_,f||[])}},s));return d?_.render(0):_},e.tweenFromTo=function(i,s,o){return this.tweenTo(s,Zn({startAt:{time:Xn(this,i)}},o))},e.recent=function(){return this._recent},e.nextLabel=function(i){return i===void 0&&(i=this._time),Pd(this,Xn(this,i))},e.previousLabel=function(i){return i===void 0&&(i=this._time),Pd(this,Xn(this,i),1)},e.currentLabel=function(i){return arguments.length?this.seek(i,!0):this.previousLabel(this._time+we)},e.shiftChildren=function(i,s,o){o===void 0&&(o=0);for(var a=this._first,l=this.labels,c;a;)a._start>=o&&(a._start+=i,a._end+=i),a=a._next;if(s)for(c in l)l[c]>=o&&(l[c]+=i);return Yr(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,o;s;)o=s._next,this.remove(s),s=o;return this._dp&&(this._time=this._tTime=this._pTime=0),i&&(this.labels={}),Yr(this)},e.totalDuration=function(i){var s=0,o=this,a=o._last,l=Yn,c,h,f;if(arguments.length)return o.timeScale((o._repeat<0?o.duration():o.totalDuration())/(o.reversed()?-i:i));if(o._dirty){for(f=o.parent;a;)c=a._prev,a._dirty&&a.totalDuration(),h=a._start,h>l&&o._sort&&a._ts&&!o._lock?(o._lock=1,Ei(o,a,h-a._delay,1)._lock=0):l=h,h<0&&a._ts&&(s-=h,(!f&&!o._dp||f&&f.smoothChildTiming)&&(o._start+=h/o._ts,o._time-=h,o._tTime-=h),o.shiftChildren(-h,!1,-1/0),l=0),a._end>s&&a._ts&&(s=a._end),a=c;Vs(o,o===Ce&&o._time>s?o._time:s,1,1),o._dirty=0}return o._tDur},t.updateRoot=function(i){if(Ce._ts&&(Hd(Ce,al(i,Ce)),Vd=Cn.frame),Cn.frame>=Ad){Ad+=Pn.autoSleep||120;var s=Ce._first;if((!s||!s._ts)&&Pn.autoSleep&&Cn._listeners.length<2){for(;s&&!s._ts;)s=s._next;s||Cn.sleep()}}},t}(ea);Zn(tn.prototype,{_lock:0,_hasPause:0,_forcing:0});var yx=function(t,e,n,i,s,o,a){var l=new xn(this._pt,t,e,0,1,Hu,null,s),c=0,h=0,f,d,u,_,p,m,g,b;for(l.b=n,l.e=i,n+="",i+="",(g=~i.indexOf("random("))&&(i=Gs(i)),o&&(b=[n,i],o(b,t,e),n=b[0],i=b[1]),d=n.match(cu)||[];f=cu.exec(i);)_=f[0],p=i.substring(c,f.index),u?u=(u+1)%5:p.substr(-5)==="rgba("&&(u=1),_!==d[h++]&&(m=parseFloat(d[h-1])||0,l._pt={_next:l._pt,p:p||h===1?p:",",s:m,c:_.charAt(1)==="="?Kr(m,_)-m:parseFloat(_)-m,m:u&&u<4?Math.round:0},c=cu.lastIndex);return l.c=c<i.length?i.substring(c,i.length):"",l.fp=a,(Ru.test(i)||g)&&(l.e=0),this._pt=l,l},Bu=function(t,e,n,i,s,o,a,l,c,h){Ie(i)&&(i=i(s||0,t,o));var f=t[e],d=n!=="get"?n:Ie(f)?c?t[e.indexOf("set")||!Ie(t["get"+e.substr(3)])?e:"get"+e.substr(3)](c):t[e]():f,u=Ie(f)?c?Ex:hp:Vu,_;if(Ge(i)&&(~i.indexOf("random(")&&(i=Gs(i)),i.charAt(1)==="="&&(_=Kr(d,i)+(en(d)||0),(_||_===0)&&(i=_))),!h||d!==i||Eu)return!isNaN(d*i)&&i!==""?(_=new xn(this._pt,t,e,+d||0,i-(d||0),typeof f=="boolean"?Ax:fp,0,u),c&&(_.fp=c),a&&_.modifier(a,this,t),this._pt=_):(!f&&!(e in t)&&ul(e,i),yx.call(this,t,e,d,i,u,l||Pn.stringFilter,c))},Sx=function(t,e,n,i,s){if(Ie(t)&&(t=Ko(t,s,e,n,i)),!Ti(t)||t.style&&t.nodeType||ln(t)||Ud(t))return Ge(t)?Ko(t,s,e,n,i):t;var o={},a;for(a in t)o[a]=Ko(t[a],s,e,n,i);return o},ku=function(t,e,n,i,s,o){var a,l,c,h;if(Dn[t]&&(a=new Dn[t]).init(s,a.rawVars?e[t]:Sx(e[t],i,s,o,n),n,i,o)!==!1&&(n._pt=l=new xn(n._pt,s,t,0,1,a.render,a,0,a.priority),n!==Bs))for(c=n._ptLookup[n._targets.indexOf(s)],h=a._props.length;h--;)c[a._props[h]]=l;return a},cr,Eu,zu=function r(t,e,n){var i=t.vars,s=i.ease,o=i.startAt,a=i.immediateRender,l=i.lazy,c=i.onUpdate,h=i.runBackwards,f=i.yoyoEase,d=i.keyframes,u=i.autoRevert,_=t._dur,p=t._startAt,m=t._targets,g=t.parent,b=g&&g.data==="nested"?g.vars.targets:m,y=t._overwrite==="auto"&&!Au,S=t.timeline,D,T,w,P,M,v,I,N,C,V,$,W,Z;if(S&&(!d||!s)&&(s="none"),t._ease=qr(s,ks.ease),t._yEase=f?op(qr(f===!0?s:f,ks.ease)):0,f&&t._yoyo&&!t._repeat&&(f=t._yEase,t._yEase=t._ease,t._ease=f),t._from=!S&&!!i.runBackwards,!S||d&&!i.stagger){if(N=m[0]?hr(m[0]).harness:0,W=N&&i[N.prop],D=ol(i,Iu),p&&(p._zTime<0&&p.progress(1),e<0&&h&&a&&!u?p.render(-1,!0):p.revert(h&&_?el:J0),p._lazy=0),o){if(fr(t._startAt=Ne.set(m,Zn({data:"isStart",overwrite:!1,parent:g,immediateRender:!0,lazy:!p&&Rn(l),startAt:null,delay:0,onUpdate:c&&function(){return Un(t,"onUpdate")},stagger:0},o))),t._startAt._dp=0,t._startAt._sat=t,e<0&&(an||!a&&!u)&&t._startAt.revert(el),a&&_&&e<=0&&n<=0){e&&(t._zTime=e);return}}else if(h&&_&&!p){if(e&&(a=!1),w=Zn({overwrite:!1,data:"isFromStart",lazy:a&&!p&&Rn(l),immediateRender:a,stagger:0,parent:g},D),W&&(w[N.prop]=W),fr(t._startAt=Ne.set(m,w)),t._startAt._dp=0,t._startAt._sat=t,e<0&&(an?t._startAt.revert(el):t._startAt.render(-1,!0)),t._zTime=e,!a)r(t._startAt,we,we);else if(!e)return}for(t._pt=t._ptCache=0,l=_&&Rn(l)||l&&!_,T=0;T<m.length;T++){if(M=m[T],I=M._gsap||Fu(m)[T]._gsap,t._ptLookup[T]=V={},vu[I.id]&&ur.length&&sl(),$=b===m?T:b.indexOf(M),N&&(C=new N).init(M,W||D,t,$,b)!==!1&&(t._pt=P=new xn(t._pt,M,C.name,0,1,C.render,C,0,C.priority),C._props.forEach(function(z){V[z]=P}),C.priority&&(v=1)),!N||W)for(w in D)Dn[w]&&(C=ku(w,D,t,$,M,b))?C.priority&&(v=1):V[w]=P=Bu.call(t,M,w,"get",D[w],$,b,0,i.stringFilter);t._op&&t._op[T]&&t.kill(M,t._op[T]),y&&t._pt&&(cr=t,Ce.killTweensOf(M,V,t.globalTime(e)),Z=!t.parent,cr=0),t._pt&&l&&(vu[I.id]=1)}v&&Wu(t),t._onInit&&t._onInit(t)}t._onUpdate=c,t._initted=(!t._op||t._pt)&&!Z,d&&e<=0&&S.render(Yn,!0,!0)},Mx=function(t,e,n,i,s,o,a,l){var c=(t._pt&&t._ptCache||(t._ptCache={}))[e],h,f,d,u;if(!c)for(c=t._ptCache[e]=[],d=t._ptLookup,u=t._targets.length;u--;){if(h=d[u][e],h&&h.d&&h.d._pt)for(h=h.d._pt;h&&h.p!==e&&h.fp!==e;)h=h._next;if(!h)return Eu=1,t.vars[e]="+=0",zu(t,a),Eu=0,l?jo(e+" not eligible for reset"):1;c.push(h)}for(u=c.length;u--;)f=c[u],h=f._pt||f,h.s=(i||i===0)&&!s?i:h.s+(i||0)+o*h.c,h.c=n-h.s,f.e&&(f.e=Le(n)+en(f.e)),f.b&&(f.b=h.s+en(f.b))},bx=function(t,e){var n=t[0]?hr(t[0]).harness:0,i=n&&n.aliases,s,o,a,l;if(!i)return e;s=Jr({},e);for(o in i)if(o in s)for(l=i[o].split(","),a=l.length;a--;)s[l[a]]=s[o];return s},wx=function(t,e,n,i){var s=e.ease||i||"power1.inOut",o,a;if(ln(e))a=n[t]||(n[t]=[]),e.forEach(function(l,c){return a.push({t:c/(e.length-1)*100,v:l,e:s})});else for(o in e)a=n[o]||(n[o]=[]),o==="ease"||a.push({t:parseFloat(t),v:e[o],e:s})},Ko=function(t,e,n,i,s){return Ie(t)?t.call(e,n,i,s):Ge(t)&&~t.indexOf("random(")?Gs(t):t},cp=Lu+"repeat,repeatDelay,yoyo,repeatRefresh,yoyoEase,autoRevert",up={};_n(cp+",id,stagger,delay,duration,paused,scrollTrigger",function(r){return up[r]=1});var Ne=function(r){Fd(t,r);function t(n,i,s,o){var a;typeof i=="number"&&(s.duration=i,i=s,s=null),a=r.call(this,o?i:Jo(i))||this;var l=a.vars,c=l.duration,h=l.delay,f=l.immediateRender,d=l.stagger,u=l.overwrite,_=l.keyframes,p=l.defaults,m=l.scrollTrigger,g=l.yoyoEase,b=i.parent||Ce,y=(ln(n)||Ud(n)?ki(n[0]):"length"in i)?[n]:qn(n),S,D,T,w,P,M,v,I;if(a._targets=y.length?Fu(y):jo("GSAP target "+n+" not found. https://gsap.com",!Pn.nullTargetWarn)||[],a._ptLookup=[],a._overwrite=u,_||d||tl(c)||tl(h)){if(i=a.vars,S=a.timeline=new tn({data:"nested",defaults:p||{},targets:b&&b.data==="nested"?b.vars.targets:y}),S.kill(),S.parent=S._dp=Oi(a),S._start=0,d||tl(c)||tl(h)){if(w=y.length,v=d&&Kd(d),Ti(d))for(P in d)~cp.indexOf(P)&&(I||(I={}),I[P]=d[P]);for(D=0;D<w;D++)T=ol(i,up),T.stagger=0,g&&(T.yoyoEase=g),I&&Jr(T,I),M=y[D],T.duration=+Ko(c,Oi(a),D,M,y),T.delay=(+Ko(h,Oi(a),D,M,y)||0)-a._delay,!d&&w===1&&T.delay&&(a._delay=h=T.delay,a._start+=h,T.delay=0),S.to(M,T,v?v(D,M,y):0),S._ease=fe.none;S.duration()?c=h=0:a.timeline=0}else if(_){Jo(Zn(S.vars.defaults,{ease:"none"})),S._ease=qr(_.ease||i.ease||"none");var N=0,C,V,$;if(ln(_))_.forEach(function(W){return S.to(y,W,">")}),S.duration();else{T={};for(P in _)P==="ease"||P==="easeEach"||wx(P,_[P],T,_.easeEach);for(P in T)for(C=T[P].sort(function(W,Z){return W.t-Z.t}),N=0,D=0;D<C.length;D++)V=C[D],$={ease:V.e,duration:(V.t-(D?C[D-1].t:0))/100*c},$[P]=V.v,S.to(y,$,N),N+=$.duration;S.duration()<c&&S.to({},{duration:c-S.duration()})}}c||a.duration(c=S.duration())}else a.timeline=0;return u===!0&&!Au&&(cr=Oi(a),Ce.killTweensOf(y),cr=0),Ei(b,Oi(a),s),i.reversed&&a.reverse(),i.paused&&a.paused(!0),(f||!c&&!_&&a._start===Je(b._time)&&Rn(f)&&ex(Oi(a))&&b.data!=="nested")&&(a._tTime=-we,a.render(Math.max(0,-h)||0)),m&&qd(Oi(a),m),a}var e=t.prototype;return e.render=function(i,s,o){var a=this._time,l=this._tDur,c=this._dur,h=i<0,f=i>l-we&&!h?l:i<we?0:i,d,u,_,p,m,g,b,y,S;if(!c)ix(this,i,s,o);else if(f!==this._tTime||!i||o||!this._initted&&this._tTime||this._startAt&&this._zTime<0!==h){if(d=f,y=this.timeline,this._repeat){if(p=c+this._rDelay,this._repeat<-1&&h)return this.totalTime(p*100+i,s,o);if(d=Je(f%p),f===l?(_=this._repeat,d=c):(_=~~(f/p),_&&_===Je(f/p)&&(d=c,_--),d>c&&(d=c)),g=this._yoyo&&_&1,g&&(S=this._yEase,d=c-d),m=zs(this._tTime,p),d===a&&!o&&this._initted&&_===m)return this._tTime=f,this;_!==m&&(y&&this._yEase&&ap(y,g),this.vars.repeatRefresh&&!g&&!this._lock&&this._time!==p&&this._initted&&(this._lock=o=1,this.render(Je(p*_),!0).invalidate()._lock=0))}if(!this._initted){if(Zd(this,h?i:d,o,s,f))return this._tTime=0,this;if(a!==this._time&&!(o&&this.vars.repeatRefresh&&_!==m))return this;if(c!==this._dur)return this.render(i,s,o)}if(this._tTime=f,this._time=d,!this._act&&this._ts&&(this._act=1,this._lazy=0),this.ratio=b=(S||this._ease)(d/c),this._from&&(this.ratio=b=1-b),d&&!a&&!s&&!_&&(Un(this,"onStart"),this._tTime!==f))return this;for(u=this._pt;u;)u.r(b,u.d),u=u._next;y&&y.render(i<0?i:y._dur*y._ease(d/this._dur),s,o)||this._startAt&&(this._zTime=i),this._onUpdate&&!s&&(h&&yu(this,i,s,o),Un(this,"onUpdate")),this._repeat&&_!==m&&this.vars.onRepeat&&!s&&this.parent&&Un(this,"onRepeat"),(f===this._tDur||!f)&&this._tTime===f&&(h&&!this._onUpdate&&yu(this,i,!0,!0),(i||!c)&&(f===this._tDur&&this._ts>0||!f&&this._ts<0)&&fr(this,1),!s&&!(h&&!a)&&(f||a||g)&&(Un(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,o,a,l){ta||Cn.wake(),this._ts||this.play();var c=Math.min(this._dur,(this._dp._time-this._start)*this._ts),h;return this._initted||zu(this,c),h=this._ease(c/this._dur),Mx(this,i,s,o,a,h,c,l)?this.resetTo(i,s,o,a,1):(dl(this,0),this.parent||Xd(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?qo(this):this;if(this.timeline){var o=this.timeline.totalDuration();return this.timeline.killTweensOf(i,s,cr&&cr.vars.overwrite!==!0)._first||qo(this),this.parent&&o!==this.timeline.totalDuration()&&Vs(this,this._dur*this.timeline._tDur/o,0,1),this}var a=this._targets,l=i?qn(i):a,c=this._ptLookup,h=this._pt,f,d,u,_,p,m,g;if((!s||s==="all")&&Q0(a,l))return s==="all"&&(this._pt=0),qo(this);for(f=this._op=this._op||[],s!=="all"&&(Ge(s)&&(p={},_n(s,function(b){return p[b]=1}),s=p),s=bx(a,s)),g=a.length;g--;)if(~l.indexOf(a[g])){d=c[g],s==="all"?(f[g]=s,_=d,u={}):(u=f[g]=f[g]||{},_=s);for(p in _)m=d&&d[p],m&&((!("kill"in m.d)||m.d.kill(p)===!0)&&hl(this,m,"_pt"),delete d[p]),u!=="all"&&(u[p]=1)}return this._initted&&!this._pt&&h&&qo(this),this},t.to=function(i,s){return new t(i,s,arguments[2])},t.from=function(i,s){return $o(1,arguments)},t.delayedCall=function(i,s,o,a){return new t(s,0,{immediateRender:!1,lazy:!1,overwrite:!1,delay:i,onComplete:s,onReverseComplete:s,onCompleteParams:o,onReverseCompleteParams:o,callbackScope:a})},t.fromTo=function(i,s,o){return $o(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,o){return Ce.killTweensOf(i,s,o)},t}(ea);Zn(Ne.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0});_n("staggerTo,staggerFrom,staggerFromTo",function(r){Ne[r]=function(){var t=new tn,e=Mu.call(arguments,0);return e.splice(r==="staggerFromTo"?5:4,0,0),t[r].apply(t,e)}});var Vu=function(t,e,n){return t[e]=n},hp=function(t,e,n){return t[e](n)},Ex=function(t,e,n,i){return t[e](i.fp,n)},Tx=function(t,e,n){return t.setAttribute(e,n)},pl=function(t,e){return Ie(t[e])?hp:cl(t[e])&&t.setAttribute?Tx:Vu},fp=function(t,e){return e.set(e.t,e.p,Math.round((e.s+e.c*t)*1e6)/1e6,e)},Ax=function(t,e){return e.set(e.t,e.p,!!(e.s+e.c*t),e)},Hu=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)},Gu=function(t,e){for(var n=e._pt;n;)n.r(t,n.d),n=n._next},Dx=function(t,e,n,i){for(var s=this._pt,o;s;)o=s._next,s.p===i&&s.modifier(t,e,n),s=o},Cx=function(t){for(var e=this._pt,n,i;e;)i=e._next,e.p===t&&!e.op||e.op===t?hl(this,e,"_pt"):e.dep||(n=1),e=i;return!n},Rx=function(t,e,n,i){i.mSet(t,e,i.m.call(i.tween,n,i.mt),i)},Wu=function(t){for(var e=t._pt,n,i,s,o;e;){for(n=e._next,i=s;i&&i.pr>e.pr;)i=i._next;(e._prev=i?i._prev:o)?e._prev._next=e:s=e,(e._next=i)?i._prev=e:o=e,e=n}t._pt=s},xn=function(){function r(e,n,i,s,o,a,l,c,h){this.t=n,this.s=s,this.c=o,this.p=i,this.r=a||fp,this.d=l||this,this.set=c||Vu,this.pr=h||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=Rx,this.m=n,this.mt=s,this.tween=i},r}();_n(Lu+"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 Iu[r]=1});On.TweenMax=On.TweenLite=Ne;On.TimelineLite=On.TimelineMax=tn;Ce=new tn({sortChildren:!1,defaults:ks,autoRemoveChildren:!0,id:"root",smoothChildTiming:!0});Pn.stringFilter=Uu;var Zr=[],il={},Px=[],Ld=0,Ix=0,pu=function(t){return(il[t]||Px).map(function(e){return e()})},Tu=function(){var t=Date.now(),e=[];t-Ld>2&&(pu("matchMediaInit"),Zr.forEach(function(n){var i=n.queries,s=n.conditions,o,a,l,c;for(a in i)o=wi.matchMedia(i[a]).matches,o&&(l=1),o!==s[a]&&(s[a]=o,c=1);c&&(n.revert(),l&&e.push(n))}),pu("matchMediaRevert"),e.forEach(function(n){return n.onMatch(n,function(i){return n.add(null,i)})}),Ld=t,pu("matchMedia"))},dp=function(){function r(e,n){this.selector=n&&bu(n),this.data=[],this._r=[],this.isReverted=!1,this.id=Ix++,e&&this.add(e)}var t=r.prototype;return t.add=function(n,i,s){Ie(n)&&(s=i,i=n,n=Ie);var o=this,a=function(){var c=Ae,h=o.selector,f;return c&&c!==o&&c.data.push(o),s&&(o.selector=bu(s)),Ae=o,f=i.apply(o,arguments),Ie(f)&&o._r.push(f),Ae=c,o.selector=h,o.isReverted=!1,f};return o.last=a,n===Ie?a(o,function(l){return o.add(null,l)}):n?o[n]=a:a},t.ignore=function(n){var i=Ae;Ae=null,n(this),Ae=i},t.getTweens=function(){var n=[];return this.data.forEach(function(i){return i instanceof r?n.push.apply(n,i.getTweens()):i instanceof Ne&&!(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 a=s.getTweens(),l=s.data.length,c;l--;)c=s.data[l],c.data==="isFlip"&&(c.revert(),c.getChildren(!0,!0,!1).forEach(function(h){return a.splice(a.indexOf(h),1)}));for(a.map(function(h){return{g:h._dur||h._delay||h._sat&&!h._sat.vars.immediateRender?h.globalTime(0):-1/0,t:h}}).sort(function(h,f){return f.g-h.g||-1/0}).forEach(function(h){return h.t.revert(n)}),l=s.data.length;l--;)c=s.data[l],c instanceof tn?c.data!=="nested"&&(c.scrollTrigger&&c.scrollTrigger.revert(),c.kill()):!(c instanceof Ne)&&c.revert&&c.revert(n);s._r.forEach(function(h){return h(n,s)}),s.isReverted=!0}():this.data.forEach(function(a){return a.kill&&a.kill()}),this.clear(),i)for(var o=Zr.length;o--;)Zr[o].id===this.id&&Zr.splice(o,1)},t.revert=function(n){this.kill(n||{})},r}(),Lx=function(){function r(e){this.contexts=[],this.scope=e,Ae&&Ae.data.push(this)}var t=r.prototype;return t.add=function(n,i,s){Ti(n)||(n={matches:n});var o=new dp(0,s||this.scope),a=o.conditions={},l,c,h;Ae&&!o.selector&&(o.selector=Ae.selector),this.contexts.push(o),i=o.add("onMatch",i),o.queries=n;for(c in n)c==="all"?h=1:(l=wi.matchMedia(n[c]),l&&(Zr.indexOf(o)<0&&Zr.push(o),(a[c]=l.matches)&&(h=1),l.addListener?l.addListener(Tu):l.addEventListener("change",Tu)));return h&&i(o,function(f){return o.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}(),ll={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 ip(i)})},timeline:function(t){return new tn(t)},getTweensOf:function(t,e){return Ce.getTweensOf(t,e)},getProperty:function(t,e,n,i){Ge(t)&&(t=qn(t)[0]);var s=hr(t||{}).get,o=n?Wd:Gd;return n==="native"&&(n=""),t&&(e?o((Dn[e]&&Dn[e].get||s)(t,e,n,i)):function(a,l,c){return o((Dn[a]&&Dn[a].get||s)(t,a,l,c))})},quickSetter:function(t,e,n){if(t=qn(t),t.length>1){var i=t.map(function(h){return cn.quickSetter(h,e,n)}),s=i.length;return function(h){for(var f=s;f--;)i[f](h)}}t=t[0]||{};var o=Dn[e],a=hr(t),l=a.harness&&(a.harness.aliases||{})[e]||e,c=o?function(h){var f=new o;Bs._pt=0,f.init(t,n?h+n:h,Bs,0,[t]),f.render(1,f),Bs._pt&&Gu(1,Bs)}:a.set(t,l);return o?c:function(h){return c(t,l,n?h+n:h,a,1)}},quickTo:function(t,e,n){var i,s=cn.to(t,Jr((i={},i[e]="+=0.1",i.paused=!0,i),n||{})),o=function(l,c,h){return s.resetTo(e,l,c,h)};return o.tween=s,o},isTweening:function(t){return Ce.getTweensOf(t,!0).length>0},defaults:function(t){return t&&t.ease&&(t.ease=qr(t.ease,ks.ease)),Dd(ks,t||{})},config:function(t){return Dd(Pn,t||{})},registerEffect:function(t){var e=t.name,n=t.effect,i=t.plugins,s=t.defaults,o=t.extendTimeline;(i||"").split(",").forEach(function(a){return a&&!Dn[a]&&!On[a]&&jo(e+" effect requires "+a+" plugin.")}),uu[e]=function(a,l,c){return n(qn(a),Zn(l||{},s),c)},o&&(tn.prototype[e]=function(a,l,c){return this.add(uu[e](a,Ti(l)?l:(c=l)&&{},this),c)})},registerEase:function(t,e){fe[t]=qr(e)},parseEase:function(t,e){return arguments.length?qr(t,e):fe},getById:function(t){return Ce.getById(t)},exportRoot:function(t,e){t===void 0&&(t={});var n=new tn(t),i,s;for(n.smoothChildTiming=Rn(t.smoothChildTiming),Ce.remove(n),n._dp=0,n._time=n._tTime=Ce._time,i=Ce._first;i;)s=i._next,(e||!(!i._dur&&i instanceof Ne&&i.vars.onComplete===i._targets[0]))&&Ei(n,i,i._start-i._delay),i=s;return Ei(Ce,n,0),n},context:function(t,e){return t?new dp(t,e):Ae},matchMedia:function(t){return new Lx(t)},matchMediaRefresh:function(){return Zr.forEach(function(t){var e=t.conditions,n,i;for(i in e)e[i]&&(e[i]=!1,n=1);n&&t.revert()})||Tu()},addEventListener:function(t,e){var n=il[t]||(il[t]=[]);~n.indexOf(e)||n.push(e)},removeEventListener:function(t,e){var n=il[t],i=n&&n.indexOf(e);i>=0&&n.splice(i,1)},utils:{wrap:hx,wrapYoyo:fx,distribute:Kd,random:Qd,snap:jd,normalize:ux,getUnit:en,clamp:ox,splitColor:rp,toArray:qn,selector:bu,mapRange:ep,pipe:lx,unitize:cx,interpolate:dx,shuffle:$d},install:kd,effects:uu,ticker:Cn,updateRoot:tn.updateRoot,plugins:Dn,globalTimeline:Ce,core:{PropTween:xn,globals:zd,Tween:Ne,Timeline:tn,Animation:ea,getCache:hr,_removeLinkedListItem:hl,reverting:function(){return an},context:function(t){return t&&Ae&&(Ae.data.push(t),t._ctx=Ae),Ae},suppressOverwrites:function(t){return Au=t}}};_n("to,from,fromTo,delayedCall,set,killTweensOf",function(r){return ll[r]=Ne[r]});Cn.add(tn.updateRoot);Bs=ll.to({},{duration:0});var Fx=function(t,e){for(var n=t._pt;n&&n.p!==e&&n.op!==e&&n.fp!==e;)n=n._next;return n},Nx=function(t,e){var n=t._targets,i,s,o;for(i in e)for(s=n.length;s--;)o=t._ptLookup[s][i],o&&(o=o.d)&&(o._pt&&(o=Fx(o,i)),o&&o.modifier&&o.modifier(e[i],t,n[s],i))},mu=function(t,e){return{name:t,rawVars:1,init:function(i,s,o){o._onInit=function(a){var l,c;if(Ge(s)&&(l={},_n(s,function(h){return l[h]=1}),s=l),e){l={};for(c in s)l[c]=e(s[c]);s=l}Nx(a,s)}}}},cn=ll.registerPlugin({name:"attr",init:function(t,e,n,i,s){var o,a,l;this.tween=n;for(o in e)l=t.getAttribute(o)||"",a=this.add(t,"setAttribute",(l||0)+"",e[o],i,s,0,0,o),a.op=o,a.b=l,this._props.push(o)},render:function(t,e){for(var n=e._pt;n;)an?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)}},mu("roundProps",wu),mu("modifiers"),mu("snap",jd))||ll;Ne.version=tn.version=cn.version="3.12.5";Bd=1;Du()&&Hs();var Ux=fe.Power0,Ox=fe.Power1,Bx=fe.Power2,kx=fe.Power3,zx=fe.Power4,Vx=fe.Linear,Hx=fe.Quad,Gx=fe.Cubic,Wx=fe.Quart,Xx=fe.Quint,Yx=fe.Strong,qx=fe.Elastic,Zx=fe.Back,Jx=fe.SteppedEase,$x=fe.Bounce,Kx=fe.Sine,jx=fe.Expo,Qx=fe.Circ;var pp,pr,Xs,Ku,ns,tv,mp,ju,ev=function(){return typeof window<"u"},Vi={},es=180/Math.PI,Ys=Math.PI/180,Ws=Math.atan2,gp=1e8,Qu=/([A-Z])/g,nv=/(left|right|width|margin|padding|x)/i,iv=/[\s,\(]\S/,Ai={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},qu=function(t,e){return e.set(e.t,e.p,Math.round((e.s+e.c*t)*1e4)/1e4+e.u,e)},rv=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)},sv=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)},ov=function(t,e){var n=e.s+e.c*t;e.set(e.t,e.p,~~(n+(n<0?-.5:.5))+e.u,e)},bp=function(t,e){return e.set(e.t,e.p,t?e.e:e.b,e)},wp=function(t,e){return e.set(e.t,e.p,t!==1?e.b:e.e,e)},av=function(t,e,n){return t.style[e]=n},lv=function(t,e,n){return t.style.setProperty(e,n)},cv=function(t,e,n){return t._gsap[e]=n},uv=function(t,e,n){return t._gsap.scaleX=t._gsap.scaleY=n},hv=function(t,e,n,i,s){var o=t._gsap;o.scaleX=o.scaleY=n,o.renderTransform(s,o)},fv=function(t,e,n,i,s){var o=t._gsap;o[e]=n,o.renderTransform(s,o)},Re="transform",In=Re+"Origin",dv=function r(t,e){var n=this,i=this.target,s=i.style,o=i._gsap;if(t in Vi&&s){if(this.tfm=this.tfm||{},t!=="transform")t=Ai[t]||t,~t.indexOf(",")?t.split(",").forEach(function(a){return n.tfm[a]=zi(i,a)}):this.tfm[t]=o.x?o[t]:zi(i,t),t===In&&(this.tfm.zOrigin=o.zOrigin);else return Ai.transform.split(",").forEach(function(a){return r.call(n,a,e)});if(this.props.indexOf(Re)>=0)return;o.svg&&(this.svgo=i.getAttribute("data-svg-origin"),this.props.push(In,e,"")),t=Re}(s||e)&&this.props.push(t,e,s[t])},Ep=function(t){t.translate&&(t.removeProperty("translate"),t.removeProperty("scale"),t.removeProperty("rotate"))},pv=function(){var t=this.props,e=this.target,n=e.style,i=e._gsap,s,o;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(Qu,"-$1").toLowerCase());if(this.tfm){for(o in this.tfm)i[o]=this.tfm[o];i.svg&&(i.renderTransform(),e.setAttribute("data-svg-origin",this.svgo||"")),s=ju(),(!s||!s.isStart)&&!n[Re]&&(Ep(n),i.zOrigin&&n[In]&&(n[In]+=" "+i.zOrigin+"px",i.zOrigin=0,i.renderTransform()),i.uncache=1)}},Tp=function(t,e){var n={target:t,props:[],revert:pv,save:dv};return t._gsap||cn.core.getCache(t),e&&e.split(",").forEach(function(i){return n.save(i)}),n},Ap,Zu=function(t,e){var n=pr.createElementNS?pr.createElementNS((e||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),t):pr.createElement(t);return n&&n.style?n:pr.createElement(t)},Di=function r(t,e,n){var i=getComputedStyle(t);return i[e]||i.getPropertyValue(e.replace(Qu,"-$1").toLowerCase())||i.getPropertyValue(e)||!n&&r(t,qs(e)||e,1)||""},_p="O,Moz,ms,Ms,Webkit".split(","),qs=function(t,e,n){var i=e||ns,s=i.style,o=5;if(t in s&&!n)return t;for(t=t.charAt(0).toUpperCase()+t.substr(1);o--&&!(_p[o]+t in s););return o<0?null:(o===3?"ms":o>=0?_p[o]:"")+t},Ju=function(){ev()&&window.document&&(pp=window,pr=pp.document,Xs=pr.documentElement,ns=Zu("div")||{style:{}},tv=Zu("div"),Re=qs(Re),In=Re+"Origin",ns.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",Ap=!!qs("perspective"),ju=cn.core.reverting,Ku=1)},Xu=function r(t){var e=Zu("svg",this.ownerSVGElement&&this.ownerSVGElement.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),n=this.parentNode,i=this.nextSibling,s=this.style.cssText,o;if(Xs.appendChild(e),e.appendChild(this),this.style.display="block",t)try{o=this.getBBox(),this._gsapBBox=this.getBBox,this.getBBox=r}catch{}else this._gsapBBox&&(o=this._gsapBBox());return n&&(i?n.insertBefore(this,i):n.appendChild(this)),Xs.removeChild(e),this.style.cssText=s,o},xp=function(t,e){for(var n=e.length;n--;)if(t.hasAttribute(e[n]))return t.getAttribute(e[n])},Dp=function(t){var e;try{e=t.getBBox()}catch{e=Xu.call(t,!0)}return e&&(e.width||e.height)||t.getBBox===Xu||(e=Xu.call(t,!0)),e&&!e.width&&!e.x&&!e.y?{x:+xp(t,["x","cx","x1"])||0,y:+xp(t,["y","cy","y1"])||0,width:0,height:0}:e},Cp=function(t){return!!(t.getCTM&&(!t.parentNode||t.ownerSVGElement)&&Dp(t))},is=function(t,e){if(e){var n=t.style,i;e in Vi&&e!==In&&(e=Re),n.removeProperty?(i=e.substr(0,2),(i==="ms"||e.substr(0,6)==="webkit")&&(e="-"+e),n.removeProperty(i==="--"?e:e.replace(Qu,"-$1").toLowerCase())):n.removeAttribute(e)}},mr=function(t,e,n,i,s,o){var a=new xn(t._pt,e,n,0,1,o?wp:bp);return t._pt=a,a.b=i,a.e=s,t._props.push(n),a},vp={deg:1,rad:1,turn:1},mv={grid:1,flex:1},gr=function r(t,e,n,i){var s=parseFloat(n)||0,o=(n+"").trim().substr((s+"").length)||"px",a=ns.style,l=nv.test(e),c=t.tagName.toLowerCase()==="svg",h=(c?"client":"offset")+(l?"Width":"Height"),f=100,d=i==="px",u=i==="%",_,p,m,g;if(i===o||!s||vp[i]||vp[o])return s;if(o!=="px"&&!d&&(s=r(t,e,n,"px")),g=t.getCTM&&Cp(t),(u||o==="%")&&(Vi[e]||~e.indexOf("adius")))return _=g?t.getBBox()[l?"width":"height"]:t[h],Le(u?s/_*f:s/100*_);if(a[l?"width":"height"]=f+(d?o:i),p=~e.indexOf("adius")||i==="em"&&t.appendChild&&!c?t:t.parentNode,g&&(p=(t.ownerSVGElement||{}).parentNode),(!p||p===pr||!p.appendChild)&&(p=pr.body),m=p._gsap,m&&u&&m.width&&l&&m.time===Cn.time&&!m.uncache)return Le(s/m.width*f);if(u&&(e==="height"||e==="width")){var b=t.style[e];t.style[e]=f+i,_=t[h],b?t.style[e]=b:is(t,e)}else(u||o==="%")&&!mv[Di(p,"display")]&&(a.position=Di(t,"position")),p===t&&(a.position="static"),p.appendChild(ns),_=ns[h],p.removeChild(ns),a.position="absolute";return l&&u&&(m=hr(p),m.time=Cn.time,m.width=p[h]),Le(d?_*s/f:_&&s?f/_*s:0)},zi=function(t,e,n,i){var s;return Ku||Ju(),e in Ai&&e!=="transform"&&(e=Ai[e],~e.indexOf(",")&&(e=e.split(",")[0])),Vi[e]&&e!=="transform"?(s=sa(t,i),s=e!=="transformOrigin"?s[e]:s.svg?s.origin:gl(Di(t,In))+" "+s.zOrigin+"px"):(s=t.style[e],(!s||s==="auto"||i||~(s+"").indexOf("calc("))&&(s=ml[e]&&ml[e](t,e,n)||Di(t,e)||Nu(t,e)||(e==="opacity"?1:0))),n&&!~(s+"").trim().indexOf(" ")?gr(t,e,s,n)+n:s},gv=function(t,e,n,i){if(!n||n==="none"){var s=qs(e,t,1),o=s&&Di(t,s,1);o&&o!==n?(e=s,n=o):e==="borderColor"&&(n=Di(t,"borderTopColor"))}var a=new xn(this._pt,t.style,e,0,1,Hu),l=0,c=0,h,f,d,u,_,p,m,g,b,y,S,D;if(a.b=n,a.e=i,n+="",i+="",i==="auto"&&(p=t.style[e],t.style[e]=i,i=Di(t,e)||i,p?t.style[e]=p:is(t,e)),h=[n,i],Uu(h),n=h[0],i=h[1],d=n.match($r)||[],D=i.match($r)||[],D.length){for(;f=$r.exec(i);)m=f[0],b=i.substring(l,f.index),_?_=(_+1)%5:(b.substr(-5)==="rgba("||b.substr(-5)==="hsla(")&&(_=1),m!==(p=d[c++]||"")&&(u=parseFloat(p)||0,S=p.substr((u+"").length),m.charAt(1)==="="&&(m=Kr(u,m)+S),g=parseFloat(m),y=m.substr((g+"").length),l=$r.lastIndex-y.length,y||(y=y||Pn.units[e]||S,l===i.length&&(i+=y,a.e+=y)),S!==y&&(u=gr(t,e,p,y)||0),a._pt={_next:a._pt,p:b||c===1?b:",",s:u,c:g-u,m:_&&_<4||e==="zIndex"?Math.round:0});a.c=l<i.length?i.substring(l,i.length):""}else a.r=e==="display"&&i==="none"?wp:bp;return Ru.test(i)&&(a.e=0),this._pt=a,a},yp={top:"0%",bottom:"100%",left:"0%",right:"100%",center:"50%"},_v=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]=yp[n]||n,e[1]=yp[i]||i,e.join(" ")},xv=function(t,e){if(e.tween&&e.tween._time===e.tween._dur){var n=e.t,i=n.style,s=e.u,o=n._gsap,a,l,c;if(s==="all"||s===!0)i.cssText="",l=1;else for(s=s.split(","),c=s.length;--c>-1;)a=s[c],Vi[a]&&(l=1,a=a==="transformOrigin"?In:Re),is(n,a);l&&(is(n,Re),o&&(o.svg&&n.removeAttribute("transform"),sa(n,1),o.uncache=1,Ep(i)))}},ml={clearProps:function(t,e,n,i,s){if(s.data!=="isFromStart"){var o=t._pt=new xn(t._pt,e,n,0,0,xv);return o.u=i,o.pr=-10,o.tween=s,t._props.push(n),1}}},ra=[1,0,0,1,0,0],Rp={},Pp=function(t){return t==="matrix(1, 0, 0, 1, 0, 0)"||t==="none"||!t},Sp=function(t){var e=Di(t,Re);return Pp(e)?ra:e.substr(7).match(Cu).map(Le)},th=function(t,e){var n=t._gsap||hr(t),i=t.style,s=Sp(t),o,a,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"?ra:s):(s===ra&&!t.offsetParent&&t!==Xs&&!n.svg&&(l=i.display,i.display="block",o=t.parentNode,(!o||!t.offsetParent)&&(c=1,a=t.nextElementSibling,Xs.appendChild(t)),s=Sp(t),l?i.display=l:is(t,"display"),c&&(a?o.insertBefore(t,a):o?o.appendChild(t):Xs.removeChild(t))),e&&s.length>6?[s[0],s[1],s[4],s[5],s[12],s[13]]:s)},$u=function(t,e,n,i,s,o){var a=t._gsap,l=s||th(t,!0),c=a.xOrigin||0,h=a.yOrigin||0,f=a.xOffset||0,d=a.yOffset||0,u=l[0],_=l[1],p=l[2],m=l[3],g=l[4],b=l[5],y=e.split(" "),S=parseFloat(y[0])||0,D=parseFloat(y[1])||0,T,w,P,M;n?l!==ra&&(w=u*m-_*p)&&(P=S*(m/w)+D*(-p/w)+(p*b-m*g)/w,M=S*(-_/w)+D*(u/w)-(u*b-_*g)/w,S=P,D=M):(T=Dp(t),S=T.x+(~y[0].indexOf("%")?S/100*T.width:S),D=T.y+(~(y[1]||y[0]).indexOf("%")?D/100*T.height:D)),i||i!==!1&&a.smooth?(g=S-c,b=D-h,a.xOffset=f+(g*u+b*p)-g,a.yOffset=d+(g*_+b*m)-b):a.xOffset=a.yOffset=0,a.xOrigin=S,a.yOrigin=D,a.smooth=!!i,a.origin=e,a.originIsAbsolute=!!n,t.style[In]="0px 0px",o&&(mr(o,a,"xOrigin",c,S),mr(o,a,"yOrigin",h,D),mr(o,a,"xOffset",f,a.xOffset),mr(o,a,"yOffset",d,a.yOffset)),t.setAttribute("data-svg-origin",S+" "+D)},sa=function(t,e){var n=t._gsap||new Ou(t);if("x"in n&&!e&&!n.uncache)return n;var i=t.style,s=n.scaleX<0,o="px",a="deg",l=getComputedStyle(t),c=Di(t,In)||"0",h,f,d,u,_,p,m,g,b,y,S,D,T,w,P,M,v,I,N,C,V,$,W,Z,z,U,R,at,_t,Ut,X,ot;return h=f=d=p=m=g=b=y=S=0,u=_=1,n.svg=!!(t.getCTM&&Cp(t)),l.translate&&((l.translate!=="none"||l.scale!=="none"||l.rotate!=="none")&&(i[Re]=(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[Re]!=="none"?l[Re]:"")),i.scale=i.rotate=i.translate="none"),w=th(t,n.svg),n.svg&&(n.uncache?(z=t.getBBox(),c=n.xOrigin-z.x+"px "+(n.yOrigin-z.y)+"px",Z=""):Z=!e&&t.getAttribute("data-svg-origin"),$u(t,Z||c,!!Z||n.originIsAbsolute,n.smooth!==!1,w)),D=n.xOrigin||0,T=n.yOrigin||0,w!==ra&&(I=w[0],N=w[1],C=w[2],V=w[3],h=$=w[4],f=W=w[5],w.length===6?(u=Math.sqrt(I*I+N*N),_=Math.sqrt(V*V+C*C),p=I||N?Ws(N,I)*es:0,b=C||V?Ws(C,V)*es+p:0,b&&(_*=Math.abs(Math.cos(b*Ys))),n.svg&&(h-=D-(D*I+T*C),f-=T-(D*N+T*V))):(ot=w[6],Ut=w[7],R=w[8],at=w[9],_t=w[10],X=w[11],h=w[12],f=w[13],d=w[14],P=Ws(ot,_t),m=P*es,P&&(M=Math.cos(-P),v=Math.sin(-P),Z=$*M+R*v,z=W*M+at*v,U=ot*M+_t*v,R=$*-v+R*M,at=W*-v+at*M,_t=ot*-v+_t*M,X=Ut*-v+X*M,$=Z,W=z,ot=U),P=Ws(-C,_t),g=P*es,P&&(M=Math.cos(-P),v=Math.sin(-P),Z=I*M-R*v,z=N*M-at*v,U=C*M-_t*v,X=V*v+X*M,I=Z,N=z,C=U),P=Ws(N,I),p=P*es,P&&(M=Math.cos(P),v=Math.sin(P),Z=I*M+N*v,z=$*M+W*v,N=N*M-I*v,W=W*M-$*v,I=Z,$=z),m&&Math.abs(m)+Math.abs(p)>359.9&&(m=p=0,g=180-g),u=Le(Math.sqrt(I*I+N*N+C*C)),_=Le(Math.sqrt(W*W+ot*ot)),P=Ws($,W),b=Math.abs(P)>2e-4?P*es:0,S=X?1/(X<0?-X:X):0),n.svg&&(Z=t.getAttribute("transform"),n.forceCSS=t.setAttribute("transform","")||!Pp(Di(t,Re)),Z&&t.setAttribute("transform",Z))),Math.abs(b)>90&&Math.abs(b)<270&&(s?(u*=-1,b+=p<=0?180:-180,p+=p<=0?180:-180):(_*=-1,b+=b<=0?180:-180)),e=e||n.uncache,n.x=h-((n.xPercent=h&&(!e&&n.xPercent||(Math.round(t.offsetWidth/2)===Math.round(-h)?-50:0)))?t.offsetWidth*n.xPercent/100:0)+o,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)+o,n.z=d+o,n.scaleX=Le(u),n.scaleY=Le(_),n.rotation=Le(p)+a,n.rotationX=Le(m)+a,n.rotationY=Le(g)+a,n.skewX=b+a,n.skewY=y+a,n.transformPerspective=S+o,(n.zOrigin=parseFloat(c.split(" ")[2])||!e&&n.zOrigin||0)&&(i[In]=gl(c)),n.xOffset=n.yOffset=0,n.force3D=Pn.force3D,n.renderTransform=n.svg?yv:Ap?Ip:vv,n.uncache=0,n},gl=function(t){return(t=t.split(" "))[0]+" "+t[1]},Yu=function(t,e,n){var i=en(e);return Le(parseFloat(e)+parseFloat(gr(t,"x",n+"px",i)))+i},vv=function(t,e){e.z="0px",e.rotationY=e.rotationX="0deg",e.force3D=0,Ip(t,e)},Qr="0deg",ia="0px",ts=") ",Ip=function(t,e){var n=e||this,i=n.xPercent,s=n.yPercent,o=n.x,a=n.y,l=n.z,c=n.rotation,h=n.rotationY,f=n.rotationX,d=n.skewX,u=n.skewY,_=n.scaleX,p=n.scaleY,m=n.transformPerspective,g=n.force3D,b=n.target,y=n.zOrigin,S="",D=g==="auto"&&t&&t!==1||g===!0;if(y&&(f!==Qr||h!==Qr)){var T=parseFloat(h)*Ys,w=Math.sin(T),P=Math.cos(T),M;T=parseFloat(f)*Ys,M=Math.cos(T),o=Yu(b,o,w*M*-y),a=Yu(b,a,-Math.sin(T)*-y),l=Yu(b,l,P*M*-y+y)}m!==ia&&(S+="perspective("+m+ts),(i||s)&&(S+="translate("+i+"%, "+s+"%) "),(D||o!==ia||a!==ia||l!==ia)&&(S+=l!==ia||D?"translate3d("+o+", "+a+", "+l+") ":"translate("+o+", "+a+ts),c!==Qr&&(S+="rotate("+c+ts),h!==Qr&&(S+="rotateY("+h+ts),f!==Qr&&(S+="rotateX("+f+ts),(d!==Qr||u!==Qr)&&(S+="skew("+d+", "+u+ts),(_!==1||p!==1)&&(S+="scale("+_+", "+p+ts),b.style[Re]=S||"translate(0, 0)"},yv=function(t,e){var n=e||this,i=n.xPercent,s=n.yPercent,o=n.x,a=n.y,l=n.rotation,c=n.skewX,h=n.skewY,f=n.scaleX,d=n.scaleY,u=n.target,_=n.xOrigin,p=n.yOrigin,m=n.xOffset,g=n.yOffset,b=n.forceCSS,y=parseFloat(o),S=parseFloat(a),D,T,w,P,M;l=parseFloat(l),c=parseFloat(c),h=parseFloat(h),h&&(h=parseFloat(h),c+=h,l+=h),l||c?(l*=Ys,c*=Ys,D=Math.cos(l)*f,T=Math.sin(l)*f,w=Math.sin(l-c)*-d,P=Math.cos(l-c)*d,c&&(h*=Ys,M=Math.tan(c-h),M=Math.sqrt(1+M*M),w*=M,P*=M,h&&(M=Math.tan(h),M=Math.sqrt(1+M*M),D*=M,T*=M)),D=Le(D),T=Le(T),w=Le(w),P=Le(P)):(D=f,P=d,T=w=0),(y&&!~(o+"").indexOf("px")||S&&!~(a+"").indexOf("px"))&&(y=gr(u,"x",o,"px"),S=gr(u,"y",a,"px")),(_||p||m||g)&&(y=Le(y+_-(_*D+p*w)+m),S=Le(S+p-(_*T+p*P)+g)),(i||s)&&(M=u.getBBox(),y=Le(y+i/100*M.width),S=Le(S+s/100*M.height)),M="matrix("+D+","+T+","+w+","+P+","+y+","+S+")",u.setAttribute("transform",M),b&&(u.style[Re]=M)},Sv=function(t,e,n,i,s){var o=360,a=Ge(s),l=parseFloat(s)*(a&&~s.indexOf("rad")?es:1),c=l-i,h=i+c+"deg",f,d;return a&&(f=s.split("_")[1],f==="short"&&(c%=o,c!==c%(o/2)&&(c+=c<0?o:-o)),f==="cw"&&c<0?c=(c+o*gp)%o-~~(c/o)*o:f==="ccw"&&c>0&&(c=(c-o*gp)%o-~~(c/o)*o)),t._pt=d=new xn(t._pt,e,n,i,c,rv),d.e=h,d.u="deg",t._props.push(n),d},Mp=function(t,e){for(var n in e)t[n]=e[n];return t},Mv=function(t,e,n){var i=Mp({},n._gsap),s="perspective,force3D,transformOrigin,svgOrigin",o=n.style,a,l,c,h,f,d,u,_;i.svg?(c=n.getAttribute("transform"),n.setAttribute("transform",""),o[Re]=e,a=sa(n,1),is(n,Re),n.setAttribute("transform",c)):(c=getComputedStyle(n)[Re],o[Re]=e,a=sa(n,1),o[Re]=c);for(l in Vi)c=i[l],h=a[l],c!==h&&s.indexOf(l)<0&&(u=en(c),_=en(h),f=u!==_?gr(n,l,c,_):parseFloat(c),d=parseFloat(h),t._pt=new xn(t._pt,a,l,f,d-f,qu),t._pt.u=_||0,t._props.push(l));Mp(a,i)};_n("padding,margin,Width,Radius",function(r,t){var e="Top",n="Right",i="Bottom",s="Left",o=(t<3?[e,n,i,s]:[e+s,e+n,i+n,i+s]).map(function(a){return t<2?r+a:"border"+a+r});ml[t>1?"border"+r:r]=function(a,l,c,h,f){var d,u;if(arguments.length<4)return d=o.map(function(_){return zi(a,_,c)}),u=d.join(" "),u.split(d[0]).length===5?d[0]:u;d=(h+"").split(" "),u={},o.forEach(function(_,p){return u[_]=d[p]=d[p]||d[(p-1)/2|0]}),a.init(l,u,f)}});var eh={name:"css",register:Ju,targetTest:function(t){return t.style&&t.nodeType},init:function(t,e,n,i,s){var o=this._props,a=t.style,l=n.vars.startAt,c,h,f,d,u,_,p,m,g,b,y,S,D,T,w,P;Ku||Ju(),this.styles=this.styles||Tp(t),P=this.styles.props,this.tween=n;for(p in e)if(p!=="autoRound"&&(h=e[p],!(Dn[p]&&ku(p,e,n,i,t,s)))){if(u=typeof h,_=ml[p],u==="function"&&(h=h.call(n,i,t,s),u=typeof h),u==="string"&&~h.indexOf("random(")&&(h=Gs(h)),_)_(this,t,p,h,n)&&(w=1);else if(p.substr(0,2)==="--")c=(getComputedStyle(t).getPropertyValue(p)+"").trim(),h+="",Bi.lastIndex=0,Bi.test(c)||(m=en(c),g=en(h)),g?m!==g&&(c=gr(t,p,c,g)+g):m&&(h+=m),this.add(a,"setProperty",c,h,i,s,0,0,p),o.push(p),P.push(p,0,a[p]);else if(u!=="undefined"){if(l&&p in l?(c=typeof l[p]=="function"?l[p].call(n,i,t,s):l[p],Ge(c)&&~c.indexOf("random(")&&(c=Gs(c)),en(c+"")||c==="auto"||(c+=Pn.units[p]||en(zi(t,p))||""),(c+"").charAt(1)==="="&&(c=zi(t,p))):c=zi(t,p),d=parseFloat(c),b=u==="string"&&h.charAt(1)==="="&&h.substr(0,2),b&&(h=h.substr(2)),f=parseFloat(h),p in Ai&&(p==="autoAlpha"&&(d===1&&zi(t,"visibility")==="hidden"&&f&&(d=0),P.push("visibility",0,a.visibility),mr(this,a,"visibility",d?"inherit":"hidden",f?"inherit":"hidden",!f)),p!=="scale"&&p!=="transform"&&(p=Ai[p],~p.indexOf(",")&&(p=p.split(",")[0]))),y=p in Vi,y){if(this.styles.save(p),S||(D=t._gsap,D.renderTransform&&!e.parseTransform||sa(t,e.parseTransform),T=e.smoothOrigin!==!1&&D.smooth,S=this._pt=new xn(this._pt,a,Re,0,1,D.renderTransform,D,0,-1),S.dep=1),p==="scale")this._pt=new xn(this._pt,D,"scaleY",D.scaleY,(b?Kr(D.scaleY,b+f):f)-D.scaleY||0,qu),this._pt.u=0,o.push("scaleY",p),p+="X";else if(p==="transformOrigin"){P.push(In,0,a[In]),h=_v(h),D.svg?$u(t,h,0,T,0,this):(g=parseFloat(h.split(" ")[2])||0,g!==D.zOrigin&&mr(this,D,"zOrigin",D.zOrigin,g),mr(this,a,p,gl(c),gl(h)));continue}else if(p==="svgOrigin"){$u(t,h,1,T,0,this);continue}else if(p in Rp){Sv(this,D,p,d,b?Kr(d,b+h):h);continue}else if(p==="smoothOrigin"){mr(this,D,"smooth",D.smooth,h);continue}else if(p==="force3D"){D[p]=h;continue}else if(p==="transform"){Mv(this,h,t);continue}}else p in a||(p=qs(p)||p);if(y||(f||f===0)&&(d||d===0)&&!iv.test(h)&&p in a)m=(c+"").substr((d+"").length),f||(f=0),g=en(h)||(p in Pn.units?Pn.units[p]:m),m!==g&&(d=gr(t,p,c,g)),this._pt=new xn(this._pt,y?D:a,p,d,(b?Kr(d,b+f):f)-d,!y&&(g==="px"||p==="zIndex")&&e.autoRound!==!1?ov:qu),this._pt.u=g||0,m!==g&&g!=="%"&&(this._pt.b=c,this._pt.r=sv);else if(p in a)gv.call(this,t,p,c,b?b+h:h);else if(p in t)this.add(t,p,c||t[p],b?b+h:h,i,s);else if(p!=="parseTransform"){ul(p,h);continue}y||(p in a?P.push(p,0,a[p]):P.push(p,1,c||t[p])),o.push(p)}}w&&Wu(this)},render:function(t,e){if(e.tween._time||!ju())for(var n=e._pt;n;)n.r(t,n.d),n=n._next;else e.styles.revert()},get:zi,aliases:Ai,getSetter:function(t,e,n){var i=Ai[e];return i&&i.indexOf(",")<0&&(e=i),e in Vi&&e!==In&&(t._gsap.x||zi(t,"x"))?n&&mp===n?e==="scale"?uv:cv:(mp=n||{})&&(e==="scale"?hv:fv):t.style&&!cl(t.style[e])?av:~e.indexOf("-")?lv:pl(t,e)},core:{_removeProperty:is,_getMatrix:th}};cn.utils.checkPrefix=qs;cn.core.getStyleSaver=Tp;(function(r,t,e,n){var i=_n(r+","+t+","+e,function(s){Vi[s]=1});_n(t,function(s){Pn.units[s]="deg",Rp[s]=1}),Ai[i[13]]=r+","+t,_n(n,function(s){var o=s.split(":");Ai[o[1]]=i[o[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");_n("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",function(r){Pn.units[r]="px"});cn.registerPlugin(eh);var ue=cn.registerPlugin(eh)||cn,_T=ue.core.Tween;function Lp(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 bv(r,t,e){return t&&Lp(r.prototype,t),e&&Lp(r,e),r}var ve,_l,nn,ss,Zs,ai,wv,rs,Fp,ie,Ci,xl,Np,Up,Op,Bp,kp=function(){return typeof window<"u"},zp=function(){return ve||kp()&&(ve=window.gsap)&&ve.registerPlugin&&ve};var Ev=function(t){return Math.round(t*1e5)/1e5||0},_r=function(t){return ie.maxScroll(t||nn)},Tv=function(t,e){var n=t.parentNode||Zs,i=t.getBoundingClientRect(),s=n.getBoundingClientRect(),o=s.top-i.top,a=s.bottom-i.bottom,l=(Math.abs(o)>Math.abs(a)?o:a)/(1-e),c=-l*e,h,f;return l>0&&(h=s.height/(nn.innerHeight+s.height),f=h===.5?s.height*2:Math.min(s.height,Math.abs(-l*h/(2*h-1)))*2*(e||1),c+=e?-f*e:-f/2,l+=f),{change:l,offset:c}},Av=function(t){var e=ss.querySelector(".ScrollSmoother-wrapper");return e||(e=ss.createElement("div"),e.classList.add("ScrollSmoother-wrapper"),t.parentNode.insertBefore(e,t),e.appendChild(t)),e},li=function(){function r(t){var e=this;_l||r.register(ve)||console.warn("Please gsap.registerPlugin(ScrollSmoother)"),t=this.vars=t||{},Ci&&Ci.kill(),Ci=this,Op(this);var n=t,i=n.smoothTouch,s=n.onUpdate,o=n.onStop,a=n.smooth,l=n.onFocusIn,c=n.normalizeScroll,h=n.wholePixels,f,d,u,_,p,m,g,b,y,S,D,T,w,P,M=this,v=t.effectsPrefix||"",I=ie.getScrollFunc(nn),N=ie.isTouch===1?i===!0?.8:parseFloat(i)||0:a===0||a===!1?0:parseFloat(a)||.8,C=N&&+t.speed||1,V=0,$=0,W=1,Z=Np(0),z=function(){return Z.update(-V)},U={y:0},R=function(){return f.style.overflow="visible"},at,_t=function(x){x.update();var F=x.getTween();F&&(F.pause(),F._time=F._dur,F._tTime=F._tDur),at=!1,x.animation.progress(x.progress,!0)},Ut=function(x,F){(x!==V&&!S||F)&&(h&&(x=Math.round(x)),N&&(f.style.transform="matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, "+x+", 0, 1)",f._gsap.y=x+"px"),$=x-V,V=x,ie.isUpdating||r.isRefreshing||ie.update())},X=function(x){return arguments.length?(x<0&&(x=0),U.y=-x,at=!0,S?V=-x:Ut(-x),ie.isRefreshing?_.update():I(x/C),this):-V},ot=typeof ResizeObserver<"u"&&t.autoResize!==!1&&new ResizeObserver(function(){if(!ie.isRefreshing){var A=_r(d)*C;A<-V&&X(A),Bp.restart(!0)}}),xt,ct=function(x){d.scrollTop=0,!(x.target.contains&&x.target.contains(d)||l&&l(e,x)===!1)&&(ie.isInViewport(x.target)||x.target===xt||e.scrollTo(x.target,!1,"center center"),xt=x.target)},Rt=function(x,F){if(x<F.start)return x;var Y=isNaN(F.ratio)?1:F.ratio,tt=F.end-F.start,it=x-F.start,yt=F.offset||0,pt=F.pins||[],lt=pt.offset||0,Lt=F._startClamp&&F.start<=0||F.pins&&F.pins.offset?0:F._endClamp&&F.end===_r()?1:.5;return pt.forEach(function(ht){tt-=ht.distance,ht.nativeStart<=x&&(it-=ht.distance)}),lt&&(it*=(tt-lt/Y)/tt),x+(it-yt*Lt)/Y-it},kt=function A(x,F,Y){Y||(x.pins.length=x.pins.offset=0);var tt=x.pins,it=x.markers,yt,pt,lt,Lt,ht,vt,Yt,ut;for(Yt=0;Yt<F.length;Yt++)if(ut=F[Yt],x.trigger&&ut.trigger&&x!==ut&&(ut.trigger===x.trigger||ut.pinnedContainer===x.trigger||x.trigger.contains(ut.trigger))&&(ht=ut._startNative||ut._startClamp||ut.start,vt=ut._endNative||ut._endClamp||ut.end,lt=Rt(ht,x),Lt=ut.pin&&vt>0?lt+(vt-ht):Rt(vt,x),ut.setPositions(lt,Lt,!0,(ut._startClamp?Math.max(0,lt):lt)-ht),ut.markerStart&&it.push(ve.quickSetter([ut.markerStart,ut.markerEnd],"y","px")),ut.pin&&ut.end>0&&!Y)){if(yt=ut.end-ut.start,pt=x._startClamp&&ut.start<0,pt){if(x.start>0){x.setPositions(0,x.end+(x._startNative-x.start),!0),A(x,F);return}yt+=ut.start,tt.offset=-ut.start}tt.push({start:ut.start,nativeStart:ht,end:ut.end,distance:yt,trig:ut}),x.setPositions(x.start,x.end+(pt?-ut.start:yt),!0)}},q=function(x,F){p.forEach(function(Y){return kt(Y,x,F)})},Jt=function(){R(),requestAnimationFrame(R),p&&(ie.getAll().forEach(function(x){x._startNative=x.start,x._endNative=x.end}),p.forEach(function(x){var F=x._startClamp||x.start,Y=x.autoSpeed?Math.min(_r(),x.end):F+Math.abs((x.end-F)/x.ratio),tt=Y-x.end;if(F-=tt/2,Y-=tt/2,F>Y){var it=F;F=Y,Y=it}x._startClamp&&F<0?(Y=x.ratio<0?_r():x.end/x.ratio,tt=Y-x.end,F=0):(x.ratio<0||x._endClamp&&Y>=_r())&&(Y=_r(),F=x.ratio<0||x.ratio>1?0:Y-(Y-x.start)/x.ratio,tt=(Y-F)*x.ratio-(x.end-x.start)),x.offset=tt||1e-4,x.pins.length=x.pins.offset=0,x.setPositions(F,Y,!0)}),q(ie.sort())),Z.reset()},It=function(){return ie.addEventListener("refresh",Jt)},Ft=function(){return p&&p.forEach(function(x){return x.vars.onRefresh(x)})},bt=function(){return p&&p.forEach(function(x){return x.vars.onRefreshInit(x)}),Ft},Et=function(x,F,Y,tt){return function(){var it=typeof F=="function"?F(Y,tt):F;it||it===0||(it=tt.getAttribute("data-"+v+x)||(x==="speed"?1:0)),tt.setAttribute("data-"+v+x,it);var yt=(it+"").substr(0,6)==="clamp(";return{clamp:yt,value:yt?it.substr(6,it.length-7):it}}},Ht=function(x,F,Y,tt,it){it=(typeof it=="function"?it(tt,x):it)||0;var yt=Et("speed",F,tt,x),pt=Et("lag",Y,tt,x),lt=ve.getProperty(x,"y"),Lt=x._gsap,ht,vt,Yt,ut,Tt,Wt,qt=[],ce=function(){F=yt(),Y=parseFloat(pt().value),ht=parseFloat(F.value)||1,Yt=F.value==="auto",Tt=Yt||vt&&vt._startClamp&&vt.start<=0||qt.offset?0:vt&&vt._endClamp&&vt.end===_r()?1:.5,ut&&ut.kill(),ut=Y&&ve.to(x,{ease:xl,overwrite:!1,y:"+=0",duration:Y}),vt&&(vt.ratio=ht,vt.autoSpeed=Yt)},Zt=function(){Lt.y=lt+"px",Lt.renderTransform(1),ce()},k=[],Q=0,st=function(gt){if(Yt){Zt();var Bt=Tv(x,Fp(0,1,-gt.start/(gt.end-gt.start)));Q=Bt.change,Wt=Bt.offset}else Wt=qt.offset||0,Q=(gt.end-gt.start-Wt)*(1-ht);qt.forEach(function(ee){return Q-=ee.distance*(1-ht)}),gt.offset=Q||.001,gt.vars.onUpdate(gt),ut&&ut.progress(1)};return ce(),(ht!==1||Yt||ut)&&(vt=ie.create({trigger:Yt?x.parentNode:x,start:function(){return F.clamp?"clamp(top bottom+="+it+")":"top bottom+="+it},end:function(){return F.value<0?"max":F.clamp?"clamp(bottom top-="+it+")":"bottom top-="+it},scroller:d,scrub:!0,refreshPriority:-999,onRefreshInit:Zt,onRefresh:st,onKill:function(gt){var Bt=p.indexOf(gt);Bt>=0&&p.splice(Bt,1),Zt()},onUpdate:function(gt){var Bt=lt+Q*(gt.progress-Tt),ee=qt.length,Mt=0,L,rt,O;if(gt.offset){if(ee){for(rt=-V,O=gt.end;ee--;){if(L=qt[ee],L.trig.isActive||rt>=L.start&&rt<=L.end){ut&&(L.trig.progress+=L.trig.direction<0?.001:-.001,L.trig.update(0,0,1),ut.resetTo("y",parseFloat(Lt.y),-$,!0),W&&ut.progress(1));return}rt>L.end&&(Mt+=L.distance),O-=L.distance}Bt=lt+Mt+Q*((ve.utils.clamp(gt.start,gt.end,rt)-gt.start-Mt)/(O-gt.start)-Tt)}k.length&&!Yt&&k.forEach(function(j){return j(Bt-Mt)}),Bt=Ev(Bt+Wt),ut?(ut.resetTo("y",Bt,-$,!0),W&&ut.progress(1)):(Lt.y=Bt+"px",Lt.renderTransform(1))}}}),st(vt),ve.core.getCache(vt.trigger).stRevert=bt,vt.startY=lt,vt.pins=qt,vt.markers=k,vt.ratio=ht,vt.autoSpeed=Yt,x.style.willChange="transform"),vt};It(),ie.addEventListener("killAll",It),ve.delayedCall(.5,function(){return W=0}),this.scrollTop=X,this.scrollTo=function(A,x,F){var Y=ve.utils.clamp(0,_r(),isNaN(A)?e.offset(A,F,!!x&&!S):+A);x?S?ve.to(e,{duration:N,scrollTop:Y,overwrite:"auto",ease:xl}):I(Y):X(Y)},this.offset=function(A,x,F){A=rs(A)[0];var Y=A.style.cssText,tt=ie.create({trigger:A,start:x||"top top"}),it;return p&&(W?ie.refresh():q([tt],!0)),it=tt.start/(F?C:1),tt.kill(!1),A.style.cssText=Y,ve.core.getCache(A).uncache=1,it};function G(){return u=f.clientHeight,f.style.overflow="visible",ai.style.height=nn.innerHeight+(u-nn.innerHeight)/C+"px",u-nn.innerHeight}this.content=function(A){if(arguments.length){var x=rs(A||"#smooth-content")[0]||console.warn("ScrollSmoother needs a valid content element.")||ai.children[0];return x!==f&&(f=x,y=f.getAttribute("style")||"",ot&&ot.observe(f),ve.set(f,{overflow:"visible",width:"100%",boxSizing:"border-box",y:"+=0"}),N||ve.set(f,{clearProps:"transform"})),this}return f},this.wrapper=function(A){return arguments.length?(d=rs(A||"#smooth-wrapper")[0]||Av(f),b=d.getAttribute("style")||"",G(),ve.set(d,N?{overflow:"hidden",position:"fixed",height:"100%",width:"100%",top:0,left:0,right:0,bottom:0}:{overflow:"visible",position:"relative",width:"100%",height:"auto",top:"auto",bottom:"auto",left:"auto",right:"auto"}),this):d},this.effects=function(A,x){var F;if(p||(p=[]),!A)return p.slice(0);A=rs(A),A.forEach(function(ht){for(var vt=p.length;vt--;)p[vt].trigger===ht&&p[vt].kill()}),x=x||{};var Y=x,tt=Y.speed,it=Y.lag,yt=Y.effectsPadding,pt=[],lt,Lt;for(lt=0;lt<A.length;lt++)Lt=Ht(A[lt],tt,it,lt,yt),Lt&&pt.push(Lt);return(F=p).push.apply(F,pt),x.refresh!==!1&&ie.refresh(),pt},this.sections=function(A,x){var F;if(m||(m=[]),!A)return m.slice(0);var Y=rs(A).map(function(tt){return ie.create({trigger:tt,start:"top 120%",end:"bottom -20%",onToggle:function(yt){tt.style.opacity=yt.isActive?"1":"0",tt.style.pointerEvents=yt.isActive?"all":"none"}})});return x&&x.add?(F=m).push.apply(F,Y):m=Y.slice(0),Y},this.content(t.content),this.wrapper(t.wrapper),this.render=function(A){return Ut(A||A===0?A:V)},this.getVelocity=function(){return Z.getVelocity(-V)},ie.scrollerProxy(d,{scrollTop:X,scrollHeight:function(){return G()&&ai.scrollHeight},fixedMarkers:t.fixedMarkers!==!1&&!!N,content:f,getBoundingClientRect:function(){return{top:0,left:0,width:nn.innerWidth,height:nn.innerHeight}}}),ie.defaults({scroller:d});var $t=ie.getAll().filter(function(A){return A.scroller===nn||A.scroller===d});$t.forEach(function(A){return A.revert(!0,!0)}),_=ie.create({animation:ve.fromTo(U,{y:function(){return P=0,0}},{y:function(){return P=1,-G()},immediateRender:!1,ease:"none",data:"ScrollSmoother",duration:100,onUpdate:function(){if(P){var x=at;x&&(_t(_),U.y=V),Ut(U.y,x),z(),s&&!S&&s(M)}}}),onRefreshInit:function(x){if(!r.isRefreshing){if(r.isRefreshing=!0,p){var F=ie.getAll().filter(function(tt){return!!tt.pin});p.forEach(function(tt){tt.vars.pinnedContainer||F.forEach(function(it){if(it.pin.contains(tt.trigger)){var yt=tt.vars;yt.pinnedContainer=it.pin,tt.vars=null,tt.init(yt,tt.animation)}})})}var Y=x.getTween();w=Y&&Y._end>Y._dp._time,T=V,U.y=0,N&&(ie.isTouch===1&&(d.style.position="absolute"),d.scrollTop=0,ie.isTouch===1&&(d.style.position="fixed"))}},onRefresh:function(x){x.animation.invalidate(),x.setPositions(x.start,G()/C),w||_t(x),U.y=-I()*C,Ut(U.y),W||(w&&(at=!1),x.animation.progress(ve.utils.clamp(0,1,T/C/-x.end))),w&&(x.progress-=.001,x.update()),r.isRefreshing=!1},id:"ScrollSmoother",scroller:nn,invalidateOnRefresh:!0,start:0,refreshPriority:-9999,end:function(){return G()/C},onScrubComplete:function(){Z.reset(),o&&o(e)},scrub:N||!0}),this.smooth=function(A){return arguments.length&&(N=A||0,C=N&&+t.speed||1,_.scrubDuration(A)),_.getTween()?_.getTween().duration():0},_.getTween()&&(_.getTween().vars.ease=t.ease||xl),this.scrollTrigger=_,t.effects&&this.effects(t.effects===!0?"[data-"+v+"speed], [data-"+v+"lag]":t.effects,{effectsPadding:t.effectsPadding,refresh:!1}),t.sections&&this.sections(t.sections===!0?"[data-section]":t.sections),$t.forEach(function(A){A.vars.scroller=d,A.revert(!1,!0),A.init(A.vars,A.animation)}),this.paused=function(A,x){return arguments.length?(!!S!==A&&(A?(_.getTween()&&_.getTween().pause(),I(-V/C),Z.reset(),D=ie.normalizeScroll(),D&&D.disable(),S=ie.observe({preventDefault:!0,type:"wheel,touch,scroll",debounce:!1,allowClicks:!0,onChangeY:function(){return X(-V)}}),S.nested=Up(Zs,"wheel,touch,scroll",!0,x!==!1)):(S.nested.kill(),S.kill(),S=0,D&&D.enable(),_.progress=(-V/C-_.start)/(_.end-_.start),_t(_))),this):!!S},this.kill=this.revert=function(){e.paused(!1),_t(_),_.kill();for(var A=(p||[]).concat(m||[]),x=A.length;x--;)A[x].kill();ie.scrollerProxy(d),ie.removeEventListener("killAll",It),ie.removeEventListener("refresh",Jt),d.style.cssText=b,f.style.cssText=y;var F=ie.defaults({});F&&F.scroller===d&&ie.defaults({scroller:nn}),e.normalizer&&ie.normalizeScroll(!1),clearInterval(g),Ci=null,ot&&ot.disconnect(),ai.style.removeProperty("height"),nn.removeEventListener("focusin",ct)},this.refresh=function(A,x){return _.refresh(A,x)},c&&(this.normalizer=ie.normalizeScroll(c===!0?{debounce:!0,content:!N&&f}:c)),ie.config(t),"overscrollBehavior"in nn.getComputedStyle(ai)&&ve.set([ai,Zs],{overscrollBehavior:"none"}),"scrollBehavior"in nn.getComputedStyle(ai)&&ve.set([ai,Zs],{scrollBehavior:"auto"}),nn.addEventListener("focusin",ct),g=setInterval(z,250),ss.readyState==="loading"||requestAnimationFrame(function(){return ie.refresh()})}return r.register=function(e){return _l||(ve=e||zp(),kp()&&window.document&&(nn=window,ss=document,Zs=ss.documentElement,ai=ss.body),ve&&(rs=ve.utils.toArray,Fp=ve.utils.clamp,xl=ve.parseEase("expo"),Op=ve.core.context||function(){},ie=ve.core.globals().ScrollTrigger,ve.core.globals("ScrollSmoother",r),ai&&ie&&(Bp=ve.delayedCall(.2,function(){return ie.isRefreshing||Ci&&Ci.refresh()}).pause(),wv=[nn,ss,Zs,ai],Np=ie.core._getVelocityProp,Up=ie.core._inputObserver,r.refresh=ie.refresh,_l=1))),_l},bv(r,[{key:"progress",get:function(){return this.scrollTrigger?this.scrollTrigger.animation._time/100:0}}]),r}();li.version="3.12.5";li.create=function(r){return Ci&&r&&Ci.content()===rs(r.content)[0]?Ci:new li(r)};li.get=function(){return Ci};zp()&&ve.registerPlugin(li);function Vp(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 Dv(r,t,e){return t&&Vp(r.prototype,t),e&&Vp(r,e),r}var rn,Sl,Cv,Bn,xr,vr,$s,Gp,os,aa,Wp,Hi,ci,Xp,Yp=function(){return rn||typeof window<"u"&&(rn=window.gsap)&&rn.registerPlugin&&rn},qp=1,Js=[],ae=[],ui=[],la=Date.now,nh=function(t,e){return e},Rv=function(){var t=aa.core,e=t.bridge||{},n=t._scrollers,i=t._proxies;n.push.apply(n,ae),i.push.apply(i,ui),ae=n,ui=i,nh=function(o,a){return e[o](a)}},Wi=function(t,e){return~ui.indexOf(t)&&ui[ui.indexOf(t)+1][e]},ca=function(t){return!!~Wp.indexOf(t)},yn=function(t,e,n,i,s){return t.addEventListener(e,n,{passive:i!==!1,capture:!!s})},vn=function(t,e,n,i){return t.removeEventListener(e,n,!!i)},vl="scrollLeft",yl="scrollTop",ih=function(){return Hi&&Hi.isPressed||ae.cache++},Ml=function(t,e){var n=function i(s){if(s||s===0){qp&&(Bn.history.scrollRestoration="manual");var o=Hi&&Hi.isPressed;s=i.v=Math.round(s)||(Hi&&Hi.iOS?1:0),t(s),i.cacheID=ae.cache,o&&nh("ss",s)}else(e||ae.cache!==i.cacheID||nh("ref"))&&(i.cacheID=ae.cache,i.v=t());return i.v+i.offset};return n.offset=0,t&&n},un={s:vl,p:"left",p2:"Left",os:"right",os2:"Right",d:"width",d2:"Width",a:"x",sc:Ml(function(r){return arguments.length?Bn.scrollTo(r,ke.sc()):Bn.pageXOffset||xr[vl]||vr[vl]||$s[vl]||0})},ke={s:yl,p:"top",p2:"Top",os:"bottom",os2:"Bottom",d:"height",d2:"Height",a:"y",op:un,sc:Ml(function(r){return arguments.length?Bn.scrollTo(un.sc(),r):Bn.pageYOffset||xr[yl]||vr[yl]||$s[yl]||0})},Sn=function(t,e){return(e&&e._ctx&&e._ctx.selector||rn.utils.toArray)(t)[0]||(typeof t=="string"&&rn.config().nullTargetWarn!==!1?console.warn("Element not found:",t):null)},Gi=function(t,e){var n=e.s,i=e.sc;ca(t)&&(t=xr.scrollingElement||vr);var s=ae.indexOf(t),o=i===ke.sc?1:2;!~s&&(s=ae.push(t)-1),ae[s+o]||yn(t,"scroll",ih);var a=ae[s+o],l=a||(ae[s+o]=Ml(Wi(t,n),!0)||(ca(t)?i:Ml(function(c){return arguments.length?t[n]=c:t[n]})));return l.target=t,a||(l.smooth=rn.getProperty(t,"scrollBehavior")==="smooth"),l},bl=function(t,e,n){var i=t,s=t,o=la(),a=o,l=e||50,c=Math.max(500,l*3),h=function(_,p){var m=la();p||m-o>l?(s=i,i=_,a=o,o=m):n?i+=_:i=s+(_-s)/(m-a)*(o-a)},f=function(){s=i=n?0:i,a=o=0},d=function(_){var p=a,m=s,g=la();return(_||_===0)&&_!==i&&h(_),o===a||g-a>c?0:(i+(n?m:-m))/((n?g:o)-p)*1e3};return{update:h,reset:f,getVelocity:d}},oa=function(t,e){return e&&!t._gsapAllow&&t.preventDefault(),t.changedTouches?t.changedTouches[0]:t},Hp=function(t){var e=Math.max.apply(Math,t),n=Math.min.apply(Math,t);return Math.abs(e)>=Math.abs(n)?e:n},Zp=function(){aa=rn.core.globals().ScrollTrigger,aa&&aa.core&&Rv()},Jp=function(t){return rn=t||Yp(),!Sl&&rn&&typeof document<"u"&&document.body&&(Bn=window,xr=document,vr=xr.documentElement,$s=xr.body,Wp=[Bn,xr,vr,$s],Cv=rn.utils.clamp,Xp=rn.core.context||function(){},os="onpointerenter"in $s?"pointer":"mouse",Gp=Fe.isTouch=Bn.matchMedia&&Bn.matchMedia("(hover: none), (pointer: coarse)").matches?1:"ontouchstart"in Bn||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0?2:0,ci=Fe.eventTypes=("ontouchstart"in vr?"touchstart,touchmove,touchcancel,touchend":"onpointerdown"in vr?"pointerdown,pointermove,pointercancel,pointerup":"mousedown,mousemove,mouseup,mouseup").split(","),setTimeout(function(){return qp=0},500),Zp(),Sl=1),Sl};un.op=ke;ae.cache=0;var Fe=function(){function r(e){this.init(e)}var t=r.prototype;return t.init=function(n){Sl||Jp(rn)||console.warn("Please gsap.registerPlugin(Observer)"),aa||Zp();var i=n.tolerance,s=n.dragMinimum,o=n.type,a=n.target,l=n.lineHeight,c=n.debounce,h=n.preventDefault,f=n.onStop,d=n.onStopDelay,u=n.ignore,_=n.wheelSpeed,p=n.event,m=n.onDragStart,g=n.onDragEnd,b=n.onDrag,y=n.onPress,S=n.onRelease,D=n.onRight,T=n.onLeft,w=n.onUp,P=n.onDown,M=n.onChangeX,v=n.onChangeY,I=n.onChange,N=n.onToggleX,C=n.onToggleY,V=n.onHover,$=n.onHoverEnd,W=n.onMove,Z=n.ignoreCheck,z=n.isNormalizer,U=n.onGestureStart,R=n.onGestureEnd,at=n.onWheel,_t=n.onEnable,Ut=n.onDisable,X=n.onClick,ot=n.scrollSpeed,xt=n.capture,ct=n.allowClicks,Rt=n.lockAxis,kt=n.onLockAxis;this.target=a=Sn(a)||vr,this.vars=n,u&&(u=rn.utils.toArray(u)),i=i||1e-9,s=s||0,_=_||1,ot=ot||1,o=o||"wheel,touch,pointer",c=c!==!1,l||(l=parseFloat(Bn.getComputedStyle($s).lineHeight)||22);var q,Jt,It,Ft,bt,Et,Ht,G=this,$t=0,A=0,x=n.passive||!h,F=Gi(a,un),Y=Gi(a,ke),tt=F(),it=Y(),yt=~o.indexOf("touch")&&!~o.indexOf("pointer")&&ci[0]==="pointerdown",pt=ca(a),lt=a.ownerDocument||xr,Lt=[0,0,0],ht=[0,0,0],vt=0,Yt=function(){return vt=la()},ut=function(j,dt){return(G.event=j)&&u&&~u.indexOf(j.target)||dt&&yt&&j.pointerType!=="touch"||Z&&Z(j,dt)},Tt=function(){G._vx.reset(),G._vy.reset(),Jt.pause(),f&&f(G)},Wt=function(){var j=G.deltaX=Hp(Lt),dt=G.deltaY=Hp(ht),et=Math.abs(j)>=i,wt=Math.abs(dt)>=i;I&&(et||wt)&&I(G,j,dt,Lt,ht),et&&(D&&G.deltaX>0&&D(G),T&&G.deltaX<0&&T(G),M&&M(G),N&&G.deltaX<0!=$t<0&&N(G),$t=G.deltaX,Lt[0]=Lt[1]=Lt[2]=0),wt&&(P&&G.deltaY>0&&P(G),w&&G.deltaY<0&&w(G),v&&v(G),C&&G.deltaY<0!=A<0&&C(G),A=G.deltaY,ht[0]=ht[1]=ht[2]=0),(Ft||It)&&(W&&W(G),It&&(b(G),It=!1),Ft=!1),Et&&!(Et=!1)&&kt&&kt(G),bt&&(at(G),bt=!1),q=0},qt=function(j,dt,et){Lt[et]+=j,ht[et]+=dt,G._vx.update(j),G._vy.update(dt),c?q||(q=requestAnimationFrame(Wt)):Wt()},ce=function(j,dt){Rt&&!Ht&&(G.axis=Ht=Math.abs(j)>Math.abs(dt)?"x":"y",Et=!0),Ht!=="y"&&(Lt[2]+=j,G._vx.update(j,!0)),Ht!=="x"&&(ht[2]+=dt,G._vy.update(dt,!0)),c?q||(q=requestAnimationFrame(Wt)):Wt()},Zt=function(j){if(!ut(j,1)){j=oa(j,h);var dt=j.clientX,et=j.clientY,wt=dt-G.x,ft=et-G.y,Dt=G.isDragging;G.x=dt,G.y=et,(Dt||Math.abs(G.startX-dt)>=s||Math.abs(G.startY-et)>=s)&&(b&&(It=!0),Dt||(G.isDragging=!0),ce(wt,ft),Dt||m&&m(G))}},k=G.onPress=function(O){ut(O,1)||O&&O.button||(G.axis=Ht=null,Jt.pause(),G.isPressed=!0,O=oa(O),$t=A=0,G.startX=G.x=O.clientX,G.startY=G.y=O.clientY,G._vx.reset(),G._vy.reset(),yn(z?a:lt,ci[1],Zt,x,!0),G.deltaX=G.deltaY=0,y&&y(G))},Q=G.onRelease=function(O){if(!ut(O,1)){vn(z?a:lt,ci[1],Zt,!0);var j=!isNaN(G.y-G.startY),dt=G.isDragging,et=dt&&(Math.abs(G.x-G.startX)>3||Math.abs(G.y-G.startY)>3),wt=oa(O);!et&&j&&(G._vx.reset(),G._vy.reset(),h&&ct&&rn.delayedCall(.08,function(){if(la()-vt>300&&!O.defaultPrevented){if(O.target.click)O.target.click();else if(lt.createEvent){var ft=lt.createEvent("MouseEvents");ft.initMouseEvent("click",!0,!0,Bn,1,wt.screenX,wt.screenY,wt.clientX,wt.clientY,!1,!1,!1,!1,0,null),O.target.dispatchEvent(ft)}}})),G.isDragging=G.isGesturing=G.isPressed=!1,f&&dt&&!z&&Jt.restart(!0),g&&dt&&g(G),S&&S(G,et)}},st=function(j){return j.touches&&j.touches.length>1&&(G.isGesturing=!0)&&U(j,G.isDragging)},mt=function(){return(G.isGesturing=!1)||R(G)},gt=function(j){if(!ut(j)){var dt=F(),et=Y();qt((dt-tt)*ot,(et-it)*ot,1),tt=dt,it=et,f&&Jt.restart(!0)}},Bt=function(j){if(!ut(j)){j=oa(j,h),at&&(bt=!0);var dt=(j.deltaMode===1?l:j.deltaMode===2?Bn.innerHeight:1)*_;qt(j.deltaX*dt,j.deltaY*dt,0),f&&!z&&Jt.restart(!0)}},ee=function(j){if(!ut(j)){var dt=j.clientX,et=j.clientY,wt=dt-G.x,ft=et-G.y;G.x=dt,G.y=et,Ft=!0,f&&Jt.restart(!0),(wt||ft)&&ce(wt,ft)}},Mt=function(j){G.event=j,V(G)},L=function(j){G.event=j,$(G)},rt=function(j){return ut(j)||oa(j,h)&&X(G)};Jt=G._dc=rn.delayedCall(d||.25,Tt).pause(),G.deltaX=G.deltaY=0,G._vx=bl(0,50,!0),G._vy=bl(0,50,!0),G.scrollX=F,G.scrollY=Y,G.isDragging=G.isGesturing=G.isPressed=!1,Xp(this),G.enable=function(O){return G.isEnabled||(yn(pt?lt:a,"scroll",ih),o.indexOf("scroll")>=0&&yn(pt?lt:a,"scroll",gt,x,xt),o.indexOf("wheel")>=0&&yn(a,"wheel",Bt,x,xt),(o.indexOf("touch")>=0&&Gp||o.indexOf("pointer")>=0)&&(yn(a,ci[0],k,x,xt),yn(lt,ci[2],Q),yn(lt,ci[3],Q),ct&&yn(a,"click",Yt,!0,!0),X&&yn(a,"click",rt),U&&yn(lt,"gesturestart",st),R&&yn(lt,"gestureend",mt),V&&yn(a,os+"enter",Mt),$&&yn(a,os+"leave",L),W&&yn(a,os+"move",ee)),G.isEnabled=!0,O&&O.type&&k(O),_t&&_t(G)),G},G.disable=function(){G.isEnabled&&(Js.filter(function(O){return O!==G&&ca(O.target)}).length||vn(pt?lt:a,"scroll",ih),G.isPressed&&(G._vx.reset(),G._vy.reset(),vn(z?a:lt,ci[1],Zt,!0)),vn(pt?lt:a,"scroll",gt,xt),vn(a,"wheel",Bt,xt),vn(a,ci[0],k,xt),vn(lt,ci[2],Q),vn(lt,ci[3],Q),vn(a,"click",Yt,!0),vn(a,"click",rt),vn(lt,"gesturestart",st),vn(lt,"gestureend",mt),vn(a,os+"enter",Mt),vn(a,os+"leave",L),vn(a,os+"move",ee),G.isEnabled=G.isPressed=G.isDragging=!1,Ut&&Ut(G))},G.kill=G.revert=function(){G.disable();var O=Js.indexOf(G);O>=0&&Js.splice(O,1),Hi===G&&(Hi=0)},Js.push(G),z&&ca(a)&&(Hi=G),G.enable(p)},Dv(r,[{key:"velocityX",get:function(){return this._vx.getVelocity()}},{key:"velocityY",get:function(){return this._vy.getVelocity()}}]),r}();Fe.version="3.12.5";Fe.create=function(r){return new Fe(r)};Fe.register=Jp;Fe.getAll=function(){return Js.slice()};Fe.getById=function(r){return Js.filter(function(t){return t.vars.id===r})[0]};Yp()&&rn.registerPlugin(Fe);var Ot,Qs,de,Pe,hi,Ee,dm,kl,Ma,ga,ha,wl,hn,Gl,hh,bn,$p,Kp,to,pm,rh,mm,Mn,fh,gm,_m,yr,dh,xh,eo,vh,zl,ph,sh,El=1,fn=Date.now,oh=fn(),Kn=0,fa=0,jp=function(t,e,n){var i=zn(t)&&(t.substr(0,6)==="clamp("||t.indexOf("max")>-1);return n["_"+e+"Clamp"]=i,i?t.substr(6,t.length-7):t},Qp=function(t,e){return e&&(!zn(t)||t.substr(0,6)!=="clamp(")?"clamp("+t+")":t},Pv=function r(){return fa&&requestAnimationFrame(r)},tm=function(){return Gl=1},em=function(){return Gl=0},Ri=function(t){return t},da=function(t){return Math.round(t*1e5)/1e5||0},xm=function(){return typeof window<"u"},vm=function(){return Ot||xm()&&(Ot=window.gsap)&&Ot.registerPlugin&&Ot},fs=function(t){return!!~dm.indexOf(t)},ym=function(t){return(t==="Height"?vh:de["inner"+t])||hi["client"+t]||Ee["client"+t]},Sm=function(t){return Wi(t,"getBoundingClientRect")||(fs(t)?function(){return Bl.width=de.innerWidth,Bl.height=vh,Bl}:function(){return Xi(t)})},Iv=function(t,e,n){var i=n.d,s=n.d2,o=n.a;return(o=Wi(t,"getBoundingClientRect"))?function(){return o()[i]}:function(){return(e?ym(s):t["client"+s])||0}},Lv=function(t,e){return!e||~ui.indexOf(t)?Sm(t):function(){return Bl}},Pi=function(t,e){var n=e.s,i=e.d2,s=e.d,o=e.a;return Math.max(0,(n="scroll"+i)&&(o=Wi(t,n))?o()-Sm(t)()[s]:fs(t)?(hi[n]||Ee[n])-ym(i):t[n]-t["offset"+i])},Tl=function(t,e){for(var n=0;n<to.length;n+=3)(!e||~e.indexOf(to[n+1]))&&t(to[n],to[n+1],to[n+2])},zn=function(t){return typeof t=="string"},En=function(t){return typeof t=="function"},pa=function(t){return typeof t=="number"},as=function(t){return typeof t=="object"},ua=function(t,e,n){return t&&t.progress(e?0:1)&&n&&t.pause()},ah=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)}},Ks=Math.abs,Mm="left",bm="top",yh="right",Sh="bottom",cs="width",us="height",_a="Right",xa="Left",va="Top",ya="Bottom",ze="padding",Jn="margin",io="Width",Mh="Height",We="px",$n=function(t){return de.getComputedStyle(t)},Fv=function(t){var e=$n(t).position;t.style.position=e==="absolute"||e==="fixed"?e:"relative"},nm=function(t,e){for(var n in e)n in t||(t[n]=e[n]);return t},Xi=function(t,e){var n=e&&$n(t)[hh]!=="matrix(1, 0, 0, 1, 0, 0)"&&Ot.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},Vl=function(t,e){var n=e.d2;return t["offset"+n]||t["client"+n]||0},wm=function(t){var e=[],n=t.labels,i=t.duration(),s;for(s in n)e.push(n[s]/i);return e},Nv=function(t){return function(e){return Ot.utils.snap(wm(t),e)}},bh=function(t){var e=Ot.utils.snap(t),n=Array.isArray(t)&&t.slice(0).sort(function(i,s){return i-s});return n?function(i,s,o){o===void 0&&(o=.001);var a;if(!s)return e(i);if(s>0){for(i-=o,a=0;a<n.length;a++)if(n[a]>=i)return n[a];return n[a-1]}else for(a=n.length,i+=o;a--;)if(n[a]<=i)return n[a];return n[0]}:function(i,s,o){o===void 0&&(o=.001);var a=e(i);return!s||Math.abs(a-i)<o||a-i<0==s<0?a:e(s<0?i-t:i+t)}},Uv=function(t){return function(e,n){return bh(wm(t))(e,n.direction)}},Al=function(t,e,n,i){return n.split(",").forEach(function(s){return t(e,s,i)})},Ke=function(t,e,n,i,s){return t.addEventListener(e,n,{passive:!i,capture:!!s})},$e=function(t,e,n,i){return t.removeEventListener(e,n,!!i)},Dl=function(t,e,n){n=n&&n.wheelHandler,n&&(t(e,"wheel",n),t(e,"touchmove",n))},im={startColor:"green",endColor:"red",indent:0,fontSize:"16px",fontWeight:"normal"},Cl={toggleActions:"play",anticipatePin:0},Hl={top:0,left:0,center:.5,bottom:1,right:1},Fl=function(t,e){if(zn(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 Hl?Hl[t]*e:~t.indexOf("%")?parseFloat(t)*e/100:parseFloat(t)||0)}return t},Rl=function(t,e,n,i,s,o,a,l){var c=s.startColor,h=s.endColor,f=s.fontSize,d=s.indent,u=s.fontWeight,_=Pe.createElement("div"),p=fs(n)||Wi(n,"pinType")==="fixed",m=t.indexOf("scroller")!==-1,g=p?Ee:n,b=t.indexOf("start")!==-1,y=b?c:h,S="border-color:"+y+";font-size:"+f+";color:"+y+";font-weight:"+u+";pointer-events:none;white-space:nowrap;font-family:sans-serif,Arial;z-index:1000;padding:4px 8px;border-width:0;border-style:solid;";return S+="position:"+((m||l)&&p?"fixed;":"absolute;"),(m||l||!p)&&(S+=(i===ke?yh:Sh)+":"+(o+parseFloat(d))+"px;"),a&&(S+="box-sizing:border-box;text-align:left;width:"+a.offsetWidth+"px;"),_._isStart=b,_.setAttribute("class","gsap-marker-"+t+(e?" marker-"+e:"")),_.style.cssText=S,_.innerText=e||e===0?t+"-"+e:t,g.children[0]?g.insertBefore(_,g.children[0]):g.appendChild(_),_._offset=_["offset"+i.op.d2],Nl(_,0,i,b),_},Nl=function(t,e,n,i){var s={display:"block"},o=n[i?"os2":"p2"],a=n[i?"p2":"os2"];t._isFlipped=i,s[n.a+"Percent"]=i?-100:0,s[n.a]=i?"1px":0,s["border"+o+io]=1,s["border"+a+io]=0,s[n.p]=e+"px",Ot.set(t,s)},le=[],mh={},ba,rm=function(){return fn()-Kn>34&&(ba||(ba=requestAnimationFrame(Yi)))},js=function(){(!Mn||!Mn.isPressed||Mn.startX>Ee.clientWidth)&&(ae.cache++,Mn?ba||(ba=requestAnimationFrame(Yi)):Yi(),Kn||ps("scrollStart"),Kn=fn())},lh=function(){_m=de.innerWidth,gm=de.innerHeight},ma=function(){ae.cache++,!hn&&!mm&&!Pe.fullscreenElement&&!Pe.webkitFullscreenElement&&(!fh||_m!==de.innerWidth||Math.abs(de.innerHeight-gm)>de.innerHeight*.25)&&kl.restart(!0)},ds={},Ov=[],Em=function r(){return $e(te,"scrollEnd",r)||ls(!0)},ps=function(t){return ds[t]&&ds[t].map(function(e){return e()})||Ov},kn=[],Tm=function(t){for(var e=0;e<kn.length;e+=5)(!t||kn[e+4]&&kn[e+4].query===t)&&(kn[e].style.cssText=kn[e+1],kn[e].getBBox&&kn[e].setAttribute("transform",kn[e+2]||""),kn[e+3].uncache=1)},wh=function(t,e){var n;for(bn=0;bn<le.length;bn++)n=le[bn],n&&(!e||n._ctx===e)&&(t?n.kill(1):n.revert(!0,!0));zl=!0,e&&Tm(e),e||ps("revert")},Am=function(t,e){ae.cache++,(e||!wn)&&ae.forEach(function(n){return En(n)&&n.cacheID++&&(n.rec=0)}),zn(t)&&(de.history.scrollRestoration=xh=t)},wn,hs=0,sm,Bv=function(){if(sm!==hs){var t=sm=hs;requestAnimationFrame(function(){return t===hs&&ls(!0)})}},Dm=function(){Ee.appendChild(eo),vh=!Mn&&eo.offsetHeight||de.innerHeight,Ee.removeChild(eo)},om=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"})},ls=function(t,e){if(Kn&&!t&&!zl){Ke(te,"scrollEnd",Em);return}Dm(),wn=te.isRefreshing=!0,ae.forEach(function(i){return En(i)&&++i.cacheID&&(i.rec=i())});var n=ps("refreshInit");pm&&te.sort(),e||wh(),ae.forEach(function(i){En(i)&&(i.smooth&&(i.target.style.scrollBehavior="auto"),i(0))}),le.slice(0).forEach(function(i){return i.refresh()}),zl=!1,le.forEach(function(i){if(i._subPinOffset&&i.pin){var s=i.vars.horizontal?"offsetWidth":"offsetHeight",o=i.pin[s];i.revert(!0,1),i.adjustPinSpacing(i.pin[s]-o),i.refresh()}}),ph=1,om(!0),le.forEach(function(i){var s=Pi(i.scroller,i._dir),o=i.vars.end==="max"||i._endClamp&&i.end>s,a=i._startClamp&&i.start>=s;(o||a)&&i.setPositions(a?s-1:i.start,o?Math.max(a?s:i.start+1,s):i.end,!0)}),om(!1),ph=0,n.forEach(function(i){return i&&i.render&&i.render(-1)}),ae.forEach(function(i){En(i)&&(i.smooth&&requestAnimationFrame(function(){return i.target.style.scrollBehavior="smooth"}),i.rec&&i(i.rec))}),Am(xh,1),kl.pause(),hs++,wn=2,Yi(2),le.forEach(function(i){return En(i.vars.onRefresh)&&i.vars.onRefresh(i)}),wn=te.isRefreshing=!1,ps("refresh")},gh=0,Ul=1,Sa,Yi=function(t){if(t===2||!wn&&!zl){te.isUpdating=!0,Sa&&Sa.update(0);var e=le.length,n=fn(),i=n-oh>=50,s=e&&le[0].scroll();if(Ul=gh>s?-1:1,wn||(gh=s),i&&(Kn&&!Gl&&n-Kn>200&&(Kn=0,ps("scrollEnd")),ha=oh,oh=n),Ul<0){for(bn=e;bn-- >0;)le[bn]&&le[bn].update(0,i);Ul=1}else for(bn=0;bn<e;bn++)le[bn]&&le[bn].update(0,i);te.isUpdating=!1}ba=0},_h=[Mm,bm,Sh,yh,Jn+ya,Jn+_a,Jn+va,Jn+xa,"display","flexShrink","float","zIndex","gridColumnStart","gridColumnEnd","gridRowStart","gridRowEnd","gridArea","justifySelf","alignSelf","placeSelf","order"],Ol=_h.concat([cs,us,"boxSizing","max"+io,"max"+Mh,"position",Jn,ze,ze+va,ze+_a,ze+ya,ze+xa]),kv=function(t,e,n){no(n);var i=t._gsap;if(i.spacerIsNative)no(i.spacerState);else if(t._gsap.swappedIn){var s=e.parentNode;s&&(s.insertBefore(t,e),s.removeChild(e))}t._gsap.swappedIn=!1},ch=function(t,e,n,i){if(!t._gsap.swappedIn){for(var s=_h.length,o=e.style,a=t.style,l;s--;)l=_h[s],o[l]=n[l];o.position=n.position==="absolute"?"absolute":"relative",n.display==="inline"&&(o.display="inline-block"),a[Sh]=a[yh]="auto",o.flexBasis=n.flexBasis||"auto",o.overflow="visible",o.boxSizing="border-box",o[cs]=Vl(t,un)+We,o[us]=Vl(t,ke)+We,o[ze]=a[Jn]=a[bm]=a[Mm]="0",no(i),a[cs]=a["max"+io]=n[cs],a[us]=a["max"+Mh]=n[us],a[ze]=n[ze],t.parentNode!==e&&(t.parentNode.insertBefore(e,t),e.appendChild(t)),t._gsap.swappedIn=!0}},zv=/([A-Z])/g,no=function(t){if(t){var e=t.t.style,n=t.length,i=0,s,o;for((t.t._gsap||Ot.core.getCache(t.t)).uncache=1;i<n;i+=2)o=t[i+1],s=t[i],o?e[s]=o:e[s]&&e.removeProperty(s.replace(zv,"-$1").toLowerCase())}},Pl=function(t){for(var e=Ol.length,n=t.style,i=[],s=0;s<e;s++)i.push(Ol[s],n[Ol[s]]);return i.t=t,i},Vv=function(t,e,n){for(var i=[],s=t.length,o=n?8:0,a;o<s;o+=2)a=t[o],i.push(a,a in e?e[a]:t[o+1]);return i.t=t.t,i},Bl={left:0,top:0},am=function(t,e,n,i,s,o,a,l,c,h,f,d,u,_){En(t)&&(t=t(l)),zn(t)&&t.substr(0,3)==="max"&&(t=d+(t.charAt(4)==="="?Fl("0"+t.substr(3),n):0));var p=u?u.time():0,m,g,b;if(u&&u.seek(0),isNaN(t)||(t=+t),pa(t))u&&(t=Ot.utils.mapRange(u.scrollTrigger.start,u.scrollTrigger.end,0,d,t)),a&&Nl(a,n,i,!0);else{En(e)&&(e=e(l));var y=(t||"0").split(" "),S,D,T,w;b=Sn(e,l)||Ee,S=Xi(b)||{},(!S||!S.left&&!S.top)&&$n(b).display==="none"&&(w=b.style.display,b.style.display="block",S=Xi(b),w?b.style.display=w:b.style.removeProperty("display")),D=Fl(y[0],S[i.d]),T=Fl(y[1]||"0",n),t=S[i.p]-c[i.p]-h+D+s-T,a&&Nl(a,T,i,n-T<20||a._isStart&&T>20),n-=n-T}if(_&&(l[_]=t||-.001,t<0&&(t=0)),o){var P=t+n,M=o._isStart;m="scroll"+i.d2,Nl(o,P,i,M&&P>20||!M&&(f?Math.max(Ee[m],hi[m]):o.parentNode[m])<=P+1),f&&(c=Xi(a),f&&(o.style[i.op.p]=c[i.op.p]-i.op.m-o._offset+We))}return u&&b&&(m=Xi(b),u.seek(d),g=Xi(b),u._caScrollDist=m[i.p]-g[i.p],t=t/u._caScrollDist*d),u&&u.seek(p),u?t:Math.round(t)},Hv=/(webkit|moz|length|cssText|inset)/i,lm=function(t,e,n,i){if(t.parentNode!==e){var s=t.style,o,a;if(e===Ee){t._stOrig=s.cssText,a=$n(t);for(o in a)!+o&&!Hv.test(o)&&a[o]&&typeof s[o]=="string"&&o!=="0"&&(s[o]=a[o]);s.top=n,s.left=i}else s.cssText=t._stOrig;Ot.core.getCache(t).uncache=1,e.appendChild(t)}},Cm=function(t,e,n){var i=e,s=i;return function(o){var a=Math.round(t());return a!==i&&a!==s&&Math.abs(a-i)>3&&Math.abs(a-s)>3&&(o=a,n&&n()),s=i,i=o,o}},Il=function(t,e,n){var i={};i[e.p]="+="+n,Ot.set(t,i)},cm=function(t,e){var n=Gi(t,e),i="_scroll"+e.p2,s=function o(a,l,c,h,f){var d=o.tween,u=l.onComplete,_={};c=c||n();var p=Cm(n,c,function(){d.kill(),o.tween=0});return f=h&&f||0,h=h||a-c,d&&d.kill(),l[i]=a,l.inherit=!1,l.modifiers=_,_[i]=function(){return p(c+h*d.ratio+f*d.ratio*d.ratio)},l.onUpdate=function(){ae.cache++,o.tween&&Yi()},l.onComplete=function(){o.tween=0,u&&u.call(d)},d=o.tween=Ot.to(t,l),d};return t[i]=n,n.wheelHandler=function(){return s.tween&&s.tween.kill()&&(s.tween=0)},Ke(t,"wheel",n.wheelHandler),te.isTouch&&Ke(t,"touchmove",n.wheelHandler),s},te=function(){function r(e,n){Qs||r.register(Ot)||console.warn("Please gsap.registerPlugin(ScrollTrigger)"),dh(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),!fa){this.update=this.refresh=this.kill=Ri;return}n=nm(zn(n)||pa(n)||n.nodeType?{trigger:n}:n,Cl);var s=n,o=s.onUpdate,a=s.toggleClass,l=s.id,c=s.onToggle,h=s.onRefresh,f=s.scrub,d=s.trigger,u=s.pin,_=s.pinSpacing,p=s.invalidateOnRefresh,m=s.anticipatePin,g=s.onScrubComplete,b=s.onSnapComplete,y=s.once,S=s.snap,D=s.pinReparent,T=s.pinSpacer,w=s.containerAnimation,P=s.fastScrollEnd,M=s.preventOverlaps,v=n.horizontal||n.containerAnimation&&n.horizontal!==!1?un:ke,I=!f&&f!==0,N=Sn(n.scroller||de),C=Ot.core.getCache(N),V=fs(N),$=("pinType"in n?n.pinType:Wi(N,"pinType")||V&&"fixed")==="fixed",W=[n.onEnter,n.onLeave,n.onEnterBack,n.onLeaveBack],Z=I&&n.toggleActions.split(" "),z="markers"in n?n.markers:Cl.markers,U=V?0:parseFloat($n(N)["border"+v.p2+io])||0,R=this,at=n.onRefreshInit&&function(){return n.onRefreshInit(R)},_t=Iv(N,V,v),Ut=Lv(N,V),X=0,ot=0,xt=0,ct=Gi(N,v),Rt,kt,q,Jt,It,Ft,bt,Et,Ht,G,$t,A,x,F,Y,tt,it,yt,pt,lt,Lt,ht,vt,Yt,ut,Tt,Wt,qt,ce,Zt,k,Q,st,mt,gt,Bt,ee,Mt,L;if(R._startClamp=R._endClamp=!1,R._dir=v,m*=45,R.scroller=N,R.scroll=w?w.time.bind(w):ct,Jt=ct(),R.vars=n,i=i||n.animation,"refreshPriority"in n&&(pm=1,n.refreshPriority===-9999&&(Sa=R)),C.tweenScroll=C.tweenScroll||{top:cm(N,ke),left:cm(N,un)},R.tweenTo=Rt=C.tweenScroll[v.p],R.scrubDuration=function(et){st=pa(et)&&et,st?Q?Q.duration(et):Q=Ot.to(i,{ease:"expo",totalProgress:"+=0",inherit:!1,duration:st,paused:!0,onComplete:function(){return g&&g(R)}}):(Q&&Q.progress(1).kill(),Q=0)},i&&(i.vars.lazy=!1,i._initted&&!R.isReverted||i.vars.immediateRender!==!1&&n.immediateRender!==!1&&i.duration()&&i.render(0,!0,!0),R.animation=i.pause(),i.scrollTrigger=R,R.scrubDuration(f),Zt=0,l||(l=i.vars.id)),S&&((!as(S)||S.push)&&(S={snapTo:S}),"scrollBehavior"in Ee.style&&Ot.set(V?[Ee,hi]:N,{scrollBehavior:"auto"}),ae.forEach(function(et){return En(et)&&et.target===(V?Pe.scrollingElement||hi:N)&&(et.smooth=!1)}),q=En(S.snapTo)?S.snapTo:S.snapTo==="labels"?Nv(i):S.snapTo==="labelsDirectional"?Uv(i):S.directional!==!1?function(et,wt){return bh(S.snapTo)(et,fn()-ot<500?0:wt.direction)}:Ot.utils.snap(S.snapTo),mt=S.duration||{min:.1,max:2},mt=as(mt)?ga(mt.min,mt.max):ga(mt,mt),gt=Ot.delayedCall(S.delay||st/2||.1,function(){var et=ct(),wt=fn()-ot<500,ft=Rt.tween;if((wt||Math.abs(R.getVelocity())<10)&&!ft&&!Gl&&X!==et){var Dt=(et-Ft)/F,zt=i&&!I?i.totalProgress():Dt,Nt=wt?0:(zt-k)/(fn()-ha)*1e3||0,Qt=Ot.utils.clamp(-Dt,1-Dt,Ks(Nt/2)*Nt/.185),he=Dt+(S.inertia===!1?0:Qt),me,oe,E=S,B=E.onStart,H=E.onInterrupt,K=E.onComplete;if(me=q(he,R),pa(me)||(me=he),oe=Math.round(Ft+me*F),et<=bt&&et>=Ft&&oe!==et){if(ft&&!ft._initted&&ft.data<=Ks(oe-et))return;S.inertia===!1&&(Qt=me-Dt),Rt(oe,{duration:mt(Ks(Math.max(Ks(he-zt),Ks(me-zt))*.185/Nt/.05||0)),ease:S.ease||"power3",data:Ks(oe-et),onInterrupt:function(){return gt.restart(!0)&&H&&H(R)},onComplete:function(){R.update(),X=ct(),i&&(Q?Q.resetTo("totalProgress",me,i._tTime/i._tDur):i.progress(me)),Zt=k=i&&!I?i.totalProgress():R.progress,b&&b(R),K&&K(R)}},et,Qt*F,oe-et-Qt*F),B&&B(R,Rt.tween)}}else R.isActive&&X!==et&>.restart(!0)}).pause()),l&&(mh[l]=R),d=R.trigger=Sn(d||u!==!0&&u),L=d&&d._gsap&&d._gsap.stRevert,L&&(L=L(R)),u=u===!0?d:Sn(u),zn(a)&&(a={targets:d,className:a}),u&&(_===!1||_===Jn||(_=!_&&u.parentNode&&u.parentNode.style&&$n(u.parentNode).display==="flex"?!1:ze),R.pin=u,kt=Ot.core.getCache(u),kt.spacer?Y=kt.pinState:(T&&(T=Sn(T),T&&!T.nodeType&&(T=T.current||T.nativeElement),kt.spacerIsNative=!!T,T&&(kt.spacerState=Pl(T))),kt.spacer=yt=T||Pe.createElement("div"),yt.classList.add("pin-spacer"),l&&yt.classList.add("pin-spacer-"+l),kt.pinState=Y=Pl(u)),n.force3D!==!1&&Ot.set(u,{force3D:!0}),R.spacer=yt=kt.spacer,ce=$n(u),Yt=ce[_+v.os2],lt=Ot.getProperty(u),Lt=Ot.quickSetter(u,v.a,We),ch(u,yt,ce),it=Pl(u)),z){A=as(z)?nm(z,im):im,G=Rl("scroller-start",l,N,v,A,0),$t=Rl("scroller-end",l,N,v,A,0,G),pt=G["offset"+v.op.d2];var rt=Sn(Wi(N,"content")||N);Et=this.markerStart=Rl("start",l,rt,v,A,pt,0,w),Ht=this.markerEnd=Rl("end",l,rt,v,A,pt,0,w),w&&(Mt=Ot.quickSetter([Et,Ht],v.a,We)),!$&&!(ui.length&&Wi(N,"fixedMarkers")===!0)&&(Fv(V?Ee:N),Ot.set([G,$t],{force3D:!0}),Tt=Ot.quickSetter(G,v.a,We),qt=Ot.quickSetter($t,v.a,We))}if(w){var O=w.vars.onUpdate,j=w.vars.onUpdateParams;w.eventCallback("onUpdate",function(){R.update(0,0,1),O&&O.apply(w,j||[])})}if(R.previous=function(){return le[le.indexOf(R)-1]},R.next=function(){return le[le.indexOf(R)+1]},R.revert=function(et,wt){if(!wt)return R.kill(!0);var ft=et!==!1||!R.enabled,Dt=hn;ft!==R.isReverted&&(ft&&(Bt=Math.max(ct(),R.scroll.rec||0),xt=R.progress,ee=i&&i.progress()),Et&&[Et,Ht,G,$t].forEach(function(zt){return zt.style.display=ft?"none":"block"}),ft&&(hn=R,R.update(ft)),u&&(!D||!R.isActive)&&(ft?kv(u,yt,Y):ch(u,yt,$n(u),ut)),ft||R.update(ft),hn=Dt,R.isReverted=ft)},R.refresh=function(et,wt,ft,Dt){if(!((hn||!R.enabled)&&!wt)){if(u&&et&&Kn){Ke(r,"scrollEnd",Em);return}!wn&&at&&at(R),hn=R,Rt.tween&&!ft&&(Rt.tween.kill(),Rt.tween=0),Q&&Q.pause(),p&&i&&i.revert({kill:!1}).invalidate(),R.isReverted||R.revert(!0,!0),R._subPinOffset=!1;var zt=_t(),Nt=Ut(),Qt=w?w.duration():Pi(N,v),he=F<=.01,me=0,oe=Dt||0,E=as(ft)?ft.end:n.end,B=n.endTrigger||d,H=as(ft)?ft.start:n.start||(n.start===0||!d?0:u?"0 0":"0 100%"),K=R.pinnedContainer=n.pinnedContainer&&Sn(n.pinnedContainer,R),J=d&&Math.max(0,le.indexOf(R))||0,St=J,At,Pt,Xt,jt,Gt,Vt,xe,Be,sn,gn,ne,Kt,bi;for(z&&as(ft)&&(Kt=Ot.getProperty(G,v.p),bi=Ot.getProperty($t,v.p));St--;)Vt=le[St],Vt.end||Vt.refresh(0,1)||(hn=R),xe=Vt.pin,xe&&(xe===d||xe===u||xe===K)&&!Vt.isReverted&&(gn||(gn=[]),gn.unshift(Vt),Vt.revert(!0,!0)),Vt!==le[St]&&(J--,St--);for(En(H)&&(H=H(R)),H=jp(H,"start",R),Ft=am(H,d,zt,v,ct(),Et,G,R,Nt,U,$,Qt,w,R._startClamp&&"_startClamp")||(u?-.001:0),En(E)&&(E=E(R)),zn(E)&&!E.indexOf("+=")&&(~E.indexOf(" ")?E=(zn(H)?H.split(" ")[0]:"")+E:(me=Fl(E.substr(2),zt),E=zn(H)?H:(w?Ot.utils.mapRange(0,w.duration(),w.scrollTrigger.start,w.scrollTrigger.end,Ft):Ft)+me,B=d)),E=jp(E,"end",R),bt=Math.max(Ft,am(E||(B?"100% 0":Qt),B,zt,v,ct()+me,Ht,$t,R,Nt,U,$,Qt,w,R._endClamp&&"_endClamp"))||-.001,me=0,St=J;St--;)Vt=le[St],xe=Vt.pin,xe&&Vt.start-Vt._pinPush<=Ft&&!w&&Vt.end>0&&(At=Vt.end-(R._startClamp?Math.max(0,Vt.start):Vt.start),(xe===d&&Vt.start-Vt._pinPush<Ft||xe===K)&&isNaN(H)&&(me+=At*(1-Vt.progress)),xe===u&&(oe+=At));if(Ft+=me,bt+=me,R._startClamp&&(R._startClamp+=me),R._endClamp&&!wn&&(R._endClamp=bt||-.001,bt=Math.min(bt,Pi(N,v))),F=bt-Ft||(Ft-=.01)&&.001,he&&(xt=Ot.utils.clamp(0,1,Ot.utils.normalize(Ft,bt,Bt))),R._pinPush=oe,Et&&me&&(At={},At[v.a]="+="+me,K&&(At[v.p]="-="+ct()),Ot.set([Et,Ht],At)),u&&!(ph&&R.end>=Pi(N,v)))At=$n(u),jt=v===ke,Xt=ct(),ht=parseFloat(lt(v.a))+oe,!Qt&&bt>1&&(ne=(V?Pe.scrollingElement||hi:N).style,ne={style:ne,value:ne["overflow"+v.a.toUpperCase()]},V&&$n(Ee)["overflow"+v.a.toUpperCase()]!=="scroll"&&(ne.style["overflow"+v.a.toUpperCase()]="scroll")),ch(u,yt,At),it=Pl(u),Pt=Xi(u,!0),Be=$&&Gi(N,jt?un:ke)(),_?(ut=[_+v.os2,F+oe+We],ut.t=yt,St=_===ze?Vl(u,v)+F+oe:0,St&&(ut.push(v.d,St+We),yt.style.flexBasis!=="auto"&&(yt.style.flexBasis=St+We)),no(ut),K&&le.forEach(function(ye){ye.pin===K&&ye.vars.pinSpacing!==!1&&(ye._subPinOffset=!0)}),$&&ct(Bt)):(St=Vl(u,v),St&&yt.style.flexBasis!=="auto"&&(yt.style.flexBasis=St+We)),$&&(Gt={top:Pt.top+(jt?Xt-Ft:Be)+We,left:Pt.left+(jt?Be:Xt-Ft)+We,boxSizing:"border-box",position:"fixed"},Gt[cs]=Gt["max"+io]=Math.ceil(Pt.width)+We,Gt[us]=Gt["max"+Mh]=Math.ceil(Pt.height)+We,Gt[Jn]=Gt[Jn+va]=Gt[Jn+_a]=Gt[Jn+ya]=Gt[Jn+xa]="0",Gt[ze]=At[ze],Gt[ze+va]=At[ze+va],Gt[ze+_a]=At[ze+_a],Gt[ze+ya]=At[ze+ya],Gt[ze+xa]=At[ze+xa],tt=Vv(Y,Gt,D),wn&&ct(0)),i?(sn=i._initted,rh(1),i.render(i.duration(),!0,!0),vt=lt(v.a)-ht+F+oe,Wt=Math.abs(F-vt)>1,$&&Wt&&tt.splice(tt.length-2,2),i.render(0,!0,!0),sn||i.invalidate(!0),i.parent||i.totalTime(i.totalTime()),rh(0)):vt=F,ne&&(ne.value?ne.style["overflow"+v.a.toUpperCase()]=ne.value:ne.style.removeProperty("overflow-"+v.a));else if(d&&ct()&&!w)for(Pt=d.parentNode;Pt&&Pt!==Ee;)Pt._pinOffset&&(Ft-=Pt._pinOffset,bt-=Pt._pinOffset),Pt=Pt.parentNode;gn&&gn.forEach(function(ye){return ye.revert(!1,!0)}),R.start=Ft,R.end=bt,Jt=It=wn?Bt:ct(),!w&&!wn&&(Jt<Bt&&ct(Bt),R.scroll.rec=0),R.revert(!1,!0),ot=fn(),gt&&(X=-1,gt.restart(!0)),hn=0,i&&I&&(i._initted||ee)&&i.progress()!==ee&&i.progress(ee||0,!0).render(i.time(),!0,!0),(he||xt!==R.progress||w||p)&&(i&&!I&&i.totalProgress(w&&Ft<-.001&&!xt?Ot.utils.normalize(Ft,bt,0):xt,!0),R.progress=he||(Jt-Ft)/F===xt?0:xt),u&&_&&(yt._pinOffset=Math.round(R.progress*vt)),Q&&Q.invalidate(),isNaN(Kt)||(Kt-=Ot.getProperty(G,v.p),bi-=Ot.getProperty($t,v.p),Il(G,v,Kt),Il(Et,v,Kt-(Dt||0)),Il($t,v,bi),Il(Ht,v,bi-(Dt||0))),he&&!wn&&R.update(),h&&!wn&&!x&&(x=!0,h(R),x=!1)}},R.getVelocity=function(){return(ct()-It)/(fn()-ha)*1e3||0},R.endAnimation=function(){ua(R.callbackAnimation),i&&(Q?Q.progress(1):i.paused()?I||ua(i,R.direction<0,1):ua(i,i.reversed()))},R.labelToScroll=function(et){return i&&i.labels&&(Ft||R.refresh()||Ft)+i.labels[et]/i.duration()*F||0},R.getTrailing=function(et){var wt=le.indexOf(R),ft=R.direction>0?le.slice(0,wt).reverse():le.slice(wt+1);return(zn(et)?ft.filter(function(Dt){return Dt.vars.preventOverlaps===et}):ft).filter(function(Dt){return R.direction>0?Dt.end<=Ft:Dt.start>=bt})},R.update=function(et,wt,ft){if(!(w&&!ft&&!et)){var Dt=wn===!0?Bt:R.scroll(),zt=et?0:(Dt-Ft)/F,Nt=zt<0?0:zt>1?1:zt||0,Qt=R.progress,he,me,oe,E,B,H,K,J;if(wt&&(It=Jt,Jt=w?ct():Dt,S&&(k=Zt,Zt=i&&!I?i.totalProgress():Nt)),m&&u&&!hn&&!El&&Kn&&(!Nt&&Ft<Dt+(Dt-It)/(fn()-ha)*m?Nt=1e-4:Nt===1&&bt>Dt+(Dt-It)/(fn()-ha)*m&&(Nt=.9999)),Nt!==Qt&&R.enabled){if(he=R.isActive=!!Nt&&Nt<1,me=!!Qt&&Qt<1,H=he!==me,B=H||!!Nt!=!!Qt,R.direction=Nt>Qt?1:-1,R.progress=Nt,B&&!hn&&(oe=Nt&&!Qt?0:Nt===1?1:Qt===1?2:3,I&&(E=!H&&Z[oe+1]!=="none"&&Z[oe+1]||Z[oe],J=i&&(E==="complete"||E==="reset"||E in i))),M&&(H||J)&&(J||f||!i)&&(En(M)?M(R):R.getTrailing(M).forEach(function(Xt){return Xt.endAnimation()})),I||(Q&&!hn&&!El?(Q._dp._time-Q._start!==Q._time&&Q.render(Q._dp._time-Q._start),Q.resetTo?Q.resetTo("totalProgress",Nt,i._tTime/i._tDur):(Q.vars.totalProgress=Nt,Q.invalidate().restart())):i&&i.totalProgress(Nt,!!(hn&&(ot||et)))),u){if(et&&_&&(yt.style[_+v.os2]=Yt),!$)Lt(da(ht+vt*Nt));else if(B){if(K=!et&&Nt>Qt&&bt+1>Dt&&Dt+1>=Pi(N,v),D)if(!et&&(he||K)){var St=Xi(u,!0),At=Dt-Ft;lm(u,Ee,St.top+(v===ke?At:0)+We,St.left+(v===ke?0:At)+We)}else lm(u,yt);no(he||K?tt:it),Wt&&Nt<1&&he||Lt(ht+(Nt===1&&!K?vt:0))}}S&&!Rt.tween&&!hn&&!El&>.restart(!0),a&&(H||y&&Nt&&(Nt<1||!sh))&&Ma(a.targets).forEach(function(Xt){return Xt.classList[he||y?"add":"remove"](a.className)}),o&&!I&&!et&&o(R),B&&!hn?(I&&(J&&(E==="complete"?i.pause().totalProgress(1):E==="reset"?i.restart(!0).pause():E==="restart"?i.restart(!0):i[E]()),o&&o(R)),(H||!sh)&&(c&&H&&ah(R,c),W[oe]&&ah(R,W[oe]),y&&(Nt===1?R.kill(!1,1):W[oe]=0),H||(oe=Nt===1?1:3,W[oe]&&ah(R,W[oe]))),P&&!he&&Math.abs(R.getVelocity())>(pa(P)?P:2500)&&(ua(R.callbackAnimation),Q?Q.progress(1):ua(i,E==="reverse"?1:!Nt,1))):I&&o&&!hn&&o(R)}if(qt){var Pt=w?Dt/w.duration()*(w._caScrollDist||0):Dt;Tt(Pt+(G._isFlipped?1:0)),qt(Pt)}Mt&&Mt(-Dt/w.duration()*(w._caScrollDist||0))}},R.enable=function(et,wt){R.enabled||(R.enabled=!0,Ke(N,"resize",ma),V||Ke(N,"scroll",js),at&&Ke(r,"refreshInit",at),et!==!1&&(R.progress=xt=0,Jt=It=X=ct()),wt!==!1&&R.refresh())},R.getTween=function(et){return et&&Rt?Rt.tween:Q},R.setPositions=function(et,wt,ft,Dt){if(w){var zt=w.scrollTrigger,Nt=w.duration(),Qt=zt.end-zt.start;et=zt.start+Qt*et/Nt,wt=zt.start+Qt*wt/Nt}R.refresh(!1,!1,{start:Qp(et,ft&&!!R._startClamp),end:Qp(wt,ft&&!!R._endClamp)},Dt),R.update()},R.adjustPinSpacing=function(et){if(ut&&et){var wt=ut.indexOf(v.d)+1;ut[wt]=parseFloat(ut[wt])+et+We,ut[1]=parseFloat(ut[1])+et+We,no(ut)}},R.disable=function(et,wt){if(R.enabled&&(et!==!1&&R.revert(!0,!0),R.enabled=R.isActive=!1,wt||Q&&Q.pause(),Bt=0,kt&&(kt.uncache=1),at&&$e(r,"refreshInit",at),gt&&(gt.pause(),Rt.tween&&Rt.tween.kill()&&(Rt.tween=0)),!V)){for(var ft=le.length;ft--;)if(le[ft].scroller===N&&le[ft]!==R)return;$e(N,"resize",ma),V||$e(N,"scroll",js)}},R.kill=function(et,wt){R.disable(et,wt),Q&&!wt&&Q.kill(),l&&delete mh[l];var ft=le.indexOf(R);ft>=0&&le.splice(ft,1),ft===bn&&Ul>0&&bn--,ft=0,le.forEach(function(Dt){return Dt.scroller===R.scroller&&(ft=1)}),ft||wn||(R.scroll.rec=0),i&&(i.scrollTrigger=null,et&&i.revert({kill:!1}),wt||i.kill()),Et&&[Et,Ht,G,$t].forEach(function(Dt){return Dt.parentNode&&Dt.parentNode.removeChild(Dt)}),Sa===R&&(Sa=0),u&&(kt&&(kt.uncache=1),ft=0,le.forEach(function(Dt){return Dt.pin===u&&ft++}),ft||(kt.spacer=0)),n.onKill&&n.onKill(R)},le.push(R),R.enable(!1,!1),L&&L(R),i&&i.add&&!F){var dt=R.update;R.update=function(){R.update=dt,Ft||bt||R.refresh()},Ot.delayedCall(.01,R.update),F=.01,Ft=bt=0}else R.refresh();u&&Bv()},r.register=function(n){return Qs||(Ot=n||vm(),xm()&&window.document&&r.enable(),Qs=fa),Qs},r.defaults=function(n){if(n)for(var i in n)Cl[i]=n[i];return Cl},r.disable=function(n,i){fa=0,le.forEach(function(o){return o[i?"kill":"disable"](n)}),$e(de,"wheel",js),$e(Pe,"scroll",js),clearInterval(wl),$e(Pe,"touchcancel",Ri),$e(Ee,"touchstart",Ri),Al($e,Pe,"pointerdown,touchstart,mousedown",tm),Al($e,Pe,"pointerup,touchend,mouseup",em),kl.kill(),Tl($e);for(var s=0;s<ae.length;s+=3)Dl($e,ae[s],ae[s+1]),Dl($e,ae[s],ae[s+2])},r.enable=function(){if(de=window,Pe=document,hi=Pe.documentElement,Ee=Pe.body,Ot&&(Ma=Ot.utils.toArray,ga=Ot.utils.clamp,dh=Ot.core.context||Ri,rh=Ot.core.suppressOverwrites||Ri,xh=de.history.scrollRestoration||"auto",gh=de.pageYOffset,Ot.core.globals("ScrollTrigger",r),Ee)){fa=1,eo=document.createElement("div"),eo.style.height="100vh",eo.style.position="absolute",Dm(),Pv(),Fe.register(Ot),r.isTouch=Fe.isTouch,yr=Fe.isTouch&&/(iPad|iPhone|iPod|Mac)/g.test(navigator.userAgent),fh=Fe.isTouch===1,Ke(de,"wheel",js),dm=[de,Pe,hi,Ee],Ot.matchMedia?(r.matchMedia=function(l){var c=Ot.matchMedia(),h;for(h in l)c.add(h,l[h]);return c},Ot.addEventListener("matchMediaInit",function(){return wh()}),Ot.addEventListener("matchMediaRevert",function(){return Tm()}),Ot.addEventListener("matchMedia",function(){ls(0,1),ps("matchMedia")}),Ot.matchMedia("(orientation: portrait)",function(){return lh(),lh})):console.warn("Requires GSAP 3.11.0 or later"),lh(),Ke(Pe,"scroll",js);var n=Ee.style,i=n.borderTopStyle,s=Ot.core.Animation.prototype,o,a;for(s.revert||Object.defineProperty(s,"revert",{value:function(){return this.time(-.01,!0)}}),n.borderTopStyle="solid",o=Xi(Ee),ke.m=Math.round(o.top+ke.sc())||0,un.m=Math.round(o.left+un.sc())||0,i?n.borderTopStyle=i:n.removeProperty("border-top-style"),wl=setInterval(rm,250),Ot.delayedCall(.5,function(){return El=0}),Ke(Pe,"touchcancel",Ri),Ke(Ee,"touchstart",Ri),Al(Ke,Pe,"pointerdown,touchstart,mousedown",tm),Al(Ke,Pe,"pointerup,touchend,mouseup",em),hh=Ot.utils.checkPrefix("transform"),Ol.push(hh),Qs=fn(),kl=Ot.delayedCall(.2,ls).pause(),to=[Pe,"visibilitychange",function(){var l=de.innerWidth,c=de.innerHeight;Pe.hidden?($p=l,Kp=c):($p!==l||Kp!==c)&&ma()},Pe,"DOMContentLoaded",ls,de,"load",ls,de,"resize",ma],Tl(Ke),le.forEach(function(l){return l.enable(0,1)}),a=0;a<ae.length;a+=3)Dl($e,ae[a],ae[a+1]),Dl($e,ae[a],ae[a+2])}},r.config=function(n){"limitCallbacks"in n&&(sh=!!n.limitCallbacks);var i=n.syncInterval;i&&clearInterval(wl)||(wl=i)&&setInterval(rm,i),"ignoreMobileResize"in n&&(fh=r.isTouch===1&&n.ignoreMobileResize),"autoRefreshEvents"in n&&(Tl($e)||Tl(Ke,n.autoRefreshEvents||"none"),mm=(n.autoRefreshEvents+"").indexOf("resize")===-1)},r.scrollerProxy=function(n,i){var s=Sn(n),o=ae.indexOf(s),a=fs(s);~o&&ae.splice(o,a?6:2),i&&(a?ui.unshift(de,i,Ee,i,hi,i):ui.unshift(s,i))},r.clearMatchMedia=function(n){le.forEach(function(i){return i._ctx&&i._ctx.query===n&&i._ctx.kill(!0,!0)})},r.isInViewport=function(n,i,s){var o=(zn(n)?Sn(n):n).getBoundingClientRect(),a=o[s?cs:us]*i||0;return s?o.right-a>0&&o.left+a<de.innerWidth:o.bottom-a>0&&o.top+a<de.innerHeight},r.positionInViewport=function(n,i,s){zn(n)&&(n=Sn(n));var o=n.getBoundingClientRect(),a=o[s?cs:us],l=i==null?a/2:i in Hl?Hl[i]*a:~i.indexOf("%")?parseFloat(i)*a/100:parseFloat(i)||0;return s?(o.left+l)/de.innerWidth:(o.top+l)/de.innerHeight},r.killAll=function(n){if(le.slice(0).forEach(function(s){return s.vars.id!=="ScrollSmoother"&&s.kill()}),n!==!0){var i=ds.killAll||[];ds={},i.forEach(function(s){return s()})}},r}();te.version="3.12.5";te.saveStyles=function(r){return r?Ma(r).forEach(function(t){if(t&&t.style){var e=kn.indexOf(t);e>=0&&kn.splice(e,5),kn.push(t,t.style.cssText,t.getBBox&&t.getAttribute("transform"),Ot.core.getCache(t),dh())}}):kn};te.revert=function(r,t){return wh(!r,t)};te.create=function(r,t){return new te(r,t)};te.refresh=function(r){return r?ma():(Qs||te.register())&&ls(!0)};te.update=function(r){return++ae.cache&&Yi(r===!0?2:0)};te.clearScrollMemory=Am;te.maxScroll=function(r,t){return Pi(r,t?un:ke)};te.getScrollFunc=function(r,t){return Gi(Sn(r),t?un:ke)};te.getById=function(r){return mh[r]};te.getAll=function(){return le.filter(function(r){return r.vars.id!=="ScrollSmoother"})};te.isScrolling=function(){return!!Kn};te.snapDirectional=bh;te.addEventListener=function(r,t){var e=ds[r]||(ds[r]=[]);~e.indexOf(t)||e.push(t)};te.removeEventListener=function(r,t){var e=ds[r],n=e&&e.indexOf(t);n>=0&&e.splice(n,1)};te.batch=function(r,t){var e=[],n={},i=t.interval||.016,s=t.batchMax||1e9,o=function(c,h){var f=[],d=[],u=Ot.delayedCall(i,function(){h(f,d),f=[],d=[]}).pause();return function(_){f.length||u.restart(!0),f.push(_.trigger),d.push(_),s<=f.length&&u.progress(1)}},a;for(a in t)n[a]=a.substr(0,2)==="on"&&En(t[a])&&a!=="onRefreshInit"?o(a,t[a]):t[a];return En(s)&&(s=s(),Ke(te,"refresh",function(){return s=t.batchMax()})),Ma(r).forEach(function(l){var c={};for(a in n)c[a]=n[a];c.trigger=l,e.push(te.create(c))}),e};var um=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},uh=function r(t,e){e===!0?t.style.removeProperty("touch-action"):t.style.touchAction=e===!0?"auto":e?"pan-"+e+(Fe.isTouch?" pinch-zoom":""):"none",t===hi&&r(Ee,e)},Ll={auto:1,scroll:1},Gv=function(t){var e=t.event,n=t.target,i=t.axis,s=(e.changedTouches?e.changedTouches[0]:e).target,o=s._gsap||Ot.core.getCache(s),a=fn(),l;if(!o._isScrollT||a-o._isScrollT>2e3){for(;s&&s!==Ee&&(s.scrollHeight<=s.clientHeight&&s.scrollWidth<=s.clientWidth||!(Ll[(l=$n(s)).overflowY]||Ll[l.overflowX]));)s=s.parentNode;o._isScroll=s&&s!==n&&!fs(s)&&(Ll[(l=$n(s)).overflowY]||Ll[l.overflowX]),o._isScrollT=a}(o._isScroll||i==="x")&&(e.stopPropagation(),e._gsapAllow=!0)},Rm=function(t,e,n,i){return Fe.create({target:t,capture:!0,debounce:!1,lockAxis:!0,type:e,onWheel:i=i&&Gv,onPress:i,onDrag:i,onScroll:i,onEnable:function(){return n&&Ke(Pe,Fe.eventTypes[0],fm,!1,!0)},onDisable:function(){return $e(Pe,Fe.eventTypes[0],fm,!0)}})},Wv=/(input|label|select|textarea)/i,hm,fm=function(t){var e=Wv.test(t.target.tagName);(e||hm)&&(t._gsapAllow=!0,hm=e)},Xv=function(t){as(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,o=e.onRelease,a,l,c=Sn(t.target)||hi,h=Ot.core.globals().ScrollSmoother,f=h&&h.get(),d=yr&&(t.content&&Sn(t.content)||f&&t.content!==!1&&!f.smooth()&&f.content()),u=Gi(c,ke),_=Gi(c,un),p=1,m=(Fe.isTouch&&de.visualViewport?de.visualViewport.scale*de.visualViewport.width:de.outerWidth)/de.innerWidth,g=0,b=En(i)?function(){return i(a)}:function(){return i||2.8},y,S,D=Rm(c,t.type,!0,s),T=function(){return S=!1},w=Ri,P=Ri,M=function(){l=Pi(c,ke),P=ga(yr?1:0,l),n&&(w=ga(0,Pi(c,un))),y=hs},v=function(){d._gsap.y=da(parseFloat(d._gsap.y)+u.offset)+"px",d.style.transform="matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, "+parseFloat(d._gsap.y)+", 0, 1)",u.offset=u.cacheID=0},I=function(){if(S){requestAnimationFrame(T);var z=da(a.deltaY/2),U=P(u.v-z);if(d&&U!==u.v+u.offset){u.offset=U-u.v;var R=da((parseFloat(d&&d._gsap.y)||0)-u.offset);d.style.transform="matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, "+R+", 0, 1)",d._gsap.y=R+"px",u.cacheID=ae.cache,Yi()}return!0}u.offset&&v(),S=!0},N,C,V,$,W=function(){M(),N.isActive()&&N.vars.scrollY>l&&(u()>l?N.progress(1)&&u(l):N.resetTo("scrollY",l))};return d&&Ot.set(d,{y:"+=0"}),t.ignoreCheck=function(Z){return yr&&Z.type==="touchmove"&&I(Z)||p>1.05&&Z.type!=="touchstart"||a.isGesturing||Z.touches&&Z.touches.length>1},t.onPress=function(){S=!1;var Z=p;p=da((de.visualViewport&&de.visualViewport.scale||1)/m),N.pause(),Z!==p&&uh(c,p>1.01?!0:n?!1:"x"),C=_(),V=u(),M(),y=hs},t.onRelease=t.onGestureStart=function(Z,z){if(u.offset&&v(),!z)$.restart(!0);else{ae.cache++;var U=b(),R,at;n&&(R=_(),at=R+U*.05*-Z.velocityX/.227,U*=um(_,R,at,Pi(c,un)),N.vars.scrollX=w(at)),R=u(),at=R+U*.05*-Z.velocityY/.227,U*=um(u,R,at,Pi(c,ke)),N.vars.scrollY=P(at),N.invalidate().duration(U).play(.01),(yr&&N.vars.scrollY>=l||R>=l-1)&&Ot.to({},{onUpdate:W,duration:U})}o&&o(Z)},t.onWheel=function(){N._ts&&N.pause(),fn()-g>1e3&&(y=0,g=fn())},t.onChange=function(Z,z,U,R,at){if(hs!==y&&M(),z&&n&&_(w(R[2]===z?C+(Z.startX-Z.x):_()+z-R[1])),U){u.offset&&v();var _t=at[2]===U,Ut=_t?V+Z.startY-Z.y:u()+U-at[1],X=P(Ut);_t&&Ut!==X&&(V+=X-Ut),u(X)}(U||z)&&Yi()},t.onEnable=function(){uh(c,n?!1:"x"),te.addEventListener("refresh",W),Ke(de,"resize",W),u.smooth&&(u.target.style.scrollBehavior="auto",u.smooth=_.smooth=!1),D.enable()},t.onDisable=function(){uh(c,!0),$e(de,"resize",W),te.removeEventListener("refresh",W),D.kill()},t.lockAxis=t.lockAxis!==!1,a=new Fe(t),a.iOS=yr,yr&&!u()&&u(1),yr&&Ot.ticker.add(Ri),$=a._dc,N=Ot.to(a,{ease:"power4",paused:!0,inherit:!1,scrollX:n?"+=0.1":"+=0",scrollY:"+=0.1",modifiers:{scrollY:Cm(u,u(),function(){return N.pause()})},onUpdate:Yi,onComplete:$.vars.onComplete}),a};te.sort=function(r){return le.sort(r||function(t,e){return(t.vars.refreshPriority||0)*-1e6+t.start-(e.start+(e.vars.refreshPriority||0)*-1e6)})};te.observe=function(r){return new Fe(r)};te.normalizeScroll=function(r){if(typeof r>"u")return Mn;if(r===!0&&Mn)return Mn.enable();if(r===!1){Mn&&Mn.kill(),Mn=r;return}var t=r instanceof Fe?r:Xv(r);return Mn&&Mn.target===t.target&&Mn.kill(),fs(t.target)&&(Mn=t),t};te.core={_getVelocityProp:bl,_inputObserver:Rm,_scrollers:ae,_proxies:ui,bridge:{ss:function(){Kn||ps("scrollStart"),Kn=fn()},ref:function(){return hn}}};vm()&&Ot.registerPlugin(te);ue.registerPlugin(te,li);var Pm=()=>{ue.matchMedia().add("(min-width: 992px)",()=>{let t=document.querySelector(".casestudies-heading-section");t&&ue.to(t,{ease:"none",scrollTrigger:{trigger:t,start:"top top",endTrigger:".casestudies-wrapper",end:"bottom bottom",pin:!0,pinSpacing:!1,scrub:!0,anticipatePin:1}})})};var Im=()=>{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`,ue.fromTo(t,{x:0},{x:-n,duration:60,ease:"linear",repeat:-1,force3D:!0})})};var Lm=()=>{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=(o,a)=>{let l=document.createElement("script"),c=document.getElementsByTagName("script")[0];l.async=1,l.onload=l.onreadystatechange=(h,f)=>{(f||!l.readyState||/loaded|complete/.test(l.readyState))&&(l.onload=l.onreadystatechange=null,l=void 0,f||a&&a())},l.src=o,c.parentNode.insertBefore(l,c)};r.forEach(o=>{o.addEventListener("click",a=>{a.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",o=>{o.preventDefault,t.classList.remove("-open"),document.body.classList.remove("-popup-open")}),t.addEventListener("click",o=>{i.contains(o.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 Fm=()=>{let r=new Date().toLocaleTimeString("pl-PL",{timeZone:"Poland"}).split(":");return r[0]+" - "+r[1]},Nm=()=>{let r=document.querySelectorAll("[data-current-time]");r.length>0&&r.forEach(t=>{t.textContent=Fm(),setInterval(()=>{t.textContent=Fm()},5e3)})};var Yv=/(?:^\s+|\s+$)/g,Eh=/([\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 ro(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+=ro(r)}else if(t===3||t===4)return r.nodeValue;return e}function fi(r,t,e,n){if(r+="",e&&(r=r.trim?r.trim():r.replace(Yv,"")),t&&t!=="")return r.replace(/>/g,">").replace(/</g,"<").split(t);for(var i=[],s=r.length,o=0,a,l;o<s;o++)l=r.charAt(o),(l.charCodeAt(0)>=55296&&l.charCodeAt(0)<=56319||r.charCodeAt(o+1)>=65024&&r.charCodeAt(o+1)<=65039)&&(a=((r.substr(o,12).split(Eh)||[])[1]||"").length||2,l=r.substr(o,a),i.emoji=1,o+=a-1),i.push(l===">"?">":l==="<"?"<":n&&l===" "&&(r.charAt(o-1)===" "||r.charAt(o+1)===" ")?" ":l);return i}var so,Ah,Bm,wa,km,Wl,qv=/(?:\r|\n|\t\t)/g,Zv=/(?:\s\s+)/g,Jv="\xA0",zm=function(t){so=document,Ah=window,wa=wa||t||Ah.gsap||console.warn("Please gsap.registerPlugin(SplitText)"),wa&&(Wl=wa.utils.toArray,km=wa.core.context||function(){},Bm=1)},$v=1,Vm=function(t){return Ah.getComputedStyle(t)},Dh=function(t){return t.position==="absolute"||t.absolute===!0},Kv=function(t,e){for(var n=e.length,i;--n>-1;)if(i=e[n],t.substr(0,i.length)===i)return i.length},jv=" style='position:relative;display:inline-block;'",Um=function(t,e){t===void 0&&(t="");var n=~t.indexOf("++"),i=1;return n&&(t=t.split("++").join("")),function(){return"<"+e+jv+(t?" class='"+t+(n?i++:"")+"'>":">")}},Hm=function r(t,e,n){var i=t.nodeType;if(i===1||i===9||i===11)for(t=t.firstChild;t;t=t.nextSibling)r(t,e,n);else(i===3||i===4)&&(t.nodeValue=t.nodeValue.split(e).join(n))},Th=function(t,e){for(var n=e.length;--n>-1;)t.push(e[n])},Om=function(t,e,n){for(var i;t&&t!==e;){if(i=t._next||t.nextSibling,i)return i.textContent.charAt(0)===n;t=t.parentNode||t._parent}},Qv=function r(t){var e=Wl(t.childNodes),n=e.length,i,s;for(i=0;i<n;i++)s=e[i],s._isSplit?r(s):i&&s.previousSibling&&s.previousSibling.nodeType===3?(s.previousSibling.nodeValue+=s.nodeType===3?s.nodeValue:s.firstChild.nodeValue,t.removeChild(s)):s.nodeType!==3&&(t.insertBefore(s.firstChild,s),t.removeChild(s))},Ii=function(t,e){return parseFloat(e[t])||0},ty=function(t,e,n,i,s,o,a){var l=Vm(t),c=Ii("paddingLeft",l),h=-999,f=Ii("borderBottomWidth",l)+Ii("borderTopWidth",l),d=Ii("borderLeftWidth",l)+Ii("borderRightWidth",l),u=Ii("paddingTop",l)+Ii("paddingBottom",l),_=Ii("paddingLeft",l)+Ii("paddingRight",l),p=Ii("fontSize",l)*(e.lineThreshold||.2),m=l.textAlign,g=[],b=[],y=[],S=e.wordDelimiter||" ",D=e.tag?e.tag:e.span?"span":"div",T=e.type||e.split||"chars,words,lines",w=s&&~T.indexOf("lines")?[]:null,P=~T.indexOf("words"),M=~T.indexOf("chars"),v=Dh(e),I=e.linesClass,N=~(I||"").indexOf("++"),C=[],V=l.display==="flex",$=t.style.display,W,Z,z,U,R,at,_t,Ut,X,ot,xt,ct;for(N&&(I=I.split("++").join("")),V&&(t.style.display="block"),Z=t.getElementsByTagName("*"),z=Z.length,R=[],W=0;W<z;W++)R[W]=Z[W];if(w||v)for(W=0;W<z;W++)U=R[W],at=U.parentNode===t,(at||v||M&&!P)&&(ct=U.offsetTop,w&&at&&Math.abs(ct-h)>p&&(U.nodeName!=="BR"||W===0)&&(_t=[],w.push(_t),h=ct),v&&(U._x=U.offsetLeft,U._y=ct,U._w=U.offsetWidth,U._h=U.offsetHeight),w&&((U._isSplit&&at||!M&&at||P&&at||!P&&U.parentNode.parentNode===t&&!U.parentNode._isSplit)&&(_t.push(U),U._x-=c,Om(U,t,S)&&(U._wordEnd=!0)),U.nodeName==="BR"&&(U.nextSibling&&U.nextSibling.nodeName==="BR"||W===0)&&w.push([])));for(W=0;W<z;W++){if(U=R[W],at=U.parentNode===t,U.nodeName==="BR"){w||v?(U.parentNode&&U.parentNode.removeChild(U),R.splice(W--,1),z--):P||t.appendChild(U);continue}if(v&&(X=U.style,!P&&!at&&(U._x+=U.parentNode._x,U._y+=U.parentNode._y),X.left=U._x+"px",X.top=U._y+"px",X.position="absolute",X.display="block",X.width=U._w+1+"px",X.height=U._h+"px"),!P&&M)if(U._isSplit)for(U._next=Z=U.nextSibling,U.parentNode.appendChild(U);Z&&Z.nodeType===3&&Z.textContent===" ";)U._next=Z.nextSibling,U.parentNode.appendChild(Z),Z=Z.nextSibling;else U.parentNode._isSplit?(U._parent=U.parentNode,!U.previousSibling&&U.firstChild&&(U.firstChild._isFirst=!0),U.nextSibling&&U.nextSibling.textContent===" "&&!U.nextSibling.nextSibling&&C.push(U.nextSibling),U._next=U.nextSibling&&U.nextSibling._isFirst?null:U.nextSibling,U.parentNode.removeChild(U),R.splice(W--,1),z--):at||(ct=!U.nextSibling&&Om(U.parentNode,t,S),U.parentNode._parent&&U.parentNode._parent.appendChild(U),ct&&U.parentNode.appendChild(so.createTextNode(" ")),D==="span"&&(U.style.display="inline"),g.push(U));else U.parentNode._isSplit&&!U._isSplit&&U.innerHTML!==""?b.push(U):M&&!U._isSplit&&(D==="span"&&(U.style.display="inline"),g.push(U))}for(W=C.length;--W>-1;)C[W].parentNode.removeChild(C[W]);if(w){for(v&&(ot=so.createElement(D),t.appendChild(ot),xt=ot.offsetWidth+"px",ct=ot.offsetParent===t?0:t.offsetLeft,t.removeChild(ot)),X=t.style.cssText,t.style.cssText="display:none;";t.firstChild;)t.removeChild(t.firstChild);for(Ut=S===" "&&(!v||!P&&!M),W=0;W<w.length;W++){for(_t=w[W],ot=so.createElement(D),ot.style.cssText="display:block;text-align:"+m+";position:"+(v?"absolute;":"relative;"),I&&(ot.className=I+(N?W+1:"")),y.push(ot),z=_t.length,Z=0;Z<z;Z++)_t[Z].nodeName!=="BR"&&(U=_t[Z],ot.appendChild(U),Ut&&U._wordEnd&&ot.appendChild(so.createTextNode(" ")),v&&(Z===0&&(ot.style.top=U._y+"px",ot.style.left=c+ct+"px"),U.style.top="0px",ct&&(U.style.left=U._x-ct+"px")));z===0?ot.innerHTML=" ":!P&&!M&&(Qv(ot),Hm(ot,"\xA0"," ")),v&&(ot.style.width=xt,ot.style.height=U._h+"px"),t.appendChild(ot)}t.style.cssText=X}v&&(a>t.clientHeight&&(t.style.height=a-u+"px",t.clientHeight<a&&(t.style.height=a+f+"px")),o>t.clientWidth&&(t.style.width=o-_+"px",t.clientWidth<o&&(t.style.width=o+d+"px"))),V&&($?t.style.display=$:t.style.removeProperty("display")),Th(n,g),P&&Th(i,b),Th(s,y)},ey=function(t,e,n,i){var s=e.tag?e.tag:e.span?"span":"div",o=e.type||e.split||"chars,words,lines",a=~o.indexOf("chars"),l=Dh(e),c=e.wordDelimiter||" ",h=function(v){return v===c||v===Jv&&c===" "},f=c!==" "?"":l?"­ ":" ",d="</"+s+">",u=1,_=e.specialChars?typeof e.specialChars=="function"?e.specialChars:Kv:null,p,m,g,b,y,S,D,T,w=so.createElement("div"),P=t.parentNode;for(P.insertBefore(w,t),w.textContent=t.nodeValue,P.removeChild(t),t=w,p=ro(t),D=p.indexOf("<")!==-1,e.reduceWhiteSpace!==!1&&(p=p.replace(Zv," ").replace(qv,"")),D&&(p=p.split("<").join("{{LT}}")),y=p.length,m=(p.charAt(0)===" "?f:"")+n(),g=0;g<y;g++)if(S=p.charAt(g),_&&(T=_(p.substr(g),e.specialChars)))S=p.substr(g,T||1),m+=a&&S!==" "?i()+S+"</"+s+">":S,g+=T-1;else if(h(S)&&!h(p.charAt(g-1))&&g){for(m+=u?d:"",u=0;h(p.charAt(g+1));)m+=f,g++;g===y-1?m+=f:p.charAt(g+1)!==")"&&(m+=f+n(),u=1)}else S==="{"&&p.substr(g,6)==="{{LT}}"?(m+=a?i()+"{{LT}}</"+s+">":"{{LT}}",g+=5):S.charCodeAt(0)>=55296&&S.charCodeAt(0)<=56319||p.charCodeAt(g+1)>=65024&&p.charCodeAt(g+1)<=65039?(b=((p.substr(g,12).split(Eh)||[])[1]||"").length||2,m+=a&&S!==" "?i()+p.substr(g,b)+"</"+s+">":p.substr(g,b),g+=b-1):m+=a&&S!==" "?i()+S+"</"+s+">":S;t.outerHTML=m+(u?d:""),D&&Hm(P,"{{LT}}","<")},ny=function r(t,e,n,i){var s=Wl(t.childNodes),o=s.length,a=Dh(e),l,c;if(t.nodeType!==3||o>1){for(e.absolute=!1,l=0;l<o;l++)c=s[l],c._next=c._isFirst=c._parent=c._wordEnd=null,(c.nodeType!==3||/\S+/.test(c.nodeValue))&&(a&&c.nodeType!==3&&Vm(c).display==="inline"&&(c.style.display="inline-block",c.style.position="relative"),c._isSplit=!0,r(c,e,n,i));e.absolute=a,t._isSplit=!0;return}ey(t,e,n,i)},oo=function(){function r(e,n){Bm||zm(),this.elements=Wl(e),this.chars=[],this.words=[],this.lines=[],this._originals=[],this.vars=n||{},km(this),$v&&this.split(n)}var t=r.prototype;return t.split=function(n){this.isSplit&&this.revert(),this.vars=n=n||this.vars,this._originals.length=this.chars.length=this.words.length=this.lines.length=0;for(var i=this.elements.length,s=n.tag?n.tag:n.span?"span":"div",o=Um(n.wordsClass,s),a=Um(n.charsClass,s),l,c,h;--i>-1;)h=this.elements[i],this._originals[i]={html:h.innerHTML,style:h.getAttribute("style")},l=h.clientHeight,c=h.clientWidth,ny(h,n,o,a),ty(h,n,this.chars,this.words,this.lines,c,l);return this.chars.reverse(),this.words.reverse(),this.lines.reverse(),this.isSplit=!0,this},t.revert=function(){var n=this._originals;if(!n)throw"revert() call wasn't scoped properly.";return this.elements.forEach(function(i,s){i.innerHTML=n[s].html,i.setAttribute("style",n[s].style)}),this.chars=[],this.words=[],this.lines=[],this.isSplit=!1,this},r.create=function(n,i){return new r(n,i)},r}();oo.version="3.12.5";oo.register=zm;var Gm=()=>{if(ue.registerPlugin(te,oo),document.querySelector(".hero_grid")){let r=document.querySelector(".hero_grid"),t=r.querySelector(".hero_holo"),e=r.querySelector("h1"),n=r.querySelector(".paragraph-big"),i=new oo(e,{type:"lines",tag:"span"}),s=new oo(e,{type:"lines",linesClass:"header_line"});i.lines=s.chars.concat(i.lines),ue.timeline({scrollTrigger:{trigger:r,start:"top bottom",toggleActions:"play none none reset"}}).fromTo(n,{autoAlpha:0},{autoAlpha:1,duration:.35,ease:"circ.out"}).fromTo(i.lines,{y:"100%"},{y:0,duration:.75,stagger:.05,ease:"circ.out"},"-=0.25").fromTo(t,{autoAlpha:0},{autoAlpha:1,duration:.75,ease:"circ.out"},"+-=0.25")}};var Wm=()=>{let r=document.querySelector(".is-section-loader");if(!r)return;let t=r.querySelector(".loader_line"),e=r.querySelector(".loader_value");!t||!e||ue.to(t,{width:"100%",duration:1.5,onUpdate:function(){let n=Math.round(this.progress()*100);e.innerHTML=`${n}%`},onComplete:function(){ue.to(r,{y:"-100dvh",duration:.75})}},"<")};var Xl=function(){function r(e){this.chars=fi(e),this.sets=[],this.length=50;for(var n=0;n<20;n++)this.sets[n]=Ym(80,this.chars)}var t=r.prototype;return t.grow=function(n){for(var i=0;i<20;i++)this.sets[i]+=Ym(n-this.length,this.chars);this.length=n},r}(),ms,Jm,$m=function(){return ms||typeof window<"u"&&(ms=window.gsap)&&ms.registerPlugin&&ms},iy=1,Xm=/\s+/g,Ym=function(t,e){for(var n=e.length,i="";--t>-1;)i+=e[~~(Math.random()*n)];return i},Ch="ABCDEFGHIJKLMNOPQRSTUVWXYZ",qm=Ch.toLowerCase(),ry={upperCase:new Xl(Ch),lowerCase:new Xl(qm),upperAndLowerCase:new Xl(Ch+qm)},Zm=function(){Jm=ms=$m()},Ea={version:"3.12.5",name:"scrambleText",register:function(t,e,n){ms=t,Zm()},init:function(t,e,n,i,s){if(Jm||Zm(),this.prop="innerHTML"in t?"innerHTML":"textContent"in t?"textContent":0,!!this.prop){this.target=t,typeof e!="object"&&(e={text:e});var o=e.text||e.value||"",a=e.trim!==!1,l=this,c,h,f,d;return l.delimiter=c=e.delimiter||"",l.original=fi(ro(t).replace(Xm," ").split(" ").join(""),c,a),(o==="{original}"||o===!0||o==null)&&(o=l.original.join(c)),l.text=fi((o||"").replace(Xm," "),c,a),l.hasClass=!!(e.newClass||e.oldClass),l.newClass=e.newClass,l.oldClass=e.oldClass,d=c==="",l.textHasEmoji=d&&!!l.text.emoji,l.charsHaveEmoji=!!e.chars&&!!fi(e.chars).emoji,l.length=d?l.original.length:l.original.join(c).length,l.lengthDif=(d?l.text.length:l.text.join(c).length)-l.length,l.fillChar=e.fillChar||e.chars&&~e.chars.indexOf(" ")?" ":"",l.charSet=f=ry[e.chars||"upperCase"]||new Xl(e.chars),l.speed=.05/(e.speed||1),l.prevScrambleTime=0,l.setIndex=Math.random()*20|0,h=l.length+Math.max(l.lengthDif,0),h>f.length&&f.grow(h),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"),iy}},render:function(t,e){var n=e.target,i=e.prop,s=e.text,o=e.delimiter,a=e.tween,l=e.prevScrambleTime,c=e.revealDelay,h=e.setIndex,f=e.chars,d=e.charSet,u=e.length,_=e.textHasEmoji,p=e.charsHaveEmoji,m=e.lengthDif,g=e.tweenLength,b=e.oldClass,y=e.newClass,S=e.rightToLeft,D=e.fillChar,T=e.speed,w=e.original,P=e.hasClass,M=s.length,v=a._time,I=v-l,N,C,V,$,W,Z,z,U,R,at,_t;c&&(a._from&&(v=a._dur-v),t=v===0?0:v<c?1e-6:v===a._dur?1:a._ease((v-c)/(a._dur-c))),t<0?t=0:t>1&&(t=1),S&&(t=1-t),N=~~(t*M+.5),t?((I>T||I<-T)&&(e.setIndex=h=(h+(Math.random()*19|0))%20,e.chars=d.sets[h],e.prevScrambleTime+=I),$=f):$=w.join(o),_t=a._from?t:1-t,at=u+(g?a._from?_t*_t*_t:1-_t*_t*_t:1)*m,S?t===1&&(a._from||a.data==="isFromStart")?(V="",$=w.join(o)):(z=s.slice(N).join(o),p?V=fi($).slice(0,at-(_?fi(z):z).length+.5|0).join(""):V=$.substr(0,at-(_?fi(z):z).length+.5|0),$=z):(V=s.slice(0,N).join(o),C=(_?fi(V):V).length,p?$=fi($).slice(C,at+.5|0).join(""):$=$.substr(C,at-C+.5|0)),P?(U=S?b:y,R=S?y:b,W=U&&N!==0,Z=R&&N!==M,z=(W?"<span class='"+U+"'>":"")+V+(W?"</span>":"")+(Z?"<span class='"+R+"'>":"")+o+$+(Z?"</span>":"")):z=V+o+$,n[i]=D===" "&&~z.indexOf(" ")?z.split(" ").join(" "):z}};Ea.emojiSafeSplit=fi;Ea.getText=ro;$m()&&ms.registerPlugin(Ea);ue.registerPlugin(Ea);var Km=()=>{document.querySelectorAll("[data-scramble-link]").forEach(t=>{let e=t.querySelector("[data-scramble-text]");if(!e)return;let n=e.textContent;t.addEventListener("mouseenter",()=>{ue.matchMedia().add("(min-width: 768px)",()=>{ue.to(e,{duration:1,scrambleText:{text:n,chars:"10"}})})})})};ue.registerPlugin(li,te);var jm=()=>{ue.registerPlugin(li),li.create({smooth:1.5,effects:!0}),te.refresh()};ue.registerPlugin(te);var Qm=()=>{let r=document.querySelector(".special_decors-wrapper"),t=document.querySelector(".special_decors");ue.to(t,{scrollTrigger:{trigger:t,endTrigger:r,start:()=>"top top",end:()=>"bottom bottom",pin:!0,scrub:!0}})};var ng=()=>{let r=document.querySelector(".mastery_techonologies-wrapper");if(!r)return;let t=r.querySelectorAll("img");t&&(window.innerWidth>991?eg(r,t):tg(r,t),window.addEventListener("resize",function(){window.innerWidth>991?eg(r,t):tg(r,t)},!0))};function tg(r,t){r.innerHTML="",t.forEach(s=>{let o=document.createElement("figure");o.classList.add("mastery_techonologies_slide"),o.appendChild(s),r.appendChild(o)});let e=r.querySelectorAll(".mastery_techonologies_slide");ue.set(e,{autoAlpha:1}),e.forEach((s,o)=>{ue.set(s,{xPercent:100*o})});let n=ue.utils.wrap(-100,(e.length-1)*100),i=e.length*2.5;ue.to(e,{xPercent:`-=${e.length*100}`,duration:i,repeat:-1,ease:"none",modifiers:{xPercent:s=>n(parseFloat(s))}})}function eg(r,t){r.innerHTML="";let e=sy(t);e&&(oy(r,e),ay(r))}function sy(r){let t=Math.floor(r.length/2)<11?Math.floor(r.length/2):11,e=Array.from({length:t},()=>[]),n=Math.floor(r.length/t),i=r.length%t,s=0;for(let o=0;o<t;o++){let a=n+(o<i?1:0);for(let l=0;l<a;l++)s<r.length&&(e[o].push(r[s]),s+=1)}return e}function oy(r,t){r.innerHTML="",t.forEach(e=>{let n=document.createElement("div");n.classList.add("mastery_techonologies_vertical_slider"),e.forEach(i=>{let s=document.createElement("figure");s.classList.add("mastery_techonologies_vertical_slider_item"),s.appendChild(i),n.appendChild(s)}),r.appendChild(n)})}function ay(r){let t=r.querySelectorAll(".mastery_techonologies_vertical_slider"),e=parseInt(window.getComputedStyle(document.body).fontSize)*1.5;if(window.addEventListener("resize",function(){e=parseInt(window.getComputedStyle(document.body).fontSize)*1.5},!0),!t)return;function n(){t.forEach((i,s)=>{i.querySelectorAll(".mastery_techonologies_vertical_slider_item").forEach((a,l)=>{let c=l===0,h=window.getComputedStyle(a),f=new WebKitCSSMatrix(h.transform);ue.fromTo(a,{y:c?(l+1)*e:f.f},{y:c?l*e:f.f-e,duration:.5,ease:"circ.out",delay:.1*s,onComplete:function(){c&&i.appendChild(a)}}).play()})})}n(),setInterval(n,5e3)}var Zf="164";var ly=0,ig=1,cy=2;var C_=1,Jf=2,ji=3,Lr=0,Nn=1,tr=2,Rr=0,Pr=1,rg=2,sg=3,og=4,uy=5,bs=100,hy=101,fy=102,dy=103,py=104,my=200,gy=201,_y=202,xy=203,hf=204,ff=205,vy=206,yy=207,Sy=208,My=209,by=210,wy=211,Ey=212,Ty=213,Ay=214,Dy=0,Cy=1,Ry=2,_c=3,Py=4,Iy=5,Ly=6,Fy=7,R_=0,Ny=1,Uy=2,Ir=0,Oy=1,By=2,ky=3,zy=4,Vy=5,Hy=6,Gy=7;var P_=300,Ro=301,Po=302,df=303,pf=304,Wc=306,mf=1e3,Es=1001,gf=1002,ti=1003,Wy=1004;var Yl=1005;var gi=1006,Rh=1007;var Ts=1008;var Fr=1009,Xy=1010,Yy=1011,I_=1012,L_=1013,Io=1014,Dr=1015,Xc=1016,F_=1017,N_=1018,Oa=1020,qy=35902,Zy=1021,Jy=1022,Fi=1023,$y=1024,Ky=1025,Ao=1026,La=1027,jy=1028,U_=1029,Qy=1030,O_=1031,B_=1033,Ph=33776,Ih=33777,Lh=33778,Fh=33779,ag=35840,lg=35841,cg=35842,ug=35843,hg=36196,fg=37492,dg=37496,pg=37808,mg=37809,gg=37810,_g=37811,xg=37812,vg=37813,yg=37814,Sg=37815,Mg=37816,bg=37817,wg=37818,Eg=37819,Tg=37820,Ag=37821,Nh=36492,Dg=36494,Cg=36495,tS=36283,Rg=36284,Pg=36285,Ig=36286;var xc=2300,vc=2301,Uh=2302,Lg=2400,Fg=2401,Ng=2402;var eS=3200,nS=3201,iS=0,rS=1,Ar="",Qn="srgb",Or="srgb-linear",$f="display-p3",Yc="display-p3-linear",yc="linear",Te="srgb",Sc="rec709",Mc="p3";var ao=7680;var Ug=519,sS=512,oS=513,aS=514,k_=515,lS=516,cS=517,uS=518,hS=519,Og=35044;var Bg="300 es",er=2e3,bc=2001,Nr=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,o=i.length;s<o;s++)i[s].call(this,t);t.target=null}}},dn=["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 Oh=Math.PI/180,_f=180/Math.PI;function Ba(){let r=Math.random()*4294967295|0,t=Math.random()*4294967295|0,e=Math.random()*4294967295|0,n=Math.random()*4294967295|0;return(dn[r&255]+dn[r>>8&255]+dn[r>>16&255]+dn[r>>24&255]+"-"+dn[t&255]+dn[t>>8&255]+"-"+dn[t>>16&15|64]+dn[t>>24&255]+"-"+dn[e&63|128]+dn[e>>8&255]+"-"+dn[e>>16&255]+dn[e>>24&255]+dn[n&255]+dn[n>>8&255]+dn[n>>16&255]+dn[n>>24&255]).toLowerCase()}function Fn(r,t,e){return Math.max(t,Math.min(e,r))}function fS(r,t){return(r%t+t)%t}function Bh(r,t,e){return(1-e)*r+e*t}function Ta(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 Ln(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 _e=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(Fn(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,o=this.y-t.y;return this.x=s*n-o*i+t.x,this.y=s*i+o*n+t.y,this}random(){return this.x=Math.random(),this.y=Math.random(),this}*[Symbol.iterator](){yield this.x,yield this.y}},se=class r{constructor(t,e,n,i,s,o,a,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,o,a,l,c)}set(t,e,n,i,s,o,a,l,c){let h=this.elements;return h[0]=t,h[1]=i,h[2]=a,h[3]=e,h[4]=s,h[5]=l,h[6]=n,h[7]=o,h[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,o=n[0],a=n[3],l=n[6],c=n[1],h=n[4],f=n[7],d=n[2],u=n[5],_=n[8],p=i[0],m=i[3],g=i[6],b=i[1],y=i[4],S=i[7],D=i[2],T=i[5],w=i[8];return s[0]=o*p+a*b+l*D,s[3]=o*m+a*y+l*T,s[6]=o*g+a*S+l*w,s[1]=c*p+h*b+f*D,s[4]=c*m+h*y+f*T,s[7]=c*g+h*S+f*w,s[2]=d*p+u*b+_*D,s[5]=d*m+u*y+_*T,s[8]=d*g+u*S+_*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],o=t[4],a=t[5],l=t[6],c=t[7],h=t[8];return e*o*h-e*a*c-n*s*h+n*a*l+i*s*c-i*o*l}invert(){let t=this.elements,e=t[0],n=t[1],i=t[2],s=t[3],o=t[4],a=t[5],l=t[6],c=t[7],h=t[8],f=h*o-a*c,d=a*l-h*s,u=c*s-o*l,_=e*f+n*d+i*u;if(_===0)return this.set(0,0,0,0,0,0,0,0,0);let p=1/_;return t[0]=f*p,t[1]=(i*c-h*n)*p,t[2]=(a*n-i*o)*p,t[3]=d*p,t[4]=(h*e-i*l)*p,t[5]=(i*s-a*e)*p,t[6]=u*p,t[7]=(n*l-c*e)*p,t[8]=(o*e-n*s)*p,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,o,a){let l=Math.cos(s),c=Math.sin(s);return this.set(n*l,n*c,-n*(l*o+c*a)+o+t,-i*c,i*l,-i*(-c*o+l*a)+a+e,0,0,1),this}scale(t,e){return this.premultiply(kh.makeScale(t,e)),this}rotate(t){return this.premultiply(kh.makeRotation(-t)),this}translate(t,e){return this.premultiply(kh.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)}},kh=new se;function z_(r){for(let t=r.length-1;t>=0;--t)if(r[t]>=65535)return!0;return!1}function wc(r){return document.createElementNS("http://www.w3.org/1999/xhtml",r)}function dS(){let r=wc("canvas");return r.style.display="block",r}var kg={};function pS(r){r in kg||(kg[r]=!0,console.warn(r))}var zg=new se().set(.8224621,.177538,0,.0331941,.9668058,0,.0170827,.0723974,.9105199),Vg=new se().set(1.2249401,-.2249404,0,-.0420569,1.0420571,0,-.0196376,-.0786361,1.0982735),ql={[Or]:{transfer:yc,primaries:Sc,toReference:r=>r,fromReference:r=>r},[Qn]:{transfer:Te,primaries:Sc,toReference:r=>r.convertSRGBToLinear(),fromReference:r=>r.convertLinearToSRGB()},[Yc]:{transfer:yc,primaries:Mc,toReference:r=>r.applyMatrix3(Vg),fromReference:r=>r.applyMatrix3(zg)},[$f]:{transfer:Te,primaries:Mc,toReference:r=>r.convertSRGBToLinear().applyMatrix3(Vg),fromReference:r=>r.applyMatrix3(zg).convertLinearToSRGB()}},mS=new Set([Or,Yc]),Se={enabled:!0,_workingColorSpace:Or,get workingColorSpace(){return this._workingColorSpace},set workingColorSpace(r){if(!mS.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=ql[t].toReference,i=ql[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 ql[r].primaries},getTransfer:function(r){return r===Ar?yc:ql[r].transfer}};function Do(r){return r<.04045?r*.0773993808:Math.pow(r*.9478672986+.0521327014,2.4)}function zh(r){return r<.0031308?r*12.92:1.055*Math.pow(r,.41666)-.055}var lo,xf=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{lo===void 0&&(lo=wc("canvas")),lo.width=t.width,lo.height=t.height;let n=lo.getContext("2d");t instanceof ImageData?n.putImageData(t,0,0):n.drawImage(t,0,0,t.width,t.height),e=lo}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=wc("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 o=0;o<s.length;o++)s[o]=Do(s[o]/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(Do(e[n]/255)*255):e[n]=Do(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}},gS=0,Ec=class{constructor(t=null){this.isSource=!0,Object.defineProperty(this,"id",{value:gS++}),this.uuid=Ba(),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 o=0,a=i.length;o<a;o++)i[o].isDataTexture?s.push(Vh(i[o].image)):s.push(Vh(i[o]))}else s=Vh(i);n.url=s}return e||(t.images[this.uuid]=n),n}};function Vh(r){return typeof HTMLImageElement<"u"&&r instanceof HTMLImageElement||typeof HTMLCanvasElement<"u"&&r instanceof HTMLCanvasElement||typeof ImageBitmap<"u"&&r instanceof ImageBitmap?xf.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 _S=0,ii=class r extends Nr{constructor(t=r.DEFAULT_IMAGE,e=r.DEFAULT_MAPPING,n=Es,i=Es,s=gi,o=Ts,a=Fi,l=Fr,c=r.DEFAULT_ANISOTROPY,h=Ar){super(),this.isTexture=!0,Object.defineProperty(this,"id",{value:_S++}),this.uuid=Ba(),this.name="",this.source=new Ec(t),this.mipmaps=[],this.mapping=e,this.channel=0,this.wrapS=n,this.wrapT=i,this.magFilter=s,this.minFilter=o,this.anisotropy=c,this.format=a,this.internalFormat=null,this.type=l,this.offset=new _e(0,0),this.repeat=new _e(1,1),this.center=new _e(0,0),this.rotation=0,this.matrixAutoUpdate=!0,this.matrix=new se,this.generateMipmaps=!0,this.premultiplyAlpha=!1,this.flipY=!0,this.unpackAlignment=4,this.colorSpace=h,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!==P_)return t;if(t.applyMatrix3(this.matrix),t.x<0||t.x>1)switch(this.wrapS){case mf:t.x=t.x-Math.floor(t.x);break;case Es:t.x=t.x<0?0:1;break;case gf: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 mf:t.y=t.y-Math.floor(t.y);break;case Es:t.y=t.y<0?0:1;break;case gf: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++}};ii.DEFAULT_IMAGE=null;ii.DEFAULT_MAPPING=P_;ii.DEFAULT_ANISOTROPY=1;var Qe=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,o=t.elements;return this.x=o[0]*e+o[4]*n+o[8]*i+o[12]*s,this.y=o[1]*e+o[5]*n+o[9]*i+o[13]*s,this.z=o[2]*e+o[6]*n+o[10]*i+o[14]*s,this.w=o[3]*e+o[7]*n+o[11]*i+o[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],h=l[4],f=l[8],d=l[1],u=l[5],_=l[9],p=l[2],m=l[6],g=l[10];if(Math.abs(h-d)<.01&&Math.abs(f-p)<.01&&Math.abs(_-m)<.01){if(Math.abs(h+d)<.1&&Math.abs(f+p)<.1&&Math.abs(_+m)<.1&&Math.abs(c+u+g-3)<.1)return this.set(1,0,0,0),this;e=Math.PI;let y=(c+1)/2,S=(u+1)/2,D=(g+1)/2,T=(h+d)/4,w=(f+p)/4,P=(_+m)/4;return y>S&&y>D?y<.01?(n=0,i=.707106781,s=.707106781):(n=Math.sqrt(y),i=T/n,s=w/n):S>D?S<.01?(n=.707106781,i=0,s=.707106781):(i=Math.sqrt(S),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 b=Math.sqrt((m-_)*(m-_)+(f-p)*(f-p)+(d-h)*(d-h));return Math.abs(b)<.001&&(b=1),this.x=(m-_)/b,this.y=(f-p)/b,this.z=(d-h)/b,this.w=Math.acos((c+u+g-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}},vf=class extends Nr{constructor(t=1,e=1,n={}){super(),this.isRenderTarget=!0,this.width=t,this.height=e,this.depth=1,this.scissor=new Qe(0,0,t,e),this.scissorTest=!1,this.viewport=new Qe(0,0,t,e);let i={width:t,height:e,depth:1};n=Object.assign({generateMipmaps:!1,internalFormat:null,minFilter:gi,depthBuffer:!0,stencilBuffer:!1,resolveDepthBuffer:!0,resolveStencilBuffer:!0,depthTexture:null,samples:0,count:1},n);let s=new ii(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 o=n.count;for(let a=0;a<o;a++)this.textures[a]=s.clone(),this.textures[a].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 Ec(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"})}},nr=class extends vf{constructor(t=1,e=1,n={}){super(t,e,n),this.isWebGLRenderTarget=!0}},Tc=class extends ii{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=ti,this.minFilter=ti,this.wrapR=Es,this.generateMipmaps=!1,this.flipY=!1,this.unpackAlignment=1}};var yf=class extends ii{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=ti,this.minFilter=ti,this.wrapR=Es,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,o,a){let l=n[i+0],c=n[i+1],h=n[i+2],f=n[i+3],d=s[o+0],u=s[o+1],_=s[o+2],p=s[o+3];if(a===0){t[e+0]=l,t[e+1]=c,t[e+2]=h,t[e+3]=f;return}if(a===1){t[e+0]=d,t[e+1]=u,t[e+2]=_,t[e+3]=p;return}if(f!==p||l!==d||c!==u||h!==_){let m=1-a,g=l*d+c*u+h*_+f*p,b=g>=0?1:-1,y=1-g*g;if(y>Number.EPSILON){let D=Math.sqrt(y),T=Math.atan2(D,g*b);m=Math.sin(m*T)/D,a=Math.sin(a*T)/D}let S=a*b;if(l=l*m+d*S,c=c*m+u*S,h=h*m+_*S,f=f*m+p*S,m===1-a){let D=1/Math.sqrt(l*l+c*c+h*h+f*f);l*=D,c*=D,h*=D,f*=D}}t[e]=l,t[e+1]=c,t[e+2]=h,t[e+3]=f}static multiplyQuaternionsFlat(t,e,n,i,s,o){let a=n[i],l=n[i+1],c=n[i+2],h=n[i+3],f=s[o],d=s[o+1],u=s[o+2],_=s[o+3];return t[e]=a*_+h*f+l*u-c*d,t[e+1]=l*_+h*d+c*f-a*u,t[e+2]=c*_+h*u+a*d-l*f,t[e+3]=h*_-a*f-l*d-c*u,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,o=t._order,a=Math.cos,l=Math.sin,c=a(n/2),h=a(i/2),f=a(s/2),d=l(n/2),u=l(i/2),_=l(s/2);switch(o){case"XYZ":this._x=d*h*f+c*u*_,this._y=c*u*f-d*h*_,this._z=c*h*_+d*u*f,this._w=c*h*f-d*u*_;break;case"YXZ":this._x=d*h*f+c*u*_,this._y=c*u*f-d*h*_,this._z=c*h*_-d*u*f,this._w=c*h*f+d*u*_;break;case"ZXY":this._x=d*h*f-c*u*_,this._y=c*u*f+d*h*_,this._z=c*h*_+d*u*f,this._w=c*h*f-d*u*_;break;case"ZYX":this._x=d*h*f-c*u*_,this._y=c*u*f+d*h*_,this._z=c*h*_-d*u*f,this._w=c*h*f+d*u*_;break;case"YZX":this._x=d*h*f+c*u*_,this._y=c*u*f+d*h*_,this._z=c*h*_-d*u*f,this._w=c*h*f-d*u*_;break;case"XZY":this._x=d*h*f-c*u*_,this._y=c*u*f-d*h*_,this._z=c*h*_+d*u*f,this._w=c*h*f+d*u*_;break;default:console.warn("THREE.Quaternion: .setFromEuler() encountered an unknown order: "+o)}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],o=e[1],a=e[5],l=e[9],c=e[2],h=e[6],f=e[10],d=n+a+f;if(d>0){let u=.5/Math.sqrt(d+1);this._w=.25/u,this._x=(h-l)*u,this._y=(s-c)*u,this._z=(o-i)*u}else if(n>a&&n>f){let u=2*Math.sqrt(1+n-a-f);this._w=(h-l)/u,this._x=.25*u,this._y=(i+o)/u,this._z=(s+c)/u}else if(a>f){let u=2*Math.sqrt(1+a-n-f);this._w=(s-c)/u,this._x=(i+o)/u,this._y=.25*u,this._z=(l+h)/u}else{let u=2*Math.sqrt(1+f-n-a);this._w=(o-i)/u,this._x=(s+c)/u,this._y=(l+h)/u,this._z=.25*u}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(Fn(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,o=t._w,a=e._x,l=e._y,c=e._z,h=e._w;return this._x=n*h+o*a+i*c-s*l,this._y=i*h+o*l+s*a-n*c,this._z=s*h+o*c+n*l-i*a,this._w=o*h-n*a-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,o=this._w,a=o*t._w+n*t._x+i*t._y+s*t._z;if(a<0?(this._w=-t._w,this._x=-t._x,this._y=-t._y,this._z=-t._z,a=-a):this.copy(t),a>=1)return this._w=o,this._x=n,this._y=i,this._z=s,this;let l=1-a*a;if(l<=Number.EPSILON){let u=1-e;return this._w=u*o+e*this._w,this._x=u*n+e*this._x,this._y=u*i+e*this._y,this._z=u*s+e*this._z,this.normalize(),this}let c=Math.sqrt(l),h=Math.atan2(c,a),f=Math.sin((1-e)*h)/c,d=Math.sin(e*h)/c;return this._w=o*f+this._w*d,this._x=n*f+this._x*d,this._y=i*f+this._y*d,this._z=s*f+this._z*d,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}},nt=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(Hg.setFromEuler(t))}applyAxisAngle(t,e){return this.applyQuaternion(Hg.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,o=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])*o,this.y=(s[1]*e+s[5]*n+s[9]*i+s[13])*o,this.z=(s[2]*e+s[6]*n+s[10]*i+s[14])*o,this}applyQuaternion(t){let e=this.x,n=this.y,i=this.z,s=t.x,o=t.y,a=t.z,l=t.w,c=2*(o*i-a*n),h=2*(a*e-s*i),f=2*(s*n-o*e);return this.x=e+l*c+o*f-a*h,this.y=n+l*h+a*c-s*f,this.z=i+l*f+s*h-o*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,o=e.x,a=e.y,l=e.z;return this.x=i*l-s*a,this.y=s*o-n*l,this.z=n*a-i*o,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 Hh.copy(this).projectOnVector(t),this.sub(Hh)}reflect(t){return this.sub(Hh.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(Fn(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}},Hh=new nt,Hg=new Ur,As=class{constructor(t=new nt(1/0,1/0,1/0),e=new nt(-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(di.fromArray(t,e));return this}setFromBufferAttribute(t){this.makeEmpty();for(let e=0,n=t.count;e<n;e++)this.expandByPoint(di.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=di.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 o=0,a=s.count;o<a;o++)t.isMesh===!0?t.getVertexPosition(o,di):di.fromBufferAttribute(s,o),di.applyMatrix4(t.matrixWorld),this.expandByPoint(di);else t.boundingBox!==void 0?(t.boundingBox===null&&t.computeBoundingBox(),Zl.copy(t.boundingBox)):(n.boundingBox===null&&n.computeBoundingBox(),Zl.copy(n.boundingBox)),Zl.applyMatrix4(t.matrixWorld),this.union(Zl)}let i=t.children;for(let s=0,o=i.length;s<o;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,di),di.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(Aa),Jl.subVectors(this.max,Aa),co.subVectors(t.a,Aa),uo.subVectors(t.b,Aa),ho.subVectors(t.c,Aa),Sr.subVectors(uo,co),Mr.subVectors(ho,uo),gs.subVectors(co,ho);let e=[0,-Sr.z,Sr.y,0,-Mr.z,Mr.y,0,-gs.z,gs.y,Sr.z,0,-Sr.x,Mr.z,0,-Mr.x,gs.z,0,-gs.x,-Sr.y,Sr.x,0,-Mr.y,Mr.x,0,-gs.y,gs.x,0];return!Gh(e,co,uo,ho,Jl)||(e=[1,0,0,0,1,0,0,0,1],!Gh(e,co,uo,ho,Jl))?!1:($l.crossVectors(Sr,Mr),e=[$l.x,$l.y,$l.z],Gh(e,co,uo,ho,Jl))}clampPoint(t,e){return e.copy(t).clamp(this.min,this.max)}distanceToPoint(t){return this.clampPoint(t,di).distanceTo(t)}getBoundingSphere(t){return this.isEmpty()?t.makeEmpty():(this.getCenter(t.center),t.radius=this.getSize(di).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:(qi[0].set(this.min.x,this.min.y,this.min.z).applyMatrix4(t),qi[1].set(this.min.x,this.min.y,this.max.z).applyMatrix4(t),qi[2].set(this.min.x,this.max.y,this.min.z).applyMatrix4(t),qi[3].set(this.min.x,this.max.y,this.max.z).applyMatrix4(t),qi[4].set(this.max.x,this.min.y,this.min.z).applyMatrix4(t),qi[5].set(this.max.x,this.min.y,this.max.z).applyMatrix4(t),qi[6].set(this.max.x,this.max.y,this.min.z).applyMatrix4(t),qi[7].set(this.max.x,this.max.y,this.max.z).applyMatrix4(t),this.setFromPoints(qi),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)}},qi=[new nt,new nt,new nt,new nt,new nt,new nt,new nt,new nt],di=new nt,Zl=new As,co=new nt,uo=new nt,ho=new nt,Sr=new nt,Mr=new nt,gs=new nt,Aa=new nt,Jl=new nt,$l=new nt,_s=new nt;function Gh(r,t,e,n,i){for(let s=0,o=r.length-3;s<=o;s+=3){_s.fromArray(r,s);let a=i.x*Math.abs(_s.x)+i.y*Math.abs(_s.y)+i.z*Math.abs(_s.z),l=t.dot(_s),c=e.dot(_s),h=n.dot(_s);if(Math.max(-Math.max(l,c,h),Math.min(l,c,h))>a)return!1}return!0}var xS=new As,Da=new nt,Wh=new nt,Lo=class{constructor(t=new nt,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):xS.setFromPoints(t).getCenter(n);let i=0;for(let s=0,o=t.length;s<o;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;Da.subVectors(t,this.center);let e=Da.lengthSq();if(e>this.radius*this.radius){let n=Math.sqrt(e),i=(n-this.radius)*.5;this.center.addScaledVector(Da,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):(Wh.subVectors(t.center,this.center).setLength(t.radius),this.expandByPoint(Da.copy(t.center).add(Wh)),this.expandByPoint(Da.copy(t.center).sub(Wh))),this)}equals(t){return t.center.equals(this.center)&&t.radius===this.radius}clone(){return new this.constructor().copy(this)}},Zi=new nt,Xh=new nt,Kl=new nt,br=new nt,Yh=new nt,jl=new nt,qh=new nt,Ac=class{constructor(t=new nt,e=new nt(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,Zi)),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=Zi.subVectors(t,this.origin).dot(this.direction);return e<0?this.origin.distanceToSquared(t):(Zi.copy(this.origin).addScaledVector(this.direction,e),Zi.distanceToSquared(t))}distanceSqToSegment(t,e,n,i){Xh.copy(t).add(e).multiplyScalar(.5),Kl.copy(e).sub(t).normalize(),br.copy(this.origin).sub(Xh);let s=t.distanceTo(e)*.5,o=-this.direction.dot(Kl),a=br.dot(this.direction),l=-br.dot(Kl),c=br.lengthSq(),h=Math.abs(1-o*o),f,d,u,_;if(h>0)if(f=o*l-a,d=o*a-l,_=s*h,f>=0)if(d>=-_)if(d<=_){let p=1/h;f*=p,d*=p,u=f*(f+o*d+2*a)+d*(o*f+d+2*l)+c}else d=s,f=Math.max(0,-(o*d+a)),u=-f*f+d*(d+2*l)+c;else d=-s,f=Math.max(0,-(o*d+a)),u=-f*f+d*(d+2*l)+c;else d<=-_?(f=Math.max(0,-(-o*s+a)),d=f>0?-s:Math.min(Math.max(-s,-l),s),u=-f*f+d*(d+2*l)+c):d<=_?(f=0,d=Math.min(Math.max(-s,-l),s),u=d*(d+2*l)+c):(f=Math.max(0,-(o*s+a)),d=f>0?s:Math.min(Math.max(-s,-l),s),u=-f*f+d*(d+2*l)+c);else d=o>0?-s:s,f=Math.max(0,-(o*d+a)),u=-f*f+d*(d+2*l)+c;return n&&n.copy(this.origin).addScaledVector(this.direction,f),i&&i.copy(Xh).addScaledVector(Kl,d),u}intersectSphere(t,e){Zi.subVectors(t.center,this.origin);let n=Zi.dot(this.direction),i=Zi.dot(Zi)-n*n,s=t.radius*t.radius;if(i>s)return null;let o=Math.sqrt(s-i),a=n-o,l=n+o;return l<0?null:a<0?this.at(l,e):this.at(a,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,o,a,l,c=1/this.direction.x,h=1/this.direction.y,f=1/this.direction.z,d=this.origin;return c>=0?(n=(t.min.x-d.x)*c,i=(t.max.x-d.x)*c):(n=(t.max.x-d.x)*c,i=(t.min.x-d.x)*c),h>=0?(s=(t.min.y-d.y)*h,o=(t.max.y-d.y)*h):(s=(t.max.y-d.y)*h,o=(t.min.y-d.y)*h),n>o||s>i||((s>n||isNaN(n))&&(n=s),(o<i||isNaN(i))&&(i=o),f>=0?(a=(t.min.z-d.z)*f,l=(t.max.z-d.z)*f):(a=(t.max.z-d.z)*f,l=(t.min.z-d.z)*f),n>l||a>i)||((a>n||n!==n)&&(n=a),(l<i||i!==i)&&(i=l),i<0)?null:this.at(n>=0?n:i,e)}intersectsBox(t){return this.intersectBox(t,Zi)!==null}intersectTriangle(t,e,n,i,s){Yh.subVectors(e,t),jl.subVectors(n,t),qh.crossVectors(Yh,jl);let o=this.direction.dot(qh),a;if(o>0){if(i)return null;a=1}else if(o<0)a=-1,o=-o;else return null;br.subVectors(this.origin,t);let l=a*this.direction.dot(jl.crossVectors(br,jl));if(l<0)return null;let c=a*this.direction.dot(Yh.cross(br));if(c<0||l+c>o)return null;let h=-a*br.dot(qh);return h<0?null:this.at(h/o,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)}},Ue=class r{constructor(t,e,n,i,s,o,a,l,c,h,f,d,u,_,p,m){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,o,a,l,c,h,f,d,u,_,p,m)}set(t,e,n,i,s,o,a,l,c,h,f,d,u,_,p,m){let g=this.elements;return g[0]=t,g[4]=e,g[8]=n,g[12]=i,g[1]=s,g[5]=o,g[9]=a,g[13]=l,g[2]=c,g[6]=h,g[10]=f,g[14]=d,g[3]=u,g[7]=_,g[11]=p,g[15]=m,this}identity(){return this.set(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1),this}clone(){return new 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/fo.setFromMatrixColumn(t,0).length(),s=1/fo.setFromMatrixColumn(t,1).length(),o=1/fo.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]*o,e[9]=n[9]*o,e[10]=n[10]*o,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,o=Math.cos(n),a=Math.sin(n),l=Math.cos(i),c=Math.sin(i),h=Math.cos(s),f=Math.sin(s);if(t.order==="XYZ"){let d=o*h,u=o*f,_=a*h,p=a*f;e[0]=l*h,e[4]=-l*f,e[8]=c,e[1]=u+_*c,e[5]=d-p*c,e[9]=-a*l,e[2]=p-d*c,e[6]=_+u*c,e[10]=o*l}else if(t.order==="YXZ"){let d=l*h,u=l*f,_=c*h,p=c*f;e[0]=d+p*a,e[4]=_*a-u,e[8]=o*c,e[1]=o*f,e[5]=o*h,e[9]=-a,e[2]=u*a-_,e[6]=p+d*a,e[10]=o*l}else if(t.order==="ZXY"){let d=l*h,u=l*f,_=c*h,p=c*f;e[0]=d-p*a,e[4]=-o*f,e[8]=_+u*a,e[1]=u+_*a,e[5]=o*h,e[9]=p-d*a,e[2]=-o*c,e[6]=a,e[10]=o*l}else if(t.order==="ZYX"){let d=o*h,u=o*f,_=a*h,p=a*f;e[0]=l*h,e[4]=_*c-u,e[8]=d*c+p,e[1]=l*f,e[5]=p*c+d,e[9]=u*c-_,e[2]=-c,e[6]=a*l,e[10]=o*l}else if(t.order==="YZX"){let d=o*l,u=o*c,_=a*l,p=a*c;e[0]=l*h,e[4]=p-d*f,e[8]=_*f+u,e[1]=f,e[5]=o*h,e[9]=-a*h,e[2]=-c*h,e[6]=u*f+_,e[10]=d-p*f}else if(t.order==="XZY"){let d=o*l,u=o*c,_=a*l,p=a*c;e[0]=l*h,e[4]=-f,e[8]=c*h,e[1]=d*f+p,e[5]=o*h,e[9]=u*f-_,e[2]=_*f-u,e[6]=a*h,e[10]=p*f+d}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(vS,t,yS)}lookAt(t,e,n){let i=this.elements;return Vn.subVectors(t,e),Vn.lengthSq()===0&&(Vn.z=1),Vn.normalize(),wr.crossVectors(n,Vn),wr.lengthSq()===0&&(Math.abs(n.z)===1?Vn.x+=1e-4:Vn.z+=1e-4,Vn.normalize(),wr.crossVectors(n,Vn)),wr.normalize(),Ql.crossVectors(Vn,wr),i[0]=wr.x,i[4]=Ql.x,i[8]=Vn.x,i[1]=wr.y,i[5]=Ql.y,i[9]=Vn.y,i[2]=wr.z,i[6]=Ql.z,i[10]=Vn.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,o=n[0],a=n[4],l=n[8],c=n[12],h=n[1],f=n[5],d=n[9],u=n[13],_=n[2],p=n[6],m=n[10],g=n[14],b=n[3],y=n[7],S=n[11],D=n[15],T=i[0],w=i[4],P=i[8],M=i[12],v=i[1],I=i[5],N=i[9],C=i[13],V=i[2],$=i[6],W=i[10],Z=i[14],z=i[3],U=i[7],R=i[11],at=i[15];return s[0]=o*T+a*v+l*V+c*z,s[4]=o*w+a*I+l*$+c*U,s[8]=o*P+a*N+l*W+c*R,s[12]=o*M+a*C+l*Z+c*at,s[1]=h*T+f*v+d*V+u*z,s[5]=h*w+f*I+d*$+u*U,s[9]=h*P+f*N+d*W+u*R,s[13]=h*M+f*C+d*Z+u*at,s[2]=_*T+p*v+m*V+g*z,s[6]=_*w+p*I+m*$+g*U,s[10]=_*P+p*N+m*W+g*R,s[14]=_*M+p*C+m*Z+g*at,s[3]=b*T+y*v+S*V+D*z,s[7]=b*w+y*I+S*$+D*U,s[11]=b*P+y*N+S*W+D*R,s[15]=b*M+y*C+S*Z+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],o=t[1],a=t[5],l=t[9],c=t[13],h=t[2],f=t[6],d=t[10],u=t[14],_=t[3],p=t[7],m=t[11],g=t[15];return _*(+s*l*f-i*c*f-s*a*d+n*c*d+i*a*u-n*l*u)+p*(+e*l*u-e*c*d+s*o*d-i*o*u+i*c*h-s*l*h)+m*(+e*c*f-e*a*u-s*o*f+n*o*u+s*a*h-n*c*h)+g*(-i*a*h-e*l*f+e*a*d+i*o*f-n*o*d+n*l*h)}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],o=t[4],a=t[5],l=t[6],c=t[7],h=t[8],f=t[9],d=t[10],u=t[11],_=t[12],p=t[13],m=t[14],g=t[15],b=f*m*c-p*d*c+p*l*u-a*m*u-f*l*g+a*d*g,y=_*d*c-h*m*c-_*l*u+o*m*u+h*l*g-o*d*g,S=h*p*c-_*f*c+_*a*u-o*p*u-h*a*g+o*f*g,D=_*f*l-h*p*l-_*a*d+o*p*d+h*a*m-o*f*m,T=e*b+n*y+i*S+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]=b*w,t[1]=(p*d*s-f*m*s-p*i*u+n*m*u+f*i*g-n*d*g)*w,t[2]=(a*m*s-p*l*s+p*i*c-n*m*c-a*i*g+n*l*g)*w,t[3]=(f*l*s-a*d*s-f*i*c+n*d*c+a*i*u-n*l*u)*w,t[4]=y*w,t[5]=(h*m*s-_*d*s+_*i*u-e*m*u-h*i*g+e*d*g)*w,t[6]=(_*l*s-o*m*s-_*i*c+e*m*c+o*i*g-e*l*g)*w,t[7]=(o*d*s-h*l*s+h*i*c-e*d*c-o*i*u+e*l*u)*w,t[8]=S*w,t[9]=(_*f*s-h*p*s-_*n*u+e*p*u+h*n*g-e*f*g)*w,t[10]=(o*p*s-_*a*s+_*n*c-e*p*c-o*n*g+e*a*g)*w,t[11]=(h*a*s-o*f*s-h*n*c+e*f*c+o*n*u-e*a*u)*w,t[12]=D*w,t[13]=(h*p*i-_*f*i+_*n*d-e*p*d-h*n*m+e*f*m)*w,t[14]=(_*a*i-o*p*i-_*n*l+e*p*l+o*n*m-e*a*m)*w,t[15]=(o*f*i-h*a*i+h*n*l-e*f*l-o*n*d+e*a*d)*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,o=t.x,a=t.y,l=t.z,c=s*o,h=s*a;return this.set(c*o+n,c*a-i*l,c*l+i*a,0,c*a+i*l,h*a+n,h*l-i*o,0,c*l-i*a,h*l+i*o,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,o){return this.set(1,n,s,0,t,1,o,0,e,i,1,0,0,0,0,1),this}compose(t,e,n){let i=this.elements,s=e._x,o=e._y,a=e._z,l=e._w,c=s+s,h=o+o,f=a+a,d=s*c,u=s*h,_=s*f,p=o*h,m=o*f,g=a*f,b=l*c,y=l*h,S=l*f,D=n.x,T=n.y,w=n.z;return i[0]=(1-(p+g))*D,i[1]=(u+S)*D,i[2]=(_-y)*D,i[3]=0,i[4]=(u-S)*T,i[5]=(1-(d+g))*T,i[6]=(m+b)*T,i[7]=0,i[8]=(_+y)*w,i[9]=(m-b)*w,i[10]=(1-(d+p))*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=fo.set(i[0],i[1],i[2]).length(),o=fo.set(i[4],i[5],i[6]).length(),a=fo.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],pi.copy(this);let c=1/s,h=1/o,f=1/a;return pi.elements[0]*=c,pi.elements[1]*=c,pi.elements[2]*=c,pi.elements[4]*=h,pi.elements[5]*=h,pi.elements[6]*=h,pi.elements[8]*=f,pi.elements[9]*=f,pi.elements[10]*=f,e.setFromRotationMatrix(pi),n.x=s,n.y=o,n.z=a,this}makePerspective(t,e,n,i,s,o,a=er){let l=this.elements,c=2*s/(e-t),h=2*s/(n-i),f=(e+t)/(e-t),d=(n+i)/(n-i),u,_;if(a===er)u=-(o+s)/(o-s),_=-2*o*s/(o-s);else if(a===bc)u=-o/(o-s),_=-o*s/(o-s);else throw new Error("THREE.Matrix4.makePerspective(): Invalid coordinate system: "+a);return l[0]=c,l[4]=0,l[8]=f,l[12]=0,l[1]=0,l[5]=h,l[9]=d,l[13]=0,l[2]=0,l[6]=0,l[10]=u,l[14]=_,l[3]=0,l[7]=0,l[11]=-1,l[15]=0,this}makeOrthographic(t,e,n,i,s,o,a=er){let l=this.elements,c=1/(e-t),h=1/(n-i),f=1/(o-s),d=(e+t)*c,u=(n+i)*h,_,p;if(a===er)_=(o+s)*f,p=-2*f;else if(a===bc)_=s*f,p=-1*f;else throw new Error("THREE.Matrix4.makeOrthographic(): Invalid coordinate system: "+a);return l[0]=2*c,l[4]=0,l[8]=0,l[12]=-d,l[1]=0,l[5]=2*h,l[9]=0,l[13]=-u,l[2]=0,l[6]=0,l[10]=p,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}},fo=new nt,pi=new Ue,vS=new nt(0,0,0),yS=new nt(1,1,1),wr=new nt,Ql=new nt,Vn=new nt,Gg=new Ue,Wg=new Ur,ir=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],o=i[4],a=i[8],l=i[1],c=i[5],h=i[9],f=i[2],d=i[6],u=i[10];switch(e){case"XYZ":this._y=Math.asin(Fn(a,-1,1)),Math.abs(a)<.9999999?(this._x=Math.atan2(-h,u),this._z=Math.atan2(-o,s)):(this._x=Math.atan2(d,c),this._z=0);break;case"YXZ":this._x=Math.asin(-Fn(h,-1,1)),Math.abs(h)<.9999999?(this._y=Math.atan2(a,u),this._z=Math.atan2(l,c)):(this._y=Math.atan2(-f,s),this._z=0);break;case"ZXY":this._x=Math.asin(Fn(d,-1,1)),Math.abs(d)<.9999999?(this._y=Math.atan2(-f,u),this._z=Math.atan2(-o,c)):(this._y=0,this._z=Math.atan2(l,s));break;case"ZYX":this._y=Math.asin(-Fn(f,-1,1)),Math.abs(f)<.9999999?(this._x=Math.atan2(d,u),this._z=Math.atan2(l,s)):(this._x=0,this._z=Math.atan2(-o,c));break;case"YZX":this._z=Math.asin(Fn(l,-1,1)),Math.abs(l)<.9999999?(this._x=Math.atan2(-h,c),this._y=Math.atan2(-f,s)):(this._x=0,this._y=Math.atan2(a,u));break;case"XZY":this._z=Math.asin(-Fn(o,-1,1)),Math.abs(o)<.9999999?(this._x=Math.atan2(d,c),this._y=Math.atan2(a,s)):(this._x=Math.atan2(-h,u),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 Gg.makeRotationFromQuaternion(t),this.setFromRotationMatrix(Gg,e,n)}setFromVector3(t,e=this._order){return this.set(t.x,t.y,t.z,e)}reorder(t){return Wg.setFromEuler(this),this.setFromQuaternion(Wg,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}};ir.DEFAULT_ORDER="XYZ";var Dc=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}},SS=0,Xg=new nt,po=new Ur,Ji=new Ue,tc=new nt,Ca=new nt,MS=new nt,bS=new Ur,Yg=new nt(1,0,0),qg=new nt(0,1,0),Zg=new nt(0,0,1),Jg={type:"added"},wS={type:"removed"},mo={type:"childadded",child:null},Zh={type:"childremoved",child:null},mn=class r extends Nr{constructor(){super(),this.isObject3D=!0,Object.defineProperty(this,"id",{value:SS++}),this.uuid=Ba(),this.name="",this.type="Object3D",this.parent=null,this.children=[],this.up=r.DEFAULT_UP.clone();let t=new nt,e=new ir,n=new Ur,i=new nt(1,1,1);function s(){n.setFromEuler(e,!1)}function o(){e.setFromQuaternion(n,void 0,!1)}e._onChange(s),n._onChange(o),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 Ue},normalMatrix:{value:new se}}),this.matrix=new Ue,this.matrixWorld=new Ue,this.matrixAutoUpdate=r.DEFAULT_MATRIX_AUTO_UPDATE,this.matrixWorldAutoUpdate=r.DEFAULT_MATRIX_WORLD_AUTO_UPDATE,this.matrixWorldNeedsUpdate=!1,this.layers=new Dc,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 po.setFromAxisAngle(t,e),this.quaternion.multiply(po),this}rotateOnWorldAxis(t,e){return po.setFromAxisAngle(t,e),this.quaternion.premultiply(po),this}rotateX(t){return this.rotateOnAxis(Yg,t)}rotateY(t){return this.rotateOnAxis(qg,t)}rotateZ(t){return this.rotateOnAxis(Zg,t)}translateOnAxis(t,e){return Xg.copy(t).applyQuaternion(this.quaternion),this.position.add(Xg.multiplyScalar(e)),this}translateX(t){return this.translateOnAxis(Yg,t)}translateY(t){return this.translateOnAxis(qg,t)}translateZ(t){return this.translateOnAxis(Zg,t)}localToWorld(t){return this.updateWorldMatrix(!0,!1),t.applyMatrix4(this.matrixWorld)}worldToLocal(t){return this.updateWorldMatrix(!0,!1),t.applyMatrix4(Ji.copy(this.matrixWorld).invert())}lookAt(t,e,n){t.isVector3?tc.copy(t):tc.set(t,e,n);let i=this.parent;this.updateWorldMatrix(!0,!1),Ca.setFromMatrixPosition(this.matrixWorld),this.isCamera||this.isLight?Ji.lookAt(Ca,tc,this.up):Ji.lookAt(tc,Ca,this.up),this.quaternion.setFromRotationMatrix(Ji),i&&(Ji.extractRotation(i.matrixWorld),po.setFromRotationMatrix(Ji),this.quaternion.premultiply(po.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(Jg),mo.child=t,this.dispatchEvent(mo),mo.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(wS),Zh.child=t,this.dispatchEvent(Zh),Zh.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),Ji.copy(this.matrixWorld).invert(),t.parent!==null&&(t.parent.updateWorldMatrix(!0,!1),Ji.multiply(t.parent.matrixWorld)),t.applyMatrix4(Ji),t.removeFromParent(),t.parent=this,this.children.push(t),t.updateWorldMatrix(!1,!0),t.dispatchEvent(Jg),mo.child=t,this.dispatchEvent(mo),mo.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 o=this.children[n].getObjectByProperty(t,e);if(o!==void 0)return o}}getObjectsByProperty(t,e,n=[]){this[t]===e&&n.push(this);let i=this.children;for(let s=0,o=i.length;s<o;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(Ca,t,MS),t}getWorldScale(t){return this.updateWorldMatrix(!0,!1),this.matrixWorld.decompose(Ca,bS,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,o=i.length;s<o;s++){let a=i[s];a.matrixWorldAutoUpdate===!0&&a.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(a=>({boxInitialized:a.boxInitialized,boxMin:a.box.min.toArray(),boxMax:a.box.max.toArray(),sphereInitialized:a.sphereInitialized,sphereRadius:a.sphere.radius,sphereCenter:a.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(a,l){return a[l.uuid]===void 0&&(a[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 a=this.geometry.parameters;if(a!==void 0&&a.shapes!==void 0){let l=a.shapes;if(Array.isArray(l))for(let c=0,h=l.length;c<h;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 a=[];for(let l=0,c=this.material.length;l<c;l++)a.push(s(t.materials,this.material[l]));i.material=a}else i.material=s(t.materials,this.material);if(this.children.length>0){i.children=[];for(let a=0;a<this.children.length;a++)i.children.push(this.children[a].toJSON(t).object)}if(this.animations.length>0){i.animations=[];for(let a=0;a<this.animations.length;a++){let l=this.animations[a];i.animations.push(s(t.animations,l))}}if(e){let a=o(t.geometries),l=o(t.materials),c=o(t.textures),h=o(t.images),f=o(t.shapes),d=o(t.skeletons),u=o(t.animations),_=o(t.nodes);a.length>0&&(n.geometries=a),l.length>0&&(n.materials=l),c.length>0&&(n.textures=c),h.length>0&&(n.images=h),f.length>0&&(n.shapes=f),d.length>0&&(n.skeletons=d),u.length>0&&(n.animations=u),_.length>0&&(n.nodes=_)}return n.object=i,n;function o(a){let l=[];for(let c in a){let h=a[c];delete h.metadata,l.push(h)}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}};mn.DEFAULT_UP=new nt(0,1,0);mn.DEFAULT_MATRIX_AUTO_UPDATE=!0;mn.DEFAULT_MATRIX_WORLD_AUTO_UPDATE=!0;var mi=new nt,$i=new nt,Jh=new nt,Ki=new nt,go=new nt,_o=new nt,$g=new nt,$h=new nt,Kh=new nt,jh=new nt,Eo=class r{constructor(t=new nt,e=new nt,n=new nt){this.a=t,this.b=e,this.c=n}static getNormal(t,e,n,i){i.subVectors(n,e),mi.subVectors(t,e),i.cross(mi);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){mi.subVectors(i,e),$i.subVectors(n,e),Jh.subVectors(t,e);let o=mi.dot(mi),a=mi.dot($i),l=mi.dot(Jh),c=$i.dot($i),h=$i.dot(Jh),f=o*c-a*a;if(f===0)return s.set(0,0,0),null;let d=1/f,u=(c*l-a*h)*d,_=(o*h-a*l)*d;return s.set(1-u-_,_,u)}static containsPoint(t,e,n,i){return this.getBarycoord(t,e,n,i,Ki)===null?!1:Ki.x>=0&&Ki.y>=0&&Ki.x+Ki.y<=1}static getInterpolation(t,e,n,i,s,o,a,l){return this.getBarycoord(t,e,n,i,Ki)===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,Ki.x),l.addScaledVector(o,Ki.y),l.addScaledVector(a,Ki.z),l)}static isFrontFacing(t,e,n,i){return mi.subVectors(n,e),$i.subVectors(t,e),mi.cross($i).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 mi.subVectors(this.c,this.b),$i.subVectors(this.a,this.b),mi.cross($i).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,o,a;go.subVectors(i,n),_o.subVectors(s,n),$h.subVectors(t,n);let l=go.dot($h),c=_o.dot($h);if(l<=0&&c<=0)return e.copy(n);Kh.subVectors(t,i);let h=go.dot(Kh),f=_o.dot(Kh);if(h>=0&&f<=h)return e.copy(i);let d=l*f-h*c;if(d<=0&&l>=0&&h<=0)return o=l/(l-h),e.copy(n).addScaledVector(go,o);jh.subVectors(t,s);let u=go.dot(jh),_=_o.dot(jh);if(_>=0&&u<=_)return e.copy(s);let p=u*c-l*_;if(p<=0&&c>=0&&_<=0)return a=c/(c-_),e.copy(n).addScaledVector(_o,a);let m=h*_-u*f;if(m<=0&&f-h>=0&&u-_>=0)return $g.subVectors(s,i),a=(f-h)/(f-h+(u-_)),e.copy(i).addScaledVector($g,a);let g=1/(m+p+d);return o=p*g,a=d*g,e.copy(n).addScaledVector(go,o).addScaledVector(_o,a)}equals(t){return t.a.equals(this.a)&&t.b.equals(this.b)&&t.c.equals(this.c)}},V_={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},Er={h:0,s:0,l:0},ec={h:0,s:0,l:0};function Qh(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 ge=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=Qn){return t=Math.floor(t),this.r=(t>>16&255)/255,this.g=(t>>8&255)/255,this.b=(t&255)/255,Se.toWorkingColorSpace(this,e),this}setRGB(t,e,n,i=Se.workingColorSpace){return this.r=t,this.g=e,this.b=n,Se.toWorkingColorSpace(this,i),this}setHSL(t,e,n,i=Se.workingColorSpace){if(t=fS(t,1),e=Fn(e,0,1),n=Fn(n,0,1),e===0)this.r=this.g=this.b=n;else{let s=n<=.5?n*(1+e):n+e-n*e,o=2*n-s;this.r=Qh(o,s,t+1/3),this.g=Qh(o,s,t),this.b=Qh(o,s,t-1/3)}return Se.toWorkingColorSpace(this,i),this}setStyle(t,e=Qn){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,o=i[1],a=i[2];switch(o){case"rgb":case"rgba":if(s=/^\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(a))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(a))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(a))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],o=s.length;if(o===3)return this.setRGB(parseInt(s.charAt(0),16)/15,parseInt(s.charAt(1),16)/15,parseInt(s.charAt(2),16)/15,e);if(o===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=Qn){let n=V_[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=Do(t.r),this.g=Do(t.g),this.b=Do(t.b),this}copyLinearToSRGB(t){return this.r=zh(t.r),this.g=zh(t.g),this.b=zh(t.b),this}convertSRGBToLinear(){return this.copySRGBToLinear(this),this}convertLinearToSRGB(){return this.copyLinearToSRGB(this),this}getHex(t=Qn){return Se.fromWorkingColorSpace(pn.copy(this),t),Math.round(Fn(pn.r*255,0,255))*65536+Math.round(Fn(pn.g*255,0,255))*256+Math.round(Fn(pn.b*255,0,255))}getHexString(t=Qn){return("000000"+this.getHex(t).toString(16)).slice(-6)}getHSL(t,e=Se.workingColorSpace){Se.fromWorkingColorSpace(pn.copy(this),e);let n=pn.r,i=pn.g,s=pn.b,o=Math.max(n,i,s),a=Math.min(n,i,s),l,c,h=(a+o)/2;if(a===o)l=0,c=0;else{let f=o-a;switch(c=h<=.5?f/(o+a):f/(2-o-a),o){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=h,t}getRGB(t,e=Se.workingColorSpace){return Se.fromWorkingColorSpace(pn.copy(this),e),t.r=pn.r,t.g=pn.g,t.b=pn.b,t}getStyle(t=Qn){Se.fromWorkingColorSpace(pn.copy(this),t);let e=pn.r,n=pn.g,i=pn.b;return t!==Qn?`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(Er),this.setHSL(Er.h+t,Er.s+e,Er.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(Er),t.getHSL(ec);let n=Bh(Er.h,ec.h,e),i=Bh(Er.s,ec.s,e),s=Bh(Er.l,ec.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}},pn=new ge;ge.NAMES=V_;var ES=0,Ds=class extends Nr{constructor(){super(),this.isMaterial=!0,Object.defineProperty(this,"id",{value:ES++}),this.uuid=Ba(),this.name="",this.type="Material",this.blending=Pr,this.side=Lr,this.vertexColors=!1,this.opacity=1,this.transparent=!1,this.alphaHash=!1,this.blendSrc=hf,this.blendDst=ff,this.blendEquation=bs,this.blendSrcAlpha=null,this.blendDstAlpha=null,this.blendEquationAlpha=null,this.blendColor=new ge(0,0,0),this.blendAlpha=0,this.depthFunc=_c,this.depthTest=!0,this.depthWrite=!0,this.stencilWriteMask=255,this.stencilFunc=Ug,this.stencilRef=0,this.stencilFuncMask=255,this.stencilFail=ao,this.stencilZFail=ao,this.stencilZPass=ao,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!==Pr&&(n.blending=this.blending),this.side!==Lr&&(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!==hf&&(n.blendSrc=this.blendSrc),this.blendDst!==ff&&(n.blendDst=this.blendDst),this.blendEquation!==bs&&(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!==_c&&(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!==Ug&&(n.stencilFunc=this.stencilFunc),this.stencilRef!==0&&(n.stencilRef=this.stencilRef),this.stencilFuncMask!==255&&(n.stencilFuncMask=this.stencilFuncMask),this.stencilFail!==ao&&(n.stencilFail=this.stencilFail),this.stencilZFail!==ao&&(n.stencilZFail=this.stencilZFail),this.stencilZPass!==ao&&(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 o=[];for(let a in s){let l=s[a];delete l.metadata,o.push(l)}return o}if(e){let s=i(t.textures),o=i(t.images);s.length>0&&(n.textures=s),o.length>0&&(n.images=o)}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++}},Cc=class extends Ds{constructor(t){super(),this.isMeshBasicMaterial=!0,this.type="MeshBasicMaterial",this.color=new ge(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 ir,this.combine=R_,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 Ve=new nt,nc=new _e,ei=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=Og,this._updateRange={offset:0,count:-1},this.updateRanges=[],this.gpuType=Dr,this.version=0}onUploadCallback(){}set needsUpdate(t){t===!0&&this.version++}get updateRange(){return pS("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++)nc.fromBufferAttribute(this,e),nc.applyMatrix3(t),this.setXY(e,nc.x,nc.y);else if(this.itemSize===3)for(let e=0,n=this.count;e<n;e++)Ve.fromBufferAttribute(this,e),Ve.applyMatrix3(t),this.setXYZ(e,Ve.x,Ve.y,Ve.z);return this}applyMatrix4(t){for(let e=0,n=this.count;e<n;e++)Ve.fromBufferAttribute(this,e),Ve.applyMatrix4(t),this.setXYZ(e,Ve.x,Ve.y,Ve.z);return this}applyNormalMatrix(t){for(let e=0,n=this.count;e<n;e++)Ve.fromBufferAttribute(this,e),Ve.applyNormalMatrix(t),this.setXYZ(e,Ve.x,Ve.y,Ve.z);return this}transformDirection(t){for(let e=0,n=this.count;e<n;e++)Ve.fromBufferAttribute(this,e),Ve.transformDirection(t),this.setXYZ(e,Ve.x,Ve.y,Ve.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=Ta(n,this.array)),n}setComponent(t,e,n){return this.normalized&&(n=Ln(n,this.array)),this.array[t*this.itemSize+e]=n,this}getX(t){let e=this.array[t*this.itemSize];return this.normalized&&(e=Ta(e,this.array)),e}setX(t,e){return this.normalized&&(e=Ln(e,this.array)),this.array[t*this.itemSize]=e,this}getY(t){let e=this.array[t*this.itemSize+1];return this.normalized&&(e=Ta(e,this.array)),e}setY(t,e){return this.normalized&&(e=Ln(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=Ta(e,this.array)),e}setZ(t,e){return this.normalized&&(e=Ln(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=Ta(e,this.array)),e}setW(t,e){return this.normalized&&(e=Ln(e,this.array)),this.array[t*this.itemSize+3]=e,this}setXY(t,e,n){return t*=this.itemSize,this.normalized&&(e=Ln(e,this.array),n=Ln(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=Ln(e,this.array),n=Ln(n,this.array),i=Ln(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=Ln(e,this.array),n=Ln(n,this.array),i=Ln(i,this.array),s=Ln(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!==Og&&(t.usage=this.usage),t}};var Rc=class extends ei{constructor(t,e,n){super(new Uint16Array(t),e,n)}};var Pc=class extends ei{constructor(t,e,n){super(new Uint32Array(t),e,n)}};var ni=class extends ei{constructor(t,e,n){super(new Float32Array(t),e,n)}},TS=0,jn=new Ue,tf=new mn,xo=new nt,Hn=new As,Ra=new As,je=new nt,Ni=class r extends Nr{constructor(){super(),this.isBufferGeometry=!0,Object.defineProperty(this,"id",{value:TS++}),this.uuid=Ba(),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(z_(t)?Pc:Rc)(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 se().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 jn.makeRotationFromQuaternion(t),this.applyMatrix4(jn),this}rotateX(t){return jn.makeRotationX(t),this.applyMatrix4(jn),this}rotateY(t){return jn.makeRotationY(t),this.applyMatrix4(jn),this}rotateZ(t){return jn.makeRotationZ(t),this.applyMatrix4(jn),this}translate(t,e,n){return jn.makeTranslation(t,e,n),this.applyMatrix4(jn),this}scale(t,e,n){return jn.makeScale(t,e,n),this.applyMatrix4(jn),this}lookAt(t){return tf.lookAt(t),tf.updateMatrix(),this.applyMatrix4(tf.matrix),this}center(){return this.computeBoundingBox(),this.boundingBox.getCenter(xo).negate(),this.translate(xo.x,xo.y,xo.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 ni(e,3)),this}computeBoundingBox(){this.boundingBox===null&&(this.boundingBox=new As);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 nt(-1/0,-1/0,-1/0),new nt(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];Hn.setFromBufferAttribute(s),this.morphTargetsRelative?(je.addVectors(this.boundingBox.min,Hn.min),this.boundingBox.expandByPoint(je),je.addVectors(this.boundingBox.max,Hn.max),this.boundingBox.expandByPoint(je)):(this.boundingBox.expandByPoint(Hn.min),this.boundingBox.expandByPoint(Hn.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 Lo);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 nt,1/0);return}if(t){let n=this.boundingSphere.center;if(Hn.setFromBufferAttribute(t),e)for(let s=0,o=e.length;s<o;s++){let a=e[s];Ra.setFromBufferAttribute(a),this.morphTargetsRelative?(je.addVectors(Hn.min,Ra.min),Hn.expandByPoint(je),je.addVectors(Hn.max,Ra.max),Hn.expandByPoint(je)):(Hn.expandByPoint(Ra.min),Hn.expandByPoint(Ra.max))}Hn.getCenter(n);let i=0;for(let s=0,o=t.count;s<o;s++)je.fromBufferAttribute(t,s),i=Math.max(i,n.distanceToSquared(je));if(e)for(let s=0,o=e.length;s<o;s++){let a=e[s],l=this.morphTargetsRelative;for(let c=0,h=a.count;c<h;c++)je.fromBufferAttribute(a,c),l&&(xo.fromBufferAttribute(t,c),je.add(xo)),i=Math.max(i,n.distanceToSquared(je))}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 ei(new Float32Array(4*n.count),4));let o=this.getAttribute("tangent"),a=[],l=[];for(let P=0;P<n.count;P++)a[P]=new nt,l[P]=new nt;let c=new nt,h=new nt,f=new nt,d=new _e,u=new _e,_=new _e,p=new nt,m=new nt;function g(P,M,v){c.fromBufferAttribute(n,P),h.fromBufferAttribute(n,M),f.fromBufferAttribute(n,v),d.fromBufferAttribute(s,P),u.fromBufferAttribute(s,M),_.fromBufferAttribute(s,v),h.sub(c),f.sub(c),u.sub(d),_.sub(d);let I=1/(u.x*_.y-_.x*u.y);isFinite(I)&&(p.copy(h).multiplyScalar(_.y).addScaledVector(f,-u.y).multiplyScalar(I),m.copy(f).multiplyScalar(u.x).addScaledVector(h,-_.x).multiplyScalar(I),a[P].add(p),a[M].add(p),a[v].add(p),l[P].add(m),l[M].add(m),l[v].add(m))}let b=this.groups;b.length===0&&(b=[{start:0,count:t.count}]);for(let P=0,M=b.length;P<M;++P){let v=b[P],I=v.start,N=v.count;for(let C=I,V=I+N;C<V;C+=3)g(t.getX(C+0),t.getX(C+1),t.getX(C+2))}let y=new nt,S=new nt,D=new nt,T=new nt;function w(P){D.fromBufferAttribute(i,P),T.copy(D);let M=a[P];y.copy(M),y.sub(D.multiplyScalar(D.dot(M))).normalize(),S.crossVectors(T,M);let I=S.dot(l[P])<0?-1:1;o.setXYZW(P,y.x,y.y,y.z,I)}for(let P=0,M=b.length;P<M;++P){let v=b[P],I=v.start,N=v.count;for(let C=I,V=I+N;C<V;C+=3)w(t.getX(C+0)),w(t.getX(C+1)),w(t.getX(C+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 ei(new Float32Array(e.count*3),3),this.setAttribute("normal",n);else for(let d=0,u=n.count;d<u;d++)n.setXYZ(d,0,0,0);let i=new nt,s=new nt,o=new nt,a=new nt,l=new nt,c=new nt,h=new nt,f=new nt;if(t)for(let d=0,u=t.count;d<u;d+=3){let _=t.getX(d+0),p=t.getX(d+1),m=t.getX(d+2);i.fromBufferAttribute(e,_),s.fromBufferAttribute(e,p),o.fromBufferAttribute(e,m),h.subVectors(o,s),f.subVectors(i,s),h.cross(f),a.fromBufferAttribute(n,_),l.fromBufferAttribute(n,p),c.fromBufferAttribute(n,m),a.add(h),l.add(h),c.add(h),n.setXYZ(_,a.x,a.y,a.z),n.setXYZ(p,l.x,l.y,l.z),n.setXYZ(m,c.x,c.y,c.z)}else for(let d=0,u=e.count;d<u;d+=3)i.fromBufferAttribute(e,d+0),s.fromBufferAttribute(e,d+1),o.fromBufferAttribute(e,d+2),h.subVectors(o,s),f.subVectors(i,s),h.cross(f),n.setXYZ(d+0,h.x,h.y,h.z),n.setXYZ(d+1,h.x,h.y,h.z),n.setXYZ(d+2,h.x,h.y,h.z);this.normalizeNormals(),n.needsUpdate=!0}}normalizeNormals(){let t=this.attributes.normal;for(let e=0,n=t.count;e<n;e++)je.fromBufferAttribute(t,e),je.normalize(),t.setXYZ(e,je.x,je.y,je.z)}toNonIndexed(){function t(a,l){let c=a.array,h=a.itemSize,f=a.normalized,d=new c.constructor(l.length*h),u=0,_=0;for(let p=0,m=l.length;p<m;p++){a.isInterleavedBufferAttribute?u=l[p]*a.data.stride+a.offset:u=l[p]*h;for(let g=0;g<h;g++)d[_++]=c[u++]}return new ei(d,h,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 a in i){let l=i[a],c=t(l,n);e.setAttribute(a,c)}let s=this.morphAttributes;for(let a in s){let l=[],c=s[a];for(let h=0,f=c.length;h<f;h++){let d=c[h],u=t(d,n);l.push(u)}e.morphAttributes[a]=l}e.morphTargetsRelative=this.morphTargetsRelative;let o=this.groups;for(let a=0,l=o.length;a<l;a++){let c=o[a];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],h=[];for(let f=0,d=c.length;f<d;f++){let u=c[f];h.push(u.toJSON(t.data))}h.length>0&&(i[l]=h,s=!0)}s&&(t.data.morphAttributes=i,t.data.morphTargetsRelative=this.morphTargetsRelative);let o=this.groups;o.length>0&&(t.data.groups=JSON.parse(JSON.stringify(o)));let a=this.boundingSphere;return a!==null&&(t.data.boundingSphere={center:a.center.toArray(),radius:a.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 h=i[c];this.setAttribute(c,h.clone(e))}let s=t.morphAttributes;for(let c in s){let h=[],f=s[c];for(let d=0,u=f.length;d<u;d++)h.push(f[d].clone(e));this.morphAttributes[c]=h}this.morphTargetsRelative=t.morphTargetsRelative;let o=t.groups;for(let c=0,h=o.length;c<h;c++){let f=o[c];this.addGroup(f.start,f.count,f.materialIndex)}let a=t.boundingBox;a!==null&&(this.boundingBox=a.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"})}},Kg=new Ue,xs=new Ac,ic=new Lo,jg=new nt,vo=new nt,yo=new nt,So=new nt,ef=new nt,rc=new nt,sc=new _e,oc=new _e,ac=new _e,Qg=new nt,t_=new nt,e_=new nt,lc=new nt,cc=new nt,_i=class extends mn{constructor(t=new Ni,e=new Cc){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,o=i.length;s<o;s++){let a=i[s].name||String(s);this.morphTargetInfluences.push(0),this.morphTargetDictionary[a]=s}}}}getVertexPosition(t,e){let n=this.geometry,i=n.attributes.position,s=n.morphAttributes.position,o=n.morphTargetsRelative;e.fromBufferAttribute(i,t);let a=this.morphTargetInfluences;if(s&&a){rc.set(0,0,0);for(let l=0,c=s.length;l<c;l++){let h=a[l],f=s[l];h!==0&&(ef.fromBufferAttribute(f,t),o?rc.addScaledVector(ef,h):rc.addScaledVector(ef.sub(e),h))}e.add(rc)}return e}raycast(t,e){let n=this.geometry,i=this.material,s=this.matrixWorld;i!==void 0&&(n.boundingSphere===null&&n.computeBoundingSphere(),ic.copy(n.boundingSphere),ic.applyMatrix4(s),xs.copy(t.ray).recast(t.near),!(ic.containsPoint(xs.origin)===!1&&(xs.intersectSphere(ic,jg)===null||xs.origin.distanceToSquared(jg)>(t.far-t.near)**2))&&(Kg.copy(s).invert(),xs.copy(t.ray).applyMatrix4(Kg),!(n.boundingBox!==null&&xs.intersectsBox(n.boundingBox)===!1)&&this._computeIntersections(t,e,xs)))}_computeIntersections(t,e,n){let i,s=this.geometry,o=this.material,a=s.index,l=s.attributes.position,c=s.attributes.uv,h=s.attributes.uv1,f=s.attributes.normal,d=s.groups,u=s.drawRange;if(a!==null)if(Array.isArray(o))for(let _=0,p=d.length;_<p;_++){let m=d[_],g=o[m.materialIndex],b=Math.max(m.start,u.start),y=Math.min(a.count,Math.min(m.start+m.count,u.start+u.count));for(let S=b,D=y;S<D;S+=3){let T=a.getX(S),w=a.getX(S+1),P=a.getX(S+2);i=uc(this,g,t,n,c,h,f,T,w,P),i&&(i.faceIndex=Math.floor(S/3),i.face.materialIndex=m.materialIndex,e.push(i))}}else{let _=Math.max(0,u.start),p=Math.min(a.count,u.start+u.count);for(let m=_,g=p;m<g;m+=3){let b=a.getX(m),y=a.getX(m+1),S=a.getX(m+2);i=uc(this,o,t,n,c,h,f,b,y,S),i&&(i.faceIndex=Math.floor(m/3),e.push(i))}}else if(l!==void 0)if(Array.isArray(o))for(let _=0,p=d.length;_<p;_++){let m=d[_],g=o[m.materialIndex],b=Math.max(m.start,u.start),y=Math.min(l.count,Math.min(m.start+m.count,u.start+u.count));for(let S=b,D=y;S<D;S+=3){let T=S,w=S+1,P=S+2;i=uc(this,g,t,n,c,h,f,T,w,P),i&&(i.faceIndex=Math.floor(S/3),i.face.materialIndex=m.materialIndex,e.push(i))}}else{let _=Math.max(0,u.start),p=Math.min(l.count,u.start+u.count);for(let m=_,g=p;m<g;m+=3){let b=m,y=m+1,S=m+2;i=uc(this,o,t,n,c,h,f,b,y,S),i&&(i.faceIndex=Math.floor(m/3),e.push(i))}}}};function AS(r,t,e,n,i,s,o,a){let l;if(t.side===Nn?l=n.intersectTriangle(o,s,i,!0,a):l=n.intersectTriangle(i,s,o,t.side===Lr,a),l===null)return null;cc.copy(a),cc.applyMatrix4(r.matrixWorld);let c=e.ray.origin.distanceTo(cc);return c<e.near||c>e.far?null:{distance:c,point:cc.clone(),object:r}}function uc(r,t,e,n,i,s,o,a,l,c){r.getVertexPosition(a,vo),r.getVertexPosition(l,yo),r.getVertexPosition(c,So);let h=AS(r,t,e,n,vo,yo,So,lc);if(h){i&&(sc.fromBufferAttribute(i,a),oc.fromBufferAttribute(i,l),ac.fromBufferAttribute(i,c),h.uv=Eo.getInterpolation(lc,vo,yo,So,sc,oc,ac,new _e)),s&&(sc.fromBufferAttribute(s,a),oc.fromBufferAttribute(s,l),ac.fromBufferAttribute(s,c),h.uv1=Eo.getInterpolation(lc,vo,yo,So,sc,oc,ac,new _e)),o&&(Qg.fromBufferAttribute(o,a),t_.fromBufferAttribute(o,l),e_.fromBufferAttribute(o,c),h.normal=Eo.getInterpolation(lc,vo,yo,So,Qg,t_,e_,new nt),h.normal.dot(n.direction)>0&&h.normal.multiplyScalar(-1));let f={a,b:l,c,normal:new nt,materialIndex:0};Eo.getNormal(vo,yo,So,f.normal),h.face=f}return h}var Fa=class r extends Ni{constructor(t=1,e=1,n=1,i=1,s=1,o=1){super(),this.type="BoxGeometry",this.parameters={width:t,height:e,depth:n,widthSegments:i,heightSegments:s,depthSegments:o};let a=this;i=Math.floor(i),s=Math.floor(s),o=Math.floor(o);let l=[],c=[],h=[],f=[],d=0,u=0;_("z","y","x",-1,-1,n,e,t,o,s,0),_("z","y","x",1,-1,n,e,-t,o,s,1),_("x","z","y",1,1,t,n,e,i,o,2),_("x","z","y",1,-1,t,n,-e,i,o,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 ni(c,3)),this.setAttribute("normal",new ni(h,3)),this.setAttribute("uv",new ni(f,2));function _(p,m,g,b,y,S,D,T,w,P,M){let v=S/w,I=D/P,N=S/2,C=D/2,V=T/2,$=w+1,W=P+1,Z=0,z=0,U=new nt;for(let R=0;R<W;R++){let at=R*I-C;for(let _t=0;_t<$;_t++){let Ut=_t*v-N;U[p]=Ut*b,U[m]=at*y,U[g]=V,c.push(U.x,U.y,U.z),U[p]=0,U[m]=0,U[g]=T>0?1:-1,h.push(U.x,U.y,U.z),f.push(_t/w),f.push(1-R/P),Z+=1}}for(let R=0;R<P;R++)for(let at=0;at<w;at++){let _t=d+at+$*R,Ut=d+at+$*(R+1),X=d+(at+1)+$*(R+1),ot=d+(at+1)+$*R;l.push(_t,Ut,ot),l.push(Ut,X,ot),z+=6}a.addGroup(u,z,M),u+=z,d+=Z}}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 Fo(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 Tn(r){let t={};for(let e=0;e<r.length;e++){let n=Fo(r[e]);for(let i in n)t[i]=n[i]}return t}function DS(r){let t=[];for(let e=0;e<r.length;e++)t.push(r[e].clone());return t}function H_(r){let t=r.getRenderTarget();return t===null?r.outputColorSpace:t.isXRRenderTarget===!0?t.texture.colorSpace:Se.workingColorSpace}var CS={clone:Fo,merge:Tn},RS=`void main() {
|
|
2
2
|
gl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );
|
|
3
3
|
}`,PS=`void main() {
|
|
4
4
|
gl_FragColor = vec4( 1.0, 0.0, 0.0, 1.0 );
|
|
@@ -3843,7 +3843,7 @@ void main() {
|
|
|
3843
3843
|
// Combine alpha with opacity and distance factor
|
|
3844
3844
|
gl_FragColor = vec4(1.0, 1.0, 1.0, alpha * vOpacity * opacityFactor);
|
|
3845
3845
|
}
|
|
3846
|
-
`,blending:Pr,transparent:!0});g.needsUpdate=!0;let b=new Vc(d,g);r.add(b)}function l(){requestAnimationFrame(l);let h=Date.now()*.003;r.rotation.z+=.001/4,r.rotation.y+=5e-4/4,r.position.y=Math.sin(h*.05)*.05,s.lookAt(i.position),s.updateMatrixWorld(),n.render(i,s)}function c(){let h=window.innerWidth,f=window.innerHeight;s.aspect=h/f,s.updateProjectionMatrix(),n.setSize(h,f)}a(),o(),c(),n.compile(i,s),l(),window.addEventListener("resize",c,!1)}window.addEventListener("load",t,!1)};var $_=()=>{let r=document.querySelector(".blog-post-image_cover");r&&ue.timeline({delay:1.8}).fromTo(r,{y:"0"},{y:"-100%",duration:.6,ease:"circ.out"})};var rr,Is,id,$c,ka,Zc,Jc,za,vi="transform",nd=vi+"Origin",K_,j_=function(t){var e=t.ownerDocument||t;for(!(vi in t.style)&&("msTransform"in t.style)&&(vi="msTransform",nd=vi+"Origin");e.parentNode&&(e=e.parentNode););if(Is=window,Jc=new Br,e){rr=e,id=e.documentElement,$c=e.body,za=rr.createElementNS("http://www.w3.org/2000/svg","g"),za.style.transform="none";var n=e.createElement("div"),i=e.createElement("div"),s=e&&(e.body||e.firstElementChild);s&&s.appendChild&&(s.appendChild(n),n.appendChild(i),n.setAttribute("style","position:static;transform:translate3d(0,0,1px)"),K_=i.offsetParent!==n,s.removeChild(n))}return e},_E=function(t){for(var e,n;t&&t!==$c;)n=t._gsap,n&&n.uncache&&n.get(t,"x"),n&&!n.scaleX&&!n.scaleY&&n.renderTransform&&(n.scaleX=n.scaleY=1e-4,n.renderTransform(1,n),e?e.push(n):e=[n]),t=t.parentNode;return e},Q_=[],t0=[],xE=function(){return Is.pageYOffset||rr.scrollTop||id.scrollTop||$c.scrollTop||0},vE=function(){return Is.pageXOffset||rr.scrollLeft||id.scrollLeft||$c.scrollLeft||0},rd=function(t){return t.ownerSVGElement||((t.tagName+"").toLowerCase()==="svg"?t:null)},yE=function r(t){if(Is.getComputedStyle(t).position==="fixed")return!0;if(t=t.parentNode,t&&t.nodeType===1)return r(t)},td=function r(t,e){if(t.parentNode&&(rr||j_(t))){var n=rd(t),i=n?n.getAttribute("xmlns")||"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",s=n?e?"rect":"g":"div",o=e!==2?0:100,a=e===3?100:0,l="position:absolute;display:block;pointer-events:none;margin:0;padding:0;",c=rr.createElementNS?rr.createElementNS(i.replace(/^https/,"http"),s):rr.createElement(s);return e&&(n?(Zc||(Zc=r(t)),c.setAttribute("width",.01),c.setAttribute("height",.01),c.setAttribute("transform","translate("+o+","+a+")"),Zc.appendChild(c)):(ka||(ka=r(t),ka.style.cssText=l),c.style.cssText=l+"width:0.1px;height:0.1px;top:"+a+"px;left:"+o+"px",ka.appendChild(c))),c}throw"Need document and parent."},SE=function(t){for(var e=new Br,n=0;n<t.numberOfItems;n++)e.multiply(t.getItem(n).matrix);return e},ME=function(t){var e=t.getCTM(),n;return e||(n=t.style[vi],t.style[vi]="none",t.appendChild(za),e=za.getCTM(),t.removeChild(za),n?t.style[vi]=n:t.style.removeProperty(vi.replace(/([A-Z])/g,"-$1").toLowerCase())),e||Jc.clone()},bE=function(t,e){var n=rd(t),i=t===n,s=n?Q_:t0,o=t.parentNode,a,l,c,h,f,d;if(t===Is)return t;if(s.length||s.push(td(t,1),td(t,2),td(t,3)),a=n?Zc:ka,n)i?(c=ME(t),h=-c.e/c.a,f=-c.f/c.d,l=Jc):t.getBBox?(c=t.getBBox(),l=t.transform?t.transform.baseVal:{},l=l.numberOfItems?l.numberOfItems>1?SE(l):l.getItem(0).matrix:Jc,h=l.a*c.x+l.c*c.y,f=l.b*c.x+l.d*c.y):(l=new Br,h=f=0),e&&t.tagName.toLowerCase()==="g"&&(h=f=0),(i?n:o).appendChild(a),a.setAttribute("transform","matrix("+l.a+","+l.b+","+l.c+","+l.d+","+(l.e+h)+","+(l.f+f)+")");else{if(h=f=0,K_)for(l=t.offsetParent,c=t;c&&(c=c.parentNode)&&c!==l&&c.parentNode;)(Is.getComputedStyle(c)[vi]+"").length>4&&(h=c.offsetLeft,f=c.offsetTop,c=0);if(d=Is.getComputedStyle(t),d.position!=="absolute"&&d.position!=="fixed")for(l=t.offsetParent;o&&o!==l;)h+=o.scrollLeft||0,f+=o.scrollTop||0,o=o.parentNode;c=a.style,c.top=t.offsetTop-f+"px",c.left=t.offsetLeft-h+"px",c[vi]=d[vi],c[nd]=d[nd],c.position=d.position==="fixed"?"fixed":"absolute",t.parentNode.appendChild(a)}return a},ed=function(t,e,n,i,s,o,a){return t.a=e,t.b=n,t.c=i,t.d=s,t.e=o,t.f=a,t},Br=function(){function r(e,n,i,s,o,a){e===void 0&&(e=1),n===void 0&&(n=0),i===void 0&&(i=0),s===void 0&&(s=1),o===void 0&&(o=0),a===void 0&&(a=0),ed(this,e,n,i,s,o,a)}var t=r.prototype;return t.inverse=function(){var n=this.a,i=this.b,s=this.c,o=this.d,a=this.e,l=this.f,c=n*o-i*s||1e-10;return ed(this,o/c,-i/c,-s/c,n/c,(s*l-o*a)/c,-(n*l-i*a)/c)},t.multiply=function(n){var i=this.a,s=this.b,o=this.c,a=this.d,l=this.e,c=this.f,h=n.a,f=n.c,d=n.b,u=n.d,_=n.e,p=n.f;return ed(this,h*i+d*o,h*s+d*a,f*i+u*o,f*s+u*a,l+_*i+p*o,c+_*s+p*a)},t.clone=function(){return new r(this.a,this.b,this.c,this.d,this.e,this.f)},t.equals=function(n){var i=this.a,s=this.b,o=this.c,a=this.d,l=this.e,c=this.f;return i===n.a&&s===n.b&&o===n.c&&a===n.d&&l===n.e&&c===n.f},t.apply=function(n,i){i===void 0&&(i={});var s=n.x,o=n.y,a=this.a,l=this.b,c=this.c,h=this.d,f=this.e,d=this.f;return i.x=s*a+o*c+f||0,i.y=s*l+o*h+d||0,i},r}();function kr(r,t,e,n){if(!r||!r.parentNode||(rr||j_(r)).documentElement===r)return new Br;var i=_E(r),s=rd(r),o=s?Q_:t0,a=bE(r,e),l=o[0].getBoundingClientRect(),c=o[1].getBoundingClientRect(),h=o[2].getBoundingClientRect(),f=a.parentNode,d=!n&&yE(r),u=new Br((c.left-l.left)/100,(c.top-l.top)/100,(h.left-l.left)/100,(h.top-l.top)/100,l.left+(d?0:vE()),l.top+(d?0:xE()));if(f.removeChild(a),i)for(l=i.length;l--;)c=i[l],c.scaleX=c.scaleY=0,c.renderTransform(1,c);return t?u.inverse():u}function e0(r){if(r===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r}function wE(r,t){r.prototype=Object.create(t.prototype),r.prototype.constructor=r,r.__proto__=t}var pe,be,Gn,Mi,ar,sd,or,ud,Ha,Gr,f0,hd,qa,md,Ga,yi,Wa,Qc,d0,fd,eu=0,p0=function(){return typeof window<"u"},m0=function(){return pe||p0()&&(pe=window.gsap)&&pe.registerPlugin&&pe},Hr=function(t){return typeof t=="function"},Xa=function(t){return typeof t=="object"},Si=function(t){return typeof t>"u"},tu=function(){return!1},Ya="transform",dd="transformOrigin",zr=function(t){return Math.round(t*1e4)/1e4},Va=Array.isArray,Kc=function(t,e){var n=Gn.createElementNS?Gn.createElementNS((e||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),t):Gn.createElement(t);return n.style?n:Gn.createElement(t)},n0=180/Math.PI,Ls=1e20,EE=new Br,Vr=Date.now||function(){return new Date().getTime()},Ns=[],ko={},TE=0,AE=/^(?:a|input|textarea|button|select)$/i,i0=0,Oo={},sr={},g0=function(t,e){var n={},i;for(i in t)n[i]=e?t[i]*e:t[i];return n},DE=function(t,e){for(var n in e)n in t||(t[n]=e[n]);return t},r0=function r(t,e){for(var n=t.length,i;n--;)e?t[n].style.touchAction=e:t[n].style.removeProperty("touch-action"),i=t[n].children,i&&i.length&&r(i,e)},_0=function(){return Ns.forEach(function(t){return t()})},CE=function(t){Ns.push(t),Ns.length===1&&pe.ticker.add(_0)},s0=function(){return!Ns.length&&pe.ticker.remove(_0)},o0=function(t){for(var e=Ns.length;e--;)Ns[e]===t&&Ns.splice(e,1);pe.to(s0,{overwrite:!0,delay:15,duration:0,onComplete:s0,data:"_draggable"})},RE=function(t,e){for(var n in e)n in t||(t[n]=e[n]);return t},qe=function(t,e,n,i){if(t.addEventListener){var s=qa[e];i=i||(f0?{passive:!1}:null),t.addEventListener(s||e,n,i),s&&e!==s&&t.addEventListener(e,n,i)}},He=function(t,e,n,i){if(t.removeEventListener){var s=qa[e];t.removeEventListener(s||e,n,i),s&&e!==s&&t.removeEventListener(e,n,i)}},si=function(t){t.preventDefault&&t.preventDefault(),t.preventManipulation&&t.preventManipulation()},PE=function(t,e){for(var n=t.length;n--;)if(t[n].identifier===e)return!0},IE=function r(t){md=t.touches&&eu<t.touches.length,He(t.target,"touchend",r)},a0=function(t){md=t.touches&&eu<t.touches.length,qe(t.target,"touchend",IE)},zo=function(t){return be.pageYOffset||t.scrollTop||t.documentElement.scrollTop||t.body.scrollTop||0},Vo=function(t){return be.pageXOffset||t.scrollLeft||t.documentElement.scrollLeft||t.body.scrollLeft||0},l0=function r(t,e){qe(t,"scroll",e),Ho(t.parentNode)||r(t.parentNode,e)},c0=function r(t,e){He(t,"scroll",e),Ho(t.parentNode)||r(t.parentNode,e)},Ho=function(t){return!t||t===Mi||t.nodeType===9||t===Gn.body||t===be||!t.nodeType||!t.parentNode},u0=function(t,e){var n=e==="x"?"Width":"Height",i="scroll"+n,s="client"+n;return Math.max(0,Ho(t)?Math.max(Mi[i],ar[i])-(be["inner"+n]||Mi[s]||ar[s]):t[i]-t[s])},od=function r(t,e){var n=u0(t,"x"),i=u0(t,"y");Ho(t)?t=sr:r(t.parentNode,e),t._gsMaxScrollX=n,t._gsMaxScrollY=i,e||(t._gsScrollX=t.scrollLeft||0,t._gsScrollY=t.scrollTop||0)},ad=function(t,e,n){var i=t.style;i&&(Si(i[e])&&(e=Ha(e,t)||e),n==null?i.removeProperty&&i.removeProperty(e.replace(/([A-Z])/g,"-$1").toLowerCase()):i[e]=n)},Za=function(t){return be.getComputedStyle(t instanceof Element?t:t.host||(t.parentNode||{}).host||t)},Fs={},Bo=function(t){if(t===be)return Fs.left=Fs.top=0,Fs.width=Fs.right=Mi.clientWidth||t.innerWidth||ar.clientWidth||0,Fs.height=Fs.bottom=(t.innerHeight||0)-20<Mi.clientHeight?Mi.clientHeight:t.innerHeight||ar.clientHeight||0,Fs;var e=t.ownerDocument||Gn,n=Si(t.pageX)?!t.nodeType&&!Si(t.left)&&!Si(t.top)?t:Gr(t)[0].getBoundingClientRect():{left:t.pageX-Vo(e),top:t.pageY-zo(e),right:t.pageX-Vo(e)+1,bottom:t.pageY-zo(e)+1};return Si(n.right)&&!Si(n.width)?(n.right=n.left+n.width,n.bottom=n.top+n.height):Si(n.width)&&(n={width:n.right-n.left,height:n.bottom-n.top,right:n.right,left:n.left,bottom:n.bottom,top:n.top}),n},Oe=function(t,e,n){var i=t.vars,s=i[n],o=t._listeners[e],a;return Hr(s)&&(a=s.apply(i.callbackScope||t,i[n+"Params"]||[t.pointerEvent])),o&&t.dispatchEvent(e)===!1&&(a=!1),a},h0=function(t,e){var n=Gr(t)[0],i,s,o;return!n.nodeType&&n!==be?Si(t.left)?(s=t.min||t.minX||t.minRotation||0,i=t.min||t.minY||0,{left:s,top:i,width:(t.max||t.maxX||t.maxRotation||0)-s,height:(t.max||t.maxY||0)-i}):(o={x:0,y:0},{left:t.left-o.x,top:t.top-o.y,width:t.width,height:t.height}):LE(n,e)},oi={},LE=function(t,e){e=Gr(e)[0];var n=t.getBBox&&t.ownerSVGElement,i=t.ownerDocument||Gn,s,o,a,l,c,h,f,d,u,_,p,m,g;if(t===be)a=zo(i),s=Vo(i),o=s+(i.documentElement.clientWidth||t.innerWidth||i.body.clientWidth||0),l=a+((t.innerHeight||0)-20<i.documentElement.clientHeight?i.documentElement.clientHeight:t.innerHeight||i.body.clientHeight||0);else{if(e===be||Si(e))return t.getBoundingClientRect();s=a=0,n?(_=t.getBBox(),p=_.width,m=_.height):(t.viewBox&&(_=t.viewBox.baseVal)&&(s=_.x||0,a=_.y||0,p=_.width,m=_.height),p||(g=Za(t),_=g.boxSizing==="border-box",p=(parseFloat(g.width)||t.clientWidth||0)+(_?0:parseFloat(g.borderLeftWidth)+parseFloat(g.borderRightWidth)),m=(parseFloat(g.height)||t.clientHeight||0)+(_?0:parseFloat(g.borderTopWidth)+parseFloat(g.borderBottomWidth)))),o=p,l=m}return t===e?{left:s,top:a,width:o-s,height:l-a}:(c=kr(e,!0).multiply(kr(t)),h=c.apply({x:s,y:a}),f=c.apply({x:o,y:a}),d=c.apply({x:o,y:l}),u=c.apply({x:s,y:l}),s=Math.min(h.x,f.x,d.x,u.x),a=Math.min(h.y,f.y,d.y,u.y),{left:s,top:a,width:Math.max(h.x,f.x,d.x,u.x)-s,height:Math.max(h.y,f.y,d.y,u.y)-a})},ld=function(t,e,n,i,s,o){var a={},l,c,h;if(e)if(s!==1&&e instanceof Array){if(a.end=l=[],h=e.length,Xa(e[0]))for(c=0;c<h;c++)l[c]=g0(e[c],s);else for(c=0;c<h;c++)l[c]=e[c]*s;n+=1.1,i-=1.1}else Hr(e)?a.end=function(f){var d=e.call(t,f),u,_;if(s!==1)if(Xa(d)){u={};for(_ in d)u[_]=d[_]*s;d=u}else d*=s;return d}:a.end=e;return(n||n===0)&&(a.max=n),(i||i===0)&&(a.min=i),o&&(a.velocity=0),a},FE=function r(t){var e;return!t||!t.getAttribute||t===ar?!1:(e=t.getAttribute("data-clickable"))==="true"||e!=="false"&&(AE.test(t.nodeName+"")||t.getAttribute("contentEditable")==="true")?!0:r(t.parentNode)},jc=function(t,e){for(var n=t.length,i;n--;)i=t[n],i.ondragstart=i.onselectstart=e?null:tu,pe.set(i,{lazy:!0,userSelect:e?"text":"none"})},NE=function r(t){if(Za(t).position==="fixed")return!0;if(t=t.parentNode,t&&t.nodeType===1)return r(t)},x0,pd,UE=function(t,e){t=pe.utils.toArray(t)[0],e=e||{};var n=document.createElement("div"),i=n.style,s=t.firstChild,o=0,a=0,l=t.scrollTop,c=t.scrollLeft,h=t.scrollWidth,f=t.scrollHeight,d=0,u=0,_=0,p,m,g,b,y,S;x0&&e.force3D!==!1?(y="translate3d(",S="px,0px)"):Ya&&(y="translate(",S="px)"),this.scrollTop=function(D,T){if(!arguments.length)return-this.top();this.top(-D,T)},this.scrollLeft=function(D,T){if(!arguments.length)return-this.left();this.left(-D,T)},this.left=function(D,T){if(!arguments.length)return-(t.scrollLeft+a);var w=t.scrollLeft-c,P=a;if((w>2||w<-2)&&!T){c=t.scrollLeft,pe.killTweensOf(this,{left:1,scrollLeft:1}),this.left(-c),e.onKill&&e.onKill();return}D=-D,D<0?(a=D-.5|0,D=0):D>u?(a=D-u|0,D=u):a=0,(a||P)&&(this._skip||(i[Ya]=y+-a+"px,"+-o+S),a+d>=0&&(i.paddingRight=a+d+"px")),t.scrollLeft=D|0,c=t.scrollLeft},this.top=function(D,T){if(!arguments.length)return-(t.scrollTop+o);var w=t.scrollTop-l,P=o;if((w>2||w<-2)&&!T){l=t.scrollTop,pe.killTweensOf(this,{top:1,scrollTop:1}),this.top(-l),e.onKill&&e.onKill();return}D=-D,D<0?(o=D-.5|0,D=0):D>_?(o=D-_|0,D=_):o=0,(o||P)&&(this._skip||(i[Ya]=y+-a+"px,"+-o+S)),t.scrollTop=D|0,l=t.scrollTop},this.maxScrollTop=function(){return _},this.maxScrollLeft=function(){return u},this.disable=function(){for(s=n.firstChild;s;)b=s.nextSibling,t.appendChild(s),s=b;t===n.parentNode&&t.removeChild(n)},this.enable=function(){if(s=t.firstChild,s!==n){for(;s;)b=s.nextSibling,n.appendChild(s),s=b;t.appendChild(n),this.calibrate()}},this.calibrate=function(D){var T=t.clientWidth===p,w,P,M;l=t.scrollTop,c=t.scrollLeft,!(T&&t.clientHeight===m&&n.offsetHeight===g&&h===t.scrollWidth&&f===t.scrollHeight&&!D)&&((o||a)&&(P=this.left(),M=this.top(),this.left(-t.scrollLeft),this.top(-t.scrollTop)),w=Za(t),(!T||D)&&(i.display="block",i.width="auto",i.paddingRight="0px",d=Math.max(0,t.scrollWidth-t.clientWidth),d&&(d+=parseFloat(w.paddingLeft)+(pd?parseFloat(w.paddingRight):0))),i.display="inline-block",i.position="relative",i.overflow="visible",i.verticalAlign="top",i.boxSizing="content-box",i.width="100%",i.paddingRight=d+"px",pd&&(i.paddingBottom=w.paddingBottom),p=t.clientWidth,m=t.clientHeight,h=t.scrollWidth,f=t.scrollHeight,u=t.scrollWidth-p,_=t.scrollHeight-m,g=n.offsetHeight,i.display="block",(P||M)&&(this.left(P),this.top(M)))},this.content=n,this.element=t,this._skip=!1,this.enable()},cd=function(t){if(p0()&&document.body){var e=window&&window.navigator;be=window,Gn=document,Mi=Gn.documentElement,ar=Gn.body,sd=Kc("div"),Qc=!!window.PointerEvent,or=Kc("div"),or.style.cssText="visibility:hidden;height:1px;top:-1px;pointer-events:none;position:relative;clear:both;cursor:grab",Wa=or.style.cursor==="grab"?"grab":"move",Ga=e&&e.userAgent.toLowerCase().indexOf("android")!==-1,hd="ontouchstart"in Mi&&"orientation"in be||e&&(e.MaxTouchPoints>0||e.msMaxTouchPoints>0),pd=function(){var n=Kc("div"),i=Kc("div"),s=i.style,o=ar,a;return s.display="inline-block",s.position="relative",n.style.cssText="width:90px;height:40px;padding:10px;overflow:auto;visibility:hidden",n.appendChild(i),o.appendChild(n),a=i.offsetHeight+18>n.scrollHeight,o.removeChild(n),a}(),qa=function(n){for(var i=n.split(","),s=("onpointerdown"in sd?"pointerdown,pointermove,pointerup,pointercancel":"onmspointerdown"in sd?"MSPointerDown,MSPointerMove,MSPointerUp,MSPointerCancel":n).split(","),o={},a=4;--a>-1;)o[i[a]]=s[a],o[s[a]]=i[a];try{Mi.addEventListener("test",null,Object.defineProperty({},"passive",{get:function(){f0=1}}))}catch{}return o}("touchstart,touchmove,touchend,touchcancel"),qe(Gn,"touchcancel",tu),qe(be,"touchmove",tu),ar&&ar.addEventListener("touchstart",tu),qe(Gn,"contextmenu",function(){for(var n in ko)ko[n].isPressed&&ko[n].endDrag()}),pe=ud=m0()}pe?(yi=pe.plugins.inertia,d0=pe.core.context||function(){},Ha=pe.utils.checkPrefix,Ya=Ha(Ya),dd=Ha(dd),Gr=pe.utils.toArray,fd=pe.core.getStyleSaver,x0=!!Ha("perspective")):t&&console.warn("Please gsap.registerPlugin(Draggable)")},OE=function(){function r(e){this._listeners={},this.target=e||this}var t=r.prototype;return t.addEventListener=function(n,i){var s=this._listeners[n]||(this._listeners[n]=[]);~s.indexOf(i)||s.push(i)},t.removeEventListener=function(n,i){var s=this._listeners[n],o=s&&s.indexOf(i);o>=0&&s.splice(o,1)},t.dispatchEvent=function(n){var i=this,s;return(this._listeners[n]||[]).forEach(function(o){return o.call(i,{type:n,target:i.target})===!1&&(s=!1)}),s},r}(),Us=function(r){wE(t,r);function t(e,n){var i;i=r.call(this)||this,ud||cd(1),e=Gr(e)[0],i.styles=fd&&fd(e,"transform,left,top"),yi||(yi=pe.plugins.inertia),i.vars=n=g0(n||{}),i.target=e,i.x=i.y=i.rotation=0,i.dragResistance=parseFloat(n.dragResistance)||0,i.edgeResistance=isNaN(n.edgeResistance)?1:parseFloat(n.edgeResistance)||0,i.lockAxis=n.lockAxis,i.autoScroll=n.autoScroll||0,i.lockedAxis=null,i.allowEventDefault=!!n.allowEventDefault,pe.getProperty(e,"x");var s=(n.type||"x,y").toLowerCase(),o=~s.indexOf("x")||~s.indexOf("y"),a=s.indexOf("rotation")!==-1,l=a?"rotation":o?"x":"left",c=o?"y":"top",h=!!(~s.indexOf("x")||~s.indexOf("left")||s==="scroll"),f=!!(~s.indexOf("y")||~s.indexOf("top")||s==="scroll"),d=n.minimumMovement||2,u=e0(i),_=Gr(n.trigger||n.handle||e),p={},m=0,g=!1,b=n.autoScrollMarginTop||40,y=n.autoScrollMarginRight||40,S=n.autoScrollMarginBottom||40,D=n.autoScrollMarginLeft||40,T=n.clickableTest||FE,w=0,P=e._gsap||pe.core.getCache(e),M=NE(e),v=function(L,rt){return parseFloat(P.get(e,L,rt))},I=e.ownerDocument||Gn,N,C,V,$,W,Z,z,U,R,at,_t,Ut,X,ot,xt,ct,Rt,kt,q,Jt,It,Ft,bt,Et,Ht,G,$t,A,x,F,Y,tt,it,yt=function(L){return si(L),L.stopImmediatePropagation&&L.stopImmediatePropagation(),!1},pt=function Mt(L){if(u.autoScroll&&u.isDragging&&(g||Rt)){var rt=e,O=u.autoScroll*15,j,dt,et,wt,ft,Dt,zt,Nt;for(g=!1,sr.scrollTop=be.pageYOffset!=null?be.pageYOffset:I.documentElement.scrollTop!=null?I.documentElement.scrollTop:I.body.scrollTop,sr.scrollLeft=be.pageXOffset!=null?be.pageXOffset:I.documentElement.scrollLeft!=null?I.documentElement.scrollLeft:I.body.scrollLeft,wt=u.pointerX-sr.scrollLeft,ft=u.pointerY-sr.scrollTop;rt&&!dt;)dt=Ho(rt.parentNode),j=dt?sr:rt.parentNode,et=dt?{bottom:Math.max(Mi.clientHeight,be.innerHeight||0),right:Math.max(Mi.clientWidth,be.innerWidth||0),left:0,top:0}:j.getBoundingClientRect(),Dt=zt=0,f&&(Nt=j._gsMaxScrollY-j.scrollTop,Nt<0?zt=Nt:ft>et.bottom-S&&Nt?(g=!0,zt=Math.min(Nt,O*(1-Math.max(0,et.bottom-ft)/S)|0)):ft<et.top+b&&j.scrollTop&&(g=!0,zt=-Math.min(j.scrollTop,O*(1-Math.max(0,ft-et.top)/b)|0)),zt&&(j.scrollTop+=zt)),h&&(Nt=j._gsMaxScrollX-j.scrollLeft,Nt<0?Dt=Nt:wt>et.right-y&&Nt?(g=!0,Dt=Math.min(Nt,O*(1-Math.max(0,et.right-wt)/y)|0)):wt<et.left+D&&j.scrollLeft&&(g=!0,Dt=-Math.min(j.scrollLeft,O*(1-Math.max(0,wt-et.left)/D)|0)),Dt&&(j.scrollLeft+=Dt)),dt&&(Dt||zt)&&(be.scrollTo(j.scrollLeft,j.scrollTop),st(u.pointerX+Dt,u.pointerY+zt)),rt=j}if(Rt){var Qt=u.x,he=u.y;a?(u.deltaX=Qt-parseFloat(P.rotation),u.rotation=Qt,P.rotation=Qt+"deg",P.renderTransform(1,P)):C?(f&&(u.deltaY=he-C.top(),C.top(he)),h&&(u.deltaX=Qt-C.left(),C.left(Qt))):o?(f&&(u.deltaY=he-parseFloat(P.y),P.y=he+"px"),h&&(u.deltaX=Qt-parseFloat(P.x),P.x=Qt+"px"),P.renderTransform(1,P)):(f&&(u.deltaY=he-parseFloat(e.style.top||0),e.style.top=he+"px"),h&&(u.deltaX=Qt-parseFloat(e.style.left||0),e.style.left=Qt+"px")),U&&!L&&!A&&(A=!0,Oe(u,"drag","onDrag")===!1&&(h&&(u.x-=u.deltaX),f&&(u.y-=u.deltaY),Mt(!0)),A=!1)}Rt=!1},lt=function(L,rt){var O=u.x,j=u.y,dt,et;e._gsap||(P=pe.core.getCache(e)),P.uncache&&pe.getProperty(e,"x"),o?(u.x=parseFloat(P.x),u.y=parseFloat(P.y)):a?u.x=u.rotation=parseFloat(P.rotation):C?(u.y=C.top(),u.x=C.left()):(u.y=parseFloat(e.style.top||(et=Za(e))&&et.top)||0,u.x=parseFloat(e.style.left||(et||{}).left)||0),(q||Jt||It)&&!rt&&(u.isDragging||u.isThrowing)&&(It&&(Oo.x=u.x,Oo.y=u.y,dt=It(Oo),dt.x!==u.x&&(u.x=dt.x,Rt=!0),dt.y!==u.y&&(u.y=dt.y,Rt=!0)),q&&(dt=q(u.x),dt!==u.x&&(u.x=dt,a&&(u.rotation=dt),Rt=!0)),Jt&&(dt=Jt(u.y),dt!==u.y&&(u.y=dt),Rt=!0)),Rt&&pt(!0),L||(u.deltaX=u.x-O,u.deltaY=u.y-j,Oe(u,"throwupdate","onThrowUpdate"))},Lt=function(L,rt,O,j){return rt==null&&(rt=-Ls),O==null&&(O=Ls),Hr(L)?function(dt){var et=u.isPressed?1-u.edgeResistance:1;return L.call(u,(dt>O?O+(dt-O)*et:dt<rt?rt+(dt-rt)*et:dt)*j)*j}:Va(L)?function(dt){for(var et=L.length,wt=0,ft=Ls,Dt,zt;--et>-1;)Dt=L[et],zt=Dt-dt,zt<0&&(zt=-zt),zt<ft&&Dt>=rt&&Dt<=O&&(wt=et,ft=zt);return L[wt]}:isNaN(L)?function(dt){return dt}:function(){return L*j}},ht=function(L,rt,O,j,dt,et,wt){return et=et&&et<Ls?et*et:Ls,Hr(L)?function(ft){var Dt=u.isPressed?1-u.edgeResistance:1,zt=ft.x,Nt=ft.y,Qt,he,me;return ft.x=zt=zt>O?O+(zt-O)*Dt:zt<rt?rt+(zt-rt)*Dt:zt,ft.y=Nt=Nt>dt?dt+(Nt-dt)*Dt:Nt<j?j+(Nt-j)*Dt:Nt,Qt=L.call(u,ft),Qt!==ft&&(ft.x=Qt.x,ft.y=Qt.y),wt!==1&&(ft.x*=wt,ft.y*=wt),et<Ls&&(he=ft.x-zt,me=ft.y-Nt,he*he+me*me>et&&(ft.x=zt,ft.y=Nt)),ft}:Va(L)?function(ft){for(var Dt=L.length,zt=0,Nt=Ls,Qt,he,me,oe;--Dt>-1;)me=L[Dt],Qt=me.x-ft.x,he=me.y-ft.y,oe=Qt*Qt+he*he,oe<Nt&&(zt=Dt,Nt=oe);return Nt<=et?L[zt]:ft}:function(ft){return ft}},vt=function(){var L,rt,O,j;z=!1,C?(C.calibrate(),u.minX=_t=-C.maxScrollLeft(),u.minY=X=-C.maxScrollTop(),u.maxX=at=u.maxY=Ut=0,z=!0):n.bounds&&(L=h0(n.bounds,e.parentNode),a?(u.minX=_t=L.left,u.maxX=at=L.left+L.width,u.minY=X=u.maxY=Ut=0):!Si(n.bounds.maxX)||!Si(n.bounds.maxY)?(L=n.bounds,u.minX=_t=L.minX,u.minY=X=L.minY,u.maxX=at=L.maxX,u.maxY=Ut=L.maxY):(rt=h0(e,e.parentNode),u.minX=_t=Math.round(v(l,"px")+L.left-rt.left),u.minY=X=Math.round(v(c,"px")+L.top-rt.top),u.maxX=at=Math.round(_t+(L.width-rt.width)),u.maxY=Ut=Math.round(X+(L.height-rt.height))),_t>at&&(u.minX=at,u.maxX=at=_t,_t=u.minX),X>Ut&&(u.minY=Ut,u.maxY=Ut=X,X=u.minY),a&&(u.minRotation=_t,u.maxRotation=at),z=!0),n.liveSnap&&(O=n.liveSnap===!0?n.snap||{}:n.liveSnap,j=Va(O)||Hr(O),a?(q=Lt(j?O:O.rotation,_t,at,1),Jt=null):O.points?It=ht(j?O:O.points,_t,at,X,Ut,O.radius,C?-1:1):(h&&(q=Lt(j?O:O.x||O.left||O.scrollLeft,_t,at,C?-1:1)),f&&(Jt=Lt(j?O:O.y||O.top||O.scrollTop,X,Ut,C?-1:1))))},Yt=function(){u.isThrowing=!1,Oe(u,"throwcomplete","onThrowComplete")},ut=function(){u.isThrowing=!1},Tt=function(L,rt){var O,j,dt,et;L&&yi?(L===!0&&(O=n.snap||n.liveSnap||{},j=Va(O)||Hr(O),L={resistance:(n.throwResistance||n.resistance||1e3)/(a?10:1)},a?L.rotation=ld(u,j?O:O.rotation,at,_t,1,rt):(h&&(L[l]=ld(u,j?O:O.points||O.x||O.left,at,_t,C?-1:1,rt||u.lockedAxis==="x")),f&&(L[c]=ld(u,j?O:O.points||O.y||O.top,Ut,X,C?-1:1,rt||u.lockedAxis==="y")),(O.points||Va(O)&&Xa(O[0]))&&(L.linkedProps=l+","+c,L.radius=O.radius))),u.isThrowing=!0,et=isNaN(n.overshootTolerance)?n.edgeResistance===1?0:1-u.edgeResistance+.2:n.overshootTolerance,L.duration||(L.duration={max:Math.max(n.minDuration||0,"maxDuration"in n?n.maxDuration:2),min:isNaN(n.minDuration)?et===0||Xa(L)&&L.resistance>1e3?0:.5:n.minDuration,overshoot:et}),u.tween=dt=pe.to(C||e,{inertia:L,data:"_draggable",inherit:!1,onComplete:Yt,onInterrupt:ut,onUpdate:n.fastMode?Oe:lt,onUpdateParams:n.fastMode?[u,"onthrowupdate","onThrowUpdate"]:O&&O.radius?[!1,!0]:[]}),n.fastMode||(C&&(C._skip=!0),dt.render(1e9,!0,!0),lt(!0,!0),u.endX=u.x,u.endY=u.y,a&&(u.endRotation=u.x),dt.play(0),lt(!0,!0),C&&(C._skip=!1))):z&&u.applyBounds()},Wt=function(L){var rt=Et,O;Et=kr(e.parentNode,!0),L&&u.isPressed&&!Et.equals(rt||new Br)&&(O=rt.inverse().apply({x:V,y:$}),Et.apply(O,O),V=O.x,$=O.y),Et.equals(EE)&&(Et=null)},qt=function(){var L=1-u.edgeResistance,rt=M?Vo(I):0,O=M?zo(I):0,j,dt,et;o&&(P.x=v(l,"px")+"px",P.y=v(c,"px")+"px",P.renderTransform()),Wt(!1),oi.x=u.pointerX-rt,oi.y=u.pointerY-O,Et&&Et.apply(oi,oi),V=oi.x,$=oi.y,Rt&&(st(u.pointerX,u.pointerY),pt(!0)),tt=kr(e),C?(vt(),Z=C.top(),W=C.left()):(ce()?(lt(!0,!0),vt()):u.applyBounds(),a?(j=e.ownerSVGElement?[P.xOrigin-e.getBBox().x,P.yOrigin-e.getBBox().y]:(Za(e)[dd]||"0 0").split(" "),ct=u.rotationOrigin=kr(e).apply({x:parseFloat(j[0])||0,y:parseFloat(j[1])||0}),lt(!0,!0),dt=u.pointerX-ct.x-rt,et=ct.y-u.pointerY+O,W=u.x,Z=u.y=Math.atan2(et,dt)*n0):(Z=v(c,"px"),W=v(l,"px"))),z&&L&&(W>at?W=at+(W-at)/L:W<_t&&(W=_t-(_t-W)/L),a||(Z>Ut?Z=Ut+(Z-Ut)/L:Z<X&&(Z=X-(X-Z)/L))),u.startX=W=zr(W),u.startY=Z=zr(Z)},ce=function(){return u.tween&&u.tween.isActive()},Zt=function(){or.parentNode&&!ce()&&!u.isDragging&&or.parentNode.removeChild(or)},k=function(L,rt){var O;if(!N||u.isPressed||!L||(L.type==="mousedown"||L.type==="pointerdown")&&!rt&&Vr()-w<30&&qa[u.pointerEvent.type]){Y&&L&&N&&si(L);return}if(Ht=ce(),it=!1,u.pointerEvent=L,qa[L.type]?(bt=~L.type.indexOf("touch")?L.currentTarget||L.target:I,qe(bt,"touchend",mt),qe(bt,"touchmove",Q),qe(bt,"touchcancel",mt),qe(I,"touchstart",a0)):(bt=null,qe(I,"mousemove",Q)),$t=null,(!Qc||!bt)&&(qe(I,"mouseup",mt),L&&L.target&&qe(L.target,"mouseup",mt)),Ft=T.call(u,L.target)&&n.dragClickables===!1&&!rt,Ft){qe(L.target,"change",mt),Oe(u,"pressInit","onPressInit"),Oe(u,"press","onPress"),jc(_,!0),Y=!1;return}if(G=!bt||h===f||u.vars.allowNativeTouchScrolling===!1||u.vars.allowContextMenu&&L&&(L.ctrlKey||L.which>2)?!1:h?"y":"x",Y=!G&&!u.allowEventDefault,Y&&(si(L),qe(be,"touchforcechange",si)),L.changedTouches?(L=ot=L.changedTouches[0],xt=L.identifier):L.pointerId?xt=L.pointerId:ot=xt=null,eu++,CE(pt),$=u.pointerY=L.pageY,V=u.pointerX=L.pageX,Oe(u,"pressInit","onPressInit"),(G||u.autoScroll)&&od(e.parentNode),e.parentNode&&u.autoScroll&&!C&&!a&&e.parentNode._gsMaxScrollX&&!or.parentNode&&!e.getBBox&&(or.style.width=e.parentNode.scrollWidth+"px",e.parentNode.appendChild(or)),qt(),u.tween&&u.tween.kill(),u.isThrowing=!1,pe.killTweensOf(C||e,p,!0),C&&pe.killTweensOf(e,{scrollTo:1},!0),u.tween=u.lockedAxis=null,(n.zIndexBoost||!a&&!C&&n.zIndexBoost!==!1)&&(e.style.zIndex=t.zIndex++),u.isPressed=!0,U=!!(n.onDrag||u._listeners.drag),R=!!(n.onMove||u._listeners.move),n.cursor!==!1||n.activeCursor)for(O=_.length;--O>-1;)pe.set(_[O],{cursor:n.activeCursor||n.cursor||(Wa==="grab"?"grabbing":Wa)});Oe(u,"press","onPress")},Q=function(L){var rt=L,O,j,dt,et,wt,ft;if(!N||md||!u.isPressed||!L){Y&&L&&N&&si(L);return}if(u.pointerEvent=L,O=L.changedTouches,O){if(L=O[0],L!==ot&&L.identifier!==xt){for(et=O.length;--et>-1&&(L=O[et]).identifier!==xt&&L.target!==e;);if(et<0)return}}else if(L.pointerId&&xt&&L.pointerId!==xt)return;if(bt&&G&&!$t&&(oi.x=L.pageX-(M?Vo(I):0),oi.y=L.pageY-(M?zo(I):0),Et&&Et.apply(oi,oi),j=oi.x,dt=oi.y,wt=Math.abs(j-V),ft=Math.abs(dt-$),(wt!==ft&&(wt>d||ft>d)||Ga&&G===$t)&&($t=wt>ft&&h?"x":"y",G&&$t!==G&&qe(be,"touchforcechange",si),u.vars.lockAxisOnTouchScroll!==!1&&h&&f&&(u.lockedAxis=$t==="x"?"y":"x",Hr(u.vars.onLockAxis)&&u.vars.onLockAxis.call(u,rt)),Ga&&G===$t))){mt(rt);return}!u.allowEventDefault&&(!G||$t&&G!==$t)&&rt.cancelable!==!1?(si(rt),Y=!0):Y&&(Y=!1),u.autoScroll&&(g=!0),st(L.pageX,L.pageY,R)},st=function(L,rt,O){var j=1-u.dragResistance,dt=1-u.edgeResistance,et=u.pointerX,wt=u.pointerY,ft=Z,Dt=u.x,zt=u.y,Nt=u.endX,Qt=u.endY,he=u.endRotation,me=Rt,oe,E,B,H,K,J;u.pointerX=L,u.pointerY=rt,M&&(L-=Vo(I),rt-=zo(I)),a?(H=Math.atan2(ct.y-rt,L-ct.x)*n0,K=u.y-H,K>180?(Z-=360,u.y=H):K<-180&&(Z+=360,u.y=H),u.x!==W||Math.abs(Z-H)>d?(u.y=H,B=W+(Z-H)*j):B=W):(Et&&(J=L*Et.a+rt*Et.c+Et.e,rt=L*Et.b+rt*Et.d+Et.f,L=J),E=rt-$,oe=L-V,E<d&&E>-d&&(E=0),oe<d&&oe>-d&&(oe=0),(u.lockAxis||u.lockedAxis)&&(oe||E)&&(J=u.lockedAxis,J||(u.lockedAxis=J=h&&Math.abs(oe)>Math.abs(E)?"y":f?"x":null,J&&Hr(u.vars.onLockAxis)&&u.vars.onLockAxis.call(u,u.pointerEvent)),J==="y"?E=0:J==="x"&&(oe=0)),B=zr(W+oe*j),H=zr(Z+E*j)),(q||Jt||It)&&(u.x!==B||u.y!==H&&!a)&&(It&&(Oo.x=B,Oo.y=H,J=It(Oo),B=zr(J.x),H=zr(J.y)),q&&(B=zr(q(B))),Jt&&(H=zr(Jt(H)))),z&&(B>at?B=at+Math.round((B-at)*dt):B<_t&&(B=_t+Math.round((B-_t)*dt)),a||(H>Ut?H=Math.round(Ut+(H-Ut)*dt):H<X&&(H=Math.round(X+(H-X)*dt)))),(u.x!==B||u.y!==H&&!a)&&(a?(u.endRotation=u.x=u.endX=B,Rt=!0):(f&&(u.y=u.endY=H,Rt=!0),h&&(u.x=u.endX=B,Rt=!0)),!O||Oe(u,"move","onMove")!==!1?!u.isDragging&&u.isPressed&&(u.isDragging=it=!0,Oe(u,"dragstart","onDragStart")):(u.pointerX=et,u.pointerY=wt,Z=ft,u.x=Dt,u.y=zt,u.endX=Nt,u.endY=Qt,u.endRotation=he,Rt=me))},mt=function Mt(L,rt){if(!N||!u.isPressed||L&&xt!=null&&!rt&&(L.pointerId&&L.pointerId!==xt&&L.target!==e||L.changedTouches&&!PE(L.changedTouches,xt))){Y&&L&&N&&si(L);return}u.isPressed=!1;var O=L,j=u.isDragging,dt=u.vars.allowContextMenu&&L&&(L.ctrlKey||L.which>2),et=pe.delayedCall(.001,Zt),wt,ft,Dt,zt,Nt;if(bt?(He(bt,"touchend",Mt),He(bt,"touchmove",Q),He(bt,"touchcancel",Mt),He(I,"touchstart",a0)):He(I,"mousemove",Q),He(be,"touchforcechange",si),(!Qc||!bt)&&(He(I,"mouseup",Mt),L&&L.target&&He(L.target,"mouseup",Mt)),Rt=!1,j&&(m=i0=Vr(),u.isDragging=!1),o0(pt),Ft&&!dt){L&&(He(L.target,"change",Mt),u.pointerEvent=O),jc(_,!1),Oe(u,"release","onRelease"),Oe(u,"click","onClick"),Ft=!1;return}for(ft=_.length;--ft>-1;)ad(_[ft],"cursor",n.cursor||(n.cursor!==!1?Wa:null));if(eu--,L){if(wt=L.changedTouches,wt&&(L=wt[0],L!==ot&&L.identifier!==xt)){for(ft=wt.length;--ft>-1&&(L=wt[ft]).identifier!==xt&&L.target!==e;);if(ft<0&&!rt)return}u.pointerEvent=O,u.pointerX=L.pageX,u.pointerY=L.pageY}return dt&&O?(si(O),Y=!0,Oe(u,"release","onRelease")):O&&!j?(Y=!1,Ht&&(n.snap||n.bounds)&&Tt(n.inertia||n.throwProps),Oe(u,"release","onRelease"),(!Ga||O.type!=="touchmove")&&O.type.indexOf("cancel")===-1&&(Oe(u,"click","onClick"),Vr()-w<300&&Oe(u,"doubleclick","onDoubleClick"),zt=O.target||e,w=Vr(),Nt=function(){w!==x&&u.enabled()&&!u.isPressed&&!O.defaultPrevented&&(zt.click?zt.click():I.createEvent&&(Dt=I.createEvent("MouseEvents"),Dt.initMouseEvent("click",!0,!0,be,1,u.pointerEvent.screenX,u.pointerEvent.screenY,u.pointerX,u.pointerY,!1,!1,!1,!1,0,null),zt.dispatchEvent(Dt)))},!Ga&&!O.defaultPrevented&&pe.delayedCall(.05,Nt))):(Tt(n.inertia||n.throwProps),!u.allowEventDefault&&O&&(n.dragClickables!==!1||!T.call(u,O.target))&&j&&(!G||$t&&G===$t)&&O.cancelable!==!1?(Y=!0,si(O)):Y=!1,Oe(u,"release","onRelease")),ce()&&et.duration(u.tween.duration()),j&&Oe(u,"dragend","onDragEnd"),!0},gt=function(L){if(L&&u.isDragging&&!C){var rt=L.target||e.parentNode,O=rt.scrollLeft-rt._gsScrollX,j=rt.scrollTop-rt._gsScrollY;(O||j)&&(Et?(V-=O*Et.a+j*Et.c,$-=j*Et.d+O*Et.b):(V-=O,$-=j),rt._gsScrollX+=O,rt._gsScrollY+=j,st(u.pointerX,u.pointerY))}},Bt=function(L){var rt=Vr(),O=rt-w<100,j=rt-m<50,dt=O&&x===w,et=u.pointerEvent&&u.pointerEvent.defaultPrevented,wt=O&&F===w,ft=L.isTrusted||L.isTrusted==null&&O&&dt;if((dt||j&&u.vars.suppressClickOnDrag!==!1)&&L.stopImmediatePropagation&&L.stopImmediatePropagation(),O&&!(u.pointerEvent&&u.pointerEvent.defaultPrevented)&&(!dt||ft&&!wt)){ft&&dt&&(F=w),x=w;return}(u.isPressed||j||O)&&(!ft||!L.detail||!O||et)&&si(L),!O&&!j&&!it&&(L&&L.target&&(u.pointerEvent=L),Oe(u,"click","onClick"))},ee=function(L){return Et?{x:L.x*Et.a+L.y*Et.c+Et.e,y:L.x*Et.b+L.y*Et.d+Et.f}:{x:L.x,y:L.y}};return kt=t.get(e),kt&&kt.kill(),i.startDrag=function(Mt,L){var rt,O,j,dt;k(Mt||u.pointerEvent,!0),L&&!u.hitTest(Mt||u.pointerEvent)&&(rt=Bo(Mt||u.pointerEvent),O=Bo(e),j=ee({x:rt.left+rt.width/2,y:rt.top+rt.height/2}),dt=ee({x:O.left+O.width/2,y:O.top+O.height/2}),V-=j.x-dt.x,$-=j.y-dt.y),u.isDragging||(u.isDragging=it=!0,Oe(u,"dragstart","onDragStart"))},i.drag=Q,i.endDrag=function(Mt){return mt(Mt||u.pointerEvent,!0)},i.timeSinceDrag=function(){return u.isDragging?0:(Vr()-m)/1e3},i.timeSinceClick=function(){return(Vr()-w)/1e3},i.hitTest=function(Mt,L){return t.hitTest(u.target,Mt,L)},i.getDirection=function(Mt,L){var rt=Mt==="velocity"&&yi?Mt:Xa(Mt)&&!a?"element":"start",O,j,dt,et,wt,ft;return rt==="element"&&(wt=Bo(u.target),ft=Bo(Mt)),O=rt==="start"?u.x-W:rt==="velocity"?yi.getVelocity(e,l):wt.left+wt.width/2-(ft.left+ft.width/2),a?O<0?"counter-clockwise":"clockwise":(L=L||2,j=rt==="start"?u.y-Z:rt==="velocity"?yi.getVelocity(e,c):wt.top+wt.height/2-(ft.top+ft.height/2),dt=Math.abs(O/j),et=dt<1/L?"":O<0?"left":"right",dt<L&&(et!==""&&(et+="-"),et+=j<0?"up":"down"),et)},i.applyBounds=function(Mt,L){var rt,O,j,dt,et,wt;if(Mt&&n.bounds!==Mt)return n.bounds=Mt,u.update(!0,L);if(lt(!0),vt(),z&&!ce()){if(rt=u.x,O=u.y,rt>at?rt=at:rt<_t&&(rt=_t),O>Ut?O=Ut:O<X&&(O=X),(u.x!==rt||u.y!==O)&&(j=!0,u.x=u.endX=rt,a?u.endRotation=rt:u.y=u.endY=O,Rt=!0,pt(!0),u.autoScroll&&!u.isDragging))for(od(e.parentNode),dt=e,sr.scrollTop=be.pageYOffset!=null?be.pageYOffset:I.documentElement.scrollTop!=null?I.documentElement.scrollTop:I.body.scrollTop,sr.scrollLeft=be.pageXOffset!=null?be.pageXOffset:I.documentElement.scrollLeft!=null?I.documentElement.scrollLeft:I.body.scrollLeft;dt&&!wt;)wt=Ho(dt.parentNode),et=wt?sr:dt.parentNode,f&&et.scrollTop>et._gsMaxScrollY&&(et.scrollTop=et._gsMaxScrollY),h&&et.scrollLeft>et._gsMaxScrollX&&(et.scrollLeft=et._gsMaxScrollX),dt=et;u.isThrowing&&(j||u.endX>at||u.endX<_t||u.endY>Ut||u.endY<X)&&Tt(n.inertia||n.throwProps,j)}return u},i.update=function(Mt,L,rt){if(L&&u.isPressed){var O=kr(e),j=tt.apply({x:u.x-W,y:u.y-Z}),dt=kr(e.parentNode,!0);dt.apply({x:O.e-j.x,y:O.f-j.y},j),u.x-=j.x-dt.e,u.y-=j.y-dt.f,pt(!0),qt()}var et=u.x,wt=u.y;return Wt(!L),Mt?u.applyBounds():(Rt&&rt&&pt(!0),lt(!0)),L&&(st(u.pointerX,u.pointerY),Rt&&pt(!0)),u.isPressed&&!L&&(h&&Math.abs(et-u.x)>.01||f&&Math.abs(wt-u.y)>.01&&!a)&&qt(),u.autoScroll&&(od(e.parentNode,u.isDragging),g=u.isDragging,pt(!0),c0(e,gt),l0(e,gt)),u},i.enable=function(Mt){var L={lazy:!0},rt,O,j;if(n.cursor!==!1&&(L.cursor=n.cursor||Wa),pe.utils.checkPrefix("touchCallout")&&(L.touchCallout="none"),Mt!=="soft"){for(r0(_,h===f?"none":n.allowNativeTouchScrolling&&e.scrollHeight===e.clientHeight==(e.scrollWidth===e.clientHeight)||n.allowEventDefault?"manipulation":h?"pan-y":"pan-x"),O=_.length;--O>-1;)j=_[O],Qc||qe(j,"mousedown",k),qe(j,"touchstart",k),qe(j,"click",Bt,!0),pe.set(j,L),j.getBBox&&j.ownerSVGElement&&h!==f&&pe.set(j.ownerSVGElement,{touchAction:n.allowNativeTouchScrolling||n.allowEventDefault?"manipulation":h?"pan-y":"pan-x"}),n.allowContextMenu||qe(j,"contextmenu",yt);jc(_,!1)}return l0(e,gt),N=!0,yi&&Mt!=="soft"&&yi.track(C||e,o?"x,y":a?"rotation":"top,left"),e._gsDragID=rt="d"+TE++,ko[rt]=u,C&&(C.enable(),C.element._gsDragID=rt),(n.bounds||a)&&qt(),n.bounds&&u.applyBounds(),u},i.disable=function(Mt){for(var L=u.isDragging,rt=_.length,O;--rt>-1;)ad(_[rt],"cursor",null);if(Mt!=="soft"){for(r0(_,null),rt=_.length;--rt>-1;)O=_[rt],ad(O,"touchCallout",null),He(O,"mousedown",k),He(O,"touchstart",k),He(O,"click",Bt,!0),He(O,"contextmenu",yt);jc(_,!0),bt&&(He(bt,"touchcancel",mt),He(bt,"touchend",mt),He(bt,"touchmove",Q)),He(I,"mouseup",mt),He(I,"mousemove",Q)}return c0(e,gt),N=!1,yi&&Mt!=="soft"&&(yi.untrack(C||e,o?"x,y":a?"rotation":"top,left"),u.tween&&u.tween.kill()),C&&C.disable(),o0(pt),u.isDragging=u.isPressed=Ft=!1,L&&Oe(u,"dragend","onDragEnd"),u},i.enabled=function(Mt,L){return arguments.length?Mt?u.enable(L):u.disable(L):N},i.kill=function(){return u.isThrowing=!1,u.tween&&u.tween.kill(),u.disable(),pe.set(_,{clearProps:"userSelect"}),delete ko[e._gsDragID],u},i.revert=function(){this.kill(),this.styles&&this.styles.revert()},~s.indexOf("scroll")&&(C=i.scrollProxy=new UE(e,DE({onKill:function(){u.isPressed&&mt(null)}},n)),e.style.overflowY=f&&!hd?"auto":"hidden",e.style.overflowX=h&&!hd?"auto":"hidden",e=C.content),a?p.rotation=1:(h&&(p[l]=1),f&&(p[c]=1)),P.force3D="force3D"in n?n.force3D:!0,d0(e0(i)),i.enable(),i}return t.register=function(n){pe=n,cd()},t.create=function(n,i){return ud||cd(!0),Gr(n).map(function(s){return new t(s,i)})},t.get=function(n){return ko[(Gr(n)[0]||{})._gsDragID]},t.timeSinceDrag=function(){return(Vr()-i0)/1e3},t.hitTest=function(n,i,s){if(n===i)return!1;var o=Bo(n),a=Bo(i),l=o.top,c=o.left,h=o.right,f=o.bottom,d=o.width,u=o.height,_=a.left>h||a.right<c||a.top>f||a.bottom<l,p,m,g;return _||!s?!_:(g=(s+"").indexOf("%")!==-1,s=parseFloat(s)||0,p={left:Math.max(c,a.left),top:Math.max(l,a.top)},p.width=Math.min(h,a.right)-p.left,p.height=Math.min(f,a.bottom)-p.top,p.width<0||p.height<0?!1:g?(s*=.01,m=p.width*p.height,m>=d*u*s||m>=a.width*a.height*s):p.width>s&&p.height>s)},t}(OE);RE(Us.prototype,{pointerX:0,pointerY:0,startX:0,startY:0,deltaX:0,deltaY:0,isDragging:!1,isPressed:!1});Us.zIndex=1e3;Us.version="3.12.5";m0()&&pe.registerPlugin(Us);var Ui,_d,$a,y0,Go,Wo,nu,S0,M0,b0=function(){return Ui||typeof window<"u"&&(Ui=window.gsap)},xd={},BE=function(t){return Math.round(t*1e4)/1e4},vd=function(t){return M0(t).id},Ja=function(t){return xd[vd(typeof t=="string"?$a(t)[0]:t)]},v0=function(t){var e=Go,n;if(t-nu>=.05)for(S0=nu,nu=t;e;)n=e.g(e.t,e.p),(n!==e.v1||t-e.t1>.2)&&(e.v2=e.v1,e.v1=n,e.t2=e.t1,e.t1=t),e=e._next},kE={deg:360,rad:Math.PI*2},gd=function(){Ui=b0(),Ui&&($a=Ui.utils.toArray,y0=Ui.utils.getUnit,M0=Ui.core.getCache,Wo=Ui.ticker,_d=1)},zE=function(t,e,n,i){this.t=t,this.p=e,this.g=t._gsap.get,this.rCap=kE[n||y0(this.g(t,e))],this.v1=this.v2=0,this.t1=this.t2=Wo.time,i&&(this._next=i,i._prev=this)},Xo=function(){function r(e,n){_d||gd(),this.target=$a(e)[0],xd[vd(this.target)]=this,this._props={},n&&this.add(n)}r.register=function(n){Ui=n,gd()};var t=r.prototype;return t.get=function(n,i){var s=this._props[n]||console.warn("Not tracking "+n+" velocity."),o,a,l;return o=parseFloat(i?s.v1:s.g(s.t,s.p)),a=o-parseFloat(s.v2),l=s.rCap,l&&(a=a%l,a!==a%(l/2)&&(a=a<0?a+l:a-l)),BE(a/((i?s.t1:Wo.time)-s.t2))},t.getAll=function(){var n={},i=this._props,s;for(s in i)n[s]=this.get(s);return n},t.isTracking=function(n){return n in this._props},t.add=function(n,i){n in this._props||(Go||(Wo.add(v0),nu=S0=Wo.time),Go=this._props[n]=new zE(this.target,n,i,Go))},t.remove=function(n){var i=this._props[n],s,o;i&&(s=i._prev,o=i._next,s&&(s._next=o),o?o._prev=s:Go===i&&(Wo.remove(v0),Go=0),delete this._props[n])},t.kill=function(n){for(var i in this._props)this.remove(i);n||delete xd[vd(this.target)]},r.track=function(n,i,s){_d||gd();for(var o=[],a=$a(n),l=i.split(","),c=(s||"").split(","),h=a.length,f,d;h--;){for(f=Ja(a[h])||new r(a[h]),d=l.length;d--;)f.add(l[d],c[d]||c[0]);o.push(f)}return o},r.untrack=function(n,i){var s=(i||"").split(",");$a(n).forEach(function(o){var a=Ja(o);a&&(s.length?s.forEach(function(l){return a.remove(l)}):a.kill(1))})},r.isTracking=function(n,i){var s=Ja(n);return s&&s.isTracking(i)},r.getVelocity=function(n,i){var s=Ja(n);return!s||!s.isTracking(i)?console.warn("Not tracking velocity of "+i):s.get(i)},r}();Xo.getByTarget=Ja;b0()&&Ui.registerPlugin(Xo);var Ze,C0,w0,R0,yd,Ka,P0,I0,L0,bd,F0,ja,Sd,N0,iu=Xo.getByTarget,U0=function(){return Ze||typeof window<"u"&&(Ze=window.gsap)&&Ze.registerPlugin&&Ze},VE=function(t){return typeof t=="string"},Qa=function(t){return typeof t=="number"},Wr=function(t){return typeof t=="object"},Md=function(t){return typeof t=="function"},HE=1,O0=Array.isArray,GE=function(t){return t},Os=1e10,E0=1/Os,B0=.05,WE=function(t){return Math.round(t*1e4)/1e4},XE=function(t,e,n){for(var i in e)!(i in t)&&i!==n&&(t[i]=e[i]);return t},YE=function r(t){var e={},n,i;for(n in t)e[n]=Wr(i=t[n])&&!O0(i)?r(i):i;return e},T0=function(t,e,n,i,s){var o=e.length,a=0,l=Os,c,h,f,d;if(Wr(t)){for(;o--;){c=e[o],h=0;for(f in t)d=c[f]-t[f],h+=d*d;h<l&&(a=o,l=h)}if((s||Os)<Os&&s<Math.sqrt(l))return t}else for(;o--;)c=e[o],h=c-t,h<0&&(h=-h),h<l&&c>=i&&c<=n&&(a=o,l=h);return e[a]},k0=function(t,e,n,i,s,o,a){if(t.end==="auto")return t;var l=t.end,c,h;if(n=isNaN(n)?Os:n,i=isNaN(i)?-Os:i,Wr(e)){if(c=e.calculated?e:(Md(l)?l(e,a):T0(e,l,n,i,o))||e,!e.calculated){for(h in c)e[h]=c[h];e.calculated=!0}c=c[s]}else c=Md(l)?l(e,a):O0(l)?T0(e,l,n,i,o):parseFloat(l);return c>n?c=n:c<i&&(c=i),{max:c,min:c,unitFactor:t.unitFactor}},ru=function(t,e,n){return isNaN(t[e])?n:+t[e]},wd=function(t,e){return e*B0*t/bd},A0=function(t,e,n){return Math.abs((e-t)*bd/n/B0)},z0={resistance:1,checkpoint:1,preventOvershoot:1,linkedProps:1,radius:1,duration:1},V0=function(t,e,n,i){if(e.linkedProps){var s=e.linkedProps.split(","),o={},a,l,c,h,f,d;for(a=0;a<s.length;a++)l=s[a],c=e[l],c&&(Qa(c.velocity)?h=c.velocity:(f=f||iu(t),h=f&&f.isTracking(l)?f.get(l):0),d=Math.abs(h/ru(c,"resistance",i)),o[l]=parseFloat(n(t,l))+wd(h,d));return o}},qE=function(t,e,n,i,s,o){if(n===void 0&&(n=10),i===void 0&&(i=.2),s===void 0&&(s=1),o===void 0&&(o=0),VE(t)&&(t=R0(t)[0]),!t)return 0;var a=0,l=Os,c=e.inertia||e,h=L0(t).get,f=ru(c,"resistance",Ka.resistance),d,u,_,p,m,g,b,y,S,D;D=V0(t,c,h,f);for(d in c)z0[d]||(u=c[d],Wr(u)||(y=y||iu(t),y&&y.isTracking(d)?u=Qa(u)?{velocity:u}:{velocity:y.get(d)}:(p=+u||0,_=Math.abs(p/f))),Wr(u)&&(Qa(u.velocity)?p=u.velocity:(y=y||iu(t),p=y&&y.isTracking(d)?y.get(d):0),_=F0(i,n,Math.abs(p/ru(u,"resistance",f))),m=parseFloat(h(t,d))||0,g=m+wd(p,_),"end"in u&&(u=k0(u,D&&d in D?D:g,u.max,u.min,d,c.radius,p),o&&(ja===e&&(ja=c=YE(e)),c[d]=XE(u,c[d],"end"))),"max"in u&&g>+u.max+E0?(S=u.unitFactor||Ka.unitFactors[d]||1,b=m>u.max&&u.min!==u.max||p*S>-15&&p*S<45?i+(n-i)*.1:A0(m,u.max,p),b+s<l&&(l=b+s)):"min"in u&&g<+u.min-E0&&(S=u.unitFactor||Ka.unitFactors[d]||1,b=m<u.min&&u.min!==u.max||p*S>-45&&p*S<15?i+(n-i)*.1:A0(m,u.min,p),b+s<l&&(l=b+s)),b>a&&(a=b)),_>a&&(a=_));return a>l&&(a=l),a>n?n:a<i?i:a},D0=function(){Ze=U0(),Ze&&(w0=Ze.parseEase,R0=Ze.utils.toArray,P0=Ze.utils.getUnit,L0=Ze.core.getCache,F0=Ze.utils.clamp,Sd=Ze.core.getStyleSaver,N0=Ze.core.reverting||function(){},yd=w0("power3"),bd=yd(.05),I0=Ze.core.PropTween,Ze.config({resistance:100,unitFactors:{time:1e3,totalTime:1e3,progress:1e3,totalProgress:1e3}}),Ka=Ze.config(),Ze.registerPlugin(Xo),C0=1)},su={version:"3.12.5",name:"inertia",register:function(t){Ze=t,D0()},init:function(t,e,n,i,s){C0||D0();var o=iu(t);if(e==="auto"){if(!o){console.warn("No inertia tracking on "+t+". InertiaPlugin.track(target) first.");return}e=o.getAll()}this.styles=Sd&&typeof t.style=="object"&&Sd(t),this.target=t,this.tween=n,ja=e;var a=t._gsap,l=a.get,c=e.duration,h=Wr(c),f=e.preventOvershoot||h&&c.overshoot===0,d=ru(e,"resistance",Ka.resistance),u=Qa(c)?c:qE(t,e,h&&c.max||10,h&&c.min||.2,h&&"overshoot"in c?+c.overshoot:f?0:1,!0),_,p,m,g,b,y,S,D,T;e=ja,ja=0,T=V0(t,e,l,d);for(_ in e)z0[_]||(p=e[_],Md(p)&&(p=p(i,t,s)),Qa(p)?b=p:Wr(p)&&!isNaN(p.velocity)?b=+p.velocity:o&&o.isTracking(_)?b=o.get(_):console.warn("ERROR: No velocity was defined for "+t+" property: "+_),y=wd(b,u),D=0,m=l(t,_),g=P0(m),m=parseFloat(m),Wr(p)&&(S=m+y,"end"in p&&(p=k0(p,T&&_ in T?T:S,p.max,p.min,_,e.radius,b)),"max"in p&&+p.max<S?f||p.preventOvershoot?y=p.max-m:D=p.max-m-y:"min"in p&&+p.min>S&&(f||p.preventOvershoot?y=p.min-m:D=p.min-m-y)),this._props.push(_),this.styles&&this.styles.save(_),this._pt=new I0(this._pt,t,_,m,0,GE,0,a.set(t,_,this)),this._pt.u=g||0,this._pt.c1=y,this._pt.c2=D);return n.duration(u),HE},render:function(t,e){var n=e._pt;if(t=yd(e.tween._time/e.tween._dur),t||!N0())for(;n;)n.set(n.t,n.p,WE(n.s+n.c1*t+n.c2*t*t)+n.u,n.d,t),n=n._next;else e.styles.revert()}};"track,untrack,isTracking,getVelocity,getByTarget".split(",").forEach(function(r){return su[r]=Xo[r]});U0()&&Ze.registerPlugin(su);var H0=()=>{ue.registerPlugin(te,Us,su);let r=document.querySelector("#posts"),t=document.querySelector(".posts");if(!r||!t)return;let e=ue.matchMedia();e.add("(max-width: 767px)",()=>{Us.create(t,{type:"x",edgeResistance:.65,bounds:{minX:window.innerWidth-t.scrollWidth,maxX:0},inertia:!0}),t.querySelectorAll("*").forEach(i=>{i.style.touchAction="pan-y"})}),e.add("(min-width: 768px) and (max-width: 991px)",()=>{ue.to(t,{xPercent:-170,ease:"none",scrollTrigger:{trigger:"#posts",start:"top top",end:"+=120%",pin:!0,scrub:.5,invalidateOnRefresh:!0}})}),e.add("(min-width: 992px)",()=>{ue.to(t,{xPercent:-30,ease:"none",scrollTrigger:{trigger:"#posts",start:"top top",end:"+=100%",pin:!0,scrub:.5,invalidateOnRefresh:!0}})})};window.Webflow||(window.Webflow=[]);window.Webflow.push(()=>{Im(),jm(),Wm(),J_(),Nm(),ng(),Qm(),Lm(),Km(),Gm(),Pm(),$_(),H0()});})();
|
|
3846
|
+
`,blending:Pr,transparent:!0});g.needsUpdate=!0;let b=new Vc(d,g);r.add(b)}function l(){requestAnimationFrame(l);let h=Date.now()*.003;r.rotation.z+=.001/4,r.rotation.y+=5e-4/4,r.position.y=Math.sin(h*.05)*.05,s.lookAt(i.position),s.updateMatrixWorld(),n.render(i,s)}function c(){let h=window.innerWidth,f=window.innerHeight;s.aspect=h/f,s.updateProjectionMatrix(),n.setSize(h,f)}a(),o(),c(),n.compile(i,s),l(),window.addEventListener("resize",c,!1)}window.addEventListener("load",t,!1)};var $_=()=>{let r=document.querySelector(".blog-post-image_cover");r&&ue.timeline().fromTo(r,{y:"0"},{y:"-100%",duration:.6,ease:"circ.out"})};var rr,Is,id,$c,ka,Zc,Jc,za,vi="transform",nd=vi+"Origin",K_,j_=function(t){var e=t.ownerDocument||t;for(!(vi in t.style)&&("msTransform"in t.style)&&(vi="msTransform",nd=vi+"Origin");e.parentNode&&(e=e.parentNode););if(Is=window,Jc=new Br,e){rr=e,id=e.documentElement,$c=e.body,za=rr.createElementNS("http://www.w3.org/2000/svg","g"),za.style.transform="none";var n=e.createElement("div"),i=e.createElement("div"),s=e&&(e.body||e.firstElementChild);s&&s.appendChild&&(s.appendChild(n),n.appendChild(i),n.setAttribute("style","position:static;transform:translate3d(0,0,1px)"),K_=i.offsetParent!==n,s.removeChild(n))}return e},_E=function(t){for(var e,n;t&&t!==$c;)n=t._gsap,n&&n.uncache&&n.get(t,"x"),n&&!n.scaleX&&!n.scaleY&&n.renderTransform&&(n.scaleX=n.scaleY=1e-4,n.renderTransform(1,n),e?e.push(n):e=[n]),t=t.parentNode;return e},Q_=[],t0=[],xE=function(){return Is.pageYOffset||rr.scrollTop||id.scrollTop||$c.scrollTop||0},vE=function(){return Is.pageXOffset||rr.scrollLeft||id.scrollLeft||$c.scrollLeft||0},rd=function(t){return t.ownerSVGElement||((t.tagName+"").toLowerCase()==="svg"?t:null)},yE=function r(t){if(Is.getComputedStyle(t).position==="fixed")return!0;if(t=t.parentNode,t&&t.nodeType===1)return r(t)},td=function r(t,e){if(t.parentNode&&(rr||j_(t))){var n=rd(t),i=n?n.getAttribute("xmlns")||"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",s=n?e?"rect":"g":"div",o=e!==2?0:100,a=e===3?100:0,l="position:absolute;display:block;pointer-events:none;margin:0;padding:0;",c=rr.createElementNS?rr.createElementNS(i.replace(/^https/,"http"),s):rr.createElement(s);return e&&(n?(Zc||(Zc=r(t)),c.setAttribute("width",.01),c.setAttribute("height",.01),c.setAttribute("transform","translate("+o+","+a+")"),Zc.appendChild(c)):(ka||(ka=r(t),ka.style.cssText=l),c.style.cssText=l+"width:0.1px;height:0.1px;top:"+a+"px;left:"+o+"px",ka.appendChild(c))),c}throw"Need document and parent."},SE=function(t){for(var e=new Br,n=0;n<t.numberOfItems;n++)e.multiply(t.getItem(n).matrix);return e},ME=function(t){var e=t.getCTM(),n;return e||(n=t.style[vi],t.style[vi]="none",t.appendChild(za),e=za.getCTM(),t.removeChild(za),n?t.style[vi]=n:t.style.removeProperty(vi.replace(/([A-Z])/g,"-$1").toLowerCase())),e||Jc.clone()},bE=function(t,e){var n=rd(t),i=t===n,s=n?Q_:t0,o=t.parentNode,a,l,c,h,f,d;if(t===Is)return t;if(s.length||s.push(td(t,1),td(t,2),td(t,3)),a=n?Zc:ka,n)i?(c=ME(t),h=-c.e/c.a,f=-c.f/c.d,l=Jc):t.getBBox?(c=t.getBBox(),l=t.transform?t.transform.baseVal:{},l=l.numberOfItems?l.numberOfItems>1?SE(l):l.getItem(0).matrix:Jc,h=l.a*c.x+l.c*c.y,f=l.b*c.x+l.d*c.y):(l=new Br,h=f=0),e&&t.tagName.toLowerCase()==="g"&&(h=f=0),(i?n:o).appendChild(a),a.setAttribute("transform","matrix("+l.a+","+l.b+","+l.c+","+l.d+","+(l.e+h)+","+(l.f+f)+")");else{if(h=f=0,K_)for(l=t.offsetParent,c=t;c&&(c=c.parentNode)&&c!==l&&c.parentNode;)(Is.getComputedStyle(c)[vi]+"").length>4&&(h=c.offsetLeft,f=c.offsetTop,c=0);if(d=Is.getComputedStyle(t),d.position!=="absolute"&&d.position!=="fixed")for(l=t.offsetParent;o&&o!==l;)h+=o.scrollLeft||0,f+=o.scrollTop||0,o=o.parentNode;c=a.style,c.top=t.offsetTop-f+"px",c.left=t.offsetLeft-h+"px",c[vi]=d[vi],c[nd]=d[nd],c.position=d.position==="fixed"?"fixed":"absolute",t.parentNode.appendChild(a)}return a},ed=function(t,e,n,i,s,o,a){return t.a=e,t.b=n,t.c=i,t.d=s,t.e=o,t.f=a,t},Br=function(){function r(e,n,i,s,o,a){e===void 0&&(e=1),n===void 0&&(n=0),i===void 0&&(i=0),s===void 0&&(s=1),o===void 0&&(o=0),a===void 0&&(a=0),ed(this,e,n,i,s,o,a)}var t=r.prototype;return t.inverse=function(){var n=this.a,i=this.b,s=this.c,o=this.d,a=this.e,l=this.f,c=n*o-i*s||1e-10;return ed(this,o/c,-i/c,-s/c,n/c,(s*l-o*a)/c,-(n*l-i*a)/c)},t.multiply=function(n){var i=this.a,s=this.b,o=this.c,a=this.d,l=this.e,c=this.f,h=n.a,f=n.c,d=n.b,u=n.d,_=n.e,p=n.f;return ed(this,h*i+d*o,h*s+d*a,f*i+u*o,f*s+u*a,l+_*i+p*o,c+_*s+p*a)},t.clone=function(){return new r(this.a,this.b,this.c,this.d,this.e,this.f)},t.equals=function(n){var i=this.a,s=this.b,o=this.c,a=this.d,l=this.e,c=this.f;return i===n.a&&s===n.b&&o===n.c&&a===n.d&&l===n.e&&c===n.f},t.apply=function(n,i){i===void 0&&(i={});var s=n.x,o=n.y,a=this.a,l=this.b,c=this.c,h=this.d,f=this.e,d=this.f;return i.x=s*a+o*c+f||0,i.y=s*l+o*h+d||0,i},r}();function kr(r,t,e,n){if(!r||!r.parentNode||(rr||j_(r)).documentElement===r)return new Br;var i=_E(r),s=rd(r),o=s?Q_:t0,a=bE(r,e),l=o[0].getBoundingClientRect(),c=o[1].getBoundingClientRect(),h=o[2].getBoundingClientRect(),f=a.parentNode,d=!n&&yE(r),u=new Br((c.left-l.left)/100,(c.top-l.top)/100,(h.left-l.left)/100,(h.top-l.top)/100,l.left+(d?0:vE()),l.top+(d?0:xE()));if(f.removeChild(a),i)for(l=i.length;l--;)c=i[l],c.scaleX=c.scaleY=0,c.renderTransform(1,c);return t?u.inverse():u}function e0(r){if(r===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r}function wE(r,t){r.prototype=Object.create(t.prototype),r.prototype.constructor=r,r.__proto__=t}var pe,be,Gn,Mi,ar,sd,or,ud,Ha,Gr,f0,hd,qa,md,Ga,yi,Wa,Qc,d0,fd,eu=0,p0=function(){return typeof window<"u"},m0=function(){return pe||p0()&&(pe=window.gsap)&&pe.registerPlugin&&pe},Hr=function(t){return typeof t=="function"},Xa=function(t){return typeof t=="object"},Si=function(t){return typeof t>"u"},tu=function(){return!1},Ya="transform",dd="transformOrigin",zr=function(t){return Math.round(t*1e4)/1e4},Va=Array.isArray,Kc=function(t,e){var n=Gn.createElementNS?Gn.createElementNS((e||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),t):Gn.createElement(t);return n.style?n:Gn.createElement(t)},n0=180/Math.PI,Ls=1e20,EE=new Br,Vr=Date.now||function(){return new Date().getTime()},Ns=[],ko={},TE=0,AE=/^(?:a|input|textarea|button|select)$/i,i0=0,Oo={},sr={},g0=function(t,e){var n={},i;for(i in t)n[i]=e?t[i]*e:t[i];return n},DE=function(t,e){for(var n in e)n in t||(t[n]=e[n]);return t},r0=function r(t,e){for(var n=t.length,i;n--;)e?t[n].style.touchAction=e:t[n].style.removeProperty("touch-action"),i=t[n].children,i&&i.length&&r(i,e)},_0=function(){return Ns.forEach(function(t){return t()})},CE=function(t){Ns.push(t),Ns.length===1&&pe.ticker.add(_0)},s0=function(){return!Ns.length&&pe.ticker.remove(_0)},o0=function(t){for(var e=Ns.length;e--;)Ns[e]===t&&Ns.splice(e,1);pe.to(s0,{overwrite:!0,delay:15,duration:0,onComplete:s0,data:"_draggable"})},RE=function(t,e){for(var n in e)n in t||(t[n]=e[n]);return t},qe=function(t,e,n,i){if(t.addEventListener){var s=qa[e];i=i||(f0?{passive:!1}:null),t.addEventListener(s||e,n,i),s&&e!==s&&t.addEventListener(e,n,i)}},He=function(t,e,n,i){if(t.removeEventListener){var s=qa[e];t.removeEventListener(s||e,n,i),s&&e!==s&&t.removeEventListener(e,n,i)}},si=function(t){t.preventDefault&&t.preventDefault(),t.preventManipulation&&t.preventManipulation()},PE=function(t,e){for(var n=t.length;n--;)if(t[n].identifier===e)return!0},IE=function r(t){md=t.touches&&eu<t.touches.length,He(t.target,"touchend",r)},a0=function(t){md=t.touches&&eu<t.touches.length,qe(t.target,"touchend",IE)},zo=function(t){return be.pageYOffset||t.scrollTop||t.documentElement.scrollTop||t.body.scrollTop||0},Vo=function(t){return be.pageXOffset||t.scrollLeft||t.documentElement.scrollLeft||t.body.scrollLeft||0},l0=function r(t,e){qe(t,"scroll",e),Ho(t.parentNode)||r(t.parentNode,e)},c0=function r(t,e){He(t,"scroll",e),Ho(t.parentNode)||r(t.parentNode,e)},Ho=function(t){return!t||t===Mi||t.nodeType===9||t===Gn.body||t===be||!t.nodeType||!t.parentNode},u0=function(t,e){var n=e==="x"?"Width":"Height",i="scroll"+n,s="client"+n;return Math.max(0,Ho(t)?Math.max(Mi[i],ar[i])-(be["inner"+n]||Mi[s]||ar[s]):t[i]-t[s])},od=function r(t,e){var n=u0(t,"x"),i=u0(t,"y");Ho(t)?t=sr:r(t.parentNode,e),t._gsMaxScrollX=n,t._gsMaxScrollY=i,e||(t._gsScrollX=t.scrollLeft||0,t._gsScrollY=t.scrollTop||0)},ad=function(t,e,n){var i=t.style;i&&(Si(i[e])&&(e=Ha(e,t)||e),n==null?i.removeProperty&&i.removeProperty(e.replace(/([A-Z])/g,"-$1").toLowerCase()):i[e]=n)},Za=function(t){return be.getComputedStyle(t instanceof Element?t:t.host||(t.parentNode||{}).host||t)},Fs={},Bo=function(t){if(t===be)return Fs.left=Fs.top=0,Fs.width=Fs.right=Mi.clientWidth||t.innerWidth||ar.clientWidth||0,Fs.height=Fs.bottom=(t.innerHeight||0)-20<Mi.clientHeight?Mi.clientHeight:t.innerHeight||ar.clientHeight||0,Fs;var e=t.ownerDocument||Gn,n=Si(t.pageX)?!t.nodeType&&!Si(t.left)&&!Si(t.top)?t:Gr(t)[0].getBoundingClientRect():{left:t.pageX-Vo(e),top:t.pageY-zo(e),right:t.pageX-Vo(e)+1,bottom:t.pageY-zo(e)+1};return Si(n.right)&&!Si(n.width)?(n.right=n.left+n.width,n.bottom=n.top+n.height):Si(n.width)&&(n={width:n.right-n.left,height:n.bottom-n.top,right:n.right,left:n.left,bottom:n.bottom,top:n.top}),n},Oe=function(t,e,n){var i=t.vars,s=i[n],o=t._listeners[e],a;return Hr(s)&&(a=s.apply(i.callbackScope||t,i[n+"Params"]||[t.pointerEvent])),o&&t.dispatchEvent(e)===!1&&(a=!1),a},h0=function(t,e){var n=Gr(t)[0],i,s,o;return!n.nodeType&&n!==be?Si(t.left)?(s=t.min||t.minX||t.minRotation||0,i=t.min||t.minY||0,{left:s,top:i,width:(t.max||t.maxX||t.maxRotation||0)-s,height:(t.max||t.maxY||0)-i}):(o={x:0,y:0},{left:t.left-o.x,top:t.top-o.y,width:t.width,height:t.height}):LE(n,e)},oi={},LE=function(t,e){e=Gr(e)[0];var n=t.getBBox&&t.ownerSVGElement,i=t.ownerDocument||Gn,s,o,a,l,c,h,f,d,u,_,p,m,g;if(t===be)a=zo(i),s=Vo(i),o=s+(i.documentElement.clientWidth||t.innerWidth||i.body.clientWidth||0),l=a+((t.innerHeight||0)-20<i.documentElement.clientHeight?i.documentElement.clientHeight:t.innerHeight||i.body.clientHeight||0);else{if(e===be||Si(e))return t.getBoundingClientRect();s=a=0,n?(_=t.getBBox(),p=_.width,m=_.height):(t.viewBox&&(_=t.viewBox.baseVal)&&(s=_.x||0,a=_.y||0,p=_.width,m=_.height),p||(g=Za(t),_=g.boxSizing==="border-box",p=(parseFloat(g.width)||t.clientWidth||0)+(_?0:parseFloat(g.borderLeftWidth)+parseFloat(g.borderRightWidth)),m=(parseFloat(g.height)||t.clientHeight||0)+(_?0:parseFloat(g.borderTopWidth)+parseFloat(g.borderBottomWidth)))),o=p,l=m}return t===e?{left:s,top:a,width:o-s,height:l-a}:(c=kr(e,!0).multiply(kr(t)),h=c.apply({x:s,y:a}),f=c.apply({x:o,y:a}),d=c.apply({x:o,y:l}),u=c.apply({x:s,y:l}),s=Math.min(h.x,f.x,d.x,u.x),a=Math.min(h.y,f.y,d.y,u.y),{left:s,top:a,width:Math.max(h.x,f.x,d.x,u.x)-s,height:Math.max(h.y,f.y,d.y,u.y)-a})},ld=function(t,e,n,i,s,o){var a={},l,c,h;if(e)if(s!==1&&e instanceof Array){if(a.end=l=[],h=e.length,Xa(e[0]))for(c=0;c<h;c++)l[c]=g0(e[c],s);else for(c=0;c<h;c++)l[c]=e[c]*s;n+=1.1,i-=1.1}else Hr(e)?a.end=function(f){var d=e.call(t,f),u,_;if(s!==1)if(Xa(d)){u={};for(_ in d)u[_]=d[_]*s;d=u}else d*=s;return d}:a.end=e;return(n||n===0)&&(a.max=n),(i||i===0)&&(a.min=i),o&&(a.velocity=0),a},FE=function r(t){var e;return!t||!t.getAttribute||t===ar?!1:(e=t.getAttribute("data-clickable"))==="true"||e!=="false"&&(AE.test(t.nodeName+"")||t.getAttribute("contentEditable")==="true")?!0:r(t.parentNode)},jc=function(t,e){for(var n=t.length,i;n--;)i=t[n],i.ondragstart=i.onselectstart=e?null:tu,pe.set(i,{lazy:!0,userSelect:e?"text":"none"})},NE=function r(t){if(Za(t).position==="fixed")return!0;if(t=t.parentNode,t&&t.nodeType===1)return r(t)},x0,pd,UE=function(t,e){t=pe.utils.toArray(t)[0],e=e||{};var n=document.createElement("div"),i=n.style,s=t.firstChild,o=0,a=0,l=t.scrollTop,c=t.scrollLeft,h=t.scrollWidth,f=t.scrollHeight,d=0,u=0,_=0,p,m,g,b,y,S;x0&&e.force3D!==!1?(y="translate3d(",S="px,0px)"):Ya&&(y="translate(",S="px)"),this.scrollTop=function(D,T){if(!arguments.length)return-this.top();this.top(-D,T)},this.scrollLeft=function(D,T){if(!arguments.length)return-this.left();this.left(-D,T)},this.left=function(D,T){if(!arguments.length)return-(t.scrollLeft+a);var w=t.scrollLeft-c,P=a;if((w>2||w<-2)&&!T){c=t.scrollLeft,pe.killTweensOf(this,{left:1,scrollLeft:1}),this.left(-c),e.onKill&&e.onKill();return}D=-D,D<0?(a=D-.5|0,D=0):D>u?(a=D-u|0,D=u):a=0,(a||P)&&(this._skip||(i[Ya]=y+-a+"px,"+-o+S),a+d>=0&&(i.paddingRight=a+d+"px")),t.scrollLeft=D|0,c=t.scrollLeft},this.top=function(D,T){if(!arguments.length)return-(t.scrollTop+o);var w=t.scrollTop-l,P=o;if((w>2||w<-2)&&!T){l=t.scrollTop,pe.killTweensOf(this,{top:1,scrollTop:1}),this.top(-l),e.onKill&&e.onKill();return}D=-D,D<0?(o=D-.5|0,D=0):D>_?(o=D-_|0,D=_):o=0,(o||P)&&(this._skip||(i[Ya]=y+-a+"px,"+-o+S)),t.scrollTop=D|0,l=t.scrollTop},this.maxScrollTop=function(){return _},this.maxScrollLeft=function(){return u},this.disable=function(){for(s=n.firstChild;s;)b=s.nextSibling,t.appendChild(s),s=b;t===n.parentNode&&t.removeChild(n)},this.enable=function(){if(s=t.firstChild,s!==n){for(;s;)b=s.nextSibling,n.appendChild(s),s=b;t.appendChild(n),this.calibrate()}},this.calibrate=function(D){var T=t.clientWidth===p,w,P,M;l=t.scrollTop,c=t.scrollLeft,!(T&&t.clientHeight===m&&n.offsetHeight===g&&h===t.scrollWidth&&f===t.scrollHeight&&!D)&&((o||a)&&(P=this.left(),M=this.top(),this.left(-t.scrollLeft),this.top(-t.scrollTop)),w=Za(t),(!T||D)&&(i.display="block",i.width="auto",i.paddingRight="0px",d=Math.max(0,t.scrollWidth-t.clientWidth),d&&(d+=parseFloat(w.paddingLeft)+(pd?parseFloat(w.paddingRight):0))),i.display="inline-block",i.position="relative",i.overflow="visible",i.verticalAlign="top",i.boxSizing="content-box",i.width="100%",i.paddingRight=d+"px",pd&&(i.paddingBottom=w.paddingBottom),p=t.clientWidth,m=t.clientHeight,h=t.scrollWidth,f=t.scrollHeight,u=t.scrollWidth-p,_=t.scrollHeight-m,g=n.offsetHeight,i.display="block",(P||M)&&(this.left(P),this.top(M)))},this.content=n,this.element=t,this._skip=!1,this.enable()},cd=function(t){if(p0()&&document.body){var e=window&&window.navigator;be=window,Gn=document,Mi=Gn.documentElement,ar=Gn.body,sd=Kc("div"),Qc=!!window.PointerEvent,or=Kc("div"),or.style.cssText="visibility:hidden;height:1px;top:-1px;pointer-events:none;position:relative;clear:both;cursor:grab",Wa=or.style.cursor==="grab"?"grab":"move",Ga=e&&e.userAgent.toLowerCase().indexOf("android")!==-1,hd="ontouchstart"in Mi&&"orientation"in be||e&&(e.MaxTouchPoints>0||e.msMaxTouchPoints>0),pd=function(){var n=Kc("div"),i=Kc("div"),s=i.style,o=ar,a;return s.display="inline-block",s.position="relative",n.style.cssText="width:90px;height:40px;padding:10px;overflow:auto;visibility:hidden",n.appendChild(i),o.appendChild(n),a=i.offsetHeight+18>n.scrollHeight,o.removeChild(n),a}(),qa=function(n){for(var i=n.split(","),s=("onpointerdown"in sd?"pointerdown,pointermove,pointerup,pointercancel":"onmspointerdown"in sd?"MSPointerDown,MSPointerMove,MSPointerUp,MSPointerCancel":n).split(","),o={},a=4;--a>-1;)o[i[a]]=s[a],o[s[a]]=i[a];try{Mi.addEventListener("test",null,Object.defineProperty({},"passive",{get:function(){f0=1}}))}catch{}return o}("touchstart,touchmove,touchend,touchcancel"),qe(Gn,"touchcancel",tu),qe(be,"touchmove",tu),ar&&ar.addEventListener("touchstart",tu),qe(Gn,"contextmenu",function(){for(var n in ko)ko[n].isPressed&&ko[n].endDrag()}),pe=ud=m0()}pe?(yi=pe.plugins.inertia,d0=pe.core.context||function(){},Ha=pe.utils.checkPrefix,Ya=Ha(Ya),dd=Ha(dd),Gr=pe.utils.toArray,fd=pe.core.getStyleSaver,x0=!!Ha("perspective")):t&&console.warn("Please gsap.registerPlugin(Draggable)")},OE=function(){function r(e){this._listeners={},this.target=e||this}var t=r.prototype;return t.addEventListener=function(n,i){var s=this._listeners[n]||(this._listeners[n]=[]);~s.indexOf(i)||s.push(i)},t.removeEventListener=function(n,i){var s=this._listeners[n],o=s&&s.indexOf(i);o>=0&&s.splice(o,1)},t.dispatchEvent=function(n){var i=this,s;return(this._listeners[n]||[]).forEach(function(o){return o.call(i,{type:n,target:i.target})===!1&&(s=!1)}),s},r}(),Us=function(r){wE(t,r);function t(e,n){var i;i=r.call(this)||this,ud||cd(1),e=Gr(e)[0],i.styles=fd&&fd(e,"transform,left,top"),yi||(yi=pe.plugins.inertia),i.vars=n=g0(n||{}),i.target=e,i.x=i.y=i.rotation=0,i.dragResistance=parseFloat(n.dragResistance)||0,i.edgeResistance=isNaN(n.edgeResistance)?1:parseFloat(n.edgeResistance)||0,i.lockAxis=n.lockAxis,i.autoScroll=n.autoScroll||0,i.lockedAxis=null,i.allowEventDefault=!!n.allowEventDefault,pe.getProperty(e,"x");var s=(n.type||"x,y").toLowerCase(),o=~s.indexOf("x")||~s.indexOf("y"),a=s.indexOf("rotation")!==-1,l=a?"rotation":o?"x":"left",c=o?"y":"top",h=!!(~s.indexOf("x")||~s.indexOf("left")||s==="scroll"),f=!!(~s.indexOf("y")||~s.indexOf("top")||s==="scroll"),d=n.minimumMovement||2,u=e0(i),_=Gr(n.trigger||n.handle||e),p={},m=0,g=!1,b=n.autoScrollMarginTop||40,y=n.autoScrollMarginRight||40,S=n.autoScrollMarginBottom||40,D=n.autoScrollMarginLeft||40,T=n.clickableTest||FE,w=0,P=e._gsap||pe.core.getCache(e),M=NE(e),v=function(L,rt){return parseFloat(P.get(e,L,rt))},I=e.ownerDocument||Gn,N,C,V,$,W,Z,z,U,R,at,_t,Ut,X,ot,xt,ct,Rt,kt,q,Jt,It,Ft,bt,Et,Ht,G,$t,A,x,F,Y,tt,it,yt=function(L){return si(L),L.stopImmediatePropagation&&L.stopImmediatePropagation(),!1},pt=function Mt(L){if(u.autoScroll&&u.isDragging&&(g||Rt)){var rt=e,O=u.autoScroll*15,j,dt,et,wt,ft,Dt,zt,Nt;for(g=!1,sr.scrollTop=be.pageYOffset!=null?be.pageYOffset:I.documentElement.scrollTop!=null?I.documentElement.scrollTop:I.body.scrollTop,sr.scrollLeft=be.pageXOffset!=null?be.pageXOffset:I.documentElement.scrollLeft!=null?I.documentElement.scrollLeft:I.body.scrollLeft,wt=u.pointerX-sr.scrollLeft,ft=u.pointerY-sr.scrollTop;rt&&!dt;)dt=Ho(rt.parentNode),j=dt?sr:rt.parentNode,et=dt?{bottom:Math.max(Mi.clientHeight,be.innerHeight||0),right:Math.max(Mi.clientWidth,be.innerWidth||0),left:0,top:0}:j.getBoundingClientRect(),Dt=zt=0,f&&(Nt=j._gsMaxScrollY-j.scrollTop,Nt<0?zt=Nt:ft>et.bottom-S&&Nt?(g=!0,zt=Math.min(Nt,O*(1-Math.max(0,et.bottom-ft)/S)|0)):ft<et.top+b&&j.scrollTop&&(g=!0,zt=-Math.min(j.scrollTop,O*(1-Math.max(0,ft-et.top)/b)|0)),zt&&(j.scrollTop+=zt)),h&&(Nt=j._gsMaxScrollX-j.scrollLeft,Nt<0?Dt=Nt:wt>et.right-y&&Nt?(g=!0,Dt=Math.min(Nt,O*(1-Math.max(0,et.right-wt)/y)|0)):wt<et.left+D&&j.scrollLeft&&(g=!0,Dt=-Math.min(j.scrollLeft,O*(1-Math.max(0,wt-et.left)/D)|0)),Dt&&(j.scrollLeft+=Dt)),dt&&(Dt||zt)&&(be.scrollTo(j.scrollLeft,j.scrollTop),st(u.pointerX+Dt,u.pointerY+zt)),rt=j}if(Rt){var Qt=u.x,he=u.y;a?(u.deltaX=Qt-parseFloat(P.rotation),u.rotation=Qt,P.rotation=Qt+"deg",P.renderTransform(1,P)):C?(f&&(u.deltaY=he-C.top(),C.top(he)),h&&(u.deltaX=Qt-C.left(),C.left(Qt))):o?(f&&(u.deltaY=he-parseFloat(P.y),P.y=he+"px"),h&&(u.deltaX=Qt-parseFloat(P.x),P.x=Qt+"px"),P.renderTransform(1,P)):(f&&(u.deltaY=he-parseFloat(e.style.top||0),e.style.top=he+"px"),h&&(u.deltaX=Qt-parseFloat(e.style.left||0),e.style.left=Qt+"px")),U&&!L&&!A&&(A=!0,Oe(u,"drag","onDrag")===!1&&(h&&(u.x-=u.deltaX),f&&(u.y-=u.deltaY),Mt(!0)),A=!1)}Rt=!1},lt=function(L,rt){var O=u.x,j=u.y,dt,et;e._gsap||(P=pe.core.getCache(e)),P.uncache&&pe.getProperty(e,"x"),o?(u.x=parseFloat(P.x),u.y=parseFloat(P.y)):a?u.x=u.rotation=parseFloat(P.rotation):C?(u.y=C.top(),u.x=C.left()):(u.y=parseFloat(e.style.top||(et=Za(e))&&et.top)||0,u.x=parseFloat(e.style.left||(et||{}).left)||0),(q||Jt||It)&&!rt&&(u.isDragging||u.isThrowing)&&(It&&(Oo.x=u.x,Oo.y=u.y,dt=It(Oo),dt.x!==u.x&&(u.x=dt.x,Rt=!0),dt.y!==u.y&&(u.y=dt.y,Rt=!0)),q&&(dt=q(u.x),dt!==u.x&&(u.x=dt,a&&(u.rotation=dt),Rt=!0)),Jt&&(dt=Jt(u.y),dt!==u.y&&(u.y=dt),Rt=!0)),Rt&&pt(!0),L||(u.deltaX=u.x-O,u.deltaY=u.y-j,Oe(u,"throwupdate","onThrowUpdate"))},Lt=function(L,rt,O,j){return rt==null&&(rt=-Ls),O==null&&(O=Ls),Hr(L)?function(dt){var et=u.isPressed?1-u.edgeResistance:1;return L.call(u,(dt>O?O+(dt-O)*et:dt<rt?rt+(dt-rt)*et:dt)*j)*j}:Va(L)?function(dt){for(var et=L.length,wt=0,ft=Ls,Dt,zt;--et>-1;)Dt=L[et],zt=Dt-dt,zt<0&&(zt=-zt),zt<ft&&Dt>=rt&&Dt<=O&&(wt=et,ft=zt);return L[wt]}:isNaN(L)?function(dt){return dt}:function(){return L*j}},ht=function(L,rt,O,j,dt,et,wt){return et=et&&et<Ls?et*et:Ls,Hr(L)?function(ft){var Dt=u.isPressed?1-u.edgeResistance:1,zt=ft.x,Nt=ft.y,Qt,he,me;return ft.x=zt=zt>O?O+(zt-O)*Dt:zt<rt?rt+(zt-rt)*Dt:zt,ft.y=Nt=Nt>dt?dt+(Nt-dt)*Dt:Nt<j?j+(Nt-j)*Dt:Nt,Qt=L.call(u,ft),Qt!==ft&&(ft.x=Qt.x,ft.y=Qt.y),wt!==1&&(ft.x*=wt,ft.y*=wt),et<Ls&&(he=ft.x-zt,me=ft.y-Nt,he*he+me*me>et&&(ft.x=zt,ft.y=Nt)),ft}:Va(L)?function(ft){for(var Dt=L.length,zt=0,Nt=Ls,Qt,he,me,oe;--Dt>-1;)me=L[Dt],Qt=me.x-ft.x,he=me.y-ft.y,oe=Qt*Qt+he*he,oe<Nt&&(zt=Dt,Nt=oe);return Nt<=et?L[zt]:ft}:function(ft){return ft}},vt=function(){var L,rt,O,j;z=!1,C?(C.calibrate(),u.minX=_t=-C.maxScrollLeft(),u.minY=X=-C.maxScrollTop(),u.maxX=at=u.maxY=Ut=0,z=!0):n.bounds&&(L=h0(n.bounds,e.parentNode),a?(u.minX=_t=L.left,u.maxX=at=L.left+L.width,u.minY=X=u.maxY=Ut=0):!Si(n.bounds.maxX)||!Si(n.bounds.maxY)?(L=n.bounds,u.minX=_t=L.minX,u.minY=X=L.minY,u.maxX=at=L.maxX,u.maxY=Ut=L.maxY):(rt=h0(e,e.parentNode),u.minX=_t=Math.round(v(l,"px")+L.left-rt.left),u.minY=X=Math.round(v(c,"px")+L.top-rt.top),u.maxX=at=Math.round(_t+(L.width-rt.width)),u.maxY=Ut=Math.round(X+(L.height-rt.height))),_t>at&&(u.minX=at,u.maxX=at=_t,_t=u.minX),X>Ut&&(u.minY=Ut,u.maxY=Ut=X,X=u.minY),a&&(u.minRotation=_t,u.maxRotation=at),z=!0),n.liveSnap&&(O=n.liveSnap===!0?n.snap||{}:n.liveSnap,j=Va(O)||Hr(O),a?(q=Lt(j?O:O.rotation,_t,at,1),Jt=null):O.points?It=ht(j?O:O.points,_t,at,X,Ut,O.radius,C?-1:1):(h&&(q=Lt(j?O:O.x||O.left||O.scrollLeft,_t,at,C?-1:1)),f&&(Jt=Lt(j?O:O.y||O.top||O.scrollTop,X,Ut,C?-1:1))))},Yt=function(){u.isThrowing=!1,Oe(u,"throwcomplete","onThrowComplete")},ut=function(){u.isThrowing=!1},Tt=function(L,rt){var O,j,dt,et;L&&yi?(L===!0&&(O=n.snap||n.liveSnap||{},j=Va(O)||Hr(O),L={resistance:(n.throwResistance||n.resistance||1e3)/(a?10:1)},a?L.rotation=ld(u,j?O:O.rotation,at,_t,1,rt):(h&&(L[l]=ld(u,j?O:O.points||O.x||O.left,at,_t,C?-1:1,rt||u.lockedAxis==="x")),f&&(L[c]=ld(u,j?O:O.points||O.y||O.top,Ut,X,C?-1:1,rt||u.lockedAxis==="y")),(O.points||Va(O)&&Xa(O[0]))&&(L.linkedProps=l+","+c,L.radius=O.radius))),u.isThrowing=!0,et=isNaN(n.overshootTolerance)?n.edgeResistance===1?0:1-u.edgeResistance+.2:n.overshootTolerance,L.duration||(L.duration={max:Math.max(n.minDuration||0,"maxDuration"in n?n.maxDuration:2),min:isNaN(n.minDuration)?et===0||Xa(L)&&L.resistance>1e3?0:.5:n.minDuration,overshoot:et}),u.tween=dt=pe.to(C||e,{inertia:L,data:"_draggable",inherit:!1,onComplete:Yt,onInterrupt:ut,onUpdate:n.fastMode?Oe:lt,onUpdateParams:n.fastMode?[u,"onthrowupdate","onThrowUpdate"]:O&&O.radius?[!1,!0]:[]}),n.fastMode||(C&&(C._skip=!0),dt.render(1e9,!0,!0),lt(!0,!0),u.endX=u.x,u.endY=u.y,a&&(u.endRotation=u.x),dt.play(0),lt(!0,!0),C&&(C._skip=!1))):z&&u.applyBounds()},Wt=function(L){var rt=Et,O;Et=kr(e.parentNode,!0),L&&u.isPressed&&!Et.equals(rt||new Br)&&(O=rt.inverse().apply({x:V,y:$}),Et.apply(O,O),V=O.x,$=O.y),Et.equals(EE)&&(Et=null)},qt=function(){var L=1-u.edgeResistance,rt=M?Vo(I):0,O=M?zo(I):0,j,dt,et;o&&(P.x=v(l,"px")+"px",P.y=v(c,"px")+"px",P.renderTransform()),Wt(!1),oi.x=u.pointerX-rt,oi.y=u.pointerY-O,Et&&Et.apply(oi,oi),V=oi.x,$=oi.y,Rt&&(st(u.pointerX,u.pointerY),pt(!0)),tt=kr(e),C?(vt(),Z=C.top(),W=C.left()):(ce()?(lt(!0,!0),vt()):u.applyBounds(),a?(j=e.ownerSVGElement?[P.xOrigin-e.getBBox().x,P.yOrigin-e.getBBox().y]:(Za(e)[dd]||"0 0").split(" "),ct=u.rotationOrigin=kr(e).apply({x:parseFloat(j[0])||0,y:parseFloat(j[1])||0}),lt(!0,!0),dt=u.pointerX-ct.x-rt,et=ct.y-u.pointerY+O,W=u.x,Z=u.y=Math.atan2(et,dt)*n0):(Z=v(c,"px"),W=v(l,"px"))),z&&L&&(W>at?W=at+(W-at)/L:W<_t&&(W=_t-(_t-W)/L),a||(Z>Ut?Z=Ut+(Z-Ut)/L:Z<X&&(Z=X-(X-Z)/L))),u.startX=W=zr(W),u.startY=Z=zr(Z)},ce=function(){return u.tween&&u.tween.isActive()},Zt=function(){or.parentNode&&!ce()&&!u.isDragging&&or.parentNode.removeChild(or)},k=function(L,rt){var O;if(!N||u.isPressed||!L||(L.type==="mousedown"||L.type==="pointerdown")&&!rt&&Vr()-w<30&&qa[u.pointerEvent.type]){Y&&L&&N&&si(L);return}if(Ht=ce(),it=!1,u.pointerEvent=L,qa[L.type]?(bt=~L.type.indexOf("touch")?L.currentTarget||L.target:I,qe(bt,"touchend",mt),qe(bt,"touchmove",Q),qe(bt,"touchcancel",mt),qe(I,"touchstart",a0)):(bt=null,qe(I,"mousemove",Q)),$t=null,(!Qc||!bt)&&(qe(I,"mouseup",mt),L&&L.target&&qe(L.target,"mouseup",mt)),Ft=T.call(u,L.target)&&n.dragClickables===!1&&!rt,Ft){qe(L.target,"change",mt),Oe(u,"pressInit","onPressInit"),Oe(u,"press","onPress"),jc(_,!0),Y=!1;return}if(G=!bt||h===f||u.vars.allowNativeTouchScrolling===!1||u.vars.allowContextMenu&&L&&(L.ctrlKey||L.which>2)?!1:h?"y":"x",Y=!G&&!u.allowEventDefault,Y&&(si(L),qe(be,"touchforcechange",si)),L.changedTouches?(L=ot=L.changedTouches[0],xt=L.identifier):L.pointerId?xt=L.pointerId:ot=xt=null,eu++,CE(pt),$=u.pointerY=L.pageY,V=u.pointerX=L.pageX,Oe(u,"pressInit","onPressInit"),(G||u.autoScroll)&&od(e.parentNode),e.parentNode&&u.autoScroll&&!C&&!a&&e.parentNode._gsMaxScrollX&&!or.parentNode&&!e.getBBox&&(or.style.width=e.parentNode.scrollWidth+"px",e.parentNode.appendChild(or)),qt(),u.tween&&u.tween.kill(),u.isThrowing=!1,pe.killTweensOf(C||e,p,!0),C&&pe.killTweensOf(e,{scrollTo:1},!0),u.tween=u.lockedAxis=null,(n.zIndexBoost||!a&&!C&&n.zIndexBoost!==!1)&&(e.style.zIndex=t.zIndex++),u.isPressed=!0,U=!!(n.onDrag||u._listeners.drag),R=!!(n.onMove||u._listeners.move),n.cursor!==!1||n.activeCursor)for(O=_.length;--O>-1;)pe.set(_[O],{cursor:n.activeCursor||n.cursor||(Wa==="grab"?"grabbing":Wa)});Oe(u,"press","onPress")},Q=function(L){var rt=L,O,j,dt,et,wt,ft;if(!N||md||!u.isPressed||!L){Y&&L&&N&&si(L);return}if(u.pointerEvent=L,O=L.changedTouches,O){if(L=O[0],L!==ot&&L.identifier!==xt){for(et=O.length;--et>-1&&(L=O[et]).identifier!==xt&&L.target!==e;);if(et<0)return}}else if(L.pointerId&&xt&&L.pointerId!==xt)return;if(bt&&G&&!$t&&(oi.x=L.pageX-(M?Vo(I):0),oi.y=L.pageY-(M?zo(I):0),Et&&Et.apply(oi,oi),j=oi.x,dt=oi.y,wt=Math.abs(j-V),ft=Math.abs(dt-$),(wt!==ft&&(wt>d||ft>d)||Ga&&G===$t)&&($t=wt>ft&&h?"x":"y",G&&$t!==G&&qe(be,"touchforcechange",si),u.vars.lockAxisOnTouchScroll!==!1&&h&&f&&(u.lockedAxis=$t==="x"?"y":"x",Hr(u.vars.onLockAxis)&&u.vars.onLockAxis.call(u,rt)),Ga&&G===$t))){mt(rt);return}!u.allowEventDefault&&(!G||$t&&G!==$t)&&rt.cancelable!==!1?(si(rt),Y=!0):Y&&(Y=!1),u.autoScroll&&(g=!0),st(L.pageX,L.pageY,R)},st=function(L,rt,O){var j=1-u.dragResistance,dt=1-u.edgeResistance,et=u.pointerX,wt=u.pointerY,ft=Z,Dt=u.x,zt=u.y,Nt=u.endX,Qt=u.endY,he=u.endRotation,me=Rt,oe,E,B,H,K,J;u.pointerX=L,u.pointerY=rt,M&&(L-=Vo(I),rt-=zo(I)),a?(H=Math.atan2(ct.y-rt,L-ct.x)*n0,K=u.y-H,K>180?(Z-=360,u.y=H):K<-180&&(Z+=360,u.y=H),u.x!==W||Math.abs(Z-H)>d?(u.y=H,B=W+(Z-H)*j):B=W):(Et&&(J=L*Et.a+rt*Et.c+Et.e,rt=L*Et.b+rt*Et.d+Et.f,L=J),E=rt-$,oe=L-V,E<d&&E>-d&&(E=0),oe<d&&oe>-d&&(oe=0),(u.lockAxis||u.lockedAxis)&&(oe||E)&&(J=u.lockedAxis,J||(u.lockedAxis=J=h&&Math.abs(oe)>Math.abs(E)?"y":f?"x":null,J&&Hr(u.vars.onLockAxis)&&u.vars.onLockAxis.call(u,u.pointerEvent)),J==="y"?E=0:J==="x"&&(oe=0)),B=zr(W+oe*j),H=zr(Z+E*j)),(q||Jt||It)&&(u.x!==B||u.y!==H&&!a)&&(It&&(Oo.x=B,Oo.y=H,J=It(Oo),B=zr(J.x),H=zr(J.y)),q&&(B=zr(q(B))),Jt&&(H=zr(Jt(H)))),z&&(B>at?B=at+Math.round((B-at)*dt):B<_t&&(B=_t+Math.round((B-_t)*dt)),a||(H>Ut?H=Math.round(Ut+(H-Ut)*dt):H<X&&(H=Math.round(X+(H-X)*dt)))),(u.x!==B||u.y!==H&&!a)&&(a?(u.endRotation=u.x=u.endX=B,Rt=!0):(f&&(u.y=u.endY=H,Rt=!0),h&&(u.x=u.endX=B,Rt=!0)),!O||Oe(u,"move","onMove")!==!1?!u.isDragging&&u.isPressed&&(u.isDragging=it=!0,Oe(u,"dragstart","onDragStart")):(u.pointerX=et,u.pointerY=wt,Z=ft,u.x=Dt,u.y=zt,u.endX=Nt,u.endY=Qt,u.endRotation=he,Rt=me))},mt=function Mt(L,rt){if(!N||!u.isPressed||L&&xt!=null&&!rt&&(L.pointerId&&L.pointerId!==xt&&L.target!==e||L.changedTouches&&!PE(L.changedTouches,xt))){Y&&L&&N&&si(L);return}u.isPressed=!1;var O=L,j=u.isDragging,dt=u.vars.allowContextMenu&&L&&(L.ctrlKey||L.which>2),et=pe.delayedCall(.001,Zt),wt,ft,Dt,zt,Nt;if(bt?(He(bt,"touchend",Mt),He(bt,"touchmove",Q),He(bt,"touchcancel",Mt),He(I,"touchstart",a0)):He(I,"mousemove",Q),He(be,"touchforcechange",si),(!Qc||!bt)&&(He(I,"mouseup",Mt),L&&L.target&&He(L.target,"mouseup",Mt)),Rt=!1,j&&(m=i0=Vr(),u.isDragging=!1),o0(pt),Ft&&!dt){L&&(He(L.target,"change",Mt),u.pointerEvent=O),jc(_,!1),Oe(u,"release","onRelease"),Oe(u,"click","onClick"),Ft=!1;return}for(ft=_.length;--ft>-1;)ad(_[ft],"cursor",n.cursor||(n.cursor!==!1?Wa:null));if(eu--,L){if(wt=L.changedTouches,wt&&(L=wt[0],L!==ot&&L.identifier!==xt)){for(ft=wt.length;--ft>-1&&(L=wt[ft]).identifier!==xt&&L.target!==e;);if(ft<0&&!rt)return}u.pointerEvent=O,u.pointerX=L.pageX,u.pointerY=L.pageY}return dt&&O?(si(O),Y=!0,Oe(u,"release","onRelease")):O&&!j?(Y=!1,Ht&&(n.snap||n.bounds)&&Tt(n.inertia||n.throwProps),Oe(u,"release","onRelease"),(!Ga||O.type!=="touchmove")&&O.type.indexOf("cancel")===-1&&(Oe(u,"click","onClick"),Vr()-w<300&&Oe(u,"doubleclick","onDoubleClick"),zt=O.target||e,w=Vr(),Nt=function(){w!==x&&u.enabled()&&!u.isPressed&&!O.defaultPrevented&&(zt.click?zt.click():I.createEvent&&(Dt=I.createEvent("MouseEvents"),Dt.initMouseEvent("click",!0,!0,be,1,u.pointerEvent.screenX,u.pointerEvent.screenY,u.pointerX,u.pointerY,!1,!1,!1,!1,0,null),zt.dispatchEvent(Dt)))},!Ga&&!O.defaultPrevented&&pe.delayedCall(.05,Nt))):(Tt(n.inertia||n.throwProps),!u.allowEventDefault&&O&&(n.dragClickables!==!1||!T.call(u,O.target))&&j&&(!G||$t&&G===$t)&&O.cancelable!==!1?(Y=!0,si(O)):Y=!1,Oe(u,"release","onRelease")),ce()&&et.duration(u.tween.duration()),j&&Oe(u,"dragend","onDragEnd"),!0},gt=function(L){if(L&&u.isDragging&&!C){var rt=L.target||e.parentNode,O=rt.scrollLeft-rt._gsScrollX,j=rt.scrollTop-rt._gsScrollY;(O||j)&&(Et?(V-=O*Et.a+j*Et.c,$-=j*Et.d+O*Et.b):(V-=O,$-=j),rt._gsScrollX+=O,rt._gsScrollY+=j,st(u.pointerX,u.pointerY))}},Bt=function(L){var rt=Vr(),O=rt-w<100,j=rt-m<50,dt=O&&x===w,et=u.pointerEvent&&u.pointerEvent.defaultPrevented,wt=O&&F===w,ft=L.isTrusted||L.isTrusted==null&&O&&dt;if((dt||j&&u.vars.suppressClickOnDrag!==!1)&&L.stopImmediatePropagation&&L.stopImmediatePropagation(),O&&!(u.pointerEvent&&u.pointerEvent.defaultPrevented)&&(!dt||ft&&!wt)){ft&&dt&&(F=w),x=w;return}(u.isPressed||j||O)&&(!ft||!L.detail||!O||et)&&si(L),!O&&!j&&!it&&(L&&L.target&&(u.pointerEvent=L),Oe(u,"click","onClick"))},ee=function(L){return Et?{x:L.x*Et.a+L.y*Et.c+Et.e,y:L.x*Et.b+L.y*Et.d+Et.f}:{x:L.x,y:L.y}};return kt=t.get(e),kt&&kt.kill(),i.startDrag=function(Mt,L){var rt,O,j,dt;k(Mt||u.pointerEvent,!0),L&&!u.hitTest(Mt||u.pointerEvent)&&(rt=Bo(Mt||u.pointerEvent),O=Bo(e),j=ee({x:rt.left+rt.width/2,y:rt.top+rt.height/2}),dt=ee({x:O.left+O.width/2,y:O.top+O.height/2}),V-=j.x-dt.x,$-=j.y-dt.y),u.isDragging||(u.isDragging=it=!0,Oe(u,"dragstart","onDragStart"))},i.drag=Q,i.endDrag=function(Mt){return mt(Mt||u.pointerEvent,!0)},i.timeSinceDrag=function(){return u.isDragging?0:(Vr()-m)/1e3},i.timeSinceClick=function(){return(Vr()-w)/1e3},i.hitTest=function(Mt,L){return t.hitTest(u.target,Mt,L)},i.getDirection=function(Mt,L){var rt=Mt==="velocity"&&yi?Mt:Xa(Mt)&&!a?"element":"start",O,j,dt,et,wt,ft;return rt==="element"&&(wt=Bo(u.target),ft=Bo(Mt)),O=rt==="start"?u.x-W:rt==="velocity"?yi.getVelocity(e,l):wt.left+wt.width/2-(ft.left+ft.width/2),a?O<0?"counter-clockwise":"clockwise":(L=L||2,j=rt==="start"?u.y-Z:rt==="velocity"?yi.getVelocity(e,c):wt.top+wt.height/2-(ft.top+ft.height/2),dt=Math.abs(O/j),et=dt<1/L?"":O<0?"left":"right",dt<L&&(et!==""&&(et+="-"),et+=j<0?"up":"down"),et)},i.applyBounds=function(Mt,L){var rt,O,j,dt,et,wt;if(Mt&&n.bounds!==Mt)return n.bounds=Mt,u.update(!0,L);if(lt(!0),vt(),z&&!ce()){if(rt=u.x,O=u.y,rt>at?rt=at:rt<_t&&(rt=_t),O>Ut?O=Ut:O<X&&(O=X),(u.x!==rt||u.y!==O)&&(j=!0,u.x=u.endX=rt,a?u.endRotation=rt:u.y=u.endY=O,Rt=!0,pt(!0),u.autoScroll&&!u.isDragging))for(od(e.parentNode),dt=e,sr.scrollTop=be.pageYOffset!=null?be.pageYOffset:I.documentElement.scrollTop!=null?I.documentElement.scrollTop:I.body.scrollTop,sr.scrollLeft=be.pageXOffset!=null?be.pageXOffset:I.documentElement.scrollLeft!=null?I.documentElement.scrollLeft:I.body.scrollLeft;dt&&!wt;)wt=Ho(dt.parentNode),et=wt?sr:dt.parentNode,f&&et.scrollTop>et._gsMaxScrollY&&(et.scrollTop=et._gsMaxScrollY),h&&et.scrollLeft>et._gsMaxScrollX&&(et.scrollLeft=et._gsMaxScrollX),dt=et;u.isThrowing&&(j||u.endX>at||u.endX<_t||u.endY>Ut||u.endY<X)&&Tt(n.inertia||n.throwProps,j)}return u},i.update=function(Mt,L,rt){if(L&&u.isPressed){var O=kr(e),j=tt.apply({x:u.x-W,y:u.y-Z}),dt=kr(e.parentNode,!0);dt.apply({x:O.e-j.x,y:O.f-j.y},j),u.x-=j.x-dt.e,u.y-=j.y-dt.f,pt(!0),qt()}var et=u.x,wt=u.y;return Wt(!L),Mt?u.applyBounds():(Rt&&rt&&pt(!0),lt(!0)),L&&(st(u.pointerX,u.pointerY),Rt&&pt(!0)),u.isPressed&&!L&&(h&&Math.abs(et-u.x)>.01||f&&Math.abs(wt-u.y)>.01&&!a)&&qt(),u.autoScroll&&(od(e.parentNode,u.isDragging),g=u.isDragging,pt(!0),c0(e,gt),l0(e,gt)),u},i.enable=function(Mt){var L={lazy:!0},rt,O,j;if(n.cursor!==!1&&(L.cursor=n.cursor||Wa),pe.utils.checkPrefix("touchCallout")&&(L.touchCallout="none"),Mt!=="soft"){for(r0(_,h===f?"none":n.allowNativeTouchScrolling&&e.scrollHeight===e.clientHeight==(e.scrollWidth===e.clientHeight)||n.allowEventDefault?"manipulation":h?"pan-y":"pan-x"),O=_.length;--O>-1;)j=_[O],Qc||qe(j,"mousedown",k),qe(j,"touchstart",k),qe(j,"click",Bt,!0),pe.set(j,L),j.getBBox&&j.ownerSVGElement&&h!==f&&pe.set(j.ownerSVGElement,{touchAction:n.allowNativeTouchScrolling||n.allowEventDefault?"manipulation":h?"pan-y":"pan-x"}),n.allowContextMenu||qe(j,"contextmenu",yt);jc(_,!1)}return l0(e,gt),N=!0,yi&&Mt!=="soft"&&yi.track(C||e,o?"x,y":a?"rotation":"top,left"),e._gsDragID=rt="d"+TE++,ko[rt]=u,C&&(C.enable(),C.element._gsDragID=rt),(n.bounds||a)&&qt(),n.bounds&&u.applyBounds(),u},i.disable=function(Mt){for(var L=u.isDragging,rt=_.length,O;--rt>-1;)ad(_[rt],"cursor",null);if(Mt!=="soft"){for(r0(_,null),rt=_.length;--rt>-1;)O=_[rt],ad(O,"touchCallout",null),He(O,"mousedown",k),He(O,"touchstart",k),He(O,"click",Bt,!0),He(O,"contextmenu",yt);jc(_,!0),bt&&(He(bt,"touchcancel",mt),He(bt,"touchend",mt),He(bt,"touchmove",Q)),He(I,"mouseup",mt),He(I,"mousemove",Q)}return c0(e,gt),N=!1,yi&&Mt!=="soft"&&(yi.untrack(C||e,o?"x,y":a?"rotation":"top,left"),u.tween&&u.tween.kill()),C&&C.disable(),o0(pt),u.isDragging=u.isPressed=Ft=!1,L&&Oe(u,"dragend","onDragEnd"),u},i.enabled=function(Mt,L){return arguments.length?Mt?u.enable(L):u.disable(L):N},i.kill=function(){return u.isThrowing=!1,u.tween&&u.tween.kill(),u.disable(),pe.set(_,{clearProps:"userSelect"}),delete ko[e._gsDragID],u},i.revert=function(){this.kill(),this.styles&&this.styles.revert()},~s.indexOf("scroll")&&(C=i.scrollProxy=new UE(e,DE({onKill:function(){u.isPressed&&mt(null)}},n)),e.style.overflowY=f&&!hd?"auto":"hidden",e.style.overflowX=h&&!hd?"auto":"hidden",e=C.content),a?p.rotation=1:(h&&(p[l]=1),f&&(p[c]=1)),P.force3D="force3D"in n?n.force3D:!0,d0(e0(i)),i.enable(),i}return t.register=function(n){pe=n,cd()},t.create=function(n,i){return ud||cd(!0),Gr(n).map(function(s){return new t(s,i)})},t.get=function(n){return ko[(Gr(n)[0]||{})._gsDragID]},t.timeSinceDrag=function(){return(Vr()-i0)/1e3},t.hitTest=function(n,i,s){if(n===i)return!1;var o=Bo(n),a=Bo(i),l=o.top,c=o.left,h=o.right,f=o.bottom,d=o.width,u=o.height,_=a.left>h||a.right<c||a.top>f||a.bottom<l,p,m,g;return _||!s?!_:(g=(s+"").indexOf("%")!==-1,s=parseFloat(s)||0,p={left:Math.max(c,a.left),top:Math.max(l,a.top)},p.width=Math.min(h,a.right)-p.left,p.height=Math.min(f,a.bottom)-p.top,p.width<0||p.height<0?!1:g?(s*=.01,m=p.width*p.height,m>=d*u*s||m>=a.width*a.height*s):p.width>s&&p.height>s)},t}(OE);RE(Us.prototype,{pointerX:0,pointerY:0,startX:0,startY:0,deltaX:0,deltaY:0,isDragging:!1,isPressed:!1});Us.zIndex=1e3;Us.version="3.12.5";m0()&&pe.registerPlugin(Us);var Ui,_d,$a,y0,Go,Wo,nu,S0,M0,b0=function(){return Ui||typeof window<"u"&&(Ui=window.gsap)},xd={},BE=function(t){return Math.round(t*1e4)/1e4},vd=function(t){return M0(t).id},Ja=function(t){return xd[vd(typeof t=="string"?$a(t)[0]:t)]},v0=function(t){var e=Go,n;if(t-nu>=.05)for(S0=nu,nu=t;e;)n=e.g(e.t,e.p),(n!==e.v1||t-e.t1>.2)&&(e.v2=e.v1,e.v1=n,e.t2=e.t1,e.t1=t),e=e._next},kE={deg:360,rad:Math.PI*2},gd=function(){Ui=b0(),Ui&&($a=Ui.utils.toArray,y0=Ui.utils.getUnit,M0=Ui.core.getCache,Wo=Ui.ticker,_d=1)},zE=function(t,e,n,i){this.t=t,this.p=e,this.g=t._gsap.get,this.rCap=kE[n||y0(this.g(t,e))],this.v1=this.v2=0,this.t1=this.t2=Wo.time,i&&(this._next=i,i._prev=this)},Xo=function(){function r(e,n){_d||gd(),this.target=$a(e)[0],xd[vd(this.target)]=this,this._props={},n&&this.add(n)}r.register=function(n){Ui=n,gd()};var t=r.prototype;return t.get=function(n,i){var s=this._props[n]||console.warn("Not tracking "+n+" velocity."),o,a,l;return o=parseFloat(i?s.v1:s.g(s.t,s.p)),a=o-parseFloat(s.v2),l=s.rCap,l&&(a=a%l,a!==a%(l/2)&&(a=a<0?a+l:a-l)),BE(a/((i?s.t1:Wo.time)-s.t2))},t.getAll=function(){var n={},i=this._props,s;for(s in i)n[s]=this.get(s);return n},t.isTracking=function(n){return n in this._props},t.add=function(n,i){n in this._props||(Go||(Wo.add(v0),nu=S0=Wo.time),Go=this._props[n]=new zE(this.target,n,i,Go))},t.remove=function(n){var i=this._props[n],s,o;i&&(s=i._prev,o=i._next,s&&(s._next=o),o?o._prev=s:Go===i&&(Wo.remove(v0),Go=0),delete this._props[n])},t.kill=function(n){for(var i in this._props)this.remove(i);n||delete xd[vd(this.target)]},r.track=function(n,i,s){_d||gd();for(var o=[],a=$a(n),l=i.split(","),c=(s||"").split(","),h=a.length,f,d;h--;){for(f=Ja(a[h])||new r(a[h]),d=l.length;d--;)f.add(l[d],c[d]||c[0]);o.push(f)}return o},r.untrack=function(n,i){var s=(i||"").split(",");$a(n).forEach(function(o){var a=Ja(o);a&&(s.length?s.forEach(function(l){return a.remove(l)}):a.kill(1))})},r.isTracking=function(n,i){var s=Ja(n);return s&&s.isTracking(i)},r.getVelocity=function(n,i){var s=Ja(n);return!s||!s.isTracking(i)?console.warn("Not tracking velocity of "+i):s.get(i)},r}();Xo.getByTarget=Ja;b0()&&Ui.registerPlugin(Xo);var Ze,C0,w0,R0,yd,Ka,P0,I0,L0,bd,F0,ja,Sd,N0,iu=Xo.getByTarget,U0=function(){return Ze||typeof window<"u"&&(Ze=window.gsap)&&Ze.registerPlugin&&Ze},VE=function(t){return typeof t=="string"},Qa=function(t){return typeof t=="number"},Wr=function(t){return typeof t=="object"},Md=function(t){return typeof t=="function"},HE=1,O0=Array.isArray,GE=function(t){return t},Os=1e10,E0=1/Os,B0=.05,WE=function(t){return Math.round(t*1e4)/1e4},XE=function(t,e,n){for(var i in e)!(i in t)&&i!==n&&(t[i]=e[i]);return t},YE=function r(t){var e={},n,i;for(n in t)e[n]=Wr(i=t[n])&&!O0(i)?r(i):i;return e},T0=function(t,e,n,i,s){var o=e.length,a=0,l=Os,c,h,f,d;if(Wr(t)){for(;o--;){c=e[o],h=0;for(f in t)d=c[f]-t[f],h+=d*d;h<l&&(a=o,l=h)}if((s||Os)<Os&&s<Math.sqrt(l))return t}else for(;o--;)c=e[o],h=c-t,h<0&&(h=-h),h<l&&c>=i&&c<=n&&(a=o,l=h);return e[a]},k0=function(t,e,n,i,s,o,a){if(t.end==="auto")return t;var l=t.end,c,h;if(n=isNaN(n)?Os:n,i=isNaN(i)?-Os:i,Wr(e)){if(c=e.calculated?e:(Md(l)?l(e,a):T0(e,l,n,i,o))||e,!e.calculated){for(h in c)e[h]=c[h];e.calculated=!0}c=c[s]}else c=Md(l)?l(e,a):O0(l)?T0(e,l,n,i,o):parseFloat(l);return c>n?c=n:c<i&&(c=i),{max:c,min:c,unitFactor:t.unitFactor}},ru=function(t,e,n){return isNaN(t[e])?n:+t[e]},wd=function(t,e){return e*B0*t/bd},A0=function(t,e,n){return Math.abs((e-t)*bd/n/B0)},z0={resistance:1,checkpoint:1,preventOvershoot:1,linkedProps:1,radius:1,duration:1},V0=function(t,e,n,i){if(e.linkedProps){var s=e.linkedProps.split(","),o={},a,l,c,h,f,d;for(a=0;a<s.length;a++)l=s[a],c=e[l],c&&(Qa(c.velocity)?h=c.velocity:(f=f||iu(t),h=f&&f.isTracking(l)?f.get(l):0),d=Math.abs(h/ru(c,"resistance",i)),o[l]=parseFloat(n(t,l))+wd(h,d));return o}},qE=function(t,e,n,i,s,o){if(n===void 0&&(n=10),i===void 0&&(i=.2),s===void 0&&(s=1),o===void 0&&(o=0),VE(t)&&(t=R0(t)[0]),!t)return 0;var a=0,l=Os,c=e.inertia||e,h=L0(t).get,f=ru(c,"resistance",Ka.resistance),d,u,_,p,m,g,b,y,S,D;D=V0(t,c,h,f);for(d in c)z0[d]||(u=c[d],Wr(u)||(y=y||iu(t),y&&y.isTracking(d)?u=Qa(u)?{velocity:u}:{velocity:y.get(d)}:(p=+u||0,_=Math.abs(p/f))),Wr(u)&&(Qa(u.velocity)?p=u.velocity:(y=y||iu(t),p=y&&y.isTracking(d)?y.get(d):0),_=F0(i,n,Math.abs(p/ru(u,"resistance",f))),m=parseFloat(h(t,d))||0,g=m+wd(p,_),"end"in u&&(u=k0(u,D&&d in D?D:g,u.max,u.min,d,c.radius,p),o&&(ja===e&&(ja=c=YE(e)),c[d]=XE(u,c[d],"end"))),"max"in u&&g>+u.max+E0?(S=u.unitFactor||Ka.unitFactors[d]||1,b=m>u.max&&u.min!==u.max||p*S>-15&&p*S<45?i+(n-i)*.1:A0(m,u.max,p),b+s<l&&(l=b+s)):"min"in u&&g<+u.min-E0&&(S=u.unitFactor||Ka.unitFactors[d]||1,b=m<u.min&&u.min!==u.max||p*S>-45&&p*S<15?i+(n-i)*.1:A0(m,u.min,p),b+s<l&&(l=b+s)),b>a&&(a=b)),_>a&&(a=_));return a>l&&(a=l),a>n?n:a<i?i:a},D0=function(){Ze=U0(),Ze&&(w0=Ze.parseEase,R0=Ze.utils.toArray,P0=Ze.utils.getUnit,L0=Ze.core.getCache,F0=Ze.utils.clamp,Sd=Ze.core.getStyleSaver,N0=Ze.core.reverting||function(){},yd=w0("power3"),bd=yd(.05),I0=Ze.core.PropTween,Ze.config({resistance:100,unitFactors:{time:1e3,totalTime:1e3,progress:1e3,totalProgress:1e3}}),Ka=Ze.config(),Ze.registerPlugin(Xo),C0=1)},su={version:"3.12.5",name:"inertia",register:function(t){Ze=t,D0()},init:function(t,e,n,i,s){C0||D0();var o=iu(t);if(e==="auto"){if(!o){console.warn("No inertia tracking on "+t+". InertiaPlugin.track(target) first.");return}e=o.getAll()}this.styles=Sd&&typeof t.style=="object"&&Sd(t),this.target=t,this.tween=n,ja=e;var a=t._gsap,l=a.get,c=e.duration,h=Wr(c),f=e.preventOvershoot||h&&c.overshoot===0,d=ru(e,"resistance",Ka.resistance),u=Qa(c)?c:qE(t,e,h&&c.max||10,h&&c.min||.2,h&&"overshoot"in c?+c.overshoot:f?0:1,!0),_,p,m,g,b,y,S,D,T;e=ja,ja=0,T=V0(t,e,l,d);for(_ in e)z0[_]||(p=e[_],Md(p)&&(p=p(i,t,s)),Qa(p)?b=p:Wr(p)&&!isNaN(p.velocity)?b=+p.velocity:o&&o.isTracking(_)?b=o.get(_):console.warn("ERROR: No velocity was defined for "+t+" property: "+_),y=wd(b,u),D=0,m=l(t,_),g=P0(m),m=parseFloat(m),Wr(p)&&(S=m+y,"end"in p&&(p=k0(p,T&&_ in T?T:S,p.max,p.min,_,e.radius,b)),"max"in p&&+p.max<S?f||p.preventOvershoot?y=p.max-m:D=p.max-m-y:"min"in p&&+p.min>S&&(f||p.preventOvershoot?y=p.min-m:D=p.min-m-y)),this._props.push(_),this.styles&&this.styles.save(_),this._pt=new I0(this._pt,t,_,m,0,GE,0,a.set(t,_,this)),this._pt.u=g||0,this._pt.c1=y,this._pt.c2=D);return n.duration(u),HE},render:function(t,e){var n=e._pt;if(t=yd(e.tween._time/e.tween._dur),t||!N0())for(;n;)n.set(n.t,n.p,WE(n.s+n.c1*t+n.c2*t*t)+n.u,n.d,t),n=n._next;else e.styles.revert()}};"track,untrack,isTracking,getVelocity,getByTarget".split(",").forEach(function(r){return su[r]=Xo[r]});U0()&&Ze.registerPlugin(su);var H0=()=>{ue.registerPlugin(te,Us,su);let r=document.querySelector("#posts"),t=document.querySelector(".posts");if(!r||!t)return;let e=ue.matchMedia();e.add("(max-width: 767px)",()=>{Us.create(t,{type:"x",edgeResistance:.65,bounds:{minX:window.innerWidth-t.scrollWidth,maxX:0},inertia:!0}),t.querySelectorAll("*").forEach(i=>{i.style.touchAction="pan-y"})}),e.add("(min-width: 768px) and (max-width: 991px)",()=>{ue.to(t,{xPercent:-170,ease:"none",scrollTrigger:{trigger:"#posts",start:"top top",end:"+=120%",pin:!0,scrub:.5,invalidateOnRefresh:!0}})}),e.add("(min-width: 992px)",()=>{ue.to(t,{xPercent:-30,ease:"none",scrollTrigger:{trigger:"#posts",start:"top top",end:"+=100%",pin:!0,scrub:.5,invalidateOnRefresh:!0}})})};window.Webflow||(window.Webflow=[]);window.Webflow.push(()=>{Im(),jm(),Wm(),J_(),Nm(),ng(),Qm(),Lm(),Km(),Gm(),Pm(),$_(),H0()});})();
|
|
3847
3847
|
/*! Bundled license information:
|
|
3848
3848
|
|
|
3849
3849
|
gsap/gsap-core.js:
|