(function(d){typeof define=="function"&&define.amd?define(d):d()})(function(){"use strict";const d=`<div class="cc-body" id="cookieconsent:body">\r
    <span class="cc-message" id="cookieconsent:desc">\r
        {{description}}\r
        {{selection}}\r
    </span>\r
    <div class="cc-compliance cc-highlight">\r
        {{allow-all}}\r
        {{allow}}\r
        {{deny}}\r
    </div>\r
    <div class="powered-by">Powered by <a href="https://dp-wired.de/?ref=consent-note" rel="noopener" target="_blank">DP Wired</a></div>\r
</div>`,f=`<div class="cc-body" id="cookieconsent:body">\r
    <span class="cc-message" id="cookieconsent:desc">\r
        {{description}}\r
    </span>\r
    <div class="cc-compliance cc-highlight">\r
        {{allow-all}}\r
        {{config}}\r
        {{deny}}\r
    </div>\r
    <div class="powered-by">Powered by <a href="https://dp-wired.de/?ref=consent-note" rel="noopener" target="_blank">DP Wired</a></div>\r
</div>`,h=`<div class="dp--cookie-check">\r
    <label for="dp--cookie-require">\r
        <input type="checkbox" id="dp--cookie-require" class="dp--check-box" checked="checked" disabled="disabled"  />\r
        {{dpRequire}}\r
    </label>\r
    <label for="dp--cookie-statistics">\r
        <input type="checkbox" id="dp--cookie-statistics" class="dp--check-box" {{checked.statistics}} value="" />\r
        {{dpStatistik}}\r
    </label>\r
    <label for="dp--cookie-marketing">\r
        <input type="checkbox" id="dp--cookie-marketing" class="dp--check-box" {{checked.marketing}} value=""  />\r
        {{dpMarketing}}\r
    </label>\r
</div>\r
`,v=`{{message}}\r
\r
<a class="cc-link"\r
   role=button\r
   href="{{href}}"\r
   rel="noopener noreferrer nofollow"\r
   target="{{target}}"\r
>\r
    {{link}}\r
</a>\r
`,k=`<button class="cc-btn cc-allow-all cc-w-100">\r
    {{allow-all}}\r
</button>\r
`,b=`<button class="cc-btn cc-allow">\r
    {{allow}}\r
</button>\r
`,y=`<button class="cc-btn cc-dismiss">\r
    {{dismiss}}\r
</button>\r
`,g=`<button class="cc-btn cc-deny">\r
    {{deny}}\r
</button>\r
`,w=`<button class="cc-btn cc-config" >\r
    {{config}}\r
</button>\r
`,m=`<div class="dp--revoke {{classes}}">\r
    <i class="dp--icon-fingerprint"></i>\r
    <span class="dp--hover">{{policy}}</span>\r
</div>\r
`,C=`<div class="dp--overlay-inner">\r
    <div class="dp--overlay-header">{{notice}}</div>\r
    <div class="dp--overlay-description">{{desc}}</div>\r
    <div class="dp--overlay-button">\r
        <button class="db--overlay-submit" onclick="window.DPCookieConsent.forceAccept(this)" data-cookieconsent="{{type}}">\r
            {{btn}}\r
        </button>\r
    </div>\r
</div>\r
`,x='<div aria-describedby="cookieconsent:desc" aria-label="cookieconsent-dialog" aria-live="polite" class="cc-window {{classes}}" id="cookieconsent:window" role="dialog"></div>',E=`<div aria-describedby="cookieconsent:config" aria-label="cookieconsent-dialog" aria-live="polite" class="cc-window-config cc-type-extend" id="cookieconsent:config" role="dialog">\r
    <div class="cc-config" >\r
        <div class="cc-config-header">\r
            <span>{{config-header}}</span>\r
            <button class="cc-btn-close">\r
                <i class="dp--icon-x"></i>\r
            </button>\r
        </div>\r
        <div class="cc-config-body">\r
            <div class="cc-message">{{message}}</div>\r
            <div>\r
                {{cookie-group}}\r
            </div>\r
        </div>\r
        <div class="cc-config-footer">\r
            {{deny}}\r
            {{allow}}\r
            {{allow-all}}\r
        </div>\r
        <div class="powered-by">Powered by <a href="https://dp-wired.de/?ref=consent-note" rel="noopener" target="_blank">DP Wired</a></div>\r
    </div>\r
</div>\r
`,B=`<div class="cc-config-group">\r
    <div class="cc-config-group-name">\r
        <button class="cc-btn cc-btn-collapse">\r
            <i class="dp--icon-chevron"></i>\r
            {{group}}\r
        </button>\r
\r
        <div class="cc-form-switch">\r
            <input class="dp--check-box" id="dp--cookie-{{group-lower}}" type="checkbox" name="" value="">\r
            <label class="cc-check-label" for="dp--cookie-{{group-lower}}">\r
                <div class="cc-sr-only">{{group}}</div>\r
            </label>\r
        </div>\r
    </div>\r
\r
    <div class="cc-config-cookies">\r
        {{config-cookie}}\r
    </div>\r
</div>`,A=`<ul class="cc-config-group-cookie">\r
    <li>\r
        <div class="cc-label">{{cookie}}</div>\r
        <div>\r
            {{cookie_name}}\r
            <div class="cc-cookie-description cc-pt-2">{{cookie_description}}</div>\r
        </div>\r
    </li>\r
    <li class="cc-pt-2">\r
        <div class="cc-label">{{duration}}</div>\r
        <div>{{cookie_duration}} {{cookie_duration_time}}</div>\r
    </li>\r
    <li class="cc-pt-2">\r
        <div class="cc-label">{{vendor}}</div>\r
        <div><a href="{{cookie_vendor_link}}" target="_blank">{{cookie_vendor}}</a></div>\r
    </li>\r
</ul>\r
`;/*!
  * Cookie Consent
  * Copyright 2021 Dirk Persky (https://github.com/DirkPersky/npm-dp_cookieconsent/issues)
  * Licensed under AGPL v3+ (https://github.com/DirkPersky/npm-dp_cookieconsent/blob/master/LICENSE)
  */(function(i,H){if(!i.hasInitialised){(function(){if(typeof window.CustomEvent=="function")return!1;function s(o,e){e=e||{bubbles:!1,cancelable:!1,detail:void 0};var t=document.createEvent("CustomEvent");return t.initCustomEvent(o,e.bubbles,e.cancelable,e.detail),t}s.prototype=window.Event.prototype,window.CustomEvent=s})(),function(){if(typeof window.Event=="function")return!1;function s(o,e){e=e||{bubbles:!0,cancelable:!0,detail:void 0};var t=document.createEvent("Event");return t.initEvent(o,e.bubbles,e.cancelable,e.detail),t}s.prototype=window.Event.prototype,window.Event=s}();var l={detectRobot:function(s){return new RegExp([/Chrome-Lighthouse/,/bot/,/spider/,/crawl/,/APIs-Google/,/AdsBot/,/Googlebot/,/mediapartners/,/Google Favicon/,/FeedFetcher/,/Google-Read-Aloud/,/DuplexWeb-Google/,/googleweblight/,/bing/,/yandex/,/baidu/,/duckduck/,/yahoo/,/ecosia/,/ia_archiver/,/semrush/].map(e=>e.source).join("|"),"i").test(s)},reformatCheckboxOptions:function(s){var o=Object.entries(s).map(e=>{var t=String(e[1]).toLowerCase()=="true";return{name:e[0],checked:t}});return o},getCookie:function(s){var o="; "+document.cookie,e=o.split("; "+s+"=");return e.length<2?void 0:JSON.parse(e.pop().split(";").shift())},setCookie:function(s,o,e,t,n,c){var r=new Date;r.setHours(r.getHours()+(e||365)*24);var a=[s+"="+JSON.stringify(o),"expires="+r.toUTCString(),"path="+(n||"/"),"SameSite=Strict"];t&&a.push("domain="+t),c&&a.push("secure"),document.cookie=a.join(";")},prepareCookie:function(s,o){var e={status:"open"},t=this.getCookie(o);return typeof t!="undefined"&&this.deepExtend(e,t),this.deepExtend(e,s),{exists:typeof t!="undefined",config:e}},getElementsByTag:function(s,o){return typeof o=="undefined"&&(o="data-cookieconsent"),document.querySelectorAll(s+"["+o+"]")},deepExtend:function(s,o){for(var e in o)o.hasOwnProperty(e)&&(e in s&&typeof s[e]=="object"&&typeof o[e]=="object"?this.deepExtend(s[e],o[e]):s[e]=o[e]);return s},appendElement:function(s,o){var e=document.createElement("div"),t=o!=null?o:document.body;e.innerHTML=this.replaceContent(s);var n=e.children[0];return t.appendChild(n),n},applyStyle:function(s){if(typeof this.options[s]!="undefined")for(const[o,e]of Object.entries(this.options[s]))for(const[t,n]of Object.entries(e))document.documentElement.style.setProperty(`--dp-cookie-${s}-${o}-${t}`,n)},fireEvent:function(s,o){var e;o?e=new CustomEvent(s,{detail:{$el:o}}):e=new Event(s),document.dispatchEvent(e)}};i.utils=l;var L=function(){var s={cookie:{name:"dp_cookieconsent_status",path:"/",domain:"",expiryDays:365,secure:!1},position:"bottom-right",content:{},theme:"edgeless",type:"opt-in",revokable:!0,reloadOnRevoke:!0,checkboxes:[{name:"statistics",checked:!1},{name:"marketing",checked:!1}],palette:{popup:{background:"rgba(0,0,0,0.8)",text:"#ffffff"},button:{background:"#f96332",text:"#ffffff"}},overlay:{notice:!0,box:{background:"rgba(0,0,0,0.8)",text:"#ffffff"},btn:{background:"#f96332",text:"#ffffff"}},onPopupOpen:function(){},onPopupClose:function(){},onInitialise:function(){},onStatusChange:function(e,t){},onRevokeChoice:function(){},compilance:{"opt-in":d,extend:f},revokeBtn:m,overlayLayout:C,wrap:{consent:x,config:E},elements:{"allow-all":k,allow:b,dismiss:y,deny:g,config:w,selection:h,description:v}};function o(){}return o.prototype.replaceContent=function(e){var t=this.options,n=["cc-"+t.position,"cc-type-"+t.type,"cc-theme-"+t.theme,"cc-hide"];e=e.replaceAll("{{classes}}",n.join(" "));for(const[c,r]of Object.entries(t.elements))e=e.replaceAll("{{"+c+"}}",r||"");for(const[c,r]of Object.entries(t.content))e=e.replaceAll("{{"+c+"}}",r||"");return e},o.prototype.templateOverwrites=function(){let e=i.utils.getElementsByTag("script","data-dp-cookieRevoke");e.length>0&&(this.options.revokeBtn=e[0].innerHTML);let t=i.utils.getElementsByTag("script","data-dp-cookieDesc");t.length>0&&(this.options.elements.description=t[0].innerHTML);let n=i.utils.getElementsByTag("script","data-dp-cookieSelect");n.length>0&&(this.options.elements.selection=n[0].innerHTML)},o.prototype.initialise=function(e){l.deepExtend(this.options={},s),typeof e.checkboxes=="object"&&(e.checkboxes=l.reformatCheckboxOptions(e.checkboxes)),typeof e=="object"&&l.deepExtend(this.options,e);var t=this.options.onInitialise.bind(this);this.templateOverwrites(),this.options.revokable&&(this.revokeBtn=i.utils.appendElement.call(this,this.options.revokeBtn)),this.window=i.utils.appendElement.call(this,this.options.wrap.consent),this.options.type=="extend"&&i.configWindow.initialise(this.options.wrap.config),i.utils.applyStyle.call(this,"palette"),i.utils.applyStyle.call(this,"overlay"),this.addCompilance(this.window),t(this),this.bindBtns(),this.presetCheckboxes()},o.prototype.presetCheckboxes=function(){var e=i.utils.getCookie(this.options.cookie.name);typeof e!="undefined"&&l.deepExtend(this.options.checkboxes,e.checkboxes);var t=this.getCheckboxInputs(!0);t.length>0&&t.forEach(n=>{var c=n.id;c=c.replace("dp--cookie-",""),this.options.checkboxes.map((r,a)=>{r.name==c&&(n.checked=r.checked)}),c=="required"&&(n.checked=!0,n.disabled=!0)})},o.prototype.addCompilance=function(e){var t=this.options.compilance["opt-in"];typeof this.options.compilance[this.options.type]!="undefined"&&(t=this.options.compilance[this.options.type]),this.compilance=i.utils.appendElement.call(this,t,e),this.allowAllBtn=this.compilance.getElementsByClassName("cc-allow-all"),this.allowBtn=this.compilance.getElementsByClassName("cc-allow"),this.denyBtn=this.compilance.getElementsByClassName("cc-deny"),this.dismissBtn=this.compilance.getElementsByClassName("cc-dismiss"),this.configBtn=this.compilance.querySelector("button.cc-config")},o.prototype.bindBtns=function(){this.allowAllBtn.length>0&&(this.allowAllBtn[0].onclick=()=>this.allowAll.call(this)),this.allowBtn.length>0&&(this.allowBtn[0].onclick=()=>this.allow.call(this)),this.dismissBtn.length>0&&(this.dismissBtn[0].onclick=()=>this.allow.call(this)),this.denyBtn.length>0&&(this.denyBtn[0].onclick=()=>this.denyAll.call(this)),this.revokeBtn&&(this.revokeBtn.onclick=()=>this.revoke.call(this)),this.configBtn&&(this.configBtn.onclick=()=>i.configWindow.showConfig())},o.prototype.allowAll=function(){this.saveCheckboxes(!0),i.utils.fireEvent("dp--cookie-accept"),this.save()},o.prototype.denyAll=function(){this.saveCheckboxes(!1),i.utils.fireEvent("dp--cookie-deny"),this.save()},o.prototype.allow=function(){i.utils.fireEvent("dp--cookie-accept"),this.save()},o.prototype.getCheckboxInputs=function(e){var t=document.querySelectorAll('input[id^="dp--cookie-"]');if(e)return t;var n=[];return t.forEach(c=>{var r=c.id;switch(r=r.replace("dp--cookie-",""),r){case"required":break;default:n.push(c)}}),n},o.prototype.saveCheckboxes=function(e){var t=this.getCheckboxInputs();t.length>0&&t.forEach(n=>{var c=n.id;c=c.replace("dp--cookie-",""),typeof e!="undefined"&&(n.checked=e);var r=this.options.checkboxes.map((a,p)=>{if(a.name==c)return this.options.checkboxes[p].checked=n.checked,!0}).filter(a=>a);r.length||this.options.checkboxes.push({name:c,checked:n.checked})})},o.prototype.save=function(){this.saveCheckboxes(),this.close()},o.prototype.hasChanged=function(){var e=!1;return typeof this.originalCookie=="undefined"||typeof this.originalCookie.checkboxes=="undefined"?!1:(this.originalCookie.checkboxes.map((t,n)=>{var c=this.options.checkboxes[n];if(t.checked===!0&&(!c||c.checked==!1)){e=!0;var r=this.options.onStatusChange.bind(this);r(c,t)}}),e)},o.prototype.hasConsent=function(){var e=i.utils.getCookie(this.options.cookie.name);return!(typeof e=="undefined"||e.status=="open")},o.prototype.saveCookie=function(e){var t=i.utils.prepareCookie(e,this.options.cookie.name);!t.exists&&t.config.status=="open"||(i.utils.setCookie(this.options.cookie.name,t.config,this.options.cookie.expiryDays,this.options.cookie.domain,this.options.cookie.path,this.options.cookie.secure),this.hasConsent()&&this.hasChanged()&&this.options.reloadOnRevoke&&location.reload())},o.prototype.revoke=function(){var e=this.options.onRevokeChoice.bind(this);e(this),i.utils.fireEvent("dp--cookie-revoke"),this.open()},o.prototype.open=function(){this.revokeBtn&&this.revokeBtn.classList.add("cc-hide"),this.showPopup(),this.originalCookie=i.utils.getCookie(this.options.cookie.name);var e=this.options.onPopupOpen.bind(this);e(this),this.saveCookie({status:"open"}),document.querySelector("body").classList.add("dp--cookie-consent")},o.prototype.hidePopup=function(){this.window.classList.add("cc-hide")},o.prototype.showPopup=function(){this.window.classList.remove("cc-hide")},o.prototype.close=function(){this.hidePopup(),i.configWindow.closeConfig(),this.revokeBtn&&this.revokeBtn.classList.remove("cc-hide");var e=this.options.onPopupClose.bind(this);e(this),this.saveCookie({status:"approved",checkboxes:this.options.checkboxes}),document.querySelector("body").classList.remove("dp--cookie-consent"),this.execute()},o.prototype.execute=function(){i.Handler.execute(this.options.checkboxes),i.Overlay.execute(this.options.checkboxes)},new o}();i.popup=L;var S=function(){function s(){}return s.prototype.overlays=function(){i.popup.options.overlay.notice&&(this.templateOverwrites(),this.overlaysView("iframe"),this.overlaysView("dp-content"))},s.prototype.templateOverwrites=function(){let o=i.utils.getElementsByTag("script","data-dp-cookieIframe");o.length>0&&(i.popup.options.overlayLayout=o[0].innerHTML)},s.prototype.overlaysView=function(o){var e=i.utils.getElementsByTag(o);e.length!=0&&e.forEach(t=>{var n=t.getAttribute("data-cookieconsent-notice")||i.popup.options.content.media.notice,c=t.getAttribute("data-cookieconsent-description")||i.popup.options.content.media.desc,r=t.getAttribute("data-cookieconsent-btn")||i.popup.options.content.media.btn,a=t.getAttribute("data-cookieconsent");if(!t.hasAttribute("data-cookieconsent-overlay-loaded")){t.setAttribute("data-cookieconsent-overlay-loaded","loaded");var p=document.createElement("div");p.classList.add("dp--overlay");var u=i.popup.options.overlayLayout.replace("{{notice}}",n).replace("{{desc}}",c).replace("{{type}}",a).replace("{{btn}}",r);u=i.utils.appendElement.call(i.popup,u,p),u.getElementsByClassName("db--overlay-submit"),t.parentNode.insertBefore(p,t.nextSibling)}})},s.prototype.execute=function(o){this.executeIframe(o),this.executeContent(o)},s.prototype.ajax=function(o,e,t,n){var c=new XMLHttpRequest;c.open(o,e),c.setRequestHeader("X-Requested-With","XMLHttpRequest"),c.setRequestHeader("Content-type","text/html"),c.onload=function(){c.status<200||c.status>=300?n(c):t(c)},c.onerror=function(){n(c)},c.send()},s.prototype.executeContent=function(o){var e=i.utils.getElementsByTag("dp-content");e.length>0&&e.forEach(t=>{if(i.Handler.typeAllowed(t,o)){t.classList.add("dp--loaded"),t.setAttribute("data-cookieconsent-loaded",t.getAttribute("data-cookieconsent")),t.removeAttribute("data-cookieconsent");var n=t.getAttribute("data-src");n&&n.length>0?this.ajax("GET",n,function(c){t.innerHTML=c.response,i.utils.fireEvent("dp--cookie-content",t)},function(c){}):i.utils.fireEvent("dp--cookie-content",t)}})},s.prototype.executeIframe=function(o){var e=i.utils.getElementsByTag("iframe");e.length>0&&e.forEach(t=>{if(i.Handler.typeAllowed(t,o)){var n=t.cloneNode(!0);n.getAttribute("data-src")&&(n.src=n.getAttribute("data-src")),t.parentNode.replaceChild(n,t),n.classList.add("dp--loaded"),n.setAttribute("data-cookieconsent-loaded",n.getAttribute("data-cookieconsent")),n.removeAttribute("data-cookieconsent"),i.utils.fireEvent("dp--cookie-iframe",n)}})},new s}();i.Overlay=S;var O=function(){function s(){}return s.prototype.execute=function(o){var e=i.utils.getElementsByTag("script");e.length>0&&e.forEach(t=>{if(this.typeAllowed(t,o)){var n=t.innerHTML;n&&n.length&&(n=n.trim()),n&&n.length?(eval.call(this,n),i.utils.fireEvent("dp--cookie-fire",t)):t.getAttribute("data-src")?this.asyncJS(t.getAttribute("data-src"),function(c){i.utils.fireEvent("dp--cookie-fire",t)}):t.src&&this.asyncJS(t.src,function(c){i.utils.fireEvent("dp--cookie-fire",t)}),t.setAttribute("data-cookieconsent-loaded",t.getAttribute("data-cookieconsent")),t.removeAttribute("data-cookieconsent")}})},s.prototype.asyncLoad=function(o,e,t){var n=document,c=n.createElement(e),r=n.getElementsByTagName(e)[0];switch(e){case"script":c.src=o,c.setAttribute("defer","");break;case"link":c.rel="stylesheet",c.type="text/css",c.setAttribute("defer",""),c.href=o;break}t&&c.addEventListener("load",function(a){t(null,a)},!1),r.parentNode.insertBefore(c,r)},s.prototype.asyncJS=function(o,e){this.asyncLoad(o,"script",e)},s.prototype.typeAllowed=function(o,e){var t=o.getAttribute("data-cookieconsent"),n=e.map(c=>{if(c.name==t&&c.checked===!0)return!0});return n.indexOf(!0)!==-1},new s}();i.Handler=O,i.initialise=function(s,o){if(o||(o=function(){}),i.popup.initialise(s),i.Overlay.overlays(),o(i.popup),i.utils.fireEvent("dp--cookie-init"),i.popup.hasConsent()||l.detectRobot(navigator.userAgent)){i.popup.close(),i.utils.fireEvent("dp--cookie-accept-init");return}i.popup.open()};var P=function(){function s(){}return s.prototype.initialise=function(o){this.prepareConfig(),this.configWrap=i.utils.appendElement.call(i.popup,o),this.getElements(),this.bindBtns()},s.prototype.prepareConfig=function(){var o=i.popup.options,e=o.cookies.map(t=>{var n=t.cookies.map(c=>(this.options=i.utils.deepExtend({elements:{},content:c},o),i.popup.replaceContent.call(this,A))).join("");return this.options=i.utils.deepExtend({elements:{"config-cookie":n},content:{group:t.name,"group-lower":t.field}},o),i.popup.replaceContent.call(this,B)}).join("");i.popup.options.elements["cookie-group"]=e},s.prototype.getElements=function(){this.closeBtn=this.configWrap.querySelector("button.cc-btn-close"),this.allowAllBtn=this.configWrap.querySelector("button.cc-allow-all"),this.allowBtn=this.configWrap.querySelector("button.cc-allow"),this.denyBtn=this.configWrap.querySelector("button.cc-deny"),this.configGroups=this.configWrap.querySelectorAll(".cc-config-group")},s.prototype.bindBtns=function(){this.allowAllBtn&&(this.allowAllBtn.onclick=()=>i.popup.allowAll(this)),this.allowBtn&&(this.allowBtn.onclick=()=>i.popup.allow(this)),this.denyBtn&&(this.denyBtn.onclick=()=>i.popup.denyAll(this)),this.closeBtn&&(this.closeBtn.onclick=()=>this.hideConfig.call(this)),this.configGroups&&this.configGroups.forEach(o=>{o.querySelector(".cc-btn-collapse").onclick=()=>{var e=!o.classList.contains("cc-show");this.configGroups.forEach(t=>t.classList.remove("cc-show")),e&&o.classList.add("cc-show")}})},s.prototype.closeConfig=function(){this.configWrap&&this.configWrap.classList.remove("cc-show")},s.prototype.hideConfig=function(){i.popup.showPopup(),this.configWrap&&this.closeConfig()},s.prototype.showConfig=function(){this.configWrap&&this.configWrap.classList.add("cc-show"),i.popup.hidePopup()},new s}();i.configWindow=P,i.forceAccept=function(s){var o=s.getAttribute("data-cookieconsent"),e=i.popup.getCheckboxInputs();console.log(e),e.length>0&&(e.forEach(t=>{var n=t.id;n=n.replace("dp--cookie-",""),i.popup.hasConsent()||(t.checked=!1),n==o&&(t.checked=!0)}),i.utils.fireEvent("dp--cookie-accept")),i.popup.save()},i.forceDeny=function(s){var o=s.getAttribute("data-cookieconsent"),e=i.popup.getCheckboxInputs();e.length>0&&e.forEach(t=>{var n=t.id;n=n.replace("dp--cookie-",""),i.popup.hasConsent()||(t.checked=!1),n==o&&(t.checked=!1)}),i.popup.save()},i.hasInitialised=!0,window.DPCookieConsent=i,window.addEventListener("load",function(){window.DPCookieConsent.initialise(window.cookieconsent_options||{}),window.DPCookieConsent.loaded=!0})}})(window.DPCookieConsent||{})});!function(){try{var t="_test_";sessionStorage.setItem(t,t),sessionStorage.removeItem(t),nfStore=!0}catch(t){nfStore=!1}var e,i,t=$(window);window.onerror=function(t,e,i,s,l){t={uri:window.location.toString(),message:t,source:e,line:i,col:s};l&&(t.stack=l.stack),jQuery.post("https://naturefund.de/fst/src/api/errors.php",t)},jQuery("a[data-back]").click(function(){return history.back(),!1}),jQuery('a[href$="#top"]').click(function(){return jQuery("body,html").stop().animate({scrollTop:0}),!1}),jQuery("[data-href]").click(function(t){if("A"!==t.target.tagName||t.target===t.currentTarget)return window.location=t.currentTarget.dataset.href,!1}),t.one("touchstart",function(){jQuery("body").removeClass("no-touch").addClass("touch"),window.isTouch=!0}),jQuery('a[href*="#"]:not([data-toggle]):not([data-lightbox]):not([role="button"])').click(function(){var i,s=jQuery(this).attr("href").split("#");if(2===s.length&&""!==s[1]&&(""===s[0]||s[0]===window.location.pathname)){let t=!1,e;if("top"!==s[1]&&(s=jQuery("#"+s[1])).length&&(i=jQuery("[data-sticky].sticky"),e=s.offset().top,i.length?e-=parseInt(jQuery("body").css("padding-top"))+i.outerHeight():e-=jQuery("nav.navbar").height(),t=!0),t)return jQuery("body,html").stop().animate({scrollTop:e}),!1}}),window.location.hash&&((t=$(window.location.hash)).length&&jQuery("body,html").animate({scrollTop:t.offset().top-jQuery("nav.navbar").height()}),"#c"===window.location.hash.substr(0,2))&&(t=parseInt(window.location.hash.substr(2)),jQuery('a[href="#col'+t+'"][data-toggle="collapse"]').attr("aria-expanded",!0),jQuery("#col"+t).addClass("show")),jQuery("form.form-teas").on("change input","input",function(t){"text"===t.currentTarget.type?jQuery("form.form-teas .btn-group input.btn-check:checked").prop("checked",!1):jQuery("#amount").val(jQuery(this).val())}),jQuery("select[data-submit=1]").on("input",function(t){jQuery(t.target.form).submit()}),jQuery(".nf-flipper").on("click touchstart",function(t){if("click"===t.type){if(i===this){t=$(this);if(!t.hasClass("flipped"))return t.addClass("flipped"),e&&e.removeClass("flipped"),e=t,!1}}else i=this})}(),function(){class i{static unEntity(t){return t&&String(t).replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&quot;/g,'"')}}class l{#link;#caption;#body;#video;#started;#html;#srcset;constructor(t){var e;"info"===t.dataset.lightbox?(e=t.href.baseVal.slice(1),this.#html=document.getElementById(e)):t.dataset.lightbox.startsWith("lb-")?(e=t.hash.slice(1),this.#html=document.getElementById(e)):(this.#link=t.href,this.#caption=i.unEntity(t.dataset.caption),t.dataset.text&&(this.#body=i.unEntity(t.dataset.text)),0<this.#link.indexOf("youtube.com")||0<this.#link.indexOf("vimeo.com")?(this.#video=!0,this.#started=!1):(e=t.querySelector("img"),this.#srcset=t.dataset.srcset||e&&e.srcset))}get caption(){return this.#caption}get body(){return this.#body}get video(){return this.#video}get started(){return this.#started}set started(t){this.#started=t}get html(){return this.#html}get srcset(){return this.#srcset}get link(){return this.#link}}class n{#type;#items;constructor(t){this.#type=t,this.#items=[]}get type(){return this.#type}get itemsLength(){return this.#items.length}getItem(t){return this.#items[t]}addItem(t){this.#items.push(t)}}document.querySelector("#lightbox")&&new Error("Lightbox already created!");let a=new class{#template=`
			<div id="modalOverlay" class="lb-overlay">
				<div id="lightbox" class="lb-content">
					<div class="lb-header">
						<i id="closeIcon" class="close">&times;</i>
					</div>
					<div class="lb-main">
						<img class="lb-image" />
						<iframe class="lb-video" frameborder="0" allowfullscreen></iframe>
						<div class="lb-html"></div>
						<div class="lb-nav">
							<div class="lb-prev" role="button"></div>
							<div class="lb-next" role="button"></div>
						</div>
					</div>
					<div class="lb-footer">
						<div class="lb-caption">
						</div>
						<div class="lb-nav-footer">
							<i class="lb-prev-footer fn fn-left-open"></i>
							<span class="lb-index"></span>
							<i class="lb-next-footer fn fn-right-open"></i>
						</div>
					</div>
				</div>
			</div>	
		`;#overlayEl;#lightboxEl;#closeIconEl;#imageEl;#videoEl;#htmlEl;#footerEl;#captionEl;#navEl;#prevEl;#indexEl;#nextEl;#album;#currentAlbumItemIndex=[];#isMobile;#nextEventHandlerExists=!1;#prevEventHandlerExists=!1;constructor(){document.querySelector("footer").insertAdjacentHTML("beforebegin",this.#template),this.#lightboxEl=document.querySelector("#lightbox"),this.#overlayEl=document.querySelector("#modalOverlay"),this.#closeIconEl=this.#lightboxEl.querySelector("#closeIcon"),this.#imageEl=this.#lightboxEl.querySelector(".lb-image"),this.#videoEl=this.#lightboxEl.querySelector(".lb-video"),this.#htmlEl=this.#lightboxEl.querySelector(".lb-html"),this.#footerEl=this.#lightboxEl.querySelector(".lb-footer"),this.#captionEl=this.#lightboxEl.querySelector(".lb-caption"),this.#setDisplayValue("none",this.#lightboxEl,this.#overlayEl,this.#lightboxEl,this.#closeIconEl,this.#imageEl,this.#videoEl,this.#htmlEl,this.#captionEl)}set album(t){this.#album=t}openModal(t,e){this.#setDisplayValue("block",this.#overlayEl,this.#lightboxEl,this.#closeIconEl),this.#handleMobileWidth(),this.#setNavEls(),this.#addEventListeners(),this.changeAlbumItem(t,e,!0)}closeModal(){this.#setDisplayValue("none",this.#imageEl,this.#videoEl,this.#htmlEl,this.#captionEl,this.#navEl,this.#prevEl,this.#nextEl,this.#overlayEl),this.#removeContent("src",this.#videoEl,this.#imageEl),this.#removeContent("textContent",this.#captionEl)}changeAlbumItem(t,e){this.#setDisplayValue("none",this.#captionEl,this.#imageEl,this.#videoEl),this.#removeContent("src",this.#videoEl),this.#removeContent("textContent",this.#htmlEl),this.#currentAlbumItemIndex=e,this.#handleNextAndPrevNav(),(t=t||this.#album.getItem(this.#currentAlbumItemIndex)).html?this.#handleHtmlAlbumItem(t):t.video?this.#handleVideoAlbumItem(t):this.#handleImageAlbumItem(t)}#handleHtmlAlbumItem(t){this.#htmlEl.innerHTML=t.html.innerHTML,this.#setDisplayValue("block",this.#htmlEl)}#handleVideoAlbumItem(t){let e=t.link;!1===t.started?(e=e+="?rel=0&showinfo=0&enablejsapi=1&autoplay=1",t.started=!0):!0===t.started&&(e=e+="?rel=0&showinfo=0&enablejsapi=1"),this.#videoEl.setAttribute("src",e),this.#setDisplayValue("block",this.#videoEl),this.#videoEl.setAttribute("width","100%");t=this.#videoEl.offsetWidth/16*9;this.#videoEl.setAttribute("height",t)}#handleImageAlbumItem(t){this.#captionEl.innerHTML=t.caption,this.#imageEl.srcset=t.srcset,this.#imageEl.src=t.link,this.#setDisplayValue("block",this.#imageEl,this.#captionEl)}#addEventListeners(){this.#nextEventHandlerExists||(this.#nextEl.addEventListener("click",()=>this.changeAlbumItem(null,this.#currentAlbumItemIndex+1)),this.#nextEventHandlerExists=!0),this.#prevEventHandlerExists||(this.#prevEl.addEventListener("click",()=>this.changeAlbumItem(null,this.#currentAlbumItemIndex-1)),this.#prevEventHandlerExists=!0),this.#closeIconEl.addEventListener("click",this.closeModal.bind(this),{once:!0})}#removeContent(t,...e){switch(t){case"src":for(var i of e)i.src="";break;case"textContent":for(var s of e)s.textContent="";break;case"innerHTML":for(var l of e)l.innerHTML=""}}#setNavEls(){this.#isMobile?(this.#navEl=this.#lightboxEl.querySelector(".lb-nav-footer"),this.#indexEl=this.#lightboxEl.querySelector(".lb-index"),this.#prevEl=this.#lightboxEl.querySelector(".lb-prev-footer"),this.#nextEl=this.#lightboxEl.querySelector(".lb-next-footer")):(this.#navEl=this.#lightboxEl.querySelector(".lb-nav"),this.#prevEl=this.#lightboxEl.querySelector(".lb-prev"),this.#nextEl=this.#lightboxEl.querySelector(".lb-next"))}#handleMobileWidth(){var t=0<window.innerWidth?window.innerWidth:screen.width,e=document.querySelector(".navbar").offsetHeight;t<900?(this.#isMobile=!0,this.#lightboxEl.style.marginTop=`calc(40vh - ${e}px)`):(this.#isMobile=!1,this.#lightboxEl.style.marginTop=`calc(25vh - ${e}px)`)}#handleNextAndPrevNav(){this.#isMobile&&(this.#setDisplayValue("flex",this.#footerEl),this.#setDisplayValue("block",this.#indexEl),this.#indexEl.textContent=this.#currentAlbumItemIndex+1+" / "+this.#album.itemsLength),1<this.#album.itemsLength?this.#currentAlbumItemIndex==this.#album.itemsLength-1?(this.#setDisplayValue("none",this.#nextEl),this.#isMobile?(this.#setDisplayValue("flex",this.#navEl),this.#setDisplayValue("block",this.#prevEl)):this.#setDisplayValue("block",this.#prevEl,this.#navEl)):0==this.#currentAlbumItemIndex?(this.#setDisplayValue("none",this.#prevEl),this.#isMobile?(this.#setDisplayValue("flex",this.#navEl),this.#setDisplayValue("block",this.#nextEl)):this.#setDisplayValue("block",this.#nextEl,this.#navEl)):this.#isMobile?(this.#setDisplayValue("flex",this.#navEl),this.#setDisplayValue("block",this.#nextEl,this.#prevEl)):this.#setDisplayValue("block",this.#navEl,this.#nextEl,this.#prevEl):this.#setDisplayValue("none",this.#navEl,this.#nextEl,this.#prevEl)}#setDisplayValue(t,...e){for(var i of e)i.style.display=t}},o=[],t=[];var r;for(r of document.querySelectorAll("a[data-lightbox]")){var h=r.dataset.lightbox;if("string"!=typeof r.href)t.push(r);else{let i=new l(r),s;if(0<o.length)for(var e of o)if(e.type==h){s=e;break}if(s){let e=s.itemsLength;if(r.addEventListener("click",t=>{t.preventDefault(),a.album=s,a.openModal(i,e-1)}),r.classList.contains("link-more"))continue;s.addItem(i)}else{let e=new n(h);e.addItem(i),o.push(e),r.addEventListener("click",t=>{t.preventDefault(),a.album=e,a.openModal(i,0)})}}}if(t)for(let i of t)if("info"==i.dataset.lightbox)i.addEventListener("click",t=>{t.preventDefault();var t=new n,e=new l(i);t.addItem(e),o.push(t),a.album=t,a.openModal(void 0,0)});else for(let e of o)e.type==i.dataset.lightbox&&i.addEventListener("click",t=>{t.preventDefault(),a.album=e,a.openModal(void 0,0)})}(),function(){function t(t){t.css("top",l.scrollTop()*s+"%")}function e(t){i=jQuery("body>nav").height(),0<(s=23/(t.innerHeight-n.height()-i))&&(s=0)}var i,s,l=jQuery(window),n=jQuery(document),a=n.height(),o=jQuery("#page-bg"),r=(t(o),e(window),l.scroll(function(){a&&(e(this),a=!1),t(o)}).resize(function(){e(this),t(o)}),o.children("picture").data("count")),h=o.find("source");1<r&&h.each(function(){var t=jQuery(this);t.data("set0",t.attr("srcset"))}),jQuery("#carouselStart").on("slide.bs.carousel",function(e){h.each(function(){var t=jQuery(this);t.attr("srcset",t.data("set"+e.to))})})}(),function(){var a=jQuery("#navbarNav .nav-slide"),o=a.children(".nav-slide-item"),r=o.eq(0),h=0;let c=[];var s={};function d(e,i){s.hasOwnProperty(e)?setTimeout(function(){i(s[e])},10):jQuery.get(e,function(t){s[e]=t,i(t)}).always(function(){0})}a.on("click","a.nav-link.nav-next",function(){{var t=this;let e=t.getAttribute("href"),i=(h<c.length&&c[h].classList.remove("current"),(c[h]=t).classList.add("current"),h+1),s=o.eq(i);function l(){r.removeClass("active").addClass("slide-out"),s.addClass("active"),h=i,r=s}0===s.length&&(s=jQuery("<div/>",{class:"nav-slide-item"}),a.append(s),o=o.add(s));var n=s[0];n.dataset.url!==e?d(e,function(t){l(),n.dataset.level=i,n.dataset.url=e,s.empty().append(t)}):l()}return!1}).on("click","a.nav-link.nav-back",function(){var t,e;return t=h-1,e=o.eq(t),r.removeClass("active"),e.removeClass("slide-out").addClass("active"),h=t,r=e,!1});let l=new bootstrap.Offcanvas("#megamenu",{backdrop:!1,scroll:!0}),n=jQuery("#megamenu .nav-carousel-items"),u=!1;var v=jQuery();let e=-1,m;function p(t){for(let e of t.querySelectorAll("a:not(.nav-next)"))e.addEventListener("click",t=>{t.preventDefault(),l.hide(),window.location=e.href})}document.getElementById("megamenu").addEventListener("hide.bs.offcanvas",function(){m&&(m.classList.remove("current"),m=null),E&&(E.classList.remove("current"),E=null)}),jQuery("#desktop-nav").on("click","a.nav-link",function(t){function i(t){E&&(E.classList.remove("current"),E=null),b=jQuery(),f.empty().removeClass("show"),t=t,e!==t&&(0<=e&&v[e].classList.remove("active"),p(v[t]),v[t].classList.add("active")),e=t,l.show(),jQuery("#megamenu").css({left:Math.round(jQuery("#desktop-nav > li:first-child").offset().left)+"px",right:"auto"})}if(this!==m){m&&m.classList.remove("current"),this.classList.add("current");let e=jQuery(this).parent().index();if(u)i(e);else{u=!0;let t="/";var s=window.location.pathname.match(/^\/((?:en|es)\/)/);s&&(t+=s[1]),d(t+"?type=96",function(t){n.append(t),(v=n.children()).find(".nav-next").each(function(){this.dataset.level="0"}),i(e)})}m=this}return!1}),jQuery("#megamenu").on("show.bs.offcanvas",()=>{jQuery("#desktop-nav").addClass("megamenu-show")}).on("hide.bs.offcanvas",()=>{jQuery("#desktop-nav").removeClass("megamenu-show")});var t=jQuery("#megamenu .nav-carousel");let f=t.children(".nav-slide"),b={},y=jQuery(),E;t.on("click","a.nav-next",function(){var t=this;if(t!==E){E&&E.classList.remove("current");var l=parseInt(t.dataset.level,10),n=(t.classList.add("current"),t.getAttribute("href"));let e=l+1,i,s=(b.hasOwnProperty(n)?i=b[n]:(i=jQuery("<div/>",{class:"nav-slide-item"}),f.append(i),b[n]=i),i[0]);function a(){y.removeClass("active"),i.addClass("active"),y=i}s.dataset.url!==n?d(n,function(t){a(),s.dataset.level=e,i.empty().append(t),i.find(".nav-item:first-child").remove(),p(i[0])}):a(),E=t}return!1}),jQuery("[data-sticky]").each(function(){let s=$(this),l=this.offsetTop,n=this.offsetWidth;var t=jQuery(window);let a=jQuery("body");function e(){var t=s.hasClass("sticky"),e=window.scrollY,i=s.offset().top;t?e<l&&s.removeClass("sticky").css({top:"",width:""}):i-parseInt(a.css("padding-top"))<=e&&s.addClass("sticky").css({top:a.css("padding-top"),width:n})}e(),t.on("scroll",e).on("resize",function(){n=s.parent()[0].offsetWidth,s.hasClass("sticky")&&s.css("width",n)})})}(),$("[data-torch]").each(function(t){var e=this.getBoundingClientRect(),i=$(window),s=i.scrollTop(),l=$(this),n=e.left+e.width/2,a=e.top+e.height/2+s,e=l.css("box-shadow").split(" "),o=e.splice(-4),r=parseInt(o[3],10),h=e.join(" ");$(window).mousemove(function(t){i.scrollTop();var e=n-t.pageX,t=a-t.pageY,e=Math.max(Math.min(e/200,1),-1)*r,t=Math.max(Math.min(t/200,1),-1)*r,e=h+" "+e+"px "+t+"px "+o[2]+" "+o[3];l.css("box-shadow",e)})});(function(){function Videobox(){this.init()}
Videobox.prototype.init=function(){var self=this;this.isBuild=!1;this.enable()};Videobox.prototype.enable=function(){var self=this;jQuery('body').on('click','a[data-video]',function(event){self.start($(event.currentTarget));return!1})};Videobox.prototype.build=function(){var self=this;if(!this.isBuild){jQuery('<div id="videoboxOverlay"></div><div id="videobox"><iframe width="560" height="315" frameborder="0" allowfullscreen></iframe><div class="yt-caption"></div></div>').appendTo($('body'));this.$videobox=jQuery('#videobox');this.$overlay=jQuery('#videoboxOverlay');this.$iframe=jQuery('#videobox iframe');this.$overlay.hide().on('click',function(){self.end();return!1});this.isBuild=!0}};Videobox.prototype.start=function($link){var self=this;this.build();jQuery('select, object, embed').css({visibility:'hidden'});var uri=$link.attr('href');this.$iframe.attr('src',uri+'?rel=0&showinfo=0&autoplay=1&enablejsapi=1');this.$videobox.find('div').html('<span class="yt-title">'+$link.data('title')+'</span> - '+$link.data('caption'));this.$overlay.fadeIn(500);this.$videobox.fadeIn(500);jQuery('body').addClass('disable-scrolling');this.enableKeyboardNav()};Videobox.prototype.enableKeyboardNav=function(){jQuery(document).on('keyup.keyboard',jQuery.proxy(this.keyboardAction,this))};Videobox.prototype.disableKeyboardNav=function(){jQuery(document).off('.keyboard')};Videobox.prototype.keyboardAction=function(event){var KEYCODE_ESC=27;var keycode=event.keyCode;var key=String.fromCharCode(keycode).toLowerCase();if(keycode===KEYCODE_ESC||key.match(/x|o|c/)){this.end()}};Videobox.prototype.end=function(){this.disableKeyboardNav();this.$videobox.fadeOut(500);this.$overlay.fadeOut(500);this.$iframe.attr('src','');jQuery('select, object, embed').css({visibility:'visible'});jQuery('body').removeClass('disable-scrolling')};return new Videobox()})()