function c(){var e;let t="cms";try{const n=document.getElementById("header-props");if(n){const r=JSON.parse(n.textContent||"{}");(e=r.cmsConfig)!=null&&e.admin_url&&(t=r.cmsConfig.admin_url)}}catch{}if(!t){const n=document.querySelector('meta[name="cms-admin-url"]');n!=null&&n.content&&(t=n.content)}return t.replace(/^\/+|\/+$/g,"")}function s(){const t=c();function e(n=""){if(!n||n==="/")return`/${t}`;const r=n.startsWith("/")?n:`/${n}`;return`/${t}${r}`}return{cmsUrl:e,cmsPrefix:t}}function i(t=""){const e=c();if(!t||t==="/")return`/${e}`;const n=t.startsWith("/")?t:`/${t}`;return`/${e}${n}`}export{i as g,s as u};
