(globalThis.webpackChunkverso=globalThis.webpackChunkverso||[]).push([[4734],{81066:(e,t,i)=>{const{showRecircMostPopular:a}=i(44249);e.exports={showRecircMostPopular:a}},44249:e=>{const t=(e=[])=>Array.isArray(e)&&e.reduce(((e,i,a)=>Array.isArray(i)&&i.length>1?e+t(i):"string"==typeof i&&0!==a?e+i.trim().replace(/\s+/gi," ").split(" ").length:e),0);e.exports={showRecircMostPopular:(e,i)=>t(e)>(i||200)}},59925:(e,t,i)=>{const a=i(45697),l=i(67294),r=i(94184),n=i(92170),{getVariationNames:o}=i(95545),s=i(48655),{PaymentGateway:d}=i(28576),c=i(4131),u=i(99520),h=i(6811),p=i(14756),{ArticlePageDisclaimer:g,ArticlePageChunksContent:m,ArticlePageChunks:C,ArticlePageDisclaimerGrid:k,PaywallInlineBarrierWithWrapperGrid:A}=i(8172),R=({body:e,hasProduct:t,linkList:i,isLinkStackEnabled:a,hasProductLisitingCarousel:n,isAffiliateLinksDisabled:o,hasTopSpacing:h,horizontalRuleStyle:R,interlude:b,multiChunkRailStrategy:y,shouldBlurText:S,shouldUsePersistentAd:E,singleChunkRailStrategy:f,variations:P,hideRecircMostPopular:w,dividerColor:B,shouldEnableArticleBackground:v,shouldEnableFullArticleInverted:F,pageBackgroundTheme:T,recircMostPopular:W,showFirstRailRecirc:L,hasAdditionalDropcapStyling:D,tagCloud:M,hideAutoDisclaimer:I,wordsToDisplay:G,hideAffiliateDisclaimer:N,hideProductDisclaimer:x,responsiveCartoonVariation:O,hasCartoonFullWidth:V,hasBaseAds:_,setCartoonLinkedGalleries:j,articleIssueDateComponent:U,showAffiliateBelowContent:q})=>{const z=P&&P.adRail,H=r("article__body",{"article__body--grid-margins":!z}),$=z?s.NarrowContentWithWideAdRail:c,J=z?s.NarrowContentWithWideAdRail:s.WithMargins;return l.createElement(m,{isNarrowContentWell:P.isNarrowContentWell,shouldBlurText:S,hasAdditionalDropcapStyling:D},(t||n)&&!o&&!I&&!N&&x&&!q&&l.createElement(k,{adRail:z,as:J},l.createElement(g,null)),l.createElement(C,{hasTopSpacing:h,horizontalRuleStyle:R,pageBackgroundTheme:T,"data-testid":"ArticlePageChunks",adRail:z},l.createElement(p,{tagCloud:M,jsonml:e,adRail:z,linkList:i,isLinkStackEnabled:a,multiChunkRailStrategy:y,interlude:b,FullBleedContentWrapper:$,GeneralContentWrapper:J,recircMostPopular:W,shouldUsePersistentAd:E,singleChunkRailStrategy:f,hideRecircMostPopular:w,pageBackgroundTheme:T,dividerColor:B,shouldEnableArticleBackground:v,shouldEnableFullArticleInverted:F,showFirstRailRecirc:L,wordsToDisplay:G,hideAffiliateDisclaimer:N,responsiveCartoonVariation:O,hasCartoonFullWidth:V,hasBaseAds:_,setCartoonLinkedGalleries:j,articleIssueDateComponent:U})),l.createElement(d,{group:"paywall"},l.createElement((e=>l.createElement(A,{adRail:z,as:J},l.createElement("div",{className:r("body","body__inline-barrier",H)},l.createElement("div",{className:"container container--body"},l.createElement("div",{className:"container--body-inner"},l.createElement(u,{...e})))))),null)))};R.propTypes={articleIssueDateComponent:a.node,body:a.array.isRequired,dividerColor:a.string,hasAdditionalDropcapStyling:a.bool,hasBaseAds:a.bool,hasCartoonFullWidth:a.bool,hasProduct:a.bool,hasProductLisitingCarousel:a.bool,hasTopSpacing:a.bool,hideAffiliateDisclaimer:a.bool,hideAutoDisclaimer:a.bool,hideProductDisclaimer:a.bool,hideRecircMostPopular:a.bool,horizontalRuleStyle:a.oneOf(["thin"]),interlude:a.shape({...h.propTypes,isRailEligible:a.boolean}),isAffiliateLinksDisabled:a.bool,isLinkStackEnabled:a.bool,linkList:a.object,multiChunkRailStrategy:a.oneOf(["alternate"]),pageBackgroundTheme:a.string,recircMostPopular:a.array,responsiveCartoonVariation:a.oneOf(o(n)),setCartoonLinkedGalleries:a.func,shouldBlurText:a.bool,shouldEnableArticleBackground:a.bool,shouldEnableFullArticleInverted:a.bool,shouldUsePersistentAd:a.bool,showAffiliateBelowContent:a.bool,showFirstRailRecirc:a.bool,singleChunkRailStrategy:a.oneOf(["split-in-three"]),tagCloud:a.shape({tags:a.arrayOf(a.shape({tag:a.string.isRequired,url:a.string}))}),variations:a.shape({adRail:a.bool,isNarrowContentWell:a.bool}),wordsToDisplay:a.number},R.defaultProps={hasAdditionalDropcapStyling:!1,hasBaseAds:!0,hasCartoonFullWidth:!1,hasTopSpacing:!0,hideAutoDisclaimer:!1,isAffiliateLinksDisabled:!1,shouldBlurText:!1,shouldEnableArticleBackground:!1,shouldEnableFullArticleInverted:!1,showAffiliateBelowContent:!1,variations:{}},R.displayName="ChunkedArticleContent",e.exports=R},64734:(e,t,i)=>{const{asConfiguredComponent:a}=i(36380),{asVariation:l}=i(95545),r=i(59925);r.WithAdRail=l(r,"WithAdRail",{adRail:!0}),r.OneColumn=l(r,"OneColumn",{adRail:!1}),r.OneColumnNarrow=l(r,"OneColumnNarrow",{adRail:!1,isNarrowContentWell:!0}),e.exports=a(r,"ChunkedArticleContent")},14756:(e,t,i)=>{const a=i(94184),l=i(67294),r=i(45697),n=i(18446),{default:o}=i(45698),{withRecircContextConsumer:s}=i(82313),d=i(92170),{getVariationNames:c}=i(95545),u=i(46647),h=i(56267),{PaymentGateway:p}=i(28576),g=i(4131),m=i(90204),{InContent:C}=i(58980),k=i(7046),A=i(86982),R=i(6811),b=s(i(93873)),y=i(25980),S=i(65552),E=i(91671),{showRecircMostPopular:f}=i(81066),P=i(85086),{processLinks:w,processCeros:B,processTiktok:v,processSidebarHeadings:F}=i(54436),{connectDomain:T}=i(92078),W=T("payment"),L=T("featureFlags"),{shouldRenderNothing:D}=i(28052),M=i(42813),{ArticlePageChunksGrid:I}=i(8172),{ArticlePageSplitAdRail:G,ArticlePageSplitAdRailContent:N,ArticlePageSplitAdRailTop:x,ArticlePageSplitAdRailMiddle:O,ArticlePageSplitAdRailBottom:V,ArticlePageBodyGridContainer:_,LinkStackArticlePage:j}=i(8172);function U(){return l.createElement("div",null,l.createElement(m,{position:"article-mid-content",secondPosition:"in-content"}),l.createElement(C,null))}const q=new o({a:w,blockquote:({props:e})=>({type:A,props:e}),ceros:B,h2:F,tiktok:v,"cm-unit":()=>({type:U}),"inline-embed":P,"inline-recirc":e=>l.createElement(b,{...e,className:"article-inline-recirc-wrapper"}),"native-ad":e=>l.createElement(p,{group:"ads"},l.createElement(u,{...e})),"inline-newsletter":e=>l.createElement(y,{...e,isArticlePage:!0})});function z(e,t){return`${e}-${t}`}class H{constructor({tagCloud:e,adRail:t,GeneralContentWrapper:i=(()=>null),FullBleedContentWrapper:a=(()=>null),interlude:r,multiChunkRailStrategy:n,recircMostPopular:o,shouldRenderMidContent:s,shouldShowMostPopular:d,shouldUsePersistentAd:c,singleChunkRailStrategy:u,hideRecircMostPopular:h,dividerColor:p,shouldEnableArticleBackground:g,shouldEnableFullArticleInverted:m,pageBackgroundTheme:C,showFirstRailRecirc:k,linkList:A,isLinkStackEnabled:b,responsiveCartoonVariation:y,hasCartoonFullWidth:S,hasBaseAds:f,setCartoonLinkedGalleries:P,articleIssueDateComponent:w}={}){this.tagCloud=e,this.isLinkStackEnabled=b,this.linkList=A,this.adRail=t,this.multiChunkRailStrategy=n,this.chunkCount=0,this.shouldRenderMidContent=s,this.shouldUsePersistentAd=c,this.shouldEnableArticleBackground=g,this.shouldEnableFullArticleInverted=m,this.GeneralContentWrapper=i,this.FullBleedContentWrapper=a,this.finalAdSet=!1,this.isSingleChunk=!1,this.singleChunkRailStrategy=u,this.pageBackgroundTheme=C,this.interlude=r?.strategy?.enabled&&r.isRailEligible?l.createElement(R,{...r,isRightRail:!0}):null,this.interludeSet=!1,this.mostPopular=d&&!h&&l.createElement(E,{className:"article-recirc-most-popular-wrapper",items:o,dividerColor:p,categoriesMap:e?.tags}),this.showFirstRailRecirc=k,this.responsiveCartoonVariation=y,this.hasCartoonFullWidth=S,this.setCartoonLinkedGalleries=P,this.articleIssueDateComponent=w,this.hasBaseAds=f}determineAd(){if(this.shouldUsePersistentAd)return this.interludeSet=!0,this.persistentAd();const e=this.stickyAd(this.showFirstRailRecirc);return this.interludeSet=!0,e}showAds(e){if(1===this.chunkCount)return this.determineAd();if(!this.finalAdSet){const t=this.stickyAd(e);return this.interludeSet=!0,t}return null}getAdSlot(e){return l.createElement(l.Fragment,null,l.createElement(p,{group:"ads"},e,l.createElement(u,{position:"rail"})),l.createElement(p,{group:"consumer-marketing"},l.createElement(m,{position:"display-rail"})))}withStickyBox(e,t={}){return e&&l.createElement(k,{...t},e)}renderSplitAdRail(){const e=this.withStickyBox(this.getAdSlot(null)),t=this.withStickyBox(this.mostPopular),i=this.withStickyBox(this.getAdSlot(null));return l.createElement(G,{anchorTop:{selector:"[data-testid='ContentHeaderLeadRailAnchor']"},anchorBottom:{selector:".content-bottom-anchor",edge:"bottom"}},l.createElement(N,{className:"split-ad-rail-content"},l.createElement(x,null,e),this.showFirstRailRecirc&&l.createElement(O,{className:"split-ad-rail-middle"},t),l.createElement(V,{className:"split-ad-rail-bottom"},i)))}renderAdRail(e){return this.isSingleChunk&&"split-in-three"===this.singleChunkRailStrategy?this.renderSplitAdRail():this.showAds(e)}closeSmallGroup(e,t,i,r){if(e.length>0){++this.chunkCount;const n=this.GeneralContentWrapper;return t.concat([l.createElement(I,{adRail:this.adRail,as:n,key:z("small-group",i),pageBackgroundTheme:this.pageBackgroundTheme},l.createElement(M,{className:a("body__container article__body",{"article-white-background":this.shouldEnableArticleBackground&&this.pageBackgroundTheme&&!this.shouldEnableFullArticleInverted}),shouldEnableFullArticleInverted:this.shouldEnableFullArticleInverted},r&&this.articleIssueDateComponent,q.convert(["div",{className:"body__inner-container"},...e]),"final"===i&&this.isLinkStackEnabled&&l.createElement(j,{...this.linkList})),this.adRail&&this.renderAdRail("final"!==i))])}return t}isMultiChunkRailStrategyAlternate(){return"alternate"===this.multiChunkRailStrategy}shouldRenderAd(){return!this.isMultiChunkRailStrategyAlternate()||this.chunkCount%2==1}shouldRenderMostPopular(e){return this.isMultiChunkRailStrategyAlternate()&&e?this.chunkCount%2==0:e}getChunkAdRailContent(e,t){return l.createElement(l.Fragment,null,(this.shouldRenderAd()||!t)&&this.getAdSlot(e),this.shouldRenderMostPopular(t)&&this.mostPopular)}injectInlineRecirc(e){let t=0,i=0;return e.reduce(((a,l,r)=>this.isParagraph(l)?(t++,this.isParagraph(e[r+1])&&this.shouldInsertRecirc(t,i)?(t=0,a.concat([l,["inline-recirc",{reelId:++i}]])):a.concat([l])):a.concat([l])),[])}isParagraph(e){return e&&"p"===e[0]}persistentAd(){return l.createElement(S,{anchorTop:{selector:"[data-testid='ContentHeaderLeadRailAnchor']"},anchorBottom:{edge:"bottom"}},this.getChunkAdRailContent(this.interlude,this.showFirstRailRecirc))}shouldInsertRecirc(e,t){return e>=(0===t?5:8)}stickyAd(e){const t=!this.interludeSet&&this.interlude,i=this.getChunkAdRailContent(t,e);return l.createElement(l.Fragment,null,this.withStickyBox(i,{isExpanded:!!t}))}wrapInFullSizeContainer(e,t,i){const a=this.FullBleedContentWrapper;return t.concat([l.createElement(a,{key:z("full",i)},l.createElement(_,{className:"body__grid-container",as:M,shouldDisableMaxWidth:!0,shouldEnableDataJourneyHook:!1,shouldEnableFullArticleInverted:this.shouldEnableFullArticleInverted},q.convert(e)))])}visit(e){let t=function(e){return function(e){return Array.isArray(e)&&"string"==typeof e[0]}(e)&&e[1]&&"object"==typeof e[1]&&!Array.isArray(e[1])?e.slice(2):e.slice(1)}(e),i=[],a=[];this.isSingleChunk=!t.some((e=>"ad"===e[0])),this.finalAdSet=!1,t.filter(this.isParagraph).length>10&&(t=this.injectInlineRecirc(t));let r=0;const n=t.reduce(((e,t=[])=>{const[i,a={},l=[]]=t,{props:{childTypes:r=[],image:{contentType:n=""}={}}={}}=a;return"inline-embed"!==i||!r.includes("cartoon")&&"cartoon"!==n||!t.length&&!l.length?e:e+1}),0);let o="";return t.forEach(((e,t)=>{const[s,d,c]=e;if("ad"===s)o=Boolean(""===o),this.shouldRenderMidContent&&(i=this.closeSmallGroup(a,i,t,o),a=[],this.hasBaseAds&&(i=i.concat([l.createElement(g,{className:"full-bleed-ad row-mid-content-ad",key:z("ad",t)},l.createElement(h,{shouldDisplayLabel:!0,shouldHoldSpace:!0}))])));else if(!this.adRail&&function(e){const t=e[0],i=e[1]||{},a="inline-embed"===t&&"callout:feature-large"===i.type,l="inline-embed"===t&&"callout:feature-medium"===i.type;return a||l||"ad"===t}(e))o=Boolean(""===o),i=this.closeSmallGroup(a,i,t,o),a=[],i=this.wrapInFullSizeContainer(e,i,t);else if("inline-embed"===s&&d?.props?.childTypes?.includes("cartoon")&&c?.length){const t=c[1];t.props.image.responsiveCartoonVariation=this.responsiveCartoonVariation,t.props.image.setCartoonLinkedGalleries=this.setCartoonLinkedGalleries,r+=1,t.props.image.analyticsData={totalNumberOfCartoons:n,cartoonPosition:r,cartoonPlacement:"inline"},a=this.hasCartoonFullWidth?a.concat([c]):a.concat([e])}else if("inline-embed"===s&&"cartoon"===d?.props?.image?.contentType&&e?.length){const t=e[1];t.props.image.responsiveCartoonVariation=this.responsiveCartoonVariation,t.props.image.setCartoonLinkedGalleries=this.setCartoonLinkedGalleries,r+=1,t.props.image.analyticsData={totalNumberOfCartoons:n,cartoonPosition:r,cartoonPlacement:"inline"},a=a.concat([e])}else a=a.concat([e])})),o=Boolean(""===o),i=this.closeSmallGroup(a,i,"final",o),this.finalAdSet=!0,i}}function $({tagCloud:e,adRail:t,FullBleedContentWrapper:i,featureFlags:a,GeneralContentWrapper:r,interlude:n,jsonml:o,multiChunkRailStrategy:s,payment:d,recircMostPopular:c,shouldUsePersistentAd:u,singleChunkRailStrategy:h,hideRecircMostPopular:p,dividerColor:g,shouldEnableArticleBackground:m,shouldEnableFullArticleInverted:C,pageBackgroundTheme:k,showFirstRailRecirc:A,wordsToDisplay:R,linkList:b,isLinkStackEnabled:y,responsiveCartoonVariation:S,hasCartoonFullWidth:E,hasBaseAds:P,setCartoonLinkedGalleries:w,articleIssueDateComponent:B}){l.useEffect((()=>{const e=document.querySelector(".split-ad-rail-content"),t=document.querySelector(".split-ad-rail-middle"),i=document.querySelector(".split-ad-rail-bottom");if(e&&t&&i){const a=new IntersectionObserver((e=>{const[t]=e;t.intersectionRatio<.95&&t.target.remove()}),{root:e,threshold:.95});return a.observe(t),a.observe(i),()=>{a.disconnect()}}return()=>{}}));const v=!D("ads",d,a),F=f(o,R);return new H({tagCloud:e,adRail:t,FullBleedContentWrapper:i,GeneralContentWrapper:r,interlude:n,multiChunkRailStrategy:s,recircMostPopular:c,shouldRenderMidContent:v,linkList:b,isLinkStackEnabled:y,shouldShowMostPopular:F,shouldUsePersistentAd:u,singleChunkRailStrategy:h,hideRecircMostPopular:p,pageBackgroundTheme:k,dividerColor:g,shouldEnableArticleBackground:m,shouldEnableFullArticleInverted:C,showFirstRailRecirc:A,responsiveCartoonVariation:S,hasCartoonFullWidth:E,hasBaseAds:P,setCartoonLinkedGalleries:w,articleIssueDateComponent:B}).visit(o)}$.defaultProps={hasBaseAds:!0,hasCartoonFullWidth:!1,multiChunkRailStrategy:"default",singleChunkRailStrategy:"default"},$.propTypes={adRail:r.bool,dividerColor:r.string,featureFlags:r.object,FullBleedContentWrapper:r.func,GeneralContentWrapper:r.func,hasBaseAds:r.bool,hasCartoonFullWidth:r.bool,hideRecircMostPopular:r.bool,interlude:r.shape({...R.propTypes,isRailEligible:r.boolean}),jsonml:r.array.isRequired,multiChunkRailStrategy:r.oneOf(["default","alternate"]),pageBackgroundTheme:r.string,payment:r.object,recircMostPopular:r.array,responsiveCartoonVariation:r.oneOf(c(d)),shouldUsePersistentAd:r.bool,showFirstRailRecirc:r.bool,singleChunkRailStrategy:r.oneOf(["default","split-in-three"]),tagCloud:r.shape({tags:r.arrayOf(r.shape({tag:r.string.isRequired,url:r.string}))}),wordsToDisplay:r.number},e.exports=l.memo(W(L($)),(function(e,t){return n(e,t)})),e.exports.Chunks=$}}]);