"use strict";(()=>{function xe(u){if(u===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return u}function fn(u,e){u.prototype=Object.create(e.prototype),u.prototype.constructor=u,u.__proto__=e}var fe={autoSleep:120,force3D:"auto",nullTargetWarn:1,units:{lineHeight:""}},at={duration:.5,overwrite:!1,delay:0},Ti,re,W,ye=1e8,H=1/ye,fi=Math.PI*2,br=fi/4,Cr=0,mn=Math.sqrt,wr=Math.cos,Tr=Math.sin,K=function(e){return typeof e=="string"},Y=function(e){return typeof e=="function"},Pe=function(e){return typeof e=="number"},Yt=function(e){return typeof e=="undefined"},Ae=function(e){return typeof e=="object"},pe=function(e){return e!==!1},Si=function(){return typeof window!="undefined"},Ht=function(e){return Y(e)||K(e)},Dn=typeof ArrayBuffer=="function"&&ArrayBuffer.isView||function(){},se=Array.isArray,mi=/(?:-?\.?\d|\.)+/gi,Ai=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,Je=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,ai=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,Mi=/[+-]=-?[.\d]+/,gn=/[^,'"\[\]\s]+/gi,Sr=/^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i,z,_e,Di,Li,De={},$t={},_n,yn=function(e){return($t=Xe(e,De))&&j},Xt=function(e,t){},qt=function(e,t){return!t&&void 0},En=function(e,t){return e&&(De[e]=t)&&$t&&($t[e]=t)||De},Ct=function(){return 0},Ar={suppressEvents:!0,isStart:!0,kill:!1},Ut={suppressEvents:!0,kill:!1},Mr={suppressEvents:!0},Fi={},He=[],gi={},vn,de={},li={},an=30,Nt=[],xi="",Ii=function(e){var t=e[0],i,n;if(Ae(t)||Y(t)||(e=[e]),!(i=(t._gsap||{}).harness)){for(n=Nt.length;n--&&!Nt[n].targetTest(t););i=Nt[n]}for(n=e.length;n--;)e[n]&&(e[n]._gsap||(e[n]._gsap=new Bi(e[n],i)))||e.splice(n,1);return e},Ue=function(e){return e._gsap||Ii(Ee(e))[0]._gsap},Pi=function(e,t,i){return(i=e[t])&&Y(i)?e[t]():Yt(i)&&e.getAttribute&&e.getAttribute(t)||i},le=function(e,t){return(e=e.split(",")).forEach(t)||e},X=function(e){return Math.round(e*1e5)/1e5||0},Z=function(e){return Math.round(e*1e7)/1e7||0},Qe=function(e,t){var i=t.charAt(0),n=parseFloat(t.substr(2));return e=parseFloat(e),i==="+"?e+n:i==="-"?e-n:i==="*"?e*n:e/n},Lr=function(e,t){for(var i=t.length,n=0;e.indexOf(t[n])<0&&++n<i;);return n<i},zt=function(){var e=He.length,t=He.slice(0),i,n;for(gi={},He.length=0,i=0;i<e;i++)n=t[i],n&&n._lazy&&(n.render(n._lazy[0],n._lazy[1],!0)._lazy=0)},bn=function(e,t,i,n){He.length&&!re&&zt(),e.render(t,i,n||re&&t<0&&(e._initted||e._startAt)),He.length&&!re&&zt()},Cn=function(e){var t=parseFloat(e);return(t||t===0)&&(e+"").match(gn).length<2?t:K(e)?e.trim():e},wn=function(e){return e},be=function(e,t){for(var i in t)i in e||(e[i]=t[i]);return e},Fr=function(e){return function(t,i){for(var n in i)n in t||n==="duration"&&e||n==="ease"||(t[n]=i[n])}},Xe=function(e,t){for(var i in t)e[i]=t[i];return e},ln=function u(e,t){for(var i in t)i!=="__proto__"&&i!=="constructor"&&i!=="prototype"&&(e[i]=Ae(t[i])?u(e[i]||(e[i]={}),t[i]):t[i]);return e},jt=function(e,t){var i={},n;for(n in e)n in t||(i[n]=e[n]);return i},Et=function(e){var t=e.parent||z,i=e.keyframes?Fr(se(e.keyframes)):be;if(pe(e.inherit))for(;t;)i(e,t.vars.defaults),t=t.parent||t._dp;return e},xr=function(e,t){for(var i=e.length,n=i===t.length;n&&i--&&e[i]===t[i];);return i<0},Tn=function(e,t,i,n,r){i===void 0&&(i="_first"),n===void 0&&(n="_last");var s=e[n],o;if(r)for(o=t[r];s&&s[r]>o;)s=s._prev;return s?(t._next=s._next,s._next=t):(t._next=e[i],e[i]=t),t._next?t._next._prev=t:e[n]=t,t._prev=s,t.parent=t._dp=e,t},Jt=function(e,t,i,n){i===void 0&&(i="_first"),n===void 0&&(n="_last");var r=t._prev,s=t._next;r?r._next=s:e[i]===t&&(e[i]=s),s?s._prev=r:e[n]===t&&(e[n]=r),t._next=t._prev=t.parent=null},Ne=function(e,t){e.parent&&(!t||e.parent.autoRemoveChildren)&&e.parent.remove&&e.parent.remove(e),e._act=0},Ge=function(e,t){if(e&&(!t||t._end>e._dur||t._start<0))for(var i=e;i;)i._dirty=1,i=i.parent;return e},Ir=function(e){for(var t=e.parent;t&&t.parent;)t._dirty=1,t.totalDuration(),t=t.parent;return e},_i=function(e,t,i,n){return e._startAt&&(re?e._startAt.revert(Ut):e.vars.immediateRender&&!e.vars.autoRevert||e._startAt.render(t,!0,n))},Pr=function u(e){return!e||e._ts&&u(e.parent)},un=function(e){return e._repeat?lt(e._tTime,e=e.duration()+e._rDelay)*e:0},lt=function(e,t){var i=Math.floor(e/=t);return e&&i===e?i-1:i},Gt=function(e,t){return(e-t._start)*t._ts+(t._ts>=0?0:t._dirty?t.totalDuration():t._tDur)},Qt=function(e){return e._end=Z(e._start+(e._tDur/Math.abs(e._ts||e._rts||H)||0))},Kt=function(e,t){var i=e._dp;return i&&i.smoothChildTiming&&e._ts&&(e._start=Z(i._time-(e._ts>0?t/e._ts:((e._dirty?e.totalDuration():e._tDur)-t)/-e._ts)),Qt(e),i._dirty||Ge(i,e)),e},Sn=function(e,t){var i;if((t._time||!t._dur&&t._initted||t._start<e._time&&(t._dur||!t.add))&&(i=Gt(e.rawTime(),t),(!t._dur||St(0,t.totalDuration(),i)-t._tTime>H)&&t.render(i,!0)),Ge(e,t)._dp&&e._initted&&e._time>=e._dur&&e._ts){if(e._dur<e.duration())for(i=e;i._dp;)i.rawTime()>=0&&i.totalTime(i._tTime),i=i._dp;e._zTime=-H}},Se=function(e,t,i,n){return t.parent&&Ne(t),t._start=Z((Pe(i)?i:i||e!==z?ge(e,i,t):e._time)+t._delay),t._end=Z(t._start+(t.totalDuration()/Math.abs(t.timeScale())||0)),Tn(e,t,"_first","_last",e._sort?"_start":0),yi(t)||(e._recent=t),n||Sn(e,t),e._ts<0&&Kt(e,e._tTime),e},An=function(e,t){return(De.ScrollTrigger||Xt("scrollTrigger",t))&&De.ScrollTrigger.create(t,e)},Mn=function(e,t,i,n,r){if(Hi(e,t,r),!e._initted)return 1;if(!i&&e._pt&&!re&&(e._dur&&e.vars.lazy!==!1||!e._dur&&e.vars.lazy)&&vn!==he.frame)return He.push(e),e._lazy=[r,n],1},kr=function u(e){var t=e.parent;return t&&t._ts&&t._initted&&!t._lock&&(t.rawTime()<0||u(t))},yi=function(e){var t=e.data;return t==="isFromStart"||t==="isStart"},Br=function(e,t,i,n){var r=e.ratio,s=t<0||!t&&(!e._start&&kr(e)&&!(!e._initted&&yi(e))||(e._ts<0||e._dp._ts<0)&&!yi(e))?0:1,o=e._rDelay,a=0,l,c,h;if(o&&e._repeat&&(a=St(0,e._tDur,t),c=lt(a,o),e._yoyo&&c&1&&(s=1-s),c!==lt(e._tTime,o)&&(r=1-s,e.vars.repeatRefresh&&e._initted&&e.invalidate())),s!==r||re||n||e._zTime===H||!t&&e._zTime){if(!e._initted&&Mn(e,t,n,i,a))return;for(h=e._zTime,e._zTime=t||(i?H:0),i||(i=t&&!h),e.ratio=s,e._from&&(s=1-s),e._time=0,e._tTime=a,l=e._pt;l;)l.r(s,l.d),l=l._next;t<0&&_i(e,t,i,!0),e._onUpdate&&!i&&ve(e,"onUpdate"),a&&e._repeat&&!i&&e.parent&&ve(e,"onRepeat"),(t>=e._tDur||t<0)&&e.ratio===s&&(s&&Ne(e,1),!i&&!re&&(ve(e,s?"onComplete":"onReverseComplete",!0),e._prom&&e._prom()))}else e._zTime||(e._zTime=t)},Rr=function(e,t,i){var n;if(i>t)for(n=e._first;n&&n._start<=i;){if(n.data==="isPause"&&n._start>t)return n;n=n._next}else for(n=e._last;n&&n._start>=i;){if(n.data==="isPause"&&n._start<t)return n;n=n._prev}},ut=function(e,t,i,n){var r=e._repeat,s=Z(t)||0,o=e._tTime/e._tDur;return o&&!n&&(e._time*=s/e._dur),e._dur=s,e._tDur=r?r<0?1e10:Z(s*(r+1)+e._rDelay*r):s,o>0&&!n&&Kt(e,e._tTime=e._tDur*o),e.parent&&Qt(e),i||Ge(e.parent,e),e},cn=function(e){return e instanceof ne?Ge(e):ut(e,e._dur)},Or={_start:0,endTime:Ct,totalDuration:Ct},ge=function u(e,t,i){var n=e.labels,r=e._recent||Or,s=e.duration()>=ye?r.endTime(!1):e._dur,o,a,l;return K(t)&&(isNaN(t)||t in n)?(a=t.charAt(0),l=t.substr(-1)==="%",o=t.indexOf("="),a==="<"||a===">"?(o>=0&&(t=t.replace(/=/,"")),(a==="<"?r._start:r.endTime(r._repeat>=0))+(parseFloat(t.substr(1))||0)*(l?(o<0?r:i).totalDuration()/100:1)):o<0?(t in n||(n[t]=s),n[t]):(a=parseFloat(t.charAt(o-1)+t.substr(o+1)),l&&i&&(a=a/100*(se(i)?i[0]:i).totalDuration()),o>1?u(e,t.substr(0,o-1),i)+a:s+a)):t==null?s:+t},vt=function(e,t,i){var n=Pe(t[1]),r=(n?2:1)+(e<2?0:1),s=t[r],o,a;if(n&&(s.duration=t[1]),s.parent=i,e){for(o=s,a=i;a&&!("immediateRender"in o);)o=a.vars.defaults||{},a=pe(a.vars.inherit)&&a.parent;s.immediateRender=pe(o.immediateRender),e<2?s.runBackwards=1:s.startAt=t[r-1]}return new J(t[0],s,t[r+1])},Ve=function(e,t){return e||e===0?t(e):t},St=function(e,t,i){return i<e?e:i>t?t:i},ee=function(e,t){return!K(e)||!(t=Sr.exec(e))?"":t[1]},Hr=function(e,t,i){return Ve(i,function(n){return St(e,t,n)})},Ei=[].slice,Ln=function(e,t){return e&&Ae(e)&&"length"in e&&(!t&&!e.length||e.length-1 in e&&Ae(e[0]))&&!e.nodeType&&e!==_e},Ur=function(e,t,i){return i===void 0&&(i=[]),e.forEach(function(n){var r;return K(n)&&!t||Ln(n,1)?(r=i).push.apply(r,Ee(n)):i.push(n)})||i},Ee=function(e,t,i){return W&&!t&&W.selector?W.selector(e):K(e)&&!i&&(Di||!ct())?Ei.call((t||Li).querySelectorAll(e),0):se(e)?Ur(e,i):Ln(e)?Ei.call(e,0):e?[e]:[]},vi=function(e){return e=Ee(e)[0]||qt("Invalid scope")||{},function(t){var i=e.current||e.nativeElement||e;return Ee(t,i.querySelectorAll?i:i===e?qt("Invalid scope")||Li.createElement("div"):e)}},Fn=function(e){return e.sort(function(){return .5-Math.random()})},xn=function(e){if(Y(e))return e;var t=Ae(e)?e:{each:e},i=We(t.ease),n=t.from||0,r=parseFloat(t.base)||0,s={},o=n>0&&n<1,a=isNaN(n)||o,l=t.axis,c=n,h=n;return K(n)?c=h={center:.5,edges:.5,end:1}[n]||0:!o&&a&&(c=n[0],h=n[1]),function(p,f,D){var d=(D||t).length,m=s[d],g,y,_,v,E,S,T,w,C;if(!m){if(C=t.grid==="auto"?0:(t.grid||[1,ye])[1],!C){for(T=-ye;T<(T=D[C++].getBoundingClientRect().left)&&C<d;);C--}for(m=s[d]=[],g=a?Math.min(C,d)*c-.5:n%C,y=C===ye?0:a?d*h/C-.5:n/C|0,T=0,w=ye,S=0;S<d;S++)_=S%C-g,v=y-(S/C|0),m[S]=E=l?Math.abs(l==="y"?v:_):mn(_*_+v*v),E>T&&(T=E),E<w&&(w=E);n==="random"&&Fn(m),m.max=T-w,m.min=w,m.v=d=(parseFloat(t.amount)||parseFloat(t.each)*(C>d?d-1:l?l==="y"?d/C:C:Math.max(C,d/C))||0)*(n==="edges"?-1:1),m.b=d<0?r-d:r,m.u=ee(t.amount||t.each)||0,i=i&&d<0?Nn(i):i}return d=(m[p]-m.min)/m.max||0,Z(m.b+(i?i(d):d)*m.v)+m.u}},bi=function(e){var t=Math.pow(10,((e+"").split(".")[1]||"").length);return function(i){var n=Z(Math.round(parseFloat(i)/e)*e*t);return(n-n%1)/t+(Pe(i)?0:ee(i))}},In=function(e,t){var i=se(e),n,r;return!i&&Ae(e)&&(n=i=e.radius||ye,e.values?(e=Ee(e.values),(r=!Pe(e[0]))&&(n*=n)):e=bi(e.increment)),Ve(t,i?Y(e)?function(s){return r=e(s),Math.abs(r-s)<=n?r:s}:function(s){for(var o=parseFloat(r?s.x:s),a=parseFloat(r?s.y:0),l=ye,c=0,h=e.length,p,f;h--;)r?(p=e[h].x-o,f=e[h].y-a,p=p*p+f*f):p=Math.abs(e[h]-o),p<l&&(l=p,c=h);return c=!n||l<=n?e[c]:s,r||c===s||Pe(s)?c:c+ee(s)}:bi(e))},Pn=function(e,t,i,n){return Ve(se(e)?!t:i===!0?!!(i=0):!n,function(){return se(e)?e[~~(Math.random()*e.length)]:(i=i||1e-5)&&(n=i<1?Math.pow(10,(i+"").length-2):1)&&Math.floor(Math.round((e-i/2+Math.random()*(t-e+i*.99))/i)*i*n)/n})},Nr=function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return function(n){return t.reduce(function(r,s){return s(r)},n)}},Vr=function(e,t){return function(i){return e(parseFloat(i))+(t||ee(i))}},$r=function(e,t,i){return Bn(e,t,0,1,i)},kn=function(e,t,i){return Ve(i,function(n){return e[~~t(n)]})},qr=function u(e,t,i){var n=t-e;return se(e)?kn(e,u(0,e.length),t):Ve(i,function(r){return(n+(r-e)%n)%n+e})},zr=function u(e,t,i){var n=t-e,r=n*2;return se(e)?kn(e,u(0,e.length-1),t):Ve(i,function(s){return s=(r+(s-e)%r)%r||0,e+(s>n?r-s:s)})},dt=function(e){for(var t=0,i="",n,r,s,o;~(n=e.indexOf("random(",t));)s=e.indexOf(")",n),o=e.charAt(n+7)==="[",r=e.substr(n+7,s-n-7).match(o?gn:mi),i+=e.substr(t,n-t)+Pn(o?r:+r[0],o?0:+r[1],+r[2]||1e-5),t=s+1;return i+e.substr(t,e.length-t)},Bn=function(e,t,i,n,r){var s=t-e,o=n-i;return Ve(r,function(a){return i+((a-e)/s*o||0)})},jr=function u(e,t,i,n){var r=isNaN(e+t)?0:function(f){return(1-f)*e+f*t};if(!r){var s=K(e),o={},a,l,c,h,p;if(i===!0&&(n=1)&&(i=null),s)e={p:e},t={p:t};else if(se(e)&&!se(t)){for(c=[],h=e.length,p=h-2,l=1;l<h;l++)c.push(u(e[l-1],e[l]));h--,r=function(D){D*=h;var d=Math.min(p,~~D);return c[d](D-d)},i=t}else n||(e=Xe(se(e)?[]:{},e));if(!c){for(a in t)Ri.call(o,e,a,"get",t[a]);r=function(D){return Vi(D,o)||(s?e.p:e)}}}return Ve(i,r)},dn=function(e,t,i){var n=e.labels,r=ye,s,o,a;for(s in n)o=n[s]-t,o<0==!!i&&o&&r>(o=Math.abs(o))&&(a=s,r=o);return a},ve=function(e,t,i){var n=e.vars,r=n[t],s=W,o=e._ctx,a,l,c;if(r)return a=n[t+"Params"],l=n.callbackScope||e,i&&He.length&&zt(),o&&(W=o),c=a?r.apply(l,a):r.call(l),W=s,c},_t=function(e){return Ne(e),e.scrollTrigger&&e.scrollTrigger.kill(!!re),e.progress()<1&&ve(e,"onInterrupt"),e},ot,Rn=[],On=function(e){if(Si()&&e){e=!e.name&&e.default||e;var t=e.name,i=Y(e),n=t&&!i&&e.init?function(){this._props=[]}:e,r={init:Ct,render:Vi,add:Ri,kill:as,modifier:os,rawVars:0},s={targetTest:0,get:0,getSetter:Zt,aliases:{},register:0};if(ct(),e!==n){if(de[t])return;be(n,be(jt(e,r),s)),Xe(n.prototype,Xe(r,jt(e,s))),de[n.prop=t]=n,e.targetTest&&(Nt.push(n),Fi[t]=1),t=(t==="css"?"CSS":t.charAt(0).toUpperCase()+t.substr(1))+"Plugin"}En(t,n),e.register&&e.register(j,n,ue)}else e&&Rn.push(e)},O=255,yt={aqua:[0,O,O],lime:[0,O,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,O],navy:[0,0,128],white:[O,O,O],olive:[128,128,0],yellow:[O,O,0],orange:[O,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[O,0,0],pink:[O,192,203],cyan:[0,O,O],transparent:[O,O,O,0]},ui=function(e,t,i){return e+=e<0?1:e>1?-1:0,(e*6<1?t+(i-t)*e*6:e<.5?i:e*3<2?t+(i-t)*(2/3-e)*6:t)*O+.5|0},Hn=function(e,t,i){var n=e?Pe(e)?[e>>16,e>>8&O,e&O]:0:yt.black,r,s,o,a,l,c,h,p,f,D;if(!n){if(e.substr(-1)===","&&(e=e.substr(0,e.length-1)),yt[e])n=yt[e];else if(e.charAt(0)==="#"){if(e.length<6&&(r=e.charAt(1),s=e.charAt(2),o=e.charAt(3),e="#"+r+r+s+s+o+o+(e.length===5?e.charAt(4)+e.charAt(4):"")),e.length===9)return n=parseInt(e.substr(1,6),16),[n>>16,n>>8&O,n&O,parseInt(e.substr(7),16)/255];e=parseInt(e.substr(1),16),n=[e>>16,e>>8&O,e&O]}else if(e.substr(0,3)==="hsl"){if(n=D=e.match(mi),!t)a=+n[0]%360/360,l=+n[1]/100,c=+n[2]/100,s=c<=.5?c*(l+1):c+l-c*l,r=c*2-s,n.length>3&&(n[3]*=1),n[0]=ui(a+1/3,r,s),n[1]=ui(a,r,s),n[2]=ui(a-1/3,r,s);else if(~e.indexOf("="))return n=e.match(Ai),i&&n.length<4&&(n[3]=1),n}else n=e.match(mi)||yt.transparent;n=n.map(Number)}return t&&!D&&(r=n[0]/O,s=n[1]/O,o=n[2]/O,h=Math.max(r,s,o),p=Math.min(r,s,o),c=(h+p)/2,h===p?a=l=0:(f=h-p,l=c>.5?f/(2-h-p):f/(h+p),a=h===r?(s-o)/f+(s<o?6:0):h===s?(o-r)/f+2:(r-s)/f+4,a*=60),n[0]=~~(a+.5),n[1]=~~(l*100+.5),n[2]=~~(c*100+.5)),i&&n.length<4&&(n[3]=1),n},Un=function(e){var t=[],i=[],n=-1;return e.split(Ie).forEach(function(r){var s=r.match(Je)||[];t.push.apply(t,s),i.push(n+=s.length+1)}),t.c=i,t},hn=function(e,t,i){var n="",r=(e+n).match(Ie),s=t?"hsla(":"rgba(",o=0,a,l,c,h;if(!r)return e;if(r=r.map(function(p){return(p=Hn(p,t,1))&&s+(t?p[0]+","+p[1]+"%,"+p[2]+"%,"+p[3]:p.join(","))+")"}),i&&(c=Un(e),a=i.c,a.join(n)!==c.c.join(n)))for(l=e.replace(Ie,"1").split(Je),h=l.length-1;o<h;o++)n+=l[o]+(~a.indexOf(o)?r.shift()||s+"0,0,0,0)":(c.length?c:r.length?r:i).shift());if(!l)for(l=e.split(Ie),h=l.length-1;o<h;o++)n+=l[o]+r[o];return n+l[h]},Ie=function(){var u="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3,4}){1,2}\\b",e;for(e in yt)u+="|"+e+"\\b";return new RegExp(u+")","gi")}(),Gr=/hsl[a]?\(/,ki=function(e){var t=e.join(" "),i;if(Ie.lastIndex=0,Ie.test(t))return i=Gr.test(t),e[1]=hn(e[1],i),e[0]=hn(e[0],i,Un(e[1])),!0},wt,he=function(){var u=Date.now,e=500,t=33,i=u(),n=i,r=1e3/240,s=r,o=[],a,l,c,h,p,f,D=function d(m){var g=u()-n,y=m===!0,_,v,E,S;if(g>e&&(i+=g-t),n+=g,E=n-i,_=E-s,(_>0||y)&&(S=++h.frame,p=E-h.time*1e3,h.time=E=E/1e3,s+=_+(_>=r?4:r-_),v=1),y||(a=l(d)),v)for(f=0;f<o.length;f++)o[f](E,p,S,m)};return h={time:0,frame:0,tick:function(){D(!0)},deltaRatio:function(m){return p/(1e3/(m||60))},wake:function(){_n&&(!Di&&Si()&&(_e=Di=window,Li=_e.document||{},De.gsap=j,(_e.gsapVersions||(_e.gsapVersions=[])).push(j.version),yn($t||_e.GreenSockGlobals||!_e.gsap&&_e||{}),c=_e.requestAnimationFrame,Rn.forEach(On)),a&&h.sleep(),l=c||function(m){return setTimeout(m,s-h.time*1e3+1|0)},wt=1,D(2))},sleep:function(){(c?_e.cancelAnimationFrame:clearTimeout)(a),wt=0,l=Ct},lagSmoothing:function(m,g){e=m||1/0,t=Math.min(g||33,e)},fps:function(m){r=1e3/(m||240),s=h.time*1e3+r},add:function(m,g,y){var _=g?function(v,E,S,T){m(v,E,S,T),h.remove(_)}:m;return h.remove(m),o[y?"unshift":"push"](_),ct(),_},remove:function(m,g){~(g=o.indexOf(m))&&o.splice(g,1)&&f>=g&&f--},_listeners:o},h}(),ct=function(){return!wt&&he.wake()},k={},Wr=/^[\d.\-M][\d.\-,\s]/,Yr=/["']/g,Xr=function(e){for(var t={},i=e.substr(1,e.length-3).split(":"),n=i[0],r=1,s=i.length,o,a,l;r<s;r++)a=i[r],o=r!==s-1?a.lastIndexOf(","):a.length,l=a.substr(0,o),t[n]=isNaN(l)?l.replace(Yr,"").trim():+l,n=a.substr(o+1).trim();return t},Jr=function(e){var t=e.indexOf("(")+1,i=e.indexOf(")"),n=e.indexOf("(",t);return e.substring(t,~n&&n<i?e.indexOf(")",i+1):i)},Qr=function(e){var t=(e+"").split("("),i=k[t[0]];return i&&t.length>1&&i.config?i.config.apply(null,~e.indexOf("{")?[Xr(t[1])]:Jr(e).split(",").map(Cn)):k._CE&&Wr.test(e)?k._CE("",e):i},Nn=function(e){return function(t){return 1-e(1-t)}},Vn=function u(e,t){for(var i=e._first,n;i;)i instanceof ne?u(i,t):i.vars.yoyoEase&&(!i._yoyo||!i._repeat)&&i._yoyo!==t&&(i.timeline?u(i.timeline,t):(n=i._ease,i._ease=i._yEase,i._yEase=n,i._yoyo=t)),i=i._next},We=function(e,t){return e&&(Y(e)?e:k[e]||Qr(e))||t},Ke=function(e,t,i,n){i===void 0&&(i=function(a){return 1-t(1-a)}),n===void 0&&(n=function(a){return a<.5?t(a*2)/2:1-t((1-a)*2)/2});var r={easeIn:t,easeOut:i,easeInOut:n},s;return le(e,function(o){k[o]=De[o]=r,k[s=o.toLowerCase()]=i;for(var a in r)k[s+(a==="easeIn"?".in":a==="easeOut"?".out":".inOut")]=k[o+"."+a]=r[a]}),r},$n=function(e){return function(t){return t<.5?(1-e(1-t*2))/2:.5+e((t-.5)*2)/2}},ci=function u(e,t,i){var n=t>=1?t:1,r=(i||(e?.3:.45))/(t<1?t:1),s=r/fi*(Math.asin(1/n)||0),o=function(c){return c===1?1:n*Math.pow(2,-10*c)*Tr((c-s)*r)+1},a=e==="out"?o:e==="in"?function(l){return 1-o(1-l)}:$n(o);return r=fi/r,a.config=function(l,c){return u(e,l,c)},a},di=function u(e,t){t===void 0&&(t=1.70158);var i=function(s){return s?--s*s*((t+1)*s+t)+1:0},n=e==="out"?i:e==="in"?function(r){return 1-i(1-r)}:$n(i);return n.config=function(r){return u(e,r)},n};le("Linear,Quad,Cubic,Quart,Quint,Strong",function(u,e){var t=e<5?e+1:e;Ke(u+",Power"+(t-1),e?function(i){return Math.pow(i,t)}:function(i){return i},function(i){return 1-Math.pow(1-i,t)},function(i){return i<.5?Math.pow(i*2,t)/2:1-Math.pow((1-i)*2,t)/2})});k.Linear.easeNone=k.none=k.Linear.easeIn;Ke("Elastic",ci("in"),ci("out"),ci());(function(u,e){var t=1/e,i=2*t,n=2.5*t,r=function(o){return o<t?u*o*o:o<i?u*Math.pow(o-1.5/e,2)+.75:o<n?u*(o-=2.25/e)*o+.9375:u*Math.pow(o-2.625/e,2)+.984375};Ke("Bounce",function(s){return 1-r(1-s)},r)})(7.5625,2.75);Ke("Expo",function(u){return u?Math.pow(2,10*(u-1)):0});Ke("Circ",function(u){return-(mn(1-u*u)-1)});Ke("Sine",function(u){return u===1?1:-wr(u*br)+1});Ke("Back",di("in"),di("out"),di());k.SteppedEase=k.steps=De.SteppedEase={config:function(e,t){e===void 0&&(e=1);var i=1/e,n=e+(t?0:1),r=t?1:0,s=1-H;return function(o){return((n*St(0,s,o)|0)+r)*i}}};at.ease=k["quad.out"];le("onComplete,onUpdate,onStart,onRepeat,onReverseComplete,onInterrupt",function(u){return xi+=u+","+u+"Params,"});var Bi=function(e,t){this.id=Cr++,e._gsap=this,this.target=e,this.harness=t,this.get=t?t.get:Pi,this.set=t?t.getSetter:Zt},Tt=function(){function u(t){this.vars=t,this._delay=+t.delay||0,(this._repeat=t.repeat===1/0?-2:t.repeat||0)&&(this._rDelay=t.repeatDelay||0,this._yoyo=!!t.yoyo||!!t.yoyoEase),this._ts=1,ut(this,+t.duration,1,1),this.data=t.data,W&&(this._ctx=W,W.data.push(this)),wt||he.wake()}var e=u.prototype;return e.delay=function(i){return i||i===0?(this.parent&&this.parent.smoothChildTiming&&this.startTime(this._start+i-this._delay),this._delay=i,this):this._delay},e.duration=function(i){return arguments.length?this.totalDuration(this._repeat>0?i+(i+this._rDelay)*this._repeat:i):this.totalDuration()&&this._dur},e.totalDuration=function(i){return arguments.length?(this._dirty=0,ut(this,this._repeat<0?i:(i-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},e.totalTime=function(i,n){if(ct(),!arguments.length)return this._tTime;var r=this._dp;if(r&&r.smoothChildTiming&&this._ts){for(Kt(this,i),!r._dp||r.parent||Sn(r,this);r&&r.parent;)r.parent._time!==r._start+(r._ts>=0?r._tTime/r._ts:(r.totalDuration()-r._tTime)/-r._ts)&&r.totalTime(r._tTime,!0),r=r.parent;!this.parent&&this._dp.autoRemoveChildren&&(this._ts>0&&i<this._tDur||this._ts<0&&i>0||!this._tDur&&!i)&&Se(this._dp,this,this._start-this._delay)}return(this._tTime!==i||!this._dur&&!n||this._initted&&Math.abs(this._zTime)===H||!i&&!this._initted&&(this.add||this._ptLookup))&&(this._ts||(this._pTime=i),bn(this,i,n)),this},e.time=function(i,n){return arguments.length?this.totalTime(Math.min(this.totalDuration(),i+un(this))%(this._dur+this._rDelay)||(i?this._dur:0),n):this._time},e.totalProgress=function(i,n){return arguments.length?this.totalTime(this.totalDuration()*i,n):this.totalDuration()?Math.min(1,this._tTime/this._tDur):this.ratio},e.progress=function(i,n){return arguments.length?this.totalTime(this.duration()*(this._yoyo&&!(this.iteration()&1)?1-i:i)+un(this),n):this.duration()?Math.min(1,this._time/this._dur):this.ratio},e.iteration=function(i,n){var r=this.duration()+this._rDelay;return arguments.length?this.totalTime(this._time+(i-1)*r,n):this._repeat?lt(this._tTime,r)+1:1},e.timeScale=function(i){if(!arguments.length)return this._rts===-H?0:this._rts;if(this._rts===i)return this;var n=this.parent&&this._ts?Gt(this.parent._time,this):this._tTime;return this._rts=+i||0,this._ts=this._ps||i===-H?0:this._rts,this.totalTime(St(-Math.abs(this._delay),this._tDur,n),!0),Qt(this),Ir(this)},e.paused=function(i){return arguments.length?(this._ps!==i&&(this._ps=i,i?(this._pTime=this._tTime||Math.max(-this._delay,this.rawTime()),this._ts=this._act=0):(ct(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,this.progress()===1&&Math.abs(this._zTime)!==H&&(this._tTime-=H)))),this):this._ps},e.startTime=function(i){if(arguments.length){this._start=i;var n=this.parent||this._dp;return n&&(n._sort||!this.parent)&&Se(n,this,i-this._delay),this}return this._start},e.endTime=function(i){return this._start+(pe(i)?this.totalDuration():this.duration())/Math.abs(this._ts||1)},e.rawTime=function(i){var n=this.parent||this._dp;return n?i&&(!this._ts||this._repeat&&this._time&&this.totalProgress()<1)?this._tTime%(this._dur+this._rDelay):this._ts?Gt(n.rawTime(i),this):this._tTime:this._tTime},e.revert=function(i){i===void 0&&(i=Mr);var n=re;return re=i,(this._initted||this._startAt)&&(this.timeline&&this.timeline.revert(i),this.totalTime(-.01,i.suppressEvents)),this.data!=="nested"&&i.kill!==!1&&this.kill(),re=n,this},e.globalTime=function(i){for(var n=this,r=arguments.length?i:n.rawTime();n;)r=n._start+r/(n._ts||1),n=n._dp;return!this.parent&&this._sat?this._sat.vars.immediateRender?-1/0:this._sat.globalTime(i):r},e.repeat=function(i){return arguments.length?(this._repeat=i===1/0?-2:i,cn(this)):this._repeat===-2?1/0:this._repeat},e.repeatDelay=function(i){if(arguments.length){var n=this._time;return this._rDelay=i,cn(this),n?this.time(n):this}return this._rDelay},e.yoyo=function(i){return arguments.length?(this._yoyo=i,this):this._yoyo},e.seek=function(i,n){return this.totalTime(ge(this,i),pe(n))},e.restart=function(i,n){return this.play().totalTime(i?-this._delay:0,pe(n))},e.play=function(i,n){return i!=null&&this.seek(i,n),this.reversed(!1).paused(!1)},e.reverse=function(i,n){return i!=null&&this.seek(i||this.totalDuration(),n),this.reversed(!0).paused(!1)},e.pause=function(i,n){return i!=null&&this.seek(i,n),this.paused(!0)},e.resume=function(){return this.paused(!1)},e.reversed=function(i){return arguments.length?(!!i!==this.reversed()&&this.timeScale(-this._rts||(i?-H:0)),this):this._rts<0},e.invalidate=function(){return this._initted=this._act=0,this._zTime=-H,this},e.isActive=function(){var i=this.parent||this._dp,n=this._start,r;return!!(!i||this._ts&&this._initted&&i.isActive()&&(r=i.rawTime(!0))>=n&&r<this.endTime(!0)-H)},e.eventCallback=function(i,n,r){var s=this.vars;return arguments.length>1?(n?(s[i]=n,r&&(s[i+"Params"]=r),i==="onUpdate"&&(this._onUpdate=n)):delete s[i],this):s[i]},e.then=function(i){var n=this;return new Promise(function(r){var s=Y(i)?i:wn,o=function(){var l=n.then;n.then=null,Y(s)&&(s=s(n))&&(s.then||s===n)&&(n.then=l),r(s),n.then=l};n._initted&&n.totalProgress()===1&&n._ts>=0||!n._tTime&&n._ts<0?o():n._prom=o})},e.kill=function(){_t(this)},u}();be(Tt.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:-H,_prom:0,_ps:!1,_rts:1});var ne=function(u){fn(e,u);function e(i,n){var r;return i===void 0&&(i={}),r=u.call(this,i)||this,r.labels={},r.smoothChildTiming=!!i.smoothChildTiming,r.autoRemoveChildren=!!i.autoRemoveChildren,r._sort=pe(i.sortChildren),z&&Se(i.parent||z,xe(r),n),i.reversed&&r.reverse(),i.paused&&r.paused(!0),i.scrollTrigger&&An(xe(r),i.scrollTrigger),r}var t=e.prototype;return t.to=function(n,r,s){return vt(0,arguments,this),this},t.from=function(n,r,s){return vt(1,arguments,this),this},t.fromTo=function(n,r,s,o){return vt(2,arguments,this),this},t.set=function(n,r,s){return r.duration=0,r.parent=this,Et(r).repeatDelay||(r.repeat=0),r.immediateRender=!!r.immediateRender,new J(n,r,ge(this,s),1),this},t.call=function(n,r,s){return Se(this,J.delayedCall(0,n,r),s)},t.staggerTo=function(n,r,s,o,a,l,c){return s.duration=r,s.stagger=s.stagger||o,s.onComplete=l,s.onCompleteParams=c,s.parent=this,new J(n,s,ge(this,a)),this},t.staggerFrom=function(n,r,s,o,a,l,c){return s.runBackwards=1,Et(s).immediateRender=pe(s.immediateRender),this.staggerTo(n,r,s,o,a,l,c)},t.staggerFromTo=function(n,r,s,o,a,l,c,h){return o.startAt=s,Et(o).immediateRender=pe(o.immediateRender),this.staggerTo(n,r,o,a,l,c,h)},t.render=function(n,r,s){var o=this._time,a=this._dirty?this.totalDuration():this._tDur,l=this._dur,c=n<=0?0:Z(n),h=this._zTime<0!=n<0&&(this._initted||!l),p,f,D,d,m,g,y,_,v,E,S,T;if(this!==z&&c>a&&n>=0&&(c=a),c!==this._tTime||s||h){if(o!==this._time&&l&&(c+=this._time-o,n+=this._time-o),p=c,v=this._start,_=this._ts,g=!_,h&&(l||(o=this._zTime),(n||!r)&&(this._zTime=n)),this._repeat){if(S=this._yoyo,m=l+this._rDelay,this._repeat<-1&&n<0)return this.totalTime(m*100+n,r,s);if(p=Z(c%m),c===a?(d=this._repeat,p=l):(d=~~(c/m),d&&d===c/m&&(p=l,d--),p>l&&(p=l)),E=lt(this._tTime,m),!o&&this._tTime&&E!==d&&this._tTime-E*m-this._dur<=0&&(E=d),S&&d&1&&(p=l-p,T=1),d!==E&&!this._lock){var w=S&&E&1,C=w===(S&&d&1);if(d<E&&(w=!w),o=w?0:c%l?l:c,this._lock=1,this.render(o||(T?0:Z(d*m)),r,!l)._lock=0,this._tTime=c,!r&&this.parent&&ve(this,"onRepeat"),this.vars.repeatRefresh&&!T&&(this.invalidate()._lock=1),o&&o!==this._time||g!==!this._ts||this.vars.onRepeat&&!this.parent&&!this._act)return this;if(l=this._dur,a=this._tDur,C&&(this._lock=2,o=w?l:-1e-4,this.render(o,!0),this.vars.repeatRefresh&&!T&&this.invalidate()),this._lock=0,!this._ts&&!g)return this;Vn(this,T)}}if(this._hasPause&&!this._forcing&&this._lock<2&&(y=Rr(this,Z(o),Z(p)),y&&(c-=p-(p=y._start))),this._tTime=c,this._time=p,this._act=!_,this._initted||(this._onUpdate=this.vars.onUpdate,this._initted=1,this._zTime=n,o=0),!o&&p&&!r&&!d&&(ve(this,"onStart"),this._tTime!==c))return this;if(p>=o&&n>=0)for(f=this._first;f;){if(D=f._next,(f._act||p>=f._start)&&f._ts&&y!==f){if(f.parent!==this)return this.render(n,r,s);if(f.render(f._ts>0?(p-f._start)*f._ts:(f._dirty?f.totalDuration():f._tDur)+(p-f._start)*f._ts,r,s),p!==this._time||!this._ts&&!g){y=0,D&&(c+=this._zTime=-H);break}}f=D}else{f=this._last;for(var L=n<0?n:p;f;){if(D=f._prev,(f._act||L<=f._end)&&f._ts&&y!==f){if(f.parent!==this)return this.render(n,r,s);if(f.render(f._ts>0?(L-f._start)*f._ts:(f._dirty?f.totalDuration():f._tDur)+(L-f._start)*f._ts,r,s||re&&(f._initted||f._startAt)),p!==this._time||!this._ts&&!g){y=0,D&&(c+=this._zTime=L?-H:H);break}}f=D}}if(y&&!r&&(this.pause(),y.render(p>=o?0:-H)._zTime=p>=o?1:-1,this._ts))return this._start=v,Qt(this),this.render(n,r,s);this._onUpdate&&!r&&ve(this,"onUpdate",!0),(c===a&&this._tTime>=this.totalDuration()||!c&&o)&&(v===this._start||Math.abs(_)!==Math.abs(this._ts))&&(this._lock||((n||!l)&&(c===a&&this._ts>0||!c&&this._ts<0)&&Ne(this,1),!r&&!(n<0&&!o)&&(c||o||!a)&&(ve(this,c===a&&n>=0?"onComplete":"onReverseComplete",!0),this._prom&&!(c<a&&this.timeScale()>0)&&this._prom())))}return this},t.add=function(n,r){var s=this;if(Pe(r)||(r=ge(this,r,n)),!(n instanceof Tt)){if(se(n))return n.forEach(function(o){return s.add(o,r)}),this;if(K(n))return this.addLabel(n,r);if(Y(n))n=J.delayedCall(0,n);else return this}return this!==n?Se(this,n,r):this},t.getChildren=function(n,r,s,o){n===void 0&&(n=!0),r===void 0&&(r=!0),s===void 0&&(s=!0),o===void 0&&(o=-ye);for(var a=[],l=this._first;l;)l._start>=o&&(l instanceof J?r&&a.push(l):(s&&a.push(l),n&&a.push.apply(a,l.getChildren(!0,r,s)))),l=l._next;return a},t.getById=function(n){for(var r=this.getChildren(1,1,1),s=r.length;s--;)if(r[s].vars.id===n)return r[s]},t.remove=function(n){return K(n)?this.removeLabel(n):Y(n)?this.killTweensOf(n):(Jt(this,n),n===this._recent&&(this._recent=this._last),Ge(this))},t.totalTime=function(n,r){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=Z(he.time-(this._ts>0?n/this._ts:(this.totalDuration()-n)/-this._ts))),u.prototype.totalTime.call(this,n,r),this._forcing=0,this):this._tTime},t.addLabel=function(n,r){return this.labels[n]=ge(this,r),this},t.removeLabel=function(n){return delete this.labels[n],this},t.addPause=function(n,r,s){var o=J.delayedCall(0,r||Ct,s);return o.data="isPause",this._hasPause=1,Se(this,o,ge(this,n))},t.removePause=function(n){var r=this._first;for(n=ge(this,n);r;)r._start===n&&r.data==="isPause"&&Ne(r),r=r._next},t.killTweensOf=function(n,r,s){for(var o=this.getTweensOf(n,s),a=o.length;a--;)Oe!==o[a]&&o[a].kill(n,r);return this},t.getTweensOf=function(n,r){for(var s=[],o=Ee(n),a=this._first,l=Pe(r),c;a;)a instanceof J?Lr(a._targets,o)&&(l?(!Oe||a._initted&&a._ts)&&a.globalTime(0)<=r&&a.globalTime(a.totalDuration())>r:!r||a.isActive())&&s.push(a):(c=a.getTweensOf(o,r)).length&&s.push.apply(s,c),a=a._next;return s},t.tweenTo=function(n,r){r=r||{};var s=this,o=ge(s,n),a=r,l=a.startAt,c=a.onStart,h=a.onStartParams,p=a.immediateRender,f,D=J.to(s,be({ease:r.ease||"none",lazy:!1,immediateRender:!1,time:o,overwrite:"auto",duration:r.duration||Math.abs((o-(l&&"time"in l?l.time:s._time))/s.timeScale())||H,onStart:function(){if(s.pause(),!f){var m=r.duration||Math.abs((o-(l&&"time"in l?l.time:s._time))/s.timeScale());D._dur!==m&&ut(D,m,0,1).render(D._time,!0,!0),f=1}c&&c.apply(D,h||[])}},r));return p?D.render(0):D},t.tweenFromTo=function(n,r,s){return this.tweenTo(r,be({startAt:{time:ge(this,n)}},s))},t.recent=function(){return this._recent},t.nextLabel=function(n){return n===void 0&&(n=this._time),dn(this,ge(this,n))},t.previousLabel=function(n){return n===void 0&&(n=this._time),dn(this,ge(this,n),1)},t.currentLabel=function(n){return arguments.length?this.seek(n,!0):this.previousLabel(this._time+H)},t.shiftChildren=function(n,r,s){s===void 0&&(s=0);for(var o=this._first,a=this.labels,l;o;)o._start>=s&&(o._start+=n,o._end+=n),o=o._next;if(r)for(l in a)a[l]>=s&&(a[l]+=n);return Ge(this)},t.invalidate=function(n){var r=this._first;for(this._lock=0;r;)r.invalidate(n),r=r._next;return u.prototype.invalidate.call(this,n)},t.clear=function(n){n===void 0&&(n=!0);for(var r=this._first,s;r;)s=r._next,this.remove(r),r=s;return this._dp&&(this._time=this._tTime=this._pTime=0),n&&(this.labels={}),Ge(this)},t.totalDuration=function(n){var r=0,s=this,o=s._last,a=ye,l,c,h;if(arguments.length)return s.timeScale((s._repeat<0?s.duration():s.totalDuration())/(s.reversed()?-n:n));if(s._dirty){for(h=s.parent;o;)l=o._prev,o._dirty&&o.totalDuration(),c=o._start,c>a&&s._sort&&o._ts&&!s._lock?(s._lock=1,Se(s,o,c-o._delay,1)._lock=0):a=c,c<0&&o._ts&&(r-=c,(!h&&!s._dp||h&&h.smoothChildTiming)&&(s._start+=c/s._ts,s._time-=c,s._tTime-=c),s.shiftChildren(-c,!1,-1/0),a=0),o._end>r&&o._ts&&(r=o._end),o=l;ut(s,s===z&&s._time>r?s._time:r,1,1),s._dirty=0}return s._tDur},e.updateRoot=function(n){if(z._ts&&(bn(z,Gt(n,z)),vn=he.frame),he.frame>=an){an+=fe.autoSleep||120;var r=z._first;if((!r||!r._ts)&&fe.autoSleep&&he._listeners.length<2){for(;r&&!r._ts;)r=r._next;r||he.sleep()}}},e}(Tt);be(ne.prototype,{_lock:0,_hasPause:0,_forcing:0});var Kr=function(e,t,i,n,r,s,o){var a=new ue(this._pt,e,t,0,1,Ni,null,r),l=0,c=0,h,p,f,D,d,m,g,y;for(a.b=i,a.e=n,i+="",n+="",(g=~n.indexOf("random("))&&(n=dt(n)),s&&(y=[i,n],s(y,e,t),i=y[0],n=y[1]),p=i.match(ai)||[];h=ai.exec(n);)D=h[0],d=n.substring(l,h.index),f?f=(f+1)%5:d.substr(-5)==="rgba("&&(f=1),D!==p[c++]&&(m=parseFloat(p[c-1])||0,a._pt={_next:a._pt,p:d||c===1?d:",",s:m,c:D.charAt(1)==="="?Qe(m,D)-m:parseFloat(D)-m,m:f&&f<4?Math.round:0},l=ai.lastIndex);return a.c=l<n.length?n.substring(l,n.length):"",a.fp=o,(Mi.test(n)||g)&&(a.e=0),this._pt=a,a},Ri=function(e,t,i,n,r,s,o,a,l,c){Y(n)&&(n=n(r||0,e,s));var h=e[t],p=i!=="get"?i:Y(h)?l?e[t.indexOf("set")||!Y(e["get"+t.substr(3)])?t:"get"+t.substr(3)](l):e[t]():h,f=Y(h)?l?ns:jn:Ui,D;if(K(n)&&(~n.indexOf("random(")&&(n=dt(n)),n.charAt(1)==="="&&(D=Qe(p,n)+(ee(p)||0),(D||D===0)&&(n=D))),!c||p!==n||Ci)return!isNaN(p*n)&&n!==""?(D=new ue(this._pt,e,t,+p||0,n-(p||0),typeof h=="boolean"?ss:Gn,0,f),l&&(D.fp=l),o&&D.modifier(o,this,e),this._pt=D):(!h&&!(t in e)&&Xt(t,n),Kr.call(this,e,t,p,n,f,a||fe.stringFilter,l))},Zr=function(e,t,i,n,r){if(Y(e)&&(e=bt(e,r,t,i,n)),!Ae(e)||e.style&&e.nodeType||se(e)||Dn(e))return K(e)?bt(e,r,t,i,n):e;var s={},o;for(o in e)s[o]=bt(e[o],r,t,i,n);return s},Oi=function(e,t,i,n,r,s){var o,a,l,c;if(de[e]&&(o=new de[e]).init(r,o.rawVars?t[e]:Zr(t[e],n,r,s,i),i,n,s)!==!1&&(i._pt=a=new ue(i._pt,r,e,0,1,o.render,o,0,o.priority),i!==ot))for(l=i._ptLookup[i._targets.indexOf(r)],c=o._props.length;c--;)l[o._props[c]]=a;return o},Oe,Ci,Hi=function u(e,t,i){var n=e.vars,r=n.ease,s=n.startAt,o=n.immediateRender,a=n.lazy,l=n.onUpdate,c=n.onUpdateParams,h=n.callbackScope,p=n.runBackwards,f=n.yoyoEase,D=n.keyframes,d=n.autoRevert,m=e._dur,g=e._startAt,y=e._targets,_=e.parent,v=_&&_.data==="nested"?_.vars.targets:y,E=e._overwrite==="auto"&&!Ti,S=e.timeline,T,w,C,L,P,N,V,q,U,M,x,$,b;if(S&&(!D||!r)&&(r="none"),e._ease=We(r,at.ease),e._yEase=f?Nn(We(f===!0?r:f,at.ease)):0,f&&e._yoyo&&!e._repeat&&(f=e._yEase,e._yEase=e._ease,e._ease=f),e._from=!S&&!!n.runBackwards,!S||D&&!n.stagger){if(q=y[0]?Ue(y[0]).harness:0,$=q&&n[q.prop],T=jt(n,Fi),g&&(g._zTime<0&&g.progress(1),t<0&&p&&o&&!d?g.render(-1,!0):g.revert(p&&m?Ut:Ar),g._lazy=0),s){if(Ne(e._startAt=J.set(y,be({data:"isStart",overwrite:!1,parent:_,immediateRender:!0,lazy:!g&&pe(a),startAt:null,delay:0,onUpdate:l,onUpdateParams:c,callbackScope:h,stagger:0},s))),e._startAt._dp=0,e._startAt._sat=e,t<0&&(re||!o&&!d)&&e._startAt.revert(Ut),o&&m&&t<=0&&i<=0){t&&(e._zTime=t);return}}else if(p&&m&&!g){if(t&&(o=!1),C=be({overwrite:!1,data:"isFromStart",lazy:o&&!g&&pe(a),immediateRender:o,stagger:0,parent:_},T),$&&(C[q.prop]=$),Ne(e._startAt=J.set(y,C)),e._startAt._dp=0,e._startAt._sat=e,t<0&&(re?e._startAt.revert(Ut):e._startAt.render(-1,!0)),e._zTime=t,!o)u(e._startAt,H,H);else if(!t)return}for(e._pt=e._ptCache=0,a=m&&pe(a)||a&&!m,w=0;w<y.length;w++){if(P=y[w],V=P._gsap||Ii(y)[w]._gsap,e._ptLookup[w]=M={},gi[V.id]&&He.length&&zt(),x=v===y?w:v.indexOf(P),q&&(U=new q).init(P,$||T,e,x,v)!==!1&&(e._pt=L=new ue(e._pt,P,U.name,0,1,U.render,U,0,U.priority),U._props.forEach(function(ce){M[ce]=L}),U.priority&&(N=1)),!q||$)for(C in T)de[C]&&(U=Oi(C,T,e,x,P,v))?U.priority&&(N=1):M[C]=L=Ri.call(e,P,C,"get",T[C],x,v,0,n.stringFilter);e._op&&e._op[w]&&e.kill(P,e._op[w]),E&&e._pt&&(Oe=e,z.killTweensOf(P,M,e.globalTime(t)),b=!e.parent,Oe=0),e._pt&&a&&(gi[V.id]=1)}N&&$i(e),e._onInit&&e._onInit(e)}e._onUpdate=l,e._initted=(!e._op||e._pt)&&!b,D&&t<=0&&S.render(ye,!0,!0)},es=function(e,t,i,n,r,s,o){var a=(e._pt&&e._ptCache||(e._ptCache={}))[t],l,c,h,p;if(!a)for(a=e._ptCache[t]=[],h=e._ptLookup,p=e._targets.length;p--;){if(l=h[p][t],l&&l.d&&l.d._pt)for(l=l.d._pt;l&&l.p!==t&&l.fp!==t;)l=l._next;if(!l)return Ci=1,e.vars[t]="+=0",Hi(e,o),Ci=0,1;a.push(l)}for(p=a.length;p--;)c=a[p],l=c._pt||c,l.s=(n||n===0)&&!r?n:l.s+(n||0)+s*l.c,l.c=i-l.s,c.e&&(c.e=X(i)+ee(c.e)),c.b&&(c.b=l.s+ee(c.b))},ts=function(e,t){var i=e[0]?Ue(e[0]).harness:0,n=i&&i.aliases,r,s,o,a;if(!n)return t;r=Xe({},t);for(s in n)if(s in r)for(a=n[s].split(","),o=a.length;o--;)r[a[o]]=r[s];return r},is=function(e,t,i,n){var r=t.ease||n||"power1.inOut",s,o;if(se(t))o=i[e]||(i[e]=[]),t.forEach(function(a,l){return o.push({t:l/(t.length-1)*100,v:a,e:r})});else for(s in t)o=i[s]||(i[s]=[]),s==="ease"||o.push({t:parseFloat(e),v:t[s],e:r})},bt=function(e,t,i,n,r){return Y(e)?e.call(t,i,n,r):K(e)&&~e.indexOf("random(")?dt(e):e},qn=xi+"repeat,repeatDelay,yoyo,repeatRefresh,yoyoEase,autoRevert",zn={};le(qn+",id,stagger,delay,duration,paused,scrollTrigger",function(u){return zn[u]=1});var J=function(u){fn(e,u);function e(i,n,r,s){var o;typeof n=="number"&&(r.duration=n,n=r,r=null),o=u.call(this,s?n:Et(n))||this;var a=o.vars,l=a.duration,c=a.delay,h=a.immediateRender,p=a.stagger,f=a.overwrite,D=a.keyframes,d=a.defaults,m=a.scrollTrigger,g=a.yoyoEase,y=n.parent||z,_=(se(i)||Dn(i)?Pe(i[0]):"length"in n)?[i]:Ee(i),v,E,S,T,w,C,L,P;if(o._targets=_.length?Ii(_):qt("GSAP target "+i+" not found. https://greensock.com",!fe.nullTargetWarn)||[],o._ptLookup=[],o._overwrite=f,D||p||Ht(l)||Ht(c)){if(n=o.vars,v=o.timeline=new ne({data:"nested",defaults:d||{},targets:y&&y.data==="nested"?y.vars.targets:_}),v.kill(),v.parent=v._dp=xe(o),v._start=0,p||Ht(l)||Ht(c)){if(T=_.length,L=p&&xn(p),Ae(p))for(w in p)~qn.indexOf(w)&&(P||(P={}),P[w]=p[w]);for(E=0;E<T;E++)S=jt(n,zn),S.stagger=0,g&&(S.yoyoEase=g),P&&Xe(S,P),C=_[E],S.duration=+bt(l,xe(o),E,C,_),S.delay=(+bt(c,xe(o),E,C,_)||0)-o._delay,!p&&T===1&&S.delay&&(o._delay=c=S.delay,o._start+=c,S.delay=0),v.to(C,S,L?L(E,C,_):0),v._ease=k.none;v.duration()?l=c=0:o.timeline=0}else if(D){Et(be(v.vars.defaults,{ease:"none"})),v._ease=We(D.ease||n.ease||"none");var N=0,V,q,U;if(se(D))D.forEach(function(M){return v.to(_,M,">")}),v.duration();else{S={};for(w in D)w==="ease"||w==="easeEach"||is(w,D[w],S,D.easeEach);for(w in S)for(V=S[w].sort(function(M,x){return M.t-x.t}),N=0,E=0;E<V.length;E++)q=V[E],U={ease:q.e,duration:(q.t-(E?V[E-1].t:0))/100*l},U[w]=q.v,v.to(_,U,N),N+=U.duration;v.duration()<l&&v.to({},{duration:l-v.duration()})}}l||o.duration(l=v.duration())}else o.timeline=0;return f===!0&&!Ti&&(Oe=xe(o),z.killTweensOf(_),Oe=0),Se(y,xe(o),r),n.reversed&&o.reverse(),n.paused&&o.paused(!0),(h||!l&&!D&&o._start===Z(y._time)&&pe(h)&&Pr(xe(o))&&y.data!=="nested")&&(o._tTime=-H,o.render(Math.max(0,-c)||0)),m&&An(xe(o),m),o}var t=e.prototype;return t.render=function(n,r,s){var o=this._time,a=this._tDur,l=this._dur,c=n<0,h=n>a-H&&!c?a:n<H?0:n,p,f,D,d,m,g,y,_,v;if(!l)Br(this,n,r,s);else if(h!==this._tTime||!n||s||!this._initted&&this._tTime||this._startAt&&this._zTime<0!==c){if(p=h,_=this.timeline,this._repeat){if(d=l+this._rDelay,this._repeat<-1&&c)return this.totalTime(d*100+n,r,s);if(p=Z(h%d),h===a?(D=this._repeat,p=l):(D=~~(h/d),D&&D===h/d&&(p=l,D--),p>l&&(p=l)),g=this._yoyo&&D&1,g&&(v=this._yEase,p=l-p),m=lt(this._tTime,d),p===o&&!s&&this._initted)return this._tTime=h,this;D!==m&&(_&&this._yEase&&Vn(_,g),this.vars.repeatRefresh&&!g&&!this._lock&&(this._lock=s=1,this.render(Z(d*D),!0).invalidate()._lock=0))}if(!this._initted){if(Mn(this,c?n:p,s,r,h))return this._tTime=0,this;if(o!==this._time)return this;if(l!==this._dur)return this.render(n,r,s)}if(this._tTime=h,this._time=p,!this._act&&this._ts&&(this._act=1,this._lazy=0),this.ratio=y=(v||this._ease)(p/l),this._from&&(this.ratio=y=1-y),p&&!o&&!r&&!D&&(ve(this,"onStart"),this._tTime!==h))return this;for(f=this._pt;f;)f.r(y,f.d),f=f._next;_&&_.render(n<0?n:!p&&g?-H:_._dur*_._ease(p/this._dur),r,s)||this._startAt&&(this._zTime=n),this._onUpdate&&!r&&(c&&_i(this,n,r,s),ve(this,"onUpdate")),this._repeat&&D!==m&&this.vars.onRepeat&&!r&&this.parent&&ve(this,"onRepeat"),(h===this._tDur||!h)&&this._tTime===h&&(c&&!this._onUpdate&&_i(this,n,!0,!0),(n||!l)&&(h===this._tDur&&this._ts>0||!h&&this._ts<0)&&Ne(this,1),!r&&!(c&&!o)&&(h||o||g)&&(ve(this,h===a?"onComplete":"onReverseComplete",!0),this._prom&&!(h<a&&this.timeScale()>0)&&this._prom()))}return this},t.targets=function(){return this._targets},t.invalidate=function(n){return(!n||!this.vars.runBackwards)&&(this._startAt=0),this._pt=this._op=this._onUpdate=this._lazy=this.ratio=0,this._ptLookup=[],this.timeline&&this.timeline.invalidate(n),u.prototype.invalidate.call(this,n)},t.resetTo=function(n,r,s,o){wt||he.wake(),this._ts||this.play();var a=Math.min(this._dur,(this._dp._time-this._start)*this._ts),l;return this._initted||Hi(this,a),l=this._ease(a/this._dur),es(this,n,r,s,o,l,a)?this.resetTo(n,r,s,o):(Kt(this,0),this.parent||Tn(this._dp,this,"_first","_last",this._dp._sort?"_start":0),this.render(0))},t.kill=function(n,r){if(r===void 0&&(r="all"),!n&&(!r||r==="all"))return this._lazy=this._pt=0,this.parent?_t(this):this;if(this.timeline){var s=this.timeline.totalDuration();return this.timeline.killTweensOf(n,r,Oe&&Oe.vars.overwrite!==!0)._first||_t(this),this.parent&&s!==this.timeline.totalDuration()&&ut(this,this._dur*this.timeline._tDur/s,0,1),this}var o=this._targets,a=n?Ee(n):o,l=this._ptLookup,c=this._pt,h,p,f,D,d,m,g;if((!r||r==="all")&&xr(o,a))return r==="all"&&(this._pt=0),_t(this);for(h=this._op=this._op||[],r!=="all"&&(K(r)&&(d={},le(r,function(y){return d[y]=1}),r=d),r=ts(o,r)),g=o.length;g--;)if(~a.indexOf(o[g])){p=l[g],r==="all"?(h[g]=r,D=p,f={}):(f=h[g]=h[g]||{},D=r);for(d in D)m=p&&p[d],m&&((!("kill"in m.d)||m.d.kill(d)===!0)&&Jt(this,m,"_pt"),delete p[d]),f!=="all"&&(f[d]=1)}return this._initted&&!this._pt&&c&&_t(this),this},e.to=function(n,r){return new e(n,r,arguments[2])},e.from=function(n,r){return vt(1,arguments)},e.delayedCall=function(n,r,s,o){return new e(r,0,{immediateRender:!1,lazy:!1,overwrite:!1,delay:n,onComplete:r,onReverseComplete:r,onCompleteParams:s,onReverseCompleteParams:s,callbackScope:o})},e.fromTo=function(n,r,s){return vt(2,arguments)},e.set=function(n,r){return r.duration=0,r.repeatDelay||(r.repeat=0),new e(n,r)},e.killTweensOf=function(n,r,s){return z.killTweensOf(n,r,s)},e}(Tt);be(J.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0});le("staggerTo,staggerFrom,staggerFromTo",function(u){J[u]=function(){var e=new ne,t=Ei.call(arguments,0);return t.splice(u==="staggerFromTo"?5:4,0,0),e[u].apply(e,t)}});var Ui=function(e,t,i){return e[t]=i},jn=function(e,t,i){return e[t](i)},ns=function(e,t,i,n){return e[t](n.fp,i)},rs=function(e,t,i){return e.setAttribute(t,i)},Zt=function(e,t){return Y(e[t])?jn:Yt(e[t])&&e.setAttribute?rs:Ui},Gn=function(e,t){return t.set(t.t,t.p,Math.round((t.s+t.c*e)*1e6)/1e6,t)},ss=function(e,t){return t.set(t.t,t.p,!!(t.s+t.c*e),t)},Ni=function(e,t){var i=t._pt,n="";if(!e&&t.b)n=t.b;else if(e===1&&t.e)n=t.e;else{for(;i;)n=i.p+(i.m?i.m(i.s+i.c*e):Math.round((i.s+i.c*e)*1e4)/1e4)+n,i=i._next;n+=t.c}t.set(t.t,t.p,n,t)},Vi=function(e,t){for(var i=t._pt;i;)i.r(e,i.d),i=i._next},os=function(e,t,i,n){for(var r=this._pt,s;r;)s=r._next,r.p===n&&r.modifier(e,t,i),r=s},as=function(e){for(var t=this._pt,i,n;t;)n=t._next,t.p===e&&!t.op||t.op===e?Jt(this,t,"_pt"):t.dep||(i=1),t=n;return!i},ls=function(e,t,i,n){n.mSet(e,t,n.m.call(n.tween,i,n.mt),n)},$i=function(e){for(var t=e._pt,i,n,r,s;t;){for(i=t._next,n=r;n&&n.pr>t.pr;)n=n._next;(t._prev=n?n._prev:s)?t._prev._next=t:r=t,(t._next=n)?n._prev=t:s=t,t=i}e._pt=r},ue=function(){function u(t,i,n,r,s,o,a,l,c){this.t=i,this.s=r,this.c=s,this.p=n,this.r=o||Gn,this.d=a||this,this.set=l||Ui,this.pr=c||0,this._next=t,t&&(t._prev=this)}var e=u.prototype;return e.modifier=function(i,n,r){this.mSet=this.mSet||this.set,this.set=ls,this.m=i,this.mt=r,this.tween=n},u}();le(xi+"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(u){return Fi[u]=1});De.TweenMax=De.TweenLite=J;De.TimelineLite=De.TimelineMax=ne;z=new ne({sortChildren:!1,defaults:at,autoRemoveChildren:!0,id:"root",smoothChildTiming:!0});fe.stringFilter=ki;var Ye=[],Vt={},us=[],pn=0,cs=0,hi=function(e){return(Vt[e]||us).map(function(t){return t()})},wi=function(){var e=Date.now(),t=[];e-pn>2&&(hi("matchMediaInit"),Ye.forEach(function(i){var n=i.queries,r=i.conditions,s,o,a,l;for(o in n)s=_e.matchMedia(n[o]).matches,s&&(a=1),s!==r[o]&&(r[o]=s,l=1);l&&(i.revert(),a&&t.push(i))}),hi("matchMediaRevert"),t.forEach(function(i){return i.onMatch(i)}),pn=e,hi("matchMedia"))},Wn=function(){function u(t,i){this.selector=i&&vi(i),this.data=[],this._r=[],this.isReverted=!1,this.id=cs++,t&&this.add(t)}var e=u.prototype;return e.add=function(i,n,r){Y(i)&&(r=n,n=i,i=Y);var s=this,o=function(){var l=W,c=s.selector,h;return l&&l!==s&&l.data.push(s),r&&(s.selector=vi(r)),W=s,h=n.apply(s,arguments),Y(h)&&s._r.push(h),W=l,s.selector=c,s.isReverted=!1,h};return s.last=o,i===Y?o(s):i?s[i]=o:o},e.ignore=function(i){var n=W;W=null,i(this),W=n},e.getTweens=function(){var i=[];return this.data.forEach(function(n){return n instanceof u?i.push.apply(i,n.getTweens()):n instanceof J&&!(n.parent&&n.parent.data==="nested")&&i.push(n)}),i},e.clear=function(){this._r.length=this.data.length=0},e.kill=function(i,n){var r=this;if(i){var s=this.getTweens();this.data.forEach(function(a){a.data==="isFlip"&&(a.revert(),a.getChildren(!0,!0,!1).forEach(function(l){return s.splice(s.indexOf(l),1)}))}),s.map(function(a){return{g:a.globalTime(0),t:a}}).sort(function(a,l){return l.g-a.g||-1/0}).forEach(function(a){return a.t.revert(i)}),this.data.forEach(function(a){return!(a instanceof J)&&a.revert&&a.revert(i)}),this._r.forEach(function(a){return a(i,r)}),this.isReverted=!0}else this.data.forEach(function(a){return a.kill&&a.kill()});if(this.clear(),n)for(var o=Ye.length;o--;)Ye[o].id===this.id&&Ye.splice(o,1)},e.revert=function(i){this.kill(i||{})},u}(),ds=function(){function u(t){this.contexts=[],this.scope=t}var e=u.prototype;return e.add=function(i,n,r){Ae(i)||(i={matches:i});var s=new Wn(0,r||this.scope),o=s.conditions={},a,l,c;W&&!s.selector&&(s.selector=W.selector),this.contexts.push(s),n=s.add("onMatch",n),s.queries=i;for(l in i)l==="all"?c=1:(a=_e.matchMedia(i[l]),a&&(Ye.indexOf(s)<0&&Ye.push(s),(o[l]=a.matches)&&(c=1),a.addListener?a.addListener(wi):a.addEventListener("change",wi)));return c&&n(s),this},e.revert=function(i){this.kill(i||{})},e.kill=function(i){this.contexts.forEach(function(n){return n.kill(i,!0)})},u}(),Wt={registerPlugin:function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];t.forEach(function(n){return On(n)})},timeline:function(e){return new ne(e)},getTweensOf:function(e,t){return z.getTweensOf(e,t)},getProperty:function(e,t,i,n){K(e)&&(e=Ee(e)[0]);var r=Ue(e||{}).get,s=i?wn:Cn;return i==="native"&&(i=""),e&&(t?s((de[t]&&de[t].get||r)(e,t,i,n)):function(o,a,l){return s((de[o]&&de[o].get||r)(e,o,a,l))})},quickSetter:function(e,t,i){if(e=Ee(e),e.length>1){var n=e.map(function(c){return j.quickSetter(c,t,i)}),r=n.length;return function(c){for(var h=r;h--;)n[h](c)}}e=e[0]||{};var s=de[t],o=Ue(e),a=o.harness&&(o.harness.aliases||{})[t]||t,l=s?function(c){var h=new s;ot._pt=0,h.init(e,i?c+i:c,ot,0,[e]),h.render(1,h),ot._pt&&Vi(1,ot)}:o.set(e,a);return s?l:function(c){return l(e,a,i?c+i:c,o,1)}},quickTo:function(e,t,i){var n,r=j.to(e,Xe((n={},n[t]="+=0.1",n.paused=!0,n),i||{})),s=function(a,l,c){return r.resetTo(t,a,l,c)};return s.tween=r,s},isTweening:function(e){return z.getTweensOf(e,!0).length>0},defaults:function(e){return e&&e.ease&&(e.ease=We(e.ease,at.ease)),ln(at,e||{})},config:function(e){return ln(fe,e||{})},registerEffect:function(e){var t=e.name,i=e.effect,n=e.plugins,r=e.defaults,s=e.extendTimeline;(n||"").split(",").forEach(function(o){return o&&!de[o]&&!De[o]&&qt(t+" effect requires "+o+" plugin.")}),li[t]=function(o,a,l){return i(Ee(o),be(a||{},r),l)},s&&(ne.prototype[t]=function(o,a,l){return this.add(li[t](o,Ae(a)?a:(l=a)&&{},this),l)})},registerEase:function(e,t){k[e]=We(t)},parseEase:function(e,t){return arguments.length?We(e,t):k},getById:function(e){return z.getById(e)},exportRoot:function(e,t){e===void 0&&(e={});var i=new ne(e),n,r;for(i.smoothChildTiming=pe(e.smoothChildTiming),z.remove(i),i._dp=0,i._time=i._tTime=z._time,n=z._first;n;)r=n._next,(t||!(!n._dur&&n instanceof J&&n.vars.onComplete===n._targets[0]))&&Se(i,n,n._start-n._delay),n=r;return Se(z,i,0),i},context:function(e,t){return e?new Wn(e,t):W},matchMedia:function(e){return new ds(e)},matchMediaRefresh:function(){return Ye.forEach(function(e){var t=e.conditions,i,n;for(n in t)t[n]&&(t[n]=!1,i=1);i&&e.revert()})||wi()},addEventListener:function(e,t){var i=Vt[e]||(Vt[e]=[]);~i.indexOf(t)||i.push(t)},removeEventListener:function(e,t){var i=Vt[e],n=i&&i.indexOf(t);n>=0&&i.splice(n,1)},utils:{wrap:qr,wrapYoyo:zr,distribute:xn,random:Pn,snap:In,normalize:$r,getUnit:ee,clamp:Hr,splitColor:Hn,toArray:Ee,selector:vi,mapRange:Bn,pipe:Nr,unitize:Vr,interpolate:jr,shuffle:Fn},install:yn,effects:li,ticker:he,updateRoot:ne.updateRoot,plugins:de,globalTimeline:z,core:{PropTween:ue,globals:En,Tween:J,Timeline:ne,Animation:Tt,getCache:Ue,_removeLinkedListItem:Jt,reverting:function(){return re},context:function(e){return e&&W&&(W.data.push(e),e._ctx=W),W},suppressOverwrites:function(e){return Ti=e}}};le("to,from,fromTo,delayedCall,set,killTweensOf",function(u){return Wt[u]=J[u]});he.add(ne.updateRoot);ot=Wt.to({},{duration:0});var hs=function(e,t){for(var i=e._pt;i&&i.p!==t&&i.op!==t&&i.fp!==t;)i=i._next;return i},ps=function(e,t){var i=e._targets,n,r,s;for(n in t)for(r=i.length;r--;)s=e._ptLookup[r][n],s&&(s=s.d)&&(s._pt&&(s=hs(s,n)),s&&s.modifier&&s.modifier(t[n],e,i[r],n))},pi=function(e,t){return{name:e,rawVars:1,init:function(n,r,s){s._onInit=function(o){var a,l;if(K(r)&&(a={},le(r,function(c){return a[c]=1}),r=a),t){a={};for(l in r)a[l]=t(r[l]);r=a}ps(o,r)}}}},j=Wt.registerPlugin({name:"attr",init:function(e,t,i,n,r){var s,o,a;this.tween=i;for(s in t)a=e.getAttribute(s)||"",o=this.add(e,"setAttribute",(a||0)+"",t[s],n,r,0,0,s),o.op=s,o.b=a,this._props.push(s)},render:function(e,t){for(var i=t._pt;i;)re?i.set(i.t,i.p,i.b,i):i.r(e,i.d),i=i._next}},{name:"endArray",init:function(e,t){for(var i=t.length;i--;)this.add(e,i,e[i]||0,t[i],0,0,0,0,0,1)}},pi("roundProps",bi),pi("modifiers"),pi("snap",In))||Wt;J.version=ne.version=j.version="3.12.2";_n=1;Si()&&ct();var fs=k.Power0,ms=k.Power1,Ds=k.Power2,gs=k.Power3,_s=k.Power4,ys=k.Linear,Es=k.Quad,vs=k.Cubic,bs=k.Quart,Cs=k.Quint,ws=k.Strong,Ts=k.Elastic,Ss=k.Back,As=k.SteppedEase,Ms=k.Bounce,Ls=k.Sine,Fs=k.Expo,xs=k.Circ;var Yn,$e,pt,Xi,it,Is,Xn,Ji,Ps=function(){return typeof window!="undefined"},Be={},tt=180/Math.PI,ft=Math.PI/180,ht=Math.atan2,Jn=1e8,Qi=/([A-Z])/g,ks=/(left|right|width|margin|padding|x)/i,Bs=/[\s,\(]\S/,Me={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},ji=function(e,t){return t.set(t.t,t.p,Math.round((t.s+t.c*e)*1e4)/1e4+t.u,t)},Rs=function(e,t){return t.set(t.t,t.p,e===1?t.e:Math.round((t.s+t.c*e)*1e4)/1e4+t.u,t)},Os=function(e,t){return t.set(t.t,t.p,e?Math.round((t.s+t.c*e)*1e4)/1e4+t.u:t.b,t)},Hs=function(e,t){var i=t.s+t.c*e;t.set(t.t,t.p,~~(i+(i<0?-.5:.5))+t.u,t)},nr=function(e,t){return t.set(t.t,t.p,e?t.e:t.b,t)},rr=function(e,t){return t.set(t.t,t.p,e!==1?t.b:t.e,t)},Us=function(e,t,i){return e.style[t]=i},Ns=function(e,t,i){return e.style.setProperty(t,i)},Vs=function(e,t,i){return e._gsap[t]=i},$s=function(e,t,i){return e._gsap.scaleX=e._gsap.scaleY=i},qs=function(e,t,i,n,r){var s=e._gsap;s.scaleX=s.scaleY=i,s.renderTransform(r,s)},zs=function(e,t,i,n,r){var s=e._gsap;s[t]=i,s.renderTransform(r,s)},G="transform",we=G+"Origin",js=function u(e,t){var i=this,n=this.target,r=n.style;if(e in Be&&r){if(this.tfm=this.tfm||{},e!=="transform")e=Me[e]||e,~e.indexOf(",")?e.split(",").forEach(function(s){return i.tfm[s]=ke(n,s)}):this.tfm[e]=n._gsap.x?n._gsap[e]:ke(n,e);else return Me.transform.split(",").forEach(function(s){return u.call(i,s,t)});if(this.props.indexOf(G)>=0)return;n._gsap.svg&&(this.svgo=n.getAttribute("data-svg-origin"),this.props.push(we,t,"")),e=G}(r||t)&&this.props.push(e,t,r[e])},sr=function(e){e.translate&&(e.removeProperty("translate"),e.removeProperty("scale"),e.removeProperty("rotate"))},Gs=function(){var e=this.props,t=this.target,i=t.style,n=t._gsap,r,s;for(r=0;r<e.length;r+=3)e[r+1]?t[e[r]]=e[r+2]:e[r+2]?i[e[r]]=e[r+2]:i.removeProperty(e[r].substr(0,2)==="--"?e[r]:e[r].replace(Qi,"-$1").toLowerCase());if(this.tfm){for(s in this.tfm)n[s]=this.tfm[s];n.svg&&(n.renderTransform(),t.setAttribute("data-svg-origin",this.svgo||"")),r=Ji(),(!r||!r.isStart)&&!i[G]&&(sr(i),n.uncache=1)}},or=function(e,t){var i={target:e,props:[],revert:Gs,save:js};return e._gsap||j.core.getCache(e),t&&t.split(",").forEach(function(n){return i.save(n)}),i},ar,Gi=function(e,t){var i=$e.createElementNS?$e.createElementNS((t||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),e):$e.createElement(e);return i.style?i:$e.createElement(e)},Le=function u(e,t,i){var n=getComputedStyle(e);return n[t]||n.getPropertyValue(t.replace(Qi,"-$1").toLowerCase())||n.getPropertyValue(t)||!i&&u(e,mt(t)||t,1)||""},Qn="O,Moz,ms,Ms,Webkit".split(","),mt=function(e,t,i){var n=t||it,r=n.style,s=5;if(e in r&&!i)return e;for(e=e.charAt(0).toUpperCase()+e.substr(1);s--&&!(Qn[s]+e in r););return s<0?null:(s===3?"ms":s>=0?Qn[s]:"")+e},Wi=function(){Ps()&&window.document&&(Yn=window,$e=Yn.document,pt=$e.documentElement,it=Gi("div")||{style:{}},Is=Gi("div"),G=mt(G),we=G+"Origin",it.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",ar=!!mt("perspective"),Ji=j.core.reverting,Xi=1)},qi=function u(e){var t=Gi("svg",this.ownerSVGElement&&this.ownerSVGElement.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),i=this.parentNode,n=this.nextSibling,r=this.style.cssText,s;if(pt.appendChild(t),t.appendChild(this),this.style.display="block",e)try{s=this.getBBox(),this._gsapBBox=this.getBBox,this.getBBox=u}catch{}else this._gsapBBox&&(s=this._gsapBBox());return i&&(n?i.insertBefore(this,n):i.appendChild(this)),pt.removeChild(t),this.style.cssText=r,s},Kn=function(e,t){for(var i=t.length;i--;)if(e.hasAttribute(t[i]))return e.getAttribute(t[i])},lr=function(e){var t;try{t=e.getBBox()}catch{t=qi.call(e,!0)}return t&&(t.width||t.height)||e.getBBox===qi||(t=qi.call(e,!0)),t&&!t.width&&!t.x&&!t.y?{x:+Kn(e,["x","cx","x1"])||0,y:+Kn(e,["y","cy","y1"])||0,width:0,height:0}:t},ur=function(e){return!!(e.getCTM&&(!e.parentNode||e.ownerSVGElement)&&lr(e))},Mt=function(e,t){if(t){var i=e.style;t in Be&&t!==we&&(t=G),i.removeProperty?((t.substr(0,2)==="ms"||t.substr(0,6)==="webkit")&&(t="-"+t),i.removeProperty(t.replace(Qi,"-$1").toLowerCase())):i.removeAttribute(t)}},qe=function(e,t,i,n,r,s){var o=new ue(e._pt,t,i,0,1,s?rr:nr);return e._pt=o,o.b=n,o.e=r,e._props.push(i),o},Zn={deg:1,rad:1,turn:1},Ws={grid:1,flex:1},ze=function u(e,t,i,n){var r=parseFloat(i)||0,s=(i+"").trim().substr((r+"").length)||"px",o=it.style,a=ks.test(t),l=e.tagName.toLowerCase()==="svg",c=(l?"client":"offset")+(a?"Width":"Height"),h=100,p=n==="px",f=n==="%",D,d,m,g;return n===s||!r||Zn[n]||Zn[s]?r:(s!=="px"&&!p&&(r=u(e,t,i,"px")),g=e.getCTM&&ur(e),(f||s==="%")&&(Be[t]||~t.indexOf("adius"))?(D=g?e.getBBox()[a?"width":"height"]:e[c],X(f?r/D*h:r/100*D)):(o[a?"width":"height"]=h+(p?s:n),d=~t.indexOf("adius")||n==="em"&&e.appendChild&&!l?e:e.parentNode,g&&(d=(e.ownerSVGElement||{}).parentNode),(!d||d===$e||!d.appendChild)&&(d=$e.body),m=d._gsap,m&&f&&m.width&&a&&m.time===he.time&&!m.uncache?X(r/m.width*h):((f||s==="%")&&!Ws[Le(d,"display")]&&(o.position=Le(e,"position")),d===e&&(o.position="static"),d.appendChild(it),D=it[c],d.removeChild(it),o.position="absolute",a&&f&&(m=Ue(d),m.time=he.time,m.width=d[c]),X(p?D*r/h:D&&r?h/D*r:0))))},ke=function(e,t,i,n){var r;return Xi||Wi(),t in Me&&t!=="transform"&&(t=Me[t],~t.indexOf(",")&&(t=t.split(",")[0])),Be[t]&&t!=="transform"?(r=Ft(e,n),r=t!=="transformOrigin"?r[t]:r.svg?r.origin:ti(Le(e,we))+" "+r.zOrigin+"px"):(r=e.style[t],(!r||r==="auto"||n||~(r+"").indexOf("calc("))&&(r=ei[t]&&ei[t](e,t,i)||Le(e,t)||Pi(e,t)||(t==="opacity"?1:0))),i&&!~(r+"").trim().indexOf(" ")?ze(e,t,r,i)+i:r},Ys=function(e,t,i,n){if(!i||i==="none"){var r=mt(t,e,1),s=r&&Le(e,r,1);s&&s!==i?(t=r,i=s):t==="borderColor"&&(i=Le(e,"borderTopColor"))}var o=new ue(this._pt,e.style,t,0,1,Ni),a=0,l=0,c,h,p,f,D,d,m,g,y,_,v,E;if(o.b=i,o.e=n,i+="",n+="",n==="auto"&&(e.style[t]=n,n=Le(e,t)||n,e.style[t]=i),c=[i,n],ki(c),i=c[0],n=c[1],p=i.match(Je)||[],E=n.match(Je)||[],E.length){for(;h=Je.exec(n);)m=h[0],y=n.substring(a,h.index),D?D=(D+1)%5:(y.substr(-5)==="rgba("||y.substr(-5)==="hsla(")&&(D=1),m!==(d=p[l++]||"")&&(f=parseFloat(d)||0,v=d.substr((f+"").length),m.charAt(1)==="="&&(m=Qe(f,m)+v),g=parseFloat(m),_=m.substr((g+"").length),a=Je.lastIndex-_.length,_||(_=_||fe.units[t]||v,a===n.length&&(n+=_,o.e+=_)),v!==_&&(f=ze(e,t,d,_)||0),o._pt={_next:o._pt,p:y||l===1?y:",",s:f,c:g-f,m:D&&D<4||t==="zIndex"?Math.round:0});o.c=a<n.length?n.substring(a,n.length):""}else o.r=t==="display"&&n==="none"?rr:nr;return Mi.test(n)&&(o.e=0),this._pt=o,o},er={top:"0%",bottom:"100%",left:"0%",right:"100%",center:"50%"},Xs=function(e){var t=e.split(" "),i=t[0],n=t[1]||"50%";return(i==="top"||i==="bottom"||n==="left"||n==="right")&&(e=i,i=n,n=e),t[0]=er[i]||i,t[1]=er[n]||n,t.join(" ")},Js=function(e,t){if(t.tween&&t.tween._time===t.tween._dur){var i=t.t,n=i.style,r=t.u,s=i._gsap,o,a,l;if(r==="all"||r===!0)n.cssText="",a=1;else for(r=r.split(","),l=r.length;--l>-1;)o=r[l],Be[o]&&(a=1,o=o==="transformOrigin"?we:G),Mt(i,o);a&&(Mt(i,G),s&&(s.svg&&i.removeAttribute("transform"),Ft(i,1),s.uncache=1,sr(n)))}},ei={clearProps:function(e,t,i,n,r){if(r.data!=="isFromStart"){var s=e._pt=new ue(e._pt,t,i,0,0,Js);return s.u=n,s.pr=-10,s.tween=r,e._props.push(i),1}}},Lt=[1,0,0,1,0,0],cr={},dr=function(e){return e==="matrix(1, 0, 0, 1, 0, 0)"||e==="none"||!e},tr=function(e){var t=Le(e,G);return dr(t)?Lt:t.substr(7).match(Ai).map(X)},Ki=function(e,t){var i=e._gsap||Ue(e),n=e.style,r=tr(e),s,o,a,l;return i.svg&&e.getAttribute("transform")?(a=e.transform.baseVal.consolidate().matrix,r=[a.a,a.b,a.c,a.d,a.e,a.f],r.join(",")==="1,0,0,1,0,0"?Lt:r):(r===Lt&&!e.offsetParent&&e!==pt&&!i.svg&&(a=n.display,n.display="block",s=e.parentNode,(!s||!e.offsetParent)&&(l=1,o=e.nextElementSibling,pt.appendChild(e)),r=tr(e),a?n.display=a:Mt(e,"display"),l&&(o?s.insertBefore(e,o):s?s.appendChild(e):pt.removeChild(e))),t&&r.length>6?[r[0],r[1],r[4],r[5],r[12],r[13]]:r)},Yi=function(e,t,i,n,r,s){var o=e._gsap,a=r||Ki(e,!0),l=o.xOrigin||0,c=o.yOrigin||0,h=o.xOffset||0,p=o.yOffset||0,f=a[0],D=a[1],d=a[2],m=a[3],g=a[4],y=a[5],_=t.split(" "),v=parseFloat(_[0])||0,E=parseFloat(_[1])||0,S,T,w,C;i?a!==Lt&&(T=f*m-D*d)&&(w=v*(m/T)+E*(-d/T)+(d*y-m*g)/T,C=v*(-D/T)+E*(f/T)-(f*y-D*g)/T,v=w,E=C):(S=lr(e),v=S.x+(~_[0].indexOf("%")?v/100*S.width:v),E=S.y+(~(_[1]||_[0]).indexOf("%")?E/100*S.height:E)),n||n!==!1&&o.smooth?(g=v-l,y=E-c,o.xOffset=h+(g*f+y*d)-g,o.yOffset=p+(g*D+y*m)-y):o.xOffset=o.yOffset=0,o.xOrigin=v,o.yOrigin=E,o.smooth=!!n,o.origin=t,o.originIsAbsolute=!!i,e.style[we]="0px 0px",s&&(qe(s,o,"xOrigin",l,v),qe(s,o,"yOrigin",c,E),qe(s,o,"xOffset",h,o.xOffset),qe(s,o,"yOffset",p,o.yOffset)),e.setAttribute("data-svg-origin",v+" "+E)},Ft=function(e,t){var i=e._gsap||new Bi(e);if("x"in i&&!t&&!i.uncache)return i;var n=e.style,r=i.scaleX<0,s="px",o="deg",a=getComputedStyle(e),l=Le(e,we)||"0",c,h,p,f,D,d,m,g,y,_,v,E,S,T,w,C,L,P,N,V,q,U,M,x,$,b,ce,oe,ae,gt,Q,R;return c=h=p=d=m=g=y=_=v=0,f=D=1,i.svg=!!(e.getCTM&&ur(e)),a.translate&&((a.translate!=="none"||a.scale!=="none"||a.rotate!=="none")&&(n[G]=(a.translate!=="none"?"translate3d("+(a.translate+" 0 0").split(" ").slice(0,3).join(", ")+") ":"")+(a.rotate!=="none"?"rotate("+a.rotate+") ":"")+(a.scale!=="none"?"scale("+a.scale.split(" ").join(",")+") ":"")+(a[G]!=="none"?a[G]:"")),n.scale=n.rotate=n.translate="none"),T=Ki(e,i.svg),i.svg&&(i.uncache?($=e.getBBox(),l=i.xOrigin-$.x+"px "+(i.yOrigin-$.y)+"px",x=""):x=!t&&e.getAttribute("data-svg-origin"),Yi(e,x||l,!!x||i.originIsAbsolute,i.smooth!==!1,T)),E=i.xOrigin||0,S=i.yOrigin||0,T!==Lt&&(P=T[0],N=T[1],V=T[2],q=T[3],c=U=T[4],h=M=T[5],T.length===6?(f=Math.sqrt(P*P+N*N),D=Math.sqrt(q*q+V*V),d=P||N?ht(N,P)*tt:0,y=V||q?ht(V,q)*tt+d:0,y&&(D*=Math.abs(Math.cos(y*ft))),i.svg&&(c-=E-(E*P+S*V),h-=S-(E*N+S*q))):(R=T[6],gt=T[7],ce=T[8],oe=T[9],ae=T[10],Q=T[11],c=T[12],h=T[13],p=T[14],w=ht(R,ae),m=w*tt,w&&(C=Math.cos(-w),L=Math.sin(-w),x=U*C+ce*L,$=M*C+oe*L,b=R*C+ae*L,ce=U*-L+ce*C,oe=M*-L+oe*C,ae=R*-L+ae*C,Q=gt*-L+Q*C,U=x,M=$,R=b),w=ht(-V,ae),g=w*tt,w&&(C=Math.cos(-w),L=Math.sin(-w),x=P*C-ce*L,$=N*C-oe*L,b=V*C-ae*L,Q=q*L+Q*C,P=x,N=$,V=b),w=ht(N,P),d=w*tt,w&&(C=Math.cos(w),L=Math.sin(w),x=P*C+N*L,$=U*C+M*L,N=N*C-P*L,M=M*C-U*L,P=x,U=$),m&&Math.abs(m)+Math.abs(d)>359.9&&(m=d=0,g=180-g),f=X(Math.sqrt(P*P+N*N+V*V)),D=X(Math.sqrt(M*M+R*R)),w=ht(U,M),y=Math.abs(w)>2e-4?w*tt:0,v=Q?1/(Q<0?-Q:Q):0),i.svg&&(x=e.getAttribute("transform"),i.forceCSS=e.setAttribute("transform","")||!dr(Le(e,G)),x&&e.setAttribute("transform",x))),Math.abs(y)>90&&Math.abs(y)<270&&(r?(f*=-1,y+=d<=0?180:-180,d+=d<=0?180:-180):(D*=-1,y+=y<=0?180:-180)),t=t||i.uncache,i.x=c-((i.xPercent=c&&(!t&&i.xPercent||(Math.round(e.offsetWidth/2)===Math.round(-c)?-50:0)))?e.offsetWidth*i.xPercent/100:0)+s,i.y=h-((i.yPercent=h&&(!t&&i.yPercent||(Math.round(e.offsetHeight/2)===Math.round(-h)?-50:0)))?e.offsetHeight*i.yPercent/100:0)+s,i.z=p+s,i.scaleX=X(f),i.scaleY=X(D),i.rotation=X(d)+o,i.rotationX=X(m)+o,i.rotationY=X(g)+o,i.skewX=y+o,i.skewY=_+o,i.transformPerspective=v+s,(i.zOrigin=parseFloat(l.split(" ")[2])||0)&&(n[we]=ti(l)),i.xOffset=i.yOffset=0,i.force3D=fe.force3D,i.renderTransform=i.svg?Ks:ar?hr:Qs,i.uncache=0,i},ti=function(e){return(e=e.split(" "))[0]+" "+e[1]},zi=function(e,t,i){var n=ee(t);return X(parseFloat(t)+parseFloat(ze(e,"x",i+"px",n)))+n},Qs=function(e,t){t.z="0px",t.rotationY=t.rotationX="0deg",t.force3D=0,hr(e,t)},Ze="0deg",At="0px",et=") ",hr=function(e,t){var i=t||this,n=i.xPercent,r=i.yPercent,s=i.x,o=i.y,a=i.z,l=i.rotation,c=i.rotationY,h=i.rotationX,p=i.skewX,f=i.skewY,D=i.scaleX,d=i.scaleY,m=i.transformPerspective,g=i.force3D,y=i.target,_=i.zOrigin,v="",E=g==="auto"&&e&&e!==1||g===!0;if(_&&(h!==Ze||c!==Ze)){var S=parseFloat(c)*ft,T=Math.sin(S),w=Math.cos(S),C;S=parseFloat(h)*ft,C=Math.cos(S),s=zi(y,s,T*C*-_),o=zi(y,o,-Math.sin(S)*-_),a=zi(y,a,w*C*-_+_)}m!==At&&(v+="perspective("+m+et),(n||r)&&(v+="translate("+n+"%, "+r+"%) "),(E||s!==At||o!==At||a!==At)&&(v+=a!==At||E?"translate3d("+s+", "+o+", "+a+") ":"translate("+s+", "+o+et),l!==Ze&&(v+="rotate("+l+et),c!==Ze&&(v+="rotateY("+c+et),h!==Ze&&(v+="rotateX("+h+et),(p!==Ze||f!==Ze)&&(v+="skew("+p+", "+f+et),(D!==1||d!==1)&&(v+="scale("+D+", "+d+et),y.style[G]=v||"translate(0, 0)"},Ks=function(e,t){var i=t||this,n=i.xPercent,r=i.yPercent,s=i.x,o=i.y,a=i.rotation,l=i.skewX,c=i.skewY,h=i.scaleX,p=i.scaleY,f=i.target,D=i.xOrigin,d=i.yOrigin,m=i.xOffset,g=i.yOffset,y=i.forceCSS,_=parseFloat(s),v=parseFloat(o),E,S,T,w,C;a=parseFloat(a),l=parseFloat(l),c=parseFloat(c),c&&(c=parseFloat(c),l+=c,a+=c),a||l?(a*=ft,l*=ft,E=Math.cos(a)*h,S=Math.sin(a)*h,T=Math.sin(a-l)*-p,w=Math.cos(a-l)*p,l&&(c*=ft,C=Math.tan(l-c),C=Math.sqrt(1+C*C),T*=C,w*=C,c&&(C=Math.tan(c),C=Math.sqrt(1+C*C),E*=C,S*=C)),E=X(E),S=X(S),T=X(T),w=X(w)):(E=h,w=p,S=T=0),(_&&!~(s+"").indexOf("px")||v&&!~(o+"").indexOf("px"))&&(_=ze(f,"x",s,"px"),v=ze(f,"y",o,"px")),(D||d||m||g)&&(_=X(_+D-(D*E+d*T)+m),v=X(v+d-(D*S+d*w)+g)),(n||r)&&(C=f.getBBox(),_=X(_+n/100*C.width),v=X(v+r/100*C.height)),C="matrix("+E+","+S+","+T+","+w+","+_+","+v+")",f.setAttribute("transform",C),y&&(f.style[G]=C)},Zs=function(e,t,i,n,r){var s=360,o=K(r),a=parseFloat(r)*(o&&~r.indexOf("rad")?tt:1),l=a-n,c=n+l+"deg",h,p;return o&&(h=r.split("_")[1],h==="short"&&(l%=s,l!==l%(s/2)&&(l+=l<0?s:-s)),h==="cw"&&l<0?l=(l+s*Jn)%s-~~(l/s)*s:h==="ccw"&&l>0&&(l=(l-s*Jn)%s-~~(l/s)*s)),e._pt=p=new ue(e._pt,t,i,n,l,Rs),p.e=c,p.u="deg",e._props.push(i),p},ir=function(e,t){for(var i in t)e[i]=t[i];return e},eo=function(e,t,i){var n=ir({},i._gsap),r="perspective,force3D,transformOrigin,svgOrigin",s=i.style,o,a,l,c,h,p,f,D;n.svg?(l=i.getAttribute("transform"),i.setAttribute("transform",""),s[G]=t,o=Ft(i,1),Mt(i,G),i.setAttribute("transform",l)):(l=getComputedStyle(i)[G],s[G]=t,o=Ft(i,1),s[G]=l);for(a in Be)l=n[a],c=o[a],l!==c&&r.indexOf(a)<0&&(f=ee(l),D=ee(c),h=f!==D?ze(i,a,l,D):parseFloat(l),p=parseFloat(c),e._pt=new ue(e._pt,o,a,h,p-h,ji),e._pt.u=D||0,e._props.push(a));ir(o,n)};le("padding,margin,Width,Radius",function(u,e){var t="Top",i="Right",n="Bottom",r="Left",s=(e<3?[t,i,n,r]:[t+r,t+i,n+i,n+r]).map(function(o){return e<2?u+o:"border"+o+u});ei[e>1?"border"+u:u]=function(o,a,l,c,h){var p,f;if(arguments.length<4)return p=s.map(function(D){return ke(o,D,l)}),f=p.join(" "),f.split(p[0]).length===5?p[0]:f;p=(c+"").split(" "),f={},s.forEach(function(D,d){return f[D]=p[d]=p[d]||p[(d-1)/2|0]}),o.init(a,f,h)}});var Zi={name:"css",register:Wi,targetTest:function(e){return e.style&&e.nodeType},init:function(e,t,i,n,r){var s=this._props,o=e.style,a=i.vars.startAt,l,c,h,p,f,D,d,m,g,y,_,v,E,S,T,w;Xi||Wi(),this.styles=this.styles||or(e),w=this.styles.props,this.tween=i;for(d in t)if(d!=="autoRound"&&(c=t[d],!(de[d]&&Oi(d,t,i,n,e,r)))){if(f=typeof c,D=ei[d],f==="function"&&(c=c.call(i,n,e,r),f=typeof c),f==="string"&&~c.indexOf("random(")&&(c=dt(c)),D)D(this,e,d,c,i)&&(T=1);else if(d.substr(0,2)==="--")l=(getComputedStyle(e).getPropertyValue(d)+"").trim(),c+="",Ie.lastIndex=0,Ie.test(l)||(m=ee(l),g=ee(c)),g?m!==g&&(l=ze(e,d,l,g)+g):m&&(c+=m),this.add(o,"setProperty",l,c,n,r,0,0,d),s.push(d),w.push(d,0,o[d]);else if(f!=="undefined"){if(a&&d in a?(l=typeof a[d]=="function"?a[d].call(i,n,e,r):a[d],K(l)&&~l.indexOf("random(")&&(l=dt(l)),ee(l+"")||(l+=fe.units[d]||ee(ke(e,d))||""),(l+"").charAt(1)==="="&&(l=ke(e,d))):l=ke(e,d),p=parseFloat(l),y=f==="string"&&c.charAt(1)==="="&&c.substr(0,2),y&&(c=c.substr(2)),h=parseFloat(c),d in Me&&(d==="autoAlpha"&&(p===1&&ke(e,"visibility")==="hidden"&&h&&(p=0),w.push("visibility",0,o.visibility),qe(this,o,"visibility",p?"inherit":"hidden",h?"inherit":"hidden",!h)),d!=="scale"&&d!=="transform"&&(d=Me[d],~d.indexOf(",")&&(d=d.split(",")[0]))),_=d in Be,_){if(this.styles.save(d),v||(E=e._gsap,E.renderTransform&&!t.parseTransform||Ft(e,t.parseTransform),S=t.smoothOrigin!==!1&&E.smooth,v=this._pt=new ue(this._pt,o,G,0,1,E.renderTransform,E,0,-1),v.dep=1),d==="scale")this._pt=new ue(this._pt,E,"scaleY",E.scaleY,(y?Qe(E.scaleY,y+h):h)-E.scaleY||0,ji),this._pt.u=0,s.push("scaleY",d),d+="X";else if(d==="transformOrigin"){w.push(we,0,o[we]),c=Xs(c),E.svg?Yi(e,c,0,S,0,this):(g=parseFloat(c.split(" ")[2])||0,g!==E.zOrigin&&qe(this,E,"zOrigin",E.zOrigin,g),qe(this,o,d,ti(l),ti(c)));continue}else if(d==="svgOrigin"){Yi(e,c,1,S,0,this);continue}else if(d in cr){Zs(this,E,d,p,y?Qe(p,y+c):c);continue}else if(d==="smoothOrigin"){qe(this,E,"smooth",E.smooth,c);continue}else if(d==="force3D"){E[d]=c;continue}else if(d==="transform"){eo(this,c,e);continue}}else d in o||(d=mt(d)||d);if(_||(h||h===0)&&(p||p===0)&&!Bs.test(c)&&d in o)m=(l+"").substr((p+"").length),h||(h=0),g=ee(c)||(d in fe.units?fe.units[d]:m),m!==g&&(p=ze(e,d,l,g)),this._pt=new ue(this._pt,_?E:o,d,p,(y?Qe(p,y+h):h)-p,!_&&(g==="px"||d==="zIndex")&&t.autoRound!==!1?Hs:ji),this._pt.u=g||0,m!==g&&g!=="%"&&(this._pt.b=l,this._pt.r=Os);else if(d in o)Ys.call(this,e,d,l,y?y+c:c);else if(d in e)this.add(e,d,l||e[d],y?y+c:c,n,r);else if(d!=="parseTransform"){Xt(d,c);continue}_||(d in o?w.push(d,0,o[d]):w.push(d,1,l||e[d])),s.push(d)}}T&&$i(this)},render:function(e,t){if(t.tween._time||!Ji())for(var i=t._pt;i;)i.r(e,i.d),i=i._next;else t.styles.revert()},get:ke,aliases:Me,getSetter:function(e,t,i){var n=Me[t];return n&&n.indexOf(",")<0&&(t=n),t in Be&&t!==we&&(e._gsap.x||ke(e,"x"))?i&&Xn===i?t==="scale"?$s:Vs:(Xn=i||{})&&(t==="scale"?qs:zs):e.style&&!Yt(e.style[t])?Us:~t.indexOf("-")?Ns:Zt(e,t)},core:{_removeProperty:Mt,_getMatrix:Ki}};j.utils.checkPrefix=mt;j.core.getStyleSaver=or;(function(u,e,t,i){var n=le(u+","+e+","+t,function(r){Be[r]=1});le(e,function(r){fe.units[r]="deg",cr[r]=1}),Me[n[13]]=u+","+e,le(i,function(r){var s=r.split(":");Me[s[1]]=n[s[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");le("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",function(u){fe.units[u]="px"});j.registerPlugin(Zi);var I=j.registerPlugin(Zi)||j,bo=I.core.Tween;var nt=class extends Error{};nt.prototype.name="InvalidTokenError";function to(u){return decodeURIComponent(atob(u).replace(/(.)/g,(e,t)=>{let i=t.charCodeAt(0).toString(16).toUpperCase();return i.length<2&&(i="0"+i),"%"+i}))}function io(u){let e=u.replace(/-/g,"+").replace(/_/g,"/");switch(e.length%4){case 0:break;case 2:e+="==";break;case 3:e+="=";break;default:throw new Error("base64 string is not of the correct length")}try{return to(e)}catch{return atob(e)}}function pr(u,e){if(typeof u!="string")throw new nt("Invalid token specified: must be a string");e||(e={});let t=e.header===!0?0:1,i=u.split(".")[t];if(typeof i!="string")throw new nt(`Invalid token specified: missing part #${t+1}`);let n;try{n=io(i)}catch(r){throw new nt(`Invalid token specified: invalid base64 for part #${t+1} (${r.message})`)}try{return JSON.parse(n)}catch(r){throw new nt(`Invalid token specified: invalid json for part #${t+1} (${r.message})`)}}var F={BASE_URL:"https://api.cloneme.io/"},no="Username-Password-Authentication",A=class{static setJWTToken(e){A.jtwToken=e,A.HEADERS.authorization=`Bearer ${e}`}static async fetchImages(){let e=await fetch(`${F.BASE_URL}api/me/images`,{method:"GET",headers:A.HEADERS});e.ok;let t=await e.json();return t==null?void 0:t.data}static async fetchImage(e){let t=await fetch(`${F.BASE_URL}api/images/${e}?populate=*`,{method:"GET",headers:A.HEADERS});return t.ok,await t.json()}static async fetchVideos(){let e=await fetch(A.API_URL_DID,{method:"GET",headers:A.HEADERS_D_ID});if(!e.ok)throw new Error("Network response was not ok");return(await e.json()).talks}static async fetchStrapiVideos(){let e=await fetch(`${F.BASE_URL}api/me/videos`,{method:"GET",headers:A.HEADERS});if(!e.ok)throw new Error("Network response was not ok");let t=await e.json();return t==null?void 0:t.data}static async showLoginPopup(){let e=document.getElementById("register-modal");e&&(e.classList.remove("hide"),e.style.display="flex",e.style.opacity="1",e.style.visibility="visible",e.querySelector('[cc-element="close-generic-modal"]').addEventListener("click",i=>{e.classList.add("hide")}))}static async callIfLoggedIn(e,...t){if((await te.getInstance()).status===te.AUTH_STATUS__LOGGED_IN)return e(...t);this.showLoginPopup()}static async fetchDigitalTwinInfo(e,t=!1){let i=await fetch(`${F.BASE_URL}api/digital-twins/${e}`,{method:"GET",headers:A.HEADERS});return i.ok,await i.json()}static async fetchDigitalTwinImageGallery(e){let t=await fetch(`${F.BASE_URL}api/digital-twins/${e}?populate=*`,{method:"GET",headers:A.HEADERS});if(!t.ok)throw new Error;return await t.json()}static async fetchDigitalTwinNormalAndPremiumImageGallery(e){try{let t=await A.fetchDigitalTwinImageGallery(e);return{imageGallery:t.data.attributes.imageGallery.data,premiumImageGallery:t.data.attributes.premiumImageGallery.data}}catch(t){throw new Error(t.message||"There was a problem with the fetch operation")}}static async fetchImageGallery(e){try{return(await A.fetchDigitalTwinImageGallery(e)).data.attributes.imageGallery.data}catch(t){throw new Error(t.message||"There was a problem with the fetch operation")}}static async fetchPremiumImageGallery(e){try{return(await A.fetchDigitalTwinImageGallery(e)).data.attributes.premiumImageGallery.data}catch(t){throw new Error(t.message||"There was a problem with the fetch operation")}}static async deleteVideoDID(e){let t=await fetch(`https://api.d-id.com/talks/${e}`,{method:"DELETE",headers:{...A.HEADERS_D_ID}}),i=await t.json();if(!t.ok)throw new Error(i.description||"Network response was not ok");return await i}static async deleteImage(e){let t={method:"PUT",headers:{...A.HEADERS,"Content-Type":"application/json"}};return fetch(`${F.BASE_URL}api/me/setDeletedImage/${e}`,t).then(async i=>{let n=await i.text();try{let r=JSON.parse(n);if(!i.ok)throw new Error(r.description||"Network response was not ok");return r}catch{throw new Error(n||"Network error")}})}static async setCloneAvatar(e,t,i){let n={method:"PUT",headers:{...A.HEADERS,"Content-Type":"application/json"},body:JSON.stringify({digitalCloneId:i,avatarId:e,identityId:t})},r=await fetch(`${F.BASE_URL}api/digital-twins/setAvatarAndIdentity`,n),s=await r.text();try{let o=JSON.parse(s);if(!r.ok)throw new Error(o.description||"Network response was not ok");return o}catch{throw new Error(s||"Network error")}}static async setActiveVoiceClone(e,t){let i={method:"PUT",headers:{...A.HEADERS,"Content-Type":"application/json"},body:JSON.stringify({digitalCloneId:t,voiceCloneId:e})},n=await fetch(`${F.BASE_URL}api/setActiveVoiceClone`,i),r=await n.text();try{let s=JSON.parse(r);if(!n.ok)throw new Error(s.description||"Network response was not ok");return s}catch{throw new Error(r||"Network error")}}static async deleteVideo(e){let t={method:"PUT",headers:{...A.HEADERS,"Content-Type":"application/json"}},i=await fetch(`${F.BASE_URL}api/me/setDeletedVideo/${e}`,t),n=await i.text();try{let r=JSON.parse(n);if(!i.ok)throw new Error(r.description||"Network response was not ok");return r}catch{throw new Error(n||"Network error")}}static async fetchChatTraining(e){let t={data:{users:e,type:"harvester",username:"Andreas"}};try{return await(await fetch(`${F.BASE_URL}api/clone-instances/`,{method:"POST",headers:{...A.HEADERS,"Content-Type":"application/json"},body:JSON.stringify(t)})).json()}catch(i){throw i}}static async uploadImage(e){if(e.files&&e.files.length>0){let t=e.files[0],i=new FormData;i.append("files.src",t,t.name);let n={user:6,extId:"test"};return i.append("data",JSON.stringify(n)),fetch(`${F.BASE_URL}api/images?populate=*`,{method:"POST",headers:A.HEADERS,body:i,redirect:"follow"}).then(r=>r.json()).then(r=>r).catch(r=>{throw r})}return Promise.reject("No file selected")}static async sendPasswordUpdateEmail(e){let t=new Headers;t.append("Content-Type","application/json");let i=JSON.stringify({client_id:e.clientId,email:e.email,connection:no});return fetch("https://auth.cloneme.io/dbconnections/change_password",{method:"POST",headers:t,body:i}).then(r=>r.text()).then(r=>r).catch(r=>{throw r}),Promise.reject("There's been an error processing your request")}static async uploadImageTwinGallery(e,t){if(e!==null){let i=new FormData;i.append("files",e),i.append("ref","api::digital-twin.digital-twin"),i.append("refId",t.toString()),i.append("field","imageGallery");let n={user:6,extId:"test"};return fetch(`${F.BASE_URL}api/upload`,{method:"post",headers:A.HEADERS,body:i,redirect:"follow"}).then(r=>r.json()).then(r=>r).catch(r=>{throw r})}return Promise.reject("No file selected")}static async deleteImageTwinGallery(e,t){let i=new FormData;return i.append("refId",t.toString()),fetch(`${F.BASE_URL}api/upload/files/${e}`,{method:"DELETE",headers:A.HEADERS,body:i}).then(async n=>n.json()).catch(n=>{throw n})}static async uploadVideoToStrapi(e,t,i){let n=new FormData,r={extId:i,src:e,image:parseInt(i)};return n.append("data",JSON.stringify(r)),fetch(`${F.BASE_URL}api/videos?populate=*`,{method:"POST",headers:A.HEADERS,body:n,redirect:"follow"}).then(s=>s.json()).then(s=>s).catch(s=>{throw s})}static async createClone(e,t,i){return fetch("https://api.d-id.com/talks",{method:"POST",headers:{...A.HEADERS_D_ID,accept:"application/json","content-type":"application/json"},body:JSON.stringify({script:{type:"text",subtitles:"false",provider:{type:"microsoft",voice_id:"en-US-JennyNeural"},ssml:!1,input:t},name:i,config:{fluent:"false",pad_audio:"0.0",stitch:"true",driver_expressions:{expressions:[{start_frame:0,expression:"neutral",intensity:1}]}},source_url:e})}).then(async n=>{let r=await n.json();if(!n.ok)throw new Error(r.description||"Network response was not ok");return r}).then(n=>n.talks)}static async fetchUser(){return fetch(`${F.BASE_URL}api/me/info`,{method:"GET",headers:A.HEADERS}).then(e=>{if(!e.ok&&e.headers&&e.headers.get("x-redirect"))window.location.href=e.headers.get("x-redirect");else return e.json()}).then(e=>e).catch(e=>{throw e})}static async updateIdentity(e,t,i){if(!e||!t)throw new Error("Invalid parameters");try{return await(await fetch(`${F.BASE_URL}api/identities/${i}`,{method:"PUT",headers:{...A.HEADERS,"Content-Type":"application/json"},body:JSON.stringify({data:{[e]:t}})})).json()}catch(n){throw n}}static async updateTwin(e,t,i){if(!e||!t)throw new Error("Invalid parameters");try{return await(await fetch(`${F.BASE_URL}api/digital-twins/${i}`,{method:"PUT",headers:{...A.HEADERS,"Content-Type":"application/json"},body:JSON.stringify({data:{[e]:t}})})).json()}catch(n){throw n}}static async fetchUserByMemberstackID(e){return fetch(`${F.BASE_URL}api/users?filters[memberstackId][$eq]=${e}`,{method:"GET",headers:A.HEADERS}).then(t=>t.json()).then(t=>t).catch(t=>{throw t})}static async fetchUserByMemberstackID_prod(e){return fetch(`${F.BASE_URL}api/users?populate[digital_clone][populate][0]=avatar,influencer&filters[memberstackId][$eq]=${e}`,{method:"GET",headers:A.HEADERS}).then(t=>t.json()).then(t=>t).catch(t=>{throw t})}static async fetchGetInfluencers(){return fetch("https://cloneme-backend-prod-b7c55e1be764.herokuapp.com/api/influencers",{method:"GET",headers:A.HEADERS}).then(e=>e.json()).then(e=>e).catch(e=>{throw e})}static async fetchInfluencerChat(e,t){let i={data:{users:Number(e),type:"conversational",influencer:Number(t)}};return fetch(`${F.BASE_URL}api/clone-instances`,{method:"POST",headers:{...A.HEADERS,"Content-Type":"application/json"},body:JSON.stringify(i)}).then(n=>n.json()).then(n=>n).catch(n=>{throw n})}static async getCloneVideo(e){let t=await fetch(`${F.BASE_URL}api/me/videos/${e}`,{method:"GET",headers:A.HEADERS});t.ok;let i=await t.json();return i==null?void 0:i.data}static async getVoiceCloneVideo(){let e=await fetch(`${F.BASE_URL}api/me/videos/digitalTwinVoiceClone`,{method:"GET",headers:A.HEADERS});e.ok;let t=await e.json();return t==null?void 0:t.data}static async saveCloneVideo(e,t){let i=new FormData;i.append("data",JSON.stringify(e));let n={method:"POST",headers:A.HEADERS,body:i};try{return await(await fetch(`${F.BASE_URL}api/me/videos/${t}`,n)).json()}catch(r){throw r}}static async saveVoiceCloneVideo(e){let t=new FormData;t.append("data",JSON.stringify(e));let i={method:"POST",headers:A.HEADERS,body:t};try{return await(await fetch(`${F.BASE_URL}api/me/videos/digitalTwinVoiceClone`,i)).json()}catch(n){throw n}}static async getTwinIdentityVideo(){let e=await fetch(`${F.BASE_URL}api/me/videos/digitalTwinIdentity`,{method:"GET",headers:A.HEADERS});e.ok;let t=await e.json();return t==null?void 0:t.data}static async saveTwinIdentityVideo(e){let t=new FormData;t.append("data",JSON.stringify(e));let i={method:"POST",headers:A.HEADERS,body:t};try{return await(await fetch(`${F.BASE_URL}api/me/videos/digitalTwinIdentity`,i)).json()}catch(n){throw n}}static async getSubscriptions(){let e={method:"GET",headers:A.HEADERS};try{return await(await fetch(`${F.BASE_URL}api/subscriptions/list`,e)).json()}catch(t){throw t}}static async getStripeRedirectUrl(e,t,i,n){let r={method:"GET",headers:A.HEADERS};try{return await(await fetch(`${F.BASE_URL}api/stripe/get/${e}?callback=${t}&cancelCallback=${i}&source=${n}`,r)).json()}catch(s){throw s}}static async getStripeBillingSession(e){let t={method:"GET",headers:A.HEADERS};try{return await(await fetch(`${F.BASE_URL}api/stripe/billingSession?callback=${e}`,t)).json()}catch(i){throw i}}static async isSubscribedToTwin(e){let t={method:"GET",headers:A.HEADERS};try{return await(await fetch(`${F.BASE_URL}api/me/twinSubscriptions/isSubscribedS/${e}`,t)).json()}catch(i){throw i}}static async subscribeToTwin(e){let t={method:"POST",headers:A.HEADERS};try{return await(await fetch(`${F.BASE_URL}api/me/twinSubscriptions/subscribeS/${e}`,t)).json()}catch(i){throw i}}static async fetchUserWallet(e=!1){let t=e?"&extender=1":"";try{return await(await fetch(`${F.BASE_URL}api/me/wallet${t}`,{method:"GET",headers:A.HEADERS})).json()}catch(i){throw i}}static async fetchStripeSession(e){let t={method:"GET",headers:A.HEADERS};try{return await fetch(`${F.BASE_URL}api/stripe/retrieveCheckoutSession/${e}`,{method:"GET",headers:A.HEADERS})}catch(i){throw i}}static async updateUserProfile(e){let t={method:"PUT",headers:{...A.HEADERS,"Content-Type":"application/json"},body:JSON.stringify({firstName:e.firstName,lastName:e.lastName,tiktokHandle:e.tiktokHandle||void 0,instagramHandle:e.instagramHandle||void 0,onlyFansHandle:e.onlyFansHandle||void 0,xHandle:e.xHandle||void 0,mobileNumber:e.mobileNumber||void 0,message:e.message||void 0})},i=await fetch(`${F.BASE_URL}api/me/info`,t),n=await i.text();try{let r=JSON.parse(n);if(!i.ok)throw new Error(r.description||"Network response was not ok");return r}catch{throw new Error(n||"Network error")}}static async setLocalstorageLoginParamsAfterRedirect(){try{await fetch(`${F.BASE_URL}api/auth/auth0/callback${window.location.search}`).then(e=>{if(e.status!==200)throw new Error(`Couldn't login to Strapi. Status: ${e.status}`);return e}).then(e=>e.json()).then(e=>{localStorage.setItem("jwt",e.jwt),localStorage.setItem("username",e.user.username),localStorage.setItem("auth0_jwt",new URLSearchParams(window.location.search).get("id_token")||"")}).catch(e=>{throw new Error(e)})}catch(e){throw e}}static async getClientChatSession(e){return fetch(`${F.BASE_URL}api/getTwinClientSessionS/${e}`,{method:"GET",headers:{...A.HEADERS,"Content-Type":"application/json"}}).then(t=>t.json()).then(t=>{var i,n;return(n=(i=t==null?void 0:t.data)==null?void 0:i.attributes)==null?void 0:n.url}).catch(t=>{throw t})}static async sendConfirmationEmail(){return fetch(`${F.BASE_URL}api/auth/send-email-confirmation`,{method:"POST",headers:{...A.HEADERS,"Content-Type":"application/json"}}).then(e=>e.json()).then(e=>e).catch(e=>{throw e})}static async loginRedirect(e){return fetch(`${F.BASE_URL}api/auth/auth0/callback${e}`,{method:"GET",headers:{"Content-Type":"application/json"}}).then(t=>t.json()).then(t=>t).catch(t=>{throw t})}static async login(e){return fetch(`${F.BASE_URL}api/connect/auth0?callback=${e}`,{method:"GET",headers:{"Content-Type":"application/json"}}).then(t=>t.json()).then(t=>t).catch(t=>{throw t})}},B=A;B.API_URL_DID="https://api.d-id.com/talks",B.HEADERS={accept:"application/json",authorization:`Bearer ${localStorage.getItem("jwt")}`},B.HEADERS_D_ID={accept:"application/json",authorization:"Basic amFzb25AdGhlZmFjdG9yeWkuY29t:u9IS8-k0SK_q-5k5-lr-e"};function xt(u=!1){let e=new URL(window.location.href),{hostname:t}=e,{protocol:i}=e,n=e.pathname.split("/").filter(a=>a.length>0),r=["18-plus-companion-clones","ai-and-the-epidemic-of-loneliness","ai-companions","ai-guide","ais-human-touch-augmenting-emotional-intelligence","article","ashley","ashleys-message-creator","auth","blog","blair","blairs-message-creator","category","chatbots","cloneme-io-pioneering-the-next-wave-of-ai-at-mits-imagination-in-action-conference","clonemes-human-centred-design-approach-to-digitaldna-twins","companion-clones-demo","companion-clones-demo-old","companions","creator-dashboard","dev-companion-clones","dev-luminaries","digital-twin-checkout","digital-twin-confirmation-page","ensuring-ethical-ai-practices-in-digital-clones-empowering-individuals-to-safeguard-their-image-and-likeness","ethics","features","home-casey-pop","hyper-specialized-motivational-clones","hyper-specialized-clones","test-hyper-specialized-clones","iframe-specialized-clones","influencer","influencer-sign-up","influencers","innovations","insights","interaction-sty","luminaries","luminaries-old","machine-learning-unveiled-journey-into-algorithms-and-techniques","master-class-clones","meet-chloe-the-ultimate-ai-companion","modals","news","nikki","nikkis-message-creator","northpole","northpole-checkout-page","northpole-message-creator-elf","northpole-message-creator-mrs-claus","northpole-message-creator-santa","North Pole - Confirmation Page","payments","pop-test","pricing","pricing-features","privacy-policy","profile","specialized-companion-clones","specialized-clones","specialized-health-and-fitness-clones","sidney-brisbane","spotlight","staging-companion-clones-demos","support","team-clones","temp","terms-of-service","unveiling-the-ethical-imperative-navigating-bias-privacy-and-transparency-in-ai","ai-business-advisor","pricing-ai-advisor","james-oglethorpe"],s=n.length>0&&!r.includes(n[0])&&!u?`/${n[0]}`:"";return`${i}//${t}${s}`}var en="https://api.cloneme.io/",ie=class{constructor(){this._userID=0;this._userName="";this._email="";this._firstName="";this._lastName="";this._phone="";this.userNameStrapi="";this._avatarID=0;this._influencerID=0;this._digitalCloneID=0;this._voiceCloneID=0;this._voiceCloneELID="";this._twin={name:"",specialityLabel:"",introParagraph:"",chatVideoIntroScript:"",interactionStyle:""};this._wallet={tokens:0,keys:0,subscription:void 0,tokensInfo:void 0,keysInfo:void 0};this.currentCreatorProfileState=ie.PROFILE_STATE__NEW;this._loginStatus=ie.AUTH_STATUS__LOGGED_OUT;this.hasInitialized=!1;this.authInfo={provider:null,clientId:null,expirationDate:null}}static async getInstance(){return ie.instance||(ie.instance=new ie,await ie.instance.init()),ie.instance}async init(){var e,t,i,n,r,s,o,a,l,c,h,p;try{if(this.hasInitialized)return;if(this.hasInitialized=!0,this.initialize.bind(this)(),this._loginStatus===ie.AUTH_STATUS__LOGGED_OUT){this.setButtonsState.bind(this)(),this.setElementState();return}let f=await B.fetchUser(),D=f.username;if(!D){this._loginStatus=ie.AUTH_STATUS__LOGGED_OUT,this.setButtonsState.bind(this)();return}this.setButtonsState.bind(this)(),this._userName=D,this._email=f.email,this._firstName=f.firstName,this._lastName=f.lastName,this._phone=(e=f==null?void 0:f.info)==null?void 0:e.mobileNumber,this._userID=f.id;let d=f==null?void 0:f.digitalTwin;if(f){this.userNameStrapi=f.username;let m=await B.fetchUserWallet();m&&(this._wallet.tokens=(t=m==null?void 0:m.attributes)==null?void 0:t.tokens,this._wallet.keys=(i=m==null?void 0:m.attributes)==null?void 0:i.keys,this._wallet.subscription=(n=m==null?void 0:m.attributes)==null?void 0:n.subscription,this._wallet.keysInfo=(r=m==null?void 0:m.attributes)==null?void 0:r.keysInfo,this._wallet.tokensInfo=(s=m==null?void 0:m.attributes)==null?void 0:s.tokensInfo)}d&&(this._voiceCloneID=(o=d.voiceClone)==null?void 0:o.id,this._voiceCloneELID=(a=d.voiceClone)==null?void 0:a.elevenLabsId,this._voiceCloneID?this.currentCreatorProfileState=ie.PROFILE_STATE__VOICE_SETUP:this.currentCreatorProfileState=ie.PROFILE_STATE__AVATAR_SETUP,this._avatarID=(l=d.avatar)==null?void 0:l.id,this._twin.name=d.name,this._twin.specialityLabel=d.specialityLabel,this._twin.introParagraph=((c=d==null?void 0:d.identity)==null?void 0:c.introParagraph)||"",this._twin.chatVideoIntroScript=((h=d==null?void 0:d.identity)==null?void 0:h.chatVideoIntroScript)||"",this._twin.interactionStyle=d.interactionStyle,this._avatarID||(this.currentCreatorProfileState=ie.PROFILE_STATE__NEW),this._influencerID=(p=d.identity)==null?void 0:p.id,this._digitalCloneID=d.id,this._influencerID&&(this.currentCreatorProfileState=ie.PROFILE_STATE__TWIN_TRAINED))}catch{}this.logUserDetails(),this.setupCurrentStatus(),this.setUserFields(),this.setElementState()}setupCurrentStatus(){let e=document.querySelectorAll("[data-profile-step]");I.from(e,{duration:.2,autoAlpha:0,y:0,stagger:.1}),e.forEach(t=>{var n;(parseInt((n=t.getAttribute("data-profile-step"))!=null?n:"0")||0)>this.currentCreatorProfileState?(t.classList.add("disabled"),t.classList.remove("enabled"),t.removeAttribute("href")):(t.classList.add("enabled"),t.classList.remove("disabled"))})}setUserFields(){function e({el:n,sourceObject:r,elementPropertyTarget:s}){r[s]&&(n instanceof HTMLInputElement?n.value=r[s]:n.textContent=r[s])}document.querySelectorAll("[data-profile-value]").forEach(n=>{let r=n.getAttribute("data-profile-value")||"";e({el:n,sourceObject:this,elementPropertyTarget:r})},this),document.querySelectorAll("[data-twin-value]").forEach(n=>{let r=n.getAttribute("data-twin-value")||"";e({el:n,sourceObject:this._twin,elementPropertyTarget:r})},this)}getUserName(){return this._userName}get userName(){return this._userName}get firstName(){return this._firstName}get lastName(){return this._lastName}get phone(){return this._phone}get email(){return this._email}get avatarID(){return this._avatarID}getAvatarID(){return this._avatarID}getInfluencerID(){return this._influencerID}get influencerID(){return this._influencerID}getDigitalCloneID(){return this._digitalCloneID}get digitalCloneID(){return this._digitalCloneID}getVoiceCloneID(){return this._voiceCloneID}get voiceCloneID(){return this._voiceCloneID}getVoiceCloneELID(){return this._voiceCloneELID}get voiceCloneELID(){return this._voiceCloneELID}getCreatorProfileState(){return this.currentCreatorProfileState}setAvatarID(e){this._avatarID=e}setVoiceCloneID(e){this._voiceCloneID=e}setVoiceCloneELID(e){this._voiceCloneELID=e}getTwin(){return this._twin}get digitalTwin(){return this._twin}get wallet(){return this._wallet}get userID(){return this._userID}get hasActiveSubscription(){var e,t;return((e=this==null?void 0:this._wallet)==null?void 0:e.subscription)!=null&&((t=this==null?void 0:this._wallet)==null?void 0:t.subscription)!==void 0}get status(){return this._loginStatus}get canChangePassword(){var e,t;return(t=(e=this.authInfo)==null?void 0:e.provider)==null?void 0:t.includes("google")}sendPasswordUpdateEmail(){this.canChangePassword&&B.sendPasswordUpdateEmail({email:this.email,clientId:this.authInfo.clientId}).then(e=>{})}logUserDetails(){let e={UserName:this._userName};for(let[t,i]of Object.entries(e));}setLoginStatus(){let e=!!localStorage.getItem("jwt");this.authInfo.clientId||(e=!1),this._loginStatus=e?ie.AUTH_STATUS__LOGGED_IN:ie.AUTH_STATUS__LOGGED_OUT}setElementState(){let e=document.querySelectorAll('[cc-state="logged-out"]'),t=document.querySelectorAll('[cc-state="logged-in"]');this._loginStatus?(e.forEach(i=>{i.classList.add("hide")}),t.forEach(i=>{i.classList.remove("hide")})):(t.forEach(i=>{i.classList.add("hide")}),e.forEach(i=>{i.classList.remove("hide")}))}setButtonsState(){let e=document.querySelectorAll('a[data-backend-action="login"]'),t=document.querySelectorAll('a[data-backend-action="register"]'),i=document.querySelectorAll('a[data-backend-action="logout"]');this._loginStatus?(i.forEach(n=>{n.style.display="block"}),e.forEach(n=>{n.style.display="none"}),t.forEach(n=>{n.style.display="none"})):(i.forEach(n=>{n.style.display="none"}),e.forEach(n=>{n.style.display="block"}),t.forEach(n=>{n.style.display="block"}))}logout(e){e.preventDefault();let t=localStorage.getItem("auth0_jwt"),i=`${xt()}/auth/logout-redirect`;this.setLoginStatus(),this.setButtonsState();let n=`https://auth.cloneme.io/oidc/logout?id_token_hint=${t}&post_logout_redirect_uri=${i}`;window.location.href=n}login(e){e.preventDefault(),localStorage.setItem("redirect-url",encodeURIComponent(window.location.href));let t=`${xt()}/auth/login-redirect`;window.location.href=`${en}api/connect/auth0?callback=${t}&screen_hint=signup`}loginUser(e){e.preventDefault(),localStorage.setItem("redirect-url",encodeURIComponent(window.location.href));let t=`${xt()}/auth/login-redirect`;window.location.href=`${en}api/connect/auth0?callback=${t}`}register(e){e.preventDefault(),localStorage.setItem("redirect-url",encodeURIComponent(window.location.href));let t=`${xt()}/auth/login-redirect`;window.location.href=`${en}api/connect/auth0?callback=${t}&screen_hint=signup`}showBillingDashboard(e){e.preventDefault(),B.getStripeBillingSession(encodeURIComponent(window.location.href)).then(t=>{t.url&&(window.location.href=t.url)}).catch(t=>{})}initializeLogoutButtons(){let e=document.querySelectorAll('a[data-backend-action="logout"]');e==null||e.forEach(t=>{t.addEventListener("click",this.logout.bind(this))})}initializeLoginButtons(){let e=document.querySelectorAll('a[data-backend-action="login"]');e==null||e.forEach(t=>{t.addEventListener("click",this.login)})}initializeForceLoginButtons(){let e=document.querySelectorAll('a[data-backend-action="login-user"]');e==null||e.forEach(t=>{t.addEventListener("click",this.loginUser)})}initializeRegisterButtons(){let e=document.querySelectorAll('a[data-backend-action="register"]');e==null||e.forEach(t=>{t.addEventListener("click",this.register)})}initializeBillingButtons(){let e=document.querySelectorAll('a[data-backend-action="billing-dashboard"]');e==null||e.forEach(t=>{t.addEventListener("click",this.showBillingDashboard)})}setupAuthInfo(e){if(!e)return;let t=pr(e);if(!t)throw new Error("Invalid token");this.authInfo.clientId=t.aud+"";let i=new Date;if(i.setUTCSeconds(t.exp),this.authInfo.expirationDate=i,this.authInfo.provider=t.sub.split("|")[0],!this.authInfo.clientId)throw new Error("Client ID not found in token")}initialize(){this.initializeLogoutButtons.bind(this)(),this.initializeLoginButtons.bind(this)(),this.initializeForceLoginButtons.bind(this)(),this.initializeRegisterButtons.bind(this)(),this.initializeBillingButtons.bind(this)(),this.setupAuthInfo(localStorage.getItem("auth0_jwt")),this.setLoginStatus.bind(this)(),B.setJWTToken(localStorage.getItem("jwt"))}},te=ie;te.PROFILE_STATE__NEW=0,te.PROFILE_STATE__AVATAR_SETUP=1,te.PROFILE_STATE__VOICE_SETUP=2,te.PROFILE_STATE__TWIN_TRAINED=3,te.PROFILE_STATE__PROFILE_REVIEWED=4,te.PROFILE_STATE__COMPLETED_DRAFT=5,te.PROFILE_STATE__PUBLISHED=6,te.AUTH_STATUS__LOGGED_OUT=0,te.AUTH_STATUS__LOGGED_IN=1;var Ce=class{constructor(){this._elements={};document.querySelectorAll("[cc-element]").forEach(t=>{let i=t.getAttribute("cc-element");if(i){let n=this.toCamelCase(i);this._elements[n]||(this._elements[n]=[]),this._elements[n].push(t)}})}get(e){return this._elements[e]?this._elements[e][0]:null}getAll(e){return this._elements[e]||[]}toCamelCase(e){return e.split("-").map((t,i)=>i===0?t.toLowerCase():t.charAt(0).toUpperCase()+t.slice(1).toLowerCase()).join("")}get elements(){return this._elements}};var je=class{generateThumbnail(e,t,i,n,r,s,o,a){let l=document.createElement("div");l.className="cc-thumbnail";let c=document.createElement("div");c.className="cc-thumbnail_content";let h=document.createElement("img");h.className="cc-thumbnail_image",h.src=i;let p=document.createElement("div");p.className="cc-thumbnail_active",p.style.display="none";let f=document.createElement("div");return f.className="cc-thumbnail_preview",f.style.display="none",n&&l.setAttribute(`data-${n.key}`,n.value),r&&l.setAttribute(`data-${r.key}`,r.value),s&&l.setAttribute(`data-${s.key}`,s.value),o&&l.setAttribute(`data-${o.key}`,o.value),a&&l.setAttribute(`data-${a.key}`,a.value),e&&l.setAttribute("data-id",e),c.appendChild(h),c.appendChild(p),c.appendChild(f),l.appendChild(c),l.addEventListener("click",()=>{if(je.activeThumbnail){let D=je.activeThumbnail.querySelector(".cc-thumbnail_preview");D&&(D.style.display="none")}f.style.display="block",je.activeThumbnail=l}),l}static setSelectedThumbnail(e){let t=document.querySelector(`.cc-thumbnail[data-image-id="${e}"]`);if(je.selectedThumbnail){let i=je.selectedThumbnail.querySelector(".cc-thumbnail_active");i&&(i.style.display="none")}if(t){let i=t.querySelector(".cc-thumbnail_active");return i&&(i.style.display="block"),je.selectedThumbnail=t,t}}},Re=je;Re.activeThumbnail=null,Re.selectedThumbnail=null;var me=class{constructor(){this._elements={buttonCreateClone:document.querySelector('[cc-element="button-create-clone"]'),buttonDelete:document.querySelector('[cc-element="button-delete"]'),buttonStep2:document.querySelector('[cc-element="button-step2"]'),buttonUploadSecondary:document.querySelector('[cc-element="button-upload-secondary"]'),chatBox:document.querySelector(".chat-box"),chatBoxMessages:document.querySelector(".chat-box-messages"),chatGPTprompt:document.getElementById("chat-gpt-prompt"),hiddenFileInput:document.getElementById("hiddenFileInput"),imageInput:document.getElementById("image-input"),imagePreviewContainer:document.getElementById("clone-creator_image-preview"),imagesLibraryContainer:document.getElementById("image-thumbnails"),introVideo:document.querySelector('[cc-element="intro-video"]'),memberName:document.getElementById("member-name"),notifications:document.querySelector('[cc-notifications="container"]'),notificationsText:document.querySelector('[cc-notifications="text"]'),preloader:document.querySelector('[cc-element="preloader"]'),previewImage:document.getElementById("preview-image"),sendButton:document.querySelector('[chat-element="send-button"]'),uploadButton:document.getElementById("upload-button"),uploadButtonMediaLibrary:document.querySelector('[cc-element="upload-button-media-library"]'),userInput:document.getElementById("userInput"),videoControls:document.querySelector('[cc-element="video-control"]'),videoControlsPause:document.querySelector('[cc-element="video-controls-pause"]'),videoControlsPlay:document.querySelector('[cc-element="video-controls-play"]'),videoLibraryContainer:document.getElementById("video-thumbnails"),videoThumbnails:document.getElementById("video-thumbnails")}}get elements(){return this._elements}};var rt=class{constructor(e){this.elementsManager=new me;this.mediaContainer=e,this.addEvents()}animateThumbnails(){if(this.mediaContainer){let t=Array.from(this.mediaContainer.children).map(i=>i.querySelector("img")).filter(Boolean);t.length>0&&I.from(t,{delay:.2,opacity:0,transformOrigin:"center center",scale:1.2,duration:.3,stagger:.1,ease:"power3.out"})}}clearContainer(){let e;if(this.elementsManager.elements&&(e=this.elementsManager.elements.uploadButtonMediaLibrary),this.mediaContainer){let t=Array.from(this.mediaContainer.children);for(let i of t)i!==e&&this.mediaContainer.removeChild(i)}}init(e){this.clearContainer(),e&&this.addThumbnails(e)}addThumbnail(e){this.addThumbnails(e)}addThumbnails(e){this.sortData(e).forEach(t=>{var n;let i=this.createThumbnail(t);(n=this.mediaContainer)==null||n.appendChild(i)}),this.animateThumbnails()}createThumbnail(e){return new Re().generateThumbnail(e.id,e.imageURL,e.thumbnail,{key:"s3-url",value:e.s3Link},{key:"video-url",value:e.videoURL},{key:"image-url",value:e.imageURL},{key:"image-id",value:e.imageID},{key:"thumbnail",value:e.thumbnail})}setHighlighted(e){var i;let t=(i=this.mediaContainer)==null?void 0:i.querySelector(`.cc-thumbnail[data-id="${e}"]`);t&&t.dispatchEvent(new Event("click",{bubbles:!0}))}sortData(e){return e.sort((t,i)=>i.id-t.id)}addEvents(){var e;(e=this.mediaContainer)==null||e.addEventListener("click",t=>{let i=t.target,n=i.closest(".cc-thumbnail");if(n){let s=n,o=new CustomEvent("mediaItemSelected",{detail:{videoURL:s.getAttribute("data-video-url"),imageURL:s.getAttribute("data-image-url"),s3Link:s.getAttribute("data-s3-url"),id:s.getAttribute("data-id"),thumbnail:s.getAttribute("data-thumbnail")}});document.dispatchEvent(o);let a=new CustomEvent("imageUrlChanged",{detail:{imageUrl:s.getAttribute("data-s3-url")}});document.dispatchEvent(a);return}let r=i.closest(".cc-thumbnail_delete");if(r){let s=r,o=new CustomEvent("deleteMediaItem",{detail:{id:s.getAttribute("data-id"),videoURL:s.getAttribute("data-video-url")}});document.dispatchEvent(o)}})}};var fr=/([\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 tn(u){var e=u.nodeType,t="";if(e===1||e===9||e===11){if(typeof u.textContent=="string")return u.textContent;for(u=u.firstChild;u;u=u.nextSibling)t+=tn(u)}else if(e===3||e===4)return u.nodeValue;return t}var Dt,rn,gr,It,_r,ii,ro=/(?:\r|\n|\t\t)/g,so=/(?:\s\s+)/g,yr=function(e){Dt=document,rn=window,It=It||e||rn.gsap||void 0,It&&(ii=It.utils.toArray,_r=It.core.context||function(){},gr=1)},oo=1,Er=function(e){return rn.getComputedStyle(e)},sn=function(e){return e.position==="absolute"||e.absolute===!0},ao=function(e,t){for(var i=t.length,n;--i>-1;)if(n=t[i],e.substr(0,n.length)===n)return n.length},lo=" style='position:relative;display:inline-block;'",mr=function(e,t){e===void 0&&(e="");var i=~e.indexOf("++"),n=1;return i&&(e=e.split("++").join("")),function(){return"<"+t+lo+(e?" class='"+e+(i?n++:"")+"'>":">")}},vr=function u(e,t,i){var n=e.nodeType;if(n===1||n===9||n===11)for(e=e.firstChild;e;e=e.nextSibling)u(e,t,i);else(n===3||n===4)&&(e.nodeValue=e.nodeValue.split(t).join(i))},nn=function(e,t){for(var i=t.length;--i>-1;)e.push(t[i])},Dr=function(e,t,i){for(var n;e&&e!==t;){if(n=e._next||e.nextSibling,n)return n.textContent.charAt(0)===i;e=e.parentNode||e._parent}},uo=function u(e){var t=ii(e.childNodes),i=t.length,n,r;for(n=0;n<i;n++)r=t[n],r._isSplit?u(r):n&&r.previousSibling&&r.previousSibling.nodeType===3?(r.previousSibling.nodeValue+=r.nodeType===3?r.nodeValue:r.firstChild.nodeValue,e.removeChild(r)):r.nodeType!==3&&(e.insertBefore(r.firstChild,r),e.removeChild(r))},Fe=function(e,t){return parseFloat(t[e])||0},co=function(e,t,i,n,r,s,o){var a=Er(e),l=Fe("paddingLeft",a),c=-999,h=Fe("borderBottomWidth",a)+Fe("borderTopWidth",a),p=Fe("borderLeftWidth",a)+Fe("borderRightWidth",a),f=Fe("paddingTop",a)+Fe("paddingBottom",a),D=Fe("paddingLeft",a)+Fe("paddingRight",a),d=Fe("fontSize",a)*(t.lineThreshold||.2),m=a.textAlign,g=[],y=[],_=[],v=t.wordDelimiter||" ",E=t.tag?t.tag:t.span?"span":"div",S=t.type||t.split||"chars,words,lines",T=r&&~S.indexOf("lines")?[]:null,w=~S.indexOf("words"),C=~S.indexOf("chars"),L=sn(t),P=t.linesClass,N=~(P||"").indexOf("++"),V=[],q=a.display==="flex",U=e.style.display,M,x,$,b,ce,oe,ae,gt,Q,R,on,Te;for(N&&(P=P.split("++").join("")),q&&(e.style.display="block"),x=e.getElementsByTagName("*"),$=x.length,ce=[],M=0;M<$;M++)ce[M]=x[M];if(T||L)for(M=0;M<$;M++)b=ce[M],oe=b.parentNode===e,(oe||L||C&&!w)&&(Te=b.offsetTop,T&&oe&&Math.abs(Te-c)>d&&(b.nodeName!=="BR"||M===0)&&(ae=[],T.push(ae),c=Te),L&&(b._x=b.offsetLeft,b._y=Te,b._w=b.offsetWidth,b._h=b.offsetHeight),T&&((b._isSplit&&oe||!C&&oe||w&&oe||!w&&b.parentNode.parentNode===e&&!b.parentNode._isSplit)&&(ae.push(b),b._x-=l,Dr(b,e,v)&&(b._wordEnd=!0)),b.nodeName==="BR"&&(b.nextSibling&&b.nextSibling.nodeName==="BR"||M===0)&&T.push([])));for(M=0;M<$;M++){if(b=ce[M],oe=b.parentNode===e,b.nodeName==="BR"){T||L?(b.parentNode&&b.parentNode.removeChild(b),ce.splice(M--,1),$--):w||e.appendChild(b);continue}if(L&&(Q=b.style,!w&&!oe&&(b._x+=b.parentNode._x,b._y+=b.parentNode._y),Q.left=b._x+"px",Q.top=b._y+"px",Q.position="absolute",Q.display="block",Q.width=b._w+1+"px",Q.height=b._h+"px"),!w&&C)if(b._isSplit)for(b._next=x=b.nextSibling,b.parentNode.appendChild(b);x&&x.nodeType===3&&x.textContent===" ";)b._next=x.nextSibling,b.parentNode.appendChild(x),x=x.nextSibling;else b.parentNode._isSplit?(b._parent=b.parentNode,!b.previousSibling&&b.firstChild&&(b.firstChild._isFirst=!0),b.nextSibling&&b.nextSibling.textContent===" "&&!b.nextSibling.nextSibling&&V.push(b.nextSibling),b._next=b.nextSibling&&b.nextSibling._isFirst?null:b.nextSibling,b.parentNode.removeChild(b),ce.splice(M--,1),$--):oe||(Te=!b.nextSibling&&Dr(b.parentNode,e,v),b.parentNode._parent&&b.parentNode._parent.appendChild(b),Te&&b.parentNode.appendChild(Dt.createTextNode(" ")),E==="span"&&(b.style.display="inline"),g.push(b));else b.parentNode._isSplit&&!b._isSplit&&b.innerHTML!==""?y.push(b):C&&!b._isSplit&&(E==="span"&&(b.style.display="inline"),g.push(b))}for(M=V.length;--M>-1;)V[M].parentNode.removeChild(V[M]);if(T){for(L&&(R=Dt.createElement(E),e.appendChild(R),on=R.offsetWidth+"px",Te=R.offsetParent===e?0:e.offsetLeft,e.removeChild(R)),Q=e.style.cssText,e.style.cssText="display:none;";e.firstChild;)e.removeChild(e.firstChild);for(gt=v===" "&&(!L||!w&&!C),M=0;M<T.length;M++){for(ae=T[M],R=Dt.createElement(E),R.style.cssText="display:block;text-align:"+m+";position:"+(L?"absolute;":"relative;"),P&&(R.className=P+(N?M+1:"")),_.push(R),$=ae.length,x=0;x<$;x++)ae[x].nodeName!=="BR"&&(b=ae[x],R.appendChild(b),gt&&b._wordEnd&&R.appendChild(Dt.createTextNode(" ")),L&&(x===0&&(R.style.top=b._y+"px",R.style.left=l+Te+"px"),b.style.top="0px",Te&&(b.style.left=b._x-Te+"px")));$===0?R.innerHTML="&nbsp;":!w&&!C&&(uo(R),vr(R,String.fromCharCode(160)," ")),L&&(R.style.width=on,R.style.height=b._h+"px"),e.appendChild(R)}e.style.cssText=Q}L&&(o>e.clientHeight&&(e.style.height=o-f+"px",e.clientHeight<o&&(e.style.height=o+h+"px")),s>e.clientWidth&&(e.style.width=s-D+"px",e.clientWidth<s&&(e.style.width=s+p+"px"))),q&&(U?e.style.display=U:e.style.removeProperty("display")),nn(i,g),w&&nn(n,y),nn(r,_)},ho=function(e,t,i,n){var r=t.tag?t.tag:t.span?"span":"div",s=t.type||t.split||"chars,words,lines",o=~s.indexOf("chars"),a=sn(t),l=t.wordDelimiter||" ",c=l!==" "?"":a?"&#173; ":" ",h="</"+r+">",p=1,f=t.specialChars?typeof t.specialChars=="function"?t.specialChars:ao:null,D,d,m,g,y,_,v,E,S=Dt.createElement("div"),T=e.parentNode;for(T.insertBefore(S,e),S.textContent=e.nodeValue,T.removeChild(e),e=S,D=tn(e),v=D.indexOf("<")!==-1,t.reduceWhiteSpace!==!1&&(D=D.replace(so," ").replace(ro,"")),v&&(D=D.split("<").join("{{LT}}")),y=D.length,d=(D.charAt(0)===" "?c:"")+i(),m=0;m<y;m++)if(_=D.charAt(m),f&&(E=f(D.substr(m),t.specialChars)))_=D.substr(m,E||1),d+=o&&_!==" "?n()+_+"</"+r+">":_,m+=E-1;else if(_===l&&D.charAt(m-1)!==l&&m){for(d+=p?h:"",p=0;D.charAt(m+1)===l;)d+=c,m++;m===y-1?d+=c:D.charAt(m+1)!==")"&&(d+=c+i(),p=1)}else _==="{"&&D.substr(m,6)==="{{LT}}"?(d+=o?n()+"{{LT}}</"+r+">":"{{LT}}",m+=5):_.charCodeAt(0)>=55296&&_.charCodeAt(0)<=56319||D.charCodeAt(m+1)>=65024&&D.charCodeAt(m+1)<=65039?(g=((D.substr(m,12).split(fr)||[])[1]||"").length||2,d+=o&&_!==" "?n()+D.substr(m,g)+"</"+r+">":D.substr(m,g),m+=g-1):d+=o&&_!==" "?n()+_+"</"+r+">":_;e.outerHTML=d+(p?h:""),v&&vr(T,"{{LT}}","<")},po=function u(e,t,i,n){var r=ii(e.childNodes),s=r.length,o=sn(t),a,l;if(e.nodeType!==3||s>1){for(t.absolute=!1,a=0;a<s;a++)l=r[a],l._next=l._isFirst=l._parent=l._wordEnd=null,(l.nodeType!==3||/\S+/.test(l.nodeValue))&&(o&&l.nodeType!==3&&Er(l).display==="inline"&&(l.style.display="inline-block",l.style.position="relative"),l._isSplit=!0,u(l,t,i,n));t.absolute=o,e._isSplit=!0;return}ho(e,t,i,n)},ni=function(){function u(t,i){gr||yr(),this.elements=ii(t),this.chars=[],this.words=[],this.lines=[],this._originals=[],this.vars=i||{},_r(this),oo&&this.split(i)}var e=u.prototype;return e.split=function(i){this.isSplit&&this.revert(),this.vars=i=i||this.vars,this._originals.length=this.chars.length=this.words.length=this.lines.length=0;for(var n=this.elements.length,r=i.tag?i.tag:i.span?"span":"div",s=mr(i.wordsClass,r),o=mr(i.charsClass,r),a,l,c;--n>-1;)c=this.elements[n],this._originals[n]=c.innerHTML,a=c.clientHeight,l=c.clientWidth,po(c,i,s,o),co(c,i,this.chars,this.words,this.lines,l,a);return this.chars.reverse(),this.words.reverse(),this.lines.reverse(),this.isSplit=!0,this},e.revert=function(){var i=this._originals;if(!i)throw"revert() call wasn't scoped properly.";return this.elements.forEach(function(n,r){return n.innerHTML=i[r]}),this.chars=[],this.words=[],this.lines=[],this.isSplit=!1,this},u.create=function(i,n){return new u(i,n)},u}();ni.version="3.12.2";ni.register=yr;var ri=class{constructor(){this.elementsManager=new me;this.bindEvents()}init(){throw new Error("init() method should be implemented in derived classes.")}onResize(){}bindEvents(){window.addEventListener("resize",this.onResize.bind(this))}unbindEvents(){window.removeEventListener("resize",this.onResize.bind(this))}};var Pt=class extends ri{constructor(){super();this.videoElement=null;this.videoControls=null;this.isImagePreviewing=!1;this.imagePreviewContainer=this.elementsManager.elements.imagePreviewContainer,this.videoControls=this.elementsManager.elements.videoControls,this.initializeVideoControls()}preview(t){this.isImagePreviewing=!0;let i=document.getElementById("videoPreview");if(i){let n=i.querySelector("video");n&&(n.pause(),n.currentTime=0,i.innerHTML="")}this.imagePreviewContainer&&(this.imagePreviewContainer.innerHTML="",this.imagePreviewContainer.innerHTML=`<img src="${t}" alt="Image Preview" class="preview-image">`,this.imagePreviewContainer.style.display="block",I.fromTo(this.imagePreviewContainer,{opacity:0},{opacity:1,delay:.2,duration:.3,ease:"power3.out"}))}clear(){this.isImagePreviewing=!1;let t=document.getElementById("videoPreview");t&&(this.videoElement=t.querySelector("video"),this.videoElement&&(this.videoElement.pause(),this.videoElement.currentTime=0,t.innerHTML="")),this.imagePreviewContainer&&I.to(this.imagePreviewContainer.getElementsByTagName("img"),{opacity:0,scale:.95,duration:.3,ease:"power3.out",onComplete:()=>{}})}initializeVideoControls(){var t,i,n;this.elementsManager.elements.videoControlsPause&&this.hideVideoControls(),(t=this.videoElement)==null||t.addEventListener("ended",()=>{this.videoElement.currentTime=0,this.updateVideoControls()}),(i=this.elementsManager.elements.videoControlsPlay)==null||i.addEventListener("click",()=>{this.videoElement&&(this.videoElement.play(),this.updateVideoControls())}),(n=this.elementsManager.elements.videoControlsPause)==null||n.addEventListener("click",()=>{this.videoElement&&(this.videoElement.pause(),this.updateVideoControls())})}updateVideoControls(){var t;(t=this.videoElement)!=null&&t.paused?(this.elementsManager.elements.videoControlsPlay&&(this.elementsManager.elements.videoControlsPlay.style.display="block"),this.elementsManager.elements.videoControlsPause&&(this.elementsManager.elements.videoControlsPause.style.display="none")):(this.elementsManager.elements.videoControlsPlay&&(this.elementsManager.elements.videoControlsPlay.style.display="none"),this.elementsManager.elements.videoControlsPause&&(this.elementsManager.elements.videoControlsPause.style.display="block"))}showVideoControls(){I.to([this.elementsManager.elements.videoControlsPlay,this.elementsManager.elements.videoControlsPause],{opacity:1,duration:.3,ease:"power2.out",overwrite:!0})}hideVideoControls(){I.to([this.elementsManager.elements.videoControlsPlay,this.elementsManager.elements.videoControlsPause],{opacity:0,duration:.3,ease:"power2.out",overwrite:!0})}previewVideo(t){var n,r;this.imagePreviewContainer&&(this.imagePreviewContainer.innerHTML="",I.to(this.imagePreviewContainer,{opacity:0,scale:1,duration:.3})),this.videoElement=document.createElement("video"),this.videoElement.classList.add("video-player"),this.videoElement.src=t,this.videoElement.controls=!1,this.videoElement.autoplay=!0,I.to(this.videoElement,{opacity:1,duration:.3,ease:"power2.out"});let i=document.getElementById("videoPreview");i&&(i.innerHTML="",i.appendChild(this.videoElement)),this.videoElement.addEventListener("play",()=>{I.to(this.videoElement,{opacity:1,duration:.3,ease:"power2.out"}),setTimeout(()=>{this.showVideoControls()},200),this.hideControlsTimeout&&clearTimeout(this.hideControlsTimeout),this.hideControlsTimeout=setTimeout(()=>{this.hideVideoControls()},1e3)}),(n=this.videoControls)==null||n.addEventListener("mouseenter",()=>{this.isImagePreviewing||this.showVideoControls()}),(r=this.videoControls)==null||r.addEventListener("mouseleave",()=>{this.isImagePreviewing||this.hideVideoControls()}),this.isImagePreviewing=!1}};var kt=class{constructor(){this.elementsManager=new me;this.elements=new Ce;this.playIntroButton=this.elements.get("playVideo");this.step2active=!1;this.state={currentState:3},this.buttonCreateClone=this.elementsManager.elements.buttonCreateClone,this.buttonActivate=this.elements.get("buttonActivate"),this.buttonDelete=this.elementsManager.elements.buttonDelete,this.buttonStep2=this.elementsManager.elements.buttonStep2,this.introVideo=this.elementsManager.elements.introVideo,this.buttonUploadSecondary=this.elementsManager.elements.buttonUploadSecondary,this.previewCaption=this.elements.get("previewCaption"),I.set([this.buttonCreateClone,this.buttonDelete,this.buttonActivate,this.buttonStep2,this.buttonUploadSecondary,this.previewCaption],{autoAlpha:0,scale:1}),this.updateUI()}getState(){return this.state}setMediaState(e){this.state.currentState=e,this.updateUI()}setStep2Active(e){this.step2active=e,this.updateUI()}setDisplay(e,t){e&&(t==="block"?I.to(e,{autoAlpha:1,scale:1,overwrite:!0,duration:.3,ease:"power2.out"}):t==="none"&&I.to(e,{autoAlpha:0,scale:1,duration:.3,ease:"power2.out"}))}updateUI(){switch(this.previewCaption.innerHTML="",this.setDisplay(this.buttonCreateClone,"none"),this.setDisplay(this.buttonDelete,"none"),this.setDisplay(this.buttonActivate,"none"),this.step2active?this.setDisplay(this.buttonStep2,"block"):this.setDisplay(this.buttonStep2,"none"),this.state.currentState){case 0:this.setDisplay(this.introVideo,"block"),this.buttonUploadSecondary.style.display="none";break;case 1:this.setDisplay(this.introVideo,"block"),this.setDisplay(this.playIntroButton,"block"),this.playIntroButton.style.display="block",this.buttonUploadSecondary.style.display="block";break;case 2:this.previewCaption.innerHTML="Previewing Clone",this.setDisplay(this.buttonCreateClone,"none"),this.setDisplay(this.buttonDelete,"block"),this.setDisplay(this.buttonActivate,"block"),this.buttonUploadSecondary.style.display="block";break;case 3:this.setDisplay(this.buttonCreateClone,"block"),this.setDisplay(this.buttonDelete,"block"),this.setDisplay(this.buttonActivate,"none");break;case 5:this.previewCaption.innerHTML="This is your activated master clone",this.setDisplay(this.buttonCreateClone,"none"),this.setDisplay(this.buttonDelete,"block"),this.setDisplay(this.buttonActivate,"none"),this.setDisplay(this.buttonStep2,"block");break;case 6:this.previewCaption.innerHTML="Upload an image to get started",this.setDisplay(this.buttonCreateClone,"none"),this.setDisplay(this.buttonDelete,"none"),this.setDisplay(this.buttonActivate,"none"),this.setDisplay(this.buttonStep2,"none"),this.setDisplay(this.introVideo,"block"),this.setDisplay(this.buttonUploadSecondary,"block");break;case 4:break}}};var Bt=class{async getMemberName(){try{return(await window.$memberstackDom.getCurrentMember()).data.customFields["first-name"]}catch{return null}}async getMemberEmail(){try{return(await window.$memberstackDom.getCurrentMember()).data.auth.email}catch{return null}}async getMemberID(){try{return(await window.$memberstackDom.getCurrentMember()).data.id}catch{return null}}};var Rt=class{constructor(){this.elementsManager=new me;this.notificationContainer=this.elementsManager.elements.notifications,this.notificationText=this.elementsManager.elements.notificationsText,this.notificationContainer&&(this.notificationContainer.style.visibility="hidden"),this.preloader=this.elementsManager.elements.preloader}createNotification(e,t="loading"){this.notificationContainer&&(this.preloader&&I.set(this.preloader,{autoAlpha:0}),this.notificationText.textContent=e,this.notificationContainer.style.visibility="visible",I.to(this.notificationContainer,{duration:2,autoAlpha:1}),this.notificationText.textContent=e,I.to(this.notificationContainer,{delay:2.3,duration:.3,autoAlpha:0}))}show(e="Loading..."){this.createNotification(e,"loading")}showLoading(e="Loading..."){this.preloader.style.visibility="visible",I.to(this.preloader,{duration:.1,autoAlpha:1,display:"flex"}),this.createNotification(e,"loading")}showLoadingDone(e="Loading..."){I.to(this.preloader,{duration:.3,autoAlpha:0})}showError(e="An error occurred."){this.createNotification(e,"error")}};var st=class{constructor(e){this.videoContainer=e.videoContainer;let t=this.videoContainer.querySelector("[cc-element='video-player-embed']");if(!t||!(t instanceof HTMLVideoElement))throw new Error(`No video element found for selector: ${e.videoContainer}`);this.videoElement=t,this.playButtonOverlay=this.videoContainer.querySelector('[cc-element="video-player-button"]'),j.from(this.videoElement,{opacity:0,duration:.5}),this.bindEvents(e.onEndCallback)}bindEvents(e){e&&this.videoElement.addEventListener("ended",e),this.videoElement.addEventListener("click",this.togglePlayPause.bind(this)),this.playButtonOverlay&&this.playButtonOverlay.addEventListener("click",t=>{t.stopPropagation(),this.togglePlayPause()})}play(){this.videoElement.play(),this.playButtonOverlay&&j.to(this.playButtonOverlay,{opacity:0,duration:.3,display:"none"}),j.to(this.videoElement.parentElement,{opacity:1,duration:2})}hideContainer(){this.pause(),j.to(this.videoContainer,{display:"none"})}pause(){this.videoElement.pause(),this.playButtonOverlay&&j.to(this.playButtonOverlay,{opacity:1,duration:.3,display:"flex"}),j.to(this.videoElement.parentElement,{opacity:1,duration:1})}togglePlayPause(){this.videoElement.paused?this.play():this.pause()}};var si=class{constructor(){this.memberStackInstance=new Bt;this.notify=new Rt;this.elementsManager=new me;this.elements=new Ce;this.mediaPreview=new Pt;this.elements.get("buttonActivate")&&(this.uiManager=new kt,this.uiManager.setMediaState(6))}async init(){await this.initializeUser()}async initializeUser(){this.userManager=await te.getInstance();try{this.talkVideoScript=`Hi ${this.userManager.userName}, this is the first step in developing your CloneMe DigitalDNA twin. Now let\u2019s clone your voice so I can sound more like you. `,this.notify.show(`Logged in as ${this.userManager.userName}`),this.createIntroClone(),this.showStrapiVideoLibrary(!1,!0),this.showImageLibrary(),this.addEventListeners()}catch{}}createIntroClone(){let e=this.elements.getAll("videoPlayer"),t=new st({videoContainer:e[0],onEndCallback:()=>{}});if(this.videoPlayer=t,e[1]){let i=new st({videoContainer:e[1],onEndCallback:()=>{}})}if(e[2]){let i=new st({videoContainer:e[2],onEndCallback:()=>{}})}}hideCloneIntro(){var e;(e=this.videoPlayer)==null||e.hideContainer()}addEventListeners(){this.addMediaItemSelectedListener(),this.addDeleteButtonListener(),this.addActivateButtonListener(),this.addCreateCloneButtonListener(),this.addImageUploadListeners()}addMediaItemSelectedListener(){document.addEventListener("mediaItemSelected",e=>{let t=e;this.handleMediaItemSelected(t)})}handleMediaItemSelected(e){var t,i,n;this.hideCloneIntro(),e.detail&&e.detail.videoURL!=="none"?(this.activeMediaType="VIDEO",this.mediaPreview.previewVideo(e.detail.videoURL),this.activeMediaID=e.detail.id,this.activeCloneID===this.activeMediaID?(t=this.uiManager)==null||t.setMediaState(5):(i=this.uiManager)==null||i.setMediaState(2)):(this.activeMediaType="IMAGE",this.activeImageURL=e.detail.imageURL,this.activeMediaID=e.detail.id,this.mediaPreview.preview(e.detail.imageURL),(n=this.uiManager)==null||n.setMediaState(3))}addDeleteButtonListener(){let{buttonDelete:e}=this.elementsManager.elements;e&&e.addEventListener("click",this.handleDeleteButtonClick.bind(this))}handleDeleteButtonClick(){this.activeMediaID&&this.activeMediaType&&this.deleteMedia(this.activeMediaID,this.activeMediaType)}addActivateButtonListener(){let e=this.elements.get("buttonActivate");e&&e.addEventListener("click",this.handleActivateButtonClick.bind(this))}handleActivateButtonClick(){if(this.activeMediaID&&this.activeMediaType==="VIDEO"){let t=document.querySelector(`.cc-thumbnail[data-id="${this.activeMediaID}"]`).getAttribute("data-image-id");t&&(this.userManager.setAvatarID(parseInt(t)),this.activateClone(t))}}activateClone(e){B.setCloneAvatar(e,this.userManager.getInfluencerID(),this.userManager.getDigitalCloneID()).then(()=>{var t;this.showStrapiVideoLibrary(),(t=this.uiManager)==null||t.setMediaState(5)}).catch(t=>{})}addCreateCloneButtonListener(){let{buttonCreateClone:e}=this.elementsManager.elements;e&&e.addEventListener("click",this.createClone.bind(this))}addImageUploadListeners(){let{hiddenFileInput:e,uploadButtonMediaLibrary:t}=this.elementsManager.elements,i=document.querySelector('[cc-element="upload-button"]');e instanceof HTMLInputElement&&e.addEventListener("change",()=>{this.uploadImage(e)}),[i,t].forEach(n=>{n&&n.addEventListener("click",()=>{e==null||e.click()})})}createClone(){if(document.querySelectorAll(`.cc-thumbnail[data-image-id="${this.activeMediaID}"]`).length>0){this.notify.show("You already created a clone from this image. Please select another image.");return}if(this.notify.showLoading("Creating Clone Please Wait.."),!this.activeImageURL){this.notify.show("Please select image");return}this.talkVideoScript&&this.activeMediaID&&B.createClone(this.activeImageURL,this.talkVideoScript,this.activeMediaID).then(t=>{this.refreshVideoLibrary()}).catch(t=>{})}uploadImage(e){var t;this.hideCloneIntro(),(t=this.uiManager)==null||t.setMediaState(7),this.notify.showLoading("Uploading image please wait"),B.uploadImage(e).then(i=>{this.imageLibrary&&(this.showImageLibrary(),this.notify.showLoadingDone("Uploading Done"))}).catch(i=>{this.notify.show(i)})}deleteMedia(e,t){t==="VIDEO"?this.deleteVideo(e):this.deleteImage(e),this.mediaPreview.clear()}deleteVideo(e){B.deleteVideo(e).then(t=>{this.showVideoLibrary()}).catch(t=>{})}deleteDIDVideo(e){B.deleteVideoDID(e).then(t=>{}).catch(t=>{})}deleteImage(e){B.deleteImage(e).then(t=>{var i;(i=this.uiManager)==null||i.setMediaState(8),this.showImageLibrary()}).catch(t=>{})}async showImageLibrary(){var e,t;try{let i=await B.fetchImages();this.mappedImages=this.mapImages(i);let{imagesLibraryContainer:n}=this.elementsManager.elements;n&&(this.imageLibrary=new rt(n),this.imageLibrary.init(this.mappedImages));let r=(e=this.uiManager)==null?void 0:e.getState();((r==null?void 0:r.currentState)===8||(r==null?void 0:r.currentState)===7)&&((t=this.imageLibrary)==null||t.setHighlighted(this.mappedImages[0].id))}catch{}}mapImages(e){return e.filter(t=>{var i,n,r,s,o,a,l,c,h,p;return((a=(o=(s=(r=(n=(i=t==null?void 0:t.attributes)==null?void 0:i.src)==null?void 0:n.data)==null?void 0:r.attributes)==null?void 0:s.formats)==null?void 0:o.thumbnail)==null?void 0:a.url)&&((p=(h=(c=(l=t==null?void 0:t.attributes)==null?void 0:l.src)==null?void 0:c.data)==null?void 0:h.attributes)==null?void 0:p.url)}).map(t=>{var i,n,r,s,o,a,l,c,h,p;return{id:parseInt(t.id),videoURL:"none",thumbnail:((a=(o=(s=(r=(n=(i=t==null?void 0:t.attributes)==null?void 0:i.src)==null?void 0:n.data)==null?void 0:r.attributes)==null?void 0:s.formats)==null?void 0:o.thumbnail)==null?void 0:a.url)||"",imageURL:((p=(h=(c=(l=t==null?void 0:t.attributes)==null?void 0:l.src)==null?void 0:c.data)==null?void 0:h.attributes)==null?void 0:p.url)||""}})}refreshVideoLibrary(){let i=0,n=()=>{B.fetchVideos().then(r=>{if(r.length===0)return;let s=r[0];s&&s.result_url?(this.notify.showLoadingDone("Clone Created!"),B.uploadVideoToStrapi(s.result_url,s.id,this.activeMediaID||"none").then(o=>{this.imageLibrary&&(this.showStrapiVideoLibrary(!0),this.notify.showLoadingDone("Creation Done"),this.mediaPreview.previewVideo(s.result_url))}).catch(o=>{this.notify.show(o)})):i<50&&(i++,setTimeout(n,5e3))}).catch(r=>{r.message&&this.notify.showLoading(r.message)})};n()}showStrapiVideoLibrary(e=!1,t=!1){B.fetchStrapiVideos().then(i=>{var o;let r=i.filter(a=>{var l,c,h;return((c=(l=a.attributes)==null?void 0:l.src)==null?void 0:c.data)!==null&&((h=a.attributes)==null?void 0:h.image)!==null}).map(a=>{var h,p,f,D,d,m,g,y,_,v,E,S;let{image:l}=a.attributes,c=l.data.id;return{id:a.id,videoURL:a.attributes.src.data[0].attributes.url,imageURL:(d=(D=(f=(p=(h=l.data)==null?void 0:h.attributes)==null?void 0:p.src)==null?void 0:f.data)==null?void 0:D.attributes)==null?void 0:d.url,thumbnail:(S=(E=(v=(_=(y=(g=(m=l.data)==null?void 0:m.attributes)==null?void 0:g.src)==null?void 0:y.data)==null?void 0:_.attributes)==null?void 0:v.formats)==null?void 0:E.thumbnail)==null?void 0:S.url,imageID:c}}),{videoLibraryContainer:s}=this.elementsManager.elements;if(s){let a=new rt(s);if(a&&(a.init(r),e&&a.setHighlighted(r[0].id),this.userManager.avatarID)){(o=this.uiManager)==null||o.setStep2Active(!0);let l=Re.setSelectedThumbnail(this.userManager.avatarID.toString());if(l&&t){let c=new CustomEvent("mediaItemSelected",{detail:{videoURL:l.getAttribute("data-video-url"),imageURL:l.getAttribute("data-image-url"),s3Link:l.getAttribute("data-s3-url"),id:l.getAttribute("data-id"),thumbnail:l.getAttribute("data-thumbnail")}});document.dispatchEvent(c);let h=new CustomEvent("imageUrlChanged",{detail:{imageUrl:l.getAttribute("data-s3-url")}});document.dispatchEvent(h)}}}}).catch(i=>{})}showVideoLibrary(){B.fetchVideos().then(e=>{let t=this.mappedImages.map(s=>s.id),n=e.filter(s=>t.includes(Number(s.name))).map(s=>{let o=s.result_url;return o&&(o=s.result_url.replace("s3://d-id-talks-persistent-prod/","https://talks-api-results.d-id.com/")),{id:s.id,videoURL:o,imageURL:s.source_url.replace("https://d-id-talks-persistent-prod.s3.us-west-2.amazonaws.com/","https://talks-api-results.d-id.com/"),name:s.title}}),{videoLibraryContainer:r}=this.elementsManager.elements;if(r){let s=new rt(r);s&&s.init(n)}}).catch(e=>{})}};I.registerPlugin(ni);var Ot=class{constructor(e){this.elements=new Ce;this.openTimeline=null;e&&(this.externalDataArray=e.data),this.isOpen=!1,this.modal=this.elements.get("modal"),this.modalVideo=this.elements.get("modalVideo"),this.introVideoDuration=.12,this.enableMicButton=this.elements.get("enableMic"),this.enableMicButton&&I.set(this.enableMicButton,{autoAlpha:0}),this.modalText=this.elements.get("modalText"),this.chatArea=this.elements.get("chatArea"),this.modal&&this.initializeModal()}initializeModal(){I.set(this.modal,{autoAlpha:0,position:"fixed",top:0,left:0,width:"100%",height:"100%",zIndex:9999})}init(){this.setupEventListeners()}setupEventListeners(){let e=this.elements.getAll("openModal"),t=this.elements.getAll("closeModal"),i=this.elements.getAll("micButton");e.forEach(n=>{n.addEventListener("click",this.handleOpenModalClick.bind(this))}),i.forEach(n=>{n.addEventListener("click",this.handleMicButtonClick.bind(this))}),t.forEach(n=>{n.addEventListener("click",this.handleCloseModalClick.bind(this))})}handleOpenModalClick(e){e.preventDefault(),e.stopPropagation(),this.externalDataArray?this.populateModalDataExternal(e):this.populateModalData(e),this.open()}handleMicButtonClick(e){e.preventDefault()}handleCloseModalClick(e){e.preventDefault(),this.close()}populateModalDataExternal(e){var c;let i=e.target.closest('[cc-element="component-wrapper"]'),n=i==null?void 0:i.querySelector('[data-modal="container"]'),r=n==null?void 0:n.getAttribute("data-modal-video"),s=i==null?void 0:i.getAttribute("data-influencer-id"),o=(c=this.modal)==null?void 0:c.querySelector(".chat-box_content"),a=Number(s),l=this.externalDataArray.find(h=>h.id===a);if(n){let h=n.querySelector('[data-modal="heading"]'),p=n.querySelector('[data-modal="paragraph"]'),f=n.querySelector('[data-modal="specialty"]');h&&(h.textContent=l.attributes.name),p&&(p.textContent=""),f&&(f.textContent=l.attributes.byline),this.setModalContent("modalHeader",n,'[data-modal="heading"]'),this.setModalContent("modalParagraph",n,'[data-modal="paragraph"]'),this.setModalContent("modalSpecialty",n,'[data-modal="specialty"]')}if(this.modalVideo&&r){let h=this.modalVideo.querySelector("source");h&&(h.src=r,this.modalVideo.load(),this.modalVideo.addEventListener("loadedmetadata",()=>{var p,f;this.introVideoDuration=(f=(p=this.modalVideo)==null?void 0:p.duration)!=null?f:0}))}s&&B.fetchInfluencerChat(s,s).then(h=>{let{instanceHandle:p}=h.data.attributes,{iframeUrl:f}=h.data.attributes,{createdAt:D}=h.data.attributes,{updatedAt:d}=h.data.attributes,{type:m}=h.data.attributes;o&&this.embedIframe(o,f)}).catch(h=>{})}populateModalData(e){let i=e.target.closest('[cc-element="component-wrapper"]'),n=i==null?void 0:i.querySelector('[data-modal="container"]'),r=n==null?void 0:n.getAttribute("data-modal-video");if(this.setModalContent("modalHeader",n,'[data-modal="heading"]'),this.setModalContent("modalParagraph",n,'[data-modal="paragraph"]'),this.setModalContent("modalSpecialty",n,'[data-modal="specialty"]'),this.setModalContent("modalCtaButton",n,'[data-modal="button"]'),this.setModalContent("modalCtaButtonMobile",n,'[data-modal="button"]'),this.modalVideo&&r){let s=this.modalVideo.querySelector("source");s&&(s.src=r,this.modalVideo.load(),this.modalVideo.addEventListener("loadedmetadata",()=>{var o,a;this.introVideoDuration=(a=(o=this.modalVideo)==null?void 0:o.duration)!=null?a:0}))}}setModalContent(e,t,i){var o,a;let n=this.elements.get(e),r=(o=t==null?void 0:t.querySelector(i))==null?void 0:o.textContent,s=(a=t==null?void 0:t.querySelector("a"))==null?void 0:a.href;if(s&&s!==void 0){let l=n;l&&l!==void 0&&(l.href=s)}n&&r!==void 0&&(n.textContent=r)}open(){this.modal&&(I.set(this.chatArea,{display:"none"}),I.to(this.modalText,{opacity:1,display:"block"}),this.openTimeline=this.createOpenTimeline(),document.body.style.overflow="hidden")}chatAreaOpen(){let e=document.querySelector("#myText"),t=e==null?void 0:e.textContent,i=t!=null?t:"";e&&(e.textContent="");let n=20,r=.3,s="|";I.timeline().to("#myText",{duration:i.length/n,text:{value:i,newClass:"typing"},ease:"none",onUpdate:function(){let a=document.querySelector("#myText");a&&(a.textContent+=s)},onComplete:function(){let a=document.querySelector("#myText");a&&(a.textContent=i)}},"+=0.5").to("#myText",{duration:r,text:{value:i+s,newClass:"typing"},repeat:-1,repeatDelay:r,ease:"none"})}createOpenTimeline(){let e=I.timeline({onComplete:()=>{var i;(i=this.modalVideo)==null||i.play(),I.to(this.enableMicButton,{autoAlpha:1,duration:.3,delay:this.introVideoDuration,onStart:()=>{I.matchMedia().add("(max-width: 799px)",()=>{I.to(this.modalText,{opacity:0,display:"none"})})}})}});e.to(this.modal,{autoAlpha:1,duration:.5,ease:"power4.out"}),e.from(this.elements.get("modalWrapper"),{scale:1.1,opacity:0,duration:.5,ease:"power4.out"},.1),e.from(this.elements.get("modalHeader"),{yPercent:-10,opacity:0,duration:.5,ease:"power4.out"},.1),e.from(this.elements.get("modalSpecialty"),{yPercent:-10,opacity:0,duration:.5,ease:"power4.out"},.2),e.from(this.elements.get("modalParagraph"),{yPercent:-10,opacity:0,duration:.5,ease:"power4.out"},.3),e.from(this.modalVideo,{autoAlpha:0,duration:.5,ease:"power4.out"},.4);let t=document.querySelectorAll(".icon-container .icon-link_link");return e.from(t,{yPercent:-10,opacity:0,stagger:.1,duration:.5,ease:"power4.out"},.6),e}findNearestSiblingWithAttribute(e,t){var n;let i=(n=e.parentElement)==null?void 0:n.nextElementSibling;for(;i;){if(i.hasAttribute(t))return i;i=i.nextElementSibling}return null}close(){var e;this.modal&&(I.to(this.modal,{autoAlpha:0}),I.killTweensOf(this.enableMicButton),document.body.style.overflow="",(e=this.modalVideo)==null||e.pause(),I.set(this.enableMicButton,{autoAlpha:0}))}embedIframe(e,t){e.innerHTML="",e.innerHTML=`<iframe src="${t}" width="100%" height="100%" frameborder="0" allow="microphone; camera"></iframe>`}};var oi=class{constructor(){this.elements=new Ce}async init(){if(document.querySelector('[cc-type="dev"]')){let e=this.elements.get("componentWrapper");B.fetchGetInfluencers().then(t=>{t.data.forEach(n=>{let{name:r,byline:s}=n.attributes,{id:o}=n;if(e){let a=e.cloneNode(!0);a.setAttribute("data-influencer-id",o.toString()),a.setAttribute("data-user-id","3");let l=a.querySelector('[cc-element="header"]'),c=a.querySelector('[cc-element="byline"]');l&&(l.textContent=r),c&&(c.textContent=s),e.after(a)}}),e==null||e.remove(),new Ot(t).init()}).catch(t=>{})}else new Ot().init()}};document.addEventListener("DOMContentLoaded",function(){window.requestAnimationFrame(function(){window.Webflow||(window.Webflow=[]),window.Webflow.push(async()=>{document.querySelector('[cc-page="chat-training"]')||(document.querySelector('[cc-page="consumer"]')?new oi().init():new si().init()),document.documentElement.classList.add("webflow-loaded")})})});})();
//!!!! HARD CODED MEMBER ID
/*! Bundled license information:

gsap/gsap-core.js:
  (*!
   * GSAP 3.12.2
   * https://greensock.com
   *
   * @license Copyright 2008-2023, GreenSock. All rights reserved.
   * Subject to the terms at https://greensock.com/standard-license or for
   * Club GreenSock members, the agreement issued with that membership.
   * @author: Jack Doyle, jack@greensock.com
  *)

gsap/CSSPlugin.js:
  (*!
   * CSSPlugin 3.12.2
   * https://greensock.com
   *
   * Copyright 2008-2023, GreenSock. All rights reserved.
   * Subject to the terms at https://greensock.com/standard-license or for
   * Club GreenSock members, the agreement issued with that membership.
   * @author: Jack Doyle, jack@greensock.com
  *)

gsap/utils/strings.js:
  (*!
   * strings: 3.12.2
   * https://greensock.com
   *
   * Copyright 2008-2023, GreenSock. All rights reserved.
   * Subject to the terms at https://greensock.com/standard-license or for
   * Club GreenSock members, the agreement issued with that membership.
   * @author: Jack Doyle, jack@greensock.com
  *)

gsap/SplitText.js:
  (*!
   * SplitText: 3.12.2
   * https://greensock.com
   *
   * @license Copyright 2008-2023, GreenSock. All rights reserved.
   * Subject to the terms at https://greensock.com/standard-license or for
   * Club GreenSock members, the agreement issued with that membership.
   * @author: Jack Doyle, jack@greensock.com
  *)
*/
