/* 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(t){return e(17,t)^e(19,t)^t>>>10}function o(e,t,n){return e&t^~e&n}function a(e,t,n){return e&t^e&n^t&n}var s=function(e,t){var n;for(n=0;n>>0;for(p[d-1][14]=Math.floor(g),p[d-1][15]=v,f=0;f>>0;var y=u[0],_=u[1],x=u[2],S=u[3],b=u[4],I=u[5],q=u[6],E=u[7];for(w=0;w<64;w++){var P=E+n(b)+o(b,I,q)+c[w]+m[w],O=t(y)+a(y,_,x);E=q,q=I,I=b,b=S+P>>>0,S=x,x=_,_=y,y=P+O>>>0}u[0]=u[0]+y>>>0,u[1]=u[1]+_>>>0,u[2]=u[2]+x>>>0,u[3]=u[3]+S>>>0,u[4]=u[4]+b>>>0,u[5]=u[5]+I>>>0,u[6]=u[6]+q>>>0,u[7]=u[7]+E>>>0}var R=[];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=(()=>{w.debug("generating new session");var e,t={eventsCount:0,engagementDurationMs:0,hasConversionEvent:!1,lastVisibleTs:(new Date).getTime()};return{lastEvent:(new Date).getTime(),sid:(e=p(),"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)})()},l={},d=e=>{var t=l[e];return t||(t=new u(window,document,e),l[e]=t,t)};function p(){return(new Date).getTime()}function f(){return new Date}function h(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 g(){return Math.round(2147483647*Math.random())}var v=/qcdbgc=1$/.test(window.location.toString());function m(e,t){if("undefined"!=typeof console){var n="ERROR"===e?" QuantJS ":" QuantJS ";console.log.apply(console,[n].concat([].slice.call(t)))}}var w={error:function(...e){m("ERROR",e)},debug:function(...e){v&&m("DEBUG",e)}};function y(e,t,n){w.error(e,"\n",t,n),n=n||{};var r={url:window.location.href,version:"24577bb0-20250618145116",time:p(),browser:navigator.userAgent,sessionId:n.pcode&&"string"==typeof n.pcode?d(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 _(e){return void 0!==e&&null!=e}function x(e){return e.replace(/\./g,"%2E").replace(/,/g,"%2C")}var S=338688e5,b="__qca",I=["4dcfa7079941","127fdf7967f31","588ab9292a3f","32f92b0727e5","22f9aa38dfd3","a4abfe8f3e04","18b66bc1325c","958e70ea2f28","bdbf0cb4bbb","65118a0d557","40a1d9db1864","18ae3d985046","3b26460f55d"],q=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 E(e,t,n){var r=0,i=q(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(f().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=s(2166136261,t=e),r=s(3386659096,t),Math.round(Math.abs(n*r)/65536).toString(16)),o=0;o0?de().pixel.addToBatch(e):de().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=de().defaultOptionsForPCodes[e];n&&(t=de().pixel.mergeQEvents(t,n)),t&&t.qacct&&delete t.qacct,de().defaultOptionsForPCodes[e]=t}function C(){delete window._qevents}function D(){try{window._qevents=window._qevents||[],de().isInitialized||(window._qevents.forEach(e=>P(e)),(e=window._qevents).push=function(...t){return t.forEach(e=>P(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}),de().pcodesFound.forEach(e=>{const t=d(e);t.shouldStartNewSession()&&t.createNewSession()}),de().isInitialized=!0}catch(e){return y("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?de().pixel.addToBatch(e):de().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){y("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,de().pixel.flushBatch()},this.fetchRulesForNewPcodes=function(){var e,t,n,r=[];for(n=Array.from(de().pcodesFound),e=0;e0||"number"==t||"boolean"==t},$=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,B,M="__uspapiLocator",k=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 y("uspapi",e),!0})}}else{e.locate(M);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(M);if(!t)return Promise.resolve(void 0);var n=p();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"}(B||(B={}));var J=[1,3,7,8,9,10],V=[1,3],z=[1,3],Q="__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==V.indexOf(e)&&1!==i)&&(1===i||!a||!n||-1!=z.indexOf(e)||-1!=V.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,Q)){var i=t[Q],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=p();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(J,e)}).catch(function(e){return y("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=p();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=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 w.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))})})}}};const se="q_pixel_fire";function ce(){var e="webpage",t="load",n=["fpa","fpan"],r="quantserve.com",i="quantcount.com",o=[],a=0,s=new te(window,window.top),u=new ae(document,navigator),l=new $([new k(s,window),new X(s,window),new ee(s,window)]),v=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("")}}(),m={q_pixel_fire:[]};function S(r,i=!1){var s,u=g(),l="",d="",p="",v="",m="1",w=!1;if(a=0,_(de().api.qpixelsent)||(de().api.qpixelsent=[]),_(r)&&(r.__qc_use_beacon_api&&(w=!0,delete r.__qc_use_beacon_api),s=function(n,r,i){var o,s,u=null;return r&&(u=r.qacct),u&&0!==u.length?(r=de().rules.mergeRuleResult(u,r),delete de().aggregatePixelBatch[u],s=de().defaultOptionsForPCodes[u],_(o=de().pcodeRulesOutcomes[u])||(o=3),function(n,r,i,o){r=r||{};var s=(n?n.media:r.media)||e,c=(n?n.event:r.event)||t;if("ad"===s&&(a=1),s===e&&c===t){for(var u=0;u=1e3)return encodeURIComponent(n);if(_(i)&&_(i.attributes)&&_(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)}(),E=s.fpa,P=s.fpan,O=function(e){for(var t,r=[],i=[],o=[],a=0;a{},removeIdentifier:()=>{},getFirstPartyIDString:function(e){return";fpan="+g+";fpa="+v},getExternalIDString:function(e){return""}}):(f=function(e){var t=e.domain||"",n=new Date(0).toUTCString(),r=new Date(p()+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 w.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),h=E(window,document,f)),i!==r&&h.removeIdentifier();const y=[j(i),t,`;d=${f}`+function(){if(i===r){var t="",n=e.pCode;if(n&&"string"==typeof n){var s=d(n);s.shouldStartNewSession()&&s.createNewSession(),s.refreshSession(),t=s.serializeQueryParams()}var c=h.getFirstPartyIDString(a),u=h.getExternalIDString(a);return`${o}${c}${u}${t}`}return";uh=u;uht=u"}(),1===c.gdpr?`;gdpr=1;gdpr_consent=${c.gdpr_consent}`:";gdpr=0",c.us_privacy?`;us_privacy=${c.us_privacy}`:"",c.gpp?`;gpp=${c.gpp}`:"",c.gpp_sid?`;gpp_sid=${c.gpp_sid}`:"",`;mdl=${n}`].join("");return e.useBeaconAPI?u.beacon(y):u.image(y).catch(function(){return null}).then(function(e){e&&3===e.width?h.removeIdentifier():i===r&&h.persistIdentifier(),function(){try{for(var e=new CustomEvent("q_pixel_fire",{detail:{url:y}}),t=0;t0||q()},addToBatch:function n(r){var i,o,a,s,c;if(_(r)){var u=de().aggregatePixelBatch;for(s in r){if("string"==typeof r[s]){i=r.event||t,o=r.media||e,i!==A&&i!==t||o!==e&&"ad"!==o?S(r):(c=r.qacct,r.qacct=c,a=(a=u[c])?O(a,r):r,u[c]=a);break}"object"==typeof r[s]&&null!=r[s]&&n(r[s])}}},doPush:function(e,t){S(e,t)},handleAddEventListener:function(e,t){Object.prototype.hasOwnProperty.call(m,e)&&m[e].push(t)},sanitizeObject:function(e){var t,n;if(e&&"object"===function(e){return{}.toString.call(e).match(/\s([a-zA-Z]+)/)[1].toLowerCase()}(e))for(n=0;n