function f(a) {
  return Array.isArray(a);
}
function i(a) {
  return typeof a == "string" || f(a);
}
function u(a) {
  var r = {};
  return a.forEachValue(function(n, t) {
    return r[t] = n.get();
  }), r;
}
function l(a) {
  var r = {};
  return a.forEachValue(function(n, t) {
    return r[t] = n.getVelocity();
  }), r;
}
function v(a, r, n, t, e) {
  var o;
  return t === void 0 && (t = {}), e === void 0 && (e = {}), typeof r == "function" && (r = r(n != null ? n : a.custom, t, e)), typeof r == "string" && (r = (o = a.variants) === null || o === void 0 ? void 0 : o[r]), typeof r == "function" && (r = r(n != null ? n : a.custom, t, e)), r;
}
function g(a, r, n) {
  var t = a.getProps();
  return v(t, r, n != null ? n : t.custom, u(a), l(a));
}
function c(a) {
  var r;
  return typeof ((r = a.animate) === null || r === void 0 ? void 0 : r.start) == "function" || i(a.initial) || i(a.animate) || i(a.whileHover) || i(a.whileDrag) || i(a.whileTap) || i(a.whileFocus) || i(a.exit);
}
function h(a) {
  return Boolean(c(a) || a.variants);
}
export {
  c as checkIfControllingVariants,
  h as checkIfVariantNode,
  i as isVariantLabel,
  f as isVariantLabels,
  g as resolveVariant,
  v as resolveVariantFromProps
};
//# sourceMappingURL=variants.es.js.map
