PageSourceSearch

https://www.zeiss.no/etc.clientlibs/zeiss-aem-app/jupiter/clientli…anScrollAnimation.b24abd8ac4058603.chunk.js

js zeiss.no collected 2026-10-06 16:16:05 UTC 41,634 bytes, 7 lines download raw bytes

1"use strict";(self.webpackChunkzeiss_greenfield_aem=self.webpackChunkzeiss_greenfield_aem||[]).push([["83873"],{95660:function(e,t,i){i.r(t),i.d(t,{default:()=>C});var n,o=i(56266),a=i(8229),l=i(79770),r=i(36429),s=i(6294),d=i(25317);function c(e){let t=e.targetId||e.pinId||e.animateId||e.sequenceImageElementId;return"self"===t?e.triggerId:t}function u(e,t){let i=-1!==`${t}`.indexOf("."),n=t.trim().startsWith("*"),o=n?t.replace("*","").trim():t;if(!(0,a.kE)(o))return console.warn(`Unable to apply element height offset, the value "${o}" is not a number.`),e;let l=Number(o);return l>0&&l<1||n||i?e*l:e+l}function m(e,t,i){if((0,a.kE)(t.trim()))return Number(t.trim());if(/^\d+(?:\.\d+)?(?:px|rem|vh|vw)/.test(t.trim())){if(-1!==t.indexOf("px"))return Number(t.replace("px","").trim());if(-1!==t.indexOf("rem"))return 16*Number(t.replace("rem","").trim());if(-1!==t.indexOf("vh"))return Math.round(Number(t.replace("vh","").trim())*window.innerHeight*.01);if(-1!==t.indexOf("vw"))return Math.round(Number(t.replace("vw","").trim())*window.innerWidth*.01)}let n=e.querySelector(t);if(!n)return i;let o=window.getComputedStyle(n,null).height.replace("px","");if(!(0,a.kE)(o))return i;let l=parseFloat(o);return l||i}function g(e,t,i,n,o){var l;let r,s="self"===n?o:n,d=t.trim().startsWith("-"),c=s&&t.indexOf("targetElement")>=0?t.replace(/^\s?[+-]\s?/,"").trim().replaceAll("targetElement",`#${s.replace("#","")}`):t.replace(/^\s?[+-]\s?/,"").trim(),u=c.startsWith("[max]"),g=c.startsWith("[min]"),h=c.replace(/^(?:\[max]|\[min])/,"").split(",");return l=function(e,t,i,n,o){let l=[];return t.forEach(t=>{let r=0,s=[];(0,a.hT)(s,t),s.forEach((t,l)=>{let d,c,u=(d=1,c=t.term,/^-?\d+\.\d+\s*\*/.test(c)&&(d=parseFloat(c.substring(0,c.indexOf("*")).trim()),c=c.replace(/^-?\d+\.\d+\s*\*/,"").trim()),"screenHeight"===c?parseFloat(window.innerHeight.toString())*d:/targetProp\[[A-Za-z-]+]/.test(c)?(0,a.i1)(i,c,n)*d:m(e,c,n)*d);r=0===l?u*(o?-1:1):"+"===s[l-1].operator?r+u:r-u}),l.push(r)}),l}(e,h,n,i,d),r=0,u?(r=Math.max(...l),(0,a.cM)("info","Returning MAX value of",h.map((e,t)=>({selector:e,height:l[t]})),", which is",r)):g?(r=Math.min(...l),(0,a.cM)("info","Returning MIN value of",h.map((e,t)=>({selector:e,height:l[t]})),", which is",r)):l.length>1?(r=l.reduce((e,t)=>e+t,0),(0,a.cM)("info","Returning SUM value of",h.map((e,t)=>({selector:e,height:l[t]})),", which is",r)):1===l.length&&([r]=l),r||i}function h(e,t,i,n,o){let l=t.trim(),r=RegExp(`${i}\\+`).test(l),s=RegExp(`${i}-`).test(l);if(!r&&!s)return{keyword:l,offset:0};let d=r?l.indexOf("+"):l.indexOf("-"),c=(s?"-":"+")+l.substring(d+1).trim();return{keyword:l=l.substring(0,d).trim(),offset:(0,a.kE)(c)?Number(c):g(e,c,0,n,o)}}function f(e,t,i,n){try{let o=JSON.parse(t);if(!o.condition||!o.whenMet||!o.whenNot)return void console.warn("Condition definition incomplete:",t);let a=function(e,t,i,n){let o=!1,a=t.trim();if(!/^\([^)]*\)\s*(?:<=|>=|==|<|>)\s*\([^)]*\)$/.test(a))return void console.warn(`Invalid condition format: "${t}"`);let l="equal";/^\([^)]*\)\s*<=\s*\([^)]*\)$/.test(a)&&(l="lesser-equal"),/^\([^)]*\)\s*>=\s*\([^)]*\)$/.test(a)&&(l="greater-equal"),/^\([^)]*\)\s*<\s*\([^)]*\)$/.test(a)&&(l="lesser"),/^\([^)]*\)\s*>\s*\([^)]*\)$/.test(a)&&(l="greater");let r=a.replace(/^\(/,"").replace(/\)$/,"").split(/\)\s*(?:<=|>=|==|<|>)\s*\(/),s=[0,0];switch(r.forEach((t,o)=>{let a=g(e,t,0,i,n);a&&(s[o]=a)}),l){case"lesser":o=s[0]<s[1];break;case"greater":o=s[0]>s[1];break;case"lesser-equal":o=s[0]<=s[1];break;case"greater-equal":o=s[0]>=s[1];break;default:o=s[0]===s[1]}return o}(e,o.condition,i,n);if(void 0!==a){if(a)return o.whenMet;return o.whenNot}}catch(e){console.warn("Unable to determine condition.",e.message,t)}}function p(e,t,i,n,o){let l,r="self"===n?o:n,s=t;if(t.startsWith("{")&&!(s=f(e,t,n,o)))return 0;let d=s.toString().split("|"),c=(0,a.kE)(i)?Number(i):0,u="self"===n;d.length>1?("self"===n&&-1===d[1].indexOf("targetElement")&&(u=!1),l=g(e,d[1],c,n,o)):l=m(e,`#${r}`,c);var p=h(e,d[0].trim(),"^(?:\\d+.\\d+|\\d+%|center|bottom)\\s*",n,o),_=l,b=u;let v=p.keyword,w=p.offset,$=!1;if((0,a.kE)(v))if(!(v.indexOf(".")>0)&&!(d.length>1))return Number(v);else $=!0;if(b)return w;if($)return Math.round(_*parseFloat(v))+w;if(v.indexOf("%")>0){let e=v.replace("%","");return Math.round(_*((0,a.kE)(e)?parseFloat(e)/100:0))+w}return"center"===v?Math.round(.5*_)+w:"bottom"===v?Math.floor(_)+w:c}function _(e,t,i,n){let o=t.split("|"),a=h(e,o.splice(0,1)[0].trim(),"^(?:elementHeight|screenHeight)\\s*",i,n);return{type:a.keyword,modifier:a.offset,params:o}}function b(e,t,i,n){return o=>{let l=(0,a.j4)()&&o.durationMobile||o.duration,r=t;if(t.startsWith("{")&&!(r=f(e,t,i)))return l;let{type:s,modifier:d,params:c}=_(e,r,i,n);if((0,a.kE)(s))return Number(s);if("elementHeight"===s){let t;return t=0,c.length||i?(t=c.length?g(e,c[0],l,i,n):m(e,`#${i}`,l),c.length>1&&(t=u(t,c[1])),t+d):(console.warn(`Unable to calculate the current height for an animation target,
2          as no selector was provided to find the target element.`),l)}if("screenHeight"===s){let t;return t=parseFloat(window.innerHeight.toString()),c.length&&((0,a.kE)(c[0])?t=u(t,c[0]):(t+=g(e,c[0],l,i,n),c.length>1&&(t=u(t,c[1])))),t+d}return l}}function v(e,t,i){var n,o;let a=0;if((null==i?void 0:i.includes("ImageWrapper"))&&!t.fullBleed){let t=null!=(o=null==(n=e.querySelector(`#${i} div`))?void 0:n.getBoundingClientRect().width)?o:0,l=window.innerWidth-t;a-=window.innerHeight<800?l:2*l}return a}function w(e,t,i){let n,o,{triggerId:a}
2=t,l=c(t),r=t.sceneDuration?b(e,t.sceneDuration.toString(),null!=l?l:"",null!=a?a:"")({duration:0,durationMobile:0}):Number(t.sceneDuration),s="string"==typeof t.sceneDurationMobile?b(e,t.sceneDurationMobile,null!=l?l:"",null!=a?a:"")({duration:r,durationMobile:r}):Number(t.sceneDurationMobile),d=v(e,t,l),u=i&&s?s+d:r||1e-4;return n=i&&void 0!==t.sceneDurationCalculationMobile?t.sceneDurationCalculationMobile:t.sceneDurationCalculation,o=u,n&&(o="function"==typeof n?n({duration:t.sceneDuration,durationMobile:t.sceneDurationMobile}):b(e,n,null!=l?l:"",null!=a?a:"")({duration:Number(t.sceneDuration),durationMobile:Number(t.sceneDurationMobile)})),o}let $=function(e,t,i,n){var o,u,m;let g=!!t.pinId||!!t.pin,b=!!t.animateId||!!t.animate,$=!!t.sequenceImageElementId||!!t.animateSequence,{triggerId:y}=t,I=c(t),A=i&&null!=(o=t.tweenDurationMobile)?o:t.tweenDuration,M=i&&t.pinPushesFollwersOnMobile?t.pinPushesFollwersOnMobile:t.pinPushesFollwers;if(b&&"object"==typeof t.originalStyleProps&&!n){let e="self"===t.animateId?t.triggerId||I:t.animateId||I,i=document.getElementById(e);i&&Object.keys(t.originalStyleProps).forEach(e=>{i.style.setProperty(e,t.originalStyleProps[e])})}let E=b&&!n&&(!!t.cssAnimateOnDesktop&&!i||!!t.cssAnimateOnMobile&&i),k=$&&(!!t.runSequenceOnDesktop&&!i||!!t.runSequenceOnMobile&&i),q=[],S={id:null!=(u=t.name)?u:y,invalidateOnRefresh:!0,trigger:`#${y}`,autoRefreshEvents:(0,a.Hl)(),start:()=>(function(e,t,i){let n,o=function(e,t){var i;let n="number"!=typeof e.triggerHook?.5:e.triggerHook,o="number"!=typeof e.triggerHookMobile?n:e.triggerHookMobile,a=t?o:n;return(null==(i=e.triggerId)?void 0:i.includes("ContentText"))?`${100*a}%+=200`:`${100*a}%`}(t,i),l=function(e,t,i){var n,o;let l,r,s,d=null!=(n=t.triggerElementStart)?n:"",u=null!=(o=t.triggerElementStartMobile)?o:"",m=d.indexOf("%")>0,g=u&&u.indexOf("%")>0;return(m?l=Number(d.replace("%","")):(0,a.kE)(d)&&(l=100*Number(d)),g?r=Number(u.replace("%","")):(0,a.kE)(u)&&(r=100*Number(u)),s=i&&null!=r?r:l)?`${s}%`:function(e,t,i){let n=c(t),{triggerId:o}=t;if(n===o){let n;if("string"!=typeof(n=i&&t.offsetMobile?t.offsetMobile:t.offset))return"0%";let l=n;if(n.startsWith("{")&&!(l=f(e,n,o)))return"0%";let r=l.toString().split("|");return function(e,t){let i=e.keyword,n=!1;if((0,a.kE)(i)&&(i.indexOf(".")>0||t.length>1)&&(n=!0),n){let e=parseFloat(i);return`${e}%`}if(i.indexOf("%")>0){let e=i.replace("%",""),t=(0,a.kE)(e)?parseFloat(e)/100:0;return`${t}%`}return"top"===i?"0%":"center"===i?"50%":"bottom"===i?"100%":"0%"}(h(e,r[0].trim(),"^(?:\\d+.\\d+|\\d+%|center|bottom)\\s*",o,o),r)}return"0%"}(e,t,i)}(e,t,i),r=function(e,t,i){let n=c(t),{triggerId:o}=t,l="string"==typeof t.offset?p(e,t.offset,0,n,o):t.offset,r="string"==typeof t.offsetMobile?p(e,t.offsetMobile,0,n,o):t.offsetMobile,s=i&&r||l;if(t.sceneOffsetCalculation)if("function"==typeof t.sceneOffsetCalculation)s=t.sceneOffsetCalculation({offset:t.offset,offsetMobile:t.offsetMobile});else{var d,u,m;s=(d=t.sceneOffsetCalculation,u=null!=n?n:"",m=null!=o?o:"",t=>{let i=(0,a.j4)()?t.offsetMobile||t.offset||0:t.offset||0,n=(0,a.kE)(i.toString())?Number(i.toString):i,o=d;if(d.startsWith("{")&&!(o=f(e,d,u,m)))return n;let l=o.split("|"),r=l.splice(0,1)[0].trim();return l.length&&/^(?:\d+\.\d+|\d+%|center|bottom)\s*(?:[+-].*)?$/.test(r)?p(e,o,i,u,m):n})({offset:t.offset,offsetMobile:t.offsetMobile})}return s}(e,t,i);return n=r?r<0?`-=${-1*r}`:`+=${r}`:"",`${l}${n} ${o}`})(e,t,i),end:()=>(function(e,t,i){var n,o;if(!t.endElementId){let n=w(e,t,i);return`+=${n}`}let l=null!=(n=i&&t.endElementStartMobile?t.endElementStartMobile:t.endElementStart)?n:"100%",r=null!=(o=i&&t.endTriggerHookMobile?t.endTriggerHookMobile:t.endTriggerHook)?o:"50%";return(0,a.kE)(l)&&-1!==l.indexOf(".")&&(l=`${100*Number(l)}%`),(0,a.kE)(r)&&-1!==r.indexOf(".")&&(r=`${100*Number(r)}%-=100px`),`${l} ${r}`})(e,t,i)};t.endElementId&&"self"!==t.endElementId&&(S.endTrigger=`#${t.endElementId.replace("#","")}`),S.scrub=null!=A?A:.5,E&&function(e,t,i,n,o,a,r){var d,c,u,m,g,h,f;let p=null!=n?n:.5,_=i&&null!=(d=e.tweenPropsMobile)?d:e.tweenProps,b=i&&null!=(c=e.timelineConfigMobile)?c:e.timelineConfig,v=i&&null!=(u=e.tween
2DurationCalculationMobile)?u:e.tweenDurationCalculation,w=i&&null!=(m=e.tweenPropsCalculationMobile)?m:e.tweenPropsCalculation,$=i&&null!=(g=e.tweenEasingMobile)?g:e.tweenEasing;"function"==typeof v&&(t.scrub=p=v({tweenDuration:e.tweenDuration,tweenDurationMobile:e.tweenDurationMobile}));let y="self"===e.animateId?null!=(h=e.triggerId)?h:r:null!=(f=e.animateId)?f:r,I=document.getElementById(y||"");I&&I.classList.contains("initially-dash-hidden")&&(I.classList.add("initialized"),(0,l.N_)(I));let A=null!=_?_:{};if("function"==typeof w||"object"==typeof w||_||b){let n=`#${y}`,d=(0,l.Mc)(y,e.initialTweenProps,e.initialTweenPropsMobile,i);if("function"==typeof w&&(A=w({tweenProps:e.tweenProps,tweenPropsMobile:e.tweenPropsMobile})),"object"==typeof w&&"function"==typeof w.fn){let t=[];w.args.forEach(e=>{t.push(e)}),A=w.fn({tweenProps:e.tweenProps,tweenPropsMobile:e.tweenPropsMobile},...t)}!function({scrollTriggerConfig:e,timelineConfig:t,tweenEasing:i,initialTweenProps:n,sceneTweenProps:o,createImageSequence:a,currentTweenDuration:r,sceneTweens:d,animTargetId:c,targetId:u}){t?void 0!==t.startDuration&&void 0!==t.endDuration&&void 0!==t.pauseDuration&&(t.startProps||o)&&(t.endProps||o)?function({scrollTriggerConfig:e,timelineConfig:t,tweenEasing:i,initialTweenProps:n,sceneTweenProps:o,animTargetId:a}){var r,d;if(!t)return;let c=t.startProps||o,u=t.endProps||o;(t.startEasing||i)&&(c.ease=(0,l.A$)(null!=(r=t.startEasing)?r:i)),(t.endEasing||i)&&(u.ease=(0,l.A$)(null!=(d=t.endEasing)?d:i)),u.duration=Number(t.endDuration),u.delay=Number(t.pauseDuration);let m=s.p8.timeline();o&&n?(c.duration=0,m.from(a,c),m.to(a,Object.assign(Object.assign({},o),{duration:Number(t.startDuration)}))):(c.duration=Number(t.startDuration),m.from(a,c)),m.to(a,u),e.animation=m}({scrollTriggerConfig:e,timelineConfig:t,tweenEasing:i,initialTweenProps:n,sceneTweenProps:o,animTargetId:c}):console.warn(`Invalid or incomplete timeline properties defined for "${u}".`):function({scrollTriggerConfig:e,tweenEasing:t,initialTweenProps:i,sceneTweenProps:n,createImageSequence:o,currentTweenDuration:a,sceneTweens:r,animTargetId:d}){t&&(n.ease=(0,l.A$)(t)),o?(n.duration=a,r.push({element:d,props:n,position:0})):(e.animation=s.p8.timeline(),i&&e.id.includes("ContentTextScene")?(e.animation.fromTo(d,(0,l.jy)(d,i),(0,l.jy)(d,Object.assign({},n))),e.animation.to(d,(0,l.jy)(d,Object.assign({},n))),e.animation.to(d,(0,l.jy)(d,Object.assign({},i)))):e.animation.to(d,(0,l.jy)(d,n)))}({scrollTriggerConfig:e,tweenEasing:i,initialTweenProps:n,sceneTweenProps:o,createImageSequence:a,currentTweenDuration:r,sceneTweens:d,animTargetId:c})}({scrollTriggerConfig:t,timelineConfig:b,tweenEasing:$,initialTweenProps:d,sceneTweenProps:A,createImageSequence:o,currentTweenDuration:p,sceneTweens:a,animTargetId:n,targetId:r})}else console.warn(`No animation properties defined for "#${r}".`)}(t,S,i,A,k,q,I),k&&function(e,t,i,n,o,l,u,m){var g,h,f;let p=n&&t.imagesMobile?t.imagesMobile:t.images;if(!(t.sequenceImageElementId||t.imageElement)||!(null==p?void 0:p.length))return console.warn(`Not all required image sequence properties defined for "#${m}".`);let b="self"===t.sequenceImageElementId?t.triggerId:t.sequenceImageElementId,$=b?document.getElementById(b):t.imageElement;(null==$?void 0:$.getAttribute("width"))||!t.imagesWidth||null==$||$.setAttribute("width",null==t?void 0:t.imagesWidth.toString()),(null==$?void 0:$.getAttribute("height"))||!t.imagesHeight||null==$||$.setAttribute("height",null==t?void 0:t.imagesHeight.toString()),null==$||$.setAttribute("src",p[0]);let y={curImg:0},I=function(e,t,i,n,o){var l;let r=e.canvasId?document.getElementById(e.canvasId):null;return r&&!(0,a.Fo)()?(!function(e,t,i,n,o){var l,r;let s=t.getContext("2d"),d=i[0],c=(0,a.o$)(d);e.sequenceTitleText&&t.setAttribute("title",e.sequenceTitleText);let u=o&&null!=(l=e.sequenceImagesWidthMobile)?l:e.sequenceImagesWidth,m=o&&null!=(r=e.sequenceImagesHeightMobile)?r:e.sequenceImagesHeight,g=new Image;g.src=d;let h=(0,a.WB)(c);u&&m&&(t.width=u*h,t.height=m*h),g.onload=()=>{var i;g&&(u&&m||(t.width=g.width,t.height=g.height),null==s||s.drawImage(g,0,0),n?null==(i=document.getElementById(n))||i.setAttribute("style","opacity: 0.0"):e.imageElement&&e.imageElement.setAttribute("style","opacity: 0.0"))}}(e,r,i,n,o),()=>{!function(e,t,i,n){var o;let l=Math.floor(e.curImg/50),r=document.getElementById(null!=(o=i.canvasId)?o:"");if(Object.hasOwn(t,l))if(r){let e=r.getContext("2d"),i=t[l],n=new Image;n.src=i,n.onload=()=>{window.requestAnimationFrame(()=>{if(n.complete||n.width+n.height>
20)try{r.width=n.width,r.height=n.height,null==e||e.drawImage(n,0,0)}catch(e){console.info("error: ",e),console.info(`The image "${i}" was not yet in the browser cache,
3                    so it could not be drawn at this time.`)}else console.info(`The image "${i}" was not yet in the browser cache,
4                  so it could not be drawn at this time. 2`)})}}else(0,a.cM)("warn",`The canvas "${i.canvasId}" could not be found, so the drawing process was interrupted.`);else(0,a.cM)("warn","Invalid sequence image number specified for",n,":",l)}(t,i,e,n)}):(e.sequenceTitleText&&n&&(null==(l=document.getElementById(n))||l.setAttribute("title",e.sequenceTitleText)),()=>{!function(e,t,i,n){var o,l;let r=(0,a.gn)(),s=Math.floor(t.curImg/50),d=n||(null==(o=e.imageElement)?void 0:o.id);if(!(r&&0===s&&window.lastScrollImageSequencePositions&&Object.hasOwn(window.lastScrollImageSequencePositions,d))||!(window.lastScrollImageSequencePositions[d]>12)){if(Object.hasOwn(i,s)){if(d){let t=null!=(l=e.imageElement)?l:document.getElementById(d);null==t||t.setAttribute("src",i[s])}}else(0,a.cM)("info","Invalid sequence image number specified for",n,":",s);r&&(window.lastScrollImageSequencePositions||(window.lastScrollImageSequencePositions={}),window.lastScrollImageSequencePositions[n]=s)}}(e,t,i,n)})}(t,y,p,b,n),A={curImg:50*p.length-1,roundProps:"curImg",repeat:null!=(g=t.repetitions)?g:0,duration:null!=o?o:.5,immediateRender:!0,ease:d.bJ.easeNone,onUpdate:I};if(l)u.push({element:y,props:A,position:0});else{A.duration=.5;let o=function(e,t,i,n,o){var l;let d=c(t),{type:u,params:m,modifier:g}=_(e,o&&"string"==typeof t.sceneDurationMobile?t.sceneDurationMobile:t.sceneDuration.toString(),d,t.triggerId);if(!(0,a.Kl)(m[0]))return null;let h=e.querySelector(m[0]),f=Array.from((null==h?void 0:h.children)||[]),p=f.length,b=s.p8.timeline();if(h&&p>1&&u===r.n5.ElementHeight&&f.length===(null==(l=t.sequenceImagesEndFrameList)?void 0:l.length)){let a=parseFloat(window.getComputedStyle(f[0]).marginBottom),l=parseFloat(window.getComputedStyle(h).paddingBottom),r=v(e,t,d),s=0===f[0].getBoundingClientRect().height,c=w(e,t,o);return f.forEach((e,d)=>{var u;(null==(u=t.sequenceImagesEndFrameList)?void 0:u[d])&&b.to(n,Object.assign(Object.assign({},i),{curImg:50*t.sequenceImagesEndFrameList[d]-1,duration:()=>(({$element:e,idx:t,marginBottom:i,isMobile:n,mobileOffset:o,numberOfChapters:a,isFirstChildHidden:l,modifier:r})=>{let s=e.getBoundingClientRect().height;return 0===s?0:(n?(s+=o/(l?a-1:a),t===a-1?s+=i/2+(parseFloat(window.getComputedStyle(e).marginBottom)||0)+r:0===t||1===t&&l?s+=i/2:s+=i):0===t||t===a-1?s+=r/2+i/2:s+=i,s>0?s:0)})({$element:e,idx:d,marginBottom:a,isMobile:o,mobileOffset:r,numberOfChapters:p,isFirstChildHidden:s,modifier:g+l})/c}))}),b}return null}(e,t,A,y,n);if(!o){let e=null!=(f=null==(h=t.sequenceImagesEndFrameList)?void 0:h[t.sequenceImagesEndFrameList.length-1])?f:0;o=s.p8.timeline().to(y,Object.assign(Object.assign({},A),{curImg:50*e-1}))}i.animation=o}}(e,t,S,i,A,E,q,I);if(q.length){let e=s.p8.timeline();q.forEach(t=>{let i=s.p8.to(t.element,t.props);e.add(i,t.position)}),S.animation=e}if(g&&(t.pinOnDesktop&&!i||t.pinOnMobile&&i)){let e="self"===t.pinId?t.triggerId||I:t.pinId||I;S.anticipatePin=!1,S.pin=`#${e}`,S.pinSpacing=void 0===M||M}return!function(e,t){var i;let{indicators:n}=e;!n&&e.indicatorName&&(n={name:e.indicatorName,indent:null!=(i=e.indicatorIndent)?i:0}),n&&(t.markers={indent:n.indent})}(t,S),(null==(m=t.eventCallbacks)?void 0:m.length)&&t.eventCallbacks.forEach(e=>{e.callback({progress:0}),"update"===e.eventType&&(S.onUpdate=e.callback)}),S};var y=i(2912),I=i(21611);window.debugMode=-1!==window.location.href.indexOf("localhost"),window.scrollOnLoadHandlers=[],s.p8.registerPlugin(y.i);let A="titan-scroll-trigger",M="auto-init";var E=i(89665),k=i(14963),q=i(85429);let S=".image-sequence-canvas-wrapper",O='[data-js-select="titan-scroll-animation__navigation-wrapper"]',x="titan-scroll-animation__navigation-link--active",P="titan-scroll-animation__navigation__active-item-border--hidden",D=n=class extends k.Z{constructor(e){super(e),this.grid_single_block=!1,this.section_id="",this.in_page_navigation_height=0,this.is_image_loaded=!1,this.is_restoring_overlay_scroll=!1,this.on_overlay_scroll_restoring=()=>{this.is_restoring_overlay_scroll=!0},this.on_overlay_scroll_restored=()=>{this.is_restoring_overlay_scroll=!1,globalThis.requestAnimationFrame(()=>{y.i.update(),this.sync_active_navigation()})},this._expanded_class="titan-scroll-animation__navigation--expanded",this._sticky_class="titan-scroll-animation__nav-sticky"}connect(e){super.connect(e),this.$node=e}loaded(e){var t,i,n,o,a;
4this.$node=e,this.section_id=null!=(i=null==(t=this.$node.querySelector('[data-js-select="section-id-selector"]'))?void 0:t.id)?i:"",this.$animated_template=this.$node.querySelector(`#${this.section_id}_animated_template`),this.$fallback_template=this.$node.querySelector(`#${this.section_id}_fallback_template`),this._$expand_button=e.querySelector('[data-js-select="titan-scroll-animation__nav-toggle-expand-button"]'),this.$chapter_sections=[...this.$node.querySelectorAll("[data-chapter-section]")],this._$navigation_list_items=[...this.$node.querySelectorAll('[data-js-select="titan-scroll-animation__nav-navigation-link"]')],this.$scroll_animation_active_border=e.querySelector('[data-js-select="titan-scroll-animation__navigation__active-item-border"]'),this.in_page_navigation_height=null!=(o=null==(n=this.$node.querySelector(O))?void 0:n.getBoundingClientRect().height)?o:0;let l=null==(a=this.$node)?void 0:a.querySelector('[data-js-select="titan-scroll-animation__animated-sequence-image"]');l&&(l.onload=()=>{this.is_image_loaded||(y.i.refresh(),this.is_image_loaded=!0)}),this.show_navigation="true"===this.$node.dataset.showNavigation,this.show_navigation&&(this._init_navigation_scroll_triggers(),this._$navigation_list_items.forEach(e=>{e.addEventListener("click",()=>this.navigate_to_section(e)),e.addEventListener("keyup",t=>{"Tab"===t.key&&this.navigate_to_section(e)})}),this._breakpoint_mobile="xl",this._opened_on_start=!1,this.scroll_trigger_start="top top",this.scroll_trigger_end=()=>
4this._is_viewport_mobile?"bottom center":"max"),this.resize_observed(),super.loaded(e),document.addEventListener("overlay-scroll-restoring",this.on_overlay_scroll_restoring),document.addEventListener("overlay-scroll-restored",this.on_overlay_scroll_restored)}_multiple_blocks(){var e,t,i,n,o;if(!this.$animated_template)return{};let a=this.$animated_template.querySelectorAll(".scroll-animation-text-block"),l=null!=(t=null==(e=this.$animated_template.querySelector(S))?void 0:e.getBoundingClientRect().height)?t:0,r=[...this.$animated_template.querySelectorAll(".titan-scroll-animation-section__content-text-block")];if(q.Z.viewport_width>=q.Z.breakpoint_by_name("m")){let e=null!=(o=null==(n=null==(i=this.$node)?void 0:i.querySelector(O))?void 0:n.getBoundingClientRect().height)?o:64,t=window.innerHeight-.3*window.innerHeight-e;null==a||a.forEach((e,i)=>{var n;if(e.style.minHeight=`${l}px`,0===i){let i=null!=(n=e.getBoundingClientRect().height)?n:0;e.style.marginBottom=`${t-(l-i)}px`}else e.style.marginBottom="auto"}),null==r||r.forEach(e=>{e.style.marginBottom=`${t}px`});let s=this.$animated_template.querySelector(S);s&&(null==s||s.removeAttribute("style"))}else{let e=window.innerHeight-(l+64);null==a||a.forEach((t,i)=>{i!==a.length-1?t.style.marginBottom=`${.7*e}px`:(t.style.marginBottom="40px",t.style.paddingBottom=`${e/2-64}px`),t.style.minHeight="auto"}),null==r||r.forEach(t=>{t.style.marginBottom=`${.7*e}px`}),this._resize_image(e)}return{}}_resize_image(e){var t;if(this.$animated_template){let i=this.$animated_template.querySelector(".titan-scroll-animation-section__conclusion-text-block"),n=null!=(t=null==i?void 0:i.getBoundingClientRect().height)?t:0,o=this.$animated_template.querySelector(S),a=this.$animated_template.querySelector(".titan-scroll-animation-section__image-block");if(!(null==a?void 0:a.classList.contains("titan-scroll-animation-section__image-block--full-bleed"))&&n>e&&o){let t=(n-e)/n*100,i=t<=25?`${100-t}`:"75";o.style.width=`${i}%`}else null==o||o.removeAttribute("style")}}_single_block(){var e,t,i,n;let o={};if(this.$animated_template&&this.section_id){let l=`${this.section_id}_PinnedImage_Trigger`;o[l]={cssAnimateOnDesktop:!0,cssAnimateOnMobile:!0};let r=`${this.section_id}_ImageWrapper`;o[r]={};let s=`${this.section_id}_PinnedImage_Text`,d=null==(e=this.$animated_template)?void 0:e.querySelector(`#${s}`);o[s]={};let c=null!=(i=null==(t=this.$animated_template.querySelector(S))?void 0:t.getBoundingClientRect().height)?i:0,u=this.$animated_template.querySelector(".titan-scroll-animation-section__description-block"),m=null!=(n=null==u?void 0:u.getBoundingClientRect().height)?n:0;if(q.Z.viewport_width<q.Z.breakpoint_by_name("m")){let e,t=window.innerHeight-(c+64);t>m?(o[l].sceneDurationMobile=`elementHeight|0.75*#${this.section_id}_ImageWrapper`,e=t-m,null==u||u.setAttribute("data-initial-tween-props-mobile",'{ "opacity": 0 }'),null==u||u.setAttribute("data-tween-props-mobile",'{ "opacity": 1 }')):(o[l].sceneDurationMobile=`elementHeight-#${this.section_id}_ImageWrapper|#${this.section_id}_DescriptionText`,o[l].pinId=`${this.section_id}_ImageWrapper`,o[l].pinPushesFollwers=!1,o[l].pinPushesFollwersOnMobile=!1,e=t/2),null==u||u.setAttribute("style",`padding-bottom: ${e}px`),o[l].triggerHookMobile=0,null==d||d.classList.add("hide")}else m<=c?(o[l].pinOnDesktop=!1,o[l].sceneDuration=`{ "condition": "(#${l}) < (#${this.section_id})", "whenMet": "elementHeight|1.00*#${this.section_id}", "whenNot": "elementHeight|[max]0.5*#${l},0.5*#${this.section_id}" }`,o[l].offset=`{ "condition": "(#${l}) < (#${this.section_id})", "whenMet": "0.125|#${l}", "whenNot": "0.25|#${l}" }`,o[l].triggerHook=.5,o[r].tweenProps={marginTop:0},o[r].tweenPropsCalculation=(0,a.yq)(`pushDownByHeightDifferenceTweenProps,#${this.section_id},#${this.section_id}_ImageWrapper`,"fn"),o[r].tweenDuration=1,o[r].tweenEasing="inOut",o[s].pinOnDesktop=!0,o[s].pinId=`${this.section_id}_ContentText_Trigger_0`,o[s].sceneDuration=`elementHeight-#${this.section_id}_ContentText_Animate_0|#${this.section_id}`,o[s].offset="center-33",o[s].triggerHook=.5,o[s].triggerHookMobile=0):(o[l].pinOnDesktop=!0,o[l].sceneDuration=`elementHeight-#${this.section_id}_ImageWrapper|#${this.section_id}_DescriptionText`,o[l].offset="center-33",o[l].triggerHook=.5,null==d||d.classList.add("hide"))}return o}disconnect(e){var t;super.disconnect(e),null==(t=this.$header_disclaimer)||t.removeEventListener(o.l,()=>this._initialize_scroll_animation()),document.removeEventListener("overlay-scroll-restoring",this.on_overlay_scroll_restoring),document.removeEventListener("overlay-scroll-restored",this.on_overlay_scroll_restored)}sync_active_navigation(){var e;if(!(null==(e=this.$chapter_sections)?void 0:e.length))return;let t=this.$chapter_sections.find(e=>{let t=y.i.getAll().find(t=>t.trigger===e);return null==t?void 0:t.isActive});(null==t?void 0:t.dataset.chapterSection)&&this.set_active_section(t.dataset.chapterSection)}_initialize_scroll_animation(){var e,t,i,d,c,u;if(n.is_animated_view){let n;if(!this.$animated_template)return;null==(e=this.$animated_template)||e.classList.remove("hide"),null==(t=this.$fallback_template)||t.classList.add("hide"),this.grid_single_block=this.$animated_template.classList.contains("grid__column--single-block"),this.$header=document.querySelector("header"),this.$header_disclaimer=null==(i=this.$header)?void 0:i.querySelector('[data-js-select="HeaderDisclaimer"]'),null==(d=this.$header_disclaimer)||d.addEventListener(o.l,()=>this._initialize_scroll_animation()),n=this.grid_single_block?this._single_block():this._multiple_blocks(),y.i.refresh(),this.$node&&((e,t)=>{Array.from(e.querySelectorAll(".word-for-word-animation-trigger")).forEac
4h(e=>{var t;let i=e.id,n=e.getAttribute("data-scene-name"),o=null!=(t=e.getAttribute("data-css-animated-element-id"))?t:"",l=e.getAttribute("data-scene-offset"),r=e.getAttribute("data-scene-offset-mobile"),s=e.getAttribute("data-scene-word-for-word-delay");if(!s)return void(0,a.cM)("warn",`Unable to initialize word-for-word animation.
5          Missing required config attribute "data-scene-word-for-word-delay".`);if(!(0,a.kE)(s))return void(0,a.cM)("warn",`Unable to initialize word-for-word animation.
6          Attribute "data-scene-word-for-word-delay" is not a numeric value.`);let d=Number(s);e.classList.remove("word-for-word-animation-trigger"),e.classList.add(A),e.classList.add(M);let c=document.getElementById(o);if(!c)return void(0,a.cM)("warn","Invalid ID, unable to create word-for-word animation.");if("SPAN"!==c.tagName)return void(0,a.cM)("warn",`Invalid animated element type, a word-for-word animation requires
7          an animated span than can be duplicated for each word.`);let u=c.innerHTML.trim().split(/\s+/);u.forEach((t,s)=>{!function({word:e,index:t,animatedElement:i,animElemId:n,sceneName:o,sceneOffset:l,sceneOffsetMobile:r,delayBetweenWords:s,trigger:d,triggerId:c}){let u,m;if(u=l?t>0?`${l} + ${s*t}`:l:`${s*t}`,m=r?t>0?`${r} + ${s*t}`:r:`${s*t}`,0===t)d.setAttribute("id",`${c}_${t}`),d.setAttribute("data-scene-name",`${o}_${t}`),d.setAttribute("data-scene-offset",u),d.setAttribute("data-scene-offset-mobile",m),d.setAttribute("data-css-animated-element-id",`${n}_${t}`),i.setAttribute("id",`${n}_${t}`),i.innerHTML=e;else{let l=d.cloneNode();l.setAttribute("id",`${c}_${t}`),l.setAttribute("data-scene-name",`${o}_${t}`),l.setAttribute("data-scene-offset",u),l.setAttribute("data-scene-offset-mobile",m),l.setAttribute("data-css-animated-element-id",`${n}_${t}`),(0,a.BE)(d,l);let r=i.cloneNode(),s=document.getElementById(`${n}_${t-1}`);r.setAttribute("id",`${n}_${t}`),r.innerHTML=e,s&&r&&(0,a.BE)(s,r)}}({word:t,index:s,animatedElement:c,animElemId:o,sceneName:n,sceneOffset:l,sceneOffsetMobile:r,delayBetweenWords:d,trigger:e,triggerId:i})}),u.forEach((e,t)=>{var i;let n=document.getElementById(`${o}_${t}`);null==(i=null==n?void 0:n.parentNode)||i.insertBefore(document.createTextNode(" "),n)})});let i=e.querySelectorAll(`.${A}.${M}`);
7s.p8.matchMedia().add({isMobile:"(max-width: 767px)",isDesktop:"(min-width: 768px)",reduceMotion:"(prefers-reduced-motion: reduce)"},n=>{var o,l;let s=[];for(let d of i){d.classList.remove(M);let i=null!=(l=null!=(o=(0,a.AK)(d,"data-scene-name"))?o:d.getAttribute("id"))?l:"";s.push(i),n.add(i,()=>{var i,o;let l=Object.assign(Object.assign({},function(e){var t;let i={};i.triggerId=null!=(t=e.getAttribute("id"))?t:"",i.pinId=(0,a.AK)(e,"data-pinned-element-id"),i.animateId=(0,a.AK)(e,"data-css-animated-element-id"),i.sequenceImageElementId=(0,a.AK)(e,"data-sequence-image-element-id"),i.pinOnMobile=(0,a.AK)(e,"data-pin-on-mobile","bool",!0),void 0===i.pinOnMobile&&i.pinId&&(i.pinOnMobile=!0),i.cssAnimateOnMobile=(0,a.AK)(e,"data-css-animate-on-mobile","bool",!0),i.runSequenceOnMobile=(0,a.AK)(e,"data-run-sequence-on-mobile","bool",!0),i.pinOnDesktop=(0,a.AK)(e,"data-pin-on-desktop","bool",!0),void 0===i.pinOnDesktop&&i.pinId&&(i.pinOnDesktop=!0),i.cssAnimateOnDesktop=(0,a.AK)(e,"data-css-animate-on-desktop","bool",!0),i.runSequenceOnDesktop=(0,a.AK)(e,"data-run-sequence-on-desktop","bool",!0),i.triggerElementStart=(0,a.AK)(e,"data-scene-element-start"),i.triggerElementStartMobile=(0,a.AK)(e,"data-scene-element-start-mobile"),i.endElementId=(0,a.AK)(e,"data-scene-end-element-id"),i.endElementStart=(0,a.AK)(e,"data-scene-end-element-start"),i.endElementStartMobile=(0,a.AK)(e,"data-scene-end-element-start-mobile"),i.endTriggerHook=(0,a.AK)(e,"data-scene-end-trigger-hook"),i.endTriggerHookMobile=(0,a.AK)(e,"data-scene-end-trigger-hook-mobile"),i.fullBleed=(0,a.AK)(e,"data-scene-full-bleed","bool",!1),i.name=(0,a.AK)(e,"data-scene-name"),(i=function(e){var t;if(!e.sequenceImageElementId)return e;let i=document.getElementById(e.sequenceImageElementId);if(!i)return console.log(`Unable to find element "${e.sequenceImageElementId}".`),e;let n=Object.assign({},e);if(n.canvasId=(0,a.AK)(i,"data-canvas-id","string"),n.canvasId&&(0,a.Fo)()){let e=document.getElementById(n.canvasId);n.canvasId=void 0,null==e||e.remove()}n.repetitions=(0,a.AK)(i,"data-animation-sequence-repetitions","number"),n.sequenceImagesWidth=(0,a.AK)(i,"data-sequence-images-width","number"),n.sequenceImagesHeight=(0,a.AK)(i,"data-sequence-images-height","number"),n.sequenceImagesWidthMobile=(0,a.AK)(i,"data-sequence-images-width-mobile","number"),n.sequenceImagesHeightMobile=(0,a.AK)(i,"data-sequence-images-height-mobile","number"),n.sequenceImagesEndFrameList=(0,a.AK)(i,"data-sequence-images-end-frame-list","json");let{sequenceImages:o,sequenceImagesMobile:l}=function(e,t){let i=[],n=[],{imageElement:o,sequencePath:l,sequencePathMobile:s,sequenceNamePrefix:d,sequenceNamePrefixMobile:c,sequenceAmount:u,sequenceNumberLength:m,resolutionPostfix:g,fileTypeExtension:h}=function(e){var t,i,n;let o,l;e.targetImageElement?o=e.targetImageElement:e.targetImageId&&(o=null!=(t=document.getElementById(e.targetImageId))?t:void 0);let s=!(0,a.j4)()&&window.devicePixelRatio>=2,d=null!=(i=e.formats||(null==o?void 0:o.getAttribute("data-available-sequence-image-formats")))?i:"";return e.resolutions?l=e.resolutions:o&&(l=null!=(n=o.getAttribute("data-available-sequence-image-resolutions"))?n:void 0),function(e,t,i,n,o){var l,s,d,c;let u=null!=(l=null==t?void 0:t.getAttribute("data-sequence-images-path"))?l:"",m=null!=(s=null==t?void 0:t.getAttribute("data-sequence-images-path-mobile"))?s:"",g=e.path||u,h=e.pathMobile||m||g,f=null==t?void 0:t.getAttribute("data-sequence-images-name-prefix"),p=null==t?void 0:t.getAttribute("data-sequence-images-name-prefix-mobile"),_=e.namePrefix||f,b=e.namePrefixMobile||p||_;return{imageElement:t,sequencePath:g,sequencePathMobile:h,sequenceNamePrefix:_,sequenceNamePrefixMobile:b,sequenceAmount:null!=(d=e.amount)?d:1,sequenceNumberLength:null!=(c=e.numberMaxDigits)?c:Number(null==t?void 0:t.getAttribute("data-sequence-images-number-max-digits")),sequenceFormats:i,sequenceResolutions:n,isRetina:o,resolutionPostfix:o&&(null==n?void 0:n.indexOf("2x"))!==-1?r.Hd._2x:"",fileTypeExtension:(0,a.zR)(i)}}(e,o,d,l,s)}(e),f=h.replace(/^\./,""),p=h.replace(/^\./,"").toUpperCase();for(let e=0;e<u;e+=1)i.push(l.replace("[file_type]",f).replace("[FILE_TYPE]",p)+d+(0,a.Bu)(e+1,Number(m))+g+h),n.push((null!=s?s:l).replace("[file_type]",f).replace("[FILE_TYPE]",p)+(null!=c?c:d)+(0,a.Bu)(e+1,Number(m))+g+h);if(t&&o&&!o.hasAttribute("data-preloading-initiated")){o.setAttribute("data-preloading-initiated","1");for(let e of((0,a.cM)("info",`Preloading images for animation sequence "#${o.getAttribute("id")}".`),(0,a.j4)()&&n&&n.length?n:i))new Image().src=e}return{sequenceImages:i,sequenceImagesMobile:n}}({targetImageId:i.getAttribute("id"),amount:null==(t=n.sequenceImagesEndFrameList)?void 0:t[n.sequenceImagesEndFrameList.length-1]},!0);return n.images=o,n.imagesMobile=l,(0,a.j4)()&&n.imagesMobile.length?
7i.setAttribute("src",n.imagesMobile[0]):n.images.length&&i.setAttribute("src",n.images[0]),n}(i=function(e){if(!e.animateId)return e;let t="self"===e.animateId?e.triggerId:e.animateId,i=document.getElementById(null!=t?t:"");if(!i)return console.warn(`Unable to find element "${t}".`),e;let n=Object.assign({originalStyleProps:{}},e);return n.tweenDuration=(0,a.AK)(i,"data-tween-duration","number"),n.tweenDurationMobile=(0,a.AK)(i,"data-tween-duration-mobile","number"),n.initialTweenProps=(0,a.AK)(i,"data-initial-tween-props","json"),n.initialTweenPropsMobile=(0,a.AK)(i,"data-initial-tween-props-mobile","json"),"object"==typeof n.initialTweenProps&&Object.keys(n.initialTweenProps||{}).forEach(e=>{n.originalStyleProps[e]=i.style.getPropertyValue(e)}),"object"==typeof n.initialTweenPropsMobile&&(n.originalStyleProps=Object.hasOwn(n,"originalStyleProps")?n.originalStyleProps:{},Object.keys(n.initialTweenPropsMobile).forEach(e=>{n.originalStyleProps[e]=i.style.getPropertyValue(e)})),n.tweenProps=(0,a.AK)(i,"data-tween-props","json"),n.tweenPropsMobile=(0,a.AK)(i,"data-tween-props-mobile","json"),n.tweenDurationCalculation=(0,a.AK)(i,"data-tween-duration-definition","fn"),n.tweenDurationCalculationMobile=(0,a.AK)(i,"data-tween-duration-definition-mobile","fn"),n.tweenPropsCalculation=(0,a.AK)(i,"data-tween-props-definition","fn"),n.tweenPropsCalculationMobile=(0,a.AK)(i,"data-tween-props-definition-mobile","fn"),n.tweenEasing=(0,a.AK)(i,"data-tween-easing"),n.tweenEasingMobile=(0,a.AK)(i,"data-tween-easing-mobile"),n.timelineConfig=(0,a.AK)(i,"data-timeline-config","JSON"),n.timelineConfigMobile=(0,a.AK)(i,"data-timeline-config-mobile","JSON"),n}(i=function(e){if(!e.pinId)return e;let t=document.getElementById(e.pinId);if(!t)return console.log(`Unable to find element "${e.pinId}".`),e;let i=Object.assign({},e);return i.pinPushesFollwers=(0,a.AK)(t,"data-push-followers","bool",!0),i.pinPushesFollwersOnMobile=(0,a.AK)(t,"data-push-followers-mobile","bool",!0),i}(i)))).sceneDuration=(0,a.AK)(e,"data-scene-duration","number-or-string"),i.sceneDurationMobile=(0,a.AK)(e,"data-scene-duration-mobile","number-or-string"),i.sceneDurationCalculation=(0,a.AK)(e,"data-scene-duration-definition","string-or-function"),i.sceneDurationCalculationMobile=(0,a.AK)(e,"data-scene-duration-definition-mobile","string-or-function"),i.offset=(0,a.AK)(e,"data-scene-offset","number-or-string"),i.offsetMobile=(0,a.AK)(e,"data-scene-offset-mobile","number-or-string"),i.offsetCalculation=(0,a.AK)(e,"data-scene-offset-definition","string-or-function"),i.triggerHook=(0,a.AK)(e,"data-scene-trigger-hook","float"),i.triggerHookMobile=(0,a.AK)(e,"data-scene-trigger-hook-mobile","float"),i.indicatorName=(0,a.AK)(e,"data-scene-indicator-name"),i.indicatorIndent=(0,a.AK)(e,"data-scene-indicator-indent","number");let n=(0,a.AK)(e,"data-event-definitions");return n&&"object"==typeof window.scrollManagerCallbacksAndCalculators&&Object.hasOwn(window.scrollManagerCallbacksAndCalculators,n)&&(i.eventCallbacks=window.scrollManagerCallbacksAndCalculators[n]),i}(d)),t[d.id]||{});if(l&&!l.isInvalid){let t=$(e,l,!!(null==(i=null==n?void 0:n.conditions)?void 0:i.isMobile),!!(null==(o=null==n?void 0:n.conditions)?void 0:o.reduceMotion));y.i.create(t)}})}for(let e of s)n[e]()});if((0,a.QJ)())window.addEventListener("orientationchange",()=>(0,l.Iq)(e));else{let t=I.ZP.debounce(()=>{(0,l.Iq)(e)},240);window.addEventListener("resize",t)}})(this.$node,n)}else null==(c=this.$animated_template)||c.classList.add("hide"),null==(u=this.$fallback_template)||u.classList.remove("hide")}_init_navigation_scroll_triggers(){var e,t,i;this.$chapter_sections&&(null==(e=this._$navigation_list_items)?void 0:e.length)&&(this.$chapter_sections.forEach(e=>{s.p8.timeline({scrollTrigger:{trigger:e,start:"top bottom",end:()=>
7this._is_viewport_mobile?"bottom center":"bottom top",toggleActions:"play resume play reset",onToggle:t=>{var i;!this.is_restoring_overlay_scroll&&t.isActive&&this.set_active_section(null!=(i=e.dataset.chapterSection)?i:"")}}})}),(null==(t=this.$node)?void 0:t.querySelector(O))&&(this.navigation_end_animation=y.i.create({trigger:this.$node,start:()=>this.get_navigation_start_trigger(),end:()=>`+=${this.in_page_navigation_height}px`,scrub:!0,animation:s.p8.fromTo(null==(i=this.$node)?void 0:i.querySelector(O),{top:0},{top:-1*this.in_page_navigation_height}),onEnter:()=>{var e;null==(e=this.$scroll_animation_active_border)||e.classList.add(P)},onLeaveBack:()=>{var e;null==(e=this.$scroll_animation_active_border)||e.classList.remove(P)}}))),s.p8.timeline({scrollTrigger:{trigger:this.$node,start:"top top",end:"bottom bottom",toggleActions:"play resume pause reset",onToggle:e=>{e.isActive||this.reset(e.direction)}}})}get_navigation_start_trigger(){var e,t,i;let n=null!=(i=null==(t=null==(e=this.$animated_template)?void 0:e.querySelector(S))?void 0:t.getBoundingClientRect().height)?i:0;return`bottom+=${(window.innerHeight-n)/2+5}px bottom`}set_active_section(e){let t=!1;this._$navigation_list_items.forEach(i=>{i.dataset.id===e?(this.set_mobile_navigation_button_content(i),this.set_desktop_navigation(i),t=!0):(i.classList.remove(x),i.blur())}),t||this.set_desktop_navigation()}navigate_to_section(e){var t,i;let o,a=e.dataset.id;if(!this.$node||!a)return;let l=this.$node.querySelector(`${!n.is_animated_view?"[data-fallback-chapter]":""}[data-chapter-section="${a}"]`);if(!l)return;let r=this.$node.classList.contains(this._sticky_class),s=a.split("-"),d=parseInt(s[s.length-1],10),c=null!=(i=null==(t=this.$node.querySelector(`${O}`))?void 0:t.getBoundingClientRect().height)?i:0,u=l.getBoundingClientRect(),m=u.top+window.scrollY-(r?0:c);o=n.is_animated_view?n.is_breakpoint_desktop?m-window.innerHeight/2+u.height/2:this.calculate_position_mobile(d,m,c):m-c,window.scrollTo({top:o,left:0,behavior:"smooth"}),n.is_breakpoint_desktop?this.set_desktop_navigation(e):this.set_mobile_navigation_button_content(e)}calculate_position_mobile(e,t,i){var n,o,a,l;let r=null==(n=this.$animated_template)?void 0:n.querySelector(S);if(r){let n=null!=(o=null==r?void 0:r.getBoundingClientRect().height)?o:0;return e>0?t-n-i-40:(null!=(l=null==(a=this.$node)?void 0:a.getBoundingClientRect().top)?l:0)+window.scrollY-40}return 0}set_mobile_navigation_button_content(e,t){var i,n;null==e||e.classList.add(x);let o=null==(i=this.$node)?void 0:i.querySelector('[data-js-select="titan-scroll-animation__mobile-navigation-button"]'),a=null==o?void 0:o.querySelector('[data-js-select="titan-scroll-animation__mobile-navigation-title"]'),l=null==o?void 0:o.querySelector('[data-js-select="titan-scroll-animation__navigation__icon"]');if(t&&-1===t&&a)a.textContent="",l&&(l.innerHTML="");else if(e&&a){let t=null==e?void 0:e.querySelector('[data-js-select="titan-scroll-animation__nav-link-item-text"]');if(a.textContent=null!=(n=null==t?void 0:t.dataset.label)?n:"",l){let t=null==e?void 0:e.querySelector('[data-js-select="titan-scroll-animation__nav-icon"]');l.innerHTML=t?t.innerHTML:""}}}set_desktop_navigation(e){if(n.is_breakpoint_desktop){if(!this.$scroll_animation_active_border)return;if(!e){this.$scroll_animation_active_border.style.width="0",this.$scroll_animation_active_border.style.left="0";return}let t=e.clientWidth,{left:i}=e.getBoundingClientRect(),n=e.offsetParent,o=0;n&&(o=n.getBoundingClientRect().left+n.clientLeft),s.p8.to(this.$scroll_animation_active_border,{width:t,left:i-o,duration:1})}}reset(e){this.set_mobile_navigation_button_content(void 0,e),this._close_mobile_navigation()}static get is_breakpoint_desktop(){return q.Z.viewport_width>=q.Z.breakpoint_by_name("m")}static get is_animated_view(){return window.innerHeight>this.min_screen_height}resize_observed(){var e,t;this.is_image_loaded=!1,q.Z.viewport_width<q.Z.breakpoint_by_name("xl")?null==(e=this.navigation_end_animation)||e.disable():null==(t=this.navigation_end_animation)||t.enable(),this.reset(),this._initialize_scroll_animation(),super.resize_observed()}};D.min_screen_height=640;let C=D=n=function(e,t,i,n){var o,a=arguments.length,l=a<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(e,t,i,n);else for(var r=e.length-1;r>=0;r--)(o=e[r])&&(l=(a<3?o(l):a>3?o(t,i,l):o(t,i))||l);return a>3&&l&&Object.defineProperty(t,i,l),l}([E.lE.register("TitanScrollAnimation"),E.Sp],D)}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.