function a(l) {
  const {
    linkNodeRect: t,
    anchorElem: e,
    verticalGap: s = 8,
    horizontalOffset: c = -8
  } = l, o = e.parentElement;
  if (!o || getComputedStyle(o).position !== "relative")
    return {
      x: "-10000px",
      y: "-10000px"
    };
  const n = e.getBoundingClientRect();
  let r = t.top + t.height + s, i = t.left + c;
  return r -= n.top, i -= n.left, {
    x: Math.round(i),
    y: Math.round(r)
  };
}
export {
  a as getFloatingLinkEditorPosition
};
