!function(){"use strict";var e=function(){return e=Object.assign||function(e){for(var t,n=1,s=arguments.length;n0&&r[r.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!r||i[1]>r[0]&&i[1]t)throw new TypeError;for(var s=Math.floor(Math.random()*(t+1-e))+e,r="",i=0;i2&&"string"==typeof e[2]&&e[2].length>0?e[2]:null)+"-disqus"}}catch(e){t=r.location.hostname}return 0===t.indexOf("www.")&&(t=t.replace("www.","")),t}(),b=!1,0!==Object.keys(O).length)return[3,5];(S=new URL("https://"+E+"/websiteconfig")).searchParams.set("bt_env",T.bt_env||"prod"),S.searchParams.set("o",w),S.searchParams.set("w",m),n.label=1;case 1:return n.trys.push([1,4,,5]),[4,fetch(S.toString())];case 2:if(!(L=n.sent()).ok)throw new Error;return[4,L.json()];case 3:return C=n.sent(),t.websiteID=C.tagData.w,t.contentEnabled=C.tagData.ce,t.mobileContentEnabled=C.tagData.me,t.widget=null!==(e=C.tagData.widget)&&void 0!==e&&e,[2,{siteInfo:t,bundleData:C.bundleData,rlSettings:C.messageWall,checksum:C.checksum}];case 4:return n.sent(),[3,5];case 5:return m&&m in O?(D=O[m],t.websiteID=null!==(s=D.w)&&void 0!==s?s:D.website_id,t.contentEnabled=null!==(i=D.ce)&&void 0!==i?i:D.content_enabled,t.mobileContentEnabled=null!==(o=D.me)&&void 0!==o?o:D.mobile_content_enabled,t.widget=null!==(c=D.widget)&&void 0!==c&&c,b=!0):(A=Object.keys(O).reduce((function(e,t){var n=t.toLowerCase(),s=m.indexOf(n)>-1?m.indexOf(n):r.location.hostname.indexOf(n);return s>-1&&(!e||se.site.length)?{site:t,indexInHostname:s}:e}),null))&&(b=!0,D=O[A.site],t.websiteID=null!==(l=D.w)&&void 0!==l?l:D.website_id,t.contentEnabled=null!==(u=D.ce)&&void 0!==u?u:D.content_enabled,t.mobileContentEnabled=null!==(d=D.me)&&void 0!==d?d:D.mobile_content_enabled,t.widget=null!==(g=D.widget)&&void 0!==g&&g),b?(R=function(e){var t;return(null===(t=null==I?void 0:I.websites)||void 0===t?void 0:t[e])||(null==I?void 0:I.org)}(t.websiteID),[2,{siteInfo:t,rlSettings:R}]):(p(1)&&(P={domain:m,orgID:parseInt(w)},function(e,t){new Promise((function(n,s){var r=new window.XMLHttpRequest;r.open("POST",e,!0),r.onerror=function(){s("Error in get request")},r.onload=function(){n(r.responseText)},r.send(t)}))}("https://"+y+"/events/unknown_domains?upapi=true&tid="+encodeURIComponent(N.traceID)+"&cv="+encodeURIComponent(_),f(P))),[2,{siteInfo:t}])}}))}))}();function j(){return M}M.then((function(e){window.__bt_tag_d={orgID:w,domain:E,siteInfo:e.siteInfo,apiDomain:y,version:_,websitesData:O}}));class H extends Error{constructor(e){super(e),this.name="DecodingError"}}class G extends Error{constructor(e){super(e),this.name="EncodingError"}}class W extends Error{constructor(e){super(e),this.name="GVLError"}}class K extends Error{constructor(e,t){super(`invalid value ${t} passed for ${e} ${arguments.length>2&&void 0!==arguments[2]?arguments[2]:""}`),this.name="TCModelError"}}class z{static DICT="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_";static REVERSE_DICT=new Map([["A",0],["B",1],["C",2],["D",3],["E",4],["F",5],["G",6],["H",7],["I",8],["J",9],["K",10],["L",11],["M",12],["N",13],["O",14],["P",15],["Q",16],["R",17],["S",18],["T",19],["U",20],["V",21],["W",22],["X",23],["Y",24],["Z",25],["a",26],["b",27],["c",28],["d",29],["e",30],["f",31],["g",32],["h",33],["i",34],["j",35],["k",36],["l",37],["m",38],["n",39],["o",40],["p",41],["q",42],["r",43],["s",44],["t",45],["u",46],["v",47],["w",48],["x",49],["y",50],["z",51],["0",52],["1",53],["2",54],["3",55],["4",56],["5",57],["6",58],["7",59],["8",60],["9",61],["-",62],["_",63]]);static BASIS=6;static LCM=24;static encode(e){if(!/^[0-1]+$/.test(e))throw new G("Invalid bitField");const t=e.length%this.LCM;e+=t?"0".repeat(this.LCM-t):"";let n="";for(let t=0;t{const n=this.deepClone(this[t]);void 0!==n&&(e[t]=n)})),e}deepClone(e){const t=typeof e;if("number"===t||"string"===t||"boolean"===t)return e;if(null!==e&&"object"===t){if("function"==typeof e.clone)return e.clone();if(e instanceof Date)return new Date(e.getTime());if(void 0!==e[Symbol.iterator]){const t=[];for(const n of e)t.push(this.deepClone(n));return e instanceof Array?t:new e.constructor(t)}{const t={};for(const n in e)e.hasOwnProperty(n)&&(t[n]=this.deepClone(e[n]));return t}}}}class q extends X{root=null;getRoot(){return this.root}isEmpty(){return!this.root}add(e){const t={value:e,left:null,right:null};let n;if(this.isEmpty())this.root=t;else for(n=this.root;;)if(en.value))break;if(null===n.right){n.right=t;break}n=n.right}}get(){const e=[];let t=this.root;for(;t;)if(t.left){let n=t.left;for(;n.right&&n.right!=t;)n=n.right;n.right==t?(n.right=null,e.push(t.value),t=t.right):(n.right=t,t=t.left)}else e.push(t.value),t=t.right;return e}contains(e){let t=!1,n=this.root;for(;n;){if(n.value===e){t=!0;break}e>n.value?n=n.right:e0&&void 0!==arguments[0]?arguments[0]:this.root;for(;t;)t.left?t=t.left:(e=t.value,t=null);return e}max(){let e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.root;for(;t;)t.right?t=t.right:(e=t.value,t=null);return e}remove(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.root,n=null,s="left";for(;t;)if(et.value)n=t,t=t.right,s="right";else{if(t.left||t.right)if(t.left)if(t.right){const e=this.min(t.right);this.remove(e,t.right),t.value=e}else n?n[s]=t.left:this.root=t.left;else n?n[s]=t.right:this.root=t.right;else n?n[s]=null:this.root=null;t=null}}static build(e){if(e&&0!==e.length){if(1===e.length){const t=new q;return t.add(e[0]),t}{const t=e.length>>1,n=new q;n.add(e[t]);const s=n.getRoot();if(s){if(t+10){const n=q.build(e.slice(0,t-1));s.left=n?n.getRoot():null}}return n}}return null}}class ${static langSet=new Set(["BG","CA","CS","DA","DE","EL","EN","ES","ET","FI","FR","HR","HU","IT","JA","LT","LV","MT","NL","NO","PL","PT","RO","RU","SK","SL","SV","TR","ZH"]);has(e){return $.langSet.has(e)}forEach(e){$.langSet.forEach(e)}get size(){return $.langSet.size}}class J{static cmpId="cmpId";static cmpVersion="cmpVersion";static consentLanguage="consentLanguage";static consentScreen="consentScreen";static created="created";static supportOOB="supportOOB";static isServiceSpecific="isServiceSpecific";static lastUpdated="lastUpdated";static numCustomPurposes="numCustomPurposes";static policyVersion="policyVersion";static publisherCountryCode="publisherCountryCode";static publisherCustomConsents="publisherCustomConsents";static publisherCustomLegitimateInterests="publisherCustomLegitimateInterests";static publisherLegitimateInterests="publisherLegitimateInterests";static publisherConsents="publisherConsents";static publisherRestrictions="publisherRestrictions";static purposeConsents="purposeConsents";static purposeLegitimateInterests="purposeLegitimateInterests";static purposeOneTreatment="purposeOneTreatment";static specialFeatureOptins="specialFeatureOptins";static useNonStandardStacks="useNonStandardStacks";static vendorConsents="vendorConsents";static vendorLegitimateInterests="vendorLegitimateInterests";static vendorListVersion="vendorListVersion";static vendorsAllowed="vendorsAllowed";static vendorsDisclosed="vendorsDisclosed";static version="version"}!function(e){e[e.NOT_ALLOWED=0]="NOT_ALLOWED",e[e.REQUIRE_CONSENT=1]="REQUIRE_CONSENT",e[e.REQUIRE_LI=2]="REQUIRE_LI"}(x||(x={}));class Q extends X{static hashSeparator="-";purposeId_;restrictionType;constructor(e,t){super(),void 0!==e&&(this.purposeId=e),void 0!==t&&(this.restrictionType=t)}static unHash(e){const t=e.split(this.hashSeparator),n=new Q;if(2!==t.length)throw new K("hash",e);return n.purposeId=parseInt(t[0],10),n.restrictionType=parseInt(t[1],10),n}get hash(){if(!this.isValid())throw new Error("cannot hash invalid PurposeRestriction");return`${this.purposeId}${Q.hashSeparator}${this.restrictionType}`}get purposeId(){return this.purposeId_}set purposeId(e){this.purposeId_=e}isValid(){return Number.isInteger(this.purposeId)&&this.purposeId>0&&(this.restrictionType===x.NOT_ALLOWED||this.restrictionType===x.REQUIRE_CONSENT||this.restrictionType===x.REQUIRE_LI)}isSameAs(e){return this.purposeId===e.purposeId&&this.restrictionType===e.restrictionType}}class Y extends X{bitLength=0;map=new Map;gvl_;has(e){return this.map.has(e)}isOkToHave(e,t,n){let s=!0;if(this.gvl?.vendors){const r=this.gvl.vendors[n];if(r)if(e===x.NOT_ALLOWED)s=r.legIntPurposes.includes(t)||r.purposes.includes(t);else if(r.flexiblePurposes.length)switch(e){case x.REQUIRE_CONSENT:s=r.flexiblePurposes.includes(t)&&r.legIntPurposes.includes(t);break;case x.REQUIRE_LI:s=r.flexiblePurposes.includes(t)&&r.purposes.includes(t)}else s=!1;else s=!1}return s}add(e,t){if(this.isOkToHave(t.restrictionType,t.purposeId,e)){const n=t.hash;this.has(n)||(this.map.set(n,new q),this.bitLength=0),this.map.get(n).add(e)}}restrictPurposeToLegalBasis(e){const t=this.gvl.vendorIds,n=e.hash,s=function(){let e;for(e of t);return e}(),r=[...Array(s).keys()].map((e=>e+1));for(let e=1;e<=s;e++)this.has(n)||(this.map.set(n,q.build(r)),this.bitLength=0),this.map.get(n).add(e)}getVendors(e){let t=[];if(e){const n=e.hash;this.has(n)&&(t=this.map.get(n).get())}else{const e=new Set;this.map.forEach((t=>{t.get().forEach((t=>{e.add(t)}))})),t=Array.from(e)}return t}getRestrictionType(e,t){let n;return this.getRestrictions(e).forEach((e=>{e.purposeId===t&&(void 0===n||n>e.restrictionType)&&(n=e.restrictionType)})),n}vendorHasRestriction(e,t){let n=!1;const s=this.getRestrictions(e);for(let e=0;e{e=Math.max(t.max(),e)})),e}getRestrictions(e){const t=[];return this.map.forEach(((n,s)=>{e?n.contains(e)&&t.push(Q.unHash(s)):t.push(Q.unHash(s))})),t}getPurposes(){const e=new Set;return this.map.forEach(((t,n)=>{e.add(Q.unHash(n).purposeId)})),Array.from(e)}remove(e,t){const n=t.hash,s=this.map.get(n);s&&(s.remove(e),s.isEmpty()&&(this.map.delete(n),this.bitLength=0))}set gvl(e){this.gvl_||(this.gvl_=e,this.map.forEach(((e,t)=>{const n=Q.unHash(t);e.get().forEach((t=>{this.isOkToHave(n.restrictionType,n.purposeId,t)||e.remove(t)}))})))}get gvl(){return this.gvl_}isEmpty(){return 0===this.map.size}get numRestrictions(){return this.map.size}}!function(e){e.COOKIE="cookie",e.WEB="web",e.APP="app"}(k||(k={})),function(e){e.CORE="core",e.VENDORS_DISCLOSED="vendorsDisclosed",e.VENDORS_ALLOWED="vendorsAllowed",e.PUBLISHER_TC="publisherTC"}(U||(U={}));class Z{static ID_TO_KEY=[U.CORE,U.VENDORS_DISCLOSED,U.VENDORS_ALLOWED,U.PUBLISHER_TC];static KEY_TO_ID={[U.CORE]:0,[U.VENDORS_DISCLOSED]:1,[U.VENDORS_ALLOWED]:2,[U.PUBLISHER_TC]:3}}class ee extends X{bitLength=0;maxId_=0;set_=new Set;*[Symbol.iterator](){for(let e=1;e<=this.maxId;e++)yield[e,this.has(e)]}values(){return this.set_.values()}get maxId(){return this.maxId_}has(e){return this.set_.has(e)}unset(e){Array.isArray(e)?e.forEach((e=>this.unset(e))):"object"==typeof e?this.unset(Object.keys(e).map((e=>Number(e)))):(this.set_.delete(Number(e)),this.bitLength=0,e===this.maxId&&(this.maxId_=0,this.set_.forEach((e=>{this.maxId_=Math.max(this.maxId,e)}))))}isIntMap(e){let t="object"==typeof e;return t=t&&Object.keys(e).every((t=>{let n=Number.isInteger(parseInt(t,10));return n=n&&this.isValidNumber(e[t].id),n=n&&void 0!==e[t].name,n})),t}isValidNumber(e){return parseInt(e,10)>0}isSet(e){let t=!1;return e instanceof Set&&(t=Array.from(e).every(this.isValidNumber)),t}set(e){if(Array.isArray(e))e.forEach((e=>this.set(e)));else if(this.isSet(e))this.set(Array.from(e));else if(this.isIntMap(e))this.set(Object.keys(e).map((e=>Number(e))));else{if(!this.isValidNumber(e))throw new K("set()",e,"must be positive integer array, positive integer, Set, or IntMap");this.set_.add(e),this.maxId_=Math.max(this.maxId,e),this.bitLength=0}}empty(){this.set_=new Set}forEach(e){for(let t=1;t<=this.maxId;t++)e(this.has(t),t)}get size(){return this.set_.size}setAll(e){this.set(e)}}class te{static[J.cmpId]=12;static[J.cmpVersion]=12;static[J.consentLanguage]=12;static[J.consentScreen]=6;static[J.created]=36;static[J.isServiceSpecific]=1;static[J.lastUpdated]=36;static[J.policyVersion]=6;static[J.publisherCountryCode]=12;static[J.publisherLegitimateInterests]=24;static[J.publisherConsents]=24;static[J.purposeConsents]=24;static[J.purposeLegitimateInterests]=24;static[J.purposeOneTreatment]=1;static[J.specialFeatureOptins]=12;static[J.useNonStandardStacks]=1;static[J.vendorListVersion]=12;static[J.version]=6;static anyBoolean=1;static encodingType=1;static maxId=16;static numCustomPurposes=6;static numEntries=12;static numRestrictions=12;static purposeId=6;static restrictionType=2;static segmentType=3;static singleOrRange=1;static vendorId=16}class ne{static encode(e){return String(Number(e))}static decode(e){return"1"===e}}class se{static encode(e,t){let n;if("string"==typeof e&&(e=parseInt(e,10)),n=e.toString(2),n.length>t||e<0)throw new G(`${e} too large to encode into ${t}`);return n.length25||s<0||s>25)throw new G(`invalid language code: ${e}`);if(t%2==1)throw new G(`numBits must be even, ${t} is not valid`);t/=2;return se.encode(n,t)+se.encode(s,t)}static decode(e,t){let n;if(t!==e.length||e.length%2)throw new H("invalid bit length for language");{const t=65,s=e.length/2,r=se.decode(e.slice(0,s),s)+t,i=se.decode(e.slice(s),s)+t;n=String.fromCharCode(r)+String.fromCharCode(i)}return n}}class ae{static encode(e){let t=se.encode(e.numRestrictions,te.numRestrictions);return e.isEmpty()||e.getRestrictions().forEach((n=>{t+=se.encode(n.purposeId,te.purposeId),t+=se.encode(n.restrictionType,te.restrictionType);const s=e.getVendors(n),r=s.length;let i=0,o=0,a="";for(let t=0;t{for(;++e<=c&&!l.has(e););return e};if(t===r-1||s[t+1]>u(n)){const e=!(n===o);a+=ne.encode(e),a+=se.encode(o,te.vendorId),e&&(a+=se.encode(n,te.vendorId)),o=0}}t+=se.encode(i,te.numEntries),t+=a})),t}static decode(e){let t=0;const n=new Y,s=se.decode(e.substr(t,te.numRestrictions),te.numRestrictions);t+=te.numRestrictions;for(let r=0;r{if(i+=ne.encode(r),n=e.maxId>c&&l{const t=1===e.length;n+=ne.encode(!t),n+=se.encode(e[0],te.vendorId),t||(n+=se.encode(e[1],te.vendorId))})),n}}function le(){return{[J.version]:se,[J.created]:re,[J.lastUpdated]:re,[J.cmpId]:se,[J.cmpVersion]:se,[J.consentScreen]:se,[J.consentLanguage]:oe,[J.vendorListVersion]:se,[J.policyVersion]:se,[J.isServiceSpecific]:ne,[J.useNonStandardStacks]:ne,[J.specialFeatureOptins]:ie,[J.purposeConsents]:ie,[J.purposeLegitimateInterests]:ie,[J.purposeOneTreatment]:ne,[J.publisherCountryCode]:oe,[J.vendorConsents]:ce,[J.vendorLegitimateInterests]:ce,[J.publisherRestrictions]:ae,segmentType:se,[J.vendorsDisclosed]:ce,[J.vendorsAllowed]:ce,[J.publisherConsents]:ie,[J.publisherLegitimateInterests]:ie,[J.numCustomPurposes]:se,[J.publisherCustomConsents]:ie,[J.publisherCustomLegitimateInterests]:ie}}class ue{1={[U.CORE]:[J.version,J.created,J.lastUpdated,J.cmpId,J.cmpVersion,J.consentScreen,J.consentLanguage,J.vendorListVersion,J.purposeConsents,J.vendorConsents]};2={[U.CORE]:[J.version,J.created,J.lastUpdated,J.cmpId,J.cmpVersion,J.consentScreen,J.consentLanguage,J.vendorListVersion,J.policyVersion,J.isServiceSpecific,J.useNonStandardStacks,J.specialFeatureOptins,J.purposeConsents,J.purposeLegitimateInterests,J.purposeOneTreatment,J.publisherCountryCode,J.vendorConsents,J.vendorLegitimateInterests,J.publisherRestrictions],[U.PUBLISHER_TC]:[J.publisherConsents,J.publisherLegitimateInterests,J.numCustomPurposes,J.publisherCustomConsents,J.publisherCustomLegitimateInterests],[U.VENDORS_ALLOWED]:[J.vendorsAllowed],[U.VENDORS_DISCLOSED]:[J.vendorsDisclosed]}}class de{1=[U.CORE];2=[U.CORE];constructor(e,t){if(2===e.version)if(e.isServiceSpecific)this[2].push(U.PUBLISHER_TC);else{const n=!(!t||!t.isForVendors);n&&!0!==e[J.supportOOB]||this[2].push(U.VENDORS_DISCLOSED),n&&(e[J.supportOOB]&&e[J.vendorsAllowed].size>0&&this[2].push(U.VENDORS_ALLOWED),this[2].push(U.PUBLISHER_TC))}}}class pe{static fieldSequence=new ue;static encode(e,t){let n;try{n=this.fieldSequence[String(e.version)][t]}catch(n){throw new G(`Unable to encode version: ${e.version}, segment: ${t}`)}let s="";t!==U.CORE&&(s=se.encode(Z.KEY_TO_ID[t],te.segmentType));const r=le();return n.forEach((n=>{const i=e[n],o=r[n];let a=te[n];void 0===a&&this.isPublisherCustom(n)&&(a=Number(e[J.numCustomPurposes]));try{s+=o.encode(i,a)}catch(e){throw new G(`Error encoding ${t}->${n}: ${e.message}`)}})),z.encode(s)}static decode(e,t,n){const s=z.decode(e);let r=0;n===U.CORE&&(t.version=se.decode(s.substr(r,te[J.version]),te[J.version])),n!==U.CORE&&(r+=te.segmentType);const i=this.fieldSequence[String(t.version)][n],o=le();return i.forEach((e=>{const n=o[e];let i=te[e];if(void 0===i&&this.isPublisherCustom(e)&&(i=Number(t[J.numCustomPurposes])),0!==i){const o=s.substr(r,i);if(t[e]=n===ce?n.decode(o,t.version):n.decode(o,i),Number.isInteger(i))r+=i;else{if(!Number.isInteger(t[e].bitLength))throw new H(e);r+=t[e].bitLength}}})),t}static isPublisherCustom(e){return 0===e.indexOf("publisherCustom")}}class he{static processor=[e=>e,(e,t)=>{e.publisherRestrictions.gvl=t,e.purposeLegitimateInterests.unset(1);const n=new Map;return n.set("legIntPurposes",e.vendorLegitimateInterests),n.set("purposes",e.vendorConsents),n.forEach(((n,s)=>{n.forEach(((r,i)=>{if(r){const r=t.vendors[i];if(!r||r.deletedDate)n.unset(i);else if(0===r[s].length)if("legIntPurposes"===s&&0===r.purposes.length&&0===r.legIntPurposes.length&&r.specialPurposes.length>0);else if(e.isServiceSpecific)if(0===r.flexiblePurposes.length)n.unset(i);else{const t=e.publisherRestrictions.getRestrictions(i);let r=!1;for(let e=0,n=t.length;e0&&t?.version<=this.processor.length?e.version=t.version:e.version=this.processor.length;const s=e.version-1;if(!this.processor[s])throw new G(`Invalid version: ${e.version}`);return this.processor[s](e,n)}}class fe{static absCall(e,t,n,s){return new Promise(((r,i)=>{const o=new XMLHttpRequest;o.withCredentials=n,o.addEventListener("load",(()=>{if(o.readyState==XMLHttpRequest.DONE)if(o.status>=200&&o.status<300){let e=o.response;if("string"==typeof e)try{e=JSON.parse(e)}catch(e){}r(e)}else i(new Error(`HTTP Status: ${o.status} response type: ${o.responseType}`))})),o.addEventListener("error",(()=>{i(new Error("error"))})),o.addEventListener("abort",(()=>{i(new Error("aborted"))})),null===t?o.open("GET",e,!0):o.open("POST",e,!0),o.responseType="json",o.timeout=s,o.ontimeout=()=>{i(new Error("Timeout "+s+"ms "+e))},o.send(t)}))}static post(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;return this.absCall(e,JSON.stringify(t),n,s)}static fetch(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return this.absCall(e,null,t,n)}}class ge extends X{static LANGUAGE_CACHE=new Map;static CACHE=new Map;static LATEST_CACHE_KEY=0;static DEFAULT_LANGUAGE="EN";static consentLanguages=new $;static baseUrl_;static set baseUrl(e){if(/^https?:\/\/vendorlist\.consensu\.org\//.test(e))throw new W("Invalid baseUrl! You may not pull directly from vendorlist.consensu.org and must provide your own cache");e.length>0&&"/"!==e[e.length-1]&&(e+="/"),this.baseUrl_=e}static get baseUrl(){return this.baseUrl_}static latestFilename="vendor-list.json";static versionedFilename="archives/vendor-list-v[VERSION].json";static languageFilename="purposes-[LANG].json";readyPromise;gvlSpecificationVersion;vendorListVersion;tcfPolicyVersion;lastUpdated;purposes;specialPurposes;features;specialFeatures;isReady_=!1;vendors_;vendorIds;fullVendorList;byPurposeVendorMap;bySpecialPurposeVendorMap;byFeatureVendorMap;bySpecialFeatureVendorMap;stacks;lang_;isLatest=!1;constructor(e){super();let t=ge.baseUrl;if(this.lang_=ge.DEFAULT_LANGUAGE,this.isVendorList(e))this.populate(e),this.readyPromise=Promise.resolve();else{if(!t)throw new W("must specify GVL.baseUrl before loading GVL json");if(e>0){const n=e;ge.CACHE.has(n)?(this.populate(ge.CACHE.get(n)),this.readyPromise=Promise.resolve()):(t+=ge.versionedFilename.replace("[VERSION]",String(n)),this.readyPromise=this.fetchJson(t))}else ge.CACHE.has(ge.LATEST_CACHE_KEY)?(this.populate(ge.CACHE.get(ge.LATEST_CACHE_KEY)),this.readyPromise=Promise.resolve()):(this.isLatest=!0,this.readyPromise=this.fetchJson(t+ge.latestFilename))}}static emptyLanguageCache(e){let t=!1;return void 0===e&&ge.LANGUAGE_CACHE.size>0?(ge.LANGUAGE_CACHE=new Map,t=!0):"string"==typeof e&&this.consentLanguages.has(e.toUpperCase())&&(ge.LANGUAGE_CACHE.delete(e.toUpperCase()),t=!0),t}static emptyCache(e){let t=!1;return Number.isInteger(e)&&e>=0?(ge.CACHE.delete(e),t=!0):void 0===e&&(ge.CACHE=new Map,t=!0),t}cacheLanguage(){ge.LANGUAGE_CACHE.has(this.lang_)||ge.LANGUAGE_CACHE.set(this.lang_,{purposes:this.purposes,specialPurposes:this.specialPurposes,features:this.features,specialFeatures:this.specialFeatures,stacks:this.stacks})}async fetchJson(e){try{this.populate(await fe.fetch(e))}catch(e){throw new W(e.message)}}getJson(){return JSON.parse(JSON.stringify({gvlSpecificationVersion:this.gvlSpecificationVersion,vendorListVersion:this.vendorListVersion,tcfPolicyVersion:this.tcfPolicyVersion,lastUpdated:this.lastUpdated,purposes:this.purposes,specialPurposes:this.specialPurposes,features:this.features,specialFeatures:this.specialFeatures,stacks:this.stacks,vendors:this.fullVendorList}))}async changeLanguage(e){const t=e.toUpperCase();if(!ge.consentLanguages.has(t))throw new W(`unsupported language ${e}`);if(t!==this.lang_)if(this.lang_=t,ge.LANGUAGE_CACHE.has(t)){const e=ge.LANGUAGE_CACHE.get(t);for(const t in e)e.hasOwnProperty(t)&&(this[t]=e[t])}else{const t=ge.baseUrl+ge.languageFilename.replace("[LANG]",e);try{await this.fetchJson(t),this.cacheLanguage()}catch(e){throw new W("unable to load language: "+e.message)}}}get language(){return this.lang_}isVendorList(e){return void 0!==e&&void 0!==e.vendors}populate(e){this.purposes=e.purposes,this.specialPurposes=e.specialPurposes,this.features=e.features,this.specialFeatures=e.specialFeatures,this.stacks=e.stacks,this.isVendorList(e)&&(this.gvlSpecificationVersion=e.gvlSpecificationVersion,this.tcfPolicyVersion=e.tcfPolicyVersion,this.vendorListVersion=e.vendorListVersion,this.lastUpdated=e.lastUpdated,"string"==typeof this.lastUpdated&&(this.lastUpdated=new Date(this.lastUpdated)),this.vendors_=e.vendors,this.fullVendorList=e.vendors,this.mapVendors(),this.isReady_=!0,this.isLatest&&ge.CACHE.set(ge.LATEST_CACHE_KEY,this.getJson()),ge.CACHE.has(this.vendorListVersion)||ge.CACHE.set(this.vendorListVersion,this.getJson())),this.cacheLanguage()}mapVendors(e){this.byPurposeVendorMap={},this.bySpecialPurposeVendorMap={},this.byFeatureVendorMap={},this.bySpecialFeatureVendorMap={},Object.keys(this.purposes).forEach((e=>{this.byPurposeVendorMap[e]={legInt:new Set,consent:new Set,flexible:new Set}})),Object.keys(this.specialPurposes).forEach((e=>{this.bySpecialPurposeVendorMap[e]=new Set})),Object.keys(this.features).forEach((e=>{this.byFeatureVendorMap[e]=new Set})),Object.keys(this.specialFeatures).forEach((e=>{this.bySpecialFeatureVendorMap[e]=new Set})),Array.isArray(e)||(e=Object.keys(this.fullVendorList).map((e=>+e))),this.vendorIds=new Set(e),this.vendors_=e.reduce(((e,t)=>{const n=this.vendors_[String(t)];return n&&void 0===n.deletedDate&&(n.purposes.forEach((e=>{this.byPurposeVendorMap[String(e)].consent.add(t)})),n.specialPurposes.forEach((e=>{this.bySpecialPurposeVendorMap[String(e)].add(t)})),n.legIntPurposes.forEach((e=>{this.byPurposeVendorMap[String(e)].legInt.add(t)})),n.flexiblePurposes&&n.flexiblePurposes.forEach((e=>{this.byPurposeVendorMap[String(e)].flexible.add(t)})),n.features.forEach((e=>{this.byFeatureVendorMap[String(e)].add(t)})),n.specialFeatures.forEach((e=>{this.bySpecialFeatureVendorMap[String(e)].add(t)})),e[t]=n),e}),{})}getFilteredVendors(e,t,n,s){const r=e.charAt(0).toUpperCase()+e.slice(1);let i;const o={};return i="purpose"===e&&n?this["by"+r+"VendorMap"][String(t)][n]:this["by"+(s?"Special":"")+r+"VendorMap"][String(t)],i.forEach((e=>{o[String(e)]=this.vendors[String(e)]})),o}getVendorsWithConsentPurpose(e){return this.getFilteredVendors("purpose",e,"consent")}getVendorsWithLegIntPurpose(e){return this.getFilteredVendors("purpose",e,"legInt")}getVendorsWithFlexiblePurpose(e){return this.getFilteredVendors("purpose",e,"flexible")}getVendorsWithSpecialPurpose(e){return this.getFilteredVendors("purpose",e,void 0,!0)}getVendorsWithFeature(e){return this.getFilteredVendors("feature",e)}getVendorsWithSpecialFeature(e){return this.getFilteredVendors("feature",e,void 0,!0)}get vendors(){return this.vendors_}narrowVendorsTo(e){this.mapVendors(e)}get isReady(){return this.isReady_}clone(){const e=new ge(this.getJson());return this.lang_!==ge.DEFAULT_LANGUAGE&&e.changeLanguage(this.lang_),e}static isInstanceOf(e){return"object"==typeof e&&"function"==typeof e.narrowVendorsTo}}class ve extends X{static consentLanguages=ge.consentLanguages;isServiceSpecific_=!1;supportOOB_=!0;useNonStandardStacks_=!1;purposeOneTreatment_=!1;publisherCountryCode_="AA";version_=2;consentScreen_=0;policyVersion_=2;consentLanguage_="EN";cmpId_=0;cmpVersion_=0;vendorListVersion_=0;numCustomPurposes_=0;gvl_;created;lastUpdated;specialFeatureOptins=new ee;purposeConsents=new ee;purposeLegitimateInterests=new ee;publisherConsents=new ee;publisherLegitimateInterests=new ee;publisherCustomConsents=new ee;publisherCustomLegitimateInterests=new ee;customPurposes;vendorConsents=new ee;vendorLegitimateInterests=new ee;vendorsDisclosed=new ee;vendorsAllowed=new ee;publisherRestrictions=new Y;constructor(e){super(),e&&(this.gvl=e),this.updated()}set gvl(e){ge.isInstanceOf(e)||(e=new ge(e)),this.gvl_=e,this.publisherRestrictions.gvl=e}get gvl(){return this.gvl_}set cmpId(e){if(e=Number(e),!(Number.isInteger(e)&&e>1))throw new K("cmpId",e);this.cmpId_=e}get cmpId(){return this.cmpId_}set cmpVersion(e){if(e=Number(e),!(Number.isInteger(e)&&e>-1))throw new K("cmpVersion",e);this.cmpVersion_=e}get cmpVersion(){return this.cmpVersion_}set consentScreen(e){if(e=Number(e),!(Number.isInteger(e)&&e>-1))throw new K("consentScreen",e);this.consentScreen_=e}get consentScreen(){return this.consentScreen_}set consentLanguage(e){this.consentLanguage_=e}get consentLanguage(){return this.consentLanguage_}set publisherCountryCode(e){if(!/^([A-z]){2}$/.test(e))throw new K("publisherCountryCode",e);this.publisherCountryCode_=e.toUpperCase()}get publisherCountryCode(){return this.publisherCountryCode_}set vendorListVersion(e){if((e=Number(e)>>0)<0)throw new K("vendorListVersion",e);this.vendorListVersion_=e}get vendorListVersion(){return this.gvl?this.gvl.vendorListVersion:this.vendorListVersion_}set policyVersion(e){if(this.policyVersion_=parseInt(e,10),this.policyVersion_<0)throw new K("policyVersion",e)}get policyVersion(){return this.gvl?this.gvl.tcfPolicyVersion:this.policyVersion_}set version(e){this.version_=parseInt(e,10)}get version(){return this.version_}set isServiceSpecific(e){this.isServiceSpecific_=e}get isServiceSpecific(){return this.isServiceSpecific_}set useNonStandardStacks(e){this.useNonStandardStacks_=e}get useNonStandardStacks(){return this.useNonStandardStacks_}set supportOOB(e){this.supportOOB_=e}get supportOOB(){return this.supportOOB_}set purposeOneTreatment(e){this.purposeOneTreatment_=e}get purposeOneTreatment(){return this.purposeOneTreatment_}setAllVendorConsents(){this.vendorConsents.set(this.gvl.vendors)}unsetAllVendorConsents(){this.vendorConsents.empty()}setAllVendorsDisclosed(){this.vendorsDisclosed.set(this.gvl.vendors)}unsetAllVendorsDisclosed(){this.vendorsDisclosed.empty()}setAllVendorsAllowed(){this.vendorsAllowed.set(this.gvl.vendors)}unsetAllVendorsAllowed(){this.vendorsAllowed.empty()}setAllVendorLegitimateInterests(){this.vendorLegitimateInterests.set(this.gvl.vendors)}unsetAllVendorLegitimateInterests(){this.vendorLegitimateInterests.empty()}setAllPurposeConsents(){this.purposeConsents.set(this.gvl.purposes)}unsetAllPurposeConsents(){this.purposeConsents.empty()}setAllPurposeLegitimateInterests(){this.purposeLegitimateInterests.set(this.gvl.purposes)}unsetAllPurposeLegitimateInterests(){this.purposeLegitimateInterests.empty()}setAllSpecialFeatureOptins(){this.specialFeatureOptins.set(this.gvl.specialFeatures)}unsetAllSpecialFeatureOptins(){this.specialFeatureOptins.empty()}setAll(){this.setAllVendorConsents(),this.setAllPurposeLegitimateInterests(),this.setAllSpecialFeatureOptins(),this.setAllPurposeConsents(),this.setAllVendorLegitimateInterests()}unsetAll(){this.unsetAllVendorConsents(),this.unsetAllPurposeLegitimateInterests(),this.unsetAllSpecialFeatureOptins(),this.unsetAllPurposeConsents(),this.unsetAllVendorLegitimateInterests()}get numCustomPurposes(){let e=this.numCustomPurposes_;if("object"==typeof this.customPurposes){const t=Object.keys(this.customPurposes).sort(((e,t)=>Number(e)-Number(t)));e=parseInt(t.pop(),10)}return e}set numCustomPurposes(e){if(this.numCustomPurposes_=parseInt(e,10),this.numCustomPurposes_<0)throw new K("numCustomPurposes",e)}updated(){const e=new Date,t=new Date(Date.UTC(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()));this.created=t,this.lastUpdated=t}}class me{static encode(e,t){let n,s="";return e=he.process(e,t),n=Array.isArray(t?.segments)?t.segments:new de(e,t)[""+e.version],n.forEach(((t,r)=>{let i="";rt&&(t=s)}return t/100}function ct(e,t){if(void 0===t&&(t={}),!e)return null;var n=0,s=1,r=at(t);return 1===r||(Object.values(t).length&&r<1&&(n=r,s=1-r),Object.keys(e).sort().forEach((function(r){var i=e[r];t[r]={min:Math.trunc(100*n),max:Math.trunc(100*(n+i*s))},n+=i*s}))),t}function lt(e){var t=e.siteInfo,n=e.bundleData,s="latest",i="BT_BUNDLE_VERSION_"+t.websiteID,o="BT_DIGEST_VERSION_"+t.websiteID;!Ke[t.websiteID]&&(null==n?void 0:n.bundles)&&(Ke[t.websiteID]=n);var a=function(e,t,n){if(void 0===n&&(n="latest"),!e)return null;if(!t||"object"!=typeof t||Object.keys(t).length<=0)return null;var s={},r=t[e],i=t[0],o=t.global;if((null==r?void 0:r.bundles)&&(s=ct(r.bundles)),(null==i?void 0:i.bundles)&&(s=ct(i.bundles,s)),(null==o?void 0:o.bundles)&&(s=ct(o.bundles,s)),Object.keys(s).length<=0)return null;var a=at(s);return a<1&&(s[n]={min:Math.trunc(100*a),max:100}),s}(t.websiteID,Ke,s);if(window.__bt_tag_d&&(window.__bt_tag_d.probabilities=a),a&&!(Object.keys(a).length<=0)){var c=Ke[t.websiteID]||Ke[0]||Ke.global;if(c){var l=c.digest;r.localStorage.getItem(o)!==String(l)&&(r.localStorage.setItem(o,String(l)),r.localStorage.removeItem(i));var u=r.localStorage.getItem(i);if(!u)u=function(e,t){if("number"!=typeof e||e<0||e>100)return null;if(!t||"object"!=typeof t)return null;for(var n=Object.keys(t),s=0;se)return r}return null}(d(100),a)||s,r.localStorage.setItem(i,u);return u===s?void 0:u}}}Ke={};var ut=[];try{ut=[[RestrictedCountriesData]]}catch(e){}var dt=5;function pt(e){var t,n;if("ZZ"===R.countryCode){if("function"==typeof window.__bt.customDetectCountry){var s=null===(n=null===(t=window.__bt.customDetectCountry())||void 0===t?void 0:t.toUpperCase)||void 0===n?void 0:n.call(t);if(2===s.length)return void ht(s,ut.includes(s))}var i=Ge("timing.countryDetection"),o=r.localStorage.getItem("btUserCountryExpiry");!o||parseInt(o)<=Date.now()?fetch("https://api.btloader.com/country?o="+e).then((function(e){return e.json()})).then((function(e){ht(e.country,e.isRestricted),i({cached:!1})})).catch((function(){i({cached:!1,error:!0})})):i({cached:!0})}else ht(R.countryCode,R.isRestricted)}function ht(e,t){r.localStorage.setItem("btUserCountry",e),r.localStorage.setItem("btUserCountryExpiry",String(new Date(Date.now()+6e4*dt).getTime())),r.localStorage.setItem("btUserIsFromRestrictedCountry",String(t))}var ft,gt,vt=function(){function e(e,t,n,s,r){void 0===e&&(e={enabled:!1,script_loading_mode:"inject_from_tag_script",wall_mode:m.soft,allow_render_to_aa_users:!0}),this.rlinkSettings=e,this.scriptSrc=t,this.insertScript=n,this.widget=s,this.isAAEnabled=r}return e.prototype.load=function(){this.shouldLoadRLinkScript()&&(this.cacheRLinkSettings(),this.insertScript(this.scriptSrc,{type:"module"}),window.__bt_rlink_loaded_from_tag=!0)},e.prototype.preventRecovery=function(){var e=!this.rlinkSettings.allow_render_to_aa_users&&this.isAAEnabled,t=this.rlinkSettings.wall_mode===m.hard;return this.rlinkSettings.enabled&&t&&!e},e.prototype.isRecoveryAttributionValid=function(){var e=localStorage.getItem("BT_AM_ATTRIBUTION_EXPIRY");return!!e&&Date.now()0?n(t.normaliseResponses(e.responses)):n(null)},l=function(t){if(e.isTrustedIframeEvent(t)){var n=t.data,r=n.request,i=n.response,l=n.error;if(l)a(),s(l);else if(Array.isArray(i)){var u=r.method;e.respondedApiMethods.add(u),e.responses[u]=i,o({method:u,result:i.map((function(e){var t=e.name,n=e.version;return{name:t,status:e.result?"success":"errored",details:{version:n,error:e.error}}}))}),e.hasAllResponses()&&c()}}};e.trustedIframe.addEventListener("load",(function(){o=Ge("timing.extensionCommand"),t.API_METHODS.forEach((function(t){var n;null===(n=e.trustedIframe.contentWindow)||void 0===n||n.postMessage({method:t},e.config.origin)})),i=setTimeout(c,e.config.timeout)}),{once:!0}),window.addEventListener("message",l),null===(r=document.head||document.body||document.documentElement)||void 0===r||r.appendChild(e.trustedIframe)}))},t.prototype.createIframe=function(){var e=document.createElement("iframe");return e.src=this.config.origin+"/trustedIframe.html?o="+this.config.orgID+"&tid="+N.traceID+"&upapi=true",e.referrerPolicy="origin",e.style.cssText="display: none !important; width: 0 !important; height: 0 !important;",e},t.prototype.isTrustedIframeEvent=function(e){var n,s=e.source,r=e.origin,i=e.data;return s===this.trustedIframe.contentWindow&&r===this.config.origin&&"string"==typeof(null===(n=null==i?void 0:i.request)||void 0===n?void 0:n.method)&&t.API_METHODS.includes(i.request.method)},t.prototype.hasAllResponses=function(){var e=this;return t.API_METHODS.every((function(t){return e.respondedApiMethods.has(t)}))},t.SUPPORTED_EXTENSIONS={ADBLOCK:"adblock",ADBLOCK_PLUS:"adblockplus"},t.API_METHODS=["getStatus","getExperimentFlags"],t.API_HANDLERS={getStatus:t.handleStatusResponse,getExperimentFlags:t.handleExperimentFlagsResponse},t}();function Lt(e,s){return t(this,void 0,void 0,(function(){var t,i,o,a,c,l,u,d,p,h,f,g;return n(this,(function(n){switch(n.label){case 0:We("timing.trustedIframeStart",{timestamp:Date.now()}),function(){r.localStorage.removeItem("BT_EXPERIMENT_FLAGS");var e=r.localStorage.getItem(wt);try{r.__bt_intrnl.experimentFlags=JSON.parse(e)}catch(e){}}(),t={orgID:e,origin:Et,timeout:yt},i=1,n.label=1;case 1:if(!(i<=_t))return[3,6];o=new St(t),n.label=2;case 2:return n.trys.push([2,4,,5]),[4,o.getExtensionData()];case 3:return null!==(a=n.sent())?(c=a.filter((function(e){return function(e){if("object"!=typeof e||null===e)return!1;return Ct.getStatus.every((function(t){return t in e}))}(e)})),c.length&&(l=c.find((function(e){return e.name===St.SUPPORTED_EXTENSIONS.ADBLOCK})),u=c.find((function(e){return e.name===St.SUPPORTED_EXTENSIONS.ADBLOCK_PLUS})),p=(d=l||{}).experimentFlags,h=d.premium,u||!p||h?r.localStorage.removeItem(wt):(r.__bt_intrnl.experimentFlags||(r.__bt_intrnl.experimentFlags=p),r.localStorage.setItem(wt,JSON.stringify(p))),xe({extensions:c,siteInfo:s})),v=[],a.forEach((function(e){var t=Object.entries(Ct).filter((function(t){return t[0],t[1].some((function(t){return!(t in e)}))})).map((function(e){return e[0]}));t.length&&v.push({name:e.name,missing:t})})),(f=v.length?v:void 0)?(He({status:"incomplete",details:{missingData:f,attempt:i}}),It.warning("Trusted iframe - missing data from extensions:",null,f)):He({status:"success",details:{attempt:i}}),[2]):(It.warning("Trusted iframe did not load in time after "+i+" attempt"+(1===i?"":"s")),++i>_t&&He({status:"timedOut",details:{attempt:i}}),[3,5]);case 4:return He({status:"errored",details:{error:g=n.sent(),attempt:i}}),It.warning("Trusted iframe - critical error on attempt "+i+': "'+g+'".'),[2];case 5:return[3,1];case 6:return[2]}var v}))}))}var Ct={getStatus:["name","version","aa","ab","allowListStatus","premium"],getExperimentFlags:["experimentFlags"]};r.__bt_intrnl=r.__bt_intrnl||{traceID:N.traceID,pvSent:{},stopFlag:!1,timings:je,aaDetectionResults:null,pageURL:a.toString(),tcData:void 0,experimentFlags:void 0},window.__bt_intrnl=r.__bt_intrnl;var At=new bt;function Dt(e,t){var n=e||{},s=n.websiteConfig,i=n.websiteID,a=n.bundleID,c=s||{},u=c.siteInfo,d=c.checksum,p=t||{},h=p.aaDetectionResults,f=p.baitResults;!function(e){e.push({name:"dns-finder",type:"url",signals:{ag:Qe.NLF_BAIT_PIXEL_URL}},{name:"ad-delivery-ab",type:"url",signals:{ab:Qe.ADBLOCK_BAIT_PIXEL_URL}},{name:"ad-delivery-aa",type:"url",signals:{aa:Qe.AA_BAIT_PIXEL_URL}},{name:"doubleclick-ab",type:"url",signals:{ab:Qe.ADBLOCK_BAIT_PIXEL_OLD_URL}},{name:"bt-legacy-bait-element",type:"element",signals:{ab:Qe.ADBLOCK_BAIT_ELEMENT}},{name:"client-based-ab",type:"custom",signals:{ab:Qe.ADBLOCK_CLIENT_DETECTION}})}(f);var g={config:{siteInfo:u,checksum:d},bundleIDToLoad:a,aaDetectionResults:h,baitResults:f};r.__bt_intrnl.pvSent=r.__bt_intrnl.pvSent||{},r.__bt_intrnl.pvSent[i]=!0,l("BT_pvSent",r.__bt_intrnl.pvSent),Ne(g),function(){try{history.pushState=(e=history.pushState,function(){var t=e.apply(this,arguments);return window.dispatchEvent(new Event("pushstate")),window.dispatchEvent(new Event("locationChange")),t}),history.replaceState=function(e){return function(){var t=e.apply(this,arguments);return window.dispatchEvent(new Event("replacestate")),window.dispatchEvent(new Event("locationChange")),t}}(history.replaceState),window.addEventListener("popstate",(function(){window.dispatchEvent(new Event("locationChange"))}))}catch(e){}var e}(),r.addEventListener("locationChange",(function(){var e,t=o();t.search="";var n=t.toString().split("#")[0];(null===(e=r.__bt_intrnl.pageURL)||void 0===e?void 0:e.split("#")[0])!==n&&(r.__bt_intrnl.pageURL=t.toString(),P=A(),r.__bt_intrnl.traceID=P,l("BT_traceID",P),N={traceID:P,sessionID:V},g.isSPAViewChange=!0,Ne(g))}))}!function(){var e,s,i,o;t(this,void 0,void 0,(function(){var l,u,d,p,m,b,y,S,L,C,A,O,R,T,P,V,N,x,k,U,F;return n(this,(function(B){switch(B.label){case 0:return window.__bt_already_invoked?[2]:(window.__bt_already_invoked=!0,function(){var e;We("timing.navigationStart",{timestamp:Be}),We("timing.tagScriptLoaded",{eventDurationMS:Math.round(null!==(e=null==Fe?void 0:Fe.duration)&&void 0!==e?e:0),timestamp:Ue})}(),[4,Promise.allSettled([tt(),j(),ot()])]);case 1:return l=B.sent(),u=l[0],d=l[1],p=l[2],y=[],"fulfilled"===u.status&&(m=u.value),"fulfilled"===d.status&&(b=d.value),"fulfilled"===p.status&&y.push.apply(y,p.value||[]),L=(S=b||{}).siteInfo,C=S.rlSettings,(A=(L||{}).websiteID)?(v({eventName:"BTAADetection",payload:{detail:m}}),window.__bt.disableRecovery?(At.warning("Stop recovering because of __bt.disableRecovery flag."),[2]):(Lt(w,L),pt(w),R=(O=m||{}).acceptable,T=O.nlf,P=!1,et(m)&&(!function(e){(r.location.href.includes("bt_debug=true")||"true"===r.localStorage.getItem("bt_debug"))&&(e.contentEnabled="true"===r.localStorage.getItem("forceContent")||e.contentEnabled,e.mobileContentEnabled="true"===r.localStorage.getItem("forceMobileContent")||e.mobileContentEnabled)}(L),!L.contentEnabled||("function"==typeof window.bt_isMobileCustom?window.bt_isMobileCustom():/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(navigator.userAgent||navigator.vendor||window.opera)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test((navigator.userAgent||navigator.vendor||window.opera).substr(0,4)))&&!L.mobileContentEnabled||(V=lt(b),P=!0,T&&g("https://cdn.btloader.com/gpt/latest/pubads_impl.js"))),(null===(e=r.__bt_intrnl.pvSent)||void 0===e?void 0:e[A])||(null===(s=c("BT_pvSent"))||void 0===s?void 0:s[A])||(m.isCached?Ze.then((function(e){Dt({websiteConfig:b,websiteID:A,bundleID:V},{aaDetectionResults:e,baitResults:y})})):Dt({websiteConfig:b,websiteID:A,bundleID:V},{aaDetectionResults:m,baitResults:y}),P&&function(e){var s;t(this,void 0,void 0,(function(){var t,r,i,o,c,l,u,d,p;return n(this,(function(n){switch(n.label){case 0:return t=e.siteInfo,r=e.nlfDetected,[4,be(!1)];case 1:return i=n.sent(),o={},!i||i.error?(o.gdprApplies=null,o.error=(g=1024,(h=(null==i?void 0:i.error)||"").length>g?h.substring(0,g):h)):(c=[10,13,25,28,32,52,69,76,91,755,815],o.cmpVersion=i.cmpVersion,o.gdprApplies=i.gdprApplies,o.tcfPolicyVersion=i.tcfPolicyVersion,o.tcString=i.tcString,i.gdprApplies&&(l={},Object.entries((null===(s=i.vendor)||void 0===s?void 0:s.consents)||{}).forEach((function(e){var t=e[0],n=e[1];c.includes(Number(t))&&(l[t]=n)})),Object.keys(l).length&&(o.vendor={consents:l}),o.purpose=i.purpose)),(p={})[Te]=!!r,u=p,d={tcData:o,pageURL:a.href,organizationID:parseInt(w),websiteID:parseInt(t.websiteID),clientVersion:_},[2,fetch(Pe("/ce",u),{method:"POST",body:f(d)})]}var h,g}))}))}({siteInfo:L,nlfDetected:T})),N=function(e,t,n,s){var r=new URL("https://"+e);return r.pathname="recovery",r.searchParams.append("w",t),s&&r.searchParams.append("b",s),n&&n.split("&").forEach((function(e){var t=e.split("=");2==t.length&&t[0]&&t[1]&&r.searchParams.append(t[0],t[1])})),r.searchParams.append("upapi","true"),r.toString()}(E,A,"",V),(x=new vt(C,I.script,g,L.widget,R)).load(),k=x.preventRecovery(),!P||k?[3,3]:[4,Ce(!1)])):(At.error("Website ID for "+E+" not found."),[2]);case 2:return(U=B.sent())||null===U?g(N):(At.warning("Consentless user - do not load recovery script"),(null===(o=null===(i=null==D?void 0:D.settings)||void 0===i?void 0:i.monetizeConsentlessUsers)||void 0===o?void 0:o._enabled)&&window===window.top&&(F=function(e){var t=h()||r.location.href;return"https://brwsrfrm.com/i/script/"+e+"?ref="+new URL(t).origin}(A),g(F,{crossOrigin:null}))),[3,4];case 3:v({eventName:"AcceptableAdsInit",payload:{detail:!1}}),v({eventName:"uponitInit",payload:{detail:!1}}),k&&At.warning("Recovery is not allowed by RLink settings."),B.label=4;case 4:return[2]}}))}))}()}();