import { _ as n, i as a, a as m } from "./c57f24d6.js";
var b = n, o = a, f = "[object Symbol]";
function c(r) {
  return typeof r == "symbol" || o(r) && b(r) == f;
}
var y = c, d = /\s/;
function p(r) {
  for (var t = r.length; t-- && d.test(r.charAt(t)); )
    ;
  return t;
}
var I = p, _ = I, x = /^\s+/;
function O(r) {
  return r && r.slice(0, _(r) + 1).replace(x, "");
}
var T = O, $ = T, i = m, j = y, s = 0 / 0, S = /^[-+]0x[0-9a-f]+$/i, N = /^0b[01]+$/i, B = /^0o[0-7]+$/i, E = parseInt;
function h(r) {
  if (typeof r == "number")
    return r;
  if (j(r))
    return s;
  if (i(r)) {
    var t = typeof r.valueOf == "function" ? r.valueOf() : r;
    r = i(t) ? t + "" : t;
  }
  if (typeof r != "string")
    return r === 0 ? r : +r;
  r = $(r);
  var e = N.test(r);
  return e || B.test(r) ? E(r.slice(2), e ? 2 : 8) : S.test(r) ? s : +r;
}
var A = h;
export {
  y as i,
  A as t
};
