import { memo as m } from "../../../../../../../../motion-utils@12.23.6/node_modules/motion-utils/dist/es/memo.es.js";
const l = /* @__PURE__ */ new Set([
  "opacity",
  "clipPath",
  "filter",
  "transform"
  // TODO: Could be re-enabled now we have support for linear() easing
  // "background-color"
]), f = /* @__PURE__ */ m(() => Object.hasOwnProperty.call(Element.prototype, "animate"));
function w(n) {
  var r;
  const { motionValue: e, name: t, repeatDelay: a, repeatType: o, damping: s, type: p } = n;
  if (!(((r = e == null ? void 0 : e.owner) == null ? void 0 : r.current) instanceof HTMLElement))
    return !1;
  const { onUpdate: c, transformTemplate: i } = e.owner.getProps();
  return f() && t && l.has(t) && (t !== "transform" || !i) && /**
   * If we're outputting values to onUpdate then we can't use WAAPI as there's
   * no way to read the value from WAAPI every frame.
   */
  !c && !a && o !== "mirror" && s !== 0 && p !== "inertia";
}
export {
  w as supportsBrowserAnimation
};
//# sourceMappingURL=waapi.es.js.map
