/* Copyright (c) 2008-2023, Quantcast Corp. https://www.quantcast.com/legal/license */ !function(){"use strict";var e="qcSes";function t(){var e=r();return"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)}))}var n=function(){try{if(!window.sessionStorage)return t()}catch(e){return t()}var n;try{if(n=window.sessionStorage.getItem(e))return n}catch(e){return t()}n=t();try{window.sessionStorage.setItem(e,n)}catch(e){}return n}();function r(){return(new Date).getTime()}function o(){return new Date}function a(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 i(){return Math.round(2147483647*Math.random())}var c=/qcdbgc=1$/.test(window.location.toString());function u(e,t){if("undefined"!=typeof console){var n="ERROR"===e?" QuantJS ":" QuantJS ";console.log.apply(console,[n].concat([].slice.call(t)))}}var s=function(){for(var e=[],t=0;t0;){var e=g.shift();e&&e()}}function m(e){v?e():g.push(e)}document.readyState in{complete:!0,interactive:!0}&&(v=!0),document.addEventListener?(document.addEventListener("DOMContentLoaded",h,!1),window.addEventListener("load",h,!1)):document.attachEvent&&window.attachEvent&&(document.attachEvent("onreadystatechange",h),window.attachEvent("onload",h));var y=function(e,t){var n=null,r=[];m((function(){n=t.head||t.getElementsByTagName("head")[0]}));var o=function(e){var t=new Image;return t.src=e,t};return{image:function(e){return f("Loading Image",e),new Promise((function(t,n){var a=o(e);r.push(a),a.onload=function(){t(a),r.shift(),delete a.onload,delete a.onerror},a.onerror=n}))},beacon:function(t){var n=e.navigator;n&&n.sendBeacon?n.sendBeacon(t):o(t)},script:function(e){return new Promise((function(r,o){m((function(){var a=function(e,n,r){var o=t.createElement("script");o.type="text/javascript",o.src=e;var a=function(){n(o),o.onreadystatechange=null,o.onload=null,o.onerror=null};return o.onload=a,o.onreadystatechange=function(){o.readyState in{loaded:1,complete:1}&&a()},o.onerror=r,o}(e,r,o);n&&(n.firstChild?n.insertBefore(a,n.firstChild):n.appendChild(a))}))}))}}};function _(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 w,q,b="__uspapiLocator",x=function(e,t){var n;if("function"==typeof t.__uspapi){var o=t.__uspapi;n=function(){return new Promise((function(e,t){o("getUSPData",1,(function(n){n&&"string"==typeof n.uspString?e(n):t(n)}))})).catch((function(e){return l("uspapi: unsuccessful",e),!0}))}}else{e.locate(b);var a={};_(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=a[r];if(void 0===o)return;n.success?o[0](n.returnValue):o[1](n.returnValue)}}})),n=function(){var t=e.locate(b);if(!t)return Promise.resolve(void 0);var n=r();return new Promise((function(e,r){a[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}))}},S=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(e){e.getTCData="getTCData",e.ping="ping",e.addEventListener="addEventListener",e.removeEventListener="removeEventListener"}(w||(w={})),function(e){e.getInAppTCData="getInAppTCData",e.getVendorList="getVendorList"}(q||(q={}));var O="tcf2",I=[1,3,7,8,9,10],E=[1,3],P=[1,3],C="__tcfapiReturn";function j(e,t){var n=t.gdprApplies,r=t.purpose,o=t.vendor,a=o&&o.consents&&o.consents[11],i=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||(!a||!t||2===o||-1==E.indexOf(e)&&1!==o)&&(1===o||!i||!n||-1!=P.indexOf(e)||-1!=E.indexOf(e)&&2!==o))})).reduce((function(e,t){return e&&t}),!0)}var R=function(e,t){var n;this.consent=function(o){var a,i;return void 0===n&&("function"==typeof t.__tcfapi?(i=t.__tcfapi,a=new Promise((function(e,t){i(w.addEventListener,2,(function(n,r){if(r){var o=n.eventStatus;n.gdprApplies&&"useractioncomplete"!==o&&"tcloaded"!==o||e(n)}else t(n)}))}))):a=function(){var n={},o={};_(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,C)){var r=t[C],a=r.callId,i=n[a];if(void 0===i)return;var c=r.returnValue;r.success?"addEventListener"===o[a]&&c.gdprApplies&&"useractioncomplete"!==c.eventStatus&&"tcloaded"!==c.eventStatus||i[0](c):i[1](c)}}else l(O+": Recieved undefined message",{})}));var a=e.locate("__tcfapiLocator");if(!a)return Promise.resolve({gdprApplies:!1});var i=r();return new Promise((function(e,t){var r;n[i]=[e,t],o[i]=w.addEventListener;var c=((r={}).__tcfapiCall={command:w.addEventListener,version:2,callId:i},r);a.postMessage(JSON.stringify(c),"*")}))}(),n=a.then((function(e){var t=!1;return"boolean"==typeof e.gdprApplies?t=e.gdprApplies:"string"==typeof e.gdprApplies&&(t="false"!=e.gdprApplies),t?(o.gdpr=1,o.gdpr_consent=e.tcString):o.gdpr=o.gdpr||0,j(I,e)})).catch((function(e){return l(O+": unsuccessful",e),o.gdpr=o.gdpr||0,!0}))),n}};R.resolveConsent=j;var D=R,L="__gppReturn",A="addEventListener",T=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"signalStatus"===e.eventName&&"ready"===e.data||"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 a=e.pingData.gppString;t.gpp=a,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 o={},a={},i=r();return _(window,"message",(function(n){var r=n.data;if(void 0!==r){if("string"==typeof r&&"{"==r[0])try{r=JSON.parse(r)}catch(e){return}if(Object.prototype.hasOwnProperty.call(r,L)){var i=r[L],c=i.callId,u=o[c];if(void 0===u)return;var s=i.returnValue;if(i.success){if(a[c]!==A)return;if(!t.cmpReady(s))return;var f=s.pingData.gppString;e.gpp=f,e.gpp_sid=s.pingData.applicableSections.join(","),u[0](!0)}else u[1]()}}else l("gpp: Recieved undefined message",{})})),new Promise((function(e,t){var r;o[i]=[e,t],a[i]=A;var c=((r={}).__gppCall={command:A,callId:i},r);n.postMessage(JSON.stringify(c),"*")}))},e}();function U(e,t){return t>>>e|t<<32-e}function M(e){return U(2,e)^U(13,e)^U(22,e)}function N(e){return U(6,e)^U(11,e)^U(25,e)}function z(e){return U(7,e)^U(18,e)^e>>>3}function k(e,t,n){return e&t^~e&n}function V(e,t,n){return e&t^e&n^t&n}var J=function(e,t){var n;for(n=0;n>>0;for(i[a-1][14]=Math.floor(f),i[a-1][15]=l,c=0;c>>10)+p[d-7]+z(p[d-15])+p[d-16]>>>0;var v=r[0],g=r[1],h=r[2],m=r[3],y=r[4],_=r[5],w=r[6],q=r[7];for(d=0;d<64;d++){var b=q+N(y)+k(y,_,w)+n[d]+p[d],x=M(v)+V(v,g,h);q=w,w=_,_=y,y=m+b>>>0,m=h,h=g,g=v,v=b+x>>>0}r[0]=r[0]+v>>>0,r[1]=r[1]+g>>>0,r[2]=r[2]+h>>>0,r[3]=r[3]+m>>>0,r[4]=r[4]+y>>>0,r[5]=r[5]+_>>>0,r[6]=r[6]+w>>>0,r[7]=r[7]+q>>>0}var S=[];for(q=0;q0||"number"==t||"boolean"==t},F=338688e5,H="__qca",$=["4dcfa7079941","127fdf7967f31","588ab9292a3f","32f92b0727e5","22f9aa38dfd3","a4abfe8f3e04","18b66bc1325c","958e70ea2f28","bdbf0cb4bbb","65118a0d557","40a1d9db1864","18ae3d985046","3b26460f55d"],G=function(e,t){var n,r,o,a,i=null;try{a=e.cookie}catch(e){return null}return a?(r=(n=a.indexOf(t+"="))+t.length+1,n>-1&&((o=a.indexOf(";",r))<0&&(o=a.length),i=a.substring(r,o)),i):null};function W(e,t,n){var r=0,a=G(t,H)||function(e,t){var n=null;try{n=e.localStorage.getItem(t)}catch(e){}if(!n)return null;var r=JSON.parse(n);if(o().getTime()>r.expiry){try{e.localStorage.removeItem(t)}catch(e){}return null}return r.value}(e,H),c=function(e){for(var t,n,r,o=(n=J(2166136261,t=e),r=J(3386659096,t),Math.round(Math.abs(n*r)/65536).toString(16)),a=0;a<$.length;a++)if($[a]===o)return!0;return!1}(n);return a||(r=1,a="P0-"+i()+"-"+o().getTime()),{SD:$,persistIdentifier:function(){if(1===r&&!c){var i=[H,"=",a,"; expires=",new Date(o().getTime()+F).toUTCString(),"; path=/; domain=",n].join("");try{t.cookie=i}catch(e){s(e)}!function(e,t,n,r){var a={value:n,expiry:o().getTime()+r};try{e.localStorage.setItem(t,JSON.stringify(a))}catch(e){}}(e,H,a,F)}},removeIdentifier:function(){try{t.cookie=H+"=; path=/; expires=Thu, 01 Jan 1970 00:00:01 GMT;"}catch(e){s(e)}try{e.localStorage.removeItem(H)}catch(e){}},getFirstPartyIDString:function(e){return c||1===e?";fpan=u;fpa=":";fpan="+r+";fpa="+a},getExternalIDString:function(e){if(c||1===e)return"";var n=G(t,"_pubcid")||G(t,"_sharedID"),r=G(t,"_pubcid_optout");return!G(t,"_pbjs_id_optout")&&"1"!==r&&n?";pbc="+n:";pbc="}}}function X(e,t,c){var u,v,g,h,m,_,w,q,b,O,I,E,P,C,j,R,L,A,U,M,N,z,k,V,J,F,H,G,X,Y,Z,K,ee,te,ne,re,oe,ae,ie="quantserve.com",ce="quantcount.com",ue=new d(e,e.top),se=new y(e,t),fe=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("")}}(),le=new S([new x(ue,e),new D(ue,e),new T(ue,e)]),pe="q_pixel_fire",de={q_pixel_fire:[]},ve=function(e,t){de.hasOwnProperty(e)&&de[e].push(t)},ge=["a","ce","cm","dst","enc","je","ns","ogl","rf","ses","sr","tzo"],he=["fpa","fpan"],me="rule",ye="webpage",_e="ad",we="load",qe=!1,be=!1,xe=0,Se=[],Oe=[],Ie=[],Ee=[],Pe={},Ce=0,je=null,Re={},De={},Le=[].slice;ae=t.createElement("script"),u="async"in ae?1:ae.readyState?2:3,ae=null;var Ae=function(e){try{return{init:h,clean:Ue,hash:B,push:m,addEventListener:ve,rules:k,require:function(){l("deprecated api.require fn called","api",{pcode:Ee[0]})},hasRules:J,defaults:X,__qc:function(){return!0}}[e].apply(null,Le.call(arguments,1))}catch(e){return l("api",e,{pcode:Ee[0]}),!1}};Ae.evts=0,Ae.v=2,Ae.SD=$,Ae.qpixelsent=[];var Te=function(e){var t,n=e&&e.length||0;for(t=0;t0)){for(e in A(),De)Object.prototype.hasOwnProperty.call(De,e)&&De[e]&&(t=De[e],n.push(t),delete De[e]);if(1==n.length&&_(n[0]),n.length>1)for(e=0;e0?1:0,Z()},k=function(){var e,t,n,r=!0,o=!1;if(arguments.length){for(n=function(e){r?Y(e):_(e,!0),o=!0},e=0;e1?s[i].slice(1):[]).concat(e.v),a=r.apply(null,o),c={qacct:e.p,event:me},a)Object.prototype.hasOwnProperty.call(a,u)&&"qacct"!==u&&(c[u]=a[u]);t(c)}catch(t){l("evalRule",t,{pcode:e.p});continue}},v=function(e){return e.replace(/\./g,"%2E").replace(/,/g,"%2C")},g=function(e){return void 0!==e&&null!=e},z=function(e){var t,n;if(e&&"object"===U(e))for(n=0;n=1e3)return encodeURIComponent(c);g(a)&&g(a.attributes)&&g(a.attributes.property)&&g(a.attributes.property.value)&&g(a.content)&&(n=a.attributes.property.value,r=a.content,n.length>3&&"og:"===n.substring(0,3)&&(c.length>0&&(c+=","),o=r.length>80?80:r.length,c+=v(n.substring(3,n.length))+"."+v(r.substring(0,o))))}return encodeURIComponent(c)},_=function(r,u){var s,f,l,p,d,v,h,m,y,_=i(),w="",x="",S="",E="",P="1";if(xe=0,g(Ae.qpixelsent)||(Ae.qpixelsent=[]),g(r)){if("object"===(m=U(r)))l=O("",r,u);else if("array"===m)for(d=0;d