(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7009],{207009:function(t){t.exports=function(){"use strict";var t=function(){function t(){}return t.loadScript=function(t){return new Promise(function(e,n){var o=document.createElement("script");o.src=t.src,o.type="text/javascript",o.async=t.async||!0,o.defer=t.defer||!0,(t.attributes||[]).forEach(function(t){return o.setAttribute(t.name,t.value)}),o.onload=function(){e()},o.onerror=function(){n(Error("Unable to load script."))},document.getElementsByTagName("head")[0].appendChild(o)})},t.setCookie=function(t,e,n,o){void 0===n&&(n=0);var r=t+"="+(e||"")+";path=/";if(n){var i=new Date;i.setTime(i.getTime()+24*n*36e5),r+='; expiryDate=" '+i.toUTCString()}o&&(r+="; domain="+o+";"),document.cookie=r},t.getCookie=function(t){for(var e=t+"=",n=document.cookie.split(";"),o=0;o0}):[]},this.getGeoVariant=function(){var t,e,n,r=null==(t=window.localStorage)?void 0:t.getItem(o);return r?{country:null==(e=r.trim().split(",")[0])?void 0:e.trim(),state:null==(n=r.trim().split(",")[1])?void 0:n.trim()}:null},this.isReadyForTracking=function(){var t,e,n,o=null==(n=null==(e=null==(t=window.OneTrust)?void 0:t.GetDomainData())?void 0:e.ConsentModel)?void 0:n.Name;return!!o&&("opt-in"!==o||window.OneTrust.IsAlertBoxClosedAndValid())},this.hasUserSelectedPreference=function(){return!!window.Optanon&&window.Optanon.IsAlertBoxClosedAndValid()},this.params=t,this.loaded=!1,this.params.onConsentChanged=this.params.onConsentChanged||function(){}}return r.prototype.load=function(){var e=this;return new Promise(function(n,o){if(!0===window.isConsentLibraryLoaded)return console.debug("[ConsentLibrary] Onetrust load called multiple times. Onetrust is already loaded"),o(Error("Onetrust already loaded"));if(!0===window.isConsentLibraryLoading)return console.debug("[ConsentLibrary] Onetrust load called multiple times. It's being loaded."),o(Error("Onetrust is already being loaded"));window.isConsentLibraryLoading=!0,e.loadGeoVariant(),e.createOptanonWrapper();var r={src:"https://cdn.cookielaw.org/scripttemplates/otSDKStub.js",attributes:[{name:"data-domain-script",value:e.params.id},{name:"data-document-language",value:"true"}]};t.loadScript(r).then(function(){window.stckConsentLibrary=e,n()}).catch(function(t){o(t)}).finally(function(){window.isConsentLibraryLoading=!1})})},r.prototype.isGDPR=function(){var t=this.getProvider().getGeolocationData();return e.indexOf(t.country.toUpperCase())>=0},r.prototype.isCCPA=function(){var t=this.getProvider().getGeolocationData();return"US"===t.country.toUpperCase()&&"CA"===t.state.toUpperCase()},r.togglePreferenceDisplay=function(){return!(!window.OneTrust||!Object.prototype.hasOwnProperty.call(window.OneTrust,"ToggleInfoDisplay"))&&(window.OneTrust.ToggleInfoDisplay(),!0)},r.prototype.getSegmentAcceptedCategories=function(){var t=this.getOneTrustAcceptedCategories(),e=[];return t.forEach(function(t){e.push.apply(e,n[t])}),e},r.prototype.getAcceptedCategories=function(){return{provider:this.getOneTrustAcceptedCategories(),segment:this.getSegmentAcceptedCategories()}},r.prototype.getProvider=function(){return this.provider},r.setGeoVariant=function(t,e){var n;null==(n=window.localStorage)||n.setItem(o,t+","+e)},r.clearGeoVariant=function(){var t;null==(t=window.localStorage)||t.removeItem(o)},r}()}}]); //# sourceMappingURL=7009.a1e648150b2c0672.js.map