November 10, 2024

Jimmy Kimmel’s Oscars Jokes, Ranked, From Best to Most Groan-Worthy

Jimmy Kimmel #JimmyKimmel

“);var p=y[n.size_id].split(“x”).map(function(e){return Number(e)}),g=(0,i.Z)(p,2);f.width=g[0],f.height=g[1]}f.rubiconTargeting=(Array.isArray(n.targeting)?n.targeting:[]).reduce(function(e,t){return e[t.key]=t.values[0],e},{rpfl_elemid:c.adUnitCode}),t.push(f)}else(0,m.H)(“Rubicon: bidRequest undefined at index position:”+r,d,e);return t},[]).sort(function(e,t){return(t.cpm||0)-(e.cpm||0)})},getUserSyncs:function(e,t,n,r,i){if(!S&&e.iframeEnabled){var o,a={};return n&&(“boolean”==typeof n.gdprApplies&&(a.gdpr=Number(n.gdprApplies)),”string”==typeof n.consentString&&(a.gdpr_consent=n.consentString)),r&&(a.us_privacy=encodeURIComponent(r)),null!=i&&i.gppString&&(a.gpp=i.gppString,a.gpp_sid=null==(o=i.applicableSections)?void 0:o.toString()),a=Object.keys(a).length?”?”+(0,m.Yp)(a):””,S=!0,{type:”iframe”,url:”https://”+(h.syncHost||”eus”)+”.rubiconproject.com/usync.html”+a}}},transformBidParams:function(e,t){return(0,m.uh)({accountId:”number”,siteId:”number”,zoneId:”number”},e)}};function w(e,t){var n;return n=e.params.referrer?e.params.referrer:t.refererInfo.page,e.params.secure?n.replace(/^http:/i,”https:”):n}function T(e){var t,n=document.getElementById(e.adUnitCode);(t=n.querySelector(“div[id^=’google_ads’]”))&&t.style.setProperty(“display”,”none”),function(e){var t=e.querySelector(“script[id^=’sas_script’]”),n=t&&t.nextSibling;n&&”iframe”===n.localName&&n.style.setProperty(“display”,”none”)}(n);var r=e.renderer.getConfig();e.renderer.push(function(){window.MagniteApex.renderAd({width:e.width,height:e.height,vastUrl:e.vastUrl,placement:{attachTo:n,align:r.align||”center”,position:r.position||”append”},closeButton:r.closeButton||!1,label:r.label||void 0,collapse:r.collapse||!0})})}function E(e,t){var n=e.params;if(t===l.pX){var r=[];return n.video&&n.video.playerWidth&&n.video.playerHeight?r=[n.video.playerWidth,n.video.playerHeight]:Array.isArray((0,v.Z)(e,”mediaTypes.video.playerSize”))&&1===e.mediaTypes.video.playerSize.length?r=e.mediaTypes.video.playerSize[0]:Array.isArray(e.sizes)&&e.sizes.length>0&&Array.isArray(e.sizes[0])&&e.sizes[0].length>1&&(r=e.sizes[0]),r}var i=[];return Array.isArray(n.sizes)?i=n.sizes:void 0!==(0,v.Z)(e,”mediaTypes.banner.sizes”)?i=C(e.mediaTypes.banner.sizes):Array.isArray(e.sizes)&&e.sizes.length>0?i=C(e.sizes):(0,m.yN)(“Rubicon: no sizes are setup or found”),function(e){var t=[15,2,9];return i.sort(function(e,n){var r=t.indexOf(e),i=t.indexOf(n);return r>-1||i>-1?-1===r?1:-1===i?-1:r-i:e-n})}()}function C(e){return(0,m.sF)(e).reduce(function(e,t){var n=parseInt(y[t],10);return n&&e.push(n),e},[])}function x(e,t){void 0===t&&(t=!1);var n,r,i,a,s,u=[];if(n=e,r=void 0!==(0,v.Z)(n,”mediaTypes.”+l.pX),i=void 0!==(0,v.Z)(n,”mediaTypes.”+l.Mk),a=void 0!==(0,v.Z)(n,”params.bidonmultiformat”),s=”object”!==(0,o.Z)((0,v.Z)(n,”params.video”)),r&&a||(i&&s&&(r=!1),r&&s&&(0,g.N)(n,”params.video”,{}),r)){if(-1===[“outstream”,”instream”].indexOf((0,v.Z)(e,”mediaTypes.”+l.pX+”.context”)))return t&&(0,m.H)(“Rubicon: mediaTypes.video.context must be outstream or instream”),u;if(E(e,l.pX).length0)return f.getDataFromLocalStorage(e)}}function h(e,t){return function(n,r){t?y(t,e,function(){n(r()||e)})():n(e)}}function y(e,t,n){if(void 0===t&&(t=””),e){var r=(0,o.en)(e);r.search.id=encodeURIComponent(“pubcid:”+t);var i=(0,o.Q2)(r);return function(){(0,o.hq)(i,n)}}}function _(){return!!(f.cookiesAreEnabled()&&b(g,p)||f.hasLocalStorage()&&b(g,m))}var I={name:”sharedId”,aliasName:”pubCommonId”,gvlid:d.$P,decode:function(e,t){if(!_())return(0,o.PN)(” Decoded value PubCommonId “+e),{pubcid:e};(0,o.PN)(“PubCommonId decode: Has opted-out”)},getId:function(e,t,n){if(void 0===e&&(e={}),_())(0,o.PN)(“PubCommonId: Has opted-out”);else{if(!s.VP.getCoppa()){var i=e.params,a=(i=void 0===i?{}:i).create,u=void 0===a||a,d=i.pixelUrl,c=n;if(!c){try{“object”===(0,r.Z)(window[v])&&(c=window[v].getId())}catch(e){}c||(c=u&&(0,o.wn)()?(0,o.DO)():void 0)}return{id:c,callback:h(c,d)}}(0,o.PN)(“PubCommonId: IDs not provided for coppa requests, exiting PubCommonId”)}},extendId:function(e,t,n){if(void 0===e&&(e={}),_())return(0,o.PN)(“PubCommonId: Has opted-out”),{id:void 0};if(s.VP.getCoppa())(0,o.PN)(“PubCommonId: IDs not provided for coppa requests, exiting PubCommonId”);else{var r=e.params,i=(r=void 0===r?{}:r).extend,a=void 0!==i&&i,u=r.pixelUrl;if(a)return u?{callback:y(u,n)}:{id:n}}},domainOverride:(0,l.U)(f,”sharedId”),eids:{pubcid:{source:”pubcid.org”,atype:1}}};(0,a.Bx)(“userId”,I),(0,i.z)(“sharedIdSystem”)}},function(e){e.O(0,[748],function(){return 4834,e(e.s=4834)}),e.O()}]),(self.pbjsChunk=self.pbjsChunk||[]).push([[29],{6401:function(e,t,n){var r=n(8640),i=n(4358),o=n(265),a=n(5339),s=n(5164),u=”teads”,d=(0,s.df)({bidderCode:u}),c={code:u,gvlid:132,supportedMediaTypes:[“video”,”banner”],isBidRequestValid:function(e){var t=!1;if(void 0!==e.params){var n=m((0,i.NA)(e.params,”placementId”)),r=m((0,i.NA)(e.params,”pageId”));t=n&&r}return t||(0,i.H)(“Teads placementId and pageId parameters are required. Bid aborted.”),t},buildRequests:function(e,t){var n,r=e.map(p),i=Object.assign(Object.assign({referrer:l(t),pageReferrer:document.referrer,networkBandwidth:(n=window.navigator,n&&n.connection&&n.connection.downlink>=0?n.connection.downlink.toString():””),timeToFirstByte:f(window),data:r,deviceWidth:screen.width,hb_version:”8.9.0″},function(e){var t={unifiedId2:”uid2.id”,liveRampId:”idl_env”,lotamePanoramaId:”lotamePanoramaId”,id5Id:”id5id.uid”,criteoId:”criteoId”,yahooConnectId:”connectId”,quantcastId:”quantcastId”,epsilonPublisherLinkId:”publinkId”,publisherFirstPartyViewerId:”pubcid”,merkleId:”merkleId.id”,kinessoId:”kpuid”},n={};for(var r in t){var i=t[r],a=(0,o.Z)(e,”0.userId.”+i);a&&(n[r]=a)}return n}(e)),function(e){var t=(0,o.Z)(e,”0.userId.teadsId”);if(t)return{firstPartyCookieTeadsId:t};if(d.cookiesAreEnabled(null)){var n=d.getCookie(“_tfpvi”,null);if(n)return{firstPartyCookieTeadsId:n}}return{}}(e)),a=e[0];a.schain&&(i.schain=a.schain);var s=t.gdprConsent;if(t&&s){var u=”boolean”==typeof s.gdprApplies,c=”string”==typeof s.consentString,m=u?function(e,t){var n=12;return e?t&&!t.isServiceSpecific&&(n=11):n=0,n}(s.gdprApplies,s.vendorData):22;i.gdpr_iab={consent:c?s.consentString:””,status:m,apiVersion:s.apiVersion}}t&&t.uspConsent&&(i.us_privacy=t.uspConsent);var g=(0,o.Z)(a,”ortb2.device.sua”);return g&&(i.userAgentClientHints=g),{method:”POST”,url:”https://a.teads.tv/hb/bid-request”,data:JSON.stringify(i)}},interpretResponse:function(e,t){var n=[];return(e=e.body).responses&&e.responses.forEach(function(e){var t={cpm:e.cpm,width:e.width,height:e.height,currency:e.currency,netRevenue:!0,ttl:e.ttl,meta:{advertiserDomains:e&&e.adomain?e.adomain:[]},ad:e.ad,requestId:e.bidId,creativeId:e.creativeId,placementId:e.placementId};e.dealId&&(t.dealId=e.dealId),n.push(t)}),n}};function l(e){var t=””;return e&&e.refererInfo&&e.refererInfo.page&&(t=e.refererInfo.page),t}function f(e){var t=e.performance||e.webkitPerformance||e.msPerformance||e.mozPerformance,n=t&&”function”==typeof t.getEntriesByType&&”[object Function]”===Object.prototype.toString.call(t.getEntriesByType)&&t.getEntriesByType(“navigation”)[0]&&t.getEntriesByType(“navigation”)[0].responseStart&&t.getEntriesByType(“navigation”)[0].requestStart&&t.getEntriesByType(“navigation”)[0].responseStart>0&&t.getEntriesByType(“navigation”)[0].requestStart>0&&Math.round(t.getEntriesByType(“navigation”)[0].responseStart-t.getEntriesByType(“navigation”)[0].requestStart);if(n)return n.toString();var r=t&&t.timing.responseStart&&t.timing.requestStart&&t.timing.responseStart>0&&t.timing.requestStart>0&&t.timing.responseStart-t.timing.requestStart;return r?r.toString():””}function p(e){var t,n,r={},a=(0,i.NA)(e.params,”placementId”),s=(0,i.NA)(e.params,”pageId”),u=(0,o.Z)(e,”ortb2Imp.ext.gpid”),d=(0,o.Z)(e,”mediaTypes.video.plcmt”);return r.sizes=function(e){return(0,i.sF)(function(e){var t=(0,o.Z)(e,”mediaTypes.video.playerSize”),n=(0,o.Z)(e,”mediaTypes.video.sizes”),r=(0,o.Z)(e,”mediaTypes.banner.sizes”);return(0,i.kJ)(r)||(0,i.kJ)(t)||(0,i.kJ)(n)?[r,n,t].reduce(function(e,t){return(0,i.kJ)(t)&&((0,i.kJ)(t[0])?t.forEach(function(t){e.push(t)}):e.push(t)),e},[]):e.sizes}(e))}(e),r.bidId=(0,i.An)(“bidId”,e),r.bidderRequestId=(0,i.An)(“bidderRequestId”,e),r.placementId=parseInt(a,10),r.pageId=parseInt(s,10),r.adUnitCode=(0,i.An)(“adUnitCode”,e),r.transactionId=(null==(t=e.ortb2Imp)||null==(n=t.ext)?void 0:n.tid)||””,u&&(r.gpid=u),d&&(r.videoPlcmt=d),r}function m(e){return parseInt(e)>0}(0,a.dX)(c),(0,r.z)(“teadsBidAdapter”)}},function(e){e(e.s=6401)}]),(self.pbjsChunk=self.pbjsChunk||[]).push([[161],{8622:function(e,t,n){var r=n(9062),i=n(3324),o=n(8640),a=n(4358),s=n(5102),u=n(2797),d=n(8792),c=n(3193),l=n(5164),f=n(4614),p=n(571),m=n(4947),g=n(286),v=n(9633),b=!1,h={maxTopicCaller:2,bidders:[{bidder:”pubmatic”,iframeURL:”https://ads.pubmatic.com/AdServer/js/topics/topics_frame.html”},{bidder:”rtbhouse”,iframeURL:”https://topics.authorizedvault.com/topicsapi.html”}]},y=(0,l.eA)(“topicsFpd”),_=”prebid:topics”,I=[],w={1:600,2:601,3:602,4:603};function T(e,t){return t.reduce(function(t,n){var r=n[e];return t.hasOwnProperty(r)||(t[r]=[]),t[r].push(n),t},{})}function E(e,t,n){return void 0===n&&(n=w),Object.entries(T(“taxonomyVersion”,t)).filter(function(e){var t=(0,i.Z)(e,1)[0];return!!n.hasOwnProperty(t)||((0,a.yN)(‘Unrecognized taxonomyVersion from Topics API: “‘+t+'”; topic will be ignored’),!1)}).flatMap(function(t){var r=(0,i.Z)(t,2),o=r[0],a=r[1];return Object.entries(T(“modelVersion”,a)).map(function(t){var r=(0,i.Z)(t,2),a=r[0],s=r[1],u={ext:{segtax:n[o],segclass:a},segment:s.map(function(e){return{id:e.topic.toString()}})};return null!=e&&(u.name=e),u})})}function C(e){return void 0===e&&(e=document),”browsingTopics”in e&&e.featurePolicy.allowsFeature(“browsing-topics”)}var x=function(e){void 0===e&&(e=document);var t=null;try{C(e)&&(t=d.Z.resolve(e.browsingTopics()))}catch(e){(0,a.H)(“Could not call topics API”,e)}return null==t&&(t=d.Z.resolve([])),t}().then(function(e){return E((0,s.nH)().domain,e)});function O(e){if(e&&e.data)try{var t=(0,a.dj)(e.data);if((0,f.q9)(I,e.origin)&&t&&t.segment&&!(0,a.xb)(t.segment.topics)){var n=t.segment,r=n.domain,i=n.topics,o=n.bidder,s=E(r,i);s&&A(o,s)}}catch(e){}}function A(e,t){var n,i=new Map((0,a.dj)(y.getDataFromLocalStorage(_))),o=((n={}).lastUpdated=(new Date).getTime(),n);t.forEach(function(e){o[e.ext.segclass]=e}),i.set(e,o),y.setDataInLocalStorage(_,JSON.stringify((0,r.Z)(i)))}function S(e,t){var n=(new Date).getTime();return Math.ceil((n-e)/864e5)>t}(0,u.Bx)(“firstPartyData”,{name:”topics”,queue:1,processFpd:function(e,t,n){var i=t.global,o=(void 0===n?{}:n).data,s=void 0===o?x:o;return b||(function(e){if(void 0===e&&(e=document),C(e)){var t,n,i=c.vc.getConfig(“userSync.topics”)||h;if(i){window.addEventListener(“message”,O,!1);var o=(t=i.bidders||[],n=i.maxTopicCaller||1,(0,r.Z)(t).sort(function(){return.5-Math.random()}).slice(0,n));o&&o.forEach(function(t){var n,r=t.bidder,i=t.iframeURL,o=t.fetchUrl,s=t.fetchRate;if(r&&i){var u=e.createElement(“iframe”);u.name=”ifrm_”.concat(r),u.src=””.concat(i,”?bidder=”).concat(r),u.style.display=”none”,n=new URL(i).origin,I.push(n),i&&e.documentElement.appendChild(u)}if(r&&o){var d=new Map((0,a.dj)(y.getDataFromLocalStorage(_))).get(r);(!d||d&&S(d.lastUpdated,s||1))&&window.fetch(o+”?bidder=”+r,{browsingTopics:!0}).then(function(e){return e.json()}).then(function(e){if(e&&e.segment&&!(0,a.xb)(e.segment.topics)){var t=e.segment,n=t.domain,r=t.topics,i=t.bidder,o=E(n,r);o&&A(i,o)}})}})}else(0,a.yN)(“Topics config not defined under userSync Object”)}}(),b=!0),s.then(function(e){var t,n,o;return(e=[].concat(e,(t=[],n=(c.vc.getConfig(“userSync.topics”)||h).bidders||[],(o=new Map((0,a.dj)(y.getDataFromLocalStorage(_))))&&o.forEach(function(e,i){var a=n.find(function(e){var t=e.bidder;return i===t});a&&(0,p.xD)(m.S5,(0,g.T)(v.UL,i))&&(S(e.lastUpdated,(null==a?void 0:a.expiry)||21)?(o.delete(i),y.setDataInLocalStorage(_,JSON.stringify((0,r.Z)(o)))):Object.keys(e).forEach(function(n){“lastUpdated”!==n&&t.push(e[n])}))}),t))).length&&(0,a.Ee)(i,{user:{data:e}}),{global:i}})}}),(0,o.z)(“topicsFpdModule”)}},function(e){e(e.s=8622)}]),(self.pbjsChunk=self.pbjsChunk||[]).push([[599],{789:function(e,t,n){var r=n(1002),i=n(9062),o=n(8640),a=n(4358),s=n(4679),u=n(5339),d=n(3193),c=n(5164),l=”triplelift”,f=null,p=null,m=(0,c.df)({bidderCode:l}),g={gvlid:28,code:l,supportedMediaTypes:[s.Mk,s.pX],isBidRequestValid:function(e){return void 0!==e.params.inventoryCode},buildRequests:function(e,t){var n=”https://tlx.3lift.com/header/auction?”,r=function(e,t){var n,r,o={},s=e[0].schain,u=function(e){var t={},n={},r={},i=e.ortb2||{},o=function(){var e=m.getDataFromLocalStorage(“opecloud_ctx”);if(!e)return null;try{return JSON.parse(e)}catch(e){return(0,a.H)(“Triplelift: error parsing JSON: “,e),null}}(),s=Object.assign({},i.site),u=Object.assign({},i.user);if(o){u.data=u.data||[];try{u.data.push({name:”www.1plusx.com”,ext:o})}catch(e){(0,a.H)(“Triplelift: error adding 1plusX segments: “,e)}}return _(n,s),_(r,u),(0,a.xb)(n)||(t.context=n),(0,a.xb)(r)||(t.user=r),t}(t);o.imp=e.map(function(e,t){var n={id:t,tagid:e.params.inventoryCode,floor:y(e)};return v(e)&&(n.video=function(e){var t=Object.assign(Object.assign({},e.params.video),e.mediaTypes.video);try{t.w||(t.w=t.playerSize[0][0]),t.h||(t.h=t.playerSize[0][1])}catch(e){(0,a.yN)(“Video size not defined”,e)}return”instream”===t.context&&(t.placement=1),”outstream”===t.context&&(t.placement?-1===[3,4,5].indexOf(t.placement)&&((0,a.ji)(“video.placement value of “+t.placement+” is invalid for outstream context. Setting placement to 3″),t.placement=3):t.placement=3),t.playbackmethod&&Number.isInteger(t.playbackmethod)&&(t.playbackmethod=Array.from(String(t.playbackmethod),Number)),delete t.playerSize,t}(e)),e.mediaTypes.banner&&!b(e)&&(n.banner={format:T(e.sizes)}),(0,a.xb)(e.ortb2Imp)||(n.fpd=function(e){var t={},n={};return _(n,e.ext),(0,a.xb)(n)||(t.context=n),t}(e.ortb2Imp),(0,a.xb)(e.ortb2Imp.ext)||(n.ext=Object.assign({},e.ortb2Imp.ext))),n});var d=[].concat((0,i.Z)(I([e[0]],”tdid”,”adserver.org”,”TDID”)),(0,i.Z)(function(e){return I(e,”idl_env”,”liveramp.com”,”idl”)}([e[0]])),(0,i.Z)(function(e){return I(e,”criteoId”,”criteo.com”,”criteoId”)}([e[0]])),(0,i.Z)(function(e){return I(e,”pubcid”,”pubcid.org”,”pubcid”)}([e[0]])),(0,i.Z)(function(e){var t=[“adserver.org”,”liveramp.com”,”criteo.com”,”pubcid.org”],n=[];return e.userIdAsEids&&e.userIdAsEids.forEach(function(e){try{if(-1===t.indexOf(e.source)){var r=e.uids.map(function(t){return{id:t.id,ext:{rtiPartner:e.source}}});n.push({source:e.source,uids:r})}}catch(t){(0,a.yN)(“Triplelift: Error attempting to add “+e+” to bid request”,t)}}),n}(e[0])));d.length>0&&(o.user={ext:{eids:d}});var c=function(e,t){var n={};return(0,a.xb)(e)||(n.schain=Object.assign({},e)),(0,a.xb)(t)||(n.fpd=Object.assign({},t)),n}(s,u);return(0,a.xb)(c)||(o.ext=c),null!=t&&null!=(n=t.ortb2)&&null!=(r=n.regs)&&r.gpp&&(o.regs=Object.assign({},t.ortb2.regs)),null!=t&&t.ortb2&&(o.ext.ortb2=Object.assign({},t.ortb2)),o}(e,t);if(n=(0,a.t0)(n,”lib”,”prebid”),n=(0,a.t0)(n,”v”,”8.9.0″),t&&t.refererInfo){var o=t.refererInfo.page;n=(0,a.t0)(n,”referrer”,o)}return t&&t.timeout&&(n=(0,a.t0)(n,”tmax”,t.timeout)),t&&t.gdprConsent&&(f=void 0===t.gdprConsent.gdprApplies||t.gdprConsent.gdprApplies,n=(0,a.t0)(n,”gdpr”,f.toString()),void 0!==t.gdprConsent.consentString&&(p=t.gdprConsent.consentString,n=(0,a.t0)(n,”cmp_cs”,p))),t&&t.uspConsent&&(n=(0,a.t0)(n,”us_privacy”,t.uspConsent)),t&&t.fledgeEnabled&&(n=(0,a.t0)(n,”fledge”,t.fledgeEnabled)),!0===d.vc.getConfig(“coppa”)&&(n=(0,a.t0)(n,”coppa”,!0)),n.lastIndexOf(“&”)===n.length-1&&(n=n.substring(0,n.length-1)),(0,a.ji)(“tlCall request built: “+n),{method:”POST”,url:n,data:r,bidderRequest:t}},interpretResponse:function(e,t){var n=t.bidderRequest;return(e.body.bids||[]).map(function(e){return function(e,t){var n={},r=t.width||1,i=t.height||1,o=t.deal_id||””,a=t.crid||””,s=e.bids[t.imp_id];return 0!=t.cpm&&t.ad&&(n={requestId:s.bidId,cpm:t.cpm,width:r,height:i,netRevenue:!0,ad:t.ad,creativeId:a,dealId:o,currency:”USD”,ttl:300,tl_source:t.tl_source,meta:{}},v(s)&&”video”===t.media_type&&(n.vastXml=t.ad,n.mediaType=”video”,n.ttl=3600),t.advertiser_name&&(n.meta.advertiserName=t.advertiser_name),t.adomain&&t.adomain.length&&(n.meta.advertiserDomains=t.adomain),t.tl_source&&”hdx”==t.tl_source&&(v(s)&&”video”===t.media_type?n.meta.mediaType=”video”:n.meta.mediaType=”banner”),t.tl_source&&”tlx”==t.tl_source&&(n.meta.mediaType=”native”),a&&(n.meta.networkId=a.slice(0,a.indexOf(“_”)))),n}(n,e)})},getUserSyncs:function(e,t,n,r,i){var o=function(e){if(e)return e.iframeEnabled?”iframe”:e.pixelEnabled?”image”:void 0}(e);if(o){var s=”https://eb2.3lift.com/sync?”;return”image”===o&&(s=(0,a.t0)(s,”px”,1),s=(0,a.t0)(s,”src”,”prebid”)),(null!==p||f)&&(s=(0,a.t0)(s,”gdpr”,f),s=(0,a.t0)(s,”cmp_cs”,p)),r&&(s=(0,a.t0)(s,”us_privacy”,r)),i&&(i.gppString&&(s=(0,a.t0)(s,”gpp”,i.gppString)),i.applicableSections&&0!==i.applicableSections.length&&(s=(0,a.t0)(s,”gpp_sid”,i.applicableSections.filter(function(e){return Number.isInteger(e)}).join(“,”)))),[{type:o,url:s}]}}};function v(e){return h(e)&&(b(e)||function(e){return h(e)&&”outstream”===e.mediaTypes.video.context.toLowerCase()}(e))}function b(e){return h(e)&&”instream”===e.mediaTypes.video.context.toLowerCase()}function h(e){return e.mediaTypes.video&&e.mediaTypes.video.context}function y(e){var t=null;if(“function”==typeof e.getFloor)try{var n=e.getFloor({currency:”USD”,mediaType:v(e)?”video”:”banner”,size:”*”});”object”!==(0,r.Z)(n)||”USD”!==n.currency||isNaN(parseFloat(n.floor))||(t=parseFloat(n.floor))}catch(e){(0,a.H)(“Triplelift: getFloor threw an error: “,e)}return null!==t?t:e.params.floor}function _(e,t){(0,a.xb)(t)||Object.keys(t).forEach(function(n){null!=t[n]&&(e[n]=t[n])})}function I(e,t,n,r){return e.map(function(e){return function(t){return t&&t.userId&&t.userId[e]}}(t)).filter(w(t)).map(function(e,t){return function(n){return{source:e,uids:[{id:n.id?n.id:n,ext:{rtiPartner:t}}]}}}(n,r))}var w=function(e){return function(t,n,r){var i=!!t&&((0,a.d8)(t)?!!t:(0,a.PO)(t)&&!(0,a.kJ)(t)&&!(0,a.xb)(t)&&t.id&&(0,a.d8)(t.id)&&!!t.id);return i||void 0===r[0]||(0,a.yN)(“Triplelift: invalid “+e+” userId format”),i}};function T(e){return e.filter(E).map(function(e){return{w:e[0],h:e[1]}})}function E(e){return 2===e.length&&”number”==typeof e[0]&&”number”==typeof e[1]}(0,u.dX)(g),(0,o.z)(“tripleliftBidAdapter”)}},function(e){e(e.s=789)}]),(self.pbjsChunk=self.pbjsChunk||[]).push([[158],{3446:function(e,t,n){var r=n(8640),i=n(6475),o=n(4358),a=n(265),s=n(3193),u=n(5339),d=n(4679);function c(e){var t;return{ttdprebid:{ver:”TTD-PREBID-2022.06.28″,pbjs:”8.9.0″,keywords:null!=(t=e.site)&&t.keywords?e.site.keywords.split(“,”).map(function(e){return e.trim()}):[]}}}function l(e){var t,n={};return e.gdprConsent&&”boolean”==typeof e.gdprConsent.gdprApplies&&i.N(n,”ext.gdpr”,e.gdprConsent.gdprApplies?1:0),e.uspConsent&&i.N(n,”ext.us_privacy”,e.uspConsent),!0===s.vc.getConfig(“coppa”)&&(n.coppa=1),null!=(t=e.ortb2)&&t.regs&&o.Ee(n,e.ortb2.regs),n}function f(e,t){var n,r,o={tid:null==t||null==(n=t.ortb2)||null==(r=n.source)?void 0:r.tid};return e[0].schain&&i.N(o,”ext.schain”,e[0].schain),o}function p(e){var t=navigator.language||navigator.browserLanguage||navigator.userLanguage||navigator.systemLanguage,n={ua:navigator.userAgent,dnt:o.oV()?1:0,language:t,connectiontype:m()};return o.Ee(n,e.device),n}function m(){var e=navigator.connection||navigator.webkitConnection;if(!e)return 0;switch(e.type){case”ethernet”:return 1;case”wifi”:return 2;case”cellular”:switch(e.effectiveType){case”slow-2g”:case”2g”:return 4;case”3g”:return 5;case”4g”:return 6;default:return 3}default:return 0}}function g(e,t){var n={};e.gdprConsent&&i.N(n,”ext.consent”,e.gdprConsent.consentString),o.d8(a.Z(e,”bids.0.userId.tdid”))&&(n.buyeruid=e.bids[0].userId.tdid);var r=a.Z(e,”bids.0.userIdAsEids”);return r&&r.length&&i.N(n,”ext.eids”,r),o.Ee(n,t.user),n}function v(e,t){var n=o.Ee({page:a.Z(e,”refererInfo.page”),ref:a.Z(e,”refererInfo.ref”),publisher:{id:a.Z(e,”bids.0.params.publisherId”)}},t.site),r=e.refererInfo.domain;return r&&i.N(n,”publisher.domain”,r),n}var b={code:”ttd”,gvlid:21,aliases:[“thetradedesk”],supportedMediaTypes:[d.Mk,d.pX],isBidRequestValid:function(e){if(!e||!e.params)return o.yN(“ttd: Missing bid parameters”),!1;if(!e.params.supplySourceId)return o.yN(“ttd: Missing required parameter params.supplySourceId”),!1;if(!/^[w+]+$/.test(e.params.supplySourceId))return o.yN(“ttd: supplySourceId must only contain alphabetic characters”),!1;if(!e.params.publisherId)return o.yN(“ttd: Missing required parameter params.publisherId”),!1;if(e.params.publisherId.length>32)return o.yN(“ttd: params.publisherId must be 32 characters or less”),!1;if(e.params.bidfloor&&isNaN(parseFloat(e.params.bidfloor)))return!1;var t=a.Z(e,”ortb2Imp.ext.gpid”);if(!e.params.placementId&&!t)return o.yN(“ttd: one of params.placementId or gpid (via the GPT module https://docs.prebid.org/dev-docs/modules/gpt-pre-auction.html) must be passed”),!1;var n=a.Z(e,”mediaTypes.banner”),r=a.Z(e,”mediaTypes.video”);if(!n&&!r)return o.yN(“ttd: one of mediaTypes.banner or mediaTypes.video must be passed”),!1;if(r){if(!r.maxduration||!o.U(r.maxduration))return o.yN(“ttd: mediaTypes.video.maxduration must be set to the maximum video ad duration in seconds”),!1;if(!r.api||0===r.api.length)return o.yN(“ttd: mediaTypes.video.api should be an array of supported api frameworks. See the Open RTB v2.5 spec for valid values”),!1;if(!r.mimes||0===r.mimes.length)return o.yN(“ttd: mediaTypes.video.mimes should be an array of supported mime types”),!1;if(!r.protocols)return o.yN(“ttd: mediaTypes.video.protocols should be an array of supported protocols. See the Open RTB v2.5 spec for valid values”),!1}return!0},buildRequests:function(e,t){var n=t.ortb2||{},r={id:t.auctionId,imp:e.map(function(e){return function(e){var t={id:e.bidId},n=a.Z(e,”ortb2Imp.ext.gpid”)||e.params.placementId;n&&(t.tagid=n);var r=a.Z(e,”mediaTypes.video”),i={};a.Z(e,”mediaTypes.banner”)&&(i[d.Mk]=function(e){var t=function(e){return o.sF(e).filter(function(e){return e}).map(function(e){return e.split(“x”)}).map(function(e){return{width:parseInt(e[0]),height:parseInt(e[1])}})}(e.mediaTypes.banner.sizes).map(function(e){return{w:e.width,h:e.height}}),n=parseInt(a.Z(e,”mediaTypes.banner.pos”)),r=a.Z(e,”params.banner.expdir”),i={};n&&(i.pos=n),r&&Array.isArray(r)&&(i.expdir=r);var s=Object.assign({w:t[0].w,h:t[0].h,format:t},i),u=a.Z(e,”ortb2Imp.battr”);return u&&(s.battr=u),s}(e)),r&&(i[d.pX]=function(e){var t=a.Z(e,”mediaTypes.video.minduration”),n=a.Z(e,”mediaTypes.video.maxduration”),r=a.Z(e,”mediaTypes.video.playerSize”),i=a.Z(e,”mediaTypes.video.api”),s=a.Z(e,”mediaTypes.video.mimes”),u=a.Z(e,”mediaTypes.video.placement”),d=a.Z(e,”mediaTypes.video.plcmt”),c=a.Z(e,”mediaTypes.video.protocols”),l=a.Z(e,”mediaTypes.video.playbackmethod”),f=a.Z(e,”mediaTypes.video.pos”),p=a.Z(e,”mediaTypes.video.startdelay”),m=a.Z(e,”mediaTypes.video.skip”),g=a.Z(e,”mediaTypes.video.skipmin”),v=a.Z(e,”mediaTypes.video.skipafter”),b=a.Z(e,”mediaTypes.video.minbitrate”),h=a.Z(e,”mediaTypes.video.maxbitrate”);t&&o.U(t)||(t=0);var y={minduration:t,maxduration:n,api:i,mimes:s,placement:u,protocols:c};void 0!==r&&(o.kJ(r[0])?(y.w=parseInt(r[0][0]),y.h=parseInt(r[0][1])):o.hj(r[0])&&(y.w=parseInt(r[0]),y.h=parseInt(r[1]))),l&&(y.playbackmethod=l),d&&(y.plcmt=d),f&&(y.pos=f),p&&o.U(p)&&(y.startdelay=p),!m||0!==m&&1!==m||(y.skip=m),g&&o.U(g)&&(y.skipmin=g),v&&o.U(v)&&(y.skipafter=v),b&&o.U(b)&&(y.minbitrate=b),h&&o.U(h)&&(y.maxbitrate=h);var _=a.Z(e,”ortb2Imp.battr”);return _&&(y.battr=_),y}(e)),Object.assign(t,i);var s=function(e){if(e.params.bidfloor)return e.params.bidfloor;if(!o.LQ(e.getFloor))return null;var t=e.getFloor({currency:”USD”,mediaType:”*”,size:”*”});return o.PO(t)&&!isNaN(t.floor)&&”USD”===t.currency?t.floor:null}(e);s&&(t.bidfloor=parseFloat(s),t.bidfloorcur=”USD”);var u=a.Z(e,”ortb2Imp.secure”);return t.secure=(0,o.hj)(u)?u:1,o.Ee(t,e.ortb2Imp),t}(e)}),site:v(t,n),device:p(n),user:g(t,n),at:1,cur:[“USD”],regs:l(t),source:f(e,t),ext:c(n)};return n&&n.bcat&&(r.bcat=n.bcat),n&&n.badv&&(r.badv=n.badv),n&&n.app&&(r.app=n.app),n&&n.pmp&&(r.pmp=n.pmp),{method:”POST”,url:”https://direct.adsrvr.org/bid/bidder/”+t.bids[0].params.supplySourceId,data:r,options:{withCredentials:!0}}},interpretResponse:function(e,t){var n=a.Z(e,”body.seatbid”),r=a.Z(e,”body.cur”);if(!n||0===n.length)return[];var i=[],s=a.Z(t,”data.imp”);return n.forEach(function(e){e.bid.forEach(function(e){var t=s.find(function(t){return t.id===e.impid}),n=e.price||0,a={requestId:e.impid,cpm:n,creativeId:e.crid,dealId:e.dealid||null,currency:r||”USD”,netRevenue:!0,ttl:e.ttl||360,meta:{}};e.adomain&&e.adomain.length>0&&(a.meta.advertiserDomains=e.adomain),1===e.ext.mediatype?Object.assign(a,{width:e.w,height:e.h,ad:o.ew(e.adm,n),mediaType:d.Mk}):2===e.ext.mediatype&&(Object.assign(a,{width:t.video.w,height:t.video.h,mediaType:d.pX}),e.nurl?a.vastUrl=o.ew(e.nurl,n):a.vastXml=o.ew(e.adm,n)),i.push(a)})}),i},getUserSyncs:function(e,t,n,r){void 0===n&&(n={}),void 0===r&&(r=””);var i=[],o=”&gdpr=”+(n.gdprApplies?1:0)+”&gdpr_consent=”+encodeURIComponent(n.consentString),a=”https://match.adsrvr.org/track/usersync?us_privacy=”+encodeURIComponent(r)+o;return e.pixelEnabled?i.push({type:”image”,url:a+”&ust=image”}):e.iframeEnabled&&i.push({type:”iframe”,url:a+”&ust=iframe”}),i}};(0,u.dX)(b),(0,r.z)(“ttdBidAdapter”)}},function(e){e(e.s=3446)}]),(self.pbjsChunk=self.pbjsChunk||[]).push([[215],{2722:function(e,t,n){var r=n(9062),i=n(1002),o=n(3324),a=n(8640),s=n(4614),u=n(3193),d=n(2021),c=n(6104),l=n(5644),f=n(2797),p=n(4358),m=n(265),g=new Map;function v(e,t){var n=g.get(t);if(n&&e){var r={};r.source=(0,p.LQ)(n.getSource)?n.getSource(e):n.source;var i=(0,p.LQ)(n.getValue)?n.getValue(e):e;if((0,p.d8)(i)){var o={id:i,atype:n.atype};if((0,p.LQ)(n.getUidExt)){var a=n.getUidExt(e);a&&(o.ext=a)}if(r.uids=[o],(0,p.LQ)(n.getEidExt)){var s=n.getEidExt(e);s&&(r.ext=s)}return r}}return null}function b(e){var t=[],n=function(n){if(e.hasOwnProperty(n))if(“pubProvidedId”===n)t=t.concat(e.pubProvidedId);else if(Array.isArray(e[n]))e[n].forEach(function(e,r,i){var o=v(e,n);o&&t.push(o)});else{var r=v(e[n],n);r&&t.push(r)}};for(var r in e)n(r);return t}var h,y,_,I,w,T,E=n(5164),C=n(6475),x=(0,f.z3)(“sync”,function(){}),O=n(8792),A=n(6372),S=n(9128),P=n(8196),k=n(8962),B=n(9633),j=n(571),D=n(4947),R=n(286),U=E.c$,N=E.Dp,Z=”_pbjs_userid_consent_data”,M=30,q=”_pbjs_id_optout”,F=(0,E.eA)(“userId”),L={isAllowed:j.xD},z=!1,H=[],W=[],K={},V=[],X=function(){return null==T&&(T=(0,S.V6)()),T};function G(e){return X().fork().renameWith(function(t){return[“userId.mod.”+t,”userId.mods.”+e+”.”+t]})}function J(e,t){t=t||e.storageMgr;var n=”function”==typeof e.submodule.domainOverride?e.submodule.domainOverride():null,r=e.config.storage.name;return function(e,i,o){t.setCookie(r+(e||””),i,o,”Lax”,n)}}function Q(e,t){var n=e.config.storage,r=e.storageMgr;try{var i=new Date(Date.now()+864e5*n.expires).toUTCString(),o=(0,p.PO)(t)?JSON.stringify(t):t;if(n.type===U){var a=J(e);a(null,o,i),”number”==typeof n.refreshInSeconds&&a(“_last”,(new Date).toUTCString(),i)}else n.type===N&&(r.setDataInLocalStorage(n.name+”_exp”,i),r.setDataInLocalStorage(n.name,encodeURIComponent(o)),”number”==typeof n.refreshInSeconds&&r.setDataInLocalStorage(n.name+”_last”,(new Date).toUTCString()))}catch(e){(0,p.H)(e)}}function Y(e,t){void 0===t&&(t=void 0);var n,r=e.storageMgr,i=e.config.storage,o=t?i.name+”_”+t:i.name;try{if(i.type===U)n=r.getCookie(o);else if(i.type===N){var a=r.getDataFromLocalStorage(i.name+”_exp”);””===a?n=r.getDataFromLocalStorage(o):a&&new Date(a).getTime()-Date.now()>0&&(n=decodeURIComponent(r.getDataFromLocalStorage(o)))}”string”==typeof n&&”{“===n.trim().charAt(0)&&(n=JSON.parse(n))}catch(e){(0,p.H)(e)}return n}function $(e){var t={consentString:””,gdprApplies:!1,apiVersion:0};return e&&(t.consentString=e.consentString,t.gdprApplies=e.gdprApplies,t.apiVersion=e.apiVersion),(0,p._R)(JSON.stringify(t))}function ee(e,t,n){t=X().fork().startTiming(“userId.callbacks.total”).stopBefore(t);var r=(0,p.yx)(function(){clearTimeout(void 0),t()},e.length);e.forEach(function(e){var t=G(e.submodule.name).startTiming(“callback”).stopBefore(r);try{e.callback(function(r){r?(e.config.storage&&Q(e,r),e.idObj=e.submodule.decode(r,e.config),be(te(n))):(0,p.PN)(“User ID: “+e.submodule.name+” – request id responded with an empty value”),t()},Y.bind(null,e))}catch(n){(0,p.H)(“Error in userID module ‘”+e.submodule.name+”‘:”,n),t()}e.callback=void 0})}function te(e){return Array.isArray(e)&&e.length?re(e):{}}function ne(e,t,n){return Object.fromEntries(Object.entries(e.reduce(function(e,r){var i=t(r);return i&&Object.keys(i).forEach(function(t){var o,a=null==(o=K[t])?void 0:o.indexOf(n(r)),s={priority:(0,p.hj)(a)?a:-1,value:i[t]};if(e[t]){var u=s.priority>e[t].priority?s:e[t];e[t]=u}else e[t]=s}),e},{})).map(function(e){var t=(0,o.Z)(e,2);return[t[0],t[1].value]}))}function re(e){return ne(e.filter(function(e){return(0,p.PO)(e.idObj)&&Object.keys(e.idObj).length}),function(e){return e.idObj},function(e){return e.submodule.name})}function ie(e,t){[e].some(function(e){return!Array.isArray(e)||!e.length})||e.forEach(function(e){e.bids&&(0,p.kJ)(e.bids)&&e.bids.forEach(function(e){var n=function(e,t){return Array.isArray(e)&&e.length&&t?re(e.filter(function(e){return!e.config.bidders||!(0,p.kJ)(e.config.bidders)||(0,s.q9)(e.config.bidders,t)})):{}}(t,e.bidder);Object.keys(n).length&&(e.userId=n,e.userIdAsEids=b(n))})})}var oe,ae={};function se(e){void 0===e&&(e=ce()||[]);var t=I&&e.find(function(e){return e.source===I});if(t&&”string”==typeof(0,m.Z)(t,”uids.0.id”)){var n=t.uids[0].id.replace(/[W_]/g,””);if(n.length>=32&&n.length1e3*e.config.storage.refreshInSeconds}!a||s||r||!function(e,t){return null!=n&&n===$(t)}(0,t)?o=e.submodule.getId(e.config,t,a):”function”==typeof e.submodule.extendId&&(o=e.submodule.extendId(e.config,t,a)),(0,p.PO)(o)&&(o.id&&(Q(e,o.id),a=o.id),”function”==typeof o.callback&&(e.callback=o.callback)),a&&(e.idObj=e.submodule.decode(a,e.config))}else if(e.config.value)e.idObj=e.config.value;else{var d=e.submodule.getId(e.config,t,void 0);(0,p.PO)(d)&&(“function”==typeof d.callback&&(e.callback=d.callback),d.id&&(e.idObj=e.submodule.decode(d.id,e.config)))}be(te(i))})(o,n,i,r,t),e.push(o)}catch(e){(0,p.H)(“Error in userID module ‘”+o.submodule.name+”‘:”,e)}return e})},[]);return o.length&&function(e){var t=(0,p.EE)().setEidPermissions;”function”==typeof t&&(0,p.kJ)(e)&&t(function(e){var t=[];return e.filter(function(e){return(0,p.PO)(e.idObj)&&Object.keys(e.idObj).length}).forEach(function(e){Object.keys(e.idObj).forEach(function(n){var r=g.get(n)||{};(0,m.Z)(e,”config.bidders”)&&Array.isArray(e.config.bidders)&&r.source&&t.push({source:r.source,bidders:e.config.bidders})})}),t}(e))}(o),o.forEach(function(e,t){for(var n=!1,r=0;r1?t-1:0),r=1;r0?s.resolve():d.on(l.FP.AUCTION_END,function e(){d.S1(l.FP.AUCTION_END,e),i(y).then(s.resolve)})),r&&u&&(w=m(w.catch(function(){return null}).then(I).then(b(function(e){var t=he(g,v.filter(function(e){return null==c||c.includes(e.submodule.name)}),e,!0).filter(function(e){return null!=e.callback});if(t.length)return new O.Z(function(e){return ee(t,e,g)})})))),w}}({delay:i}),null!=w&&w(),V=[],w=e.getConfig(“userSync”,function(e){var t=e.userSync;t&&(I=t.ppid,t.userIds&&(W=t.userIds,y=(0,p.hj)(t.syncDelay)?t.syncDelay:500,_=(0,p.hj)(t.auctionDelay)?t.auctionDelay:0,_e(),function(e,t){if(e){var n={},i=new Map(H.map(function(e){return e.submodule.aliasName?[e.submodule.aliasName,e.submodule.name]:[]}));Object.keys(e).forEach(function(t){var o=(0,p.kJ)(e[t])?(0,r.Z)(e[t]).reverse():[];n[t]=o.map(function(e){return i.has(e)?i.get(e):e})}),K=n}else K={}}(t.idPriority),oe({ready:!0})))}),(0,a.R)().getUserIds=de,(0,a.R)().getUserIdsAsEids=ce,(0,a.R)().getEncryptedEidsForSource=we(fe),(0,a.R)().registerSignalSources=me,(0,a.R)().refreshUserIds=we(ge),(0,a.R)().getUserIdsAsync=we(ve),(0,a.R)().getUserIdsAsEidBySource=le}(u.vc),(0,f.bA)(“userId”,function(e){(0,s.sE)(V,function(t){return t.name===e.name})||(V.push(e),k.qh.register(B.y2,e.name,e.gvlid),_e(),oe({refresh:!0,submoduleNames:[e.name]}))}),(0,A.f8)({type:A.Z,name:”userExtEids”,fn:function(e,t,n){var r=(0,m.Z)(n,”bidRequests.0.userIdAsEids”);r&&Object.keys(r).length>0&&(0,C.N)(e,”user.ext.eids”,r)}}),(0,a.z)(“userId”)},6372:function(e,t,n){n.d(t,{DZ:function(){return s},Px:function(){return u},TP:function(){return c},YC:function(){return d},Z:function(){return a},f8:function(){return m},fP:function(){return g},gm:function(){return i},md:function(){return l}});var r,i=[“request”,”imp”,”bidResponse”,”response”],o=[“default”,”pbs”],a=i[0],s=i[1],u=i[2],d=i[3],c=o[0],l=o[1],f=new Set(i),p=(r={},{registerOrtbProcessor:function(e){var t=e.type,n=e.name,o=e.fn,a=e.priority,s=void 0===a?0:a,u=e.dialects,d=void 0===u?[c]:u;if(!f.has(t))throw new Error(“ORTB processor type must be one of: “+i.join(“, “));d.forEach(function(e){r.hasOwnProperty(e)||(r[e]={}),r[e].hasOwnProperty(t)||(r[e][t]={}),r[e][t][n]={priority:s,fn:o}})},getProcessors:function(e){return r[e]||{}}}),m=p.registerOrtbProcessor,g=p.getProcessors}},function(e){e(e.s=2722)}])})(),pbjs.processQueue(); }, {}]; window.modules[“slatead.legacy”] = [function(require,module,exports){“use strict”;var isMember=require(6).isMemberSkipLookup(),_require=require(120),allowedTypes=_require.allowedTypes,sticky=require(121),googletag=googletag||{};googletag.cmd=googletag.cmd||[],DS.controller(“slate-ad”,[“adService”,”$visibility”,”headerBidding”,function(e,i,t){return function(o){var r=e.createAd(o);isMember&&function(e){return”mob-adhesion”===e.type||[“mid-article-spot-mobile-2″,”mid-article-spot-mobile-4″,”mid-article-spot-tablet-2″,”mid-article-spot-tablet-4″,”mid-article-spot-2″,”mid-article-spot-4″,”mid-article-spot-xl-2″,”mid-article-spot-xl-4”].includes(e.id)}(r)?o.parentElement.setAttribute(“hidden”,””):function(e){return”leaderboard-tablet-1″===e.id||”leaderboard-1″===e.id||”leaderboard-mobile-1″===e.id}(r)?(isMember||sticky.enableStickyLeaderboard(),function(o,r){if(i.isElementNotHidden(r))if(i.isElementInViewport(r))window.googletag.cmd.push(function(){allowedTypes[o.type]?t.prebid(o,!1):e.requestAd(o)});else{var d=new i.Visible(r);d.on(“shown”,function(){window.googletag.cmd.push(function(){allowedTypes[o.type]?t.prebid(o,!1):e.requestAd(o)})})}}(r,o)):function(){var e=document.querySelector(“.homepage-sponsorship”);if(o=!1,e)var i=e.getAttribute(“data-sponsorship-start”),t=(new Date).getTime(),o=t>i&&t-i<864e5;return o}()||function(e){return"podcast-headline"===e.type}(r)?function(t,o){i.isElementNotHidden(o)&&window.googletag.cmd.push(function(){e.requestAd(t)})}(r,o):function(o,r){new i.Visible(r,{preloadThreshhold:o.threshold}).on("preload",function(){i.isElementNotHidden(r)&&(allowedTypes[o.type]?t.prebid(o,!1):window.googletag.cmd.push(function(){e.requestAd(o)}))})}(r,o)}}]); }, {"6":6,"120":120,"121":121}]; window.modules["visibility.legacy"] = [function(require,module,exports){"use strict";DS.service("$visibility",["$document","_throttle","Eventify",function(e,t,n){var i,o,r=[];function h(e,t){return et?e:t}function l(e,t,n){!e.preload&&e.preloadThreshhold&&function(e,t,n,i){return t.top=e.shownThreshold&&!e.seen?(e.seen=!0,setTimeout(function(){e.trigger(“shown”,new o(“shown”,t))},15)):(!n||i1&&(h+=e(r,Math.floor(n/o),i-1,o)),h},this.getVerticallyVisiblePixels=u,this.getViewportHeight=function(){return window.innerHeight||e.documentElement.clientHeight||e.body.clientHeight},this.getViewportWidth=function(){return window.innerWidth||e.documentElement.clientWidth||e.body.clientWidth},this.isElementNotHidden=c,this.isElementInViewport=function(t){var n=t.getBoundingClientRect();return n.top>=0&&n.left>=0&&n.bottom<=(window.innerHeight||e.documentElement.clientHeight)&&n.right arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; } function mountLegacyServices() { Object.keys(window.modules).filter(function (key) { return typeof key === 'string' && key.match(/.legacy$/); }).forEach(function (key) { return window.require(key); }); } function tryToMount(fn, el, name) { try { fn(el); // init the controller } catch (e) { var elementTag = el.outerHTML.slice(0, el.outerHTML.indexOf(el.innerHTML)); console.error("Error initializing controller for "".concat(name, "" on "").concat(elementTag, """), e); } } /** * mount client.js component controllers */ function mountComponentModules() { Object.keys(window.modules).filter(function (key) { return typeof key === 'string' && key.match(/.client$/); }).forEach(function (key) { var controllerFn = window.require(key); if (typeof controllerFn === 'function') { var name = key.replace('.client', ''), instancesSelector = "[data-uri*="_components/".concat(name, "/"]"), defaultSelector = "[data-uri$="_components".concat(name, ""]"), instances = document.querySelectorAll(instancesSelector), defaults = document.querySelectorAll(defaultSelector); var _iterator = _createForOfIteratorHelper(instances), _step; try { for (_iterator.s(); !(_step = _iterator.n()).done;) { var el = _step.value; tryToMount(controllerFn, el, name); } } catch (err) { _iterator.e(err); } finally { _iterator.f(); } var _iterator2 = _createForOfIteratorHelper(defaults), _step2; try { for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) { var _el = _step2.value; tryToMount(controllerFn, _el, name); } } catch (err) { _iterator2.e(err); } finally { _iterator2.f(); } } }); } // Make sure that a `window.process.env.NODE_ENV` is available in the client for any dependencies, // services, or components that could require it // note: the “ value is swapped for the actual environment variable in /lib/cmd/compile/scripts.js window.process = window.process || {}; window.process.env = window.process.env || {}; if (!window.process.env.NODE_ENV) { window.process.env.NODE_ENV = ''; } // note: legacy controllers that require legacy services (e.g. dollar-slice) must // wait for DOMContentLoaded to initialize themselves, as the files themselves must be mounted first mountLegacyServices(); mountComponentModules(); // ]]

Leave a Reply