var pmcPiano;!function(){"use strict";var o={357:function(o,n){var t=this&&this.__spreadArray||function(o,n,t){if(t||2===arguments.length)for(var e,i=0,s=n.length;i=Object.keys(e.onetrustToPianoMapping).length;Object.keys(i).forEach((function(o){e.pianoProductModes[o]=Math.max.apply(Math,t(t([],i[o],!1),s?[e.pianoProductModesConsentAll[o]]:[],!1))})),e.canDebug&&console.log("PMC: Piano:","pianoProductModes",e.pianoProductModes)}window.tp=window.tp||[],window.tp.push(["init",e.setPianoProductModes.bind(e)])},setPianoProductModes:function(){var o,n,t,e,i,s,a=this;window.pdl=window.pdl||{},window.pdl.requireConsent=!0,window.tp.consent.set("ESP",{mode:"opt-out"}),window.tp.consent.set("Social Flow",{mode:"opt-out"}),window.tp.consent.set("COMPOSER",{mode:null!==(o=a.pianoWeightsToModes[a.pianoProductModes.COMPOSER])&&void 0!==o?o:"opt-out"}),window.tp.consent.set("DMP",{mode:null!==(n=a.pianoWeightsToModes[a.pianoProductModes.DMP])&&void 0!==n?n:"opt-out"}),window.tp.consent.set("ID",{mode:null!==(t=a.pianoWeightsToModes[a.pianoProductModes.ID])&&void 0!==t?t:"opt-out"}),window.tp.consent.set("PA",{mode:null!==(e=a.pianoWeightsToModes[a.pianoProductModes.PA])&&void 0!==e?e:"opt-out"}),window.tp.consent.set("VX",{mode:null!==(i=a.pianoWeightsToModes[a.pianoProductModes.VX])&&void 0!==i?i:"opt-out"}),window.tp.consent.set("DL",{mode:null!==(s=a.pianoWeightsToModes[a.pianoProductModes.DL])&&void 0!==s?s:"opt-out"}),a.canDebug&&console.log("PMC: Piano:","tp.consent.get()",window.tp.consent.get())}};e.hookIntoOneTrust(),o.exports=e}},n={},t=function t(e){var i=n[e];if(void 0!==i)return i.exports;var s=n[e]={exports:{}};return o[e].call(s.exports,s,s.exports,t),s.exports}(357);(pmcPiano=void 0===pmcPiano?{}:pmcPiano).consent=t}();; var pmcPiano;!function(){"use strict";var n={174:function(n,e){var t=this&&this.__awaiter||function(n,e,t,o){return new(t||(t=Promise))((function(i,r){function c(n){try{a(o.next(n))}catch(n){r(n)}}function u(n){try{a(o.throw(n))}catch(n){r(n)}}function a(n){var e;n.done?i(n.value):(e=n.value,e instanceof t?e:new t((function(n){n(e)}))).then(c,u)}a((o=o.apply(n,e||[])).next())}))},o=this&&this.__generator||function(n,e){var t,o,i,r,c={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return r={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function u(u){return function(a){return function(u){if(t)throw new TypeError("Generator is already executing.");for(;r&&(r=0,u[0]&&(c=0)),c;)try{if(t=1,o&&(i=2&u[0]?o.return:u[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,u[1])).done)return i;switch(o=0,i&&(u=[2&u[0],i.value]),u[0]){case 0:case 1:i=u;break;case 4:return c.label++,{value:u[1],done:!1};case 5:c.label++,o=u[1],u=[0];continue;case 7:u=c.ops.pop(),c.trys.pop();continue;default:if(!((i=(i=c.trys).length>0&&i[i.length-1])||6!==u[0]&&2!==u[0])){c=0;continue}if(3===u[0]&&(!i||u[1]>i[0]&&u[1]5||e<=n.mock.calls.length)return t();setTimeout((function(){return o(i+1)}),500)};o(0)}))},e.setLocation=function(n,t,o){void 0===n&&(n=""),void 0===t&&(t=!1),void 0===o&&(o="example.com"),window.pmc_site_config={hostname:o},o=t?o.replace(".com","-proxied.com"):o,(0,e.mockWindowLocation)(new URL("https://"+o+n))},e.appendElement=function(n,e){var t=document.createElement(n);return e&&(t.className=e),document.body.appendChild(t),t},e.getProxy=function(){return window.location.hostname!==window.pmc_site_config.hostname?window.location.origin:""},e.until=function(n,e){return void 0===e&&(e=100),t(this,void 0,void 0,(function(){return o(this,(function(t){switch(t.label){case 0:return n()?[3,2]:[4,new Promise((function(n){return setTimeout(n,e)}))];case 1:return t.sent(),[3,0];case 2:return[2]}}))}))},e.getFunctionName=function(n){var e=n.name.replace("bound","").trim();return e||(e="Anonymous"),e},e.getAuthUserType=function(n){void 0===n&&(n={});var e=null==n?void 0:n.user_access,t=null==n?void 0:n.term,o=null==t?void 0:t.resource;return(null==o?void 0:o.name)&&""!==o.name?(null==e?void 0:e.granted)&&(/registration/i.exec(null==t?void 0:t.name)||"registration"===(null==t?void 0:t.type))?"REGISTERED":(null==e?void 0:e.granted)?"SUBSCRIBER":void 0:"KNOWN"}},575:function(n,e,t){var o=this&&this.__awaiter||function(n,e,t,o){return new(t||(t=Promise))((function(i,r){function c(n){try{a(o.next(n))}catch(n){r(n)}}function u(n){try{a(o.throw(n))}catch(n){r(n)}}function a(n){var e;n.done?i(n.value):(e=n.value,e instanceof t?e:new t((function(n){n(e)}))).then(c,u)}a((o=o.apply(n,e||[])).next())}))},i=this&&this.__generator||function(n,e){var t,o,i,r,c={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return r={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function u(u){return function(a){return function(u){if(t)throw new TypeError("Generator is already executing.");for(;r&&(r=0,u[0]&&(c=0)),c;)try{if(t=1,o&&(i=2&u[0]?o.return:u[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,u[1])).done)return i;switch(o=0,i&&(u=[2&u[0],i.value]),u[0]){case 0:case 1:i=u;break;case 4:return c.label++,{value:u[1],done:!1};case 5:c.label++,o=u[1],u=[0];continue;case 7:u=c.ops.pop(),c.trys.pop();continue;default:if(!((i=(i=c.trys).length>0&&i[i.length-1])||6!==u[0]&&2!==u[0])){c=0;continue}if(3===u[0]&&(!i||u[1]>i[0]&&u[1]0&&i[i.length-1])||6!==l[0]&&2!==l[0])){a=0;continue}if(3===l[0]&&(!i||l[1]>i[0]&&l[1]5||t<=e.mock.calls.length)return n();setTimeout((function(){return o(i+1)}),500)};o(0)}))},t.setLocation=function(e,n,o){void 0===e&&(e=""),void 0===n&&(n=!1),void 0===o&&(o="example.com"),window.pmc_site_config={hostname:o},o=n?o.replace(".com","-proxied.com"):o,(0,t.mockWindowLocation)(new URL("https://"+o+e))},t.appendElement=function(e,t){var n=document.createElement(e);return t&&(n.className=t),document.body.appendChild(n),n},t.getProxy=function(){return window.location.hostname!==window.pmc_site_config.hostname?window.location.origin:""},t.until=function(e,t){return void 0===t&&(t=100),n(this,void 0,void 0,(function(){return o(this,(function(n){switch(n.label){case 0:return e()?[3,2]:[4,new Promise((function(e){return setTimeout(e,t)}))];case 1:return n.sent(),[3,0];case 2:return[2]}}))}))},t.getFunctionName=function(e){var t=e.name.replace("bound","").trim();return t||(t="Anonymous"),t},t.getAuthUserType=function(e){void 0===e&&(e={});var t=null==e?void 0:e.user_access,n=null==e?void 0:e.term,o=null==n?void 0:n.resource;return(null==o?void 0:o.name)&&""!==o.name?(null==t?void 0:t.granted)&&(/registration/i.exec(null==n?void 0:n.name)||"registration"===(null==n?void 0:n.type))?"REGISTERED":(null==t?void 0:t.granted)?"SUBSCRIBER":void 0:"KNOWN"}},515:function(e,t,n){var o=this&&this.__assign||function(){return o=Object.assign||function(e){for(var t,n=1,o=arguments.length;n .jw-state-playing"))||void 0===n?void 0:n.offsetHeight,c=null===(o=document.querySelector(".live-event-banner > .banner-regular"))||void 0===o?void 0:o.offsetHeight;if(window.innerWidth<768){if(l>0)return a+l;if(c>0)return a+c}return a},stickyDismissableRegwall:function(){var e=window.pmcPiano.newsletterForm,t=document.querySelector(e.targetElements.paywall),n=document.querySelector("".concat(e.targetElements.overlay," iframe"));t&&n?(t.classList.add(e.targetElements.paywallFade),window.addEventListener("scroll",(function(){var n=document.querySelector(e.targetElements.overlay),o=t.getBoundingClientRect().top+window.scrollY,i=e.calculateTopOffset();n.style.top="0",n.style.zIndex="2",n.style.transition="top 0.1s ease 0s";var r=(t.getBoundingClientRect().top<=i?Math.min(Math.max(0,window.scrollY+i-o),t.clientHeight-n.clientHeight):0)+(e.emailInputFocused?-150:0);n.style.position="absolute",n.style.top="".concat(r,"px")}))):setTimeout(e.stickyDismissableRegwall)},registerPostMessageListener:function(){var e=window.pmcPiano.newsletterForm;window.addEventListener("message",(function(t){var n,o;if(t.origin.includes("tinypass.com")&&"string"==typeof t.type)switch(t.data.type){case"piano_template_newsletter_close_button_clicked":null===(n=document.querySelector(e.targetElements.paywall))||void 0===n||n.classList.remove(e.targetElements.paywallFade),null===(o=document.querySelector(e.targetElements.overlay))||void 0===o||o.classList.add("lrv-a-hidden");break;case"piano_template_newsletter_email_input":e.emailInputFocused=t.data.focused,window.dispatchEvent(new Event("scroll",{bubbles:!0}));break;case"piano_template_newsletter_submit_button_clicked":a=t.data.brand,i=e.prepareExactTargetFormData(t),e.sendSignupDataToExactTarget(i);break;case"piano_regwall_register_button_clicked":a=t.data.brand,i=e.prepareExactTargetFormData(t),e.setDataForNewsletter=!0,e.debugLog("Data Stored for Registration",i)}}))},registrationSuccess:function(e){var t=e.user.email;t&&this.setDataForNewsletter&&(this.setDataForNewsletter=!1,this.debugLog("newsletter loginSuccess 2",e),i.set("EmailAddress",t),setTimeout(this.sendSignupDataToExactTarget(i),1e3))},initialize:function(){var e=window.pmcPiano.newsletterForm;e.initialized?e.debugLog("PMC Piano Newsletter Form is already initialized"):(e.debugLog("Initializing PMC Piano Newsletter Form"),e.modal&&e.stickyDismissableRegwall(),e.registerPostMessageListener(),window.pmcPiano.piano.registerOnRegisterSuccessCallback(e.registrationSuccess.bind(e)),e.initialized=!0)}},e.exports=t.pmcPianoNewsletterForm},510:function(e,t,n){n.r(t)}},t={};function n(o){var i=t[o];if(void 0!==i)return i.exports;var r=t[o]={exports:{}};return e[o].call(r.exports,r,r.exports,n),r.exports}n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o=n(515);(pmcPiano=void 0===pmcPiano?{}:pmcPiano).newsletterForm=o}();; var pmcPiano;!function(){"use strict";var e={174:function(e,n){var o=this&&this.__awaiter||function(e,n,o,i){return new(o||(o=Promise))((function(t,a){function s(e){try{c(i.next(e))}catch(e){a(e)}}function r(e){try{c(i.throw(e))}catch(e){a(e)}}function c(e){var n;e.done?t(e.value):(n=e.value,n instanceof o?n:new o((function(e){e(n)}))).then(s,r)}c((i=i.apply(e,n||[])).next())}))},i=this&&this.__generator||function(e,n){var o,i,t,a,s={label:0,sent:function(){if(1&t[0])throw t[1];return t[1]},trys:[],ops:[]};return a={next:r(0),throw:r(1),return:r(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function r(r){return function(c){return function(r){if(o)throw new TypeError("Generator is already executing.");for(;a&&(a=0,r[0]&&(s=0)),s;)try{if(o=1,i&&(t=2&r[0]?i.return:r[0]?i.throw||((t=i.return)&&t.call(i),0):i.next)&&!(t=t.call(i,r[1])).done)return t;switch(i=0,t&&(r=[2&r[0],t.value]),r[0]){case 0:case 1:t=r;break;case 4:return s.label++,{value:r[1],done:!1};case 5:s.label++,i=r[1],r=[0];continue;case 7:r=s.ops.pop(),s.trys.pop();continue;default:if(!((t=(t=s.trys).length>0&&t[t.length-1])||6!==r[0]&&2!==r[0])){s=0;continue}if(3===r[0]&&(!t||r[1]>t[0]&&r[1]5||n<=e.mock.calls.length)return o();setTimeout((function(){return i(t+1)}),500)};i(0)}))},n.setLocation=function(e,o,i){void 0===e&&(e=""),void 0===o&&(o=!1),void 0===i&&(i="example.com"),window.pmc_site_config={hostname:i},i=o?i.replace(".com","-proxied.com"):i,(0,n.mockWindowLocation)(new URL("https://"+i+e))},n.appendElement=function(e,n){var o=document.createElement(e);return n&&(o.className=n),document.body.appendChild(o),o},n.getProxy=function(){return window.location.hostname!==window.pmc_site_config.hostname?window.location.origin:""},n.until=function(e,n){return void 0===n&&(n=100),o(this,void 0,void 0,(function(){return i(this,(function(o){switch(o.label){case 0:return e()?[3,2]:[4,new Promise((function(e){return setTimeout(e,n)}))];case 1:return o.sent(),[3,0];case 2:return[2]}}))}))},n.getFunctionName=function(e){var n=e.name.replace("bound","").trim();return n||(n="Anonymous"),n},n.getAuthUserType=function(e){void 0===e&&(e={});var n=null==e?void 0:e.user_access,o=null==e?void 0:e.term,i=null==o?void 0:o.resource;return(null==i?void 0:i.name)&&""!==i.name?(null==n?void 0:n.granted)&&(/registration/i.exec(null==o?void 0:o.name)||"registration"===(null==o?void 0:o.type))?"REGISTERED":(null==n?void 0:n.granted)?"SUBSCRIBER":void 0:"KNOWN"}},353:function(e,n,o){Object.defineProperty(n,"__esModule",{value:!0});var i=o(174),t={canDebug:Boolean(window.pmcPianoData.canDebug)||!1,isIPUser:!1,onHasIPUserCallbacks:[],onLoggedInUserCallbacks:[],onLoggedOutUserCallbacks:[],onLoginSuccessCallbacks:new Set,user:null,prime:function(){var e,n,o,t,a,s,r,c,l,u=this;if(window.tp=window.tp||[],null===(e=window.pmcPianoData)||void 0===e?void 0:e.aid){window.tp.push(["setAid",null===(n=window.pmcPianoData)||void 0===n?void 0:n.aid]),(null===(o=window.pmcPianoData)||void 0===o?void 0:o.cxSiteId)&&(u.canDebug&&console.log(i.consolePrefix,"tp.push: [setCxenseSiteID="+window.pmcPianoData.cxSiteId+"]"),window.tp.push(["setCxenseSiteId",window.pmcPianoData.cxSiteId])),window.tp.push(["setSandbox",!!window.location.host.match(/test|pmcqa|go-vip/)]),window.tp.push(["setDebug",u.canDebug]),window.tp.push(["setUsePianoIdUserProvider",!0]),window.tp.push(["init",u.init.bind(u)]),window.tp.push(["addHandler","loginSuccess",function(e){u.canDebug&&console.log(i.consolePrefix,"loginSuccess"),u.triggerOnLoginSuccessCallbacks(e),u.handleUserState.apply(u)}]),window.tp.push(["addHandler","logout",function(){u.canDebug&&console.log(i.consolePrefix,"logout"),u.user=null,u.triggerOnLoggedOutUserCallbacks()}]),Object.entries(null!==(a=null===(t=window.pmcPianoData)||void 0===t?void 0:t.customVariables)&&void 0!==a?a:{}).map((function(e){var n=e[0],o=e[1];u.canDebug&&console.log(i.consolePrefix,"tp.push: [setCustomVariable, "+n+"="+o+"]"),window.tp.push(["setCustomVariable",n,o])}));var d=window.pmc.tracking.get_properties();if(window.tp.push(["setPageURL",window.location.href]),d.forEach((function(e){u.canDebug&&console.log(i.consolePrefix,"tp.push: [setCustomVariable, pmc-"+e.name+"="+e.value+"]"),window.tp.push(["setCustomVariable","pmc-"+e.name,e.value])})),null===(s=window.pmcPianoData)||void 0===s?void 0:s.author){var g=[].concat(window.pmcPianoData.author).join(",");u.canDebug&&console.log(i.consolePrefix,"tp.push: [setContentAuthor="+g+"]"),window.tp.push(["setContentAuthor",g])}(null===(r=window.pmcPianoData)||void 0===r?void 0:r.tags)&&0<(null===(c=window.pmcPianoData.tags)||void 0===c?void 0:c.length)&&(u.canDebug&&console.log(i.consolePrefix,"tp.push: [setTags=]",window.pmcPianoData.tags),window.tp.push(["setTags",null!==(l=window.pmcPianoData.tags)&&void 0!==l?l:[]]))}else u.canDebug&&console.error(i.consolePrefix,"window.pmcPianoData.aid not defined",window.pmcPianoData)},loadSDK:function(){var e;if(null===(e=window.pmcPianoData)||void 0===e?void 0:e.sdkUri){var n=document.createElement("script");n.type="text/javascript",n.async=!0,n.src=window.pmcPianoData.sdkUri,document.head.appendChild(n)}else this.canDebug&&console.error(i.consolePrefix,"window.pmcPianoData.sdkUri not defined",window.pmcPianoData)},init:function(){var e=this;window.tp.experience.execute(),e.handleUserState.apply(e),e.registerOnLoginSuccessCallback((function(n){"PIANOID"===n.source&&!0!==n.registration&&(e.canDebug&&console.log(i.consolePrefix,"reRenderExperiences on login",n),e.reRenderExperiences.apply(e))})),e.registerOnRegisterSuccessCallback(e.registrationSuccess.bind(e)),e.registerOnLoggedInUserCallback([e.setGA4Config.bind(e)]),e.registerOnLoggedOutUserCallback(e.reRenderExperiences.bind(e)),e.registerOnPageLoadNotHasUserCallback(e.setGA4Config.bind(e))},setGA4Config:function(){var e,n,o,t,a=this,s=null===(e=a.getUser())||void 0===e?void 0:e.uid,r=null===(t=null===(o=null===(n=window.pmcPianoData)||void 0===n?void 0:n.trackingPixels)||void 0===o?void 0:o.ga)||void 0===t?void 0:t.measurement_id;if(r){var c={send_page_view:!1,page_location:document.URL,page_title:document.title};s&&(c.user_id=s),window.tp.setGA4Config({measurementId:r,eventParameters:c}),a.canDebug&&console.log(i.consolePrefix,"tp.setGA4Config measurement id",window.tp.ga4Service.getMeasurementId())}else a.canDebug&&console.log(i.consolePrefix,"GA4 measurement_id is undefined.",window.pmcPianoData)},registrationSuccess:function(e){var n=this;n.canDebug&&console.log(i.consolePrefix,"registrationSuccess in piano.ts");var o=!1;window.tp.push(["addHandler","checkoutClose",function(e){o||(o=!0,n.reRenderExperiences())}])},login:function(e){e.preventDefault(),window.tp.pianoId.show({screen:"login"})},logout:function(e){e.preventDefault(),window.tp.pianoId.logout()},hasUser:function(){return!!this.user},hasIPUser:function(){return!!this.isIPUser},getUser:function(){return this.user},handleUserState:function(){var e,n=this;(null===(e=window.tp.user)||void 0===e?void 0:e.isUserValid())&&(n.user=window.tp.pianoId.getUser(),n.canDebug&&console.log(i.consolePrefix,"User logged-in",n.user),n.triggerOnLoggedInUserCallbacks())},registerOnRegisterSuccessCallback:function(e){window.tp.push(["addHandler","registrationSuccess",function(n){e(n)}])},registerOnLoginSuccessCallback:function(e){this.onLoginSuccessCallbacks.add(e)},triggerOnLoginSuccessCallbacks:function(e){var n=this;n.canDebug&&console.log(i.consolePrefix,"Running loginSuccess callbacks",n.onLoginSuccessCallbacks),n.onLoginSuccessCallbacks.forEach((function(n){n(e)}))},registerOnLoggedInUserCallback:function(e){var n=this;void 0===e&&(e=[]),[].concat(e).forEach((function(e){n.hasUser()&&e(n.getUser()),n.onLoggedInUserCallbacks.push(e)}))},registerOnLoggedOutUserCallback:function(e){this.onLoggedOutUserCallbacks.push(e)},registerOnPageLoadNotHasUserCallback:function(e){window.tp=window.tp||[],window.tp.push(["init",function(e){window.tp.pianoId.isUserValid()||(this.canDebug&&console.log(i.consolePrefix,"Firing no-user callback",(0,i.getFunctionName)(e)),e())}.bind(this,e)])},registerOnHasIPUserCallback:function(e){!0===this.hasIPUser()&&e(),this.onHasIPUserCallbacks.push(e)},triggerOnLoggedInUserCallbacks:function(){var e=this;e.canDebug&&console.log(i.consolePrefix,"Running login callbacks",e.onLoggedInUserCallbacks),e.onLoggedInUserCallbacks.forEach((function(n){n(e.user)}))},triggerOnLoggedOutUserCallbacks:function(){var e=this;e.canDebug&&console.log(i.consolePrefix,"Running logout callbacks",e.onLoggedOutUserCallbacks),e.onLoggedOutUserCallbacks.forEach((function(e){e()}))},triggerOnHasIPUserCallbacks:function(){var e=this;e.canDebug&&console.log(i.consolePrefix,"Running has-IP-user callbacks",e.onHasIPUserCallbacks),e.onHasIPUserCallbacks.forEach((function(e){e()}))},setIPUser:function(){var e=this;e.canDebug&&console.log(i.consolePrefix,"User has a known IP Address"),e.isIPUser=!0,e.triggerOnHasIPUserCallbacks()},reRenderExperiences:function(){this.canDebug&&console.log(i.consolePrefix,"Re-rendering Experiences"),window.tp.offer.close(),window.tp.offer.closeInline("#piano-paywall"),window.tp.offer.closeInline("#piano-right-rail"),window.tp.offer.closeInline("#piano-mid-river"),window.tp.offer.closeInline("#piano-sticky-footer"),window.tp.offer.closeInline("#piano-fly-out");var e=document.querySelector(".pmc-paywall");e&&(e.classList.remove("a-article-cropped"),e.classList.remove("piano-truncate-content")),window.tp.experience.execute()}};t.prime(),t.loadSDK(),e.exports=t}},n={},o=function o(i){var t=n[i];if(void 0!==t)return t.exports;var a=n[i]={exports:{}};return e[i].call(a.exports,a,a.exports,o),a.exports}(353);(pmcPiano=void 0===pmcPiano?{}:pmcPiano).piano=o}();; var pmcPiano;!function(){"use strict";var e={174:function(e,n){var t=this&&this.__awaiter||function(e,n,t,o){return new(t||(t=Promise))((function(i,r){function a(e){try{l(o.next(e))}catch(e){r(e)}}function c(e){try{l(o.throw(e))}catch(e){r(e)}}function l(e){var n;e.done?i(e.value):(n=e.value,n instanceof t?n:new t((function(e){e(n)}))).then(a,c)}l((o=o.apply(e,n||[])).next())}))},o=this&&this.__generator||function(e,n){var t,o,i,r,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return r={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function c(c){return function(l){return function(c){if(t)throw new TypeError("Generator is already executing.");for(;r&&(r=0,c[0]&&(a=0)),a;)try{if(t=1,o&&(i=2&c[0]?o.return:c[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,c[1])).done)return i;switch(o=0,i&&(c=[2&c[0],i.value]),c[0]){case 0:case 1:i=c;break;case 4:return a.label++,{value:c[1],done:!1};case 5:a.label++,o=c[1],c=[0];continue;case 7:c=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||6!==c[0]&&2!==c[0])){a=0;continue}if(3===c[0]&&(!i||c[1]>i[0]&&c[1]5||n<=e.mock.calls.length)return t();setTimeout((function(){return o(i+1)}),500)};o(0)}))},n.setLocation=function(e,t,o){void 0===e&&(e=""),void 0===t&&(t=!1),void 0===o&&(o="example.com"),window.pmc_site_config={hostname:o},o=t?o.replace(".com","-proxied.com"):o,(0,n.mockWindowLocation)(new URL("https://"+o+e))},n.appendElement=function(e,n){var t=document.createElement(e);return n&&(t.className=n),document.body.appendChild(t),t},n.getProxy=function(){return window.location.hostname!==window.pmc_site_config.hostname?window.location.origin:""},n.until=function(e,n){return void 0===n&&(n=100),t(this,void 0,void 0,(function(){return o(this,(function(t){switch(t.label){case 0:return e()?[3,2]:[4,new Promise((function(e){return setTimeout(e,n)}))];case 1:return t.sent(),[3,0];case 2:return[2]}}))}))},n.getFunctionName=function(e){var n=e.name.replace("bound","").trim();return n||(n="Anonymous"),n},n.getAuthUserType=function(e){void 0===e&&(e={});var n=null==e?void 0:e.user_access,t=null==e?void 0:e.term,o=null==t?void 0:t.resource;return(null==o?void 0:o.name)&&""!==o.name?(null==n?void 0:n.granted)&&(/registration/i.exec(null==t?void 0:t.name)||"registration"===(null==t?void 0:t.type))?"REGISTERED":(null==n?void 0:n.granted)?"SUBSCRIBER":void 0:"KNOWN"}},533:function(e,n,t){var o=this&&this.__assign||function(){return o=Object.assign||function(e){for(var n,t=1,o=arguments.length;t0&&i[i.length-1])||6!==c[0]&&2!==c[0])){a=0;continue}if(3===c[0]&&(!i||c[1]>i[0]&&c[1]=i.length?[u]:function(e){var n=[];return 1>=e.length?e:(["( |^)corporate","( |^)education","( |^)partner","( |^)agent","( |^)billboard member","( |^)employee","( |^)comp","( |^)(limited|registration)"].forEach((function(t){for(var o,i,r,c=0;c=n.length)return r;var a=n.slice(1).map((function(e){return i(e)})),c="individual"===r,l=a.includes("agent"),u=a.includes("site_license");return c&&l&&u?"individual|site_license|agent":c&&u&&!l?"individual|site_license":c&&l&&!u?"individual|agent":"site_license"===r&&l?"site_license|agent":(P.canDebug&&console.log("User might have duplicate resources. userId: ".concat(null===(o=null===(t=null==e?void 0:e.user_access)||void 0===t?void 0:t.user)||void 0===o?void 0:o.uid," accountType: ").concat(r)),r)}(i[0],i),d=function(e){return e&&("email_domain_contract"===(null==e?void 0:e.type)||"specific_email_addresses_contract"===(null==e?void 0:e.type))},p=Array.from(new Set(i.map((function(e){var n;return null===(n=null==e?void 0:e.term)||void 0===n?void 0:n.resource.name})))).join("|")||void 0,f=Array.from(new Set(i.map((function(e){var n;return null===(n=null==e?void 0:e.term)||void 0===n?void 0:n.name})))).join("|")||void 0,v=Array.from(new Set(i.map((function(e){return(null==e?void 0:e.user_access)||(null==e?void 0:e.term)?(0,c.getAuthUserType)(e):void 0})))).sort((function(e,n){return e.localeCompare(n)})).join("|")||void 0,m=[],g=0,h=i,r.label=2;case 2:return g