class r{static capitalize(t){var i;return((i=t==null?void 0:t.charAt(0))==null?void 0:i.toUpperCase())+(t==null?void 0:t.slice(1))}static camel(t,i="_"){return t.split(i).map((a,e)=>e===0?a.toLowerCase():r.capitalize(a.toLowerCase())).join("")}static kebab(t){return r.snake(t,"-")}static dotCase(t){return r.snake(t,".")}static snake(t,i="_"){return t?t.replace(/[\s._-]+/g,i).replace(/([a-z])([A-Z])/g,`$1${i}$2`).toLowerCase():""}static replaceFirst(t,i,a){return t?t.replace(new RegExp(i,"i"),a):""}static studly(t,i=" "){return t?t.split(i).map(a=>r.capitalize(a.toLowerCase())).join(""):""}static headline(t){return t?t.replace(/([a-z0-9])([A-Z])/g,"$1 $2").replace(/[-_]/g," ").replace(/\s+/g," ").trim().split(" ").map(i=>r.capitalize(i)).join(" "):""}static contains(t,i){return i=Array.isArray(i)?i:[i],i.some(a=>t.includes(a))}static startsWith(t,i){return i=Array.isArray(i)?i:[i],i.some(a=>t.startsWith(a))}static endsWith(t,i){return i=Array.isArray(i)?i:[i],i.some(a=>t.endsWith(a))}static limit(t,i,a="..."){return t.length>i?t.slice(0,i)+a:t}static objectToString(t){const i=[];if(typeof t=="object"&&t.join===void 0)for(const a in t)i.push(r.objectToString(t[a]));else if(typeof t=="object"&&t.join!==void 0)for(const a in t)i.push(r.objectToString(t[a]));else typeof t=="function"||typeof t=="string"&&i.push(t);return i.join("<br />")}}export{r as S};
