"use strict";(()=>{var ql=Object.create;var no=Object.defineProperty;var Fl=Object.getOwnPropertyDescriptor;var Nl=Object.getOwnPropertyNames;var Il=Object.getPrototypeOf,Bl=Object.prototype.hasOwnProperty;var Hl=(a,e,r)=>e in a?no(a,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):a[e]=r;var Ms=(a,e)=>()=>(e||a((e={exports:{}}).exports,e),e.exports);var Yl=(a,e,r,t)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of Nl(e))!Bl.call(a,i)&&i!==r&&no(a,i,{get:()=>e[i],enumerable:!(t=Fl(e,i))||t.enumerable});return a};var Rs=(a,e,r)=>(r=a!=null?ql(Il(a)):{},Yl(e||!a||!a.__esModule?no(r,"default",{value:a,enumerable:!0}):r,a));var vr=(a,e,r)=>Hl(a,typeof e!="symbol"?e+"":e,r);var Ls=Ms((oo,so)=>{(function(a,e){typeof oo=="object"&&typeof so<"u"?so.exports=e():typeof define=="function"&&define.amd?define(e):(a||self).barba=e()})(oo,function(){function a(y,m){for(var f=0;f"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function s(y,m,f){return s=o()?Reflect.construct.bind():function(h,b,S){var z=[null];z.push.apply(z,b);var D=new(Function.bind.apply(h,z));return S&&n(D,S.prototype),D},s.apply(null,arguments)}function l(y){var m=typeof Map=="function"?new Map:void 0;return l=function(f){if(f===null||Function.toString.call(f).indexOf("[native code]")===-1)return f;if(typeof f!="function")throw new TypeError("Super expression must either be null or a function");if(m!==void 0){if(m.has(f))return m.get(f);m.set(f,h)}function h(){return s(f,arguments,i(this).constructor)}return h.prototype=Object.create(f.prototype,{constructor:{value:h,enumerable:!1,writable:!0,configurable:!0}}),n(h,f)},l(y)}function u(y){if(y===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return y}var c,p=function(){this.before=void 0,this.beforeLeave=void 0,this.leave=void 0,this.afterLeave=void 0,this.beforeEnter=void 0,this.enter=void 0,this.afterEnter=void 0,this.after=void 0};(function(y){y[y.off=0]="off",y[y.error=1]="error",y[y.warning=2]="warning",y[y.info=3]="info",y[y.debug=4]="debug"})(c||(c={}));var _=c.off,d=function(){function y(f){this.t=void 0,this.t=f}y.getLevel=function(){return _},y.setLevel=function(f){return _=c[f]};var m=y.prototype;return m.error=function(){this.i(console.error,c.error,[].slice.call(arguments))},m.warn=function(){this.i(console.warn,c.warning,[].slice.call(arguments))},m.info=function(){this.i(console.info,c.info,[].slice.call(arguments))},m.debug=function(){this.i(console.log,c.debug,[].slice.call(arguments))},m.i=function(f,h,b){h<=y.getLevel()&&f.apply(console,["["+this.t+"] "].concat(b))},y}();function v(y){return y.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1")}function g(y){return y&&y.sensitive?"":"i"}var w={container:"container",history:"history",namespace:"namespace",prefix:"data-barba",prevent:"prevent",wrapper:"wrapper"},C=function(){function y(){this.o=w,this.u=void 0,this.h={after:null,before:null,parent:null}}var m=y.prototype;return m.toString=function(f){return f.outerHTML},m.toDocument=function(f){return this.u||(this.u=new DOMParser),this.u.parseFromString(f,"text/html")},m.toElement=function(f){var h=document.createElement("div");return h.innerHTML=f,h},m.getHtml=function(f){return f===void 0&&(f=document),this.toString(f.documentElement)},m.getWrapper=function(f){return f===void 0&&(f=document),f.querySelector("["+this.o.prefix+'="'+this.o.wrapper+'"]')},m.getContainer=function(f){return f===void 0&&(f=document),f.querySelector("["+this.o.prefix+'="'+this.o.container+'"]')},m.removeContainer=function(f){document.body.contains(f)&&(this.v(f),f.parentNode.removeChild(f))},m.addContainer=function(f,h){var b=this.getContainer()||this.h.before;b?this.l(f,b):this.h.after?this.h.after.parentNode.insertBefore(f,this.h.after):this.h.parent?this.h.parent.appendChild(f):h.appendChild(f)},m.getSibling=function(){return this.h},m.getNamespace=function(f){f===void 0&&(f=document);var h=f.querySelector("["+this.o.prefix+"-"+this.o.namespace+"]");return h?h.getAttribute(this.o.prefix+"-"+this.o.namespace):null},m.getHref=function(f){if(f.tagName&&f.tagName.toLowerCase()==="a"){if(typeof f.href=="string")return f.href;var h=f.getAttribute("href")||f.getAttribute("xlink:href");if(h)return this.resolveUrl(h.baseVal||h)}return null},m.resolveUrl=function(){var f=[].slice.call(arguments).length;if(f===0)throw new Error("resolveUrl requires at least one argument; got none.");var h=document.createElement("base");if(h.href=arguments[0],f===1)return h.href;var b=document.getElementsByTagName("head")[0];b.insertBefore(h,b.firstChild);for(var S,z=document.createElement("a"),D=1;D1?f>0?"forward":"back":f===0?"popstate":f>0?"back":"forward"},e(y,[{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}}]),y}(),E=new M,k=function(y,m){try{var f=function(){if(!m.next.html)return Promise.resolve(y).then(function(h){var b=m.next;if(h){var S=P.toElement(h.html);b.namespace=P.getNamespace(S),b.container=P.getContainer(S),b.url=h.url,b.html=h.html,E.update({ns:b.namespace});var z=P.toDocument(h.html);document.title=z.title}})}();return Promise.resolve(f&&f.then?f.then(function(){}):void 0)}catch(h){return Promise.reject(h)}},R=function y(m,f,h){return m instanceof RegExp?function(b,S){if(!S)return b;for(var z=/\((?:\?<(.*?)>)?(?!\?)/g,D=0,O=z.exec(b.source);O;)S.push({name:O[1]||D++,prefix:"",suffix:"",modifier:"",pattern:""}),O=z.exec(b.source);return b}(m,f):Array.isArray(m)?function(b,S,z){var D=b.map(function(O){return y(O,S,z).source});return new RegExp("(?:".concat(D.join("|"),")"),g(z))}(m,f,h):function(b,S,z){return function(D,O,Y){Y===void 0&&(Y={});for(var de=Y.strict,pe=de!==void 0&&de,H=Y.start,we=H===void 0||H,re=Y.end,le=re===void 0||re,ye=Y.encode,_e=ye===void 0?function(K){return K}:ye,Ve=Y.delimiter,j=Ve===void 0?"/#?":Ve,Fe=Y.endsWith,Ye="[".concat(v(Fe===void 0?"":Fe),"]|$"),Re="[".concat(v(j),"]"),xe=we?"^":"",je=0,Ze=D;je-1:U===void 0;pe||(xe+="(?:".concat(Re,"(?=").concat(Ye,"))?")),N||(xe+="(?=".concat(Re,"|").concat(Ye,")"))}return new RegExp(xe,g(Y))}(function(D,O){O===void 0&&(O={});for(var Y=function(B){for(var W=[],U=0;U=48&&ie<=57||ie>=65&&ie<=90||ie>=97&&ie<=122||ie===95))break;ee+=B[ge++]}if(!ee)throw new TypeError("Missing parameter name at ".concat(U));W.push({type:"NAME",index:U,value:ee}),U=ge}else W.push({type:"CLOSE",index:U,value:B[U++]});else W.push({type:"OPEN",index:U,value:B[U++]});else W.push({type:"ESCAPED_CHAR",index:U++,value:B[U++]});else W.push({type:"MODIFIER",index:U,value:B[U++]})}return W.push({type:"END",index:U,value:""}),W}(D),de=O.prefixes,pe=de===void 0?"./":de,H="[^".concat(v(O.delimiter||"/#?"),"]+?"),we=[],re=0,le=0,ye="",_e=function(B){if(le=0&&(b=S.slice(D+1),S=S.slice(0,D));var O=S.indexOf("?");return O>=0&&(z=Q(S.slice(O+1)),S=S.slice(0,O)),{hash:b,path:S,port:m,query:z}},Q=function(y){return y.split("&").reduce(function(m,f){var h=f.split("=");return m[h[0]]=h[1],m},{})},I=function(y){return y===void 0&&(y=window.location.href),y.replace(/(\/#.*|\/|#.*)$/,"")},oe={__proto__:null,getHref:function(){return window.location.href},getAbsoluteHref:function(y,m){return m===void 0&&(m=document.baseURI),new URL(y,m).href},getOrigin:F,getPort:L,getPath:function(y){return y===void 0&&(y=window.location.href),q(y).path},getQuery:function(y,m){return m===void 0&&(m=!1),m?JSON.stringify(q(y).query):q(y).query},getHash:function(y){return q(y).hash},parse:q,parseQuery:Q,clean:I};function Z(y,m,f,h,b){return m===void 0&&(m=2e3),new Promise(function(S,z){var D=new XMLHttpRequest;D.onreadystatechange=function(){if(D.readyState===XMLHttpRequest.DONE){if(D.status===200){var O=D.responseURL!==""&&D.responseURL!==y?D.responseURL:y;S({html:D.responseText,url:r({href:O},q(O))}),h.update(y,{status:"fulfilled",target:O})}else if(D.status){var Y={status:D.status,statusText:D.statusText};f(y,Y),z(Y),h.update(y,{status:"rejected"})}}},D.ontimeout=function(){var O=new Error("Timeout error ["+m+"]");f(y,O),z(O),h.update(y,{status:"rejected"})},D.onerror=function(){var O=new Error("Fetch error");f(y,O),z(O),h.update(y,{status:"rejected"})},D.open("GET",y),D.timeout=m,D.setRequestHeader("Accept","text/html,application/xhtml+xml,application/xml"),D.setRequestHeader("x-barba","yes"),b.all().forEach(function(O,Y){D.setRequestHeader(Y,O)}),D.send()})}function ae(y){return!!y&&(typeof y=="object"||typeof y=="function")&&typeof y.then=="function"}function J(y,m){return m===void 0&&(m={}),function(){var f=arguments,h=!1,b=new Promise(function(S,z){m.async=function(){return h=!0,function(O,Y){O?z(O):S(Y)}};var D=y.apply(m,[].slice.call(f));h||(ae(D)?D.then(S,z):S(D))});return b}}var G=function(y){function m(){var h;return(h=y.call(this)||this).logger=new d("@barba/core"),h.all=["ready","page","reset","currentAdded","currentRemoved","nextAdded","nextRemoved","beforeOnce","once","afterOnce","before","beforeLeave","leave","afterLeave","beforeEnter","enter","afterEnter","after"],h.registered=new Map,h.init(),h}t(m,y);var f=m.prototype;return f.init=function(){var h=this;this.registered.clear(),this.all.forEach(function(b){h[b]||(h[b]=function(S,z){h.registered.has(b)||h.registered.set(b,new Set),h.registered.get(b).add({ctx:z||{},fn:S})})})},f.do=function(h){var b=arguments,S=this;if(this.registered.has(h)){var z=Promise.resolve();return this.registered.get(h).forEach(function(D){z=z.then(function(){return J(D.fn,D.ctx).apply(void 0,[].slice.call(b,1))})}),z.catch(function(D){S.logger.debug("Hook error ["+h+"]"),S.logger.error(D)})}return Promise.resolve()},f.clear=function(){var h=this;this.all.forEach(function(b){delete h[b]}),this.init()},f.help=function(){this.logger.info("Available hooks: "+this.all.join(","));var h=[];this.registered.forEach(function(b,S){return h.push(S)}),this.logger.info("Registered hooks: "+h.join(","))},m}(p),te=new G,ve=function(){function y(m){if(this.k=void 0,this.O=[],typeof m=="boolean")this.k=m;else{var f=Array.isArray(m)?m:[m];this.O=f.map(function(h){return R(h)})}}return y.prototype.checkHref=function(m){if(typeof this.k=="boolean")return this.k;var f=q(m).path;return this.O.some(function(h){return h.exec(f)!==null})},y}(),x=function(y){function m(h){var b;return(b=y.call(this,h)||this).T=new Map,b}t(m,y);var f=m.prototype;return f.set=function(h,b,S,z,D){return this.T.set(h,{action:S,request:b,status:z,target:D??h}),{action:S,request:b,status:z,target:D}},f.get=function(h){return this.T.get(h)},f.getRequest=function(h){return this.T.get(h).request},f.getAction=function(h){return this.T.get(h).action},f.getStatus=function(h){return this.T.get(h).status},f.getTarget=function(h){return this.T.get(h).target},f.has=function(h){return!this.checkHref(h)&&this.T.has(h)},f.delete=function(h){return this.T.delete(h)},f.update=function(h,b){var S=r({},this.T.get(h),b);return this.T.set(h,S),S},m}(ve),Se=function(){function y(){this.A=new Map}var m=y.prototype;return m.set=function(f,h){return this.A.set(f,h),{name:h}},m.get=function(f){return this.A.get(f)},m.all=function(){return this.A},m.has=function(f){return this.A.has(f)},m.delete=function(f){return this.A.delete(f)},m.clear=function(){return this.A.clear()},y}(),at=function(){return!window.history.pushState},Yt=function(y){return!y.el||!y.href},Ce=function(y){var m=y.event;return m.which>1||m.metaKey||m.ctrlKey||m.shiftKey||m.altKey},Ke=function(y){var m=y.el;return m.hasAttribute("target")&&m.target==="_blank"},it=function(y){var m=y.el;return m.protocol!==void 0&&window.location.protocol!==m.protocol||m.hostname!==void 0&&window.location.hostname!==m.hostname},qe=function(y){var m=y.el;return m.port!==void 0&&L()!==L(m.href)},lt=function(y){var m=y.el;return m.getAttribute&&typeof m.getAttribute("download")=="string"},nt=function(y){return y.el.hasAttribute(w.prefix+"-"+w.prevent)},lr=function(y){return!!y.el.closest("["+w.prefix+"-"+w.prevent+'="all"]')},ut=function(y){var m=y.href;return I(m)===I()&&L(m)===L()},gt=function(y){function m(h){var b;return(b=y.call(this,h)||this).suite=[],b.tests=new Map,b.init(),b}t(m,y);var f=m.prototype;return f.init=function(){this.add("pushState",at),this.add("exists",Yt),this.add("newTab",Ce),this.add("blank",Ke),this.add("corsDomain",it),this.add("corsPort",qe),this.add("download",lt),this.add("preventSelf",nt),this.add("preventAll",lr),this.add("sameUrl",ut,!1)},f.add=function(h,b,S){S===void 0&&(S=!0),this.tests.set(h,b),S&&this.suite.push(h)},f.run=function(h,b,S,z){return this.tests.get(h)({el:b,event:S,href:z})},f.checkLink=function(h,b,S){var z=this;return this.suite.some(function(D){return z.run(D,h,b,S)})},m}(ve),he=function(y){function m(f,h){var b;return h===void 0&&(h="Barba error"),(b=y.call.apply(y,[this].concat([].slice.call(arguments,2)))||this).error=void 0,b.label=void 0,b.error=f,b.label=h,Error.captureStackTrace&&Error.captureStackTrace(u(b),m),b.name="BarbaError",b}return t(m,y),m}(l(Error)),Me=function(){function y(f){f===void 0&&(f=[]),this.logger=new d("@barba/core"),this.all=[],this.page=[],this.once=[],this.j=[{name:"namespace",type:"strings"},{name:"custom",type:"function"}],f&&(this.all=this.all.concat(f)),this.update()}var m=y.prototype;return m.add=function(f,h){f==="rule"?this.j.splice(h.position||0,0,h.value):this.all.push(h),this.update()},m.resolve=function(f,h){var b=this;h===void 0&&(h={});var S=h.once?this.once:this.page;S=S.filter(h.self?function(H){return H.name&&H.name==="self"}:function(H){return!H.name||H.name!=="self"});var z=new Map,D=S.find(function(H){var we=!0,re={};return h.self&&H.name==="self"?(z.set(H,re),!0):(b.j.reverse().forEach(function(le){we&&(we=b.M(H,le,f,re),H.from&&H.to&&(we=b.M(H,le,f,re,"from")&&b.M(H,le,f,re,"to")),H.from&&!H.to&&(we=b.M(H,le,f,re,"from")),!H.from&&H.to&&(we=b.M(H,le,f,re,"to")))}),z.set(H,re),we)}),O=z.get(D),Y=[];if(Y.push(h.once?"once":"page"),h.self&&Y.push("self"),O){var de,pe=[D];Object.keys(O).length>0&&pe.push(O),(de=this.logger).info.apply(de,["Transition found ["+Y.join(",")+"]"].concat(pe))}else this.logger.info("No transition found ["+Y.join(",")+"]");return D},m.update=function(){var f=this;this.all=this.all.map(function(h){return f.N(h)}).sort(function(h,b){return h.priority-b.priority}).reverse().map(function(h){return delete h.priority,h}),this.page=this.all.filter(function(h){return h.leave!==void 0||h.enter!==void 0}),this.once=this.all.filter(function(h){return h.once!==void 0})},m.M=function(f,h,b,S,z){var D=!0,O=!1,Y=f,de=h.name,pe=de,H=de,we=de,re=z?Y[z]:Y,le=z==="to"?b.next:b.current;if(z?re&&re[de]:re[de]){switch(h.type){case"strings":default:var ye=Array.isArray(re[pe])?re[pe]:[re[pe]];le[pe]&&ye.indexOf(le[pe])!==-1&&(O=!0),ye.indexOf(le[pe])===-1&&(D=!1);break;case"object":var _e=Array.isArray(re[H])?re[H]:[re[H]];le[H]?(le[H].name&&_e.indexOf(le[H].name)!==-1&&(O=!0),_e.indexOf(le[H].name)===-1&&(D=!1)):D=!1;break;case"function":re[we](b)?O=!0:D=!1}O&&(z?(S[z]=S[z]||{},S[z][de]=Y[z][de]):S[de]=Y[de])}return D},m.S=function(f,h,b){var S=0;return(f[h]||f.from&&f.from[h]||f.to&&f.to[h])&&(S+=Math.pow(10,b),f.from&&f.from[h]&&(S+=1),f.to&&f.to[h]&&(S+=2)),S},m.N=function(f){var h=this;f.priority=0;var b=0;return this.j.forEach(function(S,z){b+=h.S(f,S.name,z+1)}),f.priority=b,f},y}();function Ue(y,m){try{var f=y()}catch(h){return m(h)}return f&&f.then?f.then(void 0,m):f}var kt=function(){function y(f){f===void 0&&(f=[]),this.logger=new d("@barba/core"),this.store=void 0,this.C=!1,this.store=new Me(f)}var m=y.prototype;return m.get=function(f,h){return this.store.resolve(f,h)},m.doOnce=function(f){var h=f.data,b=f.transition;try{var S=function(){z.C=!1},z=this,D=b||{};z.C=!0;var O=Ue(function(){return Promise.resolve(z.L("beforeOnce",h,D)).then(function(){return Promise.resolve(z.once(h,D)).then(function(){return Promise.resolve(z.L("afterOnce",h,D)).then(function(){})})})},function(Y){z.C=!1,z.logger.debug("Transition error [before/after/once]"),z.logger.error(Y)});return Promise.resolve(O&&O.then?O.then(S):S())}catch(Y){return Promise.reject(Y)}},m.doPage=function(f){var h=f.data,b=f.transition,S=f.page,z=f.wrapper;try{var D=function(H){O.C=!1},O=this,Y=b||{},de=Y.sync===!0||!1;O.C=!0;var pe=Ue(function(){function H(){return Promise.resolve(O.L("before",h,Y)).then(function(){function re(ye){return Promise.resolve(O.remove(h)).then(function(){return Promise.resolve(O.L("after",h,Y)).then(function(){})})}var le=function(){if(de)return Ue(function(){return Promise.resolve(O.add(h,z)).then(function(){return Promise.resolve(O.L("beforeLeave",h,Y)).then(function(){return Promise.resolve(O.L("beforeEnter",h,Y)).then(function(){return Promise.resolve(Promise.all([O.leave(h,Y),O.enter(h,Y)])).then(function(){return Promise.resolve(O.L("afterLeave",h,Y)).then(function(){return Promise.resolve(O.L("afterEnter",h,Y)).then(function(){})})})})})})},function(j){if(O.H(j))throw new he(j,"Transition error [sync]")});var ye=function(j){return Ue(function(){var Fe=function(){if(_e!==!1)return Promise.resolve(O.add(h,z)).then(function(){return Promise.resolve(O.L("beforeEnter",h,Y)).then(function(){return Promise.resolve(O.enter(h,Y,_e)).then(function(){return Promise.resolve(O.L("afterEnter",h,Y)).then(function(){})})})})}();if(Fe&&Fe.then)return Fe.then(function(){})},function(Fe){if(O.H(Fe))throw new he(Fe,"Transition error [before/after/enter]")})},_e=!1,Ve=Ue(function(){return Promise.resolve(O.L("beforeLeave",h,Y)).then(function(){return Promise.resolve(Promise.all([O.leave(h,Y),k(S,h)]).then(function(j){return j[0]})).then(function(j){return _e=j,Promise.resolve(O.L("afterLeave",h,Y)).then(function(){})})})},function(j){if(O.H(j))throw new he(j,"Transition error [before/after/leave]")});return Ve&&Ve.then?Ve.then(ye):ye()}();return le&&le.then?le.then(re):re()})}var we=function(){if(de)return Promise.resolve(k(S,h)).then(function(){})}();return we&&we.then?we.then(H):H()},function(H){throw O.C=!1,H.name&&H.name==="BarbaError"?(O.logger.debug(H.label),O.logger.error(H.error),H):(O.logger.debug("Transition error [page]"),O.logger.error(H),H)});return Promise.resolve(pe&&pe.then?pe.then(D):D())}catch(H){return Promise.reject(H)}},m.once=function(f,h){try{return Promise.resolve(te.do("once",f,h)).then(function(){return h.once?J(h.once,h)(f):Promise.resolve()})}catch(b){return Promise.reject(b)}},m.leave=function(f,h){try{return Promise.resolve(te.do("leave",f,h)).then(function(){return h.leave?J(h.leave,h)(f):Promise.resolve()})}catch(b){return Promise.reject(b)}},m.enter=function(f,h,b){try{return Promise.resolve(te.do("enter",f,h)).then(function(){return h.enter?J(h.enter,h)(f,b):Promise.resolve()})}catch(S){return Promise.reject(S)}},m.add=function(f,h){try{return P.addContainer(f.next.container,h),te.do("nextAdded",f),Promise.resolve()}catch(b){return Promise.reject(b)}},m.remove=function(f){try{return P.removeContainer(f.current.container),te.do("currentRemoved",f),Promise.resolve()}catch(h){return Promise.reject(h)}},m.H=function(f){return f.message?!/Timeout error|Fetch error/.test(f.message):!f.status},m.L=function(f,h,b){try{return Promise.resolve(te.do(f,h,b)).then(function(){return b[f]?J(b[f],b)(h):Promise.resolve()})}catch(S){return Promise.reject(S)}},e(y,[{key:"isRunning",get:function(){return this.C},set:function(f){this.C=f}},{key:"hasOnce",get:function(){return this.store.once.length>0}},{key:"hasSelf",get:function(){return this.store.all.some(function(f){return f.name==="self"})}},{key:"shouldWait",get:function(){return this.store.all.some(function(f){return f.to&&!f.to.route||f.sync})}}]),y}(),T=function(){function y(m){var f=this;this.names=["beforeLeave","afterLeave","beforeEnter","afterEnter"],this.byNamespace=new Map,m.length!==0&&(m.forEach(function(h){f.byNamespace.set(h.namespace,h)}),this.names.forEach(function(h){te[h](f._(h))}))}return y.prototype._=function(m){var f=this;return function(h){var b=m.match(/enter/i)?h.next:h.current,S=f.byNamespace.get(b.namespace);return S&&S[m]?J(S[m],S)(h):Promise.resolve()}},y}();Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector),Element.prototype.closest||(Element.prototype.closest=function(y){var m=this;do{if(m.matches(y))return m;m=m.parentElement||m.parentNode}while(m!==null&&m.nodeType===1);return null});var Ct={container:null,html:"",namespace:"",url:{hash:"",href:"",path:"",port:null,query:{}}},nr=function(){function y(){this.version="2.10.3",this.schemaPage=Ct,this.Logger=d,this.logger=new d("@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=te,this.cache=void 0,this.headers=void 0,this.prevent=void 0,this.transitions=void 0,this.views=void 0,this.dom=P,this.helpers=A,this.history=E,this.request=Z,this.url=oe,this.D=void 0,this.B=void 0,this.q=void 0,this.F=void 0}var m=y.prototype;return m.use=function(f,h){var b=this.plugins;b.indexOf(f)>-1?this.logger.warn("Plugin ["+f.name+"] already installed."):typeof f.install=="function"?(f.install(this,h),b.push(f)):this.logger.warn("Plugin ["+f.name+'] has no "install" method.')},m.init=function(f){var h=f===void 0?{}:f,b=h.transitions,S=b===void 0?[]:b,z=h.views,D=z===void 0?[]:z,O=h.schema,Y=O===void 0?w:O,de=h.requestError,pe=h.timeout,H=pe===void 0?2e3:pe,we=h.cacheIgnore,re=we!==void 0&&we,le=h.cacheFirstPage,ye=le!==void 0&&le,_e=h.prefetchIgnore,Ve=_e!==void 0&&_e,j=h.preventRunning,Fe=j!==void 0&&j,Ye=h.prevent,Re=Ye===void 0?null:Ye,xe=h.debug,je=h.logLevel;if(d.setLevel((xe!==void 0&&xe)===!0?"debug":je===void 0?"off":je),this.logger.info(this.version),Object.keys(Y).forEach(function(Je){w[Je]&&(w[Je]=Y[Je])}),this.B=de,this.timeout=H,this.cacheIgnore=re,this.cacheFirstPage=ye,this.prefetchIgnore=Ve,this.preventRunning=Fe,this.q=this.dom.getWrapper(),!this.q)throw new Error("[@barba/core] No Barba wrapper found");this.I();var Ze=this.data.current;if(!Ze.container)throw new Error("[@barba/core] No Barba container found");if(this.cache=new x(re),this.headers=new Se,this.prevent=new gt(Ve),this.transitions=new kt(S),this.views=new T(D),Re!==null){if(typeof Re!="function")throw new Error("[@barba/core] Prevent should be a function");this.prevent.add("preventCustom",Re)}this.history.init(Ze.url.href,Ze.namespace),ye&&this.cache.set(Ze.url.href,Promise.resolve({html:Ze.html,url:Ze.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(Je){return Je.init()});var se=this.data;se.trigger="barba",se.next=se.current,se.current=r({},this.schemaPage),this.hooks.do("ready",se),this.once(se),this.I()},m.destroy=function(){this.I(),this.J(),this.history.clear(),this.hooks.clear(),this.plugins=[]},m.force=function(f){window.location.assign(f)},m.go=function(f,h,b){var S;if(h===void 0&&(h="barba"),this.F=null,this.transitions.isRunning)this.force(f);else if(!(S=h==="popstate"?this.history.current&&this.url.getPath(this.history.current.url)===this.url.getPath(f)&&this.url.getQuery(this.history.current.url,!0)===this.url.getQuery(f,!0):this.prevent.run("sameUrl",null,null,f))||this.transitions.hasSelf)return h=this.history.change(this.cache.has(f)?this.cache.get(f).target:f,h,b),b&&(b.stopPropagation(),b.preventDefault()),this.page(f,h,b??void 0,S)},m.once=function(f){try{var h=this;return Promise.resolve(h.hooks.do("beforeEnter",f)).then(function(){function b(){return Promise.resolve(h.hooks.do("afterEnter",f)).then(function(){})}var S=function(){if(h.transitions.hasOnce){var z=h.transitions.get(f,{once:!0});return Promise.resolve(h.transitions.doOnce({transition:z,data:f})).then(function(){})}}();return S&&S.then?S.then(b):b()})}catch(b){return Promise.reject(b)}},m.page=function(f,h,b,S){try{var z,D=function(){var pe=O.data;return Promise.resolve(O.hooks.do("page",pe)).then(function(){var H=function(we,re){try{var le=(ye=O.transitions.get(pe,{once:!1,self:S}),Promise.resolve(O.transitions.doPage({data:pe,page:z,transition:ye,wrapper:O.q})).then(function(){O.I()}))}catch{return re()}var ye;return le&&le.then?le.then(void 0,re):le}(0,function(){d.getLevel()===0&&O.force(pe.next.url.href)});if(H&&H.then)return H.then(function(){})})},O=this;if(O.data.next.url=r({href:f},O.url.parse(f)),O.data.trigger=h,O.data.event=b,O.cache.has(f))z=O.cache.update(f,{action:"click"}).request;else{var Y=O.request(f,O.timeout,O.onRequestError.bind(O,h),O.cache,O.headers);Y.then(function(pe){pe.url.href!==f&&O.history.add(pe.url.href,h,"replace")}),z=O.cache.set(f,Y,"click","pending").request}var de=function(){if(O.transitions.shouldWait)return Promise.resolve(k(z,O.data)).then(function(){})}();return Promise.resolve(de&&de.then?de.then(D):D())}catch(pe){return Promise.reject(pe)}},m.onRequestError=function(f){this.transitions.isRunning=!1;var h=[].slice.call(arguments,1),b=h[0],S=h[1],z=this.cache.getAction(b);return this.cache.delete(b),this.B&&this.B(f,z,b,S)===!1||z==="click"&&this.force(b),!1},m.prefetch=function(f){var h=this;f=this.url.getAbsoluteHref(f),this.cache.has(f)||this.cache.set(f,this.request(f,this.timeout,this.onRequestError.bind(this,"barba"),this.cache,this.headers).catch(function(b){h.logger.error(b)}),"prefetch","pending")},m.G=function(){this.prefetchIgnore!==!0&&(document.addEventListener("mouseover",this.U),document.addEventListener("touchstart",this.U)),document.addEventListener("click",this.$),window.addEventListener("popstate",this.X)},m.J=function(){this.prefetchIgnore!==!0&&(document.removeEventListener("mouseover",this.U),document.removeEventListener("touchstart",this.U)),document.removeEventListener("click",this.$),window.removeEventListener("popstate",this.X)},m.U=function(f){var h=this,b=this.W(f);if(b){var S=this.url.getAbsoluteHref(this.dom.getHref(b));this.prevent.checkHref(S)||this.cache.has(S)||this.cache.set(S,this.request(S,this.timeout,this.onRequestError.bind(this,b),this.cache,this.headers).catch(function(z){h.logger.error(z)}),"enter","pending")}},m.$=function(f){var h=this.W(f);if(h){if(this.transitions.isRunning&&this.preventRunning)return f.preventDefault(),void f.stopPropagation();this.F=f,this.go(this.dom.getHref(h),h,f)}},m.X=function(f){this.go(this.url.getHref(),"popstate",f)},m.W=function(f){for(var h=f.target;h&&!this.dom.getHref(h);)h=h.parentNode;if(h&&!this.prevent.checkLink(h,f,this.dom.getHref(h)))return h},m.I=function(){var f=this.url.getHref(),h={container:this.dom.getContainer(),html:this.dom.getHtml(),namespace:this.dom.getNamespace(),url:r({href:f},this.url.parse(f))};this.D={current:h,event:void 0,next:r({},this.schemaPage),trigger:void 0},this.hooks.do("reset",this.data)},e(y,[{key:"data",get:function(){return this.D}},{key:"wrapper",get:function(){return this.q}}]),y}();return new nr})});var Rl=Ms((Cs,As)=>{(function(a,e){typeof Cs=="object"&&typeof As<"u"?As.exports=e():typeof define=="function"&&define.amd?define(e):(a||self).barbaPrefetch=e()})(Cs,function(){var a=window.requestIdleCallback||function(e){var r=Date.now();return setTimeout(function(){e({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-r))}})},1)};return new(function(){function e(){this.name="@barba/prefetch",this.version="2.2.0",this.barba=void 0,this.logger=void 0,this.observer=void 0,this.root=void 0,this.timeout=void 0,this.limit=void 0,this.toPrefetch=new Set}var r=e.prototype;return r.install=function(t,i){var n=i===void 0?{}:i,o=n.root,s=o===void 0?document.body:o,l=n.timeout,u=l===void 0?2e3:l,c=n.limit,p=c===void 0?0:c;this.logger=new t.Logger(this.name),this.logger.info(this.version),this.barba=t,this.root=s,this.timeout=u,this.limit=p},r.init=function(){var t=this;this.barba.prefetchIgnore?this.logger.warn("barba.prefetchIgnore is enabled"):this.barba.cacheIgnore?this.logger.warn("barba.cacheIgnore is enabled"):(this.observer=new IntersectionObserver(function(i){i.forEach(function(n){if(n.isIntersecting){var o=n.target,s=t.barba.url.getAbsoluteHref(t.barba.dom.getHref(o));t.toPrefetch.has(s)&&(t.observer.unobserve(o),t.barba.cache.has(s)?t.barba.cache.update(s,{action:"prefetch"}):t.barba.cache.set(s,t.barba.request(s,t.barba.timeout,t.barba.onRequestError.bind(t.barba,"barba"),t.barba.cache,t.barba.headers).catch(function(l){t.logger.error(l)}),"prefetch","pending"))}})}),this.observe(),this.barba.hooks.after(this.observe,this))},r.observe=function(){var t=this;a(function(){var i=Array.from(t.root.querySelectorAll("a"));t.limit>0&&(i=i.slice(0,t.limit)),i.forEach(function(n){var o=n,s=t.barba.dom.getHref(o);t.barba.cache.has(s)||t.barba.prevent.checkHref(s)||t.barba.prevent.checkLink(o,{},s)||(t.observer.observe(n),t.toPrefetch.add(s))})},{timeout:this.timeout})},e}())})});var ci=Rs(Ls(),1);function zs(a,e,r){return Math.max(a,Math.min(e,r))}var ao=class{advance(e){if(!this.isRunning)return;let r=!1;if(this.lerp)this.value=(t=this.value,i=this.to,n=60*this.lerp,o=e,function(s,l,u){return(1-u)*s+u*l}(t,i,1-Math.exp(-n*o))),Math.round(this.value)===this.to&&(this.value=this.to,r=!0);else{this.currentTime+=e;let s=zs(0,this.currentTime/this.duration,1);r=s>=1;let l=r?1:this.easing(s);this.value=this.from+(this.to-this.from)*l}var t,i,n,o;this.onUpdate?.(this.value,r),r&&this.stop()}stop(){this.isRunning=!1}fromTo(e,r,{lerp:t=.1,duration:i=1,easing:n=l=>l,onStart:o,onUpdate:s}){this.from=this.value=e,this.to=r,this.lerp=t,this.duration=i,this.easing=n,this.currentTime=0,this.isRunning=!0,o?.(),this.onUpdate=s}},lo=class{constructor({wrapper:e,content:r,autoResize:t=!0,debounce:i=250}={}){vr(this,"resize",()=>{this.onWrapperResize(),this.onContentResize()});vr(this,"onWrapperResize",()=>{this.wrapper===window?(this.width=window.innerWidth,this.height=window.innerHeight):(this.width=this.wrapper.clientWidth,this.height=this.wrapper.clientHeight)});vr(this,"onContentResize",()=>{this.wrapper===window?(this.scrollHeight=this.content.scrollHeight,this.scrollWidth=this.content.scrollWidth):(this.scrollHeight=this.wrapper.scrollHeight,this.scrollWidth=this.wrapper.scrollWidth)});this.wrapper=e,this.content=r,t&&(this.debouncedResize=function(n,o){let s;return function(){let l=arguments,u=this;clearTimeout(s),s=setTimeout(function(){n.apply(u,l)},o)}}(this.resize,i),this.wrapper===window?window.addEventListener("resize",this.debouncedResize,!1):(this.wrapperResizeObserver=new ResizeObserver(this.debouncedResize),this.wrapperResizeObserver.observe(this.wrapper)),this.contentResizeObserver=new ResizeObserver(this.debouncedResize),this.contentResizeObserver.observe(this.content)),this.resize()}destroy(){this.wrapperResizeObserver?.disconnect(),this.contentResizeObserver?.disconnect(),window.removeEventListener("resize",this.debouncedResize,!1)}get limit(){return{x:this.scrollWidth-this.width,y:this.scrollHeight-this.height}}},dn=class{constructor(){this.events={}}emit(e,...r){let t=this.events[e]||[];for(let i=0,n=t.length;i{this.events[e]=this.events[e]?.filter(t=>r!==t)}}off(e,r){this.events[e]=this.events[e]?.filter(t=>r!==t)}destroy(){this.events={}}},Ds=100/6,uo=class{constructor(e,{wheelMultiplier:r=1,touchMultiplier:t=1}){vr(this,"onTouchStart",e=>{let{clientX:r,clientY:t}=e.targetTouches?e.targetTouches[0]:e;this.touchStart.x=r,this.touchStart.y=t,this.lastDelta={x:0,y:0},this.emitter.emit("scroll",{deltaX:0,deltaY:0,event:e})});vr(this,"onTouchMove",e=>{let{clientX:r,clientY:t}=e.targetTouches?e.targetTouches[0]:e,i=-(r-this.touchStart.x)*this.touchMultiplier,n=-(t-this.touchStart.y)*this.touchMultiplier;this.touchStart.x=r,this.touchStart.y=t,this.lastDelta={x:i,y:n},this.emitter.emit("scroll",{deltaX:i,deltaY:n,event:e})});vr(this,"onTouchEnd",e=>{this.emitter.emit("scroll",{deltaX:this.lastDelta.x,deltaY:this.lastDelta.y,event:e})});vr(this,"onWheel",e=>{let{deltaX:r,deltaY:t,deltaMode:i}=e;r*=i===1?Ds:i===2?this.windowWidth:1,t*=i===1?Ds:i===2?this.windowHeight:1,r*=this.wheelMultiplier,t*=this.wheelMultiplier,this.emitter.emit("scroll",{deltaX:r,deltaY:t,event:e})});vr(this,"onWindowResize",()=>{this.windowWidth=window.innerWidth,this.windowHeight=window.innerHeight});this.element=e,this.wheelMultiplier=r,this.touchMultiplier=t,this.touchStart={x:null,y:null},this.emitter=new dn,window.addEventListener("resize",this.onWindowResize,!1),this.onWindowResize(),this.element.addEventListener("wheel",this.onWheel,{passive:!1}),this.element.addEventListener("touchstart",this.onTouchStart,{passive:!1}),this.element.addEventListener("touchmove",this.onTouchMove,{passive:!1}),this.element.addEventListener("touchend",this.onTouchEnd,{passive:!1})}on(e,r){return this.emitter.on(e,r)}destroy(){this.emitter.destroy(),window.removeEventListener("resize",this.onWindowResize,!1),this.element.removeEventListener("wheel",this.onWheel,{passive:!1}),this.element.removeEventListener("touchstart",this.onTouchStart,{passive:!1}),this.element.removeEventListener("touchmove",this.onTouchMove,{passive:!1}),this.element.removeEventListener("touchend",this.onTouchEnd,{passive:!1})}},pn=class{constructor({wrapper:e=window,content:r=document.documentElement,wheelEventsTarget:t=e,eventsTarget:i=t,smoothWheel:n=!0,syncTouch:o=!1,syncTouchLerp:s=.075,touchInertiaMultiplier:l=35,duration:u,easing:c=M=>Math.min(1,1.001-Math.pow(2,-10*M)),lerp:p=!u&&.1,infinite:_=!1,orientation:d="vertical",gestureOrientation:v="vertical",touchMultiplier:g=1,wheelMultiplier:w=1,autoResize:C=!0,__experimental__naiveDimensions:P=!1}={}){this.__isSmooth=!1,this.__isScrolling=!1,this.__isStopped=!1,this.__isLocked=!1,this.onVirtualScroll=({deltaX:M,deltaY:E,event:k})=>{if(k.ctrlKey)return;let R=k.type.includes("touch"),A=k.type.includes("wheel");if(this.options.syncTouch&&R&&k.type==="touchstart"&&!this.isStopped&&!this.isLocked)return void this.reset();let F=M===0&&E===0,L=this.options.gestureOrientation==="vertical"&&E===0||this.options.gestureOrientation==="horizontal"&&M===0;if(F||L)return;let q=k.composedPath();if(q=q.slice(0,q.indexOf(this.rootElement)),q.find(Z=>{var ae,J,G,te,ve;return((ae=Z.hasAttribute)===null||ae===void 0?void 0:ae.call(Z,"data-lenis-prevent"))||R&&((J=Z.hasAttribute)===null||J===void 0?void 0:J.call(Z,"data-lenis-prevent-touch"))||A&&((G=Z.hasAttribute)===null||G===void 0?void 0:G.call(Z,"data-lenis-prevent-wheel"))||((te=Z.classList)===null||te===void 0?void 0:te.contains("lenis"))&&!(!((ve=Z.classList)===null||ve===void 0)&&ve.contains("lenis-stopped"))}))return;if(this.isStopped||this.isLocked)return void k.preventDefault();if(this.isSmooth=this.options.syncTouch&&R||this.options.smoothWheel&&A,!this.isSmooth)return this.isScrolling=!1,void this.animate.stop();k.preventDefault();let Q=E;this.options.gestureOrientation==="both"?Q=Math.abs(E)>Math.abs(M)?E:M:this.options.gestureOrientation==="horizontal"&&(Q=M);let I=R&&this.options.syncTouch,oe=R&&k.type==="touchend"&&Math.abs(Q)>5;oe&&(Q=this.velocity*this.options.touchInertiaMultiplier),this.scrollTo(this.targetScroll+Q,Object.assign({programmatic:!1},I?{lerp:oe?this.options.syncTouchLerp:1}:{lerp:this.options.lerp,duration:this.options.duration,easing:this.options.easing}))},this.onNativeScroll=()=>{if(!this.__preventNextScrollEvent&&!this.isScrolling){let M=this.animatedScroll;this.animatedScroll=this.targetScroll=this.actualScroll,this.velocity=0,this.direction=Math.sign(this.animatedScroll-M),this.emit()}},window.lenisVersion="1.0.42",e!==document.documentElement&&e!==document.body||(e=window),this.options={wrapper:e,content:r,wheelEventsTarget:t,eventsTarget:i,smoothWheel:n,syncTouch:o,syncTouchLerp:s,touchInertiaMultiplier:l,duration:u,easing:c,lerp:p,infinite:_,gestureOrientation:v,orientation:d,touchMultiplier:g,wheelMultiplier:w,autoResize:C,__experimental__naiveDimensions:P},this.animate=new ao,this.emitter=new dn,this.dimensions=new lo({wrapper:e,content:r,autoResize:C}),this.toggleClassName("lenis",!0),this.velocity=0,this.isLocked=!1,this.isStopped=!1,this.isSmooth=o||n,this.isScrolling=!1,this.targetScroll=this.animatedScroll=this.actualScroll,this.options.wrapper.addEventListener("scroll",this.onNativeScroll,!1),this.virtualScroll=new uo(i,{touchMultiplier:g,wheelMultiplier:w}),this.virtualScroll.on("scroll",this.onVirtualScroll)}destroy(){this.emitter.destroy(),this.options.wrapper.removeEventListener("scroll",this.onNativeScroll,!1),this.virtualScroll.destroy(),this.dimensions.destroy(),this.toggleClassName("lenis",!1),this.toggleClassName("lenis-smooth",!1),this.toggleClassName("lenis-scrolling",!1),this.toggleClassName("lenis-stopped",!1),this.toggleClassName("lenis-locked",!1)}on(e,r){return this.emitter.on(e,r)}off(e,r){return this.emitter.off(e,r)}setScroll(e){this.isHorizontal?this.rootElement.scrollLeft=e:this.rootElement.scrollTop=e}resize(){this.dimensions.resize()}emit(){this.emitter.emit("scroll",this)}reset(){this.isLocked=!1,this.isScrolling=!1,this.animatedScroll=this.targetScroll=this.actualScroll,this.velocity=0,this.animate.stop()}start(){this.isStopped&&(this.isStopped=!1,this.reset())}stop(){this.isStopped||(this.isStopped=!0,this.animate.stop(),this.reset())}raf(e){let r=e-(this.time||e);this.time=e,this.animate.advance(.001*r)}scrollTo(e,{offset:r=0,immediate:t=!1,lock:i=!1,duration:n=this.options.duration,easing:o=this.options.easing,lerp:s=!n&&this.options.lerp,onComplete:l,force:u=!1,programmatic:c=!0}={}){if(!this.isStopped&&!this.isLocked||u){if(["top","left","start"].includes(e))e=0;else if(["bottom","right","end"].includes(e))e=this.limit;else{let p;if(typeof e=="string"?p=document.querySelector(e):e?.nodeType&&(p=e),p){if(this.options.wrapper!==window){let d=this.options.wrapper.getBoundingClientRect();r-=this.isHorizontal?d.left:d.top}let _=p.getBoundingClientRect();e=(this.isHorizontal?_.left:_.top)+this.animatedScroll}}if(typeof e=="number"){if(e+=r,e=Math.round(e),this.options.infinite?c&&(this.targetScroll=this.animatedScroll=this.scroll):e=zs(0,e,this.limit),t)return this.animatedScroll=this.targetScroll=e,this.setScroll(this.scroll),this.reset(),void(l==null||l(this));if(!c){if(e===this.targetScroll)return;this.targetScroll=e}this.animate.fromTo(this.animatedScroll,e,{duration:n,easing:o,lerp:s,onStart:()=>{i&&(this.isLocked=!0),this.isScrolling=!0},onUpdate:(p,_)=>{this.isScrolling=!0,this.velocity=p-this.animatedScroll,this.direction=Math.sign(this.velocity),this.animatedScroll=p,this.setScroll(this.scroll),c&&(this.targetScroll=p),_||this.emit(),_&&(this.reset(),this.emit(),l?.(this),this.__preventNextScrollEvent=!0,requestAnimationFrame(()=>{delete this.__preventNextScrollEvent}))}})}}}get rootElement(){return this.options.wrapper===window?document.documentElement:this.options.wrapper}get limit(){return this.options.__experimental__naiveDimensions?this.isHorizontal?this.rootElement.scrollWidth-this.rootElement.clientWidth:this.rootElement.scrollHeight-this.rootElement.clientHeight:this.dimensions.limit[this.isHorizontal?"x":"y"]}get isHorizontal(){return this.options.orientation==="horizontal"}get actualScroll(){return this.isHorizontal?this.rootElement.scrollLeft:this.rootElement.scrollTop}get scroll(){return this.options.infinite?(e=this.animatedScroll,r=this.limit,(e%r+r)%r):this.animatedScroll;var e,r}get progress(){return this.limit===0?1:this.scroll/this.limit}get isSmooth(){return this.__isSmooth}set isSmooth(e){this.__isSmooth!==e&&(this.__isSmooth=e,this.toggleClassName("lenis-smooth",e))}get isScrolling(){return this.__isScrolling}set isScrolling(e){this.__isScrolling!==e&&(this.__isScrolling=e,this.toggleClassName("lenis-scrolling",e))}get isStopped(){return this.__isStopped}set isStopped(e){this.__isStopped!==e&&(this.__isStopped=e,this.toggleClassName("lenis-stopped",e))}get isLocked(){return this.__isLocked}set isLocked(e){this.__isLocked!==e&&(this.__isLocked=e,this.toggleClassName("lenis-locked",e))}get className(){let e="lenis";return this.isStopped&&(e+=" lenis-stopped"),this.isLocked&&(e+=" lenis-locked"),this.isScrolling&&(e+=" lenis-scrolling"),this.isSmooth&&(e+=" lenis-smooth"),e}toggleClassName(e,r){this.rootElement.classList.toggle(e,r),this.emitter.emit("className change",this)}};function yr(a){if(a===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a}function Ws(a,e){a.prototype=Object.create(e.prototype),a.prototype.constructor=a,a.__proto__=e}var Bt={autoSleep:120,force3D:"auto",nullTargetWarn:1,units:{lineHeight:""}},hi={duration:.5,overwrite:!1,delay:0},Ao,dt,Oe,Zt=1e8,Ee=1/Zt,vo=Math.PI*2,Wl=vo/4,Xl=0,Xs=Math.sqrt,Ul=Math.cos,Vl=Math.sin,tt=function(e){return typeof e=="string"},Ie=function(e){return typeof e=="function"},wr=function(e){return typeof e=="number"},Tn=function(e){return typeof e>"u"},pr=function(e){return typeof e=="object"},It=function(e){return e!==!1},Oo=function(){return typeof window<"u"},_n=function(e){return Ie(e)||tt(e)},Us=typeof ArrayBuffer=="function"&&ArrayBuffer.isView||function(){},bt=Array.isArray,yo=/(?:-?\.?\d|\.)+/gi,Mo=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,jr=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,co=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,Ro=/[+-]=-?[.\d]+/,Vs=/[^,'"\[\]\s]+/gi,jl=/^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i,De,hr,bo,Lo,Ut={},yn={},js,Gs=function(e){return(yn=di(e,Ut))&&wt},Pn=function(e,r){return console.warn("Invalid property",e,"set to",r,"Missing plugin? gsap.registerPlugin()")},Ni=function(e,r){return!r&&console.warn(e)},$s=function(e,r){return e&&(Ut[e]=r)&&yn&&(yn[e]=r)||Ut},Ii=function(){return 0},Gl={suppressEvents:!0,isStart:!0,kill:!1},gn={suppressEvents:!0,kill:!1},$l={suppressEvents:!0},Do={},Mr=[],wo={},Qs,Ft={},fo={},qs=30,mn=[],zo="",qo=function(e){var r=e[0],t,i;if(pr(r)||Ie(r)||(e=[e]),!(t=(r._gsap||{}).harness)){for(i=mn.length;i--&&!mn[i].targetTest(r););t=mn[i]}for(i=e.length;i--;)e[i]&&(e[i]._gsap||(e[i]._gsap=new Bo(e[i],t)))||e.splice(i,1);return e},Rr=function(e){return e._gsap||qo(Jt(e))[0]._gsap},Fo=function(e,r,t){return(t=e[r])&&Ie(t)?e[r]():Tn(t)&&e.getAttribute&&e.getAttribute(r)||t},At=function(e,r){return(e=e.split(",")).forEach(r)||e},Be=function(e){return Math.round(e*1e5)/1e5||0},Ge=function(e){return Math.round(e*1e7)/1e7||0},Gr=function(e,r){var t=r.charAt(0),i=parseFloat(r.substr(2));return e=parseFloat(e),t==="+"?e+i:t==="-"?e-i:t==="*"?e*i:e/i},Ql=function(e,r){for(var t=r.length,i=0;e.indexOf(r[i])<0&&++is;)o=o._prev;return o?(r._next=o._next,o._next=r):(r._next=e[t],e[t]=r),r._next?r._next._prev=r:e[i]=r,r._prev=o,r.parent=r._dp=e,r},En=function(e,r,t,i){t===void 0&&(t="_first"),i===void 0&&(i="_last");var n=r._prev,o=r._next;n?n._next=o:e[t]===r&&(e[t]=o),o?o._prev=n:e[i]===r&&(e[i]=n),r._next=r._prev=r.parent=null},Lr=function(e,r){e.parent&&(!r||e.parent.autoRemoveChildren)&&e.parent.remove&&e.parent.remove(e),e._act=0},Xr=function(e,r){if(e&&(!r||r._end>e._dur||r._start<0))for(var t=e;t;)t._dirty=1,t=t.parent;return e},Jl=function(e){for(var r=e.parent;r&&r.parent;)r._dirty=1,r.totalDuration(),r=r.parent;return e},xo=function(e,r,t,i){return e._startAt&&(dt?e._startAt.revert(gn):e.vars.immediateRender&&!e.vars.autoRevert||e._startAt.render(r,!0,i))},eu=function a(e){return!e||e._ts&&a(e.parent)},Ns=function(e){return e._repeat?pi(e._tTime,e=e.duration()+e._rDelay)*e:0},pi=function(e,r){var t=Math.floor(e=Ge(e/r));return e&&t===e?t-1:t},xn=function(e,r){return(e-r._start)*r._ts+(r._ts>=0?0:r._dirty?r.totalDuration():r._tDur)},kn=function(e){return e._end=Ge(e._start+(e._tDur/Math.abs(e._ts||e._rts||Ee)||0))},Cn=function(e,r){var t=e._dp;return t&&t.smoothChildTiming&&e._ts&&(e._start=Ge(t._time-(e._ts>0?r/e._ts:((e._dirty?e.totalDuration():e._tDur)-r)/-e._ts)),kn(e),t._dirty||Xr(t,e)),e},ta=function(e,r){var t;if((r._time||!r._dur&&r._initted||r._startEe)&&r.render(t,!0)),Xr(e,r)._dp&&e._initted&&e._time>=e._dur&&e._ts){if(e._dur=0&&t.totalTime(t._tTime),t=t._dp;e._zTime=-Ee}},dr=function(e,r,t,i){return r.parent&&Lr(r),r._start=Ge((wr(t)?t:t||e!==De?Kt(e,t,r):e._time)+r._delay),r._end=Ge(r._start+(r.totalDuration()/Math.abs(r.timeScale())||0)),ea(e,r,"_first","_last",e._sort?"_start":0),So(r)||(e._recent=r),i||ta(e,r),e._ts<0&&Cn(e,e._tTime),e},ra=function(e,r){return(Ut.ScrollTrigger||Pn("scrollTrigger",r))&&Ut.ScrollTrigger.create(r,e)},ia=function(e,r,t,i,n){if(Wo(e,r,n),!e._initted)return 1;if(!t&&e._pt&&!dt&&(e._dur&&e.vars.lazy!==!1||!e._dur&&e.vars.lazy)&&Qs!==Nt.frame)return Mr.push(e),e._lazy=[n,i],1},tu=function a(e){var r=e.parent;return r&&r._ts&&r._initted&&!r._lock&&(r.rawTime()<0||a(r))},So=function(e){var r=e.data;return r==="isFromStart"||r==="isStart"},ru=function(e,r,t,i){var n=e.ratio,o=r<0||!r&&(!e._start&&tu(e)&&!(!e._initted&&So(e))||(e._ts<0||e._dp._ts<0)&&!So(e))?0:1,s=e._rDelay,l=0,u,c,p;if(s&&e._repeat&&(l=Yi(0,e._tDur,r),c=pi(l,s),e._yoyo&&c&1&&(o=1-o),c!==pi(e._tTime,s)&&(n=1-o,e.vars.repeatRefresh&&e._initted&&e.invalidate())),o!==n||dt||i||e._zTime===Ee||!r&&e._zTime){if(!e._initted&&ia(e,r,i,t,l))return;for(p=e._zTime,e._zTime=r||(t?Ee:0),t||(t=r&&!p),e.ratio=o,e._from&&(o=1-o),e._time=0,e._tTime=l,u=e._pt;u;)u.r(o,u.d),u=u._next;r<0&&xo(e,r,t,!0),e._onUpdate&&!t&&Xt(e,"onUpdate"),l&&e._repeat&&!t&&e.parent&&Xt(e,"onRepeat"),(r>=e._tDur||r<0)&&e.ratio===o&&(o&&Lr(e,1),!t&&!dt&&(Xt(e,o?"onComplete":"onReverseComplete",!0),e._prom&&e._prom()))}else e._zTime||(e._zTime=r)},iu=function(e,r,t){var i;if(t>r)for(i=e._first;i&&i._start<=t;){if(i.data==="isPause"&&i._start>r)return i;i=i._next}else for(i=e._last;i&&i._start>=t;){if(i.data==="isPause"&&i._start0&&!i&&Cn(e,e._tTime=e._tDur*s),e.parent&&kn(e),t||Xr(e.parent,e),e},Is=function(e){return e instanceof ht?Xr(e):_i(e,e._dur)},nu={_start:0,endTime:Ii,totalDuration:Ii},Kt=function a(e,r,t){var i=e.labels,n=e._recent||nu,o=e.duration()>=Zt?n.endTime(!1):e._dur,s,l,u;return tt(r)&&(isNaN(r)||r in i)?(l=r.charAt(0),u=r.substr(-1)==="%",s=r.indexOf("="),l==="<"||l===">"?(s>=0&&(r=r.replace(/=/,"")),(l==="<"?n._start:n.endTime(n._repeat>=0))+(parseFloat(r.substr(1))||0)*(u?(s<0?n:t).totalDuration()/100:1)):s<0?(r in i||(i[r]=o),i[r]):(l=parseFloat(r.charAt(s-1)+r.substr(s+1)),u&&t&&(l=l/100*(bt(t)?t[0]:t).totalDuration()),s>1?a(e,r.substr(0,s-1),t)+l:o+l)):r==null?o:+r},qi=function(e,r,t){var i=wr(r[1]),n=(i?2:1)+(e<2?0:1),o=r[n],s,l;if(i&&(o.duration=r[1]),o.parent=t,e){for(s=o,l=t;l&&!("immediateRender"in s);)s=l.vars.defaults||{},l=It(l.vars.inherit)&&l.parent;o.immediateRender=It(s.immediateRender),e<2?o.runBackwards=1:o.startAt=r[n-1]}return new Xe(r[0],o,r[n+1])},Dr=function(e,r){return e||e===0?r(e):r},Yi=function(e,r,t){return tr?r:t},pt=function(e,r){return!tt(e)||!(r=jl.exec(e))?"":r[1]},ou=function(e,r,t){return Dr(t,function(i){return Yi(e,r,i)})},To=[].slice,na=function(e,r){return e&&pr(e)&&"length"in e&&(!r&&!e.length||e.length-1 in e&&pr(e[0]))&&!e.nodeType&&e!==hr},su=function(e,r,t){return t===void 0&&(t=[]),e.forEach(function(i){var n;return tt(i)&&!r||na(i,1)?(n=t).push.apply(n,Jt(i)):t.push(i)})||t},Jt=function(e,r,t){return Oe&&!r&&Oe.selector?Oe.selector(e):tt(e)&&!t&&(bo||!gi())?To.call((r||Lo).querySelectorAll(e),0):bt(e)?su(e,t):na(e)?To.call(e,0):e?[e]:[]},Po=function(e){return e=Jt(e)[0]||Ni("Invalid scope")||{},function(r){var t=e.current||e.nativeElement||e;return Jt(r,t.querySelectorAll?t:t===e?Ni("Invalid scope")||Lo.createElement("div"):e)}},oa=function(e){return e.sort(function(){return .5-Math.random()})},sa=function(e){if(Ie(e))return e;var r=pr(e)?e:{each:e},t=Ur(r.ease),i=r.from||0,n=parseFloat(r.base)||0,o={},s=i>0&&i<1,l=isNaN(i)||s,u=r.axis,c=i,p=i;return tt(i)?c=p={center:.5,edges:.5,end:1}[i]||0:!s&&l&&(c=i[0],p=i[1]),function(_,d,v){var g=(v||r).length,w=o[g],C,P,M,E,k,R,A,F,L;if(!w){if(L=r.grid==="auto"?0:(r.grid||[1,Zt])[1],!L){for(A=-Zt;A<(A=v[L++].getBoundingClientRect().left)&&LA&&(A=k),kg?g-1:u?u==="y"?g/L:L:Math.max(L,g/L))||0)*(i==="edges"?-1:1),w.b=g<0?n-g:n,w.u=pt(r.amount||r.each)||0,t=t&&g<0?_a(t):t}return g=(w[_]-w.min)/w.max||0,Ge(w.b+(t?t(g):g)*w.v)+w.u}},Eo=function(e){var r=Math.pow(10,((e+"").split(".")[1]||"").length);return function(t){var i=Ge(Math.round(parseFloat(t)/e)*e*r);return(i-i%1)/r+(wr(t)?0:pt(t))}},aa=function(e,r){var t=bt(e),i,n;return!t&&pr(e)&&(i=t=e.radius||Zt,e.values?(e=Jt(e.values),(n=!wr(e[0]))&&(i*=i)):e=Eo(e.increment)),Dr(r,t?Ie(e)?function(o){return n=e(o),Math.abs(n-o)<=i?n:o}:function(o){for(var s=parseFloat(n?o.x:o),l=parseFloat(n?o.y:0),u=Zt,c=0,p=e.length,_,d;p--;)n?(_=e[p].x-s,d=e[p].y-l,_=_*_+d*d):_=Math.abs(e[p]-s),_i?n-o:o)})},mi=function(e){for(var r=0,t="",i,n,o,s;~(i=e.indexOf("random(",r));)o=e.indexOf(")",i),s=e.charAt(i+7)==="[",n=e.substr(i+7,o-i-7).match(s?Vs:yo),t+=e.substr(r,i-r)+la(s?n:+n[0],s?0:+n[1],+n[2]||1e-5),r=o+1;return t+e.substr(r,e.length-r)},ca=function(e,r,t,i,n){var o=r-e,s=i-t;return Dr(n,function(l){return t+((l-e)/o*s||0)})},hu=function a(e,r,t,i){var n=isNaN(e+r)?0:function(d){return(1-d)*e+d*r};if(!n){var o=tt(e),s={},l,u,c,p,_;if(t===!0&&(i=1)&&(t=null),o)e={p:e},r={p:r};else if(bt(e)&&!bt(r)){for(c=[],p=e.length,_=p-2,u=1;u(s=Math.abs(s))&&(l=o,n=s);return l},Xt=function(e,r,t){var i=e.vars,n=i[r],o=Oe,s=e._ctx,l,u,c;if(n)return l=i[r+"Params"],u=i.callbackScope||e,t&&Mr.length&&bn(),s&&(Oe=s),c=l?n.apply(u,l):n.call(u),Oe=o,c},Li=function(e){return Lr(e),e.scrollTrigger&&e.scrollTrigger.kill(!!dt),e.progress()<1&&Xt(e,"onInterrupt"),e},fi,fa=[],ha=function(e){if(e)if(e=!e.name&&e.default||e,Oo()||e.headless){var r=e.name,t=Ie(e),i=r&&!t&&e.init?function(){this._props=[]}:e,n={init:Ii,render:Vo,add:Ho,kill:Cu,modifier:ku,rawVars:0},o={targetTest:0,get:0,getSetter:An,aliases:{},register:0};if(gi(),e!==i){if(Ft[r])return;Vt(i,Vt(wn(e,n),o)),di(i.prototype,di(n,wn(e,o))),Ft[i.prop=r]=i,e.targetTest&&(mn.push(i),Do[r]=1),r=(r==="css"?"CSS":r.charAt(0).toUpperCase()+r.substr(1))+"Plugin"}$s(r,i),e.register&&e.register(wt,i,Ot)}else fa.push(e)},Pe=255,Di={aqua:[0,Pe,Pe],lime:[0,Pe,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,Pe],navy:[0,0,128],white:[Pe,Pe,Pe],olive:[128,128,0],yellow:[Pe,Pe,0],orange:[Pe,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[Pe,0,0],pink:[Pe,192,203],cyan:[0,Pe,Pe],transparent:[Pe,Pe,Pe,0]},ho=function(e,r,t){return e+=e<0?1:e>1?-1:0,(e*6<1?r+(t-r)*e*6:e<.5?t:e*3<2?r+(t-r)*(2/3-e)*6:r)*Pe+.5|0},da=function(e,r,t){var i=e?wr(e)?[e>>16,e>>8&Pe,e&Pe]:0:Di.black,n,o,s,l,u,c,p,_,d,v;if(!i){if(e.substr(-1)===","&&(e=e.substr(0,e.length-1)),Di[e])i=Di[e];else if(e.charAt(0)==="#"){if(e.length<6&&(n=e.charAt(1),o=e.charAt(2),s=e.charAt(3),e="#"+n+n+o+o+s+s+(e.length===5?e.charAt(4)+e.charAt(4):"")),e.length===9)return i=parseInt(e.substr(1,6),16),[i>>16,i>>8&Pe,i&Pe,parseInt(e.substr(7),16)/255];e=parseInt(e.substr(1),16),i=[e>>16,e>>8&Pe,e&Pe]}else if(e.substr(0,3)==="hsl"){if(i=v=e.match(yo),!r)l=+i[0]%360/360,u=+i[1]/100,c=+i[2]/100,o=c<=.5?c*(u+1):c+u-c*u,n=c*2-o,i.length>3&&(i[3]*=1),i[0]=ho(l+1/3,n,o),i[1]=ho(l,n,o),i[2]=ho(l-1/3,n,o);else if(~e.indexOf("="))return i=e.match(Mo),t&&i.length<4&&(i[3]=1),i}else i=e.match(yo)||Di.transparent;i=i.map(Number)}return r&&!v&&(n=i[0]/Pe,o=i[1]/Pe,s=i[2]/Pe,p=Math.max(n,o,s),_=Math.min(n,o,s),c=(p+_)/2,p===_?l=u=0:(d=p-_,u=c>.5?d/(2-p-_):d/(p+_),l=p===n?(o-s)/d+(oe||C<0)&&(t+=C-r),i+=C,k=i-t,M=k-o,(M>0||P)&&(R=++p.frame,_=k-p.time*1e3,p.time=k=k/1e3,o+=M+(M>=n?4:n-M),E=1),P||(l=u(g)),E)for(d=0;d=C&&d--},_listeners:s},p}(),gi=function(){return!Bi&&Nt.wake()},me={},pu=/^[\d.\-M][\d.\-,\s]/,_u=/["']/g,gu=function(e){for(var r={},t=e.substr(1,e.length-3).split(":"),i=t[0],n=1,o=t.length,s,l,u;n1&&t.config?t.config.apply(null,~e.indexOf("{")?[gu(r[1])]:mu(e).split(",").map(Zs)):me._CE&&pu.test(e)?me._CE("",e):t},_a=function(e){return function(r){return 1-e(1-r)}},ga=function a(e,r){for(var t=e._first,i;t;)t instanceof ht?a(t,r):t.vars.yoyoEase&&(!t._yoyo||!t._repeat)&&t._yoyo!==r&&(t.timeline?a(t.timeline,r):(i=t._ease,t._ease=t._yEase,t._yEase=i,t._yoyo=r)),t=t._next},Ur=function(e,r){return e&&(Ie(e)?e:me[e]||vu(e))||r},$r=function(e,r,t,i){t===void 0&&(t=function(l){return 1-r(1-l)}),i===void 0&&(i=function(l){return l<.5?r(l*2)/2:1-r((1-l)*2)/2});var n={easeIn:r,easeOut:t,easeInOut:i},o;return At(e,function(s){me[s]=Ut[s]=n,me[o=s.toLowerCase()]=t;for(var l in n)me[o+(l==="easeIn"?".in":l==="easeOut"?".out":".inOut")]=me[s+"."+l]=n[l]}),n},ma=function(e){return function(r){return r<.5?(1-e(1-r*2))/2:.5+e((r-.5)*2)/2}},po=function a(e,r,t){var i=r>=1?r:1,n=(t||(e?.3:.45))/(r<1?r:1),o=n/vo*(Math.asin(1/i)||0),s=function(c){return c===1?1:i*Math.pow(2,-10*c)*Vl((c-o)*n)+1},l=e==="out"?s:e==="in"?function(u){return 1-s(1-u)}:ma(s);return n=vo/n,l.config=function(u,c){return a(e,u,c)},l},_o=function a(e,r){r===void 0&&(r=1.70158);var t=function(o){return o?--o*o*((r+1)*o+r)+1:0},i=e==="out"?t:e==="in"?function(n){return 1-t(1-n)}:ma(t);return i.config=function(n){return a(e,n)},i};At("Linear,Quad,Cubic,Quart,Quint,Strong",function(a,e){var r=e<5?e+1:e;$r(a+",Power"+(r-1),e?function(t){return Math.pow(t,r)}:function(t){return t},function(t){return 1-Math.pow(1-t,r)},function(t){return t<.5?Math.pow(t*2,r)/2:1-Math.pow((1-t)*2,r)/2})});me.Linear.easeNone=me.none=me.Linear.easeIn;$r("Elastic",po("in"),po("out"),po());(function(a,e){var r=1/e,t=2*r,i=2.5*r,n=function(s){return s0?t+(t+this._rDelay)*this._repeat:t):this.totalDuration()&&this._dur},e.totalDuration=function(t){return arguments.length?(this._dirty=0,_i(this,this._repeat<0?t:(t-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},e.totalTime=function(t,i){if(gi(),!arguments.length)return this._tTime;var n=this._dp;if(n&&n.smoothChildTiming&&this._ts){for(Cn(this,t),!n._dp||n.parent||ta(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)&&dr(this._dp,this,this._start-this._delay)}return(this._tTime!==t||!this._dur&&!i||this._initted&&Math.abs(this._zTime)===Ee||!t&&!this._initted&&(this.add||this._ptLookup))&&(this._ts||(this._pTime=t),Ks(this,t,i)),this},e.time=function(t,i){return arguments.length?this.totalTime(Math.min(this.totalDuration(),t+Ns(this))%(this._dur+this._rDelay)||(t?this._dur:0),i):this._time},e.totalProgress=function(t,i){return arguments.length?this.totalTime(this.totalDuration()*t,i):this.totalDuration()?Math.min(1,this._tTime/this._tDur):this.rawTime()>=0&&this._initted?1:0},e.progress=function(t,i){return arguments.length?this.totalTime(this.duration()*(this._yoyo&&!(this.iteration()&1)?1-t:t)+Ns(this),i):this.duration()?Math.min(1,this._time/this._dur):this.rawTime()>0?1:0},e.iteration=function(t,i){var n=this.duration()+this._rDelay;return arguments.length?this.totalTime(this._time+(t-1)*n,i):this._repeat?pi(this._tTime,n)+1:1},e.timeScale=function(t,i){if(!arguments.length)return this._rts===-Ee?0:this._rts;if(this._rts===t)return this;var n=this.parent&&this._ts?xn(this.parent._time,this):this._tTime;return this._rts=+t||0,this._ts=this._ps||t===-Ee?0:this._rts,this.totalTime(Yi(-Math.abs(this._delay),this.totalDuration(),n),i!==!1),kn(this),Jl(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):(gi(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,this.progress()===1&&Math.abs(this._zTime)!==Ee&&(this._tTime-=Ee)))),this):this._ps},e.startTime=function(t){if(arguments.length){this._start=t;var i=this.parent||this._dp;return i&&(i._sort||!this.parent)&&dr(i,this,t-this._delay),this}return this._start},e.endTime=function(t){return this._start+(It(t)?this.totalDuration():this.duration())/Math.abs(this._ts||1)},e.rawTime=function(t){var i=this.parent||this._dp;return i?t&&(!this._ts||this._repeat&&this._time&&this.totalProgress()<1)?this._tTime%(this._dur+this._rDelay):this._ts?xn(i.rawTime(t),this):this._tTime:this._tTime},e.revert=function(t){t===void 0&&(t=$l);var i=dt;return dt=t,No(this)&&(this.timeline&&this.timeline.revert(t),this.totalTime(-.01,t.suppressEvents)),this.data!=="nested"&&t.kill!==!1&&this.kill(),dt=i,this},e.globalTime=function(t){for(var i=this,n=arguments.length?t:i.rawTime();i;)n=i._start+n/(Math.abs(i._ts)||1),i=i._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,Is(this)):this._repeat===-2?1/0:this._repeat},e.repeatDelay=function(t){if(arguments.length){var i=this._time;return this._rDelay=t,Is(this),i?this.time(i):this}return this._rDelay},e.yoyo=function(t){return arguments.length?(this._yoyo=t,this):this._yoyo},e.seek=function(t,i){return this.totalTime(Kt(this,t),It(i))},e.restart=function(t,i){return this.play().totalTime(t?-this._delay:0,It(i)),this._dur||(this._zTime=-Ee),this},e.play=function(t,i){return t!=null&&this.seek(t,i),this.reversed(!1).paused(!1)},e.reverse=function(t,i){return t!=null&&this.seek(t||this.totalDuration(),i),this.reversed(!0).paused(!1)},e.pause=function(t,i){return t!=null&&this.seek(t,i),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?-Ee:0)),this):this._rts<0},e.invalidate=function(){return this._initted=this._act=0,this._zTime=-Ee,this},e.isActive=function(){var t=this.parent||this._dp,i=this._start,n;return!!(!t||this._ts&&this._initted&&t.isActive()&&(n=t.rawTime(!0))>=i&&n1?(i?(o[t]=i,n&&(o[t+"Params"]=n),t==="onUpdate"&&(this._onUpdate=i)):delete o[t],this):o[t]},e.then=function(t){var i=this;return new Promise(function(n){var o=Ie(t)?t:Js,s=function(){var u=i.then;i.then=null,Ie(o)&&(o=o(i))&&(o.then||o===i)&&(i.then=u),n(o),i.then=u};i._initted&&i.totalProgress()===1&&i._ts>=0||!i._tTime&&i._ts<0?s():i._prom=s})},e.kill=function(){Li(this)},a}();Vt(Hi.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:-Ee,_prom:0,_ps:!1,_rts:1});var ht=function(a){Ws(e,a);function e(t,i){var n;return t===void 0&&(t={}),n=a.call(this,t)||this,n.labels={},n.smoothChildTiming=!!t.smoothChildTiming,n.autoRemoveChildren=!!t.autoRemoveChildren,n._sort=It(t.sortChildren),De&&dr(t.parent||De,yr(n),i),t.reversed&&n.reverse(),t.paused&&n.paused(!0),t.scrollTrigger&&ra(yr(n),t.scrollTrigger),n}var r=e.prototype;return r.to=function(i,n,o){return qi(0,arguments,this),this},r.from=function(i,n,o){return qi(1,arguments,this),this},r.fromTo=function(i,n,o,s){return qi(2,arguments,this),this},r.set=function(i,n,o){return n.duration=0,n.parent=this,zi(n).repeatDelay||(n.repeat=0),n.immediateRender=!!n.immediateRender,new Xe(i,n,Kt(this,o),1),this},r.call=function(i,n,o){return dr(this,Xe.delayedCall(0,i,n),o)},r.staggerTo=function(i,n,o,s,l,u,c){return o.duration=n,o.stagger=o.stagger||s,o.onComplete=u,o.onCompleteParams=c,o.parent=this,new Xe(i,o,Kt(this,l)),this},r.staggerFrom=function(i,n,o,s,l,u,c){return o.runBackwards=1,zi(o).immediateRender=It(o.immediateRender),this.staggerTo(i,n,o,s,l,u,c)},r.staggerFromTo=function(i,n,o,s,l,u,c,p){return s.startAt=o,zi(s).immediateRender=It(s.immediateRender),this.staggerTo(i,n,s,l,u,c,p)},r.render=function(i,n,o){var s=this._time,l=this._dirty?this.totalDuration():this._tDur,u=this._dur,c=i<=0?0:Ge(i),p=this._zTime<0!=i<0&&(this._initted||!u),_,d,v,g,w,C,P,M,E,k,R,A;if(this!==De&&c>l&&i>=0&&(c=l),c!==this._tTime||o||p){if(s!==this._time&&u&&(c+=this._time-s,i+=this._time-s),_=c,E=this._start,M=this._ts,C=!M,p&&(u||(s=this._zTime),(i||!n)&&(this._zTime=i)),this._repeat){if(R=this._yoyo,w=u+this._rDelay,this._repeat<-1&&i<0)return this.totalTime(w*100+i,n,o);if(_=Ge(c%w),c===l?(g=this._repeat,_=u):(k=Ge(c/w),g=~~k,g&&g===k&&(_=u,g--),_>u&&(_=u)),k=pi(this._tTime,w),!s&&this._tTime&&k!==g&&this._tTime-k*w-this._dur<=0&&(k=g),R&&g&1&&(_=u-_,A=1),g!==k&&!this._lock){var F=R&&k&1,L=F===(R&&g&1);if(g=s&&i>=0)for(d=this._first;d;){if(v=d._next,(d._act||_>=d._start)&&d._ts&&P!==d){if(d.parent!==this)return this.render(i,n,o);if(d.render(d._ts>0?(_-d._start)*d._ts:(d._dirty?d.totalDuration():d._tDur)+(_-d._start)*d._ts,n,o),_!==this._time||!this._ts&&!C){P=0,v&&(c+=this._zTime=-Ee);break}}d=v}else{d=this._last;for(var q=i<0?i:_;d;){if(v=d._prev,(d._act||q<=d._end)&&d._ts&&P!==d){if(d.parent!==this)return this.render(i,n,o);if(d.render(d._ts>0?(q-d._start)*d._ts:(d._dirty?d.totalDuration():d._tDur)+(q-d._start)*d._ts,n,o||dt&&No(d)),_!==this._time||!this._ts&&!C){P=0,v&&(c+=this._zTime=q?-Ee:Ee);break}}d=v}}if(P&&!n&&(this.pause(),P.render(_>=s?0:-Ee)._zTime=_>=s?1:-1,this._ts))return this._start=E,kn(this),this.render(i,n,o);this._onUpdate&&!n&&Xt(this,"onUpdate",!0),(c===l&&this._tTime>=this.totalDuration()||!c&&s)&&(E===this._start||Math.abs(M)!==Math.abs(this._ts))&&(this._lock||((i||!u)&&(c===l&&this._ts>0||!c&&this._ts<0)&&Lr(this,1),!n&&!(i<0&&!s)&&(c||s||!l)&&(Xt(this,c===l&&i>=0?"onComplete":"onReverseComplete",!0),this._prom&&!(c0)&&this._prom())))}return this},r.add=function(i,n){var o=this;if(wr(n)||(n=Kt(this,n,i)),!(i instanceof Hi)){if(bt(i))return i.forEach(function(s){return o.add(s,n)}),this;if(tt(i))return this.addLabel(i,n);if(Ie(i))i=Xe.delayedCall(0,i);else return this}return this!==i?dr(this,i,n):this},r.getChildren=function(i,n,o,s){i===void 0&&(i=!0),n===void 0&&(n=!0),o===void 0&&(o=!0),s===void 0&&(s=-Zt);for(var l=[],u=this._first;u;)u._start>=s&&(u instanceof Xe?n&&l.push(u):(o&&l.push(u),i&&l.push.apply(l,u.getChildren(!0,n,o)))),u=u._next;return l},r.getById=function(i){for(var n=this.getChildren(1,1,1),o=n.length;o--;)if(n[o].vars.id===i)return n[o]},r.remove=function(i){return tt(i)?this.removeLabel(i):Ie(i)?this.killTweensOf(i):(i.parent===this&&En(this,i),i===this._recent&&(this._recent=this._last),Xr(this))},r.totalTime=function(i,n){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=Ge(Nt.time-(this._ts>0?i/this._ts:(this.totalDuration()-i)/-this._ts))),a.prototype.totalTime.call(this,i,n),this._forcing=0,this):this._tTime},r.addLabel=function(i,n){return this.labels[i]=Kt(this,n),this},r.removeLabel=function(i){return delete this.labels[i],this},r.addPause=function(i,n,o){var s=Xe.delayedCall(0,n||Ii,o);return s.data="isPause",this._hasPause=1,dr(this,s,Kt(this,i))},r.removePause=function(i){var n=this._first;for(i=Kt(this,i);n;)n._start===i&&n.data==="isPause"&&Lr(n),n=n._next},r.killTweensOf=function(i,n,o){for(var s=this.getTweensOf(i,o),l=s.length;l--;)Or!==s[l]&&s[l].kill(i,n);return this},r.getTweensOf=function(i,n){for(var o=[],s=Jt(i),l=this._first,u=wr(n),c;l;)l instanceof Xe?Ql(l._targets,s)&&(u?(!Or||l._initted&&l._ts)&&l.globalTime(0)<=n&&l.globalTime(l.totalDuration())>n:!n||l.isActive())&&o.push(l):(c=l.getTweensOf(s,n)).length&&o.push.apply(o,c),l=l._next;return o},r.tweenTo=function(i,n){n=n||{};var o=this,s=Kt(o,i),l=n,u=l.startAt,c=l.onStart,p=l.onStartParams,_=l.immediateRender,d,v=Xe.to(o,Vt({ease:n.ease||"none",lazy:!1,immediateRender:!1,time:s,overwrite:"auto",duration:n.duration||Math.abs((s-(u&&"time"in u?u.time:o._time))/o.timeScale())||Ee,onStart:function(){if(o.pause(),!d){var w=n.duration||Math.abs((s-(u&&"time"in u?u.time:o._time))/o.timeScale());v._dur!==w&&_i(v,w,0,1).render(v._time,!0,!0),d=1}c&&c.apply(v,p||[])}},n));return _?v.render(0):v},r.tweenFromTo=function(i,n,o){return this.tweenTo(n,Vt({startAt:{time:Kt(this,i)}},o))},r.recent=function(){return this._recent},r.nextLabel=function(i){return i===void 0&&(i=this._time),Bs(this,Kt(this,i))},r.previousLabel=function(i){return i===void 0&&(i=this._time),Bs(this,Kt(this,i),1)},r.currentLabel=function(i){return arguments.length?this.seek(i,!0):this.previousLabel(this._time+Ee)},r.shiftChildren=function(i,n,o){o===void 0&&(o=0);for(var s=this._first,l=this.labels,u;s;)s._start>=o&&(s._start+=i,s._end+=i),s=s._next;if(n)for(u in l)l[u]>=o&&(l[u]+=i);return Xr(this)},r.invalidate=function(i){var n=this._first;for(this._lock=0;n;)n.invalidate(i),n=n._next;return a.prototype.invalidate.call(this,i)},r.clear=function(i){i===void 0&&(i=!0);for(var n=this._first,o;n;)o=n._next,this.remove(n),n=o;return this._dp&&(this._time=this._tTime=this._pTime=0),i&&(this.labels={}),Xr(this)},r.totalDuration=function(i){var n=0,o=this,s=o._last,l=Zt,u,c,p;if(arguments.length)return o.timeScale((o._repeat<0?o.duration():o.totalDuration())/(o.reversed()?-i:i));if(o._dirty){for(p=o.parent;s;)u=s._prev,s._dirty&&s.totalDuration(),c=s._start,c>l&&o._sort&&s._ts&&!o._lock?(o._lock=1,dr(o,s,c-s._delay,1)._lock=0):l=c,c<0&&s._ts&&(n-=c,(!p&&!o._dp||p&&p.smoothChildTiming)&&(o._start+=c/o._ts,o._time-=c,o._tTime-=c),o.shiftChildren(-c,!1,-1/0),l=0),s._end>n&&s._ts&&(n=s._end),s=u;_i(o,o===De&&o._time>n?o._time:n,1,1),o._dirty=0}return o._tDur},e.updateRoot=function(i){if(De._ts&&(Ks(De,xn(i,De)),Qs=Nt.frame),Nt.frame>=qs){qs+=Bt.autoSleep||120;var n=De._first;if((!n||!n._ts)&&Bt.autoSleep&&Nt._listeners.length<2){for(;n&&!n._ts;)n=n._next;n||Nt.sleep()}}},e}(Hi);Vt(ht.prototype,{_lock:0,_hasPause:0,_forcing:0});var yu=function(e,r,t,i,n,o,s){var l=new Ot(this._pt,e,r,0,1,Uo,null,n),u=0,c=0,p,_,d,v,g,w,C,P;for(l.b=t,l.e=i,t+="",i+="",(C=~i.indexOf("random("))&&(i=mi(i)),o&&(P=[t,i],o(P,e,r),t=P[0],i=P[1]),_=t.match(co)||[];p=co.exec(i);)v=p[0],g=i.substring(u,p.index),d?d=(d+1)%5:g.substr(-5)==="rgba("&&(d=1),v!==_[c++]&&(w=parseFloat(_[c-1])||0,l._pt={_next:l._pt,p:g||c===1?g:",",s:w,c:v.charAt(1)==="="?Gr(w,v)-w:parseFloat(v)-w,m:d&&d<4?Math.round:0},u=co.lastIndex);return l.c=u")}),E.duration();else{R={};for(F in v)F==="ease"||F==="easeEach"||Su(F,v[F],R,v.easeEach);for(F in R)for(oe=R[F].sort(function(J,G){return J.t-G.t}),I=0,k=0;kl-Ee&&!c?l:iu&&(_=u)),C=this._yoyo&&v&1,C&&(E=this._yEase,_=u-_),w=pi(this._tTime,g),_===s&&!o&&this._initted&&v===w)return this._tTime=p,this;v!==w&&(M&&this._yEase&&ga(M,C),this.vars.repeatRefresh&&!C&&!this._lock&&_!==g&&this._initted&&(this._lock=o=1,this.render(Ge(g*v),!0).invalidate()._lock=0))}if(!this._initted){if(ia(this,c?i:_,o,n,p))return this._tTime=0,this;if(s!==this._time&&!(o&&this.vars.repeatRefresh&&v!==w))return this;if(u!==this._dur)return this.render(i,n,o)}if(this._tTime=p,this._time=_,!this._act&&this._ts&&(this._act=1,this._lazy=0),this.ratio=P=(E||this._ease)(_/u),this._from&&(this.ratio=P=1-P),!s&&p&&!n&&!w&&(Xt(this,"onStart"),this._tTime!==p))return this;for(d=this._pt;d;)d.r(P,d.d),d=d._next;M&&M.render(i<0?i:M._dur*M._ease(_/this._dur),n,o)||this._startAt&&(this._zTime=i),this._onUpdate&&!n&&(c&&xo(this,i,n,o),Xt(this,"onUpdate")),this._repeat&&v!==w&&this.vars.onRepeat&&!n&&this.parent&&Xt(this,"onRepeat"),(p===this._tDur||!p)&&this._tTime===p&&(c&&!this._onUpdate&&xo(this,i,!0,!0),(i||!u)&&(p===this._tDur&&this._ts>0||!p&&this._ts<0)&&Lr(this,1),!n&&!(c&&!s)&&(p||s||C)&&(Xt(this,p===l?"onComplete":"onReverseComplete",!0),this._prom&&!(p0)&&this._prom()))}return this},r.targets=function(){return this._targets},r.invalidate=function(i){return(!i||!this.vars.runBackwards)&&(this._startAt=0),this._pt=this._op=this._onUpdate=this._lazy=this.ratio=0,this._ptLookup=[],this.timeline&&this.timeline.invalidate(i),a.prototype.invalidate.call(this,i)},r.resetTo=function(i,n,o,s,l){Bi||Nt.wake(),this._ts||this.play();var u=Math.min(this._dur,(this._dp._time-this._start)*this._ts),c;return this._initted||Wo(this,u),c=this._ease(u/this._dur),wu(this,i,n,o,s,c,u,l)?this.resetTo(i,n,o,s,1):(Cn(this,0),this.parent||ea(this._dp,this,"_first","_last",this._dp._sort?"_start":0),this.render(0))},r.kill=function(i,n){if(n===void 0&&(n="all"),!i&&(!n||n==="all"))return this._lazy=this._pt=0,this.parent?Li(this):this.scrollTrigger&&this.scrollTrigger.kill(!!dt),this;if(this.timeline){var o=this.timeline.totalDuration();return this.timeline.killTweensOf(i,n,Or&&Or.vars.overwrite!==!0)._first||Li(this),this.parent&&o!==this.timeline.totalDuration()&&_i(this,this._dur*this.timeline._tDur/o,0,1),this}var s=this._targets,l=i?Jt(i):s,u=this._ptLookup,c=this._pt,p,_,d,v,g,w,C;if((!n||n==="all")&&Zl(s,l))return n==="all"&&(this._pt=0),Li(this);for(p=this._op=this._op||[],n!=="all"&&(tt(n)&&(g={},At(n,function(P){return g[P]=1}),n=g),n=xu(s,n)),C=s.length;C--;)if(~l.indexOf(s[C])){_=u[C],n==="all"?(p[C]=n,v=_,d={}):(d=p[C]=p[C]||{},v=n);for(g in v)w=_&&_[g],w&&((!("kill"in w.d)||w.d.kill(g)===!0)&&En(this,w,"_pt"),delete _[g]),d!=="all"&&(d[g]=1)}return this._initted&&!this._pt&&c&&Li(this),this},e.to=function(i,n){return new e(i,n,arguments[2])},e.from=function(i,n){return qi(1,arguments)},e.delayedCall=function(i,n,o,s){return new e(n,0,{immediateRender:!1,lazy:!1,overwrite:!1,delay:i,onComplete:n,onReverseComplete:n,onCompleteParams:o,onReverseCompleteParams:o,callbackScope:s})},e.fromTo=function(i,n,o){return qi(2,arguments)},e.set=function(i,n){return n.duration=0,n.repeatDelay||(n.repeat=0),new e(i,n)},e.killTweensOf=function(i,n,o){return De.killTweensOf(i,n,o)},e}(Hi);Vt(Xe.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0});At("staggerTo,staggerFrom,staggerFromTo",function(a){Xe[a]=function(){var e=new ht,r=To.call(arguments,0);return r.splice(a==="staggerFromTo"?5:4,0,0),e[a].apply(e,r)}});var Xo=function(e,r,t){return e[r]=t},ba=function(e,r,t){return e[r](t)},Tu=function(e,r,t,i){return e[r](i.fp,t)},Pu=function(e,r,t){return e.setAttribute(r,t)},An=function(e,r){return Ie(e[r])?ba:Tn(e[r])&&e.setAttribute?Pu:Xo},wa=function(e,r){return r.set(r.t,r.p,Math.round((r.s+r.c*e)*1e6)/1e6,r)},Eu=function(e,r){return r.set(r.t,r.p,!!(r.s+r.c*e),r)},Uo=function(e,r){var t=r._pt,i="";if(!e&&r.b)i=r.b;else if(e===1&&r.e)i=r.e;else{for(;t;)i=t.p+(t.m?t.m(t.s+t.c*e):Math.round((t.s+t.c*e)*1e4)/1e4)+i,t=t._next;i+=r.c}r.set(r.t,r.p,i,r)},Vo=function(e,r){for(var t=r._pt;t;)t.r(e,t.d),t=t._next},ku=function(e,r,t,i){for(var n=this._pt,o;n;)o=n._next,n.p===i&&n.modifier(e,r,t),n=o},Cu=function(e){for(var r=this._pt,t,i;r;)i=r._next,r.p===e&&!r.op||r.op===e?En(this,r,"_pt"):r.dep||(t=1),r=i;return!t},Au=function(e,r,t,i){i.mSet(e,r,i.m.call(i.tween,t,i.mt),i)},jo=function(e){for(var r=e._pt,t,i,n,o;r;){for(t=r._next,i=n;i&&i.pr>r.pr;)i=i._next;(r._prev=i?i._prev:o)?r._prev._next=r:n=r,(r._next=i)?i._prev=r:o=r,r=t}e._pt=n},Ot=function(){function a(r,t,i,n,o,s,l,u,c){this.t=t,this.s=n,this.c=o,this.p=i,this.r=s||wa,this.d=l||this,this.set=u||Xo,this.pr=c||0,this._next=r,r&&(r._prev=this)}var e=a.prototype;return e.modifier=function(t,i,n){this.mSet=this.mSet||this.set,this.set=Au,this.m=t,this.mt=n,this.tween=i},a}();At(zo+"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(a){return Do[a]=1});Ut.TweenMax=Ut.TweenLite=Xe;Ut.TimelineLite=Ut.TimelineMax=ht;De=new ht({sortChildren:!1,defaults:hi,autoRemoveChildren:!0,id:"root",smoothChildTiming:!0});Bt.stringFilter=Io;var Vr=[],vn={},Ou=[],Ys=0,Mu=0,go=function(e){return(vn[e]||Ou).map(function(r){return r()})},Co=function(){var e=Date.now(),r=[];e-Ys>2&&(go("matchMediaInit"),Vr.forEach(function(t){var i=t.queries,n=t.conditions,o,s,l,u;for(s in i)o=hr.matchMedia(i[s]).matches,o&&(l=1),o!==n[s]&&(n[s]=o,u=1);u&&(t.revert(),l&&r.push(t))}),go("matchMediaRevert"),r.forEach(function(t){return t.onMatch(t,function(i){return t.add(null,i)})}),Ys=e,go("matchMedia"))},xa=function(){function a(r,t){this.selector=t&&Po(t),this.data=[],this._r=[],this.isReverted=!1,this.id=Mu++,r&&this.add(r)}var e=a.prototype;return e.add=function(t,i,n){Ie(t)&&(n=i,i=t,t=Ie);var o=this,s=function(){var u=Oe,c=o.selector,p;return u&&u!==o&&u.data.push(o),n&&(o.selector=Po(n)),Oe=o,p=i.apply(o,arguments),Ie(p)&&o._r.push(p),Oe=u,o.selector=c,o.isReverted=!1,p};return o.last=s,t===Ie?s(o,function(l){return o.add(null,l)}):t?o[t]=s:s},e.ignore=function(t){var i=Oe;Oe=null,t(this),Oe=i},e.getTweens=function(){var t=[];return this.data.forEach(function(i){return i instanceof a?t.push.apply(t,i.getTweens()):i instanceof Xe&&!(i.parent&&i.parent.data==="nested")&&t.push(i)}),t},e.clear=function(){this._r.length=this.data.length=0},e.kill=function(t,i){var n=this;if(t?function(){for(var s=n.getTweens(),l=n.data.length,u;l--;)u=n.data[l],u.data==="isFlip"&&(u.revert(),u.getChildren(!0,!0,!1).forEach(function(c){return s.splice(s.indexOf(c),1)}));for(s.map(function(c){return{g:c._dur||c._delay||c._sat&&!c._sat.vars.immediateRender?c.globalTime(0):-1/0,t:c}}).sort(function(c,p){return p.g-c.g||-1/0}).forEach(function(c){return c.t.revert(t)}),l=n.data.length;l--;)u=n.data[l],u instanceof ht?u.data!=="nested"&&(u.scrollTrigger&&u.scrollTrigger.revert(),u.kill()):!(u instanceof Xe)&&u.revert&&u.revert(t);n._r.forEach(function(c){return c(t,n)}),n.isReverted=!0}():this.data.forEach(function(s){return s.kill&&s.kill()}),this.clear(),i)for(var o=Vr.length;o--;)Vr[o].id===this.id&&Vr.splice(o,1)},e.revert=function(t){this.kill(t||{})},a}(),Ru=function(){function a(r){this.contexts=[],this.scope=r,Oe&&Oe.data.push(this)}var e=a.prototype;return e.add=function(t,i,n){pr(t)||(t={matches:t});var o=new xa(0,n||this.scope),s=o.conditions={},l,u,c;Oe&&!o.selector&&(o.selector=Oe.selector),this.contexts.push(o),i=o.add("onMatch",i),o.queries=t;for(u in t)u==="all"?c=1:(l=hr.matchMedia(t[u]),l&&(Vr.indexOf(o)<0&&Vr.push(o),(s[u]=l.matches)&&(c=1),l.addListener?l.addListener(Co):l.addEventListener("change",Co)));return c&&i(o,function(p){return o.add(null,p)}),this},e.revert=function(t){this.kill(t||{})},e.kill=function(t){this.contexts.forEach(function(i){return i.kill(t,!0)})},a}(),Sn={registerPlugin:function(){for(var e=arguments.length,r=new Array(e),t=0;t1){var i=e.map(function(c){return wt.quickSetter(c,r,t)}),n=i.length;return function(c){for(var p=n;p--;)i[p](c)}}e=e[0]||{};var o=Ft[r],s=Rr(e),l=s.harness&&(s.harness.aliases||{})[r]||r,u=o?function(c){var p=new o;fi._pt=0,p.init(e,t?c+t:c,fi,0,[e]),p.render(1,p),fi._pt&&Vo(1,fi)}:s.set(e,l);return o?u:function(c){return u(e,l,t?c+t:c,s,1)}},quickTo:function(e,r,t){var i,n=wt.to(e,Vt((i={},i[r]="+=0.1",i.paused=!0,i.stagger=0,i),t||{})),o=function(l,u,c){return n.resetTo(r,l,u,c)};return o.tween=n,o},isTweening:function(e){return De.getTweensOf(e,!0).length>0},defaults:function(e){return e&&e.ease&&(e.ease=Ur(e.ease,hi.ease)),Fs(hi,e||{})},config:function(e){return Fs(Bt,e||{})},registerEffect:function(e){var r=e.name,t=e.effect,i=e.plugins,n=e.defaults,o=e.extendTimeline;(i||"").split(",").forEach(function(s){return s&&!Ft[s]&&!Ut[s]&&Ni(r+" effect requires "+s+" plugin.")}),fo[r]=function(s,l,u){return t(Jt(s),Vt(l||{},n),u)},o&&(ht.prototype[r]=function(s,l,u){return this.add(fo[r](s,pr(l)?l:(u=l)&&{},this),u)})},registerEase:function(e,r){me[e]=Ur(r)},parseEase:function(e,r){return arguments.length?Ur(e,r):me},getById:function(e){return De.getById(e)},exportRoot:function(e,r){e===void 0&&(e={});var t=new ht(e),i,n;for(t.smoothChildTiming=It(e.smoothChildTiming),De.remove(t),t._dp=0,t._time=t._tTime=De._time,i=De._first;i;)n=i._next,(r||!(!i._dur&&i instanceof Xe&&i.vars.onComplete===i._targets[0]))&&dr(t,i,i._start-i._delay),i=n;return dr(De,t,0),t},context:function(e,r){return e?new xa(e,r):Oe},matchMedia:function(e){return new Ru(e)},matchMediaRefresh:function(){return Vr.forEach(function(e){var r=e.conditions,t,i;for(i in r)r[i]&&(r[i]=!1,t=1);t&&e.revert()})||Co()},addEventListener:function(e,r){var t=vn[e]||(vn[e]=[]);~t.indexOf(r)||t.push(r)},removeEventListener:function(e,r){var t=vn[e],i=t&&t.indexOf(r);i>=0&&t.splice(i,1)},utils:{wrap:cu,wrapYoyo:fu,distribute:sa,random:la,snap:aa,normalize:uu,getUnit:pt,clamp:ou,splitColor:da,toArray:Jt,selector:Po,mapRange:ca,pipe:au,unitize:lu,interpolate:hu,shuffle:oa},install:Gs,effects:fo,ticker:Nt,updateRoot:ht.updateRoot,plugins:Ft,globalTimeline:De,core:{PropTween:Ot,globals:$s,Tween:Xe,Timeline:ht,Animation:Hi,getCache:Rr,_removeLinkedListItem:En,reverting:function(){return dt},context:function(e){return e&&Oe&&(Oe.data.push(e),e._ctx=Oe),Oe},suppressOverwrites:function(e){return Ao=e}}};At("to,from,fromTo,delayedCall,set,killTweensOf",function(a){return Sn[a]=Xe[a]});Nt.add(ht.updateRoot);fi=Sn.to({},{duration:0});var Lu=function(e,r){for(var t=e._pt;t&&t.p!==r&&t.op!==r&&t.fp!==r;)t=t._next;return t},Du=function(e,r){var t=e._targets,i,n,o;for(i in r)for(n=t.length;n--;)o=e._ptLookup[n][i],o&&(o=o.d)&&(o._pt&&(o=Lu(o,i)),o&&o.modifier&&o.modifier(r[i],e,t[n],i))},mo=function(e,r){return{name:e,headless:1,rawVars:1,init:function(i,n,o){o._onInit=function(s){var l,u;if(tt(n)&&(l={},At(n,function(c){return l[c]=1}),n=l),r){l={};for(u in n)l[u]=r(n[u]);n=l}Du(s,n)}}}},wt=Sn.registerPlugin({name:"attr",init:function(e,r,t,i,n){var o,s,l;this.tween=t;for(o in r)l=e.getAttribute(o)||"",s=this.add(e,"setAttribute",(l||0)+"",r[o],i,n,0,0,o),s.op=o,s.b=l,this._props.push(o)},render:function(e,r){for(var t=r._pt;t;)dt?t.set(t.t,t.p,t.b,t):t.r(e,t.d),t=t._next}},{name:"endArray",headless:1,init:function(e,r){for(var t=r.length;t--;)this.add(e,t,e[t]||0,r[t],0,0,0,0,0,1)}},mo("roundProps",Eo),mo("modifiers"),mo("snap",aa))||Sn;Xe.version=ht.version=wt.version="3.13.0";js=1;Oo()&&gi();var zu=me.Power0,qu=me.Power1,Fu=me.Power2,Nu=me.Power3,Iu=me.Power4,Bu=me.Linear,Hu=me.Quad,Yu=me.Cubic,Wu=me.Quart,Xu=me.Quint,Uu=me.Strong,Vu=me.Elastic,ju=me.Back,Gu=me.SteppedEase,$u=me.Bounce,Qu=me.Sine,Ku=me.Expo,Zu=me.Circ;var Sa,zr,yi,Jo,Jr,Ju,Ta,es,ec=function(){return typeof window<"u"},Sr={},Zr=180/Math.PI,bi=Math.PI/180,vi=Math.atan2,Pa=1e8,ts=/([A-Z])/g,tc=/(left|right|width|margin|padding|x)/i,rc=/[\s,\(]\S/,_r={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},$o=function(e,r){return r.set(r.t,r.p,Math.round((r.s+r.c*e)*1e4)/1e4+r.u,r)},ic=function(e,r){return r.set(r.t,r.p,e===1?r.e:Math.round((r.s+r.c*e)*1e4)/1e4+r.u,r)},nc=function(e,r){return r.set(r.t,r.p,e?Math.round((r.s+r.c*e)*1e4)/1e4+r.u:r.b,r)},oc=function(e,r){var t=r.s+r.c*e;r.set(r.t,r.p,~~(t+(t<0?-.5:.5))+r.u,r)},La=function(e,r){return r.set(r.t,r.p,e?r.e:r.b,r)},Da=function(e,r){return r.set(r.t,r.p,e!==1?r.b:r.e,r)},sc=function(e,r,t){return e.style[r]=t},ac=function(e,r,t){return e.style.setProperty(r,t)},lc=function(e,r,t){return e._gsap[r]=t},uc=function(e,r,t){return e._gsap.scaleX=e._gsap.scaleY=t},cc=function(e,r,t,i,n){var o=e._gsap;o.scaleX=o.scaleY=t,o.renderTransform(n,o)},fc=function(e,r,t,i,n){var o=e._gsap;o[r]=t,o.renderTransform(n,o)},ze="transform",Ht=ze+"Origin",hc=function a(e,r){var t=this,i=this.target,n=i.style,o=i._gsap;if(e in Sr&&n){if(this.tfm=this.tfm||{},e!=="transform")e=_r[e]||e,~e.indexOf(",")?e.split(",").forEach(function(s){return t.tfm[s]=xr(i,s)}):this.tfm[e]=o.x?o[e]:xr(i,e),e===Ht&&(this.tfm.zOrigin=o.zOrigin);else return _r.transform.split(",").forEach(function(s){return a.call(t,s,r)});if(this.props.indexOf(ze)>=0)return;o.svg&&(this.svgo=i.getAttribute("data-svg-origin"),this.props.push(Ht,r,"")),e=ze}(n||r)&&this.props.push(e,r,n[e])},za=function(e){e.translate&&(e.removeProperty("translate"),e.removeProperty("scale"),e.removeProperty("rotate"))},dc=function(){var e=this.props,r=this.target,t=r.style,i=r._gsap,n,o;for(n=0;n=0?Ea[o]:"")+e},Ko=function(){ec()&&window.document&&(Sa=window,zr=Sa.document,yi=zr.documentElement,Jr=Qo("div")||{style:{}},Ju=Qo("div"),ze=wi(ze),Ht=ze+"Origin",Jr.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",Fa=!!wi("perspective"),es=wt.core.reverting,Jo=1)},ka=function(e){var r=e.ownerSVGElement,t=Qo("svg",r&&r.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),i=e.cloneNode(!0),n;i.style.display="block",t.appendChild(i),yi.appendChild(t);try{n=i.getBBox()}catch{}return t.removeChild(i),yi.removeChild(t),n},Ca=function(e,r){for(var t=r.length;t--;)if(e.hasAttribute(r[t]))return e.getAttribute(r[t])},Na=function(e){var r,t;try{r=e.getBBox()}catch{r=ka(e),t=1}return r&&(r.width||r.height)||t||(r=ka(e)),r&&!r.width&&!r.x&&!r.y?{x:+Ca(e,["x","cx","x1"])||0,y:+Ca(e,["y","cy","y1"])||0,width:0,height:0}:r},Ia=function(e){return!!(e.getCTM&&(!e.parentNode||e.ownerSVGElement)&&Na(e))},ei=function(e,r){if(r){var t=e.style,i;r in Sr&&r!==Ht&&(r=ze),t.removeProperty?(i=r.substr(0,2),(i==="ms"||r.substr(0,6)==="webkit")&&(r="-"+r),t.removeProperty(i==="--"?r:r.replace(ts,"-$1").toLowerCase())):t.removeAttribute(r)}},qr=function(e,r,t,i,n,o){var s=new Ot(e._pt,r,t,0,1,o?Da:La);return e._pt=s,s.b=i,s.e=n,e._props.push(t),s},Aa={deg:1,rad:1,turn:1},pc={grid:1,flex:1},Fr=function a(e,r,t,i){var n=parseFloat(t)||0,o=(t+"").trim().substr((n+"").length)||"px",s=Jr.style,l=tc.test(r),u=e.tagName.toLowerCase()==="svg",c=(u?"client":"offset")+(l?"Width":"Height"),p=100,_=i==="px",d=i==="%",v,g,w,C;if(i===o||!n||Aa[i]||Aa[o])return n;if(o!=="px"&&!_&&(n=a(e,r,t,"px")),C=e.getCTM&&Ia(e),(d||o==="%")&&(Sr[r]||~r.indexOf("adius")))return v=C?e.getBBox()[l?"width":"height"]:e[c],Be(d?n/v*p:n/100*v);if(s[l?"width":"height"]=p+(_?o:i),g=i!=="rem"&&~r.indexOf("adius")||i==="em"&&e.appendChild&&!u?e:e.parentNode,C&&(g=(e.ownerSVGElement||{}).parentNode),(!g||g===zr||!g.appendChild)&&(g=zr.body),w=g._gsap,w&&d&&w.width&&l&&w.time===Nt.time&&!w.uncache)return Be(n/w.width*p);if(d&&(r==="height"||r==="width")){var P=e.style[r];e.style[r]=p+i,v=e[c],P?e.style[r]=P:ei(e,r)}else(d||o==="%")&&!pc[er(g,"display")]&&(s.position=er(e,"position")),g===e&&(s.position="static"),g.appendChild(Jr),v=Jr[c],g.removeChild(Jr),s.position="absolute";return l&&d&&(w=Rr(g),w.time=Nt.time,w.width=g[c]),Be(_?v*n/p:v&&n?p/v*n:0)},xr=function(e,r,t,i){var n;return Jo||Ko(),r in _r&&r!=="transform"&&(r=_r[r],~r.indexOf(",")&&(r=r.split(",")[0])),Sr[r]&&r!=="transform"?(n=Ui(e,i),n=r!=="transformOrigin"?n[r]:n.svg?n.origin:Mn(er(e,Ht))+" "+n.zOrigin+"px"):(n=e.style[r],(!n||n==="auto"||i||~(n+"").indexOf("calc("))&&(n=On[r]&&On[r](e,r,t)||er(e,r)||Fo(e,r)||(r==="opacity"?1:0))),t&&!~(n+"").trim().indexOf(" ")?Fr(e,r,n,t)+t:n},_c=function(e,r,t,i){if(!t||t==="none"){var n=wi(r,e,1),o=n&&er(e,n,1);o&&o!==t?(r=n,t=o):r==="borderColor"&&(t=er(e,"borderTopColor"))}var s=new Ot(this._pt,e.style,r,0,1,Uo),l=0,u=0,c,p,_,d,v,g,w,C,P,M,E,k;if(s.b=t,s.e=i,t+="",i+="",i.substring(0,6)==="var(--"&&(i=er(e,i.substring(4,i.indexOf(")")))),i==="auto"&&(g=e.style[r],e.style[r]=i,i=er(e,r)||i,g?e.style[r]=g:ei(e,r)),c=[t,i],Io(c),t=c[0],i=c[1],_=t.match(jr)||[],k=i.match(jr)||[],k.length){for(;p=jr.exec(i);)w=p[0],P=i.substring(l,p.index),v?v=(v+1)%5:(P.substr(-5)==="rgba("||P.substr(-5)==="hsla(")&&(v=1),w!==(g=_[u++]||"")&&(d=parseFloat(g)||0,E=g.substr((d+"").length),w.charAt(1)==="="&&(w=Gr(d,w)+E),C=parseFloat(w),M=w.substr((C+"").length),l=jr.lastIndex-M.length,M||(M=M||Bt.units[r]||E,l===i.length&&(i+=M,s.e+=M)),E!==M&&(d=Fr(e,r,g,M)||0),s._pt={_next:s._pt,p:P||u===1?P:",",s:d,c:C-d,m:v&&v<4||r==="zIndex"?Math.round:0});s.c=l-1;)s=n[u],Sr[s]&&(l=1,s=s==="transformOrigin"?Ht:ze),ei(t,s);l&&(ei(t,ze),o&&(o.svg&&t.removeAttribute("transform"),i.scale=i.rotate=i.translate="none",Ui(t,1),o.uncache=1,za(i)))}},On={clearProps:function(e,r,t,i,n){if(n.data!=="isFromStart"){var o=e._pt=new Ot(e._pt,r,t,0,0,mc);return o.u=i,o.pr=-10,o.tween=n,e._props.push(t),1}}},Xi=[1,0,0,1,0,0],Ba={},Ha=function(e){return e==="matrix(1, 0, 0, 1, 0, 0)"||e==="none"||!e},Ma=function(e){var r=er(e,ze);return Ha(r)?Xi:r.substr(7).match(Mo).map(Be)},rs=function(e,r){var t=e._gsap||Rr(e),i=e.style,n=Ma(e),o,s,l,u;return t.svg&&e.getAttribute("transform")?(l=e.transform.baseVal.consolidate().matrix,n=[l.a,l.b,l.c,l.d,l.e,l.f],n.join(",")==="1,0,0,1,0,0"?Xi:n):(n===Xi&&!e.offsetParent&&e!==yi&&!t.svg&&(l=i.display,i.display="block",o=e.parentNode,(!o||!e.offsetParent&&!e.getBoundingClientRect().width)&&(u=1,s=e.nextElementSibling,yi.appendChild(e)),n=Ma(e),l?i.display=l:ei(e,"display"),u&&(s?o.insertBefore(e,s):o?o.appendChild(e):yi.removeChild(e))),r&&n.length>6?[n[0],n[1],n[4],n[5],n[12],n[13]]:n)},Zo=function(e,r,t,i,n,o){var s=e._gsap,l=n||rs(e,!0),u=s.xOrigin||0,c=s.yOrigin||0,p=s.xOffset||0,_=s.yOffset||0,d=l[0],v=l[1],g=l[2],w=l[3],C=l[4],P=l[5],M=r.split(" "),E=parseFloat(M[0])||0,k=parseFloat(M[1])||0,R,A,F,L;t?l!==Xi&&(A=d*w-v*g)&&(F=E*(w/A)+k*(-g/A)+(g*P-w*C)/A,L=E*(-v/A)+k*(d/A)-(d*P-v*C)/A,E=F,k=L):(R=Na(e),E=R.x+(~M[0].indexOf("%")?E/100*R.width:E),k=R.y+(~(M[1]||M[0]).indexOf("%")?k/100*R.height:k)),i||i!==!1&&s.smooth?(C=E-u,P=k-c,s.xOffset=p+(C*d+P*g)-C,s.yOffset=_+(C*v+P*w)-P):s.xOffset=s.yOffset=0,s.xOrigin=E,s.yOrigin=k,s.smooth=!!i,s.origin=r,s.originIsAbsolute=!!t,e.style[Ht]="0px 0px",o&&(qr(o,s,"xOrigin",u,E),qr(o,s,"yOrigin",c,k),qr(o,s,"xOffset",p,s.xOffset),qr(o,s,"yOffset",_,s.yOffset)),e.setAttribute("data-svg-origin",E+" "+k)},Ui=function(e,r){var t=e._gsap||new Bo(e);if("x"in t&&!r&&!t.uncache)return t;var i=e.style,n=t.scaleX<0,o="px",s="deg",l=getComputedStyle(e),u=er(e,Ht)||"0",c,p,_,d,v,g,w,C,P,M,E,k,R,A,F,L,q,Q,I,oe,Z,ae,J,G,te,ve,x,Se,at,Yt,Ce,Ke;return c=p=_=g=w=C=P=M=E=0,d=v=1,t.svg=!!(e.getCTM&&Ia(e)),l.translate&&((l.translate!=="none"||l.scale!=="none"||l.rotate!=="none")&&(i[ze]=(l.translate!=="none"?"translate3d("+(l.translate+" 0 0").split(" ").slice(0,3).join(", ")+") ":"")+(l.rotate!=="none"?"rotate("+l.rotate+") ":"")+(l.scale!=="none"?"scale("+l.scale.split(" ").join(",")+") ":"")+(l[ze]!=="none"?l[ze]:"")),i.scale=i.rotate=i.translate="none"),A=rs(e,t.svg),t.svg&&(t.uncache?(te=e.getBBox(),u=t.xOrigin-te.x+"px "+(t.yOrigin-te.y)+"px",G=""):G=!r&&e.getAttribute("data-svg-origin"),Zo(e,G||u,!!G||t.originIsAbsolute,t.smooth!==!1,A)),k=t.xOrigin||0,R=t.yOrigin||0,A!==Xi&&(Q=A[0],I=A[1],oe=A[2],Z=A[3],c=ae=A[4],p=J=A[5],A.length===6?(d=Math.sqrt(Q*Q+I*I),v=Math.sqrt(Z*Z+oe*oe),g=Q||I?vi(I,Q)*Zr:0,P=oe||Z?vi(oe,Z)*Zr+g:0,P&&(v*=Math.abs(Math.cos(P*bi))),t.svg&&(c-=k-(k*Q+R*oe),p-=R-(k*I+R*Z))):(Ke=A[6],Yt=A[7],x=A[8],Se=A[9],at=A[10],Ce=A[11],c=A[12],p=A[13],_=A[14],F=vi(Ke,at),w=F*Zr,F&&(L=Math.cos(-F),q=Math.sin(-F),G=ae*L+x*q,te=J*L+Se*q,ve=Ke*L+at*q,x=ae*-q+x*L,Se=J*-q+Se*L,at=Ke*-q+at*L,Ce=Yt*-q+Ce*L,ae=G,J=te,Ke=ve),F=vi(-oe,at),C=F*Zr,F&&(L=Math.cos(-F),q=Math.sin(-F),G=Q*L-x*q,te=I*L-Se*q,ve=oe*L-at*q,Ce=Z*q+Ce*L,Q=G,I=te,oe=ve),F=vi(I,Q),g=F*Zr,F&&(L=Math.cos(F),q=Math.sin(F),G=Q*L+I*q,te=ae*L+J*q,I=I*L-Q*q,J=J*L-ae*q,Q=G,ae=te),w&&Math.abs(w)+Math.abs(g)>359.9&&(w=g=0,C=180-C),d=Be(Math.sqrt(Q*Q+I*I+oe*oe)),v=Be(Math.sqrt(J*J+Ke*Ke)),F=vi(ae,J),P=Math.abs(F)>2e-4?F*Zr:0,E=Ce?1/(Ce<0?-Ce:Ce):0),t.svg&&(G=e.getAttribute("transform"),t.forceCSS=e.setAttribute("transform","")||!Ha(er(e,ze)),G&&e.setAttribute("transform",G))),Math.abs(P)>90&&Math.abs(P)<270&&(n?(d*=-1,P+=g<=0?180:-180,g+=g<=0?180:-180):(v*=-1,P+=P<=0?180:-180)),r=r||t.uncache,t.x=c-((t.xPercent=c&&(!r&&t.xPercent||(Math.round(e.offsetWidth/2)===Math.round(-c)?-50:0)))?e.offsetWidth*t.xPercent/100:0)+o,t.y=p-((t.yPercent=p&&(!r&&t.yPercent||(Math.round(e.offsetHeight/2)===Math.round(-p)?-50:0)))?e.offsetHeight*t.yPercent/100:0)+o,t.z=_+o,t.scaleX=Be(d),t.scaleY=Be(v),t.rotation=Be(g)+s,t.rotationX=Be(w)+s,t.rotationY=Be(C)+s,t.skewX=P+s,t.skewY=M+s,t.transformPerspective=E+o,(t.zOrigin=parseFloat(u.split(" ")[2])||!r&&t.zOrigin||0)&&(i[Ht]=Mn(u)),t.xOffset=t.yOffset=0,t.force3D=Bt.force3D,t.renderTransform=t.svg?yc:Fa?Ya:vc,t.uncache=0,t},Mn=function(e){return(e=e.split(" "))[0]+" "+e[1]},Go=function(e,r,t){var i=pt(r);return Be(parseFloat(r)+parseFloat(Fr(e,"x",t+"px",i)))+i},vc=function(e,r){r.z="0px",r.rotationY=r.rotationX="0deg",r.force3D=0,Ya(e,r)},Qr="0deg",Wi="0px",Kr=") ",Ya=function(e,r){var t=r||this,i=t.xPercent,n=t.yPercent,o=t.x,s=t.y,l=t.z,u=t.rotation,c=t.rotationY,p=t.rotationX,_=t.skewX,d=t.skewY,v=t.scaleX,g=t.scaleY,w=t.transformPerspective,C=t.force3D,P=t.target,M=t.zOrigin,E="",k=C==="auto"&&e&&e!==1||C===!0;if(M&&(p!==Qr||c!==Qr)){var R=parseFloat(c)*bi,A=Math.sin(R),F=Math.cos(R),L;R=parseFloat(p)*bi,L=Math.cos(R),o=Go(P,o,A*L*-M),s=Go(P,s,-Math.sin(R)*-M),l=Go(P,l,F*L*-M+M)}w!==Wi&&(E+="perspective("+w+Kr),(i||n)&&(E+="translate("+i+"%, "+n+"%) "),(k||o!==Wi||s!==Wi||l!==Wi)&&(E+=l!==Wi||k?"translate3d("+o+", "+s+", "+l+") ":"translate("+o+", "+s+Kr),u!==Qr&&(E+="rotate("+u+Kr),c!==Qr&&(E+="rotateY("+c+Kr),p!==Qr&&(E+="rotateX("+p+Kr),(_!==Qr||d!==Qr)&&(E+="skew("+_+", "+d+Kr),(v!==1||g!==1)&&(E+="scale("+v+", "+g+Kr),P.style[ze]=E||"translate(0, 0)"},yc=function(e,r){var t=r||this,i=t.xPercent,n=t.yPercent,o=t.x,s=t.y,l=t.rotation,u=t.skewX,c=t.skewY,p=t.scaleX,_=t.scaleY,d=t.target,v=t.xOrigin,g=t.yOrigin,w=t.xOffset,C=t.yOffset,P=t.forceCSS,M=parseFloat(o),E=parseFloat(s),k,R,A,F,L;l=parseFloat(l),u=parseFloat(u),c=parseFloat(c),c&&(c=parseFloat(c),u+=c,l+=c),l||u?(l*=bi,u*=bi,k=Math.cos(l)*p,R=Math.sin(l)*p,A=Math.sin(l-u)*-_,F=Math.cos(l-u)*_,u&&(c*=bi,L=Math.tan(u-c),L=Math.sqrt(1+L*L),A*=L,F*=L,c&&(L=Math.tan(c),L=Math.sqrt(1+L*L),k*=L,R*=L)),k=Be(k),R=Be(R),A=Be(A),F=Be(F)):(k=p,F=_,R=A=0),(M&&!~(o+"").indexOf("px")||E&&!~(s+"").indexOf("px"))&&(M=Fr(d,"x",o,"px"),E=Fr(d,"y",s,"px")),(v||g||w||C)&&(M=Be(M+v-(v*k+g*A)+w),E=Be(E+g-(v*R+g*F)+C)),(i||n)&&(L=d.getBBox(),M=Be(M+i/100*L.width),E=Be(E+n/100*L.height)),L="matrix("+k+","+R+","+A+","+F+","+M+","+E+")",d.setAttribute("transform",L),P&&(d.style[ze]=L)},bc=function(e,r,t,i,n){var o=360,s=tt(n),l=parseFloat(n)*(s&&~n.indexOf("rad")?Zr:1),u=l-i,c=i+u+"deg",p,_;return s&&(p=n.split("_")[1],p==="short"&&(u%=o,u!==u%(o/2)&&(u+=u<0?o:-o)),p==="cw"&&u<0?u=(u+o*Pa)%o-~~(u/o)*o:p==="ccw"&&u>0&&(u=(u-o*Pa)%o-~~(u/o)*o)),e._pt=_=new Ot(e._pt,r,t,i,u,ic),_.e=c,_.u="deg",e._props.push(t),_},Ra=function(e,r){for(var t in r)e[t]=r[t];return e},wc=function(e,r,t){var i=Ra({},t._gsap),n="perspective,force3D,transformOrigin,svgOrigin",o=t.style,s,l,u,c,p,_,d,v;i.svg?(u=t.getAttribute("transform"),t.setAttribute("transform",""),o[ze]=r,s=Ui(t,1),ei(t,ze),t.setAttribute("transform",u)):(u=getComputedStyle(t)[ze],o[ze]=r,s=Ui(t,1),o[ze]=u);for(l in Sr)u=i[l],c=s[l],u!==c&&n.indexOf(l)<0&&(d=pt(u),v=pt(c),p=d!==v?Fr(t,l,u,v):parseFloat(u),_=parseFloat(c),e._pt=new Ot(e._pt,s,l,p,_-p,$o),e._pt.u=v||0,e._props.push(l));Ra(s,i)};At("padding,margin,Width,Radius",function(a,e){var r="Top",t="Right",i="Bottom",n="Left",o=(e<3?[r,t,i,n]:[r+n,r+t,i+t,i+n]).map(function(s){return e<2?a+s:"border"+s+a});On[e>1?"border"+a:a]=function(s,l,u,c,p){var _,d;if(arguments.length<4)return _=o.map(function(v){return xr(s,v,u)}),d=_.join(" "),d.split(_[0]).length===5?_[0]:d;_=(c+"").split(" "),d={},o.forEach(function(v,g){return d[v]=_[g]=_[g]||_[(g-1)/2|0]}),s.init(l,d,p)}});var is={name:"css",register:Ko,targetTest:function(e){return e.style&&e.nodeType},init:function(e,r,t,i,n){var o=this._props,s=e.style,l=t.vars.startAt,u,c,p,_,d,v,g,w,C,P,M,E,k,R,A,F;Jo||Ko(),this.styles=this.styles||qa(e),F=this.styles.props,this.tween=t;for(g in r)if(g!=="autoRound"&&(c=r[g],!(Ft[g]&&Yo(g,r,t,i,e,n)))){if(d=typeof c,v=On[g],d==="function"&&(c=c.call(t,i,e,n),d=typeof c),d==="string"&&~c.indexOf("random(")&&(c=mi(c)),v)v(this,e,g,c,t)&&(A=1);else if(g.substr(0,2)==="--")u=(getComputedStyle(e).getPropertyValue(g)+"").trim(),c+="",br.lastIndex=0,br.test(u)||(w=pt(u),C=pt(c)),C?w!==C&&(u=Fr(e,g,u,C)+C):w&&(c+=w),this.add(s,"setProperty",u,c,i,n,0,0,g),o.push(g),F.push(g,0,s[g]);else if(d!=="undefined"){if(l&&g in l?(u=typeof l[g]=="function"?l[g].call(t,i,e,n):l[g],tt(u)&&~u.indexOf("random(")&&(u=mi(u)),pt(u+"")||u==="auto"||(u+=Bt.units[g]||pt(xr(e,g))||""),(u+"").charAt(1)==="="&&(u=xr(e,g))):u=xr(e,g),_=parseFloat(u),P=d==="string"&&c.charAt(1)==="="&&c.substr(0,2),P&&(c=c.substr(2)),p=parseFloat(c),g in _r&&(g==="autoAlpha"&&(_===1&&xr(e,"visibility")==="hidden"&&p&&(_=0),F.push("visibility",0,s.visibility),qr(this,s,"visibility",_?"inherit":"hidden",p?"inherit":"hidden",!p)),g!=="scale"&&g!=="transform"&&(g=_r[g],~g.indexOf(",")&&(g=g.split(",")[0]))),M=g in Sr,M){if(this.styles.save(g),d==="string"&&c.substring(0,6)==="var(--"&&(c=er(e,c.substring(4,c.indexOf(")"))),p=parseFloat(c)),E||(k=e._gsap,k.renderTransform&&!r.parseTransform||Ui(e,r.parseTransform),R=r.smoothOrigin!==!1&&k.smooth,E=this._pt=new Ot(this._pt,s,ze,0,1,k.renderTransform,k,0,-1),E.dep=1),g==="scale")this._pt=new Ot(this._pt,k,"scaleY",k.scaleY,(P?Gr(k.scaleY,P+p):p)-k.scaleY||0,$o),this._pt.u=0,o.push("scaleY",g),g+="X";else if(g==="transformOrigin"){F.push(Ht,0,s[Ht]),c=gc(c),k.svg?Zo(e,c,0,R,0,this):(C=parseFloat(c.split(" ")[2])||0,C!==k.zOrigin&&qr(this,k,"zOrigin",k.zOrigin,C),qr(this,s,g,Mn(u),Mn(c)));continue}else if(g==="svgOrigin"){Zo(e,c,1,R,0,this);continue}else if(g in Ba){bc(this,k,g,_,P?Gr(_,P+c):c);continue}else if(g==="smoothOrigin"){qr(this,k,"smooth",k.smooth,c);continue}else if(g==="force3D"){k[g]=c;continue}else if(g==="transform"){wc(this,c,e);continue}}else g in s||(g=wi(g)||g);if(M||(p||p===0)&&(_||_===0)&&!rc.test(c)&&g in s)w=(u+"").substr((_+"").length),p||(p=0),C=pt(c)||(g in Bt.units?Bt.units[g]:w),w!==C&&(_=Fr(e,g,u,C)),this._pt=new Ot(this._pt,M?k:s,g,_,(P?Gr(_,P+p):p)-_,!M&&(C==="px"||g==="zIndex")&&r.autoRound!==!1?oc:$o),this._pt.u=C||0,w!==C&&C!=="%"&&(this._pt.b=u,this._pt.r=nc);else if(g in s)_c.call(this,e,g,u,P?P+c:c);else if(g in e)this.add(e,g,u||e[g],P?P+c:c,i,n);else if(g!=="parseTransform"){Pn(g,c);continue}M||(g in s?F.push(g,0,s[g]):typeof e[g]=="function"?F.push(g,2,e[g]()):F.push(g,1,u||e[g])),o.push(g)}}A&&jo(this)},render:function(e,r){if(r.tween._time||!es())for(var t=r._pt;t;)t.r(e,t.d),t=t._next;else r.styles.revert()},get:xr,aliases:_r,getSetter:function(e,r,t){var i=_r[r];return i&&i.indexOf(",")<0&&(r=i),r in Sr&&r!==Ht&&(e._gsap.x||xr(e,"x"))?t&&Ta===t?r==="scale"?uc:lc:(Ta=t||{})&&(r==="scale"?cc:fc):e.style&&!Tn(e.style[r])?sc:~r.indexOf("-")?ac:An(e,r)},core:{_removeProperty:ei,_getMatrix:rs}};wt.utils.checkPrefix=wi;wt.core.getStyleSaver=qa;(function(a,e,r,t){var i=At(a+","+e+","+r,function(n){Sr[n]=1});At(e,function(n){Bt.units[n]="deg",Ba[n]=1}),_r[i[13]]=a+","+e,At(t,function(n){var o=n.split(":");_r[o[1]]=i[o[0]]})})("x,y,z,scale,scaleX,scaleY,xPercent,yPercent","rotation,rotationX,rotationY,skewX,skewY","transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective","0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY");At("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",function(a){Bt.units[a]="px"});wt.registerPlugin(is);var xt=wt.registerPlugin(is)||wt,uf=xt.core.Tween;function Wa(a,e){for(var r=0;rl?(n=i,i=v,s=o,o=w):t?i+=v:i=n+(v-n)/(w-s)*(o-s)},p=function(){n=i=t?0:i,s=o=0},_=function(v){var g=s,w=n,C=Gi();return(v||v===0)&&v!==i&&c(v),o===s||C-s>u?0:(i+(t?w:-w))/((t?C:o)-g)*1e3};return{update:c,reset:p,getVelocity:_}},Vi=function(e,r){return r&&!e._gsapAllow&&e.preventDefault(),e.changedTouches?e.changedTouches[0]:e},Xa=function(e){var r=Math.max.apply(Math,e),t=Math.min.apply(Math,e);return Math.abs(r)>=Math.abs(t)?r:t},Qa=function(){ji=_t.core.globals().ScrollTrigger,ji&&ji.core&&Tc()},Ka=function(e){return _t=e||Ga(),!Dn&&_t&&typeof document<"u"&&document.body&&(jt=window,Nr=document,Ir=Nr.documentElement,Si=Nr.body,Va=[jt,Nr,Ir,Si],Sc=_t.utils.clamp,ja=_t.core.context||function(){},ti="onpointerenter"in Si?"pointer":"mouse",Ua=He.isTouch=jt.matchMedia&&jt.matchMedia("(hover: none), (pointer: coarse)").matches?1:"ontouchstart"in jt||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0?2:0,sr=He.eventTypes=("ontouchstart"in Ir?"touchstart,touchmove,touchcancel,touchend":"onpointerdown"in Ir?"pointerdown,pointermove,pointercancel,pointerup":"mousedown,mousemove,mouseup,mouseup").split(","),setTimeout(function(){return $a=0},500),Qa(),Dn=1),Dn};St.op=$e;ue.cache=0;var He=function(){function a(r){this.init(r)}var e=a.prototype;return e.init=function(t){Dn||Ka(_t)||console.warn("Please gsap.registerPlugin(Observer)"),ji||Qa();var i=t.tolerance,n=t.dragMinimum,o=t.type,s=t.target,l=t.lineHeight,u=t.debounce,c=t.preventDefault,p=t.onStop,_=t.onStopDelay,d=t.ignore,v=t.wheelSpeed,g=t.event,w=t.onDragStart,C=t.onDragEnd,P=t.onDrag,M=t.onPress,E=t.onRelease,k=t.onRight,R=t.onLeft,A=t.onUp,F=t.onDown,L=t.onChangeX,q=t.onChangeY,Q=t.onChange,I=t.onToggleX,oe=t.onToggleY,Z=t.onHover,ae=t.onHoverEnd,J=t.onMove,G=t.ignoreCheck,te=t.isNormalizer,ve=t.onGestureStart,x=t.onGestureEnd,Se=t.onWheel,at=t.onEnable,Yt=t.onDisable,Ce=t.onClick,Ke=t.scrollSpeed,it=t.capture,qe=t.allowClicks,lt=t.lockAxis,nt=t.onLockAxis;this.target=s=Lt(s)||Ir,this.vars=t,d&&(d=_t.utils.toArray(d)),i=i||1e-9,n=n||0,v=v||1,Ke=Ke||1,o=o||"wheel,touch,pointer",u=u!==!1,l||(l=parseFloat(jt.getComputedStyle(Si).lineHeight)||22);var lr,ut,gt,he,Me,Ue,kt,T=this,Ct=0,nr=0,y=t.passive||!c&&t.passive!==!1,m=Pr(s,St),f=Pr(s,$e),h=m(),b=f(),S=~o.indexOf("touch")&&!~o.indexOf("pointer")&&sr[0]==="pointerdown",z=$i(s),D=s.ownerDocument||Nr,O=[0,0,0],Y=[0,0,0],de=0,pe=function(){return de=Gi()},H=function(W,U){return(T.event=W)&&d&&Pc(W.target,d)||U&&S&&W.pointerType!=="touch"||G&&G(W,U)},we=function(){T._vx.reset(),T._vy.reset(),ut.pause(),p&&p(T)},re=function(){var W=T.deltaX=Xa(O),U=T.deltaY=Xa(Y),N=Math.abs(W)>=i,K=Math.abs(U)>=i;Q&&(N||K)&&Q(T,W,U,O,Y),N&&(k&&T.deltaX>0&&k(T),R&&T.deltaX<0&&R(T),L&&L(T),I&&T.deltaX<0!=Ct<0&&I(T),Ct=T.deltaX,O[0]=O[1]=O[2]=0),K&&(F&&T.deltaY>0&&F(T),A&&T.deltaY<0&&A(T),q&&q(T),oe&&T.deltaY<0!=nr<0&&oe(T),nr=T.deltaY,Y[0]=Y[1]=Y[2]=0),(he||gt)&&(J&&J(T),gt&&(w&>===1&&w(T),P&&P(T),gt=0),he=!1),Ue&&!(Ue=!1)&&nt&&nt(T),Me&&(Se(T),Me=!1),lr=0},le=function(W,U,N){O[N]+=W,Y[N]+=U,T._vx.update(W),T._vy.update(U),u?lr||(lr=requestAnimationFrame(re)):re()},ye=function(W,U){lt&&!kt&&(T.axis=kt=Math.abs(W)>Math.abs(U)?"x":"y",Ue=!0),kt!=="y"&&(O[2]+=W,T._vx.update(W,!0)),kt!=="x"&&(Y[2]+=U,T._vy.update(U,!0)),u?lr||(lr=requestAnimationFrame(re)):re()},_e=function(W){if(!H(W,1)){W=Vi(W,c);var U=W.clientX,N=W.clientY,K=U-T.x,V=N-T.y,ee=T.isDragging;T.x=U,T.y=N,(ee||(K||V)&&(Math.abs(T.startX-U)>=n||Math.abs(T.startY-N)>=n))&&(gt=ee?2:1,ee||(T.isDragging=!0),ye(K,V))}},Ve=T.onPress=function(B){H(B,1)||B&&B.button||(T.axis=kt=null,ut.pause(),T.isPressed=!0,B=Vi(B),Ct=nr=0,T.startX=T.x=B.clientX,T.startY=T.y=B.clientY,T._vx.reset(),T._vy.reset(),Rt(te?s:D,sr[1],_e,y,!0),T.deltaX=T.deltaY=0,M&&M(T))},j=T.onRelease=function(B){if(!H(B,1)){Mt(te?s:D,sr[1],_e,!0);var W=!isNaN(T.y-T.startY),U=T.isDragging,N=U&&(Math.abs(T.x-T.startX)>3||Math.abs(T.y-T.startY)>3),K=Vi(B);!N&&W&&(T._vx.reset(),T._vy.reset(),c&&qe&&_t.delayedCall(.08,function(){if(Gi()-de>300&&!B.defaultPrevented){if(B.target.click)B.target.click();else if(D.createEvent){var V=D.createEvent("MouseEvents");V.initMouseEvent("click",!0,!0,jt,1,K.screenX,K.screenY,K.clientX,K.clientY,!1,!1,!1,!1,0,null),B.target.dispatchEvent(V)}}})),T.isDragging=T.isGesturing=T.isPressed=!1,p&&U&&!te&&ut.restart(!0),gt&&re(),C&&U&&C(T),E&&E(T,N)}},Fe=function(W){return W.touches&&W.touches.length>1&&(T.isGesturing=!0)&&ve(W,T.isDragging)},Ye=function(){return(T.isGesturing=!1)||x(T)},Re=function(W){if(!H(W)){var U=m(),N=f();le((U-h)*Ke,(N-b)*Ke,1),h=U,b=N,p&&ut.restart(!0)}},xe=function(W){if(!H(W)){W=Vi(W,c),Se&&(Me=!0);var U=(W.deltaMode===1?l:W.deltaMode===2?jt.innerHeight:1)*v;le(W.deltaX*U,W.deltaY*U,0),p&&!te&&ut.restart(!0)}},je=function(W){if(!H(W)){var U=W.clientX,N=W.clientY,K=U-T.x,V=N-T.y;T.x=U,T.y=N,he=!0,p&&ut.restart(!0),(K||V)&&ye(K,V)}},Ze=function(W){T.event=W,Z(T)},se=function(W){T.event=W,ae(T)},Je=function(W){return H(W)||Vi(W,c)&&Ce(T)};ut=T._dc=_t.delayedCall(_||.25,we).pause(),T.deltaX=T.deltaY=0,T._vx=qn(0,50,!0),T._vy=qn(0,50,!0),T.scrollX=m,T.scrollY=f,T.isDragging=T.isGesturing=T.isPressed=!1,ja(this),T.enable=function(B){return T.isEnabled||(Rt(z?D:s,"scroll",os),o.indexOf("scroll")>=0&&Rt(z?D:s,"scroll",Re,y,it),o.indexOf("wheel")>=0&&Rt(s,"wheel",xe,y,it),(o.indexOf("touch")>=0&&Ua||o.indexOf("pointer")>=0)&&(Rt(s,sr[0],Ve,y,it),Rt(D,sr[2],j),Rt(D,sr[3],j),qe&&Rt(s,"click",pe,!0,!0),Ce&&Rt(s,"click",Je),ve&&Rt(D,"gesturestart",Fe),x&&Rt(D,"gestureend",Ye),Z&&Rt(s,ti+"enter",Ze),ae&&Rt(s,ti+"leave",se),J&&Rt(s,ti+"move",je)),T.isEnabled=!0,T.isDragging=T.isGesturing=T.isPressed=he=gt=!1,T._vx.reset(),T._vy.reset(),h=m(),b=f(),B&&B.type&&Ve(B),at&&at(T)),T},T.disable=function(){T.isEnabled&&(xi.filter(function(B){return B!==T&&$i(B.target)}).length||Mt(z?D:s,"scroll",os),T.isPressed&&(T._vx.reset(),T._vy.reset(),Mt(te?s:D,sr[1],_e,!0)),Mt(z?D:s,"scroll",Re,it),Mt(s,"wheel",xe,it),Mt(s,sr[0],Ve,it),Mt(D,sr[2],j),Mt(D,sr[3],j),Mt(s,"click",pe,!0),Mt(s,"click",Je),Mt(D,"gesturestart",Fe),Mt(D,"gestureend",Ye),Mt(s,ti+"enter",Ze),Mt(s,ti+"leave",se),Mt(s,ti+"move",je),T.isEnabled=T.isPressed=T.isDragging=!1,Yt&&Yt(T))},T.kill=T.revert=function(){T.disable();var B=xi.indexOf(T);B>=0&&xi.splice(B,1),Tr===T&&(Tr=0)},xi.push(T),te&&$i(s)&&(Tr=T),T.enable(g)},xc(a,[{key:"velocityX",get:function(){return this._vx.getVelocity()}},{key:"velocityY",get:function(){return this._vy.getVelocity()}}]),a}();He.version="3.13.0";He.create=function(a){return new He(a)};He.register=Ka;He.getAll=function(){return xi.slice()};He.getById=function(a){return xi.filter(function(e){return e.vars.id===a})[0]};Ga()&&_t.registerPlugin(He);var X,Ei,fe,ke,Qt,be,bs,Zn,un,rn,Ki,Fn,Tt,ro,ds,zt,Za,Ja,ki,_l,ss,gl,Dt,ps,ml,vl,Br,_s,ws,Ci,xs,Jn,gs,as,Nn=1,Pt=Date.now,ls=Pt(),ir=0,Zi=0,el=function(e,r,t){var i=$t(e)&&(e.substr(0,6)==="clamp("||e.indexOf("max")>-1);return t["_"+r+"Clamp"]=i,i?e.substr(6,e.length-7):e},tl=function(e,r){return r&&(!$t(e)||e.substr(0,6)!=="clamp(")?"clamp("+e+")":e},Ec=function a(){return Zi&&requestAnimationFrame(a)},rl=function(){return ro=1},il=function(){return ro=0},gr=function(e){return e},Ji=function(e){return Math.round(e*1e5)/1e5||0},yl=function(){return typeof window<"u"},bl=function(){return X||yl()&&(X=window.gsap)&&X.registerPlugin&&X},ai=function(e){return!!~bs.indexOf(e)},wl=function(e){return(e==="Height"?xs:fe["inner"+e])||Qt["client"+e]||be["client"+e]},xl=function(e){return Er(e,"getBoundingClientRect")||(ai(e)?function(){return Kn.width=fe.innerWidth,Kn.height=xs,Kn}:function(){return kr(e)})},kc=function(e,r,t){var i=t.d,n=t.d2,o=t.a;return(o=Er(e,"getBoundingClientRect"))?function(){return o()[i]}:function(){return(r?wl(n):e["client"+n])||0}},Cc=function(e,r){return!r||~ar.indexOf(e)?xl(e):function(){return Kn}},mr=function(e,r){var t=r.s,i=r.d2,n=r.d,o=r.a;return Math.max(0,(t="scroll"+i)&&(o=Er(e,t))?o()-xl(e)()[n]:ai(e)?(Qt[t]||be[t])-wl(i):e[t]-e["offset"+i])},In=function(e,r){for(var t=0;t0){for(i-=o,s=0;s=i)return t[s];return t[s-1]}else for(s=t.length,i+=o;s--;)if(t[s]<=i)return t[s];return t[0]}:function(i,n,o){o===void 0&&(o=.001);var s=r(i);return!n||Math.abs(s-i)t&&(i*=r/100),e=e.substr(0,t-1)),e=i+(e in to?to[e]*r:~e.indexOf("%")?parseFloat(e)*r/100:parseFloat(e)||0)}return e},Wn=function(e,r,t,i,n,o,s,l){var u=n.startColor,c=n.endColor,p=n.fontSize,_=n.indent,d=n.fontWeight,v=ke.createElement("div"),g=ai(t)||Er(t,"pinType")==="fixed",w=e.indexOf("scroller")!==-1,C=g?be:t,P=e.indexOf("start")!==-1,M=P?u:c,E="border-color:"+M+";font-size:"+p+";color:"+M+";font-weight:"+d+";pointer-events:none;white-space:nowrap;font-family:sans-serif,Arial;z-index:1000;padding:4px 8px;border-width:0;border-style:solid;";return E+="position:"+((w||l)&&g?"fixed;":"absolute;"),(w||l||!g)&&(E+=(i===$e?Ss:Ts)+":"+(o+parseFloat(_))+"px;"),s&&(E+="box-sizing:border-box;text-align:left;width:"+s.offsetWidth+"px;"),v._isStart=P,v.setAttribute("class","gsap-marker-"+e+(r?" marker-"+r:"")),v.style.cssText=E,v.innerText=r||r===0?e+"-"+r:e,C.children[0]?C.insertBefore(v,C.children[0]):C.appendChild(v),v._offset=v["offset"+i.op.d2],Gn(v,0,i,P),v},Gn=function(e,r,t,i){var n={display:"block"},o=t[i?"os2":"p2"],s=t[i?"p2":"os2"];e._isFlipped=i,n[t.a+"Percent"]=i?-100:0,n[t.a]=i?"1px":0,n["border"+o+Oi]=1,n["border"+s+Oi]=0,n[t.p]=r+"px",X.set(e,n)},ce=[],ms={},cn,sl=function(){return Pt()-ir>34&&(cn||(cn=requestAnimationFrame(Cr)))},Pi=function(){(!Dt||!Dt.isPressed||Dt.startX>be.clientWidth)&&(ue.cache++,Dt?cn||(cn=requestAnimationFrame(Cr)):Cr(),ir||ui("scrollStart"),ir=Pt())},cs=function(){vl=fe.innerWidth,ml=fe.innerHeight},tn=function(e){ue.cache++,(e===!0||!Tt&&!gl&&!ke.fullscreenElement&&!ke.webkitFullscreenElement&&(!ps||vl!==fe.innerWidth||Math.abs(fe.innerHeight-ml)>fe.innerHeight*.25))&&Zn.restart(!0)},li={},Rc=[],El=function a(){return ot(ne,"scrollEnd",a)||ii(!0)},ui=function(e){return li[e]&&li[e].map(function(r){return r()})||Rc},Gt=[],kl=function(e){for(var r=0;rn,s=i._startClamp&&i.start>=n;(o||s)&&i.setPositions(s?n-1:i.start,o?Math.max(s?n:i.start+1,n):i.end,!0)}),ll(!1),gs=0,t.forEach(function(i){return i&&i.render&&i.render(-1)}),ue.forEach(function(i){Et(i)&&(i.smooth&&requestAnimationFrame(function(){return i.target.style.scrollBehavior="smooth"}),i.rec&&i(i.rec))}),Cl(ws,1),Zn.pause(),si++,qt=2,Cr(2),ce.forEach(function(i){return Et(i.vars.onRefresh)&&i.vars.onRefresh(i)}),qt=ne.isRefreshing=!1,ui("refresh")},vs=0,$n=1,ln,Cr=function(e){if(e===2||!qt&&!Jn){ne.isUpdating=!0,ln&&ln.update(0);var r=ce.length,t=Pt(),i=t-ls>=50,n=r&&ce[0].scroll();if($n=vs>n?-1:1,qt||(vs=n),i&&(ir&&!ro&&t-ir>200&&(ir=0,ui("scrollEnd")),Ki=ls,ls=t),$n<0){for(zt=r;zt-- >0;)ce[zt]&&ce[zt].update(0,i);$n=1}else for(zt=0;zt20),t-=t-R}if(v&&(l[v]=e||-.001,e<0&&(e=0)),o){var F=e+t,L=o._isStart;w="scroll"+i.d2,Gn(o,F,i,L&&F>20||!L&&(p?Math.max(be[w],Qt[w]):o.parentNode[w])<=F+1),p&&(u=kr(s),p&&(o.style[i.op.p]=u[i.op.p]-i.op.m-o._offset+rt))}return d&&P&&(w=kr(P),d.seek(_),C=kr(P),d._caScrollDist=w[i.p]-C[i.p],e=e/d._caScrollDist*_),d&&d.seek(g),d?e:Math.round(e)},Fc=/(webkit|moz|length|cssText|inset)/i,cl=function(e,r,t,i){if(e.parentNode!==r){var n=e.style,o,s;if(r===be){e._stOrig=n.cssText,s=rr(e);for(o in s)!+o&&!Fc.test(o)&&s[o]&&typeof n[o]=="string"&&o!=="0"&&(n[o]=s[o]);n.top=t,n.left=i}else n.cssText=e._stOrig;X.core.getCache(e).uncache=1,r.appendChild(e)}},Ol=function(e,r,t){var i=r,n=i;return function(o){var s=Math.round(e());return s!==i&&s!==n&&Math.abs(s-i)>3&&Math.abs(s-n)>3&&(o=s,t&&t()),n=i,i=Math.round(o),i}},Un=function(e,r,t){var i={};i[r.p]="+="+t,X.set(e,i)},fl=function(e,r){var t=Pr(e,r),i="_scroll"+r.p2,n=function o(s,l,u,c,p){var _=o.tween,d=l.onComplete,v={};u=u||t();var g=Ol(t,u,function(){_.kill(),o.tween=0});return p=c&&p||0,c=c||s-u,_&&_.kill(),l[i]=s,l.inherit=!1,l.modifiers=v,v[i]=function(){return g(u+c*_.ratio+p*_.ratio*_.ratio)},l.onUpdate=function(){ue.cache++,o.tween&&Cr()},l.onComplete=function(){o.tween=0,d&&d.call(_)},_=o.tween=X.to(e,l),_};return e[i]=t,t.wheelHandler=function(){return n.tween&&n.tween.kill()&&(n.tween=0)},st(e,"wheel",t.wheelHandler),ne.isTouch&&st(e,"touchmove",t.wheelHandler),n},ne=function(){function a(r,t){Ei||a.register(X)||console.warn("Please gsap.registerPlugin(ScrollTrigger)"),_s(this),this.init(r,t)}var e=a.prototype;return e.init=function(t,i){if(this.progress=this.start=0,this.vars&&this.kill(!0,!0),!Zi){this.update=this.refresh=this.kill=gr;return}t=nl($t(t)||en(t)||t.nodeType?{trigger:t}:t,Yn);var n=t,o=n.onUpdate,s=n.toggleClass,l=n.id,u=n.onToggle,c=n.onRefresh,p=n.scrub,_=n.trigger,d=n.pin,v=n.pinSpacing,g=n.invalidateOnRefresh,w=n.anticipatePin,C=n.onScrubComplete,P=n.onSnapComplete,M=n.once,E=n.snap,k=n.pinReparent,R=n.pinSpacer,A=n.containerAnimation,F=n.fastScrollEnd,L=n.preventOverlaps,q=t.horizontal||t.containerAnimation&&t.horizontal!==!1?St:$e,Q=!p&&p!==0,I=Lt(t.scroller||fe),oe=X.core.getCache(I),Z=ai(I),ae=("pinType"in t?t.pinType:Er(I,"pinType")||Z&&"fixed")==="fixed",J=[t.onEnter,t.onLeave,t.onEnterBack,t.onLeaveBack],G=Q&&t.toggleActions.split(" "),te="markers"in t?t.markers:Yn.markers,ve=Z?0:parseFloat(rr(I)["border"+q.p2+Oi])||0,x=this,Se=t.onRefreshInit&&function(){return t.onRefreshInit(x)},at=kc(I,Z,q),Yt=Cc(I,Z),Ce=0,Ke=0,it=0,qe=Pr(I,q),lt,nt,lr,ut,gt,he,Me,Ue,kt,T,Ct,nr,y,m,f,h,b,S,z,D,O,Y,de,pe,H,we,re,le,ye,_e,Ve,j,Fe,Ye,Re,xe,je,Ze,se;if(x._startClamp=x._endClamp=!1,x._dir=q,w*=45,x.scroller=I,x.scroll=A?A.time.bind(A):qe,ut=qe(),x.vars=t,i=i||t.animation,"refreshPriority"in t&&(_l=1,t.refreshPriority===-9999&&(ln=x)),oe.tweenScroll=oe.tweenScroll||{top:fl(I,$e),left:fl(I,St)},x.tweenTo=lt=oe.tweenScroll[q.p],x.scrubDuration=function(N){Fe=en(N)&&N,Fe?j?j.duration(N):j=X.to(i,{ease:"expo",totalProgress:"+=0",inherit:!1,duration:Fe,paused:!0,onComplete:function(){return C&&C(x)}}):(j&&j.progress(1).kill(),j=0)},i&&(i.vars.lazy=!1,i._initted&&!x.isReverted||i.vars.immediateRender!==!1&&t.immediateRender!==!1&&i.duration()&&i.render(0,!0,!0),x.animation=i.pause(),i.scrollTrigger=x,x.scrubDuration(p),_e=0,l||(l=i.vars.id)),E&&((!ri(E)||E.push)&&(E={snapTo:E}),"scrollBehavior"in be.style&&X.set(Z?[be,Qt]:I,{scrollBehavior:"auto"}),ue.forEach(function(N){return Et(N)&&N.target===(Z?ke.scrollingElement||Qt:I)&&(N.smooth=!1)}),lr=Et(E.snapTo)?E.snapTo:E.snapTo==="labels"?Oc(i):E.snapTo==="labelsDirectional"?Mc(i):E.directional!==!1?function(N,K){return Es(E.snapTo)(N,Pt()-Ke<500?0:K.direction)}:X.utils.snap(E.snapTo),Ye=E.duration||{min:.1,max:2},Ye=ri(Ye)?rn(Ye.min,Ye.max):rn(Ye,Ye),Re=X.delayedCall(E.delay||Fe/2||.1,function(){var N=qe(),K=Pt()-Ke<500,V=lt.tween;if((K||Math.abs(x.getVelocity())<10)&&!V&&!ro&&Ce!==N){var ee=(N-he)/m,ge=i&&!Q?i.totalProgress():ee,ie=K?0:(ge-Ve)/(Pt()-Ki)*1e3||0,We=X.utils.clamp(-ee,1-ee,Ti(ie/2)*ie/.185),mt=ee+(E.inertia===!1?0:We),Ne,Ae,Te=E,or=Te.onStart,Le=Te.onInterrupt,Wt=Te.onComplete;if(Ne=lr(mt,x),en(Ne)||(Ne=mt),Ae=Math.max(0,Math.round(he+Ne*m)),N<=Me&&N>=he&&Ae!==N){if(V&&!V._initted&&V.data<=Ti(Ae-N))return;E.inertia===!1&&(We=Ne-ee),lt(Ae,{duration:Ye(Ti(Math.max(Ti(mt-ge),Ti(Ne-ge))*.185/ie/.05||0)),ease:E.ease||"power3",data:Ti(Ae-N),onInterrupt:function(){return Re.restart(!0)&&Le&&Le(x)},onComplete:function(){x.update(),Ce=qe(),i&&!Q&&(j?j.resetTo("totalProgress",Ne,i._tTime/i._tDur):i.progress(Ne)),_e=Ve=i&&!Q?i.totalProgress():x.progress,P&&P(x),Wt&&Wt(x)}},N,We*m,Ae-N-We*m),or&&or(x,lt.tween)}}else x.isActive&&Ce!==N&&Re.restart(!0)}).pause()),l&&(ms[l]=x),_=x.trigger=Lt(_||d!==!0&&d),se=_&&_._gsap&&_._gsap.stRevert,se&&(se=se(x)),d=d===!0?_:Lt(d),$t(s)&&(s={targets:_,className:s}),d&&(v===!1||v===tr||(v=!v&&d.parentNode&&d.parentNode.style&&rr(d.parentNode).display==="flex"?!1:Qe),x.pin=d,nt=X.core.getCache(d),nt.spacer?f=nt.pinState:(R&&(R=Lt(R),R&&!R.nodeType&&(R=R.current||R.nativeElement),nt.spacerIsNative=!!R,R&&(nt.spacerState=Xn(R))),nt.spacer=S=R||ke.createElement("div"),S.classList.add("pin-spacer"),l&&S.classList.add("pin-spacer-"+l),nt.pinState=f=Xn(d)),t.force3D!==!1&&X.set(d,{force3D:!0}),x.spacer=S=nt.spacer,ye=rr(d),pe=ye[v+q.os2],D=X.getProperty(d),O=X.quickSetter(d,q.a,rt),fs(d,S,ye),b=Xn(d)),te){nr=ri(te)?nl(te,ol):ol,T=Wn("scroller-start",l,I,q,nr,0),Ct=Wn("scroller-end",l,I,q,nr,0,T),z=T["offset"+q.op.d2];var Je=Lt(Er(I,"content")||I);Ue=this.markerStart=Wn("start",l,Je,q,nr,z,0,A),kt=this.markerEnd=Wn("end",l,Je,q,nr,z,0,A),A&&(Ze=X.quickSetter([Ue,kt],q.a,rt)),!ae&&!(ar.length&&Er(I,"fixedMarkers")===!0)&&(Ac(Z?be:I),X.set([T,Ct],{force3D:!0}),we=X.quickSetter(T,q.a,rt),le=X.quickSetter(Ct,q.a,rt))}if(A){var B=A.vars.onUpdate,W=A.vars.onUpdateParams;A.eventCallback("onUpdate",function(){x.update(0,0,1),B&&B.apply(A,W||[])})}if(x.previous=function(){return ce[ce.indexOf(x)-1]},x.next=function(){return ce[ce.indexOf(x)+1]},x.revert=function(N,K){if(!K)return x.kill(!0);var V=N!==!1||!x.enabled,ee=Tt;V!==x.isReverted&&(V&&(xe=Math.max(qe(),x.scroll.rec||0),it=x.progress,je=i&&i.progress()),Ue&&[Ue,kt,T,Ct].forEach(function(ge){return ge.style.display=V?"none":"block"}),V&&(Tt=x,x.update(V)),d&&(!k||!x.isActive)&&(V?Dc(d,S,f):fs(d,S,rr(d),H)),V||x.update(V),Tt=ee,x.isReverted=V)},x.refresh=function(N,K,V,ee){if(!((Tt||!x.enabled)&&!K)){if(d&&N&&ir){st(a,"scrollEnd",El);return}!qt&&Se&&Se(x),Tt=x,lt.tween&&!V&&(lt.tween.kill(),lt.tween=0),j&&j.pause(),g&&i&&(i.revert({kill:!1}).invalidate(),i.getChildren&&i.getChildren(!0,!0,!1).forEach(function(Ar){return Ar.vars.immediateRender&&Ar.render(0,!0,!0)})),x.isReverted||x.revert(!0,!0),x._subPinOffset=!1;var ge=at(),ie=Yt(),We=A?A.duration():mr(I,q),mt=m<=.01||!m,Ne=0,Ae=ee||0,Te=ri(V)?V.end:t.end,or=t.endTrigger||_,Le=ri(V)?V.start:t.start||(t.start===0||!_?0:d?"0 0":"0 100%"),Wt=x.pinnedContainer=t.pinnedContainer&&Lt(t.pinnedContainer,x),ur=_&&Math.max(0,ce.indexOf(x))||0,ct=ur,ft,vt,Wr,fn,yt,et,cr,io,Os,Mi,fr,Ri,hn;for(te&&ri(V)&&(Ri=X.getProperty(T,q.p),hn=X.getProperty(Ct,q.p));ct-- >0;)et=ce[ct],et.end||et.refresh(0,1)||(Tt=x),cr=et.pin,cr&&(cr===_||cr===d||cr===Wt)&&!et.isReverted&&(Mi||(Mi=[]),Mi.unshift(et),et.revert(!0,!0)),et!==ce[ct]&&(ur--,ct--);for(Et(Le)&&(Le=Le(x)),Le=el(Le,"start",x),he=ul(Le,_,ge,q,qe(),Ue,T,x,ie,ve,ae,We,A,x._startClamp&&"_startClamp")||(d?-.001:0),Et(Te)&&(Te=Te(x)),$t(Te)&&!Te.indexOf("+=")&&(~Te.indexOf(" ")?Te=($t(Le)?Le.split(" ")[0]:"")+Te:(Ne=jn(Te.substr(2),ge),Te=$t(Le)?Le:(A?X.utils.mapRange(0,A.duration(),A.scrollTrigger.start,A.scrollTrigger.end,he):he)+Ne,or=_)),Te=el(Te,"end",x),Me=Math.max(he,ul(Te||(or?"100% 0":We),or,ge,q,qe()+Ne,kt,Ct,x,ie,ve,ae,We,A,x._endClamp&&"_endClamp"))||-.001,Ne=0,ct=ur;ct--;)et=ce[ct],cr=et.pin,cr&&et.start-et._pinPush<=he&&!A&&et.end>0&&(ft=et.end-(x._startClamp?Math.max(0,et.start):et.start),(cr===_&&et.start-et._pinPush=mr(I,q)))ft=rr(d),fn=q===$e,Wr=qe(),Y=parseFloat(D(q.a))+Ae,!We&&Me>1&&(fr=(Z?ke.scrollingElement||Qt:I).style,fr={style:fr,value:fr["overflow"+q.a.toUpperCase()]},Z&&rr(be)["overflow"+q.a.toUpperCase()]!=="scroll"&&(fr.style["overflow"+q.a.toUpperCase()]="scroll")),fs(d,S,ft),b=Xn(d),vt=kr(d,!0),io=ae&&Pr(I,fn?St:$e)(),v?(H=[v+q.os2,m+Ae+rt],H.t=S,ct=v===Qe?eo(d,q)+m+Ae:0,ct&&(H.push(q.d,ct+rt),S.style.flexBasis!=="auto"&&(S.style.flexBasis=ct+rt)),Ai(H),Wt&&ce.forEach(function(Ar){Ar.pin===Wt&&Ar.vars.pinSpacing!==!1&&(Ar._subPinOffset=!0)}),ae&&qe(xe)):(ct=eo(d,q),ct&&S.style.flexBasis!=="auto"&&(S.style.flexBasis=ct+rt)),ae&&(yt={top:vt.top+(fn?Wr-he:io)+rt,left:vt.left+(fn?io:Wr-he)+rt,boxSizing:"border-box",position:"fixed"},yt[ni]=yt["max"+Oi]=Math.ceil(vt.width)+rt,yt[oi]=yt["max"+Ps]=Math.ceil(vt.height)+rt,yt[tr]=yt[tr+sn]=yt[tr+nn]=yt[tr+an]=yt[tr+on]="0",yt[Qe]=ft[Qe],yt[Qe+sn]=ft[Qe+sn],yt[Qe+nn]=ft[Qe+nn],yt[Qe+an]=ft[Qe+an],yt[Qe+on]=ft[Qe+on],h=qc(f,yt,k),qt&&qe(0)),i?(Os=i._initted,ss(1),i.render(i.duration(),!0,!0),de=D(q.a)-Y+m+Ae,re=Math.abs(m-de)>1,ae&&re&&h.splice(h.length-2,2),i.render(0,!0,!0),Os||i.invalidate(!0),i.parent||i.totalTime(i.totalTime()),ss(0)):de=m,fr&&(fr.value?fr.style["overflow"+q.a.toUpperCase()]=fr.value:fr.style.removeProperty("overflow-"+q.a));else if(_&&qe()&&!A)for(vt=_.parentNode;vt&&vt!==be;)vt._pinOffset&&(he-=vt._pinOffset,Me-=vt._pinOffset),vt=vt.parentNode;Mi&&Mi.forEach(function(Ar){return Ar.revert(!1,!0)}),x.start=he,x.end=Me,ut=gt=qt?xe:qe(),!A&&!qt&&(ut0?ce.slice(0,K).reverse():ce.slice(K+1);return($t(N)?V.filter(function(ee){return ee.vars.preventOverlaps===N}):V).filter(function(ee){return x.direction>0?ee.end<=he:ee.start>=Me})},x.update=function(N,K,V){if(!(A&&!V&&!N)){var ee=qt===!0?xe:x.scroll(),ge=N?0:(ee-he)/m,ie=ge<0?0:ge>1?1:ge||0,We=x.progress,mt,Ne,Ae,Te,or,Le,Wt,ur;if(K&&(gt=ut,ut=A?qe():ee,E&&(Ve=_e,_e=i&&!Q?i.totalProgress():ie)),w&&d&&!Tt&&!Nn&&ir&&(!ie&&heee+(ee-gt)/(Pt()-Ki)*w&&(ie=.9999)),ie!==We&&x.enabled){if(mt=x.isActive=!!ie&&ie<1,Ne=!!We&&We<1,Le=mt!==Ne,or=Le||!!ie!=!!We,x.direction=ie>We?1:-1,x.progress=ie,or&&!Tt&&(Ae=ie&&!We?0:ie===1?1:We===1?2:3,Q&&(Te=!Le&&G[Ae+1]!=="none"&&G[Ae+1]||G[Ae],ur=i&&(Te==="complete"||Te==="reset"||Te in i))),L&&(Le||ur)&&(ur||p||!i)&&(Et(L)?L(x):x.getTrailing(L).forEach(function(Wr){return Wr.endAnimation()})),Q||(j&&!Tt&&!Nn?(j._dp._time-j._start!==j._time&&j.render(j._dp._time-j._start),j.resetTo?j.resetTo("totalProgress",ie,i._tTime/i._tDur):(j.vars.totalProgress=ie,j.invalidate().restart())):i&&i.totalProgress(ie,!!(Tt&&(Ke||N)))),d){if(N&&v&&(S.style[v+q.os2]=pe),!ae)O(Ji(Y+de*ie));else if(or){if(Wt=!N&&ie>We&&Me+1>ee&&ee+1>=mr(I,q),k)if(!N&&(mt||Wt)){var ct=kr(d,!0),ft=ee-he;cl(d,be,ct.top+(q===$e?ft:0)+rt,ct.left+(q===$e?0:ft)+rt)}else cl(d,S);Ai(mt||Wt?h:b),re&&ie<1&&mt||O(Y+(ie===1&&!Wt?de:0))}}E&&!lt.tween&&!Tt&&!Nn&&Re.restart(!0),s&&(Le||M&&ie&&(ie<1||!as))&&un(s.targets).forEach(function(Wr){return Wr.classList[mt||M?"add":"remove"](s.className)}),o&&!Q&&!N&&o(x),or&&!Tt?(Q&&(ur&&(Te==="complete"?i.pause().totalProgress(1):Te==="reset"?i.restart(!0).pause():Te==="restart"?i.restart(!0):i[Te]()),o&&o(x)),(Le||!as)&&(u&&Le&&us(x,u),J[Ae]&&us(x,J[Ae]),M&&(ie===1?x.kill(!1,1):J[Ae]=0),Le||(Ae=ie===1?1:3,J[Ae]&&us(x,J[Ae]))),F&&!mt&&Math.abs(x.getVelocity())>(en(F)?F:2500)&&(Qi(x.callbackAnimation),j?j.progress(1):Qi(i,Te==="reverse"?1:!ie,1))):Q&&o&&!Tt&&o(x)}if(le){var vt=A?ee/A.duration()*(A._caScrollDist||0):ee;we(vt+(T._isFlipped?1:0)),le(vt)}Ze&&Ze(-ee/A.duration()*(A._caScrollDist||0))}},x.enable=function(N,K){x.enabled||(x.enabled=!0,st(I,"resize",tn),Z||st(I,"scroll",Pi),Se&&st(a,"refreshInit",Se),N!==!1&&(x.progress=it=0,ut=gt=Ce=qe()),K!==!1&&x.refresh())},x.getTween=function(N){return N&<?lt.tween:j},x.setPositions=function(N,K,V,ee){if(A){var ge=A.scrollTrigger,ie=A.duration(),We=ge.end-ge.start;N=ge.start+We*N/ie,K=ge.start+We*K/ie}x.refresh(!1,!1,{start:tl(N,V&&!!x._startClamp),end:tl(K,V&&!!x._endClamp)},ee),x.update()},x.adjustPinSpacing=function(N){if(H&&N){var K=H.indexOf(q.d)+1;H[K]=parseFloat(H[K])+N+rt,H[1]=parseFloat(H[1])+N+rt,Ai(H)}},x.disable=function(N,K){if(x.enabled&&(N!==!1&&x.revert(!0,!0),x.enabled=x.isActive=!1,K||j&&j.pause(),xe=0,nt&&(nt.uncache=1),Se&&ot(a,"refreshInit",Se),Re&&(Re.pause(),lt.tween&<.tween.kill()&&(lt.tween=0)),!Z)){for(var V=ce.length;V--;)if(ce[V].scroller===I&&ce[V]!==x)return;ot(I,"resize",tn),Z||ot(I,"scroll",Pi)}},x.kill=function(N,K){x.disable(N,K),j&&!K&&j.kill(),l&&delete ms[l];var V=ce.indexOf(x);V>=0&&ce.splice(V,1),V===zt&&$n>0&&zt--,V=0,ce.forEach(function(ee){return ee.scroller===x.scroller&&(V=1)}),V||qt||(x.scroll.rec=0),i&&(i.scrollTrigger=null,N&&i.revert({kill:!1}),K||i.kill()),Ue&&[Ue,kt,T,Ct].forEach(function(ee){return ee.parentNode&&ee.parentNode.removeChild(ee)}),ln===x&&(ln=0),d&&(nt&&(nt.uncache=1),V=0,ce.forEach(function(ee){return ee.pin===d&&V++}),V||(nt.spacer=0)),t.onKill&&t.onKill(x)},ce.push(x),x.enable(!1,!1),se&&se(x),i&&i.add&&!m){var U=x.update;x.update=function(){x.update=U,ue.cache++,he||Me||x.refresh()},X.delayedCall(.01,x.update),m=.01,he=Me=0}else x.refresh();d&&Lc()},a.register=function(t){return Ei||(X=t||bl(),yl()&&window.document&&a.enable(),Ei=Zi),Ei},a.defaults=function(t){if(t)for(var i in t)Yn[i]=t[i];return Yn},a.disable=function(t,i){Zi=0,ce.forEach(function(o){return o[i?"kill":"disable"](t)}),ot(fe,"wheel",Pi),ot(ke,"scroll",Pi),clearInterval(Fn),ot(ke,"touchcancel",gr),ot(be,"touchstart",gr),Bn(ot,ke,"pointerdown,touchstart,mousedown",rl),Bn(ot,ke,"pointerup,touchend,mouseup",il),Zn.kill(),In(ot);for(var n=0;n0&&o.left+s0&&o.top+s=0&&Gt.splice(r,5),Gt.push(e,e.style.cssText,e.getBBox&&e.getAttribute("transform"),X.core.getCache(e),_s())}}):Gt};ne.revert=function(a,e){return ks(!a,e)};ne.create=function(a,e){return new ne(a,e)};ne.refresh=function(a){return a?tn(!0):(Ei||ne.register())&&ii(!0)};ne.update=function(a){return++ue.cache&&Cr(a===!0?2:0)};ne.clearScrollMemory=Cl;ne.maxScroll=function(a,e){return mr(a,e?St:$e)};ne.getScrollFunc=function(a,e){return Pr(Lt(a),e?St:$e)};ne.getById=function(a){return ms[a]};ne.getAll=function(){return ce.filter(function(a){return a.vars.id!=="ScrollSmoother"})};ne.isScrolling=function(){return!!ir};ne.snapDirectional=Es;ne.addEventListener=function(a,e){var r=li[a]||(li[a]=[]);~r.indexOf(e)||r.push(e)};ne.removeEventListener=function(a,e){var r=li[a],t=r&&r.indexOf(e);t>=0&&r.splice(t,1)};ne.batch=function(a,e){var r=[],t={},i=e.interval||.016,n=e.batchMax||1e9,o=function(u,c){var p=[],_=[],d=X.delayedCall(i,function(){c(p,_),p=[],_=[]}).pause();return function(v){p.length||d.restart(!0),p.push(v.trigger),_.push(v),n<=p.length&&d.progress(1)}},s;for(s in e)t[s]=s.substr(0,2)==="on"&&Et(e[s])&&s!=="onRefreshInit"?o(s,e[s]):e[s];return Et(n)&&(n=n(),st(ne,"refresh",function(){return n=e.batchMax()})),un(a).forEach(function(l){var u={};for(s in t)u[s]=t[s];u.trigger=l,r.push(ne.create(u))}),r};var hl=function(e,r,t,i){return r>i?e(i):r<0&&e(0),t>i?(i-r)/(t-r):t<0?r/(r-t):1},hs=function a(e,r){r===!0?e.style.removeProperty("touch-action"):e.style.touchAction=r===!0?"auto":r?"pan-"+r+(He.isTouch?" pinch-zoom":""):"none",e===Qt&&a(be,r)},Vn={auto:1,scroll:1},Nc=function(e){var r=e.event,t=e.target,i=e.axis,n=(r.changedTouches?r.changedTouches[0]:r).target,o=n._gsap||X.core.getCache(n),s=Pt(),l;if(!o._isScrollT||s-o._isScrollT>2e3){for(;n&&n!==be&&(n.scrollHeight<=n.clientHeight&&n.scrollWidth<=n.clientWidth||!(Vn[(l=rr(n)).overflowY]||Vn[l.overflowX]));)n=n.parentNode;o._isScroll=n&&n!==t&&!ai(n)&&(Vn[(l=rr(n)).overflowY]||Vn[l.overflowX]),o._isScrollT=s}(o._isScroll||i==="x")&&(r.stopPropagation(),r._gsapAllow=!0)},Ml=function(e,r,t,i){return He.create({target:e,capture:!0,debounce:!1,lockAxis:!0,type:r,onWheel:i=i&&Nc,onPress:i,onDrag:i,onScroll:i,onEnable:function(){return t&&st(ke,He.eventTypes[0],pl,!1,!0)},onDisable:function(){return ot(ke,He.eventTypes[0],pl,!0)}})},Ic=/(input|label|select|textarea)/i,dl,pl=function(e){var r=Ic.test(e.target.tagName);(r||dl)&&(e._gsapAllow=!0,dl=r)},Bc=function(e){ri(e)||(e={}),e.preventDefault=e.isNormalizer=e.allowClicks=!0,e.type||(e.type="wheel,touch"),e.debounce=!!e.debounce,e.id=e.id||"normalizer";var r=e,t=r.normalizeScrollX,i=r.momentum,n=r.allowNestedScroll,o=r.onRelease,s,l,u=Lt(e.target)||Qt,c=X.core.globals().ScrollSmoother,p=c&&c.get(),_=Br&&(e.content&&Lt(e.content)||p&&e.content!==!1&&!p.smooth()&&p.content()),d=Pr(u,$e),v=Pr(u,St),g=1,w=(He.isTouch&&fe.visualViewport?fe.visualViewport.scale*fe.visualViewport.width:fe.outerWidth)/fe.innerWidth,C=0,P=Et(i)?function(){return i(s)}:function(){return i||2.8},M,E,k=Ml(u,e.type,!0,n),R=function(){return E=!1},A=gr,F=gr,L=function(){l=mr(u,$e),F=rn(Br?1:0,l),t&&(A=rn(0,mr(u,St))),M=si},q=function(){_._gsap.y=Ji(parseFloat(_._gsap.y)+d.offset)+"px",_.style.transform="matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, "+parseFloat(_._gsap.y)+", 0, 1)",d.offset=d.cacheID=0},Q=function(){if(E){requestAnimationFrame(R);var te=Ji(s.deltaY/2),ve=F(d.v-te);if(_&&ve!==d.v+d.offset){d.offset=ve-d.v;var x=Ji((parseFloat(_&&_._gsap.y)||0)-d.offset);_.style.transform="matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, "+x+", 0, 1)",_._gsap.y=x+"px",d.cacheID=ue.cache,Cr()}return!0}d.offset&&q(),E=!0},I,oe,Z,ae,J=function(){L(),I.isActive()&&I.vars.scrollY>l&&(d()>l?I.progress(1)&&d(l):I.resetTo("scrollY",l))};return _&&X.set(_,{y:"+=0"}),e.ignoreCheck=function(G){return Br&&G.type==="touchmove"&&Q(G)||g>1.05&&G.type!=="touchstart"||s.isGesturing||G.touches&&G.touches.length>1},e.onPress=function(){E=!1;var G=g;g=Ji((fe.visualViewport&&fe.visualViewport.scale||1)/w),I.pause(),G!==g&&hs(u,g>1.01?!0:t?!1:"x"),oe=v(),Z=d(),L(),M=si},e.onRelease=e.onGestureStart=function(G,te){if(d.offset&&q(),!te)ae.restart(!0);else{ue.cache++;var ve=P(),x,Se;t&&(x=v(),Se=x+ve*.05*-G.velocityX/.227,ve*=hl(v,x,Se,mr(u,St)),I.vars.scrollX=A(Se)),x=d(),Se=x+ve*.05*-G.velocityY/.227,ve*=hl(d,x,Se,mr(u,$e)),I.vars.scrollY=F(Se),I.invalidate().duration(ve).play(.01),(Br&&I.vars.scrollY>=l||x>=l-1)&&X.to({},{onUpdate:J,duration:ve})}o&&o(G)},e.onWheel=function(){I._ts&&I.pause(),Pt()-C>1e3&&(M=0,C=Pt())},e.onChange=function(G,te,ve,x,Se){if(si!==M&&L(),te&&t&&v(A(x[2]===te?oe+(G.startX-G.x):v()+te-x[1])),ve){d.offset&&q();var at=Se[2]===ve,Yt=at?Z+G.startY-G.y:d()+ve-Se[1],Ce=F(Yt);at&&Yt!==Ce&&(Z+=Ce-Yt),d(Ce)}(ve||te)&&Cr()},e.onEnable=function(){hs(u,t?!1:"x"),ne.addEventListener("refresh",J),st(fe,"resize",J),d.smooth&&(d.target.style.scrollBehavior="auto",d.smooth=v.smooth=!1),k.enable()},e.onDisable=function(){hs(u,!0),ot(fe,"resize",J),ne.removeEventListener("refresh",J),k.kill()},e.lockAxis=e.lockAxis!==!1,s=new He(e),s.iOS=Br,Br&&!d()&&d(1),Br&&X.ticker.add(gr),ae=s._dc,I=X.to(s,{ease:"power4",paused:!0,inherit:!1,scrollX:t?"+=0.1":"+=0",scrollY:"+=0.1",modifiers:{scrollY:Ol(d,d(),function(){return I.pause()})},onUpdate:Cr,onComplete:ae.vars.onComplete}),s};ne.sort=function(a){if(Et(a))return ce.sort(a);var e=fe.pageYOffset||0;return ne.getAll().forEach(function(r){return r._sortY=r.trigger?e+r.trigger.getBoundingClientRect().top:r.start+fe.innerHeight}),ce.sort(a||function(r,t){return(r.vars.refreshPriority||0)*-1e6+(r.vars.containerAnimation?1e6:r._sortY)-((t.vars.containerAnimation?1e6:t._sortY)+(t.vars.refreshPriority||0)*-1e6)})};ne.observe=function(a){return new He(a)};ne.normalizeScroll=function(a){if(typeof a>"u")return Dt;if(a===!0&&Dt)return Dt.enable();if(a===!1){Dt&&Dt.kill(),Dt=a;return}var e=a instanceof He?a:Bc(a);return Dt&&Dt.target===e.target&&Dt.kill(),ai(e.target)&&(Dt=e),e};ne.core={_getVelocityProp:qn,_inputObserver:Ml,_scrollers:ue,_proxies:ar,bridge:{ss:function(){ir||ui("scrollStart"),ir=Pt()},ref:function(){return Tt}}};bl()&&X.registerPlugin(ne);var Ll=Rs(Rl(),1);xt.registerPlugin(ne);var Yr;xt.config({nullTargetWarn:!1});xt.defaults({ease:"power2.out"});var Hc=document.documentElement,Yc=document.querySelector('[data-barba="wrapper"]');ci.default.use(Ll.default,{root:Yc,timeout:500,limit:0});function Wc(a){let e=$(new DOMParser().parseFromString(a.next.html,"text/html")).find("html");$("html").attr("data-wf-page",e.attr("data-wf-page")),window.Webflow&&window.Webflow.destroy(),window.Webflow&&window.Webflow.ready(),$(".w--current").removeClass("w--current"),$("a").each(function(){$(this).attr("href")===window.location.pathname&&$(this).addClass("w--current")})}function Xc(a,e=1e3){let r=window.scrollY,t=a-r,i=performance.now(),n=s=>s===1?1:1-Math.pow(2,-10*s);function o(s){let l=s-i,u=Math.min(l/e,1),c=n(u);window.scrollTo(0,r+t*c),u<1&&requestAnimationFrame(o)}requestAnimationFrame(o)}function Hr(a,e){return new Promise((r,t)=>{let i=document.createElement("script");i.src=a,i.onload=r,i.onerror=t,(e===void 0||document.querySelector(e))&&document.querySelector('[data-barba="container"]').appendChild(i)})}function Dl(){Yr=new pn({duration:1.2,easing:e=>e===1?1:1-Math.pow(2,-10*e),direction:"vertical",gestureDirection:"vertical",smooth:!0,smoothTouch:!1,touchMultiplier:2,wheelMultiplier:1,precision:.1});function a(e){Yr.raf(e),requestAnimationFrame(a)}requestAnimationFrame(a)}function Uc(){Hr("https://cdn.jsdelivr.net/npm/@finsweet/attributes-cmsload@1/cmsload.js","[fs-cmsload-element]"),Hr("https://cdn.jsdelivr.net/npm/@finsweet/attributes-cmsfilter@1/cmsfilter.js","[fs-cmsfilter-element]"),Hr("https://cdn.jsdelivr.net/npm/@finsweet/attributes-socialshare@1/socialshare.js","[fs-socialshare-element]"),Hr("https://cdn.jsdelivr.net/npm/@finsweet/attributes-cmscombine@1/cmscombine.js","[fs-cmscombine-element]"),Hr("https://cdn.jsdelivr.net/npm/@finsweet/attributes-cmssort@1/cmssort.js","[fs-cmssort-element]"),Hr("https://cdn.jsdelivr.net/npm/@finsweet/attributes-richtext@1/richtext.js","[fs-richtext-element]"),Hr("https://unpkg.com/@lottiefiles/lottie-player@latest/dist/lottie-player.js","lottie-player").then(()=>{(()=>{let a=document.querySelectorAll("lottie-player");a.length&&a.forEach(e=>{e.play()})})()})}function Vc(){"scrollRestoration"in history&&(history.scrollRestoration="manual");let a=r=>xt.from(r,{duration:.6,opacity:0,ease:"none",clearProps:"all",onStart:()=>{window.scrollTo({top:0,behavior:"instant"}),Yr.destroy(),Dl(),ne.refresh()}}),e=r=>xt.to(r,{opacity:0,duration:.6,ease:"none",clearProps:"all"});ci.default.init({prevent:({el:r})=>!!(r.hasAttribute("data-barba-prevent")||r.classList.contains("no-barba")||r.classList.contains("pagination-number")||r.tagName.toLowerCase()==="a"&&r.hostname!==window.location.hostname),transitions:[{name:"default-transition",async leave(r){await e(r.current.container)},enter(r){a(r.next.container)}}]}),ci.default.hooks.before(()=>{Yr.destroy()}),ci.default.hooks.enter(r=>{Wc(r)}),ci.default.hooks.afterLeave(()=>{document.documentElement.classList.remove("ready")}),ci.default.hooks.after(r=>{document.documentElement.classList.add("ready"),Yr.start(),zl(),document.querySelector("main").hasAttribute("reload-page")&&setTimeout(()=>{window.location.reload()},200)})}function zl(){jc(),Gc(),Uc(),$c(),Qc(),setTimeout(()=>{Kc()},2e3)}document.addEventListener("DOMContentLoaded",()=>{Webflow.env("editor")===void 0?(Vc(),Dl()):xt.to("body",{duration:.6,opacity:1,ease:"none"}),window.scrollTo(0,0),Hc.classList.add("once","ready"),zl()});function jc(){document.querySelector("[data-stagger]")&&document.querySelectorAll("[data-stagger]").forEach(a=>{let e=a.getAttribute("data-stagger"),r=a.hasAttribute("data-stagger-delay"),t=a.getAttribute("data-stagger-delay"),i=e&&e>1?Number(e):100,n;r?n=t&&t!==""?Number(t):i:n=0,Array.from(a.querySelectorAll("[data-anim]")).forEach(o=>{n>0&&(o.style.transitionDelay=n+"ms"),n+=i})})}function Gc(){let a={duration:1,ease:"customBezier"};function e(s,l,u){s.forEach(c=>{xt.fromTo(c,l.from,{...l.to,scrollTrigger:{trigger:c,...u}})})}function r(){let s=document.querySelectorAll("[anim-scale]");s.length!==0&&e(s,{from:{scale:1.1},to:{scale:1,duration:1.5}},{start:"top 95%"})}function t(){let s=document.querySelectorAll("[anim-stagger]:not([modal] [anim-stagger])");s.length!==0&&s.forEach(l=>{let u=l.getAttribute("anim-stagger"),c=l.querySelectorAll(u);c.length!==0&&(xt.set(c,{y:l.getAttribute("from-y")||"2rem",opacity:0}),ne.batch(c,{onEnter:p=>{xt.to(p,{autoAlpha:1,duration:l.getAttribute("data-duration")||a.duration,y:"0rem",opacity:1,stagger:{from:l.getAttribute("stagger-from")||"start",each:l.getAttribute("stagger-amount")||.1},ease:l.getAttribute("data-easing")||a.ease,scrollTrigger:{trigger:l,start:l.getAttribute("scrollTrigger-start")||"top 95%",markers:l.getAttribute("anim-markers")||!1},delay:l.getAttribute("data-delay")||.25,clearProps:"all"})}}))})}function i(){let s=document.querySelectorAll("[anim-element]:not([modal] [anim-element]), .anim-element:not([modal] .anim-element), .w-pagination-next:not([modal] .w-pagination-next)");s.length!==0&&s.forEach(l=>{let u={y:l.getAttribute("from-y")||"2rem",x:l.getAttribute("from-x")||0,opacity:0},c={y:"0%",x:"0%",opacity:1,duration:l.getAttribute("data-duration")||a.duration,ease:l.getAttribute("data-easing")||a.ease,delay:l.getAttribute("data-delay")||.35,clearProps:"all"};e([l],{from:u,to:c},{start:"top 97%"})})}function n(){if(window.innerWidth<=768)return;let s=document.querySelectorAll("[parallax-element]");s.length!==0&&e(s,{from:{y:"-10%",scale:1.1},to:{y:"10%",scale:1.1}},{start:"top bottom",end:"bottom -50%",scrub:.2})}function o(){let s=document.querySelectorAll(".bg-lines .bg-line");s.length!==0&&e(s,{from:{y:400},to:{y:-100,duration:2}},{start:"top bottom",end:"bottom top",scrub:1})}r(),t(),i(),n(),o()}function $c(){document.querySelector(".swiper .swiper-slide")&&Hr("https://cdnjs.cloudflare.com/ajax/libs/Swiper/11.0.5/swiper-bundle.min.js").then(()=>{document.querySelector("[swiper-slider]")&&document.querySelectorAll("[swiper-slider]").forEach(a=>{let e=a.querySelector(".swiper"),r=a.querySelector("[swiper-next-btn]"),t=a.querySelector("[swiper-prev-btn]");function i(o){t&&(t.style.pointerEvents=o.isBeginning?"none":"auto",t.style.opacity=o.isBeginning?"0.5":"1",t.setAttribute("aria-disabled",o.isBeginning)),r&&(r.style.pointerEvents=o.isEnd?"none":"auto",r.style.opacity=o.isEnd?"0.5":"1",r.setAttribute("aria-disabled",o.isEnd))}let n=new Swiper(e,{slidesPerView:"auto",spaceBetween:a.getAttribute("data-space")||30,grabCursor:!0,speed:700,navigation:{nextEl:r,prevEl:t},breakpoints:{0:{spaceBetween:a.getAttribute("data-space")||12},768:{spaceBetween:a.getAttribute("data-space")||30}},on:{init:function(){i(this)},slideChange:function(){i(this)},reachBeginning:function(){i(this)},reachEnd:function(){i(this)}}})})}).catch(a=>{console.error("Error loading Swiper:",a)})}function Qc(){(()=>{let t=document.querySelector("#section-map");if(!t||window.innerWidth<767)return;let i=t.querySelectorAll(".map-location-item");i.forEach(n=>{let o=n.querySelector(".map-location-icon"),s=n.querySelector(".map-location-block");!o||!s||o.addEventListener("click",l=>{l.stopPropagation(),i.forEach(u=>u.classList.remove("open")),n.classList.add("open")})}),document.addEventListener("click",n=>{t.contains(n.target)&&!n.target.closest(".map-location-icon")&&!n.target.closest(".map-location-block")&&i.forEach(o=>o.classList.remove("open"))})})(),(()=>{let t=document.querySelectorAll("[section-modal]");t.length&&t.forEach(i=>{let n=i.querySelector("[modal]"),o=n.querySelectorAll("[modal-content-item]"),s=i.querySelectorAll("[open-modal]"),l=n.querySelectorAll("[close-modal]");s.forEach((u,c)=>{u.addEventListener("click",()=>{let p=u.getAttribute("open-modal"),_=n.querySelector(`[modal-content-item="${p}"]`);console.log(_),_&&(_.classList.add("active"),n.classList.add("open"),Yr.stop())})}),l.forEach(u=>{u.addEventListener("click",()=>{o.forEach(c=>c.classList.remove("active")),n.classList.remove("open"),Yr.start()})})})})(),a();function a(){document.querySelectorAll('[data-accordion-list="css"]').forEach(t=>{let i=t.getAttribute("data-accordion-close-siblings")==="true",n=t.getAttribute("data-accordion-first-active")==="true",o=t.getAttribute("data-accordion-collapsible")==="true",s=t.getAttribute("data-accordion-event")||"click";if(n){let u=t.querySelector("[data-accordion]");u&&u.setAttribute("data-accordion","active")}function l(u,c){!c&&!o&&t.querySelectorAll('[data-accordion="active"]').length<=1||(u.setAttribute("data-accordion",c?"active":"not-active"),i&&c&&t.querySelectorAll('[data-accordion="active"]').forEach(p=>{p!==u&&p.setAttribute("data-accordion","not-active")}))}s==="hover"?t.querySelectorAll("[data-accordion-toggle]").forEach(u=>{let c=u.closest("[data-accordion]");c&&u.addEventListener("mouseenter",()=>{l(c,!0)})}):t.addEventListener("click",u=>{let c=u.target.closest("[data-accordion-toggle]");if(!c)return;let p=c.closest("[data-accordion]");if(!p)return;let _=p.getAttribute("data-accordion")==="active";l(p,!_)})})}(()=>{let t=window.location.href;function i(){return new URLSearchParams(new URL(t).search).has("section")}if(i()){let o=new URLSearchParams(new URL(t).search).get("section"),s=document.querySelector(`#${o}`);s&&setTimeout(()=>{let l=parseInt(s.getAttribute("data-offset"),10)||0,u=document.querySelector("[nav]")?.clientHeight||0,c=s.offsetTop-(l||u);Xc(c)},280)}})(),(()=>{let t=document.querySelectorAll("[dropdown-toggle]");t.length>0&&(t.forEach(i=>{i.addEventListener("click",function(n){n.stopPropagation();let o=this.closest("[dropdown]");o&&o.classList.contains("open")?o.classList.remove("open"):(document.querySelectorAll("[dropdown]").forEach(s=>s.classList.remove("open")),o&&o.classList.add("open"))})}),document.addEventListener("click",function(i){i.target.closest("[dropdown]")||document.querySelectorAll("[dropdown]").forEach(n=>n.classList.remove("open"))}))})(),(()=>{let t=window.pageYOffset;window.addEventListener("scroll",function(){let i=window.pageYOffset,n=document.querySelector("[nav]");i<10?n.classList.add("attached-top"):setTimeout(()=>{n.classList.remove("attached-top")},500),i>window.innerHeight*.3?n.classList.add("scrolled"):n.classList.remove("scrolled"),i>t&&i>10?n.classList.add("scroll-down"):i{let i=document.querySelectorAll("[article-rich-text] div[anchor]"),n=document.querySelector("[article-body-anchors-links]"),o=document.querySelector("[article-body-anchors-links] [toc-link-template]");n.innerHTML="",i.forEach((s,l)=>{let u="anchor_"+l;s.setAttribute("id",u);let c=o.cloneNode(!0);c.querySelector("[toc-link-template-text]").innerHTML=s.innerHTML,n.appendChild(c),c.setAttribute("target-element",`#${u}`),c.addEventListener("click",()=>{let d=document.querySelector(`#${u}`).getBoundingClientRect().top+window.pageYOffset;window.scrollTo({top:d-150,behavior:"smooth"})})}),document.querySelectorAll("[article-body-anchors-links] .resource-toc-link").length===0&&n.closest("[article-body-anchors-links-wrapper]").remove(),window.addEventListener("scroll",()=>{i.forEach(s=>{let l=s.getAttribute("id"),p=s.getBoundingClientRect().top+window.pageYOffset-window.scrollY;if(p<200&&p>0){let _=document.querySelector(`[target-element = "#${l}"]`);document.querySelectorAll(".article-body-anchors-links [target-element]").forEach(d=>d.classList.remove("active")),_.classList.add("active")}})})},600),document.querySelectorAll("video[autoplay]").forEach(i=>{i.paused&&i.play().catch(n=>{console.log("Autoplay blocked for:",i,n)})}),(()=>{let t=document.querySelector("#Collaborate"),i=xt.utils.toArray("#Collaborate img"),n=[.25,.35,.5,.7,.9,.3,.6,.8];i.forEach((o,s)=>{let l=parseFloat(o.getAttribute("data-speed"))||n[s%n.length];xt.fromTo(o,{yPercent:-12*l*5,xPercent:-6*(l-.5*10),scale:1+.06*l},{yPercent:12*l,xPercent:6*(l-.5),scale:1,ease:"none",scrollTrigger:{trigger:t,start:"top bottom",end:"bottom top",scrub:!0,invalidateOnRefresh:!0}})}),ne.refresh()})(),(()=>{let t=document.querySelectorAll("[stick-card]");t.length&&t.forEach((i,n)=>{let o=.9+n*.05;o<.5&&(o=.5),xt.fromTo(i,{scale:1,opacity:1},{opacity:1,scale:o,ease:"none",scrollTrigger:{trigger:i,start:"top center",end:"bottom center",scrub:!0}})})})();function e(){document.querySelectorAll('[dropdown="filters"]').forEach(t=>{let i=t.querySelectorAll(".w-checkbox.fs-cmsfilter_active"),n=t.querySelector(".dropdown-head-text");if(n){let o=n.getAttribute("data-label")||n.dataset.label||n.textContent.replace(/\(\d+\)/,"").trim();i.length>0?n.textContent=`${o} (${i.length})`:n.textContent=o,n.dataset.label=o}})}e(),document.querySelectorAll('[dropdown="filters"] .w-checkbox-input').forEach(t=>{t.addEventListener("change",()=>{setTimeout(e,50)})});function r(){let t='[custom-loadmore="list-wrap"]',i='[custom-loadmore="list"]',n=".event-item",o='[custom-loadmore="btn"]',s=(u,c,p)=>{let _=parseInt(u.getAttribute(c),10);return Number.isFinite(_)&&_>0?_:p},l=(u,c)=>{u.forEach((p,_)=>{p.style.display=_{let c=u.querySelector(i),p=u.querySelector(o);if(!c||!p)return;let _=Array.from(c.querySelectorAll(n)),d=s(u,"initial-load-items",3),v=s(u,"load-items",d);if(_.length===0){p.style.display="none";return}let g=Math.min(d,_.length);l(_,g);let w=p.querySelector("div");_.length<=g?p.style.display="none":(p.style.display="",w&&(w.textContent="Show more"),p.setAttribute("aria-expanded","false")),p.addEventListener("click",P=>{P.preventDefault(),g=Math.min(g+v,_.length),l(_,g),g>=_.length&&(p.style.display="none",p.setAttribute("aria-expanded","true"))});let C=p.querySelector('a[aria-label="button link"]');C&&(C.addEventListener("click",P=>{P.preventDefault(),p.click()}),C.setAttribute("role","button"),C.setAttribute("tabindex","0"),C.addEventListener("keydown",P=>{(P.key==="Enter"||P.key===" ")&&(P.preventDefault(),p.click())}))})}r(),document.querySelectorAll("[authors-wrap]").forEach(async t=>{let i=t.getAttribute("authors-wrap");try{let o=await(await fetch(i)).text(),u=new DOMParser().parseFromString(o,"text/html").querySelector("[authors-imgs-wrap]");u?t.appendChild(u.cloneNode(!0)):console.warn("No [authors-imgs-wrap] found on:",i)}catch(n){console.error("Error fetching authors-wrap page:",n)}}),(()=>{let t=document.querySelector("#questions-popup");if(!t)return;let i=Array.from(t.querySelectorAll(".questions-item"));if(!i.length)return;console.log(i);let n=xt.timeline({scrollTrigger:{trigger:t,start:"top 20%",once:!0}});i.forEach((o,s)=>{n.add(()=>o.classList.add("active"),s*.15)})})(),(()=>{let t=document.querySelectorAll("[author-name-text]");if(!t.length)return;let n=Array.from(t).map(s=>s.textContent.trim()).join(", "),o=document.querySelector("[all-author-name-text]");o&&(o.textContent=n)})()}function Kc(){(()=>{let a=document.querySelectorAll('[scroll-to]:not([scroll-to=""])');if(!a.length)return;let e=document.querySelector(".nav-wrap");if(!e)return;let r=e?.clientHeight||0,t=new Map;a.forEach(s=>{let l=s.getAttribute("scroll-to"),u=document.querySelector(`#${l}`);if(!u){s.remove();return}t.set(u,s),s.addEventListener("click",c=>{c.preventDefault(),Yr.scrollTo(u,{offset:-(r+10),duration:1.2})}),i(s,u)});function i(s,l){xt.registerPlugin(ne),ne.create({trigger:l,start:`top ${r+100}px`,end:"bottom top",onEnter:()=>n(s,l),onEnterBack:()=>n(s,l),onLeave:()=>o(s),onLeaveBack:()=>o(s)})}function n(s,l){a.forEach(p=>p.classList.remove("active")),s.classList.add("active");let u=l.getAttribute("theme"),c=s.closest(".sticky-sider-track");u&&c&&c.setAttribute("theme",u)}function o(s){s.classList.remove("active")}})(),(()=>{let a=document.querySelectorAll('.w-pagination-next , .w-pagination-previous, .pagination-page-btn, [fs-cmsload-element="page-button"], [fs-cmsload-element="page-dots"]');a.length&&a.forEach(e=>e.setAttribute("data-barba-prevent",""))})(),(()=>{let a=document.querySelectorAll('[fs-richtext-element="rich-text"] img');a.length&&a.forEach(e=>{e.removeAttribute("loading")})})()}(()=>{let a=document.querySelectorAll("[tabs-component]");a.length&&a.forEach(e=>{let r=e.querySelectorAll("[tabs-btn]"),t=e.querySelectorAll("[tabs-content]");r.forEach((i,n)=>{i.addEventListener("click",()=>{r.forEach(o=>o.classList.remove("active")),t.forEach(o=>o.classList.remove("active")),i.classList.add("active"),t[n].classList.add("active")})})})})();})(); /*! Bundled license information: gsap/gsap-core.js: (*! * GSAP 3.13.0 * https://gsap.com * * @license Copyright 2008-2025, GreenSock. All rights reserved. * Subject to the terms at https://gsap.com/standard-license * @author: Jack Doyle, jack@greensock.com *) gsap/CSSPlugin.js: (*! * CSSPlugin 3.13.0 * https://gsap.com * * Copyright 2008-2025, GreenSock. All rights reserved. * Subject to the terms at https://gsap.com/standard-license * @author: Jack Doyle, jack@greensock.com *) gsap/Observer.js: (*! * Observer 3.13.0 * https://gsap.com * * @license Copyright 2008-2025, GreenSock. All rights reserved. * Subject to the terms at https://gsap.com/standard-license * @author: Jack Doyle, jack@greensock.com *) gsap/ScrollTrigger.js: (*! * ScrollTrigger 3.13.0 * https://gsap.com * * @license Copyright 2008-2025, GreenSock. All rights reserved. * Subject to the terms at https://gsap.com/standard-license * @author: Jack Doyle, jack@greensock.com *) */