System.register(["./p-b152ce82.system.js","./p-1b1e57cd.system.js","./p-9aecb9bd.system.js"],(function(e){"use strict";var r,t,n,c,o;return{setters:[function(e){r=e.s},function(e){t=e.U;n=e.g;c=e.s},function(e){o=e.F}],execute:function(){var a=function(e){if(e.media!=="(prefers-color-scheme: dark)")return;var r=s();var t=r==="auto"?e.matches?"dark":"light":r;document.documentElement.setAttribute("color-scheme",t)};var i=function(){var e=window.matchMedia("(prefers-color-scheme: dark)");e.addEventListener?e.addEventListener("change",a):e.addListener(a);a(e)};var s=function(){var e=localStorage.getItem("bce-color-scheme");return e?e:"auto"};var u=function(e){if(e==="dark"||e==="light"){localStorage.setItem("bce-color-scheme",e);document.documentElement.setAttribute("color-scheme",e)}else{localStorage.removeItem("bce-color-scheme");var r=window.matchMedia("(prefers-color-scheme: dark)");a(r)}};var m={file:o.inMemory(),FileManager:o,generateId:function(){return t.v4()},getColorScheme:s,getColorShade:n,setColorScheme:u,setColorShade:c};var l=function(){window.BCE=window.BCE||m;i();r((function(e){if(d(e,"bce-button","bce-fab"))return"bce-fab";if(d(e,"bce-button","bce-menu"))return"bce-menu";if(d(e,"bce-link","bce-link"))return"bce-link";if(d(e,"bce-nav","bce-header"))return"bce-header";if(d(e,"bce-nav","bce-side-bar"))return"bce-side-bar";var r=e.closest("bce-root");return e.getAttribute("mode")||r&&r.mode||"default"}))};var d=function(e,r){var t=[];for(var n=2;n<arguments.length;n++){t[n-2]=arguments[n]}if(!e.matches(r))return false;for(var c=0,o=t;c<o.length;c++){var a=o[c];var i=e.parentElement;if(!i||!i.matches(a))return false;e=i}return true};var f=e("g",l)}}}));