function d(s,t){s.indexOf(t)===-1&&s.push(t)}function y(s,t){const n=s.indexOf(t);n>-1&&s.splice(n,1)}const F=(s,t,n)=>n>t?t:n<s?s:n;let I=()=>{};const P={},V=s=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(s),$=s=>typeof s=="object"&&s!==null,C=s=>/^0[^.\s]+$/u.test(s);function D(s){let t;return()=>(t===void 0&&(t=s()),t)}const l=s=>s,G=(...s)=>s.reduce((t,n)=>i=>n(t(i))),L=(s,t,n)=>{const i=t-s;return i?(n-s)/i:1};class N{constructor(){this.subscriptions=[]}add(t){return d(this.subscriptions,t),()=>y(this.subscriptions,t)}notify(t,n,i){const c=this.subscriptions.length;if(c)if(c===1)this.subscriptions[0](t,n,i);else for(let e=0;e<c;e++){const r=this.subscriptions[e];r&&r(t,n,i)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const U=s=>s*1e3,Z=s=>s/1e3,w=(s,t)=>t?s*(1e3/t):0,b=(s,t,n)=>(((1-3*n+3*t)*s+(3*n-6*t))*s+3*t)*s,M=1e-7,O=12;function S(s,t,n,i,c){let e,r,g=0;do r=t+(n-t)/2,e=b(r,i,c)-s,e>0?n=r:t=r;while(Math.abs(e)>M&&++g<O);return r}function o(s,t,n,i){if(s===t&&n===i)return l;const c=e=>S(e,0,1,s,n);return e=>e===0||e===1?e:b(c(e),t,i)}const f=s=>t=>t<=.5?s(2*t)/2:(2-s(2*(1-t)))/2,h=s=>t=>1-s(1-t),p=o(.33,1.53,.69,.99),a=h(p),x=f(a),k=s=>s>=1?1:(s*=2)<1?.5*a(s):.5*(2-Math.pow(2,-10*(s-1))),u=s=>1-Math.sin(Math.acos(s)),v=h(u),A=f(u),T=o(.42,0,1,1),m=o(0,0,.58,1),z=o(.42,0,.58,1),B=s=>Array.isArray(s)&&typeof s[0]!="number",E=s=>Array.isArray(s)&&typeof s[0]=="number",j={linear:l,easeIn:T,easeInOut:z,easeOut:m,circIn:u,circInOut:A,circOut:v,backIn:a,backInOut:x,backOut:p,anticipate:k},q=s=>typeof s=="string",H=s=>{if(E(s)){I(s.length===4);const[t,n,i,c]=s;return o(t,n,i,c)}else if(q(s))return j[s];return s};export{P as M,N as S,L as a,B as b,F as c,z as d,H as e,D as f,E as g,A as h,I as i,x as j,k,V as l,Z as m,l as n,C as o,G as p,$ as q,v as r,U as s,d as t,y as u,w as v};
