(()=>{(()=>{var At={3156:function(P,C,_){(function(j,O){P.exports=C=O()})(this,function(){var j=j||function(O,D){var I;if(typeof window!="undefined"&&window.crypto&&(I=window.crypto),typeof self!="undefined"&&self.crypto&&(I=self.crypto),typeof globalThis!="undefined"&&globalThis.crypto&&(I=globalThis.crypto),!I&&typeof window!="undefined"&&window.msCrypto&&(I=window.msCrypto),!I&&typeof _.g!="undefined"&&_.g.crypto&&(I=_.g.crypto),!I)try{I=_(477)}catch(c){}var B=function(){if(I){if(typeof I.getRandomValues=="function")try{return I.getRandomValues(new Uint32Array(1))[0]}catch(c){}if(typeof I.randomBytes=="function")try{return I.randomBytes(4).readInt32LE()}catch(c){}}throw new Error("Native crypto module could not be used to get secure random number.")},z=Object.create||function(){function c(){}return function(p){var m;return c.prototype=p,m=new c,c.prototype=null,m}}(),Z={},J=Z.lib={},Y=J.Base=function(){return{extend:function(c){var p=z(this);return c&&p.mixIn(c),(!p.hasOwnProperty("init")||this.init===p.init)&&(p.init=function(){p.$super.init.apply(this,arguments)}),p.init.prototype=p,p.$super=this,p},create:function(){var c=this.extend();return c.init.apply(c,arguments),c},init:function(){},mixIn:function(c){for(var p in c)c.hasOwnProperty(p)&&(this[p]=c[p]);c.hasOwnProperty("toString")&&(this.toString=c.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),N=J.WordArray=Y.extend({init:function(c,p){c=this.words=c||[],p!=D?this.sigBytes=p:this.sigBytes=c.length*4},toString:function(c){return(c||M).stringify(this)},concat:function(c){var p=this.words,m=c.words,v=this.sigBytes,x=c.sigBytes;if(this.clamp(),v%4)for(var A=0;A<x;A++){var U=m[A>>>2]>>>24-A%4*8&255;p[v+A>>>2]|=U<<24-(v+A)%4*8}else for(var $=0;$<x;$+=4)p[v+$>>>2]=m[$>>>2];return this.sigBytes+=x,this},clamp:function(){var c=this.words,p=this.sigBytes;c[p>>>2]&=4294967295<<32-p%4*8,c.length=O.ceil(p/4)},clone:function(){var c=Y.clone.call(this);return c.words=this.words.slice(0),c},random:function(c){for(var p=[],m=0;m<c;m+=4)p.push(B());return new N.init(p,c)}}),K=Z.enc={},M=K.Hex={stringify:function(c){for(var p=c.words,m=c.sigBytes,v=[],x=0;x<m;x++){var A=p[x>>>2]>>>24-x%4*8&255;v.push((A>>>4).toString(16)),v.push((A&15).toString(16))}return v.join("")},parse:function(c){for(var p=c.length,m=[],v=0;v<p;v+=2)m[v>>>3]|=parseInt(c.substr(v,2),16)<<24-v%8*4;return new N.init(m,p/2)}},H=K.Latin1={stringify:function(c){for(var p=c.words,m=c.sigBytes,v=[],x=0;x<m;x++){var A=p[x>>>2]>>>24-x%4*8&255;v.push(String.fromCharCode(A))}return v.join("")},parse:function(c){for(var p=c.length,m=[],v=0;v<p;v++)m[v>>>2]|=(c.charCodeAt(v)&255)<<24-v%4*8;return new N.init(m,p)}},g=K.Utf8={stringify:function(c){try{return decodeURIComponent(escape(H.stringify(c)))}catch(p){throw new Error("Malformed UTF-8 data")}},parse:function(c){return H.parse(unescape(encodeURIComponent(c)))}},E=J.BufferedBlockAlgorithm=Y.extend({reset:function(){this._data=new N.init,this._nDataBytes=0},_append:function(c){typeof c=="string"&&(c=g.parse(c)),this._data.concat(c),this._nDataBytes+=c.sigBytes},_process:function(c){var p,m=this._data,v=m.words,x=m.sigBytes,A=this.blockSize,U=A*4,$=x/U;c?$=O.ceil($):$=O.max(($|0)-this._minBufferSize,0);var V=$*A,X=O.min(V*4,x);if(V){for(var Q=0;Q<V;Q+=A)this._doProcessBlock(v,Q);p=v.splice(0,V),m.sigBytes-=X}return new N.init(p,X)},clone:function(){var c=Y.clone.call(this);return c._data=this._data.clone(),c},_minBufferSize:0}),q=J.Hasher=E.extend({cfg:Y.extend(),init:function(c){this.cfg=this.cfg.extend(c),this.reset()},reset:function(){E.reset.call(this),this._doReset()},update:function(c){return this._append(c),this._process(),this},finalize:function(c){c&&this._append(c);var p=this._doFinalize();return p},blockSize:512/32,_createHelper:function(c){return function(p,m){return new c.init(m).finalize(p)}},_createHmacHelper:function(c){return function(p,m){return new F.HMAC.init(c,m).finalize(p)}}}),F=Z.algo={};return Z}(Math);return j})},2316:function(P,C,_){(function(j,O){P.exports=C=O(_(3156))})(this,function(j){return function(O){var D=j,I=D.lib,B=I.WordArray,z=I.Hasher,Z=D.algo,J=[],Y=[];(function(){function M(q){for(var F=O.sqrt(q),c=2;c<=F;c++)if(!(q%c))return!1;return!0}function H(q){return(q-(q|0))*4294967296|0}for(var g=2,E=0;E<64;)M(g)&&(E<8&&(J[E]=H(O.pow(g,.5))),Y[E]=H(O.pow(g,.3333333333333333)),E++),g++})();var N=[],K=Z.SHA256=z.extend({_doReset:function(){this._hash=new B.init(J.slice(0))},_doProcessBlock:function(M,H){for(var g=this._hash.words,E=g[0],q=g[1],F=g[2],c=g[3],p=g[4],m=g[5],v=g[6],x=g[7],A=0;A<64;A++){if(A<16)N[A]=M[H+A]|0;else{var U=N[A-15],$=(U<<25|U>>>7)^(U<<14|U>>>18)^U>>>3,V=N[A-2],X=(V<<15|V>>>17)^(V<<13|V>>>19)^V>>>10;N[A]=$+N[A-7]+X+N[A-16]}var Q=p&m^~p&v,st=E&q^E&F^q&F,it=(E<<30|E>>>2)^(E<<19|E>>>13)^(E<<10|E>>>22),rt=(p<<26|p>>>6)^(p<<21|p>>>11)^(p<<7|p>>>25),ot=x+rt+Q+Y[A]+N[A],pt=it+st;x=v,v=m,m=p,p=c+ot|0,c=F,F=q,q=E,E=ot+pt|0}g[0]=g[0]+E|0,g[1]=g[1]+q|0,g[2]=g[2]+F|0,g[3]=g[3]+c|0,g[4]=g[4]+p|0,g[5]=g[5]+m|0,g[6]=g[6]+v|0,g[7]=g[7]+x|0},_doFinalize:function(){var M=this._data,H=M.words,g=this._nDataBytes*8,E=M.sigBytes*8;return H[E>>>5]|=128<<24-E%32,H[(E+64>>>9<<4)+14]=O.floor(g/4294967296),H[(E+64>>>9<<4)+15]=g,M.sigBytes=H.length*4,this._process(),this._hash},clone:function(){var M=z.clone.call(this);return M._hash=this._hash.clone(),M}});D.SHA256=z._createHelper(K),D.HmacSHA256=z._createHmacHelper(K)}(Math),j.SHA256})},116:()=>{(function(P,C){"use strict";P=P||"docReady",C=C||window;var _=[],j=!1,O=!1;function D(){if(!j){j=!0;for(var B=0;B<_.length;B++)_[B].fn.call(window,_[B].ctx);_=[]}}function I(){document.readyState==="complete"&&D()}C[P]=function(B,z){if(typeof B!="function")throw new TypeError("callback for docReady(fn) must be a function");if(j){setTimeout(function(){B(z)},1);return}else _.push({fn:B,ctx:z});document.readyState==="complete"||!document.attachEvent&&document.readyState==="interactive"?setTimeout(D,1):O||(document.addEventListener?(document.addEventListener("DOMContentLoaded",D,!1),window.addEventListener("load",D,!1)):(document.attachEvent("onreadystatechange",I),window.attachEvent("onload",D)),O=!0)}})("docReady",window)},477:()=>{}},ht={};function W(P){var C=ht[P];if(C!==void 0)return C.exports;var _=ht[P]={exports:{}};return At[P].call(_.exports,_,_.exports,W),_.exports}W.n=P=>{var C=P&&P.__esModule?()=>P.default:()=>P;return W.d(C,{a:C}),C},W.d=(P,C)=>{for(var _ in C)W.o(C,_)&&!W.o(P,_)&&Object.defineProperty(P,_,{enumerable:!0,get:C[_]})},W.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch(P){if(typeof window=="object")return window}}(),W.o=(P,C)=>Object.prototype.hasOwnProperty.call(P,C);var Ft={};(()=>{"use strict";var P=W(2316),C=W.n(P);const _=document,j=null,O=()=>{const a=_.createElement("a");return a.href=j.location,a},D=(a,t)=>{const e=_.createElement("img");return e.height=1,e.width=1,e.style.display="none",e.src=a,e.onload=t,e.alt="",_.body.appendChild(e)},I=a=>{const t=_.createElement("iframe");return t.width=1,t.height=1,t.style.display="none",t.src=a,_.body.appendChild(t)},B=(a,t=!0)=>{const e=_.createElement("script");return e.type="text/javascript",e.src=a,e.async=t,_.body.appendChild(e)},z={img:D,script:B,iframe:I},Z=(a,t)=>{t||(t=window.location.href),a=a.replace(/[\[\]]/g,"\\$&");let e=new RegExp("[?&]"+a+"(=([^&#]*)|&|#|$)"),n=e.exec(t);return n?n[2]?decodeURIComponent(n[2].replace(/\+/g," ")):"":null},J=a=>{let t="_au_"+a+"=",n=decodeURIComponent(document.cookie).split(";");for(let r=0;r<n.length;r++){let s=n[r];for(;s.charAt(0)==" ";)s=s.substring(1);if(s.indexOf(t)==0)return s.substring(t.length,s.length)}return null},Y=(a,t,e)=>(parseInt(J(a))||0)+t<e,N=a=>{const t=/[a-z0-9][a-z0-9-]*\.[a-z]+$/i;let n=/[a-z0-9][a-z0-9-]+\.[a-z.]{2,6}$/i,r=a.split("."),s=r[r.length-1];(s.length>4||s==="com"||s==="org"||s==="net")&&(n=t);let o=a.match(n);return o?o[0]:a},K=(a,t)=>{document.cookie="_au_"+a+"="+t+"; domain="+N(document.location.hostname)+"; path=/; max-age=31536000"};function M(a){let t="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ".split("");a||(a=Math.floor(Math.random()*t.length));let e="";for(let n=0;n<a;n++)e+=t[Math.floor(Math.random()*t.length)];return e}function H(){const a=Math.round(Date.now()/1e3);return"AU1S-0100-"+String(a).padStart(12,"0")+"-"+M(8)+"-"+M(4)}function g(a,t){let e=[];try{if(typeof t.featurePolicy=="undefined")return e;"browsingTopics"in t&&t.featurePolicy.allowsFeature("browsing-topics")&&e.push("BT"),"joinAdInterestGroup"in a.navigator&&t.featurePolicy.allowsFeature("join-ad-interest-group")&&e.push("JI"),"runAdAuction"in a.navigator&&t.featurePolicy.allowsFeature("run-ad-auction")&&e.push("RA"),t.featurePolicy.allowsFeature("attribution-reporting")&&e.push("AR")}catch(n){console.error(n)}return e}function E(a){function t(y,f){var S,b,R,k,T;return R=y&2147483648,k=f&2147483648,S=y&1073741824,b=f&1073741824,T=(y&1073741823)+(f&1073741823),S&b?T^2147483648^R^k:S|b?T&1073741824?T^3221225472^R^k:T^1073741824^R^k:T^R^k}function e(y,f,S,b,R,k,T){return y=t(y,t(t(f&S|~f&b,R),T)),t(y<<k|y>>>32-k,f)}function n(y,f,S,b,R,k,T){return y=t(y,t(t(f&b|S&~b,R),T)),t(y<<k|y>>>32-k,f)}function r(y,f,S,b,R,k,T){return y=t(y,t(t(f^S^b,R),T)),t(y<<k|y>>>32-k,f)}function s(y,f,S,b,R,k,T){return y=t(y,t(t(S^(f|~b),R),T)),t(y<<k|y>>>32-k,f)}function o(y){var f="",S="",b;for(b=0;3>=b;b++)S=y>>>8*b&255,S="0"+S.toString(16),f+=S.substr(S.length-2,2);return f}var i=[],w,L,at,bt,u,d,l,h;for(a=function(y){y=y.replace(/\r\n/g,`
`);for(var f="",S=0;S<y.length;S++){var b=y.charCodeAt(S);128>b?f+=String.fromCharCode(b):(127<b&&2048>b?f+=String.fromCharCode(b>>6|192):(f+=String.fromCharCode(b>>12|224),f+=String.fromCharCode(b>>6&63|128)),f+=String.fromCharCode(b&63|128))}return f}(a),i=function(y){var f,S=y.length;f=S+8;for(var b=16*((f-f%64)/64+1),R=Array(b-1),k=0,T=0;T<S;)f=(T-T%4)/4,k=T%4*8,R[f]|=y.charCodeAt(T)<<k,T++;return f=(T-T%4)/4,R[f]|=128<<T%4*8,R[b-2]=S<<3,R[b-1]=S>>>29,R}(a),u=1732584193,d=4023233417,l=2562383102,h=271733878,a=0;a<i.length;a+=16)w=u,L=d,at=l,bt=h,u=e(u,d,l,h,i[a+0],7,3614090360),h=e(h,u,d,l,i[a+1],12,3905402710),l=e(l,h,u,d,i[a+2],17,606105819),d=e(d,l,h,u,i[a+3],22,3250441966),u=e(u,d,l,h,i[a+4],7,4118548399),h=e(h,u,d,l,i[a+5],12,1200080426),l=e(l,h,u,d,i[a+6],17,2821735955),d=e(d,l,h,u,i[a+7],22,4249261313),u=e(u,d,l,h,i[a+8],7,1770035416),h=e(h,u,d,l,i[a+9],12,2336552879),l=e(l,h,u,d,i[a+10],17,4294925233),d=e(d,l,h,u,i[a+11],22,2304563134),u=e(u,d,l,h,i[a+12],7,1804603682),h=e(h,u,d,l,i[a+13],12,4254626195),l=e(l,h,u,d,i[a+14],17,2792965006),d=e(d,l,h,u,i[a+15],22,1236535329),u=n(u,d,l,h,i[a+1],5,4129170786),h=n(h,u,d,l,i[a+6],9,3225465664),l=n(l,h,u,d,i[a+11],14,643717713),d=n(d,l,h,u,i[a+0],20,3921069994),u=n(u,d,l,h,i[a+5],5,3593408605),h=n(h,u,d,l,i[a+10],9,38016083),l=n(l,h,u,d,i[a+15],14,3634488961),d=n(d,l,h,u,i[a+4],20,3889429448),u=n(u,d,l,h,i[a+9],5,568446438),h=n(h,u,d,l,i[a+14],9,3275163606),l=n(l,h,u,d,i[a+3],14,4107603335),d=n(d,l,h,u,i[a+8],20,1163531501),u=n(u,d,l,h,i[a+13],5,2850285829),h=n(h,u,d,l,i[a+2],9,4243563512),l=n(l,h,u,d,i[a+7],14,1735328473),d=n(d,l,h,u,i[a+12],20,2368359562),u=r(u,d,l,h,i[a+5],4,4294588738),h=r(h,u,d,l,i[a+8],11,2272392833),l=r(l,h,u,d,i[a+11],16,1839030562),d=r(d,l,h,u,i[a+14],23,4259657740),u=r(u,d,l,h,i[a+1],4,2763975236),h=r(h,u,d,l,i[a+4],11,1272893353),l=r(l,h,u,d,i[a+7],16,4139469664),d=r(d,l,h,u,i[a+10],23,3200236656),u=r(u,d,l,h,i[a+13],4,681279174),h=r(h,u,d,l,i[a+0],11,3936430074),l=r(l,h,u,d,i[a+3],16,3572445317),d=r(d,l,h,u,i[a+6],23,76029189),u=r(u,d,l,h,i[a+9],4,3654602809),h=r(h,u,d,l,i[a+12],11,3873151461),l=r(l,h,u,d,i[a+15],16,530742520),d=r(d,l,h,u,i[a+2],23,3299628645),u=s(u,d,l,h,i[a+0],6,4096336452),h=s(h,u,d,l,i[a+7],10,1126891415),l=s(l,h,u,d,i[a+14],15,2878612391),d=s(d,l,h,u,i[a+5],21,4237533241),u=s(u,d,l,h,i[a+12],6,1700485571),h=s(h,u,d,l,i[a+3],10,2399980690),l=s(l,h,u,d,i[a+10],15,4293915773),d=s(d,l,h,u,i[a+1],21,2240044497),u=s(u,d,l,h,i[a+8],6,1873313359),h=s(h,u,d,l,i[a+15],10,4264355552),l=s(l,h,u,d,i[a+6],15,2734768916),d=s(d,l,h,u,i[a+13],21,1309151649),u=s(u,d,l,h,i[a+4],6,4149444226),h=s(h,u,d,l,i[a+11],10,3174756917),l=s(l,h,u,d,i[a+2],15,718787259),d=s(d,l,h,u,i[a+9],21,3951481745),u=t(u,w),d=t(d,L),l=t(l,at),h=t(h,bt);return(o(u)+o(d)+o(l)+o(h)).toLowerCase()}const q=60*1e3,F=60*q,c=24*F;function p(a){var t="au/test";try{return a.localStorage.setItem(t,t),a.localStorage.removeItem(t),!0}catch(e){return!1}}class m{constructor(t){this.w=t,this.now=1*new Date,this.useCookie=!p(this.w)}getCookie(t){return J(t)}get(t,e=!1){if(this.useCookie||e)return this.getCookie(t);let n=this.w.localStorage.getItem("au/"+t);if(n){if(n=JSON.parse(n),n.e>this.now)return n.v;this.w.localStorage.removeItem("au/"+t)}return null}setCookie(t,e,n=q){K(t,e)}set(t,e,n=q,r=!1){this.useCookie||r?this.setCookie(t,e,n):this.w.localStorage.setItem("au/"+t,JSON.stringify({v:e,e:this.now+n}))}}const v=m,x=null,A=null,U="G-FVWZ0RM4DH",$=null,V="https://a.ad.gt",X="https://p.ad.gt",Q="https://pixels.ad.gt",st="https://seg.ad.gt",it="https://ids.ad.gt";function rt(a,t,e,n){a.au_seg=e,(n||[]).forEach(s=>s(a,t,e.segments));const r=new CustomEvent("auSegReady",{detail:e});t.dispatchEvent(r)}function ot(a,t,e){const n=a.apntag;if(typeof n!="undefined"&&typeof n.setPageOpts=="function"){let r={};typeof n.requests!="undefined"&&typeof n.requests.keywords!="undefined"&&(r=n.requests.keywords),r.AUDIGENT=(r.AUDIGENT||[]).concat(e),n.setPageOpts({keywords:r})}}function pt(a,t,e){a.DTEvent.getEventPromise("dt-connatix-api-ready").then(function([n,r]){n.setMacros({AU_SEG:e})})}function ct(a,t,e){a.googletag=a.googletag||{},a.googletag.cmd=a.googletag.cmd||[],a.googletag.cmd.push(function(){a.googletag.pubads().setTargeting("AU_SEG",e)})}function $t(a,t,e){try{if(a.self!==a.top){ct(a.top,t,e);return}}catch(n){}ct(a,t,e)}function Vt(a,t,e){t.cookie="au_seg="+e.join("|")+"; domain="+extractDomain(a.location.hostname)+"; path=/; max-age=86400; samesite=None; secure"}function Wt(a,t,e){typeof a.setTargeting=="function"?a.setTargeting("AU_SEG",e):a.console.log("[Audigent] cannot find window.setTargeting function")}var Et=Object.defineProperty,St=Object.defineProperties,Pt=Object.getOwnPropertyDescriptors,gt=Object.getOwnPropertySymbols,Tt=Object.prototype.hasOwnProperty,Ct=Object.prototype.propertyIsEnumerable,ft=(a,t,e)=>t in a?Et(a,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):a[t]=e,G=(a,t)=>{for(var e in t||(t={}))Tt.call(t,e)&&ft(a,e,t[e]);if(gt)for(var e of gt(t))Ct.call(t,e)&&ft(a,e,t[e]);return a},ut=(a,t)=>St(a,Pt(t));const dt=window,mt=document,vt={"og:title":"title","og:description":"description","og:image":"image","og:url":"url","og:type":"type","og:name":"name","og:locale":"locale"},yt={description:"description",keywords:"keywords"},It="meta[name='audigent:tags']";class xt{constructor(t){const{auvars:e,decoratorTarget:n,taggerStrategy:r}=t||{};this.w=dt,this.u=mt.location||dt.location,this.d=mt,this.auvars=e,this.dataStore=new v(dt),this.customOptions={},this.isIndexPage=this.u.pathname==="/",this.customTags=[],this.customAttributes={},this.userDefinedTags=[],this.userDefinedAttributes={},this.internalLinks=[],this.GlobalHandlers={},this.randNum=Math.random(),this.decoratorTarget=n||(this.isIndexPage?.95:.97),this.u.hostname.toLowerCase().endsWith("lnk.to")?this.taggerStrategy="FULL_PATH":this.taggerStrategy=r||this.auvars.tgs||"NONE",this.psf=g(this.w,this.d),this.setupSessionId(),this.setupHadron(),this.setupGA4()}docReady(){this.customOptions.autoPageView!==!1&&this.sendPageView(),this.ListenerIterator("a",this.clickHandler),this.w.addEventListener("hashchange",()=>{this.sendOffsiteClick({url:this.u.href}),this.sendPageView(),this.pixels()})}clearOptions(){this.customOptions={}}setOptions(t){const{options:e}=t||{};return typeof e=="object"?(this.customOptions=G(G({},this.customOptions),e),!0):!1}observeDom(t,e,n={childList:!0}){const r=window.MutationObserver||window.WebKitMutationObserver;if(!(!t||t.nodeType!==1))if(r){const s=new r(e);return s.observe(t,n),s}else window.addEventListener&&(t.addEventListener("DOMNodeInserted",e,!1),t.addEventListener("DOMNodeRemoved",e,!1))}push(t,e,n){if(typeof t=="string")return e&&e!==this.auvars.p?(console.warn("[Audigent] skip .push("+t+"), p is not a match"),!1):(console.warn('[Audigent] deprecated use of "push": please use .push( object )'),(this[t]||(()=>!1)).call(this,n),!0);if(t&&typeof t=="object"){const{fn:r,category:s,partnerId:o}=t,i=r||s;if(o&&o!==this.auvars.p)return console.warn("[Audigent] skip .push("+i+"), partnerId is not a match"),!1;if(r){const w=t.args;return Array.isArray(w)?(w.map(L=>(this[i]||(()=>!1)).call(this,L)),!0):((this[i]||(()=>!1)).call(this,w),!0)}return(this[i]||(()=>!1)).call(this,t),!0}return console.warn("[Audigent] could not execute the required command: please check your syntax"),!1}setupHadron(){var t;const e=(t=this.w.hadron)==null?void 0:t.id;this.auvars.h=e||null}getAudigentId(t){if(t instanceof Function)return t(this.auvars.a),this.auvars.a;const{callback:e}=t||{};return e instanceof Function&&e(this.auvars.a),this.auvars.a}setupSessionId(){let t=this.dataStore.get("sid");t==null&&(t=H()),this.auvars.s=t,this.dataStore.set("sid",t,30*q)}getTaggerComponents(){return null}setupTaggerId(){const t=this.u.hostname.toLowerCase(),e=this.getTags();let n=this.getTaggerComponents();Array.isArray(n)&&n.length>0||(this.taggerStrategy=="FULL_PATH"?n=[t,this.u.pathname,this.auvars.p]:Array.isArray(e)&&e.length>0?n=[t,"["+e.join(",").toLowerCase()+"]",this.auvars.p]:n=[t,"/",this.auvars.p]);const r=E(n.join("")).toLowerCase();return this.auvars.t=r,this.dataStore.set("tid",r,F),r}getMetaAttributes(){const t=this.d.querySelectorAll("meta");let e={url:this.u.href,title:this.d.title};for(const n of t){let r;const s=n.getAttribute("property");if(s!==void 0)s in vt&&(r=vt[s]);else{const o=n.getAttribute("name");o in yt&&(r=yt[o])}if(r!==void 0){const o=n.getAttribute("content");o!==void 0&&typeof o=="string"&&(r==="keywords"?e[r]=o.split(",").map(i=>i.trim()).filter(i=>i.length>0):(!(r in e)||e[r].length<o.length)&&(e[r]=o))}}return e}getCustomAttributes(){return{}}getAttributes(){return G(G(G(G({},this.customAttributes),this.userDefinedAttributes),this.getCustomAttributes()),this.getMetaAttributes())}clearAttributes(){this.userDefinedAttributes={}}setAttributes(t){const{attributes:e}=t||{};return typeof e=="object"?(this.userDefinedAttributes=e,!0):!1}addAttributes(t){const{attributes:e}=t||{};return typeof e=="object"?(this.userDefinedAttributes=G(G({},this.userDefinedAttributes),e),!0):!1}getMetaTags(){const t=document.head.querySelectorAll(It)[0];return t?t.content.split("|").map(e=>e.trim()).filter(e=>e.length>0).map(e=>(this.u.hostname+" > "+e).toUpperCase()):[]}getCustomTags(){return[]}getTags(){return[...this.customTags,...this.userDefinedTags,...this.getCustomTags(),...this.getMetaTags()].filter(e=>typeof e=="string"||e instanceof String).map(e=>e.replace(/,/g,"")).map(e=>e.trim()).filter(e=>e.length>0).map(e=>e.toUpperCase())}clearTags(){this.userDefinedTags=[]}setTags(t){const{tags:e}=t||{};return Array.isArray(e)?(this.userDefinedTags=e,!0):typeof e=="string"?(this.userDefinedTags=[e],!0):!1}addTags(t){const{tags:e}=t||{};return Array.isArray(e)?(this.userDefinedTags=[...e,...this.userDefinedTags],!0):typeof e=="string"?(this.userDefinedTags=[e,...this.userDefinedTags],!0):!1}writeDecoratorRecord(t){const{tags:e,decor_dict:n,attributes:r}=t;this.customTags=[...this.customTags,...e||[]],this.customAttributes=G(G(G({},this.customAttributes),n||{}),r||{})}sendDecoratorRecord(){if(!(this.randNum>=this.decoratorTarget))return null;const e=this.getAttributes(),n=this.getTags(),r=ut(G({},e),{tags:n.join(),tagger_id:this.auvars.t,partner_id:this.auvars.p});let s=new XMLHttpRequest,o=`${X}/api/v1/dec`;return s.open("POST",o,!0),s.setRequestHeader("Content-type","application/json"),s.send(JSON.stringify(r)),s}setupGA4(){if(this.auvars.ga4===!0)try{let t=document.createElement("script");t.src="https://www.googletagmanager.com/gtag/js?id="+U+"&l=audDataLayer",t.async=!0,document.head.appendChild(t);const e=this.w;typeof this.w.audGtag!="function"&&(this.w.audDataLayer=this.w.audDataLayer||[],this.w.audGtag=function(){e.audDataLayer.push(arguments)}),audGtag("js",new Date),audGtag("config",U,{user_id:this.auvars.a,dimension3:this.auvars.p,dimension4:this.u.hostname,dimension5:this.u.pathname,groups:"audigent",send_page_view:!1})}catch(t){console.error(t)}}ListenerIterator(t,e){Array.prototype.forEach.call(this.d.querySelectorAll(t),n=>{this.ListenerAttacher({input:n,method:e})})}ListenerAttacher(t){const{input:e,method:n}=t;e!=null&&(e.addEventListener?e.addEventListener("mousedown",n.bind(this),!1):e.attachEvent&&e.attachEvent("mousedown",n))}GlobalListenerHandler(t){this.GlobalHandlers[t.type].forEach(e=>{if(t.target.matches(e.selector))e.method(t);else{let n=t.target,r=!1;for(;n.parentElement&&!r;)n=n.parentElement,r=n.matches(e.selector),r&&e.method(ut(G({},t),{target:n}))}})}GlobalListenerAttacher(t,e,n){typeof t=="string"&&(t=[t]),t.forEach(r=>{this.GlobalHandlers[r]=this.GlobalHandlers[r]||[],this.GlobalHandlers[r].push({selector:e,method:n}),document.addEventListener?(document.removeEventListener(r,window.au.l),document.addEventListener(r,window.au.l)):document.attachEvent&&(document.detachEvent(r,window.au.l),document.attachEvent(r,window.au.l))})}sendOffsiteClick(t){const{url:e}=t;D(`${V}/api/v1/off-site-click/${this.auvars.p}?tagger_id=${this.auvars.t}&url=${e}`)}clickHandler(t){let e=t.currentTarget.getAttribute("href");e!==null&&this.internalLinks.includes(this.u.hostname)&&(this.sendOffsiteClick({url:e}),this.sendPageView())}sendUserBehaviour(t){const{action:e}=t,n={click_url:e,tagger_id:this.auvars.t,audigent_id:this.auvars.a,partner_id:this.auvars.p},r=new Blob([JSON.stringify(n)],{type:"application/json"});this.w.navigator.sendBeacon(`${X}/api/v1/ubh`,r)}behavior(t){const e=encodeURIComponent(`${this.u.protocol}//${this.u.hostname}${this.u.pathname}__audigent-behavior-${t.action}${this.u.search}${this.u.hash}`);this.sendOffsiteClick({url:e}),this.sendGAEvent({eventCategory:"audigent-behavior",eventAction:t.action,eventLabel:this.auvars.t})}sendEvent(t){let{event:e,events:n,type:r}=t;if(e=e||n,!e){if(!r)return null;e=G({},t),delete e.category,delete e.partnerId}const s={tagger_id:this.auvars.t,partner_id:this.auvars.p,audigent_id:this.auvars.a,events:Array.isArray(e)?e:[e]};let o=new XMLHttpRequest,i=`${X}/api/v1/event`;return o.open("POST",i,!0),o.setRequestHeader("Content-type","application/json"),o.send(JSON.stringify(s)),""}sendGAEvent(t){const{eventCategory:e,eventAction:n,eventLabel:r,skipSQS:s}=t;this.auvars.ga4===!0&&audGtag("event",e,{eventAction:n,eventLabel:r}),s||this.sendEvent({event:{type:e,eventAction:n,eventLabel:r}})}sendConsent(t){const{consented:e,consentType:n,consentString:r}=t,s="consent_"+n.toLowerCase(),o=this.dataStore.get("consent_"+t.consentType.toLowerCase());if(o&&r==o)return;const i={audigent_id:this.auvars.a,tagger_id:this.auvars.t,partner_id:this.auvars.p,consented:e,consent_type:n,consent_string:r},w=new Blob([JSON.stringify(i)],{type:"application/json"});return this.w.navigator.sendBeacon(`${X}/api/v1/con`,w)&&this.dataStore.set(s,r||"n/a",c),""}pixels(){const t=`${Q}/api/v1/getpixels?tagger_id=${this.auvars.t}&url=${encodeURIComponent(this.u.href)}&code='none'`;B(t,!0)}tags(t){return!1}conversion(t){return!1}sendPageView(t){this.randNum=Math.random();const e=this.setupTaggerId(),n=1*new Date,r={event_timestamp:n,url:this.u.href,referrer:this.d.referrer,partner_id:this.auvars.p,tagger_id:this.auvars.t,audigent_id:this.auvars.a,session_id:this.auvars.s,p_s_f:this.psf};this.auvars.h&&(r.hadron_id=this.auvars.h);const s=(t==null?void 0:t.data)||{},o={category:"pageView",version:"v2",created_at:n,properties:G(G({},r),s)};let i=new XMLHttpRequest,w=`${V}/api/v1/collect`;i.open("POST",w,!0),i.withCredentials=!0,i.setRequestHeader("Content-type","text/plain"),i.send(this.w.btoa(JSON.stringify(o))),this.pixels(),this.sendDecoratorRecord(),this.auvars.ga4===!0&&(audGtag("set",{dimension7:e,send_to:U}),(this.randNum>=.95||["158"].includes(this.auvars.p.toString())&&this.randNum>=.8||["220"].includes(this.auvars.p.toString())&&this.randNum>=.5)&&audGtag("event","page_view",{dimension7:e,send_to:U}))}beopEvent(t){const e=t.partnerId||this.auvars.p;this.sendEvent({event:ut(G({},t.data||{}),{partner_id:e,type:"beop"})})}trackEvent(t){return!1}DispatchEvent(t){const{eventName:e}=t,r=(s=>{if(typeof window.CustomEvent=="function")return new CustomEvent(s);const o={bubbles:!1,cancelable:!1,detail:void 0},i=document.createEvent("CustomEvent");return i.initCustomEvent(s,o.bubbles,o.cancelable,o.detail),i})(e);window.dispatchEvent(r)}optout(){D(`${it}/api/v1/optout?au_id=${this.auvars.a}`)}segCapture(t,e){const n=(t==null?void 0:t.segments)||[];if(n.length>0&&this.randNum>=.9){const r={tagger_id:this.auvars.t,partner_id:this.auvars.p,audigent_id:this.auvars.a,segment_ids:n.join("|"),is_cached:e},s=new Blob([JSON.stringify(r)],{type:"application/json"});return this.w.navigator.sendBeacon(`${X}/api/v1/segs`,s),!0}return!1}setupInPageTaxonomy(t){const e=this,n=this.dataStore.get("seg");if(n!=null){rt(e.w,e.d,n,t),this.segCapture(n,!0);return}let r=new URL(`${st}/api/v2/segments`);if(r.searchParams.set("url",encodeURIComponent(this.u.href)),r.searchParams.set("partner_id",this.auvars.p),this.auvars.t!==void 0)r.searchParams.set("tagger_id",this.auvars.t);else{const o=this.setupTaggerId();r.searchParams.set("tagger_id",o)}r.searchParams.set("au_id",this.auvars.a);let s=new XMLHttpRequest;s.timeout=1e4,s.onload=function(){if(s.readyState==XMLHttpRequest.DONE&&s.status==200){const o=JSON.parse(s.response);rt(e.w,e.d,o,t),e.dataStore.set("seg",o,F*6),e.segCapture(o,!1)}},s.ontimeout=function(){console.log("[Audigent] Taxonomy Service > Timeout")},s.onerror=function(){console.log("[Audigent] Taxonomy Service > Invalid Response")},s.open("GET",r,!0),s.send()}addUserIdentity(t){if(!t)return!1;const{identityType:e,identityValue:n}=t;if(e===void 0||n===void 0)return!1;if(e==="email"){const r=window.btoa(n);return this.sendEvent({event:{type:"e",value:r}})}else return this.sendEvent({event:{type:"u",[e]:n,identityType:e,identityValue:n}})}addUserEmailAddress(t){if(!t)return!1;const{identityValue:e}=t;if(e===void 0)return!1;let n=e.toLowerCase().trim();if(n.endsWith("@gmail.com")){let s=n.split("@")[0];s=s.split("+")[0],s=s.replace(/\./g,""),n=s+"@gmail.com"}const r=C()(n).toString();return this.addUserIdentity({identityType:"hem_sha256",identityValue:r})}addUserProperty(t){if(!t)return!1;const{propertyName:e,propertyValue:n}=t;return e===void 0||n===void 0?!1:e==="email"?this.addUserIdentity({identityType:"email",identityValue:n}):this.sendEvent({event:{type:"user.property",propertyName:e,propertyValue:n}})}}const Lt=xt;class nt{constructor(t){this.pixels=t,this.parameters={sku:"",orderId:"",qty:"",revenue:"",ltv:""}}dropPixel(t,e){const n=this.pixels[t]||[];let r=this.parameters;e&&Object.keys(e).forEach(s=>(r[s]=e[s],!1)),n.forEach(s=>{let o=s,i="img";return typeof s!="string"&&(o=s[0],i=s[1],i||(i="img")),o=o.replace(/\[\[SKU\]\]/g,r.sku),o=o.replace(/\[\[ORDERID\]\]/g,r.orderId),o=o.replace(/\[\[QTY\]\]/g,r.qty),o=o.replace(/\[\[REVENUE\]\]/g,r.revenue),o=o.replace(/\[\[LTV\]\]/g,r.ltv),o=o.replace(/\[\[ITEMS\]\]/g,(r.items||[]).map(w=>w.id||"").join(",")),i==="img"?D(o):i==="script"?B(o):i==="iframe"?I(o):!1})}}class lt{constructor(t,e,n){this.w=t,this.partnerId=e,this.taggerId=n,window.aupixels?this.pixels=window.aupixels.ec||{}:this.pixels={},this.ECPixels=new nt(this.pixels),this.pageLoadRun=[],window.Adgt||(window.Adgt={}),window.Adgt.VarWatch=function(r,s,o){let i=r[s];function w(){if(r[s]!=i){const L=i;i=r[s],o(L,i)}}return w},window.Adgt.VarHandler=function(r,s){window.au.push({category:"DispatchEvent",eventName:"ProductMetaUpdated"}),clearInterval(window.Adgt.variantInterval)},window.Adgt.SetVarInterval=function(r,s){window.Adgt.variantInterval=setInterval(window.Adgt.VarWatch(r,s,window.Adgt.VarHandler),100)},window.Adgt.Store=this}pathIncludes(t){return window.location.pathname.indexOf(t)!==-1}updatePixels(){this.pixels=window.aupixels.ec||{},this.ECPixels=new nt(this.pixels),this.pageLoadRun.forEach(t=>{let e={};t==="add"||t==="view"?e={sku:this.product.id}:t==="checkout"?e={qty:this.qty,revenue:this.revenue}:t==="transaction"&&(e={qty:this.transaction.items.length||this.qty,revenue:this.transaction.revenue||this.revenue,orderId:this.transaction.id}),this.ECPixels.dropPixel(t,e)}),this.pageLoadRun=[]}appendPageLoadPixelCheck(t){this.pageLoadRun.filter(n=>n===t).length||this.pageLoadRun.push(t)}setClassProducts(t){this.products=t,this.qty=t.length,this.revenue=t.reduce((e,n)=>e+parseFloat(n.price),0)}sendAddProductEventToGA(t){this.product=t;try{this.sendAddProductToGA(t),this.w.audGtag("event","add_to_cart",{value:t.price.toFixed(2),items:[t]}),this.ECPixels.dropPixel("add",{sku:t.id,revenue:t.price.toFixed(2)})}catch(e){console.error(e)}}sendViewProductEventToGA(t){this.product=t;try{this.w.audGtag("event","view_promotion",{promotion_id:t.id,promotion_name:t.name,items:[t]}),this.w.audGtag("event","page_view",{page_title:t.id}),this.ECPixels.dropPixel("view",{sku:t.id})}catch(e){console.error(e)}}sendAllProductsInCartToGA(t,e){this.setClassProducts(t);try{for(let n=0;n<t.length;n++){const r=t[n];this.sendAddProductToGA(r)}return e(),!0}catch(n){return!1}}sendCheckoutEventToGA(){try{this.w.audGtag("event","begin_checkout",{currency:"USD",value:this.revenue,items:[this.products]}),this.ECPixels.dropPixel("checkout",{qty:this.qty,revenue:this.revenue})}catch(t){console.error(t)}}sendAllProductsInTransactionToGA(t,e){this.setClassProducts(t);try{for(let n=0;n<t.length;n++){const r=t[n];this.sendAddProductToGA(r)}return e(),!0}catch(n){return!1}}sendAddProductToGA(t){this.w.audGtag("event","add_to_cart",{currency:t.currencyCode,value:t.price*(t.quantity||1),items:[{item_id:t.id,item_name:t.name,index:0,item_brand:t.brand,price:t.price,quantity:t.quantity||1}]})}sendTransactionEventToGA(t){this.transaction=t;try{this.w.audGtag("event","purchase",{currency:t.currencyCode,transaction_id:t.id,value:t.revenue,tax:t.tax,shipping:t.shipping,items:t.items||[]}),this.w.audGtag("event","page_view",{page_title:t.id}),this.ECPixels.dropPixel("transaction",{qty:(t.items||[]).length||this.qty,revenue:t.revenue||this.revenue,orderId:t.id,items:t.items||[],ltv:t.ltv||""})}catch(e){console.error(e)}}profilerServiceRequest(t){window.au.push({category:"sendUserBehaviour",action:JSON.stringify(t)})}sendErrorToSentry(){return!1}}class kt extends lt{constructor(t,e,n,r){super(t,e,n),this.brand=r}captureProduct(){try{const t=document.querySelectorAll("script");let e="";Array.prototype.forEach.call(t,function(o){const i=o.textContent&&o.textContent.replace(/ /g,"").replace(/\s/g,"");if(i&&i.indexOf("_bcaq.push(['_trackProduct'")!==-1){const L=i.indexOf("_bcaq.push(['_trackProduct'");e=i.substring(L+27+2,i.indexOf("'",L+27+2))}});const n=document.querySelectorAll("meta");let r="",s=0;return Array.prototype.forEach.call(n,o=>{let i=o.getAttribute("property");i==="og:title"&&(r=o.getAttribute("content")),i==="og:price:amount"&&(s=parseFloat(o.getAttribute("content")))}),{id:`${e}-${this.taggerId}`,name:r,price:s,brand:this.brand}}catch(t){return console.error(t),null}}initialize(){if({product:document.getElementsByTagName("body")[0].classList.contains("product")}.product){const e=this.captureProduct();if(e){this.sendViewProductEventToGA(e);const n=document.querySelector("#product_form").querySelector("button");n&&window.au.push({category:"ListenerAttacher",input:n,method:()=>{this.sendAddProductEventToGA(e);const r={event:"addToCart",data:e};this.profilerServiceRequest(r)}})}}}}const Rt=kt;class Ot extends lt{constructor(t,e,n,r){super(t,e,n),this.brand=r}captureProduct(){try{const t=window.digitalData,e=t.product[0];return{id:`${e.productInfo.productID}-${this.taggerId}`,name:t.page.pageInfo.pageName.split(":")[2],price:parseFloat(e.price)||0,currency:t.settings.currencyCode||"",brand:this.brand}}catch(t){return console.error(t),null}}captureProductNames(){const t=document.querySelector("table.checkout-summary-table tbody");if(t){const e=t.querySelectorAll("tr"),n=[];for(let r=0;r<e.length;r++){const o=e[r].childNodes[3].textContent.replace(/\s\s+/g," ").replace(/^\s+|\s+$/g,"");n.push(o)}return n}return[]}captureCart(){try{const t=window.digitalData.cart.item,e=[],n=this.captureProductNames();for(let r=0;r<t.length;r++){const s=t[r],o={id:`${s.productInfo.productID}-${this.taggerId}`,name:r<n.length?n[r]:"N_A",brand:this.brand,price:s.price,currency:digitalData.settings.currencyCode||"",quantity:s.quantity};e.push(o)}return e}catch(t){return console.error(t),null}}calculateRevenue(t){let e=0;for(let n=0;n<t.length;n++){const r=t[n].price.basePrice;e+=parseFloat(r)}return e}captureTransaction(){try{const t=window.digitalData,{page:e,transaction:n}=t,r=this.calculateRevenue(n.item);return{id:`${n.transactionID}-${this.taggerId}`,affiliation:e.pageInfo.server,revenue:r,currency:digitalData.settings.currencyCode||"",tax:n.price.tax,shipping:n.price.shipping,items:n.item}}catch(t){return console.error(t),null}}formatProductsInTransaction(){const t=window.digitalData.transaction.item,e=this.captureProductNames(),n=[];for(let r=0;r<t.length;r++){const s=t[r],o={id:s.productInfo.productID,name:e[r],brand:this.brand,price:s.price.basePrice,quantity:s.quantity};n.push(o)}return n}initialize(){const t={product:document.querySelector(".catalog-product-view, [data-action=Product-Show]","section.product-section"),checkout:document.querySelector(".checkout-cart-index, .checkout-onepage-index, [data-action=Checkout-Login], [data-action=Checkout-Begin], [data-action=Cart-Show"),confirmation:document.querySelector(".checkout-onepage-success, [data-action=Order-Confirm]")},n=["store.warnermusic.com","eurostore.warnermusic.com","mychemicalromance.warnerrecords.com","store.greenday.com","store.rhino.com","www.logicmerch.com","www.ragemerch.com","www.kornwebstore.com","store.systemofadown.com","shop.nitrocircus.com","shop.bukis.com","shop.highlysuspect.net","store.jenniferlopez.com","www.volbeatmerch.com","eu.volbeatmerch.com","shop.quinnxcii.com","usstore.gorillaz.com","neilyoung.warnerrecords.com","store.coheedandcambria.com","store.typeonegative.net","store.dead.net","store.baileyzimmermanmusic.com","store.blakeshelton.com","shop.themarias.us","store.paramore.net","store.twentyonepilots.com","store.melaniemartinezmusic.com","store.shinedown.com","shop.jackharlow.us","store.lizzomusic.com","store.brunomars.com","usstore.edsheeran.com","store.gojira-music.com","store.iggypop.com","store.cardibofficial.com","store.olivertreemusic.com"].includes(window.location.hostname);if(n){const r=document.createElement("script");r.src="https://www.googletagmanager.com/gtag/js?id=AW-11003177162",typeof window.gtag!="function"&&(window.dataLayer=window.dataLayer||[],window.gtag=function(){dataLayer.push(arguments)}),gtag("js",new Date),gtag("config","AW-11003177162"),gtag("event","conversion",{send_to:"AW-11003177162/1rn2CK7W0oIYEMrR3P4o"})}if(t.product){const r=this.captureProduct();if(r){this.sendViewProductEventToGA(r),this.appendPageLoadPixelCheck("view");const s=document.querySelector('.btn-cart, button.add-to-cart-global, button.add-to-cart, button[name="add"]');if(s&&window.au.push({category:"ListenerAttacher",input:s,method:()=>{this.sendAddProductEventToGA(r),this.profilerServiceRequest({event:"addToCart",data:r})}}),s&&n){const o=window.digitalData.product[0].productInfo.productID||"";gtag("event","view_item",{send_to:"AW-11003177162",items:[{id:o,name:r.name,google_business_vertical:"retail"}]}),window.au.push({category:"ListenerAttacher",input:s,method:()=>{gtag("event","add_to_cart",{send_to:"AW-11003177162",items:[{id:o}]}),gtag("event","conversion",{send_to:"AW-11003177162/BZGdCJDN0oIYEMrR3P4o",value:r.price,currency:r.currency})}})}}}if(t.checkout){const r=this.captureCart();if(r?(this.appendPageLoadPixelCheck("checkout"),this.sendAllProductsInCartToGA(r,()=>this.sendCheckoutEventToGA()),this.profilerServiceRequest({event:"checkout",data:r})):this.profilerServiceRequest({event:"checkout",data:{}}),r&&n)for(let s=0;s<r.length;s++)gtag("event","conversion",{send_to:"AW-11003177162/X4IkCLPZ1IIYEMrR3P4o",id:r[s].id.split("-")[0],value:r[s].price,currency:r[s].currency})}if(t.confirmation){const r=this.captureTransaction();if(r){const s=this.formatProductsInTransaction();window.au.push({category:"behavior",action:"purchase-complete"}),this.appendPageLoadPixelCheck("transaction"),this.sendAllProductsInTransactionToGA(s,()=>this.sendTransactionEventToGA(r)),this.profilerServiceRequest({event:"purchase",data:r})}else this.profilerServiceRequest({event:"purchase",data:{}});r&&n&&gtag("event","conversion",{send_to:"AW-11003177162/PpWICKultYIYEMrR3P4o",value:r.revenue,currency:r.currency,transaction_id:window.digitalData.transaction.transactionID})}}}const Dt=Ot;class qt{constructor(t,e){this.brand="",window.location.hostname.match(/smarturl\.it/gi)?this.brand="SmartURL":window.location.hostname.match(/ffm\.to/gi)?this.brand="Feature.fm":this.brand="Linkfire",this.pixels={},window.aupixels?this.pixels=window.aupixels.linkfire:e&&(this.pixels=e),(t==="99"||window.location.hostname.match(/ffm\.to|lnk\.to|samsmith\.world|katy\.to|5sosf\.am|beck\.to|ftrbnd\.co|shady\.sr|theweeknd\.co|bfmv\.com|slnash\.co|www\.ftrbnd\.co|liamp\.co|mexsum\.com|strm\.to|republic\.re|emelisan\.de|lilbaby\.tix\.to|umgn\.us|spcgrls\.uk|best\.ofthe\.best|wmg\.click|smarturl\.it|materia\.to|spinnup\.link/gi))&&(this.initialize(),window.addEventListener("aupixels",()=>{this.updatePixels()}))}sendImpressionToGA(t,e){window.au.push({category:"sendGAEvent",eventCategory:"landing_page",eventAction:t,eventLabel:e})}updatePixels(){(window.aupixels||{}).linkfire&&(this.pixels=window.aupixels.linkfire)}handleClick(t){let e="";this.brand==="Linkfire"&&(e=t.currentTarget.getAttribute("data-player")||t.currentTarget.getAttribute("data-label")),this.brand==="SmartURL"&&(e=t.currentTarget.getAttribute("data-internal-name")),this.brand==="Feature.fm"&&(e=t.currentTarget.getAttribute("service"));const n=t.currentTarget.href;new nt(this.pixels).dropPixel(e),this.sendImpressionToGA(e,n)}initialize(){Array.prototype.forEach.call(document.getElementsByTagName("a"),t=>{window.au.push({category:"ListenerAttacher",input:t,method:this.handleClick.bind(this)})})}}var zt=W(116);function Gt(a,t){const e="14";let n=a.au&&Array.isArray(a.au)?[...a.au]:[];a.auvars.autag_objs=[...(a.auvars.autag_objs||[]).filter(r=>r!=="autag"),"autag"],a.au={push:(...r)=>{a.auvars.autag_objs.forEach(s=>Object.values(a[s]||{}).forEach(o=>o.push(...r)))},l:r=>{a.auvars.autag_objs.forEach(s=>Object.values(a[s]||{}).forEach(o=>o.GlobalListenerHandler(r)))},init:()=>{a.auvars[e].hist=a.auvars[e].hist||[];const r=a.auvars[e].hist.slice(-1)[0];a.autag=a.autag||{},(!a.autag[e]||r!==a.location.href)&&(a.auvars[e].hist.push(a.location.href),a.autag[e]=t({auvars:a.auvars[e]}))}},a.au.init(),n.forEach(r=>a.au.push(r))}docReady(()=>window.au.push({category:"docReady"}));var Bt=Object.defineProperty,Nt=Object.defineProperties,Mt=Object.getOwnPropertyDescriptors,wt=Object.getOwnPropertySymbols,Ht=Object.prototype.hasOwnProperty,Ut=Object.prototype.propertyIsEnumerable,_t=(a,t,e)=>t in a?Bt(a,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):a[t]=e,tt=(a,t)=>{for(var e in t||(t={}))Ht.call(t,e)&&_t(a,e,t[e]);if(wt)for(var e of wt(t))Ut.call(t,e)&&_t(a,e,t[e]);return a},et=(a,t)=>Nt(a,Mt(t));class jt extends Lt{constructor(t){super(et(tt({},t),{decoratorTarget:.95})),this.pixelObj=new nt}docReady(){super.docReady(),this.setupInPageTaxonomy([ct]);const t=new qt(this.auvars.p);this.u.hostname.match(/thewarnermusicshop.com/gi)&&new Rt(this.w,this.auvars.p,this.auvars.t,"Warner Music Ireland").initialize();const{digitalData:{content:{artist:e}={},page:{category:{pageType:n=""}={}}={}}={}}=window;if((n.match(/store/gi)||this.u.href.match(/store|checkout/gi))&&e){const r=new Dt(this.auvars.p,this.auvars.t,e);r.initialize(),window.addEventListener("aupixels",()=>{r.updatePixels()})}if(this.u.hostname==="fr.bic.com"){if(this.u.pathname.match(/checkout/gi)){const r=window.google_tag_manager["GTM-5PV3CVC"].dataLayer.get("ecommerce");if((r||{}).purchase){const s=r.purchase.actionField;s.brand=this.u.hostname,s.currency=r.currencyCode,s.items=r.purchase.products.map(o=>et(tt({},o),{brand:s.brand,name:o.name,price:parseFloat(o.price),quantity:parseFloat(o.quantity)})),this.ecEvent({action:["transaction",s]})}}document.querySelectorAll(".product-item").forEach(r=>{if(!r.querySelector("form"))return;const s=r.querySelector(".product-item-name").innerText,o=r.querySelector("form").getAttribute("data-product-sku"),i=parseFloat(r.querySelector(".price-container > span").getAttribute("data-price-amount")),w={id:o,name:s,price:i,quantity:1};window.au.push({category:"ListenerAttacher",input:r.querySelector('button[type="submit"]'),method:()=>{this.ecEvent({action:["add",w]})}})}),document.querySelectorAll(".product-info-main").forEach(r=>{const s=r.querySelector(".page-title").innerText,o=r.querySelector("form").getAttribute("data-product-sku"),i=parseFloat(r.querySelector(".price-container > span").getAttribute("data-price-amount")),w=parseFloat(r.querySelector("form input#qty").value),L={id:o,name:s,price:i,quantity:w};window.au.push({category:"ListenerAttacher",input:r.querySelector("button#product-addtocart-button"),method:()=>{this.ecEvent({action:["add",L]})}})})}if(this.u.hostname==="store.keithrichards.com"&&this.u.pathname.match(/checkout\/onepage\/success/gi)){const r=(window.digitalData||{}).transaction;if(r){const s={brand:`${this.brand} - Keith Richards`,orderId:r.transactionID||"",revenue:r.item.reduce((o,i)=>parseFloat(i.price.basePrice)*parseFloat(i.quantity)+o,0),items:r.item.map(o=>({id:o.productInfo.productID,name:(document.querySelector(".product-name")||{}).textContent||o.productInfo.productID,price:parseFloat(o.price.basePrice),quantity:parseFloat(o.quantity)}))};this.ecEvent({action:["transaction",s]})}}if(this.u.hostname==="nlechoppa.warnerrecords.com"){if((window._vwo_custom_magento||{}).page_type==="product"){const{product_name:r,product_price:s,product_sku:o}=window._vwo_custom_magento,i={id:`${o}-${this.auvars.t}`,name:r,price:parseFloat(s)};this.ecEvent({action:["product",i]});const w=document.querySelectorAll(".btn-cart");for(let L=0;L<w.length;L++){const at=w[L];window.au.push({category:"ListenerAttacher",input:at,method:()=>{this.ecEvent({action:["add",i]})}})}}if(this.u.pathname.match(/checkout\/onepage\/success/gi)){const r=window.google_tag_manager["UA-150216105-1"].dataLayer.get("ecommerce");if((r||{}).purchase){const s=r.purchase.actionField;s.currency=r.currencyCode,s.brand=this.brand,s.items=r.purchase.products.map(o=>et(tt({},o),{brand:s.brand,name:o.name,price:parseFloat(o.price),quantity:parseFloat(o.quantity)})),this.ecEvent({action:["transaction",s]})}}}document.querySelectorAll('input[type="email"]').forEach(r=>{const s=r.closest("Form"),o=()=>{const i=s.querySelector('input[type="email"]').value,w=window.btoa(i);window.au.push({category:"sendEvent",event:{type:"e",value:w}})};s.addEventListener("submit",o)})}getCustomTags(){let t=[];(document.querySelector("meta[name='qc:primary_tag']")||{}).content==="peaky-blinders"&&t.push("WMG - PEAKY BLINDERS");const{audigentData:e}=window;return e&&(this.decoratorTarget=.95,e.artist?t.push(e.artist):e.artistTags&&(typeof e.artistTags=="string"||e.artistTags instanceof String)?t.push(e.artistTags):e.boardTitle&&t.push(e.boardTitle)),t}getCustomAttributes(){const{digitalData:{content:{artist:t,label:e,sublabel:n}={},page:{category:{primaryCategory:r,pageType:s}={}}={}}={}}=window;let o={artist:t,label:e,sublabel:n,primaryCategory:r,pageType:s};const{audigentData:i}=window;return i&&(o.label=JSON.stringify({organisationId:i.organisationId||"",organisationName:i.organisationName||""}),o.sublabel=JSON.stringify({boardId:i.boardId||"",boardTitle:i.boardTitle||""})),o}ecEvent(t){const{action:e}=t,n=new lt;window.addEventListener("aupixels",()=>{n.updatePixels()});const r=this.u.hostname,s=e[0],o=e[1];if(!s||!o)return!1;if(s==="product"){const i=tt({},o);n.sendViewProductEventToGA(i),n.appendPageLoadPixelCheck("view")}if(s==="add"){const i=et(tt({},o),{brand:r});n.sendAddProductEventToGA(i);const w={event:"addToCart",data:i};window.au.push({category:"behavior",action:"purchase-intent"}),n.profilerServiceRequest(w)}if(s==="transaction"){const i=et(tt({},o),{id:`${o.orderId}-${this.auvars.t}`,affiliation:o.brand||r});let w=i.items||[];w.length&&(w=w.map(L=>({id:L.productId||"",name:L.name||"",brand:L.brand||r,price:L.price||0,quantity:L.quantity||1}))),window.au.push({category:"behavior",action:"purchase-complete"}),n.appendPageLoadPixelCheck("transaction"),n.sendAllProductsInTransactionToGA(w,()=>n.sendTransactionEventToGA(i))}return null}conversion(){this.pixelObj.pixels=window.aupixels||{},this.pixelObj.dropPixel("conversion")}}(function(a){Gt(a,function(t){return new jt(t)})})(window)})()})();})();