import{n as e}from"./chunk.DuxOD-Sk.js";import{i as t,n,r,t as i}from"./isLength.DwwZub7z.js";import{n as a,t as o}from"./isSymbol.CDgzX1Rm.js";import{a as s,i as c,n as l,o as u,r as d,t as f}from"./eq.BGqw_fW_.js";var p=/\s/;function m(e){for(var t=e.length;t--&&p.test(e.charAt(t)););return t}var h=/^\s+/;function g(e){return e&&e.slice(0,m(e)+1).replace(h,``)}s(),o();var _=NaN,v=/^[-+]0x[0-9a-f]+$/i,y=/^0b[01]+$/i,b=/^0o[0-7]+$/i,x=parseInt;function S(e){if(typeof e==`number`)return e;if(a(e))return _;if(u(e)){var t=typeof e.valueOf==`function`?e.valueOf():e;e=u(t)?t+``:t}if(typeof e!=`string`)return e===0?e:+e;e=g(e);var n=y.test(e);return n||b.test(e)?x(e.slice(2),n?2:8):v.test(e)?_:+e}var C=1/0,w=17976931348623157e292;function T(e){return e?(e=S(e),e===C||e===-C?(e<0?-1:1)*w:e===e?e:0):e===0?e:0}function E(e){return e!=null&&n(e.length)&&!c(e)}var D=e((()=>{d(),i()}));l(),D(),r(),s();function O(e,n,r){if(!u(r))return!1;var i=typeof n;return(i==`number`?E(r)&&t(n,r.length):i==`string`&&n in r)?f(r[n],e):!1}export{S as a,T as i,D as n,m as o,E as r,O as t};