(() => {
  let script = document.currentScript;
  if (!script) { console.warn("No current script found"); return; }
  if (script instanceof SVGScriptElement) { console.warn("cannot execute in SVGScriptElement"); return; }
  if (!script.src.includes("config.codenbutter.com") || script.closest('head')) { script = document.querySelector('body script:not([data-cb-executed])[src*="/kdzxtynqvorg.js"]'); }
  if (!script) { console.warn("No CB script found"); return; }
  function getOs() {
    const userAgent = navigator.userAgent || navigator.vendor || window.opera;
    if (/windows phone/i.test(userAgent)) { return "Windows Phone"; }
    if (/android/i.test(userAgent)) { return "Android"; }
    if (/iPad|iPhone|iPod/.test(userAgent) && !window.MSStream) { return "iOS"; }
    return "Desktop";
  }
  function getDevice() {
    if (getOs() !== "Desktop") { return "MOBILE"; }
    if (window.innerWidth > 100 && window.innerWidth < 430) { return "MOBILE"; }
    return "DESKTOP";
  }
  const searchParams = new URLSearchParams(script.src.split("?")[1]);
  const extraHeight = Number(script.getAttribute("data-cb-extra-height") || 0);
  const sanitizedHeight = Number.isNaN(extraHeight) ? 0 : extraHeight;
  const useFadeIn = script.getAttribute("data-cb-fadein") || false;
  const usePlaceholder = (script.getAttribute("data-cb-placeholder") || searchParams.get("placeholder") === "true") && (getDevice() === "DESKTOP" || "DESKTOP" === "ALL");
  const cbElement = usePlaceholder ? `<div data-cb-embedded="banner-group" data-campaign-id="kdzxtynqvorg" style='${useFadeIn ? "opacity: 0; transition: all 0.3s;" : ""}'><div data-cb-placeholder="true" style="padding-bottom: calc(39.473684210526315% +  ${sanitizedHeight}px);"></div></div>` : '<div data-cb-embedded="banner-group" data-campaign-id="kdzxtynqvorg"></div>'
  if (script.async || script.defer || /complete|interactive|loaded/.test(document.readyState)) { script.insertAdjacentHTML('afterend', cbElement);}
  else { document.write(cbElement); }
  script.setAttribute("data-cb-executed", "true");
})();