import { b, a as m, c as d, d as h, i as l } from "./_baseUniq-BV6d92pO.js";
import { aU as g, aV as o, aW as p } from "./sdk-entry-DgIWYKoN.js";
function M(a) {
  var n = a == null ? 0 : a.length;
  return n ? b(a) : [];
}
function v(a, n) {
  var s = -1, t = g(a) ? Array(a.length) : [];
  return m(a, function(f, i, e) {
    t[++s] = n(f, i, e);
  }), t;
}
function k(a, n) {
  var s = o(a) ? h : v;
  return s(a, d(n));
}
function x(a, n) {
  return a < n;
}
function A(a, n, s) {
  for (var t = -1, f = a.length; ++t < f; ) {
    var i = a[t], e = n(i);
    if (e != null && (r === void 0 ? e === e && !l(e) : s(e, r)))
      var r = e, u = i;
  }
  return u;
}
function w(a) {
  return a && a.length ? A(a, p, x) : void 0;
}
export {
  x as a,
  A as b,
  v as c,
  w as d,
  M as f,
  k as m
};
