import{a as s}from"./p-4c596c7f.js";const o=o=>{const e=document;e&&(e.documentElement.setAttribute("mode",o),e.documentElement.classList.add(o));const r=s=>{var o;return null===(o=s.tagName)||void 0===o?void 0:o.startsWith("BAL-")},t=s=>["css","sass","all"].includes(s);s((s=>{for(;s;){const o=s.mode||s.getAttribute("mode");if(o){if(t(o))return o;r(s)&&console.warn('Invalid baloise style mode: "'+o+'", expected: "css" or "sass"')}s=s.parentElement}return o}))};export{o as i}