function f(n) {
  const e = [], t = String(n || "");
  let i = t.indexOf(","), o = 0, s = !1;
  for (; !s; ) {
    i === -1 && (i = t.length, s = !0);
    const r = t.slice(o, i).trim();
    (r || !s) && e.push(r), o = i + 1, i = t.indexOf(",", o);
  }
  return e;
}
function p(n, e) {
  const t = {};
  return (n[n.length - 1] === "" ? [...n, ""] : n).join(
    (t.padRight ? " " : "") + "," + (t.padLeft === !1 ? "" : " ")
  ).trim();
}
export {
  f as parse,
  p as stringify
};
//# sourceMappingURL=index.js.map
