System.register(["./p-0bfb8721.system.js","./p-161b0328.system.js","./p-5a78b481.system.js"],(function(e){"use strict";var r,t,n,a,c,o;return{setters:[function(e){r=e.s},function(e){t=e.U;n=e.g;a=e.s},function(e){c=e.F;o=e.S}],execute:function(){var i=function(e){if(e.media!=="(prefers-color-scheme: dark)")return;var r=u();var t=r==="auto"?e.matches?"dark":"light":r;document.documentElement.setAttribute("color-scheme",t)};var s=function(){var e=window.matchMedia("(prefers-color-scheme: dark)");e.addEventListener?e.addEventListener("change",i):e.addListener(i);i(e)};var u=function(){var e=localStorage.getItem("bce-color-scheme");return e?e:"auto"};var l=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)");i(r)}};var m={file:c.inMemory(),FileManager:c,generateId:function(){return t.v4()},getColorScheme:u,getColorShade:n,setColorScheme:l,setColorShade:a,ScrollSpy:o};var f=function(){window.BCE=window.BCE||m;s();r((function(e){if(d(e,"bce-button","bce-fab"))return"fab";if(d(e,"bce-button","bce-menu"))return"menu";if(d(e,"bce-link","bce-link"))return"link";if(d(e,"bce-link","bce-nav","bce-header"))return"header";if(d(e,"bce-nav","bce-header"))return"header";if(d(e,"bce-nav","bce-side-bar"))return"sidebar";var r=e.closest("bce-root");return e.getAttribute("mode")||r&&r.mode||"regular"}))};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 a=0,c=t;a<c.length;a++){var o=c[a];var i=e.parentElement;if(!i||!i.matches(o))return false;e=i}return true};var b=e("g",f)}}}));