!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;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);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}var D=function(e){var t=e.id,n=e.children,i=e.backgroundColor,l=e.triggerResize,c=e.isModal,u=void 0!==c&&c,s=e.style,f=e.templateId,d=e.sendMessages,p=void 0!==d&&d,O=N(e,P),b=Object(r.useContext)(a),y=Object(r.useRef)(null),g=R(Object(r.useState)(0),2),v=g[0],m=g[1],h=!u&&f.includes("softwall")?"softwall-overlay":"",w=p&&parent&&!parent.location.href.includes("wall-builder");Object(r.useEffect)(function(){y.current.focus();var e=function(e){var t=document.querySelector("body").style,n=document.querySelector("html").style;e?(w||(n.height="100vh",n.overflow="hidden"),t.height="100%",t.width="100%",window.setTimeout(function(){w||(t.overflow="hidden"),t.position="relative"},1e3)):(n.height="",t.height="",n.overflow="visible",t.overflow="visible",t.position="")};return e(!!u),function(){var e=document.querySelector("body").style,t=document.querySelector("html").style;t.height="",e.height="",t.overflow="",e.overflow="",e.position=""}},[u]);var _=function(){var e,t;y.current&&Array.from(y.current.children).forEach(function(t){"0"!==t.style.opacity&&(e?e.offsetHeight0&&void 0!==arguments[0]?arguments[0]:[];return e.includes("100")||e.includes("110")||e.includes("120")?"wall_retargeting":"wall_standard"}function Y(){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 q(e,t){var n,r,o,a,i,l;return{label:"o1",browserUserAgentHit:navigator.userAgent,acqEntranceType:X(null==e?void 0:null===(n=e.data)||void 0===n?void 0:n.actionCodes),geoMarket:(a=B().DMA===U,i=B().country_code,l=k(),a&&"US"===i?"L":i&&"US"!==i&&"CA"!==i&&!l?"I":l?"E":"CA"===i?"C":"N"),acqTemplate:"",acqEntrancePage:W(),arcId:t||"",contentTags:Y(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 K=function(e,t){var n=e.pwapiResponse,r=e.arcId,o=function(){var e;return(null===(e=window.wpMetaData)||void 0===e?void 0:e.content_type)||""},a=function(e){window.dataLayer=window.dataLayer||[],window.dataLayer.push(e)};return{GAData:z(z({},q(n,r)),t),addEvent:a,addEventWithArticleData:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};a(z(z(z({userAgentHit:window.navigator.userAgent,userAgentSession:window.navigator.userAgent},q(n,r)),t),e))},addMarketingEvent:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"paywall";a({event:"acq_marketing_".concat(e),category:"acquisition",action:"acq_marketing"})},addGAParamsToURL:function(e,a){var i=z(z(z({},q(n,r)),t),a),l=encodeURIComponent(G()),c=o(),u={arcId:i.arcId,acqEntType:i.acqEntranceType,destination:l,next_url:l,p:i.subscription_pricing,s_l:i.subscription_location,e:i.subscription_experience,s_ct:c,itid:i.itid,ga_label:i.ga_label},s=new URL(e);return Object.keys(u).forEach(function(e){u[e]&&s.searchParams.append(e,u[e])}),s.toString()},getContentType:o}},Q="wp_nl";function $(e){return{softwall:"sw","softwall-nl":"sw","softwall-subscribe":"sw",regwall:"rw","paywall-purchase":"pw","paywall-default":"pw"}[e]}function J(){return"undefined"!=typeof window?JSON.parse(localStorage.getItem(Q)||"{}"):{}}function Z(e){localStorage.setItem(Q,JSON.stringify(e))}function ee(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=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"softwall",a=J(),i=$(o);if(t){var l=Date.now()+60*n*60*1e3;a[i]=l,Z(a)}else if(e){var c=Date.now()+60*r*60*1e3;a[e]=c,Z(a)}}function te(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=J(),n=(t[e]||0)+1;t[e]=n,Z(t)}var ne=function(){return"1"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"")},re=function(){return"2"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"")};function oe(){var e=M("wp_devicetype");return re(e)?"tablet":ne(e)?"mobile":"desktop"}var ae=function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").split(",").map(function(e){return e.trim()}).includes(oe())};function ie(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=ae(e.EXCLUDING_PLATFORMS),r=!function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"softwall",n=J(),r=$(t);if(!n[r]&&!n[e])return!0;var o=Date.now(),a=!n[r]||n[r]0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=J()[e]||0;return n>=t&&0!==n||-1===n}(e.PAYWALL_TEMPLATE_ID,e.MAX_SNOOZE);return{isExcluded:n,shouldCloseWall:!/\/wall-builder\//.test(location.href)&&(t||n||!(null!=e&&e.SHOW_ALWAYS)&&r)&&!window.pendingIframeResize}}var le=function(){var e=Object(r.useContext)(a).setSizes,t=function(){requestAnimationFrame(function(){e&&e({isSmall:v(),isMedium:m(),isLarge:h(),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},ce={NODE_ENV:"production",SERVICE_URL:"https://subscribe.washingtonpost.com",WALL_CONFIG:{SOFTWALL_V2_RIGHT_IMAGE_URL:"https://arc-anglerfish-washpost-prod-washpost.s3.amazonaws.com/public/PQBESXDB4FENRB4SO7L7VNSLQE.png",ACQ_BASE_URL:"https://subscribe.washingtonpost.com",HAS_PROMO_LABEL:"none",COLLAPSED_HEADER_DESKTOP:"Stay informed with your free trial to The Washington Post.",SUBSCRIPTION_LOCATION:"ONSITE_SOFTWALL_EXPANDED",SUPPORTING_TEXT:"24/7 coverage from 1000+ journalists. Subscriber-exclusive events. Unmatched political and international news.",PAYWALL_TEMPLATE_ID:"softwall-us-8493e57d12a",MIN_SUBSCRIPTION_LOCATION:"ONSITE_SOFTWALL_COLLAPSED",SOFTWALL_V2_EXPANDED_BODY_STYLE:"left",SOFTWALL_V2_CTA_BUTTON_HEX_COLOR_OVERRIDE:"",SOFTWALL_V2_COLLAPSED_HEADER_DESKTOP:"Stay informed with your free trial to The Washington Post.",MIN_ON_LOAD:!1,SOFTWALL_V2_MIN_CTA_PROMO_CODE:"o_wb",PRESET_LABEL:"Collapsible softwall",SOFTWALL_V2_CTA_LINK:"",PROMO_LABEL_HAS_LOGO:!1,SOFTWALL_V2_BACKGROUND_COLOR:"Pale blue",GTM_LOADER:"gtm",PROMO_LABEL_PRIMARY_COLOR:"Offblack",CTA_BUTTON_COLOR:"Blue",PROMO_LABEL_SECONDARY:"2 DAYS ONLY",PROMO_LABEL_SECONDARY_COLOR:"Offblack",EEA:{SUBSCRIPTION_EXPERIENCE:"FTP_EEA_0322",SUBSCRIPTION_PRICING:"EEA_0322"},CLOSE_BUTTON_EXPIRATION_HOUR:24,SOFTWALL_V2_EXPANDED_HEADER:"Stay informed with your free trial to The Washington Post.",DEPLOYMENT_TOKEN:1653678905105,CTA_PROMO_CODE:"o_wb",SOFTWALL_V2_CTA_BUTTON_TEXT:"Get 4 weeks free",CTA_LINK:"",DEFAULT_FONT_COLOR:"offblack",REGION:"US",WALL_CONFIG_ID:"3e57d12a-a33c-42dd-8d4e-e44a44427206",BACKGROUND_COLOR:"Pale blue",EXCLUDING_PLATFORMS:"mobile",AU:{SUBSCRIPTION_EXPERIENCE:"FTP_AU_0322",SUBSCRIPTION_PRICING:"AU_0322"},SHOW_ALWAYS:!1,SOFTWALL_V2_CLICK_TRIGGER:"You can cancel anytime",DEFAULT_LINK_COLOR:"gray-dark",COLLAPSED_HEADER_MOBILE:"Support journalism.",SOFTWALL_V2_CTA_PROMO_CODE:"o_wb",RIGHT_IMAGE_URL:"https://arc-anglerfish-washpost-prod-washpost.s3.amazonaws.com/public/PQBESXDB4FENRB4SO7L7VNSLQE.png",AUTO_COLLAPSED:!1,CTA_BUTTON_HEX_COLOR_OVERRIDE:"",AUTO_COLLAPSED_SECOND:5,LEFT_IMAGE_URL:"http://placehold.jp/400x400.png",REGION_LIST:["US","AU","CA","GB","EEA","INTL"],SCREEN_STATE:"Default",SOFTWALL_V2_CTA_BUTTON_COLOR:"Blue",SHOW_CLOSE_ON_EXPAND:!1,EXPANDED_HEADER:"Stay informed with your free trial to The Washington Post.",TEMPLATE_ID:"softwall-subscribe",SOFTWALL_V2_CTA_BUTTON_STYLE:"Button",SOFTWALL_V2_SUPPORTING_TEXT:"24/7 coverage from 1000+ journalists. Subscriber-exclusive events. Unmatched political and international news.",SOFTWALL_V2_MOBILE_IMAGE_URL:"https://arc-anglerfish-washpost-prod-washpost.s3.amazonaws.com/public/PQBESXDB4FENRB4SO7L7VNSLQE.png",PROMO_LABEL_PRIMARY:"LIMITED TIME OFFER",ASSET_BASE_URL:"https://www.washingtonpost.com/subscribe",NOTE:"",CTA_BUTTON_TEXT:"Get 4 weeks free",INCLUDE_LOGGING:!0,PRICING_STRATEGY:"Annual",GB:{SUBSCRIPTION_EXPERIENCE:"FTP_UK_0322",SUBSCRIPTION_PRICING:"UK_0322_2"},EXPAND_ON_SCROLL:!1,PRESET_ID:"collapsible-softwall",CA:{SUBSCRIPTION_EXPERIENCE:"FTP_CA_0322",SUBSCRIPTION_PRICING:"CA_0322"},SOFTWALL_V2_COLLAPSED_HEADER_MOBILE:"Support journalism.",SUBMIT_EXPIRATION_HOUR:720,SHOW_CLOSE_ON_MIN:!0,EXPANDED_BODY_STYLE:"left",SOFTWALL_TYPE:"Default",MIN_CTA_PROMO_CODE:"o_wb",CTA_BUTTON_STYLE:"Button",EXPANDABLE:!0,CLICK_TRIGGER:"You can cancel anytime",COLLAPSE_ON_SCROLL:!1,SOFTWALL_V2_LEFT_IMAGE_URL:"http://placehold.jp/400x400.png",MOBILE_IMAGE_URL:"https://arc-anglerfish-washpost-prod-washpost.s3.amazonaws.com/public/PQBESXDB4FENRB4SO7L7VNSLQE.png",SUBSCRIPTION_EXPERIENCE:"FTP-US-202201",SUBSCRIPTION_PRICING:"US_0122_FTP_2",INTL:{SUBSCRIPTION_EXPERIENCE:"FTP_INTL_0322",SUBSCRIPTION_PRICING:"INTL_0322"}},VERSION:"3.4.14"};function ue(e){var t=M("wp_geo").split("|");if(t.includes("DC")&&e.includes("US|DC"))return"US|DC";var n=t[0],r=t[t.length-1];return e.includes(n)||(n=r),n}function se(e){var t,n,r,i=e.wallState,l=e.children,c="default";!parent.location.href.includes("wall-builder")&&(null==i?void 0:null===(t=i.wallConfig)||void 0===t?void 0:null===(n=t.REGION_LIST)||void 0===n?void 0:n.length)>0&&(c=ue(null==i?void 0:null===(r=i.wallConfig)||void 0===r?void 0:r.REGION_LIST).toLowerCase());return o.a.createElement(a.Provider,{value:i},l,o.a.createElement(le,null),o.a.createElement("span",{id:"wall-templates-version","data-qa":"region-".concat(c),style:{display:"none"}},ce.VERSION))}function fe(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 de(e){for(var t=1;t$/,"").trim())))))}}};function we(){return(we=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 Qe=function(e){var t=e.children,n=e.color,i=void 0===n?"WaPo blue":n,c=e.href,u=e.className,s=e.style,f=e.onClick,d=e.rounded,p=e.sendMessages,O=void 0!==p&&p,b=e.contentId,y=void 0===b?"":b,g=e.buttonStyle,v=void 0===g?"Button":g,m=e.innerHTML,h=void 0===m?"Subscribe":m,w=e.isLoading,E=void 0!==w&&w,_=Ke(e,ze),L=he(y),S=L.onChange,P=L.isContentEditable,j=Object(r.useContext)(a).wallConfig,T=null==j?void 0:j.DEFAULT_FONT_COLOR,C="",I="Link"===v||"Arrow"===v||"Text"===v,R="Text"===v;C=I||"White"!==i&&"Black"!==i&&"WaPo blue"!==i?I?l()({"subs-theme":"White"!==i&&"WaPo blue"!==i&&"Black"!==i},"".concat([A[i]]," bold")):"btn subs-theme bg-".concat(A[i]):"btn btn-".concat(A[i]),h=E?" ".concat(h):h;var x=t||o.a.createElement("span",{dangerouslySetInnerHTML:{__html:h},id:y,contentEditable:!!y&&P}),N=Ye({role:"button",href:c,style:Ye(Ye({whiteSpace:I?"normal":"nowrap",boxSizing:"border-box",borderRadius:d?"31px":0},s),{},{borderColor:"White"!==i?"unset":void 0,padding:I?"":null==s?void 0:s.padding,border:"white"===T?"unset":"initial"}),onBlur:S,onClick:function(e){y&&!P||!y?f&&f(e):P&&e.preventDefault()},className:l()(u,"ma-0",{pointer:!R},{dib:!I},C),children:o.a.createElement(o.a.Fragment,null,x,"Arrow"===v?o.a.createElement(He,{angle:0,size:16,color:(null==s?void 0:s.color)||i,style:{marginLeft:"5px",verticalAlign:"middle"}}):null)},_),D="".concat(y,"_CTA_WRAPPER");if(c||P&&y||I&&!R){var M="_self";return c&&O&&!parent.location.href.includes("wall-builder")&&(M="_top"),o.a.createElement("a",Ve({id:D},N,{target:M}))}return R?o.a.createElement("div",Ve({id:D},N)):o.a.createElement("button",Ve({id:D},N))};var $e=function(e){var t=e.color,n=e.acquisitionURL,i=e.buttonStyle,l=e.hexOverride,c=e.buttonText,u=e.sendMessages,s=void 0!==u&&u,f=Object(r.useContext)(a),d=f.isSmall,p=f.wallConfig;return d&&"Button"===i&&(i="Link"),o.a.createElement(Qe,{contentId:"CTA_BUTTON_TEXT",color:t,buttonStyle:i,href:n,rounded:!0,sendMessages:s,className:"dib",style:{padding:d||"Button"!==i?"":"7px 32px",backgroundColor:"Button"===i?l:void 0,color:"Button"!==i?l:void 0,borderColor:l,marginLeft:d?"0px":void 0,marginRight:d?"16px":void 0},onClick:function(){ee("",!0,p.CLOSE_BUTTON_EXPIRATION_HOUR)},innerHTML:c})};function Je(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,l=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);i=!0);}catch(e){l=!0,o=e}finally{try{i||null==n.return||n.return()}finally{if(l)throw o}}return a}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Ze(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 Ze(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 Ze(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);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=arguments.length>3&&void 0!==arguments[3]&&arguments[3],a=mt(Object(r.useState)(!1),2),i=a[0],l=a[1];var c=!1;function u(r,o){console.info("Opt - NAME/VALUE: ".concat(o,"/").concat(r," - ended? ").concat(c));var a=window.dataLayer&&window.dataLayer.filter(function(e){return e["optimize.".concat(t,".").concat(o,".").concat(r,".complete")]})[0]||!1;if(!c&&e.includes(o)&&(a||"timeout"===r)){if(n(window["".concat(o).concat(r,"_").concat(t,"Cfg")]||{}),l(!0),"timeout"!==r){var i={optExpActive:"".concat(t,"|").concat(o,".").concat(r)};window&&window.dataLayer&&window.dataLayer.push(i)}c=!0,console.info("Opt - NAME/VALUE: ".concat(o,"/").concat(r," complete"))}}var s=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:u});var t=2e3,n=o&&parent&&!parent.location.href.includes("wall-builder");e.forEach(function(e){var r,o=void 0!==(null===(r=window.google_optimize)||void 0===r?void 0:r.get(e));t=o||n?t:0}),s(),setTimeout(function(){e.forEach(function(e){u("timeout",e)})},t)}else l(!0)},[e]),{isOptimize:e.length>0,isExperimentComplete:i}};function Et(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,l=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);i=!0);}catch(e){l=!0,o=e}finally{try{i||null==n.return||n.return()}finally{if(l)throw o}}return a}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return _t(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 _t(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 _t(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n-1&&(c(!1),s())};return Object(r.useEffect)(function(){var e;return t&&u?(a.postMessage("CloseRegwall","*"),c(!1)):u&&!n?(c(!0),window.addEventListener("message",f,!1),!(e=a.document.getElementById("slug_fixedBottom"))||e&&e.offsetHeight<=0?(c(!1),s()):e&&e.offsetHeight>0&&setTimeout(function(){e=a.document.getElementById("slug_fixedBottom");var t=a.googletag||{};Array.isArray(t.cmd)&&0===t.cmd.length&&(!e||e.childElementCount<=0)&&(c(!1),s())},2e3)):c(!1),function(){s()}},[t]),l};function St(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,l=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);i=!0);}catch(e){l=!0,o=e}finally{try{i||null==n.return||n.return()}finally{if(l)throw o}}return a}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return At(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 At(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 At(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n2&&void 0!==arguments[2]&&arguments[2],o=St(Object(r.useState)(!1),2),a=o[0],i=o[1],l=St(Object(r.useState)(!0),2),c=l[0],u=l[1],s=St(Object(r.useState)(!1),2),f=s[0],d=s[1],p=St(Object(r.useState)(!1),2),O=p[0],b=p[1],y=St(Object(r.useState)([]),2),g=y[0],v=y[1],m=St(Object(r.useState)(null),2),h=m[0],w=m[1],E=n&&parent&&!parent.location.href.includes("wall-builder"),_=E?parent:window,L=function e(t){var n;if(t.lineItemId)w(t.lineItemId),n=t.lineItemId;else{var r=t.slot;if(r&&r.getResponseInformation){var o=(r.getResponseInformation()||{}).sourceAgnosticLineItemId;w(o),n=o}}n&&(_.googletag.pubads().removeEventListener("slotRenderEnded",e),_.googletag.pubads().removeEventListener("impressionViewable",e))};Object(r.useEffect)(function(){var n=oe(),r=(t||"").indexOf(n)>-1;if(!/wall-builder/.test(_.location.href)&&r&&e&&"undefined"!=typeof window){var o=_.wpMetaData||{},a=_.googletag||{};if(Array.isArray(a.cmd)&&0===a.cmd.length)return d(!0),void b(!0);o.adTrackerId||(_.googletag=_.googletag||{cmd:[]},_.googletag.cmd.push(function(){_.googletag.pubads().addEventListener("slotRenderEnded",L)}),_.googletag.cmd.push(function(){_.googletag.pubads().addEventListener("impressionViewable",L)})),fetch("https://sponsorship-lines.zeustechnology.com/washingtonpost/washingtonpost/lineItems.json").then(function(e){return e.json()}).then(function(e){if(!e||!Array.isArray(e)||e&&0===e.length)d(!0);else if(_=E?parent:window,(o=_.wpMetaData||{}).adTrackerId||h){var t=o.adTrackerId||h,n=Pt.indexOf(t)<0&&e.indexOf(t)>-1;i(n),d(!0)}else v(e)}).catch(function(e){console.error(e,"Failed to retrieve ids from the sponsorship tracker."),d(!0)})}else d(!0)},[]);return Object(r.useEffect)(function(){!function(){window.dQ=window.dQ||{},window.dQ.participants=window.dQ.participants||[];var e=window.dQ.participants.find(function(e){return"leaderboard_ad"===e}),t=_.document.getElementById("leaderboard-wrapper"),n=!0;t&&(n=t.offsetHeight>0),n&&!O&&e&&window.registerDisplay?window.registerDisplay({participant:["leaderboard_ad"],callback:function(e){"final"===e.status&&u(!1)}}):u(!1)}()},[]),Object(r.useEffect)(function(){if(!f&&h&&g.length>0){var e=Pt.indexOf(h||0)<0&&g.indexOf(h)>-1;i(e),d(!0)}},[h,g,f]),{closeWallDueToAds:a,isAdChecked:f&&!c}};function Tt(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,l=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);i=!0);}catch(e){l=!0,o=e}finally{try{i||null==n.return||n.return()}finally{if(l)throw o}}return a}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Ct(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 Ct(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 Ct(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:"both",o=arguments.length>1&&void 0!==arguments[1]&&arguments[1],a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:70,i=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],l=arguments.length>4&&void 0!==arguments[4]&&arguments[4],c=Tt(Object(r.useState)({scrollUp:!1,scrollDown:!1}),2),u=c[0],s=c[1],f=l&&parent&&!parent.location.href.includes("wall-builder")?parent:window,d=function(){t&&f.cancelAnimationFrame(t),t=f.requestAnimationFrame(function(){var t=f.pageYOffset||f.document.documentElement.scrollTop,r=t>e+a;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n0){var o,a=ue(null===(o=e)||void 0===o?void 0:o.REGION_LIST);e=Mt(Mt({},e),e[a])}return e}(n,null==e?void 0:e.currentRegion),parent.location.href.includes("wall-builder")||(e.wallConfig=n),Object.keys(t).length&&(e.wallConfig=kt(kt({},n),t),n=e.wallConfig),n}function Gt(){return(Gt=Object.assign||function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n