!function(){"use strict";window.wpAnalytics={sendEvent:function(e,t,o){try{var n=null;"ga"in window&&(n=ga.getAll()[0])&&(o?n.send("event",e,t,o):n.send("event",e,t))}catch(e){}}};var e={init(){document.querySelectorAll(".btn.dropdown").forEach((e=>e.addEventListener("click",this.toggle)))},toggle(e){e.stopPropagation();const t=e.target;if(t.classList.contains("dropdown-active"))t.classList.remove("dropdown-active");else{t.classList.add("dropdown-active");const e=t.querySelector("ul");console.log(t,e),e.style.top=t.clientHeight+2+"px"}}};document.addEventListener("DOMContentLoaded",(()=>e.init()));const t={red:[230,15,30],red30:[80,0,0],red60:[160,0,0],orange:[239,164,32],yellow:[255,242,0],paleyellow:[255,242,90],lightgreen:[180,255,40],green:[28,189,8],green60:[0,100,50],green30:[0,50,25],lightblue:[0,162,232],lightblue50:[128,209,244],lightblue70:[170,224,247],blue:[0,80,160],blue50:[0,40,80],purple:[139,0,139],rose:[235,0,140],cyan:[0,160,160],white:[255,255,255],black:[0,0,0],darkgrey:[64,64,64],grey:[128,128,128],lightgrey:[192,192,192],whitesmoke:[247,247,247],maroon:[136,0,0],cobalt:[0,80,240],palerose:[197,39,134]},o=["windspeed","precipitationrate","snowdepth","visibility"];window.getColor=(e,t)=>{const n=getElementColor(t);if(o.includes(t)){e=Math.log10(e);const t=n.values.length;for(let e=0;e<t;e++)n.values[e]=Math.log10(n.values[e])}let i,a=-1;for(let t=0;t<n.values.length-1;t++){if(Number(e)===n.values[t]){a=t;break}if(Number(e)>n.values[t]&&Number(e)<n.values[t+1]){a=t+(Number(e)-n.values[t])/(n.values[t+1]-n.values[t]);break}}if(a<0)i=Number(e)<=n.values[0]?n.colors[0]:Number(e)>=n.values[n.values.length-1]?n.colors[n.values.length-1]:[192,192,192];else{const e=Math.floor(a),t=a-e;i=[];for(let o=0;o<3;o++)i.push((1-t)*n.colors[e][o]+t*n.colors[e+1][o])}return`rgba(${Math.round(i[0])}, ${Math.round(i[1])}, ${Math.round(i[2])}, 1)`},window.getElementColor=e=>{if(!e)return;let o,n;return"temperature"==e?(o=[-150,-90,-70,-50,-25,-10,-1e-10,0,20,25,30,35,40,50,70,100],n=[t.grey,t.grey,t.cyan,t.white,t.purple,t.blue,t.lightblue,t.green,t.yellow,t.orange,t.red,t.maroon,t.purple,t.rose,t.white,t.white]):"humidity"==e?(o=[0,10,25,45,70,90,97,101],n=[t.maroon,t.red,t.orange,t.paleyellow,t.whitesmoke,t.lightblue,t.blue,t.cyan]):"windspeed"==e?(o=[.1,3.4,8,13.9,17.2,20.8,32.7,50,87,100],n=[t.blue,t.lightblue,t.green,t.yellow,t.orange,t.red,t.purple,t.rose,t.white,t.white]):"cloudcover"==e?(o=[0,50,100],n=[t.lightblue,t.whitesmoke,t.grey]):"sunpercentage"==e?(o=[0,25,50,75,100],n=[t.grey,t.whitesmoke,t.yellow,t.orange,t.red]):"sunshineduration"==e?(o=[0,6,12,18,24],n=[t.grey,t.whitesmoke,t.yellow,t.orange,t.red]):"precipitationmonth"==e?(o=[0,.9,15,30,90,300,900,1200,1500,3e3],n=[t.white,t.white,t.lightblue70,t.cobalt,t.yellow,t.orange,t.red,t.maroon,t.black,t.black]):"precipitationrate"==e?(o=[0,.03,.5,3-1e-10,3,10,30,40,50,100],n=[t.white,t.white,t.lightblue70,t.cobalt,t.yellow,t.orange,t.red,t.maroon,t.black,t.black]):"precipitationprobability"==e?(o=[0,50,100],n=[t.white,t.lightblue70,t.cobalt]):"snowprobability"==e?(o=[0,50,100],n=[t.white,t.rose,t.purple]):"snowdepth"==e?(o=[0,.01,.03,.1,.2,.5,1,5],n=[t.grey,t.white,t.white,t.lightblue70,t.lightblue50,t.lightblue,t.blue,t.purple,t.purple]):"shortwaveradiation"==e?(o=[0,150,350,600,850,1100,1500],n=[t.black,t.white,t.yellow,t.orange,t.red,t.purple,t.rose]):"uvindex"==e?(o=[0,1,3,6,8,11,16,20],n=[t.white,t.green,t.yellow,t.orange,t.red,t.purple,t.rose,t.white]):"visibility"==e?(o=[10,50,100,200,500,1e3,1e4],n=[t.maroon,t.red,t.orange,t.yellow,t.green,t.lightblue70,t.white]):"pressure"==e?(o=[900,960,985,1015,1025,1035,1045,1100],n=[t.purple,t.blue,t.lightblue,t.whitesmoke,t.paleyellow,t.orange,t.red,t.black]):"waveheight"==e?(o=[0,2,5-1e-10,5,7,10,12,15,20,100],n=[t.whitesmoke,t.whitesmoke,t.lightblue50,t.blue,t.yellow,t.orange,t.red,t.purple,t.rose,t.white,t.white]):"weatherrating"==e&&(o=[1,3,4,6,8,10],n=[t.maroon,t.red,t.orange,t.yellow,t.green,t.green]),{values:o,colors:n}},window.wpGeo={xhr:null,cacheKey:"geo-location",cacheTtlMs:9e5,available:()=>void 0!==navigator.geolocation&&(window.location.protocol.indexOf("https")>=0||window.location.href.indexOf("localhost")>=0),permission(e){navigator.permissions?navigator.permissions.query({name:"geolocation"}).then((t=>{t.state&&("granted"===t.state.toLowerCase()&&e(!0),"denied"===t.state.toLowerCase()&&e(!1)),e(null)}),(()=>{e(null)})):e(null)},roundCoordinate:e=>parseFloat(e.toFixed(2)),getCachedLocation(e,t){const o=wpData.getObj(this.cacheKey);if(!o?.data||!o.cachedAt)return null;if(Date.now()-o.cachedAt>this.cacheTtlMs)return null;if(null!=e&&null!=t){const n=this.roundCoordinate(e),i=this.roundCoordinate(t);if(o.lat!==n||o.lon!==i)return null}return o.data},setCachedLocation(e,t,o){wpData.setObj(this.cacheKey,{lat:this.roundCoordinate(e),lon:this.roundCoordinate(t),data:o,cachedAt:Date.now()})},getLocation(e){const t=this.getCachedLocation();t?e(t):navigator.geolocation?navigator.geolocation.getCurrentPosition((t=>{var o=t.coords.latitude,n=t.coords.longitude;wpGeo.searchLocation(o,n,e)}),(()=>{e(null)})):e(null)},searchLocation(e,t,o){if(wpGeo.xhr?.abort(),e&&t){const n=this.getCachedLocation(e,t);if(n)return void o(n);const i=this.roundCoordinate(e),a=this.roundCoordinate(t),s=`${wpApiUrl}/api/geo/location/?lat=${i}&lon=${a}`;wpGeo.xhr=new AbortController,fetch(s,{method:"get",signal:wpGeo.xhr.signal}).then((e=>e.json())).then((n=>{wpGeo.setCachedLocation(e,t,n),o(n)}))}else o(null)},isInBoundingBox:(e,t,o)=>!!(e&&4===e.length&&t&&o)&&(t>=e[1]&&t<=e[3]&&o>=e[0]&&o<=e[2])},window.modal={init(){window.addEventListener("resize",(()=>this.resize()))},resize(){document.querySelectorAll(".modal").forEach((e=>{const t=e.querySelector(".modal-dialog");let o=null,n=null;if(e.classList.contains("modal-image")){const i=e.querySelector(".modal-body img");let a=i.dataset.width;o=i.dataset.height;const s=o/a,r=window.innerWidth-60;n=window.innerHeight-120,a>r&&(a=r,o=r*s),o>n&&(o=n,a=n/s);const l=e.querySelector(".modal-header").innerHeight;t.style.height=o+16+l+"px",t.style.width=a+32+"px"}else t.style.height="auto",o=t.clientHeight,n=window.innerHeight,t.style.height=(n<o?n:o)+"px";t.style.left=(window.innerWidth-t.clientWidth)/2+"px",t.style.top=(window.innerHeight-t.clientHeight)/2+"px"}))},image(e,t){const o=document.createElement("img");o.src=t,o.addEventListener("load",(t=>{o.dataset.width=t.width,o.dataset.height=t.height,o.classList.add("image"),this.create(e,o,!0,!0)}))},create(e,t,o,n){0===e.length&&(e="&nbsp;");const i="modal-"+Date.now(),a=()=>this.hide("#"+i),s=document.createElement("div");s.classList.add("modal","removable"),n&&s.classList.add("modal-image"),s.id=i,document.body.appendChild(s);const r=document.createElement("div");r.classList.add("modal-overlay"),setTimeout((()=>{r.addEventListener("click",a)}),100),s.appendChild(r);const l=document.createElement("div");l.classList.add("modal-dialog"),s.appendChild(l);const c=document.createElement("div");c.classList.add("modal-header"),l.appendChild(c);const d=document.createElement("button");d.innerHTML="&times;",d.addEventListener("click",a),c.appendChild(d);const u=document.createElement("h4");u.classList.add("title"),u.innerHTML=e,c.appendChild(u);const h=document.createElement("div");h.classList.add("modal-body"),o&&(h.classList.add("cursor-zoomout"),setTimeout((()=>{h.addEventListener("click",a)}),100)),h.appendChild(t),l.appendChild(h),this.show("#"+i)},hide(e){const t=document.querySelector(e);t.classList.contains("removable")?t.remove():t.classList.add("hidden")},show(e){document.querySelector(e).classList.remove("hidden"),this.resize()}},document.addEventListener("DOMContentLoaded",(()=>{modal.init()})),window.wpNotification={init(){window.pushalertbyiw=window.pushalertbyiw||[],pushalertbyiw.push(["disableAutoInit",!0]),pushalertbyiw.push(["onReady",wpNotification.notificationReady]),pushalertbyiw.push(["onSuccess",wpNotification.notificationYes]),pushalertbyiw.push(["onFailure",wpNotification.notificationBlocked])},notificationReady(){wpNotification.isNotificationAvailable()&&(dispatchEvent(new CustomEvent("notification-ready")),wpUtil.isConsentTriggered().then((e=>{if(e)return;const t=wpData.getObj("user-state");t&&!t.notificationPopupShown?wpNotification.notificationPopup():t||wpNotification.notificationPopup()})))},isNotificationAvailable:()=>"Notification"in window&&void 0===window.safari,notificationSubscribe(){PushAlertCo.forceSubscribe()},notificationUnsubscribe(){PushAlertCo.unsubscribe()},notificationPopup(){setTimeout((()=>{wpNotification.sendAnalyticsEvent("popup"),document.querySelector(".notification-popup-wrapper")?.classList.add("show-popup")}),5e3)},notificationYes(e){if(e&&!e.alreadySubscribed){wpNotification.sendAnalyticsEvent("yes"),wpNotification.setState("on");const e=new CustomEvent("notification-change",{detail:{choice:"on"}});dispatchEvent(e)}},notificationNo(){wpNotification.sendAnalyticsEvent("no"),wpNotification.setState("off");const e=new CustomEvent("notification-change",{detail:{choice:"off"}});dispatchEvent(e)},notificationBlocked(e){if(-1===e.status||0===e.status){wpNotification.sendAnalyticsEvent("blocked"),wpNotification.setState("blocked");const e=new CustomEvent("notification-change",{detail:{choice:"blocked"}});dispatchEvent(e)}else{wpNotification.setState("off");const e=new CustomEvent("notification-change",{detail:{choice:"off"}});dispatchEvent(e)}},setState(e){let t=wpData.getObj("user-state");if(t)t.notificationPopupShown=!0,t.notificationChoice=e,wpData.setObj("user-state",t);else{const t={notificationPopupShown:!0,notificationChoice:e};wpData.setObj("user-state",t)}},getState(){const e=wpData.getObj("user-state");return e?e.notificationChoice:"off"},updateLocalInfo(){const e=PushAlertCo.getSubsInfo();let t=wpData.getObj("user-state");e&&t&&("subscribed"===e.status?t.notificationChoice="on":"unsubscribed"===e.status||"default"===Notification.permission?t.notificationChoice="off":"denied"!==e.status&&"denied"!==Notification.permission||(t.notificationChoice="blocked"),wpData.setObj("user-state",t))},sendAnalyticsEvent(e){dataLayer&&dataLayer.push({event:"wplEvents",eventCategory:"notifications",eventAction:e,nonInteraction:"true"})}},document.addEventListener("DOMContentLoaded",wpNotification.init),document.addEventListener("DOMContentLoaded",(()=>{if("true"!=new URLSearchParams(window.location.search).get("debug"))return;const e=document.createElement("div");e.id="CMSDebugOverlay",e.style.zIndex=9999,document.body.appendChild(e),[...document.querySelectorAll(".snippet")].filter((e=>e.children.length&&!e.children[0]?.classList.contains("ErrorTodo"))).forEach((t=>function(e,t){const o=e.getBoundingClientRect(),n=document.createElement("div"),i=document.body.getBoundingClientRect();n.classList.add("snippet-debug"),n.style.position="absolute",n.style.left=o.left-i.left+"px",n.style.top=o.top-i.top+"px",n.style.width=o.width+"px",n.style.height=o.height+"px",n.style.border="2px solid #ffd81b",n.style.pointerEvents="none",t.appendChild(n)}(t,e)))})),window.tabs={init(){document.querySelectorAll(".tabs").forEach((e=>{const t=e.querySelectorAll(".button-list a.btn");t.forEach(((t,o)=>{t.addEventListener("click",(()=>this.selectTab(e,o)))})),t[0]?.click()}))},selectTab(e,t){const o=e.querySelectorAll(".button-list a.btn"),n=e.querySelectorAll(".tabs-panel");o.forEach(((e,o)=>{t==o?e.classList.add("active"):e.classList.remove("active")})),n.forEach(((e,o)=>{t==o?e.classList.add("active"):e.classList.remove("active")})),n[t].classList.contains("tabs-panel-async")&&(n[t].classList.remove("tabs-panel-async"),n[t].classList.add("async"),asyncCheck())}},document.addEventListener("DOMContentLoaded",(()=>tabs.init())),window.wpTooltip={init(){[...document.querySelectorAll("*[data-tooltip]")].forEach((e=>wpTooltip.create(e,e.dataset.tooltip)))},create(e,t){const o=e.closest("modal");if(!t?.length||o)return;const n=document.createElement("div");n.classList.add("wp-tooltip"),n.innerHTML=t,e.addEventListener("mouseover",(()=>document.body.appendChild(n))),e.addEventListener("mouseout",(()=>n.remove())),e.addEventListener("mousemove",(e=>{const t=e.target.getBoundingClientRect();n.style.top=t.top,n.style.left=t.left}))}},document.addEventListener("DOMContentLoaded",wpTooltip.init),window.wpUtil={debounce(e,t){let o;return(...n)=>{clearTimeout(o),o=setTimeout((()=>{o=null,e(...n)}),t)}},throttle(e,t){let o=!1;return(...n)=>{o||(e(...n),o=!0,setTimeout((()=>{o=!1}),t))}},getUrlParam:()=>new URLSearchParams(window.location.search),setUrlParam(e,t){const o=new URL(window.location);o.searchParams.set(e,t),window.history.pushState(null,"",o.toString())},roundTo:(e,t)=>Number(e.toFixed(t)),getScreenSize:()=>window.innerWidth<768?"mobile":window.innerWidth<1024?"tablet":"desktop",isConsentTriggered:()=>new Promise((e=>{window.googlefc.callbackQueue.push({CONSENT_API_READY:()=>{window.__tcfapi("addEventListener",2,((t,o)=>{o&&"loaded"===t.cmpStatus&&(window.__tcfapi("removeEventListener",2,(()=>{})),e("tcloaded"!==t.eventStatus)),o||e(!1)}))}})}))},window.wpWarningMap={compareWarningColors(e,t){const o=["green","yellow","orange","red"],n=o.indexOf(e);return o.indexOf(t)>n?t:e},findFeatureIndex(e,t){let o=null;return e.features.forEach(((e,n)=>{e.properties.ID===t&&(o=n)})),o},getHighestColors(e){let t="green",o="green",n="green";const i=new Date;return e.forEach((e=>{const a=new Date(1e3*e.validFrom),s=new Date(1e3*e.validTill-1e3);if(e.validTill>Date.now()/1e3){const r=864e5,l=Date.UTC(i.getFullYear(),i.getMonth(),i.getDate()),c=Date.UTC(a.getFullYear(),a.getMonth(),a.getDate()),d=Math.floor(c-l)/r,u=Date.UTC(s.getFullYear(),s.getMonth(),s.getDate()),h=Math.floor(u-l)/r;d<=0&&h>=0&&(t=wpWarningMap.compareWarningColors(t,e.code)),d<=1&&h>=1&&(o=wpWarningMap.compareWarningColors(o,e.code)),d<=2&&h>=2&&(n=wpWarningMap.compareWarningColors(n,e.code))}})),[t,o,n]},mergeJson(e,t,o){const n=Object.keys(t);for(let i=0;i<n.length;i++){const a=t[n[i]],s=Object.keys(a);for(let t=0;t<s.length;t++){const n=s[t],i=a[n];let r=null,l=null;if(i.length>0){if(r=wpWarningMap.findFeatureIndex(e,n),l=e.features[r],void 0!==l){const t=wpWarningMap.getHighestColors(i);e.features[r].properties.colorToday=t[0],e.features[r].properties.colorTomorrow=t[1],e.features[r].properties.colorDayAfterTomorrow=t[2],"btnToday"===o?e.features[r].properties.colorActive=t[0]:"btnTomorrow"===o?e.features[r].properties.colorActive=t[1]:"btnDayAfterTomorrow"===o&&(e.features[r].properties.colorActive=t[2])}}else r=wpWarningMap.findFeatureIndex(e,n),l=e.features[r],void 0!==l&&(e.features[r].properties.colorToday="green",e.features[r].properties.colorTomorrow="green",e.features[r].properties.colorDayAfterTomorrow="green",e.features[r].properties.colorActive="green")}}return e}},window.wpWeatherWarning={geoJsonData:null,geoJsonActive:!1,geoJsonFns:[],async geoJson(e){if(this.geoJsonData?e(this.geoJsonData):this.geoJsonFns.push(e),!this.geoJsonActive)try{const e=await fetch("https://api.meteoplaza.com/v2/maps/warningmap/static").then((e=>e.json()));wpWeatherWarning.geoJsonData=e;for(var t=0;t<wpWeatherWarning.geoJsonFns.length;t++)wpWeatherWarning.geoJsonFns[t](e);wpWeatherWarning.geoJsonFns=[],this.geoJsonActive=!0}catch(e){}}};const n=document.querySelector(".js-premium-popup"),i=document.querySelector(".js-subscribe"),a=document.querySelector(".js-acceptAll"),s=Object.freeze(["cookies","create_ads_profile","device_characteristics","geolocation_data","improve_products","market_research","measure_ad_performance","measure_content_performance","select_basic_ads","select_personalized_ads","use_limited_data_to_select_content"]),r=Object.freeze(["personalisation","create_content_profile","select_personalized_content"]),l=Object.freeze(["cookies_measure"]),c=Object.freeze(["load_external_content"]),d=Object.freeze(["functional"]);Object.freeze([...s,...r,...l,...c,...d]);const u=()=>{const e=window?.Didomi?.getCurrentUserStatus();var t,o;e&&(o=s,(t=e)&&t?.purposes&&o.every((e=>t?.purposes[e]?.enabled)))||(n.classList.remove("hidden"),document.body.style.overflow="hidden")},h=async e=>{const t=window.location.pathname,o=window.siteConsentExcludedPages?.some((e=>t.includes(e)));if(o)return;await(window?.auth?.isPremiumUser())||(i.addEventListener("click",(()=>{window.location.href="/abonneren"})),a.addEventListener("click",(()=>{window.Didomi.setUserAgreeToAll(),window?.Didomi?.getCurrentUserStatus(),n.classList.add("hidden"),document.body.style.overflow="auto"})),window.didomiOnReady.push((function(){Didomi.on("consent.changed",(function(){u()}))})),window.didomiOnReady.push((function(){window?.Didomi?.notice?.isVisible()||u()})))};window.auth&&(auth.ready?document.addEventListener("DOMContentLoaded",(async()=>h(auth.user))):auth.onInit((e=>h(e.detail.user)))),window.weekDaysShort=["zo","ma","di","wo","do","vr","za"],document.addEventListener("DOMContentLoaded",(()=>{window.scrollUp?.addEventListener("click",(e=>{e.preventDefault(),window.scrollTo({top:0,behavior:"smooth"})})),""!==window.location.hash&&scrollToHash(window.location.hash),isApp?asyncLoad():(window.addEventListener("scroll",asyncCheck),asyncCheck()),document.querySelectorAll("a").forEach((e=>{let t=e.getAttribute("href");t&&0===t.indexOf("#")&&"#"!==t&&e.addEventListener("click",(e=>(e.preventDefault(),scrollToHash(t),!1)))}));try{parent?.postMessage({action:"pageload",title:document.title,url:window.location.href},"*")}catch(e){}try{document.body.style.webkitTouchCallout="none",document.body.style.KhtmlUserSelect="none"}catch(e){}})),window.scrollToHash=e=>{e.startsWith("#")&&(e=e.substring(1));let t=document.getElementById(e);if(!t)return void console.warn(`Element #${e} was not found in the DOM`);const o=t.getBoundingClientRect().top,n=Math.round(o+window.scrollY-150);window.scrollTo({behavior:"instant",top:n})},window.asyncCheck=()=>{window.scrollUp&&(window.scrollY>300?window.scrollUp.classList.add("visible"):window.scrollUp.classList.remove("visible"));const e=window.innerHeight+300;document.querySelectorAll(".async").forEach((t=>{t.getBoundingClientRect().top<=e&&asyncEl(t)}))},window.asyncLoad=()=>{document.querySelectorAll(".async").forEach((e=>{asyncEl(e)}))},window.asyncEl=e=>{const t=e.dataset.url;t&&("iframe"==e.tagName.toLowerCase()?e.setAttribute("src",t):fetch(t).then((e=>e.text())).then((t=>{e.innerHTML=t,Array.from(e.querySelectorAll("script")).forEach((e=>{const t=document.createElement("script");Array.from(e.attributes).forEach((e=>{t.setAttribute(e.name,e.value)}));const o=document.createTextNode(e.innerHTML);t.appendChild(o),e.parentNode.replaceChild(t,e)})),modal.resize(),setTimeout(modal.resize,100)})).catch((e=>{console.error(e)})));const o=e.dataset.background;o&&(e.style.backgroundImage=`url('${o}')`);let n=e.dataset.event;n&&e.trigger(n),e.classList.remove("async")},window.snippetIsVisible=function(e){let t=e.parentElement.classList.contains("hide-desktop"),o=e.parentElement.classList.contains("hide-tablet"),n=e.parentElement.classList.contains("hide-mobile"),i=!0;if(n||o||t){let e=isMobile();e&&n&&(i=!1),e||!o&&!t||(i=!1)}return i},window.addEventListener("beforeinstallprompt",(e=>{e.userChoice.then((e=>{"dismissed"===e.outcome?console.log("[PWA] Cancelled home screen install",e.outcome):console.log("[PWA] Added to home screen",e.outcome)}))})),window._offset=e=>{const t=e.getBoundingClientRect(),o=document.documentElement;return{top:t.top+window.scrollY-o.clientTop,left:t.left+window.scrollX-o.clientLeft}}}();//# sourceMappingURL=site.min.js.map