"use strict";
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
const isNotNull = (value) => value !== null;
function getFinalKeyframe(keyframes, { repeat, repeatType = "loop" }, finalKeyframe) {
  const resolvedKeyframes = keyframes.filter(isNotNull);
  const index = repeat && repeatType !== "loop" && repeat % 2 === 1 ? 0 : resolvedKeyframes.length - 1;
  return !index || finalKeyframe === void 0 ? resolvedKeyframes[index] : finalKeyframe;
}
exports.getFinalKeyframe = getFinalKeyframe;
//# sourceMappingURL=dist-es-animation-animators-waapi-utils-get-final-keyframe.cjs.map
