/* 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 o(t){return e(17,t)^e(19,t)^t>>>10}function i(e,t,n){return e&t^~e&n}function a(e,t,n){return e&t^e&n^t&n}var c=function(e,t){var n;for(n=0;n>>0;for(p[d-1][14]=Math.floor(v),p[d-1][15]=g,f=0;f>>0;var w=u[0],_=u[1],S=u[2],b=u[3],x=u[4],P=u[5],E=u[6],I=u[7];for(m=0;m<64;m++){var R=I+n(x)+i(x,P,E)+s[m]+y[m],O=t(w)+a(w,_,S);I=E,E=P,P=x,x=b+R>>>0,b=S,S=_,_=w,w=R+O>>>0}u[0]=u[0]+w>>>0,u[1]=u[1]+_>>>0,u[2]=u[2]+S>>>0,u[3]=u[3]+b>>>0,u[4]=u[4]+x>>>0,u[5]=u[5]+P>>>0,u[6]=u[6]+E>>>0,u[7]=u[7]+I>>>0}var q=[];for(I=0;I=2||d>=1e4)},r=null,o=function(){r=Date.now()},i=function(){null!==r&&(d+=Date.now()-r,r=null),!l&&a.isEngaged()&&(e.__qc("push",{labels:"_qc.session_engagement",event:"refresh",qacct:n,__qc_use_beacon_api:!0}),l=!0)},"visible"===t.visibilityState&&o(),t.addEventListener("visibilitychange",function(){"hidden"===t.visibilityState?i():"visible"===t.visibilityState&&o()}),e.addEventListener("pagehide",i)},S={},b=function(e){var t=S[e];return t||(t=new _(window,document,e),S[e]=t,t)},x=338688e5,P="__qca",E=["4dcfa7079941","127fdf7967f31","588ab9292a3f","32f92b0727e5","22f9aa38dfd3","a4abfe8f3e04","18b66bc1325c","958e70ea2f28","bdbf0cb4bbb","65118a0d557","40a1d9db1864","18ae3d985046","3b26460f55d"],I=function(e,t){var n,r,o,i,a=null;try{i=e.cookie}catch(e){return null}return i?(r=(n=i.indexOf(t+"="))+t.length+1,n>-1&&((o=i.indexOf(";",r))<0&&(o=i.length),a=i.substring(r,o)),a):null};function R(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 O,q;!function(e){e.getTCData="getTCData",e.ping="ping",e.addEventListener="addEventListener",e.removeEventListener="removeEventListener"}(O||(O={})),function(e){e.getInAppTCData="getInAppTCData",e.getVendorList="getVendorList"}(q||(q={}));var C=[1,2,3,4,7,8,9,10],T=[1,2,3,4],L=[1,2,3,4],A="__tcfapiReturn";function j(e,t){var n=t.gdprApplies,r=t.purpose,o=t.vendor,i=o&&o.consents&&o.consents[11],a=o&&o.legitimateInterests&&o.legitimateInterests[11],c=t.publisher?t.publisher.restrictions:{};return!n||e.map(function(e){var t=!!r.consents&&r.consents[e],n=!!r.legitimateInterests&&r.legitimateInterests[e],o=c&&c[e]?c[e][11]:null;return!(0===o||(!i||!t||2===o||-1==T.indexOf(e)&&1!==o)&&(1===o||!a||!n||-1!=L.indexOf(e)||-1!=T.indexOf(e)&&2!==o))}).reduce(function(e,t){return e&&t},!0)}var D=function(e,t){var n;this.consent=function(r){var o,i;return void 0===n&&("function"==typeof t.__tcfapi?(i=t.__tcfapi,o=new Promise(function(e,t){i(O.addEventListener,2,function(n,r){if(r){var o=n.eventStatus;n.gdprApplies&&"useractioncomplete"!==o&&"tcloaded"!==o||e(n)}else t(n)})})):o=function(){var n={},r={};R(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,A)){var o=t[A],i=o.callId,a=n[i];if(void 0===a)return;var c=o.returnValue;o.success?"addEventListener"===r[i]&&c.gdprApplies&&"useractioncomplete"!==c.eventStatus&&"tcloaded"!==c.eventStatus||a[0](c):a[1](c)}}});var o=e.locate("__tcfapiLocator");if(!o)return Promise.resolve({gdprApplies:!1});var i=u();return new Promise(function(e,t){var a;n[i]=[e,t],r[i]=O.addEventListener;var c=((a={}).__tcfapiCall={command:O.addEventListener,version:2,callId:i},a);o.postMessage(JSON.stringify(c),"*")})}(),n=o.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",j(C,e)}).catch(function(e){return y("tcf2",e),r.gdpr=r.gdpr||"0",!0})),n}};D.resolveConsent=j;var N=D,U="__gppReturn",k="addEventListener",F=function(){function e(e,t){this.consentPromise=null,this.windows=e,this.win=t}return e.prototype.consent=function(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},e.prototype.cmpReady=function(e){return e&&"signalStatus"===e.eventName&&"ready"===e.data||e&&"listenerRegistered"===e.eventName&&!0===e.data&&"ready"===e.pingData.signalStatus},e.prototype.addEventListenerViaAPI=function(e,t){var n=this;return new Promise(function(r){e("addEventListener",function(e,o){if(n.cmpReady(e)){var i=e.pingData.gppString;t.gpp=i,t.gpp_sid=e.pingData.applicableSections.join(","),r(!0)}})})},e.prototype.addEventListenerViaEvent=function(e){var t=this,n=this.windows.locate("__gppLocator");if(!n)return Promise.resolve(!0);var r={},o={},i=u();return R(window,"message",function(n){var i=n.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,U)){var a=i[U],c=a.callId,s=r[c];if(void 0===s)return;var u=a.returnValue;if(a.success){if(o[c]!==k)return;if(!t.cmpReady(u))return;var l=u.pingData.gppString;e.gpp=l,e.gpp_sid=u.pingData.applicableSections.join(","),s[0](!0)}else s[1]()}}}),new Promise(function(e,t){var a;r[i]=[e,t],o[i]=k;var c=((a={}).__gppCall={command:k,callId:i},a);n.postMessage(JSON.stringify(c),"*")})},e}(),M=F,B="_dlt=";function J(e){return"_qcbt:"+e}var V=function(){function e(e,t,n,r){void 0===r&&(r=window.fetch.bind(window)),this.localStorage=e,this.consentManager=t,this.identityStore=n,this.fetch=r}return e.prototype.getToken=function(e){var t=this;try{var n=JSON.parse(String(this.localStorage.getItem(J(e))));if(n){if(void 0!==n.expires&&new Date(1e3*n.expires)>l())return Promise.resolve(n);this.localStorage.removeItem(J(e))}}catch(e){}return this.consentManager.consent().then(function(n){if(!n)return Promise.reject(new Error("Consent not granted"));var r=new URL("https://pixel.quantserve.com/token"),o=t.identityStore.identifier(),i=t.consentManager.parameters,a=new URLSearchParams({a:e,fpa:o});return Object.keys(i).forEach(function(e){return a.append(e,i[e])}),r.search=a.toString(),t.fetch(r,{credentials:"include"}).then(function(e){return e.json()}).then(function(n){try{t.localStorage.setItem(J(e),JSON.stringify(n))}catch(e){}return n})})},e}(),z=new 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}}}(window,window.top),Q=new function(e){var t={},n=function(){return Promise.all(e.map(function(e){return e.consent(t)})).then(function(e){return e.reduce(function(e,t){return e&&t},!0)})};this.consent=n,this.wrap=function(e){return function(){var t=this,r=arguments;return n().then(function(n){if(n)return e.apply(t,r)})}},this.parameters=t}([new function(e,t){var n={};this.consent=function(r){return function(){if("function"==typeof t.__uspapi){var r=t.__uspapi;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})}var o=e.locate("__uspapiLocator");if(void 0===n&&(n={},R(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 r=t.__uspapiReturn,o=r.callId,i=n[o];if(void 0===i)return;r.success?i[0](r.returnValue):i[1](r.returnValue)}}})),!o)return Promise.resolve(void 0);var i=u();return new Promise(function(e,t){n[i]=[e,t],o.postMessage({__uspapiCall:{command:"getUSPData",version:1,callId:i}},"*")})}().then(function(e){if(e&&"string"==typeof e.uspString){var t=e.uspString;return r.us_privacy=t,"Y"!=t[2]}return!0})}}(z,window),new N(z,window),new M(z,window)]),W=function(e){var t=e.domain||"",n=new Date(0).toUTCString(),r=new Date(u()+864e5).toUTCString(),o=t.split("."),i=t;try{e.cookie}catch(e){return t}for(var a=2;a<=o.length;a++){i=o.slice(-a).join(".");var c=B+"1; path=/; domain="+i+"; expires="+r;try{e.cookie=c}catch(e){return g.error(e),t}if(/_dlt=1\b/.test(e.cookie))return e.cookie=B+"; path=/; domain="+i+"; expires="+n,i}return e.cookie=B+"; path=/; domain="+i+"; expires="+n,t}(document),K=function(e,t,n){var r=0,o="",i=function(e){for(var t,n,r,o=(n=c(2166136261,t=e),r=c(3386659096,t),Math.round(Math.abs(n*r)/65536).toString(16)),i=0;ir.expiry){try{e.localStorage.removeItem(t)}catch(e){}return null}return r.value}(e,P),o||(r=1,o="undefined"!=typeof crypto&&"function"==typeof crypto.randomUUID?"P1-"+crypto.randomUUID():"P0-"+p()+"-"+u())};return a(),{reload:a,persistIdentifier:function(){if(1===r&&!i){var a=[P,"=",o,"; expires=",new Date(u()+x).toUTCString(),"; path=/; domain=",n].join("");try{t.cookie=a}catch(e){}!function(e,t,n,r){var o={value:n,expiry:u()+r};try{e.localStorage.setItem(t,JSON.stringify(o))}catch(e){}}(e,P,o,x)}},removeIdentifier:function(){try{t.cookie=P+"=; path=/; expires=Thu, 01 Jan 1970 00:00:01 GMT;"}catch(e){g.error(e)}try{e.localStorage.removeItem(P)}catch(e){}},identifier:function(){return o},getFirstPartyIDString:function(e){return i||1===e?";fpan=u;fpa=":";fpan="+r+";fpa="+o},getExternalIDString:function(e){if(i||1===e)return"";var n=I(t,"_pubcid")||I(t,"_sharedID"),r=I(t,"_pubcid_optout");return!I(t,"_pbjs_id_optout")&&"1"!==r&&n?";pbc="+n:";pbc="},getDomain:function(){return n}}}(window,window.document,W),Y=new V(function(e){try{return e.localStorage}catch(e){return{getItem:function(e){return null},setItem:function(e,t){},removeItem:function(e){}}}}(window),Q,K,window.fetch.bind(window)),G=!1,H=[];function $(){for(G=!0;H.length>0;){var e=H.shift();e&&e()}}function X(e){G?e():H.push(e)}document.readyState in{complete:!0,interactive:!0}&&(G=!0),document.addEventListener?(document.addEventListener("DOMContentLoaded",$,!1),window.addEventListener("load",$,!1)):document.attachEvent&&window.attachEvent&&(document.attachEvent("onreadystatechange",$),window.attachEvent("onload",$));var Z=function(e,t){var n=null,r=[];X(function(){n=e.head||e.getElementsByTagName("head")[0]});var o=function(e){var t=new Image;return t.src=e,t};return{image:function(e){return g.debug("Loading Image",e),new Promise(function(t,n){var i=o(e);r.push(i),i.onload=function(){t(i),r.shift(),delete i.onload,delete i.onerror},i.onerror=n})},beacon:function(e){t&&"function"==typeof t.sendBeacon?t.sendBeacon(e):o(e)},script:function(t){return new Promise(function(r,o){X(function(){var i=function(t,n,r){var o=e.createElement("script");o.type="text/javascript",o.src=t;var i=function(){n(o),o.onreadystatechange=null,o.onload=null,o.onerror=null};return o.onload=i,o.onreadystatechange=function(){o.readyState in{loaded:1,complete:1}&&i()},o.onerror=r,o}(t,r,o);n&&(n.firstChild?n.insertBefore(i,n.firstChild):n.appendChild(i))})})}}},ee=function(){return ee=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0?_e().pixel.addToBatch(e):_e().pixel.enqueuePixel(e),"function"==typeof e.token_callback&&n&&(t=n,Y.getToken(t)).then(e.token_callback).catch(function(){}),!1===_e().cstapled){_e().cstapled=!0;var r=new Z(document,navigator).image;ce(_e().pcodesFound[0],window.fetch,r).catch(function(e){e!==ae&&v("cookieStapling",e&&e.message||String(e))})}}function ne(e){var t,n,r;e&&(Array.isArray(e)?null===(t=window._qevents)||void 0===t||t.push.apply(t,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 re(e,t){if(e){var n=_e().defaultOptionsForPCodes[e];n&&(t=_e().pixel.mergeQEvents(t,n)),t&&t.qacct&&delete t.qacct,_e().defaultOptionsForPCodes[e]=t}}function oe(){delete window._qevents}var ie,ae="no consent",ce=function(e,t,n){return r=void 0,o=void 0,a=function(){return function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function c(c){return function(s){return function(c){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,c[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&c[0]?r.return:c[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,c[1])).done)return o;switch(r=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return a.label++,{value:c[1],done:!1};case 5:a.label++,r=c[1],c=[0];continue;case 7:c=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==c[0]&&2!==c[0])){a=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]=0},e.prototype.addProcessedPCode=function(e){this.hasRules(e)||this.pCodesWithRules.push(e)},e}(),de=function(){function e(){this.EVENT_TYPE_RULE="rule"}return e.prototype.processConditions=function(e,t){for(var n=this,r=e&&e.conditions?e.conditions.length:0,o=function(r){var o=void 0,a=void 0;try{var c=function(o){e.flags[r]=!0,e.values[r]=o,n.evaluateRule(e,t)},s=e.conditions[r];"function"==typeof s?(o=s,a=[c]):(o=s[0],(a=s.slice(1)).splice(0,0,c)),o.apply(null,a)}catch(n){y("processRule",n,{pcode:e.pcode}),e.flags[r]=!0,e.values[r]=!1,i.evaluateRule(e,t)}},i=this,a=0;a1?e[o].slice(1):[]).concat(n),c=i.apply(null,a),s={qacct:t.pcode,event:this.EVENT_TYPE_RULE};for(var u in c)Object.prototype.hasOwnProperty.call(c,u)&&"qacct"!==u&&(s[u]=c[u]);r(s)}catch(e){y("evalRule",e,{pcode:t.pcode});continue}},e.prototype.andReducer=function(e){for(var t=(null==e?void 0:e.length)||0,n=0;n0?1:0,_e().pixel.flushBatch()},e.prototype.fetchRulesForNewPcodes=function(){for(var e=[],t=0,n=_e().pcodesFound;t0||"number"==t||"boolean"==t},ye="q_pixel_fire";function me(){var e="webpage",t="load",n=["fpa","fpan"],r="pixel.quantserve.com",o="pixel.quantcount.com",i=[],a=0,c=new Z(document,navigator),u=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("")}}(),f={q_pixel_fire:[]};function h(r,o){void 0===o&&(o=!1);var c,u=p(),f="",h="",v="",y="",_="1",S=!1;if(a=0,m(_e().api.qpixelsent)||(_e().api.qpixelsent=[]),m(r)&&(r.__qc_use_beacon_api&&(S=!0,delete r.__qc_use_beacon_api),c=function(n,r,o){var i,c,u=null;return r&&(u=r.qacct),u&&0!==u.length?(r=_e().rules.mergeRuleResult(u,r),delete _e().aggregatePixelBatch[u],c=_e().defaultOptionsForPCodes[u],m(i=_e().pcodeRulesOutcomes[u])||(i=ie.UNKNOWN),function(n,r,o,i){r=r||{};var c=(n?n.media:r.media)||e,s=(n?n.event:r.event)||t;if("ad"===c&&(a=1),c===e&&s===t){for(var u=0;u<_e().api.qpixelsent.length;u++)if(_e().api.qpixelsent[u]===i&&!o)return!0;_e().api.qpixelsent.push(i)}return!1}(r,c,o,u)?null:function(e,t,n,r,o){var i,a={},c=null,u=/^[^\s@]+@[^\s@]+\.[^\s@]+$/,l=/^[A-Fa-f0-9]{64}$/,d=2;for(i in t)Object.prototype.hasOwnProperty.call(t,i)&&ge(t[i])&&("uid"!==i&&"uh"!==i||void 0===t[i]?"qacct"!==i&&(a[i+e]=encodeURIComponent(t[i])):(t[i].match(l)?(d=1,c=t[i].toLowerCase()):(t[i].match(u)&&(d=0,t[i]=t[i].toLowerCase()),""!==t[i]&&(c=s(t[i]))),delete t[i]));for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&ge(n[i])&&!a[i+e]&&(a[i+e]=encodeURIComponent(n[i]));return a["rf"+e]=""+o,"string"==typeof c&&(t.uh=c,a["uh"+e]=encodeURIComponent(c)),a["uht"+e]=""+d,a["a"+e]=r,a}("",r,c,u,i)):null}(0,r,o)),c){var b=navigator.cookieEnabled?"1":"0";m(window._qmeta)&&null!=window._qmeta&&(f=";m="+encodeURIComponent(window._qmeta),delete window._qmeta);var x=l(),P=d(0)!==d(6)?1:0;window.location&&window.location.href&&(h=encodeURIComponent(window.location.href)),document&&document.referrer&&(y=encodeURIComponent(document.referrer)),window.self===window.top&&(_="0"),c.url?v=h:c.url=h,c.ref||(c.ref=y||"");var E=function(){for(var e,t=document.getElementsByTagName("meta"),n="",r=0;r=1e3)return encodeURIComponent(n);if(m(o)&&m(o.attributes)&&m(o.content)){var i=null===(e=o.attributes.getNamedItem("property"))||void 0===e?void 0:e.value,a=o.content;if(null!=i&&i.length>3&&"og:"===i.substring(0,3)){n.length>0&&(n+=",");var c=a.length>80?80:a.length;n+=w(i.substring(3,i.length))+"."+w(a.substring(0,c))}}}return encodeURIComponent(n)}(),I=c.fpa,R=c.fpan,O=function(e){for(var t,r=[],o=[],i=[],a=0;a0||_()},addToBatch:function n(r){var o,i,a,c,s;if(m(r)){var u=_e().aggregatePixelBatch;for(c in r){if("string"==typeof r[c]){o=r.event||t,i=r.media||e,"rule"!==o&&o!==t||i!==e&&"ad"!==i?h(r):(s=r.qacct,r.qacct=s,a=(a=u[s])?x(a,r):r,u[s]=a);break}"object"==typeof r[c]&&null!=r[c]&&n(r[c])}}},doPush:function(e,t){h(e,t)},handleAddEventListener:function(e,t){Object.prototype.hasOwnProperty.call(f,e)&&f[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;n0?_e().pcodesFound[0]:null})},hasRules:function(){return _e().rules.hasRules.apply(_e().rules,arguments)},defaults:re,__qc:function(){return!0}}[e].apply(null,[].slice.call(arguments,1))}catch(e){return y("api",e,{pcode:_e().pcodesFound.length>0?_e().pcodesFound[0]:null}),!1}},this.api.v=2,this.api.qpixelsent=[],window.quantserve=window.quantserve||se,this.api.quantserve=se,this.api}function _e(){return ve}void 0!==window.Promise&&(void 0===window.__qc&&(window.__qc=new function(e,t,n){try{return new we(e,t,n)}catch(e){return y("construct",e),e}}(window,window.document,window.navigator)),window.__qc("init")),window.__qc}();