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