/*! * PINEGROW INTERACTIONS (PGIA) Run-time library * VERSION: 2.04 * DATE: 2021-05-26 * INFO: https://pinegrow.com/docs/interactions/ * @license Copyright (c) 2020 Pinegrow Pte. Ltd. All rights reserved, with exlusion of supporting libraries. * * License: You are allowed to use, duplicate, distribute this code as a part of work developed with PGIA, and license it to third parties, who may also license such developed work to end-users. * * Includes supporting libraries: * * GreenSock GSAP including ScrollTrigger and ScrollTo plugin, @author: Jack Doyle, jack@greensock.com * * @license Copyright (c) 2008-2020, GreenSock. All rights reserved. * GSAP is subject to the terms of enterprise license between GreenSock and Pinegrow Pte. Ltd., under which Pinegrow Interactions users are allowed to use, duplicate and distribute this code as a part of work developed with PGIA, and license it to third parties, who may also license such developed work to end-users. * If GSAP is used outside of PGIA or if GSAP is accesses directly through custom Javascript code, it is subject to its own license https://greensock.com/standard-license */ !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t=t||self).window=t.window||{})}(this,function(e){"use strict";function _inheritsLoose(t,e){t.prototype=Object.create(e.prototype),(t.prototype.constructor=t).__proto__=e}function _assertThisInitialized(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function o(t){return"string"==typeof t}function p(t){return"function"==typeof t}function q(t){return"number"==typeof t}function r(t){return void 0===t}function s(t){return"object"==typeof t}function t(t){return!1!==t}function u(){return"undefined"!=typeof window}function v(t){return p(t)||o(t)}function L(t){return(h=mt(t,ot))&&ae}function M(t,e){return console.warn("Invalid property",t,"set to",e,"Missing plugin? gsap.registerPlugin()")}function N(t,e){return!e&&console.warn(t)}function O(t,e){return t&&(ot[t]=e)&&h&&(h[t]=e)||ot}function P(){return 0}function Z(t){var e,r,i=t[0];if(s(i)||p(i)||(t=[t]),!(e=(i._gsap||{}).harness)){for(r=_t.length;r--&&!_t[r].targetTest(i););e=_t[r]}for(r=t.length;r--;)t[r]&&(t[r]._gsap||(t[r]._gsap=new It(t[r],e)))||t.splice(r,1);return t}function $(t){return t._gsap||Z(Tt(t))[0]._gsap}function _(t,e,i){return(i=t[e])&&p(i)?t[e]():r(i)&&t.getAttribute&&t.getAttribute(e)||i}function aa(t,e){return(t=t.split(",")).forEach(e)||t}function ba(t){return Math.round(1e5*t)/1e5||0}function ca(t,e){for(var r=e.length,i=0;t.indexOf(e[i])<0&&++it._dur||e._start<0))for(var r=t;r;)r._dirty=1,r=r.parent;return t}function va(t){return t._repeat?gt(t._tTime,t=t.duration()+t._rDelay)*t:0}function xa(t,e){return(t-e._start)*e._ts+(0<=e._ts?0:e._dirty?e.totalDuration():e._tDur)}function ya(t){return t._end=ba(t._start+(t._tDur/Math.abs(t._ts||t._rts||U)||0))}function za(t,e){var r=t._dp;return r&&r.smoothChildTiming&&t._ts&&(t._start=ba(r._time-(0U)&&e.render(r,!0)),sa(t,e)._dp&&t._initted&&t._time>=t._dur&&t._ts){if(t._dura;)s=s._prev;s?(e._next=s._next,s._next=e):(e._next=t[r],t[r]=e),e._next?e._next._prev=e:t[i]=e,e._prev=s,e.parent=e._dp=t}(t,e,"_first","_last",t._sort?"_start":0),t._recent=e,i||Aa(t,e),t}function Ca(t,e){return(ot.ScrollTrigger||M("scrollTrigger",e))&&ot.ScrollTrigger.create(e,t)}function Da(t,e,r,i){return Yt(t,e),t._initted?!r&&t._pt&&(t._dur&&!1!==t.vars.lazy||!t._dur&&t.vars.lazy)&&f!==Ct.frame?(ht.push(t),t._lazy=[e,i],1):void 0:1}function Ha(t,e,r,i){var n=t._repeat,a=ba(e)||0,s=t._tTime/t._tDur;return s&&!i&&(t._time*=a/t._dur),t._dur=a,t._tDur=n?n<0?1e10:ba(a*(n+1)+t._rDelay*n):a,s&&!i?za(t,t._tTime=t._tDur*s):t.parent&&ya(t),r||sa(t.parent,t),t}function Ia(t){return t instanceof Et?sa(t):Ha(t,t._dur)}function Ka(t,e){var r,i,n=t.labels,a=t._recent||vt,s=t.duration()>=H?a.endTime(!1):t._dur;return o(e)&&(isNaN(e)||e in n)?"<"===(r=e.charAt(0))||">"===r?("<"===r?a._start:a.endTime(0<=a._repeat))+(parseFloat(e.substr(1))||0):(r=e.indexOf("="))<0?(e in n||(n[e]=s),n[e]):(i=+(e.charAt(r-1)+e.substr(r+1)),1(n=Math.abs(n))&&(a=i,o=n);return a}function hb(t){return ra(t),t.progress()<1&&xt(t,"onInterrupt"),t}function mb(t,e,r){return(6*(t=t<0?t+1:1>16,t>>8&kt,t&kt]:0:Ot.black;if(!p){if(","===t.substr(-1)&&(t=t.substr(0,t.length-1)),Ot[t])p=Ot[t];else if("#"===t.charAt(0))4===t.length&&(t="#"+(i=t.charAt(1))+i+(n=t.charAt(2))+n+(a=t.charAt(3))+a),p=[(t=parseInt(t.substr(1),16))>>16,t>>8&kt,t&kt];else if("hsl"===t.substr(0,3))if(p=d=t.match(et),e){if(~t.indexOf("="))return p=t.match(rt),r&&p.length<4&&(p[3]=1),p}else s=+p[0]%360/360,o=p[1]/100,i=2*(u=p[2]/100)-(n=u<=.5?u*(o+1):u+o-u*o),3=r&&te)return i;i=i._next}else for(i=t._last;i&&i._start>=r;){if(!i._dur&&"isPause"===i.data&&i._start=n._start)&&n._ts&&h!==n){if(n.parent!==this)return this.render(t,e,r);if(n.render(0=this.totalDuration()||!v&&c)&&(f!==this._start&&Math.abs(l)===Math.abs(this._ts)||this._lock||(!t&&g||!(v===m&&0=i&&(a instanceof Vt?e&&n.push(a):(r&&n.push(a),t&&n.push.apply(n,a.getChildren(!0,e,r)))),a=a._next;return n},e.getById=function getById(t){for(var e=this.getChildren(1,1,1),r=e.length;r--;)if(e[r].vars.id===t)return e[r]},e.remove=function remove(t){return o(t)?this.removeLabel(t):p(t)?this.killTweensOf(t):(qa(this,t),t===this._recent&&(this._recent=this._last),sa(this))},e.totalTime=function totalTime(t,e){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=ba(Ct.time-(0e:!e||a.isActive())&&i.push(a):(r=a.getTweensOf(n,e)).length&&i.push.apply(i,r),a=a._next;return i},e.tweenTo=function tweenTo(t,e){e=e||{};var r=this,i=Ka(r,t),n=e.startAt,a=e.onStart,s=e.onStartParams,o=e.immediateRender,u=Vt.to(r,ia({ease:"none",lazy:!1,immediateRender:!1,time:i,overwrite:"auto",duration:e.duration||Math.abs((i-(n&&"time"in n?n.time:r._time))/r.timeScale())||U,onStart:function onStart(){r.pause();var t=e.duration||Math.abs((i-r._time)/r.timeScale());u._dur!==t&&Ha(u,t,0,1).render(u._time,!0,!0),a&&a.apply(u,s||[])}},e));return o?u.render(0):u},e.tweenFromTo=function tweenFromTo(t,e,r){return this.tweenTo(e,ia({startAt:{time:Ka(this,t)}},r))},e.recent=function recent(){return this._recent},e.nextLabel=function nextLabel(t){return void 0===t&&(t=this._time),fb(this,Ka(this,t))},e.previousLabel=function previousLabel(t){return void 0===t&&(t=this._time),fb(this,Ka(this,t),1)},e.currentLabel=function currentLabel(t){return arguments.length?this.seek(t,!0):this.previousLabel(this._time+U)},e.shiftChildren=function shiftChildren(t,e,r){void 0===r&&(r=0);for(var i,n=this._first,a=this.labels;n;)n._start>=r&&(n._start+=t,n._end+=t),n=n._next;if(e)for(i in a)a[i]>=r&&(a[i]+=t);return sa(this)},e.invalidate=function invalidate(){var t=this._first;for(this._lock=0;t;)t.invalidate(),t=t._next;return n.prototype.invalidate.call(this)},e.clear=function clear(t){void 0===t&&(t=!0);for(var e,r=this._first;r;)e=r._next,this.remove(r),r=e;return this._dp&&(this._time=this._tTime=this._pTime=0),t&&(this.labels={}),sa(this)},e.totalDuration=function totalDuration(t){var e,r,i,n=0,a=this,s=a._last,o=H;if(arguments.length)return a.timeScale((a._repeat<0?a.duration():a.totalDuration())/(a.reversed()?-t:t));if(a._dirty){for(i=a.parent;s;)e=s._prev,s._dirty&&s.totalDuration(),o<(r=s._start)&&a._sort&&s._ts&&!a._lock?(a._lock=1,Ba(a,s,r-s._delay,1)._lock=0):o=r,r<0&&s._ts&&(n-=r,(!i&&!a._dp||i&&i.smoothChildTiming)&&(a._start+=r/a._ts,a._time-=r,a._tTime-=r),a.shiftChildren(-r,!1,-Infinity),o=0),s._end>n&&s._ts&&(n=s._end),s=e;Ha(a,a===I&&a._time>n?a._time:n,1,1),a._dirty=0}return a._tDur},Timeline.updateRoot=function updateRoot(t){if(I._ts&&(fa(I,xa(t,I)),f=Ct.frame),Ct.frame>=pt){pt+=Y.autoSleep||120;var e=I._first;if((!e||!e._ts)&&Y.autoSleep&&Ct._listeners.length<2){for(;e&&!e._ts;)e=e._next;e||Ct.sleep()}}},Timeline}(Lt);ia(Et.prototype,{_lock:0,_hasPause:0,_forcing:0});function Pb(t,e,r,i,n,a){var u,h,l,f;if(ft[t]&&!1!==(u=new ft[t]).init(n,u.rawVars?e[t]:function _processVars(t,e,r,i,n){if(p(t)&&(t=Xt(t,n,e,r,i)),!s(t)||t.style&&t.nodeType||tt(t)||J(t))return o(t)?Xt(t,n,e,r,i):t;var a,u={};for(a in t)u[a]=Xt(t[a],n,e,r,i);return u}(e[t],i,n,a,r),r,i,a)&&(r._pt=h=new ie(r._pt,n,t,0,1,u.render,u,0,u.priority),r!==d))for(l=r._ptLookup[r._targets.indexOf(n)],f=u._props.length;f--;)l[u._props[f]]=h;return u}var Nt,qt=function _addPropTween(t,e,r,i,n,a,s,u,h){p(i)&&(i=i(n||0,t,a));var l,f=t[e],d="get"!==r?r:p(f)?h?t[e.indexOf("set")||!p(t["get"+e.substr(3)])?e:"get"+e.substr(3)](h):t[e]():f,_=p(f)?h?jt:Gt:Kt;if(o(i)&&(~i.indexOf("random(")&&(i=cb(i)),"="===i.charAt(1)&&(i=parseFloat(d)+parseFloat(i.substr(2))*("-"===i.charAt(0)?-1:1)+(Na(d)||0))),d!==i)return isNaN(d*i)?(f||e in t||M(e,i),function _addComplexStringPropTween(t,e,r,i,n,a,s){var o,u,h,l,f,d,p,_,c=new ie(this._pt,t,e,0,1,Zt,null,n),m=0,g=0;for(c.b=r,c.e=i,r+="",(p=~(i+="").indexOf("random("))&&(i=cb(i)),a&&(a(_=[r,i],t,e),r=_[0],i=_[1]),u=r.match(nt)||[];o=nt.exec(i);)l=o[0],f=i.substring(m,o.index),h?h=(h+1)%5:"rgba("===f.substr(-5)&&(h=1),l!==u[g++]&&(d=parseFloat(u[g-1])||0,c._pt={_next:c._pt,p:f||1===g?f:",",s:d,c:"="===l.charAt(1)?parseFloat(l.substr(2))*("-"===l.charAt(0)?-1:1):parseFloat(l)-d,m:h&&h<4?Math.round:0},m=nt.lastIndex);return c.c=m")});else{if(l=C.length,p=b?Ua(b):P,s(b))for(f in b)~Ht.indexOf(f)&&((_=_||{})[f]=b[f]);for(u=0;u=t._tDur||e<0)&&t.ratio===u&&(u&&ra(t,1),r||(xt(t,u?"onComplete":"onReverseComplete",!0),t._prom&&t._prom()))}else t._zTime||(t._zTime=e)}(this,t,e,r);return this},e.targets=function targets(){return this._targets},e.invalidate=function invalidate(){return this._pt=this._op=this._startAt=this._onUpdate=this._lazy=this.ratio=0,this._ptLookup=[],this.timeline&&this.timeline.invalidate(),A.prototype.invalidate.call(this)},e.kill=function kill(t,e){if(void 0===e&&(e="all"),!(t||e&&"all"!==e))return this._lazy=this._pt=0,this.parent?hb(this):this;if(this.timeline){var r=this.timeline.totalDuration();return this.timeline.killTweensOf(t,e,Nt&&!0!==Nt.vars.overwrite)._first||hb(this),this.parent&&r!==this.timeline.totalDuration()&&Ha(this,this._dur*this.timeline._tDur/r,0,1),this}var i,n,a,s,u,h,l,f=this._targets,d=t?Tt(t):f,p=this._ptLookup,_=this._pt;if((!e||"all"===e)&&function _arraysMatch(t,e){for(var r=t.length,i=r===e.length;i&&r--&&t[r]===e[r];);return r<0}(f,d))return"all"===e&&(this._pt=0),hb(this);for(i=this._op=this._op||[],"all"!==e&&(o(e)&&(u={},aa(e,function(t){return u[t]=1}),e=u),e=function _addAliasesToVars(t,e){var r,i,n,a,s=t[0]?$(t[0]).harness:0,o=s&&s.aliases;if(!o)return e;for(i in r=mt({},e),o)if(i in r)for(n=(a=o[i].split(",")).length;n--;)r[a[n]]=r[i];return r}(f,e)),l=f.length;l--;)if(~d.indexOf(f[l]))for(u in n=p[l],"all"===e?(i[l]=e,s=n,a={}):(a=i[l]=i[l]||{},s=e),s)(h=n&&n[u])&&("kill"in h.d&&!0!==h.d.kill(u)||qa(this,h,"_pt"),delete n[u]),"all"!==a&&(a[u]=1);return this._initted&&!this._pt&&_&&hb(this),this},Tween.to=function to(t,e,r){return new Tween(t,e,r)},Tween.from=function from(t,e){return new Tween(t,da(arguments,1))},Tween.delayedCall=function delayedCall(t,e,r,i){return new Tween(e,0,{immediateRender:!1,lazy:!1,overwrite:!1,delay:t,onComplete:e,onReverseComplete:e,onCompleteParams:r,onReverseCompleteParams:r,callbackScope:i})},Tween.fromTo=function fromTo(t,e,r){return new Tween(t,da(arguments,2))},Tween.set=function set(t,e){return e.duration=0,e.repeatDelay||(e.repeat=0),new Tween(t,e)},Tween.killTweensOf=function killTweensOf(t,e,r){return I.killTweensOf(t,e,r)},Tween}(Lt);ia(Vt.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0}),aa("staggerTo,staggerFrom,staggerFromTo",function(r){Vt[r]=function(){var t=new Et,e=bt.call(arguments,0);return e.splice("staggerFromTo"===r?5:4,0,0),t[r].apply(t,e)}});function $b(t,e,r){return t.setAttribute(e,r)}function gc(t,e,r,i){i.mSet(t,e,i.m.call(i.tween,r,i.mt),i)}var Kt=function _setterPlain(t,e,r){return t[e]=r},Gt=function _setterFunc(t,e,r){return t[e](r)},jt=function _setterFuncWithParam(t,e,r,i){return t[e](i.fp,r)},$t=function _getSetter(t,e){return p(t[e])?Gt:r(t[e])&&t.setAttribute?$b:Kt},Qt=function _renderPlain(t,e){return e.set(e.t,e.p,Math.round(1e4*(e.s+e.c*t))/1e4,e)},Wt=function _renderBoolean(t,e){return e.set(e.t,e.p,!!(e.s+e.c*t),e)},Zt=function _renderComplexString(t,e){var r=e._pt,i="";if(!t&&e.b)i=e.b;else if(1===t&&e.e)i=e.e;else{for(;r;)i=r.p+(r.m?r.m(r.s+r.c*t):Math.round(1e4*(r.s+r.c*t))/1e4)+i,r=r._next;i+=e.c}e.set(e.t,e.p,i,e)},Jt=function _renderPropTweens(t,e){for(var r=e._pt;r;)r.r(t,r.d),r=r._next},te=function _addPluginModifier(t,e,r,i){for(var n,a=this._pt;a;)n=a._next,a.p===i&&a.modifier(t,e,r),a=n},ee=function _killPropTweensOf(t){for(var e,r,i=this._pt;i;)r=i._next,i.p===t&&!i.op||i.op===t?qa(this,i,"_pt"):i.dep||(e=1),i=r;return!e},re=function _sortPropTweensByPriority(t){for(var e,r,i,n,a=t._pt;a;){for(e=a._next,r=i;r&&r.pr>a.pr;)r=r._next;(a._prev=r?r._prev:n)?a._prev._next=a:i=a,(a._next=r)?r._prev=a:n=a,a=e}t._pt=i},ie=(PropTween.prototype.modifier=function modifier(t,e,r){this.mSet=this.mSet||this.set,this.set=gc,this.m=t,this.mt=r,this.tween=e},PropTween);function PropTween(t,e,r,i,n,a,s,o,u){this.t=e,this.s=i,this.c=n,this.p=r,this.r=a||Qt,this.d=s||this,this.set=o||Kt,this.pr=u||0,(this._next=t)&&(t._prev=this)}aa(ct+"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 ut[t]=1}),ot.TweenMax=ot.TweenLite=Vt,ot.TimelineLite=ot.TimelineMax=Et,I=new Et({sortChildren:!1,defaults:X,autoRemoveChildren:!0,id:"root",smoothChildTiming:!0}),Y.stringFilter=sb;var ne={registerPlugin:function registerPlugin(){for(var t=arguments.length,e=new Array(t),r=0;rr&&(n*=t/100),e=e.substr(0,r-1)),e=n+(e in w?w[e]*t:~e.indexOf("%")?parseFloat(e)*t/100:parseFloat(e)||0)}return e}function Fa(e,t,r,n,o,i,a){var s=o.startColor,l=o.endColor,c=o.fontSize,f=o.indent,u=o.fontWeight,p=_e.createElement("pgiamarker"),d=M(r)||"fixed"===N(r,"pinType"),g=-1!==e.indexOf("scroller"),h=d?Pe:r,v=-1!==e.indexOf("start"),m=v?s:l,b="border-color:"+m+";font-size:"+c+";color:"+m+";font-weight:"+u+";pointer-events:none;white-space:nowrap;font-family:sans-serif,Arial;z-index:1000;padding:4px 8px;border-width:0;border-style:solid;";return b+="position:"+(g&&d?"fixed;":"absolute;"),!g&&d||(b+=(n===nt?x:y)+":"+(i+parseFloat(f))+"px;"),a&&(b+="box-sizing:border-box;text-align:left;width:"+a.offsetWidth+"px;"),p._isStart=v,p.setAttribute("class","gsap-marker-"+e),p.style.cssText=b,p.innerText=t||0===t?e+"-"+t:e,h.children[0]?h.insertBefore(p,h.children[0]):h.appendChild(p),p._offset=p["offset"+n.op.d2],k(p,0,n,v),p}function Ja(){return l=l||s(D)}function Ka(){l||(l=s(D),Ke||E("scrollStart"),Ke=Je())}function La(){return!Le&&!r&&a.restart(!0)}function Ra(e){var t,r=Oe.ticker.frame,n=[],o=0;if(g!==r||Ve){for(F();o=S(he,te),de)if(e||!r&&!o)kb(se,Y);else{var u=ot(se,!0),p=s-C;kb(se,Pe,u.top+(te===nt?p:0)+tt,u.left+(te===nt?0:p)+tt)}ft(r||o?I:K),q!==F&&c<1&&r||g(H+(1!==c||o?0:q))}}else g(H+q*c);!pe||d.tween||Le||Ve||$.restart(!0),ne&&(a||ue&&c&&(c<1||!We))&&ze(ne.targets).forEach(function(e){return e.classList[r||ue?"add":"remove"](ne.className)}),!re||ge||e||re(we),i&&!Le?(n=c&&!f?0:1===c?1:1===f?2:3,ge&&(o=!a&&"none"!==xe[n+1]&&xe[n+1]||xe[n],w&&("complete"===o||"reset"===o||o in w)&&("complete"===o?w.pause().totalProgress(1):"reset"===o?w.restart(!0).pause():w[o]()),re&&re(we)),!a&&We||(oe&&a&&oe(we),be[n]&&be[n](we),ue&&(1===c?we.kill(!1,1):be[n]=0),a||be[n=1===c?1:3]&&be[n](we))):ge&&re&&!Le&&re(we)}m&&(v(s+(L._isFlipped?1:0)),m(s))},we.enable=function(){we.enabled||(we.enabled=!0,za(he,"resize",La),za(he,"scroll",Ka),Te&&za(ScrollTrigger,"refreshInit",Te),w&&w.add?Oe.delayedCall(.01,function(){return C||z||we.refresh()})&&(F=.01)&&(C=z=0):we.refresh())},we.disable=function(e,t){if(we.enabled&&(!1!==e&&we.revert(),we.enabled=we.isActive=!1,t||j&&j.pause(),Q=0,n&&(n.uncache=1),Te&&Aa(ScrollTrigger,"refreshInit",Te),$&&($.pause(),d.tween&&d.tween.kill()&&(d.tween=0)),!ve)){for(var r=st.length;r--;)if(st[r].scroller===he&&st[r]!==we)return;Aa(he,"resize",La),Aa(he,"scroll",Ka)}},we.kill=function(e,t){we.disable(e,t),i&&delete lt[i];var r=st.indexOf(we);st.splice(r,1),r===Re&&0=X(t.m,4,e||40)&&(0i;)d._d(e.created.pop());for(;0e.created.length;){if(100<++u)return void j("Cloning too many elements is a sign of an endless loop. Blocking. Tried to clone "+u+" elements.");if(!(n=e.live?e.t.cloneNode(!0):((o=document.createRange()).selectNodeContents(e.t),o.createContextualFragment(e.live?e.t.outerHTML:e.template).firstChild)))break;n.removeAttribute("data-pg-id");var o=(e.created.length?e.created[e.created.length-1]:e.t).nextSibling;e.append||!o?e.t.parentNode.appendChild(n):e.t.parentNode.insertBefore(n,o),n.classList?n.classList.add("pgia-clone"):n.className+=" pgia-clone",e.created.push(n);var r=!1,o=T(n.innerHTML,function(t){return r=!0,(e.target_element||n).getAttribute(t)||""});r&&(n.innerHTML=o),e.v.pos&&(n._pg_position=new c(n,e.target_element,S(e.v.pos,n,e.target_element)||"auto",it(e.v.pos_dist||0),it(e.v.pos_width||0),it(e.v.pos_height||0),e.v.pos_scale||!1,e.v.pos_no_repo||!1),n.style.left=n._pg_position.left+"px",n.style.top=n._pg_position.top+"px"),n._pg_clone_time=(new Date).getTime(),d._c(n),e.v.play&&F.play(n,e.v.play)}}e.v.remove&&(1!=t||e.removed?t<1&&e.removed&&(e.parent&&(e.next?e.parent.insertBefore(e.t,e.next):e.parent.appendChild(e.t)),e.removed=!1,d._c(e.t)):(d._d(e.t),e.removed=!0)),e.v.reparent&&(a=e.parent!=e.t.parentNode,0==t&&a?e.parent.appendChild(e.t):0")}function T(t,a){var n=!1,t=(t+"").replace(/\$\{([^\}]*)\}/g,function(t,e){e=a(e);return"object"==typeof e&&(n=e,e="_o_"),e});return n&&"_o_"==t?n:t}function L(t){return!t.paused()&&0t.scrollHeight/t.clientHeight?"h":"v"},Y=function(t,e){return Math.abs(t-e)<.001},D=function(t){return B(1e3*t)/1e3},J=function(t,e,a,n,i,o,r,s,l,u,d,c){t=t||st(e,o);var p=a?"left":"top",h=a?"width":"height",f=a?"Left":"Top",o=e==window||e==document.body,g=t.c.length;if(g){var m=r?r.end-r.start:t["ps"+h]-t.p[h],v=r?r.start:0,_=r?r.progress:t["sp"+p]/m;if(void 0!==l&&(_=l),s&&(!n&&Y(_,1)||n&&Y(_,0))&&(_=n?1:t.c[0][p]/m,e=o?document.documentElement:e,x=_*m,o?window.scrollTo(a?x:t.sptop,a?t.spleft:x):e["scroll"+f]=x),void 0!==d)return u?{px:t.p[h]*d,p:t.p[h]*d/m,i:d}:{px:t.c[d][p],p:t.c[d][p]/m,i:X(d,0,s?g-2:g-1)};O=-1;var y,w,A,b,x=(r?r.pgBottomCover:0)/m,s=(r?r.pgTopCover:0)/m;if("c"===n||i){for(var k=_+t.p[h]/m-x,O=0,E=0,T=d=0,L=(r?r.pgTopCover:0)/m,M=0;M_)&&(I*=5),!0===n&&(i&&Y(S,_)||D(S)<_)&&(I*=5),(T"),i=n[1];if(!(e=n[0])||"this"===e)return R([t],i);var o,r=t;if(ot(e,"$")&&(e=e.substr(1),r=a||document),ot(e,"^")){var s=e.substr(1).split("|"),n=t.closest(s[0].trim());return R(1===s.length?[n]:Q(n,s[1].trim(),a),i)}ot(e,">")&&(o="pgtemp_"+p++,r.setAttribute(o,""),e="["+o+"] "+e);s=r.querySelectorAll(e);return o&&r.removeAttribute(o),R(s,i)}catch(t){j(t)}return[]},F.getTargets=Q,h=function(t){return"forEach"in t||t instanceof NodeList||t instanceof HTMLCollection||Array.isArray(t)?t:[t]},K=function(t,e){Array.prototype.forEach.call(h(t),e)},tt=function(t,e,a){return Array.prototype.slice.call(t,e,a)},et=function(t,e,a){return!(e in t)||""===t[e]?a:void 0===a||"number"!=typeof a||isNaN(t[e])?t[e]:it(t[e])},r=0,g=function(){this.getTimeline=function(t,p,e){function y(t,e){return(e||t)[h]||null}var w=gsap.timeline({onComplete:e}),h="_pgia_target_"+r++;return t&&t.l&&t.l.forEach(function(e){e.m||e.l.sort(function(t,e){return t.p===e.p?"set"===t.t?-1:"set"===e.t?1:0:t.p-e.p}).forEach(function(a){var t,n,i,o,r,s,l,u,d,c;a.m||(t=e.t||"this",n=null,t&&(n=[],K(p,function(e){Array.prototype.forEach.call(Q(e,S(t,e,e)),function(t){n.indexOf(t)<0&&(n.push(t),t[h]=e)})})),i=a.p,o=a.d||0,r=[],s=[],l=[],u={},d={"media.playing":function(t,e){function a(){n.forEach(function(t){t.paused&&!t._pgia_broken&&(""!==e||isNaN(t.duration)||t.duration>t.currentTime)&&N(t,"play",e)})}r.push(a),l.push(a),s.push(function(){n.forEach(function(t){N(t,"pause","")})})},"media.play":function(t,e){r.push(function(){n.forEach(function(t){N(t,"play",e)})})},"media.stop":function(t,e){r.push(function(){n.forEach(function(t){N(t,"pause",e)})})},"media.mute":function(t,e){r.push(function(){n.forEach(function(t){t.muted=!!e})})},"pgia.play":function(t,e){u.pgia=u.pgia||{},u.pgia.play=e,u.pgia.target_element=y},"pgia.pause":function(t,e){u.pgia=u.pgia||{},u.pgia.pause=e,u.pgia.target_element=y},pgia:function(t,e){u.pgia=u.pgia||{},e.target_element=y,f(e,function(t,e){u.pgia[t]=e})},"pgia.start":function(t,e){u.pgCall||(u.pgCall={}),u.pgCall.start=e},"pgia.complete":function(t,e){u.pgCall||(u.pgCall={}),u.pgCall.complete=e},"pgia.update":function(t,e){u.pgCall||(u.pgCall={}),u.pgCall.update=e},"class.set":function(t,e){u.pgClass=u.pgClass||{},u.pgClass.set=e},"class.add":function(t,e){u.pgClass=u.pgClass||{},u.pgClass.add=e},"class.remove":function(t,e){u.pgClass=u.pgClass||{},u.pgClass.remove=e},scrollTo:function(t,p){var h={},f=et(p,"dir","y"),g=et(p,"dest",0)+"",m=et(p,"inf",0),v=et(p,"esel",null),_=et(p,"offset","st");w._pg_req_inv=!0;function e(t,e){var a,n=y(e),i=S(g,e,n),o=!1;0<=(i+"").indexOf("_or_start")&&(o=!0,i=i.replace("_or_start",""));var r,s,l,u=(r=e,s=F.scrollSceneManager.getScene,scene=r==window?s(document.body)||s(document.documentElement):s(r),scene&&scene.st);function d(){return e["client"+("y"==f?"Height":"Width")]}switch(u?(m=u.pgInf,f=u.pgHor?"x":"y"):p.dir||(f="h"==W(e)?"x":"y"),i){case"next":case"prev":a=J(null,e,"x"==f,"prev"==i,!1,v,u,m,void 0,!1,void 0,o),h[f]=a.px;break;case"first":a=J(null,e,"x"==f,!1,!1,v,u,m,void 0,!1,0),h[f]=a.px;break;case"last":a=J(null,e,"x"==f,!1,!1,v,u,m,void 0,!1,9999),h[f]=a.px;break;case"next_page":case"prev_page":a=J(null,e,"x"==f,ot(i,"prev"),!1,v,u,m,void 0,!0,void 0,o),h[f]=a.px;break;default:if("string"!=typeof i)h[f]=i;else{function c(){var t=M(n);return 4l.clientWidth||("a"==n.dir||"v"==n.dir)&&l.scrollHeight>l.clientHeight)&&(o=l),o!=document.body&&o!=document.documentElement||(o=null);var r=$(null,n.smooth,.5);0===r?r=!0:void 0===r&&(r=.5),"a"==n.dir&&(n.dir=W(o));var s="h"==n.dir,t=function(t){return"string"==typeof t&&(t=s?t.replace(/start/g,"left").replace(/end/g,"right"):t.replace(/start/g,"top").replace(/end/g,"bottom")),t};e=t(e),a=t(a);var l,u=!1;(n.snap||"").length&&(u="e"==n.snap?{snapTo:function(t,e){return 1==e.progress?1:J(null,e.scroller,s,k<0,!0,n.snap_sel||null,e,!1).p-e.pgTopCover/(e.end-e.start)}}:{snapTo:n.snap.split(",").map(it)},l=$(null,n.snap_dur||0),t=$(null,n.snap_durmax||0),l&&(u.duration=0=(g?_-1:c.length)&&(t=0),t=c[t],h!=t&&(n.pag_pd&&h&&F.play(h,n.pag_pd),n.pag_pa&&t&&F.play(t,n.pag_pa),h=t))},A)});var O=function(t){var e=(t=this.pgPinScrollTrigger||this.scrollTrigger).getVelocity();0!==e&&(k=e),U.seek(this.progress(),t.direction,0),Y&&(t=this.progress(),V.updateProgress(Y,t,t))};r.pin?(H=gsap.timeline({scrollTrigger:r,onUpdate:function(){var t=this.progress()*R.duration();t<.001&&(t=0),R.seek(t,!1)}}),R=gsap.timeline({onUpdate:O}),X=R.pgPinScrollTrigger=H.scrollTrigger,H.to({},100,{},0),R.pause(),gsap.globalTimeline.add(R)):(R=gsap.timeline({scrollTrigger:r,onUpdate:O}),X=R.scrollTrigger),this.st=X,this.st.pgInf=this.inf,this.st.pgHor=s,X.pgTopCover=et(n,"pag_tc",0),X.pgBottomCover=et(n,"pag_bc",0),R.to({},100,{},0),z=[];var E=n.l;if(E&&0=i&&!t.tl.reversed()&&t.tl.reverse()))}),s=i)},this.seekAnimation=function(t,e,a){for(var n=0;n