import { p as parseSvgPath } from "./watermark.js";
function svgToPaths(str) {
  if (!str)
    return [];
  return parseSvgPath(str);
}
function pathsToSvg(arr) {
  return arr.reduce((str, path) => {
    path = path.map((v) => {
      if (typeof v === "number")
        return +v.toFixed(2);
      return v;
    });
    return str + path.join(" ");
  }, "");
}
export { pathsToSvg as p, svgToPaths as s };
