import slugify from"slugify";export function strikethroughText(e){return e.split("").map((e=>e+"̵")).join("")}export function escapeFormId(e){return e.replace(/[.[\]]/g,(e=>({".":"%2e","[":"%5b","]":"%5d"}[e]||"")))}export function unescapeFormId(e){return e.replace(/%2e|%5b|%5d/g,(e=>({"%2e":".","%5b":"[","%5d":"]"}[e]||"")))}export function encodeBackSlashes(e){return e.replace(/\\/g,"%5C")}export function safeSlugify(e){return slugify(e)||e.toString().toLowerCase().replace(/\s+/g,"-").replace(/&/g,"-and-").replace(/--+/g,"-").replace(/^-+/,"").replace(/-+$/,"")}export function safeJsonParse(e,r={}){try{return JSON.parse(e)}catch(e){return r}}
//# sourceMappingURL=string.js.map