import{s as e}from"./p-d7041ce0.js";import{U as r}from"./p-2cb36beb.js";import{F as n}from"./p-9aab8702.js";var b={file:n.inMemory(),generateId:function(){return r.v4()},FileManager:n},t=function(e,r){for(var n=[],b=2;b<arguments.length;b++)n[b-2]=arguments[b];if(!e.matches(r))return!1;for(var t=0,a=n;t<a.length;t++){var c=a[t],i=e.parentElement;if(!i||!i.matches(c))return!1;e=i}return!0};const a=function(){window.BCE=window.BCE||b,e((function(e){if(t(e,"bce-button","bce-fab"))return"bce-fab";if(t(e,"bce-button","bce-menu"))return"bce-menu";if(t(e,"bce-link","bce-link"))return"bce-link";if(t(e,"bce-nav","bce-header"))return"bce-header";if(t(e,"bce-nav","bce-side-bar"))return"bce-side-bar";var r=e.closest("bce-root");return e.getAttribute("mode")||r&&r.mode||"default"}))};export{a as g};