document.addEventListener("DOMContentLoaded",(()=>{[...document.querySelectorAll('[data-component="dropdown-list"]')].forEach((e=>{const t=e.querySelector('[data-alias="button__inner"]');t&&(t.addEventListener("click",(()=>{const t="true"===e.dataset.expanded;e.dataset.expanded=!t})),document.body.addEventListener("click",(t=>{e.contains(t.target)||(e.dataset.expanded=!1)})))}))}));; (()=>{document.addEventListener("DOMContentLoaded",(()=>{[...document.querySelectorAll('[data-accordionify="true"]')].forEach((e=>e.pmcCollapsible=new t(e)))}));class t{constructor(t){this.el=t,this.toggleEls=this.el.querySelectorAll('[data-alias="menu__accordion__show-button"], [data-alias="menu__accordion__hide-button"]'),this.group=this.findGroup(),this.toggle=this.toggle.bind(this),this.onClick=this.onClick.bind(this),this.toggleEls&&this.toggleEls.forEach((t=>{t.addEventListener("click",this.onClick)}))}destroy(){this.toggleEls&&this.toggleEls.forEach((t=>{t.removeEventListener("click",this.onClick)})),this.isExpanded&&this.toggle()}get state(){return this.el.dataset.collapsible}set state(t){this.el.dataset.collapsible=t}get isExpanded(){return"expanded"===this.state}findGroup(){return[...document.body.querySelectorAll("[data-collapsible-group]")].find((t=>t.contains(this.el)))||null}onClick(t){t.preventDefault(),this.toggle()}toggle(){this.state=this.isExpanded?"collapsed":"expanded","expanded"===this.state&&(this.el.querySelector('[data-alias="menu__list"] > li > a').focus(),null!==this.group&&this.closeOthersInGroup())}collapse(){"expanded"===this.state&&this.toggle()}closeOthersInGroup(){[...this.group.querySelectorAll('[data-accordionify="true"]')].forEach((t=>{t!==this.el&&t.pmcCollapsible.collapse()}))}}})();; document.addEventListener("DOMContentLoaded",(()=>{[...document.querySelectorAll('[data-has-submenu="true"]')].forEach((e=>{const t=e.querySelector('[data-alias="button__inner"]');t&&(t.addEventListener("click",(()=>{const t="true"===e.dataset.expanded;e.dataset.expanded=!t})),document.body.addEventListener("click",(t=>{e.contains(t.target)||(e.dataset.expanded=!1)})))}))}));; !function(e){"object"==typeof exports&&"undefined"!=typeof module||"function"!=typeof define||!define.amd?e():define("inert",e)}((function(){"use strict";var e,t,n,i,o,r,s=function(e,t,n){return t&&a(e.prototype,t),n&&a(e,n),e};function a(e,t){for(var n=0;nf;)o(n,e=r[f++])&&(~a(s,e)||c(s,e));return s}},function(t,r,e){var n=e(11),o=e(60),i=e(63);e=function(t){return function(r,e,a){var u,c=n(r),f=i(c),s=o(a,f);if(t&&e!=e){for(;s"+t+""}var a,u=n(46),c=n(75),f=n(65),s=n(54),p=n(77),l=n(42),h=(n=n(53),"prototype"),v="script",y=n("IE_PROTO"),d=function(){try{a=new ActiveXObject("htmlfile")}catch(t){}var t;d="undefined"==typeof document||document.domain&&a?function(t){t.write(i("")),t.close();var r=t.parentWindow.Object;return t=null,r}(a):((t=l("iframe")).style.display="none",p.appendChild(t),t.src=String("javascript:"),(t=t.contentWindow.document).open(),t.write(i("document.F=Object")),t.close(),t.F);for(var r=f.length;r--;)delete d[h][f[r]];return d()};s[y]=!0,r.exports=Object.create||function(r,e){var n;return null!==r?(o[h]=u(r),n=new o,o[h]=null,n[y]=r):n=d(),e===t?n:c.f(n,e)}},function(t,r,e){var n=e(5),o=e(45),i=e(44),a=e(46),u=e(11),c=e(76);r.f=n&&!o?Object.defineProperties:function(t,r){a(t);for(var e,n=u(r),o=c(r),f=o.length,s=0;s=r||56320!=(64512&u(t,e))))return!1}return!0}})},function(t,r,e){var n=e(89),o=String;t.exports=function(t){if("Symbol"===n(t))throw TypeError("Cannot convert a Symbol value to a string");return o(t)}},function(r,e,n){var o=n(90),i=n(20),a=n(14),u=n(33)("toStringTag"),c=Object,f="Arguments"==a(function(){return arguments}());r.exports=o?a:function(r){var e;return r===t?"Undefined":null===r?"Null":"string"==typeof(r=function(t,r){try{return t[r]}catch(t){}}(e=c(r),u))?r:f?a(e):"Object"==(r=a(e))&&i(e.callee)?"Arguments":r}},function(t,r,e){var n={};n[e(33)("toStringTag")]="z",t.exports="[object z]"===String(n)},function(t,r,e){var n=e(2),o=e(7),i=e(13),a=e(15),u=e(88),c=(e=e(6),Array),f=i("".charAt),s=i("".charCodeAt),p=i([].join),l="".toWellFormed,h=l&&e((function(){return"1"!==o(l,1)}));n({target:"String",proto:!0,forced:h},{toWellFormed:function(){var t=u(a(this));if(h)return o(l,t);for(var r=t.length,e=c(r),n=0;n>>0)+(n>>>0)+(((t>>>=0)&(e>>>=0)|(t|e)&~(t+e>>>0))>>>31)|0}})},function(t,r,e){e(2)({target:"Math",stat:!0,forced:!0},{imulh:function(t,r){var e,n;t=65535&(e=+t),r=65535&(n=+r);return(e=e>>16)*(n=n>>16)+((r=(e*r>>>0)+(t*r>>>16))>>16)+((t*n>>>0)+(65535&r)>>16)}})},function(t,r,e){e(2)({target:"Math",stat:!0,forced:!0},{isubh:function(t,r,e,n){return(r>>>0)-(n>>>0)-((~(t>>>=0)&(e>>>=0)|~(t^e)&t-e>>>0)>>>31)|0}})},function(t,r,e){e(2)({target:"Math",stat:!0,nonConfigurable:!0,nonWritable:!0},{RAD_PER_DEG:180/Math.PI})},function(t,r,e){e=e(2);var n=Math.PI/180;e({target:"Math",stat:!0,forced:!0},{radians:function(t){return t*n}})},function(t,r,e){e(2)({target:"Math",stat:!0,forced:!0},{scale:e(281)})},function(t,r,e){var n=e(2),o=e(46),i=e(291),a=e(186),u=e(118),c=e(51),f=(e="Seeded Random")+" Generator",s=c.set,p=c.getterFor(f),l=TypeError,h=a((function(t){s(this,{type:f,seed:t%2147483647})}),e,(function(){var t=(t=p(this)).seed=(1103515245*t.seed+12345)%2147483647;return u((1073741823&t)/1073741823,!1)}));n({target:"Math",stat:!0,forced:!0},{seededPRNG:function(t){if(t=o(t).seed,!i(t))throw l('Math.seededPRNG() argument should have a "seed" field with a finite value.');return new h(t)}})},function(t,r,e){var n=e(3).isFinite;t.exports=Number.isFinite||function(t){return"number"==typeof t&&n(t)}},function(t,r,e){e(2)({target:"Math",stat:!0,forced:!0},{signbit:function(t){return(t=+t)==t&&0==t?1/t==-1/0:t<0}})},function(t,r,e){e(2)({target:"Math",stat:!0,forced:!0},{umulh:function(t,r){var e,n;t=65535&(e=+t),r=65535&(n=+r);return(e=e>>>16)*(n=n>>>16)+((r=(e*r>>>0)+(t*r>>>16))>>>16)+((t*n>>>0)+(65535&r)>>>16)}})},function(r,e,n){var o=n(2),i=n(13),a=n(61),u=n(295),c="Invalid number representation",f=RangeError,s=SyntaxError,p=TypeError,l=/^[\da-z]+$/,h=i("".charAt),v=i(l.exec),y=i(1..toString),d=i("".slice);o({target:"Number",stat:!0,forced:!0},{fromString:function(r,e){var n,o=1;if("string"!=typeof r)throw p(c);if(!r.length)throw s(c);if("-"==h(r,0)&&(o=-1,!(r=d(r,1)).length))throw s(c);if((e=e===t?10:a(e))<2||36>>0||(p(s,t)?16:10))}:c},function(t,r,e){var n=e(13),o=e(15),i=e(88),a=(e=e(297),n("".replace)),u=RegExp("^["+e+"]+"),c=RegExp("(^|[^"+e+"])["+e+"]+$");e=function(t){return function(r){return r=i(o(r)),1&t&&(r=a(r,u,"")),2&t?a(r,c,"$1"):r}};t.exports={start:e(1),end:e(2),trim:e(3)}},function(t,r){t.exports="\t\n\v\f\r                 \u2028\u2029\ufeff"},function(t,r,e){var n=e(2),o=e(185);n({target:"Number",stat:!0,forced:!0},{range:function(t,r,e){return new o(t,r,e,"number",0,1)}})},function(t,r,e){var n=e(2),o=e(300);n({target:"Object",stat:!0,forced:!0},{iterateEntries:function(t){return new o(t,"entries")}})},function(r,e,n){var o=n(51),i=n(186),a=n(118),u=n(38),c=n(76),f=n(39),s="Object Iterator",p=o.set,l=o.getterFor(s);r.exports=i((function(t,r){t=f(t),p(this,{type:s,mode:r,object:t,keys:c(t),index:0})}),"Object",(function(){for(var r=l(this),e=r.keys;;){if(null===e||r.index>=e.length)return r.object=r.keys=null,a(t,!0);var n=e[r.index++],o=r.object;if(u(o,n)){switch(r.mode){case"keys":return a(n,!1);case"values":return a(o[n],!1)}return a([n,o[n]],!1)}}}))},function(t,r,e){var n=e(2),o=e(300);n({target:"Object",stat:!0,forced:!0},{iterateKeys:function(t){return new o(t,"keys")}})},function(t,r,e){var n=e(2),o=e(300);n({target:"Object",stat:!0,forced:!0},{iterateValues:function(t){return new o(t,"values")}})},function(t,r,e){var n=e(2),o=e(23),i=e(13),a=e(30),u=e(15),c=e(17),f=e(202),s=o("Object","create"),p=i([].push);n({target:"Object",stat:!0,forced:!0},{groupBy:function(t,r){u(t),a(r);var e=s(null),n=0;return f(t,(function(t){var o=c(r(t,n++));o in e?p(e[o],t):e[o]=[t]})),e}})},function(t,r,e){e(305),e(308),e(309)},function(r,e,n){function o(r){this.observer=s(r),this.cleanup=t,this.subscriptionObserver=t}var i=n(2),a=n(7),u=n(5),c=n(208),f=n(30),s=n(46),p=n(157),l=n(20),h=n(16),v=n(19),y=n(29),d=n(47),g=n(116),b=n(85),m=n(306),x=n(33),w=n(51),S=n(307),A=x("observable"),E="Observable",O=(n="Subscription","SubscriptionObserver"),R=(x=w.getterFor,w.set),I=x(E),k=x(n),T=x(O);function M(t,r){var e,n=R(this,new o(t));u||(this.closed=!1);try{(e=y(t,"start"))&&a(e,t,this)}catch(r){m(r)}if(!n.isClosed()){t=n.subscriptionObserver=new j(n);try{var i=r(t),c=i;h(i)||(n.cleanup=l(i.unsubscribe)?function(){c.unsubscribe()}:f(i))}catch(r){return void t.error(r)}n.isClosed()&&n.clean()}}o.prototype={type:n,clean:function(){var r=this.cleanup;if(r){this.cleanup=t;try{r()}catch(r){m(r)}}},close:function(){var r,e;u||(r=this.facade,e=this.subscriptionObserver,r.closed=!0,e&&(e.closed=!0)),this.observer=t},isClosed:function(){return this.observer===t}},M.prototype=g({},{unsubscribe:function(){var t=k(this);t.isClosed()||(t.close(),t.clean())}}),u&&b(M.prototype,"closed",{configurable:!0,get:function(){return k(this).isClosed()}});var j=function(t){R(this,{type:O,subscriptionState:t}),u||(this.closed=!1)};j.prototype=g({},{next:function(t){var r=T(this).subscriptionState;if(!r.isClosed()){r=r.observer;try{var e=y(r,"next");e&&a(e,r,t)}catch(t){m(t)}}},error:function(t){var r=T(this).subscriptionState;if(!r.isClosed()){var e=r.observer;r.close();try{var n=y(e,"error");n?a(n,e,t):m(t)}catch(t){m(t)}r.clean()}},complete:function(){var t=T(this).subscriptionState;if(!t.isClosed()){var r=t.observer;t.close();try{var e=y(r,"complete");e&&a(e,r)}catch(t){m(t)}t.clean()}}}),u&&b(j.prototype,"closed",{configurable:!0,get:function(){return T(this).subscriptionState.isClosed()}});b=function(t){p(this,P),R(this,{type:E,subscriber:f(t)})};var P=b.prototype;g(P,{subscribe:function(r){var e=arguments.length;return new M(l(r)?{next:r,error:1e.size?c(e.getIterator(),(function(t){p(r,t)&&s(o,t)})):u(r,(function(t){e.includes(t)&&s(o,t)})),o}},function(t,r,e){var n=e(2),o=e(7),i=e(335),a=e(342);n({target:"Set",proto:!0,real:!0,forced:!0},{intersection:function(t){return o(a,this,i(t))}})},function(t,r,e){var n=e(2),o=e(345);n({target:"Set",proto:!0,real:!0,forced:!e(333)("isDisjointFrom")},{isDisjointFrom:o})},function(t,r,e){var n=e(324),o=e(325).has,i=e(331),a=e(332),u=e(330),c=e(144),f=e(165);t.exports=function(t){var r=n(this),e=a(t);if(i(r)<=e.size)return!1!==u(r,(function(t){if(e.includes(t))return!1}),!0);var s=e.getIterator();return!1!==c(s,(function(t){if(o(r,t))return f(s,"normal",!1)}))}},function(t,r,e){var n=e(2),o=e(7),i=e(335),a=e(345);n({target:"Set",proto:!0,real:!0,forced:!0},{isDisjointFrom:function(t){return o(a,this,i(t))}})},function(t,r,e){var n=e(2),o=e(348);n({target:"Set",proto:!0,real:!0,forced:!e(333)("isSubsetOf")},{isSubsetOf:o})},function(t,r,e){var n=e(324),o=e(331),i=e(330),a=e(332);t.exports=function(t){var r=n(this),e=a(t);return!(o(r)>e.size)&&!1!==i(r,(function(t){if(!e.includes(t))return!1}),!0)}},function(t,r,e){var n=e(2),o=e(7),i=e(335),a=e(348);n({target:"Set",proto:!0,real:!0,forced:!0},{isSubsetOf:function(t){return o(a,this,i(t))}})},function(t,r,e){var n=e(2),o=e(351);n({target:"Set",proto:!0,real:!0,forced:!e(333)("isSupersetOf")},{isSupersetOf:o})},function(t,r,e){var n=e(324),o=e(325).has,i=e(331),a=e(332),u=e(144),c=e(165);t.exports=function(t){var r=n(this);t=a(t);if(i(r)=e.length?a(t,!0):(e=p(e,n),r.index+=e.length,a({codePoint:s(e,0),position:n},!1))}));o({target:"String",proto:!0,forced:!0},{codePoints:function(){return new y(c(u(this)))}})},function(r,e,n){var o=n(201),i=n(2),a=n(34),u=n(23),c=n(48),f=n(13),s=n(190),p=n(46),l=n(39),h=n(20),v=n(63),y=n(44).f,d=n(197),g=n(367),b=n(370),m=(n=n(297),a("GlobalDedentRegistry",new(u("WeakMap"))));function x(t){return c((function(r){var e=d(arguments);return e[0]=function(t){var r=t.raw;if(o&&!E(r))throw S("Raw template should be frozen");if(m.has(r))return m.get(r);var e=C(r);t=N(e);return y(t,"raw",{value:A(e)}),A(t),m.set(r,t),t}(p(r)),s(t,this,e)}),"")}m.has=m.has,m.get=m.get,m.set=m.set;var w=Array,S=TypeError,A=Object.freeze||Object,E=Object.isFrozen,O=Math.min,R=f("".charAt),I=f("".slice),k=f("".split),T=f(/./.exec),M=/([\n\u2028\u2029]|\r\n?)/g,j=RegExp("^["+n+"]*"),P=RegExp("[^"+n+"]"),D="Invalid tag",C=function(t){var r,e=l(t),n=v(e),o=w(n),i=w(n),a=0;if(!n)throw S(D);for(;a=t.length)return-1;for(var n=0;r{const[e,r=""]=n.split("=").filter(Boolean).map(h);if(e){!function(t,n,e){const r=n.length,o=r-1;for(let u=0;udelete r[t]));const u=p(r);return u?o+"?"+u:o}const x=/^(?:[a-z]+:|#|\?|\.|\/)/i;function b(t){return t?(t=t.trim(),x.test(t)||o(t)?t:"http://"+t):t}function v(t){try{return decodeURI(t)}catch(n){return t}}function w(t,n=null){let e=t.replace(/^(?:https?:)\/\/(?:www\.)?/,"");e.match(/^[^\/]+\/$/)&&(e=e.replace("/",""));if(!n||e.length<=n||!e.match(/([\w|:])*\.(?:jpg|jpeg|gif|png|svg)/))return e;e=e.split("?")[0];const r=e.split("/"),o=r[r.length-1];if(o.length<=n)return"…"+e.slice(-n);const u=o.lastIndexOf("."),[i,c]=[o.slice(0,u),o.slice(u+1)],a=i.slice(-3)+"."+c;return o.slice(0,n-a.length-1)+"…"+a}var R=e(4793),S=e.n(R);function j(t){return t?S()(t).replace(/[\s\./]+/g,"-").replace(/[^\p{L}\p{N}_-]+/gu,"").toLowerCase().replace(/-+/g,"-").replace(/(^-+)|(-+$)/g,""):""}function C(t){let n;try{n=new URL(t,"http://example.com").pathname.split("/").pop()}catch(t){}if(n)return n}function P(t){const n=t.split("?"),e=n[1],r=n[0];return e?r+"?"+e.split("&").map((t=>t.split("="))).map((t=>t.map(decodeURIComponent))).sort(((t,n)=>t[0].localeCompare(n[0]))).map((t=>t.map(encodeURIComponent))).map((t=>t.join("="))).join("&"):r}function Q(t){return t?t.startsWith("http://")?t:(t=b(t)).replace(/^http:/,"https:"):t}}(),(window.wp=window.wp||{}).url=r}();; (()=>{"use strict";const e=window.wp.url;document.addEventListener("DOMContentLoaded",(()=>{const e=[...document.querySelectorAll("[data-video-showcase]")];e.length&&e.forEach((e=>e.pmcVideoShowcase=new t(e)))}));class t{constructor(e){var t,a,i;this.el=e,this.triggers=[...e.querySelectorAll("[data-video-showcase-trigger]")],this.player=e.querySelector("[data-video-showcase-player]"),this.hasBadgeContainer=Boolean(this.player.querySelector('[data-alias="card__badge"]')),this.hasKickerContainer=Boolean(this.player.querySelector('[data-alias="card__kicker"]')),this.elementsToHide=[...this.el.querySelectorAll('[data-video-showcase-player] figure, [data-video-showcase-player] figure [data-alias="image__video-preview"], [data-alias="card__meta"]')],this.attributesToRemoveFromPlayer=["data-video-showcase-trigger","data-video-showcase-type"],this.state={iabPlcmt:2,isPlayerSetup:!1,playerID:"",videoID:"",videoType:""},this.setupPlayerElements(),this.playerUI={connatixContainer:e.querySelector("#connatixContainer"),dek:e.querySelector('[data-alias="card__dek"]'),iframe:e.querySelector("[data-video-showcase-iframe], #iframePlayerContainerChild"),iframeContainer:e.querySelector("#iframePlayerContainer"),kicker:e.querySelector('[data-alias="card__kicker"]'),badge:e.querySelector('[data-alias="card__badge"]'),meta:e.querySelector('[data-alias="card__meta"]'),player:e.querySelector("[data-video-player-id]"),title:e.querySelector('[data-alias="card__card-title"] a'),connatix:e.querySelector("[data-video-showcase-connatix], #connatixContainerChild")},t=this.el,a="[data-video-showcase-trigger]",i=this.handleTriggerClick.bind(this),t.addEventListener("click",(e=>{const t=((e,t)=>t.matches&&t.matches(e))(a,e.target)?e.target:e.target.closest(a);t&&i(e,t)}))}setupPlayerElements(){const e=document.createElement("iframe");e.setAttribute("id","iframePlayerContainerChild"),e.setAttribute("data-video-showcase-iframe",""),e.setAttribute("hidden","");const t=document.createElement("div");t.setAttribute("id","iframePlayerContainer"),t.setAttribute("hidden",""),t.appendChild(e);const a=document.createElement("div");a.setAttribute("id","connatixContainerChild"),a.setAttribute("data-video-showcase-connatix",""),a.setAttribute("hidden","");const i=document.createElement("div");i.setAttribute("id","connatixContainer"),i.setAttribute("hidden",""),i.appendChild(a),this.player.querySelector('[data-alias="card__aside"]').appendChild(t),this.player.querySelector('[data-alias="card__aside"]').appendChild(i)}getPlayerCardData(e){return{title:e.querySelector('[data-alias="card__card-title"] a')?.textContent||"",dek:e.querySelector('[data-alias="card__dek"]')?.textContent||"",permalink:e.querySelector('[data-alias="card__card-title"] a')?.href||"",kicker:e.querySelector('[data-alias="card__kicker"]')?.textContent||"",badge:e.querySelector('[data-alias="card__badge"]')?.textContent||""}}updatePlayerCardData(e,t){this.playerUI.title&&t.title&&(this.playerUI.title.innerText=t.title),this.playerUI.title&&t.permalink&&this.playerUI.title.setAttribute("href",t.permalink),t.dek&&(this.playerUI.dek.innerText=t.dek);let a="";this.hasBadgeContainer&&(a="badge"),this.hasKickerContainer&&(a="kicker"),a&&(t.kicker&&(this.playerUI[a].innerText=t.kicker),t.badge&&(this.playerUI[a].innerText=t.badge))}returnUrl(e,t){return"youtube"===t?`https://www.youtube.com/embed/${e}`:"vimeo"===t?`https://player.vimeo.com/video/${e}`:"connatix"===t?e:""}playYoutube(t,a){t=(0,e.addQueryArgs)(t,{rel:0,showinfo:0,controls:2,modestbranding:0,autoplay:a}),this.playerUI.iframeContainer.removeAttribute("hidden"),this.playerUI.iframe.removeAttribute("hidden"),this.playerUI.iframe.setAttribute("src",t)}playVimeo(t,a){t=(0,e.addQueryArgs)(t,{autoplay:a}),this.playerUI.iframeContainer.removeAttribute("hidden"),this.playerUI.iframe.removeAttribute("hidden"),this.playerUI.iframe.setAttribute("src",t)}playConnatix(e,t,a=2){this.playerUI.connatixContainer.removeAttribute("hidden"),this.playerUI.connatix.removeAttribute("hidden");const i=this.playerUI.connatix.getAttribute("id");(new Image).src="https://capi.elements.video/tr/si?token=094029a3-814c-41d5-8a62-2c3adc647176&cid=1ffe63de-eb53-11e9-b4d2-06948452ae1a",cnx.cmd.push((function(){cnx({settings:{plugins:{pmcAtlasMG:{iabPlcmt:a}}},playerId:t,mediaId:e}).render(i)}))}handleTriggerClick(e,t){e.preventDefault();const a=this.state.videoType;this.resetPlayer(a),this.state.videoType=t.dataset.videoShowcaseType,"connatix"===t.dataset.videoShowcaseType?(this.state.videoID=t.dataset.videoId,this.state.playerID=t.dataset.videoPlayerId):this.state.videoID=t.dataset.videoShowcaseTrigger,this.playVideo(this.state),this.updatePlayerUI(this.state),this.onFirstTimePlay()}showVideoPane(){const e=document.querySelector("[data-video-showcase-sponsored]"),t=this.state.videoType;this.state.videoType=e.dataset.videoShowcaseType,this.state.videoID=e.dataset.videoShowcaseTrigger,this.resetPlayer(t),this.playVideo(this.state,!0),this.updatePlayerUI(this.state.videoID),this.onFirstTimePlay()}playVideo(e,t=!1){const a=this.returnUrl(e.videoID,e.videoType);return"youtube"===e.videoType&&this.playYoutube(a,t),"vimeo"===e.videoType&&this.playVimeo(a,t),"connatix"===e.videoType&&this.playConnatix(e.videoID,e.playerID,e.iabPlcmt),!1}onFirstTimePlay(){!1===this.state.isPlayerSetup&&(this.elementsToHide.forEach((e=>e.setAttribute("hidden",""))),this.attributesToRemoveFromPlayer.forEach((e=>{this.player.removeAttribute(e)})),this.state.isPlayerSetup=!0),this.playerUI.meta.innerText=""}updatePlayerUI(e){let t="";t="connatix"===e.videoType?this.el.querySelector(`[data-video-id="${e.videoID}"]`):this.el.querySelector(`[data-video-showcase-trigger="${e.videoID}"]`);const a=this.getPlayerCardData(t);this.setActiveTrigger(e.videoType,e.videoID),this.updatePlayerCardData(t,a)}resetPlayer(e){if("youtube"===e&&(this.playerUI.iframe.setAttribute("src",""),this.playerUI.iframe.setAttribute("hidden",""),this.playerUI.iframeContainer.setAttribute("hidden","")),"connatix"===e){this.playerUI.connatixContainer.setAttribute("hidden",""),this.playerUI.connatix.setAttribute("hidden","");const e=document.getElementsByClassName("cnx-main-container");for(;e.length>0;)e[0].parentNode.removeChild(e[0])}}resetAllTriggers(){this.triggers.forEach((e=>e.classList.remove("is-playing")))}setActiveTrigger(e,t){let a="";a="connatix"===e?this.el.querySelector(`.related-videos [data-video-media-id="${t}"]`):this.el.querySelector(`[data-video-showcase-trigger="${t}"]`),this.resetAllTriggers(),null!==a&&a.classList.add("is-playing")}}})();; document.addEventListener("DOMContentLoaded",(()=>{null!==document.querySelector("body.pmc-mobile")&&[...document.querySelectorAll('[data-component="cards"][data-collapse-to-xs="true"]')].forEach((t=>{[...t.querySelectorAll('[data-component="card"]')].forEach((t=>{t.setAttribute("data-layout","sidebar"),t.setAttribute("data-layout-size","xs"),t.setAttribute("data-main-alignment","left-top");const e=t.querySelector('[data-alias="card__aside"] [data-component="image"]');null!==e&&e.setAttribute("data-ratio","oneByOne");const a=t.querySelector('[data-alias="card__kicker"]');null!==a&&a.setAttribute("data-theme","category-sm");const r=t.querySelector('[data-alias="card__card-title"]');null!==r&&r.setAttribute("data-theme","card-title-primary-xs")}))}))}));; document.addEventListener("DOMContentLoaded",(()=>{[...document.querySelectorAll('[data-has-authorswingout="true"]')].forEach((e=>{const t=e.querySelector("button");t&&(t.addEventListener("click",(()=>{const t="true"===e.dataset.expanded;e.dataset.expanded=!t})),document.body.addEventListener("click",(t=>{e.contains(t.target)||(e.dataset.expanded=!1)})))}))}));; (()=>{function e(){[...document.querySelectorAll('[data-component="header-wrapper"]')].forEach((e=>{new t(e)}))}document.addEventListener("DOMContentLoaded",(()=>{e()})),window.addEventListener("resize",(()=>{e()}));class t{constructor(e){this.el=e,this.el.pmcHeader=this,this.container=document.documentElement,this.initSticky()}destroy(){this.destroySticky(),delete this.el.pmcHeader}initSticky(){window.IntersectionObserver&&(this.observerOptions={root:null,rootMargin:"200px",threshold:[1]},this.toggleSticky=this.toggleSticky.bind(this),this.observer=new IntersectionObserver(this.toggleSticky,this.observerOptions),this.observer.observe(this.el))}destroySticky(){window.IntersectionObserver&&(this.observer.disconnect(),document.body.dataset.stickyHeader=!1)}toggleSticky(e){window.IntersectionObserver&&e.forEach((e=>{const t=e.intersectionRatio;1===t?document.body.dataset.stickyHeader=!1:1>t&&(document.body.dataset.stickyHeader=!0)}))}}})();; (()=>{document.addEventListener("DOMContentLoaded",(()=>{[...document.querySelectorAll('[data-component="header-wrapper"]')].forEach((t=>new e(t)))}));class e{constructor(e){this.el=e,this.isOpen=!1;let t='[data-alias="header__show-search"] button';t+=', [data-alias="header__hide-search"] button',this.triggers=[...this.el.querySelectorAll('[data-alias="header__show-search"] button, [data-alias="header__hide-search"] button')],this.target=this.el.querySelector('[data-component="header-search"]'),this.targetInput=this.target.querySelector("input"),this.triggers.forEach((e=>{e.addEventListener("click",(()=>{this.toggleSearch()}))})),document.addEventListener("keydown",(e=>{"Escape"===e.key&&this.collapseSearch()})),document.body.addEventListener("click",(e=>{this.el.contains(e.target)||this.collapseSearch()})),document.addEventListener("focusin",(()=>{!this.el.contains(document.activeElement)&&this.isOpen&&this.collapseSearch()}))}updateState(){this.isOpen=!this.isOpen}toggleSearch(){this.updateState(),this.isOpen?(document.body.dataset.searchOpen=!0,this.targetInput.focus()):document.body.dataset.searchOpen=!1}collapseSearch(){this.isOpen&&(this.toggleSearch(),this.trigger.focus())}}})();; (()=>{document.addEventListener("DOMContentLoaded",(()=>{[...document.querySelectorAll('[data-component="mega-menu-wrapper"]')].forEach((t=>t.pmcMegaMenu=new e(t)));let t,n='[data-alias="header__show-mega-menu"] button';function a(){const e=document.body.dataset.megaMenuOpen,n=[...document.querySelector('[data-component="mega-menu-wrapper"]').querySelectorAll('input, [tabindex="0"]')];"true"!==e?(document.body.dataset.megaMenuOpen=!0,n[0]!==document.activeElement&&setTimeout((function(){n[0].focus()}),100),t=document.activeElement):(document.body.dataset.megaMenuOpen=!1,t.focus())}n+=', [data-alias="header__hide-mega-menu"] button',n+=', [data-alias="mega-menu-header__hide-mega-menu"] button',[...document.querySelectorAll('[data-alias="header__show-mega-menu"] button, [data-alias="header__hide-mega-menu"] button, [data-alias="mega-menu-header__hide-mega-menu"] button')].forEach((e=>{e.addEventListener("click",a)})),document.addEventListener("keydown",(e=>{"Escape"===e.key&&(document.body.dataset.megaMenuOpen=!1,t.focus())}))}));class e{constructor(e){this.el=e,this.inputs=[...this.el.querySelectorAll("input")],this.container=document.documentElement,this.inputs.forEach((e=>{e.addEventListener("focus",(()=>this.handleFocus(e)))})),this.trapFocus(e)}handleFocus(e){this.el.scrollTo(0,e.offsetTop)}trapFocus(e){const t='button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])',n=e.querySelectorAll(t)[0],a=e.querySelectorAll(t),o=a.length?a[a.length-1]:n;document.addEventListener("keydown",(e=>{("Tab"===e.key||9===e.keyCode)&&(e.shiftKey?document.activeElement===n&&o&&(o.focus(),e.preventDefault()):document.activeElement===o&&n&&(n.focus(),e.preventDefault()))}))}}})();; document.addEventListener("DOMContentLoaded",(()=>{[...document.querySelectorAll('[data-component="social-media"]')].forEach((e=>{const a=e.querySelector('[data-alias="social-media__platform__plus"]'),t=e.querySelector('[data-alias="social-media__platform__print"]');a&&a.addEventListener("click",(()=>{e.dataset.expanded=!0})),t&&t.addEventListener("click",(e=>{e.preventDefault(),window.print()}))}))}));; document.addEventListener("DOMContentLoaded",(()=>{[...document.querySelectorAll('[data-component="newsletter"] form')].forEach((e=>{e.addEventListener("submit",(()=>{const t=e.querySelector('input[name="EmailAddress"]'),n=e.querySelector('input[name="__successPage"]');n.value=`${n.value}&email=${t.value}`}))}))}));; document.addEventListener("DOMContentLoaded",(()=>{[...document.querySelectorAll('[data-alias="scroll-snap-slider-wrapper"]')].forEach((e=>{const t=e.querySelector('[data-alias="scroll-snap-slider"]'),l=t.querySelector("div").clientWidth;e.querySelector('[data-alias="slider-next"]').addEventListener("click",(function(){t.scrollBy({behavior:"smooth",left:l})})),e.querySelector('[data-alias="slider-previous"]').addEventListener("click",(function(){t.scrollBy({behavior:"smooth",left:-l})}))}))}));;