import { __commonJSMin as e } from "../../../../_virtual/_rolldown/runtime.js";
import { require_isObject as t } from "./isObject.js";
import { require__baseTrim as n } from "./_baseTrim.js";
import { require_isSymbol as r } from "./isSymbol.js";
//#region node_modules/lodash/toNumber.js
var i = /* @__PURE__ */ e(((e, i) => {
	var a = n(), o = t(), s = r(), c = NaN, l = /^[-+]0x[0-9a-f]+$/i, u = /^0b[01]+$/i, d = /^0o[0-7]+$/i, f = parseInt;
	function p(e) {
		if (typeof e == "number") return e;
		if (s(e)) return c;
		if (o(e)) {
			var t = typeof e.valueOf == "function" ? e.valueOf() : e;
			e = o(t) ? t + "" : t;
		}
		if (typeof e != "string") return e === 0 ? e : +e;
		e = a(e);
		var n = u.test(e);
		return n || d.test(e) ? f(e.slice(2), n ? 2 : 8) : l.test(e) ? c : +e;
	}
	i.exports = p;
}));
//#endregion
export default i();
export { i as require_toNumber };
