"use client";
function c(r) {
  e: for (var f = r.length, e = 1, a = -1, t; e < f; ++e)
    switch (r[e]) {
      case ".":
        a = t = e;
        break;
      case "0":
        a === 0 && (a = e), t = e;
        break;
      default:
        if (!+r[e]) break e;
        a > 0 && (a = 0);
        break;
    }
  return a > 0 ? r.slice(0, a) + r.slice(t + 1) : r;
}
export {
  c as default
};
