import s from "./index.es284.js";
import v from "./index.es156.js";
import u from "./index.es265.js";
import o from "./index.es176.js";
import h from "./index.es218.js";
function M(r, a, e) {
  if (a == null || e)
    return s(r) || (r = v(r)), r[o(r.length - 1)];
  var t = h(r), f = u(t);
  a = Math.max(Math.min(a, f), 0);
  for (var i = f - 1, m = 0; m < a; m++) {
    var l = o(m, i), p = t[m];
    t[m] = t[l], t[l] = p;
  }
  return t.slice(0, a);
}
export {
  M as default
};
//# sourceMappingURL=index.es212.js.map
