"use client";
import * as b from "react";
import { clsx as m } from "../../../clsx/dist/clsx.js";
import { isNumber as c } from "../util/DataUtils.js";
import { filterProps as y } from "../util/ReactUtils.js";
var O = ["x", "y", "top", "left", "width", "height", "className"];
function u() {
  return u = Object.assign ? Object.assign.bind() : function(r) {
    for (var t = 1; t < arguments.length; t++) {
      var e = arguments[t];
      for (var n in e) ({}).hasOwnProperty.call(e, n) && (r[n] = e[n]);
    }
    return r;
  }, u.apply(null, arguments);
}
function s(r, t) {
  var e = Object.keys(r);
  if (Object.getOwnPropertySymbols) {
    var n = Object.getOwnPropertySymbols(r);
    t && (n = n.filter(function(o) {
      return Object.getOwnPropertyDescriptor(r, o).enumerable;
    })), e.push.apply(e, n);
  }
  return e;
}
function v(r) {
  for (var t = 1; t < arguments.length; t++) {
    var e = arguments[t] != null ? arguments[t] : {};
    t % 2 ? s(Object(e), !0).forEach(function(n) {
      g(r, n, e[n]);
    }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(r, Object.getOwnPropertyDescriptors(e)) : s(Object(e)).forEach(function(n) {
      Object.defineProperty(r, n, Object.getOwnPropertyDescriptor(e, n));
    });
  }
  return r;
}
function g(r, t, e) {
  return (t = P(t)) in r ? Object.defineProperty(r, t, { value: e, enumerable: !0, configurable: !0, writable: !0 }) : r[t] = e, r;
}
function P(r) {
  var t = h(r, "string");
  return typeof t == "symbol" ? t : t + "";
}
function h(r, t) {
  if (typeof r != "object" || !r) return r;
  var e = r[Symbol.toPrimitive];
  if (e !== void 0) {
    var n = e.call(r, t);
    if (typeof n != "object") return n;
    throw new TypeError("@@toPrimitive must return a primitive value.");
  }
  return (t === "string" ? String : Number)(r);
}
function j(r, t) {
  if (r == null) return {};
  var e, n, o = w(r, t);
  if (Object.getOwnPropertySymbols) {
    var i = Object.getOwnPropertySymbols(r);
    for (n = 0; n < i.length; n++) e = i[n], t.indexOf(e) === -1 && {}.propertyIsEnumerable.call(r, e) && (o[e] = r[e]);
  }
  return o;
}
function w(r, t) {
  if (r == null) return {};
  var e = {};
  for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
    if (t.indexOf(n) !== -1) continue;
    e[n] = r[n];
  }
  return e;
}
var d = (r, t, e, n, o, i) => "M".concat(r, ",").concat(o, "v").concat(n, "M").concat(i, ",").concat(t, "h").concat(e), E = (r) => {
  var {
    x: t = 0,
    y: e = 0,
    top: n = 0,
    left: o = 0,
    width: i = 0,
    height: a = 0,
    className: l
  } = r, f = j(r, O), p = v({
    x: t,
    y: e,
    top: n,
    left: o,
    width: i,
    height: a
  }, f);
  return !c(t) || !c(e) || !c(i) || !c(a) || !c(n) || !c(o) ? null : /* @__PURE__ */ b.createElement("path", u({}, y(p, !0), {
    className: m("recharts-cross", l),
    d: d(t, e, i, a, n, o)
  }));
};
export {
  E as Cross
};
