import{a2 as b,a3 as f}from"./scheduler.VqJF7Vna.js";function v(a){return a*a*a}function h(a){const r=a-1;return r*r*r+1}function F(a,{delay:r=0,duration:p=400,easing:c=b}={}){const s=+getComputedStyle(a).opacity;return{delay:r,duration:p,easing:c,css:t=>`opacity: ${t*s}`}}function w(a,{delay:r=0,duration:p=400,easing:c=h,x:s=0,y:t=0,opacity:l=0}={}){const i=getComputedStyle(a),d=+i.opacity,n=i.transform==="none"?"":i.transform,e=d*(1-l),[u,y]=f(s),[_,m]=f(t);return{delay:r,duration:p,easing:c,css:($,g)=>`
			transform: ${n} translate(${(1-$)*u}${y}, ${(1-$)*_}${m});
			opacity: ${d-e*g}`}}function C(a,{delay:r=0,duration:p=400,easing:c=h,axis:s="y"}={}){const t=getComputedStyle(a),l=+t.opacity,i=s==="y"?"height":"width",d=parseFloat(t[i]),n=s==="y"?["top","bottom"]:["left","right"],e=n.map(o=>`${o[0].toUpperCase()}${o.slice(1)}`),u=parseFloat(t[`padding${e[0]}`]),y=parseFloat(t[`padding${e[1]}`]),_=parseFloat(t[`margin${e[0]}`]),m=parseFloat(t[`margin${e[1]}`]),$=parseFloat(t[`border${e[0]}Width`]),g=parseFloat(t[`border${e[1]}Width`]);return{delay:r,duration:p,easing:c,css:o=>`overflow: hidden;opacity: ${Math.min(o*20,1)*l};${i}: ${o*d}px;padding-${n[0]}: ${o*u}px;padding-${n[1]}: ${o*y}px;margin-${n[0]}: ${o*_}px;margin-${n[1]}: ${o*m}px;border-${n[0]}-width: ${o*$}px;border-${n[1]}-width: ${o*g}px;`}}export{w as a,v as b,h as c,F as f,C as s};
//# sourceMappingURL=index.BxIVa3rk.js.map
