import{x as f}from"./_Uint8Array-BGESiCQL.js";import{t as a}from"./isSymbol-BGkTcW3U.js";var o=/\s/;function u(r){for(var t=r.length;t--&&o.test(r.charAt(t)););return t}var s=u,c=/^\s+/;function p(r){return r&&r.slice(0,s(r)+1).replace(c,"")}var v=p,i=NaN,l=/^[-+]0x[0-9a-f]+$/i,m=/^0b[01]+$/i,x=/^0o[0-7]+$/i,y=parseInt;function $(r){if(typeof r=="number")return r;if(a(r))return i;if(f(r)){var t=typeof r.valueOf=="function"?r.valueOf():r;r=f(t)?t+"":t}if(typeof r!="string")return r===0?r:+r;r=v(r);var e=m.test(r);return e||x.test(r)?y(r.slice(2),e?2:8):l.test(r)?i:+r}var b=$;export{b as t};
