import{__spreadProps as n,__spreadValues as t}from"./chunk.6M63UXML.js";var i=new Map,e=new WeakMap;function ensureAnimation(n){return null!=n?n:{keyframes:[],options:{duration:0}}}function getLogicalAnimation(n,t){return"rtl"===t.toLowerCase()?{keyframes:n.rtlKeyframes||n.keyframes,options:n.options}:n}function setDefaultAnimation(n,t){i.set(n,ensureAnimation(t))}function setAnimation(i,o,a){e.set(i,n(t({},e.get(i)),{[o]:ensureAnimation(a)}))}function getAnimation(n,t,o){const a=e.get(n);if(null==a?void 0:a[t])return getLogicalAnimation(a[t],o.dir);const r=i.get(t);return r?getLogicalAnimation(r,o.dir):{keyframes:[],options:{duration:0}}}export{setDefaultAnimation,setAnimation,getAnimation};