PageSourceSearch

https://www.coffeeness.de/wp-content/cache/min/1/wp-content/themes…/js/scripts-home.js?ver=1790329583

js coffeeness.de collected 2026-09-25 19:12:11 UTC 24,275 bytes, 55 lines download raw bytes

1(function(){const CODE_MAP={de:"DE",en:"EN",es:"ES",nl:"NL",fr:"FR"};function langFromLi(li){for(const cls of li.classList){const m=/^wpml-ls-item-([a-z-]+)$/i.exec(cls);if(m)return m[1].toLowerCase()}
2return null}
3function fallbackShort(code){return(code||"").split("-")[0].toUpperCase()}
4function processContainer(root){const items=root.querySelectorAll(".wpml-ls-item");items.forEach(li=>{if(li.dataset.wpmlShortened==="1")return;const code=langFromLi(li);const short=CODE_MAP[code]||fallbackShort(code);const nativeSpan=li.querySelector(".wpml-ls-native");const a=li.querySelector("a");if(!nativeSpan||!short)return;const full=nativeSpan.textContent.trim();if(a){if(!a.getAttribute("aria-label"))a.setAttribute("aria-label",full);if(!a.getAttribute("title"))a.setAttribute("title",full)}
5nativeSpan.textContent=short;li.dataset.wpmlShortened="1"});root.classList.add("is-ready")}
6function init(){document.querySelectorAll(".wpml-ls-legacy-dropdown").forEach(processContainer);const mo=new MutationObserver(muts=>{for(const m of muts){for(const n of m.addedNodes){if(n.nodeType!==1)continue;if(n.matches(".wpml-ls-legacy-dropdown"))processContainer(n);else if(n.matches(".wpml-ls-legacy-dropdown *")){const root=n.closest(".wpml-ls-legacy-dropdown");if(root)processContainer(root)}}}});mo.observe(document.documentElement,{childList:!0,subtree:!0});setTimeout(()=>{document.querySelectorAll(".wpml-ls-legacy-dropdown:not(.is-ready)").forEach(el=>el.classList.add("is-ready"))},2000)}
7if(document.readyState==="loading"){document.addEventListener("DOMContentLoaded",init)}else{init()}})();jQuery(window).on('load',function($){if(jQuery(window).width()<576){function scrollToAnchor(hash){var target=$(hash),target=target.length?target:$('[name='+hash.slice(1)+']');if(target.length){$('html,body').animate({scrollTop:target.offset().top-70},100);return!1}}
8if(window.location.hash){scrollToAnchor(window.location.hash)}
9jQuery("a[href*=\\#]:not([href=\\#])").click(function(){if(location.pathname.replace(/^\//,'')==this.pathname.replace(/^\//,'')||location.hostname==this.hostname){scrollToAnchor(this.hash)}})}});jQuery(document).ready(function($){if($(window).width()<767){$(".wpml-ls-item-toggle").click(function(){$(".wpml-ls-legacy-dropdown .wpml-ls-sub-menu").toggle();$(".wpml-ls-legacy-dropdown .wpml-ls-sub-menu").toggleClass('active')})}
10$('#mobile-nav .parent').append('<span class="open-menu fa fa-plus"></span>');$('#mobile-nav > ul').wrap('<div class="overflow"></div>');$(window).on('load resize',function(){var vph=$(window).height()-57});var menu=$('.overflow > ul');$('.menu-icon-trigger').on('click',function(e){e.preventDefault();menu.slideToggle("fast");$(this).toggleClass('open');$(this).children().toggleClass('fa-reorder fa-remove')});$('.open-menu').on('click',function(e){e.preventDefault();$(this).prev('ul').slideToggle("fast");$(this).toggleClass('rotate')});$('.dummy--active').on('click',function(e){e.preventDefault();$(this).slideToggle("fast")});if(jQuery('.bf-slider').length){setTimeout(function(){jQuery('.black-section').slideDown(1000);jQuery(window).trigger('resize')},1000);jQuery('.fa-times').on('click',function(){jQuery('.black-section').slide
10Up(500);jQuery('.black-section-small').slideDown(500)});jQuery('.black-section-small').on('click',function(){jQuery(window).trigger('resize');jQuery('.black-section').slideDown(500);jQuery('.black-section-small').slideUp(500);$(".slick-next").trigger("click")});$('.bf-slider').slick({dots:!1,infinite:!0,speed:300,slidesToShow:4,slidesToScroll:1,autoplay:!0,autoplaySpeed:4000,responsive:[{breakpoint:1400,settings:{slidesToShow:3,slidesToScroll:1,}},{breakpoint:1000,settings:{slidesToShow:2,slidesToScroll:1}},{breakpoint:480,settings:{slidesToShow:1,slidesToScroll:1}}]})}
11$('#slider').slick({dots:!1,infinite:!0,speed:300,slidesToShow:3,slidesToScroll:1,autoplay:!1,autoplaySpeed:4000,nextArrow:'<i class="fas fa-angle-right"></i>',prevArrow:'<i class="fas fa-angle-left"></i>',responsive:[{breakpoint:992,settings:{slidesToShow:2,slidesToScroll:2}},{breakpoint:767,settings:{slidesToShow:1,slidesToScroll:1}}]});$('#slider-team').slick({dots:!1,infinite:!0,speed:300,slidesToShow:3,slidesToScroll:1,autoplay:!1,autoplaySpeed:4000,nextArrow:'<i class="fas fa-angle-right"></i>',prevArrow:'<i class="fas fa-angle-left"></i>',responsive:[{breakpoint:992,settings:{slidesToShow:2,slidesToScroll:2}},{breakpoint:767,settings:{slidesToShow:1,slidesToScroll:1}}]});$('.custom-table-horizontal-mobile').slick({dots:!0,arrows:!0,infinite:!0,speed:300,slidesToShow:1,adaptiveHeight:!0,nextArrow:'<i class="fas fa-angle-right"></i>',prevArrow:'<i class="fas fa-angle-left"></i>',slidesToScroll:1});$('#sponsors').slick({dots:!1,infinite:!0,speed:300,slidesToShow:4,slidesToScroll:1,autoplay:!0,autoplaySpeed:4000,nextArrow:'<i class="fas fa-angle-right"></i>',prevArrow:'<i class="fas fa-angle-left"></i>',responsive:[{breakpoint:1000,settings:{slidesToShow:3,slidesToScroll:1}},{breakpoint:767,settings:{slidesToShow:2,slidesToScroll:1}},{breakpoint:540,settings:{slidesToShow:1,slidesToScroll:1}}]});$('.main-menu li').mouseover(function(){if($(this).find("ul").length){$(this).css("background","url(https://www.coffeeness.de/wp-content/themes/Coffeeness/images/menu-active-black.png) no-repeat bottom center")}});$('.main-menu > li').mouseout(function(){$(this).css("background","none")});function updaterAmazonUrl(thisObj){var full_url=thisObj.attr('href');var check="&tag=coffeefinder-21";var check2="tag=";var check3="tag=kaffeesb-21";var check4="tag=kaffee054-21";var check5="tag=kaffee-sidebar-21";if(thisObj.hasClass("replacetag")){if(full_url.indexOf(check)!=-1){full_url=full_url.replace(check,'&tag=primekva-21')}
12return full_url}else if(thisObj.hasClass("compare-replace-title")){if(full_url.indexOf(check)!=-1){full_url=full_url.replace(check,'&tag=vglmaincoffee-21')}else if(full_url.indexOf(check3)!=-1){full_url=full_url.replace(check3,'&tag=vglmaincoffee-21')}else if(full_url.indexOf(check4)!=-1){full_url=full_url.replace(check4,'&tag=vglmaincoffee-21')}else if(full_url.indexOf(check5)!=-1){full_url=full_url.replace(check5,'&tag=vglmaincoffee-21')}
13return full_url}else if(thisObj.hasClass("bfasin")){if(full_url.indexOf(check)!=-1){full_url=full_url.replace(check,'?')}
14if(full_url.substr(-1)==='/'){return full_url.slice(0,-1)+'/?tag=coffprimemain-21'}else{return full_url+'&tag=coffprimemain-21'}}else{if(full_url.indexOf(check2)==-1){if(full_url.substr(-1)==='/'){return full_url.slice(0,-1)+'/?tag=coffeefinder-21'}else{return full_url+'&tag=coffeefinder-21'}}}}
15jQuery('a[href^="https://www.amazon.de"]').attr('href',function(){return updaterAmazonUrl(jQuery(this))});jQuery('a[href^="http://www.amazon.de"]').attr('href',function(){return updaterAmazonUrl(jQuery(this))});jQuery('a[href^="https://amazon.de"]').attr('href',function(){return updaterAmazonUrl(jQuery(this))});jQuery('a[href^="http://amazon.de"]').attr('href',function(){return updaterAmazonUrl(jQuery(this))});function updaterAmazonUrlES(thisObj){var full_url=thisObj.attr('href');var check="&tag=coffeefinder-21";if(full_url.indexOf(check)!=-1){full_url=full_url.replace(check,'')}
16if(full_url.substr(-1)==='/'){return full_url.slice(0,-1)+'/?tag=coffeenesses-21'}else{return full_url+'&tag=coffeenesses-21'}}
17jQuery('a[href^="https://www.amazon.es"]').attr('href',function(){return updaterAmazonUrlES(jQuery(this))});jQuery('a[href^="http://www.amazon.es"]').attr('href',function(){return updaterAmazonUrlES(jQuery(this))});jQuery('a[href^="https://amazon.es"]').attr('href',function(){return updaterAmazonUrlES(jQuery(this))});jQuery('a[href^="http://amazon.es"]').attr('href',function(){return updaterAmazonUrlES(jQuery(this))});function updaterAmazonUrlFR(thisObj){var full_url=thisObj.attr('href');var check="&tag=coffeefinder-21";if(full_url.indexOf(check)!=-1){full_url=full_url.replace(check,'')}
18if(full_url.substr(-1)==='/'){return full_url.slice(0,-1)+'/?tag=coffeenessfr-2
181'}else{return full_url+'&tag=coffeenessfr-21'}}
19jQuery('a[href^="https://www.amazon.fr"]').attr('href',function(){return updaterAmazonUrlFR(jQuery(this))});jQuery('a[href^="http://www.amazon.fr"]').attr('href',function(){return updaterAmazonUrlFR(jQuery(this))});jQuery('a[href^="https://amazon.fr"]').attr('href',function(){return updaterAmazonUrlFR(jQuery(this))});jQuery('a[href^="http://amazon.fr"]').attr('href',function(){return updaterAmazonUrlFR(jQuery(this))});function updaterAmazonUrlUK(thisObj){var full_url=thisObj.attr('href');var check="&tag=coffeefinder-21";if(full_url.indexOf(check)!=-1){full_url=full_url.replace(check,'')}
20if(full_url.substr(-1)==='/'){return full_url.slice(0,-1)+'/?tag=coffeenesscou-21'}else{return full_url+'&tag=coffeenesscou-21'}}
21jQuery('a[href^="https://www.amazon.co.uk"]').attr('href',function(){return updaterAmazonUrlUK(jQuery(this))});jQuery('a[href^="http://www.amazon.co.uk"]').attr('href',function(){return updaterAmazonUrlUK(jQuery(this))});jQuery('a[href^="https://amazon.co.uk"]').attr('href',function(){return updaterAmazonUrlUK(jQuery(this))});jQuery('a[href^="http://amazon.co.uk"]').attr('href',function(){return updaterAmazonUrlUK(jQuery(this))});$('li.no-affiliate').each(function(){var childAnchor=$(this).find('a');childAnchor.addClass('no-affiliate')});function updaterAmazonUrlUSA(thisObj){var full_url=thisObj.attr('href');var check="&tag=coffeefinder-21";if(!thisObj.hasClass("no-affiliate")){if(full_url.indexOf(check)!=-1){full_url=full_url.replace(check,'')}
22if(full_url.substr(-1)==='/'){return full_url.slice(0,-1)+'/?tag=coffeenessusa-20'}else{return full_url+'&tag=coffeenessusa-20'}}}
23jQuery('a[href^="https://www.amazon.com"]').attr('href',function(){return updaterAmazonUrlUSA(jQuery(this))});jQuery('a[href^="http://www.amazon.com"]').attr('href',function(){return updaterAmazonUrlUSA(jQuery(this))});jQuery('a[href^="https://amazon.com"]').attr('href',function(){return updaterAmazonUrlUSA(jQuery(this))});jQuery('a[href^="http://amazon.com"]').attr('href',function(){return updaterAmazonUrlUSA(jQuery(this))});function updaterAmazonUrlNL(thisObj){var full_url=thisObj.attr('href');var check="&tag=coffeefinder-21";if(full_url.indexOf(check)!=-1){full_url=full_url.replace(check,'')}
24if(full_url.substr(-1)==='/'){return full_url.slice(0,-1)+'/?tag=coffeenessnl-21'}else{return full_url+'&tag=coffeenessnl-21'}}
25jQuery('a[href^="https://www.amazon.nl"]').attr('href',function(){return updaterAmazonUrlNL(jQuery(this))});jQuery('a[href^="http://www.amazon.nl"]').attr('href',function(){return updaterAmazonUrlNL(jQuery(this))});jQuery('a[href^="https://amazon.nl"]').attr('href',function(){return updaterAmazonUrlNL(jQuery(this))});jQuery('a[href^="http://amazon.nl"]').attr('href',function(){return updaterAmazonUrlNL(jQuery(this))});jQuery('a[href^="https://www.amazon"]').attr('rel','nofollow');jQuery('a[href^="http://www.amazon"]').attr('rel','nofollow');jQuery('a[href^="https://amazon"]').attr('rel','nofollow');jQuery('a[href^="http://amazon"]').attr('rel','nofollow');jQuery('a[href^="https://partners.webmasterplan"]').attr('rel','nofollow');var btn=jQuery('#back-to-top');jQuery(window).scroll(function(){if(jQuery(window).scrollTop()>300){btn.addClass('show')}else{btn.removeClass('show')}});btn.on('click',function(e){e.preventDefault();jQuery('html, body').animate({scrollTop:0},'300')});jQuery(".search-header").on('click',function(){jQuery(".off-canvas-search-box").addClass('show');setTimeout(function(){jQuery("#search").filter(':visible').focus()},500)});jQuery(".off-canvas-btn").on('click',function(){jQuery(".off-canvas-area-wrapper").addClass('show')});jQuery(".btn-close, .off-canvas-overlay").on('click',function(){jQuery(".off-canvas-area-wrapper,.off-canvas-responsive-menu,.off-canvas-search-box").removeClass('show')})});
26/*! Coffeeness Offcanvas for Blog (CN theme) — 50% settle + strict top reset + focus clear + overflow lock */
27(function(){'use strict';const TOGGLES=['.cn-mobile-toggle','.mobile-menu-toggle-icon','.menu-toggle','.ast-mobile-menu-trigger'];function detectLang(){const htmlLang=(document.documentElement.getAttribute('lang')||'').toLowerCase();if(htmlLang){const m=htmlLang.match(/^[a-z]{2}/);if(m)return m[0]}
28const firstSeg=(location.pathname.split('/').filter(Boolean)[0]||'').toLowerCase();if(/^(en|nl|es|fr|de)$/.test(firstSeg))return firstSeg;return'de'}
29const LANG=detectLang();const I18N={de:{close:'Menü schließen',categories:'Kategorien',back:'Zurück',showIn:(label)=>label+' anzeigen'},en:{close:'Close menu',categories:'Categories',back:'Back',showIn:(label)=>'Show '+label},nl:{close:'Menu sluiten',categories:'Categorieën',back:'Terug',showIn:(label)=>'Bekijk '+label},es:{close:'Cerrar menú',categories:'Categorías',back:'Atrás',showIn:(label)=>'Ver '+label},fr:{close:'Fermer le menu',categories:'Catégories',back:'Retour',showIn:(label)=>'Afficher '+label}};const TEXT=I18N[LANG]||I18N.de;const $=(sel,root=document)=>root.querySelector(sel);const $$=(sel,root=document)=>Array.from(root.querySelectorAll(sel));const el=(tag,cls,attrs)=>{const n=document.createElement(tag);if(cls)n.className=cls;if(attrs)Object.entries(attrs).forEach(([k,v])=>n.setAttribute(k,v));return n};function iconX(){const s=el('span','icon icon-x icon-sm');s.innerHTML=`<svg viewBox="0 0 24 24" aria-hidden="true" focusable="false"><line x1="18" y1="6" x2="6"  y2="18"></line><line x1="6"  y1="6" x2="18" y2="18"></line></svg>`;return s}
30function iconChevronRight(){const s=el('span','icon icon-feather icon-feather-chevron-right');s.innerHTML=`<svg viewBox="0 0 24 24"><polyline points="9 18 15 12 9 6"/></svg>`;return s}
31function iconChevronLeft(){const s=el('span','icon icon-feather icon-feather-chevron-left');s.innerHTML=`<svg viewBox="0 0 24 24"><polyline points="15 18 9 12 15 6"/></svg>`;return s}
32function findPrimaryMenu(){const header=$('#site-header')||$('header')||document.body;const explicit=header.querySelector('.cn-menu');if(explicit)return explicit;const uls=$$('ul',header).filter(u=>u.querySelectorAll('li.menu-item').length);if(!uls.length)return null;uls.sort((a,b)=>b.querySelectorAll('li.menu-item').length-a.querySelectorAll('li.menu-item').length);return uls[0]}
33let oc=null,backdrop=null,bodyEl=null,containerEl=null,trackEl=null,rootPanel=null,overlayPanel=null;let hasOpenedOnce=!1,lastActiveEl=null,hideBarTimeout=null,currentPanel='root',settleTimer=null;function getScrollers(){const ocRoot=document.querySelector('.coffeeness-offcanvas');return[ocRoot?.querySelector('.coffeeness-offcanvas-body'),ocRoot?.querySelector('.coffeeness-offcanvas-container')].filter(Boolean)}
34function resetAllY(){getScrollers().forEach(el=>{el.scrollTop=0})}
35function overflowFor(panel){const scrollers=getScrollers();if(!scrollers.length)return;const needs=panel.scrollHeight>scrollers[0].clientHeight+1;scrollers.forEach(el=>{el.style.overflowY=needs?'auto':'hidden'})}
36function ensureOverflowStable(panel){overflowFor(panel);requestAnimationFrame(()=>overflowFor(panel));setTimeout(()=>overflowFor(panel),80)}
37function clearFocusInsideOC(simulateClick=!1){if(!oc)return;const ae=document.activeElement;if(ae&&oc.contains(ae))ae.blur();oc.querySelectorAll('.is-focused, .is-active').forEach(n=>n.classList.remove('is-focused','is-active'));if(simulateClick){const ghost=el('button','cn-ghost-reset',{type:'button',style:'position:absolute;width:0;height:0;padding:0;border:0;opacity:0;pointer-events:none;'});oc.appendChild(ghost);ghost.click();ghost.focus();ghost.blur();oc.removeChild(ghost)}}
38function bindScrollerTopLock(){getScrollers().forEach(sc=>{sc.addEventListener('scroll',()=>{if(currentPanel==='root'&&sc.scrollTop<=0){ensureOverflowStable(rootPanel)}},{passive:!0})})}
39function ensureOffcanvas(){if(oc)return;backdrop=el('div','coffeeness-backdrop');oc=el('div','coffeeness-offcanvas',{'role':'dialog','aria-modal'
39:'true','id':'coffeeness-offcanvas'});const head=el('div','coffeeness-offcanvas-header');const closeBtn=el('button','coffeeness-offcanvas-close js-coffeeness-close',{'aria-label':TEXT.close});closeBtn.appendChild(iconX());closeBtn.insertAdjacentText('beforeend',' '+TEXT.close);head.appendChild(closeBtn);oc.appendChild(head);bodyEl=el('div','coffeeness-offcanvas-body');containerEl=el('div','coffeeness-offcanvas-container',{tabindex:"-1"});trackEl=el('div','coffeeness-track');rootPanel=el('div','coffeeness-panel coffeeness-root-panel');overlayPanel=el('div','coffeeness-panel coffeeness-overlay-panel');trackEl.appendChild(rootPanel);trackEl.appendChild(overlayPanel);containerEl.appendChild(trackEl);bodyEl.appendChild(containerEl);oc.appendChild(bodyEl);document.body.appendChild(backdrop);document.body.appendChild(oc);closeBtn.addEventListener('click',closeOC);backdrop.addEventListener('click',closeOC);containerEl.addEventListener('scroll',function(){if(!oc||!oc.classList.contains('show'))return;clearTimeout(settleTimer);settleTimer=setTimeout(()=>{const w=panelWidth();const x=containerEl.scrollLeft;const mid=w*0.5;const epsilon=Math.max(8,w*0.02);if(x<=(mid-epsilon)&&currentPanel!=='root'){currentPanel='root';resetAllY();ensureOverflowStable(rootPanel);clearFocusInsideOC(!0)}else if(x>=(mid+epsilon)&&currentPanel!=='overlay'){currentPanel='overlay';resetAllY();ensureOverflowStable(overlayPanel);clearFocusInsideOC(!0)}},100)},{passive:!0});window.addEventListener('resize',()=>{syncHeights();ensureOverflowStable(currentPanel==='root'?rootPanel:overlayPanel)});document.addEventListener('keydown',(e)=>{if(!oc||!oc.classList.contains('show'))return;if(e.key==='Escape'){e.preventDefault();closeOC()}
40if(e.key==='ArrowLeft'&&containerEl.scrollLeft>0){e.preventDefault();closeSection()}});bindScrollerTopLock()}
41function buildRoot(){const primary=findPrimaryMenu();const topLis=primary?$$('.menu-item',primary).filter(li=>li.parentElement===primary):[];const headline=(label)=>{const h=el('div','coffeeness-offcanvas-headline');h.textContent=label;return h};const makeList=()=>el('ul','list-unstyled coffeeness-offcanvas-list');rootPanel.innerHTML='';rootPanel.appendChild(headline(TEXT.categories));const list=makeList();topLis.forEach(li=>{const a=$(':scope > a',li);const hasChildren=li.classList.contains('menu-item-has-children');const liOut=el('li','coffeeness-offcanvas-list-item');const link=el('a','coffeeness-offcanvas-link nav-item nav-link'+(hasChildren?' js-coffeeness-section':''),{href:a?a.href:'#',title:a?a.textContent.trim():''});const name=el('span','nav-link-container',{itemprop:'name'});name.textContent=a?a.textContent.trim():'Category';link.appendChild(name);if(hasChildren){const ico=el('span','coffeeness-offcanvas-link-icon');ico.appendChild(iconChevronRight());link.appendChild(ico);link.addEventListener('click',(e)=>{e.preventDefault();openSection(li,a?a.textContent.trim():'Category',a?a.href:'#')})}
42liOut.appendChild(link);list.appendChild(liOut)});rootPanel.appendChild(list);currentPanel='root';containerEl.scrollLeft=0;containerEl.style.overflowX=hasOpenedOnce?'auto':'hidden';resetAllY();syncHeights();ensureOverflowStable(rootPanel);clearFocusInsideOC(!0)}
43function openSection(parentLi,label,parentHref){overlayPanel.innerHTML='';const headLink=el('a','nav-item nav-link coffeeness-offcanvas-headline',{href:parentHref,itemprop:'url'});const headSpan=el('span',null,{itemprop:'name'});headSpan.textContent=label;headLink.appendChild(headSpan);overlayPanel.appendChild(headLink);const back=el('a','nav-item nav-link coffeeness-offcanvas-link is-back-link',{href:'#',title:TEXT.back,itemprop:'url'});const backIcon=el('span','coffeeness-offcanvas-link-icon');backIcon.appendChild(iconChevronLeft());back.appendChild(backIcon);back.appendChild(document.createTextNode(' '+TEXT.back));back.addEventListener('click',(e)=>{e.preventDefault();closeSection()});overlayPanel.appendChild(back);const list=el('ul','list-unstyled coffeeness-offcanvas-list');const liShow=el('li','coffeeness-offcanvas-list-item');const aShow=el('a','nav-item nav-link coffeeness-offcanvas-link is-current-category',{href:parentHref,title:label,itemprop:'url'});const spanShow=el('span','nav-link-container',{itemprop:'name'});spanShow.textContent=TEXT.showIn(label);aShow.appendChild(spanShow);liShow.appendChild(aShow);list.appendChild(liShow);const submenu=$(':scope > .sub-menu',parentLi);const kids=submenu?$$('.menu-item',submenu):[];kids.forEach(li=>{const a=$(':scope > a',li);const liOut=el('li','coffeeness-offcanvas-list-item');const aOut=el('a','coffeeness-offcanvas-link nav-item nav-link',{href:a?a.href:'#',title:a?a.textContent.trim():''});const span=el('span','nav-link-container',{itemprop:'name'});span.textContent=a?a.textContent.trim():'Subcategory';aOut.appendChild(span);liOut.appendChild(aOut);list.appendChild(liOut)});overlayPanel.appendChild(list);hasOpenedOnce=!0;currentPanel='overlay';resetAllY();clearFocusInsideOC(!0);
43animateScrollTo(panelWidth(),450,()=>{containerEl.style.overflowX='auto';ensureOverflowStable(overlayPanel)})}
44function closeSection(){currentPanel='root';resetAllY();clearFocusInsideOC(!0);animateScrollTo(0,450,()=>{containerEl.style.overflowX=hasOpenedOnce?'auto':'hidden';ensureOverflowStable(rootPanel)})}
45function panelWidth(){return containerEl.clientWidth}
46function syncHeights(){const hRoot=rootPanel.scrollHeight;const hOver=overlayPanel.scrollHeight;const minH=Math.max(hRoot,hOver,320);rootPanel.style.minHeight=minH+'px';overlayPanel.style.minHeight=minH+'px';containerEl.style.minHeight=minH+'px'}
47function showScrollbarTemporarily(delay=700){clearTimeout(hideBarTimeout);hideBarTimeout=setTimeout(()=>getScrollers().forEach(el=>el.classList.remove('show-scrollbar')),delay)}
48function animateScrollTo(targetLeft,duration=450,onDone){const prefersReduced=window.matchMedia('(prefers-reduced-motion: reduce)').matches;const start=containerEl.scrollLeft;const delta=targetLeft-start;containerEl.style.overflowX='hidden';if(delta===0){onDone&&onDone();return}
49if(prefersReduced){containerEl.scrollLeft=targetLeft;setTimeout(()=>onDone&&onDone(),16);return}
50const startTime=performance.now();const easeOutCubic=(t)=>1-Math.pow(1-t,3);function step(now){const t=Math.min(1,(now-startTime)/duration);containerEl.scrollLeft=start+delta*easeOutCubic(t);if(t<1)requestAnimationFrame(step);else onDone&&onDone()}
51requestAnimationFrame(step)}
52function openOC(){ensureOffcanvas();buildRoot();lastActiveEl=document.activeElement;oc.querySelector('.coffeeness-offcanvas-close')?.focus();backdrop.classList.add('show');oc.classList.add('show');document.body.classList.add('coffeeness-body-lock');const tgl=document.querySelector(TOGGLES.join(','));tgl&&tgl.setAttribute('aria-expanded','true')}
53function closeOC(){backdrop.classList.remove('show');oc.classList.remove('show');document.body.classList.remove('coffeeness-body-lock');containerEl.scrollLeft=0;hasOpenedOnce=!1;resetAllY();clearFocusInsideOC(!0);if(lastActiveEl&&document.contains(lastActiveEl))lastActiveEl.focus();const tgl=document.querySelector(TOGGLES.join(','));tgl&&tgl.setAttribute('aria-expanded','false')}
54document.addEventListener('click',function(e){const isToggle=TOGGLES.some(sel=>e.target.closest(sel));const isClose=e.target.closest('.js-coffeeness-close');if(isClose){e.preventDefault();closeOC();return}
55if(isToggle){e.preventDefault();e.stopPropagation();e.stopImmediatePropagation();openOC()}},!0)})();(function(){const trigger=document.querySelector('.cn-search-trigger');const overlay=document.getElementById('cn-search-overlay');const closeBtn=overlay?.querySelector('.cn-search-close');const input=overlay?.querySelector('#cn-s-overlay');if(!trigger||!overlay||!closeBtn||!input)return;const open=()=>{overlay.classList.add('is-open');document.body.classList.add('cn-no-scroll');overlay.setAttribute('aria-hidden','false');trigger.setAttribute('aria-expanded','true');setTimeout(()=>input.focus(),10)};const close=()=>{overlay.classList.remove('is-open');document.body.classList.remove('cn-no-scroll');overlay.setAttribute('aria-hidden','true');trigger.setAttribute('aria-expanded','false');trigger.focus()};trigger.addEventListener('click',open);closeBtn.addEventListener('click',close);overlay.addEventListener('click',(e)=>{if(e.target===overlay)close()});document.addEventListener('keydown',(e)=>{if(e.key==='Escape'&&overlay.classList.contains('is-open'))close()})})()

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.