/* Copyright (c) 2008-2025, Quantcast Corp. https://www.quantcast.com */ !function(){"use strict";function e(e,t){return t>>>e|t<<32-e}function t(t){return e(2,t)^e(13,t)^e(22,t)}function n(t){return e(6,t)^e(11,t)^e(25,t)}function r(t){return e(7,t)^e(18,t)^t>>>3}function i(e,t,n){return e&t^~e&n}function o(e,t,n){return e&t^e&n^t&n}var a=function(e,t){var n;for(n=0;n>>0;for(p[d-1][14]=Math.floor(v),p[d-1][15]=m,f=0;f>>10)+w[y-7]+r(w[y-15])+w[y-16]>>>0;var _=u[0],x=u[1],S=u[2],b=u[3],q=u[4],P=u[5],I=u[6],E=u[7];for(y=0;y<64;y++){var O=E+n(q)+i(q,P,I)+c[y]+w[y],R=t(_)+o(_,x,S);E=I,I=P,P=q,q=b+O>>>0,b=S,S=x,x=_,_=O+R>>>0}u[0]=u[0]+_>>>0,u[1]=u[1]+x>>>0,u[2]=u[2]+S>>>0,u[3]=u[3]+b>>>0,u[4]=u[4]+q>>>0,u[5]=u[5]+P>>>0,u[6]=u[6]+I>>>0,u[7]=u[7]+E>>>0}var C=[];for(E=0;E{if(this._session)try{e.localStorage.setItem(r,JSON.stringify(this._session))}catch(e){}},c=()=>{try{return e.localStorage.getItem(r),!1}catch(e){return!0}},u=()=>{this._session=(()=>{var t;try{t=e.localStorage.getItem(r)}catch(e){return null}return t?JSON.parse(t):null})()};this.createNewSession=()=>{c()?this._session=null:(this._session=(()=>{m.debug("generating new session");var e,t={eventsCount:0,engagementDurationMs:0,hasConversionEvent:!1,lastVisibleTs:(new Date).getTime()};return{lastEvent:(new Date).getTime(),sid:(e=d(),"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(t){var n=(e+16*Math.random())%16|0;return e=Math.floor(e/16),("x"===t?n:3&n|8).toString(16)}))),engagementState:t,config:{timeoutMs:18e5}}})(),i=!1,s())},this.setSessionTimeoutMs=e=>{void 0===this._session&&u(),this._session&&(this._session.config.timeoutMs=e,s())},this.clear=()=>{this._session=void 0;try{e.localStorage.removeItem(r)}catch(e){}},this.refreshSession=()=>{void 0===this._session&&u(),this._session&&(this._session.lastEvent=(new Date).getTime(),this._session.engagementState.eventsCount++,s())},this.shouldStartNewSession=()=>!c()&&(void 0===this._session&&u(),!this._session||this._session.lastEvent+this._session.config.timeoutMs<(new Date).getTime()),this.getSessionID=()=>(void 0===this._session&&u(),this._session?this._session.sid:null),this.serializeQueryParams=()=>{void 0===this._session&&u();var e=this.getSessionID();if(!e)return";_sd=1";var t="0";this.isEngaged()&&(t="1",o=!0);var n=`;_ses=${e};_seg=${t}`;return i||(n+=";_ss=1"),i=!0,n},this.isEngaged=()=>(void 0===this._session&&u(),!!this._session&&(this._session.engagementState.eventsCount>=2||a>=1e4||this._session.engagementState.hasConversionEvent)),(()=>{var r=null,i=()=>{r=Date.now()},s=()=>{null!==r&&(a+=Date.now()-r,r=null),!o&&this.isEngaged()&&(e.__qc("push",{labels:"_qc.session_engagement",event:"refresh",qacct:n,__qc_use_beacon_api:!0}),o=!0)};"visible"===t.visibilityState&&i(),t.addEventListener("visibilitychange",(()=>{"hidden"===t.visibilityState?s():"visible"===t.visibilityState&&i()})),e.addEventListener("pagehide",s)})()},u={},l=e=>{var t=u[e];return t||(t=new c(window,document,e),u[e]=t,t)};function d(){return(new Date).getTime()}function p(){return new Date}function f(e){var t=new Date(2e3,e,1,0,0,0,0),n=t.toUTCString(),r=new Date(n.substring(0,n.lastIndexOf(" ")-1));return t.getTime()-r.getTime()}function h(){return Math.round(2147483647*Math.random())}var g=/qcdbgc=1$/.test(window.location.toString());function v(e,t){if("undefined"!=typeof console){var n="ERROR"===e?" QuantJS ":" QuantJS ";console.log.apply(console,[n].concat([].slice.call(t)))}}var m={error:function(...e){v("ERROR",e)},debug:function(...e){g&&v("DEBUG",e)}};function w(e,t,n){m.error(e,"\n",t,n),n=n||{};var r={url:window.location.href,version:"b9fb674c-20250529161128",time:d(),browser:navigator.userAgent,sessionId:n.pcode&&"string"==typeof n.pcode?l(n.pcode).getSessionID():null};e&&"string"==typeof e&&(r.label=e),t&&(t.message&&"string"==typeof t.message?r.msg=t.message:"string"==typeof t&&(r.msg=t),t.stack&&"string"==typeof t.stack&&(r.stack=t.stack)),n.pcode&&"string"==typeof n.pcode&&(r.pcode=n.pcode);var i=new XMLHttpRequest;i.open("POST","https://pixel.quantcount.com/tag/error",!0),i.send(JSON.stringify(r))}function y(e){return void 0!==e&&null!=e}function _(e){return{}.toString.call(e).match(/\s([a-zA-Z]+)/)[1].toLowerCase()}function x(e){return e.replace(/\./g,"%2E").replace(/,/g,"%2C")}var S=338688e5,b="__qca",q=["4dcfa7079941","127fdf7967f31","588ab9292a3f","32f92b0727e5","22f9aa38dfd3","a4abfe8f3e04","18b66bc1325c","958e70ea2f28","bdbf0cb4bbb","65118a0d557","40a1d9db1864","18ae3d985046","3b26460f55d"],P=function(e,t){var n,r,i,o,a=null;try{o=e.cookie}catch(e){return null}return o?(r=(n=o.indexOf(t+"="))+t.length+1,n>-1&&((i=o.indexOf(";",r))<0&&(i=o.length),a=o.substring(r,i)),a):null};function I(e,t,n){var r=0,i=P(t,b)||function(e,t){var n=null;try{n=e.localStorage.getItem(t)}catch(e){}if(!n)return null;var r=JSON.parse(n);if(p().getTime()>r.expiry){try{e.localStorage.removeItem(t)}catch(e){}return null}return r.value}(e,b),o=function(e){for(var t,n,r,i=(n=a(2166136261,t=e),r=a(3386659096,t),Math.round(Math.abs(n*r)/65536).toString(16)),o=0;o0?le().pixel.addToBatch(e):le().pixel.enqueuePixel(e)}function O(e){var t,n,r;e&&(Array.isArray(e)?null===(t=window._qevents)||void 0===t||t.push(...e):null===(n=window._qevents)||void 0===n||n.push(e),"function"==typeof e.push&&(e.push=null===(r=window._qevents)||void 0===r?void 0:r.push))}function R(e,t){if(!e)return;const n=le().defaultOptionsForPCodes[e];n&&(t=le().pixel.mergeOptions(t,n)),t&&t.qacct&&delete t.qacct,le().defaultOptionsForPCodes[e]=t}function C(){delete window._qevents}function D(){try{window._qevents=window._qevents||[],le().isInitialized||(window._qevents.forEach((e=>E(e))),(e=window._qevents).push=function(...t){return t.forEach((e=>E(e))),Array.prototype.push.apply(e,t)}),[window._qoptions,window.qcdata,window.smarttagdata,window.ezt].forEach((e=>O(e))),window._qacct&&O({qacct:window._qacct}),le().pcodesFound.forEach((e=>{const t=l(e);t.shouldStartNewSession()&&t.createNewSession()})),le().isInitialized=!0}catch(e){return w("init",e),e}var e}var A="rule";function L(){var e,t,n=[],r=null,i=[];t=document.createElement("script"),e="async"in t?1:t.readyState?2:3,t=null,this.addMultipleRules=function(){var e,t,n,r=!0,i=!1;if(arguments.length){for(n=function(e){r?le().pixel.addToBatch(e):le().pixel.enqueuePixel(e,!0),i=!0},e=0;e1?l[s].slice(1):[]).concat(e.v),o=r.apply(null,i),c={qacct:e.p,event:A},o)Object.prototype.hasOwnProperty.call(o,u)&&"qacct"!==u&&(c[u]=o[u]);t(c)}catch(t){w("evalRule",t,{pcode:e.p});continue}};var o=function(e){return function(e,t){var n,r=e.length;for(n=0;n0?1:0,le().pixel.flushBatch()},this.fetchRulesForNewPcodes=function(){var e,t,n,r=[];for(n=Array.from(le().pcodesFound),e=0;e0||"number"==t||"boolean"==t},B=function(e){var t,n={},r=function(){return void 0===t&&(t=Promise.all(e.map((function(e){return e.consent(n)}))).then((function(e){return e.reduce((function(e,t){return e&&t}),!0)}))),t};this.consent=r,this.wrap=function(e){return function(){var t=this,n=arguments;return r().then((function(r){if(r)return e.apply(t,n)}))}},this.parameters=n};function F(e,t,n){e.addEventListener?e.addEventListener(t,n):"function"==typeof jQuery?jQuery(e).on(t,n):e.attachEvent&&e.attachEvent("on"+t,n)}var U,M,k="__uspapiLocator",J=function(e,t){var n;if("function"==typeof t.__uspapi){var r=t.__uspapi;n=function(){return new Promise((function(e,t){r("getUSPData",1,(function(n){n&&"string"==typeof n.uspString?e(n):t(n)}))})).catch((function(e){return w("uspapi",e),!0}))}}else{e.locate(k);var i={};F(t,"message",(function(e){var t=e.data;if(null!=t){if("string"==typeof t&&"{"==t[0])try{t=JSON.parse(t)}catch(e){return}if(Object.prototype.hasOwnProperty.call(t,"__uspapiReturn")){var n=t.__uspapiReturn,r=n.callId,o=i[r];if(void 0===o)return;n.success?o[0](n.returnValue):o[1](n.returnValue)}}})),n=function(){var t=e.locate(k);if(!t)return Promise.resolve(void 0);var n=d();return new Promise((function(e,r){i[n]=[e,r],t.postMessage({__uspapiCall:{command:"getUSPData",version:1,callId:n}},"*")}))}}this.consent=function(e){return n().then((function(t){if(t&&"string"==typeof t.uspString){var n=t.uspString;return e.us_privacy=n,"Y"!=n[2]}return!0}))}};!function(e){e.getTCData="getTCData",e.ping="ping",e.addEventListener="addEventListener",e.removeEventListener="removeEventListener"}(U||(U={})),function(e){e.getInAppTCData="getInAppTCData",e.getVendorList="getVendorList"}(M||(M={}));var V=[1,3,7,8,9,10],z=[1,3],Q=[1,3],$="__tcfapiReturn",H="__tcfapiCall";function G(e,t){var n=t.gdprApplies,r=t.purpose,i=t.vendor,o=i&&i.consents&&i.consents[11],a=i&&i.legitimateInterests&&i.legitimateInterests[11],s=t.publisher?t.publisher.restrictions:{};return!n||e.map((function(e){var t=!!r.consents&&r.consents[e],n=!!r.legitimateInterests&&r.legitimateInterests[e],i=s&&s[e]?s[e][11]:null;return!(0===i||(!o||!t||2===i||-1==z.indexOf(e)&&1!==i)&&(1===i||!a||!n||-1!=Q.indexOf(e)||-1!=z.indexOf(e)&&2!==i))})).reduce((function(e,t){return e&&t}),!0)}var W=function(e,t){var n;this.consent=function(r){var i,o;return void 0===n&&("function"==typeof t.__tcfapi?(o=t.__tcfapi,i=new Promise((function(e,t){o(U.addEventListener,2,(function(n,r){if(r){var i=n.eventStatus;n.gdprApplies&&"useractioncomplete"!==i&&"tcloaded"!==i||e(n)}else t(n)}))}))):i=function(){var n={},r={};F(t,"message",(function(e){var t=e.data;if(void 0!==t){if("string"==typeof t&&"{"==t[0])try{t=JSON.parse(t)}catch(e){return}if(Object.prototype.hasOwnProperty.call(t,$)){var i=t[$],o=i.callId,a=n[o];if(void 0===a)return;var s=i.returnValue;i.success?"addEventListener"===r[o]&&s.gdprApplies&&"useractioncomplete"!==s.eventStatus&&"tcloaded"!==s.eventStatus||a[0](s):a[1](s)}}}));var i=e.locate("__tcfapiLocator");if(!i)return Promise.resolve({gdprApplies:!1});var o=d();return new Promise((function(e,t){n[o]=[e,t],r[o]=U.addEventListener;var a={[H]:{command:U.addEventListener,version:2,callId:o}};i.postMessage(JSON.stringify(a),"*")}))}(),n=i.then((function(e){var t=!1;return"boolean"==typeof e.gdprApplies?t=e.gdprApplies:"string"==typeof e.gdprApplies&&(t="false"!=e.gdprApplies),t?(r.gdpr=1,r.gdpr_consent=e.tcString):r.gdpr=r.gdpr||0,G(V,e)})).catch((function(e){return w("tcf2",e),r.gdpr=r.gdpr||0,!0}))),n}};W.resolveConsent=G;var X=W;const Y="__gppCall",Z="__gppReturn",K="addEventListener";class ee{constructor(e,t){this.consentPromise=null,this.windows=e,this.win=t}consent(e){return this.consentPromise?this.consentPromise:(t="function"==typeof this.win.__gpp?this.addEventListenerViaAPI(this.win.__gpp,e):this.addEventListenerViaEvent(e),this.consentPromise=t,t);var t}cmpReady(e){return e&&"signalStatus"===e.eventName&&"ready"===e.data||e&&"listenerRegistered"===e.eventName&&!0===e.data&&"ready"===e.pingData.signalStatus}addEventListenerViaAPI(e,t){const n=new Promise((n=>{e("addEventListener",((e,r)=>{if(this.cmpReady(e)){var i=e.pingData.gppString;t.gpp=i,t.gpp_sid=e.pingData.applicableSections.join(","),n(!0)}}))}));return n}addEventListenerViaEvent(e){var t=this.windows.locate("__gppLocator");if(!t)return Promise.resolve(!0);var n={},r={},i=d();return F(window,"message",(t=>{var i=t.data;if(void 0!==i){if("string"==typeof i&&"{"==i[0])try{i=JSON.parse(i)}catch(e){return}if(Object.prototype.hasOwnProperty.call(i,Z)){var o=i[Z],a=o.callId,s=n[a];if(void 0===s)return;var c=o.returnValue;if(o.success){if(r[a]!==K)return;if(!this.cmpReady(c))return;var u=c.pingData.gppString;e.gpp=u,e.gpp_sid=c.pingData.applicableSections.join(","),s[0](!0)}else s[1]()}}})),new Promise((function(e,o){n[i]=[e,o],r[i]=K;var a={[Y]:{command:K,callId:i}};t.postMessage(JSON.stringify(a),"*")}))}}var te=function(e,t){if(void 0===e)throw new Error("window many not be undefined");if(void 0===t)throw new Error("top may not be undefined");t=t?t.self:null,this.depth=0;var n=e.self;for(this.top=n;n!==t;){n=n.parent.self;try{n.location.href&&(this.url=n.location.href,this.top=n)}catch(e){}this.depth++}this.locate=function(n){for(var r=e;;){try{if(n in r.frames)return r}catch(e){}if(r===t)break;r=r.parent.self}}},ne=!1,re=[];function ie(){for(ne=!0;re.length>0;){var e=re.shift();e&&e()}}function oe(e){ne?e():re.push(e)}document.readyState in{complete:!0,interactive:!0}&&(ne=!0),document.addEventListener?(document.addEventListener("DOMContentLoaded",ie,!1),window.addEventListener("load",ie,!1)):document.attachEvent&&window.attachEvent&&(document.attachEvent("onreadystatechange",ie),window.attachEvent("onload",ie));var ae,se=function(e,t){var n=null,r=[];oe((function(){n=e.head||e.getElementsByTagName("head")[0]}));var i=function(e){var t=new Image;return t.src=e,t};return{image:function(e){return m.debug("Loading Image",e),new Promise((function(t,n){var o=i(e);r.push(o),o.onload=function(){t(o),r.shift(),delete o.onload,delete o.onerror},o.onerror=n}))},beacon:function(e){t&&"function"==typeof t.sendBeacon?t.sendBeacon(e):i(e)},script:function(t){return new Promise((function(r,i){oe((function(){var o=function(t,n,r){var i=e.createElement("script");i.type="text/javascript",i.src=t;var o=function(){n(i),i.onreadystatechange=null,i.onload=null,i.onerror=null};return i.onload=o,i.onreadystatechange=function(){i.readyState in{loaded:1,complete:1}&&o()},i.onerror=r,i}(t,r,i);n&&(n.firstChild?n.insertBefore(o,n.firstChild):n.appendChild(o))}))}))}}};function ce(){var e="webpage",t="ad",n="load",r=["fpa","fpan"],i="quantserve.com",o="quantcount.com",a="q_pixel_fire",c=[],u=0,g=new te(window,window.top),v=new se(document,navigator),S=new B([new J(g,window),new X(g,window),new ee(g,window)]),b=function(){var e;if(!(null===(e=null===navigator||void 0===navigator?void 0:navigator.userAgentData)||void 0===e?void 0:e.getHighEntropyValues))return Promise.resolve("");try{return navigator.userAgentData.getHighEntropyValues(["model"]).then((function(e){return encodeURIComponent(e.model)})).catch((function(){return""}))}catch(e){return Promise.resolve("")}}(),P={q_pixel_fire:[]};function E(e){var t=e.pixel,n=e.paramsWhenConsented,s={};S.consent().then((function(t){if(s.target=t?i:o,!t)for(var n=0;n{},removeIdentifier:()=>{},getFirstPartyIDString:function(e){return";fpan="+p+";fpa="+f},getExternalIDString:function(e){return""}}):(o=function(e){var t=e.domain||"",n=new Date(0).toUTCString(),r=new Date(d()+864e5).toUTCString(),i=t.split("."),o="";try{e.cookie}catch(e){return t}for(var a=2;a<=i.length;a++){o=i.slice(-a).join(".");var s=T+"1; path=/; domain="+o+"; expires="+r;try{e.cookie=s}catch(e){return m.error(e),t}if(/_dlt=1\b/.test(e.cookie))return e.cookie=T+"; path=/; domain="+o+"; expires="+n,o}return e.cookie=T+"; path=/; domain="+o+"; expires="+n,t}(document),c=I(window,document,o)),h!==i&&c.removeIdentifier();var w=[j(h),t,";d=".concat(o)+function(){if(h===i){var t="",r=e.pCode;if(r&&"string"==typeof r){var o=l(r);o.shouldStartNewSession()&&o.createNewSession(),o.refreshSession(),t=o.serializeQueryParams()}var a=c.getFirstPartyIDString(u),s=c.getExternalIDString(u);return"".concat(n).concat(a).concat(s).concat(t)}return";uh=u;uht=u"}(),1===g.gdpr?";gdpr=1;gdpr_consent=".concat(g.gdpr_consent):";gdpr=0",g.us_privacy?";us_privacy=".concat(g.us_privacy):"",g.gpp?";gpp=".concat(g.gpp):"",g.gpp_sid?";gpp_sid=".concat(g.gpp_sid):"",";mdl=".concat(r)].join("");return e.useBeaconAPI?v.beacon(w):v.image(w).catch((function(){return null})).then((function(e){e&&"number"==typeof e.width&&3===e.width?c.removeIdentifier():h===i&&c.persistIdentifier(),function(){try{for(var e=new CustomEvent("q_pixel_fire",{detail:{url:w}}),t=0;t=1e3)return encodeURIComponent(n);if(y(i)&&y(i.attributes)&&y(i.content)){const t=null===(e=i.attributes.getNamedItem("property"))||void 0===e?void 0:e.value,r=i.content;if(null!=t&&t.length>3&&"og:"===t.substring(0,3)){n.length>0&&(n+=",");const e=r.length>80?80:r.length;n+=x(t.substring(3,t.length))+"."+x(r.substring(0,e))}}}return encodeURIComponent(n)}();var R=o.fpa,C=o.fpan;a=function(e){for(var t,n=[],i=[],o=[],a=0;a0||this.consumeAggregatePixelBatch()},this.addToBatch=function(r){var i,o,a,s,c,u;if(y(r)){c=r;var l=le().aggregatePixelBatch;for(s in c){if("string"==typeof c[s]){i=r.event||n,o=r.media||e,i!==A&&i!==n||o!==e&&o!==t?this.enqueuePixel(r):(u=r.qacct,r.qacct=u,a=(a=l[u])?this.mergeOptions(a,r):r,l[u]=a);break}"object"==typeof c[s]&&null!=c[s]&&this.addToBatch(c[s])}}},this.doPush=function(e,t){this.enqueuePixel(e,t)},this.handleAddEventListener=function(e,t){Object.prototype.hasOwnProperty.call(P,e)&&P[e].push(t)};var R=["a","ce","cm","dst","enc","je","ns","ogl","rf","_ses","_ss","_seg","_sd","sr","tzo"];function C(e,t,n){var r,i,o,a,s,c;for(r in t)Object.prototype.hasOwnProperty.call(t,r)&&!Object.prototype.hasOwnProperty.call(e,r)&&(i=t[r],a="",c=!!(o=n[r]),(s=!!i)&&(a+=i),s&&c&&(a+=","),c&&(a+=o),e[r]=a)}this.sanitizeConfig=function(e){var t,n;if(e&&"object"===_(e))for(n=0;n