iBet uBet web content aggregator. Adding the entire web to your favor.
iBet uBet web content aggregator. Adding the entire web to your favor.



Link to original content: http://cmp-cdn.p.aws.economist.com/latest/cmp.min.js
/** * Economist.com - Consent Management Platform * Copyright https://www.economist.com * Version v2.4.4 **/ !function(){var n={848:function(n,e,t){"use strict";var o=this&&this.__assign||function(){return o=Object.assign||function(n){for(var e,t=1,o=arguments.length;t0)return e(!0,o,"purpose"),!0;var i=t.consentedVendors.filter((function(e){return e.name===n}));if(i.length>0)return e(!0,i,"vendor"),!0;var a=t.legIntPurposes.filter((function(e){return e.name===n}));if(a.length>0)return e(!0,a,"li"),!0;e(!1,"","")};e.hasGDPRVendorConsentForPurpose=function(n,e,t){var o,i,a={};window.__tcfapi("getCustomVendorConsents",2,(function(n){return a=n.grants}));var s=null!==(i=null===(o=a[n])||void 0===o?void 0:o.purposeGrants[e])&&void 0!==i&&i;return t(s),s};e.getGDPRConsents=function(n){window.__tcfapi("getCustomVendorConsents",2,(function(e,t){return n(e,t)}))};e.hasUSNatConsent=function(n){var e=!0;window.__gpp("getField",(function(n,t){e=t,n&&t&&(e=1!==n)}),"usnatv1.SaleOptOut");var t=!0;return window.__gpp("getField",(function(n,e){t=e,n&&e&&(t=1!==n)}),"usnatv1.SharingOptOut"),n(e&&t),e&&t};e.setConsentAPIType=function(n,e){var t,o;if((null==e?void 0:e.applies)&&(null===(o=null===(t=window._cmp_)||void 0===t?void 0:t.api)||void 0===o?void 0:o.generic))if("usnat"===n)window._cmp_.api.generic.type="usnat";else window._cmp_.api.generic.type="gdpr"};e.open=function(){var n,e,t,o,i,a,s,r=(null===(n=window._cmp_)||void 0===n?void 0:n.config)||{},p=(null===(e=r.gdpr)||void 0===e?void 0:e.privacyManager)||!1,c=(null===(t=r.usnat)||void 0===t?void 0:t.privacyManager)||!1,u=null===(a=null===(i=null===(o=window._cmp_)||void 0===o?void 0:o.api)||void 0===i?void 0:i.generic)||void 0===a?void 0:a.type;if("gdpr"!==u||p)if("usnat"!==u||c){if(window._sp_&&u){var d=window._sp_[u];d&&((null===(s=r.events)||void 0===s?void 0:s.onPrivacyManager)&&r.events.onPrivacyManager("open"),d.loadPrivacyManagerModal("gdpr"===u?p:c))}}else console.error("Failed attempting to open the USNAT Privacy Manager, window._cmp_.config.usnat.privacyManager was undefined.");else console.error("Failed attempting to open the GDPR Privacy Manager, window._cmp_.config.gdpr.privacyManager was undefined.")};e.updateLinksText=function(n,e){var t,o;if(["usnat"].includes(n)&&e.applies){var i=null===(o=((null===(t=window._cmp_)||void 0===t?void 0:t.config)||{})[n])||void 0===o?void 0:o.footerLinkText;if(i)document.querySelectorAll(".js-cmp-manage-cookies").forEach((function(n){return n.innerHTML=i}))}};e.hasReconsentPeriodElapsed=function(n,e){return(Date.now()-Date.parse(e))/1e3>=n.frequency*o.RECONSENT_FREQUENCY_TO_SECONDS_MULTIPLIER[n.unit.toUpperCase()]};e.triggerUSReconsent=function(n){var t=(0,e.getCookie)("consentDateUsnat");t&&(0,e.hasUSNatConsent)((function(o){!o&&(0,e.hasReconsentPeriodElapsed)(n.reject,t)&&(0,e.open)()}))}},55:function(){!function(){var n=window,e=document;function t(e){var t="string"==typeof e.data;try{var o=t?JSON.parse(e.data):e.data;if(o.__cmpCall){var i=o.__cmpCall;n.__uspapi(i.command,i.parameter,(function(n,o){var a={__cmpReturn:{returnValue:n,success:o,callId:i.callId}};e.source.postMessage(t?JSON.stringify(a):a,"*")}))}}catch(o){}}!function t(){if(!n.frames.__uspapiLocator)if(e.body){var o=e.body,i=e.createElement("iframe");i.style.cssText="display:none",i.name="__uspapiLocator",o.appendChild(i)}else setTimeout(t,5)}(),"function"!=typeof __uspapi&&(n.__uspapi=function(){var n=arguments;if(__uspapi.a=__uspapi.a||[],!n.length)return __uspapi.a;"ping"===n[0]?n[2]({gdprAppliesGlobally:!1,cmpLoaded:!1},!0):__uspapi.a.push([].slice.apply(n))},__uspapi.msgHandler=t,n.addEventListener("message",t,!1))}()},201:function(){window.__gpp_addFrame=function(n){if(!window.frames[n])if(document.body){var e=document.createElement("iframe");e.style.cssText="display:none",e.name=n,document.body.appendChild(e)}else window.setTimeout(window.__gpp_addFrame,10,n)},window.__gpp_stub=function(){var n=arguments;if(__gpp.queue=__gpp.queue||[],__gpp.events=__gpp.events||[],!n.length||1==n.length&&"queue"==n[0])return __gpp.queue;if(1==n.length&&"events"==n[0])return __gpp.events;var e=n[0],t=n.length>1?n[1]:null,o=n.length>2?n[2]:null;if("ping"===e)t({gppVersion:"1.1",cmpStatus:"stub",cmpDisplayStatus:"hidden",signalStatus:"not ready",supportedAPIs:["2:tcfeuv2","5:tcfcav1","6:uspv1","7:usnatv1","8:uscav1","9:usvav1","10:uscov1","11:usutv1","12:usctv1"],cmpId:0,sectionList:[],applicableSections:[],gppString:"",parsedSections:{}},!0);else if("addEventListener"===e){"lastId"in __gpp||(__gpp.lastId=0),__gpp.lastId++;var i=__gpp.lastId;__gpp.events.push({id:i,callback:t,parameter:o}),t({eventName:"listenerRegistered",listenerId:i,data:!0,pingData:{gppVersion:"1.1",cmpStatus:"stub",cmpDisplayStatus:"hidden",signalStatus:"not ready",supportedAPIs:["2:tcfeuv2","5:tcfcav1","6:uspv1","7:usnatv1","8:uscav1","9:usvav1","10:uscov1","11:usutv1","12:usctv1"],cmpId:0,sectionList:[],applicableSections:[],gppString:"",parsedSections:{}}},!0)}else if("removeEventListener"===e){for(var a=!1,s=0;s<__gpp.events.length;s++)if(__gpp.events[s].id==o){__gpp.events.splice(s,1),a=!0;break}t({eventName:"listenerRemoved",listenerId:o,data:a,pingData:{gppVersion:"1.1",cmpStatus:"stub",cmpDisplayStatus:"hidden",signalStatus:"not ready",supportedAPIs:["2:tcfeuv2","5:tcfcav1","6:uspv1","7:usnatv1","8:uscav1","9:usvav1","10:uscov1","11:usutv1","12:usctv1"],cmpId:0,sectionList:[],applicableSections:[],gppString:"",parsedSections:{}}},!0)}else"hasSection"===e?t(!1,!0):"getSection"===e||"getField"===e?t(null,!0):__gpp.queue.push([].slice.apply(n))},window.__gpp_msghandler=function(n){var e="string"==typeof n.data;try{var t=e?JSON.parse(n.data):n.data}catch(n){t=null}if("object"==typeof t&&null!==t&&"__gppCall"in t){var o=t.__gppCall;window.__gpp(o.command,(function(t,i){var a={__gppReturn:{returnValue:t,success:i,callId:o.callId}};n.source.postMessage(e?JSON.stringify(a):a,"*")}),"parameter"in o?o.parameter:null,"version"in o?o.version:"1.1")}},"__gpp"in window&&"function"==typeof window.__gpp||(window.__gpp=window.__gpp_stub,window.addEventListener("message",window.__gpp_msghandler,!1),window.__gpp_addFrame("__gppLocator"))},701:function(n){function e(n){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(n)}n.exports=function(){for(var n,t,o=[],i=window,a=i;a;){try{if(a.frames.__tcfapiLocator){n=a;break}}catch(n){}if(a===i.top)break;a=a.parent}n||(function n(){var e=i.document,t=!!i.frames.__tcfapiLocator;if(!t)if(e.body){var o=e.createElement("iframe");o.style.cssText="display:none",o.name="__tcfapiLocator",e.body.appendChild(o)}else setTimeout(n,5);return!t}(),i.__tcfapi=function(){for(var n=arguments.length,e=new Array(n),i=0;i3&&2===parseInt(e[1],10)&&"boolean"==typeof e[3]&&(t=e[3],"function"==typeof e[2]&&e[2]("set",!0)):"ping"===e[0]?"function"==typeof e[2]&&e[2]({gdprApplies:t,cmpLoaded:!1,cmpStatus:"stub"}):o.push(e)},i.addEventListener("message",(function(n){var t="string"==typeof n.data,o={};if(t)try{o=JSON.parse(n.data)}catch(n){}else o=n.data;var i="object"===e(o)&&null!==o?o.__tcfapiCall:null;i&&window.__tcfapi(i.command,i.version,(function(e,o){var a={__tcfapiReturn:{returnValue:e,success:o,callId:i.callId}};n&&n.source&&n.source.postMessage&&n.source.postMessage(t?JSON.stringify(a):a,"*")}),i.parameter)}),!1))}}},e={};function t(o){var i=e[o];if(void 0!==i)return i.exports;var a=e[o]={exports:{}};return n[o].call(a.exports,a,a.exports,t),a.exports}!function(){"use strict";var n,e;var o=t(848),i=t(185),a=function(){document.body&&((0,i.getCookie)("_cmp_disable")||(window._cmp_||(window._cmp_={}),window._cmp_.loaded||((0,o.createCMPApi)(),(0,o.configureSourcepoint)(),(0,o.loadSourcepointHTMLElements)(),(0,o.manageLinks)(),window._cmp_.loaded=!0)))};t(701),t(201),t(55),document.onreadystatechange=function(){"interactive"===document.readyState&&a()},!0===(null===(e=null===(n=window._cmp_)||void 0===n?void 0:n.config)||void 0===e?void 0:e.autoload)&&a()}()}();