import{__exports as r}from"../../../_virtual/esnext.number.from-string.mjs";import{__require as t}from"../internals/export.mjs";import{__require as e}from"../internals/function-uncurry-this.mjs";import{__require as n}from"../internals/to-integer-or-infinity.mjs";var i;function o(){if(i)return r;i=1;var o=t(),a=e(),s=n(),f="Invalid number representation",m=RangeError,u=SyntaxError,h=TypeError,p=parseInt,w=Math.pow,l=/^[\d.a-z]+$/,g=a("".charAt),_=a(l.exec),v=a(1.1.toString),c=a("".slice),x=a("".split);return o({target:"Number",stat:!0,forced:!0},{fromString:function(r,t){var e=1;if("string"!=typeof r)throw new h(f);if(!r.length)throw new u(f);if("-"===g(r,0)&&(e=-1,!(r=c(r,1)).length))throw new u(f);var n=void 0===t?10:s(t);if(n<2||n>36)throw new m("Invalid radix");if(!_(l,r))throw new u(f);var i=x(r,"."),o=p(i[0],n);if(i.length>1&&(o+=p(i[1],n)/w(n,i[1].length)),10===n&&v(o,n)!==r)throw new u(f);return e*o}}),r}export{o as __require};