/*!
 * KoliBri - The accessible HTML-Standard
 */
import{aR as t,g as a,L as o,a0 as s,aS as e,aT as l,aU as n,at as r,aV as i,aW as c,u as L,aX as d}from"./index-c3ae175d.js";import{i as f,r as p,g as m}from"./dev.utils-c7d151c6.js";function g(t,e){try{Object.defineProperty(m(),t,{get:function(){return e}})}catch(e){o.debug(`KoliBri property ${t} is already bind.`)}}const h=(t,e)=>o.debug(`${t} ${e?"":"not "}activated`),u=()=>{if(f(),t()){p(),g("a11yColorContrast",n),g("querySelector",r),g("querySelectorAll",i),g("querySelectorColors",c),g("utils",(function(){return l})),g("parseJson",L),g("stringifyJson",d);const o=a().body,u=a().createElement("svg");if(u.setAttribute("aria-label","KoliBri-DevTools"),u.setAttribute("xmlns","http://www.w3.org/2000/svg"),u.setAttribute("role","toolbar"),u.setAttribute("style","position: fixed;color: black;font-size: 200%;bottom: 0.25rem;right: 0.25rem;"),u.innerHTML='<svg\n  xmlns="http://www.w3.org/2000/svg"\n  width="50"\n  height="50"\n  viewBox="0 0 600 600"\n>\n  <path d="M353 322L213 304V434L353 322Z" fill="#047" />\n  <path d="M209 564V304L149 434L209 564Z" fill="#047" />\n  <path d="M357 316L417 250L361 210L275 244L357 316Z" fill="#047" />\n  <path d="M353 318L35 36L213 300L353 318Z" fill="#047" />\n  <path d="M329 218L237 92L250 222L272 241L329 218Z" fill="#047" />\n  <path d="M391 286L565 272L421 252L391 286Z" fill="#047" />\n</svg>',a().body.appendChild(u),h("Development mode",t()),h("Experimental mode",s()),h("Color contrast analysis",e()),e()){const t=setTimeout((()=>{clearTimeout(t),setInterval((()=>{l.queryHtmlElementColors(a().createElement("div"),n(o),!1,!1)}),1e4)}),2500)}}};export{u as initialize};