function e(){if(typeof window>`u`)return null;try{let e=[new URLSearchParams(window.location.search).get(`mc-debug`),window.localStorage.getItem(`mc-debug`)].filter(e=>!!e).join(`,`);if(!e)return null;if(e.split(`,`).map(e=>e.trim().toLowerCase()).includes(`all`))return`all`;let t=new Set(e.split(`,`).map(e=>e.trim().toLowerCase()).filter(Boolean));return t.size?t:null}catch{return null}}function t(t){if(typeof window>`u`)return!1;try{if(window.localStorage.getItem(`mc-debug-${t}`)===`1`||new URLSearchParams(window.location.search).get(`mc-debug-${t}`)===`1`)return!0;let n=e();if(n===`all`||n&&n.has(t))return!0}catch{}return!1}function n(e,...n){t(e)&&console.info(`[mc:${e}]`,...n)}var r=new Map;function i(e,n,i,...a){if(!t(e))return;let o=Date.now();o-(r.get(n)??0)<i||(r.set(n,o),console.info(`[mc:${e}]`,...a))}export{t as n,i as r,n as t};