(()=>{(()=>{var yt={3156:function(C,b,_){(function(G,O){C.exports=b=O()})(this,function(){var G=G||function(O,U){var R;if(typeof window!="undefined"&&window.crypto&&(R=window.crypto),typeof self!="undefined"&&self.crypto&&(R=self.crypto),typeof globalThis!="undefined"&&globalThis.crypto&&(R=globalThis.crypto),!R&&typeof window!="undefined"&&window.msCrypto&&(R=window.msCrypto),!R&&typeof _.g!="undefined"&&_.g.crypto&&(R=_.g.crypto),!R)try{R=_(477)}catch(i){}var x=function(){if(R){if(typeof R.getRandomValues=="function")try{return R.getRandomValues(new Uint32Array(1))[0]}catch(i){}if(typeof R.randomBytes=="function")try{return R.randomBytes(4).readInt32LE()}catch(i){}}throw new Error("Native crypto module could not be used to get secure random number.")},W=Object.create||function(){function i(){}return function(h){var v;return i.prototype=h,v=new i,i.prototype=null,v}}(),Y={},q=Y.lib={},X=q.Base=function(){return{extend:function(i){var h=W(this);return i&&h.mixIn(i),(!h.hasOwnProperty("init")||this.init===h.init)&&(h.init=function(){h.$super.init.apply(this,arguments)}),h.init.prototype=h,h.$super=this,h},create:function(){var i=this.extend();return i.init.apply(i,arguments),i},init:function(){},mixIn:function(i){for(var h in i)i.hasOwnProperty(h)&&(this[h]=i[h]);i.hasOwnProperty("toString")&&(this.toString=i.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),B=q.WordArray=X.extend({init:function(i,h){i=this.words=i||[],h!=U?this.sigBytes=h:this.sigBytes=i.length*4},toString:function(i){return(i||N).stringify(this)},concat:function(i){var h=this.words,v=i.words,y=this.sigBytes,I=i.sigBytes;if(this.clamp(),y%4)for(var E=0;E<I;E++){var k=v[E>>>2]>>>24-E%4*8&255;h[y+E>>>2]|=k<<24-(y+E)%4*8}else for(var $=0;$<I;$+=4)h[y+$>>>2]=v[$>>>2];return this.sigBytes+=I,this},clamp:function(){var i=this.words,h=this.sigBytes;i[h>>>2]&=4294967295<<32-h%4*8,i.length=O.ceil(h/4)},clone:function(){var i=X.clone.call(this);return i.words=this.words.slice(0),i},random:function(i){for(var h=[],v=0;v<i;v+=4)h.push(x());return new B.init(h,i)}}),K=Y.enc={},N=K.Hex={stringify:function(i){for(var h=i.words,v=i.sigBytes,y=[],I=0;I<v;I++){var E=h[I>>>2]>>>24-I%4*8&255;y.push((E>>>4).toString(16)),y.push((E&15).toString(16))}return y.join("")},parse:function(i){for(var h=i.length,v=[],y=0;y<h;y+=2)v[y>>>3]|=parseInt(i.substr(y,2),16)<<24-y%8*4;return new B.init(v,h/2)}},M=K.Latin1={stringify:function(i){for(var h=i.words,v=i.sigBytes,y=[],I=0;I<v;I++){var E=h[I>>>2]>>>24-I%4*8&255;y.push(String.fromCharCode(E))}return y.join("")},parse:function(i){for(var h=i.length,v=[],y=0;y<h;y++)v[y>>>2]|=(i.charCodeAt(y)&255)<<24-y%4*8;return new B.init(v,h)}},g=K.Utf8={stringify:function(i){try{return decodeURIComponent(escape(M.stringify(i)))}catch(h){throw new Error("Malformed UTF-8 data")}},parse:function(i){return M.parse(unescape(encodeURIComponent(i)))}},A=q.BufferedBlockAlgorithm=X.extend({reset:function(){this._data=new B.init,this._nDataBytes=0},_append:function(i){typeof i=="string"&&(i=g.parse(i)),this._data.concat(i),this._nDataBytes+=i.sigBytes},_process:function(i){var h,v=this._data,y=v.words,I=v.sigBytes,E=this.blockSize,k=E*4,$=I/k;i?$=O.ceil($):$=O.max(($|0)-this._minBufferSize,0);var F=$*E,z=O.min(F*4,I);if(F){for(var Z=0;Z<F;Z+=E)this._doProcessBlock(y,Z);h=y.splice(0,F),v.sigBytes-=z}return new B.init(h,z)},clone:function(){var i=X.clone.call(this);return i._data=this._data.clone(),i},_minBufferSize:0}),P=q.Hasher=A.extend({cfg:X.extend(),init:function(i){this.cfg=this.cfg.extend(i),this.reset()},reset:function(){A.reset.call(this),this._doReset()},update:function(i){return this._append(i),this._process(),this},finalize:function(i){i&&this._append(i);var h=this._doFinalize();return h},blockSize:512/32,_createHelper:function(i){return function(h,v){return new i.init(v).finalize(h)}},_createHmacHelper:function(i){return function(h,v){return new j.HMAC.init(i,v).finalize(h)}}}),j=Y.algo={};return Y}(Math);return G})},2316:function(C,b,_){(function(G,O){C.exports=b=O(_(3156))})(this,function(G){return function(O){var U=G,R=U.lib,x=R.WordArray,W=R.Hasher,Y=U.algo,q=[],X=[];(function(){function N(P){for(var j=O.sqrt(P),i=2;i<=j;i++)if(!(P%i))return!1;return!0}function M(P){return(P-(P|0))*4294967296|0}for(var g=2,A=0;A<64;)N(g)&&(A<8&&(q[A]=M(O.pow(g,.5))),X[A]=M(O.pow(g,.3333333333333333)),A++),g++})();var B=[],K=Y.SHA256=W.extend({_doReset:function(){this._hash=new x.init(q.slice(0))},_doProcessBlock:function(N,M){for(var g=this._hash.words,A=g[0],P=g[1],j=g[2],i=g[3],h=g[4],v=g[5],y=g[6],I=g[7],E=0;E<64;E++){if(E<16)B[E]=N[M+E]|0;else{var k=B[E-15],$=(k<<25|k>>>7)^(k<<14|k>>>18)^k>>>3,F=B[E-2],z=(F<<15|F>>>17)^(F<<13|F>>>19)^F>>>10;B[E]=$+B[E-7]+z+B[E-16]}var Z=h&v^~h&y,rt=A&P^A&j^P&j,nt=(A<<30|A>>>2)^(A<<19|A>>>13)^(A<<10|A>>>22),Q=(h<<26|h>>>6)^(h<<21|h>>>11)^(h<<7|h>>>25),st=I+Q+Z+X[E]+B[E],ut=nt+rt;I=y,y=v,v=h,h=i+st|0,i=j,j=P,P=A,A=st+ut|0}g[0]=g[0]+A|0,g[1]=g[1]+P|0,g[2]=g[2]+j|0,g[3]=g[3]+i|0,g[4]=g[4]+h|0,g[5]=g[5]+v|0,g[6]=g[6]+y|0,g[7]=g[7]+I|0},_doFinalize:function(){var N=this._data,M=N.words,g=this._nDataBytes*8,A=N.sigBytes*8;return M[A>>>5]|=128<<24-A%32,M[(A+64>>>9<<4)+14]=O.floor(g/4294967296),M[(A+64>>>9<<4)+15]=g,N.sigBytes=M.length*4,this._process(),this._hash},clone:function(){var N=W.clone.call(this);return N._hash=this._hash.clone(),N}});U.SHA256=W._createHelper(K),U.HmacSHA256=W._createHmacHelper(K)}(Math),G.SHA256})},116:()=>{(function(C,b){"use strict";C=C||"docReady",b=b||window;var _=[],G=!1,O=!1;function U(){if(!G){G=!0;for(var x=0;x<_.length;x++)_[x].fn.call(window,_[x].ctx);_=[]}}function R(){document.readyState==="complete"&&U()}b[C]=function(x,W){if(typeof x!="function")throw new TypeError("callback for docReady(fn) must be a function");if(G){setTimeout(function(){x(W)},1);return}else _.push({fn:x,ctx:W});document.readyState==="complete"||!document.attachEvent&&document.readyState==="interactive"?setTimeout(U,1):O||(document.addEventListener?(document.addEventListener("DOMContentLoaded",U,!1),window.addEventListener("load",U,!1)):(document.attachEvent("onreadystatechange",R),window.attachEvent("onload",U)),O=!0)}})("docReady",window)},477:()=>{}},ot={};function V(C){var b=ot[C];if(b!==void 0)return b.exports;var _=ot[C]={exports:{}};return yt[C].call(_.exports,_,_.exports,V),_.exports}V.n=C=>{var b=C&&C.__esModule?()=>C.default:()=>C;return V.d(b,{a:b}),b},V.d=(C,b)=>{for(var _ in b)V.o(b,_)&&!V.o(C,_)&&Object.defineProperty(C,_,{enumerable:!0,get:b[_]})},V.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch(C){if(typeof window=="object")return window}}(),V.o=(C,b)=>Object.prototype.hasOwnProperty.call(C,b);var Ht={};(()=>{"use strict";var C=V(2316),b=V.n(C);const _=document,G=null,O=()=>{const r=_.createElement("a");return r.href=G.location,r},U=(r,e)=>{const t=_.createElement("img");return t.height=1,t.width=1,t.style.display="none",t.src=r,t.onload=e,t.alt="",_.body.appendChild(t)},R=r=>{const e=_.createElement("iframe");return e.width=1,e.height=1,e.style.display="none",e.src=r,_.body.appendChild(e)},x=(r,e=!0)=>{const t=_.createElement("script");return t.type="text/javascript",t.src=r,t.async=e,_.body.appendChild(t)},W={img:U,script:x,iframe:R},Y=(r,e)=>{e||(e=window.location.href),r=r.replace(/[\[\]]/g,"\\$&");let t=new RegExp("[?&]"+r+"(=([^&#]*)|&|#|$)"),n=t.exec(e);return n?n[2]?decodeURIComponent(n[2].replace(/\+/g," ")):"":null},q=r=>{let e="_au_"+r+"=",n=decodeURIComponent(document.cookie).split(";");for(let s=0;s<n.length;s++){let l=n[s];for(;l.charAt(0)==" ";)l=l.substring(1);if(l.indexOf(e)==0)return l.substring(e.length,l.length)}return null},X=(r,e,t)=>(parseInt(q(r))||0)+e<t,B=r=>{const e=/[a-z0-9][a-z0-9-]*\.[a-z]+$/i;let n=/[a-z0-9][a-z0-9-]+\.[a-z.]{2,6}$/i,s=r.split("."),l=s[s.length-1];(l.length>4||l==="com"||l==="org"||l==="net")&&(n=e);let f=r.match(n);return f?f[0]:r},K=(r,e)=>{document.cookie="_au_"+r+"="+e+"; domain="+B(document.location.hostname)+"; path=/; max-age=31536000"};function N(r){let e="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ".split("");r||(r=Math.floor(Math.random()*e.length));let t="";for(let n=0;n<r;n++)t+=e[Math.floor(Math.random()*e.length)];return t}function M(){const r=Math.round(Date.now()/1e3);return"AU1S-0100-"+String(r).padStart(12,"0")+"-"+N(8)+"-"+N(4)}function g(r,e){let t=[];try{if(typeof e.featurePolicy=="undefined")return t;"browsingTopics"in e&&e.featurePolicy.allowsFeature("browsing-topics")&&t.push("BT"),"joinAdInterestGroup"in r.navigator&&e.featurePolicy.allowsFeature("join-ad-interest-group")&&t.push("JI"),"runAdAuction"in r.navigator&&e.featurePolicy.allowsFeature("run-ad-auction")&&t.push("RA"),e.featurePolicy.allowsFeature("attribution-reporting")&&t.push("AR")}catch(n){console.error(n)}return t}function A(r){function e(m,p){var S,w,H,L,T;return H=m&2147483648,L=p&2147483648,S=m&1073741824,w=p&1073741824,T=(m&1073741823)+(p&1073741823),S&w?T^2147483648^H^L:S|w?T&1073741824?T^3221225472^H^L:T^1073741824^H^L:T^H^L}function t(m,p,S,w,H,L,T){return m=e(m,e(e(p&S|~p&w,H),T)),e(m<<L|m>>>32-L,p)}function n(m,p,S,w,H,L,T){return m=e(m,e(e(p&w|S&~w,H),T)),e(m<<L|m>>>32-L,p)}function s(m,p,S,w,H,L,T){return m=e(m,e(e(p^S^w,H),T)),e(m<<L|m>>>32-L,p)}function l(m,p,S,w,H,L,T){return m=e(m,e(e(S^(p|~w),H),T)),e(m<<L|m>>>32-L,p)}function f(m){var p="",S="",w;for(w=0;3>=w;w++)S=m>>>8*w&255,S="0"+S.toString(16),p+=S.substr(S.length-2,2);return p}var a=[],J,et,pt,vt,o,u,c,d;for(r=function(m){m=m.replace(/\r\n/g,`
`);for(var p="",S=0;S<m.length;S++){var w=m.charCodeAt(S);128>w?p+=String.fromCharCode(w):(127<w&&2048>w?p+=String.fromCharCode(w>>6|192):(p+=String.fromCharCode(w>>12|224),p+=String.fromCharCode(w>>6&63|128)),p+=String.fromCharCode(w&63|128))}return p}(r),a=function(m){var p,S=m.length;p=S+8;for(var w=16*((p-p%64)/64+1),H=Array(w-1),L=0,T=0;T<S;)p=(T-T%4)/4,L=T%4*8,H[p]|=m.charCodeAt(T)<<L,T++;return p=(T-T%4)/4,H[p]|=128<<T%4*8,H[w-2]=S<<3,H[w-1]=S>>>29,H}(r),o=1732584193,u=4023233417,c=2562383102,d=271733878,r=0;r<a.length;r+=16)J=o,et=u,pt=c,vt=d,o=t(o,u,c,d,a[r+0],7,3614090360),d=t(d,o,u,c,a[r+1],12,3905402710),c=t(c,d,o,u,a[r+2],17,606105819),u=t(u,c,d,o,a[r+3],22,3250441966),o=t(o,u,c,d,a[r+4],7,4118548399),d=t(d,o,u,c,a[r+5],12,1200080426),c=t(c,d,o,u,a[r+6],17,2821735955),u=t(u,c,d,o,a[r+7],22,4249261313),o=t(o,u,c,d,a[r+8],7,1770035416),d=t(d,o,u,c,a[r+9],12,2336552879),c=t(c,d,o,u,a[r+10],17,4294925233),u=t(u,c,d,o,a[r+11],22,2304563134),o=t(o,u,c,d,a[r+12],7,1804603682),d=t(d,o,u,c,a[r+13],12,4254626195),c=t(c,d,o,u,a[r+14],17,2792965006),u=t(u,c,d,o,a[r+15],22,1236535329),o=n(o,u,c,d,a[r+1],5,4129170786),d=n(d,o,u,c,a[r+6],9,3225465664),c=n(c,d,o,u,a[r+11],14,643717713),u=n(u,c,d,o,a[r+0],20,3921069994),o=n(o,u,c,d,a[r+5],5,3593408605),d=n(d,o,u,c,a[r+10],9,38016083),c=n(c,d,o,u,a[r+15],14,3634488961),u=n(u,c,d,o,a[r+4],20,3889429448),o=n(o,u,c,d,a[r+9],5,568446438),d=n(d,o,u,c,a[r+14],9,3275163606),c=n(c,d,o,u,a[r+3],14,4107603335),u=n(u,c,d,o,a[r+8],20,1163531501),o=n(o,u,c,d,a[r+13],5,2850285829),d=n(d,o,u,c,a[r+2],9,4243563512),c=n(c,d,o,u,a[r+7],14,1735328473),u=n(u,c,d,o,a[r+12],20,2368359562),o=s(o,u,c,d,a[r+5],4,4294588738),d=s(d,o,u,c,a[r+8],11,2272392833),c=s(c,d,o,u,a[r+11],16,1839030562),u=s(u,c,d,o,a[r+14],23,4259657740),o=s(o,u,c,d,a[r+1],4,2763975236),d=s(d,o,u,c,a[r+4],11,1272893353),c=s(c,d,o,u,a[r+7],16,4139469664),u=s(u,c,d,o,a[r+10],23,3200236656),o=s(o,u,c,d,a[r+13],4,681279174),d=s(d,o,u,c,a[r+0],11,3936430074),c=s(c,d,o,u,a[r+3],16,3572445317),u=s(u,c,d,o,a[r+6],23,76029189),o=s(o,u,c,d,a[r+9],4,3654602809),d=s(d,o,u,c,a[r+12],11,3873151461),c=s(c,d,o,u,a[r+15],16,530742520),u=s(u,c,d,o,a[r+2],23,3299628645),o=l(o,u,c,d,a[r+0],6,4096336452),d=l(d,o,u,c,a[r+7],10,1126891415),c=l(c,d,o,u,a[r+14],15,2878612391),u=l(u,c,d,o,a[r+5],21,4237533241),o=l(o,u,c,d,a[r+12],6,1700485571),d=l(d,o,u,c,a[r+3],10,2399980690),c=l(c,d,o,u,a[r+10],15,4293915773),u=l(u,c,d,o,a[r+1],21,2240044497),o=l(o,u,c,d,a[r+8],6,1873313359),d=l(d,o,u,c,a[r+15],10,4264355552),c=l(c,d,o,u,a[r+6],15,2734768916),u=l(u,c,d,o,a[r+13],21,1309151649),o=l(o,u,c,d,a[r+4],6,4149444226),d=l(d,o,u,c,a[r+11],10,3174756917),c=l(c,d,o,u,a[r+2],15,718787259),u=l(u,c,d,o,a[r+9],21,3951481745),o=e(o,J),u=e(u,et),c=e(c,pt),d=e(d,vt);return(f(o)+f(u)+f(c)+f(d)).toLowerCase()}const P=60*1e3,j=60*P,i=24*j;function h(r){var e="au/test";try{return r.localStorage.setItem(e,e),r.localStorage.removeItem(e),!0}catch(t){return!1}}class v{constructor(e){this.w=e,this.now=1*new Date,this.useCookie=!h(this.w)}getCookie(e){return q(e)}get(e,t=!1){if(this.useCookie||t)return this.getCookie(e);let n=this.w.localStorage.getItem("au/"+e);if(n){if(n=JSON.parse(n),n.e>this.now)return n.v;this.w.localStorage.removeItem("au/"+e)}return null}setCookie(e,t,n=P){K(e,t)}set(e,t,n=P,s=!1){this.useCookie||s?this.setCookie(e,t,n):this.w.localStorage.setItem("au/"+e,JSON.stringify({v:t,e:this.now+n}))}}const y=v,I=null,E=null,k="G-FVWZ0RM4DH",$=null,F="https://a.ad.gt",z="https://p.ad.gt",Z="https://pixels.ad.gt",rt="https://seg.ad.gt",nt="https://ids.ad.gt";function Q(r,e,t,n){r.au_seg=t,(n||[]).forEach(l=>l(r,e,t.segments));const s=new CustomEvent("auSegReady",{detail:t});e.dispatchEvent(s)}function st(r,e,t){const n=r.apntag;if(typeof n!="undefined"&&typeof n.setPageOpts=="function"){let s={};typeof n.requests!="undefined"&&typeof n.requests.keywords!="undefined"&&(s=n.requests.keywords),s.AUDIGENT=(s.AUDIGENT||[]).concat(t),n.setPageOpts({keywords:s})}}function ut(r,e,t){r.DTEvent.getEventPromise("dt-connatix-api-ready").then(function([n,s]){n.setMacros({AU_SEG:t})})}function ct(r,e,t){r.googletag=r.googletag||{},r.googletag.cmd=r.googletag.cmd||[],r.googletag.cmd.push(function(){r.googletag.pubads().setTargeting("AU_SEG",t)})}function Ot(r,e,t){try{if(r.self!==r.top){ct(r.top,e,t);return}}catch(n){}ct(r,e,t)}function Pt(r,e,t){e.cookie="au_seg="+t.join("|")+"; domain="+extractDomain(r.location.hostname)+"; path=/; max-age=86400; samesite=None; secure"}function Dt(r,e,t){typeof r.setTargeting=="function"?r.setTargeting("AU_SEG",t):r.console.log("[Audigent] cannot find window.setTargeting function")}var mt=Object.defineProperty,_t=Object.defineProperties,wt=Object.getOwnPropertyDescriptors,dt=Object.getOwnPropertySymbols,Et=Object.prototype.hasOwnProperty,At=Object.prototype.propertyIsEnumerable,lt=(r,e,t)=>e in r?mt(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,D=(r,e)=>{for(var t in e||(e={}))Et.call(e,t)&&lt(r,t,e[t]);if(dt)for(var t of dt(e))At.call(e,t)&&lt(r,t,e[t]);return r},at=(r,e)=>_t(r,wt(e));const it=window,ht=document,ft={"og:title":"title","og:description":"description","og:image":"image","og:url":"url","og:type":"type","og:name":"name","og:locale":"locale"},gt={description:"description",keywords:"keywords"},St="meta[name='audigent:tags']";class Ct{constructor(e){const{auvars:t,decoratorTarget:n,taggerStrategy:s}=e||{};this.w=it,this.u=ht.location||it.location,this.d=ht,this.auvars=t,this.dataStore=new y(it),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=s||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(e){const{options:t}=e||{};return typeof t=="object"?(this.customOptions=D(D({},this.customOptions),t),!0):!1}observeDom(e,t,n={childList:!0}){const s=window.MutationObserver||window.WebKitMutationObserver;if(!(!e||e.nodeType!==1))if(s){const l=new s(t);return l.observe(e,n),l}else window.addEventListener&&(e.addEventListener("DOMNodeInserted",t,!1),e.addEventListener("DOMNodeRemoved",t,!1))}push(e,t,n){if(typeof e=="string")return t&&t!==this.auvars.p?(console.warn("[Audigent] skip .push("+e+"), p is not a match"),!1):(console.warn('[Audigent] deprecated use of "push": please use .push( object )'),(this[e]||(()=>!1)).call(this,n),!0);if(e&&typeof e=="object"){const{fn:s,category:l,partnerId:f}=e,a=s||l;if(f&&f!==this.auvars.p)return console.warn("[Audigent] skip .push("+a+"), partnerId is not a match"),!1;if(s){const J=e.args;return Array.isArray(J)?(J.map(et=>(this[a]||(()=>!1)).call(this,et)),!0):((this[a]||(()=>!1)).call(this,J),!0)}return(this[a]||(()=>!1)).call(this,e),!0}return console.warn("[Audigent] could not execute the required command: please check your syntax"),!1}setupHadron(){var e;const t=(e=this.w.hadron)==null?void 0:e.id;this.auvars.h=t||null}getAudigentId(e){if(e instanceof Function)return e(this.auvars.a),this.auvars.a;const{callback:t}=e||{};return t instanceof Function&&t(this.auvars.a),this.auvars.a}setupSessionId(){let e=this.dataStore.get("sid");e==null&&(e=M()),this.auvars.s=e,this.dataStore.set("sid",e,30*P)}getTaggerComponents(){return null}setupTaggerId(){const e=this.u.hostname.toLowerCase(),t=this.getTags();let n=this.getTaggerComponents();Array.isArray(n)&&n.length>0||(this.taggerStrategy=="FULL_PATH"?n=[e,this.u.pathname,this.auvars.p]:Array.isArray(t)&&t.length>0?n=[e,"["+t.join(",").toLowerCase()+"]",this.auvars.p]:n=[e,"/",this.auvars.p]);const s=A(n.join("")).toLowerCase();return this.auvars.t=s,this.dataStore.set("tid",s,j),s}getMetaAttributes(){const e=this.d.querySelectorAll("meta");let t={url:this.u.href,title:this.d.title};for(const n of e){let s;const l=n.getAttribute("property");if(l!==void 0)l in ft&&(s=ft[l]);else{const f=n.getAttribute("name");f in gt&&(s=gt[f])}if(s!==void 0){const f=n.getAttribute("content");f!==void 0&&typeof f=="string"&&(s==="keywords"?t[s]=f.split(",").map(a=>a.trim()).filter(a=>a.length>0):(!(s in t)||t[s].length<f.length)&&(t[s]=f))}}return t}getCustomAttributes(){return{}}getAttributes(){return D(D(D(D({},this.customAttributes),this.userDefinedAttributes),this.getCustomAttributes()),this.getMetaAttributes())}clearAttributes(){this.userDefinedAttributes={}}setAttributes(e){const{attributes:t}=e||{};return typeof t=="object"?(this.userDefinedAttributes=t,!0):!1}addAttributes(e){const{attributes:t}=e||{};return typeof t=="object"?(this.userDefinedAttributes=D(D({},this.userDefinedAttributes),t),!0):!1}getMetaTags(){const e=document.head.querySelectorAll(St)[0];return e?e.content.split("|").map(t=>t.trim()).filter(t=>t.length>0).map(t=>(this.u.hostname+" > "+t).toUpperCase()):[]}getCustomTags(){return[]}getTags(){return[...this.customTags,...this.userDefinedTags,...this.getCustomTags(),...this.getMetaTags()].filter(t=>typeof t=="string"||t instanceof String).map(t=>t.replace(/,/g,"")).map(t=>t.trim()).filter(t=>t.length>0).map(t=>t.toUpperCase())}clearTags(){this.userDefinedTags=[]}setTags(e){const{tags:t}=e||{};return Array.isArray(t)?(this.userDefinedTags=t,!0):typeof t=="string"?(this.userDefinedTags=[t],!0):!1}addTags(e){const{tags:t}=e||{};return Array.isArray(t)?(this.userDefinedTags=[...t,...this.userDefinedTags],!0):typeof t=="string"?(this.userDefinedTags=[t,...this.userDefinedTags],!0):!1}writeDecoratorRecord(e){const{tags:t,decor_dict:n,attributes:s}=e;this.customTags=[...this.customTags,...t||[]],this.customAttributes=D(D(D({},this.customAttributes),n||{}),s||{})}sendDecoratorRecord(){if(!(this.randNum>=this.decoratorTarget))return null;const t=this.getAttributes(),n=this.getTags(),s=at(D({},t),{tags:n.join(),tagger_id:this.auvars.t,partner_id:this.auvars.p});let l=new XMLHttpRequest,f=`${z}/api/v1/dec`;return l.open("POST",f,!0),l.setRequestHeader("Content-type","application/json"),l.send(JSON.stringify(s)),l}setupGA4(){if(this.auvars.ga4===!0)try{let e=document.createElement("script");e.src="https://www.googletagmanager.com/gtag/js?id="+k+"&l=audDataLayer",e.async=!0,document.head.appendChild(e);const t=this.w;typeof this.w.audGtag!="function"&&(this.w.audDataLayer=this.w.audDataLayer||[],this.w.audGtag=function(){t.audDataLayer.push(arguments)}),audGtag("js",new Date),audGtag("config",k,{user_id:this.auvars.a,dimension3:this.auvars.p,dimension4:this.u.hostname,dimension5:this.u.pathname,groups:"audigent",send_page_view:!1})}catch(e){console.error(e)}}ListenerIterator(e,t){Array.prototype.forEach.call(this.d.querySelectorAll(e),n=>{this.ListenerAttacher({input:n,method:t})})}ListenerAttacher(e){const{input:t,method:n}=e;t!=null&&(t.addEventListener?t.addEventListener("mousedown",n.bind(this),!1):t.attachEvent&&t.attachEvent("mousedown",n))}GlobalListenerHandler(e){this.GlobalHandlers[e.type].forEach(t=>{if(e.target.matches(t.selector))t.method(e);else{let n=e.target,s=!1;for(;n.parentElement&&!s;)n=n.parentElement,s=n.matches(t.selector),s&&t.method(at(D({},e),{target:n}))}})}GlobalListenerAttacher(e,t,n){typeof e=="string"&&(e=[e]),e.forEach(s=>{this.GlobalHandlers[s]=this.GlobalHandlers[s]||[],this.GlobalHandlers[s].push({selector:t,method:n}),document.addEventListener?(document.removeEventListener(s,window.au.l),document.addEventListener(s,window.au.l)):document.attachEvent&&(document.detachEvent(s,window.au.l),document.attachEvent(s,window.au.l))})}sendOffsiteClick(e){const{url:t}=e;U(`${F}/api/v1/off-site-click/${this.auvars.p}?tagger_id=${this.auvars.t}&url=${t}`)}clickHandler(e){let t=e.currentTarget.getAttribute("href");t!==null&&this.internalLinks.includes(this.u.hostname)&&(this.sendOffsiteClick({url:t}),this.sendPageView())}sendUserBehaviour(e){const{action:t}=e,n={click_url:t,tagger_id:this.auvars.t,audigent_id:this.auvars.a,partner_id:this.auvars.p},s=new Blob([JSON.stringify(n)],{type:"application/json"});this.w.navigator.sendBeacon(`${z}/api/v1/ubh`,s)}behavior(e){const t=encodeURIComponent(`${this.u.protocol}//${this.u.hostname}${this.u.pathname}__audigent-behavior-${e.action}${this.u.search}${this.u.hash}`);this.sendOffsiteClick({url:t}),this.sendGAEvent({eventCategory:"audigent-behavior",eventAction:e.action,eventLabel:this.auvars.t})}sendEvent(e){let{event:t,events:n,type:s}=e;if(t=t||n,!t){if(!s)return null;t=D({},e),delete t.category,delete t.partnerId}const l={tagger_id:this.auvars.t,partner_id:this.auvars.p,audigent_id:this.auvars.a,events:Array.isArray(t)?t:[t]};let f=new XMLHttpRequest,a=`${z}/api/v1/event`;return f.open("POST",a,!0),f.setRequestHeader("Content-type","application/json"),f.send(JSON.stringify(l)),""}sendGAEvent(e){const{eventCategory:t,eventAction:n,eventLabel:s,skipSQS:l}=e;this.auvars.ga4===!0&&audGtag("event",t,{eventAction:n,eventLabel:s}),l||this.sendEvent({event:{type:t,eventAction:n,eventLabel:s}})}sendConsent(e){const{consented:t,consentType:n,consentString:s}=e,l="consent_"+n.toLowerCase(),f=this.dataStore.get("consent_"+e.consentType.toLowerCase());if(f&&s==f)return;const a={audigent_id:this.auvars.a,tagger_id:this.auvars.t,partner_id:this.auvars.p,consented:t,consent_type:n,consent_string:s},J=new Blob([JSON.stringify(a)],{type:"application/json"});return this.w.navigator.sendBeacon(`${z}/api/v1/con`,J)&&this.dataStore.set(l,s||"n/a",i),""}pixels(){const e=`${Z}/api/v1/getpixels?tagger_id=${this.auvars.t}&url=${encodeURIComponent(this.u.href)}&code='none'`;x(e,!0)}tags(e){return!1}conversion(e){return!1}sendPageView(e){this.randNum=Math.random();const t=this.setupTaggerId(),n=1*new Date,s={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&&(s.hadron_id=this.auvars.h);const l=(e==null?void 0:e.data)||{},f={category:"pageView",version:"v2",created_at:n,properties:D(D({},s),l)};let a=new XMLHttpRequest,J=`${F}/api/v1/collect`;a.open("POST",J,!0),a.withCredentials=!0,a.setRequestHeader("Content-type","text/plain"),a.send(this.w.btoa(JSON.stringify(f))),this.pixels(),this.sendDecoratorRecord(),this.auvars.ga4===!0&&(audGtag("set",{dimension7:t,send_to:k}),(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:t,send_to:k}))}beopEvent(e){const t=e.partnerId||this.auvars.p;this.sendEvent({event:at(D({},e.data||{}),{partner_id:t,type:"beop"})})}trackEvent(e){return!1}DispatchEvent(e){const{eventName:t}=e,s=(l=>{if(typeof window.CustomEvent=="function")return new CustomEvent(l);const f={bubbles:!1,cancelable:!1,detail:void 0},a=document.createEvent("CustomEvent");return a.initCustomEvent(l,f.bubbles,f.cancelable,f.detail),a})(t);window.dispatchEvent(s)}optout(){U(`${nt}/api/v1/optout?au_id=${this.auvars.a}`)}segCapture(e,t){const n=(e==null?void 0:e.segments)||[];if(n.length>0&&this.randNum>=.9){const s={tagger_id:this.auvars.t,partner_id:this.auvars.p,audigent_id:this.auvars.a,segment_ids:n.join("|"),is_cached:t},l=new Blob([JSON.stringify(s)],{type:"application/json"});return this.w.navigator.sendBeacon(`${z}/api/v1/segs`,l),!0}return!1}setupInPageTaxonomy(e){const t=this,n=this.dataStore.get("seg");if(n!=null){Q(t.w,t.d,n,e),this.segCapture(n,!0);return}let s=new URL(`${rt}/api/v2/segments`);if(s.searchParams.set("url",encodeURIComponent(this.u.href)),s.searchParams.set("partner_id",this.auvars.p),this.auvars.t!==void 0)s.searchParams.set("tagger_id",this.auvars.t);else{const f=this.setupTaggerId();s.searchParams.set("tagger_id",f)}s.searchParams.set("au_id",this.auvars.a);let l=new XMLHttpRequest;l.timeout=1e4,l.onload=function(){if(l.readyState==XMLHttpRequest.DONE&&l.status==200){const f=JSON.parse(l.response);Q(t.w,t.d,f,e),t.dataStore.set("seg",f,j*6),t.segCapture(f,!1)}},l.ontimeout=function(){console.log("[Audigent] Taxonomy Service > Timeout")},l.onerror=function(){console.log("[Audigent] Taxonomy Service > Invalid Response")},l.open("GET",s,!0),l.send()}addUserIdentity(e){if(!e)return!1;const{identityType:t,identityValue:n}=e;if(t===void 0||n===void 0)return!1;if(t==="email"){const s=window.btoa(n);return this.sendEvent({event:{type:"e",value:s}})}else return this.sendEvent({event:{type:"u",[t]:n,identityType:t,identityValue:n}})}addUserEmailAddress(e){if(!e)return!1;const{identityValue:t}=e;if(t===void 0)return!1;let n=t.toLowerCase().trim();if(n.endsWith("@gmail.com")){let l=n.split("@")[0];l=l.split("+")[0],l=l.replace(/\./g,""),n=l+"@gmail.com"}const s=b()(n).toString();return this.addUserIdentity({identityType:"hem_sha256",identityValue:s})}addUserProperty(e){if(!e)return!1;const{propertyName:t,propertyValue:n}=e;return t===void 0||n===void 0?!1:t==="email"?this.addUserIdentity({identityType:"email",identityValue:n}):this.sendEvent({event:{type:"user.property",propertyName:t,propertyValue:n}})}}const Tt=Ct;var Ut=V(116);function bt(r,e){const t="209";let n=r.au&&Array.isArray(r.au)?[...r.au]:[];r.auvars.autag_objs=[...(r.auvars.autag_objs||[]).filter(s=>s!=="autag"),"autag"],r.au={push:(...s)=>{r.auvars.autag_objs.forEach(l=>Object.values(r[l]||{}).forEach(f=>f.push(...s)))},l:s=>{r.auvars.autag_objs.forEach(l=>Object.values(r[l]||{}).forEach(f=>f.GlobalListenerHandler(s)))},init:()=>{r.auvars[t].hist=r.auvars[t].hist||[];const s=r.auvars[t].hist.slice(-1)[0];r.autag=r.autag||{},(!r.autag[t]||s!==r.location.href)&&(r.auvars[t].hist.push(r.location.href),r.autag[t]=e({auvars:r.auvars[t]}))}},r.au.init(),n.forEach(s=>r.au.push(s))}docReady(()=>window.au.push({category:"docReady"}));var Rt=Object.defineProperty,It=(r,e,t)=>e in r?Rt(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,tt=(r,e,t)=>It(r,typeof e!="symbol"?e+"":e,t);class Lt extends Tt{constructor(e){super(e),tt(this,"postTagsHandler",()=>{const t=[];return window.postTags&&window.postTags.split(", ").map(n=>n.toUpperCase()).forEach(n=>t.push(n)),t}),tt(this,"nodeCategoryHandler",()=>(((window.dataLayer||[]).filter(n=>n.nodeCategory)[0]||{}).nodeCategory||[]).map(n=>n.toUpperCase())),tt(this,"nodeTagsAndCategoryHandler",()=>{const t=this.nodeCategoryHandler();return(((window.dataLayer||[]).filter(s=>s.nodeTags)[0]||{}).nodeTags||[]).map(s=>s.toUpperCase()).forEach(s=>!t.includes(s)&&t.push(s)),t}),tt(this,"dataTagsHandler",()=>{const t=document.querySelectorAll("[data-tags]");let n=[];if(t.forEach(s=>{(s.getAttribute("data-tags")||"").split(",").forEach(f=>!n.includes(f.toUpperCase())&&n.push(f.toUpperCase()))}),document.querySelector('meta[property="article:section"]')){const s=document.querySelector('meta[property="article:section"]').getAttribute("content");!n.includes(s.toUpperCase())&&n.push(s.toUpperCase())}return n}),this.prefixesAndHandlers={"www.intouchweekly.com":["IN TOUCH",this.postTagsHandler],"www.lifeandstylemag.com":["LIFE AND STYLE",this.postTagsHandler],"closerweekly.com":["CLOSER WEEKLY",this.postTagsHandler],"www.closerweekly.com":["CLOSER WEEKLY",this.postTagsHandler],"www.j-14.com":["J-14",this.postTagsHandler],"www.powder.com":["POWDER",this.nodeCategoryHandler],"www.snowboarder.com":["SNOWBOARDER",this.nodeCategoryHandler],"www.mensjournal.com":["MENS JOURNAL",this.dataTagsHandler],"www.muscleandfitness.com":["MUSCLE AND FITNESS",this.postTagsHandler],"starmagazine.com":["STAR MAGAZINE",this.nodeCategoryHandler],"www.usmagazine.com":["US WEEKLY",this.dataTagsHandler],"radaronline.com":["RADAR ONLINE",this.nodeCategoryHandler],"okmagazine.com":["OK!",this.nodeCategoryHandler],"www.soapoperadigest.com":["SOAP OPERA DIGEST",this.nodeCategoryHandler],"www.bikemag.com":["BIKE MAG",this.nodeCategoryHandler],"www.surfer.com":["SURFER",this.nodeCategoryHandler],"skateboarding.transworld.net":["SKATEBOARDING",this.nodeCategoryHandler]},this.tagsReader()}tagsReader(){const e=this.prefixesAndHandlers[this.u.hostname];if(e){const t=e[0];let n=e[1]();n=n.filter(s=>s!=="UNCATEGORIZED").map(s=>`${t} - ${s}`),this.push({category:"writeDecoratorRecord",tags:n})}}}(function(r){bt(r,function(e){return new Lt(e)})})(window)})()})();})();