芝麻web文件管理V1.00
编辑当前文件:/home/qrafawbu/kwesioben.com/thefirstcookout/1/dist/index.b5e7c14d.js
!function(){function t(t){return t&&t.__esModule?t.default:t}var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{},n={},i={},r=e.parcelRequire894d;null==r&&((r=function(t){if(t in n)return n[t].exports;if(t in i){var e=i[t];delete i[t];var r={id:t,exports:{}};return n[t]=r,e.call(r.exports,r,r.exports),r.exports}var s=new Error("Cannot find module '"+t+"'");throw s.code="MODULE_NOT_FOUND",s}).register=function(t,e){i[t]=e},e.parcelRequire894d=r),r.register("hobco",(function(t,e){!function(e,n){t.exports?t.exports=n():e.EvEmitter=n()}("undefined"!=typeof window?window:t.exports,(function(){function t(){}let e=t.prototype;return e.on=function(t,e){if(!t||!e)return this;let n=this._events=this._events||{},i=n[t]=n[t]||[];return i.includes(e)||i.push(e),this},e.once=function(t,e){if(!t||!e)return this;this.on(t,e);let n=this._onceEvents=this._onceEvents||{};return(n[t]=n[t]||{})[e]=!0,this},e.off=function(t,e){let n=this._events&&this._events[t];if(!n||!n.length)return this;let i=n.indexOf(e);return-1!=i&&n.splice(i,1),this},e.emitEvent=function(t,e){let n=this._events&&this._events[t];if(!n||!n.length)return this;n=n.slice(0),e=e||[];let i=this._onceEvents&&this._onceEvents[t];for(let r of n){i&&i[r]&&(this.off(t,r),delete i[r]),r.apply(this,e)}return this},e.allOff=function(){return delete this._events,delete this._onceEvents,this},t}))}));var s={}; /*! * imagesLoaded v5.0.0 * JavaScript is all like "You images are done yet or what?" * MIT License */!function(t,e){s?s=e(t,r("hobco")):t.imagesLoaded=e(t,t.EvEmitter)}("undefined"!=typeof window?window:s,(function(t,e){let n=t.jQuery,i=t.console;function r(t,e,s){if(!(this instanceof r))return new r(t,e,s);let o=t;var a;("string"==typeof t&&(o=document.querySelectorAll(t)),o)?(this.elements=(a=o,Array.isArray(a)?a:"object"==typeof a&&"number"==typeof a.length?[...a]:[a]),this.options={},"function"==typeof e?s=e:Object.assign(this.options,e),s&&this.on("always",s),this.getImages(),n&&(this.jqDeferred=new n.Deferred),setTimeout(this.check.bind(this))):i.error(`Bad element for imagesLoaded ${o||t}`)}r.prototype=Object.create(e.prototype),r.prototype.getImages=function(){this.images=[],this.elements.forEach(this.addElementImages,this)};const s=[1,9,11];r.prototype.addElementImages=function(t){"IMG"===t.nodeName&&this.addImage(t),!0===this.options.background&&this.addElementBackgroundImages(t);let{nodeType:e}=t;if(!e||!s.includes(e))return;let n=t.querySelectorAll("img");for(let t of n)this.addImage(t);if("string"==typeof this.options.background){let e=t.querySelectorAll(this.options.background);for(let t of e)this.addElementBackgroundImages(t)}};const o=/url\((['"])?(.*?)\1\)/gi;function a(t){this.img=t}function l(t,e){this.url=t,this.element=e,this.img=new Image}return r.prototype.addElementBackgroundImages=function(t){let e=getComputedStyle(t);if(!e)return;let n=o.exec(e.backgroundImage);for(;null!==n;){let i=n&&n[2];i&&this.addBackground(i,t),n=o.exec(e.backgroundImage)}},r.prototype.addImage=function(t){let e=new a(t);this.images.push(e)},r.prototype.addBackground=function(t,e){let n=new l(t,e);this.images.push(n)},r.prototype.check=function(){if(this.progressedCount=0,this.hasAnyBroken=!1,!this.images.length)return void this.complete();let t=(t,e,n)=>{setTimeout((()=>{this.progress(t,e,n)}))};this.images.forEach((function(e){e.once("progress",t),e.check()}))},r.prototype.progress=function(t,e,n){this.progressedCount++,this.hasAnyBroken=this.hasAnyBroken||!t.isLoaded,this.emitEvent("progress",[this,t,e]),this.jqDeferred&&this.jqDeferred.notify&&this.jqDeferred.notify(this,t),this.progressedCount===this.images.length&&this.complete(),this.options.debug&&i&&i.log(`progress: ${n}`,t,e)},r.prototype.complete=function(){let t=this.hasAnyBroken?"fail":"done";if(this.isComplete=!0,this.emitEvent(t,[this]),this.emitEvent("always",[this]),this.jqDeferred){let t=this.hasAnyBroken?"reject":"resolve";this.jqDeferred[t](this)}},a.prototype=Object.create(e.prototype),a.prototype.check=function(){this.getIsImageComplete()?this.confirm(0!==this.img.naturalWidth,"naturalWidth"):(this.proxyImage=new Image,this.img.crossOrigin&&(this.proxyImage.crossOrigin=this.img.crossOrigin),this.proxyImage.addEventListener("load",this),this.proxyImage.addEventListener("error",this),this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.proxyImage.src=this.img.currentSrc||this.img.src)},a.prototype.getIsImageComplete=function(){return this.img.complete&&this.img.naturalWidth},a.prototype.confirm=function(t,e){this.isLoaded=t;let{parentNode:n}=this.img,i="PICTURE"===n.nodeName?n:this.img;this.emitEvent("progress",[this,i,e])},a.prototype.handleEvent=function(t){let e="on"+t.type;this[e]&&this[e](t)},a.prototype.onload=function(){this.confirm(!0,"onload"),this.unbindEvents()},a.prototype.onerror=function(){this.confirm(!1,"onerror"),this.unbindEvents()},a.prototype.unbindEvents=function(){this.proxyImage.removeEventListener("load",this),this.proxyImage.removeEventListener("error",this),this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},l.prototype=Object.create(a.prototype),l.prototype.check=function(){this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.img.src=this.url,this.getIsImageComplete()&&(this.confirm(0!==this.img.naturalWidth,"naturalWidth"),this.unbindEvents())},l.prototype.unbindEvents=function(){this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},l.prototype.confirm=function(t,e){this.isLoaded=t,this.emitEvent("progress",[this,this.element,e])},r.makeJQueryPlugin=function(e){(e=e||t.jQuery)&&(n=e,n.fn.imagesLoaded=function(t,e){return new r(this,t,e).jqDeferred.promise(n(this))})},r.makeJQueryPlugin(),r}));const o=(t,e,n)=>{t.forEach((t=>{const i=document.createElement(e);i.classList=n,t.parentNode.appendChild(i),i.appendChild(t)}))};function a(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function l(t,e){return Object.getOwnPropertyNames(Object(t)).reduce(((n,i)=>{const r=Object.getOwnPropertyDescriptor(Object(t),i),s=Object.getOwnPropertyDescriptor(Object(e),i);return Object.defineProperty(n,i,s||r)}),{})}function u(t){return"string"==typeof t}function c(t){return Array.isArray(t)}function h(t={}){const e=l(t);let n;return void 0!==e.types?n=e.types:void 0!==e.split&&(n=e.split),void 0!==n&&(e.types=(u(n)||c(n)?String(n):"").split(",").map((t=>String(t).trim())).filter((t=>/((line)|(word)|(char))/i.test(t)))),(e.absolute||e.position)&&(e.absolute=e.absolute||/absolute/.test(t.position)),e}function f(t){const e=u(t)||c(t)?String(t):"";return{none:!e,lines:/line/i.test(e),words:/word/i.test(e),chars:/char/i.test(e)}}function d(t){return null!==t&&"object"==typeof t}function p(t){return d(t)&&/^(1|3|11)$/.test(t.nodeType)}function g(t){return c(t)?t:null==t?[]:function(t){return d(t)&&function(t){return"number"==typeof t&&t>-1&&t%1==0}(t.length)}(t)?Array.prototype.slice.call(t):[t]}function m(t){let e=t;return u(t)&&(e=/^(#[a-z]\w+)$/.test(t.trim())?document.getElementById(t.trim().slice(1)):document.querySelectorAll(t)),g(e).reduce(((t,e)=>[...t,...g(e).filter(p)]),[])}(()=>{function t(...t){const e=t.length;for(let n=0;n
{const i=e[t],r=u(i)?i.trim():i;null!==r&&""!==r&&("children"===t?n.append(...g(r)):n.setAttribute(t,r))})),n):n}var q={splitClass:"",lineClass:"line",wordClass:"word",charClass:"char",types:["lines","words","chars"],absolute:!1,tagName:"div"};function H(t,e){const n=f((e=l(q,e)).types),i=e.tagName,r=t.nodeValue,s=document.createDocumentFragment();let o=[],a=[];return/^\s/.test(r)&&s.append(" "),o=function(t,e=" "){return(t?String(t):"").trim().replace(/\s+/g," ").split(e)}(r).reduce(((t,r,o,l)=>{let u,c;return n.chars&&(c=V(r).map((t=>{const n=j(i,{class:`${e.splitClass} ${e.charClass}`,style:"display: inline-block;",children:t});return x(n,"isChar",!0),a=[...a,n],n}))),n.words||n.lines?(u=j(i,{class:`${e.wordClass} ${e.splitClass}`,style:"display: inline-block; "+(n.words&&e.absolute?"position: relative;":""),children:n.chars?c:r}),x(u,{isWord:!0,isWordStart:!0,isWordEnd:!0}),s.appendChild(u)):c.forEach((t=>{s.appendChild(t)})),o
{const{words:i,chars:r}=$(n,e);return{words:[...t.words,...i],chars:[...t.chars,...r]}}),i)}function U(t){T(t).isWord?(O(t),t.replaceWith(...t.childNodes)):g(t.children).forEach((t=>U(t)))}function G(t,e,n){const i=f(e.types),r=e.tagName,s=t.getElementsByTagName("*"),o=[];let a,l,u,c=[],h=null,d=[];const p=t.parentElement,m=t.nextElementSibling,v=document.createDocumentFragment(),_=window.getComputedStyle(t),y=_.textAlign,w=.2*parseFloat(_.fontSize);return e.absolute&&(u={left:t.offsetLeft,top:t.offsetTop,width:t.offsetWidth},l=t.offsetWidth,a=t.offsetHeight,x(t,{cssWidth:t.style.width,cssHeight:t.style.height})),g(s).forEach((r=>{const s=r.parentElement===t,{width:a,height:l,top:u,left:f}=function(t,e,n,i){if(!n.absolute)return{top:e?t.offsetTop:null};const r=t.offsetParent,[s,o]=i;let a=0,l=0;if(r&&r!==document.body){const t=r.getBoundingClientRect();a=t.x+s,l=t.y+o}const{width:u,height:c,x:h,y:f}=t.getBoundingClientRect();return{width:u,height:c,top:f+o-l,left:h+s-a}}(r,s,e,n);/^br$/i.test(r.nodeName)||(i.lines&&s&&((null===h||u-h>=w)&&(h=u,o.push(c=[])),c.push(r)),e.absolute&&x(r,{top:u,left:f,width:a,height:l}))})),p&&p.removeChild(t),i.lines&&(d=o.map((t=>{const n=j(r,{class:`${e.splitClass} ${e.lineClass}`,style:`display: block; text-align: ${y}; width: 100%;`});x(n,"isLine",!0);const i={height:0,top:1e4};return v.appendChild(n),t.forEach(((t,e,r)=>{const{isWordEnd:s,top:o,height:a}=T(t),l=r[e+1];i.height=Math.max(i.height,a),i.top=Math.min(i.top,o),n.appendChild(t),s&&T(l).isWordStart&&n.append(" ")})),e.absolute&&x(n,{height:i.height,top:i.top}),n})),i.words||U(v),t.replaceChildren(v)),e.absolute&&(t.style.width=`${t.style.width||l}px`,t.style.height=`${a}px`,g(s).forEach((t=>{const{isLine:e,top:n,left:i,width:r,height:s}=T(t),o=T(t.parentElement),a=!e&&o.isLine;t.style.top=`${a?n-o.top:n}px`,t.style.left=e?`${u.left}px`:i-(a?u.left:0)+"px",t.style.height=`${s}px`,t.style.width=e?`${u.width}px`:`${r}px`,t.style.position="absolute"}))),p&&(m?p.insertBefore(t,m):p.appendChild(t)),d}let K=l(q,{});class Q{static get data(){return w}static get defaults(){return K}static set defaults(t){K=l(K,h(t))}static setDefaults(t){return K=l(K,h(t)),q}static revert(t){m(t).forEach((t=>{const{isSplit:e,html:n,cssWidth:i,cssHeight:r}=T(t);e&&(t.innerHTML=n,t.style.width=i||"",t.style.height=r||"",O(t))}))}static create(t,e){return new Q(t,e)}split(t){this.revert(),this.lines=[],this.words=[],this.chars=[];const e=[window.pageXOffset,window.pageYOffset];void 0!==t&&(this.settings=l(this.settings,h(t)));const n=f(this.settings.types);n.none||(this.elements.forEach((t=>{x(t,"isRoot",!0);const{words:e,chars:n}=$(t,this.settings);this.words=[...this.words,...e],this.chars=[...this.chars,...n]})),this.elements.forEach((t=>{if(n.lines||this.settings.absolute){const n=G(t,this.settings,e);this.lines=[...this.lines,...n]}})),this.isSplit=!0,window.scrollTo(e[0],e[1]),v(w).forEach((([t,{isRoot:e,isSplit:n}])=>{e&&n||(w[t]=null,delete w[t])})))}revert(){this.isSplit&&(this.lines=null,this.words=null,this.chars=null,this.isSplit=!1),Q.revert(this.elements)}constructor(t,e){this.isSplit=!1,this.settings=l(K,h(e)),this.elements=m(t),this.revert(),this.elements.forEach((t=>{x(t,"html",t.innerHTML)})),this.split()}}function Z(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function J(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e} /*! * GSAP 3.10.4 * https://greensock.com * * @license Copyright 2008-2022, 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 */var tt,et,nt,it,rt,st,ot,at,lt,ut,ct,ht,ft,dt,pt,gt,mt,vt,_t,yt,wt,bt,xt,Tt,Ot,Mt,St,Et,kt={autoSleep:120,force3D:"auto",nullTargetWarn:1,units:{lineHeight:""}},Ct={duration:.5,overwrite:!1,delay:0},Dt=1e8,Pt=1e-8,At=2*Math.PI,It=At/4,Lt=0,Rt=Math.sqrt,zt=Math.cos,Bt=Math.sin,Yt=function(t){return"string"==typeof t},Xt=function(t){return"function"==typeof t},Wt=function(t){return"number"==typeof t},Ft=function(t){return void 0===t},Nt=function(t){return"object"==typeof t},Vt=function(t){return!1!==t},jt=function(){return"undefined"!=typeof window},qt=function(t){return Xt(t)||Yt(t)},Ht="function"==typeof ArrayBuffer&&ArrayBuffer.isView||function(){},$t=Array.isArray,Ut=/(?:-?\.?\d|\.)+/gi,Gt=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,Kt=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,Qt=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,Zt=/[+-]=-?[.\d]+/,Jt=/[^,'"\[\]\s]+/gi,te=/^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i,ee={},ne={},ie=function(t){return(ne=Ce(t,ee))&&yi},re=function(t,e){return console.warn("Invalid property",t,"set to",e,"Missing plugin? gsap.registerPlugin()")},se=function(t,e){return!e&&console.warn(t)},oe=function(t,e){return t&&(ee[t]=e)&&ne&&(ne[t]=e)||ee},ae=function(){return 0},le={},ue=[],ce={},he={},fe={},de=30,pe=[],ge="",me=function(t){var e,n,i=t[0];if(Nt(i)||Xt(i)||(t=[t]),!(e=(i._gsap||{}).harness)){for(n=pe.length;n--&&!pe[n].targetTest(i););e=pe[n]}for(n=t.length;n--;)t[n]&&(t[n]._gsap||(t[n]._gsap=new Nn(t[n],e)))||t.splice(n,1);return t},ve=function(t){return t._gsap||me(an(t))[0]._gsap},_e=function(t,e,n){return(n=t[e])&&Xt(n)?t[e]():Ft(n)&&t.getAttribute&&t.getAttribute(e)||n},ye=function(t,e){return(t=t.split(",")).forEach(e)||t},we=function(t){return Math.round(1e5*t)/1e5||0},be=function(t){return Math.round(1e7*t)/1e7||0},xe=function(t,e){var n=e.charAt(0),i=parseFloat(e.substr(2));return t=parseFloat(t),"+"===n?t+i:"-"===n?t-i:"*"===n?t*i:t/i},Te=function(t,e){for(var n=e.length,i=0;t.indexOf(e[i])<0&&++i
s;)o=o._prev;return o?(e._next=o._next,o._next=e):(e._next=t[n],t[n]=e),e._next?e._next._prev=e:t[i]=e,e._prev=o,e.parent=e._dp=t,e},Le=function(t,e,n,i){void 0===n&&(n="_first"),void 0===i&&(i="_last");var r=e._prev,s=e._next;r?r._next=s:t[n]===e&&(t[n]=s),s?s._prev=r:t[i]===e&&(t[i]=r),e._next=e._prev=e.parent=null},Re=function(t,e){t.parent&&(!e||t.parent.autoRemoveChildren)&&t.parent.remove(t),t._act=0},ze=function(t,e){if(t&&(!e||e._end>t._dur||e._start<0))for(var n=t;n;)n._dirty=1,n=n.parent;return t},Be=function(t){for(var e=t.parent;e&&e.parent;)e._dirty=1,e.totalDuration(),e=e.parent;return t},Ye=function t(e){return!e||e._ts&&t(e.parent)},Xe=function(t){return t._repeat?We(t._tTime,t=t.duration()+t._rDelay)*t:0},We=function(t,e){var n=Math.floor(t/=e);return t&&n===t?n-1:n},Fe=function(t,e){return(t-e._start)*e._ts+(e._ts>=0?0:e._dirty?e.totalDuration():e._tDur)},Ne=function(t){return t._end=be(t._start+(t._tDur/Math.abs(t._ts||t._rts||Pt)||0))},Ve=function(t,e){var n=t._dp;return n&&n.smoothChildTiming&&t._ts&&(t._start=be(n._time-(t._ts>0?e/t._ts:((t._dirty?t.totalDuration():t._tDur)-e)/-t._ts)),Ne(t),n._dirty||ze(n,t)),t},je=function(t,e){var n;if((e._time||e._initted&&!e._dur)&&(n=Fe(t.rawTime(),e),(!e._dur||nn(0,e.totalDuration(),n)-e._tTime>Pt)&&e.render(n,!0)),ze(t,e)._dp&&t._initted&&t._time>=t._dur&&t._ts){if(t._dur
=0&&n.totalTime(n._tTime),n=n._dp;t._zTime=-1e-8}},qe=function(t,e,n,i){return e.parent&&Re(e),e._start=be((Wt(n)?n:n||t!==et?Je(t,n,e):t._time)+e._delay),e._end=be(e._start+(e.totalDuration()/Math.abs(e.timeScale())||0)),Ie(t,e,"_first","_last",t._sort?"_start":0),Ge(e)||(t._recent=e),i||je(t,e),t},He=function(t,e){return(ee.ScrollTrigger||re("scrollTrigger",e))&&ee.ScrollTrigger.create(e,t)},$e=function(t,e,n,i){return Kn(t,e),t._initted?!n&&t._pt&&(t._dur&&!1!==t.vars.lazy||!t._dur&&t.vars.lazy)&&ot!==Cn.frame?(ue.push(t),t._lazy=[e,i],1):void 0:1},Ue=function t(e){var n=e.parent;return n&&n._ts&&n._initted&&!n._lock&&(n.rawTime()<0||t(n))},Ge=function(t){var e=t.data;return"isFromStart"===e||"isStart"===e},Ke=function(t,e,n,i){var r=t._repeat,s=be(e)||0,o=t._tTime/t._tDur;return o&&!i&&(t._time*=s/t._dur),t._dur=s,t._tDur=r?r<0?1e10:be(s*(r+1)+t._rDelay*r):s,o>0&&!i?Ve(t,t._tTime=t._tDur*o):t.parent&&Ne(t),n||ze(t.parent,t),t},Qe=function(t){return t instanceof jn?ze(t):Ke(t,t._dur)},Ze={_start:0,endTime:ae,totalDuration:ae},Je=function t(e,n,i){var r,s,o,a=e.labels,l=e._recent||Ze,u=e.duration()>=Dt?l.endTime(!1):e._dur;return Yt(n)&&(isNaN(n)||n in a)?(s=n.charAt(0),o="%"===n.substr(-1),r=n.indexOf("="),"<"===s||">"===s?(r>=0&&(n=n.replace(/=/,"")),("<"===s?l._start:l.endTime(l._repeat>=0))+(parseFloat(n.substr(1))||0)*(o?(r<0?l:i).totalDuration()/100:1)):r<0?(n in a||(a[n]=u),a[n]):(s=parseFloat(n.charAt(r-1)+n.substr(r+1)),o&&i&&(s=s/100*($t(i)?i[0]:i).totalDuration()),r>1?t(e,n.substr(0,r-1),i)+s:u+s)):null==n?u:+n},tn=function(t,e,n){var i,r,s=Wt(e[1]),o=(s?2:1)+(t<2?0:1),a=e[o];if(s&&(a.duration=e[1]),a.parent=n,t){for(i=a,r=n;r&&!("immediateRender"in i);)i=r.vars.defaults||{},r=Vt(r.vars.inherit)&&r.parent;a.immediateRender=Vt(i.immediateRender),t<2?a.runBackwards=1:a.startAt=e[o-1]}return new ei(e[0],a,e[o+1])},en=function(t,e){return t||0===t?e(t):e},nn=function(t,e,n){return n
e?e:n},rn=function(t,e){return Yt(t)&&(e=te.exec(t))?e[1]:""},sn=[].slice,on=function(t,e){return t&&Nt(t)&&"length"in t&&(!e&&!t.length||t.length-1 in t&&Nt(t[0]))&&!t.nodeType&&t!==nt},an=function(t,e,n){return!Yt(t)||n||!it&&Dn()?$t(t)?function(t,e,n){return void 0===n&&(n=[]),t.forEach((function(t){var i;return Yt(t)&&!e||on(t,1)?(i=n).push.apply(i,an(t)):n.push(t)}))||n}(t,n):on(t)?sn.call(t,0):t?[t]:[]:sn.call((e||rt).querySelectorAll(t),0)},ln=function(t){return t.sort((function(){return.5-Math.random()}))},un=function(t){if(Xt(t))return t;var e=Nt(t)?t:{each:t},n=Bn(e.ease),i=e.from||0,r=parseFloat(e.base)||0,s={},o=i>0&&i<1,a=isNaN(i)||o,l=e.axis,u=i,c=i;return Yt(i)?u=c={center:.5,edges:.5,end:1}[i]||0:!o&&a&&(u=i[0],c=i[1]),function(t,o,h){var f,d,p,g,m,v,_,y,w,b=(h||e).length,x=s[b];if(!x){if(!(w="auto"===e.grid?0:(e.grid||[1,Dt])[1])){for(_=-1e8;_<(_=h[w++].getBoundingClientRect().left)&&w
_&&(_=m),m
b?b-1:l?"y"===l?b/w:w:Math.max(w,b/w))||0)*("edges"===i?-1:1),x.b=b<0?r-b:r,x.u=rn(e.amount||e.each)||0,n=n&&b<0?Rn(n):n}return b=(x[t]-x.min)/x.max||0,be(x.b+(n?n(b):b)*x.v)+x.u}},cn=function(t){var e=Math.pow(10,((t+"").split(".")[1]||"").length);return function(n){var i=Math.round(parseFloat(n)/t)*t*e;return(i-i%1)/e+(Wt(n)?0:rn(n))}},hn=function(t,e){var n,i,r=$t(t);return!r&&Nt(t)&&(n=r=t.radius||Dt,t.values?(t=an(t.values),(i=!Wt(t[0]))&&(n*=n)):t=cn(t.increment)),en(e,r?Xt(t)?function(e){return i=t(e),Math.abs(i-e)<=n?i:e}:function(e){for(var r,s,o=parseFloat(i?e.x:e),a=parseFloat(i?e.y:0),l=Dt,u=0,c=t.length;c--;)(r=i?(r=t[c].x-o)*r+(s=t[c].y-a)*s:Math.abs(t[c]-o))
(r=Math.abs(r))&&(s=i,a=r);return s},vn=function(t,e,n){var i,r,s=t.vars,o=s[e];if(o)return i=s[e+"Params"],r=s.callbackScope||t,n&&ue.length&&Oe(),i?o.apply(r,i):o.call(r)},_n=function(t){return Re(t),t.scrollTrigger&&t.scrollTrigger.kill(!1),t.progress()<1&&vn(t,"onInterrupt"),t},yn=function(t){var e=(t=!t.name&&t.default||t).name,n=Xt(t),i=e&&!n&&t.init?function(){this._props=[]}:t,r={init:ae,render:ci,add:Un,kill:fi,modifier:hi,rawVars:0},s={targetTest:0,get:0,getSetter:oi,aliases:{},register:0};if(Dn(),t!==i){if(he[e])return;ke(i,ke(Pe(t,r),s)),Ce(i.prototype,Ce(r,Pe(t,s))),he[i.prop=e]=i,t.targetTest&&(pe.push(i),le[e]=1),e=("css"===e?"CSS":e.charAt(0).toUpperCase()+e.substr(1))+"Plugin"}oe(e,i),t.register&&t.register(yi,i,gi)},wn=255,bn={aqua:[0,wn,wn],lime:[0,wn,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,wn],navy:[0,0,128],white:[wn,wn,wn],olive:[128,128,0],yellow:[wn,wn,0],orange:[wn,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[wn,0,0],pink:[wn,192,203],cyan:[0,wn,wn],transparent:[wn,wn,wn,0]},xn=function(t,e,n){return(6*(t+=t<0?1:t>1?-1:0)<1?e+(n-e)*t*6:t<.5?n:3*t<2?e+(n-e)*(2/3-t)*6:e)*wn+.5|0},Tn=function(t,e,n){var i,r,s,o,a,l,u,c,h,f,d=t?Wt(t)?[t>>16,t>>8&wn,t&wn]:0:bn.black;if(!d){if(","===t.substr(-1)&&(t=t.substr(0,t.length-1)),bn[t])d=bn[t];else if("#"===t.charAt(0)){if(t.length<6&&(i=t.charAt(1),r=t.charAt(2),s=t.charAt(3),t="#"+i+i+r+r+s+s+(5===t.length?t.charAt(4)+t.charAt(4):"")),9===t.length)return[(d=parseInt(t.substr(1,6),16))>>16,d>>8&wn,d&wn,parseInt(t.substr(7),16)/255];d=[(t=parseInt(t.substr(1),16))>>16,t>>8&wn,t&wn]}else if("hsl"===t.substr(0,3))if(d=f=t.match(Ut),e){if(~t.indexOf("="))return d=t.match(Gt),n&&d.length<4&&(d[3]=1),d}else o=+d[0]%360/360,a=+d[1]/100,i=2*(l=+d[2]/100)-(r=l<=.5?l*(a+1):l+a-l*a),d.length>3&&(d[3]*=1),d[0]=xn(o+1/3,i,r),d[1]=xn(o,i,r),d[2]=xn(o-1/3,i,r);else d=t.match(Ut)||bn.transparent;d=d.map(Number)}return e&&!f&&(i=d[0]/wn,r=d[1]/wn,s=d[2]/wn,l=((u=Math.max(i,r,s))+(c=Math.min(i,r,s)))/2,u===c?o=a=0:(h=u-c,a=l>.5?h/(2-u-c):h/(u+c),o=u===i?(r-s)/h+(r
mt&&(_t+=o-vt),((n=(r=(yt+=o)-_t)-bt)>0||a)&&(s=++ft.frame,dt=r-1e3*ft.time,ft.time=r/=1e3,bt+=n+(n>=wt?4:wt-n),i=1),a||(ut=ct(t)),i)for(pt=0;pt
=e&&pt--},_listeners:xt=[]}),Dn=function(){return!lt&&Cn.wake()},Pn={},An=/^[\d.\-M][\d.\-,\s]/,In=/["']/g,Ln=function(t){for(var e,n,i,r={},s=t.substr(1,t.length-3).split(":"),o=s[0],a=1,l=s.length;a
1&&o.config?o.config.apply(null,~t.indexOf("{")?[Ln(s[1])]:(e=t,n=e.indexOf("(")+1,i=e.indexOf(")"),r=e.indexOf("(",n),e.substring(n,~r&&r
=1?n:1,s=(i||(e?.3:.45))/(n<1?n:1),o=s/At*(Math.asin(1/r)||0),a=function(t){return 1===t?1:r*Math.pow(2,-10*t)*Bt((t-o)*s)+1},l="out"===e?a:"in"===e?function(t){return 1-a(1-t)}:Xn(a);return s=At/s,l.config=function(n,i){return t(e,n,i)},l},Fn=function t(e,n){void 0===n&&(n=1.70158);var i=function(t){return t?--t*t*((n+1)*t+n)+1:0},r="out"===e?i:"in"===e?function(t){return 1-i(1-t)}:Xn(i);return r.config=function(n){return t(e,n)},r};ye("Linear,Quad,Cubic,Quart,Quint,Strong",(function(t,e){var n=e<5?e+1:e;Yn(t+",Power"+(n-1),e?function(t){return Math.pow(t,n)}:function(t){return t},(function(t){return 1-Math.pow(1-t,n)}),(function(t){return t<.5?Math.pow(2*t,n)/2:1-Math.pow(2*(1-t),n)/2}))})),Pn.Linear.easeNone=Pn.none=Pn.Linear.easeIn,Yn("Elastic",Wn("in"),Wn("out"),Wn()),Ot=7.5625,St=1/(Mt=2.75),Yn("Bounce",(function(t){return 1-Et(1-t)}),Et=function(t){return t
0?t+(t+this._rDelay)*this._repeat:t):this.totalDuration()&&this._dur},e.totalDuration=function(t){return arguments.length?(this._dirty=0,Ke(this,this._repeat<0?t:(t-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},e.totalTime=function(t,e){if(Dn(),!arguments.length)return this._tTime;var n=this._dp;if(n&&n.smoothChildTiming&&this._ts){for(Ve(this,t),!n._dp||n.parent||je(n,this);n&&n.parent;)n.parent._time!==n._start+(n._ts>=0?n._tTime/n._ts:(n.totalDuration()-n._tTime)/-n._ts)&&n.totalTime(n._tTime,!0),n=n.parent;!this.parent&&this._dp.autoRemoveChildren&&(this._ts>0&&t
0||!this._tDur&&!t)&&qe(this._dp,this,this._start-this._delay)}return(this._tTime!==t||!this._dur&&!e||this._initted&&Math.abs(this._zTime)===Pt||!t&&!this._initted&&(this.add||this._ptLookup))&&(this._ts||(this._pTime=t),Me(this,t,e)),this},e.time=function(t,e){return arguments.length?this.totalTime(Math.min(this.totalDuration(),t+Xe(this))%(this._dur+this._rDelay)||(t?this._dur:0),e):this._time},e.totalProgress=function(t,e){return arguments.length?this.totalTime(this.totalDuration()*t,e):this.totalDuration()?Math.min(1,this._tTime/this._tDur):this.ratio},e.progress=function(t,e){return arguments.length?this.totalTime(this.duration()*(!this._yoyo||1&this.iteration()?t:1-t)+Xe(this),e):this.duration()?Math.min(1,this._time/this._dur):this.ratio},e.iteration=function(t,e){var n=this.duration()+this._rDelay;return arguments.length?this.totalTime(this._time+(t-1)*n,e):this._repeat?We(this._tTime,n)+1:1},e.timeScale=function(t){if(!arguments.length)return-1e-8===this._rts?0:this._rts;if(this._rts===t)return this;var e=this.parent&&this._ts?Fe(this.parent._time,this):this._tTime;return this._rts=+t||0,this._ts=this._ps||-1e-8===t?0:this._rts,this.totalTime(nn(-this._delay,this._tDur,e),!0),Ne(this),Be(this)},e.paused=function(t){return arguments.length?(this._ps!==t&&(this._ps=t,t?(this._pTime=this._tTime||Math.max(-this._delay,this.rawTime()),this._ts=this._act=0):(Dn(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,1===this.progress()&&Math.abs(this._zTime)!==Pt&&(this._tTime-=Pt)))),this):this._ps},e.startTime=function(t){if(arguments.length){this._start=t;var e=this.parent||this._dp;return e&&(e._sort||!this.parent)&&qe(e,this,t-this._delay),this}return this._start},e.endTime=function(t){return this._start+(Vt(t)?this.totalDuration():this.duration())/Math.abs(this._ts||1)},e.rawTime=function(t){var e=this.parent||this._dp;return e?t&&(!this._ts||this._repeat&&this._time&&this.totalProgress()<1)?this._tTime%(this._dur+this._rDelay):this._ts?Fe(e.rawTime(t),this):this._tTime:this._tTime},e.globalTime=function(t){for(var e=this,n=arguments.length?t:e.rawTime();e;)n=e._start+n/(e._ts||1),e=e._dp;return n},e.repeat=function(t){return arguments.length?(this._repeat=t===1/0?-2:t,Qe(this)):-2===this._repeat?1/0:this._repeat},e.repeatDelay=function(t){if(arguments.length){var e=this._time;return this._rDelay=t,Qe(this),e?this.time(e):this}return this._rDelay},e.yoyo=function(t){return arguments.length?(this._yoyo=t,this):this._yoyo},e.seek=function(t,e){return this.totalTime(Je(this,t),Vt(e))},e.restart=function(t,e){return this.play().totalTime(t?-this._delay:0,Vt(e))},e.play=function(t,e){return null!=t&&this.seek(t,e),this.reversed(!1).paused(!1)},e.reverse=function(t,e){return null!=t&&this.seek(t||this.totalDuration(),e),this.reversed(!0).paused(!1)},e.pause=function(t,e){return null!=t&&this.seek(t,e),this.paused(!0)},e.resume=function(){return this.paused(!1)},e.reversed=function(t){return arguments.length?(!!t!==this.reversed()&&this.timeScale(-this._rts||(t?-1e-8:0)),this):this._rts<0},e.invalidate=function(){return this._initted=this._act=0,this._zTime=-1e-8,this},e.isActive=function(){var t,e=this.parent||this._dp,n=this._start;return!(e&&!(this._ts&&this._initted&&e.isActive()&&(t=e.rawTime(!0))>=n&&t
1?(e?(i[t]=e,n&&(i[t+"Params"]=n),"onUpdate"===t&&(this._onUpdate=e)):delete i[t],this):i[t]},e.then=function(t){var e=this;return new Promise((function(n){var i=Xt(t)?t:Ee,r=function(){var t=e.then;e.then=null,Xt(i)&&(i=i(e))&&(i.then||i===e)&&(e.then=t),n(i),e.then=t};e._initted&&1===e.totalProgress()&&e._ts>=0||!e._tTime&&e._ts<0?r():e._prom=r}))},e.kill=function(){_n(this)},t}();ke(Vn.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:-1e-8,_prom:0,_ps:!1,_rts:1});var jn=function(t){function e(e,n){var i;return void 0===e&&(e={}),(i=t.call(this,e)||this).labels={},i.smoothChildTiming=!!e.smoothChildTiming,i.autoRemoveChildren=!!e.autoRemoveChildren,i._sort=Vt(e.sortChildren),et&&qe(e.parent||et,Z(i),n),e.reversed&&i.reverse(),e.paused&&i.paused(!0),e.scrollTrigger&&He(Z(i),e.scrollTrigger),i}J(e,t);var n=e.prototype;return n.to=function(t,e,n){return tn(0,arguments,this),this},n.from=function(t,e,n){return tn(1,arguments,this),this},n.fromTo=function(t,e,n,i){return tn(2,arguments,this),this},n.set=function(t,e,n){return e.duration=0,e.parent=this,Ae(e).repeatDelay||(e.repeat=0),e.immediateRender=!!e.immediateRender,new ei(t,e,Je(this,n),1),this},n.call=function(t,e,n){return qe(this,ei.delayedCall(0,t,e),n)},n.staggerTo=function(t,e,n,i,r,s,o){return n.duration=e,n.stagger=n.stagger||i,n.onComplete=s,n.onCompleteParams=o,n.parent=this,new ei(t,n,Je(this,r)),this},n.staggerFrom=function(t,e,n,i,r,s,o){return n.runBackwards=1,Ae(n).immediateRender=Vt(n.immediateRender),this.staggerTo(t,e,n,i,r,s,o)},n.staggerFromTo=function(t,e,n,i,r,s,o,a){return i.startAt=n,Ae(i).immediateRender=Vt(i.immediateRender),this.staggerTo(t,e,i,r,s,o,a)},n.render=function(t,e,n){var i,r,s,o,a,l,u,c,h,f,d,p,g=this._time,m=this._dirty?this.totalDuration():this._tDur,v=this._dur,_=t<=0?0:be(t),y=this._zTime<0!=t<0&&(this._initted||!v);if(this!==et&&_>m&&t>=0&&(_=m),_!==this._tTime||n||y){if(g!==this._time&&v&&(_+=this._time-g,t+=this._time-g),i=_,h=this._start,l=!(c=this._ts),y&&(v||(g=this._zTime),(t||!e)&&(this._zTime=t)),this._repeat){if(d=this._yoyo,a=v+this._rDelay,this._repeat<-1&&t<0)return this.totalTime(100*a+t,e,n);if(i=be(_%a),_===m?(o=this._repeat,i=v):((o=~~(_/a))&&o===_/a&&(i=v,o--),i>v&&(i=v)),f=We(this._tTime,a),!g&&this._tTime&&f!==o&&(f=o),d&&1&o&&(i=v-i,p=1),o!==f&&!this._lock){var w=d&&1&f,b=w===(d&&1&o);if(o
e)for(i=t._first;i&&i._start<=n;){if("isPause"===i.data&&i._start>e)return i;i=i._next}else for(i=t._last;i&&i._start>=n;){if("isPause"===i.data&&i._start
=g&&t>=0)for(r=this._first;r;){if(s=r._next,(r._act||i>=r._start)&&r._ts&&u!==r){if(r.parent!==this)return this.render(t,e,n);if(r.render(r._ts>0?(i-r._start)*r._ts:(r._dirty?r.totalDuration():r._tDur)+(i-r._start)*r._ts,e,n),i!==this._time||!this._ts&&!l){u=0,s&&(_+=this._zTime=-1e-8);break}}r=s}else{r=this._last;for(var x=t<0?t:i;r;){if(s=r._prev,(r._act||x<=r._end)&&r._ts&&u!==r){if(r.parent!==this)return this.render(t,e,n);if(r.render(r._ts>0?(x-r._start)*r._ts:(r._dirty?r.totalDuration():r._tDur)+(x-r._start)*r._ts,e,n),i!==this._time||!this._ts&&!l){u=0,s&&(_+=this._zTime=x?-1e-8:Pt);break}}r=s}}if(u&&!e&&(this.pause(),u.render(i>=g?0:-1e-8)._zTime=i>=g?1:-1,this._ts))return this._start=h,Ne(this),this.render(t,e,n);this._onUpdate&&!e&&vn(this,"onUpdate",!0),(_===m&&this._tTime>=this.totalDuration()||!_&&g)&&(h!==this._start&&Math.abs(c)===Math.abs(this._ts)||this._lock||((t||!v)&&(_===m&&this._ts>0||!_&&this._ts<0)&&Re(this,1),e||t<0&&!g||!_&&!g&&m||(vn(this,_===m&&t>=0?"onComplete":"onReverseComplete",!0),this._prom&&!(_
0)&&this._prom())))}return this},n.add=function(t,e){var n=this;if(Wt(e)||(e=Je(this,e,t)),!(t instanceof Vn)){if($t(t))return t.forEach((function(t){return n.add(t,e)})),this;if(Yt(t))return this.addLabel(t,e);if(!Xt(t))return this;t=ei.delayedCall(0,t)}return this!==t?qe(this,t,e):this},n.getChildren=function(t,e,n,i){void 0===t&&(t=!0),void 0===e&&(e=!0),void 0===n&&(n=!0),void 0===i&&(i=-1e8);for(var r=[],s=this._first;s;)s._start>=i&&(s instanceof ei?e&&r.push(s):(n&&r.push(s),t&&r.push.apply(r,s.getChildren(!0,e,n)))),s=s._next;return r},n.getById=function(t){for(var e=this.getChildren(1,1,1),n=e.length;n--;)if(e[n].vars.id===t)return e[n]},n.remove=function(t){return Yt(t)?this.removeLabel(t):Xt(t)?this.killTweensOf(t):(Le(this,t),t===this._recent&&(this._recent=this._last),ze(this))},n.totalTime=function(e,n){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=be(Cn.time-(this._ts>0?e/this._ts:(this.totalDuration()-e)/-this._ts))),t.prototype.totalTime.call(this,e,n),this._forcing=0,this):this._tTime},n.addLabel=function(t,e){return this.labels[t]=Je(this,e),this},n.removeLabel=function(t){return delete this.labels[t],this},n.addPause=function(t,e,n){var i=ei.delayedCall(0,e||ae,n);return i.data="isPause",this._hasPause=1,qe(this,i,Je(this,t))},n.removePause=function(t){var e=this._first;for(t=Je(this,t);e;)e._start===t&&"isPause"===e.data&&Re(e),e=e._next},n.killTweensOf=function(t,e,n){for(var i=this.getTweensOf(t,n),r=i.length;r--;)qn!==i[r]&&i[r].kill(t,e);return this},n.getTweensOf=function(t,e){for(var n,i=[],r=an(t),s=this._first,o=Wt(e);s;)s instanceof ei?Te(s._targets,r)&&(o?(!qn||s._initted&&s._ts)&&s.globalTime(0)<=e&&s.globalTime(s.totalDuration())>e:!e||s.isActive())&&i.push(s):(n=s.getTweensOf(r,e)).length&&i.push.apply(i,n),s=s._next;return i},n.tweenTo=function(t,e){e=e||{};var n,i=this,r=Je(i,t),s=e,o=s.startAt,a=s.onStart,l=s.onStartParams,u=s.immediateRender,c=ei.to(i,ke({ease:e.ease||"none",lazy:!1,immediateRender:!1,time:r,overwrite:"auto",duration:e.duration||Math.abs((r-(o&&"time"in o?o.time:i._time))/i.timeScale())||Pt,onStart:function(){if(i.pause(),!n){var t=e.duration||Math.abs((r-(o&&"time"in o?o.time:i._time))/i.timeScale());c._dur!==t&&Ke(c,t,0,1).render(c._time,!0,!0),n=1}a&&a.apply(c,l||[])}},e));return u?c.render(0):c},n.tweenFromTo=function(t,e,n){return this.tweenTo(e,ke({startAt:{time:Je(this,t)}},n))},n.recent=function(){return this._recent},n.nextLabel=function(t){return void 0===t&&(t=this._time),mn(this,Je(this,t))},n.previousLabel=function(t){return void 0===t&&(t=this._time),mn(this,Je(this,t),1)},n.currentLabel=function(t){return arguments.length?this.seek(t,!0):this.previousLabel(this._time+Pt)},n.shiftChildren=function(t,e,n){void 0===n&&(n=0);for(var i,r=this._first,s=this.labels;r;)r._start>=n&&(r._start+=t,r._end+=t),r=r._next;if(e)for(i in s)s[i]>=n&&(s[i]+=t);return ze(this)},n.invalidate=function(){var e=this._first;for(this._lock=0;e;)e.invalidate(),e=e._next;return t.prototype.invalidate.call(this)},n.clear=function(t){void 0===t&&(t=!0);for(var e,n=this._first;n;)e=n._next,this.remove(n),n=e;return this._dp&&(this._time=this._tTime=this._pTime=0),t&&(this.labels={}),ze(this)},n.totalDuration=function(t){var e,n,i,r=0,s=this,o=s._last,a=Dt;if(arguments.length)return s.timeScale((s._repeat<0?s.duration():s.totalDuration())/(s.reversed()?-t:t));if(s._dirty){for(i=s.parent;o;)e=o._prev,o._dirty&&o.totalDuration(),(n=o._start)>a&&s._sort&&o._ts&&!s._lock?(s._lock=1,qe(s,o,n-o._delay,1)._lock=0):a=n,n<0&&o._ts&&(r-=n,(!i&&!s._dp||i&&i.smoothChildTiming)&&(s._start+=n/s._ts,s._time-=n,s._tTime-=n),s.shiftChildren(-n,!1,-1/0),a=0),o._end>r&&o._ts&&(r=o._end),o=e;Ke(s,s===et&&s._time>r?s._time:r,1,1),s._dirty=0}return s._tDur},e.updateRoot=function(t){if(et._ts&&(Me(et,Fe(t,et)),ot=Cn.frame),Cn.frame>=de){de+=kt.autoSleep||120;var e=et._first;if((!e||!e._ts)&&kt.autoSleep&&Cn._listeners.length<2){for(;e&&!e._ts;)e=e._next;e||Cn.sleep()}}},e}(Vn);ke(jn.prototype,{_lock:0,_hasPause:0,_forcing:0});var qn,Hn,$n=function(t,e,n,i,r,s,o){var a,l,u,c,h,f,d,p,g=new gi(this._pt,t,e,0,1,ui,null,r),m=0,v=0;for(g.b=n,g.e=i,n+="",(d=~(i+="").indexOf("random("))&&(i=pn(i)),s&&(s(p=[n,i],t,e),n=p[0],i=p[1]),l=n.match(Qt)||[];a=Qt.exec(i);)c=a[0],h=i.substring(m,a.index),u?u=(u+1)%5:"rgba("===h.substr(-5)&&(u=1),c!==l[v++]&&(f=parseFloat(l[v-1])||0,g._pt={_next:g._pt,p:h||1===v?h:",",s:f,c:"="===c.charAt(1)?xe(f,c)-f:parseFloat(c)-f,m:u&&u<4?Math.round:0},m=Qt.lastIndex);return g.c=m
0&&!E&&(e._startAt=0),k&&n<=0)return void(n&&(e._zTime=n))}else!1===E&&(e._startAt=0);else if(O&&k)if(C)!E&&(e._startAt=0);else if(n&&(y=!1),s=ke({overwrite:!1,data:"isFromStart",lazy:y&&Vt(w),immediateRender:y,stagger:0,parent:P},i),p&&(s[c.prop]=p),Re(e._startAt=ei.set(D,s)),n<0&&e._startAt.render(-1,!0),e._zTime=n,y){if(!n)return}else t(e._startAt,Pt);for(e._pt=e._ptCache=0,w=k&&Vt(w)||w&&!k,r=0;r
")}));else{for(c in l={},w)"ease"===c||"easeEach"===c||Qn(c,w[c],l,w.easeEach);for(c in l)for(S=l[c].sort((function(t,e){return t.t-e.t})),C=0,a=0;a
d-Pt&&t>=0?d:t
p&&(i=p)),(l=this._yoyo&&1&s)&&(h=this._yEase,i=p-i),a=We(this._tTime,o),i===f&&!n&&this._initted)return this._tTime=g,this;s!==a&&(c&&this._yEase&&zn(c,l),!this.vars.repeatRefresh||l||this._lock||(this._lock=n=1,this.render(be(o*s),!0).invalidate()._lock=0))}if(!this._initted){if($e(this,t<0?t:i,n,e))return this._tTime=0,this;if(f!==this._time)return this;if(p!==this._dur)return this.render(t,e,n)}if(this._tTime=g,this._time=i,!this._act&&this._ts&&(this._act=1,this._lazy=0),this.ratio=u=(h||this._ease)(i/p),this._from&&(this.ratio=u=1-u),i&&!f&&!e&&(vn(this,"onStart"),this._tTime!==g))return this;for(r=this._pt;r;)r.r(u,r.d),r=r._next;c&&c.render(t<0?t:!i&&l?-1e-8:c._dur*c._ease(i/this._dur),e,n)||this._startAt&&(this._zTime=t),this._onUpdate&&!e&&(t<0&&this._startAt&&this._startAt.render(t,!0,n),vn(this,"onUpdate")),this._repeat&&s!==a&&this.vars.onRepeat&&!e&&this.parent&&vn(this,"onRepeat"),g!==this._tDur&&g||this._tTime!==g||(t<0&&this._startAt&&!this._onUpdate&&this._startAt.render(t,!0,!0),(t||!p)&&(g===this._tDur&&this._ts>0||!g&&this._ts<0)&&Re(this,1),e||t<0&&!f||!g&&!f||(vn(this,g===d?"onComplete":"onReverseComplete",!0),this._prom&&!(g
0)&&this._prom()))}}else!function(t,e,n,i){var r,s,o,a=t.ratio,l=e<0||!e&&(!t._start&&Ue(t)&&(t._initted||!Ge(t))||(t._ts<0||t._dp._ts<0)&&!Ge(t))?0:1,u=t._rDelay,c=0;if(u&&t._repeat&&(c=nn(0,t._tDur,e),s=We(c,u),t._yoyo&&1&s&&(l=1-l),s!==We(t._tTime,u)&&(a=1-l,t.vars.repeatRefresh&&t._initted&&t.invalidate())),l!==a||i||t._zTime===Pt||!e&&t._zTime){if(!t._initted&&$e(t,e,i,n))return;for(o=t._zTime,t._zTime=e||(n?Pt:0),n||(n=e&&!o),t.ratio=l,t._from&&(l=1-l),t._time=0,t._tTime=c,r=t._pt;r;)r.r(l,r.d),r=r._next;t._startAt&&e<0&&t._startAt.render(e,!0,!0),t._onUpdate&&!n&&vn(t,"onUpdate"),c&&t._repeat&&!n&&t.parent&&vn(t,"onRepeat"),(e>=t._tDur||e<0)&&t.ratio===l&&(l&&Re(t,1),n||(vn(t,l?"onComplete":"onReverseComplete",!0),t._prom&&t._prom()))}else t._zTime||(t._zTime=e)}(this,t,e,n);return this},n.targets=function(){return this._targets},n.invalidate=function(){return this._pt=this._op=this._startAt=this._onUpdate=this._lazy=this.ratio=0,this._ptLookup=[],this.timeline&&this.timeline.invalidate(),t.prototype.invalidate.call(this)},n.resetTo=function(t,e,n,i){lt||Cn.wake(),this._ts||this.play();var r=Math.min(this._dur,(this._dp._time-this._start)*this._ts);return this._initted||Kn(this,r),function(t,e,n,i,r,s,o){var a,l,u,c=(t._pt&&t._ptCache||(t._ptCache={}))[e];if(!c)for(c=t._ptCache[e]=[],l=t._ptLookup,u=t._targets.length;u--;){if((a=l[u][e])&&a.d&&a.d._pt)for(a=a.d._pt;a&&a.p!==e;)a=a._next;if(!a)return Hn=1,t.vars[e]="+=0",Kn(t,o),Hn=0,1;c.push(a)}for(u=c.length;u--;)(a=c[u]).s=!i&&0!==i||r?a.s+(i||0)+s*a.c:i,a.c=n-a.s,a.e&&(a.e=we(n)+rn(a.e)),a.b&&(a.b=a.s+rn(a.b))}(this,t,e,n,i,this._ease(r/this._dur),r)?this.resetTo(t,e,n,i):(Ve(this,0),this.parent||Ie(this._dp,this,"_first","_last",this._dp._sort?"_start":0),this.render(0))},n.kill=function(t,e){if(void 0===e&&(e="all"),!(t||e&&"all"!==e))return this._lazy=this._pt=0,this.parent?_n(this):this;if(this.timeline){var n=this.timeline.totalDuration();return this.timeline.killTweensOf(t,e,qn&&!0!==qn.vars.overwrite)._first||_n(this),this.parent&&n!==this.timeline.totalDuration()&&Ke(this,this._dur*this.timeline._tDur/n,0,1),this}var i,r,s,o,a,l,u,c=this._targets,h=t?an(t):c,f=this._ptLookup,d=this._pt;if((!e||"all"===e)&&function(t,e){for(var n=t.length,i=n===e.length;i&&n--&&t[n]===e[n];);return n<0}(c,h))return"all"===e&&(this._pt=0),_n(this);for(i=this._op=this._op||[],"all"!==e&&(Yt(e)&&(a={},ye(e,(function(t){return a[t]=1})),e=a),e=function(t,e){var n,i,r,s,o=t[0]?ve(t[0]).harness:0,a=o&&o.aliases;if(!a)return e;for(i in n=Ce({},e),a)if(i in n)for(r=(s=a[i].split(",")).length;r--;)n[s[r]]=n[i];return n}(c,e)),u=c.length;u--;)if(~h.indexOf(c[u]))for(a in r=f[u],"all"===e?(i[u]=e,o=r,s={}):(s=i[u]=i[u]||{},o=e),o)(l=r&&r[a])&&("kill"in l.d&&!0!==l.d.kill(a)||Le(this,l,"_pt"),delete r[a]),"all"!==s&&(s[a]=1);return this._initted&&!this._pt&&d&&_n(this),this},e.to=function(t,n){return new e(t,n,arguments[2])},e.from=function(t,e){return tn(1,arguments)},e.delayedCall=function(t,n,i,r){return new e(n,0,{immediateRender:!1,lazy:!1,overwrite:!1,delay:t,onComplete:n,onReverseComplete:n,onCompleteParams:i,onReverseCompleteParams:i,callbackScope:r})},e.fromTo=function(t,e,n){return tn(2,arguments)},e.set=function(t,n){return n.duration=0,n.repeatDelay||(n.repeat=0),new e(t,n)},e.killTweensOf=function(t,e,n){return et.killTweensOf(t,e,n)},e}(Vn);ke(ei.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0}),ye("staggerTo,staggerFrom,staggerFromTo",(function(t){ei[t]=function(){var e=new jn,n=sn.call(arguments,0);return n.splice("staggerFromTo"===t?5:4,0,0),e[t].apply(e,n)}}));var ni=function(t,e,n){return t[e]=n},ii=function(t,e,n){return t[e](n)},ri=function(t,e,n,i){return t[e](i.fp,n)},si=function(t,e,n){return t.setAttribute(e,n)},oi=function(t,e){return Xt(t[e])?ii:Ft(t[e])&&t.setAttribute?si:ni},ai=function(t,e){return e.set(e.t,e.p,Math.round(1e6*(e.s+e.c*t))/1e6,e)},li=function(t,e){return e.set(e.t,e.p,!!(e.s+e.c*t),e)},ui=function(t,e){var n=e._pt,i="";if(!t&&e.b)i=e.b;else if(1===t&&e.e)i=e.e;else{for(;n;)i=n.p+(n.m?n.m(n.s+n.c*t):Math.round(1e4*(n.s+n.c*t))/1e4)+i,n=n._next;i+=e.c}e.set(e.t,e.p,i,e)},ci=function(t,e){for(var n=e._pt;n;)n.r(t,n.d),n=n._next},hi=function(t,e,n,i){for(var r,s=this._pt;s;)r=s._next,s.p===i&&s.modifier(t,e,n),s=r},fi=function(t){for(var e,n,i=this._pt;i;)n=i._next,i.p===t&&!i.op||i.op===t?Le(this,i,"_pt"):i.dep||(e=1),i=n;return!e},di=function(t,e,n,i){i.mSet(t,e,i.m.call(i.tween,n,i.mt),i)},pi=function(t){for(var e,n,i,r,s=t._pt;s;){for(e=s._next,n=i;n&&n.pr>s.pr;)n=n._next;(s._prev=n?n._prev:r)?s._prev._next=s:i=s,(s._next=n)?n._prev=s:r=s,s=e}t._pt=i},gi=function(){function t(t,e,n,i,r,s,o,a,l){this.t=e,this.s=i,this.c=r,this.p=n,this.r=s||ai,this.d=o||this,this.set=a||ni,this.pr=l||0,this._next=t,t&&(t._prev=this)}return t.prototype.modifier=function(t,e,n){this.mSet=this.mSet||this.set,this.set=di,this.m=t,this.mt=n,this.tween=e},t}();ye(ge+"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(t){return le[t]=1})),ee.TweenMax=ee.TweenLite=ei,ee.TimelineLite=ee.TimelineMax=jn,et=new jn({sortChildren:!1,defaults:Ct,autoRemoveChildren:!0,id:"root",smoothChildTiming:!0}),kt.stringFilter=kn;var mi={registerPlugin:function(){for(var t=arguments.length,e=new Array(t),n=0;n
1){var i=t.map((function(t){return yi.quickSetter(t,e,n)})),r=i.length;return function(t){for(var e=r;e--;)i[e](t)}}t=t[0]||{};var s=he[e],o=ve(t),a=o.harness&&(o.harness.aliases||{})[e]||e,l=s?function(e){var i=new s;at._pt=0,i.init(t,n?e+n:e,at,0,[t]),i.render(1,i),at._pt&&ci(1,at)}:o.set(t,a);return s?l:function(e){return l(t,a,n?e+n:e,o,1)}},quickTo:function(t,e,n){var i,r=yi.to(t,Ce(((i={})[e]="+=0.1",i.paused=!0,i),n||{})),s=function(t,n,i){return r.resetTo(e,t,n,i)};return s.tween=r,s},isTweening:function(t){return et.getTweensOf(t,!0).length>0},defaults:function(t){return t&&t.ease&&(t.ease=Bn(t.ease,Ct.ease)),De(Ct,t||{})},config:function(t){return De(kt,t||{})},registerEffect:function(t){var e=t.name,n=t.effect,i=t.plugins,r=t.defaults,s=t.extendTimeline;(i||"").split(",").forEach((function(t){return t&&!he[t]&&!ee[t]&&se(e+" effect requires "+t+" plugin.")})),fe[e]=function(t,e,i){return n(an(t),ke(e||{},r),i)},s&&(jn.prototype[e]=function(t,n,i){return this.add(fe[e](t,Nt(n)?n:(i=n)&&{},this),i)})},registerEase:function(t,e){Pn[t]=Bn(e)},parseEase:function(t,e){return arguments.length?Bn(t,e):Pn},getById:function(t){return et.getById(t)},exportRoot:function(t,e){void 0===t&&(t={});var n,i,r=new jn(t);for(r.smoothChildTiming=Vt(t.smoothChildTiming),et.remove(r),r._dp=0,r._time=r._tTime=et._time,n=et._first;n;)i=n._next,!e&&!n._dur&&n instanceof ei&&n.vars.onComplete===n._targets[0]||qe(r,n,n._start-n._delay),n=i;return qe(et,r,0),r},utils:{wrap:function t(e,n,i){var r=n-e;return $t(e)?dn(e,t(0,e.length),n):en(i,(function(t){return(r+(t-e)%r)%r+e}))},wrapYoyo:function t(e,n,i){var r=n-e,s=2*r;return $t(e)?dn(e,t(0,e.length-1),n):en(i,(function(t){return e+((t=(s+(t-e)%s)%s||0)>r?s-t:t)}))},distribute:un,random:fn,snap:hn,normalize:function(t,e,n){return gn(t,e,0,1,n)},getUnit:rn,clamp:function(t,e,n){return en(n,(function(n){return nn(t,e,n)}))},splitColor:Tn,toArray:an,selector:function(t){return t=an(t)[0]||se("Invalid scope")||{},function(e){var n=t.current||t.nativeElement||t;return an(e,n.querySelectorAll?n:n===t?se("Invalid scope")||rt.createElement("div"):t)}},mapRange:gn,pipe:function(){for(var t=arguments.length,e=new Array(t),n=0;n
=0?Qi[r]:"")+t},Ji=function(){"undefined"!=typeof window&&window.document&&(wi=window,bi=wi.document,xi=bi.documentElement,Oi=Gi("div")||{style:{}},Gi("div"),$i=Zi($i),Ui=$i+"Origin",Oi.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",Si=!!Zi("perspective"),Ti=1)},tr=function t(e){var n,i=Gi("svg",this.ownerSVGElement&&this.ownerSVGElement.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),r=this.parentNode,s=this.nextSibling,o=this.style.cssText;if(xi.appendChild(i),i.appendChild(this),this.style.display="block",e)try{n=this.getBBox(),this._gsapBBox=this.getBBox,this.getBBox=t}catch(t){}else this._gsapBBox&&(n=this._gsapBBox());return r&&(s?r.insertBefore(this,s):r.appendChild(this)),xi.removeChild(i),this.style.cssText=o,n},er=function(t,e){for(var n=e.length;n--;)if(t.hasAttribute(e[n]))return t.getAttribute(e[n])},nr=function(t){var e;try{e=t.getBBox()}catch(n){e=tr.call(t,!0)}return e&&(e.width||e.height)||t.getBBox===tr||(e=tr.call(t,!0)),!e||e.width||e.x||e.y?e:{x:+er(t,["x","cx","x1"])||0,y:+er(t,["y","cy","y1"])||0,width:0,height:0}},ir=function(t){return!(!t.getCTM||t.parentNode&&!t.ownerSVGElement||!nr(t))},rr=function(t,e){if(e){var n=t.style;e in Ei&&e!==Ui&&(e=$i),n.removeProperty?("ms"!==e.substr(0,2)&&"webkit"!==e.substr(0,6)||(e="-"+e),n.removeProperty(e.replace(Pi,"-$1").toLowerCase())):n.removeAttribute(e)}},sr=function(t,e,n,i,r,s){var o=new gi(t._pt,e,n,0,1,s?Wi:Xi);return t._pt=o,o.b=i,o.e=r,t._props.push(n),o},or={deg:1,rad:1,turn:1},ar=function t(e,n,i,r){var s,o,a,l,u=parseFloat(i)||0,c=(i+"").trim().substr((u+"").length)||"px",h=Oi.style,f=Ai.test(n),d="svg"===e.tagName.toLowerCase(),p=(d?"client":"offset")+(f?"Width":"Height"),g=100,m="px"===r,v="%"===r;return r===c||!u||or[r]||or[c]?u:("px"!==c&&!m&&(u=t(e,n,i,"px")),l=e.getCTM&&ir(e),!v&&"%"!==c||!Ei[n]&&!~n.indexOf("adius")?(h[f?"width":"height"]=g+(m?c:r),o=~n.indexOf("adius")||"em"===r&&e.appendChild&&!d?e:e.parentNode,l&&(o=(e.ownerSVGElement||{}).parentNode),o&&o!==bi&&o.appendChild||(o=bi.body),(a=o._gsap)&&v&&a.width&&f&&a.time===Cn.time?we(u/a.width*g):((v||"%"===c)&&(h.position=Ki(e,"position")),o===e&&(h.position="static"),o.appendChild(Oi),s=Oi[p],o.removeChild(Oi),h.position="absolute",f&&v&&((a=ve(o)).time=Cn.time,a.width=o[p]),we(m?s*u/g:s&&u?g/s*u:0))):(s=l?e.getBBox()[f?"width":"height"]:e[p],we(v?u/s*g:u/100*s)))},lr=function(t,e,n,i){var r;return Ti||Ji(),e in Li&&"transform"!==e&&~(e=Li[e]).indexOf(",")&&(e=e.split(",")[0]),Ei[e]&&"transform"!==e?(r=yr(t,i),r="transformOrigin"!==e?r[e]:r.svg?r.origin:wr(Ki(t,Ui))+" "+r.zOrigin+"px"):(!(r=t.style[e])||"auto"===r||i||~(r+"").indexOf("calc("))&&(r=fr[e]&&fr[e](t,e,n)||Ki(t,e)||_e(t,e)||("opacity"===e?1:0)),n&&!~(r+"").trim().indexOf(" ")?ar(t,e,r,n)+n:r},ur=function(t,e,n,i){if(!n||"none"===n){var r=Zi(e,t,1),s=r&&Ki(t,r,1);s&&s!==n?(e=r,n=s):"borderColor"===e&&(n=Ki(t,"borderTopColor"))}var o,a,l,u,c,h,f,d,p,g,m,v=new gi(this._pt,t.style,e,0,1,ui),_=0,y=0;if(v.b=n,v.e=i,n+="","auto"===(i+="")&&(t.style[e]=i,i=Ki(t,e)||i,t.style[e]=n),kn(o=[n,i]),i=o[1],l=(n=o[0]).match(Kt)||[],(i.match(Kt)||[]).length){for(;a=Kt.exec(i);)f=a[0],p=i.substring(_,a.index),c?c=(c+1)%5:"rgba("!==p.substr(-5)&&"hsla("!==p.substr(-5)||(c=1),f!==(h=l[y++]||"")&&(u=parseFloat(h)||0,m=h.substr((u+"").length),"="===f.charAt(1)&&(f=xe(u,f)+m),d=parseFloat(f),g=f.substr((d+"").length),_=Kt.lastIndex-g.length,g||(g=g||kt.units[e]||m,_===i.length&&(i+=g,v.e+=g)),m!==g&&(u=ar(t,e,h,g)||0),v._pt={_next:v._pt,p:p||1===y?p:",",s:u,c:d-u,m:c&&c<4||"zIndex"===e?Math.round:0});v.c=_
-1;)n=a[r],Ei[n]&&(i=1,n="transformOrigin"===n?Ui:$i),rr(s,n);i&&(rr(s,$i),l&&(l.svg&&s.removeAttribute("transform"),yr(s,1),l.uncache=1))}},fr={clearProps:function(t,e,n,i,r){if("isFromStart"!==r.data){var s=t._pt=new gi(t._pt,e,n,0,0,hr);return s.u=i,s.pr=-10,s.tween=r,t._props.push(n),1}}},dr=[1,0,0,1,0,0],pr={},gr=function(t){return"matrix(1, 0, 0, 1, 0, 0)"===t||"none"===t||!t},mr=function(t){var e=Ki(t,$i);return gr(e)?dr:e.substr(7).match(Gt).map(we)},vr=function(t,e){var n,i,r,s,o=t._gsap||ve(t),a=t.style,l=mr(t);return o.svg&&t.getAttribute("transform")?"1,0,0,1,0,0"===(l=[(r=t.transform.baseVal.consolidate().matrix).a,r.b,r.c,r.d,r.e,r.f]).join(",")?dr:l:(l!==dr||t.offsetParent||t===xi||o.svg||(r=a.display,a.display="block",(n=t.parentNode)&&t.offsetParent||(s=1,i=t.nextSibling,xi.appendChild(t)),l=mr(t),r?a.display=r:rr(t,"display"),s&&(i?n.insertBefore(t,i):n?n.appendChild(t):xi.removeChild(t))),e&&l.length>6?[l[0],l[1],l[4],l[5],l[12],l[13]]:l)},_r=function(t,e,n,i,r,s){var o,a,l,u=t._gsap,c=r||vr(t,!0),h=u.xOrigin||0,f=u.yOrigin||0,d=u.xOffset||0,p=u.yOffset||0,g=c[0],m=c[1],v=c[2],_=c[3],y=c[4],w=c[5],b=e.split(" "),x=parseFloat(b[0])||0,T=parseFloat(b[1])||0;n?c!==dr&&(a=g*_-m*v)&&(l=x*(-m/a)+T*(g/a)-(g*w-m*y)/a,x=x*(_/a)+T*(-v/a)+(v*w-_*y)/a,T=l):(x=(o=nr(t)).x+(~b[0].indexOf("%")?x/100*o.width:x),T=o.y+(~(b[1]||b[0]).indexOf("%")?T/100*o.height:T)),i||!1!==i&&u.smooth?(y=x-h,w=T-f,u.xOffset=d+(y*g+w*v)-y,u.yOffset=p+(y*m+w*_)-w):u.xOffset=u.yOffset=0,u.xOrigin=x,u.yOrigin=T,u.smooth=!!i,u.origin=e,u.originIsAbsolute=!!n,t.style[Ui]="0px 0px",s&&(sr(s,u,"xOrigin",h,x),sr(s,u,"yOrigin",f,T),sr(s,u,"xOffset",d,u.xOffset),sr(s,u,"yOffset",p,u.yOffset)),t.setAttribute("data-svg-origin",x+" "+T)},yr=function(t,e){var n=t._gsap||new Nn(t);if("x"in n&&!e&&!n.uncache)return n;var i,r,s,o,a,l,u,c,h,f,d,p,g,m,v,_,y,w,b,x,T,O,M,S,E,k,C,D,P,A,I,L,R=t.style,z=n.scaleX<0,B="px",Y="deg",X=Ki(t,Ui)||"0";return i=r=s=l=u=c=h=f=d=0,o=a=1,n.svg=!(!t.getCTM||!ir(t)),m=vr(t,n.svg),n.svg&&(S=(!n.uncache||"0px 0px"===X)&&!e&&t.getAttribute("data-svg-origin"),_r(t,S||X,!!S||n.originIsAbsolute,!1!==n.smooth,m)),p=n.xOrigin||0,g=n.yOrigin||0,m!==dr&&(w=m[0],b=m[1],x=m[2],T=m[3],i=O=m[4],r=M=m[5],6===m.length?(o=Math.sqrt(w*w+b*b),a=Math.sqrt(T*T+x*x),l=w||b?Di(b,w)*ki:0,(h=x||T?Di(x,T)*ki+l:0)&&(a*=Math.abs(Math.cos(h*Ci))),n.svg&&(i-=p-(p*w+g*x),r-=g-(p*b+g*T))):(L=m[6],A=m[7],C=m[8],D=m[9],P=m[10],I=m[11],i=m[12],r=m[13],s=m[14],u=(v=Di(L,P))*ki,v&&(S=O*(_=Math.cos(-v))+C*(y=Math.sin(-v)),E=M*_+D*y,k=L*_+P*y,C=O*-y+C*_,D=M*-y+D*_,P=L*-y+P*_,I=A*-y+I*_,O=S,M=E,L=k),c=(v=Di(-x,P))*ki,v&&(_=Math.cos(-v),I=T*(y=Math.sin(-v))+I*_,w=S=w*_-C*y,b=E=b*_-D*y,x=k=x*_-P*y),l=(v=Di(b,w))*ki,v&&(S=w*(_=Math.cos(v))+b*(y=Math.sin(v)),E=O*_+M*y,b=b*_-w*y,M=M*_-O*y,w=S,O=E),u&&Math.abs(u)+Math.abs(l)>359.9&&(u=l=0,c=180-c),o=we(Math.sqrt(w*w+b*b+x*x)),a=we(Math.sqrt(M*M+L*L)),v=Di(O,M),h=Math.abs(v)>2e-4?v*ki:0,d=I?1/(I<0?-I:I):0),n.svg&&(S=t.getAttribute("transform"),n.forceCSS=t.setAttribute("transform","")||!gr(Ki(t,$i)),S&&t.setAttribute("transform",S))),Math.abs(h)>90&&Math.abs(h)<270&&(z?(o*=-1,h+=l<=0?180:-180,l+=l<=0?180:-180):(a*=-1,h+=h<=0?180:-180)),e=e||n.uncache,n.x=i-((n.xPercent=i&&(!e&&n.xPercent||(Math.round(t.offsetWidth/2)===Math.round(-i)?-50:0)))?t.offsetWidth*n.xPercent/100:0)+B,n.y=r-((n.yPercent=r&&(!e&&n.yPercent||(Math.round(t.offsetHeight/2)===Math.round(-r)?-50:0)))?t.offsetHeight*n.yPercent/100:0)+B,n.z=s+B,n.scaleX=we(o),n.scaleY=we(a),n.rotation=we(l)+Y,n.rotationX=we(u)+Y,n.rotationY=we(c)+Y,n.skewX=h+Y,n.skewY=f+Y,n.transformPerspective=d+B,(n.zOrigin=parseFloat(X.split(" ")[2])||0)&&(R[Ui]=wr(X)),n.xOffset=n.yOffset=0,n.force3D=kt.force3D,n.renderTransform=n.svg?Er:Si?Sr:xr,n.uncache=0,n},wr=function(t){return(t=t.split(" "))[0]+" "+t[1]},br=function(t,e,n){var i=rn(e);return we(parseFloat(e)+parseFloat(ar(t,"x",n+"px",i)))+i},xr=function(t,e){e.z="0px",e.rotationY=e.rotationX="0deg",e.force3D=0,Sr(t,e)},Tr="0deg",Or="0px",Mr=") ",Sr=function(t,e){var n=e||this,i=n.xPercent,r=n.yPercent,s=n.x,o=n.y,a=n.z,l=n.rotation,u=n.rotationY,c=n.rotationX,h=n.skewX,f=n.skewY,d=n.scaleX,p=n.scaleY,g=n.transformPerspective,m=n.force3D,v=n.target,_=n.zOrigin,y="",w="auto"===m&&t&&1!==t||!0===m;if(_&&(c!==Tr||u!==Tr)){var b,x=parseFloat(u)*Ci,T=Math.sin(x),O=Math.cos(x);x=parseFloat(c)*Ci,b=Math.cos(x),s=br(v,s,T*b*-_),o=br(v,o,-Math.sin(x)*-_),a=br(v,a,O*b*-_+_)}g!==Or&&(y+="perspective("+g+Mr),(i||r)&&(y+="translate("+i+"%, "+r+"%) "),(w||s!==Or||o!==Or||a!==Or)&&(y+=a!==Or||w?"translate3d("+s+", "+o+", "+a+") ":"translate("+s+", "+o+Mr),l!==Tr&&(y+="rotate("+l+Mr),u!==Tr&&(y+="rotateY("+u+Mr),c!==Tr&&(y+="rotateX("+c+Mr),h===Tr&&f===Tr||(y+="skew("+h+", "+f+Mr),1===d&&1===p||(y+="scale("+d+", "+p+Mr),v.style[$i]=y||"translate(0, 0)"},Er=function(t,e){var n,i,r,s,o,a=e||this,l=a.xPercent,u=a.yPercent,c=a.x,h=a.y,f=a.rotation,d=a.skewX,p=a.skewY,g=a.scaleX,m=a.scaleY,v=a.target,_=a.xOrigin,y=a.yOrigin,w=a.xOffset,b=a.yOffset,x=a.forceCSS,T=parseFloat(c),O=parseFloat(h);f=parseFloat(f),d=parseFloat(d),(p=parseFloat(p))&&(d+=p=parseFloat(p),f+=p),f||d?(f*=Ci,d*=Ci,n=Math.cos(f)*g,i=Math.sin(f)*g,r=Math.sin(f-d)*-m,s=Math.cos(f-d)*m,d&&(p*=Ci,o=Math.tan(d-p),r*=o=Math.sqrt(1+o*o),s*=o,p&&(o=Math.tan(p),n*=o=Math.sqrt(1+o*o),i*=o)),n=we(n),i=we(i),r=we(r),s=we(s)):(n=g,s=m,i=r=0),(T&&!~(c+"").indexOf("px")||O&&!~(h+"").indexOf("px"))&&(T=ar(v,"x",c,"px"),O=ar(v,"y",h,"px")),(_||y||w||b)&&(T=we(T+_-(_*n+y*r)+w),O=we(O+y-(_*i+y*s)+b)),(l||u)&&(o=v.getBBox(),T=we(T+l/100*o.width),O=we(O+u/100*o.height)),o="matrix("+n+","+i+","+r+","+s+","+T+","+O+")",v.setAttribute("transform",o),x&&(v.style[$i]=o)},kr=function(t,e,n,i,r){var s,o,a=360,l=Yt(r),u=parseFloat(r)*(l&&~r.indexOf("rad")?ki:1)-i,c=i+u+"deg";return l&&("short"===(s=r.split("_")[1])&&(u%=a)!==u%180&&(u+=u<0?a:-360),"cw"===s&&u<0?u=(u+36e9)%a-~~(u/a)*a:"ccw"===s&&u>0&&(u=(u-36e9)%a-~~(u/a)*a)),t._pt=o=new gi(t._pt,e,n,i,u,zi),o.e=c,o.u="deg",t._props.push(n),o},Cr=function(t,e){for(var n in e)t[n]=e[n];return t},Dr=function(t,e,n){var i,r,s,o,a,l,u,c=Cr({},n._gsap),h=n.style;for(r in c.svg?(s=n.getAttribute("transform"),n.setAttribute("transform",""),h[$i]=e,i=yr(n,1),rr(n,$i),n.setAttribute("transform",s)):(s=getComputedStyle(n)[$i],h[$i]=e,i=yr(n,1),h[$i]=s),Ei)(s=c[r])!==(o=i[r])&&"perspective,force3D,transformOrigin,svgOrigin".indexOf(r)<0&&(a=rn(s)!==(u=rn(o))?ar(n,r,s,u):parseFloat(s),l=parseFloat(o),t._pt=new gi(t._pt,i,r,a,l-a,Ri),t._pt.u=u||0,t._props.push(r));Cr(i,c)};ye("padding,margin,Width,Radius",(function(t,e){var n="Top",i="Right",r="Bottom",s="Left",o=(e<3?[n,i,r,s]:[n+s,n+i,r+i,r+s]).map((function(n){return e<2?t+n:"border"+n+t}));fr[e>1?"border"+t:t]=function(t,e,n,i,r){var s,a;if(arguments.length<4)return s=o.map((function(e){return lr(t,e,n)})),5===(a=s.join(" ")).split(s[0]).length?s[0]:a;s=(i+"").split(" "),a={},o.forEach((function(t,e){return a[t]=s[e]=s[e]||s[(e-1)/2|0]})),t.init(e,a,r)}}));var Pr,Ar,Ir,Lr={name:"css",register:Ji,targetTest:function(t){return t.style&&t.nodeType},init:function(t,e,n,i,r){var s,o,a,l,u,c,h,f,d,p,g,m,v,_,y,w,b,x,T,O=this._props,M=t.style,S=n.vars.startAt;for(h in Ti||Ji(),e)if("autoRound"!==h&&(o=e[h],!he[h]||!Gn(h,e,n,i,t,r)))if(u=typeof o,c=fr[h],"function"===u&&(u=typeof(o=o.call(n,i,t,r))),"string"===u&&~o.indexOf("random(")&&(o=pn(o)),c)c(this,t,h,o,n)&&(y=1);else if("--"===h.substr(0,2))s=(getComputedStyle(t).getPropertyValue(h)+"").trim(),o+="",Sn.lastIndex=0,Sn.test(s)||(f=rn(s),d=rn(o)),d?f!==d&&(s=ar(t,h,s,d)+d):f&&(o+=f),this.add(M,"setProperty",s,o,i,r,0,0,h),O.push(h);else if("undefined"!==u){if(S&&h in S?(s="function"==typeof S[h]?S[h].call(n,i,t,r):S[h],Yt(s)&&~s.indexOf("random(")&&(s=pn(s)),rn(s+"")||(s+=kt.units[h]||rn(lr(t,h))||""),"="===(s+"").charAt(1)&&(s=lr(t,h))):s=lr(t,h),l=parseFloat(s),(p="string"===u&&"="===o.charAt(1)&&o.substr(0,2))&&(o=o.substr(2)),a=parseFloat(o),h in Li&&("autoAlpha"===h&&(1===l&&"hidden"===lr(t,"visibility")&&a&&(l=0),sr(this,M,"visibility",l?"inherit":"hidden",a?"inherit":"hidden",!a)),"scale"!==h&&"transform"!==h&&~(h=Li[h]).indexOf(",")&&(h=h.split(",")[0])),g=h in Ei)if(m||((v=t._gsap).renderTransform&&!e.parseTransform||yr(t,e.parseTransform),_=!1!==e.smoothOrigin&&v.smooth,(m=this._pt=new gi(this._pt,M,$i,0,1,v.renderTransform,v,0,-1)).dep=1),"scale"===h)this._pt=new gi(this._pt,v,"scaleY",v.scaleY,(p?xe(v.scaleY,p+a):a)-v.scaleY||0),O.push("scaleY",h),h+="X";else{if("transformOrigin"===h){b=void 0,x=void 0,T=void 0,b=(w=o).split(" "),x=b[0],T=b[1]||"50%","top"!==x&&"bottom"!==x&&"left"!==T&&"right"!==T||(w=x,x=T,T=w),b[0]=cr[x]||x,b[1]=cr[T]||T,o=b.join(" "),v.svg?_r(t,o,0,_,0,this):((d=parseFloat(o.split(" ")[2])||0)!==v.zOrigin&&sr(this,v,"zOrigin",v.zOrigin,d),sr(this,M,h,wr(s),wr(o)));continue}if("svgOrigin"===h){_r(t,o,1,_,0,this);continue}if(h in pr){kr(this,v,h,l,p?xe(l,p+o):o);continue}if("smoothOrigin"===h){sr(this,v,"smooth",v.smooth,o);continue}if("force3D"===h){v[h]=o;continue}if("transform"===h){Dr(this,o,t);continue}}else h in M||(h=Zi(h)||h);if(g||(a||0===a)&&(l||0===l)&&!Ii.test(o)&&h in M)a||(a=0),(f=(s+"").substr((l+"").length))!==(d=rn(o)||(h in kt.units?kt.units[h]:f))&&(l=ar(t,h,s,d)),this._pt=new gi(this._pt,g?v:M,h,l,(p?xe(l,p+a):a)-l,g||"px"!==d&&"zIndex"!==h||!1===e.autoRound?Ri:Yi),this._pt.u=d||0,f!==d&&"%"!==d&&(this._pt.b=s,this._pt.r=Bi);else if(h in M)ur.call(this,t,h,s,p?p+o:o);else{if(!(h in t)){re(h,o);continue}this.add(t,h,s||t[h],p?p+o:o,i,r)}O.push(h)}y&&pi(this)},get:lr,aliases:Li,getSetter:function(t,e,n){var i=Li[e];return i&&i.indexOf(",")<0&&(e=i),e in Ei&&e!==Ui&&(t._gsap.x||lr(t,"x"))?n&&Mi===n?"scale"===e?ji:Vi:(Mi=n||{},"scale"===e?qi:Hi):t.style&&!Ft(t.style[e])?Fi:~e.indexOf("-")?Ni:oi(t,e)},core:{_removeProperty:rr,_getMatrix:vr}};yi.utils.checkPrefix=Zi,Ir=ye((Pr="x,y,z,scale,scaleX,scaleY,xPercent,yPercent")+","+(Ar="rotation,rotationX,rotationY,skewX,skewY")+",transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective",(function(t){Ei[t]=1})),ye(Ar,(function(t){kt.units[t]="deg",pr[t]=1})),Li[Ir[13]]=Pr+","+Ar,ye("0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY",(function(t){var e=t.split(":");Li[e[1]]=Ir[e[0]]})),ye("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",(function(t){kt.units[t]="px"})),yi.registerPlugin(Lr);var Rr=yi.registerPlugin(Lr)||yi;Rr.core.Tween;class zr{in(t=!0){return this.isVisible=!0,Rr.killTweensOf(this.SplitTypeInstance.lines),this.inTimeline=Rr.timeline({defaults:{duration:1.5,ease:"power4.inOut"}}).addLabel("start",0).set(this.SplitTypeInstance.lines,{yPercent:105},"start"),t?this.inTimeline.to(this.SplitTypeInstance.lines,{yPercent:0,stagger:.1},"start"):this.inTimeline.set(this.SplitTypeInstance.lines,{yPercent:0},"start"),this.inTimeline}out(t=!0){return this.isVisible=!1,Rr.killTweensOf(this.SplitTypeInstance.lines),this.outTimeline=Rr.timeline({defaults:{duration:1.5,ease:"power4.inOut"}}).addLabel("start",0),t?this.outTimeline.to(this.SplitTypeInstance.lines,{yPercent:-105,stagger:.02},"start"):this.outTimeline.set(this.SplitTypeInstance.lines,{yPercent:-105},"start"),this.outTimeline}initEvents(){window.addEventListener("resize",(()=>{this.SplitTypeInstance.split(),o(this.SplitTypeInstance.lines,"div","oh"),this.isVisible||Rr.set(this.SplitTypeInstance.lines,{yPercent:-105})}))}constructor(t){a(this,"DOM",{el:null}),a(this,"SplitTypeInstance",void 0),a(this,"isVisible",void 0),a(this,"inTimeline",void 0),a(this,"outTimeline",void 0),this.DOM={el:t},this.SplitTypeInstance=new Q(this.DOM.el,{types:"lines"}),o(this.SplitTypeInstance.lines,"div","oh"),this.initEvents()}}class Br{constructor(t){a(this,"DOM",{el:null,title:null,titleInner:null,metaInner:null,text:null,thumbs:null}),this.DOM.el=t,this.DOM.title=this.DOM.el.querySelector(".content__title"),this.DOM.titleInner=[...this.DOM.title.querySelectorAll(".oh__inner")],this.DOM.metaInner=this.DOM.el.querySelector(".content__meta > .oh__inner"),this.DOM.text=this.DOM.el.querySelector(".content__text"),this.multiLine=new zr(this.DOM.text),this.DOM.thumbs=[...this.DOM.el.querySelectorAll(".content__thumbs-item")]}}class Yr{constructor(t,e){a(this,"DOM",{el:null,imageWrap:null,image:null,imageInner:null,title:null,titleInner:null,description:null}),this.DOM.el=t,this.content=new Br(e),this.DOM.imageWrap=this.DOM.el.querySelector(".preview__img-wrap"),this.DOM.image=this.DOM.imageWrap.querySelector(".preview__img"),this.DOM.imageInner=this.DOM.image.querySelector(".preview__img-inner"),this.DOM.title=this.DOM.el.querySelector(".preview__title"),this.DOM.titleInner=[...this.DOM.title.querySelectorAll(".oh__inner")],this.DOM.description=this.DOM.el.querySelector(".preview__desc")}}var Xr={};function Wr(){}Wr.prototype={on:function(t,e,n){var i=this.e||(this.e={});return(i[t]||(i[t]=[])).push({fn:e,ctx:n}),this},once:function(t,e,n){var i=this;function r(){i.off(t,r),e.apply(n,arguments)}return r._=e,this.on(t,r,n)},emit:function(t){for(var e=[].slice.call(arguments,1),n=((this.e||(this.e={}))[t]||[]).slice(),i=0,r=n.length;i
1,hasPointer:!!window.navigator.msPointerEnabled,hasKeyDown:"onkeydown"in document,isFirefox:navigator.userAgent.indexOf("Firefox")>-1}),n(this,a)[a]=Object.assign({mouseMultiplier:1,touchMultiplier:2,firefoxMultiplier:15,keyStep:120,preventTouch:!1,unpreventTouchClass:"vs-touchmove-allowed",useKeyboard:!0,useTouch:!0},t),n(this,u)[u]=new r,n(this,c)[c]={y:0,x:0,deltaX:0,deltaY:0},n(this,h)[h]={x:null,y:null},n(this,f)[f]=null,void 0!==n(this,a)[a].passive&&(this.listenerOptions={passive:n(this,a)[a].passive})}var e=t.prototype;return e._notify=function(t){var e=n(this,c)[c];e.x+=e.deltaX,e.y+=e.deltaY,n(this,u)[u].emit(o,{x:e.x,y:e.y,deltaX:e.deltaX,deltaY:e.deltaY,originalEvent:t})},e._bind=function(){s.hasWheelEvent&&n(this,l)[l].addEventListener("wheel",this._onWheel,this.listenerOptions),s.hasMouseWheelEvent&&n(this,l)[l].addEventListener("mousewheel",this._onMouseWheel,this.listenerOptions),s.hasTouch&&n(this,a)[a].useTouch&&(n(this,l)[l].addEventListener("touchstart",this._onTouchStart,this.listenerOptions),n(this,l)[l].addEventListener("touchmove",this._onTouchMove,this.listenerOptions)),s.hasPointer&&s.hasTouchWin&&(n(this,f)[f]=document.body.style.msTouchAction,document.body.style.msTouchAction="none",n(this,l)[l].addEventListener("MSPointerDown",this._onTouchStart,!0),n(this,l)[l].addEventListener("MSPointerMove",this._onTouchMove,!0)),s.hasKeyDown&&n(this,a)[a].useKeyboard&&document.addEventListener("keydown",this._onKeyDown)},e._unbind=function(){s.hasWheelEvent&&n(this,l)[l].removeEventListener("wheel",this._onWheel),s.hasMouseWheelEvent&&n(this,l)[l].removeEventListener("mousewheel",this._onMouseWheel),s.hasTouch&&(n(this,l)[l].removeEventListener("touchstart",this._onTouchStart),n(this,l)[l].removeEventListener("touchmove",this._onTouchMove)),s.hasPointer&&s.hasTouchWin&&(document.body.style.msTouchAction=n(this,f)[f],n(this,l)[l].removeEventListener("MSPointerDown",this._onTouchStart,!0),n(this,l)[l].removeEventListener("MSPointerMove",this._onTouchMove,!0)),s.hasKeyDown&&n(this,a)[a].useKeyboard&&document.removeEventListener("keydown",this._onKeyDown)},e.on=function(t,e){n(this,u)[u].on(o,t,e);var i=n(this,u)[u].e;i&&i[o]&&1===i[o].length&&this._bind()},e.off=function(t,e){n(this,u)[u].off(o,t,e);var i=n(this,u)[u].e;(!i[o]||i[o].length<=0)&&this._unbind()},e.destroy=function(){n(this,u)[u].off(),this._unbind()},t}()}();var Vr=function(e){var n,i;function r(n){var i,r,s,o,a=void 0===n?{}:n,l=a.lerp,u=void 0===l?.1:l,c=a.smooth,h=void 0===c||c,f=a.direction,d=void 0===f?"vertical":f;(o=e.call(this)||this).onResize=function(t){var e=t[0];if(e){var n=e.contentRect;o.limit="horizontal"===o.direction?n.width-o.windowWidth:n.height-o.windowHeight}},o.onWindowResize=function(){o.windowHeight=window.innerHeight,o.windowWidth=window.innerWidth},o.onVirtualScroll=function(t){var e=t.deltaY,n=t.originalEvent;o.stopped?n.preventDefault():(o.smooth&&!n.ctrlKey&&n.preventDefault(),o.targetScroll-=e,o.targetScroll=Math.max(0,Math.min(o.targetScroll,o.limit)))},o.onScroll=function(t){if(!(o.stopped||o.scrolling&&o.smooth)){var e=o.scroll;o.targetScroll=o.scroll="horizontal"===o.direction?window.scrollX:window.scrollY,o.velocity=o.scroll-e,o.notify()}},o.lerp=u,o.smooth=h,o.direction=d,window.addEventListener("scroll",o.onScroll,!1),window.addEventListener("resize",o.onWindowResize,!1);var p=(null==(i=navigator)||null==(r=i.userAgentData)?void 0:r.platform)||(null==(s=navigator)?void 0:s.platform)||"unknown";return o.virtualScroll=new(t(Fr))({firefoxMultiplier:50,mouseMultiplier:p.indexOf("Win")>-1?1:.4,useKeyboard:!1,useTouch:!1,passive:!1}),o.virtualScroll.on(o.onVirtualScroll),o.onWindowResize(),o.limit="horizontal"===o.direction?document.body.offsetWidth-o.windowWidth:document.body.offsetHeight-o.windowHeight,o.resizeObserver=new ResizeObserver(o.onResize),o.resizeObserver.observe(document.body),o.targetScroll=o.scroll="horizontal"===o.direction?window.scrollX:window.scrollY,o.velocity=0,o}i=e,(n=r).prototype=Object.create(i.prototype),n.prototype.constructor=n,Nr(n,i);var s=r.prototype;return s.start=function(){this.stopped=!1},s.stop=function(){this.stopped=!0},s.destroy=function(){window.removeEventListener("scroll",this.onScroll,!1),window.removeEventListener("resize",this.onWindowResize,!1),this.virtualScroll.destroy(),this.resizeObserver.disconnect()},s.raf=function(){if(!this.stopped&&this.smooth){var t,e=this.scroll;this.scroll=(1-(t=this.lerp))*this.scroll+t*this.targetScroll,Math.round(this.scroll)===Math.round(this.targetScroll)&&(this.scroll=e=this.targetScroll),this.velocity=this.scroll-e,this.scrolling&&("horizontal"===this.direction?window.scrollTo(this.scroll,0):window.scrollTo(0,this.scroll),this.notify()),this.scrolling=this.scroll!==this.targetScroll}},s.notify=function(){this.emit("scroll",{scroll:this.scroll,limit:this.limit,velocity:this.velocity,direction:this.direction})},s.scrollTo=function(t,e){var n,i=(void 0===e?{}:e).offset,r=void 0===i?0:i;if("number"==typeof t)n=t;else if("top"===t)n=0;else if("bottom"===t)n=this.limit;else{var s;if("string"==typeof t)s=document.querySelector(t);else{if(null==t||!t.nodeType)return;s=t}if(!t)return;var o=s.getBoundingClientRect();n=("horizontal"===this.direction?o.left:o.top)+this.scroll}this.targetScroll=n+=r,this.scrolling=!0,this.smooth||(this.scroll=n,"horizontal"===this.direction?window.scrollTo(this.scroll,0):window.scrollTo(0,this.scroll))},r}(t(Xr));function jr(t,e){for(var n=0;n
a?(r=i,i=t,o=s,s=l):n?i+=t:i=r+(t-r)/(l-o)*(s-o)};return{update:u,reset:function(){r=i=n?0:i,o=s=0},getVelocity:function(t){var e=o,a=r,c=ls();return(t||0===t)&&t!==i&&u(t),s===o||c-o>l?0:(i+(n?a:-a))/((n?c:s)-e)*1e3}}},Ts=function(t,e){return e&&!t._gsapAllow&&t.preventDefault(),t.changedTouches?t.changedTouches[0]:t},Os=function(t){var e=Math.max.apply(Math,t),n=Math.min.apply(Math,t);return Math.abs(e)>=Math.abs(n)?e:n},Ms=function(){var t,e,n,i;(Jr=qr.core.globals().ScrollTrigger)&&Jr.core&&(t=Jr.core,e=t.bridge||{},n=t._scrollers,i=t._proxies,n.push.apply(n,os),i.push.apply(i,as),os=n,as=i,us=function(t,n){return e[t](n)})},Ss=function(t){return(qr=t||is())&&"undefined"!=typeof document&&document.body&&($r=window,Ur=document,Gr=Ur.documentElement,Kr=Ur.body,ts=[$r,Ur,Gr,Kr],qr.utils.clamp,Zr="onpointerenter"in Kr?"pointer":"mouse",Qr=Es.isTouch=$r.matchMedia&&$r.matchMedia("(hover: none), (pointer: coarse)").matches?1:"ontouchstart"in $r||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0?2:0,ns=Es.eventTypes=("ontouchstart"in Gr?"touchstart,touchmove,touchcancel,touchend":"onpointerdown"in Gr?"pointerdown,pointermove,pointercancel,pointerup":"mousedown,mousemove,mouseup,mouseup").split(","),setTimeout((function(){return rs=0}),500),Ms(),Hr=1),Hr};_s.op=ys,os.cache=0;var Es=function(){function t(t){this.init(t)}var e,n,i;return t.prototype.init=function(t){Hr||Ss(qr)||console.warn("Please gsap.registerPlugin(Observer)"),Jr||Ms();var e=t.tolerance,n=t.dragMinimum,i=t.type,r=t.target,s=t.lineHeight,o=t.debounce,a=t.preventDefault,l=t.onStop,u=t.onStopDelay,c=t.ignore,h=t.wheelSpeed,f=t.event,d=t.onDragStart,p=t.onDragEnd,g=t.onDrag,m=t.onPress,v=t.onRelease,_=t.onRight,y=t.onLeft,w=t.onUp,b=t.onDown,x=t.onChangeX,T=t.onChangeY,O=t.onChange,M=t.onToggleX,S=t.onToggleY,E=t.onHover,k=t.onHoverEnd,C=t.onMove,D=t.ignoreCheck,P=t.isNormalizer,A=t.onGestureStart,I=t.onGestureEnd,L=t.onWheel,R=t.onEnable,z=t.onDisable,B=t.onClick,Y=t.scrollSpeed,X=t.capture,W=t.allowClicks,F=t.lockAxis,N=t.onLockAxis;this.target=r=ws(r)||Gr,this.vars=t,c&&(c=qr.utils.toArray(c)),e=e||0,n=n||0,h=h||1,Y=Y||1,i=i||"wheel,touch,pointer",o=!1!==o,s||(s=parseFloat($r.getComputedStyle(Kr).lineHeight)||22);var V,j,q,H,$,U,G,K=this,Q=0,Z=0,J=bs(r,_s),tt=bs(r,ys),et=J(),nt=tt(),it=~i.indexOf("touch")&&!~i.indexOf("pointer")&&"pointerdown"===ns[0],rt=hs(r),st=r.ownerDocument||Ur,ot=[0,0,0],at=[0,0,0],lt=0,ut=function(){return lt=ls()},ct=function(t,e){return(K.event=t)&&c&&~c.indexOf(t.target)||e&&it&&"touch"!==t.pointerType||D&&D(t,e)},ht=function(){var t=K.deltaX=Os(ot),n=K.deltaY=Os(at),i=Math.abs(t)>=e,r=Math.abs(n)>=e;O&&(i||r)&&O(K,t,n,ot,at),i&&(_&&K.deltaX>0&&_(K),y&&K.deltaX<0&&y(K),x&&x(K),M&&K.deltaX<0!=Q<0&&M(K),Q=K.deltaX,ot[0]=ot[1]=ot[2]=0),r&&(b&&K.deltaY>0&&b(K),w&&K.deltaY<0&&w(K),T&&T(K),S&&K.deltaY<0!=Z<0&&S(K),Z=K.deltaY,at[0]=at[1]=at[2]=0),(H||q)&&(C&&C(K),N&&U&&N(K),q&&(g(K),q=!1),H=U=!1),$&&(L(K),$=!1),V=0},ft=function(t,e,n){ot[n]+=t,at[n]+=e,K._vx.update(t),K._vy.update(e),o?V||(V=requestAnimationFrame(ht)):ht()},dt=function(t,e){"y"!==G&&(ot[2]+=t,K._vx.update(t,!0)),"x"!==G&&(at[2]+=e,K._vy.update(e,!0)),F&&!G&&(K.axis=G=Math.abs(t)>Math.abs(e)?"x":"y",U=!0),o?V||(V=requestAnimationFrame(ht)):ht()},pt=function(t){if(!ct(t,1)){var e=(t=Ts(t,a)).clientX,i=t.clientY,r=e-K.x,s=i-K.y,o=K.isDragging;K.x=e,K.y=i,(o||Math.abs(K.startX-e)>=n||Math.abs(K.startY-i)>=n)&&(g&&(q=!0),o||(K.isDragging=!0),dt(r,s),o||d&&d(K))}},gt=K.onPress=function(t){ct(t,1)||(K.axis=G=null,j.pause(),K.isPressed=!0,t=Ts(t),Q=Z=0,K.startX=K.x=t.clientX,K.startY=K.y=t.clientY,K._vx.reset(),K._vy.reset(),fs(P?r:st,ns[1],pt,a,!0),K.deltaX=K.deltaY=0,m&&m(K))},mt=function(t){if(!ct(t,1)){ds(P?r:st,ns[1],pt,!0);var e=K.isDragging&&(Math.abs(K.x-K.startX)>3||Math.abs(K.y-K.startY)>3),n=Ts(t);e||(K._vx.reset(),K._vy.reset(),a&&W&&qr.delayedCall(.08,(function(){if(ls()-lt>300&&!t.defaultPrevented)if(t.target.click)t.target.click();else if(st.createEvent){var e=st.createEvent("MouseEvents");e.initMouseEvent("click",!0,!0,$r,1,n.screenX,n.screenY,n.clientX,n.clientY,!1,!1,!1,!1,0,null),t.target.dispatchEvent(e)}}))),K.isDragging=K.isGesturing=K.isPressed=!1,l&&!P&&j.restart(!0),p&&e&&p(K),v&&v(K,e)}},vt=function(t){return t.touches&&t.touches.length>1&&(K.isGesturing=!0)&&A(t,K.isDragging)},_t=function(){return K.isGesturing=!1,I(K)},yt=function(t){if(!ct(t)){var e=J(),n=tt();ft((e-et)*Y,(n-nt)*Y,1),et=e,nt=n,l&&j.restart(!0)}},wt=function(t){if(!ct(t)){t=Ts(t,a),L&&($=!0);var e=(1===t.deltaMode?s:2===t.deltaMode?$r.innerHeight:1)*h;ft(t.deltaX*e,t.deltaY*e,0),l&&!P&&j.restart(!0)}},bt=function(t){if(!ct(t)){var e=t.clientX,n=t.clientY,i=e-K.x,r=n-K.y;K.x=e,K.y=n,H=!0,(i||r)&&dt(i,r)}},xt=function(t){K.event=t,E(K)},Tt=function(t){K.event=t,k(K)},Ot=function(t){return ct(t)||Ts(t,a)&&B(K)};j=K._dc=qr.delayedCall(u||.25,(function(){K._vx.reset(),K._vy.reset(),j.pause(),l&&l(K)})).pause(),K.deltaX=K.deltaY=0,K._vx=xs(0,50,!0),K._vy=xs(0,50,!0),K.scrollX=J,K.scrollY=tt,K.isDragging=K.isGesturing=K.isPressed=!1,K.enable=function(t){return K.isEnabled||(fs(rt?st:r,"scroll",ms),i.indexOf("scroll")>=0&&fs(rt?st:r,"scroll",yt,a,X),i.indexOf("wheel")>=0&&fs(r,"wheel",wt,a,X),(i.indexOf("touch")>=0&&Qr||i.indexOf("pointer")>=0)&&(fs(r,ns[0],gt,a,X),fs(st,ns[2],mt),fs(st,ns[3],mt),W&&fs(r,"click",ut,!1,!0),B&&fs(r,"click",Ot),A&&fs(st,"gesturestart",vt),I&&fs(st,"gestureend",_t),E&&fs(r,Zr+"enter",xt),k&&fs(r,Zr+"leave",Tt),C&&fs(r,Zr+"move",bt)),K.isEnabled=!0,t&&t.type&>(t),R&&R(K)),K},K.disable=function(){K.isEnabled&&(ss.filter((function(t){return t!==K&&hs(t.target)})).length||ds(rt?st:r,"scroll",ms),K.isPressed&&(K._vx.reset(),K._vy.reset(),ds(P?r:st,ns[1],pt,!0)),ds(rt?st:r,"scroll",yt,X),ds(r,"wheel",wt,X),ds(r,ns[0],gt,X),ds(st,ns[2],mt),ds(st,ns[3],mt),ds(r,"click",ut,!0),ds(r,"click",Ot),ds(st,"gesturestart",vt),ds(st,"gestureend",_t),ds(r,Zr+"enter",xt),ds(r,Zr+"leave",Tt),ds(r,Zr+"move",bt),K.isEnabled=K.isPressed=K.isDragging=!1,z&&z(K))},K.kill=function(){K.disable();var t=ss.indexOf(K);t>=0&&ss.splice(t,1),es===K&&(es=0)},ss.push(K),P&&hs(r)&&(es=K),K.enable(f)},e=t,(n=[{key:"velocityX",get:function(){return this._vx.getVelocity()}},{key:"velocityY",get:function(){return this._vy.getVelocity()}}])&&jr(e.prototype,n),i&&jr(e,i),t}();Es.version="3.10.4",Es.create=function(t){return new Es(t)},Es.register=Ss,Es.getAll=function(){return ss.slice()},Es.getById=function(t){return ss.filter((function(e){return e.vars.id===t}))[0]},is()&&qr.registerPlugin(Es);var ks,Cs,Ds,Ps,As,Is,Ls,Rs,zs,Bs,Ys,Xs,Ws,Fs,Ns,Vs,js,qs,Hs,$s,Us,Gs,Ks,Qs,Zs,Js,to,eo,no,io,ro,so,oo,ao=1,lo=Date.now,uo=lo(),co=0,ho=0,fo=function(){return Fs=1},po=function(){return Fs=0},go=function(t){return t},mo=function(t){return Math.round(1e5*t)/1e5||0},vo=function(){return"undefined"!=typeof window},_o=function(){return ks||vo()&&(ks=window.gsap)&&ks.registerPlugin&&ks},yo=function(t){return!!~Ls.indexOf(t)},wo=function(t){return cs(t,"getBoundingClientRect")||(yo(t)?function(){return Da.width=Ds.innerWidth,Da.height=Ds.innerHeight,Da}:function(){return Vo(t)})},bo=function(t,e){var n=e.s,i=e.d2,r=e.d,s=e.a;return(s=cs(t,n="scroll"+i))?s()-wo(t)()[r]:yo(t)?(As[n]||Is[n])-(Ds["inner"+i]||As["client"+i]||Is["client"+i]):t[n]-t["offset"+i]},xo=function(t,e){for(var n=0;n
0){for(t-=r,s=0;s
=t)return n[s];return n[s-1]}for(s=n.length,t+=r;s--;)if(n[s]<=t)return n[s];return n[0]}:function(n,i,r){void 0===r&&(r=.001);var s=e(n);return!i||Math.abs(s-n)
n&&(i*=e/100),t=t.substr(0,n-1)),t=i+(t in Jo?Jo[t]*e:~t.indexOf("%")?parseFloat(t)*e/100:parseFloat(t)||0)}return t},ea=function(t,e,n,i,r,s,o,a){var l=r.startColor,u=r.endColor,c=r.fontSize,h=r.indent,f=r.fontWeight,d=Ps.createElement("div"),p=yo(n)||"fixed"===cs(n,"pinType"),g=-1!==t.indexOf("scroller"),m=p?Is:n,v=-1!==t.indexOf("start"),_=v?l:u,y="border-color:"+_+";font-size:"+c+";color:"+_+";font-weight:"+f+";pointer-events:none;white-space:nowrap;font-family:sans-serif,Arial;z-index:1000;padding:4px 8px;border-width:0;border-style:solid;";return y+="position:"+((g||a)&&p?"fixed;":"absolute;"),(g||a||!p)&&(y+=(i===ys?Io:Lo)+":"+(s+parseFloat(h))+"px;"),o&&(y+="box-sizing:border-box;text-align:left;width:"+o.offsetWidth+"px;"),d._isStart=v,d.setAttribute("class","gsap-marker-"+t+(e?" marker-"+e:"")),d.style.cssText=y,d.innerText=e||0===e?t+"-"+e:t,m.children[0]?m.insertBefore(d,m.children[0]):m.appendChild(d),d._offset=d["offset"+i.op.d2],na(d,0,i,v),d},na=function(t,e,n,i){var r={display:"block"},s=n[i?"os2":"p2"],o=n[i?"p2":"os2"];t._isFlipped=i,r[n.a+"Percent"]=i?-100:0,r[n.a]=i?"1px":0,r["border"+s+Xo]=1,r["border"+o+Xo]=0,r[n.p]=e+"px",ks.set(t,r)},ia=[],ra={},sa=function(){return lo()-co>34&&Ta()},oa=function(){(!Ks||!Ks.isPressed||Ks.startX>Is.clientWidth)&&(os.cache++,no||(no=requestAnimationFrame(Ta)),co||pa("scrollStart"),co=lo())},aa=function(){Js=Ds.innerWidth,Zs=Ds.innerHeight},la=function(){os.cache++,!Ws&&!Gs&&!Ps.fullscreenElement&&!Ps.webkitFullscreenElement&&(!Qs||Js!==Ds.innerWidth||Math.abs(Ds.innerHeight-Zs)>.25*Ds.innerHeight)&&Rs.restart(!0)},ua={},ca=[],ha=[],fa=function(t){var e,n=ks.ticker.frame,i=[],r=0;if(ro!==n||ao){for(va();r
=50,i=t&&ia[0].scroll();if(xa=ba>i?-1:1,ba=i,n&&(co&&!Fs&&e-co>200&&(co=0,pa("scrollEnd")),Ys=uo,uo=e),xa<0){for(Vs=t;Vs-- >0;)ia[Vs]&&ia[Vs].update(0,n);xa=1}else for(Vs=0;Vs
20),n-=n-y}if(s){var x=t+n,T=s._isStart;d="scroll"+i.d2,na(s,x,i,T&&x>20||!T&&(c?Math.max(Is[d],As[d]):s.parentNode[d])<=x+1),c&&(l=Vo(o),c&&(s.style[i.op.p]=l[i.op.p]-i.op.m-s._offset+Wo))}return f&&g&&(d=Vo(g),f.seek(h),p=Vo(g),f._caScrollDist=d[i.p]-p[i.p],t=t/f._caScrollDist*h),f&&f.seek(m),f?t:Math.round(t)},Aa=/(webkit|moz|length|cssText|inset)/i,Ia=function(t,e,n,i){if(t.parentNode!==e){var r,s,o=t.style;if(e===Is){for(r in t._stOrig=o.cssText,s=Fo(t))+r||Aa.test(r)||!s[r]||"string"!=typeof o[r]||"0"===r||(o[r]=s[r]);o.top=n,o.left=i}else o.cssText=t._stOrig;ks.core.getCache(t).uncache=1,e.appendChild(t)}},La=function(t,e){var n,i,r=bs(t,e),s="_scroll"+e.p2,o=function e(o,a,l,u,c){var h=e.tween,f=a.onComplete,d={};return l=l||r(),c=u&&c||0,u=u||o-l,h&&h.kill(),n=Math.round(l),a[s]=o,a.modifiers=d,d[s]=function(t){return(t=mo(r()))!==n&&t!==i&&Math.abs(t-n)>2&&Math.abs(t-i)>2?(h.kill(),e.tween=0):t=l+u*h.ratio+c*h.ratio*h.ratio,i=n,n=mo(t)},a.onComplete=function(){e.tween=0,f&&f.call(h)},h=e.tween=ks.to(t,a)};return t[s]=r,r.wheelHandler=function(){return o.tween&&o.tween.kill()&&(o.tween=0)},Uo(t,"wheel",r.wheelHandler),o},Ra=function(){function t(e,n){Cs||t.register(ks)||console.warn("Please gsap.registerPlugin(ScrollTrigger)"),this.init(e,n)}return t.prototype.init=function(e,n){if(this.progress=this.start=0,this.vars&&this.kill(!0,!0),ho){var i,r,s,o,a,l,u,c,h,f,d,p,g,m,v,_,y,w,b,x,T,O,M,S,E,k,C,D,P,A,I,L,R,z,B,Y,X,W,F,N,V,j=e=No(To(e)||Mo(e)||e.nodeType?{trigger:e}:e,Zo),q=j.onUpdate,H=j.toggleClass,$=j.id,U=j.onToggle,G=j.onRefresh,K=j.scrub,Q=j.trigger,Z=j.pin,J=j.pinSpacing,tt=j.invalidateOnRefresh,et=j.anticipatePin,nt=j.onScrubComplete,it=j.onSnapComplete,rt=j.once,st=j.snap,ot=j.pinReparent,at=j.pinSpacer,lt=j.containerAnimation,ut=j.fastScrollEnd,ct=j.preventOverlaps,ht=e.horizontal||e.containerAnimation&&!1!==e.horizontal?_s:ys,ft=!K&&0!==K,dt=ws(e.scroller||Ds),pt=ks.core.getCache(dt),gt=yo(dt),mt="fixed"===("pinType"in e?e.pinType:cs(dt,"pinType")||gt&&"fixed"),vt=[e.onEnter,e.onLeave,e.onEnterBack,e.onLeaveBack],_t=ft&&e.toggleActions.split(" "),yt="markers"in e?e.markers:Zo.markers,wt=gt?0:parseFloat(Fo(dt)["border"+ht.p2+Xo])||0,bt=this,xt=e.onRefreshInit&&function(){return e.onRefreshInit(bt)},Tt=function(t,e,n){var i=n.d,r=n.d2,s=n.a;return(s=cs(t,"getBoundingClientRect"))?function(){return s()[i]}:function(){return(e?Ds["inner"+r]:t["client"+r])||0}}(dt,gt,ht),Ot=function(t,e){return!e||~as.indexOf(t)?wo(t):function(){return Da}}(dt,gt),Mt=0,St=0,Et=bs(dt,ht);if(bt.media=io,bt._dir=ht,et*=45,bt.scroller=dt,bt.scroll=lt?lt.time.bind(lt):Et,o=Et(),bt.vars=e,n=n||e.animation,"refreshPriority"in e&&($s=1,-9999===e.refreshPriority&&(oo=bt)),pt.tweenScroll=pt.tweenScroll||{top:La(dt,ys),left:La(dt,_s)},bt.tweenTo=i=pt.tweenScroll[ht.p],bt.scrubDuration=function(t){(I=Mo(t)&&t)?A?A.duration(t):A=ks.to(n,{ease:"expo",totalProgress:"+=0.001",duration:I,paused:!0,onComplete:function(){return nt&&nt(bt)}}):(A&&A.progress(1).kill(),A=0)},n&&(n.vars.lazy=!1,n._initted||!1!==n.vars.immediateRender&&!1!==e.immediateRender&&n.render(0,!0,!0),bt.animation=n.pause(),n.scrollTrigger=bt,bt.scrubDuration(K),D=0,$||($=n.vars.id)),ia.push(bt),st&&(So(st)&&!st.push||(st={snapTo:st}),"scrollBehavior"in Is.style&&ks.set(gt?[Is,As]:dt,{scrollBehavior:"auto"}),s=Oo(st.snapTo)?st.snapTo:"labels"===st.snapTo?function(t){return function(e){return ks.utils.snap(qo(t),e)}}(n):"labelsDirectional"===st.snapTo?(F=n,function(t,e){return Ho(qo(F))(t,e.direction)}):!1!==st.directional?function(t,e){return Ho(st.snapTo)(t,lo()-St<500?0:e.direction)}:ks.utils.snap(st.snapTo),L=st.duration||{min:.1,max:2},L=So(L)?Bs(L.min,L.max):Bs(L,L),R=ks.delayedCall(st.delay||I/2||.1,(function(){var t=Et(),e=lo()-St<500,r=i.tween;if(!(e||Math.abs(bt.getVelocity())<10)||r||Fs||Mt===t)bt.isActive&&Mt!==t&&R.restart(!0);else{var o=(t-l)/g,a=n&&!ft?n.totalProgress():o,c=e?0:(a-P)/(lo()-Ys)*1e3||0,h=ks.utils.clamp(-o,1-o,Po(c/2)*c/.185),f=o+(!1===st.inertia?0:h),d=Bs(0,1,s(f,bt)),p=Math.round(l+d*g),m=st,v=m.onStart,_=m.onInterrupt,y=m.onComplete;if(t<=u&&t>=l&&p!==t){if(r&&!r._initted&&r.data<=Po(p-t))return;!1===st.inertia&&(h=d-o),i(p,{duration:L(Po(.185*Math.max(Po(f-a),Po(d-a))/c/.05||0)),ease:st.ease||"power3",data:Po(p-t),onInterrupt:function(){return R.restart(!0)&&_&&_(bt)},onComplete:function(){bt.update(),Mt=Et(),D=P=n&&!ft?n.totalProgress():bt.progress,it&&it(bt),y&&y(bt)}},t,h*g,p-t-h*g),v&&v(bt,i.tween)}}})).pause()),$&&(ra[$]=bt),(W=(Q=bt.trigger=ws(Q||Z))&&Q._gsap&&Q._gsap.stRevert)&&(W=W(bt)),Z=!0===Z?Q:ws(Z),To(H)&&(H={targets:Q,className:H}),Z&&(!1===J||J===Yo||(J=!(!J&&"flex"===Fo(Z.parentNode).display)&&Bo),bt.pin=Z,!1!==e.force3D&&ks.set(Z,{force3D:!0}),(r=ks.core.getCache(Z)).spacer?m=r.pinState:(at&&((at=ws(at))&&!at.nodeType&&(at=at.current||at.nativeElement),r.spacerIsNative=!!at,at&&(r.spacerState=Ca(at))),r.spacer=y=at||Ps.createElement("div"),y.classList.add("pin-spacer"),$&&y.classList.add("pin-spacer-"+$),r.pinState=m=Ca(Z)),bt.spacer=y=r.spacer,C=Fo(Z),M=C[J+ht.os2],b=ks.getProperty(Z),x=ks.quickSetter(Z,ht.a,Wo),Sa(Z,y,C),_=Ca(Z)),yt){p=So(yt)?No(yt,Qo):Qo,f=ea("scroller-start",$,dt,ht,p,0),d=ea("scroller-end",$,dt,ht,p,0,f),w=f["offset"+ht.op.d2];var kt=ws(cs(dt,"content")||dt);c=this.markerStart=ea("start",$,kt,ht,p,w,0,lt),h=this.markerEnd=ea("end",$,kt,ht,p,w,0,lt),lt&&(X=ks.quickSetter([c,h],ht.a,Wo)),mt||as.length&&!0===cs(dt,"fixedMarkers")||(V=Fo(N=gt?Is:dt).position,N.style.position="absolute"===V||"fixed"===V?V:"relative",ks.set([f,d],{force3D:!0}),E=ks.quickSetter(f,ht.a,Wo),k=ks.quickSetter(d,ht.a,Wo))}if(lt){var Ct=lt.vars.onUpdate,Dt=lt.vars.onUpdateParams;lt.eventCallback("onUpdate",(function(){bt.update(0,0,1),Ct&&Ct.apply(Dt||[])}))}bt.previous=function(){return ia[ia.indexOf(bt)-1]},bt.next=function(){return ia[ia.indexOf(bt)+1]},bt.revert=function(t){var e=!1!==t||!bt.enabled,i=Ws;e!==bt.isReverted&&(e&&(bt.scroll.rec||!Ws||!so||(bt.scroll.rec=Et()),B=Math.max(Et(),bt.scroll.rec||0),z=bt.progress,Y=n&&n.progress()),c&&[c,h,f,d].forEach((function(t){return t.style.display=e?"none":"block"})),e&&(Ws=1),bt.update(e),Ws=i,Z&&(e?function(t,e,n){ka(n);var i=t._gsap;if(i.spacerIsNative)ka(i.spacerState);else if(t.parentNode===e){var r=e.parentNode;r&&(r.insertBefore(t,e),r.removeChild(e))}}(Z,y,m):(!ot||!bt.isActive)&&Sa(Z,y,Fo(Z),S)),bt.isReverted=e)},bt.refresh=function(r,s){if(!Ws&&bt.enabled||s)if(Z&&r&&co)Uo(t,"scrollEnd",da);else{!so&&xt&&xt(bt),Ws=1,St=lo(),i.tween&&(i.tween.kill(),i.tween=0),A&&A.pause(),tt&&n&&n.time(-.01,!0).invalidate(),bt.isReverted||bt.revert();for(var p,w,x,M,E,k,C,D,P,I,L=Tt(),X=Ot(),W=lt?lt.duration():bo(dt,ht),F=0,N=0,V=e.end,j=e.endTrigger||Q,q=e.start||(0!==e.start&&Q?Z?"0 0":"0 100%":0),H=bt.pinnedContainer=e.pinnedContainer&&ws(e.pinnedContainer),$=Q&&Math.max(0,ia.indexOf(bt))||0,U=$;U--;)(k=ia[U]).end||k.refresh(0,1)||(Ws=1),!(C=k.pin)||C!==Q&&C!==Z||k.isReverted||(I||(I=[]),I.unshift(k),k.revert()),k!==ia[U]&&($--,U--);for(Oo(q)&&(q=q(bt)),l=Pa(q,Q,L,ht,Et(),c,f,bt,X,wt,mt,W,lt)||(Z?-.001:0),Oo(V)&&(V=V(bt)),To(V)&&!V.indexOf("+=")&&(~V.indexOf(" ")?V=(To(q)?q.split(" ")[0]:"")+V:(F=ta(V.substr(2),L),V=To(q)?q:l+F,j=Q)),u=Math.max(l,Pa(V||(j?"100% 0":W),j,L,ht,Et()+F,h,d,bt,X,wt,mt,W,lt))||-.001,g=u-l||(l-=.01)&&.001,F=0,U=$;U--;)(C=(k=ia[U]).pin)&&k.start-k._pinPush
0&&(p=k.end-k.start,C!==Q&&C!==H||Mo(q)||(F+=p*(1-k.progress)),C===Z&&(N+=p));if(l+=F,u+=F,bt._pinPush=N,c&&F&&((p={})[ht.a]="+="+F,H&&(p[ht.p]="-="+Et()),ks.set([c,h],p)),Z)p=Fo(Z),M=ht===ys,x=Et(),T=parseFloat(b(ht.a))+N,!W&&u>1&&((gt?Is:dt).style["overflow-"+ht.a]="scroll"),Sa(Z,y,p),_=Ca(Z),w=Vo(Z,!0),D=mt&&bs(dt,M?_s:ys)(),J&&((S=[J+ht.os2,g+N+Wo]).t=y,(U=J===Bo?jo(Z,ht)+g+N:0)&&S.push(ht.d,U+Wo),ka(S),mt&&Et(B)),mt&&((E={top:w.top+(M?x-l:D)+Wo,left:w.left+(M?D:x-l)+Wo,boxSizing:"border-box",position:"fixed"}).width=E.maxWidth=Math.ceil(w.width)+Wo,E.height=E.maxHeight=Math.ceil(w.height)+Wo,E.margin=E.marginTop=E.marginRight=E.marginBottom=E.marginLeft="0",E.padding=p.padding,E.paddingTop=p.paddingTop,E.paddingRight=p.paddingRight,E.paddingBottom=p.paddingBottom,E.paddingLeft=p.paddingLeft,v=function(t,e,n){for(var i,r=[],s=t.length,o=n?8:0;o
0?ia.slice(0,e).reverse():ia.slice(e+1);return(To(t)?n.filter((function(e){return e.vars.preventOverlaps===t})):n).filter((function(t){return bt.direction>0?t.end<=l:t.start>=u}))},bt.update=function(t,e,r){if(!lt||r||t){var s,c,h,d,p,m,w,b=bt.scroll(),S=t?0:(b-l)/g,C=S<0?0:S>1?1:S||0,I=bt.progress;if(e&&(a=o,o=lt?Et():b,st&&(P=D,D=n&&!ft?n.totalProgress():C)),et&&!C&&Z&&!Ws&&!ao&&co&&l
I?1:-1,bt.progress=C,d&&!Ws&&(c=C&&!I?0:1===C?1:1===I?2:3,ft&&(h=!p&&"none"!==_t[c+1]&&_t[c+1]||_t[c],w=n&&("complete"===h||"reset"===h||h in n))),ct&&(p||w)&&(w||K||!n)&&(Oo(ct)?ct(bt):bt.getTrailing(ct).forEach((function(t){return t.endAnimation()}))),ft||(!A||Ws||ao?n&&n.totalProgress(C,!!Ws):((lt||oo&&oo!==bt)&&A.render(A._dp._time-A._start),A.resetTo?A.resetTo("totalProgress",C,n._tTime/n._tDur):(A.vars.totalProgress=C,A.invalidate().restart()))),Z)if(t&&J&&(y.style[J+ht.os2]=M),mt){if(d){if(m=!t&&C>I&&u+1>b&&b+1>=bo(dt,ht),ot)if(t||!s&&!m)Ia(Z,y);else{var L=Vo(Z,!0),z=b-l;Ia(Z,Is,L.top+(ht===ys?z:0)+Wo,L.left+(ht===ys?0:z)+Wo)}ka(s||m?v:_),O!==g&&C<1&&s||x(T+(1!==C||m?0:O))}}else x(mo(T+O*C));st&&!i.tween&&!Ws&&!ao&&R.restart(!0),H&&(p||rt&&C&&(C<1||!eo))&&zs(H.targets).forEach((function(t){return t.classList[s||rt?"add":"remove"](H.className)})),q&&!ft&&!t&&q(bt),d&&!Ws?(ft&&(w&&("complete"===h?n.pause().totalProgress(1):"reset"===h?n.restart(!0).pause():"restart"===h?n.restart(!0):n[h]()),q&&q(bt)),!p&&eo||(U&&p&&Do(bt,U),vt[c]&&Do(bt,vt[c]),rt&&(1===C?bt.kill(!1,1):vt[c]=0),p||vt[c=1===C?1:3]&&Do(bt,vt[c])),ut&&!s&&Math.abs(bt.getVelocity())>(Mo(ut)?ut:2500)&&(Co(bt.callbackAnimation),A?A.progress(1):Co(n,!C,1))):ft&&q&&!Ws&&q(bt)}if(k){var B=lt?b/lt.duration()*(lt._caScrollDist||0):b;E(B+(f._isFlipped?1:0)),k(B)}X&&X(-b/lt.duration()*(lt._caScrollDist||0))}},bt.enable=function(e,n){bt.enabled||(bt.enabled=!0,Uo(dt,"resize",la),Uo(gt?Ps:dt,"scroll",oa),xt&&Uo(t,"refreshInit",xt),!1!==e&&(bt.progress=z=0,o=a=Mt=Et()),!1!==n&&bt.refresh())},bt.getTween=function(t){return t&&i?i.tween:A},bt.setPositions=function(t,e){Z&&(T+=t-l,O+=e-t-g),bt.start=l=t,bt.end=u=e,g=e-t,bt.update()},bt.disable=function(e,n){if(bt.enabled&&(!1!==e&&bt.revert(),bt.enabled=bt.isActive=!1,n||A&&A.pause(),B=0,r&&(r.uncache=1),xt&&Go(t,"refreshInit",xt),R&&(R.pause(),i.tween&&i.tween.kill()&&(i.tween=0)),!gt)){for(var s=ia.length;s--;)if(ia[s].scroller===dt&&ia[s]!==bt)return;Go(dt,"resize",la),Go(dt,"scroll",oa)}},bt.kill=function(t,i){bt.disable(t,i),A&&!i&&A.kill(),$&&delete ra[$];var s=ia.indexOf(bt);s>=0&&ia.splice(s,1),s===Vs&&xa>0&&Vs--,s=0,ia.forEach((function(t){return t.scroller===bt.scroller&&(s=1)})),s||(bt.scroll.rec=0),n&&(n.scrollTrigger=null,t&&n.render(-1),i||n.kill()),c&&[c,h,f,d].forEach((function(t){return t.parentNode&&t.parentNode.removeChild(t)})),oo===bt&&(oo=0),Z&&(r&&(r.uncache=1),s=0,ia.forEach((function(t){return t.pin===Z&&s++})),s||(r.spacer=0)),e.onKill&&e.onKill(bt)},bt.enable(!1,!1),W&&W(bt),n&&n.add&&!g?ks.delayedCall(.01,(function(){return l||u||bt.refresh()}))&&(g=.01)&&(l=u=0):bt.refresh()}else this.update=this.refresh=this.kill=go},t.register=function(e){return Cs||(ks=e||_o(),vo()&&window.document&&t.enable(),Cs=ho),Cs},t.defaults=function(t){if(t)for(var e in t)Zo[e]=t[e];return Zo},t.disable=function(t,e){ho=0,ia.forEach((function(n){return n[e?"kill":"disable"](t)})),Go(Ds,"wheel",oa),Go(Ps,"scroll",oa),clearInterval(Xs),Go(Ps,"touchcancel",go),Go(Is,"touchstart",go),$o(Go,Ps,"pointerdown,touchstart,mousedown",fo),$o(Go,Ps,"pointerup,touchend,mouseup",po),Rs.kill(),xo(Go);for(var n=0;n
=0&&ha.splice(t,4)},t.isInViewport=function(t,e,n){var i=(To(t)?ws(t):t).getBoundingClientRect(),r=i[n?Ro:zo]*e||0;return n?i.right-r>0&&i.left+r
0&&i.top+r
=0&&ga.splice(e,5),ga.push(t,t.style.cssText,t.getBBox&&t.getAttribute("transform"),ks.core.getCache(t),io)}})):ga},Ra.revert=function(t,e){return va(!t,e)},Ra.create=function(t,e){return new Ra(t,e)},Ra.refresh=function(t){return t?la():(Cs||Ra.register())&&wa(!0)},Ra.update=Ta,Ra.clearScrollMemory=_a,Ra.maxScroll=function(t,e){return bo(t,e?_s:ys)},Ra.getScrollFunc=function(t,e){return bs(ws(t),e?_s:ys)},Ra.getById=function(t){return ra[t]},Ra.getAll=function(){return ia.filter((function(t){return"ScrollSmoother"!==t.vars.id}))},Ra.isScrolling=function(){return!!co},Ra.snapDirectional=Ho,Ra.addEventListener=function(t,e){var n=ua[t]||(ua[t]=[]);~n.indexOf(e)||n.push(e)},Ra.removeEventListener=function(t,e){var n=ua[t],i=n&&n.indexOf(e);i>=0&&n.splice(i,1)},Ra.batch=function(t,e){var n,i=[],r={},s=e.interval||.016,o=e.batchMax||1e9,a=function(t,e){var n=[],i=[],r=ks.delayedCall(s,(function(){e(n,i),n=[],i=[]})).pause();return function(t){n.length||r.restart(!0),n.push(t.trigger),i.push(t),o<=n.length&&r.progress(1)}};for(n in e)r[n]="on"===n.substr(0,2)&&Oo(e[n])&&"onRefreshInit"!==n?a(0,e[n]):e[n];return Oo(o)&&(o=o(),Uo(Ra,"refresh",(function(){return o=e.batchMax()}))),zs(t).forEach((function(t){var e={};for(n in r)e[n]=r[n];e.trigger=t,i.push(Ra.create(e))})),i};var za,Ba=function(t,e,n,i){return e>i?t(i):e<0&&t(0),n>i?(i-e)/(n-e):n<0?e/(e-n):1},Ya=function t(e,n){!0===n?e.style.removeProperty("touch-action"):e.style.touchAction=!0===n?"auto":n?"pan-"+n+(Es.isTouch?" pinch-zoom":""):"none",e===As&&t(Is,n)},Xa={auto:1,scroll:1},Wa=function(t){var e,n=t.event,i=t.target,r=t.axis,s=(n.changedTouches?n.changedTouches[0]:n).target,o=s._gsap||ks.core.getCache(s),a=lo();if(!o._isScrollT||a-o._isScrollT>2e3){for(;s&&s.scrollHeight<=s.clientHeight;)s=s.parentNode;o._isScroll=s&&!yo(s)&&s!==i&&(Xa[(e=Fo(s)).overflowY]||Xa[e.overflowX]),o._isScrollT=a}(o._isScroll||"x"===r)&&(n._gsapAllow=!0)},Fa=function(t,e,n,i){return Es.create({target:t,capture:!0,debounce:!1,lockAxis:!0,type:e,onWheel:i=i&&Wa,onPress:i,onDrag:i,onScroll:i,onEnable:function(){return n&&Uo(Ps,Es.eventTypes[0],Va,!1,!0)},onDisable:function(){return Go(Ps,Es.eventTypes[0],Va,!0)}})},Na=/(input|label|select|textarea)/i,Va=function(t){var e=Na.test(t.target.tagName);(e||za)&&(t._gsapAllow=!0,za=e)},ja=function(t){So(t)||(t={}),t.preventDefault=t.isNormalizer=t.allowClicks=!0,t.type||(t.type="wheel,touch"),t.debounce=!!t.debounce,t.id=t.id||"normalizer";var e,n,i,r,s,o,a,l,u=t,c=u.normalizeScrollX,h=u.momentum,f=u.allowNestedScroll,d=ws(t.target)||As,p=ks.core.globals().ScrollSmoother,g=to&&(t.content&&ws(t.content)||p&&p.get()&&p.get().content()),m=bs(d,ys),v=bs(d,_s),_=1,y=(Es.isTouch&&Ds.visualViewport?Ds.visualViewport.scale*Ds.visualViewport.width:Ds.outerWidth)/Ds.innerWidth,w=0,b=Oo(h)?function(){return h(e)}:function(){return h||2.8},x=Fa(d,t.type,!0,f),T=function(){return i=!1},O=go,M=go,S=function(){n=bo(d,ys),M=Bs(to?1:0,n),c&&(O=Bs(0,bo(d,_s))),r=ya},E=function(){S(),s.isActive()&&s.vars.scrollY>n&&(m()>n?s.progress(1)&&m(n):s.resetTo("scrollY",n))};return t.ignoreCheck=function(t){return to&&"touchmove"===t.type&&function(){if(i){requestAnimationFrame(T);var t=mo(e.deltaY/2),n=M(m.v-t);return g&&n!==m.v+m.offset&&(m.offset=n-m.v,g.style.transform="translateY("+-m.offset+"px)",g._gsap&&(g._gsap.y=-m.offset+"px"),m.cacheID=os.cache,Ta()),!0}g&&(g.style.transform="translateY(0px)",m.offset=m.cacheID=0,g._gsap&&(g._gsap.y="0px")),i=!0}()||_>1.05&&"touchstart"!==t.type||e.isGesturing||t.touches&&t.touches.length>1},t.onPress=function(){var t=_;_=mo((Ds.visualViewport&&Ds.visualViewport.scale||1)/y),s.pause(),t!==_&&Ya(d,_>1.01||!c&&"x"),i=!1,o=v(),a=m(),S(),r=ya},t.onRelease=t.onGestureStart=function(t,e){if(g&&(g.style.transform="translateY(0px)",m.offset=m.cacheID=0,g._gsap&&(g._gsap.y="0px")),e){os.cache++;var i,r,o=b();c&&(r=(i=v())+.05*o*-t.velocityX/.227,o*=Ba(v,i,r,bo(d,_s)),s.vars.scrollX=O(r)),r=(i=m())+.05*o*-t.velocityY/.227,o*=Ba(m,i,r,bo(d,ys)),s.vars.scrollY=M(r),s.invalidate().duration(o).play(.01),(to&&s.vars.scrollY>=n||i>=n-1)&&ks.to({},{onUpdate:E,duration:o})}else l.restart(!0)},t.onWheel=function(){s._ts&&s.pause(),lo()-w>1e3&&(r=0,w=lo())},t.onChange=function(t,e,n,i,s){ya!==r&&S(),e&&c&&v(O(i[2]===e?o+(t.startX-t.x):v()+e-i[1])),n&&m(M(s[2]===n?a+(t.startY-t.y):m()+n-s[1])),Ta()},t.onEnable=function(){Ya(d,!c&&"x"),Uo(Ds,"resize",E),x.enable()},t.onDisable=function(){Ya(d,!0),Go(Ds,"resize",E),x.kill()},(e=new Es(t)).iOS=to,to&&!m()&&m(1),l=e._dc,s=ks.to(e,{ease:"power4",paused:!0,scrollX:c?"+=0.1":"+=0",scrollY:"+=0.1",onComplete:l.vars.onComplete}),e};Ra.sort=function(t){return ia.sort(t||function(t,e){return-1e6*(t.vars.refreshPriority||0)+t.start-(e.start+-1e6*(e.vars.refreshPriority||0))})},Ra.observe=function(t){return new Es(t)},Ra.normalizeScroll=function(t){if(void 0===t)return Ks;if(!0===t&&Ks)return Ks.enable();if(!1===t)return Ks&&Ks.kill();var e=t instanceof Es?t:ja(t);return Ks&&Ks.target===e.target&&Ks.kill(),yo(e.target)&&(Ks=e),e},Ra.core={_getVelocityProp:xs,_inputObserver:Fa,_scrollers:os,_proxies:as,bridge:{ss:function(){co||pa("scrollStart"),co=lo()},ref:function(){return Ws}}},_o()&&ks.registerPlugin(Ra); /*! * matrix 3.10.4 * https://greensock.com * * Copyright 2008-2022, 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 */var qa,Ha,$a,Ua,Ga,Ka,Qa,Za,Ja,tl="transform",el=tl+"Origin",nl=function(t){var e=t.ownerDocument||t;!(tl in t.style)&&"msTransform"in t.style&&(el=(tl="msTransform")+"Origin");for(;e.parentNode&&(e=e.parentNode););if(Ha=window,Qa=new dl,e){qa=e,$a=e.documentElement,Ua=e.body,(Za=qa.createElementNS("http://www.w3.org/2000/svg","g")).style.transform="none";var n=e.createElement("div"),i=e.createElement("div");Ua.appendChild(n),n.appendChild(i),n.style.position="static",n.style[tl]="translate3d(0,0,1px)",Ja=i.offsetParent!==n,Ua.removeChild(n)}return e},il=[],rl=[],sl=function(){return Ha.pageYOffset||qa.scrollTop||$a.scrollTop||Ua.scrollTop||0},ol=function(){return Ha.pageXOffset||qa.scrollLeft||$a.scrollLeft||Ua.scrollLeft||0},al=function(t){return t.ownerSVGElement||("svg"===(t.tagName+"").toLowerCase()?t:null)},ll=function t(e){return"fixed"===Ha.getComputedStyle(e).position||((e=e.parentNode)&&1===e.nodeType?t(e):void 0)},ul=function t(e,n){if(e.parentNode&&(qa||nl(e))){var i=al(e),r=i?i.getAttribute("xmlns")||"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",s=i?n?"rect":"g":"div",o=2!==n?0:100,a=3===n?100:0,l="position:absolute;display:block;pointer-events:none;margin:0;padding:0;",u=qa.createElementNS?qa.createElementNS(r.replace(/^https/,"http"),s):qa.createElement(s);return n&&(i?(Ka||(Ka=t(e)),u.setAttribute("width",.01),u.setAttribute("height",.01),u.setAttribute("transform","translate("+o+","+a+")"),Ka.appendChild(u)):(Ga||((Ga=t(e)).style.cssText=l),u.style.cssText=l+"width:0.1px;height:0.1px;top:"+a+"px;left:"+o+"px",Ga.appendChild(u))),u}throw"Need document and parent."},cl=function(t){var e,n=t.getCTM();return n||(e=t.style[tl],t.style[tl]="none",t.appendChild(Za),n=Za.getCTM(),t.removeChild(Za),e?t.style[tl]=e:t.style.removeProperty(tl.replace(/([A-Z])/g,"-$1").toLowerCase())),n||Qa.clone()},hl=function(t,e){var n,i,r,s,o,a,l=al(t),u=t===l,c=l?il:rl,h=t.parentNode;if(t===Ha)return t;if(c.length||c.push(ul(t,1),ul(t,2),ul(t,3)),n=l?Ka:Ga,l)u?(s=-(r=cl(t)).e/r.a,o=-r.f/r.d,i=Qa):t.getBBox?(r=t.getBBox(),i=(i=t.transform?t.transform.baseVal:{}).numberOfItems?i.numberOfItems>1?function(t){for(var e=new dl,n=0;n
4&&(s=r.offsetLeft,o=r.offsetTop,r=0);if("absolute"!==(a=Ha.getComputedStyle(t)).position&&"fixed"!==a.position)for(i=t.offsetParent;h&&h!==i;)s+=h.scrollLeft||0,o+=h.scrollTop||0,h=h.parentNode;(r=n.style).top=t.offsetTop-o+"px",r.left=t.offsetLeft-s+"px",r[tl]=a[tl],r[el]=a[el],r.position="fixed"===a.position?"fixed":"absolute",t.parentNode.appendChild(n)}return n},fl=function(t,e,n,i,r,s,o){return t.a=e,t.b=n,t.c=i,t.d=r,t.e=s,t.f=o,t},dl=function(){function t(t,e,n,i,r,s){void 0===t&&(t=1),void 0===e&&(e=0),void 0===n&&(n=0),void 0===i&&(i=1),void 0===r&&(r=0),void 0===s&&(s=0),fl(this,t,e,n,i,r,s)}var e=t.prototype;return e.inverse=function(){var t=this.a,e=this.b,n=this.c,i=this.d,r=this.e,s=this.f,o=t*i-e*n||1e-10;return fl(this,i/o,-e/o,-n/o,t/o,(n*s-i*r)/o,-(t*s-e*r)/o)},e.multiply=function(t){var e=this.a,n=this.b,i=this.c,r=this.d,s=this.e,o=this.f,a=t.a,l=t.c,u=t.b,c=t.d,h=t.e,f=t.f;return fl(this,a*e+u*i,a*n+u*r,l*e+c*i,l*n+c*r,s+h*e+f*i,o+h*n+f*r)},e.clone=function(){return new t(this.a,this.b,this.c,this.d,this.e,this.f)},e.equals=function(t){var e=this.a,n=this.b,i=this.c,r=this.d,s=this.e,o=this.f;return e===t.a&&n===t.b&&i===t.c&&r===t.d&&s===t.e&&o===t.f},e.apply=function(t,e){void 0===e&&(e={});var n=t.x,i=t.y,r=this.a,s=this.b,o=this.c,a=this.d,l=this.e,u=this.f;return e.x=n*r+i*o+l||0,e.y=n*s+i*a+u||0,e},t}();function pl(t,e,n,i){if(!t||!t.parentNode||(qa||nl(t)).documentElement===t)return new dl;var r=function(t){for(var e,n;t&&t!==Ua;)(n=t._gsap)&&n.uncache&&n.get(t,"x"),n&&!n.scaleX&&!n.scaleY&&n.renderTransform&&(n.scaleX=n.scaleY=1e-4,n.renderTransform(1,n),e?e.push(n):e=[n]),t=t.parentNode;return e}(t),s=al(t)?il:rl,o=hl(t,n),a=s[0].getBoundingClientRect(),l=s[1].getBoundingClientRect(),u=s[2].getBoundingClientRect(),c=o.parentNode,h=!i&&ll(t),f=new dl((l.left-a.left)/100,(l.top-a.top)/100,(u.left-a.left)/100,(u.top-a.top)/100,a.left+(h?0:ol()),a.top+(h?0:sl()));if(c.removeChild(o),r)for(a=r.length;a--;)(l=r[a]).scaleX=l.scaleY=0,l.renderTransform(1,l);return e?f.inverse():f}var gl,ml,vl,_l,yl,wl,bl,xl=1,Tl=function(t,e){return t.actions.forEach((function(t){return t.vars[e]&&t.vars[e](t)}))},Ol={},Ml=180/Math.PI,Sl=Math.PI/180,El={},kl={},Cl={},Dl=function(t){return"string"==typeof t?t.split(" ").join("").split(","):t},Pl=Dl("onStart,onUpdate,onComplete,onReverseComplete,onInterrupt"),Al=Dl("transform,transformOrigin,width,height,position,top,left,opacity,zIndex,maxWidth,maxHeight,minWidth,minHeight"),Il=function(t){return gl(t)[0]||console.warn("Element not found:",t)},Ll=function(t){return Math.round(1e4*t)/1e4||0},Rl=function(t,e,n){return t.forEach((function(t){return t.classList[n](e)}))},zl={zIndex:1,kill:1,simple:1,spin:1,clearProps:1,targets:1,toggleClass:1,onComplete:1,onUpdate:1,onInterrupt:1,onStart:1,delay:1,repeat:1,repeatDelay:1,yoyo:1,scale:1,fade:1,absolute:1,props:1,onEnter:1,onLeave:1,custom:1,paused:1,nested:1,prune:1,absoluteOnLeave:1},Bl={zIndex:1,simple:1,clearProps:1,scale:1,absolute:1,fitChild:1,getVars:1,props:1},Yl=function(t){return t.replace(/([A-Z])/g,"-$1").toLowerCase()},Xl=function(t,e){var n,i={};for(n in t)e[n]||(i[n]=t[n]);return i},Wl={},Fl=function(t){var e=Wl[t]=Dl(t);return Cl[t]=e.concat(Al),e},Nl=function t(e,n,i){void 0===i&&(i=0);for(var r=e.parentNode,s=1e3*Math.pow(10,i)*(n?-1:1),o=n?900*-s:0;e;)o+=s,e=e.previousSibling;return r?o+t(r,n,i+1):o},Vl=function(t,e,n){return t.forEach((function(t){return t.d=Nl(n?t.element:t.t,e)})),t.sort((function(t,e){return t.d-e.d})),t},jl=function(t,e){for(var n,i,r=t.element.style,s=t.css=t.css||[],o=e.length;o--;)i=r[n=e[o]]||r.getPropertyValue(n),s.push(i?n:kl[n]||(kl[n]=Yl(n)),i);return r},ql=function(t){var e=t.css,n=t.element.style,i=0;for(t.cache.uncache=1;i
0&&R&&(l.style.opacity=G?m.opacity-v.opacity:"0"),eu(m,v,L,X)):v.isVisible!==m.isVisible&&(v.isVisible?m.isVisible||(v.css=m.css,j.push(v),q.splice(a--,1),T&&A&&eu(m,v,L,X)):(m.isVisible&&V.push(m),q.splice(a--,1))),L||(l.style.maxWidth=Math.max(m.width,v.width)+"px",l.style.maxHeight=Math.max(m.height,v.height)+"px",l.style.minWidth=Math.min(m.width,v.width)+"px",l.style.minHeight=Math.min(m.height,v.height)+"px"),A&&P&&l.classList.add(P)):q.splice(a--,1),f.push(m);var e;if(P&&(e=f.map((function(t){return t.element})),A&&e.forEach((function(t){return t.classList.remove(P)}))),ou(!1),L?(W.scaleX=function(t){return q[t].a.scaleX},W.scaleY=function(t){return q[t].a.scaleY}):(W.width=function(t){return q[t].a.width+"px"},W.height=function(t){return q[t].a.height+"px"},W.autoRound=n.autoRound||!1),W.x=function(t){return q[t].a.x+"px"},W.y=function(t){return q[t].a.y+"px"},W.rotation=function(t){return q[t].a.rotation+(B?360*U(t,h[t],h):0)},W.skewX=function(t){return q[t].a.skewX},h=q.map((function(t){return t.t})),(I||0===I)&&(W.modifiers={zIndex:function(){return I}},W.zIndex=I,W.immediateRender=!1!==n.immediateRender),R&&(W.opacity=function(t){return q[t].sd<0?0:q[t].sd>0?q[t].a.opacity:"+=0"}),H.length){z=ml.utils.distribute(z);var i=h.slice(H.length);W.stagger=function(t,e){return z(~H.indexOf(e)?h.indexOf(q[t].swap.t):t,e,i)}}if(Pl.forEach((function(t){return n[t]&&F.eventCallback(t,n[t],n[t+"Params"])})),M&&h.length)for(s in N=Xl(W,zl),"scale"in M&&(M.scaleX=M.scaleY=M.scale,delete M.scale),M)(r=Xl(M[s],Bl))[s]=W[s],!("duration"in r)&&"duration"in W&&(r.duration=W.duration),r.stagger=W.stagger,K.call(F,h,r,0),delete N[s];(h.length||j.length||V.length)&&(P&&F.add((function(){return Rl(e,P,F._zTime<0?"remove":"add")}),0)&&!E&&Rl(e,P,"add"),h.length&&K.call(F,h,N,0)),tu(b,V,F),tu(x,j,F);var d=vl&&vl.timeline;d&&(d.add(F,0),vl._final.push((function(){return Hl(q,!w)}))),o=F.duration(),F.call((function(){var t=F.time()>=o;t&&!d&&Hl(q,!w),P&&Rl(e,P,t?"remove":"add")}))},O&&(T=q.filter((function(t){return!t.sd&&!t.a.isVisible&&t.b.isVisible})).map((function(t){return t.a.element}))),vl)?(T&&(_=vl._abs).push.apply(_,Gl(q,T)),vl._run.push(g)):(T&&Kl(Gl(q,T)),g());return vl?vl.timeline:F},lu=function t(e){e.vars.onInterrupt&&e.vars.onInterrupt.apply(e,e.vars.onInterruptParams||[]),e.getChildren(!0,!1,!0).forEach(t)},uu=function(t,e){if(t&&t.progress()<1&&!t.paused())return e&&(lu(t),e<2&&t.progress(1),t.kill()),!0},cu=function(t){for(var e,n=t.idLookup={},i=t.alt={},r=t.elementStates,s=r.length;s--;)n[(e=r[s]).id]?i[e.id]=e:n[e.id]=e},hu=function(){function t(t,e,n){if(this.props=e&&e.props,this.simple=!(!e||!e.simple),n)this.targets=Jl(t),this.elementStates=t,cu(this);else{this.targets=gl(t);var i=e&&(!1===e.kill||e.batch&&!e.kill);vl&&!i&&vl._kill.push(this),this.update(i||!!vl)}}var e=t.prototype;return e.update=function(t){var e=this;return this.elementStates=this.targets.map((function(t){return new fu(t,e.props,e.simple)})),cu(this),this.interrupt(t),this.recordInlineStyles(),this},e.clear=function(){return this.targets.length=this.elementStates.length=0,cu(this),this},e.fit=function(t,e,n){for(var i,r,s=Vl(this.elementStates.slice(0),!1,!0),o=(t||this).idLookup,a=0;a
=0&&this.actions.splice(e,1),this},e.getState=function(t){var e=this,n=vl,i=_l;return vl=this,this.state.clear(),this._kill.length=0,this.actions.forEach((function(n){n.vars.getState&&(n.states.length=0,_l=n,n.state=n.vars.getState(n)),t&&n.states.forEach((function(t){return e.state.add(t)}))})),_l=i,vl=n,this.killConflicts(),this},e.animate=function(){var t,e,n=this,i=vl,r=this.timeline,s=this.actions.length;for(vl=this,r.clear(),this._abs.length=this._final.length=this._run.length=0,this.actions.forEach((function(t){t.vars.animate&&t.vars.animate(t);var e,n,i=t.vars.onEnter,r=t.vars.onLeave,s=t.targets;s&&s.length&&(i||r)&&(e=new hu,t.states.forEach((function(t){return e.add(t)})),(n=e.compare(gu.getState(s))).enter.length&&i&&i(n.enter),n.leave.length&&r&&r(n.leave))})),Kl(this._abs),this._run.forEach((function(t){return t()})),e=r.duration(),t=this._final.slice(0),r.add((function(){e<=r.time()&&(t.forEach((function(t){return t()})),Tl(n,"onComplete"))})),vl=i;s--;)this.actions[s].vars.once&&this.actions[s].kill();return Tl(this,"onStart"),r.restart(),this},e.loadState=function(t){t||(t=function(){return 0});var e=[];return this.actions.forEach((function(n){if(n.vars.loadState){var i,r=function r(s){s&&(n.targets=s),~(i=e.indexOf(r))&&(e.splice(i,1),e.length||t())};e.push(r),n.vars.loadState(r)}})),e.length||t(),this},e.setState=function(){return this.actions.forEach((function(t){return t.targets=t.vars.setState&&t.vars.setState(t)})),this},e.killConflicts=function(t){return this.state.interrupt(t),this._kill.forEach((function(e){return e.interrupt(t)})),this},e.run=function(t,e){var n=this;return this!==vl&&(t||this.getState(e),this.loadState((function(){n._killed||(n.setState(),n.animate())}))),this},e.clear=function(t){this.state.clear(),t||(this.actions.length=0)},e.getStateById=function(t){for(var e,n=this.actions.length;n--;)if(e=this.actions[n].getStateById(t))return e;return this.state.idLookup[t]&&this.state},e.kill=function(){this._killed=1,this.clear(),delete Ol[this.id]},t}(),gu=function(){function t(){}return t.getState=function(e,n){var i=nu(e,n);return _l&&_l.states.push(i),n&&n.batch&&t.batch(n.batch).state.add(i),i},t.from=function(t,e){return"clearProps"in(e=e||{})||(e.clearProps=!0),au(t,nu(e.targets||t.targets,{props:e.props||t.props,simple:e.simple,kill:!!e.kill}),e,-1)},t.to=function(t,e){return au(t,nu(e.targets||t.targets,{props:e.props||t.props,simple:e.simple,kill:!!e.kill}),e,1)},t.fromTo=function(t,e,n){return au(t,e,n)},t.fit=function(t,e,n){var i=n?Xl(n,Bl):{},r=n||i,s=r.absolute,o=r.scale,a=r.getVars,l=r.props,u=r.runBackwards,c=r.onComplete,h=r.simple,f=n&&n.fitChild&&Il(n.fitChild),d=Ql(e,l,h,t),p=Ql(t,0,h,d),g=l?Cl[l]:Al;return l&&Zl(i,d.props),u&&(jl(p,g),"immediateRender"in i||(i.immediateRender=!0),i.onComplete=function(){ql(p),c&&c.apply(this,arguments)}),s&&Ul(p,d),i=eu(p,d,o||f,l,f,i.duration||a?i:0),a?i:i.duration?ml.to(p.element,i):null},t.makeAbsolute=function(t,e){return(t instanceof hu?t:new hu(t,e)).makeAbsolute()},t.batch=function(t){return t||(t="default"),Ol[t]||(Ol[t]=new pu(t))},t.killFlipsOf=function(t,e){(t instanceof hu?t.targets:gl(t)).forEach((function(t){return t&&uu(t._flip,!1!==e?1:2)}))},t.isFlipping=function(e){var n=t.getByTarget(e);return!!n&&n.isActive()},t.getByTarget=function(t){return(Il(t)||El)._flip},t.getElementState=function(t,e){return new fu(Il(t),e)},t.convertCoordinates=function(t,e,n){var i=pl(e,!0,!0).multiply(pl(t));return n?i.apply(n):i},t.register=function(t){if(yl="undefined"!=typeof document&&document.body){ml=t,nl(yl),gl=ml.utils.toArray;var e=ml.utils.snap(.1);wl=function(t,n){return e(parseFloat(t)+n)}}},t}();gu.version="3.10.4","undefined"!=typeof window&&window.gsap&&window.gsap.registerPlugin(gu),Rr.registerPlugin(Ra),Rr.registerPlugin(gu);const mu={duration:1.5,ease:"power4.inOut"},vu=[...document.querySelectorAll(".preview")],_u=[...document.querySelectorAll(".content")],yu=[];vu.forEach(((t,e)=>{yu.push(new Yr(t,_u[e]))}));const wu=document.querySelector(".action--back");let bu,xu=-1,Tu=!1;const Ou=t=>{const e=yu.indexOf(t),n=(t=>{let e=[];for(const[r,s]of yu.entries())t!=s&&(n=s.DOM.el,i=void 0,((i=n.getBoundingClientRect()).bottom>=0&&i.bottom<=(window.innerHeight||document.documentElement.clientHeight)||i.top>=0&&i.top<=(window.innerHeight||document.documentElement.clientHeight))&&(i.right>=0&&i.right<=(window.innerWidth||document.documentElement.clientWidth)||i.left>=0&&i.left<=(window.innerWidth||document.documentElement.clientWidth)))&&e.push({position:r,item:s});var n,i;return e})(t);t.adjacentItems=n;const i=Rr.timeline({defaults:mu,onStart:()=>{bu.stop(),document.body.classList.add("content-open"),t.content.DOM.el.classList.add("content--current"),Rr.set([t.content.DOM.titleInner,t.content.DOM.metaInner],{yPercent:-101,opacity:0}),Rr.set(t.content.DOM.thumbs,{transformOrigin:"0% 0%",scale:0,yPercent:150}),Rr.set([t.content.DOM.text,wu],{opacity:0});const e=t.DOM.imageInner.getBoundingClientRect().height/t.DOM.imageInner.offsetHeight;t.imageInnerScaleYCached=e},onComplete:()=>Tu=!1}).addLabel("start",0);for(const n of t.adjacentItems)i.to(n.item.DOM.el,{y:n.position
{const e=gu.getState(t.DOM.image);t.content.DOM.el.appendChild(t.DOM.image),gu.from(e,{duration:mu.duration,ease:mu.ease,absolute:!0})}),"start").to(t.DOM.titleInner,{yPercent:101,opacity:0,stagger:-.03},"start").to(t.DOM.description,{yPercent:101,opacity:0},"start").to(t.DOM.imageInner,{scaleY:1},"start").addLabel("content",.15).to(wu,{opacity:1},"content").to(t.content.DOM.titleInner,{yPercent:0,opacity:1,stagger:-.05},"content").to(t.content.DOM.metaInner,{yPercent:0,opacity:1},"content").to(t.content.DOM.thumbs,{scale:1,yPercent:0,stagger:-.05},"content").add((()=>{t.content.multiLine.in(),Rr.set(t.content.DOM.text,{opacity:1,delay:.01})}),"content")},Mu=()=>{for(const[t,e]of yu.entries())e.DOM.imageWrap.addEventListener("click",(()=>{Tu||(Tu=!0,xu=t,Ou(e))}));wu.addEventListener("click",(()=>{Tu||(Tu=!0,(()=>{const t=yu[xu];Rr.timeline({defaults:mu,onComplete:()=>{bu.start(),document.body.classList.remove("content-open"),t.content.DOM.el.classList.remove("content--current"),Tu=!1}}).addLabel("start",0).to(wu,{opacity:0},"start").to(t.content.DOM.titleInner,{yPercent:-101,opacity:0,stagger:.05},"start").to(t.content.DOM.metaInner,{yPercent:-101,opacity:0},"start").to(t.content.DOM.thumbs,{scale:0,yPercent:150,stagger:-.05},"start").add((()=>{t.content.multiLine.out()}),"start").addLabel("preview",.15).to(t.adjacentItems.map((t=>t.item.DOM.el)),{y:0},"preview").add((()=>{const e=gu.getState(t.DOM.image);t.DOM.imageWrap.appendChild(t.DOM.image),gu.from(e,{duration:mu.duration,ease:mu.ease,absolute:!0})}),"preview").to(t.DOM.titleInner,{yPercent:0,opacity:1,stagger:.03},"preview").to(t.DOM.description,{yPercent:0,opacity:1},"preview").to(t.DOM.imageInner,{scaleY:t.imageInnerScaleYCached},"preview")})())}))};((t="img")=>new Promise((e=>{s(document.querySelectorAll(t),{background:!0},e)})))(".preview__img-inner, .content__thumbs-item").then((t=>{document.body.classList.remove("loading"),(()=>{bu=new Vr({lerp:.1,smooth:!0,direction:"vertical"});const t=()=>{bu.raf(),requestAnimationFrame(t)};requestAnimationFrame(t)})(),(()=>{for(const t of yu)Rr.set(t.DOM.imageInner,{transformOrigin:"50% 0%"}),t.scrollTimeline=Rr.timeline({scrollTrigger:{trigger:t.DOM.el,start:"top bottom",end:"bottom top",scrub:!0}}).addLabel("start",0).to(t.DOM.title,{ease:"none",yPercent:-100},"start").to(t.DOM.imageInner,{ease:"none",scaleY:1.8},"start")})(),Mu()}))}();