PageSourceSearch

https://oboz.info/wp-content/plugins/gdpr-cookie-consent/admin/js/…-cookie-consent-admin-tcstring.js?ver=4.4.2

js oboz.info collected 2026-09-24 08:31:54 UTC 54,636 bytes, 1 lines download raw bytes

1(()=>{"use strict";var e,t,s,r,n,i,o,a,c={1040:e=>{function t(e){return(t="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})(e)}e.exports=function(){for(var e,s,r=[],n=window,i=n;i;){try{if(i.frames.__tcfapiLocator){e=i;break}}catch(e){}if(i===n.top)break;i=i.parent}e||(function e(){var t=n.document,s=!!n.frames.__tcfapiLocator;if(!s)if(t.body){var r=t.createElement("iframe");r.style.cssText="display:none",r.name="__tcfapiLocator",t.body.appendChild(r)}else setTimeout(e,5);return!s}(),n.__tcfapi=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!t.length)return r;"setGdprApplies"===t[0]?t.length>3&&2===parseInt(t[1],10)&&"boolean"==typeof t[3]&&(s=t[3],"function"==typeof t[2]&&t[2]("set",!0)):"ping"===t[0]?"function"==typeof t[2]&&t[2]({gdprApplies:s,cmpLoaded:!1,cmpStatus:"stub"}):r.push(t)},n.addEventListener("message",function(e){var s="string"==typeof e.data,r={};if(s)try{r=JSON.parse(e.data)}catch(e){}else r=e.data;var n="object"===t(r)&&null!==r?r.__tcfapiCall:null;if(n){var i=null==e?void 0:e.source;window.__tcfapi(n.command,n.version,function(e,t){var r={__tcfapiReturn:{returnValue:e,success:t,callId:n.callId}};i&&i.postMessage&&i.postMessage(s?JSON.stringify(r):r,"*")},n.parameter),i=null}},!1))}}},l={};!function(e){e.PING="ping",e.GET_TC_DATA="getTCData",e.GET_IN_APP_TC_DATA="getInAppTCData",e.GET_VENDOR_LIST="getVendorList",e.ADD_EVENT_LISTENER="addEventListener",e.REMOVE_EVENT_LISTENER="removeEventListener"}(e||(e={})),function(e){e.STUB="stub",e.LOADING="loading",e.LOADED="loaded",e.ERROR="error"}(t||(t={})),function(e){e.VISIBLE="visible",e.HIDDEN="hidden",e.DISABLED="disabled"}(s||(s={})),function(e){e.TC_LOADED="tcloaded",e.CMP_UI_SHOWN="cmpuishown",e.USER_ACTION_COMPLETE="useractioncomplete"}(r||(r={}));class p{listenerId;callback;next;param;success=!0;constructor(e,t,s,r){Object.assign(this,{callback:e,listenerId:s,param:t,next:r});try{this.respond()}catch(e){this.invokeCallback(null)}}invokeCallback(e){const t=null!==e;"function"==typeof this.next?this.callback(this.next,e,t):this.callback(e,t)}}class d extends p{respond(){this.throwIfParamInvalid(),this.invokeCallback(new f(this.param,this.listenerId))}throwIfParamInvalid(){if(!(void 0===this.param||Array.isArray(this.param)&&this.param.every(Number.isInteger)))throw new Error("Invalid Parameter")}}class u{eventQueue=new Map;queueNumber=0;add(e){return this.eventQueue.set(this.queueNumber,e),this.queueNumber++}remove(e){return this.eventQueue.delete(e)}exec(){this.eventQueue.forEach((e,t)=>{new d(e.callback,e.param,t,e.next)})}clear(){this.queueNumber=0,this.eventQueue.clear()}get size(){return this.eventQueue.size}}class h{static apiVersion="2";static tcfPolicyVersion;static eventQueue=new u;static cmpStatus=t.LOADING;static disabled=!1;static displayStatus=s.HIDDEN;static cmpId;static cmpVersion;static eventStatus;static gdprApplies;static tcModel;static tcString;static reset(){delete this.cmpId,delete this.cmpVersion,delete this.eventStatus,delete this.gdprApplies,delete this.tcModel,delete this.tcString,delete this.tcfPolicyVersion,this.cmpStatus=t.LOADING,this.disabled=!1,this.displayStatus=s.HIDDEN,this.eventQueue.clear()}}class g{cmpId=h.cmpId;cmpVersion=h.cmpVersion;gdprApplies=h.gdprApplies;tcfPolicyVersion=h.tcfPolicyVersion}class m extends g{cmpStatus=t.ERROR}class f extends g{tcString;listenerId;eventStatus;cmpStatus;isServiceSpecific;useNonStandardTexts;publisherCC;purposeOneTreatment;outOfBand;purpose;vendor;specialFeatureOptins;publisher;constructor(e,t){if(super(),this.eventStatus=h.eventStatus,this.cmpStatus=h.cmpStatus,this.listenerId=t,h.gdprApplies){const t=h.tcModel;this.tcString=h.tcString,this.isServiceSpecific=t.isServiceSpecific,this.useNonStandardTexts=t.useNonStandardTexts,this.purposeOneTreatment=t.purposeOneTreatment,this.publisherCC=t.publisherCountryCode,this.outOfBand={allowedVendors:this.createVectorField(t.vendorsAllowed,e),disclosedVendors:this.createVectorField(t.vendorsDisclosed,e)},this.purpose={consents:this.createVectorField(t.purposeConsents),legitimateInterests:this.createVectorField(t.purposeLegitimateInterests)},this.vendor={consents:this.createVectorField(t.vendorConsents,e),legitimateInterests:this.createVectorField(t.vendorLegitimateInterests,e),disclosedVendors:this.createVectorField(t.vendorsDisclosed,e)},this.specialFeatureOptins=this.createVectorField(t.specialFeatureOptins),this.publisher={consents:this.createVectorField(t.publisherConsents),legitimateInterests:this.createVectorField(t.publisherLegitimateInterests),customPurpose:{consents:this.createVectorField(t.publisherCustomConsents),legitimateInterests:this.createVectorField(t.publisherCustomLegitimateInterests)},restrictions:this.createRestrictions(t.publisherRestrictions)}}}createRestrictions(e){const t={};if(e.numRestrictions>0){const s=e.getMaxVendorId();for(let r=1;r<=s;r++){const s=r.toString();
1e.getRestrictions(r).forEach(e=>{const r=e.purposeId.toString();t[r]||(t[r]={}),t[r][s]=e.restrictionType})}}return t}createVectorField(e,t){return t?t.reduce((t,s)=>(t[String(s)]=e.has(Number(s)),t),{}):[...e].reduce((e,t)=>(e[t[0].toString(10)]=t[1],e),{})}}class v extends f{constructor(e){super(e),delete this.outOfBand}createVectorField(e){return[...e].reduce((e,t)=>e+(t[1]?"1":"0"),"")}createRestrictions(e){const t={};if(e.numRestrictions>0){const s=e.getMaxVendorId();e.getRestrictions().forEach(e=>{t[e.purposeId.toString()]="_".repeat(s)});for(let r=0;r<s;r++){const s=r+1;e.getRestrictions(s).forEach(e=>{const s=e.restrictionType.toString(),n=e.purposeId.toString(),i=t[n].substr(0,r),o=t[n].substr(r+1);t[n]=i+s+o})}}return t}}class b extends g{cmpLoaded=!0;cmpStatus=h.cmpStatus;displayStatus=h.displayStatus;apiVersion=String(h.apiVersion);gvlVersion;constructor(){super(),h.tcModel&&h.tcModel.vendorListVersion&&(this.gvlVersion=+h.tcModel.vendorListVersion)}}class C extends p{respond(){this.invokeCallback(new b)}}class I extends d{respond(){this.throwIfParamInvalid(),this.invokeCallback(new v(this.param))}}class E extends Error{constructor(e){super(e),this.name="DecodingError"}}class y extends Error{constructor(e){super(e),this.name="EncodingError"}}class _ extends Error{constructor(e){super(e),this.name="GVLError"}}class S extends Error{constructor(e,t,s=""){super(`invalid value ${t} passed for ${e} ${s}`),this.name="TCModelError"}}class w{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 y("Invalid bitField");const t=e.length%this.LCM;e+=t?"0".repeat(this.LCM-t):"";let s="";for(let t=0;t<e.length;t+=this.BASIS)s+=this.DICT[parseInt(e.substr(t,this.BASIS),2)];return s}static decode(e){if(!/^[A-Za-z0-9\-_]+$/.test(e))throw new E("Invalidly encoded Base64URL string");let t="";for(let s=0;s<e.length;s++){const r=this.REVERSE_DICT.get(e[s]).toString(2);t+="0".repeat(this.BASIS-r.length)+r}return t}}class L{static langSet=new Set(["AR","BG","BS","CA","CS","CY","DA","DE","EL","EN","ES","ET","EU","FI","FR","GL","HE","HI","HR","HU","ID","IS","IT","JA","KA","KO","LT","LV","MK","MS","MT","NL","NO","PL","PT-BR","PT-PT","RO","RU","SK","SL","SQ","SR-LATN","SR-CYRL","SV","SW","TH","TL","TR","UK","VI","ZH","ZH-HANT"]);has(e){return L.langSet.has(e)}parseLanguage(e){const t=(e=e.toUpperCase()).split("-")[0];if(e.length>=2&&2==t.length){if(L.langSet.has(e))return e;if(L.langSet.has(t))return t;const s=t+"-"+t;if(L.langSet.has(s))return s;for(const s of L.langSet)if(-1!==s.indexOf(e)||-1!==s.indexOf(t))return s}throw new Error(`unsupported language ${e}`)}forEach(e){L.langSet.forEach(e)}get size(){return L.langSet.size}}class A{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 useNonStandardTexts="useNonStandardTexts";static vendorConsents="vendorConsents";static vendorLegitimateInterests="vendorLegitimateInterests";static vendorListVersion="vendorListVersion";static vendorsAllowed="vendorsAllowed";static vendorsDisclosed="vendorsDisclosed";static version="version"}class V{clone(){const e=new this.constructor;
1return Object.keys(this).forEach(t=>{const s=this.deepClone(this[t]);void 0!==s&&(e[t]=s)}),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 s of e)t.push(this.deepClone(s));return e instanceof Array?t:new e.constructor(t)}{const t={};for(const s in e)e.hasOwnProperty(s)&&(t[s]=this.deepClone(e[s]));return t}}}}!function(e){e[e.NOT_ALLOWED=0]="NOT_ALLOWED",e[e.REQUIRE_CONSENT=1]="REQUIRE_CONSENT",e[e.REQUIRE_LI=2]="REQUIRE_LI"}(n||(n={}));class T extends V{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),s=new T;if(2!==t.length)throw new S("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}${T.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===n.NOT_ALLOWED||this.restrictionType===n.REQUIRE_CONSENT||this.restrictionType===n.REQUIRE_LI)}isSameAs(e){return this.purposeId===e.purposeId&&this.restrictionType===e.restrictionType}}class O extends V{bitLength=0;map=new Map;gvl_;has(e){return this.map.has(e)}isOkToHave(e,t,s){let r=!0;if(this.gvl?.vendors){const i=this.gvl.vendors[s];if(i)if(e===n.NOT_ALLOWED)r=i.legIntPurposes.includes(t)||i.purposes.includes(t);else if(i.flexiblePurposes.length)switch(e){case n.REQUIRE_CONSENT:r=i.flexiblePurposes.includes(t)&&i.legIntPurposes.includes(t);break;case n.REQUIRE_LI:r=i.flexiblePurposes.includes(t)&&i.purposes.includes(t)}else r=!1;else r=!1}return r}add(e,t){if(this.isOkToHave(t.restrictionType,t.purposeId,e)){const s=t.hash;this.has(s)||(this.map.set(s,new Set),this.bitLength=0),this.map.get(s).add(e)}}restrictPurposeToLegalBasis(e){const t=Array.from(this.gvl.vendorIds),s=e.hash,r=t[t.length-1],n=[...Array(r).keys()].map(e=>e+1);if(this.has(s))for(let e=1;e<=r;e++)this.map.get(s).add(e);else this.map.set(s,new Set(n)),this.bitLength=0}getVendors(e){let t=[];if(e){const s=e.hash;this.has(s)&&(t=Array.from(this.map.get(s)))}else{const e=new Set;this.map.forEach(t=>{t.forEach(t=>{e.add(t)})}),t=Array.from(e)}return t.sort((e,t)=>e-t)}getRestrictionType(e,t){let s;return this.getRestrictions(e).forEach(e=>{e.purposeId===t&&(void 0===s||s>e.restrictionType)&&(s=e.restrictionType)}),s}vendorHasRestriction(e,t){let s=!1;const r=this.getRestrictions(e);for(let e=0;e<r.length&&!s;e++)s=t.isSameAs(r[e]);return s}getMaxVendorId(){let e=0;return this.map.forEach(t=>{e=Math.max(Array.from(t)[t.size-1],e)}),e}getRestrictions(e){const t=[];return this.map.forEach((s,r)=>{e?s.has(e)&&t.push(T.unHash(r)):t.push(T.unHash(r))}),t}getPurposes(){const e=new Set;return this.map.forEach((t,s)=>{e.add(T.unHash(s).purposeId)}),Array.from(e)}remove(e,t){const s=t.hash,r=this.map.get(s);r&&(r.delete(e),0==r.size&&(this.map.delete(s),this.bitLength=0))}set gvl(e){this.gvl_||(this.gvl_=e,this.map.forEach((e,t)=>{const s=T.unHash(t);Array.from(e).forEach(t=>{this.isOkToHave(s.restrictionType,s.purposeId,t)||e.delete(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"}(i||(i={})),function(e){e.CORE="core",e.VENDORS_DISCLOSED="vendorsDisclosed",e.VENDORS_ALLOWED="vendorsAllowed",e.PUBLISHER_TC="publisherTC"}(o||(o={}));class N{static ID_TO_KEY=[o.CORE,o.VENDORS_DISCLOSED,o.VENDORS_ALLOWED,o.PUBLISHER_TC];static KEY_TO_ID={[o.CORE]:0,[o.VENDORS_DISCLOSED]:1,[o.VENDORS_ALLOWED]:2,[o.PUBLISHER_TC]:3}}class k extends V{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)}
1unset(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 s=Number.isInteger(parseInt(t,10));return s=s&&this.isValidNumber(e[t].id),s=s&&void 0!==e[t].name,s}),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 S("set()",e,"must be positive integer array, positive integer, Set<number>, or IntMap");this.set_.add(e),this.maxId_=Math.max(this.maxId,e),this.bitLength=0}}empty(){this.set_=new Set,this.maxId_=0}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 P{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.useNonStandardTexts]=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}class R{static encode(e,t){let s;if("string"==typeof e&&(e=parseInt(e,10)),s=e.toString(2),s.length>t||e<0)throw new y(`${e} too large to encode into ${t}`);return s.length<t&&(s="0".repeat(t-s.length)+s),s}static decode(e,t){if(t!==e.length)throw new E("invalid bit length");return parseInt(e,2)}}class D{static encode(e,t){return R.encode(Math.round(e.getTime()/100),t)}static decode(e,t){if(t!==e.length)throw new E("invalid bit length");const s=new Date;return s.setTime(100*R.decode(e,t)),s}}class x{static encode(e){return String(Number(e))}static decode(e){return"1"===e}}class F{static encode(e,t){let s="";for(let r=1;r<=t;r++)s+=x.encode(e.has(r));return s}static decode(e,t){if(e.length!==t)throw new E("bitfield encoding length mismatch");const s=new k;for(let r=1;r<=t;r++)x.decode(e[r-1])&&s.set(r);return s.bitLength=e.length,s}}class U{static encode(e,t){const s=(e=e.toUpperCase()).charCodeAt(0)-65,r=e.charCodeAt(1)-65;if(s<0||s>25||r<0||r>25)throw new y(`invalid language code: ${e}`);if(t%2==1)throw new y(`numBits must be even, ${t} is not valid`);return t/=2,R.encode(s,t)+R.encode(r,t)}static decode(e,t){let s;if(t!==e.length||e.length%2)throw new E("invalid bit length for language");{const t=65,r=e.length/2,n=R.decode(e.slice(0,r),r)+t,i=R.decode(e.slice(r),r)+t;s=String.fromCharCode(n)+String.fromCharCode(i)}return s}}class M{static encode(e){let t=R.encode(e.numRestrictions,P.numRestrictions);if(!e.isEmpty()){const s=(t,s)=>{for(let r=t+1;r<=s;r++)if(e.gvl.vendorIds.has(r))return r;return t};e.getRestrictions().forEach(r=>{t+=R.encode(r.purposeId,P.purposeId),t+=R.encode(r.restrictionType,P.restrictionType);const n=e.getVendors(r),i=n.length;let o=0,a=0,c="";for(let e=0;e<i;e++){const t=n[e];if(0===a&&(o++,a=t),e===i-1||n[e+1]>s(t,n[i-1])){const e=!(t===a);c+=x.encode(e),c+=R.encode(a,P.vendorId),e&&(c+=R.encode(t,P.vendorId)),a=0}}t+=R.encode(o,P.numEntries),t+=c})}return t}static decode(e){let t=0;const s=new O,r=R.decode(e.substr(t,P.numRestrictions),P.numRestrictions);t+=P.numRestrictions;for(let n=0;n<r;n++){const r=R.decode(e.substr(t,P.purposeId),P.purposeId);t+=P.purposeId;const n=R.decode(e.substr(t,P.restrictionType),P.restrictionType);t+=P.restrictionType;const i=new T(r,n),o=R.decode(e.substr(t,P.numEntries),P.numEntries);t+=P.numEntries;for(let r=0;r<o;r++){const r=x.decode(e.substr(t,P.anyBoolean));t+=P.anyBoolean;const n=R.decode(e.substr(t,P.vendorId),P.vendorId);if(t+=P.vendorId,r){const r=R.decode(e.substr(t,P.vendorId),P.vendorId);if(t+=P.vendorId,r<n)throw new E(`Invalid RangeEntry: endVendorId ${r} is less than ${n}`);for(let e=n;e<=r;e++)s.add(e,i)}else s.add(n,i)}}return s.bitLength=t,s}}!function(e){e[e.FIELD=0]="FIELD",e[e.RANGE=1]="RANGE"}(a||(a={}));
1class j{static encode(e){const t=[];let s,r=[],n=R.encode(e.maxId,P.maxId),i="";const o=P.maxId+P.encodingType,c=o+e.maxId,l=2*P.vendorId+P.singleOrRange+P.numEntries;let p=o+P.numEntries;return e.forEach((n,o)=>{i+=x.encode(n),s=e.maxId>l&&p<c,s&&n&&(e.has(o+1)?0===r.length&&(r.push(o),p+=P.singleOrRange,p+=P.vendorId):(r.push(o),p+=P.vendorId,t.push(r),r=[]))}),s?(n+=String(a.RANGE),n+=this.buildRangeEncoding(t)):(n+=String(a.FIELD),n+=i),n}static decode(e,t){let s,r=0;const n=R.decode(e.substr(r,P.maxId),P.maxId);r+=P.maxId;const i=R.decode(e.charAt(r),P.encodingType);if(r+=P.encodingType,i===a.RANGE){if(s=new k,1===t){if("1"===e.substr(r,1))throw new E("Unable to decode default consent=1");r++}const n=R.decode(e.substr(r,P.numEntries),P.numEntries);r+=P.numEntries;for(let t=0;t<n;t++){const t=x.decode(e.charAt(r));r+=P.singleOrRange;const n=R.decode(e.substr(r,P.vendorId),P.vendorId);if(r+=P.vendorId,t){const t=R.decode(e.substr(r,P.vendorId),P.vendorId);r+=P.vendorId;for(let e=n;e<=t;e++)s.set(e)}else s.set(n)}}else{const t=e.substr(r,n);r+=n,s=F.decode(t,n)}return s.bitLength=r,s}static buildRangeEncoding(e){const t=e.length;let s=R.encode(t,P.numEntries);return e.forEach(e=>{const t=1===e.length;s+=x.encode(!t),s+=R.encode(e[0],P.vendorId),t||(s+=R.encode(e[1],P.vendorId))}),s}}function G(){return{[A.version]:R,[A.created]:D,[A.lastUpdated]:D,[A.cmpId]:R,[A.cmpVersion]:R,[A.consentScreen]:R,[A.consentLanguage]:U,[A.vendorListVersion]:R,[A.policyVersion]:R,[A.isServiceSpecific]:x,[A.useNonStandardTexts]:x,[A.specialFeatureOptins]:F,[A.purposeConsents]:F,[A.purposeLegitimateInterests]:F,[A.purposeOneTreatment]:x,[A.publisherCountryCode]:U,[A.vendorConsents]:j,[A.vendorLegitimateInterests]:j,[A.publisherRestrictions]:M,segmentType:R,[A.vendorsDisclosed]:j,[A.vendorsAllowed]:j,[A.publisherConsents]:F,[A.publisherLegitimateInterests]:F,[A.numCustomPurposes]:R,[A.publisherCustomConsents]:F,[A.publisherCustomLegitimateInterests]:F}}class Q{1={[o.CORE]:[A.version,A.created,A.lastUpdated,A.cmpId,A.cmpVersion,A.consentScreen,A.consentLanguage,A.vendorListVersion,A.purposeConsents,A.vendorConsents]};2={[o.CORE]:[A.version,A.created,A.lastUpdated,A.cmpId,A.cmpVersion,A.consentScreen,A.consentLanguage,A.vendorListVersion,A.policyVersion,A.isServiceSpecific,A.useNonStandardTexts,A.specialFeatureOptins,A.purposeConsents,A.purposeLegitimateInterests,A.purposeOneTreatment,A.publisherCountryCode,A.vendorConsents,A.vendorLegitimateInterests,A.publisherRestrictions],[o.PUBLISHER_TC]:[A.publisherConsents,A.publisherLegitimateInterests,A.numCustomPurposes,A.publisherCustomConsents,A.publisherCustomLegitimateInterests],[o.VENDORS_ALLOWED]:[A.vendorsAllowed],[o.VENDORS_DISCLOSED]:[A.vendorsDisclosed]}}class H{1=[o.CORE];2=[o.CORE];constructor(e,t){if(2===e.version)if(e.isServiceSpecific)this[2].push(o.PUBLISHER_TC),this[2].push(o.VENDORS_DISCLOSED);else{const s=!(!t||!t.isForVendors);s&&!0!==e[A.supportOOB]||this[2].push(o.VENDORS_DISCLOSED),s&&(e[A.supportOOB]&&e[A.vendorsAllowed].size>0&&this[2].push(o.VENDORS_ALLOWED),this[2].push(o.PUBLISHER_TC))}}}class B{static fieldSequence=new Q;static encode(e,t){let s;try{s=this.fieldSequence[String(e.version)][t]}catch(s){throw new y(`Unable to encode version: ${e.version}, segment: ${t}`)}let r="";t!==o.CORE&&(r=R.encode(N.KEY_TO_ID[t],P.segmentType));const n=G();return s.forEach(s=>{const i=e[s],o=n[s];let a=P[s];void 0===a&&this.isPublisherCustom(s)&&(a=Number(e[A.numCustomPurposes]));try{r+=o.encode(i,a)}catch(e){throw new y(`Error encoding ${t}->${s}: ${e.message}`)}}),w.encode(r)}static decode(e,t,s){const r=w.decode(e);let n=0;s===o.CORE&&(t.version=R.decode(r.substr(n,P[A.version]),P[A.version])),s!==o.CORE&&(n+=P.segmentType);const i=this.fieldSequence[String(t.version)][s],a=G();return i.forEach(e=>{const s=a[e];let i=P[e];if(void 0===i&&this.isPublisherCustom(e)&&(i=Number(t[A.numCustomPurposes])),0!==i){const o=r.substr(n,i);if(t[e]=s===j?s.decode(o,t.version):s.decode(o,i),Number.isInteger(i))n+=i;else{if(!Number.isInteger(t[e].bitLength))throw new E(e);n+=t[e].bitLength}}}),t}static isPublisherCustom(e){return 0===e.indexOf("publisherCustom")}}class ${static processor=[e=>e,(e,t)=>{e.publisherRestrictions.gvl=t,e.purposeLegitimateInterests.unset([1,3,4,5,6]);const s=new Map;return s.set("legIntPurposes",e.vendorLegitimateInterests),s.set("purposes",e.vendorConsents),s.forEac
1h((s,r)=>{s.forEach((i,o)=>{if(i){const i=t.vendors[o];if(!i||i.deletedDate)s.unset(o);else if(0===i[r].length)if("legIntPurposes"===r&&0===i.purposes.length&&0===i.legIntPurposes.length&&i.specialPurposes.length>0)s.set(o);else if("legIntPurposes"===r&&i.purposes.length>0&&0===i.legIntPurposes.length&&i.specialPurposes.length>0)s.set(o);else if(e.isServiceSpecific)if(0===i.flexiblePurposes.length)s.unset(o);else{const t=e.publisherRestrictions.getRestrictions(o);let i=!1;for(let e=0,s=t.length;e<s&&!i;e++)i=t[e].restrictionType===n.REQUIRE_CONSENT&&"purposes"===r||t[e].restrictionType===n.REQUIRE_LI&&"legIntPurposes"===r;i||s.unset(o)}else s.unset(o)}})}),e}];static process(e,t){const s=e.gvl;if(!s)throw new y("Unable to encode TCModel without a GVL");if(!s.isReady)throw new y("Unable to encode TCModel tcModel.gvl.readyPromise is not resolved");(e=e.clone()).consentLanguage=s.language.slice(0,2).toUpperCase(),t?.version>0&&t?.version<=this.processor.length?e.version=t.version:e.version=this.processor.length;const r=e.version-1;if(!this.processor[r])throw new y(`Invalid version: ${e.version}`);return this.processor[r](e,s)}}class W{static absCall(e,t,s,r){return new Promise((n,i)=>{const o=new XMLHttpRequest;o.withCredentials=s,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){}n(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=r,o.ontimeout=()=>{i(new Error("Timeout "+r+"ms "+e))},o.send(t)})}static post(e,t,s=!1,r=0){return this.absCall(e,JSON.stringify(t),s,r)}static fetch(e,t=!1,s=0){return this.absCall(e,null,t,s)}}class z extends V{static LANGUAGE_CACHE=new Map;static CACHE=new Map;static LATEST_CACHE_KEY=0;static DEFAULT_LANGUAGE="EN";static consentLanguages=new L;static baseUrl_;static set baseUrl(e){if(/^https?:\/\/vendorlist\.consensu\.org\//.test(e))throw new _("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;dataCategories;lang_;cacheLang_;isLatest=!1;constructor(e,t){super();let s=z.baseUrl,r=t?.language;if(r)try{r=z.consentLanguages.parseLanguage(r)}catch(e){throw new _("Error during parsing the language: "+e.message)}if(this.lang_=r||z.DEFAULT_LANGUAGE,this.cacheLang_=r||z.DEFAULT_LANGUAGE,this.isVendorList(e))this.populate(e),this.readyPromise=Promise.resolve();else{if(!s)throw new _("must specify GVL.baseUrl before loading GVL json");if(e>0){const t=e;z.CACHE.has(t)?(this.populate(z.CACHE.get(t)),this.readyPromise=Promise.resolve()):(s+=z.versionedFilename.replace("[VERSION]",String(t)),this.readyPromise=this.fetchJson(s))}else z.CACHE.has(z.LATEST_CACHE_KEY)?(this.populate(z.CACHE.get(z.LATEST_CACHE_KEY)),this.readyPromise=Promise.resolve()):(this.isLatest=!0,this.readyPromise=this.fetchJson(s+z.latestFilename))}}static emptyLanguageCache(e){let t=!1;return null==e&&z.LANGUAGE_CACHE.size>0?(z.LANGUAGE_CACHE=new Map,t=!0):"string"==typeof e&&this.consentLanguages.has(e.toUpperCase())&&(z.LANGUAGE_CACHE.delete(e.toUpperCase()),t=!0),t}static emptyCache(e){let t=!1;return Number.isInteger(e)&&e>=0?(z.CACHE.delete(e),t=!0):void 0===e&&(z.CACHE=new Map,t=!0),t}cacheLanguage(){z.LANGUAGE_CACHE.has(this.cacheLang_)||z.LANGUAGE_CACHE.set(this.cacheLang_,{purposes:this.purposes,specialPurposes:this.specialPurposes,features:this.features,specialFeatures:this.specialFeatures,stacks:this.stacks,dataCategories:this.dataCategories})}async fetchJson(e){try{this.populate(await W.fetch(e))}catch(e){throw new _(e.message)}}getJson(){return{gvlSpecificationVersion:this.gvlSpecificationVersion,vendorListVersion:this.vendorListVersion,tcfPolicyVersion:this.tcfPolicyVersion,lastUpdated:this.lastUpdated,purposes:this.clonePurposes(),specialPurposes:this.cloneSpecialPurposes(),features:this.cloneFeatures(),specialFeatures:this.cloneSpecialFeatures(),stacks:this.cloneStacks(),...this.dataCategories?{dataCategories:this.cloneDataCategories()}:{},vendors:this.cloneVendors()}}cloneSpecialFeatures(){const e={};for(const t of Object.keys(this.specialFeatures))e[t]=z.cloneFeature(this.specialFeatures[t]);return e}cloneFeatures(){const e={};for(const t of Object.keys(this.features))e[t]=z.cloneFeature(this.features[t]);return e}cloneStacks(){const e={};for(const t of Object.keys(this.stacks))e[t]=z.cloneStack(this.stacks[t]);return e}cloneDataCategories(){const e={};for(const t of Object.keys(this.dataCategories))e[t]=z.cloneDataCategory(this.dataCategories[t]);return e}cloneSpecialPurposes(){const e={};for(const t of Object.keys(this.specialPurposes))e[t]=z.clonePurpose(this.specialPurposes[t]);return e}clonePurposes(){const e={};for(const t of Object.keys(this.purposes))e[t]=z.clonePurpose(this.purposes[t]);return e}static clonePurpose(e){return{id:e.id,name:e.name,description:e.description,...e.descriptionLegal?{descriptionLegal:e.descriptionLegal}:{},...e.illustrations?{illustrations:Array.from(e.illustrations)}:{}}}static cloneFeature(e){return{id:e.id,name:e.name,description:e.description,...e.descriptionLegal?{descriptionLegal:e.descriptionLegal}:{},...e.illustrations?{illustrations:Array.from(e.illustrations)}:{}}}static cloneDataCategory(e){return{id:e.id,name:e.name,description:e.description}}static cloneStack(e){return{id:e.id,name:e.name,description:e.description,purposes:Array.from(e.purposes),specialFeatures:Array.from(e.specialFeatures)}}static cloneDataRetention(e){return{..."number"==typeof e.stdRetention?{stdRetention:e.stdRetention}:{},purposes:{...e.purposes},specialPurposes:{...e.specialPurposes}}}static cloneVendorUrls(e){return e.map(e=>({langId:e.langId,privacy:e.privacy,...e.legIntClaim?{legIntClaim:e.legIntClaim}:{}}))}static cloneVendor(e){return{id:e.id,name:e.name,purposes:Array.from(e.purposes),legIntPurposes:Array.from(e.legIntPurposes),flexiblePurposes:Array.from(e.flexiblePurposes),specialPurposes:Array.from(e.specialPurposes),features:Array.from(e.features),specialFeatures:Array.from(e.specialFeatures),...e.overflow?{overflow:{httpGetLimit:e.overflow.httpGetLimit}}:{},..."number"==typeof e.cookieMaxAgeSeconds||null===e.cookieMaxAgeSeconds?{cookieMaxAgeSeconds:e.cookieMaxAgeSeconds}:{},...void 0!==e.usesCookies?{usesCookies:e.usesCookies}:{},...e.policyUrl?{policyUrl:e.policyUrl}:{},...void 0!==e.cookieRefresh?{cookieRefresh:e.cookieRefresh}:{},...void 0!==e.usesNonCookieAccess?{usesNonCookieAccess:e.usesNonCookieAccess}:{},...e.dataRetention?{dataRetention:this.cloneDataRetention(e.dataRetention)}:{},...e.urls?{urls:this.cloneVendorUrls(e.urls)}:{},...e.dataDeclaration?{dataDeclaration:Array.from(e.dataDeclaration)}:{},...e.deviceStorageDisclosureUrl?{deviceStorageDisclosureUrl:e.deviceStorageDisclosureUrl}:{},...e.deletedDate?{deletedDate:e.deletedDate}:{}}}cloneVendors(){const e={};for(const t of Object.keys(this.fullVendorList))e[t]=z.cloneVendor(this.fullVendorList[t]);return e}async changeLanguage(e){let t=e;try{t=z.consentLanguages.parseLanguage(e)}catch(e){throw new _("Error during parsing the language: "+e.message)}const s=e.toUpperCase();if((t.toLowerCase()!==z.DEFAULT_LANGUAGE.toLowerCase()||z.LANGUAGE_CACHE.has(s))&&t!==this.lang_)if(this.lang_=t,z.LANGUAGE_CACHE.has(s)){const e=z.LANGUAGE_CACHE.get(s);for(const t in e)e.hasOwnProperty(t)&&(this[t]=e[t])}else{const e=z.baseUrl+z.languageFilename.replace("[LANG]",this.lang_.toLowerCase());try{await this.fetchJson(e),this.cacheLang_=s,this.cacheLanguage()}catch(e){throw new _("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.dataCategories=e.dataCategories,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.vend
1ors,this.mapVendors(),this.isReady_=!0,this.isLatest&&z.CACHE.set(z.LATEST_CACHE_KEY,this.getJson()),z.CACHE.has(this.vendorListVersion)||z.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 s=this.vendors_[String(t)];return s&&void 0===s.deletedDate&&(s.purposes.forEach(e=>{this.byPurposeVendorMap[String(e)].consent.add(t)}),s.specialPurposes.forEach(e=>{this.bySpecialPurposeVendorMap[String(e)].add(t)}),s.legIntPurposes.forEach(e=>{this.byPurposeVendorMap[String(e)].legInt.add(t)}),s.flexiblePurposes&&s.flexiblePurposes.forEach(e=>{this.byPurposeVendorMap[String(e)].flexible.add(t)}),s.features.forEach(e=>{this.byFeatureVendorMap[String(e)].add(t)}),s.specialFeatures.forEach(e=>{this.bySpecialFeatureVendorMap[String(e)].add(t)}),e[t]=s),e},{})}getFilteredVendors(e,t,s,r){const n=e.charAt(0).toUpperCase()+e.slice(1);let i;const o={};return i="purpose"===e&&s?this["by"+n+"VendorMap"][String(t)][s]:this["by"+(r?"Special":"")+n+"VendorMap"][String(t)],i.forEac
1h(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 z(this.getJson());return this.lang_!==z.DEFAULT_LANGUAGE&&e.changeLanguage(this.lang_),e}static isInstanceOf(e){return"object"==typeof e&&"function"==typeof e.narrowVendorsTo}}class J extends V{static consentLanguages=z.consentLanguages;isServiceSpecific_=!1;supportOOB_=!0;useNonStandardTexts_=!1;purposeOneTreatment_=!1;publisherCountryCode_="AA";version_=2;consentScreen_=0;policyVersion_=5;consentLanguage_="EN";cmpId_=0;cmpVersion_=0;vendorListVersion_=0;numCustomPurposes_=0;gvl_;created;lastUpdated;specialFeatureOptins=new k;purposeConsents=new k;purposeLegitimateInterests=new k;publisherConsents=new k;publisherLegitimateInterests=new k;publisherCustomConsents=new k;publisherCustomLegitimateInterests=new k;customPurposes;vendorConsents=new k;vendorLegitimateInterests=new k;vendorsDisclosed=new k;vendorsAllowed=new k;publisherRestrictions=new O;constructor(e){super(),e&&(this.gvl=e),this.updated()}set gvl(e){z.isInstanceOf(e)||(e=new z(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 S("cmpId",e);this.cmpId_=e}get cmpId(){return this.cmpId_}set cmpVersion(e){if(e=Number(e),!(Number.isInteger(e)&&e>-1))throw new S("cmpVersion",e);this.cmpVersion_=e}get cmpVersion(){return this.cmpVersion_}set consentScreen(e){if(e=Number(e),!(Number.isInteger(e)&&e>-1))throw new S("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 S("publisherCountryCode",e);this.publisherCountryCode_=e.toUpperCase()}get publisherCountryCode(){return this.publisherCountryCode_}set vendorListVersion(e){if((e=0|Number(e))<0)throw new S("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 S("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 useNonStandardTexts(e){this.useNonStandardTexts_=e}get useNonStandardTexts(){return this.useNonStandardTexts_}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)=>
1Number(e)-Number(t));e=parseInt(t.pop(),10)}return e}set numCustomPurposes(e){if(this.numCustomPurposes_=parseInt(e,10),this.numCustomPurposes_<0)throw new S("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 K{static encode(e,t){let s,r="";return e=$.process(e,t),s=Array.isArray(t?.segments)?t.segments:new H(e,t)[""+e.version],s.forEach((t,n)=>{let i="";n<s.length-1&&(i="."),r+=B.encode(e,t)+i}),r}static decode(e,t){const s=e.split("."),r=s.length;t||(t=new J);for(let e=0;e<r;e++){const r=s[e],n=w.decode(r.charAt(0)).substr(0,P.segmentType),i=N.ID_TO_KEY[R.decode(n,P.segmentType).toString()];B.decode(r,t,i)}return t}}class Y extends p{respond(){const e=h.tcModel,t=e.vendorListVersion;let s;void 0===this.param&&(this.param=t),s=this.param===t&&e.gvl?e.gvl:new z(this.param),s.readyPromise.then(()=>{this.invokeCallback(s.getJson())})}}class q extends d{respond(){this.listenerId=h.eventQueue.add({callback:this.callback,param:this.param,next:this.next}),super.respond()}}class Z extends p{respond(){this.invokeCallback(h.eventQueue.remove(this.param))}}class X{static[e.PING]=C;static[e.GET_TC_DATA]=d;static[e.GET_IN_APP_TC_DATA]=I;static[e.GET_VENDOR_LIST]=Y;static[e.ADD_EVENT_LISTENER]=q;static[e.REMOVE_EVENT_LISTENER]=Z}class ee{static set_=new Set([0,2,void 0,null]);static has(e){return"string"==typeof e&&(e=Number(e)),this.set_.has(e)}}const te="__tcfapi";class se{callQueue;customCommands;constructor(t){if(t){let s=e.ADD_EVENT_LISTENER;if(t?.[s])throw new Error(`Built-In Custom Commmand for ${s} not allowed: Use ${e.GET_TC_DATA} instead`);
1if(s=e.REMOVE_EVENT_LISTENER,t?.[s])throw new Error(`Built-In Custom Commmand for ${s} not allowed`);t?.[e.GET_TC_DATA]&&(t[e.ADD_EVENT_LISTENER]=t[e.GET_TC_DATA],t[e.REMOVE_EVENT_LISTENER]=t[e.GET_TC_DATA]),this.customCommands=t}try{this.callQueue=window[te]()||[]}catch(e){this.callQueue=[]}finally{window[te]=this.apiCall.bind(this),this.purgeQueuedCalls()}}apiCall(t,s,r,...n){if("string"!=typeof t)r(null,!1);else if(ee.has(s)){if("function"!=typeof r)throw new Error("invalid callback function");h.disabled?r(new m,!1):this.isCustomCommand(t)||this.isBuiltInCommand(t)?this.isCustomCommand(t)&&!this.isBuiltInCommand(t)?this.customCommands[t](r,...n):t===e.PING?this.isCustomCommand(t)?new X[t](this.customCommands[t],n[0],null,r):new X[t](r,n[0]):void 0===h.tcModel?this.callQueue.push([t,s,r,...n]):this.isCustomCommand(t)&&this.isBuiltInCommand(t)?new X[t](this.customCommands[t],n[0],null,r):new X[t](r,n[0]):r(null,!1)}else r(null,!1)}purgeQueuedCalls(){const e=this.callQueue;this.callQueue=[],e.forEach(e=>{window[te](...e)})}isCustomCommand(e){return this.customCommands&&"function"==typeof this.customCommands[e]}isBuiltInCommand(e){return void 0!==X[e]}}class re{callResponder;isServiceSpecific;numUpdates=0;constructor(e,t,s=!1,r){this.throwIfInvalidInt(e,"cmpId",2),this.throwIfInvalidInt(t,"cmpVersion",0),h.cmpId=e,h.cmpVersion=t,h.tcfPolicyVersion=5,this.isServiceSpecific=!!s,this.callResponder=new se(r)}throwIfInvalidInt(e,t,s){if(!("number"==typeof e&&Number.isInteger(e)&&e>=s))throw new Error(`Invalid ${t}: ${e}`)}update(e,n=!1){if(h.disabled)throw new Error("CmpApi Disabled");h.cmpStatus=t.LOADED,n?(h.displayStatus=s.VISIBLE,h.eventStatus=r.CMP_UI_SHOWN):void 0===h.tcModel?(h.displayStatus=s.DISABLED,h.eventStatus=r.TC_LOADED):(h.displayStatus=s.HIDDEN,h.eventStatus=r.USER_ACTION_COMPLETE),h.gdprApplies=null!==e,h.gdprApplies?(""===e?(h.tcModel=new J,h.tcModel.cmpId=h.cmpId,h.tcModel.cmpVersion=h.cmpVersion):h.tcModel=K.decode(e),h.tcModel.isServiceSpecific=this.isServiceSpecific,h.tcfPolicyVersion=Number(h.tcModel.policyVersion),h.tcString=e):h.tcModel=null,0===this.numUpdates?this.callResponder.purgeQueuedCalls():h.eventQueue.exec(),this.numUpdates++}disable(){h.disabled=!0,h.cmpStatus=t.ERROR}}var ne,ie=function e(t){var s=l[t];if(void 0!==s)return s.exports;var r=l[t]={exports:{}};return c[t](r,r.exports,e),r.exports}(1040);if(!0!==iabtcf.is_iabtcf_on&&"true"!==iabtcf.is_iabtcf_on&&"1"!==iabtcf.is_iabtcf_on);else{const de=449,ue=1;function he(){const e=iabtcf?.data?.vendors||[];var t=Array.isArray(e)?e.map(e=>Number(e.id)).filter(Boolean):[];0===t.length&&(t=void 0!==ge&&ge?.vendors?Object.keys(ge.vendors).map(Number):[]),t.forEach(e=>ve.vendorsDisclosed.set(e))}ie();var oe={set:function(e,t,s){if(s){var r=new Date;r.setTime(r.getTime()+24*s*60*60*1e3);var n="; expires="+r.toUTCString()}else n="";document.cookie=e+"="+encodeURIComponent(t)+n+"; path=/"},read:function(e){for(var t=e+"=",s=document.cookie.split(";"),r=s.length,n=0;n<r;n++){for(var i=s[n];" "==i.charAt(0);)i=i.substring(1,i.length);if(0===i.indexOf(t))return decodeURIComponent(i.substring(t.length,i.length))}return null},exists:function(e){return null!==this.read(e)},getallcookies:function(){for(var e=document.cookie.split(";"),t={},s=e.length,r=0;r<s;r++){var n=e[r].split("=");t[(n[0]+"").trim()]=unescape(n[1])}return t},erase:function(e){this.set(e,"",-10)}};z.baseUrl="https://appwplegalpages.b-cdn.net/";const ge=new z;let me={},fe=[];me.purpose_consent=[],me.purpose_legint=[],me.legint=[],me.consent=[],me.feature_consent=[];const ve=new J;var ae="default tc string...",ce="",le=1==iabtcf.is_gacm_on||"true"==iabtcf.is_gacm_on||"1"==iabtcf.is_gacm_on?"true":"false",pe=1==iabtcf.is_gcm_advertiser_mode||"true"==iabtcf.is_gcm_advertiser_mode||"1"==iabtcf.is_gcm_advertiser_mode?"true":"false";let be;if(oe.exists("wpl_tc_string")){const ye=K.decode(oe.read("wpl_tc_string"));me.purpose_consent=Array.from(ye.purposeConsents.set_),me.purpose_legint=Array.from(ye.purposeLegitimateInterests.set_),me.legint=Array.from(ye.vendorLegitimateInterests.set_),me.consent=Array.from(ye.vendorConsents.set_),me.feature_consent=Array.from(ye.specialFeatureOptins.set_)}if(oe.exists("IABTCF_AddtlConsent")){const[_e,Se,we]=oe.read("IABTCF_AddtlConsent").split("~"),Le=Se.split(".").map(Number);fe=Le,1==fe.length&&0==Number(fe[0])&&(fe=[])}
1function Ce(){try{me.consent&&(ve.vendorConsents.forEach((e,t)=>{ve.vendorConsents.unset(t)}),ve.vendorConsents.set(me.consent.map(Number))),me.legint&&(ve.vendorLegitimateInterests.forEach((e,t)=>{ve.vendorLegitimateInterests.unset(t)}),ve.vendorLegitimateInterests.set(me.legint.map(Number))),me.purpose_consent&&(ve.purposeConsents.forEach((e,t)=>{ve.purposeConsents.unset(t)}),ve.purposeConsents.set(me.purpose_consent.map(Number))),me.purpose_legint&&(ve.purposeLegitimateInterests.forEach((e,t)=>{ve.purposeLegitimateInterests.unset(t)}),ve.purposeLegitimateInterests.set(me.purpose_legint.map(Number))),me.feature_consent&&(ve.specialFeatureOptins.forEach((e,t)=>{ve.specialFeatureOptins.unset(t)}),ve.specialFeatureOptins.set(me.feature_consent.map(Number)));var e=fe.join("."),t=iabtcf.gacm_data.map(e=>e[0]).filter(e=>!fe.includes(Number(e))).join(".");ce=`2~${e}~dv.${t}`,ve.addtlConsent=ce,ae=K.encode(ve),oe.set("wpl_tc_string",ae,365),oe.set("IABTCF_AddtlConsent",ce,365),me.tcString=ae,ve.tcString=ae,ve.addtlConsent=ce,be.update(ae,!0)}catch(e){console.error("Error updating TCModel:",e)}}function Ie(){try{ve.vendorConsents.forEach((e,t)=>{ve.vendorConsents.unset(t)}),ve.vendorLegitimateInterests.forEach((e,t)=>{ve.vendorLegitimateInterests.unset(t)}),ve.purposeConsents.forEach((e,t)=>{ve.purposeConsents.unset(t)}),ve.purposeLegitimateInterests.forEach((e,t)=>{ve.purposeLegitimateInterests.unset(t)}),ve.specialFeatureOptins.forEach((e,t)=>{ve.specialFeatureOptins.unset(t)}),fe=[];var e=iabtcf.gacm_data.map(e=>e[0]).join(".");ce=`2~~dv.${e}`,ve.addtlConsent=ce,ae=K.encode(ve),me.tcString=ae,ve.tcString=ae,oe.set("wpl_tc_string",ae,365),oe.set("IABTCF_AddtlConsent",ce,365),be.update(ae,!0),jQuery(".vendor-switch-handler").prop("checked",!1),jQuery(".gacm-vendor-switch-handler").prop("checked",!1),jQuery(".gacm-vendor-all-switch-handler").prop("checked",!1),jQuery(".vendor-all-switch-handler").prop("checked",!1),jQuery(".purposes-all-switch-handler").prop("checked",!1),jQuery(".purposes-switch-handler").prop("checked",!1),jQuery(".special-features-all-switch-handler").prop("checked",!1),jQuery(".special-features-switch-handler").prop("checked",!1)}catch(e){console.error("Error updating TCModel:",e)}}function Ee(){try{Object.keys(ge.vendors).forEach(e=>{const t=parseInt(e);ve.vendorConsents.set(t),ve.vendorLegitimateInterests.set(t)}),Object.keys(ge.purposes).forEach(e=>{const t=parseInt(e);ve.purposeConsents.set(t),ve.purposeLegitimateInterests.set(t)}),Object.keys(ge.specialFeatures).forEach(e=>{const t=parseInt(e);ve.specialFeatureOptins.set(t)}),fe=[];var e=iabtcf.gacm_data.map(e=>e[0]).join(".");ce=`2~~dv.${e}`,ve.addtlConsent=ce,ae=K.encode(ve),me.tcString=ae,ve.tcString=ae,oe.set("wpl_tc_string",ae,365),oe.set("IABTCF_AddtlConsent",ce,365),be.update(ae,!0),jQuery(".vendor-switch-handler").prop("checked",!0),jQuery(".gacm-vendor-switch-handler").prop("checked",!0),jQuery(".gacm-vendor-all-switch-handler").prop("checked",!0),jQuery(".vendor-all-switch-handler").prop("checked",!0),jQuery(".purposes-all-switch-handler").prop("checked",!0),jQuery(".purposes-switch-handler").prop("checked",!0),jQuery(".special-features-all-switch-handler").prop("checked",!0),jQuery(".special-features-switch-handler").prop("checked",!0)}catch(e){console.error("Error updating TCModel:",e)}}window.syncVendorToggles=function(){jQuery(".vendor-switch-handler.consent-switch").each(function(){const e=jQuery(this).val();me.consent.includes(Number(e))?jQuery(this).prop("checked",!0):jQuery(this).prop("checked",!1)}),jQuery(".vendor-switch-handler.legint-switch").each(function(){const e=jQuery(this).val();me.legint.includes(Number(e))?jQuery(this).prop("checked",!0):jQuery(this).prop("checked",!1)})},jQuery(document).on("wplp_vendors_rendered",function(){"function"==typeof window.syncVendorToggles&&window.syncVendorToggles()}),ne=jQuery,window.syncVendorToggles(),ne(".purposes-switch-handler.consent-switch").each(function(){const e=ne(this).val();me.purpose_consent.includes(Number(e))?ne(this).prop("checked",!0):ne(this).prop("checked",!1)}),ne(".purposes-switch-handler.legint-switch").each(function(){const e=ne(this).val();me.purpose_legint.includes(Number(e))?ne(this).prop("checked",!0):ne(this).prop("checked",!1)}),ne(".special-features-switch-handler.consent-switch").each(function(){const e=ne(this).val();me.feature_consent.includes(Number(e))?ne(this).prop("checked",!0):ne(this).prop("checked",!1)}),ne(".vendor-all-switch-handler").each(function(){let e=!0;for(let t=0;t<iabtcf.data.allvendors.length;t++){const s=iabtcf.data.allvendors[t];if(!me.consent.includes(s)&&0!=iabtcf.data.vendors[t].purposes.length){e=!1;break}}for(let t=0;t<iabtcf.data.allLegintVendors.length;t++){const s=iabtcf.data.allLegintVendors[t];if(!me.legint.includes(s)){e=!1;break}}e?ne(this).prop("checked",!0):ne(this).prop("checked",!1)}),ne(".purposes-all-switch-handler").each(function(){let e=!0;for(let t=0;t<iabtcf.data.allPurposes.length;t++){const s=iabtcf.data.allPurposes[t];if(!me.purpose_consent.includes(s)){e=!1;break}}for(let t=0;t<iabtcf.data.allLegintPurposes.length;t++){const s=iabtcf.data.allLegintPurposes[t];if(!me.purpose_legint.includes(s)){e=!1;break}}e?ne(this).prop("checked",!0):ne(this).prop("checked",!1)}),ne(".special-features-all-switch-handler").each(function(){let e=!0;for(let t=0;t<iabtcf.data.allSpecialFeatures.length;t++){const s=iabtcf.data.allSpecialFeatures[t];if(!me.feature_consent.includes(s)){e=!1;break}}e?ne(this).prop("checked",!0):ne(this).prop("checked",!1)}),ne(".gacm-vendor-switch-handler.consent-switch").each(function(){const e=ne(this).val();fe.includes(Number(e))?ne(this).prop("checked",!0):ne(this).prop("checked",!1)}),ne(".gacm-vendor-all-switch-handler").each(function(){let e=!0;for(let t=0;t<iabtcf.gacm_data.length-1;t++){const s=iabtcf.gacm_data[t][0];if(!fe.includes(Number(s))){e=!1;break}}e?ne(this).prop("checked",!0):ne(this).prop("checked",!1)}),ge.readyPromise.then(()=>{try{ve.gvl=ge,ve.tcfPolicyVersion=ge.tcfPolicyVersion,ve.publisherCountryCode="IN",ve.version=2,ve.cmpId=de,ve.cmpVersion=ue,ve.gdprApplies=!0,ve.isServiceSpecific=!1,he(),ve&&ve.gvl?be=new re(de,ue,!1,{getTCData:(e,t,s)=>
1{"boolean"!=typeof t&&("true"==le&&(t.addtlConsent=ce),"true"==pe&&(t.enableAdvertiserConsentMode=!0)),e(t,s)}}):console.error("GVL or TCModel is not ready"),oe.exists("wpl_tc_string")&&Ce()}catch(e){console.error("Error during CMP initialization:",e)}}).catch(e=>{console.error("GVL readyPromise failed:",e)}),function(e){e(".gdpr_action_button").click(function(t){var s=e(this).attr("data-gdpr_action");"accept"==s&&ve.gvl.readyPromise.then(()=>{Ce()}),"accept_all"==s&&ve.gvl.readyPromise.then(()=>{Ee()}),"reject"==s&&ve.gvl.readyPromise.then(()=>{Ie()})}),e(".vendor-all-switch-handler").click(function(){if(e(".vendor-all-switch-handler",this),e(this).is(":checked")){e(".vendor-switch-handler").prop("checked",!0),me.consent=[],me.legint=[];for(var t=0;t<iabtcf.data.allvendors.length;t++)me.consent.push(iabtcf.data.allvendors[t]);for(t=0;t<iabtcf.data.allLegintVendors.length;t++)me.legint.push(iabtcf.data.allLegintVendors[t])}else e(".vendor-switch-handler").prop("checked",!1),me.consent=[],me.legint=[]}),e(document).on("click",".vendor-switch-handler.consent-switch",function(){var t=Number(e(this).val());if(e(this).is(":checked"))me.consent.includes(t)||me.consent.push(t),e(this).prop("checked",!0);else{e(this).prop("checked",!1),e(".vendor-all-switch-handler").prop("checked",!1);var s=me.consent.indexOf(t);s>-1&&me.consent.splice(s,1)}}),e(document).on("click",".vendor-switch-handler.legint-switch",function(){var t=Number(e(this).val());if(e(this).is(":checked"))me.legint.includes(t)||me.legint.push(t),e(this).prop("checked",!0);else{e(this).prop("checked",!1),e(".vendor-all-switch-handler").prop("checked",!1);var s=me.legint.indexOf(t);s>-1&&me.legint.splice(s,1)}}),e(".purposes-all-switch-handler").click(function(){if(e(".purposes-all-switch-handler",this),e(this).is(":checked")){e(".purposes-switch-handler").prop("checked",!0),me.purpose_consent=[],me.purpose_legint=[];for(var t=0;t<iabtcf.data.allPurposes.length;t++)me.purpose_consent.push(iabtcf.data.allPurposes[t]);for(t=0;t<iabtcf.data.allLegintPurposes.length;t++)me.purpose_legint.push(iabtcf.data.allLegintPurposes[t])}else e(".purposes-switch-handler").prop("checked",!1),me.purpose_consent=[],me.purpose_legint=[]}),e(".purposes-switch-handler.consent-switch").click(function(){var t=e(this).val();e(this).is(":checked")?(me.purpose_consent.push(Number(t)),e(this).prop("checked",!0)):(e(this).prop("checked",!1),e(".purposes-all-switch-handler").prop("checked",!1),me.purpose_consent.splice(me.purpose_consent.indexOf(Number(t)),1))}),e(".purposes-switch-handler.legint-switch").click(function(){var t=e(this).val();e(this).is(":checked")?(me.purpose_legint.push(Number(t)),e(this).prop("checked",!0)):(e(this).prop("checked",!1),e(".purposes-all-switch-handler").prop("checked",!1),me.purpose_legint.splice(me.purpose_legint.indexOf(Number(t)),1))}),e(".special-features-all-switch-handler").click(function(){if(e(".special-features-all-switch-handler",this),e(this).is(":checked")){e(".special-features-switch-handler").prop("checked",!0),me.feature_consent=[];for(var t=0;t<iabtcf.data.allSpecialFeatures.length;t++)me.feature_consent.push(iabtcf.data.allSpecialFeatures[t])}else for(e(".special-features-switch-handler").prop("checked",!1);me.feature_consent.length;)me.feature_consent.pop()}),e(".special-features-switch-handler.consent-switch").click(function(){var t=e(this).val();e(this).is(":checked")?(me.feature_consent.push(Number(t)),e(this).prop("checked",!0)):(e(this).prop("checked",!1),e(".special-features-all-switch-handler").prop("checked",!1),me.feature_consent.splice(me.feature_consent.indexOf(Number(t)),1))}),e(".gacm-vendor-all-switch-handler").click(function(){if(e(".gacm-vendor-all-switch-handler",this),e(this).is(":checked")){e(".gacm-vendor-switch-handler").prop("checked",!0),fe=[];for(var t=0;t<iabtcf.gacm_data.length-1;t++)fe.push(Number(iabtcf.gacm_data[t][0]))}else e(".gacm-vendor-switch-handler").prop("checked",!1),fe=[]}),e(".gacm-vendor-switch-handler.consent-switch").click(function(){var t=e(this).val();e(this).is(":checked")?(fe.push(Number(t)),e(this).prop("checked",!0)):(e(this).prop("checked",!1),e(".gacm-vendor-all-switch-handler").prop("checked",!1),fe.splice(fe.indexOf(Number(t)),1))})}(jQuery)}})();

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.