import{t as e}from"./isSymbol.CmW3dkoN.js";import{i as t,o as n,r,t as i}from"./isArrayLike.Crw2F5li.js";var a=/\s/;function o(e){for(var t=e.length;t--&&a.test(e.charAt(t)););return t}var s=/^\s+/;function c(e){return e&&e.slice(0,o(e)+1).replace(s,``)}var l=NaN,u=/^[-+]0x[0-9a-f]+$/i,d=/^0b[01]+$/i,f=/^0o[0-7]+$/i,p=parseInt;function m(t){if(typeof t==`number`)return t;if(e(t))return l;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=c(t);var i=d.test(t);return i||f.test(t)?p(t.slice(2),i?2:8):u.test(t)?l:+t}var h=1/0,g=17976931348623157e292;function _(e){return e?(e=m(e),e===h||e===-h?(e<0?-1:1)*g:e===e?e:0):e===0?e:0}function v(e,a,o){if(!n(o))return!1;var s=typeof a;return(s==`number`?i(o)&&t(a,o.length):s==`string`&&a in o)?r(o[a],e):!1}export{o as i,_ as n,m as r,v as t};