{"version":3,"file":"path.mjs","names":[],"sources":["../../../src/internal/clerk-js/path.ts"],"sourcesContent":["const SEPARATOR = '/';\nconst MULTIPLE_SEPARATOR_REGEX = new RegExp(SEPARATOR + '{1,}', 'g');\n\ntype PathString = string | null | undefined;\n\nexport function joinPaths(a: PathString, b: PathString): string {\n  return [a, b]\n    .filter(p => p)\n    .join(SEPARATOR)\n    .replace(MULTIPLE_SEPARATOR_REGEX, SEPARATOR);\n}\n"],"mappings":";AAAA,MAAM,YAAY;AAClB,MAAM,2CAA2B,IAAI,OAAO,SAAoB,GAAG;AAInE,SAAgB,UAAU,GAAe,GAAuB;CAC9D,OAAO,CAAC,GAAG,CAAC,CAAC,CACV,QAAO,MAAK,CAAC,CAAC,CACd,KAAK,SAAS,CAAC,CACf,QAAQ,0BAA0B,SAAS;AAChD"}