1function DOMReady(callback,doc){doc=doc||document;if(doc.readyState==='interactive'||doc.readyState==='complete'){callback()}else{doc.addEventListener('DOMContentLoaded',callback)}}var ANNOUNCEMENT_CLOSE_SELECTORS=['[data-wsb-dismiss]','[data-wsb-dismiss="banner"]','[data-wsb-dismiss="popup"]','[data-announcement-close]','[data-close-announcement]','[data-testid="close"]','[aria-label="Close"]','[aria-label="close"]','[title="Close"]','[title="close"]','.announcement-close','.announcement-dismiss','.wsb-announcement-close','.gv-btn-close'];var announcementPopupState={queue:[],activeIndex:-1};var currentBannerShown=null;var ANNOUNCEMENT_STYLE_IDS={banner:'wsbms-announcements-banner-styles',popup:'wsbms-announcements-popup-styles'};var announcementsJSONCache=null;var announcementsObserver=null;var termlyBannerDismissalObserver=null;var termlyBannerDismissed=false;var ANNOUNCEMENT_VISIBILITY_STATE_KEY='wsbms.announcements.visibility.v1';var ANNOUNCEMENT_BANNER_SESSION_DISMISSED_KEY='wsbms.announcements.session.dismissed.banner.v1';var ANNOUNCEMENT_POPUP_SESSION_DISMISSED_KEY='wsbms.announcements.session.dismissed.popup.v1';var popupsAllowed=true;var termlyConsentGranted=false;var termlyPopupUnlockListenersInstalled=false;var termlyConsentListenerRef=null;var termlyPrefsBtnObserver=null;var termlyDetectionObserver=null;var termlyDetectionFallbackTimeout=null;var TERMLY_DETECTION_TIMEOUT_MS=5000;function wsbAnnouncementsDebugLog(event,data){try{console.log('[wsb-announcements] '+event,data)}catch(e){}}function stopTermlyDetection(){if(termlyDetectionObserver!==null){termlyDetectionObserver.disconnect();termlyDetectionObserver=null}if(termlyDetectionFallbackTimeout!==null){clearTimeout(termlyDetectionFallbackTimeout);termlyDetectionFallbackTimeout=null}if(termlyPrefsBtnObserver!==null){termlyPrefsBtnObserver.disconnect();termlyPrefsBtnObserver=null}}function hasTermlyStoredConsent(){try{if(typeof localStorage==='undefined'||!localStorage){return false}for(var i=0;i<localStorage.length;i++){var key=localStorage.key(i);if(key&&key.toLowerCase().indexOf('termly')!==-1){return true}}return false}catch(e){return false}}function isTermlyPresent(){if(typeof window==='undefined'){return false}if(typeof window.runWhenConsentGivenForCategory==='function'){return true}if(typeof document!=='undefined'&&document.querySelector){if(document.querySelector('script[src*="termly.io"]')){return true}if(document.querySelector('script[data-termly-config]')){return true}}if(typeof window.Termly!=='undefined'){return true}return false}function unlockPopups(){termlyConsentGranted=true;wsbAnnouncementsDebugLog('unlockPopups_called',{popupsAllowed:popupsAllowed,termlyConsentGranted:termlyConsentGranted});if(popupsAllowed){var popupContainer=getContainer('announcement-popup-container');if(popupContainer&&!popupContainer.innerHTML.trim()){if(announcementPopupState.activeIndex>=0&&announcementPopupState.queue.length>0){showPopupAtIndex(announcementPopupState.activeIndex)}else if(announcementsJSONCache&&typeof announcementsJSONCache==='object'){renderPopups(announcementsJSONCache.popups||[])}}return}popupsAllowed=true;stopTermlyDetection();if(!announcementsJSONCache||typeof announcementsJSONCache!=='object'){return}renderPopups(announcementsJSONCache.popups||[])}function applyTermlyPopupGateIfNeeded(){if(typeof window==='undefined'){return}if(isTermlyPresent()){popupsAllowed=false;wsbAnnouncementsDebugLog('applyTermlyGate_termly_detected',{popupsAllowed:false});installTermlyPopupUnlockListeners()}else{popupsAllowed=true;wsbAnnouncementsDebugLog('applyTermlyGate_no_termly',{popupsAllowed:true})}}function installTermlyPopupUnlockListeners(){if(termlyPopupUnlockListenersInstalled||typeof window==='undefined'){return}termlyPopupUnlockListenersInstalled=true;function wsbAnnouncementsOnTermlyConsentUpdated(event){var detail=event&&event.detail;wsbAnnouncementsDebugLog('TermlyConsentUpdated_received',{detail:detail});if(termlyBannerDismissalObserver!==null){wsbAnnouncementsDebugLog('TermlyConsentUpdated_dismissing_deferral',{});termlyBannerDismissalObserver.disconnect();termlyBannerDismissalObserver=null;termlyBannerDismissed=true;if(announcementsJSONCache&&typeof announcementsJSONCache==='object'){renderPopups(announcementsJSONCache.popups||[])}return}var prefsBtnPresentNow=!!(typeof document!=='undefined'&&document.getElementById&&document.getElementById('consent-banner-prefs-button'));var storedConsent=hasTermlyStoredConsent();wsbAnnouncementsDebugLog('TermlyConsentUpdated_prefsBtnPresentNow',{prefsBtnPresentNow:prefsBtnPresentNow,storedConsent:storedConsent});if(!prefsBtnPresentNow||storedConsent){termlyBannerDismissed=true}unlockPopups()}termlyConsentListenerRef=wsbAnnouncementsOnTermlyConsentUpdated;window.addEventListener('TermlyConsentUpdated',wsbAnnouncementsOnTermlyConsentUpdated);function bindPrefsButton(button){if(!button||button.__wsbAnnouncementsTermlyUnlockBound){return}button.__wsbAnnouncementsTermlyUnlockBound=true;button.addEventListener('click',function wsbAnnouncementsOnPrefsClick(){termlyBannerDismissed=true;unlockPopups()},{once:true})}var prefsBtn=document.getElementById('consent-banner-prefs-button');if(prefsBtn){bindPrefsButton(prefsBtn)}else if(typeof MutationObserver==='function'){termlyPrefsBtnObserver=new MutationObserver(function(){try{var btn=document.getElementById('consent-banner-prefs-button');if(btn){bindPrefsButton(btn);termlyPrefsBtnObserver.disconnect();termlyPrefsBtnObserver=null}}catch(e){return}});termlyPrefsBtnObserver.observe(document.documentElement||document.body,{childList:true,subtree:true})}}if(typeof window!=='undefined'&&window.__wsbAnnouncementsObserver&&typeof window.__wsbAnnouncementsObserver.disconnect==='function'){window.__wsbAnnouncementsObserver.disconnect();window.__wsbAnnouncementsObserver=null}
1function getAnnouncementRenderHtml(announcement){if(!announcement||typeof announcement.renderedHtml!=='string'){return''}return announcement.renderedHtml}function getCurrentPageId(){if(!document||!document.body||typeof document.body.getAttribute!=='function'){return''}return document.body.getAttribute('data-wsb-page-id')||''}function parseDateValue(value){if(!value||typeof value!=='string'){return null}const parsed=new Date(value);if(Number.isNaN(parsed.getTime())){return null}return parsed}function isAnnouncementWithinSchedule(announcement,now){const beginDate=parseDateValue(announcement&&announcement.beginDatetime);const endDate=parseDateValue(announcement&&announcement.endDatetime);if(beginDate&&beginDate.getTime()>now.getTime()){return false}if(endDate&&endDate.getTime()<now.getTime()){return false}return true}function isAnnouncementInScopeForPage(announcement,pageId){const showScope=announcement&&announcement.displaySettings&&announcement.displaySettings.showScope;if(!showScope||!showScope.type||showScope.type==='entire_site'){return true}if(showScope.type!=='selected_pages'){return true}if(!pageId||!showScope.selectedPages){return false}if(Array.isArray(showScope.selectedPages)){return showScope.selectedPages.indexOf(pageId)!==-1}if(typeof showScope.selectedPages==='object'){return Object.prototype.hasOwnProperty.call(showScope.selectedPages,pageId)}return false}function isMobileViewport(){if(typeof window==='undefined'){return false}if(window.matchMedia){return window.matchMedia('(max-width: 680px)').matches}return typeof window.innerWidth==='number'&&window.innerWidth<=680}function isAnnouncementVisibleForCurrentDevice(announcement){const visibleOnDevices=announcement&&announcement.displaySettings&&announcement.displaySettings.visibleOnDevices;if(!visibleOnDevices||typeof visibleOnDevices!=='object'){return true}if(isMobileViewport()){return visibleOnDevices.mobile!==false}return visibleOnDevices.desktop!==false}function hashString(str){var hash=0;for(var i=0;i<str.length;i++){hash=(hash<<5)-hash+str.charCodeAt(i);hash=hash&hash}return Math.abs(hash).toString(36)}function getAnnouncementUniqueId(announcement){if(!announcement||typeof announcement!=='object'){return''}if(typeof announcement.uuid==='string'&&announcement.uuid){return announcement.uuid}if(typeof announcement.id==='string'&&announcement.id){return announcement.id}if(typeof announcement.renderedHtml==='string'&&announcement.renderedHtml){return'html:'+hashString(announcement.renderedHtml)}return''}function readAnnouncementVisibilityState(){if(typeof window==='undefined'||!window.localStorage){return{}}try{const raw=window.localStorage.getItem(ANNOUNCEMENT_VISIBILITY_STATE_KEY);if(!raw){return{}}const parsed=JSON.parse(raw);if(!parsed||typeof parsed!=='object'){return{}}return parsed}catch(error){return{}}}function writeAnnouncementVisibilityState(state){if(typeof window==='undefined'||!window.localStorage){return}try{window.localStorage.setItem(ANNOUNCEMENT_VISIBILITY_STATE_KEY,JSON.stringify(state))}catch(error){return}}function hasAnnouncementBeenShown(announcementId){if(!announcementId){return false}const state=readAnnouncementVisibilityState();return!!(state[announcementId]&&state[announcementId].shown)}function hasAnnouncementBeenShownOnPage(announcementId,pageId){if(!announcementId||!pageId){return false}const state=readAnnouncementVisibilityState();const key=announcementId+':page:'+pageId;return!!(state[key]&&state[key].shown)}function markAnnouncementAsShown(announcement,type){const announcementId=getAnnouncementUniqueId(announcement);if(!announcementId){return}const displaySettings=announcement&&announcement.displaySettings;const showScope=displaySettings&&displaySettings.showScope;const isSelectedPages=showScope&&showScope.type==='selected_pages';const state=readAnnouncementVisibilityState();let key=announcementId;if(isSelectedPages){const pageId=getCurrentPageId();if(pageId){key=announcementId+':page:'+pageId}}state[key]={shown:true,type:type,shownAt:Date.now()};writeAnnouncementVisibilityState(state)}function markAnnouncementDismissedForSession(announcementId,type){if(!announcementId||typeof window==='undefined'||!window.sessionStorage){return}var storageKey=type==='banner'?ANNOUNCEMENT_BANNER_SESSION_DISMISSED_KEY:ANNOUNCEMENT_POPUP_SESSION_DISMISSED_KEY;try{const raw=window.sessionStorage.getItem(storageKey);const ids=raw?JSON.parse(raw):[];if(ids.indexOf(announcementId)===-1){ids.push(announcementId);window.sessionStorage.setItem(storageKey,JSON.stringify(ids))}}catch(e){}}function hasAnnouncementBeenDismissedInSession(announcementId,type){if(!announcementId||typeof window==='undefined'||!window.sessionStorage){return false}var storageKey=type==='banner'?ANNOUNCEMENT_BANNER_SESSION_DISMISSED_KEY:ANNOUNCEMENT_POPUP_SESSION_DISMISSED_KEY;try{const raw=window.sessionStorage.getItem(storageKey);if(!raw){return false}const ids=JSON.parse(raw);return Array.isArray(ids)&&ids.indexOf(announcementId)!==-1}catch(e){return false}}function isAnnouncementAllowedByVisitRule(announcement,type){const displaySettings=announcement&&announcement.displaySettings;const showOnEveryVisit=!!(displaySettings&&displaySettings.showOnEveryVisit);const showScope=displaySettings&&displaySettings.showScope;const isSelectedPages=showScope&&showScope.type==='selected_pages';const announcementId=getAnnouncementUniqueId(announcement);if(!announcementId){return true}if(hasAnnouncementBeenDismissedInSession(announcementId,type)){return false}if(showOnEveryVisit){return true}if(isSelectedPages){const pageId=getCurrentPageId();return!hasAnnouncementBeenShownOnPage(announcementId,pageId)}return!hasAnnouncementBeenShown(announcementId)}function isAnnouncementEligible(announcement,type){if(announcement&&announcement.isVisible===false){return false}
1if(!announcement||!getAnnouncementRenderHtml(announcement)){return false}const now=new Date;const pageId=getCurrentPageId();return isAnnouncementWithinSchedule(announcement,now)&&isAnnouncementInScopeForPage(announcement,pageId)&&isAnnouncementVisibleForCurrentDevice(announcement)&&isAnnouncementAllowedByVisitRule(announcement,type)}function getContainer(className){return document.querySelector('.'+className)}function extractCssFromStyleMarkup(styleMarkup){const match=styleMarkup.match(/<style[^>]*>([\s\S]*?)<\/style>/i);if(typeof styleMarkup!=='string'||!styleMarkup.trim()){return''}if(match&&typeof match[1]==='string'){return match[1]}return styleMarkup}function ensureAnnouncementStyle(styleId,styleMarkup){const cssText=extractCssFromStyleMarkup(styleMarkup);const existingStyleEl=document.getElementById(styleId);if(!cssText||!document||!document.head){return}if(existingStyleEl){if(existingStyleEl.textContent!==cssText){existingStyleEl.textContent=cssText}return}const styleEl=document.createElement('style');styleEl.id=styleId;styleEl.textContent=cssText;document.head.appendChild(styleEl)}function ensureAnnouncementStyles(styles){if(!styles||typeof styles!=='object'){return}ensureAnnouncementStyle(ANNOUNCEMENT_STYLE_IDS.banner,styles.banner);ensureAnnouncementStyle(ANNOUNCEMENT_STYLE_IDS.popup,styles.popup)}function fetchAnnouncementsJSON(url,callback){const options={method:'GET',cache:'no-cache',headers:{'Cache-Control':'no-cache'}};const cacheBustURL=url+'?t='+Date.now();const jsonRequest=new Request(cacheBustURL,options);fetch(jsonRequest).then(function(response){if(!response.ok){return Promise.reject(response)}return response.json()}).then(function(data){callback(null,data)}).catch(function(error){callback(error)})}function upgradeDeclarativeShadowDom(rootEl){try{if(!rootEl||!rootEl.querySelectorAll){return}const templates=rootEl.querySelectorAll('template[shadowrootmode]');if(!templates||!templates.length){return}
1templates.forEach(function(tpl){try{const host=tpl.parentNode;if(!host||!host.attachShadow){return}if(host.shadowRoot){tpl.remove();return}const modeAttr=tpl.getAttribute('shadowrootmode');const mode=modeAttr==='closed'?'closed':'open';const shadowRoot=host.attachShadow({mode:mode});shadowRoot.appendChild(tpl.content.cloneNode(true));tpl.remove()}catch(e){return}})}catch(e){return}}function activateAnnouncementFragment(container){if(!container){return}upgradeDeclarativeShadowDom(container)}function clearPopupContainer(container){if(!container){return}container.innerHTML='';announcementPopupState.queue=[];announcementPopupState.activeIndex=-1}function notifyAnnouncementsLayoutChange(){if(typeof window==='undefined'){return}window.requestAnimationFrame(function(){window.dispatchEvent(new Event('resize'));window.requestAnimationFrame(function(){if(!window.location.hash){window.dispatchEvent(new Event('scroll'))}})})}function renderHtml(container,html){if(!container){return}if(typeof html==='string'){container.innerHTML=html}else if(html&&typeof html.nodeType==='number'){container.innerHTML='';container.appendChild(html)}else{return}activateAnnouncementFragment(container);bindAnnouncementInteractions();notifyAnnouncementsLayoutChange()}function showPopupAtIndex(index){const container=getContainer('announcement-popup-container');if(!container){return}if(index<0||index>=announcementPopupState.queue.length){clearPopupContainer(container);return}const popup=announcementPopupState.queue[index];const popupHtml=getAnnouncementRenderHtml(popup);if(!popupHtml){clearPopupContainer(container);return}announcementPopupState.activeIndex=index;markAnnouncementAsShown(popup,'popup');renderHtml(container,popupHtml)}function closeActivePopup(){const activePopup=announcementPopupState.queue[announcementPopupState.activeIndex];if(activePopup){markAnnouncementDismissedForSession(getAnnouncementUniqueId(activePopup),'popup')}const nextIndex=announcementPopupState.activeIndex+1;if(nextIndex>=announcementPopupState.queue.length){clearPopupContainer(getContainer('announcement-popup-container'));return}showPopupAtIndex(nextIndex)}function hideBanner(container){if(!container){return}if(currentBannerShown){markAnnouncementDismissedForSession(getAnnouncementUniqueId(currentBannerShown),'banner');currentBannerShown=null}container.innerHTML='';notifyAnnouncementsLayoutChange()}function pickBannerToShow(banners){if(!Array.isArray(banners)){return null}for(const banner of banners){if(isAnnouncementEligible(banner,'banner')){return banner}}return null}function pickPopupsToShow(popups){if(!Array.isArray(popups)){return[]}return popups.filter(function(popup){return isAnnouncementEligible(popup,'popup')})}function renderBanners(banners){try{const container=getContainer('announcement-banner-container');const banner=pickBannerToShow(banners);const bannerHtml=banner&&getAnnouncementRenderHtml(banner);if(!container){return}currentBannerShown=banner||null;renderHtml(container,bannerHtml);if(banner){markAnnouncementAsShown(banner,'banner')}container.__wsbAnnouncementsInitialized=true}catch(error){return}}function renderPopups(popups){try{const container=getContainer('announcement-popup-container');const popupsToShow=pickPopupsToShow(popups);wsbAnnouncementsDebugLog('renderPopups_called',{inputCount:Array.isArray(popups)?popups.length:null,eligibleCount:Array.isArray(popupsToShow)?popupsToShow.length:null,firstEligibleId:popupsToShow&&popupsToShow[0]?getAnnouncementUniqueId(popupsToShow[0]):null,popupsAllowed:popupsAllowed,isTermlyPresent:isTermlyPresent()});if(!container){return}if(!popupsToShow.length){clearPopupContainer(container);container.__wsbAnnouncementsInitialized=true;return}if(isTermlyPresent()&&!termlyBannerDismissed&&typeof document!=='undefined'&&document.getElementById&&document.getElementById('consent-banner-prefs-button')){wsbAnnouncementsDebugLog('renderPopups_deferred_termly_banner_visible',{});if(termlyBannerDismissalObserver===null&&typeof MutationObserver==='function'){termlyBannerDismissalObserver=new MutationObserver(function(){if(!document.getElementById('consent-banner-prefs-button')){termlyBannerDismissalObserver.disconnect();termlyBannerDismissalObserver=null;termlyBannerDismissed=true;renderPopups(popups)}});termlyBannerDismissalObserver.observe(document.documentElement||document.body,{childList:true,subtree:true})}return}announcementPopupState.queue=popupsToShow;showPopupAtIndex(0);container.__wsbAnnouncementsInitialized=true}catch(error){return}}function renderAnnouncementsFromCache(){if(!announcementsJSONCache||typeof announcementsJSONCache!=='object'){return}renderBanners(announcementsJSONCache.banners||[]);if(popupsAllowed){renderPopups(announcementsJSONCache.popups||[])}}function renderBannersOnlyFromCache(){if(!announcementsJSONCache||typeof announcementsJSONCache!=='object'){return}renderBanners(announcementsJSONCache.banners||[])}function disconnectAnnouncementsObserver(){if(!announcementsObserver){return}announcementsObserver.disconnect();announcementsObserver=null;if(typeof window!=='undefined'){window.__wsbAnnouncementsObserver=null}}function ensureAnnouncementsObserver(){let hasBannerContainer;let hasPopupContainer;if(typeof MutationObserver!=='function'){return}hasBannerContainer=!!getContainer('announcement-banner-container');hasPopupContainer=!!getContainer('announcement-popup-container');if(hasBannerContainer&&hasPopupContainer){disconnectAnnouncementsObserver();return}if(announcementsObserver){return}announcementsObserver=new MutationObserver(function(){const bannerContainer=getContainer('announcement-banner-container');const popupContainer=getContainer('announcement-popup-container');const shouldRenderBanner=!!(bannerContainer&&!bannerContainer.__wsbAnnouncementsInitialized);const shouldRenderPopup=!!(popupContainer&&!popupContainer.__wsbAnnouncementsInitialized);bindAnnouncementInteractions();if(shouldRenderBanner||shouldRenderPopup){renderAnnouncementsFromCache()}if(bannerContainer&&popupContainer&&bannerContainer.__wsbAnnouncementsInitialized&&popupContainer.__wsbAnnouncementsInitialized){disconnectAnnouncementsObserver()}});announcementsObserver.observe(document.documentElement||document.body,{childList:true,subtree:true});if(typeof window!=='undefined'){window.__wsbAnnouncementsObserver=announcementsObserver}}
1function getClosestMatchingNode(path,selectors){if(!path||!path.length||!selectors||!selectors.length){return null}for(const node of path){if(!node||typeof node.matches!=='function'){continue}for(const selector of selectors){try{if(node.matches(selector)){return node}}catch(e){continue}}}return null}function getEventPath(event){const path=[];let node;if(!event){return path}if(typeof event.composedPath==='function'){return event.composedPath()}node=event.target;while(node){path.push(node);node=node.parentNode}path.push(window);return path}function findAnnouncementCloseTrigger(event,container){const path=getEventPath(event);const trigger=getClosestMatchingNode(path,ANNOUNCEMENT_CLOSE_SELECTORS);if(!trigger||!container){return null}if(container.contains&&container.contains(trigger)){return trigger}if(path.indexOf(container)!==-1){return trigger}return null}function handleBannerContainerClick(event){const container=getContainer('announcement-banner-container');const trigger=findAnnouncementCloseTrigger(event,container);if(!trigger){return}if(event&&typeof event.preventDefault==='function'){event.preventDefault()}if(event&&typeof event.stopPropagation==='function'){event.stopPropagation()}hideBanner(container)}function handlePopupContainerClick(event){const container=getContainer('announcement-popup-container');const trigger=findAnnouncementCloseTrigger(event,container);if(!trigger){return}if(event&&typeof event.preventDefault==='function'){event.preventDefault()}if(event&&typeof event.stopPropagation==='function'){event.stopPropagation()}closeActivePopup()}function bindAnnouncementInteractions(){try{const bannerContainer=getContainer('announcement-banner-container');const popupContainer=getContainer('announcement-popup-container');if(bannerContainer&&!bannerContainer.__wsbAnnouncementsBound){bannerContainer.__wsbAnnouncementsBound=true;bannerContainer.addEventListener('click',handleBannerContainerClick,true)}if(popupContainer&&!popupContainer.__wsbAnnouncementsBound){popupContainer.__wsbAnnouncementsBound=true;popupContainer.addEventListener('click',handlePopupContainerClick,true)}}catch(error){return}}function startTermlyDetection(){if(typeof MutationObserver==='function'&&typeof document!=='undefined'){termlyDetectionObserver=new MutationObserver(function(){if(isTermlyPresent()){wsbAnnouncementsDebugLog('termlyDetectionObserver_detected',{});stopTermlyDetection();applyTermlyPopupGateIfNeeded()}});termlyDetectionObserver.observe(document.documentElement||document.body,{childList:true,subtree:true})}termlyDetectionFallbackTimeout=setTimeout(function(){stopTermlyDetection();if(!popupsAllowed){popupsAllowed=true;if(announcementsJSONCache&&typeof announcementsJSONCache==='object'){renderPopups(announcementsJSONCache.popups||[])}}},TERMLY_DETECTION_TIMEOUT_MS)}function announcementsHandler(error,announcementsJSON){if(error||!announcementsJSON||typeof announcementsJSON!=='object'){return}announcementsJSONCache=announcementsJSON;ensureAnnouncementStyles(announcementsJSON.styles);if(typeof window==='undefined'){renderAnnouncementsFromCache();ensureAnnouncementsObserver();return}if(isTermlyPresent()){wsbAnnouncementsDebugLog('announcementsHandler_termly_present',{termlyConsentGranted:termlyConsentGranted,popupsAllowed:popupsAllowed});if(!termlyConsentGranted){applyTermlyPopupGateIfNeeded()}renderAnnouncementsFromCache();ensureAnnouncementsObserver();return}wsbAnnouncementsDebugLog('announcementsHandler_termly_not_present',{popupsAllowed:popupsAllowed});popupsAllowed=false;renderBannersOnlyFromCache();ensureAnnouncementsObserver();startTermlyDetection()}function loadAnnouncements(){bindAnnouncementInteractions();if(typeof window!=='undefined'){installTermlyPopupUnlockListeners();applyTermlyPopupGateIfNeeded()}fetchAnnouncementsJSON('/onewebstatic/announcements/announcements.json',announcementsHandler)}if(typeof window!=='undefined'){window.__wsbAnnouncementsCloseActivePopup=closeActivePopup;window.__wsbAnnouncementsHideBanner=function wsbAnnouncementsHideBannerFromPreview(){hideBanner(getContainer('announcement-banner-container'))};window.__wsbAnnouncementsDisposeTermlyPrefsPoll=stopTermlyDetection;window.__wsbAnnouncementsRemoveTermlyConsentListener=function(){if(termlyConsentListenerRef){window.removeEventListener('TermlyConsentUpdated',termlyConsentListenerRef);termlyConsentListenerRef=null}}}DOMReady(loadAnnouncements,window.document);
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.