1var enable_amazon_header_bidding="";var enable_pubmatic_header_bidding="1";var enable_bidcliq_header_bidding="";var enable_ad_debug_logs=new URLSearchParams(window.location.search).get("adcode_debug")==="1"?"1":"";var ad_units_slots="";let amz_slots=[];var enable_ads_on_scroll="1";var enable_header_bids_top_ads="";var enable_ad_batch_loading="1";var initial_btf_ad_slots=["gpt_ad_IE_ROS_MID_300X250","gpt_ad_IE_ROS_Ref_1x1","gpt_ad_IE_ROS_ROTATE_1_300X250","gpt_ad_IE_ROS_BTF_300X250"];var ad_batch_size=2;var ad_batch_start_delay=2e3;var ad_batch_gap_delay=1500;var ad_batch_idle_timeout=1e3;var ad_batch_scroll_delay=500;var initial_gam_request_triggered=false;var top_ad_slots=["gpt_ad_IE_ROS_ATF_728X90","gpt_ad_IE_ROS_ATF_300X250","gpt_ad_IE_ROS_LEFT_GUTTER","gpt_ad_IE_ROS_RIGHT_GUTTER","gpt_ad_IE_ROS_PROMO_SLUG_DESK","gpt_ad_IE_ROS_ATF_300X250_INARTICLE","gpt_ad_IE_ROS_ATF_300X250_INARTICLE_1","gpt_ad_IE_ROS_ATF_300X250_INARTICLE_2"];if("undefined"!==typeof ad_code_params){ad_units_slots=ad_code_params.ad_units;if("undefined"!==typeof ad_code_params.ie_enable_bidcliq&&"1"===ad_code_params.ie_enable_bidcliq){enable_bidcliq_header_bidding=ad_code_params.ie_enable_bidcliq}if("undefined"!==typeof ad_code_params.enable_amz_ads_bids&&"1"===ad_code_params.enable_amz_ads_bids){enable_amazon_header_bid
1ding=ad_code_params.enable_amz_ads_bids}}if("1"===enable_bidcliq_header_bidding){enable_pubmatic_header_bidding=""}var PWT=window.PWT||{};window.googletag=window.googletag||{};window.googletag.cmd=window.googletag.cmd||[];var googletag=window.googletag;var gptRan=false;if("1"===enable_pubmatic_header_bidding&&"1"!==enable_bidcliq_header_bidding){PWT.jsLoaded=function(){ie_load_gpt_script()};adDebugLog("Optimise Pubmatic header bidding enabled");ie_enable_pubmatic_header_bidding()}if("1"===enable_amazon_header_bidding){adDebugLog("Optimise Amazon header bidding enabled");ie_enable_amazon_header_bidding();if("undefined"!==typeof ad_units_slots&&Array.isArray(ad_units_slots)){ad_units_slots.forEach(ad=>{let sizes=ad.slot_size;if(!sizes||Array.isArray(sizes)&&0===sizes.length){adDebugLog("Skipping slot due to missing or empty sizes:",ad.slot_id);return}if(Array.isArray(sizes)&&!Array.isArray(sizes[0])){sizes=[sizes]}amz_slots.push({slotID:ad.slot_id,slotName:ad.slot_name,sizes:sizes})})}}if("1"===enable_bidcliq_header_bidding){adDebugLog("Optimise Bidcliq header bidding enabled");ie_enable_bidcliq_header_bidding()}ie_load_gpt_script();var APS_TIMEOUT=1e3;var OPENWRAP_TIMEOUT=1e3;var FAILSAFE_TIMEOUT=1e3;var get_bids_failsafe_timeouts=getAdTimeoutsAsPerNetwork();if("undefined"!==typeof get_bids_failsafe_timeouts&&undefined!==get_bids_failsafe_timeouts.aps){APS_TIMEOUT=get_bids_failsafe_timeouts.aps}if("undefined"!==typeof get_bids_failsafe_timeouts&&undefined!==get_bids_failsafe_timeouts.openwrap){OPENWRAP_TIMEOUT=get_bids_failsafe_timeouts.openwrap}
1if("1"===enable_amazon_header_bidding||"1"===enable_pubmatic_header_bidding||"1"===enable_bidcliq_header_bidding){FAILSAFE_TIMEOUT=Math.max(APS_TIMEOUT,OPENWRAP_TIMEOUT)+200}adDebugLog("Optimise Ad Timeouts:",navigator.connection?.effectiveType||"unknown",APS_TIMEOUT,OPENWRAP_TIMEOUT,FAILSAFE_TIMEOUT);adDebugLog("Optimise APS_TIMEOUT: "+APS_TIMEOUT);adDebugLog("Optimise OPENWRAP_TIMEOUT: "+OPENWRAP_TIMEOUT);adDebugLog("Optimise FAILSAFE_TIMEOUT: "+FAILSAFE_TIMEOUT);googletag.cmd.push(function(){var defined_ad_units={};var atf_ad_units=[];var othr_ad_units=[];var displayAdslots=[];var dfptargeting={};var gutterAdMapping=googletag.sizeMapping().addSize([1350,0],[[160,600]]).addSize([1280,0],[[120,600]]).addSize([0,0],[]).build();if("undefined"!==typeof ad_code_params){var ad_units=ad_code_params.ad_units}var pageAction=ad_code_params.page_action;if(0!==ad_units.length){var userType=getUserType();if(undefined!==userType&&"Premium"===userType){var notRemoveAdsSingle=["gpt_ad_IE_ROS_ATF_728X90","gpt_ad_IE_ROS_ROTATE_1_300X250","gpt_ad_IE_ROS_Ref_1x1"];if("undefined"!==typeof ieInfiniteScrollDetails&&(undefined!==ieInfiniteScrollDetails.section||undefined!==ieInfiniteScrollDetails.political_details)&&("opinion"===ieInfiniteScrollDetails.section||"columns"===ieInfiniteScrollDetails.section||"editorials"===ieInfiniteScrollDetails.section||"1"===ieInfiniteScrollDetails.political_details)){notRemoveAdsSingle=["gpt_ad_IE_ROS_ATF_728X90","gpt_ad_IE_ROS_ATF_300X250","gpt_ad_IE_ROS_Ref_1x1"]}}ad_units=addNewCommonAdUnits(ad_units);ad_units.forEach(function(ad_element){if("undefined"!==typeof notRemoveAdsSingle&&Array.isArray(notRemoveAdsSingle)){if(!notRemoveAdsSingle.includes(ad_element.slot_id)&&(0<jQuery("#"+ad_element.slot_id).length||0<jQuery('[data-id="'+ad_element.slot_id+'"]').length)&&"single"===pageAction){if(0<jQuery("#"+ad_element.slot_id).closest(".adsbox970x90").length){jQuery("#"+ad_element.slot_id).closest(".adsbox970x90").remove();if(jQuery(".breaking-news").length){jQuery(".breaking-news").addClass("loggedin-gap-ev-user")}adDebugLog("adsbox970x90")}else if(0<jQuery("#"+ad_element.slot_id).closest(".add-first").length){jQuery("#"+ad_element.slot_id).closest(".add-first").remove();adDebugLog("add-first")}else if(0<jQuery("#"+ad_element.slot_id).closest(".ie-int-campign-ad").length){jQuery("#"+ad_element.slot_id).closest(".ie-int-campign-ad").remove()}else{if("Advertisement"===jQuery("#"+ad_element.slot_id).prev(".ie-adtext").html()||"Story continues below this ad"===jQuery("#"+ad_element.slot_id).prev(".ie-adtext").html()){jQuery("#"+ad_element.slot_id).parent(".adboxtop").css("padding-bottom",0);jQuery("#"+ad_element.slot_id).parent(".adboxtop").css("min-height",0);jQuery("#"+ad_element.slot_id).prev(".ie-adtext").remove()}if(!notRemoveAdsSingle.includes("gpt_ad_IE_ROS_ATF_1X1")){if(0<jQuery(".osv-ad-class").length){jQuery(".osv-ad-class").remove()}}jQuery("#"+ad_element.slot_id).remove();adDebugLog("direct")}return}}if("Story continues below this ad"===jQuery("#"+ad_element.slot_id).prev(".ie-adtext").html()&&"Premium"!==getUserType()){var adtextElems=jQuery(".ie-adtext");var ourElem=jQuery("#"+ad_element.slot_id).prev(".ie-adtext")[0];var ad_pos_n=0;adtextElems.each(function(idx){if(this===ourElem){ad_pos_n=idx;return false}});var AdUrl="https://indianexpress.com/express-plus/subscription-plan/?pageCode=15&ref=ad_pos_"+ad_pos_n;var htmlStr='<span style="color:rgb(107,107,107);">Story continues below. </span><a href="'+AdUrl+'" style="color:#006298;text-decoration:underline;">Subscribe to see fewer ads.</a>';jQuery("#"+ad_element.slot_id).prev(".ie-adtext").html(htmlStr)}if(ad_element.slot_id&&0<jQuery("#"+ad_element.slot_id).length){displayAdslots.push(ad_element.slot_id);if("gpt_ad_IE_ROS_OOP_INNOV1"===ad_element.slot_id||"gpt_ad_IE_ROS_OOP_INNOV2"===ad_element.slot_id){defined_ad_units[ad_element.slot_id]=googletag.defineOutOfPageSlot(ad_element.slot_name,ad_element.slot_id).addService(googletag.pubads())}else if(""!==ad_element.slot_size){if("gpt_ad_IE_ROS_LEFT_GUTTER"===ad_element.slot_id||"gpt_ad_IE_ROS_RIGHT_GUTTER"===ad_element.slot_id){defined_ad_units[ad_element.slot_id]=googletag.defineSlot(ad_element.slot_name,ad_element.slot_size,ad_element.slot_id).defineSizeMapping(gutterAdMapping).addService(googletag.pubads())}else{defined_ad_units[ad_element.slot_id]=googletag.defineSlot(ad_element.slot_name,ad_element.slot_size,ad_element.slot_id).addService(googletag.pubads())}}else{defined_ad_units[ad_element.slot_id]=googletag.defineSlot(ad_element.slot_name,ad_element.slot_id).addService(googletag.pubads())}if("1"===enable_ads_on_scroll&&!top_ad_slots.includes(ad_element.slot_id)){othr_ad_units.push(ad_element.slot_id)}else{atf_ad_units.push(ad_element.slot_id)}}})}jQuery(".top-ads-mobile").css("background-color","#efefef");jQuery(".ie-adtext").css("color","#6b6b6b");
1if("undefined"!==typeof ad_code_params.articleId&&ad_code_params.articleId){var articleid=ad_code_params.articleId;var target_article_id=articleid.toString();dfptargeting["HDFCIE"]=target_article_id}if("undefined"!==typeof ad_code_params.sponsor_tagId&&ad_code_params.sponsor_tagId){var sponsor_tag_id=ad_code_params.sponsor_tagId;var target_tag_id=sponsor_tag_id.toString();dfptargeting["PROTECTSPRAY"]=target_tag_id}if("undefined"!==typeof ad_code_params.tag_slug&&ad_code_params.tag_slug){var tagSlug=ad_code_params.tag_slug;dfptargeting["Tag"]=tagSlug}googletag.setConfig({collapseDiv:"ON_NO_FILL"});dfptargeting["v"]="classifieds";if("undefined"!==typeof ad_code_params.pubarticleId&&ad_code_params.pubarticleId){var pubarticleid=ad_code_params.pubarticleId;var pub_target_article_id=pubarticleid.toString();dfptargeting["article-id"]=pub_target_article_id}if(typeof getUserType==="function"){var userType=getUserType();if(undefined!==userType){var subscriberStatus="NONSUB_USER";if("Premium"===userType){subscriberStatus="SUB_USER"}dfptargeting["subscriber"]=subscriberStatus}}googletag.setConfig({targeting:dfptargeting});(()=>{var e,o,n,t;window.ieCDPGAM=(e="ie_cdp",o=function(e){var o=document.cookie.match(new RegExp("(^| )"+e+"=([^;]+)"));return o?decodeURIComponent(o[2]):null},n=function(o,n){var t="https://ua.indianexpress.com/persona/adserve/attr?uuid="+n+"&channel="+o,a=new XMLHttpRequest;a.open("GET",t),a.timeout=700,a.responseType="json",a.onload=function(){var o=a.response;o&&(function(e,o){try{localStorage.setItem(e,JSON.stringify({v:o,exp:Date.now()+864e5}))}catch(e){}}(e,JSON.stringify(o)),window.googletag&&"function"==typeof window.googletag.pubads&&googletag.setConfig({targeting:{IEG_CDP_ATTRIBUTES:JSON.stringify(o)}}))},a.onerror=function(){},a.send(null)},t=function(t){var a=o("pluuid")||o("fpuuid");if(a&&t){var i=function(e){try{var o=JSON.parse(localStorage.getItem(e));return o?Date.now()>o.exp?(localStorage.removeItem(e),null):o.v:null}catch(o){return localStorage.removeItem(e),null}}(e);window.googletag=window.googletag||{cmd:[]},window.googletag.cmd.push(function(){i?googletag.setConfig({targeting:{IEG_CDP_ATTRIBUTES:JSON.parse(i)}}):n(t,a)})}},{init:function(e){t(e)}})})();ieCDPGAM.init(window.myExpressData&&window.myExpressData.apiData?window.myExpressData.apiData.channelId:2);googletag.setConfig({singleRequest:true});googletag.setConfig({disableInitialLoad:true});googletag.enableServices();displayAdslots.forEach(function(element){if(element&&0<jQuery("#"+element).length){googletag.display(element)}});
1if("1"===enable_amazon_header_bidding){if("undefined"!==typeof apstag&&"function"===typeof apstag.fetchBids){var auctionSlotIds=displayAdslots;if("1"===enable_header_bids_top_ads){auctionSlotIds=atf_ad_units}adDebugLog("Optimise Amazon header bidding enabled for slots: "+auctionSlotIds.join(", "));const apsSlots=amz_slots.filter(slotObj=>auctionSlotIds.includes(slotObj.slotID));apstag.fetchBids({slots:apsSlots,timeout:APS_TIMEOUT},function(bids){apstag.setDisplayBids();PWT.a9_BidsReceived=true;initAdserver(false,defined_ad_units,atf_ad_units)})}}if("1"===enable_pubmatic_header_bidding){if("undefined"!==typeof PWT&&"function"===typeof PWT.requestBids){var openWrapSlots=googletag.pubads().getSlots();if("1"===enable_header_bids_top_ads){openWrapSlots=atf_ad_units.map(function(slotId){return defined_ad_units[slotId]}).filter(Boolean)}adDebugLog("Optimise Pubmatic header bidding enabled for slots: "+openWrapSlots.map(slot=>slot.getSlotElementId()).join(", "));PWT.requestBids(PWT.generateConfForGPT(openWrapSlots),function(displayAdslots){PWT.addKeyValuePairsToGPTSlots(displayAdslots);PWT.ow_BidsReceived=true;initAdserver(false,defined_ad_units,atf_ad_units)})}}if("1"===enable_bidcliq_header_bidding){window.bqjs=window.bqjs||{que:[]};window.bqjs.que.push(function(){adDebugLog("Optimise Bidcliq header bidding request started");if("function"!==typeof window.bqjs.requestBids){PWT.bq_BidsReceived=true;adDebugLog("Optimise Bidcliq requestBids not available - continuing GAM request");initAdserver(false,defined_ad_units,atf_ad_units);return}window.bqjs.requestBids().then(function(){PWT.bq_BidsReceived=true;adDebugLog("Optimise Bidcliq header bidding bids received");initAdserver(false,defined_ad_units,atf_ad_units)}).catch(function(){PWT.bq_BidsReceived=true;adDebugLog("Optimise Bidcliq header bidding failed - continuing GAM request");initAdserver(false,defined_ad_units,atf_ad_units)})})}
1if("1"!==enable_amazon_header_bidding&&"1"!==enable_pubmatic_header_bidding&&"1"!==enable_bidcliq_header_bidding){adDebugLog("Optimise Header bidding disabled - loading GAM directly");initAdserver(false,defined_ad_units,atf_ad_units)}refresh_adcode_on_scroll(defined_ad_units,othr_ad_units);if("1"===enable_amazon_header_bidding||"1"===enable_pubmatic_header_bidding||"1"===enable_bidcliq_header_bidding){adDebugLog("Optimise Header bidding enabled - setting failsafe timeout for GAM");setTimeout(function(){initAdserver(true,defined_ad_units,atf_ad_units)},FAILSAFE_TIMEOUT)}});function initAdserver(forced,defined_ad_units,atf_ad_units){var amazonReady="1"!==enable_amazon_header_bidding||true===PWT.a9_BidsReceived;var pubmaticReady="1"!==enable_pubmatic_header_bidding||true===PWT.ow_BidsReceived;var bidcliqReady="1"!==enable_bidcliq_header_bidding||true===PWT.bq_BidsReceived;adDebugLog("Optimise Amazon header bidding ready: "+amazonReady);adDebugLog("Optimise Pubmatic header bidding ready: "+pubmaticReady);adDebugLog("Optimise Bidcliq header bidding ready: "+bidcliqReady);if(true===forced&&true!==window.initAdserverFlag||amazonReady&&pubmaticReady&&bidcliqReady){adDebugLog("Optimise Calling GPT API to load ads");if(true===window.initAdserverFlag){return}window.initAdserverFlag=true;PWT.a9_BidsReceived=false;PWT.ow_BidsReceived=false;PWT.bq_BidsReceived=false;if("1"!==enable_ads_on_scroll){googletag.pubads().refresh();return}var loadAds=[];atf_ad_units.forEach(function(container_id){if(defined_ad_units[container_id]){loadAds.push(defined_ad_units[container_id])}});if(loadAds.length){adDebugLog("Optimise ATF GAM request started:",loadAds.map(function(slot){return slot.getSlotElementId()}));googletag.pubads().refresh(loadAds);adDebugLog("Optimise ATF GAM request triggered successfully")}initial_gam_request_triggered=true;adDebugLog("Optimise Initial ATF GAM request triggered")}}function refresh_adcode_on_scroll(defined_ad_units,other_ad_units){if("1"!==enable_ads_on_scroll){return}if(!Array.isArray(other_ad_units)||!other_ad_units.length){return}var allBtfAds=[];other_ad_units.forEach(function(container_id){if(defined_ad_units[container_id]){allBtfAds.push(defined_ad_units[container_id])}});if(!allBtfAds.length){return}if("1"!==enable_ad_batch_loading){window.addEventListener("scroll",function(){function loadAllBtfAds(){if(!initial_gam_request_triggered){setTimeout(loadAllBtfAds,100);return}setTimeout(function(){googletag.cmd.push(function(){adDebugLog("Optimise Batch loading disabled - loading all BTF ads");googletag.pubads().refresh(allBtfAds)})},ad_batch_scroll_delay)}loadAllBtfAds()},{once:true,passive:true});return}var initialAds=[];var otherBtfAds=[];allBtfAds.forEach(function(slot){var slotId=slot.getSlotElementId();if(Array.isArray(initial_btf_ad_slots)&&initial_btf_ad_slots.includes(slotId)){initialAds.push(slot)}else{otherBtfAds.push(slot)}});adDebugLog("Optimise Initial BTF slots:",initialAds.map(function(slot){return slot.getSlotElementId()}));adDebugLog("Optimise Other BTF slots:",otherBtfAds.map(function(slot){return slot.getSlotElementId()}));var batchSize=parseInt(ad_batch_size,10);if(!batchSize||1>batchSize){batchSize=2}var loadedSlotIds=new Set;var initialIndex=0;var scrollIndex=0;var userScrolled=false;var isBatchLoading=false;var scrollQueueStarted=false;var scrollQueue=[];var initialBatchTimer=null;function getSlotIds(slots){return slots.map(function(slot){return slot.getSlotElementId()})}function getUnloadedSlots(slots){return slots.filter(function(slot){return!loadedSlotIds.has(slot.getSlotElementId())})}function refreshBatch(batch,mode,callback){var slotsToRefresh=getUnloadedSlots(batch);if(!slotsToRefresh.length){if("function"===typeof callback){callback()}return}isBatchLoading=true;adDebugLog("Optimise "+mode+" MODE: GAM refresh batch:",getSlotIds(slotsToRefresh));slotsToRefresh.forEach(function(slot){loadedSlotIds.add(slot.getSlotElementId())});googletag.cmd.push(function(){googletag.pubads().refresh(slotsToRefresh);isBatchLoading=false;if("function"===typeof callback){callback()}})}function loadNextInitialBatch(){if(userScrolled){adDebugLog("Optimise AUTO MODE stopped because user scrolled");return}if(isBatchLoading){initialBatchTimer=setTimeout(loadNextInitialBatch,100);return}var remainingInitialAds=getUnloadedSlots(initialAds);if(!remainingInitialAds.length){adDebugLog("Optimise AUTO MODE: All initial BTF ads loaded");return}var currentBatch=remainingInitialAds.slice(0,batchSize);
1adDebugLog("Optimise AUTO MODE: Loading initial BTF batch:",getSlotIds(currentBatch));refreshBatch(currentBatch,"AUTO",function(){if(userScrolled){startScrollQueue();return}initialBatchTimer=setTimeout(function(){if("requestIdleCallback"in window){window.requestIdleCallback(loadNextInitialBatch,{timeout:ad_batch_idle_timeout})}else{loadNextInitialBatch()}},ad_batch_gap_delay)})}function startInitialBtfLoading(){if(userScrolled){return}if(!initial_gam_request_triggered){adDebugLog("Optimise AUTO MODE waiting for initial GAM request");setTimeout(startInitialBtfLoading,100);return}if(!initialAds.length){adDebugLog("Optimise AUTO MODE: No initial BTF slots configured");return}adDebugLog("Optimise AUTO MODE: Starting initial BTF batch loading");loadNextInitialBatch()}function buildScrollQueue(){var remainingInitialAds=getUnloadedSlots(initialAds);var remainingOtherAds=getUnloadedSlots(otherBtfAds);scrollQueue=remainingInitialAds.concat(remainingOtherAds);scrollIndex=0;adDebugLog("Optimise SCROLL MODE: Queue created:",getSlotIds(scrollQueue))}function loadNextScrollBatch(){if(!userScrolled){return}if(isBatchLoading){setTimeout(loadNextScrollBatch,100);return}var remainingScrollAds=getUnloadedSlots(scrollQueue.slice(scrollIndex));if(!remainingScrollAds.length){adDebugLog("Optimise SCROLL MODE: All BTF ads loaded");return}var currentBatch=remainingScrollAds.slice(0,batchSize);currentBatch.forEach(function(slot){var slotId=slot.getSlotElementId();for(var i=scrollIndex;i<scrollQueue.length;i++){if(scrollQueue[i].getSlotElementId()===slotId){scrollIndex=i+1;break}}});adDebugLog("Optimise SCROLL MODE: Loading BTF batch:",getSlotIds(currentBatch));refreshBatch(currentBatch,"SCROLL",function(){scheduleNextScrollBatch()})}function scheduleNextScrollBatch(){if(!userScrolled){return}var remainingAds=getUnloadedSlots(scrollQueue);if(!remainingAds.length){adDebugLog("Optimise SCROLL MODE: All BTF batches completed");return}adDebugLog("Optimise SCROLL MODE:","Next batch after:",ad_batch_scroll_delay+"ms");setTimeout(function(){if("requestIdleCallback"in window){window.requestIdleCallback(function(){adDebugLog("Optimise SCROLL MODE: Browser idle - loading next batch");loadNextScrollBatch()},{timeout:ad_batch_idle_timeout})}else{loadNextScrollBatch()}},ad_batch_scroll_delay)}function startScrollQueue(){if(!userScrolled){return}if(!initial_gam_request_triggered){adDebugLog("Optimise SCROLL MODE waiting for initial GAM request");setTimeout(startScrollQueue,100);return}if(isBatchLoading){setTimeout(startScrollQueue,100);return}if(scrollQueueStarted){return}scrollQueueStarted=true;buildScrollQueue();if(!scrollQueue.length){adDebugLog("Optimise SCROLL MODE: No remaining BTF ads");return}adDebugLog("Optimise SCROLL MODE: First batch after:",ad_batch_scroll_delay+"ms");setTimeout(function(){if("requestIdleCallback"in window){window.requestIdleCallback(function(){adDebugLog("Optimise SCROLL MODE: Browser idle - loading first batch");loadNextScrollBatch()},{timeout:ad_batch_idle_timeout})}else{loadNextScrollBatch()}},ad_batch_scroll_delay)}function handleFirstScroll(){if(userScrolled){return}userScrolled=true;adDebugLog("Optimise USER SCROLLED:","Switching AUTO MODE -> SCROLL MODE");if(initialBatchTimer){clearTimeout(initialBatchTimer);initialBatchTimer=null}startScrollQueue()}window.addEventListener("scroll",handleFirstScroll,{once:true,passive:true});if("loading"!==document.readyState){setTimeout(startInitialBtfLoading,ad_batch_start_delay)}else{window.addEventListener("DOMContentLoaded",function(){setTimeout(startInitialBtfLoading,ad_batch_start_delay)},{once:true})}}function getUserSubscriptionCookie(cookieName){var nameEQ=cookieName+"=";var ca=document.cookie.split(";");var newCa=ca.length;var i=0;var c;for(i=0;i<newCa;i++){c=ca[i];while(" "===c.charAt(0)){c=c.substring(1,c.length)}if(0===c.indexOf(nameEQ)){return c.substring(nameEQ.length,c.length)}}return null}function getUserType(){let anonymusuer=getUserSubscriptionCookie("oauth_user");let userType="Anonymous";if(anonymusuer){let storedUserCookie=getUserSubscriptionCookie("ie_userdata");if(null!==storedUserCookie){storedUserCookie=JSON.parse(storedUserCookie)}if(storedUserCookie instanceof Object&&storedUserCookie.hasOwnProperty("subscription_plan")&&storedUserCookie.subscription_plan.includes("Digital Subscriber")){userType="Premium"}else{userType="Registered"}}return userType}
1function ie_enable_amazon_header_bidding(){adDebugLog("Optimise Loading Amazon script");!function(a9,a,p,s,t,A,g){if(a[a9])return;function q(c,r){a[a9]._Q.push([c,r])}a[a9]={init:function(){q("i",arguments)},fetchBids:function(){q("f",arguments)},setDisplayBids:function(){},targetingKeys:function(){return[]},_Q:[]};A=p.createElement(s);A.async=!0;A.src=t;g=p.getElementsByTagName(s)[0];g.parentNode.insertBefore(A,g)}("apstag",window,document,"script","//c.amazon-adsystem.com/aax2/apstag.js");if("undefined"!==typeof apstag&&"function"===typeof apstag.init){apstag.init({pubID:"ea69f535-72ee-47bc-ad42-cec60377d1ec",adServer:"googletag"})}}function ie_enable_pubmatic_header_bidding(){adDebugLog("Optimise Loading Pubmatic script");(function(){var purl=window.location.href;var url="//ads.pubmatic.com/AdServer/js/pwt/156021/7083";var profileVersionId="";if(purl.indexOf("pwtv=")>0){var regexp=/pwtv=(.*?)(&|$)/g;var matches=regexp.exec(purl);if(2<=matches.length&&0<matches[1].length){profileVersionId="/"+matches[1]}}var wtads=document.createElement("script");wtads.async=true;wtads.type="text/javascript";wtads.src=url+profileVersionId+"/pwt.js";var node=document.getElementsByTagName("script")[0];node.parentNode.insertBefore(wtads,node)})()}function ie_enable_bidcliq_header_bidding(){adDebugLog("Optimise Loading Bidcliq script");window.bqjs=window.bqjs||{que:[]};(function(){var bidcliqScript=document.createElement("script");bidcliqScript.async=true;bidcliqScript.type="text/javascript";bidcliqScript.src="https://8a95f4.clients.bidcliq.com/sites/0e221939-a339-41f8-86ee-0e1292d7c9ba/0e221939-a339-41f8-86ee-0e1292d7c9ba.js";var node=document.getElementsByTagName("script")[0];node.parentNode.insertBefore(bidcliqScript,node)})()}function ie_load_gpt_script(){if(!gptRan){gptRan=true;adDebugLog("Optimise Loading GPT script");var wtads=document.createElement("script");wtads.async=true;wtads.type="text/javascript";wtads.src="https://securepubads.g.doubleclick.net/tag/js/gpt.js";var node=document.getElementsByTagName("script")[0];node.parentNode.insertBefore(wtads,node)}}function getAdTimeoutsAsPerNetwork(){var connection=navigator.connection||navigator.mozConnection||navigator.webkitConnection;var networkType=connection?connection.effectiveType:"unknown";var isBelow4G=["slow-2g","2g","3g"].includes(networkType);if(isBelow4G){return{aps:1e3,openwrap:1e3}}return{aps:800,openwrap:800}}function adDebugLog(...args){if("1"===enable_ad_debug_logs){console.log(...args)}}function addNewCommonAdUnits(ad_units){const new_ad_units=[{slot_name:"/1050432/www.indianexpress.com/IE_Desk_Ref_1x1",slot_size:[1,1],slot_id:"gpt_ad_IE_ROS_Ref_1x1"}];new_ad_units.forEach(newAdUnit=>{const alreadyExists=ad_units.some(unit=>unit.slot_id===newAdUnit.slot_id);if(!alreadyExists){ad_units.push(newAdUnit);adDebugLog("Optimise New ad unit added:",newAdUnit.slot_id)}else{adDebugLog("Optimise Ad unit already exists:",newAdUnit.slot_id)}});return ad_units}
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.