SR7.F.layerIX??=function(){const e=new Map,t={x:0,y:0,inside:!1};let n=!1,s=0;const a=(e,t,n)=>e+(t-e)*n,r=e=>{t.x=e.clientX,t.y=e.clientY,t.inside=!0},i=()=>{t.inside=!1};function c(){e.size&&!n?(document.addEventListener("pointermove",r,{passive:!0}),window.addEventListener("blur",i),n=!0,s=requestAnimationFrame(x)):!e.size&&n&&(document.removeEventListener("pointermove",r),window.removeEventListener("blur",i),n=!1,s&&(cancelAnimationFrame(s),s=0))}const o={smooth:["power3.out",.5],back:["back.out(2)",.6],elastic:["elastic.out(1,0.35)",.95],bounce:["bounce.out",.8]};function l(e){const t=e.el.getBoundingClientRect();if(e.cx=t.left+t.width/2-(e.cur.x||0),e.cy=t.top+t.height/2-(e.cur.y||0),e.hw=t.width/2,e.hh=t.height/2,"tilt"===e.cfg.type){const t=e.el.parentElement;if(t){t.style.perspective=(e.cfg.perspective||800)+"px";const n=t.getBoundingClientRect();t.style.perspectiveOrigin=(e.cx-n.left).toFixed(0)+"px "+(e.cy-n.top).toFixed(0)+"px"}}}function u(e){const t=e.cur,n=e.el.style,s="tilt"===e.cfg.type;n.translate=Math.abs(t.x)<.01&&Math.abs(t.y)<.01?"":t.x.toFixed(2)+"px "+t.y.toFixed(2)+"px",n.scale=Math.abs(t.sx-1)<.001&&Math.abs(t.sy-1)<.001?"":t.sx.toFixed(4)+" "+t.sy.toFixed(4),n.rotate=Math.abs(t.ang)<.01?"":s?t.ax.toFixed(3)+" "+t.ay.toFixed(3)+" 0 "+t.ang.toFixed(2)+"deg":t.ang.toFixed(2)+"deg"}function x(){s=requestAnimationFrame(x),e.forEach(e=>{7&e.frame++||l(e);const n=e.cfg,s=e.cur,r=Math.min(1,(n.speed||12)/60);let i=!1,c=0,x=0,y=1,p=1,g=0,d=s.ax,h=s.ay;if(e.enabled&&t.inside){const s=t.x-e.cx,a=t.y-e.cy,r=Math.hypot(s,a),o=n.radius||200;if(r<o){i=!0;const t=1-r/o,l=n.strength||40,u=r?s/r:0,f=r?a/r:0,b=Math.min(1,(o-r)/(.3*o));switch(n.type){case"magnetic":c=s*(l/100)*b,x=a*(l/100)*b;break;case"attract":c=u*l*.7*t,x=f*l*.7*t;break;case"repel":c=-u*l*t,x=-f*l*t;break;case"squeeze":y=p=Math.max(.05,1-l/100*t);break;case"pop":y=p=1+l/100*t;break;case"stretch":{const t=l/100*1.2;y=1+Math.abs(s)/o*t*b,p=1+Math.abs(a)/o*t*b,c=Math.sign(s)*(y-1)*e.hw+s*(l/100)*.25*b,x=Math.sign(a)*(p-1)*e.hh+a*(l/100)*.25*b;break}case"tilt":{const e=r||1;d=-a/e,h=s/e,g=.6*l*t;break}case"rotate":g=s/o*l*.5*t}"x"===n.axis?x=0:"y"===n.axis&&(c=0)}}i?(e.returnTween&&(e.returnTween.kill(),e.returnTween=null),e.returning=!1,s.x=a(s.x,c,r),s.y=a(s.y,x,r),s.sx=a(s.sx,y,r),s.sy=a(s.sy,p,r),s.ang=a(s.ang,g,r),s.ax=d,s.ay=h,u(e)):e.returning||(Math.abs(s.x)>.1||Math.abs(s.y)>.1||Math.abs(s.sx-1)>.002||Math.abs(s.sy-1)>.002||Math.abs(s.ang)>.05)&&function(e){const t=e.cur,n=_tpt.gsap,s=o[e.cfg.returnEase];if(!s||!n)return t.x=t.y=t.ang=0,t.sx=t.sy=1,e.returning=!1,void u(e);e.returning=!0,e.returnTween=n.to(t,{x:0,y:0,sx:1,sy:1,ang:0,duration:s[1],ease:s[0],overwrite:!0,onUpdate:()=>u(e),onComplete:()=>{e.returning=!1,e.returnTween=null}})}(e)})}return{register(t,n,s,a){if(!t||!s||!s.type||"none"===s.type)return;if(SR7.E.backend&&!a)return;if("tilt"===s.type){const e=t.parentElement;e&&!e.style.perspective&&(e.style.perspective=(s.perspective||1e3)+"px")}const r=e.get(n);if(r&&r.el===t&&r.cfg.type===s.type)return void(r.cfg=s);this.unregister(n);const i={el:t,cfg:s,frame:0,enabled:!0,cur:{x:0,y:0,sx:1,sy:1,ang:0,ax:0,ay:0}};l(i),e.set(n,i),c()},unregister(t){const n=e.get(t);n&&(n.returnTween&&n.returnTween.kill(),n.el.style.translate="",n.el.style.scale="",n.el.style.rotate="",e.delete(t)),c()},clearAll(){Array.from(e.keys()).forEach(e=>this.unregister(e))},setState(t,n){const s=e.get(t);s&&(s.enabled=!!n)}}}(),_tpt.R??={},_tpt.R.layerix=_tpt.extend?_tpt.extend(_tpt.R.layerix,{status:2,version:"7.1.0"}):{status:2,version:"7.1.0"};