(window._sp_wp_jsonp=window._sp_wp_jsonp||[]).push([[4,3],{176:function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return v}));n(24),n(40),n(63),n(41),n(42),n(65),n(136),n(98),n(46),n(180),n(181),n(43),n(44),n(45);var r=n(0),o=n(14),i=n(53),c=n(186),u=n(191),a=n(190),s=null;function f(e){return(f="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)}function l(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n0)for(var n=e.getMaxVendorId(),r=function(n){var r=n.toString();e.getRestrictions(n).forEach((function(e){var n=e.purposeId.toString();t[n]||(t[n]={}),t[n][r]=e.restrictionType}))},o=1;o<=n;o++)r(o);return t}},{key:"createVectorField",value:function(e,t){return t?t.reduce((function(t,n){return t[String(n)]=e.has(Number(n)),t}),{}):F(e).reduce((function(e,t){return e[t[0].toString(10)]=t[1],e}),{})}}])&&G(t.prototype,n),r&&G(t,r),Object.defineProperty(t,"prototype",{writable:!1}),i}(I);function q(e){return(q="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)}function $(e){return function(e){if(Array.isArray(e))return X(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return X(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return X(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function X(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0){var n=e.getMaxVendorId();e.getRestrictions().forEach((function(e){t[e.purposeId.toString()]="_".repeat(n)}));for(var r=function(n){var r=n+1;e.getRestrictions(r).forEach((function(e){var r=e.restrictionType.toString(),o=e.purposeId.toString(),i=t[o].substr(0,n),c=t[o].substr(n+1);t[o]=i+r+c}))},o=0;o2&&void 0!==arguments[2]?arguments[2]:"";return it(this,u),(n=c.call(this,"invalid value ".concat(t," passed for ").concat(e," ").concat(r))).name="TCModelError",n}return r=u,o&&ot(r.prototype,o),i&&ot(r,i),Object.defineProperty(r,"prototype",{writable:!1}),r}(ut(Error));function yt(e,t){for(var n=0;n=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,c=!0,u=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return c=e.done,e},e:function(e){u=!0,i=e},f:function(){try{c||null==n.return||n.return()}finally{if(u)throw i}}}}function vt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=2&&2==n.length){if(e.langSet.has(t))return t;if(e.langSet.has(n))return n;var r=n+"-"+n;if(e.langSet.has(r))return r;var o,i=bt(e.langSet);try{for(i.s();!(o=i.n()).done;){var c=o.value;if(-1!==c.indexOf(t)||-1!==c.indexOf(n))return c}}catch(e){i.e(e)}finally{i.f()}}throw new Error("unsupported language ".concat(t))}},{key:"forEach",value:function(t){e.langSet.forEach(t)}},{key:"size",get:function(){return e.langSet.size}}])&&mt(t.prototype,n),r&&mt(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function jt(e,t){for(var n=0;n=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,c=!0,u=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return c=e.done,e},e:function(e){u=!0,i=e},f:function(){try{c||null==n.return||n.return()}finally{if(u)throw i}}}}function It(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&(this.restrictionType===Rt.NOT_ALLOWED||this.restrictionType===Rt.REQUIRE_CONSENT||this.restrictionType===Rt.REQUIRE_LI)}},{key:"isSameAs",value:function(e){return this.purposeId===e.purposeId&&this.restrictionType===e.restrictionType}}])&&Vt(t.prototype,n),r&&Vt(t,r),Object.defineProperty(t,"prototype",{writable:!1}),i}(Lt);Ft(Bt,"hashSeparator","-");n(65),n(69),n(70),n(185);function Gt(e){return(Gt="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)}function Ht(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return Qt(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Qt(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,c=!0,u=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return c=e.done,e},e:function(e){u=!0,i=e},f:function(){try{c||null==n.return||n.return()}finally{if(u)throw i}}}}function Qt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&void 0!==arguments[1]?arguments[1]:Array.from(this.gvl.vendorIds),n=e.hash;if(this.has(n)){var r,o=this.map.get(n),i=Ht(t);try{for(i.s();!(r=i.n()).done;){var c=r.value;o.add(c)}}catch(e){i.e(e)}finally{i.f()}}else this.map.set(n,new Set(t)),this.bitLength=0}},{key:"getVendors",value:function(e){var t=[];if(e){var n=e.hash;this.has(n)&&(t=Array.from(this.map.get(n)))}else{var r=new Set;this.map.forEach((function(e){Array.from(e).forEach((function(e){r.add(e)}))})),t=Array.from(r)}return t.sort((function(e,t){return e-t}))}},{key:"getRestrictionType",value:function(e,t){var n;return this.getRestrictions(e).forEach((function(e){e.purposeId===t&&(void 0===n||n>e.restrictionType)&&(n=e.restrictionType)})),n}},{key:"vendorHasRestriction",value:function(e,t){for(var n=!1,r=this.getRestrictions(e),o=0;o=0;--o){var i=this.tryEntries[o],c=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var u=n.call(i,"catchLoc"),a=n.call(i,"finallyLoc");if(u&&a){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),E(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;E(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:P(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},e}function ln(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function pn(e,t){for(var n=0;n0}},{key:"isSet",value:function(e){var t=!1;return e instanceof Set&&(t=Array.from(e).every(this.isValidNumber)),t}},{key:"set",value:function(e){var t=this;if(Array.isArray(e))e.forEach((function(e){return t.set(e)}));else if(this.isSet(e))this.set(Array.from(e));else if(this.isIntMap(e))this.set(Object.keys(e).map((function(e){return Number(e)})));else{if(!this.isValidNumber(e))throw new pt("set()",e,"must be positive integer array, positive integer, Set, or IntMap");this.set_.add(e),this.maxId_=Math.max(this.maxId,e),this.bitLength=0}}},{key:"empty",value:function(){this.set_=new Set}},{key:"forEach",value:function(e){for(var t=1;t<=this.maxId;t++)e(this.has(t),t)}},{key:"size",get:function(){return this.set_.size}},{key:"setAll",value:function(e){this.set(e)}}])&&pn(t.prototype,n),r&&pn(t,r),Object.defineProperty(t,"prototype",{writable:!1}),i}(Lt);function Un(e,t){for(var n=0;nt||e<0)throw new Ye("".concat(e," too large to encode into ").concat(t));return n.length25||r<0||r>25)throw new Ye("invalid language code: ".concat(e));if(t%2==1)throw new Ye("numBits must be even, ".concat(t," is not valid"));return t/=2,Jn.encode(n,t)+Jn.encode(r,t)}},{key:"decode",value:function(e,t){if(t!==e.length||e.length%2)throw new Ue("invalid bit length for language");var n=e.length/2,r=Jn.decode(e.slice(0,n),n)+65,o=Jn.decode(e.slice(n),n)+65;return String.fromCharCode(r)+String.fromCharCode(o)}}],(n=null)&&qn(t.prototype,n),r&&qn(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function Xn(e,t){for(var n=0;n1};e.getRestrictions().forEach((function(n){t+=Jn.encode(n.purposeId,Bn.purposeId),t+=Jn.encode(n.restrictionType,Bn.restrictionType);for(var o=e.getVendors(n),i=o.length,c=0,u=0,a="",s=0;sa&&s0&&this[2].push(en.VENDORS_ALLOWED),this[2].push(en.PUBLISHER_TC))}}));function yr(e,t){for(var n=0;n").concat(n,": ").concat(e.message))}})),ht.encode(o)}},{key:"decode",value:function(e,t,n){var r=this,o=ht.decode(e),i=0;n===en.CORE&&(t.version=Jn.decode(o.substr(i,Bn[_t.version]),Bn[_t.version])),n!==en.CORE&&(i+=Bn.segmentType);var c=this.fieldSequence[String(t.version)][n],u=or();return c.forEach((function(e){var n=u[e],c=Bn[e];if(void 0===c&&r.isPublisherCustom(e)&&(c=Number(t[_t.numCustomPurposes])),0!==c){var a=o.substr(i,c);if(t[e]=n===nr?n.decode(a,t.version):n.decode(a,c),Number.isInteger(c))i+=c;else{if(!Number.isInteger(t[e].bitLength))throw new Ue(e);i+=t[e].bitLength}}})),t}},{key:"isPublisherCustom",value:function(e){return 0===e.indexOf("publisherCustom")}}],(n=null)&&yr(t.prototype,n),r&&yr(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function hr(e,t){for(var n=0;n0&&(null==t?void 0:t.version)<=this.processor.length?e.version=t.version:e.version=this.processor.length;var r=e.version-1;if(!this.processor[r])throw new Ye("Invalid version: ".concat(e.version));return this.processor[r](e,n)}}],(n=null)&&hr(t.prototype,n),r&&hr(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();!function(e,t,n){t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(br,"processor",[function(e){return e},function(e,t){e.publisherRestrictions.gvl=t,e.purposeLegitimateInterests.unset([1,3,4,5,6]);var n=new Map;return n.set("legIntPurposes",e.vendorLegitimateInterests),n.set("purposes",e.vendorConsents),n.forEach((function(n,r){n.forEach((function(o,i){if(o){var c=t.vendors[i];if(!c||c.deletedDate)n.unset(i);else if(0===c[r].length)if("legIntPurposes"===r&&0===c.purposes.length&&0===c.legIntPurposes.length&&c.specialPurposes.length>0);else if(e.isServiceSpecific)if(0===c.flexiblePurposes.length)n.unset(i);else{for(var u=e.publisherRestrictions.getRestrictions(i),a=!1,s=0,f=u.length;s=200&&c.status<300){var e=c.response;if("string"==typeof e)try{e=JSON.parse(e)}catch(e){}o(e)}else i(new Error("HTTP Status: ".concat(c.status," response type: ").concat(c.responseType)))})),c.addEventListener("error",(function(){i(new Error("error"))})),c.addEventListener("abort",(function(){i(new Error("aborted"))})),null===t?c.open("GET",e,!0):c.open("POST",e,!0),c.responseType="json",c.timeout=r,c.ontimeout=function(){i(new Error("Timeout "+r+"ms "+e))},c.send(t)}))}},{key:"post",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;return this.absCall(e,JSON.stringify(t),n,r)}},{key:"fetch",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return this.absCall(e,null,t,n)}}],(n=null)&&vr(t.prototype,n),r&&vr(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function gr(e){return(gr="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)}function wr(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */wr=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",i=r.asyncIterator||"@@asyncIterator",c=r.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,n){return e[t]=n}}function a(e,t,n,r){var o=t&&t.prototype instanceof l?t:l,i=Object.create(o.prototype),c=new j(r||[]);return i._invoke=function(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return S()}for(n.method=o,n.arg=i;;){var c=n.delegate;if(c){var u=w(c,n);if(u){if(u===f)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var a=s(e,t,n);if("normal"===a.type){if(r=n.done?"completed":"suspendedYield",a.arg===f)continue;return{value:a.arg,done:n.done}}"throw"===a.type&&(r="completed",n.method="throw",n.arg=a.arg)}}}(e,n,c),i}function s(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=a;var f={};function l(){}function p(){}function y(){}var d={};u(d,o,(function(){return this}));var h=Object.getPrototypeOf,b=h&&h(h(P([])));b&&b!==t&&n.call(b,o)&&(d=b);var v=y.prototype=l.prototype=Object.create(d);function m(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function g(e,t){var r;this._invoke=function(o,i){function c(){return new t((function(r,c){!function r(o,i,c,u){var a=s(e[o],e,i);if("throw"!==a.type){var f=a.arg,l=f.value;return l&&"object"==gr(l)&&n.call(l,"__await")?t.resolve(l.__await).then((function(e){r("next",e,c,u)}),(function(e){r("throw",e,c,u)})):t.resolve(l).then((function(e){f.value=e,c(f)}),(function(e){return r("throw",e,c,u)}))}u(a.arg)}(o,i,r,c)}))}return r=r?r.then(c,c):c()}}function w(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,w(e,t),"throw"===t.method))return f;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return f}var r=s(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,f;var o=r.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function O(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function E(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function j(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(O,this),this.reset(!0)}function P(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,i=function t(){for(;++r=0;--o){var i=this.tryEntries[o],c=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var u=n.call(i,"catchLoc"),a=n.call(i,"finallyLoc");if(u&&a){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),E(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;E(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:P(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},e}function Or(e,t,n,r,o,i,c){try{var u=e[i](c),a=u.value}catch(e){return void n(e)}u.done?t(a):Promise.resolve(a).then(r,o)}function Er(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function c(e){Or(i,r,o,c,u,"next",e)}function u(e){Or(i,r,o,c,u,"throw",e)}c(void 0)}))}}function jr(e,t){for(var n=0;n0){var r=e;u.CACHE.has(r)?(t.populate(u.CACHE.get(r)),t.readyPromise=Promise.resolve()):(n+=u.versionedFilename.replace("[VERSION]",String(r)),t.readyPromise=t.fetchJson(n))}else u.CACHE.has(u.LATEST_CACHE_KEY)?(t.populate(u.CACHE.get(u.LATEST_CACHE_KEY)),t.readyPromise=Promise.resolve()):(t.isLatest=!0,t.readyPromise=t.fetchJson(n+u.latestFilename))}return t}return t=u,n=[{key:"cacheLanguage",value:function(){u.LANGUAGE_CACHE.has(this.cacheLang_)||u.LANGUAGE_CACHE.set(this.cacheLang_,{purposes:this.purposes,specialPurposes:this.specialPurposes,features:this.features,specialFeatures:this.specialFeatures,stacks:this.stacks,dataCategories:this.dataCategories})}},{key:"fetchJson",value:(i=Er(wr().mark((function e(t){return wr().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.t0=this,e.next=4,mr.fetch(t);case 4:e.t1=e.sent,e.t0.populate.call(e.t0,e.t1),e.next=11;break;case 8:throw e.prev=8,e.t2=e.catch(0),new nt(e.t2.message);case 11:case"end":return e.stop()}}),e,this,[[0,8]])}))),function(e){return i.apply(this,arguments)})},{key:"getJson",value:function(){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,dataCategories:this.dataCategories,vendors:this.fullVendorList}))}},{key:"changeLanguage",value:(o=Er(wr().mark((function e(t){var n,r,o,i,c;return wr().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=t,e.prev=1,n=u.consentLanguages.parseLanguage(t),e.next=8;break;case 5:throw e.prev=5,e.t0=e.catch(1),new nt("Error during parsing the language: "+e.t0.message);case 8:if(r=t.toUpperCase(),n.toLowerCase()!==u.DEFAULT_LANGUAGE.toLowerCase()||u.LANGUAGE_CACHE.has(r)){e.next=11;break}return e.abrupt("return");case 11:if(n===this.lang_){e.next=29;break}if(this.lang_=n,!u.LANGUAGE_CACHE.has(r)){e.next=18;break}for(i in o=u.LANGUAGE_CACHE.get(r))o.hasOwnProperty(i)&&(this[i]=o[i]);e.next=29;break;case 18:return c=u.baseUrl+u.languageFilename.replace("[LANG]",this.lang_.toLowerCase()),e.prev=19,e.next=22,this.fetchJson(c);case 22:this.cacheLang_=r,this.cacheLanguage(),e.next=29;break;case 26:throw e.prev=26,e.t1=e.catch(19),new nt("unable to load language: "+e.t1.message);case 29:case"end":return e.stop()}}),e,this,[[1,5],[19,26]])}))),function(e){return o.apply(this,arguments)})},{key:"language",get:function(){return this.lang_}},{key:"isVendorList",value:function(e){return void 0!==e&&void 0!==e.vendors}},{key:"populate",value:function(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.vendors,this.mapVendors(),this.isReady_=!0,this.isLatest&&u.CACHE.set(u.LATEST_CACHE_KEY,this.getJson()),u.CACHE.has(this.vendorListVersion)||u.CACHE.set(this.vendorListVersion,this.getJson())),this.cacheLanguage()}},{key:"mapVendors",value:function(e){var t=this;this.byPurposeVendorMap={},this.bySpecialPurposeVendorMap={},this.byFeatureVendorMap={},this.bySpecialFeatureVendorMap={},Object.keys(this.purposes).forEach((function(e){t.byPurposeVendorMap[e]={legInt:new Set,consent:new Set,flexible:new Set}})),Object.keys(this.specialPurposes).forEach((function(e){t.bySpecialPurposeVendorMap[e]=new Set})),Object.keys(this.features).forEach((function(e){t.byFeatureVendorMap[e]=new Set})),Object.keys(this.specialFeatures).forEach((function(e){t.bySpecialFeatureVendorMap[e]=new Set})),Array.isArray(e)||(e=Object.keys(this.fullVendorList).map((function(e){return+e}))),this.vendorIds=new Set(e),this.vendors_=e.reduce((function(e,n){var r=t.vendors_[String(n)];return r&&void 0===r.deletedDate&&(r.purposes.forEach((function(e){t.byPurposeVendorMap[String(e)].consent.add(n)})),r.specialPurposes.forEach((function(e){t.bySpecialPurposeVendorMap[String(e)].add(n)})),r.legIntPurposes.forEach((function(e){t.byPurposeVendorMap[String(e)].legInt.add(n)})),r.flexiblePurposes&&r.flexiblePurposes.forEach((function(e){t.byPurposeVendorMap[String(e)].flexible.add(n)})),r.features.forEach((function(e){t.byFeatureVendorMap[String(e)].add(n)})),r.specialFeatures.forEach((function(e){t.bySpecialFeatureVendorMap[String(e)].add(n)})),e[n]=r),e}),{})}},{key:"getFilteredVendors",value:function(e,t,n,r){var o=this,i=e.charAt(0).toUpperCase()+e.slice(1),c={};return("purpose"===e&&n?this["by"+i+"VendorMap"][String(t)][n]:this["by"+(r?"Special":"")+i+"VendorMap"][String(t)]).forEach((function(e){c[String(e)]=o.vendors[String(e)]})),c}},{key:"getVendorsWithConsentPurpose",value:function(e){return this.getFilteredVendors("purpose",e,"consent")}},{key:"getVendorsWithLegIntPurpose",value:function(e){return this.getFilteredVendors("purpose",e,"legInt")}},{key:"getVendorsWithFlexiblePurpose",value:function(e){return this.getFilteredVendors("purpose",e,"flexible")}},{key:"getVendorsWithSpecialPurpose",value:function(e){return this.getFilteredVendors("purpose",e,void 0,!0)}},{key:"getVendorsWithFeature",value:function(e){return this.getFilteredVendors("feature",e)}},{key:"getVendorsWithSpecialFeature",value:function(e){return this.getFilteredVendors("feature",e,void 0,!0)}},{key:"vendors",get:function(){return this.vendors_}},{key:"narrowVendorsTo",value:function(e){this.mapVendors(e)}},{key:"isReady",get:function(){return this.isReady_}},{key:"clone",value:function(){var e=new u(this.getJson());return this.lang_!==u.DEFAULT_LANGUAGE&&e.changeLanguage(this.lang_),e}}],r=[{key:"baseUrl",get:function(){return this.baseUrl_},set:function(e){if(/^https?:\/\/vendorlist\.consensu\.org\//.test(e))throw new nt("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}},{key:"emptyLanguageCache",value:function(e){var t=!1;return null==e&&u.LANGUAGE_CACHE.size>0?(u.LANGUAGE_CACHE=new Map,t=!0):"string"==typeof e&&this.consentLanguages.has(e.toUpperCase())&&(u.LANGUAGE_CACHE.delete(e.toUpperCase()),t=!0),t}},{key:"emptyCache",value:function(e){var t=!1;return Number.isInteger(e)&&e>=0?(u.CACHE.delete(e),t=!0):void 0===e&&(u.CACHE=new Map,t=!0),t}},{key:"isInstanceOf",value:function(e){return"object"===gr(e)&&"function"==typeof e.narrowVendorsTo}}],n&&jr(t.prototype,n),r&&jr(t,r),Object.defineProperty(t,"prototype",{writable:!1}),u}(Lt);function Rr(e){return(Rr="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)}function Lr(e,t){for(var n=0;n1))throw new pt("cmpId",e);this.cmpId_=e}},{key:"cmpVersion",get:function(){return this.cmpVersion_},set:function(e){if(e=Number(e),!(Number.isInteger(e)&&e>-1))throw new pt("cmpVersion",e);this.cmpVersion_=e}},{key:"consentScreen",get:function(){return this.consentScreen_},set:function(e){if(e=Number(e),!(Number.isInteger(e)&&e>-1))throw new pt("consentScreen",e);this.consentScreen_=e}},{key:"consentLanguage",get:function(){return this.consentLanguage_},set:function(e){this.consentLanguage_=e}},{key:"publisherCountryCode",get:function(){return this.publisherCountryCode_},set:function(e){if(!/^([A-z]){2}$/.test(e))throw new pt("publisherCountryCode",e);this.publisherCountryCode_=e.toUpperCase()}},{key:"vendorListVersion",get:function(){return this.gvl?this.gvl.vendorListVersion:this.vendorListVersion_},set:function(e){if((e=Number(e)>>0)<0)throw new pt("vendorListVersion",e);this.vendorListVersion_=e}},{key:"policyVersion",get:function(){return this.gvl?this.gvl.tcfPolicyVersion:this.policyVersion_},set:function(e){if(this.policyVersion_=parseInt(e,10),this.policyVersion_<0)throw new pt("policyVersion",e)}},{key:"version",get:function(){return this.version_},set:function(e){this.version_=parseInt(e,10)}},{key:"isServiceSpecific",get:function(){return this.isServiceSpecific_},set:function(e){this.isServiceSpecific_=e}},{key:"useNonStandardTexts",get:function(){return this.useNonStandardTexts_},set:function(e){this.useNonStandardTexts_=e}},{key:"supportOOB",get:function(){return this.supportOOB_},set:function(e){this.supportOOB_=e}},{key:"purposeOneTreatment",get:function(){return this.purposeOneTreatment_},set:function(e){this.purposeOneTreatment_=e}},{key:"setAllVendorConsents",value:function(){this.vendorConsents.set(this.gvl.vendors)}},{key:"unsetAllVendorConsents",value:function(){this.vendorConsents.empty()}},{key:"setAllVendorsDisclosed",value:function(){this.vendorsDisclosed.set(this.gvl.vendors)}},{key:"unsetAllVendorsDisclosed",value:function(){this.vendorsDisclosed.empty()}},{key:"setAllVendorsAllowed",value:function(){this.vendorsAllowed.set(this.gvl.vendors)}},{key:"unsetAllVendorsAllowed",value:function(){this.vendorsAllowed.empty()}},{key:"setAllVendorLegitimateInterests",value:function(){this.vendorLegitimateInterests.set(this.gvl.vendors)}},{key:"unsetAllVendorLegitimateInterests",value:function(){this.vendorLegitimateInterests.empty()}},{key:"setAllPurposeConsents",value:function(){this.purposeConsents.set(this.gvl.purposes)}},{key:"unsetAllPurposeConsents",value:function(){this.purposeConsents.empty()}},{key:"setAllPurposeLegitimateInterests",value:function(){this.purposeLegitimateInterests.set(this.gvl.purposes)}},{key:"unsetAllPurposeLegitimateInterests",value:function(){this.purposeLegitimateInterests.empty()}},{key:"setAllSpecialFeatureOptins",value:function(){this.specialFeatureOptins.set(this.gvl.specialFeatures)}},{key:"unsetAllSpecialFeatureOptins",value:function(){this.specialFeatureOptins.empty()}},{key:"setAll",value:function(){this.setAllVendorConsents(),this.setAllPurposeLegitimateInterests(),this.setAllSpecialFeatureOptins(),this.setAllPurposeConsents(),this.setAllVendorLegitimateInterests()}},{key:"unsetAll",value:function(){this.unsetAllVendorConsents(),this.unsetAllPurposeLegitimateInterests(),this.unsetAllSpecialFeatureOptins(),this.unsetAllPurposeConsents(),this.unsetAllVendorLegitimateInterests()}},{key:"numCustomPurposes",get:function(){var e=this.numCustomPurposes_;if("object"===Rr(this.customPurposes)){var t=Object.keys(this.customPurposes).sort((function(e,t){return Number(e)-Number(t)}));e=parseInt(t.pop(),10)}return e},set:function(e){if(this.numCustomPurposes_=parseInt(e,10),this.numCustomPurposes_<0)throw new pt("numCustomPurposes",e)}},{key:"updated",value:function(){var e=new Date,t=new Date(Date.UTC(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()));this.created=t,this.lastUpdated=t}}])&&Lr(t.prototype,n),r&&Lr(t,r),Object.defineProperty(t,"prototype",{writable:!1}),i}(Lt);function Fr(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n3?o-3:0),c=3;c2&&void 0!==arguments[2]&&arguments[2],o=arguments.length>3?arguments[3]:void 0;Lo(this,e),Vo(this,"callResponder",void 0),Vo(this,"isServiceSpecific",void 0),Vo(this,"numUpdates",0),this.throwIfInvalidInt(t,"cmpId",2),this.throwIfInvalidInt(n,"cmpVersion",0),P.cmpId=t,P.cmpVersion=n,P.tcfPolicyVersion=4,this.isServiceSpecific=!!r,this.callResponder=new Ro(o)}var t,n,r;return t=e,(n=[{key:"throwIfInvalidInt",value:function(e,t,n){if(!("number"==typeof e&&Number.isInteger(e)&&e>=n))throw new Error("Invalid ".concat(t,": ").concat(e))}},{key:"update",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(P.disabled)throw new Error("CmpApi Disabled");P.cmpStatus=i.LOADED,t?(P.displayStatus=c.VISIBLE,P.eventStatus=u.CMP_UI_SHOWN):void 0===P.tcModel?(P.displayStatus=c.DISABLED,P.eventStatus=u.TC_LOADED):(P.displayStatus=c.HIDDEN,P.eventStatus=u.USER_ACTION_COMPLETE),P.gdprApplies=null!==e,P.gdprApplies?(""===e?(P.tcModel=new Mr,P.tcModel.cmpId=P.cmpId,P.tcModel.cmpVersion=P.cmpVersion):P.tcModel=Br.decode(e),P.tcModel.isServiceSpecific=this.isServiceSpecific,P.tcfPolicyVersion=Number(P.tcModel.policyVersion),P.tcString=e):P.tcModel=null,0===this.numUpdates?this.callResponder.purgeQueuedCalls():P.eventQueue.exec(),this.numUpdates++}},{key:"disable",value:function(){P.disabled=!0,P.cmpStatus=i.ERROR}}])&&Ao(t.prototype,n),r&&Ao(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}(),xo=n(0),No=n(191);function Uo(e){return(Uo="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)}function Mo(e,t){for(var n=0;n0&&0!==n.messageId}},{key:"hasInlineMessage",value:function(){var e=this.campaignResponse.message;return!!this.hasMessage()&&e&&e.message_json&&e.message_json.settings&&e.message_json.settings.type&&"inline"===e.message_json.settings.type}},{key:"getPvData",value:function(){return{}}},{key:"sendPvData",value:function(){var e=this.config,t=e.accountId,n=e.env,o=e.wrapperAPIOrigin,u=e.mmsDomain,a=e.pubData,s=this.getPvData();!function(e,t,n,o,u,a,s,f){if(!Object(r.sampleUser)(s))return Promise.resolve();var l=c({},s,i(i({},f),{},{accountId:t,siteId:n,propertyId:n,pubData:a,withSiteActions:"true",sampleRate:Object(r.sampleRate)(s)}));Object(r.fetch)("".concat(o,"/v2/pv-data"),{method:"POST",body:JSON.stringify(l),headers:{"Content-Type":"application/json"},params:{env:e}}).then(JSON.parse).then((function(e){return Promise.all(Object.keys(e).map((function(t){return Object(r.handleConsentData)(e[t],t,u)})))})).catch((function(e){return Promise.resolve()}))}(n,t,this.propertyId,o,u,a,this.category,s)}}])&&u(t.prototype,n),o&&u(t,o),Object.defineProperty(t,"prototype",{writable:!1}),e}()},187:function(e,t,n){n(1)({target:"Number",stat:!0},{isInteger:n(193)})},188:function(e,t,n){n(71)("asyncIterator")},189:function(e,t,n){"use strict";var r=n(1),o=n(52),i=[].reverse,c=[1,2];r({target:"Array",proto:!0,forced:String(c)===String(c.reverse())},{reverse:function(){return o(this)&&(this.length=this.length),i.call(this)}})},190:function(e,t,n){"use strict";n.d(t,"b",(function(){return c})),n.d(t,"c",(function(){return u})),n.d(t,"d",(function(){return a})),n.d(t,"e",(function(){return s})),n.d(t,"a",(function(){return f}));n(50),n(40),n(69),n(70),n(131),n(98),n(24),n(63),n(41),n(42),n(65),n(49),n(43),n(64),n(47),n(68);var r=n(0);function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var c=function(e,t){var n=function(e){for(var t=1;t0&&(n.consentedVendors=n.consentedVendors.filter((function(t){return e.includes(t._id.toString())})));try{t(n,!0)}catch(e){Object(r.handleError)(new r.CmpCallbackError(e),"gdpr")}},u=function(e,t,n){var o="".concat(e,"/vendor-list/vendor-purpose-mapping?siteId=").concat(t);Object(r.fetch)(o,{method:"GET"}).then((function(e){return JSON.parse(e)})).then((function(e){try{n(e,!0)}catch(e){Object(r.handleError)(new r.CmpCallbackError(e),"gdpr")}})).catch((function(e){try{n(null,!1)}catch(e){Object(r.handleError)(new r.CmpCallbackError(e),"gdpr")}Object(r.handleError)(e,"gdpr")}))},a=function(e,t,n,o,i,c,u){var a=Object(r.getUserConsentData)("gdpr","uuid"),s="".concat(e,"/consent/v3/custom/").concat(c);Object(r.fetch)(s,{method:"POST",params:{consentUUID:a},body:JSON.stringify({vendors:t,categories:n,legIntCategories:o}),headers:{"Content-Type":"application/json"}}).then((function(e){return JSON.parse(e)})).then((function(e){return Object(r.handleConsentData)(e,"gdpr",u).then((function(t){return e}))})).then((function(e){try{i(e,!0)}catch(e){Object(r.handleError)(new r.CmpCallbackError(e),"gdpr")}})).catch((function(e){try{i(null,!1)}catch(e){Object(r.handleError)(new r.CmpCallbackError(e),"gdpr")}Object(r.handleError)(e,"gdpr")}))},s=function(e,t,n,o){var i=Object(r.getUserConsentData)("gdpr","authId"),c=Object(r.getUserConsentData)("gdpr","uuid"),u=window._sp_&&window._sp_.config.accountId,a=Object(r.sampleRate)(),s=Object(r.sampleUser)();Object(r.fetch)("".concat(e,"/consent/v3/").concat(n,"/reject-all"),{headers:{"Content-Type":"application/json"},method:"POST",params:{accountId:u,authId:i,consentUUID:c,includeCustomVendorsRes:1,sampleRate:a,sendPVData:s,withSiteActions:!0}}).then((function(e){return JSON.parse(e)})).then((function(e){return Object(r.handleConsentData)(e,"gdpr",o).then((function(t){return e}))})).then((function(e){try{t(null,!0)}catch(e){Object(r.handleError)(new r.CmpCallbackError(e))}})).catch((function(e){try{t(null,!1)}catch(e){Object(r.handleError)(new r.CmpCallbackError(e))}Object(r.handleError)(e)}))},f=function(e){return Object(r.fetch)("".concat(e,"/consent/v2/delete-consent-cookies"),{method:"GET"}).then(JSON.parse).then((function(e){var t=e.actions,n=e.cookies;return Promise.all(t.map(r.executeAction)).then((function(e){return Object(r.setCookiesAction)(n,"","gdpr")}))}))}},191:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(190);function o(e,t,n){return{getCustomVendorConsents:function(e,t){Object(r.b)(t,e)},postCustomConsent:function(o,i,c,u){Object(r.d)(e,i,c,u,o,n,t)},postRejectAll:function(o){Object(r.e)(e,o,n,t)},getVendorPurposeMapping:function(t){Object(r.c)(e,n,t)}}}},192:function(e,t,n){n(1)({target:"String",proto:!0},{repeat:n(194)})},193:function(e,t,n){var r=n(5),o=Math.floor;e.exports=function(e){return!r(e)&&isFinite(e)&&o(e)===e}},194:function(e,t,n){"use strict";var r=n(28),o=n(16);e.exports=function(e){var t=String(o(this)),n="",i=r(e);if(i<0||i==1/0)throw RangeError("Wrong number of repetitions");for(;i>0;(i>>>=1)&&(t+=t))1&i&&(n+=t);return n}}}]);