import { mapEasingToNativeEasing as g } from "./easing/map-easing.es.js";
function u(r, s, f, { delay: m = 0, duration: n = 300, repeat: p = 0, repeatType: c = "loop", ease: l = "easeOut", times: t } = {}, e = void 0) {
  const a = {
    [s]: f
  };
  t && (a.offset = t);
  const i = g(l, n);
  Array.isArray(i) && (a.easing = i);
  const o = {
    delay: m,
    duration: n,
    easing: Array.isArray(i) ? "linear" : i,
    fill: "both",
    iterations: p + 1,
    direction: c === "reverse" ? "alternate" : "normal"
  };
  return e && (o.pseudoElement = e), r.animate(a, o);
}
export {
  u as startWaapiAnimation
};
//# sourceMappingURL=start-waapi-animation.es.js.map
