var o = /* @__PURE__ */ new Map();
function c(r, t) {
  const n = JSON.stringify({
    locale: r,
    options: t
  }), e = o.get(n);
  if (e) return e;
  const u = new Intl.NumberFormat(r, t);
  return o.set(n, u), u;
}
function f(r, t, n) {
  return r == null ? "" : c(t, n).format(r);
}
function a(r, t, n) {
  return r == null ? "" : n ? f(r, t, n) : f(r / 100, t, { style: "percent" });
}
function i(r, t, n) {
  return (r - t) * 100 / (n - t);
}
export {
  f as n,
  a as r,
  i as t
};

//# sourceMappingURL=valueToPercent.js.map