1var v=Object.defineProperty;var H=(t,c,u)=>c in t?v(t,c,{enumerable:!0,configurable:!0,writable:!0,value:u}):t[c]=u;var g=(t,c,u)=>H(t,typeof c!="symbol"?c+"":c,u);(function(t,c,u){class m{constructor(i){g(this,"quicklinksOuterList");this.headerIntroHeight=0,this.navHeight=0,this.adminBarHeight=0,this.drupalTopToolbarTrayHeight=0,this.drupalTopToolbarHeight=0,this.offsetTopForFooter=0,this.observerAttributeId="data-intersection-id",this.container=i,this.quicklinksWrapper=i.querySelector("#header-quicklinks-wrapper"),this.quicklinksList=i.querySelector("#header-quicklinks-list"),this.interSectionOptions={root:null,rootMargin:"-270px 0px -70px 0px",threshold:[.2,.7]},this.interSectionOptionsLong={root:null,rootMargin:"-270px 0px -70px 0px",threshold:[.1]},this.quicklinksBarHeight=0,this.breadcrumbsHeight=0,this.init()}init(){if(!this.buildDom())return;if(this.container.classList.add("initialized"),!this.quicklinksList){console.info("no correct template for quicklinks");return}this.quicklinksList.classList.add("quicklinks"),this.calcMenuWidth(),this.setHeights(),setTimeout(()=>this.setHeights(),100),setTimeout(()=>this.calcMenuWidth(),400),setTimeout(()=>this.setHeights(),1e3);let i=30;t("#block-hauptseiteninhalt").find("> .exposition-overview").length&&(i=80),c.SmoothScroll.InitSmoothScroll("#header-quicklinks-list > li >
1 a",this.adminBarHeight+this.navHeight+this.quicklinksBarHeight+i),this.setCustomListeners(),this.setScrollListeners(),this.checkMenuArrowsVisibility()}setHeights(){this.setDrupalAdminHeight(),this.setNavHeight(),this.setQuicklinksHeight(),this.setBreadcrumbsHeight(),this.setOffsetBottom()}setNavHeight(){this.navHeight=parseInt(t(".main-header").first().height()??0)}setQuicklinksHeight(){this.quicklinksBarHeight=parseInt(t("#header-section").height()??0)}setBreadcrumbsHeight(){this.breadcrumbsHeight=t(".breadcrumb-container").outerHeight(!0)??0}setDrupalAdminHeight(){this.drupalTopToolbarHeight=t("#toolbar-bar").height()??0,this.drupalTopToolbarTrayHeight=t("#toolbar-item-administration-tray .toolbar-menu-administration > ul.toolbar-menu").outerHeight(!0)??0,this.adminBarHeight=parseInt(this.drupalTopToolbarHeight)+parseInt(this.drupalTopToolbarTrayHeight)}setOffsetBottom(){var r,o,l;let i=(r=t(".footer__pre").first().offset())==null?void 0:r.top,e=(o=t(".footer__main").first().offset())==null?void 0:o.top,s=(l=t(".footer__legal").first().offset())==null?void 0:l.top;this.offsetTopForFooter=i||e||s||void 0,this.offsetTopForFooter>0&&(this.offsetTopForFooter-=this.quicklinksBarHeight,this.offsetTopForFooter-=this.navHeight,this.container.style.setProperty("--offset-top-for-sticky",this.offsetTopForFooter+"px"))}setHeaderIntroHeight(){this.headerIntroHeight=t(".header-intro").first().height()??0,this.headerIntroHeight===0&&(this.headerIntroHeight+=parseInt(t(".layout-container.grid-wrapper").css("paddingTop")),this.headerIntroHeight+=t("#block-hauptseiteninhalt > article:first-child").height()??0,this.headerIntroHeight+=t("#block-hauptseiteninhalt > article:first-child + .spacer--3").height()??0,this.headerIntroHeight+=t(".drupal-message").outerHeight(!0)??
10),t("body").hasClass("magazine_content")&&(this.headerIntroHeight=(t(".node__magazine-content__header-video").height()??0)+(t(".node__magazine-content__header-image").height()??0)+(t(".magazine-intro").height()??0)+4,console.log("magazine content header height",this.headerIntroHeight))}buildDom(){const i=t(this.quicklinksList).html();this.setPosOfQuicklinks(),t(this.quicklinksList).html("");const e=(l,n)=>{l.forEach(h=>{const k=h.target.getAttribute(this.observerAttributeId),a=t(this.quicklinksList).find("li a[data-intersection-id='"+k+"']");a&&a.toggleClass("button__quicklink--active",h.isIntersecting),this.checkForNavItemPositions()})};this.intersectionObserver=new IntersectionObserver(e,this.interSectionOptions),this.intersectionObserverLong=new IntersectionObserver(e,this.interSectionOptionsLong),t(".section-header").each((l,n)=>{let h="intersection-"+l;if(!t(n).parent().parent().hasClass("visible_not-linked")){let a;t(n).parent().parent().hasClass("section-header-wrapper")?(a=t(n).parent().parent().parent(),a.attr(this.observerAttributeId,h)):t(n).parent().parent().hasClass("paragraph--type--section-container-press-images")?(a=t(n).parent().parent(),a.attr(this.observerAttributeId,h)):(a=t(n).parent(),a.attr(this.observerAttributeId,h));const d=t(n).text().replace(/\W/g,""),f=t(n).text().trim();t(n).attr("id",d),t(this.quicklinksList).append("<li>"+i+"</li>");const b=t(this.quicklinksList).find(">li").last().find("a");if(t(b).attr("href","#"+d).attr("data-text",f).attr(this.observerAttributeId,h).removeClass("button--invisible").find(".inner").html(f),a!==void 0)try{a[0].getBoundingClientRect().height>window.innerHeight*2?this.intersectionObserverLong.observe(a[0]):this.intersectionObserver.observe(a[0])}catch(q){console.error("Could not observe",a,q)}}});let s=this,r=t("<div></div>").addClass("quicklinks-nav__prev quicklinks-nav").html("â¹").on("click",function(l){s.scrollToSiblingItem(!1)}),o=t("<div></div>").addClass("quicklinks-nav__next quicklinks-nav").html("âº").on("click",function(l){s.scrollToSiblingItem(!0)});return t(this.quicklinksWrapper).before(r),t(this.quicklinksWrapper).after(o),t(this.quicklinksWrapper).on("scroll",function(l){s.checkMenuArrowsVisibility()}),t(this.quicklinksList).html()!==""}checkForNavItemPositions(){let i=t(this.quicklinksList).find("li a.button__quicklink--active");if(t(this.quicklinksWrapper).width()>=t(this.quicklinksList).width())return;let e=i.first();if(e.length>0){let s=e.parent().prevAll();if(s.length>0){let r=-5;s.each((o,l)=>{r+=l.clientWidth}),t(this.quicklinksWrapper).stop().animate({scrollLeft:r},200)}else t(this.quicklinksWrapper).stop().animate({scrollLeft:0},500);this.checkMenuArrowsVisibility()}}calcMenuWidth(){let i=10;this.quicklinksList.querySelectorAll("li").forEach(function(e){i=i+e.offsetWidth}),t(this.quicklinksList).css("width",i+"px"),t(this.quicklinksWrapper).width(),this.container.style.setProperty("--quicklinks-wrapper-width",t(this.quicklinksWrapper).width()+"px")}processFontSizeChange(){this.setPosOfQuicklinks(),this.setHeights(),this.calcMenuWidth(),this.container.style.setProperty("--quicklinks-wrapper-width",t(this.quicklinksWrapper).width()+"px"),this.checkMenuArrowsVisibility()}setCustomListeners(){let i=this;window.addEventListener("fontSizeChanged",function(){console.log("fontSizeChanged"),i.processFontSizeChange()})}setScrollListeners(){let i=0;i+=t(".footer__main").first().height(),i>100&&(i-=100);var e,s=0,r=0;window.onscroll=()=>{var o=100,l=new Date().getTime();let n=this;function h(){n.setQuicklinksScrollBar(i),n.checkForStickyQuicklinks()}e||(l-s>3*o&&(h(),s=l),e=setTimeout(function(){e=null,s=new Date().getTime(),h()},o))},window.onresize=()=>{var o=100,l=new Date().getTime();let n=this;function h(){n.setHeights(),n.calcMenuWidth(),n.container.style.setProperty("--quicklinks-wrapper-width",t(n.quicklinksWrapper).width()+"px")}e||(l-r>3*o&&(h(),r=l),setTimeout(function(){r=new Date().getTime(),h()},o))}}setPosOfQuicklinks(){this.setHeaderIntroHeight(),this.container.style.setProperty("--headerIntroHeight",this.headerIntroHeight+"px")}checkForStickyQuicklinks(){var i=document.documentElement,e=document.body,s="scrollTop";let r=c.CssVars.getValue("drupal-toolbar-relative-mobile-offset-top",!0)+this.headerIntroHeight+this.breadcrumbsHeight;(i[s]||e[s])>r?(t(".header-section-container").hasClass("header-section-container--fixed")||(t(".header-section-container").addClass("header-section-container--fixed"),setTimeout(()=>{t(".header-section-container").css("transition","top 375ms ease-in-out")},100)),this.offsetTopForFooter&&this.offsetTopForFooter>0&&(i[s]||e[s])>this.offsetTopForFooter?t(".header-section-container").addClass("header-section-container--u
1nfixed"):t(".header-section-container").removeClass("header-section-container--unfixed")):(t(".header-section-container").removeClass("header-section-container--fixed"),t(".header-section-container").removeClass("header-section-container--unfixed"),t(".header-section-container").css("transition","none"))}setQuicklinksScrollBar(i){let e=this.getScrollPercent(i);e>100&&(e=100),this.container.style.setProperty("--quicklinks-scroll-indicator",e+"%")}getScrollPercent(i){var e=document.documentElement,s=document.body,r="scrollTop",o="scrollHeight";return(5+(e[r]||s[r])/((e[o]||s[o])-(e.clientHeight+i))*95).toFixed(2)}scrollToSiblingItem(i=!0){let e=this,s=!0,r=0;e.quicklinksList.querySelectorAll("li").forEach(function(o){s&&(r=r+o.offsetWidth,i?r>e.quicklinksWrapper.scrollLeft+e.quicklinksWrapper.offsetWidth&&(t(e.quicklinksWrapper).stop().animate({scrollLeft:r-e.quicklinksWrapper.offsetWidth+1},200),s=!1):r>e.quicklinksWrapper.scrollLeft&&(t(e.quicklinksWrapper).stop().animate({scrollLeft:o.offsetLeft-25},200),s=!1))})}checkMenuArrowsVisibility(){let i=!1,e=!1;t(this.quicklinksWrapper).width()<t(this.quicklinksList).width()&&(this.quicklinksWrapper.scrollLeft!=0?e=!0:e=!1,this.quicklinksWrapper.scrollWidth>this.quicklinksWrapper.offsetWidth&&this.quicklinksWrapper.offsetWidth+this.quicklinksWrapper.scrollLeft<=this.quicklinksWrapper.scrollWidth-5?i=!0:i=!1),t(".quicklinks-nav__next").toggleClass("active",i),t(".quicklinks-nav__prev").toggleClass("active",e)}}c.behaviors.quicklinks={attach:function(p,i){u("quicklinksInit","#header-section",p).forEach(function(e){new m(e)})}}})(jQuery,Drupal,once);
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.