var razorSeo={"gaCode":"UA-190369823-1","awCode":"","gtmCode":"","facebookPixelId":"","googleSiteVerification":""}
"use strict";var razorSeoScripts=()=>{var e=razorSeo.gaCode,o=razorSeo.awCode,a=razorSeo.gtmCode,t=razorSeo.facebookPixelId,n="ga-disable-"+e;function i(){dataLayer.push(arguments)}window.analyticsLoaded=!1,window.facebookPixelLoaded=!1,window.addEventListener("cookieConsent",(function(n){var r,s,w,l,p,f;n.detail.hasOption("google_analytics")?!1===window.analyticsLoaded&&(d(),window.analyticsLoaded=!0,""!==a?function(e,o,a,t,n){e[t]=e[t]||[],e[t].push({"gtm.start":(new Date).getTime(),event:"gtm.js"});var i=o.getElementsByTagName(a)[0],d=o.createElement(a);d.async=!0,d.src="https://www.googletagmanager.com/gtm.js?id="+n,i.parentNode.insertBefore(d,i)}(window,document,"script","dataLayer",a):(window.dataLayer=window.dataLayer||[],i("js",new Date),i("config",e,{anonymize_ip:!0}),o&&i("config",o))):c(),n.detail.hasOption("facebook_pixel")&&!1===window.facebookPixelLoaded&&(window.facebookPixelLoaded=!0,""!==t&&(r=window,s=document,w="script",r.fbq||(l=r.fbq=function(){l.callMethod?l.callMethod.apply(l,arguments):l.queue.push(arguments)},r._fbq||(r._fbq=l),l.push=l,l.loaded=!0,l.version="2.0",l.queue=[],(p=s.createElement(w)).async=!0,p.src="https://connect.facebook.net/en_US/fbevents.js",(f=s.getElementsByTagName(w)[0]).parentNode.insertBefore(p,f)),fbq("init",t),fbq("track","PageView")))}));var d=()=>{document.cookie.indexOf(n+"=true")>-1&&(window[n]=!1,document.cookie=n+"=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/")},c=()=>{r("_ga")&&r("_gid")&&""===a&&(window[n]=!0,document.cookie=n+"=true; expires=Thu, 31 Dec 2099 23:59:59 UTC; path=/")},r=e=>{var o="; ".concat(document.cookie).split("; ".concat(e,"="));if(2===o.length)return o.pop().split(";").shift()}};razorSeoScripts();const razorCookieConsentConfiguration=JSON.parse('{"cookieName":"razor_cookie_consent","expiryDays":365,"hideOnInit":false,"containerId":"razor-cookie-consent"}')
"use strict";!function(){if("function"==typeof window.CustomEvent)return!1;window.CustomEvent=function(t,e){var o=document.createEvent("CustomEvent");return e=e||{bubbles:!1,cancelable:!1,detail:null},o.initCustomEvent(t,e.bubbles,e.cancelable,e.detail),o},void 0===NodeList.prototype.forEach&&(NodeList.prototype.forEach=Array.prototype.forEach),Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector),Element.prototype.closest||(Element.prototype.closest=function(t){var e=this;do{if(Element.prototype.matches.call(e,t))return e;e=e.parentElement||e.parentNode}while(null!==e&&1===e.nodeType);return null})}(),function(t){var e={cookieName:"",settingsClass:"",openButtonClass:"",consentVariableName:"cookieConsent",containerDisplayStyle:"block",expiryDays:365,modalContainer:null,modalForm:null,saveButton:null,selectAllButton:null,isSelectAll:!1,consentButtons:[],consentScripts:[],init:function(t){var e=this;if(this.cookieName="cookieName"in t?t.cookieName:"razor_cookie_consent",this.openButtonClass="openButtonClass"in t?t.openButtonClass:"cookie-consent-open",this.expiryDays="expiryDays"in t?parseInt(t.expiryDays):365,this.hideOnInit="hideOnInit"in t&&Boolean(t.hideOnInit),this.updateConsentButtons(),window[this.consentVariableName]={consent:!1,options:[]},window.cookieConsentModalToggle=function(){e.modalContainer.style.display="none"===e.modalContainer.style.display?e.containerDisplayStyle:"none"},"containerId"in t)try{this.modalContainer=document.querySelector("#"+t.containerId)}catch(t){throw new Error("invalid container selector")}null!==this.modalContainer&&(this.saveButton=this.modalContainer.querySelector("button.save, input.save"),this.selectAllButton=this.modalContainer.querySelector("button.select-all, input.select-all"),this.registerButtonEvents(this.modalContainer),this.modalForm=this.modalContainer.querySelector("form")),!0===this.hasCookie()?this.consentEventDispatch():!1===this.hideOnInit&&(this.modalContainer.style.display=this.containerDisplayStyle),document.querySelectorAll("."+this.openButtonClass).forEach((function(t){t.addEventListener("click",(function(t){t.preventDefault(),e.modalContainer.style.display=e.containerDisplayStyle}))})),this.consentButtons.forEach((function(t){t.addEventListener("click",(function(){var t=e.getCookie().options;t.push(this.getAttribute("data-identifier")),e.setConsentCookie(t),e.replaceConsentButtons(this.getAttribute("data-identifier"))}))})),this.modalForm.querySelectorAll(".option").forEach((function(t){t.addEventListener("change",(function(){var t=this,o=e.modalForm.querySelector('.cookieoptions[data-parent="#'+this.id+'"]');o.querySelectorAll('input[type="checkbox"]').forEach((function(e){e.checked=t.checked})),e.updateParentOptionState(o)}))})),this.modalForm.querySelectorAll('.cookieoptions input[type="checkbox"]').forEach((function(t){t.addEventListener("change",(function(){var t=this.closest(".cookieoptions");t instanceof Element&&e.updateParentOptionState(t)}))}))},updateConsentButtons:function(){this.consentButtons=document.querySelectorAll(".cookie-consent-replacement .accept")},replaceConsentButtons:function(t){var e=this,o=document.createElement("textarea"),n=document.createElement("div");this.consentButtons.forEach((function(i){var a=i.closest(".cookie-consent-replacement");if(t===i.getAttribute("data-identifier")&&(o.innerHTML=a.getAttribute("data-replacement"),n.innerHTML=o.innerText,n.childNodes.forEach((function(t){a.parentNode.appendChild(t.cloneNode(!0))})),a.parentNode.removeChild(a),e.updateConsentButtons()),!0===a.hasAttribute("data-scripts")){var s=JSON.parse(a.getAttribute("data-scripts"));for(var r in s){var c=!1,l=!1,u=void 0,d=void 0;"string"==typeof r&&(d=r),"string"==typeof s[r]?u=s[r]:(u=s[r].src,c=s[r].async,l=s[r].defer),-1===e.consentScripts.indexOf(u)&&(e.consentScripts.push(u),e.addScript(u,c,l,d))}}}))},addScript:function(t,e,o,n){var i=document.createElement("script");i.async=e,i.defer=o,"string"==typeof n&&(i.onload=i.onreadystatechange=function(t,e){(e||!this.readyState||/loaded|complete/.test(this.readyState))&&(this.onload=null,this.onreadystatechange=null,e||window.dispatchEvent(new CustomEvent(n)))}),i.src=t,document.body.appendChild(i)},registerButtonEvents:function(t){var e=this,o=t.querySelector(".show-details");null!==this.selectAllButton&&this.selectAllButton.addEventListener("click",(function(t){e.isSelectAll=!0,e.toggleFormDisabledState(!0),e.modalForm.querySelectorAll('input[type="checkbox"]').forEach((function(t){t.checked=!0})),"undefined"!=typeof URLSearchParams?(t.preventDefault(),e.submitForm()):e.fallbackSubmitForm()})),null!==this.saveButton&&this.saveButton.addEventListener("click",(function(t){"undefined"!=typeof URLSearchParams?(t.preventDefault(),e.toggleFormDisabledState(!0),e.submitForm()):e.fallbackSubmitForm()})),null!==o&&o.addEventListener("click",(function(e){e.preventDefault(),t.querySelectorAll(".detail, .show-details, .consent-modal").forEach((function(t){t.classList.toggle("open")}))}))},hasCookie:function(){return null!==this.getCookie()&&this.getCookie()instanceof Object&&!0===this.getCookie().consent},getCookie:function(){var t=document.cookie.match("(^|[^;]+)\\s*"+this.cookieName+"\\s*=\\s*([^;]+)"),e=null!==t?JSON.parse(decodeURIComponent(t.pop())):null;return null!==e&&(e.hasOption=function(t){return this.options.indexOf(t)>=0}),e},submitForm:function(){var t=this;this.setXhrSubmit(this.modalForm,!0),setTimeout((function(){t.closeModal()}),200);try{var e=new FormData;this.modalForm.querySelectorAll("input").forEach((function(t){"checkbox"===t.type&&!0!==t.checked||e.append(t.name,t.value)}));for(var o=new URLSearchParams,n=e.entries(),i=n.next();!1===i.done;)o.append(i.value[0],i.value[1]),i=n.next();!0===this.isSelectAll&&o.append(this.modalForm.querySelector(".select-all").getAttribute("name"),"1"),fetch(this.modalForm.getAttribute("action"),{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:o}).then((function(e){if(200!==e.status)throw new Error("xhr request failed: "+e.status+' - reason: "'+e.statusText+'"');t.isSelectAll=!1,t.toggleFormDisabledState(!1)})).catch((function(e){t.toggleFormDisabledState(!1),console.error(e)}))}catch(e){t.toggleFormDisabledState(!1),console.error(e)}this.setConsentCookie()},fallbackSubmitForm:function(){if(this.setXhrSubmit(this.modalForm,!1),!0===this.isSelectAll){var t=document.createElement("input");t.type="hidden",t.name=this.modalForm.querySelector(".select-all").getAttribute("name"),t.value="1",this.modalForm.appendChild(t)}this.setConsentCookie()},setConsentCookie:function(t){var e=new Date;e.setDate(e.getDate()+this.expiryDays),!1===Array.isArray(t)&&(t=[],this.modalForm.querySelectorAll('input[type="checkbox"]').forEach((function(e){!0===e.checked&&null!==e.getAttribute("data-identifier")&&t.push(e.getAttribute("data-identifier"))}))),document.cookie=this.cookieName+"="+encodeURI(JSON.stringify({consent:!0,options:t}))+";expires="+e.toUTCString()+";samesite=strict;path=/",this.consentEventDispatch()},setXhrSubmit:function(t,e){null!==t&&(t.querySelector(".is-ajax").value=!0===e?1:0)},toggleFormDisabledState:function(t){this.selectAllButton.disabled=t,this.saveButton.disabled=t,this.modalForm.querySelectorAll('input[type="checkbox"]:not(.option-necessary)').forEach((function(e){e.disabled=t}))},closeModal:function(){null!==this.modalContainer&&(this.modalContainer.style.display="none")},consentEventDispatch:function(){var t=this;if(!1===this.hasCookie())throw new Error("Can't do event dispatch if the necessary cookie hasn't been set");window[this.consentVariableName]=this.getCookie(),window.dispatchEvent(new CustomEvent("cookieConsent",{detail:this.getCookie()})),this.modalForm.querySelectorAll('input[type="checkbox"]').forEach((function(e){!0===t.getCookie().hasOption(e.getAttribute("data-identifier"))&&(e.checked=!0)})),this.modalForm.querySelectorAll(".cookieoptions").forEach((function(e){t.updateParentOptionState(e)})),this.getCookie().options.forEach((function(e){t.replaceConsentButtons(e)}))},updateParentOptionState:function(t){var e=this.modalForm.querySelector(t.getAttribute("data-parent")),o=e.closest(".label"),n=t.querySelectorAll('input[type="checkbox"]'),i=t.querySelectorAll('input[type="checkbox"]:checked');0===i.length?(o.classList.remove("partially-checked"),e.checked=!1):n.length===i.length?(o.classList.remove("partially-checked"),e.checked=!0):(o.classList.add("partially-checked"),e.checked=!1)}};document.addEventListener("DOMContentLoaded",(function(){try{e.init(t)}catch(t){console.error("Cookie Consent: "+t)}}))}("object"==typeof razorCookieConsentConfiguration?razorCookieConsentConfiguration:{})