(()=>{var pe="cc-modal-cookies-banner",de="captainConsentPending",w="cc_consent",R="https://cc-platform-api-prod.fly.dev",J="ONLY_SETTINGS",Ae="BANNER_LINEAL",ue=["STRICTLY_NECESSARY_COOKIES","UNCLASSIFIED_COOKIES"],F="DO_NOT_SELL_PERSONAL_INFORMATION",Te="cc-modal-cookies-banner-settings",he="captain-compliance-modal-overlay";async function Oe(){let e="6a328dee-4597-44c5-bc4f-0e047540cacc"||document.currentScript.getAttribute("access-token");return await(await fetch(`${R}/banner/banner-token?access-token=${e}`)).json()}async function me(n){let e=await fetch(`${R}/bannerModeStyle/by-mode/${n}`);return e?await e.json():null}async function xe(n){let e=await fetch(`${R}/report/find-last-report?scannerId=${n}`);return e?await e.json():null}async function we(){return await(await fetch(`${R}/cookies/cookie-types`)).json()}async function Ne(n){return await(await fetch(`${R}/banner/tracking?id=${n}`)).json()}async function Re(){return await(await fetch(`${R}/banner/get-cookies`,{method:"GET",credentials:"include"})).json()}async function Ve(n){return await(await fetch(`${R}/bannerTagTracking`,{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify({gtmData:n})})).json()}async function q(n,e){await fetch(`${R}/bannerTracking/banner/${n}`,{method:"PUT",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify({status:e})})}var y=class extends Error{constructor(e){super(e),this.name="DecodingError"}};var b=class extends Error{constructor(e){super(e),this.name="EncodingError"}};var P=class extends Error{constructor(e){super(e),this.name="GVLError"}};var v=class extends Error{constructor(e,t,s=""){super(`invalid value ${t} passed for ${e} ${s}`),this.name="TCModelError"}};var U=class{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 b("Invalid bitField");let t=e.length%this.LCM;e+=t?"0".repeat(this.LCM-t):"";let s="";for(let o=0;o{let o=this.deepClone(this[s]);o!==void 0&&(e[s]=o)}),e}deepClone(e){let t=typeof e;if(t==="number"||t==="string"||t==="boolean")return e;if(e!==null&&t==="object"){if(typeof e.clone=="function")return e.clone();if(e instanceof Date)return new Date(e.getTime());if(e[Symbol.iterator]!==void 0){let s=[];for(let o of e)s.push(this.deepClone(o));return e instanceof Array?s:new e.constructor(s)}else{let s={};for(let o in e)e.hasOwnProperty(o)&&(s[o]=this.deepClone(e[o]));return s}}}};var H=class n extends A{root=null;getRoot(){return this.root}isEmpty(){return!this.root}add(e){let t={value:e,left:null,right:null},s;if(this.isEmpty())this.root=t;else for(s=this.root;;)if(es.value)if(s.right===null){s.right=t;break}else s=s.right;else break}get(){let e=[],t=this.root;for(;t;)if(!t.left)e.push(t.value),t=t.right;else{let s=t.left;for(;s.right&&s.right!=t;)s=s.right;s.right==t?(s.right=null,e.push(t.value),t=t.right):(s.right=t,t=t.left)}return e}contains(e){let t=!1,s=this.root;for(;s;)if(s.value===e){t=!0;break}else e>s.value?s=s.right:et.value)s=t,t=t.right,o="right";else{if(!t.left&&!t.right)s?s[o]=null:this.root=null;else if(!t.left)s?s[o]=t.right:this.root=t.right;else if(!t.right)s?s[o]=t.left:this.root=t.left;else{let r=this.min(t.right);this.remove(r,t.right),t.value=r}t=null}}static build(e){if(!e||e.length===0)return null;if(e.length===1){let t=new n;return t.add(e[0]),t}else{let t=e.length>>1,s=new n;s.add(e[t]);let o=s.getRoot();if(o){if(t+10){let r=n.build(e.slice(0,t-1));o.left=r?r.getRoot():null}}return s}}};var Q=class n{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 n.langSet.has(e)}forEach(e){n.langSet.forEach(e)}get size(){return n.langSet.size}};var a=class{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"};var T;(function(n){n[n.NOT_ALLOWED=0]="NOT_ALLOWED",n[n.REQUIRE_CONSENT=1]="REQUIRE_CONSENT",n[n.REQUIRE_LI=2]="REQUIRE_LI"})(T||(T={}));var V=class n extends A{static hashSeparator="-";purposeId_;restrictionType;constructor(e,t){super(),e!==void 0&&(this.purposeId=e),t!==void 0&&(this.restrictionType=t)}static unHash(e){let t=e.split(this.hashSeparator),s=new n;if(t.length!==2)throw new v("hash",e);return s.purposeId=parseInt(t[0],10),s.restrictionType=parseInt(t[1],10),s}get hash(){if(!this.isValid())throw new Error("cannot hash invalid PurposeRestriction");return`${this.purposeId}${n.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===T.NOT_ALLOWED||this.restrictionType===T.REQUIRE_CONSENT||this.restrictionType===T.REQUIRE_LI)}isSameAs(e){return this.purposeId===e.purposeId&&this.restrictionType===e.restrictionType}};var $=class extends A{bitLength=0;map=new Map;gvl_;has(e){return this.map.has(e)}isOkToHave(e,t,s){let o=!0;if(this.gvl?.vendors){let r=this.gvl.vendors[s];if(r)if(e===T.NOT_ALLOWED)o=r.legIntPurposes.includes(t)||r.purposes.includes(t);else if(r.flexiblePurposes.length)switch(e){case T.REQUIRE_CONSENT:o=r.flexiblePurposes.includes(t)&&r.legIntPurposes.includes(t);break;case T.REQUIRE_LI:o=r.flexiblePurposes.includes(t)&&r.purposes.includes(t);break}else o=!1;else o=!1}return o}add(e,t){if(this.isOkToHave(t.restrictionType,t.purposeId,e)){let s=t.hash;this.has(s)||(this.map.set(s,new H),this.bitLength=0),this.map.get(s).add(e)}}restrictPurposeToLegalBasis(e){let t=this.gvl.vendorIds,s=e.hash,o=function(){let c;for(c of t);return c}(),r=[...Array(o).keys()].map(c=>c+1);for(let c=1;c<=o;c++)this.has(s)||(this.map.set(s,H.build(r)),this.bitLength=0),this.map.get(s).add(c)}getVendors(e){let t=[];if(e){let s=e.hash;this.has(s)&&(t=this.map.get(s).get())}else{let s=new Set;this.map.forEach(o=>{o.get().forEach(r=>{s.add(r)})}),t=Array.from(s)}return t}getRestrictionType(e,t){let s;return this.getRestrictions(e).forEach(o=>{o.purposeId===t&&(s===void 0||s>o.restrictionType)&&(s=o.restrictionType)}),s}vendorHasRestriction(e,t){let s=!1,o=this.getRestrictions(e);for(let r=0;r{e=Math.max(t.max(),e)}),e}getRestrictions(e){let t=[];return this.map.forEach((s,o)=>{e?s.contains(e)&&t.push(V.unHash(o)):t.push(V.unHash(o))}),t}getPurposes(){let e=new Set;return this.map.forEach((t,s)=>{e.add(V.unHash(s).purposeId)}),Array.from(e)}remove(e,t){let s=t.hash,o=this.map.get(s);o&&(o.remove(e),o.isEmpty()&&(this.map.delete(s),this.bitLength=0))}set gvl(e){this.gvl_||(this.gvl_=e,this.map.forEach((t,s)=>{let o=V.unHash(s);t.get().forEach(c=>{this.isOkToHave(o.restrictionType,o.purposeId,c)||t.remove(c)})}))}get gvl(){return this.gvl_}isEmpty(){return this.map.size===0}get numRestrictions(){return this.map.size}};var ke;(function(n){n.COOKIE="cookie",n.WEB="web",n.APP="app"})(ke||(ke={}));var E;(function(n){n.CORE="core",n.VENDORS_DISCLOSED="vendorsDisclosed",n.VENDORS_ALLOWED="vendorsAllowed",n.PUBLISHER_TC="publisherTC"})(E||(E={}));var M=class{static ID_TO_KEY=[E.CORE,E.VENDORS_DISCLOSED,E.VENDORS_ALLOWED,E.PUBLISHER_TC];static KEY_TO_ID={[E.CORE]:0,[E.VENDORS_DISCLOSED]:1,[E.VENDORS_ALLOWED]:2,[E.PUBLISHER_TC]:3}};var _=class extends A{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(t=>this.unset(t)):typeof e=="object"?this.unset(Object.keys(e).map(t=>Number(t))):(this.set_.delete(Number(e)),this.bitLength=0,e===this.maxId&&(this.maxId_=0,this.set_.forEach(t=>{this.maxId_=Math.max(this.maxId,t)})))}isIntMap(e){let t=typeof e=="object";return t=t&&Object.keys(e).every(s=>{let o=Number.isInteger(parseInt(s,10));return o=o&&this.isValidNumber(e[s].id),o=o&&e[s].name!==void 0,o}),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(t=>this.set(t));else if(this.isSet(e))this.set(Array.from(e));else if(this.isIntMap(e))this.set(Object.keys(e).map(t=>Number(t)));else if(this.isValidNumber(e))this.set_.add(e),this.maxId_=Math.max(this.maxId,e),this.bitLength=0;else throw new v("set()",e,"must be positive integer array, positive integer, Set, or IntMap")}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)}};var p=class{static[a.cmpId]=12;static[a.cmpVersion]=12;static[a.consentLanguage]=12;static[a.consentScreen]=6;static[a.created]=36;static[a.isServiceSpecific]=1;static[a.lastUpdated]=36;static[a.policyVersion]=6;static[a.publisherCountryCode]=12;static[a.publisherLegitimateInterests]=24;static[a.publisherConsents]=24;static[a.purposeConsents]=24;static[a.purposeLegitimateInterests]=24;static[a.purposeOneTreatment]=1;static[a.specialFeatureOptins]=12;static[a.useNonStandardStacks]=1;static[a.vendorListVersion]=12;static[a.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};var L=class{static encode(e){return String(Number(e))}static decode(e){return e==="1"}};var u=class{static encode(e,t){let s;if(typeof e=="string"&&(e=parseInt(e,10)),s=e.toString(2),s.length>t||e<0)throw new b(`${e} too large to encode into ${t}`);return s.length25||r<0||r>25)throw new b(`invalid language code: ${e}`);if(t%2===1)throw new b(`numBits must be even, ${t} is not valid`);t=t/2;let c=u.encode(o,t),i=u.encode(r,t);return c+i}static decode(e,t){let s;if(t===e.length&&!(e.length%2)){let r=e.length/2,c=u.decode(e.slice(0,r),r)+65,i=u.decode(e.slice(r),r)+65;s=String.fromCharCode(c)+String.fromCharCode(i)}else throw new y("invalid bit length for language");return s}};var X=class{static encode(e){let t=u.encode(e.numRestrictions,p.numRestrictions);return e.isEmpty()||e.getRestrictions().forEach(s=>{t+=u.encode(s.purposeId,p.purposeId),t+=u.encode(s.restrictionType,p.restrictionType);let o=e.getVendors(s),r=o.length,c=0,i=0,l="";for(let h=0;h{for(;++S<=f&&!m.has(S););return S};if(h===r-1||o[h+1]>g(d)){let S=d!==i;l+=L.encode(S),l+=u.encode(i,p.vendorId),S&&(l+=u.encode(d,p.vendorId)),i=0}}t+=u.encode(c,p.numEntries),t+=l}),t}static decode(e){let t=0,s=new $,o=u.decode(e.substr(t,p.numRestrictions),p.numRestrictions);t+=p.numRestrictions;for(let r=0;r{r+=L.encode(f),c=e.maxId>h&&d{let r=o.length===1;s+=L.encode(!r),s+=u.encode(o[0],p.vendorId),r||(s+=u.encode(o[1],p.vendorId))}),s}};function fe(){return{[a.version]:u,[a.created]:K,[a.lastUpdated]:K,[a.cmpId]:u,[a.cmpVersion]:u,[a.consentScreen]:u,[a.consentLanguage]:Y,[a.vendorListVersion]:u,[a.policyVersion]:u,[a.isServiceSpecific]:L,[a.useNonStandardStacks]:L,[a.specialFeatureOptins]:N,[a.purposeConsents]:N,[a.purposeLegitimateInterests]:N,[a.purposeOneTreatment]:L,[a.publisherCountryCode]:Y,[a.vendorConsents]:k,[a.vendorLegitimateInterests]:k,[a.publisherRestrictions]:X,segmentType:u,[a.vendorsDisclosed]:k,[a.vendorsAllowed]:k,[a.publisherConsents]:N,[a.publisherLegitimateInterests]:N,[a.numCustomPurposes]:u,[a.publisherCustomConsents]:N,[a.publisherCustomLegitimateInterests]:N}}var Z=class{1={[E.CORE]:[a.version,a.created,a.lastUpdated,a.cmpId,a.cmpVersion,a.consentScreen,a.consentLanguage,a.vendorListVersion,a.purposeConsents,a.vendorConsents]};2={[E.CORE]:[a.version,a.created,a.lastUpdated,a.cmpId,a.cmpVersion,a.consentScreen,a.consentLanguage,a.vendorListVersion,a.policyVersion,a.isServiceSpecific,a.useNonStandardStacks,a.specialFeatureOptins,a.purposeConsents,a.purposeLegitimateInterests,a.purposeOneTreatment,a.publisherCountryCode,a.vendorConsents,a.vendorLegitimateInterests,a.publisherRestrictions],[E.PUBLISHER_TC]:[a.publisherConsents,a.publisherLegitimateInterests,a.numCustomPurposes,a.publisherCustomConsents,a.publisherCustomLegitimateInterests],[E.VENDORS_ALLOWED]:[a.vendorsAllowed],[E.VENDORS_DISCLOSED]:[a.vendorsDisclosed]}};var ee=class{1=[E.CORE];2=[E.CORE];constructor(e,t){if(e.version===2)if(e.isServiceSpecific)this[2].push(E.PUBLISHER_TC);else{let s=!!(t&&t.isForVendors);(!s||e[a.supportOOB]===!0)&&this[2].push(E.VENDORS_DISCLOSED),s&&(e[a.supportOOB]&&e[a.vendorsAllowed].size>0&&this[2].push(E.VENDORS_ALLOWED),this[2].push(E.PUBLISHER_TC))}}};var j=class{static fieldSequence=new Z;static encode(e,t){let s;try{s=this.fieldSequence[String(e.version)][t]}catch{throw new b(`Unable to encode version: ${e.version}, segment: ${t}`)}let o="";t!==E.CORE&&(o=u.encode(M.KEY_TO_ID[t],p.segmentType));let r=fe();return s.forEach(c=>{let i=e[c],l=r[c],h=p[c];h===void 0&&this.isPublisherCustom(c)&&(h=Number(e[a.numCustomPurposes]));try{o+=l.encode(i,h)}catch(d){throw new b(`Error encoding ${t}->${c}: ${d.message}`)}}),U.encode(o)}static decode(e,t,s){let o=U.decode(e),r=0;s===E.CORE&&(t.version=u.decode(o.substr(r,p[a.version]),p[a.version])),s!==E.CORE&&(r+=p.segmentType);let c=this.fieldSequence[String(t.version)][s],i=fe();return c.forEach(l=>{let h=i[l],d=p[l];if(d===void 0&&this.isPublisherCustom(l)&&(d=Number(t[a.numCustomPurposes])),d!==0){let f=o.substr(r,d);if(h===k?t[l]=h.decode(f,t.version):t[l]=h.decode(f,d),Number.isInteger(d))r+=d;else if(Number.isInteger(t[l].bitLength))r+=t[l].bitLength;else throw new y(l)}}),t}static isPublisherCustom(e){return e.indexOf("publisherCustom")===0}};var te=class{static processor=[e=>e,(e,t)=>{e.publisherRestrictions.gvl=t,e.purposeLegitimateInterests.unset(1);let s=new Map;return s.set("legIntPurposes",e.vendorLegitimateInterests),s.set("purposes",e.vendorConsents),s.forEach((o,r)=>{o.forEach((c,i)=>{if(c){let l=t.vendors[i];if(!l||l.deletedDate)o.unset(i);else if(l[r].length===0&&!(r==="legIntPurposes"&&l.purposes.length===0&&l.legIntPurposes.length===0&&l.specialPurposes.length>0))if(e.isServiceSpecific)if(l.flexiblePurposes.length===0)o.unset(i);else{let h=e.publisherRestrictions.getRestrictions(i),d=!1;for(let f=0,m=h.length;f0&&t?.version<=this.processor.length?e.version=t.version:e.version=this.processor.length;let o=e.version-1;if(!this.processor[o])throw new b(`Invalid version: ${e.version}`);return this.processor[o](e,s)}};var se=class{static absCall(e,t,s,o){return new Promise((r,c)=>{let i=new XMLHttpRequest,l=()=>{if(i.readyState==XMLHttpRequest.DONE)if(i.status>=200&&i.status<300){let m=i.response;if(typeof m=="string")try{m=JSON.parse(m)}catch{}r(m)}else c(new Error(`HTTP Status: ${i.status} response type: ${i.responseType}`))},h=()=>{c(new Error("error"))},d=()=>{c(new Error("aborted"))},f=()=>{c(new Error("Timeout "+o+"ms "+e))};i.withCredentials=s,i.addEventListener("load",l),i.addEventListener("error",h),i.addEventListener("abort",d),t===null?i.open("GET",e,!0):i.open("POST",e,!0),i.responseType="json",i.timeout=o,i.ontimeout=f,i.send(t)})}static post(e,t,s=!1,o=0){return this.absCall(e,JSON.stringify(t),s,o)}static fetch(e,t=!1,s=0){return this.absCall(e,null,t,s)}};var D=class n extends A{static LANGUAGE_CACHE=new Map;static CACHE=new Map;static LATEST_CACHE_KEY=0;static DEFAULT_LANGUAGE="EN";static consentLanguages=new Q;static baseUrl_;static set baseUrl(e){if(/^https?:\/\/vendorlist\.consensu\.org\//.test(e))throw new P("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=n.baseUrl;if(this.lang_=n.DEFAULT_LANGUAGE,this.isVendorList(e))this.populate(e),this.readyPromise=Promise.resolve();else{if(!t)throw new P("must specify GVL.baseUrl before loading GVL json");if(e>0){let s=e;n.CACHE.has(s)?(this.populate(n.CACHE.get(s)),this.readyPromise=Promise.resolve()):(t+=n.versionedFilename.replace("[VERSION]",String(s)),this.readyPromise=this.fetchJson(t))}else n.CACHE.has(n.LATEST_CACHE_KEY)?(this.populate(n.CACHE.get(n.LATEST_CACHE_KEY)),this.readyPromise=Promise.resolve()):(this.isLatest=!0,this.readyPromise=this.fetchJson(t+n.latestFilename))}}static emptyLanguageCache(e){let t=!1;return e===void 0&&n.LANGUAGE_CACHE.size>0?(n.LANGUAGE_CACHE=new Map,t=!0):typeof e=="string"&&this.consentLanguages.has(e.toUpperCase())&&(n.LANGUAGE_CACHE.delete(e.toUpperCase()),t=!0),t}static emptyCache(e){let t=!1;return Number.isInteger(e)&&e>=0?(n.CACHE.delete(e),t=!0):e===void 0&&(n.CACHE=new Map,t=!0),t}cacheLanguage(){n.LANGUAGE_CACHE.has(this.lang_)||n.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 se.fetch(e))}catch(t){throw new P(t.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){let t=e.toUpperCase();if(n.consentLanguages.has(t)){if(t!==this.lang_)if(this.lang_=t,n.LANGUAGE_CACHE.has(t)){let s=n.LANGUAGE_CACHE.get(t);for(let o in s)s.hasOwnProperty(o)&&(this[o]=s[o])}else{let s=n.baseUrl+n.languageFilename.replace("[LANG]",e);try{await this.fetchJson(s),this.cacheLanguage()}catch(o){throw new P("unable to load language: "+o.message)}}}else throw new P(`unsupported language ${e}`)}get language(){return this.lang_}isVendorList(e){return e!==void 0&&e.vendors!==void 0}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,typeof this.lastUpdated=="string"&&(this.lastUpdated=new Date(this.lastUpdated)),this.vendors_=e.vendors,this.fullVendorList=e.vendors,this.mapVendors(),this.isReady_=!0,this.isLatest&&n.CACHE.set(n.LATEST_CACHE_KEY,this.getJson()),n.CACHE.has(this.vendorListVersion)||n.CACHE.set(this.vendorListVersion,this.getJson())),this.cacheLanguage()}mapVendors(e){this.byPurposeVendorMap={},this.bySpecialPurposeVendorMap={},this.byFeatureVendorMap={},this.bySpecialFeatureVendorMap={},Object.keys(this.purposes).forEach(t=>{this.byPurposeVendorMap[t]={legInt:new Set,consent:new Set,flexible:new Set}}),Object.keys(this.specialPurposes).forEach(t=>{this.bySpecialPurposeVendorMap[t]=new Set}),Object.keys(this.features).forEach(t=>{this.byFeatureVendorMap[t]=new Set}),Object.keys(this.specialFeatures).forEach(t=>{this.bySpecialFeatureVendorMap[t]=new Set}),Array.isArray(e)||(e=Object.keys(this.fullVendorList).map(t=>+t)),this.vendorIds=new Set(e),this.vendors_=e.reduce((t,s)=>{let o=this.vendors_[String(s)];return o&&o.deletedDate===void 0&&(o.purposes.forEach(r=>{this.byPurposeVendorMap[String(r)].consent.add(s)}),o.specialPurposes.forEach(r=>{this.bySpecialPurposeVendorMap[String(r)].add(s)}),o.legIntPurposes.forEach(r=>{this.byPurposeVendorMap[String(r)].legInt.add(s)}),o.flexiblePurposes&&o.flexiblePurposes.forEach(r=>{this.byPurposeVendorMap[String(r)].flexible.add(s)}),o.features.forEach(r=>{this.byFeatureVendorMap[String(r)].add(s)}),o.specialFeatures.forEach(r=>{this.bySpecialFeatureVendorMap[String(r)].add(s)}),t[s]=o),t},{})}getFilteredVendors(e,t,s,o){let r=e.charAt(0).toUpperCase()+e.slice(1),c,i={};return e==="purpose"&&s?c=this["by"+r+"VendorMap"][String(t)][s]:c=this["by"+(o?"Special":"")+r+"VendorMap"][String(t)],c.forEach(l=>{i[String(l)]=this.vendors[String(l)]}),i}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(){let e=new n(this.getJson());return this.lang_!==n.DEFAULT_LANGUAGE&&e.changeLanguage(this.lang_),e}static isInstanceOf(e){return typeof e=="object"&&typeof e.narrowVendorsTo=="function"}};var G=class extends A{static consentLanguages=D.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 _;purposeConsents=new _;purposeLegitimateInterests=new _;publisherConsents=new _;publisherLegitimateInterests=new _;publisherCustomConsents=new _;publisherCustomLegitimateInterests=new _;customPurposes;vendorConsents=new _;vendorLegitimateInterests=new _;vendorsDisclosed=new _;vendorsAllowed=new _;publisherRestrictions=new $;constructor(e){super(),e&&(this.gvl=e),this.updated()}set gvl(e){D.isInstanceOf(e)||(e=new D(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)this.cmpId_=e;else throw new v("cmpId",e)}get cmpId(){return this.cmpId_}set cmpVersion(e){if(e=Number(e),Number.isInteger(e)&&e>-1)this.cmpVersion_=e;else throw new v("cmpVersion",e)}get cmpVersion(){return this.cmpVersion_}set consentScreen(e){if(e=Number(e),Number.isInteger(e)&&e>-1)this.consentScreen_=e;else throw new v("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))this.publisherCountryCode_=e.toUpperCase();else throw new v("publisherCountryCode",e)}get publisherCountryCode(){return this.publisherCountryCode_}set vendorListVersion(e){if(e=Number(e)>>0,e<0)throw new v("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 v("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(typeof this.customPurposes=="object"){let t=Object.keys(this.customPurposes).sort((s,o)=>Number(s)-Number(o));e=parseInt(t.pop(),10)}return e}set numCustomPurposes(e){if(this.numCustomPurposes_=parseInt(e,10),this.numCustomPurposes_<0)throw new v("numCustomPurposes",e)}updated(){let e=new Date,t=new Date(Date.UTC(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()));this.created=t,this.lastUpdated=t}};var oe=class{static encode(e,t){let s="",o;return e=te.process(e,t),Array.isArray(t?.segments)?o=t.segments:o=new ee(e,t)[""+e.version],o.forEach((r,c)=>{let i="";c{if(!document.querySelector('iframe[name="__tcfapiLocator"]')){let n=document.createElement("iframe");n.setAttribute("name","__tcfapiLocator"),n.style.display="none",document.body.appendChild(n)}},ne=async n=>{let e=new G(new D);await e.gvl.readyPromise,e.cmpId=123,e.cmpVersion=1,e.consentScreen=0,e.consentLanguage="ES",e.vendorListVersion=e.gvl.vendorListVersion;for(let s=1;s<=10;s++)e.purposeConsents.set(s,n),e.vendorConsents.set(s,n);let t=oe.encode(e);document.cookie=`euconsent-v2=${t}; path=/; SameSite=Lax`,localStorage.setItem("euconsent-v2",t),localStorage.setItem("consentAccepted",String(n)),window.__tcString=t},Pe=()=>{console.log("\u23F3 Registrando __tcfapi"),window.__tcfapi=(n,e,t,s)=>{console.log("\u{1F9EA} __tcfapi called:",{command:n,version:e,parameter:s});let o=localStorage.getItem("euconsent-v2")||"",r=localStorage.getItem("consentAccepted")==="true";if(n==="ping"){console.log("\u2705 Responding to ping"),t({gdprAppliesGlobally:!1,cmpLoaded:!0,cmpStatus:o?"loaded":"stub"},!0);return}if(n==="getTCData"||n==="addEventListener"){console.log("\u2705 Responding to",n),t({tcString:o,cmpId:123,cmpVersion:1,gdprApplies:!0,eventStatus:o?"tcloaded":"cmpuishown",cmpStatus:o?"loaded":"stub",purpose:{consent:{1:r,2:r,3:r,4:r,5:r}}},!0);return}console.warn("\u274C Unknown command:",n),t(null,!1)}};De();Pe();console.log("TCF API initialized.");function ze(n){let e=n.querySelectorAll(".privacy-label"),t=r=>{r.currentTarget.classList.toggle("active"),r.currentTarget.parentElement.nextElementSibling.querySelector("p").classList.toggle("active"),r.currentTarget.parentElement.nextElementSibling.style.maxHeight?r.currentTarget.parentElement.nextElementSibling.style.maxHeight=null:r.currentTarget.parentElement.nextElementSibling.style.maxHeight=r.currentTarget.parentElement.nextElementSibling.scrollHeight+"px"};e.forEach(r=>{r.addEventListener("click",t)});let s=n.getElementById("DO_NOT_SELL_PERSONAL_INFORMATION"),o=n.getElementById("TARGETING_COOKIES");s&&o&&(s.addEventListener("change",function(){this.checked&&(o.checked=!1,o.removeAttribute("checked"),Ee(o,!1))}),o.addEventListener("change",function(){this.checked&&(s.checked=!1,s.removeAttribute("checked"),Ee(s,!1))}))}function Fe(n,e){window.dataLayer=window.dataLayer||[],window.gtag=window.gtag||function(){dataLayer.push(arguments)},window.dataLayer.push({event:n,captainComplianceConsent:{...e}}),gtag("consent","update",{analytics_storage:e.selectedCookies.PERFORMANCE_COOKIES?"granted":"denied",ad_storage:e.selectedCookies.TARGETING_COOKIES?"granted":"denied",ad_user_data:e.selectedCookies.TARGETING_COOKIES?"granted":"denied",ad_personalization:e.selectedCookies.TARGETING_COOKIES?"granted":"denied",functionality_storage:e.selectedCookies.FUNCTIONALITY_COOKIES?"granted":"denied",security_storage:e.selectedCookies.STRICTLY_NECESSARY_COOKIES?"granted":"denied"})}function We(n){return n?.length?(n||[]).every(({display:e})=>!e):!1}function Je(n,e,t){let s,o,r,c="unset",i=t===Ae?"0px":"10px";return e==="top"?s=i:e==="bottom"?o=i:e==="middle"&&(s="50%"),n==="left"?r=i:n==="right"?c=i:n==="middle"&&(r="50%"),{top:s,bottom:o,left:r,right:c}}function qe(n,e){let t,s="0px";return e==="middle"&&(t="-50%"),n==="middle"&&(s="50%"),{vertical:t,horizontal:s}}function re(n,e){let t=document.createElement("template");t.innerHTML=n.trim();let s=t.content.querySelector("style");s?e.appendChild(s):console.warn("Provided CSS string doesn't contain a valid `;re(W,r),re(s,r),re(t,r),re(o,r)}function Xe(n,e){return(n||[]).find(({cookieTypeId:s})=>s===e)||{display:!0,checked:!1}}function Ze(n,e){let t=(()=>{try{let i=ce(`${w}_preference`);return i?JSON.parse(i):null}catch{return null}})(),s=t?.selectedCookies||{},o=n.sort((i,l)=>i.order!==void 0||l.order!==void 0?(i.order??1/0)-(l.order??1/0):0).reduce((i,{key:l,name:h,id:d})=>{let f=Xe(e,d);if(l==="UNCLASSIFIED_COOKIES"||!f?.display)return i;let m=s[l]??f?.checked,g=l==="STRICTLY_NECESSARY_COOKIES",I=[g||m?"checked":"",g?"disabled checked":""].filter(Boolean).join(" "),C=`

${h.replace("cookies","")}

`;return i+C},""),r=t?.notSellPersonalInfo?"checked":"",c=`

Do Not Sell or Share My Personal Information

`;return o+c}function et(){let n=document.createElement("div");n.classList.add("captain-compliance-modal-container"),n.style.display="block";let e=n.attachShadow({mode:"open"});return document.body.appendChild(n),e}function tt(n,e,t,s,o,r,c,i,l){let h=n.displayLogo&&!!n.image,d=We(t),f=Ze(e,t);i.innerHTML+=r,i.innerHTML+=l?"":c,parseFloat(n.overlay)>0&&(i.innerHTML+=`
`),o&&!l&&(i.innerHTML+=o);let m=i.querySelector("#captain-compliance-modal-bn-body_content_icon_id"),g=i.querySelector("#captain-compliance-modal-settings-body_content_switch_list_id"),S=i.querySelector("#cc-modal-cookie-settings"),I=i.querySelector("#captain-compliance-modal-bn-body_content_text_title_id"),C=i.querySelector("#captain-compliance-modal-bn-body_content_text_description_id"),O=i.querySelector("#captain-compliance-modal-bn-body_footer_transparency_id");O&&s.active?O.href=`https://${s.cname}.cookietransparency.com`:O&&O.remove(),I&&n.title.length?I.textContent=n.title:I&&I.remove(),C&&n.description.length?C.textContent=n.description:C&&C.remove(),g&&!d?g.innerHTML+=f:g&&S&&(g.remove(),S.remove()),m&&h?m.src=n.image:m&&m.remove()}function $e(n){return Object.keys(n.firstParty).reduce((s,o)=>ue.includes(o)?s:[...s,...n.firstParty[o].data,...n.thirdParty[o].data],[]).map(({name:s,domain:o,path:r,regex:c})=>({name:s,domain:o,path:r,regex:c}))}function st(n,e){return e.reduce((t,{key:s})=>n.getElementById(s)?.checked||ue.includes(s)?[...t,s]:t,[])}function ot(n,e){let t={...n};return e.forEach(s=>{delete t.firstParty[s],delete t.thirdParty[s]}),t}function Ce(n,e,t){var s=new Date,o=s.getTime(),r;typeof t=="number"&&!isNaN(t)?r=o+1e3*60*60*24*t:r=o+1e3*60*60*24*30,s.setTime(r),document.cookie=`${w}_${n}=${e}; Expires=`+s.toUTCString()+"; Path=/;"}function ge(n,e,t,s){s||(n.getElementById(pe).style.display="none"),Ce(e,"ok",t)}function Ue(n,e,t){n.querySelectorAll(`.${e}`).forEach(o=>{o.onclick=function(){t()}})}function Me(n,e,t){let s=ot(n,e);Se($e(s),t)}function nt(n,e,t,s){let o=st(n,e);Me(t,o,s)}function rt(n,e,t){return()=>{t||(n.style.display="none"),e.style.visibility="visible"}}function ie(n,e,t){let s=t??ce(`${w}_preference`);if(!s)return;let o;try{o=typeof s=="object"?s:JSON.parse(s)}catch(c){console.error("Error parsing cookie preferences:",c);return}let r=o.selectedCookies||{};o?.notSellPersonalInfo&&(r[F]=!0),[...e,{key:F}].forEach(({key:c})=>{let i=n.getElementById(c);if(!i)return;let l=c==="STRICTLY_NECESSARY_COOKIES",h=l||r?.[c]||!1;it(i,h,l),Ee(i,h)})}function it(n,e,t){n.checked=e,e?n.setAttribute("checked",""):n.removeAttribute("checked"),t?n.setAttribute("disabled",""):n.removeAttribute("disabled")}function Ee(n,e){n.closest(".captain-compliance-modal-settings-body_content_switch_list_item_preset")?.querySelector("label")?.classList.toggle("active",e)}async function ae(n,e){let t=await Ve(n),s={...n,id:t.id};Ce("preference",JSON.stringify(s),e),Fe("captainComplianceConsent",s)}function at(n,e,t,s,o,r,c){let{scannerId:i,id:l}=t,h=s?.webLink||"https://captaincompliance.com/solutions/cookie-consent-manager/";s?.callbackUrl&&Ce("callback_url",s.callbackUrl,s.dueDays);let d=o.getElementById(pe),f=o.getElementById(Te),m=o.getElementById("cc-cookie-simple-button_id"),g=o.getElementById(he),S=rt(d,f,c);m&&(m.onclick=function(){s.mode===J&&f?f.style.visibility="visible":d&&(d.style.display="block",d.style.visibility="visible",sessionStorage.removeItem(w)),m.style.visibility="hidden"},Ue(o,"cc-modal-logo-footer-compliance",()=>window.open(h,"_blank")));let I=o.getElementById("cc-modal-close-all");I&&(I.onclick=function(){let x=ye(`${w}_${i}`),le=d?.classList.contains("cc-trigger-from-third-party");x&&d&&!le&&(d.style.display="block"),s.mode===J&&(m.style.visibility="visible"),f&&(f.style.visibility="hidden",ie(o,e))});let C=o.getElementById("cc-modal-allow-selection");C&&(C.onclick=function(){ge(o,i,s.dueDays,c),q(l,"PARTIALLY_ALLOWED"),f.style.visibility="hidden",nt(o,e,n,s?.callbackUrl);let x=e.reduce((He,{key:ve})=>{let Ke=o.getElementById(ve)?.checked??!1;return{...He,[ve]:Ke}},{}),le=o.getElementById(F);g&&(g.style.visibility="hidden");let Ge=le?.checked??!1,Le={status:"PARTIALLY_ALLOWED",scannerId:i,bannerId:l,geoInfo:r,notSellPersonalInfo:Ge,selectedCookies:x};ne(!0),ae(Le,s.dueDays),ie(o,e,Le)});let O=o.getElementById("cc-modal-allow-all");O&&(O.onclick=function(){ge(o,i,s.dueDays,c),q(l,"ALLOWED"),Se([]);let x={status:"ALLOWED",scannerId:i,bannerId:l,geoInfo:r,notSellPersonalInfo:!1,selectedCookies:{STRICTLY_NECESSARY_COOKIES:!0,TARGETING_COOKIES:!0,FUNCTIONALITY_COOKIES:!0,PERFORMANCE_COOKIES:!0,UNCLASSIFIED_COOKIES:!0}};g&&(g.style.visibility="hidden"),ne(!0),ae(x,s.dueDays),ie(o,e,x)});let z=o.getElementById("cc-modal-reject-all");z&&(z.onclick=function(){ge(o,i,s.dueDays,c),q(l,"REJECTED"),Se($e(n),s?.callbackUrl);let x={status:"REJECTED",scannerId:i,bannerId:l,geoInfo:r,notSellPersonalInfo:!1,selectedCookies:{STRICTLY_NECESSARY_COOKIES:!1,TARGETING_COOKIES:!1,FUNCTIONALITY_COOKIES:!1,PERFORMANCE_COOKIES:!1,UNCLASSIFIED_COOKIES:!1}};g&&(g.style.visibility="hidden"),ne(!1),ae(x,s.dueDays),ie(o,e,x)});let W=o.getElementById("cc-cookie-simple-button-close_id");W&&(W.onclick=function(){d.style.display="none",m.style.visibility="visible",sessionStorage.setItem(w,"true")});let be=document.getElementById("id-open-settings-cc");be?be.addEventListener("click",()=>{c||d?.classList?.add("cc-trigger-from-third-party"),S()}):document.body.addEventListener("click",function(x){x.target&&x.target.id==="id-open-settings-cc"&&(c||d?.classList?.add("cc-trigger-from-third-party"),S())}),Ue(o,"captain-compliance-open-settings",S)}async function ct(n){await new Promise(t=>setTimeout(t,3e3));let e=ce("callback_url");await Be(n,e)}async function lt(n,e){try{let t=await fetch(e,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({cookieList:n})});if(!t.ok)throw new Error(`HTTP error! status: ${t.status}`);return console.log("Cookie list sent"),!0}catch(t){throw console.error("Error sending cookie list to endpoint:",t),t}}async function Be(n,e){let t=new RegExp(`${w}_\\d+`),s=document.cookie.split(";"),o=await Re(),r=o.cookies?Object.keys(o.cookies):[],c=[];n.forEach(i=>{let l=i.name;c.push(l),[...s,...r].forEach(h=>{let[d]=h.trim().split("="),f=d.startsWith(l)&&d.length>=l.length,m=i.regex?new RegExp(i.regex).test(d):f;if(!t.test(d)&&m){let g=`${d}=; expires=Thu, 01 Jan 1970 00:00:01 GMT;`;if(document.cookie=`${g}`,document.cookie=`${g} path=/;`,document.cookie=`${g} path=/; domain=${i.domain}`,document.cookie=`${g} path=/; domain=${i.domain}; secure`,document.cookie=`${g} path=/; domain=${i.domain}; SameSite=None; Secure`,!ye(d)){let I=new Date;I.setTime(I.getTime()+-1*24*60*60*1e3);let C="; expires="+I.toGMTString();document.cookie=`${d}=${C}; path=/;`}}})}),e&&await lt(n.map(i=>({name:i.name,domain:i.domain,regex:i.regex})),e)}function Ie(){let n=new RegExp(`^${w}_(\\d+)$`);if(!document.cookie.split(";").some(o=>{let r=o.trim().split("=")[0];return r&&n.test(r)}))return;let t=localStorage.getItem(de),s=t?JSON.parse(t):[];ct(s)}function ye(n){return document.cookie.split(";").every(e=>e.trim().startsWith(`${n}=`)===!1)}function Se(n,e){Be(n,e),localStorage.setItem(de,JSON.stringify(n))}function pt(n,e){return!(n&&!n.active&&!n.region.isGlobal||!ye(`${w}_${e.scannerId}`))}function dt(){return window.location.hostname.replace("www.","")}function ut(n){try{return new URL(n).hostname.replace("www.","")}catch{return"Invalid URL"}}function ce(n){let e=document.cookie.split("; ");for(let t of e){let[s,o]=t.split("=");if(s===n)return decodeURIComponent(o)}return null}function _e(){let n=ce(`${w}_preference`);if(n)try{let e=JSON.parse(n);Fe("captainComplianceConsent",e)}catch{return}}function ht(n,e,t,s){return{html:e.html||n.html,css:e.css||n.styles,miniHtml:e.miniHtml||t.html,miniCss:e.miniCss||t.styles,settingsHtml:e.settingsHtml||s.html,settingsCss:e.settingsCss||s.styles}}async function mt(){let n=navigator.globalPrivacyControl===!0,e=await Oe(),t=dt(),s=ut(e.banner.scanner.domain);if(t!==s&&!!1){console.log("%cSORRY THIS IS NOT THE ALLOWED DOMAIN","color: red; font-size: 20px");return}let{bannerConfiguration:o,bannerDisplays:r,banner:c,report:i,geoInfo:l,bannerModeStyle:h}=e,d={country:l.country,countryCode:l.countryCode,region:l.region,regionName:l.regionName,city:l.city,timezone:l.timezone},f=await xe(c.scannerId);if(f){let m=await we(),g=et();if(n){console.log("%cGPC Signal","color: blue; font-size: 15px"),Me(f.reportInformation.cookies,["STRICTLY_NECESSARY_COOKIES","UNCLASSIFIED_COOKIES"]);let O={status:"GPC_SIGNAL",scannerId:c.scannerId,bannerId:c.id,notSellPersonalInfo:!0,geoInfo:d,selectedCookies:{STRICTLY_NECESSARY_COOKIES:!0,TARGETING_COOKIES:!0,FUNCTIONALITY_COOKIES:!1,PERFORMANCE_COOKIES:!1,UNCLASSIFIED_COOKIES:!0}};ae(O,o.dueDays)}let S=await me("SETTINGS"),I=await me("ICON"),C=ht(h,o,I,S);Ne(c.id),tt(o,m,r,i,C.html,C.settingsHtml,C.miniHtml,g,n),Qe(o,c,C.css,C.settingsCss,C.miniCss,g,n),at(f.reportInformation.cookies,m,c,o,g,d,n),ze(g)}}(function(){let n=history.pushState,e=history.replaceState;function t(s){console.log(`Navigated to: ${s}`),Ie(),_e()}history.pushState=function(...s){n.apply(this,s),t(window.location.href)},history.replaceState=function(...s){e.apply(this,s),t(window.location.href)},window.addEventListener("popstate",function(){t(window.location.href)})})();(function(){function n(){console.log("All content loaded successfully."),Ie(),_e()}document.readyState==="complete"?n():window.addEventListener("load",n),console.log("Content load listener initialized.")})();window.addEventListener("beforeunload",function(){Ie(),_e()});mt();})();