(function(n,c,o,b,I,S){var e="warmly";function m(){const l="warmly-script-loader",i=document.getElementById(l);if(!i){console.error(`No script found with id=${l}`);return}const r=i.getAttribute("src"),f=new URLSearchParams(r.substr(r.indexOf("/warmly.js")+10)),a=t=>i.getAttribute(`data-${t}`)||f.get(t);new URLSearchParams(window.location.search).get("clientId");const y={clientId:a("clientId")||null,logs:a("logs")===null?!1:a("logs")==="true",record:a("record")||!0,themeType:a("themeType")||"PureLightTheme"};function u(){const t=document.createElement("script");t.setAttribute("type","text/javascript"),t.setAttribute("language","javascript"),t.setAttribute("async","true"),t.setAttribute("defer","true"),t.innerHTML="warmly('init', "+JSON.stringify(y)+")";const s=document.getElementsByTagName("head")[0];s&&s.appendChild(t)}var w='script[src*="'+r.substring(0,r.toLowerCase().lastIndexOf("/"))+'/widget-Dxa2xJPJ.js"]';const g=document.querySelector(w);if(g)g.id=e,u();else{const t=c.createElement(o),s=c.getElementsByTagName(o)[0],h=r.substring(0,r.toLowerCase().lastIndexOf("/"))+"/widget-Dxa2xJPJ.js";t.id=e,t.src=h,t.async=1,t.defer=1,t.type="module",t.addEventListener("load",u),s.parentNode.insertBefore(t,s)}}n["warmly-widget"]=e,n[e]=n[e]||function(){(n[e].q=n[e].q||[]).push(arguments)};const d=()=>{document.readyState==="complete"&&(clearInterval(p),m())},p=setInterval(d,500);d()})(window,document,"script");