"use strict";var s=Object.defineProperty;var b=Object.getOwnPropertyDescriptor;var d=Object.getOwnPropertyNames;var S=Object.prototype.hasOwnProperty;var g=(a,t)=>{for(var e in t)s(a,e,{get:t[e],enumerable:!0})},N=(a,t,e,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of d(t))!S.call(a,n)&&n!==e&&s(a,n,{get:()=>t[n],enumerable:!(o=b(t,n))||o.enumerable});return a};var w=a=>N(s({},"__esModule",{value:!0}),a);var A={};g(A,{default:()=>p});module.exports=w(A);var P=(a,t)=>{if(typeof Intl!="object"||typeof Intl.NumberFormat!="function"||typeof Intl.NumberFormat.prototype.formatToParts!="function")return Number;let e=new Intl.NumberFormat(a,t),o=[...e.formatToParts(12345678912345679e-8),...e.formatToParts(123456789),...e.formatToParts(1234),...e.formatToParts(.12345)],n=new Array(10).fill(void 0).map((r,m)=>e.format(m)),f=Array.from(new Set(o.filter(r=>r.type==="literal").map(r=>r.value))),u=Array.from(new Set(o.filter(r=>r.type==="currency").map(r=>r.value))),i=Array.from(new Set(o.filter(r=>r.type==="group").map(r=>r.value))),c=Array.from(new Set(o.filter(r=>r.type==="decimal").map(r=>r.value)));return r=>Number(n.reduce((m,l,y)=>m.split(l).join(String(y)),c.reduce((m,l)=>m.split(l).join("."),[f,u,i].flat().reduce((m,l)=>m.split(l).join(""),r.replace(/\s/g,"")))))},p=P;