const t=/[\s_.-]+/,n="_";function r(r){return function(n){const r=[n.charAt(0)];for(let t=1;t<n.length;t++){const c=n.charAt(t-1).match(/[a-z]/g)?.length>0,e=n.charAt(t).match(/[A-Z]/g)?.length>0;c&&e&&r.push(" "),r.push(n.charAt(t))}return r.join("").split(t)}(r).map(((t,r)=>function(t,r=!0){if(null==t||""===t)return"";const c=t.charAt(0),e=t.slice(1).toLowerCase();if(r&&c>="0"&&c<="9")return`${n}${c}${e}`;return`${c.toUpperCase()}${e}`}(t,r>0))).join("")}export{r as pascalCase};
//# sourceMappingURL=change-case.js.map
