From 8e11280ee6a4487abc242ad18e1cfebc4e40c00f Mon Sep 17 00:00:00 2001 From: Rogier Mechielsen Date: Tue, 20 Aug 2024 10:47:21 +0200 Subject: [PATCH] first commit --- dist/global.js | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 dist/global.js diff --git a/dist/global.js b/dist/global.js new file mode 100644 index 0000000..d40c883 --- /dev/null +++ b/dist/global.js @@ -0,0 +1,2 @@ +/*! For license information please see global.js.LICENSE.txt */ +!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define("global",[],e):"object"==typeof exports?exports.global=e():t.global=e()}(this,(()=>(()=>{var t={714:function(t){t.exports=function(){function t(t,e){for(var n=0;n1?t>0?"forward":"back":0===t?"popstate":t>0?"back":"forward"},e(t,[{key:"current",get:function(){return this.m[this.P]}},{key:"previous",get:function(){return this.P<1?null:this.m[this.P-1]}},{key:"size",get:function(){return this.m.length}}]),t}(),D=new v,y=function(t,e){try{var n=function(){if(!e.next.html)return Promise.resolve(t).then((function(t){var n=e.next;if(t){var r=g.toElement(t.html);n.namespace=g.getNamespace(r),n.container=g.getContainer(r),n.url=t.url,n.html=t.html,D.update({ns:n.namespace});var i=g.toDocument(t.html);document.title=i.title}}))}();return Promise.resolve(n&&n.then?n.then((function(){})):void 0)}catch(t){return Promise.reject(t)}},_=function t(e,n,r){return e instanceof RegExp?function(t,e){if(!e)return t;for(var n=/\((?:\?<(.*?)>)?(?!\?)/g,r=0,i=n.exec(t.source);i;)e.push({name:i[1]||r++,prefix:"",suffix:"",modifier:"",pattern:""}),i=n.exec(t.source);return t}(e,n):Array.isArray(e)?function(e,n,r){var i=e.map((function(e){return t(e,n,r).source}));return new RegExp("(?:".concat(i.join("|"),")"),d(r))}(e,n,r):function(t,e,n){return function(t,e,n){void 0===n&&(n={});for(var r=n.strict,i=void 0!==r&&r,s=n.start,o=void 0===s||s,a=n.end,u=void 0===a||a,l=n.encode,c=void 0===l?function(t){return t}:l,h=n.delimiter,p=void 0===h?"/#?":h,m=n.endsWith,g="[".concat(f(void 0===m?"":m),"]|$"),v="[".concat(f(p),"]"),D=o?"^":"",y=0,_=t;y<_.length;y++){var w=_[y];if("string"==typeof w)D+=f(c(w));else{var b=f(c(w.prefix)),x=f(c(w.suffix));if(w.pattern)if(e&&e.push(w),b||x)if("+"===w.modifier||"*"===w.modifier){var C="*"===w.modifier?"?":"";D+="(?:".concat(b,"((?:").concat(w.pattern,")(?:").concat(x).concat(b,"(?:").concat(w.pattern,"))*)").concat(x,")").concat(C)}else D+="(?:".concat(b,"(").concat(w.pattern,")").concat(x,")").concat(w.modifier);else D+="+"===w.modifier||"*"===w.modifier?"((?:".concat(w.pattern,")").concat(w.modifier,")"):"(".concat(w.pattern,")").concat(w.modifier);else D+="(?:".concat(b).concat(x,")").concat(w.modifier)}}if(u)i||(D+="".concat(v,"?")),D+=n.endsWith?"(?=".concat(g,")"):"$";else{var E=t[t.length-1],F="string"==typeof E?v.indexOf(E[E.length-1])>-1:void 0===E;i||(D+="(?:".concat(v,"(?=").concat(g,"))?")),F||(D+="(?=".concat(v,"|").concat(g,")"))}return new RegExp(D,d(n))}(function(t,e){void 0===e&&(e={});for(var n=function(t){for(var e=[],n=0;n=48&&u<=57||u>=65&&u<=90||u>=97&&u<=122||95===u))break;o+=t[a++]}if(!o)throw new TypeError("Missing parameter name at ".concat(n));e.push({type:"NAME",index:n,value:o}),n=a}else e.push({type:"CLOSE",index:n,value:t[n++]});else e.push({type:"OPEN",index:n,value:t[n++]});else e.push({type:"ESCAPED_CHAR",index:n++,value:t[n++]});else e.push({type:"MODIFIER",index:n,value:t[n++]})}return e.push({type:"END",index:n,value:""}),e}(t),r=e.prefixes,i=void 0===r?"./":r,s="[^".concat(f(e.delimiter||"/#?"),"]+?"),o=[],a=0,u=0,l="",c=function(t){if(u=0&&(i=s.slice(a+1),s=s.slice(0,a));var u=s.indexOf("?");return u>=0&&(o=E(s.slice(u+1)),s=s.slice(0,u)),{hash:i,path:s,port:e,query:o}},E=function(t){return t.split("&").reduce((function(t,e){var n=e.split("=");return t[n[0]]=n[1],t}),{})},F=function(t){return void 0===t&&(t=window.location.href),t.replace(/(\/#.*|\/|#.*)$/,"")},T={__proto__:null,getHref:function(){return window.location.href},getAbsoluteHref:function(t,e){return void 0===e&&(e=document.baseURI),new URL(t,e).href},getOrigin:b,getPort:x,getPath:function(t){return void 0===t&&(t=window.location.href),C(t).path},getQuery:function(t,e){return void 0===e&&(e=!1),e?JSON.stringify(C(t).query):C(t).query},getHash:function(t){return C(t).hash},parse:C,parseQuery:E,clean:F};function k(t,e,r,i,s){return void 0===e&&(e=2e3),new Promise((function(o,a){var u=new XMLHttpRequest;u.onreadystatechange=function(){if(u.readyState===XMLHttpRequest.DONE)if(200===u.status){var e=""!==u.responseURL&&u.responseURL!==t?u.responseURL:t;o({html:u.responseText,url:n({href:e},C(e))}),i.update(t,{status:"fulfilled",target:e})}else if(u.status){var s={status:u.status,statusText:u.statusText};r(t,s),a(s),i.update(t,{status:"rejected"})}},u.ontimeout=function(){var n=new Error("Timeout error ["+e+"]");r(t,n),a(n),i.update(t,{status:"rejected"})},u.onerror=function(){var e=new Error("Fetch error");r(t,e),a(e),i.update(t,{status:"rejected"})},u.open("GET",t),u.timeout=e,u.setRequestHeader("Accept","text/html,application/xhtml+xml,application/xml"),u.setRequestHeader("x-barba","yes"),s.all().forEach((function(t,e){u.setRequestHeader(e,t)})),u.send()}))}function S(t,e){return void 0===e&&(e={}),function(){var n=arguments,r=!1,i=new Promise((function(i,s){e.async=function(){return r=!0,function(t,e){t?s(t):i(e)}};var o=t.apply(e,[].slice.call(n));r||(function(t){return!!t&&("object"==typeof t||"function"==typeof t)&&"function"==typeof t.then}(o)?o.then(i,s):i(o))}));return i}}var A=function(t){function e(){var e;return(e=t.call(this)||this).logger=new h("@barba/core"),e.all=["ready","page","reset","currentAdded","currentRemoved","nextAdded","nextRemoved","beforeOnce","once","afterOnce","before","beforeLeave","leave","afterLeave","beforeEnter","enter","afterEnter","after"],e.registered=new Map,e.init(),e}r(e,t);var n=e.prototype;return n.init=function(){var t=this;this.registered.clear(),this.all.forEach((function(e){t[e]||(t[e]=function(n,r){t.registered.has(e)||t.registered.set(e,new Set),t.registered.get(e).add({ctx:r||{},fn:n})})}))},n.do=function(t){var e=arguments,n=this;if(this.registered.has(t)){var r=Promise.resolve();return this.registered.get(t).forEach((function(t){r=r.then((function(){return S(t.fn,t.ctx).apply(void 0,[].slice.call(e,1))}))})),r.catch((function(e){n.logger.debug("Hook error ["+t+"]"),n.logger.error(e)}))}return Promise.resolve()},n.clear=function(){var t=this;this.all.forEach((function(e){delete t[e]})),this.init()},n.help=function(){this.logger.info("Available hooks: "+this.all.join(","));var t=[];this.registered.forEach((function(e,n){return t.push(n)})),this.logger.info("Registered hooks: "+t.join(","))},e}(l),P=new A,O=function(){function t(t){if(this.k=void 0,this.O=[],"boolean"==typeof t)this.k=t;else{var e=Array.isArray(t)?t:[t];this.O=e.map((function(t){return _(t)}))}}return t.prototype.checkHref=function(t){if("boolean"==typeof this.k)return this.k;var e=C(t).path;return this.O.some((function(t){return null!==t.exec(e)}))},t}(),M=function(t){function e(e){var n;return(n=t.call(this,e)||this).T=new Map,n}r(e,t);var i=e.prototype;return i.set=function(t,e,n,r,i){return this.T.set(t,{action:n,request:e,status:r,target:null!=i?i:t}),{action:n,request:e,status:r,target:i}},i.get=function(t){return this.T.get(t)},i.getRequest=function(t){return this.T.get(t).request},i.getAction=function(t){return this.T.get(t).action},i.getStatus=function(t){return this.T.get(t).status},i.getTarget=function(t){return this.T.get(t).target},i.has=function(t){return!this.checkHref(t)&&this.T.has(t)},i.delete=function(t){return this.T.delete(t)},i.update=function(t,e){var r=n({},this.T.get(t),e);return this.T.set(t,r),r},e}(O),B=function(){function t(){this.A=new Map}var e=t.prototype;return e.set=function(t,e){return this.A.set(t,e),{name:e}},e.get=function(t){return this.A.get(t)},e.all=function(){return this.A},e.has=function(t){return this.A.has(t)},e.delete=function(t){return this.A.delete(t)},e.clear=function(){return this.A.clear()},t}(),L=function(){return!window.history.pushState},I=function(t){return!t.el||!t.href},N=function(t){var e=t.event;return e.which>1||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey},R=function(t){var e=t.el;return e.hasAttribute("target")&&"_blank"===e.target},z=function(t){var e=t.el;return void 0!==e.protocol&&window.location.protocol!==e.protocol||void 0!==e.hostname&&window.location.hostname!==e.hostname},q=function(t){var e=t.el;return void 0!==e.port&&x()!==x(e.href)},V=function(t){var e=t.el;return e.getAttribute&&"string"==typeof e.getAttribute("download")},j=function(t){return t.el.hasAttribute(p.prefix+"-"+p.prevent)},H=function(t){return Boolean(t.el.closest("["+p.prefix+"-"+p.prevent+'="all"]'))},X=function(t){var e=t.href;return F(e)===F()&&x(e)===x()},Y=function(t){function e(e){var n;return(n=t.call(this,e)||this).suite=[],n.tests=new Map,n.init(),n}r(e,t);var n=e.prototype;return n.init=function(){this.add("pushState",L),this.add("exists",I),this.add("newTab",N),this.add("blank",R),this.add("corsDomain",z),this.add("corsPort",q),this.add("download",V),this.add("preventSelf",j),this.add("preventAll",H),this.add("sameUrl",X,!1)},n.add=function(t,e,n){void 0===n&&(n=!0),this.tests.set(t,e),n&&this.suite.push(t)},n.run=function(t,e,n,r){return this.tests.get(t)({el:e,event:n,href:r})},n.checkLink=function(t,e,n){var r=this;return this.suite.some((function(i){return r.run(i,t,e,n)}))},e}(O),W=function(t){function e(n,r){var i;return void 0===r&&(r="Barba error"),(i=t.call.apply(t,[this].concat([].slice.call(arguments,2)))||this).error=void 0,i.label=void 0,i.error=n,i.label=r,Error.captureStackTrace&&Error.captureStackTrace(function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(i),e),i.name="BarbaError",i}return r(e,t),e}(a(Error)),U=function(){function t(t){void 0===t&&(t=[]),this.logger=new h("@barba/core"),this.all=[],this.page=[],this.once=[],this.j=[{name:"namespace",type:"strings"},{name:"custom",type:"function"}],t&&(this.all=this.all.concat(t)),this.update()}var e=t.prototype;return e.add=function(t,e){"rule"===t?this.j.splice(e.position||0,0,e.value):this.all.push(e),this.update()},e.resolve=function(t,e){var n=this;void 0===e&&(e={});var r=e.once?this.once:this.page;r=r.filter(e.self?function(t){return t.name&&"self"===t.name}:function(t){return!t.name||"self"!==t.name});var i=new Map,s=r.find((function(r){var s=!0,o={};return e.self&&"self"===r.name?(i.set(r,o),!0):(n.j.reverse().forEach((function(e){s&&(s=n.M(r,e,t,o),r.from&&r.to&&(s=n.M(r,e,t,o,"from")&&n.M(r,e,t,o,"to")),r.from&&!r.to&&(s=n.M(r,e,t,o,"from")),!r.from&&r.to&&(s=n.M(r,e,t,o,"to")))})),i.set(r,o),s)})),o=i.get(s),a=[];if(a.push(e.once?"once":"page"),e.self&&a.push("self"),o){var u,l=[s];Object.keys(o).length>0&&l.push(o),(u=this.logger).info.apply(u,["Transition found ["+a.join(",")+"]"].concat(l))}else this.logger.info("No transition found ["+a.join(",")+"]");return s},e.update=function(){var t=this;this.all=this.all.map((function(e){return t.N(e)})).sort((function(t,e){return t.priority-e.priority})).reverse().map((function(t){return delete t.priority,t})),this.page=this.all.filter((function(t){return void 0!==t.leave||void 0!==t.enter})),this.once=this.all.filter((function(t){return void 0!==t.once}))},e.M=function(t,e,n,r,i){var s=!0,o=!1,a=t,u=e.name,l=u,c=u,h=u,f=i?a[i]:a,d="to"===i?n.next:n.current;if(i?f&&f[u]:f[u]){switch(e.type){case"strings":default:var p=Array.isArray(f[l])?f[l]:[f[l]];d[l]&&-1!==p.indexOf(d[l])&&(o=!0),-1===p.indexOf(d[l])&&(s=!1);break;case"object":var m=Array.isArray(f[c])?f[c]:[f[c]];d[c]?(d[c].name&&-1!==m.indexOf(d[c].name)&&(o=!0),-1===m.indexOf(d[c].name)&&(s=!1)):s=!1;break;case"function":f[h](n)?o=!0:s=!1}o&&(i?(r[i]=r[i]||{},r[i][u]=a[i][u]):r[u]=a[u])}return s},e.S=function(t,e,n){var r=0;return(t[e]||t.from&&t.from[e]||t.to&&t.to[e])&&(r+=Math.pow(10,n),t.from&&t.from[e]&&(r+=1),t.to&&t.to[e]&&(r+=2)),r},e.N=function(t){var e=this;t.priority=0;var n=0;return this.j.forEach((function(r,i){n+=e.S(t,r.name,i+1)})),t.priority=n,t},t}();function G(t,e){try{var n=t()}catch(t){return e(t)}return n&&n.then?n.then(void 0,e):n}var $=function(){function t(t){void 0===t&&(t=[]),this.logger=new h("@barba/core"),this.store=void 0,this.C=!1,this.store=new U(t)}var n=t.prototype;return n.get=function(t,e){return this.store.resolve(t,e)},n.doOnce=function(t){var e=t.data,n=t.transition;try{var r=function(){i.C=!1},i=this,s=n||{};i.C=!0;var o=G((function(){return Promise.resolve(i.L("beforeOnce",e,s)).then((function(){return Promise.resolve(i.once(e,s)).then((function(){return Promise.resolve(i.L("afterOnce",e,s)).then((function(){}))}))}))}),(function(t){i.C=!1,i.logger.debug("Transition error [before/after/once]"),i.logger.error(t)}));return Promise.resolve(o&&o.then?o.then(r):r())}catch(t){return Promise.reject(t)}},n.doPage=function(t){var e=t.data,n=t.transition,r=t.page,i=t.wrapper;try{var s=function(t){o.C=!1},o=this,a=n||{},u=!0===a.sync||!1;o.C=!0;var l=G((function(){function t(){return Promise.resolve(o.L("before",e,a)).then((function(){function t(t){return Promise.resolve(o.remove(e)).then((function(){return Promise.resolve(o.L("after",e,a)).then((function(){}))}))}var n=function(){if(u)return G((function(){return Promise.resolve(o.add(e,i)).then((function(){return Promise.resolve(o.L("beforeLeave",e,a)).then((function(){return Promise.resolve(o.L("beforeEnter",e,a)).then((function(){return Promise.resolve(Promise.all([o.leave(e,a),o.enter(e,a)])).then((function(){return Promise.resolve(o.L("afterLeave",e,a)).then((function(){return Promise.resolve(o.L("afterEnter",e,a)).then((function(){}))}))}))}))}))}))}),(function(t){if(o.H(t))throw new W(t,"Transition error [sync]")}));var t=function(t){return G((function(){var t=function(){if(!1!==n)return Promise.resolve(o.add(e,i)).then((function(){return Promise.resolve(o.L("beforeEnter",e,a)).then((function(){return Promise.resolve(o.enter(e,a,n)).then((function(){return Promise.resolve(o.L("afterEnter",e,a)).then((function(){}))}))}))}))}();if(t&&t.then)return t.then((function(){}))}),(function(t){if(o.H(t))throw new W(t,"Transition error [before/after/enter]")}))},n=!1,s=G((function(){return Promise.resolve(o.L("beforeLeave",e,a)).then((function(){return Promise.resolve(Promise.all([o.leave(e,a),y(r,e)]).then((function(t){return t[0]}))).then((function(t){return n=t,Promise.resolve(o.L("afterLeave",e,a)).then((function(){}))}))}))}),(function(t){if(o.H(t))throw new W(t,"Transition error [before/after/leave]")}));return s&&s.then?s.then(t):t()}();return n&&n.then?n.then(t):t()}))}var n=function(){if(u)return Promise.resolve(y(r,e)).then((function(){}))}();return n&&n.then?n.then(t):t()}),(function(t){if(o.C=!1,t.name&&"BarbaError"===t.name)throw o.logger.debug(t.label),o.logger.error(t.error),t;throw o.logger.debug("Transition error [page]"),o.logger.error(t),t}));return Promise.resolve(l&&l.then?l.then(s):s())}catch(t){return Promise.reject(t)}},n.once=function(t,e){try{return Promise.resolve(P.do("once",t,e)).then((function(){return e.once?S(e.once,e)(t):Promise.resolve()}))}catch(t){return Promise.reject(t)}},n.leave=function(t,e){try{return Promise.resolve(P.do("leave",t,e)).then((function(){return e.leave?S(e.leave,e)(t):Promise.resolve()}))}catch(t){return Promise.reject(t)}},n.enter=function(t,e,n){try{return Promise.resolve(P.do("enter",t,e)).then((function(){return e.enter?S(e.enter,e)(t,n):Promise.resolve()}))}catch(t){return Promise.reject(t)}},n.add=function(t,e){try{return g.addContainer(t.next.container,e),P.do("nextAdded",t),Promise.resolve()}catch(t){return Promise.reject(t)}},n.remove=function(t){try{return g.removeContainer(t.current.container),P.do("currentRemoved",t),Promise.resolve()}catch(t){return Promise.reject(t)}},n.H=function(t){return t.message?!/Timeout error|Fetch error/.test(t.message):!t.status},n.L=function(t,e,n){try{return Promise.resolve(P.do(t,e,n)).then((function(){return n[t]?S(n[t],n)(e):Promise.resolve()}))}catch(t){return Promise.reject(t)}},e(t,[{key:"isRunning",get:function(){return this.C},set:function(t){this.C=t}},{key:"hasOnce",get:function(){return this.store.once.length>0}},{key:"hasSelf",get:function(){return this.store.all.some((function(t){return"self"===t.name}))}},{key:"shouldWait",get:function(){return this.store.all.some((function(t){return t.to&&!t.to.route||t.sync}))}}]),t}(),Q=function(){function t(t){var e=this;this.names=["beforeLeave","afterLeave","beforeEnter","afterEnter"],this.byNamespace=new Map,0!==t.length&&(t.forEach((function(t){e.byNamespace.set(t.namespace,t)})),this.names.forEach((function(t){P[t](e._(t))})))}return t.prototype._=function(t){var e=this;return function(n){var r=t.match(/enter/i)?n.next:n.current,i=e.byNamespace.get(r.namespace);return i&&i[t]?S(i[t],i)(n):Promise.resolve()}},t}();Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector),Element.prototype.closest||(Element.prototype.closest=function(t){var e=this;do{if(e.matches(t))return e;e=e.parentElement||e.parentNode}while(null!==e&&1===e.nodeType);return null});var J={container:null,html:"",namespace:"",url:{hash:"",href:"",path:"",port:null,query:{}}},K=function(){function t(){this.version="2.10.0",this.schemaPage=J,this.Logger=h,this.logger=new h("@barba/core"),this.plugins=[],this.timeout=void 0,this.cacheIgnore=void 0,this.cacheFirstPage=void 0,this.prefetchIgnore=void 0,this.preventRunning=void 0,this.hooks=P,this.cache=void 0,this.headers=void 0,this.prevent=void 0,this.transitions=void 0,this.views=void 0,this.dom=g,this.helpers=w,this.history=D,this.request=k,this.url=T,this.D=void 0,this.B=void 0,this.q=void 0,this.F=void 0}var r=t.prototype;return r.use=function(t,e){var n=this.plugins;n.indexOf(t)>-1?this.logger.warn("Plugin ["+t.name+"] already installed."):"function"==typeof t.install?(t.install(this,e),n.push(t)):this.logger.warn("Plugin ["+t.name+'] has no "install" method.')},r.init=function(t){var e=void 0===t?{}:t,r=e.transitions,i=void 0===r?[]:r,s=e.views,o=void 0===s?[]:s,a=e.schema,u=void 0===a?p:a,l=e.requestError,c=e.timeout,f=void 0===c?2e3:c,d=e.cacheIgnore,m=void 0!==d&&d,g=e.cacheFirstPage,v=void 0!==g&&g,D=e.prefetchIgnore,y=void 0!==D&&D,_=e.preventRunning,w=void 0!==_&&_,b=e.prevent,x=void 0===b?null:b,C=e.debug,E=e.logLevel;if(h.setLevel(!0===(void 0!==C&&C)?"debug":void 0===E?"off":E),this.logger.info(this.version),Object.keys(u).forEach((function(t){p[t]&&(p[t]=u[t])})),this.B=l,this.timeout=f,this.cacheIgnore=m,this.cacheFirstPage=v,this.prefetchIgnore=y,this.preventRunning=w,this.q=this.dom.getWrapper(),!this.q)throw new Error("[@barba/core] No Barba wrapper found");this.I();var F=this.data.current;if(!F.container)throw new Error("[@barba/core] No Barba container found");if(this.cache=new M(m),this.headers=new B,this.prevent=new Y(y),this.transitions=new $(i),this.views=new Q(o),null!==x){if("function"!=typeof x)throw new Error("[@barba/core] Prevent should be a function");this.prevent.add("preventCustom",x)}this.history.init(F.url.href,F.namespace),v&&this.cache.set(F.url.href,Promise.resolve({html:F.html,url:F.url}),"init","fulfilled"),this.U=this.U.bind(this),this.$=this.$.bind(this),this.X=this.X.bind(this),this.G(),this.plugins.forEach((function(t){return t.init()}));var T=this.data;T.trigger="barba",T.next=T.current,T.current=n({},this.schemaPage),this.hooks.do("ready",T),this.once(T),this.I()},r.destroy=function(){this.I(),this.J(),this.history.clear(),this.hooks.clear(),this.plugins=[]},r.force=function(t){window.location.assign(t)},r.go=function(t,e,n){var r;if(void 0===e&&(e="barba"),this.F=null,this.transitions.isRunning)this.force(t);else if(!(r="popstate"===e?this.history.current&&this.url.getPath(this.history.current.url)===this.url.getPath(t)&&this.url.getQuery(this.history.current.url,!0)===this.url.getQuery(t,!0):this.prevent.run("sameUrl",null,null,t))||this.transitions.hasSelf)return e=this.history.change(this.cache.has(t)?this.cache.get(t).target:t,e,n),n&&(n.stopPropagation(),n.preventDefault()),this.page(t,e,null!=n?n:void 0,r)},r.once=function(t){try{var e=this;return Promise.resolve(e.hooks.do("beforeEnter",t)).then((function(){function n(){return Promise.resolve(e.hooks.do("afterEnter",t)).then((function(){}))}var r=function(){if(e.transitions.hasOnce){var n=e.transitions.get(t,{once:!0});return Promise.resolve(e.transitions.doOnce({transition:n,data:t})).then((function(){}))}}();return r&&r.then?r.then(n):n()}))}catch(t){return Promise.reject(t)}},r.page=function(t,e,r,i){try{var s,o=function(){var t=a.data;return Promise.resolve(a.hooks.do("page",t)).then((function(){var e=function(e,n){try{var r=(o=a.transitions.get(t,{once:!1,self:i}),Promise.resolve(a.transitions.doPage({data:t,page:s,transition:o,wrapper:a.q})).then((function(){a.I()})))}catch(t){return n()}var o;return r&&r.then?r.then(void 0,n):r}(0,(function(){0===h.getLevel()&&a.force(t.next.url.href)}));if(e&&e.then)return e.then((function(){}))}))},a=this;if(a.data.next.url=n({href:t},a.url.parse(t)),a.data.trigger=e,a.data.event=r,a.cache.has(t))s=a.cache.update(t,{action:"click"}).request;else{var u=a.request(t,a.timeout,a.onRequestError.bind(a,e),a.cache,a.headers);u.then((function(n){n.url.href!==t&&a.history.add(n.url.href,e,"replace")})),s=a.cache.set(t,u,"click","pending").request}var l=function(){if(a.transitions.shouldWait)return Promise.resolve(y(s,a.data)).then((function(){}))}();return Promise.resolve(l&&l.then?l.then(o):o())}catch(t){return Promise.reject(t)}},r.onRequestError=function(t){this.transitions.isRunning=!1;var e=[].slice.call(arguments,1),n=e[0],r=e[1],i=this.cache.getAction(n);return this.cache.delete(n),this.B&&!1===this.B(t,i,n,r)||"click"===i&&this.force(n),!1},r.prefetch=function(t){var e=this;t=this.url.getAbsoluteHref(t),this.cache.has(t)||this.cache.set(t,this.request(t,this.timeout,this.onRequestError.bind(this,"barba"),this.cache,this.headers).catch((function(t){e.logger.error(t)})),"prefetch","pending")},r.G=function(){!0!==this.prefetchIgnore&&(document.addEventListener("mouseover",this.U),document.addEventListener("touchstart",this.U)),document.addEventListener("click",this.$),window.addEventListener("popstate",this.X)},r.J=function(){!0!==this.prefetchIgnore&&(document.removeEventListener("mouseover",this.U),document.removeEventListener("touchstart",this.U)),document.removeEventListener("click",this.$),window.removeEventListener("popstate",this.X)},r.U=function(t){var e=this,n=this.W(t);if(n){var r=this.url.getAbsoluteHref(this.dom.getHref(n));this.prevent.checkHref(r)||this.cache.has(r)||this.cache.set(r,this.request(r,this.timeout,this.onRequestError.bind(this,n),this.cache,this.headers).catch((function(t){e.logger.error(t)})),"enter","pending")}},r.$=function(t){this.F=t;var e=this.W(t);if(e)return this.transitions.isRunning&&this.preventRunning?(t.preventDefault(),void t.stopPropagation()):void this.go(this.dom.getHref(e),e,t)},r.X=function(t){this.F&&!this.W(this.F)||this.go(this.url.getHref(),"popstate",t)},r.W=function(t){for(var e=t.target;e&&!this.dom.getHref(e);)e=e.parentNode;if(e&&!this.prevent.checkLink(e,t,this.dom.getHref(e)))return e},r.I=function(){var t=this.url.getHref(),e={container:this.dom.getContainer(),html:this.dom.getHtml(),namespace:this.dom.getNamespace(),url:n({href:t},this.url.parse(t))};this.D={current:e,event:void 0,next:n({},this.schemaPage),trigger:void 0},this.hooks.do("reset",this.data)},e(t,[{key:"data",get:function(){return this.D}},{key:"wrapper",get:function(){return this.q}}]),t}();return new K}()},137:function(t){var e,n;e="undefined"!=typeof window?window:this,n=function(){function t(){}let e=t.prototype;return e.on=function(t,e){if(!t||!e)return this;let n=this._events=this._events||{},r=n[t]=n[t]||[];return r.includes(e)||r.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 r=n.indexOf(e);return-1!=r&&n.splice(r,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 r=this._onceEvents&&this._onceEvents[t];for(let i of n)r&&r[i]&&(this.off(t,i),delete r[i]),i.apply(this,e);return this},e.allOff=function(){return delete this._events,delete this._onceEvents,this},t},t.exports?t.exports=n():e.EvEmitter=n()},943:function(t,e,n){!function(e,r){t.exports?t.exports=r(e,n(137)):e.imagesLoaded=r(e,e.EvEmitter)}("undefined"!=typeof window?window:this,(function(t,e){let n=t.jQuery,r=t.console;function i(t,e,s){if(!(this instanceof i))return new i(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))):r.error(`Bad element for imagesLoaded ${o||t}`)}i.prototype=Object.create(e.prototype),i.prototype.getImages=function(){this.images=[],this.elements.forEach(this.addElementImages,this)};const s=[1,9,11];i.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 u(t,e){this.url=t,this.element=e,this.img=new Image}return i.prototype.addElementBackgroundImages=function(t){let e=getComputedStyle(t);if(!e)return;let n=o.exec(e.backgroundImage);for(;null!==n;){let r=n&&n[2];r&&this.addBackground(r,t),n=o.exec(e.backgroundImage)}},i.prototype.addImage=function(t){let e=new a(t);this.images.push(e)},i.prototype.addBackground=function(t,e){let n=new u(t,e);this.images.push(n)},i.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()}))},i.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&&r&&r.log(`progress: ${n}`,t,e)},i.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,r="PICTURE"===n.nodeName?n:this.img;this.emitEvent("progress",[this,r,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)},u.prototype=Object.create(a.prototype),u.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())},u.prototype.unbindEvents=function(){this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},u.prototype.confirm=function(t,e){this.isLoaded=t,this.emitEvent("progress",[this,this.element,e])},i.makeJQueryPlugin=function(e){(e=e||t.jQuery)&&(n=e,n.fn.imagesLoaded=function(t,e){return new i(this,t,e).jqDeferred.promise(n(this))})},i.makeJQueryPlugin(),i}))}},e={};function n(r){var i=e[r];if(void 0!==i)return i.exports;var s=e[r]={exports:{}};return t[r].call(s.exports,s,s.exports,n),s.exports}n.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return n.d(e,{a:e}),e},n.d=(t,e)=>{for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var r={};return(()=>{"use strict";function t(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function e(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}var r,i,s,o,a,u,l,c,h,f,d,p,m,g,v,D,y,_={autoSleep:120,force3D:"auto",nullTargetWarn:1,units:{lineHeight:""}},w={duration:.5,overwrite:!1,delay:0},b=1e8,x=1e-8,C=2*Math.PI,E=C/4,F=0,T=Math.sqrt,k=Math.cos,S=Math.sin,A=function(t){return"string"==typeof t},P=function(t){return"function"==typeof t},O=function(t){return"number"==typeof t},M=function(t){return void 0===t},B=function(t){return"object"==typeof t},L=function(t){return!1!==t},I=function(){return"undefined"!=typeof window},N=function(t){return P(t)||A(t)},R="function"==typeof ArrayBuffer&&ArrayBuffer.isView||function(){},z=Array.isArray,q=/(?:-?\.?\d|\.)+/gi,V=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,j=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,H=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,X=/[+-]=-?[.\d]+/,Y=/[^,'"\[\]\s]+/gi,W=/^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i,U={},G={},$=function(t){return(G=Ct(t,U))&&En},Q=function(t,e){return console.warn("Invalid property",t,"set to",e,"Missing plugin? gsap.registerPlugin()")},J=function(t,e){return!e&&console.warn(t)},K=function(t,e){return t&&(U[t]=e)&&G&&(G[t]=e)||U},Z=function(){return 0},tt={suppressEvents:!0,isStart:!0,kill:!1},et={suppressEvents:!0,kill:!1},nt={suppressEvents:!0},rt={},it=[],st={},ot={},at={},ut=30,lt=[],ct="",ht=function(t){var e,n,r=t[0];if(B(r)||P(r)||(t=[t]),!(e=(r._gsap||{}).harness)){for(n=lt.length;n--&&!lt[n].targetTest(r););e=lt[n]}for(n=t.length;n--;)t[n]&&(t[n]._gsap||(t[n]._gsap=new Re(t[n],e)))||t.splice(n,1);return t},ft=function(t){return t._gsap||ht(ee(t))[0]._gsap},dt=function(t,e,n){return(n=t[e])&&P(n)?t[e]():M(n)&&t.getAttribute&&t.getAttribute(e)||n},pt=function(t,e){return(t=t.split(",")).forEach(e)||t},mt=function(t){return Math.round(1e5*t)/1e5||0},gt=function(t){return Math.round(1e7*t)/1e7||0},vt=function(t,e){var n=e.charAt(0),r=parseFloat(e.substr(2));return t=parseFloat(t),"+"===n?t+r:"-"===n?t-r:"*"===n?t*r:t/r},Dt=function(t,e){for(var n=e.length,r=0;t.indexOf(e[r])<0&&++rs;)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[r]=e,e._prev=o,e.parent=e._dp=t,e},St=function(t,e,n,r){void 0===n&&(n="_first"),void 0===r&&(r="_last");var i=e._prev,s=e._next;i?i._next=s:t[n]===e&&(t[n]=s),s?s._prev=i:t[r]===e&&(t[r]=i),e._next=e._prev=e.parent=null},At=function(t,e){t.parent&&(!e||t.parent.autoRemoveChildren)&&t.parent.remove&&t.parent.remove(t),t._act=0},Pt=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},Ot=function(t,e,n,r){return t._startAt&&(i?t._startAt.revert(et):t.vars.immediateRender&&!t.vars.autoRevert||t._startAt.render(e,!0,r))},Mt=function t(e){return!e||e._ts&&t(e.parent)},Bt=function(t){return t._repeat?Lt(t._tTime,t=t.duration()+t._rDelay)*t:0},Lt=function(t,e){var n=Math.floor(t/=e);return t&&n===t?n-1:n},It=function(t,e){return(t-e._start)*e._ts+(e._ts>=0?0:e._dirty?e.totalDuration():e._tDur)},Nt=function(t){return t._end=gt(t._start+(t._tDur/Math.abs(t._ts||t._rts||x)||0))},Rt=function(t,e){var n=t._dp;return n&&n.smoothChildTiming&&t._ts&&(t._start=gt(n._time-(t._ts>0?e/t._ts:((t._dirty?t.totalDuration():t._tDur)-e)/-t._ts)),Nt(t),n._dirty||Pt(n,t)),t},zt=function(t,e){var n;if((e._time||!e._dur&&e._initted||e._startx)&&e.render(n,!0)),Pt(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}},qt=function(t,e,n,r){return e.parent&&At(e),e._start=gt((O(n)?n:n||t!==o?Gt(t,n,e):t._time)+e._delay),e._end=gt(e._start+(e.totalDuration()/Math.abs(e.timeScale())||0)),kt(t,e,"_first","_last",t._sort?"_start":0),Xt(e)||(t._recent=e),r||zt(t,e),t._ts<0&&Rt(t,t._tTime),t},Vt=function(t,e){return(U.ScrollTrigger||Q("scrollTrigger",e))&&U.ScrollTrigger.create(e,t)},jt=function(t,e,n,r,s){return We(t,e,s),t._initted?!n&&t._pt&&!i&&(t._dur&&!1!==t.vars.lazy||!t._dur&&t.vars.lazy)&&h!==Ee.frame?(it.push(t),t._lazy=[s,r],1):void 0:1},Ht=function t(e){var n=e.parent;return n&&n._ts&&n._initted&&!n._lock&&(n.rawTime()<0||t(n))},Xt=function(t){var e=t.data;return"isFromStart"===e||"isStart"===e},Yt=function(t,e,n,r){var i=t._repeat,s=gt(e)||0,o=t._tTime/t._tDur;return o&&!r&&(t._time*=s/t._dur),t._dur=s,t._tDur=i?i<0?1e10:gt(s*(i+1)+t._rDelay*i):s,o>0&&!r&&Rt(t,t._tTime=t._tDur*o),t.parent&&Nt(t),n||Pt(t.parent,t),t},Wt=function(t){return t instanceof qe?Pt(t):Yt(t,t._dur)},Ut={_start:0,endTime:Z,totalDuration:Z},Gt=function t(e,n,r){var i,s,o,a=e.labels,u=e._recent||Ut,l=e.duration()>=b?u.endTime(!1):e._dur;return A(n)&&(isNaN(n)||n in a)?(s=n.charAt(0),o="%"===n.substr(-1),i=n.indexOf("="),"<"===s||">"===s?(i>=0&&(n=n.replace(/=/,"")),("<"===s?u._start:u.endTime(u._repeat>=0))+(parseFloat(n.substr(1))||0)*(o?(i<0?u:r).totalDuration()/100:1)):i<0?(n in a||(a[n]=l),a[n]):(s=parseFloat(n.charAt(i-1)+n.substr(i+1)),o&&r&&(s=s/100*(z(r)?r[0]:r).totalDuration()),i>1?t(e,n.substr(0,i-1),r)+s:l+s)):null==n?l:+n},$t=function(t,e,n){var r,i,s=O(e[1]),o=(s?2:1)+(t<2?0:1),a=e[o];if(s&&(a.duration=e[1]),a.parent=n,t){for(r=a,i=n;i&&!("immediateRender"in r);)r=i.vars.defaults||{},i=L(i.vars.inherit)&&i.parent;a.immediateRender=L(r.immediateRender),t<2?a.runBackwards=1:a.startAt=e[o-1]}return new Je(e[0],a,e[o+1])},Qt=function(t,e){return t||0===t?e(t):e},Jt=function(t,e,n){return ne?e:n},Kt=function(t,e){return A(t)&&(e=W.exec(t))?e[1]:""},Zt=[].slice,te=function(t,e){return t&&B(t)&&"length"in t&&(!e&&!t.length||t.length-1 in t&&B(t[0]))&&!t.nodeType&&t!==a},ee=function(t,e,n){return s&&!e&&s.selector?s.selector(t):!A(t)||n||!u&&Fe()?z(t)?function(t,e,n){return void 0===n&&(n=[]),t.forEach((function(t){var r;return A(t)&&!e||te(t,1)?(r=n).push.apply(r,ee(t)):n.push(t)}))||n}(t,n):te(t)?Zt.call(t,0):t?[t]:[]:Zt.call((e||l).querySelectorAll(t),0)},ne=function(t){return t=ee(t)[0]||J("Invalid scope")||{},function(e){var n=t.current||t.nativeElement||t;return ee(e,n.querySelectorAll?n:n===t?J("Invalid scope")||l.createElement("div"):t)}},re=function(t){return t.sort((function(){return.5-Math.random()}))},ie=function(t){if(P(t))return t;var e=B(t)?t:{each:t},n=Me(e.ease),r=e.from||0,i=parseFloat(e.base)||0,s={},o=r>0&&r<1,a=isNaN(r)||o,u=e.axis,l=r,c=r;return A(r)?l=c={center:.5,edges:.5,end:1}[r]||0:!o&&a&&(l=r[0],c=r[1]),function(t,o,h){var f,d,p,m,g,v,D,y,_,w=(h||e).length,x=s[w];if(!x){if(!(_="auto"===e.grid?0:(e.grid||[1,b])[1])){for(D=-b;D<(D=h[_++].getBoundingClientRect().left)&&_D&&(D=g),gw?w-1:u?"y"===u?w/_:_:Math.max(_,w/_))||0)*("edges"===r?-1:1),x.b=w<0?i-w:i,x.u=Kt(e.amount||e.each)||0,n=n&&w<0?Pe(n):n}return w=(x[t]-x.min)/x.max||0,gt(x.b+(n?n(w):w)*x.v)+x.u}},se=function(t){var e=Math.pow(10,((t+"").split(".")[1]||"").length);return function(n){var r=gt(Math.round(parseFloat(n)/t)*t*e);return(r-r%1)/e+(O(n)?0:Kt(n))}},oe=function(t,e){var n,r,i=z(t);return!i&&B(t)&&(n=i=t.radius||b,t.values?(t=ee(t.values),(r=!O(t[0]))&&(n*=n)):t=se(t.increment)),Qt(e,i?P(t)?function(e){return r=t(e),Math.abs(r-e)<=n?r:e}:function(e){for(var i,s,o=parseFloat(r?e.x:e),a=parseFloat(r?e.y:0),u=b,l=0,c=t.length;c--;)(i=r?(i=t[c].x-o)*i+(s=t[c].y-a)*s:Math.abs(t[c]-o))(i=Math.abs(i))&&(s=r,a=i);return s},fe=function(t,e,n){var r,i,o,a=t.vars,u=a[e],l=s,c=t._ctx;if(u)return r=a[e+"Params"],i=a.callbackScope||t,n&&it.length&&yt(),c&&(s=c),o=r?u.apply(i,r):u.call(i),s=l,o},de=function(t){return At(t),t.scrollTrigger&&t.scrollTrigger.kill(!!i),t.progress()<1&&fe(t,"onInterrupt"),t},pe=[],me=function(t){if(t)if(t=!t.name&&t.default||t,I()||t.headless){var e=t.name,n=P(t),r=e&&!n&&t.init?function(){this._props=[]}:t,i={init:Z,render:an,add:Xe,kill:ln,modifier:un,rawVars:0},s={targetTest:0,get:0,getSetter:nn,aliases:{},register:0};if(Fe(),t!==r){if(ot[e])return;xt(r,xt(Ft(t,i),s)),Ct(r.prototype,Ct(i,Ft(t,s))),ot[r.prop=e]=r,t.targetTest&&(lt.push(r),rt[e]=1),e=("css"===e?"CSS":e.charAt(0).toUpperCase()+e.substr(1))+"Plugin"}K(e,r),t.register&&t.register(En,r,fn)}else pe.push(t)},ge=255,ve={aqua:[0,ge,ge],lime:[0,ge,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,ge],navy:[0,0,128],white:[ge,ge,ge],olive:[128,128,0],yellow:[ge,ge,0],orange:[ge,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[ge,0,0],pink:[ge,192,203],cyan:[0,ge,ge],transparent:[ge,ge,ge,0]},De=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)*ge+.5|0},ye=function(t,e,n){var r,i,s,o,a,u,l,c,h,f,d=t?O(t)?[t>>16,t>>8&ge,t&ge]:0:ve.black;if(!d){if(","===t.substr(-1)&&(t=t.substr(0,t.length-1)),ve[t])d=ve[t];else if("#"===t.charAt(0)){if(t.length<6&&(r=t.charAt(1),i=t.charAt(2),s=t.charAt(3),t="#"+r+r+i+i+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&ge,d&ge,parseInt(t.substr(7),16)/255];d=[(t=parseInt(t.substr(1),16))>>16,t>>8&ge,t&ge]}else if("hsl"===t.substr(0,3))if(d=f=t.match(q),e){if(~t.indexOf("="))return d=t.match(V),n&&d.length<4&&(d[3]=1),d}else o=+d[0]%360/360,a=+d[1]/100,r=2*(u=+d[2]/100)-(i=u<=.5?u*(a+1):u+a-u*a),d.length>3&&(d[3]*=1),d[0]=De(o+1/3,r,i),d[1]=De(o,r,i),d[2]=De(o-1/3,r,i);else d=t.match(q)||ve.transparent;d=d.map(Number)}return e&&!f&&(r=d[0]/ge,i=d[1]/ge,s=d[2]/ge,u=((l=Math.max(r,i,s))+(c=Math.min(r,i,s)))/2,l===c?o=a=0:(h=l-c,a=u>.5?h/(2-l-c):h/(l+c),o=l===r?(i-s)/h+(ih||y<0)&&(p+=y-f),((u=(c=(m+=y)-p)-v)>0||_)&&(d=++r.frame,i=c-1e3*r.time,r.time=c/=1e3,v+=u+(u>=g?4:g-u),l=1),_||(t=e(n)),l)for(s=0;s=e&&s--},_listeners:D}}(),Fe=function(){return!d&&Ee.wake()},Te={},ke=/^[\d.\-M][\d.\-,\s]/,Se=/["']/g,Ae=function(t){for(var e,n,r,i={},s=t.substr(1,t.length-3).split(":"),o=s[0],a=1,u=s.length;a1&&o.config?o.config.apply(null,~t.indexOf("{")?[Ae(s[1])]:(e=t,n=e.indexOf("(")+1,r=e.indexOf(")"),i=e.indexOf("(",n),e.substring(n,~i&&i=1?n:1,s=(r||(e?.3:.45))/(n<1?n:1),o=s/C*(Math.asin(1/i)||0),a=function(t){return 1===t?1:i*Math.pow(2,-10*t)*S((t-o)*s)+1},u="out"===e?a:"in"===e?function(t){return 1-a(1-t)}:Le(a);return s=C/s,u.config=function(n,r){return t(e,n,r)},u},Ne=function t(e,n){void 0===n&&(n=1.70158);var r=function(t){return t?--t*t*((n+1)*t+n)+1:0},i="out"===e?r:"in"===e?function(t){return 1-r(1-t)}:Le(r);return i.config=function(n){return t(e,n)},i};pt("Linear,Quad,Cubic,Quart,Quint,Strong",(function(t,e){var n=e<5?e+1:e;Be(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}))})),Te.Linear.easeNone=Te.none=Te.Linear.easeIn,Be("Elastic",Ie("in"),Ie("out"),Ie()),p=7.5625,v=2*(g=1/(m=2.75)),D=2.5*g,Be("Bounce",(function(t){return 1-y(1-t)}),y=function(t){return t0?t+(t+this._rDelay)*this._repeat:t):this.totalDuration()&&this._dur},e.totalDuration=function(t){return arguments.length?(this._dirty=0,Yt(this,this._repeat<0?t:(t-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},e.totalTime=function(t,e){if(Fe(),!arguments.length)return this._tTime;var n=this._dp;if(n&&n.smoothChildTiming&&this._ts){for(Rt(this,t),!n._dp||n.parent||zt(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&&t0||!this._tDur&&!t)&&qt(this._dp,this,this._start-this._delay)}return(this._tTime!==t||!this._dur&&!e||this._initted&&Math.abs(this._zTime)===x||!t&&!this._initted&&(this.add||this._ptLookup))&&(this._ts||(this._pTime=t),_t(this,t,e)),this},e.time=function(t,e){return arguments.length?this.totalTime(Math.min(this.totalDuration(),t+Bt(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.rawTime()>0?1:0},e.progress=function(t,e){return arguments.length?this.totalTime(this.duration()*(!this._yoyo||1&this.iteration()?t:1-t)+Bt(this),e):this.duration()?Math.min(1,this._time/this._dur):this.rawTime()>0?1:0},e.iteration=function(t,e){var n=this.duration()+this._rDelay;return arguments.length?this.totalTime(this._time+(t-1)*n,e):this._repeat?Lt(this._tTime,n)+1:1},e.timeScale=function(t,e){if(!arguments.length)return-1e-8===this._rts?0:this._rts;if(this._rts===t)return this;var n=this.parent&&this._ts?It(this.parent._time,this):this._tTime;return this._rts=+t||0,this._ts=this._ps||-1e-8===t?0:this._rts,this.totalTime(Jt(-Math.abs(this._delay),this._tDur,n),!1!==e),Nt(this),function(t){for(var e=t.parent;e&&e.parent;)e._dirty=1,e.totalDuration(),e=e.parent;return t}(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):(Fe(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,1===this.progress()&&Math.abs(this._zTime)!==x&&(this._tTime-=x)))),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)&&qt(e,this,t-this._delay),this}return this._start},e.endTime=function(t){return this._start+(L(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?It(e.rawTime(t),this):this._tTime:this._tTime},e.revert=function(t){void 0===t&&(t=nt);var e=i;return i=t,(this._initted||this._startAt)&&(this.timeline&&this.timeline.revert(t),this.totalTime(-.01,t.suppressEvents)),"nested"!==this.data&&!1!==t.kill&&this.kill(),i=e,this},e.globalTime=function(t){for(var e=this,n=arguments.length?t:e.rawTime();e;)n=e._start+n/(Math.abs(e._ts)||1),e=e._dp;return!this.parent&&this._sat?this._sat.globalTime(t):n},e.repeat=function(t){return arguments.length?(this._repeat=t===1/0?-2:t,Wt(this)):-2===this._repeat?1/0:this._repeat},e.repeatDelay=function(t){if(arguments.length){var e=this._time;return this._rDelay=t,Wt(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(Gt(this,t),L(e))},e.restart=function(t,e){return this.play().totalTime(t?-this._delay:0,L(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&&t1?(e?(r[t]=e,n&&(r[t+"Params"]=n),"onUpdate"===t&&(this._onUpdate=e)):delete r[t],this):r[t]},e.then=function(t){var e=this;return new Promise((function(n){var r=P(t)?t:bt,i=function(){var t=e.then;e.then=null,P(r)&&(r=r(e))&&(r.then||r===e)&&(e.then=t),n(r),e.then=t};e._initted&&1===e.totalProgress()&&e._ts>=0||!e._tTime&&e._ts<0?i():e._prom=i}))},e.kill=function(){de(this)},t}();xt(ze.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 qe=function(n){function r(e,r){var i;return void 0===e&&(e={}),(i=n.call(this,e)||this).labels={},i.smoothChildTiming=!!e.smoothChildTiming,i.autoRemoveChildren=!!e.autoRemoveChildren,i._sort=L(e.sortChildren),o&&qt(e.parent||o,t(i),r),e.reversed&&i.reverse(),e.paused&&i.paused(!0),e.scrollTrigger&&Vt(t(i),e.scrollTrigger),i}e(r,n);var s=r.prototype;return s.to=function(t,e,n){return $t(0,arguments,this),this},s.from=function(t,e,n){return $t(1,arguments,this),this},s.fromTo=function(t,e,n,r){return $t(2,arguments,this),this},s.set=function(t,e,n){return e.duration=0,e.parent=this,Tt(e).repeatDelay||(e.repeat=0),e.immediateRender=!!e.immediateRender,new Je(t,e,Gt(this,n),1),this},s.call=function(t,e,n){return qt(this,Je.delayedCall(0,t,e),n)},s.staggerTo=function(t,e,n,r,i,s,o){return n.duration=e,n.stagger=n.stagger||r,n.onComplete=s,n.onCompleteParams=o,n.parent=this,new Je(t,n,Gt(this,i)),this},s.staggerFrom=function(t,e,n,r,i,s,o){return n.runBackwards=1,Tt(n).immediateRender=L(n.immediateRender),this.staggerTo(t,e,n,r,i,s,o)},s.staggerFromTo=function(t,e,n,r,i,s,o,a){return r.startAt=n,Tt(r).immediateRender=L(r.immediateRender),this.staggerTo(t,e,r,i,s,o,a)},s.render=function(t,e,n){var r,s,a,u,l,c,h,f,d,p,m,g,v=this._time,D=this._dirty?this.totalDuration():this._tDur,y=this._dur,_=t<=0?0:gt(t),w=this._zTime<0!=t<0&&(this._initted||!y);if(this!==o&&_>D&&t>=0&&(_=D),_!==this._tTime||n||w){if(v!==this._time&&y&&(_+=this._time-v,t+=this._time-v),r=_,d=this._start,c=!(f=this._ts),w&&(y||(v=this._zTime),(t||!e)&&(this._zTime=t)),this._repeat){if(m=this._yoyo,l=y+this._rDelay,this._repeat<-1&&t<0)return this.totalTime(100*l+t,e,n);if(r=gt(_%l),_===D?(u=this._repeat,r=y):((u=~~(_/l))&&u===_/l&&(r=y,u--),r>y&&(r=y)),p=Lt(this._tTime,l),!v&&this._tTime&&p!==u&&this._tTime-p*l-this._dur<=0&&(p=u),m&&1&u&&(r=y-r,g=1),u!==p&&!this._lock){var b=m&&1&p,C=b===(m&&1&u);if(ue)for(r=t._first;r&&r._start<=n;){if("isPause"===r.data&&r._start>e)return r;r=r._next}else for(r=t._last;r&&r._start>=n;){if("isPause"===r.data&&r._start=v&&t>=0)for(s=this._first;s;){if(a=s._next,(s._act||r>=s._start)&&s._ts&&h!==s){if(s.parent!==this)return this.render(t,e,n);if(s.render(s._ts>0?(r-s._start)*s._ts:(s._dirty?s.totalDuration():s._tDur)+(r-s._start)*s._ts,e,n),r!==this._time||!this._ts&&!c){h=0,a&&(_+=this._zTime=-1e-8);break}}s=a}else{s=this._last;for(var E=t<0?t:r;s;){if(a=s._prev,(s._act||E<=s._end)&&s._ts&&h!==s){if(s.parent!==this)return this.render(t,e,n);if(s.render(s._ts>0?(E-s._start)*s._ts:(s._dirty?s.totalDuration():s._tDur)+(E-s._start)*s._ts,e,n||i&&(s._initted||s._startAt)),r!==this._time||!this._ts&&!c){h=0,a&&(_+=this._zTime=E?-1e-8:x);break}}s=a}}if(h&&!e&&(this.pause(),h.render(r>=v?0:-1e-8)._zTime=r>=v?1:-1,this._ts))return this._start=d,Nt(this),this.render(t,e,n);this._onUpdate&&!e&&fe(this,"onUpdate",!0),(_===D&&this._tTime>=this.totalDuration()||!_&&v)&&(d!==this._start&&Math.abs(f)===Math.abs(this._ts)||this._lock||((t||!y)&&(_===D&&this._ts>0||!_&&this._ts<0)&&At(this,1),e||t<0&&!v||!_&&!v&&D||(fe(this,_===D&&t>=0?"onComplete":"onReverseComplete",!0),this._prom&&!(_0)&&this._prom())))}return this},s.add=function(t,e){var n=this;if(O(e)||(e=Gt(this,e,t)),!(t instanceof ze)){if(z(t))return t.forEach((function(t){return n.add(t,e)})),this;if(A(t))return this.addLabel(t,e);if(!P(t))return this;t=Je.delayedCall(0,t)}return this!==t?qt(this,t,e):this},s.getChildren=function(t,e,n,r){void 0===t&&(t=!0),void 0===e&&(e=!0),void 0===n&&(n=!0),void 0===r&&(r=-b);for(var i=[],s=this._first;s;)s._start>=r&&(s instanceof Je?e&&i.push(s):(n&&i.push(s),t&&i.push.apply(i,s.getChildren(!0,e,n)))),s=s._next;return i},s.getById=function(t){for(var e=this.getChildren(1,1,1),n=e.length;n--;)if(e[n].vars.id===t)return e[n]},s.remove=function(t){return A(t)?this.removeLabel(t):P(t)?this.killTweensOf(t):(St(this,t),t===this._recent&&(this._recent=this._last),Pt(this))},s.totalTime=function(t,e){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=gt(Ee.time-(this._ts>0?t/this._ts:(this.totalDuration()-t)/-this._ts))),n.prototype.totalTime.call(this,t,e),this._forcing=0,this):this._tTime},s.addLabel=function(t,e){return this.labels[t]=Gt(this,e),this},s.removeLabel=function(t){return delete this.labels[t],this},s.addPause=function(t,e,n){var r=Je.delayedCall(0,e||Z,n);return r.data="isPause",this._hasPause=1,qt(this,r,Gt(this,t))},s.removePause=function(t){var e=this._first;for(t=Gt(this,t);e;)e._start===t&&"isPause"===e.data&&At(e),e=e._next},s.killTweensOf=function(t,e,n){for(var r=this.getTweensOf(t,n),i=r.length;i--;)Ve!==r[i]&&r[i].kill(t,e);return this},s.getTweensOf=function(t,e){for(var n,r=[],i=ee(t),s=this._first,o=O(e);s;)s instanceof Je?Dt(s._targets,i)&&(o?(!Ve||s._initted&&s._ts)&&s.globalTime(0)<=e&&s.globalTime(s.totalDuration())>e:!e||s.isActive())&&r.push(s):(n=s.getTweensOf(i,e)).length&&r.push.apply(r,n),s=s._next;return r},s.tweenTo=function(t,e){e=e||{};var n,r=this,i=Gt(r,t),s=e,o=s.startAt,a=s.onStart,u=s.onStartParams,l=s.immediateRender,c=Je.to(r,xt({ease:e.ease||"none",lazy:!1,immediateRender:!1,time:i,overwrite:"auto",duration:e.duration||Math.abs((i-(o&&"time"in o?o.time:r._time))/r.timeScale())||x,onStart:function(){if(r.pause(),!n){var t=e.duration||Math.abs((i-(o&&"time"in o?o.time:r._time))/r.timeScale());c._dur!==t&&Yt(c,t,0,1).render(c._time,!0,!0),n=1}a&&a.apply(c,u||[])}},e));return l?c.render(0):c},s.tweenFromTo=function(t,e,n){return this.tweenTo(e,xt({startAt:{time:Gt(this,t)}},n))},s.recent=function(){return this._recent},s.nextLabel=function(t){return void 0===t&&(t=this._time),he(this,Gt(this,t))},s.previousLabel=function(t){return void 0===t&&(t=this._time),he(this,Gt(this,t),1)},s.currentLabel=function(t){return arguments.length?this.seek(t,!0):this.previousLabel(this._time+x)},s.shiftChildren=function(t,e,n){void 0===n&&(n=0);for(var r,i=this._first,s=this.labels;i;)i._start>=n&&(i._start+=t,i._end+=t),i=i._next;if(e)for(r in s)s[r]>=n&&(s[r]+=t);return Pt(this)},s.invalidate=function(t){var e=this._first;for(this._lock=0;e;)e.invalidate(t),e=e._next;return n.prototype.invalidate.call(this,t)},s.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={}),Pt(this)},s.totalDuration=function(t){var e,n,r,i=0,s=this,a=s._last,u=b;if(arguments.length)return s.timeScale((s._repeat<0?s.duration():s.totalDuration())/(s.reversed()?-t:t));if(s._dirty){for(r=s.parent;a;)e=a._prev,a._dirty&&a.totalDuration(),(n=a._start)>u&&s._sort&&a._ts&&!s._lock?(s._lock=1,qt(s,a,n-a._delay,1)._lock=0):u=n,n<0&&a._ts&&(i-=n,(!r&&!s._dp||r&&r.smoothChildTiming)&&(s._start+=n/s._ts,s._time-=n,s._tTime-=n),s.shiftChildren(-n,!1,-Infinity),u=0),a._end>i&&a._ts&&(i=a._end),a=e;Yt(s,s===o&&s._time>i?s._time:i,1,1),s._dirty=0}return s._tDur},r.updateRoot=function(t){if(o._ts&&(_t(o,It(t,o)),h=Ee.frame),Ee.frame>=ut){ut+=_.autoSleep||120;var e=o._first;if((!e||!e._ts)&&_.autoSleep&&Ee._listeners.length<2){for(;e&&!e._ts;)e=e._next;e||Ee.sleep()}}},r}(ze);xt(qe.prototype,{_lock:0,_hasPause:0,_forcing:0});var Ve,je,He=function(t,e,n,r,i,s,o){var a,u,l,c,h,f,d,p,m=new fn(this._pt,t,e,0,1,on,null,i),g=0,v=0;for(m.b=n,m.e=r,n+="",(d=~(r+="").indexOf("random("))&&(r=le(r)),s&&(s(p=[n,r],t,e),n=p[0],r=p[1]),u=n.match(H)||[];a=H.exec(r);)c=a[0],h=r.substring(g,a.index),l?l=(l+1)%5:"rgba("===h.substr(-5)&&(l=1),c!==u[v++]&&(f=parseFloat(u[v-1])||0,m._pt={_next:m._pt,p:h||1===v?h:",",s:f,c:"="===c.charAt(1)?vt(f,c)-f:parseFloat(c)-f,m:l&&l<4?Math.round:0},g=H.lastIndex);return m.c=g")})),l.duration();else{for(d in h={},C)"ease"===d||"easeEach"===d||Ue(d,C[d],h,C.easeEach);for(d in h)for(A=h[d].sort((function(t,e){return t.t-e.t})),I=0,c=0;cp-x&&!g?p:tm&&(r=m)),(l=this._yoyo&&1&o)&&(f=this._yEase,r=m-r),u=Lt(this._tTime,a),r===d&&!n&&this._initted&&o===u)return this._tTime=v,this;o!==u&&(h&&this._yEase&&Oe(h,l),this.vars.repeatRefresh&&!l&&!this._lock&&this._time!==a&&this._initted&&(this._lock=n=1,this.render(gt(a*o),!0).invalidate()._lock=0))}if(!this._initted){if(jt(this,g?t:r,n,e,v))return this._tTime=0,this;if(!(d===this._time||n&&this.vars.repeatRefresh&&o!==u))return this;if(m!==this._dur)return this.render(t,e,n)}if(this._tTime=v,this._time=r,!this._act&&this._ts&&(this._act=1,this._lazy=0),this.ratio=c=(f||this._ease)(r/m),this._from&&(this.ratio=c=1-c),r&&!d&&!e&&!o&&(fe(this,"onStart"),this._tTime!==v))return this;for(s=this._pt;s;)s.r(c,s.d),s=s._next;h&&h.render(t<0?t:h._dur*h._ease(r/this._dur),e,n)||this._startAt&&(this._zTime=t),this._onUpdate&&!e&&(g&&Ot(this,t,0,n),fe(this,"onUpdate")),this._repeat&&o!==u&&this.vars.onRepeat&&!e&&this.parent&&fe(this,"onRepeat"),v!==this._tDur&&v||this._tTime!==v||(g&&!this._onUpdate&&Ot(this,t,0,!0),(t||!m)&&(v===this._tDur&&this._ts>0||!v&&this._ts<0)&&At(this,1),e||g&&!d||!(v||d||l)||(fe(this,v===p?"onComplete":"onReverseComplete",!0),this._prom&&!(v0)&&this._prom()))}}else!function(t,e,n,r){var s,o,a,u=t.ratio,l=e<0||!e&&(!t._start&&Ht(t)&&(t._initted||!Xt(t))||(t._ts<0||t._dp._ts<0)&&!Xt(t))?0:1,c=t._rDelay,h=0;if(c&&t._repeat&&(h=Jt(0,t._tDur,e),o=Lt(h,c),t._yoyo&&1&o&&(l=1-l),o!==Lt(t._tTime,c)&&(u=1-l,t.vars.repeatRefresh&&t._initted&&t.invalidate())),l!==u||i||r||t._zTime===x||!e&&t._zTime){if(!t._initted&&jt(t,e,r,n,h))return;for(a=t._zTime,t._zTime=e||(n?x:0),n||(n=e&&!a),t.ratio=l,t._from&&(l=1-l),t._time=0,t._tTime=h,s=t._pt;s;)s.r(l,s.d),s=s._next;e<0&&Ot(t,e,0,!0),t._onUpdate&&!n&&fe(t,"onUpdate"),h&&t._repeat&&!n&&t.parent&&fe(t,"onRepeat"),(e>=t._tDur||e<0)&&t.ratio===l&&(l&&At(t,1),n||i||(fe(t,l?"onComplete":"onReverseComplete",!0),t._prom&&t._prom()))}else t._zTime||(t._zTime=e)}(this,t,e,n);return this},a.targets=function(){return this._targets},a.invalidate=function(t){return(!t||!this.vars.runBackwards)&&(this._startAt=0),this._pt=this._op=this._onUpdate=this._lazy=this.ratio=0,this._ptLookup=[],this.timeline&&this.timeline.invalidate(t),n.prototype.invalidate.call(this,t)},a.resetTo=function(t,e,n,r,i){d||Ee.wake(),this._ts||this.play();var s=Math.min(this._dur,(this._dp._time-this._start)*this._ts);return this._initted||We(this,s),function(t,e,n,r,i,s,o,a){var u,l,c,h,f=(t._pt&&t._ptCache||(t._ptCache={}))[e];if(!f)for(f=t._ptCache[e]=[],c=t._ptLookup,h=t._targets.length;h--;){if((u=c[h][e])&&u.d&&u.d._pt)for(u=u.d._pt;u&&u.p!==e&&u.fp!==e;)u=u._next;if(!u)return je=1,t.vars[e]="+=0",We(t,o),je=0,a?J(e+" not eligible for reset"):1;f.push(u)}for(h=f.length;h--;)(u=(l=f[h])._pt||l).s=!r&&0!==r||i?u.s+(r||0)+s*u.c:r,u.c=n-u.s,l.e&&(l.e=mt(n)+Kt(l.e)),l.b&&(l.b=u.s+Kt(l.b))}(this,t,e,n,r,this._ease(s/this._dur),s,i)?this.resetTo(t,e,n,r,1):(Rt(this,0),this.parent||kt(this._dp,this,"_first","_last",this._dp._sort?"_start":0),this.render(0))},a.kill=function(t,e){if(void 0===e&&(e="all"),!(t||e&&"all"!==e))return this._lazy=this._pt=0,this.parent?de(this):this;if(this.timeline){var n=this.timeline.totalDuration();return this.timeline.killTweensOf(t,e,Ve&&!0!==Ve.vars.overwrite)._first||de(this),this.parent&&n!==this.timeline.totalDuration()&&Yt(this,this._dur*this.timeline._tDur/n,0,1),this}var r,i,s,o,a,u,l,c=this._targets,h=t?ee(t):c,f=this._ptLookup,d=this._pt;if((!e||"all"===e)&&function(t,e){for(var n=t.length,r=n===e.length;r&&n--&&t[n]===e[n];);return n<0}(c,h))return"all"===e&&(this._pt=0),de(this);for(r=this._op=this._op||[],"all"!==e&&(A(e)&&(a={},pt(e,(function(t){return a[t]=1})),e=a),e=function(t,e){var n,r,i,s,o=t[0]?ft(t[0]).harness:0,a=o&&o.aliases;if(!a)return e;for(r in n=Ct({},e),a)if(r in n)for(i=(s=a[r].split(",")).length;i--;)n[s[i]]=n[r];return n}(c,e)),l=c.length;l--;)if(~h.indexOf(c[l]))for(a in i=f[l],"all"===e?(r[l]=e,o=i,s={}):(s=r[l]=r[l]||{},o=e),o)(u=i&&i[a])&&("kill"in u.d&&!0!==u.d.kill(a)||St(this,u,"_pt"),delete i[a]),"all"!==s&&(s[a]=1);return this._initted&&!this._pt&&d&&de(this),this},s.to=function(t,e){return new s(t,e,arguments[2])},s.from=function(t,e){return $t(1,arguments)},s.delayedCall=function(t,e,n,r){return new s(e,0,{immediateRender:!1,lazy:!1,overwrite:!1,delay:t,onComplete:e,onReverseComplete:e,onCompleteParams:n,onReverseCompleteParams:n,callbackScope:r})},s.fromTo=function(t,e,n){return $t(2,arguments)},s.set=function(t,e){return e.duration=0,e.repeatDelay||(e.repeat=0),new s(t,e)},s.killTweensOf=function(t,e,n){return o.killTweensOf(t,e,n)},s}(ze);xt(Je.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0}),pt("staggerTo,staggerFrom,staggerFromTo",(function(t){Je[t]=function(){var e=new qe,n=Zt.call(arguments,0);return n.splice("staggerFromTo"===t?5:4,0,0),e[t].apply(e,n)}}));var Ke=function(t,e,n){return t[e]=n},Ze=function(t,e,n){return t[e](n)},tn=function(t,e,n,r){return t[e](r.fp,n)},en=function(t,e,n){return t.setAttribute(e,n)},nn=function(t,e){return P(t[e])?Ze:M(t[e])&&t.setAttribute?en:Ke},rn=function(t,e){return e.set(e.t,e.p,Math.round(1e6*(e.s+e.c*t))/1e6,e)},sn=function(t,e){return e.set(e.t,e.p,!!(e.s+e.c*t),e)},on=function(t,e){var n=e._pt,r="";if(!t&&e.b)r=e.b;else if(1===t&&e.e)r=e.e;else{for(;n;)r=n.p+(n.m?n.m(n.s+n.c*t):Math.round(1e4*(n.s+n.c*t))/1e4)+r,n=n._next;r+=e.c}e.set(e.t,e.p,r,e)},an=function(t,e){for(var n=e._pt;n;)n.r(t,n.d),n=n._next},un=function(t,e,n,r){for(var i,s=this._pt;s;)i=s._next,s.p===r&&s.modifier(t,e,n),s=i},ln=function(t){for(var e,n,r=this._pt;r;)n=r._next,r.p===t&&!r.op||r.op===t?St(this,r,"_pt"):r.dep||(e=1),r=n;return!e},cn=function(t,e,n,r){r.mSet(t,e,r.m.call(r.tween,n,r.mt),r)},hn=function(t){for(var e,n,r,i,s=t._pt;s;){for(e=s._next,n=r;n&&n.pr>s.pr;)n=n._next;(s._prev=n?n._prev:i)?s._prev._next=s:r=s,(s._next=n)?n._prev=s:i=s,s=e}t._pt=r},fn=function(){function t(t,e,n,r,i,s,o,a,u){this.t=e,this.s=r,this.c=i,this.p=n,this.r=s||rn,this.d=o||this,this.set=a||Ke,this.pr=u||0,this._next=t,t&&(t._prev=this)}return t.prototype.modifier=function(t,e,n){this.mSet=this.mSet||this.set,this.set=cn,this.m=t,this.mt=n,this.tween=e},t}();pt(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 rt[t]=1})),U.TweenMax=U.TweenLite=Je,U.TimelineLite=U.TimelineMax=qe,o=new qe({sortChildren:!1,defaults:w,autoRemoveChildren:!0,id:"root",smoothChildTiming:!0}),_.stringFilter=Ce;var dn=[],pn={},mn=[],gn=0,vn=0,Dn=function(t){return(pn[t]||mn).map((function(t){return t()}))},yn=function(){var t=Date.now(),e=[];t-gn>2&&(Dn("matchMediaInit"),dn.forEach((function(t){var n,r,i,s,o=t.queries,u=t.conditions;for(r in o)(n=a.matchMedia(o[r]).matches)&&(i=1),n!==u[r]&&(u[r]=n,s=1);s&&(t.revert(),i&&e.push(t))})),Dn("matchMediaRevert"),e.forEach((function(t){return t.onMatch(t,(function(e){return t.add(null,e)}))})),gn=t,Dn("matchMedia"))},_n=function(){function t(t,e){this.selector=e&&ne(e),this.data=[],this._r=[],this.isReverted=!1,this.id=vn++,t&&this.add(t)}var e=t.prototype;return e.add=function(t,e,n){P(t)&&(n=e,e=t,t=P);var r=this,i=function(){var t,i=s,o=r.selector;return i&&i!==r&&i.data.push(r),n&&(r.selector=ne(n)),s=r,t=e.apply(r,arguments),P(t)&&r._r.push(t),s=i,r.selector=o,r.isReverted=!1,t};return r.last=i,t===P?i(r,(function(t){return r.add(null,t)})):t?r[t]=i:i},e.ignore=function(t){var e=s;s=null,t(this),s=e},e.getTweens=function(){var e=[];return this.data.forEach((function(n){return n instanceof t?e.push.apply(e,n.getTweens()):n instanceof Je&&!(n.parent&&"nested"===n.parent.data)&&e.push(n)})),e},e.clear=function(){this._r.length=this.data.length=0},e.kill=function(t,e){var n=this;if(t?function(){for(var e,r=n.getTweens(),i=n.data.length;i--;)"isFlip"===(e=n.data[i]).data&&(e.revert(),e.getChildren(!0,!0,!1).forEach((function(t){return r.splice(r.indexOf(t),1)})));for(r.map((function(t){return{g:t._dur||t._delay||t._sat&&!t._sat.vars.immediateRender?t.globalTime(0):-1/0,t}})).sort((function(t,e){return e.g-t.g||-1/0})).forEach((function(e){return e.t.revert(t)})),i=n.data.length;i--;)(e=n.data[i])instanceof qe?"nested"!==e.data&&(e.scrollTrigger&&e.scrollTrigger.revert(),e.kill()):!(e instanceof Je)&&e.revert&&e.revert(t);n._r.forEach((function(e){return e(t,n)})),n.isReverted=!0}():this.data.forEach((function(t){return t.kill&&t.kill()})),this.clear(),e)for(var r=dn.length;r--;)dn[r].id===this.id&&dn.splice(r,1)},e.revert=function(t){this.kill(t||{})},t}(),wn=function(){function t(t){this.contexts=[],this.scope=t,s&&s.data.push(this)}var e=t.prototype;return e.add=function(t,e,n){B(t)||(t={matches:t});var r,i,o,u=new _n(0,n||this.scope),l=u.conditions={};for(i in s&&!u.selector&&(u.selector=s.selector),this.contexts.push(u),e=u.add("onMatch",e),u.queries=t,t)"all"===i?o=1:(r=a.matchMedia(t[i]))&&(dn.indexOf(u)<0&&dn.push(u),(l[i]=r.matches)&&(o=1),r.addListener?r.addListener(yn):r.addEventListener("change",yn));return o&&e(u,(function(t){return u.add(null,t)})),this},e.revert=function(t){this.kill(t||{})},e.kill=function(t){this.contexts.forEach((function(e){return e.kill(t,!0)}))},t}(),bn={registerPlugin:function(){for(var t=arguments.length,e=new Array(t),n=0;n1){var r=t.map((function(t){return En.quickSetter(t,e,n)})),i=r.length;return function(t){for(var e=i;e--;)r[e](t)}}t=t[0]||{};var s=ot[e],o=ft(t),a=o.harness&&(o.harness.aliases||{})[e]||e,u=s?function(e){var r=new s;f._pt=0,r.init(t,n?e+n:e,f,0,[t]),r.render(1,r),f._pt&&an(1,f)}:o.set(t,a);return s?u:function(e){return u(t,a,n?e+n:e,o,1)}},quickTo:function(t,e,n){var r,i=En.to(t,Ct(((r={})[e]="+=0.1",r.paused=!0,r),n||{})),s=function(t,n,r){return i.resetTo(e,t,n,r)};return s.tween=i,s},isTweening:function(t){return o.getTweensOf(t,!0).length>0},defaults:function(t){return t&&t.ease&&(t.ease=Me(t.ease,w.ease)),Et(w,t||{})},config:function(t){return Et(_,t||{})},registerEffect:function(t){var e=t.name,n=t.effect,r=t.plugins,i=t.defaults,s=t.extendTimeline;(r||"").split(",").forEach((function(t){return t&&!ot[t]&&!U[t]&&J(e+" effect requires "+t+" plugin.")})),at[e]=function(t,e,r){return n(ee(t),xt(e||{},i),r)},s&&(qe.prototype[e]=function(t,n,r){return this.add(at[e](t,B(n)?n:(r=n)&&{},this),r)})},registerEase:function(t,e){Te[t]=Me(e)},parseEase:function(t,e){return arguments.length?Me(t,e):Te},getById:function(t){return o.getById(t)},exportRoot:function(t,e){void 0===t&&(t={});var n,r,i=new qe(t);for(i.smoothChildTiming=L(t.smoothChildTiming),o.remove(i),i._dp=0,i._time=i._tTime=o._time,n=o._first;n;)r=n._next,!e&&!n._dur&&n instanceof Je&&n.vars.onComplete===n._targets[0]||qt(i,n,n._start-n._delay),n=r;return qt(o,i,0),i},context:function(t,e){return t?new _n(t,e):s},matchMedia:function(t){return new wn(t)},matchMediaRefresh:function(){return dn.forEach((function(t){var e,n,r=t.conditions;for(n in r)r[n]&&(r[n]=!1,e=1);e&&t.revert()}))||yn()},addEventListener:function(t,e){var n=pn[t]||(pn[t]=[]);~n.indexOf(e)||n.push(e)},removeEventListener:function(t,e){var n=pn[t],r=n&&n.indexOf(e);r>=0&&n.splice(r,1)},utils:{wrap:function t(e,n,r){var i=n-e;return z(e)?ue(e,t(0,e.length),n):Qt(r,(function(t){return(i+(t-e)%i)%i+e}))},wrapYoyo:function t(e,n,r){var i=n-e,s=2*i;return z(e)?ue(e,t(0,e.length-1),n):Qt(r,(function(t){return e+((t=(s+(t-e)%s)%s||0)>i?s-t:t)}))},distribute:ie,random:ae,snap:oe,normalize:function(t,e,n){return ce(t,e,0,1,n)},getUnit:Kt,clamp:function(t,e,n){return Qt(n,(function(n){return Jt(t,e,n)}))},splitColor:ye,toArray:ee,selector:ne,mapRange:ce,pipe:function(){for(var t=arguments.length,e=new Array(t),n=0;n=0)return;o.svg&&(this.svgo=i.getAttribute("data-svg-origin"),this.props.push(er,n,"")),e=tr}(s||n)&&this.props.push(e,n,s[e])},rr=function(t){t.translate&&(t.removeProperty("translate"),t.removeProperty("scale"),t.removeProperty("rotate"))},ir=function(){var t,e,n=this.props,r=this.target,i=r.style,s=r._gsap;for(t=0;t=0?ur[i]:"")+t},cr=function(){"undefined"!=typeof window&&window.document&&(Fn=window,Tn=Fn.document,kn=Tn.documentElement,An=or("div")||{style:{}},or("div"),tr=lr(tr),er=tr+"Origin",An.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",Mn=!!lr("perspective"),On=En.core.reverting,Sn=1)},hr=function t(e){var n,r=or("svg",this.ownerSVGElement&&this.ownerSVGElement.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),i=this.parentNode,s=this.nextSibling,o=this.style.cssText;if(kn.appendChild(r),r.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 i&&(s?i.insertBefore(this,s):i.appendChild(this)),kn.removeChild(r),this.style.cssText=o,n},fr=function(t,e){for(var n=e.length;n--;)if(t.hasAttribute(e[n]))return t.getAttribute(e[n])},dr=function(t){var e;try{e=t.getBBox()}catch(n){e=hr.call(t,!0)}return e&&(e.width||e.height)||t.getBBox===hr||(e=hr.call(t,!0)),!e||e.width||e.x||e.y?e:{x:+fr(t,["x","cx","x1"])||0,y:+fr(t,["y","cy","y1"])||0,width:0,height:0}},pr=function(t){return!(!t.getCTM||t.parentNode&&!t.ownerSVGElement||!dr(t))},mr=function(t,e){if(e){var n,r=t.style;e in Bn&&e!==er&&(e=tr),r.removeProperty?("ms"!==(n=e.substr(0,2))&&"webkit"!==e.substr(0,6)||(e="-"+e),r.removeProperty("--"===n?e:e.replace(Rn,"-$1").toLowerCase())):r.removeAttribute(e)}},gr=function(t,e,n,r,i,s){var o=new fn(t._pt,e,n,0,1,s?Un:Wn);return t._pt=o,o.b=r,o.e=i,t._props.push(n),o},vr={deg:1,rad:1,turn:1},Dr={grid:1,flex:1},yr=function t(e,n,r,i){var s,o,a,u,l=parseFloat(r)||0,c=(r+"").trim().substr((l+"").length)||"px",h=An.style,f=zn.test(n),d="svg"===e.tagName.toLowerCase(),p=(d?"client":"offset")+(f?"Width":"Height"),m=100,g="px"===i,v="%"===i;if(i===c||!l||vr[i]||vr[c])return l;if("px"!==c&&!g&&(l=t(e,n,r,"px")),u=e.getCTM&&pr(e),(v||"%"===c)&&(Bn[n]||~n.indexOf("adius")))return s=u?e.getBBox()[f?"width":"height"]:e[p],mt(v?l/s*m:l/100*s);if(h[f?"width":"height"]=m+(g?c:i),o=~n.indexOf("adius")||"em"===i&&e.appendChild&&!d?e:e.parentNode,u&&(o=(e.ownerSVGElement||{}).parentNode),o&&o!==Tn&&o.appendChild||(o=Tn.body),(a=o._gsap)&&v&&a.width&&f&&a.time===Ee.time&&!a.uncache)return mt(l/a.width*m);if(!v||"height"!==n&&"width"!==n)(v||"%"===c)&&!Dr[ar(o,"display")]&&(h.position=ar(e,"position")),o===e&&(h.position="static"),o.appendChild(An),s=An[p],o.removeChild(An),h.position="absolute";else{var D=e.style[n];e.style[n]=m+i,s=e[p],D?e.style[n]=D:mr(e,n)}return f&&v&&((a=ft(o)).time=Ee.time,a.width=o[p]),mt(g?s*l/m:s&&l?m/s*l:0)},_r=function(t,e,n,r){var i;return Sn||cr(),e in Vn&&"transform"!==e&&~(e=Vn[e]).indexOf(",")&&(e=e.split(",")[0]),Bn[e]&&"transform"!==e?(i=Pr(t,r),i="transformOrigin"!==e?i[e]:i.svg?i.origin:Or(ar(t,er))+" "+i.zOrigin+"px"):(!(i=t.style[e])||"auto"===i||r||~(i+"").indexOf("calc("))&&(i=Cr[e]&&Cr[e](t,e,n)||ar(t,e)||dt(t,e)||("opacity"===e?1:0)),n&&!~(i+"").trim().indexOf(" ")?yr(t,e,i,n)+n:i},wr=function(t,e,n,r){if(!n||"none"===n){var i=lr(e,t,1),s=i&&ar(t,i,1);s&&s!==n?(e=i,n=s):"borderColor"===e&&(n=ar(t,"borderTopColor"))}var o,a,u,l,c,h,f,d,p,m,g,v=new fn(this._pt,t.style,e,0,1,on),D=0,y=0;if(v.b=n,v.e=r,n+="","auto"==(r+="")&&(h=t.style[e],t.style[e]=r,r=ar(t,e)||r,h?t.style[e]=h:mr(t,e)),Ce(o=[n,r]),r=o[1],u=(n=o[0]).match(j)||[],(r.match(j)||[]).length){for(;a=j.exec(r);)f=a[0],p=r.substring(D,a.index),c?c=(c+1)%5:"rgba("!==p.substr(-5)&&"hsla("!==p.substr(-5)||(c=1),f!==(h=u[y++]||"")&&(l=parseFloat(h)||0,g=h.substr((l+"").length),"="===f.charAt(1)&&(f=vt(l,f)+g),d=parseFloat(f),m=f.substr((d+"").length),D=j.lastIndex-m.length,m||(m=m||_.units[e]||g,D===r.length&&(r+=m,v.e+=m)),g!==m&&(l=yr(t,e,h,m)||0),v._pt={_next:v._pt,p:p||1===y?p:",",s:l,c:d-l,m:c&&c<4||"zIndex"===e?Math.round:0});v.c=D-1;)n=a[i],Bn[n]&&(r=1,n="transformOrigin"===n?er:tr),mr(s,n);r&&(mr(s,tr),u&&(u.svg&&s.removeAttribute("transform"),Pr(s,1),u.uncache=1,rr(o)))}},Cr={clearProps:function(t,e,n,r,i){if("isFromStart"!==i.data){var s=t._pt=new fn(t._pt,e,n,0,0,xr);return s.u=r,s.pr=-10,s.tween=i,t._props.push(n),1}}},Er=[1,0,0,1,0,0],Fr={},Tr=function(t){return"matrix(1, 0, 0, 1, 0, 0)"===t||"none"===t||!t},kr=function(t){var e=ar(t,tr);return Tr(e)?Er:e.substr(7).match(V).map(mt)},Sr=function(t,e){var n,r,i,s,o=t._gsap||ft(t),a=t.style,u=kr(t);return o.svg&&t.getAttribute("transform")?"1,0,0,1,0,0"===(u=[(i=t.transform.baseVal.consolidate().matrix).a,i.b,i.c,i.d,i.e,i.f]).join(",")?Er:u:(u!==Er||t.offsetParent||t===kn||o.svg||(i=a.display,a.display="block",(n=t.parentNode)&&t.offsetParent||(s=1,r=t.nextElementSibling,kn.appendChild(t)),u=kr(t),i?a.display=i:mr(t,"display"),s&&(r?n.insertBefore(t,r):n?n.appendChild(t):kn.removeChild(t))),e&&u.length>6?[u[0],u[1],u[4],u[5],u[12],u[13]]:u)},Ar=function(t,e,n,r,i,s){var o,a,u,l=t._gsap,c=i||Sr(t,!0),h=l.xOrigin||0,f=l.yOrigin||0,d=l.xOffset||0,p=l.yOffset||0,m=c[0],g=c[1],v=c[2],D=c[3],y=c[4],_=c[5],w=e.split(" "),b=parseFloat(w[0])||0,x=parseFloat(w[1])||0;n?c!==Er&&(a=m*D-g*v)&&(u=b*(-g/a)+x*(m/a)-(m*_-g*y)/a,b=b*(D/a)+x*(-v/a)+(v*_-D*y)/a,x=u):(b=(o=dr(t)).x+(~w[0].indexOf("%")?b/100*o.width:b),x=o.y+(~(w[1]||w[0]).indexOf("%")?x/100*o.height:x)),r||!1!==r&&l.smooth?(y=b-h,_=x-f,l.xOffset=d+(y*m+_*v)-y,l.yOffset=p+(y*g+_*D)-_):l.xOffset=l.yOffset=0,l.xOrigin=b,l.yOrigin=x,l.smooth=!!r,l.origin=e,l.originIsAbsolute=!!n,t.style[er]="0px 0px",s&&(gr(s,l,"xOrigin",h,b),gr(s,l,"yOrigin",f,x),gr(s,l,"xOffset",d,l.xOffset),gr(s,l,"yOffset",p,l.yOffset)),t.setAttribute("data-svg-origin",b+" "+x)},Pr=function(t,e){var n=t._gsap||new Re(t);if("x"in n&&!e&&!n.uncache)return n;var r,i,s,o,a,u,l,c,h,f,d,p,m,g,v,D,y,w,b,x,C,E,F,T,k,S,A,P,O,M,B,L,I=t.style,N=n.scaleX<0,R="px",z="deg",q=getComputedStyle(t),V=ar(t,er)||"0";return r=i=s=u=l=c=h=f=d=0,o=a=1,n.svg=!(!t.getCTM||!pr(t)),q.translate&&("none"===q.translate&&"none"===q.scale&&"none"===q.rotate||(I[tr]=("none"!==q.translate?"translate3d("+(q.translate+" 0 0").split(" ").slice(0,3).join(", ")+") ":"")+("none"!==q.rotate?"rotate("+q.rotate+") ":"")+("none"!==q.scale?"scale("+q.scale.split(" ").join(",")+") ":"")+("none"!==q[tr]?q[tr]:"")),I.scale=I.rotate=I.translate="none"),g=Sr(t,n.svg),n.svg&&(n.uncache?(k=t.getBBox(),V=n.xOrigin-k.x+"px "+(n.yOrigin-k.y)+"px",T=""):T=!e&&t.getAttribute("data-svg-origin"),Ar(t,T||V,!!T||n.originIsAbsolute,!1!==n.smooth,g)),p=n.xOrigin||0,m=n.yOrigin||0,g!==Er&&(w=g[0],b=g[1],x=g[2],C=g[3],r=E=g[4],i=F=g[5],6===g.length?(o=Math.sqrt(w*w+b*b),a=Math.sqrt(C*C+x*x),u=w||b?Nn(b,w)*Ln:0,(h=x||C?Nn(x,C)*Ln+u:0)&&(a*=Math.abs(Math.cos(h*In))),n.svg&&(r-=p-(p*w+m*x),i-=m-(p*b+m*C))):(L=g[6],M=g[7],A=g[8],P=g[9],O=g[10],B=g[11],r=g[12],i=g[13],s=g[14],l=(v=Nn(L,O))*Ln,v&&(T=E*(D=Math.cos(-v))+A*(y=Math.sin(-v)),k=F*D+P*y,S=L*D+O*y,A=E*-y+A*D,P=F*-y+P*D,O=L*-y+O*D,B=M*-y+B*D,E=T,F=k,L=S),c=(v=Nn(-x,O))*Ln,v&&(D=Math.cos(-v),B=C*(y=Math.sin(-v))+B*D,w=T=w*D-A*y,b=k=b*D-P*y,x=S=x*D-O*y),u=(v=Nn(b,w))*Ln,v&&(T=w*(D=Math.cos(v))+b*(y=Math.sin(v)),k=E*D+F*y,b=b*D-w*y,F=F*D-E*y,w=T,E=k),l&&Math.abs(l)+Math.abs(u)>359.9&&(l=u=0,c=180-c),o=mt(Math.sqrt(w*w+b*b+x*x)),a=mt(Math.sqrt(F*F+L*L)),v=Nn(E,F),h=Math.abs(v)>2e-4?v*Ln:0,d=B?1/(B<0?-B:B):0),n.svg&&(T=t.getAttribute("transform"),n.forceCSS=t.setAttribute("transform","")||!Tr(ar(t,tr)),T&&t.setAttribute("transform",T))),Math.abs(h)>90&&Math.abs(h)<270&&(N?(o*=-1,h+=u<=0?180:-180,u+=u<=0?180:-180):(a*=-1,h+=h<=0?180:-180)),e=e||n.uncache,n.x=r-((n.xPercent=r&&(!e&&n.xPercent||(Math.round(t.offsetWidth/2)===Math.round(-r)?-50:0)))?t.offsetWidth*n.xPercent/100:0)+R,n.y=i-((n.yPercent=i&&(!e&&n.yPercent||(Math.round(t.offsetHeight/2)===Math.round(-i)?-50:0)))?t.offsetHeight*n.yPercent/100:0)+R,n.z=s+R,n.scaleX=mt(o),n.scaleY=mt(a),n.rotation=mt(u)+z,n.rotationX=mt(l)+z,n.rotationY=mt(c)+z,n.skewX=h+z,n.skewY=f+z,n.transformPerspective=d+R,(n.zOrigin=parseFloat(V.split(" ")[2])||!e&&n.zOrigin||0)&&(I[er]=Or(V)),n.xOffset=n.yOffset=0,n.force3D=_.force3D,n.renderTransform=n.svg?zr:Mn?Rr:Br,n.uncache=0,n},Or=function(t){return(t=t.split(" "))[0]+" "+t[1]},Mr=function(t,e,n){var r=Kt(e);return mt(parseFloat(e)+parseFloat(yr(t,"x",n+"px",r)))+r},Br=function(t,e){e.z="0px",e.rotationY=e.rotationX="0deg",e.force3D=0,Rr(t,e)},Lr="0deg",Ir="0px",Nr=") ",Rr=function(t,e){var n=e||this,r=n.xPercent,i=n.yPercent,s=n.x,o=n.y,a=n.z,u=n.rotation,l=n.rotationY,c=n.rotationX,h=n.skewX,f=n.skewY,d=n.scaleX,p=n.scaleY,m=n.transformPerspective,g=n.force3D,v=n.target,D=n.zOrigin,y="",_="auto"===g&&t&&1!==t||!0===g;if(D&&(c!==Lr||l!==Lr)){var w,b=parseFloat(l)*In,x=Math.sin(b),C=Math.cos(b);b=parseFloat(c)*In,w=Math.cos(b),s=Mr(v,s,x*w*-D),o=Mr(v,o,-Math.sin(b)*-D),a=Mr(v,a,C*w*-D+D)}m!==Ir&&(y+="perspective("+m+Nr),(r||i)&&(y+="translate("+r+"%, "+i+"%) "),(_||s!==Ir||o!==Ir||a!==Ir)&&(y+=a!==Ir||_?"translate3d("+s+", "+o+", "+a+") ":"translate("+s+", "+o+Nr),u!==Lr&&(y+="rotate("+u+Nr),l!==Lr&&(y+="rotateY("+l+Nr),c!==Lr&&(y+="rotateX("+c+Nr),h===Lr&&f===Lr||(y+="skew("+h+", "+f+Nr),1===d&&1===p||(y+="scale("+d+", "+p+Nr),v.style[tr]=y||"translate(0, 0)"},zr=function(t,e){var n,r,i,s,o,a=e||this,u=a.xPercent,l=a.yPercent,c=a.x,h=a.y,f=a.rotation,d=a.skewX,p=a.skewY,m=a.scaleX,g=a.scaleY,v=a.target,D=a.xOrigin,y=a.yOrigin,_=a.xOffset,w=a.yOffset,b=a.forceCSS,x=parseFloat(c),C=parseFloat(h);f=parseFloat(f),d=parseFloat(d),(p=parseFloat(p))&&(d+=p=parseFloat(p),f+=p),f||d?(f*=In,d*=In,n=Math.cos(f)*m,r=Math.sin(f)*m,i=Math.sin(f-d)*-g,s=Math.cos(f-d)*g,d&&(p*=In,o=Math.tan(d-p),i*=o=Math.sqrt(1+o*o),s*=o,p&&(o=Math.tan(p),n*=o=Math.sqrt(1+o*o),r*=o)),n=mt(n),r=mt(r),i=mt(i),s=mt(s)):(n=m,s=g,r=i=0),(x&&!~(c+"").indexOf("px")||C&&!~(h+"").indexOf("px"))&&(x=yr(v,"x",c,"px"),C=yr(v,"y",h,"px")),(D||y||_||w)&&(x=mt(x+D-(D*n+y*i)+_),C=mt(C+y-(D*r+y*s)+w)),(u||l)&&(o=v.getBBox(),x=mt(x+u/100*o.width),C=mt(C+l/100*o.height)),o="matrix("+n+","+r+","+i+","+s+","+x+","+C+")",v.setAttribute("transform",o),b&&(v.style[tr]=o)},qr=function(t,e,n,r,i){var s,o,a=360,u=A(i),l=parseFloat(i)*(u&&~i.indexOf("rad")?Ln:1)-r,c=r+l+"deg";return u&&("short"===(s=i.split("_")[1])&&(l%=a)!=l%180&&(l+=l<0?a:-360),"cw"===s&&l<0?l=(l+36e9)%a-~~(l/a)*a:"ccw"===s&&l>0&&(l=(l-36e9)%a-~~(l/a)*a)),t._pt=o=new fn(t._pt,e,n,r,l,Hn),o.e=c,o.u="deg",t._props.push(n),o},Vr=function(t,e){for(var n in e)t[n]=e[n];return t},jr=function(t,e,n){var r,i,s,o,a,u,l,c=Vr({},n._gsap),h=n.style;for(i in c.svg?(s=n.getAttribute("transform"),n.setAttribute("transform",""),h[tr]=e,r=Pr(n,1),mr(n,tr),n.setAttribute("transform",s)):(s=getComputedStyle(n)[tr],h[tr]=e,r=Pr(n,1),h[tr]=s),Bn)(s=c[i])!==(o=r[i])&&"perspective,force3D,transformOrigin,svgOrigin".indexOf(i)<0&&(a=Kt(s)!==(l=Kt(o))?yr(n,i,s,l):parseFloat(s),u=parseFloat(o),t._pt=new fn(t._pt,r,i,a,u-a,jn),t._pt.u=l||0,t._props.push(i));Vr(r,c)};pt("padding,margin,Width,Radius",(function(t,e){var n="Top",r="Right",i="Bottom",s="Left",o=(e<3?[n,r,i,s]:[n+s,n+r,i+r,i+s]).map((function(n){return e<2?t+n:"border"+n+t}));Cr[e>1?"border"+t:t]=function(t,e,n,r,i){var s,a;if(arguments.length<4)return s=o.map((function(e){return _r(t,e,n)})),5===(a=s.join(" ")).split(s[0]).length?s[0]:a;s=(r+"").split(" "),a={},o.forEach((function(t,e){return a[t]=s[e]=s[e]||s[(e-1)/2|0]})),t.init(e,a,i)}}));var Hr,Xr,Yr={name:"css",register:cr,targetTest:function(t){return t.style&&t.nodeType},init:function(t,e,n,r,i){var s,o,a,u,l,c,h,f,d,p,m,g,v,D,y,w,b,x,C,E,F=this._props,T=t.style,k=n.vars.startAt;for(h in Sn||cr(),this.styles=this.styles||sr(t),w=this.styles.props,this.tween=n,e)if("autoRound"!==h&&(o=e[h],!ot[h]||!Ye(h,e,n,r,t,i)))if(l=typeof o,c=Cr[h],"function"===l&&(l=typeof(o=o.call(n,r,t,i))),"string"===l&&~o.indexOf("random(")&&(o=le(o)),c)c(this,t,h,o,n)&&(y=1);else if("--"===h.substr(0,2))s=(getComputedStyle(t).getPropertyValue(h)+"").trim(),o+="",be.lastIndex=0,be.test(s)||(f=Kt(s),d=Kt(o)),d?f!==d&&(s=yr(t,h,s,d)+d):f&&(o+=f),this.add(T,"setProperty",s,o,r,i,0,0,h),F.push(h),w.push(h,0,T[h]);else if("undefined"!==l){if(k&&h in k?(s="function"==typeof k[h]?k[h].call(n,r,t,i):k[h],A(s)&&~s.indexOf("random(")&&(s=le(s)),Kt(s+"")||"auto"===s||(s+=_.units[h]||Kt(_r(t,h))||""),"="===(s+"").charAt(1)&&(s=_r(t,h))):s=_r(t,h),u=parseFloat(s),(p="string"===l&&"="===o.charAt(1)&&o.substr(0,2))&&(o=o.substr(2)),a=parseFloat(o),h in Vn&&("autoAlpha"===h&&(1===u&&"hidden"===_r(t,"visibility")&&a&&(u=0),w.push("visibility",0,T.visibility),gr(this,T,"visibility",u?"inherit":"hidden",a?"inherit":"hidden",!a)),"scale"!==h&&"transform"!==h&&~(h=Vn[h]).indexOf(",")&&(h=h.split(",")[0])),m=h in Bn)if(this.styles.save(h),g||((v=t._gsap).renderTransform&&!e.parseTransform||Pr(t,e.parseTransform),D=!1!==e.smoothOrigin&&v.smooth,(g=this._pt=new fn(this._pt,T,tr,0,1,v.renderTransform,v,0,-1)).dep=1),"scale"===h)this._pt=new fn(this._pt,v,"scaleY",v.scaleY,(p?vt(v.scaleY,p+a):a)-v.scaleY||0,jn),this._pt.u=0,F.push("scaleY",h),h+="X";else{if("transformOrigin"===h){w.push(er,0,T[er]),x=void 0,C=void 0,E=void 0,C=(x=(b=o).split(" "))[0],E=x[1]||"50%","top"!==C&&"bottom"!==C&&"left"!==E&&"right"!==E||(b=C,C=E,E=b),x[0]=br[C]||C,x[1]=br[E]||E,o=x.join(" "),v.svg?Ar(t,o,0,D,0,this):((d=parseFloat(o.split(" ")[2])||0)!==v.zOrigin&&gr(this,v,"zOrigin",v.zOrigin,d),gr(this,T,h,Or(s),Or(o)));continue}if("svgOrigin"===h){Ar(t,o,1,D,0,this);continue}if(h in Fr){qr(this,v,h,u,p?vt(u,p+o):o);continue}if("smoothOrigin"===h){gr(this,v,"smooth",v.smooth,o);continue}if("force3D"===h){v[h]=o;continue}if("transform"===h){jr(this,o,t);continue}}else h in T||(h=lr(h)||h);if(m||(a||0===a)&&(u||0===u)&&!qn.test(o)&&h in T)a||(a=0),(f=(s+"").substr((u+"").length))!==(d=Kt(o)||(h in _.units?_.units[h]:f))&&(u=yr(t,h,s,d)),this._pt=new fn(this._pt,m?v:T,h,u,(p?vt(u,p+a):a)-u,m||"px"!==d&&"zIndex"!==h||!1===e.autoRound?jn:Yn),this._pt.u=d||0,f!==d&&"%"!==d&&(this._pt.b=s,this._pt.r=Xn);else if(h in T)wr.call(this,t,h,s,p?p+o:o);else if(h in t)this.add(t,h,s||t[h],p?p+o:o,r,i);else if("parseTransform"!==h){Q(h,o);continue}m||(h in T?w.push(h,0,T[h]):w.push(h,1,s||t[h])),F.push(h)}y&&hn(this)},render:function(t,e){if(e.tween._time||!On())for(var n=e._pt;n;)n.r(t,n.d),n=n._next;else e.styles.revert()},get:_r,aliases:Vn,getSetter:function(t,e,n){var r=Vn[e];return r&&r.indexOf(",")<0&&(e=r),e in Bn&&e!==er&&(t._gsap.x||_r(t,"x"))?n&&Pn===n?"scale"===e?Jn:Qn:(Pn=n||{})&&("scale"===e?Kn:Zn):t.style&&!M(t.style[e])?Gn:~e.indexOf("-")?$n:nn(t,e)},core:{_removeProperty:mr,_getMatrix:Sr}};En.utils.checkPrefix=lr,En.core.getStyleSaver=sr,Xr=pt("x,y,z,scale,scaleX,scaleY,xPercent,yPercent"+","+(Hr="rotation,rotationX,rotationY,skewX,skewY")+",transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective",(function(t){Bn[t]=1})),pt(Hr,(function(t){_.units[t]="deg",Fr[t]=1})),Vn[Xr[13]]="x,y,z,scale,scaleX,scaleY,xPercent,yPercent,"+Hr,pt("0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY",(function(t){var e=t.split(":");Vn[e[1]]=Xr[e[0]]})),pt("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",(function(t){_.units[t]="px"})),En.registerPlugin(Yr);var Wr=En.registerPlugin(Yr)||En;Wr.core.Tween,Wr.config({nullTargetWarn:!0});var Ur=n(714),Gr=n.n(Ur);function $r(t,e){for(var n=0;na?(i=r,r=t,o=s,s=u):n?r+=t:r=i+(t-i)/(u-o)*(s-o)};return{update:l,reset:function(){i=r=n?0:r,o=s=0},getVelocity:function(t){var e=o,a=i,c=pi();return(t||0===t)&&t!==r&&l(t),s===o||c-o>u?0:(r+(n?a:-a))/((n?c:s)-e)*1e3}}},Si=function(t,e){return e&&!t._gsapAllow&&t.preventDefault(),t.changedTouches?t.changedTouches[0]:t},Ai=function(t){var e=Math.max.apply(Math,t),n=Math.min.apply(Math,t);return Math.abs(e)>=Math.abs(n)?e:n},Pi=function(){var t,e,n,r;(ii=Qr.core.globals().ScrollTrigger)&&ii.core&&(t=ii.core,e=t.bridge||{},n=t._scrollers,r=t._proxies,n.push.apply(n,fi),r.push.apply(r,di),fi=n,di=r,mi=function(t,n){return e[t](n)})},Oi=function(t){return Qr=t||li(),!Jr&&Qr&&"undefined"!=typeof document&&document.body&&(Kr=window,Zr=document,ti=Zr.documentElement,ei=Zr.body,si=[Kr,Zr,ti,ei],Qr.utils.clamp,ui=Qr.core.context||function(){},ri="onpointerenter"in ei?"pointer":"mouse",ni=Mi.isTouch=Kr.matchMedia&&Kr.matchMedia("(hover: none), (pointer: coarse)").matches?1:"ontouchstart"in Kr||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0?2:0,ai=Mi.eventTypes=("ontouchstart"in ti?"touchstart,touchmove,touchcancel,touchend":"onpointerdown"in ti?"pointerdown,pointermove,pointercancel,pointerup":"mousedown,mousemove,mouseup,mouseup").split(","),setTimeout((function(){return ci=0}),500),Pi(),Jr=1),Jr};Ci.op=Ei,fi.cache=0;var Mi=function(){function t(t){this.init(t)}var e,n;return t.prototype.init=function(t){Jr||Oi(Qr)||console.warn("Please gsap.registerPlugin(Observer)"),ii||Pi();var e=t.tolerance,n=t.dragMinimum,r=t.type,i=t.target,s=t.lineHeight,o=t.debounce,a=t.preventDefault,u=t.onStop,l=t.onStopDelay,c=t.ignore,h=t.wheelSpeed,f=t.event,d=t.onDragStart,p=t.onDragEnd,m=t.onDrag,g=t.onPress,v=t.onRelease,D=t.onRight,y=t.onLeft,_=t.onUp,w=t.onDown,b=t.onChangeX,x=t.onChangeY,C=t.onChange,E=t.onToggleX,F=t.onToggleY,T=t.onHover,k=t.onHoverEnd,S=t.onMove,A=t.ignoreCheck,P=t.isNormalizer,O=t.onGestureStart,M=t.onGestureEnd,B=t.onWheel,L=t.onEnable,I=t.onDisable,N=t.onClick,R=t.scrollSpeed,z=t.capture,q=t.allowClicks,V=t.lockAxis,j=t.onLockAxis;this.target=i=Fi(i)||ti,this.vars=t,c&&(c=Qr.utils.toArray(c)),e=e||1e-9,n=n||0,h=h||1,R=R||1,r=r||"wheel,touch,pointer",o=!1!==o,s||(s=parseFloat(Kr.getComputedStyle(ei).lineHeight)||22);var H,X,Y,W,U,G,$,Q=this,J=0,K=0,Z=t.passive||!a,tt=Ti(i,Ci),et=Ti(i,Ei),nt=tt(),rt=et(),it=~r.indexOf("touch")&&!~r.indexOf("pointer")&&"pointerdown"===ai[0],st=vi(i),ot=i.ownerDocument||Zr,at=[0,0,0],ut=[0,0,0],lt=0,ct=function(){return lt=pi()},ht=function(t,e){return(Q.event=t)&&c&&~c.indexOf(t.target)||e&&it&&"touch"!==t.pointerType||A&&A(t,e)},ft=function(){var t=Q.deltaX=Ai(at),n=Q.deltaY=Ai(ut),r=Math.abs(t)>=e,i=Math.abs(n)>=e;C&&(r||i)&&C(Q,t,n,at,ut),r&&(D&&Q.deltaX>0&&D(Q),y&&Q.deltaX<0&&y(Q),b&&b(Q),E&&Q.deltaX<0!=J<0&&E(Q),J=Q.deltaX,at[0]=at[1]=at[2]=0),i&&(w&&Q.deltaY>0&&w(Q),_&&Q.deltaY<0&&_(Q),x&&x(Q),F&&Q.deltaY<0!=K<0&&F(Q),K=Q.deltaY,ut[0]=ut[1]=ut[2]=0),(W||Y)&&(S&&S(Q),Y&&(m(Q),Y=!1),W=!1),G&&!(G=!1)&&j&&j(Q),U&&(B(Q),U=!1),H=0},dt=function(t,e,n){at[n]+=t,ut[n]+=e,Q._vx.update(t),Q._vy.update(e),o?H||(H=requestAnimationFrame(ft)):ft()},pt=function(t,e){V&&!$&&(Q.axis=$=Math.abs(t)>Math.abs(e)?"x":"y",G=!0),"y"!==$&&(at[2]+=t,Q._vx.update(t,!0)),"x"!==$&&(ut[2]+=e,Q._vy.update(e,!0)),o?H||(H=requestAnimationFrame(ft)):ft()},mt=function(t){if(!ht(t,1)){var e=(t=Si(t,a)).clientX,r=t.clientY,i=e-Q.x,s=r-Q.y,o=Q.isDragging;Q.x=e,Q.y=r,(o||Math.abs(Q.startX-e)>=n||Math.abs(Q.startY-r)>=n)&&(m&&(Y=!0),o||(Q.isDragging=!0),pt(i,s),o||d&&d(Q))}},gt=Q.onPress=function(t){ht(t,1)||t&&t.button||(Q.axis=$=null,X.pause(),Q.isPressed=!0,t=Si(t),J=K=0,Q.startX=Q.x=t.clientX,Q.startY=Q.y=t.clientY,Q._vx.reset(),Q._vy.reset(),Di(P?i:ot,ai[1],mt,Z,!0),Q.deltaX=Q.deltaY=0,g&&g(Q))},vt=Q.onRelease=function(t){if(!ht(t,1)){yi(P?i:ot,ai[1],mt,!0);var e=!isNaN(Q.y-Q.startY),n=Q.isDragging,r=n&&(Math.abs(Q.x-Q.startX)>3||Math.abs(Q.y-Q.startY)>3),s=Si(t);!r&&e&&(Q._vx.reset(),Q._vy.reset(),a&&q&&Qr.delayedCall(.08,(function(){if(pi()-lt>300&&!t.defaultPrevented)if(t.target.click)t.target.click();else if(ot.createEvent){var e=ot.createEvent("MouseEvents");e.initMouseEvent("click",!0,!0,Kr,1,s.screenX,s.screenY,s.clientX,s.clientY,!1,!1,!1,!1,0,null),t.target.dispatchEvent(e)}}))),Q.isDragging=Q.isGesturing=Q.isPressed=!1,u&&n&&!P&&X.restart(!0),p&&n&&p(Q),v&&v(Q,r)}},Dt=function(t){return t.touches&&t.touches.length>1&&(Q.isGesturing=!0)&&O(t,Q.isDragging)},yt=function(){return(Q.isGesturing=!1)||M(Q)},_t=function(t){if(!ht(t)){var e=tt(),n=et();dt((e-nt)*R,(n-rt)*R,1),nt=e,rt=n,u&&X.restart(!0)}},wt=function(t){if(!ht(t)){t=Si(t,a),B&&(U=!0);var e=(1===t.deltaMode?s:2===t.deltaMode?Kr.innerHeight:1)*h;dt(t.deltaX*e,t.deltaY*e,0),u&&!P&&X.restart(!0)}},bt=function(t){if(!ht(t)){var e=t.clientX,n=t.clientY,r=e-Q.x,i=n-Q.y;Q.x=e,Q.y=n,W=!0,u&&X.restart(!0),(r||i)&&pt(r,i)}},xt=function(t){Q.event=t,T(Q)},Ct=function(t){Q.event=t,k(Q)},Et=function(t){return ht(t)||Si(t,a)&&N(Q)};X=Q._dc=Qr.delayedCall(l||.25,(function(){Q._vx.reset(),Q._vy.reset(),X.pause(),u&&u(Q)})).pause(),Q.deltaX=Q.deltaY=0,Q._vx=ki(0,50,!0),Q._vy=ki(0,50,!0),Q.scrollX=tt,Q.scrollY=et,Q.isDragging=Q.isGesturing=Q.isPressed=!1,ui(this),Q.enable=function(t){return Q.isEnabled||(Di(st?ot:i,"scroll",bi),r.indexOf("scroll")>=0&&Di(st?ot:i,"scroll",_t,Z,z),r.indexOf("wheel")>=0&&Di(i,"wheel",wt,Z,z),(r.indexOf("touch")>=0&&ni||r.indexOf("pointer")>=0)&&(Di(i,ai[0],gt,Z,z),Di(ot,ai[2],vt),Di(ot,ai[3],vt),q&&Di(i,"click",ct,!0,!0),N&&Di(i,"click",Et),O&&Di(ot,"gesturestart",Dt),M&&Di(ot,"gestureend",yt),T&&Di(i,ri+"enter",xt),k&&Di(i,ri+"leave",Ct),S&&Di(i,ri+"move",bt)),Q.isEnabled=!0,t&&t.type&>(t),L&&L(Q)),Q},Q.disable=function(){Q.isEnabled&&(hi.filter((function(t){return t!==Q&&vi(t.target)})).length||yi(st?ot:i,"scroll",bi),Q.isPressed&&(Q._vx.reset(),Q._vy.reset(),yi(P?i:ot,ai[1],mt,!0)),yi(st?ot:i,"scroll",_t,z),yi(i,"wheel",wt,z),yi(i,ai[0],gt,z),yi(ot,ai[2],vt),yi(ot,ai[3],vt),yi(i,"click",ct,!0),yi(i,"click",Et),yi(ot,"gesturestart",Dt),yi(ot,"gestureend",yt),yi(i,ri+"enter",xt),yi(i,ri+"leave",Ct),yi(i,ri+"move",bt),Q.isEnabled=Q.isPressed=Q.isDragging=!1,I&&I(Q))},Q.kill=Q.revert=function(){Q.disable();var t=hi.indexOf(Q);t>=0&&hi.splice(t,1),oi===Q&&(oi=0)},hi.push(Q),P&&vi(i)&&(oi=Q),Q.enable(f)},e=t,(n=[{key:"velocityX",get:function(){return this._vx.getVelocity()}},{key:"velocityY",get:function(){return this._vy.getVelocity()}}])&&$r(e.prototype,n),t}();Mi.version="3.12.5",Mi.create=function(t){return new Mi(t)},Mi.register=Oi,Mi.getAll=function(){return hi.slice()},Mi.getById=function(t){return hi.filter((function(e){return e.vars.id===t}))[0]},li()&&Qr.registerPlugin(Mi);var Bi,Li,Ii,Ni,Ri,zi,qi,Vi,ji,Hi,Xi,Yi,Wi,Ui,Gi,$i,Qi,Ji,Ki,Zi,ts,es,ns,rs,is,ss,os,as,us,ls,cs,hs,fs,ds,ps,ms,gs,vs,Ds=1,ys=Date.now,_s=ys(),ws=0,bs=0,xs=function(t,e,n){var r=Ns(t)&&("clamp("===t.substr(0,6)||t.indexOf("max")>-1);return n["_"+e+"Clamp"]=r,r?t.substr(6,t.length-7):t},Cs=function(t,e){return!e||Ns(t)&&"clamp("===t.substr(0,6)?t:"clamp("+t+")"},Es=function t(){return bs&&requestAnimationFrame(t)},Fs=function(){return Ui=1},Ts=function(){return Ui=0},ks=function(t){return t},Ss=function(t){return Math.round(1e5*t)/1e5||0},As=function(){return"undefined"!=typeof window},Ps=function(){return Bi||As()&&(Bi=window.gsap)&&Bi.registerPlugin&&Bi},Os=function(t){return!!~qi.indexOf(t)},Ms=function(t){return("Height"===t?cs:Ii["inner"+t])||Ri["client"+t]||zi["client"+t]},Bs=function(t){return gi(t,"getBoundingClientRect")||(Os(t)?function(){return Go.width=Ii.innerWidth,Go.height=cs,Go}:function(){return oo(t)})},Ls=function(t,e){var n=e.s,r=e.d2,i=e.d,s=e.a;return Math.max(0,(n="scroll"+r)&&(s=gi(t,n))?s()-Bs(t)()[i]:Os(t)?(Ri[n]||zi[n])-Ms(r):t[n]-t["offset"+r])},Is=function(t,e){for(var n=0;n0){for(t-=i,s=0;s=t)return n[s];return n[s-1]}for(s=n.length,t+=i;s--;)if(n[s]<=t)return n[s];return n[0]}:function(n,r,i){void 0===i&&(i=.001);var s=e(n);return!r||Math.abs(s-n)n&&(r*=e/100),t=t.substr(0,n-1)),t=r+(t in vo?vo[t]*e:~t.indexOf("%")?parseFloat(t)*e/100:parseFloat(t)||0)}return t},yo=function(t,e,n,r,i,s,o,a){var u=i.startColor,l=i.endColor,c=i.fontSize,h=i.indent,f=i.fontWeight,d=Ni.createElement("div"),p=Os(n)||"fixed"===gi(n,"pinType"),m=-1!==t.indexOf("scroller"),g=p?zi:n,v=-1!==t.indexOf("start"),D=v?u:l,y="border-color:"+D+";font-size:"+c+";color:"+D+";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:"+((m||a)&&p?"fixed;":"absolute;"),(m||a||!p)&&(y+=(r===Ei?Ys:Ws)+":"+(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,g.children[0]?g.insertBefore(d,g.children[0]):g.appendChild(d),d._offset=d["offset"+r.op.d2],_o(d,0,r,v),d},_o=function(t,e,n,r){var i={display:"block"},s=n[r?"os2":"p2"],o=n[r?"p2":"os2"];t._isFlipped=r,i[n.a+"Percent"]=r?-100:0,i[n.a]=r?"1px":0,i["border"+s+eo]=1,i["border"+o+eo]=0,i[n.p]=e+"px",Bi.set(t,i)},wo=[],bo={},xo=function(){return ys()-ws>34&&(ps||(ps=requestAnimationFrame(Vo)))},Co=function(){(!ns||!ns.isPressed||ns.startX>zi.clientWidth)&&(fi.cache++,ns?ps||(ps=requestAnimationFrame(Vo)):Vo(),ws||Ao("scrollStart"),ws=ys())},Eo=function(){ss=Ii.innerWidth,is=Ii.innerHeight},Fo=function(){fi.cache++,!Wi&&!es&&!Ni.fullscreenElement&&!Ni.webkitFullscreenElement&&(!rs||ss!==Ii.innerWidth||Math.abs(Ii.innerHeight-is)>.25*Ii.innerHeight)&&Vi.restart(!0)},To={},ko=[],So=function t(){return fo(ea,"scrollEnd",t)||Ro(!0)},Ao=function(t){return To[t]&&To[t].map((function(t){return t()}))||ko},Po=[],Oo=function(t){for(var e=0;ee,r=t._startClamp&&t.start>=e;(n||r)&&t.setPositions(r?e-1:t.start,n?Math.max(r?e:t.start+1,e):t.end,!0)})),No(!1),fs=0,n.forEach((function(t){return t&&t.render&&t.render(-1)})),fi.forEach((function(t){Rs(t)&&(t.smooth&&requestAnimationFrame((function(){return t.target.style.scrollBehavior="smooth"})),t.rec&&t(t.rec))})),Bo(us,1),Vi.pause(),Lo++,ms=2,Vo(2),wo.forEach((function(t){return Rs(t.vars.onRefresh)&&t.vars.onRefresh(t)})),ms=ea.isRefreshing=!1,Ao("refresh")}else ho(ea,"scrollEnd",So)},zo=0,qo=1,Vo=function(t){if(2===t||!ms&&!hs){ea.isUpdating=!0,vs&&vs.update(0);var e=wo.length,n=ys(),r=n-_s>=50,i=e&&wo[0].scroll();if(qo=zo>i?-1:1,ms||(zo=i),r&&(ws&&!Ui&&n-ws>200&&(ws=0,Ao("scrollEnd")),Xi=_s,_s=n),qo<0){for($i=e;$i-- >0;)wo[$i]&&wo[$i].update(0,r);qo=1}else for($i=0;$i20),n-=n-_}if(d&&(a[d]=t||-.001,t<0&&(t=0)),s){var x=t+n,C=s._isStart;p="scroll"+r.d2,_o(s,x,r,C&&x>20||!C&&(c?Math.max(zi[p],Ri[p]):s.parentNode[p])<=x+1),c&&(u=oo(o),c&&(s.style[r.op.p]=u[r.op.p]-r.op.m-s._offset+ro))}return f&&g&&(p=oo(g),f.seek(h),m=oo(g),f._caScrollDist=p[r.p]-m[r.p],t=t/f._caScrollDist*h),f&&f.seek(v),f?t:Math.round(t)},Qo=/(webkit|moz|length|cssText|inset)/i,Jo=function(t,e,n,r){if(t.parentNode!==e){var i,s,o=t.style;if(e===zi){for(i in t._stOrig=o.cssText,s=io(t))+i||Qo.test(i)||!s[i]||"string"!=typeof o[i]||"0"===i||(o[i]=s[i]);o.top=n,o.left=r}else o.cssText=t._stOrig;Bi.core.getCache(t).uncache=1,e.appendChild(t)}},Ko=function(t,e,n){var r=e,i=r;return function(e){var s=Math.round(t());return s!==r&&s!==i&&Math.abs(s-r)>3&&Math.abs(s-i)>3&&(e=s,n&&n()),i=r,r=e,e}},Zo=function(t,e,n){var r={};r[e.p]="+="+n,Bi.set(t,r)},ta=function(t,e){var n=Ti(t,e),r="_scroll"+e.p2,i=function e(i,s,o,a,u){var l=e.tween,c=s.onComplete,h={};o=o||n();var f=Ko(n,o,(function(){l.kill(),e.tween=0}));return u=a&&u||0,a=a||i-o,l&&l.kill(),s[r]=i,s.inherit=!1,s.modifiers=h,h[r]=function(){return f(o+a*l.ratio+u*l.ratio*l.ratio)},s.onUpdate=function(){fi.cache++,e.tween&&Vo()},s.onComplete=function(){e.tween=0,c&&c.call(l)},l=e.tween=Bi.to(t,s)};return t[r]=n,n.wheelHandler=function(){return i.tween&&i.tween.kill()&&(i.tween=0)},ho(t,"wheel",n.wheelHandler),ea.isTouch&&ho(t,"touchmove",n.wheelHandler),i},ea=function(){function t(e,n){Li||t.register(Bi)||console.warn("Please gsap.registerPlugin(ScrollTrigger)"),as(this),this.init(e,n)}return t.prototype.init=function(e,n){if(this.progress=this.start=0,this.vars&&this.kill(!0,!0),bs){var r,i,s,o,a,u,l,c,h,f,d,p,m,g,v,D,y,_,w,b,x,C,E,F,T,k,S,A,P,O,M,B,L,I,N,R,z,q,V,j,H,X,Y=e=so(Ns(e)||zs(e)||e.nodeType?{trigger:e}:e,go),W=Y.onUpdate,U=Y.toggleClass,G=Y.id,$=Y.onToggle,Q=Y.onRefresh,J=Y.scrub,K=Y.trigger,Z=Y.pin,tt=Y.pinSpacing,et=Y.invalidateOnRefresh,nt=Y.anticipatePin,rt=Y.onScrubComplete,it=Y.onSnapComplete,st=Y.once,ot=Y.snap,at=Y.pinReparent,ut=Y.pinSpacer,lt=Y.containerAnimation,ct=Y.fastScrollEnd,ht=Y.preventOverlaps,ft=e.horizontal||e.containerAnimation&&!1!==e.horizontal?Ci:Ei,dt=!J&&0!==J,pt=Fi(e.scroller||Ii),mt=Bi.core.getCache(pt),gt=Os(pt),vt="fixed"===("pinType"in e?e.pinType:gi(pt,"pinType")||gt&&"fixed"),Dt=[e.onEnter,e.onLeave,e.onEnterBack,e.onLeaveBack],yt=dt&&e.toggleActions.split(" "),_t="markers"in e?e.markers:go.markers,wt=gt?0:parseFloat(io(pt)["border"+ft.p2+eo])||0,bt=this,xt=e.onRefreshInit&&function(){return e.onRefreshInit(bt)},Ct=function(t,e,n){var r=n.d,i=n.d2,s=n.a;return(s=gi(t,"getBoundingClientRect"))?function(){return s()[r]}:function(){return(e?Ms(i):t["client"+i])||0}}(pt,gt,ft),Et=function(t,e){return!e||~di.indexOf(t)?Bs(t):function(){return Go}}(pt,gt),Ft=0,Tt=0,kt=0,St=Ti(pt,ft);if(bt._startClamp=bt._endClamp=!1,bt._dir=ft,nt*=45,bt.scroller=pt,bt.scroll=lt?lt.time.bind(lt):St,o=St(),bt.vars=e,n=n||e.animation,"refreshPriority"in e&&(Zi=1,-9999===e.refreshPriority&&(vs=bt)),mt.tweenScroll=mt.tweenScroll||{top:ta(pt,Ei),left:ta(pt,Ci)},bt.tweenTo=r=mt.tweenScroll[ft.p],bt.scrubDuration=function(t){(L=zs(t)&&t)?B?B.duration(t):B=Bi.to(n,{ease:"expo",totalProgress:"+=0",inherit:!1,duration:L,paused:!0,onComplete:function(){return rt&&rt(bt)}}):(B&&B.progress(1).kill(),B=0)},n&&(n.vars.lazy=!1,n._initted&&!bt.isReverted||!1!==n.vars.immediateRender&&!1!==e.immediateRender&&n.duration()&&n.render(0,!0,!0),bt.animation=n.pause(),n.scrollTrigger=bt,bt.scrubDuration(J),O=0,G||(G=n.vars.id)),ot&&(qs(ot)&&!ot.push||(ot={snapTo:ot}),"scrollBehavior"in zi.style&&Bi.set(gt?[zi,Ri]:pt,{scrollBehavior:"auto"}),fi.forEach((function(t){return Rs(t)&&t.target===(gt?Ni.scrollingElement||Ri:pt)&&(t.smooth=!1)})),s=Rs(ot.snapTo)?ot.snapTo:"labels"===ot.snapTo?function(t){return function(e){return Bi.utils.snap(uo(t),e)}}(n):"labelsDirectional"===ot.snapTo?(j=n,function(t,e){return lo(uo(j))(t,e.direction)}):!1!==ot.directional?function(t,e){return lo(ot.snapTo)(t,ys()-Tt<500?0:e.direction)}:Bi.utils.snap(ot.snapTo),I=ot.duration||{min:.1,max:2},I=qs(I)?Hi(I.min,I.max):Hi(I,I),N=Bi.delayedCall(ot.delay||L/2||.1,(function(){var t=St(),e=ys()-Tt<500,i=r.tween;if(!(e||Math.abs(bt.getVelocity())<10)||i||Ui||Ft===t)bt.isActive&&Ft!==t&&N.restart(!0);else{var o,a,c=(t-u)/g,h=n&&!dt?n.totalProgress():c,f=e?0:(h-M)/(ys()-Xi)*1e3||0,d=Bi.utils.clamp(-c,1-c,Hs(f/2)*f/.185),p=c+(!1===ot.inertia?0:d),m=ot,v=m.onStart,D=m.onInterrupt,y=m.onComplete;if(o=s(p,bt),zs(o)||(o=p),a=Math.round(u+o*g),t<=l&&t>=u&&a!==t){if(i&&!i._initted&&i.data<=Hs(a-t))return;!1===ot.inertia&&(d=o-c),r(a,{duration:I(Hs(.185*Math.max(Hs(p-h),Hs(o-h))/f/.05||0)),ease:ot.ease||"power3",data:Hs(a-t),onInterrupt:function(){return N.restart(!0)&&D&&D(bt)},onComplete:function(){bt.update(),Ft=St(),n&&(B?B.resetTo("totalProgress",o,n._tTime/n._tDur):n.progress(o)),O=M=n&&!dt?n.totalProgress():bt.progress,it&&it(bt),y&&y(bt)}},t,d*g,a-t-d*g),v&&v(bt,r.tween)}}})).pause()),G&&(bo[G]=bt),(V=(K=bt.trigger=Fi(K||!0!==Z&&Z))&&K._gsap&&K._gsap.stRevert)&&(V=V(bt)),Z=!0===Z?K:Fi(Z),Ns(U)&&(U={targets:K,className:U}),Z&&(!1===tt||tt===to||(tt=!(!tt&&Z.parentNode&&Z.parentNode.style&&"flex"===io(Z.parentNode).display)&&Zs),bt.pin=Z,(i=Bi.core.getCache(Z)).spacer?v=i.pinState:(ut&&((ut=Fi(ut))&&!ut.nodeType&&(ut=ut.current||ut.nativeElement),i.spacerIsNative=!!ut,ut&&(i.spacerState=Uo(ut))),i.spacer=_=ut||Ni.createElement("div"),_.classList.add("pin-spacer"),G&&_.classList.add("pin-spacer-"+G),i.pinState=v=Uo(Z)),!1!==e.force3D&&Bi.set(Z,{force3D:!0}),bt.spacer=_=i.spacer,P=io(Z),F=P[tt+ft.os2],b=Bi.getProperty(Z),x=Bi.quickSetter(Z,ft.a,ro),Xo(Z,_,P),y=Uo(Z)),_t){p=qs(_t)?so(_t,mo):mo,f=yo("scroller-start",G,pt,ft,p,0),d=yo("scroller-end",G,pt,ft,p,0,f),w=f["offset"+ft.op.d2];var At=Fi(gi(pt,"content")||pt);c=this.markerStart=yo("start",G,At,ft,p,w,0,lt),h=this.markerEnd=yo("end",G,At,ft,p,w,0,lt),lt&&(q=Bi.quickSetter([c,h],ft.a,ro)),vt||di.length&&!0===gi(pt,"fixedMarkers")||(X=io(H=gt?zi:pt).position,H.style.position="absolute"===X||"fixed"===X?X:"relative",Bi.set([f,d],{force3D:!0}),k=Bi.quickSetter(f,ft.a,ro),A=Bi.quickSetter(d,ft.a,ro))}if(lt){var Pt=lt.vars.onUpdate,Ot=lt.vars.onUpdateParams;lt.eventCallback("onUpdate",(function(){bt.update(0,0,1),Pt&&Pt.apply(lt,Ot||[])}))}if(bt.previous=function(){return wo[wo.indexOf(bt)-1]},bt.next=function(){return wo[wo.indexOf(bt)+1]},bt.revert=function(t,e){if(!e)return bt.kill(!0);var r=!1!==t||!bt.enabled,i=Wi;r!==bt.isReverted&&(r&&(R=Math.max(St(),bt.scroll.rec||0),kt=bt.progress,z=n&&n.progress()),c&&[c,h,f,d].forEach((function(t){return t.style.display=r?"none":"block"})),r&&(Wi=bt,bt.update(r)),!Z||at&&bt.isActive||(r?function(t,e,n){Wo(n);var r=t._gsap;if(r.spacerIsNative)Wo(r.spacerState);else if(t._gsap.swappedIn){var i=e.parentNode;i&&(i.insertBefore(t,e),i.removeChild(e))}t._gsap.swappedIn=!1}(Z,_,v):Xo(Z,_,io(Z),T)),r||bt.update(r),Wi=i,bt.isReverted=r)},bt.refresh=function(i,s,p,w){if(!Wi&&bt.enabled||s)if(Z&&i&&ws)ho(t,"scrollEnd",So);else{!ms&&xt&&xt(bt),Wi=bt,r.tween&&!p&&(r.tween.kill(),r.tween=0),B&&B.pause(),et&&n&&n.revert({kill:!1}).invalidate(),bt.isReverted||bt.revert(!0,!0),bt._subPinOffset=!1;var x,F,k,A,P,O,M,L,I,q,V,j,H,X=Ct(),Y=Et(),W=lt?lt.duration():Ls(pt,ft),U=g<=.01,G=0,$=w||0,J=qs(p)?p.end:e.end,nt=e.endTrigger||K,rt=qs(p)?p.start:e.start||(0!==e.start&&K?Z?"0 0":"0 100%":0),it=bt.pinnedContainer=e.pinnedContainer&&Fi(e.pinnedContainer,bt),st=K&&Math.max(0,wo.indexOf(bt))||0,ot=st;for(_t&&qs(p)&&(j=Bi.getProperty(f,ft.p),H=Bi.getProperty(d,ft.p));ot--;)(O=wo[ot]).end||O.refresh(0,1)||(Wi=bt),!(M=O.pin)||M!==K&&M!==Z&&M!==it||O.isReverted||(q||(q=[]),q.unshift(O),O.revert(!0,!0)),O!==wo[ot]&&(st--,ot--);for(Rs(rt)&&(rt=rt(bt)),rt=xs(rt,"start",bt),u=$o(rt,K,X,ft,St(),c,f,bt,Y,wt,vt,W,lt,bt._startClamp&&"_startClamp")||(Z?-.001:0),Rs(J)&&(J=J(bt)),Ns(J)&&!J.indexOf("+=")&&(~J.indexOf(" ")?J=(Ns(rt)?rt.split(" ")[0]:"")+J:(G=Do(J.substr(2),X),J=Ns(rt)?rt:(lt?Bi.utils.mapRange(0,lt.duration(),lt.scrollTrigger.start,lt.scrollTrigger.end,u):u)+G,nt=K)),J=xs(J,"end",bt),l=Math.max(u,$o(J||(nt?"100% 0":W),nt,X,ft,St()+G,h,d,bt,Y,wt,vt,W,lt,bt._endClamp&&"_endClamp"))||-.001,G=0,ot=st;ot--;)(M=(O=wo[ot]).pin)&&O.start-O._pinPush<=u&&!lt&&O.end>0&&(x=O.end-(bt._startClamp?Math.max(0,O.start):O.start),(M===K&&O.start-O._pinPush=Ls(pt,ft)){if(K&&St()&&!lt)for(F=K.parentNode;F&&F!==zi;)F._pinOffset&&(u-=F._pinOffset,l-=F._pinOffset),F=F.parentNode}else x=io(Z),A=ft===Ei,k=St(),C=parseFloat(b(ft.a))+$,!W&&l>1&&(V={style:V=(gt?Ni.scrollingElement||Ri:pt).style,value:V["overflow"+ft.a.toUpperCase()]},gt&&"scroll"!==io(zi)["overflow"+ft.a.toUpperCase()]&&(V.style["overflow"+ft.a.toUpperCase()]="scroll")),Xo(Z,_,x),y=Uo(Z),F=oo(Z,!0),L=vt&&Ti(pt,A?Ci:Ei)(),tt?((T=[tt+ft.os2,g+$+ro]).t=_,(ot=tt===Zs?ao(Z,ft)+g+$:0)&&(T.push(ft.d,ot+ro),"auto"!==_.style.flexBasis&&(_.style.flexBasis=ot+ro)),Wo(T),it&&wo.forEach((function(t){t.pin===it&&!1!==t.vars.pinSpacing&&(t._subPinOffset=!0)})),vt&&St(R)):(ot=ao(Z,ft))&&"auto"!==_.style.flexBasis&&(_.style.flexBasis=ot+ro),vt&&((P={top:F.top+(A?k-u:L)+ro,left:F.left+(A?L:k-u)+ro,boxSizing:"border-box",position:"fixed"})[Us]=P["max"+eo]=Math.ceil(F.width)+ro,P[Gs]=P["max"+no]=Math.ceil(F.height)+ro,P[to]=P[to+Js]=P[to+$s]=P[to+Ks]=P[to+Qs]="0",P[Zs]=x[Zs],P[Zs+Js]=x[Zs+Js],P[Zs+$s]=x[Zs+$s],P[Zs+Ks]=x[Zs+Ks],P[Zs+Qs]=x[Zs+Qs],D=function(t,e,n){for(var r,i=[],s=t.length,o=n?8:0;o1,vt&&S&&D.splice(D.length-2,2),n.render(0,!0,!0),I||n.invalidate(!0),n.parent||n.totalTime(n.totalTime()),ts(0)):E=g,V&&(V.value?V.style["overflow"+ft.a.toUpperCase()]=V.value:V.style.removeProperty("overflow-"+ft.a));q&&q.forEach((function(t){return t.revert(!1,!0)})),bt.start=u,bt.end=l,o=a=ms?R:St(),lt||ms||(o0?wo.slice(0,e).reverse():wo.slice(e+1);return(Ns(t)?n.filter((function(e){return e.vars.preventOverlaps===t})):n).filter((function(t){return bt.direction>0?t.end<=u:t.start>=l}))},bt.update=function(t,e,i){if(!lt||i||t){var s,c,h,d,p,m,v,w=!0===ms?R:bt.scroll(),b=t?0:(w-u)/g,T=b<0?0:b>1?1:b||0,P=bt.progress;if(e&&(a=o,o=lt?St():w,ot&&(M=O,O=n&&!dt?n.totalProgress():T)),nt&&Z&&!Wi&&!Ds&&ws&&(!T&&uw+(w-a)/(ys()-Xi)*nt&&(T=.9999)),T!==P&&bt.enabled){if(d=(p=(s=bt.isActive=!!T&&T<1)!=(!!P&&P<1))||!!T!=!!P,bt.direction=T>P?1:-1,bt.progress=T,d&&!Wi&&(c=T&&!P?0:1===T?1:1===P?2:3,dt&&(h=!p&&"none"!==yt[c+1]&&yt[c+1]||yt[c],v=n&&("complete"===h||"reset"===h||h in n))),ht&&(p||v)&&(v||J||!n)&&(Rs(ht)?ht(bt):bt.getTrailing(ht).forEach((function(t){return t.endAnimation()}))),dt||(!B||Wi||Ds?n&&n.totalProgress(T,!(!Wi||!Tt&&!t)):(B._dp._time-B._start!==B._time&&B.render(B._dp._time-B._start),B.resetTo?B.resetTo("totalProgress",T,n._tTime/n._tDur):(B.vars.totalProgress=T,B.invalidate().restart()))),Z)if(t&&tt&&(_.style[tt+ft.os2]=F),vt){if(d){if(m=!t&&T>P&&l+1>w&&w+1>=Ls(pt,ft),at)if(t||!s&&!m)Jo(Z,_);else{var L=oo(Z,!0),I=w-u;Jo(Z,zi,L.top+(ft===Ei?I:0)+ro,L.left+(ft===Ei?0:I)+ro)}Wo(s||m?D:y),S&&T<1&&s||x(C+(1!==T||m?0:E))}}else x(Ss(C+E*T));ot&&!r.tween&&!Wi&&!Ds&&N.restart(!0),U&&(p||st&&T&&(T<1||!ds))&&ji(U.targets).forEach((function(t){return t.classList[s||st?"add":"remove"](U.className)})),W&&!dt&&!t&&W(bt),d&&!Wi?(dt&&(v&&("complete"===h?n.pause().totalProgress(1):"reset"===h?n.restart(!0).pause():"restart"===h?n.restart(!0):n[h]()),W&&W(bt)),!p&&ds||($&&p&&js(bt,$),Dt[c]&&js(bt,Dt[c]),st&&(1===T?bt.kill(!1,1):Dt[c]=0),p||Dt[c=1===T?1:3]&&js(bt,Dt[c])),ct&&!s&&Math.abs(bt.getVelocity())>(zs(ct)?ct:2500)&&(Vs(bt.callbackAnimation),B?B.progress(1):Vs(n,"reverse"===h?1:!T,1))):dt&&W&&!Wi&&W(bt)}if(A){var z=lt?w/lt.duration()*(lt._caScrollDist||0):w;k(z+(f._isFlipped?1:0)),A(z)}q&&q(-w/lt.duration()*(lt._caScrollDist||0))}},bt.enable=function(e,n){bt.enabled||(bt.enabled=!0,ho(pt,"resize",Fo),gt||ho(pt,"scroll",Co),xt&&ho(t,"refreshInit",xt),!1!==e&&(bt.progress=kt=0,o=a=Ft=St()),!1!==n&&bt.refresh())},bt.getTween=function(t){return t&&r?r.tween:B},bt.setPositions=function(t,e,n,r){if(lt){var i=lt.scrollTrigger,s=lt.duration(),o=i.end-i.start;t=i.start+o*t/s,e=i.start+o*e/s}bt.refresh(!1,!1,{start:Cs(t,n&&!!bt._startClamp),end:Cs(e,n&&!!bt._endClamp)},r),bt.update()},bt.adjustPinSpacing=function(t){if(T&&t){var e=T.indexOf(ft.d)+1;T[e]=parseFloat(T[e])+t+ro,T[1]=parseFloat(T[1])+t+ro,Wo(T)}},bt.disable=function(e,n){if(bt.enabled&&(!1!==e&&bt.revert(!0,!0),bt.enabled=bt.isActive=!1,n||B&&B.pause(),R=0,i&&(i.uncache=1),xt&&fo(t,"refreshInit",xt),N&&(N.pause(),r.tween&&r.tween.kill()&&(r.tween=0)),!gt)){for(var s=wo.length;s--;)if(wo[s].scroller===pt&&wo[s]!==bt)return;fo(pt,"resize",Fo),gt||fo(pt,"scroll",Co)}},bt.kill=function(t,r){bt.disable(t,r),B&&!r&&B.kill(),G&&delete bo[G];var s=wo.indexOf(bt);s>=0&&wo.splice(s,1),s===$i&&qo>0&&$i--,s=0,wo.forEach((function(t){return t.scroller===bt.scroller&&(s=1)})),s||ms||(bt.scroll.rec=0),n&&(n.scrollTrigger=null,t&&n.revert({kill:!1}),r||n.kill()),c&&[c,h,f,d].forEach((function(t){return t.parentNode&&t.parentNode.removeChild(t)})),vs===bt&&(vs=0),Z&&(i&&(i.uncache=1),s=0,wo.forEach((function(t){return t.pin===Z&&s++})),s||(i.spacer=0)),e.onKill&&e.onKill(bt)},wo.push(bt),bt.enable(!1,!1),V&&V(bt),n&&n.add&&!g){var Mt=bt.update;bt.update=function(){bt.update=Mt,u||l||bt.refresh()},Bi.delayedCall(.01,bt.update),g=.01,u=l=0}else bt.refresh();Z&&function(){if(gs!==Lo){var t=gs=Lo;requestAnimationFrame((function(){return t===Lo&&Ro(!0)}))}}()}else this.update=this.refresh=this.kill=ks},t.register=function(e){return Li||(Bi=e||Ps(),As()&&window.document&&t.enable(),Li=bs),Li},t.defaults=function(t){if(t)for(var e in t)go[e]=t[e];return go},t.disable=function(t,e){bs=0,wo.forEach((function(n){return n[e?"kill":"disable"](t)})),fo(Ii,"wheel",Co),fo(Ni,"scroll",Co),clearInterval(Yi),fo(Ni,"touchcancel",ks),fo(zi,"touchstart",ks),co(fo,Ni,"pointerdown,touchstart,mousedown",Fs),co(fo,Ni,"pointerup,touchend,mouseup",Ts),Vi.kill(),Is(fo);for(var n=0;n0&&r.left+i0&&r.top+i=0&&Po.splice(e,5),Po.push(t,t.style.cssText,t.getBBox&&t.getAttribute("transform"),Bi.core.getCache(t),as())}})):Po},ea.revert=function(t,e){return Mo(!t,e)},ea.create=function(t,e){return new ea(t,e)},ea.refresh=function(t){return t?Fo():(Li||ea.register())&&Ro(!0)},ea.update=function(t){return++fi.cache&&Vo(!0===t?2:0)},ea.clearScrollMemory=Bo,ea.maxScroll=function(t,e){return Ls(t,e?Ci:Ei)},ea.getScrollFunc=function(t,e){return Ti(Fi(t),e?Ci:Ei)},ea.getById=function(t){return bo[t]},ea.getAll=function(){return wo.filter((function(t){return"ScrollSmoother"!==t.vars.id}))},ea.isScrolling=function(){return!!ws},ea.snapDirectional=lo,ea.addEventListener=function(t,e){var n=To[t]||(To[t]=[]);~n.indexOf(e)||n.push(e)},ea.removeEventListener=function(t,e){var n=To[t],r=n&&n.indexOf(e);r>=0&&n.splice(r,1)},ea.batch=function(t,e){var n,r=[],i={},s=e.interval||.016,o=e.batchMax||1e9,a=function(t,e){var n=[],r=[],i=Bi.delayedCall(s,(function(){e(n,r),n=[],r=[]})).pause();return function(t){n.length||i.restart(!0),n.push(t.trigger),r.push(t),o<=n.length&&i.progress(1)}};for(n in e)i[n]="on"===n.substr(0,2)&&Rs(e[n])&&"onRefreshInit"!==n?a(0,e[n]):e[n];return Rs(o)&&(o=o(),ho(ea,"refresh",(function(){return o=e.batchMax()}))),ji(t).forEach((function(t){var e={};for(n in i)e[n]=i[n];e.trigger=t,r.push(ea.create(e))})),r};var na,ra=function(t,e,n,r){return e>r?t(r):e<0&&t(0),n>r?(r-e)/(n-e):n<0?e/(e-n):1},ia=function t(e,n){!0===n?e.style.removeProperty("touch-action"):e.style.touchAction=!0===n?"auto":n?"pan-"+n+(Mi.isTouch?" pinch-zoom":""):"none",e===Ri&&t(zi,n)},sa={auto:1,scroll:1},oa=function(t){var e,n=t.event,r=t.target,i=t.axis,s=(n.changedTouches?n.changedTouches[0]:n).target,o=s._gsap||Bi.core.getCache(s),a=ys();if(!o._isScrollT||a-o._isScrollT>2e3){for(;s&&s!==zi&&(s.scrollHeight<=s.clientHeight&&s.scrollWidth<=s.clientWidth||!sa[(e=io(s)).overflowY]&&!sa[e.overflowX]);)s=s.parentNode;o._isScroll=s&&s!==r&&!Os(s)&&(sa[(e=io(s)).overflowY]||sa[e.overflowX]),o._isScrollT=a}(o._isScroll||"x"===i)&&(n.stopPropagation(),n._gsapAllow=!0)},aa=function(t,e,n,r){return Mi.create({target:t,capture:!0,debounce:!1,lockAxis:!0,type:e,onWheel:r=r&&oa,onPress:r,onDrag:r,onScroll:r,onEnable:function(){return n&&ho(Ni,Mi.eventTypes[0],la,!1,!0)},onDisable:function(){return fo(Ni,Mi.eventTypes[0],la,!0)}})},ua=/(input|label|select|textarea)/i,la=function(t){var e=ua.test(t.target.tagName);(e||na)&&(t._gsapAllow=!0,na=e)};function ca(t,e){for(var n=0;nn&&(D()>n?s.progress(1)&&D(n):s.resetTo("scrollY",n))};return v&&Bi.set(v,{y:"+=0"}),t.ignoreCheck=function(t){return os&&"touchmove"===t.type&&function(){if(i){requestAnimationFrame(E);var t=Ss(e.deltaY/2),n=T(D.v-t);if(v&&n!==D.v+D.offset){D.offset=n-D.v;var r=Ss((parseFloat(v&&v._gsap.y)||0)-D.offset);v.style.transform="matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, "+r+", 0, 1)",v._gsap.y=r+"px",D.cacheID=fi.cache,Vo()}return!0}D.offset&&S(),i=!0}()||_>1.05&&"touchstart"!==t.type||e.isGesturing||t.touches&&t.touches.length>1},t.onPress=function(){i=!1;var t=_;_=Ss((Ii.visualViewport&&Ii.visualViewport.scale||1)/w),s.pause(),t!==_&&ia(p,_>1.01||!c&&"x"),o=y(),a=D(),k(),r=Lo},t.onRelease=t.onGestureStart=function(t,e){if(D.offset&&S(),e){fi.cache++;var r,i,o=x();c&&(i=(r=y())+.05*o*-t.velocityX/.227,o*=ra(y,r,i,Ls(p,Ci)),s.vars.scrollX=F(i)),i=(r=D())+.05*o*-t.velocityY/.227,o*=ra(D,r,i,Ls(p,Ei)),s.vars.scrollY=T(i),s.invalidate().duration(o).play(.01),(os&&s.vars.scrollY>=n||r>=n-1)&&Bi.to({},{onUpdate:A,duration:o})}else u.restart(!0);d&&d(t)},t.onWheel=function(){s._ts&&s.pause(),ys()-b>1e3&&(r=0,b=ys())},t.onChange=function(t,e,n,i,s){if(Lo!==r&&k(),e&&c&&y(F(i[2]===e?o+(t.startX-t.x):y()+e-i[1])),n){D.offset&&S();var u=s[2]===n,l=u?a+t.startY-t.y:D()+n-s[1],h=T(l);u&&l!==h&&(a+=h-l),D(h)}(n||e)&&Vo()},t.onEnable=function(){ia(p,!c&&"x"),ea.addEventListener("refresh",A),ho(Ii,"resize",A),D.smooth&&(D.target.style.scrollBehavior="auto",D.smooth=y.smooth=!1),C.enable()},t.onDisable=function(){ia(p,!0),fo(Ii,"resize",A),ea.removeEventListener("refresh",A),C.kill()},t.lockAxis=!1!==t.lockAxis,(e=new Mi(t)).iOS=os,os&&!D()&&D(1),os&&Bi.ticker.add(ks),u=e._dc,s=Bi.to(e,{ease:"power4",paused:!0,inherit:!1,scrollX:c?"+=0.1":"+=0",scrollY:"+=0.1",modifiers:{scrollY:Ko(D,D(),(function(){return s.pause()}))},onUpdate:Vo,onComplete:u.vars.onComplete}),e}(t);return ns&&ns.target===e.target&&ns.kill(),Os(e.target)&&(ns=e),e},ea.core={_getVelocityProp:ki,_inputObserver:aa,_scrollers:fi,_proxies:di,bridge:{ss:function(){ws||Ao("scrollStart"),ws=ys()},ref:function(){return Wi}}},Ps()&&Bi.registerPlugin(ea);var ha,fa,da,pa,ma,ga,va,Da,ya,_a,wa,ba,xa,Ca,Ea,Fa=function(){return"undefined"!=typeof window},Ta=function(){return ha||Fa()&&(ha=window.gsap)&&ha.registerPlugin&&ha},ka=function(t){return ya.maxScroll(t||da)},Sa=function(){function t(e){var n=this;fa||t.register(ha)||console.warn("Please gsap.registerPlugin(ScrollSmoother)"),e=this.vars=e||{},_a&&_a.kill(),_a=this,Ca(this);var r,i,s,o,a,u,l,c,h,f,d,p,m,g,v,D,y=e,_=y.smoothTouch,w=y.onUpdate,b=y.onStop,x=y.smooth,C=y.onFocusIn,E=y.normalizeScroll,F=y.wholePixels,T=this,k=e.effectsPrefix||"",S=ya.getScrollFunc(da),A=1===ya.isTouch?!0===_?.8:parseFloat(_)||0:0===x||!1===x?0:parseFloat(x)||.8,P=A&&+e.speed||1,O=0,M=0,B=1,L=ba(0),I=function(){return L.update(-O)},N={y:0},R=function(){return r.style.overflow="visible"},z=function(t){t.update();var e=t.getTween();e&&(e.pause(),e._time=e._dur,e._tTime=e._tDur),v=!1,t.animation.progress(t.progress,!0)},q=function(e,n){(e!==O&&!f||n)&&(F&&(e=Math.round(e)),A&&(r.style.transform="matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, "+e+", 0, 1)",r._gsap.y=e+"px"),M=e-O,O=e,ya.isUpdating||t.isRefreshing||ya.update())},V=function(t){return arguments.length?(t<0&&(t=0),N.y=-t,v=!0,f?O=-t:q(-t),ya.isRefreshing?o.update():S(t/P),this):-O},j="undefined"!=typeof ResizeObserver&&!1!==e.autoResize&&new ResizeObserver((function(){if(!ya.isRefreshing){var t=ka(i)*P;t<-O&&V(t),Ea.restart(!0)}})),H=function(t){i.scrollTop=0,t.target.contains&&t.target.contains(i)||C&&!1===C(n,t)||(ya.isInViewport(t.target)||t.target===D||n.scrollTo(t.target,!1,"center center"),D=t.target)},X=function(t,e){if(t0?o+(l-u):X(l,e),h.setPositions(o,a,!0,(h._startClamp?Math.max(0,o):o)-u),h.markerStart&&d.push(ha.quickSetter([h.markerStart,h.markerEnd],"y","px")),h.pin&&h.end>0&&!r)){if(i=h.end-h.start,s=e._startClamp&&h.start<0){if(e.start>0)return e.setPositions(0,e.end+(e._startNative-e.start),!0),void t(e,n);i+=h.start,f.offset=-h.start}f.push({start:h.start,nativeStart:u,end:h.end,distance:i,trig:h}),e.setPositions(e.start,e.end+(s?-h.start:i),!0)}},W=function(t,e){a.forEach((function(n){return Y(n,t,e)}))},U=function(){R(),requestAnimationFrame(R),a&&(ya.getAll().forEach((function(t){t._startNative=t.start,t._endNative=t.end})),a.forEach((function(t){var e=t._startClamp||t.start,n=t.autoSpeed?Math.min(ka(),t.end):e+Math.abs((t.end-e)/t.ratio),r=n-t.end;if((e-=r/2)>(n-=r/2)){var i=e;e=n,n=i}t._startClamp&&e<0?(r=(n=t.ratio<0?ka():t.end/t.ratio)-t.end,e=0):(t.ratio<0||t._endClamp&&n>=ka())&&(r=((n=ka())-(e=t.ratio<0||t.ratio>1?0:n-(n-t.start)/t.ratio))*t.ratio-(t.end-t.start)),t.offset=r||1e-4,t.pins.length=t.pins.offset=0,t.setPositions(e,n,!0)})),W(ya.sort())),L.reset()},G=function(){return ya.addEventListener("refresh",U)},$=function(){return a&&a.forEach((function(t){return t.vars.onRefresh(t)}))},Q=function(){return a&&a.forEach((function(t){return t.vars.onRefreshInit(t)})),$},J=function(t,e,n,r){return function(){var i="function"==typeof e?e(n,r):e;i||0===i||(i=r.getAttribute("data-"+k+t)||("speed"===t?1:0)),r.setAttribute("data-"+k+t,i);var s="clamp("===(i+"").substr(0,6);return{clamp:s,value:s?i.substr(6,i.length-7):i}}},K=function(t,e,n,r,s){s=("function"==typeof s?s(r,t):s)||0;var o,u,l,c,h,f,d=J("speed",e,r,t),p=J("lag",n,r,t),m=ha.getProperty(t,"y"),g=t._gsap,v=[],D=function(){e=d(),n=parseFloat(p().value),o=parseFloat(e.value)||1,l="auto"===e.value,h=l||u&&u._startClamp&&u.start<=0||v.offset?0:u&&u._endClamp&&u.end===ka()?1:.5,c&&c.kill(),c=n&&ha.to(t,{ease:wa,overwrite:!1,y:"+=0",duration:n}),u&&(u.ratio=o,u.autoSpeed=l)},y=function(){g.y=m+"px",g.renderTransform(1),D()},_=[],w=0,b=function(e){if(l){y();var n=function(t,e){var n,r,i=t.parentNode||ma,s=t.getBoundingClientRect(),o=i.getBoundingClientRect(),a=o.top-s.top,u=o.bottom-s.bottom,l=(Math.abs(a)>Math.abs(u)?a:u)/(1-e),c=-l*e;return l>0&&(r=.5==(n=o.height/(da.innerHeight+o.height))?2*o.height:2*Math.min(o.height,Math.abs(-l*n/(2*n-1)))*(e||1),c+=e?-r*e:-r/2,l+=r),{change:l,offset:c}}(t,Da(0,1,-e.start/(e.end-e.start)));w=n.change,f=n.offset}else f=v.offset||0,w=(e.end-e.start-f)*(1-o);v.forEach((function(t){return w-=t.distance*(1-o)})),e.offset=w||.001,e.vars.onUpdate(e),c&&c.progress(1)};return D(),(1!==o||l||c)&&(u=ya.create({trigger:l?t.parentNode:t,start:function(){return e.clamp?"clamp(top bottom+="+s+")":"top bottom+="+s},end:function(){return e.value<0?"max":e.clamp?"clamp(bottom top-="+s+")":"bottom top-="+s},scroller:i,scrub:!0,refreshPriority:-999,onRefreshInit:y,onRefresh:b,onKill:function(t){var e=a.indexOf(t);e>=0&&a.splice(e,1),y()},onUpdate:function(t){var e,n,r,i,s=m+w*(t.progress-h),o=v.length,a=0;if(t.offset){if(o){for(n=-O,r=t.end;o--;){if((e=v[o]).trig.isActive||n>=e.start&&n<=e.end)return void(c&&(e.trig.progress+=e.trig.direction<0?.001:-.001,e.trig.update(0,0,1),c.resetTo("y",parseFloat(g.y),-M,!0),B&&c.progress(1)));n>e.end&&(a+=e.distance),r-=e.distance}s=m+a+w*((ha.utils.clamp(t.start,t.end,n)-t.start-a)/(r-t.start)-h)}_.length&&!l&&_.forEach((function(t){return t(s-a)})),i=s+f,s=Math.round(1e5*i)/1e5||0,c?(c.resetTo("y",s,-M,!0),B&&c.progress(1)):(g.y=s+"px",g.renderTransform(1))}}}),b(u),ha.core.getCache(u.trigger).stRevert=Q,u.startY=m,u.pins=v,u.markers=_,u.ratio=o,u.autoSpeed=l,t.style.willChange="transform"),u};function Z(){return s=r.clientHeight,r.style.overflow="visible",ga.style.height=da.innerHeight+(s-da.innerHeight)/P+"px",s-da.innerHeight}G(),ya.addEventListener("killAll",G),ha.delayedCall(.5,(function(){return B=0})),this.scrollTop=V,this.scrollTo=function(t,e,r){var i=ha.utils.clamp(0,ka(),isNaN(t)?n.offset(t,r,!!e&&!f):+t);e?f?ha.to(n,{duration:A,scrollTop:i,overwrite:"auto",ease:wa}):S(i):V(i)},this.offset=function(t,e,n){var r,i=(t=va(t)[0]).style.cssText,s=ya.create({trigger:t,start:e||"top top"});return a&&(B?ya.refresh():W([s],!0)),r=s.start/(n?P:1),s.kill(!1),t.style.cssText=i,ha.core.getCache(t).uncache=1,r},this.content=function(t){if(arguments.length){var e=va(t||"#smooth-content")[0]||console.warn("ScrollSmoother needs a valid content element.")||ga.children[0];return e!==r&&(h=(r=e).getAttribute("style")||"",j&&j.observe(r),ha.set(r,{overflow:"visible",width:"100%",boxSizing:"border-box",y:"+=0"}),A||ha.set(r,{clearProps:"transform"})),this}return r},this.wrapper=function(t){return arguments.length?(i=va(t||"#smooth-wrapper")[0]||function(t){var e=pa.querySelector(".ScrollSmoother-wrapper");return e||((e=pa.createElement("div")).classList.add("ScrollSmoother-wrapper"),t.parentNode.insertBefore(e,t),e.appendChild(t)),e}(r),c=i.getAttribute("style")||"",Z(),ha.set(i,A?{overflow:"hidden",position:"fixed",height:"100%",width:"100%",top:0,left:0,right:0,bottom:0}:{overflow:"visible",position:"relative",width:"100%",height:"auto",top:"auto",bottom:"auto",left:"auto",right:"auto"}),this):i},this.effects=function(t,e){var n;if(a||(a=[]),!t)return a.slice(0);(t=va(t)).forEach((function(t){for(var e=a.length;e--;)a[e].trigger===t&&a[e].kill()}));var r,i,s=e=e||{},o=s.speed,u=s.lag,l=s.effectsPadding,c=[];for(r=0;rr._dp._time,p=O,N.y=0,A&&(1===ya.isTouch&&(i.style.position="absolute"),i.scrollTop=0,1===ya.isTouch&&(i.style.position="fixed"))}},onRefresh:function(e){e.animation.invalidate(),e.setPositions(e.start,Z()/P),m||z(e),N.y=-S()*P,q(N.y),B||(m&&(v=!1),e.animation.progress(ha.utils.clamp(0,1,p/P/-e.end))),m&&(e.progress-=.001,e.update()),t.isRefreshing=!1},id:"ScrollSmoother",scroller:da,invalidateOnRefresh:!0,start:0,refreshPriority:-9999,end:function(){return Z()/P},onScrubComplete:function(){L.reset(),b&&b(n)},scrub:A||!0}),this.smooth=function(t){return arguments.length&&(P=(A=t||0)&&+e.speed||1,o.scrubDuration(t)),o.getTween()?o.getTween().duration():0},o.getTween()&&(o.getTween().vars.ease=e.ease||wa),this.scrollTrigger=o,e.effects&&this.effects(!0===e.effects?"[data-"+k+"speed], [data-"+k+"lag]":e.effects,{effectsPadding:e.effectsPadding,refresh:!1}),e.sections&&this.sections(!0===e.sections?"[data-section]":e.sections),tt.forEach((function(t){t.vars.scroller=i,t.revert(!1,!0),t.init(t.vars,t.animation)})),this.paused=function(t,e){return arguments.length?(!!f!==t&&(t?(o.getTween()&&o.getTween().pause(),S(-O/P),L.reset(),(d=ya.normalizeScroll())&&d.disable(),(f=ya.observe({preventDefault:!0,type:"wheel,touch,scroll",debounce:!1,allowClicks:!0,onChangeY:function(){return V(-O)}})).nested=xa(ma,"wheel,touch,scroll",!0,!1!==e)):(f.nested.kill(),f.kill(),f=0,d&&d.enable(),o.progress=(-O/P-o.start)/(o.end-o.start),z(o))),this):!!f},this.kill=this.revert=function(){n.paused(!1),z(o),o.kill();for(var t=(a||[]).concat(u||[]),e=t.length;e--;)t[e].kill();ya.scrollerProxy(i),ya.removeEventListener("killAll",G),ya.removeEventListener("refresh",U),i.style.cssText=c,r.style.cssText=h;var s=ya.defaults({});s&&s.scroller===i&&ya.defaults({scroller:da}),n.normalizer&&ya.normalizeScroll(!1),clearInterval(l),_a=null,j&&j.disconnect(),ga.style.removeProperty("height"),da.removeEventListener("focusin",H)},this.refresh=function(t,e){return o.refresh(t,e)},E&&(this.normalizer=ya.normalizeScroll(!0===E?{debounce:!0,content:!A&&r}:E)),ya.config(e),"overscrollBehavior"in da.getComputedStyle(ga)&&ha.set([ga,ma],{overscrollBehavior:"none"}),"scrollBehavior"in da.getComputedStyle(ga)&&ha.set([ga,ma],{scrollBehavior:"auto"}),da.addEventListener("focusin",H),l=setInterval(I,250),"loading"===pa.readyState||requestAnimationFrame((function(){return ya.refresh()}))}var e,n;return t.register=function(e){return fa||(ha=e||Ta(),Fa()&&window.document&&(da=window,pa=document,ma=pa.documentElement,ga=pa.body),ha&&(va=ha.utils.toArray,Da=ha.utils.clamp,wa=ha.parseEase("expo"),Ca=ha.core.context||function(){},ya=ha.core.globals().ScrollTrigger,ha.core.globals("ScrollSmoother",t),ga&&ya&&(Ea=ha.delayedCall(.2,(function(){return ya.isRefreshing||_a&&_a.refresh()})).pause(),ba=ya.core._getVelocityProp,xa=ya.core._inputObserver,t.refresh=ya.refresh,fa=1))),fa},e=t,(n=[{key:"progress",get:function(){return this.scrollTrigger?this.scrollTrigger.animation._time/100:0}}])&&ca(e.prototype,n),t}();Sa.version="3.12.5",Sa.create=function(t){return _a&&t&&_a.content()===va(t.content)[0]?_a:new Sa(t)},Sa.get=function(){return _a},Ta()&&ha.registerPlugin(Sa),Wr.registerPlugin(ea,Sa);let Aa=null;const Pa={init(){Aa||(Aa=Sa.create({content:".page",smooth:2,smoothTouch:!1}))},getInstance(){return Aa||this.init(),Aa},kill(){this.getInstance().kill(),Aa=null}},Oa=new class{name="overlay-transition";leave({current:t}){return Wr.to(".transition",{yPercent:0,onComplete:()=>Wr.set(t.container,{display:"none"})})}afterLeave(){Pa.getInstance().scrollTo(0,!1)}enter({next:t}){return Wr.to(".transition",{duration:.3,yPercent:-100,onComplete:()=>Wr.set(".transition",{yPercent:100})})}};var Ma=/([\uD800-\uDBFF][\uDC00-\uDFFF](?:[\u200D\uFE0F][\uD800-\uDBFF][\uDC00-\uDFFF]){2,}|\uD83D\uDC69(?:\u200D(?:(?:\uD83D\uDC69\u200D)?\uD83D\uDC67|(?:\uD83D\uDC69\u200D)?\uD83D\uDC66)|\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC69\u200D(?:\uD83D\uDC69\u200D)?\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D(?:\uD83D\uDC69\u200D)?\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]\uFE0F|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC6F\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3C-\uDD3E\uDDD6-\uDDDF])\u200D[\u2640\u2642]\uFE0F|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF6\uD83C\uDDE6|\uD83C\uDDF4\uD83C\uDDF2|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uFE0F\u200D[\u2640\u2642]|(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642])\uFE0F|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2695\u2696\u2708]|\uD83D\uDC69\u200D[\u2695\u2696\u2708]|\uD83D\uDC68(?:(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708]))\uFE0F|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83D\uDC69\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69]))|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|[#\*0-9]\uFE0F\u20E3|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67)\uDB40\uDC7F|\uD83D\uDC68(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:(?:\uD83D[\uDC68\uDC69])\u200D)?\uD83D\uDC66\u200D\uD83D\uDC66|(?:(?:\uD83D[\uDC68\uDC69])\u200D)?\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92])|(?:\uD83C[\uDFFB-\uDFFF])\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]))|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270A-\u270D]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC70\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDCAA\uDD74\uDD7A\uDD90\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD36\uDDD1-\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\u200D(?:(?:(?:\uD83D[\uDC68\uDC69])\u200D)?\uD83D\uDC67|(?:(?:\uD83D[\uDC68\uDC69])\u200D)?\uD83D\uDC66)|\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC69\uDC6E\uDC70-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD18-\uDD1C\uDD1E\uDD1F\uDD26\uDD30-\uDD39\uDD3D\uDD3E\uDDD1-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])?|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDEEB\uDEEC\uDEF4-\uDEF8]|\uD83E[\uDD10-\uDD3A\uDD3C-\uDD3E\uDD40-\uDD45\uDD47-\uDD4C\uDD50-\uDD6B\uDD80-\uDD97\uDDC0\uDDD0-\uDDE6])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u2660\u2663\u2665\u2666\u2668\u267B\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEF8]|\uD83E[\uDD10-\uDD3A\uDD3C-\uDD3E\uDD40-\uDD45\uDD47-\uDD4C\uDD50-\uDD6B\uDD80-\uDD97\uDDC0\uDDD0-\uDDE6])\uFE0F)/;function Ba(t){var e=t.nodeType,n="";if(1===e||9===e||11===e){if("string"==typeof t.textContent)return t.textContent;for(t=t.firstChild;t;t=t.nextSibling)n+=Ba(t)}else if(3===e||4===e)return t.nodeValue;return n}var La,Ia,Na,Ra,za,qa,Va=/(?:\r|\n|\t\t)/g,ja=/(?:\s\s+)/g,Ha=String.fromCharCode(160),Xa=function(t){La=document,Ia=window,(Ra=Ra||t||Ia.gsap||console.warn("Please gsap.registerPlugin(SplitText)"))&&(qa=Ra.utils.toArray,za=Ra.core.context||function(){},Na=1)},Ya=function(t){return Ia.getComputedStyle(t)},Wa=function(t){return"absolute"===t.position||!0===t.absolute},Ua=function(t,e){for(var n,r=e.length;--r>-1;)if(n=e[r],t.substr(0,n.length)===n)return n.length},Ga=function(t,e){void 0===t&&(t="");var n=~t.indexOf("++"),r=1;return n&&(t=t.split("++").join("")),function(){return"<"+e+" style='position:relative;display:inline-block;'"+(t?" class='"+t+(n?r++:"")+"'>":">")}},$a=function t(e,n,r){var i=e.nodeType;if(1===i||9===i||11===i)for(e=e.firstChild;e;e=e.nextSibling)t(e,n,r);else 3!==i&&4!==i||(e.nodeValue=e.nodeValue.split(n).join(r))},Qa=function(t,e){for(var n=e.length;--n>-1;)t.push(e[n])},Ja=function(t,e,n){for(var r;t&&t!==e;){if(r=t._next||t.nextSibling)return r.textContent.charAt(0)===n;t=t.parentNode||t._parent}},Ka=function t(e){var n,r,i=qa(e.childNodes),s=i.length;for(n=0;nF&&("BR"!==c.nodeName||0===a)&&(d=[],B.push(d),w=D),N&&(c._x=c.offsetLeft,c._y=D,c._w=c.offsetWidth,c._h=c.offsetHeight),B&&((c._isSplit&&f||!I&&f||L&&f||!L&&c.parentNode.parentNode===t&&!c.parentNode._isSplit)&&(d.push(c),c._x-=_,Ja(c,t,P)&&(c._wordEnd=!0)),"BR"===c.nodeName&&(c.nextSibling&&"BR"===c.nextSibling.nodeName||0===a)&&B.push([])));for(a=0;a-1;)q[a].parentNode.removeChild(q[a]);if(B){for(N&&(g=La.createElement(O),t.appendChild(g),v=g.offsetWidth+"px",D=g.offsetParent===t?0:t.offsetLeft,t.removeChild(g)),m=t.style.cssText,t.style.cssText="display:none;";t.firstChild;)t.removeChild(t.firstChild);for(p=" "===P&&(!N||!L&&!I),a=0;at.clientHeight&&(t.style.height=o-C+"px",t.clientHeightt.clientWidth&&(t.style.width=s-E+"px",t.clientWidth",y=1,_=e.specialChars?"function"==typeof e.specialChars?e.specialChars:Ua:null,w=La.createElement("div"),b=t.parentNode;for(b.insertBefore(w,t),w.textContent=t.nodeValue,b.removeChild(t),c=-1!==(i=Ba(t=w)).indexOf("<"),!1!==e.reduceWhiteSpace&&(i=i.replace(ja," ").replace(Va,"")),c&&(i=i.split("<").join("{{LT}}")),u=i.length,s=(" "===i.charAt(0)?v:"")+n(),o=0;o":l,o+=h-1;else if(g(l)&&!g(i.charAt(o-1))&&o){for(s+=y?D:"",y=0;g(i.charAt(o+1));)s+=v,o++;o===u-1?s+=v:")"!==i.charAt(o+1)&&(s+=v+n(),y=1)}else"{"===l&&"{{LT}}"===i.substr(o,6)?(s+=d?r()+"{{LT}}":"{{LT}}",o+=5):l.charCodeAt(0)>=55296&&l.charCodeAt(0)<=56319||i.charCodeAt(o+1)>=65024&&i.charCodeAt(o+1)<=65039?(a=((i.substr(o,12).split(Ma)||[])[1]||"").length||2,s+=d&&" "!==l?r()+i.substr(o,a)+"":i.substr(o,a),o+=a-1):s+=d&&" "!==l?r()+l+"":l;t.outerHTML=s+(y?D:""),c&&$a(b,"{{LT}}","<")},nu=function t(e,n,r,i){var s,o,a=qa(e.childNodes),u=a.length,l=Wa(n);if(3!==e.nodeType||u>1){for(n.absolute=!1,s=0;s-1;)r=this.elements[i],this._originals[i]={html:r.innerHTML,style:r.getAttribute("style")},e=r.clientHeight,n=r.clientWidth,nu(r,t,o,a),tu(r,t,this.chars,this.words,this.lines,n,e);return this.chars.reverse(),this.words.reverse(),this.lines.reverse(),this.isSplit=!0,this},e.revert=function(){var t=this._originals;if(!t)throw"revert() call wasn't scoped properly.";return this.elements.forEach((function(e,n){e.innerHTML=t[n].html,e.setAttribute("style",t[n].style)})),this.chars=[],this.words=[],this.lines=[],this.isSplit=!1,this},t.create=function(e,n){return new t(e,n)},t}();ru.version="3.12.5",ru.register=Xa,Wr.registerPlugin(ea,ru);const iu=new class{namespace="home";header=null;headerName=null;beforeLeave=t=>{};afterLeave=t=>{};beforeEnter=t=>{this.header=document.querySelector(".home-header__name"),this.headerName=document.querySelector(".header__name"),Wr.set(this.header,{autoAlpha:0}),Wr.set(this.headerName,{autoAlpha:0})};afterEnter=t=>{console.log("afterEnter Home"),Wr.set(this.header,{autoAlpha:1});const e=new ru(this.header,{charsClass:"home-header__char"});Wr.set(e.lines,{overflow:"hidden"}),Wr.set(e.chars,{paddingBottom:"0.15em"}),Wr.set(e.lines.slice(1),{marginTop:"-0.15em"});const n=Wr.timeline();e.lines.forEach((t=>{n.from(t.querySelectorAll(".home-header__char"),{yPercent:100,duration:1,ease:"back.out(.5)",stagger:.02},">-75%")}))}},su=new class{namespace="about";beforeLeave=t=>{};beforeEnter=t=>{};afterEnter=t=>{}},ou=new class{namespace="projects-overview"};var au,uu,lu,cu,hu,fu,du,pu,mu,gu="transform",vu=gu+"Origin",Du=function(t){var e=t.ownerDocument||t;!(gu in t.style)&&"msTransform"in t.style&&(vu=(gu="msTransform")+"Origin");for(;e.parentNode&&(e=e.parentNode););if(uu=window,du=new ku,e){au=e,lu=e.documentElement,cu=e.body,(pu=au.createElementNS("http://www.w3.org/2000/svg","g")).style.transform="none";var n=e.createElement("div"),r=e.createElement("div"),i=e&&(e.body||e.firstElementChild);i&&i.appendChild&&(i.appendChild(n),n.appendChild(r),n.setAttribute("style","position:static;transform:translate3d(0,0,1px)"),mu=r.offsetParent!==n,i.removeChild(n))}return e},yu=[],_u=[],wu=function(){return uu.pageYOffset||au.scrollTop||lu.scrollTop||cu.scrollTop||0},bu=function(){return uu.pageXOffset||au.scrollLeft||lu.scrollLeft||cu.scrollLeft||0},xu=function(t){return t.ownerSVGElement||("svg"===(t.tagName+"").toLowerCase()?t:null)},Cu=function t(e){return"fixed"===uu.getComputedStyle(e).position||((e=e.parentNode)&&1===e.nodeType?t(e):void 0)},Eu=function t(e,n){if(e.parentNode&&(au||Du(e))){var r=xu(e),i=r?r.getAttribute("xmlns")||"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",s=r?n?"rect":"g":"div",o=2!==n?0:100,a=3===n?100:0,u="position:absolute;display:block;pointer-events:none;margin:0;padding:0;",l=au.createElementNS?au.createElementNS(i.replace(/^https/,"http"),s):au.createElement(s);return n&&(r?(fu||(fu=t(e)),l.setAttribute("width",.01),l.setAttribute("height",.01),l.setAttribute("transform","translate("+o+","+a+")"),fu.appendChild(l)):(hu||((hu=t(e)).style.cssText=u),l.style.cssText=u+"width:0.1px;height:0.1px;top:"+a+"px;left:"+o+"px",hu.appendChild(l))),l}throw"Need document and parent."},Fu=function(t){var e,n=t.getCTM();return n||(e=t.style[gu],t.style[gu]="none",t.appendChild(pu),n=pu.getCTM(),t.removeChild(pu),e?t.style[gu]=e:t.style.removeProperty(gu.replace(/([A-Z])/g,"-$1").toLowerCase())),n||du.clone()},Tu=function(t,e,n,r,i,s,o){return t.a=e,t.b=n,t.c=r,t.d=i,t.e=s,t.f=o,t},ku=function(){function t(t,e,n,r,i,s){void 0===t&&(t=1),void 0===e&&(e=0),void 0===n&&(n=0),void 0===r&&(r=1),void 0===i&&(i=0),void 0===s&&(s=0),Tu(this,t,e,n,r,i,s)}var e=t.prototype;return e.inverse=function(){var t=this.a,e=this.b,n=this.c,r=this.d,i=this.e,s=this.f,o=t*r-e*n||1e-10;return Tu(this,r/o,-e/o,-n/o,t/o,(n*s-r*i)/o,-(t*s-e*i)/o)},e.multiply=function(t){var e=this.a,n=this.b,r=this.c,i=this.d,s=this.e,o=this.f,a=t.a,u=t.c,l=t.b,c=t.d,h=t.e,f=t.f;return Tu(this,a*e+l*r,a*n+l*i,u*e+c*r,u*n+c*i,s+h*e+f*r,o+h*n+f*i)},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,r=this.c,i=this.d,s=this.e,o=this.f;return e===t.a&&n===t.b&&r===t.c&&i===t.d&&s===t.e&&o===t.f},e.apply=function(t,e){void 0===e&&(e={});var n=t.x,r=t.y,i=this.a,s=this.b,o=this.c,a=this.d,u=this.e,l=this.f;return e.x=n*i+r*o+u||0,e.y=n*s+r*a+l||0,e},t}();function Su(t,e,n,r){if(!t||!t.parentNode||(au||Du(t)).documentElement===t)return new ku;var i=function(t){for(var e,n;t&&t!==cu;)(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=xu(t)?yu:_u,o=function(t,e){var n,r,i,s,o,a,u=xu(t),l=t===u,c=u?yu:_u,h=t.parentNode;if(t===uu)return t;if(c.length||c.push(Eu(t,1),Eu(t,2),Eu(t,3)),n=u?fu:hu,u)l?(s=-(i=Fu(t)).e/i.a,o=-i.f/i.d,r=du):t.getBBox?(i=t.getBBox(),r=(r=t.transform?t.transform.baseVal:{}).numberOfItems?r.numberOfItems>1?function(t){for(var e=new ku,n=0;n4&&(s=i.offsetLeft,o=i.offsetTop,i=0);if("absolute"!==(a=uu.getComputedStyle(t)).position&&"fixed"!==a.position)for(r=t.offsetParent;h&&h!==r;)s+=h.scrollLeft||0,o+=h.scrollTop||0,h=h.parentNode;(i=n.style).top=t.offsetTop-o+"px",i.left=t.offsetLeft-s+"px",i[gu]=a[gu],i[vu]=a[vu],i.position="fixed"===a.position?"fixed":"absolute",t.parentNode.appendChild(n)}return n}(t,n),a=s[0].getBoundingClientRect(),u=s[1].getBoundingClientRect(),l=s[2].getBoundingClientRect(),c=o.parentNode,h=!r&&Cu(t),f=new ku((u.left-a.left)/100,(u.top-a.top)/100,(l.left-a.left)/100,(l.top-a.top)/100,a.left+(h?0:bu()),a.top+(h?0:wu()));if(c.removeChild(o),i)for(a=i.length;a--;)(u=i[a]).scaleX=u.scaleY=0,u.renderTransform(1,u);return e?f.inverse():f}var Au,Pu,Ou,Mu,Bu,Lu,Iu,Nu,Ru=1,zu=function(t,e){return t.actions.forEach((function(t){return t.vars[e]&&t.vars[e](t)}))},qu={},Vu=180/Math.PI,ju=Math.PI/180,Hu={},Xu={},Yu={},Wu=function(t){return"string"==typeof t?t.split(" ").join("").split(","):t},Uu=Wu("onStart,onUpdate,onComplete,onReverseComplete,onInterrupt"),Gu=Wu("transform,transformOrigin,width,height,position,top,left,opacity,zIndex,maxWidth,maxHeight,minWidth,minHeight"),$u=function(t){return Au(t)[0]||console.warn("Element not found:",t)},Qu=function(t){return Math.round(1e4*t)/1e4||0},Ju=function(t,e,n){return t.forEach((function(t){return t.classList[n](e)}))},Ku={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},Zu={zIndex:1,simple:1,clearProps:1,scale:1,absolute:1,fitChild:1,getVars:1,props:1},tl=function(t){return t.replace(/([A-Z])/g,"-$1").toLowerCase()},el=function(t,e){var n,r={};for(n in t)e[n]||(r[n]=t[n]);return r},nl={},rl=function(t){var e=nl[t]=Wu(t);return Yu[t]=e.concat(Gu),e},il=function t(e,n,r){void 0===r&&(r=0);for(var i=e.parentNode,s=1e3*Math.pow(10,r)*(n?-1:1),o=n?900*-s:0;e;)o+=s,e=e.previousSibling;return i?o+t(i,n,r+1):o},sl=function(t,e,n){return t.forEach((function(t){return t.d=il(n?t.element:t.t,e)})),t.sort((function(t,e){return t.d-e.d})),t},ol=function(t,e){for(var n,r,i=t.element.style,s=t.css=t.css||[],o=e.length;o--;)r=i[n=e[o]]||i.getPropertyValue(n),s.push(r?n:Xu[n]||(Xu[n]=tl(n)),r);return i},al=function(t){var e=t.css,n=t.element.style,r=0;for(t.cache.uncache=1;r0&&L&&(u.style.opacity=$?g.opacity-v.opacity:"0"),vl(g,v,B,z)):v.isVisible!==g.isVisible&&(v.isVisible?g.isVisible||(v.css=g.css,X.push(v),Y.splice(a--,1),x&&O&&vl(g,v,B,z)):(g.isVisible&&H.push(g),Y.splice(a--,1))),B||(u.style.maxWidth=Math.max(g.width,v.width)+"px",u.style.maxHeight=Math.max(g.height,v.height)+"px",u.style.minWidth=Math.min(g.width,v.width)+"px",u.style.minHeight=Math.min(g.height,v.height)+"px"),O&&P&&u.classList.add(P)):Y.splice(a--,1),f.push(g);var e;if(P&&(e=f.map((function(t){return t.element})),O&&e.forEach((function(t){return t.classList.remove(P)}))),bl(!1),B?(q.scaleX=function(t){return Y[t].a.scaleX},q.scaleY=function(t){return Y[t].a.scaleY}):(q.width=function(t){return Y[t].a.width+"px"},q.height=function(t){return Y[t].a.height+"px"},q.autoRound=n.autoRound||!1),q.x=function(t){return Y[t].a.x+"px"},q.y=function(t){return Y[t].a.y+"px"},q.rotation=function(t){return Y[t].a.rotation+(N?360*G(t,h[t],h):0)},q.skewX=function(t){return Y[t].a.skewX},h=Y.map((function(t){return t.t})),(M||0===M)&&(q.modifiers={zIndex:function(){return M}},q.zIndex=M,q.immediateRender=!1!==n.immediateRender),L&&(q.opacity=function(t){return Y[t].sd<0?0:Y[t].sd>0?Y[t].a.opacity:"+=0"}),W.length){I=Pu.utils.distribute(I);var r=h.slice(W.length);q.stagger=function(t,e){return I(~W.indexOf(e)?h.indexOf(Y[t].swap.t):t,e,r)}}if(Uu.forEach((function(t){return n[t]&&V.eventCallback(t,n[t],n[t+"Params"])})),E&&h.length)for(s in j=el(q,Ku),"scale"in E&&(E.scaleX=E.scaleY=E.scale,delete E.scale),E)(i=el(E[s],Zu))[s]=q[s],!("duration"in i)&&"duration"in q&&(i.duration=q.duration),i.stagger=q.stagger,Q.call(V,h,i,0),delete j[s];(h.length||X.length||H.length)&&(P&&V.add((function(){return Ju(e,P,V._zTime<0?"remove":"add")}),0)&&!T&&Ju(e,P,"add"),h.length&&Q.call(V,h,j,0)),gl(w,H,V),gl(b,X,V);var d=Ou&&Ou.timeline;d&&(d.add(V,0),Ou._final.push((function(){return ul(Y,!_)}))),o=V.duration(),V.call((function(){var t=V.time()>=o;t&&!d&&ul(Y,!_),P&&Ju(e,P,t?"remove":"add")}))},C&&(x=Y.filter((function(t){return!t.sd&&!t.a.isVisible&&t.b.isVisible})).map((function(t){return t.a.element}))),Ou?(x&&(D=Ou._abs).push.apply(D,hl(Y,x)),Ou._run.push(m)):(x&&fl(hl(Y,x)),m());var J=Ou?Ou.timeline:V;return J.revert=function(){return El(J,1,1)},J},Cl=function t(e){e.vars.onInterrupt&&e.vars.onInterrupt.apply(e,e.vars.onInterruptParams||[]),e.getChildren(!0,!1,!0).forEach(t)},El=function(t,e,n){if(t&&t.progress()<1&&(!t.paused()||n))return e&&(Cl(t),e<2&&t.progress(1),t.kill()),!0},Fl=function(t){for(var e,n=t.idLookup={},r=t.alt={},i=t.elementStates,s=i.length;s--;)n[(e=i[s]).id]?r[e.id]=e:n[e.id]=e},Tl=function(){function t(t,e,n){if(this.props=e&&e.props,this.simple=!(!e||!e.simple),n)this.targets=ml(t),this.elementStates=t,Fl(this);else{this.targets=Au(t);var r=e&&(!1===e.kill||e.batch&&!e.kill);Ou&&!r&&Ou._kill.push(this),this.update(r||!!Ou)}}var e=t.prototype;return e.update=function(t){var e=this;return this.elementStates=this.targets.map((function(t){return new kl(t,e.props,e.simple)})),Fl(this),this.interrupt(t),this.recordInlineStyles(),this},e.clear=function(){return this.targets.length=this.elementStates.length=0,Fl(this),this},e.fit=function(t,e,n){for(var r,i,s=sl(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=Ou,r=Mu;return Ou=this,this.state.clear(),this._kill.length=0,this.actions.forEach((function(n){n.vars.getState&&(n.states.length=0,Mu=n,n.state=n.vars.getState(n)),t&&n.states.forEach((function(t){return e.state.add(t)}))})),Mu=r,Ou=n,this.killConflicts(),this},e.animate=function(){var t,e,n=this,r=Ou,i=this.timeline,s=this.actions.length;for(Ou=this,i.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,r=t.vars.onEnter,i=t.vars.onLeave,s=t.targets;s&&s.length&&(r||i)&&(e=new Tl,t.states.forEach((function(t){return e.add(t)})),(n=e.compare(Pl.getState(s))).enter.length&&r&&r(n.enter),n.leave.length&&i&&i(n.leave))})),fl(this._abs),this._run.forEach((function(t){return t()})),e=i.duration(),t=this._final.slice(0),i.add((function(){e<=i.time()&&(t.forEach((function(t){return t()})),zu(n,"onComplete"))})),Ou=r;s--;)this.actions[s].vars.once&&this.actions[s].kill();return zu(this,"onStart"),i.restart(),this},e.loadState=function(t){t||(t=function(){return 0});var e=[];return this.actions.forEach((function(n){if(n.vars.loadState){var r,i=function i(s){s&&(n.targets=s),~(r=e.indexOf(i))&&(e.splice(r,1),e.length||t())};e.push(i),n.vars.loadState(i)}})),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!==Ou&&(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 qu[this.id]},t}(),Pl=function(){function t(){}return t.getState=function(e,n){var r=Dl(e,n);return Mu&&Mu.states.push(r),n&&n.batch&&t.batch(n.batch).state.add(r),r},t.from=function(t,e){return"clearProps"in(e=e||{})||(e.clearProps=!0),xl(t,Dl(e.targets||t.targets,{props:e.props||t.props,simple:e.simple,kill:!!e.kill}),e,-1)},t.to=function(t,e){return xl(t,Dl(e.targets||t.targets,{props:e.props||t.props,simple:e.simple,kill:!!e.kill}),e,1)},t.fromTo=function(t,e,n){return xl(t,e,n)},t.fit=function(t,e,n){var r=n?el(n,Zu):{},i=n||r,s=i.absolute,o=i.scale,a=i.getVars,u=i.props,l=i.runBackwards,c=i.onComplete,h=i.simple,f=n&&n.fitChild&&$u(n.fitChild),d=dl(e,u,h,t),p=dl(t,0,h,d),m=u?Yu[u]:Gu,g=Pu.context();return u&&pl(r,d.props),ol(p,m),l&&("immediateRender"in r||(r.immediateRender=!0),r.onComplete=function(){al(p),c&&c.apply(this,arguments)}),s&&cl(p,d),r=vl(p,d,o||f,u,f,r.duration||a?r:0),g&&!a&&g.add((function(){return function(){return al(p)}})),a?r:r.duration?Pu.to(p.element,r):null},t.makeAbsolute=function(t,e){return(t instanceof Tl?t:new Tl(t,e)).makeAbsolute()},t.batch=function(t){return t||(t="default"),qu[t]||(qu[t]=new Al(t))},t.killFlipsOf=function(t,e){(t instanceof Tl?t.targets:Au(t)).forEach((function(t){return t&&El(t._flip,!1!==e?1:2)}))},t.isFlipping=function(e){var n=t.getByTarget(e);return!!n&&n.isActive()},t.getByTarget=function(t){return($u(t)||Hu)._flip},t.getElementState=function(t,e){return new kl($u(t),e)},t.convertCoordinates=function(t,e,n){var r=Su(e,!0,!0).multiply(Su(t));return n?r.apply(n):r},t.register=function(t){if(Bu="undefined"!=typeof document&&document.body){Pu=t,Du(Bu),Au=Pu.utils.toArray,Iu=Pu.core.getStyleSaver;var e=Pu.utils.snap(.1);Lu=function(t,n){return e(parseFloat(t)+n)}}},t}();Pl.version="3.12.5","undefined"!=typeof window&&window.gsap&&window.gsap.registerPlugin(Pl),Wr.registerPlugin(Pl);const Ol=new class{namespace="project-details"};Wr.registerPlugin(Pl);const Ml=new class{name="project-from-overview";clickedCard;from={custom:({trigger:t})=>t.classList&&t.classList.contains("project-card__link"),namespace:["projects-overview"]};to={namespace:["project-details"]};leave(t){const e=Wr.utils.toArray(".project-card"),n=t.trigger;this.clickedCard=n.parentElement;const r=e.filter((t=>t!==this.clickedCard)),i=Wr.timeline();i.to(r,{autoAlpha:0}),i.to(t.current.container.querySelector("h1"),{autoAlpha:0},0),i.to(this.clickedCard.querySelector("h2"),{autoAlpha:0},0);const s=this.clickedCard.getBoundingClientRect(),o=s.top+s.height/2,a=window.innerHeight/2-o;return i.to(this.clickedCard,{y:a}),i}beforeEnter(t){Pa.kill(),Wr.set(t.next.container,{position:"fixed",top:0}),Wr.set(t.next.container.querySelector(".project__title"),{autoAlpha:0}),Wr.set(t.next.container.querySelectorAll("p"),{autoAlpha:0})}enter(t){const e=this.clickedCard.querySelector(".project-card__image");let n=Pl.getState(e);return e.classList.replace("project-card__image","project__image"),t.next.container.querySelector(".project__image").replaceWith(e),Pl.from(n)}afterEnter(t){Wr.set(t.next.container,{clearProps:"all"}),Wr.set(t.next.container.querySelector(".project__title"),{autoAlpha:1}),Wr.set(t.next.container.querySelectorAll("p"),{autoAlpha:1}),Pa.init(),Pa.getInstance().scrollTo(0,!1)}};var Bl=n(943),Ll=n.n(Bl);const Il=class{constructor(t){this.MIN_TIME=500,this.INITIAL_PROGRESS=.04,this.start=performance.now(),this.domProgress=0,this.numImages=0,this.imagesLoaded=!1,this.windowLoaded=!1,this.onComplete=t,this.init()}init(){this.imgLoad=new(Ll())("body",{background:!0},this.onImagesLoaded),this.numImages=this.imgLoad.images.length,this.domProgress=this.calculateDomProgress(),this.updateProgress(this.domProgress),this.imgLoad.on("progress",this.onImageLoadProgress),window.addEventListener("load",this.onLoaded)}calculateDomProgress(){return 0===this.numImages?1:this.INITIAL_PROGRESS+(1-this.INITIAL_PROGRESS)/(this.numImages+1)}onImageLoadProgress=t=>{const e=t.progressedCount/this.numImages;console.log("Image loaded",performance.now()),this.updateProgress(this.domProgress+(1-this.domProgress)*e)};onImagesLoaded=()=>{this.imagesLoaded=!0,console.log("All images loaded",performance.now()),this.finishLoading()};onLoaded=()=>{this.windowLoaded=!0,console.log("All assets loaded",performance.now()),this.finishLoading()};updateProgress(t){Wr.to(".initial-loader__percentage-amount",{innerText:Math.round(100*t),snap:"innerText"}),Wr.to(".initial-loader__progress-inner",{scaleX:t})}finishLoading=()=>{if(this.imagesLoaded&&this.windowLoaded){console.log("Finish loading",performance.now());const t=performance.now()-this.start,e=Math.max(this.MIN_TIME-t,500);document.documentElement.classList.remove("loading");const n=Wr.timeline({defaults:{ease:"power3.inOut",duration:.8}});n.to(".initial-loader__percentage, .initial-loader__progress",{y:100,duration:.3,ease:"power3.in",autoAlpha:0,delay:e/1e3}),n.to(".initial-loader",{yPercent:-100,onStart:()=>{this.onComplete&&this.onComplete()}},"<+25%")}}},Nl=new class{name="initial-loading-transition";once(t){const e=this.async();console.log("ONCE: Initial loading transition",performance.now()),new Il((()=>{console.log("End Once Loading"),e()}))}};var Rl,zl,ql,Vl,jl,Hl,Xl,Yl,Wl=function(){return"undefined"!=typeof window},Ul=function(){return Rl||Wl()&&(Rl=window.gsap)&&Rl.registerPlugin&&Rl},Gl=/[-+=\.]*\d+[\.e\-\+]*\d*[e\-\+]*\d*/gi,$l={rect:["width","height"],circle:["r","r"],ellipse:["rx","ry"],line:["x2","y2"]},Ql=function(t){return Math.round(1e4*t)/1e4},Jl=function(t){return parseFloat(t)||0},Kl=function(t,e){var n=Jl(t);return~t.indexOf("%")?n/100*e:n},Zl=function(t,e){return Jl(t.getAttribute(e))},tc=Math.sqrt,ec=function(t,e,n,r,i,s){return tc(Math.pow((Jl(n)-Jl(t))*i,2)+Math.pow((Jl(r)-Jl(e))*s,2))},nc=function(t){return console.warn(t)},rc=function(t){return"non-scaling-stroke"===t.getAttribute("vector-effect")},ic=function(t){if(!(t=zl(t)[0]))return 0;var e,n,r,i,s,o,a,u=t.tagName.toLowerCase(),l=t.style,c=1,h=1;rc(t)&&(h=t.getScreenCTM(),c=tc(h.a*h.a+h.b*h.b),h=tc(h.d*h.d+h.c*h.c));try{n=t.getBBox()}catch(t){nc("Some browsers won't measure invisible elements (like display:none or masks inside defs).")}var f=n||{x:0,y:0,width:0,height:0},d=f.x,p=f.y,m=f.width,g=f.height;if(n&&(m||g)||!$l[u]||(m=Zl(t,$l[u][0]),g=Zl(t,$l[u][1]),"rect"!==u&&"line"!==u&&(m*=2,g*=2),"line"===u&&(d=Zl(t,"x1"),p=Zl(t,"y1"),m=Math.abs(m-d),g=Math.abs(g-p))),"path"===u)i=l.strokeDasharray,l.strokeDasharray="none",e=t.getTotalLength()||0,Ql(c)!==Ql(h)&&!Hl&&(Hl=1)&&nc("Warning: length cannot be measured when vector-effect is non-scaling-stroke and the element isn't proportionally scaled."),e*=(c+h)/2,l.strokeDasharray=i;else if("rect"===u)e=2*m*c+2*g*h;else if("line"===u)e=ec(d,p,d+m,p+g,c,h);else if("polyline"===u||"polygon"===u)for(r=t.getAttribute("points").match(Gl)||[],"polygon"===u&&r.push(r[0],r[1]),e=0,s=2;se&&(r=e),[-i||0,r-i||0]},oc=function(){Wl()&&(document,ql=window,jl=Rl=Ul(),zl=Rl.utils.toArray,Xl=Rl.core.getStyleSaver,Yl=Rl.core.reverting||function(){},Vl=-1!==((ql.navigator||{}).userAgent||"").indexOf("Edge"))},ac={version:"3.12.5",name:"drawSVG",register:function(t){Rl=t,oc()},init:function(t,e,n,r,i){if(!t.getBBox)return!1;jl||oc();var s,o,a,u=ic(t);return this.styles=Xl&&Xl(t,"strokeDashoffset,strokeDasharray,strokeMiterlimit"),this.tween=n,this._style=t.style,this._target=t,e+""=="true"?e="0 100%":e?-1===(e+"").indexOf(" ")&&(e="0 "+e):e="0 0",o=function(t,e,n){var r,i,s=t.indexOf(" ");return s<0?(r=void 0!==n?n+"":t,i=t):(r=t.substr(0,s),i=t.substr(s+1)),(r=Kl(r,e))>(i=Kl(i,e))?[i,r]:[r,i]}(e,u,(s=sc(t,u))[0]),this._length=Ql(u),this._dash=Ql(s[1]-s[0]),this._offset=Ql(-s[0]),this._dashPT=this.add(this,"_dash",this._dash,Ql(o[1]-o[0]),0,0,0,0,0,1),this._offsetPT=this.add(this,"_offset",this._offset,Ql(-o[0]),0,0,0,0,0,1),Vl&&(a=ql.getComputedStyle(t)).strokeLinecap!==a.strokeLinejoin&&(o=Jl(a.strokeMiterlimit),this.add(t.style,"strokeMiterlimit",o,o+.01)),this._live=rc(t)||~(e+"").indexOf("live"),this._nowrap=~(e+"").indexOf("nowrap"),this._props.push("drawSVG"),1},render:function(t,e){if(e.tween._time||!Yl()){var n,r,i,s,o=e._pt,a=e._style;if(o){for(e._live&&(n=ic(e._target))!==e._length&&(r=n/e._length,e._length=n,e._offsetPT&&(e._offsetPT.s*=r,e._offsetPT.c*=r),e._dashPT?(e._dashPT.s*=r,e._dashPT.c*=r):e._dash*=r);o;)o.r(t,o.d),o=o._next;i=e._dash||t&&1!==t&&1e-4||0,n=e._length-i+.1,s=e._offset,i&&s&&i+Math.abs(s%e._length)>e._length-.2&&(s+=s<0?.1:-.1)&&(n+=.1),a.strokeDashoffset=i?s:s+.001,a.strokeDasharray=n<.2?"none":i?i+"px,"+(e._nowrap?999999:n)+"px":"0px, 999999px"}}else e.styles.revert()},getLength:ic,getPosition:sc};Ul()&&Rl.registerPlugin(ac);var uc=function(){function t(e){void 0===e&&(e={}),this.options=Object.assign({},{el:null,container:document.body,className:"mf-cursor",innerClassName:"mf-cursor-inner",textClassName:"mf-cursor-text",mediaClassName:"mf-cursor-media",mediaBoxClassName:"mf-cursor-media-box",iconSvgClassName:"mf-svgsprite",iconSvgNamePrefix:"-",iconSvgSrc:"",dataAttr:"cursor",hiddenState:"-hidden",textState:"-text",iconState:"-icon",activeState:"-active",mediaState:"-media",stateDetection:{"-pointer":"a,button"},visible:!0,visibleOnState:!1,speed:.55,ease:"expo.out",overwrite:!0,skewing:0,skewingText:2,skewingIcon:2,skewingMedia:2,skewingDelta:.001,skewingDeltaMax:.15,stickDelta:.15,showTimeout:0,hideOnLeave:!0,hideTimeout:300,hideMediaTimeout:300,initialPos:[-window.innerWidth,-window.innerHeight]},e),this.options.visible&&null==e.stateDetection&&(this.options.stateDetection["-hidden"]="iframe"),this.gsap=t.gsap||window.gsap,this.el="string"==typeof this.options.el?document.querySelector(this.options.el):this.options.el,this.container="string"==typeof this.options.container?document.querySelector(this.options.container):this.options.container,this.skewing=this.options.skewing,this.pos={x:this.options.initialPos[0],y:this.options.initialPos[1]},this.vel={x:0,y:0},this.event={},this.events=[],this.init()}t.registerGSAP=function(e){t.gsap=e};var e=t.prototype;return e.init=function(){this.el||this.create(),this.createSetter(),this.bind(),this.render(!0),this.ticker=this.render.bind(this,!1),this.gsap.ticker.add(this.ticker)},e.create=function(){this.el=document.createElement("div"),this.el.className=this.options.className,this.el.classList.add(this.options.hiddenState),this.inner=document.createElement("div"),this.inner.className=this.options.innerClassName,this.text=document.createElement("div"),this.text.className=this.options.textClassName,this.media=document.createElement("div"),this.media.className=this.options.mediaClassName,this.mediaBox=document.createElement("div"),this.mediaBox.className=this.options.mediaBoxClassName,this.media.appendChild(this.mediaBox),this.inner.appendChild(this.media),this.inner.appendChild(this.text),this.el.appendChild(this.inner),this.container.appendChild(this.el)},e.createSetter=function(){this.setter={x:this.gsap.quickSetter(this.el,"x","px"),y:this.gsap.quickSetter(this.el,"y","px"),rotation:this.gsap.quickSetter(this.el,"rotation","deg"),scaleX:this.gsap.quickSetter(this.el,"scaleX"),scaleY:this.gsap.quickSetter(this.el,"scaleY"),wc:this.gsap.quickSetter(this.el,"willChange"),inner:{rotation:this.gsap.quickSetter(this.inner,"rotation","deg")}}},e.bind=function(){var t=this;this.event.mouseleave=function(){return t.hide()},this.event.mouseenter=function(){return t.show()},this.event.mousedown=function(){return t.addState(t.options.activeState)},this.event.mouseup=function(){return t.removeState(t.options.activeState)},this.event.mousemoveOnce=function(){return t.show()},this.event.mousemove=function(e){t.gsap.to(t.pos,{x:t.stick?t.stick.x-(t.stick.x-e.clientX)*t.options.stickDelta:e.clientX,y:t.stick?t.stick.y-(t.stick.y-e.clientY)*t.options.stickDelta:e.clientY,overwrite:t.options.overwrite,ease:t.options.ease,duration:t.visible?t.options.speed:0,onUpdate:function(){return t.vel={x:e.clientX-t.pos.x,y:e.clientY-t.pos.y}}})},this.event.mouseover=function(e){for(var n=e.target;n&&n!==t.container&&(!e.relatedTarget||!n.contains(e.relatedTarget));n=n.parentNode){for(var r in t.options.stateDetection)n.matches(t.options.stateDetection[r])&&t.addState(r);if(t.options.dataAttr){var i=t.getFromDataset(n);i.state&&t.addState(i.state),i.text&&t.setText(i.text),i.icon&&t.setIcon(i.icon),i.img&&t.setImg(i.img),i.video&&t.setVideo(i.video),void 0!==i.show&&t.show(),void 0!==i.stick&&t.setStick(i.stick||n)}}},this.event.mouseout=function(e){for(var n=e.target;n&&n!==t.container&&(!e.relatedTarget||!n.contains(e.relatedTarget));n=n.parentNode){for(var r in t.options.stateDetection)n.matches(t.options.stateDetection[r])&&t.removeState(r);if(t.options.dataAttr){var i=t.getFromDataset(n);i.state&&t.removeState(i.state),i.text&&t.removeText(),i.icon&&t.removeIcon(),i.img&&t.removeImg(),i.video&&t.removeVideo(),void 0!==i.show&&t.hide(),void 0!==i.stick&&t.removeStick()}}},this.options.hideOnLeave&&this.container.addEventListener("mouseleave",this.event.mouseleave,{passive:!0}),this.options.visible&&this.container.addEventListener("mouseenter",this.event.mouseenter,{passive:!0}),this.options.activeState&&(this.container.addEventListener("mousedown",this.event.mousedown,{passive:!0}),this.container.addEventListener("mouseup",this.event.mouseup,{passive:!0})),this.container.addEventListener("mousemove",this.event.mousemove,{passive:!0}),this.options.visible&&this.container.addEventListener("mousemove",this.event.mousemoveOnce,{passive:!0,once:!0}),(this.options.stateDetection||this.options.dataAttr)&&(this.container.addEventListener("mouseover",this.event.mouseover,{passive:!0}),this.container.addEventListener("mouseout",this.event.mouseout,{passive:!0}))},e.render=function(t){if(!0===t||0!==this.vel.y&&0!==this.vel.x){if(this.trigger("render"),this.setter.wc("transform"),this.setter.x(this.pos.x),this.setter.y(this.pos.y),this.skewing){var e=Math.sqrt(Math.pow(this.vel.x,2)+Math.pow(this.vel.y,2)),n=Math.min(e*this.options.skewingDelta,this.options.skewingDeltaMax)*this.skewing,r=180*Math.atan2(this.vel.y,this.vel.x)/Math.PI;this.setter.rotation(r),this.setter.scaleX(1+n),this.setter.scaleY(1-n),this.setter.inner.rotation(-r)}}else this.setter.wc("auto")},e.show=function(){var t=this;this.trigger("show"),clearInterval(this.visibleInt),this.visibleInt=setTimeout((function(){t.el.classList.remove(t.options.hiddenState),t.visible=!0,t.render(!0)}),this.options.showTimeout)},e.hide=function(){var t=this;this.trigger("hide"),clearInterval(this.visibleInt),this.el.classList.add(this.options.hiddenState),this.visibleInt=setTimeout((function(){return t.visible=!1}),this.options.hideTimeout)},e.toggle=function(t){!0===t||!1!==t&&!this.visible?this.show():this.hide()},e.addState=function(t){var e;if(this.trigger("addState",t),t===this.options.hiddenState)return this.hide();(e=this.el.classList).add.apply(e,t.split(" ")),this.options.visibleOnState&&this.show()},e.removeState=function(t){var e;if(this.trigger("removeState",t),t===this.options.hiddenState)return this.show();(e=this.el.classList).remove.apply(e,t.split(" ")),this.options.visibleOnState&&this.el.className===this.options.className&&this.hide()},e.toggleState=function(t,e){!0===e||!1!==e&&!this.el.classList.contains(t)?this.addState(t):this.removeState(t)},e.setSkewing=function(t){this.gsap.to(this,{skewing:t})},e.removeSkewing=function(){this.gsap.to(this,{skewing:this.options.skewing})},e.setStick=function(t){var e=("string"==typeof t?document.querySelector(t):t).getBoundingClientRect();this.stick={y:e.top+e.height/2,x:e.left+e.width/2}},e.removeStick=function(){this.stick=!1},e.setText=function(t){this.text.innerHTML=t,this.addState(this.options.textState),this.setSkewing(this.options.skewingText)},e.removeText=function(){this.removeState(this.options.textState),this.removeSkewing()},e.setIcon=function(t,e){void 0===e&&(e=""),this.text.innerHTML="",this.addState(this.options.iconState),this.setSkewing(this.options.skewingIcon)},e.removeIcon=function(){this.removeState(this.options.iconState),this.removeSkewing()},e.setMedia=function(t){var e=this;clearTimeout(this.mediaInt),t&&(this.mediaBox.innerHTML="",this.mediaBox.appendChild(t)),this.mediaInt=setTimeout((function(){return e.addState(e.options.mediaState)}),20),this.setSkewing(this.options.skewingMedia)},e.removeMedia=function(){var t=this;clearTimeout(this.mediaInt),this.removeState(this.options.mediaState),this.mediaInt=setTimeout((function(){return t.mediaBox.innerHTML=""}),this.options.hideMediaTimeout),this.removeSkewing()},e.setImg=function(t){this.mediaImg||(this.mediaImg=new Image),this.mediaImg.src!==t&&(this.mediaImg.src=t),this.setMedia(this.mediaImg)},e.removeImg=function(){this.removeMedia()},e.setVideo=function(t){this.mediaVideo||(this.mediaVideo=document.createElement("video"),this.mediaVideo.muted=!0,this.mediaVideo.loop=!0,this.mediaVideo.autoplay=!0),this.mediaVideo.src!==t&&(this.mediaVideo.src=t,this.mediaVideo.load()),this.mediaVideo.play(),this.setMedia(this.mediaVideo)},e.removeVideo=function(){this.mediaVideo&&this.mediaVideo.readyState>2&&this.mediaVideo.pause(),this.removeMedia()},e.on=function(t,e){this.events[t]instanceof Array||this.off(t),this.events[t].push(e)},e.off=function(t,e){this.events[t]=e?this.events[t].filter((function(t){return t!==e})):[]},e.trigger=function(t){var e=arguments,n=this;this.events[t]&&this.events[t].forEach((function(t){return t.call.apply(t,[n,n].concat([].slice.call(e,1)))}))},e.getFromDataset=function(t){var e=t.dataset;return{state:e[this.options.dataAttr],show:e[this.options.dataAttr+"Show"],text:e[this.options.dataAttr+"Text"],icon:e[this.options.dataAttr+"Icon"],img:e[this.options.dataAttr+"Img"],video:e[this.options.dataAttr+"Video"],stick:e[this.options.dataAttr+"Stick"]}},e.destroy=function(){this.trigger("destroy"),this.gsap.ticker.remove(this.ticker),this.container.removeEventListener("mouseleave",this.event.mouseleave),this.container.removeEventListener("mouseenter",this.event.mouseenter),this.container.removeEventListener("mousedown",this.event.mousedown),this.container.removeEventListener("mouseup",this.event.mouseup),this.container.removeEventListener("mousemove",this.event.mousemove),this.container.removeEventListener("mousemove",this.event.mousemoveOnce),this.container.removeEventListener("mouseover",this.event.mouseover),this.container.removeEventListener("mouseout",this.event.mouseout),this.el&&(this.container.removeChild(this.el),this.el=null,this.mediaImg=null,this.mediaVideo=null)},t}();uc.registerGSAP(Wr);let lc=null;const cc={init(){lc||(lc=new uc({className:"cursor",innerClassName:"cursor__inner",textClassName:"cursor__text",mediaClassName:"cursor__media",mediaBoxClassName:"cursor__media-box",iconSvgClassName:"cursor__svgsprite",dataAttr:!1,hiddenState:"cursor--hidden",textState:"cursor--text",iconState:"cursor--icon",activeState:"cursor--active",mediaState:"cursor--media",stateDetection:!1,speed:.3,ease:"expo.out",overwrite:!0,skewing:0,skewingText:0,skewingIcon:0,skewingMedia:0,skewingDelta:0,skewingDeltaMax:0}),document.body.style.cursor="none")},getInstance(){return lc||this.init(),lc}},hc=t=>Wr.getProperty(document.body)(t),fc=function(){function t(t,e={}){if("string"==typeof t)this.elements=document.querySelectorAll(t);else if(Array.isArray(t))this.elements=t.filter((t=>t instanceof Element));else{if(!(t instanceof NodeList||t instanceof Element))return void console.warn("Invalid selector or elements provided to Magnetic constructor");this.elements=t}Array.isArray(this.elements)||this.elements instanceof NodeList||(this.elements=[this.elements]),this.options={y:.15,x:.15,s:2,rs:1.5},Array.from(this.elements).forEach((t=>{const n=t.dataset.magnetic?JSON.parse(t.dataset.magnetic):{},r={...this.options,...e,...n};t.dataset.magneticInit||(t.dataset.magneticInit="true",this.bind(t,r))}))}return t.prototype.bind=function(t,e){t.addEventListener("mouseenter",(()=>{const e=t.getBoundingClientRect();this.y=e.top,this.x=e.left,this.width=e.width,this.height=e.height})),t.addEventListener("mousemove",(n=>{const r=(n.clientY-this.y-this.height/2)*e.y,i=(n.clientX-this.x-this.width/2)*e.x;this.move(t,i,r,e.s)})),t.addEventListener("mouseleave",(()=>{this.move(t,0,0,e.rs)}))},t.prototype.move=function(t,e,n,r){Wr.to(t,{y:n,x:e,force3D:!0,overwrite:"auto",duration:r,ease:"power3.out"})},{make:function(e,n){new t(e,n)}}}();Wr.registerPlugin(ac);const dc={mainNavLinks:null,secondaryNavLinks:null,allNavLinks:null,cursor:null,navButton:null,hamburgerIcon:null,hamburgerLines:null,navOverlay:null,pageContainer:null,navWrapper:null,isAnimating:!1,init(){this.setVariables(),this.prepareNavOverlay(),this.addHoverAnimation(),this.handleCursor(),this.addButtonEventListeners()},setVariables(){this.mainNavLinks=Wr.utils.toArray(".main-nav__link"),this.secondaryNavLinks=Wr.utils.toArray(".secondary-nav__link"),this.allNavLinks=[...this.mainNavLinks,...this.secondaryNavLinks],this.cursor=cc.getInstance(),this.openButton=document.querySelector(".header__nav-open-button"),this.closeButton=document.querySelector(".header__nav-close-button"),this.hamburgerIcon=document.querySelector(".hamburger-icon"),this.hamburgerLines=this.hamburgerIcon.querySelectorAll("line"),this.navOverlay=document.querySelector(".nav"),this.pageContainer=document.querySelector(".page__container"),this.navWrapper=document.querySelector(".nav__wrapper")},prepareNavOverlay(){Wr.set(this.navOverlay,{autoAlpha:1,yPercent:-100}),this.openButton.addEventListener("click",(()=>this.openNav())),this.closeButton.addEventListener("click",(()=>this.closeNav()))},addHoverAnimation(){fc.make(this.mainNavLinks),this.mainNavLinks.forEach((t=>{t.addEventListener("mouseenter",(()=>{const e=this.mainNavLinks.filter((e=>e!==t));Wr.to(e,{color:hc("--color--blue-gray-500"),duration:.3})})),t.addEventListener("mouseleave",(()=>{Wr.to(this.mainNavLinks,{color:hc("--color--off-white-100"),duration:.3})}))}))},openNav(){const t=Wr.timeline({onStart:()=>{this.isAnimating=!0,this.cursor.removeState("cursor--hidden"),Pa.getInstance().paused(!0)},onComplete:()=>{this.isAnimating=!1}});t.to(this.hamburgerLines,{drawSVG:"100% 100%",duration:.3,ease:"power3.inOut",stagger:.1,onComplete:()=>{Wr.set(this.hamburgerIcon,{display:"none"})}}),t.to(this.pageContainer,{y:100,filter:"blur(5px)",duration:.8,ease:"power3.inOut"},0),t.to(this.navOverlay,{yPercent:0},".2"),t.from(this.mainNavLinks,{autoAlpha:0,y:-50,filter:"blur(5px)",duration:1,ease:"power3.out",stagger:{from:"end",amount:.1}},"<50%"),t.from(".close-icon line",{drawSVG:Wr.utils.wrap(["100% 100%","0"]),stagger:.2,onStart:()=>{Wr.set(this.closeButton,{display:"block"})}},"<50%")},closeNav(){const t=Wr.timeline({onStart:()=>{this.isAnimating=!0,this.cursor.removeState("cursor--hidden"),Wr.set(this.closeButton,{display:"none"})},onComplete:()=>{this.isAnimating=!1,Pa.getInstance().paused(!1),Wr.set([this.openButton,this.hamburgerIcon,this.hamburgerLines,this.mainNavLinks],{clearProps:"all"})}});t.to(this.pageContainer,{y:0,filter:"blur(0px)",duration:.8,ease:"power3.out"},"<"),t.to(this.mainNavLinks,{autoAlpha:0,y:-50,filter:"blur(5px)",duration:1,ease:"power3.out",stagger:{from:"start",amount:.1}},"<"),t.to(this.navOverlay,{yPercent:-100},"<")},handleCursor(){this.allNavLinks.forEach((t=>{t.addEventListener("mouseenter",(()=>this.cursor.addState("cursor--hidden"))),t.addEventListener("mouseleave",(()=>this.cursor.removeState("cursor--hidden")))}))},updateNavigation:()=>{const t=document.querySelectorAll(".main-nav__link");t.forEach((t=>t.classList.remove("main-nav__link--active")));const e=window.location.pathname.match(/(?:\/public)?\/([^\/]+)(?:\.html)?/),n=e?e[1]:"",r=new RegExp(`/(?:public/)?${n}(?:\\.html)?`),i=Array.from(t).find((t=>r.test(t.getAttribute("href"))));i&&i.classList.add("main-nav__link--active")},addButtonEventListeners(){const t=t=>{if(this.isAnimating)return;const e=t?["20% 100%","60% 100%","40% 100%"]:"0% 100%";Wr.to(this.hamburgerLines,{drawSVG:Wr.utils.wrap(e),duration:.3,ease:"power3.inOut"})};this.openButton.addEventListener("mouseenter",(()=>{this.cursor.addState("cursor--hidden"),t(!0)})),this.openButton.addEventListener("mouseleave",(()=>{this.cursor.removeState("cursor--hidden"),t(!1)})),this.closeButton.addEventListener("mouseenter",(()=>this.cursor.addState("cursor--hidden"))),this.closeButton.addEventListener("mouseleave",(()=>this.cursor.removeState("cursor--hidden")))}},pc={init(){this.addTransitionElement(),this.setupBarba()},setupBarba(){Gr().hooks.before((t=>{Pa.getInstance().paused(!0)})),Gr().hooks.beforeEnter((t=>{dc.updateNavigation()})),Gr().hooks.after((()=>{Pa.getInstance().paused(!1)})),Gr().init({logLevel:"error",views:[iu,su,ou,Ol],transitions:[Nl,Oa,Ml]})},addTransitionElement(){Wr.set(".transition",{yPercent:100,autoAlpha:1})}};Pa.init(),cc.init(),dc.init(),pc.init()})(),r.default})())); \ No newline at end of file