import{t as r}from"./startCase-DOk4LYuA.js";import{u as e}from"./hotkeys-Lbk6RHir.js";const l={startCase:t=>{if(!t)return"";if(typeof t!="string")throw e.error(t),TypeError(`Expected string, got ${typeof t}`);return/[A-Za-z]/.test(t)?r(t):t},htmlEscape:t=>t&&t.replaceAll("&","&amp;").replaceAll("<","&lt;").replaceAll(">","&gt;").replaceAll('"',"&quot;").replaceAll("'","&#039;").replaceAll(`
`," "),withTrailingSlash(t){return t.endsWith("/")?t:`${t}/`},withoutTrailingSlash(t){return t.endsWith("/")?t.slice(0,-1):t},withoutLeadingSlash(t){return t.startsWith("/")?t.slice(1):t},asString:t=>{if(typeof t=="string")return t;try{return JSON.stringify(t)}catch{return String(t)}}};export{l as t};
