!function(e,t){for(var n in t)e[n]=t[n]}(exports,function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=3)}([function(e,t){e.exports=require("react")},function(e,t,n){var r;!function(){"use strict";var n={}.hasOwnProperty;function o(){for(var e=[],t=0;t0&&void 0!==arguments[0]?arguments[0]:[];return e.includes("100")||e.includes("110")||e.includes("120")?"wall_retargeting":"wall_standard"}function ie(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").split(",").map(function(e){return e.replace(/\/|^wp - /g,"").replace(/,/g,";").trim()}).join(";").toLocaleLowerCase()}function le(e,t){var n,r,o,a,i;return{label:"o1",browserUserAgentHit:navigator.userAgent,promoCode:"o1",acqEntranceType:ae(null==e?void 0:null===(n=e.data)||void 0===n?void 0:n.actionCodes),geoMarket:(a=z(Y()),i=K().country_code,a&&"US"===i?"L":i&&"US"!==i&&"CA"!==i&&!J()?"I":J()?"E":"CA"===i?"C":"N"),acqTemplate:"",acqEntrancePage:ee(),arcId:t||"",contentTags:ie(null===(r=window)||void 0===r?void 0:null===(o=r.wpMetaData)||void 0===o?void 0:o.ct_tags),actionCode:"".concat(null==e?void 0:e.action)}}var ce=function(e,t){var n=e.pwapiResponse,r=e.arcId,o=function(e){window.dataLayer=window.dataLayer||[],window.dataLayer.push(e)};return{GAData:re(re({},le(n,r)),t),addEvent:o,addEventWithArticleData:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};o(re(re(re({userAgentHit:window.navigator.userAgent,userAgentSession:window.navigator.userAgent,subscription_pricing:e.subscription_pricing,subscription_location:e.subscription_location,subscription_experience:e.subscription_experience},le(n,r)),t),e))},addMarketingEvent:function(){o({event:"acq_marketing_paywall",category:"acquisition",action:"acq_marketing"})},addGAParamsToURL:function(e,o){var a=re(re(re({},le(n,r)),t),o),i=encodeURIComponent(te()),l={promo:a.promoCode,arcId:a.arcId,acqEntType:a.acqEntranceType,destination:i,next_url:i,p:a.subscription_pricing,s_l:a.subscription_location,e:a.subscription_experience},c=new URL(e);return Object.keys(l).forEach(function(e){l[e]&&c.searchParams.append(e,l[e])}),c.toString()},addOptimizeEvent:function(e){o({event:"optimize.".concat(e)})}}},se="wp_nl",ue="sw";function Oe(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:48,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:720;if("undefined"!=typeof window){var o=JSON.parse(localStorage.getItem(se)||"{}");if(o="number"==typeof o?{}:o,t){var a=Date.now()+60*n*60*1e3;o[ue]=a,localStorage.setItem(se,JSON.stringify(o))}else if(e){var i=Date.now()+60*r*60*1e3;o[e]=i,localStorage.setItem(se,JSON.stringify(o))}}}function _e(e){var t=JSON.parse(localStorage.getItem(se)||"{}");if(!(t="number"==typeof t?{}:t)[ue]&&!t[e])return!0;var n=Date.now(),r=!t[ue]||t[ue]0&&void 0!==arguments[0]?arguments[0]:navigator.userAgent;return/IEMobile|Windows Phone|Lumia/i.test(e)?"w":/iPhone|iP[oa]d/.test(e)?"i":/Android/.test(e)?"a":/BlackBerry|PlayBook|BB10/.test(e)?"b":/webOS|Mobile|Tablet|Opera Mini|\bCrMo\/|Opera Mobi/i.test(e)?1:0},de=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:navigator.userAgent;return/Tablet|iPad/i.test(e)};var fe=function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").split(",").map(function(e){return e.trim()}).includes(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:navigator.userAgent;return de(e)?"tablet":Ee(e)?"mobile":"desktop"}())};var pe=function(){var e=Object(r.useContext)(a).setSizes,t=function(){requestAnimationFrame(function(){e&&e({isSmall:p(),isMedium:L(),isLarge:A()})})};return Object(r.useEffect)(function(){return"undefined"!=typeof window&&window.addEventListener("resize",t,!1),function(){"undefined"!=typeof window&&window.removeEventListener("resize",t,!1)}},[]),null},Le={NODE_ENV:"production",SERVICE_URL:"https://subscribe.washingtonpost.com",WALL_CONFIG:{TEMPLATE_ID:"softwall-subscribe",SOFTWALL_V2_HAS_PROMO_LABEL:"both",SOFTWALL_V2_PROMO_LABEL_PRIMARY:"PRESIDENTS' DAY SALE",SOFTWALL_V2_PROMO_LABEL_SECONDARY:"",SOFTWALL_V2_PROMO_LABEL_HAS_LOGO:!1,SOFTWALL_V2_CTA_PROMO_CODE:"o14_sw",SOFTWALL_V2_MIN_CTA_PROMO_CODE:"o14_sw_cd",SOFTWALL_V2_CTA_BUTTON_TEXT:"Subscribe",SOFTWALL_V2_CTA_BUTTON_COLOR:"Blue",SOFTWALL_V2_CTA_BUTTON_HEX_COLOR_OVERRIDE:"",SOFTWALL_V2_CTA_BUTTON_STYLE:"Button",SOFTWALL_V2_CTA_LINK:"",SOFTWALL_V2_EXPANDED_HEADER:"An entire year of insight and analysis, now just $29.",SOFTWALL_V2_COLLAPSED_HEADER_DESKTOP:"An entire year of insight and analysis, now just $29.",SOFTWALL_V2_COLLAPSED_HEADER_MOBILE:"Get one year for $29.",SOFTWALL_V2_SUPPORTING_TEXT:" ",SOFTWALL_V2_CLICK_TRIGGER:"You can cancel anytime",SOFTWALL_V2_EXPANDED_BODY_STYLE:"left",SOFTWALL_V2_LEFT_IMAGE_URL:"http://placehold.jp/400x400.png",SOFTWALL_V2_RIGHT_IMAGE_URL:"",SOFTWALL_V2_MOBILE_IMAGE_URL:"",SOFTWALL_V2_BACKGROUND_COLOR:"White",INCLUDE_LOGGING:!0,REGION:"US",NOTE:"",GTM_LOADER:"gtm",EXCLUDING_PLATFORMS:"mobile",CLOSE_BUTTON_EXPIRATION_HOUR:48,SUBMIT_EXPIRATION_HOUR:720,SHOW_CLOSE_ON_MIN:!0,MIN_ON_LOAD:!0,EXPAND_ON_SCROLL:!0,PRICING_STRATEGY:"Annual",EXPANDABLE:!1,SUBSCRIPTION_LOCATION:"ONSITE_SOFTWALL_EXPANDED",MIN_SUBSCRIPTION_LOCATION:"ONSITE_SOFTWALL_COLLAPSED",SUBSCRIPTION_PRICING:"0121",SUBSCRIPTION_EXPERIENCE:"Presidents Day 2021",DEPLOYMENT_TOKEN:1613518561287,ASSET_BASE_URL:"https://www.washingtonpost.com/subscribe",ACQ_BASE_URL:"https://subscribe.washingtonpost.com",PAYWALL_TEMPLATE_ID:"softwall-us-62759af9756"},VERSION:"2.2.0"};function Ae(e){var t=e.wallState,n=e.children;return Object(r.useEffect)(function(){try{"undefined"!=typeof window&&"undefined"!=typeof performance&&performance.getEntriesByName("SUBS - wall invoked").length&&(performance.mark("SUBS - wall ready"),performance.measure("SUBS - wall time to display","SUBS - wall invoked","SUBS - wall ready"),window.BOOMR&&"function"==typeof window.BOOMR.sendTimer&&window.BOOMR.sendTimer("compCompleted",performance.getEntriesByName("SUBS - wall time to display")[0].duration))}catch(e){}},[]),o.a.createElement(a.Provider,{value:t},n,o.a.createElement(pe,null),o.a.createElement("span",{id:"wall-templates-version",style:{display:"none"}},Le.VERSION))}function Se(e){var t,n=e.handleScroll,o=0,a=function(){t&&window.cancelAnimationFrame(t),t=window.requestAnimationFrame(function(){var e=window.pageYOffset||document.documentElement.scrollTop;n(e=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var tt=function(e){e.children;var t=e.color,n=void 0===t?"WaPo blue":t,r=e.href,a=e.className,i=e.style,c=e.onClick,s=e.rounded,u=e.contentId,O=void 0===u?"":u,_=e.buttonStyle,E=void 0===_?"Button":_,d=e.innerHTML,f=void 0===d?"Subscribe":d,p=e.isLoading,L=void 0!==p&&p,A=et(e,["children","color","href","className","style","onClick","rounded","contentId","buttonStyle","innerHTML","isLoading"]),S=we(O),b=S.onChange,T=S.isContentEditable,m="",I="Link"===E||"Arrow"===E;m=I||"White"!==n&&"Black"!==n&&"WaPo blue"!==n?I?l()({"subs-theme":"White"!==n&&"WaPo blue"!==n&&"Black"!==n},"".concat([R[n]]," bold")):"btn subs-theme bg-".concat(R[n]):"btn btn-".concat(R[n]),f=L?" ".concat(f):f;var v=o.a.createElement("span",{dangerouslySetInnerHTML:{__html:f},id:O,contentEditable:!!O&&T}),C=Je({role:"button",href:r,style:Je(Je({whiteSpace:I?"normal":"nowrap",boxSizing:"border-box",borderRadius:s?"31px":0},i),{},{borderColor:"White"!==n?"unset":void 0,padding:I?"":null==i?void 0:i.padding}),onBlur:b,onClick:function(e){O&&!T||!O?c&&c(e):T&&e.preventDefault()},className:l()(a,"ma-0 pointer",{dib:!I},m),children:o.a.createElement(o.a.Fragment,null,v,"Arrow"===E?o.a.createElement(Ze,{angle:0,size:16,color:(null==i?void 0:i.color)||n,style:{marginLeft:"5px",verticalAlign:"middle"}}):null)},A);return r||T&&O||I?o.a.createElement("a",C):o.a.createElement("button",C)};var nt=function(e){var t=e.color,n=e.acquisitionURL,i=e.buttonStyle,l=e.hexOverride,c=e.buttonText,s=Object(r.useContext)(a),u=s.isSmall,O=s.wallConfig;return u&&"Button"===i&&(i="Link"),o.a.createElement(tt,{contentId:"SOFTWALL_V2_CTA_BUTTON_TEXT",color:t,buttonStyle:i,href:n,rounded:!0,className:"dib",style:{padding:u||"Button"!==i?"":"7px 32px",backgroundColor:"Button"===i?l:void 0,color:"Button"!==i?l:void 0,borderColor:l,marginLeft:u?"0px":void 0},onClick:function(){Oe("",!0,O.CLOSE_BUTTON_EXPIRATION_HOUR)},innerHTML:c})};function rt(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(!(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)))return;var n=[],r=!0,o=!1,a=void 0;try{for(var i,l=e[Symbol.iterator]();!(r=(i=l.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){o=!0,a=e}finally{try{r||null==l.return||l.return()}finally{if(o)throw a}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var ot=function(e){var t=e.style,n=e.color,a=void 0===n?"Offblack":n,i=e.onClick,c=e.contentId,s=e.className,u=void 0===s?"":s,O=e.innerHTML,_=we(c),E=_.onChange,d=_.isContentEditable,f=rt(Object(r.useState)(!1),2),p=f[0],L=f[1];return O||d?o.a.createElement("h1",{className:l()(u,"font--headline",R[a]),style:t,onClick:function(e){return!p&&i&&i(e)},id:c,onBlur:function(e){E(e),L(!1)},onFocus:function(){return L(!0)},contentEditable:!!c&&d,dangerouslySetInnerHTML:{__html:O||" "}}):null};var at=function(e){var t=e.mobileHeadline,n=e.desktopHeadline;return Object(r.useContext)(a).isSmall?o.a.createElement(ot,{contentId:"SOFTWALL_V2_COLLAPSED_HEADER_MOBILE",className:"font-xs font--subhead dib border-box",style:{fontWeight:"normal"},innerHTML:t}):o.a.createElement(ot,{contentId:"SOFTWALL_V2_COLLAPSED_HEADER_DESKTOP",className:"dib font-sm",style:{display:"inline"},innerHTML:n})};function it(){return(it=Object.assign||function(e){for(var t=1;t