/* Web Font Loader v1.6.28 - (c) Adobe Systems, Google. License: Apache 2.0 */(function(){function aa(a,b,c){return a.call.apply(a.bind,arguments)}function ba(a,b,c){if(!a)throw Error();if(2=b.f?e():a.fonts.load(fa(b.a),b.h).then(function(a){1<=a.length?d():setTimeout(f,25)},function(){e()})}f()}),e=null,f=new Promise(function(a,d){e=setTimeout(d,b.f)});Promise.race([f,d]).then(function(){e&&(clearTimeout(e),e=null);b.g(b.a)},function(){b.j(b.a)})};function Q(a,b,c,d,e,f,g){this.v=a;this.B=b;this.c=c;this.a=d;this.s=g||"BESbswy";this.f={};this.w=e||3E3;this.u=f||null;this.m=this.j=this.h=this.g=null;this.g=new M(this.c,this.s);this.h=new M(this.c,this.s);this.j=new M(this.c,this.s);this.m=new M(this.c,this.s);a=new G(this.a.c+",serif",J(this.a));a=O(a);this.g.a.style.cssText=a;a=new G(this.a.c+",sans-serif",J(this.a));a=O(a);this.h.a.style.cssText=a;a=new G("serif",J(this.a));a=O(a);this.j.a.style.cssText=a;a=new G("sans-serif",J(this.a));a= O(a);this.m.a.style.cssText=a;N(this.g);N(this.h);N(this.j);N(this.m)}var R={D:"serif",C:"sans-serif"},S=null;function T(){if(null===S){var a=/AppleWebKit\/([0-9]+)(?:\.([0-9]+))/.exec(window.navigator.userAgent);S=!!a&&(536>parseInt(a[1],10)||536===parseInt(a[1],10)&&11>=parseInt(a[2],10))}return S}Q.prototype.start=function(){this.f.serif=this.j.a.offsetWidth;this.f["sans-serif"]=this.m.a.offsetWidth;this.A=q();U(this)}; function la(a,b,c){for(var d in R)if(R.hasOwnProperty(d)&&b===a.f[R[d]]&&c===a.f[R[d]])return!0;return!1}function U(a){var b=a.g.a.offsetWidth,c=a.h.a.offsetWidth,d;(d=b===a.f.serif&&c===a.f["sans-serif"])||(d=T()&&la(a,b,c));d?q()-a.A>=a.w?T()&&la(a,b,c)&&(null===a.u||a.u.hasOwnProperty(a.a.c))?V(a,a.v):V(a,a.B):ma(a):V(a,a.v)}function ma(a){setTimeout(p(function(){U(this)},a),50)}function V(a,b){setTimeout(p(function(){v(this.g.a);v(this.h.a);v(this.j.a);v(this.m.a);b(this.a)},a),0)};function W(a,b,c){this.c=a;this.a=b;this.f=0;this.m=this.j=!1;this.s=c}var X=null;W.prototype.g=function(a){var b=this.a;b.g&&w(b.f,[b.a.c("wf",a.c,J(a).toString(),"active")],[b.a.c("wf",a.c,J(a).toString(),"loading"),b.a.c("wf",a.c,J(a).toString(),"inactive")]);K(b,"fontactive",a);this.m=!0;na(this)}; W.prototype.h=function(a){var b=this.a;if(b.g){var c=y(b.f,b.a.c("wf",a.c,J(a).toString(),"active")),d=[],e=[b.a.c("wf",a.c,J(a).toString(),"loading")];c||d.push(b.a.c("wf",a.c,J(a).toString(),"inactive"));w(b.f,d,e)}K(b,"fontinactive",a);na(this)};function na(a){0==--a.f&&a.j&&(a.m?(a=a.a,a.g&&w(a.f,[a.a.c("wf","active")],[a.a.c("wf","loading"),a.a.c("wf","inactive")]),K(a,"active")):L(a.a))};function oa(a){this.j=a;this.a=new ja;this.h=0;this.f=this.g=!0}oa.prototype.load=function(a){this.c=new ca(this.j,a.context||this.j);this.g=!1!==a.events;this.f=!1!==a.classes;pa(this,new ha(this.c,a),a)}; function qa(a,b,c,d,e){var f=0==--a.h;(a.f||a.g)&&setTimeout(function(){var a=e||null,m=d||null||{};if(0===c.length&&f)L(b.a);else{b.f+=c.length;f&&(b.j=f);var h,l=[];for(h=0;h{e.addEventListener("focus",()=>this.handleFocus(e))}),this.trapFocus(e)}handleFocus(e){this.el.scrollTo(0,e.offsetTop)}trapFocus(e){if(e.classList.contains("mega-menu__main"))return;const t='button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])',s=e.querySelectorAll(t)[0],i=e.querySelectorAll(t),n=i[i.length-1];document.addEventListener("keydown",e=>{("Tab"===e.key||9===e.keyCode)&&(e.shiftKey?document.activeElement===s&&n&&(n.focus(),e.preventDefault()):document.activeElement===n&&s&&(s.focus(),e.preventDefault()))})}}function c(){void 0===window.pmc_side_skin_classes_removed&&(document.documentElement.classList.add("has-side-skins"),[...document.querySelectorAll('[class*="@desktop-xl"]')].forEach(e=>{const t=e.className.split(" ");e.className="",t.map(t=>{t.includes("@desktop-xl")||(e.className+=" "+t)})}),window.pmc_side_skin_classes_removed=!0),window.dispatchEvent(new Event("resize"))}var r={init:function(){let e=pmc.cookie.get("spy_fonts_loaded");void 0!==e&&e?this.load("directload"):window.addEventListener("load",()=>{this.load("load")})},load:function(e){this.getThemeUrl(),this.loadcount++;WebFont.load({google:{families:["Playfair Display"]},typekit:{id:"dda4haa"},active:function(){try{"load"==e&&pmc.cookie.set("spy_fonts_loaded",1,604800),console.log("fonts loaded "+e)}catch(e){}}})},getThemeUrl:function(){return"undefined"==typeof pmc_common_urls?"":pmc_common_urls.current_theme_uri}};class a{constructor(e){this.el=e,this.el.pmcHeader=this,this.container=document.documentElement,this.initSticky(),this.initSearch()}destroy(){this.destroySticky(),this.destroySearch(),delete this.el.pmcHeader}get stickyClass(){return this.el.dataset.headerStickyClass||"is-sticky"}get readyClass(){return this.el.dataset.headerReadyClass||"is-header-ready"}get searchClass(){return this.el.dataset.headerSearchClass||"is-search-expanded"}initSticky(){window.IntersectionObserver&&(this.observerOptions={root:null,rootMargin:"80px",threshold:[1]},this.toggleSticky=this.toggleSticky.bind(this),this.observer=new IntersectionObserver(this.toggleSticky,this.observerOptions),this.observer.observe(this.el),this.container.classList.add(this.readyClass))}destroySticky(){window.IntersectionObserver&&(this.observer.disconnect(),this.container.classList.remove(this.stickyClass,this.readyClass))}toggleSticky(e){window.IntersectionObserver&&e.forEach(e=>{const t=e.intersectionRatio;1===t?this.container.classList.remove(this.stickyClass):1>t&&this.container.classList.add(this.stickyClass)})}initSearch(){this.searchTrigger=this.el.querySelector("[data-header-search-trigger]"),null!==this.searchTrigger&&(this.expandSearch=this.expandSearch.bind(this),this.collapseSearch=this.collapseSearch.bind(this),this.searchTrigger.addEventListener("click",this.expandSearch))}destroySearch(){document.body.removeEventListener("click",this.collapseSearch),this.searchTrigger.removeEventListener("click",this.expandSearch),this.container.classList.remove(this.searchClass)}expandSearch(e){e.preventDefault(),e.stopPropagation(),this.container.classList.add(this.searchClass),this.searchTrigger.removeEventListener("click",this.expandSearch),setTimeout(()=>document.body.addEventListener("click",this.collapseSearch),1)}collapseSearch(e){e.target===this.searchTrigger||this.searchTrigger.contains(e.target)||(this.container.classList.remove(this.searchClass),this.searchTrigger.addEventListener("click",this.expandSearch),document.body.removeEventListener("click",this.collapseSearch))}}class l{constructor(e){this.el=e,this.targetTitles=[...document.querySelectorAll(".a-content h2.pmc-toc--heading")],this.initProgress()}initProgress(){const e=[];if(this.targetTitles.length&&this.targetTitles.forEach(t=>{const s=t.getBoundingClientRect();s.top=94&&e.push(t)}),e.length){document.querySelectorAll(".toc-list .c-nav-link").forEach(e=>{e.classList.remove("active")});const t=e[0].getAttribute("id"),s=document.querySelector('.toc-list-item .c-nav-link[href="#'+t+'"]');s&&s.classList.add("active")}}}var d=void 0!==window.pmc_common_urls?window.pmc_common_urls.current_theme_uri+"/assets/build/svg/defs/sprite.defs.svg?v=1":"/assets/build/svg/defs/sprite.defs.svg?v=1",u=function(){!function(e){[...document.querySelectorAll(".lrv-js-MobileHeightToggle")].forEach(t=>{768>e&&void 0===t.pmcMobileHeightToggle&&new i(t),768<=e&&void 0!==t.pmcMobileHeightToggle&&t.pmcMobileHeightToggle.destroy()})}(window.innerWidth),[...document.querySelectorAll(".js-Header")].forEach(e=>e.pmcHeader=new a(e))};window.addEventListener("DOMContentLoaded",(function(){u(),[...document.querySelectorAll(".lrv-js-EmailCapture")].forEach(e=>e.pmcEmailCapture=new n(e))})),window.addEventListener("resize",(function(){u()})),window.addEventListener("message",(function(e){!function(e){let t="",s="";"object"==typeof window.pmc_dfp_skin?s=window.pmc_dfp_skin:void 0!==window.pmc&&void 0!==window.pmc.skinAds&&(s=window.pmc.skinAds),"string"==typeof e.data&&"object"==typeof s&&"pmcadm:dfp:skinad:parameters"===e.data.substring(0,"pmcadm:dfp:skinad:parameters".length)&&(t=e.data.substring("pmcadm:dfp:skinad:parameters".length),t&&(c(),s.refresh_skin_rails()))}(e)})),window.addEventListener("load",(function(){!function(){const e=[...document.querySelectorAll(".js-MegaMenu")],t=[...document.querySelectorAll(".js-MegaMenu-Trigger")];let s;function i(){const e=document.documentElement.classList.contains("is-mega-open"),t=[...document.querySelector(".js-MegaMenu").querySelectorAll('input, [tabindex="0"]')];e?(document.documentElement.classList.remove("is-mega-open"),s.focus()):(document.documentElement.classList.add("is-mega-open"),t[0]!==document.activeElement&&setTimeout((function(){t[0].focus()}),100),s=document.activeElement)}e.forEach(e=>e.pmcMegaMenu=new o(e)),t.forEach(e=>{e.addEventListener("click",i)}),document.addEventListener("keydown",e=>{"Escape"===e.key&&document.documentElement.classList.remove("is-mega-open")})}()})),window.addEventListener("scroll",(function(){[...document.querySelectorAll(".toc > nav.toc-navigation")].forEach(e=>e.pmcTocProgress=new l(e))})),r.init(),function(e){const t=new XMLHttpRequest,s=document.createElement("div");t.open("GET",e,!0),t.send(),t.onload=function(){s.id="icon-sprite",s.innerHTML=t.responseText,document.body.insertBefore(s,document.body.childNodes[0])}}(d)}});;