/**
* @package DPCalendar
* @copyright Digital Peak GmbH. <https://www.digital-peak.com>
* @license https://www.gnu.org/licenses/gpl-3.0.html GNU/GPL
*/
const o="font-weight: normal;",e="font-weight: bold;",t="font-style: italic;",n="default",c={collapsed:!1,defaultEvent:void 0,event:void 0,label:"AutoConsoleGroup",showTime:!0},r={profile:0,profileEnd:0,timeStamp:0,trace:0};const{fromEntries:i,keys:l}=Object,u=o=>[o,console[o]],f=o=>e=>[e,function(t){o[e]=t}],s=(o,e)=>i(l(o).map(e));function a(o={}){const e={},t={},i=[],l={...c,...o};let a;function d(){i.length=0}function m(){delete l.event,d()}function p(){if(0!==i.length){for(const[o,...e]of i);m()}else m()}function g(){a=function(){const o=new Date,e=(e,t)=>o[e]().toString().padStart(t,"0");return`@ ${e("getHours",2)}:${e("getMinutes",2)}:${e("getSeconds",2)}.${e("getMilliseconds",3)}`}(),queueMicrotask((()=>queueMicrotask(p)))}function w(o,...e){0===i.length&&g(),i.push([o,...e])}function h(o=n,...t){w("log",`${o}: ${performance.now()-e[o]} ms`,...t)}return{...s(l,f(l)),...s(console,(o=>[o,(...e)=>w(o,...e)])),...s(r,u),count:function(o=n){t[o]?t[o]+=1:t[o]=1,w("log",`${o}: ${t[o]}`)},countReset:function(o=n){delete t[o]},endAutoGroup:p,errorBoundary:o=>(...e)=>{let t;try{t=o(...e)}catch(o){w("error",o)}return t},purge:d,time:function(o=n){e[o]=performance.now()},timeEnd:function(o=n){h(o),delete e[o]},timeLog:h}}const d=()=>!(typeof window>"u")&&(null==window?void 0:window.matchMedia("(prefers-color-scheme: dark)").matches),m=d()?"color: #A9C7FB;":"color: #135CD2;",p=d()?"color: #E3E3E3;":"color: #1F1F1F;";export{t as B,m as K,e as R,o as h,a as x,p as z};