!function(){"use strict";var n="__lytics__jstag__",I=window,d=I.document;function s(e,t,n){var o=-1,i=e.length;for(2===arguments.length&&i&&(n=e[++o]);++o>>24,n[1]=t>>>16&255,n[2]=t>>>8&255,n[3]=255&t,n[4]=(t=parseInt(e.slice(9,13),16))>>>8,n[5]=255&t,n[6]=(t=parseInt(e.slice(14,18),16))>>>8,n[7]=255&t,n[8]=(t=parseInt(e.slice(19,23),16))>>>8,n[9]=255&t,n[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,n[11]=t/4294967296&255,n[12]=t>>>24&255,n[13]=t>>>16&255,n[14]=t>>>8&255,n[15]=255&t,n}(t)),16!==t.length)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");var i=new Uint8Array(16+e.length);if(i.set(t),i.set(e,t.length),(i=c(i))[6]=15&i[6]|r,i[8]=63&i[8]|128,n){o=o||0;for(var a=0;a<16;++a)n[o+a]=i[a];return n}return it(i)}try{t.name=e}catch(e){}return t.DNS="6ba7b810-9dad-11d1-80b4-00c04fd430c8",t.URL="6ba7b811-9dad-11d1-80b4-00c04fd430c8",t}function rt(e){return 14+(e+64>>>9<<4)+1}function ct(e,t){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}function st(e,t,n,o,i,a){return ct(function(e,t){return e<>>32-t}(ct(ct(t,e),ct(o,a)),i),n)}function lt(e,t,n,o,i,a,r){return st(t&n|~t&o,e,t,i,a,r)}function ut(e,t,n,o,i,a,r){return st(t&o|n&~o,e,t,i,a,r)}function dt(e,t,n,o,i,a,r){return st(t^n^o,e,t,i,a,r)}function ft(e,t,n,o,i,a,r){return st(n^(t|~o),e,t,i,a,r)}function pt(e,t,n){var o=(e=e||{}).random||(e.rng||function(){if(!Ke&&!(Ke="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Ke(Xe)})();if(o[6]=15&o[6]|64,o[8]=63&o[8]|128,t){n=n||0;for(var i=0;i<16;++i)t[n+i]=o[i];return t}return it(o)}function gt(e,t,n,o){switch(e){case 0:return t&n^~t&o;case 1:return t^n^o;case 2:return t&n^t&o^n&o;case 3:return t^n^o}}function ht(e,t){return e<>>32-t}function mt(r,c,s){r.ns("getid"),r.defaults({getid:{uuid:pt,useSimpleUid:!1,getter:void 0}}),r.expose({getid:function(e){t.getter?Promise.resolve(t.getter()).then(function(e){if(e)return e;throw new Error("getid getter returned no id")}).catch(function(e){throw r.carp("Getter failed! Could not get id."),e}).then(e):function(n){if(c.once("getid",function(e,t){return n(t)}),!u){u=!0;var t=z(function(e){u=!1,!e&&s.consent.disabled&&(e=l()),function(e){var t=c.getCookieValue();t&&t.length&&(c.changeId=t),c.setCookie(s.cookie,e)}(e),r.emit("getid",e)}),o=c.getCookieValue();if(o&&o.length){var i=function(e,t){var n,o=!1,i=e.once(t,function(e,t){o=!0,n=t});return function(){return i(),{fired:o,captured:n}}}(c,"cookies.cleared");F(function(){if(i().fired){var e=c.getCookieValue();e?t(e):a()}else t(o)})}else s.consent.disabled||!c.consentBlocked?a():(r.carp("no id, instance blocked"),u=!1,r.emit("getid",null))}function a(){s.loadid?function(t,n){var e=t.config,o=He(e,e.cid[0],"idpath")+"?assign=false";t.jsonp(o,function(e){return n.call(t,e)})}(c,t):F(function(){return t(l())})}}(e)}});var t=s.getid,e="crypto"in window&&null!=window.crypto&&"function"==typeof window.crypto.getRandomValues&&!t.useSimpleUid?t.uuid:A,l=function(){return y(e,A)},u=!1}at("v3",48,function(e){if("string"==typeof e){var t=unescape(encodeURIComponent(e));e=new Uint8Array(t.length);for(var n=0;n>5]>>>i%32&255,r=parseInt(o.charAt(a>>>4&15)+o.charAt(15&a),16);t.push(r)}return t}(function(e,t){e[t>>5]|=128<>5]|=(255&e[o/8])<>>0;b=y,y=v,v=ht(m,30)>>>0,m=h,h=E}n[0]=n[0]+h>>>0,n[1]=n[1]+m>>>0,n[2]=n[2]+v>>>0,n[3]=n[3]+y>>>0,n[4]=n[4]+b>>>0}return[n[0]>>24&255,n[0]>>16&255,n[0]>>8&255,255&n[0],n[1]>>24&255,n[1]>>16&255,n[1]>>8&255,255&n[1],n[2]>>24&255,n[2]>>16&255,n[2]>>8&255,255&n[2],n[3]>>24&255,n[3]>>16&255,n[3]>>8&255,255&n[3],n[4]>>24&255,n[4]>>16&255,n[4]>>8&255,255&n[4]]});var vt=function(){function t(e){a(this,t),this.data=e}return r(t,[{key:"getAt",value:function(e){return Ne(this.data,e)}},{key:"toLegacyStyle",value:function(){return this.data.user}}],[{key:"fromPayload",value:function(e){return new t(e.data)}},{key:"fromLegacyPayload",value:function(e){return new t(function(e){return{user:e}}(e.data))}}]),t}(),yt=Z(["all"]);function bt(n,e,o){n.ns("segments"),n.defaults({segments:{disabled:!1,storageKey:"lytics_segments",storage:ue(localStorage),defaultSegments:ue(yt)}}),n.mustEnable();var i=void 0;n.pushIntegration({success:function(e){if(null==(i=e.getSegments()))return n.carp("Entity has no segments! Falling back to the default segments!"),void(i=o.segments.defaultSegments);var t=y(function(){return JSON.stringify(i)});null!=t&&o.segments.storage.setItem(o.segments.storageKey,t)}}),n.expose({loadSegments:function(t){e.loadEntity(function(e){t(e.getSegments())})},getSegments:function(){return y(function(){if(null==i){var e=o.segments.storage.getItem(o.segments.storageKey);if(null==e)throw new Error("Segments not loaded! Failing over to default segments");i=JSON.parse(e)}return i},function(e){return n.carp(e),i=o.segments.defaultSegments})}}),e.once("lifecycle.teardown.requested",function(){n.emit("segments.storageCleared"),localStorage.removeItem(o.segments.storageKey)}),vt.prototype.getSegments=function(){var e=this.data;return null==e||null==e.user?o.segments.defaultSegments:g(this.data.user.segments,function(e){return"not_found"!==e||(n.carp("`not_found` segment detected and filtered!"),!1)})}}function wt(t,i,s){var o;t.ns("entity"),t.defaults({entity:{format:"default",endpoint:void 0,table:"user",byFieldKey:s.byFieldKey,byFieldValue:void 0,preload:!1}});var a=!1;function r(e){e||(console.warn("no entity found! Failing over using the default entity!"),e={data:s.segments?{segments:s.segments.defaultSegments}:{}}),o=vt[l()?"fromLegacyPayload":"fromPayload"](e),a=!1,t.emit("entity.loaded",o)}function c(e){r(y(function(){return{data:JSON.parse(e)}}))}function l(){return"legacy"===s.entity.format}function u(e,t,n){e=function(e){var t=e.toUpperCase();if(!re(["GET","POST"],e))throw new Error("The method ".concat(e," is not supported!"));return t}(e);var o=s.entity.byFieldKey,i=s.entity.byFieldValue||n,a=function(e,t,n,o){var i=[];return l()?(i.push(Ye(e.url)),i.push("api/me"),"GET"!==t&&i.push("iframe"),i.push(e.cid[0]),i.push(n),i.push(o)):(i.push(Ye(e.url)),i.push("api/personalize"),i.push(e.cid[0]),i.push(e.entity.table),i.push(n),i.push(o),"GET"!==t&&i.push("iframe")),i}(s,e,o,i),r=!1,c=t&&y(function(){var e=encodeURIComponent(JSON.stringify(v(_e({},o,i),t)));return r=!0,e});return ke(s.entity.endpoint?s.entity.endpoint:Ye(a.join("/")),g(["segments=true",null!=s.stream&&"default"!==s.stream&&"stream=".concat(s.stream),null!=s.entity.fields&&"fields=".concat(s.entity.fields.join(",")),r&&"mergestate=true",r&&"GET"===e&&"state=".concat(c),"ts=".concat(We())],Boolean).join("&"))}t.mustConsent({loadEntity:function(n,o){if(1===arguments.length&&"function"==typeof n){var e=[n,o];o=e[0],n=e[1]}null!=o&&i.once("entity.loaded",function(e,t){return o(t)}),a?t.carp("Entity is already in flight! Not sending another request!"):(a=!0,t.emit("entity.requested"),i.pull(function(e){i.unloadEntity(),null!=e&&(n=v({},n,e)),n=v({},n),i.getid(function(e){Ge(n,e,i);var t=u("GET",n,e);t.length<2e3?function(e,t){i.jsonp(e,t)}(t,r):function(e,t,n){i.iframe({url:u("POST",e,n),data:e},t)}(n,c,e)})}))},entityReady:function(n){null!=o?F(n,o):i.once("entity.loaded",function(e,t){return n(t)})},getEntity:function(){return null==o&&t.carp("entity not loaded!"),o},unloadEntity:function(){var e=null!=o;o=void 0,e&&t.emit("entity.unloaded")}}),s.entity.preload&&i.once("lifecycle.setup.done",function(){i.loadEntity()}),i.once("lifecycle.teardown.requested",function(){i.unloadEntity()})}function kt(){}function Et(_,S,T){_.ns("poll"),_.defaults({poll:{retries:600,interval:100}}),_.hold({poll:function(e){_.emit("poll.started",e);var t=e.property,i=void 0===t?function(){throw new Error("property must be defined!")}():t,n=e.receiver,o=void 0===n?I:n,a=e.predicate,r=void 0===a?Boolean:a,c=e.retries,s=void 0===c?T.poll.retries:c,l=e.interval,u=void 0===l?T.poll.interval:l,d=e.success,f=void 0===d?kt:d,p=e.failure,g=void 0===p?kt:p,h=Je(s,function(){w(g,"poll.failed",new Error("Maximum retries exceeded for property `".concat(String(i),"`: ").concat(s,"!")),h.times)});if(!y()){var m=setInterval(function(){y()?b():h()},u),v=z(E);return S.once("lifecycle.teardown.requested",v),v}function y(){return r(k(),i,o)}function b(){w(f,"poll.succeeded",k(),h.times)}function w(e,t,n,o){E(),F(function(){e(),_.emit(t,{tries:o,property:i,completion:n})})}function k(){return"symbol"===Y(i)?o[i]:Ne(o,i.split("."))}function E(){clearInterval(m),_.emit("poll.stopped",e)}b()}}),_.expose({resetPolling:function(){_.emit("poll.reset")}})}var _t="liosetup";function St(f,o,p){var e,t;f.ns("lio"),f.defaults({lio:{global:_t,polling:(e={},_e(e,"lio.push",p.poll),_e(e,"lio.pull",{retries:0}),e),performPullAndSend:!0}});var g={},h=(_e(t={},"lio.pull",[]),_e(t,"lio.push",[]),t),i={};function a(t,n){return 1i&&(r.push(l),l={}),l[e]=o[e],t===a.length-1&&r.push(l)}),r}(o,c.facebook.ads.audiencePush.maxMessageLength),function(e){i(e)}),r.emit("facebook.ads.audiencePush.done",o)}else r.carp("No segments to send!");function i(e){t.push(["track",c.facebook.ads.audiencePush.eventName,e]),l++}})}})}function nn(e,t,n){e.ns("pathfora.install");var o=Ye(n.url);function i(){return n.pathfora.install.css.disabled?(e.carp("custom css installation disabled"),void r()):null==n.pathfora.install.css.src?(e.carp("custom css installation has invalid src"),void r()):void function(e,t,n){var o=document.createElement("link");o.rel="stylesheet",o.type="text/css",o.href=e,o.onload=t,o.onerror=n;var i=document.getElementsByTagName("link")[0],a=i&&i.parentNode||document.head||document.body,r=i||a.lastChild;null!=r?a.insertBefore(o,r):a.appendChild(o)}(n.pathfora.install.css.src,function(){n.pathfora.install.css.loaded=!0,e.emit(Rt.CSS_SUCCEEDED),r()},function(){e.carp("custom css installation failed"),r()})}function a(){n.pathfora.install.sdk.loaded=!0,e.emit(Rt.SDK_SUCCEEDED),i()}function r(){e.emit(Rt.SUCCEEDED),e.emit(Rt.DONE)}function c(){e.emit(Rt.DONE)}e.defaults({pathfora:{install:{global:"pathfora",disabled:!0,sdk:{disabled:!0,loaded:!1,lazy:!0,src:"".concat(o,"/static/pathfora.min.js")},css:{disabled:!0,loaded:!1,src:void 0}}}}),e.mustEnable(),t.once("pathfora.*.sdkNotDetected",function(){return n.pathfora.install.sdk.disabled?(e.carp("sdk installation disabled"),void c()):null!=window.pathfora?(e.carp("already installed"),void a()):null==n.pathfora.install.sdk.src?(e.carp("sdk installation has invalid src"),void c()):("https://c.lytics.io"!==o&&(window.PathforaCSS="".concat(o,"/static/pathfora.min.css")),void f(n.pathfora.install.sdk.src,function(){a()},function(){e.carp("sdk installation failed"),c()}))}),!1===n.pathfora.install.sdk.lazy&&e.poll({property:n.pathfora.install.global,retries:0,failure:function(){e.emit(Rt.SDK_NOT_DETECTED)}})}function on(o,e,i){function a(){var e=_(i.location),t={};return 0")}}}),n.mustEnable(),e.on("lio.push",function(){e.getid(function(e){var t=V("".concat(o.taboola.dmp.redirectUrl,"&_uid=").concat(e,"&account_id=").concat(o.cid[0]));n.pixel({src:"".concat(o.taboola.dmp.baseUrl,"/").concat(o.taboola.dmp.partnerId,"/1/cm?redirect=").concat(t),success:function(){n.emit("taboola.dmp.succeeded")},failure:function(){n.carp("Failed loading pixel!"),n.emit("taboola.dmp.failed")}})})})}function sn(t,e,n){if(t.ns("thetradedesk.dsp"),t.defaults({thetradedesk:{dsp:{disabled:!0,baseUrl:"https://match.adsrvr.org/track/cmf/generic",partnerId:void 0}}}),t.mustEnable(),null==n.thetradedesk.dsp.partnerId)return t.carp('"partnerId" needs to be passed into config!'),void t.emit("thetradedesk.dsp.failed");e.on("lio.push",function(){e.getid(function(e){t.pixel({src:"".concat(n.thetradedesk.dsp.baseUrl,"/?ttd_pid=").concat(n.thetradedesk.dsp.partnerId,"&ttd_puid=").concat(e,"&ttd_puid=").concat(n.cid[0],"&ttd_tpi=1&gpdr=0&domain=").concat(location.hostname.replace(/^www\./,"")),success:function(){t.emit("thetradedesk.dsp.succeeded")},failure:function(){t.carp("Failed loading pixel!"),t.emit("thetradedesk.dsp.failed")}})})})}function ln(e){return Number.isNaN(+e)?new Date(e):new Date(+e)}function un(n,o,i){n.ns("google.dv360"),n.defaults({google:{dv360:{disabled:!0,baseUrl:"https://cm.g.doubleclick.net/pixel",bidderAccountNid:"lytics",entityIdModifiedAtField:"user.dv360_id_ts",cookieTTL:6048e5,lyticsStream:"google_dv360"}}}),n.mustEnable(),null!=i.google.dv360.bidderAccountNid?o.getid(function(t){o.entityReady(function(e){+ln(e.getAt(i.google.dv360.entityIdModifiedAtField.split(".")))>Date.now()-i.google.dv360.cookieTTL?n.emit("google.dv360.skipped"):n.pixel({src:"".concat(i.google.dv360.baseUrl,"?google_cm&google_nid=").concat(i.google.dv360.bidderAccountNid,"&google_hm=").concat(btoa(t)),success:function(){o.send(i.google.dv360.lyticsStream),n.emit("google.dv360.succeeded")},failure:function(){n.carp("Failed loading pixel!"),n.emit("google.dv360.failed")}})})}):n.carp("Missing required config option: google.dv360.bidderAccountNid!")}function dn(n,e,o){n.ns("yahoo.datax"),n.defaults({yahoo:{datax:{disabled:!0,baseUrl:"https://ups.analytics.yahoo.com/ups/58702/cms",partnerId:"LYTICS",lyticsStream:"yahoo",entityIdModifiedAtField:"user.yahoo_id_ts",cookieTTL:12096e5,gdpr:!1,gdprConsent:void 0}}}),n.mustEnable(),null!=o.yahoo.datax.partnerId?e.getid(function(t){e.entityReady(function(e){+ln(e.getAt(o.yahoo.datax.entityIdModifiedAtField.split(".")))>Date.now()-o.yahoo.datax.cookieTTL?n.emit("yahoo.datax.skipped"):n.pixel({src:"".concat(o.yahoo.datax.baseUrl,"?partner_id=").concat(o.yahoo.datax.partnerId,"&account_id=").concat(o.cid[0],"&_uid=").concat(t).concat(o.yahoo.datax.gdpr?"gdpr=1&gdpr_consent=".concat(o.yahoo.datax.gdprConsent):""),success:function(){n.emit("yahoo.datax.succeeded")},failure:function(){n.carp("Failed loading pixel!"),n.emit("yahoo.datax.failed")}})})}):n.carp("Missing required config option: yahoo.datax.partnerId!")}function fn(n,e,o){n.ns("criteo.ads"),n.defaults({criteo:{ads:{disabled:!0,baseUrl:"https://gum.criteo.com/sync",partnerId:"595",redirectUrl:"".concat(Ye(o.url),"/c/provider/criteo?criteo_id=@USERID@")}}}),n.mustEnable(),e.on("lio.push",function(){e.getid(function(e){var t=V("".concat(o.criteo.ads.redirectUrl,"&_uid=").concat(e,"&account_id=").concat(o.cid[0]));n.pixel({src:"".concat(o.criteo.ads.baseUrl,"?c=").concat(o.criteo.ads.partnerId,"&r=1&u=").concat(t),success:function(){n.emit("criteo.ads.succeeded")},failure:function(){n.carp("Failed loading pixel!"),n.emit("criteo.ads.failed")}})})})}function pn(n,o,e){n.ns("onetrust.consent"),n.defaults({onetrust:{consent:{disabled:!0,accept:[],global:"OneTrust"}}}),n.mustEnable(),e.consent.disabled&&(e.consent.disabled=!1),o.on("consent.blocked",function(){n.emit("onetrust.consent.blocked")});var t=window[e.onetrust.consent.global];if(void 0!==t){var i=[].concat(e.onetrust.consent.accept);t.OnConsentChanged(function(e){var t=e.detail;if(!Array.isArray(t)||0===t.length||0===i.length||!i.every(function(e){return t.includes(e)}))return n.carp("OneTrust consent not accepted"),n.emit("onetrust.consent.notAccepted",t),void o.optOut();n.emit("onetrust.consent.accepted",t),o.optIn()})}else n.carp("OneTrust not found, instance blocked")}(Bt=Mt||(Mt={})).SENDING="google.ga4.sending",Bt.SUCCESS="google.ga4.success",Bt.FAILED="google.ga4.failed",(qt=Rt||(Rt={})).SUCCEEDED="pathfora.install.succeeded",qt.SDK_NOT_DETECTED="pathfora.install.sdkNotDetected",qt.SDK_SUCCEEDED="pathfora.install.sdk.succeeded",qt.CSS_SUCCEEDED="pathfora.install.css.succeeded",qt.DONE="pathfora.install.done",(Vt=Kt||(Kt={})).DONE="pathfora.preview.done",Vt.SDK_NOT_DETECTED="pathfora.preview.sdkNotDetected",(Yt=Gt||(Gt={})).SUCCEEDED="pathfora.publish.succeeded",Yt.DONE="pathfora.publish.done",Yt.SDK_NOT_DETECTED="pathfora.publish.sdkNotDetected",Yt.LEGACY_CALLBACKS_FLUSHED="pathfora.publish.legacy.pathforaCallbackFlushed",Yt.AB_TESTS_INITIALIZED="pathfora.publish.current.abtestsInitialized",Yt.WIDGETS_INITIALIZED="pathfora.publish.current.widgetsInitialized",(Qt=Ht||(Ht={})).SUCCEEDED="amazon.dsp.succeeded",Qt.FAILED="amazon.dsp.failed";var gn=["click","dblclick","change","input","focusin","focusout","keydown","keypress","mousedown","mouseout","mouseover","mouseup","touchstart","touchend","touchcancel"];function hn(e,r,c){e.ns("lx"),e.defaults({lx:{disabled:!0,prefix:"lx",target:ue(document.body),stream:"default",triggers:gn}}),e.mustEnable();var t=c.lx.prefix,s="".concat(t,"-trigger"),l="data-".concat(s),u="".concat(t,"-send-"),d="data-".concat(u),f="".concat(t,"-stream"),p="data-".concat(f),g={};!function(){var e=!0,t=!1,n=void 0;try{for(var o,i=function(){function e(e){var t=e.target;!function(e,t){return t.getAttribute(s)===e||t.getAttribute(l)===e}(n,t)||r.send(function(e){return e.getAttribute(f)||e.getAttribute(p)||c.lx.stream}(t),function(e){var t={},n=!0,o=!1,i=void 0;try{for(var a,r=e.attributes[Symbol.iterator]();!(n=(a=r.next()).done);n=!0){var c=a.value,s=c.name.startsWith(u);if(s||c.name.startsWith(d)){var l=c.name.slice(s?u.length:d.length);t[l.replace(/-/g,".")]=c.value}}}catch(e){o=!0,i=e}finally{try{n||null==r.return||r.return()}finally{if(o)throw i}}return t}(t))}var n=o.value;c.lx.target.addEventListener(n,e),g[n]=e},a=c.lx.triggers[Symbol.iterator]();!(e=(o=a.next()).done);e=!0)i()}catch(e){t=!0,n=e}finally{try{e||null==a.return||a.return()}finally{if(t)throw n}}}(),r.once("lifecycle.teardown.requested",function(){!function(){var e=!0,t=!1,n=void 0;try{for(var o,i=c.lx.triggers[Symbol.iterator]();!(e=(o=i.next()).done);e=!0){var a=o.value,r=g[a];r&&c.lx.target.removeEventListener(a,r)}}catch(e){t=!0,n=e}finally{try{e||null==i.return||i.return()}finally{if(t)throw n}}}()})}var mn,vn,yn,bn=function(){function i(e,t,n,o){a(this,i),this.onTick=e,this.onStop=t,this.initialDelay=n,this.maxAttempts=o,this.prevFactor=1,this.currentFactor=1,this.attempts=0,this.timer=null}return r(i,[{key:"start",value:function(){this.attempts=0,this.prevFactor=1,this.currentFactor=1,this.delay=this.initialDelay,this.poll()}},{key:"stop",value:function(){this.onStop(),this.timer&&(clearTimeout(this.timer),this.timer=null)}},{key:"reset",value:function(){this.stop(),this.start()}},{key:"incFactorFib",value:function(){var e=this.prevFactor+this.currentFactor;this.prevFactor=this.currentFactor,this.currentFactor=e}},{key:"poll",value:function(){var e=this;this.attempts>=this.maxAttempts?this.stop():(this.onTick(),setTimeout(function(){e.attempts++,e.delay*=e.currentFactor,e.incFactorFib(),e.poll()},this.delay))}}]),i}();function wn(a,i,r){function c(e){var t=te(new Set(0