1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8525],{31044:(e,t,n)=>{function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,s=Array(t);n<t;n++)s[n]=e[n];return s}function i(e,t,n,s,i,r,o){try{var a=e[r](o),c=a.value}catch(e){return void n(e)}a.done?t(c):Promise.resolve(c).then(s,i)}function r(e){return function(){var t=this,n=arguments;return new Promise(function(s,r){var o=e.apply(t,n);function a(e){i(o,s,r,a,c,"next",e)}function c(e){i(o,s,r,a,c,"throw",e)}a(void 0)})}}function o(e,t,n){return t=p(t),function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw TypeError("Derived constructors may only return object or undefined");if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e,f()?Reflect.construct(t,n||[],p(e).constructor):t.apply(e,n))}function a(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function c(e,t){for(var n=0;n<t.length;n++){var s=t[n];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(e,y(s.key),s)}}function u(e,t,n){return t&&c(e.prototype,t),n&&c(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function l(e,t){var n="u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=m(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var s=0,i=function(){};return{s:i,n:function(){return s>=e.length?{done:!0}:{done:!1,value:e[s++]}},e:function(e){throw e},f:i}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,o=!0,a=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){a=!0,r=e},f:function(){try{o||null==n.return||n.return()}finally{if(a)throw r}}}}function d(e,t,n){return(t=y(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function h(){return(h="u">typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var s=function(e,t){for(;!({}).hasOwnProperty.call(e,t)&&null!==(e=p(e)););return e}(e,t);if(s){var i=Object.getOwnPropertyDescriptor(s,t);return i.get?i.get.call(arguments.length<3?e:n):i.value}}).apply(null,arguments)}function p(e){return(p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function g(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&T(e,t)}function f(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(f=function(){return!!e})()}function S(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,s)}return n}function v(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?S(Object(n),!0).forEach(function(t){d(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):S(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function E(){var e,t,n="function"==typeof Symbol?Symbol:{},s=n.iterator||"@@iterator",i=n.toStringTag||"@@toStringTag";function r(n,s,i,r){var c=Object.create((s&&s.prototype instanceof a?s:a).prototype);return I(c,"_invoke",function(n,s,i){var r,a,c,u=0,l=i||[],d=!1,h={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return r=t,a=0,c=e,h.n=n,o}};function p(n,s){for(a=n,c=s,t=0;!d&&u&&!i&&t<l.length;t++){var i,r=l[t],p=h.p,g=r[2];n>3?(i=g===s)&&(c=r[(a=r[4])?5:(a=3,3)],r[4]=r[5]=e):r[0]<=p&&((i=n<2&&p<r[1])?(a=0,h.v=s,h.n=r[1]):p<g&&(i=n<3||r[0]>s||s>g)&&(r[4]=n,r[5]=s,h.n=g,a=0))}if(i||n>1)return o;throw d=!0,s}return function(i,l,g){if(u>1)throw TypeError("Generator is already running");for(d&&1===l&&p(l,g),a=l,c=g;(t=a<2?e:c)||!d;){r||(a?a<3?(a>1&&(h.n=-1),p(a,c)):h.n=c:h.v=c);try{if(u=2,r){if(a||(i="next"),t=r[i]){if(!(t=t.call(r,c)))throw TypeError("iterator result is not an object");
1if(!t.done)return t;c=t.value,a<2&&(a=0)}else 1===a&&(t=r.return)&&t.call(r),a<2&&(c=TypeError("The iterator does not provide a '"+i+"' method"),a=1);r=e}else if((t=(d=h.n<0)?c:n.call(s,h))!==o)break}catch(t){r=e,a=1,c=t}finally{u=1}}return{value:t,done:d}}}(n,i,r),!0),c}var o={};function a(){}function c(){}function u(){}t=Object.getPrototypeOf;var l=u.prototype=a.prototype=Object.create([][s]?t(t([][s]())):(I(t={},s,function(){return this}),t));function d(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,I(e,i,"GeneratorFunction")),e.prototype=Object.create(l),e}return c.prototype=u,I(l,"constructor",u),I(u,"constructor",c),c.displayName="GeneratorFunction",I(u,i,"GeneratorFunction"),I(l),I(l,i,"Generator"),I(l,s,function(){return this}),I(l,"toString",function(){return"[object Generator]"}),(E=function(){return{w:r,m:d}})()}function I(e,t,n,s){var i=Object.defineProperty;try{i({},"",{})}catch(e){i=0}(I=function(e,t,n,s){function r(t,n){I(e,t,function(e){return this._invoke(t,n,e)})}t?i?i(e,t,{value:n,enumerable:!s,configurable:!s,writable:!s}):e[t]=n:(r("next",0),r("throw",1),r("return",2))})(e,t,n,s)}function T(e,t){return(T=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function C(e,t,n,s){var i=h(p(1&s?e.prototype:e),t,n);return 2&s&&"function"==typeof i?function(e){return i.apply(n,e)}:i}function _(e){return function(e){if(Array.isArray(e))return s(e)}(e)||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||m(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function y(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var s=n.call(e,t||"default");if("object"!=typeof s)return s;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}function A(e){return(A="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function m(e,t){if(e){if("string"==typeof e)return s(e,t);var n=({}).toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(e,t):void 0}}function O(e){var t="function"==typeof Map?new Map:void 0;return(O=function(e){if(null===e||!function(e){try{return -1!==Function.toString.call(e).indexOf("[native code]")}catch(t){return"function"==typeof e}}(e))return e;if("function"!=typeof e)throw TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return function(e,t,n){if(f())return Reflect.construct.apply(null,arguments);var s=[null];s.push.apply(s,t);var i=new(e.bind.apply(e,s));return n&&T(i,n.prototype),i}(e,arguments,p(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),T(n,e)})(e)}n.d(t,{$:()=>oi,A:()=>ol,B:()=>o,C:()=>eO,D:()=>eN,E:()=>e8,F:()=>eb,G:()=>iU,H:()=>ni,I:()=>nv,J:()=>ov,K:()=>oS,L:()=>e9,M:()=>eK,N:()=>oE,O:()=>oI,P:()=>ez,Q:()=>om,R:()=>oC,S:()=>iL,T:()=>oM,U:()=>e0,V:()=>oO,W:()=>eR,X:()=>oA,Y:()=>oy,Z:()=>oT,_:()=>V,a:()=>eD,a0:()=>oN,a1:()=>ob,a2:()=>oD,a3:()=>ru,a4:()=>oL,a5:()=>oP,a6:()=>oV,a7:()=>ow,a8:()=>rs,a9:()=>rn,aa:()=>eL,ab:()=>nN,ac:()=>nm,ad:()=>nD,ae:()=>nw,af:()=>nb,ag:()=>nO,ah:()=>nR,ai:()=>nL,aj:()=>o_,ak:()=>of,al:()=>oU,am:()=>e7,an:()=>ty,ao:()=>t_,ap:()=>ev,aq:()=>eS,ar:()=>tN,as:()=>tb,at:()=>tw,au:()=>eg,av:()=>tm,aw:()=>tO,ax:()=>oq,b:()=>eY,c:()=>iw,d:()=>eG,e:()=>eI,f:()=>G,g:()=>nF,h:()=>B,i:()=>nl,j:()=>n3,k:()=>nq,l:()=>H,m:()=>nu,n:()=>x,o:()=>nx,p:()=>F,q:()=>eq,r:()=>g,s:()=>t5,t:()=>u,u:()=>a,v:()=>nt,w:()=>_,x:()=>C,y:()=>or,z:()=>op});var N,b,D,R,w,L,P=function(e,t){return(P=Object.setPrototypeOf||({__proto__:[]}
1)instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function V(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}P(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var U,M,k,F=function(){return(F=Object.assign||function(e){for(var t,n=1,s=arguments.length;n<s;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function G(e,t,n,s){return new(n||(n=Promise))(function(i,r){function o(e){try{c(s.next(e))}catch(e){r(e)}}function a(e){try{c(s.throw(e))}catch(e){r(e)}}function c(e){var t;e.done?i(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(o,a)}c((s=s.apply(e,t||[])).next())})}function B(e,t){var n,s,i,r={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},o=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return o.next=a(0),o.throw=a(1),o.return=a(2),"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(a){return function(c){var u=[a,c];if(n)throw TypeError("Generator is already executing.");for(;o&&(o=0,u[0]&&(r=0)),r;)try{if(n=1,s&&(i=2&u[0]?s.return:u[0]?s.throw||((i=s.return)&&i.call(s),0):s.next)&&!(i=i.call(s,u[1])).done)return i;switch(s=0,i&&(u=[2&u[0],i.value]),u[0]){case 0:case 1:i=u;break;case 4:return r.label++,{value:u[1],done:!1};case 5:r.label++,s=u[1],u=[0];continue;case 7:u=r.ops.pop(),r.trys.pop();continue;default:if(!(i=(i=r.trys).length>0&&i[i.length-1])&&(6===u[0]||2===u[0])){r=0;continue}if(3===u[0]&&(!i||u[1]>i[0]&&u[1]<i[3])){r.label=u[1];break}if(6===u[0]&&r.label<i[1]){r.label=i[1],i=u;break}if(i&&r.label<i[2]){r.label=i[2],r.ops.push(u);break}i[2]&&r.ops.pop(),r.trys.pop();continue}u=t.call(e,r)}catch(e){u=[6,e],s=0}finally{n=i=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}}function x(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var s,i,r=n.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(s=r.next()).done;)o.push(s.value)}catch(e){i={error:e}}finally{try{s&&!s.done&&(n=r.return)&&n.call(r)}finally{if(i)throw i.error}}return o}function H(e,t,n){if(n||2==arguments.length)for(var s,i=0,r=t.length;i<r;i++)!s&&i in t||(s||(s=Array.prototype.slice.call(t,0,i)),s[i]=t[i]);return e.concat(s||Array.prototype.slice.call(t))}function j(e){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],s=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&s>=e.length&&(e=void 0),{value:e&&e[s++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(e),t={},s("next"),s("throw"),s("return"),t[Symbol.asyncIterator]=function(){return this},t);function s(n){t[n]=e[n]&&function(t){return new Promise(function(s,i){var r;r=(t=e[n](t)).done,Promise.resolve(t.value).then(function(e){s({value:e,done:r})},i)})}}}"function"==typeof SuppressedError&&SuppressedError,(Y=U||(U={})).CONSENT_RESPONSE="consent-response",Y.CONSENT_UI="consent-ui",(J=M||(M={})).ACCEPT="accept",J.REJECT="reject",J.DISMISS="dismiss",J.FULLSCREEN="enter-fullscreen",J.READY="ready",(W=k||(k={}))[W.TCF_V2=2]="TCF_V2",W[W.CCPA=3]="CCPA",(K=ea||(ea={}))[K.FALSE=0]="FALSE",K[K.TRUE=1]="TRUE",(q=ec||(ec={}))[q.DATA_LAYER=0]="DATA_LAYER",q[q.WINDOW_EVENT=1]="WINDOW_EVENT",(Q=eu||(eu={}))[Q.MAJOR=0]="MAJOR",Q[Q.MINOR=1]="MINOR",Q[Q.PATCH=2]="PATCH",(z=el||(el={})).CALL_INIT="Usercentrics: You have to call the init method before!",z.DATA_LOCAL="Usercentrics: disableServerConsents and controllerId should not be present at the same time in the InitOptions!",z.UNKNOWN_VARIANT="Usercentrics: Unknown variant",z.NOT_CCPA="Usercentrics: CCPA was not initialized",z.NOT_DEFAULT="Usercentrics: GDPR was not initialized",z.NOT_TCF="Usercentrics: TCF was not initialized",(X=ed||(ed={})).BANNER="BANNER",X.WALL="WALL",($=eh||(eh={})).CENTER="CENTER",$.SIDE="SIDE",(Z=ep||(ep={}))[Z.DARK=0]="DARK",Z[Z.LIGHT=1]="LIGHT",(ee=eg||(eg={})).LINK="LINK",ee.BUTTON="BUTTON",ee.MORE_LINK_BUTTON="MORE_LINK_BUTTON",(et=ef||(ef={}
1)).LEFT="LEFT",et.RIGHT="RIGHT",(en=eS||(eS={})).HORIZONTAL="HORIZONTAL",en.VERTICAL="VERTICAL",(es=ev||(ev={})).ALL="ALL",es.SHORT="SHORT",(ei=eE||(eE={})).CROSS_DEVICE_DATA_NOT_AVAILABLE="Usercentrics: Cross Device Consents data is not available",ei.CROSS_DEVICE_TCF_DATA_NOT_AVAILABLE="Usercentrics: Cross Device TCF data is not available",ei.CROSS_DEVICE_FEATURE_DISABLED="Usercentrics: The `Cross-Device Consent Sharing` feature is not enabled. Please contact the support team in order to enable this feature for your configuration",(er=eI||(eI={})).CROSS_DOMAIN_DATA_NOT_AVAILABLE="Usercentrics: Cross Domain Consents data is not available",er.CROSS_DOMAIN_TCF_DATA_NOT_AVAILABLE="Usercentrics: Cross Domain TCF data is not available",er.CROSS_DOMAIN_FEATURE_NOT_AVAILABLE="Usercentrics: Cross Domain Consent Sharing is not available.",er.CROSS_DOMAIN_LANGUAGE_NOT_AVAILABLE="Usercentrics: Cross Domain Consent language is not available",er.CROSS_DOMAIN_SET_DATA_FAILURE="Usercentrics: Unable to set Cross Domain data",er.CROSS_DOMAIN_SET_TCF_DATA_FAILURE="Usercentrics: Unable to set Cross Domain TCF data",er.CROSS_DOMAIN_IFRAME_ERROR="Usercentrics: Iframe error",er.CROSS_DOMAIN_IFRAME_NOT_FOUND="Usercentrics: Cross Domain iFrame not found",er.CROSS_DOMAIN_IFRAME_LOAD_ERROR="Usercentrics: IFrame did not load",(eo=eT||(eT={})).CLEAR="clear",eo.GET_CROSS_DOMAIN_LANGUAGE="getCrossDomainLanguage",eo.GET_CROSS_DOMAIN_SESSION_DATA="getCrossDomainSessionData",eo.GET_CROSS_DOMAIN_TCF_DATA="getCrossDomainTcfData",eo.GET_CROSS_DOMAIN_CCPA_DATA="getCrossDomainCcpaData",eo.GET_TC_STRING="getTCString",eo.PING="ping",eo.SET_CROSS_DOMAIN_DATA="setCrossDomainData",eo.SET_CROSS_DOMAIN_TCF_DATA="setCrossDomainTcfData",eo.SET_CROSS_DOMAIN_CCPA_DATA="setCrossDomainCcpaData",eo.SET_TC_STRING="setTCString";var Y,J,W,K,q,Q,z,X,$,Z,ee,et,en,es,ei,er,eo,ea,ec,eu,el,ed,eh,ep,eg,ef,eS,ev,eE,eI,eT,eC,e_,ey="ucMobileSdk",eA=["*.usercentrics-sandbox.eu","*.usercentrics.eu"],em="4.61.0",eO=1,eN="1---",eb="__uspapiLocator",eD=/^[1][nNyY-][nNyY-][nNyY-]$/,eR="__uspapi";(ew=eC||(eC={})).CCPA="uc_usprivacy",ew.CCPA_DATA="uc_ccpa",ew.CONSENTS_BUFFER="uc_consents_buffer",ew.CONSENTS_V2_BUFFER="uc_consents_v2_buffer",ew.GCM_DATA="uc_gcm",ew.LEGACY_SETTINGS="ucSettings",ew.SERVICES="uc_services",ew.SETTINGS="uc_settings",ew.TCF="uc_tcf",ew.USER_INTERACTION="uc_user_interaction",ew.AB_TEST_VARIANT="uc_ab_variant",ew.INTERACTION_TYPE="uc_interaction_type",(e_||(e_={})).USER_COUNTRY="uc_user_country";var ew,eL,eP,eV,eU,eM="uc-cross-domain-bridge",ek="".concat("https://app.usercentrics.eu","/browser-sdk/").concat(em,"/cross-domain-bridge.html"),eF="".concat("https://app.eu.usercentrics.eu","/browser-sdk/").concat(em,"/cross-domain-bridge.html"),eG=function(){function e(){}return e.setDomainBridgeUri=function(t){var n="";t&&(t.crossDomainConsentSharingIFrame?n=t.crossDomainConsentSharingIFrame:t.app&&(n="".concat(t.app,"/browser-sdk/").concat(em,"/cross-domain-bridge.html")));var s=""!==n?n:ek;e.domainBridgeUri=e.useEuCdn?eF:s},e.getDomainBridgeUri=function(){return e.domainBridgeUri},e.init=function(t,n){return G(this,void 0,void 0,function(){return B(this,function(s){return e.setDomainBridgeUri(n),e.setUseEuCdn((null==t?void 0:t.useEuCdn)||!1),e.setDomainBridgeUri(n),[2,this.initIFrame(e.getDomainBridgeUri(),eM)]})})},e.initIFrame=function(t,n){return G(this,void 0,void 0,function(){var s=this;return B(this,function(i){return[2,new Promise(function(i,r){var o=e.createIFrame(t,n);o.onload=function(){return G(s,void 0,void 0,function(){var s;return B(this,function(a){return s=setTimeout(function(){o={},r(Error(eI.CROSS_DOMAIN_IFRAME_LOAD_ERROR))},1e3),e.queryIFrame(t,n,eT.PING).then(function(){clearTimeout(s),i(!0)}).catch(function(e){clearTimeout(s),r(e)}),[2]})})},o.onerror=function(){return G(s,void 0,void 0,function(){return B(this,function(e){return r(Error(eI.CROSS_DOMAIN_IFRAME_ERROR)),[2]})})},e.appendIFrame(o)})]})})},e.setIsCrossDomainAvailable=function(t){e.crossDomainAvailable=t},e.isCookieBridgeAvailable=function(){return e.cookieBridgeAvailable},e.setIsCookieBridgeAvailable=function(t){e.cookieBridgeAvailable=t},e.isCrossDomainAvailable=function(){return e.crossDomainAvailable},e.getCrossDomainId=function(){return e.crossDomainId},e.setCrossDomainId=function(t){e.crossDomainId="".concat("uc_cross_domain_data","_").concat(t)},e.setCookieBridgeDomain=function(e,t){this.cookieBridgeDomain="".concat(e).concat(t)},e.setUseEuCdn=function(t){e.useEuCdn=t}
1,e.createIFrame=function(t,n){e.removeIFrame(n);var s=document.createElement("iframe");return s.style.display="none",s.id=n,s.src=t,s},e.removeIFrame=function(e){var t=document.getElementById(e);t&&t.parentNode&&t.parentNode.removeChild(t)},e.queryIFrame=function(e,t,n,s,i){return G(this,void 0,void 0,function(){var r;return B(this,function(o){if(!(r=document.getElementById(t))||!r.id)throw Error(eI.CROSS_DOMAIN_IFRAME_NOT_FOUND);return[2,new Promise(function(t,o){var a=JSON.stringify({crossDomainId:i,method:n,payload:s}),c=new MessageChannel;c.port1.onmessage=function(e){var n=JSON.parse(e.data),s=n.success,i=n.data;s?t(i):o(e)},r&&r.contentWindow&&r.contentWindow.postMessage(a,e,[c.port2])})]})})},e.appendIFrame=function(e){try{document.body?document.body.appendChild(e):document.addEventListener("DOMContentLoaded",function(){document.body.appendChild(e)})}catch(e){return Error(eI.CROSS_DOMAIN_IFRAME_ERROR)}return null},e.query=function(t,n){return G(this,void 0,void 0,function(){return B(this,function(s){return[2,e.queryIFrame(e.getDomainBridgeUri(),eM,t,n,e.crossDomainId)]})})},e.getCrossDomainLanguage=function(){return e.query(eT.GET_CROSS_DOMAIN_LANGUAGE)},e.setCrossDomainData=function(t){return G(this,void 0,void 0,function(){return B(this,function(n){return[2,e.query(eT.SET_CROSS_DOMAIN_DATA,{consents:t.services.map(function(e){return e.history.map(function(t){return{action:t.action,consentId:"",settingsVersion:t.versions.settings,status:t.status,templateId:e.id,timestamp:"".concat(t.timestamp),updatedBy:t.type}})}).reduce(function(e,t){return e.concat(t)},[]).sort(function(e,t){return parseInt(e.timestamp,10)-parseInt(t.timestamp,10)}),controllerId:t.controllerId,language:t.language})]})})},e.setCrossDomainCcpaData=function(t){return G(this,void 0,void 0,function(){return B(this,function(n){return[2,e.query(eT.SET_CROSS_DOMAIN_CCPA_DATA,t)]})})},e.getCrossDomainCcpaData=function(){return G(this,void 0,void 0,function(){return B(this,function(t){return[2,e.query(eT.GET_CROSS_DOMAIN_CCPA_DATA)]})})},e.getCrossDomainSessionData=function(){return G(this,void 0,void 0,function(){return B(this,function(t){return[2,e.query(eT.GET_CROSS_DOMAIN_SESSION_DATA)]})})},e.getCrossDomainTcfData=function(){return G(this,void 0,void 0,function(){return B(this,function(t){return[2,e.query(eT.GET_CROSS_DOMAIN_TCF_DATA)]})})},e.setCrossDomainTcfData=function(t){return G(this,void 0,void 0,function(){return B(this,function(n){return[2,e.query(eT.SET_CROSS_DOMAIN_TCF_DATA,t)]})})},e.clearCrossDomainStorage=function(){return G(this,void 0,void 0,function(){return B(this,function(t){return[2,e.query(eT.CLEAR)]})})},e.crossDomainId="",e.cookieBridgeDomain="",e.domainBridgeUri=ek,e.useEuCdn=!1,e.cookieBridgeAvailable=!1,e.crossDomainAvailable=!1,e}(),eB=function(){function e(){this.length=0,this.data={}}return e.prototype.updateLength=function(){this.length=Object.keys(this.data).length},e.prototype.key=function(e){var t=Object.keys(this.data)[e];return void 0===A(t)?null:t},e.prototype.getItem=function(e){return void 0!==this.data[e]?this.data[e]:null},e.prototype.setItem=function(e,t){this.data[e]=String(t),this.updateLength()},e.prototype.removeItem=function(e){delete this.data[e],this.updateLength()},e.prototype.clear=function(){this.data={},this.updateLength()},e}();(e1=eL||(eL={})).COOKIE_BRIDGE_NOT_AVAILABLE="Usercentrics: Cookie bridge is not available.",e1.COOKIE_BRIDGE_OPTIONS_NOT_SET="Usercentrics: Cookie bridge options are not set",e1.GET_GLOBAL_TC_STRING_FAILURE="Usercentrics: Unable to get the Global TC string",e1.INIT_TCF_ERROR="Usercentrics: Unable to init TCF",e1.RESET_GVL_FAILURE="Usercentrics: Unable to reset Global Vendor List",e1.SET_GLOBAL_TC_STRING_FAILURE="Usercentrics: Unable to set the Global TC string",e1.VENDOR_REMOVED="Usercentrics: The following vendor is not part of the official vendors list anymore: ",e1.TC_MODEL_UNDEFINED="Usercentrics: tcModel can not be null.",e1.SELECTED_LANGUAGE_UNDEFINED="Usercentrics: Selected language can not be undefined",(e2=eP||(eP={})).LEGITIMATE_INTEREST="legIntPurposes",e2.PURPOSES="purposes",(e3=eV||(eV={}))[e3.ID=0]="ID",e3[e3.LEGITIMATE_INTEREST=1]="LEGITIMATE_INTEREST",e3[e3.PURPOSES=2]="PURPOSES",e3[e3.SPECIAL_PURPOSES=3]="SPECIAL_PURPOSES",(e4=eU||(eU={}))[e4.FIRST_LAYER=1]="FIRST_LAYER",e4[e4.SECOND_LAYER=2]="SECOND_LAYER";var ex=function(e){switch(e){case"onAcceptAllBtnClick":case"onSpecialFunctionAcceptAllConsentTrigger":return"onAcceptAllServices";case"onDenyAllAnchorClick":case"onDenyAllBtnClick":return"onDenyAllServices";case"onNonEURegion":return"onNonEURegion";case"onInitialPageLoad":case"onCountdownFinished":default:return"onInitialPageLoad";case"onToggleCategory":case"onToggleConsent":case"onToggleSelectAll":return"onEssentialChange";case"onWindowFunctionUpdateConsent":case"bySettingsUpdate":case"onSaveBtnClick":return"onUpdateServices"}},eH=function(e){switch(e){case"update":case"implicit":default:return"implicit";case"explicit":return"explicit"}},ej="RAMDOM_KEY_LOCAL_STORAGE",eY=function(){function e(){this.localStorage=null,this.sessionStorage=null,this.storeServiceIdToNameMapping=!1}return e.getInstance=function(){return e.instance||(e.instance=new e),e.instance},e.resetInstance=function(){e.instance.localStorage=null,e.instance.sessionStorage=null},e.prototype.setStoreServiceIdToNameMapping=function(e){this.storeServiceIdToNameMapping=e},e.prototype.getStoreServiceIdToNameMapping=function(){return this.storeServiceIdToNameMapping},e.prototype.init=function(){try{localStorage.setItem(ej,ej),localStorage.removeItem(ej),this.localStorage=localStorage}catch(e){this.localStorage=new eB}try{sessionStorage.setItem(ej,ej),sessionStorage.removeItem(ej),this.sessionStorage=sessionStorage}catch(e){this.sessionStorage=new eB}},e.appendToConsentsBuffer=function(t){var n,s=e.fetchConsentsBuffer(),i=(new Date).valueOf();s.push({consents:t,timestamp:i}
1),null==(n=e.getInstance().localStorage)||n.setItem(eC.CONSENTS_BUFFER,JSON.stringify(s))},e.appendToConsentsV2Buffer=function(t){var n,s=e.fetchConsentsV2Buffer(),i=(new Date).valueOf();s.push({consents:t,timestamp:i}),null==(n=e.getInstance().localStorage)||n.setItem(eC.CONSENTS_V2_BUFFER,JSON.stringify(s))},e.clearOnNewSettingsId=function(t){t!==e.fetchSettingsId()&&e.clear()},e.findBufferItem=function(t){return e.fetchConsentsBuffer().slice().find(function(e){return JSON.stringify(e.consents)===JSON.stringify(t)})},e.findV2BufferItem=function(t){return e.fetchConsentsV2Buffer().slice().find(function(e){return JSON.stringify(e.consents)===JSON.stringify(t)})},e.removeConsentsBufferItem=function(t){var n,s,i=e.fetchConsentsBuffer(),r=i.length+0;(i=i.filter(function(e){return JSON.stringify(e)!==JSON.stringify(t)})).length&&i.length!==r?null==(n=e.getInstance().localStorage)||n.setItem(eC.CONSENTS_BUFFER,JSON.stringify(i)):null==(s=e.getInstance().localStorage)||s.removeItem(eC.CONSENTS_BUFFER)},e.removeConsentsV2BufferItem=function(t){var n,s,i=e.fetchConsentsV2Buffer(),r=i.length+0;(i=i.filter(function(e){return JSON.stringify(e)!==JSON.stringify(t)})).length&&i.length!==r?null==(n=e.getInstance().localStorage)||n.setItem(eC.CONSENTS_V2_BUFFER,JSON.stringify(i)):null==(s=e.getInstance().localStorage)||s.removeItem(eC.CONSENTS_V2_BUFFER)},e.getCcpaString=function(){var t,n=null==(t=e.getInstance().localStorage)?void 0:t.getItem(eC.CCPA);return n&&eD.test(n)?n:eN},e.getCcpaData=function(){var t,n=null==(t=e.getInstance().localStorage)?void 0:t.getItem(eC.CCPA_DATA);return n?JSON.parse(n):null},e.fetchConsentsBuffer=function(){var t,n=null==(t=e.getInstance().localStorage)?void 0:t.getItem(eC.CONSENTS_BUFFER);return n?JSON.parse(n):[]},e.fetchConsentsV2Buffer=function(){var t,n=null==(t=e.getInstance().localStorage)?void 0:t.getItem(eC.CONSENTS_V2_BUFFER);return n?JSON.parse(n):[]},e.fetchControllerId=function(){var t=e.fetchSettings();return t?t.controllerId:""},e.fetchLanguage=function(){var t=e.fetchSettings();return t?t.language:""},e.fetchServices=function(){var t=e.fetchSettings();return t?t.services:[]},e.fetchLegacySettings=function(){var t,n=null==(t=e.getInstance().localStorage)?void 0:t.getItem(eC.LEGACY_SETTINGS);return n?JSON.parse(n):null},e.fetchSettings=function(){var t,n=null==(t=e.getInstance().localStorage)?void 0:t.getItem(eC.SETTINGS);return n?JSON.parse(n):{}},e.fetchSettingsId=function(){var t=e.fetchSettings();return t?t.id:""},e.fetchSettingsVersion=function(){var t=e.fetchSettings();return t?t.version:""},e.fetchTCFData=function(){var t,n=null==(t=e.getInstance().localStorage)?void 0:t.getItem(eC.TCF),s=n?JSON.parse(n):{acString:"",tcString:"",timestamp:Date.now(),vendors:[]};return s.vendors||(s.vendors=[]),s},e.fetchTCFVendorsDisclosedObject=function(t){var n,s=e.fetchTCFData(),i=s.acString,r=s.tcString,o=s.vendors,a=s.vendorsDisclosed;if(!o&&!a)return{};if((a||!a&&!o.length&&r)&&t){var c=Object.keys(t).map(Number);n=(a||c).filter(function(e){return t[e]}).map(function(e){var n=t[e];return[n.id,n.legIntPurposes,n.purposes,n.specialPurposes]}),e.saveTCFData({acString:i,tcString:r,timestamp:Date.now(),vendors:n})}else n=o;return n.reduce(function(e,t){var n;return F(F({},e),((n={})[t[eV.ID]]=!0,n))},{})},e.fetchTCString=function(){return e.fetchTCFData().tcString||""},e.fetchACString=function(){return e.fetchTCFData().acString||""},e.fetchUserActionPerformed=function(){var t;return"true"===(null==(t=e.getInstance().localStorage)?void 0:t.getItem(eC.USER_INTERACTION))},e.fetchActionTypePerformed=function(){var t;return(null==(t=e.getInstance().localStorage)?void 0:t.getItem(eC.INTERACTION_TYPE))||""},e.fetchUserCountryResponse=function(){var t;try{return JSON.parse((null==(t=e.getInstance().sessionStorage)?void 0:t.getItem(e_.USER_COUNTRY))||"null")}catch(e){return null}},e.setUserCountryResponse=function(t){var n;null==(n=e.getInstance().sessionStorage)||n.setItem(e_.USER_COUNTRY,JSON.stringify(t))},e.setActionTypePerformed=function(t){var n;null==(n=e.getInstance().localStorage)||n.setItem(eC.INTERACTION_TYPE,t)},e.mapServices=function(e){return e.map(function(e){return{history:e.consent.history,id:e.id,processorId:e.processorId,status:e.consent.status}})},e.mapSettings=function(t,n){return{controllerId:t.controllerId,id:t.id,language:t.selectedLanguage,services:e.mapServices(n),version:t.version}}
1,e.migrateLegacySettings=function(t){if(!e.settingsExist()){var n,s,i=e.fetchLegacySettings();if(e.clearLegacySettings(),null==i?void 0:i[t]){var r=(n=i[t])&&eq(n.ucConsents.consents)?((s={})[eC.SETTINGS]={controllerId:n.ucConsents.consents[0].controllerId,id:n.usercentrics.settings.settingsId,language:n.usercentrics.settings.language,services:n.ucConsents.consents.map(function(e){return{history:e.history.map(function(e){return{action:ex(e.action),language:e.language,status:e.consentStatus,timestamp:e.updatedAt,type:eH(e.updatedBy),versions:{application:e.appVersion,service:e.consentTemplateVersion,settings:e.settingsVersion}}}),id:e.templateId,processorId:e.processorId,status:e.consentStatus}}),version:n.usercentrics.settings.version},s[eC.USER_INTERACTION]=n.usercentrics.firstUserInteraction.stateSaved,s):null;r&&(e.saveSettings(r[eC.SETTINGS]),r[eC.USER_INTERACTION]&&(e.setUserActionPerformed(!0),e.setActionTypePerformed("user")))}}},e.saveSettings=function(t,n){var s,i;if(null==(s=e.getInstance().localStorage)||s.setItem(eC.SETTINGS,JSON.stringify(t)),e.getInstance().getStoreServiceIdToNameMapping()&&n&&n.length){var r=n.reduce(function(e,t){return e[t.id]=t.name,e},{});null==(i=e.getInstance().localStorage)||i.setItem(eC.SERVICES,JSON.stringify(r))}eG.isCrossDomainAvailable()&&eG.setCrossDomainData(t).catch(function(){console.warn(eI.CROSS_DOMAIN_SET_DATA_FAILURE)})},e.saveTCFData=function(t){var n;null==(n=e.getInstance().localStorage)||n.setItem(eC.TCF,JSON.stringify(t)),eG.isCrossDomainAvailable()&&eG.setCrossDomainTcfData(t).catch(function(){console.warn(eI.CROSS_DOMAIN_SET_TCF_DATA_FAILURE)})},e.fetchGcmData=function(){var t,n=null==(t=e.getInstance().localStorage)?void 0:t.getItem(eC.GCM_DATA);return n?JSON.parse(n):null},e.saveGcmData=function(t){var n;null==(n=e.getInstance().localStorage)||n.setItem(eC.GCM_DATA,JSON.stringify(t))},e.saveTCString=function(t){var n=e.fetchTCFData();this.saveTCFData(F(F({},n),{tcString:t}))},e.setCcpaTimeStamp=function(t){var n,s=t||{ccpaString:this.getCcpaString()||"",timestamp:(new Date).getTime()};null==(n=e.getInstance().localStorage)||n.setItem(eC.CCPA_DATA,JSON.stringify(s))},e.getCcpaTimeStamp=function(){var e=this.getCcpaData();return e&&e.timestamp?e.timestamp:(new Date).getTime()},e.setCcpaString=function(t){var n;null==(n=e.getInstance().localStorage)||n.setItem(eC.CCPA,t),this.setCcpaTimeStamp()},e.settingsExist=function(){return eQ(e.fetchSettings())},e.setUserActionPerformed=function(t){var n,s;null==(n=e.getInstance().localStorage)||n.setItem(eC.USER_INTERACTION,JSON.stringify(t)),t&&(null==(s=e.getInstance().localStorage)||s.setItem(eC.INTERACTION_TYPE,"user"))},e.clearCcpa=function(){var t;this.clearCcpaData(),null==(t=e.getInstance().localStorage)||t.removeItem(eC.CCPA)},e.clearCcpaData=function(){var t;null==(t=e.getInstance().localStorage)||t.removeItem(eC.CCPA_DATA)},e.clearTcf=function(){var t;null==(t=e.getInstance().localStorage)||t.removeItem(eC.TCF)},e.clearGcm=function(){var t;null==(t=e.getInstance().localStorage)||t.removeItem(eC.GCM_DATA)},e.clear=function(){var t,n,s;e.clearCcpa(),e.clearTcf(),e.clearGcm(),null==(t=e.getInstance().localStorage)||t.removeItem(eC.SETTINGS),null==(n=e.getInstance().localStorage)||n.removeItem(eC.USER_INTERACTION),null==(s=e.getInstance().localStorage)||s.removeItem(eC.INTERACTION_TYPE)},e.clearAll=function(){return G(this,void 0,void 0,function(){return B(this,function(e){switch(e.label){case 0:return this.clear(),eG.isCrossDomainAvailable()?[4,eG.clearCrossDomainStorage()]:[3,2];case 1:e.sent(),e.label=2;case 2:return[2]}})})},e.fetchAbTestVariant=function(t){var n,s,i=(null==(n=e.getInstance().localStorage)?void 0:n.getItem(eC.AB_TEST_VARIANT))||"";if(t.includes(i))return i;var r=t[Math.floor(Math.random()*t.length)];return null==(s=e.getInstance().localStorage)||s.setItem(eC.AB_TEST_VARIANT,r),r},e.clearLegacySettings=function(){var t;null==(t=e.getInstance().localStorage)||t.removeItem(eC.LEGACY_SETTINGS)},e}(),eJ=function(e,t){return -1!==e.indexOf(t)},eW=function(){return"SDK-".concat(em)},eK=function(){return parseInt("3",10)},eq=function(e){return Array.isArray(e)&&e.length>0},eQ=function(e){return"object"===A(e)&&null!==e&&Object.keys(e).length>0},ez=function(e,t){if(void 0===t)throw Error("altElement of nullishOperation can not be undefined");return null!=e?e:t},eX=function(e,t,n,s,i,r){return{applicationVersion:eW(),consent:{action:n,status:t.consent.status,type:s},service:{categorySlug:i||"",id:t.id,name:t.name,processorId:t.processorId,version:t.version},settings:{controllerId:e.controllerId,id:e.id,language:e.selectedLanguage,referrerControllerId:ez(null==r?void 0:r.referrerControllerId,""),version:e.version},timestamp:ez(null==r?void 0:r.timestamp,(new Date).valueOf())}},e$=function(e){var t=e.dataTransferSettings,n=e.services,s=e.consentAction,i=e.consentString,r=e.isCcpa,o=e.isTcf,a=e.isAnalyticsEnabled,c=e.isConsentXDeviceEnabled,u=(void 0===n?[]:n).map(function(e){return{consentStatus:e.consent.status,consentTemplateId:e.id,consentTemplateVersion:e.version}}),l="",d="",h="";if(o){var p=eY.fetchTCFData(),g=p.acString,f=p.tcString,S=p.timestamp,v=p.vendors,E=p.vendorsDisclosed;d=ez(d?null==i?void 0:i.TCF2:f,""),h=JSON.stringify({timestamp:S,vendors:v,vendorsDisclosed:E}),g&&(l=g)}else r&&(d=ez(null==i?void 0:i.CCPA,""));return F(F(F(F(F({action:s,analytics:ez(a,!1),appVersion:eW().replace("SDK-","")},h&&{consentMeta:h}),{consents:u}),d&&{consentString:d}),l&&{acString:l}),{controllerId:t.controllerId,language:t.selectedLanguage,settingsId:t.
1id,settingsVersion:t.version,xdevice:ez(c,!1)})},eZ=function(e,t){return e.reduce(function(e,n){var s=t[n];if(!(null==s?void 0:s.name))return e;var i=s.name;return H(H([],x(e),!1),[{id:n,name:i}],!1)},[])};function e0(e){return H([],x(new Set(e)),!1)}var e1,e2,e3,e4,e6,e5,e7,e8,e9,te,tt,tn,ts,ti,tr=function(e){return e.filter(function(e){return["onAcceptAllServices","onDenyAllServices","onUpdateServices"].indexOf(e.action)>-1}).sort(function(e,t){return t.timestamp-e.timestamp})},to=function(e){return e&&"object"===A(e)},ta=function(e,t,n){void 0===n&&(n=!1);var s=F({},t);if(!to(s))throw Error("Source param should be an object");return to(e)&&Object.keys(e).forEach(function(t){var i,r,o,a,c,u=e[t],l=s[t];void 0!==l&&(s=Array.isArray(u)&&Array.isArray(l)?F(F({},s),n?((i={})[t]=(c=u.concat(l)).filter(function(e,t){return c.indexOf(e)===t}),i):((r={})[t]=u,r)):to(u)&&to(l)?F(F({},s),((o={})[t]=ta(F({},u),l),o)):F(F({},s),((a={})[t]=u,a)))}),s},tc=function(e,t,n,s){return void 0===n&&(n=2e4),void 0===s&&(s=5),new Promise(function(i,r){var o=setInterval(function(){e()&&(clearTimeout(a),clearInterval(o),i())},s),a=setTimeout(function(){clearTimeout(a),clearInterval(o),r(Error(t))},n)})},tu=function(e,t){for(var n=e.split("."),s=t.split("."),i=Math.min(n.length,s.length),r=0;r<i;r+=1){var o=Number(n[r])||0,a=Number(s[r])||0;if(o!==a)return o>a?1:-1}return s.length-n.length};(tl=e6||(e6={}))[tl.COOKIE=0]="COOKIE",tl[tl.WEB=1]="WEB",tl[tl.APP=2]="APP",(td=e5||(e5={})).LEFT="LEFT",td.CENTER="CENTER",td.RIGHT="RIGHT",(th=e7||(e7={})).CAT="CAT",th.SRV="SRV",(tp=e8||(e8={})).AVAILABLE_LANGUAGES_NOT_FOUND="Unable to find available languages using given settingsId and version.",tp.FETCH_ACM_VENDORS="Something went wrong while fetching the atp vendors.",tp.FETCH_AVAILABLE_LANGUAGES="Something went wrong while fetching the available languages.",tp.FETCH_DATA_PROCESSING_SERVICES="Something went wrong while fetching the data processing services.",tp.FETCH_LEGAL_BASIS="Something went wrong while fetching the legal data translations.",tp.FETCH_SETTINGS="Something went wrong while fetching the settings.",tp.FETCH_USER_CONSENTS="Something went wrong while fetching the user's consents.",tp.FETCH_USER_COUNTRY="Something went wrong while fetching the user's country.",tp.FETCH_USER_TCF_DATA="Something went wrong while fetching the user's tcf data.",tp.GENERATE_DATA_PROCESSING_SERVICES="Something went wrong while generating the data processing services.",tp.RULESET_NOT_FOUND="Config Map not found!",tp.TAGLOGGER="Tag logger API is being called just before browser unload, some browsers like firefox cancel the api call and throw the error.",tp.SAVE_CONSENTS="Something went wrong while saving user consents.",tp.SAVE_CONSENTS_RETRY="Number of retries exceeded for saving user consents.",tp.SETTINGS_NOT_FOUND="Unable to find settings using given settingsId and version.",tp.CUSTOM_REFERRER_NOT_VALID="A custom referrer was passed to setTrackingPixel but it is not a valid URL. Origin and pathname will be passed instead.",(tg=e9||(e9={})).US_CA_ONLY="US_CA_ONLY",tg.US="US",(tf=te||(te={}))[tf.FIRST_LAYER=1]="FIRST_LAYER",tf[tf.SECOND_LAYER=3]="SECOND_LAYER",(tS=tt||(tt={}))[tS.DATA_LAYER=1]="DATA_LAYER",tS[tS.WINDOW_EVENT=4]="WINDOW_EVENT",(tv=tn||(tn={})).DATA_COLLECTED_LIST="dataCollectedList",tv.DATA_PURPOSES_LIST="dataPurposesList",tv.DATA_RECIPIENTS_LIST="dataRecipientsList",tv.TECHNOLOGY_USED="technologyUsed",(tE=ts||(ts={})).MAJOR="major",tE.MINOR="minor",tE.PATCH="patch",(tI=ti||(ti={})).ICON="ICON",tI.LINK="LINK";var tl,td,th,tp,tg,tf,tS,tv,tE,tI,tT,tC={acceptAllButton:"Accept All",ccpaButton:"Agree to CCPA",ccpaMoreInformation:"More Information",closeButton:"Close",collapse:"Collapse",cookiePolicyButton:"Open Cookie Policy",copyControllerId:"Copy Controller ID",denyAllButton:"Deny all",expand:"Expand",fullscreenButton:"Enter full screen",imprintButton:"Open Imprint",languageSelector:"Select language",privacyButton:"Open",privacyPolicyButton:"Open Privacy Policy",saveButton:"Save",serviceInCategoryDetails:"View Service details",servicesInCategory:"List of Services in this category",tabButton:"Tab",usercentricsCard:"Card",usercentricsCMPButtons:"Footer including buttons",usercentricsCMPC
1ontent:"Content",usercentricsCMPHeader:"Header including language selection and external links",usercentricsCMPUI:"Consent Management Platform Interface",usercentricsList:"List",vendorConsentToggle:"Consent",vendorDetailedStorageInformation:"Detailed Storage Information",vendorLegIntToggle:"Legitimate Interest"},t_=function(e,t){return"boolean"==typeof e?e:t},ty=function(e){if(!e)return null;var t=e.startsWith("#")?e:"#".concat(e);return tA(t)?t:"#0045A5"},tA=function(e){return""!==e&&!!e&&/^#(?:[0-9a-fA-F]{3}){1,2}$/.test(e)},tm=function(e){if(null!=e.firstLayer.isOverlayEnabled)return e.firstLayer.isOverlayEnabled;var t=e.backgroundOverlay.find(function(e){var t;return(null==(t=e.target)?void 0:t[0])===te.FIRST_LAYER});return!!t&&(null==t?void 0:t.darken)>0},tO=function(e){if(null!=e.secondLayer.isOverlayEnabled)return e.secondLayer.isOverlayEnabled;var t=e.backgroundOverlay.find(function(e){var t;return(null==(t=e.target)?void 0:t[0])===te.SECOND_LAYER});return!!t&&(null==t?void 0:t.darken)>0},tN=function(e){return"number"!=typeof e&&("string"!=typeof e||e.includes("px"))?e:"".concat(e,"px")},tb=function(e){switch(e){case e5.CENTER:return"center";case e5.RIGHT:return"right";case e5.LEFT:default:return"left"}},tD={description:"",id:"",legalBasis:[],name:""},tR=function(e,t){return e.map(function(e){var n=t.find(function(t){return t.id===e.id});return F(F(F({},e),n||tD),{description:e.description||(null==n?void 0:n.description)||tD.description,id:e.id,subServices:tR(e.subServices,t)})})},tw=function(){return"https://www.usercentrics.com/consent-management-platform-powered-by-usercentrics/"},tL=function(e){return null!=e&&null!=e.region},tP=function(e){return null!=e&&null!=e.changedPurposes},tV=function(e){var t;return null!=e&&null!=(null==(t=e.buttons)?void 0:t.optOutNotice)},tU=function(e){return null!=e&&null!=e.vendor},tM=function(e){var t;return null!=e&&null!=(null==(t=e.buttons)?void 0:t.showSecondLayer)},tk=function(e){return null!=e&&(tV(e)||tM(e)||tU(e))},tF=function(e){var t,n;return null!=e&&null!=(null==(t=e.firstLayer)?void 0:t.showShortDescriptionOnMobile)&&null==(null==(n=e.firstLayer)?void 0:n.isCategoryTogglesEnabled)},tG=function(e){var t;return null!=e&&null!=(null==(t=e.firstLayer)?void 0:t.hideNonIabPurposes)},tB=function(e){var t;return null!=e&&null!=(null==(t=e.firstLayer)?void 0:t.isCategoryTogglesEnabled)},tx=function(){function e(){this.ampEnabled=!1}return e.getInstance=function(){return e.instance||(e.instance=new e),e.instance},e.resetInstance=function(){e.instance.ampEnabled=!1},e.prototype.isAmpEnabled=function(){return this.ampEnabled},e.prototype.setIsAmpEnabled=function(e){this.ampEnabled=e},e}(),tH="latest",tj={EU_URI:{AGGREGATOR:"https://aggregator.eu.usercentrics.eu/aggregate/",CDN:"https://config.eu.usercentrics.eu",FETCH_CONSENTS:"https://consents.eu.usercentrics.eu/consentsHistory",FETCH_CONSENTS_V2:"https://consent-rt-ret.service.consent.eu1.usercentrics.eu",FETCH_TCF_DATA:"https://consents.eu.usercentrics.eu/consentsHistoryTCF",FETCH_TCF_DATA_V2:"https://consents.eu.usercentrics.eu/consentState",GRAPHQL:"https://api.eu.usercentrics.eu/graphql",SAVE_CONSENTS_V2:"https://consent-api.service.consent.eu1.usercentrics.eu/consent",TRACK_EVENT:"https://uct.eu.usercentrics.eu/uct",TRACK_SESSION:"https://app.eu.usercentrics.eu/session/1px.png"},FOLDER:{RULESET:"ruleSet",SETTINGS:"settings",TEMPLATES:"consent-templates",TRANSLATIONS:"translations"},URI:{AGGREGATOR:"https://aggregator.service.usercentrics.eu/aggregate/",CDN:"https://api.usercentrics.eu",FETCH_CONSENTS:"https://consents.usercentrics.eu/consentsHistory",FETCH_CONSENTS_V2:"https://consent-rt-ret.service.consent.usercentrics.eu",FETCH_TCF_DATA:"https://consents.usercentrics.eu/consentsHistoryTCF",FETCH_TCF_DATA_V2:"https://consents.usercentrics.eu/consentState",GRAPHQL:"https://graphql.usercentrics.eu/graphql",RULESET:"https://api.usercentrics.eu",SAVE_CONSENTS_V2:"https://consent-api.service.consent.usercentrics.eu/consent",TRACK_EVENT:"https://uct.service.usercentrics.eu/uct",TRACK_SESSION:"https://app.usercentrics.eu/session/1px.png"}},tY={EU_URI:{AGGREGATOR:"https://aggregator.service.usercentrics-sandbox.eu/aggregate/",CDN:"https://api.usercentrics-sandbox.eu",FETCH_CONSENTS:"https://api-consent-sandbox-dot-usercentrics-playground.nw.r.appspot.com/consentsHistory",FETCH_CONSENTS_V2:"https://consent-rt-ret.service.consent.eu1.usercentrics-staging.eu",FETCH_TCF_DATA:"https://api-consent-sandbox-dot-usercentrics-playground.nw.r.appspot.com/consentsHistoryTCF",FETCH_TCF_DATA_V2:"https://api-consent-sandbox-dot-usercentrics-playground.nw.r.appspot.com/consentState",GRAPHQL:"https://api-v2-sandbox-consent-d
1ot-usercentrics-playground.nw.r.appspot.com/",SAVE_CONSENTS_V2:"https://consent-api.service.consent.eu1.usercentrics-staging.eu/consent",TRACK_EVENT:"https://uct.eu.usercentrics.eu/uct",TRACK_SESSION:"https://app.usercentrics-sandbox.eu/session/1px.png"},FOLDER:{RULESET:"ruleSet",SETTINGS:"settings",TEMPLATES:"consent-templates",TRANSLATIONS:"translations"},URI:{AGGREGATOR:"https://aggregator.service.usercentrics-sandbox.eu/aggregate/",CDN:"https://api.usercentrics-sandbox.eu",FETCH_CONSENTS:"https://api-consent-sandbox-dot-usercentrics-playground.nw.r.appspot.com/consentsHistory",FETCH_CONSENTS_V2:"https://consent-rt-ret.service.consent.usercentrics-staging.eu",FETCH_TCF_DATA:"https://api-consent-sandbox-dot-usercentrics-playground.nw.r.appspot.com/consentsHistoryTCF",FETCH_TCF_DATA_V2:"https://api-consent-sandbox-dot-usercentrics-playground.nw.r.appspot.com/consentState",GRAPHQL:"https://api-v2-sandbox-consent-dot-usercentrics-playground.nw.r.appspot.com/",RULESET:"https://api.usercentrics-sandbox.eu",SAVE_CONSENTS_V2:"https://consent-api.service.consent.usercentrics-staging.eu/consent",TRACK_EVENT:"https://uct.service.usercentrics.eu/uct",TRACK_SESSION:"https://app.usercentrics-sandbox.eu/session/1px.png"}},tJ=["onEssentialChange","onInitialPageLoad","onNonEURegion"],tW=["onSessionRestored","onMobileSessionRestore"],tK=function(e,t,n){return G(void 0,void 0,void 0,function(){return B(this,function(s){return[2,tQ(e,t,null,n)]})})},tq=function(e,t,n,s){return G(void 0,void 0,void 0,function(){return B(this,function(i){return[2,tQ(e,n,t,s)]})})},tQ=function(e,t,n,s){return G(void 0,void 0,void 0,function(){var i,r;return B(this,function(o){return i={"Content-Type":"application/json"},r=F(F({},s),{headers:i,method:n?"POST":"GET"}),n&&(r.body=JSON.stringify(n)),(null==s?void 0:s.headers)&&(r.headers=F(F({},i),s.headers)),[2,fetch(e,r).then(function(e){return G(void 0,void 0,void 0,function(){return B(this,function(n){if(e.ok)return[2,tX(e)];throw tz(t,e.status)})})})]})})},tz=function(e,t){return{errorMessage:e,statusCode:t}},tX=function(e){return G(void 0,void 0,void 0,function(){return B(this,function(t){switch(t.label){case 0:return[4,t$(e)];case 1:return[2,{data:t.sent(),location:e.headers.get("x-client-geo-location"),statusCode:e.status}]}})})},t$=function(e){return G(void 0,void 0,void 0,function(){var t,n;return B(this,function(s){switch(s.label){case 0:return[4,e.text()];case 1:return[2,(n=""===(t=s.sent())?{}:JSON.parse(t)).data||n]}})})};(tZ=tT||(tT={}))[tZ.RESOURCE_NOT_FOUND=403]="RESOURCE_NOT_FOUND";var tZ,t0,t1="u">typeof globalThis?globalThis:"u">typeof window?window:void 0!==n.g?n.g:"u">typeof self?self:{},t2={exports:{}},t3={exports:{}};t3.exports=t0=t0||function(e){if("u">typeof window&&window.crypto&&(t=window.crypto),"u">typeof self&&self.crypto&&(t=self.crypto),"u">typeof globalThis&&globalThis.crypto&&(t=globalThis.crypto),!t&&"u">typeof window&&window.msCrypto&&(t=window.msCrypto),!t&&void 0!==t1&&t1.crypto&&(t=t1.crypto),!t)try{t=n(48513)}catch(e){}var t,s=function(){if(t){if("function"==typeof t.getRandomValues)try{return t.getRandomValues(new Uint32Array(1))[0]}catch(e){}if("function"==typeof t.randomBytes)try{return t.randomBytes(4).readInt32LE()}catch(e){}}throw Error("Native crypto module could not be used to get secure random number.")},i=Object.create||function(){function e(){}return function(t){var n;return e.prototype=t,n=new e,e.prototype=null,n}}(),r={},o=r.lib={},a=o.Base={extend:function(e){var t=i(this);return e&&t.mixIn(e),t.hasOwnProperty("init")&&this.init!==t.init||(t.init=function(){t.$super.init.apply(this,arguments)}),t.init.prototype=t,t.$super=this,t},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}},c=o.WordArray=a.extend({init:function(e,t){e=this.words=e||[],this.sigBytes=void 0!=t?t:4*e.length},toString:function(e){return(e||l).stringify(this)},concat:function(e){var t=this.words,n=e.words,s=this.sigBytes,i=e.sigBytes;if(this.clamp(),s%4)for(var r=0;r<i;r++){var o=n[r>>>2]>>>24-r%4*8&255;t[s+r>>>2]|=o<<24-(s+r)%4*8}else for(var a=0;a<i;a+=4)t[s+a>>>2]=n[a>>>2];return this.sigBytes+=i,this},clamp:function(){var t=this.words,n=this.sigBytes;t[n>>>2]&=0xffffffff<<32-n%4*8,t.length=e.ceil(n/4)},clone:function(){var e=a.clone.call(this);return e.words=this.words.slice(0),e},random:function(e){for(var t=[],n=0;n<e;n+=4)t.push(s());return new c.init(t,e)}}),u=r.enc={},l=u.Hex={stringify:function(e){for(var t=e.words,n=e.sigBytes,s=[],i=0;i<n;i++){var r=t[i>>>2]>>>24-i%4*8&255;s.push((r>>>4).toString(16)),s.push((15&r).toString(16))}return s.join("")},parse:function(e){for(var t=e.length,n=[],s=0;s<t;s+=2)n[s>>>3]|=parseInt(e.substr(s,2),16)<<24-s%8*4;return new c.init(n,t/2)}},d=u.Latin1={stringify:function(e){for(var t=e.words,n=e.sigBytes,s=[],i=0;i<n;i++){var r=t[i>>>2]>>>24-i%4*8&255;s.push(String.fromCharCode(r))}return s.join("")},parse:function(e){for(var t=e.length,n=[],s=0;s<t;s++)n[s>>>2]|=(255&e.charCodeAt(s))<<24-s%4*8;return new c.init(n,t)}},h=u.Utf8={stringify:function(e){try{return decodeURIComponent(escape(d.stringify(e)))}catch(e){throw Error("Malformed UTF-8 data")}},parse:function(e){return d.parse(unescape(encodeURIComponent(e)))}},p=o.BufferedBlockAlgorithm=a.extend({reset:function(){this._data=new c.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=h.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var n,s=this._data,i=s.words,r=s.sigBytes,o=this.blockSize,a=r/(4*o),u=(a=t?e.ceil(a):e.max((0|a)-this._minBufferSize,0))*o,l=e.min(4*u,r);if(u){for(var d=0;d<u;d+=o)this._doProcessBlock(i,d);n=i.splice(0,u),s.sigBytes-=l}return new c.init(n,l)},clone:function(){var e=a.clone.call(this);return e._data=this._data.clone(),e},_minBufferSize:0});o.Hasher=p.extend({cfg:a.extend(),init:function(e){this.cfg=this.cfg.extend(e),this.reset()},reset:function(){p.reset.call(this),this._doReset()},update:function(e){return this._append(e),this._process(),this},finalize:function(e){return e&&this._append(e),this._doFinalize()},blockSize:16,_createHelper:function(e){return function(t,n){return new e.init(n).finalize(t)}},_createHmacHelper:function(e){return function(t,n){return new g.HMAC.init(e,n).finalize(t)}}});var g=r.algo={};return r}(Math),t4=t3.exports,function(e){var t=t4.lib,n=t.WordArray,s=t.Hasher,i=t4.algo,r=[],o=[];function a(e){return 0x100000000*(e-(0|e))|0}for(var c=2,u=0;u<64;)(function(t){for(var n=e.sqrt(t),s=2;s<=n;
1s++)if(!(t%s))return!1;return!0})(c)&&(u<8&&(r[u]=a(e.pow(c,.5))),o[u]=a(e.pow(c,1/3)),u++),c++;var l=[],d=i.SHA256=s.extend({_doReset:function(){this._hash=new n.init(r.slice(0))},_doProcessBlock:function(e,t){for(var n=this._hash.words,s=n[0],i=n[1],r=n[2],a=n[3],c=n[4],u=n[5],d=n[6],h=n[7],p=0;p<64;p++){if(p<16)l[p]=0|e[t+p];else{var g=l[p-15],f=(g<<25|g>>>7)^(g<<14|g>>>18)^g>>>3,S=l[p-2],v=(S<<15|S>>>17)^(S<<13|S>>>19)^S>>>10;l[p]=f+l[p-7]+v+l[p-16]}var E=s&i^s&r^i&r,I=(s<<30|s>>>2)^(s<<19|s>>>13)^(s<<10|s>>>22),T=h+((c<<26|c>>>6)^(c<<21|c>>>11)^(c<<7|c>>>25))+(c&u^~c&d)+o[p]+l[p];h=d,d=u,u=c,c=a+T|0,a=r,r=i,i=s,s=T+(I+E)|0}n[0]=n[0]+s|0,n[1]=n[1]+i|0,n[2]=n[2]+r|0,n[3]=n[3]+a|0,n[4]=n[4]+c|0,n[5]=n[5]+u|0,n[6]=n[6]+d|0,n[7]=n[7]+h|0},_doFinalize:function(){var t=this._data,n=t.words,s=8*this._nDataBytes,i=8*t.sigBytes;return n[i>>>5]|=128<<24-i%32,n[14+(i+64>>>9<<4)]=e.floor(s/0x100000000),n[15+(i+64>>>9<<4)]=s,t.sigBytes=4*n.length,this._process(),this._hash},clone:function(){var e=s.clone.call(this);return e._hash=this._hash.clone(),e}});t4.SHA256=s._createHelper(d),t4.HmacSHA256=s._createHmacHelper(d)}(Math),t2.exports=t4.SHA256;for(var t4,t6,t5=t2.exports,t7=new Uint8Array(16),t8=[],t9=0;t9<256;++t9)t8.push((t9+256).toString(16).slice(1));var ne={randomUUID:"u">typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function nt(e,t,n){if(ne.randomUUID&&!t&&!e)return ne.randomUUID();var s=(e=e||{}).random||(e.rng||function(){if(!t6&&!(t6="u">typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)))throw Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return t6(t7)})();if(s[6]=15&s[6]|64,s[8]=63&s[8]|128,t){n=n||0;for(var i=0;i<16;++i)t[n+i]=s[i];return t}return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return t8[e[t+0]]+t8[e[t+1]]+t8[e[t+2]]+t8[e[t+3]]+"-"+t8[e[t+4]]+t8[e[t+5]]+"-"+t8[e[t+6]]+t8[e[t+7]]+"-"+t8[e[t+8]]+t8[e[t+9]]+"-"+t8[e[t+10]]+t8[e[t+11]]+t8[e[t+12]]+t8[e[t+13]]+t8[e[t+14]]+t8[e[t+15]]}(s)}var nn=function(){function e(){this.needsSessionRestore=!1,this.controllerId=""}return e.getInstance=function(){return e.instance||(e.instance=new e),e.instance},e.resetInstance=function(){e.instance.controllerId=""},Object.defineProperty(e.prototype,"value",{get:function(){return this.controllerId},set:function(e){this.controllerId=e},enumerable:!1,configurable:!0}),e.prototype.setControllerIdByResolvedSettingsId=function(e,t){var n=t.find(function(t){return e===t.settingsId});n&&(this.value=n.controllerId)},e.prototype.setNeedSessionRestore=function(){this.needsSessionRestore=""!==this.controllerId},e.prototype.init=function(){if(""===this.controllerId){var e=this.getStorageControllerId();this.controllerId=e||this.generateControllerId()}},e.prototype.generateControllerId=function(){return"".concat(t5(nt()))},e.prototype.getStorageControllerId=function(){return eY.fetchControllerId()},e}(),ns=["AT","BE","BG","CY","CZ","DE","DK","EE","ES","FI","FR","GR","HR","HU","IE","IT","IS","LI","LT","LU","LV","MT","NL","NO","PL","PT","RO","SE","SI","SK"],ni=function(){function e(){this.userCountryData={},this.convertUserCountryString=function(e){var t=null==e?void 0:e.split(","),n=t&&t[0]?t[0]:"DE";return{countryCode:n,countryName:n||"Germany (default)",regionCode:t&&t[1]&&t[1].length>=3?t[1].substring(2):""}}}return e.getInstance=function(){return e.instance||(e.instance=new e),e.instance},e.resetInstance=function(){e.instance.userCountryData={}},e.prototype.setUserCountryData=function(e){this.userCountryData=e},e.prototype.getUserCountryData=function(){return G(this,void 0,void 0,function(){return B(this,function(e){return[2,this.userCountryData]})})},e.prototype.getIsUserInCalifornia=function(){return G(this,void 0,void 0,function(){return B(this,function(e){return[2,this.getIsUserInUS("CA")]})})},e.prototype.getIsUserInEU=function(){return G(this,void 0,void 0,function(){return B(this,function(e){switch(e.label){case 0:return[4,this.getUserCountryData()];case 1:return[2,eJ(ns,e.sent().code.toUpperCase())]}})})},e.prototype.getIsUserInUS=function(e){return G(this,void 0,void 0,function(){var t,n;return B(this,function(s){switch(s.label){case 0:return[4,this.getUserCountryData()];case 1:return(n=(t=s.sent()).regionCode).length>2&&(n=n.slice(2)),[2,"US"===t.code&&(!e||n===e)]}})})},e.prototype.resolveLocation=function(t){return G(this,void 0,void 0,function(){var n;return B(this,function(s){switch(s.label){case 0:return n=this.convertUserCountryString(t),[4,e.getInstance().getUserCountryData()];case 1:return eQ(s.sent())||(eY.setUserCountryResponse(n),this.setUserCountryData({code:n.countryCode,name:n.countryName,regionCode:n.regionCode})),[2]}})})},e.mapUserCountryData=function(e){return{countryCode:e.code,countryName:e.n
1ame,regionCode:e.regionCode}},e}(),nr={numOfAttempts:7,onFirstFail:function(){},onFirstRetriedSuccess:function(){},startingDelay:100,timeMultiple:2};function no(e,t){return void 0===t&&(t={}),G(this,void 0,void 0,function(){return B(this,function(n){switch(n.label){case 0:var s,i;return s=t,(i=F(F({},nr),s)).numOfAttempts<1&&(i.numOfAttempts=1),[4,new nc(e,i).execute()];case 1:return[2,n.sent()]}})})}var na,nc=function(){function e(e,t){this.request=e,this.options=t,this.attemptNumber=0}return e.prototype.execute=function(){return G(this,void 0,void 0,function(){var e,t;return B(this,function(n){switch(n.label){case 0:if(this.attemptLimitReached)return[3,7];n.label=1;case 1:return n.trys.push([1,5,,6]),this.attemptNumber?[4,this.wait(this.delay)]:[3,3];case 2:n.sent(),n.label=3;case 3:return[4,this.request()];case 4:return e=n.sent(),this.attemptNumber&&this.options.onFirstRetriedSuccess(),[2,e];case 5:if(t=n.sent(),this.attemptNumber||this.options.onFirstFail(),this.attemptNumber+=1,this.attemptLimitReached)throw t;return[3,6];case 6:return[3,0];case 7:throw Error("Something went wrong.")}})})},Object.defineProperty(e.prototype,"attemptLimitReached",{get:function(){return this.attemptNumber>=this.options.numOfAttempts},enumerable:!1,configurable:!0}),e.prototype.wait=function(e){return new Promise(function(t){return setTimeout(t,e)})},Object.defineProperty(e.prototype,"delay",{get:function(){return this.options.startingDelay*Math.pow(this.options.timeMultiple,this.attemptNumber)},enumerable:!1,configurable:!0}),e}(),nu=function(e){if(!e)return[];var t,n,s=e.reduce(function(e,t){return H(H([],x(e),!1),[{id:t.templateId,version:t.version}],!1)},[]);return(t=function(e,t){return e.id===t.id&&e.version===t.version},n=[],s.forEach(function(e){-1===n.findIndex(function(n){return t(e,n)})&&n.push(e)}),n).sort(function(e,t){return e.id>t.id?1:-1})},nl=function(){function e(){this.API=tj,this.abTestVariant="",this.controllerIdInstance=nn.getInstance(),this.jsonCacheBustingString="",this.jsonFileLanguage="",this.jsonFileVersion=tH,this.settingsId="",this.rulesetId="",this.useEuCdn=!1,this.disableServerConsents=!1,this.aggregatedServicesCache=null,this.translationsCache=null}return e.getInstance=function(){return e.instance||(e.instance=new e),e.instance},e.resetInstance=function(){e.instance.jsonCacheBustingString="",e.instance.jsonFileLanguage="",e.instance.jsonFileVersion=tH,e.instance.settingsId="",e.instance.disableServerConsents=!1},e.prototype.resetAggregatedServicesCache=function(){this.aggregatedServicesCache=null},e.prototype.resetTranslationsCache=function(){this.translationsCache=null},e.prototype.getAbTestVariant=function(){return this.abTestVariant},e.prototype.getJsonFileLanguage=function(){return this.jsonFileLanguage},e.prototype.getJsonFileVersion=function(){return this.jsonFileVersion},e.prototype.getSettingsId=function(){return this.settingsId},e.prototype.getRulesetId=function(){return this.rulesetId},e.prototype.getDisableServerConsents=function(){return this.disableServerConsents},e.prototype.setJsonCacheBustingString=function(e){this.jsonCacheBustingString=e},e.prototype.setJsonFileLanguage=function(e){this.jsonFileLanguage=e},e.prototype.setJsonFileVersion=function(e){this.jsonFileVersion=e},e.prototype.setDisableServerConsents=function(e){this.disableServerConsents=e},e.prototype.setDomains=function(e,t){this.API=e?tY:t?{EU_URI:{AGGREGATOR:tj.EU_URI.AGGREGATOR,CDN:tj.EU_URI.CDN,FETCH_CONSENTS:tj.EU_URI.FETCH_CONSENTS,FETCH_CONSENTS_V2:tj.EU_URI.FETCH_CONSENTS_V2,FETCH_TCF_DATA:tj.EU_URI.FETCH_TCF_DATA,FETCH_TCF_DATA_V2:tj.EU_URI.FETCH_TCF_DATA_V2,GRAPHQL:tj.EU_URI.GRAPHQL,SAVE_CONSENTS_V2:tj.EU_URI.SAVE_CONSENTS_V2,TRACK_EVENT:tj.EU_URI.TRACK_EVENT,TRACK_SESSION:tj.EU_URI.TRACK_SESSION},FOLDER:{RULESET:"ruleSet",SETTINGS:"settings",TEMPLATES:"consent-templates",TRANSLATIONS:"translations"},URI:F(F({AGGREGATOR:""!==t.aggregator?"".concat(t.aggregator,"/aggregate/"):tj.URI.AGGREGATOR,CDN:""!==t.cdn?t.cdn:tj.URI.CDN,RULESET:tj.URI.RULESET},""!==t.consents?{FETCH_CONSENTS:"".concat(t.consents,"/consentsHistory"),FETCH_CONSENTS_V2:"".concat(t.consents),FETCH_TCF_DATA:"".concat(t.consents,"/consentsHistoryTCF"),FETCH_TCF_DATA_V2:"".concat(t.consents,"/consentState")}:{FETCH_CONSENTS:tj.URI.FETCH_CONSENTS,FETCH_CONSENTS_V2:tj.URI.FETCH_CONSENTS_V2,FETCH_TCF_DATA:tj.URI.FETCH_TCF_DATA,FETCH_TCF_DATA_V2:tj.URI.FETCH_TCF_DATA_V2}),{GRAPHQL:""!==t.graphql?"".concat(t.graphql,"/graphql"):tj.URI.GRAPHQL,SAVE_CONSENTS_V2:""!==t.consentsV2?"".concat(t.consentsV2,"/consent"):tj.URI.SAVE_CONSENTS_V2,TRACK_EVENT:""!==t.trackingEvent?"".concat(t.trackingEvent,"/uct"):tj.URI.TRACK_EVENT,TRACK_SESSION:""!==t.app?"".concat(t.app,"/session/1px.png"):tj.URI.TRACK_SESSION})}:tj},e.prototype.setSettingsId=function(e){this.settingsId=e},e.prototype.setRulesetId=function(e){this.rulesetId=e},e.prototype.setEuMode=function(e){this.useEuCdn=e},e.prototype.isEuMode=function(){return this.useEuCdn},e.prototype.getAggregatorUri=function(){return this.isEuMode()?this.API.EU_URI.AGGREGATOR:this.API.URI.AGGREGATOR},e.prototype.getCdnUri=function(){return this.isEuMode()?this.API.EU_URI.CDN:this.API.URI.CDN},e.prototype.getGraphQLUri=function(){return this.isEuMode()?this.API.EU_URI.GRAPHQL:this.API.URI.GRAPHQL},e.prototype.getTcfDataV2Uri=function(){return this.isEuMode()?this.API.EU_URI.FETCH_TCF_DATA_V2:this.API.URI.FETCH_TCF_DATA_V2},e.prototype.fetchAggregatedServices=function(e,t){return void 0===t&&(t=!0),G(this,void 0,void 0,function(){var n;return B(this,function(s){switch(s.label){case 0:return this.aggregatedServicesCache&&t?[2,this.aggregatedServicesCache]:[4,tK("".concat(this.getAggregatorUri()).concat(this.jsonFileLanguage,"?templates=").concat(e.map(function(e){return"".concat(e.id,"@").concat(e.version)}).join(",")),e8.GENERATE_DATA_PROCESSING_SERVICES)];case 1:return n=s.sent(),t&&(this.aggregatedServicesCache=n.data.templates),[2,n.data.templates]}})})},e.prototype.fetchRuleset=function(){var e;return G(this,void 0,void 0,function(){var t,n,s;return B(this,function(i){switch(i.label){case 0:return i.trys.push([0,2,,3]),[4,tK(this.createRulesetUrl(),e8.RULESET_NOT_FOUND)];case 1:return n=null==(e=(t=i.sent()).location)?void 0:e.split(","),[2,{defaultRule:t.data.defaultRule,description:t.data.description,location:{code:n?n[0]:"",name:t.location||"",regionCode:n&&n[1]?n[1]:""},rules:t.data.rules}];case 2:throw(s=i.sent()).statusCode&&s.statusCode===tT.RESOURCE_NOT_FOUND&&(s.errorMessage=e8.RULESET_NOT_FOUND),s;case 3:return[2]}})})},e.prototype.fetchAvailableLanguages=function(){return G(this,void 0,void 0,function(){var e,t;return B(this,function(n){switch(n.label){case 0:return n.trys.push([0,3,,4]),[4,tK(this.createAvailableLanguagesUrl(),e8.FETCH_AVAILABLE_LANGUAGES)];case 1:return e=n.sent(),[4,ni.getInstance().resolveLocation(e.location)];case 2:return n.sent(),[2,e.data.languagesAvailable];case 3:throw(t=n.sent()).statusCode&&t.statusCode===tT.RESOURCE_NOT_FOUND&&(t.errorMessage=e8.AVAILABLE_LANGUAGES_NOT_FOUND),t;case 4:return[2]}})})},e.prototype.fetchTranslations=function(){return G(this,void 0,void 0,function(){var e,t;return B(this,function(n){switch(n.label){case 0:if(this.translationsCache)return[2,this.translationsCache];n.label=1;case 1:return n.trys.push([1,3,,4]),[4,tK(this.createLanguagesUrl(),e8.FETCH_LEGAL_BASIS)];case 2:return e=n.sent(),this.translationsCache=e.data,[2,e.data];case 3:return(t=n.sent()).statusCode&&t.statusCode===tT.RESOURCE_NOT_FOUND&&(t.errorMessage=e8.FETCH_LEGAL_BASIS),[2,null];case 4:return[2]}})})},e.prototype.mergeAbVariant=function(e){return G(this,void 0,void 0,function(){var t,n;return B(this,function(s){switch(s.label){case 0:if(t=JSON.parse(e.data.variants.experiments),"UC"===e.data.variants.activateWith)return n=Object.keys(t),this.abTestVariant=eY.fetchAbTestVariant(n),[2,ta(t[this.abTestVariant],e.data)];s.label=1;case 1:return s.trys.push([1,3,,4]),[4,tc(function(){return!!window.UC_AB_VARIANT},"window.UC_AB_VARIANT is not defined",2e3)];case 2:return s.sent(),[3,4];case 3:return console.warn(s.sent()),[3,4];case 4:return window.UC_AB_VARIANT&&t&&t[window.UC_AB_VARIANT]?(this.abTestVariant=window.UC_AB_VARIANT,[2,ta(t[window.UC_AB_VARIANT],e.data)]):[2,e.data]}})})},e.prototype.fetchAcmVendors=function(){return G(this,void 0,void 0,function(){return B(this,function(e){switch(e.label){case 0:return[4,tK(this.createAcmVendorsJsonUrl(),e8.FETCH_ACM_VENDORS)];case 1:return[2,e.sent().data]}})})},e.prototype.fetchSettingsJson=function(){return G(this,void 0,void 0,function(){var e,t;return B(this,function(n){switch(n.label){case 0:return n.trys.push([0,4,,5]),[4,tK(this.createSettingsJsonUrl(),e8.FETCH_SETTINGS)];case 1:return e=n.sent(),["ccpa","firstLayer","secondLayer"].forEach(function(t){e.data[t]||(e.data[t]={})}),e.data.tcf2&&(e.data.tcf2.selectedVendorIds=(e.data.tcf2.selectedVendorIds||[]).sort(function(e,t){return e-t})),e.data.consentTemplates&&(e.data.consentTemplates=e.data.consentTemplates.reduce(function(e,t){return t.isDeactivated||e.push(t),e},[])),e.data.variants&&e.data.variants.enabled&&function(e,t){try{JSON.parse(e)}catch(n){return console.warn("Invalid JSON string from ".concat(t,': "').concat(e,'"')),!1}return!0}(e.data.variants.experiments,"A/B Testing")?[4,this.mergeAbVariant(e)]:[3,3];case 2:return[2,n.sent()];case 3:return[2,e.data];case 4:throw(t=n.sent()).statusCode&&t.statusCode===tT.RESOURCE_NOT_FOUND&&(t.errorMessage=e8.SETTINGS_NOT_FOUND),t;case 5:return[2]}})})},e.prototype.fetchUserConsents=function(){return G(this,void 0,void 0,function(){return B(this,function(e){switch(e.label){case 0:return this.getDisableServerConsents()?[3,2]:[4,tK(this.createFetchUserConsentsUrl(),e8.FETCH_USER_CONSENTS)];case 1:return[2,e.sent().data.reverse()];case 2:return[2,[]]}})})},e.prototype.fetchUserConsentsV2=function(e,t){return G(this,void 0,void 0,function(){var n,s,i,r,o,a;return B(this,function(c){switch(c.label){case 0:return n=function(e){return H(H([],x(tJ),!1),x(tW),!1).includes(e)?"implicit":"explicit"},this.getDisableServerConsents()?[3,2]:[4,tK(this.createFetchUserConsentsV2Url(),e8.FETCH_USER_CONSENTS)];case 1:return s=c.sent().data,i=null,r=null,e&&(o=JSON.parse(s.consentMeta),i={acString:s.acString||"",tcString:s.consentString,timestamp:o.timestamp,vendors:o.vendors,vendorsDisclosed:o.vendorsDisclosed}),t&&(r={ccpaString:s.consentString,timestamp:s.timestamp||Date.now()}),a=s.consents.reduce(function(e,t){return H(H([],x(e),!1),[{action:s.action,consentId:"",settingsVersion:s.settingsVersion,status:t.consentStatus,templateId:t.consentTemplateId,timestamp:s.timestamp||Date.now(),updatedBy:n(s.action)}],!1)},[]),[2,F(F({consents:a},r&&{ccpa:r}),i&&{tcf:i})];case 2:return[2,null]}})})},e.prototype.fetchUserTcfData=function(){return G(this,void 0,void 0,function(){var e,t,n;return B(this,function(s){switch(s.label){case 0:return this.getDisableServerConsents()?[3,2]:[4,tK(this.createFetchUserTcfDataUrl(),e8.FETCH_USER_TCF_DATA)];case 1:return t=(e=s.sent().data).tcString,n=e.meta,[2,F({tcString:t},JSON.parse(n)||{})];case 2:return[2,null]}})})},e.prototype.fetchUserTcfDataV2=function(){return G(this,void 0,void 0,function(){var e,t,n,s;return B(this,function(i){switch(i.label){case 0:return[4,tK(this.createFetchUserTcfDataV2Url(),e8.FETCH_USER_TCF_DATA)];case 1:if((e=i.sent()).data&&e.data.tcf2)return n=(t=e.data.tcf2).tcString,s=t.meta,[2,F({tcString:n},JSON.parse(s)||{})];throw Error(e8.FETCH_USER_TCF_DATA)}})})},e.prototype.fetchVendorsList=function(e,t){return G(this,void 0,void 0,function(){return B(this,function(n){return[2,fetch(e).then(function(e){return e.json()}).then(function(e){return(null==t?void 0:t.length)&&(e.purposes=Object.entries(e.purposes).reduce(function(e,n){var s,i=x(n,2),r=i[0],o=i[1];return F(F({},e),-1===t.indexOf(parseInt(r,10))&&((s={})[r]=o,s))},{}),e.vendors=Object.entries(e.vendors).reduce(function(e,n){var s,i=x(n,2),r=i[0],o=i[1];return F(F({},e),((s={})[r]=F(F({},o),{flexiblePurposes:o.flexiblePurposes.filter(function(e){return -1===t.indexOf(e)}),legIntPurposes:o.legIntPurposes.filter(function(e){return -1===t.indexOf(e)}),purposes:o.purposes.filter(function(e){return -1===t.indexOf(e)})}),s))},{})),e})]})})},e.prototype.saveTCFConsents=function(e,t,n,s,i,r){return G(this,void 0,void 0,function(){var o,a,c,u,l,d,h;return B(this,function(p){switch(p.label){case 0:return o={consent:{status:!0},id:"tcf2",name:"tcf2",processorId:"abcd",version:"1.0.0"},a=t.tcString,c=function(e,t){var n={};for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&0>t.indexOf(s)&&(n[s]=e[s]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(s=Object.getOwnPropertySymbols(e);i<s.length;i++)0>t.indexOf(s[i])&&Object.prototype.propertyIsEnumerable.call(e,s[i])&&(n[s[i]]=e[s[i]])}return n}(t,["tcString"]),u=[],r&&(l=eX(e,o,n,s),d={consentMeta:{TCF2:JSON.stringify(c)},consentString:{TCF2:a},dataTransferObjects:[l]}
1,u.push(this.saveConsentsV1_DEPRECATED(d))),i&&(h=e$({consentAction:n,consentString:{TCF2:a},dataTransferSettings:e,isAnalyticsEnabled:!0===i.isAnalyticsEnabled,isCcpa:!1,isConsentXDeviceEnabled:!0===i.isConsentAPIv2Enabled,isTcf:!0}),u.push(this.saveConsents(h))),[4,Promise.all(u)];case 1:return p.sent(),[2]}})})},e.prototype.saveConsentsV1_DEPRECATED=function(e){return G(this,void 0,void 0,function(){var t,n,s,i=this;return B(this,function(r){switch(r.label){case 0:if(this.getDisableServerConsents())return[3,4];t=nd(),n=nh(e),r.label=1;case 1:return r.trys.push([1,3,,4]),[4,no(function(){return tq(i.getGraphQLUri(),n,e8.SAVE_CONSENTS,t)},{onFirstFail:function(){return eY.appendToConsentsBuffer(e)},onFirstRetriedSuccess:function(){var t=eY.findBufferItem(e);t&&eY.removeConsentsBufferItem(t)}})];case 2:return r.sent(),[3,4];case 3:return(s=r.sent())instanceof Error&&console.error("".concat(e8.SAVE_CONSENTS_RETRY,": ").concat(s.message)),console.error(e8.SAVE_CONSENTS_RETRY),[3,4];case 4:return[2]}})})},e.prototype.saveConsents=function(e){return G(this,void 0,void 0,function(){var t,n,s,i;return B(this,function(r){switch(r.label){case 0:if(this.getDisableServerConsents())return[3,4];t=this.createSaveConsentsV2Url(),n=e,s=nd(),r.label=1;case 1:return r.trys.push([1,3,,4]),[4,no(function(){return tq(t,n,e8.SAVE_CONSENTS,s)},{onFirstFail:function(){return eY.appendToConsentsV2Buffer(e)},onFirstRetriedSuccess:function(){var t=eY.findV2BufferItem(e);t&&eY.removeConsentsV2BufferItem(t)}})];case 2:return r.sent(),[3,4];case 3:return(i=r.sent())instanceof Error&&console.error("".concat(e8.SAVE_CONSENTS_RETRY,": ").concat(i.message)),console.error(e8.SAVE_CONSENTS_RETRY),[3,4];case 4:return[2]}})})},e.prototype.sendConsents=function(e,t){return tq(this.getGraphQLUri(),e,e8.SAVE_CONSENTS,t)},e.prototype.sendConsentsV2=function(e,t){return tq(this.createSaveConsentsV2Url(),e,e8.SAVE_CONSENTS,t)},e.prototype.saveConsentsFromBuffer=function(){var e,t,n,s;return G(this,void 0,void 0,function(){var i,r,o,a,c,u=this;return B(this,function(l){switch(l.label){case 0:if(this.getDisableServerConsents()||!Array.isArray(i=eY.fetchConsentsBuffer())||!i.length)return[3,13];l.label=1;case 1:l.trys.push([1,7,8,13]),r=function(){var e,t,n,i;return B(this,function(r){switch(r.label){case 0:s=c.value,o=!1,r.label=1;case 1:r.trys.push([1,,6,7]),e=s,t=nd(),n=nh(e.consents),r.label=2;case 2:return r.trys.push([2,4,,5]),[4,no(function(){return u.sendConsents(n,t)})];case 3:return r.sent(),eY.removeConsentsBufferItem(e),[3,5];case 4:return(i=r.sent())instanceof Error&&console.error("".concat(e8.SAVE_CONSENTS_RETRY,": ").concat(i.message)),console.error(e8.SAVE_CONSENTS_RETRY),[3,5];case 5:return[3,7];case 6:return o=!0,[7];case 7:return[2]}})},o=!0,a=j(i),l.label=2;case 2:return[4,a.next()];case 3:return(e=(c=l.sent()).done)?[3,6]:[5,r()];case 4:l.sent(),l.label=5;case 5:return[3,2];case 6:return[3,13];case 7:return t={error:l.sent()},[3,13];case 8:return l.trys.push([8,,11,12]),!o&&!e&&(n=a.return)?[4,n.call(a)]:[3,10];case 9:l.sent(),l.label=10;case 10:return[3,12];case 11:if(t)throw t.error;return[7];case 12:return[7];case 13:return[2]}})})},e.prototype.saveConsentsV2FromBuffer=function(){var e,t,n,s;return G(this,void 0,void 0,function(){var i,r,o,a,c,u=this;return B(this,function(l){switch(l.label){case 0:if(this.getDisableServerConsents()||!Array.isArray(i=eY.fetchConsentsV2Buffer())||!i.length)return[3,13];l.label=1;case 1:l.trys.push([1,7,8,13]),r=function(){var e,t,n,i;return B(this,function(r){switch(r.label){case 0:s=c.value,o=!1,r.label=1;case 1:r.trys.push([1,,6,7]),e=s,t=nd(),n=e.consents,r.label=2;case 2:return r.trys.push([2,4,,5]),[4,no(function(){return u.sendConsentsV2(n,t)})];case 3:return r.sent(),eY.removeConsentsV2BufferItem(e),[3,5];case 4:return(i=r.sent())instanceof Error&&console.error("".concat(e8.SAVE_CONSENTS_RETRY,": ").concat(i.message)),console.error(e8.SAVE_CONSENTS_RETRY),[3,5];case 5:return[3,7];case 6:return o=!0,[7];case 7:return[2]}})},o=!0,a=j(i),l.label=2;case 2:return[4,a.next()];case 3:return(e=(c=l.sent()).done)?[3,6]:[5,r()];case 4:l.sent(),l.label=5;case 5:return[3,2];case 6:return[3,13];case 7:return t={error:l.sent()},[3,13];
1case 8:return l.trys.push([8,,11,12]),!o&&!e&&(n=a.return)?[4,n.call(a)]:[3,10];case 9:l.sent(),l.label=10;case 10:return[3,12];case 11:if(t)throw t.error;return[7];case 12:return[7];case 13:return[2]}})})},e.prototype.setTrackingPixel=function(e){var t,n="".concat(document.location.origin).concat(document.location.pathname);e.referrer?function(e){try{return new URL(e),!0}catch(e){return!1}}(e.referrer)?t=e.referrer:(console.warn(e8.CUSTOM_REFERRER_NOT_VALID),t=n):t=n;var s=(new Date).getTime(),i=encodeURIComponent(t),r="".concat(this.isEuMode()?this.API.EU_URI.TRACK_EVENT:this.API.URI.TRACK_EVENT,"?v=").concat(1,"&sid=").concat(this.settingsId,"&t=").concat(e.eventType,"&abv=").concat(e.abTestVariant,"&r=").concat(i,"&cb=").concat(s);(new Image).src=r},e.prototype.updateTagLoggerData=function(e){var t=np({settingsId:this.settingsId,source:window.location.href,targets:e});this.saveTagLoggerData(t)},e.prototype.addJsonCacheBustingString=function(e){return this.jsonCacheBustingString?"".concat(e,"?c=").concat(this.jsonCacheBustingString):e},e.prototype.createAvailableLanguagesUrl=function(){return this.addJsonCacheBustingString("".concat(this.getCdnUri(),"/").concat(this.API.FOLDER.SETTINGS,"/").concat(this.settingsId,"/").concat(this.jsonFileVersion,"/languages.json"))},e.prototype.createLanguagesUrl=function(){return this.addJsonCacheBustingString("".concat(this.getCdnUri(),"/").concat(this.API.FOLDER.TRANSLATIONS,"/translations-").concat(this.jsonFileLanguage,".json"))},e.prototype.getSettingsUrl=function(){return"".concat(this.getCdnUri(),"/").concat(this.API.FOLDER.SETTINGS,"/").concat(this.settingsId,"/").concat(this.jsonFileVersion)},e.prototype.createSettingsJsonUrl=function(){return this.addJsonCacheBustingString("".concat(this.getSettingsUrl(),"/").concat(this.jsonFileLanguage,".json"))},e.prototype.createAcmVendorsJsonUrl=function(){return this.addJsonCacheBustingString("".concat(this.getCdnUri(),"/tcfac/acp.json"))},e.prototype.createSessionTrackingUrl=function(){return"".concat(this.isEuMode()?this.API.EU_URI.TRACK_SESSION:this.API.URI.TRACK_SESSION,"?settingsId=").concat(this.settingsId)},e.prototype.createFetchUserConsentsUrl=function(){return"".concat(this.isEuMode()?this.API.EU_URI.FETCH_CONSENTS:this.API.URI.FETCH_CONSENTS,"?controllerId=").concat(this.controllerIdInstance.value)},e.prototype.createFetchUserConsentsV2Url=function(){return"".concat(this.isEuMode()?this.API.EU_URI.FETCH_CONSENTS_V2:this.API.URI.FETCH_CONSENTS_V2,"?settingsId=").concat(this.getSettingsId(),"&controllerId=").concat(this.controllerIdInstance.value)},e.prototype.createFetchUserTcfDataUrl=function(){return"".concat(this.API.URI.FETCH_TCF_DATA,"?controllerId=").concat(this.controllerIdInstance.value)},e.prototype.createFetchUserTcfDataV2Url=function(){return"".concat(this.getTcfDataV2Uri(),"?controllerId=").concat(this.controllerIdInstance.value,"&tcf2=true&settingsId=").concat(this.settingsId)},e.prototype.createRulesetUrl=function(){return"".concat(this.API.URI.RULESET,"/").concat(this.API.FOLDER.RULESET,"/").concat(this.rulesetId,".json")},e.prototype.createSaveConsentsV2Url=function(){return"".concat(this.isEuMode()?this.API.EU_URI.SAVE_CONSENTS_V2:this.API.URI.SAVE_CONSENTS_V2,"/uw/").concat(3)},e.prototype.saveTagLoggerData=function(e){try{tq(this.getGraphQLUri(),e,"",F(F({},nd()),{keepalive:!0}))}catch(e){console.warn(e8.TAGLOGGER,e)}},e}(),nd=function(){return{credentials:"omit",headers:{Accept:"application/json","Access-Control-Allow-Origin":"*","X-Request-ID":nt()},mode:"cors"}},nh=function(e){var t=e.dataTransferObjects,n=e.consentMeta,s=e.consentString;return{query:"mutation saveConsents($consents: [NewCreateConsentInput], $consentMeta: ConsentMeta, $consentString: ConsentString)\n {\n saveConsents(consents: $consents, consentMeta: $consentMeta, consentString: $consentString) { data { consentId } }\n }",variables:{consentMeta:n,consents:ng(t),consentString:s}}},np=function(e){return{operationName:"saveTagLoggerData",query:"mutation saveTagLoggerData($settingsId: String, $source: String, $targets: [String])\n {\n saveTagLoggerData(settingsId: $settingsId, source: $source, targets: $targets)\n }",variables:{settingsId:e.settingsId,source:e.source,targets:e.targets}}},ng=function(e){return e.map(function(e){return{action:e.consent.action,appVersion:e.applicationVersion,consentStatus:e.consent.status?"1":"0",consentTemplateId:e.service.id,consentTemplateVersion:e.service.version,controllerId:e.settings.controllerId,language:e.settings.language,processorId:e.service.processorId,referrerControllerId:e.settings.referrerControllerId,settingsId:e.settings.id,settingsVersion:e.settings.version,updatedBy:e.consent.type}})};(nf=na||(na={}))[nf.NO=0]="NO",nf[nf.YES=1]="YES",nf[nf.NOT_SET=2]="NOT_SET";var nf,nS,nv=function(){function e(){this.isBotEnabled=!1,this.isBot=na.NOT_SET}return e.getInstance=function(){return e.instance||(e.instance=new e),e.instance},e.resetInstance=function(){e.instance.isBot=na.NOT_SET},e.prototype.isRobot=function(){if(this.isBot===na.NOT_SET)if(this.isBotEnabled){var e=window.navigator.userAgent,t=RegExp("AdsBot-Google|AdsBot-Google-Mobile|bingbot/|BingPreview/|Chrome-Lighthouse|DuckDuckBot/|Feedfetcher-Google|Googlebot/|Google Favicon|Googlebot-Image/|Google-InspectionTool|Googlebot-Mobile/|Googlebot-News|Googlebot-Video/|Google Page Speed Insights|Google PageSpeed Insights|Google PP|Google-Read-Aloud|Google Search Console|Google-SearchByImage|Google-Speakr|Google-Structured-Data-Testing-Tool|Google Web Preview|HeadlessChrome|Lighthouse|Optimizer|Pagespeed|SISTRIX|Slurp/|Storebot-Google|YahooSeeker|YahooCacheSystem|Yahoo! Site Explorer Feed Validator|Yahoo! Slurp","i");this.isBot=t.test(e)?na.YES:na.NO}else this.isBot=na.NO;return this.isBot===na.YES},e}(),nE="UC_SDK_EVENT",nI=["BkeKqEjuoZQ","dUzxiHb6Q","dsS7z9Hv4","l5j0HxFqd","2AMblLg3I","00xb_vkGq"],nT=["LykAT-gy","UekC8ye4S","9V8bg4D63","ByzZ5EsOsZX","S1_9Vsuj-Q","dqFgQeZH","twMyStLkn","B1Hk_zoTX","pxiRY9112","dyHOCwp5Y","DHS2sEi4b"],nC=["HkocEodjb7","87JYasXPF"],n_=function(){function e(){this.dataLayerNames=[],this.windowEventNames=[],this.dataLayer=new Map,this.blockDataLayerPush=!1,this.isUniversalEventTrackingDisabled=!1,this.isClarityEnabled=!1}return e.getInstance=function(){return e.instance||(e.instance=new e),e.instance},e.prototype.setBlockDataLayerPush=function(e){this.blockDataLayerPush=e},e.prototype.setUetDisabled=function(e){this.isUniversalEventTrackingDisabled=e},e.prototype.enableClarity=function(e){this.isClarityEnabled=e},e.prototype.shouldBlockDataLayerPush=function(){return this.blockDataLayerPush},e.resetInstance=function(){e.instance.dataLayerNames=[],e.instance.windowEventNames=[],e.instance.dataLayer=new Map},e.prototype.init=function(e){var t=this;e.forEach(function(e){e.type===ec.DATA_LAYER?t.dataLayerNames=ez(e.names,[]):e.type===ec.WINDOW_EVENT&&(t.windowEventNames=ez(e.names,[]))}),this.windowEventNames.includes(nE)||this.windowEventNames.push(nE)},e.prototype.setDataLayer=function(e,t){this.dataLayer.set(t,e)},e.prototype.getDataLayer=function(){return this.dataLayer},e.prototype.dispatch=function(e,t,n,s){eq(e)&&(this.pushEventsToDataLayer(e,t,n,s),this.dispatchWindowEvents(e,s))},e.prototype.isValidDataLayer=function(e){return window[e]&&(Array.isArray(window[e])||Object.prototype.hasOwnProperty.call(window[e],"push"))},e.prototype.pushEventsToDataLayer=function(e,t,n,s){var i=this;
1eq(this.dataLayerNames)&&this.dataLayerNames.forEach(function(r){if(window[r]=ez(window[r],[]),!i.isValidDataLayer(r))throw Error("DataLayer: ".concat(r," is not of a valid type!"));if(function(e,t){if(!e){var n,s,i,r,o=(i=(s=t.filter(function(e){var t=e.consent,n=t.type,s=t.action;return nI.includes(e.service.id)&&("explicit"===n||"implicit"===n&&"onNonEURegion"===s)})).length>0,r=s.every(function(e){return e.consent.status}),{adStorageStatus:i&&r?"granted":"denied",shouldUpdate:i});o.shouldUpdate&&(n=o.adStorageStatus,(window.uetq||[]).push("consent","update",{ad_storage:n}),window.dispatchEvent(new CustomEvent("UC_UET_UPDATE",{detail:{adStorage:n}})))}}(i.isUniversalEventTrackingDisabled,e),function(e,t){if(e){var n,s,i,r,o,a={adStorageStatus:o=(r=t.filter(function(e){var t=e.consent,n=t.type,s=t.action;return"jzMEq56vW"===e.service.id&&("explicit"===n||"implicit"===n&&"onNonEURegion"===s)})).length>0&&r.every(function(e){return!0===e.consent.status})?"granted":"denied",analyticsStorageStatus:o};n=a.adStorageStatus,s=a.analyticsStorageStatus,window.clarity=window.clarity||function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var s=window.clarity;s.q=null!=(e=s.q)?e:[],s.q.push(t)},null==(i=window.clarity)||i.call(window,"consentv2",{source:151,ad_Storage:n,analytics_Storage:s}),window.dispatchEvent(new CustomEvent("UC_CLARITY_UPDATE",{detail:{adStorage:n,analyticsStorage:s}}))}}(i.isClarityEnabled,e),n&&"dataLayer"===r){var o=!1,a=!1,c=!1,u=!1,l=!1;nA("set","developer_id.dOThhZD",!0),e.forEach(function(e){var t=e.service.id,n=e.consent,s=n.status,i=n.type,r=n.action;nC.includes(t)&&("explicit"===i||"implicit"===i&&"onNonEURegion"===r)&&(o=o||s,l=!0),nT.includes(t)&&("explicit"===i||"implicit"===i&&"onNonEURegion"===r)&&(u=!0,l=!0,s||(c=!0))}),t?a=!!t.consent:u&&!c&&(a=!0);var d={adsDataRedaction:!a};if(l){nA("consent","update",{ad_personalization:(d=F(F({},d),{adPersonalization:a?"granted":"denied",adStorage:a?"granted":"denied",adUserData:a?"granted":"denied",analyticsStorage:o?"granted":"denied"})).adPersonalization,ad_storage:d.adStorage,ad_user_data:d.adUserData,analytics_storage:d.analyticsStorage}),eY.saveGcmData(d);var h=new window.CustomEvent("UC_GCM_UPDATE",{detail:d});window.dispatchEvent(h)}nA("set","ads_data_redaction",d.adsDataRedaction)}window[r].push(ny(e,s)),i.setDataLayer(window[r],r),i.shouldBlockDataLayerPush()||"explicit"===e[0].consent.type&&e.forEach(function(e){e.consent.status||window[r].push({event:"".concat(e.service.name," EXPLICIT_DENY")})})})},e.prototype.dispatchWindowEvents=function(e,t){if(eq(this.windowEventNames)){var n=ny(e,t);this.windowEventNames.forEach(function(e){var t=new window.CustomEvent(e,{detail:n});window.dispatchEvent(t)})}},e}(),ny=function(e,t){var n={action:null!=t?t:e[0].consent.action,event:"consent_status",type:e[0].consent.type,ucCategory:{}};return e.forEach(function(e){var t,s,i,r=(null==(s=e.service.categorySlug)?void 0:s.length)&&Object.prototype.hasOwnProperty.call(n.ucCategory,e.service.categorySlug);n=F(F({},n),((t={})[e.service.name]=e.consent.status,t)),(null==(i=e.service.categorySlug)?void 0:i.length)&&(n.ucCategory[e.service.categorySlug]=r&&n.ucCategory[e.service.categorySlug]!==e.consent.status?null:e.consent.status)}),n},nA=function(){window.dataLayer.push(arguments)},nm="https://api.usercentrics.eu/tcf2/",nO="https://api.usercentrics.eu/gvl/v3/",nN="https://config.eu.usercentrics.eu/tcf2/",nb="https://config.eu.usercentrics.eu/gvl/v3/",nD="[LANG].json",nR="[LANG].json",nw="en-v2.json",nL="en.json";(nP=nS||(nS={})).TEXT_JAVASCRIPT="text/javascript",nP.TEXT_PLAIN="text/plain";var nP,nV,nU="data-usercentrics",nM=function(){function e(){}return e.enableScriptsForServicesWithConsent=function(t){var n=e.getDisabledScripts();Array.prototype.forEach.call(n,function(n){e.disabledScriptHasConsent(t,n)&&e.enableScript(n)})},e.getDisabledScripts=function(){return document.querySelectorAll("script[".concat(nU,'][type="').concat(nS.TEXT_PLAIN,'"]'))},e.disabledScriptHasConsent=function(e,t){return e.some(function(e){return e.name===t.getAttribute(nU)})},e.enableScript=function(t){var n,s=t.src?e.createSrcScriptTag(t):e.createInlineScriptTag(t);(n=t.parentNode)&&n.replaceChild(s,t)},e.createSrcScriptTag=function(t){var n=e.cloneScriptTag(t);return n.removeAttribute(nU),n.type=nS.TEXT_JAVASCRIPT,n},e.createInlineScriptTag=function(t){var n=e.cloneScriptTag(t);n.removeAttribute(nU);var s=document.createTextNode(t.text);return n.appendChild(s),n.type=nS.TEXT_JAVASCRIPT,n},e.cloneScriptTag=function(e){var t=document.createElement("script");
1return Array.from(e.attributes).forEach(function(e){t.setAttribute(e.name,e.value)}),t},e}(),nk=function(e,t,n){var s,i;this.anyDomain=e.anyDomain||"any domain (ex. first party cookie)",this.cookieRefresh=(null==t?void 0:t.COOKIE_REFRESH)||(null==(s=null==n?void 0:n.labels)?void 0:s.COOKIE_REFRESH)||"Cookie Refresh",this.cookieStorage=(null==t?void 0:t.COOKIE_STORAGE)||(null==(i=null==n?void 0:n.labels)?void 0:i.COOKIE_STORAGE)||"Cookie Storage",this.day=e.day,this.days=e.days,this.description=e.storageInformationDescription||"Below you can see the longest potential duration for storage on a device, as set when using the cookie method of storage and if there are any other methods used.",this.disclosureDescription=e.disclosureDescription||"Description",this.domain=e.domain||"Domain",this.duration=e.duration||"Duration",this.error=e.informationLoadingNotPossible||"Sorry; we could not load the required information.",this.hour=e.hour,this.hours=e.hours,this.identifier=e.identifier||"Identifier",this.loading=e.loadingStorageInformation||"Loading storage information",this.maximumAge=e.maximumAgeCookieStorage||"Maximum age of cookie storage",this.minute=e.minute,this.minutes=e.minutes,this.month=e.month,this.months=e.months,this.multipleDomains=e.multipleDomains||"multiple subdomains may exist",this.name=e.name||"Name",this.no=e.no||"no",this.nonCookieStorage=e.nonCookieStorage||"Non-cookie storage",this.disclosureOptOut=e.disclosureOptOut||"Opt-out",this.purposes=e.purposes||"Purposes",this.second=e.second||"second",this.seconds=e.seconds||"seconds",this.session=e.session||"Session",this.specialPurposes=e.specialPurposes||"Special Purposes",this.storedInformation=e.storedInformation||"Stored Information",this.storedInformationDescription=e.storedInformationDescription||"This service uses different means of storing information on a user’s device as listed below.",this.title=e.storageInformation||"Storage Information",this.titleDetailed=e.detailedStorageInformation||"Detailed Storage Information",this.tryAgain=e.tryAgain||"Try again?",this.type=e.type||"Type",this.year=e.year,this.years=e.years,this.yes=e.yes||"yes"},nF=function(e,t){var n=e.defaultConsentStatus;return{history:[],status:!!(null==t?void 0:t.isEssential)||n}},nG=function(e,t){var n=e.legalBasisList,s=e.legalGround;return t.length>0?t:eq(n)?n:[s]},nB=function(e,t){return(null==e?void 0:e.description)||(null==t?void 0:t.descriptionOfService)||(null==t?void 0:t.description)||""},nx=function(e,t,n){var s,i=null==n?void 0:n.find(function(t){return e.templateId===t.templateId&&e.version===t.version}),r=(null==t?void 0:t.legalBasis)&&e.legalBasisList?e.legalBasisList.reduce(function(e,n){return(null==t?void 0:t.legalBasis[n])?H(H([],x(e),!1),[null==t?void 0:t.legalBasis[n]],!1):e},[]):[];this.description=nB(e,i),this.id=e.templateId,this.legalBasis=i&&!e.disableLegalBasis?nG(i,r):[],this.name=(null==(s=e._meta)?void 0:s.name)||(null==i?void 0:i.dataProcessor)||(null==i?void 0:i.dataProcessors[0])||""},nH=function(e){function t(t,n,s,i){var r,o,a,c,u,l,d,h,p,g=this;g=e.call(this)||this;var f=t.labels;if(g.ariaLabels=F(F({},(null==s?void 0:s.labelsAria)||tC),{closeButton:f.btnClose}),g.categories=n.categories.map(function(e){return{description:e.description,label:e.label,slug:e.categorySlug}}),g.cookieInformation=new nk(f,null,s),g.general={back:(null==(r=null==s?void 0:s.labels)?void 0:r.BACK)||"Back",consentGiven:f.accepted,consentNotGiven:f.denied,consentType:f.consentType,controllerId:(null==(o=null==s?void 0:s.labels)?void 0:o.CID_TITLE)||"Controller ID",copied:f.copied,copy:f.copy,date:f.date,decision:f.decision,details:(null==(a=null==s?void 0:s.labels)?void 0:a.DETAILS)||"Details",explicit:f.explicit,gpcSignalHonored:(null==(c=null==s?void 0:s.labels)?void 0:c.GPC_SIGNAL_HONORED)||f.gpcSignalHonored||"The GPC signal is honored",implicit:f.implicit,implicitNo:f.noImplicit,implicitYes:f.yesImplicit,languageChange:(null==(u=null==s?void 0:s.labels)?void 0:u.LANGUAGE_CHANGE)||"Selecting an option will immediately change the language",privacyButton:f.btnChipName,showLess:f.readLess,showMore:f.btnBannerReadMore||f.showMore,subservice:(null==(l=null==s?void 0:s.labels)?void 0:l.SUB_SERVICE)||"Subservice",subservices:(null==(d=null==s?void 0:s.labels)?void 0:d.SUB_SERVICES)||"Subservices",subservicesDescription:(null==(h=null==s?void 0:s.labels)?void 0:h.SUB_SERVICES_DESCRIPTION)||"Below you can find all the services that are subordinate to this service. The current consent status of this service applies to all subservices.",webDutchAuthText:(null==(p=null==s?void 0:s.labels)?void 0:p.WEB_DUTCH_AUTH_TEXT)||""},g.links={cookiePolicy:{ariaLabel:tC.cookiePolicyButton,label:ez(f.cookiePolicyLinkText,""),url:t.cookiePolicyUrl},imprint:{ariaLabel:tC.imprintButton,label:f.imprintLinkText||null,url:t.imprintUrl},privacyPolicy:{ariaLabel:tC.privacyPolicyButton,label:f.privacyPolicyLinkText,url:t.privacyPolicyUrl}},t.integrations&&t.integrations.mine){var S={mine:{ariaLabel:"",label:t.integrations.mine[0].privacyCenterLabel,url:t.integrations.mine[0].privacyCenterUrl}};g.integrationLinks=F(F({},g.integrationLinks),S)}return g.poweredBy={label:"Powered by",partnerUrlLabel:ez(f.partnerPoweredByLinkText,null),urlLabel:"Usercentrics Consent Management"},g.service={dataCollected:{description:f.dataCollectedInfo,title:f.dataCollectedList},dataDistribution:{processingLocationDescription:f.locationofProcessingInfo,processingLocationTitle:f.locationOfProcessing,thirdPartyCountriesDescription:f.transferToThirdCountriesInfo,thirdPartyCountriesTitle:f.transferToThirdCountries},dataProtectionOfficer:{description:f.dataProtectionOfficerInfo,title:f.dataProtectionOfficer},dataPurposes:{description:f.dataPurposesInfo,title:f.dataPurposes},dataRecipients:{description:f.dataRecipientsListInfo,title:f.dataRecipientsList}
1,descriptionTitle:f.descriptionOfService,history:{description:null,title:f.history},legalBasis:{description:f.legalBasisInfo,title:f.legalBasisList},processingCompanyTitle:f.processingCompany,retentionPeriod:{description:f.retentionPeriodInfo,title:f.retentionPeriod},technologiesUsed:{description:f.technologiesUsedInfo,title:f.technologiesUsed},urls:{cookiePolicyTitle:f.cookiePolicyInfo,optOutTitle:f.optOut,privacyPolicyTitle:f.policyOf}},g.services=n.consentTemplates.reduce(function(e,t){var n=new nx(t,s,i);return H(H([],x(e),!1),[n],!1)},[]),g}return V(t,e),t}(function(){this.ariaLabels=tC}),nj=function(e){function t(t,n,s,i){var r=e.call(this,t,n,s,i)||this;return r.buttons={optOutNotice:t.ccpa.optOutNoticeLabel||"Do not sell my personal information",save:t.ccpa.btnSave||"okay",showSecondLayer:t.ccpa.btnMoreInfo||t.labels.btnMore},r.firstLayer={description:{default:t.ccpa.firstLayerDescription||"",short:t.ccpa.firstLayerMobileDescription||"",shortDesktop:t.ccpa.firstLayerShortMessage||"",shortMobile:t.ccpa.firstLayerMobileDescription||""},title:t.ccpa.firstLayerTitle||""},r.secondLayer={categoryTab:t.secondLayer.tabsCategoriesLabel,description:t.ccpa.secondLayerDescription||"",serviceTab:t.secondLayer.tabsServicesLabel,title:t.ccpa.secondLayerTitle||""},r}return V(t,e),t}(nH),nY=function(e,t){var n,s,i;this.acceptAllImplicitlyOutsideEU=e.displayOnlyForEU,this.consentAnalytics=ez(e.consentAnalytics,!1),this.consentAPIv2=ez(e.consentAPIv2,!1),this.consentXDevice=ez(e.consentXDevice,!1),this.consentSharingIFrameIsActive=e.consentSharingIFrameIsActive,this.dataExchangeSettings=e.dataExchangeOnPage.reduce(function(e,t){return t.type===tt.DATA_LAYER?e.push({names:t.names,type:ec.DATA_LAYER}):t.type===tt.WINDOW_EVENT&&e.push({names:t.names,type:ec.WINDOW_EVENT}),e},[]),this.googleConsentMode=e.googleConsentMode,this.id=e.settingsId,this.isCcpaEnabled=e.framework?["CCPA","UCPA","CTDPA","VCDPA","CPRA","CPA","MSPL"].includes(e.framework):null!=(s=null==(n=e.ccpa)?void 0:n.isActive)&&s,this.isEmbeddingsEnabled=!0,this.isTagLoggerActive=e.tagLoggerIsActive,this.isTcfEnabled=e.framework?["TCF2","UK_TCF2"].includes(e.framework):null!=(i=e.tcf2Enabled)&&i,this.language={available:e.languagesAvailable,selected:t},this.reshowBanner=ez(e.reshowBanner,-1),this.renewConsentsTimestamp=ez(e.renewConsentsTimestamp,null),this.showFirstLayerOnVersionChange=e.showInitialViewForVersionChange.map(function(e){switch(e){case ts.MAJOR:return eu.MAJOR;case ts.MINOR:return eu.MINOR;case ts.PATCH:default:return eu.PATCH}}),this.version=e.version},nJ=function(e){function t(t,n,s,i){var r,o,a,c,u,l,d,h,p,g,f=this;(f=e.call(this,t,n,s,i)||this).buttons={acceptAll:t.labels.btnAcceptAll,cnilDeny:(null==(r=null==s?void 0:s.labels)?void 0:r.CNIL_DENY_LINK_TEXT)||"Continuer sans accepter",denyAll:t.labels.btnDeny,save:t.labels.btnSave,showSecondLayer:t.labels.btnMore};var S=(null==(o=null==s?void 0:s.labels)?void 0:o.WEB_DUTCH_AUTH_TEXT)||"",v=(null==(a=t.gdpr)?void 0:a.addVendorCount)||!1,E=S&&v?"<br />".concat(S):"";return f.firstLayer={description:{default:"".concat(null!=(c=t.bannerMessage)?c:"").concat(E)||"",short:"".concat(null!=(u=t.bannerMobileDescription)?u:"").concat(E)||"",shortDesktop:"".concat(null!=(l=t.firstLayer.shortMessage)?l:"").concat(E)||"",shortMobile:"".concat(null!=(d=t.bannerMobileDescription)?d:"").concat(E)||""},title:ez(t.labels.firstLayerTitle,"Privacy Settings")},f.secondLayer={acceptButtonLabel:t.secondLayer.acceptButtonText,categoryTab:t.secondLayer.tabsCategoriesLabel,dataTransferFilter:{all:(null==(h=null==s?void 0:s.labels)?void 0:h.ALL)||"All",thirdCountry:(null==(p=null==s?void 0:s.labels)?void 0:p.THIRD_COUNTRY_TRANSFER)||"Data Transfer to Third Countries"},denyButtonLabel:t.secondLayer.denyButtonText,description:(null==(g=t.gdpr)?void 0:g.secondLayerDescription)||t.labels.titleCorner,serviceTab:t.secondLayer.tabsServicesLabel,title:t.labels.headerCorner},f}return V(t,e),t}(nH),nW=function(e,t,n){var s;this.privacyButton=ez(null==n?void 0:n.labelsAria.privacyButton,""),this.services=e.consentTemplates.reduce(function(e,s){var i=new nx(s,n,t);return H(H([],x(e),!1),[i],!1)},[]),this.gpcSignalHonored=(null==(s=null==n?void 0:n.labels)?void 0:s.GPC_SIGNAL_HONORED)||"The GPC signal is honored"},nK=function(){function e(){this.needsSessionRestore=!1,this.apiInstance=nl.getInstance(),this.locationInstance=ni.getInstance()}return e.getInstance=function(){return e.instance||(e.instance=new e),e.instance},e.resetInstance=function(){delete e.instance.noShow},e.prototype.unsetNoShow=function(){delete this.noShow},e.prototype.getIsUsingNoShow=function(){return void 0!==this.noShow},e.prototype.getNoShow=function(){return!0===this.noShow}
1,e.prototype.setNoShow=function(e){this.noShow=e},e.prototype.resolveSettingsId=function(){return G(this,void 0,void 0,function(){var e,t,n,s,i,r,o,a;return B(this,function(c){switch(c.label){case 0:return[4,this.apiInstance.fetchRuleset()];case 1:return e=c.sent(),n="",s=e.location,i=e.rules,o=(r=e.defaultRule).settingsId,a=r.noShow,s&&s.code&&(t=s.regionCode&&i.find(function(e){var t;return null==(t=e.locations)?void 0:t.includes(s.regionCode)})||i.find(function(e){var t;return null==(t=e.locations)?void 0:t.includes(s.code)}),this.locationInstance.setUserCountryData(s),eY.setUserCountryResponse(ni.mapUserCountryData(s))),this.unsetNoShow(),t?(n=t.settingsId,void 0!==t.noShow&&this.setNoShow(!0===t.noShow)):(n=o,this.setNoShow(!0===a)),[2,{name:"Resolved Settings Id",noShow:this.getNoShow(),settingsId:n}]}})})},e}(),nq=function(e){this.cookieMaxAgeSeconds=null,this.cookieRefresh=null,this.dataCollected=[],this.dataDistribution=null,this.dataProtectionOfficer=null,this.dataPurposes=[],this.dataRecipients=[],this.deviceStorage=null,this.deviceStorageDisclosureUrl=null,this.language=null,this.processingCompany=null,this.retentionPeriodDescription=null,this.technologiesUsed=[],this.urls=null,this.usesCookies=null,this.usesNonCookieAccess=null,this.cookieMaxAgeSeconds=ez(null==e?void 0:e.cookieMaxAgeSeconds,null),this.cookieRefresh=ez(null==e?void 0:e.cookieRefresh,null),this.dataCollected=e?nQ(e,tn.DATA_COLLECTED_LIST):[],this.dataDistribution=e?nX(e):null,this.dataProtectionOfficer=ez(null==e?void 0:e.dataProtectionOfficer,null),this.dataPurposes=e?nz(e):[],this.dataRecipients=e?nQ(e,tn.DATA_RECIPIENTS_LIST):[],this.description=nB(null,e),this.deviceStorage=ez(null==e?void 0:e.deviceStorage,null),this.deviceStorageDisclosureUrl=ez(null==e?void 0:e.deviceStorageDisclosureUrl,null),this.language=e?n$(e):null,this.processingCompany=e?nZ(e):null,this.retentionPeriodDescription=e?n0(e):null,this.technologiesUsed=e?nQ(e,tn.TECHNOLOGY_USED):[],this.usesCookies=ez(null==e?void 0:e.usesCookies,null),this.usesNonCookieAccess=ez(null==e?void 0:e.usesNonCookieAccess,null),this.urls=e?n1(e):null},nQ=function(e,t){var n;return eq(e[t])?e[t]:(null==(n=e[t])?void 0:n.length)>0?[e[t]]:[]},nz=function(e){var t=nQ(e,tn.DATA_PURPOSES_LIST);return eq(t)?t:e.dataPurposes},nX=function(e){return{processingLocation:e.locationOfProcessing,thirdPartyCountries:e.thirdCountryTransfer?e.thirdCountryTransfer.split(","):[]}},n$=function(e){return{available:e.languagesAvailable,selected:e.language}},nZ=function(e){return{address:e.addressOfProcessingCompany,dataProtectionOfficer:e.dataProtectionOfficer,name:e.nameOfProcessingCompany||e.processingCompany}},n0=function(e){var t;return e.retentionPeriodDescription||(null==(t=e.retentionPeriodList)?void 0:t[0])||""},n1=function(e){return{cookiePolicy:e.cookiePolicyURL,dataProcessingAgreement:e.linkToDpa,optOut:e.optOutUrl,privacyPolicy:e.privacyPolicyURL||e.policyOfProcessorUrl}},n2=function(e){function t(t,n,s,i,r){var o,a,c,u,l,d=this;d=e.call(this,t,n,i,r)||this;var h=t.labels,p=t.tcf2;return d.cookieInformation.purposes=p.labelsPurposes,d.buttons={acceptAll:p.buttonsAcceptAllLabel,denyAll:p.buttonsDenyAllLabel,manageSettings:p.linksManageSettingsLabel,save:p.buttonsSaveLabel,showVendorTab:p.linksVendorListLinkLabel},d.firstLayer={description:{additionalInfo:p.firstLayerAdditionalInfo||null,dataSharedOutsideEUText:p.showDataSharedOutsideEUText&&p.dataSharedOutsideEUText?p.dataSharedOutsideEUText:null,default:p.firstLayerDescription.replace("%VENDOR_COUNT%",s.toString()),resurfaceNote:p.firstLayerNoteResurface||null},disclaimer:{serviceScope:p.firstLayerNoteService},title:p.firstLayerTitle},d.secondLayer={dataSharedOutsideEU:{text:(null==(o=null==i?void 0:i.labels)?void 0:o.VENDORS_OUTSIDE_EU)||null,title:h.transferToThirdCountries},dataTransferFilter:{all:(null==(a=null==i?void 0:i.labels)?void 0:a.ALL)||"All",thirdCountry:(null==(c=null==i?void 0:i.labels)?void 0:c.THIRD_COUNTRY_TRANSFER)||"Data Transfer to Third Countries"},description:p.secondLayerDescription,maxStorageDurationText:((null==(u=null==i?void 0:i.labels)?void 0:u.WEB_TCF_MAX_STORAGE_DURATION_TEXT)||"The choices you make regarding the purposes and entities listed are saved in the local storage %TC_STRING_LOCATION%, for a maximum of 13 months. After 13 months, the CMP will prompt again.").replace("%TC_
1STRING_LOCATION%","uc_tcf"),maxStorageDurationTitle:(null==(l=null==i?void 0:i.labels)?void 0:l.WEB_TCF_MAX_STORAGE_DURATION_TITLE)||"CMP Storage and Access",purposesTab:p.tabsPurposeLabel,title:p.secondLayerTitle,vendorsTab:p.tabsVendorsLabel},d.titles={acmVendors:p.atpListTitle,examples:p.examplesLabel||"Examples",features:p.labelsFeatures,iabVendors:p.labelsIabVendors,nonIabPurposes:p.labelsNonIabPurposes,nonIabVendors:p.labelsNonIabVendors,purposes:p.labelsPurposes},d.toggles={consent:t.tcf2.togglesConsentToggleLabel,legitimateInterest:t.tcf2.togglesLegIntToggleLabel,specialFeaturesToggle:{offLabel:t.tcf2.togglesSpecialFeaturesToggleOff,onLabel:t.tcf2.togglesSpecialFeaturesToggleOn}},d.vendor={dataCategories:p.categoriesOfDataLabel,dataRetention:p.dataRetentionPeriodLabel,dataRetentionUnit:h.days,features:p.vendorFeatures,legitimateInterest:p.vendorLegitimateInterestPurposes,legitimateInterestClaim:p.legitimateInterestLabel,privacyPolicy:h.privacyPolicyLinkText,purposes:p.vendorPurpose,specialFeatures:p.vendorSpecialFeatures,specialPurposes:p.vendorSpecialPurposes,toggleAll:p.labelsActivateAllVendors},d.acmVendor={privacyPolicy:p.atpAdditionalInfo},d}return V(t,e),t}(nH),n3=function(){function e(){this.aggregatedServices=[],this.allLegacyServicesHaveName=!1,this.isVariantLoaded=!1,this.isAggregatorLoaded=!1,this.language="",this.translations=null,this.botInstance=nv.getInstance(),this.locationInstance=ni.getInstance(),this.rulesetInstance=nK.getInstance(),this.apiInstance=nl.getInstance(),this._core=null,this._coreJson=null,this._data=null,this._dpsJson=null,this._labels=null,this._legacySettings=null,this._ui=null,this.controllerIdInstance=nn.getInstance(),this.acceptAllImplicitlyOnInit=null,this.denyAllExplicitlyOnInit=null}return e.getInstance=function(){return e.instance||(e.instance=new e),e.instance},e.resetInstance=function(){e.instance.allLegacyServicesHaveName=!1,e.instance.core=null,e.instance.data=null,e.instance.labels=null,e.instance.legacySettings=null,e.instance.ui=null,e.instance.dpsJson=null,e.instance.coreJson=null},Object.defineProperty(e.prototype,"core",{get:function(){return this._core},set:function(e){this._core=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"coreJson",{get:function(){return this._coreJson},set:function(e){this._coreJson=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"data",{get:function(){return this._data},set:function(e){this._data=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"dpsJson",{get:function(){return this._dpsJson},set:function(e){this._dpsJson=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"labels",{get:function(){return this._labels},set:function(e){this._labels=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"legacySettings",{get:function(){return this._legacySettings},set:function(e){this._legacySettings=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"ui",{get:function(){return this._ui},set:function(e){this._ui=e},enumerable:!1,configurable:!0}),e.prototype.init=function(e,t,n){return G(this,void 0,void 0,function(){return B(this,function(s){return this.language=n,this.core=new nY(e,n),this.coreJson=e,this.dpsJson=t,this.isAggregatorLoaded=!1,this.allLegacyServicesHaveName=this.checkIfServiceNameExists(t.consentTemplates),this.isAggregatorLoaded=!1,[2]})})},e.prototype.initData=function(e,t,s,i,r,o,a){return void 0===t&&(t=[]),void 0===s&&(s=!0),void 0===i&&(i=!1),void 0===r&&(r=[]),void 0===o&&(o=!1),void 0===a&&(a=!1),G(this,void 0,void 0,function(){var c,u,l,d,h,p,g=this;return B(this,function(f){switch(f.label){case 0:if(u=(c=this).coreJson,l=c.dpsJson,d=c.legacySettings,!u||!l)return[2];switch(h=this.controllerIdInstance.value,p=(null==t?void 0:t.length)?t:this.aggregatedServices,e){case 0:return[3,1];case 2:return[3,3];case 1:return[3,5]}return[3,7];case 1:return[4,n.e(1978).then(n.bind(n,31978)).then(function(e){g.data=new(0,e.default)(u,l,h,o)})];case 2:case 4:case 6:return f.sent(),[3,8];case 3:return d?[4,n.e(4101).then(n.bind(n,94101)).then(function(e){var t=e.default;return G(g,void 0,void 0,function(){var e,n;return B(this,function(o){switch(o.label){case 0:return(e=this.getDataTransferSettings())&&u.tcf2?(n=new t(d,u.tcf2,l,e,h,this.language,r,a),this.data=n,s?[4,n.init(i)]:[3,2]):[3,2];case 1:o.sent(),o.label=2;case 2:return[2]}})})})]:[2];case 5:return[4,n.e(9458).then(n.bind(n,59458)).then(function(e){g.data=new(0,e.default)(l,h,p)})];case 7:console.error("Usercentrics: Unknown variant"),f.label=8;case 8:return this.isVariantLoaded=!0,[2]}})})},e.prototype.checkIfServiceNameExists=function(e){return e.every(function(e){var t;return null!=(null==(t=e._meta)?void 0:t.name)})},e.prototype.initLabels=function(e,t,n){var s=this.coreJson,i=this.dpsJson,r=this.legacySettings,o=(null==n?void 0:n.length)?n:this.aggregatedServices;if(i&&this.core)if(r)switch(e){case 0:var a=new nj(r,i,t,o);this.labels=a;break;case 1:var c=new nJ(r,i,t,o);this.labels=c;break;case 2:var u=new n2(r,i,this.getThirdPartyCount(),t,o);this.labels=u;break;default:console.error("Usercentrics: Unknown variant")}else{var l=new nW(i,o,t),d=s?{label:"Powered by",partnerUrlLabel:ez(s.labels.partnerPoweredByLinkText,null),urlLabel:"Usercentrics Consent Management"}:void 0;this.labels=F(F({},l),{poweredBy:d})}else console.error("Usercentrics: You have to call the init method before!")},e.prototype.initUI=function(e,t){return G(this,void 0,void 0,function(){var s,i,r,o=this;return B(this,function(a){switch(a.label){case 0:return i=(s=this).coreJson,r=s.legacySettings,i?2!==e?[3,2]:[4,n.e(6506).then(n.bind(n,26506)).then(function(e){var t,n=e.default,s=e7.CAT,a=!1;r&&(s=r.secondLayer.defaultView,a=r.secondLayer.hideDataProcessingServices);var c=new n(i,{defaultView:s,hideDataProcessingServices:a}),u=i.enablePoweredBy?{partnerUrl:i.partnerPoweredByUrl||null,url:"https://www.usercentrics.com/consent-management-platform-powered-by-usercentrics/"}:null;o.ui=F(F({},c),{customCss:(null==(t=null==r?void 0:r.features)?void 0:t.customCss)&&r.useUnsafeCustomCss&&null!=r.stylesCss?r.stylesCss:null,poweredBy:u})})]:[2];case 1:return a.sent(),[2];case 2:if(!r)return[2];switch(t){case 0:return[3,3];case 1:return[3,5];case 2:return[3,7]}return[3,9];case 3:return[4,n.e(6519).then(n.bind(n,16519)).then(function(e){o.ui=new(0,e.default)(i,r)})];case 4:case 6:case 8:return a.sent(),[3,10];case 5:return[4,n.e(4761).then(n.bind(n,74761)).then(function(e){o.ui=new(0,e.default)(i,r)})];case 7:return[4,n.e(8044).then(n.bind(n,98044)).then(function(e){o.ui=new(0,e.default)(i,r)})];case 9:console.error("Usercentrics: Unknown variant"),a.label=10;case 10:return[2]}})})},e.prototype.getCcpaData=function(){return tL(this.data)?this.data:null},e.prototype.getDefaultData=function(){var e;return null==(e=this.data)||tL(e)||tP(e)?null:this.data},e.prototype.getTcfData=function(){return tP(this.data)?this.data:null},e.prototype.getCcpaLabels=function(){return tV(this.labels)?this.labels:null},e.prototype.getDefaultLabels=function(){return tM(this.labels)?this.labels:null},e.prototype.getTcfLabels=function(){return tU(this.labels)?this.labels:null},e.prototype.getCcpaUI=function(){return tF(this.ui)?this.ui:null},e.prototype.getDefaultUI=function(){return tB(this.ui)?this.ui:null},e.prototype.getTcfUI=function(){return tG(this.ui)?this.ui:null},e.prototype.getDataExchangeSettings=function(){return this.core?this.core.dataExchangeSettings:[]},e.prototype.getCategoriesData=function(){return this.data?this.data.categories:[]},e.prototype.getCategoriesBaseData=function(){var e=this;return this.data?this.data.categories.map(function(t){return{isEssential:t.isEssential,isHidden:t.isHidden,services:e.getServicesBaseInfo().filter(function(e){return e.categorySlug===t.slug}),slug:t.slug}}):[]},e.prototype.getCategoriesLabels=function(){return this.labels&&tk(this.labels)?this.labels.categories:[]},e.prototype.getCategoriesDataAndLabels=function(){var e,t,n;return e=this.getCategoriesData(),t=this.getCategoriesLabels(),n=this.getServicesLabels(),e.reduce(function(e,s){var i=t.find(function(e){return e.slug===s.slug}),r=tR(s.services,n);return i&&e.push(F(F(F({},i),s),{services:r})),e},[])},e.prototype.getCategoriesBasic=function(){var e=this.getCategoriesData(),t=this.getServicesLabels();return e.reduce(function(e,n){var s;return H(H([],x(e),!1),[F(F({},n),{services:(s=n.services,s.reduce(function(e,n){var s=t.find(function(e){return e.id===n.id});return s?H(H([],x(e),!1),[{categorySlug:n.categorySlug,consent:n.consent,id:n.id,language:n.language,name:s.name,processorId:n.processorId,version:n.version}],!1):H([],x(e),!1)},[]))})],!1)},[])},e.prototype.getCategoriesBaseInfo=function(){return this.getCategoriesDataAndLabels()},e.prototype.getCategoriesFullInfo=function(e,t){return G(this,void 0,void 0,function(){return B(this,function(n){switch(n.label){case 0:return this.isAggregatorLoaded?[3,2]:[4,this.extendServices(e,t)];case 1:n.sent(),n.label=2;case 2:return[2,this.getCategoriesDataAndLabels()]}})})},e.prototype.getDataTransferSettings=function(e){return this.core?{controllerId:this.controllerIdInstance.value,id:this.core.id,selectedLanguage:this.core.language.selected,version:e||this.core.version}:null},e.prototype.getEssentialCategories=function(){return this.getCategoriesLabels().length?this.getCategoriesDataAndLabels().reduce(function(e,t){return t.isEssential?H(H([],x(e),!1),[t],!1):e},[]):this.getCategoriesBasic().filter(function(e){return e.isEssential})},e.prototype.getEssentialCategoriesData=function(){return this.getCategoriesData().reduce(function(e,t){return t.isEssential?H(H([],x(e),!1),[t],!1):e},[])},e.prototype.getNonEssentialCategories=function(){return this.getCategoriesLabels().length?this.getCategoriesDataAndLabels().reduce(function(e,t){return t.isEssential?e:H(H([],x(e),!1),[t],!1)},[]):this.getCategoriesBasic().filter(function(e){return!e.isEssential})},e.prototype.getNonEssentialCategoriesData=function(){return this.getCategoriesData().reduce(function(e,t){return t.isEssential?e:H(H([],x(e),!1),[t],!1)},[])},e.prototype.getGoogleConsentMode=function(){return!!this.core&&this.core.googleConsentMode},e.prototype.getServicesLabels=function(){return this.labels?this.labels.services:[]},e.prototype.getServicesData=function(){return this.getCategoriesData().reduce(function(e,t){return H(H([],x(e),!1),x(t.services),!1)},[])},e.prototype.getServicesDataAndLabels=function(){return tR(this.getServicesData(),this.get
1ServicesLabels())},e.prototype.getServicesBaseInfo=function(){var e,t=this.mapBaseServices(this.getServicesData());return e=this.getServicesLabels(),t.reduce(function(t,n){var s=e.find(function(e){return e.id===n.id});return H(H([],x(t),!1),[F(F(F({},n),s||tD),{id:n.id})],!1)},[])},e.prototype.getServicesFullInfo=function(e,t){return G(this,void 0,void 0,function(){return B(this,function(n){switch(n.label){case 0:return this.isAggregatorLoaded?[3,2]:[4,this.extendServices(e,t)];case 1:n.sent(),n.label=2;case 2:return[2,this.getServicesDataAndLabels()]}})})},e.prototype.getServicesFromCategories=function(e){return e.reduce(function(e,t){return e.concat(t.services)},[])},e.prototype.getServicesWithConsent=function(){return this.getServicesDataAndLabels().reduce(function(e,t){return t.consent.status?H(H([],x(e),!1),[t],!1):e},[])},e.prototype.areAllServicesAccepted=function(){return this.getServicesData().every(function(e){return e.consent.status})},e.prototype.areAllVendorsAndPurposesAccepted=function(){var e=this.getTcfData();return!!e&&e.areAllPurposesAccepted()&&e.areAllVendorsAccepted()},e.prototype.extendServices=function(e,t){return G(this,void 0,void 0,function(){var n,s;return B(this,function(i){switch(i.label){case 0:return(n=this.dpsJson)?(this.isAggregatorLoaded=!0,[4,this.fetchServices(n)]):[2];case 1:return(s=i.sent())&&0!==s.length&&(this.aggregatedServices=s,this.initLabels(e,t,s),this.data&&(this.data.categories=this.data.categories.map(function(e){var t=n.categories.find(function(t){return t.categorySlug===e.slug});return F(F({},e),{services:e.services.map(function(e){if(n.consentTemplates.find(function(t){return t.templateId===e.id})&&t){var i=new nq(null==s?void 0:s.find(function(t){return e.id===t.templateId&&e.version===t.version}));return F(F({},e),i)}return e})})}))),[2]}})})},e.prototype.isCcpaEnabled=function(){var e;return(null==(e=this.core)?void 0:e.isCcpaEnabled)||!1},e.prototype.isCcpaAvailable=function(){var e;if(this.isCcpaEnabled()&&null!=(null==(e=this.coreJson)?void 0:e.ccpa))switch(this.coreJson.ccpa.region){case e9.US:return this.locationInstance.getIsUserInUS();case e9.US_CA_ONLY:return this.locationInstance.getIsUserInCalifornia();default:return Promise.resolve(!0)}return Promise.resolve(!1)},e.prototype.isCrossDomainEnabled=function(){var e;return(null==(e=this.core)?void 0:e.consentSharingIFrameIsActive)||!1},e.prototype.isTcfEnabled=function(){var e;return(null==(e=this.core)?void 0:e.isTcfEnabled)||!1},e.prototype.isTcfAvailable=function(){var e;return this.isTcfEnabled()&&null!=(null==(e=this.coreJson)?void 0:e.tcf2)},e.prototype.isTagLoggerActive=function(){var e;return(null==(e=this.core)?void 0:e.isTagLoggerActive)||!1},e.prototype.mergeServicesIntoExistingCategories=function(e){return this.getCategoriesDataAndLabels().map(function(t){return F(F({},t),{services:t.services.map(function(t){return e.find(function(e){return e.id===t.id})||t})})})},e.prototype.mergeServicesDataIntoExistingCategories=function(e){return this.getCategoriesData().map(function(t){return F(F({},t),{services:t.services.map(function(t){return e.find(function(e){return e.id===t.id})||t})})})},e.prototype.setCategories=function(e){this.data&&(this.data.categories=e)},e.prototype.setControllerId=function(e){this.data&&(this.data.controllerId=e),tP(this.data)&&this.data.updateControllerId(e)},e.prototype.updateServicesLanguage=function(e){this.data&&this.data.categories.map(function(t){return F(F({},t),{services:t.services.map(function(t){return F(F({},t),{language:F(F({},t.language),{selected:e})})})})})},e.prototype.shouldDenyAllOnInitFromGpc=function(){var e,t;return G(this,void 0,void 0,function(){var n,s,i,r;return B(this,function(o){switch(o.label){case 0:return n=eY.fetchUserActionPerformed(),s=eY.fetchActionTypePerformed(),n&&"gpc"===s?[2,!1]:[4,this.isCcpaAvailable()];case 1:return(i=o.sent()&&!(null==(e=this.getCcpaData())?void 0:e.isExplicitConsented)&&!0===navigator.globalPrivacyControl)?[3,4]:(r=!0===navigator.globalPrivacyControl&&!0===(null==(t=this._legacySettings)?void 0:t.gpcSignalHonoured))?[4,this.locationInstance.getIsUserInEU()]:[3,3];case 2:r=!o.sent(),o.label=3;case 3:i=r,o.label=4;case 4:return[2,i||!1]}})})},e.prototype.shouldDenyAllExplicitlyOnInit=function(){return G(this,void 0,void 0,function(){var e;return B(this,function(t){switch(t.label){case 0:return null!==this.denyAllExplicitlyOnInit?[2,this.denyAllExplicitlyOnInit]:(e=this,[4,this.shouldDenyAllOnInitFromGpc()]);case 1:return e.denyAllExplicitlyOnInit=t.sent(),[2,this.denyAllExplicitlyOnInit]}})})},e.prototype.shouldAcceptAllImplicitlyOnInit=function(){var e,t;return G(this,void 0,void 0,function(){var n,s,i,r,o,a;return B(this,function(c){switch(c.label){case 0:return null!==this.acceptAllImplicitlyOnInit?[2,this.acceptAllImplicitlyOnInit]:(n=this,(r=this.botInstance.isRobot())?[3,2]:[4,this.isCcpaAvailable()]);case 1:r=c.sent()&&!navigator.globalPrivacyControl,c.label=2;case 2:return(i=r)?[3,5]:(o=null==(e=this.core)?void 0:e.acceptAllImplicitlyOutsideEU)?[4,this.locationInstance.getIsUserInEU()]:[3,4];case 3:o=!c.sent(),c.label=4;case 4:i=o,c.label=5;case 5:return(s=i)?[3,8]:(a=this.isTcfAvailable())?[4,null==(t=this.getTcfData())?void 0:t.getGdprApplies()]:[3,7];case 6:a=!c.sent(),c.label=7;case 7:s=a,c.label=8;case 8:return n.acceptAllImplicitlyOnInit=s||""!==this.apiInstance.getRulesetId()&&this.rulesetInstance.getIsUsingNoShow()&&this.rulesetInstance.getNoShow(),[2,this.acceptAllImplicitlyOnInit]}})})},e.prototype.shouldAcceptAllImplicitlyOnVendorAdded=function(){var e,t,n;return G(this,void 0,void 0,function(){var s,i,r,o,a;return B(this,function(c){switch(c.label){case 0:return(r=this.botInstance.isRobot())?[3,2]:[4,this.isCcpaAvailable()];case 1:r=c.sent()&&!(null==(e=this.getCcpaData())?void 0:e.isOptedOut),c.label=2;case 2:return(i=r)?[3,5]:(o=null==(t=this.core)?void 0:t.acceptAllImplicitlyOutsideEU)?[4,this.locationInstance.getIsUserInEU()]:[3,4];case 3:o=!c.sent(),c.label=4;case 4:i=o,c.label=5;case 5:return(s=i)?[3,8]:(a=this.isTcfAvailable())?[4,null==(n=this.getTcfData())?void 0:n.getGdprApplies()]:[3,7];case 6:a=!c.sent(),c.label=7;case 7:s=a,c.label=8;case 8:return[2,s||""!==this.apiInstance.getRulesetId()&&this.rulesetInstance.getIsUsingNoShow()&&this.rulesetInstance.getNoShow()]}})})},e.prototype.shouldShowFirstLayerOnVersionChange=function(){var e=eY.fetchSettingsVersion();if(this.core&&e&&eq(this.core.showFirstLayerOnVersionChange)){var t=this.core.version.split("."),n=e.split(".");return eJ(this.core.showFirstLayerOnVersionChange,eu.MAJOR)&&t[0]!==n[0]||eJ(this.core.showFirstLayerOnVersionChange,eu.MINOR)&&t[1]!==n[1]||eJ(this.core.showFirstLayerOnVersionChange,eu.PATCH)&&t[2]!==n[2]}return!1},e.prototype.getUpdatedServicesWithConsent=function(e){return this.get
1ServicesDataAndLabels().map(function(t){return t.isEssential||(t.consent.status=e===ea.TRUE),t})},e.prototype.getUpdatedServicesDataWithConsent=function(e){return this.getServicesData().map(function(t){return t.isEssential||(t.consent.status=e===ea.TRUE),t})},e.prototype.getUpdatedServicesWithDecisions=function(e){return this.getServicesDataAndLabels().map(function(t){var n=e.find(function(e){return e.serviceId===t.id});return t.consent.status=t.isEssential||(n?n.status:t.consent.status),t})},e.prototype.getUpdatedServicesDataWithDecisions=function(e){return this.getServicesData().map(function(t){var n=e.find(function(e){return e.serviceId===t.id});return t.consent.status=t.isEssential||(n?n.status:t.consent.status),t})},e.prototype.updateDataTransferSettings=function(e){var t=e.controllerId,n=e.id,s=e.selectedLanguage,i=e.version;this.core&&this.data&&(this.data.controllerId=t,this.core.id=n,this.core.language.selected=s,this.core.version=i)},e.prototype.isTcfHistoryV2Disabled=function(){return!!tP(this.data)&&!0===this.data.tcfv2HistoryDisabled},e.prototype.getTCFPurposeOneTreatment=function(){return tP(this.data)&&this.data.purposeOneTreatment||!1},e.prototype.getTCFStackIds=function(){return tP(this.data)?this.data.stackIds:[]},e.prototype.getTCFVendorIds=function(){return tP(this.data)?this.data.vendorIds:[]},e.prototype.getTCFDisclosedVendorsSegmentString=function(){var e;return null==(e=this.getTcfData())?void 0:e.getTCFDisclosedVendorsSegmentString()},e.prototype.injectTCString=function(e){return G(this,void 0,void 0,function(){var t;return B(this,function(n){return(t=this.getTcfData())?[2,t.injectTCString(e)]:[2,!1]})})},e.prototype.fetchServices=function(e){return G(this,void 0,void 0,function(){var t,n,s,i;return B(this,function(r){switch(r.label){case 0:return(t=nu(e.consentTemplates)).length?(n=nl.getInstance(),s=nv.getInstance(),i=[],s.isRobot()?[3,2]:[4,n.fetchAggregatedServices(t)]):[2,null];case 1:i=r.sent(),r.label=2;case 2:return[2,i]}})})},e.prototype.mapBaseServices=function(e){return e.map(function(e){return{categorySlug:e.categorySlug,consent:e.consent,fetchSubServices:e.fetchSubServices,id:e.id,isEssential:e.isEssential,isHidden:e.isHidden,processorId:e.processorId,subServices:e.subServices,subServicesLength:e.subServicesLength,usesThirdCountry:e.usesThirdCountry,version:e.version}})},e.prototype.getThirdPartyCount=function(){var e=tP(this.data)?this.data.getVendorsCount():0;return this.getServicesData().length+e},e}(),n4=function(){function e(){this.restoreAction=null,this.apiInstance=nl.getInstance(),this.controllerIdInstance=nn.getInstance(),this.eventDispatcherInstance=n_.getInstance(),this.settingsV2=n3.getInstance(),this.botInstance=nv.getInstance()}return e.getInstance=function(){return e.instance||(e.instance=new e),e.instance},e.resetInstance=function(){delete e.instance.userSessionData},e.prototype.execute=function(e,t,n,s,i,r){var o,a,c,u=this.settingsV2.getDataTransferSettings();if(u){var l=e.map(function(e){return eX(u,e,n,s,e.categorySlug)}),d=n6(t,l);if(!this.botInstance.isRobot()&&(r&&this.apiInstance.saveConsentsV1_DEPRECATED({consentString:i,dataTransferObjects:l}),null==(o=this.settingsV2.core)?void 0:o.consentAPIv2)){var h=e$({consentAction:n,consentString:i,dataTransferSettings:u,isAnalyticsEnabled:null==(a=this.settingsV2.core)?void 0:a.consentAnalytics,isCcpa:this.settingsV2.isCcpaEnabled(),isConsentXDeviceEnabled:null==(c=this.settingsV2.core)?void 0:c.consentXDevice,isTcf:!1,services:e});this.apiInstance.saveConsents(h)}this.settingsV2.setCategories(this.settingsV2.mergeServicesDataIntoExistingCategories(d));var p,g=this.settingsV2.getServicesDataAndLabels(),f=eY.mapSettings(u,g);eY.saveSettings(f,g),nM.enableScriptsForServicesWithConsent(this.settingsV2.getServicesWithConsent());var S=this.settingsV2.getTcfData();S&&S.advertiserConsentModeEnabled&&(p=S.getTCFData().vendors.find(function(e){return 755===e.id})),this.eventDispatcherInstance.dispatch(l,p,this.settingsV2.getGoogleConsentMode())}},e.prototype.getMergedServicesAndSettingsFromStorage=function(e){var t=eY.fetchSettings();if(t&&e){var n=this.settingsV2.getServicesFromCategories(this.settingsV2.getEssentialCategories()),s=this.settingsV2.getServicesFromCategories(this.settingsV2.getEssentialCategoriesData()),i=this.settingsV2.getServicesFromCategories(this.settingsV2.getNonEssentialCategories()),r=this.settingsV2.getServicesFromCategories(this.settingsV2.getNonEssentialCategoriesData()),o=this.getMergedAndUpdatedEssentialServices(n,t),a=this.getMergedAndUpdatedEssentialServices(s,t),c=this.getMergedNonEssentialServices(i,t),u=this.getMergedNonEssentialServices(r,t);return t.controllerId!==this.controllerIdInstance.value&&""===this.controllerIdInstance.value&&(this.controllerIdInstance.value=t.controllerId,e.controllerId=t.controllerId,tP(e)&&e.updateControllerId(t.controllerId)),{dataTransferSettings:this.settingsV2.getDataTransferSettings(),mergedServices:o.mergedEssentialServices.concat(c),mergedServicesData:a.mergedEssentialServices.concat(u),mergedSettingsData:e,updatedEssentialServices:o.updatedEssentialServices}}return{dataTransferSettings:null,mergedServices:[],mergedServicesData:[],mergedSettingsData:e,updatedEssentialServices:[]}},e.prototype.getLatestConsentType=function(e){return e.length>0?e[e.length-1].type:"implicit"},e.prototype.getLatestConsentAction=function(e){return e.length>0?e[e.length-1].action:"onInitialPageLoad"},e.prototype.setUserSessionData=function(e){this.userSessionData=e},e.prototype.mergeServicesAndSettings=function(e,t,n,s,i,r){var o,a,c,u=this;if(!n)return[];if(eq(s)){var l=s.map(function(e){return eX(n,e,"onEssentialChange",u.getLatestConsentType(e.consent.history),null==e?void 0:e.categorySlug)}
1),d=n6(t,l),h=n5(t,d,i);if(r&&this.apiInstance.saveConsentsV1_DEPRECATED({dataTransferObjects:l}),null==(o=this.settingsV2.core)?void 0:o.consentAPIv2){var p=e$({consentAction:"onEssentialChange",dataTransferSettings:n,isAnalyticsEnabled:null==(a=this.settingsV2.core)?void 0:a.consentAnalytics,isCcpa:this.settingsV2.isCcpaEnabled(),isConsentXDeviceEnabled:null==(c=this.settingsV2.core)?void 0:c.consentXDevice,isTcf:this.settingsV2.isTcfAvailable(),services:s});this.apiInstance.saveConsents(p)}this.settingsV2.setCategories(this.settingsV2.mergeServicesDataIntoExistingCategories(d)),eY.saveSettings(eY.mapSettings(n,h),h)}else this.settingsV2.setCategories(this.settingsV2.mergeServicesDataIntoExistingCategories(t)),eY.saveSettings(eY.mapSettings(n,e),e);return e.map(function(e){return eX(n,e,u.getLatestConsentAction(e.consent.history),u.getLatestConsentType(e.consent.history),null==e?void 0:e.categorySlug)})},e.prototype.restoreUserSession=function(e){var t,n,s;return G(this,void 0,void 0,function(){var i;return B(this,function(r){switch(r.label){case 0:return this.controllerIdInstance.value&&this.controllerIdInstance.needsSessionRestore&&(!(null==(t=this.settingsV2.core)?void 0:t.consentAPIv2)||(null==(n=this.settingsV2.core)?void 0:n.consentAPIv2)&&(null==(s=this.settingsV2.core)?void 0:s.consentXDevice))?[4,this.getCrossDeviceSessionData(this.controllerIdInstance.value)]:[3,2];case 1:i=r.sent(),r.label=2;case 2:if(!i&&this.userSessionData&&(i=F({},this.userSessionData)),!i&&window[ey]&&"function"==typeof window[ey].getUserSessionData)try{(null==(i=JSON.parse(window[ey].getUserSessionData(),function(e,t){if("timestamp"===e){var n=t.toString();return -1!==n.indexOf(".")?1e3*Number(n):Number(n)}return t}))?void 0:i.consents)&&(null==i?void 0:i.consents.length)&&!i.consents.every(function(e){return e.action})&&(i.consents=i.consents.map(function(e){return F(F({},e),{action:"onMobileSessionRestore"})}),this.restoreAction="onMobileSessionRestore")}catch(e){}return i||!eG.isCrossDomainAvailable()?[3,4]:[4,this.getCrossDomainSessionData()];case 3:i=r.sent(),r.label=4;case 4:return i&&i.controllerId?[2,this.restoreData(i,e)]:(this.controllerIdInstance.needsSessionRestore=!1,[2,!1])}})})},e.prototype.getCrossDomainSessionData=function(){return G(this,void 0,void 0,function(){return B(this,function(e){switch(e.label){case 0:return[4,eG.getCrossDomainSessionData().catch(function(){return console.warn(eI.CROSS_DOMAIN_DATA_NOT_AVAILABLE),{}})];case 1:return[2,e.sent()]}})})},e.prototype.getCrossDeviceSessionData=function(e){var t,n;return G(this,void 0,void 0,function(){var s,i,r,o,a,c,u,l,d,h;return B(this,function(p){switch(p.label){case 0:return s=["dWLDa0s-m","VkvM9IcSA","Zdgjo9gQh","r2tAWzO7","GVl-ixMH"],i=this.apiInstance.getSettingsId(),r=this.settingsV2.isTcfAvailable(),[4,this.settingsV2.isCcpaAvailable()];case 1:return o=p.sent(),a=null==(t=this.settingsV2.core)?void 0:t.consentAPIv2,c=[],u=null,l=null,a?[4,this.apiInstance.fetchUserConsentsV2(r,o).catch(function(){return console.warn(eE.CROSS_DEVICE_DATA_NOT_AVAILABLE),null})]:[3,3];case 2:return c=null!=(n=null==(d=p.sent())?void 0:d.consents)?n:[],r&&(-1===s.indexOf(i)&&this.settingsV2.isTcfHistoryV2Disabled()||(u=null==d?void 0:d.tcf)),o&&(l=null==d?void 0:d.ccpa),[3,8];case 3:return[4,this.apiInstance.fetchUserConsents().catch(function(){return console.warn(eE.CROSS_DEVICE_DATA_NOT_AVAILABLE),[]})];case 4:return c=p.sent(),r?-1===s.indexOf(i)?[3,6]:[4,this.apiInstance.fetchUserTcfData().catch(function(){return console.warn(eE.CROSS_DEVICE_TCF_DATA_NOT_AVAILABLE),null})]:[3,8];case 5:return u=p.sent(),[3,8];case 6:return this.settingsV2.isTcfHistoryV2Disabled()?[3,8]:[4,this.apiInstance.fetchUserTcfDataV2().catch(function(){return console.warn(eE.CROSS_DEVICE_TCF_DATA_NOT_AVAILABLE),null})];case 7:u=p.sent(),p.label=8;case 8:return r&&!u&&eG.isCrossDomainAvailable()?[4,this.getCrossDomainSessionData()]:[3,10];case 9:(h=p.sent())&&h.tcf&&h.controllerId===e&&(u=h.tcf),p.label=10;case 10:return[2,F(F({consents:c,controllerId:e,language:this.apiInstance.getJsonFileLanguage()},null!==u&&{tcf:u}),null!==l&&{ccpa:l})]}})})},e.prototype.restoreData=function(e,t){return G(this,void 0,void 0,function(){var n,s,i,r,o,a,c,u,l,d,h,p,g,f,S,v,E,I,T=this;return B(this,function(C){switch(C.label){case 0:return n=e.controllerId,s=e.consents,i=e.tcf,r=e.ccpa,o=this.settingsV2.core,a=this.getDataFacadeServices(t),c=eY.fetchControllerId(),this.controllerIdInstance.value=n,u=eY.fetchTCFData(),l=!1,n&&(eq(s)||!a.length)?(d=n8(s),h=eY.fetchServices(),"onSessionRestored"===e.consents[0].action&&n===c&&h.length===d.length&&h[0].history.length>0&&h[0].history[0].action&&"onSessionRestored"===h[0].history[0].action?[3,5]:[3,1]):[3,5];case 1:return!eq(d)&&a.length?[3,5]:(p=[],g=[],d.forEach(function(e){var t=a.findIndex(function(t){return t.id===e.templateId});if(t>-1){var n=a[t];n.consent.status=e.status;var s=g.findIndex(function(e){return e.id===n.id});-1===s?g.push(n):g[s]=n,a[t]=n;var i=T.settingsV2.getDataTransferSettings(e.settingsVersion);i&&p.push(eX(i,n,e.action,e.updatedBy,n.categorySlug,{timestamp:"string"==typeof e.timestamp?T.resolveTimestamp(e.timestamp):e.timestamp}))}}),this.settingsV2.data&&this.settingsV2.setControllerId(n),f=void 0,S=void 0,o&&d.length&&(S=e0(d.map(function(e){return e.settingsVersion})).sort(tu)).length&&(f=S[S.length-1]),v=n6(a,p),(E=this.settingsV2.getDataTransferSettings(f))?c&&n&&n!==c?[4,eY.clearAll()]:[3,3]:[3,4]);
1case 2:C.sent(),C.label=3;case 3:eY.saveSettings(eY.mapSettings(E,v),v),C.label=4;case 4:eq(d)&&eY.setUserActionPerformed(!0),l=!0,C.label=5;case 5:return i&&i.tcString&&(i.tcString!==u.tcString||i.acString!==u.acString)&&(eY.saveTCFData(i),a.length||eY.setUserActionPerformed(!0)),I=this.settingsV2.getCcpaData(),r&&r.ccpaString&&I&&(I.setIsOptedOut(r.ccpaString),eY.setCcpaString(r.ccpaString),r.timestamp?eY.setCcpaTimeStamp(r):eY.clearCcpaData(),eY.setUserActionPerformed(!0)),[2,l]}})})},e.prototype.getDataFacadeServices=function(e){var t=this.settingsV2.checkIfServiceNameExists,n=e.categories,s=e.consentTemplates;if(s.length>0&&t(s))return s.map(function(e){var t,s=n.find(function(t){return t.categorySlug===e.categorySlug});return{categorySlug:e.categorySlug,consent:nF(e,s),id:e.templateId,name:(null==(t=e._meta)?void 0:t.name)||"",processorId:"".concat(t5(nt())),version:e.version}});var i=this.settingsV2.getServicesDataAndLabels();return i.length>0?i.map(function(e){return{categorySlug:e.categorySlug,consent:e.consent,id:e.id,name:e.name,processorId:e.processorId,version:e.version}}):[]},e.prototype.getMergedAndUpdatedEssentialServices=function(e,t){var n=this,s=[];return{mergedEssentialServices:e.map(function(e){var i,r,o=null==(i=t.services)?void 0:i.find(function(t){return t.id===e.id});return o&&(e.consent.history=o.history,e.consent.status=!0,e.processorId=o.processorId,e.categorySlug=(null==(r=n.settingsV2.getCategoriesBaseData().find(function(t){return t.services.some(function(t){return t.id===e.id})}))?void 0:r.slug)||"",o.status||s.push(e)),e}),updatedEssentialServices:s}},e.prototype.getMergedNonEssentialServices=function(e,t){return e.map(function(e){var n,s,i=null==(n=t.services)?void 0:n.find(function(t){return t.id===e.id});if(i)return(r=e).consent.history=i.history,r.consent.status=i.status,r.processorId=i.processorId,r;if(0===e.consent.history.length){var r=e,o=null==(s=t.services)?void 0:s.find(function(e){return e.history.length>0});return r.consent.history=[{action:"onInitialPageLoad",language:e.language?e.language.selected:"en",status:e.consent.status,timestamp:(new Date).getTime(),type:"implicit",versions:o&&o.history.length>0?o.history[0].versions:{application:"",service:e.version,settings:""}}],r}return e})},e.prototype.resolveTimestamp=function(e){return 10===e.length?1e3*parseInt(e,10):parseInt(e,10)},e}(),n6=function(e,t){return e.map(function(e){var n=t.filter(function(t){return t.service.id===e.id});if(eq(n)){var s=e.consent.history,i=s.length+n.length,r=i<=3?s:s.slice(i-3);return e.consent.history=H(H([],x(r),!1),x(n.map(function(e){return n7(e)})),!1),e}return e})},n5=function(e,t,n){return e.reduce(function(e,s){var i=t.find(function(e){return e.id===s.id}),r=n.find(function(e){return e.id===s.id});return i&&r?H(H([],x(e),!1),[{categorySlug:s.categorySlug,consent:i.consent,id:s.id,language:s.language,name:r.name,processorId:s.processorId,version:s.version}],!1):H([],x(e),!1)},[])},n7=function(e){return{action:e.consent.action,language:e.settings.language,status:e.consent.status,timestamp:e.timestamp,type:e.consent.type,versions:{application:e.applicationVersion,service:e.service.version,settings:e.settings.version}}},n8=function(e){return e.filter(function(e){return!tJ.includes(e.action)})},n9=u(function e(t,n,s,i){a(this,e),d(this,"eventName",void 0),d(this,"listenerId",void 0),d(this,"data",void 0),d(this,"pingData",void 0),this.eventName=t,this.listenerId=n,this.data=s,this.pingData=i}),se=u(function e(t){a(this,e),d(this,"gppVersion",void 0),d(this,"cmpStatus",void 0),d(this,"cmpDisplayStatus",void 0),d(this,"signalStatus",void 0),d(this,"supportedAPIs",void 0),d(this,"cmpId",void 0),d(this,"sectionList",void 0),d(this,"applicableSections",void 0),d(this,"gppString",void 0),d(this,"parsedSections",void 0),this.gppVersion=t.gppVersion,this.cmpStatus=t.cmpStatus,this.cmpDisplayStatus=t.cmpDisplayStatus,this.signalStatus=t.signalStatus,this.supportedAPIs=t.supportedAPIs,this.cmpId=t.cmpId,this.sectionList=t.gppModel.getSectionIds(),this.applicableSections=t.applicableSections,this.gppString=t.gppModel.encode(),this.parsedSections=t.gppModel.toObject()}),st=u(function e(t,n,s){a(this,e),d(this,"callback",void 0),d(this,"parameter",void 0),d(this,"success",!0),d(this,"cmpApiContext",void 0),this.cmpApiContext=t,Object.assign(this,{callback:n,parameter:s}
1)},[{key:"execute",value:function(){try{return this.respond()}catch(e){return this.invokeCallback(null),null}}},{key:"invokeCallback",value:function(e){this.callback&&this.callback(e,null!==e)}}]),sn=function(){function e(){return a(this,e),o(this,e,arguments)}return g(e,st),u(e,[{key:"respond",value:function(){var e=new n9("listenerRegistered",this.cmpApiContext.eventQueue.add({callback:this.callback,parameter:this.parameter}),!0,new se(this.cmpApiContext));this.invokeCallback(e)}}])}(),ss=function(){function e(){return a(this,e),o(this,e,arguments)}return g(e,st),u(e,[{key:"respond",value:function(){var e=new se(this.cmpApiContext);this.invokeCallback(e)}}])}(),si=function(){function e(){return a(this,e),o(this,e,arguments)}return g(e,st),u(e,[{key:"respond",value:function(){if(!this.parameter||0===this.parameter.length)throw Error("<section>.<field> parameter required");var e=this.parameter.split(".");if(2!=e.length)throw Error("Field name must be in the format <section>.<fieldName>");var t=e[0],n=e[1],s=this.cmpApiContext.gppModel.getFieldValue(t,n);this.invokeCallback(s)}}])}(),sr=function(){function e(){return a(this,e),o(this,e,arguments)}return g(e,st),u(e,[{key:"respond",value:function(){if(!this.parameter||0===this.parameter.length)throw Error("<section> parameter required");var e=null;this.cmpApiContext.gppModel.hasSection(this.parameter)&&(e=this.cmpApiContext.gppModel.getSection(this.parameter)),this.invokeCallback(e)}}])}(),so=function(){function e(){return a(this,e),o(this,e,arguments)}return g(e,st),u(e,[{key:"respond",value:function(){if(!this.parameter||0===this.parameter.length)throw Error("<section>[.version] parameter required");var e=this.cmpApiContext.gppModel.hasSection(this.parameter);this.invokeCallback(e)}}])}();(sa=nV||(nV={})).ADD_EVENT_LISTENER="addEventListener",sa.GET_FIELD="getField",sa.GET_SECTION="getSection",sa.HAS_SECTION="hasSection",sa.PING="ping",sa.REMOVE_EVENT_LISTENER="removeEventListener";var sa,sc,su,sl,sd,sh,sp,sg=function(){function e(){return a(this,e),o(this,e,arguments)}return g(e,st),u(e,[{key:"respond",value:function(){var e=this.parameter,t=this.cmpApiContext.eventQueue.remove(e),n=new n9("listenerRemoved",e,t,new se(this.cmpApiContext));this.invokeCallback(n)}}])}();sc=nV.ADD_EVENT_LISTENER,su=nV.GET_FIELD,sl=nV.GET_SECTION,sd=nV.HAS_SECTION,sh=nV.PING,sp=nV.REMOVE_EVENT_LISTENER;var sf,sS,sv,sE,sI=u(function e(){a(this,e)});d(sI,sc,sn),d(sI,su,si),d(sI,sl,sr),d(sI,sd,so),d(sI,sh,ss),d(sI,sp,sg),(sO=sf||(sf={})).STUB="stub",sO.LOADING="loading",sO.LOADED="loaded",sO.ERROR="error",(sN=sS||(sS={})).VISIBLE="visible",sN.HIDDEN="hidden",sN.DISABLED="disabled",(sb=sv||(sv={})).GPP_LOADED="gpploaded",sb.CMP_UI_SHOWN="cmpuishown",sb.USER_ACTION_COMPLETE="useractioncomplete",(sD=sE||(sE={})).NOT_READY="not ready",sD.READY="ready";var sT=u(function e(t,n){if(a(this,e),d(this,"callQueue",void 0),d(this,"customCommands",void 0),d(this,"cmpApiContext",void 0),this.cmpApiContext=t,n){var s=nV.ADD_EVENT_LISTENER;if(null!=n&&n[s]||(s=nV.REMOVE_EVENT_LISTENER,null!=n&&n[s]))throw Error("Built-In Custom Commmand for ".concat(s," not allowed"));this.customCommands=n}try{this.callQueue=window.__gpp()||[]}catch(e){this.callQueue=[]}finally{window.__gpp=this.apiCall.bind(this),this.purgeQueuedCalls()}},[{key:"apiCall",value:function(e,t,n,s){if("string"!=typeof e)t(null,!1);else{if(t&&"function"!=typeof t)throw Error("invalid callback function");this.isCustomCommand(e)?this.customCommands[e](t,n):this.isBuiltInCommand(e)?new sI[e](this.cmpApiContext,t,n).execute():t&&t(null,!1)}}},{key:"purgeQueuedCalls",value:function(){var e=this.callQueue;this.callQueue=[],e.forEach(function(e){var t;(t=window).__gpp.apply(t,_(e))})}},{key:"isCustomCommand",value:function(e){return this.customCommands&&"function"==typeof this.customCommands[e]}},{key:"isBuiltInCommand",value:function(e){return void 0!==sI[e]}}]),sC=u(function e(t){a(this,e),d(this,"eventQueue",new Map),d(this,"queueNumber",1e3),d(this,"cmpApiContext",void 0),this.cmpApiContext=t;try{for(var n=window.__gpp("events")||[],s=0;s<n.length;s++){var i=n[s];this.eventQueue.set(i.id,{callback:i.callback,parameter:i.parameter})}}catch(e){console.log(e)}},[{key:"add",value:function(e){return this.eventQueue.set(this.queueNumber,e),this.queueNumber++}},{key:"get",value:function(e){return this.eventQueue.get(e)}},{key:"remove",value:function(e){return this.eventQueue.delete(e)}},{key:"exec",value:function(e,t){var n=this;this.eventQueue.forEach(function(s,i){var r=new n9(e,i,t,new se(n.cmpApiContext));s.callback(r,!0)})}},{key:"clear",value:function(){this.queueNumber=1e3,this.eventQueue.clear()}},{key:"size",get:function(){return this.eventQueue.size}}]),s_=function(){function e(t){var n;return a(this,e),(n=o(this,e,[t])).name="DecodingError",n}return g(e,O(Error)),u(e)}(),sy=u(function e(){a(this,e)},null,[{key:"encode",value:function(e,t){var n=[];if(e>=1)for(n.push(1);e>=2*n[0];)n.unshift(2*n[0]);for(var s="",i=0;i<n.length;i++){var r=n[i];e>=r?(s+="1",e-=r):s+="0"}for(;s.length<t;)s="0"+s;return s}},{key:"decode",value:function(e){if(!/^[0-1]*$/.test(e))throw new s_("Undecodable FixedInteger '"+e+"'");for(var t=0,n=[],s=0;s<e.length;s++)n[e.length-(s+1)]=0===s?1:2*n[e.length-s];for(var i=0;i<e.length;i++)"1"===e.charAt(i)&&(t+=n[i]);return t}}]),sA=function(){function e(t){var n;return a(this,e),(n=o(this,e,[t])).name="EncodingError",n}return g(e,O(Error)),u(e)}(),sm=function(){function e(){a(this,e)}return u(e,[{key:"encode",value:function(t){if(!/^[0-1]*$/.test(t))throw new sA("Unencodable Base64Url '"+t+"'");t=this.pad(t);for(var n="",s=0;s<=t.length-6;){var i=t.substring(s,s+6);try{var r=sy.decode(i);n+=e.DICT.charAt(r),s+=6}catch(e){throw new sA("Unencodable Base64Url '"+t+"'")}}return n}},{key:"decode",value:function(t){if(!/^[A-Za-z0-9\-_]*$/.test(t))throw new s_("Undecodable Base64URL string");for(var n="",s=0;s<t.length;s++){var i=t.charAt(s),r=e.REVERSE_DICT.get(i);n+=sy.encode(r,6)}return n}}])}();d(sm,"DICT","ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"),d(sm,"REVERSE_DICT",new Map([["A",0],["B",1],["C",2],["D",3],["E",4],["F",5],["G",6],["H",7],["I",8],["J",9],["K",10],["L",11],["M",12],["N",13],["O",14],["P",15],["Q",16],["R",17],["S",18],["T",19],["U",20],["V",21],["W",22],["X",23],["Y",24],["Z",25],["a",26],["b",27],["c",28],["d",29],["e",30],["f",31],["g",32],["h",33],["i",34],["j",35],["k",36],["l",37],["m",38],["n",39],["o",40],["p",41],["q",42],["r",43],["s",44],["t",45],["u",46],["v",47],["w",48],["x",49],["y",50],["z",51],["0",52],["1",53],["2",54],["3",55],["4",56],["5",57],["6",58],["7",59],["8",60],["9",61],["-",62],["_",63]]));var sO,sN,sb,sD,sR,sw=function(){function e(){return a(this,e),o(this,e,arguments)}return g(e,sm),u(e,[{key:"pad",value:function(e){for(;e.length%8>0;)e+="0";for(;e.length%6>0;)e+="0";return e}}])}(),sL=u(function e(){a(this,e)},null,[{key:"encode",value:function(e){var t=[];if(e>=1&&(t.push(1),e>=2)){t.push(2);for(var n=2;e>=t[n-1]+t[n-2];)t.push(t[n-1]+t[n-2]),n++}for(var s="1",i=t.length-1;i>=0;i--){var r=t[i];e>=r?(s="1"+s,e-=r):s="0"+s}return s}},{key:"decode",value:function(e){if(!/^[0-1]*$/.test(e)||e.length<2||e.indexOf("11")!==e.length-2)throw new s_("Undecodable FibonacciInteger '"+e+"'");for(var t=0,n=[],s=0;s<e.length-1;s++)0===s?n.push(1):1===s?n.push(2):n.push(n[s-1]+n[s-2]);for(var i=0;i<e.length-1;i++)"1"===e.charAt(i)&&(t+=n[i]);return t}}]),sP=u(function e(){a(this,e)},null,[{key:"encode",value:function(e){if(!0===e)return"1";if(!1===e)return"0";throw new sA("Unencodable Boolean '"+e+"'")}},{key:"decode",value:function(e){if("1"===e)return!0;
1if("0"===e)return!1;throw new s_("Undecodable Boolean '"+e+"'")}}]),sV=u(function e(){a(this,e)},null,[{key:"encode",value:function(e){e=e.sort(function(e,t){return e-t});for(var t=[],n=0,s=0;s<e.length;){for(var i=s;i<e.length-1&&e[i]+1===e[i+1];)i++;t.push(e.slice(s,i+1)),s=i+1}for(var r=sy.encode(t.length,12),o=0;o<t.length;o++)if(1==t[o].length){var a=t[o][0]-n;n=t[o][0],r+="0"+sL.encode(a)}else{var c=t[o][0]-n;n=t[o][0];var u=t[o][t[o].length-1]-n;n=t[o][t[o].length-1],r+="1"+sL.encode(c)+sL.encode(u)}return r}},{key:"decode",value:function(e){if(!/^[0-1]*$/.test(e)||e.length<12)throw new s_("Undecodable FibonacciIntegerRange '"+e+"'");for(var t=[],n=sy.decode(e.substring(0,12)),s=0,i=12,r=0;r<n;r++){var o=sP.decode(e.substring(i,i+1));if(i++,!0===o){var a=e.indexOf("11",i),c=sL.decode(e.substring(i,a+2))+s;s=c,i=a+2,a=e.indexOf("11",i);var u=sL.decode(e.substring(i,a+2))+s;s=u,i=a+2;for(var l=c;l<=u;l++)t.push(l)}else{var d=e.indexOf("11",i),h=sL.decode(e.substring(i,d+2))+s;s=h,t.push(h),i=d+2}}return t}}]),sU=u(function e(){a(this,e),d(this,"value",void 0)},[{key:"hasValue",value:function(){return void 0!==this.value&&null!==this.value}},{key:"getValue",value:function(){return this.value}},{key:"setValue",value:function(e){this.value=e}}]),sM=function(){function e(t){var n;return a(this,e),(n=o(this,e)).setValue(t),n}return g(e,sU),u(e,[{key:"encode",value:function(){return sV.encode(this.value)}},{key:"decode",value:function(e){this.value=sV.decode(e)}},{key:"substring",value:function(e,t){for(var n=sy.decode(e.substring(t,t+12)),s=t+12,i=0;i<n;i++)s="1"===e.charAt(s)?e.indexOf("11",e.indexOf("11",s+1)+2)+2:e.indexOf("11",s+1)+2;return e.substring(t,s)}},{key:"getValue",value:function(){return _(C(e,"getValue",this,3)([]))}},{key:"setValue",value:function(t){C(e,"setValue",this,3)([Array.from(new Set(t)).sort(function(e,t){return e-t})])}}])}(),sk=function(){function e(t,n){var s;return a(this,e),d(s=o(this,e),"bitStringLength",void 0),s.bitStringLength=t,s.setValue(n),s}return g(e,sU),u(e,[{key:"encode",value:function(){return sy.encode(this.value,this.bitStringLength)}},{key:"decode",value:function(e){this.value=sy.decode(e)}},{key:"substring",value:function(e,t){return e.substring(t,t+this.bitStringLength)}}])}();(sB=sR||(sR={})).ID="Id",sB.VERSION="Version",sB.SECTION_IDS="SectionIds";var sF=u(function e(t,n){a(this,e),d(this,"fields",void 0),d(this,"fieldOrder",void 0),this.fields=t,this.fieldOrder=n},[{key:"hasField",value:function(e){return this.fields.has(e)}},{key:"getFieldValue",value:function(e){return this.fields.has(e)?this.fields.get(e).getValue():null}},{key:"setFieldValue",value:function(e,t){if(!this.fields.has(e))throw Error(e+" not found");this.fields.get(e).setValue(t)}},{key:"getFieldOrder",value:function(){return this.fieldOrder}},{key:"encodeToBitString",value:function(){for(var e="",t=0;t<this.fieldOrder.length;t++){var n=this.fieldOrder[t];if(!this.fields.has(n))throw Error("Field not found: '"+n+"'");e+=this.fields.get(n).encode()}return e}},{key:"decodeFromBitString",value:function(e){for(var t=0,n=0;n<this.fieldOrder.length;n++){var s=this.fieldOrder[n];if(!this.fields.has(s))throw Error("Field not found: '"+s+"'");var i=this.fields.get(s),r=i.substring(e,t);i.decode(r),t+=r.length}}},{key:"toObj",value:function(){for(var e={},t=0;t<this.fieldOrder.length;t++){var n=this.fieldOrder[t];if(this.fields.has(n)){var s=this.fields.get(n).getValue();e[n]=s}}return e}}]),sG=function(){function e(t){a(this,e);var n,s=new Map;return s.set(sR.ID.toString(),new sk(6,e.ID)),s.set(sR.VERSION.toString(),new sk(6,e.VERSION)),s.set(sR.SECTION_IDS.toString(),new sM([])),d(n=o(this,e,[s,[sR.ID.toString(),sR.VERSION.toString(),sR.SECTION_IDS.toString()]]),"base64UrlEncoder",new sw),t&&t.length>0&&n.decode(t),n}return g(e,sF),u(e,[{key:"encode",value:function(){var e=this.encodeToBitString();return this.base64UrlEncoder.encode(e)}},{key:"decode",value:function(e){var t=this.base64UrlEncoder.decode(e);this.decodeFromBitString(t)}},{key:"getId",value:function(){return e.ID}},{key:"getName",value:function(){return e.NAME}}])}();d(sG,"ID",3),d(sG,"VERSION",1),d(sG,"NAME","header");var sB,sx,sH=function(){function e(t){var n;return a(this,e),(n=o(this,e,[t])).name="InvalidFieldError",n}return g(e,O(Error)),u(e)}(),sj=function(){function e(t){var n;return a(this,e),(n=o(this,e,[t])).name="LazyDecodingError",n}return g(e,s_),u(e)}(),sY=function(){function e(t){var n;return a(this,e),(n=o(this,e)).setValue(t),n}return g(e,sU),u(e,[{key:"encode",value:function(){return sP.encode(this.value)}},{key:"decode",value:function(e){this.value=sP.decode(e)}},{key:"substring",value:function(e,t){return e.substring(t,t+1)}}])}(),sJ=u(function e(){a(this,e)},null,[{key:"encode",value:function(e){return e?sy.encode(Math.round(e.getTime()/100),36):sy.encode(0,36
1)}},{key:"decode",value:function(e){if(!/^[0-1]*$/.test(e)||36!==e.length)throw new s_("Undecodable Datetime '"+e+"'");return new Date(100*sy.decode(e))}}]),sW=function(){function e(t){var n;return a(this,e),(n=o(this,e)).setValue(t),n}return g(e,sU),u(e,[{key:"encode",value:function(){return sJ.encode(this.value)}},{key:"decode",value:function(e){this.value=sJ.decode(e)}},{key:"substring",value:function(e,t){return e.substring(t,t+36)}}])}(),sK=u(function e(){a(this,e)},null,[{key:"encode",value:function(e,t){for(var n="",s=0;s<e.length;s++)n+=sP.encode(e[s]);for(;n.length<t;)n+="0";return n}},{key:"decode",value:function(e){if(!/^[0-1]*$/.test(e))throw new s_("Undecodable FixedBitfield '"+e+"'");for(var t=[],n=0;n<e.length;n++)t.push(sP.decode(e.substring(n,n+1)));return t}}]),sq=function(){function e(t,n){var s;return a(this,e),d(s=o(this,e),"getLength",void 0),s.getLength=t,s.setValue(n),s}return g(e,sU),u(e,[{key:"encode",value:function(){return sK.encode(this.value,this.getLength())}},{key:"decode",value:function(e){this.value=sK.decode(e)}},{key:"substring",value:function(e,t){return e.substring(t,t+this.getLength())}},{key:"getValue",value:function(){return _(C(e,"getValue",this,3)([]))}},{key:"setValue",value:function(t){for(var n=this.getLength(),s=_(t),i=s.length;i<n;i++)s.push(!1);s.length>n&&(s=s.slice(0,n)),C(e,"setValue",this,3)([_(s)])}}])}(),sQ=function(){function e(t){var n;return a(this,e),d(n=o(this,e),"numElements",void 0),n.numElements=t.length,n.setValue(t),n}return g(e,sU),u(e,[{key:"encode",value:function(){return sK.encode(this.value,this.numElements)}},{key:"decode",value:function(e){this.value=sK.decode(e)}},{key:"substring",value:function(e,t){return e.substring(t,t+this.numElements)}},{key:"getValue",value:function(){return _(C(e,"getValue",this,3)([]))}},{key:"setValue",value:function(t){for(var n=_(t),s=n.length;s<this.numElements;s++)n.push(!1);n.length>this.numElements&&(n=n.slice(0,this.numElements)),C(e,"setValue",this,3)([n])}}])}(),sz=u(function e(){a(this,e)},null,[{key:"encode",value:function(e,t){for(;e.length<t;)e+=" ";for(var n="",s=0;s<e.length;s++){var i=e.charCodeAt(s);if(32===i)n+=sy.encode(63,6);else{if(!(i>=65))throw new sA("Unencodable FixedString '"+e+"'");n+=sy.encode(e.charCodeAt(s)-65,6)}}return n}},{key:"decode",value:function(e){if(!/^[0-1]*$/.test(e)||e.length%6!=0)throw new s_("Undecodable FixedString '"+e+"'");for(var t="",n=0;n<e.length;n+=6){var s=sy.decode(e.substring(n,n+6));t+=63===s?" ":String.fromCharCode(s+65)}return t.trim()}}]),sX=function(){function e(t,n){var s;return a(this,e),d(s=o(this,e),"stringLength",void 0),s.stringLength=t,s.setValue(n),s}return g(e,sU),u(e,[{key:"encode",value:function(){return sz.encode(this.value,this.stringLength)}},{key:"decode",value:function(e){this.value=sz.decode(e)}},{key:"substring",value:function(e,t){return e.substring(t,t+6*this.stringLength)}}])}(),s$=u(function e(t,n){a(this,e),d(this,"fields",void 0),d(this,"segments",void 0),this.fields=t,this.segments=n},[{key:"hasField",value:function(e){return this.fields.has(e)}},{key:"getFieldValue",value:function(e){return this.fields.has(e)?this.fields.get(e).getValue():null}},{key:"setFieldValue",value:function(e,t){if(!this.fields.has(e))throw Error(e+" not found");this.fields.get(e).setValue(t)}},{key:"getSegments",value:function(){return this.segments}},{key:"encodeSegmentsToBitStrings",value:function(){for(var e=[],t=0;t<this.segments.length;t++){for(var n="",s=0;s<this.segments[t].length;s++){var i=this.segments[t][s];if(!this.fields.has(i))throw Error("Field not found: '"+i+"'");try{n+=this.fields.get(i).encode()}catch(e){throw Error("Unable to encode "+i)}}
1e.push(n)}return e}},{key:"decodeSegmentsFromBitStrings",value:function(e){for(var t=0;t<this.segments.length&&t<e.length;t++){var n=e[t];if(n&&n.length>0)for(var s=0,i=0;i<this.segments[t].length;i++){var r=this.segments[t][i];if(!this.fields.has(r))throw Error("Field not found: '"+r+"'");try{var o=this.fields.get(r),a=o.substring(n,s);o.decode(a),s+=a.length}catch(e){throw Error("Unable to decode "+r)}}}}},{key:"toObj",value:function(){for(var e={},t=0;t<this.segments.length;t++)for(var n=0;n<this.segments[t].length;n++){var s=this.segments[t][n];if(this.fields.has(s)){var i=this.fields.get(s).getValue();e[s]=i}}return e}}]),sZ=u(function e(){a(this,e)},null,[{key:"encode",value:function(e){e.sort(function(e,t){return e-t});for(var t=[],n=0;n<e.length;){for(var s=n;s<e.length-1&&e[s]+1===e[s+1];)s++;t.push(e.slice(n,s+1)),n=s+1}for(var i=sy.encode(t.length,12),r=0;r<t.length;r++)1===t[r].length?i+="0"+sy.encode(t[r][0],16):i+="1"+sy.encode(t[r][0],16)+sy.encode(t[r][t[r].length-1],16);return i}},{key:"decode",value:function(e){if(!/^[0-1]*$/.test(e)||e.length<12)throw new s_("Undecodable FixedIntegerRange '"+e+"'");for(var t=[],n=sy.decode(e.substring(0,12)),s=12,i=0;i<n;i++){var r=sP.decode(e.substring(s,s+1));if(s++,!0===r){var o=sy.decode(e.substring(s,s+16));s+=16;var a=sy.decode(e.substring(s,s+16));s+=16;for(var c=o;c<=a;c++)t.push(c)}else{var u=sy.decode(e.substring(s,s+16));t.push(u),s+=16}}return t}}]),s0=function(){function e(t){var n;return a(this,e),(n=o(this,e)).setValue(t),n}return g(e,sU),u(e,[{key:"encode",value:function(){return sZ.encode(this.value)}},{key:"decode",value:function(e){this.value=sZ.decode(e)}},{key:"substring",value:function(e,t){for(var n=sy.decode(e.substring(t,t+12)),s=t+12,i=0;i<n;i++)"1"===e.charAt(s)?s+=33:s+=17;return e.substring(t,s)}},{key:"getValue",value:function(){return _(C(e,"getValue",this,3)([]))}},{key:"setValue",value:function(t){C(e,"setValue",this,3)([Array.from(new Set(t)).sort(function(e,t){return e-t})])}}])}(),s1=function(){function e(t){var n;return a(this,e),(n=o(this,e)).setValue(t),n}return g(e,sU),u(e,[{key:"encode",value:function(){var e=this.value.length>0?this.value[this.value.length-1]:0,t=sZ.encode(this.value);if(t.length<=e)return sy.encode(e,16)+"1"+t;for(var n=[],s=0,i=0;i<e;i++)i===this.value[s]-1?(n[i]=!0,s++):n[i]=!1;return sy.encode(e,16)+"0"+sK.encode(n,e)}},{key:"decode",value:function(e){if("1"===e.charAt(16))this.value=sZ.decode(e.substring(17));else{for(var t=[],n=sK.decode(e.substring(17)),s=0;s<n.length;s++)!0===n[s]&&t.push(s+1);this.value=t}}},{key:"substring",value:function(e,t){var n=sy.decode(e.substring(t,t+16));return"1"===e.charAt(t+16)?e.substring(t,t+17)+new s0([]).substring(e,t+17):e.substring(t,t+17+n)}},{key:"getValue",value:function(){return _(C(e,"getValue",this,3)([]))}},{key:"setValue",value:function(t){C(e,"setValue",this,3)([Array.from(new Set(t)).sort(function(e,t){return e-t})])}}])}();(s2=sx||(sx={})).VERSION="Version",s2.CREATED="Created",s2.LAST_UPDATED="LastUpdated",s2.CMP_ID="CmpId",s2.CMP_VERSION="CmpVersion",s2.CONSENT_SCREEN="ConsentScreen",s2.CONSENT_LANGUAGE="ConsentLanguage",s2.VENDOR_LIST_VERSION="VendorListVersion",s2.POLICY_VERSION="PolicyVersion",s2.IS_SERVICE_SPECIFIC="IsServiceSpecific",s2.USE_NON_STANDARD_STACKS="UseNonStandardStacks",s2.SPECIAL_FEATURE_OPTINS="SpecialFeatureOptins",s2.PURPOSE_CONSENTS="PurposeConsents",s2.PURPOSE_LEGITIMATE_INTERESTS="PurposeLegitimateInterests",s2.PURPOSE_ONE_TREATMENT="PurposeOneTreatment",s2.PUBLISHER_COUNTRY_CODE="PublisherCountryCode",s2.VENDOR_CONSENTS="VendorConsents",s2.VENDOR_LEGITIMATE_INTERESTS="VendorLegitimateInterests",s2.PUBLISHER_RESTRICTIONS="PublisherRestrictions",s2.PUBLISHER_PURPOSES_SEGMENT_TYPE="PublisherPurposesSegmentType",s2.PUBLISHER_CONSENTS="PublisherConsents",s2.PUBLISHER_LEGITIMATE_INTERESTS="PublisherLegitimateInterests",s2.NUM_CUSTOM_PURPOSES="NumCustomPurposes",s2.PUBLISHER_CUSTOM_CONSENTS="PublisherCustomConsents",s2.PUBLISHER_CUSTOM_LEGITIMATE_INTERESTS="PublisherCustomLegitimateInterests",s2.VENDORS_ALLOWED_SEGMENT_TYPE="VendorsAllowedSegmentType",s2.VENDORS_ALLOWED="VendorsAllowed",s2.VENDORS_DISCLOSED_SEGMENT_TYPE="VendorsDisclosedSegmentType",s2.VENDORS_DISCLOSED="VendorsDisclosed";var s2,s3,s4=function(){function e(){return a(this,e),o(this,e,arguments)}return g(e,sm),u(e,[{key:"pad",value:function(e){for(;e.length%24>0;)e+="0";return e}}])}(),s6=function(){function e(t){a(this,e);var n,s=new Map,i=new Date;s.set(sx.VERSION.toString(),new sk(6,e.VERSION)),s.set(sx.CREATED.toString(),new sW(i)),s.set(sx.LAST_UPDATED.toString(),new sW(i)),s.set(sx.CMP_ID.toString(),new sk(12,0)),s.set(sx.CMP_VERSION.toString(),new sk(12,0)),s.set(sx.CONSENT_SCREEN.toString(),new sk(6,0)),s.set(sx.CONSENT_LANGUAGE.toString(),new sX(2,"EN")),s.set(sx.VENDOR_LIST_VERSION.toString(),new sk(12,0)),s.set(sx.POLICY_VERSION.toString(),new sk(6,2)),s.set(sx.IS_SERVICE_SPECIFIC.toString(),new sY(!1)),s.set(sx.USE_NON_STANDARD_STACKS.toString(),new sY(!1)),s.set(sx.SPECIAL_FEATURE_OPTINS.toString(),new sQ([!1,!1,
1!1,!1,!1,!1,!1,!1,!1,!1,!1,!1])),s.set(sx.PURPOSE_CONSENTS.toString(),new sQ([!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1])),s.set(sx.PURPOSE_LEGITIMATE_INTERESTS.toString(),new sQ([!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1])),s.set(sx.PURPOSE_ONE_TREATMENT.toString(),new sY(!1)),s.set(sx.PUBLISHER_COUNTRY_CODE.toString(),new sX(2,"AA")),s.set(sx.VENDOR_CONSENTS.toString(),new s1([])),s.set(sx.VENDOR_LEGITIMATE_INTERESTS.toString(),new s1([])),s.set(sx.PUBLISHER_RESTRICTIONS.toString(),new s0([])),s.set(sx.PUBLISHER_PURPOSES_SEGMENT_TYPE.toString(),new sk(3,3)),s.set(sx.PUBLISHER_CONSENTS.toString(),new sQ([!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1])),s.set(sx.PUBLISHER_LEGITIMATE_INTERESTS.toString(),new sQ([!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1]));var r=new sk(6,0);return s.set(sx.NUM_CUSTOM_PURPOSES.toString(),r),s.set(sx.PUBLISHER_CUSTOM_CONSENTS.toString(),new sq(function(){return r.getValue()},[])),s.set(sx.PUBLISHER_CUSTOM_LEGITIMATE_INTERESTS.toString(),new sq(function(){return r.getValue()},[])),s.set(sx.VENDORS_ALLOWED_SEGMENT_TYPE.toString(),new sk(3,2)),s.set(sx.VENDORS_ALLOWED.toString(),new s1([])),s.set(sx.VENDORS_DISCLOSED_SEGMENT_TYPE.toString(),new sk(3,1)),s.set(sx.VENDORS_DISCLOSED.toString(),new s1([])),d(n=o(this,e,[s,[[sx.VERSION.toString(),sx.CREATED.toString(),sx.LAST_UPDATED.toString(),sx.CMP_ID.toString(),sx.CMP_VERSION.toString(),sx.CONSENT_SCREEN.toString(),sx.CONSENT_LANGUAGE.toString(),sx.VENDOR_LIST_VERSION.toString(),sx.POLICY_VERSION.toString(),sx.IS_SERVICE_SPECIFIC.toString(),sx.USE_NON_STANDARD_STACKS.toString(),sx.SPECIAL_FEATURE_OPTINS.toString(),sx.PURPOSE_CONSENTS.toString(),sx.PURPOSE_LEGITIMATE_INTERESTS.toString(),sx.PURPOSE_ONE_TREATMENT.toString(),sx.PUBLISHER_COUNTRY_CODE.toString(),sx.VENDOR_CONSENTS.toString(),sx.VENDOR_LEGITIMATE_INTERESTS.toString(),sx.PUBLISHER_RESTRICTIONS.toString()],[sx.PUBLISHER_PURPOSES_SEGMENT_TYPE.toString(),sx.PUBLISHER_CONSENTS.toString(),sx.PUBLISHER_LEGITIMATE_INTERESTS.toString(),sx.NUM_CUSTOM_PURPOSES.toString(),sx.PUBLISHER_CUSTOM_CONSENTS.toString(),sx.PUBLISHER_CUSTOM_LEGITIMATE_INTERESTS.toString()],[sx.VENDORS_ALLOWED_SEGMENT_TYPE.toString(),sx.VENDORS_ALLOWED.toString()],[sx.VENDORS_DISCLOSED_SEGMENT_TYPE.toString(),sx.VENDORS_DISCLOSED.toString()]]]),"base64UrlEncoder",new s4),t&&t.length>0&&n.decode(t),n}return g(e,s$),u(e,[{key:"encode",value:function(){var e=this.encodeSegmentsToBitStrings(),t=[];return t.push(this.base64UrlEncoder.encode(e[0])),this.getFieldValue(sx.IS_SERVICE_SPECIFIC.toString())?e[1]&&e[1].length>0&&t.push(this.base64UrlEncoder.encode(e[1])):(e[2]&&e[2].length>0&&t.push(this.base64UrlEncoder.encode(e[2])),e[3]&&e[3].length>0&&t.push(this.base64UrlEncoder.encode(e[3]))),t.join(".")}},{key:"decode",value:function(e){for(var t=e.split("."),n=[],s=0;s<t.length;s++){var i=this.base64UrlEncoder.decode(t[s]);switch(i.substring(0,3)){case"000":n[0]=i;break;case"001":n[3]=i;break;case"010":n[2]=i;break;case"011":n[1]=i;break;default:throw new s_("Unable to decode segment '"+t[s]+"'")}}this.decodeSegmentsFromBitStrings(n)}},{key:"setFieldValue",value:function(t,n){if(C(e,"setFieldValue",this,3)([t,n]),t!==sx.CREATED.toString()&&t!==sx.LAST_UPDATED.toString()){var s=new Date,i=new Date(Date.UTC(s.getUTCFullYear(),s.getUTCMonth(),s.getUTCDate()));this.setFieldValue(sx.CREATED.toString(),i),this.setFieldValue(sx.LAST_UPDATED.toString(),i)}}},{key:"getId",value:function(){return e.ID}},{key:"getName",value:function(){return e.NAME}}])}();d(s6,"ID",2),d(s6,"VERSION",2),d(s6,"NAME","tcfeuv2"),(s5=s3||(s3={})).VERSION="Version",s5.CREATED="Created",s5.LAST_UPDATED="LastUpdated",s5.CMP_ID="CmpId",s5.CMP_VERSION="CmpVersion",s5.CONSENT_SCREEN="ConsentScreen",s5.CONSENT_LANGUAGE="ConsentLanguage",s5.VENDOR_LIST_VERSION="VendorListVersion",s5.TCF_POLICY_VERSION="TcfPolicyVersion",s5.USE_NON_STANDARD_STACKS="UseNonStandardStacks",s5.SPECIAL_FEATURE_EXPRESS_CONSENT="SpecialFeatureExpressConsent",s5.PURPOSES_EXPRESS_CONSENT="PurposesExpressConsent",s5.PURPOSES_IMPLIED_CONSENT="PurposesImpliedConsent",s5.VENDOR_EXPRESS_CONSENT="VendorExpressConsent",s5.VENDOR_IMPLIED_CONSENT="VendorImpliedConsent",s5.SEGMENT_TYPE="SegmentType",s5.PUB_PURPOSES_EXPRESS_CONSENT="PubPurposesExpressConsent",s5.PUB_PURPOSES_IMPLIED_CONSENT="PubPurposesImpliedConsent",s5.NUM_CUSTOM_PURPOSES="NumCustomPurposes",s5.CUSTOM_PURPOSES_EXPRESS_CONSENT="CustomPurposesExpressConsent",s5.
1CUSTOM_PURPOSES_IMPLIED_CONSENT="CustomPurposesImpliedConsent";var s5,s7,s8=function(){function e(t){a(this,e);var n,s=new Map,i=new Date;s.set(s3.VERSION.toString(),new sk(6,e.VERSION)),s.set(s3.CREATED.toString(),new sW(i)),s.set(s3.LAST_UPDATED.toString(),new sW(i)),s.set(s3.CMP_ID.toString(),new sk(12,0)),s.set(s3.CMP_VERSION.toString(),new sk(12,0)),s.set(s3.CONSENT_SCREEN.toString(),new sk(6,0)),s.set(s3.CONSENT_LANGUAGE.toString(),new sX(2,"EN")),s.set(s3.VENDOR_LIST_VERSION.toString(),new sk(12,0)),s.set(s3.TCF_POLICY_VERSION.toString(),new sk(6,2)),s.set(s3.USE_NON_STANDARD_STACKS.toString(),new sY(!1)),s.set(s3.SPECIAL_FEATURE_EXPRESS_CONSENT.toString(),new sQ([!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1])),s.set(s3.PURPOSES_EXPRESS_CONSENT.toString(),new sQ([!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1])),s.set(s3.PURPOSES_IMPLIED_CONSENT.toString(),new sQ([!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1])),s.set(s3.VENDOR_EXPRESS_CONSENT.toString(),new s1([])),s.set(s3.VENDOR_IMPLIED_CONSENT.toString(),new s1([])),s.set(s3.SEGMENT_TYPE.toString(),new sk(3,3)),s.set(s3.PUB_PURPOSES_EXPRESS_CONSENT.toString(),new sQ([!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1])),s.set(s3.PUB_PURPOSES_IMPLIED_CONSENT.toString(),new sQ([!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1]));var r=new sk(6,0);return s.set(s3.NUM_CUSTOM_PURPOSES.toString(),r),s.set(s3.CUSTOM_PURPOSES_EXPRESS_CONSENT.toString(),new sq(function(){return r.getValue()},[])),s.set(s3.CUSTOM_PURPOSES_IMPLIED_CONSENT.toString(),new sq(function(){return r.getValue()},[])),d(n=o(this,e,[s,[[s3.VERSION.toString(),s3.CREATED.toString(),s3.LAST_UPDATED.toString(),s3.CMP_ID.toString(),s3.CMP_VERSION.toString(),s3.CONSENT_SCREEN.toString(),s3.CONSENT_LANGUAGE.toString(),s3.VENDOR_LIST_VERSION.toString(),s3.TCF_POLICY_VERSION.toString(),s3.USE_NON_STANDARD_STACKS.toString(),s3.SPECIAL_FEATURE_EXPRESS_CONSENT.toString(),s3.PURPOSES_EXPRESS_CONSENT.toString(),s3.PURPOSES_IMPLIED_CONSENT.toString(),s3.VENDOR_EXPRESS_CONSENT.toString(),s3.VENDOR_IMPLIED_CONSENT.toString()],[s3.SEGMENT_TYPE.toString(),s3.PUB_PURPOSES_EXPRESS_CONSENT.toString(),s3.PUB_PURPOSES_IMPLIED_CONSENT.toString(),s3.NUM_CUSTOM_PURPOSES.toString(),s3.CUSTOM_PURPOSES_EXPRESS_CONSENT.toString(),s3.CUSTOM_PURPOSES_IMPLIED_CONSENT.toString()]]]),"base64UrlEncoder",new sw),t&&t.length>0&&n.decode(t),n}return g(e,s$),u(e,[{key:"encode",value:function(){var e=this.encodeSegmentsToBitStrings(),t=[];return t.push(this.base64UrlEncoder.encode(e[0])),e[1]&&e[1].length>0&&t.push(this.base64UrlEncoder.encode(e[1])),t.join(".")}},{key:"decode",value:function(e){for(var t=e.split("."),n=[],s=0;s<t.length;s++){var i=this.base64UrlEncoder.decode(t[s]);switch(i.substring(0,3)){case"000":n[0]=i;break;case"011":n[1]=i;break;default:throw new s_("Unable to decode segment '"+t[s]+"'")}}this.decodeSegmentsFromBitStrings(n)}},{key:"setFieldValue",value:function(t,n){if(C(e,"setFieldValue",this,3)([t,n]),t!==s3.CREATED.toString()&&t!==s3.LAST_UPDATED.toString()){var s=new Date,i=new Date(Date.UTC(s.getUTCFullYear(),s.getUTCMonth(),s.getUTCDate()));this.setFieldValue(s3.CREATED.toString(),i),this.setFieldValue(s3.LAST_UPDATED.toString(),i)}}},{key:"getId",value:function(){return e.ID}},{key:"getName",value:function(){return e.NAME}}])}();d(s8,"ID",5),d(s8,"VERSION",1),d(s8,"NAME","tcfcav1"),(ie=s7||(s7={})).VERSION="Version",ie.NOTICE="Notice",ie.OPT_OUT_SALE="OptOutSale",ie.LSPA_COVERED="LspaCovered";var s9=function(){function e(t){a(this,e),d(this,"fields",void 0),this.fields=new Map,this.fields.set(s7.VERSION.toString(),e.VERSION),this.fields.set(s7.NOTICE.toString(),"-"),this.fields.set(s7.OPT_OUT_SALE.toString(),"-"),this.fields.set(s7.LSPA_COVERED.toString(),"-"),t&&t.length>0&&this.decode(t)}return u(e,[{key:"hasField",value:function(e){return this.fields.has(e)}},{key:"getFieldValue",value:function(e){return this.fields.has(e)?this.fields.get(e):null}},{key:"setFieldValue",value:function(e,t){if(!this.fields.has(e))throw new sH(e+" not found");this.fields.set(e,t)}},{key:"toObj",value:function(){var e,t={},n=l(this.fields.keys());try{for(n.s();!(e=n.n()).done;){var s=e.value,i=this.fields.get(s);t[s.toString()]=i}}catch(e){n.e(e)}finally{n.f()}return t}},{key:"encode",value:function(){var e="";return e+=this.getFieldValue(s7.VERSION.toString()),e+=this.getFieldValue(s7.NOTICE.toString()),e+=this.getFieldValue(s7.OPT_OUT_SALE.toString()),e+=this.getFieldValue(s7.LSPA_COVERED.toString())}},{key:"decode",value:function(e){this.setFieldValue(s7.VERSION.toString(),parseInt(e.charAt(0))),this.setFieldValue(s7.NOTICE.toString(),e.charAt(1)),this.setFieldValue(s7.OPT_OUT_SALE.toString(),e.charAt(2)),this.setFieldValue(s7.LSPA_COVERED.toString(),e.charAt(3))}},{key:"getId",value:function(){return e.ID}},{key:"getName",value:function(){return e.NAME}}])}();d(s9,"ID",6),d(s9,"VERSION",1),d(s9,"NAME","uspv1");var ie,it,is=u(function e(){a(this,e)},null,[{key:"encode",value:function(e,t,n){for(var s="",i=0;i<e.length;i++)s+=sy.encode(e[i],t);for(;s.length<t*n;)s+="0";return s}},{key:"decode",value:function(e,t,n){if(!/^[0-1]*$/.test(e))throw new s_("Undecodable FixedInteger '"+e+"'");if(e.length>t*n||e.length%t!=0)throw new s_("Undecodable FixedIntegerList '"+e+"'");for(;e.length<t*n;)e+="0";e.length>t*n&&(e=e.substring(0,t*n));for(var s=[],i=0;i<e.length;i+=t)s.push(sy.decode(e.substring(i,i+t)));for(;s.length<n;)s.push(0);return s}}]),ii=function(){function e(t,n){var s;return a(this,e),d(s=o(this,e),"elementBitStringLength",void 0),d(s,"numElements",void 0),s.elementBitStringLength=t,s.numElements=n.length,s.setValue(n),s}return g(e,sU),u(e,[{key:"encode",value:function(){return is.encode(this.value,this.elementBitStringLength,this.numElements)}},{key:"decode",value:function(e){this.value=is.decode(e,this.elementBitStringLength,this.numElements)}},{key:"substring",value:function(e,t){return e.substring(t,t+this.elementBitStringLength*this.numElements)}},{key:"getValue",value:function(){return _(C(e,"getValue",this,3)([]))}},{key:"setValue",value:function(t){for(var n=_(t),s=n.length;s<this.numElements;s++)n.push(0);n.length>this.numElements&&(n=n.slice(0,this.numElements)),C(e,"setValue",this,3)([n])}}])}();(ir=it||(it={})).VERSION="Version",ir.SHARING_NOTICE="SharingNotice",ir.SALE_OPT_OUT_NOTICE="SaleOptOutNotice",ir.SHARING_OPT_OUT_NOTICE="SharingOptOutNotice",ir.TARGETED_ADVERTISING_OPT_OUT_NOTICE="TargetedAdvertisingOptOutNotice",ir.SENSITIVE_DATA_PROCESSING_OPT_OUT_NOTICE="SensitiveDataProcessingOptOutNotice",ir.SENSITIVE_DATA_LIMIT_USE_NOTICE="SensitiveDataLimitUseNotice",ir.SALE_OPT_OUT="SaleOptOut",ir.SHARING_OPT_OUT="SharingOptOut",ir.TARGETED_ADVERTISING_OPT_OUT="TargetedAdvertisingOptOut",ir.SENSITIVE_DATA_PROCESSING="SensitiveDataProcessing",ir.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS="KnownChildSensitiveDataConsents",ir.PERSONAL_DATA_CONSENTS="PersonalDataConsents",ir.MSPA_COVERED_TRANSACTION="MspaCoveredTransaction",ir.MSPA_OPT_OUT_OPTION_MODE="MspaOptOutOptionMode",ir.MSPA_SERVICE_PROVIDER_MODE="MspaServiceProviderMode",ir.GPC_SEGMENT_TYPE="GpcSegmentType",ir.GPC_SEGMENT_INCLUDED="GpcSegmentIncluded",ir.GPC="Gpc";var ir,io,ia=function(){function e(t){a(this,e);var n,s=new Map;return s.set(it.VERSION.toString(),new sk(6,e.VERSION)),s.set(it.SHARING_NOTICE.toString(),new sk(2,0)),s.set(it.SALE_OPT_OUT_NOTICE.toString(),new sk(2,0)),s.set(it.SHARING_OPT_OUT_NOTICE.toString(),new sk(2,0)),s.set(it.TARGETED_ADVERTISING_OPT_OUT_NOTICE.toString(),new sk(2,0)),s.set(it.SENSITIVE_DATA_PROCESSING_OPT_OUT_NOTICE.toString(),new sk(2,0)),s.set(it.SENSITIVE_DATA_LIMIT_USE_NOTICE.toString(),new sk(2,0)),s.set(it.SALE_OPT_OUT.toString(),new sk(2,0)),s.set(it.SHARING_OPT_OUT.toString(),new sk(2,0)),s.set(it.TARGETED_ADVERTISING_OPT_OUT.toString(),new sk(2,0)),s.set(it.SENSITIVE_DATA_PROCESSING.toString(),new ii(2,[0,0,0,0,0,0,0,0,0,0,0,0])),s.set(it.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS.toString(),new ii(2,[0,0])),s.set(it.PERSONAL_DATA_CONSENTS.toString(),new sk(2,0)),s.set(it.MSPA_COVERED_TRANSACTION.toString(),new sk(2,0)),s.set(it.MSPA_OPT_OUT_OPTION_MODE.toString(),new sk(2,0)),s.set(it.MSPA_SERVICE_PROVIDER_MODE.toString(),new sk(2,0)),s.set(it.GPC_SEGMENT_TYPE.toString(),new sk(2,1)),s.set(it.GPC_SEGMENT_INCLUDED.toString(),new sY(!0)),s.set(it.GPC.toString(),new sY(!1)),d(n=o(this,e,[s,[[it.VERSION.toString(),it.SHARING_NOTICE.toString(),it.SALE_OPT_OUT_NOTICE.toString(),it.SHARING_OPT_OUT_NOTICE.toString(),it.TARGETED_ADVERTISING_OPT_OUT_NOTICE.toString(),it.SENSITIVE_DATA_PROCESSING_OPT_OUT_NOTICE.toString(),it.SENSITIVE_DATA_LIMIT_USE_NOTICE.toString(),it.SALE_OPT_OUT.toString(),it.SHARING_OPT_OUT.toString(),it.TARGETED_ADVERTISING_OPT_OUT.toString(),it.SENSITIVE_DATA_PROCESSING.toString(),it.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS.toString(),it.PERSONAL_DATA_CONSENTS.toString(),it.MSPA_COVERED_TRANSACTION.toString(),it.MSPA_OPT_OUT_OPTION_MODE.toString(),it.MSPA_SERVICE_PROVIDER_MODE.toString()],[it.GPC_SEGMENT_TYPE.toString(),it.GPC.toString()]]]),"base64UrlEncoder",new sw),t&&t.length>0&&n.decode(t),n}return g(e,s$),u(e,[{key:"encode",value:function(){var e=this.encodeSegmentsToBitStrings(),t=[];return t.push(this.base64UrlEncoder.encode(e[0])),e[1]&&e[1].length>0&&!0===this.fields.get(it.GPC_SEGMENT_INCLUDED).getValue()&&t.pu
1sh(this.base64UrlEncoder.encode(e[1])),t.join(".")}},{key:"decode",value:function(e){for(var t=e.split("."),n=[],s=!1,i=0;i<t.length;i++){var r=this.base64UrlEncoder.decode(t[i]);switch(r.substring(0,2)){case"00":n[0]=r;break;case"01":s=!0,n[1]=r;break;default:throw new s_("Unable to decode segment '"+t[i]+"'")}}this.decodeSegmentsFromBitStrings(n),this.fields.get(it.GPC_SEGMENT_INCLUDED).setValue(s)}},{key:"getId",value:function(){return e.ID}},{key:"getName",value:function(){return e.NAME}}])}();d(ia,"ID",7),d(ia,"VERSION",1),d(ia,"NAME","usnatv1"),(ic=io||(io={})).VERSION="Version",ic.SALE_OPT_OUT_NOTICE="SaleOptOutNotice",ic.SHARING_OPT_OUT_NOTICE="SharingOptOutNotice",ic.SENSITIVE_DATA_LIMIT_USE_NOTICE="SensitiveDataLimitUseNotice",ic.SALE_OPT_OUT="SaleOptOut",ic.SHARING_OPT_OUT="SharingOptOut",ic.SENSITIVE_DATA_PROCESSING="SensitiveDataProcessing",ic.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS="KnownChildSensitiveDataConsents",ic.PERSONAL_DATA_CONSENTS="PersonalDataConsents",ic.MSPA_COVERED_TRANSACTION="MspaCoveredTransaction",ic.MSPA_OPT_OUT_OPTION_MODE="MspaOptOutOptionMode",ic.MSPA_SERVICE_PROVIDER_MODE="MspaServiceProviderMode",ic.GPC_SEGMENT_TYPE="GpcSegmentType",ic.GPC_SEGMENT_INCLUDED="GpcSegmentIncluded",ic.GPC="Gpc";var ic,iu,il=function(){function e(t){a(this,e);var n,s=new Map;return s.set(io.VERSION.toString(),new sk(6,e.VERSION)),s.set(io.SALE_OPT_OUT_NOTICE.toString(),new sk(2,0)),s.set(io.SHARING_OPT_OUT_NOTICE.toString(),new sk(2,0)),s.set(io.SENSITIVE_DATA_LIMIT_USE_NOTICE.toString(),new sk(2,0)),s.set(io.SALE_OPT_OUT.toString(),new sk(2,0)),s.set(io.SHARING_OPT_OUT.toString(),new sk(2,0)),s.set(io.SENSITIVE_DATA_PROCESSING.toString(),new ii(2,[0,0,0,0,0,0,0,0,0])),s.set(io.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS.toString(),new ii(2,[0,0])),s.set(io.PERSONAL_DATA_CONSENTS.toString(),new sk(2,0)),s.set(io.MSPA_COVERED_TRANSACTION.toString(),new sk(2,0)),s.set(io.MSPA_OPT_OUT_OPTION_MODE.toString(),new sk(2,0)),s.set(io.MSPA_SERVICE_PROVIDER_MODE.toString(),new sk(2,0)),s.set(io.GPC_SEGMENT_TYPE.toString(),new sk(2,1)),s.set(io.GPC_SEGMENT_INCLUDED.toString(),new sY(!0)),s.set(io.GPC.toString(),new sY(!1)),d(n=o(this,e,[s,[[io.VERSION.toString(),io.SALE_OPT_OUT_NOTICE.toString(),io.SHARING_OPT_OUT_NOTICE.toString(),io.SENSITIVE_DATA_LIMIT_USE_NOTICE.toString(),io.SALE_OPT_OUT.toString(),io.SHARING_OPT_OUT.toString(),io.SENSITIVE_DATA_PROCESSING.toString(),io.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS.toString(),io.PERSONAL_DATA_CONSENTS.toString(),io.MSPA_COVERED_TRANSACTION.toString(),io.MSPA_OPT_OUT_OPTION_MODE.toString(),io.MSPA_SERVICE_PROVIDER_MODE.toString()],[io.GPC_SEGMENT_TYPE.toString(),io.GPC.toString()]]]),"base64UrlEncoder",new sw),t&&t.length>0&&n.decode(t),n}return g(e,s$),u(e,[{key:"encode",value:function(){var e=this.encodeSegmentsToBitStrings(),t=[];return t.push(this.base64UrlEncoder.encode(e[0])),e[1]&&e[1].length>0&&!0===this.fields.get(io.GPC_SEGMENT_INCLUDED).getValue()&&t.push(this.base64UrlEncoder.encode(e[1])),t.join(".")}},{key:"decode",value:function(e){for(var t=e.split("."),n=[],s=!1,i=0;i<t.length;i++){var r=this.base64UrlEncoder.decode(t[i]);switch(r.substring(0,2)){case"00":n[0]=r;break;case"01":s=!0,n[1]=r;break;default:throw new s_("Unable to decode segment '"+t[i]+"'")}}this.decodeSegmentsFromBitStrings(n),this.fields.get(io.GPC_SEGMENT_INCLUDED).setValue(s)}},{key:"getId",value:function(){return e.ID}},{key:"getName",value:function(){return e.NAME}}])}();d(il,"ID",8),d(il,"VERSION",1),d(il,"NAME","uscav1"),(id=iu||(iu={})).VERSION="Version",id.SHARING_NOTICE="SharingNotice",id.SALE_OPT_OUT_NOTICE="SaleOptOutNotice",id.TARGETED_ADVERTISING_OPT_OUT_NOTICE="TargetedAdvertisingOptOutNotice",id.SALE_OPT_OUT="SaleOptOut",id.TARGETED_ADVERTISING_OPT_OUT="TargetedAdvertisingOptOut",id.SENSITIVE_DATA_PROCESSING="SensitiveDataProcessing",id.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS="KnownChildSensitiveDataConsents",id.MSPA_COVERED_TRANSACTION="MspaCoveredTransaction",id.MSPA_OPT_OUT_OPTION_MODE="MspaOptOutOptionMode",id.MSPA_SERVICE_PROVIDER_MODE="MspaServiceProviderMode";var id,ih,ip=function(){function e(t){a(this,e);var n,s=new Map;return s.set(iu.VERSION.toString(),new sk(6,e.VERSION)),s.set(iu.SHARING_NOTICE.toString(),new sk(2,0)),s.set(iu.SALE_OPT_OUT_NOTICE.toString(),new sk(2,0)),s.set(iu.TARGETED_ADVERTISING_OPT_OUT_NOTICE.toString(),new sk(2,0)),s.set(iu.SALE_OPT_OUT.toString(),new sk(2,0)),s.set(iu.TARGETED_ADVERTISING_OPT_OUT.toString(),new sk(2,0)),s.set(iu.SENSITIVE_DATA_PROCESSING.toString(),new ii(2,[0,0,0,0,0,0,0,0])),s.set(iu.KNOW
1N_CHILD_SENSITIVE_DATA_CONSENTS.toString(),new sk(2,0)),s.set(iu.MSPA_COVERED_TRANSACTION.toString(),new sk(2,0)),s.set(iu.MSPA_OPT_OUT_OPTION_MODE.toString(),new sk(2,0)),s.set(iu.MSPA_SERVICE_PROVIDER_MODE.toString(),new sk(2,0)),d(n=o(this,e,[s,[iu.VERSION.toString(),iu.SHARING_NOTICE.toString(),iu.SALE_OPT_OUT_NOTICE.toString(),iu.TARGETED_ADVERTISING_OPT_OUT_NOTICE.toString(),iu.SALE_OPT_OUT.toString(),iu.TARGETED_ADVERTISING_OPT_OUT.toString(),iu.SENSITIVE_DATA_PROCESSING.toString(),iu.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS.toString(),iu.MSPA_COVERED_TRANSACTION.toString(),iu.MSPA_OPT_OUT_OPTION_MODE.toString(),iu.MSPA_SERVICE_PROVIDER_MODE.toString()]]),"base64UrlEncoder",new sw),t&&t.length>0&&n.decode(t),n}return g(e,sF),u(e,[{key:"encode",value:function(){return this.base64UrlEncoder.encode(this.encodeToBitString())}},{key:"decode",value:function(e){this.decodeFromBitString(this.base64UrlEncoder.decode(e))}},{key:"getId",value:function(){return e.ID}},{key:"getName",value:function(){return e.NAME}}])}();d(ip,"ID",9),d(ip,"VERSION",1),d(ip,"NAME","usvav1"),(ig=ih||(ih={})).VERSION="Version",ig.SHARING_NOTICE="SharingNotice",ig.SALE_OPT_OUT_NOTICE="SaleOptOutNotice",ig.TARGETED_ADVERTISING_OPT_OUT_NOTICE="TargetedAdvertisingOptOutNotice",ig.SALE_OPT_OUT="SaleOptOut",ig.TARGETED_ADVERTISING_OPT_OUT="TargetedAdvertisingOptOut",ig.SENSITIVE_DATA_PROCESSING="SensitiveDataProcessing",ig.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS="KnownChildSensitiveDataConsents",ig.MSPA_COVERED_TRANSACTION="MspaCoveredTransaction",ig.MSPA_OPT_OUT_OPTION_MODE="MspaOptOutOptionMode",ig.MSPA_SERVICE_PROVIDER_MODE="MspaServiceProviderMode",ig.GPC_SEGMENT_TYPE="GpcSegmentType",ig.GPC_SEGMENT_INCLUDED="GpcSegmentIncluded",ig.GPC="Gpc";var ig,iS,iv=function(){function e(t){a(this,e);var n,s=new Map;return s.set(ih.VERSION.toString(),new sk(6,e.VERSION)),s.set(ih.SHARING_NOTICE.toString(),new sk(2,0)),s.set(ih.SALE_OPT_OUT_NOTICE.toString(),new sk(2,0)),s.set(ih.TARGETED_ADVERTISING_OPT_OUT_NOTICE.toString(),new sk(2,0)),s.set(ih.SALE_OPT_OUT.toString(),new sk(2,0)),s.set(ih.TARGETED_ADVERTISING_OPT_OUT.toString(),new sk(2,0)),s.set(ih.SENSITIVE_DATA_PROCESSING.toString(),new ii(2,[0,0,0,0,0,0,0])),s.set(ih.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS.toString(),new sk(2,0)),s.set(ih.MSPA_COVERED_TRANSACTION.toString(),new sk(2,0)),s.set(ih.MSPA_OPT_OUT_OPTION_MODE.toString(),new sk(2,0)),s.set(ih.MSPA_SERVICE_PROVIDER_MODE.toString(),new sk(2,0)),s.set(ih.GPC_SEGMENT_TYPE.toString(),new sk(2,1)),s.set(ih.GPC_SEGMENT_INCLUDED.toString(),new sY(!0)),s.set(ih.GPC.toString(),new sY(!1)),d(n=o(this,e,[s,[[ih.VERSION.toString(),ih.SHARING_NOTICE.toString(),ih.SALE_OPT_OUT_NOTICE.toString(),ih.TARGETED_ADVERTISING_OPT_OUT_NOTICE.toString(),ih.SALE_OPT_OUT.toString(),ih.TARGETED_ADVERTISING_OPT_OUT.toString(),ih.SENSITIVE_DATA_PROCESSING.toString(),ih.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS.toString(),ih.MSPA_COVERED_TRANSACTION.toString(),ih.MSPA_OPT_OUT_OPTION_MODE.toString(),ih.MSPA_SERVICE_PROVIDER_MODE.toString()],[ih.GPC_SEGMENT_TYPE.toString(),ih.GPC.toString()]]]),"base64UrlEncoder",new sw),t&&t.length>0&&n.decode(t),n}return g(e,s$),u(e,[{key:"encode",value:function(){var e=this.encodeSegmentsToBitStrings(),t=[];return t.push(this.base64UrlEncoder.encode(e[0])),e[1]&&e[1].length>0&&!0===this.fields.get(ih.GPC_SEGMENT_INCLUDED).getValue()&&t.push(this.base64UrlEncoder.encode(e[1])),t.join(".")}},{key:"decode",value:function(e){for(var t=e.split("."),n=[],s=!1,i=0;i<t.length;i++){var r=this.base64UrlEncoder.decode(t[i]);switch(r.substring(0,2)){case"00":n[0]=r;break;case"01":s=!0,n[1]=r;break;default:throw new s_("Unable to decode segment '"+t[i]+"'")}}this.decodeSegmentsFromBitStrings(n),this.fields.get(ih.GPC_SEGMENT_INCLUDED).setValue(s)}},{key:"getId",value:function(){return e.ID}},{key:"getName",value:function(){return e.NAME}}])}();d(iv,"ID",10),d(iv,"VERSION",1),d(iv,"NAME","uscov1"),(iE=iS||(iS={})).VERSION="Version",iE.SHARING_NOTICE="SharingNotice",iE.SALE_OPT_OUT_NOTICE="SaleOptOutNotice",iE.TARGETED_ADVERTISING_OPT_OUT_NOTICE="TargetedAdvertisingOptOutNotice",iE.SENSITIVE_DATA_PROCESSING_OPT_OUT_NOTICE="SensitiveDataProcessingOptOutNotice",iE.SALE_OPT_OUT="SaleOptOut",iE.TARGETED_ADVERTISING_OPT_OUT="TargetedAdvertisingOptOut",iE.SENSITIVE_DATA_PROCESSING="SensitiveDataProcessing",iE.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS="KnownChildSensitiveDataConsents",iE.MSPA_COVERED_TRANSACTION="MspaCoveredTransaction",iE.MSPA_OPT_OUT_OPTION_MODE="MspaOptOutOptionMode",iE.MSPA_SERVICE_PROVIDER_MODE="MspaServiceProviderMode";var iE,iI,iT=function(){function e(t){a(this,e);var n,s=new Map;return s.set(iS.VERSION.toString(),new sk(6,e.VERSION)),s.set(iS.SHARING_NOTICE.toString(),new sk(2,0)),s.set(iS.SALE_OPT_OUT_NOTICE.toString(),new sk(2,0)),s.set(iS.TARGETED_ADVERTISING_OPT_OUT_NOTICE.toString(),new sk(2,0)),s.set(iS.SENSITIVE_DATA_PROCESSING_OPT_OUT_NOTICE.toString(),new sk(2,0)),s.set(iS.SALE_OPT_OUT.toString(),new sk(2,0)),s.set(iS.TARGETED_ADVERTISING_OPT_OUT.toString(),new sk(2,0)),s.set(iS.SENSITIVE_DATA_PROCESSING.toString(),new ii(2,[0,0,0,0,0,0,0,0])),s.set(iS.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS.toString(),new sk(2,0)),s.set(iS.MSPA_COVERED_TRANSACTION.toString(),new sk(2,0)),s.set(iS.MSPA_OPT_OUT_OPTION_MODE.toString(),new sk(2,0)),s.set(iS.MSPA_SERVICE_PROVIDER_MODE.toString(),new sk(2,0)),d(n=o(this,e,[s,[iS.VERSION.toString(),iS.SHARING_NOTICE.toString(),iS.SALE_OPT_OUT_NOTICE.toString(),iS.TARGETED_ADVERTISING_OPT_OUT_NOTICE.toString(),iS.SENSITIVE_DATA_PROCESSING_OPT_OUT_NOTICE.toString(),iS.SALE_OPT_OUT.toString(),iS.TARGETED_ADVERTISING_OPT_OUT.toString(),iS.SENSITIVE_DATA_PROCESSING.toString(),iS.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS.toString(),iS.MSPA_COVERED_TRANSACTION.toString(),iS.MSPA_OPT_OUT_OPTION_MODE.toString(),iS.MSPA_SERVICE_PROVIDER_MODE.toString()]]),"base64UrlEncoder",new sw),t&&t.length>0&&n.decode(t),n}return g(e,sF),u(e,[{key:"encode",value:function(){return this.base64UrlEncoder.encode(this.encodeToBitString())}},{key:"decode",value:function(e){this.decodeFromBitString(this.base64UrlEncoder.decode(e))}},{key:"getId",value:function(){return e.ID}},{key:"getName",value:function(){return e.NAME}}])}();d(iT,"ID",11),d(iT,"VERSION",1),d(iT,"NAME","usutv1"),(iD=iI||(iI={})).VERSION="Version",iD.SHARING_NOTICE="SharingNotice",iD.SALE_OPT_OUT_NOTICE="SaleOptOutNotice",iD.TARGETED_ADVERTISING_OPT_OUT_NOTICE="TargetedAdvertisingOptOutNotice",iD.SALE_OPT_OUT="SaleOptOut",iD.TARGETED_ADVERTISING_OPT_OUT="TargetedAdvertisingOptOut",iD.SENSITIVE_DATA_PROCESSING="SensitiveDataProcessing",iD.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS="KnownChildSensitiveDataConsents",iD.MSPA_COVERED_TRANSACTION="MspaCoveredTransaction",iD.MSPA_OPT_OUT_OPTION_MODE="MspaOptOutOptionMode",iD.MSPA_SERVICE_PROVIDER_MODE="MspaServiceProviderMode",iD.GPC_SEGMENT_TYPE="GpcSegmentType",iD.GPC_SEGMENT_INCLUDED="GpcSegmentIncluded",iD.GPC="Gpc";var iC=function(){function e(t){a(this,e);var n,s=new Map;return s.set(iI.VERSION.toString(),new sk(6,e.VERSION)),s.set(iI.SHARING_NOTICE.toString(),new sk(2,0)),s.set(iI.SALE_OPT_OUT_NOTICE.toString(),new sk(2,0)),s.set(iI.TARGETED_ADVERTISING_OPT_OUT_NOTICE.toString(),new sk(2,0)),s.set(iI.SALE_OPT_OUT.toString(),new sk(2,0)),s.set(iI.TARGETED_ADVERTISING_OPT_OUT.toString(),new sk(2,0)),s.set(iI.SENSITIVE_DATA_PROCESSING.toString(),new ii(2,[0,0,0,0,0,0,0,0])),s.set(iI.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS.toString(),new ii(2,[0,0,0])),s.set(iI.MSPA_COVERED_TRANSACTION.toString(),new sk(2,0)),s.set(iI.MSPA_OPT_OUT_OPTION_MODE.toString(),new sk(2,0)),s.set(iI.MSPA_SERVICE_PROVIDER_MODE.toString(),new sk(2,0)),s.set(iI.GPC_SEGMENT_TYPE.toString(),new sk(2,1)),s.set(iI.GPC_SEGMENT_INCLUDED.toString(),new sY(!0)),s.set(iI.GPC.toString(),new sY(!1)),d(n=o(this,e,[s,[[iI.VERSION.toString(),iI.SHARING_NOTICE.toString(),iI.SALE_OPT_OUT_NOTICE.toString(),iI.TARGETED_ADVERTISING_OPT_OUT_NOTICE.toString(),iI.SALE_OPT_OUT.toString(),iI.TARGETED_ADVERTISING_OPT_OUT.toString(),iI.SENSITIVE_DATA_PROCESSING.toString(),iI.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS.toString(),iI.MSPA_COVERED_TRANSACTION.toString(),iI.MSPA_OPT_OUT_OPTION_MODE.toString(),iI.MSPA_SERVICE_PROVIDER_MODE.toString()],[iI.GPC_SEGMENT_TYPE.toString(),iI.GPC.toString()]]]),"base64UrlEncoder",new sw),t&&t.length>0&&n.decode(t),n}return g(e,s$),u(e,[{key:"encode",value:function(){var e=this.encodeSegmentsToBitStrings(),t=[];return t.push(this.base64UrlEncoder.encode(e[0])),e[1]&&e[1].length>0&&!0===this.fields.get(iI.GPC_SEGMENT_INCLUDED).getValue()&&t.pu
1sh(this.base64UrlEncoder.encode(e[1])),t.join(".")}},{key:"decode",value:function(e){for(var t=e.split("."),n=[],s=!1,i=0;i<t.length;i++){var r=this.base64UrlEncoder.decode(t[i]);switch(r.substring(0,2)){case"00":n[0]=r;break;case"01":s=!0,n[1]=r;break;default:throw new s_("Unable to decode segment '"+t[i]+"'")}}this.decodeSegmentsFromBitStrings(n),this.fields.get(iI.GPC_SEGMENT_INCLUDED).setValue(s)}},{key:"getId",value:function(){return e.ID}},{key:"getName",value:function(){return e.NAME}}])}();d(iC,"ID",12),d(iC,"VERSION",1),d(iC,"NAME","usctv1");var i_=u(function e(){a(this,e)});d(i_,"SECTION_ID_NAME_MAP",new Map([[s6.ID,s6.NAME],[s8.ID,s8.NAME],[s9.ID,s9.NAME],[ia.ID,ia.NAME],[il.ID,il.NAME],[ip.ID,ip.NAME],[iv.ID,iv.NAME],[iT.ID,iT.NAME],[iC.ID,iC.NAME]])),d(i_,"SECTION_ORDER",[s6.NAME,s8.NAME,s9.NAME,ia.NAME,il.NAME,ip.NAME,iv.NAME,iT.NAME,iC.NAME]);var iy=u(function e(t){a(this,e),d(this,"sections",new Map),d(this,"encodedString",void 0),d(this,"decoded",void 0),d(this,"dirty",void 0),t?this.encodedString=t:this.encodedString="DBAA",this.decoded=!1,this.dirty=!1},[{key:"setFieldValue",value:function(e,t,n){if(!this.decoded&&null!=this.encodedString&&this.encodedString.length>0)try{this.decode(this.encodedString)}catch(e){throw new sj(e.message)}var s=null;if(this.sections.has(e)?s=this.sections.get(e):e===s8.NAME?(s=new s8,this.sections.set(s8.NAME,s)):e===s6.NAME?(s=new s6,this.sections.set(s6.NAME,s)):e===s9.NAME?(s=new s9,this.sections.set(s9.NAME,s)):e===ia.NAME?(s=new ia,this.sections.set(ia.NAME,s)):e===il.NAME?(s=new il,this.sections.set(il.NAME,s)):e===ip.NAME?(s=new ip,this.sections.set(ip.NAME,s)):e===iv.NAME?(s=new iv,this.sections.set(iv.NAME,s)):e===iT.NAME?(s=new iT,this.sections.set(iT.NAME,s)):e===iC.NAME&&(s=new iC,this.sections.set(iC.NAME,s)),!s)throw new sH(e+"."+t+" not found");s.setFieldValue(t,n),this.dirty=!0}},{key:"setFieldValueBySectionId",value:function(e,t,n){this.setFieldValue(i_.SECTION_ID_NAME_MAP.get(e),t,n)}},{key:"getFieldValue",value:function(e,t){if(!this.decoded&&null!=this.encodedString&&this.encodedString.length>0)try{this.decode(this.encodedString)}catch(e){throw new sj(e.message)}return this.sections.has(e)?this.sections.get(e).getFieldValue(t):null}},{key:"getFieldValueBySectionId",value:function(e,t){return this.getFieldValue(i_.SECTION_ID_NAME_MAP.get(e),t)}},{key:"hasField",value:function(e,t){if(!this.decoded&&null!=this.encodedString&&this.encodedString.length>0)try{this.decode(this.encodedString)}catch(e){throw new sj(e.message)}return!!this.sections.has(e)&&this.sections.get(e).hasField(t)}},{key:"hasFieldBySectionId",value:function(e,t){return this.hasField(i_.SECTION_ID_NAME_MAP.get(e),t)}},{key:"hasSection",value:function(e){if(!this.decoded&&null!=this.encodedString&&this.encodedString.length>0)try{this.decode(this.encodedString)}catch(e){throw new sj(e.message)}return this.sections.has(e)}},{key:"hasSectionId",value:function(e){return this.hasSection(i_.SECTION_ID_NAME_MAP.get(e))}},{key:"deleteSection",value:function(e){if(!this.decoded&&null!=this.encodedString&&this.encodedString.length>0)try{this.decode(this.encodedString)}catch(e){throw new sj(e.message)}this.sections.delete(e),this.dirty=!0}},{key:"deleteSectionById",value:function(e){this.deleteSection(i_.SECTION_ID_NAME_MAP.get(e))}},{key:"clear",value:function(){this.sections.clear(),this.encodedString="DBAA",this.decoded=!1,this.dirty=!1}},{key:"getHeader",value:function(){if(!this.decoded&&null!=this.encodedString&&this.encodedString.length>0)try{this.decode(this.encodedString)}catch(e){throw new sj(e.message)}var e=new sG;return e.setFieldValue("SectionIds",this.getSectionIds()),e.toObj()}},{key:"getSection",value:function(e){if(!this.decoded&&null!=this.encodedString&&this.encodedString.length>0)try{this.decode(this.encodedString)}catch(e){throw new sj(e.message)}return this.sections.has(e)?this.sections.get(e).toObj():null}},{key:"getSectionIds",value:function(){if(!this.decoded&&null!=this.encodedString&&this.encodedString.length>0)try{this.decode(this.encodedString)}catch(e){throw new sj(e.message)}for(var e=[],t=0;t<i_.SECTION_ORDER.length;t++){var n=i_.SECTION_ORDER[t];if(this.sections.has(n)){var s=this.sections.get(n);e.push(s.getId())}}return e}},{key:"encode",value:function(){if(!this.dirty)return this.encodedString;if(!this.decoded&&null!=this.encodedString&&this.encodedString.length>0)try{this.decode(this.encodedString)}catch(e){throw new sj(e.message)}for(var e=[],t=[],n=0;
1n<i_.SECTION_ORDER.length;n++){var s=i_.SECTION_ORDER[n];if(this.sections.has(s)){var i=this.sections.get(s);e.push(i.encode()),t.push(i.getId())}}var r=new sG;return r.setFieldValue("SectionIds",this.getSectionIds()),e.unshift(r.encode()),this.encodedString=e.join("~"),this.dirty=!1,this.encodedString}},{key:"decode",value:function(e){this.encodedString=e,this.decoded=!1,this.dirty=!0,this.sections.clear();var t=e.split("~"),n=new sG(t[0]);this.sections.set(sG.NAME,n);for(var s=n.getFieldValue("SectionIds"),i=0;i<s.length;i++)if(s[i]===s8.ID){var r=new s8(t[i+1]);this.sections.set(s8.NAME,r)}else if(s[i]===s6.ID){var o=new s6(t[i+1]);this.sections.set(s6.NAME,o)}else if(s[i]===s9.ID){var a=new s9(t[i+1]);this.sections.set(s9.NAME,a)}else if(s[i]===ia.ID){var c=new ia(t[i+1]);this.sections.set(ia.NAME,c)}else if(s[i]===il.ID){var u=new il(t[i+1]);this.sections.set(il.NAME,u)}else if(s[i]===ip.ID){var l=new ip(t[i+1]);this.sections.set(ip.NAME,l)}else if(s[i]===iv.ID){var d=new iv(t[i+1]);this.sections.set(iv.NAME,d)}else if(s[i]===iT.ID){var h=new iT(t[i+1]);this.sections.set(iT.NAME,h)}else if(s[i]===iC.ID){var p=new iC(t[i+1]);this.sections.set(iC.NAME,p)}this.decoded=!0,this.dirty=!1}},{key:"encodeSection",value:function(e){if(!this.decoded&&null!=this.encodedString&&this.encodedString.length>0)try{this.decode(this.encodedString)}catch(e){throw new sj(e.message)}return this.sections.has(e)?this.sections.get(e).encode():null}},{key:"encodeSectionById",value:function(e){return this.encodeSection(i_.SECTION_ID_NAME_MAP.get(e))}},{key:"decodeSection",value:function(e,t){if(!this.decoded&&null!=this.encodedString&&this.encodedString.length>0)try{this.decode(this.encodedString)}catch(e){throw new sj(e.message)}var n=null;this.sections.has(e)?n=this.sections.get(e):e===s8.NAME?(n=new s8,this.sections.set(s8.NAME,n)):e===s6.NAME?(n=new s6,this.sections.set(s6.NAME,n)):e===s9.NAME?(n=new s9,this.sections.set(s9.NAME,n)):e===ia.NAME?(n=new ia,this.sections.set(ia.NAME,n)):e===il.NAME?(n=new il,this.sections.set(il.NAME,n)):e===ip.NAME?(n=new ip,this.sections.set(ip.NAME,n)):e===iv.NAME?(n=new iv,this.sections.set(iv.NAME,n)):e===iT.NAME?(n=new iT,this.sections.set(iT.NAME,n)):e===iC.NAME&&(n=new iC,this.sections.set(iC.NAME,n)),n&&(n.decode(t),this.dirty=!0)}},{key:"decodeSectionById",value:function(e,t){this.decodeSection(i_.SECTION_ID_NAME_MAP.get(e),t)}},{key:"toObject",value:function(){if(!this.decoded&&null!=this.encodedString&&this.encodedString.length>0)try{this.decode(this.encodedString)}catch(e){throw new sj(e.message)}for(var e={},t=0;t<i_.SECTION_ORDER.length;t++){var n=i_.SECTION_ORDER[t];this.sections.has(n)&&(e[n]=this.sections.get(n).toObj())}return e}}]),iA=u(function e(){a(this,e),d(this,"gppVersion","1.1"),d(this,"supportedAPIs",[]),d(this,"eventQueue",new sC(this)),d(this,"cmpStatus",sf.LOADING),d(this,"cmpDisplayStatus",sS.HIDDEN),d(this,"signalStatus",sE.NOT_READY),d(this,"applicableSections",[]),d(this,"gppModel",new iy),d(this,"cmpId",void 0),d(this,"cmpVersion",void 0),d(this,"eventStatus",void 0)},[{key:"reset",value:function(){this.eventQueue.clear(),this.cmpStatus=sf.LOADING,this.cmpDisplayStatus=sS.HIDDEN,this.signalStatus=sE.NOT_READY,this.applicableSections=[],this.supportedAPIs=[],this.gppModel=new iy,delete this.cmpId,delete this.cmpVersion,delete this.eventStatus}}]),im=u(function e(){a(this,e)},null,[{key:"absCall",value:function(e,t,n,s){return new Promise(function(i,r){var o=new XMLHttpRequest;o.withCredentials=n,o.addEventListener("load",function(){if(o.readyState==XMLHttpRequest.DONE)if(o.status>=200&&o.status<300){var e=o.response;if("string"==typeof e)try{e=JSON.parse(e)}catch(e){}i(e)}else r(Error("HTTP Status: ".concat(o.status," response type: ").concat(o.responseType)))}),o.addEventListener("error",function(){r(Error("error"))}),o.addEventListener("abort",function(){r(Error("aborted"))}),null===t?o.open("GET",e,!0):o.open("POST",e,!0),o.responseType="json",o.timeout=s,o.ontimeout=function(){r(Error("Timeout "+s+"ms "+e))},o.send(t)})}},{key:"post",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;return this.absCall(e,JSON.stringify(t),n,s)}},{key:"fetch",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return this.absCall(e,null,t,n)}}]),iO=function(){function e(t){var n;return a(this,e),(n=o(this,e,[t])).name="GVLError",n}return g(e,O(Error)),u(e)}(),iN=function(){function e(){a(this,e)}return u(e,[{key:"has",value:function(t){return e.langSet.has(t)}}
1,{key:"forEach",value:function(t){e.langSet.forEach(t)}},{key:"size",get:function(){return e.langSet.size}}])}();d(iN,"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"]));var ib=function(){var e,t;function n(){a(this,n),d(this,"vendors",void 0),d(this,"consentLanguages",new iN),d(this,"gvlSpecificationVersion",void 0),d(this,"vendorListVersion",void 0),d(this,"tcfPolicyVersion",void 0),d(this,"lastUpdated",void 0),d(this,"purposes",void 0),d(this,"specialPurposes",void 0),d(this,"features",void 0),d(this,"specialFeatures",void 0),d(this,"stacks",void 0),d(this,"dataCategories",void 0),d(this,"language",n.DEFAULT_LANGUAGE),d(this,"vendorIds",void 0),d(this,"ready",!1),d(this,"fullVendorList",void 0),d(this,"byPurposeVendorMap",void 0),d(this,"bySpecialPurposeVendorMap",void 0),d(this,"byFeatureVendorMap",void 0),d(this,"bySpecialFeatureVendorMap",void 0),d(this,"baseUrl",void 0),d(this,"languageFilename","purposes-[LANG].json")}return u(n,[{key:"changeLanguage",value:(t=r(E().m(function e(t){var n,s,i;return E().w(function(e){for(;;)switch(e.p=e.n){case 0:if(n=t.toUpperCase(),!this.consentLanguages.has(n)){e.n=5;break}if(n===this.language){e.n=4;break}return this.language=n,s=this.baseUrl+this.languageFilename.replace("[LANG]",t),e.p=1,i=this,e.n=2,im.fetch(s);case 2:i.populate.call(i,e.v),e.n=4;break;case 3:throw e.p=3,new iO("unable to load language: "+e.v.message);case 4:e.n=6;break;case 5:throw new iO("unsupported language ".concat(t));case 6:return e.a(2)}},e,this,[[1,3]])})),function(e){return t.apply(this,arguments)})},{key:"getJson",value:function(){return JSON.parse(JSON.stringify({gvlSpecificationVersion:this.gvlSpecificationVersion,vendorListVersion:this.vendorListVersion,tcfPolicyVersion:this.tcfPolicyVersion,lastUpdated:this.lastUpdated,purposes:this.purposes,specialPurposes:this.specialPurposes,features:this.features,specialFeatures:this.specialFeatures,stacks:this.stacks,dataCategories:this.dataCategories,vendors:this.fullVendorList}))}},{key:"isVendorList",value:function(e){return void 0!==e&&void 0!==e.vendors}},{key:"populate",value:function(e){this.purposes=e.purposes,this.specialPurposes=e.specialPurposes,this.features=e.features,this.specialFeatures=e.specialFeatures,this.stacks=e.stacks,this.dataCategories=e.dataCategories,this.isVendorList(e)&&(this.gvlSpecificationVersion=e.gvlSpecificationVersion,this.tcfPolicyVersion=e.tcfPolicyVersion,this.vendorListVersion=e.vendorListVersion,this.lastUpdated=e.lastUpdated,"string"==typeof this.lastUpdated&&(this.lastUpdated=new Date(this.lastUpdated)),this.vendors=e.vendors,this.fullVendorList=e.vendors,this.mapVendors(),this.ready=!0)}},{key:"mapVendors",value:function(e){var t=this;this.byPurposeVendorMap={},this.bySpecialPurposeVendorMap={},this.byFeatureVendorMap={},this.bySpecialFeatureVendorMap={},Object.keys(this.purposes).forEach(function(e){t.byPurposeVendorMap[e]={legInt:new Set,impCons: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 s=t.vendors[String(n)];return s&&void 0===s.deletedDate&&(s.purposes.forEach(function(e){t.byPurposeVendorMap[String(e)].consent.add(n)}),s.specialPurposes.forEach(function(e){t.bySpecialPurposeVendorMap[String(e)].add(n)}),s.legIntPurposes&&s.legIntPurposes.forEach(function(e){t.byPurposeVendorMap[String(e)].legInt.add(n)}),s.impConsPurposes&&s.impConsPurposes.forEach(function(e){t.byPurposeVendorMap[String(e)].impCons.add(n)}),s.flexiblePurposes&&s.flexiblePurposes.forEach(function(e){t.byPurposeVendorMap[String(e)].flexible.add(n)}),s.features.forEach(function(e){t.byFeatureVendorMap[String(e)].add(n)}
1),s.specialFeatures.forEach(function(e){t.bySpecialFeatureVendorMap[String(e)].add(n)}),e[n]=s),e},{})}},{key:"getFilteredVendors",value:function(e,t,n,s){var i=this,r=e.charAt(0).toUpperCase()+e.slice(1),o={};return("purpose"===e&&n?this["by"+r+"VendorMap"][String(t)][n]:this["by"+(s?"Special":"")+r+"VendorMap"][String(t)]).forEach(function(e){o[String(e)]=i.vendors[String(e)]}),o}},{key:"getVendorsWithConsentPurpose",value:function(e){return this.getFilteredVendors("purpose",e,"consent")}},{key:"getVendorsWithLegIntPurpose",value:function(e){return this.getFilteredVendors("purpose",e,"legInt")}},{key:"getVendorsWithFlexiblePurpose",value:function(e){return this.getFilteredVendors("purpose",e,"flexible")}},{key:"getVendorsWithSpecialPurpose",value:function(e){return this.getFilteredVendors("purpose",e,void 0,!0)}},{key:"getVendorsWithFeature",value:function(e){return this.getFilteredVendors("feature",e)}},{key:"getVendorsWithSpecialFeature",value:function(e){return this.getFilteredVendors("feature",e,void 0,!0)}},{key:"narrowVendorsTo",value:function(e){this.mapVendors(e)}},{key:"isReady",get:function(){return this.ready}}],[{key:"fromVendorList",value:function(e){var t=new n;return t.populate(e),t}},{key:"fromUrl",value:(e=r(E().m(function e(t){var s,i,r,o,a,c,u,l;return E().w(function(e){for(;;)switch(e.n){case 0:if((s=t.baseUrl)&&0!==s.length){e.n=1;break}throw new iO("Invalid baseUrl: '"+s+"'");case 1:if(!/^https?:\/\/vendorlist\.consensu\.org\//.test(s)){e.
1n=2;break}throw new iO("Invalid baseUrl! You may not pull directly from vendorlist.consensu.org and must provide your own cache");case 2:if(s.length>0&&"/"!==s[s.length-1]&&(s+="/"),(i=new n).baseUrl=s,t.languageFilename?i.languageFilename=t.languageFilename:i.languageFilename="purposes-[LANG].json",!(t.version>0)){e.n=4;break}return(r=t.versionedFilename)||(r="archives/vendor-list-v[VERSION].json"),o=s+r.replace("[VERSION]",String(t.version)),u=i,e.n=3,im.fetch(o);case 3:u.populate.call(u,e.v),e.n=6;break;case 4:return(a=t.latestFilename)||(a="vendor-list.json"),c=s+a,l=i,e.n=5,im.fetch(c);case 5:l.populate.call(l,e.v);case 6:return e.a(2,i)}},e)})),function(t){return e.apply(this,arguments)})},{key:"isInstanceOf",value:function(e){return"object"===A(e)&&"function"==typeof e.narrowVendorsTo}}])}();d(ib,"DEFAULT_LANGUAGE","EN");var iD,iR,iw,iL,iP=u(function e(t,n,s){a(this,e),d(this,"callResponder",void 0),d(this,"cmpApiContext",void 0),this.cmpApiContext=new iA,this.cmpApiContext.cmpId=t,this.cmpApiContext.cmpVersion=n,this.callResponder=new sT(this.cmpApiContext,s)},[{key:"fireEvent",value:function(e,t){this.cmpApiContext.eventQueue.exec(e,t)}},{key:"fireErrorEvent",value:function(e){this.cmpApiContext.eventQueue.exec("error",e)}},{key:"fireSectionChange",value:function(e){this.cmpApiContext.eventQueue.exec("sectionChange",e)}},{key:"getEventStatus",value:function(){return this.cmpApiContext.eventStatus}},{key:"setEventStatus",value:function(e){this.cmpApiContext.eventStatus=e}},{key:"getCmpStatus",value:function(){return this.cmpApiContext.cmpStatus}},{key:"setCmpStatus",value:function(e){this.cmpApiContext.cmpStatus=e,this.cmpApiContext.eventQueue.exec("cmpStatus",e)}},{key:"getCmpDisplayStatus",value:function(){return this.cmpApiContext.cmpDisplayStatus}},{key:"setCmpDisplayStatus",value:function(e){this.cmpApiContext.cmpDisplayStatus=e,this.cmpApiContext.eventQueue.exec("cmpDisplayStatus",e)}},{key:"getSignalStatus",value:function(){return this.cmpApiContext.signalStatus}},{key:"setSignalStatus",value:function(e){this.cmpApiContext.signalStatus=e,this.cmpApiContext.eventQueue.exec("signalStatus",e)}},{key:"getApplicableSections",value:function(){return this.cmpApiContext.applicableSections}},{key:"setApplicableSections",value:function(e){this.cmpApiContext.applicableSections=e}},{key:"getSupportedAPIs",value:function(){return this.cmpApiContext.supportedAPIs}},{key:"setSupportedAPIs",value:function(e){this.cmpApiContext.supportedAPIs=e}},{key:"setGppString",value:function(e){this.cmpApiContext.gppModel.decode(e)}},{key:"getGppString",value:function(){return this.cmpApiContext.gppModel.encode()}},{key:"setSectionString",value:function(e,t){this.cmpApiContext.gppModel.decodeSection(e,t)}},{key:"setSectionStringById",value:function(e,t){this.setSectionString(i_.SECTION_ID_NAME_MAP.get(e),t)}},{key:"getSectionString",value:function(e){return this.cmpApiContext.gppModel.encodeSection(e)}},{key:"getSectionStringById",value:function(e){return this.getSectionString(i_.SECTION_ID_NAME_MAP.get(e))}},{key:"setFieldValue",value:function(e,t,n){this.cmpApiContext.gppModel.setFieldValue(e,t,n)}},{key:"setFieldValueBySectionId",value:function(e,t,n){this.setFieldValue(i_.SECTION_ID_NAME_MAP.get(e),t,n)}},{key:"getFieldValue",value:function(e,t){return this.cmpApiContext.gppModel.getFieldValue(e,t)}},{key:"getFieldValueBySectionId",value:function(e,t){return this.getFieldValue(i_.SECTION_ID_NAME_MAP.get(e),t)}},{key:"getSection",value:function(e){return this.cmpApiContext.gppModel.getSection(e)}},{key:"getSectionById",value:function(e){return this.getSection(i_.SECTION_ID_NAME_MAP.get(e))}},{key:"hasSection",value:function(e){return this.cmpApiContext.gppModel.hasSection(e)}},{key:"hasSectionId",value:function(e){return this.hasSection(i_.SECTION_ID_NAME_MAP.get(e))}},{key:"deleteSection",value:function(e){this.cmpApiContext.gppModel.deleteSection(e)}},{key:"deleteSectionById",value:function(e){this.deleteSection(i_.SECTION_ID_NAME_MAP.get(e))}},{key:"clear",value:function(){this.cmpApiContext.gppModel.clear()}},{key:"getObject",value:function(){return this.cmpApiContext.gppModel.toObject()}},{key:"getGvlFromVendorList",value:function(e){return ib.fromVendorList(e)}},{key:"getGvlFromUrl",value:(iR=r(E().m(function e(t){return E().w(function(e){for(;;)if(0===e.n)return e.a(2,ib.fromUrl(t))},e)})),function(e){return iR.apply(this,arguments)})}]),iV={tcfeuv2:2,tcfcav1:5,uspv1:6,usnat:7,usca:8,usva:9,usco:10,usut:11,usct:12},iU=function(){function e(e,t){var n=this;this.setApplicableSections=function(e){if(n.gppEnabled)try{n.gppApi.setApplicableSections([iV[e]])}catch(t){throw Error('GppData - setApplicableSections - unrecognized legalframework "'.concat(e,'"'))}},this.setCmpSignalReady=function(){return G(n,void 0,void 0,function(){return B(this,function(e){return this.gppEnabled&&this.gppApi.setSignalStatus(sE.READY),[2]})})},this.setCmpStatusLoaded=function(){return G(n,void 0,void 0,function(){return B(this,function(e){return this.gppEnabled&&this.gppApi.setCmpStatus(sf.LOADED),[2]})})},this.setCmpDisplayHidden=function(){return G(n,void 0,void 0,function(){return B(this,function(e){return this.gppEnabled&&this.gppApi.setCmpDisplayStatus(sS.HIDDEN),[2]})})},this.setCmpDisplayVisible=function(){return G(n,void 0,void 0,function(){return B(this,function(e){return this.gppEnabled&&this.gppApi.setCmpDisplayStatus(sS.VISIBLE),[2]})})},this.setSectionString=function(e,t){return G(n,void 0,void 0,function(){return B(this,function(n){return""!==e&&this.gppEnabled&&(this.gppApi.setSectionString(t,e),this.gppApi.fireSectionChange(t)),[2]})})},this.gppEnabled=t||!1,this.cmpId=(null==e?void 0:e.tcf2.cmpId)||5,this.cmpVersion=(null==e?void 0:e.tcf2.cmpVersion)||parseInt("3",10),this.gppApi=new iP(this.cmpId,this.cmpVersion),this.gppApi.setCmpStatus(sf.LOADING),this.gppApi.setSignalStatus(sE.NOT_READY)}return e.getInstance=function(t,n){var s,i=(null==(s=e.instance)?void 0:s.gppEnabled)||!1;return n||i?(e.instance||(e.instance=new e(t,n)),e.instance):null},e.prototype.resetGpp=function(){this.gppApi={}},e}(),iM=function(){function e(){this.primaryLanguage="",this.apiInstance=nl.getInstance()}return e.getInstance=function(){return e.instance||(e.instance=new e),e.instance},e.prototype.setPrimaryLanguage=function(e){this.primaryLanguage=e},e.prototype.getPrimaryLanguage=function(){return this.primaryLanguage},e.prototype.resolveLanguage=function(e){return void 0===e&&(e=!1),G(this,void 0,void 0,function(){var t,n,s,i,r;return B(this,function(o){switch(o.label){case 0:return t=eY.fetchUserCountryResponse(),n=[],t?(ni.getInstance().setUserCountryData({code:t.countryCode,name:t.countryName,regionCode:t.regionCode}),[3,3]):[3,1];case 1:return[4,this.apiInstance.fetchAvailableLanguages()];case 2:n=o.sent(),o.label=3;case 3:if(!e){if(this.primaryLanguage)return this.apiInstance.setJsonFileLanguage(this.primaryLanguage),[2];if(s=eY.fetchLanguage())return this.apiInstance.setJsonFileLanguage(s),[2]}return n.length?[3,5]:[4,this.apiInstance.fetchAvailableLanguages()];case 4:n=o.sent(),o.label=5;case 5:return(i=iF(n))?this.apiInstance.setJsonFileLanguage(i):(r=ik(n))?this.apiInstance.setJsonFileLanguage(r):n.length>0?this.apiInstance.setJsonFileLanguage(n[0]):this.apiInstance.setJsonFileLanguage("en"),[2]}})})},e}(),ik=function(e){var t=window.navigator;
1if(eq(t.languages))for(var n=0;n<t.languages.length;n+=1){var s=iG(e,t.languages[n]);if(s)return s}return iG(e,null!=t.language?t.language:t.userLanguage)},iF=function(e){var t=document.documentElement.lang;return t?iG(e,t):null},iG=function(e,t){if(t){var n=t.toLowerCase().replace("-","_");if(eJ(e,n))return n;var s=t.slice(0,2);if(eJ(e,s))return s}return null};(rp=iw||(iw={})).API_INVALID_COMMAND="Usercentrics: (__uspapi) Invalid command: ",rp.API_INVALID_CALLBACK="Usercentrics: (__uspapi) callback parameter not a function",rp.INVALID_STRING="Usercentrics: ccpa string is invalid",rp.RESHOW_AFTER_DAYS_INVALID="Usercentrics: reshow after days must be greater than 364.",rp.SETTINGS_UNDEFINED="Usercentrics: ccpa is missing in setting",(rg=iL||(iL={})).ACCEPT="Y",rg.DENY="N",rg.UNKNOWN="-";var iB=function(){function e(){this.apiInstance=nl.getInstance()}return e.prototype.getTargets=function(e){var t=this;return e.reduce(function(e,n){if("mark"!==n.entryType&&"measure"!==n.entryType&&"paint"!==n.entryType&&!n.name.startsWith("data:")&&!["visible"].includes(n.name)&&!/^https:\/\/([a-z0-9.]+).usercentrics\.eu/.test(n.name)){var s=n.name,i=t.extractSubdomain(s);if(-1===e.indexOf(i))return H(H([],x(e),!1),[i],!1)}return e},[])},e.prototype.initTagLogger=function(){var e=this;window.addEventListener("beforeunload",function(){document.addEventListener("visibilitychange",function(){"hidden"===document.visibilityState&&e.updateLog()})})},e.prototype.extractSubdomain=function(e){var t,n=e.split("/");return e.indexOf("://")>-1?(t="".concat(n[2]),n[3]&&(t+="/".concat(n[3]))):(t="".concat(n[0]),n[1]&&(t+="/".concat(n[1]))),t="".concat(t.split("?")[0])},e.prototype.updateLog=function(){if(Object.prototype.hasOwnProperty.call(window,"performance")&&"function"==typeof performance.getEntries){var e=window.performance.getEntries();this.apiInstance.updateTagLoggerData(this.getTargets(e))}else console.log("UC Warning: tag logger functionality is not supported by your browser.")},e}(),ix=function(){function e(){this.initOptions=null,this.isFirstTimePageVisit=!0,this.selectedLayer=null,this.shouldAcceptAllImplicitly=null,this.shouldDenyAllExplicitly=null,this.shouldShowFirstLayerOnVersionChange=!1,this.variant=null,this.ampInstance=tx.getInstance(),this.settingsV2=n3.getInstance(),this.rulesetInstance=nK.getInstance(),this.apiInstance=nl.getInstance()}return e.getInstance=function(){return e.instance||(e.instance=new e),e.instance},e.resetInstance=function(){e.instance.selectedLayer=null,e.instance.variant=null,e.instance.shouldAcceptAllImplicitly=null,e.instance.initOptions=null},e.prototype.init=function(e){return G(this,void 0,void 0,function(){var t,n;return B(this,function(s){switch(s.label){case 0:return this.initOptions=e,this.isFirstTimePageVisit=this.isFirstTimeVisit(),null!==this.shouldAcceptAllImplicitly?[3,2]:(t=this,[4,this.settingsV2.shouldAcceptAllImplicitlyOnInit()]);case 1:t.shouldAcceptAllImplicitly=s.sent(),s.label=2;case 2:return null!==this.shouldDenyAllExplicitly?[3,4]:(n=this,[4,this.settingsV2.shouldDenyAllExplicitlyOnInit()]);case 3:n.shouldDenyAllExplicitly=s.sent(),s.label=4;case 4:return this.shouldShowFirstLayerOnVersionChange=this.settingsV2.shouldShowFirstLayerOnVersionChange(),[2]}})})},e.prototype.isFirstTimeVisit=function(){return!eY.settingsExist()},e.prototype.shouldShowNone=function(){return G(this,void 0,void 0,function(){var e,t;return B(this,function(n){switch(n.label){case 0:return e=0===this.variant,this.apiInstance.getRulesetId()&&this.rulesetInstance.getIsUsingNoShow()?[2,this.rulesetInstance.getNoShow()]:null!==this.shouldAcceptAllImplicitly?[3,2]:(t=this,[4,this.settingsV2.shouldAcceptAllImplicitlyOnInit()]);case 1:t.shouldAcceptAllImplicitly=n.sent(),n.label=2;case 2:return[2,this.shouldAcceptAllImplicitly&&!e]}})})},e.prototype.shouldManuallyResurface=function(){var e=this.settingsV2.core,t=eY.fetchServices(),n=0===this.variant,s=null;if(t&&t.length>0){if(n)s=eY.getCcpaTimeStamp();else{var i=tr(t.reduce(function(e,t){return H(H([],x(e),!1),x(t.history),!1)},[]));e&&i.length>0&&(s=i[0].timestamp)}if(e&&s){var r=e.renewConsentsTimestamp;if(r&&Date.now()/1e3>r&&s/1e3<r)return!0}}return!1},e.prototype.shouldShowFirstLayer=function(e){var t,n,s,i=this.ampInstance.isAmpEnabled(),r=0===this.variant,o=(null==(t=e.ccpa)?void 0:t.showOnPageLoad)||!1,a=r?o:!this.shouldAcceptAllImplicitly;if(this.shouldManuallyResurface())return!0;
1if(this.shouldAcceptAllImplicitly&&!r||this.shouldDenyAllExplicitly)return!1;if(a&&this.isFirstTimePageVisit||this.shouldShowFirstLayerOnVersionChange||!eY.fetchUserActionPerformed()&&(!r||o)||i)return!0;switch(this.variant){case 0:if(this.shouldShowFirstLayerForCcpa(null==(n=e.ccpa)?void 0:n.reshowCMP,null==(s=e.ccpa)?void 0:s.reshowAfterDays))return!0;break;case 2:var c=this.settingsV2.getTcfData();if(null==c?void 0:c.shouldResurfaceUI())return!0;break;default:if(this.shouldForceReshowGDPRBanner())return!0}return!1},e.prototype.shouldForceReshowGDPRBanner=function(){var e=this.settingsV2.core;if(!e)return!1;var t=e.reshowBanner,n=tr(this.settingsV2.getServicesData().reduce(function(e,t){return H(H([],x(e),!1),x(t.consent.history),!1)},[]));if(t>0&&n.length>0){var s=new Date(n[0].timestamp);return s.setMonth(s.getMonth()+t),(new Date).getTime()-s.getTime()>=0}return!1},e.prototype.shouldShowPrivacyButton=function(e){var t=window.location.href,n=!e.privacyButtonUrls||0===e.privacyButtonUrls.contains.length;return e.privacyButtonUrls&&e.privacyButtonUrls.contains.length>0&&e.privacyButtonUrls.contains.some(function(e){return t.includes(e)})&&(n=!0),e.privacyButtonIsVisible&&n},e.prototype.resolveUiVariant=function(e){return G(this,void 0,void 0,function(){return B(this,function(t){switch(t.label){case 0:return null!==this.variant?[2,this.variant]:[4,this.settingsV2.isCcpaAvailable()];case 1:return t.sent()?this.variant=0:this.variant=e?2:1,[2,this.variant]}})})},e.prototype.resolveUiInitialLayer=function(e){return G(this,void 0,void 0,function(){return B(this,function(t){switch(t.label){case 0:return[4,this.shouldShowNone()];case 1:return t.sent()?[2,1]:this.shouldShowFirstLayer(e)?[2,0]:this.shouldShowPrivacyButton(e)?[2,2]:[2,1]}})})},e.prototype.resolveUIOptions=function(e){var t;return G(this,void 0,void 0,function(){var n,s,i,r;return B(this,function(o){switch(o.label){case 0:return n=this.ampInstance.isAmpEnabled(),null!==this.variant?[3,2]:(s=this,[4,this.resolveUiVariant(e.tcf2Enabled)]);case 1:s.variant=o.sent(),o.label=2;case 2:return 0!==this.variant&&eY.clearCcpa(),2!==this.variant&&eY.clearTcf(),i=this,(null==(t=this.initOptions)?void 0:t.suppressCmpDisplay)?(r=1,[3,5]):[3,3];case 3:return[4,this.resolveUiInitialLayer(e)];case 4:r=o.sent(),o.label=5;case 5:return i.selectedLayer=r,[2,{ampEnabled:n,initialLayer:this.selectedLayer,variant:this.variant}]}})})},e.prototype.shouldShowFirstLayerForCcpa=function(e,t){void 0===t&&(t=365);var n,s,i=this.settingsV2.legacySettings,r=(s=eY.getCcpaData())?((new Date).getTime()-s.timestamp)/864e5:0;return i||void 0!==e?null!=(n=null!=e?e:null==i?void 0:i.ccpa.reshowCMP)&&n&&r>t:r>t},e}(),iH=Object.freeze({initialize:function({modulePath:e=".",importFunctionName:t="__import__"}={}){try{self[t]=Function("u","return import(u)")}catch(i){let n=new URL(e,location),s=e=>{URL.revokeObjectURL(e.src),e.remove()};self[t]=e=>new Promise((i,r)=>{let o=new URL(e,n);if(self[t].moduleMap[o])return i(self[t].moduleMap[o]);let a=new Blob([`import * as m from '${o}';`,`${t}.moduleMap['${o}']=m;`],{type:"text/javascript"}),c=Object.assign(document.createElement("script"),{type:"module",src:URL.createObjectURL(a),onerror(){r(Error(`Failed to import: ${e}`)),s(c)},onload(){i(self[t].moduleMap[o]),s(c)}});document.head.appendChild(c)}),self[t].moduleMap={}}}});function ij(e,t){return Object.keys(t).forEach(function(n){"default"===n||"__esModule"===n||Object.prototype.hasOwnProperty.call(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[n]}})}),e}function iY(e,t,n,s){Object.defineProperty(e,t,{get:n,set:s,enumerable:!0,configurable:!0})}var iJ={},iW={};iY(iW,"Base64Url",function(){return i2});var iK={},iq={};iY(iq,"DecodingError",function(){return iQ});var iQ=function(){function e(t){var n;return a(this,e),(n=o(this,e,[t])).name="DecodingError",n}return g(e,O(Error)),u(e)}(),iz={};iY(iz,"EncodingError",function(){return iX});var iX=function(){function e(t){var n;return a(this,e),(n=o(this,e,[t])).name="EncodingError",n}return g(e,O(Error)),u(e)}(),i$={};iY(i$,"GVLError",function(){return iZ});var iZ=function(){function e(t){var n;return a(this,e),(n=o(this,e,[t])).name="GVLError",n}return g(e,O(Error)),u(e)}(),i0={};iY(i0,"TCModelError",function(){return i1});var i1=function(){function e(t,n){var s,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";
1return a(this,e),(s=o(this,e,["invalid value ".concat(n," passed for ").concat(t," ").concat(i)])).name="TCModelError",s}return g(e,O(Error)),u(e)}();ij(iK,iq),ij(iK,iz),ij(iK,i$),ij(iK,i0);var i2=u(function e(){a(this,e)},null,[{key:"encode",value:function(e){if(!/^[0-1]+$/.test(e))throw new iX("Invalid bitField");var t=e.length%this.LCM;e+=t?"0".repeat(this.LCM-t):"";for(var n="",s=0;s<e.length;s+=this.BASIS)n+=this.DICT[parseInt(e.substr(s,this.BASIS),2)];return n}},{key:"decode",value:function(e){if(!/^[A-Za-z0-9\-_]+$/.test(e))throw new iQ("Invalidly encoded Base64URL string");for(var t="",n=0;n<e.length;n++){var s=this.REVERSE_DICT.get(e[n]).toString(2);t+="0".repeat(this.BASIS-s.length)+s}return t}}]);i2.DICT="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",i2.REVERSE_DICT=new Map([["A",0],["B",1],["C",2],["D",3],["E",4],["F",5],["G",6],["H",7],["I",8],["J",9],["K",10],["L",11],["M",12],["N",13],["O",14],["P",15],["Q",16],["R",17],["S",18],["T",19],["U",20],["V",21],["W",22],["X",23],["Y",24],["Z",25],["a",26],["b",27],["c",28],["d",29],["e",30],["f",31],["g",32],["h",33],["i",34],["j",35],["k",36],["l",37],["m",38],["n",39],["o",40],["p",41],["q",42],["r",43],["s",44],["t",45],["u",46],["v",47],["w",48],["x",49],["y",50],["z",51],["0",52],["1",53],["2",54],["3",55],["4",56],["5",57],["6",58],["7",59],["8",60],["9",61],["-",62],["_",63]]),i2.BASIS=6,i2.LCM=24;var i3={};iY(i3,"BitLength",function(){return rF});var i4={},i6={};iY(i6,"ConsentLanguages",function(){return i5});var i5=function(){function e(){a(this,e)}return u(e,[{key:"has",value:function(t){return e.langSet.has(t)}},{key:"parseLanguage",value:function(t){var n=(t=t.toUpperCase()).split("-")[0];if(t.length>=2&&2==n.length){if(e.langSet.has(t))return t;if(e.langSet.has(n))return n;var s=n+"-"+n;if(e.langSet.has(s))return s;var i,r=l(e.langSet);try{for(r.s();!(i=r.n()).done;){var o=i.value;if(-1!==o.indexOf(t)||-1!==o.indexOf(n))return o}}catch(e){r.e(e)}finally{r.f()}}throw Error("unsupported language ".concat(t))}},{key:"forEach",value:function(t){e.langSet.forEach(t)}},{key:"size",get:function(){return e.langSet.size}}])}();i5.langSet=new Set(["AR","BG","BS","CA","CS","CY","DA","DE","EL","EN","ES","ET","EU","FI","FR","GL","HE","HI","HR","HU","ID","IT","JA","KA","KO","LT","LV","MK","MS","MT","NL","NO","PL","PT-BR","PT-PT","RO","RU","SK","SL","SQ","SR-LATN","SR-CYRL","SV","SW","TH","TL","TR","UK","VI","ZH","ZH-HANT"]);var i7={};iY(i7,"Fields",function(){return i8});var i8=u(function e(){a(this,e)});i8.cmpId="cmpId",i8.cmpVersion="cmpVersion",i8.consentLanguage="consentLanguage",i8.consentScreen="consentScreen",i8.created="created",i8.supportOOB="supportOOB",i8.isServiceSpecific="isServiceSpecific",i8.lastUpdated="lastUpdated",i8.numCustomPurposes="numCustomPurposes",i8.policyVersion="policyVersion",i8.publisherCountryCode="publisherCountryCode",i8.publisherCustomConsents="publisherCustomConsents",i8.publisherCustomLegitimateInterests="publisherCustomLegitimateInterests",i8.publisherLegitimateInterests="publisherLegitimateInterests",i8.publisherConsents="publisherConsents",i8.publisherRestrictions="publisherRestrictions",i8.purposeConsents="purposeConsents",i8.purposeLegitimateInterests="purposeLegitimateInterests",i8.purposeOneTreatment="purposeOneTreatment",i8.specialFeatureOptins="specialFeatureOptins",i8.useNonStandardTexts="useNonStandardTexts",i8.vendorConsents="vendorConsents",i8.vendorLegitimateInterests="vendorLegitimateInterests",i8.vendorListVersion="vendorListVersion",i8.vendorsAllowed="vendorsAllowed",i8.vendorsDisclosed="vendorsDisclosed",i8.version="version";var i9={};iY(i9,"PurposeRestriction",function(){return rs}),iY({},"Cloneable",function(){return re});var re=u(function e(){a(this,e)},[{key:"clone",value:function(){var e=this,t=new this.constructor;return Object.keys(this).forEach(function(n){var s=e.deepClone(e[n]);void 0!==s&&(t[n]=s)}),t}},{key:"deepClone",value:function(e){var t=A(e);if("number"===t||"string"===t||"boolean"===t)return e;if(null!==e&&"object"===t){if("function"==typeof e.clone)return e.clone();if(e instanceof Date)return new Date(e.getTime());if(void 0!==e[Symbol.iterator]){var n,s=[],i=l(e);try{for(i.s();!(n=i.n()).done;){var r=n.value;s.push(this.deepClone(r))}}catch(e){i.e(e)}finally{i.f()}return e instanceof Array?s:new e.constructor(s)}var o={};for(var a in e)e.hasOwnProperty(a)&&(o[a]=this.deepClone(e[a]));return o}}}]),rt={};iY(rt,"RestrictionType",function(){return rn});
1var rn=((rf={})[rf.NOT_ALLOWED=0]="NOT_ALLOWED",rf[rf.REQUIRE_CONSENT=1]="REQUIRE_CONSENT",rf[rf.REQUIRE_LI=2]="REQUIRE_LI",rf),rs=function(){function e(t,n){var s;return a(this,e),s=o(this,e),void 0!==t&&(s.purposeId=t),void 0!==n&&(s.restrictionType=n),s}return g(e,re),u(e,[{key:"hash",get:function(){if(!this.isValid())throw Error("cannot hash invalid PurposeRestriction");return"".concat(this.purposeId).concat(e.hashSeparator).concat(this.restrictionType)}},{key:"purposeId",get:function(){return this.purposeId_},set:function(e){this.purposeId_=e}},{key:"isValid",value:function(){return Number.isInteger(this.purposeId)&&this.purposeId>0&&(this.restrictionType===rn.NOT_ALLOWED||this.restrictionType===rn.REQUIRE_CONSENT||this.restrictionType===rn.REQUIRE_LI)}},{key:"isSameAs",value:function(e){return this.purposeId===e.purposeId&&this.restrictionType===e.restrictionType}}],[{key:"unHash",value:function(t){var n=t.split(this.hashSeparator),s=new e;if(2!==n.length)throw new i1("hash",t);return s.purposeId=parseInt(n[0],10),s.restrictionType=parseInt(n[1],10),s}}])}();rs.hashSeparator="-";var ri={};iY(ri,"PurposeRestrictionVector",function(){return rr});var rr=function(){function e(){var t;a(this,e);for(var n=arguments.length,s=Array(n),i=0;i<n;i++)s[i]=arguments[i];return(t=o(this,e,[].concat(s))).bitLength=0,t.map=new Map,t}return g(e,re),u(e,[{key:"has",value:function(e){return this.map.has(e)}},{key:"isOkToHave",value:function(e,t,n){var s,i=!0;if(null!=(s=this.gvl)&&s.vendors){var r=this.gvl.vendors[n];if(r)if(e===rn.NOT_ALLOWED)i=r.legIntPurposes.includes(t)||r.purposes.includes(t);else if(r.flexiblePurposes.length)switch(e){case rn.REQUIRE_CONSENT:i=r.flexiblePurposes.includes(t)&&r.legIntPurposes.includes(t);break;case rn.REQUIRE_LI:i=r.flexiblePurposes.includes(t)&&r.purposes.includes(t)}else i=!1;else i=!1}return i}},{key:"add",value:function(e,t){if(this.isOkToHave(t.restrictionType,t.purposeId,e)){var n=t.hash;this.has(n)||(this.map.set(n,new Set),this.bitLength=0),this.map.get(n).add(e)}}},{key:"restrictPurposeToLegalBasis",value:function(e){var t=Array.from(this.gvl.vendorIds),n=e.hash,s=t[t.length-1],i=_(Array(s).keys()).map(function(e){return e+1});if(this.has(n))for(var r=1;r<=s;r++)this.map.get(n).add(r);else this.map.set(n,new Set(i)),this.bitLength=0}},{key:"getVendors",value:function(e){var t=[];if(e){var n=e.hash;this.has(n)&&(t=Array.from(this.map.get(n)))}else{var s=new Set;this.map.forEach(function(e){e.forEach(function(e){s.add(e)})}),t=Array.from(s)}return t.sort(function(e,t){return e-t})}},{key:"getRestrictionType",value:function(e,t){var n;return this.getRestrictions(e).forEach(function(e){e.purposeId===t&&(void 0===n||n>e.restrictionType)&&(n=e.restrictionType)}),n}},{key:"vendorHasRestriction",value:function(e,t){for(var n=!1,s=this.getRestrictions(e),i=0;i<s.length&&!n;i++)n=t.isSameAs(s[i]);return n}},{key:"getMaxVendorId",value:function(){var e=0;return this.map.forEach(function(t){e=Math.max(Array.from(t)[t.size-1],e)}),e}},{key:"getRestrictions",value:function(e){var t=[];return this.map.forEach(function(n,s){e?n.has(e)&&t.push(rs.unHash(s)):t.push(rs.unHash(s))}),t}},{key:"getPurposes",value:function(){var e=new Set;return this.map.forEach(function(t,n){e.add(rs.unHash(n).purposeId)}),Array.from(e)}},{key:"remove",value:function(e,t){var n=t.hash,s=this.map.get(n);s&&(s.delete(e),0==s.size&&(this.map.delete(n),this.bitLength=0))}},{key:"gvl",get:function(){return this.gvl_},set:function(e){var t=this;this.gvl_||(this.gvl_=e,this.map.forEach(function(e,n){var s=rs.unHash(n);Array.from(e).forEach(function(n){t.isOkToHave(s.restrictionType,s.purposeId,n)||e.delete(n)})}))}},{key:"isEmpty",value:function(){return 0===this.map.size}},{key:"numRestrictions",get:function(){return this.map.size}}])}(),ro={};iY(ro,"DeviceDisclosureStorageAccessType",function(){return ra});var ra=((rS={}).COOKIE="cookie",rS.WEB="web",rS.APP="app",rS),rc={};iY(rc,"Segment",function(){return ru});var ru=((rv={}).CORE="core",rv.VENDORS_DISCLOSED="vendorsDisclosed",rv.VENDORS_ALLOWED="vendorsAllowed",rv.PUBLISHER_TC="publisherTC",rv),rl={};iY(rl,"SegmentIDs",function(){return rd});var rd=u(function e(){a(this,e)});rd.ID_TO_KEY=[ru.CORE,ru.VENDORS_DISCLOSED,ru.VENDORS_ALLOWED,ru.PUBLISHER_TC],rd.KEY_TO_ID=d(d(d(d({},ru.CORE,0),ru.VENDORS_DISCLOSED,1),ru.VENDORS_ALLOWED,2),ru.PUBLISHER_TC,3);var rh={};iY(rh,"Vector",function(){return rM});var rp,rg,rf,rS,rv,rE,rI,rT,rC,r_,ry,rA,rm,rO,rN,rb,rD,rR,rw,rL,rP,rV,rU,rM=function(){function e(){var t;a(this,e);for(var n=arguments.length,s=Array(n),i=0;i<n;i++)s[i]=arguments[i];return(t=o(this,e,[].concat(s))).bitLength=0,t.maxId_=0,t.set_=new Set,t}return g(e,re),u(e,[{key:Symbol.iterator,value:E().m(function e(){var t;return E().w(function(e){for(;;)switch(e.n){case 0:t=1;case 1:if(!(t<=this.maxId)){e.n=3;break}return e.n=2,[t,this.has(t)];case 2:t++,e.n=1;break;case 3:return e.a(2)}},e,this)})},{key:"values",value:function(){return this.set_.values()}},{key:"maxId",get:function(){return this.maxId_}},{key:"has",value:function(e){return this.set_.has(e)}},{key:"unset",value:function(e){var t=this;Array.isArray(e)?e.forEach(function(e){return t.unset(e)}):"object"===A(e)?this.unset(Object.keys(e).map(function(e){return Number(e)})):(this.set_.delete(Number(e)),this.bitLength=0,e===this.maxId&&(this.maxId_=0,this.set_.forEach(function(e){t.maxId_=Math.max(t.maxId,e)})))}},{key:"isIntMap",value:function(e){var t=this;return"object"===A(e)&&Object.keys(e).every(function(n){var s=Number.isInteger(parseInt(n,10));return(s=s&&t.isValidNumber(e[n].id))&&void 0!==e[n].name})}},{key:"isValidNumber",value:function(e){return parseInt(e,10)>0}},{key:"isSet",value:function(e){var t=!1;return e instanceof Set&&(t=Array.from(e).every(this.isValidNumber)),t}},{key:"set",value:function(e){var t=this;if(Array.isArray(e))e.forEach(function(e){return t.set(e)});else if(this.isSet(e))this.set(Array.from(e));else if(this.isIntMap(e))this.set(Object.keys(e).map(function(e){return Number(e)}));else{if(!this.isValidNumber(e))throw new i1("set()",e,"must be positive integer array, positive integer, Set<number>, or IntMap");this.set_.add(e),this.maxId_=Math.max(this.maxId,e),this.bitLength=0}}},{key:"empty",value:function(){this.set_=new Set}}
1,{key:"forEach",value:function(e){for(var t=1;t<=this.maxId;t++)e(this.has(t),t)}},{key:"size",get:function(){return this.set_.size}},{key:"setAll",value:function(e){this.set(e)}}])}(),rk={};ij(rk,{}),ij(rk,{}),ij(rk,{}),ij(rk,{}),ij(rk,{}),ij(rk,{}),ij(rk,{}),ij(rk,{}),ij(rk,{}),ij(rk,{}),ij(rk,{}),ij(i4,i6),ij(i4,i7),ij(i4,{}),ij(i4,{}),ij(i4,i9),ij(i4,ri),ij(i4,ro),ij(i4,{}),ij(i4,rt),ij(i4,rc),ij(i4,rl),ij(i4,rh),ij(i4,rk);var rF=u(function e(){a(this,e)});rE=i8.cmpId,rI=i8.cmpVersion,rT=i8.consentLanguage,rC=i8.consentScreen,r_=i8.created,ry=i8.isServiceSpecific,rA=i8.lastUpdated,rm=i8.policyVersion,rO=i8.publisherCountryCode,rN=i8.publisherLegitimateInterests,rb=i8.publisherConsents,rD=i8.purposeConsents,rR=i8.purposeLegitimateInterests,rw=i8.purposeOneTreatment,rL=i8.specialFeatureOptins,rP=i8.useNonStandardTexts,rV=i8.vendorListVersion,rU=i8.version,rF[rE]=12,rF[rI]=12,rF[rT]=12,rF[rC]=6,rF[r_]=36,rF[ry]=1,rF[rA]=36,rF[rm]=6,rF[rO]=12,rF[rN]=24,rF[rb]=24,rF[rD]=24,rF[rR]=24,rF[rw]=1,rF[rL]=12,rF[rP]=1,rF[rV]=12,rF[rU]=6,rF.anyBoolean=1,rF.encodingType=1,rF.maxId=16,rF.numCustomPurposes=6,rF.numEntries=12,rF.numRestrictions=12,rF.purposeId=6,rF.restrictionType=2,rF.segmentType=3,rF.singleOrRange=1,rF.vendorId=16;var rG={};iY(rG,"SegmentEncoder",function(){return oe});var rB={},rx={};iY(rx,"BooleanEncoder",function(){return rH});var rH=u(function e(){a(this,e)},null,[{key:"encode",value:function(e){return String(Number(e))}},{key:"decode",value:function(e){return"1"===e}}]),rj={};iY(rj,"DateEncoder",function(){return rW});var rY={};iY(rY,"IntEncoder",function(){return rJ});var rJ=u(function e(){a(this,e)},null,[{key:"encode",value:function(e,t){var n;if("string"==typeof e&&(e=parseInt(e,10)),(n=e.toString(2)).length>t||e<0)throw new iX("".concat(e," too large to encode into ").concat(t));return n.length<t&&(n="0".repeat(t-n.length)+n),n}},{key:"decode",value:function(e,t){if(t!==e.length)throw new iQ("invalid bit length");return parseInt(e,2)}}]),rW=u(function e(){a(this,e)},null,[{key:"encode",value:function(e,t){return rJ.encode(Math.round(e.getTime()/100),t)}},{key:"decode",value:function(e,t){if(t!==e.length)throw new iQ("invalid bit length");var n=new Date;return n.setTime(100*rJ.decode(e,t)),n}}]),rK={};iY(rK,"FieldEncoderMap",function(){return r4});var rq={};iY(rq,"FixedVectorEncoder",function(){return rQ});var rQ=u(function e(){a(this,e)},null,[{key:"encode",value:function(e,t){for(var n="",s=1;s<=t;s++)n+=rH.encode(e.has(s));return n}},{key:"decode",value:function(e,t){if(e.length!==t)throw new iQ("bitfield encoding length mismatch");for(var n=new rM,s=1;s<=t;s++)rH.decode(e[s-1])&&n.set(s);return n.bitLength=e.length,n}}]),rz={};iY(rz,"LangEncoder",function(){return rX});var rX=u(function e(){a(this,e)},null,[{key:"encode",value:function(e,t){var n=(e=e.toUpperCase()).charCodeAt(0)-65,s=e.charCodeAt(1)-65;if(n<0||n>25||s<0||s>25)throw new iX("invalid language code: ".concat(e));if(t%2==1)throw new iX("numBits must be even, ".concat(t," is not valid"));return t/=2,rJ.encode(n,t)+rJ.encode(s,t)}},{key:"decode",value:function(e,t){if(t!==e.length||e.length%2)throw new iQ("invalid bit length for language");var n=e.length/2,s=rJ.decode(e.slice(0,n),n)+65,i=rJ.decode(e.slice(n),n)+65;return String.fromCharCode(s)+String.fromCharCode(i)}}]),r$={};iY(r$,"PurposeRestrictionVectorEncoder",function(){return rZ});var rZ=u(function e(){a(this,e)},null,[{key:"encode",value:function(e){var t=rJ.encode(e.numRestrictions,rF.numRestrictions);if(!e.isEmpty()){var n=function(t,n){for(var s=t+1;s<=n;s++)if(e.gvl.vendorIds.has(s))return s;return t};e.getRestrictions().forEach(function(s){t+=rJ.encode(s.purposeId,rF.purposeId),t+=rJ.encode(s.restrictionType,rF.restrictionType);for(var i=e.getVendors(s),r=i.length,o=0,a=0,c="",u=0;u<r;u++){var l=i[u];if(0===a&&(o++,a=l),u===r-1||i[u+1]>n(l,i[r-1])){var d=l!==a;c+=rH.encode(d),c+=rJ.encode(a,rF.vendorId),d&&(c+=rJ.encode(l,rF.vendorId)),a=0}}t+=rJ.encode(o,rF.numEntries),t+=c})}return t}},{key:"decode",value:function(e){var t=0,n=new rr,s=rJ.decode(e.substr(t,rF.numRestrictions),rF.numRestrictions);t+=rF.numRestrictions;for(var i=0;i<s;i++){var r=rJ.decode(e.substr(t,rF.purposeId),rF.purposeId);t+=rF.purposeId;var o=rJ.decode(e.substr(t,rF.restrictionType),rF.restrictionType);t+=rF.restrictionType;var a=new rs(r,o),c=rJ.decode(e.substr(t,rF.numEntries),rF.numEntries);t+=rF.numEntries;for(var u=0;u<c;
1u++){var l=rH.decode(e.substr(t,rF.anyBoolean));t+=rF.anyBoolean;var d=rJ.decode(e.substr(t,rF.vendorId),rF.vendorId);if(t+=rF.vendorId,l){var h=rJ.decode(e.substr(t,rF.vendorId),rF.vendorId);if(t+=rF.vendorId,h<d)throw new iQ("Invalid RangeEntry: endVendorId ".concat(h," is less than ").concat(d));for(var p=d;p<=h;p++)n.add(p,a)}else n.add(d,a)}}return n.bitLength=t,n}}]),r0={};iY(r0,"VendorVectorEncoder",function(){return r3});var r1={};iY(r1,"VectorEncodingType",function(){return r2});var r2=((oo={})[oo.FIELD=0]="FIELD",oo[oo.RANGE=1]="RANGE",oo),r3=u(function e(){a(this,e)},null,[{key:"encode",value:function(e){var t,n=[],s=[],i=rJ.encode(e.maxId,rF.maxId),r="",o=rF.maxId+rF.encodingType,a=o+e.maxId,c=2*rF.vendorId+rF.singleOrRange+rF.numEntries,u=o+rF.numEntries;return e.forEach(function(i,o){r+=rH.encode(i),(t=e.maxId>c&&u<a)&&i&&(e.has(o+1)?0===s.length&&(s.push(o),u+=rF.singleOrRange,u+=rF.vendorId):(s.push(o),u+=rF.vendorId,n.push(s),s=[]))}),t?(i+=String(r2.RANGE),i+=this.buildRangeEncoding(n)):(i+=String(r2.FIELD),i+=r),i}},{key:"decode",value:function(e,t){var n,s=0,i=rJ.decode(e.substr(s,rF.maxId),rF.maxId);s+=rF.maxId;var r=rJ.decode(e.charAt(s),rF.encodingType);if(s+=rF.encodingType,r===r2.RANGE){if(n=new rM,1===t){if("1"===e.substr(s,1))throw new iQ("Unable to decode default consent=1");s++}var o=rJ.decode(e.substr(s,rF.numEntries),rF.numEntries);s+=rF.numEntries;for(var a=0;a<o;a++){var c=rH.decode(e.charAt(s));s+=rF.singleOrRange;var u=rJ.decode(e.substr(s,rF.vendorId),rF.vendorId);if(s+=rF.vendorId,c){var l=rJ.decode(e.substr(s,rF.vendorId),rF.vendorId);s+=rF.vendorId;for(var d=u;d<=l;d++)n.set(d)}else n.set(u)}}else{var h=e.substr(s,i);s+=i,n=rQ.decode(h,i)}return n.bitLength=s,n}},{key:"buildRangeEncoding",value:function(e){var t=e.length,n=rJ.encode(t,rF.numEntries);return e.forEach(function(e){var t=1===e.length;n+=rH.encode(!t),n+=rJ.encode(e[0],rF.vendorId),t||(n+=rJ.encode(e[1],rF.vendorId))}),n}}]);function r4(){var e;return d(d(d(d(d(d(d(d(d(d(e={},i8.version,rJ),i8.created,rW),i8.lastUpdated,rW),i8.cmpId,rJ),i8.cmpVersion,rJ),i8.consentScreen,rJ),i8.consentLanguage,rX),i8.vendorListVersion,rJ),i8.policyVersion,rJ),i8.isServiceSpecific,rH),d(d(d(d(d(d(d(d(d(d(e,i8.useNonStandardTexts,rH),i8.specialFeatureOptins,rQ),i8.purposeConsents,rQ),i8.purposeLegitimateInterests,rQ),i8.purposeOneTreatment,rH),i8.publisherCountryCode,rX),i8.vendorConsents,r3),i8.vendorLegitimateInterests,r3),i8.publisherRestrictions,rZ),"segmentType",rJ),d(d(d(d(d(d(d(e,i8.vendorsDisclosed,r3),i8.vendorsAllowed,r3),i8.publisherConsents,rQ),i8.publisherLegitimateInterests,rQ),i8.numCustomPurposes,rJ),i8.publisherCustomConsents,rQ),i8.publisherCustomLegitimateInterests,rQ)}ij(rB,rx),ij(rB,rj),ij(rB,rK),ij(rB,rq),ij(rB,rY),ij(rB,rz),ij(rB,r$),ij(rB,r1),ij(rB,r0);var r6={},r5={};iY(r5,"FieldSequence",function(){return r7});var r7=u(function e(){a(this,e),this[1]=d({},ru.CORE,[i8.version,i8.created,i8.lastUpdated,i8.cmpId,i8.cmpVersion,i8.consentScreen,i8.consentLanguage,i8.vendorListVersion,i8.purposeConsents,i8.vendorConsents]),this[2]=d(d(d(d({},ru.CORE,[i8.version,i8.created,i8.lastUpdated,i8.cmpId,i8.cmpVersion,i8.consentScreen,i8.consentLanguage,i8.vendorListVersion,i8.policyVersion,i8.isServiceSpecific,i8.useNonStandardTexts,i8.specialFeatureOptins,i8.purposeConsents,i8.purposeLegitimateInterests,i8.purposeOneTreatment,i8.publisherCountryCode,i8.vendorConsents,i8.vendorLegitimateInterests,i8.publisherRestrictions]),ru.PUBLISHER_TC,[i8.publisherConsents,i8.publisherLegitimateInterests,i8.numCustomPurposes,i8.publisherCustomConsents,i8.publisherCustomLegitimateInterests]),ru.VENDORS_ALLOWED,[i8.vendorsAllowed]),ru.VENDORS_DISCLOSED,[i8.vendorsDisclosed])}),r8={};iY(r8,"SegmentSequence",function(){return r9});var r9=u(function e(t,n){if(a(this,e),this[1]=[ru.CORE],this[2]=[ru.CORE],2===t.version)if(t.isServiceSpecific)this[2].push(ru.VENDORS_DISCLOSED),this[2].push(ru.PUBLISHER_TC);else{var s=!(!n||!n.isForVendors);s&&!0!==t[i8.supportOOB]||this[2].push(ru.VENDORS_DISCLOSED),s&&(t[i8.supportOOB]&&t[i8.vendorsAllowed].size>0&&this[2].push(ru.VENDORS_ALLOWED),this[2].push(ru.PUBLISHER_TC))}});ij(r6,r5),ij(r6,r8),ij(r6,{});var oe=u(function e(){a(this,e)},null,[{key:"encode",value:function(e,t){var n,s=this;try{n=this.fieldSequence[String(e.version)][t]}catch(n){throw new iX("Unable to encode version: ".concat(e.version,", segment: ").concat(t))}var i="";t!==ru.CORE&&(i=rJ.encode(rd.KEY_TO_ID[t],rF.segmentType));var r=r4();
1return n.forEach(function(n){var o=e[n],a=r[n],c=rF[n];void 0===c&&s.isPublisherCustom(n)&&(c=Number(e[i8.numCustomPurposes]));try{i+=a.encode(o,c)}catch(e){throw new iX("Error encoding ".concat(t,"->").concat(n,": ").concat(e.message))}}),i2.encode(i)}},{key:"decode",value:function(e,t,n){var s=this,i=i2.decode(e),r=0;n===ru.CORE&&(t.version=rJ.decode(i.substr(r,rF[i8.version]),rF[i8.version])),n!==ru.CORE&&(r+=rF.segmentType);var o=this.fieldSequence[String(t.version)][n],a=r4();return o.forEach(function(e){var n=a[e],o=rF[e];if(void 0===o&&s.isPublisherCustom(e)&&(o=Number(t[i8.numCustomPurposes])),0!==o){var c=i.substr(r,o);if(t[e]=n===r3?n.decode(c,t.version):n.decode(c,o),Number.isInteger(o))r+=o;else{if(!Number.isInteger(t[e].bitLength))throw new iQ(e);r+=t[e].bitLength}}}),t}},{key:"isPublisherCustom",value:function(e){return 0===e.indexOf("publisherCustom")}}]);oe.fieldSequence=new r7;var ot={};iY(ot,"SemanticPreEncoder",function(){return on});var on=u(function e(){a(this,e)},null,[{key:"process",value:function(e,t){var n=e.gvl;if(!n)throw new iX("Unable to encode TCModel without a GVL");if(!n.isReady)throw new iX("Unable to encode TCModel tcModel.gvl.readyPromise is not resolved");(e=e.clone()).consentLanguage=n.language.slice(0,2).toUpperCase(),(null==t?void 0:t.version)>0&&(null==t?void 0:t.version)<=this.processor.length?e.version=t.version:e.version=this.processor.length;var s=e.version-1;if(!this.processor[s])throw new iX("Invalid version: ".concat(e.version));return this.processor[s](e,n)}}]);on.processor=[function(e){return e},function(e,t){e.publisherRestrictions.gvl=t,e.purposeLegitimateInterests.unset([1,3,4,5,6]);var n=new Map;return n.set("legIntPurposes",e.vendorLegitimateInterests),n.set("purposes",e.vendorConsents),n.forEach(function(n,s){n.forEach(function(i,r){if(i){var o=t.vendors[r];if(!o||o.deletedDate)n.unset(r);else if(0===o[s].length)if("legIntPurposes"===s&&0===o.purposes.length&&0===o.legIntPurposes.length&&o.specialPurposes.length>0)n.set(r);else if("legIntPurposes"===s&&o.purposes.length>0&&0===o.legIntPurposes.length&&o.specialPurposes.length>0)n.set(r);else if(e.isServiceSpecific)if(0===o.flexiblePurposes.length)n.unset(r);else{for(var a=e.publisherRestrictions.getRestrictions(r),c=!1,u=0,l=a.length;u<l&&!c;u++)c=a[u].restrictionType===rn.REQUIRE_CONSENT&&"purposes"===s||a[u].restrictionType===rn.REQUIRE_LI&&"legIntPurposes"===s;c||n.unset(r)}else n.unset(r)}})}),e.vendorsDisclosed.set(t.vendors),e}],ij(iJ,iW),ij(iJ,i3),ij(iJ,{}),ij(iJ,rG),ij(iJ,ot),ij(iJ,rB),ij(iJ,r6),iY({},"GVL",function(){return oi}),iY({},"Json",function(){return os});var os=u(function e(){a(this,e)},null,[{key:"absCall",value:function(e,t,n,s){return new Promise(function(i,r){var o=new XMLHttpRequest;o.withCredentials=n,o.addEventListener("load",function(){if(o.readyState==XMLHttpRequest.DONE)if(o.status>=200&&o.status<300){var e=o.response;if("string"==typeof e)try{e=JSON.parse(e)}catch(e){}i(e)}else r(Error("HTTP Status: ".concat(o.status," response type: ").concat(o.responseType)))}),o.addEventListener("error",function(){r(Error("error"))}),o.addEventListener("abort",function(){r(Error("aborted"))}),null===t?o.open("GET",e,!0):o.open("POST",e,!0),o.responseType="json",o.timeout=s,o.ontimeout=function(){r(Error("Timeout "+s+"ms "+e))},o.send(t)})}},{key:"post",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;return this.absCall(e,JSON.stringify(t),n,s)}},{key:"fetch",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return this.absCall(e,null,t,n)}}]),oi=function(){var e,t;function n(e,t){a(this,n),(s=o(this,n)).isReady_=!1,s.isLatest=!1;var s,i=n.baseUrl,r=null==t?void 0:t.language;if(r)try{r=n.consentLanguages.parseLanguage(r)}catch(e){throw new iZ("Error during parsing the language: "+e.message)}if(s.lang_=r||n.DEFAULT_LANGUAGE,s.cacheLang_=r||n.DEFAULT_LANGUAGE,s.isVendorList(e))s.populate(e),s.readyPromise=Promise.resolve();else{if(!i)throw new iZ("must specify GVL.baseUrl before loading GVL json");e>0?n.CACHE.has(e)?(s.populate(n.CACHE.get(e)),s.readyPromise=Promise.resolve()):(i+=n.versionedFilename.replace("[VERSION]",String(e)),s.readyPromise=s.fetchJson(i)):n.CACHE.has(n.LATEST_CACHE_KEY)?(s.populate(n.CACHE.get(n.LATEST_CACHE_KEY)),s.readyPromise=Promise.resolve()):(s.isLatest=!0,s.readyPromise=s.fetchJson(i+n.latestFilename))}return s}return g(n,re),u(n,[{key:"cacheLanguage",value:function(){n.LANGUAGE_CACHE.has(this.cacheLang_)||n.LANGUAGE_CACHE.set(this.cacheLang_,{purposes:this.purposes,specialPurposes:this.specialPurposes,features:this.features,specialFeatures:this.specialFeatures,stacks:this.stacks,dataCategories:this.dataCategories})}},{key:"fetchJson",value:(t=r(E().m(function e(t){var n;return E().w(function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,n=this,e.n=1,os.fetch(t);case 1:n.populate.call(n,e.v),e.n=3;break;case 2:throw e.p=2,new iZ(e.v.message);case 3:return e.a(2)}},e,this,[[0,2]])})),function(e){return t.apply(this,arguments)})},{key:"getJson",value:function(){return v(v({gvlSpecificationVersion:this.gvlSpecificationVersion,vendorListVersion:this.vendorListVersion,tcfPolicyVersion:this.tcfPolicyVersion,lastUpdated:this.lastUpdated,purposes:this.clonePurposes(),specialPurposes:this.cloneSpecialPurposes(),features:this.cloneFeatures(),specialFeatures:this.cloneSpecialFeatures(),stacks:this.cloneStacks()},this.dataCategories?{dataCategories:this.cloneDataCategories()}:{}),{},{vendors:this.cloneVendors()})}},{key:"cloneSpecialFeatures",value:function(){for(var e={},t=0,s=Object.keys(this.specialFeatures);t<s.length;t++){var i=s[t];e[i]=n.cloneFeature(this.specialFeatures[i])}return e}},{key:"cloneFeatures",value:function(){for(var e={},t=0,s=Object.keys(this.features);t<s.length;t++){var i=s[t];e[i]=n.cloneFeature(this.features[i])}return e}},{key:"cloneStacks",value:function(){for(var e={},t=0,s=Object.keys(this.stacks);t<s.length;t++){var i=s[t];e[i]=n.cloneStack(this.stacks[i])}return e}},{key:"cloneDataCategories",value:function(){for(var e={},t=0,s=Object.keys(this.dataCategories);t<s.length;t++){var i=s[t];e[i]=n.cloneDataCategory(this.dataCategories[i])}return e}},{key:"cloneSpecialPurposes",value:function(){for(var e={},t=0,s=Object.keys(this.specialPurposes);t<s.length;t++){var i=s[t];e[i]=n.clonePurpose(this.specialPurposes[i])}return e}},{key:"clonePurposes",value:function(){for(var e={},t=0,s=Object.keys(this.purposes);t<s.length;t++){var i=s[t];e[i]=n.clonePurpose(this.purposes[i])}return e}},{key:"cloneVendors",value:function(){for(var e={},t=0,s=Object.keys(this.fullVendorList);t<s.length;t++){var i=s[t];e[i]=n.cloneVendor(this.fullVendorList[i])}return e}},{key:"changeLanguage",value:(e=r(E().m(function e(t){var s,i,r,o,a;return E().w(function(e){for(;;)switch(e.p=e.n){case 0:s=t,e.p=1,s=n.consentLanguages.parseLanguage(t),e.n=3;break;case 2:throw e.p=2,new iZ("Error during parsing the language: "+e.v.message);case 3:if(i=t.toUpperCase(),s.toLowerCase()!==n.DEFAULT_LANGUAGE.toLowerCase()||n.LANGUAGE_CACHE.has(i)){e.n=4;break}return e.a(2);case 4:if(s===this.lang_){e.n=9;break}if(this.lang_=s,!n.LANGUAGE_CACHE.has(i)){e.n=5;break}for(o in r=n.LANGUAGE_CACHE.get(i))r.hasOwnProperty(o)&&(this[o]=r[o]);e.n=9;break;case 5:return a=n.baseUrl+n.languageFilename.replace("[LANG]",this.lang_.toLowerCase()),e.p=6,e.n=7,this.fetchJson(a);case 7:this.cacheLang_=i,this.cacheLanguage(),e.n=9;break;case 8:throw e.p=8,new iZ("unable to load language: "+e.v.message);case 9:return e.a(2)}},e,this,[[6,8],[1,2]])})),function(t){return e.apply(this,arguments)})},{key:"language",get:function(){return this.lang_}},{key:"isVendorList",value:function(e){return void 0!==e&&void 0!==e.vendors}},{key:"populate",value:function(e){this.purposes=e.purposes,this.specialPurposes=e.specialPurposes,this.features=e.features,this.specialFeatures=e.specialFeatures,this.stacks=e.stacks,this.dataCategories=e.dataCategories,this.isVendorList(e)&&(this.gvlSpecificationVersion=e.gvlSpecificationVersion,this.tcfPolicyVersion=e.tcfPolicyVersion,this.vendorListVersion=e.vendorListVersion,this.lastUpdated=e.lastUpdated,"string"==typeof this.lastUpdated&&(this.lastUpdated=new Date(this.lastUpdated)),this.vendors_=e.vendors,this.fullVendorList=e.vend
1ors,this.mapVendors(),this.isReady_=!0,this.isLatest&&n.CACHE.set(n.LATEST_CACHE_KEY,this.getJson()),n.CACHE.has(this.vendorListVersion)||n.CACHE.set(this.vendorListVersion,this.getJson())),this.cacheLanguage()}},{key:"mapVendors",value:function(e){var t=this;this.byPurposeVendorMap={},this.bySpecialPurposeVendorMap={},this.byFeatureVendorMap={},this.bySpecialFeatureVendorMap={},Object.keys(this.purposes).forEach(function(e){t.byPurposeVendorMap[e]={legInt:new Set,consent:new Set,flexible:new Set}}),Object.keys(this.specialPurposes).forEach(function(e){t.bySpecialPurposeVendorMap[e]=new Set}),Object.keys(this.features).forEach(function(e){t.byFeatureVendorMap[e]=new Set}),Object.keys(this.specialFeatures).forEach(function(e){t.bySpecialFeatureVendorMap[e]=new Set}),Array.isArray(e)||(e=Object.keys(this.fullVendorList).map(function(e){return+e})),this.vendorIds=new Set(e),this.vendors_=e.reduce(function(e,n){var s=t.vendors_[String(n)];return s&&void 0===s.deletedDate&&(s.purposes.forEach(function(e){t.byPurposeVendorMap[String(e)].consent.add(n)}),s.specialPurposes.forEach(function(e){t.bySpecialPurposeVendorMap[String(e)].add(n)}),s.legIntPurposes.forEach(function(e){t.byPurposeVendorMap[String(e)].legInt.add(n)}),s.flexiblePurposes&&s.flexiblePurposes.forEach(function(e){t.byPurposeVendorMap[String(e)].flexible.add(n)}),s.features.forEach(function(e){t.byFeatureVendorMap[String(e)].add(n)}),s.specialFeatures.forEach(function(e){t.bySpecialFeatureVendorMap[String(e)].add(n)}),e[n]=s),e},{})}},{key:"getFilteredVendors",value:function(e,t,n,s){var i=this,r=e.charAt(0).toUpperCase()+e.slice(1),o={};return("purpose"===e&&n?this["by"+r+"VendorMap"][String(t)][n]:this["by"+(s?"Special":"")+r+"VendorMap"][String(t)]).forEach(function(e){o[String(e)]=i.vendors[String(e)]}),o}},{key:"getVendorsWithConsentPurpose",value:function(e){return this.getFilteredVendors("purpose",e,"consent")}},{key:"getVendorsWithLegIntPurpose",value:function(e){return this.getFilteredVendors("purpose",e,"legInt")}},{key:"getVendorsWithFlexiblePurpose",value:function(e){return this.getFilteredVendors("purpose",e,"flexible")}},{key:"getVendorsWithSpecialPurpose",value:function(e){return this.getFilteredVendors("purpose",e,void 0,!0)}},{key:"getVendorsWithFeature",value:function(e){return this.getFilteredVendors("feature",e)}},{key:"getVendorsWithSpecialFeature",value:function(e){return this.getFilteredVendors("feature",e,void 0,!0)}},{key:"vendors",get:function(){return this.vendors_}},{key:"narrowVendorsTo",value:function(e){this.mapVendors(e)}},{key:"isReady",get:function(){return this.isReady_}},{key:"clone",value:function(){var e=new n(this.getJson());return this.lang_!==n.DEFAULT_LANGUAGE&&e.changeLanguage(this.lang_),e}}],[{key:"baseUrl",get:function(){return this.baseUrl_},set:function(e){if(/^https?:\/\/vendorlist\.consensu\.org\//.test(e))throw new iZ("Invalid baseUrl! You may not pull directly from vendorlist.consensu.org and must provide your own cache");e.length>0&&"/"!==e[e.length-1]&&(e+="/"),this.baseUrl_=e}},{key:"emptyLanguageCache",value:function(e){var t=!1;return null==e&&n.LANGUAGE_CACHE.size>0?(n.LANGUAGE_CACHE=new Map,t=!0):"string"==typeof e&&this.consentLanguages.has(e.toUpperCase())&&(n.LANGUAGE_CACHE.delete(e.toUpperCase()),t=!0),t}},{key:"emptyCache",value:function(e){var t=!1;return Number.isInteger(e)&&e>=0?(n.CACHE.delete(e),t=!0):void 0===e&&(n.CACHE=new Map,t=!0),t}},{key:"clonePurpose",value:function(e){return v(v({id:e.id,name:e.name,description:e.description},e.descriptionLegal?{descriptionLegal:e.descriptionLegal}:{}),e.illustrations?{illustrations:Array.from(e.illustrations)}:{})}},{key:"cloneFeature",value:function(e){return v(v({id:e.id,name:e.name,description:e.description},e.descriptionLegal?{descriptionLegal:e.descriptionLegal}:{}),e.illustrations?{illustrations:Array.from(e.illustrations)}:{})}},{key:"cloneDataCategory",value:function(e){return{id:e.id,name:e.name,description:e.description}}},{key:"cloneStack",value:function(e){return{id:e.id,name:e.name,description:e.description,purposes:Array.from(e.purposes),specialFeatures:Array.from(e.specialFeatures)}}},{key:"cloneDataRetention",value:function(e){return v(v({},"number"==typeof e.stdRetention?{stdRetention:e.stdRetention}:{}),{},{purposes:v({},e.purposes),specialPurposes:v({},e.specialPurposes)})}},{key:"cloneVendorUrls",value:function(e){return e.map(function(e){return v({langId:e.langId,privacy:e.privacy},e.legIntClaim?{legIntClaim:e.legIntClaim}:{})})}},{key:"cloneVendor",value:function(e){return v(v(v(v(v(v(v(v(v(v(v({id:e.id,name:e.name,purposes:Array.from(e.purposes),legIntPurposes:Array.from(e.legIntPurposes),flexiblePurposes:Array.from(e.flexiblePurposes),specialPurposes:Array.from(e.specialPurposes),features:Array.from(e.features),specialFeatures:Array.from(e.specialFeatures)},e.overflow?{overflow:{httpGetLimit:e.overflow.httpGetLimit}}:{}),"number"==typeof e.cookieMaxAgeSeconds||null===e.cookieMaxAgeSeconds?{cookieMaxAgeSeconds:e.cookieMaxAgeSeconds}:{}),void 0!==e.usesCookies?{usesCookies:e.usesCookies}:{}),e.policyUrl?{policyUrl:e.policyUrl}:{}),void 0!==e.cookieRefresh?{cookieRefresh:e.cookieRefresh}:{}),void 0!==e.usesNonCookieAccess?{usesNonCookieAccess:e.usesNonCookieAccess}:{}),e.dataRetention?{dataRetention:this.cloneDataRetention(e.dataRetention)}:{}),e.urls?{urls:this.cloneVendorUrls(e.urls)}:{}),e.dataDeclaration?{dataDeclaration:Array.from(e.dataDeclaration)}:{}),e.deviceStorageDisclosureUrl?{deviceStorageDisclosureUrl:e.deviceStorageDisclosureUrl}:{}),e.deletedDate?{deletedDate:e.deletedDate}:{})}},{key:"isInstanceOf",value:function(e){return"object"===A(e)&&"function"==typeof e.narrowVendorsTo}}])}();
1oi.LANGUAGE_CACHE=new Map,oi.CACHE=new Map,oi.LATEST_CACHE_KEY=0,oi.DEFAULT_LANGUAGE="EN",oi.consentLanguages=new i5,oi.latestFilename="vendor-list.json",oi.versionedFilename="archives/vendor-list-v[VERSION].json",oi.languageFilename="purposes-[LANG].json",iY({},"TCModel",function(){return or});var or=function(){function e(t){var n;return a(this,e),(n=o(this,e)).isServiceSpecific_=!0,n.supportOOB_=!1,n.useNonStandardTexts_=!1,n.purposeOneTreatment_=!1,n.publisherCountryCode_="AA",n.version_=2,n.consentScreen_=0,n.policyVersion_=4,n.consentLanguage_="EN",n.cmpId_=0,n.cmpVersion_=0,n.vendorListVersion_=0,n.numCustomPurposes_=0,n.addtlConsent_="",n.enableAdvertiserConsentMode_=!1,n.specialFeatureOptins=new rM,n.purposeConsents=new rM,n.purposeLegitimateInterests=new rM,n.publisherConsents=new rM,n.publisherLegitimateInterests=new rM,n.publisherCustomConsents=new rM,n.publisherCustomLegitimateInterests=new rM,n.vendorConsents=new rM,n.vendorLegitimateInterests=new rM,n.vendorsDisclosed=new rM,n.vendorsAllowed=new rM,n.publisherRestrictions=new rr,t&&(n.gvl=t),n.updated(),n}return g(e,re),u(e,[{key:"gvl",get:function(){return this.gvl_},set:function(e){oi.isInstanceOf(e)||(e=new oi(e)),this.gvl_=e,this.publisherRestrictions.gvl=e}},{key:"cmpId",get:function(){return this.cmpId_},set:function(e){if(!(Number.isInteger(e=Number(e))&&e>1))throw new i1("cmpId",e);this.cmpId_=e}},{key:"cmpVersion",get:function(){return this.cmpVersion_},set:function(e){if(!(Number.isInteger(e=Number(e))&&e>-1))throw new i1("cmpVersion",e);this.cmpVersion_=e}},{key:"consentScreen",get:function(){return this.consentScreen_},set:function(e){if(!(Number.isInteger(e=Number(e))&&e>-1))throw new i1("consentScreen",e);this.consentScreen_=e}},{key:"consentLanguage",get:function(){return this.consentLanguage_},set:function(e){this.consentLanguage_=e}},{key:"publisherCountryCode",get:function(){return this.publisherCountryCode_},set:function(e){if(!/^([A-z]){2}$/.test(e))throw new i1("publisherCountryCode",e);this.publisherCountryCode_=e.toUpperCase()}},{key:"vendorListVersion",get:function(){return this.gvl?this.gvl.vendorListVersion:this.vendorListVersion_},set:function(e){if((e=0|Number(e))<0)throw new i1("vendorListVersion",e);this.vendorListVersion_=e}},{key:"policyVersion",get:function(){return this.gvl?this.gvl.tcfPolicyVersion:this.policyVersion_},set:function(e){if(this.policyVersion_=parseInt(e,10),this.policyVersion_<0)throw new i1("policyVersion",e)}},{key:"version",get:function(){return this.version_},set:function(e){this.version_=parseInt(e,10)}},{key:"isServiceSpecific",get:function(){return this.isServiceSpecific_},set:function(e){this.isServiceSpecific_=e}},{key:"useNonStandardTexts",get:function(){return this.useNonStandardTexts_},set:function(e){this.useNonStandardTexts_=e}},{key:"supportOOB",get:function(){return this.supportOOB_},set:function(e){this.supportOOB_=e}},{key:"addtlConsent",get:function(){return this.addtlConsent_},set:function(e){this.addtlConsent_=e||""}},{key:"enableAdvertiserConsentMode",get:function(){return this.enableAdvertiserConsentMode_},set:function(e){this.enableAdvertiserConsentMode_=!0===e}},{key:"purposeOneTreatment",get:function(){return this.purposeOneTreatment_},set:function(e){this.purposeOneTreatment_=e}},{key:"setAllVendorConsents",value:function(){this.vendorConsents.set(this.gvl.vendors)}},{key:"unsetAllVendorConsents",value:function(){this.vendorConsents.empty()}},{key:"setAllVendorsDisclosed",value:function(){this.vendorsDisclosed.set(this.gvl.vendors)}},{key:"unsetAllVendorsDisclosed",value:function(){this.vendorsDisclosed.empty()}},{key:"setAllVendorsAllowed",value:function(){this.vendorsAllowed.set(this.gvl.vendors)}},{key:"unsetAllVendorsAllowed",value:function(){this.vendorsAllowed.empty()}},{key:"setAllVendorLegitimateInterests",value:function(){this.vendorLegitimateInterests.set(this.gvl.vendors)}},{key:"unsetAllVendorLegitimateInterests",value:function(){this.vendorLegitimateInterests.empty()}},{key:"setAllPurposeConsents",value:function(){this.purposeConsents.set(this.gvl.purposes)}},{key:"unsetAllPurposeConsents",value:function(){this.purposeConsents.empty()}},{key:"setAllPurposeLegitimateInterests",value:function(){this.purposeLegitimateInterests.set(this.gvl.purposes)}},{key:"unsetAllPurposeLegitimateInterests",value:function(){this.purposeLegitimateInterests.empty()}},{key:"setAllPublisherConsents",value:function(){this.publisherConsents.set(this.gvl.purposes)}},{key:"unsetAllPublisherConsents",value:function(){this.publisherConsents.empty()}},{key:"setAllPublisherLegitimateInterests",value:function(){this.publisherLegitimateInterests.set(this.gvl.purposes)}},{key:"unsetAllPublisherLegitimateInterests",value:function(){this.publisherLegitimateInterests.empty()}},{key:"setAllSpecialFeatureOptins",value:function(){this.specialFeatureOptins.set(this.gvl.specialFeatures)}},{key:"unsetAllSpecialFeatureOptins",value:function(){this.specialFeatureOptins.empty()}},{key:"setAll",value:function(){this.setAllVendorConsents(),this.setAllPurposeLegitimateInterests(),this.setAllSpecialFeatureOptins(),this.setAllPurposeConsents(),this.setAllPublisherConsents(),this.setAllPublisherLegitimateInterests(),this.setAllVendorLegitimateInterests()}},{key:"unsetAll",value:function(){this.unsetAllVendorConsents(),this.unsetAllPurposeLegitimateInterests(),this.unsetAllSpecialFeatureOptins(),this.unsetAllPurposeConsents(),this.unsetAllPublisherConsents(),this.unsetAllPublisherLegitimateInterests(),this.unsetAllVendorLegitimateInterests()}},{key:"numCustomPurposes",get:function(){var e=this.numCustomPurposes_;return"object"===A(this.customPurposes)&&(e=parseInt(Object.keys(this.customPurposes).sort(function(e,t){return Number(e)-Number(t)}).pop(),10)),e},set:function(e){if(this.numCustomPurposes_=parseInt(e,10),this.numCustomPurposes_<0)throw new i1("numCustomPurposes",e)}},{key:"updated",value:function(){var e=new Date,t=new Date(Date.UTC(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()));this.created=t,this.lastUpdated=t}}])}();or.consentLanguages=oi.consentLanguages,iY({},"TCString",function(){return op});var oo,oa,oc,ou,ol,od,oh,op=u(function e(){a(this,e)},null,[{key:"encode",value:function(e,t){var n,s="";return e=on.process(e,t),(n=Array.isArray(null==t?void 0:t.segments)?t.segments:new r9(e,t)[""+e.version]
1).forEach(function(t,i){var r="";i<n.length-1&&(r="."),s+=oe.encode(e,t)+r}),s}},{key:"decode",value:function(e,t){var n=e.split("."),s=n.length;t||(t=new or);for(var i=0;i<s;i++){var r=n[i],o=i2.decode(r.charAt(0)).substr(0,rF.segmentType),a=rd.ID_TO_KEY[rJ.decode(o,rF.segmentType).toString()];oe.decode(r,t,a)}return t}}]),og=function(e,t,n){return t?e.map(function(e){return t&&t[e.id]?F(F({},e),{name:"".concat(e.name," (").concat(n,": ").concat(t[e.id],")")}):e}):e},of=function(e,t,n,s,i,r,o){if(!e)return[];var a=e.gvl,c=e.publisherRestrictions,u=e.vendorConsents,l=e.vendorLegitimateInterests;if(!a)return[];var d=eY.fetchTCFVendorsDisclosedObject(a.vendors),h=oR(c);return Object.values(a.vendors).map(function(e){var c,p,g,f=eZ(e.purposes,a.purposes),S=eZ(e.legIntPurposes,a.purposes);i&&(f=f.filter(function(e){return 1!==e.id}));var v=o_(e.id,d),E=f.map(function(e){return e}),I=S.map(function(e){return e});h.forEach(function(t){var n=t.purposeId,s=t.restrictionType,i=e.flexiblePurposes.indexOf(n)>-1;switch(s){case rn.NOT_ALLOWED:E=E.filter(function(e){return e.id!==n}),I=I.filter(function(e){return e.id!==n});break;case rn.REQUIRE_CONSENT:I=I.filter(function(e){return e.id!==n||(i&&E.push(e),!1)});break;case rn.REQUIRE_LI:E=E.filter(function(e){return e.id!==n||(i&&I.push(e),!1)})}});var T="",C="";e.urls&&e.urls.forEach(function(e){var t=e.langId,n=e.legIntClaim,s=e.privacy,i=t&&a.language&&t.toLowerCase()===a.language.toLowerCase();s&&(T&&!i||(T=s)),n&&(C&&!i||(C=n))});var _,y=r.includes(e.id),A=null==(c=e.dataDeclaration)?void 0:c.reduce(function(e,t){var n=a.dataCategories&&a.dataCategories[t];if(n){var s=F(F({},n),{id:n.id.toString()});return e?H(H([],x(e),!1),[s],!1):[s]}return e},[]);e.dataRetention&&e.dataRetention.stdRetention&&(_=[{id:e.dataRetention.stdRetention.toString(),name:e.dataRetention.stdRetention.toString()}]);var m=eZ(e.specialFeatures.filter(function(e){return!t.includes(e)}),a.specialFeatures);return F(F(F({consent:v?u.has(e.id):null,cookieMaxAgeSeconds:e.cookieMaxAgeSeconds&&e.cookieMaxAgeSeconds>=0?e.cookieMaxAgeSeconds:null,cookieRefresh:ez(e.cookieRefresh,null)},A&&{dataCategories:A}),_&&{dataRetention:_}),{deviceStorage:null,deviceStorageDisclosureUrl:e.deviceStorageDisclosureUrl||null,features:e.features.map(function(e){return{id:e,name:a.features[e].name}}),flexiblePurposes:eZ(e.flexiblePurposes,a.purposes),id:e.id,legitimateInterestClaimUrl:C,legitimateInterestConsent:v?l.has(e.id):null,legitimateInterestPurposes:I,name:e.name,policyUrl:e.policyUrl,privacyUrl:T,purposes:og(E,null==(p=e.dataRetention)?void 0:p.purposes,o),showConsentToggle:E.length>0&&n,showLegitimateInterestConsentToggle:I.length>0&&n&&!s,showVendorOutsideEU:y,specialFeatures:m,specialPurposes:og(eZ(e.specialPurposes,a.specialPurposes),null==(g=e.dataRetention)?void 0:g.specialPurposes,o),usesCookies:ez(e.usesCookies,!1),usesNonCookieAccess:ez(e.usesNonCookieAccess,null)})})},oS=function(e){return{legitimateInterestPurposes:(null==e?void 0:e.legIntPurposes)||[],notAllowedPurposes:(null==e?void 0:e.notAllowedPurposes)||[],purposes:(null==e?void 0:e.purposes)||[]}},ov=function(e){return Object.entries(e).map(function(e){var t=x(e,2),n=t[0],s=t[1];return{id:parseInt(n.replace("p",""),10),name:s}})},oE=function(e){return e||"/browser-sdk/".concat(em,"/cookie-bridge.html")},oI=function(e){return e||"https://usercentrics.mgr.consensu.org:443"},oT=function(e,t){return t&&0!==e.length?e0(e.reduce(function(e,t){return e.concat(t.features.map(function(e){return e.id}))},[])).reduce(function(e,n){var s=t[n];return s?H(H([],x(e),!1),[s],!1):e},[]):[]},oC=function(e,t){return!e||!t},o_=function(e,t){return void 0===t&&(t=eY.fetchTCFVendorsDisclosedObject()),!0===t[e]},oy=function(e,t,n,s,i){var r=t.reduce(function(e,t){return e.concat(t.purposes.map(function(e){return e.id})).concat(t.legitimateInterestPurposes.map(function(e){return e.id}))},[]),o=oD(e,n,s).reduce(function(e,t){return e.concat(t.purposeIds)},[]),a=e0(r.concat(o));return i?a.filter(function(e){return 1!==e}):a},oA=function(e,t,n,s,i,r,o,a,c){if(!e||!t||!n)return[];var u=oy(t,s,i,r,o),l=oD(t,i,r),d=eY.fetchTCFData().vendors,h=e.purposeConsents,p=e.purposeLegitimateInterests,g=e0(s.map(function(e){return e.legitimateInterestPurposes.map(function(e){return e.id})}).reduce(function(e,t){return e.concat(t)},[])),f=e0(s.map(function(e){return e.purposes.map(function(e){return e.id})}).reduce(function(e,t){return e.concat(t)},[])),S=u.reduce(function(e,t){var n,i=s.filter(function(e){return e.purposes.find(function(e){return e.id===t})}),r=s.filter(function(e){return e.legitimateInterestPurposes.find(function(e){return e.id===t})});return F(F({},e),((n={})[t]=i.length+r.length,n))},{});return u.reduce(function(e,t){var s=n[t];if(!s)return e;var i=l.find(function(e){return e.purposeIds.includes(t)});return H(H([],x(e),!1),[{consent:d.length?h.has(t):null,description:s.description,descriptionLegal:s.descriptionLegal,id:s.id,illustrations:s.illustrations,isPartOfASelectedStack:!!i,legitimateInterestConsent:d.length?p.has(t):null,name:s.name,numberOfVendors:S[s.id]||0,showConsentToggle:f.includes(t)&&a,showLegitimateInterestToggle:1!==s.id&&g.includes(t)&&a&&!c,stackId:(null==i?void 0:i.id)||null}],!1)},[])}
1,om=function(e){return{onATPListChanged:e.resurfaceATPListChanged,onIABLegalBasisChanged:e.resurfaceIABLegalBasisChanged,onPeriodEnded:e.resurfacePeriodEnded,onPurposeChanged:e.resurfacePurposeChanged,onVendorAdded:e.resurfaceVendorAdded}},oO=function(e,t,n,s){var i=t.reduce(function(e,t){return e.concat(t.specialFeatures.filter(function(e){return!n.includes(e.id)}).map(function(e){return e.id}))},[]),r=oD(e,n,s).reduce(function(e,t){return e.concat(t.specialFeatureIds.filter(function(e){return!n.includes(e)}))},[]);return e0(i.concat(r))},oN=function(e,t,n,s,i,r){if(!e||!t)return[];var o=oO(t.stacks,n,s,i),a=oD(t.stacks,s,i);return o.map(function(n){var s=t.specialFeatures[n],i=a.find(function(e){return e.specialFeatureIds.includes(n)});return{consent:e.specialFeatureOptins.has(n),description:s.description,descriptionLegal:s.descriptionLegal,id:s.id,illustrations:s.illustrations,isPartOfASelectedStack:!!i,name:s.name,showConsentToggle:r,stackId:(null==i?void 0:i.id)||null}})},ob=function(e,t){return e?e0(t.reduce(function(e,t){return e.concat(t.specialPurposes.map(function(e){return e.id}))},[])).reduce(function(t,n){var s=e[n];return s?H(H([],x(t),!1),[{description:s.description,descriptionLegal:s.descriptionLegal,id:s.id,illustrations:s.illustrations,name:s.name}],!1):t},[]):[]},oD=function(e,t,n){return e?n.reduce(function(n,s){var i=e[s];return i?H(H([],x(n),!1),[{description:i.description,id:i.id,name:i.name,purposeIds:i.purposes,specialFeatureIds:i.specialFeatures.filter(function(e){return!t.includes(e)})}],!1):n},[]):[]},oR=function(e){return(null==e?void 0:e.getRestrictions().map(function(e){return{purposeId:e.purposeId,restrictionType:e.restrictionType}}))||[]},ow=function(e){return!!(null==e?void 0:e.timestamp)&&(Date.now()-e.timestamp)/864e5>390},oL=function(e,t){if(!(null==e?void 0:e.acString)||!(null==e?void 0:e.acString.length))return!1;var n=null==e?void 0:e.acString.split("~")[1].split(".").filter(function(e){return""!==e}).map(function(e){return parseInt(e,10)}),s=null==e?void 0:e.acString.split("dv.")[1].split(".").filter(function(e){return""!==e}).map(function(e){return parseInt(e,10)}),i=H(H([],x(n),!1),x(s),!1).sort(function(e,t){return e-t}),r=t.map(function(e){return e.id}).sort(function(e,t){return e-t});return!(i.length===r.length&&i.every(function(e,t){return e===r[t]}))},oP=function(e,t){return!(!(null==e?void 0:e.vendors)||!(null==e?void 0:e.vendors.length))&&!t.every(function(t){return null==e?void 0:e.vendors.find(function(e){return e[eV.ID]===t.id})})},oV=function(e,t){return!(!(null==e?void 0:e.vendors)||!e.vendors.length||e.vendors.length&&!e.vendors[0][eV.SPECIAL_PURPOSES])&&!e.vendors.every(function(e){var n=t.find(function(t){return t.id===e[eV.ID]});return!n||e[eV.PURPOSES].sort().toString()===n.purposes.map(function(e){return e.id}).sort().toString()&&e[eV.LEGITIMATE_INTEREST].sort().toString()===n.legitimateInterestPurposes.map(function(e){return e.id}).sort().toString()&&e[eV.SPECIAL_PURPOSES].sort().toString()===n.specialPurposes.map(function(e){return e.id}).sort().toString()})},oU=function(e){return e.map(function(e){var t=e.id,n=e.legitimateInterestPurposes,s=e.purposes,i=e.specialPurposes;return[t,n.map(function(e){return e.id}),s.map(function(e){return e.id}),i.map(function(e){return e.id})]})},oM=function(e){var t=e.replace("_","-");if(oi.consentLanguages.has(t.toLocaleLowerCase())||oi.consentLanguages.has(t.toUpperCase()))return t;var n=t.slice(0,2);if(oi.consentLanguages.has(n.toLocaleLowerCase())||oi.consentLanguages.has(n.toUpperCase()))return n;switch(e){case"pt":return"pt-pt";case"sr":return"sr-cyrl";default:return"en"}},ok=[],oF=[],oG=function(e,t,n){switch(e){case"queue":return ok;case"ping":"function"==typeof t&&t({applicableSections:[-1],cmpDisplayStatus:"hidden",cmpId:31,cmpStatus:"stub",gppString:"",gppVersion:"1.1",sectionList:[],supportedAPIs:["2:tcfeuv2","5:tcfcav1","6:uspv1"]},!0);break;case"addEventListener":"lastId"in window.__gpp||(window.__gpp.lastId=0),window.__gpp.lastId+=1;var s=window.__gpp.lastId;oF.push({callback:t,id:s,parameter:n}),t({data:!0,eventName:"listenerRegistered",listenerId:s,pingData:{applicableSections:[-1],cmpDisplayStatus:"hidden",cmpId:31,cmpStatus:"stub",gppString:"",gppVersion:"1.1",sectionList:[],supportedAPIs:["2:tcfeuv2","5:tcfcav1","9:usva","7:usnat"]}},!0);break;case"removeEventListener":for(var i=!1,r=0;r<oF.length;r++)if(oF[r].id===n){oF.splice(r,1),i=!0;break}t({data:i,eventName:"listenerRemoved",listenerId:n,pingData:{applicableSections:[-1],cmpDisplayStatus:"hidden",cmpId:31,cmpStatus:"stub",gppString:"",gppVersion:"1.1",sectionList:[],supportedAPIs:["2:tcfeuv2","5:tcfcav1","9:usva","7:usnat"]}},!0);break;case"hasSection":t(!1,!0);break;case"getSection":case"getField":t(null,!0);break;default:ok.push([e,t,n])}},oB="__gppLocator",ox=function(e){if(e&&e.source&&e.source.postMessage){var t="string"==typeof e.data,n=e.data;if(t)try{n=JSON.parse(e.data)}catch(e){return}if("object"===A(n)&&n.__gppCall){var s=n.__gppCall;window.__gpp(s.command,s.version,function(n,i){var r={__gppReturn:{returnValue:n,success:i,callId:s.callId}},o=t?JSON.stringify(r):r;try{e.source.postMessage(o,"*")}catch(e){}},s.parameter)}}},oH=function(){"u">typeof window&&(window.__gpp||!function(){for(var e=window,t=!1;e;){try{if(e.frames[oB]){t=!0;break}}catch(e){}if(e===window.top){t=!1;break}e=e.parent}return t}()&&(tc(function(){return!!window.document.body},"").then(function(){var e=window.document.createElement("iframe");e.style.cssText="display:none",e.name=oB,window.document.body.appendChild(e)}),1)&&(window.addEventListener("message",ox,!1),window.__gpp=oG))},oj=function(e){if(e&&e.source&&e.source.postMessage){var t="string"==typeof e.data,n=e.data;if(t)try{n=JSON.parse(e.data)}catch(e){return}if("object"===A(n)&&n.__tcfapiCall){var s=n.__tcfapiCall;window.__tcfapi(s.command,s.version,function(n,i){var r={__tcfapiReturn:{returnValue:n,success:i,callId:s.callId}},o=t?JSON.stringify(r):r;try{e.source.postMessage(o,"*")}catch(e){}},s.parameter)}}},oY=[],oJ=function(e,t,n,s){if(!e)return oY;switch(e){case"ping":"function"==typeof n&&n({cmpLoaded:!1,cmpStatus:"stub",gdprApplies:!0});break;
1case"pending":return oY;default:oY.push([e,t,n,s])}},oW="__tcfapiLocator",oK=function(){"u">typeof window&&(window.__tcfapi||!function(){for(var e=window,t=!1;e;){try{if(e.frames[oW]){t=!0;break}}catch(e){}if(e===window.top){t=!1;break}e=e.parent}return t}()&&(tc(function(){return!!window.document.body},"").then(function(){var e=window.document.createElement("iframe");e.style.cssText="display:none",e.name=oW,window.document.body.appendChild(e)}),1)&&(window.addEventListener("message",oj,!1),window.__tcfapi=oJ))};(N=oa||(oa={})).ACCEPT_ALL_SERVICES="onAcceptAllServices",N.DENY_ALL_SERVICES="onDenyAllServices",N.ESSENTIAL_CHANGE="onEssentialChange",N.INITIAL_PAGE_LOAD="onInitialPageLoad",N.NON_EU_REGION="onNonEURegion",N.SESSION_RESTORED="onSessionRestored",N.TCF_STRING_CHANGE="onTcfStringChange",N.UPDATE_SERVICES="onUpdateServices",N.MOBILE_SESSION_RESTORED="onMobileSessionRestore",(b=oc||(oc={})).EXPLICIT="explicit",b.IMPLICIT="implicit",(D=ou||(ou={}))[D.UNDEFINED=0]="UNDEFINED",D[D.CMP_SHOWN=1]="CMP_SHOWN",D[D.ACCEPT_ALL=2]="ACCEPT_ALL",D[D.DENY_ALL=3]="DENY_ALL",D[D.SAVE=4]="SAVE",D[D.ACCEPT_ALL_L1=5]="ACCEPT_ALL_L1",D[D.DENY_ALL_L1=6]="DENY_ALL_L1",D[D.SAVE_L1=7]="SAVE_L1",D[D.ACCEPT_ALL_L2=8]="ACCEPT_ALL_L2",D[D.DENY_ALL_L2=9]="DENY_ALL_L2",D[D.SAVE_L2=10]="SAVE_L2",D[D.COOKIE_POLICY_LINK=11]="COOKIE_POLICY_LINK",D[D.IMPRINT_LINK=12]="IMPRINT_LINK",D[D.MORE_INFORMATION_LINK=13]="MORE_INFORMATION_LINK",D[D.PRIVACY_POLICY_LINK=14]="PRIVACY_POLICY_LINK",D[D.CCPA_TOGGLES_ON=15]="CCPA_TOGGLES_ON",D[D.CCPA_TOGGLES_OFF=16]="CCPA_TOGGLES_OFF",D[D.SAY_MINE_LINK=17]="SAY_MINE_LINK",(R=ol||(ol={})).API_NAME="__uspapi",R.GET_USP_DATA="getUSPData",(w=od||(od={}))[w.FIRST_LAYER=0]="FIRST_LAYER",w[w.NONE=1]="NONE",w[w.PRIVACY_BUTTON=2]="PRIVACY_BUTTON",w[w.SECOND_LAYER=3]="SECOND_LAYER",(L=oh||(oh={}))[L.CCPA=0]="CCPA",L[L.DEFAULT=1]="DEFAULT",L[L.TCF=2]="TCF",void 0!==iH&&iH.initialize({modulePath:"/dir"});var oq=function(){function e(e,t){var n;if(this.ampInstance=tx.getInstance(),this.apiInstance=nl.getInstance(),this.botInstance=nv.getInstance(),this.controllerIdInstance=nn.getInstance(),this.dataFacadeInstance=n4.getInstance(),this.eventDispatcherInstance=n_.getInstance(),this.initOptions={},this.isConsentRequired=null,this.languageInstance=iM.getInstance(),this.storageServiceInstance=eY.getInstance(),this.locationInstance=ni.getInstance(),this.settingsV2=n3.getInstance(),this.uiInstance=ix.getInstance(),this.domains=null,this.rulesetRule={name:"",noShow:!0,settingsId:""},this.gppData=null,this.isCurrentDomainAllowed=function(e){var t,n=window.location.hostname.replace("www.",""),s=window.location.pathname,i=null==(t=e.allowedDomainOptions)?void 0:t.list;if((null==i?void 0:i.length)&&(i=i.filter(function(e){return"string"==typeof e&&""!==e.trim()}).map(function(e){return e.trim()})),!(null==i?void 0:i.length))return!0;var r=i.concat(eA),o=!1;return r.forEach(function(e){if(e.includes("*")){if("*."===e.slice(0,2))n.includes(e.slice(2))&&(o=!0);else if("/*"===e.slice(-2)){var t=e.slice(0,-2);t.split("/")[0]===n&&(n+s).includes(t)&&(o=!0)}}else e.includes("/")?n+s===e&&(o=!0):n===e&&(o=!0)}),o},t&&(this.initOptions=t),this.apiInstance.setEuMode(!0===(null==t?void 0:t.euMode)),this.domains=(n=window.UC_UI_DOMAINS)?Object.entries(n).reduce(function(e,t){var n,s,i=t[0],r=t[1];return"/"===r.slice(-1)?F(F({},e),((n={})[i]=r.slice(0,-1),n)):F(F({},e),((s={})[i]=r,s))},{aggregator:"",app:"",cdn:"",consents:"",consentsV2:"",consentsV2Fetch:"",crossDomainConsentSharingIFrame:"",graphql:"",trackingEvent:""}):null,this.apiInstance.setDomains(!0===(null==t?void 0:t.sandboxEnv),this.domains),(null==t?void 0:t.createTcfApiStub)&&oK(),(null==t?void 0:t.createGppStub)&&oH(),(null==t?void 0:t.useRulesetId)?this.apiInstance.setRulesetId(e):this.apiInstance.setSettingsId(e),this.controllerIdInstance.value="",(null==t?void 0:t.controllerId)&&!(null==t?void 0:t.useRulesetId)&&(this.controllerIdInstance.value=t.controllerId),(null==t?void 0:t.language)&&this.languageInstance.setPrimaryLanguage(t.language),(null==t?void 0:t.settingsCache)&&this.apiInstance.setJsonCacheBustingString(t.settingsCache),(null==t?void 0:t.ver
1sion)&&this.apiInstance.setJsonFileVersion(t.version),(null==t?void 0:t.userCountryData)&&"object"===A(t.userCountryData)&&Object.keys(t.userCountryData).every(function(e){return"string"==typeof e})&&this.locationInstance.setUserCountryData(t.userCountryData),(null==t?void 0:t.userSessionData)&&this.dataFacadeInstance.setUserSessionData(t.userSessionData),(null==t?void 0:t.ampEnabled)&&this.ampInstance.setIsAmpEnabled(!0),(null==t?void 0:t.blockDataLayerPush)&&this.eventDispatcherInstance.setBlockDataLayerPush(!0),(null==t?void 0:t.disableUet)?this.eventDispatcherInstance.setUetDisabled(!0):window.uetq=window.uetq||[],(null==t?void 0:t.storeServiceIdToNameMapping)&&this.storageServiceInstance.setStoreServiceIdToNameMapping(null==t?void 0:t.storeServiceIdToNameMapping),(null==t?void 0:t.disableTracking)&&(this.initOptions.disableTracking=!0),(null==t?void 0:t.disableServerConsents)&&this.apiInstance.setDisableServerConsents(!0),(null==t?void 0:t.disableServerConsents)&&(null==t?void 0:t.controllerId))throw Error("Usercentrics: disableServerConsents and controllerId should not be present at the same time in the InitOptions!");(null==t?void 0:t.enableDeprecatedV1ConsentSaving)&&(this.initOptions.enableDeprecatedV1ConsentSaving=t.enableDeprecatedV1ConsentSaving),this.initOptions.prefetchServices=ez(null==t?void 0:t.prefetchServices,!0),this.setTrackingPixel=this.setTrackingPixel.bind(this)}return e.prototype.fetchCoreAndDps=function(){return G(this,void 0,void 0,function(){var e;return B(this,function(t){var n,s,i,r;switch(t.label){case 0:return[4,this.loadSettings()];case 1:return[2,{core:{allowedDomainOptions:{list:(e=t.sent()).allowedDomains,showErrorCmp:e.showErrorOnUnallowedDomain},buttonDisplayLocation:e.buttonDisplayLocation,buttonPrivacyCloseIcon:e.buttonPrivacyCloseIcon,buttonPrivacyOpenIconUrl:e.buttonPrivacyOpenIconUrl,ccpa:(i=e.framework,{iabAgreementExists:(r=e.ccpa).iabAgreementExists,isActive:i?["CCPA","UCPA","CTDPA","VCDPA","CPRA","CPA","MSPL"].includes(i):r.isActive,region:r.region,reshowAfterDays:r.reshowAfterDays,showOnPageLoad:r.showOnPageLoad}),consentAnalytics:e.consentAnalytics,consentAPIv2:e.consentAPIv2,consentSharingIFrameIsActive:e.consentSharingIFrameIsActive,consentXDevice:e.consentXDevice,customization:(s=e.customization)?F(F({color:s.color?{primary:s.color.primary,privacyButtonBackground:s.color.privacyButtonBackground,privacyButtonIcon:s.color.privacyButtonIcon}:null},s.privacyButtonSizeMobile&&{privacyButtonSizeMobile:s.privacyButtonSizeMobile}),s.privacyButtonSizeDesktop&&{privacyButtonSizeDesktop:s.privacyButtonSizeDesktop}):s,dataExchangeOnPage:e.dataExchangeOnPage,displayOnlyForEU:e.displayOnlyForEU,enableBotDetection:e.enableBotDetection,enablePoweredBy:e.enablePoweredBy,framework:e.framework,googleConsentMode:e.googleConsentMode,integrations:e.integrations,interactionAnalytics:e.interactionAnalytics,labels:{partnerPoweredByLinkText:e.labels.partnerPoweredByLinkText,poweredBy:e.labels.poweredBy},languagesAvailable:e.languagesAvailable,partnerPoweredByUrl:e.partnerPoweredByUrl,privacyButtonIsVisible:e.privacyButtonIsVisible,privacyButtonUrls:e.privacyButtonUrls,renewConsentsTimestamp:e.renewConsentsTimestamp,reshowBanner:e.reshowBanner,settingsId:e.settingsId,showInitialViewForVersionChange:e.showInitialViewForVersionChange,tagLoggerIsActive:e.tagLoggerIsActive,tcf2:{resurfaceATPListChanged:(n=e.tcf2).resurfaceATPListChanged,resurfaceIABLegalBasisChanged:n.resurfaceIABLegalBasisChanged,resurfacePeriodEnded:n.resurfacePeriodEnded,resurfacePurposeChanged:n.resurfacePurposeChanged,resurfaceVendorAdded:n.resurfaceVendorAdded},tcf2Enabled:e.framework?["TCF2","UK_TCF2"].includes(e.framework):e.tcf2Enabled,variants:e.variants,version:e.version},dps:{categories:e.categories,consentTemplates:e.consentTemplates}}]}})})},e.prototype.init=function(){var e,t,n,s,i,r,o,a,c,u,l,d,h;return G(this,void 0,void 0,function(){var p,g,f,S,v,E,I,T,C,_,y,A,m,O,N,b,D,R,w,L,P,V,U,M=this;return B(this,function(k){switch(k.label){case 0:return eY.getInstance().init(),this.initOptions.createGppStub&&(this.gppData=iU.getInstance(this.settingsV2.legacySettings,this.initOptions.createGppStub)),this.apiInstance.getRulesetId()?(p=this,[4,nK.getInstance().resolveSettingsId()]):[3,2];case 1:p.rulesetRule=k.sent(),this.apiInstance.setSettingsId(this.rulesetRule.settingsId),this.initOptions.controllerIds&&this.controllerIdInstance.setControllerIdByResolvedSettingsId(this.rulesetRule.settingsId,this.initOptions.controllerIds),k.label=2;case 2:return eY.clearOnNewSettingsId(this.apiInstance.getSettingsId()),eY.migrateLegacySettings(this.apiInstance.getSettingsId()),S="explicit"===(null==(f=null==(g=eY.fetchServices())?void 0:g.map(function(e){return e.history}).flat().reduce(function(e,t){return(null==e?void 0:e.timestamp)<t.timestamp?t:e}))?void 0:f.type),[4,this.languageInstance.resolveLanguage()];case 3:k.sent(),k.label=4;case 4:return k.trys.push([4,6,,9]),[4,this.fetchCoreAndDps()];case 5:if(C=(I=k.sent()).core,_=I.dps,!C.languagesAvailable.includes(this.apiInstance.getJsonFileLanguage()))throw Error("Using non allowed language");return v=C,E=_,[3,9];case 6:return k.sent(),this.languageInstance.setPrimaryLanguage(""),[4,this.languageInstance.resolveLanguage(!0)];case 7:return k.sent(),[4,this.fetchCoreAndDps()];case 8:return C=(T=k.sent()).core,_=T.dps,v=C,E=_,[3,9];case 9:if(!this.isCurrentDomainAllowed(v))throw(y=Error()).showErrorCmp=null==(e=v.allowedDomainOptions)?void 0:e.showErrorCmp,
1console.error('Usercentrics: The domain "'.concat(window.location.hostname,'" has not been added to the allowlist for this Usercentrics account.')),y;if(!v||!E)throw Error();return this.botInstance.isBotEnabled=v.enableBotDetection,!v.consentSharingIFrameIsActive||this.botInstance.isRobot()?[3,11]:[4,eG.init({useEuCdn:this.initOptions.euMode||!1},this.domains).then(function(){return G(M,void 0,void 0,function(){var e;return B(this,function(t){switch(t.label){case 0:return eG.setCrossDomainId(this.apiInstance.getSettingsId()),eG.setIsCrossDomainAvailable(!0),eG.setUseEuCdn(this.initOptions.euMode||!1),this.languageInstance.getPrimaryLanguage()?[3,3]:[4,eG.getCrossDomainLanguage().catch(function(){return console.warn(eI.CROSS_DOMAIN_LANGUAGE_NOT_AVAILABLE),""})];case 1:return e=t.sent(),[4,this.changeLanguage(e)];case 2:t.sent(),t.label=3;case 3:return[2]}})})}).catch(function(e){eG.setIsCrossDomainAvailable(!1),eG.removeIFrame(eM),console.warn(eI.CROSS_DOMAIN_FEATURE_NOT_AVAILABLE,e)})];case 10:k.sent(),k.label=11;case 11:return this.botInstance.isRobot()?this.initOptions.suppressCmpDisplay=!0:window.location.origin.includes("app.usercentrics.eu")&&window.location.pathname.includes("/browser-ui/preview/")||this.addSessionTrackingPixel(),A=E.consentTemplates.find(function(e){var t;return"Fraud0"===(null==(t=e._meta)?void 0:t.name)||"q-_eu2X2d"===e.templateId}),(null==(t=v.integrations)?void 0:t.fraud0)&&v.integrations.fraud0.length>0&&A&&!(null==A?void 0:A.isDeactivated)&&((m=document.createElement("script")).src="https://bt.fraud0.com/api/v2/fz.js?cid=".concat(v.integrations.fraud0[0].accountId),m.async=!0,m.setAttribute(nU,"Fraud0"),m.type=nS.TEXT_PLAIN,document.body.appendChild(m)),O=this.apiInstance.getJsonFileLanguage(),[4,this.settingsV2.init(v,E,O)];case 12:return k.sent(),[4,this.uiInstance.resolveUiVariant(v.tcf2Enabled)];case 13:return N=k.sent(),[4,this.settingsV2.initData(N,[],!1,!0===this.initOptions.euMode,this.initOptions.excludeAcceptAllVendors,S,this.initOptions.enableDeprecatedV1ConsentSaving)];case 14:return k.sent(),[4,this.apiInstance.fetchTranslations()];case 15:return b=k.sent(),!this.initOptions.prefetchServices&&this.settingsV2.allLegacyServicesHaveName?[3,17]:[4,this.settingsV2.extendServices(N,b)];case 16:k.sent(),this.apiInstance.resetAggregatedServicesCache(),k.label=17;case 17:return this.controllerIdInstance.setNeedSessionRestore(),[4,this.dataFacadeInstance.restoreUserSession(E)];case 18:return(D=k.sent())||(this.controllerIdInstance.init(),this.settingsV2.data&&this.settingsV2.setControllerId(this.controllerIdInstance.value)),[4,this.uiInstance.init(this.initOptions)];case 19:return k.sent(),R=this.settingsV2.getTcfData(),tP(this.settingsV2.data)&&R?[4,this.settingsV2.data.init(!0===this.initOptions.euMode)]:[3,21];case 20:k.sent(),k.label=21;case 21:return this.settingsV2.initLabels(N,b),w=[],eY.settingsExist()&&(w=this.processStorageServicesAndSettings(this.settingsV2.data)),this.botInstance.isRobot()||(this.apiInstance.saveConsentsFromBuffer(),this.apiInstance.saveConsentsV2FromBuffer()),[4,this.uiInstance.resolveUIOptions(v)];case 22:return P=(L=k.sent()).initialLayer,V=eY.fetchTCFData(),D&&R&&(null==(n=this.gppData)||n.setSectionString(V.tcString,"tcfeuv2"),eY.saveTCFData(F(F({},V),{vendors:oU(R.getTCFData().vendors)}))),this.setIsConsentRequired(this.uiInstance.shouldShowFirstLayer(v)),this.isConsentRequired&&eY.setUserActionPerformed(!1),this.settingsV2.initLabels(N,b),[4,this.settingsV2.initUI(P,N)];case 23:return k.sent(),R?!(0===P||(null==(s=this.initOptions)?void 0:s.suppressCmpDisplay)&&this.getIsConsentRequired())||this.botInstance.isRobot()?[3,25]:[4,R.setUIAsOpen()]:[3,27];case 24:return k.sent(),[3,27];case 25:return[4,R.setUIAsClosed()];case 26:k.sent(),k.label=27;case 27:return this.initOptions.createGppStub&&(tP(this.settingsV2.data)||tL(this.settingsV2.data))&&(tP(U=this.settingsV2.data)?null==(i=this.gppData)||i.setApplicableSections("tcfeuv2"):tL(U)?null==(r=this.gppData)||r.setApplicableSections(U.legalFramework):null==(o=this.gppData)||o.setApplicableSections("tcfeuv2"),(0===P||3===P||(null==(a=this.initOptions)?void 0:a.suppressCmpDisplay)&&this.getIsConsentRequired())&&!this.botInstance.isRobot()&&(null==(c=this.gppData)||c.setCmpDisplayVisible()),2!==P&&1!==P||null==(u=this.gppData)||u.setCmpDisplayHidden(),null==(l=this.gppData)||l.setCmpSignalReady(),null==(d=this.gppData)||d.setCmpStatusLoaded()),this.settingsV2.isTagLoggerActive()&&!this.botInstance.isRobot()&&(new iB).initTagLogger(),this.eventDispatcherInstance.enableClarity(!0===(null==(h=this.settingsV2.legacySettings)?void 0:h.microsoftClarityConsentSignalEnabled)),this.eventDispatcherInstance.init(this.settingsV2.getDataExchangeSettings()),[4,this.updateStorage(g,w,D)];case 28:return k.sent(),[2,L]}})})},e.prototype.acceptAllForTCF=function(e){return G(this,void 0,void 0,function(){var t;return B(this,function(n){switch(n.label){case 0:return(t=this.settingsV2.getTcfData())?[4,t.acceptAllDisclosed(e)]:[3,2];case 1:n.sent(),n.label=2;case 2:return[2]}})})},e.prototype.acceptAllServices=function(e){return void 0===e&&(e="explicit"),G(this,void 0,void 0,function(){return B(this,function(t){switch(t.label){case 0:return this.dataFacadeInstance.execute(this.settingsV2.getUpdatedServicesWithConsent(ea.TRUE),this.settingsV2.getUpdatedServicesDataWithConsent(ea.TRUE),"onAcceptAllServices",e,{},this.initOptions.enableDeprecatedV1ConsentSaving),[4,this.saveUserActionPerformed()];case 1:return t.sent(),[2]}})})},e.prototype.changeLanguage=function(e){var t,n;return G(this,void 0,void 0,function(){var s,i,r,o,a,c,u,l,d,h,p,g,f,S,v,E;return B(this,function(I){switch(I.label){case 0:return i=(s=null==(t=this.settingsV2.core)?void 0:t.language.available)&&s.some(function(t){return t===e}),r=e!==this.apiInstance.getJsonFileLanguage()&&i,a=(o=this.settingsV2).core,c=o.data,r&&c&&a?(this.apiInstance.setJsonFileLanguage(e),this.apiInstance.resetTranslationsCache(),this.settingsV2.language=e,[4,this.fetchCoreAndDps()]):[3,8];case 1:return u=I.sent().dps,this.settingsV2.dpsJson=u,d=(l=this.uiInstance).selectedLayer,h=l.variant,[4,this.apiInstance.fetchTranslations()];case 2:return p=I.sent(),null===h||null===d||null==u?[3,6]:!this.settingsV2.isAggregatorLoaded&&this.settingsV2.checkIfServiceNameExists(u.consentTemplates)?[3,4]:[4,this.settingsV2.extendServices(h,p)];case 3:return I.sent(),[3,5];case 4:this.settingsV2.initLabels(h,p),I.label=5;case 5:this.apiInstance.resetAggregatedServicesCache(),I.label=6;case 6:return this.settingsV2.updateServicesLanguage(e),f=(g=this.dataFacadeInstance.getMergedServicesAndSettingsFromStorage(c)).mergedServices,S=g.mergedServicesData,v=g.mergedSettingsData,a.language.selected=e,v.categories=this.settingsV2.mergeServicesDataIntoExistingCategories(S),this.settingsV2.data=v,(E=this.settingsV2.getDataTransferSettings())&&eY.saveSettings(eY.mapSettings(E,f),f),tP(v)?[4,v.changeLanguage(e,null==(n=this.settingsV2.legacySettings)?void 0:n.tcf2)]:[3,8];case 7:I.sent(),I.label=8;case 8:return[2]}})})},e.prototype.denyAllForTCF=function(e){return G(this,void 0,void 0,function(){var t;return B(this,function(n){switch(n.label){case 0:return(t=this.settingsV2.getTcfData())?[4,t.denyAllDisclosed(e)]:[3,2];case 1:n.sent(),n.label=2;case 2:return[2]}})})},e.prototype.denyAllServices=function(e){return void 0===e&&(e="explicit"),G(this,void 0,void 0,function(){return B(this,function(t){switch(t.label){case 0:return this.dataFacadeInstance.execute(this.settingsV2.getUpdatedServicesWithConsent(ea.FALSE),this.settingsV2.getUpdatedServicesDataWithConsent(ea.FALSE),"onDenyAllServices",e,{},this.initOptions.enableDeprecatedV1ConsentSaving),[4,this.saveUserActionPerformed()];case 1:return t.sent(),[2]}})})},e.prototype.fetchIsUserInEU=function(){return G(this,void 0,void 0,function(){return B(this,function(e){return[2,this.locationInstance.getIsUserInEU()]})})},e.prototype.fetchUserCountry=function(){return G(this,void 0,void 0,function(){return B(this,function(e){return[2,this.locationInstance.getUserCountryData()]})})},e.prototype.getAbTestVariant=function(){return this.apiInstance.getAbTestVariant()},e.prototype.getCategoriesBaseInfo=function(){return this.settingsV2.getCategoriesBaseInfo()},e.prototype.getCategoriesFullInfo=function(){return G(this,void 0,void 0,function(){var e;return B(this,function(t){switch(t.label){case 0:return[4,this.apiInstance.fetchTranslations()];case 1:return e=t.sent(),[2,this.settingsV2.getCategoriesFullInfo(this.uiInstance.variant,e)]}})})},e.prototype.getCcpaOptOutStatus=function(){var e;return(null==(e=this.settingsV2.getCcpaData())?void 0:e.getIsOptedOut())||!1},e.prototype.getCcpaExplicitNoticeStatus=function(){var e;return(null==(e=this.settingsV2.getCcpaData())?void 0:e.getExplicitNotice())||!1},e.prototype.saveOptOutForCcpa=function(e,t){return void 0===t&&(t="explicit"),G(this,void 0,void 0,function(){var n,s;return B(this,function(i){switch(i.label){case 0:return(n=this.settingsV2.getCcpaData())&&n.getIsOptedOut()!==e?
1(n.setCcpaStorage(e),s={consentAction:e?"onDenyAllServices":"onAcceptAllServices",consentStatus:e?ea.FALSE:ea.TRUE,consentString:{CCPA:eY.getCcpaString()}},this.dataFacadeInstance.execute(this.settingsV2.getUpdatedServicesWithConsent(s.consentStatus),this.settingsV2.getUpdatedServicesDataWithConsent(s.consentStatus),s.consentAction,t,s.consentString,this.initOptions.enableDeprecatedV1ConsentSaving),[4,this.saveUserActionPerformed()]):[2];case 1:return i.sent(),[2]}})})},e.prototype.saveDefaultForCcpa=function(){return G(this,void 0,void 0,function(){var e,t,n;return B(this,function(s){switch(s.label){case 0:return e=this.settingsV2.getCcpaData(),t=eY.getCcpaString(),e?[3,2]:(eY.setCcpaTimeStamp(),[4,this.saveUserActionPerformed()]);case 1:case 3:return s.sent(),[2];case 2:return"-"===t[1]?(n=e.getIsOptedOut(),null==e||e.setCcpaStorage(n,iL.ACCEPT),window.dispatchEvent(new Event(nE))):eY.setCcpaTimeStamp(),[4,this.saveUserActionPerformed()]}})})},e.prototype.getControllerId=function(){return this.controllerIdInstance.value},e.prototype.getServicesBaseInfo=function(){return this.settingsV2.getServicesBaseInfo()},e.prototype.getServicesFullInfo=function(){return G(this,void 0,void 0,function(){var e;return B(this,function(t){switch(t.label){case 0:return[4,this.apiInstance.fetchTranslations()];case 1:return e=t.sent(),[2,this.settingsV2.getServicesFullInfo(this.uiInstance.variant,e)]}})})},e.prototype.getSettingsCore=function(){var e=this.settingsV2.core;if(!e)throw Error("Usercentrics: You have to call the init method before!");return e},e.prototype.getSettingsLabels=function(){var e=this.settingsV2.labels;if(!e)throw Error("Usercentrics: You have to call the init method before!");return e},e.prototype.getSettingsData=function(){var e=this.settingsV2.data;if(!e)throw Error("Usercentrics: You have to call the init method before!");return e},e.prototype.getSettingsUI=function(){return this.settingsV2.ui},e.prototype.getAriaLabels=function(){var e,t;return tk(this.settingsV2.labels)&&null!=(null==(e=this.settingsV2.labels)?void 0:e.ariaLabels)?null==(t=this.settingsV2.labels)?void 0:t.ariaLabels:tC},e.prototype.getTCFData=function(){var e=this.settingsV2.getTcfData();return e?e.getTCFData():null},e.prototype.getGpcSignalHonoured=function(){var e;return null==(e=this.settingsV2.legacySettings)?void 0:e.gpcSignalHonoured},e.prototype.getActionTypePerformed=function(){return eY.fetchActionTypePerformed()},e.prototype.getTCFDisclosedVendorsSegmentString=function(){return this.settingsV2.getTCFDisclosedVendorsSegmentString()},e.prototype.injectTCString=function(e){return this.settingsV2.injectTCString(e)},e.prototype.setTCFUIAsClosed=function(){return G(this,void 0,void 0,function(){var e;return B(this,function(t){switch(t.label){case 0:return(e=this.settingsV2.getTcfData())?[4,e.setUIAsClosed()]:[3,2];case 1:t.sent(),t.label=2;case 2:return[2]}})})},e.prototype.setGppDisplayHidden=function(){var e;return G(this,void 0,void 0,function(){return B(this,function(t){switch(t.label){case 0:return[4,null==(e=iU.getInstance())?void 0:e.setCmpDisplayHidden()];case 1:return t.sent(),[2]}})})},e.prototype.setGppDisplayVisible=function(){var e;return G(this,void 0,void 0,function(){return B(this,function(t){switch(t.label){case 0:return[4,null==(e=iU.getInstance())?void 0:e.setCmpDisplayVisible()];case 1:return t.sent(),[2]}})})},e.prototype.setTCFUIAsOpen=function(){return G(this,void 0,void 0,function(){var e;return B(this,function(t){switch(t.label){case 0:return(e=this.settingsV2.getTcfData())?[4,e.setUIAsOpen()]:[3,2];case 1:t.sent(),t.label=2;case 2:return[2]}})})},e.prototype.updateChoicesForTCF=function(e,t){return G(this,void 0,void 0,function(){var n;return B(this,function(s){switch(s.label){case 0:return(n=this.settingsV2.getTcfData())?[4,n.updateChoices(e,t)]:[3,2];case 1:s.sent(),s.label=2;case 2:return[2]}})})},e.prototype.areAllConsentsAccepted=function(){return this.settingsV2.isTcfAvailable()?this.settingsV2.areAllVendorsAndPurposesAccepted()&&this.settingsV2.areAllServicesAccepted():this.settingsV2.areAllServicesAccepted()},e.prototype.restoreUserSession=function(e){var t,n;return G(this,void 0,void 0,function(){var s;return B(this,function(i){switch(i.label){case 0:return(null==(t=this.settingsV2.core)?void 0:t.consentAPIv2)&&!(null==(n=this.settingsV2.core)?void 0:n.consentXDevice)?(console.warn(eE.CROSS_DEVICE_FEATURE_DISABLED),this.controllerIdInstance.needsSessionRestore=!1,[2]):(this.controllerIdInstance.value=e,this.controllerIdInstance.needsSessionRestore=!0,this.settingsV2.setControllerId(e),(s=this.settingsV2.dpsJson)?[4,this.dataFacadeInstance.restoreUserSession(s)]:[3,2]);case 1:i.sent()&&this.enableServicesScripts(this.processStorageServicesAndSettings(this.settingsV2.data),this.settingsV2.getGoogleConsentMode(),"onSessionRestored"),i.label=2;case 2:return[2]}})})},e.prototype.clearStorage=function(){return G(this,void 0,void 0,function(){return B(this,function(e){switch(e.label){case 0:return[4,eY.clearAll()];case 1:return e.sent(),[2]}})})},e.prototype.postMessageAmp=function(e,t,n){return G(this,void 0,void 0,function(){var s,i,r,o,a,c,u,l,d=this;return B(this,function(h){switch(h.label){case 0:return s=this.settingsV2.isTcfAvailable(),[4,this.settingsV2.isCcpaAvailable()];case 1:return i=h.sent(),r=function(){var e=d.settingsV2.getTcfData();return s&&(null==e?void 0:e.getTCString)?e.getTCString():i?eY.getCcpaString():""},o=function(){return G(d,void 0,void 0,function(){var e,t,n,r;return B(this,function(o){switch(o.label){case 0:return r=this.settingsV2.getTcfData(),s&&r?(e=k.TCF_V2,[4,r.getGdprApplies()]):[3,2];case 1:return t=o.sent(),n=this.settingsV2.getTCFPurposeOneTreatment(),[3,3];case 2:i&&(e=k.CCPA),o.label=3;case 3:return[2,F({consentStringType:e},s&&{gdprApplies:t,purposeOne:n})]}})})},c=[{action:t,type:e}],(u=e===U.CONSENT_RESPONSE&&t!==M.DISMISS&&(i||s))?(l={},[4,o()]):[3,3];case 2:l.consentMetadata=h.sent(),l.info=r(),u=l,h.label=3;case 3:return a=F.apply(void 0,[F.apply(void 0,c.concat([u])),n&&{initialHeight:n}]),[2,new Promise(function(e,t){try{window.parent.postMessage(F({},a),"*"),e()}catch(e){t(e)}})]}})})},e.prototype.acceptAllAmp=function(){return G(this,void 0,void 0,function(){return B(this,function(e){switch(e.label){case 0:return[4,this.postMessageAmp(U.CONSENT_RESPONSE,M.ACCEPT)];case 1:return e.sent(),[2]}})})},e.prototype.denyAllAmp=function(){return G(this,void 0,void 0,function(){return B(this,function(e){switch(e.label){case 0:return[4,this.postMessageAmp(U.CONSENT_RESPONSE,M.REJECT)];case 1:return e.sent(),[2]}})})},e.prototype.saveTCFDataAmp=function(e){return G(this,void 0,void 0,function(){var t;return B(this,function(n){switch(n.label){case 0:return t=e.every(function(e){return e.status}),0===e.length||t?[4,this.postMessageAmp(U.CONSENT_RESPONSE,M.ACCEPT)]:[3,2];case 1:return n.sent(),[3,4];case 2:return[4,this.postMessageAmp(U.CONSENT_RESPONSE,M.REJECT)];case 3:n.sent(),n.label=4;case 4:return[2]}})})},e.prototype.dismissAmp=function(){return G(this,void 0,void 0,function(){return B(this,function(e){switch(e.label){case 0:return[4,this.postMessageAmp(U.CONSENT_RESPONSE,M.DISMISS)];case 1:return e.sent(),[2]}})})},e.prototype.enterFullscreenAmp=function(){return G(this,void 0,void 0,function(){return B(this,function(e){return[2,this.postMessageAmp(U.CONSENT_UI,M.FULLSCREEN)]})})},e.prototype.uiReadyAmp=function(){return G(this,void 0,void 0,function(){var e,t,n;return B(this,function(s){return e=this.settingsV2.labels,t="60vh",e&&tk(e)&&(n=e.firstLayer.description.default.length,window.screen.height>700&&n<=250&&(t="50vh")),[2,this.postMessageAmp(U.CONSENT_UI,M.READY,t)]})})},e.prototype.saveUserActionPerformed=function(){return G(this,void 0,void 0,function(){return B(this,function(e){switch(e.label){case 0:return eY.setUserActionPerformed(!0),this.setIsConsentRequired(!1),this.uiInstance.selectedLayer?[4,this.settingsV2.initUI(this.uiInstance.selectedLayer,this.uiInstance.variant)]:[3,2];case 1:e.sent(),e.label=2;case 2:return[2]}})})},e.prototype.updateServices=function(e,t){return void 0===t&&(t="explicit"),G(this,void 0,void 0,function(){var n,s;return B(this,function(i){switch(i.label){case 0:return n=this.settingsV2.getUpdatedServicesWithDecisions(e),s=this.settingsV2.getUpdatedServicesDataWithDecisions(e),eq(n)&&this.dataFacadeInstance.execute(n,s,"onUpdateServices",t,{},this.initOptions.enableDeprecatedV1ConsentSaving),[4,this.saveUserActionPerformed()];case 1:return i.sent(),[2]}})})},e.prototype.updateLayer=function(e){return G(this,void 0,void 0,function(){var t;return B(this,function(n){switch(n.label){case 0:return t=this.uiInstance.selectedLayer,this.uiInstance.selectedLayer=e,e===t?[2]:[4,this.settingsV2.initUI(e,this.uiInstance.variant)];case 1:return n.sent(),3!==e?[3,3]:[4,this.loadServices()];case 2:n.sent(),n.label=3;case 3:return[2]}})})},e.prototype.loadServices=function(){return G(this,void 0,void 0,function(){var e;return B(this,function(t){switch(t.label){case 0:return this.settingsV2.isAggregatorLoaded||!this.uiInstance.selectedLayer?[2]:[4,this.apiInstance.fetchTranslations()];case 1:return e=t.sent(),[4,this.settingsV2.extendServices(this.uiInstance.variant,e)];case 2:return t.sent(),this.apiInstance.resetAggregatedServicesCache(),[2]}})})},e.prototype.loadSettings=function(){return G(this,void 0,void 0,function(){var e;return B(this,function(t){switch(t.label){case 0:return[4,this.apiInstance.fetchSettingsJson()];case 1:return e=t.sent(),this.settingsV2.legacySettings=e,[2,e]}})})},e.prototype.updateStorage=function(e,t,n){return G(this,void 0,void 0,function(){var s,i,r;return B(this,function(o){var a;switch(o.label){case 0:return[4,this.settingsV2.shouldDenyAllExplicitlyOnInit(
1)];case 1:return o.sent()?(this.dataFacadeInstance.execute(this.settingsV2.getUpdatedServicesWithConsent(ea.FALSE),this.settingsV2.getUpdatedServicesDataWithConsent(ea.FALSE),"onDenyAllServices","explicit",{},this.initOptions.enableDeprecatedV1ConsentSaving),[4,this.settingsV2.shouldDenyAllOnInitFromGpc()]):[3,5];case 2:return o.sent()?[4,this.saveUserActionPerformed()]:[3,4];case 3:o.sent(),eY.setActionTypePerformed("gpc"),o.label=4;case 4:return[3,10];case 5:return this.uiInstance.isFirstTimeVisit()?[4,this.settingsV2.shouldAcceptAllImplicitlyOnInit()]:[3,7];case 6:return o.sent()?this.dataFacadeInstance.execute(this.settingsV2.getUpdatedServicesWithConsent(ea.TRUE),this.settingsV2.getUpdatedServicesDataWithConsent(ea.TRUE),"onNonEURegion",this.botInstance.isRobot()?"explicit":"implicit",{},this.initOptions.enableDeprecatedV1ConsentSaving):this.dataFacadeInstance.execute(this.settingsV2.getServicesDataAndLabels(),this.settingsV2.getServicesData(),"onInitialPageLoad","implicit",{},this.initOptions.enableDeprecatedV1ConsentSaving),[3,10];case 7:return s=null!=t?t:this.processStorageServicesAndSettings(this.settingsV2.data),a=this.settingsV2.getServicesData(),(i=e&&!a.every(function(t){return e.find(function(e){return e.id===t.id})})||!1)?[4,this.settingsV2.shouldAcceptAllImplicitlyOnVendorAdded()]:[3,9];case 8:i=o.sent(),o.label=9;case 9:i?this.dataFacadeInstance.execute(this.settingsV2.getUpdatedServicesWithConsent(ea.TRUE),this.settingsV2.getUpdatedServicesDataWithConsent(ea.TRUE),"onNonEURegion",this.botInstance.isRobot()?"explicit":"implicit",{},this.initOptions.enableDeprecatedV1ConsentSaving):(r=n&&this.dataFacadeInstance.restoreAction?this.dataFacadeInstance.restoreAction:"onInitialPageLoad",this.enableServicesScripts(s,this.settingsV2.getGoogleConsentMode(),r),this.dataFacadeInstance.restoreAction=null),o.label=10;case 10:return[2]}})})},e.prototype.enableScriptsForServicesWithConsent=function(){nM.enableScriptsForServicesWithConsent(this.settingsV2.getServicesWithConsent())},e.prototype.setTrackingPixel=function(e){var t;!this.initOptions.disableTracking&&(null==(t=this.settingsV2.coreJson)?void 0:t.interactionAnalytics)&&this.apiInstance.setTrackingPixel(e)},e.prototype.addSessionTrackingPixel=function(){(new Image).src=this.apiInstance.createSessionTrackingUrl()},e.prototype.processStorageServicesAndSettings=function(e){if(!e||!this.settingsV2.labels)return[];var t=this.dataFacadeInstance.getMergedServicesAndSettingsFromStorage(e),n=t.dataTransferSettings,s=t.mergedServicesData,i=t.mergedServices,r=t.updatedEssentialServices;return this.dataFacadeInstance.mergeServicesAndSettings(i,s,n,r,this.settingsV2.labels.services,this.initOptions.enableDeprecatedV1ConsentSaving)},e.prototype.enableServicesScripts=function(e,t,n){var s,i=this.settingsV2.getTcfData();i&&i.advertiserConsentModeEnabled&&(s=i.getTCFData().vendors.find(function(e){return 755===e.id})),nM.enableScriptsForServicesWithConsent(this.settingsV2.getServicesWithConsent()),this.eventDispatcherInstance.dispatch(e,s,t,n)},e.prototype.setIsConsentRequired=function(e){this.isConsentRequired=!0===e},e.prototype.getIsConsentRequired=function(){return this.isConsentRequired},e.prototype.getThirdPartyCount=function(){return this.settingsV2.getThirdPartyCount()},e.prototype.getAddVendorCount=function(){var e,t;return(null==(t=null==(e=this.settingsV2.legacySettings)?void 0:e.gdpr)?void 0:t.addVendorCount)||!1},e}()}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.