function l(e) {
  const t = e.getBoundingClientRect();
  if (process.env.NODE_ENV === "test")
    return t;
  const o = window.getComputedStyle(e, "::before"), n = window.getComputedStyle(e, "::after");
  if (!(o.content !== "none" || n.content !== "none"))
    return t;
  const i = parseFloat(o.width) || 0, r = parseFloat(o.height) || 0, a = parseFloat(n.width) || 0, c = parseFloat(n.height) || 0, d = Math.max(t.width, i, a), f = Math.max(t.height, r, c), s = d - t.width, h = f - t.height;
  return {
    left: t.left - s / 2,
    right: t.right + s / 2,
    top: t.top - h / 2,
    bottom: t.bottom + h / 2
  };
}
export {
  l as getPseudoElementBounds
};
