Files
sisvietnamvn_01/BV_DHYD_HCM/S.I.S - Việt Nam đủ năng lực đào tạo chuẩn quốc tế_files/marfeel-sdk.js.download
T

2 lines
153 KiB
Plaintext

!function(){"use strict";((e,i)=>{var n,c;null!==(n=(c=window.marfeel.config).experiences)&&void 0!==n||(c.experiences={}),window.marfeel.config=Object.assign(Object.assign({},e),window.marfeel.config),Object.assign(window.marfeel.config.experiences,{preflight:i})})({"hasCdp":false},{"active":false,"hasPreflight":false,"recommender":{"enabled":true,"personalizedContent":true,"curatedContent":true},"preflight":{"compass":{},"inline":{}}})}();
var e,t,r,n,i={129:(e,t,r)=>{function n(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}r.d(t,{C:()=>we,E:()=>y,a:()=>qi,b:()=>Fi,c:()=>ro,e:()=>c,g:()=>kn,s:()=>Cn,t:()=>l,w:()=>p});var i=r(601),o=r(795);"function"==typeof SuppressedError&&SuppressedError;const s={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};function a(e){const t=[];return e.forEach(((e,r)=>{t.push(r+"="+function(e){return encodeURIComponent(e).replace(/[!'\(\)~]|%20|%00/g,(function(e){return s[e]}))}(e))})),t.join("&")}const c=(e,t,{body:r,contentType:n,keepalive:i,timeout:o,onSuccessCallback:s,onErrorCallback:a,mapNetworkError:c=(()=>0)}={})=>{const l=null!=r,u=n&&l?new Blob([r],{type:n}):r;fetch(t,Object.assign(Object.assign(Object.assign({method:e,credentials:"include"},l?{body:u}:{}),i?{keepalive:i}:{}),void 0!==o?{signal:window.AbortSignal.timeout(o)}:{})).then((e=>{e.ok?e.text().then((e=>null==s?void 0:s(e))):null==a||a(e.status)})).catch((e=>null==a?void 0:a(c(e))))};function l(e,t,{body:r,contentType:n,sync:i=!1,onSuccessCallback:o,onErrorCallback:s}={}){const a=new XMLHttpRequest;return a.open(e,t,!i),n&&a.setRequestHeader("Content-Type",n),a.withCredentials=!0,i||(a.onreadystatechange=()=>{4===a.readyState&&(200===a.status?null==o||o(a.responseText):null==s||s(a.status))}),a.send(r),i?a.responseText:void 0}const u="undefined"!=typeof window&&/^((?!chrome|android).)*safari/i.test(window.navigator.userAgent)&&((e=window.navigator.userAgent)=>{const t=function(e,t){const r=(e||window.navigator.userAgent).match(/version\/(\d+(\.\d+)?)/i);return r&&r.length>1&&r[1]||""}(e),r=parseInt(t.split(".")[0],10);return!isNaN(r)&&r})()<13,d=(()=>{try{return"keepalive"in new Request("https://www.google.com/")}catch(e){return!1}})(),h="undefined"!=typeof window&&void 0!==window.navigator.sendBeacon,p="undefined"!=typeof window&&"fetch"in window;var f,m,g,v;function y(e,t,{contentType:r,sync:n=!1,onSuccessCallback:i,onErrorCallback:o,timeout:s,cancelOnTimeout:g,onTimeoutCallback:v,timeoutFilter:y}={}){const b=!!i||!!o,w=((e,t)=>u||!p&&!h||t?f.XHR:p&&(d||e)?f.FETCH:h&&!e?f.BEACON:f.XHR)(b,n),k=((e,t,r,n)=>t&&void 0!==r&&e!==f.BEACON?n&&"AbortSignal"in window&&e===f.FETCH?m.ABORT:m.TIMER:m.NONE)(w,b,n?void 0:s,g),{onErrorCallback:O,onSuccessCallback:C}=((e,t,r,n,i,o=!0)=>{if(o&&e===m.TIMER&&void 0!==t){let e=!0;const o=((e,t)=>Array.isArray(e)?e:t?[e,void 0]:[void 0,e])(t,i).map(((t,r)=>{const o=0===r?i:()=>{e=!1,null==n||n(408)};if(void 0!==t)return window.setTimeout((()=>{null==o||o()}),t)})).filter(Boolean),s=t=>r=>{o.forEach((e=>window.clearTimeout(e))),e&&(null==t||t(r))};return{onSuccessCallback:s(r),onErrorCallback:s(n)}}return{onSuccessCallback:r,onErrorCallback:n}})(k,s,i,o,v,(S=e,!(null==(E=y)?void 0:E.length)||E.includes(S)));var S,E;const P=function(e,t){return"string"==typeof e?e:"application/x-www-form-urlencoded"===t?a(e):JSON.stringify(e)}(t,r);switch(w){case f.FETCH:return void c("POST",e,{body:P,contentType:r,keepalive:!0,onSuccessCallback:C,onErrorCallback:O,mapNetworkError:e=>(e=>e instanceof DOMException&&("TimeoutError"===e.name||e.code===DOMException.TIMEOUT_ERR))(e)?408:0,timeout:k===m.ABORT&&void 0!==s?"number"==typeof s?s:s[1]:void 0});case f.BEACON:return void((e,t,{contentType:r}={})=>{let n=t;r&&(n=new Blob([t],{type:r})),window.navigator.sendBeacon(e,n)})(e,P,{contentType:r});default:return l("POST",e,{body:P,onSuccessCallback:C,onErrorCallback:O,contentType:r,sync:n})}}(g=f||(f={}))[g.XHR=0]="XHR",g[g.FETCH=1]="FETCH",g[g.BEACON=2]="BEACON",function(e){e[e.ABORT=0]="ABORT",e[e.NONE=1]="NONE",e[e.TIMER=2]="TIMER"}(m||(m={})),function(e){e[e.ORIGIN=0]="ORIGIN",e[e.FALLBACK=1]="FALLBACK"}(v||(v={}));const b=e=>null==e?void 0:e.replace(/\/$/,"");class w{constructor(e,{fallback:t,fallbackWindow:r=5e3,onModeChange:n=(()=>{}),timeout:i,timeoutStrategy:o}={}){var s;this.mode=v.ORIGIN,this.requests={},this.getClosestTimeout=e=>{if(!this.timeout)return;const t=Object.keys(this.timeout).map(Number).filter((t=>t<=e)).sort(((e,t)=>t-e))[0];return void 0!==t?"number"==typeof this.timeout[t]?[void 0,this.timeout[t]]:this.timeout[t]:void 0},this.endpoint=b(e),this.fallback=b(t),this.fallbackWindow=r,this.onModeChange=n,this.timeoutStrategy=o instanceof String?{strategy:o}:o,this.timeout=((e,t)=>{const r="object"==typeof e;if(!(void 0===e||r&&0===Object.keys(e).length))return r?e:{0:"mirror_first"===t?[e,void 0]:e}})(i,null===(s=this.timeoutStrategy)||void 0===s?void 0:s.strategy)}setRequestStatus(e,t=!0){const r=this.requests[e]||{number:0,pending:!1};t||(r.number+=1),r.pending=t,this.requests[e]=r}isRequestPending(e){var t;return!!(null===(t=this.requests[e])||void 0===t?void 0:t.pending)}getRequestsNumber(e){var t,r;return null!==(r=null===(t=this.requests[e])||void 0===t?void 0:t.number)&&void 0!==r?r:0}switchMode(e,t){this.mode=e,window.setTimeout((()=>this.onModeChange(e,t)),0)}getUri(e,t={},r=this.mode){const n=e.startsWith("/")?e:`/${e}`;return function(e,t){const r=new RegExp(`:(${Object.keys(t).join("|")})`,"g");return e.replace(r,((e,r)=>t[r]||e))}(`${r===v.ORIGIN?this.endpoint:this.fallback}${n}`,t)}post(e,t,r={}){var n,i,o;const{onErrorCallback:s,onSuccessCallback:a,skipResponse:c=!1,vars:l,timeout:u,leaving:d,timeoutFilter:h=(null===(n=this.timeoutStrategy)||void 0===n?void 0:n.filter)}=r,p=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]])}return r}(r,["onErrorCallback","onSuccessCallback","skipResponse","vars","timeout","leaving","timeoutFilter"]),f=this.mode,m=e=>{var t;return 408===e&&(null===(t=this.timeoutStrategy)||void 0===t?void 0:t.processor)||(e=>e)},g=!!d||c,b=g?void 0:this.fallback&&(n=>{if(this.fallback&&f===v.ORIGIN){const i=m(n);this.switchMode(v.FALLBACK,n),this.post(e,i(t,e),r),window.setTimeout((()=>this.switchMode(v.ORIGIN)),this.fallbackWindow)}else null==s||s(n)})||s,w=g?void 0:t=>{null==a||a(t),this.setRequestStatus(e,!1)},k=this.isRequestPending(e)&&(null===(i=this.timeoutStrategy)||void 0===i?void 0:i.forceOnExit)&&this.mode===v.ORIGIN&&d,O=(t,r=this.mode,n,i)=>{var o;const s=v.FALLBACK===r?{}:{timeout:n,cancelOnTimeout:"abort"===(null===(o=this.timeoutStrategy)||void 0===o?void 0:o.strategy),onTimeoutCallback:i,timeoutFilter:null==h?void 0:h.map((e=>this.getUri(e,l,v.ORIGIN)))};y(this.getUri(e,l,r),t,Object.assign(Object.assign(Object.assign({},p),{onSuccessCallback:w,onErrorCallback:b}),s))},C=null!=u?u:this.getClosestTimeout(this.getRequestsNumber(e)),S=void 0===u&&"mirror_first"===(null===(o=this.timeoutStrategy)||void 0===o?void 0:o.strategy)&&this.getRequestsNumber(e)>0?void 0:()=>O(m(408)(t,e),v.FALLBACK);this.setRequestStatus(e,!g),O(t,this.mode,C,S),k&&O(m(408)(t,e),v.FALLBACK)}}var k;function O(){const e=[];return{listen:(t,r,n,i=!1)=>{t.addEventListener(r,n,{capture:i}),e.push((()=>t.removeEventListener(r,n,{capture:i})))},destroyAll:()=>e.forEach((e=>e()))}}!function(e){e[e.BACKGROUND=0]="BACKGROUND",e[e.FOREGROUND=1]="FOREGROUND",e[e.LEAVING=2]="LEAVING",e[e.BF_CACHE=3]="BF_CACHE",e[e.LOAD=4]="LOAD"}(k||(k={}));const C=e=>{const{listen:t,destroyAll:r}=O();return void 0!==document.addEventListener&&void 0!==document.hidden&&t(document,"visibilitychange",(()=>{"hidden"===document.visibilityState&&e(k.BACKGROUND)})),t(window,"pagehide",(()=>e(k.LEAVING)),!0),t(window,"blur",(()=>{"hidden"===document.visibilityState&&e(k.BACKGROUND)}),!0),u&&t(window,"beforeunload",(()=>e(k.LEAVING)),!0),r},S=e=>{const{listen:t,destroyAll:r}=O();return void 0!==document.addEventListener&&void 0!==document.hidden&&t(document,"visibilitychange",(()=>{"hidden"!==document.visibilityState&&e(k.FOREGROUND)})),t(window,"pageshow",(t=>{e(t.persisted?k.BF_CACHE:k.LOAD)}),!0),t(window,"focus",(()=>{"hidden"!==document.visibilityState&&e(k.FOREGROUND)}),!0),r},E=(e,t=!1)=>"replicas"in e?e:{api:e,replicas:1,primary:t};class P{constructor(...e){this.apis=[],this.apis=e.map(((e,t)=>E(e,0===t)))}registerApi(e){this.apis.push(E(e))}post(...e){const[t,r,n]=e;this.apis.reduce(((e,t)=>{const r=new Array(t.replicas).fill(t).map(((e,t)=>Object.assign(Object.assign({},e),{replicaId:`${t}`})));return e.concat(r)}),[]).forEach((({api:e,replicaId:i,preprocess:o=(e=>e),primary:s})=>{try{const a=s?null==n?void 0:n.onSuccessCallback:void 0,c=s?null==n?void 0:n.onErrorCallback:void 0;e.post(t,o(r,null==n?void 0:n.contentType),Object.assign(Object.assign({},n),{onSuccessCallback:a,onErrorCallback:c,vars:Object.assign(Object.assign({},null==n?void 0:n.vars),{replicaId:i})}))}catch(e){}}))}}const T={childList:!0,subtree:!0};let I;const A=[],j=e=>{A.forEach((t=>{t(e)}))};function _(e){return new MutationObserver((t=>{t.forEach((t=>{"childList"===t.type&&e(t.target)}))}))}const D=(e,t=document.body)=>{const r=t===document.body;if(e){const i=((e,t)=>{let r;return function(...t){clearTimeout(r),r=setTimeout((()=>{e(...t)}),400)}})(e);"undefined"!=typeof MutationObserver&&(r?(n=()=>{i(document.body)},A.push(n),I||(I=_(j),I.observe(document.body,T))):_(i).observe(t,T))}var n};let R={};const N=e=>{const t=document.createElement("a");return t.href=e,t.origin},M=(e,t)=>{var r,n,i;return"fbia"===e?window.ia_document.shareURL:t&&(null===(i=null===(n=null===(r=null===performance||void 0===performance?void 0:performance.getEntriesByType)||void 0===r?void 0:r.call(performance,"navigation"))||void 0===n?void 0:n[0])||void 0===i?void 0:i.name)||window.location.href},L=e=>{if(2===e)return window.ia_document.referrer;const t=document.referrer||"";if(13===e||t.includes("//www.smartnews.com"))return t;try{const e=Object.getOwnPropertyDescriptor(Document.prototype,"referrer");if(e&&"function"==typeof e.get&&(e=>e.toString().includes("[native code]"))(e.get))return e.get.call(document)||""}catch(e){}return t},V=e=>{const t=L(e);if(t)try{if(new URL(t).pathname.endsWith(".js"))return null}catch(e){}return t},U=RegExp("^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])");function x(e,{cache:t=!0,readonly:r=!0}={}){try{if(!r)return new URL(e,document.baseURI);if(!R[e]){const{host:r,hostname:n,pathname:i,port:o,protocol:s,search:a,hash:c,href:l,origin:u}=new URL(e,document.baseURI),d={host:r,hostname:n,pathname:i,port:o,protocol:s,search:a,hash:c,href:l,origin:u};if(!t)return d;R[e]=d}return Object.assign({},R[e])}catch(e){return{}}}const F="data-mrf-link";function q(e,t,r=!0){const n=e;(r||!n.mrfLink)&&(n.mrfLink=t),(r||!e.hasAttribute(F))&&e.setAttribute(F,t)}const z=e=>x(e).href,Z=e=>{try{const t=new URL(e);return t.host.includes("mrf.io")&&t.searchParams.get("url")||e}catch(t){return e}};var B=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/i;function W(e){return"string"==typeof e&&B.test(e)}for(var H,G=[],J=0;J<256;++J)G.push((J+256).toString(16).slice(1));function K(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return(G[e[t+0]]+G[e[t+1]]+G[e[t+2]]+G[e[t+3]]+"-"+G[e[t+4]]+G[e[t+5]]+"-"+G[e[t+6]]+G[e[t+7]]+"-"+G[e[t+8]]+G[e[t+9]]+"-"+G[e[t+10]]+G[e[t+11]]+G[e[t+12]]+G[e[t+13]]+G[e[t+14]]+G[e[t+15]]).toLowerCase()}var $=new Uint8Array(16);function X(){if(!H&&!(H="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return H($)}var Y={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function Q(e,t,r){if(Y.randomUUID&&!t&&!e)return Y.randomUUID();var n=(e=e||{}).random||(e.rng||X)();if(n[6]=15&n[6]|64,n[8]=63&n[8]|128,t){r=r||0;for(var i=0;i<16;++i)t[r+i]=n[i];return t}return K(n)}function ee(e,t,r,n){switch(e){case 0:return t&r^~t&n;case 1:case 3:return t^r^n;case 2:return t&r^t&n^r&n}}function te(e,t){return e<<t|e>>>32-t}var re=function(e,t,r){function n(e,t,r,n){var i;if("string"==typeof e&&(e=function(e){e=unescape(encodeURIComponent(e));for(var t=[],r=0;r<e.length;++r)t.push(e.charCodeAt(r));return t}(e)),"string"==typeof t&&(t=function(e){if(!W(e))throw TypeError("Invalid UUID");var t,r=new Uint8Array(16);return r[0]=(t=parseInt(e.slice(0,8),16))>>>24,r[1]=t>>>16&255,r[2]=t>>>8&255,r[3]=255&t,r[4]=(t=parseInt(e.slice(9,13),16))>>>8,r[5]=255&t,r[6]=(t=parseInt(e.slice(14,18),16))>>>8,r[7]=255&t,r[8]=(t=parseInt(e.slice(19,23),16))>>>8,r[9]=255&t,r[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,r[11]=t/4294967296&255,r[12]=t>>>24&255,r[13]=t>>>16&255,r[14]=t>>>8&255,r[15]=255&t,r}(t)),16!==(null===(i=t)||void 0===i?void 0:i.length))throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");var o=new Uint8Array(16+e.length);if(o.set(t),o.set(e,t.length),(o=function(e){var t=[1518500249,1859775393,2400959708,3395469782],r=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof e){var n=unescape(encodeURIComponent(e));e=[];for(var i=0;i<n.length;++i)e.push(n.charCodeAt(i))}else Array.isArray(e)||(e=Array.prototype.slice.call(e));e.push(128);for(var o=e.length/4+2,s=Math.ceil(o/16),a=new Array(s),c=0;c<s;++c){for(var l=new Uint32Array(16),u=0;u<16;++u)l[u]=e[64*c+4*u]<<24|e[64*c+4*u+1]<<16|e[64*c+4*u+2]<<8|e[64*c+4*u+3];a[c]=l}a[s-1][14]=8*(e.length-1)/Math.pow(2,32),a[s-1][14]=Math.floor(a[s-1][14]),a[s-1][15]=8*(e.length-1)&4294967295;for(var d=0;d<s;++d){for(var h=new Uint32Array(80),p=0;p<16;++p)h[p]=a[d][p];for(var f=16;f<80;++f)h[f]=te(h[f-3]^h[f-8]^h[f-14]^h[f-16],1);for(var m=r[0],g=r[1],v=r[2],y=r[3],b=r[4],w=0;w<80;++w){var k=Math.floor(w/20),O=te(m,5)+ee(k,g,v,y)+b+t[k]+h[w]>>>0;b=y,y=v,v=te(g,30)>>>0,g=m,m=O}r[0]=r[0]+m>>>0,r[1]=r[1]+g>>>0,r[2]=r[2]+v>>>0,r[3]=r[3]+y>>>0,r[4]=r[4]+b>>>0}return[r[0]>>24&255,r[0]>>16&255,r[0]>>8&255,255&r[0],r[1]>>24&255,r[1]>>16&255,r[1]>>8&255,255&r[1],r[2]>>24&255,r[2]>>16&255,r[2]>>8&255,255&r[2],r[3]>>24&255,r[3]>>16&255,r[3]>>8&255,255&r[3],r[4]>>24&255,r[4]>>16&255,r[4]>>8&255,255&r[4]]}(o))[6]=15&o[6]|80,o[8]=63&o[8]|128,r){n=n||0;for(var s=0;s<16;++s)r[n+s]=o[s];return r}return K(o)}try{n.name="v5"}catch(e){}return n.DNS="6ba7b810-9dad-11d1-80b4-00c04fd430c8",n.URL="6ba7b811-9dad-11d1-80b4-00c04fd430c8",n}();const ne=e=>!!e&&W(e),ie=()=>{try{return Q()}catch(e){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){const t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)}))}},oe="mrf:canonical",se=(e,t,r)=>{const{fromMrfMeta:n=!0,fromLink:i=!0,fromLocation:o=!0}=r||{};return(n?((e=!0)=>{let t=document.querySelector(`meta[property="${oe}"][content]`);t||(t=document.querySelector(`meta[name="${oe}"][content]`));const r=null==t?void 0:t.getAttribute("content");return e?!!r&&z(r)||null:r||null})(t):void 0)||(i?((e=!0)=>{const t=document.querySelector('link[rel="canonical"][href]'),r=null==t?void 0:t.getAttribute("href");return e?!!r&&z(r)||null:r||null})(t):void 0)||(o?(e=>{if("fbia"===e){const e=document.createElement("a");return e.href=window.ia_document.shareURL,e.origin+e.pathname}return window.location.origin+window.location.pathname})(e):void 0)},ae="scrollHeight",ce=[{qs:".mrf-current .mrf-detailsBody",max:999},{qs:".mrf-current .mrf-sectionPart",max:999},{qs:".mrf-article-body",max:999},{qs:"article",max:1}];let le,ue=0;const de=(e,t=0,r=!0,n=!1)=>{let i;try{e&&(le=r||!le?ce.reduce(((e,t)=>{if(e)return e;const r=document.querySelectorAll(t.qs);return r&&r.length<=t.max?(e=>{const t=[];return e.forEach((e=>(e=>{const t=e.getBoundingClientRect();if(!t.width&&!t.height)return!1;const r=window.innerHeight||document.documentElement.clientHeight,n=window.innerWidth||document.documentElement.clientWidth,i=t.top<=r&&t.top+t.height>=0,o=t.left<=n&&t.left+t.width>=0;return i&&o})(e)&&t.push(e))),t.length>0?t.sort(((e,t)=>t.offsetTop-e.offsetTop))[0]:null})(Array.from(r)):null}),null):le,ue=0);const n=(e=>{const t=(()=>{const e=document.body;return document.documentElement.scrollTop||!!e&&e.scrollTop||0})();return e?t-e.offsetTop:t})(le),o=(e=>{const t=document.body;return e?e.offsetHeight:document.documentElement[ae]||!!t&&t[ae]||0})(le),s=document.documentElement.clientHeight;i=t?(n+t)/o*100:n/(o-s)*100,i>ue?ue=i:i=ue}catch(e){i=50}return n?i:isNaN(i)?50:i>100?100:i<0?0:i},he={},pe=(()=>{try{const e="__test_session_storage__";return window.sessionStorage.setItem(e,e),window.sessionStorage.removeItem(e),!0}catch(e){return!1}})(),fe=(e,t)=>{try{pe?window.sessionStorage.setItem(e,t):he[e]=t}catch(e){}},me=e=>{try{return pe?window.sessionStorage.getItem(e):he[e]}catch(e){return null}},ge=(e,t)=>{const r=JSON.stringify(t);fe(e,r)},ve="https://events.newsroom.bi",ye="https://compassingest-:replicaId.staging.cl15.k8s.mrf.io",be="".concat(ve).concat("/ingest.php"),we="personalization";let ke,Oe=!0;const Ce={getConsent:()=>Oe,isInitiated:()=>!0,isRealCMP:()=>!0,setConsent:(e,t)=>{var r;Oe=!0===(r=t)||"true"===r,fe("__nrCookieConsent",Oe),ke&&ke()},onChange:e=>{ke=e}};function Se(e){return e||!1===e}function Ee(e){var t;return e.isInitiated()?null!=e&&null!==(t=e.isActive)&&void 0!==t&&t.call(e)?e.getConsent("cookies")?1:0:3:2}class Pe{static wait(){return Promise.resolve(!0)}static resolve(){}}class Te{static emitRecirculation(){}}function Ie(e,t){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return void 0!==e[t]||null===e[t]?e[t]:r}function Ae(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Date;return Math.floor(e.getTime()/1e3)}function je(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}const _e=function(e){const t=e=>e&&"object"==typeof e;for(var r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];return n.reduce(((e,r)=>(Object.keys(r).forEach((n=>{const i=e[n],o=r[n];Array.isArray(i)&&Array.isArray(o)?e[n]=[...i].concat(...o):t(i)&&t(o)?e[n]=_e(i,o):e[n]=o})),e)),e)},De=(e,t)=>{const r=(e=>{try{const t=new URL(e);return Array.from(t.searchParams.entries()).filter((e=>{let[t]=e;return t.startsWith("mrf_")})).reduce(((e,t)=>{let[r,n]=t;return e[r]=n,e}),{})}catch(e){return{}}})(e);if(r[t])return"string"==typeof r[t]&&ne(r[t])?r[t]:void 0},Re=e=>De(e,"mrf_s"),Ne=e=>De(e,"mrf_u"),Me=e=>[...new Set(e)],Le=(e,t)=>{let r=null;return function(){for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];window.clearTimeout(r),r=window.setTimeout((()=>{e(...i)}),t)}};function Ve(e,t){if(!e||!t)return!1;let r;try{r=new URL(e).hostname.toLowerCase()}catch(t){r=e.toLowerCase()}const n=t.toLowerCase();if(n.startsWith(".")){const e=n.slice(1);return r===e||r.endsWith(".".concat(e))}return r===n}const Ue=function(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];const r=document.cookie,n=r.indexOf(e+"="),i=n+e.length+1;if(!n&&e!==r.substring(0,e.length))return null;if(-1===n)return null;let o=r.indexOf(";",i);return-1===o&&(o=r.length),t?decodeURIComponent(r.substring(i,o)):r.substring(i,o)},xe=function(e,t,r,n){let i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"",o=!(arguments.length>5&&void 0!==arguments[5])||arguments[5];const s=[i];i.startsWith(".")&&s.push(i.slice(1));const a=new Date;a.setTime(a.getTime());const c="https:"===window.location.protocol;s.forEach((i=>{document.cookie=e+"="+(o?encodeURIComponent(t):t)+(r?";expires="+r:"")+(n?";path="+n:"")+(i?";domain="+i:"")+(c?";secure":"")}))},Fe=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";document.cookie="".concat(e,"=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=").concat(t||"/","; domain=").concat(r||"",";"),r.startsWith(".")&&Fe(e,t,r.slice(1))},qe=e=>{const t="mrf_cookie";xe(t,"ok",void 0,"/",e);const r=Ue(t);return Fe(t,"/",e),!!r},ze={score:"-1"},Ze="".concat("https://compassdynamicpaywall.mrf.io","/score/"),Be="".concat("https://compassdynamicpaywall.mrf.io","/predict/"),We=e=>{let{accountId:t,userId:r,siteUserId:n,userType:i,totalPageviews:o,sessionDuration:s}=e;const a=new URLSearchParams(window.location.search),c=a.get("utm_medium"),l=a.get("utm_source"),u=["ac=".concat(t),"url=".concat(encodeURIComponent(window.location.href)),"u=".concat(r),"pp=".concat(document.referrer),"ut=".concat(i)];return n&&u.push("sui=".concat(n)),c&&u.push("utm_medium=".concat(c)),l&&u.push("utm_source=".concat(l)),o&&u.push("tp=".concat(o)),s&&u.push("sd=".concat(s)),u.join("&")};let He;const Ge="https://events.newsroom.bi/data/rfv.php",Je={rfv:"-1"},Ke=(e,t)=>{const r={rfv:e,ts:new Date};return fe("".concat("compass_rfv","_").concat(t),JSON.stringify(r)),e},$e=function(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];const i=new FormData;return i.append("u",t),i.append("ac",e),i.append("sui",r||""),i.append("nu","".concat(+n)),i},Xe=e=>{try{y("https://events.newsroom.bi/data2/rfv.php",e,{contentType:"application/x-www-form-urlencoded"})}catch(e){}},Ye=e=>{const{ts:t,rfv:r}=(e=>{const t=me("".concat("compass_rfv","_").concat(e));let r={ts:null,rfv:null};if(t)try{r=JSON.parse(t)}catch(e){}return r})(e);return(e=>{if(!e)return!0;const t=new Date(e);return t.setMinutes(t.getMinutes()+30),t<new Date})(t)?null:r};function Qe(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function et(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Qe(Object(r),!0).forEach((function(t){(0,i.Z)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Qe(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}class tt{constructor(e){this._enabled=!!e.hasCdp,this._state=function(e,t){const r=e&&t.getCachedIdentity?t.getCachedIdentity():null;return et(et({},{masterId:null,rfv:null,cohorts:[],meters:[]}),{},{masterId:e&&t.getMasterId?t.getMasterId():null,rfv:r&&r.rfv||null,cohorts:r&&r.cohorts&&r.cohorts.length?r.cohorts:[]})}(this._enabled,e),this._ready=e.hasCdp?r.e(403).then(r.bind(r,403)).then((t=>{let{createCdp:r}=t;return r(e,this._state)})):null}wr(e,t){return this._ready?this._ready.then(e):Promise.resolve(t)}initialize(e){this.wr((t=>t.initialize(e)),void 0)}onIdentityResolved(e,t){this.wr((r=>r.onIdentityResolved(e,t)),void 0)}resolveIdentity(e){return this.wr((t=>t.resolveIdentity(e)),void 0)}linkIdentity(e,t,r,n){return this.wr((i=>i.linkIdentity(e,t,r,n)),void 0)}clearIdentity(){return Object.assign(this._state,{masterId:null,rfv:null,cohorts:[],meters:[]}),this.wr((e=>e.clearIdentity()),void 0)}resetRemoteIdentity(){return this.wr((e=>e.resetRemoteIdentity()),null)}updateProfile(e,t){return this.wr((r=>r.updateProfile(e,t)),void 0)}addSegment(e,t){return this.wr((r=>r.addSegment(e,t)),void 0)}removeSegment(e,t){return this.wr((r=>r.removeSegment(e,t)),void 0)}replaceSegments(e,t){return this.wr((r=>r.replaceSegments(e,t)),void 0)}clearSegments(e){return this.wr((t=>t.clearSegments(e)),void 0)}reconcileSegments(e){return this.wr((t=>t.reconcileSegments(e)),void 0)}getMeterSnapshot(){return this.wr((e=>e.getMeterSnapshot()),{meters:[]})}getMeter(e){return this._state.meters.find((t=>t.name===e))||null}listMeters(){return this._state.meters.slice()}incrementMeter(e){return this.wr((t=>t.incrementMeter(e)),null)}invalidateMeters(){this.wr((e=>e.invalidateMeters()),void 0)}getData(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const{masterId:t,rfv:r,cohorts:n}=this._state;if(!e)return{masterId:t,rfv:r,cohorts:n};try{return{masterId:t,rfv:r?JSON.stringify(r):"",cohorts:JSON.stringify(n)}}catch(e){return{masterId:t,rfv:"",cohorts:JSON.stringify([])}}}getMasterId(){return this._state.masterId}get enabled(){return this._enabled}}class rt{constructor(e){this.compassTracker=e,this.inFlight=null}reset(){return this.inFlight?this.inFlight:this.compassTracker.getSiteUserId()?(this.inFlight=this.run().finally((()=>{this.inFlight=null})),this.inFlight):Promise.resolve()}async run(){const e=this.compassTracker;e.setSiteUserId(void 0),this.resetVisitor(),await e.cdp.clearIdentity(),await e.cdp.resetRemoteIdentity()}resetVisitor(){const e=this.compassTracker,t=e.permanentCookie,r=e.temporalCookie;t&&r&&(Fe("compass_uid","/",e.cookieDomain),t.firstVisit=void 0,t.timesVisited=void 0,t.futurePreviousVisit=void 0,t.userId=void 0,t.userType=void 0,t.userVars=[],t.userSegments=[],r.currentVisitStarted=void 0,r.visitedInThisSession=void 0,r.previousVisit=void 0,r.sessionVars=[],r.sessionId=void 0,r.pagesViewed=void 0,e.markAsModified("permanent"),e.markAsModified("temporal"),e.setFirstVisit(),e.setCurrentVisitStarted(),e.setTimesVisited(),e.setPreviousVisit(),e.saveCookies())}}const nt={},it=(()=>{try{const e="__test_local_storage__";return window.localStorage.setItem(e,e),window.localStorage.removeItem(e),!0}catch(e){return!1}})(),ot=(e,t)=>{try{it?window.localStorage.setItem(e,t):nt[e]=t}catch(e){}},st=["data-mrf-recirculation","data-dtm-region","dtm-region"],at=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e&&(e=e.startsWith("&")?e.slice(1):" ".concat(e)),st.map((t=>"[".concat(t,"]").concat(e))).join(",")};function ct(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function lt(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ct(Object(r),!0).forEach((function(t){(0,i.Z)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ct(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}const ut=e=>e&&e.split("?")[0].split("#")[0],dt=()=>[...document.body.querySelectorAll(at())].filter((e=>e.shadowRoot)),ht=e=>null!==e.getAttribute("data-mrf-layout")&&null===e.getAttribute("data-mrf-layout-anchor")?e.querySelector("[".concat("data-mrf-layout-anchor","]")):e,pt=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const r=ht(e);if(!r)return null;if(r!==e)return pt(r,t);const n=function(e,t){if(!e)return null;let r=null;if(r=t?e.getAttribute(t):"mrfLink"in e&&e.mrfLink||e.getAttribute(F)||e.getAttribute("href")||e.getAttribute("data-mrf-uri"),null===r)return null;const n=x(r||"");return"null"===n.origin?null:n.href}(e,t);return n?(e=>!!e&&x(e).host===window.location.host)(n)?n&&ut(n):n:null};function ft(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}const mt=()=>(e=>{const t=(e=>{try{return it?window.localStorage.getItem(e):nt[e]}catch(e){return null}})("___m_rec");if(t)try{return JSON.parse(t)}catch(e){}return null})(),gt=(e,t)=>{if(it){const r=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ft(Object(r),!0).forEach((function(t){(0,i.Z)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ft(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},mt()||{});r[t]=e,ot("___m_rec",JSON.stringify(r))}},vt=e=>{const t=ut(e),r=mt();r&&(delete r[t],ot("___m_rec",JSON.stringify(r)))};function yt(e,t,r){const n=e.getAttribute(r);t.forEach((e=>{let{el:t}=e;t.getAttribute(r)!==n&&t.setAttribute(r,n||"")}))}const bt=e=>e.hasAttribute("cmp-ltrk"),wt=e=>e.hasAttribute("data-mrf-recirculation-skip"),kt=e=>e.getAttribute("cmp-ltrk-idx"),Ot=(e,t,r)=>{e.setAttribute("cmp-ltrk",t),e.setAttribute("cmp-ltrk-idx","".concat(r))},Ct=e=>"[".concat("cmp-ltrk",'="').concat(e,'"]'),St=(e,t,r)=>{const n=e.map((e=>function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"all";const r=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];const i=[...r],o=i.pop();if(i.some((e=>!Boolean(e))))return;const s="missing"===t?":not([".concat(o,"])"):"",a=i.join(" ");return at("".concat(a).concat(s))};return{element:r(e.element,"data-mrf-layout"),anchor:e.anchor?r(e.element,e.anchor,"data-mrf-layout-anchor"):r(e.element,"data-mrf-layout-anchor"),img:r(e.element,e.img,"data-mrf-layout-img"),title:r(e.element,e.title,"data-mrf-layout-title")}}(e,"missing")[t])).filter(Boolean).join(",");n&&Array.from(document.querySelectorAll(n)).forEach((e=>e.setAttribute(r,"")))},Et=e=>{e.length&&(St(e,"element","data-mrf-layout"),St(e,"anchor","data-mrf-layout-anchor"),St(e,"img","data-mrf-layout-img"),St(e,"title","data-mrf-layout-title"))},Pt=e=>{const t={};return e.reduce(((e,r)=>{const{el:n}=r,i=(e=>{try{const t=kt(e);if(t)return parseInt(t,10)}catch(e){}})(n);return void 0!==i&&t[i]||(e.push(r),t[i]=!0),e}),[])},Tt={"data-mrf-experiment":"tv","mrf-site-ext":"ac2","cmp-ltrk-ext":"n2","mrf-editorial-id":"".concat("meta:").concat("mrf-editorial-id"),"cmp-ltrk":"".concat("meta:").concat("cmp-ltrk")},It={"data-mrf-root-experiment":["tv","".concat("meta:","tv")]},At=(e,t,r,n)=>{if(n.startsWith("meta:")){var i;const[o,s]=n.split("meta:");null!==(i=e.meta)&&void 0!==i||(e.meta={}),e.meta[s]=t.getAttribute(r)}else e[n]=t.getAttribute(r)},jt=(e,t)=>{let{el:r,root:n}=e;const i={url:pt(r,t)},o=kt(r);if(o){if(parseInt(o,10)>=255)return;i.p=o}return n&&Object.entries(It).forEach((e=>{let[t,r]=e;n.getAttribute(t)&&r.forEach((e=>At(i,n,t,e)))})),Object.entries(Tt).forEach((e=>{let[t,n]=e;r.getAttribute(t)&&At(i,r,t,n)})),i},_t=(e,t)=>e.map(((e,r)=>{const n=jt(e,t);return n?(parseInt(n.p,10)===r&&delete n.p,Object.keys(n).length>1?n:n.url):null})).filter((e=>!!e)),Dt=(e,t)=>{var r,n,i;return!("object"!=typeof e||!t)&&("control"===(null==e||null===(r=e.meta)||void 0===r?void 0:r.tv)||(null!==(n=null==e||null===(i=e.meta)||void 0===i?void 0:i["cmp-ltrk"])&&void 0!==n?n:"").startsWith("IL_"))&&!t.startsWith("IL_")};let Rt;const Nt={};class Mt{constructor(){this.timer=null}callOnTimer(e,t){this.timer=setTimeout((()=>{e()}),t)}cleanAndCallTimer(e,t){this.cleanTimer(),this.timer=setTimeout((()=>{e()}),t)}cleanTimer(){null!==this.timer&&(clearTimeout(this.timer),this.timer=null)}}class Lt{constructor(){this.store={}}push(e,t){this.store[e]?this.store[e].push(t):this.store[e]=[t]}clear(e){delete this.store[e]}contains(e,t){var r;return null===(r=this.store[e])||void 0===r?void 0:r.includes(t)}get(e){return this.store[e]}forEach(e){return Object.entries(this.store).forEach(e)}}const Vt=new Mt,Ut=new Lt,xt=new Lt,Ft=e=>{const t=[];Ut.forEach((e=>{let[r,n]=e;const i=n.map((e=>jt(e.link,e.urlAttr))).filter((e=>!!e&&!Dt(e,r)));i.length&&t.push({module:r,links:i}),Ut.clear(r)})),Object.keys(t).length>0&&e("impression",t)},qt=(e,t)=>{e.forEach((e=>{let{links:n,urlAttr:i,name:o}=e;o&&n.forEach((e=>{const n="element"===e.intersectionStrategy?e.el:Array.from(e.el.children).find((e=>e instanceof HTMLElement));n&&function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const i="IntersectionObserver"in window&&"IntersectionObserverEntry"in window&&"intersectionRatio"in window.IntersectionObserverEntry.prototype&&"isIntersecting"in window.IntersectionObserverEntry.prototype?Promise.resolve():r.e(360).then(r.t.bind(r,360,23));e.setAttribute("mrfObservableId",ie()),Nt[e.getAttribute("mrfObservableId")]=t,i.then((()=>{Rt=Rt||new IntersectionObserver((e=>{e.filter((e=>e.isIntersecting)).forEach((e=>{let{target:t}=e;const r=t.getAttribute("mrfObservableId");var i;r?(null===(i=Nt[r])||void 0===i||i.call(Nt,t),n||(Rt.unobserve(t),delete Nt[r])):Rt.unobserve(t)}))})),Rt.observe(e)}))}(n,(()=>{((e,t,r)=>{const n=kt(t.el);if(xt.contains(e,n)){var i;const o=jt(t,r);if(!(null==o?void 0:o.tv)&&!(null==o||null===(i=o.meta)||void 0===i?void 0:i.tv))return;const s=Ut.get(e);if(!s)return;const a=s.findIndex((e=>kt(e.link.el)===n));a>-1&&(s[a]={link:t,urlAttr:r})}else Ut.push(e,{link:t,urlAttr:r}),xt.push(e,n)})(o,e,i),Vt.cleanAndCallTimer((()=>Ft(t)),1e3)}))}))})),Ft(t)};function zt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Zt(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?zt(Object(r),!0).forEach((function(t){(0,i.Z)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):zt(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}const Bt=(e,t)=>{const r=e.map((e=>{let{name:t,links:r,urlAttr:n}=e;const i=_t(r,n);if(i.length)return{module:t,links:i}})).filter((e=>!!e));r.length&&t("elegible",r)},Wt=(e,t)=>{e.forEach((e=>{let{name:r,links:n,urlAttr:i}=e;n.forEach((e=>{e.el.addEventListener("click",(n=>{const o=e.el,s=pt(o,i);if(a=e.el,!n.__mrfTracked&&!0!==(null===(c=ht(a))||void 0===c?void 0:c.__mrfTracked)&&s){const o=_t([e],i);if(o.length&&Dt(o[0],r))return;((e,t)=>{const r=ht(e);t.__mrfTracked=!0,r&&(r.__mrfTracked=!0)})(e.el,n),gt(r||"",s),o.length&&t("click",[{module:r,links:o}])}var a,c}))}))}))},Ht=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:()=>!0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document.body,r=arguments.length>2?arguments[2]:void 0;const n=r?"a":st.map((e=>"[".concat(e,"] a[href], a[href][").concat(e,"], [").concat(e,"] article[data-mrf-uri], [").concat(e,"] [").concat("data-mrf-layout","]"))).join(","),i=Array.from(t.querySelectorAll(n)).reduce(((t,n)=>{const i=(e=>e&&e.closest(at()))(n)||r,o=(e=>{var t;return null===(t=st.reduce(((t,r)=>t||(null==e?void 0:e.getAttribute(r))),void 0))||void 0===t?void 0:t.replace(/"/g,'\\"')})(i),s=(null==i?void 0:i.getAttribute("data-mrf-recirculation-url-attribute"))||"",a=n,c=pt(a,s);if(c&&q(a,c,!1),!o||!c||!e(o,a))return t;const l=t[o]||{links:[]},u="contents"===window.getComputedStyle(a,null).display;return Zt(Zt({},t),{},{[o]:Zt(Zt({},l),{},{links:[...l.links,{el:a,root:i,intersectionStrategy:u?"child":"element"}],urlAttr:s})})}),{});return(e=>{const t=dt();Object.entries(e).forEach((e=>{let[r,{links:n,urlAttr:i}]=e;const o=(e=>Number(e.map((e=>e.getAttribute("cmp-ltrk-idx"))).filter(Boolean).map((e=>e?parseInt(e,10):0)).reduce(((e,t)=>isNaN(e)||e<t?t:e),NaN)))(((e,t)=>{const r=t.filter((t=>{return r=e,n=t,st.some((e=>{var t;return(null===(t=n.getAttribute(e))||void 0===t?void 0:t.toLowerCase())===r.toLowerCase()}));var r,n})).reduce(((t,r)=>{var n;return[...t,...(null===(n=r.shadowRoot)||void 0===n?void 0:n.querySelectorAll(Ct(e)))||[]]}),[]);return[...document.querySelectorAll(Ct(e)),...r]})(r,t));let s=isNaN(o)?0:o+1;n.forEach((e=>{const{el:t,root:o}=e,a=pt(t,i);if(wt(t)||bt(t)||!a)return;const c=((e,t,r)=>{const n=r.closest("[".concat("data-mrf-layout","]")),i=null==n?void 0:n.getAttribute("cmp-ltrk-idx");return n&&n.mrfLink===t&&i&&!isNaN(i)?i:e})(s,a,t);Ot(t,r,c);const l=n.filter((e=>{let{el:r,root:n}=e;return r!==t&&n===o&&!wt(r)&&!bt(r)&&pt(r,i)===a}));if(l.length){var u;const t=((e,t)=>{const r=document.querySelectorAll(t);let n=e;for(let i=0;i<8&&n.parentElement;i++){const i=Array.from(n.querySelectorAll(t)).filter((e=>null!==e.offsetParent));if(i.length>=r.length&&i.some((t=>!t.isEqualNode(e))))return n;if(null!==n.getAttribute("data-mrf-layout"))return null;n=n.parentElement}return null})(l[0].el,'a[href="'.concat(a,'"]'));(null!==(u=null==t?void 0:t.querySelectorAll("a"))&&void 0!==u?u:[]).length<=l.length+5&&(l.forEach((e=>{let{el:t}=e;return Ot(t,r,c)})),(e=>{let t=!1;if(["data-mrf-experiment"].forEach((r=>{const n=e.find((e=>{let{el:t}=e;return t.hasAttribute("data-mrf-experiment")}));n&&(yt(n.el,e,r),t=!0)})),!t){const t=new MutationObserver((r=>{r.forEach((r=>{"attributes"===r.type&&"data-mrf-experiment"===r.attributeName&&(yt(r.target,e,"data-mrf-experiment"),t.disconnect())}))}));e.forEach((e=>{let{el:r}=e;t.observe(r,{attributes:!0,attributeFilter:["data-mrf-experiment"]})}))}})([...l,e]))}s++}))}))})(i),Object.entries(i).map((e=>{let[t,r]=e;return{name:t,links:r.links,urlAttr:r.urlAttr}}))},Gt=e=>e.map((e=>{let{links:t,name:r,urlAttr:n}=e;return{name:r,urlAttr:n,links:Pt(t)}}));function Jt(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:()=>{},t=arguments.length>1?arguments[1]:void 0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const{parentNode:n,layouts:i=[]}=r;Et(i);const o=Ht(((e,t)=>!bt(t)&&!wt(t)),t,n),s=Gt(o);return Bt(s,e),qt(o,e),Wt(o,e),o.length}function Kt(e,t,r,n){Jt(e,t,r)&&n(),D((t=>{Jt(e,t,r)&&n()}),t)}function $t(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Xt(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?$t(Object(r),!0).forEach((function(t){(0,i.Z)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):$t(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}class Yt{constructor(){(0,i.Z)(this,"modules",void 0),this.modules={}}processModules(e,t,r){const n=t.filter(r);return n.length?(this.modules=Xt(Xt({},this.modules),n.reduce(((t,r)=>Xt(Xt({},t),{},{[r.n]:"elegible"!==e})),{})),t.map((e=>{if(n.find((t=>t.n===e.n))){const t=function(){const e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).find((e=>function(e){var t;return"object"==typeof e&&null!==e&&!(null===(t=e.meta)||void 0===t||!t.tv)}(e)));return e?e.meta.tv:void 0}(e.e);return Xt(Xt({},e),{},{e:[...e.e,Xt({url:" ",p:"255"},t?{tv:t}:{})]})}return e}))):t}process(e,t){return"elegible"===e?this.processModules(e,t,(e=>!Object.keys(this.modules).includes(e.n))):"impression"===e?this.processModules(e,t,(e=>void 0!==this.modules[e.n]&&!this.modules[e.n])):t}}const Qt=["meta"],er=async()=>{document&&"loading"===document.readyState&&await new Promise((e=>{document.addEventListener("DOMContentLoaded",e)}))},tr=(e,t)=>{e&&t&&gt("fc:".concat(e),t)},rr=e=>{let{modules:t,blacklist:r,redirectionLinks:n}=e,i=!1;return r.forEach((e=>{let{selector:t}=e;const r=document.querySelectorAll(t);Array.from(r).forEach((e=>{e instanceof HTMLElement&&!e.hasAttribute("data-mrf-recirculation-skip")&&e.setAttribute("data-mrf-recirculation-skip","")}))})),null==n||n.forEach((e=>{let{selector:t,queryParam:r}=e;const n=document.querySelectorAll(t);Array.from(n).forEach((e=>{if(!e.hasAttribute("data-mrf-recirculation-skip"))try{const n=(t=new URL(decodeURIComponent(decodeURIComponent(e.href))).search).length?t.slice(1).split("&").map((e=>e.split("="))).reduce(((e,t)=>{let[r,n]=t;return lt(lt({},e),{},{[r]:n})}),{}):{};n[r]&&q(e,decodeURIComponent(n[r]))}catch(e){}var t}))})),t.forEach((e=>{const t="selector"in e?e.selector:"[".concat(e.attr,"]"),r="name"in e?()=>e.name:t=>t.getAttribute(e.attr),n=document.querySelectorAll(t),o=e.urlAttribute;Array.from(n).forEach((e=>{(e=>(e=>(null===window||void 0===window?void 0:window.HTMLElementOrig)?e instanceof window.HTMLElementOrig:e instanceof HTMLElement)(e)&&!e.hasAttribute("data-mrf-recirculation-skip")&&!e.hasAttribute("data-mrf-recirculation")&&!e.closest("[data-mrf-experience]"))(e)&&(e.setAttribute("data-mrf-recirculation",r(e)),o&&e.setAttribute("data-mrf-recirculation-url-attribute",o),i=!0)}))})),i},nr=e=>{if("object"==typeof e&&null!==e){const t=n(e,Qt);return t&&1===Object.keys(t).length&&t.url?t.url:t}return e};function ir(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}class or{constructor(){(0,i.Z)(this,"t",void 0),(0,i.Z)(this,"o",0),(0,i.Z)(this,"i",[])}u(e){var t;if(e.hadRecentInput)return;const r=this.i[0],n=this.i.at(-1);this.o&&r&&n&&e.startTime-n.startTime<1e3&&e.startTime-r.startTime<5e3?(this.o+=e.value,this.i.push(e)):(this.o=e.value,this.i=[e]),null===(t=this.t)||void 0===t||t.call(this,e)}}const sr=()=>{const e=performance.getEntriesByType("navigation")[0];if(e&&e.responseStart>0&&e.responseStart<performance.now())return e},ar=e=>{if("loading"===document.readyState)return"loading";{const t=sr();if(t){if(e<t.domInteractive)return"loading";if(0===t.domContentLoadedEventStart||e<t.domContentLoadedEventStart)return"dom-interactive";if(0===t.domComplete||e<t.domComplete)return"dom-content-loaded"}}return"complete"},cr=e=>{const t=e.nodeName;return 1===e.nodeType?t.toLowerCase():t.toUpperCase().replace(/^#/,"")},lr=e=>{let t="";try{for(;9!==(null===(r=e)||void 0===r?void 0:r.nodeType);){var r;const n=e,i=n.id?"#"+n.id:[cr(n),...Array.from(n.classList).sort()].join(".");if(t.length+i.length>99)return t||i;if(t=t?i+">"+t:i,n.id)break;e=n.parentNode}}catch(e){}return t},ur=new WeakMap;function dr(e,t){return ur.get(e)||ur.set(e,new t),ur.get(e)}let hr=-1;const pr=()=>hr,fr=e=>{addEventListener("pageshow",(t=>{t.persisted&&(hr=t.timeStamp,e(t))}),!0)},mr=(e,t,r,n)=>{let i,o;return s=>{var a;t.value>=0&&(s||n)&&(o=t.value-(null!==(a=i)&&void 0!==a?a:0),(o||void 0===i)&&(i=t.value,t.delta=o,t.rating=((e,t)=>e>t[1]?"poor":e>t[0]?"needs-improvement":"good")(t.value,r),e(t)))}},gr=e=>{requestAnimationFrame((()=>requestAnimationFrame((()=>e()))))},vr=()=>{var e;const t=sr();return null!==(e=null==t?void 0:t.activationStart)&&void 0!==e?e:0},yr=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;const r=sr();let n="navigate";return pr()>=0?n="back-forward-cache":r&&(document.prerendering||vr()>0?n="prerender":document.wasDiscarded?n="restore":r.type&&(n=r.type.replace(/_/g,"-"))),{name:e,value:t,rating:"good",delta:0,entries:[],id:"v5-".concat(Date.now(),"-").concat(Math.floor(8999999999999*Math.random())+1e12),navigationType:n}},br=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};try{if(PerformanceObserver.supportedEntryTypes.includes(e)){const n=new PerformanceObserver((e=>{Promise.resolve().then((()=>{t(e.getEntries())}))}));return n.observe(function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ir(Object(r),!0).forEach((function(t){(0,i.Z)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ir(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({type:e,buffered:!0},r)),n}}catch(e){}},wr=e=>{let t=!1;return()=>{t||(e(),t=!0)}};let kr=-1;const Or=new Set,Cr=()=>"hidden"!==document.visibilityState||document.prerendering?1/0:0,Sr=e=>{if("hidden"===document.visibilityState){if("visibilitychange"===e.type)for(const e of Or)e();isFinite(kr)||(kr="visibilitychange"===e.type?e.timeStamp:0,removeEventListener("prerenderingchange",Sr,!0))}},Er=()=>{if(kr<0){var e;const t=vr(),r=document.prerendering||null===(e=globalThis.performance.getEntriesByType("visibility-state").filter((e=>"hidden"===e.name&&e.startTime>t))[0])||void 0===e?void 0:e.startTime;kr=null!=r?r:Cr(),addEventListener("visibilitychange",Sr,!0),addEventListener("prerenderingchange",Sr,!0),fr((()=>{setTimeout((()=>{kr=Cr()}))}))}return{get firstHiddenTime(){return kr},onHidden(e){Or.add(e)}}},Pr=e=>{document.prerendering?addEventListener("prerenderingchange",(()=>e()),!0):e()},Tr=[1800,3e3],Ir=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Pr((()=>{const r=Er();let n,i=yr("FCP");const o=br("paint",(e=>{for(const t of e)"first-contentful-paint"===t.name&&(o.disconnect(),t.startTime<r.firstHiddenTime&&(i.value=Math.max(t.startTime-vr(),0),i.entries.push(t),n(!0)))}));o&&(n=mr(e,i,Tr,t.reportAllChanges),fr((r=>{i=yr("FCP"),n=mr(e,i,Tr,t.reportAllChanges),gr((()=>{i.value=performance.now()-r.timeStamp,n(!0)}))})))}))},Ar=[.1,.25],jr=e=>e.find((e=>{var t;return 1===(null===(t=e.node)||void 0===t?void 0:t.nodeType)}))||e[0];let _r=0,Dr=1/0,Rr=0;const Nr=e=>{for(const t of e)t.interactionId&&(Dr=Math.min(Dr,t.interactionId),Rr=Math.max(Rr,t.interactionId),_r=Rr?(Rr-Dr)/7+1:0)};let Mr;const Lr=()=>{var e;return Mr?_r:null!==(e=performance.interactionCount)&&void 0!==e?e:0};let Vr=0;class Ur{constructor(){(0,i.Z)(this,"l",[]),(0,i.Z)(this,"h",new Map),(0,i.Z)(this,"m",void 0),(0,i.Z)(this,"p",void 0)}v(){Vr=Lr(),this.l.length=0,this.h.clear()}M(){const e=Math.min(this.l.length-1,Math.floor((Lr()-Vr)/50));return this.l[e]}u(e){var t;if(null!==(t=this.m)&&void 0!==t&&t.call(this,e),!e.interactionId&&"first-input"!==e.entryType)return;const r=this.l.at(-1);let n=this.h.get(e.interactionId);if(n||this.l.length<10||e.duration>r.T){var i;if(n?e.duration>n.T?(n.entries=[e],n.T=e.duration):e.duration===n.T&&e.startTime===n.entries[0].startTime&&n.entries.push(e):(n={id:e.interactionId,entries:[e],T:e.duration},this.h.set(n.id,n),this.l.push(n)),this.l.sort(((e,t)=>t.T-e.T)),this.l.length>10){const e=this.l.splice(10);for(const t of e)this.h.delete(t.id)}null===(i=this.p)||void 0===i||i.call(this,n)}}}const xr=e=>{const t=globalThis.requestIdleCallback||setTimeout;"hidden"===document.visibilityState?e():(e=wr(e),addEventListener("visibilitychange",e,{once:!0,capture:!0}),t((()=>{e(),removeEventListener("visibilitychange",e,{capture:!0})})))},Fr=[200,500];class qr{constructor(){(0,i.Z)(this,"m",void 0)}u(e){var t;null===(t=this.m)||void 0===t||t.call(this,e)}}const zr=[2500,4e3],Zr=(e,t)=>{try{if(PerformanceObserver.supportedEntryTypes.includes(e)){const r=new PerformanceObserver((e=>{e.getEntries().map((e=>t(e,r)))}));return r.observe({type:e,buffered:!0}),r}}catch(e){}};class Br{constructor(){let{disabled:e=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.cls=-1,this.lcp=0,this.fcp=0,this.wv=0,this.tbt=0,this.inp=0,this.lcpOffender=null,this.clsOffender=null,this.inpOffender=null,this.inpOffenderStatus=null,this.inpOffenderScript=null,this.inpOffenderScriptFn=null,this.inpOffenderScriptInvoke=null,this.inpInputDelay=null,this.inpProcessingDuration=null,this.inpPresentationDelay=null,this.inpIntersectionDuration=null,!e&&Array.prototype.at&&(this.setTbt(),this.setINP(),this.setLCP(),this.setFCP(),this.setCLS())}reset(){this.cls=-1,this.lcp=0,this.fcp=0,this.wv=0,this.tbt=0,this.inp=0,this.lcpOffender=null,this.clsOffender=null,this.inpOffender=null,this.inpOffenderStatus=null,this.inpOffenderScript=null,this.inpOffenderScriptFn=null,this.inpOffenderScriptInvoke=null,this.inpInputDelay=null,this.inpProcessingDuration=null,this.inpPresentationDelay=null,this.inpIntersectionDuration=null,this.stopped=!0}hasWebVitals(){return this.lcp||this.fcp||this.cls>-1||this.inp?1:0}setLCP(){!function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const r=dr(t=Object.assign({},t),qr),n=new WeakMap;r.m=e=>{const r=e.element;if(r){var i,o,s;const a=null!==(i=null===(o=(s=t).generateTarget)||void 0===o?void 0:o.call(s,r))&&void 0!==i?i:lr(r);n.set(e,a)}},function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Pr((()=>{const r=Er();let n,i=yr("LCP");const o=dr(t,qr),s=e=>{t.reportAllChanges||(e=e.slice(-1));for(const t of e)o.u(t),t.startTime<r.firstHiddenTime&&(i.value=Math.max(t.startTime-vr(),0),i.entries=[t],n())},a=br("largest-contentful-paint",s);if(a){n=mr(e,i,zr,t.reportAllChanges);const r=wr((()=>{s(a.takeRecords()),a.disconnect(),n(!0)})),o=e=>{e.isTrusted&&(xr(r),removeEventListener(e.type,o,{capture:!0}))};for(const e of["keydown","click","visibilitychange"])addEventListener(e,o,{capture:!0});fr((r=>{i=yr("LCP"),n=mr(e,i,zr,t.reportAllChanges),gr((()=>{i.value=performance.now()-r.timeStamp,n(!0)}))}))}}))}((t=>{const r=(e=>{let t={timeToFirstByte:0,resourceLoadDelay:0,resourceLoadDuration:0,elementRenderDelay:e.value};if(e.entries.length){const r=sr();if(r){const i=r.activationStart||0,o=e.entries.at(-1),s=o.url&&performance.getEntriesByType("resource").filter((e=>e.name===o.url))[0],a=Math.max(0,r.responseStart-i),c=Math.max(a,s?(s.requestStart||s.startTime)-i:0),l=Math.min(e.value,Math.max(c,s?s.responseEnd-i:0));t={target:n.get(o),timeToFirstByte:a,resourceLoadDelay:c-a,resourceLoadDuration:l-c,elementRenderDelay:e.value-l,navigationEntry:r,lcpEntry:o},o.url&&(t.url=o.url),s&&(t.lcpResourceEntry=s)}}return Object.assign(e,{attribution:t})})(t);e(r)}),t)}((e=>{var t;this.stopped||(this.lcp=e.value,this.lcp>2500&&null!==(t=e.attribution)&&void 0!==t&&t.target&&(this.lcpOffender=e.attribution.target))}))}setFCP(){!function(e){Ir((t=>{const r=(e=>{let t={timeToFirstByte:0,firstByteToFCP:e.value,loadState:ar(pr())};if(e.entries.length){const r=sr(),n=e.entries.at(-1);if(r){const i=r.activationStart||0,o=Math.max(0,r.responseStart-i);t={timeToFirstByte:o,firstByteToFCP:e.value-o,loadState:ar(e.entries[0].startTime),navigationEntry:r,fcpEntry:n}}}return Object.assign(e,{attribution:t})})(t);e(r)}),arguments.length>1&&void 0!==arguments[1]?arguments[1]:{})}((e=>{this.stopped||(this.fcp=e.value)}))}setINP(){let e=t=>{if(this.stopped)return;const r=this.inp;if(this.inp=t.value,this.inp>200&&t.attribution){var n,i,o,s;const a=document.location.href;this.inpOffender="".concat(t.attribution.interactionType,"::").concat(t.attribution.interactionTarget||"elementOutOfDom"),this.inpOffenderStatus=t.attribution.loadState,this.inpOffenderScript=(null===(n=t.attribution.longestScript)||void 0===n||null===(n=n.entry)||void 0===n?void 0:n.sourceURL)||"Not Available",this.inpOffenderScript===a&&(this.inpOffenderScript="inline"),this.inpOffenderScriptFn=(null===(i=t.attribution.longestScript)||void 0===i||null===(i=i.entry)||void 0===i?void 0:i.sourceFunctionName)||"Not Available",this.inpOffenderScriptInvoke=(null===(o=t.attribution.longestScript)||void 0===o||null===(o=o.entry)||void 0===o?void 0:o.invoker)||"Not Available",this.inpInputDelay=t.attribution.inputDelay,this.inpProcessingDuration=t.attribution.processingDuration,this.inpPresentationDelay=t.attribution.presentationDelay,this.inpIntersectionDuration=null===(s=t.attribution.longestScript)||void 0===s?void 0:s.intersectingDuration,this.inpOffenderScriptInvoke===a&&(this.inpOffenderScriptInvoke="inline"),"Not Available"===this.inpOffenderScript&&this.inp!==r&&(e=()=>{},this.setINP())}};!function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const r=dr(t=Object.assign({},t),Ur);let n=[],i=[],o=0;const s=new WeakMap,a=new WeakMap;let c=!1;const l=()=>{c||(xr(u),c=!0)},u=()=>{const e=r.l.map((e=>s.get(e.entries[0]))),t=i.length-50;i=i.filter(((r,n)=>n>=t||e.includes(r)));const a=new Set;for(const e of i){const t=d(e.startTime,e.processingEnd);for(const e of t)a.add(e)}const l=n.length-1-50;n=n.filter(((e,t)=>e.startTime>o&&t>l||a.has(e))),c=!1};r.m=e=>{const t=e.startTime+e.duration;let r;o=Math.max(o,e.processingEnd);for(let n=i.length-1;n>=0;n--){const o=i[n];if(Math.abs(t-o.renderTime)<=8){r=o,r.startTime=Math.min(e.startTime,r.startTime),r.processingStart=Math.min(e.processingStart,r.processingStart),r.processingEnd=Math.max(e.processingEnd,r.processingEnd),r.entries.push(e);break}}r||(r={startTime:e.startTime,processingStart:e.processingStart,processingEnd:e.processingEnd,renderTime:t,entries:[e]},i.push(r)),(e.interactionId||"first-input"===e.entryType)&&s.set(e,r),l()},r.p=e=>{if(!a.get(e)){const o=e.entries[0].target;if(o){var r,n,i;const s=null!==(r=null===(n=(i=t).generateTarget)||void 0===n?void 0:n.call(i,o))&&void 0!==r?r:lr(o);a.set(e,s)}}};const d=(e,t)=>{const r=[];for(const i of n)if(!(i.startTime+i.duration<e)){if(i.startTime>t)break;r.push(i)}return r},h=e=>{const t=e.entries[0],n=s.get(t),i=t.processingStart,o=Math.max(t.startTime+t.duration,i),c=Math.min(n.processingEnd,o),l=n.entries.sort(((e,t)=>e.processingStart-t.processingStart)),u=d(t.startTime,c),h=r.h.get(t.interactionId),p={interactionTarget:a.get(h),interactionType:t.name.startsWith("key")?"keyboard":"pointer",interactionTime:t.startTime,nextPaintTime:o,processedEventEntries:l,longAnimationFrameEntries:u,inputDelay:i-t.startTime,processingDuration:c-i,presentationDelay:o-c,loadState:ar(t.startTime),longestScript:void 0,totalScriptDuration:void 0,totalStyleAndLayoutDuration:void 0,totalPaintDuration:void 0,totalUnattributedDuration:void 0};return((e,t)=>{if(null===(t=e.longAnimationFrameEntries)||void 0===t||!t.length)return;const r=e.interactionTime,n=e.inputDelay,i=e.processingDuration;let o,s,a=0,c=0,l=0,u=0;for(const t of e.longAnimationFrameEntries){c=c+t.startTime+t.duration-t.styleAndLayoutStart;for(const e of t.scripts){const t=e.startTime+e.duration;if(t<r)continue;const l=t-Math.max(r,e.startTime),d=e.duration?l/e.duration*e.forcedStyleAndLayoutDuration:0;a+=l-d,c+=d,l>u&&(s=e.startTime<r+n?"input-delay":e.startTime>=r+n+i?"presentation-delay":"processing-duration",o=e,u=l)}}const d=e.longAnimationFrameEntries.at(-1),h=d?d.startTime+d.duration:0;h>=r+n+i&&(l=e.nextPaintTime-h),o&&s&&(e.longestScript={entry:o,subpart:s,intersectingDuration:u}),e.totalScriptDuration=a,e.totalStyleAndLayoutDuration=c,e.totalPaintDuration=l,e.totalUnattributedDuration=e.nextPaintTime-r-a-c-l})(p),Object.assign(e,{attribution:p})};br("long-animation-frame",(e=>{n=n.concat(e),l()})),function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!globalThis.PerformanceEventTiming||!("interactionId"in PerformanceEventTiming.prototype))return;const r=Er();Pr((()=>{var n;"interactionCount"in performance||Mr||(Mr=br("event",Nr,{type:"event",buffered:!0,durationThreshold:0}));let i,o=yr("INP");const s=dr(t,Ur),a=e=>{xr((()=>{for(const t of e)s.u(t);const t=s.M();t&&t.T!==o.value&&(o.value=t.T,o.entries=t.entries,i())}))},c=br("event",a,{durationThreshold:null!==(n=t.durationThreshold)&&void 0!==n?n:40});i=mr(e,o,Fr,t.reportAllChanges),c&&(c.observe({type:"first-input",buffered:!0}),r.onHidden((()=>{a(c.takeRecords()),i(!0)})),fr((()=>{s.v(),o=yr("INP"),i=mr(e,o,Fr,t.reportAllChanges)})))}))}((t=>{const r=h(t);e(r)}),t)}((function(){return e(...arguments)}),{reportAllChanges:!0})}setTbt(){return!!Zr("longtask",(e=>{this.tbt+=e.duration-50}))}setCLS(){!function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const r=dr(t=Object.assign({},t),or),n=new WeakMap;r.t=e=>{var r;if(null!=e&&null!==(r=e.sources)&&void 0!==r&&r.length){const r=jr(e.sources),a=null==r?void 0:r.node;if(a){var i,o,s;const e=null!==(i=null===(o=(s=t).generateTarget)||void 0===o?void 0:o.call(s,a))&&void 0!==i?i:lr(a);n.set(r,e)}}},function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const r=Er();Ir(wr((()=>{let n,i=yr("CLS",0);const o=dr(t,or),s=e=>{for(const t of e)o.u(t);o.o>i.value&&(i.value=o.o,i.entries=o.i,n())},a=br("layout-shift",s);a&&(n=mr(e,i,Ar,t.reportAllChanges),r.onHidden((()=>{s(a.takeRecords()),n(!0)})),fr((()=>{o.o=0,i=yr("CLS",0),n=mr(e,i,Ar,t.reportAllChanges),gr((()=>n()))})),setTimeout(n))})))}((t=>{const r=(e=>{let t={};if(e.entries.length){var r;const i=e.entries.reduce(((e,t)=>e.value>t.value?e:t));if(null!=i&&null!==(r=i.sources)&&void 0!==r&&r.length){const e=jr(i.sources);e&&(t={largestShiftTarget:n.get(e),largestShiftTime:i.startTime,largestShiftValue:i.value,largestShiftSource:e,largestShiftEntry:i,loadState:ar(i.startTime)})}}return Object.assign(e,{attribution:t})})(t);e(r)}),t)}((e=>{var t;this.stopped||(this.cls=e.value,this.cls>.1&&null!==(t=e.attribution)&&void 0!==t&&t.largestShiftTarget&&(this.clsOffender=e.attribution.largestShiftTarget,this.clsOffenderStatus=e.attribution.loadState))}),{reportAllChanges:!0})}}function Wr(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Hr(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Wr(Object(r),!0).forEach((function(t){(0,i.Z)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Wr(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}const Gr=new Mt;let Jr={150:6e4};const Kr=()=>{Gr.cleanTimer()},$r=(e,t)=>{Gr.callOnTimer(t,e)},{userIdPromise:Xr,resolveFinalUserId:Yr}=(()=>{let e=()=>{};return{userIdPromise:new Promise((t=>{e=t})),resolveFinalUserId:e}})();class Qr{constructor(e){this.compassTracker=e}getUserId(){return{userIdPromise:Xr,actualUserId:this.compassTracker.permanentCookie.userId}}processIdentity(e){e&&(ne(e.uid)&&(this.compassTracker.permanentCookie.userId=e.uid,this.compassTracker.markAsModified("permanent")),ne(e.sid)&&(this.compassTracker.temporalCookie.sessionId=e.sid,this.compassTracker.markAsModified("temporal")),this.compassTracker.saveCookies()),ne(this.compassTracker.permanentCookie.userId)&&Yr(this.compassTracker.permanentCookie.userId)}}const en={web:0,fbia:2,iosapp:3,androidapp:4,flowcards:5,pressreader:6,app:7,applenews:8,pressreaderandroid:11,pressreaderios:12,smartnews:13},tn=e=>{if(isNaN(e)){const t=e.toLowerCase().replace(/ /g,"");return void 0!==en[t]?en[t]:null}return e};var rn="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==r.g?r.g:"undefined"!=typeof self?self:{},nn=rn&&rn.__assign||function(){return(nn=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},on=rn&&rn.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)s.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return s},sn=rn&&rn.__spreadArray||function(e,t,r){if(r||2===arguments.length)for(var n,i=0,o=t.length;i<o;i++)!n&&i in t||(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))},an=function(e){if("object"==typeof e&&null!==e){if("function"==typeof Object.getPrototypeOf){var t=Object.getPrototypeOf(e);return t===Object.prototype||null===t}return"[object Object]"===Object.prototype.toString.call(e)}return!1},cn=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.reduce((function(e,t){return Object.keys(t).forEach((function(r){Array.isArray(e[r])&&Array.isArray(t[r])?e[r]=cn.options.mergeArrays?Array.from(new Set(e[r].concat(t[r]))):t[r]:an(e[r])&&an(t[r])?e[r]=cn(e[r],t[r]):e[r]=t[r]})),e}),{})},ln={mergeArrays:!0};cn.options=ln,cn.withOptions=function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];cn.options=nn({mergeArrays:!0},e);var n=cn.apply(void 0,sn([],on(t),!1));return cn.options=ln,n};var un=cn;function dn(){return hn.apply(this,arguments)}function hn(){return(hn=(0,o.Z)((function*(){return(yield new Promise((e=>{var t,r;(window.marfeel=null!==(t=window.marfeel)&&void 0!==t?t:{},window.marfeel.cmd=null!==(r=window.marfeel.cmd)&&void 0!==r?r:[],window.marfeel.cmd).push(["consent",t=>{e(t)}])}))).getConsent("cookies")?localStorage:sessionStorage}))).apply(this,arguments)}function pn(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e=>e;try{var n=e.getItem(t);return n?JSON.parse(r(n)):null}catch(e){}return null}var fn=Promise.resolve(!0);function mn(){return(mn=(0,o.Z)((function*(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e=>e;return pn(yield dn(),e,t)}))).apply(this,arguments)}function gn(){return(gn=(0,o.Z)((function*(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return function(e,t,r){var{isPatch:n=!1,encoder:i=(e=>e),decoder:s=(e=>e)}=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return fn=fn.then((0,o.Z)((function*(){try{var o=n&&pn(e,t,s)||{};return e.setItem(t,i(JSON.stringify(un.withOptions({mergeArrays:!1},o,r)))),!0}catch(e){}return!1})))}(yield dn(),e,t,r)}))).apply(this,arguments)}var vn=btoa,yn=atob;function bn(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e.update=Date.now(),function(e,t){return gn.apply(this,arguments)}("marfeel-sdk-store",e,{encoder:vn,decoder:yn,isPatch:t})}function wn(){return(wn=(0,o.Z)((function*(){return(yield function(e){return mn.apply(this,arguments)}("marfeel-sdk-store",yn))||function(){var e={creation:Date.now(),update:Date.now(),entries:{}};return bn(e),e}()}))).apply(this,arguments)}function kn(e){return On.apply(this,arguments)}function On(){return(On=(0,o.Z)((function*(e){return(yield function(){return wn.apply(this,arguments)}()).entries[e]}))).apply(this,arguments)}function Cn(e,t){return Sn.apply(this,arguments)}function Sn(){return(Sn=(0,o.Z)((function*(e,t){return bn({entries:{[e]:t}},!0)}))).apply(this,arguments)}function En(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0,r=arguments.length>2?arguments[2]:void 0;if(Array.isArray(e))if(null==r||""===r){let r=0;for(;r<e.length;)e[r][0]===t?e.splice(r,1):r++}else{const n=[t,r];let i=!1;for(let r=0;r<e.length;r++)e[r][0]===t&&(e[r]=n,i=!0);i||e.push(n)}}let Pn=[],Tn=[],In=null;const An=()=>In=null,jn=e=>{const t=e.parentElement;t&&(t.addEventListener("mouseenter",(()=>(e=>{In=e})(e))),t.addEventListener("mouseleave",An))};let _n=!1;const Dn=(e,t,r)=>{const n=Array.from(e).filter((e=>!e.hasAttribute("cmp-cnvtrk")));for(const e of n)e.addEventListener(t,(()=>{const t=e.dataset.mrfConversion;t&&r(t)})),e.setAttribute("cmp-cnvtrk","true")},Rn=e=>{const t=document.querySelectorAll("iframe[data-mrf-conversion]"),r=document.querySelectorAll("form[data-mrf-conversion]"),n=document.querySelectorAll("button[data-mrf-conversion], a[data-mrf-conversion]");Dn(r,"submit",e),Dn(n,"click",e),(e=>{const t=Array.from(e).filter((e=>!e.hasAttribute("cmp-cnvtrk")));for(const e of t)jn(e),e.setAttribute("cmp-cnvtrk","true")})(t)},Nn=e=>{D((()=>{Rn(e)})),Rn(e)},Mn=e=>{let t=(null!=e?e:"").toString();return!t.startsWith("/")&&t.includes("/")&&(t="/".concat(t)),t.split("/").map((e=>e.split(",").shift())).join("/")};class Ln{constructor(){this.newAds=[],this.newAdUnitPaths=[],this.trackedAds={},this.refreshedAds={}}setInterstitialSlot(e){this.interstitialSlot=e}trackAdEvent(e,t){const r=t.getSlotElementId();let n=!1;if("slotRenderEnded"===e&&(this.trackedAds[r]&&(this.refreshedAds[r]=!0),this.trackedAds[r]=!1,n=t!==this.interstitialSlot&&!this.refreshedAds[r]),"slotVisibilityChanged"===e&&(n=(t===this.interstitialSlot||this.refreshedAds[r])&&!this.trackedAds[r]),n){const e=t.getAdUnitPath(),n=t.getResponseInformation()&&t.getResponseInformation().lineItemId;this.trackAdRenderedInternal(n||e,e),this.trackedAds[r]=!0}return n}trackAdEventLegacy(e,t,r){return"slotRenderEnded"===e&&(this.trackAdRenderedInternal(t||r,r),!0)}trackAdRenderedInternal(e,t){this.newAds.push(Mn(e)),t&&this.newAdUnitPaths.push(Mn(t))}getAds(){return this.newAds.splice(0)}getAdUnits(){return this.newAdUnitPaths.splice(0)}}function Vn(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Un(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Vn(Object(r),!0).forEach((function(t){(0,i.Z)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Vn(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}const xn=(e,t)=>{((e,t)=>{const r={requests:{ads:e},triggers:{renderEnd:{on:"ad-render-end",request:"ads",selector:"body",extraUrlParams:Un(Un({},t),{},{l:"${totalEngagedTime}",sc:de(!1),a:"-1",ps:"${navTiming(navigationStart)}",n:"${timestamp}",ads:"$IF(${adSlot}, ${adSlot}, -1)amp",ampFirst:"true"})}},transport:{beacon:!0,xhrpost:!0,image:!1}},n=()=>{document.body.appendChild((e=>{const t=document.createElement("amp-analytics"),r=document.createElement("script");return r.type="application/json",r.innerText=JSON.stringify(e),t.appendChild(r),t})(r))};"loading"===document.readyState?window.addEventListener("load",(()=>n())):n()})(e,t)};class Fn{constructor(){this.events={}}on(e,t){void 0===this.events[e]&&(this.events[e]={listeners:[]}),this.events[e].listeners.push(t)}remove(e,t){this.events[e].listeners=this.events[e].listeners.filter((e=>e.toString()!==t.toString()))}dispatch(e,t){this.events[e]&&this.events[e].listeners.forEach((e=>{e(t)}))}}function qn(e,t){try{const r=[...t],n=r.shift();let i;if(Array.isArray(e)){const r=e.map((e=>qn(e,t))).filter(Boolean);i=r.length&&r[0]}else i=e[n];return 0===r.length?i?null==i?void 0:i.toString():null:qn(i,r)}catch(e){return null}}const zn=e=>{if("mainEntity"in e&&e.mainEntity&&"object"==typeof e.mainEntity){const t=e.mainEntity;if(t&&"@type"in t)return t}return null};function Zn(e){var t,r;return null!==(r=null!==(t=e["@type"])&&void 0!==t?t:e.type)&&void 0!==r?r:void 0}function Bn(e){var t,r,n,i;if(e)return"string"==typeof e?e:Object.assign(Object.assign({},e),{"@type":null!==(r=null!==(t=e["@type"])&&void 0!==t?t:e.type)&&void 0!==r?r:void 0,"@id":null!==(i=null!==(n=e["@id"])&&void 0!==n?n:e.id)&&void 0!==i?i:void 0})}function Wn(e){var t,r,n,i;return Object.assign(Object.assign({},e),{"@type":null!==(r=null!==(t=e["@type"])&&void 0!==t?t:e.type)&&void 0!==r?r:void 0,"@id":null!==(i=null!==(n=e["@id"])&&void 0!==n?n:e.id)&&void 0!==i?i:void 0,mainEntityOfPage:Bn(e.mainEntityOfPage)})}const Hn=e=>{if("Product"!==Zn(e))return null;const t=e.review;return t&&"Review"===Zn(t)?Wn(t):null};function Gn(e,t){const r=Zn(e);return!!r&&(Array.isArray(r)?r.some((e=>t.includes(e))):t.includes(r))}function Jn(e,t,r,n=new Set){if(!e||n.has(e))return!1;if(e===t)return!0;n.add(e);const i=(o=e,r.find((e=>((e,t)=>"@id"in e&&e["@id"]===t)(e,o))));var o;return!!(null==i?void 0:i.url)&&Jn(i.url,t,r,n)}function Kn(e,t){return e.filter((e=>Gn(e,[t])))}function $n(e,t,r){const n=e.mainEntityOfPage;return Jn(n&&"object"==typeof n&&"@id"in n?n["@id"]:n,t,r)}function Xn(e,t){return e.reduce(((e,t)=>(Object.keys(t).forEach((r=>{e[r]=t[r]})),e)),{"@type":t})}const Yn=["ReportageNewsArticle","AnalysisNewsArticle","OpinionNewsArticle","ReviewNewsArticle","BackgroundNewsArticle","NewsArticle","ScholarlyArticle","Report","TechArticle","AskPublicNewsArticle","SatiricalArticle","AdvertiserContentArticle","BlogPosting","LiveBlogPosting","SocialMediaPosting","Recipe","Article","Review","MedicalWebPage"];var Qn=Object.freeze({__proto__:null,ARTICLE_ENTITY_TYPES_PRIORITIES:Yn,extract:function({attributePath:e,entitiesConstraint:t},r){var n;try{const i=document.querySelectorAll('script[type="application/ld+json"]');return i&&e?qn(null!==(n=function(e,t,r){const n=(e=>(e=>{const t=e.map(Hn).filter(Boolean);return[...e,...t]})(Array.from(e).map((e=>{var t;try{const r=e.textContent?((null===(t=e.textContent)||void 0===t?void 0:t.trim())||"").replace(/[\n\t]/g,""):"{}";return JSON.parse(`${r}`)}catch(e){return null}})).filter(Boolean).map((e=>e instanceof Array?e:[e])).map((e=>e.map((e=>(e=>{const t=[e];if("@graph"in e){const r=e["@graph"],n=[];Array.isArray(r)?n.push(...r):r&&n.push(r),n.forEach((e=>{t.push(e);const r=zn(e);r&&t.push(r)}))}const r=zn(e);return r&&t.push(r),t})(e))).flat().filter((e=>!!Zn(e))).map(Wn))).flat()))(e),i=function(e,t){return e.filter((e=>e.mainEntityOfPage&&Gn(e,t)))}(n,t);let o;return o=1===i.length?i[0]:i.length>1&&r?function(e,t,r,n){for(const i of r){const r=Kn(e,i).filter((e=>$n(e,t,n)));if(r.length>0)return Xn(r,i)}return null}(i,r,t,n):function(e,t){for(const r of t){const t=Kn(e,r);if(t.length>0)return Xn(t,r)}return null}(n,t),o}(i,null!=t?t:Yn,r))&&void 0!==n?n:[],e):null}catch(e){return null}}});const ei=/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})(\.\d+)?(Z|[+-]\d{2}:\d{2})$/;function ti(e){let t;return t=ei.test(e)?new Date(e):new Date(e+"Z"),t.getTime()}const ri={jsonLD:Qn,querySelector:Object.freeze({__proto__:null,extract:function({queries:e}){if(!e)return null;const t=e.reduce(((e,{query:t,attribute:r})=>(document.querySelectorAll(t).forEach((t=>{r?e.push(t.getAttribute(r)||null):t.textContent&&e.push(t.textContent)})),e)),[]).filter((e=>null!==e));return 1===t.length||t.length>1&&t.every((e=>e===t[0]||ti(e)===ti(t[0])))?t[0]:null}})},ni=(e,t)=>{for(const r of e){const e=ri[r.type].extract(r,t);if(e)return e}return null},ii=[{type:"jsonLD",attributePath:["dateModified"],entitiesConstraint:Yn},{type:"querySelector",queries:[{query:'meta[property="article:modified_time"]',attribute:"content"}]},{type:"querySelector",queries:[{query:'meta[itemprop="dateModified"]',attribute:"content"}]},{type:"querySelector",queries:[{query:'time[itemprop="dateModified"]',attribute:"datetime"}]},{type:"querySelector",queries:[{query:'time[itemprop="dateModified"]',attribute:"content"}]},{type:"querySelector",queries:[{query:'[itemprop="dateModified"]'}]}];var oi=Object.freeze({__proto__:null,extract:e=>ni(ii,e)});const si=[{type:"jsonLD",attributePath:["datePublished"],entitiesConstraint:Yn},{type:"querySelector",queries:[{query:'[itemtype="http://schema.org/NewsArticle"] time[itemprop="datePublished"]',attribute:"datetime"}]},{type:"querySelector",queries:[{query:'meta[property="article:published_time"]',attribute:"content"},{query:':not([itemprop="image"]) > meta[itemprop="datePublished"]',attribute:"content"},{query:'time[itemprop="datePublished"]',attribute:"datetime"},{query:'time[itemprop="datePublished"]',attribute:"content"}]},{type:"querySelector",queries:[{query:'[itemprop="datePublished"]'}]}];var ai=Object.freeze({__proto__:null,extract:e=>ni(si,e)});const ci=[{type:"jsonLD",attributePath:["offers","lowPrice"],entitiesConstraint:["Product"]},{type:"jsonLD",attributePath:["offers","price"],entitiesConstraint:["Product"]},{type:"querySelector",queries:[{query:'[itemprop="offers"] [itemprop="price"]',attribute:"content"}]},{type:"querySelector",queries:[{query:'meta[property="product:price:amount"]',attribute:"content"}]}];var li=Object.freeze({__proto__:null,extract:e=>ni(ci,e)});const ui=[{type:"jsonLD",attributePath:["offers","availability"],entitiesConstraint:["Product"]},{type:"querySelector",queries:[{query:'[itemprop="offers"] link[itemprop="availability"]',attribute:"href"},{query:'[itemprop="offers"] [itemprop="availability"]',attribute:"content"}]},{type:"querySelector",queries:[{query:'meta[property="product:availability"]',attribute:"content"}]}],di={updateTime:oi,publishTime:ai,availability:Object.freeze({__proto__:null,extract:e=>ni(ui,e)}),price:li},hi=(e,t)=>di[e].extract(t),pi=[void 0,null,""];function fi(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:encodeURIComponent;return pi.includes(e)?"":t(e)}function mi(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:decodeURIComponent;return pi.includes(e)?void 0:t(e)}const gi=[fi,mi],vi=[function(e){return pi.includes(e)?"":Number(e).toString(36)},function(e){return pi.includes(e)?void 0:parseInt(e,36)}],yi=[function(e){return pi.includes(e)?"":Number(e).toString(10)},function(e){return pi.includes(e)?void 0:parseInt(e,10)}],bi=[function(e){return pi.includes(e)?"":"".concat(e)},function(e){if(!pi.includes(e))return"true"===e}],wi=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:encodeURIComponent,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:decodeURIComponent;const r=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:encodeURIComponent,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:decodeURIComponent;return[t=>function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:encodeURIComponent;if(e)try{return t(JSON.stringify(e))}catch(r){return t(e)}return""}(t,e),e=>function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:decodeURIComponent;if(e)try{return JSON.parse(t(e))}catch(r){return t(e)}}(e,t)]}(e,t),n=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:encodeURIComponent,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:decodeURIComponent;return[t=>function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:encodeURIComponent;if(pi.includes(e))return"";try{return new URL(e),t(e)}catch(e){return""}}(t,e),e=>function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:decodeURIComponent;if(!pi.includes(e))try{const r=t(e);return new URL(r),r}catch(e){return}}(e,t)]}(e,t),i=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:encodeURIComponent,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:decodeURIComponent;return[t=>fi(t,e),e=>mi(e,t)]}(e,t);return{___nrbic:[["lastBeat",vi],["previousVisit",vi],["currentVisitStarted",vi],["sessionId",i],["sessionVars",r],["visitedInThisSession",bi],["pagesViewed",yi],["landingPage",i],["referrer",n],["lpti",i],["isNewUser",bi],["cdpRfv",r],["cdpCohorts",r]],___nrbi:[["firstVisit",vi],["userId",i],["userVars",r],["futurePreviousVisit",vi],["timesVisited",yi],["siteUserId",i],["userType",i],["userSegments",r],["cdpMasterId",i]]}};function ki(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Oi(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}const Ci={1:function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ki(Object(r),!0).forEach((function(t){(0,i.Z)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ki(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},wi(escape,unescape)),2:function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Oi(Object(r),!0).forEach((function(t){(0,i.Z)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Oi(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},wi(encodeURIComponent,decodeURIComponent))};function Si(e){return e.replace(/_\d+$/,"")}function Ei(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:2;const n=Ci[r][Si(e)];if(!n)return JSON.stringify(t);const i=[r,...n.map((e=>{const r=e[0],n=e.length>1?e[1][0]:gi[0];return pi.includes(t[r])?"":n(t[r])}))].join("|");return i}const Pi=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];try{if(t){const t=Ue(e,!1);return t&&!function(e){return e.startsWith(encodeURIComponent("{"))}(t)?function(e,t){var r,n;const i=t.split("|"),o=isNaN(i[0])?2:parseInt(i[0],10),s=null===(r=null!==(n=Ci[o])&&void 0!==n?n:Ci[2])||void 0===r?void 0:r[Si(e)];if(!s)return{};const a={};for(let e=0;e<s.length;e++){const t=s[e],r=t[0],n=t.length>1?t[1][1]:gi[1],o=i[e+1];pi.includes(o)||(a[r]=n(o))}return a}(e,t):JSON.parse(decodeURIComponent(t))||{}}return(e=>{const t=me(e);if(t)try{return JSON.parse(t)}catch(e){}return null})(e)||{}}catch(e){return{}}},Ti=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const n=t?Pi("".concat(e,"_").concat(t),r):null;return n&&0!==Object.keys(n).length?n:Pi(e,r)};function Ii(e,t){let r=0;return e.active&&(r=5),Math.min(t-e.time,r)}class Ai{constructor(){this.totalEngagedTime=0,this.prevEvent=void 0}pushEvent(e){this.prevEvent&&this.prevEvent.time<e.time&&(this.totalEngagedTime+=Ii(this.prevEvent,e.time)),this.prevEvent=e}getTotalEngagedTime(e){let t=0;return void 0!==this.prevEvent&&(t=this.totalEngagedTime+Ii(this.prevEvent,e)),t}}const ji=["mousedown","mouseup","mousemove","keydown","keyup","scroll","touchstart","touchmove","touchend","pointerdown","pointermove","pointerup","MRF_MULTIMEDIA_ENGAGED"],_i=["mouseleave"];class Di{constructor(){let{disabled:e=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.startTime=Date.now(),this.listeningActive=!1,this.listeningInactive=!1,this.acitvityHistory=new Ai,this.boundListeners=[],e||(this.listenToEvents(),"visible"===document.visibilityState&&this.eventTriggered(!0))}listenToEvents(){ji.forEach((e=>{const t=()=>this.eventTriggered(!0);document.addEventListener(e,t),this.boundListeners.push({target:document,event:e,handler:t})})),_i.forEach((e=>{const t=()=>this.eventTriggered(!1);document.addEventListener(e,t),this.boundListeners.push({target:document,event:e,handler:t})})),this.removeBeforeLeavingListener=C((()=>this.eventTriggered(!1))),this.removeAfterReturningListener=S((()=>this.eventTriggered(!0)))}destroy(){var e,t;this.boundListeners.forEach((e=>{let{target:t,event:r,handler:n}=e;t.removeEventListener(r,n)})),this.boundListeners=[],null===(e=this.removeBeforeLeavingListener)||void 0===e||e.call(this),null===(t=this.removeAfterReturningListener)||void 0===t||t.call(this)}getTimeSinceStart(){const e=Date.now()-this.startTime;return e>0?e:0}eventTriggered(e){e&&this.listeningActive||!e&&this.listeningInactive||(this.listeningActive=e,this.listeningInactive=!e,this.handleEvent(e))}handleEvent(e){const t=Math.floor(this.getTimeSinceStart()/1e3);setTimeout((()=>{this.listeningActive=!1,this.listeningInactive=!1}),1e3),this.acitvityHistory.pushEvent({active:e,time:t})}getTotalEngagedTime(){const e=Math.floor(this.getTimeSinceStart()/1e3);return this.acitvityHistory.getTotalEngagedTime(e)}}const Ri=["form"];function Ni(){let e=arguments.length>1?arguments[1]:void 0,t=!1;(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).forEach((e=>{let{selector:r,name:n}=e;document.querySelectorAll(r).forEach((e=>{e.getAttribute("data-mrf-conversion")||(t=!0,e.setAttribute("data-mrf-conversion",function(e,t,r){if(!(Ri.includes(t)&&r.includes("{{name}}")&&e instanceof HTMLFormElement))return r;const n=e.name||e.id;return r.replace("{{name}}",n)}(e,r,n)))}))})),t&&Rn(e)}function Mi(e,t){Ni(e,t),D((()=>{Ni(e,t)}))}const Li="".concat("https://experiences.mrf.io","/passexperience/dw-check.html?v=6");let Vi=!1;const Ui=e=>{var t,r;return"back forward cache"!==e&&"back_forward"===(null===(t=performance)||void 0===t||null===(r=t.getEntriesByType)||void 0===r||null===(r=r.call(t,"navigation"))||void 0===r||null===(r=r[0])||void 0===r?void 0:r.type)},xi=new Set,Fi=e=>{Cn("usegs",e)},qi=()=>kn("usegs");function zi(e){try{const t=window;t.googletag=t.googletag||{},t.googletag.cmd=t.googletag.cmd||[],t.googletag.cmd.push((()=>{try{e(t.googletag)}catch(e){}}))}catch(e){}}const Zi="compass-conversions-counter-entry";function Bi(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Wi(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Bi(Object(r),!0).forEach((function(t){(0,i.Z)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Bi(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}const Hi="compass-conversions-tracker-entry",Gi=e=>{if(e)return Object.entries(e).filter((e=>{let[t,r]=e;return void 0!==t&&void 0!==r})).map((e=>e))};class Ji{constructor(e){this.trackedConversions={},this.pendingConversions=[],this.tracker=e,this.tracker.synchronizer.wait("pageInitialized").then((()=>{if(Ie(this.tracker.temporalCookie,"isNewUser")){const{actualUserId:e,userIdPromise:t}=this.tracker.getUserId();t.then((t=>{t!==e&&(async(e,t)=>{var r;const n=null!==(r=(await kn(Hi)||{})[e])&&void 0!==r?r:{};if(!Object.keys(n).length)return;const i=Object.keys(n).reduce(((r,i)=>(n[i]===e?r[i]=t:r[i]=n[i],r)),{}),o={[t]:i};await Cn(Hi,o)})(e,t)}))}}))}async addConversion(e,t){var r,n,i;const o=(s=t)&&"string"!=typeof s?Wi(Wi({},s),{},{scope:s.scope||"none"}):Wi({scope:"none"},s?{initiator:s}:{});var s;const a=1e3*Math.round((new Date).getTime()/1e3),c=this.trackedConversions[e];if((null!==(r=null==c?void 0:c.time)&&void 0!==r?r:0)===a&&JSON.stringify(null!==(n=null==c?void 0:c.meta)&&void 0!==n?n:{})===JSON.stringify(null!==(i=o.meta)&&void 0!==i?i:{}))return;await this.tracker.synchronizer.wait("pageInitialized");const l=((e,t)=>{if(e.id)return e.id;switch(e.scope){case"user":return t.getUserId().actualUserId;case"session":return t.getSessionId();case"page":return t.getPageId();default:return}})(o,this.tracker),u=this.tracker.getUserId().actualUserId;await(async(e,t,r)=>{var n;if(!r)return!0;const i=null!==(n=(await kn(Hi)||{})[e])&&void 0!==n?n:{};if(i[t]===r)return!1;i[t]=r;const o={[e]:i};return await Cn(Hi,o),!0})(u,e,l)&&(this.trackedConversions[e]={meta:o.meta,time:a},this.pendingConversions.push({conv:e,conv_i:o.initiator,cvid:l,cvv:o.value,cvar:Gi(o.meta)}),(async e=>{const t=await kn(Zi)||{},r=t[e]||0;t[e]=r+1,await Cn(Zi,t)})(e))}resetConversions(){this.trackedConversions={},this.pendingConversions=[]}getLastConversion(){var e;return null!==(e=this.pendingConversions[0])&&void 0!==e?e:{}}clearLastConversion(){this.pendingConversions.shift()}getAllConversions(){var e;return null!==(e=Object.entries(this.trackedConversions).sort(((e,t)=>{let[,{time:r}]=e,[,{time:n}]=t;return r-n})).map((e=>{let[t]=e;return t})))&&void 0!==e?e:[]}}class Ki{constructor(){this.mediaItems=0,this.maxMediaPlayed=0}addItem(){this.mediaItems+=1}setMaxSeconds(e){this.maxMediaPlayed=e}reset(){this.mediaItems=0,this.maxMediaPlayed=0}}const $i=["userSegments","userVars"];function Xi(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Yi(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Xi(Object(r),!0).forEach((function(t){(0,i.Z)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Xi(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}const Qi=()=>{},eo=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return{api:new w(ye),replicas:e,preprocess:e=>e instanceof FormData?(e.append("fk",1),e):(null==e?void 0:e.constructor)===Object?Yi(Yi({},e),{},{fk:1}):e}},to=e=>Array.isArray(e)?e:[];class ro{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ce,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Pe,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Te;this.trackerName=window.__mrfCompass?"__mrfCompass":"__newsroom_js",window[this.trackerName].data=window[this.trackerName].data||[],this.handleImmediateCallsToDataArray(),this.tracker=window[this.trackerName],this.userIdManager=new Qr(this),this.accountId=this.tracker.accountId,this.cookieDomain=(e=>{if(null===e||!qe(e)){const e=(e=>{const t=e.split(".").filter((e=>"www"!==e));if(t.length<2||U.test(e))return null;if(2===t.length)return t.join(".");const r=t.slice(-2),n=t.length-1;return(e=>{const t=e.length-1;return 2===e[t].length&&!!["avz","co","com","df","gob","gov","org","rt"].includes(e[t-1])})(r)&&r.unshift(t[n-2]),r.join(".")})(window.location.hostname);return".".concat(qe(e)?e:window.location.hostname.replace(/^www\./,""))}return e})(this.tracker.cookieDomain||null),this.initFlags(),this.adsTracker=new Ln,this.adsDelay=1e4,this.temporalCookieModified=!1,this.permanentCookieModified=!1,this.consentManager=t,this.setupConsent(this.tracker),this.synchronizer=r,this.events=n,this.dispatcher=new Fn,this.moduleTracker=new Yt,this.conversionsStore=new Ji(this),this.mediaCounter=new Ki,this.multimediaTrackingMode=!0,this.endpointDomain=(e=>{let{endpoint:t}=e;return t&&N(t)||ve})(this.tracker),this.api=((...e)=>new P(...e))(...[new w(this.endpointDomain,{fallback:"https://icu.newsroom.bi",fallbackWindow:6e4,onModeChange:(e,t)=>{e===v.FALLBACK&&this.setPageVar("mrfNE",t)},timeout:{0:[1e3,5e3],1:5e3},timeoutStrategy:{strategy:"mirror",processor:(e,t)=>{if("/ingest.php"===t){const t=function(e){const t=new FormData;for(const[r,n]of e.entries())t.append(r,n);return t}(e);t.delete("conv"),t.delete("ads");try{const r=t.get("pvar");let n=[];if(r)try{n=JSON.parse(r),Array.isArray(n)||(n=[])}catch(e){n=[]}if(n.some((e=>Array.isArray(e)&&"mrfNE"===e[0])))return t;n.push(["mrfNE",408]),t.set("pvar",JSON.stringify(n))}catch(e){}return t}return e},filter:["/ingest.php"]},forceOnExit:!0}),this.tracker.stress&&eo(this.tracker.stressReplicas)].filter(Boolean)),this.initializeCookies(),this.identityResetter=new rt(this),this.cdp=new tt({hasCdp:!!this.tracker.hasCdp,accountId:this.accountId,endpointDomain:this.endpointDomain,consentManager:this.consentManager,consentFeature:"personalization",getMasterId:()=>ne(this.permanentCookie.cdpMasterId)?this.permanentCookie.cdpMasterId:null,writeMasterId:e=>{const t=this.permanentCookie.cdpMasterId;return this.permanentCookie.cdpMasterId=e,this.markAsModified("permanent"),this.saveCookies(),t},getUserId:()=>this.getUserId().actualUserId,getCachedIdentity:()=>{const{cdpRfv:e,cdpCohorts:t}=this.temporalCookie;return void 0===e&&void 0===t?null:Array.isArray(t)?{rfv:null!=e?e:null,cohorts:t}:null},setCachedIdentity:e=>{this.temporalCookie.cdpRfv=null==e?void 0:e.rfv,this.temporalCookie.cdpCohorts=null==e?void 0:e.cohorts,this.markAsModified("temporal"),this.saveCookies()},enabled:!!this.tracker.hasCdp,getPermanentCookie:()=>this.permanentCookie,useLocalstorageForUserVars:()=>this.tracker.useLocalstorageForUserVars,onCookieChanged:()=>{this.markAsModified("permanent"),this.saveCookies()}}),this._flushUserVarsToCdp=Le((()=>{this.cdp.updateProfile(this.getUserVars(),"personalization")}),50),this.tracker.lazy||this.initialize(),this.postSetup()}postSetup(){var e,t;this.synchronizer.wait("pageInitialized").then((()=>{var e;C((()=>{this.synchronizer.resolve("experimentationDisabled",!1),this.isLastEvent=!0,this.collectAndTrackPage()})),S(Le((()=>{this.isLastEvent&&(Kr(),this.trackPage())}),500)),e=()=>this.trackNewPage({rs:"back forward cache"}),window.addEventListener("pageshow",(t=>{t.persisted&&e()}),{capture:!0})})),e="".concat(this.endpointDomain).concat("/ingest.php"),t=this.getBasicConfig(),this.tracker.isAmpFirst?xn(e,t):window.customElements.whenDefined("amp-ad").then((()=>xn(e,t))),this.tracker.setFCSource=tr,this.contextVariables={},this.initializeRFV(),this.cdp.initialize("personalization"),this.cdp.onIdentityResolved("personalization",(()=>{this.cdp.reconcileSegments("personalization");const e=function(){const e=[],t=function(){try{return(new Intl.DateTimeFormat).resolvedOptions().timeZone||null}catch(e){return null}}(),r=Ue("_fbp")||null;return"string"==typeof t&&t.length>0&&e.push(["timezone",t]),"string"==typeof r&&r.length>0&&e.push(["facebook_user_id",r]),e}();e.length&&this.cdp.updateProfile(e,"personalization"),function(e){let t,r=null;const n=n=>{if(n&&n!==r){r=n;try{e(n)}catch(e){}if(t){try{t.disconnect()}catch(e){}t=void 0}}};!function(e){zi((t=>{try{const r=t.pubads(),n=r.setPublisherProvidedId;if("function"!=typeof n)return;if(n.__mrfWrapped)return;const i=function(t){if("string"==typeof t&&t.length>0)try{e(t)}catch(e){}return n.call(this,t)};i.__mrfWrapped=!0,r.setPublisherProvidedId=i}catch(e){}}))}(n),t=function(e){return Zr("resource",(t=>{if(t&&"string"==typeof t.name&&-1!==t.name.indexOf("/gampad/ads"))try{const r=new URL(t.name).searchParams.get("ppid");if("string"==typeof r&&r.length>0)try{e(r)}catch(e){}}catch(e){}}))}(n)}((e=>{this.cdp.updateProfile([["gam_ppid",e]],"personalization")}))})),this.on("pageInitialized",(()=>this.cdp.invalidateMeters())),this.listenForScrollDepth()}initializeRFV(){this.consentManager.getConsent("personalization")||this.consentManager.onChange((()=>{this.getRFV(Qi)}))}initFlags(){var e,t,r,n;const o=(e,t)=>Number.isFinite(e)?Math.min(e,365):t;this.tracker.useLocalstorageForUserVars=this.tracker.useLocalstorageForUserVars&&it||!1,this.tracker.lazy=this.tracker.lazy||!1,this.tracker.isAmpFirst=this.tracker.isAmpFirst||!1,this.tracker.isCookieSandboxed=this.tracker.isCookieSandboxed||[1464,3838].includes(this.accountId),this.tracker.disableWebVitals=this.tracker.disableWebVitals||!1,this.tracker.disableEngagementCalculator=this.tracker.disableEngagementCalculator||!1,this.tracker.hasCdp=this.tracker.hasCdp||!1;const s=Yi({lazy:!1,layouts:[],modules:[]},this.tracker.rm||{});this.tracker.rm=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const r={},n=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?je(Object(r),!0).forEach((function(t){(0,i.Z)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):je(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},e),o=Object.assign(new Promise(((e,t)=>Object.assign(r,{set:t=>{const r=t instanceof Function?t(n):t;e(_e(n,r))}}))),r);return t&&o.set({}),o}(s,!s.lazy),this.tracker.usePerformanceEndpoint=this.tracker.usePerformanceEndpoint||!1,this.tracker.adsTrackingFromClient&&(this.nrGoogleTrackingActive=!0),this.tracker.consentCookieLength=o(this.tracker.consentCookieLength,180),this.tracker.noConsentCookieEnabled=o(this.tracker.noConsentCookieEnabled,void 0),null!==(t=(e=this.tracker).blockOnReject)&&void 0!==t||(e.blockOnReject=!1),null!==(n=(r=this.tracker).alwaysRequestExperiences)&&void 0!==n||(r.alwaysRequestExperiences=!1)}setInterstitialSlot(e){this.adsTracker.setInterstitialSlot(e)}canWriteCookies(){return this.consentManager.getConsent("cookies")||Number.isFinite(this.tracker.noConsentCookieEnabled)}canTrack(){return this.getUserConsent(!1)||!this.tracker.blockOnNoConsent&&!this.tracker.blockOnReject||this.tracker.blockOnReject&&2===Ee(this.consentManager)}async syncUserVarsFromLocalStorage(){const e=await async function(){const e=await kn("uvars");if(e&&Array.isArray(e))return e}(),t=await qi();e&&(this.permanentCookie.userVars=e),t&&(this.permanentCookie.userSegments=t),this.initatedLocalStorageForUserVars=!0,this.markAsModified("permanent"),this.synchronizer.resolve("localstorageVarsSynced")}initializeCookies(){this.temporalCookie=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=arguments.length>2?arguments[2]:void 0;const n=null===t?"":t,i=Ie(e,"currentVisitStarted"),o=Ie(e,"lastBeat",i),s=Ie(e,"referrer"),a=Ve(n,r),c=""===t,l=!a&&!c,u=new Date;u.setMinutes(u.getMinutes()-30);const d=o<Ae(u);return l&&!d?{sessionId:Ie(e,"sessionId",void 0),currentVisitStarted:Ie(e,"currentVisitStarted"),sessionVars:Ie(e,"sessionVars",[]),lastBeat:o}:l||!o||c&&d?{}:a&&d?{landingPage:Ie(e,"landingPage"),referrer:s||void 0,lpti:Ie(e,"lpti")||void 0}:e}(Ti("___nrbic",this.tracker.isCookieSandboxed?this.accountId:null,this.canWriteCookies()),L(this.getPageType()),this.cookieDomain),this.permanentCookie=Ti("___nrbi",this.tracker.isCookieSandboxed?this.accountId:null,this.canWriteCookies()),this.markAsModified("temporal"),this.markAsModified("permanent")}updateLastBeat(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.temporalCookie.lastBeat=Ae(),this.markAsModified("temporal"),e&&this.saveCookies()}async initialize(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};null===(e=this.engagementCalculator)||void 0===e||e.destroy(),this.engagementCalculator=new Di({disabled:this.tracker.disableEngagementCalculator}),this.performanceStartTime=performance.now();const{url:r,rs:n,initialPageVars:i,fromSPA:o}=t,s=r?z(r):r;Pn=[],Tn=[],xi.clear(),this.mediaCounter.reset(),i&&Object.keys(i).length>0&&await Promise.all(Object.entries(i).map((async e=>{let[t,r]=e;return await this.setPageVar(t,r)}))),void 0===this.nrGoogleTrackingActive&&(this.nrGoogleTrackingActive=!0,zi((e=>{e.pubads().addEventListener("slotRenderEnded",(e=>{e.isEmpty||this.trackAdEvent("slotRenderEnded",e.slot)})),e.pubads().addEventListener("slotVisibilityChanged",(e=>{this.trackAdEvent("slotVisibilityChanged",e.slot)}))})));const a=!this.tick&&Ui(n)?"back forward":n;this.adsTracked=!1,this.pageId=null,this.isFirstPage=!0,this.recirculationSource=null,this.newAds=[],this.newAdUnitPaths=[],this.tick=0,this.isLastEvent=!1,this.endpoint=this.tracker.endpoint||be,this.endpointDomain=N(this.endpoint),this.currentPage=s||M(this.tracker.pageType,!o),this.startPageTime=Ae(),this.cmsId=(()=>{const e=document.querySelectorAll('meta[property="mrf:cms_id"]');if(e.length)return e[0].getAttribute("content")})(),this.pageId=ie(),this.url=s||M(this.tracker.pageType,!o),this.canonical=s||se(this.tracker.pageType),this.updateTime=hi("updateTime",this.canonical),this.publishTime=hi("publishTime",this.canonical),this.setFirstVisit(),this.setPreviousVisit(),this.updateLastBeat(),this.tracker.useLocalstorageForUserVars&&(setTimeout((()=>{this.synchronizer.resolve("localstorageVarsSynced")}),3e3),this.consentManager.getConsent("cookies")?this.syncUserVarsFromLocalStorage():this.consentManager.onChange((()=>{this.consentManager.getConsent("cookies")&&!this.initatedLocalStorageForUserVars&&this.syncUserVarsFromLocalStorage()}))),this.setCurrentVisitStarted(),this.setTimesVisited(),this.setPagesViewed(),this.setLandingPage(s,this.publishTime),this.setRecirculationSource(a,!o),this.saveCookies(),this.getRFV(Qi),this.cdp.resolveIdentity("personalization"),this.webVitals?this.webVitals.reset():this.webVitals=new Br({disabled:this.tracker.disableWebVitals});const c=this.trackPage();return this.setRecirculationTracking(),(e=>{if(_n)return;_n=!0;const t=e.trackConversion.bind(e);(e=>{window.addEventListener("blur",(()=>(e=>{In&&e(In)})(e)))})((e=>{var r;return e&&t(null==e||null===(r=e.dataset)||void 0===r?void 0:r.mrfConversion)})),document.readyState&&"complete"===document.readyState?Nn(t):document.addEventListener("readystatechange",(e=>{"complete"===document.readyState&&Nn(t)}))})(this),this.dispatcher.dispatch("pageInitialized",{url:this.canonical}),this.synchronizer.resolve("pageInitialized"),c}stopTracking(){Kr(),this.isLastEvent=!0,this.collectAndTrackPage()}handleImmediateCallsToDataArray(){window[this.trackerName].data.oldPush=window[this.trackerName].data.push,window[this.trackerName].data.push=e=>{"getRFV"===e[0]?this.getRFV(e[1]):window[this.trackerName].data.oldPush(e)}}setIsNewUser(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this.temporalCookie.isNewUser=e,this.markAsModified("temporal"),t&&this.saveCookies()}setFirstVisit(){let e=Ie(this.permanentCookie,"firstVisit");if(!1===e){e=Ae(),this.permanentCookie.firstVisit=e;const t=Ue("compass_uid");t?this.permanentCookie.userId=ne(t)?t:((e,t)=>{const r=re(`${e}`,"c0a334de-7622-4bd6-8bff-0b2b750cf2c6");return re(`${t}`,r)})(this.accountId,t):(this.permanentCookie.userId=ie(),this.setIsNewUser(!0,!1)),this.permanentCookie.userVars=[],this.markAsModified("permanent")}else this.permanentCookie.userVars=this.permanentCookie.userVars||[]}setPreviousVisit(){const e=Ie(this.temporalCookie,"previousVisit"),t=Ie(this.permanentCookie,"futurePreviousVisit");if(!1===e&&!1!==t)this.temporalCookie.previousVisit=t,this.permanentCookie.futurePreviousVisit=Ae(),this.markAsModified("temporal"),this.markAsModified("permanent");else if(!1===e&&!1===t){const e=Ae();this.temporalCookie.previousVisit=e,this.permanentCookie.futurePreviousVisit=e,this.markAsModified("temporal"),this.markAsModified("permanent")}}setCurrentVisitStarted(){let e=Ie(this.temporalCookie,"currentVisitStarted");!1===e?(e=Ae(),this.temporalCookie.currentVisitStarted=e,this.markAsModified("temporal"),this.temporalCookie.sessionId=ie(),this.temporalCookie.sessionVars=[]):this.isFirstPage=!1}setTimesVisited(){let e=Ie(this.permanentCookie,"timesVisited");!1!==Ie(this.temporalCookie,"visitedInThisSession")&&!1!==e||(e=!1===e||isNaN(parseInt(e,10))?1:e+1,this.permanentCookie.timesVisited=e,this.temporalCookie.visitedInThisSession=!0,this.markAsModified("permanent"),this.markAsModified("temporal"))}setPagesViewed(){let e=Ie(this.temporalCookie,"pagesViewed");e=!1===e||isNaN(parseInt(e,10))?1:e+1,this.temporalCookie.pagesViewed=e,this.markAsModified("temporal")}setLandingPage(e,t){!1===Ie(this.temporalCookie,"landingPage")&&(this.temporalCookie.landingPage=e||M(this.tracker.pageType,!0),this.temporalCookie.referrer=V(this.getPageType()),this.temporalCookie.lpti=t,this.markAsModified("temporal"))}getLandingPage(){var e;return null===(e=this.temporalCookie)||void 0===e?void 0:e.landingPage}getLandingPagePublishTime(){var e,t;if("false"!==(null===(e=this.temporalCookie)||void 0===e?void 0:e.lpti))return null===(t=this.temporalCookie)||void 0===t?void 0:t.lpti}trackExperience(e){(e=>{xi.add(e)})(e)}setRecirculationSource(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(e)return void(this.recirculationSource=e);const r=(e=>{const t=((e,t)=>x(e).search.substring(1).split("&").map((e=>e.split("="))).filter((e=>{let[t]=e;return"utm_cmp_rs"===t})).map((e=>{let[t,r]=e;return decodeURIComponent(r)})).shift())(e);if(t)return t;const r=(e=>{const t=ut(e),r=mt(),n=se();return r&&(r[t]||n&&r[n])})(e);if("refresh"!==r)return r;vt(e)})(this.currentPage);r?(this.recirculationSource=r,vt(this.currentPage)):t&&(()=>{if(window.performance){if(window.performance.navigation&&1===window.performance.navigation.type)return!0;if("function"==typeof window.performance.getEntriesByType)return window.performance.getEntriesByType("navigation").map((e=>e.type)).includes("reload")}return!1})()&&(this.previousPage=this.canonical,this.recirculationSource="refresh")}setCookieOnCookieDomain(e,t,r,n){let i=!(arguments.length>4&&void 0!==arguments[4])||arguments[4];xe(e,t,r,n,this.cookieDomain,i)}getCookieExpiration(){var e;const t=this.consentManager.getConsent("cookies"),r=this.tracker.consentCookieLength,n=null!==(e=this.tracker.noConsentCookieEnabled)&&void 0!==e?e:0;if(!t&&0===n)return;const i=new Date(Date.now()),o=t?r:n;return i.setDate(i.getDate()+o),i.toGMTString()}saveTemporalCookie(){const e=this.tracker.isCookieSandboxed?"".concat("___nrbic","_").concat(this.accountId):"___nrbic";this.canWriteCookies()&&this.setCookieOnCookieDomain(e,Ei("___nrbic",this.temporalCookie),this.getCookieExpiration(),"/",!1),ge(e,this.temporalCookie)}savePermanentCookie(){const e=this.tracker.isCookieSandboxed?"".concat("___nrbi","_").concat(this.accountId):"___nrbi";if(this.canWriteCookies()){const t=this.getCookieExpiration(),{actualUserId:r}=this.userIdManager.getUserId();let i=Yi({},this.permanentCookie);if(this.tracker.useLocalstorageForUserVars&&this.initatedLocalStorageForUserVars){const{userSegments:e,userVars:t}=i,r=n(i,$i);Fi(e),async function(e){Array.isArray(e)&&null!=e&&e.every(Array.isArray)&&Cn("uvars",e)}(t),i=r}this.setCookieOnCookieDomain(e,Ei("___nrbi",i),t,"/",!1),this.saveAmpPermanentCookie(r)}ge(e,this.permanentCookie)}saveAmpPermanentCookie(e){e&&this.setCookieOnCookieDomain("compass_uid",e,this.getCookieExpiration(),"/")}saveCookies(){let{force:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.temporalCookie&&(this.temporalCookieModified||e)&&this.saveTemporalCookie(),this.permanentCookie&&(this.permanentCookieModified||e)&&this.savePermanentCookie()}removeCookies(){const e=this.tracker.isCookieSandboxed?"_".concat(this.accountId):"";Fe("".concat("___nrbic").concat(e),"/",this.cookieDomain),Fe("".concat("___nrbi").concat(e),"/",this.cookieDomain)}markAsModified(e){this[e+"CookieModified"]=!0}getReferrer(){return this.previousPage||V(this.getPageType())}getPreviousPage(){const e=this.getReferrer();if(Ve(e,this.cookieDomain))return e}hasTrackedAds(){return!this.nrGoogleTrackingActive||this.adsTracked}getEngagedTime(){var e;const t=Ae()-this.startPageTime;return"fbia"===(null===(e=this.tracker)||void 0===e?void 0:e.pageType)?t:this.engagementCalculator.getTotalEngagedTime()}async track(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new FormData;return new Promise((t=>{const r=0===this.tick;this.api.post("/ingest.php",e,{contentType:"application/x-www-form-urlencoded",onSuccessCallback:r?e=>{var r;let n={};try{n=JSON.parse(e)}catch(e){}if(Ie(this.temporalCookie,"isNewUser")){const{actualUserId:e,userIdPromise:t}=this.getUserId();t.then((t=>this.setIsNewUser(t===e)))}var i;this.userIdManager.processIdentity(Yi(Yi({},n),(e=>{return t={uid:Ne(e),sid:Re(e)},Object.entries(t).filter((e=>{let[t,r]=e;return void 0!==r})).reduce(((e,t)=>{let[r,n]=t;return e[r]=n,e}),{});var t})(this.url))),n.strategy&&(i=n.strategy,Jr=i.reduce(((e,t)=>Hr(Hr({},e),{},{[t.tick]:t.delay})),{})),n.ads&&(this.adsDelay=n.ads),!this.tracker.stress&&null!==(r=n.mirror)&&void 0!==r&&r.active&&this.api.registerApi(eo(n.mirror.replicas)),t()}:void 0,skipResponse:this.isLastEvent,leaving:this.isLastEvent}),this.tick++,r||t()}))}async setUserType(e){this.permanentCookie.userType=e,this.markAsModified("permanent"),this.saveCookies()}getUserId(){return this.userIdManager.getUserId()}getSiteUserId(){return this.permanentCookie.siteUserId}getSessionReferrer(){return this.temporalCookie.referrer}getSessionId(){return this.temporalCookie.sessionId}getPageId(){return this.pageId}getRecirculationSource(){return this.recirculationSource}getFirstVisit(){return this.permanentCookie.firstVisit}getLastVisit(){return this.temporalCookie.previousVisit!==this.permanentCookie.futurePreviousVisit?this.temporalCookie.previousVisit:null}getPageType(){const e=this.tracker.pageType;return e&&tn(e)?tn(e):0}getUserType(){return function(e){if("number"==typeof e)return e;let t=parseInt(e||"",10);if(isNaN(t))switch(e){case"logged":t=2;break;case"paid":t=3;break;default:t=0}return t}(this.permanentCookie.userType)}getTotalPageviews(){return this.temporalCookie.pagesViewed}getSessionDuration(){return Ae()-this.temporalCookie.currentVisitStarted}getEndpointDomain(){return this.endpointDomain}getFallbackEndpointDomain(){return"https://icu.newsroom.bi"}getStagingEndpointDomain(){return ye}async getUserVarsAsync(){return await this.synchronizer.wait("pageInitialized"),this.tracker.useLocalstorageForUserVars&&await this.synchronizer.wait("localstorageVarsSynced"),this.getUserVars()}getUserVars(){return to(this.permanentCookie.userVars)}getSessionVars(){return to(this.temporalCookie.sessionVars)}getPageVars(){return to(Pn)}getPageMetrics(){return to(Tn)}getUrl(){return this.url}getPublishTime(){return this.publishTime}setEcommerceData(e){this.ecommerceData=e}getCanonical(){return this.canonical}setSiteUserId(e){const t=e?"".concat(e):void 0;this.permanentCookie.siteUserId=t,this.markAsModified("permanent"),this.saveCookies(),t&&this.cdp.linkIdentity("registered_user_id",t,!0,"personalization")}setCookies(e){this.consentManager.setConsent("cookies",e)}getUserConsent(){return arguments.length>0&&void 0!==arguments[0]&&!arguments[0]?this.consentManager.getConsent("cookies"):async function(e,t){return e.isInitiated()?e.getConsent(t):await Promise.race([new Promise((e=>setTimeout((()=>e(!0)),5e3))),new Promise((t=>e.onChange((()=>t(!0)))))]).then((async()=>e.getConsent(t)))}(this.consentManager,"cookies")}async trackAdEvent(e,t){await this.synchronizer.wait("pageInitialized"),this.adsTracker.trackAdEvent(e,t)&&-1!==this.adsDelay&&(this.adsTracked=!0,Kr(),$r(this.adsDelay,(()=>this.trackPage())))}async trackAdRendered(e,t){await this.synchronizer.wait("pageInitialized"),this.adsTracker.trackAdEventLegacy("slotRenderEnded",e,t)&&-1!==this.adsDelay&&(this.adsTracked=!0,Kr(),$r(this.adsDelay,(()=>this.trackPage())))}async setUserVar(e,t){await this.synchronizer.wait("pageInitialized"),this.tracker.useLocalstorageForUserVars&&await this.synchronizer.wait("localstorageVarsSynced"),En(this.permanentCookie.userVars,e,t),this.markAsModified("permanent"),this.saveCookies(),this._flushUserVarsToCdp()}async setSessionVar(e,t){await this.synchronizer.wait("pageInitialized"),En(this.temporalCookie.sessionVars,e,t),this.markAsModified("temporal"),this.saveCookies()}async setPageVar(e,t){var r;((e,t)=>{En(Pn,e,t)})(e,t),r=t,"closed"===e&&this.setUserVar("lastClosed",r)}async setPageMetric(e,t){t&&Number.isInteger(t)&&((e,t)=>{En(Tn,e,t)})(e,t)}async trackConversion(e,t){await this.conversionsStore.addConversion(e,t),Kr(),await this.trackPage()}listenForScrollDepth(){const e="requestAnimationFrame"in window?window.requestAnimationFrame:e=>e(),t=Le((()=>e((()=>de()))),1e3);window.addEventListener("scroll",t,{passive:!0})}async _trackRecirculationEvent(e){var t,r;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(!this.canTrack())return;const i=await this.getTrackingCommonData(),o=n.map((e=>e.e)).some((e=>e.some((e=>"string"!=typeof e&&!!e.ac2)))),s={t:e,m:n.map((e=>{var t,r;return Yi(Yi({},e),{},{e:(null===(t=(r=e.e).map)||void 0===t?void 0:t.call(r,Z))||e.e})})),ac:i.ac,url:i.url,c:i.c,ut:i.ut,fv:i.fv,lv:i.lv,r:i.r,lp:i.lp,pageType:0,sui:i.sui,u:i.u,uc:i.uc,cc:i.cc,n:Ae(),cms_id:i.cms_id};this.tracker.pageType&&"fbia"===this.tracker.pageType&&(s.pageType=2);const a=Ye(this.accountId);if(a){const{rfv:e,v:t,f:r,r:n}=a;s.rfv=e,s.rfv_r=n,s.rfv_f=r,s.rfv_v=t}return this.api.post("".concat("/recirculation/recirculation.php").concat(o?"?c=1":""),(e=>Yi(Yi({},e),{},{m:e.m.map((e=>{var t,r;return Yi(Yi({},e),{},{e:(null===(t=(r=e.e).map)||void 0===t?void 0:t.call(r,nr))||e.e})}))}))(s)),null===(t=this.events)||void 0===t||null===(r=t.emitRecirculation)||void 0===r||r.call(t,s),s}async trackRecirculationEvent(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return await this._trackRecirculationEvent(e,this.moduleTracker.process(e,t))}getBasicConfig(){const{actualUserId:e}=this.getUserId();return Yi({ac:this.accountId,t:this.temporalCookie.currentVisitStarted,r:this.getSessionReferrer(),url:this.url,c:this.canonical,pp:this.getPreviousPage(),lp:this.getLandingPage(),p:this.pageId,u:e,s:this.getSessionId(),v:.2,cms_id:this.cmsId},this.getLandingPagePublishTime()?{lpti:this.getLandingPagePublishTime()}:{})}async getTrackingCommonData(){const{userIdPromise:e}=this.getUserId();return Yi(Yi({},this.getBasicConfig()),{},{u:await e,ua:window.navigator.userAgent,rs:this.getRecirculationSource(),sui:this.getSiteUserId()||"",ut:this.getUserType(),fv:this.getFirstVisit(),lv:this.getLastVisit(),uvar:this.getUserVars(),svar:this.getSessionVars(),pvar:this.getPageVars(),pm:this.getPageMetrics(),uc:await this.getUserConsent(),useg:this.getUserSegments(),cc:Ee(this.consentManager)})}async trackPageInternal(){this.tick>0&&(this.performanceStartTime=performance.now());const e=new FormData,{pageNav:t,jsTime:r}=(e=>{if(void 0!==window.performance&&"function"==typeof window.performance.getEntriesByType){const t=window.performance.getEntriesByType("navigation")[0];return He=He||window.performance.now()-e,He>0?{pageNav:t,jsTime:He}:{}}return{}})(this.performanceStartTime);null!=r&&(e.append("pt",r),void 0!==t&&void 0!==t.domainLookupEnd&&(e.append("pdns",t.domainLookupEnd-t.domainLookupStart),e.append("pcon",t.connectEnd-t.connectStart),e.append("pfet",t.responseEnd-t.fetchStart),e.append("pnet",t.responseEnd-t.requestStart),e.append("pttf",t.responseStart-t.requestStart),e.append("pint",t.domInteractive),e.append("pdcl",t.domContentLoadedEventEnd),e.append("pdclf",t.duration))),e.append("wv",this.webVitals.hasWebVitals()),e.append("lcp",this.webVitals.lcp),e.append("cls",this.webVitals.cls),e.append("fcp",this.webVitals.fcp),e.append("tbt",this.webVitals.tbt),e.append("inp",this.webVitals.inp);const n=e=>{try{if(!this.tracker.inpDrillDown||null===this.webVitals[e])return;this.setPageMetric(e,Math.floor(this.webVitals[e]))}catch(e){}};n("inpInputDelay"),n("inpProcessingDuration"),n("inpPresentationDelay"),n("inpIntersectionDuration"),this.webVitals.lcpOffender&&e.append("lcp_o",this.webVitals.lcpOffender),this.webVitals.clsOffender&&(e.append("cls_o",this.webVitals.clsOffender),e.append("cls_o_s",this.webVitals.clsOffenderStatus)),this.webVitals.inpOffender&&(e.append("inp_o",this.webVitals.inpOffender),e.append("inp_o_s",this.webVitals.inpOffenderStatus),this.webVitals.inpOffenderScript&&e.append("inp_o_src",this.webVitals.inpOffenderScript),this.webVitals.inpOffenderScriptFn&&e.append("inp_o_fn",this.webVitals.inpOffenderScriptFn),this.webVitals.inpOffenderScriptInvoke&&e.append("inp_o_in",this.webVitals.inpOffenderScriptInvoke)),Object.entries(this.getBasicConfig()).forEach((t=>{let[r,n]=t;null!=n&&e.append(r,n)}));const i=this.getUserSegments();null!=i&&i.length&&e.append("useg",JSON.stringify(i)),e.append("n",Ae());const o=Ae()-this.startPageTime;e.append("et",this.getEngagedTime()),e.append("l",o),e.append("ps",this.startPageTime),e.append("ut",this.getUserType()),e.append("sui",this.getSiteUserId()||""),e.append("sc",de(0===this.tick)),e.append("fv",this.getFirstVisit()),e.append("lv",this.getLastVisit()),e.append("uvar",JSON.stringify(this.getUserVars())),e.append("svar",JSON.stringify(this.getSessionVars())),e.append("pvar",JSON.stringify(this.getPageVars())),e.append("pm",JSON.stringify(this.getPageMetrics())),e.append("nu","".concat(+Ie(this.temporalCookie,"isNewUser"))),e.append("exp",(()=>{try{return JSON.stringify([...xi.values()])}catch(e){return"[]"}})()),this.isLastEvent&&e.append("le","1"),this.ecommerceData&&e.append("stock",this.ecommerceData.stock),(this.publishTime||this.updateTime)&&(e.append("uti",this.updateTime),e.append("pti",this.publishTime)),!1!==this.multimediaTrackingMode&&this.mediaCounter.mediaItems&&e.append("m_n",this.mediaCounter.mediaItems),!1!==this.multimediaTrackingMode&&this.mediaCounter.maxMediaPlayed&&e.append("m_t",this.mediaCounter.maxMediaPlayed),e.append("ads",this.adsTracker.getAds());const s=this.adsTracker.getAdUnits();s.length>0&&e.append("aups",s);const{conv:a,conv_i:c,cvid:l,cvv:u,cvar:d}=this.conversionsStore.getLastConversion();a&&(e.append("conv",a),c&&e.append("conv_i",c),void 0!==l&&e.append("cvid",l),void 0!==u&&e.append("cvv",JSON.stringify(u)),d&&d.length&&e.append("cvar",JSON.stringify(d)),this.conversionsStore.clearLastConversion());const h=this.conversionsStore.getAllConversions();if(h.length&&e.append("c_t",JSON.stringify(h)),this.recirculationSource&&e.append("rs",this.getRecirculationSource()),e.append("uc",this.isLastEvent?this.getUserConsent(!1):await this.getUserConsent()),e.append("cc",Ee(this.consentManager)),e.append("a",this.tick),this.consentManager.getConsent("personalization")){const t=Ye(this.accountId);if(t){const{rfv:r,v:n,r:i,f:o}=t;e.append("rfv",r),e.append("rfv_v",n),e.append("rfv_r",i),e.append("rfv_f",o)}const r=this.cdp.getData(!0);r.masterId&&(e.append("cdp_mid",r.masterId),e.append("cdp_rfv",r.rfv),e.append("cdp_cohorts",r.cohorts))}return this.tracker.pageType&&e.append("pageType",tn(this.tracker.pageType)),await this.track(e),e}async collectAndTrackPage(){for(;window[this.trackerName].data.length>0;){const e=window[this.trackerName].data.shift();"userType"===e[0]?this.setUserType(e[1]):"userId"===e[0]?this.setSiteUserId(e[1]):"setCookies"===e[0]?this.setCookies(e[1]):"adRendered"===e[0]?this.adsTracker.trackAdEventLegacy("slotRenderEnded",e[1],e[2]):"userVar"===e[0]?this.setUserVar(e[1],e[2]):"sessionVar"===e[0]?this.setSessionVar(e[1],e[2]):"pageVar"===e[0]?this.setPageVar(e[1],e[2]):"pageMetric"===e[0]?this.setPageMetric(e[1],e[2]):"trackConversion"===e[0]?this.trackConversion(e[1],e[2]):"getRFV"===e[0]?this.getRFV(e[1]):"cdpDoIdentityLink"===e[0]?this.cdp.linkIdentity(e[1],e[2],e[3],"personalization"):"resetIdentity"===e[0]&&this.resetIdentity()}return await this.trackPageInternal()}async trackPage(){const e=this.pageId;if(!this.canTrack())return;this.isLastEvent=!1;let t=null;return 0!==this.tick&&"hidden"===document.visibilityState||(t=await this.collectAndTrackPage()),((e,t)=>{const r=Object.keys(Jr).map((e=>parseInt(e,10))).sort(((e,t)=>e-t)).reduce(((t,r)=>null===t&&r>e?r:t),null);r&&Gr.callOnTimer(t,Jr[r])})(this.tick,(()=>{e===this.pageId&&this.trackPage()})),t}getRFV(e){if(!this.consentManager.getConsent("personalization"))return e?e(Je):Je;const{userIdPromise:t,actualUserId:r}=this.getUserId(),n=Ie(this.temporalCookie,"isNewUser");return e?t.then((t=>async function(e,t,r,n){let i=arguments.length>4&&void 0!==arguments[4]&&arguments[4];const o=Ye(e);return o?(r(o),o):function(e,t,r,n){let i=arguments.length>4&&void 0!==arguments[4]&&arguments[4];return new Promise((o=>{const s=$e(e,t,n,i);y(Ge,s,{onSuccessCallback:t=>{let n;try{n=Ke(JSON.parse(t),e)}catch(e){n={rfv:1,r:0,f:0,v:0}}r(n),o(n)},contentType:"application/x-www-form-urlencoded"}),Xe(s)}))}(e,t,r,n,i)}(this.accountId,t,e,this.getSiteUserId(),n))):(console.error("Deprecated: please pass a callback to the function getRFV"),function(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return Ye(e)||function(e,t,r){const n=$e(e,t,r,arguments.length>3&&void 0!==arguments[3]&&arguments[3]),i=y(Ge,n,{sync:!0,contentType:"application/x-www-form-urlencoded"});return Xe(n),Ke(JSON.parse(i),e)}(e,t,r,n)}(this.accountId,r,this.getSiteUserId(),n))}cdpDoIdentityLink(e,t){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return this.cdp.linkIdentity(e,t,r,"personalization")}resetIdentity(){return this.identityResetter.reset()}getCdpData(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this.cdp.getData(e)}getCdpMasterId(){return this.cdp.getMasterId()}getMeterSnapshot(){return this.cdp.getMeterSnapshot()}getMeter(e){return this.cdp.getMeter(e)}listMeters(){return this.cdp.listMeters()}incrementMeter(e){return this.cdp.incrementMeter(e)}async trackNewPage(e){var t;if(null!==(t=history.state)&&void 0!==t&&t.mrfSkip)return;const r=((e,t)=>e?"string"==typeof e?{url:e}:e:{})(e);let{initialPageVars:n}=r,i=this.tracker.lazy;return Kr(),this.tick>0?("back forward cache"===r.rs&&(n=Yi(Yi({},Object.fromEntries(this.getPageVars())),n)),this.isLastEvent=!0,await this.trackPageInternal(),this.previousPage=""+this.canonical,i=!1):n=Yi(Yi({},Object.fromEntries(this.getPageVars())),n),R={},(Ui(null==e?void 0:e.rs)||this.tracker.alwaysRequestExperiences)&&this.dispatcher.dispatch("loadExperiences",{rs:null==e?void 0:e.rs,url:window.location.pathname}),await this.initialize(Yi(Yi({},r),{},{initialPageVars:n,fromSPA:!i}))}on(e,t){this.dispatcher.on(e,t)}setupConsent(e){const t=()=>{this.saveAmpPermanentCookie(Ue("compass_uid"))};this.consentManager.onChange((async()=>{if(this.tracker.blockOnReject&&!this.consentManager.getConsent("cookies"))return await this.synchronizer.wait("pageInitialized"),void this.stopTracking();this.canWriteCookies()?this.saveCookies({force:!0}):this.removeCookies(),t()}).bind(this)),t();const r=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{useCookies:t}=e;if(Se(t))return t;const r=me("__nrCookieConsent");return Se(r)?r:null}(e);null!==r&&this.consentManager.setConsent("cookies",r)}async getPaywallScore(){const{actualUserId:e}=this.userIdManager.getUserId();return this.consentManager.getConsent("personalization")?(async e=>{const t="".concat(Ze,"?").concat(We(e)),r=await window.fetch(t);if(!r.ok)throw new Error(r.status);const{score:n}=await r.json();return n})({accountId:this.accountId,userId:e,siteUserId:this.getSiteUserId(),userType:this.getUserType()}):ze}async predict(){const{actualUserId:e}=this.userIdManager.getUserId(),t=await(async e=>{const t="".concat(Be,"?").concat(We(e)),r=await fetch(t);if(!r.ok)throw new Error(r.status);return await r.json()})({accountId:this.accountId,userId:e,siteUserId:this.getSiteUserId(),userType:this.getUserType(),totalPageviews:this.getTotalPageviews(),sessionDuration:this.getSessionDuration()});return t.probability&&this.setPageMetric("mrf_paywall_propensity",Math.round(1e3*t.probability)),t}async setRecirculationTracking(){return this.setRecirculationTrackingInternal(!0)}async setRecirculationTrackingInternal(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];const t=Promise.race([this.synchronizer.wait("experimentation").then((e=>e?this.synchronizer.wait("headline"):Promise.resolve())),this.synchronizer.wait("experimentationFailed"),this.synchronizer.wait("experimentationDisabled").then((()=>Promise.resolve())),new Promise((e=>setTimeout(e,3e3)))]),[{layouts:r}]=await Promise.all([this.tracker.rm,t]);await async function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:()=>{};await er(),function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:()=>{};const{observeDomChanges:n=!0,layouts:i=[]}=t,o=n?Kt:Jt;dt().forEach((t=>t.shadowRoot&&o(e,t.shadowRoot,{parentNode:t,layouts:i},r))),o(e,document.body,{layouts:i},r)}(e,t,r)}(((e,t)=>{(e=>{"hidden"!==document.visibilityState?e():document.addEventListener("visibilitychange",(()=>{"hidden"!==document.visibilityState&&e()}),{once:!0})})((()=>this.trackRecirculationEvent(e,t.map((e=>{let{module:t,links:r,position:n}=e;return{n:t,e:r,p:n}})))))}),{observeDomChanges:e,layouts:r},(()=>this.dispatcher.dispatch("recirculationChanged"))),this.synchronizer.resolve("recirculationTracking")}setRecirculationConfig(){let{modules:e=[],layouts:t=[],blacklist:r=[],redirectionLinks:n=[]}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.tracker.rm.set((i=>{let{modules:o=[],layouts:s=[],blacklist:a=[],redirectionLinks:c=[]}=i;const l={blacklist:Me([...a,...r]),redirectionLinks:Me([...c,...n]),modules:Me([...o,...e]),layouts:Me([...s,...t])};return this.dispatcher.dispatch("recirculationConfigChanged",Yi({},l)),l})),async function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:()=>{};e.modules.length&&(await er(),rr(e),D((()=>{rr(e)&&t()})),t())}({modules:e,blacklist:r,redirectionLinks:n},(()=>{this.setRecirculationTrackingInternal(!1),this.dispatcher.dispatch("recirculationChanged")}))}getRecirculationConfig(){return this.tracker.rm}setRecirculationModules(e){this.setRecirculationConfig({modules:e})}setConversionButtons(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];e&&e.length&&function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;document.readyState&&"complete"===document.readyState?Mi(e,t):document.addEventListener("readystatechange",(r=>{"complete"===document.readyState&&Mi(e,t)}))}(e,this.trackConversion.bind(this))}async addUserSegment(e){this.tracker.useLocalstorageForUserVars&&await this.synchronizer.wait("localstorageVarsSynced");const t=Ie(this.permanentCookie,"userSegments")||[];t.includes(e)||(this.permanentCookie.userSegments=[...t,e],this.markAsModified("permanent"),this.saveCookies(),this.cdp.addSegment(e,"personalization"))}async setUserSegments(e){this.tracker.useLocalstorageForUserVars&&await this.synchronizer.wait("localstorageVarsSynced");const t="string"==typeof e?e.split(","):e;this.permanentCookie.userSegments=t,this.markAsModified("permanent"),this.saveCookies(),this.cdp.replaceSegments(t,"personalization")}removeUserSegment(e){this.permanentCookie.userSegments=this.permanentCookie.userSegments?this.permanentCookie.userSegments.filter((t=>t!==e)):[],this.markAsModified("permanent"),this.saveCookies(),this.cdp.removeSegment(e,"personalization")}clearUserSegments(){this.permanentCookie.userSegments=[],this.markAsModified("permanent"),this.saveCookies(),this.cdp.clearSegments("personalization")}async getUserSegmentsAsync(){return await this.synchronizer.wait("pageInitialized"),this.tracker.useLocalstorageForUserVars&&await this.synchronizer.wait("localstorageVarsSynced"),this.getUserSegments()}getUserSegments(){var e;return(null===(e=this.permanentCookie)||void 0===e?void 0:e.userSegments)||[]}getContext(e){var t;return e?null===(t=this.contextVariables)||void 0===t?void 0:t[e]:this.contextVariables}setContext(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.contextVariables=e}trackPaymentMethod(){(e=>{try{const r=e.getSessionVars();if("hub.marfeel.com"===document.location.host)return;if(window.addEventListener("message",(t=>{if("https://experiences.mrf.io"===t.origin){var r,n,i;if(null!==(r=t.data)&&void 0!==r&&r.activePayment)e.setSessionVar("activePaymentMethod",t.data.activePayment);else if(null!==(n=t.data)&&void 0!==n&&n.retryData&&window.PaymentRequest){var o;const{paymentMethod:r,paymentDetails:n}=null===(o=t.data)||void 0===o?void 0:o.retryData;new PaymentRequest([r],n,{}).canMakePayment().then((t=>{t&&e.setSessionVar("activePaymentMethod","applePay")})).catch((()=>{}))}Vi=!1;const s=null===(i=document.body)||void 0===i?void 0:i.querySelector("iframe#".concat("dw-mrf"));s&&document.body.removeChild(s)}})),!Vi||!r.activePaymentMethod){var t;const e=document.createElement("iframe");e.id="dw-mrf",e.setAttribute("allow","payment"),e.setAttribute("style","display:none;"),e.src=Li,null===(t=document.body)||void 0===t||t.appendChild(e),Vi=!0}}catch(e){}})(this)}async addMediaItemPlayed(){this.mediaCounter.addItem()}async setMediaSecondsPlayed(e){this.mediaCounter.setMaxSeconds(e)}setMultimediaTracking(e){this.multimediaTrackingMode=e}getMultimediaTracking(){return this.multimediaTrackingMode}}},289:()=>{var e=marfeel;function t(e,t,r,n,i,o,s){try{var a=e[o](s),c=a.value}catch(e){return void r(e)}a.done?t(c):Promise.resolve(c).then(n,i)}function r(e){return function(){var r=this,n=arguments;return new Promise((function(i,o){var s=e.apply(r,n);function a(e){t(s,i,o,a,c,"next",e)}function c(e){t(s,i,o,a,c,"throw",e)}a(void 0)}))}}function n(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var i=class{constructor(e,t,r,i,o,s,a){n(this,"config",void 0),n(this,"compassSDK",void 0),n(this,"synchronizer",void 0),n(this,"consentSDK",void 0),n(this,"eventsSDK",void 0),n(this,"executionData",void 0),n(this,"deferred",void 0),n(this,"moduleLoader",void 0),n(this,"sdkConfig",void 0),this.compassSDK=t,this.compassSDK.setRecirculationConfig({}),this.synchronizer=r,this.consentSDK=i,this.eventsSDK=o,this.sdkConfig=e,this.deferred={promise:Promise.resolve(),resolve:()=>{},promiseResolve:()=>{}},this.moduleLoader=s,this.config={accountId:e.accountId,targeting:{}},this.executionData=Promise.resolve({handled:{},experiences:{},experiments:{}}),["mrfdebug","mrfexp"].some((e=>window.location.href.includes(e)))&&(this.moduleLoader.loadFile("https://sdk.mrf.io/statics/croupier-sdk.js","croupier-sdk",!0),this.moduleLoader.loadFile("https://sdk.mrf.io/statics/croupier-sdk.es5.js","croupier-sdk-es5",!1))}done(){}addTargeting(e,t){}addExperience(e,t){}addEventListener(e,t,r){}hasExperiences(e){return Promise.resolve(!1)}triggerExperiences(){return r((function*(){return Promise.resolve({handled:{},experiences:{},experiments:{}})}))()}hasExperimentation(e){return Promise.resolve(!1)}getExperiments(){return Promise.resolve({})}getRecommendations(e){return r((function*(){return Promise.resolve([])}))()}getExperience(e,t){return Promise.resolve(null)}runExperience(e,t){return Promise.resolve(!1)}};(0,e.registerSDK)("experiences",["compass","synchronizer","consent","events","loader","scriptLoader"],(()=>Promise.resolve(i)))},799:(e,t,r)=>{r.d(t,{N:()=>i,r:()=>n});var n=function(e){return e.WARNING="warning",e.JS_ERROR="jserror",e}({}),i="marfeelsdk_errors"},795:(e,t,r)=>{function n(e,t,r,n,i,o,s){try{var a=e[o](s),c=a.value}catch(e){return void r(e)}a.done?t(c):Promise.resolve(c).then(n,i)}function i(e){return function(){var t=this,r=arguments;return new Promise((function(i,o){var s=e.apply(t,r);function a(e){n(s,i,o,a,c,"next",e)}function c(e){n(s,i,o,a,c,"throw",e)}a(void 0)}))}}r.d(t,{Z:()=>i})},601:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function i(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==n(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,"string");if("object"!==n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===n(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}r.d(t,{Z:()=>i})}},o={};function s(e){var t=o[e];if(void 0!==t)return t.exports;var r=o[e]={id:e,loaded:!1,exports:{}};return i[e](r,r.exports,s),r.loaded=!0,r.exports}s.m=i,s.amdO={},t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,s.t=function(r,n){if(1&n&&(r=this(r)),8&n)return r;if("object"==typeof r&&r){if(4&n&&r.__esModule)return r;if(16&n&&"function"==typeof r.then)return r}var i=Object.create(null);s.r(i);var o={};e=e||[null,t({}),t([]),t(t)];for(var a=2&n&&r;"object"==typeof a&&!~e.indexOf(a);a=t(a))Object.getOwnPropertyNames(a).forEach((e=>o[e]=()=>r[e]));return o.default=()=>r,s.d(i,o),i},s.d=(e,t)=>{for(var r in t)s.o(t,r)&&!s.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},s.f={},s.e=e=>Promise.all(Object.keys(s.f).reduce(((t,r)=>(s.f[r](e,t),t)),[])),s.u=e=>({94:"eda4f926b30cde47c66e",360:"d31ef6f2918eede5697b",374:"e707c67da5ef928545f2",403:"d6ac2207e2cbe6bdc016",792:"a0d735f716941f2283ad"}[e]+".js"),s.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),s.hmd=e=>((e=Object.create(e)).children||(e.children=[]),Object.defineProperty(e,"exports",{enumerable:!0,set:()=>{throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+e.id)}}),e),s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r={},n="@marfeel/marfeel-sdk:",s.l=(e,t,i,o)=>{if(r[e])r[e].push(t);else{var a,c;if(void 0!==i)for(var l=document.getElementsByTagName("script"),u=0;u<l.length;u++){var d=l[u];if(d.getAttribute("src")==e||d.getAttribute("data-webpack")==n+i){a=d;break}}a||(c=!0,(a=document.createElement("script")).type="module",a.charset="utf-8",a.timeout=120,s.nc&&a.setAttribute("nonce",s.nc),a.setAttribute("data-webpack",n+i),a.src=e),r[e]=[t];var h=(t,n)=>{a.onerror=a.onload=null,clearTimeout(p);var i=r[e];if(delete r[e],a.parentNode&&a.parentNode.removeChild(a),i&&i.forEach((e=>e(n))),t)return t(n)},p=setTimeout(h.bind(null,void 0,{type:"timeout",target:a}),12e4);a.onerror=h.bind(null,a.onerror),a.onload=h.bind(null,a.onload),c&&document.head.appendChild(a)}},s.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},s.p="https://sdk.mrf.io/statics/",(()=>{var e={179:0};s.f.j=(t,r)=>{var n=s.o(e,t)?e[t]:void 0;if(0!==n)if(n)r.push(n[2]);else{var i=new Promise(((r,i)=>n=e[t]=[r,i]));r.push(n[2]=i);var o=s.p+s.u(t),a=new Error;s.l(o,(r=>{if(s.o(e,t)&&(0!==(n=e[t])&&(e[t]=void 0),n)){var i=r&&("load"===r.type?"missing":r.type),o=r&&r.target&&r.target.src;a.message="Loading chunk "+t+" failed.\n("+i+": "+o+")",a.name="ChunkLoadError",a.type=i,a.request=o,n[1](a)}}),"chunk-"+t,t)}};var t=(t,r)=>{var n,i,[o,a,c]=r,l=0;if(o.some((t=>0!==e[t]))){for(n in a)s.o(a,n)&&(s.m[n]=a[n]);c&&c(s)}for(t&&t(r);l<o.length;l++)i=o[l],s.o(e,i)&&e[i]&&e[i][0](),e[i]=0},r=self.webpackChunk_marfeel_marfeel_sdk=self.webpackChunk_marfeel_marfeel_sdk||[];r.forEach(t.bind(null,0)),r.push=t.bind(null,r.push.bind(r))})(),(()=>{var e={};s.r(e),s.d(e,{TIMING_MARKS:()=>f,mark:()=>g,markAndMeasure:()=>y,measure:()=>v});var t,r,n,i,o=function(){try{var e;if(-1!==location.hash.indexOf("mrfdebug")||null!==(e=window.localStorage)&&void 0!==e&&e.getItem("mrfdebug")){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];console.log("[piano js-callbacks]",...r)}}catch(e){}},a=e=>{o('"showOffer" handler called'),window.marfeel=window.marfeel||{},window.marfeel.cmd=window.marfeel.cmd||[],window.marfeel.cmd.push(["synchronizer",function(t){o("resolve piano-offer"),t.resolve("piano-offer",e)}])},c=e=>{o('"checkoutComplete" handler called'),window.marfeel=window.marfeel||{},window.marfeel.cmd=window.marfeel.cmd||[],window.marfeel.cmd.push(["synchronizer",function(t){o("resolve piano-subscription"),t.resolve("piano-subscription",e)}])};window.tp=window.tp||[],o("start",window.tp),o("piano handlers pushed"),Array.isArray(window.tp)?(window.tp.push(["addHandler","showOffer",a]),window.tp.push(["addHandler","checkoutComplete",c])):(null===(t=(r=window.tp).addHandler)||void 0===t||t.call(r,"showOffer",a),null===(n=(i=window.tp).addHandler)||void 0===n||n.call(i,"checkoutComplete",c));var l=s(795);var u=s(601);const d=class{constructor(e){(0,u.Z)(this,"dependency",void 0),(0,u.Z)(this,"buffer",[]),this.dependency=e}get(e){this.dependency?e(this.dependency):this.buffer.push(e)}resolve(e){this.dependency=e,this.buffer.splice(0).forEach((t=>{try{t(e)}catch(e){console.error(e)}}))}},h=class{constructor(){(0,u.Z)(this,"dependencies",{})}get(e,t){var r="string"==typeof e?[e]:e,n=new Array(e.length),i=e.length,o=function(){try{t(...arguments)}catch(e){}};i?r.forEach(((e,t)=>{this.dependencies[e]||(this.dependencies[e]=new d),this.dependencies[e].get((e=>{n[t]=e,0==--i&&o(...n)}))})):o(...n)}register(e,t){this.dependencies[e]?this.dependencies[e].resolve(t):this.dependencies[e]=new d(t)}};var p=[];var f=function(e){return e.LOADING_EXPERIENCES="loadingExperiences",e.END_LOADING_EXPERIENCES="endLoadingExperiences",e.INIT_HANDLE_INLINE_EXPERIENCE="initHandleInlineExperience",e.END_HANDLE_INLINE_EXPERIENCE="endHandleInlineExperience",e.INIT_HANDLE_EXPERIMENTATION="initHandleExperimentation",e.END_HANDLE_EXPERIMENTATION="endHandleExperimentation",e.INIT_HANDLE_ACTION="initHandleAction",e.END_HANDLE_ACTION="endHandleAction",e}({}),m=-1!==location.hash.indexOf("mrfdebug")||-1!==location.hash.indexOf("mrfexp"),g=e=>{m&&performance.mark(e)},v=(e,t,r)=>{if(m){var n=performance.measure("".concat(e," to ").concat(t),e,t);!function(){try{if(m){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];console.debug("%c[marfeel-sdk-timing] %c","color:#ff9423","color: inherit",...t)}}catch(e){}}("Timing from ".concat(e," to ").concat(t),n.duration,r)}},y=(e,t,r)=>{m&&(g(t),v(e,t,r))};function b(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function w(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?b(Object(r),!0).forEach((function(t){(0,u.Z)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):b(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var k=window.location.href.includes("mrfExperiencesPreviewEnabled")?new class{constructor(){}registerSDK(){return(0,l.Z)((function*(){}))()}addConfig(){return(0,l.Z)((function*(){}))()}getSDKs(){}}:new class{constructor(t){var r=this;(0,u.Z)(this,"dependenciesContainer",new h),(0,u.Z)(this,"config",void 0),this.config=t.config;var n=e=>e.forEach((e=>this.getSDKs(...e)));n(t.cmd.splice(0)),t.cmd.push=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return n(t),0};var i=w({},t);Object.assign(t,e,{registerSDK:function(){return r.registerSDK(...arguments)}},i),function(e){window.addEventListener("message",(t=>{if((!(s=t.origin)||"null"===s||s===window.location.origin||p.includes(s))&&(o=t.data)&&"__MRF_SDK__"===o.app){var{sdkName:r,methodName:n,args:i}=t.data;e.cmd.push([r,e=>{e[n].apply(e,i)}])}var o,s}))}(t)}registerSDK(e,t,r,n){var i=this;return(0,l.Z)((function*(){i.dependenciesContainer.get(t,(function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];r(i.config,o).then((t=>{var r=new t(i.config,...o);i.dependenciesContainer.register(e,r),null==n||n(i.config,r)})).catch((()=>{}))}))}))()}addConfig(e){var t=this;return(0,l.Z)((function*(){t.config=w(w({},t.config),e)}))()}getSDKs(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=t.slice(0,t.length-1),i=t[t.length-1];this.dependenciesContainer.get(n,i)}}(window.marfeel),O=function(){return k.registerSDK(...arguments)},C=window,S=s(799);function E(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}class P{constructor(e){var{errorSampling:t,accountId:r}=e;(0,u.Z)(this,"trackError",(function(){var e,t,r,n,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:S.r.JS_ERROR,o=arguments.length>1?arguments[1]:void 0;null===(e=window)||void 0===e||null===(t=e.sdk_vrys)||void 0===t||null===(r=t.getInstance)||void 0===r||null===(n=r.call(t,S.N))||void 0===n||n.track(function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?E(Object(r),!0).forEach((function(t){(0,u.Z)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):E(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({type:i},o))}));var n=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10,r="number"==typeof e?e:Number(e);return!isFinite(r)||isNaN(r)||r<0||r>100?t:r}(t);if(100*Math.random()<n){var i=function(){var e,t=(e=function(){var e="sdk_vrys";C[e]||(C[e]={});var t=C[e];return t.que||(t.que=[]),t.index||(t.index=""),C[e]}(),e.__i6l=Object.assign({err:[]},e.__i6l),e),r=function(e){return t.__i6l.err.push({type:"error",err:e})},n=function(e){return t.__i6l.err.push({type:"promise",err:e})};return C.addEventListener("error",r),C.addEventListener("unhandledrejection",n),function(){C.removeEventListener("error",r),C.removeEventListener("unhandledrejection",n)}}();s.e(792).then(s.bind(s,792)).then((e=>{var{initTracking:t}=e;t(r),i()}))}}}function T(e){return"analytics_storage"===e?"cookies":e}O("logger",[],(()=>Promise.resolve(P)));var I=function(e){return e.READY="ready",e.ANSWERED="answered",e}(I||{});class A{constructor(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];(0,u.Z)(this,"onChangeCallbacks",void 0),(0,u.Z)(this,"onReadyCallbacks",void 0),(0,u.Z)(this,"consent",void 0),(0,u.Z)(this,"features",void 0),(0,u.Z)(this,"state",void 0),(0,u.Z)(this,"isEnabled",void 0),this.consent=e,this.features={},this.onReadyCallbacks=[],this.onChangeCallbacks=[],this.isEnabled=!0,e&&(this.state=I.ANSWERED)}isInitiated(){return arguments.length>0&&void 0!==arguments[0]&&!arguments[0]?!this.isEnabled||this.state===I.READY||this.state===I.ANSWERED:!this.isEnabled||this.state===I.ANSWERED}isRealCMP(){return!1}setCMPLoaded(){this.state||(this.state=I.READY);var e=this.onReadyCallbacks.slice();this.onReadyCallbacks=[],e.forEach((e=>e()))}setCMPNotApplies(){this.isEnabled=!1,this.consent=!0,this.setCMPLoaded()}isActive(){return this.isEnabled}onReady(e){this.isInitiated(!1)?e():this.onReadyCallbacks.push(e)}onChange(e){var t;null===(t=this.onChangeCallbacks)||void 0===t||t.push(e)}callOnChange(){this.onChangeCallbacks.forEach((e=>e()))}getConsent(e){return e&&this.features&&void 0!==this.features[e]?this.features[e]:this.consent}setConsentFeatures(e){e.forEach((e=>{var{feature:t,consent:r}=e;this.features[T(t)]=r})),this.state||this.setCMPLoaded(),this.callOnChange(),this.state=I.ANSWERED}setConsent(e,t){this.features[T(e)]=t,this.callOnChange()}hasToPromptForConsent(e){e(!1)}hasConsentForVendor(e){return this.getConsent()}hasConsentForPurpose(e){return this.getConsent()}}var j,_=["tcloaded","useractioncomplete"],D={cookies:{vendors:[943],purposes:[1,7,8,9,10]},personalization:{vendors:[943],purposes:[1,5,6,7,8,9,10]}};class R{constructor(){(0,u.Z)(this,"tcData",void 0),(0,u.Z)(this,"isReady",!1);var e=()=>{this.isReady=!0};this.onReady(e.bind(this)),this.onChange((t=>{this.tcData=t,null!=t&&t.gdprApplies||e()}).bind(this))}isInitiated(){return arguments.length>0&&void 0!==arguments[0]&&!arguments[0]?this.isReady:!!this.tcData}isRealCMP(){return!0}isActive(){var e;return!(null==this||null===(e=this.tcData)||void 0===e||!e.gdprApplies)}hasToPromptForConsent(e){this.addEventListener((t=>{var r,n;"loaded"===t.cmpStatus&&(null===(r=(n=window).__tcfapi)||void 0===r||r.call(n,"ping",2,(t=>{var{displayStatus:r}=t;return e("disabled"!==r)})))}))}hasConsentForVendor(e){var t,r;return!0===(null===(t=this.tcData)||void 0===t||null===(r=t.vendor)||void 0===r?void 0:r.consents[e])}hasConsentForPurpose(e){var t,r;return!0===(null===(t=this.tcData)||void 0===t||null===(r=t.purpose)||void 0===r?void 0:r.consents[e])}matchRequirements(e){return!!e&&!!this.tcData&&e.vendors.every(this.hasConsentForVendor.bind(this))&&e.purposes.every(this.hasConsentForPurpose.bind(this))}onChange(e){this.addEventListener(((t,r)=>{!r||!_.includes(t.eventStatus)&&t.gdprApplies||e(t)}))}onReady(e){this.isInitiated(!1)?e():this.addEventListener((t=>{var r,n,{cmpStatus:i,listenerId:o}=t;"loaded"===i&&(e(),null===(r=(n=window).__tcfapi)||void 0===r||r.call(n,"removeEventListener",2,(()=>{}),o))}))}getConsent(e){return!(!this.tcData||this.tcData.gdprApplies)||this.matchRequirements(D[e])}addEventListener(e){var t,r,n=(t,r)=>{t&&e(t,r)};window.__tcfapi?null===(t=(r=window).__tcfapi)||void 0===t||t.call(r,"addEventListener",2,n):setTimeout((()=>this.addEventListener(n)),100)}}var N=new Uint8Array(16);function M(){if(!j&&!(j="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return j(N)}const L=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;for(var V=[],U=0;U<256;++U)V.push((U+256).toString(16).substr(1));const x=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=(V[e[t+0]]+V[e[t+1]]+V[e[t+2]]+V[e[t+3]]+"-"+V[e[t+4]]+V[e[t+5]]+"-"+V[e[t+6]]+V[e[t+7]]+"-"+V[e[t+8]]+V[e[t+9]]+"-"+V[e[t+10]]+V[e[t+11]]+V[e[t+12]]+V[e[t+13]]+V[e[t+14]]+V[e[t+15]]).toLowerCase();if(!function(e){return"string"==typeof e&&L.test(e)}(r))throw TypeError("Stringified UUID is invalid");return r},F=function(e,t,r){var n=(e=e||{}).random||(e.rng||M)();if(n[6]=15&n[6]|64,n[8]=63&n[8]|128,t){r=r||0;for(var i=0;i<16;++i)t[r+i]=n[i];return t}return x(n)};var q="flagConsentReady",z=function(e){return e[e.CONSENT_ACCEPTED=0]="CONSENT_ACCEPTED",e[e.CONSENT_NON_REJECTED=1]="CONSENT_NON_REJECTED",e[e.CONSENT_PRESENT=2]="CONSENT_PRESENT",e}(z||{}),Z=e=>e.blockOnNoConsent?z.CONSENT_ACCEPTED:e.blockOnReject?z.CONSENT_NON_REJECTED:z.CONSENT_PRESENT;function B(e,t,r,n){return W.apply(this,arguments)}function W(){return(W=(0,l.Z)((function*(e,t,r,n){var i,o="".concat(q,"_").concat(F());return!e.blockOnNoConsent&&void 0===e.manualConsent&&n&&(i=window.setTimeout((()=>r.resolve(o)),n)),t.onReady((()=>{!function(e,t,r,n){var i=()=>!!t.getConsent("cookies")&&(r(),!0),o=()=>{i()||t.onChange(i)};switch(e){case z.CONSENT_ACCEPTED:o();break;case z.CONSENT_NON_REJECTED:o(),t.isInitiated()&&!t.getConsent("cookies")&&window.clearTimeout(n);break;default:r()}}(Z(e),t,(()=>r.resolve(o)),i)})),r.wait(o)}))).apply(this,arguments)}class H{constructor(e){(0,u.Z)(this,"handler",void 0),this.handler=function(e){return void 0!==e.gdpr&&!e.gdpr||!window.__tcfapi&&!window.gdprAppliesGlobally?new A(!e.manualConsent):new R}(e)}isInitiated(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this.handler.isInitiated(e)}isRealCMP(){return this.handler.isRealCMP()}isActive(){return this.handler.isActive()}setCMPLoaded(){this.handler.setCMPLoaded()}setCMPNotApplies(){this.handler.setCMPNotApplies()}onChange(e){this.handler.onChange(e)}onReady(e){this.handler.onReady(e)}getConsent(e){return this.handler.getConsent(e)}setConsentFeatures(e,t){this.handler instanceof A||(this.handler=new A),this.handler.setConsentFeatures(e,t)}setConsent(e,t){this.handler instanceof A||(this.handler=new A),this.handler.setConsent(e,t)}hasToPromptForConsent(e){this.handler.hasToPromptForConsent(e)}hasConsentForVendor(e){return this.handler.hasConsentForVendor(e)}hasConsentForPurpose(e){return this.handler.hasConsentForPurpose(e)}}O("consent",[],(()=>Promise.resolve(H)));var G=e=>{"history"in window&&window.history.replaceState(history.state,"",e)};function J(){return J=(0,l.Z)((function*(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return(i=r.map((e=>e(!0))),o=new Array(i.length),a=0,new Promise(((e,t)=>{i.forEach(((r,n)=>{r.then((t=>{t&&e(t)})).catch((e=>{o[n]=e,(a+=1)===i.length&&t(o)}))}))}))).then((t=>{var r,n=window.top===window.self;t&&n&&(null===(r=document.body)||void 0===r||r.dispatchEvent(new Event("mrf-hud-experiments-cleanup")),(e=>{s.e(374).then(s.bind(s,374)).then((t=>{var{default:r,saveActiveOverlay:n}=t;new r(e),n()}))})(e))})).catch((()=>{}));var i,o,a})),J.apply(this,arguments)}function K(e){return(0,l.Z)((function*(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],r=new URL(window.location.href),n=!!r.searchParams.get(e);if(n&&t)try{G(function(e,t){var r,n=new URL(e.href);return null===(r=n.searchParams)||void 0===r||r.delete(t),n.toString()}(r,e))}catch(e){}return n}))}var $=s(129);function X(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Y(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?X(Object(r),!0).forEach((function(t){(0,u.Z)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):X(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var Q="mrfhud";class ee extends $.c{constructor(e,t,r,n){var i,o,s,a;window.__mrfCompass=Y(Y(Y({data:[],rm:{lazy:!0}},window.__mrfCompass||{}),e),{},{lazy:!0}),super(e,t,r,n),function(e){J.apply(this,arguments)}(this,(a=Q,(0,l.Z)((function*(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=new URL(window.location.href),r=!!t.hash.includes(a);if(r&&e)try{G(function(e,t){var r=new URL(e.href),n=e.hash.split("#").filter((e=>""!==e&&e!==t&&!e.startsWith("".concat(t,"="))));return r.hash=n.length?"#".concat(n.join("#")):"",r.toString()}(t,a))}catch(e){}return r}))),K(Q),K("activate-overlay"),(o="".concat("mrfHudStorage","-").concat(e.accountId),s="".concat("compass-overlay","_").concat(e.accountId),(0,l.Z)((function*(){try{var e=window.localStorage.getItem(o);if(e)return JSON.parse(e).entries[s].active}catch(e){}return!1}))),(i=e.accountId,(0,l.Z)((function*(){return new Promise((e=>{window.addEventListener("message",(t=>{var{data:r}=t;((e,t)=>{return!(998===(r=e)||"998"===r||window.self!==window.top||"compass_chrome_extension"!==(null==t?void 0:t.origin)||"extension:load_overlay"!==(null==t?void 0:t.type));var r})(i,r)&&e(!0)}))}))}))))}}var te=function(e){return e[e.IFRAME=0]="IFRAME",e[e.DEFAULT=1]="DEFAULT",e}({}),re=function(e){return e.CROSS_DOMAIN="CROSS_DOMAIN",e.GET_RFV="GET_RFV",e.GET_TRACKING_DATA="GET_TRACKING_DATA",e}({});function ne(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}var ie=function(){var e=(0,l.Z)((function*(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2e3;return new Promise((r=>{var n,i,o=Math.random().toString(36).replace("0.","mrf-"),s=()=>{window.removeEventListener("message",n),clearTimeout(i)};n=t=>{var{data:n}=t;e===n.type&&o===n.id&&(s(),r(n))},i=setTimeout((()=>{s(),r(null)}),t);try{var a;window.addEventListener("message",n),null===(a=window.top)||void 0===a||a.postMessage({type:e,id:o},"*")}catch(e){s(),r(null)}}))}));return function(t){return e.apply(this,arguments)}}(),oe=(e,t,r)=>{var n;null===(n=e.source)||void 0===n||n.postMessage(function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ne(Object(r),!0).forEach((function(t){(0,u.Z)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ne(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({id:e.data.id,type:t},r),"*")},se=()=>{window.addEventListener("message",(e=>{var t,r,n,i,o,s;if(null!==(t=e.data)&&void 0!==t&&null!==(r=t.id)&&void 0!==r&&null!==(n=r.startsWith)&&void 0!==n&&n.call(r,"mrf-"))switch(e.data.type){case re.CROSS_DOMAIN:var a=null===(i=window)||void 0===i||null===(o=i.marfeel)||void 0===o||null===(s=o.config)||void 0===s?void 0:s.accountId;oe(e,re.CROSS_DOMAIN,{topAccountId:a});break;case re.GET_RFV:window.marfeel.cmd.push(["compass",t=>{t.getRFV((t=>{oe(e,re.GET_RFV,{rfv:t})}))}]);break;case re.GET_TRACKING_DATA:window.marfeel.cmd.push(["compass",function(){var t=(0,l.Z)((function*(t){var r=yield t.getTrackingCommonData();oe(e,re.GET_TRACKING_DATA,{trackingCommonData:r})}));return function(e){return t.apply(this,arguments)}}()]);break;default:return}}))};function ae(){return(ae=(0,l.Z)((function*(){return new Promise((e=>{try{document.prerendering?document.addEventListener("prerenderingchange",(()=>{window.marfeel.cmd.push(["compass",function(e){e.setPageVar("mrfprerendered_tracked","true")}]),e()})):e()}catch(t){e()}}))}))).apply(this,arguments)}var ce=function(){var e=(0,l.Z)((function*(e){for(var t=0;t<3;t++){var r=yield ie(re.CROSS_DOMAIN,200);if(r)return r.topAccountId===e.accountId}return!1}));return function(t){return e.apply(this,arguments)}}(),le=e=>{try{var t,r,n;return(null===(t=window.top)||void 0===t||null===(r=t.marfeel)||void 0===r||null===(n=r.config)||void 0===n?void 0:n.accountId)===e.accountId}catch(e){return!1}},ue=function(){var e=(0,l.Z)((function*(e,t){return!e&&(window.location.hash.includes("amp=1")||le(t)||(yield ce(t)))?te.IFRAME:te.DEFAULT}));return function(t,r){return e.apply(this,arguments)}}();class de{getRFV(e){return(0,l.Z)((function*(){try{var t=yield ie(re.GET_RFV);null!=t&&t.rfv&&e(t.rfv)}catch(e){}}))()}getTrackingCommonData(){return(0,l.Z)((function*(){try{return(yield ie(re.GET_TRACKING_DATA)).trackingCommonData}catch(e){return{}}}))()}}var he=()=>{try{var e=(e=>{var t=window.location.hash;return new URLSearchParams(t.substring(1)).get("mrfCtx")})();if(e)return JSON.parse(atob(e))}catch(e){}return null};class pe{constructor(e){(0,u.Z)(this,"trackingData",void 0);var t=he(),r="sufficient"===t.cc||"CONSENT_STATE"===t.cc;this.trackingData={ac:e,t:t.t,r:t.r,url:t.url,c:t.c,pp:t.dr,lp:t.c,p:null,amp:"true",amp_p:t.pvid,amp_u:t.u,v:.2,ua:window.navigator.userAgent,rs:"",sui:"",ut:0,fv:0,lv:0,useg:[],uvar:[],svar:[],pvar:[],pm:[],uc:r,cc:r?1:0}}getRFV(e){e()}getTrackingCommonData(){var e=this;return(0,l.Z)((function*(){return new Promise((t=>t(e.trackingData)))}))()}}class fe{getRFV(e){var t,r;null===(t=window)||void 0===t||null===(r=t.top)||void 0===r||r.marfeel.cmd.push(["compass",function(){var t=(0,l.Z)((function*(t){t.getRFV(e)}));return function(e){return t.apply(this,arguments)}}()])}getTrackingCommonData(){return(0,l.Z)((function*(){return new Promise((e=>{var t,r;null===(t=window)||void 0===t||null===(r=t.top)||void 0===r||r.marfeel.cmd.push(["compass",function(){var t=(0,l.Z)((function*(t){return e(yield t.getTrackingCommonData())}));return function(e){return t.apply(this,arguments)}}()])}))}))()}}function me(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function ge(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?me(Object(r),!0).forEach((function(t){(0,u.Z)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):me(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}class ve extends $.c{constructor(e,t,r,n){window.__mrfCompass=ge(ge(ge({data:[]},window.__mrfCompass||{}),e),{},{hasCdp:!1}),super(e,t,r,n),(0,u.Z)(this,"synchronizer",void 0),(0,u.Z)(this,"accountId",void 0),(0,u.Z)(this,"solver",void 0),this.synchronizer=r,this.accountId=e.accountId,this.solver=this.getIframeSolver(e),window.addEventListener("hashchange",(()=>{he()&&(this.solver=new pe(this.accountId))}))}getIframeSolver(e){return he()?new pe(this.accountId):le(e)?new fe:new de}initialize(){this.synchronizer.resolve("pageInitialized")}postSetup(){}getEndpointDomain(){return"https://events.newsroom.bi"}getRFV(e){this.solver.getRFV(e)}getTrackingCommonData(){var e=this;return(0,l.Z)((function*(){return e.solver.getTrackingCommonData()}))()}}class ye{constructor(e,t){(0,u.Z)(this,"compass",void 0),this.compass=t}getMeterSnapshot(){return this.compass.getMeterSnapshot()}get(e){var t=this;return(0,l.Z)((function*(){var{meters:r}=yield t.compass.getMeterSnapshot();return r.find((t=>t.name===e))||null}))()}list(){var e=this;return(0,l.Z)((function*(){var{meters:t}=yield e.compass.getMeterSnapshot();return t}))()}increment(e){return this.compass.incrementMeter(e)}}O("compass",["consent","synchronizer","events"],function(){var e=(0,l.Z)((function*(e,t){var r=window===window.top,[n,i]=t;return yield function(){return ae.apply(this,arguments)}(),r&&se(),yield B(e,n,i,1e3),(yield ue(r,e))===te.IFRAME?Promise.resolve(ve):Promise.resolve(ee)}));return function(t,r){return e.apply(this,arguments)}}(),((e,t)=>{e.lazy||t.trackNewPage()})),O("meter",["compass"],(0,l.Z)((function*(){return ye})));var be=function(e){return e.PAYWALL="paywall",e.OPEN="open",e}({});function we(){return(we=(0,l.Z)((function*(e){try{var{probability:t}=yield e.predict();return{action:{type:t>.00413?be.PAYWALL:be.OPEN}}}catch(e){return{action:{type:be.OPEN}}}}))).apply(this,arguments)}class ke{constructor(e,t){(0,u.Z)(this,"compassSDK",void 0),this.compassSDK=t}nextAction(){var e=this;return(0,l.Z)((function*(){return function(e){return we.apply(this,arguments)}(e.compassSDK)}))()}}function Oe(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Ce(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Oe(Object(r),!0).forEach((function(t){(0,u.Z)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Oe(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}O("nba",["compass"],(()=>Promise.resolve(ke))),s(289),O("multimedia",["compass","consent","synchronizer"],function(){var e=(0,l.Z)((function*(e,t){var[r,n,i]=t,o=(Array.isArray(e.multimedia)?e.multimedia:[e.multimedia]).reduce(((e,t)=>{var r;return e.concat(null!==(r=null==t?void 0:t.providers)&&void 0!==r?r:[])}),[]),a=-1!==o.indexOf("youtube")||!!e.blockOnNoConsent;return yield B(Ce(Ce({},e),{},{blockOnNoConsent:a}),n,i),e.multimedia&&function(){try{document.querySelector("div:not([data-a], [data-b]), div:has(span)")}catch(e){return!1}return!0}()?s.e(94).then(s.bind(s,179)).then((e=>e.default)):Promise.reject()}));return function(t,r){return e.apply(this,arguments)}}());class Se{constructor(){(0,u.Z)(this,"promises",void 0),this.promises={}}wait(e){var t,r;null!==(r=(t=this.promises)[e])&&void 0!==r||(t[e]={});var n=this.promises[e].promise;return void 0===n?(n=new Promise(((t,r)=>{this.promises[e].resolve=t,this.promises[e].reject=r})),this.promises[e].promise=n,n):n}resolve(e,t){var r,n;null!==(n=(r=this.promises)[e])&&void 0!==n||(r[e]={}),void 0===this.promises[e].resolve?this.promises[e].promise=Promise.resolve(t):(0,this.promises[e].resolve)(t)}reject(e,t){var r,n;null!==(n=(r=this.promises)[e])&&void 0!==n||(r[e]={}),void 0===this.promises[e].reject?this.promises[e].promise=Promise.reject(t):(0,this.promises[e].reject)(t)}}O("synchronizer",[],(()=>Promise.resolve(Se)));var Ee=()=>({emit(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];for(var i=0,o=this.events[e]||[],s=o.length;i<s;i++)o[i](...r)},events:{},on(e,t){var r;return((r=this.events)[e]||(r[e]=[])).push(t),()=>{var r;this.events[e]=null===(r=this.events[e])||void 0===r?void 0:r.filter((e=>t!==e))}}});function Pe(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Te(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Pe(Object(r),!0).forEach((function(t){(0,u.Z)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Pe(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var Ie={elegible:"eligible",impression:"impression",click:"click"};class Ae{constructor(){(0,u.Z)(this,"emitter",void 0),this.emitter=Ee()}on(e,t){this.emitter.on(e,(e=>{"click"===e.t?null==t||t(e):setTimeout((()=>{null==t||t(e)}),0)}))}emitRecirculation(e){var t=function(e){return{t:Ie[e.t],m:e.m}}(e),r=function(e){return e.m.reduce(((t,r)=>{var n=r.n;if(n.startsWith("FC_")||n.startsWith("IL_")){var i,o=n.startsWith("IL_")?"inline":"flowcards";return Te(Te({},t),{},{["recirculation:".concat(o)]:{t:e.t,m:[...(null===(i=t["recirculation:".concat(o)])||void 0===i?void 0:i.m)||[],r]},["recirculation:".concat(n)]:{t:e.t,m:[r]}})}return Te(Te({},t),{},{["recirculation:".concat(n)]:{t:e.t,m:[r]}})}),{})}(t);this.emitter.emit("recirculation",t),Object.keys(r).forEach((e=>{this.emitter.emit(e,r[e])}))}}O("events",[],(()=>Promise.resolve(Ae)));var je=new Map;class _e{load(e,t){return function(e){var{module:t,async:r=!1,id:n,target:i="head"}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=je.get(e);if(o)return o;var s=new Promise(((o,s)=>{var a=document.createElement("script");a.src=e,n&&(a.id=n),!0===t?a.type="module":!1===t&&(a.setAttribute("nomodule",""),a.setAttribute("defer","")),r&&(a.async=!0),a.addEventListener("load",(()=>o())),a.addEventListener("error",(()=>{je.delete(e),s(new Error("Failed to load ".concat(e)))})),("body"===i?document.body:document.head).appendChild(a)}));return je.set(e,s),s}(e,t)}}O("scriptLoader",[],(()=>Promise.resolve(_e)));var De="auto"!==s.p?s.p.replace(/\/$/,""):"https://sdk.mrf.io/statics",Re={ecommerce:{srcModule:"".concat(De,"/compass-ecommerce-sdk.js"),srcNoModule:"".concat(De,"/compass-ecommerce-sdk.es5.js"),dependencies:["compass"]},multimedia:{srcModule:"".concat(De,"/compass-multimedia-sdk.js"),srcNoModule:"".concat(De,"/compass-multimedia-sdk.es5.js"),dependencies:["compass"]}},Ne=e=>"".concat(e,"?version=2325");class Me{constructor(e,t){(0,u.Z)(this,"scriptLoader",void 0),this.scriptLoader=t}load(e,t){var r=Re[e];t&&function(){k.addConfig(...arguments)}(t),this.scriptLoader.load(Ne(r.srcModule),{module:!0,id:e}),this.scriptLoader.load(Ne(r.srcNoModule),{module:!1,id:e})}loadFile(e,t,r){this.scriptLoader.load(e,{module:r,id:t})}}O("loader",["scriptLoader"],(()=>Promise.resolve(Me)))})();