window.adsconfig={};window.Times=window.Times||{};window.Times.pageLoadAdsArr=window.Times.pageLoadAdsArr||{};window.CPD={};window.CPD.slots=[];window._dfpObj={};window._dfpObj.intCap=[1,6,11];window._dfpObj.intSessionDuration=4*60;window._dfpObj.interstitialTimer=15;window._dfpObj.excludeHB=["toi_test_mrec","toi_mweb_hp_int","toi_mweb_hp_pt_atf","toi_hp_new_atf_300"];window._dfpObj.customInterstitialAdCode="/7176/TOI_MWeb/TOI_MWeb_Home/TOI_HP_Google_Mweb_Interstitial";window._dfpObj.exclueRefresh=["toi_test_mrec","toi_hp_new_atf_300","toi_hp_nw_atf_300"]; window._dfpObj.lazyLoadEnabledSlots=["eoa_btf","mrec1","mrec2","mrec3","mrec4","Mrec_1","Mrec_2","Mrec_3","Mrec_4","TOI_ROS_Mid2_LIVBLG_Group_300","TOI_ROS_RHS_Sticky_LIVBLG_Group_300","mid1","mid2","mid3","mid4","btf","btf1","btf2","btf3","mtf","mtf1","mtf2","mtf3"];window._dfpObj.excludeDefineSlots=["toi_ros_as_mrec2_300","toi_ros_as_mrec3_300","toi_ros_as_mrec4_300","toi_ros_as_mrec5_300","toi_mweb_edu_mrec1","toi_mweb_edu_mrec2","toi_mweb_edu_mrec3","toi_mweb_edu_mrec4","ros_out_1x1","toi_ros_out_1x1_nominitv","toi_mweb_ros_nohb_widget","toi_ros_out_1x1_withminitvembedonly","toi_mweb_ros_mrec1","toi_mweb_ros_mrec2","toi_mweb_ros_mrec3","toi_mweb_ros_mrec4","toi_mweb_ros_mrec5","toi_mweb_ros_as_mrec_inf"]; window._dfpObj.expectedOrder=["_masthead","atf","atf_300","atf_as_300","atf_city_300","atf_ind_300","atf_bus_300","atf_spo_cri_300","atf_spo_300","atf_hom_edu_al_300","mrec","fbn","innov1","atf_728","atf_livblg_group_728","atf_as_728","atf_city_728","atf_ind_728","atf_bus_728","atf_spo_cri_728","atf_spo_728","atf_hom_edu_al_728","atf_livblg_group_300","atf_nw_as_728","atf_nw_as_300"];window._dfpObj.executeAfterFirstADCall=[];window._dfpObj.isNewGAMAd=window.location.pathname.indexOf("/world/")>-1||window.location.pathname.indexOf("/business/")>-1; window._dfpObj.observerConfig={root:null,rootMargin:"500px",threshold:0.1};window._dfpObj.hbTAM=1;window._dfpObj.hbPWT=1;window._dfpObj.innovHardRefresh=1;if(window.location.pathname.indexOf("/astrology/")>-1){window._dfpObj.hbTAM=0;window._dfpObj.hbPWT=1}try{document.domain=window.location.href.indexOf("timesofindia.com")!==-1?"timesofindia.com":"indiatimes.com"}catch(err){console.log(err)}window._dfpObj.isWorld=window.location.pathname.indexOf("/world/");window._dfpObj.isPerpetualNewAd=window.location.pathname.indexOf("/india/")>-1||window.location.pathname.indexOf("/world/")>-1||window.location.pathname.indexOf("/city/")>-1||window.location.pathname.indexOf("/sports/")>-1||window.location.pathname.indexOf("/business/")>-1||window.location.pathname.indexOf("/education/")>-1||window.location.pathname.indexOf("/auto/")>-1||window.location.pathname.indexOf("/astrology/")>-1; window._dfpObj.lazyLoadSlots={};window._dfpObj._til_processedSlots=[];window._dfpObj._pendingForDisplay=[];window._dfpObj._pendingForDisplayCPD=[];window._dfpObj.mWebROSMapping={atf:"/7176/TOI_MWeb/TOI_MWeb_ROS/TOI_MWeb_ROS_ATF_P1",mrec:"/7176/TOI_MWeb/TOI_MWeb_ROS/TOI_MWeb_ROS_MREC_P1",mrec1:"/7176/TOI_MWeb/TOI_MWeb_ROS/TOI_MWeb_ROS_MREC1_P1",mrec2:"/7176/TOI_MWeb/TOI_MWeb_ROS/TOI_MWeb_ROS_MREC2_P1",mrec3:"/7176/TOI_MWeb/TOI_MWeb_ROS/TOI_MWeb_ROS_MREC3_P1",mrec4:"/7176/TOI_MWeb/TOI_MWeb_ROS/TOI_MWeb_ROS_MREC4_P1",mrec5:"/7176/TOI_MWeb/TOI_MWeb_ROS/TOI_MWeb_ROS_MREC5_P1"}; window._dfpObj.webROSMapping={masthead:"/7176/TOI/TOI_ROS/TOI_ROS_AS/TOI_ROS_AS_ATF_728_P1",atf:"/7176/TOI/TOI_ROS/TOI_ROS_AS/TOI_ROS_AS_ATF_300_P1",mrec:"/7176/TOI/TOI_ROS/TOI_ROS_AS/TOI_ROS_AS_Mrec_300_P1",mrec1:"/7176/TOI/TOI_ROS/TOI_ROS_AS/TOI_ROS_AS_Mrec1_300_P1",mrec2:"/7176/TOI/TOI_ROS/TOI_ROS_AS/TOI_ROS_AS_Mrec2_300_P1",mrec3:"/7176/TOI/TOI_ROS/TOI_ROS_AS/TOI_ROS_AS_Mrec3_300_P1",mrec4:"/7176/TOI/TOI_ROS/TOI_ROS_AS/TOI_ROS_AS_Mrec4_300_P1",mrec5:"/7176/TOI/TOI_ROS/TOI_ROS_AS/TOI_ROS_AS_Mrec5_300_P1"}; try{window.adsconfig=eval({minitv:{platform:["web","mweb"],templatename:[],countries:[],dynupdateObj:[],inpageType:"inPage",status:"1",sticky:true,loadstate:"expanded",agency:"customMiniTv",hl:"Emma Stone, Zendaya, Ryan Gosling shine on Oscars 2024 red carpet",isCloseOnVideoEnd:"0",isSponsoredVideo:"1",loadevent:"onscroll",marker:"Now Playing",pagename:"",shareUrl:"https://timesofindia.indiatimes.com/videos/entertainment/english/emma-stone-zendaya-ryan-gosling-shine-on-oscars-2024-red-carpet/videoshow/108387997.cms",skipAds:"0",videoId:"1xs38719k6",videoInloop:"1",rosloadevent:"onload",imageid:"108389548",checkpageconfig:true,loadeventVal:1000,closeTimeout:15,metakeywords:"TOI , TOI orignal, TOI Orignal Videos, TOI exclusive content, Latest News, Breaking News, Bollywood, Sports, Business and Political News | Times of India",bl:"0",sectionName:"minitv",redirectionType:"videoshow",sponsorshipConfig1:{condition:["inpagemwebhome_usus","inpagemwebhome"],imagewidth:"400",imageid:"107291343",link:"https://www.nexaexperience.com/grand-vitara?utm_source=ET_GV_RB1_UnionB&utm_medium=cpm&utm_content=miniTV"}},InlineInterstitial:{Frequency_no:2,Initial_position:2},revenue_section:{name:"hide_custom_caimpaign",hyp1Vals:["ProductManagement","DigitalMarketing","IT","CXO","DigitalTransformation","MSBA","Healthcare","StrategicManagement","DataAnalytics","HRM","PublicPolicy","MBA","Emeritus","Operations","Leadership","HDFC"]},global_config:{utmBasedAdCodePrefix:[{caimpaign:"np",prefix:"NWP_Oppo",source:"oppo"},{prefix:"NWP_Vivo",source:"vivo",caimpaign:"np"}],adsRules:[null,null],minitvDelay:3000,isHeaderV2:false},webInterstitial:{countries:["_TEST_","IN"],ros:{countries:["_TEST_"],show_count:1},show_count:3,cookExpireInhours:1}}); window.toiplus_site_settings=eval({allowedSurvicateSections:["life-style"],isFBCampaignActive:false,isGoogleCampaignActive:false,isSurvicateActive:true});window.CPD={slots:[],HP:[],ROS:[],isATF_HP:"",isATF_ROS:"",isMREC_HP_WEB:0,isMREC_ROS_WEB:0,isMREC_HP_mWEB:0,isMREC_ROS_mWEB:0,isBottomOverlay_HP_mWEB:0,isBottomOverlay_ROS_mWEB:0,isTopBanner_HP_mWEB:0,isTopBanner_ROS_mWEB:0,isBillboard_HP_WEB:0,isBillboard_ROS_WEB:0,isSkin_HP_WEB:0,isSkin_ROS_WEB:0,packageID:[],reachCountEnable:true};window.adsconfig.taboolaPublisherID="timesinternetlimited-timesofindia" }catch(e){}var upskill=["ProductManagement","DigitalMarketing","IT","CXO","DigitalTransformation","MSBA","Healthcare","StrategicManagement","DataAnalytics","HRM","PublicPolicy","MBA","Emeritus","Operations","Leadership"];window._dfpObj.removeDiv=function(b){var c=document.getElementsByClassName(b);try{while(c.length>0){if(c[0].parentNode.firstChild!==c[0]||c[0].parentNode.lastChild!==c[0]||c[0].previousSibling||c[0].nextSibling){c[0].parentNode.removeChild(c[0])}else{c[0].parentNode.remove()}}}catch(a){console.error(a) }};window._dfpObj._excludeDefineSlot=function(c,b){var h=c.lastIndexOf("/");var a=c.substring(h+1);if(window.Times.hasOwnProperty("adsKeys")&&window.Times.adsKeys.hasOwnProperty("Hyp1")&&upskill.indexOf(window.Times.adsKeys.Hyp1)>-1&&window._dfpObj.excludeDefineSlots.indexOf(a.toLowerCase())>-1){try{var g=document.getElementById(b);if(g){var f=g.closest('[id*="custom_ad_wrapper_"], [id*="custom_ad_"], .paisa-wrapper');if(f){f.remove()}}}catch(d){console.log(d)}return true}else{return false}};window.Times.pageLoadAdsArr1x1=[]; window.Times.pageLoadAdsArr=window.pageLoadAdsArr||[];window._dfpObj._createGutterFailoverElement=function(){if(document.body&&document.getElementById("TOI_appgutter_left")===null){var a=document.createElement("div");a.className="appgutter";a.innerHTML+=""; a.innerHTML+='
';document.body.prepend(a)}};_updateArr=function(h){var a=0;if(h===undefined){h=[]}var m=document.querySelectorAll("[data-fbnslotname]");if(m.length>0){var j=m[0];if(j.getAttribute("data-fbnslotname")){j.setAttribute("data-adsSlot",j.getAttribute("data-fbnslotname"))}if(j.getAttribute("data-idslot")){j.setAttribute("id",j.getAttribute("data-idslot"))}document.querySelector(".fbnbtfslot").classList.remove("hide"); j.removeAttribute("data-fbnslotname")}var n=document.querySelectorAll("[data-adsSlot],[data-adsslot],[data-value]:not([data-fallback-ad-for])");if(n.length===0){return h}for(var f=0;f-1){d.failover=[{adCode:"/7176/TOI/TOI_ROS/TOI_ROS_Sticky_LHS_125",size:[[125,600],[160,600],[120,600]],divId:"TOI_appgutter_left",perpetualRefresh:1},{adCode:"/7176/TOI/TOI_ROS/TOI_ROS_Sticky_RHS_125",size:[[125,600],[160,600],[120,600]],divId:"TOI_appgutter_right",perpetualRefresh:1}]; if(window.location.host.indexOf("photogallery.indiatimes.com")>-1||window.location.host.indexOf("toidev8021")>-1){d.failover=[{adCode:"/7176/Etimes_web/Etimes_Photo/Etimes_ROS_PHOTO_Sticky_160",size:[[125,600],[160,600],[120,600]],divId:"TOI_appgutter_left",perpetualRefresh:1},{adCode:"/7176/Etimes_web/Etimes_Photo/Etimes_ROS_PHOTO_Sticky_160",size:[[125,600],[160,600],[120,600]],divId:"TOI_appgutter_right",perpetualRefresh:1}]}}if(g.indexOf("1x1")>0){window.Times.pageLoadAdsArr1x1.push(d)}else{h.push(d) }n[f].setAttribute("id",k);n[f].removeAttribute("data-ads");n[f].removeAttribute("data-adsSlot");n[f].removeAttribute("data-adsslot");n[f].removeAttribute("data-value")}return h};window.buildAdsAj=function(a){window.googletag.cmd.push(function(){window.displayAllAdsInArray()})};window._dfpObj.loadTAM=function(){!function(f,c,k,h,d,b,i){if(c[f]){return}function j(g,a){c[f]._Q.push([g,a])}c[f]={init:function(){j("i",arguments)},fetchBids:function(){j("f",arguments)},setDisplayBids:function(){},targetingKeys:function(){return[] },_Q:[]};b=k.createElement(h);b.async=!0;b.src=d;i=k.getElementsByTagName(h)[0];i.parentNode.insertBefore(b,i)}("apstag",window,document,"script","https://c.amazon-adsystem.com/aax2/apstag.js");apstag.init({pubID:"5025",adServer:"googletag",bidTimeout:1000,simplerGPT:true})};window._dfpObj.loadTAM();window._dfpObj.createKeyValueObj=function(){var k=(typeof toiprops!="undefined"&&toiprops.hasOwnProperty("_Tmpl_pg")&&typeof toiprops._Tmpl_pg!="undefined")?toiprops._Tmpl_pg:"";var w=(typeof _PGT_pg!="undefined")?_PGT_pg:((typeof toiprops!="undefined"&&toiprops.hasOwnProperty("_PGT_pg")&&typeof toiprops._PGT_pg!="undefined")?toiprops._PGT_pg:undefined); var s=(typeof toiprops!="undefined"&&toiprops.hasOwnProperty("_BL_pg")&&typeof toiprops._BL_pg!="undefined")?1:0;var g=(typeof toiprops!="undefined"&&toiprops.hasOwnProperty("_Tmpl_SCN")&&typeof toiprops._Tmpl_SCN!="undefined")?toiprops._Tmpl_SCN:undefined;var r=document.getElementsByTagName("meta")["keywords"]?document.getElementsByTagName("meta")["keywords"].getAttribute("content"):"";var d=(typeof toiprops!="undefined"&&toiprops.hasOwnProperty("_MetaKey_pg")&&typeof toiprops._MetaKey_pg!="undefined")?toiprops._MetaKey_pg:r; var v=document.cookie.match(new RegExp("prc=([^#]+)"));var u=parseInt((v&&v[1])?v[1]:0);var t=[0,2,6,7];var c=(t.indexOf(u)>-1)?true:false;var n=(typeof toiprops!="undefined"&&toiprops.hasOwnProperty("msid")&&typeof toiprops.msid!="undefined")?toiprops.msid:undefined;var p=(typeof toiprops!="undefined"&&toiprops.hasOwnProperty("hyp1")&&typeof toiprops.hyp1!="undefined")?toiprops.hyp1:undefined;var F=(typeof toiprops!="undefined"&&toiprops.hasOwnProperty("_Channel")&&typeof toiprops._Channel!="undefined")?toiprops._Channel:undefined; var h=(typeof toiprops!="undefined"&&toiprops.hasOwnProperty("_SCN")&&typeof toiprops._SCN!="undefined")?toiprops._SCN:"";var l=(typeof toiprops!="undefined"&&toiprops.hasOwnProperty("_SubSCNs")&&typeof toiprops._SubSCNs!="undefined")?toiprops._SubSCNs:"";var C=(typeof toiprops!="undefined"&&toiprops.hasOwnProperty("_LastSubSCN")&&typeof toiprops._LastSubSCN!="undefined")?toiprops._LastSubSCN:"";var b=(typeof toiprops!="undefined"&&toiprops.hasOwnProperty("_LastSubSCN_Child_1")&&typeof toiprops._LastSubSCN_Child_1!="undefined")?toiprops._LastSubSCN_Child_1:""; var a=(typeof toiprops!="undefined"&&toiprops.hasOwnProperty("_LastSubSCN_Child_2")&&typeof toiprops._LastSubSCN_Child_2!="undefined")?toiprops._LastSubSCN_Child_2:"";var E=(typeof toiprops!="undefined"&&toiprops.hasOwnProperty("_LastSubSCN_Child_3")&&typeof toiprops._LastSubSCN_Child_3!="undefined")?toiprops._LastSubSCN_Child_3:"";var D=(typeof toiprops!="undefined"&&toiprops.hasOwnProperty("_LastSubSCN_Child_4")&&typeof toiprops._LastSubSCN_Child_4!="undefined")?toiprops._LastSubSCN_Child_4:""; var B=(typeof toiprops!="undefined"&&toiprops.hasOwnProperty("_LastSubSCN_Child_5")&&typeof toiprops._LastSubSCN_Child_5!="undefined")?toiprops._LastSubSCN_Child_5:"";var A=(typeof toiprops!="undefined"&&toiprops.hasOwnProperty("_LastSubSCN_Child_6")&&typeof toiprops._LastSubSCN_Child_6!="undefined")?toiprops._LastSubSCN_Child_6:"";var z=(typeof toiprops!="undefined"&&toiprops.hasOwnProperty("_LastSubSCN_Child_7")&&typeof toiprops._LastSubSCN_Child_7!="undefined")?toiprops._LastSubSCN_Child_7:""; var y=(typeof toiprops!="undefined"&&toiprops.hasOwnProperty("_LastSubSCN_Child_8")&&typeof toiprops._LastSubSCN_Child_8!="undefined")?toiprops._LastSubSCN_Child_8:"";var x=(typeof toiprops!="undefined"&&toiprops.hasOwnProperty("_LastSubSCN_Child_9")&&typeof toiprops._LastSubSCN_Child_9!="undefined")?toiprops._LastSubSCN_Child_9:"";var f=(typeof toiprops!="undefined"&&toiprops.hasOwnProperty("_Article_ID")&&typeof toiprops._Article_ID!="undefined")?toiprops._Article_ID:undefined;var j=(typeof toiprops!="undefined"&&toiprops.hasOwnProperty("_Meta_Keywords")&&typeof toiprops._Meta_Keywords!="undefined")?toiprops._Meta_Keywords:undefined; var o=(typeof toiprops!="undefined"&&toiprops.hasOwnProperty("_Content_URL")&&typeof toiprops._Content_URL!="undefined")?toiprops._Content_URL:window.location.href;var q=function(I){if(I&&typeof I==="string"){var H=I.split(",");var G=[];H.forEach(function(K,J){if(K){if(!G.includes(K)&&J!=0){G.push(K)}else{if(!G.includes(K)&&J==0){G.push(K)}}}});return G.toString()}};var m=function(H){if(H&&typeof H==="string"){var G=H.toLowerCase().replaceAll("-"," ");return G}};var i={Tmpl_SCN:g,SubSCN:m(l),channel:F,Channel:F,SCN:m(h),LastSubSCN:m(C),BL:s,PGT:w,Hyp1:p,ctnkeyword:d,templatetype:k,primeusertype:(c===true)?u:"",msid:n,LastSubSCN_Child_1:m(b),LastSubSCN_Child_2:m(a),LastSubSCN_Child_3:m(E),LastSubSCN_Child_4:m(D),LastSubSCN_Child_5:m(B),Article_ID:f,Meta_Keywords:q(j),Content_URL:o}; window.Times=window.Times||{};window.Times.adsKeys=i;if(window.location.pathname.match("/etimes|/entertainment|/tv|/life-style|/web-series|/topic")){window.Times.adsKeys.Channel="etimes"}};var jCheck={};(function(){jCheck._removeSplchracterFromStr=function(a){if(typeof a=="string"){return a.replace(/[^a-zA-Z0-9_\/]/g,"").toLowerCase()}return a};jCheck._getSubSecNavFrmUrl=function(a){try{var d=window.location.pathname.split("/");var b=["videos"];if(b.indexOf(d[1])>-1){a++}if(d[a]){return d[a]}}catch(c){return"" }};jCheck.updateDataWithdynUpdates=function(h,g,c){try{var f=false;var b=c.split("-");if(b.length>0&&b[1]){var a=b[1].split("|");f=a.indexOf(h)>-1;if(!f&&b[0]==="ex"){f=1}else{if(f&&b[0]!=="ex"){f=1}else{f=0}}}if(f){if(b.length>1&&b[2]){g.platform=b[2].split("|")}}}catch(d){}};jCheck.isValidProperty=function(b,c){try{b=Array.isArray(b)?b:[b];var a=[];var f=[];b.forEach(function(g){g=g||"";g=g.toLowerCase();if(g.indexOf("ex-")==0){var h=g.split("ex-")[1];h=jCheck._removeSplchracterFromStr(h);a.push(h) }else{var h=jCheck._removeSplchracterFromStr(g);f.push(h)}});c=jCheck._removeSplchracterFromStr(c);if(b.length>0){if(a.length&&a.indexOf(c)>-1){return 0}else{if(b.indexOf("all")===-1&&f.length&&f.indexOf(c)===-1){return 0}}}return 1}catch(d){console.error("J_LOG",d);return 0}}})();window.checkJarvisIsAdActive=function(g){try{var j=false;if(window._dfpObj&&window._dfpObj.isMobile&&typeof window._dfpObj.isMobile=="function"){j=window._dfpObj.isMobile()}else{if(typeof _toiad_isMobile=="function"){j=_toiad_isMobile() }}var c=j?"mweb":"web";var b="";var i="";var d="";var h="";var l="";var f="";var a="";if(typeof toiprops!="undefined"){b=toiprops.hasOwnProperty("_Channel")?toiprops._Channel:"";i=toiprops.hasOwnProperty("_SCN")?toiprops._SCN:jCheck._getSubSecNavFrmUrl(1);f=toiprops.hasOwnProperty("_Tmpl_SCN")?toiprops._Tmpl_SCN:"";f=f||(toiprops.hasOwnProperty("_Tmpl_pg")?toiprops._Tmpl_pg:"");d=toiprops.hasOwnProperty("_SubSCNs")?toiprops._SubSCNs:jCheck._getSubSecNavFrmUrl(2);h=toiprops.hasOwnProperty("_LastSubSCN")?toiprops._LastSubSCN:jCheck._getSubSecNavFrmUrl(3); a=toiprops.hasOwnProperty("_Hyp1")?toiprops._Hyp1:""}if(typeof window.Times!="undefined"&&window.Times.hasOwnProperty("adsKeys")){b=window.Times.adsKeys.hasOwnProperty("Channel")?window.Times.adsKeys.Channel:"";i=window.Times.adsKeys.hasOwnProperty("SCN")?window.Times.adsKeys.SCN:jCheck._getSubSecNavFrmUrl(1);f=window.Times.adsKeys.hasOwnProperty("Tmpl_SCN")?window.Times.adsKeys.Tmpl_SCN:"";i=(f&&f=="home")?"home":i;d=window.Times.adsKeys.hasOwnProperty("SubSCN")?window.Times.adsKeys.SubSCN:"";h=window.Times.adsKeys.hasOwnProperty("LastSubSCN")?window.Times.adsKeys.LastSubSCN:""; a=window.Times.adsKeys.hasOwnProperty("Hyp1")?window.Times.adsKeys.Hyp1:""}if(typeof window.Times!="undefined"&&window.Times.currentCountry){l=window.Times.currentCountry}else{if(typeof window.geoinfo!="undefined"&&window.geoinfo.hasOwnProperty("CountryCode")){l=window.geoinfo.CountryCode}if(typeof window.geoCode!="undefined"){l=window.geoCode}window.Times.currentCountry=l}if(g.hasOwnProperty("dynupdateObj")&&g.dynupdateObj){if(g.dynupdateObj.length>0){g.dynupdateObj.forEach(function(n){l=l&&l.toLowerCase(); jCheck.updateDataWithdynUpdates(l,g,n)})}}if(g.hasOwnProperty("countries")){var m=jCheck.isValidProperty(g.countries,l);if(m===0){return 0}}if(g.hasOwnProperty("business")){var m=jCheck.isValidProperty(g.business,b);if(m===0){return 0}}if(g.hasOwnProperty("platform")){var m=jCheck.isValidProperty(g.platform,c);if(m===0){return 0}}if(g.hasOwnProperty("hypVals")){if(a&&g.hypVals&&g.hypVals.length>0&&g.hypVals.indexOf(a)>-1){console.log("Hyp Vals Overrides all below checks",a,g.hypVals);return 1}}if(g.hasOwnProperty("section")){var m=jCheck.isValidProperty(g.section,i); if(m===0){return 0}}if(g.hasOwnProperty("sectionl2")){var m=jCheck.isValidProperty(g.sectionl2,d);if(m===0){return 0}}if(g.hasOwnProperty("sectionl3")){var m=jCheck.isValidProperty(g.sectionl3,h);if(m===0){return 0}}if(g.hasOwnProperty("templatename")){var m=jCheck.isValidProperty(g.templatename,f);if(m===0){return 0}}if(g.hasOwnProperty("customurl")){var m=jCheck.isValidProperty(g.customurl,window.location.pathname);if(m===0){return 0}}return 1}catch(k){return 0}};function isMobile(b){var a=false; if(typeof window==="undefined"&&typeof global==="object"&&global.isMobileUserAgent){return true}(function(c){if(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i.test(c)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(c.substr(0,4))){a=true }})(b||navigator.userAgent||navigator.vendor||window.opera);return a}function _toiad_isMobile(){if(typeof isMobile=="function"){return isMobile()}else{if(typeof isMobile=="boolean"){return isMobile}}return false}if(isMobile()&&window.pageLoadAdsArrMobile&&window.pageLoadAdsArrMobile.length>0){window.Times.pageLoadAdsArr=window.pageLoadAdsArrMobile}window._dfpObj.intersectionSection=function(f,g,b){try{var a=g||"0px 0px 0px 0px";var c;if(f&&f.length&&"IntersectionObserver" in window){c=new IntersectionObserver(function(h){h.forEach(function(j){var i=j.isIntersecting||j.intersectionRatio>0; var k=f.find(function(l){return l.elref===j.target});if(k&&i&&!b){k.callback(i,j);c.unobserve(j.target)}if(b&&k){k.callback(i,j)}})},{rootMargin:a});f.forEach(function(i){try{if(i.elref&&!i.elref.classList.contains("js_addInViewObs")){c.observe(i.elref);i.elref.classList.add("js_addInViewObs")}}catch(h){console.log(h)}})}return c}catch(d){}};(function(){var i=0;var a=0;var n=["US","CA","UK","AU","BH","KW","QA","OM","SA","AE","GB"];var k=[[],[],[],[],[]];var j=0;function b(){window.Times.ismgidCountry=window.Times.currentCountry&&n.indexOf(window.Times.currentCountry)>-1; return window.Times.ismgidCountry}function f(o,p){var q=document.getElementById(o.divId);if(q&&!q.dataset.id){q.dataset.id=o.divId}if(p!==true&&(window.adsconfig&&window.adsconfig.hasOwnProperty("osv_ctn")&&window.checkJarvisIsAdActive(window.adsconfig.osv_ctn))){window._dfpObj.osvCTNElement(o);a=1;return true}return false}window._dfpObj.osvCTNCallbackHandler=function(o,p,s){if(s!==4){var q=document.getElementById(p);if(q){q.remove()}window._dfpObj.processMgidADs([window._dfpObj.osvObj],false,true); debugLogs("XSLT #### CTN OSV callback Received :"+s,window._dfpObj.osvObj)}else{var r=document.querySelector('[data-id="'+window._dfpObj.osvObj.divId+'"]');if(r){r.id=""}}};window._dfpObj.osvCTNElement=function(q){window._dfpObj.osvObj=q;if(q.divId){var p=document.querySelectorAll('[data-id="'+q.divId+'"]:not(.ctnprocessed)');if(p.length>0){p=p[0]}var o=document.createElement("div");o.setAttribute("id","ctn-osv-div"+Math.floor((Math.random()*10)+1)+"-"+Math.floor((Math.random()*10)+1));if(window._dfpObj&&typeof window._dfpObj.isMobile=="function"&&window._dfpObj.isMobile()){o.setAttribute("data-slot",358377) }else{o.setAttribute("data-slot",320694)}o.setAttribute("class","colombia");o.setAttribute("data-position",Math.floor((Math.random()*10)+1)+""+Math.floor((Math.random()*10)+1));o.setAttribute("data-msg","window._dfpObj.osvCTNCallbackHandler");p.setAttribute("class","ctnprocessed");p.appendChild(o)}else{window._dfpObj.processMgidADs([q],false,true)}};var l=false;function d(p){l=l||p.articleVideo;var o=window.adsconfig&&window.adsconfig.minitv&&window.checkJarvisIsAdActive(window.adsconfig.minitv)==1; return !o&&!l}function c(q,o,p){switch(q){case"docVideo":return d(o);case"mgid":return b();case"ex-mgid":return !b();case"mgidwithdock":return b()&&d(o);case"osvctn":return !a&&f(o,p);default:return 0}}function g(p,q,o){p.forEach(function(s,r){if(s.divId&&q!==r&&o){var t=document.querySelectorAll("#"+s.divId);t.forEach(function(u){if(u.dataset.gid===o){u.id=""}})}})}function m(o,p){if(Array.isArray(o)){o.forEach(function(w){if(w.replace&&w.replace.length){var x;var u=0;for(u=0;u-1)?1:0;window.checkJarvisIsAdActive=window.checkJarvisIsAdActive||{};window.PWT=window.PWT||{};PWT.jsLoaded=function(){var a=window.owpbjs||{};a.setBidderConfig({bidders:["criteo"],config:{ortb2:{user:{ext:{data:{eids:[{source:window.location.hostname,uids:[{id:"",atype:3,ext:{stype:"hemmd5"}},{id:"",atype:3,ext:{stype:"hemsha256"}}]}]}}}}}}) };window.apstag=window.apstag||{};window.googletag=window.googletag||{};window.googletag.cmd=window.googletag.cmd||[];window._toi_adsCallbackQueue=window._toi_adsCallbackQueue||[];window._dfpObj._til_processedSlots=window._dfpObj._til_processedSlots||[];window._dfpObj._til_defineSlot=window._dfpObj._til_defineSlot||[];window._dfpObj.lazyLoadSlots={};window._dfpObj._pendingForDisplay=[];window._dfpObj._pendingForDisplayCPD=[];window._dfpObj.perpetualRefresh=[];window.CPD.slots=window.CPD.ROS||[];if(window.location.pathname==="/"){window.CPD.slots=window.CPD.HP||[] }if(window.location.pathname.indexOf("/photostory")!==-1){window.CPD.slots=[]}if(window.location.pathname.indexOf("/astrology")!==-1){window.CPD.slots=[]}var iViewable=[];var settimeoutArr=[];window.debugLogs=window.debugLogs||function(a,c){try{if(typeof window==="object"&&window.location.href.indexOf("debugLogs=1")>-1){console.log(a,c)}}catch(b){}};window._dfpObj.LoadTime=(performance.now()/1000).toFixed(0)||1;debugLogs("XSLT #### Script loaded 11 :",(performance.now()/1000).toFixed(2)+"seconds"); window._dfpObj.observer=new IntersectionObserver(function(a){a.forEach(function(b){if(b.isIntersecting){var c=window._dfpObj.lazyLoadSlots[b.target.id];window._dfpObj._bidAndProcessAdRequest([c]);debugLogs("XSLT #### LazyLoad",c.getAdUnitPath());window._dfpObj.observer.unobserve(b.target)}})},window._dfpObj.observerConfig);window._dfpObj.isMobile=function(b){var a=false;if(typeof window==="undefined"&&typeof global==="object"&&global.isMobileUserAgent){return true}(function(c){if(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i.test(c)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(c.substr(0,4))){a=true }})(b||navigator.userAgent||navigator.vendor||window.opera);return a};var isWapView=window._dfpObj.isMobile();window._dfpObj._parseCookieValue=function(a){var c=a;if(c.indexOf('"')===0){c=c.slice(1,-1).replace(/\\"/g,'"').replace(/\\\\/g,"\\")}try{return decodeURIComponent(c.replace(/\+/g," "))}catch(b){}return undefined};window._dfpObj.setCookie=function(b,d,c){var a=new Date();a.setTime(a.getTime()+(c*60*1000));document.cookie=b+"="+d+";expires="+a.toUTCString()+";path=/;domain=."+document.domain };window._dfpObj.getCookie=function(c){var a=c?undefined:{};var h=typeof document!=="undefined"&&document.cookie?document.cookie.split("; "):[];for(var g=0,b=h.length;g-1){window.googletag.pubads().setTargeting("LANGbackToHome",1)}if(window.adsconfig.hasOwnProperty("channel")&&window.adsconfig.channel=="np"){window.googletag.pubads().setTargeting("Channel","np");if(p.length&&p[0].hasOwnProperty("targeting")){window.Times.adsKeys=p[0].targeting}else{if(window.Times&&window.Times.pageLoadAdsArr[0]&&window.Times.pageLoadAdsArr[0].hasOwnProperty("targeting")){window.Times.adsKeys=window.Times.pageLoadAdsArr[0].targeting }}}else{if(window.adsconfig.hasOwnProperty("channel")){window.googletag.pubads().setTargeting("Channel",window.adsconfig.channel)}else{if(i==="entertainment"||i==="etimes"){window.googletag.pubads().setTargeting("Channel","etimes")}else{window.googletag.pubads().setTargeting("Channel","toi")}}}if(window.Times&&window.Times.adsKeys){var g=["SCN","SubSCN","LastSubSCN","LastSubSCN_Child_1","LastSubSCN_Child_2"];for(var b in window.Times.adsKeys){if(typeof window.Times.adsKeys[b]=="string"&&window.Times.adsKeys[b]){var k=window.Times.adsKeys[b]+""; if(g.indexOf(b)!==-1&&k){k=k.replace(/[^a-zA-Z0-9_\/]/g,"").toLowerCase()}window.googletag.pubads().setTargeting(b,k)}}window.tgtkeys=window.Times.adsKeys}if(window.location.href.indexOf("utm_source=affiliate")>-1){window.googletag.pubads().setTargeting("Hyp1","Affiliate")}var a="";if(window.location.href.indexOf("utm_source=")>-1){a+=a?(","+window._dfpObj.getParameterByName("utm_source")):window._dfpObj.getParameterByName("utm_source")}if(window.location.href.indexOf("utm_campaign=")>-1){a+=a?(","+window._dfpObj.getParameterByName("utm_campaign")):window._dfpObj.getParameterByName("utm_campaign") }if(a){window.googletag.pubads().setTargeting("Columbia",a)}if(typeof window._dfpObj.getParameterByName==="function"){var j=window._dfpObj.getParameterByName("toi_dfp_test");if(!!j){window.googletag.pubads().setTargeting("toi_dfp_test",j)}j=window._dfpObj.getParameterByName("back");var m="TOI";m=window.adsconfig.channel&&window.adsconfig.channel!==""?window.adsconfig.channel.toUpperCase():m;m=m+"backToHome";if(!!j){window.googletag.pubads().setTargeting(m,j)}else{j=document.referrer||"";if(j.indexOf("back")>-1){window.googletag.pubads().setTargeting(m,2) }}}};window._dfpObj._getAdBasedOnResolution=function(a){if(a&&a.resolution){var b={};if(typeof window!=="undefined"&&window.innerWidth<=1421){b=a.resolution.res1000px||{}}else{b=a.resolution.res1160px||{}}Object.keys(b).forEach(function(d,c){a[d]=b[d]})}return a};window._dfpObj.getSupportedSizes=function(g,f){var d=window.innerWidth;var b;var c=g||[];if(typeof g==="object"&&g.hasOwnProperty("DEFAULT")){c=g.DEFAULT}var a=f?f.toLowerCase():"";var h=false;if(a.indexOf("_mweb")>-1&&(a.indexOf("fbn")>-1||a.indexOf("atf")>-1)){h=true }if(a.indexOf("_mweb")>-1&&a.indexOf("fbn")>-1){b=50}if(a.indexOf("mweb")===-1&&(((a.indexOf("atf")>-1||a.indexOf("btf")>-1)&&a.indexOf("_300")>-1)||a.indexOf("mrec")>-1)){d=300;b=250;h=true}if(!h){return g}c=c.filter(function(i){if(Array.isArray(i)){var k=i[0];var j=i[1];if(k&&k<=d&&(!b||b>=j)){return true}else{return false}}else{return true}});if(c.length){return c}else{return g}};window._dfpObj.loadJS=function(a,b,c){let scriptEle=document.createElement("script");scriptEle.setAttribute("src",a); scriptEle.setAttribute("type","text/javascript");scriptEle.setAttribute("async",b);document.body.appendChild(scriptEle);scriptEle.addEventListener("load",c)};window._dfpObj.changeStyleInnov=function(){var b=document.createElement("style");b.type="text/css";var a=".abs_gutter_ad { position: absolute !important;}";b.appendChild(document.createTextNode(a));document.querySelector("body").appendChild(b);if(document.querySelector("#TOI_appgutter_left")){document.querySelector("#TOI_appgutter_left").classList.add("abs_gutter_ad") }if(document.querySelector("#TOI_appgutter_right")){document.querySelector("#TOI_appgutter_right").classList.add("abs_gutter_ad")}};window._dfpObj.failOverExecute=function(d,b){var a=JSON.parse(d.getTargeting("failover")[0]);var c=function(f,g){googletag.pubads().clear([f]);googletag.destroySlots([f]);window.displayAllAdsInArray(g);return true};if(d.getTargeting("match")&&d.getTargeting("match")[0]){if(typeof d.getHtml()==="string"&&d.getHtml().toLowerCase().indexOf(JSON.parse(d.getTargeting("match")[0]))===-1){c(d,a) }}else{if(b){c(d,a)}}return true};window._dfpObj.isCPDslot=function(a){if(window._dfpObj.containsAny(a.toLowerCase(),window.CPD.slots)&&typeof window.geoinfo==="object"&&window.geoinfo.CountryCode==="IN"){return true}return false};window._dfpObj.isExcludeHB=function(a){if(window._dfpObj.containsAny(a.toLowerCase(),window._dfpObj.excludeHB)){return true}return false};window._dfpObj.isInnov=function(a){if(typeof a==="string"||a instanceof String){return a.toLowerCase().indexOf("innov")>-1?true:false }else{return a.getAdUnitPath().toLowerCase().indexOf("innov")>-1?true:false}};window._dfpObj.isATF=function(a){if(a===undefined){return false}return a.getAdUnitPath().toLowerCase().indexOf("_atf")>-1?true:false};window._dfpObj.changeAdCodeBasedOnUTM=function(a){try{var f=window.adsconfig&&window.adsconfig.global_config&&window.adsconfig.global_config.utmBasedAdCodePrefix;var d="";if(f&&f.length){var g=window._dfpObj.getParameterByName("utm_source");var h=window._dfpObj.getParameterByName("utm_campaign"); for(var c=0;c-1&&window.location.href.indexOf("back=1")>-1){f+="_BTH" }var i=c.divId;var k=c.size;if(k&&!Array.isArray(k)){k=JSON.parse(k)}var b=c.hasOwnProperty("lazyLoad")?c.lazyLoad:"";if(window._dfpObj._til_defineSlot.indexOf(i)!==-1||!f||f===undefined){return}if(f.indexOf("_Andbeyond_1x1")>-1){return}if(typeof window._dfpObj.adsRules=="object"&&j.name&&window._dfpObj.adsRules[j.name]&&window._dfpObj.adsRules[j.name].disabled==1){return}if(f&&c.hasOwnProperty("name")&&c.hasOwnProperty("articleIndex")&&c.articleIndex&&window.location.pathname.indexOf("/articleshow/")>-1){if(window._dfpObj.isNewGAMAd){f=f+"_P"+c.articleIndex; b=1}else{if(window.location.pathname.indexOf("/entertainment")>-1||window.location.pathname.indexOf("/tv")>-1){f=f}else{if(f.indexOf("_INF")>-1||f.indexOf("NoHB_Widget")>-1){f=f}else{if(window._dfpObj.isPerpetualNewAd&&isWapView&&window._dfpObj.mWebROSMapping[j.name]){f=f+"_P1"}else{if(window._dfpObj.isPerpetualNewAd&&window._dfpObj.webROSMapping[j.name]){f=f+"_P1"}else{if(isWapView&&window._dfpObj.mWebROSMapping[j.name]){f=window._dfpObj.mWebROSMapping[j.name]}else{if(window._dfpObj.webROSMapping[j.name]){f=window._dfpObj.webROSMapping[j.name] }}}}}}}}if(f.toLowerCase().indexOf("_innov")>-1&&window.location.href.indexOf("gutterunfill")>-1){f="/7176/TOI/TOI_TEST/TOI_ROS_Test_Nofill_Innov1"}if(window.location.href.indexOf("test=expando")>-1&&f.indexOf("_ATF")>-1){f="/7176/TOI_MWeb/TOI_MWeb_Test/TOI_Mweb_Test3_ATF"}if(window.location.href.indexOf("utm_source=")>-1){f=window._dfpObj.changeAdCodeBasedOnUTM(f)}if(window.location.href.indexOf("colombia_test")>-1&&f.indexOf("_ATF")>-1){f="/7176/TOI_MWeb/TOI_MWeb_Test/TOI_MWeb_ROS_Mrec9_Test"}if(j&&j.replace&&j.replace.length){return }if(window._dfpObj.containsAny(f.toLowerCase(),["innov1"])&&location.pathname==="/"){if(window.adsconfig&&window.adsconfig.hasOwnProperty("siteSync")){if(window.checkJarvisIsAdActive(window.adsconfig.siteSync)===1){return}}}if(c.hasOwnProperty("checkJarvisIsAdActive")&&typeof window.checkJarvisIsAdActive==="function"){if(!window.adsconfig.hasOwnProperty(c.checkJarvisIsAdActive)){return}if(window.checkJarvisIsAdActive(window.adsconfig[c.checkJarvisIsAdActive])!==1){return}}if(typeof window._dfpObj._excludeDefineSlot==="function"&&window._dfpObj._excludeDefineSlot(f,i)){return true }var h={};if(c.hasOwnProperty("name")&&c.name==="webInterstitial"){h=googletag.defineOutOfPageSlot(f,googletag.enums.OutOfPageFormat.INTERSTITIAL);debugLogs("XSLT #### webInterstitial",(performance.now()/1000).toFixed(2)+"seconds");if(h){h.addService(googletag.pubads());debugLogs("XSLT #### webInterstitial present",(performance.now()/1000).toFixed(2)+"seconds")}}else{if(!k){h=window.googletag.defineOutOfPageSlot(f,i).addService(googletag.pubads())}else{h=window.googletag.defineSlot(f,window._dfpObj.getSupportedSizes(k,f),i).addService(googletag.pubads()) }}debugLogs((performance.now()/1000).toFixed(2)+"seconds -- XSLT @@@ DefineSlot "+f+"----"+i+" : ",k);if(c.hasOwnProperty("name")){h.setTargeting("name",JSON.stringify(c.name))}if(c.hasOwnProperty("failover")){h.setTargeting("failover",JSON.stringify(c.failover))}if(c.hasOwnProperty("match")){h.setTargeting("match",JSON.stringify(c.match))}if(window.__CLIENT__&&window.__CLIENT__.indexOf("newszop")>-1){h.setTargeting("retry","-1");if(k&&k.length>0&&k[0][0]==320&&k[0][1]==50){h.setTargeting("pricing-rule-active",true) }if(k){h.setTargeting("pos","newszop-".concat(k[0].join().replace(",","x")))}}if(c.hasOwnProperty("clearDiv")){h.setTargeting("clearDiv",JSON.stringify(c.clearDiv))}if(window.location.pathname.indexOf("/education/upskill")!==-1&&window.location.pathname.indexOf("/education/upskill/")===-1){window.Times.adsKeys.Hyp1="Emeritus";h.setTargeting("Hyp1","Emeritus")}if(h){if(window._dfpObj.isExcludeHB(f)){window._dfpObj._pendingForDisplayCPD.push(h)}else{if(f.indexOf("1x1")>-1||f.indexOf("_195")>-1||(c.hasOwnProperty("name")&&c.name==="webInterstitial")){window._dfpObj._pendingForDisplayCPD.push(h) }else{if(((window._dfpObj.lazyLoadEnabledSlots.length>0&&window._dfpObj.containsAny(f.toLowerCase(),window.CPD.lazyLoadEnabledSlots)&&window.location.pathname.indexOf("/liveblog")!==-1)||parseInt(b)===1)&&"IntersectionObserver" in window){window._dfpObj.lazyLoadSlots[i]=h;var d=document.querySelector("#"+i);window._dfpObj.observer.observe(d)}else{window._dfpObj._pendingForDisplay.push(h)}}}if(c.hasOwnProperty("perpetualRefresh")&&c.perpetualRefresh===1){window._dfpObj.perpetualRefresh.push(h)}}if(f.indexOf("Etimes_APV_1000x602")>-1||f.indexOf("Etimes_Mweb_APV_400x461")>-1){setInterval(function(){googletag.pubads().refresh([h]); debugLogs(i+"XSLT #### Amazon code Refresh : "+f,(performance.now()/1000).toFixed(2)+"seconds")},45000)}window._dfpObj._til_defineSlot.push(i)})};perpetualAdRefresh=function(){if(typeof window._dfpObj.processMgidADs==="function"&&window.location.href.indexOf(/spotlight/)===-1){window._dfpObj.processMgidADs([],1)}if(window._dfpObj.perpetualRefresh.length>0){window._dfpObj._til_processedSlots=window._dfpObj.deleteFromProcessedSlots(window._dfpObj._til_processedSlots,window._dfpObj.perpetualRefresh); debugLogs("XSLT #### Perpetual Refresh proceed ("+window._dfpObj.perpetualRefresh.length+") : "+(performance.now()/1000).toFixed(2)+"seconds",JSON.stringify(window._dfpObj.perpetualRefresh.map(function(b){var a={};a.code=b.getAdUnitPath();a.id=b.getSlotElementId();return a})));window._dfpObj._bidAndProcessAdRequest(window._dfpObj.perpetualRefresh)}if(window._dfpObj.desktopBottomStickyObserver){document.querySelectorAll(".atf_ad_perpetual").forEach(function(a){if(a){window._dfpObj.desktopBottomStickyObserver.observe(a) }})}return};window._dfpObj.filterProcessedSlots=function(a){return a.filter(function(b){return window._dfpObj._til_processedSlots.indexOf(b.getSlotElementId())===-1})};window._dfpObj.deleteFromProcessedSlots=function(a,b){if(b.length===0||a.length===0){return a}a=b.filter(function(c){return a.indexOf(c.getSlotElementId())===-1});return a};window._dfpObj._initAdserver=function(d,b){d=window._dfpObj.filterProcessedSlots(d);if(Array.isArray(d)&&d.length===0){return}var a=window._dfpObj.BidReceivedRecord[d[0].getSlotElementId()]; if(b===true||(a.PWT&&a.TAM&&d.length>0)){if(a){a.PWT=a.TAM=false}d.map(function(f){if(f.getTargeting("clearDiv")&&f.getTargeting("clearDiv")[0]){document.getElementById(f.getSlotElementId()).innerHTML=""}window._dfpObj._til_processedSlots.push(f.getSlotElementId());debugLogs("XSLT @@@ REQUEST SENT "+f.getAdUnitPath()+" : ",(performance.now()/1000).toFixed(2)+"seconds")});var c=document.getElementById(d[0].getSlotElementId());if(c||d[0].getSlotElementId().indexOf(d[0].getAdUnitPath())>-1){debugLogs("XSLT #### GAM REQUEST SENT Total ("+d.length+") : "+(performance.now()/1000).toFixed(2)+"seconds",JSON.stringify(d.map(function(g){var f={}; f.code=g.getAdUnitPath();f.id=g.getSlotElementId();return f})));window.googletag.cmd.push(function(){window.googletag.pubads().refresh(d)})}else{eventCallBack=function(g,f){c=document.getElementById(g[0].getSlotElementId());if(!c){debugLogs(f+" time(s):XSLT #### HTML Dom not yet ready "+g[0].getSlotElementId(),g[0].getAdUnitPath());if(f<15){setTimeout(function(){f++;eventCallBack(g,f)},500)}return true}window.googletag.pubads().refresh(g);debugLogs("XSLT #### AFTER HTML READY GAM REQUEST SENT Total ("+g.length+") : "+(performance.now()/1000).toFixed(2)+"seconds",JSON.stringify(g.map(function(i){var h={}; h.code=i.getAdUnitPath();h.id=i.getSlotElementId();return h})))};debugLogs("XSLT #### HTML NOT READY Total ("+d.length+") : "+(performance.now()/1000).toFixed(2)+"seconds",JSON.stringify(d.map(function(g){var f={};f.code=g.getAdUnitPath();f.id=g.getSlotElementId();return f})));setTimeout(function(){eventCallBack(d,0)},500)}}else{setTimeout(function(){window._dfpObj._initAdserver(d,true)},2000)}};window._dfpObj._bidAndProcessAdRequest=function(a){a=a.filter(function(b){return window._dfpObj._til_processedSlots.indexOf(b.divId)===-1 });if(a.length===0){return true}_executeInit=function(f,c,b){if(b.indexOf("library not available")>-1){debugLogs("XSLT #### "+b+" : "+(performance.now()/1000).toFixed(2)+"seconds ",f.map(function(g){if(g){return g.getAdUnitPath()}}))}else{if(b!=="NO"){debugLogs("XSLT #### "+c+" Bid Received "+b+": "+(performance.now()/1000).toFixed(2)+"seconds ",f.map(function(g){if(g){return g.getAdUnitPath()}}))}}var d=f[0].getSlotElementId();googletag.cmd.push(function(){if(window._dfpObj.BidReceivedRecord.hasOwnProperty(d)===false){window._dfpObj.BidReceivedRecord[d]={} }window._dfpObj.BidReceivedRecord[d][c]=true;return window._dfpObj._initAdserver(f)})};_doPubmaticHeaderBidding=function(f){var d=false;try{var b=f;debugLogs("XSLT #### PWT Bid request Sent ** "+(performance.now()/1000).toFixed(2)+"seconds ",b.map(function(g){if(g){return g.getAdUnitPath()}}));if(typeof window.PWT.requestBids==="function"){window.PWT.requestBids(window.PWT.generateConfForGPT(b),function(g){window.PWT.addKeyValuePairsToGPTSlots(g);if(d===false){d=true;_executeInit(b,"PWT","Successfully") }})}setTimeout(function(){if(d===false){d=true;_executeInit(b,"PWT","FailSafeExecuted")}},window._dfpObj.FAILSAFE_TIMEOUT)}catch(c){if(d===false){d=true;_executeInit(b,"PWT","CatchExecute")}}};_doAmazonHeaderBidding=function(f){var d=false;try{var b=f;debugLogs("XSLT #### TAM Bid request Sent ** "+(performance.now()/1000).toFixed(2)+"seconds ",b.map(function(g){if(g){return g.getAdUnitPath()}}));apstag.fetchBids({slots:b,timeout:window._dfpObj.FAILSAFE_TIMEOUT},function(g){apstag.setDisplayBids(); if(d===false){d=true;_executeInit(b,"TAM","Successfully")}});setTimeout(function(){if(d===false){d=true;_executeInit(b,"TAM","FailSafeExecuted")}},window._dfpObj.FAILSAFE_TIMEOUT)}catch(c){if(d===false){d=true;_executeInit(b,"TAM","CatchExecute")}}};if(typeof window.geoinfo!="undefined"&&window.geoinfo.hasOwnProperty("CountryCode")&&window.geoinfo.CountryCode==="UK"){_doPubmaticHeaderBidding(a)}else{if(typeof window.geoinfo!="undefined"&&window.geoinfo.hasOwnProperty("Continent")&&window.geoinfo.Continent==="EU"){_executeInit(a,"PWT","NO") }else{if(window._dfpObj.hbPWT===1&&typeof window.PWT.requestBids==="function"){_doPubmaticHeaderBidding(a)}else{if(window._dfpObj.hbPWT===1&&typeof window.PWT.requestBids!=="function"){_executeInit(a,"PWT","PWT library not available")}else{_executeInit(a,"PWT","NO")}}}}if(typeof window.geoinfo!="undefined"&&window.geoinfo.hasOwnProperty("CountryCode")&&window.geoinfo.CountryCode==="UK"){_doAmazonHeaderBidding(a)}else{if(typeof window.geoinfo!="undefined"&&window.geoinfo.hasOwnProperty("Continent")&&window.geoinfo.Continent==="EU"){_executeInit(a,"TAM","NO") }else{if(window._dfpObj.hbTAM===1&&typeof apstag._getSlotIdToNameMapping!=="undefined"){_doAmazonHeaderBidding(a)}else{if(window._dfpObj.hbTAM===1&&typeof apstag._getSlotIdToNameMapping==="undefined"){_executeInit(a,"TAM","TAM library not available")}else{_executeInit(a,"TAM","NO")}}}}};window.displayAllAdsInArray=function(g,b){if(typeof _updateArr==="function"){g=_updateArr(g)}if(typeof window._dfpObj.processreplaceAd==="function"){window._dfpObj.processreplaceAd(g)}var a=window.location.pathname.length>0?window.location.pathname.split("/"):[]; var h=window.location.pathname.split("/");if(h.length===0||!h[1]){h=["default","home"]}debugLogs("XSLT #### DisplayAllAdsInArray executed :"+(performance.now()/1000).toFixed(2)+"seconds",g);var c=a[1]||h[1];if(g&&g.length===0){return}var d=function(i){window.googletag.cmd.push(function(){i.map(function(j){googletag.display(j)});debugLogs("XSLT #### GAM Display REQUEST SENT Total ("+i.length+") : "+(performance.now()/1000).toFixed(2)+"seconds",JSON.stringify(i.map(function(k){var j={};j.code=k.getAdUnitPath(); j.id=k.getSlotElementId();return j})))})};_displayAds=function(j,i){window.googletag.cmd.push(function(){window.googletag.pubads().enableAsyncRendering();googletag.pubads().collapseEmptyDivs();if(typeof window._dfpObj.createKeyValueObj=="function"){window._dfpObj.createKeyValueObj()}if(j){window._dfpObj._setTargeting(c,j);window._dfpObj._defineSlot(j)}if(window._dfpObj._pendingForDisplay.length===0&&window._dfpObj._pendingForDisplayCPD.length===0){return true}googletag.pubads().enableAsyncRendering(); googletag.pubads().collapseEmptyDivs(true);googletag.pubads().enableSingleRequest();googletag.enableServices();if(window.adsconfig.hasOwnProperty("channel")&&window.adsconfig.channel=="eisamay"){var k=document.getElementById(window._dfpObj._pendingForDisplay[0].getSlotElementId());if(k){debugLogs("XSLT #### HTML ready");d(window._dfpObj._pendingForDisplay);window._dfpObj._pendingForDisplay=[]}else{debugLogs("XSLT #### HTML not ready");document.addEventListener("readystatechange",function(l){if(document.readyState==="interactive"){d(window._dfpObj._pendingForDisplay); window._dfpObj._pendingForDisplay=[]}})}}else{googletag.pubads().disableInitialLoad();if(typeof window.geoinfo!="undefined"&&window.geoinfo.hasOwnProperty("Continent")&&window.geoinfo.Continent==="EU"){window.googletag.pubads().setRequestNonPersonalizedAds(1)}if(window._dfpObj._pendingForDisplayCPD.length>0){PWT.TAM_BidsReceived=PWT.ow_BidsReceived=true;window._dfpObj._initAdserver(window._dfpObj._pendingForDisplayCPD,true)}if(window._dfpObj._pendingForDisplay.length===0){return true}if((window._dfpObj.hbTAM===0&&window._dfpObj.hbPWT===0)){PWT.TAM_BidsReceived=PWT.ow_BidsReceived=true; window._dfpObj._initAdserver(window._dfpObj._pendingForDisplay,true)}else{window._dfpObj._bidAndProcessAdRequest(window._dfpObj._pendingForDisplay)}window._dfpObj._pendingForDisplayCPD=[];window._dfpObj._pendingForDisplay=[]}})};var f=Math.random();_displayAds(g,f);return true};window._dfpObj.containsAny=function(d,c){if(c===undefined||c.length===0){return false}d=d+"$";if(d.indexOf("toi_mweb_fixed_atf$")!=-1){return null}for(var b=0;b!=c.length;b++){var a=c[b].toLowerCase()+"$";if(d.indexOf(a)!=-1){return a }}return null};window._dfpObj.containsInArrayOfObject=function(b,c){for(var a=0;a0){window.displayAllAdsInArray(b); window.googletag.cmd.push(function(){var f=3;var d=0;while(c.length>0){d++;a(c.splice(0,f),d)}})}else{debugLogs("XSLT #### pageLoadAdsArr Ads :"+(performance.now()/1000).toFixed(2)+"seconds",window.Times.pageLoadAdsArr);window.displayAllAdsInArray(window.Times.pageLoadAdsArr)}};window._dfpObj.firstFoldAdRequestHigh=function(){debugLogs("XSLT #### My very first displayAllAdsInArray executed :",(performance.now()/1000).toFixed(2)+"seconds");var a=window._dfpObj.containsInArrayOfObject("_Andbeyond_1x1",window.Times.pageLoadAdsArr); if(a>-1){window.Times.pageLoadAdsArr.splice(a,1);window._dfpObj.primeAdRequestFirst(window.Times.pageLoadAdsArr)}else{window._dfpObj.primeAdRequestFirst(window.Times.pageLoadAdsArr)}};window._dfpObj.iViewableIndexOf=function(b){if(!(b.getAdUnitPath().indexOf("TOI")>-1||b.getAdUnitPath().indexOf("Newspoint")>-1)){return 1}if(iViewable.length===0){return -1}var a=iViewable.filter(function(c){return c.getSlotElementId()===b.getSlotElementId()});return a.length>0?1:-1};window._dfpObj.viewableRefresh=function(c){var d=c.slot; if(d.getAdUnitPath().match(new RegExp("_FBN","gi"))&&!window._dfpObj.isCPDslot(d.getAdUnitPath())&&window._dfpObj.isfbnStoryEnable){window._dfpObj._FBN_Refresh(d)}if(window.location.href.indexOf("/health-fitness")===-1){if(window._dfpObj.exclueRefresh.length>0&&window._dfpObj.containsAny(d.getAdUnitPath().toLowerCase(),window._dfpObj.exclueRefresh)){return true}if(d.getAdUnitPath().match(new RegExp("_1x1","gi"))){return true}var a=window._dfpObj.iViewableIndexOf(d);if(a!==-1){return true}if(window.CPD.slots.length===0){return true }if(!window._dfpObj.isCPDslot(d.getAdUnitPath())){return true}if(window._dfpObj.isExcludeHB(d.getAdUnitPath())){return true}if(window._dfpObj.isInnov(d)){return true}if(d.getAdUnitPath().indexOf("_Cube")>-1){return true}if(document.getElementById(d.getSlotElementId()).querySelector(".andbeyond_adunit")!==null){return true}}var b=function(f){var g=setTimeout(function(){var h=window._dfpObj.iViewableIndexOf(f);if(document.hidden||window._dfpObj.isInnov(f)||h===-1){return true}window._dfpObj._til_processedSlots=window._dfpObj.deleteFromProcessedSlots(window._dfpObj._til_processedSlots,[f]); window.googletag.pubads().refresh([f]);iViewable=iViewable.filter(function(i){return i.getSlotElementId()!==f.getSlotElementId()});debugLogs("XSLT #### impressionViewable DISPLAY REQUEST SENT after 30s "+(performance.now()/1000).toFixed(2)+"seconds",f.getAdUnitPath());return true},30000);settimeoutArr.push(g);return true};debugLogs("XSLT #### push to impressionViewable "+(performance.now()/1000).toFixed(2)+"seconds",d.getAdUnitPath());iViewable.push(d);b(d)};var _fnStoryCtr=1;var _fntimer={};window._dfpObj._FBN_Refresh=function(f){if(!(window.Times&&window.Times.hasOwnProperty("adsKeys")&&window.Times.adsKeys.hasOwnProperty("Article_ID"))){return true }if(!(window.App&&window.App.hasOwnProperty("state")&&window.App.state.hasOwnProperty("articleshow_v2")&&window.App.state.articleshow_v2.hasOwnProperty("data")&&window.App.state.articleshow_v2.data.hasOwnProperty(window.Times.adsKeys.Article_ID)&&window.App.state.articleshow_v2.data[window.Times.adsKeys.Article_ID].hasOwnProperty("nextLinks"))){return true}var b=f.getSlotElementId();var c=f.getAdUnitPath();var d=[320,50];var g=function(k,i,h,j){window._dfpObj._til_processedSlots=window._dfpObj._til_processedSlots.filter(function(l){return l!==h });window._dfpObj._til_defineSlot=window._dfpObj._til_defineSlot.filter(function(l){return l!==h});window.displayAllAdsInArray([{adCode:i,divId:h,size:j,clearDiv:1}])};if(_fntimer.ad){clearTimeout(_fntimer.ad);clearTimeout(_fntimer.st1);clearTimeout(_fntimer.st2)}var a=function(m,o,j,l){googletag.pubads().clear([m]);googletag.destroySlots([m]);var k=window.Times.adsKeys.Article_ID;var q="";var i="";var n="";if(_fnStoryCtr===j.length){_fnStoryCtr=1}if(document.location.pathname.indexOf(j[_fnStoryCtr].msid)>-1){_fnStoryCtr++ }if(_fnStoryCtr===j.length){_fnStoryCtr=1}var p=_fnStoryCtr;q=j[p].value;i=j[p].wu;var h=j[p].hasThumb?j[p].msid:"47529300";n="https://static.toiimg.com/thumb/msid-"+h+",width-100,resizemode-4/"+h+".jpg";document.getElementById(o).style.display="block";document.getElementById(o).innerHTML='
'+q+'

'+q+"

"; _fnStoryCtr++;if(window.ga){ga("send","event","BTFPerpetual","view","BTFPerpetual_view_mWeb",1,{nonInteraction:1})}};_fntimer.ad=setTimeout(function(){g(f,c,b,d);_fnStoryCtr=1;window._dfpObj._FBN_Refresh(f)},60000);_fntimer.st1=setTimeout(function(){a(f,b,window.App.state.articleshow_v2.data[window.Times.adsKeys.Article_ID].nextLinks)},20000);_fntimer.st2=setTimeout(function(){a(f,b,window.App.state.articleshow_v2.data[window.Times.adsKeys.Article_ID].nextLinks)},40000);return true};window._dfpObj.sendClickGaForFnStory=function(a){if(window.ga){ga("send","event","BTFPerpetual","click","BTFPerpetual_click_mWeb") }};window._dfpObj.callBaseScript=function(d){if(!window._isDfpfirstAdCalled){window._isDfpfirstAdCalled=true;if(typeof window._dfpObj.exeTaboola==="function"){window._dfpObj.exeTaboola()}if(window._dfpObj.executeAfterFirstADCall&&window._dfpObj.executeAfterFirstADCall.length>0){window._dfpObj.executeAfterFirstADCall.forEach(function(f){if(typeof f==="function"){f()}});window._dfpObj.executeAfterFirstADCall=[]}}if(typeof window._baseScript==="function"&&typeof __baseScript!=="undefined"&&!__baseScript){debugLogs("########## "+d+" Event fired : loading callBaseScript",(performance.now()/1000).toFixed(2)+"seconds"); window._baseScript()}if(window._dfpObj.hasOwnProperty("ctnAds")&&typeof window._dfpObj.ctnAds.loadColombiaJS==="function"){window._dfpObj.ctnAds.loadColombiaJS()}if(typeof window._dfpObj.AndbeyondScript==="function"){setTimeout(function(){window._dfpObj.AndbeyondScript()},5000)}var b="/98915734.";var c=window.location.href||"";if(c&&c.indexOf(b)>-1&&!window._dfpObj.smartifaiScriptLoaded){var a=document.createElement("script");a.type="text/javascript";a.setAttribute("async",true);a.src="https://ssptag.smartifai.ai/?c=ssp&m=tmv&placementId=22&adType=in_screen&domain=[DOMAIN]&page=[PAGE]"; window.document.head.appendChild(a);window._dfpObj.smartifaiScriptLoaded=true}if(typeof window._loadDelayedResources==="function"&&typeof _delayedResourcesLoaded!=="undefined"&&!_delayedResourcesLoaded){debugLogs("########## "+d+" Event fired : loading callBaseScript",(performance.now()/1000).toFixed(2)+"seconds");window._loadDelayedResources()}if(window.TimesApps&&typeof window.TimesApps.initCLSHandlingV2==="function"&&!window._initCLSHandlingLoaded){window.TimesApps.initCLSHandlingV2();window._initCLSHandlingLoaded=true }};window._dfpObj.processAtfSticky=function(c,b){try{var g=window._dfpObj.isMobile();var f=window.Times&&window.Times.adsKeys&&window.Times.adsKeys.isVideoPresent==true;var d=window._dfpObj.getCookie("minitvmwebClose")=="y";var h=window.adsconfig&&window.adsconfig.minitv&&window.adsconfig.minitv.sticky?window.adsconfig.minitv:null;var a=!d&&h&&window.checkJarvisIsAdActive(h)==1;if(g&&!f&&!a&&!window._dfpObj.stickyRequest){window._dfpObj.makeATFadSticky(b)}}catch(i){console.log("J_LOG processAtfSticky",i) }};window._dfpObj.emitSlotLoadEvent=function(c){var b=c.getAdUnitPath();var a=c.getSlotElementId();if(b.toLowerCase().indexOf("_atf")>-1&&a.toLowerCase().indexOf("-atf")>-1){window._dfpObj.processAtfSticky(b,a)}};window._dfpObj.getParameterByName=function(b,a){a=a||window.location.href;b=b.replace(/[\[\]]/g,"\\$&");var d=new RegExp("[?&]"+b+"(=([^&#]*)|&|#|$)"),c=d.exec(a);if(!c){return null}if(!c[2]){return""}return decodeURIComponent(c[2].replace(/\+/g," "))};window._dfpObj.isTopBand=function(a){if(a.getAdUnitPath().toLowerCase().indexOf("top_strip")>-1){return true }else{if(a.getAdUnitPath().toLowerCase().indexOf("_topband")>-1){return true}else{if(a.getAdUnitPath().toLowerCase().indexOf("toi_mweb_fixed_atf")>-1){return true}else{return false}}}};window.googletag.cmd.push(function(){debugLogs("XSLT #### @@@ googletag Ready: ",(performance.now()/1000).toFixed(2)+"seconds");window.googletag.pubads().addEventListener("slotRenderEnded",function(c){var d=c.slot;window._dfpObj.callBaseScript("slotRenderEnded");if(d.getTargeting("failover").length>0){if(window._dfpObj.isInnov(d)&&typeof window._dfpObj._createGutterFailoverElement==="function"){window._dfpObj._createGutterFailoverElement() }window._dfpObj.failOverExecute(d,c.isEmpty)}if(window._dfpObj.isInnov(d)){if(location.href.indexOf("indiatimes.com/videos")===-1){document.body.classList.add("gutter")}document.body.classList.add("bgImg");if(document.getElementsByClassName("leftsocial").length>0){document.getElementsByClassName("leftsocial")[0].style.visibility="hidden"}if(c.isEmpty){window._dfpObj.changeStyleInnov()}}if(window._dfpObj.isInnov(d)&&!c.isEmpty){if(window._dfpObj.innovHardRefresh===1){window._dfpObj.innovHardRefresh=0; setTimeout(function(){window.googletag.pubads().refresh([d]);debugLogs("XSLT #### Innov Force 30s refresh DISPLAY (Render) Request SENT",d.getAdUnitPath())},30000)}}if(!c.isEmpty){window._dfpObj.emitSlotLoadEvent(c.slot);if(c.size.length===2&&c.size[1]===50&&window._dfpObj.isATF(c.slot)&&typeof makeATFSticky==="function"){makeATFSticky(c.slot.getSlotElementId())}if(c.slot.getTargeting("name").length>0&&JSON.parse(c.slot.getTargeting("name")[0])==="customInterstitial"&&typeof window._dfpObj.showInterstitial==="function"){if(typeof window.geoinfo==="object"&&window.geoinfo.CountryCode==="CA"){window._dfpObj.LoadTime=0 }setTimeout(function(){debugLogs("XSLT ### Show Interstitial setTimeout",window._dfpObj.LoadTime*3000);window._dfpObj.showInterstitial()},window._dfpObj.LoadTime*3000)}if(c.slot.getTargeting("name").length>0&&JSON.parse(c.slot.getTargeting("name")[0])==="desktopBottomSticky"&&typeof window._dfpObj.showDesktopBottomSticky==="function"){var a=parseInt(document.querySelectorAll("#"+c.slot.getSlotElementId()+" iframe")[0].getAttribute("height"));var b=(100-a);window._dfpObj.desktopBottomStickyMaxCap=b>0?0:b; if(window._dfpObj.desktopBottomStickyMaxCap===0){document.getElementById(window._dfpObj.desktopBottomStickyID).firstChild.style.display="none"}else{document.getElementById(window._dfpObj.desktopBottomStickyID).firstChild.style.display="block"}document.querySelector(".desktopBottomSticky_close").style.display="block";var f=document.getElementById(window._dfpObj.desktopBottomStickyID+"-ad");f.childNodes[0].style.transition="all .2s"}debugLogs("XSLT @@@ slotRenderEnded "+d.getAdUnitPath()+" : ",(performance.now()/1000).toFixed(2)+"seconds") }else{if(c.slot.getTargeting("name").length>0&&JSON.parse(c.slot.getTargeting("name")[0])==="desktopBottomSticky"&&typeof window._dfpObj.showDesktopBottomSticky==="function"){window._dfpObj.destroyDesktopBottomSticky()}debugLogs("XSLT @@@ slotRenderEnded Empty "+d.getAdUnitPath()+" : ",(performance.now()/1000).toFixed(2)+"seconds")}if(c.slot.getTargeting("name").length>0&&JSON.parse(c.slot.getTargeting("name")[0])==="customInterstitial"&&window&&window.TimesApps&&window.TimesApps.PopUpList&&window.TimesApps.PopUpList.interstitial){if(c.isEmpty){window.TimesApps.PopUpList.interstitial.callbacks.onShowCallback(false) }else{window.TimesApps.PopUpList.interstitial.callbacks.onShowCallback(true)}}});window.googletag.pubads().addEventListener("impressionViewable",function(a){if(window.location.href.indexOf("norefresh")===-1){window._dfpObj.viewableRefresh(a)}if(window._dfpObj.isTopBand(a.slot)){var b=60000;setTimeout(function(){googletag.pubads().refresh([a.slot]);debugLogs("XSLT #### TopBand Force "+b+" ms refresh DISPLAY (Render) Request SENT :",(performance.now()/1000).toFixed(2)+"seconds")},b)}debugLogs("XSLT @@@ impressionViewable "+a.slot.getAdUnitPath()+" : ",(performance.now()/1000).toFixed(2)+"seconds") })});(function(){try{var f=false;var c=[];function b(){c.forEach(function(h){if(typeof h==="function"){h(window.geoinfo)}})}function a(){var h=document.createElement("script");h.type="text/javascript";h.onload=function(i){f=true;window._dfpObj.setCookie("geo_country",window.geoinfo.CountryCode,1);window._dfpObj.setCookie("geo_continent",window.geoinfo.Continent,1);window._dfpObj.setCookie("geo_city",window.geoinfo.city,1);window._dfpObj.setCookie("geo_region",window.geoinfo.region_code,1);b()};h.src="https://geoapi.indiatimes.com/?cb=1"; h.async=true;document.getElementsByTagName("head")[0].appendChild(h)}window.geoCallback=function(h){if(f){h(window.geoinfo)}else{c.push(h)}};function d(){var k=window.geoinfo?window.geoinfo.CountryCode:window._dfpObj.getCookie("geo_country");var j=window.geoinfo?window.geoinfo.Continent:window._dfpObj.getCookie("geo_continent");var i=window.geoinfo?window.geoinfo.city:window._dfpObj.getCookie("geo_city");var h=window.geoinfo?window.geoinfo.region_code:window._dfpObj.getCookie("geo_region");if(k&&j){window.geoinfo={CountryCode:k,Continent:j,city:i||"",region_code:h||""}; f=true}else{a()}}d()}catch(g){}})();window._dfpObj.intCapMatched=false;window._dfpObj.intCap=window._dfpObj.intCap||[2,7,12];window._dfpObj.intSessionDuration=window._dfpObj.intSessionDuration||30;window._dfpObj.interstitialTimer=window._dfpObj.interstitialTimer||10;window._dfpObj.interstitialTimerCopy=window._dfpObj.interstitialTimer;window._dfpObj.di_pvcnttoi="di_pvcnttoi_new_v3";window._dfpObj.di_pvcnttoiDay="di_pvcnttoi_new_day";window._dfpObj.referrerCTR=0;window._dfpObj.isComingFromSearchEngine=function(){var a=document.referrer||""; return a.indexOf("www.google.co")>-1};window._dfpObj.showInterstitial=function(){var a=document.getElementById("int-div-wrapper");if(a){a.style.display="block"}else{return false}window._dfpObj.refreshCounter();setTimeout(function(){window._dfpObj.destroyOverlayInterstitial("int-div-wrapper")},window._dfpObj.interstitialTimer*1000)};window._dfpObj.updateCounter=function(){if(document.getElementById("intTimer")){window._dfpObj.interstitialTimer--;document.getElementById("intTimer").innerHTML=window._dfpObj.interstitialTimer.toString(); if(window._dfpObj.interstitialTimer>0){window._dfpObj.refreshCounter()}}};window._dfpObj.refreshCounter=function(){setTimeout(function(){window._dfpObj.updateCounter()},1000)};window._dfpObj.destroyOverlayInterstitial=function(a){var b=document.getElementById(a);window._dfpObj.intCapMatched=false;if(typeof window._dfpObj.exeTaboola==="function"){window._dfpObj.exeTaboola()}if(b){b.remove()}else{return false}};window._dfpObj.executeAdInterstitial=function(a){window.displayAllAdsInArray([{adCode:window._dfpObj.customInterstitialAdCode,divId:a,size:[[300,250],[336,280],[300,400],[320,480],[300,600]],name:"customInterstitial",checkJarvisIsAdActive:"mwebInterstitial"}]) };window._dfpObj.customInterstitial=function(b){if(window.__CLIENT__&&window.__CLIENT__.indexOf("newszop")>-1){return true}if(b){return true}try{if(typeof window.geoinfo==="object"&&adsconfig&&window.adsconfig.hasOwnProperty("mwebInterstitial")&&window.adsconfig.mwebInterstitial.hasOwnProperty("geoBasedCap")){adsconfig.mwebInterstitial.geoBasedCap.forEach(function(p){if(p.geo.join("|").indexOf(window.geoinfo.CountryCode)>-1&&typeof p.caps==="string"){window._dfpObj.intCap=p.caps.split(",").map(function(q){return parseInt(q,10) })}})}}catch(d){}window._dfpObj.interstitialTimer=window._dfpObj.interstitialTimerCopy;if(window._dfpObj.getCookie("di_webInterstitial")!==undefined){return}var g=window._dfpObj.getCookie(window._dfpObj.di_pvcnttoi)||0;var h=window._dfpObj.getCookie(window._dfpObj.di_pvcnttoiDay)||0;h++;if(window._dfpObj.intCap[0]>=h&&g===0){g=h}else{g++}window._dfpObj.intCapMatched=(b===true)?true:window._dfpObj.intCap.indexOf(g)>-1;if(window._dfpObj.isComingFromSearchEngine()&&window._dfpObj.referrerCTR===0){window._dfpObj.referrerCTR++; if(window._dfpObj.intCapMatched===false){window._dfpObj.setCookie(window._dfpObj.di_pvcnttoi,g,window._dfpObj.intSessionDuration)}return}else{window._dfpObj.setCookie(window._dfpObj.di_pvcnttoi,g,window._dfpObj.intSessionDuration)}window._dfpObj.setCookie(window._dfpObj.di_pvcnttoiDay,g,24*60);if(window._dfpObj.intCapMatched){var a="div-gpt-ad-int-0-1-"+Math.floor((Math.random()*100)+1);var j="int-div-wrapper";var o=document.createElement("div");var c="transition: all 0.8s ease-in-out; display: none; position: fixed; top: 0; left: 0; bottom: 0; right: 0; z-index: 999999; background: #000000ad;"; var i="position: fixed; inset: 0px; margin: auto; z-index: 299; justify-content:center; align-items: center;";var n="display: block !important; font-size: 12px; line-height: 16px; color: #e21b22; font-family: Verdana,arial,sans-serif; text-transform: uppercase; padding: 4px 24px; border: 1px solid #e21b22; border-radius: 4px; text-align: center; font-weight: 600; position: fixed; left: 0; bottom: 8px; right: 0; width: 260px; z-index: 1000; margin: 0 auto; background: #fff;";var f="height: 25px; width: 25px; display: flex; justify-content: center; align-items: center; position: fixed; z-index: 99999999; top: 8px; right: 8px; background: #ffffff; border-radius: 50%; line-height: 0px; font-size: 17px; font-weight: 500; font-family: sans-serif;"; o.innerHTML="
";var l=document.createElement("button");l.style.cssText=n;l.innerHTML="Redirecting in "+window._dfpObj.interstitialTimer.toString()+" seconds";l.onclick=function(){window._dfpObj.destroyOverlayInterstitial(j)};o.appendChild(l);var m=document.createElement("button");m.style.cssText=f;m.innerHTML="
"; m.onclick=function(){window._dfpObj.destroyOverlayInterstitial(j)};o.appendChild(m);o.style.cssText=c;o.id=j;try{document.body.appendChild(o);window._dfpObj.executeAdInterstitial(a)}catch(k){if(window.ga){ga("send","event","IntFailed",k.message,"",1,{nonInteraction:1})}}}};if(window._dfpObj.isMobile()){if(window.location.host.indexOf("timesofindia")>-1){googletag.cmd.push(function(){window._dfpObj.setCookie("di_webInterstitial",1,30);setTimeout(function(){window.displayAllAdsInArray([{adCode:window._dfpObj.customInterstitialAdCode||"/7176/TOI_MWeb/TOI_MWeb_Home/TOI_HP_Google_Mweb_Interstitial",divId:"NIL",size:[[1,1]],name:"webInterstitial"}]) },5000)})}else{if(/bot|googlebot|crawler|spider|robot|crawling|Chrome-Lighthouse|Googlebot-Mobile/i.test(navigator.userAgent)||window.location.href.indexOf("/gn-advertorial/")>-1||(window.adsconfig.hasOwnProperty("channel")&&window.adsconfig.channel=="np")||window._dfpObj.frmapp||window.location.href.indexOf("/shorttakes/")>-1||window.location.href.indexOf("/ifrmwdt")>-1||window.location.href.indexOf("back=1")>-1){}else{if(window._dfpObj.isMobile()&&typeof di==="undefined"&&(window.isPrimeLayout===undefined||window.isPrimeLayout!==true)&&!window._dfpObj.skipInterstitial){var _execustomInterstitial=function(){if(document.readyState==="interactive"||document.readyState==="complete"){googletag.cmd.push(function(){window._dfpObj.customInterstitial() })}else{document.addEventListener("DOMContentLoaded",function(a){googletag.cmd.push(function(){window._dfpObj.customInterstitial()})})}};if(typeof window.geoCallback==="function"){window.geoCallback(_execustomInterstitial)}else{_execustomInterstitial()}}}}}function execute_ads(){if(window.Times&&window.Times.hasOwnProperty("pageLoadAdsArr")&&window.Times.pageLoadAdsArr&&window.Times.pageLoadAdsArr.length>0){window._dfpObj.firstFoldAdRequestHigh(window.Times.pageLoadAdsArr)}else{debugLogs("XSLT ### pageLoadAdsArr Empty : ",(performance.now()/1000).toFixed(2)+"seconds"); window.googletag.cmd.push(function(){window.displayAllAdsInArray()})}}if(typeof window.geoCallback==="function"){window.geoCallback(execute_ads)}else{execute_ads()}debugLogs("XSLT #### Script loaded 22 :",(performance.now()/1000).toFixed(2)+"seconds");function _toi_ExecuteTOIAdsCallBacks(){try{if(window._toi_adsCallbackQueue&&window._toi_adsCallbackQueue.length>0){window._toi_adsCallbackQueue.forEach(function(b,c){b()})}delete window._toi_adsCallbackQueue}catch(a){debugLogs("XSLT #### error",a)}}window.addEventListener("PAGE_MOUNTED",_toi_ExecuteTOIAdsCallBacks,false); (function(){window.Times=window.Times||{};function c(k,g,i){var j=getComputedStyle(k);if(j&&j.position==="sticky"){var h=i-g;if(document.getElementById("toiPlayerContainer")&&k.id=="tabListUl"){h=(document.getElementById("toiPlayerContainer").parentElement.offsetHeight+28)-g}k.style.top=h+"px"}}function f(h,g){h.querySelectorAll("[data-translate-sticky]").forEach(function(i){c(i,g,i.dataset.translateSticky)})}var d=function(g,i){var h=document.querySelectorAll("[data-translate-id]");if(h.length>0){h.forEach(function(l){var k=l.dataset.translateId; var j=0;if(k){g.forEach(function(m){if(m.resizerTarget.indexOf(k)>-1){j+=m.resizedHeight||0}})}else{g.forEach(function(m){j+=m.resizedHeight||0})}if(!j&&!i){return}l.style.transform="translateY("+j+"px)";l.dataset.translateheight=j;l.classList.add("cls_animate");c(l,j,l.dataset.stickyTop);f(l,j);if(l.dataset.bottomSpace){l.style.marginBottom=(+l.dataset.bottomSpace+j)+"px"}});if(window._dfpObj&&window._dfpObj.isMobile()&&document.querySelector(".contentwrapper")){document.querySelector(".contentwrapper").style.overflowX="clip" }}};var a=function(h,g){var i=new ResizeObserver(function(k){try{var j=0;var l=0;k.forEach(function(p){var n=parseInt(p.target.dataset.resizerId)||0;var o=g[n];if(o&&p.contentRect.height>o.height){o.resizedHeight=p.contentRect.height-o.height;j=1}if(p.contentRect.height==o.height&&o.resizedHeight>o.height){o.resizedHeight=p.contentRect.height;j=1;l=1}});if(j){d(g,l)}}catch(m){}});h.forEach(function(j){i.observe(j)})};function b(){var g=document.querySelectorAll("[data-resizer-target]");var j=document.querySelectorAll("[data-translate-id]"); var k=document.querySelector("[data-translate-id='cw']");var i=document.querySelector("[data-translate-page='1']");var l=document.querySelector(".wrapperclearfix");if(!(l&&l.dataset&&l.dataset.translateId)&&!i){if(!document.querySelector(".vdoowrapperclearfix")){return}}if(!(j.length>0)||!(j.length>0)||typeof getComputedStyle!=="function"||window.TimesApps._loadedClshandler||!k){return}var h=[];g.forEach(function(m,o){var p=m.parentNode;var n=p?getComputedStyle(p):{};if(!n.height||n.height==="0px"){var q=parseFloat(n.minHeight)||0; p.style.height=q+"px"}m.dataset.resizerId=o;h[o]={height:p.offsetHeight};if(m.dataset.resizerTarget){h[o]["resizerTarget"]=m.dataset.resizerTarget.split(",")}});if(h.length&&typeof ResizeObserver!=="undefined"){window.TimesApps._loadedClshandler=true;a(g,h)}else{}}window.TimesApps=window.TimesApps||{};TimesApps.initCLSHandlingV2=b;b()})();var colombia=colombia||{};colombia.fns=colombia.fns||[];window._dfpObj.ctnAdsLoad=false;window._dfpObj.ctnAds={loadColombiaJS:function(){if(window._dfpObj.ctnAdsLoad){return }window._dfpObj.ctnAdsLoad=true;colombiaProfileID="2658/toi";if(window.pathname.match("/etimes|/entertainment|/tv|/life-style|/web-series|/topic")){colombiaProfileID=65615}var a=document.createElement("script");a.async=true;a.type="text/javascript";a.src="https://static.clmbtech.com/ad/commons/js/"+colombiaProfileID+"/colombia_v2.js";var b=document.getElementsByTagName("script")[0];b.parentNode.insertBefore(a,b);if(!Object.keys){Object.keys=function(f){var d=[];for(var c in f){if(f.hasOwnProperty(c)){d.push(c) }}return d}}debugLogs("XSLT #### ColombiaJS request sent",performance.now())}};var ctnAds=window._dfpObj.ctnAds;window._dfpObj._backScript=function(){(function(g,b){try{var d=(document.referrer!="")?document.referrer.match(/:\/\/(.[^/]+)/)[1]:document.referrer;if(d.indexOf("indiatimes.com")>-1||d.indexOf("timesofindia.com")>-1||d.indexOf("gadgetsnow.com")>-1||d.indexOf("newspointapp.com")>-1||d.indexOf("indiatimes.com")>-1||d.indexOf("eisamay.com")>-1||d.indexOf("maharashtratimes.com")>-1||d.indexOf("vijaykarnataka.com")>-1||d.indexOf("samayam.com")>-1){return }if(g.location&&g.location.href.indexOf("utm_source=vivo")>-1){return}var c={};var i="";if(g.location.search){i=(g.location.search.indexOf("back=1")>-1)?g.location.search:g.location.search+"&back=1"}else{i="?back=1"}var a=(g.location.pathname==="/"&&g.location.href.indexOf("timesofindia")>-1)?b.origin+"/most-popular-news":b.origin;var h=a+i;history.pushState(c,document.title,b.href);g.addEventListener("popstate",function(j){if(b.href.indexOf("#back")===-1&&b.href.indexOf("google_vignette")===-1&&j.state===null){history.pushState({},document.title,h); b.replace(h);j.stopImmediatePropagation()}})}catch(f){}}(window,location))};if(/googlebot/i.test(navigator.userAgent)){}else{window._dfpObj._backScript()}window._dfpObj=window._dfpObj||{};window._dfpObj.AndbeyondScriptLoaded=true;window._dfpObj.AndbeyondScript=function(){var a=window._dfpObj.AndbeyondScriptLoaded;var f=window.Times&&Times.adsKeys&&Times.adsKeys.Hyp1;var g=window.Times&&Times.adsKeys&&Times.adsKeys.SCN;var h=window.adsconfig&&adsconfig.revenue_section&&adsconfig.revenue_section.hyp1Vals||[]; if(a&&f&&h&&h.indexOf(f)>-1){a=false}if(g==="business"||g==="world"){a=false}if(a){var b=343695;if(window.adsconfig.hasOwnProperty("channel")){if(window.adsconfig.channel=="np"){b=552687}else{if(window.adsconfig.channel=="gn"){b=550209}}}else{if(window.Times&&window.Times.adsKeys&&window.Times.adsKeys.hasOwnProperty("Channel")&&window.Times.adsKeys.Channel==="etimes"){b=552488}}var c=document.createElement("script");c.async=true;c.type="text/javascript";c.src="//rtbcdn.andbeyond.media/prod-global-"+b+".js"; var d=document.getElementsByTagName("script")[0];d.parentNode.insertBefore(c,d);window._dfpObj.AndbeyondScriptLoaded=false;debugLogs("########## AndbeyondScript executed",(performance.now()/1000).toFixed(2)+"seconds")}};window._dfpObj.scrollPos=0;window._dfpObj.scrollCalculation=0;window._dfpObj.desktopBottomStickyInitiated=0;window._dfpObj.desktopBottomStickyID="desktopBottomSticky";window._dfpObj.desktopBottomStickyTriggerClass="desktop_paisa";if(window.location.href.indexOf("/most-popular-news")>-1){window._dfpObj.desktopBottomStickyTriggerClass="header-ad" }window._dfpObj.desktopBottomStickyMaxCap=0;window._dfpObj.destroyDesktopBottomSticky=function(){document.getElementById(window._dfpObj.desktopBottomStickyID).outerHTML="";window._dfpObj.desktopBottomStickyObserver.unobserve(document.querySelector("."+window._dfpObj.desktopBottomStickyTriggerClass))};window._dfpObj.hasClass=function(a,b){if((" "+a.className+" ").indexOf(" "+b+" ")>-1){return"hide"}else{return"show"}};window._dfpObj.expandDesktopBottomSticky=function(b){var a=document.getElementById(window._dfpObj.desktopBottomStickyID); var d=document.getElementById(window._dfpObj.desktopBottomStickyID+"-ad");if(a&&d){var b=window._dfpObj.hasClass(a,"dbs_expand");var c;if(b==="hide"){a.style.maxHeight="none";d.style.maxHeight="100px";a.style.bottom="-105px";a.firstChild.classList.remove("active");a.classList.remove("dbs_expand");document.querySelector(".desktopBottomSticky_close").classList.remove("btn_close")}else{if(b==="show"){a.firstChild.classList.add("active");a.style.maxHeight="310px";d.style.maxHeight="300px";a.style.bottom="0px"; d.firstChild.style.marginTop="0";a.classList.add("dbs_expand");document.querySelector(".desktopBottomSticky_close").classList.add("btn_close")}}}};window._dfpObj.showDesktopBottomSticky=function(b){var a=document.getElementById(window._dfpObj.desktopBottomStickyID);if(b==="hide"&&window._dfpObj.hasClass(a,"dbs_expand")!=="hide"){a.classList.remove("bottom");document.querySelector(".desktopBottomSticky_close").classList.remove("btn_close")}else{if(b==="show"){a.classList.add("bottom");document.querySelector(".desktopBottomSticky_close").classList.add("btn_close") }}};window._dfpObj.desktopBottomSticky=function(){googletag.cmd.push(function(){window.displayAllAdsInArray([{adCode:"/7176/TOI/TOI_ROS/TOI_ROS_BTF_Sticky_728",divId:window._dfpObj.desktopBottomStickyID+"-ad",size:[[468,60],[980,200],[970,250],[728,90],[750,200],[930,180],[950,90],[980,120][970,120],[970,90],[750,300]],name:"desktopBottomSticky",perpetualRefresh:1}])});var a=document.createElement("div");a.id=window._dfpObj.desktopBottomStickyID;a.setAttribute("class","vkd");a.innerHTML="
"; a.innerHTML+=""; document.body.appendChild(a);window._dfpObj.desktopBottomStickyInitiated++;window._dfpObj.desktopBottomStickyObserver.observe(document.querySelector("."+window._dfpObj.desktopBottomStickyTriggerClass))};window._dfpObj.throttle=function(a,c){var b=Date.now();return function(){if((b+c-Date.now())<0){a();b=Date.now()}}};window._dfpObj.desktopBottomStickyScrollThrottle=function(){var g=(document.body.getBoundingClientRect()).top;if(g<-300&&window._dfpObj.desktopBottomStickyInitiated===0){window._dfpObj.desktopBottomSticky() }if(!document.getElementById(window._dfpObj.desktopBottomStickyID+"-ad")){return}var b=document.getElementById(window._dfpObj.desktopBottomStickyID);var h=document.getElementById(window._dfpObj.desktopBottomStickyID+"-ad");if(h&&h.childNodes[0]&&b&&window._dfpObj.desktopBottomStickyMaxCap<1&&g<-650&&window._dfpObj.hasClass(b,"dbs_expand")!=="hide"){if(g>window._dfpObj.scrollPos){var a=g-window._dfpObj.scrollPos;var f=a/window.innerHeight;var c=-(f*window._dfpObj.desktopBottomStickyMaxCap);var d=window._dfpObj.scrollCalculation+c; window._dfpObj.scrollCalculation=d>=0?0:d;h.childNodes[0].style.marginTop=window._dfpObj.scrollCalculation+"px"}else{var a=window._dfpObj.scrollPos-g;var f=a/window.innerHeight;var c=-(f*window._dfpObj.desktopBottomStickyMaxCap);var d=window._dfpObj.scrollCalculation-c;window._dfpObj.scrollCalculation=d>=0?0:d;window._dfpObj.scrollCalculation=d-1||(!_dfpObj.isMobile()&&(window.location.href.indexOf("/most-popular-news")>-1)&&document.querySelector("."+window._dfpObj.desktopBottomStickyTriggerClass))){window._dfpObj.desktopBottomStickyScrollEvent(); window._dfpObj.desktopBottomStickyObserver=new IntersectionObserver(function(a){a.forEach(function(c){var b=document.getElementById(window._dfpObj.desktopBottomStickyID);if(c.isIntersecting&&b&&window._dfpObj.hasClass(b,"dbs_expand")!=="hide"){window._dfpObj.showDesktopBottomSticky("hide");b.style.bottom=null}else{window._dfpObj.showDesktopBottomSticky("show");b.style.bottom=null;window._dfpObj.scrollCalculation=0}})},{root:null,rootMargin:"0px",threshold:0.1})}},1000);function getChannel(){var a="others"; if(typeof window.toiprops!="undefined"){a=window.toiprops.hasOwnProperty("_Channel")?window.toiprops._Channel:""}if(typeof window.Times!="undefined"&&window.Times.hasOwnProperty("adsKeys")){a=window.Times.adsKeys.hasOwnProperty("Channel")?window.Times.adsKeys.Channel:""}return a}function renderOutOfPageAd(c,b,d,h){var a={adCode:c||"",divId:b||"",size:d||[[1,1]]};var g=document.createElement("div");g.setAttribute("id",b||"");if(h){g.setAttribute("data-checkJarvisIsAdActive",h);a.checkJarvisIsAdActive=h }document.body.appendChild(g);try{window.displayAllAdsInArray([a])}catch(f){console.log(f)}}function insertOutOfPageAdThroughUrlParam(){try{var b=new URLSearchParams(window.location.search);if(b.get("outofpage")&&b.get("adcode")){var d=b.get("adcode");var a="div-gpt-ad-custom-012345";var c=[[1,1]];renderOutOfPageAd(d,a)}}catch(f){console.log(f)}}function insertBeaconAd(){if(window.adsconfig&&!window.adsconfig.hasOwnProperty("channel")){window.googletag.cmd.push(function(){try{var f=getChannel();var g="beaconAdV2"; var b=document.querySelectorAll("[data-checkJarvisIsAdActive=adName]");if(b.length<=0&&f){var c="";var a={web:{toi:"/7176/TOI/TOI_ROS/TOI_ROS_Beacon1x1",others:"/7176/Etimes_web/Etimes_ROS/Etimes_ROS_Beacon1x1"},mweb:{toi:"/7176/TOI_MWeb/TOI_MWeb_ROS/TOI_MWeb_ROS_Beacon1x1",others:"/7176/Etimes_mweb/Etimes_mweb_Home/Etimes_MWeb_HP_Beacon1x1"}};if(window._dfpObj&&!window._dfpObj.isMobile()){if(f==="toi"){c=a.web.toi}else{c=a.web.others}}else{if(f==="toi"){c=c=a.mweb.toi}else{c=c=a.mweb.others}}renderOutOfPageAd(c,"div-gpt-ad-beacon-0",[[1,1]],g) }}catch(d){console.log(d)}})}}if(typeof window.geoCallback==="function"){window.geoCallback(insertBeaconAd)}else{insertBeaconAd()}insertOutOfPageAdThroughUrlParam();window._dfpObj.exeTaboolaSDK=false;window._dfpObj.exeTaboolaContainer=function(){window._taboola=window._taboola||[];if(window._dfpObj.exeTaboolaSDK===false){return}var a=true;var b=window._dfpObj.isMobile()?"mWeb":"web";Array.from(document.getElementsByClassName("wdt-taboola")).forEach(function(k){var j=k.getAttribute("data-mode");if(j==="thumbnails-mid"&&window._dfpObj.isMobile()){j="thumbnails-mid-mobile" }var d=k.getAttribute("id");var f=d.replace(/^\D+/,"");if(parseInt(f)>1000&&window.location.href.indexOf(f)===-1){return}if(a){if(typeof window.ga==="function"){ga("send","event","taboola_ad_widget",b,window.location.pathname,1,{nonInteraction:1})}else{setTimeout(function(){if(typeof window.ga==="function"){ga("send","event","taboola_ad_widget_timeout",b,window.location.pathname,1,{nonInteraction:1})}},2000)}var i=k.getAttribute("data-pagetype")||"article";var h={url:window.location.href};h[i]="auto"; _taboola.push(h);window.dataLayer=window.dataLayer||[];dataLayer.push({event:"component_load",type:"taboola_ad_widget"});debugLogs("XSLT #### Taboola body :",(performance.now()/1000).toFixed(2)+"seconds")}a=false;var c=k.getAttribute("data-target_type");var g=k.getAttribute("data-placement");_taboola.push({mode:j,container:d,placement:g,target_type:c});k.classList.remove("wdt-taboola")})};window._dfpObj.exeTaboola=function(){if(window._dfpObj.exeTaboolaSDK){window._dfpObj.exeTaboolaContainer();return }if(document.getElementsByClassName("wdt-taboola").length===0){return}if(window.adsconfig&&!window.adsconfig.hasOwnProperty("taboolaPublisherID")){return}window._dfpObj.loadJS("//cdn.taboola.com/libtrc/"+window.adsconfig.taboolaPublisherID+"/loader.js",true,window._dfpObj.exeTaboolaContainer);debugLogs("XSLT #### Taboola SDK :",(performance.now()/1000).toFixed(2)+"seconds");window._dfpObj.exeTaboolaSDK=true};window._dfpObj.exeTaboola();document.addEventListener("readystatechange",function(a){if(document.readyState==="interactive"){window._dfpObj.exeTaboola() }});window._dfpObj.exeTaboola();document.addEventListener("readystatechange",function(a){if(document.readyState==="interactive"){window._dfpObj.exeTaboola()}});window.googletag.cmd.push(function(){if(window.Times.hasOwnProperty("adsKeys")&&window.Times.adsKeys.hasOwnProperty("Hyp1")&&upskill.indexOf(window.Times.adsKeys.Hyp1)>-1){setInterval(function(){window._dfpObj.removeDiv("ctn-workaround-div")},5000)}document.addEventListener("DOMContentLoaded",function(a){window.buildAdsAj()});window.buildAdsAj(); setTimeout(function(){window.displayAllAdsInArray(window.Times.pageLoadAdsArr1x1)},10000)});