1(function(){const settingsElement=document.querySelector('head > script[type="application/json"][data-drupal-selector="drupal-settings-json"], body > script[type="application/json"][data-drupal-selector="drupal-settings-json"]');window.drupalSettings={},settingsElement!==null&&(window.drupalSettings=JSON.parse(settingsElement.textContent))})(),window.Drupal={behaviors:{},locale:{}},(function(Drupal2,drupalSettings2,drupalTranslations,console2,Proxy,Reflect){Drupal2.throwError=function(error){setTimeout(()=>{throw error},0)},Drupal2.attachBehaviors=function(context,settings){context=context||document,settings=settings||drupalSettings2;const behaviors=Drupal2.behaviors;Object.keys(behaviors||{}).forEach(i=>{if(typeof behaviors[i].attach=="function")try{behaviors[i].attach(context,settings)}catch(e){Drupal2.throwError(e)}})},Drupal2.detachBehaviors=function(context,settings,trigger){context=context||document,settings=settings||drupalSettings2,trigger=trigger||"unload";const behaviors=Drupal2.behaviors;Object.keys(behaviors||{}).forEach(i=>{if(typeof behaviors[i].detach=="function")try{behaviors[i].detach(context,settings,trigger)}catch(e){Drupal2.throwError(e)}})},Drupal2.checkPlain=function(str){return str=str.toString().replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'"),str},Drupal2.formatString=function(str,args){const processedArgs={};return Object.keys(args||{}).forEach(key=>{switch(key.charAt(0)){case"@":processedArgs[key]=Drupal2.checkPlain(args[key]);break;case"!":processedArgs[key]=args[key];break;default:processedArgs[key]=Drupal2.theme("placeholder",args[key]);break}}),Drupal2.stringReplace(str,processedArgs,null)},Drupal2.stringReplace=function(str,args,keys){if(str.length===0||(Array.isArray(keys)||(keys=Object.keys(args||{}),keys.sort((a,b)=>a.length-b.length)),keys.length===0))return str;const key=keys.pop(),fragments=str.split(key);if(keys.length)for(let i=0;i<fragments.length;i++)fragments[i]=Drupal2.stringReplace(fragments[i],args,keys.slice(0));return fragments.join(args[key])},Drupal2.t=function(str,args,options){return options=options||{},options.context=options.context||"",typeof drupalTranslations!="undefined"&&drupalTranslations.strings&&drupalTranslations.strings[options.context]&&drupalTranslations.strings[options.context][str]&&(str=drupalTranslations.strings[options.context][str]),args&&(str=Drupal2.formatString(str,args)),str},Drupal2.url=function(path){return drupalSettings2.path.baseUrl+drupalSettings2.path.pathPrefix+path},Drupal2.url.toAbsolute=function(url){const urlParsingNode=document.createElement("a");try{url=decodeURIComponent(url)}catch(e){}return urlParsingNode.setAttribute("href",url),urlParsingNode.cloneNode(!1).href},Drupal2.url.isLocal=function(url){let absoluteUrl=Drupal2.url.toAbsolute(url),{protocol}=window.location;protocol==="http:"&&absoluteUrl.startsWith("https:")&&(protocol="https:");let baseUrl=`${protocol}//${window.location.host}${drupalSettings2.path.baseUrl.slice(0,-1)}`;try{absoluteUrl=decodeURIComponent(absoluteUrl)}catch(e){}try{baseUrl=decodeURIComponent(baseUrl)}catch(e){}return absoluteUrl===baseUrl||absoluteUrl.startsWith(`${baseUrl}/`)},Drupal2.formatPlural=function(count,singular,plural,args,options){args=args||{},args["@count"]=count;const pluralDelimiter=drupalSettings2.pluralDelimiter,translations=Drupal2.t(singular+pluralDelimiter+plural,args,options).split(pluralDelimiter);let index=0;return typeof drupalTranslations!="undefined"&&drupalTranslations.pluralFormula?index=count in drupalTranslations.pluralFormula?drupalTranslations.pluralFormula[count]:drupalTranslations.pluralFormula.default:args["@count"]!==1&&(index=1),translations[index]},Drupal2.encodePath=function(item){return window.encodeURIComponent(item).replace(/%2F/g,"/")},Drupal2.deprecationError=({message})=>{drupalSettings2.suppressDeprecationErrors===!1&&typeof console2!="undefined"&&console2.warn&&console2.warn(`[Deprecation] ${message}`)},Drupal2.deprecatedProperty=({target,deprecatedProperty,message})=>!Proxy||!Reflect?target:new Proxy(target,{get:(target2,key,...rest)=>(key===deprecatedProperty&&Drupal2.deprecationError({message}),Reflect.get(target2,key,...rest))}),Drupal2.theme=function(func,...args){if(func in Drupal2.theme)return Drupal2.theme[func](...args)},Drupal2.theme.placeholder=function(str){return`<em class="placeholder">${Drupal2.checkPlain(str)}</em>`},Drupal2.elementIsVisible=function(elem){return!!(elem.offsetWidth||elem.offsetHeight||elem.getClientRects().length)},Drupal2.elementIsHidden=function(elem){return!Drupal2.elementIsVisible(elem)}})(Drupal,window.drupalSettings,window.drupalTranslations,window.console,window.Proxy,window.Reflect),window.jQuery&&jQuery.noConflict(),document.documentElement.className+=" js",(function(Drupal2,drupalSettings2){(callback=>{const listener=()=>{callback(),document.removeEventListener("DOMContentLoaded",listener)};document.readyState!=="loading"?setTimeout(callback,0):document.addEventListener("DOMContentLoaded",listener)})(()=>{Drupal2.attachBehaviors(document,drupalSettings2)})})(Drupal,window.drupalSettings),(t=>{t.behaviors.cp={attach:function(t2,e){var n=e.cmp.cp.cpBaseUrl,e=e.cmp.cp.cpPropertyId,p=window,l=document,o="cp",u=void 0,d=void 0,f=void 0,c=void 0;p.CPObject=o,p.cp||(p.cp=function(){for(var t3=arguments.length,e2=new Array(t3),n2=0;n2<t3;n2++)e2[n2]=arguments[n2];var o2=e2[0],c2=e2[1],i=e2[2];if(p.cp.q||(p.cp.q=[]),u=Array.prototype.slice.call(arguments,0),!p.cp.patched){if(o2==="fatal"&&c2)p.cp.le=c2,Array.prototype.forEach.call(p.cp.q,function(t4){t4[0]==="error"&&typeof t4[1]=="function"&&t4[1](c2)});else if(o2==="error"&&typeof c2=="function")p.cp.le&&c2(p.cp.le);else if(o2==="extension"&&c2)i&&typeof i.init=="function"&&(i.init(),i.initialized=!0);else if(o2==="authenticate"&&typeof c2=="function"){try{d=(l.cookie||"").indexOf("_cpauthhint=")===-1&&!(p.localStorage||{})._cpuser&&p.location.href.toLowerCase().indexOf("cpauthenticated")===-1}catch(t4){d=!1}
1if(d){var a=c2,r=!(f={isLoggedIn:function(){return!1},hasValidSubscription:function(){return!1}}),s=function(t4,e3){r||(r=!0,a(t4,e3))};if(u[1]=s,typeof l.hasPrivateToken=="function")try{l.hasPrivateToken("https://my.contentpass.net").then(function(t4){t4||s(null,f)}).catch(function(){})}catch(t4){}else s(null,f)}}}p.cp.q.push(u)});try{0<((c=(l.cookie.split("_cpauthhint=")[1]||"").split(";")[0])?Number(c[1]):NaN)&&(l.body?l.body.classList.add("cpauthenticated"):l.addEventListener("DOMContentLoaded",function(){l.body.classList.add("cpauthenticated")}))}catch(u2){}p.cp.l=+new Date,p.cp.sv=6,cp("create",e,{baseUrl:n}),cp("render",{onFullConsent:function(){console.log("[CP] onFullConsent")}}),console.log("NOW"),o=document.createElement("script"),o.setAttribute("async",!0),o.setAttribute("fetchPriority","high"),o.setAttribute("onerror","cp('fatal', arguments)"),o.setAttribute("src",n+"/now.js"),c=document.getElementsByTagName("script")[0],c.parentNode.insertBefore(o,c),cp("authenticate",function(t3,e2){!t3&&(e2.isLoggedIn()||e2.hasValidSubscription())||
1(function t4(){window._sp_&&window._sp_.executeMessaging?window._sp_.config.isSPA?window._sp_.version?console.log("[SPCP] Sourcepoint already running"):(console.log("[SPCP] Starting Sourcepoint"),window._sp_.executeMessaging()):console.warn("[SPCP] Sourcepoint not in SPA mode!"):(console.log("[SPCP] Sourcepoint not loaded yet. Retrying."),setTimeout(t4,10))})()})}}})(Drupal,drupalSettings),(t=>{t.behaviors.cmgLoader={attach:function(t2,d){cp("authenticate",function(t3,e){e.isLoggedIn()!==!0&&((e=document.createElement("link")).setAttribute("rel","preload"),e.setAttribute("href","https://cdn.tagdeliver.com/cipt/"+d.cmp.ci.id+".js"),e.setAttribute("as","script"),document.getElementsByTagName("head")[0].appendChild(e),console.log("CI Preload loaded"))}),__tcfapi("addEventListener",2,function(t3,e){function n(){i("https://cdn.tagdeliver.com/cipt/"+d.cmp.ci.id+".js","cp-script"),console.log("CI Loaded")}function o(){var t4,e2,n2,o2,s2,c2;t4=window,e2=document,n2="script",o2="dataLayer",s2=d.cmp.gtm.code,c2="",d.cmp.gtm.auth&&d.cmp.gtm.env&&(c2=">m_auth="+d.cmp.gtm.auth+">m_preview="+d.cmp.gtm.env+">m_cookies_win=x"),t4[o2]=t4[o2]||[],t4[o2].push({"gtm.start":new Date().getTime(),event:"gtm.js"}),t4=e2.getElementsByTagName(n2)[0],(o2=e2.createElement(n2)).async=!0,o2.src="https://www.googletagmanager.com/gtm.js?id="+s2+c2,t4.parentNode.insertBefore(o2,t4),console.log("GTM Loaded")}function s(){0<d.cmp.viously.id.length&&(i("https://cdn.viously.com/js/sdk/boot.js",d.cmp.viously.id),console.log("Viously Loaded"))}function c(){0<d.cmp.jw.url.length&&(i(d.cmp.jw.url,""),console.log("JW Loaded"))}function r(){var t4=document.querySelectorAll(".cmp-sh-insert");Array.from(t4).forEach(function(t5){var e2=document.createElement("script");e2.setAttribute("src",t5.getAttribute("data-src")),e2.setAttribute("type","text/javascript"),e2.setAttribute("async","true"),e2.setAttribute("data-wid",t5.getAttribute("data-wid")),t5.parentNode.insertBefore(e2,t5),t5.classList.remove("cmp-sh-insert"),console.log("ShowHeroes loaded")})}function i(t4,e2,n2){var o2,n2=2<arguments.length&&n2!==void 0?n2:"text/javascript";document.getElementById(e2)||((o2=document.createElement("script")).async=1,o2.src=t4,o2.id=e2,o2.type=n2,(t4=document.getElementsByTagName("script")[0]).parentNode.insertBefore(o2,t4))}function a(){var t4=document.querySelectorAll("script.tp-el");Array.from(t4).forEach(function(t5){var e2;t5.getAttribute("data-src")&&((e2=document.createElement("script")).setAttribute("type","text/javascript"),e2.setAttribute("async","true"),e2.setAttribute("src",t5.getAttribute("data-src")),t5.getAttribute("id")&&e2.setAttribute("id",t5.getAttribute("id")),console.log(e2),t5.parentNode.insertBefore(e2,t5.nextSibling))}),console.log("Fixing scripts")}if(t3&&e&&(t3.eventStatus==="useractioncomplete"||t3.eventStatus==="tcloaded")){if(t3.gdprApplies){if(!t3.vendor||!t3.vendor.consents)return;t3.vendor.consents[656]&&n(),t3.vendor.consents[755]&&t3.vendor.consents[943]&&t3.vendor.consents[11]&&(o(),a()),t3.vendor.consents[1028]&&0<document.getElementsByClassName("text-article").length&&s(),t3.vendor.consents[1028]&&0<document.getElementsByClassName("text-article").length&&(c(),r())}else console.log("GDPR doesnt apply. Loading Tags..."),n(),0<document.getElementsByClassName("text-article").length&&(s(),c(),r()),o(),a();t3.listenerId&&__tcfapi("removeEventListener",2,function(){},t3.listenerId)}})}}})(Drupal,drupalSettings);function testThirdContent(r){var e;function n(){var e2,t=r.querySelector(".tp-el");t&&!t.classList.contains("processed")&&(t.classList.add("processed"),r.innerHTML=r.querySelector(".tp-el").innerHTML,(t=r.getElementsByTagName("script"))&&Array.from(t).forEach(function(e3){var t2=document.getElementsByTagName("script")[0],r2=document.createElement("script");r2.setAttribute("type","text/javascript"),r2.setAttribute("async","true"),r2.setAttribute("src",e3.getAttribute("src")),t2.parentNode.insertBefore(r2,t2)}),r.innerHTML.match(/affilizz-rendering-component/i))&&(window.affilizz?window.affilizz.render():((t=document.createElement("script")).setAttribute("src","https://app.affilizz.com/affilizz.js"),t.setAttribute("async","true"),(e2=document.getElementsByTagName("script")[0]).parentNode.insertBefore(t,e2)))}r&&((e=(r=r.parentNode).querySelector(".embed-show-trigger"))&&e.addEventListener("click",n),__tcfapi("addEventListener",2,function(e2,t){if(e2.gdprApplies){if(!e2||!t||e2.eventStatus!=="useractioncomplete"&&e2.eventStatus!=="tcloaded"||!e2.vendor||!e2.vendor.consents)return;
1e2.vendor.consents[755]&&setTimeout(n,25)}else console.log("GDPR doesnt apply. Showing Embeds..."),setTimeout(n,25);e2.listenerId&&__tcfapi("removeEventListener",2,function(){},e2.listenerId)}))}window.__ciads=window.__ciads||{cmd:[]},Drupal.behaviors.adManager={attach:function(context,settings){once("adManager","html",context).forEach(function(element){const exceptions=["racers","racer","driver","teams","teams","team","brands","brand"],dLayer=window.drupalSettings.datalayer,wLoc=window.location;let debug=!1;decodeURI(wLoc.href).match(/[?&]addebug=true/)!=null&&(debug=!0);let test="no";decodeURI(wLoc.href).match(/[?&]adtest=([^&]*)/)!=null&&(test=decodeURI(wLoc.href).match(/[?&]adtest=([^&]*)/)[1]);const brand=dLayer.brand,category=dLayer.product_category,nodeID=dLayer.node_id;let pageID=wLoc.pathname.toLowerCase(),pageType=dLayer.page_type,section0=dLayer.top_section,section1=dLayer.section;const results=wLoc.pathname.split("/");let result0=results[1],result1=results[2];pageID=pageID.slice(1),pageID.length<1&&(pageID="home"),section1||(section1=dLayer.article_type),result0||(result0="home",pageType="home"),result1||(result1="home"),result0=result0.toLowerCase(),result1=result1.toLowerCase(),result1==="home"&&(pageType="listing"),pageType==="node"&&(pageType="article"),pageType==="content listing"&&(pageType="listing"),pageID==="home"&&(pageType="front"),!dLayer.article_type&§ion0&&(pageID===section0||pageID===section0+"/"+section1||section0===section1)&&(exceptions.includes(result1)||(pageType="section")),debug&&(console.log(":: test = "+test.toLowerCase()),console.log(":: pageType = "+pageType),console.log(":: "+settings.cmp.ci.page+" = "+pageID),console.log(":: result0 = "+result0),console.log(":: result1 = "+result1),nodeID&&console.log(":: nodeid = "+nodeID),brand&&console.log(":: brand = "+brand.toLowerCase()),category&&console.log(":: category = "+category.toLowerCase())),window.__ciads.cmd.push(()=>{window.__ciads.setTargeting("test",test.toLowerCase()),window.__ciads.setTargeting("pageType",pageType),window.__ciads.setTargeting(settings.cmp.ci.page,pageID),window.__ciads.setTargeting("result0",result0),window.__ciads.setTargeting("result1",result1),nodeID&&window.__ciads.setTargeting("nodeid",nodeID),brand&&window.__ciads.setTargeting("brand",brand.toLowerCase()),category&&window.__ciads.setTargeting("category",category.toLowerCase()),debug&&console.log(":: Pushed to CI")})})}};
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.