"use strict";
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
const index = require("./dist-es-value-types-complex-index.cjs");
const animatableNone = require("./dist-es-render-dom-value-types-animatable-none.cjs");
const invalidTemplates = /* @__PURE__ */ new Set(["auto", "none", "0"]);
function makeNoneKeyframesAnimatable(unresolvedKeyframes, noneKeyframeIndexes, name) {
  let i = 0;
  let animatableTemplate = void 0;
  while (i < unresolvedKeyframes.length && !animatableTemplate) {
    const keyframe = unresolvedKeyframes[i];
    if (typeof keyframe === "string" && !invalidTemplates.has(keyframe) && index.analyseComplexValue(keyframe).values.length) {
      animatableTemplate = unresolvedKeyframes[i];
    }
    i++;
  }
  if (animatableTemplate && name) {
    for (const noneIndex of noneKeyframeIndexes) {
      unresolvedKeyframes[noneIndex] = animatableNone.getAnimatableNone(name, animatableTemplate);
    }
  }
}
exports.makeNoneKeyframesAnimatable = makeNoneKeyframesAnimatable;
//# sourceMappingURL=dist-es-render-html-utils-make-none-animatable.cjs.map
