"use client";
var v = (l, a, d, i, n, r, f, u) => {
  if (!(r == null || u == null)) {
    var o = f[0], t = o == null ? void 0 : u(o.positions, r);
    if (t != null)
      return t;
    var e = n?.[Number(r)];
    if (e)
      switch (d) {
        case "horizontal":
          return {
            x: e.coordinate,
            y: (i.top + a) / 2
          };
        default:
          return {
            x: (i.left + l) / 2,
            y: e.coordinate
          };
      }
  }
};
export {
  v as combineCoordinateForDefaultIndex
};
