function n(e){return String(e).toLowerCase().replace(/\s+/g,"-").replace(/[^\w\-]+/g,"").replace(/\-\-+/g,"-").replace(/^-+/,"").replace(/-+$/,"")}typeof window.createSlug!="function"&&(window.createSlug=n);document.addEventListener("DOMContentLoaded",()=>{const e=document.getElementById("name"),t=document.getElementById("slug");!e||!t||e.addEventListener("input",()=>{(!t.value||!t.hasAttribute("readonly"))&&(t.value=window.createSlug(e.value))})});
