import { isValidMotionProp as n } from "../../../motion/utils/valid-prop.es.js";
import { isMotionValue as f } from "../../../../../../../../motion-dom@12.38.0/node_modules/motion-dom/dist/es/value/utils/is-motion-value.es.js";
let r = (t) => !n(t);
function u(t) {
  typeof t == "function" && (r = (i) => i.startsWith("on") ? !n(i) : t(i));
}
try {
  u(require("@emotion/is-prop-valid").default);
} catch {
}
function s(t, i, a) {
  const e = {};
  for (const o in t)
    o === "values" && typeof t.values == "object" || f(t[o]) || (r(o) || a === !0 && n(o) || !i && !n(o) || // If trying to use native HTML drag events, forward drag listeners
    t.draggable && o.startsWith("onDrag")) && (e[o] = t[o]);
  return e;
}
export {
  s as filterProps,
  u as loadExternalIsValidProp
};
//# sourceMappingURL=filter-props.es.js.map
