}function g(e,t){function n(){a=null,e.call(e,new p("The call took longer than you wanted!"))}function r(){a&&(clearTimeout(a),e.apply(e,arguments))}if(void 0===t)return e;var a=setTimeout(n,t);return r}function m(){if(window.__tcfapi)return window.__tcfapi;var e=window;if(e!==window.top){for(var t;!t;){e=e.parent;try{e.frames.__tcfapiLocator&&(t=e)}catch(e){}if(e===window.top)break}if(t){var n={};return window.__tcfapi=function(e,r,a,i){ var o=Math.random()+"",s={__tcfapiCall:{command:e,parameter:i,version:r,callId:o}};n[o]=a,t.postMessage(s,"*")},window.addEventListener("message",(function(e){var t=e.data;if("string"==typeof t)try{t=JSON.parse(e.data)}catch(e){}if(t.__tcfapiReturn){var r=t.__tcfapiReturn;"function"==typeof n[r.callId]&&(n[r.callId](r.returnValue,r.success),delete n[r.callId])}}),!1),window.__tcfapi}fe.error("__tcfapi not found")}else fe.error("__tcfapi not found")}function v(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r=!0===e.vendor.consents[t],a=n.every((function(t){return!0===e.purpose.consents[t]}));return r&&a}function h(){var e=this;e.name="iabPlugin",e.version="0.0.2";var t,n=se(),r={transparencyAndConsentData:null},a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return r[e]=t};e.fetchConsentData=function(e){var t=g(e.callback,e.timeout);i({callback:t})},e.isApproved=function(e){var t=e.callback,n=e.category,a=e.timeout;if(r.transparencyAndConsentData)return t(null,v(r.transparencyAndConsentData,re[n],ae[n]));var o=g((function(e,r){t(e,v(r,re[n],ae[n]))}),a);i({category:n,callback:o})},e.onRegister=function(n){t=n;var r=Object.keys(re),a=function(e,t){!e&&t&&(r.forEach((function(e){var r=v(t,re[e],ae[e]);n[r?"approve":"deny"](e,!0)})),n.complete())};e.fetchConsentData({callback:a})};var i=function(e){var i=e.callback;if(r.transparencyAndConsentData)return i(null,r.transparencyAndConsentData);n.add("FETCH_CONSENT_DATA",i),o((function(e,i){if(i){var o=ye(e),s=t.getMemoizedContent("iabConsentHash"),c=pe(o.tcString).toString(32);o.consentString=e.tcString,o.hasConsentChangedSinceLastCmpPull=s!==c,a("transparencyAndConsentData",o),t.memoizeContent({iabConsentHash:c})}n.execute("FETCH_CONSENT_DATA",[null,r.transparencyAndConsentData])}))},o=function(e){var t=De(re),n=m();"function"==typeof n&&n("getTCData",2,e,t)}}var b="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};Object.assign=Object.assign||function(e){for(var t,n,r=1;r=0||t.indexOf("Trident/")>=0&&t.indexOf("Windows NT 6")>=0};n.getIeVersion=function(){return document.documentMode?document.documentMode:r()?7:null},n.encodeAndBuildRequest=function(e,t){return e.map(encodeURIComponent).join(t)},n.isObject=function(t){return null!==t&&"object"===e(t)&&!1===Array.isArray(t)},n.defineGlobalNamespace=function(){return window.adobe=n.isObject(window.adobe)?window.adobe:{},window.adobe},n.pluck=function(e,t){return t.reduce((function(t,n){return e[n]&&(t[n]=e[n]),t}),Object.create(null))},n.parseOptOut=function(e,t,n){t||(t=n,e.d_optout&&e.d_optout instanceof Array&&(t=e.d_optout.join(",")));var r=parseInt(e.d_ottl,10);return isNaN(r)&&(r=7200),{optOut:t,d_ottl:r}},n.normalizeBoolean=function(e){var t=e;return"true"===e?t=!0:"false"===e&&(t=!1),t}})),x=(E.isObjectEmpty,E.isValueEmpty,E.getIeVersion,E.encodeAndBuildRequest,E.isObject,E.defineGlobalNamespace,E.pluck,E.parseOptOut,E.normalizeBoolean,n),j=w.MESSAGES,A={0:"prefix",1:"orgID",2:"state"},O=function(e,t){this.parse=function(e){try{var t={};return e.data.split("|").forEach((function(e,n){void 0!==e&&(t[A[n]]=2!==n?e:JSON.parse(e))})),t}catch(e){}},this.isInvalid=function(n){var r=this.parse(n);if(!r||Object.keys(r).length<2)return!0;var a=e!==r.orgID,i=!t||n.origin!==t,o=-1===Object.keys(j).indexOf(r.prefix);return a||i||o},this.send=function(n,r,a){var i=r+"|"+e;a&&a===Object(a)&&(i+="|"+JSON.stringify(a));try{n.postMessage(i,t)}catch(e){}}},L=w.MESSAGES,N=function(e,t,n,r){function a(e){Object.assign(f,e)}function i(e){Object.assign(f.state,e),Object.assign(f.state.ALLFIELDS,e),f.callbackRegistry.executeAll(f.state)}function o(e){if(!v.isInvalid(e)){m=!1;var t=v.parse(e);f.setStateAndPublish(t.state)}}function s(e){!m&&g&&(m=!0,v.send(r,e))}function c(){a(new S(n._generateID)),f.getMarketingCloudVisitorID(),f.callbackRegistry.executeAll(f.state,!0),b.removeEventListener("message",l)}function l(e){if(!v.isInvalid(e)){var t=v.parse(e);m=!1,b.clearTimeout(f._handshakeTimeout),b.removeEventListener("message",l),a(new T(f)),b.addEventListener("message",o),f.setStateAndPublish(t.state),f.callbackRegistry.hasCallbacks()&&s(L.GETSTATE)}}function u(){g&&postMessage?(b.addEventListener("message",l),s(L.HANDSHAKE),f._handshakeTimeout=setTimeout(c,250)):c()}function d(){b.s_c_in||(b.s_c_il=[],b.s_c_in=0),f._c="Visitor",f._il=b.s_c_il,f._in=b.s_c_in,f._il[f._in]=f,b.s_c_in++}function p(){function e(e){0!==e.indexOf("_")&&"function"==typeof n[e]&&(f[e]=function(){})}Object.keys(n).forEach(e),f.getSupplementalDataID=n.getSupplementalDataID,f.isAllowed=function(){return!0}}var f=this,g=t.whitelistParentDomain;f.state={ALLFIELDS:{}},f.version=n.version,f.marketingCloudOrgID=e,f.cookieDomain=n.cookieDomain||"",f._instanceType="child";var m=!1,v=new O(e,g);f.callbackRegistry=x(),f.init=function(){d(),p(),a(new D(f)),u()},f.findField=function(e,t){if(void 0!==f.state[e])return t(f.state[e]),f.state[e]},f.messageParent=s,f.setStateAndPublish=i},M=w.MESSAGES,R=w.ALL_APIS,F=w.ASYNC_API_MAP,U=w.FIELDGROUP_TO_FIELD,B=function(e,t){function n(){var t={};return Object.keys(R).forEach((function(n){var r=R[n],a=e[r]();E.isValueEmpty(a)||(t[n]=a)})),t}function r(){var t=[];return e._loading&&Object.keys(e._loading).forEach((function(n){if(e._loading[n]){var r=U[n];t.push(r)}})),t.length?t:null}function a(t){return function n(){var a=r();if(a){var i=F[a[0]];e[i](n,!0)}else t()}}function i(e,r){var a=n();t.send(e,r,a)}function o(e){c(e),i(e,M.HANDSHAKE)}function s(e){a((function(){i(e,M.PARENTSTATE)}))()}function c(n){function r(r){a.call(e,r),t.send(n,M.PARENTSTATE,{CUSTOMERIDS:e.getCustomerIDs()})}var a=e.setCustomerIDs;e.setCustomerIDs=r}return function(e){t.isInvalid(e)||(t.parse(e).prefix===M.HANDSHAKE?o:s)(e.source)}},H=function(e,t){function n(e){return function(n){r[e]=n,++a===i&&t(r)}}var r={},a=0,i=Object.keys(e).length;Object.keys(e).forEach((function(t){var r=e[t];if(r.fn){var a=r.args||[];a.unshift(n(t)),r.fn.apply(r.context||null,a)}}))},q={get:function(e){e=encodeURIComponent(e);var t=(";"+document.cookie).split(" ").join(";"),n=t.indexOf(";"+e+"="),r=n<0?n:t.indexOf(";",n+1);return n<0?"":decodeURIComponent(t.substring(n+2+e.length,r<0?t.length:r))},set:function(e,t,n){var a=r(n,"cookieLifetime"),i=r(n,"expires"),o=r(n,"domain"),s=r(n,"secure"),c=r(n,"sameSite"),l=s?"Secure":"",u=c?"SameSite="+c+";":"";if(i&&"SESSION"!==a&&"NONE"!==a){var d=""!==t?parseInt(a||0,10):-60;if(d)(i=new Date).setTime(i.getTime()+1e3*d);else if(1===i){var p=(i=new Date).getYear();i.setYear(p+2+(p<1900?1900:0))}}else i=0;return e&&"NONE"!==a?(document.cookie=encodeURIComponent(e)+"="+encodeURIComponent(t)+"; path=/;"+(i?" expires="+i.toGMTString()+";":"")+(o?" domain="+o+";":"")+u+l,this.get(e)===t):0},remove:function(e,t){var n=r(t,"domain");n=n?" domain="+n+";":"";var a=r(t,"secure"),i=r(t,"sameSite"),o=a?"Secure":"",s=i?"SameSite="+i+";":"";document.cookie=encodeURIComponent(e)+"=; Path=/; Expires=Thu, 01 Jan 1970 00:00:01 GMT;"+n+s+o}},W=function(e,t){!e&&b.location&&(e=b.location.hostname);var n,r=e.split("."),a=t||{};for(n=r.length-2;n>=0;n--)if(a.domain=r.slice(n).join("."),q.set("test","cookie",a))return q.remove("test",a),a.domain;return""},G={compare:s,isLessThan:function(e,t){return s(e,t)<0},areVersionsDifferent:function(e,t){return 0!==s(e,t)},isGreaterThan:function(e,t){return s(e,t)>0},isEqual:function(e,t){return 0===s(e,t)}},z=!!b.postMessage,Q={postMessage:function(e,t,n){var r=1;t&&(z?n.postMessage(e,t.replace(/([^:]+:\/\/[^\/]+).*/,"$1")):t&&(n.location=t.replace(/#.*$/,"")+"#"+ +new Date+r+++"&"+e))},receiveMessage:function(e,t){var n;try{z&&(e&&(n=function(n){if("string"==typeof t&&n.origin!==t||"[object Function]"===Object.prototype.toString.call(t)&&!1===t(n.origin))return!1;e(n)}),b.addEventListener?b[e?"addEventListener":"removeEventListener"]("message",n):b[e?"attachEvent":"detachEvent"]("onmessage",n))}catch(e){}}},$=function(e){var t,n,r="0123456789",a="",i="",o=8,s=10,c=10;if(1==e){for(r+="ABCDEF",t=0;16>t;t++)n=Math.floor(Math.random()*o),a+=r.substring(n,n+1),n=Math.floor(Math.random()*o),i+=r.substring(n,n+1),o=16;return a+"-"+i}for(t=0;19>t;t++)n=Math.floor(Math.random()*s),a+=r.substring(n,n+1),0===t&&9==n?s=3:((1==t||2==t)&&10!=s&&2>n||2n||20&&(t=!1)),{corsType:e,corsCookiesEnabled:t}}(),getCORSInstance:function(){return"none"===this.corsMetadata.corsType?null:new b[this.corsMetadata.corsType]},fireCORS:function(t,n){function r(e){var n;try{if((n=JSON.parse(e))!==Object(n))return void a.handleCORSError(t,null,"Response is not JSON")}catch(e){return void a.handleCORSError(t,e,"Error parsing response as JSON")}try{for(var r=t.callback,i=b,o=0;o=i&&(e.splice(a,1),a--);return{dataPresent:o,dataValid:s}},manageSyncsSize:function(e){if(e.join("*").length>this.MAX_SYNCS_LENGTH)for(e.sort((function(e,t){return parseInt(e.split("-")[1],10)-parseInt(t.split("-")[1],10)}));e.join("*").length>this.MAX_SYNCS_LENGTH;)e.shift()},fireSync:function(t,n,r,a,i,o){var s=this;if(t){if("img"===n.tag){var c,l,u,d,p=n.url,f=e.loadSSL?"https:":"http:";for(c=0,l=p.length;cJ.DAYS_BETWEEN_SYNC_ID_CALLS},attachIframeASAP:function(){function e(){t.startedAttachingIframe||(n.body?t.attachIframe():setTimeout(e,30))}var t=this;e()}}},X={audienceManagerServer:{},audienceManagerServerSecure:{},cookieDomain:{},cookieLifetime:{},cookieName:{},doesOptInApply:{type:"boolean"},disableThirdPartyCalls:{type:"boolean"},discardTrackingServerECID:{type:"boolean"},idSyncAfterIDCallResult:{},idSyncAttachIframeOnWindowLoad:{type:"boolean"},idSyncContainerID:{},idSyncDisable3rdPartySyncing:{type:"boolean"},disableThirdPartyCookies:{type:"boolean"},idSyncDisableSyncs:{type:"boolean"},disableIdSyncs:{type:"boolean"},idSyncIDCallResult:{},idSyncSSLUseAkamai:{type:"boolean"},isCoopSafe:{type:"boolean"},isIabContext:{type:"boolean"},isOptInStorageEnabled:{type:"boolean"},loadSSL:{type:"boolean"},loadTimeout:{},marketingCloudServer:{},marketingCloudServerSecure:{},optInCookieDomain:{},optInStorageExpiry:{},overwriteCrossDomainMCIDAndAID:{type:"boolean"},preOptInApprovals:{},previousPermissions:{},resetBeforeVersion:{},sdidParamExpiry:{},serverState:{},sessionCookieName:{},secureCookie:{type:"boolean"},sameSiteCookie:{},takeTimeoutMetrics:{},trackingServer:{},trackingServerSecure:{},useLocalStorage:{type:"boolean"},whitelistIframeDomains:{},whitelistParentDomain:{}},Z={getConfigNames:function(){return Object.keys(X)},getConfigs:function(){return X},normalizeConfig:function(e,t){return X[e]&&"boolean"===X[e].type?"function"!=typeof t?t:t():t}},ee=function(e){var t={};return e.on=function(e,n,r){if(!n||"function"!=typeof n)throw new Error("[ON] Callback should be a function.");t.hasOwnProperty(e)||(t[e]=[]);var a=t[e].push({callback:n,context:r})-1;return function(){t[e].splice(a,1),t[e].length||delete t[e]}},e.off=function(e,n){t.hasOwnProperty(e)&&(t[e]=t[e].filter((function(e){if(e.callback!==n)return e})))},e.publish=function(e){if(t.hasOwnProperty(e)){var n=[].slice.call(arguments,1);t[e].slice(0).forEach((function(e){e.callback.apply(e.context,n)}))}},e.publish},te={PENDING:"pending",CHANGED:"changed",COMPLETE:"complete"},ne={AAM:"aam",ADCLOUD:"adcloud",ANALYTICS:"aa",CAMPAIGN:"campaign",ECID:"ecid",LIVEFYRE:"livefyre",TARGET:"target",MEDIA_ANALYTICS:"mediaaa"},re=(t(y={},ne.AAM,565),t(y,ne.ECID,565),y),ae=(t(_={},ne.AAM,[1,10]),t(_,ne.ECID,[1,10]),_),ie=["videoaa","iabConsentHash"],oe=function(e){return Object.keys(e).map((function(t){return e[t]}))}(ne),se=function(){var e={};return e.callbacks=Object.create(null),e.add=function(t,n){if(!l(n))throw new Error("[callbackRegistryFactory] Make sure callback is a function or an array of functions.");e.callbacks[t]=e.callbacks[t]||[];var r=e.callbacks[t].push(n)-1;return function(){e.callbacks[t].splice(r,1)}},e.execute=function(t,n){if(e.callbacks[t]){n=(n=void 0===n?[]:n)instanceof Array?n:[n];try{for(;e.callbacks[t].length;){var r=e.callbacks[t].shift();"function"==typeof r?r.apply(null,n):r instanceof Array&&r[1].apply(r[0],n)}delete e.callbacks[t]}catch(e){}}},e.executeAll=function(t,n){(n||t&&!c(t))&&Object.keys(e.callbacks).forEach((function(n){var r=void 0!==t[n]?t[n]:"";e.execute(n,r)}),e)},e.hasCallbacks=function(){return Boolean(Object.keys(e.callbacks).length)},e},ce=function(){},le=function(e){var t=window.console;return!!t&&"function"==typeof t[e]},ue=function(e,t,n){return n()?function(){if(le(e)){for(var n=arguments.length,r=new Array(n),a=0;a>>1:n>>>1;e.push(n)}return function(t,n){t=unescape(encodeURIComponent(t)),n||(n=0),n^=-1;for(var r=0;r>>8^e[a]}return(n^=-1)>>>0}}(),fe=new de("[ADOBE OPT-IN]"),ge=function(t,n){return e(t)===n},me=function(e,t){return e instanceof Array?e:ge(e,"string")?[e]:t||[]},ve=function(e){var t=Object.keys(e);return!!t.length&&t.every((function(t){return!0===e[t]}))},he=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return!(!e||_e(e))&&me(e).every((function(e){return oe.indexOf(e)>-1||t&&ie.indexOf(e)>-1}))},be=function(e,t){return e.reduce((function(e,n){return e[n]=t,e}),{})},ye=function(e){return JSON.parse(JSON.stringify(e))},_e=function(e){return"[object Array]"===Object.prototype.toString.call(e)&&!e.length},we=function(e){if(Ce(e))return e;try{return JSON.parse(e)}catch(e){return{}}},Pe=function(e){return void 0===e||(Ce(e)?he(Object.keys(e),!0):Se(e))},Se=function(e){try{var t=JSON.parse(e);return!!e&&ge(e,"string")&&he(Object.keys(t),!0)}catch(e){return!1}},Ce=function(e){return null!==e&&ge(e,"object")&&!1===Array.isArray(e)},Ve=function(){},ke=function(e){return ge(e,"function")?e():e},Te=function(e,t){Pe(e)||fe.error("".concat(t))},Ie=function(e){return Object.keys(e).map((function(t){return e[t]}))},De=function(e){return Ie(e).filter((function(e,t,n){return n.indexOf(e)===t}))},Ee=function(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.command,r=t.params,a=void 0===r?{}:r,i=t.callback,o=void 0===i?Ve:i;if(!n||-1===n.indexOf("."))throw new Error("[OptIn.execute] Please provide a valid command.");try{var s=n.split("."),c=e[s[0]],l=s[1];if(!c||"function"!=typeof c[l])throw new Error("Make sure the plugin and API name exist.");var u=Object.assign(a,{callback:o});c[l].call(c,u)}catch(e){fe.error("[execute] Something went wrong: "+e.message)}}};p.prototype=Object.create(Error.prototype),p.prototype.constructor=p;var xe="fetchPermissions",je="[OptIn#registerPlugin] Plugin is invalid.";f.Categories=ne,f.TimeoutError=p;var Ae=Object.freeze({OptIn:f,IabPlugin:h}),Oe=function(e,t){e.publishDestinations=function(n){var r=arguments[1],a=arguments[2];try{a="function"==typeof a?a:n.callback}catch(e){a=function(){}}var i=t;if(i.readyToAttachIframePreliminary()){if("string"==typeof n){if(!n.length)return void a({error:"subdomain is not a populated string."});if(!(r instanceof Array&&r.length))return void a({error:"messages is not a populated array."});var o=!1;if(r.forEach((function(e){"string"==typeof e&&e.length&&(i.addMessage(e),o=!0)})),!o)return void a({error:"None of the messages are populated strings."})}else{if(!E.isObject(n))return void a({error:"Invalid parameters passed."});var s=n;if("string"!=typeof(n=s.subdomain)||!n.length)return void a({error:"config.subdomain is not a populated string."});var c=s.urlDestinations;if(!(c instanceof Array&&c.length))return void a({error:"config.urlDestinations is not a populated array."});var l=[];c.forEach((function(e){E.isObject(e)&&(e.hideReferrer?e.message&&i.addMessage(e.message):l.push(e))})),function e(){l.length&&setTimeout((function(){var t=new Image,n=l.shift();t.src=n.url,i.onPageDestinationsFired.push(n),e()}),100)}()}i.iframe?(a({message:"The destination publishing iframe is already attached and loaded."}),i.requestToProcess()):!e.subdomain&&e._getField("MCMID")?(i.subdomain=n,i.doAttachIframe=!0,i.url=i.getUrl(),i.readyToAttachIframe()?(i.iframeLoadedCallbacks.push((function(e){a({message:"Attempted to attach and load the destination publishing iframe through this API call. Result: "+(e.message||"no result")})})),i.attachIframe()):a({error:"Encountered a problem in attempting to attach and load the destination publishing iframe through this API call."})):i.iframeLoadedCallbacks.push((function(e){a({message:"Attempted to attach and load the destination publishing iframe through normal Visitor API processing. Result: "+(e.message||"no result")})}))}else a({error:"The destination publishing iframe is disabled in the Visitor library."})}},Le=function e(t){function n(e,t){return e>>>t|e<<32-t}for(var r,a,i=Math.pow,o=i(2,32),s="",c=[],l=8*t.length,u=e.h=e.h||[],d=e.k=e.k||[],p=d.length,f={},g=2;p<64;g++)if(!f[g]){for(r=0;r<313;r+=g)f[r]=g;u[p]=i(g,.5)*o|0,d[p++]=i(g,1/3)*o|0}for(t+="\x80";t.length%64-56;)t+="\0";for(r=0;r>8)return;c[r>>2]|=a<<(3-r)%4*8}for(c[c.length]=l/o|0,c[c.length]=l,a=0;a>>3)+m[r-7]+(n(b,17)^n(b,19)^b>>>10)|0);(u=[w+((n(y,2)^n(y,13)^n(y,22))+(y&u[1]^y&u[2]^u[1]&u[2]))|0].concat(u))[4]=u[4]+w|0}for(r=0;r<8;r++)u[r]=u[r]+v[r]|0}for(r=0;r<8;r++)for(a=3;a+1;a--){var P=u[r]>>8*a&255;s+=(P<16?0:"")+P.toString(16)}return s},Ne=function(e,t){return"SHA-256"!==t&&"SHA256"!==t&&"sha256"!==t&&"sha-256"!==t||(e=Le(e)),e},Me=function(e){return String(e).trim().toLowerCase()},Re=Ae.OptIn;E.defineGlobalNamespace(),window.adobe.OptInCategories=Re.Categories;var Fe=function(t,n,r){function a(){y._customerIDsHashChanged=!1}function i(e){var t=e;return function(e){var n=e||k.location.href;try{var r=y._extractParamFromUri(n,t);if(r)return te.parsePipeDelimetedKeyValues(r)}catch(e){}}}function o(e){function t(e,t,n){e&&e.match(J.VALID_VISITOR_ID_REGEX)&&(n===j&&(V=!0),t(e))}t(e[j],y.setMarketingCloudVisitorID,j),y._setFieldExpire(R,-1),t(e[N],y.setAnalyticsVisitorID)}function s(e){e=e||{},y._supplementalDataIDCurrent=e.supplementalDataIDCurrent||"",y._supplementalDataIDCurrentConsumed=e.supplementalDataIDCurrentConsumed||{},y._supplementalDataIDLast=e.supplementalDataIDLast||"",y._supplementalDataIDLastConsumed=e.supplementalDataIDLastConsumed||{}}function c(e){function t(e,t,n){return(n=n?n+="|":n)+(e+"=")+encodeURIComponent(t)}function n(e,n){var r=n[0],a=n[1];return null!=a&&a!==F&&(e=t(r,a,e)),e}return function(e){return(e=e?e+="|":e)+"TS="+te.getTimestampInSeconds()}(e.reduce(n,""))}function l(e){var t=e.minutesToLive,n="";return(y.idSyncDisableSyncs||y.disableIdSyncs)&&(n=n||"Error: id syncs have been disabled"),"string"==typeof e.dpid&&e.dpid.length||(n=n||"Error: config.dpid is empty"),"string"==typeof e.url&&e.url.length||(n=n||"Error: config.url is empty"),void 0===t?t=20160:(t=parseInt(t,10),(isNaN(t)||t<=0)&&(n=n||"Error: config.minutesToLive needs to be a positive number")),{error:n,ttl:t}}function u(){return!(!y.configs.doesOptInApply||_.optIn.isComplete&&d())}function d(){return y.configs.doesOptInApply&&y.configs.isIabContext?_.optIn.isApproved(_.optIn.Categories.ECID)&&C:_.optIn.isApproved(_.optIn.Categories.ECID)}function p(){[["getMarketingCloudVisitorID"],["setCustomerIDs",void 0],["syncIdentity",void 0],["getAnalyticsVisitorID"],["getAudienceManagerLocationHint"],["getLocationHint"],["getAudienceManagerBlob"]].forEach((function(e){var t=e[0],n=2===e.length?e[1]:"",r=y[t];y[t]=function(e){return d()&&y.isAllowed()?r.apply(y,arguments):("function"==typeof e&&y._callCallback(e,[n]),n)}}))}function f(){var e=y._getAudienceManagerURLData(),t=e.url;return y._loadData(x,t,null,e)}function g(e,t){if(C=!0,e)throw new Error("[IAB plugin] : "+e);t&&t.gdprApplies&&(P=t.consentString,S=t.hasConsentChangedSinceLastCmpPull?1:0),f(),h()}function m(e,t){if(C=!0,e)throw new Error("[IAB plugin] : "+e);t.gdprApplies&&(P=t.consentString,S=t.hasConsentChangedSinceLastCmpPull?1:0),y.init(),h()}function v(){_.optIn.isComplete&&(_.optIn.isApproved(_.optIn.Categories.ECID)?y.configs.isIabContext?_.optIn.execute({command:"iabPlugin.fetchConsentData",callback:m}):(y.init(),h()):y.configs.isIabContext?_.optIn.execute({command:"iabPlugin.fetchConsentData",callback:g}):(p(),h()))}function h(){_.optIn.off("complete",v)}if(!r||r.split("").reverse().join("")!==t)throw new Error("Please use `Visitor.getInstance` to instantiate Visitor.");var y=this,_=window.adobe,P="",S=0