!function(n){var r={};function o(e){if(r[e])return r[e].exports;var t=r[e]={i:e,l:!1,exports:{}};return n[e].call(t.exports,t,t.exports,o),t.l=!0,t.exports}o.m=n,o.c=r,o.d=function(e,t,n){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(t,e){if(1&e&&(t=o(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(o.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)o.d(n,r,function(e){return t[e]}.bind(null,r));return n},o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="",o(o.s=389)}({101:function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i,s=(i=Error,o(a,i),a);function a(e){var t=i.call(this,e)||this;return t.name="DecodingError",t}t.DecodingError=s},102:function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i,s=(i=Error,o(a,i),a);function a(e){var t=i.call(this,e)||this;return t.name="EncodingError",t}t.EncodingError=s},103:function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i,s=(i=Error,o(a,i),a);function a(e){var t=i.call(this,e)||this;return t.name="GVLError",t}t.GVLError=s},104:function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i,s=(i=Error,o(a,i),a);function a(e,t,n){void 0===n&&(n="");var r=i.call(this,"invalid value "+t+" passed for "+e+" "+n)||this;return r.name="TCModelError",r}t.TCModelError=s},105:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=(o.prototype.has=function(e){return o.langSet.has(e)},o.prototype.forEach=function(e){o.langSet.forEach(e)},Object.defineProperty(o.prototype,"size",{get:function(){return o.langSet.size},enumerable:!0,configurable:!0}),o.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"]),o);function o(){}t.ConsentLanguages=r},106:function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),s=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0});var i,a=n(65),c=n(63),u=n(44),l=(i=n(14).Cloneable,o(p,i),p.prototype.has=function(e){return this.map.has(e)},p.prototype.isOkToHave=function(e,t,n){var r,o=!0;if(null!==(r=this.gvl)&&void 0!==r&&r.vendors){var i=this.gvl.vendors[n];if(i)if(e===u.RestrictionType.NOT_ALLOWED)o=i.legIntPurposes.includes(t)||i.purposes.includes(t);else if(i.flexiblePurposes.length)switch(e){case u.RestrictionType.REQUIRE_CONSENT:o=i.flexiblePurposes.includes(t)&&i.legIntPurposes.includes(t);break;case u.RestrictionType.REQUIRE_LI:o=i.flexiblePurposes.includes(t)&&i.purposes.includes(t)}else o=!1;else o=!1}return o},p.prototype.add=function(e,t){var n;this.isOkToHave(t.restrictionType,t.purposeId,e)&&(n=t.hash,this.has(n)||(this.map.set(n,new c.BinarySearchTree),this.bitLength=0),this.map.get(n).add(e))},p.prototype.restrictPurposeToLegalBasis=function(e){for(var i=this.gvl.vendorIds,t=e.hash,n=function(){var t,e,n;try{for(var r=s(i),o=r.next();!o.done;o=r.next())n=o.value}catch(e){t={error:e}}finally{try{o&&!o.done&&(e=r.return)&&e.call(r)}finally{if(t)throw t.error}}return n}(),r=1;r<=n;r++)this.has(t)||(this.map.set(t,new c.BinarySearchTree),this.bitLength=0),this.map.get(t).add(r)},p.prototype.getVendors=function(e){var t,n,r=[];return e?(t=e.hash,this.has(t)&&(r=this.map.get(t).get())):(n=new Set,this.map.forEach(function(e){e.get().forEach(function(e){n.add(e)})}),r=Array.from(n)),r},p.prototype.getRestrictionType=function(e,t){var n;return this.getRestrictions(e).forEach(function(e){e.purposeId===t&&(void 0===n||n>e.restrictionType)&&(n=e.restrictionType)}),n},p.prototype.vendorHasRestriction=function(e,t){for(var n=!1,r=this.getRestrictions(e),o=0;o, or IntMap");this.set_.add(e),this.maxId_=Math.max(this.maxId,e),this.bitLength=0}},l.prototype.empty=function(){this.set_=new Set},l.prototype.forEach=function(e){for(var t=1;t<=this.maxId;t++)e(this.has(t),t)},Object.defineProperty(l.prototype,"size",{get:function(){return this.set_.size},enumerable:!0,configurable:!0}),l.prototype.setAll=function(e){this.set(e)},l);function l(){var e=null!==s&&s.apply(this,arguments)||this;return e.bitLength=0,e.maxId_=0,e.set_=new Set,e}t.Vector=u},110:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(62),c=n(43),u=n(67),o=n(73),l=n(5),p=n(64),d=n(6),i=(s.encode=function(o,i){var e,s=this;try{e=this.fieldSequence[""+o.version][i]}catch(e){throw new l.EncodingError("Unable to encode version: "+o.version+", segment: "+i)}var a="";return i!==d.Segment.CORE&&(a=u.IntEncoder.encode(d.SegmentIDs.KEY_TO_ID[i],c.BitLength.segmentType)),e.forEach(function(t){var e=o[t],n=u.FieldEncoderMap[t],r=c.BitLength[t];void 0===r&&s.isPublisherCustom(t)&&(r=+o[p.Fields.numCustomPurposes]);try{a+=n.encode(e,r)}catch(e){throw new l.EncodingError("Error encoding "+i+"->"+t+": "+e.message)}}),r.Base64Url.encode(a)},s.decode=function(e,o,t){var i=this,s=r.Base64Url.decode(e),a=0;return t===d.Segment.CORE&&(o.version=u.IntEncoder.decode(s.substr(a,c.BitLength[p.Fields.version]),c.BitLength[p.Fields.version])),t!==d.Segment.CORE&&(a+=c.BitLength.segmentType),this.fieldSequence[""+o.version][t].forEach(function(e){var t=u.FieldEncoderMap[e],n=c.BitLength[e];if(void 0===n&&i.isPublisherCustom(e)&&(n=+o[p.Fields.numCustomPurposes]),0!==n){var r=s.substr(a,n);if(t===u.VendorVectorEncoder?o[e]=t.decode(r,o.version):o[e]=t.decode(r,n),Number.isInteger(n))a+=n;else{if(!Number.isInteger(o[e].bitLength))throw new l.DecodingError(e);a+=o[e].bitLength}}}),o},s.isPublisherCustom=function(e){return 0===e.indexOf("publisherCustom")},s.fieldSequence=new o.FieldSequence,s);function s(){}t.SegmentEncoder=i},111:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o,i,s,a,c,u,l,p,d,f,h,v,b,g,E,_,m,y,C,I,L,S,O,P,A,V=n(6),w=n(23),T=n(68),R=n(45),M=n(15),N=n(69),F=n(70),D=n(71),j=(r=V.Fields.version,o=V.Fields.created,i=V.Fields.lastUpdated,s=V.Fields.cmpId,a=V.Fields.cmpVersion,c=V.Fields.consentScreen,u=V.Fields.consentLanguage,l=V.Fields.vendorListVersion,p=V.Fields.policyVersion,d=V.Fields.isServiceSpecific,f=V.Fields.useNonStandardStacks,h=V.Fields.specialFeatureOptins,v=V.Fields.purposeConsents,b=V.Fields.purposeLegitimateInterests,g=V.Fields.purposeOneTreatment,E=V.Fields.publisherCountryCode,_=V.Fields.vendorConsents,m=V.Fields.vendorLegitimateInterests,y=V.Fields.publisherRestrictions,C=V.Fields.vendorsDisclosed,I=V.Fields.vendorsAllowed,L=V.Fields.publisherConsents,S=V.Fields.publisherLegitimateInterests,O=V.Fields.numCustomPurposes,P=V.Fields.publisherCustomConsents,A=V.Fields.publisherCustomLegitimateInterests,k[r]=M.IntEncoder,k[o]=T.DateEncoder,k[i]=T.DateEncoder,k[s]=M.IntEncoder,k[a]=M.IntEncoder,k[c]=M.IntEncoder,k[u]=N.LangEncoder,k[l]=M.IntEncoder,k[p]=M.IntEncoder,k[d]=w.BooleanEncoder,k[f]=w.BooleanEncoder,k[h]=R.FixedVectorEncoder,k[v]=R.FixedVectorEncoder,k[b]=R.FixedVectorEncoder,k[g]=w.BooleanEncoder,k[E]=N.LangEncoder,k[_]=D.VendorVectorEncoder,k[m]=D.VendorVectorEncoder,k[y]=F.PurposeRestrictionVectorEncoder,k.segmentType=M.IntEncoder,k[C]=D.VendorVectorEncoder,k[I]=D.VendorVectorEncoder,k[L]=R.FixedVectorEncoder,k[S]=R.FixedVectorEncoder,k[O]=M.IntEncoder,k[P]=R.FixedVectorEncoder,k[A]=R.FixedVectorEncoder,k);function k(){}t.FieldEncoderMap=j},112:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(6);t.FieldSequence=function(){var e,t;this[1]=((e={})[r.Segment.CORE]=[r.Fields.version,r.Fields.created,r.Fields.lastUpdated,r.Fields.cmpId,r.Fields.cmpVersion,r.Fields.consentScreen,r.Fields.consentLanguage,r.Fields.vendorListVersion,r.Fields.purposeConsents,r.Fields.vendorConsents],e),this[2]=((t={})[r.Segment.CORE]=[r.Fields.version,r.Fields.created,r.Fields.lastUpdated,r.Fields.cmpId,r.Fields.cmpVersion,r.Fields.consentScreen,r.Fields.consentLanguage,r.Fields.vendorListVersion,r.Fields.policyVersion,r.Fields.isServiceSpecific,r.Fields.useNonStandardStacks,r.Fields.specialFeatureOptins,r.Fields.purposeConsents,r.Fields.purposeLegitimateInterests,r.Fields.purposeOneTreatment,r.Fields.publisherCountryCode,r.Fields.vendorConsents,r.Fields.vendorLegitimateInterests,r.Fields.publisherRestrictions],t[r.Segment.PUBLISHER_TC]=[r.Fields.publisherConsents,r.Fields.publisherLegitimateInterests,r.Fields.numCustomPurposes,r.Fields.publisherCustomConsents,r.Fields.publisherCustomLegitimateInterests],t[r.Segment.VENDORS_ALLOWED]=[r.Fields.vendorsAllowed],t[r.Segment.VENDORS_DISCLOSED]=[r.Fields.vendorsDisclosed],t)}},113:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(6);t.SegmentSequence=function(e,t){var n;this[1]=[r.Segment.CORE],this[2]=[r.Segment.CORE],2===e.version&&(e.isServiceSpecific?this[2].push(r.Segment.PUBLISHER_TC):((n=!(!t||!t.isForVendors))&&!0!==e[r.Fields.supportOOB]||this[2].push(r.Segment.VENDORS_DISCLOSED),n&&(e[r.Fields.supportOOB]&&0{TITLE}
\n \n {TITLE}
\n \n \n {NAME}\n\n
\n {NAME}
\n \n '.concat(R("tcf_v2.storage_info.detailed.method_title"),"\n \n ").concat(R("tcf_v2.storage_info.detailed.type.".concat("string"==typeof r?r:"cookie")),"\n
"),'\n \n '.concat(R("tcf_v2.storage_info.detailed.duration"),"\n \n ").concat(u,"\n
"),"string"==typeof i?'\n \n '.concat(R("tcf_v2.storage_info.detailed.domain"),"\n \n ").concat(T(i),"\n
"):"",'\n \n '.concat(R("tcf_v2.storage_info.detailed.purposes"),"\n \n ").concat(c,"\n
")].join("")}function F(e){var t='[data-iub-storage-info-id="'.concat(e,'"');return document.querySelector(t)}function D(e){var t=e.cookieMaxAgeSeconds,n=e.usesNonCookieAccess,r=e.deviceStorageDisclosureUrl,o=e.cookieRefresh;Object.assign(this,{cookieMaxAgeSeconds:t,usesNonCookieAccess:n,deviceStorageDisclosureUrl:r,cookieRefresh:o,root:document.createElement("div")})}Object.assign(D.prototype,{render:function(){var e,t,n=!1,r="",o="";return void 0!==this.cookieMaxAgeSeconds&&(n=!0,null!==this.cookieMaxAgeSeconds&&-100!==this.cookieMaxAgeSeconds?r=M(this.cookieMaxAgeSeconds,!0,this.cookieRefresh):this.usesNonCookieAccess?r=R("tcf_v2.storage_info.intro.indefinite"):n=!1,void 0!==this.deviceStorageDisclosureUrl?(e=R("tcf_v2.storage_info.learn_label"),t=T('\n\n ').concat(R("tcf_v2.storage_info.label"),"\n ").concat(r,"\n ").concat(o,"\n
"):"",o&&(this.storageInfoPopupLink=this.root.querySelector(".storage-info-popup")),this.assignEvents(),this.root},assignEvents:function(){var n=this;this.storageInfoPopupLink&&this.storageInfoPopupLink.addEventListener("click",function(){var e,o=n.id,t=n.deviceStorageDisclosureUrl,i=function(){var e=F(o);e&&(e.innerHTML='Error while loading ').concat(t,""))};(e=new XMLHttpRequest).onload=function(e){var t=F(o);if(t)try{var n=e.target,r=JSON.parse(n.responseText).disclosures;t.innerHTML=r.map(N).join("\n '.concat(k("tcf_v2.purposes_label")," ").concat(t.join("; "),".\n
"):"",n.length?'\n '.concat(k("tcf_v2.legit_purposes_label")," ").concat(n.join("; "),".\n
"):"",r.length?'\n '.concat(k("tcf_v2.special_purposes_label")," ").concat(r.join("; "),".\n
"):"",o.length?'\n '.concat(k("tcf_v2.features_label")," ").concat(o.join("; "),".\n
"):"",i.length?'\n '.concat(k("tcf_v2.special_features_label")," ").concat(i.join("; "),".\n
"):"",this.hasLegIntPurposes()?u()('\n{FEATURES_INTRO}
\n{SPECIAL_FEATURES_INTRO}
\n \n\n {DESCRIPTION}\n \n {LEARN_MORE}\n \n
\n ',{NAME:K("tcf_v2.".concat(t,".").concat(e,".name")),DESCRIPTION:K("tcf_v2.".concat(t,".").concat(e,".description")),DESCRIPTION_LEGAL:K("tcf_v2.".concat(t,".").concat(e,".descriptionLegal")),LEARN_MORE:K("tcf_v2.learn_more")}))}),n.join("")},createVendors:function(e){var t=this,n=this.vendorViews;G.setCache(e),e.vendors.forEach(function(e){return n.push(new G(e,t.publisherPurposeStates))})},renderVendors:function(){var t;this.isVendorsRendered||(t=this.vendorsCollapsible.getBody(),this.vendorViews.forEach(function(e){return t.appendChild(e.render())}),this.isVendorsRendered=!0)},openVendorsList:function(){var e=this,t=this.promiseCreate();return this.renderPromise.then(function(){e.renderVendors(),e.vendorsCollapsible.setCollapsed(!1),t.resolve()}),t},closeVendorsList:function(){this.vendorsCollapsible.setCollapsed(!0)},buildUI:function(e){function t(e){return n._root.getElementsByClassName(e)[0]}var n=this,r=u()(J,{TITLE:K("tcf_v2.widget_title"),DESCRIPTION:""+K("tcf_v2.widget_intro"),IAB_TITLE:K("tcf_v2.widget_iab_title"),PURPOSES_TITLE:K("tcf_v2.widget_purposes_title"),SPECIAL_PURPOSES_TITLE:K("tcf_v2.widget_special_purposes_title"),FEATURES_TITLE:K("tcf_v2.widget_features_title"),FEATURES_INTRO:K("tcf_v2.widget_features_intro"),SPECIAL_FEATURES_TITLE:K("tcf_v2.widget_special_features_title"),SPECIAL_FEATURES_INTRO:K("tcf_v2.widget_special_features_intro"),BUTTON_REJECT_CAPTION:K("tcf_v2.deactivate_all_purposes_button"),BUTTON_ACCEPT_ALL_CAPTION:K("tcf_v2.activate_all_purposes_button"),FEATURES_LIST:n.getFeaturesListHtml("features",n.vendorsData.features),SPECIAL_PURPOSES:n.getFeaturesListHtml("specialPurposes",n.vendorsData.specialPurposes)});n._root.insertAdjacentHTML("beforeend",r),n.widgetContainer=t("widget-container"),n.purposesContainer=t("iub-cmp-purposes-container"),n.specialFeaturesContainer=t("iub-cmp-special-features-container"),n.activateAllPurposesButton=t("iub-cmp-enable-btn"),n.deactivateAllPurposesButton=t("iub-cmp-reject-btn"),n.purposesListView=new w(e.purposes,n.getLegIntPurposesMap(e.purposes),n.publisherPurposeStates,"purposes",function(e,t){return n.callbackPurposeEnabled(e,t)}),n.purposesContainer.appendChild(n.purposesListView.render()),n.specialFeaturesListView=new w(e.specialFeatures,null,null,"specialFeatures",function(e,t){return n.callbackSpecialFeatureEnabled(e,t)}),n.specialFeaturesContainer.appendChild(n.specialFeaturesListView.render()),n.vendorsCollapsible=new g("iub-cmp-collapse",K("tcf_v2.vendors_section_title"),n.callbackOnVendorsCollapse.bind(n)),n.widgetContainer.appendChild(n.vendorsCollapsible.root),n.createVendors(e)},callbackPurposeEnabled:function(e,t){e&&this.vendorViews.forEach(function(e){e.hasPurpose(t)&&e.setEnabled(!0)})},callbackSpecialFeatureEnabled:function(e,t){e&&this.vendorViews.forEach(function(e){e.hasSpecialFeature(t)&&e.setEnabled(!0)})},callbackOnVendorsCollapse:function(e){e||this.openVendorsList(),this.isVendorListOpened=!e},assignEvents:function(){var e=this,t=_iub.cs.options.perPurposeConsent;this.popoverListen(e._root),e._root.addEventListener("click",function(e){return e.stopPropagation()}),e.activateAllPurposesButton.addEventListener("click",function(){e.enableAllEntities(),t||e.enableAllCustomPurposes()}),e.deactivateAllPurposesButton.addEventListener("click",function(){e.disableAllEntities(),t||e.disableAllCustomPurposes()})},render:function(t){var n=this;n.renderPromise=this.promiseCreate(),n.getVendorList(function(e){n.vendorsData=n.prepareVendorsData(e),n.buildUI(n.vendorsData),_iub.cs.options.googleAdditionalConsentMode&&(n.acInitialize(),_iub.cs.options.perPurposeConsent||n.acBuildUi(!1)),""!==n.consentString&&(n.setState(n.consentString),n.purposesListView.saveState({enabledPurposeIds:n.purposesListView.getEnabledPurposeIds(),enabledLegIntPurposeIds:n.purposesListView.getEnabledLegIntPurposeIds()}),n.specialFeaturesListView.saveState({enabledPurposeIds:n.specialFeaturesListView.getEnabledPurposeIds(),enabledLegIntPurposeIds:n.specialFeaturesListView.getEnabledLegIntPurposeIds()}),n.saveVendorsState({enabledVendorsIds:n.getEnabledVendorIds(),enabledLegIntVendorsIds:n.getEnabledLegIntVendorIds()}),n.acSaveState(n.acGetState())),n.assignEvents(),n.isRendered=!0,t(n._root),n.renderPromise.resolve()},function(){W()("Something went wrong while retrieving the vendors list"),n.renderPromise.resolve()})},setState:function(e){if(e){var t=Object(H.a)(e);if(t.purposeOneTreatment&&!t.isServiceSpecific)return;var n=[],r=[],o=[];t.purposeConsents.forEach(function(e,t){e&&n.push(t)}),t.purposeLegitimateInterests.forEach(function(e,t){e&&r.push(t)}),t.specialFeatureOptins.forEach(function(e,t){e&&o.push(t)}),this.purposesListView.setAllEnabled(!1).setAllLegIntEnabled(!1).setPurposesEnabled(n,!0).setLegIntPurposedEnabled(r,!0),this.specialFeaturesListView.setAllEnabled(!1).setPurposesEnabled(o,!0),this.vendorViews.forEach(function(e){e.setEnabled(t.vendorConsents.has(e.id)),e.setLegIntEnabled(t.vendorLegitimateInterests.has(e.id))})}this.acSetState(this.customPreferences?this.customPreferences.gac:"")},getRestrictionType:function(e){switch(e){case v.PURPOSE_DISALLOWED:return p.RestrictionType.NOT_ALLOWED;case v.PURPOSE_CONSENT_ONLY:return p.RestrictionType.REQUIRE_CONSENT;case v.PURPOSE_LI_ONLY:return p.RestrictionType.REQUIRE_LI;default:return null}},getState:function(){var u=this;if(!this.isRendered)return null;var e=this.tcModel,t=[],n=[],r=[];this.vendorViews.forEach(function(e){n.push(e.id),e.isEnabled()&&t.push(e.id),e.isLegIntEnabled()&&r.push(e.id)}),e.unsetAll(),e.publisherConsents.empty(),e.publisherLegitimateInterests.empty(),e.vendorConsents.set(t),e.vendorsDisclosed.set(n),e.vendorLegitimateInterests.set(r);var o=this.purposesListView.getEnabledPurposeIds(),i=this.purposesListView.getEnabledLegIntPurposeIds();e.purposeConsents.set(o),e.purposeLegitimateInterests.set(i),e.publisherConsents.set(o),e.publisherLegitimateInterests.set(i),e.specialFeatureOptins.set(this.specialFeaturesListView.getEnabledPurposeIds()),e.publisherRestrictions=new p.PurposeRestrictionVector;var s,l=e.publisherRestrictions;l.gvl=e.gvl,Object.entries(this.publisherPurposeStates).forEach(function(e){var t,n,r,o,i=(n=2,function(e){if(Array.isArray(e))return e}(t=e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,o=!1,i=void 0;try{for(var s,a=e[Symbol.iterator]();!(r=(s=a.next()).done)&&(n.push(s.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==a.return||a.return()}finally{if(o)throw i}}return n}}(t,n)||function(e,t){if(e){if("string"==typeof e)return Y(e,t);var n=Object.prototype.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)?Y(e,t):void 0}}(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),s=i[0],a=i[1],c=u.getRestrictionType(a);null!==c&&(r=parseInt(s,10),o=new p.PurposeRestriction(r,c),u.vendorViews.forEach(function(e){var t=e.id;l.vendorHasRestriction(t,o)||l.add(t,o)}))}),e.consentScreen=this.isDisplayed?c.a.CONSENT_SCREEN_WIDGET:c.a.CONSENT_SCREEN_BANNER,e.consentLanguage=this.getISO639Lang(),e.gvl.changeLanguage(this.getISO639Lang()),e.isServiceSpecific=!0,"consent_not_needed"===this.publisherPurposeStates[1]&&(e.purposeOneTreatment=!0,(s=this.csOptions.tcfPublisherCC)&&"string"==typeof s&&2<=s.length&&(e.publisherCountryCode=s.substring(0,2).toUpperCase())),e.updated(),d=p.SemanticPreEncoder.process,p.SemanticPreEncoder.process=function(e,t){var n=d.call(this,e,t),r=n.gvl.vendors,o=Object.keys(r).filter(function(e){var t=r[e];return t.specialPurposes.length&&!t.purposes.length&&!t.legIntPurposes.length}).map(function(e){return+e});return n.vendorLegitimateInterests.set(o),n};var a=p.TCString.encode(e,{segments:["core"]});return p.SemanticPreEncoder.process=d,a}});var z=q,$=window,X=void 0===$._iub?$._iub={}:$._iub,Z=X.cmp||(X.cmp={}),ee=Z.VERSION||(Z.VERSION={});Z.exposeCmpGlobalFunction=function(e){var t=2