PageSourceSearch

https://www.topagrar.com/build/assets/app-BCymdHBn.js

js topagrar.com collected 2026-09-24 09:01:16 UTC 54,390 bytes, 25 lines download raw bytes

1import{_ as D}from"./lightbox-BelW0GGa.js";import"./photoswipe.esm-BXDdABy_.js";import{l as I}from"./loginForm-CcjOl-Nh.js";class M{constructor(){this.date=new Date}attachHandlers(){document.querySelectorAll(".trigger-self-promotion-closed").forEach(t=>{let s=t.closest("[data-self-promotion]"),a=s.dataset.selfPromotion,o=t.dataset.promotionAction;this.handleFooterIntersection(s),t.addEventListener("click",n=>{n.preventDefault(),document.cookie=a+"="+o+"; path=/; expires="+this.getExpirationDate(),o==="checkout"?window.location.href=t.href:this.hidePromotionElements(a)})})}hidePromotionElements(e){document.querySelectorAll('[data-self-promotion="'+e+'"]').forEach(s=>{s.classList.add("hidden")})}getExpirationDate(){return new Date(this.date.getFullYear(),this.date.getMonth(),this.date.getDate()+1)}transformBackgroundColor(e){e.querySelectorAll("[data-transform-bg]").forEach(s=>{s.dataset.transformBg!=""&&(s.classList.add("bg-"+s.dataset.transformBg,"border-"+s.dataset.transformBg),s.classList.remove("bg-"+s.dataset.defaultBg,"border-"+s.dataset.defaultBg))})}
1restoreBackgroundColor(e){e.querySelectorAll("[data-transform-bg]").forEach(s=>{s.dataset.transformBg!=""&&(s.classList.add("bg-"+s.dataset.defaultBg,"border-"+s.dataset.defaultBg),s.classList.remove("bg-"+s.dataset.transformBg,"border-"+s.dataset.transformBg))})}handleFooterIntersection(e){new IntersectionObserver(s=>{s[0].isIntersecting?this.transformBackgroundColor(e):this.restoreBackgroundColor(e)},{root:null,rootMargin:"0px",threshold:[0,.2,.99]}).observe(document.getElementById("page-footer"))}}document.addEventListener("DOMContentLoaded",()=>{new M().attachHandlers()});class F{constructor(e){this.container=e,this.content=e.querySelector("[data-accordeon-content]")??null,this.trigger=e.querySelector("[data-accordeon-trigger]")??null,this.init()}init(){if(this.content&&(this.content.classList.add("max-h-0"),this.content.classList.add("overflow-hidden"),this.content.classList.contains("open-desktop"))){const e=()=>{window!==void 0&&window.innerWidth>=640?this.setCollapsedState(!1):this.setCollapsedState(!0)};e(),window.addEventListener("resize",e)}this.trigger&&this.trigger.setAttribute("aria-expanded","false")}getFocusableElements(){return this.content?this.content.querySelectorAll('a[href], button:not([disabled]), textarea, input:not([type="hidden"]):not([disabled]), select, [tabindex]:not([tabindex="-1"])'):[]}setCollapsedState(e){if(!this.content)return;const t=this.getFocusableElements();e?(this.content.setAttribute("aria-hidden","true"),this.content.setAttribute("inert",""),t.forEach(s=>{s.hasAttribute("tabindex")&&(s.dataset.prevTabindex=s.getAttribute("tabindex")),s.setAttribute("tabindex","-1")})):(this.content.removeAttribute("aria-hidden"),this.content.removeAttribute("inert"),t.forEach(s=>{s.dataset.prevTabindex!==void 0?(s.setAttribute("tabindex",s.dataset.prevTabindex),delete s.dataset.prevTabindex):s.removeAttribute("tabindex")}))}toggleAccordeon(){if(this.content){const e=this.content.classList.contains("active");e?(this.content.style.maxHeight=null,this.content.classList.remove("active")):(this.content.style.maxHeight="9999px",this.content.classList.add("active")),this.trigger&&this.trigger.setAttribute("aria-expanded",String(!e)),this.setCollapsedState(!this.content.classList.contains("active")),this.container.dispatchEvent(new CustomEvent("accordeon:toggled",{bubbles:!0,detail:{expanded:!e}}))}this.processToggleClasses()}processToggleClasses(){this.container.querySelectorAll("[data-toggle-classes]").forEach(t=>{t.dataset.toggleClasses.split(" ").forEach(a=>{t.classList.toggle(a)})})}}document.addEventListener("DOMContentLoaded",()=>{document.querySelectorAll("[data-accordeon]").forEach(e=>{let t=new F(e);t.trigger&&t.trigger.addEventListener("click",s=>{s.preventDefault(),t.toggleAccordeon()})})});document.addEventListener("DOMContentLoaded",()=>{const i=e=>{e.classList.add("hidden"),document.body.classList.remove("overflow-hidden")};document.querySelectorAll(".js-modal-inline").forEach(e=>{e.addEventListener("click",t=>{t.preventDefault();const s=e.getAttribute("href")||e.dataset.src,a=s?document.querySelector(s):null;if(!a)return;a.classList.remove("hidden"),document.body.classList.add("overflow-hidden");const o=a.querySelector("[data-modal-backdrop]");o&&o.addEventListener("click",()=>i(a),{once:!0})})}),document.querySelectorAll(".js-modal-trigger-close").forEach(e=>{e.addEventListener("click",t=>{t.preventDefault();const s=e.closest('[id^="modal-"]')||e.closest(".mfp-hide");s&&i(s)})}),document.querySelectorAll(".js-modal-trigger-print").forEach(e=>{e.addEventListener("click",t=>{t.preventDefault();const s=e.closest('[id^="modal-"]');s&&i(s),setTimeout(()=>window.print(),300)})})});class _{constructor(){document.querySelectorAll(".js-slider-base").forEach(e=>{const t=e.querySelector(".js-slider-container"),s=e.querySelector(".js-slider-prev"),a=e.querySelector(".js-slider-next");if(!t||!s||!a)return;const o=e.querySelectorAll(".js-slider-item").length?e.querySelectorAll(".js-slider-item"):t.children;let n=0;for(const d of o){const h=getComputedStyle(d),u=d.offsetWidth+parseFloat(h.marginLeft)+parseFloat(h.marginRight);u>n&&(n=u)}const l=n||t.clientWidth;s.dataset.scrollSize=String(l),a.dataset.scrollSize=String(l),s.addEventListener("click",d=>{const h=d.currentTarget,u=parseFloat(h.dataset.scrollSize||"0");t.scrollBy({left:-u,behavior:"smooth"})}),a.addEventListener("click",d=>{const h=d.currentTarget,u=parseFloat(h.dataset.scrollSize||"0");t.scrollBy({left:u,behavior:"smooth"})});const r=()=>{const d=t.scrollWidth>t.clientWidth;s.classList.toggle("invisible",!d),a.classList.toggle("invisible",!d)};r();const c=new ResizeObserver(r);c.observe(t),c.observe(e),setTimeout(r,0)})}}document.addEventListener("DOMContentLoaded",()=>new _);class O{constructor(){this.outer=document.querySelector("[data-brand-header-outer]"),this.header=document.querySelector("[data-brand-header]"),this.sentinel=document.querySelector("[data-brand-header-sentinel]"),this.progressBar=document.querySelector("[data-brand-progress-bar]"),this.logoInverse=document.querySelector("[data-brand-logo-inverse]"),this.logoColored=document.querySelector("[data-brand-logo-colored]"),this.menuToggle=document.querySelector("[data-brand-menu-toggle]"),this.divider=document.querySelector("[data-brand-divider]"),this.icons=document.querySelectorAll("[data-brand-icon]"),this.texts=document.querySelectorAll("[data-brand-text]"),this.container=document.querySelector("[data-progress-container]"),this.callToAction=document.querySelectorAll("[data-brand-action]"),this.brandColor=this.header?getComputedStyle(this.header).backgroundColor:null,this.isSticky=!1}shouldLoad(){return!!this.outer&&!!this.header&&!!this.sentinel&&!!this.container}makeSticky(){this.isSticky||(this.isSticky=!0,this.outer&&(this.outer.classList.remove("max-w-screen-lg","mx-auto","overflow-hidden"),this.outer.classList.add("w-full","bg-white","shadow-sm","is-sticky")),this.header.style.backgroundColor="",this.logoInverse&&(this.logoInverse.style.opacity="0"),this.logoColored&&(this.logoColored.style.opacity="1"),this.icons.forEach(e
1=>{e.classList.remove("fill-white"),e.classList.add("fill-gray-600")}),this.texts.forEach(e=>{e.classList.remove("text-white"),e.classList.add("text-gray-700","group-hover:text-gray-base","group-active:text-gray-base")}),this.callToAction.forEach(e=>{e.classList.remove("hover:border-white","active:border-white"),e.classList.add("hover:border-gray-400","active:border-gray-400")}),this.progressBar&&this.progressBar.classList.remove("opacity-0"),this.menuToggle&&(this.menuToggle.classList.remove("hidden"),this.menuToggle.classList.add("flex")),this.divider&&(this.divider.classList.remove("hidden"),this.divider.classList.add("block")),this.updateProgress())}makeUnsticky(){this.isSticky&&(this.isSticky=!1,this.outer&&(this.outer.classList.add("max-w-screen-lg","mx-auto","overflow-hidden"),this.outer.classList.remove("w-full","bg-white","shadow-sm","is-sticky")),this.header.style.backgroundColor=this.brandColor,this.logoInverse&&(this.logoInverse.style.opacity="1"),this.logoColored&&(this.logoColored.style.opacity="0"),this.icons.forEach(e=>{e.classList.add("fill-white"),e.classList.remove("fill-gray-600")}),this.texts.forEach(e=>{e.classList.add("text-white"),e.classList.remove("text-gray-700","group-hover:text-gray-base","group-active:text-gray-base")}),this.callToAction.forEach(e=>{e.classList.add("hover:border-white","active:border-white"),e.classList.remove("hover:border-gray-400","active:border-gray-400")}),this.progressBar&&(this.progressBar.classList.add("opacity-0"),this.progressBar.style.width="0%"),this.menuToggle&&(this.menuToggle.classList.add("hidden"),this.menuToggle.classList.remove("flex")),this.divider&&(this.divider.classList.add("hidden"),this.divider.classList.remove("block")))}updateProgress(){if(!this.progressBar||!this.container||!this.isSticky)return;const e=this.container.offsetHeight,t=window.innerHeight,s=window.scrollY,a=this.container.offsetTop,o=a+e;let n=0;if(o>t&&(n=o-(t-a/2)),n<=0){this.progressBar.style.width="100%";return}const l=s/n*100-a/n*100;l>=100?this.progressBar.style.width="100%":l<=0?this.progressBar.style.width="0%":this.progressBar.style.width=l+"%"}}document.addEventListener("DOMContentLoaded",()=>{const i=new O;if(!i.shouldLoad())return;new IntersectionObserver(t=>{t.forEach(s=>{!s.isIntersecting&&s.boundingClientRect.top<=0?i.makeSticky():i.makeUnsticky()})},{threshold:0}).observe(i.sentinel),window.addEventListener("scroll",()=>i.updateProgress())});class j{constructor(e){this.container=e,this.content=e.querySelector(".js-classToggle-content")??null}toggleClassToggle(){this.content&&(this.content.classList.contains("active")?this.content.classList.remove("active"):this.content.classList.add("active")),this.processToggleClasses()}processToggleClasses(){this.container.querySelectorAll("[data-toggle-classes]").forEach(t=>{t.dataset.toggleClasses.split(" ").forEach(a=>{t.classList.toggle(a)})})}}document.addEventListener("DOMContentLoaded",()=>{document.querySelectorAll(".js-classToggle").forEach(e=>{let t=new j(e);e.querySelectorAll(".js-classToggle-trigger").forEach(a=>{a.addEventListener("click",o=>{o.preventDefault(),t.toggleClassToggle()})})})});class P{initIcons(){this.initUrlCopyButtons(),this.initPrintButtons()}initUrlCopyButtons(){const e=document.querySelectorAll(".js-trigger-copy-url"),t=document.getElementById("copy-info");e&&e.forEach(s=>{s.addEventListener("click",a=>{a.preventDefault(),navigator.clipboard.writeText(window.location.href),t&&(t.classList.add("opacity-100"),setTimeout(()=>{t.classList.remove("opacity-100")},3e3))})})}initPrintButtons(){let e=document.querySelectorAll(".js-trigger-print");e&&e.forEach(t=>{t.addEventListener("click",s=>{s.preventDefault(),window.print()})})}}document.addEventListener("DOMContentLoaded",()=>{new P().initIcons()});const N="max-h-72",H=`
2     <svg class="fill-current w-6 h-6">
3         <use xlink:href="/img/symbols.svg#icon-chevron-down"></use>
4     </svg>
5 `,R=`
6     <svg class="fill-current w-6 h-6">
7         <use xlink:href="/img/symbols.svg#icon-chevron-up"></use>
8     </svg>
9 `;document.addEventListener("DOMContentLoaded",function(){const i=document.getElementById("js-trigger-collapse-v2");i&&(W(i),i.addEventListener("click",function(e){e.preventDefault();const t=this.dataset.passiveText,s=this.dataset.activeText;z(i),t&&s&&(this.classList&&this.classList.contains("is-active")?this.innerHTML=s+R:this.innerHTML=t+H)}))});function W(i){const e=document.getElementById(i.dataset.target),t=document.getElementById(i.dataset.targetShadow);e.clientHeight<e.scrollHeight&&(i.classList.remove("hidden"),t.classList.remove("hidden"))}function z(i){const e=document.getElementById(i.dataset.target),t=document.getElementById(i.dataset.targetShadow);e.classList.toggle(N),t.classList.toggle("hidden"),i.classList.toggle("is-active")}class U{constructor(){}animateBurger(e){let t=e.querySelector(":nth-child(1)"),s=e.querySelector(":nth-child(2)"),a=e.querySelector(":nth-child(3)");e.classList.contains("burger-icon-active")?(s.classList.remove("opacity-0"),t.classList.remove("top-1.5","rotate-45"),t.classList.add("top-0"),a.classList.remove("top-1.5","-rotate-45"),a.classList.add("top-3"),e.classList.remove("burger-icon-active")):(t.classList.add("top-1.5","rotate-45"),t.classList.remove("top-0"),s.classList.add("opacity-0"),a.classList.add("top-1.5","-rotate-45"),a.classList.remove("top-3"),e.classList.add("burger-icon-active"))}animateChevron(e){e.classList.contains("chevron-icon-active")?(e.classList.remove("-rotate-90"),e.classList.add("rotate-90"),e.classList.remove("chevron-icon-active")):(e.classList.remove("rotate-90"),e.classList.add("-rotate-90"),e.classList.add("chevron-icon-active"))}attachClickListeners(){document.querySelectorAll("[data-collapse-target]").forEach(t=>
9{t.addEventListener("click",s=>{let a=document.getElementById(t.dataset.collapseTarget),o=t.querySelector(".burger-icon"),n=t.querySelector(".chevron-icon");o&&this.animateBurger(o),n&&this.animateChevron(n),a.classList.contains("max-h-0")?(a.classList.add("max-h-700px"),a.classList.remove("max-h-0","overflow-hidden"),t.setAttribute("aria-expanded","true"),a.removeAttribute("hidden"),t.classList.remove("hover:bg-gray-200")):(a.classList.remove("max-h-700px"),a.classList.add("max-h-0","overflow-hidden"),t.setAttribute("aria-expanded","false"),a.setAttribute("hidden",""),t.classList.add("hover:bg-gray-200"))})})}}document.addEventListener("DOMContentLoaded",function(){new U().attachClickListeners()});document.addEventListener("DOMContentLoaded",()=>{const i=Array.from(document.querySelectorAll(".js-trigger-collapse"));i.forEach(e=>{const t=e.getAttribute("data-target");Array.from(document.getElementsByClassName(t)).forEach(s=>{s.scrollHeight>s.clientHeight&&e.classList.contains("hide")&&e.classList.remove("hide")}),e.addEventListener("click",s=>{s.preventDefault(),J(e);const a=e.dataset.passiveText,o=e.dataset.activeText,n=e.querySelector("span:first-child");a&&o&&n&&(n.textContent=e.classList.contains("is-active")?o:a,e.classList.contains("is-active")||e.blur())})}),window.addEventListener("resize",()=>{i.forEach(e=>{getComputedStyle(e).display==="none"&&Array.from(document.getElementsByClassName(e.getAttribute("data-target"))).forEach(t=>{t.classList.remove("hide"),t.classList.add("show")})})})});function J(i){Array.from(document.getElementsByClassName(i.getAttribute("data-target"))).forEach(e=>{e.classList.contains("show")?(i.classList.remove("is-active"),e.classList.replace("show","hide")):e.classList.contains("hide")?(i.classList.add("is-active"),e.classList.replace("hide","show")):e.offsetHeight===0?(i.classList.add("is-active"),e.classList.add("show")):(i.classList.remove("is-active"),e.classList.add("hide"))})}class C{constructor(e){this.container=e,this.selector=e.querySelector("[data-d9group-select]"),this.tabs=e.querySelectorAll("[data-d9group-tab-id]"),this.bindAction(),this.tabs[this.selector.value].classList.remove("hidden"),this.tabs[this.selector.value].classList.add("show")}bindAction(){this.selector.addEventListener("change",e=>
9{this.tabs.forEach((t,s)=>{s==this.selector.value?(this.tabs[s].classList.add("show"),this.tabs[s].classList.remove("hidden")):(this.tabs[s].classList.add("hidden"),this.tabs[s].classList.remove("show"))},this)},this)}}document.addEventListener("DOMContentLoaded",()=>{document.querySelectorAll("[data-d9group]").forEach(e=>{new C(e)})});class V{constructor(e){this.root=e,this.trigger=e.querySelector(".js-dropdown__trigger"),this.body=e.querySelector(".js-dropdown__body"),this.lastTrigger=null,this.boundHandleKeydown=this.handleKeydown.bind(this),this.trigger&&this.body&&this.registerEvents()}getFocusableElements(){return this.body.querySelectorAll('a[href], button:not([disabled]), textarea, input, select, [tabindex]:not([tabindex="-1"])')}open(){this.root.classList.add("is-active"),this.trigger.setAttribute("aria-expanded","true"),this.lastTrigger=this.trigger,document.addEventListener("keydown",this.boundHandleKeydown)}close(){this.root.classList.remove("is-active"),this.trigger.setAttribute("aria-expanded","false"),this.lastTrigger&&this.lastTrigger.focus(),document.removeEventListener("keydown",this.boundHandleKeydown)}toggle(){this.root.classList.contains("is-active")?this.close():this.open()}handleKeydown(e){if(this.root.classList.contains("is-active")){if(e.key==="Escape"){e.preventDefault(),this.close();return}if(e.key==="Tab"){const t=this.getFocusableElements();if(!t.length)return;const s=t[0],a=t[t.length-1],o=document.activeElement;!e.shiftKey&&o===a&&setTimeout(()=>this.close(),0),e.shiftKey&&o===s&&setTimeout(()=>this.close(),0)}}}registerEvents(){this.trigger.addEventListener("click",e=>{e.preventDefault(),this.toggle()})}}document.addEventListener("DOMContentLoaded",()=>{document.querySelectorAll(".o-dropdown").forEach(i=>new V(i))});function A(){D(()=>import("./index-vQxqcdPF.js"),[]).then(i=>{const e=i.WidgetInstance||i.default;document.querySelectorAll(".frc-captcha").forEach(t=>{if(t.firstChild||t.dataset.friendlyCaptchaInitialized==="true")return;t.dataset.friendlyCaptchaInitialized="true";const s=t.dataset.start==="submit",a=t.closest("form");let o=!1;const n=new e(t,{startMode:s?"none":t.dataset.start||"focus",doneCallback:()=>{o&&a&&(o=!1,a.requestSubmit())}});s&&a&&a.addEventListener("submit",l=>{n.valid||(l.preventDefault(),o=!0,n.start())})})}).catch(i=>console.error("Fehler beim Laden von Friendly Captcha:",i))}window.addEventListener("usercentrics_consentChanged",function(i){i.detail&&i.detail["Friendly Captcha"]===!0&&A()});window.addEventListener("UC_UI_INITIALIZED",function(){if(window.UC_UI&&window.UC_UI.getServicesBaseInfo){const e=window.UC_UI.getServicesBaseInfo().find(t=>t.name==="Friendly Captcha");e&&e.consent&&e.consent.status===!0&&A()}});document.addEventListener("DOMContentLoaded",()=>{document.querySelectorAll(".js-media-sick-slider").forEach(i=>{const e=Array.from(i.querySelectorAll(".m-media__slider__item"));if(e.length<=1)return;let t=0;e.forEach((n,l)=>{n.style.transition="opacity 0.3s ease",n.style.display=l===0?"block":"none",n.style.opacity=l===0?"1":"0"});const s=document.createElement("div");s.className="slick-slider-control",s.setAttribute("role","button"),s.setAttribute("aria-label","Vorheriges Bild"),s.innerHTML='<svg class="icon" aria-hidden="true"><use href="/img/symbols.svg#icon-chevron-left"></use></svg>';const a=document.createElement("div");a.className="slick-slider-control slick-slider-control--right",a.setAttribute("role","button"),a.setAttribute("aria-label","Nächstes Bild"),a.innerHTML='<svg class="icon" aria-hidden="true"><use href="/img/symbols.svg#icon-chevron-right"></use></svg>',i.style.position="relative",i.appendChild(s),i.appendChild(a);const o=n=>{const l=e[t];t=(n+e.length)%e.length;const r=e[t];l.style.opacity="0",l.addEventListener("transitionend",()=>{l.style.display="none",r.style.display="block",r.getBoundingClientRect(),r.style.opacity="1"},{once:!0})};s.addEventListener("click",()=>o(t-1)),a.addEventListener("click",()=>o(t+1))})});const $=`<div class="flex w-full"><div class="mx-auto my-24">
10<div class="m-auto animate-spin ease-linear rounded-full border-2 border-prinary-base h-24 w-24" style="border-top-color: rgba(255,255,255,0.2)"></div>
11<p class="text-gray-700">Graphen werden geladen ...</p>
12</div></div>`;typeof CanvasJS<"u"&&(CanvasJS.addCultureInfo("de",{decimalSeparator:".",digitGroupSeparator:",",days:["Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag","Sonntag"],shortDays:["Mo","Di","Mi","Do","Fr","Sa","So"],months:["Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"],shortMonths:["Jan","Feb","Mär","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez"],zoomText:"Vergrößern",panText:"Schwenken/Drehen",resetText:"Zurücksetzen",savePNGText:"Als PNG speichern",saveJPGText:"Als JPG speichern",printText:"Drucken",menuText:"Mehr Optionen",rangeSelector:{rangeText:"",fromText:"",toText:"bis"}}),CanvasJS.addColorSet("topagrar",["#407D31","#fdbc00","#1A202C","#D2232A","#063930","#95B089","#A7BD9D","#B9CAB1","#CAD7C4","#DCE5D8"]));const G=["Jan","Feb","Mär","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez"];class K{constructor(){this.dataLine=[],this.dataRange=[],this.apiUrl="/markt/boersekompakt",this.defaultPeriode="1m"}async fetchData(e){return(await fetch(this.apiUrl+e,{method:"GET",headers:{Accept:"application/json","Content-Type":"application/json"}})).json()}createChart(e,t){if(typeof CanvasJS>"u"){console.warn("CanvasJS not available, cannot create chart");return}this.dataArray,new CanvasJS.Chart(e+"Container",{colorSet:"topagrar",culture:"de",backgroundColor:"#F7F8F9",title:{text:t},animationEnabled:!1,exportEnabled:!0,axisY:{includeZero:!1,suffix:"€",titleFontColor:"#0A1c24",lableFontColor:"#0A1c24",gridColor:"#F7F8F9"},axisX:{interval:1,intervalType:"month",valueFormatString:"MMM",titleFontColor:"#0A1c24",lableFontColor:"#0A1c24",gridColor:"#F7F8F9"},toolTip:{shared:!1},legend:{cursor:"pointer",itemclick:function(a){typeof a.dataSeries.visible>"u"||a.dataSeries.visible?a.dataSeries.visible=!1:a.dataSeries.visible=!0,a.chart.render()}},data:this.dataArray}).render()}getDataTable(e,t,s){this.fetchData("/table?isin="+encodeURIComponent(t)+"&span="+encodeURIComponent(s)).then(a=>{let o=JSON.parse(a),n='<div><table class="table-auto">',l=!1;n+="<tr><th>Liefermonat</th><th>Schlusskurs</th><th>Veränderung zum Vortag</th><th>gehandelte Kontrakte</th></tr>",o.map(c=>{l||(l=c.settlement_time),n+="<tr><td>"+c.maturity+"</td>",n+="<td>",c.settlement_price_euro&&(n+=c.settlement_price_euro,n+=" €",c.contract_size&&(n+=" / "+c.contract_size)),n+="</td>",n+="<td>",n+=c.difference_euro?c.difference_euro:"-",n+="</td>",n+="<td>",n+=c.volume?c.volume:"-",n+="</td></tr>"}),n+="</table></div>";let r=Object.keys(o).length-1;r<0&&(r=0),o[Object.keys(o)[r]].legend?n+="<p>"+o[Object.keys(o)[r]].legend+"</p>":n+="<p>"+o[Object.keys(o)[0]].legend+"</p>",document.getElementById(e+"Table").innerHTML=n})}getData(e,t,s){document.getElementById(e+"Container").innerHTML=$,s=s??this.defaultPeriode;let a=[];this.fetchData("/historical?isin="+encodeURIComponent(t)+"&span="+encodeURIComponent(s)).then(o=>{let n=JSON.parse(o),{name:l,history:r}=n.chart_data;this.dataArray=[],r.columns.map((u,m)=>{a[u]=m});let c=0,d=Object.entries(r.data).length,h;Object.entries(r.data).forEach(u=>{h=u[0],this.dataLine=[],u[1].map((L,B)=>{if(B!=d-1){let p=L[0].split("-");p=new Date(p[0],p[1]-1,p[2]),this.dataLine.push({x:p,y:L[a.kassa]})}});let m=h.split("-"),g=parseInt(m[0].substring(2)),x=G[m[1]-1]+g,T=c==0;this.dataArray.push({type:"line",name:x,zoomEnable:!0,yValueFormatString:"###0.00 €",toolTipContent:"<b>Kurs: {y}/t</b>",showInLegend:!0,visible:T,dataPoints:this.dataLine}),c++}),this.createChart(e,l)})}display(){const e=Array.from(document.querySelectorAll("[data-isin]"));e.length!==0&&e.forEach(t=>{const s=t.querySelector(".o-accordion__tabs"),a=s?Array.from(s.querySelectorAll("li")):[],o=Array.from(t.querySelectorAll(".o-accordion__item"));o.forEach(l=>l.style.display="none");const n=l=>{a.forEach((u,m)=>{const g=o[m];m===l?(u.classList.add("r-tabs-state-active"),g&&(g.style.display="block")):(u.classList.remove("r-tabs-state-active"),g&&(g.style.display="none"))});const r=a[l]?.querySelector("a");if(!r)return;const c=t.dataset.isin,d=r.dataset.periode,h=o[l]?.id;c&&h&&(this.getData(h,c,d),this.getDataTable(h,c,d))};a.forEach((l,r)=>{const c=l.querySelector("a");c&&c.addEventListener("click",d=>{d.preventDefault(),n(r)})}),n(0)})}}class Y{constructor(){this.graphData=[]}buildApiUrl(){let e=window.location.href,t=e.lastIndexOf("/")+1,s=e.substring(t);return"/rind/milchpreisbarometer/raw/"+encodeURIComponent(s)}async fetchData(){let e=this.buildApiUrl();return(await fetch(e,{method:"GET",headers:{Accept:"application/json","Content-Type":"application/json"}})).json()}buildChartData(){let e=[];this.fetchData().then(t=>{for(let s in t){const a=t[s];let o=[];for(let n in a)o.push({x:parseFloat(n),y:parseFloat(a[n])});e.push({type:"line",name:s,zoomEnable:!0,yValueFormatString:"###.## ct",toolTipContent:"<br/><b>Preis ("+s+"): {y}/kg</b>",showInLegend:!0,dataPoints:o})}this.graphData=e,this.createChart()})}createChart(){if(typeof CanvasJS>"u"){console.warn("CanvasJS not available, cannot create milk price chart");return}const e=document.getElementById("milkPriceChartTitle");if(!e){console.warn("milkprice: #milkPriceChartTitle not found");return}
12let t=new CanvasJS.Chart("milkPriceChart",{colorSet:"topagrar",culture:"de",backgroundColor:"#F7F8F9",title:{text:e.textContent,fontSize:20},animationEnabled:!1,exportEnabled:!0,axisY:{includeZero:!1,suffix:" ct",titleFontColor:"#0A1c24",lableFontColor:"#0A1c24",gridColor:"#F7F8F9"},axisX:{interval:1,intervalType:"month",titleFontColor:"#0A1c24",lableFontColor:"#0A1c24",gridColor:"#F7F8F9"},toolTip:{shared:!0},legend:{cursor:"pointer",itemclick:function(s){typeof s.dataSeries.visible>"u"||s.dataSeries.visible?s.dataSeries.visible=!1:s.dataSeries.visible=!0,s.chart.render()}},data:this.graphData});requestAnimationFrame(()=>requestAnimationFrame(()=>t.render()))}}typeof window<"u"&&(window.stockMarket=K,window.milkprice=Y);class Z{constructor(){this.date=new Date}attachClickListeners(){document.querySelectorAll(".trigger-modal").forEach(t=>{t.addEventListener("click",s=>{s.preventDefault();let o=t.closest("[data-modal]").dataset.modal,n=t.dataset.modalAction;if(document.cookie=o+"="+n+"; path=/; expires="+this.getExpirationDate(),n=="participated"){let l=t.href;window.location.href=l}this.hidemodalElements(o)})})}hidemodalElements(e){document.querySelectorAll('[data-modal="'+e+'"]').forEach(s=>{s.classList.add("hidden")})}getExpirationDate(){return new Date(this.date.getFullYear()+2,this.date.getMonth(),this.date.getDate())}}document.addEventListener("DOMContentLoaded",()=>{new Z().attachClickListeners()});class X{constructor(){this.overlay=document.querySelector("[data-modal-overlay]"),this.content=this.overlay?.querySelector("[data-modal-content]"),this.hiddenClasses=["translate-y-full","md:-translate-y-full"],this.visibleClass="translate-none",this.activeTemplate=null}isVisible(){return this.overlay.classList.contains(this.visibleClass)}loadTemplate(e){const t=this.overlay.querySelector(`template[data-template="${e}"]`);if(!t){console.error(`ModalOverlay: Template "${e}" nicht gefunden.`);return}this.content.replaceChildren(t.content.cloneNode(!0));const a=this.content.firstElementChild.getAttribute("data-onload-function");a!==null&&globalThis[a]?.(),this.activeTemplate=e}updateMenuButton(e){document.querySelectorAll('[data-target="modal"][data-template="navigation"]').forEach(s=>{const a=s.querySelector("span"),o=s.querySelector("use");a&&(a.textContent=e?"Menü schließen":"Menü öffnen"),o&&o.setAttribute("href",e?"/img/icons/close.svg#icon":"/img/icons/manage-search.svg#icon")})}updateLoginButton(e){document.querySelectorAll('[data-target="modal"][data-template="login"]').forEach(a=>{const o=a.querySelector("span"),n=a.querySelector("use");o&&(o.textContent=e?"Schließen":"Einloggen"),n&&n.setAttribute("href",e?"/img/icons/close.svg#icon":"/img/icons/account-circle.svg#icon")}),document.querySelectorAll('[data-target="modal"][data-template="navigation"]:not([data-brand-menu-toggle])').forEach(a=>{a.classList.toggle("hidden",e)})}updateButtons(e,t){this.updateMenuButton(e==="navigation"&&t),this.updateLoginButton(e==="login"&&t)}show(e=null){if(this.isVisible()&&e){this.overlay.classList.remove(this.visibleClass),this.hiddenClasses.forEach(t=>this.overlay.classList.add(t)),this.overlay.addEventListener("transitionend",()=>{this.overlay.classList.remove("shadow-xl"),this.loadTemplate(e),this.hiddenClasses.forEach(t=>this.overlay.classList.remove(t)),this.overlay.classList.add(this.visibleClass,"shadow-xl"),this.updateButtons(e,!0)},{once:!0});return}e&&this.loadTemplate(e),this.hiddenClasses.forEach(t=>this.overlay.classList.remove(t)),this.overlay.classList.add(this.visibleClass,"shadow-xl"),this.updateButtons(e,!0)}hide(){const e=this.activeTemplate;this.overlay.classList.remove(this.visibleClass,"shadow-xl"),this.hiddenClasses.forEach(t=>this.overlay.classList.add(t)),this.updateButtons(e,!1)}toggle(e=null){this.isVisible()?e&&e!==this.activeTemplate?this.show(e):this.hide():this.show(e)}isPasswordManagerUI(e){if(!e||e===document.body||e===document.documentElement)return!1;if(e.tagName==="IFRAME"||!document.contains(e))return!0;let t=e;for(let s=0;s<4&&!(!t||t===document.body);s++){const a=(t.id||"").toLowerCase();if(/1password|lastpass|bitwarden|dashlane|keeper|nordpass/.test(a))return!0;t=t.parentElement}return!1}attachClickListeners(){let e=!1;document.addEventListener("mousedown",t=>{this.isVisible()&&(e=!!t.target.closest("[data-modal-overlay]"))}),document.addEventListener("click",t=>{const s=t.target.closest("[data-target]");if(!s&&this.isVisible()&&!t.target.closest("[data-modal-overlay]")){if(this.isPasswordManagerUI(t.target)||e)return;this.hide();return}if(!s)return;const a=s.dataset.target,o=s.dataset.template??null,n=s.dataset.action;if(a==="self"){t.preventDefault(),o&&(window.location.href=o);return}if(a==="blank"){t.preventDefault(),o&&window.open(o,"_blank","noopener,noreferrer");return}a==="modal"&&(t.preventDefault(),n==="open"?this.show(o):n==="close"?this.hide():n==="toggle"&&this.toggle(o))})}}document.addEventListener("DOMContentLoaded",()=>{const i=new X;i.overlay&&i.attachClickListeners()});class Q{}document.addEventListener("DOMContentLoaded",()=>{});let S=null,E=!1;function b(){const i=document.querySelector("[data-main-navigation]");if(!i)return;const e=document.querySelector("[data-navigation-weather]"),t=i.querySelector("[data-navigation-more]"),s=getComputedStyle(i);let a=i.offsetWidth-parseFloat(s.paddingLeft)-parseFloat(s.paddingRight);[t,e].forEach(r=>{if(!r)return;const c=getComputedStyle(r);a-=r.offsetWidth+parseFloat(c.marginLeft)+parseFloat(c.marginRight)}),a=Math.round(a);const o=Array.from(i.querySelectorAll("[data-navigation-item]"));let n=0;const l=o.map(r=>{const c=r.style.display==="none";
12c&&(r.style.visibility="hidden",r.style.display="");const d=getComputedStyle(r),h=r.offsetWidth+parseFloat(d.marginLeft)+parseFloat(d.marginRight);return c&&(r.style.display="none",r.style.visibility=""),n=Math.round(n+h),n<=a});requestAnimationFrame(()=>{o.forEach((r,c)=>{r.style.display=l[c]?"":"none"}),E||(o.forEach(r=>r.classList.remove("invisible")),t?.classList.remove("invisible"),e?.classList.remove("invisible"),E=!0)})}function ee(){clearTimeout(S),S=setTimeout(b,100)}window.addEventListener("resize",ee);document.addEventListener("DOMContentLoaded",b);function te(){const i=document.querySelector("[data-navigation-sentinel]"),e=document.querySelector("[data-navigation-weather]"),t=document.querySelector("[data-navigation-menu-button]");if(!i||!e||!t)return;const s=["transition-all","duration-300","ease-out"],a=document.querySelector("[data-main-navigation]");function o(r){a&&(a.classList.toggle("border-t-gray-400",!r),a.classList.toggle("border-t-white",r)),r?(e.classList.remove("opacity-100","translate-x-0"),e.classList.add("opacity-0","translate-x-4","pointer-events-none"),t.classList.remove("opacity-0","translate-x-4","pointer-events-none"),t.classList.add("opacity-100","translate-x-0")):(e.classList.remove("opacity-0","translate-x-4","pointer-events-none"),e.classList.add("opacity-100","translate-x-0"),t.classList.remove("opacity-100","translate-x-0"),t.classList.add("opacity-0","translate-x-4","pointer-events-none"))}const n=i.getBoundingClientRect().top<0;o(n),requestAnimationFrame(()=>{const r=e.offsetWidth,c=t.offsetWidth,d=Math.max(r,c);if(d>0){const h=e.parentElement;h&&(h.style.minWidth=d+"px"),e.style.width="100%"}e.classList.add(...s),t.classList.add(...s),b()}),new IntersectionObserver(([r])=>o(!r.isIntersecting),{threshold:0}).observe(i)}document.addEventListener("DOMContentLoaded",te);function w(i){const e=document.querySelector(i);e&&(e.style.display="")}async function y(i,e){const t=await fetch(i,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:new URLSearchParams(e)});if(!t.ok)throw new Error(t.statusText);return t}document.addEventListener("DOMContentLoaded",()=>{const i=document.querySelector("#newsletter-inp-mail");i&&i.value===""?document.querySelectorAll("[data-newsletter-check-email]").forEach(e=>{e.addEventListener("click",()=>{/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)*$/.test(i.value)?(document.querySelectorAll("[data-newsletter-disabled-area]").forEach(s=>s.classList.remove("l-disabled-area")),document.querySelectorAll("[data-newsletter-email-invalid]").forEach(s=>s.style.display="none"),document.querySelectorAll("[data-newsletter-check-email]").forEach(s=>s.style.display="none")):document.querySelectorAll("[data-newsletter-email-invalid]").forEach(s=>s.style.display="block")})}):(document.querySelectorAll("[data-newsletter-disabled-area]").forEach(e=>e.classList.remove("l-disabled-area")),document.querySelectorAll("[data-newsletter-check-email]").forEach(e=>e.style.display="none")),document.querySelectorAll("[data-newsletter-toggle]").forEach(e=>{const t=e.closest("."+e.dataset.toggletarget);t&&(t.classList.contains("is-active")?(t.querySelectorAll("[data-newsletter-show-when-active]").forEach(s=>s.style.display=""),t.querySelectorAll("[data-newsletter-show-when-inactive]").forEach(s=>s.style.display="none")):(t.querySelectorAll("[data-newsletter-show-when-inactive]").forEach(s=>s.style.display=""),t.querySelectorAll("[data-newsletter-show-when-active]").forEach(s=>s.style.display="none")))})});document.querySelectorAll("[data-newsletter-open-requested]").forEach(i=>{i.addEventListener("click",()=>{const t=".box-"+document.querySelector('#modal input[name="requestedNewsletter"]')?.value,a=document.querySelector(t)?.querySelector("[data-newsletter-show-when-inactive][data-newsletter-toggle]");a&&a.click()})});document.querySelectorAll("[data-newsletter-toggle-modal]").forEach(i=>{i.addEventListener("click",e=>{e.preventDefault(),w("#"+i.dataset.modalId)})});document.querySelectorAll("[data-newsletter-toggle]").forEach(i=>{i.addEventListener("click",async e=>{e.preventDefault();const t=i.closest("."+i.dataset.toggletarget);if(!t)return;const s=document.querySelector("#newsletter-inp-mail");if(!s||s.value===""){w("#modal");const d=document.querySelector('#modal input[name="requestedNewsletter"]');d&&(d.value=t.querySelector('input[name="newsletterBox"]')?.value??"");return}const a=t.querySelector('input[name="type"]')?.value,o=t.querySelector('input[name="newsletter"]')?.value,n=s.value,l=t.querySelector('input[name="salesforce"]')?.value??0,r=t.querySelector('input[name="_token"]')?.value,c=t.querySelector("form")?.action??window.location.href;t.classList.add("l-disabled-area");try{await y(c,{_token:r,type:a,email:n,newsletter:o,salesforce:l}),t.classList.remove("l-disabled-area"),t.classList.toggle("is-active");const d=t.classList.contains("is-active");t.querySelectorAll("[data-newsletter-show-when-active]").forEach(u=>u.style.display=d?"":"none"),t.querySelectorAll("[data-newsletter-show-when-inactive]").forEach(u=>u.style.display=d?"none":"");const h=t.querySelector('input[name="type"]');h&&(h.value=a==="subscribeNewsletterAjax"?"unsubscribeNewsletterAjax":"subscribeNewsletterAjax")}catch{t.classList.remove("l-disabled-area"),t.querySelectorAll("[data-newsletter-show-when-inactive]").forEach(d=>d.style.display=""),t.querySelectorAll("[data-newsletter-show-when-active]").forEach(d=>d.style.display="none")}})});const v=document.querySelector("[data-newsletter-unsubscribe-all]");v&&v.addEventListener("submit",async i=>{i.preventDefault();const e=v.querySelector("button[type=submit]");e.disabled=!0;const t=document.querySelector("#newsletter-inp-mail");if(!t||t.value===""){w("#modal"),e.disabled=!1;return}try{await y(v.action||window.location.href,{_token:v.querySelector('input[name="_token"]')?.value,type:"unsubscribeAllNewsletterAjax",email:t.value}),e.disabled=!1,window.__notifications?.push({message:"Sie haben sich erfolgreich von allen Newslettern abgemeldet",type:"success",location:"topRight"}),document.querySelectorAll(".m-inputbox.is-active").forEach(s=>{const a=s.querySelector("[data-newsletter-show-when-active]"),o=s.querySelector("[data-newsletter-show-when-inactive]");a&&(a.style.display="none"),o&&(o.style.display="");const n=s.querySelector('input[name="type"]');
12n&&(n.value="subscribeNewsletterAjax"),s.classList.remove("is-active")})}catch{e.disabled=!1,window.__notifications?.push({message:"Die Newsletterabmeldung konnte nicht erfolgreich abgeschlossen werden",type:"error",location:"topRight"})}});const f=document.querySelector("[data-newsletter-unsubscribe-all-guest]");f&&f.addEventListener("submit",async i=>{if(i.preventDefault(),!f.checkValidity())return;const e=f.querySelector("button[type=submit]");e.disabled=!0;const t=document.querySelector("#newsletterEmail_userNotLoggedIn")?.value;try{await y(f.action||window.location.href,{_token:f.querySelector('input[name="_token"]')?.value,type:"unsubscribeAllNewsletterAjax",email:t}),e.disabled=!1,window.__notifications?.push({message:"Sie haben sich erfolgreich von allen Newslettern abgemeldet",type:"success",location:"topRight"}),document.querySelectorAll(".m-inputbox.is-active").forEach(s=>{const a=s.querySelector("[data-newsletter-show-when-active]"),o=s.querySelector("[data-newsletter-show-when-inactive]");a&&(a.style.display="none"),o&&(o.style.display="");const n=s.querySelector('input[name="type"]');n&&(n.value="subscribeNewsletterAjax"),s.classList.remove("is-active")})}catch{e.disabled=!1,window.__notifications?.push({message:"Die Newsletterabmeldung konnte nicht erfolgreich abgeschlossen werden",type:"error",location:"topRight"})}});document.addEventListener("livewire:initialized",()=>{typeof Livewire>"u"||Livewire.on("openUrlInNewTab",({url:i})=>{window.open(i,"_blank")})});(function(){if(!document.getElementById("flash-animation-style")){const t=document.createElement("style");t.id="flash-animation-style",t.textContent=`
13            @keyframes smooth-pulse {
14                0%, 100% { background-color: transparent; box-shadow: var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) transparent; }
15                50% { background-color: rgb(239 246 255); box-shadow: var(--tw-ring-inset) 0 0 0 calc(4px + var(--tw-ring-offset-width)) rgb(59 130 246); }
16            }
17            .animate-flash-blue {
18                animation: smooth-pulse 1.5s ease-in-out 3;
19            }
20        `,document.head.appendChild(t)}function i(t){t.classList.contains("animate-flash-blue")||(t.classList.add("animate-flash-blue","rounded-md"),setTimeout(()=>{t.classList.remove("animate-flash-blue","rounded-md")},4500))}function e(t){if(!t)return;const s=document.querySelector(t);if(!s)return;let a;const o=new MutationObserver(()=>{clearTimeout(a),a=setTimeout(()=>{o.disconnect(),s.scrollIntoView({behavior:"smooth",block:"start"}),i(s)},400)});o.observe(document.body,{childList:!0,subtree:!0}),a=setTimeout(()=>{o.disconnect(),s.scrollIntoView({behavior:"smooth",block:"start"}),i(s)},400)}document.addEventListener("DOMContentLoaded",()=>e(window.location.hash)),window.addEventListener("hashchange",()=>e(window.location.hash))})();document.addEventListener("DOMContentLoaded",()=>{document.querySelectorAll("[data-newsletterbox]").forEach(i=>{i.addEventListener("submit",async e=>{if(!i.checkValidity())return;e.preventDefault();const t=i.querySelector("button[type=submit]");t.disabled=!0;const s=i.querySelector('input[name="email"]')?.value,a=i.querySelector('input[name="newsletter"]')?.value,o=i.querySelector('input[name="_token"]')?.value,n=i.querySelector('input[name="salesforce"]')?.value??0,l=i.action||"/";let r=i.querySelector('input[name="successMessage"]')?.value;r||(r="Sie haben sich erfolgreich für den Newsletter angemeldet");try{await y(l,{_token:o,type:"subscribeNewsletterAjax",email:s,newsletter:a,salesforce:n}),window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"newsletter_widget_submit"}),i.style.transition="opacity 500ms ease, max-height 500ms ease",i.style.overflow="hidden",i.style.opacity="0",i.style.maxHeight="0",i.addEventListener("transitionend",()=>i.remove(),{once:!0}),window.__notifications?.push({message:r,type:"success",location:"topRight"})}catch{t.disabled=!1,window.__notifications?.push({message:"Es ist ein Fehler aufgetreten. Die Newsletter Anmeldung konnte nicht abgeschlossen werden",type:"error",location:"topRight"})}})})});const se=(()=>{const i={topRight:[],topLeft:[],top:[],bottomRight:[],bottomLeft:[],bottom:[]},e={error:"cross",success:"checkmark",warning:"warning"},t={animationTime:500,fadeOutAt:5e3};function s(o,n){return n==="topRight"||n==="bottomRight"?{right:`-${o.offsetWidth}px`}:n==="topLeft"||n==="bottomLeft"?{left:`-${o.offsetWidth}px`}:{opacity:"0"}}function a(o){let n=0;
20i[o].forEach(l=>{l.style.transition=`all ${t.animationTime}ms ease`,l.style[o.startsWith("top")?"top":"bottom"]=`${n}px`,n+=l.offsetHeight+8})}return{push({message:o,type:n,location:l="topRight"}){window.innerWidth<480&&(l="top");const r=document.createElement("div");r.className=`js-notifications js-notifications--${l} m-notification m-notification--${n}`,r.innerHTML=`
21        <svg class="icon m-notification__symbol">
22          <use xlink:href="/img/symbols.svg#icon-${e[n]}"></use>
23        </svg>
24        <div class="m-notification__matter"><p>${o}</p></div>
25      `.trim(),r.style.cssText="position:fixed;transition:none;",l.startsWith("top")&&(r.style.top="-200px"),l.startsWith("bottom")&&(r.style.bottom="-200px"),(l==="topRight"||l==="bottomRight")&&(r.style.right="0"),(l==="topLeft"||l==="bottomLeft")&&(r.style.left="0"),(l==="top"||l==="bottom")&&(r.style.left="50%",r.style.transform="translateX(-50%)"),document.body.appendChild(r),i[l].unshift(r),requestAnimationFrame(()=>a(l)),setTimeout(()=>{r.style.transition=`all ${t.animationTime}ms ease`,Object.assign(r.style,s(r,l)),r.addEventListener("transitionend",()=>{i[l]=i[l].filter(c=>c!==r),r.remove(),a(l)},{once:!0})},t.fadeOutAt)}}})();window.__notifications=se;class ie{constructor(){}attachClickListeners(){const e=document.querySelectorAll(".trigger-usp");window.innerHeight>=1024||e.forEach(t=>{let s=t.dataset.sku??"",a=t.dataset.eventAction??"Abo-Detail-Button";t.addEventListener("click",o=>{let n=o.target.closest(".paywall-package"),l=n.querySelector(".paywall-usp"),r=n.querySelector(".paywall-trigger-indicator");n.classList.contains("max-h-60")?(t.dataset.eventAction=a+" "+s+" geschlossen",n.classList.add("max-h-screen"),n.classList.remove("max-h-60"),r.classList.add("before:rotate-90"),r.classList.remove("before:-mt-1"),l.classList.remove("hidden"),l.classList.add("inline-flex")):(l.classList.add("hidden"),l.classList.remove("inline-flex"),n.classList.add("max-h-60"),n.classList.remove("max-h-screen"),r.classList.remove("before:rotate-90"),r.classList.add("before:-mt-1"),t.dataset.eventAction=a+" "+s+" geöffnet")})})}}document.addEventListener("DOMContentLoaded",()=>{new ie().attachClickListeners()});class ae{constructor(){this.progress=0,this.newProgress=0,this.progressContainer=document.querySelector("[data-progress-container]"),this.progressBarHeader=document.querySelector("[data-progress-header]"),this.progressBarContent=document.querySelector("[data-progress-content]"),this.progressBar=document.querySelector("[data-progress-bar]"),this.previousScrollPosition=window.scrollY}shouldLoad(){return!!this.progressContainer&&!!this.progressBar}showProgressBar(){this.progressBarHeader.classList.remove("-top-30!"),this.progressBarContent.classList.remove("shadow-none"),this.progressBarContent.classList.add("opacity-100")}hideProgressBar(){this.progressBarHeader.classList.add("-top-30!"),this.progressBarContent.classList.add("shadow-none"),this.progressBarContent.classList.remove("opacity-0")}updateProgressBar(){if(this.shouldLoad()){let e=this.progressContainer.offsetHeight,t=window.innerHeight,s=window.scrollY,a=this.progressContainer.offsetTop,o=a+e,n=s>=a,l=0,r=0;o>t&&(r=t-a/2,l=o-r),n?(this.newProgress=s/l*100-a/l*100,this.newProgress>=100?this.progressBar.style.width="100%":this.newProgress<=0?this.progressBar.style.width="0%":this.progressBar.style.width=this.newProgress+"%"):this.progressBar.style.width="0px",this.previousScrollPosition=s,this.progress=this.newProgress,n?this.showProgressBar():this.hideProgressBar(),s>o&&this.hideProgressBar()}}}document.addEventListener("DOMContentLoaded",()=>{const i=new ae;i.shouldLoad()&&(i.updateProgressBar(),window.addEventListener("scroll",()=>i.updateProgressBar()))});document.addEventListener("DOMContentLoaded",()=>{const i={id:null,selector:".js-trigger-regenradarImage",act:1,get elements(){return document.querySelectorAll(this.selector)},init(){const e=document.querySelector(this.selector);e&&(e.style.display="");const t=document.querySelector(".js-trigger-regenradar-start"),s=document.querySelector(".js-trigger-regenradar-stop");t&&(t.style.display="none",t.addEventListener("click",()=>this.start())),s&&s.addEventListener("click",()=>this.stop()),this.start()},animate(){const e=this.elements,t=this.act+1<=e.length?this.act+1:1,s=document.querySelector(`${this.selector}:nth-child(${this.act})`),a=document.querySelector(`${this.selector}:nth-child(${t})`);s&&(s.style.display="none"),a&&(a.style.display=""),this.act=t},start(){this.id=setInterval(()=>this.animate(),300);const e=document.querySelector(".js-trigger-regenradar-stop"),t=document.querySelector(".js-trigger-regenradar-start");e&&(e.style.display=""),t&&(t.style.display="none")}
25,stop(){clearInterval(this.id);const e=document.querySelector(".js-trigger-regenradar-stop"),t=document.querySelector(".js-trigger-regenradar-start");e&&(e.style.display="none"),t&&(t.style.display="")}};document.querySelector(".js-trigger-regenradarImage")&&i.init()});document.addEventListener("DOMContentLoaded",function(){let i=document.querySelectorAll('iframe:not([style*="display: none"])'),e=["https://www.youtube.com","https://www.youtube-nocookie.com","https://youtu.be","https://www.facebook.com/plugins/video"];function t(o){let n=!1;return e.some(function(l){if(o.startsWith(l))return n=!0,!0}),n}function s(){i.forEach(function(o){let n=o.getAttribute("data-aspect-ratio");n>0&&(o.setAttribute("width","100%"),t(o.src)&&o.addEventListener("load",function(l){let c=o.offsetWidth*n;o.src.match(/facebook/)&&(c=l.target.clientHeight+60),o.setAttribute("height",c)}))})}function a(){i.forEach(function(o){let n=o.offsetWidth,r=o.offsetHeight/n;o.setAttribute("data-aspect-ratio",r)})}window.onresize=s,a(),s()});document.addEventListener("contextmenu",function(i){(i.target.nodeName==="PICTURE"||i.target.nodeName==="IMG"||i.target.nodeName==="FIGURE")&&i.preventDefault()},!1);class oe{constructor(){this.overlay=document.querySelector(".js-searchform-background-layer"),this.form=document.querySelector(".js-searchform"),this.openBtns=document.querySelectorAll(".js-trigger-open-searchform"),this.closeBtns=document.querySelectorAll(".js-trigger-close-searchform"),this.input=this.form?this.form.querySelector(".js-searchform-input"):null,this.lastTrigger=null,this.boundTrap=this.trapFocus.bind(this),this.overlay&&this.form&&this.openBtns.length>0&&this.registerEvents()}getFocusableElements(){return this.form?this.form.querySelectorAll('a[href], button:not([disabled]), textarea, input, select, [tabindex]:not([tabindex="-1"])'):[]}trapFocus(e){if(e.key!=="Tab")return;const t=this.getFocusableElements();if(!t.length)return;const s=t[0],a=t[t.length-1];e.shiftKey?document.activeElement===s&&(e.preventDefault(),a.focus()):document.activeElement===a&&(e.preventDefault(),s.focus())}open(e){if(!(!this.form||!this.overlay)){if(this.overlay.classList.remove("hidden"),this.form.classList.remove("hidden"),this.overlay.setAttribute("aria-hidden","false"),this.openBtns.forEach(t=>t.setAttribute("aria-expanded","true")),this.input)this.input.focus();else{const t=this.getFocusableElements()[0];t&&t.focus()}this.lastTrigger=e||null,document.addEventListener("keydown",this.boundTrap)}}close(){!this.form||!this.overlay||(this.overlay.classList.add("hidden"),this.form.classList.add("hidden"),this.overlay.setAttribute("aria-hidden","true"),this.openBtns.forEach(e=>e.setAttribute("aria-expanded","false")),this.lastTrigger&&this.lastTrigger.focus(),document.removeEventListener("keydown",this.boundTrap))}registerEvents(){this.openBtns.forEach(e=>{e.addEventListener("click",t=>{t.preventDefault(),!this.form.classList.contains("hidden")?this.close():this.open(e)})}),this.closeBtns.forEach(e=>{e.addEventListener("click",t=>{t.preventDefault(),this.close()})}),document.addEventListener("keydown",e=>{e.key==="Escape"&&this.form&&!this.form.classList.contains("hidden")&&this.close()})}}document.addEventListener("DOMContentLoaded",()=>{new oe});class q{constructor(){this.navigation=document.querySelector(".js-trigger-subnav"),this.navigation&&(this.desktop=this.navigation.querySelector(".js-trigger-subnav-desktop"),this.mobile=this.navigation.querySelector(".js-trigger-subnav-mobile"),this.more=this.navigation.querySelector(".js-trigger-subnav-more"),this.moreSize=this.more.offsetWidth,this.chevron=this.navigation.querySelector(".chevron-icon"),this.items=this.desktop.querySelectorAll(".js-trigger-subnav-item"),this.sizes=[],this.items.forEach(function(e){this.sizes.push(this.getFullWidth(e))},this),this.items.forEach(function(e){this.sizes.push(e.offsetWidth)},this),this.toggle=this.navigation.querySelector(".js-subnavigation-toggle"),this.open=!1,this.maxUsed=this.getMaxUsed(),this.toggle.addEventListener("click",()=>{this.toggleMenue()}),this.used=0,this.space=0,this.mobileBreakPoint=600,document.addEventListener("click",e=>{this.open&&!this.more.contains(e.target)&&this.closeMenu()}),document.addEventListener("keydown",e=>{e.key==="Escape"&&this.open&&(this.closeMenu(),this.toggle.focus())}))}getFullWidth(e){const t=e.getBoundingClientRect(),s=window.getComputedStyle(e),a=parseInt(s.marginLeft)||0,o=parseInt(s.marginRight)||0;return t.width+a+o}getMaxUsed(){let e=0;
25return this.items.forEach(function(t){e=e+t.offsetWidth}),e}checkItems(){this.navigation&&(this.space=this.navigation.offsetWidth,this.used=0,this.shouldCircle()?(this.used=0,this.circleItems()):this.resetItems(),this.checkMoreNeeded())}shouldCircle(){return this.space<this.mobileBreakPoint?!0:(this.items.forEach(function(e,t){this.used=this.used+this.sizes[t]},this),this.used>this.space)}resetItems(){this.items.forEach(function(e,t){this.desktop.append(e)},this)}circleItems(){this.items.forEach(function(e,t){this.used=this.used+this.sizes[t],this.used>this.space-this.moreSize||this.space<this.mobileBreakPoint?this.mobile.append(e):this.desktop.append(e)},this)}checkMoreNeeded(){return this.mobile.querySelectorAll("a").length>0?(this.more.classList.remove("hidden"),!0):(this.more.classList.add("hidden"),!1)}toggleMenue(){this.open?this.closeMenu():this.openMenu()}openMenu(){this.open=!0,this.mobile.classList.remove("invisible"),this.chevron.classList.remove("rotate-90"),this.chevron.classList.add("-rotate-90"),this.toggle.setAttribute("aria-expanded","true")}closeMenu(){this.open=!1,this.mobile.classList.add("invisible"),this.chevron.classList.add("rotate-90"),this.chevron.classList.remove("-rotate-90"),this.toggle.setAttribute("aria-expanded","false")}}document.addEventListener("DOMContentLoaded",()=>{const i=new q;window.addEventListener("resize",()=>{i.checkItems()}),i.checkItems()});document.addEventListener("DOMContentLoaded",()=>{const i=document.querySelector(".js-subnavigation__select");i&&i.addEventListener("change",()=>{window.location.href=i.value})});document.addEventListener("DOMContentLoaded",function(){var i=document.querySelector(".table.table-bordered.prototable");i!==null&&i.setAttribute("style","display:block")});class ne{constructor(){this.date=new Date}attachClickListeners(){document.querySelectorAll(".trigger-user-survey").forEach(t=>{t.addEventListener("click",s=>{s.preventDefault();let o=t.closest("[data-user-survey]").dataset.userSurvey,n=t.dataset.surveyAction;if(document.cookie=o+"="+n+"; path=/; expires="+this.getExpirationDate(),n=="participated"){let l=t.href;window.open(l,"_blank")}this.hideSurveyElements(o)})})}hideSurveyElements(e){document.querySelectorAll('[data-user-survey="'+e+'"]').forEach(s=>{s.classList.add("hidden")})}getExpirationDate(){return new Date(this.date.getFullYear()+2,this.date.getMonth(),this.date.getDate())}}document.addEventListener("DOMContentLoaded",()=>{new ne().attachClickListeners()});class k{constructor(){this.images=null,this.act=0,this.interval=null,this.buttonStart=null,this.buttonPause=null,this.init()}init(){const e=()=>{this.images=document.querySelectorAll(".trigger-weather-animation"),this.buttonStart=document.querySelector(".trigger-weather-animation-start"),this.buttonPause=document.querySelector(".trigger-weather-animation-pause"),this.images.length>0&&this.buttonStart&&this.buttonPause?(this.act=this.images.length-1,this.buttonStart.addEventListener("click",t=>{this.start()}),this.buttonPause.addEventListener("click",t=>{this.pause()})):setTimeout(e,100)};e()}fadeOutImage(){this.images[this.act]&&this.act>0?(this.images[this.act].classList.remove("opacity-100"),this.images[this.act].classList.add("opacity-0"),this.act--):(this.images.forEach(function(e,t){e.classList.remove("opacity-0"),e.classList.add("opacity-100")}),this.act=this.images.length-1)}startAnimation(){!this.images||this.images.length===0||(this.interval=setInterval(this.fadeOutImage.bind(this),150))}pause(){this.buttonStart&&this.buttonPause&&(this.buttonStart.classList.remove("hidden"),this.buttonPause.classList.add("hidden")),clearInterval(this.interval)}start(){this.buttonStart&&this.buttonPause&&(this.buttonStart.classList.add("hidden"),this.buttonPause.classList.remove("hidden")),this.startAnimation()}}window.weatherAnimation=k;window.loginFormsBinding=I;window.Navigation=Q;window.subnavigation=q;window.weatherAnimation=k;window.D9Group=C;

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.