"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const t=t=>[].concat(...t),e=t=>"object"==typeof t&&!Array.isArray(t)&&"function"!=typeof t,i=t=>{for(let e in t)return!1;return!0},s=(t,e)=>{let i,s,r=Object.keys(t),a={};for(let n=0,o=r.length;n""+t,a=t=>{let e=parseFloat(t);return r(t).replace(r(e),"")},n=t=>r(t).trim(),o=t=>Array.isArray(t)||"string"==typeof t?("string"==typeof t&&(t=t.split(/\s+/)),t):[t],l=t=>Array.isArray(t)||"string"==typeof t?Boolean(t.length):null!=t&&null!=t&&!Number.isNaN(t),u=t=>"-"==(t=t.replace(/([A-Z])/g,(t=>`-${t.toLowerCase()}`))).charAt(0)?t.substr(1):t,p=t=>t.includes("--")?t:`${t}`.replace(/-([a-z])/g,((t,e)=>e.toUpperCase())),h=(t,e)=>{let i=[...t],s={...e};for(;i.length;){let{[i.pop()]:t,...e}=s;s=e}return s},c=(t,e)=>{let i=[...t],s={};for(let t of i)l(e[t])&&(s[t]=e[t]);return s},m=(...t)=>{let e=0,i=[],s=(t=t.map((t=>{let i=o(t),s=i.length;return s>e&&(e=s),i}))).length;for(let r=0;r1&&s--,a=6*s<1?e+6*(i-e)*s:2*s<1?i:3*s<2?e+(i-e)*(2/3-s)*6:e,r[u]=255*a;return r}};var d={red:0,orange:60,yellow:120,green:180,blue:240,purple:300};const y=t=>{var e,i,s=[],r=1;if("string"==typeof t)if(g[t])s=g[t].slice(),i="rgb";else if("transparent"===t)r=0,i="rgb",s=[0,0,0];else if(/^#[A-Fa-f0-9]+$/.test(t)){var a=t.slice(1);r=1,(l=a.length)<=4?(s=[parseInt(a[0]+a[0],16),parseInt(a[1]+a[1],16),parseInt(a[2]+a[2],16)],4===l&&(r=parseInt(a[3]+a[3],16)/255)):(s=[parseInt(a[0]+a[1],16),parseInt(a[2]+a[3],16),parseInt(a[4]+a[5],16)],8===l&&(r=parseInt(a[6]+a[7],16)/255)),s[0]||(s[0]=0),s[1]||(s[1]=0),s[2]||(s[2]=0),i="rgb"}else if(e=/^((?:rgb|hs[lvb]|hwb|cmyk?|xy[zy]|gray|lab|lchu?v?|[ly]uv|lms)a?)\s*\(([^\)]*)\)/.exec(t)){var n=e[1],o="rgb"===n;i=a=n.replace(/a$/,"");var l="cmyk"===a?4:"gray"===a?1:3;s=e[2].trim().split(/\s*[,\/]\s*|\s+/).map((function(t,e){if(/%$/.test(t))return e===l?parseFloat(t)/100:"rgb"===a?255*parseFloat(t)/100:parseFloat(t);if("h"===a[e]){if(/deg$/.test(t))return parseFloat(t);if(void 0!==d[t])return d[t]}return parseFloat(t)})),n===a&&s.push(1),r=o||void 0===s[l]?1:s[l],s=s.slice(0,l)}else t.length>10&&/[0-9](?:\s|\/)/.test(t)&&(s=t.match(/([0-9]+)/g).map((function(t){return parseFloat(t)})),i=t.match(/([a-z])/gi).join("").toLowerCase());else Number.isNaN(t)?Array.isArray(t)||t.length?(s=[t[0],t[1],t[2]],i="rgb",r=4===t.length?t[3]:1):t instanceof Object&&(null!=t.r||null!=t.red||null!=t.R?(i="rgb",s=[t.r||t.red||t.R||0,t.g||t.green||t.G||0,t.b||t.blue||t.B||0]):(i="hsl",s=[t.h||t.hue||t.H||0,t.s||t.saturation||t.S||0,t.l||t.lightness||t.L||t.b||t.brightness]),r=t.a||t.alpha||t.opacity||1,null!=t.opacity&&(r/=100)):(i="rgb",s=[t>>>16,(65280&t)>>>8,255&t]);return{space:i,values:s,alpha:r}},b=t=>{Array.isArray(t)&&t.raw&&(t=String.raw(...arguments));var e,i=y(t);return i.space?((e=Array(3))[0]=Math.min(Math.max(i.values[0],0),255),e[1]=Math.min(Math.max(i.values[1],0),255),e[2]=Math.min(Math.max(i.values[2],0),255),"h"===i.space[0]&&(e=f.rgb(e)),e.push(Math.min(Math.max(i.alpha,0),1)),e):[]},x=()=>({document:"document"in globalThis?globalThis.document:{},CSS:"CSS"in globalThis?globalThis.CSS:{}}),S=()=>x().document,E=()=>x().CSS,k=t=>"string"==typeof t?t.includes("%")?parseFloat(t)/100:"from"==t?0:"to"==t?1:parseFloat(t):t,A=t=>{let e=new Set,i=Object.keys(t),s=i.length;for(let r=0;rt.offset-e.offset))};class O{constructor(t){this.map=new Map(t)}getMap(){return this.map}get(t){return this.map.get(t)}keys(){return Array.from(this.map.keys())}values(){return Array.from(this.map.values())}set(t,e){return this.map.set(t,e),this}add(t){let e=this.size;return this.set(e,t),this}get size(){return this.map.size}get length(){return this.map.size}last(t=1){let e=this.keys()[this.size-t];return this.get(e)}delete(t){return this.map.delete(t)}remove(t){return this.map.delete(t),this}clear(){return this.map.clear(),this}has(t){return this.map.has(t)}entries(){return this.map.entries()}forEach(t,e){return this.map.forEach(t,e),this}[Symbol.iterator](){return this.entries()}}const w=(t="")=>e=>"string"==typeof e?e:`${e}${t}`,v=w(),I=w("px"),D=w("deg"),M=t=>e=>l(e)?o(e).map((e=>{if("number"!=typeof e&&"string"!=typeof e)return e;let i=Number(e),s=Number.isNaN(i)?"string"==typeof e?e.trim():e:i;return t(s)})):[],C=(t,e)=>o(t).map(M(e)),P=M(v),N=M(I),T=M(D),F=new O,j=(t="transparent")=>{let e;if(t=t.trim(),F.has(t))return F.get(t);if(i(E())&&(e=b(t)),!i(S())){if(!E()?.supports("background-color",t))return t;let i=S()?.createElement("div");i.style.backgroundColor=t,S()?.body.appendChild(i);let{backgroundColor:s}=globalThis?.getComputedStyle?.(i);i.remove();let r=/\(([^)]+)\)?/.exec(s)?.[1].split(",");e=(3==r.length?[...r,"1"]:r).map((t=>parseFloat(t)))}return F.set(t,e),e},q={translate3d:["--translate3d0","--translate3d1","--translate3d2"],translate:["--translate0","--translate1"],translateX:"--translateX",translateY:"--translateY",translateZ:"--translateZ",rotate3d:["--rotate3d0","--rotate3d1","--rotate3d2","--rotate3d3"],rotate:"--rotate",rotateX:"--rotateX",rotateY:"--rotateY",rotateZ:"--rotateZ",scale3d:["--scale3d0","--scale3d1","--scale3d2"],scale:["--scale0","--scale1"],scaleX:"--scaleX",scaleY:"--scaleY",scaleZ:"--scaleZ",skew:["--skew0","--skew1"],skewX:"--skewX",skewY:"--skewY",perspective:"--perspective"},z="registerProperty"in E(),R=Object.keys(q),_=(t={})=>Object.keys(t).filter((t=>R.includes(t))).map((t=>{if(!z)return"";let e=[].concat(q[t]);return e.forEach((t=>{if(globalThis.RegisteredCSSVars?.[t])return;let e={name:t,inherits:!1};/translate|perspective/i.test(t)?E()?.registerProperty?.({...e,syntax:"",initialValue:"0px"}):/rotate3d3|skew/i.test(t)?E()?.registerProperty?.({...e,syntax:"",initialValue:"0deg"}):/scale|rotate3d/i.test(t)?E()?.registerProperty?.({...e,syntax:"",initialValue:/rotate3d/i.test(t)?0:1}):/rotate/i.test(t)&&E()?.registerProperty?.({...e,syntax:"",initialValue:"0deg"}),globalThis.RegisteredCSSVars??={},globalThis.RegisteredCSSVars[t]=!0})),`${t}(${e.map((t=>`var(${t})`))})`})).join(" "),L=(t={})=>{let e={};return R.forEach((i=>{if(!(i in t))return;let s=[].concat(t[i]).filter((t=>l(t))).map((t=>"string"==typeof t&&/\s/.test(t.trim())?t.split(/\s+/):t));if(0==s.length)return;let r=[].concat(q[i]),a=s.every((t=>Array.isArray(t))),n=1==s.length&&"scale"==i;r.forEach(((t,i)=>{let r=n?0:i,o=a?m(...s)[r]:s;if(l(o)){let i=t;/translate|perspective/i.test(i)?o=N(o):/rotate3d3|skew/i.test(i)?o=T(o):/scale|rotate3d/i.test(i)||/rotate/i.test(i)&&(o=T(o)),e[t]=o}}))})),e},V="function"==typeof Float32Array,U=(t,e)=>1-3*e+3*t,K=(t,e)=>3*e-6*t,Y=t=>3*t,X=(t,e,i)=>((U(e,i)*t+K(e,i))*t+Y(e))*t,$=(t,e,i)=>3*U(e,i)*t*t+2*K(e,i)*t+Y(e),G=(t,e,i,s)=>{if(!(0<=t&&t<=1&&0<=i&&i<=1))throw new Error("bezier x values must be in [0, 1] range");if(t===e&&i===s)return t=>t;for(var r=V?new Float32Array(11):new Array(11),a=0;a<11;++a)r[a]=X(.1*a,t,i);const n=e=>{let s=0,a=1;for(;10!==a&&r[a]<=e;++a)s+=.1;--a;let n=s+.1*((e-r[a])/(r[a+1]-r[a])),o=$(n,t,i);return o>=.001?((t,e,i,s)=>{for(var r=0;r<4;++r){let r=$(e,i,s);if(0===r)return e;e-=(X(e,i,s)-t)/r}return e})(e,n,t,i):0===o?n:((t,e,i,s,r)=>{let a,n,o=0;do{n=e+(i-e)/2,a=X(n,s,r)-t,a>0?i=n:e=n}while(Math.abs(a)>1e-7&&++o<10);return n})(e,s,s+.1,t,i)};return t=>0===t||1===t?t:X(n(t),e,s)},Z=(t,e,i)=>Math.min(Math.max(t,e),i),B=t=>Math.pow(t,2),Q=t=>Math.pow(t,3),H=t=>Math.pow(t,4),W=t=>Math.pow(t,5),J=t=>Math.pow(t,6),tt=t=>1-Math.cos(t*Math.PI/2),et=t=>1-Math.sqrt(1-t*t),it=t=>t*t*(3*t-2),st=t=>{let e,i=4;for(;t<((e=Math.pow(2,--i))-1)/11;);return 1/Math.pow(4,3-i)-7.5625*Math.pow((3*e-2)/22-t,2)},rt=(t,e=[])=>{let[i=1,s=.5]=e;const r=Z(i,1,10),a=Z(s,.1,2);return 0===t||1===t?t:-r*Math.pow(2,10*(t-1))*Math.sin((t-1-a/(2*Math.PI)*Math.asin(1/r))*(2*Math.PI)/a)},at=(t,e=[],i)=>{let[s=1,r=100,a=10,n=0]=e;s=Z(s,.1,1e3),r=Z(r,.1,1e3),a=Z(a,.1,1e3),n=Z(n,.1,1e3);const o=Math.sqrt(r/s),l=a/(2*Math.sqrt(r*s)),u=l<1?o*Math.sqrt(1-l*l):0,p=l<1?(l*o-n)/u:-n+o;let h=i?i*t/1e3:t;return h=l<1?Math.exp(-h*l*o)*(1*Math.cos(u*h)+p*Math.sin(u*h)):(1+p*h)*Math.exp(-h*o),0===t||1===t?t:1-h},nt=new Map,ot=(t="spring")=>{if(nt.has(t))return nt.get(t);const e="function"==typeof t?t:dt(t),i="function"==typeof t?[]:yt(t),s=1/6;let r=0,a=0,n=0;for(;++n<1e4;)if(r+=s,1===e(r,i,null)){if(a++,a>=16)break}else a=0;const o=r*s*1e3;return nt.set(t,o),o},lt=(t,e=[])=>{let[i=10,s]=e;return("start"==s?Math.ceil:Math.floor)(Z(t,0,1)*i)/i},ut=(t,e=[])=>{let[i,s,r,a]=e;return G(i,s,r,a)(t)},pt=G(.42,0,1,1),ht=t=>(e,i=[],s)=>1-t(1-e,i,s),ct=t=>(e,i=[],s)=>e<.5?t(2*e,i,s)/2:1-t(-2*e+2,i,s)/2,mt=t=>(e,i=[],s)=>e<.5?(1-t(1-2*e,i,s))/2:(t(2*e-1,i,s)+1)/2,gt={steps:lt,"step-start":t=>lt(t,[1,"start"]),"step-end":t=>lt(t,[1,"end"]),linear:t=>t,"cubic-bezier":ut,ease:t=>ut(t,[.25,.1,.25,1]),in:pt,out:ht(pt),"in-out":ct(pt),"out-in":mt(pt),"in-quad":B,"out-quad":ht(B),"in-out-quad":ct(B),"out-in-quad":mt(B),"in-cubic":Q,"out-cubic":ht(Q),"in-out-cubic":ct(Q),"out-in-cubic":mt(Q),"in-quart":H,"out-quart":ht(H),"in-out-quart":ct(H),"out-in-quart":mt(H),"in-quint":W,"out-quint":ht(W),"in-out-quint":ct(W),"out-in-quint":mt(W),"in-expo":J,"out-expo":ht(J),"in-out-expo":ct(J),"out-in-expo":mt(J),"in-sine":tt,"out-sine":ht(tt),"in-out-sine":ct(tt),"out-in-sine":mt(tt),"in-circ":et,"out-circ":ht(et),"in-out-circ":ct(et),"out-in-circ":mt(et),"in-back":it,"out-back":ht(it),"in-out-back":ct(it),"out-in-back":mt(it),"in-bounce":st,"out-bounce":ht(st),"in-out-bounce":ct(st),"out-in-bounce":mt(st),"in-elastic":rt,"out-elastic":ht(rt),"in-out-elastic":ct(rt),"out-in-elastic":mt(rt),spring:at,"spring-in":at,"spring-out":ht(at),"spring-in-out":ct(at),"spring-out-in":mt(at)};exports.EasingFunctionKeys=Object.keys(gt);const ft=t=>u(t).replace(/^ease-/,"").replace(/(\(|\s).+/,"").toLowerCase().trim(),dt=t=>{let e=ft(r(t));return exports.EasingFunctionKeys.includes(e)?gt[e]:null},yt=t=>{const e=/(\(|\s)([^)]+)\)?/.exec(r(t));return e?e[2].split(",").map((t=>{let e=parseFloat(t);return Number.isNaN(e)?t.trim():e})):[]},bt=(t,e,i)=>e+(i-e)*t,xt=(t,e)=>Math.round(t*10**e)/10**e,St=(t,e,i=3)=>{let s=e.length-1,r=Z(Math.floor(t*s),0,s-1),a=e[r],n=e[r+1];return xt(bt((t-r/s)*s,a,n),i)},Et=t=>{let e=parseFloat(t);return"number"==typeof e&&!Number.isNaN(e)},kt=(t,e)=>{t=Z(t,0,1);let i=e.length-1;return e[Math.round(t*i)]},At=(t,e,i=3)=>{let s="";return Et(e[0])&&(s=a(e[0])),St(t,e.map((t=>"number"==typeof t?t:parseFloat(t))),i)+s},Ot=(t,e,i=3)=>m(...e.map((t=>j(t)))).map(((e,s)=>{let r=St(t,e);return s<3?Math.round(r):xt(r,i)})),wt=t=>n(t).replace(/(\d|\)|\w)\s/g,(t=>t[0]+"__")).split("__").map(n).filter(l),vt=(t,e,s=3)=>e.every((t=>"number"==typeof t))?St(t,e,s):e.every((t=>i(E())?l(b(t??null)):E()?.supports?.("color",r(t))))?`rgba(${Ot(t,e,s)})`:e.some((t=>"string"==typeof t))?e.some((t=>/(\d|\)|\w)\s/.test(n(t))))?m(...e.map(wt)).map((e=>vt(t,e,s))).join(" "):e.every((t=>Et(t)))?At(t,e,s):kt(t,e):void 0,It=(t={})=>{let e="string"==typeof t||"function"==typeof t,{easing:i="spring(1, 100, 10, 0)",numPoints:s=100,decimal:r=3,duration:a}=e?{easing:t}:t;return{easing:i,numPoints:s,decimal:r,duration:a}},Dt=new Map,Mt=({easing:t,numPoints:e,duration:i}={})=>{const s=[],r=`${t}${e}`;if(Dt.has(r))return Dt.get(r);const a="function"==typeof t?t:dt(t),n="function"==typeof t?[]:yt(t);for(let t=0;t{if("string"==typeof t.easing){let e=ft(t.easing);/(spring|spring-in)$/i.test(e)&&(t.duration=ot(t.easing))}},Pt=(t,e={})=>{let i=It(e);return Ct(i),Mt(i).map((e=>vt(e,t,i.decimal)))},Nt=(t={})=>{let{easing:e,numPoints:i,decimal:r,duration:a,...n}=t,o={easing:e,numPoints:i,decimal:r,duration:a};Ct(o);let u=s(n,(t=>Pt(t,o))),p={};return l(a)?p={duration:a}:l(o.duration)&&(p={duration:o.duration}),Object.assign({},u,p)},Tt={translate:t=>C(t,I),translate3d:t=>C(t,I),translateX:t=>N(t),translateY:t=>N(t),translateZ:t=>N(t),rotate:t=>C(t,D),rotate3d:t=>C(t,v),rotateX:t=>T(t),rotateY:t=>T(t),rotateZ:t=>T(t),scale:t=>C(t,v),scale3d:t=>C(t,v),scaleX:t=>P(t),scaleY:t=>P(t),scaleZ:t=>P(t),skew:t=>C(t,D),skewX:t=>T(t),skewY:t=>T(t),perspective:t=>N(t)},Ft=Object.keys(Tt),jt=t=>{let e,i,s=Object.keys(t),r={};for(let a=0,n=s.length;a{let i="",s=t.length;for(let r=0;r(e=e??Math.max(...t.map((t=>t.length))),t.map((t=>{let i=t.length;return t.every((t=>Array.isArray(t)))?m(...Rt(m(...t),e)):i!==e?Array.from(Array(e),((s,r)=>{let a=1==i?Array(2).fill(t[0]):t;return At(r/(e-1),a)})):t}))),_t=(t,e=!1)=>{let a,o,p=jt(t);if(z&&e)a=Object.assign({},h(R,p),L(p));else{let t=Object.keys(p).filter((t=>Ft.includes(t))),e=t.map((t=>Tt[t](p[t])));e=Rt(e),o=m(...e).filter(l).map((e=>qt(t,e))),a=h(Ft,p)}return a=s(a,((t,e)=>{let s;if(!/color|shadow/i.test(e)){let r=/rotate/i.test(e),a=new RegExp(zt,"i").test(e)||!i(E())&&E()?.supports?.(u(e),"1px");if(r||a)return r?s=T:a&&(s=N),s(t).map((t=>{let e=n(t).split(/\s+/);return s(e).join(" ")}))}return[].concat(t).map(r)})),Object.assign({},l(o)?{transform:o}:null,a)},Lt=(t,e=!1)=>t.map((t=>{let i=jt(t);if(z&&e)return{rest:Object.assign({},L(i),h(R,i)),transformFunctions:null};let{translate:s,translate3d:r,translateX:a,translateY:n,translateZ:o,rotate:l,rotate3d:u,rotateX:p,rotateY:c,rotateZ:m,scale:g,scale3d:f,scaleX:d,scaleY:y,scaleZ:b,skew:x,skewX:S,skewY:E,perspective:k,...A}=i;return s=N(s),r=N(r),a=N(a)[0],n=N(n)[0],o=N(o)[0],l=T(l),u=P(u),p=T(p)[0],c=T(c)[0],m=T(m)[0],g=P(g),f=P(f),d=P(d)[0],y=P(y)[0],b=P(b)[0],x=T(x),S=T(S)[0],E=T(E)[0],k=N(k)[0],{rest:A,transformFunctions:[r,s,a,n,o,u,l,p,c,m,f,g,d,y,b,x,S,E,k]}})).map((({rest:t,transformFunctions:e})=>{let i=z?null:qt(Ft,e);return t=s(t,((t,e)=>{let i;if(t=r(t),!/color|shadow/i.test(e)){let s=/rotate/i.test(e),r=new RegExp(zt,"i").test(e);if(s||r)return s?i=T:r&&(i=N),i(t).join(" ")}return t})),Object.assign({},l(i)?{transform:i}:null,t)})),Vt=({callback:t=(()=>{}),scope:e=null,name:i="event"})=>({callback:t,scope:e,name:i});class Ut extends O{constructor(t="event"){super(),this.name=t}}const Kt=t=>"object"==typeof t&&!Array.isArray(t)&&"function"!=typeof t;class Yt extends O{constructor(){super()}getEvent(t){let e=this.get(t);return e instanceof Ut?e:(this.set(t,new Ut(t)),this.get(t))}newListener(t,e,i){let s=this.getEvent(t);return s.add(Vt({name:t,callback:e,scope:i})),s}on(t,e,i){if(null==t||null==t)return this;"string"==typeof t&&(t=t.trim().split(/\s+/));let s,r,a=Kt(t),n=a?e:i;return a||(r=e),Object.keys(t).forEach((e=>{s=a?e:t[e],a&&(r=t[e]),this.newListener(s,r,n)}),this),this}removeListener(t,e,i){let s=this.get(t);if(s instanceof Ut&&e){let r=Vt({name:t,callback:e,scope:i});s.forEach(((t,e)=>{if(t.callback===r.callback&&t.scope===r.scope)return s.remove(e)}))}return s}off(t,e,i){if(null==t||null==t)return this;"string"==typeof t&&(t=t.trim().split(/\s+/));let s,r,a=Kt(t),n=a?e:i;return a||(r=e),Object.keys(t).forEach((e=>{s=a?e:t[e],a&&(r=t[e]),"function"==typeof r?this.removeListener(s,r,n):this.remove(s)}),this),this}once(t,e,i){if(null==t||null==t)return this;"string"==typeof t&&(t=t.trim().split(/\s+/));let s=Kt(t);return Object.keys(t).forEach((r=>{let a=s?r:t[r],n=s?t[r]:e,o=s?e:i,l=(...t)=>{n.apply(o,t),this.removeListener(a,l,o)};this.newListener(a,l,o)}),this),this}emit(t,...e){return null==t||null==t||("string"==typeof t&&(t=t.trim().split(/\s+/)),t.forEach((t=>{let i=this.get(t);i instanceof Ut&&i.forEach((t=>{let{callback:i,scope:s}=t;i.apply(s,e)}))}),this)),this}clear(){return((t,e,...i)=>{t.forEach((t=>{t[e](...i)}))})(this,"clear"),super.clear(),this}}const Xt=t=>"string"==typeof t?Array.from(S()?.querySelectorAll?.(t)):[t],$t=e=>Array.isArray(e)?t(e.map($t)):"string"==typeof e||e instanceof Node?Xt(e):e instanceof NodeList||e instanceof HTMLCollection?Array.from(e):[],Gt=(t,e,i)=>"function"==typeof t?t.apply(i,e):t,Zt=(t,e,i)=>s(t,(t=>Gt(t,e,i))),Bt={in:"ease-in",out:"ease-out","in-out":"ease-in-out","in-sine":"cubic-bezier(0.47, 0, 0.745, 0.715)","out-sine":"cubic-bezier(0.39, 0.575, 0.565, 1)","in-out-sine":"cubic-bezier(0.445, 0.05, 0.55, 0.95)","in-quad":"cubic-bezier(0.55, 0.085, 0.68, 0.53)","out-quad":"cubic-bezier(0.25, 0.46, 0.45, 0.94)","in-out-quad":"cubic-bezier(0.455, 0.03, 0.515, 0.955)","in-cubic":"cubic-bezier(0.55, 0.055, 0.675, 0.19)","out-cubic":"cubic-bezier(0.215, 0.61, 0.355, 1)","in-out-cubic":"cubic-bezier(0.645, 0.045, 0.355, 1)","in-quart":"cubic-bezier(0.895, 0.03, 0.685, 0.22)","out-quart":"cubic-bezier(0.165, 0.84, 0.44, 1)","in-out-quart":"cubic-bezier(0.77, 0, 0.175, 1)","in-quint":"cubic-bezier(0.755, 0.05, 0.855, 0.06)","out-quint":"cubic-bezier(0.23, 1, 0.32, 1)","in-out-quint":"cubic-bezier(0.86, 0, 0.07, 1)","in-expo":"cubic-bezier(0.95, 0.05, 0.795, 0.035)","out-expo":"cubic-bezier(0.19, 1, 0.22, 1)","in-out-expo":"cubic-bezier(1, 0, 0, 1)","in-circ":"cubic-bezier(0.6, 0.04, 0.98, 0.335)","out-circ":"cubic-bezier(0.075, 0.82, 0.165, 1)","in-out-circ":"cubic-bezier(0.785, 0.135, 0.15, 0.86)","in-back":"cubic-bezier(0.6, -0.28, 0.735, 0.045)","out-back":"cubic-bezier(0.175, 0.885, 0.32, 1.275)","in-out-back":"cubic-bezier(0.68, -0.55, 0.265, 1.55)"},Qt=Object.keys(Bt),Ht=(t="ease")=>{let e=u(t).replace(/^ease-/,"");return Qt.includes(e)?Bt[e]:t},Wt={keyframes:[],offset:[],loop:1,delay:0,speed:1,endDelay:0,easing:"ease",timelineOffset:0,autoplay:!0,duration:1e3,persist:!0,fillMode:"none",direction:"normal",padEndDelay:!1,timeline:S()?.timeline,extend:{}},Jt=t=>{let{options:e,...i}=t,s=e instanceof re?e.options:Array.isArray(e)?e?.[0]?.options:e;return Object.assign({},s,i)},te=["easing","loop","endDelay","duration","speed","delay","timelineOffset","direction","extend","fillMode","composite"],ee=["keyframes","padEndDelay","persist","onfinish","oncancel","autoplay","target","targets","timeline"],ie=[...te,...ee],se=class{constructor(t={}){this.options={},this.initialOptions={},this.properties={},this.totalDuration=0,this.totalDurationOptions={},this.maxDuration=0,this.minDelay=1/0,this.maxSpeed=1/0,this.maxEndDelay=0,this.timelineOffset=0,this.emitter=new Yt,this.targets=new O,this.targetIndexes=new WeakMap,this.keyframeEffects=new WeakMap,this.computedOptions=new WeakMap,this.animations=new WeakMap,this.computedKeyframes=new WeakMap,this.loop=this.loop.bind(this),this.onVisibilityChange=this.onVisibilityChange.bind(this),this.on("error",console.error),this.updateOptions(t),this.mainAnimation&&(this.visibilityPlayState=this.getPlayState(),se.pauseOnPageHidden&&S()?.addEventListener("visibilitychange",this.onVisibilityChange,!1)),this.newPromise()}static requestFrame(t=0){let e=1e3/se.FRAME_RATE,i=t-se.FRAME_START_TIME;i>e&&(se.FRAME_START_TIME=t-i%e,se.RUNNING.forEach((t=>{t.emitter.getEvent("update").length<=0?t.stopLoop():t.loop()}))),se.RUNNING.size>0?se.animationFrame=window.requestAnimationFrame(se.requestFrame):se.cancelFrame()}static cancelFrame(){window.cancelAnimationFrame(se.animationFrame),se.animationFrame=null}loop(){return this.emit("update",this.getProgress(),this),this}stopLoop(){return se.RUNNING.delete(this),this}onVisibilityChange(){S()?.hidden?(this.visibilityPlayState=this.getPlayState(),this.is("running")&&(this.loop(),this.pause())):"running"==this.visibilityPlayState&&this.is("paused")&&this.play()}newPromise(){return this.promise=new Promise(((t,e)=>{this.emitter?.once?.("finish",(()=>t([this]))),this.emitter?.once?.("error",(t=>e(t)))})),this.promise}then(t,e){return t=t?.bind(this),e=e?.bind(this),this.promise?.then?.(t,e),this}catch(t){return t=t?.bind(this),this.promise?.catch?.(t),this}finally(t){return t=t?.bind(this),this.promise?.finally?.(t),this}allAnimations(t){return this.targets.forEach((e=>{let i=this.keyframeEffects.get(e),s=this.animations.get(i);return t(s,e)})),this}all(t){return this.mainAnimation&&t(this.mainAnimation,this.mainElement),this.allAnimations(t),this}beginEvent(){0==this.getProgress()&&this.emit("begin",this)}play(){let t=this.getPlayState();return this.beginEvent(),this.all((t=>t.play())),this.emit("play",t,this),this.emit("playstate-change",t,this),this.loop(),se.RUNNING.add(this),se.requestFrame(),this}pause(){let t=this.getPlayState();return this.all((t=>t.pause())),this.emit("pause",t,this),this.emit("playstate-change",t,this),this.stopLoop(),this}reverse(){return this.all((t=>t.reverse())),this}reset(){return this.setProgress(0),this.options.autoplay?this.play():this.pause(),this}commitStyles(){return this.all((t=>t?.commitStyles())),this}persist(){return this.targets.forEach((t=>{let e=this.computedKeyframes.get(t);Array.isArray(e)&&e.length?s(e[e.length-1],((e,i)=>{t.style.setProperty(i,e)})):s(e,((e,i)=>{!e.length||"offset"==i||t.style.setProperty(i,e[e.length-1])}))})),this}cancel(){return this.all((t=>t.cancel())),this}finish(){return this.all((t=>t.finish())),this}stop(){this.cancel(),this.stopLoop(),S()?.removeEventListener("visibilitychange",this.onVisibilityChange,!1),this.targets.forEach((t=>this.removeTarget(t))),this.emit("stop"),this.emitter.clear(),this.mainkeyframeEffect=null,this.mainAnimation=null,this.mainElement?.remove?.(),this.mainElement=null,this.promise=null,this.computedOptions=null,this.animations=null,this.keyframeEffects=null,this.emitter=null,this.targets=null,this.options=null,this.properties=null}getAnimation(t){let e=this.keyframeEffects.get(t);return this.animations.get(e)}getTiming(t){return{...this.computedOptions.get(t)??{},...this.keyframeEffects.get(t).getTiming?.()??{}}}getCurrentTime(){return this.mainAnimation.currentTime}getProgress(){return this.getCurrentTime()/this.totalDuration*100}getSpeed(){return this.mainAnimation.playbackRate}getPlayState(){return this.mainAnimation.playState}is(t){return this.getPlayState()==t}setCurrentTime(t){return this.all((e=>e.currentTime=t)),this.emit("update",this.getProgress()),this}setProgress(t){let e=t/100*this.totalDuration;return this.setCurrentTime(e),this}setSpeed(t=1){return"string"==typeof t&&(t=Number(t)),this.maxSpeed=t,this.all((e=>{e.updatePlaybackRate?e.updatePlaybackRate(t):e.playbackRate=t})),this}createArrayOfComputedOptions(t,e){let i=[],s=t=>Object.assign({easing:t("easing"),iterations:t("loop"),direction:t("direction"),endDelay:t("endDelay"),duration:t("duration"),speed:t("speed"),delay:t("delay"),timelineOffset:t("timelineOffset"),keyframes:t("keyframes"),fill:t("fillMode"),composite:t("composite")},t("extend")??{});if(0==this.targets.size){let{delay:e,duration:i,iterations:r,endDelay:a,speed:n,timelineOffset:o}=s((e=>{let i=t[e]??this.options[e]??Wt[e];return"function"!=typeof i?i:Wt[e]}));o=Number(o),r=Number(r),i=Number(i),a=Number(a),n=Number(n),e=Number(e),this.timelineOffset=o,this.minDelay=e,this.maxSpeed=n,this.maxDuration=i,this.maxEndDelay=a,this.totalDuration=e+o+i*r+a,this.totalDurationOptions={delay:e,duration:i,iterations:r,endDelay:a,speed:n,timelineOffset:o,totalDuration:this.totalDuration}}return this.targets.forEach(((r,a)=>{let n=this.computedOptions.get(r)??{},o=s((e=>{let i=e;return"loop"==e&&(i="iterations"),"fillMode"==e&&(i="fill"),t[e]??n[i]??this.options[e]??Wt[e]})),l=Zt(o,[a,e,r],this);if("string"==typeof l.easing||Array.isArray(l.easing)){let{easing:t}=l;l.easing=Array.isArray(t)?t.map((t=>Ht(t))):Ht(t)}!0===l.iterations&&(l.iterations=1/0);let{timelineOffset:u,speed:p,endDelay:h,delay:c,duration:m,iterations:g,...f}=l;u=Number(u),g=Number(g),m=Number(m),h=Number(h),p=Number(p),c=Number(c)+u,this.timelineOffset=u??this.timelineOffset,this.minDelay>c&&(this.minDelay=c),this.maxSpeed>p&&(this.maxSpeed=p),this.maxDuration{let g,{speed:f,keyframes:d,tempDurations:y,timelineOffset:b,...x}=r[m];a&&0==x.endDelay&&Math.abs(x.iterations)!=Math.abs(1/0)&&(x.endDelay=this.totalDuration-y);let S,E,O=d;e(O)&&(O=A(O));let w,v,I=this.computedKeyframes.get(t)??{},D="transform"in this.properties?I:h(["transform"],I),M=Object.assign({},n,D),C=s(M,((t,e)=>this.properties[e]??t));if(E=l(O)?O:C,Array.isArray(E))S=E.map((t=>{let{easing:e,offset:i,...s}=h(["speed","loop"],t);return Object.assign({},s,"string"==typeof e?{easing:Ht(e)}:null,"string"==typeof i||"number"==typeof i?{offset:k(i)}:null)})),g=_(q),S=Lt(S,se.USE_CSS_VARS);else{let e=h(["keyframes"],E),{offset:s,...r}=Zt(e,[m,i,t],this);g=_(jt(r));let a=_t(r,se.USE_CSS_VARS),n=s;S=Object.assign({},a,l(n)?{offset:n.map((t=>k(t)))}:null)}this.keyframeEffects.has(t)?(v=this.keyframeEffects.get(t),w=this.animations.get(v),v?.setKeyframes?.(S),v?.updateTiming?.(x)):(v=new KeyframeEffect(t,S,x),w=new Animation(v,c),this.keyframeEffects.set(t,v),this.animations.set(v,w)),"string"==typeof f&&(f=Number(f)),w.updatePlaybackRate?w.updatePlaybackRate(f):w.playbackRate=f,w.onfinish=()=>{p&&(Array.isArray(S)&&S.length?s(S[S.length-1],((e,i)=>{t.style.setProperty(i,e)})):s(S,((e,i)=>{!e.length||"offset"==i||t.style.setProperty(i,e[e.length-1])}))),"function"==typeof o&&o.call(this,t,m,i,w)},w.oncancel=()=>{"function"==typeof u&&u.call(this,t,m,i,w)},z&&se.USE_CSS_VARS&&Object.assign(t?.style,{transform:g}),this.computedOptions.set(t,x),this.computedKeyframes.set(t,S)}))}updateOptions(t={}){try{let e=Jt(t);this.initialOptions=e,this.options=Object.assign({},Wt,this.options,e);let{padEndDelay:i,autoplay:s,target:r,targets:a,timeline:n,persist:o,onfinish:l,oncancel:u,...p}=h(te,this.options);this.properties=h(ie,e);let c=this.targets.values(),m=[...new Set([...c,...$t(a),...$t(r)])];this.targets.clear(),m.forEach(((t,e)=>{this.targets.set(e,t),this.targetIndexes.set(t,e)}));let g=this.targets.size,f=this.createArrayOfComputedOptions(e,g);if(this.createAnimations({arrOfComputedOptions:f,padEndDelay:i,oldCSSProperties:p,onfinish:l,oncancel:u,persist:o,timeline:n},g),this.mainAnimation?(this.mainkeyframeEffect?.updateTiming?.({duration:this.totalDuration}),(!this.mainkeyframeEffect.setKeyframes||!this.mainkeyframeEffect.updateTiming)&&console.warn("[Animate - @okikio/animate] `KeyframeEffect.setKeyframes` and/or `KeyframeEffect.updateTiming` are not supported in this browser.")):(this.mainkeyframeEffect=new KeyframeEffect(this.mainElement,null,{duration:this.totalDuration}),this.mainAnimation=new Animation(this.mainkeyframeEffect,n)),this.mainAnimation.updatePlaybackRate?this.mainAnimation.updatePlaybackRate(this.maxSpeed):this.mainAnimation.playbackRate=this.maxSpeed,this.mainAnimation.onfinish=()=>{if(this.mainAnimation){let t=this.getPlayState();this.emit("playstate-change",t,this),this.loop(),this.stopLoop()}this.emit("finish",this)},this.mainAnimation.oncancel=()=>{if(this.mainAnimation){let t=this.getPlayState();this.emit("playstate-change",t,this),this.loop(),this.stopLoop()}this.emit("cancel",this)},s){let t=window.setTimeout((()=>{this.emit("begin",this);let e=this.getPlayState();this.emit("playstate-change",e,this),t=window.clearTimeout(t)}),0);this.play()}else this.pause()}catch(t){this.emit("error",t)}}add(t){let e=this.getProgress(),i=this.is("running"),s=this.is("paused");return this.updateOptions({target:t}),this.setProgress(e),i?this.play():s&&this.pause(),this}removeTarget(t){let e=this.keyframeEffects.get(t);this.animations.delete(e),e=null,this.computedKeyframes.delete(t),this.computedOptions.delete(t),this.keyframeEffects.delete(t);let i=this.targetIndexes.get(t);return this.targets.delete(i),this.targetIndexes.delete(t),this}remove(t){this.removeTarget(t);let e=new Set([].concat(this.targets.values()));this.options.target=[...e],this.options.targets=[],e.clear(),e=null;let i=this.getProgress(),s=this.is("running"),r=this.is("paused");return this.updateOptions(),s?this.play():r&&this.pause(),this.setProgress(i),this}on(t,e,i){return i=i??this,this.emitter?.on?.(t,e??i,i),this.emitter.getEvent("update").length>0&&(se.RUNNING.add(this),null==se.animationFrame&&se.requestFrame()),this}off(t,e,i){return i=i??this,this.emitter?.off?.(t,e??i,i),this}emit(t,...e){return this.emitter?.emit?.(t,...e),this}toJSON(){return this.options}get[Symbol.toStringTag](){return"Animate"}};let re=se;re.RUNNING=new Set,re.FRAME_RATE=60,re.FRAME_START_TIME=0,re.pauseOnPageHidden=!0,re.USE_CSS_VARS=!1;exports.UIDCount=0;const ae=S()?.createElement?.("div"),ne=()=>{l(ae.id)||(ae.id="empty-tween-el-container",ae.style.setProperty("display","none"),ae.style.setProperty("contain","paint layout size"),S()?.body?.appendChild(ae));let t=S()?.createElement?.("div");return t.id="empty-animate-el-"+exports.UIDCount++,t.style.setProperty("display","none"),ae.appendChild(t),t};class oe extends re{stop(){this.targets.forEach((t=>t?.remove?.())),super.stop()}}const le=(t={})=>{let{easing:e,decimal:i,numPoints:s,opacity:r,...a}=Jt(t),n=c(ie,a),o=e;if("string"==typeof e){let t=ft(e);o=Qt.includes(t)||["linear","steps","step-start","step-end"].includes(t)?Ht(e):exports.EasingFunctionKeys.includes(t)?dt(e):e}return{..."function"==typeof o?Nt({opacity:[0,1],easing:e,decimal:i,numPoints:s}):{opacity:[0,1],easing:e},...n}};class ue extends oe{constructor(){super(...arguments),this.updateListeners=new O}updateOptions(t={}){let e=Jt(t),i=this.targets.size>1?null:{target:ne()},r=Object.assign({},le(h(["target","targets"],e)),i);super.updateOptions(r);let a=h(ie,e);try{this.updateListeners=this.updateListeners??new O,this.updateListeners.forEach(((t,e)=>{this.off("update",t),this.updateListeners.remove(e)}),this);let{target:t,targets:i}=e,r=[...new Set([...$t(i),...$t(t)])],n=r.length,o=this.targets.get(0),l=window.getComputedStyle(o);r.forEach(((t,i)=>{s(a,((s,r)=>{let a,o=t.getAttribute(r);this.on("update",a=()=>{let a,u=Number(l.getPropertyValue("opacity"));a="function"==typeof s?s(u,i,n,t):vt(u,Array.isArray(s)?s:[o,s],e.decimal),t.setAttribute(r,""+a)}),this.updateListeners.add(a)}))}),this)}catch(t){this?.stopLoop(),this?.emit?.("error",t)}return this}}const pe=(t,e={})=>{const{grid:i,axis:s,from:r=0,easing:n,direction:o="normal"}=e,l=Array.isArray(t),u=l?t.length-1:null,p=parseFloat(l?t[0]:t),h=l?parseFloat(t[u]):0,{start:c=(l?p:0)}=e,m=a(l?t[u]:t)||0,g="function"==typeof n?n:dt(n),f="function"==typeof n?[]:yt(n);let d,y=[],b=0,x=r;return/from/i.test(r)&&(x=0),(t,e)=>{if(/center/i.test(r)&&(x=(e-1)/2),/last/i.test(r)&&(x=e-1),0==y.length){for(let t=0;tg(t/b,f)*b))),/reverse/i.test(o)&&y.reverse()}return c+d*(Math.round(100*y[t])/100)+m}},he=(t,e)=>"string"==typeof t?/^\=/.test(t)?parseFloat(t.replace("=","")):parseFloat(t)+e:t+e;class ce{constructor(t={}){this.animateInstances=new O,this.initialOptions={},this.mainInstance=new re({duration:0}),this.initialOptions=Object.assign({},Wt,Jt(t)),this.totalDuration=0,this.maxDuration=0}get totalDuration(){return this.mainInstance.totalDuration}set totalDuration(t){this.mainInstance.totalDuration=t}get maxDuration(){return this.mainInstance.maxDuration}set maxDuration(t){this.mainInstance.maxDuration=t}get minDelay(){return this.mainInstance.minDelay}set minDelay(t){this.mainInstance.minDelay=t}get maxSpeed(){return this.mainInstance.maxSpeed}set maxSpeed(t){this.mainInstance.maxSpeed=t}get maxEndDelay(){return this.mainInstance.maxEndDelay}set maxEndDelay(t){this.mainInstance.maxEndDelay=t}get timelineOffset(){return this.mainInstance.timelineOffset}set timelineOffset(t){this.mainInstance.timelineOffset=t}get options(){return this.mainInstance.options}set options(t){this.mainInstance.options=Jt(t)}get emitter(){return this.mainInstance.emitter}get promise(){return this.mainInstance.promise}add(t={},e=0){let i,s=Object.assign({},Wt,this.initialOptions,t instanceof re?t.initialOptions:Jt(t));if(Math.abs(this.totalDuration)!==1/0){let t=""+e;if(/^\^/.test(t)){let e=this.animateInstances.last()?.totalDuration??0;Math.abs(e)!==1/0&&(s.timelineOffset=he("^"==t.trim()?0:t.replace(/^\^/,""),this.totalDuration-e))}else s.timelineOffset=he(e,this.totalDuration)}return s.autoplay=this.initialOptions.autoplay,t instanceof re?(i=t,i.updateOptions(s)):i=new re(s),this.animateInstances.add(i),this.updateTiming(),this}updateTiming(){let t=this.animateInstances.values(),e=Math.max(...t.map((t=>t.totalDuration)));return Math.abs(e)==1/0?(console.warn('[Queue - @okikio/animate] individual Animate instances that are part of a Queue can\'t have Infinite totalDuration. You can\'t queue animations one after the other if one of the animations last for literally infinity. This issue may come from setting the "loop, duration, endDelay, delay, etc..." animation options to either Infinity (or for the loop option only, "true").'),this):(this.mainInstance.updateOptions({autoplay:this.initialOptions.autoplay,duration:e,delay:Math.max(...t.map((t=>t.minDelay))),endDelay:e-Math.max(...t.map((t=>t.totalDuration-t.maxEndDelay)))}),this)}remove(t){let e=this.animateInstances.size;if(this.animateInstances.has(t)){let i=this.animateInstances.get(t),{totalDuration:s,timelineOffset:r}=i.totalDurationOptions,a=Number(s)-Number(r);for(let i=t;it.play())),this}pause(){return this.all((t=>t.pause())),this}reverse(){return this.all((t=>t.reverse())),this}reset(){return this.all((t=>t.reset())),this}cancel(){return this.all((t=>t.cancel())),this}finish(){return this.all((t=>t.finish())),this}stop(){this.all((t=>t.stop())),this.animateInstances.clear(),this.mainInstance=null,this.animateInstances=null}getCurrentTime(){return this.mainInstance.getCurrentTime()}getProgress(){return this.mainInstance.getProgress()}getPlayState(){return this.mainInstance.getPlayState()}is(t){return this.mainInstance.is(t)}setCurrentTime(t){return this.all((e=>e.setCurrentTime(t))),this}setProgress(t){return this.all((e=>e.setProgress(t))),this}setSpeed(t=1){return this.all((e=>e.setSpeed(t))),this}on(t,e,i){return i=i??this,this.mainInstance?.on?.(t,e??i,i),this}off(t,e,i){return i=i??this,this.mainInstance?.off?.(t,e??i,i),this}emit(t,...e){return this.mainInstance?.emit?.(t,...e),this}toJSON(){return this.options}get[Symbol.toStringTag](){return"Queue"}}exports.ALL_ANIMATION_CONFIG_KEYS=ie,exports.Animate=re,exports.AnimateAttributes=ue,exports.ApplyCustomEasing=Nt,exports.Back=it,exports.Bezier=ut,exports.Bounce=st,exports.CSSArrValue=C,exports.CSSCamelCase=jt,exports.CSSPXDataType=zt,exports.CSSValue=M,exports.CSSVarSupport=z,exports.CSS_CACHE=F,exports.Circ=et,exports.ComplexEasingSyntax=ft,exports.ComplexStrtoArr=wt,exports.Cubic=Q,exports.CustomEasing=Pt,exports.CustomEasingOptions=It,exports.DefaultAnimationOptions=Wt,exports.DestroyableAnimate=oe,exports.EASINGS=Bt,exports.EFFECTS={},exports.EaseInOut=ct,exports.EaseOut=ht,exports.EaseOutIn=mt,exports.EasingDurationCache=nt,exports.EasingFunctions=gt,exports.EasingKeys=Qt,exports.EasingPts=Mt,exports.Elastic=rt,exports.EmptyTweenElContainer=ae,exports.Expo=J,exports.FUNCTION_SUPPORTED_ANIMATION_CONFIG_KEYS=te,exports.GetEase=Ht,exports.GetEasingFunction=dt,exports.INTINITE_LOOP_LIMIT=1e4,exports.KeyframeParse=A,exports.NON_FUNCTION_SUPPORTED_ANIMATION_CONFIG_KEYS=ee,exports.ParseTransformableCSSKeyframes=Lt,exports.ParseTransformableCSSProperties=_t,exports.Quad=B,exports.Quart=H,exports.Queue=ce,exports.Quint=W,exports.Sine=tt,exports.Spring=at,exports.SpringEasing=(t,e={})=>{let i=It(e),{duration:s}=i;return Ct(i),[Pt(t,i),l(s)?s:i.duration]},exports.StaggerCustomEasing=(t,e={})=>{let i=e.stagger??{};return(s,r)=>{let a=t.map(((e,a)=>{let n=t[Math.max(0,a-1)];return pe([n,e],i)(s,r)}));return Pt(a,e)}},exports.Steps=lt,exports.TransformFunctionNames=Ft,exports.TransformFunctions=Tt,exports.TweenCache=Dt,exports.UnitDEG=D,exports.UnitDEGCSSValue=T,exports.UnitLess=v,exports.UnitLessCSSValue=P,exports.UnitPX=I,exports.UnitPXCSSValue=N,exports.addCSSUnit=w,exports.animate=(t={})=>new re(t),exports.arrFill=Rt,exports.camelCase=p,exports.computeOption=Gt,exports.convertToDash=u,exports.createEmptyEl=ne,exports.createTransformProperty=qt,exports.createTransformValue=_,exports.createTweenOptions=le,exports.easein=pt,exports.flatten=t,exports.getBrowserObject=x,exports.getCSS=E,exports.getDocument=S,exports.getEasingDuration=ot,exports.getElements=Xt,exports.getTargets=$t,exports.getUnit=a,exports.hsl=f,exports.interpolateColor=Ot,exports.interpolateComplex=vt,exports.interpolateNumber=St,exports.interpolateString=At,exports.interpolateUsingIndex=kt,exports.isEmpty=i,exports.isNumberLike=Et,exports.isObject=e,exports.isValid=l,exports.limit=Z,exports.mapAnimationOptions=Zt,exports.mapObject=s,exports.omit=h,exports.parse=y,exports.parseEasingParameters=yt,exports.parseOffset=k,exports.parseOptions=Jt,exports.pick=c,exports.queue=(t={})=>new ce(t),exports.random=(t,e)=>Math.floor(Math.random()*(e-t+1))+t,exports.registerEasingFunction=(t,e)=>{Object.assign(gt,{[t]:e}),exports.EasingFunctionKeys=Object.keys(gt)},exports.registerEasingFunctions=(...t)=>{Object.assign(gt,...t),exports.EasingFunctionKeys=Object.keys(gt)},exports.relativeTo=he,exports.rgba=b,exports.scale=bt,exports.stagger=pe,exports.toArr=o,exports.toCSSVars=L,exports.toFixed=xt,exports.toRGBAArr=j,exports.toStr=r,exports.transformCSSVars=q,exports.transformProperyNames=R,exports.transpose=m,exports.trim=n,exports.tweenAttr=(t={})=>new ue(t);