!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=11)}([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;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}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,i=!0,c=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return i=e.done,e},e:function(e){c=!0,a=e},f:function(){try{i||null==n.return||n.return()}finally{if(c)throw a}}}},t._createSuper=function(e){var t=u();return function(){var n,r=l(e);if(t){var o=l(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){return!t||"object"!=typeof t&&"function"!=typeof t?p(e):t}(this,n)}},t._defineProperty=i,t._extends=c,t._inherits=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&s(e,t)},t._objectSpread2=function(e){for(var t=1;t=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},t._slicedToArray=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=e&&("undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null!=n){var r,o,a=[],i=!0,c=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);i=!0);}catch(e){c=!0,o=e}finally{try{i||null==n.return||n.return()}finally{if(c)throw o}}return a}}(e,t)||m(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()},t._toConsumableArray=function(e){return function(e){if(Array.isArray(e))return b(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||m(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()},t._typeof=o,t._wrapNativeSuper=f},function(e,t){e.exports=require("react-dom")},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(2),o=n(0);n(5);var a=n(8),i=n(9),c=n(10);var l,s,u=function(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}(o),d={consentCountry:"",tos:""},f=function(){var e="undefined"==typeof window?"":window.location&&window.location.hostname||"";return/(subscribe\.|subscription\.|localhost.digitalink\.)/.test(e)},p={configUrl:{dev:"https://subscribe.digitalink.com",sandbox:"https://subs-stage.washingtonpost.com",prod:"https://www.washingtonpost.com/subscribe"},subsUrl:{dev:"https://subscribe.digitalink.com",sandbox:"https://subs-stage.washingtonpost.com",prod:"https://subscribe.washingtonpost.com"}},m=function(){try{var e=(new Date).toString();window.localStorage.setItem(e,e);var t=window.localStorage.getItem(e)===e;return window.localStorage.removeItem(e),t}catch(e){return!1}},b=function(e){return p[e][(t="undefined"==typeof window?"":window.location&&window.location.hostname||"",n="prod",/(pb-impact\.|subs-stage\.|sandbox\.|.preview.now.washingtonpost.com|localhost.washingtonpost.com)/.test(t)?n="sandbox":/dev\.washpost|localhost|digitalink\.com/.test(t)&&(n="dev"),n)]||p[e].prod;var t,n},y=function(){return!!a.getCookie("wapo_actmgmt")},h=function(e){var t;if(m()&&(t=JSON.parse(localStorage.getItem("wapo_identity"))),t){var n={privacySetting:r._objectSpread2(r._objectSpread2({},t.privacySetting),e)},o=r._objectSpread2(r._objectSpread2({},t),n);localStorage.setItem("wapo_identity",JSON.stringify(o))}},g=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=b("subsUrl"),o={appName:"SC",locationId:"SC:TermsOfService",message:"no message",state:{}};o=r._objectSpread2(r._objectSpread2({},o),t);var c=a.getCookie("wapo_login_id")||"";return c&&(o.state.wapo_login_id=c),i.JSONFetch("".concat(n,"/logging/").concat(e),{method:"POST",credentials:"include",body:JSON.stringify(o)})},v=function(e){var t=b("subsUrl"),n=null;return i.JSONFetch("".concat(t,"/user/auth-status?_v=").concat((new Date).getTime()),{method:"GET",credentials:"include"}).then(function(e){e&&"SUCCESS"===e.status&&!f()&&function(e){if(m()){var t=localStorage.getItem("wapo_identity");t=t&&JSON.parse(t)||{};var n=Object.assign(t,e),r=Date.now()+864e5;n.e=r,localStorage.setItem("wapo_identity",JSON.stringify(n))}}(e.userState),n=e}).catch(function(e){return console.error(e)}).finally(function(){return f()||h(e),n})},O=function(){var e,t=(m()&&(e=y()?JSON.parse(localStorage.getItem("wapo_identity")):{}),e?e.privacySetting||d:{});return 0===Object.keys(t).length&&y()&&f()?v().then(function(e){var t;return(null==e||null===(t=e.userState)||void 0===t?void 0:t.privacySetting)||d}):Promise.resolve(t)},w=function(e){return Object.keys(e).reduce(function(t,n){return t[n.toLowerCase()]=e[n],t},{})},E=function(e,t){var n=new RegExp(Object.keys(t).join("|"),"gi");return null==e?void 0:e.replace(n,function(e){return t[e]})};c.styleInject("input[type=checkbox].index-module_tos-checkbox__3XQ6z{-webkit-appearance:none;align-self:baseline}input[type=checkbox].index-module_tos-checkbox__3XQ6z:checked{background-color:#000}");var _=function(e){var t=e.onChange,n=e.isChecked,r=e.checkboxLabelClass,o=e.id,a=e.children,i=e.labelSizeSm,c=e.disabled,d="db gray-dark relative flex pt-xxs pb-xxs items-start ".concat(r),f=i?"16px":"18px",p=c?"not-allowed":"";return u.default.createElement("label",{htmlFor:o,className:d,"data-sc-v":"4.39.0","data-sc-c":"toscheckbox"},u.default.createElement("span",{className:"relative mr-xs",style:{height:f,width:f},"data-sc-v":"4.39.0","data-sc-c":"toscheckbox"},u.default.createElement("input",{id:o,className:"".concat("index-module_tos-checkbox__3XQ6z"," inset-shadow bg-white brad-2 relative outline-none appearance-none ma-0 ").concat(p),type:"checkbox",checked:n,onChange:t,"data-testid":o,style:{height:f,width:f},disabled:c,"data-sc-v":"4.39.0","data-sc-c":"toscheckbox"}),u.default.createElement("svg",{className:"absolute top-50 left-0 -translate-y-50 ".concat(""," ").concat(n?"dib":"dn"),viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",style:{height:f,width:f},"data-sc-v":"4.39.0","data-sc-c":"toscheckbox"},l||(l=u.default.createElement("title",{"data-sc-v":"4.39.0","data-sc-c":"toscheckbox"},"Check")),s||(s=u.default.createElement("path",{d:"M10.052 16.245L3.265 9.46l-1.767 1.768 7.778 7.778a1.25 1.25 0 0 0 1.863-.107L23.415 3.413 21.456 1.86 10.052 16.245z",fill:"#fff",fillRule:"nonzero","data-sc-v":"4.39.0","data-sc-c":"toscheckbox"})))),a)},S=function(e){var t=e.htmlText,n=e.checkboxLabelClass,r=e.isRequired,o=e.id;return u.default.createElement("span",{style:{paddingTop:"1px"},className:"db ".concat(n||""),"data-sc-v":"4.39.0","data-sc-c":"toslabel"},u.default.createElement("span",{"data-testid":"".concat(o,"Text"),dangerouslySetInnerHTML:{__html:t},"data-sc-v":"4.39.0","data-sc-c":"toslabel"}),r&&u.default.createElement("span",{className:"red font-xxs",style:{lineHeight:"0"},"data-sc-v":"4.39.0","data-sc-c":"toslabel"},"*"))},j={tosConfig:{_:{tos:{_:{text:"I agree to The Washington Post's {{TERMS_OF_SERVICE}} and {{PRIVACY_POLICY}}.",required:!0,implicit:!1,prechecked:!1},checkout:{text:null,required:!1,implicit:!0},freeTrial:{text:"By signing up for this free trial, you agree to the {{TERMS_OF_SERVICE}} and {{PRIVACY_POLICY}}.",implicit:!1}},marketingConsent:{_:{text:null,implicit:!0,prechecked:!1}}},us:{tos:{},marketingConsent:{}},ca:{tos:{},marketingConsent:{_:{text:"The Washington Post may use my email address to provide me occasional special offers via email and through other platforms. I can opt out at any time.",implicit:!1},checkout:{prechecked:!0}}},"gb|at|be|bg|hr|cy|cz|dk|ee|fi|fr|de|gr|hu|ie|it|lv|lt|lu|mt|nl|pl|pt|ro|sk|si|es|se|is|no|ch|li":{tos:{freeTrial:{text:"By signing up for this free trial of our , you agree to the use by us and our {{THIRD_PARTY_PARTNERS}} of cookies and data gathered from your use of our sites, apps and newsletters to customize your experience, perform analytics and deliver personalized advertising on our platforms and across the Internet. You can manage the collection and use of such data here, or if you do not consent to the use of cookies and tracking on our sites and apps for personalized advertising, you may subscribe to our Premium EU Ad-Free subscription. See our {{TERMS_OF_SERVICE}} and {{PRIVACY_POLICY}} for more information about the use of the data and your rights.",implicit:!1}},marketingConsent:{_:{text:"The Washington Post may use my email address to provide me occasional special offers via email and through other platforms. I can opt out at any time.",implicit:!1},checkout:{prechecked:!0}}}},tosMapObj:{"{{TERMS_OF_SERVICE}}":"Terms of Service","{{PRIVACY_POLICY}}":"Privacy Policy","{{THIRD_PARTY_PARTNERS}}":"third-party partners"}},C=function(e){var t,n=e.propTosConfig,i=e.propMcConfig,c=e.isToSNeeded,l=e.type,s=e.isConfigNeeded,u=e.overrideTosHidden,d=e.userConfigReady,f=o.useState(!1),p=r._slicedToArray(f,2),m=p[0],y=p[1],h=o.useState({isChecked:!1}),g=r._slicedToArray(h,2),v=g[0],O=g[1],_=o.useState({isChecked:!1}),S=r._slicedToArray(_,2),C=S[0],P=S[1],L=(t=a.getCookie("wp_geo")||"")&&t.split("|")[0]?t.split("|")[0].toLowerCase():null,T=function(e){var t=null==e?void 0:e.tosConfig,o=null==e?void 0:e.tosMapObj;t||(t=j.tosConfig,o=j.tosMapObj);var a=function(e){var t=e.s3Config,n=e.country,o=e.propTosConfig,a=void 0===o?{}:o,i=e.propMcConfig,c=void 0===i?{}:i,l=e.isToSNeeded,s=e.type,u=e.overrideTosHidden,d=e.s3MapObj,f=t._||{},p=r._objectSpread2(r._objectSpread2({},null==f?void 0:f.tos._),null==f?void 0:f.tos[s]),m=r._objectSpread2(r._objectSpread2({},null==f?void 0:f.marketingConsent._),null==f?void 0:f.marketingConsent[s]),b={},y={},h=Object.keys(t).find(function(e){return e.toLowerCase().indexOf(n)>-1});if(h){var g,v,O,_,S=w(a),j=r._objectSpread2(r._objectSpread2({},S._),S[h]),C=w(c),P=r._objectSpread2(r._objectSpread2({},C._),C[h]);b=r._objectSpread2(r._objectSpread2(r._objectSpread2({},null===(g=t[h])||void 0===g?void 0:g.tos._),null===(v=t[h])||void 0===v?void 0:v.tos[s]),j),y=r._objectSpread2(r._objectSpread2(r._objectSpread2({},null===(O=t[h])||void 0===O?void 0:O.marketingConsent._),null===(_=t[h])||void 0===_?void 0:_.marketingConsent[s]),P)}var L=!u&&(!l||b.prechecked);return b=r._objectSpread2(r._objectSpread2(r._objectSpread2({},p),b),{},{isChecked:!!L}),y=r._objectSpread2(r._objectSpread2(r._objectSpread2({},m),y),{},{isChecked:!!y.prechecked}),d&&(b.text=E(b.text,d),y.text=E(y.text,d)),{tos:b,mc:y}}({s3Config:t,country:L,propTosConfig:n,propMcConfig:i,isToSNeeded:c,type:l,overrideTosHidden:u,s3MapObj:o}),s=a.tos,d=a.mc;O(s),P(d),y(!0)};return o.useEffect(function(){var e;d&&(s||n||i?(e=b("configUrl"),Promise.race([fetch("".concat(e,"/static/config/tos/tos.json"),{method:"GET"}),new Promise(function(e,t){return setTimeout(function(){return t(new Error("timeout"))},8e3)})])).then(function(e){return e.json()}).then(function(e){T(e)}).catch(function(e){console.error(e),T(j)}):y(!0))},[d,s,c]),{tosConfig:v,mcConfig:C,ready:m,country:L,updateConfigValue:function(e,t){"tos"===e?O(t):"mc"===e&&P(t)}}},P=function(e){var t=e.isSubmitted,n=void 0!==t&&t,a=e.type,c=void 0===a?"account":a,l=e.email,s=e.className,d=void 0===s?"":s,p=e.checkboxLabelClass,m=void 0===p?"":p,w=e.tosConfig,E=e.mcConfig,j=e.onChange,P=void 0===j?function(){console.error("onChange function missing"),g("logFailure",{message:"onChange function missing"})}:j,L=e.tosConfigReady,T=void 0===L?function(){}:L,A=e.overrideTosHidden,x=void 0!==A&&A,I=e.labelSizeSm,R=void 0===I||I,N=e.disabled,k=void 0!==N&&N,D=o.useState({}),M=r._slicedToArray(D,2),B=M[0],U=M[1];o.useEffect(function(){var e,t,n;(e=x,t=!1,n=!1,O().then(function(r){var o=r.marketingConsent,a=void 0===o?{}:o,i=r.tos,c=void 0===i?{}:i;return t="Y"!==c.consent,void 0!==a.consent&&0==a.consent||(n=!0),{tos:c,marketingConsent:a,isConfigNeeded:e||t||n,isToSNeeded:t,isMcNeeded:n,userConfigReady:!0}})).then(function(e){U(e)})},[x]);var W=B.tos,z=void 0===W?{}:W,V=B.marketingConsent,F=void 0===V?{}:V,H=B.isConfigNeeded,q=B.isToSNeeded,G=B.isMcNeeded,Y=B.userConfigReady,X=C({propTosConfig:w,propMcConfig:E,isToSNeeded:q,type:c,isConfigNeeded:H,overrideTosHidden:x,userConfigReady:Y}),J=X.tosConfig,$=X.mcConfig,K=X.ready,Z=X.country,Q=X.updateConfigValue;o.useEffect(function(){K&&((J.required||$.required)&&H||P(!0),T())},[K]),o.useEffect(function(){J.required&&$.required?P(J.isChecked&&$.isChecked):J.required?P(J.isChecked):$.required&&P($.isChecked)},[J.isChecked,$.isChecked]);o.useEffect(function(){n&&function(){var e=z.consent,t=z.consentCountry,n=F.consent,r=F.consentCountry,o=$.isChecked?0:1,a=$.implicit?-1:o,c=Z,s=J.isChecked||!q||J.implicit?"Y":"N";10==n?(a=a<0?1:a,c=Z):(void 0!==n&&!G||n>-1&&a<0||n==a)&&(a=n,c=r),function(e,t){t&&(e.email=t);var n=b("subsUrl"),r=JSON.stringify(e);i.JSONFetch("".concat(n,"/user/save-identity-preferences"),{method:"POST",credentials:"include",body:r}).then(function(t){if("SUCCESS"===t.status&&y()){var n=JSON.parse(localStorage.getItem("wapo_identity"));n&&n.signedIn?f()||h(e.privacySetting):v(e.privacySetting)}}).catch(function(e){console.error(e),g("logFailure",{message:"SIP failed",locationId:"SC:TermsOfService:api:/user/save-identity-preferences",state:{status:"failure",request:r}})})}({privacySetting:{tos:{consent:"".concat(s),consentCountry:"Y"!==e||q||x?Z:t},marketingConsent:{consent:"".concat(a),consentCountry:c}}},l)}()},[n]);var ee=R?"font-xxxxs":"font-xxxs",te=u.default.createElement(S,{htmlText:J.text,isRequired:J.required,id:"tosCheckbox",checkboxLabelClass:J.implicit?"".concat(ee," ").concat(m," pt-xxs pb-xxs gray-dark"):ee}),ne=u.default.createElement(S,{htmlText:$.text,isRequired:$.required,id:"mcCheckbox",checkboxLabelClass:$.implicit?"gray-dark ".concat(ee," ").concat(m):ee}),re=q||x;return u.default.createElement("div",{className:"db mt-xs mb-xs ".concat(d),"data-sc-v":"4.39.0","data-sc-c":"termsofservice"},re&&J.text&&!J.implicit&&u.default.createElement(_,{htmlText:J.text,onChange:function(){return Q("tos",r._objectSpread2(r._objectSpread2({},J),{},{isChecked:!J.isChecked}))},isChecked:J.isChecked,checkboxLabelClass:m,isRequired:J.required,id:"tosCheckbox",labelSizeSm:R,disabled:k},te),re&&J.text&&J.implicit&&te,G&&$.text&&!$.implicit&&u.default.createElement(_,{htmlText:$.text,onChange:function(){return Q("mc",r._objectSpread2(r._objectSpread2({},$),{},{isChecked:!$.isChecked}))},isChecked:$.isChecked,checkboxLabelClass:m,isRequired:$.required,id:"mcCheckbox",labelSizeSm:R,disabled:k},ne),G&&$.text&&$.implicit&&ne)};P.defaultProps={labelSizeSm:!0},t.TermsOfService=P},function(e,t,n){e.exports=n(6)()},function(e,t,n){"use strict";var r=n(7);function o(){}function a(){}a.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,a,i){if(i!==r){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:a,resetWarningCache:o};return n.PropTypes=n,n}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){"use strict";t.getCookie=function(e){if("undefined"!=typeof window){var t=document.cookie.match("(^|;) ?".concat(e,"=([^;]*)(;|$)"));return t?t[2]:null}},t.setCookie=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];document.cookie="".concat(e,"=").concat(t,";")+(n&&"domain=.".concat(window.origin.split(".").slice(-2).join("."),"; path=/;"))}},function(e,t,n){"use strict";var r=n(2),o=function(e){return new Promise(function(t){return e.json().then(function(n){return t({status:e.status,ok:e.ok,json:n})})})},a=function(e){if(!e.ok)throw e.json||e;return e.json},i={Accept:"application/json","Content-Type":"application/json"};t.JSONFetch=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{method:"GET"},n=t;return n.headers=r._objectSpread2(r._objectSpread2({},t.headers),i),fetch(e,n).then(o).then(a)}},function(e,t,n){"use strict";t.styleInject=function(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===n&&r.firstChild?r.insertBefore(o,r.firstChild):r.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}},function(e,t,n){"use strict";n.r(t),n.d(t,"SoftwallNL",function(){return nn});var r=n(0),o=n.n(r),a=o.a.createContext({}),i=n(1),c=n.n(i);function l(e){return function(e){if(Array.isArray(e))return s(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return s(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return s(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:[]).some(function(e){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return z.has(e.substr(0,5))}(e)})}function D(){var e=document.cookie.match(/wp_geo=(.*?)(;|$)/),t=Array.isArray(e)?e[1]:"",n=t.split("|"),r={country_code:"",state:"",DMA:"",ZIP:""};return t&&(r.country_code=n[0]||"",r.state=n[1]||"",r.DMA=n[2]||"",r.ZIP=n[3]||""),r}function M(){var e,t=D(),n=(null==t?void 0:null===(e=t.ZIP)||void 0===e?void 0:e.split("-"))||[];return"US"===t.country_code?n.filter(function(e){return e}):[]}var B=["1","1|1","1|0"],U=function(){return N("wp_gdpr")},W=function(){return B.includes(U())&&"1"===N("wp_sub_gdpr")};var z=new Set(["20001","20002","20003","20004","20005","20006","20007","20008","20009","20010","20011","20012","20015","20016","20017","20018","20019","20020","20024","20032","20036","20037","20105","20106","20109","20110","20111","20112","20115","20117","20119","20120","20121","20124","20129","20132","20135","20136","20137","20141","20143","20144","20147","20148","20151","20152","20155","20158","20164","20165","20166","20169","20170","20171","20175","20176","20180","20181","20184","20186","20187","20190","20191","20194","20197","20198","20373","20601","20602","20603","20606","20607","20608","20609","20610","20611","20612","20613","20615","20616","20617","20618","20619","20620","20621","20622","20623","20624","20625","20626","20627","20628","20629","20630","20632","20634","20635","20636","20637","20639","20640","20643","20645","20646","20650","20653","20656","20657","20658","20659","20660","20661","20662","20664","20667","20670","20674","20675","20676","20677","20678","20680","20682","20684","20685","20686","20687","20688","20689","20690","20692","20693","20695","20701","20705","20706","20707","20708","20710","20711","20712","20714","20715","20716","20720","20721","20722","20723","20724","20732","20733","20735","20736","20737","20740","20742","20743","20744","20745","20746","20747","20748","20751","20754","20755","20758","20759","20762","20763","20764","20769","20770","20772","20774","20776","20777","20778","20779","20781","20782","20783","20784","20785","20794","20814","20815","20816","20817","20818","20832","20833","20837","20841","20842","20850","20851","20852","20853","20854","20855","20860","20861","20866","20868","20871","20872","20874","20876","20877","20878","20879","20882","20886","20895","20896","20901","20902","20903","20904","20905","20906","20910","20912","21012","21029","21032","21035","21036","21037","21042","21043","21044","21045","21046","21048","21054","21075","21076","21108","21113","21114","21140","21144","21146","21157","21158","21163","21401","21402","21403","21405","21601","21613","21619","21623","21629","21631","21632","21638","21643","21655","21658","21662","21663","21666","21671","21701","21702","21703","21704","21710","21713","21716","21717","21718","21719","21727","21737","21738","21740","21742","21743","21746","21754","21755","21757","21758","21762","21765","21767","21769","21770","21771","21773","21774","21777","21781","21783","21784","21787","21788","21793","21794","21795","21797","21798","21801","21802","21803","21804","21811","21842","21851","21853","21863","22003","22015","22021","22024","22026","22027","22030","22031","22032","22033","22039","22041","22042","22043","22044","22046","22060","22066","22079","22101","22102","22110","22111","22124","22134","22150","22151","22152","22153","22172","22180","22181","22182","22191","22192","22193","22201","22202","22203","22204","22205","22206","22207","22209","22211","22213","22301","22302","22303","22304","22305","22306","22307","22308","22309","22310","22311","22312","22314","22315","22405","22406","22407","22408","22432","22435","22441","22442","22443","22448","22469","22473","22480","22482","22485","22488","22507","22508","22511","22520","22524","22539","22542","22554","22556","22560","22572","22576","22578","22579","22601","22602","22603","22604","22611","22620","22624","22625","22626","22627","22630","22637","22641","22644","22645","22650","22654","22655","22656","22657","22660","22663","22664","22701","22712","22713","22716","22724","22727","22728","22734","22736","22740","22742","22747","22801","22802","22810","22812","22815","22821","22824","22827","22830","22831","22834","22835","22842","22844","22846","22849","22850","22851","22853","22901","22902","22903","22904","22911","22923","22932","22936","22937","22939","22940","22942","22946","22947","22949","22958","22959","22960","22963","22968","22973","22974","22980","22989","23093","23168","23185","23186","23188","23336","24073","24401","24402","24477","24482","24486","24590"]),V=function(){var e,t=(null===(e=window)||void 0===e?void 0:e.location.href)||"",n="prod";return/(sandbox\.|\.preview\.now\.washingtonpost\.com|local(host)?\.washingtonpost\.com)/.test(t)?n="sandbox":/dev|localhost/.test(t)&&(n="dev"),n};function F(){return{prod:"https://www.washingtonpost.com/subscribe",sandbox:"https://subs-stage.washingtonpost.com",dev:"https://subscribe.digitalink.com"}[V()]}var H=function(){var e=q(),t=document.createElement("a");return t.href=e,t.pathname||""};function q(){var e,t;return(null===(e=window)||void 0===e?void 0:null===(t=e.wpMetaData)||void 0===t?void 0:t.canonical_url)||"".concat(location.protocol,"//").concat(location.host).concat(location.pathname)}function G(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Y(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:[];return e.includes("100")||e.includes("110")||e.includes("120")?"wall_retargeting":"wall_standard"}function $(){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 K(e,t){var n,r,o,a,i;return{label:"o1",browserUserAgentHit:navigator.userAgent,promoCode:"o1",acqEntranceType:J(null==e?void 0:null===(n=e.data)||void 0===n?void 0:n.actionCodes),geoMarket:(a=k(M()),i=D().country_code,a&&"US"===i?"L":i&&"US"!==i&&"CA"!==i&&!W()?"I":W()?"E":"CA"===i?"C":"N"),acqTemplate:"",acqEntrancePage:H(),arcId:t||"",contentTags:$(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 Z=function(e,t){var n=e.pwapiResponse,r=e.arcId,o=function(e){window.dataLayer=window.dataLayer||[],window.dataLayer.push(e)};return{GAData:Y(Y({},K(n,r)),t),addEvent:o,addEventWithArticleData:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};o(Y(Y(Y({userAgentHit:window.navigator.userAgent,userAgentSession:window.navigator.userAgent},K(n,r)),t),e))},addMarketingEvent:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"paywall";o({event:"acq_marketing_".concat(e),category:"acquisition",action:"acq_marketing"})},addGAParamsToURL:function(e,o){var a=Y(Y(Y({},K(n,r)),t),o),i=encodeURIComponent(q()),c={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},l=new URL(e);return Object.keys(c).forEach(function(e){c[e]&&l.searchParams.append(e,c[e])}),l.toString()}}},Q="wp_nl",ee="sw";function te(){return"undefined"!=typeof window?JSON.parse(localStorage.getItem(Q)||"{}"):{}}function ne(e){localStorage.setItem(Q,JSON.stringify(e))}function re(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,o=te();if(t){var a=Date.now()+60*n*60*1e3;o[ee]=a,ne(o)}else if(e){var i=Date.now()+60*r*60*1e3;o[e]=i,ne(o)}}var oe=function(){var e=arguments.length>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},ae=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:navigator.userAgent;return/Tablet|iPad/i.test(e)};function ie(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:navigator.userAgent;return ae(e)?"tablet":oe(e)?"mobile":"desktop"}var ce=function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").split(",").map(function(e){return e.trim()}).includes(ie())};function le(e){var t=ce(e.EXCLUDING_PLATFORMS),n=!function(e){var t=te();if(!t[ee]&&!t[e])return!0;var n=Date.now(),r=!t[ee]||t[ee]0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=te()[e]||0;return n>=t&&0!==n||-1===n}(e.PAYWALL_TEMPLATE_ID,e.MAX_SNOOZE);return{isExcluded:t,shouldCloseSoftwall:t||!(null!=e&&e.SHOW_ALWAYS)&&n}}var se=function(){var e=Object(r.useContext)(a).setSizes,t=function(){requestAnimationFrame(function(){e&&e({isSmall:g(),isMedium:v(),isLarge:O(),isExtraLarge:w()})})};return Object(r.useEffect)(function(){return"undefined"!=typeof window&&(e&&e({isExtraLarge:w()}),window.addEventListener("resize",t,!1)),function(){"undefined"!=typeof window&&window.removeEventListener("resize",t,!1)}},[]),null},ue={NODE_ENV:"production",SERVICE_URL:"https://subscribe.washingtonpost.com",WALL_CONFIG:{TEMPLATE_ID:"softwall-nl",HAS_PROMO_LABEL:"both",PROMO_LABEL_PRIMARY:"NEWSLETTER",PROMO_LABEL_SECONDARY:"WEEKDAYS",PROMO_LABEL_PRIMARY_COLOR:"Offblack",PROMO_LABEL_SECONDARY_COLOR:"Offblack",PROMO_LABEL_HAS_LOGO:!0,SOFTWALL_V2_CTA_BUTTON_TEXT:"Sign Up",SOFTWALL_V2_CTA_BUTTON_COLOR:"Blue",SOFTWALL_V2_CTA_BUTTON_HEX_COLOR_OVERRIDE:"",SOFTWALL_V2_CTA_BUTTON_STYLE:"Arrow",SOFTWALL_V2_EXPANDED_HEADER:"The 7: Catch up with the news in minutes",SOFTWALL_V2_COLLAPSED_HEADER:"Start your day with The 7",SOFTWALL_V2_SUPPORTING_TEXT:"Get a daily rundown of the seven most important stories of the day, delivered to your inbox.",SOFTWALL_V2_REGISTRATION_SUCCESS_HEADER:"You're all set!",SOFTWALL_V2_IMAGE_URL:"https://wp-stat.s3.amazonaws.com/Softwall/the7-circle2.png?AWSAccessKeyId=AKIA3E56CXBFLFBMKMQK&Expires=1630521818&Signature=24T8XpaRwJajVn3Wqy3xRLE%2Flwc%3D",SOFTWALL_V2_MOBILE_IMAGE_URL:"",SOFTWALL_V2_BACKGROUND_COLOR:"White",NEWSLETTER_ID:"7665092F6F3C2544E0530100007F7480",REGION:"Select One",NOTE:"",GTM_LOADER:"gtm",INCLUDE_LOGGING:!0,EXCLUDING_PLATFORMS:"mobile",CLOSE_BUTTON_EXPIRATION_HOUR:48,SUBMIT_EXPIRATION_HOUR:720,PAGE_RELOAD_AFTER_SIGN_UP:!1,SHOW_CLOSE_ON_MIN:!0,MIN_ON_LOAD:!1,EXPAND_ON_SCROLL:!1,nl_start_location:"URL",nl_start_method:"REGWALL_SOFT",DEPLOYMENT_TOKEN:1631722476688,ASSET_BASE_URL:"https://www.washingtonpost.com/subscribe",ACQ_BASE_URL:"https://subscribe.washingtonpost.com",NEWSLETTER_NAME:"The 7",PAYWALL_TEMPLATE_ID:"softwall-nl-6273f5189e2"},VERSION:"2.12.7"};function de(e){var t=e.wallState,n=e.children;return Object(r.useEffect)(function(){try{if("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"),performance.measure("renderCompleted",void 0,"SUBS - wall ready"),performance.measure("procStarted",void 0,"SUBS - wall invoked"),window.BOOMR&&"function"==typeof window.BOOMR.sendTimer)){var e={};e.compCompleted=performance.getEntriesByName("SUBS - wall time to display")[0].duration,e.renderCompleted=performance.getEntriesByName("renderCompleted")[0].duration,e.procStarted=performance.getEntriesByName("procStarted")[0].duration,window.BOOMR.sendTimers(e)}}catch(e){}},[]),o.a.createElement(a.Provider,{value:t},n,o.a.createElement(se,null),o.a.createElement("span",{id:"wall-templates-version",style:{display:"none"}},ue.VERSION))}function fe(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$/,"").trim())))}}},Pe=["children","color","href","className","style","onClick","rounded","contentId","buttonStyle","innerHTML","isLoading"];function Le(){return(Le=Object.assign||function(e){for(var t=1;t=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 Re=function(e){var t=e.children,n=e.color,r=void 0===n?"WaPo blue":n,a=e.href,i=e.className,l=e.style,s=e.onClick,u=e.rounded,d=e.contentId,f=void 0===d?"":d,p=e.buttonStyle,m=void 0===p?"Button":p,b=e.innerHTML,y=void 0===b?"Subscribe":b,h=e.isLoading,g=void 0!==h&&h,v=Ie(e,Pe),O=Ce(f),w=O.onChange,E=O.isContentEditable,_="",S="Link"===m||"Arrow"===m;_=S||"White"!==r&&"Black"!==r&&"WaPo blue"!==r?S?c()({"subs-theme":"White"!==r&&"WaPo blue"!==r&&"Black"!==r},"".concat([C[r]]," bold")):"btn subs-theme bg-".concat(C[r]):"btn btn-".concat(C[r]),y=g?" ".concat(y):y;var j=t||o.a.createElement("span",{dangerouslySetInnerHTML:{__html:y},id:f,contentEditable:!!f&&E}),P=Ae({role:"button",href:a,style:Ae(Ae({whiteSpace:S?"normal":"nowrap",boxSizing:"border-box",borderRadius:u?"31px":0},l),{},{borderColor:"White"!==r?"unset":void 0,padding:S?"":null==l?void 0:l.padding}),onBlur:w,onClick:function(e){f&&!E||!f?s&&s(e):E&&e.preventDefault()},className:c()(i,"ma-0 pointer",{dib:!S},_),children:o.a.createElement(o.a.Fragment,null,j,"Arrow"===m?o.a.createElement(Ee,{angle:0,size:16,color:(null==l?void 0:l.color)||r,style:{marginLeft:"5px",verticalAlign:"middle"}}):null)},v),L="".concat(f,"_CTA_WRAPPER");return a||E&&f||S?o.a.createElement("a",Le({id:L},P)):o.a.createElement("button",Le({id:L},P))};function Ne(){return(Ne=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:"",t=te(),n=(t[e]||0)+1;t[e]=n,ne(t)}(x||""),f&&f(!1)}:function(){return n()}}),!i&&t&&C?o.a.createElement(ke,{size:16,color:"#aaa"}):o.a.createElement(Ve,{angle:-90,size:16,color:"#aaa",title:"expand"})),o.a.createElement("div",Je({onClick:function(){return!m&&n()}},E(d,{defaultClass:"grid h-100 absolute w-100 border-box overflow-hidden",smallClass:"left pl-xs "+(t?"pr-xl justify-between":"pr-xs"),defaultStyle:{height:"auto",transition:"opacity 50ms linear 150ms",paddingLeft:"5vw",paddingRight:"5vw",opacity:i||u?0:1,zIndex:i||u?0:1},largeStyle:{paddingLeft:"8vw",paddingRight:"8vw"}})),o.a.createElement("div",{className:"grid-item col-span-12-sm grid-item--cols-sm-12 pb-sm pt-sm"},I&&o.a.createElement("div",{className:"mb-xxs"},o.a.createElement(Xe,{primaryContentId:"PROMO_LABEL_PRIMARY",secondaryContentId:"PROMO_LABEL_SECONDARY",hasLogo:h,wallConfig:s,primaryColor:g,secondaryColor:v})),o.a.createElement("div",{className:"flex mt-xxs pr-sm"},o.a.createElement("div",null,o.a.createElement(Me,Je({contentId:"SOFTWALL_V2_COLLAPSED_HEADER"},E(d,{defaultClass:"self-center font--subhead",largeClass:"font-sm",mediumClass:"font-sm",smallClass:"font-xxs",smallStyle:{maxWidth:"85%"}}),{innerHTML:w})),o.a.createElement(Re,{contentId:"SOFTWALL_V2_CTA_BUTTON_TEXT",color:_,buttonStyle:R,rounded:!0,className:c()({"ml-sm":"Button"===R&&!p,"ml-xs":"Button"!==R||p},"self-center"),style:{padding:p||"Button"!==R?"":"7px 32px",backgroundColor:"Button"===R?S:void 0,color:"Button"!==R?S:void 0,borderColor:S},innerHTML:j}))))))};function Qe(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,a=[],i=!0,c=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);i=!0);}catch(e){c=!0,o=e}finally{try{i||null==n.return||n.return()}finally{if(c)throw o}}return a}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return et(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return et(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function et(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0)){tt.push(e);var t=document.createElement("script");t.src=e,t.async=!0;var n=function(){a({loaded:!0,error:!1})},r=function(){var n=tt.indexOf(e);n>=0&&tt.splice(n,1),t.remove(),a({loaded:!0,error:!0})};return t.addEventListener("load",n),t.addEventListener("error",r),document.body.appendChild(t),function(){t.removeEventListener("load",n),t.removeEventListener("error",r)}}a({loaded:!0,error:!1})},[e]),n.loaded,n.error),o.a.createElement("div",{id:"recaptcha_wall",className:"grecaptcha"})});function rt(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,a=[],i=!0,c=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);i=!0);}catch(e){c=!0,o=e}finally{try{i||null==n.return||n.return()}finally{if(c)throw o}}return a}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return ot(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ot(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ot(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n=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}function _t(e){var t=e.id,n=e.label,a=e.style,i=e.value,l=e.onChange,s=e.className,u=e.validators,d=e.inputStyle,f=e.fieldButton,p=e.errorMessage,m=Et(e,bt),b=Ot(Object(r.useState)(!1),2),y=b[0],h=b[1],g=Ot(Object(r.useState)([]),2),v=g[0],O=g[1],w=Object(r.useRef)(null),E=function(){return(!!v.length||p)&&o.a.createElement("span",{className:"red absolute",style:{top:"-20px"}},v[0]||p)||null};return o.a.createElement("div",{className:"relative flex",style:gt({},a)},o.a.createElement(E,null),o.a.createElement("input",yt({style:gt({transition:"padding 200ms linear 200ms",borderTopRightRadius:0,borderBottomRightRadius:0,border:p||null!=v&&v.length?"solid 1px #d8070e":""},d),className:c()(s,"pl-sm","pr-sm","font--subhead","font-xxs","h-md","light","brad-2","b","form-input-valid","bg-white","gray-darkest","flex-grow-1","ma-0","border-box",{"pt-sm":y||i}),value:i,onChange:function(e){var t;l&&l(e),null==w||null===(t=w.current)||void 0===t||t.setCustomValidity("")},onFocus:function(){return h(!0)},onBlur:function(){h(!1),Array.isArray(u)&&O(u.map(function(e){var t,n=e(i);return null==w||null===(t=w.current)||void 0===t||t.setCustomValidity(n||""),n}).filter(function(e){return e}))},id:t,ref:w},m)),o.a.createElement("label",{htmlFor:t,className:"absolute",style:{transition:"all 200ms ease-in-out 0s",transform:i||y?"scale(0.7) translate3D(25px, -130%, 0)":"translate3D(16px, -50%, 0)",transformOrigin:"top left",top:"50%",color:"#5a5a5a"}},n),f)}var St=function(e){if(!(null!=e&&e.trim()&&/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(e)||!e))return"Invalid email address"};function jt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Ct(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,o=Ht(Object(r.useState)(!1),2),a=o[0],i=o[1],c="procCompleted";var l=!1;function s(r,o){console.info("Opt - NAME/VALUE: ".concat(o,"/").concat(r," - ended? ").concat(l));var a=window.dataLayer&&window.dataLayer.filter(function(e){return e["optimize.".concat(t,".").concat(o,".").concat(r,".complete")]})[0]||!1;if(!l&&e.includes(o)&&(a||"timeout"===r)){if(n(window["".concat(o).concat(r,"_").concat(t,"Cfg")]||{}),i(!0),"timeout"!==r){var s={optExpActive:"".concat(t,"|").concat(o,".").concat(r)};window&&window.dataLayer&&window.dataLayer.push(s)}l=!0;try{performance.mark(c),performance.measure(c,void 0,c),window.BOOMR.sendTimer(c,performance.getEntriesByName(c)[0].duration)}catch(e){}console.info("Opt - NAME/VALUE: ".concat(o,"/").concat(r," complete"))}}var u=Object(r.useCallback)(function(){window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"optimize.wall"})},[t]);return Object(r.useEffect)(function(){if(e.length>0){!function(){window.dataLayer&&window.dataLayer.push(arguments)}("event","optimize.callback",{callback:s});var t=2e3;e.forEach(function(e){var n,r=void 0!==(null===(n=window.google_optimize)||void 0===n?void 0:n.get(e));t=r?t:0}),u(),setTimeout(function(){e.forEach(function(e){s("timeout",e)})},t)}else i(!0)},[e]),{isOptimize:e.length>0,isExperimentComplete:a}};function Yt(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,a=[],i=!0,c=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);i=!0);}catch(e){c=!0,o=e}finally{try{i||null==n.return||n.return()}finally{if(c)throw o}}return a}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Xt(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Xt(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Xt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n-1&&(i(!1),l())};return Object(r.useEffect)(function(){var e;return t&&c?(window.postMessage("CloseRegwall","*"),i(!1)):c&&!n&&(i(!0),window.addEventListener("message",s,!1),!(e=document.getElementById("slug_fixedBottom"))||e&&e.offsetHeight<=0?(i(!1),l()):e&&e.offsetHeight>0&&setTimeout(function(){e=document.getElementById("slug_fixedBottom");var t=window.googletag||{};Array.isArray(t.cmd)&&0===t.cmd.length&&(!e||e.childElementCount<=0)&&(i(!1),l())},2e3)),function(){l()}},[]),a};function $t(){return($t=Object.assign||function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n