/*! For license information please see sdk.6e903234de01d30e6a306f02442e95c9e91c20ed.js.LICENSE.txt */ !function(){var e,t,s,n,r={8:function(e,t,s){"use strict";s.d(t,{Z:function(){return v}});var n=s(152),r=s(4576),i=s(378),o=s(9757),a=["all","list"],u=["allow","disallow","req-consent","req-li"],l=(0,i.zu)(o.H2),d=e=>{if(!e)return!1;var{id:t,purposeId:s,vendors:n,restrictionType:r}=e;return(e=>{var{restrictionId:t,vendorRestrictionType:s,vendorRestrictionRanges:n,restrictionType:r,restrictionPurposeId:i,vendorIds:d}=e,c=l.includes(i),p=c?o.x4[i]:o.LN[i];if("string"!=typeof t||0===t.length)return console.error('Didomi - Invalid restriction ID "'+t+'" provided for publisher restrictions'),!1;if(void 0===p)return console.error('Didomi - Invalid purpose ID or special feature ID "'+i+'" provided for publisher restrictions'),!1;if(c){if("all"!==s)return console.error("Didomi - Only vendor restriction type 'all' is valid for special features"),!1;if("disallow"!==r)return console.error("Didomi - Only restriction type 'disallow' is valid for special features"),!1}else{if(void 0===s||-1===a.indexOf(s))return console.error('Didomi - Invalid vendor restriction type "'+s+'" provided for publisher restrictions'),!1;if("list"===s)if(Array.isArray(d)&&0!==d.length){if(!d.every(e=>"number"==typeof e))return console.error("Didomi - Vendor IDs for publisher restrictions should be numerical values"),!1}else{if(!Array.isArray(n)||0===n.length)return console.error("Didomi - Invalid vendor restriction ranges provided for publisher restrictions"),!1;if(n.map(e=>{var t=Object.keys(e);return"object"==typeof e&&-1!==t.indexOf("start")&&-1!==t.indexOf("end")&&e.start!0===e).length!==n.length)return console.error("Didomi - Invalid vendor restriction ranges provided for publisher restrictions. Each vendor restriction must contain 'start' and 'end' key"),!1}if("string"!=typeof r||-1===u.indexOf(r))return console.error('Didomi - Invalid restriction type "'+r+'" provided for publisher restrictions'),!1;if("cookies"===i&&("req-consent"===r||"req-li"===r))return console.error("Didomi - Only restriction types 'allow' or 'disallow' are valid for the purpose 'cookies'"),!1}return!0})({restrictionId:t,vendorRestrictionType:null==n?void 0:n.type,vendorRestrictionRanges:null==n?void 0:n.ranges,restrictionType:r,restrictionPurposeId:s,vendorIds:null==n?void 0:n.ids})},c=(e,t,s,n,r)=>{if("all"===t)return"allow"===e?[]:r;var i="allow"===e,o=new Set;return s&&(i?r.forEach(e=>{s.includes(e)||o.add(e)}):s.forEach(e=>{o.add(e)})),n&&n.forEach(e=>{var{start:t,end:s}=e;if(i)r.forEach(e=>{(es)&&o.add(e)});else for(var n=t;n<=s;n++)o.add(n)}),[...o]},p=s(1062),v=(0,r.EW)(()=>{var e,t,s,r=null==(e=n.U.value)||null==(t=e.vendors)||null==(s=t.iab)?void 0:s.restrictions;return Array.isArray(r)?r.filter(d).map(e=>{var t,s;return((e,t)=>{var{id:s,purposeId:n,vendors:r,restrictionType:i}=e,o=null==r?void 0:r.type,a=null==r?void 0:r.ranges,u=null==r?void 0:r.ids;return{id:s,purposeId:n,vendors:c(i,o,u,a,t),restrictionType:i,vendorRestrictionType:o}})(e,null==(t=p.A.value)||null==(s=t.vendors)?void 0:s.map(e=>{var{id:t}=e;return t}))}):[]})},10:function(e,t,s){"use strict";s.d(t,{C:function(){return o}});var n=s(8168),r=s(4576),i=s(4956),o=(0,r.EW)(()=>{var e,t,s,r;return null!=(e=i.h.value)&&e.length?null==(t=i.h.value)||null==(s=t.map(e=>({[e.id]:e.didomiId})))||null==(r=s.filter(Boolean))?void 0:r.reduce((e,t)=>(0,n.A)({},e,t),{}):{}})},13:function(e,t,s){"use strict";s.d(t,{B:function(){return r},I:function(){return n}});var n=(0,s(4576).vP)(!1),r=e=>n.value=e},152:function(e,t,s){"use strict";s.d(t,{U:function(){return a}});var n=s(259),r=s(4576),i=s(378),o={ENABLED_TCF_API_ERROR_LOGGING:!1,CONSENT_DURATION:31622400,DENIED_CONSENT_DURATION:void 0,ENABLE_GLOBAL_CONSENT_FOR_ALL_VENDORS_AND_PURPOSES:!1,ALWAY_DISPLAY_ACTION_BUTTON:!1},a=(0,r.EW)(()=>{var e,t,s,r=(0,i.or)((null==(e=n.bK.value)?void 0:e.website)||{},(null==(t=n.bK.value)?void 0:t.app)||{});return"boolean"!=typeof r.enabledTCFAPIErrorLogging&&(r.enabledTCFAPIErrorLogging=o.ENABLED_TCF_API_ERROR_LOGGING),!window.gdprAppliesGlobally||null!=(s=n.bK.value)&&s.version||(r.ignoreCountry=!0),(!(0,i.Et)(r.consentDuration)||r.consentDuration<=0)&&(r.consentDuration=o.CONSENT_DURATION),(!(0,i.Et)(r.deniedConsentDuration)||r.deniedConsentDuration<=0)&&(r.deniedConsentDuration=o.DENIED_CONSENT_DURATION),"string"!=typeof r.providerKey&&delete r.providerKey,"boolean"!=typeof r.enableGlobalConsentForAllVendorsAndPurposes&&(r.enableGlobalConsentForAllVendorsAndPurposes=o.ENABLE_GLOBAL_CONSENT_FOR_ALL_VENDORS_AND_PURPOSES),"boolean"!=typeof r.alwaysDisplayActionButtons&&(r.alwaysDisplayActionButtons=o.ALWAY_DISPLAY_ACTION_BUTTON),r})},259:function(e,t,s){"use strict";s.d(t,{MU:function(){return o},On:function(){return a},bK:function(){return i},ld:function(){return u}});var n=s(4576),r=s(378),i=(0,n.vP)(null),o=e=>{var t=Object.assign({},i.value||{});i.value=(0,r.zw)(t,e||{})},a=function(e,t){return void 0===t&&(t=void 0),(0,r.Jt)(i.value,e)||t},u=(e,t)=>{var s=i.value;(0,r.hZ)(s,e,t),i.value=s}},305:function(e,t,s){"use strict";s.d(t,{M:function(){return n},R:function(){return r}});var n=(0,s(4576).vP)(null),r=e=>{n.value=e}},351:function(e,t,s){"use strict";s.d(t,{o1:function(){return M},fh:function(){return W},J3:function(){return G}});var n={};s.r(n),s.d(n,{actions:function(){return I},initialState:function(){return b}});var r={};s.r(r),s.d(r,{actions:function(){return S},initialState:function(){return y}});var i={};s.r(i),s.d(i,{actions:function(){return w},initialState:function(){return C}});var o={};s.r(o),s.d(o,{actions:function(){return _},initialState:function(){return A}});var a={};s.r(a),s.d(a,{actions:function(){return E},initialState:function(){return P}});var u={};s.r(u),s.d(u,{actions:function(){return L},initialState:function(){return O}});var l={};s.r(l),s.d(l,{actions:function(){return k},initialState:function(){return T}});var d={};s.r(d),s.d(d,{actions:function(){return U},initialState:function(){return D}});var c={};s.r(c),s.d(c,{actions:function(){return R},initialState:function(){return V}});var p={};s.r(p),s.d(p,{actions:function(){return B},initialState:function(){return N}});var v=s(6700),h=s.n(v),g=s(7092),f=(s(6447),s(7565),s(378)),m=s(8168),b={sync:{enabled:!1,delayNotice:!0,timeout:3e3,frequency:86400}},I=()=>({setSyncConfig:(e,t)=>(0,m.A)({},e,{sync:(0,f.zw)(e.sync,t)})}),y={consentNotice:{show:!1,showOnUILoad:!1}},S=()=>({showConsentNotice:e=>({consentNotice:(0,m.A)({},e.consentNotice,{show:!0})}),showConsentNoticeOnLoad:e=>({consentNotice:(0,m.A)({},e.consentNotice,{showOnUILoad:!0})}),hideConsentNotice:e=>({consentNotice:(0,m.A)({},e.consentNotice,{show:!1,showOnUILoad:!1})}),setConsentNoticeConfig:(e,t)=>({consentNotice:(0,f.or)(e.consentNotice,t)})}),C={consentPopup:{enable:!0,open:!1,defaultChoice:void 0,enableAllButtons:!0,showWhenConsentIsMissing:!1,canCloseWhenConsentIsMissing:!0,view:"preferences",preferencesView:"purposes",information:{enable:!1,content:{text:{}}},denyAppliesToLI:!0,controlType:void 0,combineLIAndConsent:!1,content:{instructions:void 0}}},w=()=>({hideConsentPopup:e=>({consentPopup:(0,m.A)({},e.consentPopup,{open:!1})}),showConsentPopup:e=>({consentPopup:(0,m.A)({},e.consentPopup,{open:!0})}),switchViewConsentPopup:(e,t)=>({consentPopup:(0,m.A)({},e.consentPopup,{view:t})}),switchPreferencesViewConsentPopup:(e,t)=>({consentPopup:(0,m.A)({},e.consentPopup,{preferencesView:t})}),setConsentPopupConfig:(e,t)=>({consentPopup:(0,f.or)(e.consentPopup,t)})}),A={website:{ignoreCountry:!1,purposes:[],disabledPurposes:[],vendors:[],customSDK:null,regulations:{ccpa:{enabled:!1},gdpr:{enabled:!0,additionalCountries:[]}},google:{additionalConsent:{positive:null,negative:null},fullATP:!1},consentString:void 0,vendorsIdToNumMap:void 0,purposesNumToIdMap:void 0,purposesIdToNumMap:void 0}},_=()=>({setWebsiteConfig:(e,t)=>({website:(0,f.or)(e.website,t)})}),P={iab:{decodedAdditionalConsent:void 0}},E=()=>({setConsentByVendor:(e,t)=>({consentByVendor:t})}),O={remoteConsents:{},pendingConsents:{},isUserAuthenticated:!1,callbackURL:null,authProtocol:null},L=()=>({loadRemoteConsents:(e,t)=>(0,m.A)({},e,{remoteConsents:(0,f.or)(e.remoteConsents,t)}),setUserAuthenticated:(e,t)=>(0,m.A)({},e,{isUserAuthenticated:t}),setCallbackURL:(e,t)=>(0,m.A)({},e,{callbackURL:t}),setAuthProtocol:(e,t)=>(0,m.A)({},e,{authProtocol:t}),setRemoteConsents:(e,t)=>(0,m.A)({},e,{remoteConsents:(0,m.A)({},e.remoteConsents,{consents:(0,f.or)(e.remoteConsents.consents,t)})}),setPendingConsent:(e,t)=>{var{purposeId:s,preferenceId:n,channelId:r,data:i}=t,o=null,a=null;s?(o=s,a="consents.purposes."+s,n&&(o+="_"+n,a+=".preferences."+n),r&&(o+="_"+r,a+=".channels."+r)):r&&(o=r,a="consents.channels."+r);var{metadata:u={},enabled:l}=(0,f.Jt)(e.remoteConsents,""+a,{}),d={enabled:l,metadata:u};i.metadata=void 0===i.metadata?{}:i.metadata;var c={purposeId:s,preferenceId:n,channelId:r,data:(0,f.or)((0,f.or)(d,(0,f.Jt)(e.pendingConsents,o+".data",{})),i)};return JSON.stringify(c.data)!==JSON.stringify(d)?(0,m.A)({},e,{pendingConsents:(0,m.A)({},e.pendingConsents,{[o]:c})}):e.pendingConsents[o]?(0,m.A)({},e,{pendingConsents:(0,m.A)({},Object.keys(e.pendingConsents).filter(e=>e!==o).reduce((t,s)=>(t[s]=e.pendingConsents[s],t),{}))}):e},resetPendingConsents:e=>(0,m.A)({},e,{pendingConsents:{}})}),T={ui:{loading:!1,loaded:!1,rendered:!1,module:null}},k=()=>({loadingUI:e=>({ui:(0,m.A)({},e.ui,{loading:!0})}),loadedUI:e=>({ui:(0,m.A)({},e.ui,{loaded:!0,loading:!1})}),renderedUI:e=>({ui:(0,m.A)({},e.ui,{rendered:!0})}),resetUI:e=>({ui:(0,m.A)({},e.ui,{rendered:!1,loading:!1,loaded:!1})})}),D={components:{helpersEnabled:!1,componentsEnabled:!1,version:1}},U=()=>({setComponentsConfig:(e,t)=>({components:(0,f.or)(e.components,t)})}),V={mixedRegulationPreferences:{categories:[],categoriesState:{},purposesState:{},spiPurposesState:{},allSPIUseState:!1,vendors:[],allVendorsState:!0,vendorsState:{}}},R=()=>({setPurposeState:(e,t,s)=>({mixedRegulationPreferences:(0,m.A)({},e.mixedRegulationPreferences,{purposesState:(0,m.A)({},e.mixedRegulationPreferences.purposesState,{[t]:s})})}),setSPIPurposesState:(e,t,s)=>({mixedRegulationPreferences:(0,m.A)({},e.mixedRegulationPreferences,{spiPurposesState:(0,m.A)({},e.mixedRegulationPreferences.spiPurposesState,{[t]:s})})}),setCategoryState:(e,t,s)=>{var n;return{mixedRegulationPreferences:(0,m.A)({},e.mixedRegulationPreferences,{categoriesState:(0,m.A)({},null==(n=e.mixedRegulationPreferences)?void 0:n.categoriesState,{[t]:s})})}},setVendorState:(e,t,s)=>({mixedRegulationPreferences:(0,m.A)({},e.mixedRegulationPreferences,{vendorsState:(0,m.A)({},e.mixedRegulationPreferences.vendorsState,{[t]:s})})}),setAllVendorsState:(e,t)=>({mixedRegulationPreferences:(0,m.A)({},e.mixedRegulationPreferences,{allVendorsState:t})}),setAllSPIUseState:(e,t)=>({mixedRegulationPreferences:(0,m.A)({},e.mixedRegulationPreferences,{allSPIUseState:t})}),setVendors:(e,t)=>({mixedRegulationPreferences:(0,m.A)({},e.mixedRegulationPreferences,{vendors:t})}),setCategories:(e,t)=>({mixedRegulationPreferences:(0,m.A)({},e.mixedRegulationPreferences,{categories:t})})}),N={signature:{dcsUserId:null,value:null}},B=()=>({setSignature:(e,t)=>({signature:{dcsUserId:t.dcsUserId,value:t.signature}}),dropSignature:e=>({signature:(0,m.A)({},e.signature,{value:null})})}),x=[n,r,i,o,a,u,l,d,c,p],M={};for(var F of x)M[Object.keys(F.initialState)[0]]=F.actions;function z(e){var t={};for(var s of x)(0,f.zw)(t,(0,g.XL)(s.actions,e));return t}var j=function(e){var t=e||function(){var e={};for(var t of x)(0,f.zw)(e,t.initialState);return e}(),s=h()(t,[]);return{store:s,actions:z(s)}}(),G=j.store,W=j.actions},378:function(e,t,s){"use strict";s.d(t,{F8:function(){return v},r1:function(){return h},Go:function(){return l},bD:function(){return c},zw:function(){return u},or:function(){return d},Jt:function(){return o},gi:function(){return I},Im:function(){return p},Et:function(){return m},Qd:function(){return a},Kg:function(){return b},Up:function(){return f},hZ:function(){return i},zu:function(){return g}});var n=Object.prototype.hasOwnProperty;function r(e,t){var s,i;if(e===t)return!0;if(e&&t&&(s=e.constructor)===t.constructor){if(s===Date)return e.getTime()===t.getTime();if(s===RegExp)return e.toString()===t.toString();if(s===Array){if((i=e.length)===t.length)for(;i--&&r(e[i],t[i]););return-1===i}if(!s||"object"==typeof e){for(s in i=0,e){if(n.call(e,s)&&++i&&!n.call(t,s))return!1;if(!(s in t)||!r(e[s],t[s]))return!1}return Object.keys(t).length===i}}return e!=e&&t!=t}var i=(e,t,s)=>function(e,t,s){t.split&&(t=t.split("."));for(var n,r,i=0,o=t.length,a=e;ifunction(e,t,s,n,r){for(t=t.split?t.split("."):t,n=0;n"object"==typeof e&&null!==e&&e.constructor===Object;function u(e,t){for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&(s in e&&a(e[s])&&a(t[s])?e[s]=u(e[s],t[s]):e[s]=t[s]);return e}function l(e){return JSON.parse(JSON.stringify("object"==typeof e?e:{}))}function d(e,t){return u(l(e),t)}var c=(e,t)=>r(e,t),p=e=>e&&e.constructor===Object&&0===Object.keys(e).length,v=e=>Object.values(e).every(e=>!e),h=(e,t)=>{if(!Array.isArray(e)||!Array.isArray(t))return!1;if(e.length!==t.length)return!1;for(var s=[...e].sort(),n=[...t].sort(),r=0;r"function"==typeof Object.values?Object.values(e):Object.keys(e).map(t=>e[t]),f=(e,t)=>t.reduce((t,s)=>(Object.prototype.hasOwnProperty.call(e,s)&&(t[s]=e[s]),t),{}),m=e=>"number"==typeof e?!isNaN(e):e instanceof Number&&!isNaN(e.valueOf()),b=e=>"string"==typeof e||e instanceof String,I=e=>Array.isArray(e)?e:[]},379:function(e,t,s){"use strict";s.d(t,{A2:function(){return i},LL:function(){return r}});var n=s(378),r=e=>(0,n.Et)(e)&&e>0,i=e=>null==e?void 0:e.sort((e,t)=>{var{name:s}=e,{name:n}=t;return s.localeCompare(n)})},418:function(e,t,s){"use strict";s.d(t,{t:function(){return i}});var n=s(4576),r=s(259),i=(0,n.EW)(()=>{var e,t,s,n,i=Number(null==(e=r.bK.value)||null==(t=e.app)?void 0:t.consentDuration)||31622400;return{durationInSeconds:i,durationInDays:i/86400,deniedDurationInSeconds:Number(null==(s=r.bK.value)||null==(n=s.app)?void 0:n.deniedConsentDuration)||void 0}})},460:function(e,t,s){var n={"./ar-JO/web/":[8145,"ui-web-ar-JO-web"],"./ar/web/":[8849,"ui-web-ar-web"],"./az-AZ/web/":[7265,"ui-web-az-AZ-web"],"./be/web/":[1356,"ui-web-be-web"],"./bg/web/":[4769,"ui-web-bg-web"],"./bn-IN/web/":[1088,"ui-web-bn-IN-web"],"./bs/web/":[3734,"ui-web-bs-web"],"./ca/web/":[7058,"ui-web-ca-web"],"./cs/web/":[5896,"ui-web-cs-web"],"./cy/web/":[4687,"ui-web-cy-web"],"./da/web/":[8033,"ui-web-da-web"],"./de-AT/web/":[8639,"ui-web-de-AT-web"],"./de-CH/web/":[8641,"ui-web-de-CH-web"],"./de/web/":[5669,"ui-web-de-web"],"./el/web/":[1271,"ui-web-el-web"],"./en-CA/web/":[5375,"ui-web-en-CA-web"],"./en-GB/web/":[4159,"ui-web-en-GB-web"],"./en-NZ/web/":[7054,"ui-web-en-NZ-web"],"./en/web/":[2745,"ui-web-en-web"],"./es/web/":[9954,"ui-web-es-web"],"./et/web/":[9135,"ui-web-et-web"],"./eu/web/":[9837,"ui-web-eu-web"],"./fi/web/":[79,"ui-web-fi-web"],"./fil/web/":[8567,"ui-web-fil-web"],"./fr-BE/web/":[8882,"ui-web-fr-BE-web"],"./fr-CA/web/":[495,"ui-web-fr-CA-web"],"./fr/web/":[9609,"ui-web-fr-web"],"./gl/web/":[9798,"ui-web-gl-web"],"./he/web/":[5729,"ui-web-he-web"],"./hi-IN/web/":[41,"ui-web-hi-IN-web"],"./hr/web/":[1448,"ui-web-hr-web"],"./hu/web/":[65,"ui-web-hu-web"],"./id/web/":[4968,"ui-web-id-web"],"./it/web/":[235,"ui-web-it-web"],"./ja/web/":[1179,"ui-web-ja-web"],"./ka/web/":[8095,"ui-web-ka-web"],"./ko/web/":[6324,"ui-web-ko-web"],"./lt/web/":[4266,"ui-web-lt-web"],"./lv/web/":[4480,"ui-web-lv-web"],"./mk-MK/web/":[6247,"ui-web-mk-MK-web"],"./ms/web/":[2442,"ui-web-ms-web"],"./mt/web/":[4260,"ui-web-mt-web"],"./nl-BE/web/":[9300,"ui-web-nl-BE-web"],"./nl/web/":[9968,"ui-web-nl-web"],"./no/web/":[5021,"ui-web-no-web"],"./pl/web/":[1278,"ui-web-pl-web"],"./pt-BR/web/":[6159,"ui-web-pt-BR-web"],"./pt/web/":[2246,"ui-web-pt-web"],"./ro/web/":[5385,"ui-web-ro-web"],"./ru/web/":[3711,"ui-web-ru-web"],"./sk/web/":[5216,"ui-web-sk-web"],"./sl/web/":[969,"ui-web-sl-web"],"./sq/web/":[9351,"ui-web-sq-web"],"./sr-Latn/web/":[6009,"ui-web-sr-Latn-web"],"./sr/web/":[1363,"ui-web-sr-web"],"./sv/web/":[5983,"ui-web-sv-web"],"./sw/web/":[8772,"ui-web-sw-web"],"./th/web/":[5462,"ui-web-th-web"],"./tl/web/":[2495,"ui-web-tl-web"],"./tr/web/":[7556,"ui-web-tr-web"],"./uk/web/":[3562,"ui-web-uk-web"],"./vi/web/":[6959,"ui-web-vi-web"],"./zh-CN/web/":[8120,"ui-web-zh-CN-web"],"./zh-TW/web/":[2636,"ui-web-zh-TW-web"]};function r(e){if(!s.o(n,e))return Promise.resolve().then(function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t});var t=n[e],r=t[0];return s.e(t[1]).then(function(){return s(r)})}r.keys=function(){return Object.keys(n)},r.id=460,e.exports=r},467:function(e,t,s){"use strict";function n(e,t,s,n,r,i,o){try{var a=e[i](o),u=a.value}catch(e){return void s(e)}a.done?t(u):Promise.resolve(u).then(n,r)}function r(e){return function(){var t=this,s=arguments;return new Promise(function(r,i){var o=e.apply(t,s);function a(e){n(o,r,i,a,u,"next",e)}function u(e){n(o,r,i,a,u,"throw",e)}a(void 0)})}}s.d(t,{A:function(){return r}})},513:function(e,t,s){"use strict";s.d(t,{c:function(){return i}});var n=s(5968),r=s(2639),i=e=>{var t,s;if(!e||"category"===e.type)return e;var i=(0,n.z)(e.purposeId);return i?{id:"cat-"+i.id,type:"category",name:i.name,description:i.description,children:[{type:"purpose",purposeId:i.id}],agree:null==(t=r.v.value.content)?void 0:t.agree,disagree:null==(s=r.v.value.content)?void 0:s.disagree}:e}},517:function(e,t,s){"use strict";s.r(t),s.d(t,{default:function(){return u}});var n=s(8168),r=s(7071),i=s(4283),o=s(1373),a=s(3207);class u{update(e){var{customVariables:t={},requiredVendors:s=[],isConsentRequired:n,userStatus:r,regulation:i,allowedCategories:o,vendorIdsMap:a}=e;for(var u of(window.didomiState={},Object.keys(t)))window.didomiState[u]=t[u];"complete"!==document.readyState&&window.addEventListener("load",()=>this.enableTags({customVariables:t,requiredVendors:s,isConsentRequired:n,userStatus:r,regulation:i,allowedCategories:o,vendorIdsMap:a})),this.enableTags({customVariables:t,requiredVendors:s,isConsentRequired:n,userStatus:r,regulation:i,allowedCategories:o,vendorIdsMap:a})}enableTags(e){var t,{customVariables:s,requiredVendors:n,isConsentRequired:u,userStatus:l,regulation:d,allowedCategories:c,vendorIdsMap:p}=e,{vendorsByStatusWithPurposes:v,vendorsByStatusWithoutPurposes:h}=(0,a.R)({requiredVendors:n,isConsentRequired:u,userStatus:l,processingRules:"mixed"===(null==d||null==(t=d.group)?void 0:t.name)?["legitimate_interest"]:["consent","legitimate_interest"]}),g=[{attribute:"data-category",values:c},{attribute:"data-vendor",values:(0,r.$)([...v.allowed,...v.allowed.map(e=>p[(0,i.b)(e)])])},{attribute:"data-vendor-raw",values:(0,r.$)([...h.allowed,...h.allowed.map(e=>p[(0,i.b)(e)])])},{attribute:"data-purposes",attributeIsList:!0,values:(0,o.V)(s.didomiPurposesEnabled)}],f={gdpr:s.didomiGDPRApplies,gdpr_consent:s.didomiIABConsent,regulation_name:s.didomiRegulationName};this.enableTagsByName('script[type="didomi/javascript"]',"script",g,f),this.enableTagsByName('script[type="didomi/html"]',"div",g,f)}enableTagsByName(e,t,s,r){var i=this,o=document.querySelectorAll(e),a=function(e){var o=!0;"true"!==e.getAttribute("data-processed")&&(s.filter(t=>{var{attribute:s}=t;return e.hasAttribute(s)}).map(t=>{var{attribute:s,attributeIsList:a,values:u}=t;if("immediate"===e.getAttribute("data-loading")||u.length>0){var l=e.getAttribute(s);if("data-vendor"===s&&(r=(0,n.A)({},r,i.addVendorsRelatedMacros(-1!==u.indexOf(String(l))))),"data-vendor-raw"===s&&(r=(0,n.A)({},r,i.addVendorsRawRelatedMacros(-1!==u.indexOf(String(l))))),"immediate"!==e.getAttribute("data-loading"))if(!0===a){var d=String(l).split(","),c=!0;for(var p of d)p.length>0&&(c=c&&-1!==u.indexOf(String(p)));!1===c&&(o=!1)}else-1===u.indexOf(String(l))&&(o=!1)}else o=!1;return null}),!0===o&&i.replaceTags(t,e,r))};for(var u of o)a(u)}replaceMacros(e,t){for(var s of Object.keys(e)){var n=new RegExp("{"+s+"}","gi");t=t.replace(n,e[s])}return t}replaceTags(e,t,s){var n=document.createElement(e);"script"===e&&(n.type="text/javascript");try{n.setHTML(this.replaceMacros(s,t.innerHTML))}catch(e){n.innerHTML=this.replaceMacros(s,t.innerHTML)}for(var r of t.attributes)"type"!==r.name&&n.setAttribute(r.name,r.value);t.parentNode.insertBefore(n,t),t.setAttribute("data-processed",!0)}addVendorsRelatedMacros(e){return{gdpr_consent_vendor:e?1:0,gdpr_consent_vendor_boolean:e}}addVendorsRawRelatedMacros(e){return{gdpr_consent_vendor_raw:e?1:0,gdpr_consent_vendor_boolean_raw:e}}}},747:function(e,t,s){"use strict";s.r(t),s.d(t,{default:function(){return r}});var n=s(8168);class r{constructor(e){this.dataLayerName="dataLayer",e&&"string"==typeof e.dataLayerName&&e.dataLayerName.length>0&&(this.dataLayerName=e.dataLayerName),window[this.dataLayerName]||(window[this.dataLayerName]=[])}pushToDataLayer(e){window[this.dataLayerName]&&"function"==typeof window[this.dataLayerName].push&&window[this.dataLayerName].push(e)}sendCookiesConsentEvent(e){0===(null==e?void 0:e.length)||1===e.length&&"essential"===e[0]||this.pushToDataLayer({event:"didomi-cookies-consent",didomiCookiesConsent:e.join(",")})}update(e){var{type:t="didomi-consent-changed",customVariables:s={},allowedCategories:r=[]}=e;this.sendCookiesConsentEvent(r),this.pushToDataLayer((0,n.A)({event:"didomi-consent"},s)),this.pushToDataLayer((0,n.A)({event:t},s))}}},950:function(e,t,s){"use strict";s.d(t,{A:function(){return n},L:function(){return r}});var n=(0,s(4576).vP)({visible:!0}),r=e=>{n.value=e}},1062:function(e,t,s){"use strict";s.d(t,{A:function(){return D}});var n,r,i,o,a,u,l,d,c,p,v,h,g,f,m,b,I,y,S,C,w,A,_,P,E,O,L=s(4576),T=window.didomiVendorListCore||{p:[],sp:[],f:[],sf:[],st:[],s:[]},k={vendorListVersion:null==T?void 0:T.v,lastUpdated:null==T?void 0:T.l,gvlSpecificationVersion:null==T?void 0:T.gsv,tcfPolicyVersion:null==T?void 0:T.tpv,purposes:null==T||null==(n=T.p)?void 0:n.map(e=>({id:e})),specialPurposes:null==T||null==(r=T.sp)?void 0:r.map(e=>({id:e})),features:null==T||null==(i=T.f)?void 0:i.map(e=>({id:e})),specialFeatures:null==T||null==(o=T.sf)?void 0:o.map(e=>({id:e})),stacks:null==T||null==(a=T.st)?void 0:a.map(e=>({id:null==e?void 0:e.i,purposeIds:(null==e?void 0:e.p)||[],specialFeatureIds:(null==e?void 0:e.sf)||[]})),vendors:null==T?void 0:T.s.map(e=>({id:null==e?void 0:e.i,purposeIds:(null==e?void 0:e.p)||[],flexiblePurposeIds:(null==e?void 0:e.fp)||[],specialPurposeIds:(null==e?void 0:e.sp)||[],legIntPurposeIds:(null==e?void 0:e.l)||[],featureIds:(null==e?void 0:e.f)||[],specialFeatureIds:(null==e?void 0:e.sf)||[],didomiId:null==e?void 0:e.di,tmpDeletedDate:null==e?void 0:e.dd}))};null!=(u=window)&&null!=(l=u.didomiConfig)&&null!=(d=l.website)&&null!=(c=d.vendors)&&null!=(p=c.iab)&&p.vendorList||null!=(v=window)&&null!=(h=v.didomiConfig)&&null!=(g=h.app)&&null!=(f=g.vendors)&&null!=(m=f.iab)&&m.vendorList?b=(null==(I=window)||null==(y=I.didomiConfig)||null==(S=y.website)||null==(C=S.vendors)||null==(w=C.iab)?void 0:w.vendorList)||(null==(A=window)||null==(_=A.didomiConfig)||null==(P=_.app)||null==(E=P.vendors)||null==(O=E.iab)?void 0:O.vendorList):b=k;var D=(0,L.vP)(b)},1081:function(e,t,s){"use strict";function n(e,t){return e===t}s.d(t,{Mz:function(){return r}});var r=function(e){for(var t=arguments.length,s=Array(t>1?t-1:0),n=1;n1&&void 0!==arguments[1]?arguments[1]:n,s=null,r=null;return function(){return function(e,t,s){if(null===t||null===s||t.length!==s.length)return!1;for(var n=t.length,r=0;r0&&s[t].length>r&&(s[t].warned=!0,e.logger.warn("Possible EventEmitter memory leak detected for '%s' event. %d listeners added. Use emitter.setMaxListeners() to increase limit.",t,s[t].length),e.logger.trace&&e.logger.trace())}return e}function o(t,n){if(!n&&!s.removeListener)return t?s[t]&&delete s[t]:s={},e;if(!t){for(var i in s)"removeListener"!=i&&o(i);return o("removeListener"),s={},e}if(!s[t])return e;if(!n){for(;s[t].length;)o(t,s[t][s[t].length-1]);return delete s[t],e}var a=s[t].indexOf(n);return a<0||(s[t].splice(a,1),s.removeListener&&r("removeListener",t,n)),e}function a(){return Object.keys(s)}}({},{logger:s&&s.logger,maxListeners:s&&s.maxListeners})}t.EventEmitter=t,t.defaultMaxListeners=10,t.logger="object"==typeof console&&console||{warn:function(){}},t.setLogger=function(e){t.logger=e},e.exports=t},1354:function(e,t,s){"use strict";s.d(t,{A:function(){return n}});class n{constructor(e,t,s){this.userStatus=this.getConsentsAndLegitimateInterests(e()),this.setUserStatus=t,this.action=s}getConsentsAndLegitimateInterests(e){return{purposesConsents:e.purposes.consent,vendorsConsents:e.vendors.consent,vendorsLegitimateInterests:e.vendors.legitimate_interest,purposesLegitimateInterests:e.purposes.legitimate_interest}}enablePurpose(e){-1===this.userStatus.purposesConsents.enabled.indexOf(e)&&this.userStatus.purposesConsents.enabled.push(e);var t=this.userStatus.purposesConsents.disabled.indexOf(e);return-1!==t&&this.userStatus.purposesConsents.disabled.splice(t,1),this}enablePurposes(){for(var e=arguments.length,t=new Array(e),s=0;sArray.isArray(e)&&e.length>0?e.join(",")+",":"",r=e=>"string"==typeof e&&e.length>0?e.split(",").map(e=>e.trim()).filter(e=>e.length>0):[]},1719:function(e,t,s){"use strict";s.r(t),s.d(t,{initIABTCFCmpAPI:function(){return $e},updateIABTCFCmpApi:function(){return Ye}});var n,r,i,o,a,u,l,d,c,p,v,h,g,f,m,b,I,y,S,C,w,A,_,P,E,O,L,T,k,D,U,V,R=!0,N=!0,B=()=>N,x="",M=()=>x,F=()=>i,z=1,j=7,G=1,W=!1,J=()=>u;!function(e){e.PING="ping",e.GET_TC_DATA="getTCData",e.GET_IN_APP_TC_DATA="getInAppTCData",e.GET_VENDOR_LIST="getVendorList",e.ADD_EVENT_LISTENER="addEventListener",e.REMOVE_EVENT_LISTENER="removeEventListener"}(l||(l={})),function(e){e.STUB="stub",e.LOADING="loading",e.LOADED="loaded",e.ERROR="error"}(d||(d={})),function(e){e.VISIBLE="visible",e.HIDDEN="hidden",e.DISABLED="disabled"}(c||(c={})),function(e){e.TC_LOADED="tcloaded",e.CMP_UI_SHOWN="cmpuishown",e.USER_ACTION_COMPLETE="useractioncomplete"}(p||(p={}));class H{constructor(e,t,s,n){this.listenerId=void 0,this.callback=void 0,this.next=void 0,this.param=void 0,this.success=!0,Object.assign(this,{callback:e,listenerId:s,param:t,next:n});try{this.respond()}catch(e){this.invokeCallback(null)}}invokeCallback(e){var t=null!==e;"function"==typeof this.next?this.callback(this.next,e,t):this.callback(e,t)}}class K extends H{respond(){this.throwIfParamInvalid(),this.invokeCallback(new $(this.param,this.listenerId))}throwIfParamInvalid(){if(!(void 0===this.param||Array.isArray(this.param)&&this.param.every(Number.isInteger)))throw new Error("Invalid Parameter")}}class q{constructor(e){this.name=void 0,this.recalculations=void 0,this.cache=void 0,this.name=e,this.recalculations=0,this.cache=new Map}get(e,t){var s=this.cache.get(e);if(s)return s;for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i{new K(e.callback,e.param,t,e.next)})}clear(){this.queueNumber=0,this.eventQueue.clear()}get size(){return this.eventQueue.size}},Z.cmpStatus=d.LOADING,Z.disabled=!1,Z.displayStatus=c.HIDDEN,Z.cmpId=void 0,Z.cmpVersion=void 0,Z.eventStatus=void 0,Z.gdprApplies=void 0,Z.tcModel=void 0,Z.tcString=void 0,Z.restrictionsCache=new class{constructor(){this.cacheBuckets=void 0,this.cacheBuckets=new Map}getBucket(e){var t=this.cacheBuckets.get(e);return t||(t=new q(e),this.cacheBuckets.set(e,t)),t}clear(){this.cacheBuckets.forEach(e=>e.clear())}numberOfBuckets(){return this.cacheBuckets.size}size(){var e=0;return this.cacheBuckets.forEach(t=>e+=t.size()),e}};class Y{constructor(){this.cmpId=Z.cmpId,this.cmpVersion=Z.cmpVersion,this.gdprApplies=Z.gdprApplies,this.tcfPolicyVersion=Z.tcfPolicyVersion}}class Q extends Y{constructor(){super(...arguments),this.cmpStatus=d.ERROR}}class $ extends Y{constructor(e,t){super(),this.tcString=void 0,this.listenerId=void 0,this.eventStatus=void 0,this.cmpStatus=void 0,this.isServiceSpecific=void 0,this.useNonStandardTexts=void 0,this.publisherCC=void 0,this.purposeOneTreatment=void 0,this.outOfBand=void 0,this.purpose=void 0,this.vendor=void 0,this.specialFeatureOptins=void 0,this.publisher=void 0,this.eventStatus=Z.eventStatus,this.cmpStatus=Z.cmpStatus,this.listenerId=t;var s=Z.restrictionsCache.getBucket(this.constructor.name);if(Z.gdprApplies){var n=Z.tcModel;this.tcString=Z.tcString,this.isServiceSpecific=n.isServiceSpecific,this.useNonStandardTexts=n.useNonStandardTexts,this.purposeOneTreatment=n.purposeOneTreatment,this.publisherCC=n.publisherCountryCode;var r=s.get(this.tcString,this.createRestrictions.bind(this),n.publisherRestrictions);this.outOfBand={allowedVendors:this.createVectorField(n.vendorsAllowed,e),disclosedVendors:this.createVectorField(n.vendorsDisclosed,e)},this.purpose={consents:this.createVectorField(n.purposeConsents),legitimateInterests:this.createVectorField(n.purposeLegitimateInterests)},this.vendor={consents:this.createVectorField(n.vendorConsents,e),legitimateInterests:this.createVectorField(n.vendorLegitimateInterests,e)},this.specialFeatureOptins=this.createVectorField(n.specialFeatureOptins),this.publisher={consents:this.createVectorField(n.publisherConsents),legitimateInterests:this.createVectorField(n.publisherLegitimateInterests),customPurpose:{consents:this.createVectorField(n.publisherCustomConsents),legitimateInterests:this.createVectorField(n.publisherCustomLegitimateInterests)},restrictions:r}}}createRestrictions(e){var t={};if(e.numRestrictions>0)for(var s=e.getMaxVendorId(),n=function(){var s=r.toString();e.getRestrictions(r).forEach(e=>{var n=e.purposeId.toString();t[n]||(t[n]={}),t[n][s]=e.restrictionType})},r=1;r<=s;r++)n();return t}createVectorField(e,t){return t?t.reduce((t,s)=>(t[String(s)]=e.has(Number(s)),t),{}):[...e].reduce((e,t)=>(e[t[0].toString(10)]=t[1],e),{})}}class X extends ${constructor(e){super(e),delete this.outOfBand}createVectorField(e){return[...e].reduce((e,t)=>e+=t[1]?"1":"0","")}createRestrictions(e){var t={};if(e.numRestrictions>0){var s=e.getMaxVendorId();e.getRestrictions().forEach(e=>{t[e.purposeId.toString()]="_".repeat(s)});for(var n=function(s){var n=s+1;e.getRestrictions(n).forEach(e=>{var n=e.restrictionType.toString(),r=e.purposeId.toString(),i=t[r].substr(0,s),o=t[r].substr(s+1);t[r]=i+n+o})},r=0;r=2&&2==t.length){if(oe.langSet.has(e))return e;if(oe.langSet.has(t))return t;var s=t+"-"+t;if(oe.langSet.has(s))return s;for(var n of oe.langSet)if(-1!==n.indexOf(e)||-1!==n.indexOf(t))return n}throw new Error("unsupported language "+e)}forEach(e){oe.langSet.forEach(e)}get size(){return oe.langSet.size}}oe.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","KO","LT","LV","MK","MS","MT","NL","NO","PL","PT-BR","PT-PT","RO","RU","SK","SL","SR-LATN","SR-CYRL","SV","TL","TR","UK","ZH","ZH-HANT"]);class ae{}ae.cmpId="cmpId",ae.cmpVersion="cmpVersion",ae.consentLanguage="consentLanguage",ae.consentScreen="consentScreen",ae.created="created",ae.supportOOB="supportOOB",ae.isServiceSpecific="isServiceSpecific",ae.lastUpdated="lastUpdated",ae.numCustomPurposes="numCustomPurposes",ae.policyVersion="policyVersion",ae.publisherCountryCode="publisherCountryCode",ae.publisherCustomConsents="publisherCustomConsents",ae.publisherCustomLegitimateInterests="publisherCustomLegitimateInterests",ae.publisherLegitimateInterests="publisherLegitimateInterests",ae.publisherConsents="publisherConsents",ae.publisherRestrictions="publisherRestrictions",ae.purposeConsents="purposeConsents",ae.purposeLegitimateInterests="purposeLegitimateInterests",ae.purposeOneTreatment="purposeOneTreatment",ae.specialFeatureOptins="specialFeatureOptins",ae.useNonStandardTexts="useNonStandardTexts",ae.vendorConsents="vendorConsents",ae.vendorLegitimateInterests="vendorLegitimateInterests",ae.vendorListVersion="vendorListVersion",ae.vendorsAllowed="vendorsAllowed",ae.vendorsDisclosed="vendorsDisclosed",ae.version="version";class ue{clone(){var e=new this.constructor;return Object.keys(this).forEach(t=>{var s=this.deepClone(this[t]);void 0!==s&&(e[t]=s)}),e}deepClone(e){var t=typeof e;if("number"===t||"string"===t||"boolean"===t)return e;if(null!==e&&"object"===t){if("function"==typeof e.clone)return e.clone();if(e instanceof Date)return new Date(e.getTime());if(void 0!==e[Symbol.iterator]){var s=[];for(var n of e)s.push(this.deepClone(n));return e instanceof Array?s:new e.constructor(s)}var r={};for(var i in e)e.hasOwnProperty(i)&&(r[i]=this.deepClone(e[i]));return r}}}!function(e){e[e.NOT_ALLOWED=0]="NOT_ALLOWED",e[e.REQUIRE_CONSENT=1]="REQUIRE_CONSENT",e[e.REQUIRE_LI=2]="REQUIRE_LI"}(v||(v={}));class le extends ue{constructor(e,t){super(),this.purposeId_=void 0,this.restrictionType=void 0,void 0!==e&&(this.purposeId=e),void 0!==t&&(this.restrictionType=t)}static unHash(e){var t=e.split(this.hashSeparator),s=new le;if(2!==t.length)throw new re("hash",e);return s.purposeId=parseInt(t[0],10),s.restrictionType=parseInt(t[1],10),s}get hash(){if(!this.isValid())throw new Error("cannot hash invalid PurposeRestriction");return""+this.purposeId+le.hashSeparator+this.restrictionType}get purposeId(){return this.purposeId_}set purposeId(e){this.purposeId_=e}isValid(){return Number.isInteger(this.purposeId)&&this.purposeId>0&&(this.restrictionType===v.NOT_ALLOWED||this.restrictionType===v.REQUIRE_CONSENT||this.restrictionType===v.REQUIRE_LI)}isSameAs(e){return this.purposeId===e.purposeId&&this.restrictionType===e.restrictionType}}le.hashSeparator="-";class de extends ue{constructor(){super(...arguments),this.bitLength=0,this.map=new Map,this.gvl_=void 0}has(e){return this.map.has(e)}isOkToHave(e,t,s){var n,r=!0;if(null!=(n=this.gvl)&&n.vendors){var i=this.gvl.vendors[s];if(i)if(e===v.NOT_ALLOWED)r=i.legIntPurposes.includes(t)||i.purposes.includes(t);else if(i.flexiblePurposes.length)switch(e){case v.REQUIRE_CONSENT:r=i.flexiblePurposes.includes(t)&&i.legIntPurposes.includes(t);break;case v.REQUIRE_LI:r=i.flexiblePurposes.includes(t)&&i.purposes.includes(t)}else r=!1;else r=!1}return r}add(e,t){if(this.isOkToHave(t.restrictionType,t.purposeId,e)){var s=t.hash;this.has(s)||(this.map.set(s,new Set),this.bitLength=0),this.map.get(s).add(e)}}restrictPurposeToLegalBasis(e,t){void 0===t&&(t=[...this.gvl.vendorIds]);var s=e.hash;if(this.has(s)){var n=this.map.get(s);for(var r of t)n.add(r)}else this.map.set(s,new Set(t)),this.bitLength=0}getVendors(e){var t=[];if(e){var s=e.hash;this.has(s)&&(t=[...this.map.get(s)])}else{var n=new Set;this.map.forEach(e=>{[...e].forEach(e=>{n.add(e)})}),t=[...n]}return t.sort((e,t)=>e-t)}getRestrictionType(e,t){var s;return this.getRestrictions(e).forEach(e=>{e.purposeId===t&&(void 0===s||s>e.restrictionType)&&(s=e.restrictionType)}),s}vendorHasRestriction(e,t){for(var s=!1,n=this.getRestrictions(e),r=0;r{var s=[...t];e=Math.max(s[s.length-1],e)}),e}getRestrictions(e){var t=[];return this.map.forEach((s,n)=>{e?s.has(e)&&t.push(le.unHash(n)):t.push(le.unHash(n))}),t}getPurposes(){var e=new Set;return this.map.forEach((t,s)=>{e.add(le.unHash(s).purposeId)}),[...e]}remove(e,t){var s=t.hash,n=this.map.get(s);n&&(n.delete(e),0==n.size&&(this.map.delete(s),this.bitLength=0))}set gvl(e){this.gvl_||(this.gvl_=e,this.map.forEach((e,t)=>{var s=le.unHash(t);[...e].forEach(t=>{this.isOkToHave(s.restrictionType,s.purposeId,t)||e.delete(t)})}))}get gvl(){return this.gvl_}isEmpty(){return 0===this.map.size}get numRestrictions(){return this.map.size}}!function(e){e.COOKIE="cookie",e.WEB="web",e.APP="app"}(h||(h={})),function(e){e.CORE="core",e.VENDORS_DISCLOSED="vendorsDisclosed",e.VENDORS_ALLOWED="vendorsAllowed",e.PUBLISHER_TC="publisherTC"}(g||(g={}));class ce{}ce.ID_TO_KEY=[g.CORE,g.VENDORS_DISCLOSED,g.VENDORS_ALLOWED,g.PUBLISHER_TC],ce.KEY_TO_ID={[g.CORE]:0,[g.VENDORS_DISCLOSED]:1,[g.VENDORS_ALLOWED]:2,[g.PUBLISHER_TC]:3};class pe extends ue{constructor(){super(...arguments),this.bitLength=0,this.maxId_=0,this.set_=new Set}*[Symbol.iterator](){for(var e=1;e<=this.maxId;e++)yield[e,this.has(e)]}toArray(){for(var e=new Array(0),t=1;t<=this.maxId;t++)e.push([t,this.has(t)]);return e}values(){return this.set_.values()}get maxId(){return this.maxId_}has(e){return this.set_.has(e)}unset(e){Array.isArray(e)?e.forEach(e=>this.unset(e)):"object"==typeof e?this.unset(Object.keys(e).map(e=>Number(e))):(this.set_.delete(Number(e)),this.bitLength=0,e===this.maxId&&(this.maxId_=0,this.set_.forEach(e=>{this.maxId_=Math.max(this.maxId,e)})))}isIntMap(e){var t="object"==typeof e;return t=t&&Object.keys(e).every(t=>{var s=Number.isInteger(parseInt(t,10));return s=(s=s&&this.isValidNumber(e[t].id))&&void 0!==e[t].name})}isValidNumber(e){return parseInt(e,10)>0}isSet(e){var t=!1;return e instanceof Set&&(t=Array.from(e).every(this.isValidNumber)),t}set(e){if(Array.isArray(e))e.forEach(e=>this.set(e));else if(this.isSet(e))this.set(Array.from(e));else if(this.isIntMap(e))this.set(Object.keys(e).map(e=>Number(e)));else{if(!this.isValidNumber(e))throw new re("set()",e,"must be positive integer array, positive integer, Set, or IntMap");this.set_.add(e),this.maxId_=Math.max(this.maxId,e),this.bitLength=0}}empty(){this.set_=new Set}forEach(e){for(var t=1;t<=this.maxId;t++)e(this.has(t),t)}get size(){return this.set_.size}setAll(e){this.set(e)}}f=ae.cmpId,m=ae.cmpVersion,b=ae.consentLanguage,I=ae.consentScreen,y=ae.created,S=ae.isServiceSpecific,C=ae.lastUpdated,w=ae.policyVersion,A=ae.publisherCountryCode,_=ae.publisherLegitimateInterests,P=ae.publisherConsents,E=ae.purposeConsents,O=ae.purposeLegitimateInterests,L=ae.purposeOneTreatment,T=ae.specialFeatureOptins,k=ae.useNonStandardTexts,D=ae.vendorListVersion,U=ae.version;class ve{}ve[f]=12,ve[m]=12,ve[b]=12,ve[I]=6,ve[y]=36,ve[S]=1,ve[C]=36,ve[w]=6,ve[A]=12,ve[_]=24,ve[P]=24,ve[E]=24,ve[O]=24,ve[L]=1,ve[T]=12,ve[k]=1,ve[D]=12,ve[U]=6,ve.anyBoolean=1,ve.encodingType=1,ve.maxId=16,ve.numCustomPurposes=6,ve.numEntries=12,ve.numRestrictions=12,ve.purposeId=6,ve.restrictionType=2,ve.segmentType=3,ve.singleOrRange=1,ve.vendorId=16;class he{static encode(e,t){var s;if("string"==typeof e&&(e=parseInt(e,10)),(s=e.toString(2)).length>t||e<0)throw new se(e+" too large to encode into "+t);return s.length25||n<0||n>25)throw new se("invalid language code: "+e);if(t%2==1)throw new se("numBits must be even, "+t+" is not valid");return t/=2,he.encode(s,t)+he.encode(n,t)}static decode(e,t){if(t!==e.length||e.length%2)throw new te("invalid bit length for language");var s=e.length/2,n=he.decode(e.slice(0,s),s)+65,r=he.decode(e.slice(s),s)+65;return String.fromCharCode(n)+String.fromCharCode(r)}}class Ie{static encode(e){var t=he.encode(e.numRestrictions,ve.numRestrictions);if(!e.isEmpty()){var s=[...e.gvl.vendorIds],n=(e,t)=>{var n=s.indexOf(e);return s.indexOf(t)-n>1};e.getRestrictions().forEach(s=>{t+=he.encode(s.purposeId,ve.purposeId),t+=he.encode(s.restrictionType,ve.restrictionType);for(var r=e.getVendors(s),i=r.length,o=0,a=0,u="",l=0;lr+t);s.restrictPurposeToLegalBasis(a,o)}else s.restrictPurposeToLegalBasis(a,[r])},d=0;d{(i+=fe.encode(r),(t=e.maxId>u&&l{var t=1===e.length;s+=fe.encode(!t),s+=he.encode(e[0],ve.vendorId),t||(s+=he.encode(e[1],ve.vendorId))}),s}}function Se(){return{[ae.version]:he,[ae.created]:ge,[ae.lastUpdated]:ge,[ae.cmpId]:he,[ae.cmpVersion]:he,[ae.consentScreen]:he,[ae.consentLanguage]:be,[ae.vendorListVersion]:he,[ae.policyVersion]:he,[ae.isServiceSpecific]:fe,[ae.useNonStandardTexts]:fe,[ae.specialFeatureOptins]:me,[ae.purposeConsents]:me,[ae.purposeLegitimateInterests]:me,[ae.purposeOneTreatment]:fe,[ae.publisherCountryCode]:be,[ae.vendorConsents]:ye,[ae.vendorLegitimateInterests]:ye,[ae.publisherRestrictions]:Ie,segmentType:he,[ae.vendorsDisclosed]:ye,[ae.vendorsAllowed]:ye,[ae.publisherConsents]:me,[ae.publisherLegitimateInterests]:me,[ae.numCustomPurposes]:he,[ae.publisherCustomConsents]:me,[ae.publisherCustomLegitimateInterests]:me}}class Ce{constructor(e,t){if(this[1]=[g.CORE],this[2]=[g.CORE],2===e.version)if(e.isServiceSpecific)this[2].push(g.PUBLISHER_TC);else{var s=!(!t||!t.isForVendors);s&&!0!==e[ae.supportOOB]||this[2].push(g.VENDORS_DISCLOSED),s&&(e[ae.supportOOB]&&e[ae.vendorsAllowed].size>0&&this[2].push(g.VENDORS_ALLOWED),this[2].push(g.PUBLISHER_TC))}}}class we{static encode(e,t){var s;try{s=this.fieldSequence[String(e.version)][t]}catch(s){throw new se("Unable to encode version: "+e.version+", segment: "+t)}var n="";t!==g.CORE&&(n=he.encode(ce.KEY_TO_ID[t],ve.segmentType));var r=Se();return s.forEach(s=>{var i=e[s],o=r[s],a=ve[s];void 0===a&&this.isPublisherCustom(s)&&(a=Number(e[ae.numCustomPurposes]));try{n+=o.encode(i,a)}catch(e){throw new se("Error encoding "+t+"->"+s+": "+e.message)}}),ie.encode(n)}static decode(e,t,s){var n=ie.decode(e),r=0;s===g.CORE&&(t.version=he.decode(n.substr(r,ve[ae.version]),ve[ae.version])),s!==g.CORE&&(r+=ve.segmentType);var i=this.fieldSequence[String(t.version)][s],o=Se();return i.forEach(e=>{var s=o[e],i=ve[e];if(void 0===i&&this.isPublisherCustom(e)&&(i=Number(t[ae.numCustomPurposes])),0!==i){var a=n.substr(r,i);if(t[e]=s===ye?s.decode(a,t.version):s.decode(a,i),Number.isInteger(i))r+=i;else{if(!Number.isInteger(t[e].bitLength))throw new te(e);r+=t[e].bitLength}}}),t}static isPublisherCustom(e){return 0===e.indexOf("publisherCustom")}}we.fieldSequence=new class{constructor(){this[1]={[g.CORE]:[ae.version,ae.created,ae.lastUpdated,ae.cmpId,ae.cmpVersion,ae.consentScreen,ae.consentLanguage,ae.vendorListVersion,ae.purposeConsents,ae.vendorConsents]},this[2]={[g.CORE]:[ae.version,ae.created,ae.lastUpdated,ae.cmpId,ae.cmpVersion,ae.consentScreen,ae.consentLanguage,ae.vendorListVersion,ae.policyVersion,ae.isServiceSpecific,ae.useNonStandardTexts,ae.specialFeatureOptins,ae.purposeConsents,ae.purposeLegitimateInterests,ae.purposeOneTreatment,ae.publisherCountryCode,ae.vendorConsents,ae.vendorLegitimateInterests,ae.publisherRestrictions],[g.PUBLISHER_TC]:[ae.publisherConsents,ae.publisherLegitimateInterests,ae.numCustomPurposes,ae.publisherCustomConsents,ae.publisherCustomLegitimateInterests],[g.VENDORS_ALLOWED]:[ae.vendorsAllowed],[g.VENDORS_DISCLOSED]:[ae.vendorsDisclosed]}}};class Ae{static process(e,t){var s=e.gvl;if(!s)throw new se("Unable to encode TCModel without a GVL");if(!s.isReady)throw new se("Unable to encode TCModel tcModel.gvl.readyPromise is not resolved");(e=e.clone()).consentLanguage=s.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 n=e.version-1;if(!this.processor[n])throw new se("Invalid version: "+e.version);return this.processor[n](e,s)}}Ae.processor=[e=>e,(e,t)=>{e.publisherRestrictions.gvl=t,e.purposeLegitimateInterests.unset([1,3,4,5,6]);var s=new Map;return s.set("legIntPurposes",e.vendorLegitimateInterests),s.set("purposes",e.vendorConsents),s.forEach((s,n)=>{s.forEach((r,i)=>{if(r){var o=t.vendors[i];if(!o||o.deletedDate)s.unset(i);else if(0===o[n].length)if("legIntPurposes"===n&&0===o.purposes.length&&0===o.legIntPurposes.length&&o.specialPurposes.length>0)s.set(i);else if("legIntPurposes"===n&&o.purposes.length>0&&0===o.legIntPurposes.length&&o.specialPurposes.length>0)s.set(i);else if(e.isServiceSpecific)if(0===o.flexiblePurposes.length)s.unset(i);else{for(var a=e.publisherRestrictions.getRestrictions(i),u=!1,l=0,d=a.length;l{var o=new XMLHttpRequest;o.withCredentials=s,o.addEventListener("load",()=>{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){}r(e)}else i(new Error("HTTP Status: "+o.status+" response type: "+o.responseType))}),o.addEventListener("error",()=>{i(new Error("error"))}),o.addEventListener("abort",()=>{i(new Error("aborted"))}),null===t?o.open("GET",e,!0):o.open("POST",e,!0),o.responseType="json",o.timeout=n,o.ontimeout=()=>{i(new Error("Timeout "+n+"ms "+e))},o.send(t)})}static post(e,t,s,n){return void 0===s&&(s=!1),void 0===n&&(n=0),this.absCall(e,JSON.stringify(t),s,n)}static fetch(e,t,s){return void 0===t&&(t=!1),void 0===s&&(s=0),this.absCall(e,null,t,s)}}class Ve extends ue{static set baseUrl(e){if(/^https?:\/\/vendorlist\.consensu\.org\//.test(e))throw new ne("Invalid baseUrl! You may not pull directly from vendorlist.consensu.org and must provide your own cache");e.length>0&&"/"!==e[e.length-1]&&(e+="/"),this.baseUrl_=e}static get baseUrl(){return this.baseUrl_}constructor(e){super(),this.readyPromise=void 0,this.gvlSpecificationVersion=void 0,this.vendorListVersion=void 0,this.tcfPolicyVersion=void 0,this.lastUpdated=void 0,this.purposes=void 0,this.specialPurposes=void 0,this.features=void 0,this.specialFeatures=void 0,this.isReady_=!1,this.vendors_=void 0,this.vendorIds=void 0,this.fullVendorList=void 0,this.byPurposeVendorMap=void 0,this.bySpecialPurposeVendorMap=void 0,this.byFeatureVendorMap=void 0,this.bySpecialFeatureVendorMap=void 0,this.stacks=void 0,this.dataCategories=void 0,this.lang_=void 0,this.cacheLang_=void 0,this.isLatest=!1;var t=Ve.baseUrl;if(this.lang_=Ve.DEFAULT_LANGUAGE,this.cacheLang_=Ve.DEFAULT_LANGUAGE,this.isVendorList(e))this.populate(e),this.readyPromise=Promise.resolve();else{if(!t)throw new ne("must specify GVL.baseUrl before loading GVL json");if(e>0){var s=e;Ve.CACHE.has(s)?(this.populate(Ve.CACHE.get(s)),this.readyPromise=Promise.resolve()):(t+=Ve.versionedFilename.replace("[VERSION]",String(s)),this.readyPromise=this.fetchJson(t))}else Ve.CACHE.has(Ve.LATEST_CACHE_KEY)?(this.populate(Ve.CACHE.get(Ve.LATEST_CACHE_KEY)),this.readyPromise=Promise.resolve()):(this.isLatest=!0,this.readyPromise=this.fetchJson(t+Ve.latestFilename))}}static emptyLanguageCache(e){var t=!1;return null==e&&Ve.LANGUAGE_CACHE.size>0?(Ve.LANGUAGE_CACHE=new Map,t=!0):"string"==typeof e&&this.consentLanguages.has(e.toUpperCase())&&(Ve.LANGUAGE_CACHE.delete(e.toUpperCase()),t=!0),t}static emptyCache(e){var t=!1;return Number.isInteger(e)&&e>=0?(Ve.CACHE.delete(e),t=!0):void 0===e&&(Ve.CACHE=new Map,t=!0),t}cacheLanguage(){Ve.LANGUAGE_CACHE.has(this.cacheLang_)||Ve.LANGUAGE_CACHE.set(this.cacheLang_,{purposes:this.purposes,specialPurposes:this.specialPurposes,features:this.features,specialFeatures:this.specialFeatures,stacks:this.stacks,dataCategories:this.dataCategories})}fetchJson(e){var t=this;return(0,De.A)(function*(){try{t.populate(yield Ue.fetch(e))}catch(e){throw new ne(e.message)}})()}getJson(){return(0,ke.A)({gvlSpecificationVersion:this.gvlSpecificationVersion,vendorListVersion:this.vendorListVersion,tcfPolicyVersion:this.tcfPolicyVersion,lastUpdated:this.lastUpdated,purposes:this.clonePurposes(),specialPurposes:this.cloneSpecialPurposes(),features:this.cloneFeatures(),specialFeatures:this.cloneSpecialFeatures(),stacks:this.cloneStacks()},this.dataCategories?{dataCategories:this.cloneDataCategories()}:{},{vendors:this.cloneVendors()})}cloneSpecialFeatures(){var e={};for(var t of Object.keys(this.specialFeatures))e[t]=Ve.cloneFeature(this.specialFeatures[t]);return e}cloneFeatures(){var e={};for(var t of Object.keys(this.features))e[t]=Ve.cloneFeature(this.features[t]);return e}cloneStacks(){var e={};for(var t of Object.keys(this.stacks))e[t]=Ve.cloneStack(this.stacks[t]);return e}cloneDataCategories(){var e={};for(var t of Object.keys(this.dataCategories))e[t]=Ve.cloneDataCategory(this.dataCategories[t]);return e}cloneSpecialPurposes(){var e={};for(var t of Object.keys(this.specialPurposes))e[t]=Ve.clonePurpose(this.specialPurposes[t]);return e}clonePurposes(){var e={};for(var t of Object.keys(this.purposes))e[t]=Ve.clonePurpose(this.purposes[t]);return e}static clonePurpose(e){return(0,ke.A)({id:e.id,name:e.name,description:e.description},e.descriptionLegal?{descriptionLegal:e.descriptionLegal}:{},e.illustrations?{illustrations:Array.from(e.illustrations)}:{})}static cloneFeature(e){return(0,ke.A)({id:e.id,name:e.name,description:e.description},e.descriptionLegal?{descriptionLegal:e.descriptionLegal}:{},e.illustrations?{illustrations:Array.from(e.illustrations)}:{})}static cloneDataCategory(e){return{id:e.id,name:e.name,description:e.description}}static cloneStack(e){return{id:e.id,name:e.name,description:e.description,purposes:Array.from(e.purposes),specialFeatures:Array.from(e.specialFeatures)}}static cloneDataRetention(e){return(0,ke.A)({},"number"==typeof e.stdRetention?{stdRetention:e.stdRetention}:{},{purposes:(0,ke.A)({},e.purposes),specialPurposes:(0,ke.A)({},e.specialPurposes)})}static cloneVendorUrls(e){return e.map(e=>(0,ke.A)({langId:e.langId,privacy:e.privacy},e.legIntClaim?{legIntClaim:e.legIntClaim}:{}))}static cloneVendor(e){return(0,ke.A)({id:e.id,name:e.name,purposes:Array.from(e.purposes),legIntPurposes:Array.from(e.legIntPurposes),flexiblePurposes:Array.from(e.flexiblePurposes),specialPurposes:Array.from(e.specialPurposes),features:Array.from(e.features),specialFeatures:Array.from(e.specialFeatures)},e.overflow?{overflow:{httpGetLimit:e.overflow.httpGetLimit}}:{},"number"==typeof e.cookieMaxAgeSeconds||null===e.cookieMaxAgeSeconds?{cookieMaxAgeSeconds:e.cookieMaxAgeSeconds}:{},void 0!==e.usesCookies?{usesCookies:e.usesCookies}:{},e.policyUrl?{policyUrl:e.policyUrl}:{},void 0!==e.cookieRefresh?{cookieRefresh:e.cookieRefresh}:{},void 0!==e.usesNonCookieAccess?{usesNonCookieAccess:e.usesNonCookieAccess}:{},e.dataRetention?{dataRetention:this.cloneDataRetention(e.dataRetention)}:{},e.urls?{urls:this.cloneVendorUrls(e.urls)}:{},e.dataDeclaration?{dataDeclaration:Array.from(e.dataDeclaration)}:{},e.deviceStorageDisclosureUrl?{deviceStorageDisclosureUrl:e.deviceStorageDisclosureUrl}:{},e.deletedDate?{deletedDate:e.deletedDate}:{})}cloneVendors(){var e={};for(var t of Object.keys(this.fullVendorList))e[t]=Ve.cloneVendor(this.fullVendorList[t]);return e}changeLanguage(e){var t=this;return(0,De.A)(function*(){var s=e;try{s=Ve.consentLanguages.parseLanguage(e)}catch(e){throw new ne("Error during parsing the language: "+e.message)}var n=e.toUpperCase();if((s.toLowerCase()!==Ve.DEFAULT_LANGUAGE.toLowerCase()||Ve.LANGUAGE_CACHE.has(n))&&s!==t.lang_)if(t.lang_=s,Ve.LANGUAGE_CACHE.has(n)){var r=Ve.LANGUAGE_CACHE.get(n);for(var i in r)r.hasOwnProperty(i)&&(t[i]=r[i])}else{var o=Ve.baseUrl+Ve.languageFilename.replace("[LANG]",t.lang_.toLowerCase());try{yield t.fetchJson(o),t.cacheLang_=n,t.cacheLanguage()}catch(e){throw new ne("unable to load language: "+e.message)}}})()}get language(){return this.lang_}isVendorList(e){return void 0!==e&&void 0!==e.vendors}populate(e){this.purposes=e.purposes,this.specialPurposes=e.specialPurposes,this.features=e.features,this.specialFeatures=e.specialFeatures,this.stacks=e.stacks,this.dataCategories=e.dataCategories,this.isVendorList(e)&&(this.gvlSpecificationVersion=e.gvlSpecificationVersion,this.tcfPolicyVersion=e.tcfPolicyVersion,this.vendorListVersion=e.vendorListVersion,this.lastUpdated=e.lastUpdated,"string"==typeof this.lastUpdated&&(this.lastUpdated=new Date(this.lastUpdated)),this.vendors_=e.vendors,this.fullVendorList=e.vendors,this.mapVendors(),this.isReady_=!0,this.isLatest&&Ve.CACHE.set(Ve.LATEST_CACHE_KEY,this.getJson()),Ve.CACHE.has(this.vendorListVersion)||Ve.CACHE.set(this.vendorListVersion,this.getJson())),this.cacheLanguage()}mapVendors(e){this.byPurposeVendorMap={},this.bySpecialPurposeVendorMap={},this.byFeatureVendorMap={},this.bySpecialFeatureVendorMap={},Object.keys(this.purposes).forEach(e=>{this.byPurposeVendorMap[e]={legInt:new Set,consent:new Set,flexible:new Set}}),Object.keys(this.specialPurposes).forEach(e=>{this.bySpecialPurposeVendorMap[e]=new Set}),Object.keys(this.features).forEach(e=>{this.byFeatureVendorMap[e]=new Set}),Object.keys(this.specialFeatures).forEach(e=>{this.bySpecialFeatureVendorMap[e]=new Set}),Array.isArray(e)||(e=Object.keys(this.fullVendorList).map(e=>+e)),this.vendorIds=new Set(e),this.vendors_=e.reduce((e,t)=>{var s=this.vendors_[String(t)];return s&&void 0===s.deletedDate&&(s.purposes.forEach(e=>{this.byPurposeVendorMap[String(e)].consent.add(t)}),s.specialPurposes.forEach(e=>{this.bySpecialPurposeVendorMap[String(e)].add(t)}),s.legIntPurposes.forEach(e=>{this.byPurposeVendorMap[String(e)].legInt.add(t)}),s.flexiblePurposes&&s.flexiblePurposes.forEach(e=>{this.byPurposeVendorMap[String(e)].flexible.add(t)}),s.features.forEach(e=>{this.byFeatureVendorMap[String(e)].add(t)}),s.specialFeatures.forEach(e=>{this.bySpecialFeatureVendorMap[String(e)].add(t)}),e[t]=s),e},{})}getFilteredVendors(e,t,s,n){var r=e.charAt(0).toUpperCase()+e.slice(1),i={};return("purpose"===e&&s?this["by"+r+"VendorMap"][String(t)][s]:this["by"+(n?"Special":"")+r+"VendorMap"][String(t)]).forEach(e=>{i[String(e)]=this.vendors[String(e)]}),i}getVendorsWithConsentPurpose(e){return this.getFilteredVendors("purpose",e,"consent")}getVendorsWithLegIntPurpose(e){return this.getFilteredVendors("purpose",e,"legInt")}getVendorsWithFlexiblePurpose(e){return this.getFilteredVendors("purpose",e,"flexible")}getVendorsWithSpecialPurpose(e){return this.getFilteredVendors("purpose",e,void 0,!0)}getVendorsWithFeature(e){return this.getFilteredVendors("feature",e)}getVendorsWithSpecialFeature(e){return this.getFilteredVendors("feature",e,void 0,!0)}get vendors(){return this.vendors_}narrowVendorsTo(e){this.mapVendors(e)}get isReady(){return this.isReady_}clone(){var e=new Ve(this.getJson());return this.lang_!==Ve.DEFAULT_LANGUAGE&&e.changeLanguage(this.lang_),e}static isInstanceOf(e){return"object"==typeof e&&"function"==typeof e.narrowVendorsTo}}Ve.LANGUAGE_CACHE=new Map,Ve.CACHE=new Map,Ve.LATEST_CACHE_KEY=0,Ve.DEFAULT_LANGUAGE="EN",Ve.consentLanguages=new oe,Ve.baseUrl_=void 0,Ve.latestFilename="vendor-list.json",Ve.versionedFilename="archives/vendor-list-v[VERSION].json",Ve.languageFilename="purposes-[LANG].json";class Re extends ue{constructor(e){super(),this.isServiceSpecific_=!1,this.supportOOB_=!0,this.useNonStandardTexts_=!1,this.purposeOneTreatment_=!1,this.publisherCountryCode_="AA",this.version_=2,this.consentScreen_=0,this.policyVersion_=5,this.consentLanguage_="EN",this.cmpId_=0,this.cmpVersion_=0,this.vendorListVersion_=0,this.numCustomPurposes_=0,this.gvl_=void 0,this.created=void 0,this.lastUpdated=void 0,this.specialFeatureOptins=new pe,this.purposeConsents=new pe,this.purposeLegitimateInterests=new pe,this.publisherConsents=new pe,this.publisherLegitimateInterests=new pe,this.publisherCustomConsents=new pe,this.publisherCustomLegitimateInterests=new pe,this.customPurposes=void 0,this.vendorConsents=new pe,this.vendorLegitimateInterests=new pe,this.vendorsDisclosed=new pe,this.vendorsAllowed=new pe,this.publisherRestrictions=new de,e&&(this.gvl=e),this.updated()}set gvl(e){Ve.isInstanceOf(e)||(e=new Ve(e)),this.gvl_=e,this.publisherRestrictions.gvl=e}get gvl(){return this.gvl_}set cmpId(e){if(e=Number(e),!(Number.isInteger(e)&&e>1))throw new re("cmpId",e);this.cmpId_=e}get cmpId(){return this.cmpId_}set cmpVersion(e){if(e=Number(e),!(Number.isInteger(e)&&e>-1))throw new re("cmpVersion",e);this.cmpVersion_=e}get cmpVersion(){return this.cmpVersion_}set consentScreen(e){if(e=Number(e),!(Number.isInteger(e)&&e>-1))throw new re("consentScreen",e);this.consentScreen_=e}get consentScreen(){return this.consentScreen_}set consentLanguage(e){this.consentLanguage_=e}get consentLanguage(){return this.consentLanguage_}set publisherCountryCode(e){if(!/^([A-z]){2}$/.test(e))throw new re("publisherCountryCode",e);this.publisherCountryCode_=e.toUpperCase()}get publisherCountryCode(){return this.publisherCountryCode_}set vendorListVersion(e){if((e=Number(e)|0)<0)throw new re("vendorListVersion",e);this.vendorListVersion_=e}get vendorListVersion(){return this.gvl?this.gvl.vendorListVersion:this.vendorListVersion_}set policyVersion(e){if(this.policyVersion_=parseInt(e,10),this.policyVersion_<0)throw new re("policyVersion",e)}get policyVersion(){return this.gvl?this.gvl.tcfPolicyVersion:this.policyVersion_}set version(e){this.version_=parseInt(e,10)}get version(){return this.version_}set isServiceSpecific(e){this.isServiceSpecific_=e}get isServiceSpecific(){return this.isServiceSpecific_}set useNonStandardTexts(e){this.useNonStandardTexts_=e}get useNonStandardTexts(){return this.useNonStandardTexts_}set supportOOB(e){this.supportOOB_=e}get supportOOB(){return this.supportOOB_}set purposeOneTreatment(e){this.purposeOneTreatment_=e}get purposeOneTreatment(){return this.purposeOneTreatment_}setAllVendorConsents(){this.vendorConsents.set(this.gvl.vendors)}unsetAllVendorConsents(){this.vendorConsents.empty()}setAllVendorsDisclosed(){this.vendorsDisclosed.set(this.gvl.vendors)}unsetAllVendorsDisclosed(){this.vendorsDisclosed.empty()}setAllVendorsAllowed(){this.vendorsAllowed.set(this.gvl.vendors)}unsetAllVendorsAllowed(){this.vendorsAllowed.empty()}setAllVendorLegitimateInterests(){this.vendorLegitimateInterests.set(this.gvl.vendors)}unsetAllVendorLegitimateInterests(){this.vendorLegitimateInterests.empty()}setAllPurposeConsents(){this.purposeConsents.set(this.gvl.purposes)}unsetAllPurposeConsents(){this.purposeConsents.empty()}setAllPurposeLegitimateInterests(){this.purposeLegitimateInterests.set(this.gvl.purposes)}unsetAllPurposeLegitimateInterests(){this.purposeLegitimateInterests.empty()}setAllSpecialFeatureOptins(){this.specialFeatureOptins.set(this.gvl.specialFeatures)}unsetAllSpecialFeatureOptins(){this.specialFeatureOptins.empty()}setAll(){this.setAllVendorConsents(),this.setAllPurposeLegitimateInterests(),this.setAllSpecialFeatureOptins(),this.setAllPurposeConsents(),this.setAllVendorLegitimateInterests()}unsetAll(){this.unsetAllVendorConsents(),this.unsetAllPurposeLegitimateInterests(),this.unsetAllSpecialFeatureOptins(),this.unsetAllPurposeConsents(),this.unsetAllVendorLegitimateInterests()}get numCustomPurposes(){var e=this.numCustomPurposes_;if("object"==typeof this.customPurposes){var t=Object.keys(this.customPurposes).sort((e,t)=>Number(e)-Number(t));e=parseInt(t.pop(),10)}return e}set numCustomPurposes(e){if(this.numCustomPurposes_=parseInt(e,10),this.numCustomPurposes_<0)throw new re("numCustomPurposes",e)}updated(){var e=new Date,t=new Date(Date.UTC(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()));this.created=t,this.lastUpdated=t}}Re.consentLanguages=Ve.consentLanguages;class Ne{static encode(e,t){var s,n="";return e=Ae.process(e,t),(s=Array.isArray(null==t?void 0:t.segments)?t.segments:new Ce(e,t)[""+e.version]).forEach((t,r)=>{var i="";r{this.invokeCallback(e.getJson())})}},Be[Le]=class extends K{respond(){this.listenerId=Z.eventQueue.add({callback:this.callback,param:this.param,next:this.next}),super.respond()}},Be[Te]=class extends H{respond(){this.invokeCallback(Z.eventQueue.remove(this.param))}};class xe{static has(e){return"string"==typeof e&&(e=Number(e)),this.set_.has(e)}}xe.set_=new Set([0,2,void 0,null]);var Me="__tcfapi";class Fe{constructor(e){if(this.callQueue=void 0,this.customCommands=void 0,e){var t=l.ADD_EVENT_LISTENER;if(null!=e&&e[t])throw new Error("Built-In Custom Commmand for "+t+" not allowed: Use "+l.GET_TC_DATA+" instead");if(t=l.REMOVE_EVENT_LISTENER,null!=e&&e[t])throw new Error("Built-In Custom Commmand for "+t+" not allowed");null!=e&&e[l.GET_TC_DATA]&&(e[l.ADD_EVENT_LISTENER]=e[l.GET_TC_DATA]),this.customCommands=e}try{this.callQueue=window[Me]()||[]}catch(e){this.callQueue=[]}finally{window[Me]=this.apiCall.bind(this),this.purgeQueuedCalls()}}apiCall(e,t,s){for(var n=arguments.length,r=new Array(n>3?n-3:0),i=3;i{window[Me](...e)})}isCustomCommand(e){return this.customCommands&&"function"==typeof this.customCommands[e]}isBuiltInCommand(e){return void 0!==Be[e]}}class ze{constructor(e,t,s,n){void 0===s&&(s=!1),this.callResponder=void 0,this.isServiceSpecific=void 0,this.numUpdates=0,this.throwIfInvalidInt(e,"cmpId",2),this.throwIfInvalidInt(t,"cmpVersion",0),Z.cmpId=e,Z.cmpVersion=t,Z.tcfPolicyVersion=5,this.isServiceSpecific=!!s,this.callResponder=new Fe(n)}throwIfInvalidInt(e,t,s){if(!("number"==typeof e&&Number.isInteger(e)&&e>=s))throw new Error("Invalid "+t+": "+e)}update(e,t){if(void 0===t&&(t=!1),Z.disabled)throw new Error("CmpApi Disabled");Z.cmpStatus=d.LOADED,t?(Z.displayStatus=c.VISIBLE,Z.eventStatus=p.CMP_UI_SHOWN):void 0===Z.tcModel?(Z.displayStatus=c.DISABLED,Z.eventStatus=p.TC_LOADED):(Z.displayStatus=c.HIDDEN,Z.eventStatus=p.USER_ACTION_COMPLETE),Z.gdprApplies=null!==e,Z.gdprApplies?(""===e?(Z.tcModel=new Re,Z.tcModel.cmpId=Z.cmpId,Z.tcModel.cmpVersion=Z.cmpVersion):Z.tcModel=Ne.decode(e),Z.tcModel.isServiceSpecific=this.isServiceSpecific,Z.tcfPolicyVersion=Number(Z.tcModel.policyVersion),Z.tcString=e):Z.tcModel=null,0===this.numUpdates?this.callResponder.purgeQueuedCalls():Z.eventQueue.exec(),this.numUpdates++}disable(){Z.disabled=!0,Z.cmpStatus=d.ERROR}}var je=(e,t,s)=>{if(t&&t.gdprApplies&&t.eventStatus===p.TC_LOADED&&t.tcString===M()){if(null!==t.listenerId)return null;t.eventStatus=p.CMP_UI_SHOWN}var n=r;t&&"function"==typeof n&&(t.addtlConsent=n()),t&&W&&(t.enableAdvertiserConsentMode=!0),e(t,s)},Ge=e=>e.replace(/&/g,"&").replace(//g,">").replace(/'/g,"'"),We=e=>{if("object"==typeof e){var t=JSON.stringify(e);return JSON.parse(Ge(t))}return"string"==typeof e?Ge(e):e};function Je(e){return Array.isArray(e)?e.map(e=>We(e)):"string"==typeof e?We(e):e}function He(e,t,s,n){var r;void 0===n&&(n=void 0);var i=n=>function(e,t,s,n){if(n&&n.data){var r,i="string"==typeof n.data;try{r=i?JSON.parse(n.data):n.data}catch(e){return}if(r[e]){var o=r[e];s(o.command,Je(o.parameter),(e,s)=>{var r={[t]:{returnValue:e,success:s,callId:o.callId}};n.source&&"function"==typeof n.source.postMessage?n.source.postMessage(i?JSON.stringify(r):r,"*"):window.postMessage(i?JSON.stringify(r):r,"*")},2,!1)}}}(e,t,s,n);if(window.addEventListener?window.addEventListener("message",i,!1):null===(r=window.attachEvent)||void 0===r||r.call(window,"onmessage",i),window.DidomiSanitizing={sanitizeString:Je},Array.isArray(n)&&n.length>0)for(var o of n)s(o.command,Je(o.parameter),o.callback,o.version,!0)}var Ke,qe=(e,t,s,n,r)=>{if("function"==typeof s){var i=F(),o=J(),a=t,u=n;-1===s.toString().indexOf("postMessage")&&r&&1===z&&(a=n,u=t),u=(e=>"null"===e?null:e)(u),(null==i?void 0:i.enabledTCFAPIErrorLogging)?null==o||o.apiCall(e,u,(e=>function(){try{e(...arguments)}catch(e){console.error("Callback error at TCF API execution",e)}})(s),a):null==o||o.apiCall(e,u,s,a)}},Ze=(e,t)=>Ke?Ke.uiVisible===e&&Ke.encodedTCString===t||(Ke.uiVisible=e,Ke.encodedTCString=t,!1):(Ke={uiVisible:e,encodedTCString:t},!1),Ye=e=>{var t,s,r=a;if(!r||!n)return null;var i=null!==(s=null!==(t=n())&&void 0!==t?t:M())&&void 0!==s?s:null;if(Ze(e,i))return null;r.update(B()?i:null,e)},Qe=()=>{var e=F();if(void 0===J()&&(void 0===(t=e)&&(t=void 0),!1!==(null===(n=null===(s=null==t?void 0:t.vendors)||void 0===s?void 0:s.iab)||void 0===n?void 0:n.enabled)||!B())&&!function(e){var t,s;return void 0===e&&(e=void 0),null===(s=null===(t=null==e?void 0:e.vendors)||void 0===t?void 0:t.iab)||void 0===s?void 0:s.disableTCFAPI}(e)){var t,s,n,r=new ze(j,G,!0,{getTCData:je});if((e=>{a=e})(r),Ye(!1),(e=>{u=e})(r.callResponder),window.__tcfapi=(e,t,s,n)=>qe(e,n,s,t,!1),R){"function"==typeof o&&o()}He("__tcfapiCall","__tcfapiReturn",qe,window.__tcfapiBuffer)}},$e=(e,t)=>{var s,{cmpId:a,cmpVersion:u,isConsentRequired:l,isGDPRApplied:d,defaultConsentString:c,consentStringGetter:p,additionalConsentStringGetter:v,sdkEventListenersSetter:h,enableAdvertiserConsentMode:g}=null!=t?t:{};if((e=>{"boolean"==typeof e&&(R=e)})(l),(e=>{"boolean"==typeof e&&(N=e)})(d),(e=>{"string"==typeof e&&(x=e)})(c),(e=>{r=e})(v),(e=>{i=e})(e),(e=>{"number"==typeof e&&(z=e)})(null===(s=window.__tcfapi)||void 0===s?void 0:s.stubVersion),(e=>{o="function"==typeof e?e:()=>{}})(h),(e=>{"number"==typeof e&&(j=e)})(a),(e=>{"number"==typeof e&&(G=e)})(u),(e=>{W=e})(null!=g&&g),!p||"function"!=typeof p)throw Error("Didomi - consentStringGetter function must be provided in options for initIABTCFCmpAPI");(e=>{n=e})(p),Qe()}},1723:function(e,t,s){"use strict";s.d(t,{C:function(){return p}});var n=s(4576),r=s(152),i=s(6559),o=s(1062),a=s(9757),u=s(8939),l=s(6923),d=s(1843),c=s(6217),p=(0,n.EW)(()=>{var e,t,s,n,p,v,h,g,f,m=null==(e=r.U.value)||null==(t=e.vendors)?void 0:t.iab;if(!m)return[];var b,I,y=[];(Array.isArray(m)&&(y=m),m===Object(m)&&m.all)?y.push(...null==(b=o.A.value)||null==(I=b.vendors)?void 0:I.map(e=>e.id)):m.include&&Array.isArray(m.include)&&y.push(...m.include);m.exclude&&Array.isArray(m.exclude)&&(y=y.filter(e=>!m.exclude.includes(e)));var S=null==(s=m.include)?void 0:s.includes(a.le.google),C=null==(n=m.exclude)?void 0:n.includes(a.le.google),w=c.D.value.includes("google");return y=y.map(e=>{var t,s;return null==(t=i.o.value)||null==(s=t[e])?void 0:s.id}).filter(Boolean),!0===l.X.value&&"gdpr"===(null==(p=d.r.value)?void 0:p.name)&&(!0===(null==(v=u.b.value)?void 0:v.removeDeletedIABVendorsForAllClients)||null!=(h=u.b.value)&&null!=(g=h.removeDeletedIABVendorsForAPIKeys)&&g.includes(null==(f=r.U.value)?void 0:f.apiKey))&&(y=y.filter(e=>{var t,s;return!(null!=(t=i.o.value)&&null!=(s=t[e])&&s.tmpDeletedDate)||e===a.le.google})),(m.all||S||w)&&!C&&y.push("google"),y})},1843:function(e,t,s){"use strict";s.d(t,{r:function(){return r}});var n=s(259),r=(0,s(4576).EW)(()=>{var e;return null==(e=n.bK.value)?void 0:e.regulation})},1859:function(e,t,s){"use strict";s.d(t,{H:function(){return u}});var n=s(4576),r=s(7488),i=s(2013),o=s(6024),a=s(9838),u=(0,n.EW)(()=>{var e,t=navigator.languages&&navigator.languages[0]||navigator.language||navigator.userLanguage,s=(0,o.cO)(t);return null!=(e=r.h.value)&&e.includes(s)?s:i.e.value});(0,n.QZ)(()=>{var e=document.getElementById("didomi-host");e&&(e.getAttribute("lang")!==u.value&&(e.setAttribute("lang",u.value),e.setAttribute("data-lang-dir",(0,a.i)(u.value))))})},1888:function(e,t,s){"use strict";s.d(t,{E:function(){return o}});var n=s(9049),r=s(4576),i=s(2073),o=(0,r.EW)(()=>{var e,t,s;if(null==(e=i.R.value)||!e.length||null==(t=n.l.value)||!t.length)return[];return null==(s=n.l.value)?void 0:s.filter(e=>{var{id:t}=e;return i.R.value.includes(t)})})},1981:function(e,t,s){"use strict";s.d(t,{K:function(){return r}});var n=s(2920),r=(0,s(4576).EW)(()=>{var e,t,s;return null!=(e=n.$.value)&&e.length?null==(t=n.$.value)||null==(s=t.filter(e=>{var t;return!(null!=e&&null!=(t=e.namespaces)&&t.didomi)}))?void 0:s.map(e=>e.id):[]})},1990:function(e,t,s){"use strict";s.d(t,{S4:function(){return r},r5:function(){return n}});var n=(0,s(4576).vP)({didomiToken:null,iabConsentString:null}),r=e=>{var{didomiToken:t,iabConsentString:s}=e;n.value={didomiToken:t,iabConsentString:s}}},2013:function(e,t,s){"use strict";s.d(t,{e:function(){return a}});var n=s(4576),r=s(7488),i=s(6024),o=s(259),a=(0,n.EW)(()=>{var e,t,s,n=null==(e=o.bK.value)?void 0:e.languages;if(null!=n&&n.default){var a;if(null!=(a=r.h.value)&&a.includes(n.default))return n.default;var u=(0,i.yS)(n.default);if(u)return u;console.error("Didomi - Default language '"+n.default+"' must be in the list of enabled languages")}return null==(t=r.h.value)||!t.length||null!=(s=r.h.value)&&s.includes(i.Nm)?i.Nm:r.h.value[0]})},2026:function(e,t,s){"use strict";s.d(t,{o4:function(){return z}});var n,r="3.7.5",i=r,o="function"==typeof atob,a="function"==typeof btoa,u="function"==typeof Buffer,l="function"==typeof TextDecoder?new TextDecoder:void 0,d="function"==typeof TextEncoder?new TextEncoder:void 0,c=Array.prototype.slice.call("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="),p=(n={},c.forEach((e,t)=>n[e]=t),n),v=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,h=String.fromCharCode.bind(String),g="function"==typeof Uint8Array.from?Uint8Array.from.bind(Uint8Array):e=>new Uint8Array(Array.prototype.slice.call(e,0)),f=e=>e.replace(/=/g,"").replace(/[+\/]/g,e=>"+"==e?"-":"_"),m=e=>e.replace(/[^A-Za-z0-9\+\/]/g,""),b=e=>{for(var t,s,n,r,i="",o=e.length%3,a=0;a255||(n=e.charCodeAt(a++))>255||(r=e.charCodeAt(a++))>255)throw new TypeError("invalid character found");i+=c[(t=s<<16|n<<8|r)>>18&63]+c[t>>12&63]+c[t>>6&63]+c[63&t]}return o?i.slice(0,o-3)+"===".substring(o):i},I=a?e=>btoa(e):u?e=>Buffer.from(e,"binary").toString("base64"):b,y=u?e=>Buffer.from(e).toString("base64"):e=>{for(var t=[],s=0,n=e.length;s{if(e.length<2)return(t=e.charCodeAt(0))<128?e:t<2048?h(192|t>>>6)+h(128|63&t):h(224|t>>>12&15)+h(128|t>>>6&63)+h(128|63&t);var t=65536+1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320);return h(240|t>>>18&7)+h(128|t>>>12&63)+h(128|t>>>6&63)+h(128|63&t)},w=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,A=e=>e.replace(w,C),_=u?e=>Buffer.from(e,"utf8").toString("base64"):d?e=>y(d.encode(e)):e=>I(A(e)),P=function(e,t){return void 0===t&&(t=!1),t?f(_(e)):_(e)},E=e=>P(e,!0),O=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,L=e=>{switch(e.length){case 4:var t=((7&e.charCodeAt(0))<<18|(63&e.charCodeAt(1))<<12|(63&e.charCodeAt(2))<<6|63&e.charCodeAt(3))-65536;return h((t>>>10)+55296)+h(56320+(1023&t));case 3:return h((15&e.charCodeAt(0))<<12|(63&e.charCodeAt(1))<<6|63&e.charCodeAt(2));default:return h((31&e.charCodeAt(0))<<6|63&e.charCodeAt(1))}},T=e=>e.replace(O,L),k=e=>{if(e=e.replace(/\s+/g,""),!v.test(e))throw new TypeError("malformed base64.");e+="==".slice(2-(3&e.length));for(var t,s,n,r="",i=0;i>16&255):64===n?h(t>>16&255,t>>8&255):h(t>>16&255,t>>8&255,255&t);return r},D=o?e=>atob(m(e)):u?e=>Buffer.from(e,"base64").toString("binary"):k,U=u?e=>g(Buffer.from(e,"base64")):e=>g(D(e).split("").map(e=>e.charCodeAt(0))),V=e=>U(N(e)),R=u?e=>Buffer.from(e,"base64").toString("utf8"):l?e=>l.decode(U(e)):e=>T(D(e)),N=e=>m(e.replace(/[-_]/g,e=>"-"==e?"+":"/")),B=e=>R(N(e)),x=e=>({value:e,enumerable:!1,writable:!0,configurable:!0}),M=function(){var e=(e,t)=>Object.defineProperty(String.prototype,e,x(t));e("fromBase64",function(){return B(this)}),e("toBase64",function(e){return P(this,e)}),e("toBase64URI",function(){return P(this,!0)}),e("toBase64URL",function(){return P(this,!0)}),e("toUint8Array",function(){return V(this)})},F=function(){var e=(e,t)=>Object.defineProperty(Uint8Array.prototype,e,x(t));e("toBase64",function(e){return S(this,e)}),e("toBase64URI",function(){return S(this,!0)}),e("toBase64URL",function(){return S(this,!0)})},z={version:r,VERSION:i,atob:D,atobPolyfill:k,btoa:I,btoaPolyfill:b,fromBase64:B,toBase64:P,encode:P,encodeURI:E,encodeURL:E,utob:A,btou:T,decode:B,isValid:e=>{if("string"!=typeof e)return!1;var t=e.replace(/\s+/g,"").replace(/={0,2}$/,"");return!/[^\s0-9a-zA-Z\+/]/.test(t)||!/[^\s0-9a-zA-Z\-_]/.test(t)},fromUint8Array:S,toUint8Array:V,extendString:M,extendUint8Array:F,extendBuiltins:()=>{M(),F()}}},2073:function(e,t,s){"use strict";s.d(t,{R:function(){return a}});var n=s(4576),r=s(1723),i=s(6217),o=s(1981),a=(0,n.EW)(()=>[...new Set([...r.C.value||[],...i.D.value||[],...o.K.value||[]])])},2140:function(e,t,s){"use strict";s.d(t,{J_:function(){return b},MM:function(){return f},NT:function(){return g},Rf:function(){return v},_k:function(){return h},yN:function(){return m}});var n=s(7127),r=s(8311),i=s(13),o={path:"/",expiry:365},a={cookies:!0,localStorage:!0},u={organizationUserId:"o",organizationUserIdAuthAlgorithm:"a",organizationUserIdAuthDigest:"d",organizationUserIdAuthSalt:"s",organizationUserIdAuthSid:"si",organizationUserIdExp:null,organizationUserIdIv:"i"},l=Object.keys(u).filter(e=>!!u[e]).reduce((e,t)=>(e[u[t]]=t,e),{}),d={"hash-md5":1,"hash-sha1":2,"hash-sha256":3,"hmac-sha1":4,"hmac-sha256":5,"aes-256-cbc":6},c=Object.keys(d).reduce((e,t)=>(e[d[t]]=t,e),{}),p=["hash-md5","hash-sha1","hash-sha256","hmac-sha1","hmac-sha256"];function v(e,t){var s,i;return void 0===t&&(t=a),t.cookies&&(s=(0,n.Ri)(e)),t.localStorage&&(i=(0,r._S)(e)),s||i}function h(e,t,s,o){var u,l,d,c;return void 0===s&&(s=a),s.cookies&&((u=(0,n.Ri)(e))||(u=(0,n.Ri)(o))&&(0,i.B)(!0),l=(0,n.Ri)(t),u&&l)?{didomiToken:u,iabConsentString:l}:s.localStorage&&((d=(0,r._S)(e))||(d=(0,r._S)(o))&&(0,i.B)(!0),c=(0,r._S)(t),d&&c)?{didomiToken:d,iabConsentString:c}:{didomiToken:u||d,iabConsentString:l||c}}function g(e,t,s,i,u,l,d,c){if(void 0===s&&(s=null),void 0===i&&(i=a),void 0===u&&(u=!1),void 0===l&&(l=!1),i.cookies){var p=null;l&&(u?(p="None",c=!0):p="Lax"),(0,n.TV)(e,t,void 0===d?o.expiry:d,s,p,c,o.path)}i.localStorage&&(0,r.AP)(e,t)}function f(e,t){void 0===t&&(t=null),(0,n.Yj)(e,t),(0,r.bJ)(e)}function m(e){var t={},s=e.organizationUserIdAuthAlgorithm;return!s||function(e){return-1!==p.indexOf(e)}(s)?t.organizationUserId=e.organizationUserId:t=e,Object.keys(t).reduce((e,s)=>(u[s]&&t[s]&&(e[u[s]]="organizationUserIdAuthAlgorithm"===s&&d[t[s]]||t[s]),e),{})}function b(e){return Object.keys(e).reduce((t,s)=>(l[s]&&e[s]&&(t[l[s]]="a"===s&&c[e[s]]||e[s]),t),{})}},2177:function(e,t,s){"use strict";s.d(t,{A:function(){return i},R:function(){return o}});var n=s(4576),r={add_payment_info:!0,add_shipping_info:!0,add_to_cart:!0,add_to_wishlist:!0,begin_checkout:!0,conversion:!0,close_convert_lead:!0,close_unconvert_lead:!0,disqualify_lead:!0,earn_virtual_currency:!0,generate_lead:!0,join_group:!0,level_end:!0,level_start:!0,level_up:!0,login:!0,post_score:!0,purchase:!0,qualify_lead:!0,refund:!0,remove_from_cart:!0,search:!0,select_content:!0,select_item:!0,select_promotion:!0,share:!0,sign_up:!0,spend_virtual_currency:!0,tutorial_begin:!0,tutorial_complete:!0,unlock_achievement:!0,view_cart:!0,view_item:!0,view_item_list:!0,view_promotion:!0,working_lead:!0},i=(0,n.vP)(void 0),o=(e,t)=>{try{i.value=((e,t)=>{if(e&&Array.isArray(e)&&e.length){var s=e.filter(e=>e&&e[1]!==t);if(s.some(e=>e&&"gtm.load"===e.event))return console.error("Didomi - Google Consent Mode: gtm.load event is already present in the data layer when setting default values. Ensure GTM and other Google tags are loaded after Didomi is ready for the Google Consent Mode integration to work correctly."),"load";var n=s.filter(e=>e&&(r[e.event]||r[e[1]])).map(e=>e&&(e.event||e[1]));if(n.length>0)return console.error("Didomi - Google Consent Mode: Google Ads or Google Analytics events ("+n.join(", ")+") are already present in the data layer before setting default values. Ensure GTM and other Google tags are loaded after Didomi is ready for the Google Consent Mode integration to work correctly."),"gtag_events"}})(e,t)}catch(e){}}},2198:function(e,t,s){"use strict";s.d(t,{t:function(){return i}});var n=s(9757),r=Object.keys(n.gS),i=[{id:"*",name:"Any",purposeIds:["cookies"],legIntPurposeIds:[],didomiId:"*"},{id:"amazon",name:"Amazon",purposeIds:r,legIntPurposeIds:[],policyUrl:"https://aps.amazon.com/aps/privacy-policy/index.html",namespace:"didomi",didomiId:"amazon"},{id:"facebook",name:"Facebook",purposeIds:[n.eL.Cookies,n.eL.CreateAdsProfile,n.eL.SelectPersonalizedAds],legIntPurposeIds:[n.eL.SelectBasicAds,n.eL.MeasureAdPerformance,n.eL.MarketResearch,n.eL.ImproveProducts],policyUrl:"https://www.facebook.com/about/privacy/update",namespace:"didomi",namespaces:{google:{current:!0,id:89}},didomiId:"facebook"},{id:"twitter",name:"Twitter",purposeIds:["cookies"],legIntPurposeIds:[],policyUrl:"https://twitter.com/privacy",namespace:"didomi",didomiId:"twitter"},{id:"whatsapp",name:"Whatsapp",purposeIds:["cookies"],legIntPurposeIds:[],policyUrl:"https://www.whatsapp.com/legal/#privacy-policy",namespace:"didomi",didomiId:"whatsapp"},{id:"google-adsense",name:"Google Adsense",purposeIds:r,legIntPurposeIds:[],policyUrl:"https://policies.google.com/technologies/partner-sites",namespace:"didomi",didomiId:"google-adsense"},{id:"google-adx",name:"Google Adx",purposeIds:r,legIntPurposeIds:[],policyUrl:"https://policies.google.com/technologies/partner-sites",namespace:"didomi",didomiId:"google-adx"},{id:"google-dfp",name:"Google DFP",purposeIds:r,legIntPurposeIds:[],policyUrl:"https://policies.google.com/technologies/partner-sites",namespace:"didomi",didomiId:"google-dfp"},{id:"addthis",name:"AddThis",purposeIds:r,legIntPurposeIds:[],policyUrl:"http://www.addthis.com/privacy",namespace:"didomi",didomiId:"addthis"},{id:"salesforce",name:"Salesforce",purposeIds:r,legIntPurposeIds:[],policyUrl:"https://www.salesforce.com/company/privacy/",namespace:"didomi",didomiId:"salesforce"}]},2321:function(e,t,s){"use strict";s.d(t,{G:function(){return d}});var n=s(4576),r=s(259),i=s(2477),o=s(378),a=s(3187),u=s(8517),l={authToken:null,organizationId:null,bots:{consentRequired:!0,types:["crawlers","performance"],extraUserAgents:[]},externalConsent:{enabled:!1,value:null},ignoreConsentBefore:null,synchronizedUsers:[],dcsUser:null},d=(0,n.EW)(()=>{var e,t,s,n=(0,o.Go)(null==(e=r.bK.value)?void 0:e.user),u=null==(t=r.bK.value)?void 0:t.synchronizedUsers;(0,o.Im)(n)&&(n=l),u&&Array.isArray(u)&&u.length?n.synchronizedUsers=u:n.synchronizedUsers=l.synchronizedUsers;var d=n.dcsUser||(null==(s=r.bK.value)?void 0:s.dcsUser);n.dcsUser="object"!=typeof d?l.dcsUser:d;var{authToken:c,organizationUserIdExp:p,ignoreConsentBefore:v}=n;if(c){var h=(0,a.K9)(c);h&&(n.organizationId=h.organization_id,n.organizationUserId=h.sub)}return null!==n.organizationUserId&&""!==n.organizationUserId||(delete n.organizationUserId,console.error('Didomi - Authorization Parameters configuration: Invalid Organization User Id "'+n.organizationUserId+'". The value will be ignored')),p&&!(0,o.Et)(p)&&(delete n.organizationUserIdExp,console.error('Didomi - Authorization Parameters configuration: Invalid Organization User Digest Expired timestamp "'+p+'". The value will be ignored')),v&&(n.ignoreConsentBefore=(0,i.u)(v)||null),(0,o.or)(l,n)});(0,n.QZ)(()=>{d.value.id&&d.value.id!==u.J.value&&(0,u.C)(d.value.id)})},2477:function(e,t,s){"use strict";s.d(t,{u:function(){return r},v:function(){return i}});var n=new RegExp("([0-9]{4})(-([0-9]{2})(-([0-9]{2})(T([0-9]{2}):([0-9]{2})(:([0-9]{2})(\\.([0-9]+))?)?(Z|(([-+])([0-9]{2}):([0-9]{2})))?)?)?)?"),r=e=>{if("string"!=typeof e)return null;var t=e.match(n);if(null===t)return null;var s=0,r=new Date(parseInt(t[1],10),0,1);t[3]&&r.setMonth(parseInt(t[3],10)-1),t[5]&&r.setDate(parseInt(t[5],10)),t[7]&&r.setHours(parseInt(t[7],10)),t[8]&&r.setMinutes(parseInt(t[8],10)),t[10]&&r.setSeconds(parseInt(t[10],10)),t[12]&&r.setMilliseconds(1e3*parseFloat("0."+t[12])),t[14]&&(s=60*parseInt(t[16],10)+parseInt(t[17],10),s*="-"===t[15]?1:-1),s-=r.getTimezoneOffset();var i=r.getTime()+60*s*1e3;return new Date(i)},i=function(e,t){void 0===t&&(t=13);var s=r(e);if(!s)return!0;var n=(new Date).getTime()-s.getTime();return n>0&&n>=26298e5*t}},2527:function(e,t,s){"use strict";s.r(t),s.d(t,{default:function(){return i}});var n=s(8168),r=s(9621);class i{constructor(){this.utag=new r.Wrapper("utag")}update(e){var{type:t="didomi-consent-changed",customVariables:s}=e;this.utag.call("link",(0,n.A)({tealium_event:t},s))}}},2639:function(e,t,s){"use strict";s.d(t,{v:function(){return l}});var n=s(8168),r=s(4576),i=s(378),o=s(259),a={enable:!0,defaultChoice:void 0,enableAllButtons:!1,showWhenConsentIsMissing:!1,canCloseWhenConsentIsMissing:!0,view:"preferences",preferencesView:"purposes",information:{enable:!1,content:{text:{}}},categories:[],denyAppliesToLI:!0,controlType:void 0,combineLIAndConsent:!1,content:{instructions:void 0,activeElements:["title","crossButton","viewAllPartners","save"]},vendorsListModal:{isOpen:!1,title:null,vendors:[]}},u=e=>{if(e.purposeId||e.id){if(/^[A-Za-z0-9-_]+$/.test(e.id)){if(e.children){var t=[];for(var s of e.children){var n=u(s);n&&t.push(n)}e.children=t}return e}return console.error('Didomi - The category ID "'+e.id+'" is not valid. Ignoring it.'),null}return console.error("Didomi - The category/purpose ID is undefined. Ignoring it."),null},l=(0,r.EW)(()=>{var e,t,s=(0,i.or)(a,(null==(e=o.bK.value)?void 0:e.preferences)||{});s.showWhenConsentIsMissing=!(null==s||!s.showWhenConsentIsMissing),!0===(null==s?void 0:s.information.enable)&&(s.view="information"),s.information=(0,n.A)({},s.information,{enable:!(null==s||null==(t=s.information)||!t.enable)});var r=[];if(null!=s&&s.categories)for(var l of s.categories){var d=u(l);d&&r.push(d)}return s.categories=r,s})},2714:function(e,t,s){"use strict";s.d(t,{K:function(){return r},z:function(){return n}});var n=(0,s(4576).vP)(""),r=e=>{n.value=e}},2846:function(e,t,s){"use strict";s.d(t,{a:function(){return r},k:function(){return n}});var n=!1,r=()=>{n=!0}},2920:function(e,t,s){"use strict";s.d(t,{$:function(){return o}});var n=s(8168),r=s(152),i=s(3412),o=(0,s(4576).EW)(()=>{var e,t,s=e=>{var t;return!(null==(t=i.m.value)||!t[e])},o=null==(e=r.U.value)||null==(t=e.vendors)?void 0:t.custom,a=[];if(o&&Array.isArray(o))for(var u of o){var l=(u.purposeIds||[]).filter(s),d=(u.legIntPurposeIds||[]).filter(s);(l.length>0||d.length>0)&&a.push((0,n.A)({},u,{purposeIds:l,legIntPurposeIds:d,id:"c:"+u.id,namespace:"custom",didomiId:""+u.id}))}return a})},2985:function(e,t,s){"use strict";s.d(t,{x:function(){return o}});var n=s(8557),r=s(259),i=s(1843),o=(0,s(4576).EW)(()=>{var e,t,s=null==(e=i.r.value)?void 0:e.name;if(null!=(t=n.O.value)&&t.isDidomiConsentStringEncodingEnabled){var o,a,u=null==(o=r.bK.value)||null==(a=o.cookies)?void 0:a.didomiConsentStringCookieName;return"string"==typeof u&&u.length>0?u:"didomi_dcs"}if(s&&"gdpr"!==s&&"ccpa"!==s){var l,d,c=null==(l=i.r.value)||null==(d=l.cookies)?void 0:d.didomiTokenCookieName;return"string"==typeof c&&c.length>0?c:"didomi_token_"+s}var p,v,h=null==(p=r.bK.value)||null==(v=p.cookies)?void 0:v.didomiTokenCookieName;return"string"==typeof h&&h.length>0?h:"didomi_token"})},3029:function(e,t,s){"use strict";s.d(t,{L:function(){return D}});var n=s(4576),r=s(2073),i=s(5067),o=s(1843),a=s(8168),u=s(8200),l=s(2714),d=s(4746),c=s(10),p=s(305),v=s(7732),h=(e,t,s)=>{var n,r,i,o=(0,a.A)({user_id:null==(n=u.I.value)?void 0:n.user_id,created:null==(r=u.I.value)?void 0:r.created,updated:null==(i=u.I.value)?void 0:i.updated},l.z.value&&{gpp_string:l.z.value},{vendors:(0,d.Dx)(t,c.C.value),purposes:(0,d.Dx)(s),regulation:e}),h={none:{consent_string:p.M.value,addtl_consent:v.J.value},gdpr:{consent_string:p.M.value,addtl_consent:v.J.value},mixed:{}};return(0,a.A)({},o,h[e])},g=s(7447),f=s(4956),m=s(7396),b=s(6738),I=s(8074),y=(e,t,s)=>{e[t]?e[t].enabled=e[t].enabled&&s:e[t]={id:t,enabled:s}},S=s(8975),C=()=>{var e=[],t=[],s=[],n={},r=m.T.value,i=I.B.value;for(var o of f.h.value)o&&o.purposeIds&&0!==o.purposeIds.length&&((0,b.Z)(o.purposeIds,r)?(e.push(o.id),y(n,o.didomiId,!0)):(0,b.Z)(o.purposeIds,i)||(t.push(o.id),y(n,o.didomiId,!1))),o&&o.legIntPurposeIds&&0!==o.legIntPurposeIds.length&&!(0,b.Z)(o.legIntPurposeIds,i)&&(S.B.value.optout.default&&s.push(o.id),y(n,o.didomiId,S.B.value.optout.default));return{vendors:{enabled:e,disabled:t},vendors_li:{enabled:s,disabled:[]},globalUserStatus:n}},w=()=>{var e={};for(var t of i.t.value.purposeIds)m.T.value.includes(t)?y(e,t,S.B.value.essential.default):i.t.value.purposeIdsBasedOnConsent.includes(t)?y(e,t,S.B.value.optin.default):y(e,t,S.B.value.optout.default);return e},A=(0,n.EW)(()=>{var e=i.t.value.purposeIds,t=i.t.value.purposeIdsBasedOnLI,s=i.t.value.purposeIdsBasedOnConsent,n=m.T.value,r=g.a.value.byLegalBasis.consent.purposes.enabled,o=g.a.value.byLegalBasis.li.purposes.enabled,a=[];for(var u of e){var l=!0;t.includes(u)&&(l=l&&o.includes(u)),s.includes(u)&&(l=l&&r.includes(u)),n.includes(u)&&(l=!0),l&&a.push(u)}var d=e.filter(e=>!a.includes(e));return{enabledPurposeIds:r,enabledLIPurposeIds:o,currentUserStatusEnabledPurposeIds:a,currentUserStatusDisabledPurposeIds:d}}),_=s(6149),P=s(378),E=s(6559),O=e=>{var t,{vendorId:s,enabledVendorIds:n,enabledPurposeIds:r,type:i}=e;if(!_.H$.value.firstPartyOperatorIds.includes(String(s))&&!n.includes(s))return!1;var o=null==(t=E.o.value)?void 0:t[s];if(o){var a="li"===i?o.legIntPurposeIds:o.purposeIds;return(0,b.Z)((0,P.gi)(a),[...r,...m.T.value])}return!0},L=(0,n.EW)(()=>{var e,t,s=[],n=r.R.value,i=_.H$.value.operatorsByProcessingRule.operatorIds.optout,o=_.H$.value.operatorsByProcessingRule.operatorIds.optin,a=_.H$.value.operatorsByProcessingRule.operatorIds.essential,u=S.B.value.optin.collect.operators.thirdPartyOperators.enable,l=S.B.value.optout.collect.operators.thirdPartyOperators.enable,d=null==(e=S.B.value.optout.collect.operators.thirdPartyOperators.as)?void 0:e.includes("optin"),c=null==(t=S.B.value.optin.collect.operators.thirdPartyOperators.as)?void 0:t.includes("optout"),p=u?g.a.value.byLegalBasis.consent.vendors.enabled:l&&d?g.a.value.byLegalBasis.li.vendors.enabled:r.R.value,v=l?g.a.value.byLegalBasis.li.vendors.enabled:u&&c?g.a.value.byLegalBasis.consent.vendors.enabled:r.R.value,{enabledPurposeIds:h,enabledLIPurposeIds:f}=A.value;for(var m of n){var b=!0;i.includes(m)&&(b=O({vendorId:m,enabledVendorIds:v,enabledPurposeIds:f,type:"li"})),o.includes(m)&&(b=b&&O({vendorId:m,enabledVendorIds:p,enabledPurposeIds:h,type:"consent"})),a.includes(m)&&b?s.push(m):b&&s.push(m)}var I=n.filter(e=>!s.includes(e));return{currentUserStatusEnabledVendorIds:s,currentUserStatusDisabledVendorIds:I}}),T=s(4640),k=s(2321),D=(0,n.EW)(()=>{var e,t=null==(e=o.r.value)?void 0:e.name;return"none"===t?h("none",{enabled:r.R.value||[],disabled:[]},{enabled:i.t.value.purposeIds,disabled:[]}):k.G.value.bots&&!1===k.G.value.bots.consentRequired&&T.w.value?h(t,{enabled:r.R.value||[],disabled:[]},{enabled:i.t.value.purposeIds,disabled:[]}):g.a.value.hasMadeAnyChoice?h(t,{enabled:L.value.currentUserStatusEnabledVendorIds,disabled:L.value.currentUserStatusDisabledVendorIds},{enabled:A.value.currentUserStatusEnabledPurposeIds,disabled:A.value.currentUserStatusDisabledPurposeIds}):(e=>{var t,s,n;return(0,a.A)({vendors:C().globalUserStatus,purposes:w(),regulation:e,user_id:null==(t=u.I.value)?void 0:t.user_id,created:null==(s=u.I.value)?void 0:s.created,updated:null==(n=u.I.value)?void 0:n.updated},"gdpr"===e?{consent_string:p.M.value,addtl_consent:v.J.value}:{},l.z.value?{gpp_string:l.z.value}:{})})(t)})},3187:function(e,t,s){"use strict";s.d(t,{Hm:function(){return p},K9:function(){return c},RE:function(){return d},RT:function(){return v},h2:function(){return h},qQ:function(){return u},td:function(){return l}});var n=s(378),r=s(2477),i=s(2026),o=s(13);function a(e,t){return"object"==typeof e&&(e[t]||(e[t]={}),e[t].disabled||(e[t].disabled=[]),e[t].enabled||(e[t].enabled=[])),e}function u(e,t){try{var s;return a(s=t&&"function"==typeof t&&!o.I.value?t(e):JSON.parse(i.o4.atob(e)),"purposes"),a(s,"purposes_li"),a(s,"vendors"),a(s,"vendors_li"),s}catch(e){return null}}function l(e,t){if(e[t]){var s=Array.isArray(e[t].enabled)&&e[t].enabled.length,n=Array.isArray(e[t].disabled)&&e[t].disabled.length;s||n?s?n||delete e[t].disabled:delete e[t].enabled:delete e[t]}return e}function d(e,t,s){if(void 0===t&&(t=[]),!e||"object"!=typeof e)return null;var r=(0,n.Go)(e),o=(0,n.Jt)(r,"vendors.enabled"),a=(0,n.Jt)(r,"vendors.disabled"),u=(0,n.Jt)(r,"vendors_li.enabled"),d=(0,n.Jt)(r,"vendors_li.disabled"),c=e=>e&&"number"!=typeof e;if(Array.isArray(o)&&(r.vendors.enabled=o.filter(c)),Array.isArray(u)&&(r.vendors_li.enabled=u.filter(c)),Array.isArray(a)&&(r.vendors.disabled=a.filter(c)),Array.isArray(d)&&(r.vendors_li.disabled=d.filter(c)),t.length){var p=(0,n.Jt)(e,"purposes.enabled"),v=(0,n.Jt)(e,"purposes.disabled"),h=(0,n.Jt)(e,"purposes_li.enabled"),g=(0,n.Jt)(e,"purposes_li.disabled"),f=e=>-1===t.indexOf(e);Array.isArray(p)&&p.length&&(r.purposes.enabled=r.purposes.enabled.filter(f)),Array.isArray(v)&&v.length&&(r.purposes.disabled=r.purposes.disabled.filter(f)),Array.isArray(h)&&h.length&&(r.purposes_li.enabled=r.purposes_li.enabled.filter(f)),Array.isArray(g)&&g.length&&(r.purposes_li.disabled=r.purposes_li.disabled.filter(f))}return l(r,"purposes"),l(r,"purposes_li"),l(r,"vendors"),l(r,"vendors_li"),s&&"function"==typeof s?s(r):i.o4.btoa(JSON.stringify(r))}function c(e){try{var t=e.split(".")[1];return JSON.parse(i.o4.decode(t))}catch(e){return console.error("Unable to parse JWT token",e),null}}function p(e,t){if(!e||!e.updated)return!1;var s=(0,r.u)(e.updated);return!!s&&((new Date).getTime()-s.getTime())/1e3>=t}function v(e){var t=[...(0,n.Jt)(e,"vendors.enabled",[]),...(0,n.Jt)(e,"purposes.enabled",[])],s=[...(0,n.Jt)(e,"vendors.disabled",[]),...(0,n.Jt)(e,"purposes.disabled",[])];return 0===t.length&&s.length>0}function h(e){var{token:t,regulationId:s,apply:n}=e;return t&&"object"==typeof t&&void 0!==s&&!0===n&&(t.regulation_id=s),t}},3207:function(e,t,s){"use strict";s.d(t,{R:function(){return i}});var n=e=>{var{vendor:t,userStatus:s,processingRules:n=["consent","legitimate_interest"]}=e,r=!0;return n.includes("legitimate_interest")&&Array.isArray(t.legIntPurposeIds)&&t.legIntPurposeIds.length>0&&(r=r&&s.byLegalBasis.li.vendorsById[t.id]),n.includes("consent")&&Array.isArray(t.purposeIds)&&t.purposeIds.length>0&&(r=r&&s.byLegalBasis.consent.vendorsById[t.id]),r},r=e=>{var{vendor:t,userStatus:s,processingRules:r=["consent","legitimate_interest"]}=e,i=!0;return r.includes("legitimate_interest")&&Array.isArray(t.legIntPurposeIds)&&t.legIntPurposeIds.length>0&&(i=t.legIntPurposeIds.reduce((e,t)=>!1===e?e:s.byLegalBasis.li.purposesById[t],i)),r.includes("consent")&&Array.isArray(t.purposeIds)&&t.purposeIds.length>0&&(i=t.purposeIds.reduce((e,t)=>!1===e?e:s.byLegalBasis.consent.purposesById[t],i)),n({vendor:t,userStatus:s,processingRules:r})&&i},i=e=>{var{requiredVendors:t,isConsentRequired:s,userStatus:i,processingRules:o=["legitimate_interest","consent"]}=e,a={allowed:[],denied:[],unknown:[]},u={allowed:[],denied:[],unknown:[]};for(var l of t){var d=n({vendor:l,processingRules:o,userStatus:i}),c=r({vendor:l,processingRules:o,userStatus:i}),p=void 0;p="didomi"===l.namespace||"iab"===l.namespace?l.namespace+":"+l.id:l.id,!0===c?a.allowed.push(p):!1===c?a.denied.push(p):s?a.unknown.push(p):a.allowed.push(p),!0===d?u.allowed.push(p):!1===d?u.denied.push(p):s?u.unknown.push(p):u.allowed.push(p)}return{vendorsByStatusWithPurposes:a,vendorsByStatusWithoutPurposes:u}}},3307:function(e,t,s){"use strict";s.r(t),s.d(t,{loadProviderModule:function(){return n}});var n=(e,t)=>s(8082)("./"+e+"/"+e+".js").then(s=>{var n=new s.default(t);return s&&"function"==typeof n.setConsentStatus?n:(console.error("Module for provider "+e+" does not have a setConsentStatus function."),null)}).catch(t=>(console.error("Failed to load integration for provider "+e+":",t),null))},3330:function(e,t,s){"use strict";s.d(t,{x:function(){return r}});var n=s(6691),r=()=>{var e=(new Date).toISOString();return{user_id:(0,n.A)(),created:e,updated:e,vendors:{enabled:[],disabled:[]},purposes:{enabled:[],disabled:[]},vendors_li:{enabled:[],disabled:[]},purposes_li:{enabled:[],disabled:[]},version:null}}},3364:function(e,t,s){"use strict";s.d(t,{b:function(){return i}});var n=s(4576),r=s(9690),i=(0,n.EW)(()=>{var e;return(null==(e=r.i.value)?void 0:e.map(e=>null==e?void 0:e.id))||[]})},3369:function(e,t,s){"use strict";s.d(t,{B1:function(){return a},Yj:function(){return i},lR:function(){return o}});var n=["consent.pendingchanged","remoteconsent.","consent.","cookies.","integrations.","notice.","preferences.","ui.","components.","sync.","signature.","api."],r=["consent.","remoteconsent.","cookies.","integrations.","notice.","preferences.","ui.","components.","sync.","signature.","api."],i=e=>n.some(t=>e.startsWith(t)),o=e=>!r.some(t=>e.startsWith(t)),a=(e,t)=>function(){try{e(...arguments)}catch(e){console.error("Didomi SDK - Error in event listener callback for "+t+".",e)}}},3410:function(e,t,s){var n={"./adobe/adobe.js":4751,"./commandersact/commandersact.js":4207,"./didomi/didomi.js":517,"./eulerian-v2/eulerian-v2.js":6139,"./eulerian/eulerian.js":4971,"./get-applicable-providers.js":5427,"./gtm/gtm.js":747,"./load-provider-module.js":7931,"./tealium/tealium.js":2527,"./utils/wrapper.js":9621};function r(e){return i(e).then(s)}function i(e){return Promise.resolve().then(function(){if(!s.o(n,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return n[e]})}r.keys=function(){return Object.keys(n)},r.resolve=i,r.id=3410,e.exports=r},3412:function(e,t,s){"use strict";s.d(t,{m:function(){return p}});var n=s(8168),r=s(4576),i=s(9757),o=s(8691),a=s(5787),u=s(6784),l=s(1062),d=(0,r.EW)(()=>{var e,{specialFeatures:t}=l.A.value||{};return!!t&&Array.isArray(t)&&!(null==(e=u.S.value)||!e.specialFeatures)?null==t?void 0:t.map(e=>{var t,s;return(0,n.A)({},null==(t=u.S.value)||null==(s=t.specialFeatures)?void 0:s.find(t=>t.id===e.id),{id:i.FG[e.id],namespace:"iab",isSpecialFeature:!0})}):[]}),c=[{id:i.eL.CookiesAnalytics},{id:i.eL.CookiesMarketing},{id:i.eL.CookiesSocial}],p=(0,r.EW)(()=>{var e=[...c,...a.T.value||[],...d.value||[],...o.x.value||[]];if(null==e||!e.length)return{};var t={};for(var s of e)if("custom"===s.namespace){var r,u,l=i.RQ[null==s||null==(r=s.namespaces)?void 0:r.iab2];if(!!t[l])t[l]=(0,n.A)({},t[l],{namespaces:(0,n.A)({},null==(u=t[l])?void 0:u.namespaces,null==s?void 0:s.namespaces)});else t[s.id]=s}else t[s.id]=s;return t})},3682:function(e,t,s){"use strict";s.d(t,{v:function(){return r}});var n=s(4220),r=e=>{var t=[];return n.sH.decode(n.XK.decode(e)).forEach((e,s)=>e?t.push(s):null),t}},4004:function(e,t,s){"use strict";s.d(t,{y:function(){return l}});var n=s(152),r=s(5067),i=s(259),o=s(1843),a=s(4640),u=s(2321),l=(0,s(4576).EW)(()=>{var e,t,s,l,d,c,p;return"ccpa"!==(null==(e=o.r.value)?void 0:e.name)&&("none"!==(null==(t=o.r.value)?void 0:t.name)&&(null!=(s=i.bK.value)&&s.version&&"mixed"===(null==(l=o.r.value)||null==(d=l.group)?void 0:d.name)?(null==(p=r.t.value)?void 0:p.spiPurposeIdsBasedOnConsent.length)>0:(!u.G.value.bots||!1!==u.G.value.bots.consentRequired||!a.w.value)&&(!0===n.U.value.ignoreCountry||"gdpr"===(null==(c=o.r.value)?void 0:c.name))))})},4163:function(e,t,s){"use strict";s.d(t,{g:function(){return i},h:function(){return o}});var n=s(467),r=s(8307),i=void 0,o=function(){var e=(0,n.A)(function*(){return s.e("consent-string").then(s.bind(s,6673)).then(e=>{i={encode:e.encodeDCS,decode:e.decodeDCS},(0,r.Ic)("ced.loaded")})});return function(){return e.apply(this,arguments)}}()},4207:function(e,t,s){"use strict";s.r(t),s.d(t,{default:function(){return i}});var n=s(7127),r=s(9621);class i{constructor(){this.tC=new r.Wrapper("tC.event",["tC.domReady",["tC.event.didomiConsent","tC.event.didomiReady","tC.event.didomiConsentChanged"]])}setupCookies(e){var t=null==e?void 0:e.join(",");(0,n.Ri)("didomi_cookies")!==t&&(0,n.TV)("didomi_cookies",t,365)}update(e){var{type:t="didomi-consent-changed",customVariables:s={},allowedCategories:n}=e;this.setupCookies(n),this.tC.call("didomiConsent",{},s),"didomi-ready"===t?this.tC.call("didomiReady",{},s):this.tC.call("didomiConsentChanged",{},s)}}},4220:function(e,t,s){"use strict";s.d(t,{XK:function(){return a},aI:function(){return $},FY:function(){return U},Y4:function(){return v},jT:function(){return X},de:function(){return ee},Mi:function(){return N},sH:function(){return W}});class n extends Error{constructor(e){super(e),this.name="DecodingError"}}class r extends Error{constructor(e){super(e),this.name="EncodingError"}}class i extends Error{constructor(e){super(e),this.name="GVLError"}}class o extends Error{constructor(e,t,s){void 0===s&&(s=""),super("invalid value "+t+" passed for "+e+" "+s),this.name="TCModelError"}}class a{static encode(e){if(!/^[0-1]+$/.test(e))throw new r("Invalid bitField");var t=e.length%this.LCM;e+=t?"0".repeat(this.LCM-t):"";for(var s="",n=0;n=2&&2==t.length){if(u.langSet.has(e))return e;if(u.langSet.has(t))return t;var s=t+"-"+t;if(u.langSet.has(s))return s;for(var n of u.langSet)if(-1!==n.indexOf(e)||-1!==n.indexOf(t))return n}throw new Error("unsupported language "+e)}forEach(e){u.langSet.forEach(e)}get size(){return u.langSet.size}}u.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","KO","LT","LV","MK","MS","MT","NL","NO","PL","PT-BR","PT-PT","RO","RU","SK","SL","SR-LATN","SR-CYRL","SV","TL","TR","UK","ZH","ZH-HANT"]);class l{}l.cmpId="cmpId",l.cmpVersion="cmpVersion",l.consentLanguage="consentLanguage",l.consentScreen="consentScreen",l.created="created",l.supportOOB="supportOOB",l.isServiceSpecific="isServiceSpecific",l.lastUpdated="lastUpdated",l.numCustomPurposes="numCustomPurposes",l.policyVersion="policyVersion",l.publisherCountryCode="publisherCountryCode",l.publisherCustomConsents="publisherCustomConsents",l.publisherCustomLegitimateInterests="publisherCustomLegitimateInterests",l.publisherLegitimateInterests="publisherLegitimateInterests",l.publisherConsents="publisherConsents",l.publisherRestrictions="publisherRestrictions",l.purposeConsents="purposeConsents",l.purposeLegitimateInterests="purposeLegitimateInterests",l.purposeOneTreatment="purposeOneTreatment",l.specialFeatureOptins="specialFeatureOptins",l.useNonStandardTexts="useNonStandardTexts",l.vendorConsents="vendorConsents",l.vendorLegitimateInterests="vendorLegitimateInterests",l.vendorListVersion="vendorListVersion",l.vendorsAllowed="vendorsAllowed",l.vendorsDisclosed="vendorsDisclosed",l.version="version";class d{clone(){var e=new this.constructor;return Object.keys(this).forEach(t=>{var s=this.deepClone(this[t]);void 0!==s&&(e[t]=s)}),e}deepClone(e){var t=typeof e;if("number"===t||"string"===t||"boolean"===t)return e;if(null!==e&&"object"===t){if("function"==typeof e.clone)return e.clone();if(e instanceof Date)return new Date(e.getTime());if(void 0!==e[Symbol.iterator]){var s=[];for(var n of e)s.push(this.deepClone(n));return e instanceof Array?s:new e.constructor(s)}var r={};for(var i in e)e.hasOwnProperty(i)&&(r[i]=this.deepClone(e[i]));return r}}}var c,p,v,h,g,f,m,b,I,y,S,C,w,A,_,P,E,O,L,T,k,D;!function(e){e[e.NOT_ALLOWED=0]="NOT_ALLOWED",e[e.REQUIRE_CONSENT=1]="REQUIRE_CONSENT",e[e.REQUIRE_LI=2]="REQUIRE_LI"}(c||(c={}));class U extends d{constructor(e,t){super(),this.purposeId_=void 0,this.restrictionType=void 0,void 0!==e&&(this.purposeId=e),void 0!==t&&(this.restrictionType=t)}static unHash(e){var t=e.split(this.hashSeparator),s=new U;if(2!==t.length)throw new o("hash",e);return s.purposeId=parseInt(t[0],10),s.restrictionType=parseInt(t[1],10),s}get hash(){if(!this.isValid())throw new Error("cannot hash invalid PurposeRestriction");return""+this.purposeId+U.hashSeparator+this.restrictionType}get purposeId(){return this.purposeId_}set purposeId(e){this.purposeId_=e}isValid(){return Number.isInteger(this.purposeId)&&this.purposeId>0&&(this.restrictionType===c.NOT_ALLOWED||this.restrictionType===c.REQUIRE_CONSENT||this.restrictionType===c.REQUIRE_LI)}isSameAs(e){return this.purposeId===e.purposeId&&this.restrictionType===e.restrictionType}}U.hashSeparator="-";class V extends d{constructor(){super(...arguments),this.bitLength=0,this.map=new Map,this.gvl_=void 0}has(e){return this.map.has(e)}isOkToHave(e,t,s){var n,r=!0;if(null!=(n=this.gvl)&&n.vendors){var i=this.gvl.vendors[s];if(i)if(e===c.NOT_ALLOWED)r=i.legIntPurposes.includes(t)||i.purposes.includes(t);else if(i.flexiblePurposes.length)switch(e){case c.REQUIRE_CONSENT:r=i.flexiblePurposes.includes(t)&&i.legIntPurposes.includes(t);break;case c.REQUIRE_LI:r=i.flexiblePurposes.includes(t)&&i.purposes.includes(t)}else r=!1;else r=!1}return r}add(e,t){if(this.isOkToHave(t.restrictionType,t.purposeId,e)){var s=t.hash;this.has(s)||(this.map.set(s,new Set),this.bitLength=0),this.map.get(s).add(e)}}restrictPurposeToLegalBasis(e,t){void 0===t&&(t=[...this.gvl.vendorIds]);var s=e.hash;if(this.has(s)){var n=this.map.get(s);for(var r of t)n.add(r)}else this.map.set(s,new Set(t)),this.bitLength=0}getVendors(e){var t=[];if(e){var s=e.hash;this.has(s)&&(t=[...this.map.get(s)])}else{var n=new Set;this.map.forEach(e=>{[...e].forEach(e=>{n.add(e)})}),t=[...n]}return t.sort((e,t)=>e-t)}getRestrictionType(e,t){var s;return this.getRestrictions(e).forEach(e=>{e.purposeId===t&&(void 0===s||s>e.restrictionType)&&(s=e.restrictionType)}),s}vendorHasRestriction(e,t){for(var s=!1,n=this.getRestrictions(e),r=0;r{var s=[...t];e=Math.max(s[s.length-1],e)}),e}getRestrictions(e){var t=[];return this.map.forEach((s,n)=>{e?s.has(e)&&t.push(U.unHash(n)):t.push(U.unHash(n))}),t}getPurposes(){var e=new Set;return this.map.forEach((t,s)=>{e.add(U.unHash(s).purposeId)}),[...e]}remove(e,t){var s=t.hash,n=this.map.get(s);n&&(n.delete(e),0==n.size&&(this.map.delete(s),this.bitLength=0))}set gvl(e){this.gvl_||(this.gvl_=e,this.map.forEach((e,t)=>{var s=U.unHash(t);[...e].forEach(t=>{this.isOkToHave(s.restrictionType,s.purposeId,t)||e.delete(t)})}))}get gvl(){return this.gvl_}isEmpty(){return 0===this.map.size}get numRestrictions(){return this.map.size}}!function(e){e.COOKIE="cookie",e.WEB="web",e.APP="app"}(p||(p={})),function(e){e.CORE="core",e.VENDORS_DISCLOSED="vendorsDisclosed",e.VENDORS_ALLOWED="vendorsAllowed",e.PUBLISHER_TC="publisherTC"}(v||(v={}));class R{}R.ID_TO_KEY=[v.CORE,v.VENDORS_DISCLOSED,v.VENDORS_ALLOWED,v.PUBLISHER_TC],R.KEY_TO_ID={[v.CORE]:0,[v.VENDORS_DISCLOSED]:1,[v.VENDORS_ALLOWED]:2,[v.PUBLISHER_TC]:3};class N extends d{constructor(){super(...arguments),this.bitLength=0,this.maxId_=0,this.set_=new Set}*[Symbol.iterator](){for(var e=1;e<=this.maxId;e++)yield[e,this.has(e)]}toArray(){for(var e=new Array(0),t=1;t<=this.maxId;t++)e.push([t,this.has(t)]);return e}values(){return this.set_.values()}get maxId(){return this.maxId_}has(e){return this.set_.has(e)}unset(e){Array.isArray(e)?e.forEach(e=>this.unset(e)):"object"==typeof e?this.unset(Object.keys(e).map(e=>Number(e))):(this.set_.delete(Number(e)),this.bitLength=0,e===this.maxId&&(this.maxId_=0,this.set_.forEach(e=>{this.maxId_=Math.max(this.maxId,e)})))}isIntMap(e){var t="object"==typeof e;return t=t&&Object.keys(e).every(t=>{var s=Number.isInteger(parseInt(t,10));return s=(s=s&&this.isValidNumber(e[t].id))&&void 0!==e[t].name})}isValidNumber(e){return parseInt(e,10)>0}isSet(e){var t=!1;return e instanceof Set&&(t=Array.from(e).every(this.isValidNumber)),t}set(e){if(Array.isArray(e))e.forEach(e=>this.set(e));else if(this.isSet(e))this.set(Array.from(e));else if(this.isIntMap(e))this.set(Object.keys(e).map(e=>Number(e)));else{if(!this.isValidNumber(e))throw new o("set()",e,"must be positive integer array, positive integer, Set, or IntMap");this.set_.add(e),this.maxId_=Math.max(this.maxId,e),this.bitLength=0}}empty(){this.set_=new Set}forEach(e){for(var t=1;t<=this.maxId;t++)e(this.has(t),t)}get size(){return this.set_.size}setAll(e){this.set(e)}}h=l.cmpId,g=l.cmpVersion,f=l.consentLanguage,m=l.consentScreen,b=l.created,I=l.isServiceSpecific,y=l.lastUpdated,S=l.policyVersion,C=l.publisherCountryCode,w=l.publisherLegitimateInterests,A=l.publisherConsents,_=l.purposeConsents,P=l.purposeLegitimateInterests,E=l.purposeOneTreatment,O=l.specialFeatureOptins,L=l.useNonStandardTexts,T=l.vendorListVersion,k=l.version;class B{}B[h]=12,B[g]=12,B[f]=12,B[m]=6,B[b]=36,B[I]=1,B[y]=36,B[S]=6,B[C]=12,B[w]=24,B[A]=24,B[_]=24,B[P]=24,B[E]=1,B[O]=12,B[L]=1,B[T]=12,B[k]=6,B.anyBoolean=1,B.encodingType=1,B.maxId=16,B.numCustomPurposes=6,B.numEntries=12,B.numRestrictions=12,B.purposeId=6,B.restrictionType=2,B.segmentType=3,B.singleOrRange=1,B.vendorId=16;class x{static encode(e,t){var s;if("string"==typeof e&&(e=parseInt(e,10)),(s=e.toString(2)).length>t||e<0)throw new r(e+" too large to encode into "+t);return s.length25||n<0||n>25)throw new r("invalid language code: "+e);if(t%2==1)throw new r("numBits must be even, "+t+" is not valid");return t/=2,x.encode(s,t)+x.encode(n,t)}static decode(e,t){if(t!==e.length||e.length%2)throw new n("invalid bit length for language");var s=e.length/2,r=x.decode(e.slice(0,s),s)+65,i=x.decode(e.slice(s),s)+65;return String.fromCharCode(r)+String.fromCharCode(i)}}class G{static encode(e){var t=x.encode(e.numRestrictions,B.numRestrictions);if(!e.isEmpty()){var s=[...e.gvl.vendorIds],n=(e,t)=>{var n=s.indexOf(e);return s.indexOf(t)-n>1};e.getRestrictions().forEach(s=>{t+=x.encode(s.purposeId,B.purposeId),t+=x.encode(s.restrictionType,B.restrictionType);for(var r=e.getVendors(s),i=r.length,o=0,a=0,u="",l=0;li+t);s.restrictPurposeToLegalBasis(u,a)}else s.restrictPurposeToLegalBasis(u,[i])},c=0;c{(i+=F.encode(r),(t=e.maxId>u&&l{var t=1===e.length;s+=F.encode(!t),s+=x.encode(e[0],B.vendorId),t||(s+=x.encode(e[1],B.vendorId))}),s}}function J(){return{[l.version]:x,[l.created]:M,[l.lastUpdated]:M,[l.cmpId]:x,[l.cmpVersion]:x,[l.consentScreen]:x,[l.consentLanguage]:j,[l.vendorListVersion]:x,[l.policyVersion]:x,[l.isServiceSpecific]:F,[l.useNonStandardTexts]:F,[l.specialFeatureOptins]:z,[l.purposeConsents]:z,[l.purposeLegitimateInterests]:z,[l.purposeOneTreatment]:F,[l.publisherCountryCode]:j,[l.vendorConsents]:W,[l.vendorLegitimateInterests]:W,[l.publisherRestrictions]:G,segmentType:x,[l.vendorsDisclosed]:W,[l.vendorsAllowed]:W,[l.publisherConsents]:z,[l.publisherLegitimateInterests]:z,[l.numCustomPurposes]:x,[l.publisherCustomConsents]:z,[l.publisherCustomLegitimateInterests]:z}}class H{constructor(e,t){if(this[1]=[v.CORE],this[2]=[v.CORE],2===e.version)if(e.isServiceSpecific)this[2].push(v.PUBLISHER_TC);else{var s=!(!t||!t.isForVendors);s&&!0!==e[l.supportOOB]||this[2].push(v.VENDORS_DISCLOSED),s&&(e[l.supportOOB]&&e[l.vendorsAllowed].size>0&&this[2].push(v.VENDORS_ALLOWED),this[2].push(v.PUBLISHER_TC))}}}class K{static encode(e,t){var s;try{s=this.fieldSequence[String(e.version)][t]}catch(s){throw new r("Unable to encode version: "+e.version+", segment: "+t)}var n="";t!==v.CORE&&(n=x.encode(R.KEY_TO_ID[t],B.segmentType));var i=J();return s.forEach(s=>{var o=e[s],a=i[s],u=B[s];void 0===u&&this.isPublisherCustom(s)&&(u=Number(e[l.numCustomPurposes]));try{n+=a.encode(o,u)}catch(e){throw new r("Error encoding "+t+"->"+s+": "+e.message)}}),a.encode(n)}static decode(e,t,s){var r=a.decode(e),i=0;s===v.CORE&&(t.version=x.decode(r.substr(i,B[l.version]),B[l.version])),s!==v.CORE&&(i+=B.segmentType);var o=this.fieldSequence[String(t.version)][s],u=J();return o.forEach(e=>{var s=u[e],o=B[e];if(void 0===o&&this.isPublisherCustom(e)&&(o=Number(t[l.numCustomPurposes])),0!==o){var a=r.substr(i,o);if(t[e]=s===W?s.decode(a,t.version):s.decode(a,o),Number.isInteger(o))i+=o;else{if(!Number.isInteger(t[e].bitLength))throw new n(e);i+=t[e].bitLength}}}),t}static isPublisherCustom(e){return 0===e.indexOf("publisherCustom")}}K.fieldSequence=new class{constructor(){this[1]={[v.CORE]:[l.version,l.created,l.lastUpdated,l.cmpId,l.cmpVersion,l.consentScreen,l.consentLanguage,l.vendorListVersion,l.purposeConsents,l.vendorConsents]},this[2]={[v.CORE]:[l.version,l.created,l.lastUpdated,l.cmpId,l.cmpVersion,l.consentScreen,l.consentLanguage,l.vendorListVersion,l.policyVersion,l.isServiceSpecific,l.useNonStandardTexts,l.specialFeatureOptins,l.purposeConsents,l.purposeLegitimateInterests,l.purposeOneTreatment,l.publisherCountryCode,l.vendorConsents,l.vendorLegitimateInterests,l.publisherRestrictions],[v.PUBLISHER_TC]:[l.publisherConsents,l.publisherLegitimateInterests,l.numCustomPurposes,l.publisherCustomConsents,l.publisherCustomLegitimateInterests],[v.VENDORS_ALLOWED]:[l.vendorsAllowed],[v.VENDORS_DISCLOSED]:[l.vendorsDisclosed]}}};class q{static process(e,t){var s=e.gvl;if(!s)throw new r("Unable to encode TCModel without a GVL");if(!s.isReady)throw new r("Unable to encode TCModel tcModel.gvl.readyPromise is not resolved");(e=e.clone()).consentLanguage=s.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 n=e.version-1;if(!this.processor[n])throw new r("Invalid version: "+e.version);return this.processor[n](e,s)}}q.processor=[e=>e,(e,t)=>{e.publisherRestrictions.gvl=t,e.purposeLegitimateInterests.unset([1,3,4,5,6]);var s=new Map;return s.set("legIntPurposes",e.vendorLegitimateInterests),s.set("purposes",e.vendorConsents),s.forEach((s,n)=>{s.forEach((r,i)=>{if(r){var o=t.vendors[i];if(!o||o.deletedDate)s.unset(i);else if(0===o[n].length)if("legIntPurposes"===n&&0===o.purposes.length&&0===o.legIntPurposes.length&&o.specialPurposes.length>0)s.set(i);else if("legIntPurposes"===n&&o.purposes.length>0&&0===o.legIntPurposes.length&&o.specialPurposes.length>0)s.set(i);else if(e.isServiceSpecific)if(0===o.flexiblePurposes.length)s.unset(i);else{for(var a=e.publisherRestrictions.getRestrictions(i),u=!1,l=0,d=a.length;l{var o=new XMLHttpRequest;o.withCredentials=s,o.addEventListener("load",()=>{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){}r(e)}else i(new Error("HTTP Status: "+o.status+" response type: "+o.responseType))}),o.addEventListener("error",()=>{i(new Error("error"))}),o.addEventListener("abort",()=>{i(new Error("aborted"))}),null===t?o.open("GET",e,!0):o.open("POST",e,!0),o.responseType="json",o.timeout=n,o.ontimeout=()=>{i(new Error("Timeout "+n+"ms "+e))},o.send(t)})}static post(e,t,s,n){return void 0===s&&(s=!1),void 0===n&&(n=0),this.absCall(e,JSON.stringify(t),s,n)}static fetch(e,t,s){return void 0===t&&(t=!1),void 0===s&&(s=0),this.absCall(e,null,t,s)}}class $ extends d{static set baseUrl(e){if(/^https?:\/\/vendorlist\.consensu\.org\//.test(e))throw new i("Invalid baseUrl! You may not pull directly from vendorlist.consensu.org and must provide your own cache");e.length>0&&"/"!==e[e.length-1]&&(e+="/"),this.baseUrl_=e}static get baseUrl(){return this.baseUrl_}constructor(e){super(),this.readyPromise=void 0,this.gvlSpecificationVersion=void 0,this.vendorListVersion=void 0,this.tcfPolicyVersion=void 0,this.lastUpdated=void 0,this.purposes=void 0,this.specialPurposes=void 0,this.features=void 0,this.specialFeatures=void 0,this.isReady_=!1,this.vendors_=void 0,this.vendorIds=void 0,this.fullVendorList=void 0,this.byPurposeVendorMap=void 0,this.bySpecialPurposeVendorMap=void 0,this.byFeatureVendorMap=void 0,this.bySpecialFeatureVendorMap=void 0,this.stacks=void 0,this.dataCategories=void 0,this.lang_=void 0,this.cacheLang_=void 0,this.isLatest=!1;var t=$.baseUrl;if(this.lang_=$.DEFAULT_LANGUAGE,this.cacheLang_=$.DEFAULT_LANGUAGE,this.isVendorList(e))this.populate(e),this.readyPromise=Promise.resolve();else{if(!t)throw new i("must specify GVL.baseUrl before loading GVL json");if(e>0){var s=e;$.CACHE.has(s)?(this.populate($.CACHE.get(s)),this.readyPromise=Promise.resolve()):(t+=$.versionedFilename.replace("[VERSION]",String(s)),this.readyPromise=this.fetchJson(t))}else $.CACHE.has($.LATEST_CACHE_KEY)?(this.populate($.CACHE.get($.LATEST_CACHE_KEY)),this.readyPromise=Promise.resolve()):(this.isLatest=!0,this.readyPromise=this.fetchJson(t+$.latestFilename))}}static emptyLanguageCache(e){var t=!1;return null==e&&$.LANGUAGE_CACHE.size>0?($.LANGUAGE_CACHE=new Map,t=!0):"string"==typeof e&&this.consentLanguages.has(e.toUpperCase())&&($.LANGUAGE_CACHE.delete(e.toUpperCase()),t=!0),t}static emptyCache(e){var t=!1;return Number.isInteger(e)&&e>=0?($.CACHE.delete(e),t=!0):void 0===e&&($.CACHE=new Map,t=!0),t}cacheLanguage(){$.LANGUAGE_CACHE.has(this.cacheLang_)||$.LANGUAGE_CACHE.set(this.cacheLang_,{purposes:this.purposes,specialPurposes:this.specialPurposes,features:this.features,specialFeatures:this.specialFeatures,stacks:this.stacks,dataCategories:this.dataCategories})}fetchJson(e){var t=this;return(0,Y.A)(function*(){try{t.populate(yield Q.fetch(e))}catch(e){throw new i(e.message)}})()}getJson(){return(0,Z.A)({gvlSpecificationVersion:this.gvlSpecificationVersion,vendorListVersion:this.vendorListVersion,tcfPolicyVersion:this.tcfPolicyVersion,lastUpdated:this.lastUpdated,purposes:this.clonePurposes(),specialPurposes:this.cloneSpecialPurposes(),features:this.cloneFeatures(),specialFeatures:this.cloneSpecialFeatures(),stacks:this.cloneStacks()},this.dataCategories?{dataCategories:this.cloneDataCategories()}:{},{vendors:this.cloneVendors()})}cloneSpecialFeatures(){var e={};for(var t of Object.keys(this.specialFeatures))e[t]=$.cloneFeature(this.specialFeatures[t]);return e}cloneFeatures(){var e={};for(var t of Object.keys(this.features))e[t]=$.cloneFeature(this.features[t]);return e}cloneStacks(){var e={};for(var t of Object.keys(this.stacks))e[t]=$.cloneStack(this.stacks[t]);return e}cloneDataCategories(){var e={};for(var t of Object.keys(this.dataCategories))e[t]=$.cloneDataCategory(this.dataCategories[t]);return e}cloneSpecialPurposes(){var e={};for(var t of Object.keys(this.specialPurposes))e[t]=$.clonePurpose(this.specialPurposes[t]);return e}clonePurposes(){var e={};for(var t of Object.keys(this.purposes))e[t]=$.clonePurpose(this.purposes[t]);return e}static clonePurpose(e){return(0,Z.A)({id:e.id,name:e.name,description:e.description},e.descriptionLegal?{descriptionLegal:e.descriptionLegal}:{},e.illustrations?{illustrations:Array.from(e.illustrations)}:{})}static cloneFeature(e){return(0,Z.A)({id:e.id,name:e.name,description:e.description},e.descriptionLegal?{descriptionLegal:e.descriptionLegal}:{},e.illustrations?{illustrations:Array.from(e.illustrations)}:{})}static cloneDataCategory(e){return{id:e.id,name:e.name,description:e.description}}static cloneStack(e){return{id:e.id,name:e.name,description:e.description,purposes:Array.from(e.purposes),specialFeatures:Array.from(e.specialFeatures)}}static cloneDataRetention(e){return(0,Z.A)({},"number"==typeof e.stdRetention?{stdRetention:e.stdRetention}:{},{purposes:(0,Z.A)({},e.purposes),specialPurposes:(0,Z.A)({},e.specialPurposes)})}static cloneVendorUrls(e){return e.map(e=>(0,Z.A)({langId:e.langId,privacy:e.privacy},e.legIntClaim?{legIntClaim:e.legIntClaim}:{}))}static cloneVendor(e){return(0,Z.A)({id:e.id,name:e.name,purposes:Array.from(e.purposes),legIntPurposes:Array.from(e.legIntPurposes),flexiblePurposes:Array.from(e.flexiblePurposes),specialPurposes:Array.from(e.specialPurposes),features:Array.from(e.features),specialFeatures:Array.from(e.specialFeatures)},e.overflow?{overflow:{httpGetLimit:e.overflow.httpGetLimit}}:{},"number"==typeof e.cookieMaxAgeSeconds||null===e.cookieMaxAgeSeconds?{cookieMaxAgeSeconds:e.cookieMaxAgeSeconds}:{},void 0!==e.usesCookies?{usesCookies:e.usesCookies}:{},e.policyUrl?{policyUrl:e.policyUrl}:{},void 0!==e.cookieRefresh?{cookieRefresh:e.cookieRefresh}:{},void 0!==e.usesNonCookieAccess?{usesNonCookieAccess:e.usesNonCookieAccess}:{},e.dataRetention?{dataRetention:this.cloneDataRetention(e.dataRetention)}:{},e.urls?{urls:this.cloneVendorUrls(e.urls)}:{},e.dataDeclaration?{dataDeclaration:Array.from(e.dataDeclaration)}:{},e.deviceStorageDisclosureUrl?{deviceStorageDisclosureUrl:e.deviceStorageDisclosureUrl}:{},e.deletedDate?{deletedDate:e.deletedDate}:{})}cloneVendors(){var e={};for(var t of Object.keys(this.fullVendorList))e[t]=$.cloneVendor(this.fullVendorList[t]);return e}changeLanguage(e){var t=this;return(0,Y.A)(function*(){var s=e;try{s=$.consentLanguages.parseLanguage(e)}catch(e){throw new i("Error during parsing the language: "+e.message)}var n=e.toUpperCase();if((s.toLowerCase()!==$.DEFAULT_LANGUAGE.toLowerCase()||$.LANGUAGE_CACHE.has(n))&&s!==t.lang_)if(t.lang_=s,$.LANGUAGE_CACHE.has(n)){var r=$.LANGUAGE_CACHE.get(n);for(var o in r)r.hasOwnProperty(o)&&(t[o]=r[o])}else{var a=$.baseUrl+$.languageFilename.replace("[LANG]",t.lang_.toLowerCase());try{yield t.fetchJson(a),t.cacheLang_=n,t.cacheLanguage()}catch(e){throw new i("unable to load language: "+e.message)}}})()}get language(){return this.lang_}isVendorList(e){return void 0!==e&&void 0!==e.vendors}populate(e){this.purposes=e.purposes,this.specialPurposes=e.specialPurposes,this.features=e.features,this.specialFeatures=e.specialFeatures,this.stacks=e.stacks,this.dataCategories=e.dataCategories,this.isVendorList(e)&&(this.gvlSpecificationVersion=e.gvlSpecificationVersion,this.tcfPolicyVersion=e.tcfPolicyVersion,this.vendorListVersion=e.vendorListVersion,this.lastUpdated=e.lastUpdated,"string"==typeof this.lastUpdated&&(this.lastUpdated=new Date(this.lastUpdated)),this.vendors_=e.vendors,this.fullVendorList=e.vendors,this.mapVendors(),this.isReady_=!0,this.isLatest&&$.CACHE.set($.LATEST_CACHE_KEY,this.getJson()),$.CACHE.has(this.vendorListVersion)||$.CACHE.set(this.vendorListVersion,this.getJson())),this.cacheLanguage()}mapVendors(e){this.byPurposeVendorMap={},this.bySpecialPurposeVendorMap={},this.byFeatureVendorMap={},this.bySpecialFeatureVendorMap={},Object.keys(this.purposes).forEach(e=>{this.byPurposeVendorMap[e]={legInt:new Set,consent:new Set,flexible:new Set}}),Object.keys(this.specialPurposes).forEach(e=>{this.bySpecialPurposeVendorMap[e]=new Set}),Object.keys(this.features).forEach(e=>{this.byFeatureVendorMap[e]=new Set}),Object.keys(this.specialFeatures).forEach(e=>{this.bySpecialFeatureVendorMap[e]=new Set}),Array.isArray(e)||(e=Object.keys(this.fullVendorList).map(e=>+e)),this.vendorIds=new Set(e),this.vendors_=e.reduce((e,t)=>{var s=this.vendors_[String(t)];return s&&void 0===s.deletedDate&&(s.purposes.forEach(e=>{this.byPurposeVendorMap[String(e)].consent.add(t)}),s.specialPurposes.forEach(e=>{this.bySpecialPurposeVendorMap[String(e)].add(t)}),s.legIntPurposes.forEach(e=>{this.byPurposeVendorMap[String(e)].legInt.add(t)}),s.flexiblePurposes&&s.flexiblePurposes.forEach(e=>{this.byPurposeVendorMap[String(e)].flexible.add(t)}),s.features.forEach(e=>{this.byFeatureVendorMap[String(e)].add(t)}),s.specialFeatures.forEach(e=>{this.bySpecialFeatureVendorMap[String(e)].add(t)}),e[t]=s),e},{})}getFilteredVendors(e,t,s,n){var r=e.charAt(0).toUpperCase()+e.slice(1),i={};return("purpose"===e&&s?this["by"+r+"VendorMap"][String(t)][s]:this["by"+(n?"Special":"")+r+"VendorMap"][String(t)]).forEach(e=>{i[String(e)]=this.vendors[String(e)]}),i}getVendorsWithConsentPurpose(e){return this.getFilteredVendors("purpose",e,"consent")}getVendorsWithLegIntPurpose(e){return this.getFilteredVendors("purpose",e,"legInt")}getVendorsWithFlexiblePurpose(e){return this.getFilteredVendors("purpose",e,"flexible")}getVendorsWithSpecialPurpose(e){return this.getFilteredVendors("purpose",e,void 0,!0)}getVendorsWithFeature(e){return this.getFilteredVendors("feature",e)}getVendorsWithSpecialFeature(e){return this.getFilteredVendors("feature",e,void 0,!0)}get vendors(){return this.vendors_}narrowVendorsTo(e){this.mapVendors(e)}get isReady(){return this.isReady_}clone(){var e=new $(this.getJson());return this.lang_!==$.DEFAULT_LANGUAGE&&e.changeLanguage(this.lang_),e}static isInstanceOf(e){return"object"==typeof e&&"function"==typeof e.narrowVendorsTo}}$.LANGUAGE_CACHE=new Map,$.CACHE=new Map,$.LATEST_CACHE_KEY=0,$.DEFAULT_LANGUAGE="EN",$.consentLanguages=new u,$.baseUrl_=void 0,$.latestFilename="vendor-list.json",$.versionedFilename="archives/vendor-list-v[VERSION].json",$.languageFilename="purposes-[LANG].json";class X extends d{constructor(e){super(),this.isServiceSpecific_=!1,this.supportOOB_=!0,this.useNonStandardTexts_=!1,this.purposeOneTreatment_=!1,this.publisherCountryCode_="AA",this.version_=2,this.consentScreen_=0,this.policyVersion_=5,this.consentLanguage_="EN",this.cmpId_=0,this.cmpVersion_=0,this.vendorListVersion_=0,this.numCustomPurposes_=0,this.gvl_=void 0,this.created=void 0,this.lastUpdated=void 0,this.specialFeatureOptins=new N,this.purposeConsents=new N,this.purposeLegitimateInterests=new N,this.publisherConsents=new N,this.publisherLegitimateInterests=new N,this.publisherCustomConsents=new N,this.publisherCustomLegitimateInterests=new N,this.customPurposes=void 0,this.vendorConsents=new N,this.vendorLegitimateInterests=new N,this.vendorsDisclosed=new N,this.vendorsAllowed=new N,this.publisherRestrictions=new V,e&&(this.gvl=e),this.updated()}set gvl(e){$.isInstanceOf(e)||(e=new $(e)),this.gvl_=e,this.publisherRestrictions.gvl=e}get gvl(){return this.gvl_}set cmpId(e){if(e=Number(e),!(Number.isInteger(e)&&e>1))throw new o("cmpId",e);this.cmpId_=e}get cmpId(){return this.cmpId_}set cmpVersion(e){if(e=Number(e),!(Number.isInteger(e)&&e>-1))throw new o("cmpVersion",e);this.cmpVersion_=e}get cmpVersion(){return this.cmpVersion_}set consentScreen(e){if(e=Number(e),!(Number.isInteger(e)&&e>-1))throw new o("consentScreen",e);this.consentScreen_=e}get consentScreen(){return this.consentScreen_}set consentLanguage(e){this.consentLanguage_=e}get consentLanguage(){return this.consentLanguage_}set publisherCountryCode(e){if(!/^([A-z]){2}$/.test(e))throw new o("publisherCountryCode",e);this.publisherCountryCode_=e.toUpperCase()}get publisherCountryCode(){return this.publisherCountryCode_}set vendorListVersion(e){if((e=Number(e)|0)<0)throw new o("vendorListVersion",e);this.vendorListVersion_=e}get vendorListVersion(){return this.gvl?this.gvl.vendorListVersion:this.vendorListVersion_}set policyVersion(e){if(this.policyVersion_=parseInt(e,10),this.policyVersion_<0)throw new o("policyVersion",e)}get policyVersion(){return this.gvl?this.gvl.tcfPolicyVersion:this.policyVersion_}set version(e){this.version_=parseInt(e,10)}get version(){return this.version_}set isServiceSpecific(e){this.isServiceSpecific_=e}get isServiceSpecific(){return this.isServiceSpecific_}set useNonStandardTexts(e){this.useNonStandardTexts_=e}get useNonStandardTexts(){return this.useNonStandardTexts_}set supportOOB(e){this.supportOOB_=e}get supportOOB(){return this.supportOOB_}set purposeOneTreatment(e){this.purposeOneTreatment_=e}get purposeOneTreatment(){return this.purposeOneTreatment_}setAllVendorConsents(){this.vendorConsents.set(this.gvl.vendors)}unsetAllVendorConsents(){this.vendorConsents.empty()}setAllVendorsDisclosed(){this.vendorsDisclosed.set(this.gvl.vendors)}unsetAllVendorsDisclosed(){this.vendorsDisclosed.empty()}setAllVendorsAllowed(){this.vendorsAllowed.set(this.gvl.vendors)}unsetAllVendorsAllowed(){this.vendorsAllowed.empty()}setAllVendorLegitimateInterests(){this.vendorLegitimateInterests.set(this.gvl.vendors)}unsetAllVendorLegitimateInterests(){this.vendorLegitimateInterests.empty()}setAllPurposeConsents(){this.purposeConsents.set(this.gvl.purposes)}unsetAllPurposeConsents(){this.purposeConsents.empty()}setAllPurposeLegitimateInterests(){this.purposeLegitimateInterests.set(this.gvl.purposes)}unsetAllPurposeLegitimateInterests(){this.purposeLegitimateInterests.empty()}setAllSpecialFeatureOptins(){this.specialFeatureOptins.set(this.gvl.specialFeatures)}unsetAllSpecialFeatureOptins(){this.specialFeatureOptins.empty()}setAll(){this.setAllVendorConsents(),this.setAllPurposeLegitimateInterests(),this.setAllSpecialFeatureOptins(),this.setAllPurposeConsents(),this.setAllVendorLegitimateInterests()}unsetAll(){this.unsetAllVendorConsents(),this.unsetAllPurposeLegitimateInterests(),this.unsetAllSpecialFeatureOptins(),this.unsetAllPurposeConsents(),this.unsetAllVendorLegitimateInterests()}get numCustomPurposes(){var e=this.numCustomPurposes_;if("object"==typeof this.customPurposes){var t=Object.keys(this.customPurposes).sort((e,t)=>Number(e)-Number(t));e=parseInt(t.pop(),10)}return e}set numCustomPurposes(e){if(this.numCustomPurposes_=parseInt(e,10),this.numCustomPurposes_<0)throw new o("numCustomPurposes",e)}updated(){var e=new Date,t=new Date(Date.UTC(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()));this.created=t,this.lastUpdated=t}}X.consentLanguages=$.consentLanguages;class ee{static encode(e,t){var s,n="";return e=q.process(e,t),(s=Array.isArray(null==t?void 0:t.segments)?t.segments:new H(e,t)[""+e.version]).forEach((t,r)=>{var i="";r{var t=e.match(/^(iab|didomi):(\w+)$/);return t?t[2]:e}},4382:function(e,t,s){"use strict";s.d(t,{h:function(){return r}});var n=s(4220),r=e=>{var t=new n.Mi;return t.set(e.filter(e=>e)),n.XK.encode(n.sH.encode(t))}},4408:function(e,t,s){"use strict";s.d(t,{K:function(){return i}});var n=s(4576),r=s(152),i=(0,n.EW)(()=>{var e,t=null==(e=r.U.value)?void 0:e.apiKey;if(t)return t;var s=document.getElementById("spcloader");if(s&&s.getAttribute){var n=s.getAttribute("data-key");if("string"==typeof n&&n.length>0)return n}})},4576:function(e,t,s){"use strict";function n(){throw new Error("Cycle detected")}function r(){if(a>1)a--;else{for(var e,t=!1;void 0!==o;){var s=o;for(o=void 0,u++;void 0!==s;){var n=s.o;if(s.o=void 0,s.f&=-3,!(8&s.f)&&v(s))try{s.c()}catch(s){t||(e=s,t=!0)}s=n}}if(u=0,a--,t)throw e}}s.d(t,{EW:function(){return m},HN:function(){return c},QZ:function(){return C},vP:function(){return p}});var i=void 0;var o=void 0,a=0,u=0,l=0;function d(e){if(void 0!==i){var t=e.n;if(void 0===t||t.t!==i)return t={i:0,S:e,p:i.s,n:void 0,t:i,e:void 0,x:void 0,r:t},void 0!==i.s&&(i.s.n=t),i.s=t,e.n=t,32&i.f&&e.S(t),t;if(-1===t.i)return t.i=0,void 0!==t.n&&(t.n.p=t.p,void 0!==t.p&&(t.p.n=t.n),t.p=i.s,t.n=void 0,i.s.n=t,i.s=t),t}}function c(e){this.v=e,this.i=0,this.n=void 0,this.t=void 0}function p(e){return new c(e)}function v(e){for(var t=e.s;void 0!==t;t=t.n)if(t.S.i!==t.i||!t.S.h()||t.S.i!==t.i)return!0;return!1}function h(e){for(var t=e.s;void 0!==t;t=t.n){var s=t.S.n;if(void 0!==s&&(t.r=s),t.S.n=t,t.i=-1,void 0===t.n){e.s=t;break}}}function g(e){for(var t=e.s,s=void 0;void 0!==t;){var n=t.p;-1===t.i?(t.S.U(t),void 0!==n&&(n.n=t.n),void 0!==t.n&&(t.n.p=n)):s=t,t.S.n=t.r,void 0!==t.r&&(t.r=void 0),t=n}e.s=s}function f(e){c.call(this,void 0),this.x=e,this.s=void 0,this.g=l-1,this.f=4}function m(e){return new f(e)}function b(e){var t=e.u;if(e.u=void 0,"function"==typeof t){a++;var s=i;i=void 0;try{t()}catch(t){throw e.f&=-2,e.f|=8,I(e),t}finally{i=s,r()}}}function I(e){for(var t=e.s;void 0!==t;t=t.n)t.S.U(t);e.x=void 0,e.s=void 0,b(e)}function y(e){if(i!==this)throw new Error("Out-of-order effect");g(this),i=e,this.f&=-2,8&this.f&&I(this),r()}function S(e){this.x=e,this.u=void 0,this.s=void 0,this.o=void 0,this.f=32}function C(e){var t=new S(e);try{t.c()}catch(e){throw t.d(),e}return t.d.bind(t)}c.prototype.h=function(){return!0},c.prototype.S=function(e){this.t!==e&&void 0===e.e&&(e.x=this.t,void 0!==this.t&&(this.t.e=e),this.t=e)},c.prototype.U=function(e){if(void 0!==this.t){var t=e.e,s=e.x;void 0!==t&&(t.x=s,e.e=void 0),void 0!==s&&(s.e=t,e.x=void 0),e===this.t&&(this.t=s)}},c.prototype.subscribe=function(e){var t=this;return C(function(){var s=t.value,n=32&this.f;this.f&=-33;try{e(s)}finally{this.f|=n}})},c.prototype.valueOf=function(){return this.value},c.prototype.toString=function(){return this.value+""},c.prototype.toJSON=function(){return this.value},c.prototype.peek=function(){return this.v},Object.defineProperty(c.prototype,"value",{get:function(){var e=d(this);return void 0!==e&&(e.i=this.i),this.v},set:function(e){if(i instanceof f&&function(){throw new Error("Computed cannot have side-effects")}(),e!==this.v){u>100&&n(),this.v=e,this.i++,l++,a++;try{for(var t=this.t;void 0!==t;t=t.x)t.t.N()}finally{r()}}}}),(f.prototype=new c).h=function(){if(this.f&=-3,1&this.f)return!1;if(32==(36&this.f))return!0;if(this.f&=-5,this.g===l)return!0;if(this.g=l,this.f|=1,this.i>0&&!v(this))return this.f&=-2,!0;var e=i;try{h(this),i=this;var t=this.x();(16&this.f||this.v!==t||0===this.i)&&(this.v=t,this.f&=-17,this.i++)}catch(e){this.v=e,this.f|=16,this.i++}return i=e,g(this),this.f&=-2,!0},f.prototype.S=function(e){if(void 0===this.t){this.f|=36;for(var t=this.s;void 0!==t;t=t.n)t.S.S(t)}c.prototype.S.call(this,e)},f.prototype.U=function(e){if(void 0!==this.t&&(c.prototype.U.call(this,e),void 0===this.t)){this.f&=-33;for(var t=this.s;void 0!==t;t=t.n)t.S.U(t)}},f.prototype.N=function(){if(!(2&this.f)){this.f|=6;for(var e=this.t;void 0!==e;e=e.x)e.t.N()}},f.prototype.peek=function(){if(this.h()||n(),16&this.f)throw this.v;return this.v},Object.defineProperty(f.prototype,"value",{get:function(){1&this.f&&n();var e=d(this);if(this.h(),void 0!==e&&(e.i=this.i),16&this.f)throw this.v;return this.v}}),S.prototype.c=function(){var e=this.S();try{if(8&this.f)return;if(void 0===this.x)return;var t=this.x();"function"==typeof t&&(this.u=t)}finally{e()}},S.prototype.S=function(){1&this.f&&n(),this.f|=1,this.f&=-9,b(this),h(this),a++;var e=i;return i=this,y.bind(this,e)},S.prototype.N=function(){2&this.f||(this.f|=2,this.o=o,o=this)},S.prototype.d=function(){this.f|=8,1&this.f||I(this)}},4609:function(e,t,s){"use strict";s.d(t,{G:function(){return a}});var n=s(259),r=s(4576),i=e=>(e=>{var t=e.chrome,s=e.navigator,n=s.vendor,r=void 0!==e.opr,i=s.userAgent.indexOf("Edge")>-1;return!s.userAgent.match("CriOS")&&null!=t&&"Google Inc."===n&&!1===r&&!1===i})(e)&&((e=>{var t=/Chrome\/([0-9]{2,3})\./i.exec(e);return t?parseInt(t[1],10):null})(e.navigator.userAgent)||0)>=79,o=s(7127),a=(0,r.EW)(()=>{var e,t,s,r,a,u,l,d,c=null==(e=n.bK.value)?void 0:e.cookies;return{secure:!0===(null==c?void 0:c.secure),sameSiteRequired:i(window),sources:{cookies:!1!==(null==c||null==(t=c.storageSources)?void 0:t.cookies),localStorage:!1!==(null==c||null==(s=c.storageSources)?void 0:s.localStorage)},local:{customDomain:"string"==typeof(null==c||null==(r=c.local)?void 0:r.customDomain)?null==c||null==(a=c.local)?void 0:a.customDomain:(0,o.zd)(document.location.hostname)},thirdParty:{enabled:!0===(null==c||null==(u=c.group)?void 0:u.enabled),customDomain:"string"==typeof(null==c||null==(l=c.group)?void 0:l.customDomain)?null==c||null==(d=c.group)?void 0:d.customDomain:null}}})},4640:function(e,t,s){"use strict";s.d(t,{w:function(){return o}});var n=s(4576),r={crawlers:/googlebot|adsbot|feedfetcher|mediapartners|bingbot|bingpreview|slurp|linkedinbot|msnbot|teoma|alexabot|exabot|facebot|facebook|twitter|yandex|baidu|duckduckbot|qwantify|qwantbot|archive|applebot|addthis|slackbot|reddit|whatsapp|pinterest|moatbot|google-xrawler|crawler|spider|crawling|oncrawl|NETVIGIE|PetalBot|PhantomJS|NativeAIBot|Cocolyzebot|SMTBot|EchoboxBot|Quora-Bot|scraper|BLP_bbot|MAZBot|ScooperBot|BublupBot|Cincraw|HeadlessChrome|diffbot|Google Web Preview|Doximity-Diffbot|Rely Bot|pingbot|cXensebot|PingdomTMS|AhrefsBot|robot|semrush|seenaptic|netvibes|taboolabot|SimplePie|APIs-Google|Google-Read-Aloud|googleweblight|DuplexWeb-Google|Google Favicon|Storebot-Google|TagInspector|Rigor|Bazaarvoice|KlarnaBot|pageburst|naver|iplabel/i,performance:/Chrome-Lighthouse|gtmetrix|speedcurve|DareBoost|PTST|StatusCake_Pagespeed_Indev/i},i=s(2321),o=(0,n.EW)(()=>{var e,t,s,n=null==i.G?void 0:i.G.value.bots;return e=n.types,t=n.extraUserAgents,s=navigator.userAgent,!(!Array.isArray(e)||!e.some(e=>{var t=r[e];return t?t.test(s):(console.error('Didomi - Bot detector - Bot type "'+e+'" does not exist'),!1)}))||!(!Array.isArray(t)||!t.some(e=>{try{if(!e||"string"!=typeof e)throw new Error("User-Agent cannot be null, undefined, or an empty string");return new RegExp(e).test(s)}catch(t){return console.error('Didomi - Bot detector - User-agent "'+e+'" is not a valid regular expression: '+t.message),!1}}))})},4746:function(e,t,s){"use strict";s.d(t,{Dx:function(){return i},jh:function(){return o},q7:function(){return u},y3:function(){return a}});var n=s(378),r=(e,t)=>(null==t?void 0:t[e])||e,i=function(e,t){if(void 0===t&&(t={}),!e)return{};var s={},{enabled:n,disabled:i}=e;for(var o of n||[]){var a=r(o,t);s[a]={id:a,enabled:!0}}for(var u of i||[]){var l=r(u,t);s[l]={id:l,enabled:!1}}return s},o=e=>{var{globalUserStatus:t,includeIds:s=[],reversedIdsToDidomiIdsMap:n,parseNumIds:r=!0}=e,i={enabled:[],disabled:[]};for(var o of Object.keys(t)){var a=(null==n?void 0:n[o])||o;r&&(a=parseInt(a,10)||a),s.length&&!s.includes(a)||(t[o].enabled?i.enabled.push(a):i.disabled.push(a))}return i},a=(e,t)=>{var{vendors:s,purposes:r}=e,{vendors:i,purposes:o}=t,{vendors_li:a,purposes_li:u}=e,{vendors_li:l,purposes_li:d}=t;return!((0,n.r1)(s.enabled,i.enabled)&&(0,n.r1)(s.disabled,i.disabled)&&(0,n.r1)(r.enabled,o.enabled)&&(0,n.r1)(r.disabled,o.disabled)&&(0,n.r1)(a.enabled,l.enabled)&&(0,n.r1)(a.disabled,l.disabled)&&(0,n.r1)(u.enabled,d.enabled)&&(0,n.r1)(u.disabled,d.disabled))},u=function(e,t,s){void 0===t&&(t=[]);var n=t.map(e=>parseInt(e,10)||e);for(var r of Object.keys(e)){var i=(null==s?void 0:s[r])||r;if(i=parseInt(i,10)||i,n.length&&!n.includes(i))return!1}return!0}},4751:function(e,t,s){"use strict";s.r(t),s.d(t,{default:function(){return r}});var n=s(9621);class r{constructor(){this.satellite=new n.Wrapper("_satellite")}update(e){var{type:t="didomi-consent-changed",customVariables:s={}}=e;for(var n in s)this.satellite.call("setVar",n,s[n]);this.satellite.call("track",t)}}},4768:function(e,t,s){"use strict";s.d(t,{l:function(){return u}});var n=s(4576),r=s(378),i=s(259),o={enable:!0,daysBeforeShowingAgain:0,closeOnClick:!1,closeOnClickNavigationDelay:0,closeOnScroll:!1,closeOnScrollThresholdType:"percent",closeOnScrollThreshold:30,closeOnClickBackdrop:!1,type:"info",position:"panel-bottom-right",textAlignment:"left",logoAlignment:"center",learnMore:!0,learnMoreURL:null,learnMorePosition:null,showDataProcessing:!1,palette:{notice:{background:"#ffffff",text:null},button:{background:null,border:"rgba(34, 34, 34, 0.2)",text:null},hightlightButton:{background:null,border:"rgba(34, 34, 34, 0.2)",text:null}},canCloseAndIgnore:!1,denyAsPrimary:!0,denyAsLink:!1,denyAppliesToLI:!1,denyOptions:null,enableBulkActionOnPurposes:!1},a=s(1843),u=(0,n.EW)(()=>{var e,t,s,n,u,l=(0,r.or)(o,(null==(e=i.bK.value)?void 0:e.notice)||{});return l.denyAsPrimary=l.denyOptions?"primary"===l.denyOptions.button:!0===l.denyAsPrimary,l.type=null==l||null==(t=l.denyOptions)||!t.button||"none"===(null==l||null==(s=l.denyOptions)?void 0:s.button)||null==l||null==(n=l.denyOptions)||!n.link||null!=l&&l.type?null==l?void 0:l.type:"optin","ccpa"===(null==(u=a.r.value)?void 0:u.name)&&(l.type="optout"),l.position=l.position||"top",l.daysBeforeShowingAgain=parseInt(""+((null==l?void 0:l.daysBeforeShowingAgain)||0),10),l})},4905:function(e,t,s){var n=["responseType","withCredentials","timeout","onprogress"];function r(e,t,s){e[t]=e[t]||s}t.ajax=function(e,t){var i=e.headers||{},o=e.body,a=e.method||(o?"POST":"GET"),u=!1,l=function(e){if(e&&s.g.XDomainRequest&&!/MSIE 1/.test(navigator.userAgent))return new XDomainRequest;if(s.g.XMLHttpRequest)return new XMLHttpRequest}(e.cors);function d(e,s){return function(){u||(t(void 0===l.status?e:l.status,0===l.status?"Error":l.response||l.responseText||s,l),u=!0)}}l.open(a,e.url,!0);var c=l.onload=d(200);l.onreadystatechange=function(){4===l.readyState&&c()},l.onerror=d(null,"Error"),l.ontimeout=d(null,"Timeout"),l.onabort=d(null,"Abort"),o&&(r(i,"X-Requested-With","XMLHttpRequest"),s.g.FormData&&o instanceof s.g.FormData||r(i,"Content-Type","application/x-www-form-urlencoded"));for(var p=0,v=n.length;p{var e,t,s;return null==(e=r.R.value)||!e.length||(0,o.Im)(i.o.value)?[]:null==(t=r.R.value)||null==(s=t.map(e=>{var t;return null==(t=i.o.value)?void 0:t[e]}))?void 0:s.filter(Boolean)})},4971:function(e,t,s){"use strict";s.r(t),s.d(t,{default:function(){return r}});var n=s(5217);class r{constructor(){this.vendorsCalled=[],this.isContainerLoaded=!1,this.containerLoading=new Promise(e=>{(0,n.Tv)(t=>{window._oEa&&window.EA_collector&&window.EA_epmEnd&&(window._oEa.cookieset("didomi_eulerian",1,1),this.isContainerLoaded=!0,e(),t())},100,3e4)})}send(e){var t=window.EA_epmGet().filter(e=>!e.noconsent).map(t=>(-1!==(null==e?void 0:e.didomiVendorsConsent.indexOf(t.name+","))&&-1===this.vendorsCalled.indexOf(t.name)?(t.allowed=!0,t.denied=!1,this.vendorsCalled.push(t.name)):(t.allowed=!1,t.denied=!0),t));t.filter(e=>e.allowed).length>0&&(window.EA_epmSet(t),window.EA_epmEnd())}update(e){var{type:t,hasMadeAnyChoice:s,customVariables:n}=e;(s||"didomi-ready"!==t)&&(this.isContainerLoaded?this.send(n):this.containerLoading.then(()=>{this.send(n)}))}}},5067:function(e,t,s){"use strict";s.d(t,{t:function(){return h}});var n=s(8168),r=s(4576),i=s(8074),o=s(8691),a=s(3412),u=s(7396),l=(0,r.EW)(()=>u.T.value.map(e=>a.m.value[e])),d=s(1843),c=s(6149),p=s(3364),v=e=>e&&"personalDataType"===e.type,h=(0,r.EW)(()=>{var e={purposes:new Set,purposeIds:new Set,purposesBasedOnConsent:new Set,purposeIdsBasedOnConsent:new Set,purposesBasedOnLI:new Set,purposeIdsBasedOnLI:new Set,purposeIdsFirstParty:new Set,spiPurposes:new Set,spiPurposeIds:new Set,spiPurposeIdsBasedOnConsent:new Set,spiPurposeIdsBasedOnLI:new Set};for(var t of c.H$.value.operators){if(Array.isArray(t.legIntPurposeIds))for(var s of t.legIntPurposeIds){var r,h=null==(r=a.m.value)?void 0:r[s],g=v(h)||p.b.value.includes(s);h&&!i.B.value.includes(s)&&(e.purposeIds.add(h.id),e.purposes.add(h),g&&(e.spiPurposes.add(h),e.spiPurposeIds.add(h.id)),"1st_party"===t.type&&e.purposeIdsFirstParty.add(h.id),u.T.value.includes(h.id)||e.purposeIdsBasedOnLI.has(h.id)||(e.purposeIdsBasedOnLI.add(h.id),e.purposesBasedOnLI.add((0,n.A)({},h,{legalBasis:"legitimate_interest"})),g&&e.spiPurposeIdsBasedOnLI.add(h.id)))}if(Array.isArray(t.purposeIds))for(var f of t.purposeIds){var m,b=null==(m=a.m.value)?void 0:m[f],I=v(b)||p.b.value.includes(f);b&&!i.B.value.includes(b.id)&&(e.purposeIds.add(b.id),e.purposes.add(b),I&&(e.spiPurposes.add(b),e.spiPurposeIds.add(b.id)),"1st_party"===t.type&&e.purposeIdsFirstParty.add(b.id),u.T.value.includes(b.id)||e.purposeIdsBasedOnConsent.has(b.id)||(e.purposeIdsBasedOnConsent.add(b.id),e.purposesBasedOnConsent.add((0,n.A)({},b,{legalBasis:"consent"})),I&&e.spiPurposeIdsBasedOnConsent.add(b.id)))}}for(var y of o.x.value)if(!e.purposeIds.has(y.id)){e.purposeIds.add(y.id),e.purposes.add(y);var S,C,w,A,_=v(y)||p.b.value.includes(y.id);if(!e.purposeIdsBasedOnConsent.has(y.id)&&!e.purposeIdsBasedOnLI.has(y.id)&&!u.T.value.includes(y.id))e.purposeIdsFirstParty.add(y.id),null==(S=d.r.value)||null==(C=S.group)||!C.name||"optin"===(null==(w=d.r.value)||null==(A=w.group)?void 0:A.name)||_?(e.purposeIdsBasedOnConsent.add(y.id),e.purposesBasedOnConsent.add((0,n.A)({},y,{legalBasis:"consent"})),_&&(e.spiPurposes.add(y),e.spiPurposeIds.add(y.id),e.spiPurposeIdsBasedOnConsent.add(y.id))):(e.purposeIdsBasedOnLI.add(y.id),e.purposesBasedOnLI.add((0,n.A)({},y,{legalBasis:"legitimate_interest"})))}for(var P of l.value)e.purposeIds.add(P.id),e.purposes.add(P);return{purposes:[...e.purposes],purposeIds:[...e.purposeIds],purposesBasedOnConsent:[...e.purposesBasedOnConsent],purposeIdsBasedOnConsent:[...e.purposeIdsBasedOnConsent],purposesBasedOnLI:[...e.purposesBasedOnLI],purposeIdsBasedOnLI:[...e.purposeIdsBasedOnLI],purposeIdsFirstParty:[...e.purposeIdsFirstParty],spiPurposes:[...e.spiPurposes],spiPurposeIds:[...e.spiPurposeIds],spiPurposeIdsBasedOnConsent:[...e.spiPurposeIdsBasedOnConsent],spiPurposeIdsBasedOnLI:[...e.spiPurposeIdsBasedOnLI]}})},5094:function(e,t,s){"use strict";s.d(t,{M:function(){return o}});var n=s(4576),r=s(152),i=s(6382),o=(0,n.EW)(()=>{var e,t,s="ctv"===(null==(e=(0,i.V)())?void 0:e.platform),n=!(null==(t=r.U.value)||!t.ctvEnabled);return s||n})},5159:function(e,t,s){"use strict";s.d(t,{a:function(){return n}});var n={defaultTCFVersion:2,defaultTCFMinorVersion:2,IABPolicyUrl:"https://iabeurope.eu/iab-europe-transparency-consent-framework-policies/",tcfVersion2_2:2.2,defaultCMPID:7,defaultCMPVersion:1,didomiConsentStringSchemaMinorVersion:1,didomiConsentStringSchemaMajorVersion:2}},5217:function(e,t,s){"use strict";function n(e){return"string"!=typeof e||0===e.indexOf("javascript:")||/^https?:\/\//i.test(e)||(e="http://"+e),e}function r(e){return e.replace(/^https?:\/\//,"")}function i(){return(new Date).toISOString()}function o(){return"6e903234de01d30e6a306f02442e95c9e91c20ed"}function a(e){var t=Math.round((new Date-e)/864e5);if(t<0)throw new Error("The date "+e+" cannot be in the future");return t}function u(){return/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream}function l(e,t,s){if(!e||s{n+=t,e(()=>clearInterval(r)),n>=s&&clearInterval(r)},t);return!0}function d(e,t){void 0===t&&(t="");var s={},n=document.createElement("a");n.href=e;for(var r=n.search.substring(1).split("&"),i=0;ie.split("=")).reduce((e,t)=>{var[s,n]=t;return e[s]=n,e},{})[e]}s.d(t,{Bf:function(){return n},FY:function(){return c},HF:function(){return o},Tv:function(){return l},b5:function(){return r},bs:function(){return i},jv:function(){return a},un:function(){return u},vA:function(){return d}})},5236:function(e,t,s){"use strict";s.d(t,{M:function(){return o}});var n=s(4576),r=s(7396),i=s(2920),o=(0,n.EW)(()=>{var e;return(null==(e=i.$.value)?void 0:e.reduce((e,t)=>{var{id:s,purposeIds:n}=t;return n.length>0&&n.every(e=>r.T.value.includes(e))&&e.push(s),e},[]))||[]})},5427:function(e,t,s){"use strict";s.r(t),s.d(t,{getApplicableProviders:function(){return r}});var n=new Set(["adobe","gtm","tealium","commandersact","eulerian","eulerian-v2"]),r=e=>{var t,s=new Set(["didomi"]);return null!=e&&e.provider?(null==(t=e.provider.split("|"))||t.forEach(e=>{"didomi"!==e&&(n.has(e)?s.add(e):console.error('Didomi SDK - The tag manager "'+e+'" is not supported. Possible values: '+[...n].join(", ")))}),s):s}},5560:function(e,t,s){"use strict";s.d(t,{q:function(){return i}});var n=s(4576),r=s(5159),i=(0,n.vP)({majorVersion:r.a.defaultTCFVersion,minorVersion:r.a.defaultTCFMinorVersion,semVersion:parseFloat(r.a.defaultTCFVersion+"."+r.a.defaultTCFMinorVersion)})},5604:function(e,t,s){var n={"./ar-JO/ctv/":[2068,"ui-ctv0"],"./ar/ctv/":[2084,"ui-ctv1"],"./az-AZ/ctv/":[9556,"ui-ctv2"],"./bg/ctv/":[708,"ui-ctv3"],"./bn-IN/ctv/":[3789,"ui-ctv4"],"./ca/ctv/":[1943,"ui-ctv5"],"./cs/ctv/":[8149,"ui-ctv6"],"./da/ctv/":[3223,"ui-ctv7"],"./de-AT/ctv/":[8666,"ui-ctv8"],"./de-CH/ctv/":[6212,"ui-ctv9"],"./de/ctv/":[7864,"ui-ctv10"],"./el/ctv/":[4114,"ui-ctv11"],"./en-GB/ctv/":[9722,"ui-ctv12"],"./en-NZ/ctv/":[6531,"ui-ctv13"],"./en/ctv/":[6924,"ui-ctv14"],"./es/ctv/":[4295,"ui-ctv15"],"./et/ctv/":[4346,"ui-ctv16"],"./fi/ctv/":[1642,"ui-ctv17"],"./fil/ctv/":[4050,"ui-ctv18"],"./fr-BE/ctv/":[7431,"ui-ctv19"],"./fr-CA/ctv/":[3098,"ui-ctv20"],"./fr/ctv/":[9067,"ui-ctv21"],"./he/ctv/":[5396,"ui-ctv22"],"./hi-IN/ctv/":[6060,"ui-ctv23"],"./hr/ctv/":[2517,"ui-ctv24"],"./hu/ctv/":[6948,"ui-ctv25"],"./id/ctv/":[9110,"ui-ctv26"],"./it/ctv/":[3446,"ui-ctv27"],"./ja/ctv/":[4390,"ui-ctv28"],"./ko/ctv/":[4657,"ui-ctv29"],"./lt/ctv/":[7023,"ui-ctv30"],"./lv/ctv/":[7469,"ui-ctv31"],"./mk-MK/ctv/":[1730,"ui-ctv32"],"./ms/ctv/":[9679,"ui-ctv33"],"./nl-BE/ctv/":[3521,"ui-ctv34"],"./nl/ctv/":[5533,"ui-ctv35"],"./no/ctv/":[4592,"ui-ctv36"],"./pl/ctv/":[9827,"ui-ctv37"],"./pt-BR/ctv/":[7642,"ui-ctv38"],"./pt/ctv/":[2203,"ui-ctv39"],"./ro/ctv/":[9692,"ui-ctv40"],"./ru/ctv/":[3738,"ui-ctv41"],"./sk/ctv/":[7693,"ui-ctv42"],"./sl/ctv/":[3340,"ui-ctv43"],"./sr-Latn/ctv/":[959,"ui-ctv44"],"./sr/ctv/":[110,"ui-ctv45"],"./sv/ctv/":[6618,"ui-ctv46"],"./sw/ctv/":[2081,"ui-ctv47"],"./th/ctv/":[2539,"ui-ctv48"],"./tr/ctv/":[865,"ui-ctv49"],"./uk/ctv/":[3487,"ui-ctv50"],"./vi/ctv/":[9562,"ui-ctv51"],"./zh-CN/ctv/":[5349,"ui-ctv52"],"./zh-TW/ctv/":[265,"ui-ctv53"]};function r(e){if(!s.o(n,e))return Promise.resolve().then(function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t});var t=n[e],r=t[0];return s.e(t[1]).then(function(){return s(r)})}r.keys=function(){return Object.keys(n)},r.id=5604,e.exports=r},5787:function(e,t,s){"use strict";s.d(t,{T:function(){return a}});var n=s(8168),r=s(4576),i=s(6784),o=s(9757),a=(0,r.EW)(()=>{var e,t,s;return null!=(e=i.S.value)&&null!=(t=e.purposes)&&t.length?null==(s=i.S.value)?void 0:s.purposes.map(e=>(0,n.A)({},e,{id:o.RQ[e.id],namespace:"iab"})):[]})},5914:function(e,t,s){var n;e=s.nmd(e),function(){var r=t,i=(e&&e.exports,"object"==typeof s.g&&s.g);i.global!==i&&i.window;var o=function(e){this.message=e};(o.prototype=new Error).name="InvalidCharacterError";var a=function(e){throw new o(e)},u="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",l=/[\t\n\f\r ]/g,d={encode:function(e){e=String(e),/[^\0-\xFF]/.test(e)&&a("The string to be encoded contains characters outside of the Latin1 range.");for(var t,s,n,r,i=e.length%3,o="",l=-1,d=e.length-i;++l>18&63)+u.charAt(r>>12&63)+u.charAt(r>>6&63)+u.charAt(63&r);return 2==i?(t=e.charCodeAt(l)<<8,s=e.charCodeAt(++l),o+=u.charAt((r=t+s)>>10)+u.charAt(r>>4&63)+u.charAt(r<<2&63)+"="):1==i&&(r=e.charCodeAt(l),o+=u.charAt(r>>2)+u.charAt(r<<4&63)+"=="),o},decode:function(e){var t=(e=String(e).replace(l,"")).length;t%4==0&&(t=(e=e.replace(/==?$/,"")).length),(t%4==1||/[^+a-zA-Z0-9/]/.test(e))&&a("Invalid character: the string to be decoded is not correctly encoded.");for(var s,n,r=0,i="",o=-1;++o>(-2*r&6)));return i},version:"0.1.0"};void 0===(n=function(){return d}.call(t,s,t,e))||(e.exports=n)}()},5968:function(e,t,s){"use strict";s.d(t,{z:function(){return r}});var n=s(3412),r=e=>{var t;return null==(t=n.m.value)?void 0:t[e]}},6024:function(e,t,s){"use strict";s.d(t,{Nm:function(){return r},cO:function(){return u},cb:function(){return i},yS:function(){return a}});var n=s(378),r="en",i=["ca","de","en","es","fr","hr","it","nl","pt","fi","cs","pl","ro","el","hu","da","sk","bg","sl","lt","sv","et","lv","tr","ru","uk","ja","vi","ar","zh-TW","zh-CN","sr","ko","th","ms","az-AZ","bn-IN","fil","he","hi-IN","id","mk-MK","pt-BR","sw","no","ar-JO","de-AT","de-CH","en-GB","en-NZ","fr-BE","fr-CA","nl-BE","sr-Latn","eu","tl","gl","mt","sq","ka","bs","cy","be","en-CA"],o={zh:"CN",az:"AZ",bn:"IN",hi:"IN",mk:"MK",pt:"BR"},a=e=>{if(!(0,n.Kg)(e))return null;var[t]=e.split("-"),s=o[t];return s?t+"-"+s:null},u=e=>-1!==i.indexOf(e)?e:e.slice(0,2)},6067:function(e,t,s){"use strict";s.r(t),s.d(t,{getApplicableProviders:function(){return r}});var n=new Set(["google","amazon","gcm","microsoft","salesforce-dmp","wordpress"]),r=e=>{var t=new Set;return null!=e&&e.vendors?(Object.keys(e.vendors).forEach(s=>{var r;!0===(null==(r=e.vendors[s])?void 0:r.enable)&&(n.has(s)?t.add(s):console.error('Didomi SDK - The integration "'+s+'" is not supported. Possible values: '+[...n].join(", ")))}),t):t}},6104:function(e,t,s){"use strict";s.d(t,{O:function(){return r}});var n=s(259),r=(0,s(4576).EW)(()=>{var e,t,s=null==(e=n.bK.value)||null==(t=e.cookies)?void 0:t.iabCookieName;return"string"==typeof s&&s.length>0?s:"euconsent-v2"})},6139:function(e,t,s){"use strict";s.r(t),s.d(t,{default:function(){return r}});var n=s(5217);class r{constructor(){this.isContainerLoaded=!1,this.containerLoading=new Promise(e=>{(0,n.Tv)(t=>{window._oEa&&window.EA_collector&&(this.isContainerLoaded=!0,e(),t())},100,3e4)})}send(e){var t=null==e?void 0:e.didomiVendorsConsent.split(",").filter(e=>-1===e.indexOf("iab:")).join(",");window.EA_collector(["cmp-customvendor-allowed",t])}update(e){var{customVariables:t}=e;this.isContainerLoaded?this.send(t):this.containerLoading.then(()=>{this.send(t)})}}},6149:function(e,t,s){"use strict";s.d(t,{H$:function(){return n.H}});var n=s(6406)},6217:function(e,t,s){"use strict";s.d(t,{D:function(){return a}});var n=s(152),r=s(2198),i=s(4576),o=r.t.map(e=>e.id).concat("google"),a=(0,i.EW)(()=>{var e,t,s=null==n.U||null==(e=n.U.value)||null==(t=e.vendors)?void 0:t.didomi;return s&&Array.isArray(s)?s.filter(e=>o.includes(e)):[]})},6382:function(e,t,s){"use strict";s.d(t,{V:function(){return n}});var n=()=>{var e,t,s=null==(e=window.didomiRemoteConfig)||null==(t=e.notices)?void 0:t[0];return s&&"object"==typeof s?s:null}},6406:function(e,t,s){"use strict";s.d(t,{H:function(){return d}});var n=s(8168),r=s(4576),i=s(2073),o=s(6559),a=s(7396),u=s(8975),l=s(378),d=(0,r.EW)(()=>{var e,t={firstPartyOperators:[],firstPartyOperatorIds:[],thirdPartyOperators:[],thirdPartyOperatorIds:[],operators:[],operatorsByProcessingRule:{firstPartyOperatorIds:{optin:[],optout:[],essential:[],specialPurposes:[]},thirdPartyOperatorIds:{optin:[],optout:[],essential:[],specialPurposes:[]},operatorIds:{optin:[],optout:[],essential:[],specialPurposes:[]}},operatorIdsByCollectionMethod:{optin:[],optout:[],essential:[],specialPurposes:[]},operatorIdsWithAtLeastOneOptinPurpose:[],operatorIdsWithAtLeastOneOptoutPurpose:[]};if(null==(e=i.R.value)||!e.length||(0,l.Im)(o.o.value))return t;var s=function(e){var s=o.o.value[e];if(s){var{operatorTypeIdsKey:r,operatorTypeKey:i}="1st_party"===s.type?{operatorTypeIdsKey:"firstPartyOperatorIds",operatorTypeKey:"firstPartyOperators"}:{operatorTypeIdsKey:"thirdPartyOperatorIds",operatorTypeKey:"thirdPartyOperators"},l=((e,t)=>{var s,n=new Set,r=[];return e.purposeIds&&e.purposeIds.length>0&&(r.push(...e.purposeIds),e.purposeIds.every(e=>t.includes(e))?n.add("essential"):n.add("optin")),e.legIntPurposeIds&&e.legIntPurposeIds.length>0&&(r.push(...e.legIntPurposeIds),e.legIntPurposeIds.every(e=>t.includes(e))?n.add("essential"):n.add("optout")),r.some(e=>t.includes(e))&&n.add("essential"),0===n.size&&(null==(s=e.specialPurposeIds)?void 0:s.length)>0&&n.add("specialPurposes"),[...n]})(s,a.T.value),d=((e,t,s)=>{var n=new Set;for(var r of t)for(var i of Object.keys(s)){var o=s[i].collect.operators[e];o.enable&&(Array.isArray(o.as)&&o.as.length?o.as.includes(r)&&n.add(i):i===r&&n.add(r))}return[...n]})(i,l,u.B.value),c=(0,n.A)({},s,{processingRules:l,collectionMethods:d});t[i].push(c),t.operators.push(c),t[r].push(e),d.forEach(s=>t.operatorIdsByCollectionMethod[s].push(e)),l.forEach(s=>{t.operatorsByProcessingRule[r][s].push(e),t.operatorsByProcessingRule.operatorIds[s].push(e)}),s.legIntPurposeIds&&s.legIntPurposeIds.length>0&&t.operatorIdsWithAtLeastOneOptoutPurpose.push(e),s.purposeIds&&s.purposeIds.length>0&&t.operatorIdsWithAtLeastOneOptinPurpose.push(e)}};for(var r of i.R.value)s(r);return t})},6447:function(e,t){"use strict";function s(e,t){if(null!=t){if(t.then)return t.then(e.setState);e.setState(t)}}},6559:function(e,t,s){"use strict";s.d(t,{o:function(){return I}});var n=s(8168),r=s(4576),i=s(2198),o=s(1062),a=s(8),u=s(9124),l=(e,t,s)=>{if(!s||0===s.length)return[];var n=((e,t)=>e.flexiblePurposeIds.filter(s=>e[t].includes(s)))(e,"req-consent"===t?"legIntPurposeIds":"purposeIds");return n.filter(n=>{var r=(0,u.N)(n,e.id,"disallow",s),i=(0,u.N)(n,e.id,t,s);return!r&&i})},d=s(7071),c=s(378),p=(0,r.EW)(()=>{var{vendors:e}=o.A.value||{};if(!e||!Array.isArray(e))return[];var t,s,r=i.t.map(e=>(e=>{if("iab"===e.namespace){var t=(0,c.Et)(e.id)?e.id:parseInt(e.id,10);if(t)return t}else if(e.namespaces){if((0,c.Et)(e.namespaces.iab))return e.namespaces.iab;if((0,c.Et)(e.namespaces.iab2))return e.namespaces.iab2}return null})(e)),p=e.filter(e=>!r.includes(e.id));return t=p,null!=(s=a.Z.value)&&s.length?t.reduce((e,t)=>{var r=(0,n.A)({},t,{purposeIds:t.purposeIds.filter(e=>!(0,u.N)(e,t.id,"req-li",s,!1)),legIntPurposeIds:t.legIntPurposeIds.filter(e=>!(0,u.N)(e,t.id,"req-consent",s,!1)),specialFeatureIds:t.specialFeatureIds.filter(e=>!(0,u.N)(e,t.id,"disallow",s,!0))});return r.purposeIds=(0,d.$)([...r.purposeIds,...l(t,"req-consent",s)]),r.legIntPurposeIds=(0,d.$)([...r.legIntPurposeIds,...l(t,"req-li",s)]),(e=>0===e.purposeIds.length&&0===e.legIntPurposeIds.length&&0===e.specialPurposeIds.length)(r)||e.push(r),e},[]):t}),v=s(9757),h={id:"google",name:"Google Advertising Products",policyUrl:"https://policies.google.com/privacy",namespace:"didomi"},g=s(5217),f=s(2920),m=s(152),b=(e,t)=>{e&&t&&(t.purposeIds=e.purposeIds,t.legIntPurposeIds=e.legIntPurposeIds)},I=(0,r.EW)(()=>{var e,t,s,r=(null==(e=m.U.value)||null==(t=e.vendors)?void 0:t.overrideVendors)||[],o=Object.keys(r),a=[...i.t,...null==(s=p.value)?void 0:s.map(e=>(e=>{var t=[];return t.push(...(e.purposeIds||[]).map(e=>(0,v.KX)(e))),t.push(...(e.specialFeatureIds||[]).map(e=>(0,v.PL)(e))),(0,n.A)({},e,{namespace:"iab",purposeIds:t,legIntPurposeIds:(e.legIntPurposeIds||[]).map(e=>(0,v.KX)(e)),flexiblePurposeIds:(e.flexiblePurposeIds||[]).map(e=>(0,v.KX)(e))},e.id===v.le.google&&(0,n.A)({},h,{namespaces:{iab2:v.le.google}}))})(e)),...f.$.value],u={},l=a.find(e=>"google"===e.id);for(var d of a){if(d.policyUrl&&(d.policyUrl=(0,g.Bf)(d.policyUrl)),"custom"===d.namespace){var c,I;(0,v.cu)(d)&&b(l,d);var y,S=(null==d||null==(c=d.namespaces)?void 0:c.didomi)||(null==d||null==(I=d.namespaces)?void 0:I.iab2);if(!!u[S])u[S]=(0,n.A)({},u[S],{namespaces:(0,n.A)({},null==(y=u[S])?void 0:y.namespaces,null==d?void 0:d.namespaces)});else u[d.id]=d}else"didomi"===d.namespace?((0,v.cu)(d)&&b(l,d),u[d.id]=d):u[d.id]=d;o.includes(d.id)&&(u[d.id]=(0,n.A)({},u[d.id],r[d.id]))}return u})},6691:function(e,t,s){"use strict";function n(){var e=Math.round((new Date).getTime()).toString(16);return(e.substring(0,8)+"-"+e.substring(8)+"x-6xxx-yxxx-xxxxxxxxxxxx").replace(/[xy]/g,e=>{var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)})}s.d(t,{A:function(){return n}})},6700:function(e){"use strict";var t=function(){return t=Object.assign||function(e){for(var t,s=1,n=arguments.length;s0!==e.length&&0!==t.length&&e.every(e=>-1!==t.indexOf(e))},6781:function(e,t,s){"use strict";s.d(t,{At:function(){return l},Lq:function(){return a},w6:function(){return u}});var n=s(8168),r=s(378),i=s(4382),o=s(3682),a="1~7.12.35.62.66.70.89.93.108.122.144.149.153.162.167.184.196.221.241.253.259.272.311.317.323.326.338.348.350.415.440.448.449.482.486.491.494.495.540.571.574.585.587.588.590.725.733.780.817.839.864.867.932.938.981.986.1031.1033.1051.1092.1097.1126.1127.1170.1171.1186.1201.1204.1205.1211.1215.1230.1232.1236.1248.1276.1290.1301.1313.1344.1364.1365.1415.1419.1428.1449.1451.1509.1558.1564.1570.1577.1591.1651.1669.1712.1716.1720.1721.1725.1733.1753.1765.1799.1810.1834.1842.1870.1878.1889.1896.1911.1922.1929.2012.2072.2078.2079.2109.2177.2202.2253.2290.2299.2316.2357.2373.2526.2531.2571.2572.2575.2628.2663.2677.2776.2778.2779.2985.3033.3052.3154",u=(e,t)=>{if(0===t.length)return null;var s=t.map(e=>{var{id:t}=e;return t}),n=d(t),r=e.vendors.enabled.filter(e=>-1!==s.indexOf(e)).map(e=>n[e]),o=e.vendors_li.enabled.filter(e=>-1!==s.indexOf(e)).map(e=>n[e]);return(0,i.h)(r)+"."+(0,i.h)(o)},l=(e,t)=>{var[s,n]=e.split("."),r=c(t),i=(0,o.v)(s).map(e=>r[e]),a=(0,o.v)(n).map(e=>r[e]),u=t.map(e=>{var{id:t}=e;return t});return{vendors:{enabled:i.filter(e=>e),disabled:u.filter(e=>-1===i.indexOf(e))},vendors_li:{enabled:a.filter(e=>e),disabled:u.filter(e=>-1===a.indexOf(e))}}},d=e=>e.reduce((e,t)=>(0,n.A)({},e,{[t.id]:(0,r.Jt)(t,"namespaces.google.id")}),{}),c=e=>e.reduce((e,t)=>(0,n.A)({},e,{[(0,r.Jt)(t,"namespaces.google.id")]:t.id}),{})},6784:function(e,t,s){"use strict";s.d(t,{S:function(){return c}});var n={};s.r(n),s.d(n,{iabFeatures:function(){return l},iabSpecialPurposes:function(){return u},iabStacks:function(){return d},purposes:function(){return o},specialFeatures:function(){return a}});var r=s(4576),i=JSON.parse('{"mP":[{"id":1,"name":"purpose_1_name","description":"purpose_1_description","illustrations":["purpose_1_illustrations_0"]},{"id":2,"name":"purpose_2_name","description":"purpose_2_description","illustrations":["purpose_2_illustrations_0","purpose_2_illustrations_1"]},{"id":3,"name":"purpose_3_name","description":"purpose_3_description","illustrations":["purpose_3_illustrations_0","purpose_3_illustrations_1"]},{"id":4,"name":"purpose_4_name","description":"purpose_4_description","illustrations":["purpose_4_illustrations_0","purpose_4_illustrations_1"]},{"id":5,"name":"purpose_5_name","description":"purpose_5_description","illustrations":["purpose_5_illustrations_0","purpose_5_illustrations_1"]},{"id":6,"name":"purpose_6_name","description":"purpose_6_description","illustrations":["purpose_6_illustrations_0","purpose_6_illustrations_1"]},{"id":7,"name":"purpose_7_name","description":"purpose_7_description","illustrations":["purpose_7_illustrations_0","purpose_7_illustrations_1"]},{"id":8,"name":"purpose_8_name","description":"purpose_8_description","illustrations":["purpose_8_illustrations_0","purpose_8_illustrations_1"]},{"id":9,"name":"purpose_9_name","description":"purpose_9_description","illustrations":["purpose_9_illustrations_0","purpose_9_illustrations_1"]},{"id":10,"name":"purpose_10_name","description":"purpose_10_description","illustrations":["purpose_10_illustrations_0","purpose_10_illustrations_1"]},{"id":11,"name":"purpose_11_name","description":"purpose_11_description","illustrations":["purpose_11_illustrations_0","purpose_11_illustrations_1"]}],"P2":[{"id":1,"name":"special_purpose_1_name","description":"special_purpose_1_description","illustrations":["special_purpose_1_illustrations_0"]},{"id":2,"name":"special_purpose_2_name","description":"special_purpose_2_description","illustrations":["special_purpose_2_illustrations_0"]},{"id":3,"name":"special_purpose_3_name","description":"special_purpose_3_description","illustrations":["special_purpose_3_illustrations_0"]}],"qT":[{"id":1,"name":"feature_1_name","description":"feature_1_description","illustrations":[]},{"id":2,"name":"feature_2_name","description":"feature_2_description","illustrations":[]},{"id":3,"name":"feature_3_name","description":"feature_3_description","illustrations":[]}],"nK":[{"id":1,"name":"special_feature_1_name","description":"special_feature_1_description","illustrations":[]},{"id":2,"name":"special_feature_2_name","description":"special_feature_2_description","illustrations":[]}],"I3":[{"id":1,"name":"stack_1_name","description":"stack_1_description"},{"id":2,"name":"stack_2_name","description":"stack_2_description"},{"id":3,"name":"stack_3_name","description":"stack_3_description"},{"id":4,"name":"stack_4_name","description":"stack_4_description"},{"id":5,"name":"stack_5_name","description":"stack_5_description"},{"id":6,"name":"stack_6_name","description":"stack_6_description"},{"id":7,"name":"stack_7_name","description":"stack_7_description"},{"id":8,"name":"stack_8_name","description":"stack_8_description"},{"id":9,"name":"stack_9_name","description":"stack_9_description"},{"id":10,"name":"stack_10_name","description":"stack_10_description"},{"id":11,"name":"stack_11_name","description":"stack_11_description"},{"id":12,"name":"stack_12_name","description":"stack_12_description"},{"id":13,"name":"stack_13_name","description":"stack_13_description"},{"id":14,"name":"stack_14_name","description":"stack_14_description"},{"id":15,"name":"stack_15_name","description":"stack_15_description"},{"id":16,"name":"stack_16_name","description":"stack_16_description"},{"id":17,"name":"stack_17_name","description":"stack_17_description"},{"id":18,"name":"stack_18_name","description":"stack_18_description"},{"id":19,"name":"stack_19_name","description":"stack_19_description"},{"id":20,"name":"stack_20_name","description":"stack_20_description"},{"id":21,"name":"stack_21_name","description":"stack_21_description"},{"id":22,"name":"stack_22_name","description":"stack_22_description"},{"id":23,"name":"stack_23_name","description":"stack_23_description"},{"id":24,"name":"stack_24_name","description":"stack_24_description"},{"id":25,"name":"stack_25_name","description":"stack_25_description"},{"id":26,"name":"stack_26_name","description":"stack_26_description"},{"id":27,"name":"stack_27_name","description":"stack_27_description"},{"id":28,"name":"stack_28_name","description":"stack_28_description"},{"id":29,"name":"stack_29_name","description":"stack_29_description"},{"id":30,"name":"stack_30_name","description":"stack_30_description"},{"id":31,"name":"stack_31_name","description":"stack_31_description"},{"id":32,"name":"stack_32_name","description":"stack_32_description"},{"id":33,"name":"stack_33_name","description":"stack_33_description"},{"id":34,"name":"stack_34_name","description":"stack_34_description"},{"id":35,"name":"stack_35_name","description":"stack_35_description"},{"id":36,"name":"stack_36_name","description":"stack_36_description"},{"id":37,"name":"stack_37_name","description":"stack_37_description"},{"id":38,"name":"stack_38_name","description":"stack_38_description"},{"id":39,"name":"stack_39_name","description":"stack_39_description"},{"id":40,"name":"stack_40_name","description":"stack_40_description"},{"id":41,"name":"stack_41_name","description":"stack_41_description"},{"id":42,"name":"stack_42_name","description":"stack_42_description"},{"id":43,"name":"stack_43_name","description":"stack_43_description"},{"id":44,"name":"stack_44_name","description":"stack_44_description"},{"id":45,"name":"stack_45_name","description":"stack_45_description"}]}'),{mP:o,nK:a,P2:u,qT:l,I3:d}=i,c=(0,r.vP)(n)},6923:function(e,t,s){"use strict";s.d(t,{X:function(){return i}});var n=s(4576),r=s(152),i=(0,n.EW)(()=>{var e,t,s;return!1!==(null==(e=r.U.value)||null==(t=e.vendors)||null==(s=t.iab)?void 0:s.enabled)})},7057:function(e,t,s){"use strict";s.d(t,{A:function(){return n}});class n{constructor(e,t,s){this.store=e,this.actions=t,this.services=s||{}}}},7071:function(e,t,s){"use strict";s.d(t,{$:function(){return n},d:function(){return r}});var n=e=>[...new Set(e)],r=e=>{if(0!==e.length){var[t,...s]=e;return s.every(e=>e===t)?t:null}}},7092:function(e,t){"use strict";function s(e,t){return function(){for(var s=[],n=0;n3;)t.shift();return 3===t.length&&(t[1].length>2&&t[2].length>2||-1===i.indexOf(t[1])||t[1].length>3&&-1!==r.indexOf(t[2]))&&t.shift(),t.join(".")}function a(e,t,s,n,r,i,o){var a=new Date;a.setDate(a.getDate()+(s||365));var u=[e+"="+t,"expires="+a.toUTCString(),"path="+(o||"/")];n&&u.push("domain="+n),r&&u.push("SameSite="+r),!0===i&&"https:"===location.protocol&&u.push("Secure"),document.cookie=u.join(";")}function u(e,t,s){var n=[e+"=","expires=Thu, 01 Jan 1970 00:00:01 GMT","path="+(s||"/")];t&&n.push("domain="+t),document.cookie=n.join(";")}function l(e){return null==e?void 0:e.split(".")[0]}function d(e){var t=null==e?void 0:e.split(".")[2];return t&&(t=t.split("~")[0]),t}function c(e){return null==e?void 0:e.split(".")[1]}function p(e){return null==e?void 0:e.split("~")[1]}function v(e){var t=null==e?void 0:e.split(".")[3];if(t){var s=parseInt(t.split("~")[0],10);if(s)return new Date(s).toISOString()}return null}},7396:function(e,t,s){"use strict";s.d(t,{T:function(){return i}});var n=s(152),r=s(3412),i=(0,s(4576).EW)(()=>{var e,t=null==(e=n.U.value)?void 0:e.essentialPurposes;return t&&Array.isArray(t)?t.filter(Boolean).filter(e=>{var t,s;return"custom"===(null==(t=r.m.value)||null==(s=t[e])?void 0:s.namespace)}):[]})},7447:function(e,t,s){"use strict";s.d(t,{a:function(){return v}});var n=s(4576),r=s(8200),i=s(7396),o=s(5067),a=s(8623),u=s(4640),l=s(2321),d=s(6149),c=s(8975),p=function(e,t,s,n,r){void 0===e&&(e=[]),void 0===t&&(t=[]),void 0===s&&(s=[]),void 0===n&&(n=[]),void 0===r&&(r=[]);var i=[...e,...r],o=i.reduce((e,t)=>(e[t]=!0,e),{});t.forEach(e=>{o[e]=!1});var a=s.reduce((e,t)=>(e[t]=!0,e),{});return n.forEach(e=>{a[e]=!1}),{purposesById:o,purposes:{enabled:i,disabled:t},vendorsById:a,vendors:{enabled:s,disabled:n}}},v=(0,n.EW)(()=>{var e,t,s,n,v,h,g,f,m=r.I.value,b=(null==m||null==(e=m.purposes)?void 0:e.enabled)||[],I=(null==m||null==(t=m.purposes)?void 0:t.disabled)||[],y=(null==m||null==(s=m.vendors)?void 0:s.enabled)||[],S=(null==m||null==(n=m.vendors)?void 0:n.disabled)||[],C=(null==m||null==(v=m.purposes_li)?void 0:v.enabled)||[],w=(null==m||null==(h=m.purposes_li)?void 0:h.disabled)||[],A=(null==m||null==(g=m.vendors_li)?void 0:g.enabled)||[],_=(null==m||null==(f=m.vendors_li)?void 0:f.disabled)||[],P=b.length>0||I.length>0||y.length>0||S.length>0||C.length>0||w.length>0||A.length>0||_.length>0,E=[...new Set([...d.H$.value.operatorIdsWithAtLeastOneOptinPurpose,...d.H$.value.operatorIdsWithAtLeastOneOptoutPurpose])],O=c.B.value.optin.initial.purposes.includeOnlySPI?o.t.value.spiPurposeIds:o.t.value.purposeIdsBasedOnConsent;return P||(b=c.B.value.optin.initial.purposes.value===c.k.ENABLED?O:[],I=c.B.value.optin.initial.purposes.value===c.k.DISABLED?O:[],y=c.B.value.optin.initial.operators.value===c.k.ENABLED?c.B.value.optin.initial.operators.includeAllProcessingRules?E:d.H$.value.operatorIdsWithAtLeastOneOptinPurpose:[],S=c.B.value.optin.initial.operators.value===c.k.DISABLED?c.B.value.optin.initial.operators.includeAllProcessingRules?E:d.H$.value.operatorIdsWithAtLeastOneOptinPurpose:[],C=c.B.value.optout.initial.purposes.value===c.k.ENABLED?o.t.value.purposeIdsBasedOnLI:[],w=c.B.value.optout.initial.purposes.value===c.k.DISABLED?o.t.value.purposeIdsBasedOnLI:[],A=c.B.value.optout.initial.operators.value===c.k.ENABLED?c.B.value.optin.initial.operators.includeAllProcessingRules?E:d.H$.value.operatorIdsWithAtLeastOneOptoutPurpose:[],_=c.B.value.optout.initial.operators.value===c.k.DISABLED?c.B.value.optin.initial.operators.includeAllProcessingRules?E:d.H$.value.operatorIdsWithAtLeastOneOptoutPurpose:[]),a.x.value.isUserOptedOut&&(b=[],I=o.t.value.purposeIdsBasedOnConsent,C=[],w=o.t.value.purposeIdsBasedOnLI,y=[],S=d.H$.value.operatorIdsWithAtLeastOneOptinPurpose,A=[],_=d.H$.value.operatorIdsWithAtLeastOneOptoutPurpose),l.G.value.bots&&!1===l.G.value.bots.consentRequired&&u.w.value&&(b=o.t.value.purposeIdsBasedOnConsent,I=[],C=o.t.value.purposeIdsBasedOnLI,w=[],y=d.H$.value.operatorIdsWithAtLeastOneOptinPurpose,S=[],A=d.H$.value.operatorIdsWithAtLeastOneOptoutPurpose,_=[]),{byLegalBasis:{consent:p(b,I,y,S,i.T.value),li:p(C,w,A,_,i.T.value)},hasMadeAnyChoice:P}})},7483:function(e,t,s){"use strict";s.d(t,{lB:function(){return v},dZ:function(){return g},M9:function(){return h}});var n=s(4576),r=s(6104),i=s(4609),o=s(2140),a=s(2985),u=s(418),l=s(259),d=s(8557),c=s(1843),p=(0,n.EW)(()=>{var e,t,s=null==(e=c.r.value)?void 0:e.name;if(null!=(t=d.O.value)&&t.isDidomiConsentStringEncodingEnabled){if(s&&"gdpr"!==s&&"ccpa"!==s){var n,r,i=null==(n=c.r.value)||null==(r=n.cookies)?void 0:r.didomiTokenCookieName;return"string"==typeof i&&i.length>0?i:"didomi_token_"+s}var o,a,u=null==(o=l.bK.value)||null==(a=o.cookies)?void 0:a.didomiTokenCookieName;return"string"==typeof u&&u.length>0?u:"didomi_token"}}),v=(0,n.vP)({didomiToken:null,iabConsentString:null});(0,n.QZ)(()=>{var e;l.bK.value&&(v.value=(0,o._k)(a.x.value,r.O.value,null==(e=i.G.value)?void 0:e.sources,p.value))});var h=e=>{var t,s,n,l,d,c,p,h,{didomiToken:g,iabConsentString:f}=e;g&&(0,o.NT)(a.x.value,g,null==(t=i.G.value)?void 0:t.local.customDomain,null==(s=i.G.value)?void 0:s.sources,!1,null==(n=i.G.value)?void 0:n.sameSiteRequired,u.t.value.durationInDays,null==(l=i.G.value)?void 0:l.secure);f&&(0,o.NT)(r.O.value,f,null==(d=i.G.value)?void 0:d.local.customDomain,null==(c=i.G.value)?void 0:c.sources,!1,null==(p=i.G.value)?void 0:p.sameSiteRequired,u.t.value.durationInDays,null==(h=i.G.value)?void 0:h.secure);v.value={didomiToken:g||v.peek().didomiToken,iabConsentString:f||v.peek().iabConsentString}},g=()=>{var e;(0,o.MM)(r.O.value,null==(e=i.G.value)?void 0:e.local.customDomain),v.value={didomiToken:v.peek().didomiToken,iabConsentString:null}}},7488:function(e,t,s){"use strict";s.d(t,{h:function(){return o}});var n=s(4576),r=s(6024),i=s(259),o=(0,n.EW)(()=>{var e,t=null==(e=i.bK.value)?void 0:e.languages;if(!t)return r.cb;if(Array.isArray(t.enabled)&&t.enabled.length>0){var s=[];for(var n of t.enabled)if(r.cb.includes(n))s.push(n);else{var o=(0,r.yS)(n);o?s.push(o):console.error("Didomi - The language "+n+" is not supported")}if(s.length>0)return s}})},7531:function(e,t,s){"use strict";s.d(t,{E:function(){return o}});var n=s(4576),r=s(6559),i=s(378),o=(0,n.EW)(()=>(0,i.zu)(r.o.value)||[])},7565:function(e,t){"use strict";var s={instance:null},n=[];function r(e,t){var s=JSON.parse(t.state),r=Object.keys(s.actionsById).filter(function(e){return parseInt(e,10)<=t.payload.id}),i=0;setTimeout(function t(){!function(t){if("initialState"===t.type)e.setState(s.computedStates[0].state);else{var r=n.find(function(e){return t.type===e.key});r&&r.fn()}}(s.actionsById[r[i]].action),++i>=r.length||setTimeout(t,10)},0)}function i(e){"DISPATCH"===e.type&&("JUMP_TO_ACTION"===e.payload.type||"JUMP_TO_STATE"===e.payload.type?this.setState(JSON.parse(e.state)):"TOGGLE_ACTION"===e.payload.type&&r(this,e))}function o(e,t){if(!t.initialized){var n=i.bind(e);s.instance&&s.instance.subscribe(n),t.initialized=!0}}var a=function(e){return function(t,r){return function(i){var u=t(i);o(e,a),function(e,t){var s=n.find(function(t){return e.name===t.key});s||(s={key:e.name,fn:t},n.push(s))}(i,function(){return t(i)});var l={type:i.name,args:r};return u&&u.then?u.then(function(){return s.instance&&s.instance.send(l,e.getState())}):(s.instance&&s.instance.send(l,e.getState()),u)}}};"object"==typeof window&&window.__REDUX_DEVTOOLS_EXTENSION__},7732:function(e,t,s){"use strict";s.d(t,{J:function(){return v}});var n=s(4576),r=s(4004),i=s(9757),o=s(8200),a=s(6559),u=(0,n.EW)(()=>{var e,t=null==(e=a.o.value)?void 0:e.google;if(!t)return!1;var s=!0;for(var n of t.purposeIds){var r,u,l;s=s&&(null==(r=o.I.value)||null==(u=r.purposes)||null==(l=u.enabled)?void 0:l.includes(n))}for(var d of t.legIntPurposeIds){var c,p,v;s=s&&(null==(c=o.I.value)||null==(p=c.purposes_li)||null==(v=p.enabled)?void 0:v.includes(d))}if(t.specialFeatureIds)for(var h of t.specialFeatureIds){(0,i.PL)(h)&&(s=s&&o.I.value.purposes.enabled.includes(h))}return s}),l=s(1888),d=(0,n.EW)(()=>{var e,t,s,n=[],r=[],i=null==(e=l.E.value)?void 0:e.map(e=>{var{id:t}=e;return t}),{vendors:a,vendors_li:u}=o.I.value,d=e=>i.includes(e),c=null==a||null==(t=a.enabled)?void 0:t.filter(d),p=null==u||null==(s=u.enabled)?void 0:s.filter(d);for(var v of l.E.value){var h,g,f,m,b,I,y,S,C,w,A=(null==v||null==(h=v.purposeIds)?void 0:h.length)>0,_=(null==v||null==(g=v.legIntPurposeIds)?void 0:g.length)>0;if(A||_)if(!A||null!=c&&c.includes(v.id))if(!_||null!=p&&p.includes(v.id))n.push(null==v||null==(f=v.namespaces)||null==(m=f.google)?void 0:m.id);else r.push(null==v||null==(b=v.namespaces)||null==(I=b.google)?void 0:I.id);else r.push(null==v||null==(y=v.namespaces)||null==(S=y.google)?void 0:S.id);else r.push(null==v||null==(C=v.namespaces)||null==(w=C.google)?void 0:w.id)}return{enabledATPVendorIds:n.filter((e,t)=>n.indexOf(e)==t),disclosedATPVendorIds:r.filter((e,t)=>r.indexOf(e)==t)}}),c=s(152),p=s(6781),v=(0,n.EW)(()=>{var e,t;if(r.y.value){var s,n,i,o,a,l,v,h,{enabledATPVendorIds:g,disclosedATPVendorIds:f}=d.value;return!1===(null==(e=c.U.value.vendors)||null==(t=e.google)?void 0:t.fullATP)?u.value?(null==(s=c.U.value)||null==(n=s.vendors)||null==(i=n.google)||null==(o=i.additionalConsent)?void 0:o.positive)||p.Lq:(null==(a=c.U.value)||null==(l=a.vendors)||null==(v=l.google)||null==(h=v.additionalConsent)?void 0:h.negative)||"":u.value?"2~"+g.join(".")+"~dv."+f.join("."):"2~~dv."+[...g,...f].join(".")}})},7931:function(e,t,s){"use strict";s.r(t),s.d(t,{loadProviderModule:function(){return n}});var n=(e,t)=>s(3410)("./"+e+"/"+e+".js").then(s=>{var n=new s.default(t);return s&&"function"==typeof n.update?n:(console.error("Module for provider "+e+" does not have an update function."),null)}).catch(t=>(console.error("Failed to load tag manager for provider "+e+":",t),null))},8074:function(e,t,s){"use strict";s.d(t,{B:function(){return r}});var n=s(152),r=(0,s(4576).EW)(()=>{var e;return(null==(e=n.U.value)?void 0:e.disabledPurposes)||[]})},8082:function(e,t,s){var n={"./amazon/amazon.js":[5649,"src_sdk_core_modules_integrations_sdk-integrations_providers_amazon_amazon_js"],"./gcm/gcm.js":[2968,"src_sdk_core_modules_integrations_sdk-integrations_providers_gcm_gcm_js"],"./get-applicable-providers.js":[6067],"./google/google.js":[4635,"src_sdk_core_modules_integrations_sdk-integrations_providers_google_google_js"],"./load-provider-module.js":[3307],"./microsoft/microsoft.js":[6499,"src_sdk_core_modules_integrations_sdk-integrations_providers_microsoft_microsoft_js"],"./salesforce-dmp/salesforce-dmp.js":[1227,"src_sdk_core_modules_integrations_sdk-integrations_providers_salesforce-dmp_salesforce-dmp_js"],"./wordpress/wordpress.js":[3663,"src_sdk_core_modules_integrations_sdk-integrations_providers_wordpress_wordpress_js"]};function r(e){if(!s.o(n,e))return Promise.resolve().then(function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t});var t=n[e],r=t[0];return Promise.all(t.slice(1).map(s.e)).then(function(){return s(r)})}r.keys=function(){return Object.keys(n)},r.id=8082,e.exports=r},8168:function(e,t,s){"use strict";function n(){return n=Object.assign?Object.assign.bind():function(e){for(var t=1;t{var t={};return null==e||e.map(e=>{t[e.id]={id:e.id,purposes:e.purposeIds,flexiblePurposes:e.flexiblePurposeIds,specialPurposes:e.specialPurposeIds,legIntPurposes:e.legIntPurposeIds,features:e.featureIds,specialFeatures:e.specialFeatureIds,name:"",urls:[],dataRetention:{stdRetention:0,purposes:{},specialPurposes:{}},dataDeclaration:[],policyUrl:"",cookieMaxAgeSeconds:0,usesCookies:!0,cookieRefresh:!0,usesNonCookieAccess:!1,deviceStorageDisclosureUrl:"",overflow:{httpGetLimit:32}}}),t},l=e=>{var t={};return null==e||e.map(e=>{t[e.id]={id:e.id,name:"",description:"",purposes:e.purposeIds,specialFeatures:e.specialFeatureIds}}),t},d=s(8168),c=e=>{var t={};return null==e||e.map(e=>{t[e.id]=(0,d.A)({},e,{name:"",description:"",illustrations:[]})}),t};!function(e){e.Cookies="cookies",e.CookiesAnalytics="cookies_analytics",e.CookiesMarketing="cookies_marketing",e.CookiesSocial="cookies_social",e.SelectBasicAds="select_basic_ads",e.CreateAdsProfile="create_ads_profile",e.SelectPersonalizedAds="select_personalized_ads",e.CreateContentProfile="create_content_profile",e.SelectPersonalizedContent="select_personalized_content",e.MeasureAdPerformance="measure_ad_performance",e.MeasureContentPerformance="measure_content_performance",e.MarketResearch="market_research",e.ImproveProducts="improve_products",e.UseLimitedDataToSelectContent="use_limited_data_to_select_content"}(i||(i={})),function(e){e.All="all",e.Allow="allow",e.Disallow="disallow",e.ReqConsent="req-consent",e.ReqLI="req-li"}(o||(o={})),function(e){e.List="list",e.All="all"}(a||(a={}));var p,v={[i.Cookies]:1,[i.CookiesAnalytics]:1,[i.CookiesMarketing]:1,[i.CookiesSocial]:1,[i.SelectBasicAds]:2,[i.CreateAdsProfile]:3,[i.SelectPersonalizedAds]:4,[i.CreateContentProfile]:5,[i.SelectPersonalizedContent]:6,[i.MeasureAdPerformance]:7,[i.MeasureContentPerformance]:8,[i.MarketResearch]:9,[i.ImproveProducts]:10,[i.UseLimitedDataToSelectContent]:11};!function(e){e.GeolocationData="geolocation_data",e.DeviceCharacteristics="device_characteristics"}(p||(p={}));var h,g,f,m={[p.GeolocationData]:1,[p.DeviceCharacteristics]:2},b=Object.values(a),I=Object.values(o),y=(e,t,s,n,r)=>{if(t===a.All)return e===o.Allow?[]:r;var i=e===o.Allow,u=new Set,l=new Set(s);if(s&&s.length>0)if(i)for(var d of r)l.has(d)||u.add(d);else for(var c of s)u.add(c);if(n&&n.length>0)if(i){var p=e=>{for(var{start:t,end:s}of n)if(e>=t&&e<=s)return!0;return!1};for(var v of r)p(v)||u.add(v)}else for(var{start:h,end:g}of n)for(var f=h;f<=g;f++)u.add(f);return[...u]},S=[],C=(e,t)=>{Array.isArray(e)&&(S=e.reduce((e,s)=>{if((e=>{if(null==e)return!1;var{id:t,purposeId:s,vendors:n,restrictionType:r}=e,u=null==n?void 0:n.type,l=null==n?void 0:n.ranges,d=null==n?void 0:n.ids,c=!!s&&m[s],p=c?m[s]:v[s];if("string"!=typeof t||0===t.length)return console.error('Didomi - Invalid restriction ID "'+t+'" provided for publisher restrictions'),!1;if(void 0===p)return console.error('Didomi - Invalid purpose ID or special feature ID "'+s+'" provided for publisher restrictions'),!1;if(c){if(u!==a.All)return console.error("Didomi - Only vendor restriction type 'all' is valid for special features"),!1;if(r!==o.Disallow)return console.error("Didomi - Only restriction type 'disallow' is valid for special features"),!1}else{if(void 0===u||!b.includes(u))return console.error('Didomi - Invalid vendor restriction type "'+u+'" provided for publisher restrictions'),!1;if(u===a.List)if(Array.isArray(d)&&0!==d.length){if(!d.every(e=>"number"==typeof e))return console.error("Didomi - Vendor IDs for publisher restrictions should be numerical values"),!1}else{if(!Array.isArray(l)||0===l.length)return console.error("Didomi - Invalid vendor restriction ranges provided for publisher restrictions"),!1;if(!l.every(e=>{var t=new Set(Object.keys(e));return"object"==typeof e&&t.has("start")&&t.has("end")&&e.start{var s,n,{id:r,purposeId:i,vendors:o,restrictionType:a}=e,u=null==o?void 0:o.type,l=null!==(s=null==o?void 0:o.ranges)&&void 0!==s?s:[],d=null!==(n=null==o?void 0:o.ids)&&void 0!==n?n:[];if(void 0!==r&&void 0!==i)return{id:r,purposeId:i,vendors:y(a,u,d,l,t),restrictionType:a,vendorRestrictionType:u}})(s,t);void 0!==n&&e.push(n)}return e},[]))},w={google:755},A={didomiVendorIdsMapping:w,removeDeletedVendors:!1},_=(e,t)=>void 0===e&&void 0===t?void 0:void 0===e?t:void 0===t?e:(0,d.A)({},t,e),P={1:i.Cookies,2:i.SelectBasicAds,3:i.CreateAdsProfile,4:i.SelectPersonalizedAds,5:i.CreateContentProfile,6:i.SelectPersonalizedContent,7:i.MeasureAdPerformance,8:i.MeasureContentPerformance,9:i.MarketResearch,10:i.ImproveProducts,11:i.UseLimitedDataToSelectContent},E={1:p.GeolocationData,2:p.DeviceCharacteristics},O=function(e,t,s,n,r){void 0===r&&(r=!1);var i=((e,t)=>"string"!=typeof e?t?E[e]:P[e]:e)(e,r),a=new Set([o.Disallow,o.Allow,s]);return n.filter(((e,t)=>s=>s.purposeId===e&&s.vendors.includes(t))(i,t)).some(e=>a.has(e.restrictionType))},L=e=>[...new Set(e)];!function(e){e.optin="purposeIds",e.optout="legIntPurposeIds"}(f||(f={}));var T,k,D,U=(e,t,s)=>{if(!s||0===s.length)return[];var n=t===o.ReqConsent?f.optout:f.optin;return((e,t)=>e.flexiblePurposeIds.filter(s=>e[t].includes(s)))(e,n).filter(n=>{var r=O(n,e.id,o.Disallow,s),i=O(n,e.id,t,s);return!r&&i})},V=()=>void 0===(null==n?void 0:n.vendors)?void 0:((e,t)=>t&&0!==t.length?e.reduce((e,s)=>{var n=(0,d.A)({},s,{purposeIds:s.purposeIds.filter(e=>!O(e,s.id,o.ReqLI,t,!1)),legIntPurposeIds:s.legIntPurposeIds.filter(e=>!O(e,s.id,o.ReqConsent,t,!1)),specialFeatureIds:s.specialFeatureIds.filter(e=>!O(e,s.id,o.Disallow,t,!0))});return n.purposeIds=L([...n.purposeIds,...U(s,o.ReqConsent,t)]),n.legIntPurposeIds=L([...n.legIntPurposeIds,...U(s,o.ReqLI,t)]),(e=>0===e.purposeIds.length&&0===e.legIntPurposeIds.length&&0===e.specialPurposeIds.length)(n)||e.push(n),e},[]):e)(n.vendors,null!=S?S:[]),R=()=>{var e=V();if(void 0===h||void 0===e)return[];var t=((e,t)=>{var s,n,r,i,o,a,u=null===(s=e.vendors)||void 0===s?void 0:s.iab,l=new Set;if(!u)return l;var d=new Set(t.map(e=>e.id)),c=t.reduce((e,t)=>(t.tmpDeletedDate&&e.add(t.id),e),new Set),p=!0===(null==g?void 0:g.removeDeletedVendors);if(Array.isArray(u)&&(l=new Set(u.filter(e=>d.has(e)))),u===Object(u)&&u.all)l=new Set(d);else if(u.include&&Array.isArray(u.include))for(var v of u.include)d.has(v)&&l.add(v);if(u.exclude&&Array.isArray(u.exclude))for(var h of u.exclude)l.delete(h);var f=null!==(r=null===(n=null==g?void 0:g.didomiVendorIdsMapping)||void 0===n?void 0:n.google)&&void 0!==r?r:w.google,m=null===(i=u.include)||void 0===i?void 0:i.includes(f),b=null===(o=u.exclude)||void 0===o?void 0:o.includes(f),I=null===(a=e.vendors)||void 0===a?void 0:a.didomi,y=null==I?void 0:I.includes("google");if(p)for(var S of l)c.has(S)&&l.delete(S);return(u.all||m||y)&&!b&&l.add(f),l})(h,e);return null==e?void 0:e.filter(e=>t.has(e.id))},N=Object.values(P),B={amazon:{purposeIds:N,legIntPurposeIds:[],didomiId:"amazon",id:"amazon"},facebook:{purposeIds:[i.Cookies,i.CreateAdsProfile,i.SelectPersonalizedAds],legIntPurposeIds:[i.SelectBasicAds,i.MeasureAdPerformance,i.MarketResearch,i.ImproveProducts],didomiId:"facebook",id:"facebook"},twitter:{purposeIds:[i.Cookies],legIntPurposeIds:[],didomiId:"twitter",id:"twitter"},whatsapp:{purposeIds:[i.Cookies],legIntPurposeIds:[],didomiId:"whatsapp",id:"whatsapp"},"google-adsense":{purposeIds:N,legIntPurposeIds:[],id:"google-adsense",didomiId:"google-adsense"},"google-adx":{purposeIds:N,legIntPurposeIds:[],id:"google-adsense",didomiId:"google-adx"},addthis:{purposeIds:N,legIntPurposeIds:[],didomiId:"addthis",id:"google-adsense"},salesforce:{purposeIds:N,legIntPurposeIds:[],didomiId:"salesforce",id:"salesforce"}},x=()=>{var e=R(),t=(e=>{var t,s;return null!==(s=null===(t=null==e?void 0:e.vendors)||void 0===t?void 0:t.custom)&&void 0!==s?s:[]})(h),s=(e=>{var t,s;return(null!==(s=null===(t=null==e?void 0:e.vendors)||void 0===t?void 0:t.didomi)&&void 0!==s?s:[]).map(e=>B[e]).filter(Boolean)})(h);if(e&&0!==e.length||t&&t.length||s&&s.length)return function(e,t,s){void 0===t&&(t=[]),void 0===s&&(s=[]);var n={purposes:{ids:new Set,optin:new Set,optout:new Set,essential:new Set},vendors:{optin:new Set,optout:new Set,disclosed:new Set,specialFeatures:new Set,specialPurposes:new Set}};for(var r of e){var i=new Set;if(n.vendors.disclosed.add(r.id),r.legIntPurposeIds&&r.legIntPurposeIds.length>0)for(var o of(n.vendors.optout.add(r.id),r.legIntPurposeIds)){var a=P[o];n.purposes.optout.add(a),n.purposes.ids.add(a),i.add("optout")}if(r.purposeIds&&r.purposeIds.length>0)for(var u of(n.vendors.optin.add(r.id),r.purposeIds)){var l=P[u];n.purposes.optin.add(l),n.purposes.ids.add(l),i.add("optin")}if(r.specialFeatureIds&&r.specialFeatureIds.length>0){for(var d of r.specialFeatureIds){var c=E[d];n.purposes.optin.add(c),n.purposes.ids.add(c),i.add("optin")}r.purposeIds&&0==r.purposeIds.length&&(n.vendors.specialFeatures.add(r.id),i.add("specialFeatures"))}0===i.size&&r.specialPurposeIds.length>0&&(n.vendors.specialPurposes.add(r.id),i.add("specialPurposes"))}var p=[...t,...s];for(var h of p){if(h.legIntPurposeIds&&h.legIntPurposeIds.length>0)for(var g of h.legIntPurposeIds)(v[g]||m[g])&&(n.purposes.optout.add(g),n.purposes.ids.add(g));if(h.purposeIds&&h.purposeIds.length>0)for(var f of h.purposeIds)(v[f]||m[f])&&(n.purposes.optin.add(f),n.purposes.ids.add(f))}return{vendors:{optin:[...n.vendors.optin],optout:[...n.vendors.optout],disclosed:[...n.vendors.disclosed],specialFeatures:[...n.vendors.specialFeatures],specialPurposes:[...n.vendors.specialPurposes]},purposes:{ids:[...n.purposes.ids],optin:[...n.purposes.optin],optout:[...n.purposes.optout],essential:[...n.purposes.essential]}}}(e,t,s)},M=e=>/^[A-Za-z0-9-_]+$/.test(e),F=()=>{var e,t,s,n,r,o={processingRules:{ids:new Set,optin:new Set,optout:new Set}},a=(()=>{var e,t=null==h?void 0:h.customPurposes,s=null!==(e=null==h?void 0:h.disabledPurposes)&&void 0!==e?e:[],n=[];if(t&&Array.isArray(t))for(var r of t)"string"==typeof r.id&&M(r.id)?s.includes(r.id)||n.push((0,d.A)({},r,{namespace:"custom"})):console.error('Didomi - The purpose id "'+r.id+'" is not valid. Ignoring it.');return n})(),u=a.map(e=>String(e.id)),l=(e=>{var t=null==h?void 0:h.essentialPurposes;if(!t||!Array.isArray(t))return new Set;var s=new Set(e);return t.reduce((e,t)=>(s.has(t)&&e.add(t),e),new Set)})(u),c=Object.values(i),p=new Set([...c,...u]),v=null!==(t=null===(e=null==h?void 0:h.vendors)||void 0===e?void 0:e.custom)&&void 0!==t?t:[],g=e=>p.has(e),f=new Set,m=a.reduce((e,t)=>{var s,n=null===(s=t.namespaces)||void 0===s?void 0:s.pub,r=t.id;return n&&(e=>"number"==typeof e&&e>0)(n)&&"string"==typeof r&&p.has(r)&&(e[r]=n),e},{});if(Array.isArray(v))for(var b of v){var I=(null!==(s=b.purposeIds)&&void 0!==s?s:[]).filter(g),y=(null!==(n=b.legIntPurposeIds)&&void 0!==n?n:[]).filter(g);for(var S of I)f.add(S);for(var C of y)f.add(C);if("1st_party"===b.type&&(I.length>0||y.length>0)){for(var w of I)o.processingRules.ids.add(w),l.has(w)||o.processingRules.optin.add(w);for(var A of y)o.processingRules.ids.add(A),l.has(A)||o.processingRules.optout.add(A)}}var _=new Set(null!==(r=null==T?void 0:T.purposes.ids)&&void 0!==r?r:c);for(var P of u)o.processingRules.ids.has(P)||_.has(P)||f.has(P)||(o.processingRules.ids.add(P),l.has(P)||o.processingRules.optin.add(P));return{processingRules:{ids:[...o.processingRules.ids],optin:[...o.processingRules.optin],optout:[...o.processingRules.optout],essential:[...l]},mapping:m}},z=function(e,t,s){var i,o,a,d,p,v;void 0===s&&(s=void 0),(e=>{r={vendorListVersion:(n=e).vendorListVersion,lastUpdated:n.lastUpdated,gvlSpecificationVersion:n.gvlSpecificationVersion,tcfPolicyVersion:n.tcfPolicyVersion,purposes:c(n.purposes),specialPurposes:c(n.specialPurposes),features:c(n.features),specialFeatures:c(n.specialFeatures),stacks:l(n.stacks),vendors:u(n.vendors),dataCategories:{}}})(e),(e=>{g=e})((e=>_(e,A))(s)),(e=>{h=e})(t);var f=null!==(i=e.vendors.map(e=>e.id))&&void 0!==i?i:[],m=null!==(d=null===(a=null===(o=null==t?void 0:t.vendors)||void 0===o?void 0:o.iab)||void 0===a?void 0:a.restrictions)&&void 0!==d?d:[];C(m,f),(e=>{T=e})(null!==(p=null==g?void 0:g.processingRules)&&void 0!==p?p:x()),(e=>{k=e})(null!==(v=null==g?void 0:g.firstPartyPurposes)&&void 0!==v?v:F())},j=s(4220),G=e=>new Date(Date.UTC(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate())),W=(e,t)=>e.reduce((e,s)=>{if("number"==typeof s)e.push(s);else{var n=t[s];void 0!==n&&e.push(n)}return e},[]),J=e=>{switch(e){case o.Allow:case o.Disallow:return 0;case o.ReqConsent:return 1;case o.ReqLI:return 2}};!function(e){e[e.consentOnly=0]="consentOnly",e[e.consentAndLegitimateInterest=1]="consentAndLegitimateInterest"}(D||(D={}));var H={1:D.consentOnly,2:D.consentAndLegitimateInterest,3:D.consentOnly,4:D.consentOnly,5:D.consentOnly,6:D.consentOnly,7:D.consentAndLegitimateInterest,8:D.consentAndLegitimateInterest,9:D.consentAndLegitimateInterest,10:D.consentAndLegitimateInterest,11:D.consentAndLegitimateInterest},K=()=>{var e=[];for(var t in P){var s=parseInt(t,10);H[s]===D.consentOnly&&e.push(s)}return e},q=()=>{if("object"!=typeof n||"object"!=typeof r)throw new Error("Didomi - IAB TCF not initialized")},Z=function(e,t){var s,i;if(void 0===t&&(t=void 0),"object"!=typeof n||"object"!=typeof r||"object"!=typeof g)throw new Error("Didomi - IAB TCF not initialized");var u=null!==(i=null===(s=null==T?void 0:T.vendors)||void 0===s?void 0:s.specialPurposes)&&void 0!==i?i:[],l=g.didomiVendorIdsMapping,d=W(e.purposes.enabled,v),c=W(e.purposes.enabled,m),p=W(e.vendors.enabled,l),f=W(e.vendors_li.enabled,l),b=W(e.purposes_li.enabled,v),I=G(new Date(e.created)),y=G(new Date(e.updated)),C=new j.jT(new j.aI(r));C.vendorListVersion=r.vendorListVersion,C.cmpId=null==t?void 0:t.cmpId,C.cmpVersion=null==t?void 0:t.cmpVersion,C.created=I,C.lastUpdated=y,C.consentScreen=1,C.consentLanguage=null==t?void 0:t.consentLanguage,C.isServiceSpecific=!0;var w=(e=>null==e?void 0:e.country)(h);for(var A of(w&&(C.publisherCountryCode=w),C.purposeConsents.set(d),C.purposeLegitimateInterests.set(b),C.purposeLegitimateInterests.unset(K()),C.vendorConsents.set(p),C.vendorLegitimateInterests.set(f),u&&u.length>0&&C.vendorLegitimateInterests.set(u),C.publisherConsents.set(d),C.publisherLegitimateInterests.set(b),C.specialFeatureOptins.set(c),S)){var _=new j.FY;if(_.purposeId=v[A.purposeId],void 0!==_.purposeId){var P=J(A.restrictionType);if(void 0!==P)if(_.restrictionType=P,A.vendorRestrictionType===a.All)A.restrictionType===o.Allow?C.publisherRestrictions.restrictPurposeToLegalBasis(_,[]):C.publisherRestrictions.restrictPurposeToLegalBasis(_);else{var E=W(A.vendors,l);for(var O of E)C.publisherRestrictions.add(O,_)}}}return k&&k.processingRules.ids.length>0&&function(e,t,s){if(void 0===s&&(s=!1),q(),k){var{processingRules:n,mapping:r}=k,i=n.ids.filter(e=>v[e]||r[e]);if(0!==i.length){s||(t.publisherConsents.empty(),t.publisherLegitimateInterests.empty());var o=new Set(n.optin),a=new Set(n.optout),u=t=>o.has(t)&&e.purposes.enabled.includes(t),l=t=>a.has(t)&&e.purposes_li.enabled.includes(t),d=0;for(var c of i){var p=v[c];if(p)u(c)&&t.publisherConsents.set(p),l(c)&&t.publisherLegitimateInterests.set(p);else{var h=r[c];h&&h>=1&&h<=63&&(d{(null==t?void 0:t.disclosedVendorsSegment)&&(q(),(null==n?void 0:n.vendors)&&(e.vendorsDisclosed.empty(),null==T||T.vendors.disclosed.forEach(t=>{e.vendorsDisclosed.set(Number(t))})))})(C,t),C},Y={cmpId:7,cmpVersion:1,consentScreen:1,consentLanguage:"EN",isServiceSpecific:!0,disclosedVendorsSegment:!1,alwaysAddPurposesStatusToPublisherConsent:!1},Q=function(e,t){void 0===t&&(t=void 0);var s,n=((e,t)=>_(_(e,t),Y))(t,null==g?void 0:g.encoderOptions),r=Z(e,n);return(r.publisherConsents.size>0||r.publisherLegitimateInterests.size>0||r.publisherCustomConsents.size>0||r.publisherCustomLegitimateInterests.size>0)&&(s={segments:[j.Y4.CORE,j.Y4.PUBLISHER_TC]}),r.vendorsDisclosed.size>0&&(s=s?{segments:[j.Y4.CORE,j.Y4.VENDORS_DISCLOSED,j.Y4.PUBLISHER_TC]}:{segments:[j.Y4.CORE,j.Y4.VENDORS_DISCLOSED]}),j.de.encode(r,s)},$=e=>Array.isArray(e)&&e.length>0,X=e=>void 0!==e&&void 0===e.deletedDate,ee=function(e,t){if(void 0===t&&(t=!0),"object"!=typeof n||"object"!=typeof r||"object"!=typeof g)throw new Error("Didomi - IAB TCF not initialized");var s={vendors:{enabled:[],disabled:[]},vendors_li:{enabled:[],disabled:[]},purposes:{enabled:[],disabled:[]},purposes_li:{enabled:[],disabled:[]},created:e.created.toISOString(),updated:e.lastUpdated.toISOString()},i=Object.values(g.didomiVendorIdsMapping),o=new Set(K()),a=new Set((e=>Object.keys(e.vendors).reduce((t,s)=>{var n=e.vendors[s];return n&&n.specialPurposes.length>0&&0===n.purposes.length&&0===n.legIntPurposes.length&&0===n.specialFeatures.length&&t.push(n.id),t},[]))(r));return[...e.vendorConsents].forEach(e=>{var[t,n]=e;if(!i.includes(t))if(n)s.vendors.enabled.push(t);else{var o=null==r?void 0:r.vendors[t];$(null==o?void 0:o.purposes)&&X(o)&&s.vendors.disabled.push(t)}}),[...e.vendorLegitimateInterests].forEach(e=>{var[t,n]=e;if(!i.includes(t)&&!a.has(t))if(n)s.vendors_li.enabled.push(t);else{var o=null==r?void 0:r.vendors[t];$(null==o?void 0:o.legIntPurposes)&&X(o)&&s.vendors_li.disabled.push(t)}}),[...e.purposeConsents].forEach(e=>{var[t,n]=e,r=P[t];r&&(n?s.purposes.enabled.push(r):s.purposes.disabled.push(r))}),[...e.purposeLegitimateInterests].forEach(e=>{var[t,n]=e,r=P[t];r&&(n&&!o.has(t)?s.purposes_li.enabled.push(r):o.has(t)||s.purposes_li.disabled.push(r))}),t&&[...e.specialFeatureOptins].forEach(e=>{var[t,n]=e,r=E[t];r&&(n?s.purposes.enabled.push(r):s.purposes.disabled.push(r))}),(e=>Object.keys(e.vendors).reduce((t,s)=>{var n=e.vendors[s];return n&&n.specialFeatures.length>0&&0===n.purposes.length&&t.push(n.id),t},[]))(r).forEach(t=>{var n,i=null===(n=null==r?void 0:r.vendors[t])||void 0===n?void 0:n.specialFeatures;!e.vendorConsents.has(t)&&(null==i?void 0:i.every(t=>e.specialFeatureOptins.has(t)))?s.vendors.enabled.push(t):e.vendorConsents.has(t)||s.vendors.disabled.push(t)}),s},te=function(e,t){var s,i,o,a;if(void 0===t&&(t=!0),"object"!=typeof n||"object"!=typeof r||"object"!=typeof g)throw new Error("Didomi - IAB TCF not initialized");var u={vendors:{enabled:[],disabled:[]},vendors_li:{enabled:[],disabled:[]},purposes:{enabled:[],disabled:[]},purposes_li:{enabled:[],disabled:[]},created:e.created.toISOString(),updated:e.lastUpdated.toISOString()},l=Object.values(g.didomiVendorIdsMapping);if(void 0===T)return ee(e,t);var d=[...new Set([...T.purposes.optin,...null!==(i=null===(s=null==k?void 0:k.processingRules)||void 0===s?void 0:s.optin)&&void 0!==i?i:[]])],c=[...new Set([...T.purposes.optout,...null!==(a=null===(o=null==k?void 0:k.processingRules)||void 0===o?void 0:o.optout)&&void 0!==a?a:[]])];for(var p of T.vendors.optin){var h="number"==typeof p?p:void 0;h&&!l.includes(h)&&(e.vendorConsents.has(h)?u.vendors.enabled.push(h):u.vendors.disabled.push(h))}for(var f of T.vendors.optout){var b="number"==typeof f?f:void 0;b&&!l.includes(b)&&(e.vendorLegitimateInterests.has(b)?u.vendors_li.enabled.push(b):u.vendors_li.disabled.push(b))}for(var I of d){var y=v[I];if(y)e.purposeConsents.has(y)?u.purposes.enabled.push(I):u.purposes.disabled.push(I);else{var S=m[I];S&&t&&(e.specialFeatureOptins.has(S)?u.purposes.enabled.push(I):u.purposes.disabled.push(I))}}for(var C of c){var w=v[C];w&&(e.purposeLegitimateInterests.has(w)?u.purposes_li.enabled.push(C):u.purposes_li.disabled.push(C))}for(var A of T.vendors.specialFeatures){var _=null==r?void 0:r.vendors[A];_&&(e.vendorConsents.has(_.id)||_.specialFeatures.every(t=>e.specialFeatureOptins.has(t))?u.vendors.enabled.push(_.id):e.vendorConsents.has(_.id)||u.vendors.disabled.push(_.id))}return u},se={checkCMPId:!1,defaultCMPId:7,returnTCModel:!1},ne=function(e,t){var s;if(void 0===t&&(t=void 0),"object"!=typeof n||"object"!=typeof r||"object"!=typeof g)throw new Error("Didomi - IAB TCF not initialized");var i=((e,t)=>_(_(e,t),se))(t,null==g?void 0:g.decoderOptions);if(!i)return null;var{checkCMPId:o,defaultCMPId:a,returnTCModel:u}=i,l=null!==(s=(e=>{var t,s,n,r,i,o;if((null===(s=null===(t=null==e?void 0:e.vendors)||void 0===t?void 0:t.iab)||void 0===s?void 0:s.cmpId)&&"number"==typeof(null===(r=null===(n=null==e?void 0:e.vendors)||void 0===n?void 0:n.iab)||void 0===r?void 0:r.cmpId))return null===(o=null===(i=null==e?void 0:e.vendors)||void 0===i?void 0:i.iab)||void 0===o?void 0:o.cmpId})(h))&&void 0!==s?s:a;try{var d=j.de.decode(e);return o&&d.cmpId!==l?null:u?d:te(d)}catch(e){return null}},re=e=>({vendors:{enabled:[],disabled:[]},vendors_li:{enabled:[],disabled:[]},purposes:{enabled:[],disabled:[]},purposes_li:{enabled:[],disabled:[]},created:e,updated:e}),ie={defaultLIToEnabled:!0,generate:{default:!0,positive:!0,negative:!0}},oe=e=>{var t,s,n,i,o,a,u=(e=>_(e,ie))(e),l=null!==(t=null==u?void 0:u.defaultStringsCreatedDate)&&void 0!==t?t:G(new Date).toISOString(),d={created:l,vendorListVersion:null!==(s=null==r?void 0:r.vendorListVersion)&&void 0!==s?s:0},c=null===(n=null==u?void 0:u.defaultLIToEnabled)||void 0===n||n;return(null===(i=null==u?void 0:u.generate)||void 0===i?void 0:i.default)&&(d.default=Q(((e,t,s,n)=>{var r=re(s);if(void 0===t||!e)return r;if(t&&e){for(var i of t.purposes.optout)r.purposes_li.enabled.push(i);for(var o of t.vendors.optout)r.vendors_li.enabled.push(o);if(n&&n.processingRules.ids.length>0)for(var a of n.processingRules.optout)r.purposes_li.enabled.push(a)}return r})(c,T,l,k))),(null===(o=null==u?void 0:u.generate)||void 0===o?void 0:o.positive)&&(d.positive=Q(((e,t,s)=>{var n=re(t);if(void 0===e)return n;if(e){for(var r of e.purposes.optin)n.purposes.enabled.push(r);for(var i of e.purposes.optout)n.purposes_li.enabled.push(i);for(var o of e.vendors.optin)n.vendors.enabled.push(o);for(var a of e.vendors.optout)n.vendors_li.enabled.push(a)}if(s&&s.processingRules.ids.length>0){for(var u of s.processingRules.optin)n.purposes.enabled.push(u);for(var l of s.processingRules.optout)n.purposes_li.enabled.push(l)}return n})(T,l,k))),(null===(a=null==u?void 0:u.generate)||void 0===a?void 0:a.negative)&&(d.negative=Q(((e,t,s)=>{var n=re(t);if(void 0===e)return n;if(e){for(var r of e.purposes.optin)n.purposes.disabled.push(r);for(var i of e.purposes.optout)n.purposes_li.disabled.push(i);for(var o of e.vendors.optin)n.vendors.disabled.push(o);for(var a of e.vendors.optout)n.vendors_li.disabled.push(a)}if(s&&s.processingRules.ids.length>0){for(var u of s.processingRules.optin)n.purposes.disabled.push(u);for(var l of s.processingRules.optout)n.purposes_li.disabled.push(l)}return n})(T,l,k))),d},ae=e=>({vendorListVersion:e.v,lastUpdated:e.l,gvlSpecificationVersion:e.gsv,tcfPolicyVersion:e.tpv,purposes:e.p.map(e=>({id:e})),specialPurposes:e.sp.map(e=>({id:e})),features:e.f.map(e=>({id:e})),specialFeatures:e.sf.map(e=>({id:e})),stacks:e.st.map(e=>({id:e.i,purposeIds:e.p||[],specialFeatureIds:e.sf||[]})),vendors:e.s.map(e=>({id:e.i,purposeIds:e.p||[],flexiblePurposeIds:e.fp||[],specialPurposeIds:e.sp||[],legIntPurposeIds:e.l||[],featureIds:e.f||[],specialFeatureIds:e.sf||[],didomiId:e.di,tmpDeletedDate:e.dd}))}),ue=()=>null==n?void 0:n.purposes.map(e=>(0,d.A)({},e,{id:P[e.id],namespace:"iab"})),le=()=>n,de=s(4382),ce=s(3682)},8200:function(e,t,s){"use strict";s.d(t,{I:function(){return i},v:function(){return o}});var n=s(4576),r=s(3330),i=(0,n.vP)((0,r.x)()),o=e=>{i.value=e}},8281:function(e,t,s){"use strict";s.d(t,{A:function(){return i}});var n=s(4576),r=s(2639),i=(0,n.EW)(()=>{var e,t;return!1!==(null==(e=r.v.value)||null==(t=e.vendorsLayer)?void 0:t.enabled)})},8307:function(e,t,s){"use strict";s.d(t,{Ic:function(){return h},KU:function(){return g},sF:function(){return f},mW:function(){return p},ew:function(){return v},on:function(){return b},Oo:function(){return y},pQ:function(){return I},kj:function(){return c}});var n=s(1083),r=s(4408),i=s(3369),o=s(4921),a=["cbd8eb33-3b64-4820-b682-a4ee95350e35","d8b5cd5c-d1e5-4195-b9b2-02ab9bb451fa","b7a34065-46df-44a9-be3b-1f92ad51caa8","13530e32-2047-45b8-96c9-eeff22c3a3be","ad7a65df-088b-4b23-86be-3bd683070a38","aac9f485-1439-4164-8cd7-e42a1e204304","fb809c51-e9cd-4e35-a92d-e44bb858841e","309930c2-c7f2-4e68-817b-04568d81e6ab","7893a59d-1e25-44f3-97b7-0772c2ab6a25","839e15c5-b3dc-4adf-9a82-6d97c8ca004d"],u=["consent.changed","consent.changedwithsignature","internal.consent.changed","cookies.enable","notice.hidden"],l=(0,n.EventEmitter)().setMaxListeners(50),d=new Map,c=e=>{l.setMaxListeners(e)},p=()=>l.maxListeners,v=e=>l.listenerCount(e),h=function(e){for(var t=arguments.length,s=new Array(t>1?t-1:0),n=1;n{(e=>!e||e>=400)(e)&&h("api.error",{id:t,reason:"number"==typeof e&&e>=400?"response.error":"request.failure"})},f=function(e){for(var t=arguments.length,s=new Array(t>1?t-1:0),n=1;n{h(e,...s)})},m=(e,t)=>function(s){for(var n=arguments.length,i=new Array(n>1?n-1:0),l=1;lt(s,...i),!0):t(s,...i)},b=function(e,t,s){var{shouldYield:n=!0,shouldBeSafe:r=!0}=void 0===s?{}:s,o=t;r&&(o=(0,i.B1)(o,e)),n&&(o=m(e,o)),d.set(t,o),l.on(e,o)},I=(e,t)=>{var s=d.get(t)||t;l.removeListener(e,s),d.delete(t)},y=function(e,t,s){var{shouldYield:n=!0,shouldBeSafe:r=!0}=void 0===s?{}:s,o=t;r&&(o=(0,i.B1)(o,e)),n&&(o=m(e,o)),d.set(t,o),l.once(e,o)}},8311:function(e,t,s){"use strict";function n(e){return e&&o()?window.localStorage.getItem(e):null}function r(e,t){if(o())try{window.localStorage.setItem(e,t)}catch(e){}}function i(e){o()&&window.localStorage.removeItem(e)}function o(){try{return!!window.localStorage}catch(e){return!1}}s.d(t,{AP:function(){return r},_S:function(){return n},bJ:function(){return i}})},8516:function(e,t,s){"use strict";s.d(t,{p:function(){return o}});var n=s(4576),r=s(7396),i=s(2920),o=(0,n.EW)(()=>{var e;return(null==(e=i.$.value)?void 0:e.reduce((e,t)=>{var{id:s,legIntPurposeIds:n}=t;return n.length>0&&n.every(e=>r.T.value.includes(e))&&e.push(s),e},[]))||[]})},8517:function(e,t,s){"use strict";s.d(t,{C:function(){return r},J:function(){return n}});var n=(0,s(4576).vP)(null),r=e=>{n.value=e}},8557:function(e,t,s){"use strict";s.d(t,{O:function(){return l}});var n=s(8168),r=s(4576),i=s(152),o=s(378),a=s(5159),u=s(4163),l=(0,r.EW)(()=>{var e,t,s,r,u,l,d,c,p,v,h,g,f,m,b,I,y,S,C,w,A,_,P,E,O,L,T,k,D,U,V,R,N,B,x,M,F,z,j,G,W,J,H,K,q,Z,Y=null==(e=i.U.value)?void 0:e.consentString,Q=null==Y?void 0:Y.version,$=void 0;Array.isArray(null==Y||null==(t=Y.encoder)||null==(s=t.schemaOverrides)||null==(r=s.fields)||null==(u=r.purposes_optin)?void 0:u.variants)&&(null==Y||null==(l=Y.encoder)||null==(d=l.schemaOverrides)||null==(c=d.fields)||null==(p=c.purposes_optin)?void 0:p.variants.length)>0&&($=(0,n.A)({},$||{},{fields:(0,n.A)({},null!=(B=$)&&B.fields?null==(x=$)?void 0:x.fields:{},{purposes_optin:null==Y||null==(M=Y.encoder)?void 0:M.schemaOverrides.fields.purposes_optin})}));Array.isArray(null==Y||null==(v=Y.encoder)||null==(h=v.schemaOverrides)||null==(g=h.fields)||null==(f=g.purposes_optout)?void 0:f.variants)&&(null==Y||null==(m=Y.encoder)||null==(b=m.schemaOverrides)||null==(I=b.fields)||null==(y=I.purposes_optout)?void 0:y.variants.length)>0&&($=(0,n.A)({},$||{},{fields:(0,n.A)({},null!=(F=$)&&F.fields?null==(z=$)?void 0:z.fields:{},{purposes_optout:null==Y||null==(j=Y.encoder)?void 0:j.schemaOverrides.fields.purposes_optout})}));Array.isArray(null==Y||null==(S=Y.encoder)||null==(C=S.schemaOverrides)||null==(w=C.fields)||null==(A=w.vendors_optin)?void 0:A.variants)&&(null==Y||null==(_=Y.encoder)||null==(P=_.schemaOverrides)||null==(E=P.fields)||null==(O=E.vendors_optin)?void 0:O.variants.length)>0&&($=(0,n.A)({},$||{},{fields:(0,n.A)({},null!=(G=$)&&G.fields?null==(W=$)?void 0:W.fields:{},{vendors_optin:null==Y||null==(J=Y.encoder)?void 0:J.schemaOverrides.fields.vendors_optin})}));Array.isArray(null==Y||null==(L=Y.encoder)||null==(T=L.schemaOverrides)||null==(k=T.fields)||null==(D=k.vendors_optout)?void 0:D.variants)&&(null==Y||null==(U=Y.encoder)||null==(V=U.schemaOverrides)||null==(R=V.fields)||null==(N=R.vendors_optout)?void 0:N.variants.length)>0&&($=(0,n.A)({},$||{},{fields:(0,n.A)({},null!=(H=$)&&H.fields?null==(K=$)?void 0:K.fields:{},{vendors_optout:null==Y||null==(q=Y.encoder)?void 0:q.schemaOverrides.fields.vendors_optout})}));return Z=Q,(0,o.Et)(Z)&&a.a.didomiConsentStringSchemaMinorVersion<=Z&&Z<=a.a.didomiConsentStringSchemaMajorVersion?{version:Q,signatureEnabled:!0===(null==Y?void 0:Y.signatureEnabled),isDidomiConsentStringEncodingEnabled:!0,schemaOverrides:$}:(void 0!==Q&&console.error("Didomi - The Didomi Consent String version ["+Q+"] is invalid"),{version:void 0,signatureEnabled:!1,isDidomiConsentStringEncodingEnabled:!1,schemaOverrides:$})}),d=(0,r.QZ)(()=>{var e;null!=(e=l.value)&&e.isDidomiConsentStringEncodingEnabled&&((0,u.h)(),d())})},8587:function(e,t,s){"use strict";function n(e,t){if(null==e)return{};var s,n,r={},i=Object.keys(e);for(n=0;n=0||(r[s]=e[s]);return r}s.d(t,{A:function(){return n}})},8623:function(e,t,s){"use strict";s.d(t,{x:function(){return o}});var n=s(8975),r=s(259),i=s(1843),o=(0,s(4576).EW)(()=>{var e,t,s,o,a=void 0!==navigator.globalPrivacyControl,u="mixed"===(null==(e=i.r.value)||null==(t=e.group)?void 0:t.name)&&a,l=u&&!0===navigator.globalPrivacyControl;return{isEnabled:u,isSupportedByBrowser:a,isUserOptedOut:l,defaultUserStatus:{optin:l?n.k.DISABLED:n.k.ENABLED,optout:l?n.k.DISABLED:n.k.ENABLED,essential:n.k.ENABLED},shouldShowNotice:u&&!1!==(null==(s=r.bK.value)||null==(o=s.notice)?void 0:o.showWhenGPCIsEnabled)}})},8691:function(e,t,s){"use strict";s.d(t,{Y:function(){return l},x:function(){return u}});var n=s(8168),r=s(4576),i=e=>/^[A-Za-z0-9-_]+$/.test(e),o=s(152),a=s(8074),u=(0,r.EW)(()=>{var e,t=null==(e=o.U.value)?void 0:e.customPurposes,s=[];if(t&&Array.isArray(t))for(var r of t)i(r.id)?a.B.value.includes(r.id)||s.push((0,n.A)({},r,{namespace:"custom"})):console.error('Didomi - The purpose id "'+r.id+'" is not valid. Ignoring it.');return s}),l=(0,r.EW)(()=>u.value.map(e=>e.id))},8939:function(e,t,s){"use strict";s.d(t,{M:function(){return a},b:function(){return o}});var n=s(4576),r=s(259),i=s(378),o=(0,n.EW)(()=>{var e,t,s,n,o=(0,i.Go)({apiPath:"https://api.privacy-center.org/v1",customSDKPath:"https://sdk.privacy-center.org/custom/",sdkPathForTCFVendorsStorageDisclosures:"https://sdk.privacy-center.org/",iabGlobalCookiesDomain:"didomi.mgr.consensu.org",globalCookiesProtocol:"https",pmpSdkPath:"https://pmp-sdk.privacy-center.org",removeDeletedIABVendorsForAllClients:!0,removeDeletedIABVendorsForAPIKeys:[],events:{sampleSizes:{pageview:.03,consentAsked:.1,consentGiven:1,uiActionPreferencesPurposes:1,uiActionPreferencesVendors:1,uiActionPreferencesPurposeChanged:1,uiActionPreferencesVendorChanged:1,uiActionPreferencesShownPersonalDataTypes:1,uiActionPreferencesSPIChanged:1,syncAcknowledged:1}}});return r.bK.value&&Object.hasOwn(r.bK.value,"apiPath")&&"string"==typeof(null==(e=r.bK.value)?void 0:e.apiPath)&&null!=(t=r.bK.value)&&t.apiPath&&(o.apiPath=r.bK.value.apiPath),r.bK.value&&Object.hasOwn(r.bK.value,"sdkPath")&&"string"==typeof(null==(s=r.bK.value)?void 0:s.sdkPath)&&null!=(n=r.bK.value)&&n.sdkPath&&(o.sdkPath=r.bK.value.sdkPath),o}),a=e=>Object.hasOwn(o.value,e)?o.value[e]:void 0},8957:function(e,t,s){"use strict";s.d(t,{Y:function(){return r},h:function(){return n}});var n=(0,s(4576).vP)(null),r=e=>{n.value=e}},8975:function(e,t,s){"use strict";s.d(t,{k:function(){return u},B:function(){return l}});var n=s(8623),r=s(4576),i=s(1843),o=s(259),a=(0,r.EW)(()=>{var e,t;return"2.0.0"===(null==(e=o.bK.value)||null==(t=e.ui)?void 0:t.version)}),u={ENABLED:!0,DISABLED:!1,UNDEFINED:void 0},l=(0,r.EW)(()=>{var e,t,s="mixed"===(null==(e=i.r.value)||null==(t=e.group)?void 0:t.name),r=!a.value,o=n.x.value.isEnabled?n.x.value.defaultUserStatus:{optin:u.DISABLED,optout:u.ENABLED,essential:u.ENABLED};return s?{optin:{default:o.optin,initial:{purposes:{value:o.optin,includeOnlySPI:r},operators:{value:u.UNDEFINED}},collect:{purposes:!0,operators:{firstPartyOperators:{enable:!1},thirdPartyOperators:{enable:!1}}}},optout:{default:o.optout,initial:{purposes:{value:o.optout},operators:{value:o.optout,includeAllProcessingRules:!0}},collect:{purposes:!0,operators:{firstPartyOperators:{enable:!1},thirdPartyOperators:{enable:!0,as:["optin","optout"]}}}},essential:{default:o.essential,initial:{purposes:{value:u.ENABLED},operators:{value:u.ENABLED}},collect:{purposes:!1,operators:{firstPartyOperators:{enable:!1},thirdPartyOperators:{enable:!1}}}}}:{optin:{default:o.optin,initial:{purposes:{value:u.UNDEFINED},operators:{values:u.UNDEFINED}},collect:{purposes:!0,operators:{firstPartyOperators:{enable:!1},thirdPartyOperators:{enable:!0}}}},optout:{default:o.optout,initial:{purposes:{value:u.UNDEFINED},operators:{value:u.UNDEFINED}},collect:{purposes:!0,operators:{firstPartyOperators:{enable:!1},thirdPartyOperators:{enable:!0}}}},essential:{default:o.essential,initial:{purposes:{value:u.ENABLED},operators:{value:u.ENABLED}},collect:{purposes:!1,operators:{firstPartyOperators:{enable:!1},thirdPartyOperators:{enable:!1}}}}}})},9015:function(e,t,s){var n=function(){function e(e,t){for(var s=0;s{var e;return(null==(e=r.E.value)?void 0:e.filter(e=>{var t,s;return!!e.namespaces&&(Object.keys(e.namespaces).includes("google")&&!(null==e||null==(t=e.namespaces)||null==(s=t.google)||!s.current))}))||[]})},9124:function(e,t,s){"use strict";s.d(t,{N:function(){return r}});var n=s(9757),r=function(e,t,s,r,i){void 0===i&&(i=!1);var o=((e,t)=>"string"!=typeof e?t?(0,n.PL)(e):(0,n.KX)(e):e)(e,i),a=r.filter(((e,t)=>s=>s.purposeId===e&&s.vendors.includes(t))(o,t));return a.some(e=>["disallow","allow",s].includes(e.restrictionType))}},9621:function(e,t,s){"use strict";s.r(t),s.d(t,{Wrapper:function(){return i}});var n=s(378),r=s(5217);class i{constructor(e,t){this.windowVarCall=e,this.windowVarReadys=t||[e],this.createCondition(this.windowVarReadys,window)?this.loaded=!0:(this.loaded=!1,this.loading=new Promise(e=>{(0,r.Tv)(t=>{this.createCondition(this.windowVarReadys,window)&&(this.loaded=!0,e(),t())},100,3e4)}))}createCondition(e,t){return e.reduce((e,s)=>{var r=Array.isArray(s)?s.reduce((e,s)=>e||Boolean((0,n.Jt)(t,s)),!1):(0,n.Jt)(t,s);return e&&Boolean(r)},!0)}call(e){for(var t=arguments.length,s=new Array(t>1?t-1:0),n=1;n{this.doCall(this.windowVarCall,e,...s)});this.doCall(this.windowVarCall,e,...s)}doCall(e,t){var s=(0,n.Jt)(window,e,{}),r=s[t];if(r&&"function"==typeof r){for(var i=arguments.length,o=new Array(i>2?i-2:0),a=2;a{var e,t,s;if(null==(e=r.bK.value)||!e.version||null==(t=r.bK.value)||!t.preferences)return[];var{sensitivePersonalInformation:n}=r.bK.value.preferences;return(null==n||null==(s=n.categories)?void 0:s.flatMap(e=>e.children.filter(e=>{var t;return"purpose"===e.type&&void 0!==(null==(t=i.m.value)?void 0:t[e.purposeId])}).map(e=>i.m.value[e.purposeId])))||[]})},9757:function(e,t,s){"use strict";s.d(t,{FG:function(){return p},H2:function(){return d},KX:function(){return l},LN:function(){return o},PL:function(){return m},RQ:function(){return a},VF:function(){return i},br:function(){return h},cu:function(){return g},eL:function(){return r},gS:function(){return u},in:function(){return f},le:function(){return b},x4:function(){return c}});var n=s(378),r={Cookies:"cookies",CookiesAnalytics:"cookies_analytics",CookiesMarketing:"cookies_marketing",CookiesSocial:"cookies_social",AdvertisingPersonalization:"advertising_personalization",Analytics:"analytics",ContentPersonalization:"content_personalization",AdDelivery:"ad_delivery",DeviceAccess:"device_access",OfflineMatch:"offline_match",LinkDevices:"link_devices",PreciseGeo:"precise_geo",SelectBasicAds:"select_basic_ads",CreateAdsProfile:"create_ads_profile",SelectPersonalizedAds:"select_personalized_ads",CreateContentProfile:"create_content_profile",SelectPersonalizedContent:"select_personalized_content",MeasureAdPerformance:"measure_ad_performance",MeasureContentPerformance:"measure_content_performance",MarketResearch:"market_research",ImproveProducts:"improve_products",UseLimitedDataToSelectContent:"use_limited_data_to_select_content"},i={consentOnly:0,consentAndLegitimateInterest:1},o={[r.Cookies]:1,[r.CookiesAnalytics]:1,[r.CookiesMarketing]:1,[r.CookiesSocial]:1,[r.SelectBasicAds]:2,[r.CreateAdsProfile]:3,[r.SelectPersonalizedAds]:4,[r.CreateContentProfile]:5,[r.SelectPersonalizedContent]:6,[r.MeasureAdPerformance]:7,[r.MeasureContentPerformance]:8,[r.MarketResearch]:9,[r.ImproveProducts]:10,[r.UseLimitedDataToSelectContent]:11},a={1:r.Cookies,2:r.SelectBasicAds,3:r.CreateAdsProfile,4:r.SelectPersonalizedAds,5:r.CreateContentProfile,6:r.SelectPersonalizedContent,7:r.MeasureAdPerformance,8:r.MeasureContentPerformance,9:r.MarketResearch,10:r.ImproveProducts,11:r.UseLimitedDataToSelectContent},u={[r.Cookies]:1,[r.SelectBasicAds]:2,[r.CreateAdsProfile]:3,[r.SelectPersonalizedAds]:4,[r.CreateContentProfile]:5,[r.SelectPersonalizedContent]:6,[r.MeasureAdPerformance]:7,[r.MeasureContentPerformance]:8,[r.MarketResearch]:9,[r.ImproveProducts]:10};function l(e){for(var t of Object.keys(o))if(String(e)===String(o[t]))return t;return null}var d={GeolocationData:"geolocation_data",DeviceCharacteristics:"device_characteristics"},c={[d.GeolocationData]:1,[d.DeviceCharacteristics]:2},p={1:d.GeolocationData,2:d.DeviceCharacteristics},v=Object.keys(c);Object.keys(u);function h(e){return"iab"===e.namespace||!!e.namespaces&&(!!e.namespaces.iab||!!e.namespaces.iab2)}function g(e){return!!(0,n.Jt)(e,"namespaces.google.current")}function f(e){if("iab"===e.namespace){var t="number"==typeof e.id?e.id:parseInt(e.id,10);if(t)return t}else if(e.namespaces){if("number"==typeof e.namespaces.iab)return e.namespaces.iab;if("number"==typeof e.namespaces.iab2)return e.namespaces.iab2}return null}function m(e){for(var t of v)if(String(e)===String(c[t]))return t;return null}var b={google:755,salesforce:506}},9838:function(e,t,s){"use strict";s.d(t,{i:function(){return r}});var n=["ar","dv","fa","ha","he","ks","ku","ps","sd","ug","ur","yi"],r=e=>{if(!e||"string"!=typeof e)return"ltr";var t=e.slice(0,2);return n.includes(t)?"rtl":"ltr"}}},i={};function o(e){var t=i[e];if(void 0!==t)return t.exports;var s=i[e]={id:e,loaded:!1,exports:{}};return r[e].call(s.exports,s,s.exports,o),s.loaded=!0,s.exports}o.m=r,o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,{a:t}),t},t=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__},o.t=function(s,n){if(1&n&&(s=this(s)),8&n)return s;if("object"==typeof s&&s){if(4&n&&s.__esModule)return s;if(16&n&&"function"==typeof s.then)return s}var r=Object.create(null);o.r(r);var i={};e=e||[null,t({}),t([]),t(t)];for(var a=2&n&&s;("object"==typeof a||"function"==typeof a)&&!~e.indexOf(a);a=t(a))Object.getOwnPropertyNames(a).forEach(function(e){i[e]=function(){return s[e]}});return i.default=function(){return s},o.d(r,i),r},o.d=function(e,t){for(var s in t)o.o(t,s)&&!o.o(e,s)&&Object.defineProperty(e,s,{enumerable:!0,get:t[s]})},o.f={},o.e=function(e){return Promise.all(Object.keys(o.f).reduce(function(t,s){return o.f[s](e,t),t},[]))},o.u=function(e){return e+".6e903234de01d30e6a306f02442e95c9e91c20ed.js"},o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},s={},n="Didomi:",o.l=function(e,t,r,i){if(s[e])s[e].push(t);else{var a,u;if(void 0!==r)for(var l=document.getElementsByTagName("script"),d=0;d{var s=(0,f.$)([...e,...t,...I.T.value]),n=A.t.value.purposeIds.filter(e=>-1===s.indexOf(e));return{enabled:s,disabled:n}}),T=(0,g.Mz)([P,function(){var e,t;return(null==(e=C.I.value)||null==(t=e.vendors)?void 0:t.disabled)||[]},function(){var e,t;return(null==(e=C.I.value)||null==(t=e.vendors_li)?void 0:t.enabled)||[]},function(){var e,t;return(null==(e=C.I.value)||null==(t=e.vendors_li)?void 0:t.disabled)||[]}],(e,t,s,n)=>(0,f.$)([...e,...t,...s,...n,...b.R.value])),k=(0,g.Mz)([_,P,T],(e,t,s)=>{var n=t.filter(t=>{var s;return!(null==(s=m.o.value)||!s[t])&&(0,y.Z)(m.o.value[t].purposeIds,[...e,...I.T.value])}),r=s.filter(e=>-1===n.indexOf(e));return{enabled:n,disabled:r}}),D=(0,g.Mz)([E,O,T],(e,t,s)=>{var n=t.filter(t=>{var s;return!(null==(s=m.o.value)||!s[t])&&(0,y.Z)((0,l.gi)(m.o.value[t].legIntPurposeIds),[...e,...I.T.value])}),r=s.filter(e=>-1===n.indexOf(e));return{enabled:n,disabled:r}}),U=(0,g.Mz)([_,E,P,O,T],(e,t,s,n,r)=>{var i=(0,f.$)([...s,...n]).filter(s=>{var n;if(null!=(n=m.o.value)&&n[s]){var r=[...(0,l.gi)(m.o.value[s].purposeIds),...(0,l.gi)(m.o.value[s].legIntPurposeIds)],i=[...e,...t,...I.T.value];return(0,y.Z)(r,i)}return!1}),o=r.filter(e=>-1===i.indexOf(e));return{enabled:i,disabled:o}}),V=(0,g.Mz)([()=>C.I.value,()=>S.M.value,()=>w.J.value,L,U,k,D],(e,t,s,n,r,i,o)=>({purposes:{consent:{enabled:(0,l.Jt)(e,"purposes.enabled"),disabled:(0,l.Jt)(e,"purposes.disabled")},legitimate_interest:{enabled:(0,l.Jt)(e,"purposes_li.enabled"),disabled:(0,l.Jt)(e,"purposes_li.disabled")},global:n,essential:I.T.value},vendors:{consent:{enabled:(0,l.Jt)(e,"vendors.enabled"),disabled:(0,l.Jt)(e,"vendors.disabled")},legitimate_interest:{enabled:(0,l.Jt)(e,"vendors_li.enabled"),disabled:(0,l.Jt)(e,"vendors_li.disabled")},global:r,global_consent:i,global_li:o},user_id:e.user_id,created:e.created,updated:e.updated,consent_string:t,addtl_consent:s})),R=o(8307),N=o(4576),B=(0,N.EW)(()=>{var e,t=null==(e=s.bK.value)?void 0:e.hooks;return t&&"object"==typeof t.functions?t.functions:null}),x=function(e,t){return void 0===t&&(t=void 0),B.value&&B.value[e]&&"function"==typeof B.value[e]?B.value[e]:t},M=o(5159),F=o(2321),z=o(10),j=o(4746),G=o(2477),W=(0,N.EW)(()=>{var e,t;return!!(null!=(e=F.G.value)&&e.ignoreConsentBefore&&F.G.value.ignoreConsentBefore{if(!K.value.has(e)){var t=new Set(K.value);t.add(e),K.value=t}},Z=o(9015),Y=(0,N.EW)(()=>(0,Z.CWTFromCompressedJSON)(JSON.stringify(C.I.value))),Q=o(4004),$=(e,t)=>{if(!Q.y.value)return!0;var s=t.byLegalBasis.consent.purposesById[e];return void 0!==s?s:!0===t.byLegalBasis.consent.purposesById.cookies},X=(0,N.EW)(()=>{var e=["essential"];return $("cookies_analytics",H.a.value)&&e.push("analytics"),$("cookies_marketing",H.a.value)&&e.push("marketing"),$("cookies_social",H.a.value)&&e.push("social"),e}),ee=()=>{(0,R.Ic)("cookies.enable",X.value)},te=o(6406);class se extends v.A{getUserConsentStatusForAllPurposesByVendor(e){e=parseInt(e,10)||e;var t=(0,l.Jt)(this.store.getState(),"consentByVendor."+e+".consentToAllPurposes");if("boolean"==typeof t)return t}getObservableOnUserConsentStatusForAllPurposesByVendor(e){var t=new p(null,this.getUserConsentStatusForAllPurposesByVendor(e)),s=(0,R.ew)();return s>=(0,R.mW)()&&(0,R.kj)(s+1),(0,R.on)("internal.consent.changed",()=>{t.next(this.getUserConsentStatusForAllPurposesByVendor(e))}),t.distinctUntilChanged()}getUserStatusForVendor(e){var t,n=null==(t=m.o.value)?void 0:t[e];if(n){var r,i,o,a=!0,u=!0;return Array.isArray(n.legIntPurposeIds)&&n.legIntPurposeIds.length>0&&(a=H.a.value.byLegalBasis.li.vendorsById[n.id]),Array.isArray(n.purposeIds)&&n.purposeIds.length>0&&(u=H.a.value.byLegalBasis.consent.vendorsById[e]),"1.0.0"===(null==(r=s.bK.value)?void 0:r.version)&&"mixed"===(null==(i=J.r.value)||null==(o=i.group)?void 0:o.name)?a:a&&u}}getUserStatusForVendorAndLinkedPurposes(e){var t,s,n,r,i,o,a,u,l,d=null==(t=m.o.value)?void 0:t[e],c=x("isVendorEnabled");if(c)return c({vendor:d,enabledPurposes:null==(s=C.I.value)||null==(n=s.purposes)?void 0:n.enabled,disabledPurposes:null==(r=C.I.value)||null==(i=r.purposes)?void 0:i.disabled,enabledVendors:null==(o=C.I.value)||null==(a=o.vendors)?void 0:a.enabled,disabledVendors:null==(u=C.I.value)||null==(l=u.vendors)?void 0:l.disabled});if(d){var p=!0,v=!0;return Array.isArray(d.legIntPurposeIds)&&d.legIntPurposeIds.length>0&&(p=d.legIntPurposeIds.reduce((e,t)=>!1===e?e:H.a.value.byLegalBasis.li.purposesById[t],!0)),Array.isArray(d.purposeIds)&&d.purposeIds.length>0&&(v=d.purposeIds.reduce((e,t)=>!1===e?e:H.a.value.byLegalBasis.consent.purposesById[t],!0)),this.getUserStatusForVendor(e)&&p&&v}}getUndefinedPurposes(){var e,t,s,n,r=[...null==(e=C.I.value)||null==(t=e.purposes)?void 0:t.enabled,...null==(s=C.I.value)||null==(n=s.purposes)?void 0:n.disabled];return A.t.value.purposeIdsBasedOnConsent.filter(e=>-1===r.indexOf(e))}setUserConsentStatusDeprecated(e,t,s){t=Array.isArray(t)?t:[t],s=Array.isArray(s)?s:[s];var n=new d.A(this.getUserStatus.bind(this),this.setUserStatus.bind(this));!0===e?(n.enablePurposes(...t),n.enableVendors(...s)):(n.enablePurposes(...this.getUndefinedPurposes()),n.disableVendors(...s)),n.commit(),this.services.NoticeService.hide()}setUserConsentStatus(e,s,n,r,i,o,a,u,d,c,p){void 0===e&&(e=[]),void 0===s&&(s=[]),void 0===n&&(n=[]),void 0===r&&(r=[]),void 0===i&&(i=[]),void 0===o&&(o=[]),void 0===a&&(a=[]),void 0===u&&(u=[]),e=Array.isArray(e)?e:[e],s=Array.isArray(s)?s:[s],n=Array.isArray(n)?n:[n],r=Array.isArray(r)?r:[r],n=n.filter(e=>{var t,s=null==(t=m.o.value)?void 0:t[e];return!s||s.purposeIds.length>0});var v=C.I.value,h=I.T.value,g=e=>-1===h.indexOf(e),f=(0,t.A)({},v,{vendors:{enabled:n,disabled:r},purposes:{enabled:e.filter(g),disabled:s.filter(g)},version:M.a.defaultTCFVersion,vendors_li:{enabled:a,disabled:u},purposes_li:{enabled:i.filter(g),disabled:o.filter(g)}},d&&{created:d},c&&{updated:c}),b=!!d||!!c;(b||W.value||!(0,l.bD)(v,f))&&(this.actions.dropSignature(),f=this.services.StorageService.setTokenToStorages(f,!b),this.sendEvents(f,!1,p)),this.removeScrollListener(window.scrollListener)}sendEvents(e,t,s){void 0===t&&(t=!1);var{purposes:n,purposes_li:r,vendors:i,vendors_li:o,created:a,updated:u,dns:l}=e;"sync"!==s&&this.services.EventsService.sendConsentGiven({purposes:n,vendors:i,created:a,updated:u,dns:!0===l||void 0,from_euconsent:t,action:"string"==typeof s?s:void 0,purposes_li:r,vendors_li:o},"navigate"===s),(0,R.Ic)("internal.consent.changed"),(0,R.Ic)("consent.changed",{get consentToken(){return q("consent-web-token"),Y.value},fromEUConsent:t,action:s}),this.setBrowserCookieState(e.purposes.enabled)}removeScrollListener(e){"function"==typeof e&&-1!==String(e).indexOf("Didomi.setUserAgreeToAll()")&&window.removeEventListener("scroll",e)}setBrowserCookieState(e){e.some(e=>0===e.indexOf("cookies"))&&ee()}getUserStatus(){var e;return"none"===(null==(e=J.r.value)?void 0:e.name)?(0,l.Go)(this.getUserStatusForNoneRegulation()):(0,l.Go)(V(this.store.getState()))}getUserStatusForNoneRegulation(){var e,t,s,n=A.t.value.purposeIds;return{purposes:{consent:{enabled:A.t.value.purposeIdsBasedOnConsent,disabled:[]},legitimate_interest:{enabled:A.t.value.purposeIdsBasedOnLI,disabled:[]},global:n,essential:I.T.value},vendors:{consent:{enabled:te.H.value.operatorIdsWithAtLeastOneOptinPurpose,disabled:[]},legitimate_interest:{enabled:te.H.value.operatorIdsWithAtLeastOneOptoutPurpose,disabled:[]},global:b.R.value,global_consent:te.H.value.operatorIdsWithAtLeastOneOptinPurpose,global_li:te.H.value.operatorIdsWithAtLeastOneOptoutPurpose},user_id:null==(e=C.I.value)?void 0:e.user_id,created:null==(t=C.I.value)?void 0:t.created,updated:null==(s=C.I.value)?void 0:s.updated,consent_string:S.M.value,addtl_consent:w.J.value}}setCurrentUserStatus(e){var t,s=null==(t=J.r.value)?void 0:t.name,n=(0,l.Go)(C.I.value);if("none"===s)return!1;var r=A.t.value.purposeIdsBasedOnLI,i=A.t.value.purposeIdsBasedOnConsent,o=I.T.value,a=z.C.value,u={};for(var d of Object.keys(a))u[a[d]]=d;var c=te.H.value.operatorIdsWithAtLeastOneOptoutPurpose,p=te.H.value.operatorIdsWithAtLeastOneOptinPurpose;if(!(0,j.q7)(e.vendors,b.R.value,u))return!1;if(!(0,j.q7)(e.purposes,[...i,...r,...o]))return!1;var v=(0,j.jh)({globalUserStatus:e.vendors,includeIds:p,reversedIdsToDidomiIdsMap:u}),h=(0,j.jh)({globalUserStatus:e.vendors,includeIds:c,reversedIdsToDidomiIdsMap:u}),g=(0,j.jh)({globalUserStatus:e.purposes,includeIds:i,parseNumIds:!1}),f=(0,j.jh)({globalUserStatus:e.purposes,includeIds:r,parseNumIds:!1}),m=n.created,y=(new Date).toISOString(),S=e.action;return this.setUserConsentStatus(g.enabled,g.disabled,v.enabled,v.disabled,f.enabled,f.disabled,h.enabled,h.disabled,m,y,S),this.services.WebsiteService.shouldConsentBeCollected()||this.services.NoticeService.hide(),(0,j.y3)(C.I.value,n)}setUserStatusForAll(e){var{purposesConsentStatus:t,purposesLIStatus:s,vendorsConsentStatus:n,vendorsLIStatus:r,created:i,updated:o,action:a}=e,u=I.T.value,d=A.t.value.purposeIdsBasedOnConsent||[],c=A.t.value.purposeIdsBasedOnLI,p=b.R.value;if(0!==[...d,...te.H.value.operatorIdsWithAtLeastOneOptoutPurpose].length&&0!==p.length||0!==u.length){var v={};t?((0,l.hZ)(v,"purposes.consent.enabled",d),(0,l.hZ)(v,"purposes.consent.disabled",[])):((0,l.hZ)(v,"purposes.consent.enabled",[]),(0,l.hZ)(v,"purposes.consent.disabled",d)),s?((0,l.hZ)(v,"purposes.legitimate_interest.enabled",c),(0,l.hZ)(v,"purposes.legitimate_interest.disabled",[])):((0,l.hZ)(v,"purposes.legitimate_interest.enabled",[]),(0,l.hZ)(v,"purposes.legitimate_interest.disabled",c)),n?((0,l.hZ)(v,"vendors.consent.enabled",p),(0,l.hZ)(v,"vendors.consent.disabled",[])):((0,l.hZ)(v,"vendors.consent.enabled",[]),(0,l.hZ)(v,"vendors.consent.disabled",p)),r?((0,l.hZ)(v,"vendors.legitimate_interest.enabled",te.H.value.operatorIdsWithAtLeastOneOptoutPurpose),(0,l.hZ)(v,"vendors.legitimate_interest.disabled",[])):((0,l.hZ)(v,"vendors.legitimate_interest.enabled",[]),(0,l.hZ)(v,"vendors.legitimate_interest.disabled",te.H.value.operatorIdsWithAtLeastOneOptoutPurpose)),(0,l.hZ)(v,"created",i),(0,l.hZ)(v,"updated",o),(0,l.hZ)(v,"action",a),this.setUserStatus(v)}}setUserStatus(e){this.setUserConsentStatus((0,l.Jt)(e,"purposes.consent.enabled",[]),(0,l.Jt)(e,"purposes.consent.disabled",[]),(0,l.Jt)(e,"vendors.consent.enabled",[]),(0,l.Jt)(e,"vendors.consent.disabled",[]),(0,l.Jt)(e,"purposes.legitimate_interest.enabled",[]),(0,l.Jt)(e,"purposes.legitimate_interest.disabled",[]),(0,l.Jt)(e,"vendors.legitimate_interest.enabled",[]),(0,l.Jt)(e,"vendors.legitimate_interest.disabled",[]),(0,l.Jt)(e,"created"),(0,l.Jt)(e,"updated"),(0,l.Jt)(e,"action")),this.services.WebsiteService.shouldConsentBeCollected()||this.services.NoticeService.hide()}loadExternalConsent(){var e=F.G.value.externalConsent;if(e.enabled&&e.value&&"object"==typeof e.value){var t=e.value;if(null!=t&&t.purposes||null!=t&&t.vendors)this.setUserStatus(t);else{var{disabledPurposes:s,disabledVendors:n,enabledPurposes:r,enabledVendors:i,enabledPurposesLegitimateInterests:o,disabledPurposesLegitimateInterests:a,enabledVendorsLegitimateInterests:u,disabledVendorsLegitimateInterests:l,action:d}=t;this.setUserConsentStatus(r,s,i,n,o,a,u,l,void 0,void 0,d)}}}}se.Purposes=h.eL,se.prototype.Purposes=h.eL;var ne=o(4905),re=o(8623),ie=(0,N.EW)(()=>{var e,t,r,i,o,a={sampleSizes:{},template:{source:{type:"sdk-web",domain:location.host},user:{agent:navigator.userAgent,id_type:"uuid",regs:[]}}},u=null==(e=s.bK.value)?void 0:e.events;null!=u&&u.source&&("string"==typeof u.source.type&&(a.template.source.type=u.source.type),"string"==typeof u.source.domain&&(a.template.source.domain=u.source.domain)),!1===(null==u?void 0:u.enabled)&&(a.muteAPIEvents=!0);var l=(null==(t=n.b.value)||null==(r=t.events)?void 0:r.sampleSizes)||{};for(var d of Object.keys(l))null!=u&&u.sampleSizes&&"number"==typeof u.sampleSizes[d]?a.sampleSizes[d]=u.sampleSizes[d]:a.sampleSizes[d]=l[d];if("mixed"===(null==(i=J.r.value)||null==(o=i.group)?void 0:o.name)){var c={type:re.x.value.isSupportedByBrowser?"gpc":"none"};re.x.value.isEnabled&&(c.notice_action=re.x.value.shouldShowNotice?"shown":"hidden",c.status=re.x.value.isUserOptedOut),a.template.source.privacy_control=c}return a}),oe=(0,g.Mz)(e=>{var t;return null==(t=e.website)?void 0:t.customDomain},()=>{var e,t,s;return null==(e=ie.value)||null==(t=e.template)||null==(s=t.source)?void 0:s.domain},(e,t)=>e||t||location.host||"com.app.generic"),ae=o(4408),ue=o(8957),le=o(5094),de=o(8557),ce=o(5560),pe=o(6923),ve=o(152),he=(0,N.EW)(()=>{var e,t=null==(e=ve.U.value)?void 0:e.providerKey;if(t)return t;var s=document.getElementById("spcloader");if(s&&s.getAttribute){var n=s.getAttribute("data-provider");if("string"==typeof n&&n.length>0)return n}}),ge=(0,N.EW)(()=>{var e,n,r,i=null==(e=s.bK.value)?void 0:e.experiment;if(!i)return null;var o=i&&i.id&&i.config,a=i&&"number"==typeof i.size&&i.size>=0&&i.size<=1,u=!1;if(i&&(i.group&&("string"!=typeof i.group||"test"!==i.group&&"control"!==i.group)||(u=!0)),o&&a&&u){i.config.experiment&&delete i.config.experiment;var l={config:i.config,id:i.id,size:i.size,startDate:i.startDate};i.startDate?(0,G.u)(i.startDate)instanceof Date?(i.group&&(l.group=i.group),r=l):(console.log("Didomi - The test start date must be a date formatted as an ISO-8601 string"),r=null):(i.group&&(l.group=i.group),r=l)}else o?a?u||console.log('Didomi - The experiment group must be "control" or "test"'):console.log("Didomi - The test group size must be between 0 and 1"):console.log("Didomi - Experiment requires an ID, a size and a config to run"),r=null;var{id:d,size:c,startDate:p,group:v}=null!=(n=r)?n:{};if(!d||"number"!=typeof c)return null;if(!((e,t)=>{if(!e)return!0;var s=(0,G.u)(e);if(!s)return!0;var n=(0,G.u)(t);return n instanceof Date&&s.getTime()<=n.getTime()})(p,C.I.value.created))return null;var h,g,f=v||(h=C.I.value.user_id,g=c,h&&36===h.length?0===g?"control":parseInt(h.slice(-5),16)%1e3<1e3*g?"test":"control":null);return f&&f?(0,t.A)({},r,{group:f}):null}),fe=(0,N.EW)(()=>{var{value:e}=ge;return e&&e.id?{group:e.group,id:e.id,size:e.size,startDate:e.startDate}:null}),me=o(2177);class be extends v.A{constructor(e,t,s){super(e,t,s),this.sentEvents={}}configure(e){window.didomiEventListeners=window.didomiEventListeners||[],window.didomiEventListeners.push({event:"preferences.shownpurposes",listener:this.sendPreferencesPurposesShown.bind(this)},{event:"preferences.shownvendors",listener:this.sendPreferencesVendorsShown.bind(this)},{event:"preferences.clickpurposeagree",listener:this.sendPreferencesPurposeStatusChanged.bind(this)},{event:"preferences.clickpurposedisagree",listener:this.sendPreferencesPurposeStatusChanged.bind(this)},{event:"preferences.clickvendoragree",listener:this.sendPreferencesVendorStatusChanged.bind(this)},{event:"preferences.clickvendordisagree",listener:this.sendPreferencesVendorStatusChanged.bind(this)},{event:"preferences.shownpersonaldatatypes",listener:this.sendPreferencesShownPersonalDataTypes.bind(this)},{event:"preferences.clickspiagree",listener:this.sendPreferencesSPIChanged.bind(this)},{event:"preferences.clickspidisagree",listener:this.sendPreferencesSPIChanged.bind(this)})}customizeEvent(e,n){var r,i,o,a,u,d,{includeToken:c=!0,includeUserId:p=!1,organizationUserId:v=null,authorizationParameters:h={},includeSignature:g=!1}=void 0===n?{}:n;he.value&&(0,l.hZ)(e,"source.provider",he.value),ae.K.value&&(0,l.hZ)(e,"source.key",ae.K.value);var f=null==(r=ue.h.value)?void 0:r.country;f&&(0,l.hZ)(e,"user.country",f);var m=null==(i=ue.h.value)?void 0:i.region;m&&(0,l.hZ)(e,"user.region",m);var b=[],I=null==(o=J.r.value)?void 0:o.name;I&&b.push(I),(0,l.hZ)(e,"user.regs",b);var y=(0,l.Go)(C.I.value);p&&y.user_id&&(0,l.hZ)(e,"user.id",y.user_id),v&&(0,l.hZ)(e,"user.organization_user_id",v),(0,l.hZ)(e,"user",(0,t.A)({},e.user,h)),c&&y&&Object.keys(y).length>0&&((0,l.hZ)(e,"user.token",y),p||(0,l.hZ)(e,"user.token.user_id",null));var w,A,_=fe.value;(_&&(0,l.Kg)(_.group)&&(0,l.Kg)(_.id)&&(0,l.Et)(_.size)&&(e.experiment=_),pe.X.value&&((0,l.hZ)(e,"user.tcfcs",S.M.value),(0,l.hZ)(e,"user.tcfv",ce.q.value.majorVersion)),null!=(a=ve.U.value)&&a.deploymentId)&&(0,l.hZ)(e,"source.deployment_id",null==(w=ve.U.value)?void 0:w.deploymentId);null!=(u=s.bK.value)&&u.id&&(0,l.hZ)(e,"source.sdk_config_id",null==(A=s.bK.value)?void 0:A.id);var P=oe(this.store.getState());if(P&&(0,l.hZ)(e,"source.domain",P),g&&null!=(d=de.O.value)&&d.signatureEnabled){var E=this.services.SignatureService.getSignatureParams();E&&((0,l.hZ)(e,"user.dcs",E.dcs),(0,l.hZ)(e,"user.dcs_user",E.dcsUser))}return e}send(e,t,s,r,i){var o,a;if(void 0===t&&(t=null),void 0===s&&(s=null),void 0===r&&(r=!1),void 0===i&&(i=!0),null!=(o=ie.value)&&o.muteAPIEvents)return null;if(!(0,l.zu)(this.eventTypes).map(e=>e.type).includes(e))throw new Error("Invalid event type "+e);if("number"==typeof s){if(!((e,t)=>!(!e||36!==e.length||!t||"number"!=typeof t||t<0||t>1)&&parseInt(e.slice(-2),16)/255<=t)(this.services.StorageService.getIdFromConsentToken(),s))return null}else s=1;var u=[],d=[{organizationUserId:null==(a=F.G.value)?void 0:a.organizationUserId,authorizationParameters:this.services.SyncService.getAuthorizationParameters(),includeUserId:!0}];if("consent.given"===e){var c,p=null==(c=F.G.value)?void 0:c.synchronizedUsers;null==p||p.forEach(e=>{d.push({parameters:{action:"multiple-IDs"},organizationUserId:e.organizationUserId,authorizationParameters:this.services.SyncService.getMappedAuthorizationParameters(e)})}),d[0].includeSignature=!0}return d.forEach(n=>{var i,o=this.customizeEvent((0,l.Go)(null==(i=ie.value)?void 0:i.template),n);o.type=e,o.rate=s,t&&(o.parameters=t),n.parameters&&(o.parameters=(0,l.or)(o.parameters,n.parameters)),(0,l.hZ)(o,"source.beacon",!1),!0===r&&"function"==typeof navigator.sendBeacon&&(0,l.hZ)(o,"source.beacon",!0),u.push(o)}),!0===r&&"function"==typeof navigator.sendBeacon?navigator.sendBeacon((0,n.M)("apiPath")+"/events?data_format=json",JSON.stringify(u)):ne.ajax({method:"POST",url:(0,n.M)("apiPath")+"/events",body:JSON.stringify(u),headers:{"Content-Type":"application/json"},cors:!0},(t,s)=>this.processEventResponse({code:t,responseText:s,type:e})),u}processEventResponse(e){var{code:t,responseText:s,type:n}=e;if(201===t&&s){var r=JSON.parse(s);if(Array.isArray(r)){var i=r.find(e=>e.dcs&&e.dcs_user&&e.signature);i&&this.services.SignatureService.updateCookie({dcsUserId:i.dcs_user,signature:i.signature,trigger:"consent-changed"})}}else{var o,a=(null==(o=(0,l.zu)(this.eventTypes).find(e=>e.type===n))?void 0:o.errorName)||"createEvent";(0,R.KU)(t,a)}}sendPageview(e){void 0===e&&(e=!1);var s=le.M.value&&sessionStorage.getItem("didomi-page-session-active");if(void 0===this.sentEvents[this.eventTypes.pageview.type]&&!s){var n,r,i=null;K.value.size>0&&(i=(0,t.A)({},i||{},{features:[...K.value]})),me.A.value&&(i=(0,t.A)({},i||{},{gcm_error:me.A.value})),this.send(this.eventTypes.pageview.type,i,null==(n=ie.value)||null==(r=n.sampleSizes)?void 0:r.pageview,e,!0),this.sentEvents[this.eventTypes.pageview.type]=!0,le.M.value&&window.sessionStorage.setItem("didomi-page-session-active",!0)}}sendConsentAsked(e,t,s,n,r){var i,o;void 0===this.sentEvents[this.eventTypes.consentAsked.type]&&(this.send(this.eventTypes.consentAsked.type,{purposes:e,vendors:t,position:r,purposes_li:s,vendors_li:n},null==(i=ie.value)||null==(o=i.sampleSizes)?void 0:o.consentAsked),this.sentEvents[this.eventTypes.consentAsked.type]=!0)}sendConsentGiven(e,t){var s,n;void 0===t&&(t=!1),this.send(this.eventTypes.consentGiven.type,e,null==(s=ie.value)||null==(n=s.sampleSizes)?void 0:n.consentGiven,t)}sendPreferencesPurposesShown(){var e,t,s=this.eventTypes.uiAction.type+"-preferences.showpurposes";void 0===this.sentEvents[s]&&(this.send(this.eventTypes.uiAction.type,{action:"preferences.shownpurposes"},null==(e=ie.value)||null==(t=e.sampleSizes)?void 0:t.uiActionPreferencesPurposes,!1,!1),this.sentEvents[s]=!0)}sendPreferencesVendorsShown(){var e,t,s=this.eventTypes.uiAction.type+"-preferences.showvendors";void 0===this.sentEvents[s]&&(this.send(this.eventTypes.uiAction.type,{action:"preferences.shownvendors"},null==(e=ie.value)||null==(t=e.sampleSizes)?void 0:t.uiActionPreferencesVendors,!1,!1),this.sentEvents[s]=!0)}sendPreferencesPurposeStatusChanged(e){var s,n,r=e||{},i=this.eventTypes.uiAction.type+"-preferences.purposechanged";void 0===this.sentEvents[i]&&(this.send(this.eventTypes.uiAction.type,(0,t.A)({action:"preferences.purposechanged",category:void 0!==r.category&&r.category},r),null==(s=ie.value)||null==(n=s.sampleSizes)?void 0:n.uiActionPreferencesPurposeChanged,!1,!1),this.sentEvents[i]=!0)}sendPreferencesVendorStatusChanged(){var e,t,s=this.eventTypes.uiAction.type+"-preferences.vendorchanged";void 0===this.sentEvents[s]&&(this.send(this.eventTypes.uiAction.type,{action:"preferences.vendorchanged"},null==(e=ie.value)||null==(t=e.sampleSizes)?void 0:t.uiActionPreferencesVendorChanged,!1,!1),this.sentEvents[s]=!0)}sendPreferencesShownPersonalDataTypes(){var e,t,s=this.eventTypes.uiAction.type+"-preferences.shownpersonaldatatypes";void 0===this.sentEvents[s]&&(this.send(this.eventTypes.uiAction.type,{action:"preferences.shownpersonaldatatypes"},null==(e=ie.value)||null==(t=e.sampleSizes)?void 0:t.uiActionPreferencesShownPersonalDataTypes,!1,!1),this.sentEvents[s]=!0)}sendPreferencesSPIChanged(){var e,t,s=this.eventTypes.uiAction.type+"-preferences.spichanged";void 0===this.sentEvents[s]&&(this.send(this.eventTypes.uiAction.type,{action:"preferences.spichanged"},null==(e=ie.value)||null==(t=e.sampleSizes)?void 0:t.uiActionPreferencesSPIChanged,!1,!1),this.sentEvents[s]=!0)}sendSyncAcknowledged(e){var t,s,n=this.eventTypes.syncAcknowledged.type;return!this.hasEventBeenSent(n)&&(this.send(this.eventTypes.syncAcknowledged.type,e,null==(t=ie.value)||null==(s=t.sampleSizes)?void 0:s.syncAcknowledged,!1,!1),this.sentEvents[n]=!0,!0)}hasEventBeenSent(e){return void 0!==this.sentEvents[e]}}be.prototype.eventTypes={pageview:{type:"pageview",errorName:"createEventPageview"},consentAsked:{type:"consent.asked",errorName:"createEventConsentAsked"},consentGiven:{type:"consent.given",errorName:"createEventConsentGiven"},uiAction:{type:"ui.action",errorName:"createEventUIAction"},syncAcknowledged:{type:"sync.acknowledged",errorName:"createEventSyncAcknowledged"},metrics:{type:"metrics",errorName:"createEventMetrics"}};var Ie=o(4768),ye=o(2639),Se=o(950);class Ce extends v.A{configure(e){e&&this.actions.setConsentNoticeConfig(e)}isVisible(){return(0,l.Jt)(this.store.getState(),"consentNotice.show")||!1}uiLoaded(){var e,t,s,n;!0===this.store.getState().consentNotice.showOnUILoad&&(null!=(e=Ie.l.value)&&e.enable&&this.actions.showConsentNotice(),(null!=(t=Ie.l.value)&&t.enable||null!=(s=ye.v.value)&&s.showWhenConsentIsMissing)&&(null==(n=Ie.l.value)||!n.enable)||(0,R.Ic)("notice.shown"))}show(){var e,t;"none"!==(null==(e=J.r.value)?void 0:e.name)?(null!=(t=F.G.value)&&t.isUnderage&&(0,Se.L)({visible:!0}),this.isVisible()||(this.actions.showConsentNoticeOnLoad(),this.services.UIService.show(this.uiLoaded.bind(this)))):console.warn("Didomi - No regulation applicable. The notice will not be shown.")}hide(){var e;this.isVisible()&&(0,R.Ic)("notice.hidden"),this.actions.hideConsentNotice(),null!=(e=F.G.value)&&e.isUnderage&&(0,Se.L)({visible:!1})}close(){this.hide(),(0,R.Ic)("notice.clickclose")}}var we=o(8281);class Ae extends v.A{configure(e){e&&this.actions.setConsentPopupConfig((0,t.A)({},e))}isVisible(){return(0,l.Jt)(this.store.getState(),"consentPopup.open")||!1}uiLoaded(e){var t,s,n,r;"information"===e?null!=(t=ye.v.value)&&null!=(s=t.information)&&s.enable&&(this.isVisible()||(0,R.Ic)("preferences.shown"),this.actions.showConsentPopup(),this.actions.switchViewConsentPopup(e)):(this.isVisible()||le.M.value||(0,R.Ic)("preferences.shown"),this.actions.showConsentPopup(),-1!==["purposes","vendors","sensitive-personal-information"].indexOf(e)?(this.actions.switchViewConsentPopup("preferences"),this.actions.switchPreferencesViewConsentPopup(e)):null!=(n=ye.v.value)&&null!=(r=n.information)&&r.enable?this.actions.switchViewConsentPopup("information"):(this.actions.switchViewConsentPopup("preferences"),this.actions.switchPreferencesViewConsentPopup("purposes")))}show(e){var t;if("vendors"===e&&!we.A.value)return console.error("Didomi - This action cannot be performed.");"none"!==(null==(t=J.r.value)?void 0:t.name)?this.services.UIService.show(this.uiLoaded.bind(this,e)):console.warn("Didomi - No regulation applicable. The notice will not be shown.")}hide(){this.isVisible()&&(this.actions.hideConsentPopup(),(0,R.Ic)("preferences.hidden"))}}var _e=o(5217),Pe=o(4956),Ee=o(6149),Oe=(0,N.EW)(()=>{if(!H.a.value.hasMadeAnyChoice&&te.H.value.thirdPartyOperators.length>0)return!1;var e=[];for(var t of A.t.value.purposesBasedOnConsent)e.push(H.a.value.byLegalBasis.consent.purposesById[t.id]);for(var s of A.t.value.purposesBasedOnLI)e.push(H.a.value.byLegalBasis.li.purposesById[s.id]);return te.H.value.thirdPartyOperators.forEach(t=>{t.collectionMethods.includes("optin")&&e.push(H.a.value.byLegalBasis.consent.vendorsById[t.id]),t.collectionMethods.includes("optout")&&e.push(H.a.value.byLegalBasis.li.vendorsById[t.id])}),!1===e.some(e=>void 0===e)}),Le=(0,N.EW)(()=>{var e;return!0===(null==(e=ve.U.value)?void 0:e.resetConsentBeforeRecollection)}),Te=o(3187),ke=e=>(e=>(0,Te.Hm)(e,ve.U.value.consentDuration))(e)||(e=>(0,Te.Hm)(e,ve.U.value.deniedConsentDuration)&&(0,Te.RT)(e))(e),De=void 0,Ue=o(1062),Ve={iab:{all:!0,version:2}},Re=(0,N.EW)(()=>{var e,t,s,n,r,i,o,a,u;return null!=(e=ve.U.value)&&null!=(t=e.vendors)&&null!=(s=t.iab)&&s.cmpId&&(0,l.Et)(null==(n=ve.U.value)||null==(r=n.vendors)||null==(i=r.iab)?void 0:i.cmpId)?null==(o=ve.U.value)||null==(a=o.vendors)||null==(u=a.iab)?void 0:u.cmpId:M.a.defaultCMPID}),Ne=void 0,Be=()=>new Promise(e=>{Promise.resolve().then(o.bind(o,8189)).then(s=>{var n,r,i,o,a,u,l,d,c=(0,t.A)({},ve.U.value&&ve.U.value,{vendors:(0,t.A)({},(r=null==(n=ve.U.value)?void 0:n.vendors,void 0===r?Ve:void 0===(null==r?void 0:r.iab)||void 0===r.iab.all&&void 0===r.iab.include&&void 0===r.iab.exclude?(0,t.A)({},r,Ve):r))});s.initIABTCF(Ue.A.value,c,{encoderOptions:{cmpId:Re.value,cmpVersion:M.a.defaultCMPVersion,disclosedVendorsSegment:2===(null==(i=ve.U.value)||null==(o=i.vendors)||null==(a=o.iab)?void 0:a.version)&&3===(null==(u=ve.U.value)||null==(l=u.vendors)||null==(d=l.iab)?void 0:d.minorVersion)}}),(e=>{Ne=e})(s),e()})}),xe=!1,Me=e=>{xe!==e&&(xe=e,De.updateIABTCFCmpApi(e))},Fe=()=>{var e;(0,R.on)("notice.shown",()=>{var e;null!=(e=Ie.l.value)&&e.enable&&Me(!0)}),(0,R.on)("preferences.shown",()=>Me(!0)),null!=(e=Ie.l.value)&&e.enable?(0,R.on)("notice.hidden",()=>Me(!1)):(0,R.on)("preferences.hidden",()=>{var e;null!=(e=Ie.l.value)&&e.enable||Me(!1)}),(0,R.on)("internal.consent.changed",()=>De.updateIABTCFCmpApi(!1))},ze=()=>{var e,t,n,r,i;if(void 0!==De&&void 0!==Ne){var o={cmpId:Re.value,cmpVersion:M.a.defaultCMPVersion,isConsentRequired:Q.y.value,isGDPRApplied:"gdpr"===(null==(e=J.r.value)?void 0:e.name),defaultConsentString:null,enableAdvertiserConsentMode:!0===(null==(t=s.bK.value.integrations)||null==(n=t.vendors)||null==(r=n.gcm)?void 0:r.enableTCFAdvertiserConsentMode),consentStringGetter:()=>S.M.value,additionalConsentStringGetter:()=>w.J.value,sdkEventListenersSetter:Fe};if(!pe.X.value||"gdpr"!==(null==(i=J.r.value)?void 0:i.name))return o.isConsentRequired=!1,o.consentStringGetter=()=>null,void De.initIABTCFCmpAPI(ve.U.value,o);if(!(Q.y.value?S.M.value:null)&&Q.y.value){var a,u={defaultLIToEnabled:!(null!=(a=ye.v.value)&&a.combineLIAndConsent),generate:{default:!0,positive:!1,negative:!1}},l=Ne.getDefaultStrings(u);o.defaultConsentString=l.default,(0,S.R)(l.default)}De.initIABTCFCmpAPI(ve.U.value,o)}};class je extends v.A{configure(e){if(e){var t={};"object"==typeof e.regulations&&(t.regulations=e.regulations,"object"==typeof e.regulations.gdpr&&e.regulations.gdpr.additionalCountries&&(Array.isArray(e.regulations.gdpr.additionalCountries)?t.regulations.gdpr.additionalCountries=e.regulations.gdpr.additionalCountries:t.regulations.gdpr.additionalCountries=[]));var s=(0,l.Jt)(e,"vendors.google");s&&s.additionalConsent&&(t.google={additionalConsent:{positive:"string"==typeof s.additionalConsent.positive?s.additionalConsent.positive:null,negative:"string"==typeof s.additionalConsent.negative?s.additionalConsent.negative:null}}),s&&void 0!==s.fullATP&&(0,l.hZ)(t,"google.fullATP",s.fullATP),e.customDomain&&(t.customDomain=e.customDomain),this.actions.setWebsiteConfig(t)}}numberOfDaysHasExceeded(){var e,{token:t}=this.services.StorageService.getTokenFromCookies();return t=t||{},(0,_e.jv)(new Date(t.updated||null))>=(null==(e=Ie.l.value)?void 0:e.daysBeforeShowingAgain)}shouldReconsentBeEnforced(){return Le.value&&(this.shouldUserStatusBeCollected()||ke(C.I.value))}_showNoticeAndPreferences(){var e,t;this.services.NoticeService.show(),"ccpa"!==(null==(e=J.r.value)?void 0:e.name)&&null!=(t=ye.v.value)&&t.showWhenConsentIsMissing&&this.services.PreferencesService.show()}resetAllUserChoicesToDefaults(){var{user_id:e}=C.I.value;this.services.StorageService.createNewToken(e),ze()}determineConsentNoticeStatus(){if(this.shouldReconsentBeEnforced())this.resetAllUserChoicesToDefaults(),this._showNoticeAndPreferences();else if(this.shouldNoticeBeShown())this._showNoticeAndPreferences();else{var e;this.services.NoticeService.hide(),null!=(e=ye.v.value)&&e.showWhenConsentIsMissing&&this.services.PreferencesService.hide()}}shouldNoticeBeShown(){var e;return"ccpa"===(null==(e=J.r.value)?void 0:e.name)?this.services.CCPAService.shouldShowNotice():this.shouldConsentBeCollected()}shouldConsentBeCollected(){return!!Q.y.value&&(!!W.value||!0!==Oe.value&&(this.numberOfDaysHasExceeded()||!H.a.value.hasMadeAnyChoice))}shouldUserStatusBeCollected(){var e;return"none"!==(null==(e=J.r.value)?void 0:e.name)&&(!!W.value||(!H.a.value.hasMadeAnyChoice||this.isUserStatusPartial()&&this.numberOfDaysHasExceeded()))}setUserAgreeToAll(e){var t=I.T.value,s=A.t.value.purposeIdsBasedOnConsent,n=A.t.value.purposeIdsBasedOnLI,r=b.R.value;if(0!==[...s,...n].length&&0!==r.length||0!==t.length){var i=new d.A(this.services.ConsentService.getUserStatus.bind(this.services.ConsentService),this.services.ConsentService.setUserStatus.bind(this.services.ConsentService),e);i.enablePurposes(...s),i.enableVendors(...r),i.enableVendorsLegitimateInterests(...Ee.H$.value.operatorIdsWithAtLeastOneOptoutPurpose),i.enablePurposesLegitimateInterests(...n),i.commit(),this.services.NoticeService.hide()}}setUserDisagreeToAll(e){var t=I.T.value,s=A.t.value.purposeIdsBasedOnConsent,n=A.t.value.purposeIdsBasedOnLI,r=b.R.value;if(0!==[...s,...n].length&&0!==r.length||0!==t.length){var i=new d.A(this.services.ConsentService.getUserStatus.bind(this.services.ConsentService),this.services.ConsentService.setUserStatus.bind(this.services.ConsentService),e);i.disablePurposes(...s),i.disableVendors(...r),i.disableVendorsLegitimateInterests(...Ee.H$.value.operatorIdsWithAtLeastOneOptoutPurpose),i.disablePurposesLegitimateInterests(...n),i.commit(),this.services.NoticeService.hide()}}isUserConsentStatusPartial(){var e;return!1!==Q.y.value&&(0!==(null==(e=Pe.h.value)?void 0:e.length)&&!Oe.value)}isUserStatusPartial(){var e;return"none"!==(null==(e=J.r.value)?void 0:e.name)&&(!(!Pe.h.value||0===Pe.h.value.length)&&!Oe.value)}}var Ge=o(5236),We=o(8516);class Je extends v.A{updateConsentToken(e){var t=this.createConsentByVendorFromToken(e);this.actions.setConsentByVendor(t),(0,C.v)(e)}isVendorEnabled(e){var{vendor:t,enabledPurposes:s,essentialPurposes:n,enabledVendors:r}=e;if(-1===r.indexOf(t.id))return!1;var i=Array.isArray(t.purposeIds)?t.purposeIds.filter(e=>-1===n.indexOf(e)):t.purposeIds;for(var o of i)if(-1===s.indexOf(o))return!1;return!0}createConsentByVendorFromToken(e){var t={},{purposes:s,vendors:n,vendors_li:r}=e,i=x("isVendorEnabled",this.isVendorEnabled),o=I.T.value,{enabledVendors:a,disabledVendors:u}=(e=>{var t=(0,f.$)([...Ge.M.value,...We.p.value]),s=e.disabled.filter(e=>-1===t.indexOf(e));return{enabledVendors:[...e.enabled,...t],disabledVendors:s}})({enabled:(0,f.$)([...n.enabled,...r.enabled]),disabled:(0,f.$)([...n.disabled,...r.disabled])});return[...a,...u].forEach(e=>{var n,r=null==(n=m.o.value)?void 0:n[e];t[e]={consentToAllPurposes:!r||i({vendor:r,enabledPurposes:s.enabled,disabledPurposes:s.disabled,essentialPurposes:o,enabledVendors:a,disabledVendors:u})}}),t}}var He={setConsent(e,s){var{purposeId:n,preferenceId:r,channelId:i,data:o={}}=s,{enabled:a,metadata:u={},preferenceValue:d}=o,c=(0,l.Go)(e),p=null,v=null;return n?((0,l.hZ)(c,"purposes."+n+".id",n),n&&r&&null!=d?(0,l.hZ)(c,"purposes."+n+".values."+r,{value:d}):r?((0,l.hZ)(c,"purposes."+n+".preferences."+r+".id",r),i?(p="purposes."+n+".preferences."+r+".channels."+i,v=i):(p="purposes."+n+".preferences."+r,v=r)):i?(p="purposes."+n+".channels."+i,v=i):(p="purposes."+n,v=n)):i&&(p="channels."+i,v=i),p&&(0,l.hZ)(c,p,(0,t.A)({id:v},(0,l.Jt)(e,""+p,{}),{metadata:(0,l.zw)((0,l.Jt)(e,p+".metadata",{}),u),enabled:a})),c}},Ke={normalizeConsents(e){void 0===e&&(e={});var s={};return e&&(e.purposes&&Array.isArray(e.purposes)&&(s.purposes={},e.purposes.forEach(e=>{s.purposes[e.id]=(0,t.A)({},e,{preferences:{},channels:{}}),e.channels&&Array.isArray(e.channels)&&e.channels.forEach(n=>{s.purposes[e.id].channels[n.id]=(0,t.A)({},n)}),e.preferences&&Array.isArray(e.preferences)&&e.preferences.forEach(n=>{s.purposes[e.id].preferences[n.id]=(0,t.A)({},n,{channels:{}}),n.channels&&Array.isArray(n.channels)&&n.channels.forEach(t=>{s.purposes[e.id].preferences[n.id].channels[t.id]=t})})})),e.channels&&Array.isArray(e.channels)&&(s.channels={},e.channels.forEach(e=>{s.channels[e.id]=e}))),s},denormalizeConsents(e){return{purposes:Object.keys(e.purposes||{}).map(s=>{var{preferences:n,channels:r}=e.purposes[s];return(0,t.A)({},e.purposes[s],{preferences:Object.keys(n||{}).map(e=>{var s=n[e];return(0,t.A)({},s,{channels:Object.keys(s.channels||{}).map(e=>(0,t.A)({},s.channels[e]))})}),channels:Object.keys(r||{}).map(e=>r[e])})}),channels:Object.keys(e.channels||{}).map(t=>e.channels[t])}}},qe=o(2140),Ze=o(8311),Ye=(0,N.vP)(null);(0,N.QZ)(()=>{Ye.value=(()=>{if(F.G.value.authToken)return F.G.value.authToken;try{var e=(0,_e.FY)("token");if(e)return e}catch(e){}return(0,Ze._S)("didomi_auth_token")||null})()});var Qe=e=>{Ye.value=e},$e=o(8517);class Xe extends v.A{getRemoteConsentsFromAPI(e){var{mergeUsers:t=!1}=void 0===e?{}:e,s=Ye.value&&(0,Te.K9)(Ye.value);return new Promise(e=>{if(Ye.value&&s){var r=(0,n.M)("apiPath")+"/consents/users";if(t)r=r+"/"+s.sub+"?$merge_users=true";ne.ajax({method:"GET",url:r,headers:{Authorization:"Bearer "+Ye,"Content-Type":"application/json"},cors:!0},(s,n)=>{var r=null;if(404===s&&t)this.actions.setUserAuthenticated(!0),(0,R.Ic)("remoteconsent.authenticated",!0);else if(200===s){var i;try{r=JSON.parse(n),t||(r=(0,l.Jt)(r,"data",[]))[0]&&(r=r[0])}catch(e){}if(r){var o=Ke.normalizeConsents((0,l.Jt)(r,"consents",null));r.consents=o}this.actions.loadRemoteConsents(r),this.actions.setUserAuthenticated(!0),(0,$e.C)(null==(i=r)?void 0:i.id),(0,R.Ic)("remoteconsent.authenticated",!0)}else this.actions.setUserAuthenticated(!1),(0,R.Ic)("remoteconsent.authenticated",!1),(0,R.KU)(s,"getRemoteConsentUser");(0,R.Ic)("remoteconsent.loaded"),e(r)})}else this.actions.setUserAuthenticated(!1),(0,R.Ic)("remoteconsent.loaded"),(0,R.Ic)("remoteconsent.authenticated",!1),e(null)})}getRemoteConsentEventsFromAPI(e){var{cursor:s,query:r}=e;return new Promise(e=>{if(Ye.value){var i=(0,t.A)({},r||{});s&&(i.$cursor=s);var o=Object.keys(i).map(e=>e+"="+encodeURIComponent(i[e])).join("&");ne.ajax({method:"GET",url:(0,n.M)("apiPath")+"/consents/events"+(o?"?"+o:""),headers:{Authorization:"Bearer "+Ye.value,"Content-Type":"application/json"},cors:!0},(t,s)=>{var n={};if(200===t){try{n=JSON.parse(s)}catch(e){}e(n)}else(0,R.KU)(t,"getRemoteConsentEvents");e(n)})}else e({data:[]})})}setConsent(e,t){var{purposeId:s,preferenceId:n,channelId:r,data:i}=t;return He.setConsent(e,{purposeId:s,preferenceId:n,channelId:r,data:i})}getRemoteConsentStatusForAll(){return(0,l.Go)((0,l.Jt)(this.store.getState(),"remoteConsents"))}getRemoteConsentEventsForAll(e){return void 0===e&&(e={}),this.getRemoteConsentEventsFromAPI(e).then(e=>{var s=e.data.map(e=>(0,t.A)({},e,{consents:Ke.normalizeConsents(e.consents)}));return(0,t.A)({},e,{data:s})})}setRemoteConsentStatusForAll(e){return void 0===e&&(e={}),new Promise((t,s)=>Ye.value?e.consents&&"object"==typeof e.consents?void ne.ajax({method:"POST",url:(0,n.M)("apiPath")+"/consents/events",body:JSON.stringify(e),headers:{Authorization:"Bearer "+Ye.value,"Content-Type":"application/json"},cors:!0},(e,n)=>{if(201===e){var r={};try{r=JSON.parse(n)}catch(e){}this.actions.setRemoteConsents(Ke.normalizeConsents(r.consents)),this.refreshRemoteConsentsFromAPI().then(()=>{t()})}else(0,R.KU)(e,"createRemoteConsentEvent"),s(new Error("Invalid HTTP response code"))}):(console.error("Didomi - Unable to set the remote consent because the consents is empty"),s(new Error("Unable to set the remote consent because the consents is empty"))):(console.error("Didomi - Unable to set the remote consent because the token is empty"),s(new Error("Unable to set the remote consent because the token is empty"))))}refreshRemoteConsentsFromAPI(e){return this.getRemoteConsentsFromAPI(e).then(()=>{(0,R.Ic)("remoteconsent.changed")})}saveConsentForEntityById(e,t,s,n,r,i,o,a,u,d){var c=(0,l.Up)(n,["enabled","metadata","preferenceValue"]),p=this.setConsent({},{purposeId:e,preferenceId:t,channelId:s,data:c}),v={consents:Ke.denormalizeConsents(p),metadata:r,proofs:i,source:o,validation:a};return u&&u.metadata&&(v.user={metadata:u.metadata}),d&&(v.analytics=d),this.setRemoteConsentStatusForAll(v)}setPendingConsentForEntityById(e,t,s,n){var r=(0,l.Up)(n,["enabled","metadata","preferenceValue"]);this.actions.setPendingConsent({purposeId:e,preferenceId:t,channelId:s,data:r}),(0,R.Ic)("consent.pendingchanged",{pendingConsents:this.getPendingConsents()})}getPendingConsents(){var{pendingConsents:e}=this.store.getState();return Object.keys(e).map(t=>e[t])}savePendingConsents(e){void 0===e&&(e={});var s={};this.getPendingConsents().forEach(e=>{var{purposeId:t,preferenceId:n,channelId:r,data:i}=e;s=this.setConsent(s,{purposeId:t,preferenceId:n,channelId:r,data:i})});var n=Ke.denormalizeConsents(s);return this.setRemoteConsentStatusForAll((0,t.A)({consents:n},e)).then(()=>this.resetPendingConsents())}resetPendingConsents(){this.actions.resetPendingConsents(),(0,R.Ic)("consent.pendingchanged",{pendingConsents:this.getPendingConsents()})}isUserAuthenticated(){return(0,l.Jt)(this.store.getState(),"isUserAuthenticated")}getCallbackURL(){return(0,l.Jt)(this.store.getState(),"callbackURL")||null}getAuthProtocol(){return(0,l.Jt)(this.store.getState(),"authProtocol")}requestAuthenticationURL(e){var{authProviderId:t}=void 0===e?{}:e,{location:{protocol:s,hostname:r,pathname:i}}=document,o=s+"//"+r+i,a=(0,n.M)("apiPath"),u=new URL(a);return u.pathname="/auth/initiate",u.searchParams.append("key",ae.K.value),u.searchParams.append("privacy_center_url",o),u.searchParams.append("redirect",!1),t&&u.searchParams.append("auth_provider_id",t),new Promise(e=>{ne.ajax({url:u.toString()},(t,s)=>{if(200===t)try{var n=JSON.parse(s),r=n.callback,i=n.protocol;this.actions.setCallbackURL(r),this.actions.setAuthProtocol(i),e(r)}catch(t){console.error("Didomi - "+t.message),e(!1)}else(0,R.KU)(t,"requestAuthentication");e(!1)})})}sendLogin(e){var{value:t,channel:s,params:n}=e;return new Promise((e,r)=>{var i=this.getCallbackURL();if(!i){var o="You need to request a callback URL through Didomi.requestAuthenticationURL({ authProviderId })";return console.error("Didomi - "+o),r({error:o})}var a=n?"&"+encodeURI(Object.keys(n).map(e=>"message_params["+e+"]="+n[e]).join("&")):"";ne.ajax({method:"GET",url:i+"&channel="+s+"&id="+encodeURIComponent(t)+a,cors:!0},(t,s)=>200!==t?(console.error("Didomi - An error occurred while trying to send the message"),(0,R.KU)(t,"sendMessage"),r({error:s,code:t})):e())})}verifyOtpCode(e){var{organizationUserId:t,code:s,authProviderId:r}=void 0===e?{}:e,i=(0,n.M)("apiPath")+"/auth/protocols/otp/verify",o=new URL(i);return o.searchParams.append("key",ae.K.value),r&&o.searchParams.append("auth_provider_id",r),new Promise((e,n)=>{ne.ajax({method:"POST",url:o,body:JSON.stringify({code:s,organization_user_id:t}),headers:{"Content-Type":"application/json"},cors:!0},(t,s)=>{if(201!==t)return console.error("Didomi - An error occurred while trying to send the message"),(0,R.KU)(t,"verifyOtpCode"),n({error:s,code:t});var{token:r}=JSON.parse(s);return(0,qe.NT)("didomi_auth_token",r),Qe(r),e({token:r})})})}}var et=o(7127),tt=o(4640),st=(0,N.vP)(null),nt=e=>{st.value=e},rt=e=>!0===e.sync.enabled,it=e=>e.sync.timeout,ot=(0,g.Mz)(e=>e.sync.frequency,()=>{var e;return(0,G.u)(null==(e=C.I.value)?void 0:e.sync)},(e,t)=>!t||!e||!!(Math.floor((new Date-new Date(t))/1e3)>=e)),at=(0,g.Mz)(rt,()=>{var e;return null==(e=F.G.value)?void 0:e.organizationUserId},()=>tt.w.value,ot,()=>{var e,t,s;return!(null==(e=st.value)||!e.organizationUserId)&&(null==(t=st.value)?void 0:t.organizationUserId)!==(null==(s=F.G.value)?void 0:s.organizationUserId)},(e,t,s,n,r)=>!0===e&&"string"==typeof t&&t.length>0&&!1===s&&(n||r)),ut=e=>e.signature.value,lt=o(7531),dt=o(2920),ct=(0,N.EW)(()=>{var e=dt.$.value||[],t=new Set;for(var s of e)s.legIntPurposeIds.forEach(e=>t.add(e));return[...t]}),pt=(0,N.EW)(()=>{var e;return(null==(e=ce.q.value)?void 0:e.semVersion)===M.a.tcfVersion2_2?{1:h.VF.consentOnly,2:h.VF.consentAndLegitimateInterest,3:h.VF.consentOnly,4:h.VF.consentOnly,5:h.VF.consentOnly,6:h.VF.consentOnly,7:h.VF.consentAndLegitimateInterest,8:h.VF.consentAndLegitimateInterest,9:h.VF.consentAndLegitimateInterest,10:h.VF.consentAndLegitimateInterest,11:h.VF.consentAndLegitimateInterest}:{1:h.VF.consentOnly,2:h.VF.consentAndLegitimateInterest,3:h.VF.consentAndLegitimateInterest,4:h.VF.consentAndLegitimateInterest,5:h.VF.consentAndLegitimateInterest,6:h.VF.consentAndLegitimateInterest,7:h.VF.consentAndLegitimateInterest,8:h.VF.consentAndLegitimateInterest,9:h.VF.consentAndLegitimateInterest,10:h.VF.consentAndLegitimateInterest}}),vt=(0,N.EW)(()=>{var e=pt.value;return"object"==typeof e&&e?Object.keys(e).reduce((t,s)=>(e[s]===h.VF.consentOnly&&t.push(parseInt(s,10)),t),[]):[]}),ht=(0,N.EW)(()=>{var e=vt.value,t=ct.value;return e.map(e=>h.RQ[e]).filter(e=>t.includes(e))}),gt=(0,N.EW)(()=>{var{organizationUserId:e=null,organizationUserIdAuthAlgorithm:t=null,organizationUserIdAuthSid:s=null,organizationUserIdAuthSalt:n=null,organizationUserIdAuthDigest:r=null,organizationUserIdExp:i=null,organizationUserIdIv:o=null}=F.G.value||{};return{organizationUserId:e,organizationUserIdAuthAlgorithm:t,organizationUserIdAuthSid:s,organizationUserIdAuthSalt:n,organizationUserIdAuthDigest:r,organizationUserIdExp:i,organizationUserIdIv:o}}),ft=o(5787),mt=(0,N.EW)(()=>{var e;return ft.T.value?null==(e=ft.T.value)?void 0:e.map(e=>e.id):[]}),bt=o(7483),It=o(1990),yt=o(4163),St=o(2026),Ct=o(3412),wt=o(379),At=o(8691),_t=(0,N.EW)(()=>{var e,t=Object.values(Ct.m.value||{});if(null==t||!t.length||null==(e=de.O.value)||!e.isDidomiConsentStringEncodingEnabled)return{purposeToNumericIdMap:{},numberIdToPurposeMap:{}};var s={},n={};for(var r of t){var i,o;(0,wt.LL)(null==r||null==(i=r.namespaces)?void 0:i.num)&&!n[null==r||null==(o=r.namespaces)?void 0:o.num]&&(s[r.id]=r.namespaces.num,n[r.namespaces.num]=r.id)}return{purposeToNumericIdMap:s,numberIdToPurposeMap:n}});(0,N.QZ)(()=>{var e,t;if(null!=(e=At.x.value)&&e.length&&null!=(t=de.O.value)&&t.isDidomiConsentStringEncodingEnabled){var s=[];for(var n of At.x.value){var r,i;if((0,wt.LL)(null==n||null==(r=n.namespaces)?void 0:r.num))if(s.includes(null==n||null==(i=n.namespaces)?void 0:i.num))console.error('Didomi - The purpose id "'+(null==n?void 0:n.id)+'" has a numeric id that was already registered. Ignoring it.');else{var o;s.push(null==n||null==(o=n.namespaces)?void 0:o.num)}else console.error('Didomi - The purpose id "'+(null==n?void 0:n.id)+'" has an invalid numeric id. Ignoring it.')}}});var Pt=e=>null==e?void 0:e.map(e=>{var t;return null==(t=_t.value)?void 0:t.purposeToNumericIdMap[e]}).filter(e=>e),Et=(e,t)=>{var s={enabled:[],disabled:[]};if(!e)return s;var{enabled:n,disabled:r}=e;return n&&(s.enabled=t(n)),r&&(s.disabled=t(r)),s},Ot=(0,N.EW)(()=>{var e=Object.values(m.o.value||{});if(null==e||!e.length||!de.O.value.isDidomiConsentStringEncodingEnabled)return{vendorToNumericIdMap:{},numberIdToVendorMap:{}};var t={},s={};for(var n of e){var r;(0,wt.LL)(null==n||null==(r=n.namespaces)?void 0:r.num)&&(t[n.id]=n.namespaces.num,s[n.namespaces.num]=n.id)}return{vendorToNumericIdMap:t,numberIdToVendorMap:s}});(0,N.QZ)(()=>{var e,t;if(null!=(e=dt.$.value)&&e.length&&null!=(t=de.O.value)&&t.isDidomiConsentStringEncodingEnabled)for(var s of dt.$.value){var n,r,i=s.purposeIds||[],o=s.legIntPurposeIds||[],a=!i.some(e=>{var t,s;return!(0,wt.LL)(null==(t=Ct.m.value[e])||null==(s=t.namespaces)?void 0:s.num)}),u=!o.some(e=>{var t,s;return!(0,wt.LL)(null==(t=Ct.m.value[e])||null==(s=t.namespaces)?void 0:s.num)});if(!a||!u)console.error('Didomi - The vendor with ID "'+((null==(r=s.id)?void 0:r.split("c:")[1])||s.id)+'" has purposes with invalid numeric IDs and they will not be encoded in the Didomi Consent String.');var l,d=null==(n=s.namespaces)?void 0:n.num;if(!(0,wt.LL)(d))console.error('Didomi - The vendor with ID "'+((null==(l=s.id)?void 0:l.split("c:")[1])||s.id)+'" has an invalid numeric ID and it will not be encoded in the Didomi Consent String.')}});var Lt=e=>null==e?void 0:e.map(e=>{var t;return null==(t=Ot.value)?void 0:t.vendorToNumericIdMap[e]}).filter(e=>e),Tt=e=>{var t,s,n;if(yt.g&&e&&null!=(t=de.O.value)&&t.isDidomiConsentStringEncodingEnabled){var r=null==(s=de.O.value)?void 0:s.version,i=null==(n=de.O.value)?void 0:n.schemaOverrides,o=void 0;i&&(o={schemaOverrides:i});var a,u=Et(e.purposes,Pt),l=Et(e.purposes_li,Pt),d=Et(e.vendors,Lt),c=Et(e.vendors_li,Lt),p=new Date(e.created),v=new Date(e.updated),h=e.sync?new Date(e.sync):void 0,g={userId:e.user_id,created:p,updated:v,vendors:{optin:d,optout:c},purposes:{optin:u,optout:l},sync:h};if(2===r)g.regulationId=null!=(a=e.regulation_id)?a:0;return yt.g.encode(r,g,o)}},kt=e=>null==e?void 0:e.map(e=>{var t;return null==(t=_t.value)?void 0:t.numberIdToPurposeMap[e]}).filter(e=>e),Dt=e=>null==e?void 0:e.map(e=>{var t;return null==(t=Ot.value)?void 0:t.numberIdToVendorMap[e]}).filter(e=>e),Ut=o(6781),Vt=o(1888),Rt=(e,s)=>{var n;if(yt.g&&e&&null!=(n=de.O.value)&&n.isDidomiConsentStringEncodingEnabled){var r=void 0;s&&(r={logs:s}),e=(0,et.Sd)(e);var i=yt.g.decode(e,r),o=Et(i.purposes_optin,kt),a=Et(i.purposes_optout,kt),u=Et(i.vendors_optin,Dt),l=Et(i.vendors_optout,Dt),d=void 0;return Vt.E.value&&Vt.E.value.length>0&&(d=Ut.w6({vendors:u,vendors_li:l},Vt.E.value)),(0,t.A)({user_id:i.user_id,created:i.created,updated:i.updated,sync:i.sync,regulation_id:i.regulation_id,vendors:u,purposes:o,vendors_li:l,purposes_li:a},d?{ac:d}:{})}},Nt=o(3330),Bt=o(6104),xt=o(4609),Mt=o(418),Ft=(0,N.vP)(null),zt=(0,N.EW)(()=>"false"!==Ft.value),jt=(0,N.vP)(null),Gt=(0,N.vP)(!1),Wt=(0,N.vP)(0),Jt=(0,N.vP)(0),Ht=(0,N.vP)(0),Kt=(0,N.vP)(!1),qt=(0,N.EW)(()=>{var e;return(null==(e=xt.G.value)?void 0:e.thirdParty.enabled)&&!1!==zt.value&&!0!==Gt.value}),Zt=(0,N.EW)(()=>{var e=qt.value?1:0;return Wt.value===e+Jt.value+Ht.value}),Yt=o(2985),Qt=o(6691);class $t{constructor(e){this.callbacks={},this.timeoutCalled=!1;var t=document.createElement("iframe");t.setAttribute("src",e),t.setAttribute("id","iframe-cookies-group"),t.setAttribute("style","display:none"),document.body.appendChild(t),this.iframe=t}isNotResponding(){return this.timeoutCalled}getType(){return"group"}getTokens(e,t,s,n,r,i,o,a,u){this.iframe.onload=()=>{this.postMessageToIframe("getTokens",{name:e,type:t,storageSources:s,isSameSiteRequired:n,TCFVersion:r,expiry:i,secure:o},a,u)}}setToken(e,t,s,n,r,i){this.postMessageToIframe("setToken",{name:e,value:t,storageSources:s,isSameSiteRequired:n,expiry:r,secure:i})}deleteToken(e){this.postMessageToIframe("deleteToken",{name:e})}postMessageToIframe(e,t,s,n){if(void 0===n&&(n=4e3),this.iframe&&!this.isNotResponding()){var r=(0,Qt.A)(),i=this.getType();this.iframe.contentWindow.postMessage({__didomiCall:{call:e,callId:r,type:i,params:t}},"*"),s&&(this.callbacks[r]=s,setTimeout(()=>{this.callbacks[r]&&(this.callbacks[r](new Error("Timeout")),delete this.callbacks[r],this.timeoutCalled=!0)},n))}}receiveMessageFromIframe(e){if(e&&e.data){var t;try{t="string"==typeof e.data?JSON.parse(e.data):e.data}catch(e){return}if(t.__didomiCall){var s=t.__didomiCall;this.callbacks[s.callId]&&this.getType()===s.type&&(this.callbacks[s.callId](null,s.params),delete this.callbacks[s.callId])}}}}var Xt=function(e,t,s){void 0===t&&(t={}),Wt.value+=1,e&&"Timeout"===e.message?(Jt.value+=1,Gt.value=!0,!Kt.value&&Zt.value&&(Kt.value=!0,s())):(t.didomi_accept_cookie?(0,It.S4)({didomiToken:t.didomi_token,iabConsentString:t.iab_consent_string}):(Ht.value+=1,(()=>{var e,t,s,n;(0,qe.NT)("didomi_third_party_cookie",!1,null==(e=xt.G.value)?void 0:e.thirdParty.customDomain,null==(t=xt.G.value)?void 0:t.sources,!1,!1,Mt.t.value.durationInDays,null==(s=xt.G.value)?void 0:s.secure);var r=(0,qe.Rf)("didomi_third_party_cookie",null==(n=xt.G.value)?void 0:n.sources);Ft.value=void 0===r?"false":r})()),!Kt.value&&Zt.value&&(Kt.value=!0,s()))},es=e=>{var t,s,r,i;qt.value?(window.addEventListener?window.addEventListener("message",e=>{var t;return null==(t=jt.value)?void 0:t.receiveMessageFromIframe(e)},!1):window.attachEvent("onmessage",e=>{var t;return null==(t=jt.value)?void 0:t.receiveMessageFromIframe(e)}),jt.value=(()=>{var e,t=(0,n.M)("globalCookiesProtocol"),s=null==(e=xt.G.value)?void 0:e.thirdParty.customDomain,r=t+"://"+(0,_e.b5)(s)+"/global-cookies/"+(0,_e.HF)()+"/global-cookies."+(0,_e.HF)()+".html";return new $t(r)})(),null==(t=jt.value)||t.getTokens(Yt.x.value,"group",null==(s=xt.G.value)?void 0:s.sources,null==(r=xt.G.value)?void 0:r.sameSiteRequired,ce.q.value.majorVersion,Mt.t.value.durationInDays,null==(i=xt.G.value)?void 0:i.secure,(t,s)=>Xt(t,s,e))):e()},ts=(e,t)=>{var s,n,r,i,o,a,u,l;e&&(null==(s=jt.value)||s.setToken(Yt.x.value,e,null==(n=xt.G.value)?void 0:n.sources,null==(r=xt.G.value)?void 0:r.sameSiteRequired,Mt.t.value.durationInDays,null==(i=xt.G.value)?void 0:i.secure));t&&(null==(o=jt.value)||o.setToken(Bt.O.value,t,null==(a=xt.G.value)?void 0:a.sources,null==(u=xt.G.value)?void 0:u.sameSiteRequired,Mt.t.value.durationInDays,null==(l=xt.G.value)?void 0:l.secure))},ss=o(13),ns=e=>{var{token:t,regulationId:s,apply:n}=e;return!n||(!t||0===t.regulation_id&&void 0===s||t.regulation_id===s)},rs=o(9049),is=o(4220),os=e=>{var t={};return null==e||e.map(e=>{t[e.id]={id:e.id,purposes:e.purposeIds,flexiblePurposes:e.flexiblePurposeIds,specialPurposes:e.specialPurposeIds,legIntPurposes:e.legIntPurposeIds,features:e.featureIds,specialFeatures:e.specialFeatureIds,name:"",urls:[],dataRetention:{},dataDeclaration:[]}}),t},as=e=>{var s={};return null==e||e.map(e=>{s[e.id]=(0,t.A)({},e,{name:"",description:"",illustrations:[]})}),s},us=(0,N.EW)(()=>{if(!Ue.A.value)return null;var e,t,s={vendorListVersion:Ue.A.value.vendorListVersion,lastUpdated:Ue.A.value.lastUpdated,gvlSpecificationVersion:Ue.A.value.gvlSpecificationVersion,tcfPolicyVersion:Ue.A.value.tcfPolicyVersion,purposes:as(Ue.A.value.purposes),specialPurposes:as(Ue.A.value.specialPurposes),features:as(Ue.A.value.features),specialFeatures:as(Ue.A.value.specialFeatures),stacks:(e=Ue.A.value.stacks,t={},null==e||e.map(e=>{t[e.id]={id:e.id,name:"",description:"",purposes:e.purposeIds,specialFeatures:e.specialFeatureIds}}),t),vendors:os(Ue.A.value.vendors)};return new is.aI(s)}),ls=(0,N.vP)(null),ds=()=>{ls.value=null};class cs extends v.A{initStorages(e){es(()=>{var t;null!=(t=de.O.value)&&t.isDidomiConsentStringEncodingEnabled&&!yt.g?(0,R.on)("ced.loaded",()=>{e()}):e()})}getNewToken(){var e=(0,Nt.x)(),t=(0,_e.bs)();return e.created=t,e.updated=t,e}createNewToken(e){void 0===e&&(e=null);var t=this.getNewToken();return e&&(0,l.hZ)(t,"user_id",e),this.resetIABToken(),this.setTokenToStorages(t),t}initStoreFromStorage(){var e,t,s,n=this.getTokenFromCookies(),r=n.token,i=n.iabConsentString,o=n.didomiTokenCreatedFromIABToken,a=n.userAuthParams,u=n.signature,l=n.dcsUserId;return ke(r)||!ns({token:r,regulationId:null==(e=J.r.value)?void 0:e.id,apply:(null==(t=de.O.value)?void 0:t.isDidomiConsentStringEncodingEnabled)&&2===(null==(s=de.O.value)?void 0:s.version)&&!ss.I.value})?(r=this.reset(r.user_id),o=!1):r&&o?this.setTokenToStorages(r,!0,a,{signature:u,dcsUserId:l}):r?(a&&nt(a),this.services.SignatureService.setSignature({signature:u,dcsUserId:l}),this.services.LocalStoreService.updateConsentToken(r),(0,S.R)(i)):r=this.createNewToken(),ss.I.value&&(this.setTokenToStorages(r,!1),this.services.SignatureService.sign()),this.syncLocalAndThirdPartyStorage(),{token:r,didomiTokenCreatedFromIABToken:o}}setTokenToStorages(e,t,s,n){void 0===t&&(t=!0),void 0===s&&(s=null),void 0===n&&(n=null),t&&(e=this.updateToken(e));var r=this.createConsentCookiesFromToken(e);return this.setCookies(r),s&&nt(s),n&&this.services.SignatureService.setSignature(n),this.services.LocalStoreService.updateConsentToken(e),(0,S.R)(r.iabConsentString),e}flushTokenToStorage(){var e=(0,l.Go)(C.I.value);this.setTokenToStorages(e,!1)}updateToken(e){var t=(0,l.Go)(e),s=(0,_e.bs)();return t.updated=s,(0,G.v)(t.created)&&(t.created=s),t}getEncode(){var e;if(null!=(e=de.O.value)&&e.isDidomiConsentStringEncodingEnabled)return Tt}getDecode(){var e;if(null!=(e=de.O.value)&&e.isDidomiConsentStringEncodingEnabled)return Rt}createConsentCookiesFromToken(e){var s,n,i,o,a,u=(0,l.Go)(e),d=null,c=(0,l.Jt)(u,"vendors.enabled")||[],p=(0,l.Jt)(u,"vendors.disabled")||[],v=(0,l.Jt)(u,"vendors_li.enabled")||[],g=(0,l.Jt)(u,"vendors_li.disabled")||[];if(c.length||p.length||v.length||g.length){var f;d=ls.value?ls.value:Ne.encodeToken(u,{consentLanguage:r.H.value});var m=Ut.w6((0,l.Go)(u),Vt.E.value);null!=(f=de.O.value)&&f.isDidomiConsentStringEncodingEnabled||(u=(e=>{var s,n=null==(s=rs.l.value)?void 0:s.map(e=>{var{id:t}=e;return t}),r=e=>-1===n.indexOf(e);return(0,t.A)({},e,{vendors:{enabled:e.vendors.enabled.filter(r),disabled:e.vendors.disabled.filter(r)},vendors_li:{enabled:e.vendors_li.enabled.filter(r),disabled:e.vendors_li.disabled.filter(r)}})})(u)),m&&(u.ac=m)}var b=null==(s=mt.value)?void 0:s.filter(e=>!ht.value.includes(e));return null!=(n=de.O.value)&&n.isDidomiConsentStringEncodingEnabled&&(b=[...b,...Object.values(h.H2)]),(0,Te.h2)({token:u,regulationId:null==(i=J.r.value)?void 0:i.id,apply:(null==(o=de.O.value)?void 0:o.isDidomiConsentStringEncodingEnabled)&&2===(null==(a=de.O.value)?void 0:a.version)}),{iabConsentString:d,didomiTokenAsBase64:(0,Te.RE)(u,b,this.getEncode())}}setCookies(e){var t,s,n,{iabConsentString:r,didomiTokenAsBase64:i}=e,o=this.store.getState();if(null!=(t=de.O.value)&&t.isDidomiConsentStringEncodingEnabled){var a,u,l=(e=>e.signature.dcsUserId)(o)||"",d=ut(o)?"~"+ut(o):"",c="",p=null!=(a=C.I.value)&&a.sync?new Date(null==(u=C.I.value)?void 0:u.sync).getTime():"";rt(o)&&(s=gt.value,n=(0,qe.yN)(s),c=St.o4.btoa(JSON.stringify(n))),i=i+"."+l+"."+c+"."+p+d}return x("setCookies",()=>{qt.value?(ts(i,r),(0,bt.M9)({didomiToken:null,iabConsentString:r})):(0,bt.M9)({didomiToken:i,iabConsentString:r})})()}getCookies(){return x("getCookies",()=>null!==It.r5.value.didomiToken||null!==It.r5.value.iabConsentString?It.r5.value:bt.lB.value)(this.getNewToken())}getTokenFromCookies(){var e,s,n=this.getCookies(),r=null;n.iabConsentString&&((r=Ne.decodeTCString(n.iabConsentString,{checkCMPId:!1===qt.value,defaultCMPId:M.a.defaultCMPID,returnTCModel:!0}))||console.error("Didomi - Failed to decode TCF consent string from cookies: "+n.iabConsentString));var i=(0,et.Sd)(n.didomiToken)?(0,Te.qQ)((0,et.Sd)(n.didomiToken),this.getDecode()):null,o=null,a=(0,et.kz)(n.didomiToken),u=(0,et.yE)(n.didomiToken),d=(0,et.dD)(n.didomiToken),c=(0,et.H3)(n.didomiToken);null!=(e=de.O.value)&&e.isDidomiConsentStringEncodingEnabled&&a&&(o=(e=>{try{var t=JSON.parse(St.o4.atob(e));return(0,qe.J_)(t)}catch(e){return console.error("Didomi - Error while parsing user auth parameters cookie"),{}}})(a));var p=(0,l.Jt)(i,"ac"),v=null;null!=(s=de.O.value)&&s.isDidomiConsentStringEncodingEnabled||(v=p?(e=>e?Ut.At(e,rs.l.value):null)(p):null);var h={didomiToken:i,iabToken:r,addtlConsent:v},g=this.mergeTokens(h.didomiToken,h.iabToken,h.addtlConsent),f=g?(0,t.A)({},g,{sync:u||g.sync}):null;return{didomiTokenCreatedFromIABToken:g&&h.iabToken&&!h.didomiToken,token:f,iabConsentString:r?n.iabConsentString:null,userAuthParams:o,signature:d,dcsUserId:c}}mergeTokens(e,t,s){if(!e&&!t&&!s)return null;var n,r,i,o,a,u,d,c=(0,l.Go)(e)||(0,Nt.x)();if(t){var p,v,g=(d=Object.keys(null==(u=us.value)?void 0:u.vendors).map(e=>parseInt(e)),Math.max(...d)),f=null==(p=mt.value)?void 0:p.filter(e=>!ht.value.includes(e)),m=null==(a=null==(n=lt.E.value)||null==(r=n.filter(e=>"iab"!==e.namespace))?void 0:r.filter(e=>(0,h.br)(e)).map(e=>(0,h.in)(e)),v=null==(i=Ue.A.value)||null==(o=i.vendors)?void 0:o.filter(e=>!a.includes(e.id)))?void 0:v.filter(e=>e.id<=g).map(e=>e.id),b=(0,l.Jt)(c,"vendors.enabled",[]).filter(e=>-1===m.indexOf(e)),I=(0,l.Jt)(c,"vendors.disabled",[]).filter(e=>-1===m.indexOf(e)),y=(0,l.Jt)(c,"vendors_li.enabled",[]).filter(e=>-1===m.indexOf(e)),S=(0,l.Jt)(c,"vendors_li.disabled",[]).filter(e=>-1===m.indexOf(e)),C=(0,l.Jt)(c,"purposes.enabled",[]).filter(e=>!mt.value.includes(e)),w=(0,l.Jt)(c,"purposes.disabled",[]).filter(e=>!mt.value.includes(e)),A=(0,l.Jt)(c,"purposes_li.enabled",[]).filter(e=>!f.includes(e)),_=(0,l.Jt)(c,"purposes_li.disabled",[]).filter(e=>!f.includes(e)),{enabledIABvendors:P,disabledIABvendors:E,enabledIABpurposes:O,disabledIABpurposes:L,enabledLIIABvendors:T,disabledLIIABvendors:k,enabledLIIABpurposes:D,disabledLIIABpurposes:U}=(e=>{var t,s=Ne.tcModelToToken(e,null==(t=de.O.value)?void 0:t.isDidomiConsentStringEncodingEnabled);return{enabledIABvendors:s.vendors.enabled,disabledIABvendors:s.vendors.disabled,enabledIABpurposes:s.purposes.enabled,disabledIABpurposes:s.purposes.disabled,enabledLIIABvendors:s.vendors_li.enabled,disabledLIIABvendors:s.vendors_li.disabled,enabledLIIABpurposes:s.purposes_li.enabled,disabledLIIABpurposes:s.purposes_li.disabled}})(t),V=(0,l.Jt)(s,"vendors.enabled",[]),R=(0,l.Jt)(s,"vendors.disabled",[]),N=(0,l.Jt)(s,"vendors_li.enabled",[]),B=(0,l.Jt)(s,"vendors_li.disabled",[]);(0,l.hZ)(c,"vendors.enabled",[...b,...P,...V]),(0,l.hZ)(c,"vendors.disabled",[...I,...E,...R]),(0,l.hZ)(c,"vendors_li.enabled",[...y,...T,...N]),(0,l.hZ)(c,"vendors_li.disabled",[...S,...k,...B]),(0,l.hZ)(c,"purposes.enabled",[...C,...O]),(0,l.hZ)(c,"purposes.disabled",[...w,...L]),(0,l.hZ)(c,"purposes_li.enabled",[...A,...D.filter(e=>!ht.value.includes(e))]),(0,l.hZ)(c,"purposes_li.disabled",[..._,...U.filter(e=>!ht.value.includes(e))])}return c}syncLocalAndThirdPartyStorage(){if(qt.value){var e=bt.lB.value.iabConsentString;if(e){var t=It.r5.value.iabConsentString;t&&e!==t&&(0,bt.M9)({didomiToken:null,iabConsentString:t})}}}reset(e){return this.createNewToken(e)}resetIABToken(){x("resetCookies",()=>{var e;(0,bt.dZ)(),qt.value&&(null==(e=jt.value)||e.deleteToken(Bt.O.value))})()}getIdFromConsentToken(){var e;return(null==(e=C.I.value)?void 0:e.user_id)||null}}class ps extends cs{initStoreFromStorage(){var e,t,s,n=this.getTokenFromCookies().token;return ke(n)||!ns({token:n,regulationId:null==(e=J.r.value)?void 0:e.id,apply:(null==(t=de.O.value)?void 0:t.isDidomiConsentStringEncodingEnabled)&&2===(null==(s=de.O.value)?void 0:s.version)&&!ss.I.value})?n=this.reset(n.user_id):n?(0,C.v)(n):n=this.createNewToken(),ss.I.value&&(this.setTokenToStorages(n,!1),this.services.SignatureService.sign()),{token:n}}getTokenFromCookies(){var e=this.getCookies();return{token:e.didomiToken?(0,Te.qQ)(e.didomiToken,this.getDecode()):null}}createNewToken(e){void 0===e&&(e=null);var t=this.getNewToken();return e&&(0,l.hZ)(t,"user_id",e),this.setTokenToStorages(t),t}setTokenToStorages(e,t){var s,n,r;void 0===t&&(t=!0),t&&(e=this.updateToken(e));var i=(0,l.Go)(e);(0,Te.td)(i,"purposes"),(0,Te.td)(i,"purposes_li"),(0,Te.td)(i,"vendors"),(0,Te.td)(i,"vendors_li");var o=this.getEncode();return(0,Te.h2)({token:i,regulationId:null==(s=J.r.value)?void 0:s.id,apply:(null==(n=de.O.value)?void 0:n.isDidomiConsentStringEncodingEnabled)&&2===(null==(r=de.O.value)?void 0:r.version)}),this.setCookies({didomiTokenAsBase64:o?o(i):St.o4.btoa(JSON.stringify(i))}),(0,C.v)(e),e}getEncode(){var e;if(null!=(e=de.O.value)&&e.isDidomiConsentStringEncodingEnabled)return Tt}getDecode(){var e;if(null!=(e=de.O.value)&&e.isDidomiConsentStringEncodingEnabled)return Rt}setCookies(e){var{didomiTokenAsBase64:t}=e;return x("setCookies",()=>{qt.value?ts(t):(0,bt.M9)({didomiToken:t,iabConsentString:null})})()}}var vs=()=>H.a.value.byLegalBasis.consent.vendors.enabled,hs=()=>H.a.value.byLegalBasis.li.vendors.enabled,gs=()=>H.a.value.byLegalBasis.li.purposes.enabled,fs=()=>H.a.value.byLegalBasis.consent.purposes.enabled,ms=(0,g.Mz)([gs,fs],(e,t)=>{var s=(0,f.$)([...t,...e,...I.T.value]),n=A.t.value.purposeIds.filter(e=>-1===s.indexOf(e));return{enabled:s,disabled:n}}),bs=(0,g.Mz)([vs,()=>H.a.value.byLegalBasis.consent.vendors.disabled,hs,()=>H.a.value.byLegalBasis.li.vendors.disabled],(e,t,s,n)=>(0,f.$)([...e,...t,...s,...n,...b.R.value])),Is=(0,g.Mz)([fs,bs],(e,t)=>{var s=t.filter(t=>{var s;return!(null==(s=m.o.value)||!s[t])&&(0,y.Z)((0,l.gi)(m.o.value[t].purposeIds),[...e,...I.T.value])}),n=t.filter(e=>-1===s.indexOf(e));return{enabled:s,disabled:n}}),ys=(0,g.Mz)([gs,hs,bs],(e,t,s)=>{var n=t.filter(t=>{var s;return!(null==(s=m.o.value)||!s[t])&&(0,y.Z)((0,l.gi)(m.o.value[t].legIntPurposeIds),[...e,...I.T.value])}),r=s.filter(e=>-1===n.indexOf(e));return{enabled:n,disabled:r}}),Ss=(0,g.Mz)([fs,gs,vs,hs,bs],(e,t,s,n,r)=>{var i=(0,f.$)([...s,...n]).filter(s=>{var n;if(null!=(n=m.o.value)&&n[s]){var r=[...(0,l.gi)(m.o.value[s].purposeIds),...(0,l.gi)(m.o.value[s].legIntPurposeIds)],i=[...e,...t,...I.T.value];return(0,y.Z)(r,i)}return!1}),o=r.filter(e=>-1===i.indexOf(e));return{enabled:i,disabled:o}}),Cs=(0,g.Mz)([ms,Ss,Is,ys],(e,t,s,n)=>({purposes:{consent:{enabled:H.a.value.byLegalBasis.consent.purposes.enabled,disabled:H.a.value.byLegalBasis.consent.purposes.disabled},legitimate_interest:{enabled:H.a.value.byLegalBasis.li.purposes.enabled,disabled:H.a.value.byLegalBasis.li.purposes.disabled},global:e,essential:I.T.value},vendors:{consent:{enabled:H.a.value.byLegalBasis.consent.vendors.enabled,disabled:H.a.value.byLegalBasis.consent.vendors.disabled},legitimate_interest:{enabled:H.a.value.byLegalBasis.li.vendors.enabled,disabled:H.a.value.byLegalBasis.li.vendors.disabled},global:t,global_consent:s,global_li:n},user_id:C.I.value.user_id,created:C.I.value.created,updated:C.I.value.updated})),ws=o(3364),As=e=>e.mixedRegulationPreferences.purposesState,_s=((0,g.Mz)(()=>ws.b.value,e=>e.length>0),o(513));class Ps extends se{setUserMixedConsentStatus(e,t,s,n,r,i,o,a,u){var d=(0,l.Go)(C.I.value),c=(0,l.Go)(d),p=I.T.value,v=e=>!p.includes(e);c.vendors_li={enabled:r,disabled:i},c.purposes={enabled:e.filter(v),disabled:t.filter(v)},c.purposes_li={enabled:s.filter(v),disabled:n.filter(v)},o&&(c.created=o),a&&(c.updated=a);var h=!Boolean(o)&&!Boolean(a);(0,l.bD)(d,c)&&!W.value||(this.actions.dropSignature(),c=this.services.StorageService.setTokenToStorages(c,h),this.sendEvents(c,!1,u))}setUserStatus(e){var t=(0,l.Jt)(e,"purposes.consent.enabled",[]),s=(0,l.Jt)(e,"purposes.consent.disabled",[]),n=(0,l.Jt)(e,"purposes.legitimate_interest.enabled",[]),r=(0,l.Jt)(e,"purposes.legitimate_interest.disabled",[]),i=(0,l.Jt)(e,"vendors.legitimate_interest.enabled",[]),o=(0,l.Jt)(e,"vendors.legitimate_interest.disabled",[]),a=(0,l.Jt)(e,"created"),u=(0,l.Jt)(e,"updated"),d=(0,l.Jt)(e,"action");this.setUserMixedConsentStatus(t,s,n,r,i,o,a,u,d)}getUserStatus(){return(0,l.Go)(Cs(this.store.getState()))}setCurrentUserStatus(e){var t=(0,l.Go)(C.I.value),s=A.t.value.purposeIdsBasedOnLI,n=A.t.value.purposeIdsBasedOnConsent,r=z.C.value,i={};for(var o of Object.keys(r))i[r[o]]=o;var a=te.H.value.operatorIdsWithAtLeastOneOptoutPurpose;if(!(0,j.q7)(e.vendors,a,i))return!1;if(!(0,j.q7)(e.purposes,[...n,...s,...I.T.value]))return!1;var u=(0,j.jh)({globalUserStatus:e.vendors,includeIds:a,reversedIdsToDidomiIdsMap:i}),d=(0,j.jh)({globalUserStatus:e.purposes,includeIds:n,parseNumIds:!1}),c=(0,j.jh)({globalUserStatus:e.purposes,includeIds:s,parseNumIds:!1}),p=t.created,v=(new Date).toISOString(),h=e.action;return this.setUserMixedConsentStatus(d.enabled,d.disabled,c.enabled,c.disabled,u.enabled,u.disabled,p,v,h),this.setStateFromToken(),Oe.value&&this.services.NoticeService.hide(),(0,j.y3)(C.I.value,t)}setStateFromToken(){var e,t,s=this.getUserStatus(),n=s.purposes.consent,r=s.purposes.legitimate_interest,i=s.vendors.legitimate_interest;n.enabled.forEach(e=>{this.actions.setSPIPurposesState(e,!0)}),n.disabled.forEach(e=>{this.actions.setSPIPurposesState(e,!1)}),r.enabled.forEach(e=>{this.actions.setPurposeState(e,!0)}),r.disabled.forEach(e=>{this.actions.setPurposeState(e,!1)}),i.enabled.forEach(e=>{this.actions.setVendorState(e,!0)}),i.disabled.forEach(e=>{this.actions.setVendorState(e,!1)}),this.actions.setAllSPIUseState(this.globalStateFromGranularChoices(n.enabled,n.disabled)),this.actions.setAllVendorsState(this.globalStateFromGranularChoices(i.enabled,i.disabled));var o=this.store.getState(),a=As(o);null==(e=ye.v.value)||null==(t=e.categories)||t.forEach(e=>{var t=(0,_s.c)(e);this.actions.setCategoryState(t.id,(0,f.d)(t.children.map(e=>a[e.purposeId])))})}globalStateFromGranularChoices(e,t){if(!(e.length>0&&t.length>0))return e.length>0&&0===t.length||!(0===e.length&&t.length>0)&&void 0}saveUserChoices(){var e=this.store.getState(),t=(e=>e.mixedRegulationPreferences.spiPurposesState)(e),s=As(e),n=(e=>e.mixedRegulationPreferences.vendorsState)(e),r=new d.A(this.getUserStatus.bind(this),this.setUserStatus.bind(this),"click");Object.keys(t).forEach(e=>{!0===t[e]?r.enablePurpose(e):r.disablePurpose(e)}),Object.keys(s).forEach(e=>{!0===s[e]?r.enablePurposeLegitimateInterest(e):r.disablePurposeLegitimateInterest(e)}),Object.keys(n).forEach(e=>{!0===n[e]?r.enableVendorLegitimateInterests(e):r.disableVendorLegitimateInterests(e)}),r.commit()}setUserAgreeToAll(e){var t,s=A.t.value.purposeIdsBasedOnLI;if(0!==s.length&&null!=(t=te.H.value.operatorIdsWithAtLeastOneOptoutPurpose)&&t.length){var n=new d.A(this.getUserStatus.bind(this),this.setUserStatus.bind(this),e);n.enablePurposesLegitimateInterests(...s),n.enableVendorsLegitimateInterests(...te.H.value.operatorIdsWithAtLeastOneOptoutPurpose),n.commit()}}}var Es=e=>e.replace(/&/g,"&").replace(//g,">").replace(/'/g,"'"),Os=e=>{if("object"==typeof e){var t=JSON.stringify(e);return JSON.parse(Es(t))}return"string"==typeof e?Es(e):e};function Ls(e){return Array.isArray(e)?e.map(e=>Os(e)):"string"==typeof e?Os(e):e}function Ts(e,t,s,n){if(n&&n.data){var r,i="string"==typeof n.data;try{r=i?JSON.parse(n.data):n.data}catch(e){return}if(r[e]){var o=r[e];s(o.command,Ls(o.parameter),(e,s)=>{var r={[t]:{returnValue:e,success:s,callId:o.callId}};n.source&&"function"==typeof n.source.postMessage?n.source.postMessage(i?JSON.stringify(r):r,"*"):window.postMessage(i?JSON.stringify(r):r,"*")})}}}function ks(e,t,s,n){if(window.addEventListener?window.addEventListener("message",Ts.bind(this,e,t,s),!1):window.attachEvent("onmessage",Ts.bind(this,e,t,s)),window.DidomiSanitizing={sanitizeString:Ls},Array.isArray(n)&&n.length>0)for(var r of n)s(r.command,Ls(r.parameter),r.callback,r.version,!0)}function Ds(e){return!0===e?"Y":"N"}class Us{constructor(){this.initialized=!1,this.uspSignal={ccpaApplies:!1,noticeDisplayed:!1,doNotSell:!1,lspa:!1,string:null}}init(e,t,s,n){this.initialized||(this.initialized=!0,this.setUSPData(e,t,s,n),window.__uspapi=this.handleCommand.bind(this),ks("__uspapiCall","__uspapiReturn",this.handleCommand.bind(this),window.__uspapiBuffer))}getUSPData(){return{version:1,uspString:this.uspSignal.string}}handleCommand(e,t,s){if("function"==typeof s&&"getUSPData"===e)s(this.getUSPData(t),!0)}setDoNotSellStatus(e){this.setUSPData(this.uspSignal.ccpaApplies,this.uspSignal.noticeDisplayed,e,this.uspSignal.lspa)}setUSPData(e,t,s,n){this.uspSignal.ccpaApplies=e,this.uspSignal.noticeDisplayed=t,this.uspSignal.doNotSell=s,this.uspSignal.lspa=n,this.uspSignal.ccpaApplies?this.uspSignal.string="1"+Ds(this.uspSignal.noticeDisplayed)+Ds(this.uspSignal.doNotSell)+Ds(this.uspSignal.lspa):this.uspSignal.string="1---"}}class Vs extends v.A{constructor(e,t,s){super(e,t,s),this.USPAPI=new Us}run(){var e;this.USPAPI.init("ccpa"===(null==(e=J.r.value)?void 0:e.name),!0,this.getDoNotSellStatus(),!0===(0,l.Jt)(this.store.getState(),"website.regulations.ccpa.lspa"))}getDoNotSellStatus(){var e;return!0===(null==(e=C.I.value)?void 0:e.dns)}setDoNotSellStatus(e){if(this.getDoNotSellStatus()!==e){var t=(0,l.Go)(C.I.value);t.dns=e,this.services.StorageService.setTokenToStorages(t),this.USPAPI.setDoNotSellStatus(e),this.services.ConsentService.sendEvents(C.I.value,!1,"click")}}getDoNotSellNoticeDate(){var e;return null==(e=C.I.value)?void 0:e.dnsd}updateDoNotSellNoticeDate(){var e=(0,l.Go)(C.I.value);e.dnsd=(new Date).toISOString(),this.services.StorageService.setTokenToStorages(e)}shouldShowNotice(){return!this.getDoNotSellNoticeDate()}}class Rs extends Vs{run(){var e,t,s;this.USPAPI.init("ccpa"===(null==(e=J.r.value)?void 0:e.name),!0,this.getDoNotSellStatus(),!0===(null==(t=J.r.value)||null==(s=t.ccpa)?void 0:s.lspa))}}var Ns=(e,t,s)=>{e.StorageService=new ps(t,s,e),e.ConsentService=new Ps(t,s,e),e.MixedRegulationService.run()},Bs=(e,t,s)=>{var n;"ccpa"===(null==(n=J.r.value)?void 0:n.name)&&(e.CCPAService=new Rs(t,s,e))};class xs extends je{handleMixedRegulationConsentNoticeStatus(){F.G.value.bots&&!1===F.G.value.bots.consentRequired&&tt.w.value||(Oe.value?this.services.ConsentService.setStateFromToken():re.x.value.isEnabled?re.x.value.shouldShowNotice&&this.services.NoticeService.show():this.services.NoticeService.show())}shouldMixedRegulationNoticeBeShown(){return(!F.G.value.bots||!1!==F.G.value.bots.consentRequired||!tt.w.value)&&(!Oe.value&&re.x.value.shouldShowNotice)}_showNoticeAndPreferences(){var e;this.services.NoticeService.show(),null!=(e=ye.v.value)&&e.showWhenConsentIsMissing&&this.services.PreferencesService.show()}determineConsentNoticeStatus(){var e,t,s,n,r,i,o,a;if("mixed"===(null==(e=J.r.value)||null==(t=e.group)?void 0:t.name))this.handleMixedRegulationConsentNoticeStatus();else if("optout"===(null==(s=J.r.value)||null==(n=s.group)?void 0:n.name)&&this.services.CCPAService.shouldShowNotice())this.services.NoticeService.show();else if("optin"===(null==(r=J.r.value)||null==(i=r.group)?void 0:i.name)&&this.shouldReconsentBeEnforced())this.resetAllUserChoicesToDefaults(),this._showNoticeAndPreferences();else if("optin"===(null==(o=J.r.value)||null==(a=o.group)?void 0:a.name)&&this.shouldConsentBeCollected())this._showNoticeAndPreferences();else{var u;this.services.NoticeService.hide(),null!=(u=ye.v.value)&&u.showWhenConsentIsMissing&&this.services.PreferencesService.hide()}}shouldNoticeBeShown(){var e,t,s,n,r,i;return"mixed"===(null==(e=J.r.value)||null==(t=e.group)?void 0:t.name)?this.shouldMixedRegulationNoticeBeShown():"optout"===(null==(s=J.r.value)||null==(n=s.group)?void 0:n.name)?this.services.CCPAService.shouldShowNotice():"optin"===(null==(r=J.r.value)||null==(i=r.group)?void 0:i.name)&&this.shouldConsentBeCollected()}}class Ms extends v.A{configure(e){var t,s,n;if(!e||"object"!=typeof e)return null;if("object"==typeof e.configByCountry&&null!=(t=ue.h.value)&&t.country){var r=e.configByCountry[ue.h.value.country.toUpperCase()];r&&(e=(0,l.or)(e,r))}if(e.privacyPolicyURL&&(0,l.hZ)(e,"website.privacyPolicyURL",e.privacyPolicyURL),e.website||e.app){var i=(0,l.or)(e.website,e.app);e.regulations&&(i.regulations=e.regulations),e.regulation&&(i.regulation=e.regulation),e.version&&(this.services.WebsiteService=new xs(this.store,this.actions,this.services)),this.services.WebsiteService.configure(i)}("object"==typeof e.sync&&this.services.SyncService.configure(e.sync),e.notice&&this.services.NoticeService.configure(e.notice),e.preferences)&&(this.services.PreferencesService.configure(e.preferences),"mixed"===(null==(s=e.regulation)||null==(n=s.group)?void 0:n.name)&&this.services.MixedRegulationService.configure(e.preferences));return this.services.ComponentsService.configure(e.components),this.services.EventsService.configure(e.events),(e.website||e.app)&&e.version&&((e,t,s)=>{var n,r,i,o;"optout"===(null==(n=J.r.value)||null==(r=n.group)?void 0:r.name)&&Bs(e,t,s),"mixed"===(null==(i=J.r.value)||null==(o=i.group)?void 0:o.name)&&Ns(e,t,s)})(this.services,this.store,this.actions),e}}var Fs,zs=o(9838),js=function(e){void 0===e&&(e="en"),Fs||((Fs=document.querySelector("#didomi-host"))?Gs(Fs,e):((Fs=document.createElement("div")).id="didomi-host",Gs(Fs,e),document.body.insertBefore(Fs,document.body.firstChild)))},Gs=(e,t)=>{e&&e.setAttribute&&(e.classList.add("didomi-host"),e.setAttribute("data-nosnippet","true"),e.setAttribute("aria-hidden","true"),e.setAttribute("lang",t),e.setAttribute("data-lang-dir",(0,zs.i)(t)))},Ws={ccpa:()=>o.e("ui-ccpa").then(o.bind(o,550)),cpa:()=>o.e("ui-cpa").then(o.bind(o,2512)),ctdpa:()=>o.e("ui-ctdpa").then(o.bind(o,896)),ctv:e=>o(5604)("./"+e+"/ctv/"),cpra:()=>o.e("ui-cpra").then(o.bind(o,7216)),vcdpa:()=>o.e("ui-vcdpa").then(o.bind(o,8437)),underage:()=>o.e("ui-underage").then(o.bind(o,1521)),web:e=>o(460)("./"+e+"/web/")},Js=["1.0.0","2.0.0"],Hs=["cpra","dpdpa","fdbr","icdpa","mcdpa","nhpa","njdpa","ocpa","tdpsa","ucpa","mncdpa","modpa","ridtppa","incdpa","kcdpa","ndpa","tipa"],Ks={"1.0.0":[{module:"cpra",regulations:Hs},{module:"web",regulations:["gdpr"]},{module:"cpa",regulations:["cpa"]},{module:"vcdpa",regulations:["vcdpa"]},{module:"ctdpa",regulations:["ctdpa"]}],"2.0.0":[{module:"web",regulations:[...Hs,"cpa","ctdpa","gdpr","vcdpa"]}]},qs=(0,N.vP)(null),Zs=function(e,t){var n,r,i,{regulation:o}=void 0===t?{}:t;e||o?["ctv","web","underage"].includes(e)?qs.value=e:qs.value="ccpa"!==o?(e=>{var{version:t,regulation:s}=e,n=Ks[t].find(e=>{var{regulations:t}=e;return t.includes(s)});return n?n.module:null})({version:(i=null==(n=s.bK.value)||null==(r=n.ui)?void 0:r.version,Js.includes(i)?i:"1.0.0"),regulation:o}):o:qs.value=null};class Ys extends v.A{constructor(){super(...arguments),this._uiModule=null,this._postRenderActions=[]}componentWillMount(){this._postRenderActions=[]}reloadUIModule(e,t){var s,{show:n,postRenderAction:i}=void 0===t?{show:!1}:t;e&&this.isRendered()&&e!==qs.value&&(Fs&&Fs.innerHTML&&(Fs.innerHTML=""),null==(s=document.querySelector("#didomi-css"))||s.remove(),js(r.H.value),this._uiModule=null,this.actions.resetUI(),Zs(e),n&&this.show(i))}show(e){void 0===e&&(e=()=>{}),this.isRendered()?e():(e&&this._postRenderActions.push(e),this.isLoading()||this.isLoaded()||this.loadUI(),this.scheduleRender())}scheduleRender(){this.isLoaded()?this.renderUI():this.isRenderScheduled()||(0,R.Oo)("ui.loaded",()=>{this.renderUI()})}preLoad(){this.isRendered()||this.isLoaded()||this.isLoading()||this.loadUI()}renderUI(){(0,R.Oo)("ui.mounted",()=>{this.actions.renderedUI(),this.completePostRenderActions().then(()=>{(0,R.Ic)("ui.ready")})});try{this._uiModule(Fs,this.store,this.services)}catch(e){throw new Error("Error while rendering the SDK UI: Module not loaded")}}completePostRenderActions(){var t=this;return(0,e.A)(function*(){t._postRenderActions.length>0&&Promise.all(t._postRenderActions.map(function(){var t=(0,e.A)(function*(e){return"function"==typeof e?yield e():Promise.resolve()});return function(e){return t.apply(this,arguments)}}())).then(()=>{t._postRenderActions=[]})})()}isLoading(){return(0,l.Jt)(this.store.getState(),"ui.loading")||!1}isLoaded(){return(0,l.Jt)(this.store.getState(),"ui.loaded")||!1}isRenderScheduled(){return(0,R.ew)("ui.loaded")>=1&&!this.isRendered()}isRendered(){return(0,l.Jt)(this.store.getState(),"ui.rendered")||!1}loadUI(){return this.actions.loadingUI(),qs.value?(e=>{var{module:t,locale:s}=e,n=Ws[t];return n?n(s):null})({module:qs.value,locale:r.H.value}).then(e=>{this._uiModule=e.default,this.actions.loadedUI(),(0,R.Ic)("ui.loaded")}):null}}class Qs extends v.A{constructor(e,t,s){super(e,t,s),this.componentsList=["didomi-base-checkbox","didomi-base-radio","didomi-block","didomi-button","didomi-card","didomi-cards","didomi-checkbox","didomi-checkboxes","didomi-container","didomi-email-login","didomi-header","didomi-image","didomi-modal","didomi-radio","didomi-radios","didomi-save","didomi-text","didomi-section","didomi-purpose","didomi-preference","didomi-container-headless"]}configure(e){e||(e={}),Array.from(document.querySelectorAll(this.componentsList.join(", "))).length>0&&(e.helpersEnabled="boolean"!=typeof e.helpersEnabled||e.helpersEnabled,e.componentsEnabled="boolean"!=typeof e.componentsEnabled||e.componentsEnabled),this.actions.setComponentsConfig(e)}getRemoteConsentsAndInitComponentsModule(){return this.services.RemoteConsentService.getRemoteConsentsFromAPI({mergeUsers:!0}).then(()=>{this.initComponentsModule(!0)})}initComponentsModule(e){void 0===e&&(e=!1);var t=(0,n.M)("apiPath"),s=Promise.resolve();if((0,l.Jt)(this.store.getState(),"components.helpersEnabled")||e){var i=(0,l.Jt)(this.store.getState(),"components.version");s=this.importComponentsByVersion(i).then(s=>(0,s.default)({locale:r.H.value,apiBaseURL:t,loadComponents:(0,l.Jt)(this.store.getState(),"components.componentsEnabled")||e,userId:$e.J.value}).then(e=>{Object.assign(window.Didomi,e)}))}return s.then(()=>{(0,R.Ic)("components.loaded")})}importComponentsByVersion(e){return void 0===e&&(e=1),1===e?this.importComponentsV1():this.importComponents(e)}importComponentsV1(){return o.e("components").then(o.bind(o,5845))}importComponents(e){var t=(0,n.M)("pmpSdkPath");return new Promise((s,n)=>{var r=document.createElement("script");r.setAttribute("type","text/javascript"),r.setAttribute("async",!0),r.setAttribute("charset","utf-8"),r.setAttribute("src",t+"/v"+e+"/loader/index.js"),window.Didomi.onPMPSDKLoaded=()=>{s({default:window.Didomi.initPMPSDK})},r.onerror=n,document.body.appendChild(r)})}}var $s=o(8587),Xs=(0,N.EW)(()=>{var e,t;return null!=(e=null==(t=s.bK.value)?void 0:t.sync)?e:{}}),en=["organizationUserId"],tn={organizationUserId:"organization_user_id",organizationUserIdAuthAlgorithm:"organization_user_id_algorithm",organizationUserIdAuthSid:"organization_user_id_sid",organizationUserIdAuthSalt:"organization_user_id_salt",organizationUserIdAuthDigest:"organization_user_id_digest",organizationUserIdExp:"organization_user_id_exp",organizationUserIdIv:"organization_user_id_iv"};class sn extends v.A{constructor(e,t,s){super(e,t,s)}configure(e){e&&((null==e.frequency||"number"!=typeof e.frequency||Number.isNaN(e.frequency)||e.frequency<21600)&&(e.frequency=21600),this.actions.setSyncConfig(e))}getMappedAuthorizationParameters(e){var t={};for(var s of Object.keys(tn))e&&e[s]&&(t[tn[s]]=e[s]);return t}getAuthorizationParameters(){var e=gt.value,t=(0,$s.A)(e,en);return this.getMappedAuthorizationParameters(t)}getSyncData(e){var{agent:s,apiPath:n,domain:r,organizationUserId:i,token:o,tcfcs:a,tcfv:u,timeout:l,authParams:d,synchronizedUsers:c,tokenUserAuthParams:p,signKey:v,regulations:h}=e;return new Promise(e=>{ne.ajax({method:"POST",url:n+"/sync",body:JSON.stringify({source:{domain:r,key:ae.K.value,type:"sdk-web"},user:(0,t.A)({id:o.user_id,organization_user_id:i},d,{agent:s,token:{created:o.created,updated:o.updated,purposes:o.purposes,purposes_li:o.purposes_li,vendors:o.vendors,vendors_li:o.vendors_li},tcfcs:a,tcfv:u,synchronized_users:c,token_user:p,sign_key:v,regs:h})}),timeout:l,headers:{"Content-Type":"application/json"},cors:!0},(t,s)=>{if(201===t){var n;try{n=JSON.parse(s)}catch(t){return console.error("Didomi - Error while parsing sync response"),e({consents:null,errorMessage:"Error while parsing sync response"})}if(!1===n.synced){var{created:r,updated:i,consents:o}=n.user.token,a=i||r;e({consents:{created:a,updated:a,purposes:{consent:{enabled:o.purposes.enabled,disabled:o.purposes.disabled},legitimate_interest:{enabled:o.purposes_li.enabled,disabled:o.purposes_li.disabled}},vendors:{consent:{enabled:o.vendors.enabled,disabled:o.vendors.disabled},legitimate_interest:{enabled:o.vendors_li.enabled,disabled:o.vendors_li.disabled}},action:"sync"},tcfcs:n.user.tcfcs})}else e({consents:null,regenerateSignature:n.regenerate_signature})}else 404===t?e({consents:null,reset:!0}):(console.error("Didomi - Syncing HTTP error "+t),(0,R.KU)(t,"getSyncData"),e({consents:null,errorMessage:"Syncing HTTP error "+t}))})})}run(e,s){void 0===e&&(e=()=>{}),void 0===s&&(s=!0);var r=this.store.getState();if(at(r)){var i,o,a,u,d,c=[];if(null!=(i=J.r.value)&&i.name)c.push(null==(d=J.r.value)?void 0:d.name);return this.getSyncData({agent:navigator.userAgent,apiPath:(0,n.M)("apiPath"),domain:oe(r),organizationUserId:null==(o=F.G.value)?void 0:o.organizationUserId,token:C.I.value,tcfcs:pe.X.value?S.M.value:null,tcfv:pe.X.value?ce.q.value.majorVersion:null,timeout:it(r),authParams:this.getAuthorizationParameters(),synchronizedUsers:null==(a=F.G.value)||null==(u=a.synchronizedUsers)?void 0:u.map(e=>(0,t.A)({organization_user_id:e.organizationUserId},this.getMappedAuthorizationParameters(e))),tokenUserAuthParams:this.getMappedAuthorizationParameters(st.value),signKey:this.services.SignatureService.getCurrentSignatureKey(),regulations:c}).then(t=>{var n,r,i=!!t.consents,o=((e,t)=>()=>{if(e){var s=t();return s||console.log("Didomi - Do not acknowledge a sync via syncAcknowledged more than once"),s}return console.log("Didomi - Do not acknowledge a sync via syncAcknowledged when the user status has not been modified (statusApplied is false)"),!1})(i,this.services.EventsService.sendSyncAcknowledged.bind(this.services.EventsService)),a=(0,l.Go)(C.I.value);(a.sync=(new Date).toISOString(),(0,C.v)(a),t.consents)?(Xs.value.useSyncedTcfcs&&t.tcfcs?(r=t.tcfcs,ls.value=r):ds(),this.services.ConsentService.setUserStatus(t.consents),this.services.StorageService.flushTokenToStorage(),this.services.SignatureService.sign()):t.reset&&null!=(n=ve.U.value)&&n.ouidAsPrimaryIfPresent?this.services.StorageService.reset():t.regenerateSignature?this.services.SignatureService.sign():this.services.StorageService.flushTokenToStorage();if(ds(),t.errorMessage?(0,R.Ic)("sync.error",t.errorMessage):(0,R.Ic)("sync.done"),t.errorMessage){var u={statusApplied:!1,syncError:t.errorMessage,syncAcknowledged:()=>!1};e(u),s&&(0,R.sF)("sync.ready",u)}else{var d={statusApplied:i,syncAcknowledged:o};e(d),s&&(0,R.sF)("sync.ready",d)}}).catch(()=>{var t="Error while getting sync data";(0,R.Ic)("sync.error",t);var n={statusApplied:!1,syncError:t,syncAcknowledged:()=>!1};e(n),s&&(0,R.sF)("sync.ready",n)})}e({statusApplied:!1,syncAcknowledged:()=>!1}),s&&(0,R.sF)("sync.ready")}clearLastSyncDate(){C.I.value.sync&&((0,C.v)((0,t.A)({},C.I.value,{sync:void 0})),this.services.StorageService.flushTokenToStorage())}}var nn=()=>{var e;return(null==(e=dt.$.value)?void 0:e.sort((e,t)=>{var s,n,r=null==(s=e.name)?void 0:s.toLowerCase(),i=null==(n=t.name)?void 0:n.toLowerCase();return ri?1:0}))||[]},rn=o(8975);class on extends v.A{constructor(){super(...arguments),this.setInitialState=()=>{var e,t,s,n,r=null==(e=ye.v.value)||null==(t=e.categories)?void 0:t.map(e=>(0,_s.c)(e)).filter(e=>"category"===e.type);this.actions.setCategories(r),r.forEach(e=>{this.actions.setCategoryState(e.id,rn.B.value.optout.default),e.children.filter(e=>"purpose"===e.type).map(e=>this.actions.setPurposeState(e.purposeId,rn.B.value.optout.default))}),null==(s=nn())||s.forEach(e=>this.actions.setVendorState(e.id,rn.B.value.optout.default)),this.actions.setAllVendorsState(rn.B.value.optout.default),null==(n=ws.b.value)||n.forEach(e=>this.actions.setSPIPurposesState(e,rn.B.value.optin.default)),this.actions.setAllSPIUseState(rn.B.value.optin.default)},this.setAgreeToAll=()=>{var e,t,s,n=this.store.getState();null==(e=ye.v.value)||null==(t=e.categories)||t.forEach(e=>{var t=(0,_s.c)(e);this.actions.setCategoryState(t.id,!0),t.children.filter(e=>"purpose"===e.type).map(e=>this.actions.setPurposeState(e.purposeId,!0))}),(e=>e.mixedRegulationPreferences.vendors)(n).forEach(e=>this.actions.setVendorState(e.id,!0)),this.actions.setAllVendorsState(!0),null==(s=ws.b.value)||s.forEach(e=>this.actions.setSPIPurposesState(e,!0)),this.actions.setAllSPIUseState(!0)}}configure(e){e&&this.actions.setVendors(nn())}run(){this.setInitialState()}}class an extends v.A{constructor(e,t,s){super(e,t,s)}setSignature(e){this.actions.setSignature(e)}updateCookie(e){var{signature:t,dcsUserId:s,trigger:n}=e;this.actions.setSignature({dcsUserId:s,signature:t}),this.services.StorageService.flushTokenToStorage(),"consent-changed"===n&&(0,R.Ic)("consent.changedwithsignature"),(0,R.Ic)("signature.consentsigned")}getSignatureParams(){var e=this.services.StorageService.getCookies(),t=(0,et.Sd)(null==e?void 0:e.didomiToken),s=F.G.value.dcsUser;return t&&s?{dcs:t,dcsUser:s.organizationUserId?this.services.SyncService.getMappedAuthorizationParameters(s):s}:null}sign(){var e;if(null!=(e=de.O.value)&&e.signatureEnabled){var t=this.getSignatureParams();if(t){var s=this.store.getState();ne.ajax({method:"POST",url:(0,n.M)("apiPath")+"/sign",body:JSON.stringify({source:{domain:oe(s),key:ae.K.value,type:"sdk-web"},dcs_user:t.dcsUser,dcs:t.dcs}),headers:{"Content-Type":"application/json"},cors:!0},(e,t)=>{if(201===e){var s=JSON.parse(t);this.updateCookie({dcsUserId:s.dcs_user,signature:s.signature,trigger:"consent-changed"})}else(0,R.KU)(e,"createSignatureSync"),(0,R.Ic)("signature.error","Signature generation fail "+e)})}}}getCurrentSignatureKey(){var e=this.getCurrentSignaturePropsFromCookie();return e.signature?e.signature[0]:null}getCurrentSignaturePropsFromCookie(){var e;if(null==(e=de.O.value)||!e.signatureEnabled)return{};var t=this.services.StorageService.getCookies();if(null!=t&&t.didomiToken){var s=(0,et.dD)(t.didomiToken),n=(0,et.H3)(t.didomiToken);if(s&&n)return{signature:s,dcsUserId:n}}return{}}checkUnsignedConsent(){var e;if(null!=(e=de.O.value)&&e.signatureEnabled&&F.G.value.dcsUser){var t=this.services.StorageService.getCookies();null!=t&&t.didomiToken&&t.didomiToken.indexOf("~")<0&&this.services.StorageService.reset()}}}var un=e=>function(){try{e(...arguments)}catch(e){console.error("Didomi SDK - Error in didomiOnReady function.",e)}};function ln(e){if(!window.didomiOnReady||!0!==window.didomiOnReady.stub){if(Array.isArray(window.didomiOnReady))for(var t of window.didomiOnReady){if("function"==typeof t)un(t)(e)}window.didomiOnReady={stub:!0,push:function(){for(var t=arguments.length,s=new Array(t),n=0;n{r(),delete n.resume},setTimeout(()=>{n.resume&&console.error("Didomi - 10 seconds timeout for loading custom SDK has expired")},1e4)):r()}function cn(e,t,s,n){if("function"==typeof n){q("__cmp-call");var r=e&&e[t];"function"!=typeof r?n(null,!1):n(r.apply(e,Array.isArray(s)?s:void 0),!0)}}function pn(e){ks("__cmpCall","__cmpReturn",cn.bind(this,e),window.__cmpBuffer)}var vn,hn,gn=o(4921),fn=(e,t)=>{"string"==typeof e&&"function"==typeof t&&(0,R.on)(e,t,{shouldYield:!0,shouldBeSafe:!0})},mn=()=>{var e,t,s=(e=/didomi_country=([a-zA-Z]{2})/.exec(window.location.search),t=/didomi_region=([a-zA-Z]{2})/.exec(window.location.search),{country:e?e[1]:null,region:t?t[1]:null}),n={country:"string"==typeof window.didomiCountry&&2===window.didomiCountry.length?window.didomiCountry.toUpperCase():null,region:"string"==typeof window.didomiRegion&&window.didomiRegion.length>0?window.didomiRegion.toUpperCase():null},r={country:s.country||n.country||null,region:s.region||n.region||null};r.country&&"US"!==r.country?(0,ue.Y)({country:r.country,region:null}):r.country&&r.region?(0,ue.Y)({country:r.country,region:r.region}):(0,ue.Y)({country:r.country,region:null})},bn=o(2846),In=o(5968),yn=o(9124),Sn=o(8),Cn=e=>{if(e){var n,{organizationUserId:r,organizationUserIdAuthAlgorithm:i,organizationUserIdAuthSid:o,organizationUserIdAuthSalt:a,organizationUserIdAuthDigest:u,organizationUserIdExp:l,organizationUserIdIv:d,isUnderage:c}=e||{};(0,s.MU)({user:(0,t.A)({},(null==(n=s.bK.value)?void 0:n.user)||{},(0,t.A)({organizationUserId:r,organizationUserIdAuthAlgorithm:i,organizationUserIdAuthSid:o,organizationUserIdAuthSalt:a,organizationUserIdAuthDigest:u,organizationUserIdExp:l,organizationUserIdIv:d},void 0!==c&&{isUnderage:c}))})}},wn=o(6382),An=["notice.enable","notice.showDataProcessing","experiment.group","app.vendors.iab.version","app.alwaysDisplayActionButtons","user.externalConsent.value","sync.enabled"],_n=()=>{var e="didomiConfig",t=window.location.href;if(!t.includes(e))return null;var s,n=(0,_e.vA)(t,e),r={};if(Object.prototype.hasOwnProperty.call(n,e))try{r=JSON.parse(n[e])}catch(t){console.error('Didomi - Invalid JSON from query-string parameter "'+e+'": '+t.message)}for(var i in n)if(i.startsWith(e+".")&&!i.includes("__proto__")&&!i.includes("constructor"))try{var o=JSON.parse(n[i]);(0,l.hZ)(r,i.replace(e+".",""),o)}catch(t){var a=n[i];(0,l.hZ)(r,i.replace(e+".",""),a)}return s=r,An.reduce((e,t)=>{var n=(0,l.Jt)(s,t);return void 0!==n&&(e=e||{},(0,l.hZ)(e,t,n)),e},null)},Pn={configSpecificationVersion:1,environment:"prod",configVersion:1,lastUpdated:"2025-03-27T12:30:52Z",event:"metrics",samplingRate:1e-5,metrics:[{type:"usage",metric:"window-didomi-config",enabled:!0},{type:"usage",metric:"window-didomi-config-custom-vendors",enabled:!0},{type:"usage",metric:"window-didomi-config-custom-purposes",enabled:!0},{type:"usage",metric:"window-didomi-config-essential-purposes",enabled:!0},{type:"usage",metric:"window-didomi-config-disabled-purposes",enabled:!0},{type:"usage",metric:"window-didomi-config-iab",enabled:!0},{type:"usage",metric:"window-didomi-config-iab-restrictions",enabled:!0}]},En=()=>{var{didomiMetricsConfig:e}=window;return e&&"object"==typeof e?e:Pn},On=[],Ln=null,Tn=()=>{if("hidden"===document.visibilityState&&Ln&&On.length){var e=En(),t=On;On=[];var s=((e,t)=>{var s=new Map(e.metrics.map(t=>{var s;return[t.metric,null!=(s=t.samplingRate)?s:e.samplingRate]})),n=new Map;for(var r of t){var i=s.get(r.metric);if(!i)throw new Error("Sampling rate not found for metric "+r.metric);n.has(i)||n.set(i,[]),n.get(i).push(r)}return n})(e,t);for(var[n,r]of s)Ln(e.event,{metrics:r},n)}},kn=e=>{var{type:t,metric:s,value:n}=e;try{((e,t,s)=>{var n=On.find(t=>t.type===e.type&&t.metric===e.metric),r="usage"===t&&s<=0;return e.enabled&&!n&&!r})(((e,t,s)=>{var n=null==e?void 0:e.metrics.find(e=>e.type===t&&e.metric===s);if(!n)throw new Error("Metric config not found for type: "+t+" and metric: "+s);return n})(En(),t,s),t,n)&&On.push({type:t,metric:s,value:n})}catch(e){console.error("Error adding metric: ",e)}};!function(e){e.WindowDidomiConfig="window-didomi-config",e.WindowDidomiConfigVendors="window-didomi-config-custom-vendors",e.WindowDidomiConfigCustomPurposes="window-didomi-config-custom-purposes",e.WindowDidomiConfigEssentialPurposes="window-didomi-config-essential-purposes",e.WindowDidomiConfigDisabledPurposes="window-didomi-config-disabled-purposes",e.WindowDidomiConfigIAB="window-didomi-config-iab",e.WindowDidomiConfigIABRestrictions="window-didomi-config-iab-restrictions"}(vn||(vn={})),function(e){e.Performance="performance",e.Usage="usage"}(hn||(hn={}));var Dn={WINDOW_DIDOMI_CONFIG:vn.WindowDidomiConfig,WINDOW_DIDOMI_CONFIG_CUSTOM_VENDORS:vn.WindowDidomiConfigVendors,WINDOW_DIDOMI_CONFIG_CUSTOM_PURPOSES:vn.WindowDidomiConfigCustomPurposes,WINDOW_DIDOMI_CONFIG_ESSENTIAL_PURPOSES:vn.WindowDidomiConfigEssentialPurposes,WINDOW_DIDOMI_CONFIG_DISABLED_PURPOSES:vn.WindowDidomiConfigDisabledPurposes,WINDOW_DIDOMI_CONFIG_IAB:vn.WindowDidomiConfigIAB,WINDOW_DIDOMI_CONFIG_IAB_RESTRICTIONS:vn.WindowDidomiConfigIABRestrictions},Un=(hn.Usage,hn.Performance,e=>{var t,s,n,r,i,o,a,u,l,d,c=[Dn.WINDOW_DIDOMI_CONFIG];null!=e&&null!=(t=e.app)&&null!=(s=t.vendors)&&s.custom&&c.push(Dn.WINDOW_DIDOMI_CONFIG_CUSTOM_VENDORS),null!=e&&null!=(n=e.app)&&n.customPurposes&&c.push(Dn.WINDOW_DIDOMI_CONFIG_CUSTOM_PURPOSES),null!=e&&null!=(r=e.app)&&r.essentialPurposes&&c.push(Dn.WINDOW_DIDOMI_CONFIG_ESSENTIAL_PURPOSES),null!=e&&null!=(i=e.app)&&i.disabledPurposes&&c.push(Dn.WINDOW_DIDOMI_CONFIG_DISABLED_PURPOSES),null!=e&&null!=(o=e.app)&&null!=(a=o.vendors)&&a.iab&&c.push(Dn.WINDOW_DIDOMI_CONFIG_IAB),null!=e&&null!=(u=e.app)&&null!=(l=u.vendors)&&null!=(d=l.iab)&&d.restrictions&&c.push(Dn.WINDOW_DIDOMI_CONFIG_IAB_RESTRICTIONS),(e=>{for(var t of e)kn({type:"usage",metric:t,value:1})})(c)}),Vn=()=>{var e={},t=(0,wn.V)();null!=t&&t.config&&"object"==typeof(null==t?void 0:t.config)&&(0,l.zw)(e,t.config),window.didomiConfig&&"object"==typeof window.didomiConfig&&((0,l.zw)(e,window.didomiConfig),Un(window.didomiConfig));var s=_n();s&&(0,l.zw)(e,s);var n=(e=>{var t;if("object"==typeof(null==e?void 0:e.configByCountry)&&null!=(t=ue.h.value)&&t.country){var s,n=null==e?void 0:e.configByCountry[null==(s=ue.h.value)?void 0:s.country.toUpperCase()];if(n)return n}})(e);n&&(e=(0,l.zw)(e,n));var r=(e=>{var t;if(null==e?void 0:e.version)return null==e||null==(t=e.regulation)?void 0:t.name;var s,n,r,i,o,a,u,l,d=(null==e?void 0:e.regulations)||(null==e||null==(s=e.website)?void 0:s.regulations)||(null==e||null==(n=e.app)?void 0:n.regulations)||{},c=(null==(r=d.gdpr)?void 0:r.additionalCountries)||[],p=Array.isArray(window.didomiGeoRegulations)?window.didomiGeoRegulations:[],v="US"===(null==(i=ue.h.value)?void 0:i.country)&&"CA"===(null==(o=ue.h.value)?void 0:o.region),h=!(null==d||null==(a=d.ccpa)||!a.enabled),g=!!d&&!!window.gdprAppliesGlobally||(null==c?void 0:c.includes(null==(u=ue.h.value)?void 0:u.country))||(null==p?void 0:p.includes("gdpr")),f=!!d&&!!window.gdprAppliesGlobally||!1!==(null==d||null==(l=d.gdpr)?void 0:l.enabled);return v&&h?"ccpa":g&&f?"gdpr":null})(e);return r&&(0,l.hZ)(e,"regulation.name",r),e},Rn=(e,t)=>{var s,n,r,i;if(!t)return!1;var o,a,u=!0,d=I.T.value,c=(null==(s=t.purposes)?void 0:s.enabled)||[],p=(null==(n=t.purposes_li)?void 0:n.enabled)||[],v=(null==(r=t.vendors)?void 0:r.enabled)||[],h=(null==(i=t.vendors_li)?void 0:i.enabled)||[],g=Ee.H$.value.operatorIdsWithAtLeastOneOptoutPurpose,f=Ee.H$.value.operatorIdsWithAtLeastOneOptinPurpose;g.includes(e)&&(u=u&&h.includes(e),null!=(o=m.o.value)&&o[e]&&(u=u&&(0,y.Z)((0,l.gi)(m.o.value[e].legIntPurposeIds),[...p,...d])));f.includes(e)&&(u=u&&v.includes(e),null!=(a=m.o.value)&&a[e]&&(u=u&&(0,y.Z)((0,l.gi)(m.o.value[e].purposeIds),[...c,...d])));return u},Nn=(0,N.EW)(()=>{var e,s,n,r;return null!=(e=Pe.h.value)&&e.length?null==(s=Pe.h.value)||null==(n=s.map(e=>({[e.didomiId]:e.id})))||null==(r=n.filter(Boolean))?void 0:r.reduce((e,s)=>(0,t.A)({},e,s),{}):{}}),Bn={},xn=e=>Bn[e];(0,N.QZ)(()=>{var e=C.I.value;Object.values(Bn).forEach(t=>((e,t)=>{var s=Rn(e.vendorId,t);e.enabled!==s&&(e.enabled=s,e.listeners.forEach(t=>t&&t({id:e.didomiId,enabled:s})))})(t,e))});var Mn=o(3029);class Fn{constructor(e){this.setCurrentUserStatus=e,this.initialUserStatus=Mn.L.value,this.pendingUpdates={purposes:{},vendors:{}}}enablePurpose(e){var t;return this.initialUserStatus.purposes.hasOwnProperty(e)?(null!=(t=this.pendingUpdates.purposes)[e]||(t[e]={}),this.pendingUpdates.purposes[e].enabled=!0,this):(console.error("Didomi SDK - enablePurpose ignored due to invalid purpose:",e),this)}enablePurposes(e){return e.forEach(e=>this.enablePurpose(e)),this}disablePurpose(e){var t;return this.initialUserStatus.purposes.hasOwnProperty(e)?(null!=(t=this.pendingUpdates.purposes)[e]||(t[e]={}),this.pendingUpdates.purposes[e].enabled=!1,this):(console.error("Didomi SDK - disablePurpose ignored due to invalid purpose:",e),this)}disablePurposes(e){return e.forEach(e=>this.disablePurpose(e)),this}enableVendor(e){var t;return this.initialUserStatus.vendors.hasOwnProperty(e)?(null!=(t=this.pendingUpdates.vendors)[e]||(t[e]={}),this.pendingUpdates.vendors[e].enabled=!0,this):(console.error("Didomi SDK - enableVendor ignored due to invalid vendor:",e),this)}enableVendors(e){return e.forEach(e=>this.enableVendor(e)),this}disableVendor(e){var t;return this.initialUserStatus.vendors.hasOwnProperty(e)?(null!=(t=this.pendingUpdates.vendors)[e]||(t[e]={}),this.pendingUpdates.vendors[e].enabled=!1,this):(console.error("Didomi SDK - disableVendor ignored due to invalid vendor:",e),this)}disableVendors(e){return e.forEach(e=>this.disableVendor(e)),this}commit(){try{return this.setCurrentUserStatus((0,t.A)({},(0,l.zw)((0,l.Go)(Mn.L.value),this.pendingUpdates),{action:"external"}))}catch(e){return console.error("Didomi SDK - Failed to update user status:",e),!1}}}var zn=o(2714),jn=o(5427),Gn=o(7931),Wn=o(1373),Jn=o(4283),Hn=e=>{var{includeAllLegalBasis:t=!1,requiredPurposeIds:s,requiredPurposeIdsBasedOnConsent:n,essentialPurposeIds:r,customPurposesIds:i,disabledPurposeIds:o,userStatus:a,isConsentRequired:u}=e,l=[],d=[],c=[],p=t?s:(0,f.$)([...i.filter(e=>!o.includes(e)),...n]);for(var v of p){var h=n.includes(v)?a.byLegalBasis.consent.purposesById[v]:a.byLegalBasis.li.purposesById[v];r.includes(v)||!0===h?l.push(v):!1===h?c.push(v):u?d.push(v):l.push(v)}return{allowed:l,unknown:d,denied:c}},Kn=o(3207),qn=[],Zn=e=>{var s,n,r;if(null==(s=qn)||!s.length)return Promise.resolve();var i=(0,Kn.R)({requiredVendors:e.requiredVendors,userStatus:e.userStatus,isConsentRequired:e.isConsentRequired,processingRules:"mixed"===(null==e||null==(n=e.regulation)||null==(r=n.group)?void 0:r.name)?["legitimate_interest"]:["consent","legitimate_interest"]}),o=(e=>{var{experiment:t,requiredPurposeIds:s,requiredPurposeIdsBasedOnConsent:n,essentialPurposeIds:r,userStatus:i,isConsentRequired:o,customPurposesIds:a,disabledPurposeIds:u,regulation:l,consentString:d,vendorIdsMap:c,vendorByStatus:p={vendorsByStatusWithPurposes:{allowed:[],unknown:[],denied:[]},vendorsByStatusWithoutPurposes:{allowed:[],unknown:[],denied:[]}}}=e,{vendorsByStatusWithPurposes:v,vendorsByStatusWithoutPurposes:h}=p,g=Hn({requiredPurposeIds:s,requiredPurposeIdsBasedOnConsent:n,essentialPurposeIds:r,userStatus:i,isConsentRequired:o,customPurposesIds:a,disabledPurposeIds:u,includeAllLegalBasis:!1}),f=Hn({requiredPurposeIds:s,requiredPurposeIdsBasedOnConsent:n,essentialPurposeIds:r,userStatus:i,isConsentRequired:o,customPurposesIds:a,disabledPurposeIds:u,includeAllLegalBasis:!0});return{didomiRegulationName:(null==l?void 0:l.name)||"",didomiGDPRApplies:"gdpr"===(null==l?void 0:l.name)?1:0,didomiIABConsent:"gdpr"===(null==l?void 0:l.name)&&d||"",didomiVendorsConsent:(0,Wn.z)(v.allowed),didomiVendorsConsentUnknown:(0,Wn.z)(v.unknown),didomiVendorsConsentDenied:(0,Wn.z)(v.denied),didomiPurposesConsent:(0,Wn.z)(g.allowed),didomiPurposesConsentUnknown:(0,Wn.z)(g.unknown),didomiPurposesConsentDenied:(0,Wn.z)(g.denied),didomiVendorsRawConsent:(0,Wn.z)(h.allowed),didomiVendorsRawConsentUnknown:(0,Wn.z)(h.unknown),didomiVendorsRawConsentDenied:(0,Wn.z)(h.denied),didomiExperimentId:(null==t?void 0:t.id)||"",didomiExperimentUserGroup:(null==t?void 0:t.group)||"",didomiVendorsEnabled:(0,Wn.z)(v.allowed.map(e=>c[(0,Jn.b)(e)])),didomiVendorsDisabled:(0,Wn.z)(v.denied.map(e=>c[(0,Jn.b)(e)])),didomiVendorsUnknown:(0,Wn.z)(v.unknown.map(e=>c[(0,Jn.b)(e)])),didomiPurposesEnabled:(0,Wn.z)(f.allowed),didomiPurposesDisabled:(0,Wn.z)(f.denied),didomiPurposesUnknown:(0,Wn.z)(f.unknown)}})((0,t.A)({vendorByStatus:i},e));return qn.forEach(s=>s.update((0,t.A)({customVariables:o},e))),Promise.resolve()},Yn=o(8074),Qn=function(){var t=(0,e.A)(function*(e){var{ready:t=!0,consent:s=!0}=e;s&&(0,R.on)("internal.consent.changed",()=>{Zn({type:"didomi-consent-changed",hasMadeAnyChoice:H.a.value.hasMadeAnyChoice,requiredVendors:Pe.h.value,vendorIdsMap:z.C.value,experiment:ge.value,requiredPurposeIds:A.t.value.purposeIds,requiredPurposeIdsBasedOnConsent:A.t.value.purposeIdsBasedOnConsent,essentialPurposeIds:I.T.value,customPurposesIds:At.Y.value,disabledPurposeIds:Yn.B.value,userStatus:H.a.value,isConsentRequired:Q.y.value,regulation:J.r.value,consentString:S.M.value,allowedCategories:X.value})}),t&&(yield Zn({type:"didomi-ready",hasMadeAnyChoice:H.a.value.hasMadeAnyChoice,requiredVendors:Pe.h.value,vendorIdsMap:z.C.value,experiment:ge.value,requiredPurposeIds:A.t.value.purposeIds,requiredPurposeIdsBasedOnConsent:A.t.value.purposeIdsBasedOnConsent,essentialPurposeIds:I.T.value,customPurposesIds:At.Y.value,disabledPurposeIds:Yn.B.value,userStatus:H.a.value,isConsentRequired:Q.y.value,regulation:J.r.value,consentString:S.M.value,allowedCategories:X.value}))});return function(e){return t.apply(this,arguments)}}(),$n=o(6067),Xn=o(3307),er=[],tr=e=>{var{ready:t=!0,consent:s=!0}=e,n=e=>{var t;t={event:e,isConsentRequired:Q.y.value,currentUserStatus:Mn.L.value,userStatus:H.a.value},er.forEach(e=>e.setConsentStatus((e=>({event:e.event,isConsentRequired:e.isConsentRequired,currentUserStatus:e.currentUserStatus,userStatus:e.userStatus}))(t)))};Q.y.value?(t&&n("pageload"),s&&(0,R.on)("internal.consent.changed",()=>{n("consent-changed")})):n("consent-not-required")},sr=o(1981),nr=o(3369);i("init-started",{detail:"Initialization of the Didomi SDK started"});var rr={},ir={},or={},ar=!1,ur=[];function lr(e){try{Ln=(t,s,n)=>e.EventsService.send(t,s,n,!0),document.addEventListener("visibilitychange",Tn)}catch(e){console.warn("Failed to initialize metrics package:",e)}}function dr(e){var t,n,r,a,l;e.SiteConfigService.configure(s.bK.value);var d,c,p,v,h,g=(d=s.bK.value.tagManager,new Promise(e=>{var t=(0,jn.getApplicableProviders)(d);Promise.all([...t].map(e=>(0,Gn.loadProviderModule)(e,{dataLayerName:null==d?void 0:d.dataLayerName}))).then(t=>{qn=[...t].filter(Boolean),e()}).catch(t=>{console.error("Error setting up tag managers:",t),e()})})),f=(c=s.bK.value.integrations,new Promise(e=>{try{var t=(0,$n.getApplicableProviders)(c);Promise.all([...t].map(e=>(0,Xn.loadProviderModule)(e,c))).then(t=>{var s=(er=[...t].filter(Boolean)).length>0;s&&(0,R.Ic)("internal.integrations.loaded"),e(s)}).catch(t=>{console.error("Error setting up integrations:",t),e(!1)})}catch(t){console.error("Error setting up integrations:",t),e(!1)}}));if(null!=(t=s.bK.value)&&null!=(n=t.integrations)&&n.gpp&&ur.push((p=!1,v=!1,h=!1,(0,R.Oo)("consent.changed",()=>{p=!0}),(0,R.Oo)("notice.shown",()=>{v=!0}),(0,R.Oo)("notice.hidden",()=>{h=!0}),(0,R.Oo)("preferences.shown",()=>{v=!0}),(0,R.Oo)("preferences.hidden",()=>{h=!0}),new Promise(e=>{o.e("gpp-library").then(o.t.bind(o,2195,23)).then(t=>{var n,r,{initGPPCmpApi:i,cmpUIShownHandler:o,cmpUIHiddenHandler:a,updateGPP:u,addGPPStringUpdateListener:l,getGppString:d}=t;i({gppConfig:null==(n=s.bK.value)||null==(r=n.integrations)?void 0:r.gpp,cmpID:M.a.defaultCMPID,cmpVersion:M.a.defaultCMPVersion,yieldToMain:!0}),(0,zn.K)(d()),l(zn.K),u(Mn.L.value),p&&u(Mn.L.value),h?a():v&&o(),(0,R.on)("consent.changed",()=>{u(Mn.L.value)}),(0,R.on)("notice.shown",o),(0,R.on)("notice.hidden",a),(0,R.on)("preferences.shown",o),(0,R.on)("preferences.hidden",a),e()})}))),!window.gdprAppliesGlobally||null!=(r=s.bK.value)&&r.version||q("gdprAppliesGlobally-v0"),e.RemoteConsentService.getRemoteConsentsFromAPI({mergeUsers:!0}).then(()=>{e.ComponentsService.initComponentsModule()}),e.SignatureService.checkUnsignedConsent(),"none"===(null==(a=J.r.value)?void 0:a.name))return e.CCPAService.run(),ze(),ur.push(f.then(e=>e&&tr({ready:!0,consent:!1})).then(()=>g).then(()=>Qn({ready:!0,consent:!1}))),window.Didomi=rr,pn(ir),void Promise.all(ur).then(()=>{ln(rr)});if(le.M.value)Zs("ctv");else if(null!=(l=F.G.value)&&l.isUnderage)Zs("underage");else{var m;Zs(null,{regulation:null==(m=J.r.value)?void 0:m.name})}(0,gn.F)(()=>{e.StorageService.initStorages(()=>{var t,n=e.StorageService.initStoreFromStorage(),r=n.didomiTokenCreatedFromIABToken,o=n.token;e.WebsiteService.shouldNoticeBeShown()&&e.UIService.preLoad(),e.ConsentService.loadExternalConsent(),ee(),"test"===(null==(t=ge.value)?void 0:t.group)&&rr.configure(ge.value.config,!0),(0,gn.F)(()=>{var t=u.J3.getState();(()=>{var e,t;if(null==(e=s.bK.value)?void 0:e.version)return"ccpa"===(null==(t=J.r.value)?void 0:t.name);var n,r,i,o,a,u,l=(null==(n=s.bK.value)?void 0:n.regulations)||(null==(r=s.bK.value)||null==(i=r.website)?void 0:i.regulations)||(null==(o=s.bK.value)||null==(a=o.app)?void 0:a.regulations)||{};return!(null==l||null==(u=l.ccpa)||!u.enabled)})()&&(e.CCPAService.run(),q("ccpa")),"tv"===(0,s.On)("mode")&&(0,bn.a)(),!0===t.sync.delayNotice?e.SyncService.run(()=>{ze(),e.WebsiteService.determineConsentNoticeStatus()},!0):(e.SyncService.run(void 0,!0),ze(),e.WebsiteService.determineConsentNoticeStatus()),ur.push(f.then(e=>{e&&tr({ready:!0,consent:!0})}).then(()=>g).then(()=>Qn({ready:!0,consent:!0}))),ar=!0,e.EventsService.sendPageview(),window.Didomi=rr,pn(ir),i("init-finished",{detail:"Initialization of the Didomi SDK finished"}),e.UIService.isRenderScheduled()?(0,R.Oo)("ui.ready",()=>{Promise.all(ur).then(()=>{i("notice-shown",{detail:"Didomi notice shown"}),ln(rr)})}):Promise.all(ur).then(()=>{ln(rr)}),r&&e.ConsentService.sendEvents(o,!0)},!0)})},!0)}function cr(i){js(r.H.value),window.addEventListener("pagehide",()=>{i.EventsService.sendPageview(!0)}),Object.assign(ir,{getConfig(){return s.bK.value},getUserConsentStatus(e,t){return void 0===t&&(t=null),q("get-user-consent-status"),((e,t)=>!(!H.a.value.byLegalBasis.consent.purposesById[e]&&!I.T.value.includes(e)||!H.a.value.byLegalBasis.consent.vendorsById[t])||!1!==H.a.value.byLegalBasis.consent.purposesById[e]&&!1!==H.a.value.byLegalBasis.consent.vendorsById[t]&&void 0)(e,t)},getUserConsentStatusForPurpose(e){return q("get-user-consent-status-for-purpose"),H.a.value.byLegalBasis.consent.purposesById[e]},getUserConsentStatusForVendor(e){return q("get-user-consent-status-for-vendor"),i.ConsentService.getUserConsentStatusForAllPurposesByVendor(e)},getUserStatus(){return q("get-user-status"),i.ConsentService.getUserStatus()},getCurrentUserStatus(){var e;return q("get-current-user-status"),null!=(e=sr.K.value)&&e.length&&q("get-current-user-status-with-custom-vendors"),Mn.L.value}}),Object.assign(or,{CCPA:{getDoNotSellStatus(){return q("ccpa-get-do-not-sell-status"),i.CCPAService.getDoNotSellStatus()},setDoNotSellStatus(e){return q("ccpa-set-do-not-sell-status"),i.CCPAService.setDoNotSellStatus(e)}},getUserAuthToken(){return Ye.value},setUserAuthToken(e){return Qe(e)},isRegulationApplied(e){var t;return(null==(t=J.r.value)?void 0:t.name)===e},isConsentRequired(){return q("is-consent-required"),Q.y.value},requestAuthenticationURL(e){var{authProviderId:t}=void 0===e?{}:e;return i.RemoteConsentService.requestAuthenticationURL({authProviderId:t})},sendEmailLogin(e,t){return q("send-email-login"),i.RemoteConsentService.sendLogin({value:e,channel:"email",params:t})},sendMessageLogin(e){var{value:t,channel:s,params:n}=e;return q("send-message-login"),i.RemoteConsentService.sendLogin({value:t,channel:s,params:n})},sendLogin(e){var{value:t,channel:s,params:n}=e;return i.RemoteConsentService.sendLogin({value:t,channel:s,params:n})},verifyOtpCode(e){var{code:t,organizationUserId:s,authProviderId:n}=e;return i.RemoteConsentService.verifyOtpCode({code:t,organizationUserId:s,authProviderId:n})},getRemoteConsentsFromAPI(){return i.RemoteConsentService.getRemoteConsentsFromAPI()},Purposes:i.ConsentService.Purposes,on(e,t){return e=e.toLowerCase(),(0,nr.Yj)(e)?(0,R.on)(e,t):(console.error('Didomi SDK - Cannot subscribe to unknown event type "'+e+'"'),null)},once(e,t){if(e=e.toLowerCase(),(0,nr.Yj)(e))return(0,R.Oo)(e,t);console.error('Didomi SDK - Cannot subscribe to unknown event type "'+e+'"')},off(e,t){if(e=e.toLowerCase(),(0,nr.Yj)(e))return(0,R.pQ)(e,t);console.error('Didomi SDK - Cannot unsubscribe from unknown event type "'+e+'"')},emit(e){if(e=e.toLowerCase(),(0,nr.lR)(e)){for(var t=arguments.length,s=new Array(t>1?t-1:0),n=1;n{var s;if(void 0===e||void 0===t)return-1;var n=xn(e);if(n)return n.listeners.push(t),n.listeners.length-1;var r=null==(s=Nn.value)?void 0:s[e];return void 0===r?-1:(n={vendorId:r,didomiId:e,enabled:Rn(r,C.I.value),listeners:[t]},Bn[e]=n,0)})(e,t)},removeVendorStatusListener(e,t){return((e,t)=>{if(void 0===t||t<0||void 0===e)return-1;var s=xn(e);return s?s.listeners.length<=t||void 0===s.listeners[t]?-1:(s.listeners[t]=void 0,t):-1})(e,t)},setUserStatusForAll(e){var{purposesConsentStatus:t,purposesLIStatus:s,vendorsConsentStatus:n,vendorsLIStatus:r,created:o,updated:a,action:u}=e;return i.ConsentService.setUserStatusForAll({purposesConsentStatus:t,purposesLIStatus:s,vendorsConsentStatus:n,vendorsLIStatus:r,created:o,updated:a,action:u})},setUserConsentStatus(e,t,s){return q("set-user-consent-status"),i.ConsentService.setUserConsentStatusDeprecated(e,t,s)},setUserConsentStatusForAll(e,t,s,n){return void 0===e&&(e=[]),void 0===t&&(t=[]),void 0===s&&(s=[]),void 0===n&&(n=[]),i.ConsentService.setUserConsentStatus(e,t,s,n)},setRemoteConsentStatusForAll(e){return i.RemoteConsentService.setRemoteConsentStatusForAll(e)},getUserConsentStatusForAll(){return{purposes:{enabled:H.a.value.byLegalBasis.consent.purposes.enabled,disabled:H.a.value.byLegalBasis.consent.purposes.disabled},vendors:{enabled:H.a.value.byLegalBasis.consent.vendors.enabled,disabled:H.a.value.byLegalBasis.consent.vendors.disabled}}},getRemoteConsentStatusForAll(){return i.RemoteConsentService.getRemoteConsentStatusForAll()},getRemoteConsentEventsForAll(e){return i.RemoteConsentService.getRemoteConsentEventsForAll(e)},refreshRemoteConsentsForAll(){return i.RemoteConsentService.refreshRemoteConsentsFromAPI()},getPendingConsents(){return i.RemoteConsentService.getPendingConsents()},savePendingConsents(e){return i.RemoteConsentService.savePendingConsents(e)},resetPendingConsents(){return i.RemoteConsentService.resetPendingConsents()},saveConsentForEntityById(e,t,s,n,r,o,a,u,l,d){return i.RemoteConsentService.saveConsentForEntityById(e,t,s,n,r,o,a,u,l,d)},setPendingConsentForEntityById(e,t,s,n){return i.RemoteConsentService.setPendingConsentForEntityById(e,t,s,n)},openTransaction(){return q("open-transaction"),new d.A(i.ConsentService.getUserStatus.bind(i.ConsentService),i.ConsentService.setUserStatus.bind(i.ConsentService))},openCurrentUserStatusTransaction(){return new Fn(i.ConsentService.setCurrentUserStatus.bind(i.ConsentService))},isUserAuthenticated(){return i.RemoteConsentService.isUserAuthenticated()},getAuthProtocol(){return q("get-auth-protocol"),i.RemoteConsentService.getAuthProtocol()},isTCFEnabled(){return pe.X.value},configure(e,t){void 0===t&&(t=!1),t||q("configure"),(0,s.MU)(e),i.SiteConfigService.configure(e),ar&&i.WebsiteService.determineConsentNoticeStatus()},notice:{configure(e){u.fh.setConsentNoticeConfig(e)},show(){i.NoticeService.show()},hide(){i.NoticeService.hide()},isVisible(){return i.NoticeService.isVisible()},showDataProcessing(){var e;return null==(e=Ie.l.value)?void 0:e.showDataProcessing}},preferences:{hide(){i.PreferencesService.hide()},show(e){i.PreferencesService.show(e)},isVisible(){return i.PreferencesService.isVisible()}},setUserAgreeToAll(e){void 0===e&&(e="external"),i.WebsiteService.setUserAgreeToAll(e)},setUserDisagreeToAll(e){void 0===e&&(e="external"),i.WebsiteService.setUserDisagreeToAll(e)},isUserConsentStatusPartial(){return q("is-user-consent-status-partial"),i.WebsiteService.isUserConsentStatusPartial()},setConfigParameter(e,t){return(0,s.ld)(e,t)},theme:{set(e,t){q("theme-set");var n=e||t;(0,s.MU)({theme:{color:n}})}},reset(e){void 0===e&&(e=null),i.StorageService.reset(e)},getRequiredVendorIds(){return b.R.value},getRequiredVendors(e){return(e=>{var t,s;return null==(t=Pe.h.value)||null==(s=t.filter(t=>!e||t.namespace===e))?void 0:s.filter(e=>"object"==typeof e&&!!e)})(e)},getVendorById(e){var t;return null==(t=m.o.value)?void 0:t[e]},getVendorByNumericId(e){return(e=>{var t;return null==(t=m.o.value)?void 0:t[Ot.value.numberIdToVendorMap[e]]})(e)},getVendorNumericId(e){var t,s;return null==(t=Ot.value)||null==(s=t.vendorToNumericIdMap)?void 0:s[e]},getVendors(){return lt.E.value},getRequiredPurposeIds(){return(0,f.$)([...A.t.value.purposeIdsBasedOnConsent,...At.Y.value])},getRequiredPurposes(e){return(0,f.$)([...A.t.value.purposeIdsBasedOnConsent,...At.Y.value]).map(e=>A.t.value.purposes.find(t=>t.id===e)).filter(t=>!e||(null==t?void 0:t.namespace)===e)},getPurposeById(e){return(0,In.z)(e)},getPurposes(){return Ct.m.value},getPurposeByNumericId(e){var t,s,n=null==(t=_t.value)?void 0:t.numberIdToPurposeMap[e];return(null==(s=Ct.m.value)?void 0:s[n])||null},getPurposeNumericId(e){var t,s,n;return null==(t=Ct.m.value)||null==(s=t[e])||null==(n=s.namespaces)?void 0:n.num},getLanguage(){return r.H.value},getPurposesBasedOnConsent(){return(0,f.$)([...A.t.value.purposeIdsBasedOnConsent,...I.T.value]).reduce((e,s)=>{var n,r=null==(n=Ct.m.value)?void 0:n[s];return r&&e.push((0,t.A)({},r,{legalBasis:"consent"})),e},[])},getPurposesBasedOnLegitimateInterest(){return A.t.value.purposesBasedOnLI},getPurposesFromAllLegalBases(){return[...A.t.value.purposesBasedOnConsent,...A.t.value.purposesBasedOnLI]},getCategories(){var e;return null==(e=ye.v.value)?void 0:e.categories},navigate(e){console.info("Didomi - Ignoring call to navigate. Ensure that the UI is displayed and that the SDK is ready by wrapping your calls in window.didomiOnReady callbacks",e)},getTranslationAsHTML(){return console.error("Didomi - The UI module needs to be loaded before using the getTranslationAsHTML function"),null},shouldConsentBeCollected(){return i.WebsiteService.shouldConsentBeCollected()},shouldReconsentBeEnforced(){return i.WebsiteService.shouldReconsentBeEnforced()},getExperiment(){return fe.value},version:"6e903234de01d30e6a306f02442e95c9e91c20ed-2025-11-26T13:46:52.255Z",getCedFactory(){return yt.g},useCedFactory(e){return t=e,void(yt.g?t(yt.g):(0,R.on)("ced.loaded",()=>{t(yt.g)}));var t},setUser(e){i.SyncService.clearLastSyncDate();var{organizationUserId:t,organizationUserIdAuthAlgorithm:s,organizationUserIdAuthSid:n,organizationUserIdAuthSalt:r,organizationUserIdAuthDigest:o,organizationUserIdExp:a,organizationUserIdIv:u,isUnderage:l}=e||{};l&&F.G.value.isUnderage!==l&&i.UIService.reloadUIModule("underage",{show:!0}),Cn({organizationUserId:t,organizationUserIdAuthAlgorithm:s,organizationUserIdAuthSid:n,organizationUserIdAuthSalt:r,organizationUserIdAuthDigest:o,organizationUserIdExp:a,organizationUserIdIv:u,isUnderage:l})},syncUser(){return new Promise(e=>{i.SyncService.run(t=>e(t),!1)})},pushUserStatusToServer(){return new Promise(e=>{if(F.G.value.organizationUserId){var{purposes:t,purposes_li:s,vendors:n,vendors_li:r,created:o,updated:a,dns:u}=C.I.value;i.EventsService.sendConsentGiven({purposes:t,vendors:n,created:o,updated:a,dns:!0===u||void 0,from_euconsent:!1,action:"replay",purposes_li:s,vendors_li:r},!1)}e()})},clearUser(){return new Promise(e=>{i.SyncService.clearLastSyncDate(),Cn({organizationUserId:void 0,organizationUserIdAuthAlgorithm:void 0,organizationUserIdAuthSid:void 0,organizationUserIdAuthSalt:void 0,organizationUserIdAuthDigest:void 0,organizationUserIdExp:void 0,organizationUserIdIv:void 0,isUnderage:!1}),e()})},isUserStatusPartial(){return i.WebsiteService.isUserStatusPartial()},shouldUserStatusBeCollected(){return i.WebsiteService.shouldUserStatusBeCollected()},getCMModule(){return(0,e.A)(function*(){return o.e("src_sdk_compliance-monitoring_index_js").then(o.bind(o,2362))})()}}),Object.assign(rr,(0,t.A)({},ir,or)),(()=>{if(!window.didomiEventListeners||!0!==window.didomiEventListeners.stub){if(Array.isArray(window.didomiEventListeners))for(var e of window.didomiEventListeners)"object"==typeof e&&"string"==typeof e.event&&e.event&&"function"==typeof e.listener&&fn(e.event,e.listener);window.didomiEventListeners={stub:!0,push:function(){for(var e=arguments.length,t=new Array(e),s=0;s{dr(i)}),lr(i)}function pr(){!function(e){if(e.didomiConfig&&Object.hasOwn(e,"didomiConfig")&&Object.hasOwn(e.didomiConfig,"sdkPath")&&e.didomiConfig.sdkPath){var t="sdk/6e903234de01d30e6a306f02442e95c9e91c20ed/modern/";e.didomiConfig.sdkPath.endsWith("/")?o.p=e.didomiConfig.sdkPath+t:o.p=e.didomiConfig.sdkPath+"/"+t}}(window),mn(),(0,s.MU)(Vn()),function(e,t,s){var n={};n.SiteConfigService=new Ms(e,t,n),n.EventsService=new be(e,t,n),n.NoticeService=new Ce(e,t,n),n.PreferencesService=new Ae(e,t,n),n.ConsentService=new se(e,t,n),n.CCPAService=new Vs(e,t,n),n.WebsiteService=new je(e,t,n),n.LocalStoreService=new Je(e,t,n),n.RemoteConsentService=new Xe(e,t,n),n.StorageService=new cs(e,t,n),n.UIService=new Ys(e,t,n),n.ComponentsService=new Qs(e,t,n),n.SyncService=new sn(e,t,n),n.MixedRegulationService=new on(e,t,n),n.SignatureService=new an(e,t,n),Promise.all([Be(),new Promise(e=>{Promise.resolve().then(o.bind(o,1719)).then(t=>{De=t,e()})})]).then(()=>{!function(e){for(var t in e)"function"==typeof e[t].init&&e[t].init()}(n),s&&s(n)})}(u.J3,u.fh,cr)}if(document.body)pr();else var vr=setInterval(()=>{document.body&&(clearInterval(vr),pr())},1e3);var hr=rr}(),window.Didomi=a.default}();