diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index fd5925a..80c41c4 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -5,8 +5,6 @@ on: [push, pull_request] jobs: build: runs-on: ubuntu-latest - env: - LOG_TEST_COVERAGE: true steps: - uses: actions/checkout@v2 - name: Run tests and build on Node diff --git a/package.json b/package.json index 1b75c60..1576330 100644 --- a/package.json +++ b/package.json @@ -18,11 +18,11 @@ "test:coverage": "yarn run test:run --coverage", "test:watch": "yarn run test:run --watch", "quantcast:update": "npm-run-all -s quantcast:update:info quantcast:choice-js:update quantcast:cmp-js:download", - "quantcast:update:info": "echo \"########## Downloading the original source JS for Quantcast Choice version 14. To use a different version, first update change the version number in the QC portal for the tab.gladly.dev domain, then modify the version number in the cmp2.js URL in the package.json script.##########\"", + "quantcast:update:info": "echo \"########## Downloading the original source JS for Quantcast Choice version 22. To use a different version, first update change the version number in the QC portal for the tab.gladly.dev domain, then modify the version number in the cmp2.js URL in the package.json script.##########\"", "quantcast:choice-js:update": "npm-run-all -s quantcast:choice-js:download quantcast:choice-js:format", "quantcast:choice-js:download": "curl https://quantcast.mgr.consensu.org/choice/FPBLJYpJgR9Zu/tab.gladly.dev/choice.js > ./quantcast/qcChoiceOriginal.js", "quantcast:choice-js:format": "eslint ./quantcast/qcChoiceOriginal.js --fix --no-ignore; exit 0", - "quantcast:cmp-js:download": "curl https://quantcast.mgr.consensu.org/tcfv2/14/cmp2.js > ./quantcast/qcCmpOriginal.js", + "quantcast:cmp-js:download": "curl https://quantcast.mgr.consensu.org/tcfv2/22/cmp2.js > ./quantcast/qcCmpOriginal.js", "quantcast:cmp-js:copy-with-edits": "sed -E 's/SameSite=Lax;secure/SameSite=None;secure/g; s/_isUserInUS=(true|false)/_isUserInUS=window.tabCMP.doesCCPAApply/g; s/_isUserInEU=(true|false)/_isUserInEU=window.tabCMP.doesGDPRApply/g;' ./quantcast/qcCmpOriginal.js > ./src/qcCmpModified.js", "dev:publish": "npm-run-all -s build dev:yalc-publish-push", "dev:yalc-publish-push": "yalc publish --push" diff --git a/quantcast/qcChoiceOriginal.js b/quantcast/qcChoiceOriginal.js index 0f8df42..00a34cd 100644 --- a/quantcast/qcChoiceOriginal.js +++ b/quantcast/qcChoiceOriginal.js @@ -4,7 +4,7 @@ const firstScript = document.getElementsByTagName('script')[0] cmpScriptElement.async = true cmpScriptElement.type = 'text/javascript' - const cmpVersion = 'https://quantcast.mgr.consensu.org/tcfv2/14/cmp2.js' + const cmpVersion = 'https://quantcast.mgr.consensu.org/tcfv2/22/cmp2.js' cmpScriptElement.src = cmpVersion window._qevents = window._qevents || [] ;(function () { @@ -130,13 +130,22 @@ }, theme: { uxPrimaryButtonColor: '#9d4ba3' }, coreConfig: { - initScreenBodyTextOption: 1, consentScope: 'service', + thirdPartyStorageType: 'iframe', + consentIdentityEnabled: false, + initScreenBodyTextOption: 1, + consentOnSafari: false, lang_: 'en', - defaultToggleValue: 'off', displayUi: 'inEU', - displayPersistentConsentLink: false, + defaultToggleValue: 'off', initScreenRejectButtonShowing: false, + publisherConsentRestrictionIds: [], + publisherLIRestrictionIds: [], + softOptInEnabled: false, + showSummaryView: true, + persistentConsentLinkLocation: 4, + displayPersistentConsentLink: false, + uiLayout: 'popup', publisherLogo: 'https://tab.gladly.io/static/logo-with-text-257bbffc6dcac5076e8ac31eed8ff73c.svg', publisherPurposeIds: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10], @@ -145,15 +154,10 @@ publisherFeaturesIds: [], publisherSpecialFeaturesIds: [], stacks: [1, 42], - softOptInEnabled: false, - uiLayout: 'popup', vendorListUpdateFreq: 90, - thirdPartyStorageType: 'iframe', - showSummaryView: true, - persistentConsentLinkLocation: 4, quantcastAccountId: 'FPBLJYpJgR9Zu', privacyMode: ['GDPR', 'USP'], - hashCode: 'klt866OJQEpWMQn5tnZBBg', + hashCode: 'viIA/yKcUUmwj5xfSRz5eQ', publisherCountryCode: 'US', publisherName: 'LOCAL - Tab for a Cause', vendorPurposeIds: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10], @@ -167,5 +171,6 @@ uspLspact: 'N', suppressCcpaLinks: true, }, + nonIabVendorsInfo: {}, }) })() diff --git a/quantcast/qcCmpOriginal.js b/quantcast/qcCmpOriginal.js index 0909244..58f0378 100644 --- a/quantcast/qcCmpOriginal.js +++ b/quantcast/qcCmpOriginal.js @@ -1,2 +1 @@ -/*! For license information please see cmp2.js.LICENSE */ -!function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/",n(n.s=81)}([function(e,t,n){e.exports=n(125)},function(e,t,n){"use strict";var r=TypeError,o=Object.getOwnPropertyDescriptor;if(o)try{o({},"")}catch(v){o=null}var i=function(){throw new r},s=o?function(){try{return arguments.callee,i}catch(e){try{return o(arguments,"callee").get}catch(t){return i}}}():i,a=n(86)(),u=Object.getPrototypeOf||function(e){return e.__proto__},c=void 0,p="undefined"===typeof Uint8Array?void 0:u(Uint8Array),l={"%Array%":Array,"%ArrayBuffer%":"undefined"===typeof ArrayBuffer?void 0:ArrayBuffer,"%ArrayBufferPrototype%":"undefined"===typeof ArrayBuffer?void 0:ArrayBuffer.prototype,"%ArrayIteratorPrototype%":a?u([][Symbol.iterator]()):void 0,"%ArrayPrototype%":Array.prototype,"%ArrayProto_entries%":Array.prototype.entries,"%ArrayProto_forEach%":Array.prototype.forEach,"%ArrayProto_keys%":Array.prototype.keys,"%ArrayProto_values%":Array.prototype.values,"%AsyncFromSyncIteratorPrototype%":void 0,"%AsyncFunction%":void 0,"%AsyncFunctionPrototype%":void 0,"%AsyncGenerator%":void 0,"%AsyncGeneratorFunction%":void 0,"%AsyncGeneratorPrototype%":void 0,"%AsyncIteratorPrototype%":c&&a&&Symbol.asyncIterator?c[Symbol.asyncIterator]():void 0,"%Atomics%":"undefined"===typeof Atomics?void 0:Atomics,"%Boolean%":Boolean,"%BooleanPrototype%":Boolean.prototype,"%DataView%":"undefined"===typeof DataView?void 0:DataView,"%DataViewPrototype%":"undefined"===typeof DataView?void 0:DataView.prototype,"%Date%":Date,"%DatePrototype%":Date.prototype,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%ErrorPrototype%":Error.prototype,"%eval%":eval,"%EvalError%":EvalError,"%EvalErrorPrototype%":EvalError.prototype,"%Float32Array%":"undefined"===typeof Float32Array?void 0:Float32Array,"%Float32ArrayPrototype%":"undefined"===typeof Float32Array?void 0:Float32Array.prototype,"%Float64Array%":"undefined"===typeof Float64Array?void 0:Float64Array,"%Float64ArrayPrototype%":"undefined"===typeof Float64Array?void 0:Float64Array.prototype,"%Function%":Function,"%FunctionPrototype%":Function.prototype,"%Generator%":void 0,"%GeneratorFunction%":void 0,"%GeneratorPrototype%":void 0,"%Int8Array%":"undefined"===typeof Int8Array?void 0:Int8Array,"%Int8ArrayPrototype%":"undefined"===typeof Int8Array?void 0:Int8Array.prototype,"%Int16Array%":"undefined"===typeof Int16Array?void 0:Int16Array,"%Int16ArrayPrototype%":"undefined"===typeof Int16Array?void 0:Int8Array.prototype,"%Int32Array%":"undefined"===typeof Int32Array?void 0:Int32Array,"%Int32ArrayPrototype%":"undefined"===typeof Int32Array?void 0:Int32Array.prototype,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":a?u(u([][Symbol.iterator]())):void 0,"%JSON%":"object"===typeof JSON?JSON:void 0,"%JSONParse%":"object"===typeof JSON?JSON.parse:void 0,"%Map%":"undefined"===typeof Map?void 0:Map,"%MapIteratorPrototype%":"undefined"!==typeof Map&&a?u((new Map)[Symbol.iterator]()):void 0,"%MapPrototype%":"undefined"===typeof Map?void 0:Map.prototype,"%Math%":Math,"%Number%":Number,"%NumberPrototype%":Number.prototype,"%Object%":Object,"%ObjectPrototype%":Object.prototype,"%ObjProto_toString%":Object.prototype.toString,"%ObjProto_valueOf%":Object.prototype.valueOf,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"===typeof Promise?void 0:Promise,"%PromisePrototype%":"undefined"===typeof Promise?void 0:Promise.prototype,"%PromiseProto_then%":"undefined"===typeof Promise?void 0:Promise.prototype.then,"%Promise_all%":"undefined"===typeof Promise?void 0:Promise.all,"%Promise_reject%":"undefined"===typeof Promise?void 0:Promise.reject,"%Promise_resolve%":"undefined"===typeof Promise?void 0:Promise.resolve,"%Proxy%":"undefined"===typeof Proxy?void 0:Proxy,"%RangeError%":RangeError,"%RangeErrorPrototype%":RangeError.prototype,"%ReferenceError%":ReferenceError,"%ReferenceErrorPrototype%":ReferenceError.prototype,"%Reflect%":"undefined"===typeof Reflect?void 0:Reflect,"%RegExp%":RegExp,"%RegExpPrototype%":RegExp.prototype,"%Set%":"undefined"===typeof Set?void 0:Set,"%SetIteratorPrototype%":"undefined"!==typeof Set&&a?u((new Set)[Symbol.iterator]()):void 0,"%SetPrototype%":"undefined"===typeof Set?void 0:Set.prototype,"%SharedArrayBuffer%":"undefined"===typeof SharedArrayBuffer?void 0:SharedArrayBuffer,"%SharedArrayBufferPrototype%":"undefined"===typeof SharedArrayBuffer?void 0:SharedArrayBuffer.prototype,"%String%":String,"%StringIteratorPrototype%":a?u(""[Symbol.iterator]()):void 0,"%StringPrototype%":String.prototype,"%Symbol%":a?Symbol:void 0,"%SymbolPrototype%":a?Symbol.prototype:void 0,"%SyntaxError%":SyntaxError,"%SyntaxErrorPrototype%":SyntaxError.prototype,"%ThrowTypeError%":s,"%TypedArray%":p,"%TypedArrayPrototype%":p?p.prototype:void 0,"%TypeError%":r,"%TypeErrorPrototype%":r.prototype,"%Uint8Array%":"undefined"===typeof Uint8Array?void 0:Uint8Array,"%Uint8ArrayPrototype%":"undefined"===typeof Uint8Array?void 0:Uint8Array.prototype,"%Uint8ClampedArray%":"undefined"===typeof Uint8ClampedArray?void 0:Uint8ClampedArray,"%Uint8ClampedArrayPrototype%":"undefined"===typeof Uint8ClampedArray?void 0:Uint8ClampedArray.prototype,"%Uint16Array%":"undefined"===typeof Uint16Array?void 0:Uint16Array,"%Uint16ArrayPrototype%":"undefined"===typeof Uint16Array?void 0:Uint16Array.prototype,"%Uint32Array%":"undefined"===typeof Uint32Array?void 0:Uint32Array,"%Uint32ArrayPrototype%":"undefined"===typeof Uint32Array?void 0:Uint32Array.prototype,"%URIError%":URIError,"%URIErrorPrototype%":URIError.prototype,"%WeakMap%":"undefined"===typeof WeakMap?void 0:WeakMap,"%WeakMapPrototype%":"undefined"===typeof WeakMap?void 0:WeakMap.prototype,"%WeakSet%":"undefined"===typeof WeakSet?void 0:WeakSet,"%WeakSetPrototype%":"undefined"===typeof WeakSet?void 0:WeakSet.prototype},f=n(21).call(Function.call,String.prototype.replace),d=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,h=/\\(\\)?/g,y=function(e){var t=[];return f(e,d,(function(e,n,r,o){t[t.length]=r?f(o,h,"$1"):n||e})),t},g=function(e,t){if(!(e in l))throw new SyntaxError("intrinsic "+e+" does not exist!");if("undefined"===typeof l[e]&&!t)throw new r("intrinsic "+e+" exists, but is not available. Please file an issue!");return l[e]};e.exports=function(e,t){if("string"!==typeof e||0===e.length)throw new TypeError("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!==typeof t)throw new TypeError('"allowMissing" argument must be a boolean');for(var n=y(e),i=g("%"+(n.length>0?n[0]:"")+"%",t),s=1;s=n.length){var a=o(i,n[s]);if(!t&&!(n[s]in i))throw new r("base intrinsic for "+e+" exists, but the property is not available.");i=a?a.get||a.value:i[n[s]]}else i=i[n[s]];return i}},function(e,t,n){"use strict";function r(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}Object.defineProperty(t,"__esModule",{value:!0}),r(n(137)),r(n(138)),r(n(139)),r(n(140))},function(e,t,n){"use strict";function r(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}Object.defineProperty(t,"__esModule",{value:!0}),r(n(50)),r(n(141)),r(n(51)),r(n(52)),r(n(142)),r(n(27)),r(n(53)),r(n(143)),r(n(144))},function(e,t,n){"use strict";var r=n(69),o=n(155),i=Object.prototype.toString;function s(e){return"[object Array]"===i.call(e)}function a(e){return null!==e&&"object"===typeof e}function u(e){return"[object Function]"===i.call(e)}function c(e,t){if(null!==e&&"undefined"!==typeof e)if("object"!==typeof e&&(e=[e]),s(e))for(var n=0,r=e.length;n=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(){}return e.prototype.clone=function(){var e=this,t=new this.constructor;return Object.keys(this).forEach((function(n){var r=e.deepClone(e[n]);void 0!==r&&(t[n]=r)})),t},e.prototype.deepClone=function(e){var t,n,o=typeof e;if("number"===o||"string"===o||"boolean"===o)return e;if(null!==e&&"object"===o){if("function"==typeof e.clone)return e.clone();if(e instanceof Date)return new Date(e.getTime());if(void 0!==e[Symbol.iterator]){var i=[];try{for(var s=r(e),a=s.next();!a.done;a=s.next()){var u=a.value;i.push(this.deepClone(u))}}catch(e){t={error:e}}finally{try{a&&!a.done&&(n=s.return)&&n.call(s)}finally{if(t)throw t.error}}return e instanceof Array?i:new e.constructor(i)}var c={};for(var p in e)e.hasOwnProperty(p)&&(c[p]=this.deepClone(e[p]));return c}},e}();t.Cloneable=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(2),o=function(){function e(){}return e.encode=function(e,t){var n;if("string"==typeof e&&(e=parseInt(e,10)),(n=e.toString(2)).length>t||e<0)throw new r.EncodingError(e+" too large to encode into "+t);return n.length2?arguments[2]:{},i=r(t);o&&(i=s.call(i,Object.getOwnPropertySymbols(t)));for(var a=0;a=0&&"[object Function]"===r.call(e.callee)),n}},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(r){"object"===typeof window&&(n=window)}e.exports=n},function(e,t,n){"use strict";var r=n(88),o=n(93),i=n(22),s=n(42),a=n(41),u=n(121);e.exports=function(){var e=u(this),t=a(i(e,"length")),n=1;arguments.length>0&&"undefined"!==typeof arguments[0]&&(n=s(arguments[0]));var c=r(e,0);return o(c,e,t,0,n),c}},function(e,t,n){var r="function"===typeof Map&&Map.prototype,o=Object.getOwnPropertyDescriptor&&r?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,i=r&&o&&"function"===typeof o.get?o.get:null,s=r&&Map.prototype.forEach,a="function"===typeof Set&&Set.prototype,u=Object.getOwnPropertyDescriptor&&a?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,c=a&&u&&"function"===typeof u.get?u.get:null,p=a&&Set.prototype.forEach,l="function"===typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,f="function"===typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,d=Boolean.prototype.valueOf,h=Object.prototype.toString,y=String.prototype.match,g="function"===typeof BigInt?BigInt.prototype.valueOf:null,v=n(89).custom,m=v&&_(v)?v:null;function b(e,t,n){var r="double"===(n.quoteStyle||t)?'"':"'";return r+e+r}function C(e){return String(e).replace(/"/g,""")}function w(e){return"[object Array]"===I(e)}function _(e){return"[object Symbol]"===I(e)}e.exports=function e(t,n,r,o){var a=n||{};if(S(a,"quoteStyle")&&"single"!==a.quoteStyle&&"double"!==a.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if("undefined"===typeof t)return"undefined";if(null===t)return"null";if("boolean"===typeof t)return t?"true":"false";if("string"===typeof t)return function(e,t){return b(e.replace(/(['\\])/g,"\\$1").replace(/[\x00-\x1f]/g,A),"single",t)}(t,a);if("number"===typeof t)return 0===t?1/0/t>0?"0":"-0":String(t);if("bigint"===typeof t)return String(t)+"n";var u="undefined"===typeof a.depth?5:a.depth;if("undefined"===typeof r&&(r=0),r>=u&&u>0&&"object"===typeof t)return"[Object]";if("undefined"===typeof o)o=[];else if(function(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;n=0)return"[Circular]";function h(t,n){return n&&(o=o.slice()).push(n),e(t,a,r+1,o)}if("function"===typeof t){var v=function(e){if(e.name)return e.name;var t=y.call(e,/^function\s*([\w$]+)/);if(t)return t[1];return null}(t);return"[Function"+(v?": "+v:"")+"]"}if(_(t)){var E=Symbol.prototype.toString.call(t);return"object"===typeof t?P(E):E}if(function(e){if(!e||"object"!==typeof e)return!1;if("undefined"!==typeof HTMLElement&&e instanceof HTMLElement)return!0;return"string"===typeof e.nodeName&&"function"===typeof e.getAttribute}(t)){for(var x="<"+String(t.nodeName).toLowerCase(),T=t.attributes||[],V=0;V"}if(w(t))return 0===t.length?"[]":"[ "+k(t,h).join(", ")+" ]";if(function(e){return"[object Error]"===I(e)}(t)){var j=k(t,h);return 0===j.length?"["+String(t)+"]":"{ ["+String(t)+"] "+j.join(", ")+" }"}if("object"===typeof t){if(m&&"function"===typeof t[m])return t[m]();if("function"===typeof t.inspect)return t.inspect()}if(function(e){if(!i||!e||"object"!==typeof e)return!1;try{i.call(e);try{c.call(e)}catch(x){return!0}return e instanceof Map}catch(t){}return!1}(t)){var U=[];return s.call(t,(function(e,n){U.push(h(n,t)+" => "+h(e,t))})),O("Map",i.call(t),U)}if(function(e){if(!c||!e||"object"!==typeof e)return!1;try{c.call(e);try{i.call(e)}catch(t){return!0}return e instanceof Set}catch(n){}return!1}(t)){var R=[];return p.call(t,(function(e){R.push(h(e,t))})),O("Set",c.call(t),R)}if(function(e){if(!l||!e||"object"!==typeof e)return!1;try{l.call(e,l);try{f.call(e,f)}catch(x){return!0}return e instanceof WeakMap}catch(t){}return!1}(t))return L("WeakMap");if(function(e){if(!f||!e||"object"!==typeof e)return!1;try{f.call(e,f);try{l.call(e,l)}catch(x){return!0}return e instanceof WeakSet}catch(t){}return!1}(t))return L("WeakSet");if(function(e){return"[object Number]"===I(e)}(t))return P(h(Number(t)));if(function(e){return"[object BigInt]"===I(e)}(t))return P(h(g.call(t)));if(function(e){return"[object Boolean]"===I(e)}(t))return P(d.call(t));if(function(e){return"[object String]"===I(e)}(t))return P(h(String(t)));if(!function(e){return"[object Date]"===I(e)}(t)&&!function(e){return"[object RegExp]"===I(e)}(t)){var B=k(t,h);return 0===B.length?"{}":"{ "+B.join(", ")+" }"}return String(t)};var E=Object.prototype.hasOwnProperty||function(e){return e in this};function S(e,t){return E.call(e,t)}function I(e){return h.call(e)}function A(e){var t=e.charCodeAt(0),n={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return n?"\\"+n:"\\x"+(t<16?"0":"")+t.toString(16)}function P(e){return"Object("+e+")"}function L(e){return e+" { ? }"}function O(e,t,n){return e+" ("+t+") {"+n.join(", ")+"}"}function k(e,t){var n=w(e),r=[];if(n){r.length=e.length;for(var o=0;or?r:t}},function(e,t,n){"use strict";var r=n(108),o=n(111);e.exports=function(e){var t=o(e);return r(t)}},function(e,t,n){"use strict";var r=n(32);e.exports=function(){return Array.prototype.flat||r}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}(n(45))},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),(r=t.TCFCommand||(t.TCFCommand={})).PING="ping",r.GET_TC_DATA="getTCData",r.GET_IN_APP_TC_DATA="getInAppTCData",r.GET_VENDOR_LIST="getVendorList",r.ADD_EVENT_LISTENER="addEventListener",r.REMOVE_EVENT_LISTENER="removeEventListener"},function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var o=n(15),i=n(16),s=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.cmpStatus=i.CmpStatus.ERROR,t}return r(t,e),t}(o.Response);t.Disabled=s},function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),o=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)s.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s},i=this&&this.__spread||function(){for(var e=[],t=0;t0)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},t.prototype.createVectorField=function(e,t){return t?t.reduce((function(t,n){return t[n+""]=e.has(+n),t}),{}):i(e).reduce((function(e,t){return e[t[0].toString(10)]=t[1],e}),{})},t}(n(15).Response);t.TCData=a},function(e,t,n){"use strict";var r=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)s.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s},o=this&&this.__spread||function(){for(var e=[],t=0;tt.value))break;if(null===t.right){t.right=n;break}t=t.right}},t.prototype.get=function(){for(var e=[],t=this.root;t;)if(t.left){for(var n=t.left;n.right&&n.right!=t;)n=n.right;n.right==t?(n.right=null,e.push(t.value),t=t.right):(n.right=t,t=t.left)}else e.push(t.value),t=t.right;return e},t.prototype.contains=function(e){for(var t=!1,n=this.root;n;){if(n.value===e){t=!0;break}e>n.value?n=n.right:et.value)n=t,t=t.right,r="right";else{if(t.left||t.right)if(t.left)if(t.right){var o=this.min(t.right);this.remove(o,t.right),t.value=o}else n?n[r]=t.left:this.root=t.left;else n?n[r]=t.right:this.root=t.right;else n?n[r]=null:this.root=null;t=null}},t}(n(8).Cloneable);t.BinarySearchTree=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(){}return e.cmpId="cmpId",e.cmpVersion="cmpVersion",e.consentLanguage="consentLanguage",e.consentScreen="consentScreen",e.created="created",e.supportOOB="supportOOB",e.isServiceSpecific="isServiceSpecific",e.lastUpdated="lastUpdated",e.numCustomPurposes="numCustomPurposes",e.policyVersion="policyVersion",e.publisherCountryCode="publisherCountryCode",e.publisherCustomConsents="publisherCustomConsents",e.publisherCustomLegitimateInterests="publisherCustomLegitimateInterests",e.publisherLegitimateInterests="publisherLegitimateInterests",e.publisherConsents="publisherConsents",e.publisherRestrictions="publisherRestrictions",e.purposeConsents="purposeConsents",e.purposeLegitimateInterests="purposeLegitimateInterests",e.purposeOneTreatment="purposeOneTreatment",e.specialFeatureOptins="specialFeatureOptins",e.useNonStandardStacks="useNonStandardStacks",e.vendorConsents="vendorConsents",e.vendorLegitimateInterests="vendorLegitimateInterests",e.vendorListVersion="vendorListVersion",e.vendorsAllowed="vendorsAllowed",e.vendorsDisclosed="vendorsDisclosed",e.version="version",e}();t.Fields=r},function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var o=n(8),i=n(2),s=n(27),a=function(e){function t(t,n){var r=e.call(this)||this;return void 0!==t&&(r.purposeId=t),void 0!==n&&(r.restrictionType=n),r}return r(t,e),t.unHash=function(e){var n=e.split(this.hashSeparator),r=new t;if(2!==n.length)throw new i.TCModelError("hash",e);return r.purposeId=parseInt(n[0],10),r.restrictionType=parseInt(n[1],10),r},Object.defineProperty(t.prototype,"hash",{get:function(){if(!this.isValid())throw new Error("cannot hash invalid PurposeRestriction");return""+this.purposeId+t.hashSeparator+this.restrictionType},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"purposeId",{get:function(){return this.purposeId_},set:function(e){this.purposeId_=e},enumerable:!0,configurable:!0}),t.prototype.isValid=function(){return Number.isInteger(this.purposeId)&&this.purposeId>0&&(this.restrictionType===s.RestrictionType.NOT_ALLOWED||this.restrictionType===s.RestrictionType.REQUIRE_CONSENT||this.restrictionType===s.RestrictionType.REQUIRE_LI)},t.prototype.isSameAs=function(e){return this.purposeId===e.purposeId&&this.restrictionType===e.restrictionType},t.hashSeparator="-",t}(o.Cloneable);t.PurposeRestriction=a},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),(r=t.Segment||(t.Segment={})).CORE="core",r.VENDORS_DISCLOSED="vendorsDisclosed",r.VENDORS_ALLOWED="vendorsAllowed",r.PUBLISHER_TC="publisherTC"},function(e,t,n){"use strict";function r(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}Object.defineProperty(t,"__esModule",{value:!0}),r(n(12)),r(n(55)),r(n(146)),r(n(28)),r(n(9)),r(n(56)),r(n(57)),r(n(59)),r(n(58))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(9),o=n(2),i=function(){function e(){}return e.encode=function(e,t){return r.IntEncoder.encode(Math.round(e.getTime()/100),t)},e.decode=function(e,t){if(t!==e.length)throw new o.DecodingError("invalid bit length");var n=new Date;return n.setTime(100*r.IntEncoder.decode(e,t)),n},e}();t.DateEncoder=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(9),o=n(2),i=function(){function e(){}return e.encode=function(e,t){var n=(e=e.toUpperCase()).charCodeAt(0)-65,i=e.charCodeAt(1)-65;if(n<0||n>25||i<0||i>25)throw new o.EncodingError("invalid language code: "+e);if(t%2==1)throw new o.EncodingError("numBits must be even, "+t+" is not valid");return t/=2,r.IntEncoder.encode(n,t)+r.IntEncoder.encode(i,t)},e.decode=function(e,t){if(t!==e.length||e.length%2)throw new o.DecodingError("invalid bit length for language");var n=e.length/2,i=r.IntEncoder.decode(e.slice(0,n),n)+65,s=r.IntEncoder.decode(e.slice(n),n)+65;return String.fromCharCode(i)+String.fromCharCode(s)},e}();t.LangEncoder=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(26),o=n(12),i=n(2),s=n(9),a=n(3),u=function(){function e(){}return e.encode=function(e){var t=s.IntEncoder.encode(e.numRestrictions,r.BitLength.numRestrictions);return e.isEmpty()||e.getRestrictions().forEach((function(n){t+=s.IntEncoder.encode(n.purposeId,r.BitLength.purposeId),t+=s.IntEncoder.encode(n.restrictionType,r.BitLength.restrictionType);for(var i=e.getVendors(n),a=i.length,u=0,c=0,p="",l=0;lf+1){var d=!(f===c);p+=o.BooleanEncoder.encode(d),p+=s.IntEncoder.encode(c,r.BitLength.vendorId),d&&(p+=s.IntEncoder.encode(f,r.BitLength.vendorId)),c=0}}t+=s.IntEncoder.encode(u,r.BitLength.numEntries),t+=p})),t},e.decode=function(e){var t=0,n=new a.PurposeRestrictionVector,u=s.IntEncoder.decode(e.substr(t,r.BitLength.numRestrictions),r.BitLength.numRestrictions);t+=r.BitLength.numRestrictions;for(var c=0;cf&&d0&&o[o.length-1])&&(6===i[0]||2===i[0])){s=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]0){var i=n;t.CACHE.has(i)?(r.populate(t.CACHE.get(i)),r.readyPromise=Promise.resolve()):(o+=t.versionedFilename.replace("[VERSION]",i+""),r.readyPromise=r.fetchJson(o))}else t.CACHE.has(t.LATEST_CACHE_KEY)?(r.populate(t.CACHE.get(t.LATEST_CACHE_KEY)),r.readyPromise=Promise.resolve()):(r.isLatest=!0,r.readyPromise=r.fetchJson(o+t.latestFilename))}return r}return r(t,e),Object.defineProperty(t,"baseUrl",{get:function(){return this.baseUrl_},set:function(e){if(/^https?:\/\/vendorlist\.consensu\.org\//.test(e))throw new a.GVLError("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},enumerable:!0,configurable:!0}),t.emptyLanguageCache=function(e){var n=!1;return void 0===e&&t.LANGUAGE_CACHE.size>0?(t.LANGUAGE_CACHE=new Map,n=!0):"string"==typeof e&&this.consentLanguages.has(e.toUpperCase())&&(t.LANGUAGE_CACHE.delete(e.toUpperCase()),n=!0),n},t.emptyCache=function(e){var n=!1;return Number.isInteger(e)&&e>=0?(t.CACHE.delete(e),n=!0):void 0===e&&(t.CACHE=new Map,n=!0),n},t.prototype.cacheLanguage=function(){t.LANGUAGE_CACHE.has(this.lang_)||t.LANGUAGE_CACHE.set(this.lang_,{purposes:this.purposes,specialPurposes:this.specialPurposes,features:this.features,specialFeatures:this.specialFeatures,stacks:this.stacks})},t.prototype.fetchJson=function(e){return o(this,void 0,void 0,(function(){var t,n;return i(this,(function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),t=this.populate,[4,u.Json.fetch(e)];case 1:return t.apply(this,[r.sent()]),[3,3];case 2:throw n=r.sent(),new a.GVLError(n.message);case 3:return[2]}}))}))},t.prototype.getJson=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,vendors:this.fullVendorList}))},t.prototype.changeLanguage=function(e){return o(this,void 0,void 0,(function(){var n,r,o,s,u;return i(this,(function(i){switch(i.label){case 0:if(n=e.toUpperCase(),!t.consentLanguages.has(n))return[3,6];if(n===this.lang_)return[3,5];if(this.lang_=n,!t.LANGUAGE_CACHE.has(n))return[3,1];for(o in r=t.LANGUAGE_CACHE.get(n))r.hasOwnProperty(o)&&(this[o]=r[o]);return[3,5];case 1:s=t.baseUrl+t.languageFilename.replace("[LANG]",e),i.label=2;case 2:return i.trys.push([2,4,,5]),[4,this.fetchJson(s)];case 3:return i.sent(),this.cacheLanguage(),[3,5];case 4:throw u=i.sent(),new a.GVLError("unable to load language: "+u.message);case 5:return[3,7];case 6:throw new a.GVLError("unsupported language "+e);case 7:return[2]}}))}))},Object.defineProperty(t.prototype,"language",{get:function(){return this.lang_},enumerable:!0,configurable:!0}),t.prototype.isVendorList=function(e){return void 0!==e&&void 0!==e.vendors},t.prototype.populate=function(e){this.purposes=e.purposes,this.specialPurposes=e.specialPurposes,this.features=e.features,this.specialFeatures=e.specialFeatures,this.stacks=e.stacks,this.isVendorList(e)&&(this.gvlSpecificationVersion=e.gvlSpecificationVersion,this.tcfPolicyVersion=e.tcfPolicyVersion,this.vendorListVersion=e.vendorListVersion,this.lastUpdated=e.lastUpdated,"string"==typeof this.lastUpdated&&(this.lastUpdated=new Date(this.lastUpdated)),this.vendors_=e.vendors,this.fullVendorList=e.vendors,this.mapVendors(),this.isReady_=!0,this.isLatest&&t.CACHE.set(t.LATEST_CACHE_KEY,this.getJson()),t.CACHE.has(this.vendorListVersion)||t.CACHE.set(this.vendorListVersion,this.getJson())),this.cacheLanguage()},t.prototype.mapVendors=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_[""+n];return r&&void 0===r.deletedDate&&(r.purposes.forEach((function(e){t.byPurposeVendorMap[e+""].consent.add(n)})),r.specialPurposes.forEach((function(e){t.bySpecialPurposeVendorMap[e+""].add(n)})),r.legIntPurposes.forEach((function(e){t.byPurposeVendorMap[e+""].legInt.add(n)})),r.flexiblePurposes&&r.flexiblePurposes.forEach((function(e){t.byPurposeVendorMap[e+""].flexible.add(n)})),r.features.forEach((function(e){t.byFeatureVendorMap[e+""].add(n)})),r.specialFeatures.forEach((function(e){t.bySpecialFeatureVendorMap[e+""].add(n)})),e[n]=r),e}),{})},t.prototype.getFilteredVendors=function(e,t,n,r){var o=this,i=e.charAt(0).toUpperCase()+e.slice(1),s={};return("purpose"===e&&n?this["by"+i+"VendorMap"][t+""][n]:this["by"+(r?"Special":"")+i+"VendorMap"][t+""]).forEach((function(e){s[e+""]=o.vendors[e+""]})),s},t.prototype.getVendorsWithConsentPurpose=function(e){return this.getFilteredVendors("purpose",e,"consent")},t.prototype.getVendorsWithLegIntPurpose=function(e){return this.getFilteredVendors("purpose",e,"legInt")},t.prototype.getVendorsWithFlexiblePurpose=function(e){return this.getFilteredVendors("purpose",e,"flexible")},t.prototype.getVendorsWithSpecialPurpose=function(e){return this.getFilteredVendors("purpose",e,void 0,!0)},t.prototype.getVendorsWithFeature=function(e){return this.getFilteredVendors("feature",e)},t.prototype.getVendorsWithSpecialFeature=function(e){return this.getFilteredVendors("feature",e,void 0,!0)},Object.defineProperty(t.prototype,"vendors",{get:function(){return this.vendors_},enumerable:!0,configurable:!0}),t.prototype.narrowVendorsTo=function(e){this.mapVendors(e)},Object.defineProperty(t.prototype,"isReady",{get:function(){return this.isReady_},enumerable:!0,configurable:!0}),t.prototype.clone=function(){return new t(this.getJson())},t.isInstanceOf=function(e){return"object"==typeof e&&"function"==typeof e.narrowVendorsTo},t.LANGUAGE_CACHE=new Map,t.CACHE=new Map,t.LATEST_CACHE_KEY=0,t.DEFAULT_LANGUAGE="EN",t.consentLanguages=new c.ConsentLanguages,t.latestFilename="vendor-list.json",t.versionedFilename="archives/vendor-list-v[VERSION].json",t.languageFilename="purposes-[LANG].json",t}(s.Cloneable);t.GVL=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(){}return e.absCall=function(e,t,n,r){return new Promise((function(o,i){var s=new XMLHttpRequest;s.withCredentials=n,s.addEventListener("load",(function(){if(s.readyState==XMLHttpRequest.DONE)if(s.status>=200&&s.status<300){var e=s.response;if("string"==typeof e)try{e=JSON.parse(e)}catch(e){}o(e)}else i(new Error("HTTP Status: "+s.status+" response type: "+s.responseType))})),s.addEventListener("error",(function(){i(new Error("error"))})),s.addEventListener("abort",(function(){i(new Error("aborted"))})),null===t?s.open("GET",e,!0):s.open("POST",e,!0),s.responseType="json",s.timeout=r,s.ontimeout=function(){i(new Error("Timeout "+r+"ms "+e))},s.send(t)}))},e.post=function(e,t,n,r){return void 0===n&&(n=!1),void 0===r&&(r=0),this.absCall(e,JSON.stringify(t),n,r)},e.fetch=function(e,t,n){return void 0===t&&(t=!1),void 0===n&&(n=0),this.absCall(e,null,t,n)},e}();t.Json=r},function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var o=n(8),i=n(2),s=n(61),a=n(3),u=function(e){function t(t){var n=e.call(this)||this;return n.isServiceSpecific_=!1,n.supportOOB_=!0,n.useNonStandardStacks_=!1,n.purposeOneTreatment_=!1,n.publisherCountryCode_="AA",n.version_=2,n.consentScreen_=0,n.policyVersion_=2,n.consentLanguage_="EN",n.cmpId_=0,n.cmpVersion_=0,n.vendorListVersion_=0,n.numCustomPurposes_=0,n.specialFeatureOptins=new a.Vector,n.purposeConsents=new a.Vector,n.purposeLegitimateInterests=new a.Vector,n.publisherConsents=new a.Vector,n.publisherLegitimateInterests=new a.Vector,n.publisherCustomConsents=new a.Vector,n.publisherCustomLegitimateInterests=new a.Vector,n.vendorConsents=new a.Vector,n.vendorLegitimateInterests=new a.Vector,n.vendorsDisclosed=new a.Vector,n.vendorsAllowed=new a.Vector,n.publisherRestrictions=new a.PurposeRestrictionVector,t&&(n.gvl=t),n.created=new Date,n.updated(),n}return r(t,e),Object.defineProperty(t.prototype,"gvl",{get:function(){return this.gvl_},set:function(e){s.GVL.isInstanceOf(e)||(e=new s.GVL(e)),this.gvl_=e,this.publisherRestrictions.gvl=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"cmpId",{get:function(){return this.cmpId_},set:function(e){if(!(Number.isInteger(+e)&&e>1))throw new i.TCModelError("cmpId",e);this.cmpId_=+e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"cmpVersion",{get:function(){return this.cmpVersion_},set:function(e){if(!(Number.isInteger(+e)&&e>-1))throw new i.TCModelError("cmpVersion",e);this.cmpVersion_=+e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"consentScreen",{get:function(){return this.consentScreen_},set:function(e){if(!(Number.isInteger(+e)&&e>-1))throw new i.TCModelError("consentScreen",e);this.consentScreen_=+e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"consentLanguage",{get:function(){return this.consentLanguage_},set:function(e){this.consentLanguage_=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"publisherCountryCode",{get:function(){return this.publisherCountryCode_},set:function(e){if(!/^([A-z]){2}$/.test(e))throw new i.TCModelError("publisherCountryCode",e);this.publisherCountryCode_=e.toUpperCase()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"vendorListVersion",{get:function(){return this.gvl?this.gvl.vendorListVersion:this.vendorListVersion_},set:function(e){if((e=+e>>0)<0)throw new i.TCModelError("vendorListVersion",e);this.vendorListVersion_=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"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 i.TCModelError("policyVersion",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"version",{get:function(){return this.version_},set:function(e){this.version_=parseInt(e,10)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isServiceSpecific",{get:function(){return this.isServiceSpecific_},set:function(e){this.isServiceSpecific_=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"useNonStandardStacks",{get:function(){return this.useNonStandardStacks_},set:function(e){this.useNonStandardStacks_=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"supportOOB",{get:function(){return this.supportOOB_},set:function(e){this.supportOOB_=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"purposeOneTreatment",{get:function(){return this.purposeOneTreatment_},set:function(e){this.purposeOneTreatment_=e},enumerable:!0,configurable:!0}),t.prototype.setAllVendorConsents=function(){this.vendorConsents.set(this.gvl.vendors)},t.prototype.unsetAllVendorConsents=function(){this.vendorConsents.empty()},t.prototype.setAllVendorsDisclosed=function(){this.vendorsDisclosed.set(this.gvl.vendors)},t.prototype.unsetAllVendorsDisclosed=function(){this.vendorsDisclosed.empty()},t.prototype.setAllVendorsAllowed=function(){this.vendorsAllowed.set(this.gvl.vendors)},t.prototype.unsetAllVendorsAllowed=function(){this.vendorsAllowed.empty()},t.prototype.setAllVendorLegitimateInterests=function(){this.vendorLegitimateInterests.set(this.gvl.vendors)},t.prototype.unsetAllVendorLegitimateInterests=function(){this.vendorLegitimateInterests.empty()},t.prototype.setAllPurposeConsents=function(){this.purposeConsents.set(this.gvl.purposes)},t.prototype.unsetAllPurposeConsents=function(){this.purposeConsents.empty()},t.prototype.setAllPurposeLegitimateInterests=function(){this.purposeLegitimateInterests.set(this.gvl.purposes)},t.prototype.unsetAllPurposeLegitimateInterests=function(){this.purposeLegitimateInterests.empty()},t.prototype.setAllSpecialFeatureOptins=function(){this.specialFeatureOptins.set(this.gvl.specialFeatures)},t.prototype.unsetAllSpecialFeatureOptins=function(){this.specialFeatureOptins.empty()},t.prototype.setAll=function(){this.setAllVendorConsents(),this.setAllPurposeLegitimateInterests(),this.setAllSpecialFeatureOptins(),this.setAllPurposeConsents(),this.setAllVendorLegitimateInterests()},t.prototype.unsetAll=function(){this.unsetAllVendorConsents(),this.unsetAllPurposeLegitimateInterests(),this.unsetAllSpecialFeatureOptins(),this.unsetAllPurposeConsents(),this.unsetAllVendorLegitimateInterests()},Object.defineProperty(t.prototype,"numCustomPurposes",{get:function(){var e=this.numCustomPurposes_;if("object"==typeof this.customPurposes){var t=Object.keys(this.customPurposes).sort((function(e,t){return+e-+t}));e=parseInt(t.pop(),10)}return e},set:function(e){if(this.numCustomPurposes_=parseInt(e,10),this.numCustomPurposes_<0)throw new i.TCModelError("numCustomPurposes",e)},enumerable:!0,configurable:!0}),t.prototype.updated=function(){this.lastUpdated=new Date},t.consentLanguages=s.GVL.consentLanguages,t}(o.Cloneable);t.TCModel=u},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){e.exports=["en","fr","de","it","es","da","nl","el","hu","pt","ro","fi","pl","sk","sv","no","ru","bg","ca","cs","et","hr","lt","lv","mt","sl","tr","zh"]},function(e,t,n){"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};r.forEach(["delete","get","head"],(function(e){a.headers[e]={}})),r.forEach(["post","put","patch"],(function(e){a.headers[e]=r.merge(i)})),e.exports=a}).call(this,n(160))},function(e,t,n){"use strict";var r=n(4),o=n(162),i=n(70),s=n(164),a=n(165),u=n(74);e.exports=function(e){return new Promise((function(t,c){var p=e.data,l=e.headers;r.isFormData(p)&&delete l["Content-Type"];var f=new XMLHttpRequest;if(e.auth){var d=e.auth.username||"",h=e.auth.password||"";l.Authorization="Basic "+btoa(d+":"+h)}if(f.open(e.method.toUpperCase(),i(e.url,e.params,e.paramsSerializer),!0),f.timeout=e.timeout,f.onreadystatechange=function(){if(f&&4===f.readyState&&(0!==f.status||f.responseURL&&0===f.responseURL.indexOf("file:"))){var n="getAllResponseHeaders"in f?s(f.getAllResponseHeaders()):null,r={data:e.responseType&&"text"!==e.responseType?f.response:f.responseText,status:f.status,statusText:f.statusText,headers:n,config:e,request:f};o(t,c,r),f=null}},f.onabort=function(){f&&(c(u("Request aborted",e,"ECONNABORTED",f)),f=null)},f.onerror=function(){c(u("Network Error",e,null,f)),f=null},f.ontimeout=function(){c(u("timeout of "+e.timeout+"ms exceeded",e,"ECONNABORTED",f)),f=null},r.isStandardBrowserEnv()){var y=n(166),g=(e.withCredentials||a(e.url))&&e.xsrfCookieName?y.read(e.xsrfCookieName):void 0;g&&(l[e.xsrfHeaderName]=g)}if("setRequestHeader"in f&&r.forEach(l,(function(e,t){"undefined"===typeof p&&"content-type"===t.toLowerCase()?delete l[t]:f.setRequestHeader(t,e)})),e.withCredentials&&(f.withCredentials=!0),e.responseType)try{f.responseType=e.responseType}catch(v){if("json"!==e.responseType)throw v}"function"===typeof e.onDownloadProgress&&f.addEventListener("progress",e.onDownloadProgress),"function"===typeof e.onUploadProgress&&f.upload&&f.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then((function(e){f&&(f.abort(),c(e),f=null)})),void 0===p&&(p=null),f.send(p)}))}},function(e,t,n){"use strict";var r=n(163);e.exports=function(e,t,n,o,i){var s=new Error(e);return r(s,t,n,o,i)}},function(e,t,n){"use strict";var r=n(4);e.exports=function(e,t){t=t||{};var n={};return r.forEach(["url","method","params","data"],(function(e){"undefined"!==typeof t[e]&&(n[e]=t[e])})),r.forEach(["headers","auth","proxy"],(function(o){r.isObject(t[o])?n[o]=r.deepMerge(e[o],t[o]):"undefined"!==typeof t[o]?n[o]=t[o]:r.isObject(e[o])?n[o]=r.deepMerge(e[o]):"undefined"!==typeof e[o]&&(n[o]=e[o])})),r.forEach(["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","maxContentLength","validateStatus","maxRedirects","httpAgent","httpsAgent","cancelToken","socketPath"],(function(r){"undefined"!==typeof t[r]?n[r]=t[r]:"undefined"!==typeof e[r]&&(n[r]=e[r])})),n}},function(e,t,n){"use strict";function r(e){this.message=e}r.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},r.prototype.__CANCEL__=!0,e.exports=r},function(e,t,n){"use strict";var r=n(29),o=n(20),i=n(32),s=n(43),a=s(),u=n(124),c=o(a);r(c,{getPolyfill:s,implementation:i,shim:u}),e.exports=c},function(e,t,n){"use strict";function r(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}Object.defineProperty(t,"__esModule",{value:!0}),r(n(44)),r(n(14)),r(n(16)),r(n(132));var o=n(48);t.API_KEY=o.API_KEY},function(e,t){e.exports="data:image/svg+xml,%3Csvg viewBox='0 0 16 17' version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' style='margin-right: 5px; height: 17px;'%3E%3Cg id='Page-1' stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3E%3Cg id='cog' fill='%23FFFFFF' fill-rule='nonzero'%3E%3Cpath d='M15.596917,9.98326938 L14.5041079,9.33798816 C14.5728064,8.7815386 14.5728064,8.2184614 14.5041079,7.66201184 L15.596917,7.01673062 C15.9178229,6.82726259 16.0726124,6.43742732 15.9670848,6.0741546 C15.5912871,4.78033611 14.9223646,3.61573153 14.0390021,2.66061113 C13.7831755,2.38401797 13.3749053,2.32348965 13.0525249,2.51384881 L11.9613243,3.15813608 C11.5248519,2.81840117 11.0481221,2.53648663 10.542482,2.31910255 L10.542482,1.02991108 C10.542482,0.648438733 10.2860522,0.316869683 9.92305592,0.229024792 C8.66155,-0.07632446 7.33871809,-0.0763587342 6.07694408,0.229024792 C5.71398131,0.316869683 5.457518,0.648404458 5.457518,1.02991108 L5.457518,2.31910255 C4.95187406,2.53647872 4.47514334,2.81839382 4.03867572,3.15813608 L2.94747511,2.51384881 C2.62506122,2.32348965 2.21679094,2.38401797 1.96099786,2.66061113 C1.07763542,3.61573153 0.40871289,4.78037038 0.0329152236,6.0741546 C-0.072612407,6.43742732 0.0821770899,6.82722832 0.403082962,7.01673062 L1.49589212,7.66201184 C1.42719356,8.2184614 1.42719356,8.7815386 1.49589212,9.33798816 L0.403082962,9.98326938 C0.0821770899,10.1727374 -0.072612407,10.5625727 0.0329152236,10.9258454 C0.40871289,12.2196296 1.07763542,13.3842685 1.96099786,14.3393889 C2.21682445,14.615982 2.62509474,14.6765103 2.94747511,14.4861855 L4.03867572,13.8418982 C4.47514096,14.1816349 4.95187243,14.4635389 5.457518,14.6808975 L5.457518,15.9700889 C5.457518,16.3515613 5.7139478,16.6831303 6.07694408,16.7709752 C7.33848351,17.0763245 8.66128191,17.0763587 9.92305592,16.7709752 C10.2860187,16.6831303 10.542482,16.3515955 10.542482,15.9700889 L10.542482,14.6808975 C11.0481183,14.4635198 11.5248475,14.1816171 11.9613243,13.8418982 L13.0525249,14.4861855 C13.3749053,14.6765446 13.7831755,14.6160163 14.0390021,14.3393889 C14.9223646,13.3842685 15.5912871,12.2196296 15.9670848,10.9258454 C16.0726124,10.5625727 15.9178229,10.1727717 15.596917,9.98326938 Z M13.4026193,13.4264943 L11.8507364,12.510001 C10.9463288,13.3007421 10.6255905,13.4997041 9.47011484,13.9172673 L9.47011484,15.7502196 C8.50024808,15.9548373 7.49975192,15.9548373 6.52988516,15.7502196 L6.52988516,13.9172673 C5.4031959,13.5101235 5.07699522,13.3210668 4.14926358,12.510001 L2.59738075,13.4264943 C1.9368696,12.6693763 1.43490124,11.7817076 1.12525522,10.8230912 L2.67780828,9.90659789 C2.4588108,8.69270694 2.45871027,8.30790999 2.67780828,7.09340211 L1.12525522,6.17690879 C1.43490124,5.21829242 1.93690311,4.33058946 2.59738075,3.57312864 L4.14926358,4.49030745 C5.0667072,3.68712478 5.39129933,3.4941265 6.52988516,3.08269846 L6.52988516,1.24978037 C7.49971774,1.04482059 8.50028226,1.04482059 9.47011484,1.24978037 L9.47011484,3.08273274 C10.6087677,3.49419505 10.9333933,3.6872276 11.8507364,4.49034172 L13.4026193,3.57316291 C14.0630969,4.33058946 14.5650988,5.21829242 14.8747448,6.17694306 L13.3221917,7.09343638 C13.5412227,8.3076358 13.5412897,8.69212428 13.3221917,9.90663217 L14.8747448,10.8231255 C14.5650988,11.7817076 14.0631304,12.6694105 13.4026193,13.4264943 Z M8,5.20968958 C6.22607014,5.20968958 4.78289853,6.68570996 4.78289853,8.50001714 C4.78289853,10.3143243 6.22607014,11.7903447 8,11.7903447 C9.77392986,11.7903447 11.2171015,10.3143243 11.2171015,8.50001714 C11.2171015,6.68570996 9.77392986,5.20968958 8,5.20968958 Z M8,10.6935688 C6.81738009,10.6935688 5.85526568,9.70955526 5.85526568,8.50001714 C5.85526568,7.29047902 6.81738009,6.30646543 8,6.30646543 C9.18261991,6.30646543 10.1447343,7.29047902 10.1447343,8.50001714 C10.1447343,9.70955526 9.18261991,10.6935688 8,10.6935688 Z' id='Shape'%3E%3C/path%3E%3C/g%3E%3C/g%3E%3C/svg%3E"},function(e,t,n){e.exports=function e(t,n,r){function o(s,a){if(!n[s]){if(!t[s]){if(i)return i(s,!0);throw new Error("Cannot find module '"+s+"'")}var u=n[s]={exports:{}};t[s][0].call(u.exports,(function(e){return o(t[s][1][e]||e)}),u,u.exports,e,t,n,r)}return n[s].exports}for(var i=!1,s=0;s>16),p((65280&o)>>8),p(255&o);return 2==i?p(255&(o=c(e.charAt(n))<<2|c(e.charAt(n+1))>>4)):1==i&&(p((o=c(e.charAt(n))<<10|c(e.charAt(n+1))<<4|c(e.charAt(n+2))>>2)>>8&255),p(255&o)),s},e.fromByteArray=function(e){var t,n,r,o,i=e.length%3,s="";function a(e){return"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(e)}for(t=0,r=e.length-i;t>18&63)+a(o>>12&63)+a(o>>6&63)+a(63&o);switch(i){case 1:s+=a((n=e[e.length-1])>>2),s+=a(n<<4&63),s+="==";break;case 2:s+=a((n=(e[e.length-2]<<8)+e[e.length-1])>>10),s+=a(n>>4&63),s+=a(n<<2&63),s+="="}return s}}(void 0===n?this.base64js={}:n)}).call(this,e("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/base64-js/lib/b64.js","/node_modules/gulp-browserify/node_modules/base64-js/lib")},{buffer:3,lYpoI2:10}],3:[function(e,t,n){(function(t,r,o,i,s,a,u,c,p){var l=e("base64-js"),f=e("ieee754");function o(e,t,n){if(!(this instanceof o))return new o(e,t,n);var r,i,s,a=typeof e;if("base64"===t&&"string"==a)for(e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e);e.length%4!=0;)e+="=";if("number"==a)r=O(e);else if("string"==a)r=o.byteLength(e,t);else{if("object"!=a)throw new Error("First argument needs to be a number, array or string.");r=O(e.length)}if(o._useTypedArrays?i=o._augment(new Uint8Array(r)):((i=this).length=r,i._isBuffer=!0),o._useTypedArrays&&"number"==typeof e.byteLength)i._set(e);else if(function(e){return k(e)||o.isBuffer(e)||e&&"object"==typeof e&&"number"==typeof e.length}(e))for(s=0;s>>0)):(t+1>>0),o}function v(e,t,n,r){if(r||(F("boolean"==typeof n,"missing or invalid endian"),F(null!=t,"missing offset"),F(t+1>>8*(r?s:1-s)}function _(e,t,n,r,o){o||(F(null!=t,"missing value"),F("boolean"==typeof r,"missing or invalid endian"),F(null!=n,"missing offset"),F(n+3>>8*(r?s:3-s)&255}function E(e,t,n,r,o){o||(F(null!=t,"missing value"),F("boolean"==typeof r,"missing or invalid endian"),F(null!=n,"missing offset"),F(n+1>8,r=t%256,o.push(r),o.push(n);return o}(t),e,n,r)}(this,e,t,n);break;default:throw new Error("Unknown encoding")}return s},o.prototype.toString=function(e,t,n){var r,o=this;if(e=String(e||"utf8").toLowerCase(),t=Number(t)||0,(n=void 0!==n?Number(n):n=o.length)===t)return"";switch(e){case"hex":r=function(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||rthis.length&&(r=this.length),e.length-t=this.length))return this[e]},o.prototype.readUInt16LE=function(e,t){return y(this,e,!0,t)},o.prototype.readUInt16BE=function(e,t){return y(this,e,!1,t)},o.prototype.readUInt32LE=function(e,t){return g(this,e,!0,t)},o.prototype.readUInt32BE=function(e,t){return g(this,e,!1,t)},o.prototype.readInt8=function(e,t){if(t||(F(null!=e,"missing offset"),F(e=this.length))return 128&this[e]?-1*(255-this[e]+1):this[e]},o.prototype.readInt16LE=function(e,t){return v(this,e,!0,t)},o.prototype.readInt16BE=function(e,t){return v(this,e,!1,t)},o.prototype.readInt32LE=function(e,t){return m(this,e,!0,t)},o.prototype.readInt32BE=function(e,t){return m(this,e,!1,t)},o.prototype.readFloatLE=function(e,t){return b(this,e,!0,t)},o.prototype.readFloatBE=function(e,t){return b(this,e,!1,t)},o.prototype.readDoubleLE=function(e,t){return C(this,e,!0,t)},o.prototype.readDoubleBE=function(e,t){return C(this,e,!1,t)},o.prototype.writeUInt8=function(e,t,n){n||(F(null!=e,"missing value"),F(null!=t,"missing offset"),F(t=this.length||(this[t]=e)},o.prototype.writeUInt16LE=function(e,t,n){w(this,e,t,!0,n)},o.prototype.writeUInt16BE=function(e,t,n){w(this,e,t,!1,n)},o.prototype.writeUInt32LE=function(e,t,n){_(this,e,t,!0,n)},o.prototype.writeUInt32BE=function(e,t,n){_(this,e,t,!1,n)},o.prototype.writeInt8=function(e,t,n){n||(F(null!=e,"missing value"),F(null!=t,"missing offset"),F(t=this.length||(0<=e?this.writeUInt8(e,t,n):this.writeUInt8(255+e+1,t,n))},o.prototype.writeInt16LE=function(e,t,n){E(this,e,t,!0,n)},o.prototype.writeInt16BE=function(e,t,n){E(this,e,t,!1,n)},o.prototype.writeInt32LE=function(e,t,n){S(this,e,t,!0,n)},o.prototype.writeInt32BE=function(e,t,n){S(this,e,t,!1,n)},o.prototype.writeFloatLE=function(e,t,n){I(this,e,t,!0,n)},o.prototype.writeFloatBE=function(e,t,n){I(this,e,t,!1,n)},o.prototype.writeDoubleLE=function(e,t,n){A(this,e,t,!0,n)},o.prototype.writeDoubleBE=function(e,t,n){A(this,e,t,!1,n)},o.prototype.fill=function(e,t,n){if(e=e||0,t=t||0,n=n||this.length,"string"==typeof e&&(e=e.charCodeAt(0)),F("number"==typeof e&&!isNaN(e),"value is not a number"),F(t<=n,"end < start"),n!==t&&0!==this.length){F(0<=t&&t"},o.prototype.toArrayBuffer=function(){if("undefined"==typeof Uint8Array)throw new Error("Buffer.toArrayBuffer not supported in this browser");if(o._useTypedArrays)return new o(this).buffer;for(var e=new Uint8Array(this.length),t=0,n=e.length;t=t.length||o>=e.length);o++)t[o+n]=e[o];return o}function U(e){try{return decodeURIComponent(e)}catch(e){return String.fromCharCode(65533)}}function R(e,t){F("number"==typeof e,"cannot write a non-number as a number"),F(0<=e,"specified a negative value for writing an unsigned value"),F(e<=t,"value is larger than maximum value for type"),F(Math.floor(e)===e,"value has a fractional component")}function B(e,t,n){F("number"==typeof e,"cannot write a non-number as a number"),F(e<=t,"value larger than maximum allowed value"),F(n<=e,"value smaller than minimum allowed value"),F(Math.floor(e)===e,"value has a fractional component")}function M(e,t,n){F("number"==typeof e,"cannot write a non-number as a number"),F(e<=t,"value larger than maximum allowed value"),F(n<=e,"value smaller than minimum allowed value")}function F(e,t){if(!e)throw new Error(t||"Failed assertion")}o._augment=function(e){return e._isBuffer=!0,e._get=e.get,e._set=e.set,e.get=P.get,e.set=P.set,e.write=P.write,e.toString=P.toString,e.toLocaleString=P.toString,e.toJSON=P.toJSON,e.copy=P.copy,e.slice=P.slice,e.readUInt8=P.readUInt8,e.readUInt16LE=P.readUInt16LE,e.readUInt16BE=P.readUInt16BE,e.readUInt32LE=P.readUInt32LE,e.readUInt32BE=P.readUInt32BE,e.readInt8=P.readInt8,e.readInt16LE=P.readInt16LE,e.readInt16BE=P.readInt16BE,e.readInt32LE=P.readInt32LE,e.readInt32BE=P.readInt32BE,e.readFloatLE=P.readFloatLE,e.readFloatBE=P.readFloatBE,e.readDoubleLE=P.readDoubleLE,e.readDoubleBE=P.readDoubleBE,e.writeUInt8=P.writeUInt8,e.writeUInt16LE=P.writeUInt16LE,e.writeUInt16BE=P.writeUInt16BE,e.writeUInt32LE=P.writeUInt32LE,e.writeUInt32BE=P.writeUInt32BE,e.writeInt8=P.writeInt8,e.writeInt16LE=P.writeInt16LE,e.writeInt16BE=P.writeInt16BE,e.writeInt32LE=P.writeInt32LE,e.writeInt32BE=P.writeInt32BE,e.writeFloatLE=P.writeFloatLE,e.writeFloatBE=P.writeFloatBE,e.writeDoubleLE=P.writeDoubleLE,e.writeDoubleBE=P.writeDoubleBE,e.fill=P.fill,e.inspect=P.inspect,e.toArrayBuffer=P.toArrayBuffer,e}}).call(this,e("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/buffer/index.js","/node_modules/gulp-browserify/node_modules/buffer")},{"base64-js":2,buffer:3,ieee754:11,lYpoI2:10}],4:[function(e,t,n){(function(n,r,o,i,s,a,u,c,p){var l=new(o=e("buffer").Buffer)(4);l.fill(0),t.exports={hash:function(e,t,n,r){return o.isBuffer(e)||(e=new o(e)),function(e,t,n){for(var r=new o(t),i=n?r.writeInt32BE:r.writeInt32LE,s=0;sy?t=e(t):t.length>5]|=128<>>9<<4)]=t;for(var n=1732584193,r=-271733879,o=-1732584194,i=271733878,s=0;s>>32-t}(m(m(t,e),m(r,i)),o),n)}function h(e,t,n,r,o,i,s){return d(t&n|~t&r,e,t,o,i,s)}function y(e,t,n,r,o,i,s){return d(t&r|n&~r,e,t,o,i,s)}function g(e,t,n,r,o,i,s){return d(t^n^r,e,t,o,i,s)}function v(e,t,n,r,o,i,s){return d(n^(t|~r),e,t,o,i,s)}function m(e,t){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}t.exports=function(e){return l.hash(e,f,16)}}).call(this,e("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/md5.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{"./helpers":4,buffer:3,lYpoI2:10}],7:[function(e,t,n){(function(e,n,r,o,i,s,a,u,c){!function(){var e,n;e=function(e){for(var t,n=new Array(e),r=0;r>>((3&r)<<3)&255;return n},this.crypto&&crypto.getRandomValues&&(n=function(e){var t=new Uint8Array(e);return crypto.getRandomValues(t),t}),t.exports=n||e}()}).call(this,e("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/rng.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{buffer:3,lYpoI2:10}],8:[function(e,t,n){(function(n,r,o,i,s,a,u,c,p){var l=e("./helpers");function f(e,t){e[t>>5]|=128<<24-t%32,e[15+(t+64>>9<<4)]=t;for(var n,r=Array(80),o=1732584193,i=-271733879,s=-1732584194,a=271733878,u=-1009589776,c=0;c>16)+(t>>16)+(n>>16)<<16|65535&n}function y(e,t){return e<>>32-t}t.exports=function(e){return l.hash(e,f,20,!0)}}).call(this,e("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/sha.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{"./helpers":4,buffer:3,lYpoI2:10}],9:[function(e,t,n){(function(n,r,o,i,s,a,u,c,p){function l(e,t){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}function f(e,t){return e>>>t|e<<32-t}function d(e,t){return e>>>t}function h(e,t){var n,r,o,i,s,a,u,c,p,h,y,g,v,m,b,C,w,_,E=new Array(1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298),S=new Array(1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225),I=new Array(64);e[t>>5]|=128<<24-t%32,e[15+(t+64>>9<<4)]=t;for(var A=0;A>1,p=-7,l=n?o-1:0,f=n?-1:1,d=e[t+l];for(l+=f,i=d&(1<<-p)-1,d>>=-p,p+=a;0>=-p,p+=r;0>1,f=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,d=r?0:i-1,h=r?1:-1,y=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(a=isNaN(t)?1:0,s=p):(s=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-s))<1&&(s--,u*=2),2<=(t+=1<=s+l?f/u:f*Math.pow(2,1-l))*u&&(s++,u/=2),p<=s+l?(a=0,s=p):1<=s+l?(a=(t*u-1)*Math.pow(2,o),s+=l):(a=t*Math.pow(2,l-1)*Math.pow(2,o),s=0));8<=o;e[n+d]=255&a,d+=h,a/=256,o-=8);for(s=s<0&&!o.call(e,0))for(var y=0;y0)for(var g=0;g= 0");var n,r=0===t?0:t;if(u(e)&&(n=a(e,"constructor"),i&&"Object"===l(n)&&null===(n=a(n,i))&&(n=void 0)),"undefined"===typeof n)return o(r);if(!c(n))throw new s("C must be a constructor");return new n(r)}},function(e,t){},function(e,t,n){"use strict";e.exports=function(e){return null===e?"Null":"undefined"===typeof e?"Undefined":"function"===typeof e||"object"===typeof e?"Object":"number"===typeof e?"Number":"boolean"===typeof e?"Boolean":"string"===typeof e?"String":void 0}},function(e,t,n){"use strict";e.exports=function(e){return"function"===typeof e&&!!e.prototype}},function(e,t,n){"use strict";var r=n(1)("%Math%"),o=r.floor,i=r.abs,s=n(24),a=n(34);e.exports=function(e){if("number"!==typeof e||s(e)||!a(e))return!1;var t=i(e);return o(t)===t}},function(e,t,n){"use strict";var r=n(1)("%TypeError%"),o=n(35),i=n(94),s=n(95),a=n(22),u=n(107),c=n(23),p=n(41),l=n(120);e.exports=function e(t,n,f,d,h){var y;arguments.length>5&&(y=arguments[5]);for(var g=d,v=0;v0&&(w=c(C)),w){var _=p(a(C,"length"));g=e(t,C,_,g,h-1)}else{if(g>=o)throw new r("index too large");s(t,l(g),C),g+=1}}v+=1}return g}},function(e,t,n){"use strict";var r=n(1)("%TypeError%"),o=n(33),i=n(36);e.exports=function(e,t){var n=arguments.length>2?arguments[2]:[];if(!i(e))throw new r(o(e)+" is not a function");return e.apply(t,n)}},function(e,t,n){"use strict";var r=n(1)("%TypeError%"),o=n(96),i=n(10),s=n(6);e.exports=function(e,t,n){if("Object"!==s(e))throw new r("Assertion failed: Type(O) is not Object");if(!i(t))throw new r("Assertion failed: IsPropertyKey(P) is not true");var a=o(e,t,n);if(!a)throw new r("unable to create data property");return a}},function(e,t,n){"use strict";var r=n(1)("%TypeError%"),o=n(97),i=n(98),s=n(99),a=n(104),u=n(105),c=n(10),p=n(106),l=n(6);e.exports=function(e,t,n){if("Object"!==l(e))throw new r("Assertion failed: Type(O) is not Object");if(!c(t))throw new r("Assertion failed: IsPropertyKey(P) is not true");var f=s(e,t),d=!f||u(e);return!(f&&(!f["[[Writable]]"]||!f["[[Configurable]]"])||!d)&&o(a,p,i,e,t,{"[[Configurable]]":!0,"[[Enumerable]]":!0,"[[Value]]":n,"[[Writable]]":!0})}},function(e,t,n){"use strict";var r=n(1)("%Object.defineProperty%",!0);if(r)try{r({},"a",{value:1})}catch(i){r=null}var o=n(13)("Object.prototype.propertyIsEnumerable");e.exports=function(e,t,n,i,s,a){if(!r){if(!e(a))return!1;if(!a["[[Configurable]]"]||!a["[[Writable]]"])return!1;if(s in i&&o(i,s)!==!!a["[[Enumerable]]"])return!1;var u=a["[[Value]]"];return i[s]=u,t(i[s],u)}return r(i,s,n(a)),!0}},function(e,t,n){"use strict";var r=n(38),o=n(6);e.exports=function(e){if("undefined"===typeof e)return e;r(o,"Property Descriptor","Desc",e);var t={};return"[[Value]]"in e&&(t.value=e["[[Value]]"]),"[[Writable]]"in e&&(t.writable=e["[[Writable]]"]),"[[Get]]"in e&&(t.get=e["[[Get]]"]),"[[Set]]"in e&&(t.set=e["[[Set]]"]),"[[Enumerable]]"in e&&(t.enumerable=e["[[Enumerable]]"]),"[[Configurable]]"in e&&(t.configurable=e["[[Configurable]]"]),t}},function(e,t,n){"use strict";var r=n(1),o=n(100),i=r("%TypeError%"),s=n(13)("Object.prototype.propertyIsEnumerable"),a=n(11),u=n(23),c=n(10),p=n(101),l=n(103),f=n(6);e.exports=function(e,t){if("Object"!==f(e))throw new i("Assertion failed: O must be an Object");if(!c(t))throw new i("Assertion failed: P must be a Property Key");if(a(e,t)){if(!o){var n=u(e)&&"length"===t,r=p(e)&&"lastIndex"===t;return{"[[Configurable]]":!(n||r),"[[Enumerable]]":s(e,t),"[[Value]]":e[t],"[[Writable]]":!0}}return l(o(e,t))}}},function(e,t,n){"use strict";var r=n(1)("%Object.getOwnPropertyDescriptor%");if(r)try{r([],"length")}catch(o){r=null}e.exports=r},function(e,t,n){"use strict";var r=n(1)("%Symbol.match%",!0),o=n(102),i=n(39);e.exports=function(e){if(!e||"object"!==typeof e)return!1;if(r){var t=e[r];if("undefined"!==typeof t)return i(t)}return o(e)}},function(e,t,n){"use strict";var r=n(11),o=RegExp.prototype.exec,i=Object.getOwnPropertyDescriptor,s=Object.prototype.toString,a="function"===typeof Symbol&&"symbol"===typeof Symbol.toStringTag;e.exports=function(e){if(!e||"object"!==typeof e)return!1;if(!a)return"[object RegExp]"===s.call(e);var t=i(e,"lastIndex");return!(!t||!r(t,"value"))&&function(e){try{var t=e.lastIndex;return e.lastIndex=0,o.call(e),!0}catch(n){return!1}finally{e.lastIndex=t}}(e)}},function(e,t,n){"use strict";var r=n(11),o=n(1)("%TypeError%"),i=n(6),s=n(39),a=n(36);e.exports=function(e){if("Object"!==i(e))throw new o("ToPropertyDescriptor requires an object");var t={};if(r(e,"enumerable")&&(t["[[Enumerable]]"]=s(e.enumerable)),r(e,"configurable")&&(t["[[Configurable]]"]=s(e.configurable)),r(e,"value")&&(t["[[Value]]"]=e.value),r(e,"writable")&&(t["[[Writable]]"]=s(e.writable)),r(e,"get")){var n=e.get;if("undefined"!==typeof n&&!a(n))throw new TypeError("getter must be a function");t["[[Get]]"]=n}if(r(e,"set")){var u=e.set;if("undefined"!==typeof u&&!a(u))throw new o("setter must be a function");t["[[Set]]"]=u}if((r(t,"[[Get]]")||r(t,"[[Set]]"))&&(r(t,"[[Value]]")||r(t,"[[Writable]]")))throw new o("Invalid property descriptor. Cannot both specify accessors and a value or writable attribute");return t}},function(e,t,n){"use strict";var r=n(11),o=n(38),i=n(6);e.exports=function(e){return"undefined"!==typeof e&&(o(i,"Property Descriptor","Desc",e),!(!r(e,"[[Value]]")&&!r(e,"[[Writable]]")))}},function(e,t,n){"use strict";var r=n(1)("%Object%"),o=n(40),i=r.preventExtensions,s=r.isExtensible;e.exports=i?function(e){return!o(e)&&s(e)}:function(e){return!o(e)}},function(e,t,n){"use strict";var r=n(24);e.exports=function(e,t){return e===t?0!==e||1/e===1/t:r(e)&&r(t)}},function(e,t,n){"use strict";var r=n(1)("%TypeError%"),o=n(10),i=n(6);e.exports=function(e,t){if("Object"!==i(e))throw new r("Assertion failed: `O` must be an Object");if(!o(t))throw new r("Assertion failed: `P` must be a Property Key");return t in e}},function(e,t,n){"use strict";var r=n(1)("%Math%"),o=n(109),i=n(24),s=n(34),a=n(110),u=r.floor,c=r.abs;e.exports=function(e){var t=o(e);return i(t)?0:0!==t&&s(t)?a(t)*u(c(t)):t}},function(e,t,n){"use strict";e.exports=function(e){return+e}},function(e,t,n){"use strict";e.exports=function(e){return e>=0?1:-1}},function(e,t,n){"use strict";var r=n(1),o=r("%TypeError%"),i=r("%Number%"),s=r("%RegExp%"),a=r("%parseInt%"),u=n(13),c=n(112),p=n(40),l=u("String.prototype.slice"),f=c(/^0b[01]+$/i),d=c(/^0o[0-7]+$/i),h=c(/^[-+]0x[0-9a-f]+$/i),y=c(new s("["+["\x85","\u200b","\ufffe"].join("")+"]","g")),g=["\t\n\v\f\r \xa0\u1680\u180e\u2000\u2001\u2002\u2003","\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028","\u2029\ufeff"].join(""),v=new RegExp("(^["+g+"]+)|(["+g+"]+$)","g"),m=u("String.prototype.replace"),b=n(113);e.exports=function e(t){var n=p(t)?t:b(t,i);if("symbol"===typeof n)throw new o("Cannot convert a Symbol value to a number");if("string"===typeof n){if(f(n))return e(a(l(n,2),2));if(d(n))return e(a(l(n,2),8));if(y(n)||h(n))return NaN;var r=function(e){return m(e,v,"")}(n);if(r!==n)return e(r)}return i(n)}},function(e,t,n){"use strict";var r=n(1)("RegExp.prototype.test"),o=n(20);e.exports=function(e){return o(r,e)}},function(e,t,n){"use strict";var r=n(114);e.exports=function(e){return arguments.length>1?r(e,arguments[1]):r(e)}},function(e,t,n){"use strict";var r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator,o=n(115),i=n(37),s=n(116),a=n(117),u=function(e,t){if("undefined"===typeof e||null===e)throw new TypeError("Cannot call method on "+e);if("string"!==typeof t||"number"!==t&&"string"!==t)throw new TypeError('hint must be "string" or "number"');var n,r,s,a="string"===t?["toString","valueOf"]:["valueOf","toString"];for(s=0;s1&&(arguments[1]===String?n="string":arguments[1]===Number&&(n="number")),r&&(Symbol.toPrimitive?t=c(e,Symbol.toPrimitive):a(e)&&(t=Symbol.prototype.valueOf)),"undefined"!==typeof t){var i=t.call(e,n);if(o(i))return i;throw new TypeError("unable to convert exotic object to primitive")}return"default"===n&&(s(e)||a(e))&&(n="string"),u(e,"default"===n?"number":n)}},function(e,t,n){"use strict";e.exports=function(e){return null===e||"function"!==typeof e&&"object"!==typeof e}},function(e,t,n){"use strict";var r=Date.prototype.getDay,o=Object.prototype.toString,i="function"===typeof Symbol&&"symbol"===typeof Symbol.toStringTag;e.exports=function(e){return"object"===typeof e&&null!==e&&(i?function(e){try{return r.call(e),!0}catch(t){return!1}}(e):"[object Date]"===o.call(e))}},function(e,t,n){"use strict";var r=Object.prototype.toString;if(n(118)()){var o=Symbol.prototype.toString,i=/^Symbol\(.*\)$/;e.exports=function(e){if("symbol"===typeof e)return!0;if("[object Symbol]"!==r.call(e))return!1;try{return function(e){return"symbol"===typeof e.valueOf()&&i.test(o.call(e))}(e)}catch(t){return!1}}}else e.exports=function(e){return!1}},function(e,t,n){"use strict";(function(t){var r=t.Symbol,o=n(119);e.exports=function(){return"function"===typeof r&&("function"===typeof Symbol&&("symbol"===typeof r("foo")&&("symbol"===typeof Symbol("bar")&&o())))}}).call(this,n(31))},function(e,t,n){"use strict";e.exports=function(){if("function"!==typeof Symbol||"function"!==typeof Object.getOwnPropertySymbols)return!1;if("symbol"===typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),n=Object(t);if("string"===typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(t in e[t]=42,e)return!1;if("function"===typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"===typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var r=Object.getOwnPropertySymbols(e);if(1!==r.length||r[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"===typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(e,t);if(42!==o.value||!0!==o.enumerable)return!1}return!0}},function(e,t,n){"use strict";var r=n(1),o=r("%String%"),i=r("%TypeError%");e.exports=function(e){if("symbol"===typeof e)throw new i("Cannot convert a Symbol value to a string");return o(e)}},function(e,t,n){"use strict";var r=n(1)("%Object%"),o=n(122);e.exports=function(e){return o(e),r(e)}},function(e,t,n){"use strict";e.exports=n(123)},function(e,t,n){"use strict";var r=n(1)("%TypeError%");e.exports=function(e,t){if(null==e)throw new r(t||"Cannot call method on "+e);return e}},function(e,t,n){"use strict";var r=n(29),o=n(43);e.exports=function(){var e=o();return r(Array.prototype,{flat:e},{flat:function(){return Array.prototype.flat!==e}}),e}},function(e,t,n){var r=function(e){"use strict";var t=Object.prototype,n=t.hasOwnProperty,r="function"===typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",i=r.asyncIterator||"@@asyncIterator",s=r.toStringTag||"@@toStringTag";function a(e,t,n,r){var o=t&&t.prototype instanceof p?t:p,i=Object.create(o.prototype),s=new _(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 s=n.delegate;if(s){var a=b(s,n);if(a){if(a===c)continue;return a}}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 p=u(e,t,n);if("normal"===p.type){if(r=n.done?"completed":"suspendedYield",p.arg===c)continue;return{value:p.arg,done:n.done}}"throw"===p.type&&(r="completed",n.method="throw",n.arg=p.arg)}}}(e,n,s),i}function u(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(r){return{type:"throw",arg:r}}}e.wrap=a;var c={};function p(){}function l(){}function f(){}var d={};d[o]=function(){return this};var h=Object.getPrototypeOf,y=h&&h(h(E([])));y&&y!==t&&n.call(y,o)&&(d=y);var g=f.prototype=p.prototype=Object.create(d);function v(e){["next","throw","return"].forEach((function(t){e[t]=function(e){return this._invoke(t,e)}}))}function m(e){var t;this._invoke=function(r,o){function i(){return new Promise((function(t,i){!function t(r,o,i,s){var a=u(e[r],e,o);if("throw"!==a.type){var c=a.arg,p=c.value;return p&&"object"===typeof p&&n.call(p,"__await")?Promise.resolve(p.__await).then((function(e){t("next",e,i,s)}),(function(e){t("throw",e,i,s)})):Promise.resolve(p).then((function(e){c.value=e,i(c)}),(function(e){return t("throw",e,i,s)}))}s(a.arg)}(r,o,t,i)}))}return t=t?t.then(i,i):i()}}function b(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,b(e,t),"throw"===t.method))return c;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return c}var r=u(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,c;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,c):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,c)}function C(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 w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function _(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(C,this),this.reset(!0)}function E(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],s=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var a=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(a&&u){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),w(n),c}},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;w(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:E(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),c}},e}(e.exports);try{regeneratorRuntime=r}catch(o){Function("r","regeneratorRuntime = r")(r)}},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),(r=t.CmpStatus||(t.CmpStatus={})).STUB="stub",r.LOADING="loading",r.LOADED="loaded",r.ERROR="error"},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),(r=t.DisplayStatus||(t.DisplayStatus={})).VISIBLE="visible",r.HIDDEN="hidden",r.DISABLED="disabled"},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),(r=t.EventStatus||(t.EventStatus={})).TC_LOADED="tcloaded",r.CMP_UI_SHOWN="cmpuishown",r.USER_ACTION_COMPLETE="useractioncomplete"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(17),o=function(){function e(){this.eventQueue=new Map,this.queueNumber=0}return e.prototype.add=function(e){return this.eventQueue.set(this.queueNumber,e),this.queueNumber++},e.prototype.remove=function(e){return this.eventQueue.delete(e)},e.prototype.exec=function(){this.eventQueue.forEach((function(e,t){new r.GetTCDataCommand(e.callback,e.param,t,e.next)}))},e.prototype.clear=function(){this.queueNumber=0,this.eventQueue.clear()},Object.defineProperty(e.prototype,"size",{get:function(){return this.eventQueue.size},enumerable:!0,configurable:!0}),e}();t.EventListenerQueue=o},function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),o=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)s.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s},i=this&&this.__spread||function(){for(var e=[],t=0;t0){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),s=t[o].substr(n+1);t[o]=i+r+s}))},o=0;o=n))throw new Error("Invalid "+t+": "+e)},e.prototype.update=function(e,t){if(void 0===t&&(t=!1),r.CmpApiModel.disabled)throw new Error("CmpApi Disabled");r.CmpApiModel.cmpStatus=o.CmpStatus.LOADED,t?(r.CmpApiModel.displayStatus=o.DisplayStatus.VISIBLE,r.CmpApiModel.eventStatus=o.EventStatus.CMP_UI_SHOWN):void 0===r.CmpApiModel.tcModel?(r.CmpApiModel.displayStatus=o.DisplayStatus.DISABLED,r.CmpApiModel.eventStatus=o.EventStatus.TC_LOADED):(r.CmpApiModel.displayStatus=o.DisplayStatus.HIDDEN,r.CmpApiModel.eventStatus=o.EventStatus.USER_ACTION_COMPLETE),r.CmpApiModel.gdprApplies=null!==e,r.CmpApiModel.gdprApplies?(""===e?(r.CmpApiModel.tcModel=new s.TCModel,r.CmpApiModel.tcModel.cmpId=r.CmpApiModel.cmpId,r.CmpApiModel.tcModel.cmpVersion=r.CmpApiModel.cmpVersion):r.CmpApiModel.tcModel=s.TCString.decode(e),r.CmpApiModel.tcModel.isServiceSpecific=this.isServiceSpecific,r.CmpApiModel.tcfPolicyVersion=+r.CmpApiModel.tcModel.policyVersion,r.CmpApiModel.tcString=e):r.CmpApiModel.tcModel=null,0===this.numUpdates?this.callResponder.purgeQueuedCalls():r.CmpApiModel.eventQueue.exec(),this.numUpdates++},e.prototype.disable=function(){r.CmpApiModel.disabled=!0,r.CmpApiModel.cmpStatus=o.CmpStatus.ERROR},e}();t.CmpApi=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(134),o=n(17),i=n(135),s=n(136),a=n(151),u=n(152),c=n(45),p=function(){function e(){}var t,n,p,l,f,d;return t=c.TCFCommand.PING,n=c.TCFCommand.GET_TC_DATA,p=c.TCFCommand.GET_IN_APP_TC_DATA,l=c.TCFCommand.GET_VENDOR_LIST,f=c.TCFCommand.ADD_EVENT_LISTENER,d=c.TCFCommand.REMOVE_EVENT_LISTENER,e[t]=r.PingCommand,e[n]=o.GetTCDataCommand,e[p]=i.GetInAppTCDataCommand,e[l]=s.GetVendorListCommand,e[f]=a.AddEventListenerCommand,e[d]=u.RemoveEventListenerCommand,e}();t.CommandMap=p},function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var o=n(14),i=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.respond=function(){this.invokeCallback(new o.Ping)},t}(n(18).Command);t.PingCommand=i},function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var o=n(17),i=n(14),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.respond=function(){this.throwIfParamInvalid(),this.invokeCallback(new i.InAppTCData(this.param))},t}(o.GetTCDataCommand);t.GetInAppTCDataCommand=s},function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var o=n(7),i=n(18),s=n(5),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.respond=function(){var e,t=this,n=o.CmpApiModel.tcModel,r=n.vendorListVersion;void 0===this.param&&(this.param=r),(e=this.param===r&&n.gvl?n.gvl:new s.GVL(this.param)).readyPromise.then((function(){t.invokeCallback(e.getJson())}))},t}(i.Command);t.GetVendorListCommand=a},function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var o=function(e){function t(t){var n=e.call(this,t)||this;return n.name="DecodingError",n}return r(t,e),t}(Error);t.DecodingError=o},function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var o=function(e){function t(t){var n=e.call(this,t)||this;return n.name="EncodingError",n}return r(t,e),t}(Error);t.EncodingError=o},function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var o=function(e){function t(t){var n=e.call(this,t)||this;return n.name="GVLError",n}return r(t,e),t}(Error);t.GVLError=o},function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var o=function(e){function t(t,n,r){void 0===r&&(r="");var o=e.call(this,"invalid value "+n+" passed for "+t+" "+r)||this;return o.name="TCModelError",o}return r(t,e),t}(Error);t.TCModelError=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(){}return e.prototype.has=function(t){return e.langSet.has(t)},e.prototype.forEach=function(t){e.langSet.forEach(t)},Object.defineProperty(e.prototype,"size",{get:function(){return e.langSet.size},enumerable:!0,configurable:!0}),e.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"]),e}();t.ConsentLanguages=r},function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var o=n(52),i=n(50),s=n(27),a=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.bitLength=0,t.map=new Map,t}return r(t,e),t.prototype.has=function(e){return this.map.has(e)},t.prototype.isOkToHave=function(e,t,n){var r,o=!0;if(null===(r=this.gvl)||void 0===r?void 0:r.vendors){var i=this.gvl.vendors[n];if(i)if(e===s.RestrictionType.NOT_ALLOWED)o=i.legIntPurposes.includes(t)||i.purposes.includes(t);else if(i.flexiblePurposes.length)switch(e){case s.RestrictionType.REQUIRE_CONSENT:o=i.flexiblePurposes.includes(t)&&i.legIntPurposes.includes(t);break;case s.RestrictionType.REQUIRE_LI:o=i.flexiblePurposes.includes(t)&&i.purposes.includes(t)}else o=!1;else o=!1}return o},t.prototype.add=function(e,t){if(this.isOkToHave(t.restrictionType,t.purposeId,e)){var n=t.hash;this.has(n)||(this.map.set(n,new i.BinarySearchTree),this.bitLength=0),this.map.get(n).add(e)}},t.prototype.getVendors=function(e){var t=[];if(e){var n=e.hash;this.has(n)&&(t=this.map.get(n).get())}else{var r=new Set;this.map.forEach((function(e){e.get().forEach((function(e){r.add(e)}))})),t=Array.from(r)}return t},t.prototype.getRestrictionType=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},t.prototype.vendorHasRestriction=function(e,t){for(var n=!1,r=this.getRestrictions(e),o=0;o0&&o[o.length-1])&&(6===i[0]||2===i[0])){s=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]0},t.prototype.isSet=function(e){var t=!1;return e instanceof Set&&(t=Array.from(e).every(this.isValidNumber)),t},t.prototype.set=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+e})));else{if(!this.isValidNumber(e))throw new s.TCModelError("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}},t.prototype.empty=function(){this.set_=new Set},t.prototype.forEach=function(e){for(var t=1;t<=this.maxId;t++)e(this.has(t),t)},Object.defineProperty(t.prototype,"size",{get:function(){return this.set_.size},enumerable:!0,configurable:!0}),t.prototype.setAll=function(e){this.set(e)},t}(i.Cloneable);t.Vector=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(49),o=n(26),i=n(54),s=n(60),a=n(2),u=n(51),c=n(3),p=function(){function e(){}return e.encode=function(e,t){var n,s=this;try{n=this.fieldSequence[""+e.version][t]}catch(n){throw new a.EncodingError("Unable to encode version: "+e.version+", segment: "+t)}var p="";return t!==c.Segment.CORE&&(p=i.IntEncoder.encode(c.SegmentIDs.KEY_TO_ID[t],o.BitLength.segmentType)),n.forEach((function(n){var r=e[n],c=i.FieldEncoderMap[n],l=o.BitLength[n];void 0===l&&s.isPublisherCustom(n)&&(l=+e[u.Fields.numCustomPurposes]);try{p+=c.encode(r,l)}catch(e){throw new a.EncodingError("Error encoding "+t+"->"+n+": "+e.message)}})),r.Base64Url.encode(p)},e.decode=function(e,t,n){var s=this,p=r.Base64Url.decode(e),l=0;return n===c.Segment.CORE&&(t.version=i.IntEncoder.decode(p.substr(l,o.BitLength[u.Fields.version]),o.BitLength[u.Fields.version])),n!==c.Segment.CORE&&(l+=o.BitLength.segmentType),this.fieldSequence[""+t.version][n].forEach((function(e){var n=i.FieldEncoderMap[e],r=o.BitLength[e];if(void 0===r&&s.isPublisherCustom(e)&&(r=+t[u.Fields.numCustomPurposes]),0!==r){var c=p.substr(l,r);if(n===i.VendorVectorEncoder?t[e]=n.decode(c,t.version):t[e]=n.decode(c,r),Number.isInteger(r))l+=r;else{if(!Number.isInteger(t[e].bitLength))throw new a.DecodingError(e);l+=t[e].bitLength}}})),t},e.isPublisherCustom=function(e){return 0===e.indexOf("publisherCustom")},e.fieldSequence=new s.FieldSequence,e}();t.SegmentEncoder=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(3),o=n(12),i=n(55),s=n(28),a=n(9),u=n(56),c=n(57),p=n(58),l=function(){function e(){}var t,n,l,f,d,h,y,g,v,m,b,C,w,_,E,S,I,A,P,L,O,k,x,T,V,j;return t=r.Fields.version,n=r.Fields.created,l=r.Fields.lastUpdated,f=r.Fields.cmpId,d=r.Fields.cmpVersion,h=r.Fields.consentScreen,y=r.Fields.consentLanguage,g=r.Fields.vendorListVersion,v=r.Fields.policyVersion,m=r.Fields.isServiceSpecific,b=r.Fields.useNonStandardStacks,C=r.Fields.specialFeatureOptins,w=r.Fields.purposeConsents,_=r.Fields.purposeLegitimateInterests,E=r.Fields.purposeOneTreatment,S=r.Fields.publisherCountryCode,I=r.Fields.vendorConsents,A=r.Fields.vendorLegitimateInterests,P=r.Fields.publisherRestrictions,L=r.Fields.vendorsDisclosed,O=r.Fields.vendorsAllowed,k=r.Fields.publisherConsents,x=r.Fields.publisherLegitimateInterests,T=r.Fields.numCustomPurposes,V=r.Fields.publisherCustomConsents,j=r.Fields.publisherCustomLegitimateInterests,e[t]=a.IntEncoder,e[n]=i.DateEncoder,e[l]=i.DateEncoder,e[f]=a.IntEncoder,e[d]=a.IntEncoder,e[h]=a.IntEncoder,e[y]=u.LangEncoder,e[g]=a.IntEncoder,e[v]=a.IntEncoder,e[m]=o.BooleanEncoder,e[b]=o.BooleanEncoder,e[C]=s.FixedVectorEncoder,e[w]=s.FixedVectorEncoder,e[_]=s.FixedVectorEncoder,e[E]=o.BooleanEncoder,e[S]=u.LangEncoder,e[I]=p.VendorVectorEncoder,e[A]=p.VendorVectorEncoder,e[P]=c.PurposeRestrictionVectorEncoder,e.segmentType=a.IntEncoder,e[L]=p.VendorVectorEncoder,e[O]=p.VendorVectorEncoder,e[k]=s.FixedVectorEncoder,e[x]=s.FixedVectorEncoder,e[T]=a.IntEncoder,e[V]=s.FixedVectorEncoder,e[j]=s.FixedVectorEncoder,e}();t.FieldEncoderMap=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(3);t.FieldSequence=function(){var e,t;this[1]=((e={})[r.Segment.CORE]=[r.Fields.version,r.Fields.created,r.Fields.lastUpdated,r.Fields.cmpId,r.Fields.cmpVersion,r.Fields.consentScreen,r.Fields.consentLanguage,r.Fields.vendorListVersion,r.Fields.purposeConsents,r.Fields.vendorConsents],e),this[2]=((t={})[r.Segment.CORE]=[r.Fields.version,r.Fields.created,r.Fields.lastUpdated,r.Fields.cmpId,r.Fields.cmpVersion,r.Fields.consentScreen,r.Fields.consentLanguage,r.Fields.vendorListVersion,r.Fields.policyVersion,r.Fields.isServiceSpecific,r.Fields.useNonStandardStacks,r.Fields.specialFeatureOptins,r.Fields.purposeConsents,r.Fields.purposeLegitimateInterests,r.Fields.purposeOneTreatment,r.Fields.publisherCountryCode,r.Fields.vendorConsents,r.Fields.vendorLegitimateInterests,r.Fields.publisherRestrictions],t[r.Segment.PUBLISHER_TC]=[r.Fields.publisherConsents,r.Fields.publisherLegitimateInterests,r.Fields.numCustomPurposes,r.Fields.publisherCustomConsents,r.Fields.publisherCustomLegitimateInterests],t[r.Segment.VENDORS_ALLOWED]=[r.Fields.vendorsAllowed],t[r.Segment.VENDORS_DISCLOSED]=[r.Fields.vendorsDisclosed],t)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(3);t.SegmentSequence=function(e,t){if(this[1]=[r.Segment.CORE],this[2]=[r.Segment.CORE],2===e.version)if(e.isServiceSpecific)this[2].push(r.Segment.PUBLISHER_TC);else{var n=!(!t||!t.isForVendors);n&&!0!==e[r.Fields.supportOOB]||this[2].push(r.Segment.VENDORS_DISCLOSED),n&&(e[r.Fields.supportOOB]&&e[r.Fields.vendorsAllowed].size>0&&this[2].push(r.Segment.VENDORS_ALLOWED),this[2].push(r.Segment.PUBLISHER_TC))}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(2),o=n(3),i=function(){function e(){}return e.process=function(e,t){var n,o,i=e.gvl;if(!i)throw new r.EncodingError("Unable to encode TCModel without a GVL");if(!i.isReady)throw new r.EncodingError("Unable to encode TCModel tcModel.gvl.readyPromise is not resolved");(e=e.clone()).consentLanguage=i.language.toUpperCase(),(null===(n=t)||void 0===n?void 0:n.version)>0&&(null===(o=t)||void 0===o?void 0:o.version)<=this.processor.length?e.version=t.version:e.version=this.processor.length;var s=e.version-1;if(!this.processor[s])throw new r.EncodingError("Invalid version: "+e.version);return this.processor[s](e,i)},e.processor=[function(e){return e},function(e,t){e.publisherRestrictions.gvl=t,e.purposeLegitimateInterests.unset(1);var n=new Map;return n.set("legIntPurposes",e.vendorLegitimateInterests),n.set("purposes",e.vendorConsents),n.forEach((function(n,r){n.forEach((function(i,s){if(i){var a=t.vendors[s];if(!a||a.deletedDate)n.unset(s);else if(0===a[r].length)if(e.isServiceSpecific)if(0===a.flexiblePurposes.length)n.unset(s);else{for(var u=e.publisherRestrictions.getRestrictions(s),c=!1,p=0,l=u.length;p1)for(var n=1;n=0)return;s[t]="set-cookie"===t?(s[t]?s[t]:[]).concat([n]):s[t]?s[t]+", "+n:n}})),s):s}},function(e,t,n){"use strict";var r=n(4);e.exports=r.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function o(e){var r=e;return t&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return e=o(window.location.href),function(t){var n=r.isString(t)?o(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return!0}},function(e,t,n){"use strict";var r=n(4);e.exports=r.isStandardBrowserEnv()?{write:function(e,t,n,o,i,s){var a=[];a.push(e+"="+encodeURIComponent(t)),r.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),r.isString(o)&&a.push("path="+o),r.isString(i)&&a.push("domain="+i),!0===s&&a.push("secure"),document.cookie=a.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},function(e,t,n){"use strict";e.exports=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},function(e,t,n){"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},function(e,t,n){"use strict";var r=n(76);function o(e){if("function"!==typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var n=this;e((function(e){n.reason||(n.reason=new r(e),t(n.reason))}))}o.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},o.source=function(){var e;return{token:new o((function(t){e=t})),cancel:e}},e.exports=o},function(e,t,n){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}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){for(var t=1;t>>4&15]+t[15&e]}},{key:"getBits",value:function(e,t){var n=parseInt(t.substr(this.bitPosition,e),2);return this.bitPosition+=e,n}},{key:"toWebSafeBase64",value:function(e){return btoa(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}},{key:"fromWebSafeBase64",value:function(e){return atob(e.replace(/-/g,"+").replace(/_/g,"/"))}},{key:"languageToCookieValue",value:function(e){return 64*(e.charCodeAt(0)-this.LOWERCASE_START)+(e.charCodeAt(1)-this.LOWERCASE_START)}},{key:"languageFromCookieValue",value:function(e){return String.fromCharCode(this.LOWERCASE_START+e/64>>>0)+String.fromCharCode(this.LOWERCASE_START+e%64)}},{key:"deleteCookie",value:function(e,t){document.cookie="".concat(e,"=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/; max-age=-1; domain=").concat(t)}},{key:"fallbackToLocalStorage",value:function(e,t){this.saveOnLocalStorage(e,t)&&this.deleteCookie(e)}},{key:"saveOnLocalStorage",value:function(e,t){try{return window.localStorage.setItem(e,t),!0}catch(n){return console.warn("Could not save data on local storage: Not enough space."),!1}}},{key:"set",value:function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=!1;n&&(r=this.saveOnLocalStorage(e,t)),r||Je({cookieName:e,encodedValue:t,maxAge:this.COOKIE_MAX_AGE})}},{key:"get",value:function(e){var t=this;if(window.localStorage.getItem(e))return window.localStorage.getItem(e);var n=e.trim(),r=document.cookie.split(";").filter((function(e){return e.trim().startsWith(n+"=")})).map((function(e){return e.trim().substring(n.length+1)}));if(r.length>1){var o=null,i="";return r.forEach((function(e){var n=t.decodeEuConsent(e).created;n>o&&(o=n,i=e)})),i}return r[0]?(e!==k&&e!==j&&e!==U&&this.fallbackToLocalStorage(n,r[0]),r[0]):new Error("".concat(e," not found."))}},{key:"bitPosition",get:function(){return this._bitPosition},set:function(e){this._bitPosition=e}},{key:"binaryStr",set:function(e){this._binaryStr=e},get:function(){return this._binaryStr}}]),e}();function $(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t864e5*t){e.next=9;break}return e.abrupt("return",{outdatedGvlReprompt:o,decodedEuConsent:r});case 9:return e.next=11,this.loadGVL();case 11:l=_e.gvl,f=l.vendorListVersion,d=l.tcfPolicyVersion,p&&(f>s||d>u)&&(o=!0),e.next=16;break;case 15:o=!0;case 16:return e.abrupt("return",{outdatedGvlReprompt:o,decodedEuConsent:r});case 17:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"repromptDueToConsentOnDeletedVendors",value:function(e){var t=!1,n=!0,r=!1,o=void 0;try{for(var i,s=this._deletedVendors[Symbol.iterator]();!(n=(i=s.next()).done);n=!0){var a=i.value;if(e.has(a)){t=!0;break}}}catch(u){r=!0,o=u}finally{try{n||null==s.return||s.return()}finally{if(r)throw o}}return t}},{key:"fetchDataToReprompt",value:function(){var e=c(a.a.mark((function e(){var t,n,r,o,s,u;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.repromptDueToOutdatedGvl();case 2:return t=e.sent,n=t.outdatedGvlReprompt,r=t.decodedEuConsent,e.next=7,this.repromptDueToInvalidCMPID();case 7:return o=e.sent,s=he.coreConfig.consentScope,(u=n||o)||(u=this.repromptDueToConsentOnDeletedVendors(r.vendorConsents.set_))||"global"===s||(we.setValues(i({},this._cookieValues,{nonIabVendorsHash:me.data.data.nonIabVendorsHash})),u=we.shouldReprompt()),e.abrupt("return",u);case 12:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"populateConsents",value:function(e,t,n,r){var o,i=X.NON_IAB,s=X.PURPOSES,a=X.LEGITIMATE_PURPOSES,u=X.LEGITIMATE_VENDORS,c=X.VENDORS,p=X.SPECIAL_FEATURES,l=X.GOOGLE,f="",d="";switch(t){case i:o="nonIabConsents",f="vendorConsents";break;case c:o="vendorConsents",f="vendorConsents",d="publisherConsents";break;case s:o="purposesConsents",f="purposeConsents";break;case a:o="legitimatePurposesConsents",f="purposeLegitimateInterests";break;case u:o="vendorLegitimateInterest",f="vendorLegitimateInterests",d="publisherLegitimateInterests";break;case p:o="specialFeatures",f="specialFeatureOptins";break;case l:o="googleConsents",f="consentIds";break;default:o=""}var h=null!==r&&!r.message,y=he.coreConfig.publisherName;if(e[o].hasCookie=h,h)switch(t){case i:if(n){var g=!0,v=!1,m=void 0;try{for(var b,C=n[Symbol.iterator]();!(g=(b=C.next()).done);g=!0){var w=b.value,_=r[f][w.id];e[o][w.id]=_}}catch(V){v=!0,m=V}finally{try{g||null==C.return||C.return()}finally{if(v)throw m}}}break;case l:if(n){var E=!0,S=!1,I=void 0;try{for(var A,P=n[Symbol.iterator]();!(E=(A=P.next()).done);E=!0){var L=A.value,O=parseInt(L.id,10),k=r[f].includes(O);e[o][O]=k}}catch(V){S=!0,I=V}finally{try{E||null==P.return||P.return()}finally{if(S)throw I}}}break;default:for(var x in n){var T=x===y&&d?$(r[d].set_).length>0:r[f].has(parseInt(x));e[o][x]=T}}}},{key:"formatConsents",value:function(e){var t=0,n=[];for(var r in e){var o=parseInt(r);isNaN(o)||(o>t&&(t=o),n.push({consent:e[r],id:o}))}return{consentArray:n,maxVendorId:t}}},{key:"formatGoogleConsents",value:function(e){var t=[];for(var n in e.googleConsents)!0===e.googleConsents[n]&&t.push(n);return t.sort((function(e,t){return e-t})),t}},{key:"regulationToInit",value:function(){var e=c(a.a.mark((function e(){var t,n,r,o;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=he.coreConfig.privacyMode,n="",!t.includes("USP")){e.next=14;break}if(r=he.coreConfig.uspJurisdiction,!ye.isUserInUS||!r.length){e.next=14;break}if(ae("initUspLocation: US"),r.includes("US")){e.next=13;break}return e.next=9,ye.checkSpecificLocation();case 9:ae("initUspLocation: specific location"+JSON.stringify(ye.userSpecificLocation)),ye.userSpecificLocation&&ye.userSpecificLocation.region&&r.includes(ye.userSpecificLocation.region.toUpperCase())&&(n="USP"),e.next=14;break;case 13:n="USP";case 14:return t.includes("GDPR")&&"USP"!==n&&(o=he.coreConfig.displayUi,(ye.isUserInEU&&"inEU"===o||"always"===o)&&(n="GDPR")),e.abrupt("return",n);case 16:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}()},{key:"loadGVL",value:function(){var e=c(a.a.mark((function e(){var t,n,r,o,i,s,u;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=he.coreConfig,n=t.privacyMode,r=t.lang_,o=he.premiumProperties,i=o.vendorWhitelist,s=o.vendorBlacklist,u=null===r||void 0===r?void 0:r.toUpperCase(),_e.gvl){e.next=12;break}return _e.gvl=new W.GVL("LATEST"),e.next=6,_e.gvl.readyPromise;case 6:if(!n.includes("GDPR")){e.next=10;break}return e.next=9,_e.gvl.changeLanguage(u);case 9:this.filterGvl(_e.gvl,i,s);case 10:e.next=14;break;case 12:return e.next=14,_e.gvl.readyPromise;case 14:return e.abrupt("return",_e.gvl);case 15:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"filterGvl",value:function(e,t,n){var r=e.vendors,o=[],i=[];Object.keys(r).forEach((function(e){r[e].deletedDate?i.push(r[e].id):o.push(r[e].id)})),this.deletedVendors=i,t.length&&(o=t.filter((function(e){return o.includes(e)}))),n.length?e.narrowVendorsTo(o.filter((function(e){return!n.includes(e)}))):e.narrowVendorsTo(o)}},{key:"hasCookie",value:function(){return!!this._cookieValues.euconsent}},{key:"cookiesValues",get:function(){return this._cookieValues}},{key:"deletedVendors",set:function(e){this._deletedVendors=e}}]),e}(),Ie=n(68),Ae=function(){function e(){var t=this;p(this,e),this.__tcfapiui=void 0,this.__tcfapiui=function(e){for(var n=t.__tcfapiui.a=t.__tcfapiui.a||[],r=window.document,o=arguments.length,i=new Array(o>1?o-1:0),s=1;s1&&void 0!==p[1]?p[1]:1,o=p.length>2&&void 0!==p[2]&&p[2],i=null===(n=he.coreConfig.privacyMode)||void 0===n?void 0:n.includes(t),de.updateApiVisible(t,i),i){e.next=7;break}return console.warn("attempt to show disabled CMP UI regulation=".concat(t)),e.abrupt("return");case 7:if(!(s="GDPR"===t)){e.next=14;break}return e.next=11,de.loadGVL();case 11:e.t0=e.sent,e.next=15;break;case 14:e.t0=void 0;case 15:u=e.t0,c={regulation:t,page:r,isMandatory:o,config:he,gvl:u,consentInfo:s?de.getConsents():{},nonIabVendorList:s?me.data.data.nonIabVendorList:{},googleData:s?Ee.data:{}},window.__tcfapiui("displayUi",c);case 18:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()}]),e}(),Pe=function(){function e(){p(this,e),this._data=void 0,this._fields=void 0,this._fields={created:new Date,lastUpdated:new Date,cmpId:10,cmpVersion:26,maxVendorId:0,vendorConsents:[]},this._data={nonIabVendorList:[],updateAt:"",nonIabVendorsHash:""}}return f(e,[{key:"data",set:function(e){this._data=e},get:function(){return this._data}},{key:"fields",set:function(e){this._fields=e},get:function(){return this._fields}}]),e}(),Le=function(){function e(){p(this,e),this._data=void 0,this.created=void 0,this._data=new Pe,this.created=!1}return f(e,[{key:"encode",value:function(e,t){var n=[];return e.forEach((function(e){n[e.id]=e.consent})),!1===this.created?(this.created=!0,this._data.fields=i({},this._data.fields,{vendorConsents:n,created:new Date,lastUpdated:new Date,maxVendorId:t})):this._data.fields=i({},this._data.fields,{vendorConsents:n,lastUpdated:new Date}),ve.encode(i({cookieName:x},this._data.fields))}},{key:"decode",value:function(e){return ve.decode(x,e)}},{key:"setCookie",value:function(e){"string"===typeof e?ve.set(x,e):console.error(e.message)}},{key:"getCookie",value:function(){var e=ve.get(x);return e&&"string"===typeof e?this.decode(e):e}},{key:"fetchList",value:function(){var e=c(a.a.mark((function e(){var t,n;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(he.premiumProperties.nonIabVendorListUrl){e.next=2;break}return e.abrupt("return");case 2:return e.prev=2,e.next=5,se.get(he.premiumProperties.nonIabVendorListUrl);case 5:t=e.sent,n=[],t.data.nonIabVendorList.forEach((function(e){var t={name:e.name,id:e.vendorId,policyUrl:!!e.privacyPolicyUrl&&e.privacyPolicyUrl,description:!!e.description&&e.description,purposes:"nonIabPurposeConsentIds"in e&&e.nonIabPurposeConsentIds,legIntPurposes:"nonIabPurposeLegitimateInterestIds"in e&&e.nonIabPurposeLegitimateInterestIds};n.push(t)})),this._data.data=i({},t.data,{nonIabVendorList:n}),e.next=14;break;case 11:e.prev=11,e.t0=e.catch(2),console.log(e.t0);case 14:case"end":return e.stop()}}),e,this,[[2,11]])})));return function(){return e.apply(this,arguments)}}()},{key:"data",get:function(){return this._data}}]),e}(),Oe=function(){function e(){p(this,e)}return f(e,[{key:"encode",value:function(e,t,n,r,o,i,s,a,u){return ve.encode({cookieName:k,vendorConsents:e,purposeConsents:t,specialFeatureOptins:n,vendorLegitimateInterests:r,purposeLegitimateInterests:o,publisherConsent:i,publisherLegitimate:s,publisherPurposeIds:a,publisherPurposeLegitimateInterestIds:u})}},{key:"decode",value:function(e){return ve.decode(k,e)}},{key:"setCookie",value:function(e){"string"===typeof e?ve.set(k,e,!1):console.error(e.message)}},{key:"getCookie",value:function(){var e=ve.get(k);return e&&"string"===typeof e?this.decode(e):e}}]),e}(),ke=function(){function e(){p(this,e),this._uspVersion=void 0,this._baseString=void 0,this._noticegiven=void 0,this._optedout=void 0,this._lspact=void 0,this._uspVersion=1,this._noticegiven="-",this._optedout="-",this._lspact="-",this._baseString=null}return f(e,[{key:"baseString",set:function(e){this._baseString=e},get:function(){return this._baseString}},{key:"noticegiven",set:function(e){this._noticegiven=e},get:function(){return this._noticegiven}},{key:"optedout",set:function(e){this._optedout=e},get:function(){return this._optedout}},{key:"lspact",set:function(e){this._lspact=e},get:function(){return this._lspact}},{key:"uspVersion",get:function(){return this._uspVersion}}]),e}(),xe=/^[1][nNyY-][nNyY-][nNyY-]$/,Te=function(){function e(){p(this,e),this._data=void 0,this._data=new ke}return f(e,[{key:"encode",value:function(e,t){return this._data.baseString="".concat(e,"Y").concat(t?"Y":"N").concat(he.coreConfig.uspLspact),this._data.baseString}},{key:"setCookie",value:function(e){"string"===typeof e?xe.test(e)&&ve.set(j,e,!1):e&&"message"in e&&console.error(e.message)}},{key:"getCookie",value:function(){return ve.get(j)}}]),e}(),Ve=function(){function e(t){p(this,e),this._cookieAccessIframe=void 0,this._isCookieAccessIframeReady=void 0,this.groupCookieAccessCallbacks=void 0,this._cookieAccessIframe=document.createElement("iframe"),this._isCookieAccessIframeReady=!1,this.groupCookieAccessCallbacks={},this.groupCookieAccessHandler=this.groupCookieAccessHandler.bind(this),window.addEventListener?window.addEventListener("message",this.groupCookieAccessHandler,!1):window.attachEvent("onmessage",this.groupCookieAccessHandler),this.createGroupCookieAccessIframe(t.coreConfig.consentScopeGroupURL,"_qc_cookie_access")}return f(e,[{key:"tryGroupCookieAccessCall",value:function(e,t,n){var r=this;return new Promise((function(o){var i=setInterval((function(){r._isCookieAccessIframeReady&&r.groupCookieAccessCall(e,t,n,(function(e){o(e),clearInterval(i)}))}),50)}))}},{key:"groupCookieAccessCall",value:function(e,t,n,r){var o=Math.random().toString(),i={callId:o,__qcCmpCookieAccessCall:{cmd:e,cookieName:t}};if("set"===e){this.groupCookieAccessCallbacks[o]={cookieName:t,cookieValue:n};var s=new Date(Date.now()+33696e6).toUTCString();i.__qcCmpCookieAccessCall.cookieValue=n,i.__qcCmpCookieAccessCall.cookiePath=he.coreConfig.cookiePath,i.__qcCmpCookieAccessCall.expires=s}else this.groupCookieAccessCallbacks[o]={cookieName:t,resolve:r};this._cookieAccessIframe.contentWindow.postMessage(i,"*")}},{key:"createGroupCookieAccessIframe",value:function(e,t){var n=document.body;this._cookieAccessIframe.src=e,this._cookieAccessIframe.style.display="none",this._cookieAccessIframe.id=t,n.appendChild(this._cookieAccessIframe)}},{key:"groupCookieAccessHandler",value:function(e){var t;if((t="string"===typeof e.data?-1!==e.data.indexOf("__qcCmpCookieAccessReturn")?JSON.parse(e.data):{}:e.data).__qcCmpCookieAccessReturn){if(t.__qcCmpCookieAccessReturn.isHandlerRegistered)return void(this._isCookieAccessIframeReady=!0);var n=t.__qcCmpCookieAccessReturn,r=this.groupCookieAccessCallbacks[t.callId];if(r.resolve){var o=null;"get"===n.cmd&&(o=-1!==["euconsent-v2"].indexOf(r.cookieName)?n.isSuccess?n.cookies[0]:null:n.cookies,r.resolve(o)),delete this.groupCookieAccessCallbacks[t.callId]}}}},{key:"isCookieAccessIframeReady",get:function(){return this.isCookieAccessIframeReady}},{key:"cookieAccessIframe",get:function(){return this._cookieAccessIframe}}]),e}(),je=function(){function e(){p(this,e),this.version=void 0,this._data=void 0,this.version=1,this._data=[]}return f(e,[{key:"encode",value:function(e){return ve.encode({cookieName:U,vendorConsents:e,version:this.version})}},{key:"decode",value:function(e){return ve.decode(U,e)}},{key:"setCookie",value:function(e){"string"===typeof e?ve.set(U,e,!1):console.error(e.message)}},{key:"getCookie",value:function(e){var t=ve.get(U);return t&&"string"===typeof t?e?t:this.decode(t):null}},{key:"fetchPartners",value:function(){var e=c(a.a.mark((function e(){var t,n,r,o,i;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(he.coreConfig.googleEnabled&&!he.coreConfig.consentScope.includes("global")){e.next=2;break}return e.abrupt("return");case 2:return e.prev=2,"https://quantcast.mgr.consensu.org/tcfv2/google-atp-list.json",e.next=6,ie.a.get("https://quantcast.mgr.consensu.org/tcfv2/google-atp-list.json");case 6:for(r in t=e.sent,n=[],t.data)"undefined"!==typeof(o=t.data[r]).provider_id&&""!==o.provider_id&&(i={name:o.provider_name,id:o.provider_id,policyUrl:o.policy_url,description:o.domains},n.push(i)),this._data=n;e.next=14;break;case 11:e.prev=11,e.t0=e.catch(2),console.log(e.t0);case 14:case"end":return e.stop()}}),e,this,[[2,11]])})));return function(){return e.apply(this,arguments)}}()},{key:"data",get:function(){return this._data}}]),e}(),Ue=n(80),Re=n.n(Ue),Be=function(){function e(){p(this,e),this._values=void 0,this._values={euconsent:"",nonIabVendorConsent:"",nonIabVendorsHash:""}}return f(e,[{key:"values",set:function(e){this._values=e},get:function(){return this._values}}]),e}(),Me=function(){function e(){p(this,e),this.data=void 0,this._repromptOptionsHash=void 0,this._storedHash=void 0,this.data=new Be,this._repromptOptionsHash="",this._storedHash=""}return f(e,[{key:"shouldReprompt",value:function(){var e=this.generateRepromptOptionsHash(),t=!1;return this._storedHash!==e&&(t=!0),t}},{key:"generateRepromptOptionsHash",value:function(){var e=this.data.values,t=e.euconsent,n=e.nonIabVendorConsent,r=e.nonIabVendorsHash,o=he.coreConfig,i=o.stacks,s=o.initScreenBodyTextOption,a=he.premiumProperties,u=a.vendorWhitelist,c=a.vendorBlacklist,p=z(he),l=p.purposeIds,f=p.purposeLegitimateInterestIds,d=p.specialFeaturesIds,h=p.specialPurposesIds,y=p.featuresIds,g=this.createNewHash([i,l,f,d,h,y,u,c]),v=t;return v="".concat(v,".").concat(s,".").concat(g),v=n?"".concat(v,".").concat(n):v,v=r?"".concat(v,".").concat(r):v,this._repromptOptionsHash=v}},{key:"createNewHash",value:function(e){return Re()(e,{algorithm:"md5",encoding:"base64"})}},{key:"setValues",value:function(e){this.data.values=e}},{key:"getValues",value:function(){return this.data.values}},{key:"storedHash",set:function(e){this._storedHash=e}}]),e}(),Fe=function(){function e(t){switch(p(this,e),this._isUserInEU=void 0,this._isUserInUS=void 0,this._userSpecificLocation=void 0,this._userSpecificLocation=null,t){case"inUS":this._isUserInEU=false,this._isUserInUS=true;break;case"inEU":this._isUserInEU=false,this._isUserInUS=true;break;default:this._isUserInEU=false,this._isUserInUS=true}}return f(e,[{key:"checkSpecificLocation",value:function(){var e=c(a.a.mark((function e(){var t,n,r;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=he.coreConfig.privacyMode,this._userSpecificLocation){e.next=23;break}if(ae("initUspLocation: exact location request"),!t.includes("USP")){e.next=23;break}if(n=he.coreConfig.uspJurisdiction,!this.isUserInUS){e.next=22;break}if(n.includes("US")){e.next=19;break}return e.prev=7,e.next=10,se.get("https://apis.quantcast.mgr.consensu.org/geoip");case 10:r=e.sent,this._userSpecificLocation=r.data,e.next=17;break;case 14:e.prev=14,e.t0=e.catch(7),console.log(e.t0);case 17:e.next=20;break;case 19:this._userSpecificLocation="US";case 20:e.next=23;break;case 22:this._userSpecificLocation="non-US";case 23:return e.abrupt("return",this._userSpecificLocation);case 24:case"end":return e.stop()}}),e,this,[[7,14]])})));return function(){return e.apply(this,arguments)}}()},{key:"isUserInEU",set:function(e){ae("this should only be used for testing"),this._isUserInEU=e},get:function(){return this._isUserInEU}},{key:"isUserInUS",set:function(e){ae("this should only be used for testing"),this._isUserInUS=e},get:function(){return this._isUserInUS}},{key:"userSpecificLocation",set:function(e){ae("this should only be used for testing"),this._userSpecificLocation=e},get:function(){return this._userSpecificLocation}}]),e}();W.GVL.baseUrl="https://quantcast.mgr.consensu.org/GVL-v2/";var De,Ne=new Ae,Ge=function(e){return i({},e.coreConfig,{},e.premiumProperties,{},e.coreUiLabels,{},e.premiumUiLabels)},He=function(e){return Math.floor(e.getTime()/100)},qe=function(e){return new Date(100*e)},We=function(e,t){var n=Object.keys(t).filter((function(t){return-1===e.indexOf(t)}));return n.length&&(t.notFound=n),t},Ye=function(e,t){return!(!e&&"always"!==t)},ze=function(e){return e.coreConfig.consentScope===y.GLOBAL||e.coreConfig.consentScope===y.GLOBAL_GROUP},Je=function(e){var t=new Date(Date.now()+1e3*e.maxAge).toUTCString(),n="https:"===window.location.protocol?";SameSite=Lax;secure":"";document.cookie=e.cookieName+"="+e.encodedValue+";path="+he.coreConfig.cookiePath+";max-age="+e.maxAge+";expires="+t+";domain="+he.coreConfig.cookieDomain+n},Ke=function(e){return W.TCString.encode(e)},$e=function(e){return W.TCString.decode(e)},Qe=function(e){var t=!1;switch(e){case"firefox":t=navigator.userAgent.toLowerCase().indexOf(e)>-1;break;case"safari":t=navigator.userAgent.toLowerCase().indexOf(e)>-1&&-1===navigator.userAgent.toLowerCase().indexOf("chrome")}return t},Ze=function(){function e(){var t,n=this;p(this,e),this.cmpApi=void 0,this.isInitialized=void 0,this.config=void 0,this.MyCustomCommands=void 0,this.MyCustomCommands={getConfig:function(e,t){var r=n.getConfig(t),o=!1;"object"===typeof r&&(o=!0),e(r,o)},getNonIABVendorConsents:function(e,t){var r=n.getNonIABVendorConsents(t),o=!1;"object"===typeof r&&(o=!0),e(r,o)},displayConsentUi:function(e){return e(n.displayConsentUi())},setConsentInfo:function(e,t){return e(de.setConsents(t))},notifyUiState:function(e,t){return e(de.updateApiVisible(t.regulation,t.visible))},init:function(e,t){return e(n.init(t))}},window.__tcfapi().forEach((function(e){"init"===e[0]&&(t=e[3])}));var r=!("consentScope"in t.coreConfig)||t.coreConfig.consentScope.includes("service");this.isInitialized=!1,this.addGetTCDataToSupportGoogle(t,r),this.cmpApi=new v.CmpApi(10,L,r,this.MyCustomCommands)}return f(e,[{key:"addGetTCDataToSupportGoogle",value:function(){var e=c(a.a.mark((function e(t,n){var r,o,i,s,u,p;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r="thirdPartyStorageType"in t.coreConfig?t.coreConfig.thirdPartyStorageType:"iframe",o="consentScope"in t.coreConfig?t.coreConfig.consentScope:"service",i="googleEnabled"in t.coreConfig&&t.coreConfig.googleEnabled,s="consentScopeGroupURL"in t.coreConfig?t.coreConfig.consentScopeGroupURL:"",u=function(){var e=c(a.a.mark((function e(){var t,n,i,u;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!("service group"===o)){e.next=16;break}if(n="api"===r,i=function(){var e=c(a.a.mark((function e(){var t;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,De.tryGroupCookieAccessCall("get",U,"");case 2:return(t=e.sent)&&Array.isArray(t)?t=t[0]:t||(t=null),e.abrupt("return",t);case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),u=function(){var e=c(a.a.mark((function e(){var t,n;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,se({method:"get",url:s,withCredentials:!0});case 2:return t=e.sent,n=t.data.addtl_consent,e.abrupt("return",n||null);case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),!n){e.next=11;break}return e.next=8,u();case 8:t=e.sent,e.next=14;break;case 11:return e.next=13,i();case 13:t=e.sent;case 14:e.next=18;break;case 16:(t=document.cookie.split(";").filter((function(e){return e.trim().startsWith(U+"=")})).map((function(e){return e.trim().substring(U.length+1)}))[0])||(t=null);case 18:return e.abrupt("return",t);case 19:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),(null===o||void 0===o?void 0:o.includes("group"))&&"iframe"===r&&s&&(De=new Ve(t)),n&&i&&(p=function(){var e=c(a.a.mark((function e(t,n){var r,o;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("function"!==typeof t||"object"!==typeof n){e.next=7;break}return e.next=3,u();case 3:r=e.sent,o=r?J(r):null,n.addtlConsent=o,t(n,!0);case 7:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),this.MyCustomCommands.getTCData=p,this.MyCustomCommands.addEventListener=p,this.MyCustomCommands.getInAppTCData=p);case 7:case"end":return e.stop()}}),e,this)})));return function(t,n){return e.apply(this,arguments)}}()},{key:"displayConsentUi",value:function(){Ne.displayUi("GDPR",1,!1)}},{key:"init",value:function(e){this.isInitialized?console.warn("init has already been called and should only be run one time."):(this.isInitialized=!0,this.config||(this.config=new q(e),this.config.initializeConfig()),function(e){var t=(he=e).coreConfig,n=t.consentScope,r=t.privacyMode,o=t.publisherCountryCode,i=t.showSummaryView;de=new Se,ye=new Fe("inUS"),ge=function(){var e=c(a.a.mark((function e(){var t,n;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t="",e.prev=1,e.next=4,de.regulationToInit();case 4:"USP"===(t=e.sent)||r.includes("USP")?tt.initUsp():(n=function(e,t,n){"getUSPData"===e&&1===t&&"function"===typeof n&&n({version:1,uspString:"1---"},!0)},Object.assign(window,{__uspapi:n})),e.next=11;break;case 8:e.prev=8,e.t0=e.catch(1),console.log(e.t0);case 11:return e.abrupt("return",t);case 12:case"end":return e.stop()}}),e,null,[[1,8]])})));return function(){return e.apply(this,arguments)}}(),ve=new K,me=new Le,be=new Te,Ce=new Oe,Ee=new je,we=new Me,function(){var e=c(a.a.mark((function e(){var t,i,s,u,c;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=n.includes("service"),s=r.includes("GDPR"),(_e=new W.TCModel).cmpId=10,_e.cmpVersion=L,s&&(_e.publisherCountryCode=o),i&&s&&(u=z(he),c=u.purposeIds,_e.isServiceSpecific=!0,c.includes(1)||("DE"===o?_e.purposeOneTreatment=!0:c.push(1))),e.prev=7,e.next=10,de.fetchCookieValues();case 10:if(!s){e.next=15;break}return e.next=13,me.fetchList();case 13:return e.next=15,Ee.fetchPartners();case 15:return e.next=17,de.fetchDataToReprompt();case 17:if(!(t=e.sent)){e.next=21;break}return e.next=21,de.loadGVL();case 21:e.next=26;break;case 23:e.prev=23,e.t0=e.catch(7),console.error(e.t0);case 26:return e.abrupt("return",t);case 27:case"end":return e.stop()}}),e,null,[[7,23]])})));return function(){return e.apply(this,arguments)}}()().then((function(e){ge().then((function(t){e&&"GDPR"===t?Ne.displayUi("GDPR",i?0:1,!0):de.updateApiVisible(t,!1)}))}))}(this.config))}},{key:"getConfig",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"all";if(this.config)switch(e){case"all":return{coreConfig:this.config.coreConfig,coreUiLabels:this.config.coreUiLabels,premiumProperties:this.config.premiumProperties,premiumUiLabels:this.config.premiumUiLabels,theme:this.config.theme};case"Core Config":return this.config.coreConfig;case"Premium Properties":return this.config.premiumProperties;case"Core UI Labels":return this.config.coreUiLabels;case"Premium UI Labels":return this.config.premiumUiLabels;case"Theme":return this.config.theme;default:var t=Ge(this.config);if(t[e])return t[e];console.warn('"'.concat(e,'": was not found in configs'))}else console.error("Should run init before running getConfig")}},{key:"getConfigInstance",value:function(){return this.config}},{key:"getNonIABVendorConsents",value:function(e){var t;if(!this.config||(null===(t=this.config.coreConfig.privacyMode)||void 0===t?void 0:t.includes("GDPR"))){if("undefined"!==typeof this.config){var n=de.cookiesValues.nonIabVendorConsent,r=n?me.decode(n):me.getCookie(),o=null;return!r.message&&e?o=function(e,t){var n={};return t&&t.length>0?(t.forEach((function(t){void 0!==e[t]?n[t]=e[t]:n[t]=!1})),n):e}(r.vendorConsents,e):r.message||(o=i({},r.vendorConsents)),{gdprApplies:Ye(ye.isUserInEU,this.config.coreConfig.displayUi),hasGlobalConsent:ze(this.config),hasGlobalScope:ze(this.config),metadata:o?ve.encode(i({},r,{cookieName:"noniabvendorconsent"}),!0):null,nonIabVendorConsents:o||null}}console.log("Config was not found")}}}]),e}(),Xe=function(){function e(){var t=this;p(this,e),this.__uspapi=void 0,this._uspVersion=1,this.checkLocationToStopExecution=function(){var e=c(a.a.mark((function e(n){var r,o,i;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=!1,o=he.coreConfig.uspJurisdiction,e.next=4,ye.checkSpecificLocation();case 4:return(i=e.sent)&&"object"===typeof i&&(i=i.region.toUpperCase()),o.includes(i)||("function"===typeof n&&n({version:t._uspVersion,uspString:"1---"},!0),r=!0),e.abrupt("return",r);case 8:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),this.__uspapi=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,r=arguments.length>2?arguments[2]:void 0,o=arguments.length>3?arguments[3]:void 0;if(n===t._uspVersion)if("function"===typeof r)try{void 0!==o?t[e](r,o):t[e](r)}catch(i){console.error("The function ".concat(e," is not defined"))}else if(void 0===r)try{t[e]()}catch(i){console.error("The function ".concat(e," is missing required parameters"))}else console.warn("The third parameter should be a callback for the ".concat(e," function"));else console.warn("this command is only available for uspVersion 1")}}return f(e,[{key:"initUsp",value:function(){var e=this.__uspapi;Object.assign(window,{__uspapi:e})}},{key:"uspPing",value:function(){var e=c(a.a.mark((function e(t){var n;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("function"!==typeof t){e.next=8;break}return e.next=3,ye.checkSpecificLocation();case 3:(n=e.sent)&&"object"===typeof n&&(n=n.region),t({mode:he.coreConfig.privacyMode,jurisdiction:he.coreConfig.uspJurisdiction,location:n,cmpLoaded:!0},!0),e.next=9;break;case 8:console.error("The callback function is missing");case 9:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()},{key:"setUspDftData",value:function(){var e=c(a.a.mark((function e(t){var n,r,o;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("function"!==typeof t){e.next=10;break}return n=be.getCookie(),e.next=4,this.checkLocationToStopExecution(t);case 4:if(!e.sent){e.next=7;break}return e.abrupt("return");case 7:"string"!==typeof n?(r=be.encode(this._uspVersion,!1),be.setCookie(r),t({version:this._uspVersion,uspString:r},!0)):(o=n.split("")[0],t({version:o,uspString:n},!0)),e.next=11;break;case 10:console.error("The callback function is missing");case 11:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"setUspData",value:function(){var e=c(a.a.mark((function e(t,n){var r;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("function"!==typeof t){e.next=10;break}return r=be.encode(this._uspVersion,n),e.next=4,this.checkLocationToStopExecution(t);case 4:if(!e.sent){e.next=7;break}return e.abrupt("return");case 7:"string"!==typeof r?t(null,!1):(be.setCookie(r),t({version:this._uspVersion,uspString:r},!0)),e.next=11;break;case 10:console.error("The callback function is missing");case 11:case"end":return e.stop()}}),e,this)})));return function(t,n){return e.apply(this,arguments)}}()},{key:"getUSPData",value:function(){var e=c(a.a.mark((function e(t){var n,r;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("function"!==typeof t){e.next=10;break}return n=be.getCookie(),e.next=4,this.checkLocationToStopExecution(t);case 4:if(!e.sent){e.next=7;break}return e.abrupt("return");case 7:"string"===typeof n?(r=n.split("")[0],t({version:r,uspString:n},!0)):t(null,!1),e.next=11;break;case 10:console.error("The callback function is missing");case 11:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"displayUspUi",value:function(){var e=c(a.a.mark((function e(t){var n,r=arguments;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=r.length>1&&void 0!==r[1]?r[1]:1,e.next=3,this.checkLocationToStopExecution(void 0);case 3:if(!e.sent){e.next=7;break}return console.warn("cannot display USP UI outside of configured jurisdiction(s)"),e.abrupt("return");case 7:1===n&&Ne.displayUi("USP",n);case 8:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()}]),e}(),et=new Ze,tt=new Xe}]); \ No newline at end of file +!function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/",n(n.s=150)}([function(e,t,n){e.exports=n(258)},function(e,t,n){var r=n(6),o=n(35).f,i=n(22),s=n(23),a=n(58),u=n(83),c=n(65);e.exports=function(e,t){var n,f,l,p,d,h=e.target,v=e.global,y=e.stat;if(n=v?r:y?r[h]||a(h,{}):(r[h]||{}).prototype)for(f in t){if(p=t[f],l=e.noTargetGet?(d=o(n,f))&&d.value:n[f],!c(v?f:h+(y?".":"#")+f,e.forced)&&void 0!==l){if(typeof p===typeof l)continue;u(p,l)}(e.sham||l&&l.sham)&&i(p,"sham",!0),s(n,f,p,e)}}},function(e,t,n){var r=n(12);e.exports=function(e){if(!r(e))throw TypeError(String(e)+" is not an object");return e}},function(e,t){e.exports=!1},function(e,t,n){var r=n(2),o=n(95),i=n(24),s=n(8),a=n(69),u=n(94),c=function(e,t){this.stopped=e,this.result=t};e.exports=function(e,t,n){var f,l,p,d,h,v,y,g=n&&n.that,m=!(!n||!n.AS_ENTRIES),b=!(!n||!n.IS_ITERATOR),E=!(!n||!n.INTERRUPTED),C=s(t,g,1+m+E),_=function(e){return f&&u(f),new c(!0,e)},S=function(e){return m?(r(e),E?C(e[0],e[1],_):C(e[0],e[1])):E?C(e,_):C(e)};if(b)f=e;else{if("function"!=typeof(l=a(e)))throw TypeError("Target is not iterable");if(o(l)){for(p=0,d=i(e.length);d>p;p++)if((h=S(e[p]))&&h instanceof c)return h;return new c(!1)}f=l.call(e)}for(v=f.next;!(y=v.call(f)).done;){try{h=S(y.value)}catch(w){throw u(f),w}if("object"==typeof h&&h&&h instanceof c)return h}return new c(!1)}},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e}},function(e,t,n){(function(t){var n=function(e){return e&&e.Math==Math&&e};e.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof t&&t)||function(){return this}()||Function("return this")()}).call(this,n(153))},function(e,t,n){var r=n(6),o=n(61),i=n(13),s=n(46),a=n(66),u=n(87),c=o("wks"),f=r.Symbol,l=u?f:f&&f.withoutSetter||s;e.exports=function(e){return i(c,e)||(a&&i(f,e)?c[e]=f[e]:c[e]=l("Symbol."+e)),c[e]}},function(e,t,n){var r=n(5);e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 0:return function(){return e.call(t)};case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,o){return e.call(t,n,r,o)}}return function(){return e.apply(t,arguments)}}},function(e,t,n){var r=n(84),o=n(6),i=function(e){return"function"==typeof e?e:void 0};e.exports=function(e,t){return arguments.length<2?i(r[e])||i(o[e]):r[e]&&r[e][t]||o[e]&&o[e][t]}},function(e,t,n){var r=n(84),o=n(13),i=n(89),s=n(18).f;e.exports=function(e){var t=r.Symbol||(r.Symbol={});o(t,e)||s(t,e,{value:i.f(e)})}},function(e,t){e.exports=function(e){try{return!!e()}catch(t){return!0}}},function(e,t){e.exports=function(e){return"object"===typeof e?null!==e:"function"===typeof e}},function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t,n){"use strict";function r(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}Object.defineProperty(t,"__esModule",{value:!0}),r(n(270)),r(n(271)),r(n(272)),r(n(273))},function(e,t,n){"use strict";function r(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}Object.defineProperty(t,"__esModule",{value:!0}),r(n(119)),r(n(274)),r(n(120)),r(n(121)),r(n(275)),r(n(80)),r(n(122)),r(n(276)),r(n(277))},function(e,t,n){"use strict";var r=n(138),o=Object.prototype.toString;function i(e){return"[object Array]"===o.call(e)}function s(e){return"undefined"===typeof e}function a(e){return null!==e&&"object"===typeof e}function u(e){return"[object Function]"===o.call(e)}function c(e,t){if(null!==e&&"undefined"!==typeof e)if("object"!==typeof e&&(e=[e]),i(e))for(var n=0,r=e.length;n0?o(r(e),9007199254740991):0}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(53),o=n(262),i=function(){function e(){}return e.reset=function(){delete this.cmpId,delete this.cmpVersion,delete this.eventStatus,delete this.gdprApplies,delete this.tcModel,delete this.tcString,delete this.tcfPolicyVersion,this.cmpStatus=r.CmpStatus.LOADING,this.disabled=!1,this.displayStatus=r.DisplayStatus.HIDDEN,this.eventQueue.clear()},e.apiVersion="2",e.eventQueue=new o.EventListenerQueue,e.cmpStatus=r.CmpStatus.LOADING,e.disabled=!1,e.displayStatus=r.DisplayStatus.HIDDEN,e}();t.CmpApiModel=i},function(e,t,n){var r=n(56),o=n(33);e.exports=function(e){return r(o(e))}},function(e,t,n){var r=n(33);e.exports=function(e){return Object(r(e))}},function(e,t,n){var r=n(18).f,o=n(13),i=n(7)("toStringTag");e.exports=function(e,t,n){e&&!o(e=n?e:e.prototype,i)&&r(e,i,{configurable:!0,value:t})}},function(e,t,n){var r=n(3),o=n(77);e.exports=r?o:function(e){return Set.prototype.values.call(e)}},function(e,t,n){"use strict";var r=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(){}return e.prototype.clone=function(){var e=this,t=new this.constructor;return Object.keys(this).forEach((function(n){var r=e.deepClone(e[n]);void 0!==r&&(t[n]=r)})),t},e.prototype.deepClone=function(e){var t,n,o=typeof e;if("number"===o||"string"===o||"boolean"===o)return e;if(null!==e&&"object"===o){if("function"==typeof e.clone)return e.clone();if(e instanceof Date)return new Date(e.getTime());if(void 0!==e[Symbol.iterator]){var i=[];try{for(var s=r(e),a=s.next();!a.done;a=s.next()){var u=a.value;i.push(this.deepClone(u))}}catch(e){t={error:e}}finally{try{a&&!a.done&&(n=s.return)&&n.call(s)}finally{if(t)throw t.error}}return e instanceof Array?i:new e.constructor(i)}var c={};for(var f in e)e.hasOwnProperty(f)&&(c[f]=this.deepClone(e[f]));return c}},e}();t.Cloneable=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(14),o=function(){function e(){}return e.encode=function(e,t){var n;if("string"==typeof e&&(e=parseInt(e,10)),(n=e.toString(2)).length>t||e<0)throw new r.EncodingError(e+" too large to encode into "+t);return n.length0?r:n)(e)}},function(e,t,n){var r,o=n(2),i=n(157),s=n(63),a=n(37),u=n(88),c=n(57),f=n(45),l=f("IE_PROTO"),p=function(){},d=function(e){return"