(()=>{"use strict";const d=window,o=d.document,e="pmcadm:";function t(){try{const e=[];o.querySelectorAll("div.admz-ads-grid").forEach((d=>d.style.display="none")),o.querySelectorAll("div.pmc-adm-boomerang-pub-div.ads-grid > div.ads-grid-c").forEach((d=>{e.push(d.id)})),d.blogherads.destroySlots(e)}catch(d){console.error(d)}}const c={"dfp:isdirect=true":t};d.addEventListener("message",(function(d){const o=d.data;if("string"==typeof o&&0===o.indexOf(e))for(const[d,t]of Object.entries(c))o.indexOf(d)>=e.length&&t()}),!1),d.pmc&&d.pmc.hooks&&d.pmc.hooks.add_action("pmc_adm_dfp_direct_sold",t)})();; (()=>{"use strict";var t=window;t.pmc=t.pmc||{};const e=function(){return t.pmc};function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}function n(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r=0;--o){var a=this.tryEntries[o],c=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var u=i.call(a,"catchLoc"),l=i.call(a,"finallyLoc");if(u&&l){if(this.prev=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&i.call(n,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),C(r),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;C(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:N(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),g}},e}function i(t,e,r,n,o,i,a){try{var c=t[i](a),u=c.value}catch(t){return void r(t)}c.done?e(u):Promise.resolve(u).then(n,o)}function a(t,e){for(var r=0;r0?(null==n||null===(t=n.hooks)||void 0===t||t.do_action("pmc_fpc_data_ready"),console.log("pmc_fpc_data_ready (2)")):this.fetchAtlasId().then((function(t){null!=t&&t.value&&r.setCookie(t.value)})).then((function(t){var e;null==n||null===(e=n.hooks)||void 0===e||e.do_action("pmc_fpc_data_ready"),console.log("pmc_fpc_data_ready (1)")}))}},{key:"getName",value:function(){var t="pmc_fpc_id";return"undefined"!=typeof pmcFirstPartyCookie&&void 0!==pmcFirstPartyCookie.name&&(t=pmcFirstPartyCookie.name),t}},{key:"fetchAtlasId",value:(u=o().mark((function t(){var e,r,n,i;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=null,"undefined"!=typeof pmcFirstPartyCookie&&(e=null!==(r=pmcFirstPartyCookie.endpoint)&&void 0!==r?r:null),t.prev=2,t.next=5,fetch(e);case 5:if(void 0===(n=t.sent).ok||n.ok){t.next=8;break}throw new Error("HTTP error! status: ".concat(n.status));case 8:return t.next=10,n.json();case 10:return i=t.sent,t.abrupt("return",i);case 14:return t.prev=14,t.t0=t.catch(2),t.abrupt("return",null);case 17:case"end":return t.stop()}}),t,null,[[2,14]])})),l=function(){var t=this,e=arguments;return new Promise((function(r,n){var o=u.apply(t,e);function a(t){i(o,r,n,a,c,"next",t)}function c(t){i(o,r,n,a,c,"throw",t)}a(void 0)}))},function(){return l.apply(this,arguments)})},{key:"setCookie",value:function(t){var e=new Date;e.setTime(e.getTime()+31536e6);var r=e.toGMTString(),n=window.location.hostname;return document.cookie="pmc_fpc_id="+encodeURIComponent(t)+(r?"; expires="+r:"")+"; path=/"+(n?"; domain="+n:""),!0}},{key:"deleteCookie",value:function(t){var e=new Date;e.setTime(e.getTime()-864e5);var r=e.toGMTString(),n=window.location.hostname;document.cookie=t+"="+(r?"; expires="+r:"")+"; path=/"+(n?"; domain="+n:"")}},{key:"getCookieByName",value:function(t){var e,r=function(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(t){if("string"==typeof t)return n(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?n(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var o=0,i=function(){};return{s:i,n:function(){return o>=t.length?{done:!0}:{done:!1,value:t[o++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,c=!0,u=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return c=t.done,t},e:function(t){u=!0,a=t},f:function(){try{c||null==r.return||r.return()}finally{if(u)throw a}}}}(document.cookie.split(";"));try{for(r.s();!(e=r.n()).done;){var o=e.value;if(!o)break;var i=this.trimLeadingSpaces(o);if(i.startsWith(t+"="))return i.split("=")[1]}}catch(t){r.e(t)}finally{r.f()}return""}},{key:"trimLeadingSpaces",value:function(t){for(;" "==t.charAt(0);)t=t.substring(1);return t}}],c&&a(r.prototype,c),Object.defineProperty(r,"prototype",{writable:!1}),t}();function l(t){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},l(t)}function f(t,e){for(var r=0;r{e.adq.push((()=>{e.push1PDEvent(t,a)}))},r=[{tag:"a",handler:t=>{const{currentTarget:e}=t;if(!(e instanceof Element))return;const r=e.getAttribute("href");let n=e.getAttribute("data-xid");if(!n&&r){const t=/xid:([^&/])*/gm.exec(r);t&&(n=t[0])}n=n?.replace("xid:","")||"";const c=e.hasAttribute("custom-ga-data")?JSON.parse(e.getAttribute("custom-ga-data")):{},i=!(!c["1pd"]&&!e.getAttribute("data-1pd")),o=c.product||{},d=o.category||e.getAttribute("data-category-name"),s=o.currency||e.getAttribute("data-currency")||"US",u=o.name||e.getAttribute("data-product-name"),l=o.price||e.getAttribute("data-price"),g=c.type||e.getAttribute("data-type");let m=c.partner||e.getAttribute("data-partner");if(!m?.length&&r?.length){const t=e.hostname?.split(".");t&&(t.pop(),t.length>1&&t.shift(),m=t.join(),["amazon","amzn"].includes(m)&&(m="Amazon"))}(i||n?.length>0||u?.length>0||g?.length>0)&&a("ecommerce_click",{href:r,xid:n,data_partner:m,data_price:l,data_product_name:u,data_product_category:d,data_product_currency:s,data_type:g})}},{tag:"button",handler:t=>{const{currentTarget:e}=t;if(!(e instanceof Element))return;if(!/(sign up|subscribe|newsletter)/.test(e.innerHTML.toLowerCase()))return;const r={source_id:e.className,source_value:e.innerHTML.trim(),email:""};let n=e;for(;n&&"FORM"!==n.tagName;)n=n.parentElement;n&&Array.from(n.children).forEach((t=>{if(!(t instanceof HTMLInputElement||t instanceof HTMLSelectElement))return;const e=t.getAttribute("name")?.toLowerCase(),a=t.getAttribute("id")?.toLowerCase(),n=t.value;"source"===e&&(r.source_id=t.id,r.source_value=n),(e?.indexOf("email")>=0||a?.indexOf("email")>=0)&&(r.email=n)})),a("newsletter_signup_click",r)}}];jQuery(document).ready((()=>{r.forEach((t=>{Array.from(document.getElementsByTagName(t.tag)).forEach((e=>{e.addEventListener("click",t.handler)}))}))}))}();; (()=>{"use strict";const t=t=>new Promise((o=>{try{const o=__gpp("getGPPData");-1!==o.applicableSections&&null!==o&&(t.__gpp=o,window.pmc_onetrust.initialized.__gpp=!0)}catch{}o(t)})),o=t=>new Promise((o=>{var e;"function"==typeof __uspapi&&"object"==typeof pmc_fastly_geo_data&&"US"===(null===(e=pmc_fastly_geo_data)||void 0===e?void 0:e.country)&&__uspapi("getUSPData",1,((e,n)=>{var i;"1---"===(null==e?void 0:e.uspString)&&o(t);let a=Array(4).fill(void 0);"string"==typeof(null==e?void 0:e.uspString)&&4===e.uspString.length&&(a=e.uspString.split("")),t.__uspapi={...e,version:null!==(i=a[0])&&void 0!==i?i:null==e?void 0:e.version,doNotSellDataOffered:"Y"===a[1],consentsToSellData:"N"===a[2],IABLSPA:"Y"===a[3]},window.pmc_onetrust.initialized.__uspapi=!0,o(t)}))})),e=t=>new Promise((o=>{try{!1===window.pmc_onetrust.initialized.__tcfapi&&__tcfapi("addEventListener",2,((e,n)=>{!n||"useractioncomplete"!==e.eventStatus&&"tcloaded"!==e.eventStatus||("undefined"!=typeof Rollbar&&void 0!==window.pmcGARollbar&&Rollbar.debug("tcfCallbackBefore",window.pmcGARollbar.getParams()),e.purpose.consents[1]&&e.purpose.consents[8]&&e.purpose.consents[10]&&window.triggerGA?window.triggerGA(!0):window.triggerGA(!1),"undefined"!=typeof Rollbar&&void 0!==window.pmcGARollbar&&Rollbar.debug("tcfCallbackAfter",window.pmcGARollbar.getParams()),t.__tcfapi=e,window.pmc_onetrust.initialized.__tcfapi=!0,o(t))}))}catch{}})),n=t=>new Promise((o=>{Object.keys(t).length&&pmc.hooks.do_action("pmc_onetrust_consent_data_ready",{groupsConsentedTo:window.OptanonActiveGroups.split(",").filter((t=>t)),consentData:t}),o()}));window.pmc_onetrust={init:()=>{!function(){var i,a,l,c,r,d,p,s,_,u,g;let f={};"object"==typeof pmc_fastly_geo_data&&"EU"!==(null===(i=pmc_fastly_geo_data)||void 0===i?void 0:i.continent)&&"CA"!==(null===(a=pmc_fastly_geo_data)||void 0===a?void 0:a.region)&&"US"!==(null===(l=pmc_fastly_geo_data)||void 0===l?void 0:l.country)&&"VA"!==(null===(c=pmc_fastly_geo_data)||void 0===c?void 0:c.region)&&"US"!==(null===(r=pmc_fastly_geo_data)||void 0===r?void 0:r.country)&&"CO"!==(null===(d=pmc_fastly_geo_data)||void 0===d?void 0:d.region)&&"US"!==(null===(p=pmc_fastly_geo_data)||void 0===p?void 0:p.country)&&"CT"!==(null===(s=pmc_fastly_geo_data)||void 0===s?void 0:s.region)&&"US"!==(null===(_=pmc_fastly_geo_data)||void 0===_?void 0:_.country)&&"UT"!==(null===(u=pmc_fastly_geo_data)||void 0===u?void 0:u.region)&&"US"!==(null===(g=pmc_fastly_geo_data)||void 0===g?void 0:g.country)&&document.querySelectorAll('script[class*="optanon-category"][type="text/plain"]').forEach((t=>function(t){const o=function(t){if(!t)return!1;const o=[...t.matchAll(/optanon-category-([a-zA-Z0-9]+)/g)];return!(!o||0===o.length)&&o.map((t=>t[1]))}(t.className);if(!o||0===o.length)return!1;let e=!0;for(const t of o)if(n=t,!("EU"!==(null===(i=pmc_fastly_geo_data)||void 0===i?void 0:i.continent)||"string"==typeof OnetrustActiveGroups&&OnetrustActiveGroups.includes(n))){e=!1;break}var n,i;e&&function(t){const o=t.cloneNode(!0);o.setAttribute("type","text/javascript"),t.replaceWith(o)}(t)}(t))),t(f).then(o(f)).then(e(f)).then(n(f))}()},initialized:{__gpp:!1,__uspapi:!1,__tcfapi:!1}}})();; (()=>{var e={200:()=>{window.pmc_onetrust_helpers={getActiveConsentGroups:()=>(window.OptanonActiveGroups||"").split(",").filter(Boolean)}}},r={};function t(o){var n=r[o];if(void 0!==n)return n.exports;var p=r[o]={exports:{}};return e[o](p,p.exports,t),p.exports}t.n=e=>{var r=e&&e.__esModule?()=>e.default:()=>e;return t.d(r,{a:r}),r},t.d=(e,r)=>{for(var o in r)t.o(r,o)&&!t.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:r[o]})},t.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),(()=>{"use strict";t(200)})()})();; /** * @version 2020-09-22 Set the cache flag from `false` to `true` since its a static XML file which does not change. It was initiated by a ticket from VIP over performance concerns - https://wordpressvip.zendesk.com/hc/en-us/requests/116315 * @version 2022-02-03 set cache flag to true as comscore expects this to not be browser cached. throttling comscore reporting on galleries and lists separately. */ var pmc_comscore = pmc_comscore || { pageview: function( callback ) { try { if ( typeof jQuery !== 'undefined' && typeof pmc_comscore_options.pageview_candidate_url !== 'undefined' ) { jQuery.ajax({ url: pmc_comscore_options.pageview_candidate_url, type: 'GET', cache: false }); } if ( typeof callback === 'function' ) { callback(); } } catch (e) { } } }; ;