!function(){var e=[];document.getElementsByClassName||(document.getElementsByClassName=function(e){var t,n,a,o=document,i=[];if(o.querySelectorAll)return o.querySelectorAll("."+e);if(o.evaluate)for(n=".//*[contains(concat(' ', @class, ' '), ' "+e+" ')]",a=(t=o.evaluate(n,o,null,0,null)).iterateNext();a;a=t.iterateNext())i.push(a);else for(t=o.getElementsByTagName("*"),n=new RegExp("(^|\\s)"+e+"(\\s|$)"),a=0;a0?"; expires="+n.expires.toUTCString():"",n.path?"; path="+n.path:"",n.domain?"; domain="+n.domain:"","https:"===window.location.protocol?"; SameSite=None; Secure":"; SameSite=Lax"].join(""),document.cookie}function W(e){if(e){var t=document.cookie.match("(^|;) ?"+e+"=([^;]*)(;|$)");return t?unescape(t[2]):null}return document.cookie}function A(){var e=W(g),t=W(v);e&&(l.se=e),t&&(l.tk=t);var n=null;if(l.se){if(!p){n=W(w);var a=W(b),o=document.referrer;I.href=o,n&&n.length?I.hostname!==m&&I.hostname.split(".").slice(1).join(".")!==f||(l.rf=n):document.referrer.length&&I.hostname===location.hostname||(l.se=(new Date).getTime()),a&&a.length||U(b,o,{expires:_})}}else l.se=(new Date).getTime();return p=l.se,U(g,p,{expires:_}),U(w,location.href,{expires:y}),p}function z(e){var t=e.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]"),n=new RegExp("[\\?&]"+t+"=([^&#]*)").exec(location.search);return null===n?"":decodeURIComponent(n[1].replace(/\+/g," "))}function q(e){A(),l.ts=(new Date).getTime().toString();var t,n=document.documentElement,a=(window.pageXOffset||n.scrollLeft)-(n.clientLeft||0),o=(window.pageYOffset||n.scrollTop)-(n.clientTop||0),i=[];for(t in l.pt=o,l.pl=a,l.ts=Math.round((new Date).getTime()/1e3),l.loc=window.location.href,z("pas")&&(l.pas=z("pas")),h={},l)l.hasOwnProperty(t)&&(i.push(encodeURIComponent(t)+"="+encodeURIComponent(l[t])),h[t]=l[t]);for(t in e)e.hasOwnProperty(t)&&(i.push(encodeURIComponent(t)+"="+encodeURIComponent(e[t])),h[t]=e[t]);return i.join("&")}function j(){if(S())for(A();r.length>0;)H(r.shift())}function F(){j()}function V(e,t){window.documentIsReady?"function"==typeof e&&e.apply(window,t):c.push({f:e,a:t})}function $(e){return"function"==typeof e?function(){V(e,Array.prototype.slice.call(arguments))}:null}function Q(){var e=function(){if(!window.chatbotLoadWrapperBool){window.chatbotLoadWrapperBool=!0;var e=z("preview-bot"),t=q(e?{"preview-bot":e}:{});D(E+"/getChatbot",t)}};t(e),setTimeout(e,100)}function X(e,t){e.className=e.className.replace(new RegExp(" *\\b"+t+"\\b","g"),"")}function Y(e,t){e.className+=" "+t}function G(){var e=!!window.screen&&window.screen.width<600;if(e=e||window.innerWidth<600,window.ssChatbot.isMobile!==e){window.ssChatbot.isMobile=e;var t=document.getElementById("ssChatbot");if(!t)return;t.contentWindow.postMessage({isMobile:e},"*"),e?Y(t,"_ss_cb_isMobile"):X(t,"_ss_cb_isMobile")}}function J(e){if("sendMeTheConfig"===e.data){var t=document.getElementById("ssChatbot");if(t){var n=W(v).replace("|","_");t.contentWindow.postMessage({chatbot:window.ssChatbot,trackingId:n,pagePath:window.location.pathname,leadFields:window.ssChatbotLeadFields,hasChatbotBrandingService:window.ssChatbotBranding,offline:window.location.search.indexOf("preview-bot")>=0},"*"),G()}else console.log("respondToConfigRequest failed - no element found with id=ssChatbot.")}}function K(e){var t=document.getElementById("ssChatbot");t&&(t.style=window.ssChatbot.orientation?"right: 0;":"left: 0;","chatbotCollapsed"===e.data&&(Y(t,"_ss_cb_collapsed"),X(t,"_ss_cb_expanded"),X(t,"_ss_cb_welcomeExpanded")),"chatbotExpanded"===e.data&&(X(t,"_ss_cb_collapsed"),Y(t,"_ss_cb_expanded"),X(t,"_ss_cb_welcomeExpanded")),"chatbotWelcomeExpanded"===e.data&&(X(t,"_ss_cb_collapsed"),X(t,"_ss_cb_expanded"),Y(t,"_ss_cb_welcomeExpanded")))}function Z(e){"chatbot-notification"===e.data.name&&(e.data.start?(clearInterval(k),k=setInterval(function(){document.title=L===document.title?e.data.message:L},T)):(clearInterval(k),document.title=L))}function ee(){if("visible"===document.visibilityState){var e=document.getElementById("ssChatbot");if(!e)return;e.contentWindow.postMessage({name:"visibility-change",visible:!0},"*")}}function te(e){var t=0===window.location.search.indexOf("?")?window.location.search.slice(1):"",n=E+x+"?"+t;n+="&requestedLanguage="+function(){var e="en_US";if(navigator&&navigator.languages)for(var t={"de-DE":"de_DE",de:"de_DE","en-US":"en_US",en:"en_US","es-ES":"es_ES",es:"es_ES","it-IT":"it_IT",it:"it_IT","nl-NL":"nl_NL",nl:"nl_NL","pt-PT":"pt_PT",pt:"pt_PT"},n=0;n0;)"function"==typeof(e=c.shift()).f&&e.f.apply(window,e.a)},this.handleChatbotResponse=function(e){if(N.push(e),e&&e.bot)try{!function(e){if(window.ssChatbot||(window.ssChatbot=e.bot),e.lead){var t,n=[];for(t in e.lead)e.lead.hasOwnProperty(t)&&n.push({key:t,value:e.lead[t]});window.ssChatbotLeadFields=n}window.ssChatbotBranding=!!e.hasChatbotBrandingService;var a=function(e,t,n){"function"==typeof window.addEventListener?window.addEventListener(e,t,n):"function"==typeof window.attachEvent&&window.attachEvent(e,t,n)};a("message",J,!1),a("message",K,!1),a("resize",G,!1),a("message",Z,!1),a("visibilitychange",ee,!1)}(e),te(e.bot.displayName)}catch(e){d.push(["ERROR",e])}},this.handleResponse=function(t){if(N.push(t),t){var n;if("page"===t.type&&(B=t,t.isChatbotCapable&&V(Q,[])),t.hasOwnProperty("trackingID")){if(O=t.trackingID,l.tk||(l.tk=O),n=l.tk,U(v,n,{expires:7884e8}),n){var a,o=document.getElementsByTagName("iframe");for(a=0;a