PageSourceSearch

https://avi-hvac.com/_s/build/js/chunk-4GIV36OT.mjs

js avi-hvac.com collected 2026-10-08 23:31:37 UTC 54,835 bytes, 14 lines download raw bytes

1import"./chunk-WSI4CI7G.mjs";var et=new Map,A=(r,t,e)=>Math.max(r,Math.min(t,e)),x=(r,[t,e])=>Math.min(t,e)<=r&&Math.max(t,e)>=r,St=r=>{let t=new Map,e=[],i=r.length,s=0;for(let n=0;n<i;n++){let a=r[n];t.has(a)||(t.set(a,1),e[s++]=a)}return t.clear(),e},yt=(r,t)=>{let e=!1,i=null,s=null;function n(...a){if(e){i=a,s=this;return}r.apply(this,a),e=!0,setTimeout(()=>{e=!1,i&&(n.apply(s,i),i=s=null)},t)}return n},It=r=>r instanceof Element||r instanceof HTMLDocument,it=(r,t=document,e)=>r?typeof r=="string"?/%closest%/.test(r)&&e?[e.closest(r.replace(/%closest%/,""))]:[...t.querySelectorAll(r)]:[r]:[],st=(r,t="")=>{let e=String(r).trim().match(/\d+(\D+)$/);return e!=null&&e[1]?e[1].trim():t},E=r=>+String(r).replace(/[^.\-\d]/g,""),nt=(r,t)=>{let e=E(r);return t?e/t*100:e},Pt=(r,t)=>{let e=E(r);return t?t*e/100:e},vt=r=>["%","vw","vh"].includes(r.toLowerCase()),xt=(r,t,e,i)=>{let s=E(r);if(isNaN(s))return 0;let n=vt(t),a=vt(e);if(n){let l=i[t];s=Pt(s,l)}if(a){let l=i[e];s=nt(s,l)}return s},M=(r,t,e)=>{r=String(r);let i=E(r);return typeof t=="number"&&r.includes(e)?Pt(i,t):i},X=(r,t)=>{let e=st(r).toLowerCase();if(e==="vh"||e==="vw"||e==="px"||!e){var i;let s=e||"px";return`${M(r,(i=t[s])!=null?i:t.px,s).toFixed(3)}px`}return String(r)},L=(r,t,e)=>r*(1-e)+t*e,wt=(r,t,e)=>Math.abs((e-r)/(t-r))*100,Ht=(r,t)=>Math.floor(Math.random()*(t-r+1)+r),j=(r=6,{exclude:t=[],prefix:e="",suffix:i="",radix:s=10}={})=>{let n="";for(let a=0;a<r;a++){let l=Ht(a===0?1:0,s-1);n+=l.toString(s).toUpperCase()}return n=e+n+i,t.find(a=>a==n)?j(r,{exclude:t,prefix:e,suffix:i,radix:s}):n},bt=async(r,t)=>{let e=r.map(async s=>{if(!et.has(s)){let n=new Promise((a,l)=>{$.ajax({url:s,dataType:"script",cache:!0}).done(a).fail(l)});et.set(s,n)}return et.get(s)}),i=await Promise.all(e);return typeof t=="function"&&t(i),i},rt=r=>{let t={position:null,top:null,left:null,margin:null,width:null,"max-width":null,"min-width":null,height:null,"max-height":null,"min-height":null,"flex-basis":null,transform:null};Object.keys(t).forEach(o=>{let c=r.style.getPropertyValue(o);c&&(t[o]=c,r.style.removeProperty(o))});let e=r,i=0,s=0,n=e.getBoundingClientRect(),a=n.width,l=n.height;do i+=e.offsetLeft,s+=e.offsetTop,e=e.offsetParent;while(e);return Object.keys(t).forEach(o=>{t[o]&&r.style.setProperty(o,t[o])}),{top:s,left:i,width:a,height:l}},Et=r=>{var t;let e=(a,l=[])=>a==null||a.tagName==="BODY"?l:e(a.parentElement,l.concat([a])),i=a=>{let l=/(auto|scroll)/,o=getComputedStyle(a,null);return["overflow","overflow-y","overflow-x"].some(c=>l.test(o.getPropertyValue(c)))};if(r=$(r)[0],!((t=r)!=null&&t.parentElement))return;let s=e(r.parentElement,[]);for(let a=0;a<s.length;a++)if(i(s[a]))return s[a];let n=r.ownerDocument||document;return n.scrollingElement||n.documentElement},Ct=r=>{let t={type:"unknown",value:r,sourceValue:r,clipPathValues:[],unitValues:[]};if(/inset/.test(r)){let e=z(r);e.length&&e.length===1&&(e=new Array(4).fill(e[0]));let i=e.map(s=>`${s}%`);t={type:"inset",value:`inset(${i.join(" ")} round ${W(r)}px)`,sourceValue:r,unitValues:i,clipPathValues:e}}return t};function z(r){var t;return r=r.split("round")[0],((t=r.match(/[+-]?([0-9]*[.])?[0-9]+/g))!=null?t:[]).map(e=>+e)}var Xt=(r,t,e)=>{let i=/round\s+([-.\d]+(px|%))/;return r.match(i)?r=r.replace(i,`round ${t}${e}`):r=`${r.replace(")","")} round ${t}${e})`,r};function W(r){let t=/round\s+([-.\d]+px)/,e=r.match(t);return e!=null&&e[1]?+e[1].replace(/[^-.\d]/g,""):0}var B=(r,t,e)=>L(r,t,e/100),J=r=>!!r.offsetParent||!r.parentElement,G=r=>{let[t]=r.split("at").map(e=>z(e));return t?.[0]||0},K=r=>{let[t,e]=r.split("at").map(i=>z(i));return e!=null&&e.length?{x:e[0],y:e[1]}:{x:0,y:0}},at=(r,t,e)=>Xt(`inset(${r.map(i=>`${i}%`).join(" ")})`,t,e),Tt=(r,t)=>(r={x:0,y:0,...r},`circle(${t||30}% at ${r.x}% ${r.y}%)`);function Yt(r,t){return 1-3*t+3*r}function zt(r,t){return 3*t-6*r}function Bt(r){return 3*r}function Rt(r,t,e){let i=Yt(t,e),s=zt(t,e),n=Bt(t);return((i*r+s)*r+n)*r}var Vt=1e-7,Ut=12;function Nt(r,t,e,i,s){let n,a,l=0;do a=t+(e-t)/2,n=Rt(a,i,s)-r,n>0?e=a:t=a;while(Math.abs(n)>Vt&&++l<Ut);return a}function ot(r,t=e=>e){if(r.includes("spring")){var e;let[s]=((e=r.match(/[+-]?([0-9]*[.])?[0-9]+/g))!=null?e:[]).map(a=>+a),n=7;return()=>a=>(a=t(a),1-Math.E**(-n*a)*Math.cos(s*a))}if(r.includes("cubic-bezier")){var i;let[s,n,a,l]=((i=r.match(/[+-]?([0-9]*[.])?[0-9]+/g))!=null?i:[]).map(c=>+c),o=c=>Nt(c,0,1,s,a);return()=>c=>(c=t(c),s===n&&a===l?c:Rt(o(c),n,l))}return()=>s=>s}function $t(r,t){let e=t,i=Date.now(),s=null,n=()=>{s=setTimeout(r,e)},a=()=>{document.hidden||document.visibilityState!=="visible"?(clearTimeout(s),e-=Date.now()-i,s=null):s||n()};return window.addEventListener("visibilitychange",a),window.addEventListener("blur",a),window.addEventListener("focus",a),n(),()=>{clearTimeout(s),window.removeEventListener("visibilitychange",a),window.removeEventListener("blur",a),window.removeEventListener("focus",a)}}var D=class{static completeAnimation(t){}get valueForProgressFartor(){return 0}get unitsValues(){return{}}get endFrame(){return this.iterationsMap[this.iterationsMap.length-1].frames[1]}get has3DTransformation(){return!1}static async loadLibs(){return new Promise(t=>{bt(this.libs,()=>{this.libsLoaded=!0,t(!0)})})}constructor(t){var e;this.defaultAnimationParams={playMode:"normal"},this.animationParams=void 0,this.iterationsMap=[],this.pureIterationsMap=[],this.progress=0,this.element=void 0,this.frames=[],this.onChange=void 0,this.initialAnimationFrame=void 0,this.animationParams={...this.defaultAnimationParams,...t.animationParams},this.element=t.element,this.onChange=(e=t.onChange)!=null?e:()=>{},this.initialAnimationFrame=t.initialAnimationFrame}static create(t){return new this(t)}buildIterationsMap(){let{playMode:t,loop:e}=this.animationParams,[i,s]=this.frames,n=t==="bounce",a=n?2:1,l=+e*a,o=new Array(l).fill(null);o.reduce((c,h,m)=>{let p=m+1,u=p/l*100,g=(p%2===0&&n?[s,i]:[i,s]).filter(d=>d!=null);return o[m]={iterationIndex:m,progressRange:[c,u],frames:g},u},0),this.pureIterationsMap=o,this.iterationsMap=this.convertInteractionsToMainUnit(o)}getIntersectionWithIterationMap([t,e]){let i=t>e,s=[],n=this.iterationsMap.findIndex(l=>x(t,l.progressRange)),a=this.iterationsMap.findIndex(l=>x(e,l.progressRange));if(n!==-1)for(let l=n;x(l,[0,this.iterationsMap.length-1]);i?l--:l++){let{progressRange:o}=this.iterationsMap[l],c;if(l===n?(c=i?[t,o[0]]:[t,o[1]],n===a&&(c=[t,e])):l===a?c=i?[o[1],e]:[o[0],e]:c=i?[o[1],o[0]]:o,s.push({progressRange:c,iterationIndex:l}),l===a)break}return s}percentToIteration(t,e=this.iterationsMap,i=!1){var s;i=i||!x(t,[0,100]);let n=t>=0&&t<=100?1:t/100;if(t=A(0,t,100),!i){if(t===0)return{iteration:e[0],iterationIndex:e[0].iterationIndex,progressInIteration:0,frame:e[0].frames[0]};if(t===100){let p=e.length-1;return{iteration:e[p],iterationIndex:e[p].iterationIndex,progressInIteration:100,frame:e[p].frames[1]}}}let a=(s=e.findIndex(p=>x(t,p.progressRange)))!=null?s:0;if(a===-1)throw new Error(`It is impossible to determine iteration for ${t}% of progress. Probably the iterationsMap was builded incorrectly.`);let l=e[a],o=0,{frames:c,progressRange:h}=l,m=c[0];if(c&&h)if(c.length===1)m=c[0];else if(typeof c[0]=="object"){let p={};
1m=p,Object.keys(c[0]).forEach(u=>{let g=c[0][u],d=c[1][u],S=Math.abs(h[1]-h[0]);o=(t-h[0])/S*100;let v=this.percentToFrame({frameField:u,fromFrame:g,toFrame:d,progressInIteration:o});if(v!=null)p[u]=v;else{let f=this.unitsValues[u]||{},y=Object.keys(f),I=y.find(Y=>String(g).includes(Y)),P=y.find(Y=>String(d).includes(Y)),T=P||I,b=typeof g=="number"?g:+String(g).replace(/[^.\-\d]/g,""),F=typeof d=="number"?d:+String(d).replace(/[^.\-\d]/g,"");I&&(b=M(g,f[I],I)),P&&(F=M(d,f[P],P));let R=Math.abs(F-b),C=o*R/100,k=o?C*n:C+R*n;v=b<F?b+k:b-k,p[u]=T?`${nt(v,f[T])}${T}`:v}})}else{let p=c,u=Math.abs(p[1]-p[0]),g=Math.abs(h[1]-h[0]);o=(t-h[0])/g*100;let d=this.percentToFrame({frameField:null,fromFrame:c[0],toFrame:c[0],progressInIteration:o});if(d!=null)m=d;else{let S=o*u/100,v=o?S*n:S+u*n;m=p[0]<p[1]?p[0]+v:p[0]-v}}return{iteration:l,iterationIndex:a,progressInIteration:o,frame:m}}convertFrameToUnit(t,e,i){let s=Object.keys(this.unitsValues[e]||{}),n=E(t);if(s.length){let a=s.find(c=>String(t).includes(c)),l=this.unitsValues[e][a],o=this.unitsValues[e][i];if(l&&o){let h=n*l/100/o*100;return{value:`${h}${i}`,cleanValue:h}}}return{value:t,cleanValue:n}}convertInteractionsToMainUnit(t){return t.map(e=>{let i=e.frames[0],s=e.frames[1];return typeof s=="object"&&Object.keys(s).forEach(n=>{let a=i,l=s,o=Object.keys(this.unitsValues[n]||{}),c=o.length&&String(l[n]).includes("px")?"px":o.find(h=>String(l[n]).includes(h));if(c){let{value:h}=this.convertFrameToUnit(String(a[n]),n,c);a[n]=h}}),{...e,frames:[i,s]}})}
1async init(){}async activateAnimation(t){}destroy(){}async play(t){}seek(t,e=0){}stop(){}percentToFrame(t){return null}};D.libsLoaded=!1;D.libs=[];var H=180/Math.PI;function lt(r){return Math.sqrt(r[0]*r[0]+r[1]*r[1]+r[2]*r[2])}function ct(r,t){return[r[0]/t,r[1]/t,r[2]/t]}function Q(r,t){return r[0]*t[0]+r[1]*t[1]+r[2]*t[2]}function Zt(r,t){return[r[1]*t[2]-r[2]*t[1],r[2]*t[0]-r[0]*t[2],r[0]*t[1]-r[1]*t[0]]}function ht(r,t,e,i){return[r[0]*e+t[0]*i,r[1]*e+t[1]*i,r[2]*e+t[2]*i]}function O(r){let t=r.toString().split("e");return Math.round(+`${t[0]}e${t[1]?+t[1]-3:3}`)*.001}function qt(r){let[t,e,i,s]=r,n=s*s,a=t*t,l=e*e,o=i*i,c=t*e+i*s,h=n+a+l+o;return c>.49999*h?[0,2*Math.atan2(t,s)*H,90]:c<-.49999*h?[0,-2*Math.atan2(t,s)*H,-90]:[O(Math.atan2(2*t*s-2*e*i,1-2*a-2*o)*H),O(Math.atan2(2*e*s-2*t*i,1-2*l-2*o)*H),O(Math.asin(2*t*e+2*i*s)*H)]}function jt(r){let t=new Array(4),e=new Array(3),i=new Array(3),s=new Array(3);for(let o=0;o<3;o++)s[o]=r[3][o];let n=new Array(3);for(let o=0;o<3;o++)n[o]=r[o].slice(0,3);e[0]=lt(n[0]),n[0]=ct(n[0],e[0]),i[0]=Q(n[0],n[1]),n[1]=ht(n[1],n[0],1,-i[0]),e[1]=lt(n[1]),n[1]=ct(n[1],e[1]),i[0]/=e[1],i[1]=Q(n[0],n[2]),n[2]=ht(n[2],n[0],1,-i[1]),i[2]=Q(n[1],n[2]),n[2]=ht(n[2],n[1],1,-i[2]),e[2]=lt(n[2]),n[2]=ct(n[2],e[2]),i[1]/=e[2],i[2]/=e[2];let a=Zt(n[1],n[2]);if(Q(n[0],a)<0)for(let o=0;o<3;o++)e[o]*=-1,n[o][0]*=-1,n[o][1]*=-1,n[o][2]*=-1;t[0]=.5*Math.sqrt(Math.max(1+n[0][0]-n[1][1]-n[2][2],0)),t[1]=.5*Math.sqrt(Math.max(1-n[0][0]+n[1][1]-n[2][2],0)),t[2]=.5*Math.sqrt(Math.max(1-n[0][0]-n[1][1]+n[2][2],0)),t[3]=.5*Math.sqrt(Math.max(1+n[0][0]+n[1][1]+n[2][2],0)),n[2][1]>n[1][2]&&(t[0]=-t[0]),n[0][2]>n[2][0]&&(t[1]=-t[1]),n[1][0]>n[0][1]&&(t[2]=-t[2]);let l;return t[0]<.001&&t[0]>=0&&t[1]<.001&&t[1]>=0?l=[0,0,O(Math.atan2(n[0][1],n[0][0])*180/Math.PI)]:l=qt(t),{rotateX:l[0],rotateY:l[1],rotateZ:l[2],scaleX:O(e[0]),scaleY:O(e[1]),scaleZ:O(e[2]),translateX:s[0],translateY:s[1],translateZ:s[2],skewXY:O(i[0])*H,skewXZ:O(i[1])*H,skewYZ:O(i[2]*H)}}function pt(r){if(!r)return null;let t=getComputedStyle(r),e=new DOMMatrix(t.getPropertyValue("transform")),i=new Array(4);for(let s=1;s<5;s++){let n=[0,0,0,0];i[s-1]=n;for(let a=1;a<5;a++)n[a-1]=e[`m${s}${a}`]}return jt(i)}function At(r){var t;if(!r)return null;let e=(t=r.style)==null?void 0:t.transform;e&&r.style.removeProperty("transform");let i=pt(r);return r.style.transform=e,i}var ut="800px",Mt="50% 50%",V=class extends D{static completeAnimation({element:t,frame:e}){requestAnimationFrame(()=>{e!=null&&e.clipPath||t.style.removeProperty("clip-path")})}get valueForProgressFartor(){return this.animationParams.duration*this.iterationsMap.length}get has3DTransformation(){return[this.animationParams.rotateX,this.animationParams.rotateY].some(t=>typeof t=="number")}get unitsValues(){let t=this.element.ownerDocument.documentElement,e=t.clientWidth,i=t.clientHeight;return{translateX:{px:100,"%":this.element.offsetWidth,vh:i,vw:e},translateY:{px:100,"%":this.element.offsetHeight,vh:i,vw:e},translateZ:{px:100,vh:i,vw:e},perspective:{px:100,vh:i,vw:e}}}constructor(t){super(t),this.initialDomMatrix=void 0,this._delayTimeoutDisposer=null,this.initialDomMatrix=t.initialDomMatrix,this.animationParams=this.normalizeAnimationParams(this.animationParams);let e=this.getFrame(this.initialAnimationFrame);this.frames=[e,this.getFrame()],this.buildIterationsMap()}async activateAnimation({fromSnapshot:t}={fromSnapshot:!1}){if(t){let e=this.getSnapshotFrame(),i=this.getFrame();this.frames=[e,i],this.buildIterationsMap()}}async play({resetProgress:t,reverse:e,animationParams:i,onStart:s,onComplete:n,onLoopStart:a,onLoopComplete:l}){this.stop();let{duration:o,delay:c,easing:h,loop:m}={...this.animationParams,...i},p=e?100:0,u=e?0:100,g=t?p:this.progress,d=[g,u],S=this.getIntersectionWithIterationMap(d),v=o*1e3*Math.abs(d[0]-d[1])/100,f=g===p?(c||0)*1e3:0;this.progress=g,this.seek(this.progress),f&&await new Promise(I=>{this._delayTimeoutDisposer=$t(()=>I(!0),f)});let y=0;for(s(),a();;){if(y>0&&(v=o*1e3),y>=S.length||y<0)if(m===!0)y=0,S=this.getIntersectionWithIterationMap([p,u]),v=o*1e3;else break;let I=this.animationParams.playMode==="bounce"&&(y+1)%2===0;I||a();let P=S[y],T=this.iterationsMap[P.iterationIndex].progressRange,b=this.iterationsMap[P.iterationIndex].frames,{translateX:F,translateY:R,translateZ:C,scaleX:k,scaleY:Y,skewX:Ot,skewY:Ft,clipPath:mt,...kt}
1=this.buildAnimeParams(b),dt={...kt};this.frames[0].clipPath||this.frames[1].clipPath?dt.clipPath=(mt??[]).map(tt=>tt||"inset(0% 0% 0% 0%)"):this.element.style.removeProperty("clip-path");let{translateX:_t,translateY:Lt,translateZ:Dt}=this.unitsValues;await new Promise(tt=>{anime({targets:this.element,translateX:F.map(_=>X(_,_t)),translateY:R.map(_=>X(_,Lt)),translateZ:C.map(_=>X(_,Dt)),...dt,scaleX:[this.normalizeScale(k[0]),this.normalizeScale(k[1])],scaleY:[this.normalizeScale(Y[0]),this.normalizeScale(Y[1])],skewX:Ot,skewY:Ft,duration:v,easing:ot(h,_=>wt(T[0],T[1],L(P.progressRange[0],P.progressRange[1],_))/100),update:_=>{this.progress=L(P.progressRange[0],P.progressRange[1],_.progress/100),this.onChange()},complete:()=>{requestAnimationFrame(()=>{this.seek(this.progress)}),tt(!0)}})});let gt=b,ft=e?gt[0].clipPath:gt[1].clipPath;String(ft).includes("circle")&&this.element.style.setProperty("clip-path",String(ft)),y+=1,I||l()}n()}seek(t,e=0){t=A(0,t??this.progress,100);let i=t;this.animationParams.seekEasing&&(i=ot(this.animationParams.seekEasing)()(t/100)*100);let{frame:s}=this.percentToIteration(i),n=s,{translateX:a,translateY:l,translateZ:o,scaleX:c,scaleY:h,skewX:m,skewY:p,clipPath:u,perspective:g,...d}=n,{translateX:S,translateY:v,translateZ:f}=this.unitsValues,y=e?`${(xt(l,st(l),"px",v)+e).toFixed(3)}px`:X(l,v),I=X(a,S),P=X(o,f);this.frames[0].clipPath||this.frames[1].clipPath?d.clipPath=u??"inset(0% 0% 0% 0%)":this.element.style.removeProperty("clip-path");let T=E(a),b=E(e?y:l),F=E(o),R=this.normalizeScale(c),C=this.normalizeScale(h);Math.abs(T)<.05&&Math.abs(b)<.05&&Math.abs(F)<.05&&d.rotateX===0&&d.rotateY===0&&d.rotateZ===0&&Math.abs(R-1)<1e-4&&Math.abs(C-1)<1e-4&&d.scaleZ===1&&m===0&&p===0&&!this.has3DTransformation?this.element.style.setProperty("transform","none"):this.element.style.setProperty("transform",`
2                perspective(${g})
3                translateX(${I})
4                translateY(${y})
5                translateZ(${P})
6                rotateX(${d.rotateX}deg)
7                rotateY(${d.rotateY}deg)
8                rotateZ(${d.rotateZ}deg)
9                scaleX(${R})
10                scaleY(${C})
11                scaleZ(${d.scaleZ})
12                skewX(${m}deg)
13                skewY(${p}deg)
14            `),this.element.style.setProperty("opacity",`${d.opacity}`),d.clipPath!=null&&this.element.style.setProperty("clip-path",`${d.clipPath}`),this.element.style.setProperty("transform-origin",`${d.transformOrigin}`),this.progress=t,this.onChange()}stop(){var t;anime.remove(this.element),(t=this._delayTimeoutDisposer)==null||t.call(this)}buildAnimeParams(t){let e={};return Object.keys(t[0]).forEach(i=>{i==="clipPath"?e[i]=this.normalizeClipPath([String(t[0][i]),String(t[1][i])]):e[i]=[t[0][i],t[1][i]]}),e}getSnapshotFrame(){let t=getComputedStyle(this.element),e=+t.getPropertyValue("opacity"),i=t.getPropertyValue("clip-path"),s=this.element.style.getPropertyValue("transform-origin"),{rotateX:n,rotateY:a,rotateZ:l,translateX:o,translateY:c,scaleX:h,scaleY:m,skewXY:p,skewYZ:u}=pt(this.element);return this.getFrame({opacity:e,rotateX:n,rotateY:a,rotateZ:l,translateX:o,translateY:c,scaleX:h,scaleY:m,skewX:p,skewY:u,clipPath:i,transformOrigin:s,perspective:ut})}getFrame(t=null){var e,i,s,n,a;let{opacity:l,rotateX:o,rotateY:c,rotateZ:h,rotate:m,scale:p,scaleX:u,scaleY:g,skew:d,skewX:S,skewY:v,translateX:f,translateY:y,clipPath:I,clipPathEnabled:P,transformOrigin:T,perspective:b}=t??this.animationParams;I=P===!1?null:I;let F=Ct(I),R=(e=h??m)!=null?e:0,C=l??1;if(R==="auto"&&(R=getComputedStyle(this.element).getPropertyValue("--elementRotate")||0),C==="auto"){let k=getComputedStyle(this.element).getPropertyValue("--elementOpacity");C=k===""?1:Number(k)}return{opacity:C??1,rotateX:o??0,rotateY:c??0,rotateZ:+String(R).replace(/[^-.\d]/g,""),scaleX:(i=p??u)!=null?i:1,scaleY:(s=p??g)!=null?s:1,skewX:+String((n=d??S)!=null?n:0).replace(/[^-.\d]/g,""),skewY:+String((a=d??v)!=null?a:0).replace(/[^-.\d]/g,""),scaleZ:1,translateX:f??"0px",translateY:y??"0px",translateZ:"0px",clipPath:F.value,transformOrigin:T??Mt,perspective:b??ut}}
14normalizeEasing(t){return t||"cubic-bezier(0.455, 0.03, 0.515, 0.955)"}normalizeScale(t){return Math.max(E(t),1e-6)}normalizeAnimationParams(t){return{loop:1,playMode:"normal",opacity:1,rotate:0,scaleX:1,scaleY:1,skewX:0,skewY:0,duration:.3,translateX:"0px",translateY:"0px",clipPath:null,transformOrigin:Mt,perspective:ut,...t,easing:this.normalizeEasing(t.easing)}}convertClipPathCircleToInset(t){let e=this.element.clientHeight,i=this.element.clientWidth,s=(e*i)**.5,n=Math.max(G(t),1e-4),{x:a,y:l}=K(t),o=(e+i-s)*n/100,c=o/i*100,h=o/e*100;return at([l-h,100-a-c,100-l-h,a-c],Math.max(o,20),"px")}normalizeClipPathValue(t){return t==null||t===""||t==="none"||t==="null"?"inset(0% 0% 0% 0% round 0px)":t}normalizeClipPath([t,e]){return t=this.normalizeClipPathValue(t),e=this.normalizeClipPathValue(e),t.includes("circle")&&e.includes("inset")&&(t=this.convertClipPathCircleToInset(t)),e.includes("circle")&&t.includes("inset")&&(e=this.convertClipPathCircleToInset(e)),[t,e]}percentToFrame({progressInIteration:t,fromFrame:e,toFrame:i,frameField:s}){if(s==="clipPath"){let[c,h]=this.normalizeClipPath([e==null?null:String(e),i==null?null:String(i)]);if(c.includes("inset")){let m=z(c),p=z(h),u=W(c),g=W(h),d=m.map((v,f)=>B(m[f],p[f],t)),S=B(u,g,t);return at(d,S,"px")}if(c.includes("circle")){let{x:m,y:p}=K(c),{x:u,y:g}=K(h),d=G(c),S=G(h);return Tt({x:B(m,u,t),y:B(p,g,t)},B(d,S,t))}}if(s==="transformOrigin"){var n,a,l,o;let c=(n=(a=String(e).match(/[+-]?([0-9]*[.])?[0-9]+/g))==null?void 0:a.map(p=>+p))!=null?n:[],h=(l=(o=String(i).match(/[+-]?([0-9]*[.])?[0-9]+/g))==null?void 0:o.map(p=>+p))!=null?l:[];return c.map((p,u)=>`${L(c[u],h[u],t/100)}%`).join(" ")}return null}destroy(){this.stop(),this.element.style.removeProperty("opacity"),this.element.style.removeProperty("clip-path"),this.element.style.removeProperty("transform"),this.element.style.removeProperty("transform-origin")}};V.libs=["/_s/lib/anime/anime.min.js"];var U=class extends D{};U.libs=["/_s/lib/lottie-player/lottie-player.min.js"];var q=class{constructor(t){this.interaction=void 0,this.interaction=t}async setProgress(t,e=0,i=!1){return await this.interaction.setProgress(t,i,e),!0}async activateStep(t,e="start",i=!1){return await this.interaction.activateStep(t,e,i),!0}async play(t){return this.interaction.toggleFixed(!1),this.interaction.activeAnimationIteration=0,await this.interaction.chainedInteractionHandler(t,!1),!0}async playStep(t,e){return t!=null&&await this.activateStep(t),this.interaction.playStep(e)}stop(){return this.interaction.stopAnimation()}async startSync(){return this.interaction.startPreview()}stopSync(){return this.interaction.stopPreview(!0)}};var N,Wt=["opacity","clip-path","transform","transform-origin"],Jt=["position","top","left","width","min-width","max-width","height","min-height","max-height","flex-basis","margin"],w=class{static get activeInteractions(){return this.list.filter(t=>!t.hasInteractivityState("isSuspended"))}static expectIntersection(t){this.checkIntersection(t),this.pendingIntersections.push(t)}static checkIntersection(t){if(t.intersectionLinePosition==null||!t.hasInteractivityState("scrollContainerInShow"))return;let{triggerElementOffsetBound:e,scrollContainer:i,intersectionLinePosition:s}=t,n=t.hasInteractivityState("wasIntersection"),a="out";s>=e.top-i.scrollTop&&(a="in"),typeof t.options.normalizeIntersectionState=="function"&&(a=t.options.normalizeIntersectionState(a,t)),!n&&a==="in"?setTimeout(()=>{t.setInteractivityState({wasIntersection:!0}),t.triggerIntersection("in")},1):n&&a==="out"&&setTimeout(()=>{t.setInteractivityState({wasIntersection:!1}),t.triggerIntersection("out")},1)}static init(){if(this.inited)return;this.inited=!0,document.addEventListener("documentresized",this.resizeHandler),window.addEventListener("resize",this.resizeHandler);let t=document.createElement("style");t.innerHTML=".interactivity-pointerless, .interactivity-pointerless * { pointer-events: none !important; user-select: none !important; } .interactivity-cursor-pointer { cursor: pointer !important; } .interactivity-user-select-none { user-select: none !important; -webkit-user-select: none !important; }",document.head.appendChild(t),this.intersectionObserver=new IntersectionObserver(e=>{e.forEach(i=>
14{let s=J(i.target);this.getInstances({scrollContainer:i.target}).forEach(async a=>{if(a.interactionType!=="none"&&!(a.hasInteractivityState("scrollContainerInShow")&&s)){if(a.setInteractivityState({scrollContainerInShow:s}),s)return await new Promise(l=>setTimeout(l,120)),a.updateOffsetBound(),a.updateInsectionLinePosition(),await a.createSteps(),a.updateActivityDistanceRanges(),a.startAnimation(!0),await new Promise(l=>setTimeout(l,20)),this.checkIntersection(a);a.setProgress(0),a.setInteractivityState({wasIntersection:!1}),a.stopAnimation()}})})},{rootMargin:"0px",threshold:1})}static listenScroll(t){let e=t;this.scrollContainers.includes(t)||(this.scrollContainers.push(t),e.nodeName==="HTML"&&(e=e.ownerDocument),e.addEventListener("scroll",()=>{this.pendingIntersections.forEach(i=>{i.scrollContainer===t&&this.checkIntersection(i)}),this.activeInteractions.forEach(i=>{i.scrollContainer===t&&i.interactionType==="scroll"&&!i.hasInteractivityState("inPlay")&&i.scrollInteractionHandler()})}),this.intersectionObserver.observe(t))}static async create(t,e={}){this.inited||this.init();let i=new Z(t);return await i.init(e),this.list.push(i),i}static remove({interaction:t,id:e}){var i;return!t&&!e?!1:(e=e??t.id,t=t??this.getInstances({id:e})[0],t.stopAnimation(!0,!0),t.removePointerLess(),Jt.forEach(s=>t.element.style.removeProperty(s)),(i=t.fixedReplacementElement)==null||i.remove(),t.steps.forEach(s=>s.animation.destroy()),this.list.splice(this.list.findIndex(s=>s.id===e),1),!0)}static removeAnimationStyles(t){t&&Wt.forEach(e=>t.style.removeProperty(e))}static getInstances({id:t,element:e,scrollContainer:i}){return t?this.list.filter(s=>s.id===t)||[]:e?this.list.filter(s=>s.element===e)||[]:i?this.list.filter(s=>s.scrollContainer===i)||[]:[]}};N=w;w.inited=!1;w._resizeTimeout=null;w._fixedResizeTimeout=null;w.scrollContainers=[];w.list=[];w.pendingIntersections=[];w.intersectionObserver=void 0;w.resizeHandler=yt(()=>{clearTimeout(N._resizeTimeout),N._resizeTimeout=setTimeout(()=>{N.activeInteractions.forEach(r=>{r.hasInteractivityState!=null&&r.hasInteractivityState("inFixed")||r.updateOffsetBound(),r.interactionSettings.intersectionLine&&(r.updateInsectionLinePosition(),r.interactionType==="scroll"&&!r.hasInteractivityState("inPlay")&&(r.interactionSettings.fixed&&r.updateInitialValues(),r.scrollInteractionHandler(!0)))})},100),clearTimeout(N._fixedResizeTimeout),N.activeInteractions.forEach(r=>{r.hasInteractivityState!=null&&r.hasInteractivityState("inFixed")&&(r.stopAnimation(!0,!0),r.updateOffsetBound(),r.interactionSettings.intersectionLine&&r.updateInsectionLinePosition())})},50);var Gt={lottie:U,css:V},Z=class r extends w{get skewIsNotAvailable(){return this.animationType==="css"&&this.interactionType==="scroll"&&this.interactionSettings.seekMode==="play"&&this.interactionSettings.retriggerBehavior==="reverse"}get progressMap(){return this.steps.map(t=>{var e;return(t==null||(e=t.progressRange)==null?void 0:e[1])||0})}get allowFixed(){return this.interactionType==="scroll"&&this.interactionSettings.seekMode==="seek"}get allowNativePositionFixed(){var t;return(t=this.options.allowNativePositionFixed)!=null?t:!0}constructor(t){super(),this.isTouch="ontouchstart"in window||navigator.maxTouchPoints>0,this._smoothingTimeout=null,this._maxElementOffsetTop=1/0,this._lastRetriggerBehavior=null,this._initialPositionType=null,this._initialTopValue=null,this.api=void 0,this.id=void 0,this.options=void 0,this.element=void 0,this.fixedReplacementElement=void 0,this.elementOffsetBound=void 0,this.triggerElementOffsetBound=void 0,this.scrollContainer=void 0,this.interactionType=void 0,this.interactionSettings=void 0,this.animationType=void 0,this.steps=[],this.animationModule=void 0,this.activeStep=void 0,this.activeStepIndex=void 0,this.activeAnimationIteration=0,this.state={inPlay:!1,inSeek:!1,isInited:!1,inFixed:!1,isCompleted:!1,isSuspended:!1,inReverse:!1,inReverseBehaviour:!1,scrollContainerInShow:!1,wasIntersection:!1,preventCursorPointer:!1},this.eventsAbortController=void 0,this.intersectionLinePosition=void 0,this.initialDomMatrix=void 0,this.progress=0,this.normalizeOptions=void 0,this.normalizeOptions=t.normalizeOptions||(e=>e),this.options=this.normalizeOptions(t)||t,this.id=this.options.id||j(6),this.updateInteractivityFields()}suspend(){this.hasInteractivityState("isSuspended")||(this.stopAnimation(),this.setInteractivityState({isSuspended:!0}))}go(){this.hasInteractivityState("isSuspended")&&(this.updateOptions(this.options),this.setInteractivityState({isSuspended:!1}),this.startAnimation())}updateInteractivityFields(){this.element=it(this.options.element)[0],this.scrollContainer=Et(this.element),this.interactionType=this.options.interactionType,this.interactionSettings={seekAxis:"x",seekMode:"seek",retriggerBehavior:"restart",intersectionLineOffset:0,...this.options.interactionSettings},this.animationType=this.options.animationType,this.animationModule=Gt[this.animationType]}async updateOptions(t,e=!1){let i=typeof t.steps=="object"&&JSON.stringify(t.steps)!==JSON.stringify(this.options.steps),s=typeof t.interactionSettings=="object"&&JSON.stringify(t.interactionSettings)!==JSON.stringify(this.options.interactionSettings),n={...this.options,...t};return(this.options.interactionSettings.seekMode!==n.interactionSettings.seekMode||this.options.interactionSettings.retriggerBehavior!==n.interactionSettings.retriggerBehavior||this.options.interactionType!==n.interactionType)&&(i=!0),this.options=this.normalizeOptions(n)||n,this.updateInteractivityFields(),this.createInteractivitySettings(),(s||e)&&(this.updateOffsetBound(),this.updateInsectionLinePosition()),(i||e)&&(await this.createSteps(),this.updateActivityDistanceRanges()),this.toggleFixed(x(this.progress,[0,100])&&this.interactionSettings.fixed,!0),this.updateScrollPosition(),this.updatePointerLess(),this.updateCursorPointer(),this.updateProgressRanges(),this.triggerChange(),this}updateStyles(){this.hasStepState("inPlay")||this.seek(),this.interactionType==="scroll"&&this.scrollInteractionHandler(!0)}async activateStep(t,e="end",i=!1){var s;if((s=this.steps)!=null&&s.length){let n=typeof t=="string"?this.steps.find(a=>a.name===t):this.steps[t];if(n){let{animation:a,progressRange:l}=n,{animationParams:o,iterationsMap:c}=a,h=e==="end"?l[1]:l[0];if(e==="end"&&o.playMode==="bounce"){let m=c[c.length-1],p=(l[1]-l[0])*(m.progressRange[1]-m.progressRange[0])/100;h-=p}return this.setProgress(h,i)}}return this.activeStep&&this.activeStep.animation.destroy(),this.activeStepIndex=-1,this.activeStep=null,this.progress=-1,this.triggerChange(),{progress:this.progress,progressInStep:0,step:this.activeStep,stepIndex:this.activeStepIndex}}async setProgress(t,e=!0,i=0){this.stopAnimationStep(),t=A(0,t,100);let s=this.steps.findIndex(n=>x(t,n.progressRange));if(s!==-1){let{progressRange:n}=this.steps[s],a=(t-n[0])/(n[1]-n[0]||1)*100;return this.progress=t,await this.setActiveStep(s),i&&(clearTimeout(this._smoothingTimeout),this.startSmooting(i)),this.activeStep.animation.seek(a),i&&(await new Promise(l=>{this._smoothingTimeout=setTimeout(()=>l(!0),i*1e3)}),this.interactionType==="scroll"&&this.interactionSettings.seekSmoothing?this.startSmooting(this.interactionSettings.seekSmoothing):this.resetTransition()),e&&(this.toggleFixed(x(t,[0,100])&&this.interactionSettings.fixed,!0),this.updateScrollPosition()),this.triggerChange(),{progress:t,progressInStep:a,step:this.steps[s],stepIndex:s}}return null}async startPreview(){return this.hasInteractivityState("isSuspended")?(this._lastRetriggerBehavior=this.options.interactionSettings.retriggerBehavior,this._maxElementOffsetTop=1/0,this.updateOptions({...this.options,interactionSettings:{...this.options.interactionSettings,retriggerBehavior:"reverse"}},!0),this.setInteractivityState({isSuspended:!1}),await this.startAnimation(),this.seek(0),this.updateScrollPosition(),this.triggerStartPreview(),!0):!1}stopPreview(t){if(this.hasInteractivityState("isSuspended"))return!1;if(this.toggleFixed(!1,!0),t){let e=this.triggerElementOffsetBound.top-this.scrollContainer.scrollTop,{activityDistanceRange:i}=this.activeStep,s=e-Math.min(...i),n=Math.max(Math.abs(i[0]-i[1]),1),a=100-(s/n||0)*100;this.seek(a,this.interactionSettings.fixed&&this.allowFixed&&!this.allowNativePositionFixed?this.getFixedOffsetTop(a):0)}return this.stopAnimation(),this._lastRetriggerBehavior&&(this.updateOptions({...this.options,interactionSettings:{...this.options.interactionSettings,retriggerBehavior:this._lastRetriggerBehavior}},!0),this._lastRetriggerBehavior=null),this.setInteractivityState({isSuspended:!0}),this.triggerStopPreview(),!0}async playStep(t={}){return this.activeStep?(await this.activateStep(this.activeStepIndex||1),await this.play({forceRestart:!0,resetProgress:!0,animationParams:t}),!0):!1}async playAll(t=!1){return this.stopAnimation(),this.activeAnimationIteration=0,await this.setProgress(t?100:0,!1),await this.chainedInteractionHandler(t,!0),!0}stopAnimationStep(t=!0,e=!0){return this.activeStep?(this.activeStep.animation.stop(),e&&this.hasStepState("inPlay")&&(this.triggerStepLoopComplete(),this.triggerStepComplete(),this.setStepState({inPlay:!1}
14)),t&&this.setInteractivityState({inPlay:!1}),this.updatePointerLess(),!0):!1}stopAnimation(t=!1,e=!0){if(this.stopAnimationStep(!0,e),this.setInteractivityState({inPlay:!1}),this.resetTransition(),t){var i;(i=this.eventsAbortController)==null||i.abort()}return!0}async init({suspended:t}={}){t=t??!1,this.createInteractivitySettings(),this.updateOffsetBound(),this.animationModule.libsLoaded||await this.animationModule.loadLibs(),r.listenScroll(this.scrollContainer),await this.createSteps(),this.updateInsectionLinePosition(),this.updateCursorPointer(),this.setInteractivityState({isInited:!0,isSuspended:t,scrollContainerInShow:J(this.scrollContainer)}),this.initPublicApi(),this.triggerInited(),t||this.startAnimation(!0)}initPublicApi(){let t=this.animationType==="css"?"animation":`${this.animationType}Animation`;this.api=new q(this),this.element[t]=this.api}async createSteps(){this.updateInitialDomMatrix(),this.steps=this.options.steps.map(({animationParams:t,...e})=>({pointerEvents:!0,distance:0,...e,id:e.id||j(),state:{inSeek:!1,inPlay:!1,isCompleted:!1,isLoopCompleted:!1,isActive:!1}})),this.steps.reduce((t,e,i)=>{let s={...this.options.steps[i].animationParams};return s&&this.skewIsNotAvailable&&(s.skewX=0,s.skewY=0),this.interactionType==="scroll"&&this.interactionSettings.seekMode==="play"&&(s.loop=1,s.delay=0,s.playMode="normal"),e.animation=this.animationModule.create({element:this.element,animationParams:s,initialAnimationFrame:t!=null&&t.animation?t.animation.endFrame:null,initialDomMatrix:this.initialDomMatrix,onChange:()=>{this.updateTotalProgress(),this.triggerChange()}}),e},null),await Promise.all(this.steps.map(async t=>t.animation.init())),this.updateProgressRanges()}createInteractivitySettings(){var t,e;let i=[];(t=this.interactionSettings.triggerElements)!=null&&t.length&&(i=St(this.interactionSettings.triggerElements.map(s=>s==="%current%"?this.element:It(s)?s:it(s,this.scrollContainer,this.element)).flat().filter(s=>s))),(!((e=this.interactionSettings.triggerElements)!=null&&e.length)||!i.length)&&(i=[this.element]),this.interactionSettings.triggerElements=i,this.interactionSettings.retriggerBehavior==="reverse"&&(this.interactionSettings.playMode="normal")}async startAnimation(t=!0){this.hasInteractivityState("isSuspended")||(this.stopAnimation(),this.updatePointerLess(),this.resetTransition(),this.eventsAbortController=new AbortController,t&&await this.setActiveStep(0),this.interactionType==="none"?requestAnimationFrame(()=>{this.chainedInteractionHandler()}):this.interactionType==="click"?this.startOnClick():this.interactionType==="hold"?this.startOnHold():this.interactionType==="hover"?this.isTouch?this.startOnHold():this.startOnHover():this.interactionType==="screen"?this.startOnScreen():this.interactionType==="scroll"?this.startOnScroll():this.interactionType==="cursor"?this.startOnCursor():this.interactionType==="trigger"&&this.startOnTrigger())}async setActiveStep(t,e={}){let{fromSnapshot:i,force:s}=e;if(x(t,[0,this.steps.length-1])){let n=this.steps[t];return(s||this.activeStepIndex!==t)&&(this.activeStep&&(this.stopAnimationStep(!1),this.setStepState({inSeek:!1,inPlay:!1,isCompleted:!0,isLoopCompleted:!1,isActive:!1})),await n.animation.activateAnimation({fromSnapshot:i})),this.activeStepIndex=t,this.activeStep=n,this.setStepState({inSeek:!1,inPlay:!1,isCompleted:!1,isLoopCompleted:!1,isActive:!0}),!0}return!1}triggerHandler(t,e=null,i={}){e=e||t;let{triggerElements:s,retriggerBehavior:n}=this.interactionSettings,a=t===e;i={listenReverseOnDocument:!1,reverseTriggerRestart:!0,elements:s,...i};let l=!1,o=!0,c=!0,h=()=>{if(o||n==="restart")i.onStartHandler==null||i.onStartHandler(),this.chainedInteractionHandler(!1,!0);else if(n==="pause")this.hasInteractivityState("isCompleted")||(l?(this.chainedInteractionHandler(),this.triggerAnimationUnpause()):(this.stopAnimation(!1,!1),this.triggerAnimationPause(),this.triggerStepLoopComplete()));else if(n==="reverse"){let u=!this.hasInteractivityState("inReverseBehaviour");!u&&l?(i.onStartHandler==null||i.onStartHandler(),this.chainedInteractionHandler()):u&&!l&&(i.onReverseHandler==null||i.onReverseHandler(),this.triggerStepLoopComplete(),this.chainedInteractionHandler(!0))}else n==="reset"&&(l?(i.onStartHandler==null||i.onStartHandler(),this.chainedInteractionHandler(!1,!0)):(this.stopAnimationStep(),this.activateStep(0),this.setInteractivityState({inReverseBehaviour:!1})))},m=u=>{!u.isTrusted&&(u instanceof MouseEvent||u instanceof PointerEvent)||(l=a?!l:!0,h(),o=!1,c=!1)},p=u=>{!u.isTrusted&&(u instanceof MouseEvent||u instanceof PointerEvent)||c||!i.reverseTriggerRestart&&n==="restart"||(l=!1,setTimeout(()=>{h()},1))};
14i.elements.forEach(u=>{let g=/touch/.test(t)||/touch/.test(e);u.addEventListener(t,m,{signal:this.eventsAbortController.signal}),!a&&!i.listenReverseOnDocument&&u.addEventListener(e,p,{signal:this.eventsAbortController.signal}),g&&u.addEventListener("contextmenu",d=>(d.preventDefault(),d.stopPropagation(),!1),{signal:this.eventsAbortController.signal}),this.changeUserSelect(!g,u)}),i.listenReverseOnDocument&&document.addEventListener(e,p,{signal:this.eventsAbortController.signal})}startOnClick(){let t=this.interactionSettings.retriggerBehavior==="none",e=this.isTouch?"touchstart":"click";this.triggerHandler(e,e,{onStartHandler:()=>{t&&!this.hasInteractivityState("preventCursorPointer")&&(this.setInteractivityState({preventCursorPointer:!0}),this.updateCursorPointer())}})}startOnHold(){let t=this.interactionSettings.retriggerBehavior==="none",e=this.isTouch?"touchstart":"pointerdown",i=this.isTouch?"touchend":"pointerup";this.triggerHandler(e,i,{listenReverseOnDocument:!0,reverseTriggerRestart:!1,onStartHandler:()=>{t&&!this.hasInteractivityState("preventCursorPointer")&&(this.setInteractivityState({preventCursorPointer:!0}),this.updateCursorPointer())}})}startOnHover(){this.triggerHandler("pointerenter","pointerleave",{reverseTriggerRestart:!1})}startOnTrigger(){let{triggerEvent:t,triggerAnimationItem:e}=this.interactionSettings;e&&(t=`${e}:${t}`),this.triggerHandler(t,t)}async startOnScreen(){this.triggerHandler("intersection-in","intersection-out",{elements:[this.element]}),this.hasInteractivityState("wasIntersection")?this.chainedInteractionHandler():r.expectIntersection(this)}async startOnScroll(){this.interactionSettings.fixed&&this.updateInitialValues(),await this.setActiveStep(0),this.scrollInteractionHandler(!0),this.interactionSettings.seekMode==="seek"&&setTimeout(()=>{this.startSmooting()},20)}async startOnCursor(){this.cursorInteractionHandler(),this.element.ownerDocument.addEventListener("pointermove",t=>{this.cursorInteractionHandler(t)},{signal:this.eventsAbortController.signal}),this.interactionSettings.seekMode==="seek"&&setTimeout(()=>{this.startSmooting()},20)}async cursorInteractionHandler(t={clientX:0,clientY:0}){let{seekAxis:e,seekMode:i}=this.interactionSettings,{left:s}=this.triggerElementOffsetBound,n=this.triggerElementOffsetBound.top,a=e==="x"?t.clientX-s:t.clientY-n,l=this.steps.findIndex(o=>x(a,o.activityDistanceRange));if(l!==this.activeStepIndex&&await this.setActiveStep(l),i==="seek"){let{activityDistanceRange:o}=this.activeStep,c=a-Math.min(...o),h=Math.abs(o[0]-o[1]),m=A(0,(c/h||0)*100,100);this.seek(m)}}async chainedInteractionHandler(t=!1,e=!1){this.stopAnimationStep(!1,!1),e&&(await this.setActiveStep(0),this.activeAnimationIteration=0),this.hasInteractivityState("inPlay")||this.triggerAnimationStart(),this.setInteractivityState({inPlay:!0,inReverseBehaviour:!!t,isCompleted:!1});let{loop:i,playMode:s}
14=this.interactionSettings,n=i&&typeof i=="number"?i:1/0,a=i===!0?-1/0:0,l=s==="bounce"?n*2:n,o=this.hasInteractivityState("inReverseBehaviour"),c=!0,h=!0,m=null,p=0;for(this.activeAnimationIteration=A(a,this.activeAnimationIteration||0,l-1);this.activeAnimationIteration>=a&&this.activeAnimationIteration<l;){this.setInteractivityState({inReverse:s==="bounce"?this.activeAnimationIteration%2!==0:o});let u=this.hasInteractivityState("inReverse");for(this.triggerAnimationLoopStart(),!h&&s==="normal"&&(!o&&this.activeStepIndex===this.steps.length-1&&await this.setActiveStep(0),o&&this.activeStepIndex===0&&await this.setActiveStep(this.steps.length-1));;){c||(e=!0),c=!1;let g=this.activeStep,d=this.activeStepIndex;await this.play({reverse:u,forceRestart:!0,resetProgress:e}),m=g,p=u?0:100;let S=d+(u?-1:1);if(!await this.setActiveStep(S))break}this.triggerAnimationLoopComplete(),this.activeAnimationIteration+=o?-1:1,h=!1}if(this.setInteractivityState({inPlay:!1,inReverse:!1,isCompleted:!0}),m){let{frame:u}=m.animation.percentToIteration(p);this.animationModule.completeAnimation({element:this.element,step:m,frame:u})}this.triggerAnimationComplete()}async scrollInteractionHandler(t=!1){var e;let{seekMode:i,fixed:s,reverseSeekBehavior:n}=this.interactionSettings,a=this.triggerElementOffsetBound.top-this.scrollContainer.scrollTop,l=a>this._maxElementOffsetTop,o=l&&n==="stop";if(l?o&&(a=this._maxElementOffsetTop):this._maxElementOffsetTop=a,!((e=this.steps[0].activityDistanceRange)!=null&&e.length))return;let c=this.steps[0].activityDistanceRange[0],h=this.steps[this.steps.length-1].activityDistanceRange[1],m=this.steps.findIndex(d=>x(a,d.activityDistanceRange)),p=this.activeStep,g=m<this.activeStepIndex?p.animation.animationParams:{};if(m===-1?(this.setInteractivityState({inSeek:!1}),a<h?(m=this.steps.length-1,this.hasInteractivityState("isCompleted")||(this.triggerAnimationLoopComplete(),this.triggerAnimationComplete(),this.setInteractivityState({isCompleted:!0})),i==="seek"&&(this.hasStepState("isCompleted")||(this.triggerStepComplete(),this.setStepState({isCompleted:!0})),this.hasStepState("isLoopCompleted")||(this.triggerStepLoopComplete(),this.setStepState({isLoopCompleted:!0})))):a>c&&(m=0)):this.hasInteractivityState("inSeek")||(this.setInteractivityState({inSeek:!0,isCompleted:!1}),m>this.activeStepIndex&&(this.triggerAnimationStart(),this.triggerAnimationLoopStart())),m===this.activeStepIndex){if(i==="play")return}else i==="seek"&&m>this.activeStepIndex&&(this.hasStepState("isLoopCompleted")||(this.triggerStepLoopComplete(),this.setStepState({isLoopCompleted:!0})),this.hasStepState("isCompleted")||(this.triggerStepComplete(),this.setStepState({isCompleted:!0}))),o||await this.setActiveStep(m,{fromSnapshot:i==="play"}),i==="seek"&&!this.hasStepState("inSeek")&&(this.triggerStepLoopStart(),this.triggerStepStart()),this.updatePointerLess();if(this.stopAnimationStep(),i==="seek"){let{activityDistanceRange:d}=this.activeStep,S=a-Math.min(...d),v=Math.max(Math.abs(d[0]-d[1]),1),f=100-(S/v||0)*100;f=A(0,f,100);let y=a<=c&&a>=h;a<h?f=100:a>c&&(f=0);let I=s&&y&&x(f,[1e-7,100]),P=(!I&&!this.allowNativePositionFixed||!this.allowNativePositionFixed)&&this.allowFixed||o&&!this.allowNativePositionFixed?this.getFixedOffsetTop(f):0;this.setStepState({inSeek:!0}),this.activeStep.animation.seek(f,P),this.toggleFixed(I&&!o,t,f)}else i==="play"&&this.play({resetProgress:!0,forceRestart:!0,animationParams:{...this.activeStep.animation.animationParams,...g,transformOrigin:"center"}})}toggleFixed(t,e=!1,i){if(this.hasInteractivityState("isSuspended"))return;let s=this.hasInteractivityState("inFixed");if(e=s!==t||e,t&&this.allowFixed&&this.allowNativePositionFixed){if(s||(this.setInteractivityState({inFixed:!0}),this.triggerFixed()),!s||e){let o=getComputedStyle(this.element),c=["relative","static"].includes(o.position),h=`${this.elementOffsetBound.width}px`,m=`${this.elementOffsetBound.height}px`,p=this.elementOffsetBound.top-this.triggerElementOffsetBound.top;if(c){let u=`${o.marginTop} ${o.marginRight} ${o.marginBottom} ${o.marginLeft}`;this.fixedReplacementElement||(this.fixedReplacementElement=document.createElement("div"),this.element.before(this.fixedReplacementElement)),this.fixedReplacementElement.style.setProperty("visibility","hidden"),this.fixedReplacementElement.style.setProperty("pointer-events","none"),this.fixedReplacementElement.style.setProperty("margin",u,"important"),this.fixedReplacementElement.style.setProperty("width",h,"important"),this.fixedReplacementElement.style.setProperty("height",m,"important")}this.element.style.setProperty("width",h,"important"),this.element.style.setProperty("min-width",h,"important"),this.element.style.setProperty("max-width",h,"important"),this.element.style.setProperty("height",m,"important"),this.element.style.setProperty("min-height",m,"important"),this.element.style.setProperty("max-height",m,"important"),this.element.style.setProperty("flex-basis","unset","important"),this.element.style.setProperty("margin","0","important"),this.element.style.setProperty("position","fixed","important"),this.element.style.setProperty("top",`${M(this.intersectionLinePosition,this.scrollContainer.clientHeight,"%")+p}px`,"important"),this.element.style.setProperty("left",`${this.elementOffsetBound.left}px`,"important")}}else{if(s&&(this.setInteractivityState({inFixed:!1}),this.triggerUnfixed()),(s||e)&&(this.element.style.removeProperty("position"),this.element.style.removeProperty("top"),this.element.style.removeProperty("left"),this.element.style.removeProperty("width"),this.element.style.removeProperty("min-width"),this.element.style.removeProperty("max-width"),this.element.style.removeProperty("height"),this.element.style.removeProperty("min-height"),this.element.style.removeProperty("max-height"),this.element.style.removeProperty("flex-basis"),this.element.style.removeProperty("margin"),this.interactionSettings.fixed&&this.allowFixed&&this.allowNativePositionFixed)){var n,a;let o=(n=i??((a=this.activeStep)==null||(a=a.animation)==null?void 0:a.progress))!=null?n:this.progress;this.element.style.setProperty("position",this._initialPositionType==="absolute"?"absolute":"relative","important"),this.element.style.setProperty("top",`${E(this._initialTopValue)+this.getFixedOffsetTop(o)}px`)}if(this.fixedReplacementElement){var l;(l=this.fixedReplacementElement)==null||l.remove(),this.fixedReplacementElement=null}}}startSmooting(t=0,e="ease-out"){let{seekSmoothing:i}=this.interactionSettings;this.element.style.setProperty("transition",`transform ${t||i}s ${e}, opacity ${t||i}s ${e}, clip-path ${t||i}s ${e}`,"important")}resetTransition(){this.element.style.setProperty("transition","transform 0s linear, opacity 0s linear, clip-path 0s linear","important")}getFixedOffsetTop(t){let{activityDistanceRange:e}=this.activeStep||{},{fixed:i}=this.interactionSettings;return!i||!e?0:-L(e[0],e[1],A(0,t/100,1))+this.intersectionLinePosition}getWindowClientHeight(){var t,e;let i=(t=this.scrollContainer.ownerDocument)!=null?t:document;return((e=i.scrollingElement)!=null?e:i.documentElement).clientHeight}async play(t={}){let{forceRestart:e,resetProgress:i,reverse:s,animationParams:n}=t;return!e&&this.hasStepState("inPlay")?!1:(await this.activeStep.animation.play({resetProgress:i,reverse:s,animationParams:n,onStart:()=>{this.hasStepState("inPlay")||this.triggerStepStart(),this.setStepState({inPlay:!0,isCompleted:!1}),this.updatePointerLess()},onLoopStart:()=>{this.triggerStepLoopStart(),this.setStepState({isLoopCompleted:!1})},onLoopComplete:()=>{this.setStepState({isLoopCompleted:!0}),this.triggerStepLoopComplete()},onComplete:()=>{this.setStepState({inPlay:!1,isCompleted:!0}),this.triggerStepComplete()}}),!0)}async seek(t,e=0){requestAnimationFrame(()=>{this.setStepState({inSeek:!0}),this.activeStep.animation.seek(t,e)})}updateProgressRanges(){let{seekMode:t}=this.interactionSettings,i=["scroll"].includes(this.interactionType)&&t==="seek",s=this.getWindowClientHeight(),n=this.steps.reduce((a,l)=>{if(i){let{height:o}=this.elementOffsetBound,c=M(l.distance||1,s+o,"%");return a+c}return a+l.animation.valueForProgressFartor},0);this.steps.reduce((a,l,o)=>{let c=(o+1)/this.steps.length*(100+a),h=l.animation.valueForProgressFartor,m=this.getWindowClientHeight();if(i){let{height:p}=this.elementOffsetBound;h=M(l.distance||1,m+p,"%")}return n&&(c=A(0,a+h/n*100,100)),this.steps.length-1===o&&(c=Math.round(c)),l.progressRange=[a,c],c},0)}updateInsectionLinePosition(){let{intersectionLine:t,intersectionLineOffset:e}=this.interactionSettings,i=this.getWindowClientHeight(),s=M(e,i,"%"),n={top:0,center:.5,bottom:1};t&&(this.intersectionLinePosition=this.scrollContainer.clientHeight*n[t]+s,this.intersectionLinePosition>
14this.triggerElementOffsetBound.top&&(this.intersectionLinePosition=this.triggerElementOffsetBound.top),this.updateActivityDistanceRanges())}updateActivityDistanceRanges(){if(this.interactionType==="scroll"||this.interactionType==="screen"){let t=this.getWindowClientHeight();this.steps.forEach((e,i,s)=>{let n=s[i-1],a=this.intersectionLinePosition,l=M(e.distance,t,"%");n&&n.activityDistanceRange&&(a=n.activityDistanceRange[1]),e.activityDistanceRange=[a,a-l]})}else if(this.interactionType==="cursor"){let{seekAxis:t}=this.interactionSettings,{height:e,width:i}=this.triggerElementOffsetBound,s=t==="x"?i:e;this.steps.forEach((n,a,l)=>{let o=l[a-1],c=0,h=M(n.distance,s,"%");o&&o.activityDistanceRange&&(c=o.activityDistanceRange[1]),n.activityDistanceRange=[c,c+h]})}}updateInitialDomMatrix(){this.initialDomMatrix=At(this.element)}updateScrollPosition(){if(this.interactionType!=="scroll"||this.hasInteractivityState("isSuspended"))return;let t=this.activeStep.animation.progress,{activityDistanceRange:e}=this.activeStep;if(!e)return;let i=-L(e[0],e[1],t/100),s=this.triggerElementOffsetBound.top+i;s>0&&requestAnimationFrame(()=>{this.scrollContainer.scrollTop=s})}updateOffsetBound(){var t,e;let i=this.interactionSettings.triggerElements[0],s=typeof i!="string"&&i?i:void 0;this.fixedReplacementElement&&this.fixedReplacementElement.style.setProperty("display","none"),s!=null&&(t=s.animation)!=null&&(t=t.interaction)!=null&&t.fixedReplacementElement&&s.animation.interaction.fixedReplacementElement.style.setProperty("display","none");let n=rt(this.element),a=s&&s!==this.element?rt(s):n;this.elementOffsetBound=n,this.triggerElementOffsetBound=a,s!=null&&(e=s.animation)!=null&&(e=e.interaction)!=null&&e.fixedReplacementElement&&s.animation.interaction.fixedReplacementElement.style.removeProperty("display"),this.fixedReplacementElement&&this.fixedReplacementElement.style.removeProperty("display")}updateInitialValues(){let t=this.element.style.top,e=this.element.style.position;this.element.style.removeProperty("top"),this.element.style.removeProperty("position");let i=getComputedStyle(this.element);this._initialTopValue=i.top,this._initialPositionType=i.position,this.element.style.setProperty("top",t),this.element.style.setProperty("position",e)}updatePointerLess(){this.activeStep&&this.element.classList.toggle("interactivity-pointerless",!this.activeStep.pointerEvents)}removePointerLess(){this.element.classList.remove("interactivity-pointerless")}changeUserSelect(t,e=this.element){e.classList.toggle("interactivity-user-select-none",!t)}updateCursorPointer(){let t=["click","hold"].includes(this.interactionType)&&!this.hasInteractivityState("preventCursorPointer");this.interactionSettings.triggerElements.forEach(e=>{e.classList.toggle("interactivity-cursor-pointer",t)})}updateTotalProgress(){if(!this.activeStep)return;let{progressRange:t,animation:e}=this.activeStep;this.progress=L(t[0],t[1],e.progress/100)}setStepState(t,e=this.activeStep){e.state={...e.state,...t}}hasStepState(t,e=this.activeStep){return e.state[t]}setInteractivityState(t){this.state={...this.state,...t}}hasInteractivityState(t){return this.state[t]}triggerChange(){var t,e,i;(t=(e=this.options).onChange)==null||t.call(e,{progress:this.progress,progressInStep:(i=this.activeStep)==null||(i=i.animation)==null?void 0:i.progress,step:this.activeStep,stepIndex:this.activeStepIndex,elementOffsetBound:this.elementOffsetBound}),this.element.dispatchEvent(new Event("interactivity_change"))}triggerStartPreview(){var t,e;(t=(e=this.options).onStartPreview)==null||t.call(e),this.element.dispatchEvent(new Event("interactivity_start_preview"))}triggerStopPreview(){var t,e;(t=(e=this.options).onStopPreview)==null||t.call(e),this.element.dispatchEvent(new Event("interactivity_stop_preview"))}triggerStepStart(){var t,e;this.activeStep&&((t=(e=this.options).onStepStart)==null||t.call(e,{progress:this.progress,progressInStep:this.activeStep.animation.progress,step:this.activeStep,stepIndex:this.activeStepIndex}),this.element.dispatchEvent(new Event(`${this.id}:${this.activeStep.id}:start`,{bubbles:!0})))}triggerStepLoopStart(){var t,e;this.activeStep&&((t=(e=this.options).onStepLoopStart)==null||t.call(e,{progress:this.progress,progressInStep:this.activeStep.animation.progress,step:this.activeStep,stepIndex:this.activeStepIndex}),this.element.dispatchEvent(new Event(`${this.id}:${this.activeStep.id}:loopstart`,{bubbles:!0})))}triggerStepComplete(){var t,e;this.activeStep&&((t=(e=this.options).onStepComplete)==null||t.call(e,{progress:this.progress,progressInStep:this.activeStep.animation.progress,step:this.activeStep,stepIndex:this.activeStepIndex}),this.element.dispatchEvent(new Event(`${this.id}:${this.activeStep.id}:complete`,{bubbles:!0})))}triggerStepLoopComplete(){var t,e;this.activeStep&&((t=(e=this.options).onStepLoopComplete)==null||t.call(e,{progress:this.progress,progressInStep:this.activeStep.animation.progress,step:this.activeStep,stepIndex:this.activeStepIndex}),this.element.dispatchEvent(new Event(`${this.id}:${this.activeStep.id}:loopcomplete`,{bubbles:!0})))}triggerAnimationStart(){var t,e;(t=(e=this.options).onAnimationStart)==null||t.call(e,{progress:this.progress,progressInStep:this.activeStep.animation.progress,step:this.activeStep,stepIndex:this.activeStepIndex}),this.element.dispatchEvent(new Event(`${this.id}:start`,{bubbles:!0}))}triggerAnimationPause(){var t,e;(t=(e=this.options).onAnimationPause)==null||t.call(e,{progress:this.progress,progressInStep:this.activeStep.animation.progress,step:this.activeStep,stepIndex:this.activeStepIndex}),this.element.dispatchEvent(new Event(`${this.id}:pause`,{bubbles:!0})),this.element.dispatchEvent(new Event(`${this.id}:${this.activeStep.id}:pause`,{bubbles:!0}))}triggerAnimationUnpause(){var t,e;(t=(e=this.options).onAnimationPause)==null||t.call(e,{progress:this.progress,progressInStep:this.activeStep.animation.progress,step:this.activeStep,stepIndex:this.activeStepIndex}),this.element.dispatchEvent(new Event(`${this.id}:unpause`,{bubbles:!0})),this.element.dispatchEvent(new Event(`${this.id}:${this.activeStep.id}:unpause`,{bubbles:!0}))}triggerAnimationLoopStart(){var t,e;(t=(e=this.options).onAnimationLoopStart)==null||t.call(e,{progress:this.progress,progressInStep:this.activeStep.animation.progress,step:this.activeStep,stepIndex:this.activeStepIndex}),this.element.dispatchEvent(new Event(`${this.id}:loopstart`,{bubbles:!0}))}triggerAnimationComplete(){var t,e;(t=(e=this.options).onAnimationComplete)==null||t.call(e,{progress:this.progress,progressInStep:this.activeStep.animation.progress,step:this.activeStep,stepIndex:this.activeStepIndex}),this.element.dispatchEvent(new Event(`${this.id}:complete`,{bubbles:!0}))}triggerAnimationLoopComplete(){var t,e;(t=(e=this.options).onAnimationLoopComplete)==null||t.call(e,{progress:this.progress,progressInStep:this.activeStep.animation.progress,step:this.activeStep,stepIndex:this.activeStepIndex}),this.element.dispatchEvent(new Event(`${this.id}:loopcomplete`,{bubbles:!0}))}triggerFixed(){var t,e;(t=(e=this.options).onFixed)==null||t.call(e),this.element.dispatchEvent(new Event(`${this.id}:fixed`,{bubbles:!0}))}triggerUnfixed(){var t,e;(t=(e=this.options).onUnfixed)==null||t.call(e),this.element.dispatchEvent(new Event(`${this.id}:unfixed`,{bubbles:!0}))}triggerInited(){var t,e;(t=(e=this.options).onInited)==null||t.call(e),this.element.dispatchEvent(new Event(`${this.id}:inited`,{bubbles:!0})),this.element.dispatchEvent(new Event("onAnimationInited"))}triggerIntersection(t="in"){var e,i;(e=(i=this.options).onIntersection)==null||e.call(i,t),this.element.dispatchEvent(new Event("intersection",{bubbles:!1})),this.element.dispatchEvent(new Event(`intersection-${t}`,{bubbles:!1}))}};window.Interactivity||(window.Interactivity=Z);export{Z as default};

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.