(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,600753,e=>{"use strict";var t=e.i(843476),l=e.i(271645);let n=(0,l.createContext)({version:"v2"});e.s(["RankingVersionProvider",0,function({version:e,stripRankingsBranding:l,children:o}){return(0,t.jsx)(n.Provider,{value:{version:e,stripRankingsBranding:l},children:o})},"useRankingVersion",0,function(){return(0,l.useContext)(n).version},"useStripRankingsBranding",0,function(){return!!(0,l.useContext)(n).stripRankingsBranding}])},712047,e=>{e.v({container:"ArticleVideo-module-scss-module__f4_xDa__container"})},756853,e=>{"use strict";var t=e.i(843476),l=e.i(770703),n=e.i(712047);let o=(0,l.default)(()=>e.A(678591),{loadableGenerated:{modules:[684724]},ssr:!1}),a=({videoData:e,...l})=>{if(!e)return;if(!e.video||!e.video.muxPlaybackId&&!e.video.legacyVideoUrl)return null;let a=[{title:e.titleOverride??e.video.title??"",autoplay:e.autoplayOverride??!1,imageUrl:e.video.featuredImage?.node?.sourceUrl?`${e.video.featuredImage.node.sourceUrl}?width=320&height=180&quality=60`:"",playbackId:e.video.muxPlaybackId??"",adTagUrl:()=>Promise.resolve(""),videoSourceType:e.video.videoSourceType??"mux",legacyVideoUrl:e.video.legacyVideoUrl??"",enableCaptions:e.video.enableCaptions}];if("expired"!==l.verificationStatus)return(0,t.jsx)("div",{className:n.default.container,children:(0,t.jsx)(o,{videoList:a,stickOnScroll:!1})})};a.customParams=({block:e,data:t,attributesProps:l})=>{if(!t?.linkedVideos)return{videoData:{}};let n=l.videoId;return{videoData:t.linkedVideos?.nodes?.find(e=>e?.video?.databaseId===Number(n))}},e.s(["default",0,a])},328179,e=>{e.v({audioBlock:"Audio-module-scss-module__jt8tJG__audioBlock"})},20332,e=>{e.v({buttonsWrapper:"ButtonsBlock-module-scss-module__RIjgVG__buttonsWrapper"})},385616,e=>{e.v({embedContent:"Embed-module-scss-module__dcjAqG__embedContent",embedReddit:"Embed-module-scss-module__dcjAqG__embedReddit",embedWrapper:"Embed-module-scss-module__dcjAqG__embedWrapper"})},378865,e=>{e.v({block:"EmbedProviderFallback-module-scss-module__zgHZOG__block",content:"EmbedProviderFallback-module-scss-module__zgHZOG__content",link:"EmbedProviderFallback-module-scss-module__zgHZOG__link",overlay:"EmbedProviderFallback-module-scss-module__zgHZOG__overlay",text:"EmbedProviderFallback-module-scss-module__zgHZOG__text"})},31959,e=>{e.v({mount:"RedditEmbed-module-scss-module__c-CRhG__mount",redditEmbed:"RedditEmbed-module-scss-module__c-CRhG__redditEmbed",slot:"RedditEmbed-module-scss-module__c-CRhG__slot"})},133203,e=>{e.v({mount:"TikTokEmbed-module-scss-module__mpoGZa__mount",slot:"TikTokEmbed-module-scss-module__mpoGZa__slot",tiktokBlockquote:"TikTokEmbed-module-scss-module__mpoGZa__tiktokBlockquote",tiktokEmbed:"TikTokEmbed-module-scss-module__mpoGZa__tiktokEmbed"})},937924,e=>{e.v({embedContent:"TwitterEmbed-module-scss-module__R6Ucka__embedContent",slot:"TwitterEmbed-module-scss-module__R6Ucka__slot",twitterEmbed:"TwitterEmbed-module-scss-module__R6Ucka__twitterEmbed",widgetMount:"TwitterEmbed-module-scss-module__R6Ucka__widgetMount"})},324354,e=>{"use strict";var t=e.i(843476),l=e.i(271645),n=e.i(127784);let o={youtube:{pattern:/(youtube\.com|youtu\.be)/,getEmbedUrl:e=>{let t=function(e){for(let t of[/(?:youtube\.com\/watch\?v=|youtu\.be\/|youtube\.com\/embed\/)([^&\n?#]+)/,/youtube\.com\/watch\?.*v=([^&\n?#]+)/]){let l=e.match(t);if(l)return l[1]}return null}(e);return t?`https://www.youtube.com/embed/${t}`:null},aspectRatio:16/9,height:500},vimeo:{pattern:/vimeo\.com/,getEmbedUrl:e=>{let t,l=(t=e.match(/vimeo\.com\/(?:.*#|.*\/folders\/.*\/videos\/|.*\/videos\/)?(\d+)/))?t[1]:null;return l?`https://player.vimeo.com/video/${l}`:null},aspectRatio:16/9,height:400},spotify:{pattern:/spotify\.com/,getEmbedUrl:e=>{let t=function(e){for(let t of[/spotify\.com\/(track|album|playlist|artist|episode|show)\/([a-zA-Z0-9]+)/,/open\.spotify\.com\/(track|album|playlist|artist|episode|show)\/([a-zA-Z0-9]+)/]){let l=e.match(t);if(l)return`${l[1]}/${l[2]}`}return null}(e);return t?`https://open.spotify.com/embed/${t}`:null},aspectRatio:4,height:200},soundcloud:{pattern:/soundcloud\.com/,getEmbedUrl:e=>{let t=encodeURIComponent(e);return`https://w.soundcloud.com/player/?url=${t}&auto_play=false&hide_related=true&show_comments=false&show_user=true&show_reposts=false&show_teaser=false&visual=true`},aspectRatio:4/1.2,height:180},scribd:{pattern:/scribd\.com/,getEmbedUrl:e=>{let t=function(e){for(let t of[/scribd\.com\/document\/(\d+)/,/scribd\.com\/doc\/(\d+)/,/scribd\.com\/embeds\/(\d+)/]){let l=e.match(t);if(l)return l[1]}return null}(e);return t?`https://www.scribd.com/embeds/${t}/content?start_page=1&view_mode=scroll&access_key=key-scribd`:null},aspectRatio:.8,height:600}};function a(e){if(!/${e}`,"text/html").querySelector("[data-oembed-performance-wrap]");if(!t)return e;return t.querySelectorAll("iframe").forEach(e=>{e.getAttribute("loading")||e.setAttribute("loading","lazy"),e.getAttribute("fetchpriority")||e.setAttribute("fetchpriority","low")}),t.innerHTML}catch{return e}}function i(e){return e.replace(/]*>[\s\S]*?<\/script>/gi,"").replace(/]*\/>/gi,"")}var s=e.i(385616);function r({url:e,provider:l,className:n}){let a=o[l];if(!a)return null;let i=a.getEmbedUrl(e);return i?(0,t.jsx)("figure",{className:`${s.default.embedWrapper} ${n}`,style:{width:"100%",margin:"0 auto"},children:(0,t.jsx)("div",{style:{position:"relative",width:"100%",paddingBottom:`${100/a.aspectRatio}%`,height:0,overflow:"hidden"},children:(0,t.jsx)("iframe",{src:i,loading:"lazy",style:{position:"absolute",top:0,left:0,width:"100%",height:"100%",border:"none"},allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0,title:`${l} embed`})})}):null}function d(e,t){return new Promise((l,n)=>{if("u"l(),{once:!0}),void i.addEventListener("error",()=>n(Error(`Failed to load script: ${e}`)),{once:!0}));let s=document.createElement("script");s.src=e,s.async=!0,t?.id&&(s.id=t.id),t?.charset&&(s.charset=t.charset),s.onload=()=>l(),s.onerror=()=>n(Error(`Failed to load script: ${e}`)),document.body.appendChild(s)})}var u=e.i(378865);function c({url:e,label:l,layout:n,className:o=""}){return(0,t.jsx)("a",{href:e,target:"_blank",rel:"noopener noreferrer",className:`${u.default.link} ${"overlay"===n?u.default.overlay:u.default.block} ${o}`,children:(0,t.jsx)("div",{className:u.default.content,children:(0,t.jsx)("p",{className:u.default.text,children:l})})})}var m=e.i(31959);function g({url:e,className:o="",maxWidth:r,maxHeight:u,oembedData:f=null}){let p="string"==typeof f?.html?f.html:null,_=(0,l.useMemo)(()=>p?i(p):"",[p]),h=(0,l.useMemo)(()=>a(_),[_]),b=(0,l.useMemo)(()=>(function(e){try{let t=new URL(e),l=t.hostname.toLowerCase().replace(/^(www|np|old|new|m)\./,"");if("reddit.com"!==l)return null;let n=t.pathname.split("/").filter(Boolean);if(n.length<4||"r"!==n[0]||"comments"!==n[2])return null;let o=n[1],a=n[3];if(!/^[a-z0-9]+$/i.test(a))return null;let i=n[4]??"",s=n.length>=6?n[5]:null,r=["r",o,"comments",a];return i&&r.push(i),s&&r.push(s),{permalink:`https://www.reddit.com/${r.join("/")}/`,subreddit:o,postId:a,slug:i,commentId:s}}catch{return null}})(e),[e]),w=!_&&!!b,v=!_&&!b,[x,C]=(0,l.useState)(!1),k=(0,l.useRef)(null),{ref:y,shouldStart:S}=(0,n.useLazyEmbedStart)(),R=b?function(e){if(!e)return"View post on Reddit";try{return decodeURIComponent(e.replace(/\+/g," ")).replace(/[-_]+/g," ").trim()||"View post on Reddit"}catch{return"View post on Reddit"}}(b.slug):"",j=null!=r&&Number.isFinite(r)?{maxWidth:`${Math.min(Math.round(r),800)}px`,margin:"0 auto"}:{margin:"0 auto"};return((0,l.useLayoutEffect)(()=>{let e,t=k.current;if(!t)return;if(v){t.innerHTML="",C(!1);return}if(!S)return;_&&(t.innerHTML=h),C(!1);let l=!1;return d("https://embed.reddit.com/widgets.js",{charset:"UTF-8",ifExists:"resolve"}).then(()=>{if(l)return;window.redditAsyncEmbed?.process&&window.redditAsyncEmbed.process();let n=()=>{let e=t.querySelector("iframe");e&&(e.style.width="100%",e.style.display="block",e.style.border="none",e.style.minHeight="400px")};n();let o=e=>{if(e.origin.includes("reddit.com"))try{let l=e.data,n="string"==typeof l?JSON.parse(l):l;if(n&&"object"==typeof n&&"resize.embed"===n.type&&"number"==typeof n.data){let e=n.data,l=t.querySelector("iframe");l&&(l.style.height=`${e}px`,l.style.minHeight=`${e}px`)}}catch(e){console.warn("[EMBED] Reddit: error parsing message",e)}};window.addEventListener("message",o);let a=new MutationObserver(()=>{n()});a.observe(t,{childList:!0,subtree:!0}),e=()=>{a.disconnect(),window.removeEventListener("message",o)},C(!0)}),()=>{l=!0,e&&e()}},[h,_,b?.permalink,w,v,S]),v)?(0,t.jsx)("figure",{ref:y,className:`${s.default.embedWrapper} ${s.default.embedReddit} ${o}`,style:{width:"100%",margin:"0 auto"},children:(0,t.jsx)("div",{className:m.default.redditEmbed,children:(0,t.jsx)(c,{url:e,label:"View this post on Reddit",layout:"block"})})}):(0,t.jsx)("figure",{ref:y,className:`${s.default.embedWrapper} ${s.default.embedReddit} ${o}`,style:{width:"100%",margin:"0 auto"},children:(0,t.jsx)("div",{className:m.default.redditEmbed,"aria-label":"Reddit embed",children:(0,t.jsxs)("div",{className:m.default.slot,children:[(0,t.jsx)("div",{ref:k,className:`${m.default.mount} ${s.default.embedContent}`,children:w&&b&&(0,t.jsxs)("blockquote",{className:"reddit-embed-bq",cite:b.permalink,"data-embed-height":"500",style:{...j,minHeight:"400px"},children:[(0,t.jsx)("a",{href:b.permalink,target:"_blank",rel:"noopener noreferrer",children:R}),(0,t.jsx)("br",{}),(0,t.jsxs)("a",{href:`https://www.reddit.com/r/${b.subreddit}/`,target:"_blank",rel:"noopener noreferrer",children:["r/",b.subreddit]})]})}),!x&&(0,t.jsx)(c,{url:e,label:"View this post on Reddit",layout:"overlay"})]})})})}var f=e.i(133203);function p(e){let t=e.querySelector(".tiktok-embed"),l=e.querySelector("iframe");t&&(t.style.margin="0 auto",t.style.display="block"),l&&(l.style.width="auto",l.style.maxWidth="100%",l.style.margin="0 auto",l.style.display="block")}function _({url:e,className:o="",maxWidth:a}){let i=function(e){try{let t=new URL(e);if(!t.hostname.includes("tiktok.com"))return null;let l=t.pathname.match(/\/video\/(\d+)/);return l?l[1]:null}catch{return null}}(e),[r,u]=(0,l.useState)(!1),m=(0,l.useRef)(null),{ref:g,shouldStart:h}=(0,n.useLazyEmbedStart)(),b={maxWidth:null!=a&&Number.isFinite(a)?`${Math.min(Math.max(Math.round(a),325),605)}px`:"605px",minWidth:"325px"};return((0,l.useEffect)(()=>{if(!h||!i)return;let e=m.current;if(!e)return;let t=!1;u(!1);let l=()=>{!t&&e.querySelector("iframe")&&(p(e),u(!0))},n=new MutationObserver(()=>{p(e),l()});return n.observe(e,{childList:!0,subtree:!0}),(async()=>{try{if(await d("https://www.tiktok.com/embed.js",{ifExists:"resolve"}),t)return;p(e),l(),window.setTimeout(()=>{t||l()},500),window.setTimeout(()=>{t||l()},2e3)}catch{}})(),()=>{t=!0,n.disconnect()}},[h,i,e]),i)?(0,t.jsx)("figure",{ref:g,className:`${s.default.embedWrapper} ${o}`,style:{width:"100%",margin:"0 auto"},children:(0,t.jsx)("div",{className:f.default.tiktokEmbed,"aria-label":"TikTok video",children:(0,t.jsxs)("div",{className:f.default.slot,children:[(0,t.jsx)("div",{ref:m,className:`${f.default.mount} ${s.default.embedContent}`,children:(0,t.jsx)("blockquote",{className:`tiktok-embed ${f.default.tiktokBlockquote}`,cite:e,"data-video-id":i,"data-embed-from":"oembed",style:b,children:(0,t.jsx)("section",{children:(0,t.jsx)("a",{target:"_blank",rel:"noopener noreferrer",title:"TikTok",href:e,children:"View on TikTok"})})})}),!r&&(0,t.jsx)(c,{url:e,label:"View this video on TikTok",layout:"overlay"})]})})}):(0,t.jsx)("figure",{ref:g,className:`${s.default.embedWrapper} ${o}`,style:{width:"100%",margin:"0 auto"},children:(0,t.jsx)("div",{className:f.default.tiktokEmbed,children:(0,t.jsx)(c,{url:e,label:"View this video on TikTok",layout:"block"})})})}var h=e.i(937924);function b({url:e,className:o="",maxWidth:a,theme:i,lang:r}){let u=function(e){try{let t=new URL(e),l=t.hostname.replace(/^www\./,"");if(!l.endsWith("twitter.com")&&!l.endsWith("x.com"))return null;let n=t.pathname.match(/\/status\/(\d+)/);return n?n[1]:null}catch{return null}}(e),[m,g]=(0,l.useState)(!1),f=(0,l.useRef)(null),{ref:p,shouldStart:_}=(0,n.useLazyEmbedStart)();return((0,l.useEffect)(()=>{if(!_||!u)return;let e=f.current;if(!e)return;let t=!1;return g(!1),e.innerHTML="",(async()=>{try{if(await d("https://platform.twitter.com/widgets.js",{id:"twitter-wjs",reuseIf:()=>!!window.twttr?.widgets?.createTweet}),t||!f.current)return;let l=window.twttr?.widgets?.createTweet;if(!l)return;let n={dnt:!0};null!=a&&Number.isFinite(a)&&(n.width=Math.min(Math.max(Math.round(a),220),550)),("dark"===i||"light"===i)&&(n.theme=i),r&&r.length>0&&(n.lang=r);let o=await l(u,e,n);if(t)return;void 0!==o&&g(!0)}catch{}})(),()=>{t=!0}},[_,u,e,a,i,r]),u)?(0,t.jsx)("figure",{ref:p,className:`${s.default.embedWrapper} ${h.default.embedContent} ${o}`,style:{width:"100%",margin:"0 auto"},children:(0,t.jsx)("div",{className:h.default.twitterEmbed,"aria-label":"X post",children:(0,t.jsxs)("div",{className:h.default.slot,children:[(0,t.jsx)("div",{ref:f,className:`${h.default.widgetMount} ${h.default.embedContent}`}),!m&&(0,t.jsx)(c,{url:e,label:"View this post on X",layout:"overlay"})]})})}):(0,t.jsx)("figure",{ref:p,className:`${s.default.embedWrapper} ${h.default.embedContent} ${o}`,style:{width:"100%",margin:"0 auto"},children:(0,t.jsx)("div",{className:h.default.twitterEmbed,children:(0,t.jsx)(c,{url:e,label:"View this post on X",layout:"block"})})})}function w({url:e,className:l}){return(0,t.jsx)("div",{className:`${s.default.embedWrapper} ${l}`,children:(0,t.jsxs)("a",{href:e,target:"_blank",rel:"noopener noreferrer",children:[(0,t.jsx)("h4",{children:"View content"}),(0,t.jsx)("p",{children:e})]})})}function v({url:e,className:o,oembedData:r}){let d="string"==typeof r?.html?r.html:null,u=(0,l.useMemo)(()=>d?i(d):"",[d]),c=(0,l.useMemo)(()=>a(u),[u]),{ref:m,shouldStart:g}=(0,n.useLazyEmbedStart)(),f=(0,l.useRef)(null),[p,_]=(0,l.useState)(!1),h=(0,l.useMemo)(()=>{let e=r?.height;if("number"==typeof e&&Number.isFinite(e)&&!(e<=0))return Math.min(Math.round(e),900)},[r?.height]);return((0,l.useLayoutEffect)(()=>{let e=f.current;return g&&c.trim()?e?(e.innerHTML=c,_(!0),()=>{e&&(e.innerHTML=""),_(!1)}):void 0:void _(!1)},[e,c,g]),c.trim())?(0,t.jsx)("figure",{ref:m,className:`${s.default.embedWrapper} ${o}`,style:{width:"100%",margin:"0 auto"},children:(0,t.jsx)("div",{ref:f,className:s.default.embedContent,style:{visibility:p?"visible":"hidden",minHeight:h?`${h}px`:void 0}})}):(0,t.jsx)(w,{url:e,className:o})}e.s(["default",0,function({url:e,provider:l,className:n="",oembedData:a=null,maxWidth:i,maxHeight:d,theme:u,lang:c}){let m;try{m=new URL(e).toString()}catch{return(0,t.jsx)("div",{className:`${s.default.embedWrapper} ${n}`,children:(0,t.jsxs)("p",{children:["Invalid URL: ",e]})})}let{type:f,provider:p}=function(e){if(e.includes("twitter.com")||e.includes("x.com"))return{type:"oembed",provider:"twitter"};if(e.includes("reddit.com"))return{type:"oembed",provider:"reddit"};for(let[t,l]of Object.entries(o))if(l.pattern.test(e))return{type:"iframe",provider:t};return e.includes("tiktok.com")?{type:"oembed",provider:"tiktok"}:{type:"oembed",provider:"generic"}}(m),h=l||p;return"iframe"===f?(0,t.jsx)(r,{url:m,provider:h,className:n}):"twitter"===h?(0,t.jsx)(b,{url:m,className:n,maxWidth:i,theme:u,lang:c},m):"tiktok"===h?(0,t.jsx)(_,{url:m,className:n,maxWidth:i},m):"reddit"===h?(0,t.jsx)(g,{url:m,className:n,maxWidth:i,maxHeight:d,oembedData:a},m):(0,t.jsx)(v,{url:m,className:n,oembedData:a},m)}],324354)},783464,e=>{e.v({downloadButton:"File-module-scss-module__zKUNFq__downloadButton",downloadButtonWrapper:"File-module-scss-module__zKUNFq__downloadButtonWrapper",fileContainer:"File-module-scss-module__zKUNFq__fileContainer",fileContent:"File-module-scss-module__zKUNFq__fileContent",fileDetails:"File-module-scss-module__zKUNFq__fileDetails",fileExtension:"File-module-scss-module__zKUNFq__fileExtension",fileIcon:"File-module-scss-module__zKUNFq__fileIcon",fileInfo:"File-module-scss-module__zKUNFq__fileInfo",fileName:"File-module-scss-module__zKUNFq__fileName",fileNameWrapper:"File-module-scss-module__zKUNFq__fileNameWrapper",pdfFrame:"File-module-scss-module__zKUNFq__pdfFrame",pdfPreview:"File-module-scss-module__zKUNFq__pdfPreview"})},267590,e=>{e.v({blockHeading:"Heading-module-scss-module__qpyFFW__blockHeading"})},270747,e=>{e.v({htmlEmbed:"Html-module-scss-module__Us7qbW__htmlEmbed"})},139445,e=>{"use strict";var t=e.i(843476),l=e.i(271645),n=e.i(343794),o=e.i(270747);e.s(["default",0,e=>{let a=e.block.originalInnerHTML||e.block.outerHTML||"";return(0,l.useMemo)(()=>(0,t.jsx)("div",{className:(0,n.default)("html-embed",o.default.htmlEmbed),dangerouslySetInnerHTML:{__html:a},suppressHydrationWarning:!0}),[a])}])},400411,e=>{e.v({caption:"ImageBlock-module-scss-module__rUGLEG__caption",container:"ImageBlock-module-scss-module__rUGLEG__container",imageContainer:"ImageBlock-module-scss-module__rUGLEG__imageContainer"})},913958,e=>{"use strict";var t=e.i(843476),l=e.i(271645),n=e.i(551876),o=e.i(525803),a=e.i(979242),i=e.i(400411);let s=new Set(["sensitiveImage","_importedSensitiveData","isAdultContent","_importedAdultContentData","ranking","metadata","fromMLAdultContent","fromMLSensitiveImage"]);function r(e,t){if("auto"===e||null==e||""===e)return t;if("string"==typeof e){let l=e.match(/\d+/)?.[0];return l?parseInt(l,10):t}return Number.isFinite(e)?e:t}e.s(["default",0,function(e){let d=e.credit,u=e.sourceAlt||e.sources&&JSON.parse(e.sources||"[]")[0]||"",c=d&&u?`${d}/${u}`:d||u,m=e.captionOverride||e.caption,g=e.block?.innerHTML||"",f=(0,l.useMemo)(()=>(function(e){try{let t=e.match(/]*>/i);if(!t)return{};let l=t[0],n=e=>{let t=l.match(RegExp(`${e}\\s*=\\s*["']([^"']*)["']`,"i"));return t?.[1]?.trim()||void 0},o=n("width"),a=n("height"),i=o?parseInt(o,10):NaN,s=a?parseInt(a,10):NaN;return{src:n("src"),alt:n("alt"),...Number.isFinite(i)?{width:i}:{},...Number.isFinite(s)?{height:s}:{}}}catch(e){return console.error("ImageBlock: Error extracting img attrs from innerHTML:",e),{}}})(g),[g]),p=g?(e=>{try{let t=e.match(/]*>([\s\S]*?)<\/figcaption>/);if(t)return t[1].replace(/<(?!a\b|\/a>)[^>]*>/g,"").trim()}catch(e){console.error("ImageBlock: Error parsing innerHTML:",e)}return""})(g):"",_=g?(e=>{try{let t=e.replace(/]*>[\s\S]*?<\/figcaption>/g,"").match(/href="([^"]+)"/);return t?t[1]:""}catch(e){console.error("ImageBlock: Error extracting href:",e)}return""})(g):"",h=m||p||c||"",b=p||m||"",w=b?(0,a.default)(b).trim():"",v=e.alt||f.alt,x="string"==typeof v?v.trim():"",C=x.length>0?x:w,{block:k,parentStyles:y,aspectRatio:S="inherit",scale:R="cover",src:j,url:N,width:T,height:L,originalWidth:I,originalHeight:M,...V}=e,P=j||N||f.src||"",F=f.width,E=f.height,A=r(T??I??F,384),G=r(L??M??E,256),[H,D]=(0,l.useState)(!1),W=(0,l.useMemo)(()=>"true"===e.isAdultContent||"true"===e.sensitiveImage||"true"===e.fromMLAdultContent||"true"===e.fromMLSensitiveImage,[e.isAdultContent,e.sensitiveImage,e.fromMLAdultContent,e.fromMLSensitiveImage]),B=Object.fromEntries(Object.entries(V).filter(([e])=>!s.has(e))),z=Math.round(1e6*G/A)/1e4;return(0,t.jsxs)("div",{className:i.default.container,style:{height:H?"unset":void 0},children:[(0,t.jsx)("div",{className:i.default.imageContainer,style:{paddingBottom:`${z}%`},children:(0,t.jsx)(o.default,{className:y?.imageBlock,...B,width:A,height:G,src:P,link:_,sizes:"(min-width: 640px) 680px, 100vw",style:{aspectRatio:S,objectFit:R},alt:C,isAdultContent:W,sensitiveImage:W})}),h&&(0,t.jsx)(n.default,{caption:p||m,credit:c,clampLineMax:2,setIsCaptionExpanded:D,className:i.default.caption})]})}],913958)},514982,e=>{e.v({content:"Introduction-module-scss-module__ZQeLjG__content",fullContent:"Introduction-module-scss-module__ZQeLjG__fullContent",header:"Introduction-module-scss-module__ZQeLjG__header",introduction:"Introduction-module-scss-module__ZQeLjG__introduction",readMore:"Introduction-module-scss-module__ZQeLjG__readMore",truncatedContent:"Introduction-module-scss-module__ZQeLjG__truncatedContent"})},587574,e=>{e.v({content:"Licensing-module-scss-module__NPm6kG__content",licensing:"Licensing-module-scss-module__NPm6kG__licensing"})},410352,e=>{e.v({"wp-block-list":"List-module-scss-module__0ldMPG__wp-block-list"})},973977,e=>{e.v({"wp-block-list-item":"ListItem-module-scss-module__LHXi7q__wp-block-list-item"})},376990,e=>{e.v({content:"Methodology-module-scss-module__5V5bLW__content",fullContent:"Methodology-module-scss-module__5V5bLW__fullContent",header:"Methodology-module-scss-module__5V5bLW__header",methodology:"Methodology-module-scss-module__5V5bLW__methodology",readMore:"Methodology-module-scss-module__5V5bLW__readMore",truncatedContent:"Methodology-module-scss-module__5V5bLW__truncatedContent"})},46722,e=>{e.v({blockParagraph:"Paragraph-module-scss-module__0ovlkG__blockParagraph"})},68136,e=>{e.v({citation:"PullQuote-module-scss-module__TcmP4q__citation",content:"PullQuote-module-scss-module__TcmP4q__content"})},1753,e=>{e.v({blockQuote:"Quote-module-scss-module__B-n8CG__blockQuote",container:"Quote-module-scss-module__B-n8CG__container",large:"Quote-module-scss-module__B-n8CG__large",quoteGroup:"Quote-module-scss-module__B-n8CG__quoteGroup"})},649561,e=>{e.v({articleThumbnail:"RelatedContentBlock-module-scss-module__zZAmrW__articleThumbnail",container:"RelatedContentBlock-module-scss-module__zZAmrW__container",content:"RelatedContentBlock-module-scss-module__zZAmrW__content",label:"RelatedContentBlock-module-scss-module__zZAmrW__label",title:"RelatedContentBlock-module-scss-module__zZAmrW__title",videoOverlay:"RelatedContentBlock-module-scss-module__zZAmrW__videoOverlay",videoThumbnail:"RelatedContentBlock-module-scss-module__zZAmrW__videoThumbnail",wrapper:"RelatedContentBlock-module-scss-module__zZAmrW__wrapper"})},999487,e=>{"use strict";var t=e.i(843476),l=e.i(343794),n=e.i(525803),o=e.i(939761),a=e.i(39692),i=e.i(40140),s=e.i(6278),r=e.i(685373),d=e.i(142587),u=e.i(649561);let c={post:{label:"Related Story",Icon:e=>(0,t.jsx)("svg",{...e,xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",children:(0,t.jsx)("path",{d:"M10 1V3.875H12V11H0V1H10ZM1 10H11V4.875H10V9.25H9V2H1V10ZM7.625 7.5V8.5H2.375V7.5H7.625ZM7.75 3V6H2.25V3H7.75ZM3.25 5H6.75V4H3.25V5Z",fill:"#A6A08E"})})},video:{label:"Related Video",Icon:e=>(0,t.jsx)("svg",{...e,width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,t.jsx)("path",{d:"M11.5 0.5V11.5H0.5V0.5H11.5ZM1.5 10.5H10.5V4.25H1.5V10.5ZM8.47168 7.25L4.5 9.63281V4.86719L8.47168 7.25ZM5.5 7.86719L6.52832 7.25L5.5 6.63281V7.86719ZM7.83203 3.25H10.5V1.5H9.58203L7.83203 3.25ZM4.08203 3.25H6.41797L8.16797 1.5H5.83203L4.08203 3.25ZM1.5 3.25H2.66797L4.41797 1.5H1.5V3.25Z",fill:"#A6A08E"})})}},m=c.post;e.s(["default",0,function({selectedItems:e,blockIndex:g,articleTitle:f=""}){let{GTMEventTracker:p}=(0,i.useGTMEventTracker)(),_=(0,s.useIntersectionObserver)([{rootMargin:"0px",callback:()=>{p({event:"analyticsEvent",eventCategory:"Recirculation",eventAction:"Inline Related Content Block Impression",eventLabel:`${f} / ${window.location.href}`,block_position_index:void 0!==g?`Link_${g+1}`:void 0})},triggerOnce:!0}]),h=[];try{e&&(h=JSON.parse(e))}catch{return null}return h.length?(0,t.jsx)("div",{className:u.default.wrapper,ref:_,children:h.map(e=>{let{contentData:i,headlineOverride:s,thumbnailOverrideUrl:f,itemId:_}=e,h=(0,d.removeEscapeChars)(s||i.title),b=f||i.thumbnailUrl,w=i.canonicalUrl||"#",v=c[i.type]??m,x=v.label,{Icon:C}=v;return(0,t.jsxs)(o.NewsweekLink,{href:w,className:u.default.container,onClick:()=>{p({event:"analyticsEvent",eventCategory:"Recirculation",eventAction:"Inline Related Content Block Click",eventLabel:`${h} / ${w}`,linked_content_type:i.type,linked_content_id:String(i.id),block_position_index:void 0!==g?`Link_${g+1}`:void 0})},children:[(0,t.jsxs)("div",{className:u.default.label,children:[(0,t.jsx)(C,{}),(0,t.jsx)("span",{children:x})]}),(0,t.jsxs)("div",{className:u.default.content,children:[b&&(0,t.jsxs)("div",{className:(0,l.default)({[u.default.videoThumbnail]:"video"===i.type,[u.default.articleThumbnail]:"post"===i.type}),children:[(0,t.jsx)(n.default,{src:b,alt:h}),"video"===i.type&&(0,t.jsx)("div",{className:u.default.videoOverlay,children:(0,t.jsx)("span",{children:(0,r.formatVideoDurationFromSeconds)(i.duration||0)})})]}),(0,t.jsx)("span",{className:u.default.title,children:h}),(0,t.jsx)(a.default,{width:20,height:20,color:"var(--foreground-muted, #68645a)"})]})]},_)})}):null}],999487)},717971,e=>{e.v({content:"SectionBlock-module-scss-module__SiQq0q__content",defaultSection:"SectionBlock-module-scss-module__SiQq0q__defaultSection","section-introduction":"SectionBlock-module-scss-module__SiQq0q__section-introduction","section-methodology":"SectionBlock-module-scss-module__SiQq0q__section-methodology","section-qa":"SectionBlock-module-scss-module__SiQq0q__section-qa",separator:"SectionBlock-module-scss-module__SiQq0q__separator",title:"SectionBlock-module-scss-module__SiQq0q__title",wpBlock:"SectionBlock-module-scss-module__SiQq0q__wpBlock"})},963382,e=>{e.v({content:"Summary-module-scss-module__HK4JOa__content",fullContent:"Summary-module-scss-module__HK4JOa__fullContent",header:"Summary-module-scss-module__HK4JOa__header",readMore:"Summary-module-scss-module__HK4JOa__readMore",summary:"Summary-module-scss-module__HK4JOa__summary",truncatedContent:"Summary-module-scss-module__HK4JOa__truncatedContent"})},485227,e=>{e.v({container:"UnsupportedBlock-module__KSCrRa__container",title:"UnsupportedBlock-module__KSCrRa__title"})},955637,e=>{e.v({accolade:"CompanyListingProfile-module-scss-module__vnOefG__accolade",companyDetail:"CompanyListingProfile-module-scss-module__vnOefG__companyDetail",companyName:"CompanyListingProfile-module-scss-module__vnOefG__companyName",companyProfile:"CompanyListingProfile-module-scss-module__vnOefG__companyProfile",companySummary:"CompanyListingProfile-module-scss-module__vnOefG__companySummary",container:"CompanyListingProfile-module-scss-module__vnOefG__container",content:"CompanyListingProfile-module-scss-module__vnOefG__content",mobileContent:"CompanyListingProfile-module-scss-module__vnOefG__mobileContent"})},554242,e=>{e.v({address:"DoctorInfo-module-scss-module__oMsaGa__address",bullet_1:"DoctorInfo-module-scss-module__oMsaGa__bullet_1",defaultImg:"DoctorInfo-module-scss-module__oMsaGa__defaultImg",doctor:"DoctorInfo-module-scss-module__oMsaGa__doctor",drawer:"DoctorInfo-module-scss-module__oMsaGa__drawer",hospital:"DoctorInfo-module-scss-module__oMsaGa__hospital",info:"DoctorInfo-module-scss-module__oMsaGa__info",infoContainer:"DoctorInfo-module-scss-module__oMsaGa__infoContainer",location:"DoctorInfo-module-scss-module__oMsaGa__location",modal:"DoctorInfo-module-scss-module__oMsaGa__modal",name:"DoctorInfo-module-scss-module__oMsaGa__name",subHeader:"DoctorInfo-module-scss-module__oMsaGa__subHeader"})},944340,e=>{e.v({additionalDetails:"DoctorListingCard-module-scss-module__lwUV4G__additionalDetails",bottomActions:"DoctorListingCard-module-scss-module__lwUV4G__bottomActions",bottomAdditionalActions:"DoctorListingCard-module-scss-module__lwUV4G__bottomAdditionalActions",bottomSection:"DoctorListingCard-module-scss-module__lwUV4G__bottomSection",card:"DoctorListingCard-module-scss-module__lwUV4G__card",cardContent:"DoctorListingCard-module-scss-module__lwUV4G__cardContent",claimedProfile:"DoctorListingCard-module-scss-module__lwUV4G__claimedProfile",content:"DoctorListingCard-module-scss-module__lwUV4G__content",innerContent:"DoctorListingCard-module-scss-module__lwUV4G__innerContent",rank:"DoctorListingCard-module-scss-module__lwUV4G__rank",score:"DoctorListingCard-module-scss-module__lwUV4G__score"})},420762,e=>{e.v({bookAppointment:"DoctorListingCTA-module-scss-module__VMoE6W__bookAppointment",claimedProfile:"DoctorListingCTA-module-scss-module__VMoE6W__claimedProfile",cta:"DoctorListingCTA-module-scss-module__VMoE6W__cta",inModal:"DoctorListingCTA-module-scss-module__VMoE6W__inModal",viewProfile:"DoctorListingCTA-module-scss-module__VMoE6W__viewProfile"})},634961,e=>{e.v({additionalLocations:"DoctorSpecialities-module-scss-module__Uw151a__additionalLocations",awardColumn:"DoctorSpecialities-module-scss-module__Uw151a__awardColumn",awards:"DoctorSpecialities-module-scss-module__Uw151a__awards",boardCertifications:"DoctorSpecialities-module-scss-module__Uw151a__boardCertifications",doctorDetails:"DoctorSpecialities-module-scss-module__Uw151a__doctorDetails",highPerformanceTreatments:"DoctorSpecialities-module-scss-module__Uw151a__highPerformanceTreatments",inDrawer:"DoctorSpecialities-module-scss-module__Uw151a__inDrawer",item:"DoctorSpecialities-module-scss-module__Uw151a__item",list:"DoctorSpecialities-module-scss-module__Uw151a__list",specialAward:"DoctorSpecialities-module-scss-module__Uw151a__specialAward"})},845137,e=>{e.v({close:"DoctorsListing-module-scss-module__U_zzYq__close",container:"DoctorsListing-module-scss-module__U_zzYq__container",doctorDetailsModal:"DoctorsListing-module-scss-module__U_zzYq__doctorDetailsModal",drawer:"DoctorsListing-module-scss-module__U_zzYq__drawer",drawerCloseTop:"DoctorsListing-module-scss-module__U_zzYq__drawerCloseTop",drawerMiddle:"DoctorsListing-module-scss-module__U_zzYq__drawerMiddle",header:"DoctorsListing-module-scss-module__U_zzYq__header",info:"DoctorsListing-module-scss-module__U_zzYq__info",licensed:"DoctorsListing-module-scss-module__U_zzYq__licensed",list:"DoctorsListing-module-scss-module__U_zzYq__list",specialitiesContainer:"DoctorsListing-module-scss-module__U_zzYq__specialitiesContainer"})},231092,e=>{e.v({faqAnswer:"FAQ-module-scss-module__IklhGW__faqAnswer",faqBlock:"FAQ-module-scss-module__IklhGW__faqBlock",faqDivider:"FAQ-module-scss-module__IklhGW__faqDivider",faqItem:"FAQ-module-scss-module__IklhGW__faqItem",faqQuestion:"FAQ-module-scss-module__IklhGW__faqQuestion"})},410589,e=>{e.v({answerHint:"FairnessPoll-module-scss-module__e4sXTa__answerHint",answers:"FairnessPoll-module-scss-module__e4sXTa__answers",bottomSection:"FairnessPoll-module-scss-module__e4sXTa__bottomSection",changeVoteHint:"FairnessPoll-module-scss-module__e4sXTa__changeVoteHint",container:"FairnessPoll-module-scss-module__e4sXTa__container",description:"FairnessPoll-module-scss-module__e4sXTa__description",hasVoted:"FairnessPoll-module-scss-module__e4sXTa__hasVoted",isSelected:"FairnessPoll-module-scss-module__e4sXTa__isSelected",logo:"FairnessPoll-module-scss-module__e4sXTa__logo",optionButtonContainer:"FairnessPoll-module-scss-module__e4sXTa__optionButtonContainer",optionContainer:"FairnessPoll-module-scss-module__e4sXTa__optionContainer",optionSelected:"FairnessPoll-module-scss-module__e4sXTa__optionSelected",optionStackedContainer:"FairnessPoll-module-scss-module__e4sXTa__optionStackedContainer",optionText:"FairnessPoll-module-scss-module__e4sXTa__optionText",resultLabel:"FairnessPoll-module-scss-module__e4sXTa__resultLabel",shareModalContainer:"FairnessPoll-module-scss-module__e4sXTa__shareModalContainer",stacked:"FairnessPoll-module-scss-module__e4sXTa__stacked",submitError:"FairnessPoll-module-scss-module__e4sXTa__submitError",thankYouContainer:"FairnessPoll-module-scss-module__e4sXTa__thankYouContainer",tooltip:"FairnessPoll-module-scss-module__e4sXTa__tooltip",topSection:"FairnessPoll-module-scss-module__e4sXTa__topSection"})},889737,e=>{"use strict";var t=e.i(843476),l=e.i(271645),n=e.i(343794),o=e.i(31499),a=e.i(871587),i=e.i(40140),s=e.i(6278),r=e.i(276094),d=e.i(410589),u=e.i(384644),c=e.i(939761),m=e.i(242764),g=e.i(382759),f=e.i(556933);let p=({pollId:e,articleId:p,articleCategoryId:_,link:h="https://www.newsweek.com/fairness-meter",variant:b="default",articleTitle:w})=>{let[v,x]=(0,l.useState)(e),[C,k]=(0,l.useState)(null),[y,S]=(0,l.useState)(!0),[R,j]=(0,l.useState)(null),[N,T]=(0,l.useState)(()=>(0,r.getPollVoteOptionIds)(v,p)),[L,I]=(0,l.useState)(!1),[M,V]=(0,l.useState)(null),[P,F]=(0,l.useState)(()=>(0,r.hasPollVote)(v,p)),[E,A]=(0,l.useState)(!1),{isAuthenticated:G}=(0,o.useAuthContext)(),H=(0,a.useActiveTime)(),D=(0,l.useMemo)(()=>C?.is_active??!1,[C?.is_active]),{GTMEventTracker:W}=(0,i.useGTMEventTracker)(),B=async e=>{let t=new Set(N.has(e)?[...N].filter(t=>t!==e):[...C?.multi_select_allowed?N:new Set,e]);if(C&&0!==t.size)try{I(!0),V(null),(0,r.submitPollVote)({pollId:v,selectedOptionIds:Array.from(t),articleId:p,articleCategoryId:_??0,registered:G,timeBeforeVoting:H.current});let l=C.options.find(t=>t.id===e)?.text,n=N.size>0?C.options.find(e=>N.has(e.id))?.text:void 0;W({event:"analyticsEvent",eventCategory:"poll_engagement",eventAction:`${d.default.optionButtonContainer} / Clicked / ${l}`,eventLabel:`${w} / ${window.location.href}`,first_vote:0===N.size?"true":"false",previous_vote:n}),(0,r.markPollVote)(v,p,[...t]),T(t);let o=0===N.size?C.total_votes+t.size:C.total_votes,a=Math.max(1,o),i=C.options.map(e=>{let l=e.vote_count??0;N.has(e.id)?l-=1:t.has(e.id)&&(l+=1);let n=Math.max(0,l);return{...e,vote_count:n,percentage:a<=0?0:Math.max(0,n)/a*100}});k((0,r.normalizePoll)({...C,options:i,total_votes:a})),F(!0)}catch{V("Failed to submit your vote. Please try again.")}finally{I(!1)}},z=async()=>{try{S(!0),j(null);let e=await (0,r.getPollById)({pollId:v,articleId:p});if(!e)throw Error("No data returned");A(e.allow_vote_change),k(e)}catch{j("Failed to load poll. Please try again later.")}finally{S(!1)}},$=(0,s.useIntersectionObserver)([{rootMargin:"0px",callback:()=>{W({event:"analyticsEvent",eventCategory:"poll_engagement",eventAction:`${d.default.container} Impression`,eventLabel:`${w} / ${window.location.href}`})},triggerOnce:!0},{rootMargin:"500px",callback:()=>{z()},triggerOnce:!0}]),q=(0,l.useMemo)(()=>P&&!E||!D||L,[E,P,D,L]);return y&&!isNaN(v)?(0,t.jsx)("div",{className:d.default.container,ref:$}):R||!C||isNaN(v)?null:(0,t.jsxs)("div",{className:d.default.container,ref:$,children:[(0,t.jsxs)("div",{className:(0,n.default)(d.default.topSection,{[d.default.hasVoted]:P}),children:[(0,t.jsx)(m.default,{className:d.default.logo}),(0,t.jsx)("h2",{className:(0,n.default)("text-subheadline-semibold-md",d.default.title),children:C.title}),(0,t.jsx)(f.default,{openOnClick:!0,tooltipBackground:"dark",size:"small",classNames:d.default.tooltip,description:(0,t.jsxs)(c.NewsweekLink,{href:h,className:(0,n.default)("text-system-regular-sm",d.default.description),children:[C.description," →"]}),iconTrailing:g.default,position:"top"})]}),(0,t.jsxs)("div",{className:d.default.bottomSection,children:[(0,t.jsx)("div",{className:(0,n.default)(d.default.answers,{[d.default.stacked]:"stacked"===b}),children:C.options.map(e=>{let l=N.has(e.id);return(0,t.jsxs)("div",{className:(0,n.default)(d.default.optionContainer,{[d.default.optionStackedContainer]:"stacked"===b}),children:[(P||!D||C.show_results_before_vote)&&(0,t.jsxs)("div",{className:(0,n.default)("text-system-semibold-xs",d.default.resultLabel,{[d.default.isSelected]:l}),children:[e.normalized_percentage,"%"]}),(0,t.jsx)(u.default,{variant:l?"primary":"secondary",disabled:q,buttonContainerClass:(0,n.default)((P||!D)&&d.default.optionFrozen,l&&d.default.optionSelected,d.default.optionButtonContainer),fullWidth:!0,onClick:()=>B(e.id),attributes:{style:{backgroundColor:l?void 0:"var(--background-subtle, #F1EBD8)",whiteSpace:"normal",maxWidth:"300px",minHeight:"38px",height:"auto"},"aria-pressed":l},children:(0,t.jsx)("span",{className:(0,n.default)("text-system-semibold-xs",d.default.optionText),children:e.text})})]},e.id)})}),!P&&D&&(0,t.jsxs)("div",{className:(0,n.default)("text-system-regular-xs",d.default.answerHint),children:["Select an option to vote.",E?(0,t.jsxs)("span",{className:(0,n.default)("text-system-regular-xs",d.default.changeVoteHint),children:[" ","You can change it anytime."]}):!C.multi_select_allowed&&(0,t.jsxs)("span",{className:(0,n.default)("text-system-regular-xs",d.default.changeVoteHint),children:[" ","One Vote Per Reader."]})]})]}),M&&(0,t.jsx)("div",{className:(0,n.default)("text-system-regular-xs",d.default.submitError),children:M}),P&&(0,t.jsx)("div",{children:(0,t.jsxs)("div",{className:(0,n.default)(d.default.thankYouContainer,"text-system-semibold-xs"),children:[(0,t.jsx)("span",{className:"",children:"Thank you for voting! "}),E&&(0,t.jsx)("span",{className:(0,n.default)("text-system-regular-xs",d.default.changeVoteHint),children:"You can change it anytime."})]})})]})};p.customParams=({data:e})=>{let t=Number(e?.meter?.pollId),l=e?.databaseId;return{pollId:t,articleId:l,articleCategoryId:e?.primaryCategory?.databaseId,articleTitle:e?.title}},e.s(["default",0,p])},641031,e=>{e.v({imageContainer:"InlineWallComplement-module-scss-module__HHeiaW__imageContainer",imageDesktop:"InlineWallComplement-module-scss-module__HHeiaW__imageDesktop",imageMobile:"InlineWallComplement-module-scss-module__HHeiaW__imageMobile"})},755072,e=>{"use strict";var t=e.i(843476),l=e.i(770703),n=e.i(974504),o=e.i(641031),a=e.i(525803);let i=(0,l.default)(()=>e.A(571169),{loadableGenerated:{modules:[272258]}});e.s(["default",0,()=>{let{moduleShow:e}=(0,n.useArticleWallContext)();return(0,t.jsxs)("div",{children:[e===n.ModuleShow.IMAGE&&(0,t.jsxs)("div",{className:o.default.imageContainer,children:[(0,t.jsx)(a.default,{src:"https://assets.newsweek.com/wp-content/uploads/2026/07/Online-subs-ad-21-9-1.jpg",alt:"Newsweek Inline wall",width:680,height:360,className:o.default.imageDesktop}),(0,t.jsx)(a.default,{src:"https://assets.newsweek.com/wp-content/uploads/2026/07/Online-subs-ad-5-4.jpg",alt:"Newsweek Inline wall",width:680,height:360,className:o.default.imageMobile})]}),e===n.ModuleShow.COMMENT_WALL&&(0,t.jsx)(i,{})]})}])},920636,e=>{e.v({fallbackContent:"InstagramEmbed-module-scss-module__bIS0Gq__fallbackContent",fallbackInstagramLink:"InstagramEmbed-module-scss-module__bIS0Gq__fallbackInstagramLink",instagramEmbed:"InstagramEmbed-module-scss-module__bIS0Gq__instagramEmbed",instagramMedia:"InstagramEmbed-module-scss-module__bIS0Gq__instagramMedia"})},88226,e=>{"use strict";var t=e.i(843476),l=e.i(271645),n=e.i(343794),o=e.i(127784),a=e.i(920636);e.s(["default",0,({url:e})=>{let{ref:i,shouldStart:s}=(0,o.useLazyEmbedStart)();return((0,l.useEffect)(()=>{if(!s)return;let e="https://www.instagram.com/embed.js",t=()=>{window.instgrm?.Embeds&&window.instgrm.Embeds.process()},l=document.querySelector(`script[src="${e}"]`);if(l)return window.instgrm?.Embeds?void t():(l.addEventListener("load",t),()=>l.removeEventListener("load",t));let n=document.createElement("script");n.src=e,n.async=!0,n.defer=!0,n.onload=t,document.body.appendChild(n)},[s,e]),e)?(0,t.jsx)("div",{ref:i,className:a.default.instagramEmbed,"aria-label":"Instagram post",children:(0,t.jsx)("blockquote",{className:(0,n.default)(a.default.instagramMedia,"instagram-media"),"data-instgrm-permalink":e,"data-instgrm-version":"14",children:(0,t.jsx)("a",{className:a.default.fallbackInstagramLink,href:e,target:"_blank",rel:"noopener noreferrer",children:(0,t.jsx)("div",{className:a.default.fallbackContent,children:(0,t.jsx)("p",{className:a.default.fallbackText,children:"View this post on Instagram"})})})})}):null}])},284616,e=>{e.v({date:"LiveArticleEntry-module-scss-module__LqrKsW__date",entry:"LiveArticleEntry-module-scss-module__LqrKsW__entry",eyebrowContainer:"LiveArticleEntry-module-scss-module__LqrKsW__eyebrowContainer",separator:"LiveArticleEntry-module-scss-module__LqrKsW__separator",title:"LiveArticleEntry-module-scss-module__LqrKsW__title"})},78863,e=>{e.v({container:"PianoInlinePaywallBlock-module-scss-module___8Ab3q__container",overlay:"PianoInlinePaywallBlock-module-scss-module___8Ab3q__overlay",paywallElementsContainer:"PianoInlinePaywallBlock-module-scss-module___8Ab3q__paywallElementsContainer",wallComplementWrapper:"PianoInlinePaywallBlock-module-scss-module___8Ab3q__wallComplementWrapper"})},846995,e=>{"use strict";var t=e.i(843476),l=e.i(271645),n=e.i(78863),o=e.i(755072);e.s(["default",0,()=>((0,l.useEffect)(()=>{let e=document.getElementById("inline-paywall");!e||e.innerHTML.trim().length>0||"function"==typeof window.tp?.experience?.execute&&window.tp.experience.execute()},[]),(0,t.jsxs)("div",{className:n.default.container,children:[(0,t.jsx)("div",{className:n.default.overlay}),(0,t.jsx)("div",{id:"inline-paywall",className:n.default.paywallElementsContainer}),(0,t.jsx)(o.default,{})]}))])},897904,e=>{e.v({container:"PianoInlineRegwallBlock-module-scss-module__g8cdZW__container",overlay:"PianoInlineRegwallBlock-module-scss-module__g8cdZW__overlay",paywallElementsContainer:"PianoInlineRegwallBlock-module-scss-module__g8cdZW__paywallElementsContainer"})},598883,e=>{"use strict";e.i(247167);var t=e.i(843476),l=e.i(271645),n=e.i(897904),o=e.i(755072);e.s(["default",0,()=>((0,l.useEffect)(()=>{let e=document.createElement("script");e.src="https://www.google.com/recaptcha/api.js?render=6LdT4i8tAAAAAP_DGG79HqjyadPgic0wYpmLXks0",document.head.appendChild(e);let t=document.createElement("script");t.src="https://www.google.com/recaptcha/api.js",document.head.appendChild(t)},[]),(0,l.useEffect)(()=>{let e=document.getElementById("pn-inline-reg-wall");!e||e.innerHTML.trim().length>0||"function"==typeof window.tp?.experience?.execute&&window.tp.experience.execute()},[]),(0,t.jsxs)("div",{className:n.default.container,children:[(0,t.jsx)("div",{className:n.default.overlay}),(0,t.jsx)("div",{id:"pn-inline-reg-wall",className:n.default.paywallElementsContainer}),(0,t.jsx)(o.default,{})]}))])},923481,e=>{e.v({container:"PianoInlineUnit-module-scss-module__Gpq2SW__container","piano-inline-promo":"PianoInlineUnit-module-scss-module__Gpq2SW__piano-inline-promo",topGap:"PianoInlineUnit-module-scss-module__Gpq2SW__topGap"})},677297,e=>{"use strict";var t=e.i(843476),l=e.i(271645),n=e.i(343794),o=e.i(31499),a=e.i(923481);let i=({containerIdSelector:e="piano-membership",className:i="",style:s={}})=>{let r=(0,l.useRef)(null),[d,u]=(0,l.useState)(!1),[c,m]=(0,l.useState)(""),{setShouldReloadOnLogin:g}=(0,o.useAuthContext)(),f=t=>{t.data?.type==="pianoInlineContentElseCondition"&&(t.data?.containerSelector?.replace("#","").replace(".","")||"piano-membership")===e&&(u(!0),g(!1))};return((0,l.useEffect)(()=>(g(!0),()=>{g(!1)}),[]),(0,l.useEffect)(()=>{document.querySelector(`#${e}`)!==r.current&&u(!0);let t=r.current?.previousElementSibling;return t&&"ARTICLE"===t.tagName&&m(a.default.topGap),window.addEventListener("message",f),()=>{window.removeEventListener("message",f)}},[e]),d)?null:(0,t.jsx)("div",{className:(0,n.default)(a.default.container,c,i&&a.default[i]),style:s,id:e,ref:r})};i.customParams=({attributesProps:e})=>{let{containerIdSelector:t,className:l}=e;return{containerIdSelector:t,className:l}},e.s(["default",0,i])},82404,e=>{e.v({articleBody:"PostContent-module-scss-module__Oah6EG__articleBody"})},910345,78733,519942,641581,399949,879298,567706,360950,847658,577588,91688,993437,98612,532362,457765,e=>{"use strict";e.s(["default",()=>tT],910345),e.s(["default",()=>g],641581),e.s(["default",()=>W],399949),e.s(["default",()=>z],879298),e.s(["default",()=>U],567706),e.s(["default",()=>tb,"getTableBlockAttributes",()=>th],457765),e.s(["default",()=>to],993437);var t,l=e.i(843476),n=e.i(770703),o=e.i(271645),a=e.i(669472),i=e.i(883471);let s=new Map;function r(e,t){let l=(0,o.useRef)();(0,o.useEffect)(()=>{l.current=e},[e]),(0,o.useEffect)(()=>{if(null===t)return;let e=function(e){if(!s.has(e)){let t=new Set,l=null;l=setInterval(()=>{("u"{try{e()}catch(e){console.error("[SHARED INTERVAL] Error in callback:",e)}})},e),s.set(e,{intervalId:l,callbacks:t})}return s.get(e)}(t),n=()=>l.current?.();return e.callbacks.add(n),()=>{let l;e.callbacks.delete(n),(l=s.get(t))&&0===l.callbacks.size&&l.intervalId&&(clearInterval(l.intervalId),s.delete(t))}},[t])}function d(e){return!!e&&"object"==typeof e&&null!==e&&"contentBlocks"in e&&!!e.contentBlocks&&"object"==typeof e.contentBlocks&&null!==e.contentBlocks&&"blocks"in e.contentBlocks&&Array.isArray(e.contentBlocks.blocks)&&e.contentBlocks.blocks.length>0}function u({containerIdSelector:e,className:t,style:l}={containerIdSelector:"piano-inline-engagement",className:"piano-inline-promo",style:{}}){return{name:"newsweek/piano-inline-promo-block",attributes:[{name:"containerIdSelector",value:e},{name:"className",value:t},{name:"style",value:l}]}}e.s(["useSharedInterval",0,r],78733),e.s(["hasContentBlocks",0,d,"injectInlineInlinePromoIntoBlocks",0,(e,t)=>{let l=["two_column"],{total:n,insertAfterIndex:o}=e.reduce((e,t,l)=>("core/paragraph"===t.name&&(e.total++,8===e.total&&(e.insertAfterIndex=l+1)),e),{total:0,insertAfterIndex:0});if(t.layoutTemplate&&l.length&&!l.includes(t.layoutTemplate)||n<10)return e;let a=[...e];return a.splice(o,0,u()),a},"injectPianoInlineEOAUnitIntoBlocks",0,e=>[...e,u({containerIdSelector:"piano-EOA-unit",style:{minHeight:"302px"}})],"replaceLiveArticleEntryBlocks",0,function(e,t){return t?.length&&e?.length?e.map(e=>"newsweek/livearticle-entry-block"===e.name?{...e,attributes:[...e.attributes||[],{name:"liveArticleEntries",value:JSON.stringify(t)}]}:e):e}],519942);var c=e.i(685373),m=e.i(284616);let g=({entry:e,isActive:t})=>{let n=d(e)?e.contentBlocks.blocks??[]:[],a=(0,c.formatDateToEastern)(e.dateGmt),[s,u]=(0,o.useState)(null);return(0,o.useEffect)(()=>{e.dateGmt&&u((0,c.getTimeAgo)(e.dateGmt))},[e.dateGmt]),r(()=>{if(!e.dateGmt)return;let t=(0,c.getTimeAgo)(e.dateGmt);null!==t&&u(t)},e.dateGmt?6e4:null),(0,l.jsxs)("article",{className:m.default.entry,children:[a&&(0,l.jsxs)("div",{className:m.default.eyebrowContainer,children:[t&&s&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(i.default,{category:s,size:"large",variant:"important"}),(0,l.jsx)("div",{className:m.default.separator})]}),(0,l.jsx)("p",{className:m.default.date,children:a})]}),(0,l.jsx)("h2",{className:m.default.title,children:e.title}),n.length>0&&(0,l.jsx)("div",{className:m.default.content,children:(0,l.jsx)(tT,{blocks:n,data:e})})]})};var f=e.i(379281),p=e.i(756853),_=e.i(328179),h=e.i(20332),b=e.i(324354),w=e.i(384644);function v(e){return e.reduce((e,{name:t,value:l})=>t&&null!=l?Object.assign(e,{[t]:l}):e,{})}var x=e.i(783464),C=e.i(343794),k=e.i(267590),y=e.i(139445),S=e.i(913958),R=e.i(410352),j=e.i(142587);function N(e){let t=e?.innerHTML||"";return!t||e?.sanitized?t:(0,j.escapeHtml)(t)}var T=e.i(973977);function L({block:e}){let{innerBlocks:t}=e,n=t?.find(e=>"core/list"===e.name),o=n?.attributes?.find(e=>"ordered"===e.name)?.value==="true",a=n?.attributes?.find(e=>"reversed"===e.name)?.value==="true",i=n?.attributes?.find(e=>"start"===e.name)?.value;return(0,l.jsxs)("li",{className:T.default["wp-block-list-item"],children:[(0,l.jsx)("span",{dangerouslySetInnerHTML:{__html:N(e)}}),n&&(0,l.jsx)(I,{block:n,innerBlock:n,slideShowBlock:[],ordered:o,reversed:a,start:i?parseInt(i):void 0})]})}function I({block:{innerBlocks:e,attributes:t},ordered:n,reversed:o,start:a,fontSize:i,parentStyles:s}){let r=e?e.filter(e=>e?.name==="core/list-item"):[],d=t?.find(e=>e?.name==="fontSize")?.value,u=i||d,c=(0,C.default)(R.default["wp-block-list"],n&&s?.olBlcok,!n&&s?.ulBlock);return n?(0,l.jsx)("ol",{className:c,reversed:o,start:a,fontSize:u,children:r.map((e,t)=>(0,l.jsx)(L,{block:e,innerBlock:e},t))}):(0,l.jsx)("ul",{className:c,fontSize:u,children:r.map((e,t)=>(0,l.jsx)(L,{block:e,innerBlock:e},t))})}var M=e.i(46722),V=e.i(68136);let P=({block:{innerHTML:e}})=>{let t=function(e){let t=e.match(/()([\s\S]*)/);if(t){let e=t[1],l=t[2].trim();return l?`${e}${l}`:e}return e}(e);return(0,l.jsx)("div",{className:V.default.content,dangerouslySetInnerHTML:{__html:t}})};var F=e.i(1753),E=e.i(717971);function A({children:e}){return(0,l.jsx)(l.Fragment,{children:e})}var G=e.i(600753);let H=(e,t)=>{let l=e.replace(/<[^>]*>?/gm,"");if(l.length<=t)return e;let n=l.substring(0,t),o=n.lastIndexOf(" ");-1!==o&&(n=l.substring(0,o));let a=n.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return e.replace(RegExp(`(.*?)${a}.*`,"s"),"$1"+n+"...")};var D=e.i(514982);function W({block:e}){let t=(0,G.useRankingVersion)(),n=(0,G.useStripRankingsBranding)(),a=o.default.createRef(),i=(0,o.useMemo)(()=>{let t=t=>e.attributes?.find(e=>e?.name===t)?.value;return{characterLimitMobile:parseInt(t("characterLimit")||"550",10),className:t("className")||""}},[e.attributes]),[s,r]=(0,o.useState)(!1),[d,u]=(0,o.useState)(!1),[c,m]=(0,o.useState)([]),g=()=>{r(e=>!e),a.current&&s&&a.current.scrollIntoView({behavior:"smooth",block:"start"})};(0,o.useEffect)(()=>{u(window.innerWidth<768)},[]);let f=(0,o.useMemo)(()=>d?i.characterLimitMobile:1/0,[d,i.characterLimitMobile]);(0,o.useEffect)(()=>{if(e.innerBlocks){let t=0,l=[];for(let n=0;n]*>?/gm,"");if(!s&&t+i.length>f&&f!==1/0&&(a=H(a,f-t)),l.push({...o,innerHTML:a}),t+=i.length,!s&&t>f&&f!==1/0)break}m(l)}else m([])},[e.innerBlocks,s,f]);let p=(0,o.useMemo)(()=>e.innerBlocks?.reduce((e,t)=>e+(t.innerHTML?.replace(/<[^>]*>?/gm,"").length||0),0)||0,[e.innerBlocks]);return(0,l.jsxs)("div",{ref:a,className:(0,C.default)("section-introduction",D.default.introduction,i.className),children:["v2"===t&&!n&&(0,l.jsx)("h3",{className:D.default.header,children:"About the Ranking"}),(0,l.jsxs)("div",{className:D.default.content,children:[p>f&&f!==1/0&&(0,l.jsx)("div",{className:D.default.fullContent,style:{display:s?"block":"none"},children:(0,l.jsx)(tT,{blocks:e.innerBlocks||[]})}),(0,l.jsx)("div",{className:D.default.truncatedContent,style:{display:s?"none":"block"},children:(0,l.jsx)(tT,{blocks:c})})]}),p>f&&f!==1/0&&(0,l.jsx)("button",{"aria-expanded":s?"true":"false","aria-label":s?"Show less content":"Show more content",className:(0,C.default)(D.default.readMore,"text-system-semibold-lg"),onClick:g,onKeyDown:e=>{("Enter"===e.key||" "===e.key)&&g()},children:s?"Read less":"Continue reading"})]})}var B=e.i(376990);function z({block:e}){let t=(0,o.createRef)(),n=(0,o.useMemo)(()=>{let t=t=>e.attributes?.find(e=>e?.name===t)?.value;return{showHeader:"true"===t("showHeader"),headerText:t("headerText")||"Methodology",characterLimitMobile:parseInt(t("characterLimit")||"550",10),characterLimitDesktop:parseInt(t("characterLimitDesktop")||"5000",10),className:t("className")||""}},[e.attributes]),[a,i]=(0,o.useState)(!1),[s,r]=(0,o.useState)(!1),[d,u]=(0,o.useState)([]),c=()=>{i(e=>!e),t.current&&a&&t.current.scrollIntoView({behavior:"smooth",block:"start"})};(0,o.useEffect)(()=>{r(window.innerWidth<768)},[]);let m=s?n.characterLimitMobile:n.characterLimitDesktop;(0,o.useEffect)(()=>{if(e.innerBlocks){let t=0,l=[];for(let n=0;n]*>?/gm,"");if(!a&&t+s.length>m&&m>0&&(i=H(i,m-t)),l.push({...o,innerHTML:i}),t+=s.length,!a&&t>m&&m>0)break}u(l)}else u([])},[e.innerBlocks,a,m]);let g=(0,o.useMemo)(()=>e.innerBlocks?.reduce((e,t)=>e+(t.innerHTML?.replace(/<[^>]*>?/gm,"").length||0),0)||0,[e.innerBlocks]);return(0,l.jsxs)("div",{className:(0,C.default)(B.default.methodology,n.className),ref:t,children:[n.showHeader&&(0,l.jsx)("h3",{className:B.default.header,children:n.headerText}),(0,l.jsxs)("div",{className:B.default.content,children:[g>m&&(0,l.jsx)("div",{className:B.default.fullContent,style:{display:a?"block":"none"},children:(0,l.jsx)(tT,{blocks:e.innerBlocks||[]})}),(0,l.jsx)("div",{className:B.default.truncatedContent,style:{display:a?"none":"block"},children:(0,l.jsx)(tT,{blocks:d})})]}),g>m&&(0,l.jsx)("button",{"aria-expanded":a?"true":"false","aria-label":a?"Show less content":"Show more content",className:(0,C.default)(B.default.readMore,"text-system-semibold-lg"),onClick:c,onKeyDown:e=>{("Enter"===e.key||" "===e.key)&&c()},children:a?"Read less":"Continue reading"})]})}var $=e.i(587574),q=e.i(954244),O=e.i(963382);function U({block:e}){let t=(0,o.useRef)(null),[n,a]=(0,o.useState)(!1),[i,s]=(0,o.useState)(!1);(0,o.useEffect)(()=>{{let e=()=>s(window.innerWidth<1024);return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)}},[]);let r=(0,o.useMemo)(()=>e.innerBlocks?.reduce((e,t)=>e+(0,q.countWordsInHtml)(t?.innerHTML||""),0)||0,[e.innerBlocks]),d=(0,o.useMemo)(()=>{if(!e.innerBlocks||n||!i)return e.innerBlocks||[];let t=50,l=[];for(let n of e.innerBlocks){let e=n?.innerHTML||"",o=(0,q.countWordsInHtml)(e);if(t<=0)break;if(o<=t&&n)l.push(n),t-=o;else{let o=function(e,t){let l,n=e.replace(/<[^>]*>/g,"").split(/\s+/);if(n.length<=t)return e;let o=n.slice(0,t).join(" ").length,a="",i=!1,s=0;for(let t=0;t"===l)i=!1,a+=l;else if(i)a+=l;else if(s]*>/g;for(;null!==(l=d.exec(a));)l[0].startsWith("")||r.push(l[1]);let u="";for(let e=r.length-1;e>=0;e--)u+=``;return a+"..."+u}(e,t);l.push({...n,innerHTML:o});break}}return l},[e.innerBlocks,n,i]),u=i&&r>50;return e.innerBlocks&&0!==e.innerBlocks.length?(0,l.jsxs)("div",{className:O.default.summary,ref:t,children:[(0,l.jsx)("h3",{className:O.default.header,children:"Summary"}),(0,l.jsxs)("div",{className:O.default.content,children:[u&&(0,l.jsx)("div",{className:O.default.fullContent,style:{display:n?"block":"none"},children:(0,l.jsx)(tT,{blocks:e.innerBlocks||[]})}),(0,l.jsx)("div",{className:O.default.truncatedContent,style:{display:u&&n?"none":"block"},children:(0,l.jsx)(tT,{blocks:d})})]}),u&&(0,l.jsx)("button",{"aria-expanded":n,"aria-label":n?"Show less":"Read more",className:O.default.readMore,onClick:()=>{a(e=>!e),t.current&&n&&t.current.scrollIntoView({behavior:"smooth",block:"start"})},children:n?"Read less":"Read more"})]}):null}let Z={qa:({block:e,children:t})=>{let n=e.attributes?.find(e=>e?.name==="headerText")?.value;return n?(0,l.jsxs)("div",{children:[(0,l.jsx)("h3",{className:E.default.title,dangerouslySetInnerHTML:{__html:n}}),(0,l.jsx)("hr",{className:E.default.separator}),(0,l.jsx)("div",{className:E.default.content,children:t})]}):null},introduction:W,licensing:function({sectionType:e="licensing",children:t}){return(0,l.jsx)("div",{className:`section-${e} ${$.default.licensing}`,children:(0,l.jsx)("div",{className:$.default.content,children:t})})},methodology:z,summary:U},K=e=>{let t=e?.filter(X);return t.length>0&&t.some(e=>e.innerHTML||e.innerBlocks&&e.innerBlocks.length>0)?t:null},X=e=>!!e?.attributes?.find(e=>e?.name==="className"&&e?.value==="ranking-disclaimer");var Q=e.i(406628),J=e.i(889737),Y=e.i(231092),ee=e.i(88226),et=e.i(598883),el=e.i(677297);function en(e,t){return"function"==typeof e?e(t):e}function eo(e,t){return l=>{t.setState(t=>({...t,[e]:en(l,t[e])}))}}function ea(e){return e instanceof Function}function ei(e,t,l){let n,o=[];return a=>{let i,s;l.key&&l.debug&&(i=Date.now());let r=e(a);if(!(r.length!==o.length||r.some((e,t)=>o[t]!==e)))return n;if(o=r,l.key&&l.debug&&(s=Date.now()),n=t(...r),null==l||null==l.onChange||l.onChange(n),l.key&&l.debug&&null!=l&&l.debug()){let e=Math.round((Date.now()-i)*100)/100,t=Math.round((Date.now()-s)*100)/100,n=t/16,o=(e,t)=>{for(e=String(e);e.length{var l;return null!=(l=null==e?void 0:e.debugAll)?l:e[t]},key:!1,onChange:n}}let er="debugHeaders";function ed(e,t,l){var n;let o={id:null!=(n=l.id)?n:t.id,column:t,index:l.index,isPlaceholder:!!l.isPlaceholder,placeholderId:l.placeholderId,depth:l.depth,subHeaders:[],colSpan:0,rowSpan:0,headerGroup:null,getLeafHeaders:()=>{let e=[],t=l=>{l.subHeaders&&l.subHeaders.length&&l.subHeaders.map(t),e.push(l)};return t(o),e},getContext:()=>({table:e,header:o,column:t})};return e._features.forEach(t=>{null==t.createHeader||t.createHeader(o,e)}),o}function eu(e,t,l,n){var o,a;let i=0,s=function(e,t){void 0===t&&(t=1),i=Math.max(i,t),e.filter(e=>e.getIsVisible()).forEach(e=>{var l;null!=(l=e.columns)&&l.length&&s(e.columns,t+1)},0)};s(e);let r=[],d=(e,t)=>{let o={depth:t,id:[n,`${t}`].filter(Boolean).join("_"),headers:[]},a=[];e.forEach(e=>{let i,s=[...a].reverse()[0],r=e.column.depth===o.depth,d=!1;if(r&&e.column.parent?i=e.column.parent:(i=e.column,d=!0),s&&(null==s?void 0:s.column)===i)s.subHeaders.push(e);else{let o=ed(l,i,{id:[n,t,i.id,null==e?void 0:e.id].filter(Boolean).join("_"),isPlaceholder:d,placeholderId:d?`${a.filter(e=>e.column===i).length}`:void 0,depth:t,index:a.length});o.subHeaders.push(e),a.push(o)}o.headers.push(e),e.headerGroup=o}),r.push(o),t>0&&d(a,t-1)};d(t.map((e,t)=>ed(l,e,{depth:i,index:t})),i-1),r.reverse();let u=e=>e.filter(e=>e.column.getIsVisible()).map(e=>{let t=0,l=0,n=[0];return e.subHeaders&&e.subHeaders.length?(n=[],u(e.subHeaders).forEach(e=>{let{colSpan:l,rowSpan:o}=e;t+=l,n.push(o)})):t=1,l+=Math.min(...n),e.colSpan=t,e.rowSpan=l,{colSpan:t,rowSpan:l}});return u(null!=(o=null==(a=r[0])?void 0:a.headers)?o:[]),r}let ec=(e,t,l,n,o,a,i)=>{let s={id:t,index:n,original:l,depth:o,parentId:i,_valuesCache:{},_uniqueValuesCache:{},getValue:t=>{if(s._valuesCache.hasOwnProperty(t))return s._valuesCache[t];let l=e.getColumn(t);if(null!=l&&l.accessorFn)return s._valuesCache[t]=l.accessorFn(s.original,n),s._valuesCache[t]},getUniqueValues:t=>{if(s._uniqueValuesCache.hasOwnProperty(t))return s._uniqueValuesCache[t];let l=e.getColumn(t);if(null!=l&&l.accessorFn)return l.columnDef.getUniqueValues?s._uniqueValuesCache[t]=l.columnDef.getUniqueValues(s.original,n):s._uniqueValuesCache[t]=[s.getValue(t)],s._uniqueValuesCache[t]},renderValue:t=>{var l;return null!=(l=s.getValue(t))?l:e.options.renderFallbackValue},subRows:null!=a?a:[],getLeafRows:()=>{var e,t;let l,n;return e=s.subRows,t=e=>e.subRows,l=[],(n=e=>{e.forEach(e=>{l.push(e);let o=t(e);null!=o&&o.length&&n(o)})})(e),l},getParentRow:()=>s.parentId?e.getRow(s.parentId,!0):void 0,getParentRows:()=>{let e=[],t=s;for(;;){let l=t.getParentRow();if(!l)break;e.push(l),t=l}return e.reverse()},getAllCells:ei(()=>[e.getAllLeafColumns()],t=>t.map(t=>{var l;let n;return l=t.id,n={id:`${s.id}_${t.id}`,row:s,column:t,getValue:()=>s.getValue(l),renderValue:()=>{var t;return null!=(t=n.getValue())?t:e.options.renderFallbackValue},getContext:ei(()=>[e,t,s,n],(e,t,l,n)=>({table:e,column:t,row:l,cell:n,getValue:n.getValue,renderValue:n.renderValue}),es(e.options,"debugCells","cell.getContext"))},e._features.forEach(l=>{null==l.createCell||l.createCell(n,t,s,e)},{}),n}),es(e.options,"debugRows","getAllCells")),_getAllCellsByColumnId:ei(()=>[s.getAllCells()],e=>e.reduce((e,t)=>(e[t.column.id]=t,e),{}),es(e.options,"debugRows","getAllCellsByColumnId"))};for(let t=0;t{var n,o;let a=null==l||null==(n=l.toString())?void 0:n.toLowerCase();return!!(null==(o=e.getValue(t))||null==(o=o.toString())||null==(o=o.toLowerCase())?void 0:o.includes(a))};em.autoRemove=e=>eC(e);let eg=(e,t,l)=>{var n;return!!(null==(n=e.getValue(t))||null==(n=n.toString())?void 0:n.includes(l))};eg.autoRemove=e=>eC(e);let ef=(e,t,l)=>{var n;return(null==(n=e.getValue(t))||null==(n=n.toString())?void 0:n.toLowerCase())===(null==l?void 0:l.toLowerCase())};ef.autoRemove=e=>eC(e);let ep=(e,t,l)=>{var n;return null==(n=e.getValue(t))?void 0:n.includes(l)};ep.autoRemove=e=>eC(e);let e_=(e,t,l)=>!l.some(l=>{var n;return!(null!=(n=e.getValue(t))&&n.includes(l))});e_.autoRemove=e=>eC(e)||!(null!=e&&e.length);let eh=(e,t,l)=>l.some(l=>{var n;return null==(n=e.getValue(t))?void 0:n.includes(l)});eh.autoRemove=e=>eC(e)||!(null!=e&&e.length);let eb=(e,t,l)=>e.getValue(t)===l;eb.autoRemove=e=>eC(e);let ew=(e,t,l)=>e.getValue(t)==l;ew.autoRemove=e=>eC(e);let ev=(e,t,l)=>{let[n,o]=l,a=e.getValue(t);return a>=n&&a<=o};ev.resolveFilterValue=e=>{let[t,l]=e,n="number"!=typeof t?parseFloat(t):t,o="number"!=typeof l?parseFloat(l):l,a=null===t||Number.isNaN(n)?-1/0:n,i=null===l||Number.isNaN(o)?1/0:o;if(a>i){let e=a;a=i,i=e}return[a,i]},ev.autoRemove=e=>eC(e)||eC(e[0])&&eC(e[1]);let ex={includesString:em,includesStringSensitive:eg,equalsString:ef,arrIncludes:ep,arrIncludesAll:e_,arrIncludesSome:eh,equals:eb,weakEquals:ew,inNumberRange:ev};function eC(e){return null==e||""===e}function ek(e,t,l){return!!e&&!!e.autoRemove&&e.autoRemove(t,l)||void 0===t||"string"==typeof t&&!t}let ey={sum:(e,t,l)=>l.reduce((t,l)=>{let n=l.getValue(e);return t+("number"==typeof n?n:0)},0),min:(e,t,l)=>{let n;return l.forEach(t=>{let l=t.getValue(e);null!=l&&(n>l||void 0===n&&l>=l)&&(n=l)}),n},max:(e,t,l)=>{let n;return l.forEach(t=>{let l=t.getValue(e);null!=l&&(n=l)&&(n=l)}),n},extent:(e,t,l)=>{let n,o;return l.forEach(t=>{let l=t.getValue(e);null!=l&&(void 0===n?l>=l&&(n=o=l):(n>l&&(n=l),o{let l=0,n=0;if(t.forEach(t=>{let o=t.getValue(e);null!=o&&(o*=1)>=o&&(++l,n+=o)}),l)return n/l},median:(e,t)=>{if(!t.length)return;let l=t.map(t=>t.getValue(e));if(!(Array.isArray(l)&&l.every(e=>"number"==typeof e)))return;if(1===l.length)return l[0];let n=Math.floor(l.length/2),o=l.sort((e,t)=>e-t);return l.length%2!=0?o[n]:(o[n-1]+o[n])/2},unique:(e,t)=>Array.from(new Set(t.map(t=>t.getValue(e))).values()),uniqueCount:(e,t)=>new Set(t.map(t=>t.getValue(e))).size,count:(e,t)=>t.length},eS=()=>({left:[],right:[]}),eR={size:150,minSize:20,maxSize:Number.MAX_SAFE_INTEGER},ej=()=>({startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]}),eN=null;function eT(e){return"touchstart"===e.type}function eL(e,t){return t?"center"===t?e.getCenterVisibleLeafColumns():"left"===t?e.getLeftVisibleLeafColumns():e.getRightVisibleLeafColumns():e.getVisibleLeafColumns()}let eI=()=>({pageIndex:0,pageSize:10}),eM=()=>({top:[],bottom:[]}),eV=(e,t,l,n,o)=>{var a;let i=o.getRow(t,!0);l?(i.getCanMultiSelect()||Object.keys(e).forEach(t=>delete e[t]),i.getCanSelect()&&(e[t]=!0)):delete e[t],n&&null!=(a=i.subRows)&&a.length&&i.getCanSelectSubRows()&&i.subRows.forEach(t=>eV(e,t.id,l,n,o))};function eP(e,t){let l=e.getState().rowSelection,n=[],o={},a=function(e,t){return e.map(e=>{var t;let i=eF(e,l);if(i&&(n.push(e),o[e.id]=e),null!=(t=e.subRows)&&t.length&&(e={...e,subRows:a(e.subRows)}),i)return e}).filter(Boolean)};return{rows:a(t.rows),flatRows:n,rowsById:o}}function eF(e,t){var l;return null!=(l=t[e.id])&&l}function eE(e,t,l){var n;if(!(null!=(n=e.subRows)&&n.length))return!1;let o=!0,a=!1;return e.subRows.forEach(e=>{if((!a||o)&&(e.getCanSelect()&&(eF(e,t)?a=!0:o=!1),e.subRows&&e.subRows.length)){let l=eE(e,t);"all"===l?a=!0:("some"===l&&(a=!0),o=!1)}}),o?"all":!!a&&"some"}let eA=/([0-9]+)/gm;function eG(e,t){return e===t?0:e>t?1:-1}function eH(e){return"number"==typeof e?isNaN(e)||e===1/0||e===-1/0?"":String(e):"string"==typeof e?e:""}function eD(e,t){let l=e.split(eA).filter(Boolean),n=t.split(eA).filter(Boolean);for(;l.length&&n.length;){let e=l.shift(),t=n.shift(),o=parseInt(e,10),a=parseInt(t,10),i=[o,a].sort();if(isNaN(i[0])){if(e>t)return 1;if(t>e)return -1;continue}if(isNaN(i[1]))return isNaN(o)?-1:1;if(o>a)return 1;if(a>o)return -1}return l.length-n.length}let eW={alphanumeric:(e,t,l)=>eD(eH(e.getValue(l)).toLowerCase(),eH(t.getValue(l)).toLowerCase()),alphanumericCaseSensitive:(e,t,l)=>eD(eH(e.getValue(l)),eH(t.getValue(l))),text:(e,t,l)=>eG(eH(e.getValue(l)).toLowerCase(),eH(t.getValue(l)).toLowerCase()),textCaseSensitive:(e,t,l)=>eG(eH(e.getValue(l)),eH(t.getValue(l))),datetime:(e,t,l)=>{let n=e.getValue(l),o=t.getValue(l);return n>o?1:neG(e.getValue(l),t.getValue(l))},eB=[{createTable:e=>{e.getHeaderGroups=ei(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,l,n,o)=>{var a,i;let s=null!=(a=null==n?void 0:n.map(e=>l.find(t=>t.id===e)).filter(Boolean))?a:[],r=null!=(i=null==o?void 0:o.map(e=>l.find(t=>t.id===e)).filter(Boolean))?i:[];return eu(t,[...s,...l.filter(e=>!(null!=n&&n.includes(e.id))&&!(null!=o&&o.includes(e.id))),...r],e)},es(e.options,er,"getHeaderGroups")),e.getCenterHeaderGroups=ei(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,l,n,o)=>eu(t,l=l.filter(e=>!(null!=n&&n.includes(e.id))&&!(null!=o&&o.includes(e.id))),e,"center"),es(e.options,er,"getCenterHeaderGroups")),e.getLeftHeaderGroups=ei(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left],(t,l,n)=>{var o;return eu(t,null!=(o=null==n?void 0:n.map(e=>l.find(t=>t.id===e)).filter(Boolean))?o:[],e,"left")},es(e.options,er,"getLeftHeaderGroups")),e.getRightHeaderGroups=ei(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.right],(t,l,n)=>{var o;return eu(t,null!=(o=null==n?void 0:n.map(e=>l.find(t=>t.id===e)).filter(Boolean))?o:[],e,"right")},es(e.options,er,"getRightHeaderGroups")),e.getFooterGroups=ei(()=>[e.getHeaderGroups()],e=>[...e].reverse(),es(e.options,er,"getFooterGroups")),e.getLeftFooterGroups=ei(()=>[e.getLeftHeaderGroups()],e=>[...e].reverse(),es(e.options,er,"getLeftFooterGroups")),e.getCenterFooterGroups=ei(()=>[e.getCenterHeaderGroups()],e=>[...e].reverse(),es(e.options,er,"getCenterFooterGroups")),e.getRightFooterGroups=ei(()=>[e.getRightHeaderGroups()],e=>[...e].reverse(),es(e.options,er,"getRightFooterGroups")),e.getFlatHeaders=ei(()=>[e.getHeaderGroups()],e=>e.map(e=>e.headers).flat(),es(e.options,er,"getFlatHeaders")),e.getLeftFlatHeaders=ei(()=>[e.getLeftHeaderGroups()],e=>e.map(e=>e.headers).flat(),es(e.options,er,"getLeftFlatHeaders")),e.getCenterFlatHeaders=ei(()=>[e.getCenterHeaderGroups()],e=>e.map(e=>e.headers).flat(),es(e.options,er,"getCenterFlatHeaders")),e.getRightFlatHeaders=ei(()=>[e.getRightHeaderGroups()],e=>e.map(e=>e.headers).flat(),es(e.options,er,"getRightFlatHeaders")),e.getCenterLeafHeaders=ei(()=>[e.getCenterFlatHeaders()],e=>e.filter(e=>{var t;return!(null!=(t=e.subHeaders)&&t.length)}),es(e.options,er,"getCenterLeafHeaders")),e.getLeftLeafHeaders=ei(()=>[e.getLeftFlatHeaders()],e=>e.filter(e=>{var t;return!(null!=(t=e.subHeaders)&&t.length)}),es(e.options,er,"getLeftLeafHeaders")),e.getRightLeafHeaders=ei(()=>[e.getRightFlatHeaders()],e=>e.filter(e=>{var t;return!(null!=(t=e.subHeaders)&&t.length)}),es(e.options,er,"getRightLeafHeaders")),e.getLeafHeaders=ei(()=>[e.getLeftHeaderGroups(),e.getCenterHeaderGroups(),e.getRightHeaderGroups()],(e,t,l)=>{var n,o,a,i,s,r;return[...null!=(n=null==(o=e[0])?void 0:o.headers)?n:[],...null!=(a=null==(i=t[0])?void 0:i.headers)?a:[],...null!=(s=null==(r=l[0])?void 0:r.headers)?s:[]].map(e=>e.getLeafHeaders()).flat()},es(e.options,er,"getLeafHeaders"))}},{getInitialState:e=>({columnVisibility:{},...e}),getDefaultOptions:e=>({onColumnVisibilityChange:eo("columnVisibility",e)}),createColumn:(e,t)=>{e.toggleVisibility=l=>{e.getCanHide()&&t.setColumnVisibility(t=>({...t,[e.id]:null!=l?l:!e.getIsVisible()}))},e.getIsVisible=()=>{var l,n;let o=e.columns;return null==(l=o.length?o.some(e=>e.getIsVisible()):null==(n=t.getState().columnVisibility)?void 0:n[e.id])||l},e.getCanHide=()=>{var l,n;return(null==(l=e.columnDef.enableHiding)||l)&&(null==(n=t.options.enableHiding)||n)},e.getToggleVisibilityHandler=()=>t=>{null==e.toggleVisibility||e.toggleVisibility(t.target.checked)}},createRow:(e,t)=>{e._getAllVisibleCells=ei(()=>[e.getAllCells(),t.getState().columnVisibility],e=>e.filter(e=>e.column.getIsVisible()),es(t.options,"debugRows","_getAllVisibleCells")),e.getVisibleCells=ei(()=>[e.getLeftVisibleCells(),e.getCenterVisibleCells(),e.getRightVisibleCells()],(e,t,l)=>[...e,...t,...l],es(t.options,"debugRows","getVisibleCells"))},createTable:e=>{let t=(t,l)=>ei(()=>[l(),l().filter(e=>e.getIsVisible()).map(e=>e.id).join("_")],e=>e.filter(e=>null==e.getIsVisible?void 0:e.getIsVisible()),es(e.options,"debugColumns",t));e.getVisibleFlatColumns=t("getVisibleFlatColumns",()=>e.getAllFlatColumns()),e.getVisibleLeafColumns=t("getVisibleLeafColumns",()=>e.getAllLeafColumns()),e.getLeftVisibleLeafColumns=t("getLeftVisibleLeafColumns",()=>e.getLeftLeafColumns()),e.getRightVisibleLeafColumns=t("getRightVisibleLeafColumns",()=>e.getRightLeafColumns()),e.getCenterVisibleLeafColumns=t("getCenterVisibleLeafColumns",()=>e.getCenterLeafColumns()),e.setColumnVisibility=t=>null==e.options.onColumnVisibilityChange?void 0:e.options.onColumnVisibilityChange(t),e.resetColumnVisibility=t=>{var l;e.setColumnVisibility(t?{}:null!=(l=e.initialState.columnVisibility)?l:{})},e.toggleAllColumnsVisible=t=>{var l;t=null!=(l=t)?l:!e.getIsAllColumnsVisible(),e.setColumnVisibility(e.getAllLeafColumns().reduce((e,l)=>({...e,[l.id]:t||!(null!=l.getCanHide&&l.getCanHide())}),{}))},e.getIsAllColumnsVisible=()=>!e.getAllLeafColumns().some(e=>!(null!=e.getIsVisible&&e.getIsVisible())),e.getIsSomeColumnsVisible=()=>e.getAllLeafColumns().some(e=>null==e.getIsVisible?void 0:e.getIsVisible()),e.getToggleAllColumnsVisibilityHandler=()=>t=>{var l;e.toggleAllColumnsVisible(null==(l=t.target)?void 0:l.checked)}}},{getInitialState:e=>({columnOrder:[],...e}),getDefaultOptions:e=>({onColumnOrderChange:eo("columnOrder",e)}),createColumn:(e,t)=>{e.getIndex=ei(e=>[eL(t,e)],t=>t.findIndex(t=>t.id===e.id),es(t.options,"debugColumns","getIndex")),e.getIsFirstColumn=l=>{var n;return(null==(n=eL(t,l)[0])?void 0:n.id)===e.id},e.getIsLastColumn=l=>{var n;let o=eL(t,l);return(null==(n=o[o.length-1])?void 0:n.id)===e.id}},createTable:e=>{e.setColumnOrder=t=>null==e.options.onColumnOrderChange?void 0:e.options.onColumnOrderChange(t),e.resetColumnOrder=t=>{var l;e.setColumnOrder(t?[]:null!=(l=e.initialState.columnOrder)?l:[])},e._getOrderColumnsFn=ei(()=>[e.getState().columnOrder,e.getState().grouping,e.options.groupedColumnMode],(e,t,l)=>n=>{let o=[];if(null!=e&&e.length){let t=[...e],l=[...n];for(;l.length&&t.length;){let e=t.shift(),n=l.findIndex(t=>t.id===e);n>-1&&o.push(l.splice(n,1)[0])}o=[...o,...l]}else o=n;var a=o;if(!(null!=t&&t.length)||!l)return a;let i=a.filter(e=>!t.includes(e.id));return"remove"===l?i:[...t.map(e=>a.find(t=>t.id===e)).filter(Boolean),...i]},es(e.options,"debugTable","_getOrderColumnsFn"))}},{getInitialState:e=>({columnPinning:eS(),...e}),getDefaultOptions:e=>({onColumnPinningChange:eo("columnPinning",e)}),createColumn:(e,t)=>{e.pin=l=>{let n=e.getLeafColumns().map(e=>e.id).filter(Boolean);t.setColumnPinning(e=>{var t,o,a,i,s,r;return"right"===l?{left:(null!=(a=null==e?void 0:e.left)?a:[]).filter(e=>!(null!=n&&n.includes(e))),right:[...(null!=(i=null==e?void 0:e.right)?i:[]).filter(e=>!(null!=n&&n.includes(e))),...n]}:"left"===l?{left:[...(null!=(s=null==e?void 0:e.left)?s:[]).filter(e=>!(null!=n&&n.includes(e))),...n],right:(null!=(r=null==e?void 0:e.right)?r:[]).filter(e=>!(null!=n&&n.includes(e)))}:{left:(null!=(t=null==e?void 0:e.left)?t:[]).filter(e=>!(null!=n&&n.includes(e))),right:(null!=(o=null==e?void 0:e.right)?o:[]).filter(e=>!(null!=n&&n.includes(e)))}})},e.getCanPin=()=>e.getLeafColumns().some(e=>{var l,n,o;return(null==(l=e.columnDef.enablePinning)||l)&&(null==(n=null!=(o=t.options.enableColumnPinning)?o:t.options.enablePinning)||n)}),e.getIsPinned=()=>{let l=e.getLeafColumns().map(e=>e.id),{left:n,right:o}=t.getState().columnPinning,a=l.some(e=>null==n?void 0:n.includes(e)),i=l.some(e=>null==o?void 0:o.includes(e));return a?"left":!!i&&"right"},e.getPinnedIndex=()=>{var l,n;let o=e.getIsPinned();return o?null!=(l=null==(n=t.getState().columnPinning)||null==(n=n[o])?void 0:n.indexOf(e.id))?l:-1:0}},createRow:(e,t)=>{e.getCenterVisibleCells=ei(()=>[e._getAllVisibleCells(),t.getState().columnPinning.left,t.getState().columnPinning.right],(e,t,l)=>{let n=[...null!=t?t:[],...null!=l?l:[]];return e.filter(e=>!n.includes(e.column.id))},es(t.options,"debugRows","getCenterVisibleCells")),e.getLeftVisibleCells=ei(()=>[e._getAllVisibleCells(),t.getState().columnPinning.left],(e,t)=>(null!=t?t:[]).map(t=>e.find(e=>e.column.id===t)).filter(Boolean).map(e=>({...e,position:"left"})),es(t.options,"debugRows","getLeftVisibleCells")),e.getRightVisibleCells=ei(()=>[e._getAllVisibleCells(),t.getState().columnPinning.right],(e,t)=>(null!=t?t:[]).map(t=>e.find(e=>e.column.id===t)).filter(Boolean).map(e=>({...e,position:"right"})),es(t.options,"debugRows","getRightVisibleCells"))},createTable:e=>{e.setColumnPinning=t=>null==e.options.onColumnPinningChange?void 0:e.options.onColumnPinningChange(t),e.resetColumnPinning=t=>{var l,n;return e.setColumnPinning(t?eS():null!=(l=null==(n=e.initialState)?void 0:n.columnPinning)?l:eS())},e.getIsSomeColumnsPinned=t=>{var l,n,o;let a=e.getState().columnPinning;return t?!!(null==(l=a[t])?void 0:l.length):!!((null==(n=a.left)?void 0:n.length)||(null==(o=a.right)?void 0:o.length))},e.getLeftLeafColumns=ei(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left],(e,t)=>(null!=t?t:[]).map(t=>e.find(e=>e.id===t)).filter(Boolean),es(e.options,"debugColumns","getLeftLeafColumns")),e.getRightLeafColumns=ei(()=>[e.getAllLeafColumns(),e.getState().columnPinning.right],(e,t)=>(null!=t?t:[]).map(t=>e.find(e=>e.id===t)).filter(Boolean),es(e.options,"debugColumns","getRightLeafColumns")),e.getCenterLeafColumns=ei(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(e,t,l)=>{let n=[...null!=t?t:[],...null!=l?l:[]];return e.filter(e=>!n.includes(e.id))},es(e.options,"debugColumns","getCenterLeafColumns"))}},{createColumn:(e,t)=>{e._getFacetedRowModel=t.options.getFacetedRowModel&&t.options.getFacetedRowModel(t,e.id),e.getFacetedRowModel=()=>e._getFacetedRowModel?e._getFacetedRowModel():t.getPreFilteredRowModel(),e._getFacetedUniqueValues=t.options.getFacetedUniqueValues&&t.options.getFacetedUniqueValues(t,e.id),e.getFacetedUniqueValues=()=>e._getFacetedUniqueValues?e._getFacetedUniqueValues():new Map,e._getFacetedMinMaxValues=t.options.getFacetedMinMaxValues&&t.options.getFacetedMinMaxValues(t,e.id),e.getFacetedMinMaxValues=()=>{if(e._getFacetedMinMaxValues)return e._getFacetedMinMaxValues()}}},{getDefaultColumnDef:()=>({filterFn:"auto"}),getInitialState:e=>({columnFilters:[],...e}),getDefaultOptions:e=>({onColumnFiltersChange:eo("columnFilters",e),filterFromLeafRows:!1,maxLeafRowFilterDepth:100}),createColumn:(e,t)=>{e.getAutoFilterFn=()=>{let l=t.getCoreRowModel().flatRows[0],n=null==l?void 0:l.getValue(e.id);return"string"==typeof n?ex.includesString:"number"==typeof n?ex.inNumberRange:"boolean"==typeof n||null!==n&&"object"==typeof n?ex.equals:Array.isArray(n)?ex.arrIncludes:ex.weakEquals},e.getFilterFn=()=>{var l,n;return ea(e.columnDef.filterFn)?e.columnDef.filterFn:"auto"===e.columnDef.filterFn?e.getAutoFilterFn():null!=(l=null==(n=t.options.filterFns)?void 0:n[e.columnDef.filterFn])?l:ex[e.columnDef.filterFn]},e.getCanFilter=()=>{var l,n,o;return(null==(l=e.columnDef.enableColumnFilter)||l)&&(null==(n=t.options.enableColumnFilters)||n)&&(null==(o=t.options.enableFilters)||o)&&!!e.accessorFn},e.getIsFiltered=()=>e.getFilterIndex()>-1,e.getFilterValue=()=>{var l;return null==(l=t.getState().columnFilters)||null==(l=l.find(t=>t.id===e.id))?void 0:l.value},e.getFilterIndex=()=>{var l,n;return null!=(l=null==(n=t.getState().columnFilters)?void 0:n.findIndex(t=>t.id===e.id))?l:-1},e.setFilterValue=l=>{t.setColumnFilters(t=>{var n,o;let a=e.getFilterFn(),i=null==t?void 0:t.find(t=>t.id===e.id),s=en(l,i?i.value:void 0);if(ek(a,s,e))return null!=(n=null==t?void 0:t.filter(t=>t.id!==e.id))?n:[];let r={id:e.id,value:s};return i?null!=(o=null==t?void 0:t.map(t=>t.id===e.id?r:t))?o:[]:null!=t&&t.length?[...t,r]:[r]})}},createRow:(e,t)=>{e.columnFilters={},e.columnFiltersMeta={}},createTable:e=>{e.setColumnFilters=t=>{let l=e.getAllLeafColumns();null==e.options.onColumnFiltersChange||e.options.onColumnFiltersChange(e=>{var n;return null==(n=en(t,e))?void 0:n.filter(e=>{let t=l.find(t=>t.id===e.id);return!(t&&ek(t.getFilterFn(),e.value,t))&&!0})})},e.resetColumnFilters=t=>{var l,n;e.setColumnFilters(t?[]:null!=(l=null==(n=e.initialState)?void 0:n.columnFilters)?l:[])},e.getPreFilteredRowModel=()=>e.getCoreRowModel(),e.getFilteredRowModel=()=>(!e._getFilteredRowModel&&e.options.getFilteredRowModel&&(e._getFilteredRowModel=e.options.getFilteredRowModel(e)),e.options.manualFiltering||!e._getFilteredRowModel)?e.getPreFilteredRowModel():e._getFilteredRowModel()}},{createTable:e=>{e._getGlobalFacetedRowModel=e.options.getFacetedRowModel&&e.options.getFacetedRowModel(e,"__global__"),e.getGlobalFacetedRowModel=()=>e.options.manualFiltering||!e._getGlobalFacetedRowModel?e.getPreFilteredRowModel():e._getGlobalFacetedRowModel(),e._getGlobalFacetedUniqueValues=e.options.getFacetedUniqueValues&&e.options.getFacetedUniqueValues(e,"__global__"),e.getGlobalFacetedUniqueValues=()=>e._getGlobalFacetedUniqueValues?e._getGlobalFacetedUniqueValues():new Map,e._getGlobalFacetedMinMaxValues=e.options.getFacetedMinMaxValues&&e.options.getFacetedMinMaxValues(e,"__global__"),e.getGlobalFacetedMinMaxValues=()=>{if(e._getGlobalFacetedMinMaxValues)return e._getGlobalFacetedMinMaxValues()}}},{getInitialState:e=>({globalFilter:void 0,...e}),getDefaultOptions:e=>({onGlobalFilterChange:eo("globalFilter",e),globalFilterFn:"auto",getColumnCanGlobalFilter:t=>{var l;let n=null==(l=e.getCoreRowModel().flatRows[0])||null==(l=l._getAllCellsByColumnId()[t.id])?void 0:l.getValue();return"string"==typeof n||"number"==typeof n}}),createColumn:(e,t)=>{e.getCanGlobalFilter=()=>{var l,n,o,a;return(null==(l=e.columnDef.enableGlobalFilter)||l)&&(null==(n=t.options.enableGlobalFilter)||n)&&(null==(o=t.options.enableFilters)||o)&&(null==(a=null==t.options.getColumnCanGlobalFilter?void 0:t.options.getColumnCanGlobalFilter(e))||a)&&!!e.accessorFn}},createTable:e=>{e.getGlobalAutoFilterFn=()=>ex.includesString,e.getGlobalFilterFn=()=>{var t,l;let{globalFilterFn:n}=e.options;return ea(n)?n:"auto"===n?e.getGlobalAutoFilterFn():null!=(t=null==(l=e.options.filterFns)?void 0:l[n])?t:ex[n]},e.setGlobalFilter=t=>{null==e.options.onGlobalFilterChange||e.options.onGlobalFilterChange(t)},e.resetGlobalFilter=t=>{e.setGlobalFilter(t?void 0:e.initialState.globalFilter)}}},{getInitialState:e=>({sorting:[],...e}),getDefaultColumnDef:()=>({sortingFn:"auto",sortUndefined:1}),getDefaultOptions:e=>({onSortingChange:eo("sorting",e),isMultiSortEvent:e=>e.shiftKey}),createColumn:(e,t)=>{e.getAutoSortingFn=()=>{let l=t.getFilteredRowModel().flatRows.slice(10),n=!1;for(let t of l){let l=null==t?void 0:t.getValue(e.id);if("[object Date]"===Object.prototype.toString.call(l))return eW.datetime;if("string"==typeof l&&(n=!0,l.split(eA).length>1))return eW.alphanumeric}return n?eW.text:eW.basic},e.getAutoSortDir=()=>{let l=t.getFilteredRowModel().flatRows[0];return"string"==typeof(null==l?void 0:l.getValue(e.id))?"asc":"desc"},e.getSortingFn=()=>{var l,n;if(!e)throw Error();return ea(e.columnDef.sortingFn)?e.columnDef.sortingFn:"auto"===e.columnDef.sortingFn?e.getAutoSortingFn():null!=(l=null==(n=t.options.sortingFns)?void 0:n[e.columnDef.sortingFn])?l:eW[e.columnDef.sortingFn]},e.toggleSorting=(l,n)=>{let o=e.getNextSortingOrder(),a=null!=l;t.setSorting(i=>{let s,r=null==i?void 0:i.find(t=>t.id===e.id),d=null==i?void 0:i.findIndex(t=>t.id===e.id),u=[],c=a?l:"desc"===o;if("toggle"!=(s=null!=i&&i.length&&e.getCanMultiSort()&&n?r?"toggle":"add":null!=i&&i.length&&d!==i.length-1?"replace":r?"toggle":"replace")||a||o||(s="remove"),"add"===s){var m;(u=[...i,{id:e.id,desc:c}]).splice(0,u.length-(null!=(m=t.options.maxMultiSortColCount)?m:Number.MAX_SAFE_INTEGER))}else u="toggle"===s?i.map(t=>t.id===e.id?{...t,desc:c}:t):"remove"===s?i.filter(t=>t.id!==e.id):[{id:e.id,desc:c}];return u})},e.getFirstSortDir=()=>{var l,n;return(null!=(l=null!=(n=e.columnDef.sortDescFirst)?n:t.options.sortDescFirst)?l:"desc"===e.getAutoSortDir())?"desc":"asc"},e.getNextSortingOrder=l=>{var n,o;let a=e.getFirstSortDir(),i=e.getIsSorted();return i?(i===a||null!=(n=t.options.enableSortingRemoval)&&!n||!!l&&null!=(o=t.options.enableMultiRemove)&&!o)&&("desc"===i?"asc":"desc"):a},e.getCanSort=()=>{var l,n;return(null==(l=e.columnDef.enableSorting)||l)&&(null==(n=t.options.enableSorting)||n)&&!!e.accessorFn},e.getCanMultiSort=()=>{var l,n;return null!=(l=null!=(n=e.columnDef.enableMultiSort)?n:t.options.enableMultiSort)?l:!!e.accessorFn},e.getIsSorted=()=>{var l;let n=null==(l=t.getState().sorting)?void 0:l.find(t=>t.id===e.id);return!!n&&(n.desc?"desc":"asc")},e.getSortIndex=()=>{var l,n;return null!=(l=null==(n=t.getState().sorting)?void 0:n.findIndex(t=>t.id===e.id))?l:-1},e.clearSorting=()=>{t.setSorting(t=>null!=t&&t.length?t.filter(t=>t.id!==e.id):[])},e.getToggleSortingHandler=()=>{let l=e.getCanSort();return n=>{l&&(null==n.persist||n.persist(),null==e.toggleSorting||e.toggleSorting(void 0,!!e.getCanMultiSort()&&(null==t.options.isMultiSortEvent?void 0:t.options.isMultiSortEvent(n))))}}},createTable:e=>{e.setSorting=t=>null==e.options.onSortingChange?void 0:e.options.onSortingChange(t),e.resetSorting=t=>{var l,n;e.setSorting(t?[]:null!=(l=null==(n=e.initialState)?void 0:n.sorting)?l:[])},e.getPreSortedRowModel=()=>e.getGroupedRowModel(),e.getSortedRowModel=()=>(!e._getSortedRowModel&&e.options.getSortedRowModel&&(e._getSortedRowModel=e.options.getSortedRowModel(e)),e.options.manualSorting||!e._getSortedRowModel)?e.getPreSortedRowModel():e._getSortedRowModel()}},{getDefaultColumnDef:()=>({aggregatedCell:e=>{var t,l;return null!=(t=null==(l=e.getValue())||null==l.toString?void 0:l.toString())?t:null},aggregationFn:"auto"}),getInitialState:e=>({grouping:[],...e}),getDefaultOptions:e=>({onGroupingChange:eo("grouping",e),groupedColumnMode:"reorder"}),createColumn:(e,t)=>{e.toggleGrouping=()=>{t.setGrouping(t=>null!=t&&t.includes(e.id)?t.filter(t=>t!==e.id):[...null!=t?t:[],e.id])},e.getCanGroup=()=>{var l,n;return(null==(l=e.columnDef.enableGrouping)||l)&&(null==(n=t.options.enableGrouping)||n)&&(!!e.accessorFn||!!e.columnDef.getGroupingValue)},e.getIsGrouped=()=>{var l;return null==(l=t.getState().grouping)?void 0:l.includes(e.id)},e.getGroupedIndex=()=>{var l;return null==(l=t.getState().grouping)?void 0:l.indexOf(e.id)},e.getToggleGroupingHandler=()=>{let t=e.getCanGroup();return()=>{t&&e.toggleGrouping()}},e.getAutoAggregationFn=()=>{let l=t.getCoreRowModel().flatRows[0],n=null==l?void 0:l.getValue(e.id);return"number"==typeof n?ey.sum:"[object Date]"===Object.prototype.toString.call(n)?ey.extent:void 0},e.getAggregationFn=()=>{var l,n;if(!e)throw Error();return ea(e.columnDef.aggregationFn)?e.columnDef.aggregationFn:"auto"===e.columnDef.aggregationFn?e.getAutoAggregationFn():null!=(l=null==(n=t.options.aggregationFns)?void 0:n[e.columnDef.aggregationFn])?l:ey[e.columnDef.aggregationFn]}},createTable:e=>{e.setGrouping=t=>null==e.options.onGroupingChange?void 0:e.options.onGroupingChange(t),e.resetGrouping=t=>{var l,n;e.setGrouping(t?[]:null!=(l=null==(n=e.initialState)?void 0:n.grouping)?l:[])},e.getPreGroupedRowModel=()=>e.getFilteredRowModel(),e.getGroupedRowModel=()=>(!e._getGroupedRowModel&&e.options.getGroupedRowModel&&(e._getGroupedRowModel=e.options.getGroupedRowModel(e)),e.options.manualGrouping||!e._getGroupedRowModel)?e.getPreGroupedRowModel():e._getGroupedRowModel()},createRow:(e,t)=>{e.getIsGrouped=()=>!!e.groupingColumnId,e.getGroupingValue=l=>{if(e._groupingValuesCache.hasOwnProperty(l))return e._groupingValuesCache[l];let n=t.getColumn(l);return null!=n&&n.columnDef.getGroupingValue?(e._groupingValuesCache[l]=n.columnDef.getGroupingValue(e.original),e._groupingValuesCache[l]):e.getValue(l)},e._groupingValuesCache={}},createCell:(e,t,l,n)=>{e.getIsGrouped=()=>t.getIsGrouped()&&t.id===l.groupingColumnId,e.getIsPlaceholder=()=>!e.getIsGrouped()&&t.getIsGrouped(),e.getIsAggregated=()=>{var t;return!e.getIsGrouped()&&!e.getIsPlaceholder()&&!!(null!=(t=l.subRows)&&t.length)}}},{getInitialState:e=>({expanded:{},...e}),getDefaultOptions:e=>({onExpandedChange:eo("expanded",e),paginateExpandedRows:!0}),createTable:e=>{let t=!1,l=!1;e._autoResetExpanded=()=>{var n,o;if(!t)return void e._queue(()=>{t=!0});if(null!=(n=null!=(o=e.options.autoResetAll)?o:e.options.autoResetExpanded)?n:!e.options.manualExpanding){if(l)return;l=!0,e._queue(()=>{e.resetExpanded(),l=!1})}},e.setExpanded=t=>null==e.options.onExpandedChange?void 0:e.options.onExpandedChange(t),e.toggleAllRowsExpanded=t=>{(null!=t?t:!e.getIsAllRowsExpanded())?e.setExpanded(!0):e.setExpanded({})},e.resetExpanded=t=>{var l,n;e.setExpanded(t?{}:null!=(l=null==(n=e.initialState)?void 0:n.expanded)?l:{})},e.getCanSomeRowsExpand=()=>e.getPrePaginationRowModel().flatRows.some(e=>e.getCanExpand()),e.getToggleAllRowsExpandedHandler=()=>t=>{null==t.persist||t.persist(),e.toggleAllRowsExpanded()},e.getIsSomeRowsExpanded=()=>{let t=e.getState().expanded;return!0===t||Object.values(t).some(Boolean)},e.getIsAllRowsExpanded=()=>{let t=e.getState().expanded;return"boolean"==typeof t?!0===t:!(!Object.keys(t).length||e.getRowModel().flatRows.some(e=>!e.getIsExpanded()))},e.getExpandedDepth=()=>{let t=0;return(!0===e.getState().expanded?Object.keys(e.getRowModel().rowsById):Object.keys(e.getState().expanded)).forEach(e=>{let l=e.split(".");t=Math.max(t,l.length)}),t},e.getPreExpandedRowModel=()=>e.getSortedRowModel(),e.getExpandedRowModel=()=>(!e._getExpandedRowModel&&e.options.getExpandedRowModel&&(e._getExpandedRowModel=e.options.getExpandedRowModel(e)),e.options.manualExpanding||!e._getExpandedRowModel)?e.getPreExpandedRowModel():e._getExpandedRowModel()},createRow:(e,t)=>{e.toggleExpanded=l=>{t.setExpanded(n=>{var o;let a=!0===n||!!(null!=n&&n[e.id]),i={};if(!0===n?Object.keys(t.getRowModel().rowsById).forEach(e=>{i[e]=!0}):i=n,l=null!=(o=l)?o:!a,!a&&l)return{...i,[e.id]:!0};if(a&&!l){let{[e.id]:t,...l}=i;return l}return n})},e.getIsExpanded=()=>{var l;let n=t.getState().expanded;return!!(null!=(l=null==t.options.getIsRowExpanded?void 0:t.options.getIsRowExpanded(e))?l:!0===n||(null==n?void 0:n[e.id]))},e.getCanExpand=()=>{var l,n,o;return null!=(l=null==t.options.getRowCanExpand?void 0:t.options.getRowCanExpand(e))?l:(null==(n=t.options.enableExpanding)||n)&&!!(null!=(o=e.subRows)&&o.length)},e.getIsAllParentsExpanded=()=>{let l=!0,n=e;for(;l&&n.parentId;)l=(n=t.getRow(n.parentId,!0)).getIsExpanded();return l},e.getToggleExpandedHandler=()=>{let t=e.getCanExpand();return()=>{t&&e.toggleExpanded()}}}},{getInitialState:e=>({...e,pagination:{...eI(),...null==e?void 0:e.pagination}}),getDefaultOptions:e=>({onPaginationChange:eo("pagination",e)}),createTable:e=>{let t=!1,l=!1;e._autoResetPageIndex=()=>{var n,o;if(!t)return void e._queue(()=>{t=!0});if(null!=(n=null!=(o=e.options.autoResetAll)?o:e.options.autoResetPageIndex)?n:!e.options.manualPagination){if(l)return;l=!0,e._queue(()=>{e.resetPageIndex(),l=!1})}},e.setPagination=t=>null==e.options.onPaginationChange?void 0:e.options.onPaginationChange(e=>en(t,e)),e.resetPagination=t=>{var l;e.setPagination(t?eI():null!=(l=e.initialState.pagination)?l:eI())},e.setPageIndex=t=>{e.setPagination(l=>{let n=en(t,l.pageIndex);return n=Math.max(0,Math.min(n,void 0===e.options.pageCount||-1===e.options.pageCount?Number.MAX_SAFE_INTEGER:e.options.pageCount-1)),{...l,pageIndex:n}})},e.resetPageIndex=t=>{var l,n;e.setPageIndex(t?0:null!=(l=null==(n=e.initialState)||null==(n=n.pagination)?void 0:n.pageIndex)?l:0)},e.resetPageSize=t=>{var l,n;e.setPageSize(t?10:null!=(l=null==(n=e.initialState)||null==(n=n.pagination)?void 0:n.pageSize)?l:10)},e.setPageSize=t=>{e.setPagination(e=>{let l=Math.max(1,en(t,e.pageSize)),n=Math.floor(e.pageSize*e.pageIndex/l);return{...e,pageIndex:n,pageSize:l}})},e.setPageCount=t=>e.setPagination(l=>{var n;let o=en(t,null!=(n=e.options.pageCount)?n:-1);return"number"==typeof o&&(o=Math.max(-1,o)),{...l,pageCount:o}}),e.getPageOptions=ei(()=>[e.getPageCount()],e=>{let t=[];return e&&e>0&&(t=[...Array(e)].fill(null).map((e,t)=>t)),t},es(e.options,"debugTable","getPageOptions")),e.getCanPreviousPage=()=>e.getState().pagination.pageIndex>0,e.getCanNextPage=()=>{let{pageIndex:t}=e.getState().pagination,l=e.getPageCount();return -1===l||0!==l&&te.setPageIndex(e=>e-1),e.nextPage=()=>e.setPageIndex(e=>e+1),e.firstPage=()=>e.setPageIndex(0),e.lastPage=()=>e.setPageIndex(e.getPageCount()-1),e.getPrePaginationRowModel=()=>e.getExpandedRowModel(),e.getPaginationRowModel=()=>(!e._getPaginationRowModel&&e.options.getPaginationRowModel&&(e._getPaginationRowModel=e.options.getPaginationRowModel(e)),e.options.manualPagination||!e._getPaginationRowModel)?e.getPrePaginationRowModel():e._getPaginationRowModel(),e.getPageCount=()=>{var t;return null!=(t=e.options.pageCount)?t:Math.ceil(e.getRowCount()/e.getState().pagination.pageSize)},e.getRowCount=()=>{var t;return null!=(t=e.options.rowCount)?t:e.getPrePaginationRowModel().rows.length}}},{getInitialState:e=>({rowPinning:eM(),...e}),getDefaultOptions:e=>({onRowPinningChange:eo("rowPinning",e)}),createRow:(e,t)=>{e.pin=(l,n,o)=>{let a=n?e.getLeafRows().map(e=>{let{id:t}=e;return t}):[],i=new Set([...o?e.getParentRows().map(e=>{let{id:t}=e;return t}):[],e.id,...a]);t.setRowPinning(e=>{var t,n,o,a,s,r;return"bottom"===l?{top:(null!=(o=null==e?void 0:e.top)?o:[]).filter(e=>!(null!=i&&i.has(e))),bottom:[...(null!=(a=null==e?void 0:e.bottom)?a:[]).filter(e=>!(null!=i&&i.has(e))),...Array.from(i)]}:"top"===l?{top:[...(null!=(s=null==e?void 0:e.top)?s:[]).filter(e=>!(null!=i&&i.has(e))),...Array.from(i)],bottom:(null!=(r=null==e?void 0:e.bottom)?r:[]).filter(e=>!(null!=i&&i.has(e)))}:{top:(null!=(t=null==e?void 0:e.top)?t:[]).filter(e=>!(null!=i&&i.has(e))),bottom:(null!=(n=null==e?void 0:e.bottom)?n:[]).filter(e=>!(null!=i&&i.has(e)))}})},e.getCanPin=()=>{var l;let{enableRowPinning:n,enablePinning:o}=t.options;return"function"==typeof n?n(e):null==(l=null!=n?n:o)||l},e.getIsPinned=()=>{let l=[e.id],{top:n,bottom:o}=t.getState().rowPinning,a=l.some(e=>null==n?void 0:n.includes(e)),i=l.some(e=>null==o?void 0:o.includes(e));return a?"top":!!i&&"bottom"},e.getPinnedIndex=()=>{var l,n;let o=e.getIsPinned();if(!o)return -1;let a=null==(l="top"===o?t.getTopRows():t.getBottomRows())?void 0:l.map(e=>{let{id:t}=e;return t});return null!=(n=null==a?void 0:a.indexOf(e.id))?n:-1}},createTable:e=>{e.setRowPinning=t=>null==e.options.onRowPinningChange?void 0:e.options.onRowPinningChange(t),e.resetRowPinning=t=>{var l,n;return e.setRowPinning(t?eM():null!=(l=null==(n=e.initialState)?void 0:n.rowPinning)?l:eM())},e.getIsSomeRowsPinned=t=>{var l,n,o;let a=e.getState().rowPinning;return t?!!(null==(l=a[t])?void 0:l.length):!!((null==(n=a.top)?void 0:n.length)||(null==(o=a.bottom)?void 0:o.length))},e._getPinnedRows=(t,l,n)=>{var o;return(null==(o=e.options.keepPinnedRows)||o?(null!=l?l:[]).map(t=>{let l=e.getRow(t,!0);return l.getIsAllParentsExpanded()?l:null}):(null!=l?l:[]).map(e=>t.find(t=>t.id===e))).filter(Boolean).map(e=>({...e,position:n}))},e.getTopRows=ei(()=>[e.getRowModel().rows,e.getState().rowPinning.top],(t,l)=>e._getPinnedRows(t,l,"top"),es(e.options,"debugRows","getTopRows")),e.getBottomRows=ei(()=>[e.getRowModel().rows,e.getState().rowPinning.bottom],(t,l)=>e._getPinnedRows(t,l,"bottom"),es(e.options,"debugRows","getBottomRows")),e.getCenterRows=ei(()=>[e.getRowModel().rows,e.getState().rowPinning.top,e.getState().rowPinning.bottom],(e,t,l)=>{let n=new Set([...null!=t?t:[],...null!=l?l:[]]);return e.filter(e=>!n.has(e.id))},es(e.options,"debugRows","getCenterRows"))}},{getInitialState:e=>({rowSelection:{},...e}),getDefaultOptions:e=>({onRowSelectionChange:eo("rowSelection",e),enableRowSelection:!0,enableMultiRowSelection:!0,enableSubRowSelection:!0}),createTable:e=>{e.setRowSelection=t=>null==e.options.onRowSelectionChange?void 0:e.options.onRowSelectionChange(t),e.resetRowSelection=t=>{var l;return e.setRowSelection(t?{}:null!=(l=e.initialState.rowSelection)?l:{})},e.toggleAllRowsSelected=t=>{e.setRowSelection(l=>{t=void 0!==t?t:!e.getIsAllRowsSelected();let n={...l},o=e.getPreGroupedRowModel().flatRows;return t?o.forEach(e=>{e.getCanSelect()&&(n[e.id]=!0)}):o.forEach(e=>{delete n[e.id]}),n})},e.toggleAllPageRowsSelected=t=>e.setRowSelection(l=>{let n=void 0!==t?t:!e.getIsAllPageRowsSelected(),o={...l};return e.getRowModel().rows.forEach(t=>{eV(o,t.id,n,!0,e)}),o}),e.getPreSelectedRowModel=()=>e.getCoreRowModel(),e.getSelectedRowModel=ei(()=>[e.getState().rowSelection,e.getCoreRowModel()],(t,l)=>Object.keys(t).length?eP(e,l):{rows:[],flatRows:[],rowsById:{}},es(e.options,"debugTable","getSelectedRowModel")),e.getFilteredSelectedRowModel=ei(()=>[e.getState().rowSelection,e.getFilteredRowModel()],(t,l)=>Object.keys(t).length?eP(e,l):{rows:[],flatRows:[],rowsById:{}},es(e.options,"debugTable","getFilteredSelectedRowModel")),e.getGroupedSelectedRowModel=ei(()=>[e.getState().rowSelection,e.getSortedRowModel()],(t,l)=>Object.keys(t).length?eP(e,l):{rows:[],flatRows:[],rowsById:{}},es(e.options,"debugTable","getGroupedSelectedRowModel")),e.getIsAllRowsSelected=()=>{let t=e.getFilteredRowModel().flatRows,{rowSelection:l}=e.getState(),n=!!(t.length&&Object.keys(l).length);return n&&t.some(e=>e.getCanSelect()&&!l[e.id])&&(n=!1),n},e.getIsAllPageRowsSelected=()=>{let t=e.getPaginationRowModel().flatRows.filter(e=>e.getCanSelect()),{rowSelection:l}=e.getState(),n=!!t.length;return n&&t.some(e=>!l[e.id])&&(n=!1),n},e.getIsSomeRowsSelected=()=>{var t;let l=Object.keys(null!=(t=e.getState().rowSelection)?t:{}).length;return l>0&&l{let t=e.getPaginationRowModel().flatRows;return!e.getIsAllPageRowsSelected()&&t.filter(e=>e.getCanSelect()).some(e=>e.getIsSelected()||e.getIsSomeSelected())},e.getToggleAllRowsSelectedHandler=()=>t=>{e.toggleAllRowsSelected(t.target.checked)},e.getToggleAllPageRowsSelectedHandler=()=>t=>{e.toggleAllPageRowsSelected(t.target.checked)}},createRow:(e,t)=>{e.toggleSelected=(l,n)=>{let o=e.getIsSelected();t.setRowSelection(a=>{var i;if(l=void 0!==l?l:!o,e.getCanSelect()&&o===l)return a;let s={...a};return eV(s,e.id,l,null==(i=null==n?void 0:n.selectChildren)||i,t),s})},e.getIsSelected=()=>{let{rowSelection:l}=t.getState();return eF(e,l)},e.getIsSomeSelected=()=>{let{rowSelection:l}=t.getState();return"some"===eE(e,l)},e.getIsAllSubRowsSelected=()=>{let{rowSelection:l}=t.getState();return"all"===eE(e,l)},e.getCanSelect=()=>{var l;return"function"==typeof t.options.enableRowSelection?t.options.enableRowSelection(e):null==(l=t.options.enableRowSelection)||l},e.getCanSelectSubRows=()=>{var l;return"function"==typeof t.options.enableSubRowSelection?t.options.enableSubRowSelection(e):null==(l=t.options.enableSubRowSelection)||l},e.getCanMultiSelect=()=>{var l;return"function"==typeof t.options.enableMultiRowSelection?t.options.enableMultiRowSelection(e):null==(l=t.options.enableMultiRowSelection)||l},e.getToggleSelectedHandler=()=>{let t=e.getCanSelect();return l=>{var n;t&&e.toggleSelected(null==(n=l.target)?void 0:n.checked)}}}},{getDefaultColumnDef:()=>eR,getInitialState:e=>({columnSizing:{},columnSizingInfo:ej(),...e}),getDefaultOptions:e=>({columnResizeMode:"onEnd",columnResizeDirection:"ltr",onColumnSizingChange:eo("columnSizing",e),onColumnSizingInfoChange:eo("columnSizingInfo",e)}),createColumn:(e,t)=>{e.getSize=()=>{var l,n,o;let a=t.getState().columnSizing[e.id];return Math.min(Math.max(null!=(l=e.columnDef.minSize)?l:eR.minSize,null!=(n=null!=a?a:e.columnDef.size)?n:eR.size),null!=(o=e.columnDef.maxSize)?o:eR.maxSize)},e.getStart=ei(e=>[e,eL(t,e),t.getState().columnSizing],(t,l)=>l.slice(0,e.getIndex(t)).reduce((e,t)=>e+t.getSize(),0),es(t.options,"debugColumns","getStart")),e.getAfter=ei(e=>[e,eL(t,e),t.getState().columnSizing],(t,l)=>l.slice(e.getIndex(t)+1).reduce((e,t)=>e+t.getSize(),0),es(t.options,"debugColumns","getAfter")),e.resetSize=()=>{t.setColumnSizing(t=>{let{[e.id]:l,...n}=t;return n})},e.getCanResize=()=>{var l,n;return(null==(l=e.columnDef.enableResizing)||l)&&(null==(n=t.options.enableColumnResizing)||n)},e.getIsResizing=()=>t.getState().columnSizingInfo.isResizingColumn===e.id},createHeader:(e,t)=>{e.getSize=()=>{let t=0,l=e=>{if(e.subHeaders.length)e.subHeaders.forEach(l);else{var n;t+=null!=(n=e.column.getSize())?n:0}};return l(e),t},e.getStart=()=>{if(e.index>0){let t=e.headerGroup.headers[e.index-1];return t.getStart()+t.getSize()}return 0},e.getResizeHandler=l=>{let n=t.getColumn(e.column.id),o=null==n?void 0:n.getCanResize();return a=>{if(!n||!o||(null==a.persist||a.persist(),eT(a)&&a.touches&&a.touches.length>1))return;let i=e.getSize(),s=e?e.getLeafHeaders().map(e=>[e.column.id,e.column.getSize()]):[[n.id,n.getSize()]],r=eT(a)?Math.round(a.touches[0].clientX):a.clientX,d={},u=(e,l)=>{"number"==typeof l&&(t.setColumnSizingInfo(e=>{var n,o;let a="rtl"===t.options.columnResizeDirection?-1:1,i=(l-(null!=(n=null==e?void 0:e.startOffset)?n:0))*a,s=Math.max(i/(null!=(o=null==e?void 0:e.startSize)?o:0),-.999999);return e.columnSizingStart.forEach(e=>{let[t,l]=e;d[t]=Math.round(100*Math.max(l+l*s,0))/100}),{...e,deltaOffset:i,deltaPercentage:s}}),("onChange"===t.options.columnResizeMode||"end"===e)&&t.setColumnSizing(e=>({...e,...d})))},c=e=>{u("end",e),t.setColumnSizingInfo(e=>({...e,isResizingColumn:!1,startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,columnSizingStart:[]}))},m=l||("u">typeof document?document:null),g={moveHandler:e=>u("move",e.clientX),upHandler:e=>{null==m||m.removeEventListener("mousemove",g.moveHandler),null==m||m.removeEventListener("mouseup",g.upHandler),c(e.clientX)}},f={moveHandler:e=>(e.cancelable&&(e.preventDefault(),e.stopPropagation()),u("move",e.touches[0].clientX),!1),upHandler:e=>{var t;null==m||m.removeEventListener("touchmove",f.moveHandler),null==m||m.removeEventListener("touchend",f.upHandler),e.cancelable&&(e.preventDefault(),e.stopPropagation()),c(null==(t=e.touches[0])?void 0:t.clientX)}},p=!!function(){if("boolean"==typeof eN)return eN;let e=!1;try{let t=()=>{};window.addEventListener("test",t,{get passive(){return e=!0,!1}}),window.removeEventListener("test",t)}catch(t){e=!1}return eN=e}()&&{passive:!1};eT(a)?(null==m||m.addEventListener("touchmove",f.moveHandler,p),null==m||m.addEventListener("touchend",f.upHandler,p)):(null==m||m.addEventListener("mousemove",g.moveHandler,p),null==m||m.addEventListener("mouseup",g.upHandler,p)),t.setColumnSizingInfo(e=>({...e,startOffset:r,startSize:i,deltaOffset:0,deltaPercentage:0,columnSizingStart:s,isResizingColumn:n.id}))}}},createTable:e=>{e.setColumnSizing=t=>null==e.options.onColumnSizingChange?void 0:e.options.onColumnSizingChange(t),e.setColumnSizingInfo=t=>null==e.options.onColumnSizingInfoChange?void 0:e.options.onColumnSizingInfoChange(t),e.resetColumnSizing=t=>{var l;e.setColumnSizing(t?{}:null!=(l=e.initialState.columnSizing)?l:{})},e.resetHeaderSizeInfo=t=>{var l;e.setColumnSizingInfo(t?ej():null!=(l=e.initialState.columnSizingInfo)?l:ej())},e.getTotalSize=()=>{var t,l;return null!=(t=null==(l=e.getHeaderGroups()[0])?void 0:l.headers.reduce((e,t)=>e+t.getSize(),0))?t:0},e.getLeftTotalSize=()=>{var t,l;return null!=(t=null==(l=e.getLeftHeaderGroups()[0])?void 0:l.headers.reduce((e,t)=>e+t.getSize(),0))?t:0},e.getCenterTotalSize=()=>{var t,l;return null!=(t=null==(l=e.getCenterHeaderGroups()[0])?void 0:l.headers.reduce((e,t)=>e+t.getSize(),0))?t:0},e.getRightTotalSize=()=>{var t,l;return null!=(t=null==(l=e.getRightHeaderGroups()[0])?void 0:l.headers.reduce((e,t)=>e+t.getSize(),0))?t:0}}}];function ez(e,t){var l,n,a;let i;return e?"function"==typeof(n=l=e)&&(i=Object.getPrototypeOf(n)).prototype&&i.prototype.isReactComponent||"function"==typeof l||"object"==typeof(a=l)&&"symbol"==typeof a.$$typeof&&["react.memo","react.forward_ref"].includes(a.$$typeof.description)?o.createElement(e,t):e:null}var e$=e.i(36687),eq=e.i(571349),eO=e.i(525803),eU=e.i(955637),eZ=e.i(939761);let eK=({profile:e})=>(0,l.jsxs)("div",{className:eU.default.container,children:[!!e.company_logo.trim()&&(0,l.jsx)(eO.default,{src:e.company_logo,alt:e.companyName,width:164,height:164}),(0,l.jsxs)("div",{className:eU.default.companyDetail,children:[(0,l.jsxs)("div",{className:eU.default.content,children:[(0,l.jsx)("h5",{className:eU.default.accolade,children:e.accolade}),(0,l.jsxs)("h3",{className:eU.default.companyName,children:[e.company_name," - ",e.industry]}),e.company_summary&&(0,l.jsxs)("p",{className:eU.default.companySummary,children:[e.company_summary.substring(0,180),e.company_summary.length>180?"...":""]})]}),(0,l.jsx)(eZ.NewsweekLink,{className:eU.default.companyProfile,href:e.profile_url,children:e.profile})]}),(0,l.jsxs)("div",{className:eU.default.mobileContent,children:[e.company_summary&&(0,l.jsxs)("p",{className:eU.default.companySummary,children:[e.company_summary.substring(0,180).trim(),"."]}),(0,l.jsx)(eZ.NewsweekLink,{className:eU.default.companyProfile,href:e.profile_url,children:e.profile})]})]}),eX=([e,t])=>e&&t?`${t}||${e}`:t,eQ=[{id:"rating",showInTable:!0},{id:"company_name",showInTable:!0,type:"renderLink",formatter:([e,t])=>e&&t.trim()?eX([e,t.trim()]):e,params:["company_name","website"]},{id:"website"},{id:"company_logo"},{id:"company_summary"},{id:"accolade"},{id:"newsweek_logo"},{id:"industry",showInTable:!0},{id:"sub_industry"},{id:"employees",showInTable:!0},{id:"size_category",showInTable:!0},{id:"revenue",showInTable:!0},{id:"location"},{id:"operating_state",showInTable:!0},{id:"year_founded",showInTable:!0},{id:"profile",showInTable:!1,type:"renderLink",formatter:eX,params:["profile","profile_url"]},{id:"profile_url"}],eJ=["size_category","operating_state"],eY=e=>!!e?.profile,e0=e=>{let t,l;if(!e.articleTable||!e.articleTable.rows)return{};let n=(e.articleTable?.rows).reduce((e,t)=>(e.push(t.reduce((e,t,l)=>{let n=eQ[l];return e[eQ[l].id]={...n,value:t},e},{})),e),[])??[],{processedColumns:o,processedData:a}=(t=[...eQ],l=[...n],eJ.map(e=>{n.every(t=>!t[e].value.trim())&&(t=t.map(t=>t.id===e?{...t,showInTable:!1}:t),l=l.reduce((t,l)=>[...t,{...l,[e]:{...l[e],showInTable:!1}}],[]))}),{processedColumns:t,processedData:l}),i=o.reduce((t,l,n)=>{if(l.showInTable){let o=e.articleTable?.columns?.[n];t.push({...o,type:l.type??"string"})}return t},[]),s=a.map(e=>Object.entries(e).reduce((t,[l,n])=>{if(n.showInTable){let l=n.value;if(n.formatter){let t=n.params;if(t?.length){let o=t.map(t=>e[t].value);l=n.formatter(o)}}t.push(l)}return t},[])),r=n.map(e=>Object.entries(e).reduce((e,[t,l])=>(e[t]=l.value,e),{}));return{...e,articleTable:{columns:i,rows:s,mappedData:r}}};e.s(["default",0,e0,"shouldHighlightProfile",0,eY],360950);let e1=({row:e,mappedData:t})=>eY(t?.[e.index])?(0,l.jsx)("tr",{className:eq.default.profileHighlightedData,children:(0,l.jsx)("td",{colSpan:e.getVisibleCells().length,children:(0,l.jsx)("div",{className:eq.default.customData,children:(0,l.jsx)(eK,{profile:t[e.index]})})})}):null;var e2=e.i(928231);let e4=({row:e,ranking:t,isCustomRankingTable:n,isV2:o=!1})=>{if(n){let n=t?.articleTable?.mappedData?.[e.index],a=!!e.original._profileUrl?.trim(),i=eY(n)||a,s=n?.company_logo?.trim();return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("tr",{className:(0,C.default)({[eq.default.highlighted]:!o&&i,[e2.default.sponsoredRow]:o&&i}),role:"row",tabIndex:-1,children:e.getVisibleCells().map(e=>{let t="company_name"===e.column.id;if(o&&t&&i&&s)return(0,l.jsx)("td",{style:e.column.columnDef.meta?.width||{},children:(0,l.jsxs)("div",{className:e2.default.cellWithImage,children:[(0,l.jsx)("img",{src:s,alt:"",className:e2.default.cellImage}),(0,l.jsx)("span",{children:ez(e.column.columnDef.cell,e.getContext())})]})},e.id);let a=!o&&t&&i&&n?.newsweek_logo;return(0,l.jsxs)("td",{style:e.column.columnDef.meta?.width||{},className:o?void 0:(0,C.default)(eq.default.cell,eq.default[e.column.id]),children:[a&&(0,l.jsx)(eO.default,{src:n?.newsweek_logo,alt:"",width:16,height:16}),ez(e.column.columnDef.cell,e.getContext())]},e.id)})}),!o&&(0,l.jsx)(e1,{row:e,mappedData:t.articleTable.mappedData})]})}{let t=o&&(!0===e.original._hasImage||!!e.original._profileUrl?.trim());return(0,l.jsx)("tr",{role:"row",tabIndex:-1,className:(0,C.default)({[e2.default.sponsoredRow]:t}),children:e.getVisibleCells().map(e=>(0,l.jsx)("td",{style:e.column.columnDef.meta?.width||{},children:ez(e.column.columnDef.cell,e.getContext())},e.id))},e.id)}};var e5=e.i(810483),e3=e.i(495490);let e7=({width:e=16,height:t=16,...n})=>(0,l.jsxs)("svg",{...n,width:e,height:t,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,l.jsx)("g",{"clip-path":"url(#clip0_20917_22912)",children:(0,l.jsx)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M3.33301 0H9.16634V5.04115C7.4369 5.21286 5.863 5.9133 4.60858 6.97854L3.33301 5.27777V0ZM15.3908 6.97854C14.1363 5.9133 12.5624 5.21286 10.833 5.04115V0H16.6663V5.27777L15.3908 6.97854ZM9.99967 20C6.31777 20 3.33301 17.0152 3.33301 13.3333C3.33301 9.65142 6.31777 6.66667 9.99967 6.66667C13.6816 6.66667 16.6663 9.65142 16.6663 13.3333C16.6663 17.0152 13.6816 20 9.99967 20ZM11.1324 11.9572L10 10.0158L8.86759 11.9572L6.79004 12.5964L8.18171 13.9881L7.70612 16.3661L10 15.3312L12.2938 16.3661L11.8183 13.9881L13.2099 12.5964L11.1324 11.9572Z",fill:"#9D670B"})}),(0,l.jsx)("defs",{children:(0,l.jsx)("clipPath",{id:"clip0_20917_22912",children:(0,l.jsx)("rect",{width:"20",height:"20",fill:"white"})})})]});e.s(["default",0,e7],847658);var e9=e.i(983839);let e6="M10.7772 4.77255L7.99917 0.0101318L5.22107 4.77255L0.078125 6.355L3.6088 9.88564L2.42441 15.8076L7.99917 13.2926L13.5739 15.8076L12.3895 9.88564L15.9202 6.355L10.7772 4.77255Z",e8=({filled:e=!0,half:t=!1,className:n,filledClassName:o,emptyClassName:a,halfClassName:i})=>t?(0,l.jsxs)("svg",{className:`${n} ${i}`,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",children:[(0,l.jsx)("path",{className:a,fillRule:"evenodd",clipRule:"evenodd",d:e6}),(0,l.jsx)("path",{className:o,fillRule:"evenodd",clipRule:"evenodd",d:e6})]}):(0,l.jsx)("svg",{className:`${n} ${e?o:a}`,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",children:(0,l.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:e6})});e.s(["default",0,e8],577588);var te=e.i(656488),tt=e.i(40140);let tl=e=>e.trim().replace(/\s+/g,"_");e.s(["sanitizeGTMText",0,tl],91688);var tn=e.i(770815);let to=({disclaimer:e,ranking:t,rowsPerPage:n,isV2:a=!1})=>{let i=a?e2.default:eq.default,s=a?"#1f1e19":"white",[r,d]=(0,o.useState)(""),{GTMEventTracker:u}=(0,tt.useGTMEventTracker)(),[c,m]=(0,te.default)(e=>{E.setGlobalFilter(e),u({eventCategory:"NWUS-RANKING",eventAction:"Ranking_Table_Search",eventLabel:e.toString()})},250),g=(0,o.useRef)(null),f=(0,o.useRef)(null),p=(0,o.useRef)(null),_=(0,o.useMemo)(()=>!!t.tableType,[t.tableType]),h=(0,o.useCallback)(e=>{let t=e.split("").length;return e.includes("½")&&(t-=.5),t},[]);if(!t||!t.articleTable||!t.articleTable.columns||!t.articleTable.rows)return null;let{columns:b,rows:w}=t.articleTable,v=/^(accolade|newsweek.*logo|badge|ribbon|proms|survey|seal|award|certification|hp.?ribbon)s?$/i,x=/^(.*logo|.*image|photo|picture)$/i,k=(a?b.filter(e=>"renderImage"===e.type):[]).find(e=>{let t=e.name?.trim()||"";return!v.test(t)&&x.test(t)}),y=k?.id||null,S=b.find(e=>/^profile$/i.test(e.name?.trim()||"")),R=b.find(e=>/^(profile\s*url|url)$/i.test(e.name?.trim()||"")),j=S?.id||null,N=R?.id||null,T=t.articleTable.mappedData,L=a&&!j&&T?.some(e=>e.profile_url?.trim()),I=(()=>{if(!a||!y)return null;let e=/^(name|title|company.*name|organization|institution|hospital|facility|school|university|entity|employer|company|provider)$/i,t=b.find(t=>t.id!==y&&e.test(t.name?.trim()||""));if(t)return t.id;let l=b.findIndex(e=>e.id===y);return l>=0&&l+1{if(!a)return new Set;let e=new Set;return b.forEach((t,l)=>{for(let n of w){let o=n[l];if("string"==typeof o&&o.replace(/<[^>]*>/g,"").replace(/\|\|/g," ").trim().split(/\s+/).length>30){e.add(t.id);break}}}),e},[a,b,w]),V=e=>{if(e.includes("||")){let[t,l]=e.split("||");return{href:t.startsWith("http")?t:`https://${t}`,displayText:l}}return e.startsWith("http://")||e.startsWith("https://")?{href:e,displayText:e.replace(/^https?:\/\//,"")}:(e.startsWith("www.")||e.includes(".")&&!e.includes(" "),{href:`https://${e}`,displayText:e})},P=(0,o.useMemo)(()=>new Set(b.filter(e=>e.hrefColumn).map(e=>e.hrefColumn)),[b]),F=(0,o.useMemo)(()=>{let e=S?.type==="renderLink",t=a&&j&&(N||e)||L,n=b.filter(e=>!P.has(e.id)&&(!a||!y||e.id!==y)&&(!t||e.id!==j)&&(!t||!N||e.id!==N)).map((e,t)=>({accessorKey:e.id,header:e.name,enableSorting:!0,meta:{colType:e.type,width:a&&M.has(e.id)?{minWidth:"550px",width:"550px"}:a&&"renderImage"===e.type&&/proms?/i.test(e.name?.trim()||"")?{minWidth:"120px",width:"auto",textAlign:"left"}:{minWidth:"120px",width:"auto"}},cell:t=>{let n=t.getValue(),o=n;if(a&&"string"==typeof n&&(n.includes("★")||n.includes("½"))){let e=h(n),t=Math.floor(e),a=e%1>=.25&&e%1<.75,s=e%1>=.75,r=[];for(let e=0;e<5;e++)e(0,l.jsx)(e7,{width:20,height:20},t))})}else o=a&&e&&/tickmark|checkmark/i.test(e)?(0,l.jsx)(e3.default,{width:20,height:20}):e?(0,l.jsx)("img",{src:e,alt:"Table content",className:i.tableImage}):""}if(e.hrefColumn&&"renderLink"!==e.type){let n=t.row.original[e.hrefColumn];if(n?.trim()){let{href:t}=V(n.trim());o=(0,l.jsx)("a",{href:t,target:"_blank",rel:"noopener noreferrer",className:i.tableLink,"data-gtm-action":`Ranking_Table_Content_${tl(e.name)}`,children:o})}}if(a&&y&&I===e.id){let e=t.row.original[y];if(e?.trim())return(0,l.jsxs)("div",{className:i.cellWithImage,children:[(0,l.jsx)("img",{src:e,alt:"",className:i.cellImage}),(0,l.jsx)("span",{className:i.sponsoredName,children:o})]})}return o},sortingFn:(l,n,o)=>{let i=l.getValue(o),s=n.getValue(o),r="renderLink"===e.type&&"string"==typeof i&&"string"==typeof s&&(isNaN(parseFloat(i))||isNaN(parseFloat(s))),d=!isNaN(parseFloat(i))&&!isNaN(parseFloat(s)),u=(i.includes("★")||i.includes("½"))&&(s.includes("★")||s.includes("½")),c=0;if(r)try{let e=i.includes("||")?i.split("||")[1]:i,t=s.includes("||")?s.split("||")[1]:s;c=e.localeCompare(t)}catch(e){console.warn(e),c=String(i).localeCompare(String(s))}else c=d?parseFloat(i)-parseFloat(s):u?h(i)-h(s):String(i).localeCompare(String(s));return a&&0===t&&/^(rank|#|position|no\.?|number|state\s*rank|national\s*rank)$/i.test(e.name?.trim()||"")?-c:c}}));return t&&n.push({accessorKey:"_profileAction",header:"",enableSorting:!1,meta:{colType:"profileAction",width:{minWidth:"160px",width:"160px"}},cell:t=>{let n=t.row.original,o="",a="";if(N)o=(j?n[j]:"")?.trim()||"",a=n[N]?.trim()||"";else if(e&&j){let e=n[j]||"";if(e.includes("||")){let[t]=e.split("||");if(t?.trim()){let t=V(e);o=t.displayText||"",a=t.href||""}}}if(a||(o=n._profile?.trim()||"",a=n._profileUrl?.trim()||""),!a)return null;let s=!o||o.toLowerCase().includes("claim");return(0,l.jsx)("a",{href:a,target:"_blank",rel:"noopener noreferrer",className:s?i.claimProfileButton:i.viewProfileButton,children:o||"View Profile"})},sortingFn:()=>0}),n},[b,a,y,I,j,N,S,P,L]),E=function(e){let t={state:{},onStateChange:()=>{},renderFallbackValue:null,...e},[l]=o.useState(()=>({current:function(e){var t,l;let n=[...eB,...null!=(t=e._features)?t:[]],o={_features:n},a=o._features.reduce((e,t)=>Object.assign(e,null==t.getDefaultOptions?void 0:t.getDefaultOptions(o)),{}),i={...null!=(l=e.initialState)?l:{}};o._features.forEach(e=>{var t;i=null!=(t=null==e.getInitialState?void 0:e.getInitialState(i))?t:i});let s=[],r=!1,d={_features:n,options:{...a,...e},initialState:i,_queue:e=>{s.push(e),r||(r=!0,Promise.resolve().then(()=>{for(;s.length;)s.shift()();r=!1}).catch(e=>setTimeout(()=>{throw e})))},reset:()=>{o.setState(o.initialState)},setOptions:e=>{var t;t=en(e,o.options),o.options=o.options.mergeOptions?o.options.mergeOptions(a,t):{...a,...t}},getState:()=>o.options.state,setState:e=>{null==o.options.onStateChange||o.options.onStateChange(e)},_getRowId:(e,t,l)=>{var n;return null!=(n=null==o.options.getRowId?void 0:o.options.getRowId(e,t,l))?n:`${l?[l.id,t].join("."):t}`},getCoreRowModel:()=>(o._getCoreRowModel||(o._getCoreRowModel=o.options.getCoreRowModel(o)),o._getCoreRowModel()),getRowModel:()=>o.getPaginationRowModel(),getRow:(e,t)=>{let l=(t?o.getPrePaginationRowModel():o.getRowModel()).rowsById[e];if(!l&&!(l=o.getCoreRowModel().rowsById[e]))throw Error();return l},_getDefaultColumnDef:ei(()=>[o.options.defaultColumn],e=>{var t;return e=null!=(t=e)?t:{},{header:e=>{let t=e.header.column.columnDef;return t.accessorKey?t.accessorKey:t.accessorFn?t.id:null},cell:e=>{var t,l;return null!=(t=null==(l=e.renderValue())||null==l.toString?void 0:l.toString())?t:null},...o._features.reduce((e,t)=>Object.assign(e,null==t.getDefaultColumnDef?void 0:t.getDefaultColumnDef()),{}),...e}},es(e,"debugColumns","_getDefaultColumnDef")),_getColumnDefs:()=>o.options.columns,getAllColumns:ei(()=>[o._getColumnDefs()],e=>{let t=function(e,l,n){return void 0===n&&(n=0),e.map(e=>{let a=function(e,t,l,n){var o,a;let i,s={...e._getDefaultColumnDef(),...t},r=s.accessorKey,d=null!=(o=null!=(a=s.id)?a:r?"function"==typeof String.prototype.replaceAll?r.replaceAll(".","_"):r.replace(/\./g,"_"):void 0)?o:"string"==typeof s.header?s.header:void 0;if(s.accessorFn?i=s.accessorFn:r&&(i=r.includes(".")?e=>{let t=e;for(let e of r.split(".")){var l;t=null==(l=t)?void 0:l[e]}return t}:e=>e[s.accessorKey]),!d)throw Error();let u={id:`${String(d)}`,accessorFn:i,parent:n,depth:l,columnDef:s,columns:[],getFlatColumns:ei(()=>[!0],()=>{var e;return[u,...null==(e=u.columns)?void 0:e.flatMap(e=>e.getFlatColumns())]},es(e.options,"debugColumns","column.getFlatColumns")),getLeafColumns:ei(()=>[e._getOrderColumnsFn()],e=>{var t;return null!=(t=u.columns)&&t.length?e(u.columns.flatMap(e=>e.getLeafColumns())):[u]},es(e.options,"debugColumns","column.getLeafColumns"))};for(let t of e._features)null==t.createColumn||t.createColumn(u,e);return u}(o,e,n,l);return a.columns=e.columns?t(e.columns,a,n+1):[],a})};return t(e)},es(e,"debugColumns","getAllColumns")),getAllFlatColumns:ei(()=>[o.getAllColumns()],e=>e.flatMap(e=>e.getFlatColumns()),es(e,"debugColumns","getAllFlatColumns")),_getAllFlatColumnsById:ei(()=>[o.getAllFlatColumns()],e=>e.reduce((e,t)=>(e[t.id]=t,e),{}),es(e,"debugColumns","getAllFlatColumnsById")),getAllLeafColumns:ei(()=>[o.getAllColumns(),o._getOrderColumnsFn()],(e,t)=>t(e.flatMap(e=>e.getLeafColumns())),es(e,"debugColumns","getAllLeafColumns")),getColumn:e=>o._getAllFlatColumnsById()[e]};Object.assign(o,d);for(let e=0;el.current.initialState);return l.current.setOptions(t=>({...t,...e,state:{...n,...e.state},onStateChange:t=>{a(t),null==e.onStateChange||e.onStateChange(t)}})),l.current}({data:(0,o.useMemo)(()=>{try{return w.filter(e=>e.some(e=>{if(null==e)return!1;let t=String(e).trim();return""!==t&&"||"!==t})).map((e,t)=>{let l=b.reduce((t,l,n)=>(t[l.id]=e[n],t),{});a&&y&&(l._hasImage=!!l[y]?.trim());let n=w.indexOf(e),o=T?.[n>=0?n:t];if(o&&(l._profileUrl=o.profile_url||"",l._profile=o.profile||""),a&&!l._profileUrl?.trim()){if(N)l._profileUrl=l[N]?.trim()||"";else if(S?.type==="renderLink"&&j){let[e]=(l[j]||"").split("||");l._profileUrl=e?.trim()||""}}return l})}catch(e){return[]}},[w,b,a,y,T,S,j,N]),columns:F,getCoreRowModel:e=>ei(()=>[e.options.data],t=>{let l={rows:[],flatRows:[],rowsById:{}},n=function(t,o,a){void 0===o&&(o=0);let i=[];for(let r=0;re._autoResetPageIndex())),getPaginationRowModel:e=>ei(()=>[e.getState().pagination,e.getPrePaginationRowModel(),e.options.paginateExpandedRows?void 0:e.getState().expanded],(t,l)=>{let n;if(!l.rows.length)return l;let{pageSize:o,pageIndex:a}=t,{rows:i,flatRows:s,rowsById:r}=l,d=o*a;if(i=i.slice(d,d+o),e.options.paginateExpandedRows)n={rows:i,flatRows:s,rowsById:r};else{var u;let e,t;u={rows:i,flatRows:s,rowsById:r},e=[],t=l=>{var n;e.push(l),null!=(n=l.subRows)&&n.length&&l.getIsExpanded()&&l.subRows.forEach(t)},u.rows.forEach(t),n={rows:e,flatRows:u.flatRows,rowsById:u.rowsById}}n.flatRows=[];let c=e=>{n.flatRows.push(e),e.subRows.length&&e.subRows.forEach(c)};return n.rows.forEach(c),n},es(e.options,"debugTable","getPaginationRowModel")),getSortedRowModel:e=>ei(()=>[e.getState().sorting,e.getPreSortedRowModel()],(t,l)=>{if(!l.rows.length||!(null!=t&&t.length))return l;let n=e.getState().sorting,o=[],a=n.filter(t=>{var l;return null==(l=e.getColumn(t.id))?void 0:l.getCanSort()}),i={};a.forEach(t=>{let l=e.getColumn(t.id);l&&(i[t.id]={sortUndefined:l.columnDef.sortUndefined,invertSorting:l.columnDef.invertSorting,sortingFn:l.getSortingFn()})});let s=e=>{let t=e.map(e=>({...e}));return t.sort((e,t)=>{for(let n=0;n{var t;o.push(e),null!=(t=e.subRows)&&t.length&&(e.subRows=s(e.subRows))}),t};return{rows:s(l.rows),flatRows:o,rowsById:l.rowsById}},es(e.options,"debugTable","getSortedRowModel",()=>e._autoResetPageIndex())),getFilteredRowModel:e=>ei(()=>[e.getPreFilteredRowModel(),e.getState().columnFilters,e.getState().globalFilter],(t,l,n)=>{var o,a,i,s,r,d,u,c,m,g;let f,p,_,h,b,w,v,x,C,k;if(!t.rows.length||!(null!=l&&l.length)&&!n){for(let e=0;e{var l;let n=e.getColumn(t.id);if(!n)return;let o=n.getFilterFn();o&&y.push({id:t.id,filterFn:o,resolvedValue:null!=(l=null==o.resolveFilterValue?void 0:o.resolveFilterValue(t.value))?l:t.value})});let R=(null!=l?l:[]).map(e=>e.id),j=e.getGlobalFilterFn(),N=e.getAllLeafColumns().filter(e=>e.getCanGlobalFilter());n&&j&&N.length&&(R.push("__global__"),N.forEach(e=>{var t;S.push({id:e.id,filterFn:j,resolvedValue:null!=(t=null==j.resolveFilterValue?void 0:j.resolveFilterValue(n))?t:n})}));for(let e=0;e{l.columnFiltersMeta[t]=e})}if(S.length){for(let e=0;e{l.columnFiltersMeta[t]=e})){l.columnFilters.__global__=!0;break}}!0!==l.columnFilters.__global__&&(l.columnFilters.__global__=!1)}}return o=t.rows,a=e=>{for(let t=0;te._autoResetPageIndex())),initialState:{pagination:{pageIndex:0,pageSize:n}}});(0,o.useEffect)(()=>()=>{m()},[m]),(0,o.useEffect)(()=>{if(!a)return;let e=f.current,t=g.current,l=p.current;if(!e||!t||!l)return;let n=t.querySelector("table");if(!n)return;let o=parseInt(getComputedStyle(document.documentElement).getPropertyValue("--navbar-height"))||56,i=l.querySelector("table"),s=!1,r=()=>{s&&(s=!1,l.style.display="none",e.style.opacity="")},d=()=>{let a=n.getBoundingClientRect(),d=e.offsetHeight||48;if(a.topo+2*d){(()=>{if(s)return;s=!0,(()=>{if(!i)return;let t=e.querySelectorAll("th"),l=i.querySelectorAll("th");i.style.width=`${n.getBoundingClientRect().width}px`,t.forEach((e,t)=>{if(l[t]){let n=`${e.getBoundingClientRect().width}px`;l[t].style.width=n,l[t].style.minWidth=n}})})();let a=t.getBoundingClientRect();l.style.top=`${o}px`,l.style.left=`${a.left}px`,l.style.width=`${a.width}px`,l.style.display="block",i&&(i.style.transform=`translateX(-${t.scrollLeft}px)`),e.style.opacity="0"})();let a=t.getBoundingClientRect();l.style.left=`${a.left}px`,l.style.width=`${a.width}px`}else r()},u=()=>{s&&i&&(i.style.transform=`translateX(-${t.scrollLeft}px)`)};return window.addEventListener("scroll",d,{passive:!0}),t.addEventListener("scroll",u,{passive:!0}),()=>{window.removeEventListener("scroll",d),t.removeEventListener("scroll",u),r()}},[a]);let A=()=>{let e=g.current;if(!e)return;window.innerWidth<=768&&(e.scrollTop||e.scrollLeft)&&(e.scrollTop=0,e.scrollLeft=0);let t=e.getBoundingClientRect().top+window.scrollY-40;window.scrollTo({top:t,behavior:"smooth"})},G=null!==t.parent||t?.children!==null,H=b[0]?.name||"Rank",D=E.getState().sorting[0],W=D&&b.find(e=>e.id===D.id)?.name||H,B=D?`${W} ${D.desc?"High to Low":"Low to High"}`:`${H} High to Low`;return(0,l.jsxs)("div",{className:i.rankingTableContainer,children:[(0,l.jsxs)("div",{className:i.filterTableContainer,children:[(0,l.jsxs)(l.Fragment,{children:[!a&&G&&(0,l.jsx)("div",{className:i.dropdownContainer,children:(0,l.jsx)(tn.default,{ranking:t,onSelect:e=>{u({eventCategory:"NWUS-RANKING",eventAction:"Ranking_Table_Dropdown",eventLabel:`${e.title} / ${e.uri}`})},isV2:a})}),(0,l.jsxs)("div",{className:i.searchContainer,children:[(0,l.jsx)(e9.default,{className:i.searchIcon}),(0,l.jsx)("input",{type:"text","aria-label":"Search",className:i.searchInput,placeholder:"Search...",value:r,onChange:e=>{let t=e.target.value;d(t),c(t)}})]})]}),a&&(0,l.jsxs)("button",{className:i.sortButton,onClick:()=>{let e=E.getAllColumns()[0];if(e){let t=D?.desc??!0;e.toggleSorting(!t)}},"aria-label":`Sort by ${B}`,children:[(0,l.jsx)("span",{className:i.sortLabel,children:"Sort by:"}),(0,l.jsx)("span",{className:i.sortValue,children:B}),(0,l.jsx)(e5.default,{color:s,rotate:180*!D?.desc})]})]}),a&&(0,l.jsx)("div",{ref:p,className:i.fixedHeaderContainer,children:(0,l.jsx)("table",{className:(0,C.default)(i.rankingTable,i[t.tableType]??""),style:{borderCollapse:"separate",borderSpacing:0,tableLayout:"fixed",margin:0},children:(0,l.jsx)("thead",{className:i.stickyHeader,children:E.getHeaderGroups().map(e=>(0,l.jsx)("tr",{role:"row",children:e.headers.map(e=>(0,l.jsx)("th",{scope:"col",style:e.column.columnDef.meta?.width||{},"aria-sort":"asc"===e.column.getIsSorted()?"ascending":"desc"===e.column.getIsSorted()?"descending":"none",role:e.column.getCanSort()?"button":void 0,tabIndex:e.column.getCanSort()?0:void 0,onClick:e.column.getCanSort()?e.column.getToggleSortingHandler():void 0,onKeyDown:t=>{e.column.getCanSort()&&("Enter"===t.key||" "===t.key)&&(t.preventDefault(),e.column.toggleSorting())},className:(0,C.default)(i.tableHeader,{[i.sortable]:e.column.getCanSort()}),children:(0,l.jsxs)("div",{className:i.headerContent,children:[(0,l.jsx)("span",{className:i.headerTitle,children:ez(e.column.columnDef.header,e.getContext())}),"asc"===e.column.getIsSorted()?(0,l.jsx)("div",{className:"arrow-icon",children:(0,l.jsx)(e5.default,{color:s,rotate:180,"aria-hidden":"true"})}):"desc"===e.column.getIsSorted()?(0,l.jsx)("div",{className:"arrow-icon",children:(0,l.jsx)(e5.default,{color:s,"aria-hidden":"true"})}):e.column.getCanSort()?(0,l.jsx)("div",{className:i.caretPlaceholder}):null]})},e.id))},e.id))})})}),(0,l.jsx)("div",{className:(0,C.default)(i.tableWrapper),ref:g,children:(0,l.jsxs)("table",{className:(0,C.default)(i.rankingTable,i[t.tableType]??""),"aria-label":"Ranking table",children:[(0,l.jsx)("thead",{className:i.stickyHeader,ref:f,children:E.getHeaderGroups().map(e=>(0,l.jsx)("tr",{role:"row",children:e.headers.map(e=>(0,l.jsx)("th",{scope:"col",style:e.column.columnDef.meta?.width||{},"aria-sort":"asc"===e.column.getIsSorted()?"ascending":"desc"===e.column.getIsSorted()?"descending":"none",role:e.column.getCanSort()?"button":void 0,tabIndex:e.column.getCanSort()?0:void 0,onClick:e.column.getCanSort()?e.column.getToggleSortingHandler():void 0,onKeyDown:t=>{e.column.getCanSort()&&("Enter"===t.key||" "===t.key)&&(t.preventDefault(),e.column.toggleSorting())},className:(0,C.default)(i.tableHeader,{[i.sortable]:e.column.getCanSort()}),children:(0,l.jsxs)("div",{className:i.headerContent,children:[(0,l.jsx)("span",{className:i.headerTitle,children:ez(e.column.columnDef.header,e.getContext())}),"asc"===e.column.getIsSorted()?(0,l.jsx)("div",{className:"arrow-icon",children:(0,l.jsx)(e5.default,{color:s,rotate:180,"aria-hidden":"true"})}):"desc"===e.column.getIsSorted()?(0,l.jsx)("div",{className:"arrow-icon",children:(0,l.jsx)(e5.default,{color:s,"aria-hidden":"true"})}):e.column.getCanSort()?(0,l.jsx)("div",{className:i.caretPlaceholder}):null]})},e.id))},e.id))}),(0,l.jsx)("tbody",{children:E.getRowModel().rows.length>0?E.getRowModel().rows.map(e=>(0,l.jsx)(e4,{isCustomRankingTable:_,ranking:t,row:e,isV2:a},e.id)):(0,l.jsx)("tr",{children:(0,l.jsx)("td",{colSpan:F.length,className:i.noResults,children:(0,l.jsxs)("div",{className:i.noResultsContent,children:[(0,l.jsx)(e9.default,{className:i.icon,height:40,width:40}),(0,l.jsxs)("h3",{className:i.header,children:["No results found for “",r,"”"]}),(0,l.jsx)("p",{className:i.subHeader,children:"We couldn’t find any items that match your search criteria. Please try adjusting your search or clearing them to see more results."}),(0,l.jsx)("button",{className:i.clearSearchButton,onClick:()=>{d(""),E.setGlobalFilter("")},children:"Reset search"})]})})})})]})}),e&&e.length>0&&(0,l.jsx)("div",{className:i.disclaimerContainer,children:(0,l.jsx)(tT,{blocks:e})}),E.getPageCount()>1&&(0,l.jsx)(e$.default,{pageIndex:E.getState().pagination.pageIndex,pageCount:E.getPageCount(),canPreviousPage:E.getCanPreviousPage(),canNextPage:E.getCanNextPage(),previousPage:()=>{E.getCanPreviousPage()&&(E.previousPage(),u({eventCategory:"NWUS-RANKING",eventAction:"Ranking_Table_Pagination_Previous_Page",eventLabel:E.getState().pagination.pageIndex.toString()}),setTimeout(()=>A(),0))},nextPage:()=>{E.getCanNextPage()&&(E.nextPage(),u({eventCategory:"NWUS-RANKING",eventAction:"Ranking_Table_Pagination_Next_Page",eventLabel:(E.getState().pagination.pageIndex+2).toString()}),setTimeout(()=>A(),0))},gotoPage:e=>{E.setPageIndex(e),u({eventCategory:"NWUS-RANKING",eventAction:"Ranking_Table_Pagination_Goto_Page",eventLabel:(e+1).toString()}),setTimeout(()=>A(),0)},isV2:a})]})},ta={"company website":"renderLink","company logo":"renderImage"},ti={"company name":"company website"},ts=e=>{var t;return e.articleTable?{...e,articleTable:{...e.articleTable,columns:(t=e.articleTable.columns).map(e=>{let l=e.name?.toLowerCase().trim()||"",n={...e};ta[l]&&(n.type=ta[l]);let o=ti[l];if(o){let e=t.find(e=>e.name?.toLowerCase().trim()===o);e&&(n.hrefColumn=e.id)}return n}),mappedData:[]}}:e};e.s(["default",0,ts],98612);var tr=((t={}).COMPANY="company",t.DOCTOR="doctor",t.FINANCIAL_ADVISOR="financial_advisor",t.BANKANIMALHOSPITAL="bankanimalhospital",t.DOCTORS_LISTING="doctors_listing",t.CEO="ceo",t);let td=["advisor_name","advisor_image","advisor_title","advisor_phone","advisor_email","services_offered"],tu={company_linkedin_profile:"linkedin",company_twitter_profile:"twitter"},tc=e=>{let t=0;for(let l in e)if(l.startsWith("advisor_name")){let e=parseInt(l.replace("advisor_name",""),10);e>t&&(t=e)}return t},tm={ranking_company_profile_v2:function(e){var t;let l,n;return{type:tr.COMPANY,companyName:e.company_name||"",companyAddress:e.headquarter_address||"",companyLogo:e.logo_image_link||"",companyWebsite:e.website||"",linkedinProfileLink:e.company_linkedin_profile||"",careersLink:e.careers_page||"",diversityInclusionLink:e.diversity_inclusion_page||"",description:e.description||"",badgeImages:e.badge_image_link?.split(",")||[],badgesHrefLinks:e.badge_click_link?.split(",")||[],backToListLink:e.back_to_list_link||"",careerQuestions:e.career_questions?.split(",")||[],additionalListTitle:e.additional_list_title||"",additionalListings:(t=e,l=t.additional_list_names?.split(";")||[],n=t.additional_list_links?.split(";")||[],l.map((e,t)=>({name:e,link:n[t]||"#"}))),slug:e.slug||"",title:e.title||"",parent:e.parent}},ranking_doctor_profile_v2:function(e){return{type:tr.DOCTOR,name:e.name||"",image:e.image_id||"",address:e.address||"",phone:e.phone_number||"",website:e.website_profile||"",email:e.email||"",hospitalAffiliations:e.hospital_affiliations||"",hospitalAffiliationsLink:e.hospital_affiliations_link||"",experience:e.experience||"",highPerformanceTreatmentsName:e.high_performance_treatments_name||"",hpRibbons:e.hp_ribbons||"",hpPeersChoice:e.hp_peers_choice||"",hours:{mon:e.mon||"",tue:e.tue||"",wed:e.wed||"",thur:e.thur||"",fri:e.fri||"",sat:e.sat||"",sun:e.sun||""},acceptedInsurance:e.accepted_insurance||"",appointment:e.zocdoc||"",backToList:e.back_to_list||"",badgeImage:e.badge_image||"",badgeImageLink:e.badge_image_link||"",description:e.description||"",specialties:e.specialties||"",conditionsTreated:e.conditions_treated||"",educationTraining:e.education_traning||"",languages:e.languages||"",boardCertification:e.board_certification||"",insurancePlans:e.insurance_plans||"",zocdoc:e.zocdoc||"",slug:e.slug||"",title:e.title||"",parent:e.parent||""}},ranking_company_profile_financial_advisors_v2:e=>{let t=[];for(let l=1;l<=tc(e);l++){let n={};td.forEach(t=>{n[t]=e[`${t}${l}`]}),""!==n.advisor_name&&t.push(n)}let l=Object.entries(tu).reduce((t,[l,n])=>(e[l]&&t.push({social:n,link:e[l]}),t),[]);return{type:tr.FINANCIAL_ADVISOR,company_name:e?.company_name||"",headquarter_address_map:e?.headquarter_address_map||"",phone:e?.phone||"",email:e?.email||"",company_website:e?.company_website||"",description_title:e?.description_title||"",description_summary:e?.description_summary||"",back_to_list_link:e?.back_to_list_link||"",logo_image_link:e?.logo_image_link||"",badge_image_link:e?.badge_image_link||"",badge_click_link:e?.badge_click_link||"",advisors:t,socialLinks:l,title:e.title,slug:e.slug,parent:e.parent}},ranking_company_profile_v1:function(e){var t;let l,n;return{type:tr.BANKANIMALHOSPITAL,name:e.company_name||"",address:e.headquarter_address||"",logo:e.logo_image_link||"",website:e.website||"",linkedinProfileLink:e.company_linkedin_profile||"",careersLink:e.careers_page||"",diversityInclusionLink:e.diversity_inclusion_page||"",description:e.description||"",badgeImageHref:e.badge_click_link||"",badgeImage:e.badge_image_link||"",backToListLink:e.back_to_List_link||"",additionalListTitle:e.additional_list_title||"",additionalListings:(t=e,l=t.additional_list_names?.split(";")||[],n=t.additional_list_links?.split(";")||[],l.map((e,t)=>({name:e,link:n[t]||"#"}))),getInTouch:e.get_in_touch||"",openingHours:{mon:e.mon||"",tue:e.tue||"",wed:e.wed||"",thur:e.thur||"",fri:e.fri||"",sat:e.sat||"",sun:e.sun||""}}},ranking_ceo_profile_v1:function(e){return{type:tr.CEO,headerImage:e.header_image||"",headerAltText:e.header_alt_text||"",name:e.name||"",profileImage:e.profile_image||"",linkedInProfile:e.linkedinprofile||"",companyWebsite:e.company_website||"",hospital:e.hospital||"",jobTitle:e.job_title||"",companyAddress:e.address||"",description:e.description||"",education:e.education||"",awardsAndCertifications:e.awards_and_certifications||"",philanthropicEndeavors:e.philanthropic_endeavors||"",causesSupport:e.causes_support||"",nameRankingTenure:e.name_rankings_tenure||"",linkRankingTenure:e.links_rankings_tenure||"",nameRankingAppearance:e.name_rankings_appearances||"",linkRankingAppearance:e.links_rankings_appearances||"",badgeImages:e.badge_image||"",badgeImagesLink:e.badge_image_link||"",backToList:e.back_to_list||"",slug:e.slug||"",title:e.title||"",postId:e.postId||0,parent:e.parent}}};e.s(["customLayoutMapper",0,tm],532362);var tg=e.i(76353);let tf=e=>{if(!e?.articleTable?.rows||!e?.articleTable?.columns)return{mappedData:[]};let t=(({fields:e,data:t})=>t.map(t=>e.reduce((e,l,n)=>(e[l.id]=t[n],e),{})))({fields:e.articleTable.columns,data:e.articleTable.rows});return{type:tr.DOCTORS_LISTING,mappedData:t,component:tg.default,version:e.articleTable.customLayout}},tp={"rankings-doctors-listing-v1":tf,ranking_doctor_listing_v2:tf,ranking_doctor_listing_v3:tf,ceo_listing_v1:tf},t_={"ranking-company-listing-v1":e0,"ranking-company-listing-v3":e0,"rankings-company-profile-layout":ts};function th(e){let t=t=>e.attributes?.find(e=>e?.name===t)?.value;return{showHeader:"true"===t("showHeader"),headerText:t("headerText")||""}}function tb({block:e,ranking:t,rowsPerPage:n=50,parentStyles:o,isV2:a=!1}){if(tp[t?.articleTable?.customLayout]){let e=tp[t?.articleTable?.customLayout](t),n=e.component;return(0,l.jsx)(l.Fragment,{children:(0,l.jsx)("div",{className:eq.default.rankingTableWrapper,id:"ranking-table-ref",children:(0,l.jsx)(n,{profileData:e,ranking:t})})})}{if(tm[t?.articleTable?.customLayout])return null;let i=e=>e;return t_[t?.articleTable?.customLayout]&&(i=t_[t?.articleTable?.customLayout]),(0,l.jsx)(l.Fragment,{children:(0,l.jsx)("div",{className:(0,C.default)(eq.default.rankingTableWrapper,o?.defaultRankingTable),id:"ranking-table-ref",children:(0,l.jsx)(to,{ranking:{...i(t),tableType:t?.articleTable?.customLayout},rowsPerPage:n,disclaimer:e.innerBlocks,isV2:a})})})}}var tw=e.i(792101),tv=e.i(742952),tx=e.i(999487),tC=e.i(846995);let tk=(0,n.default)(()=>e.A(409657),{loadableGenerated:{modules:[633633]}}),ty=(0,n.default)(()=>e.A(773588),{loadableGenerated:{modules:[801912]}}),tS=(0,n.default)(()=>e.A(823461),{loadableGenerated:{modules:[852750]}}),tR={"core/classic-editor":function({block:{innerHTML:e}}){return(0,l.jsx)("div",{dangerouslySetInnerHTML:{__html:e}})},"core/heading":function({block:{innerHTML:e,anchorId:t},level:n=2,backgroundColor:o,textColor:a,parentStyles:i,textAlign:s=""}){let r=`h${n}`,d=e=>e?`var(--${e})`:"inherit",u=d(o),c=d(a);return(0,l.jsx)(r,{id:t,className:(0,C.default)(k.default.blockHeading,i?.headingBlock),style:{backgroundColor:u,color:c,textAlign:s},dangerouslySetInnerHTML:{__html:e||""}})},"core/html":y.default,"core/image":S.default,"core/list":I,"core/paragraph":function({block:{innerHTML:e},parentStyles:t,...n}){if(!e?.trim())return null;let o=Object.fromEntries(Object.entries(n).filter(([e])=>!["placeholder","ranking","slideShowBlock","style","textColor"].includes(e)));return(0,l.jsx)("p",{className:(0,C.default)(M.default.blockParagraph,t?.paragraph),...o,dangerouslySetInnerHTML:{__html:e}})},"core/quote":function({block:e,...t}){if(!e||!e.innerBlocks?.length)return;let n=(e.innerBlocks??[]).filter(Boolean),o=n.filter(e=>"core/pullquote"===e.name),a=n.filter(e=>"core/pullquote"!==e.name),i=F.default.blockQuote;return"is-style-large"===t.className&&(i+=" "+F.default.large),(0,l.jsxs)("div",{className:F.default.quoteGroup,children:[a.length>0?(0,l.jsx)("blockquote",{className:i,children:a.map((e,t)=>e.innerHTML?.trim()?(0,l.jsx)("p",{dangerouslySetInnerHTML:{__html:N(e)}},e.databaseId??`quote-child-${t}`):null)}):null,o.map((e,t)=>(0,l.jsx)(P,{block:{...e,innerHTML:N(e)},innerBlock:e,slideShowBlock:[]},e.databaseId??`pullquote-${t}`))]})},"core/table":tw.default,"xwp/section-block":function({block:e,ranking:t,sectionType:n="",parentStyles:a}){let i=(0,o.useMemo)(()=>Z[n]||A,[n]),s=(0,o.useMemo)(()=>{let t,l;return t=e,l=n,t?.innerBlocks?.length>0&&!["methodology","introduction","summary"].includes(l)},[e,n]),r=(0,o.useMemo)(()=>{let t,l;return t=e,l=n,t?.innerHTML&&!["qa"].includes(l)},[e,n]),d=(0,o.useMemo)(()=>(e=>{if(!e?.innerBlocks?.length)return null;let t=K(e.innerBlocks);return t?e.innerBlocks.filter(e=>!X(e)).map(e=>e?.name==="xwp/ranking-csv-table"?{...e,innerBlocks:t}:e):e.innerBlocks})(e),[e]);return"table"!==n||t?.articleTable?(0,l.jsx)("section",{id:n?`section-${n}`:void 0,className:(0,C.default)(E.default.wpBlock,E.default[`section-${n}`],a?.[n]),children:i&&(0,l.jsxs)(i,{block:e,ranking:t,children:[r&&(0,l.jsx)("div",{className:`section-${n}`,dangerouslySetInnerHTML:{__html:e.innerHTML||""}}),s&&(0,l.jsx)(tT,{blocks:d,ranking:t,parentStyles:a})]})}):null},"xwp/featured-winners":tS,"xwp/ranking-csv-table":tb,"core/separator":a.default,"yoast/faq-block":({block:e})=>{let t=e?.attributes?.find(e=>e?.name==="questions")?.value;if(!t)return null;let n=JSON.parse(t);return(0,l.jsx)("div",{className:Y.default.faqBlock,children:n.filter(e=>e.jsonQuestion&&e.jsonAnswer).map((e,t)=>(0,l.jsxs)("div",{className:Y.default.faqItem,children:[(0,l.jsx)("h3",{className:Y.default.faqQuestion,dangerouslySetInnerHTML:{__html:e.jsonQuestion}}),(0,l.jsx)("p",{className:Y.default.faqAnswer,dangerouslySetInnerHTML:{__html:e.jsonAnswer}}),(0,l.jsx)("hr",{className:Y.default.faqDivider})]},e.id||t))})},"core/audio":function({block:e}){let t,n,o,a,{audioSrc:i,figcaption:s}=(o=(n=(t=e?.innerHTML||e?.innerContent?.[0]||"").match(/src="([^"]+)"/))?n[1]:"",{audioSrc:o,figcaption:(a=t.match(/]*>(.*?)<\/figcaption>/))?a[1]:""});return i?(0,l.jsxs)("figure",{className:`wp-block-audio ${_.default.audioBlock}`,children:[(0,l.jsx)("audio",{controls:!0,src:i}),s&&(0,l.jsx)("figcaption",{className:"wp-element-caption",children:s})]}):null},"core/pullquote":P,"core/buttons":({block:e})=>(0,l.jsx)("div",{className:h.default.buttonsWrapper,role:"group",dangerouslySetInnerHTML:{__html:e.innerBlocks?.[0]?.innerHTML}}),"core/embed":b.default,"jetpack/image-compare":ty,"nw/related-stories":f.default,"jetpack/slideshow":tk,"newsweek/livearticle-entry-block":({block:e})=>{let t=(0,o.useMemo)(()=>{let t=e.attributes?.find(e=>e?.name==="liveArticleEntries");if(!t?.value)return[];try{let e=JSON.parse(t.value);return Array.isArray(e)?e:[]}catch(e){return console.warn("Failed to parse liveArticleEntries from block attributes:",e),[]}},[e.attributes]);return t.length?(0,l.jsx)("div",{className:"live-article-entries",children:t.map((e,n)=>(0,l.jsxs)(o.default.Fragment,{children:[(0,l.jsx)(g,{entry:e,isActive:!0}),n{let n,a=(0,o.useMemo)(()=>v((e.attributes||[]).filter(e=>null!==e)),[e.attributes]),i=a.href||"",s=a.fileName||"",r="false"!==a.showDownloadButton,d=a.textLinkHref||i,u=a.textLinkTarget||"_blank",c=(0,o.useMemo)(()=>{if(s)return s;if(e.innerHTML&&1)try{let t=document.createElement("div");t.innerHTML=e.innerHTML;let l=t.querySelector("a");if(l&&l.textContent?.trim())return l.textContent.trim()}catch(e){console.warn("Error parsing innerHTML for filename:",e)}if(i)try{let e=new URL(i).pathname.split("/");return e[e.length-1]||"Download File"}catch{}return"Download File"},[s,i,e.innerHTML]),m=(0,o.useMemo)(()=>{let e=(e=>{try{let t=new URL(e).pathname;return t.split(".").pop()?.toLowerCase()||""}catch{return""}})(i),t="pdf"===e,l=["jpg","jpeg","png","gif","webp","svg"].includes(e),n=["doc","docx","xls","xlsx","ppt","pptx"].includes(e);return{extension:e,isPDF:t,isImage:l,isDocument:n,fileType:t?"PDF":l?"Image":n?"Document":"File"}},[i]);return i?(0,l.jsxs)("div",{className:`${x.default.fileContainer} ${t||""}`,children:[(0,l.jsxs)("div",{className:x.default.fileContent,children:[(0,l.jsxs)("div",{className:x.default.fileInfo,children:[(0,l.jsx)("div",{className:x.default.fileIcon,children:(n={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true"},m.isPDF?(0,l.jsxs)("svg",{...n,children:[(0,l.jsx)("path",{d:"M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),(0,l.jsx)("polyline",{points:"14,2 14,8 20,8",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),(0,l.jsx)("text",{x:"12",y:"16",textAnchor:"middle",fontSize:"6",fill:"currentColor",fontWeight:"bold",children:"PDF"})]}):m.isImage?(0,l.jsxs)("svg",{...n,children:[(0,l.jsx)("rect",{x:"3",y:"3",width:"18",height:"18",rx:"2",ry:"2",stroke:"currentColor",strokeWidth:"2",fill:"none"}),(0,l.jsx)("circle",{cx:"8.5",cy:"8.5",r:"1.5",fill:"currentColor"}),(0,l.jsx)("polyline",{points:"21,15 16,10 5,21",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]}):m.isDocument?(0,l.jsxs)("svg",{...n,children:[(0,l.jsx)("path",{d:"M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),(0,l.jsx)("polyline",{points:"14,2 14,8 20,8",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),(0,l.jsx)("line",{x1:"16",y1:"13",x2:"8",y2:"13",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"}),(0,l.jsx)("line",{x1:"16",y1:"17",x2:"8",y2:"17",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"})]}):(0,l.jsxs)("svg",{...n,children:[(0,l.jsx)("path",{d:"M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),(0,l.jsx)("polyline",{points:"14,2 14,8 20,8",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]}))}),(0,l.jsx)("div",{className:x.default.fileDetails,children:(0,l.jsxs)("div",{className:x.default.fileNameWrapper,children:[(0,l.jsx)("a",{href:d,target:u,rel:"noopener noreferrer",className:x.default.fileName,"aria-label":`View file: ${c}`,title:`View file: ${c}`,children:c}),m.extension&&(0,l.jsxs)("span",{className:x.default.fileExtension,children:[".",m.extension.toUpperCase()]})]})})]}),(0,l.jsx)("div",{className:x.default.downloadButtonWrapper,children:r&&(0,l.jsx)(w.default,{href:i,variant:"primary",size:"default",className:x.default.downloadButton,title:`Download ${c}`,"aria-label":`Download ${c}`,children:"Download"})})]}),m.isPDF&&(0,l.jsx)("div",{className:x.default.pdfPreview,children:(0,l.jsx)("iframe",{src:`${i}#toolbar=1&navpanes=0&scrollbar=1&view=FitH&zoom=page-fit`,className:x.default.pdfFrame,title:`Preview of ${c}`,loading:"lazy"})})]}):null},"newsweek/embed-safe":tv.default,"newsweek/embed-instagram":ee.default,"newsweek/fairness-poll":J.default,"newsweek/piano-inline-promo-block":el.default,"newsweek/related-content-block":tx.default,"newsweek/piano-inline-regwall-block":et.default,"newsweek/piano-inline-paywall-block":tC.default,"newsweek/ad-slot":Q.default},tj=["xwp/subheadline"];e.i(485227);var tN=e.i(82404);function tT({blocks:e,blockMapOverrides:t={},ranking:n,parentStyles:o,data:a}){let i={...tR,...t};return(0,l.jsx)("article",{className:tN.default.articleBody,children:e.filter(e=>e?.name&&!tj.includes(e.name)).map((e,t)=>{let s=(e.attributes||[]).filter(e=>!!e),r=v(s),d=`block-${t}`,u=i[e.name],c=u?.customParams?.({block:e,data:a??n,attributesProps:r}),m=function(e){if(!e||"string"!=typeof e)return;let t=e.match(/\bid\s*=\s*"([^"]*)"/i),l=t?null:e.match(/\bid\s*=\s*'([^']*)'/i),n=t?.[1]??l?.[1];if(null==n||""===n)return;let o=n.trim();return o.startsWith("#")&&(o=o.slice(1).trim()),""===o?void 0:o}(e.originalInnerHTML),g={...e,attributes:s,innerHTML:N(e),...m?{anchorId:m}:{}},f=[];if("jetpack/slideshow"===e.name&&Array.isArray(a?.imageSlideShowMedia)){let t=e.attributes?.[0]?.value?.split(",")?.map(e=>e.replace(/[[\]\s"]/g,""))||[];f=a.imageSlideShowMedia.filter(e=>t.includes(String(e?.databaseId)))}return u?(0,l.jsx)(u,{block:g,...r,ranking:n,parentStyles:o,...c,slideShowBlock:f,blockIndex:t,articleTitle:a?.title},d):null})})}},97942,e=>{e.v({activePage:"Pagination-module-scss-module__phWTaW__activePage",ellipsis:"Pagination-module-scss-module__phWTaW__ellipsis",nextPrevButton:"Pagination-module-scss-module__phWTaW__nextPrevButton",pageButton:"Pagination-module-scss-module__phWTaW__pageButton",pageInfo:"Pagination-module-scss-module__phWTaW__pageInfo",pageNumbers:"Pagination-module-scss-module__phWTaW__pageNumbers",paginationButton:"Pagination-module-scss-module__phWTaW__paginationButton",paginationContainer:"Pagination-module-scss-module__phWTaW__paginationContainer",paginationControls:"Pagination-module-scss-module__phWTaW__paginationControls"})},571349,e=>{e.v({caretPlaceholder:"RankingCSVTable-module-scss-module__AZ27rW__caretPlaceholder",cell:"RankingCSVTable-module-scss-module__AZ27rW__cell",clearSearchButton:"RankingCSVTable-module-scss-module__AZ27rW__clearSearchButton",company_name:"RankingCSVTable-module-scss-module__AZ27rW__company_name",customData:"RankingCSVTable-module-scss-module__AZ27rW__customData",disclaimerContainer:"RankingCSVTable-module-scss-module__AZ27rW__disclaimerContainer",dropdownContainer:"RankingCSVTable-module-scss-module__AZ27rW__dropdownContainer",filterTableContainer:"RankingCSVTable-module-scss-module__AZ27rW__filterTableContainer",header:"RankingCSVTable-module-scss-module__AZ27rW__header",headerContent:"RankingCSVTable-module-scss-module__AZ27rW__headerContent",highlighted:"RankingCSVTable-module-scss-module__AZ27rW__highlighted",icon:"RankingCSVTable-module-scss-module__AZ27rW__icon",info:"RankingCSVTable-module-scss-module__AZ27rW__info",noData:"RankingCSVTable-module-scss-module__AZ27rW__noData",noResults:"RankingCSVTable-module-scss-module__AZ27rW__noResults",noResultsContent:"RankingCSVTable-module-scss-module__AZ27rW__noResultsContent",profileHighlightedData:"RankingCSVTable-module-scss-module__AZ27rW__profileHighlightedData","ranking-company-listing-v1":"RankingCSVTable-module-scss-module__AZ27rW__ranking-company-listing-v1",rankingTable:"RankingCSVTable-module-scss-module__AZ27rW__rankingTable",rankingTableContainer:"RankingCSVTable-module-scss-module__AZ27rW__rankingTableContainer",rankingTableWrapper:"RankingCSVTable-module-scss-module__AZ27rW__rankingTableWrapper",rowAlign:"RankingCSVTable-module-scss-module__AZ27rW__rowAlign",searchContainer:"RankingCSVTable-module-scss-module__AZ27rW__searchContainer",searchIcon:"RankingCSVTable-module-scss-module__AZ27rW__searchIcon",searchInput:"RankingCSVTable-module-scss-module__AZ27rW__searchInput",stickyHeader:"RankingCSVTable-module-scss-module__AZ27rW__stickyHeader",subHeader:"RankingCSVTable-module-scss-module__AZ27rW__subHeader",tableHeader:"RankingCSVTable-module-scss-module__AZ27rW__tableHeader",tableImage:"RankingCSVTable-module-scss-module__AZ27rW__tableImage",tableWrapper:"RankingCSVTable-module-scss-module__AZ27rW__tableWrapper"})},230858,e=>{e.v({button:"RankingTableDropdown-module-scss-module__TFn1EW__button",dropdown:"RankingTableDropdown-module-scss-module__TFn1EW__dropdown",icon:"RankingTableDropdown-module-scss-module__TFn1EW__icon",item:"RankingTableDropdown-module-scss-module__TFn1EW__item",menu:"RankingTableDropdown-module-scss-module__TFn1EW__menu",open:"RankingTableDropdown-module-scss-module__TFn1EW__open",selected:"RankingTableDropdown-module-scss-module__TFn1EW__selected"})},928231,e=>{e.v({active:"RankingsTableViewV2-module-scss-module__G1w4aW__active",activePage:"RankingsTableViewV2-module-scss-module__G1w4aW__activePage",button:"RankingsTableViewV2-module-scss-module__G1w4aW__button",caretPlaceholder:"RankingsTableViewV2-module-scss-module__G1w4aW__caretPlaceholder",cell:"RankingsTableViewV2-module-scss-module__G1w4aW__cell",cellImage:"RankingsTableViewV2-module-scss-module__G1w4aW__cellImage",cellWithImage:"RankingsTableViewV2-module-scss-module__G1w4aW__cellWithImage",check:"RankingsTableViewV2-module-scss-module__G1w4aW__check",claimProfileButton:"RankingsTableViewV2-module-scss-module__G1w4aW__claimProfileButton",clearSearchButton:"RankingsTableViewV2-module-scss-module__G1w4aW__clearSearchButton",company_name:"RankingsTableViewV2-module-scss-module__G1w4aW__company_name",customData:"RankingsTableViewV2-module-scss-module__G1w4aW__customData",disclaimerContainer:"RankingsTableViewV2-module-scss-module__G1w4aW__disclaimerContainer",dropdown:"RankingsTableViewV2-module-scss-module__G1w4aW__dropdown",dropdownContainer:"RankingsTableViewV2-module-scss-module__G1w4aW__dropdownContainer",ellipsis:"RankingsTableViewV2-module-scss-module__G1w4aW__ellipsis",filterTableContainer:"RankingsTableViewV2-module-scss-module__G1w4aW__filterTableContainer",fixedHeaderContainer:"RankingsTableViewV2-module-scss-module__G1w4aW__fixedHeaderContainer",header:"RankingsTableViewV2-module-scss-module__G1w4aW__header",headerContent:"RankingsTableViewV2-module-scss-module__G1w4aW__headerContent",highlighted:"RankingsTableViewV2-module-scss-module__G1w4aW__highlighted",icon:"RankingsTableViewV2-module-scss-module__G1w4aW__icon",info:"RankingsTableViewV2-module-scss-module__G1w4aW__info",item:"RankingsTableViewV2-module-scss-module__G1w4aW__item",menu:"RankingsTableViewV2-module-scss-module__G1w4aW__menu",nextPrevButton:"RankingsTableViewV2-module-scss-module__G1w4aW__nextPrevButton",noData:"RankingsTableViewV2-module-scss-module__G1w4aW__noData",noResults:"RankingsTableViewV2-module-scss-module__G1w4aW__noResults",noResultsContent:"RankingsTableViewV2-module-scss-module__G1w4aW__noResultsContent",open:"RankingsTableViewV2-module-scss-module__G1w4aW__open",pageButton:"RankingsTableViewV2-module-scss-module__G1w4aW__pageButton",pageNumbers:"RankingsTableViewV2-module-scss-module__G1w4aW__pageNumbers",paginationButton:"RankingsTableViewV2-module-scss-module__G1w4aW__paginationButton",paginationContainer:"RankingsTableViewV2-module-scss-module__G1w4aW__paginationContainer",paginationControls:"RankingsTableViewV2-module-scss-module__G1w4aW__paginationControls",profileHighlightedData:"RankingsTableViewV2-module-scss-module__G1w4aW__profileHighlightedData","ranking-company-listing-v1":"RankingsTableViewV2-module-scss-module__G1w4aW__ranking-company-listing-v1",rankingTable:"RankingsTableViewV2-module-scss-module__G1w4aW__rankingTable",rankingTableContainer:"RankingsTableViewV2-module-scss-module__G1w4aW__rankingTableContainer",rowAlign:"RankingsTableViewV2-module-scss-module__G1w4aW__rowAlign",searchContainer:"RankingsTableViewV2-module-scss-module__G1w4aW__searchContainer",searchIcon:"RankingsTableViewV2-module-scss-module__G1w4aW__searchIcon",searchInput:"RankingsTableViewV2-module-scss-module__G1w4aW__searchInput",selected:"RankingsTableViewV2-module-scss-module__G1w4aW__selected",sortButton:"RankingsTableViewV2-module-scss-module__G1w4aW__sortButton",sortLabel:"RankingsTableViewV2-module-scss-module__G1w4aW__sortLabel",sortValue:"RankingsTableViewV2-module-scss-module__G1w4aW__sortValue",sponsoredName:"RankingsTableViewV2-module-scss-module__G1w4aW__sponsoredName",sponsoredRow:"RankingsTableViewV2-module-scss-module__G1w4aW__sponsoredRow",star:"RankingsTableViewV2-module-scss-module__G1w4aW__star",starEmpty:"RankingsTableViewV2-module-scss-module__G1w4aW__starEmpty",starFilled:"RankingsTableViewV2-module-scss-module__G1w4aW__starFilled",starHalf:"RankingsTableViewV2-module-scss-module__G1w4aW__starHalf",starRating:"RankingsTableViewV2-module-scss-module__G1w4aW__starRating",stickyHeader:"RankingsTableViewV2-module-scss-module__G1w4aW__stickyHeader",subHeader:"RankingsTableViewV2-module-scss-module__G1w4aW__subHeader",tableHeader:"RankingsTableViewV2-module-scss-module__G1w4aW__tableHeader",tableImage:"RankingsTableViewV2-module-scss-module__G1w4aW__tableImage",tableLink:"RankingsTableViewV2-module-scss-module__G1w4aW__tableLink",tableWrapper:"RankingsTableViewV2-module-scss-module__G1w4aW__tableWrapper",viewProfileButton:"RankingsTableViewV2-module-scss-module__G1w4aW__viewProfileButton"})},548116,e=>{e.v({articleTitle:"RelatedStoriesV2-module-scss-module__Hqo30W__articleTitle",container:"RelatedStoriesV2-module-scss-module__Hqo30W__container",contentTile:"RelatedStoriesV2-module-scss-module__Hqo30W__contentTile",contentWrapper:"RelatedStoriesV2-module-scss-module__Hqo30W__contentWrapper",divider:"RelatedStoriesV2-module-scss-module__Hqo30W__divider",dividerLine:"RelatedStoriesV2-module-scss-module__Hqo30W__dividerLine",headline:"RelatedStoriesV2-module-scss-module__Hqo30W__headline",headlineCategoryLink:"RelatedStoriesV2-module-scss-module__Hqo30W__headlineCategoryLink",headlinePrefix:"RelatedStoriesV2-module-scss-module__Hqo30W__headlinePrefix",headlineText:"RelatedStoriesV2-module-scss-module__Hqo30W__headlineText",items:"RelatedStoriesV2-module-scss-module__Hqo30W__items",list:"RelatedStoriesV2-module-scss-module__Hqo30W__list",media:"RelatedStoriesV2-module-scss-module__Hqo30W__media",readMoreSkeletonPulse:"RelatedStoriesV2-module-scss-module__Hqo30W__readMoreSkeletonPulse",readTime:"RelatedStoriesV2-module-scss-module__Hqo30W__readTime",skeletonContent:"RelatedStoriesV2-module-scss-module__Hqo30W__skeletonContent",skeletonMedia:"RelatedStoriesV2-module-scss-module__Hqo30W__skeletonMedia",skeletonPulse:"RelatedStoriesV2-module-scss-module__Hqo30W__skeletonPulse",skeletonReadTime:"RelatedStoriesV2-module-scss-module__Hqo30W__skeletonReadTime",skeletonTile:"RelatedStoriesV2-module-scss-module__Hqo30W__skeletonTile",skeletonTitleLine:"RelatedStoriesV2-module-scss-module__Hqo30W__skeletonTitleLine",tileWrapper:"RelatedStoriesV2-module-scss-module__Hqo30W__tileWrapper"})},379281,e=>{"use strict";var t=e.i(843476),l=e.i(271645),n=e.i(525803),o=e.i(939761),a=e.i(847420),i=e.i(854321),s=e.i(312583),r=e.i(40140),d=e.i(6278),u=e.i(255160),c=e.i(590242),m=e.i(616957),g=e.i(548116);function f({variant:e,readMoreTitle:n,categoryName:o,containerRef:a}){let i=n?.trim()||"Related stories",s=!!o;return(0,t.jsxs)("section",{className:g.default.container,"data-gtm-action":"Read_More","data-variant":e,"data-loading":"true","aria-busy":"true","aria-label":"Loading related stories",ref:a,children:[(0,t.jsx)("div",{className:g.default.headline,children:(0,t.jsxs)("h4",{className:g.default.headlineText,children:[(0,t.jsxs)("span",{className:g.default.headlinePrefix,children:[i,s?" on ":""]}),s&&(0,t.jsx)("span",{children:o})]})}),(0,t.jsx)("div",{className:g.default.list,children:(0,t.jsx)("div",{className:g.default.items,children:Array.from({length:3},(e,n)=>(0,t.jsxs)(l.default.Fragment,{children:[n>0&&(0,t.jsx)("div",{className:g.default.divider,children:(0,t.jsx)("div",{className:g.default.dividerLine})}),(0,t.jsxs)("div",{className:g.default.skeletonTile,"aria-hidden":"true",children:[(0,t.jsxs)("div",{className:g.default.skeletonContent,children:[(0,t.jsx)("div",{className:`${g.default.skeletonTitleLine} ${g.default.skeletonPulse}`}),(0,t.jsx)("div",{className:`${g.default.skeletonTitleLine} ${g.default.skeletonPulse}`}),(0,t.jsx)("div",{className:`${g.default.skeletonReadTime} ${g.default.skeletonPulse}`})]}),(0,t.jsx)("div",{className:`${g.default.skeletonMedia} ${g.default.skeletonPulse}`})]})]},n))})})]})}let p=(0,l.memo)(e=>{let{block:p,manualStories:_,categoryName:h,categoryUri:b,readMoreTitle:w,articleTitle:v,isRelatedStoriesAsyncLoading:x}=e,{GTMEventTracker:C}=(0,r.useGTMEventTracker)(),{useMediaRecReadMore:k}=(0,i.useLayoutContext)(),y=(0,s.useMediaRecRecirculation)(),{stories:S,categoryName:R,categoryUri:j,readMoreTitle:N,isMediaRecMode:T,articleDatabaseId:L,articleTitle:I,isAsyncLoading:M}=(0,l.useMemo)(()=>{let e=p.attributes?.find(e=>e?.name==="manualStories"),t=p.attributes?.find(e=>e?.name==="categoryName"),l=p.attributes?.find(e=>e?.name==="categoryUri"),n=p.attributes?.find(e=>e?.name==="readMoreTitle"),o=p.attributes?.find(e=>e?.name==="useMediaRec"),a=p.attributes?.find(e=>e?.name==="isRelatedStoriesAsyncLoading"),i=p.attributes?.find(e=>e?.name==="articleDatabaseId"),s=p.attributes?.find(e=>e?.name==="primaryCategoryName"),r=p.attributes?.find(e=>e?.name==="primaryCategoryUri"),d=p.attributes?.find(e=>e?.name==="articleTitle"),u=o?.value==="true";return{stories:JSON.parse(_||e?.value||"[]"),categoryName:u?s?.value:h||t?.value,categoryUri:u?r?.value:b||l?.value,readMoreTitle:w||n?.value,isMediaRecMode:u,articleDatabaseId:i?.value,articleTitle:v||d?.value,isAsyncLoading:"true"===x||a?.value==="true"}},[p.attributes,_,h,b,w,v,x]),V=T&&k&&y.enabled,P=V&&y.reserveReadMoreCategoryMerge&&("idle"===y.status||"loading"===y.status),[F,E]=(0,l.useState)(!1),A=(0,l.useRef)(!1);(0,l.useEffect)(()=>{A.current=!1},[L]);let G=(0,l.useMemo)(()=>V&&y.reserveReadMoreCategoryMerge&&"ready"===y.status?Math.min(c.MEDIA_REC_READ_MORE_ENDPOINT_CAP,y.recs.length):0,[V,y.reserveReadMoreCategoryMerge,y.status,y.recs.length]),H=(0,l.useMemo)(()=>y.recs.slice(0,G).map(e=>String(e.id??"").trim()).filter(Boolean).map(e=>({id:e})),[y.recs,G]),D=V&&y.reserveReadMoreCategoryMerge&&G>0&&!!y.attributionToken?.trim()&&H.length>0,W=(0,l.useMemo)(()=>V&&y.reserveReadMoreCategoryMerge?y.readMoreMergedRows:S,[V,S,y.reserveReadMoreCategoryMerge,y.readMoreMergedRows]),B=(0,d.useIntersectionObserver)([{rootMargin:"200px",callback:()=>{V&&y.trigger()},triggerOnce:!0},{rootMargin:"0px",callback:()=>{E(!0)},triggerOnce:!0}]);(0,l.useEffect)(()=>{F&&W.length&&!A.current&&(A.current=!0,C({event:"analyticsEvent",eventCategory:"Recirculation",eventAction:"Related Stories Module Impression - v2",eventLabel:`${I} / ${window.location.href}`}))},[C,I,F,W.length,"v2"]),(0,l.useEffect)(()=>{let e=y.attributionToken?.trim();F&&D&&e&&L&&0!==H.length&&(0,m.pushPanelViewItemEvent)({articleId:L,attributionToken:e,panel:{panelId:"article-read-more",displayName:"Read More",panelPosition:1,totalPanels:2,documents:H}})},[L,F,D,H,y.attributionToken]);let z=(0,l.useCallback)(e=>{if(!e.fromMediaRec)return;let t=y.attributionToken;t&&e.id&&(0,u.writeMediaRecToken)(e.id,t)},[y.attributionToken]),$=(e,t,l)=>{let n=e.uri||"";z(e),C({event:"analyticsEvent",eventCategory:"Recirculation",eventAction:"Related Stories Module Click - v2",eventLabel:`${e.title||""} / ${n}`,article_position:String(t+1)}),"keydown"===l.type&&n&&(l.preventDefault(),window.location.href=n)};if(P||M)return(0,t.jsx)(f,{variant:"v2",readMoreTitle:N,categoryName:R,containerRef:B});if(!W||0===W.length)return(0,t.jsx)("section",{className:g.default.container,"data-gtm-action":"Read_More",ref:B,children:(0,t.jsx)("div",{className:g.default.list})});let q=W.slice(0,3),O=N?.trim()||"Related stories",U=!!R;return(0,t.jsxs)("section",{className:g.default.container,"data-gtm-action":"Read_More","data-variant":"v2",ref:B,children:[(0,t.jsx)("div",{className:g.default.headline,children:(0,t.jsxs)("h4",{className:g.default.headlineText,children:[(0,t.jsxs)("span",{className:g.default.headlinePrefix,children:[O,U?" on ":""]}),U&&(j?(0,t.jsx)(o.NewsweekLink,{onClick:()=>{C({event:"analyticsEvent",eventCategory:"Recirculation",eventAction:"Related Stories Module Click - v2",eventLabel:`${R} / ${j}`})},href:j,className:g.default.headlineCategoryLink,"data-gtm-skip":"true",children:R}):(0,t.jsx)("span",{children:R}))]})}),(0,t.jsx)("div",{className:g.default.list,children:(0,t.jsx)("div",{className:g.default.items,children:q.map((e,i)=>{var s;let r,d=null==(s=e.seo?.readingTime)?"":`${0===s?1:s} min read`,u=!!e.fromMediaRec,c=u&&e.id?y.attributionToken:null;return(0,t.jsxs)(l.default.Fragment,{children:[i>0&&(0,t.jsx)("div",{className:g.default.divider,children:(0,t.jsx)("div",{className:g.default.dividerLine})}),(r=(0,t.jsxs)(o.NewsweekLink,{href:e.uri||"#",className:g.default.contentTile,"data-gtm-skip":"true",...u&&e.id?{"data-post-id":e.id}:{},...c?{"data-attribution-token":c}:{},children:[(0,t.jsxs)("div",{className:g.default.contentWrapper,children:[(0,t.jsx)("span",{className:`${g.default.articleTitle} text-subheadline-semibold-xs`,children:e.title||""}),d&&(0,t.jsx)("span",{className:g.default.readTime,children:d})]}),(0,t.jsx)("div",{className:g.default.media,children:e.featuredImage?.node?.sourceUrl?.trim()?(0,t.jsx)(n.default,{width:112,height:75,alt:e.title||"Related story image",src:e.featuredImage.node.sourceUrl,srcset:e.featuredImage?.node?.srcSet||void 0,sizes:"112px"}):(0,t.jsx)(a.default,{width:112,height:75})})]}),(0,t.jsx)("div",{className:g.default.tileWrapper,onClick:t=>$(e,i,t),onAuxClick:t=>{1===t.button&&$(e,i,t)},onKeyDown:t=>{("Enter"===t.key||" "===t.key)&&$(e,i,t)},role:"button",tabIndex:0,"data-gtm-skip":"true",children:r}))]},e.id||i)})})})]})});p.displayName="RelatedStories",e.s(["default",0,p])},178494,e=>{e.v({iframe:"SafeEmbed-module-scss-module__-AwI6a__iframe",safeEmbed:"SafeEmbed-module-scss-module__-AwI6a__safeEmbed"})},742952,e=>{"use strict";var t=e.i(843476),l=e.i(271645),n=e.i(178494);e.s(["default",0,({serviceUrl:e,title:o="Embedded visualization",width:a="100%",height:i="500px",allowFullScreen:s="false",lazyLoading:r="true"})=>{let d=(0,l.useRef)(null),[u,c]=(0,l.useState)(null);if((0,l.useEffect)(()=>{let e=e=>{if(!d.current||e.source!==d.current.contentWindow)return;let t=null;if(e.data&&"object"==typeof e.data){let l=e.data["datawrapper-height"];l&&(t=Object.values(l)[0]??null)}if(null===t&&"string"==typeof e.data&&e.data.startsWith("[iFrameSizer]")){let l=e.data.match(/bodyHeight:(\d+)/);l&&(t=parseInt(l[1],10))}"number"!=typeof t||isNaN(t)||c(`${t}px`)};return window.addEventListener("message",e),()=>window.removeEventListener("message",e)},[]),!e)return null;let m="true"===s,g=parseInt(a,10);return(0,t.jsx)("div",{className:n.default.safeEmbed,children:(0,t.jsx)("iframe",{ref:d,className:n.default.iframe,src:e,title:o,width:g>480?"100%":a,height:u??i,allow:m?"fullscreen":void 0,allowFullScreen:m,loading:"true"===r?"lazy":"eager"})})}])},465050,e=>{e.v({searchContainer:"SearchInput-module-scss-module__IgX8NW__searchContainer",searchIcon:"SearchInput-module-scss-module__IgX8NW__searchIcon",searchInput:"SearchInput-module-scss-module__IgX8NW__searchInput"})},36687,983839,770815,76353,e=>{"use strict";var t=e.i(843476),l=e.i(271645),n=e.i(928231),o=e.i(97942),a=e.i(810483);let i=(0,l.memo)(function({pageIndex:e,pageCount:l,canPreviousPage:i,canNextPage:s,previousPage:r,nextPage:d,gotoPage:u,isV2:c=!1}){let m=c?n.default:o.default;if(l<=1)return null;let g=e=>{u(e)};return(0,t.jsx)("div",{className:m.paginationContainer,children:(0,t.jsxs)("div",{className:m.paginationControls,children:[(0,t.jsx)("button",{onClick:()=>{r()},disabled:!i,className:m.nextPrevButton,"aria-label":"Previous page",children:(0,t.jsx)(a.default,{color:c?i?"#1f1e19":"#a6a08e":i?"grey":"black",rotate:90})}),(0,t.jsx)("div",{className:m.pageNumbers,children:(()=>{let n=[];if(n.push((0,t.jsx)("button",{onClick:()=>g(0),className:`${m.pageButton} ${0===e?m.activePage:""}`,"aria-current":0===e?"page":void 0,children:"1"},"page-0")),l<=1)for(let o=1;og(o),className:`${m.pageButton} ${e===o?m.activePage:""}`,"aria-current":e===o?"page":void 0,children:o+1},`page-${o}`));else{e>1&&n.push((0,t.jsx)("span",{className:m.ellipsis,children:"..."},"ellipsis-1"));for(let o=Math.max(1,e-1);o<=Math.min(l-2,e+1);o++)o>0&&og(o),className:`${m.pageButton} ${e===o?m.activePage:""}`,"aria-current":e===o?"page":void 0,children:o+1},`page-${o}`));e1&&n.push((0,t.jsx)("button",{onClick:()=>g(l-1),className:`${m.pageButton} ${e===l-1?m.activePage:""}`,"aria-current":e===l-1?"page":void 0,children:l},`page-${l-1}`))}return n})()}),(0,t.jsx)("button",{onClick:()=>{d()},disabled:!s,className:m.nextPrevButton,"aria-label":"Next page",children:(0,t.jsx)(a.default,{color:c?s?"#1f1e19":"#a6a08e":"black",rotate:270})})]})})});e.s(["default",0,i],36687);let s=e=>(0,t.jsx)("svg",{width:"21",height:"21",viewBox:"0 0 21 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,t.jsx)("path",{d:"M8.309 1.394c4.008 0 7.332 3.344 7.332 7.376 0 1.77-.587 3.442-1.76 4.72l-.391.492-.489.394c-1.27 1.18-2.932 1.77-4.692 1.77-4.008 0-7.331-3.344-7.331-7.376S4.3 1.394 8.309 1.394m0-.984C3.715.41 0 4.147 0 8.77s3.715 8.36 8.309 8.36c2.053 0 3.91-.689 5.376-1.967l5.377 5.409 1.075-1.082-5.474-5.31c1.173-1.476 1.955-3.345 1.955-5.41 0-4.623-3.715-8.36-8.309-8.36",fill:"#000"})});e.s(["default",0,s],983839);var r=e.i(618566),d=e.i(4656),u=e.i(230858);let c=({ranking:e,onSelect:o,isV2:i=!1})=>{let s,c=i?n.default:u.default,[m,g]=(0,l.useState)(!1),[f,p]=(0,l.useState)(e.id),_=(0,r.useRouter)(),h=(0,l.useRef)(null),b=[e.parent?{id:e.parent.id,title:e.parent.title,uri:e.parent.uri}:{id:e.id,title:e.title,uri:e.uri},...(s=e.parent?e.parent.children:e.children,s?.map(({id:e,title:t,uri:l})=>({id:e,title:t,uri:l})).sort((e,t)=>e.title.localeCompare(t.title))||[])],w=b.find(e=>e.id===f);return(0,l.useEffect)(()=>{let e=e=>{h.current&&!h.current.contains(e.target)&&g(!1)};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[]),(0,t.jsxs)("div",{className:c.dropdown,ref:h,children:[(0,t.jsxs)("button",{className:c.button,onClick:()=>g(!m),"aria-expanded":m,"aria-haspopup":"listbox","aria-label":"Select ranking",children:[(0,t.jsx)("span",{children:w?.title}),i?(0,t.jsx)("span",{className:`${c.icon} ${m?c.open:""}`,children:(0,t.jsx)(a.default,{color:i?"#1f1e19":"white",rotate:180*!!m})}):(0,t.jsx)("span",{className:`${c.icon} ${m?c.open:""}`})]}),m&&(0,t.jsx)("ul",{className:c.menu,children:b.map(e=>(0,t.jsxs)("button",{role:"option","aria-selected":e.id===f,className:`${c.item} ${e.id===f?c.selected:""}`,onClick:()=>(e=>{if(g(!1),e.id!==f&&e.uri&&e.id){o?.(e);let t=(0,d.transformNewsweekHref)(e.uri,!0).toString();p(e.id),_.push(t,{scroll:!1})}})(e),children:[e.title,e.id===f&&(0,t.jsx)("span",{className:c.check,children:"✓"})]},e.id))})]})};e.s(["default",0,c],770815);var m=e.i(343794),g=e.i(522016),f=e.i(525803);let p=e=>(0,t.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"32",height:"33",viewBox:"0 0 32 33",fill:"none",...e,children:(0,t.jsx)("path",{id:"Vector",d:"M31.7043 20.0556C31.7046 18.9645 31.4036 17.8945 30.8346 16.9635C30.2656 16.0326 29.4506 15.2768 28.4794 14.7795C27.5082 14.2821 26.4186 14.0626 25.3307 14.145C24.2427 14.2275 23.1986 14.6087 22.3135 15.2466C21.4283 15.8846 20.7365 16.7545 20.3142 17.7606C19.8919 18.7667 19.7556 19.8698 19.9203 20.9484C20.085 22.027 20.5442 23.0392 21.2475 23.8734C21.9507 24.7076 22.8706 25.3315 23.9058 25.6763C23.7048 26.602 23.1931 27.431 22.4557 28.0255C21.7183 28.6201 20.7997 28.9444 19.8524 28.9444H16.2969C15.1967 28.9444 14.1416 28.5074 13.3637 27.7295C12.5858 26.9516 12.1487 25.8965 12.1487 24.7963V19.3C16.8495 18.4437 20.445 14.2496 20.445 9.26593V2.27778C20.445 1.80628 20.2577 1.3541 19.9243 1.0207C19.5909 0.687301 19.1387 0.5 18.6672 0.5H15.1117C14.6402 0.5 14.188 0.687301 13.8546 1.0207C13.5212 1.3541 13.3339 1.80628 13.3339 2.27778C13.3339 2.74927 13.5212 3.20146 13.8546 3.53486C14.188 3.86825 14.6402 4.05556 15.1117 4.05556H16.8895V9.26593C16.8895 12.8807 14.005 15.8615 10.4584 15.9074C9.595 15.919 8.73796 15.7589 7.93698 15.4365C7.136 15.1141 6.40705 14.6358 5.79246 14.0294C5.17787 13.4229 4.68989 12.7004 4.35685 11.9038C4.02381 11.1072 3.85235 10.2523 3.85243 9.38889V4.05556H5.63021C6.1017 4.05556 6.55389 3.86825 6.88729 3.53486C7.22069 3.20146 7.40799 2.74927 7.40799 2.27778C7.40799 1.80628 7.22069 1.3541 6.88729 1.0207C6.55389 0.687301 6.1017 0.5 5.63021 0.5H2.07465C1.60316 0.5 1.15097 0.687301 0.817574 1.0207C0.484176 1.3541 0.296875 1.80628 0.296875 2.27778V9.38889C0.296972 11.7523 1.12801 14.0404 2.64462 15.8531C4.16123 17.6657 6.26686 18.8874 8.59317 19.3044V24.7963C8.59552 26.8387 9.40792 28.7968 10.8521 30.241C12.2963 31.6853 14.2544 32.4976 16.2969 32.5H19.8524C21.7337 32.4977 23.5492 31.808 24.9574 30.5605C26.3656 29.313 27.2693 27.5939 27.4984 25.7267C28.714 25.356 29.7787 24.605 30.5358 23.5842C31.2929 22.5633 31.7025 21.3265 31.7043 20.0556ZM25.7784 22.4259C25.3095 22.4259 24.8513 22.2869 24.4614 22.0264C24.0716 21.766 23.7678 21.3958 23.5884 20.9627C23.409 20.5295 23.3621 20.0529 23.4535 19.5931C23.545 19.1333 23.7707 18.711 24.1022 18.3795C24.4338 18.0479 24.8561 17.8222 25.3159 17.7307C25.7757 17.6393 26.2523 17.6862 26.6855 17.8656C27.1186 18.045 27.4888 18.3488 27.7492 18.7386C28.0097 19.1285 28.1487 19.5867 28.1487 20.0556C28.1487 20.6842 27.899 21.2871 27.4545 21.7317C27.0099 22.1762 26.407 22.4259 25.7784 22.4259Z",fill:"#999999"})}),_=()=>(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"17",height:"17",viewBox:"0 0 17 17",fill:"none",children:[(0,t.jsx)("path",{d:"M9.83267 3.5H13.4993M13.4993 3.5V7.16664M13.4993 3.5L8.16602 8.8333",stroke:"currentColor"}),(0,t.jsx)("path",{d:"M7.49997 4.8335H4.83332C4.4797 4.8335 4.14057 4.97397 3.89052 5.22402C3.64047 5.47406 3.5 5.8132 3.5 6.16682V12.1668C3.5 12.5204 3.64047 12.8595 3.89052 13.1096C4.14057 13.3596 4.4797 13.5001 4.83332 13.5001H10.8333C11.1869 13.5001 11.526 13.3596 11.7761 13.1096C12.0261 12.8595 12.1666 12.5204 12.1666 12.1668V9.50013",stroke:"currentColor",strokeLinecap:"round"})]});var h=e.i(554242);let b=({doctor:e,variant:n=""})=>{function o(e){return e.split(";").map((e,l)=>(0,t.jsx)("p",{className:h.default.subHeader,children:e.trim()},l))}let a=(()=>{if(!e.hospital_affiliation_link||!e.hospital_affiliation)return[];let t=e.hospital_affiliation.split(";").map(e=>e.trim()),l=e.hospital_affiliation_link.split(";").map(e=>e.trim());return t.map((e,t)=>({name:e,link:l[t]||l[0]}))})(),i=""===n?a.slice(0,1):a;return(0,t.jsxs)("div",{className:(0,m.default)(h.default.doctor,h.default[n]),children:[(0,t.jsxs)("div",{className:h.default.infoContainer,children:[e.image_id?(0,t.jsx)(f.default,{src:e.image_id,alt:"",width:64,height:64}):(0,t.jsx)("div",{className:h.default.defaultImg,children:(0,t.jsx)(p,{})}),(0,t.jsxs)("div",{className:h.default.info,children:[(0,t.jsx)("h3",{className:h.default.name,children:e.name}),(0,t.jsx)("div",{className:h.default.doctors_speciality,children:e.doctors_speciality&&o(e.doctors_speciality)}),(0,t.jsx)("div",{className:h.default.bullet_1,children:e.bullet_1&&o(e.bullet_1)}),(0,t.jsx)("div",{className:h.default.bullet_2,children:e.bullet_2&&o(e.bullet_2)}),(0,t.jsx)("div",{className:h.default.bullet_3,children:e.bullet_3&&o(e.bullet_3)}),(0,t.jsx)("div",{className:h.default.bullet_4,children:e.bullet_4&&o(e.bullet_4)}),(0,t.jsx)("div",{className:h.default.location_cities,children:e.location_cities&&o(e.location_cities)})]})]}),i.length>0&&(0,t.jsx)("div",{className:h.default.location,children:i.map((n,o)=>(0,t.jsxs)(l.default.Fragment,{children:[(0,t.jsxs)(g.default,{className:h.default.hospital,target:"_blank",href:{pathname:n.link},children:[n.name,(0,t.jsx)(_,{})]}),0===o&&(0,t.jsxs)("p",{className:h.default.address,children:[e.city,", ",e.state]})]},o))})]})};var w=e.i(939761),v=e.i(863279),x=e.i(420762);let C=({doctor:e,variant:l=""})=>{let n=e?.go_to_profile_link||e?.website||e?.visit_url;return(0,t.jsxs)("div",{className:(0,m.default)(x.default.cta,x.default[l]),children:[n&&(0,t.jsxs)(w.NewsweekLink,{target:"_blank",href:{pathname:n},className:(0,m.default)(x.default.viewProfile,{[x.default.claimedProfile]:(0,v.isNewsweekDomainUrl)(n)}),children:[(0,v.isNewsweekDomainUrl)(n)?e?.button_text||"View Profile":"Claim Profile",(0,t.jsx)(_,{})]}),e.book_a_doctor_link&&(0,t.jsxs)(w.NewsweekLink,{target:"_blank",href:{pathname:e.book_a_doctor_link},className:x.default.bookAppointment,children:["Book an Appointment",(0,t.jsx)(_,{})]})]})};var k=e.i(830008),y=e.i(944340);let S=({doctor:e,onAdditionalDetailsClick:l})=>{let n=e?.go_to_profile_link||e?.website||e?.visit_url;return(0,t.jsxs)("div",{className:(0,m.default)(y.default.card,{[y.default.claimedProfile]:(0,v.isNewsweekDomainUrl)(n)}),style:{...e.background_color&&{backgroundColor:e.background_color}},children:[(0,t.jsx)("span",{className:y.default.rank,children:e.rank}),(0,t.jsxs)("div",{className:y.default.cardContent,children:[(0,t.jsx)("div",{className:y.default.topSection,children:(0,t.jsx)(b,{doctor:e})}),(0,t.jsxs)("div",{className:y.default.bottomSection,children:[(0,t.jsx)("div",{className:y.default.bottomActions,children:(0,t.jsx)(C,{doctor:e})}),(0,t.jsxs)("div",{className:y.default.bottomAdditionalActions,children:[l&&(0,t.jsxs)("button",{onClick:()=>l?.(e),className:y.default.additionalDetails,children:["additional details",(0,t.jsx)(k.default,{})]}),e.score&&(0,t.jsxs)("p",{className:y.default.score,children:["Score ",e.score]})]})]})]})]})};function R(){return(R=Object.assign||function(e){for(var t=1;t(0,t.jsxs)("svg",{...n,width:e,height:l,viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,t.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.00039 2.0999C5.18963 2.0999 2.10039 5.18914 2.10039 8.9999C2.10039 12.8107 5.18963 15.8999 9.00039 15.8999C12.8112 15.8999 15.9004 12.8107 15.9004 8.9999C15.9004 5.18914 12.8112 2.0999 9.00039 2.0999ZM0.900391 8.9999C0.900391 4.5264 4.52688 0.899902 9.00039 0.899902C13.4739 0.899902 17.1004 4.5264 17.1004 8.9999C17.1004 13.4734 13.4739 17.0999 9.00039 17.0999C4.52688 17.0999 0.900391 13.4734 0.900391 8.9999Z",fill:"#18834C"}),(0,t.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.4247 6.07564C13.659 6.30995 13.659 6.68985 13.4247 6.92417L8.42465 11.9242C8.19034 12.1585 7.81044 12.1585 7.57613 11.9242L5.07613 9.42417C4.84181 9.18985 4.84181 8.80995 5.07613 8.57564C5.31044 8.34132 5.69034 8.34132 5.92465 8.57564L8.00039 10.6514L12.5761 6.07564C12.8104 5.84132 13.1903 5.84132 13.4247 6.07564Z",fill:"#18834C"})]}),L=()=>(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:[(0,t.jsx)("path",{d:"M7.01621 4.0825L5.46271 0.3095C5.42496 0.217891 5.36085 0.139564 5.2785 0.0844593C5.19616 0.0293548 5.09929 -4.20573e-05 5.00021 4.51663e-08H0.500213C0.418046 -3.48755e-05 0.337137 0.0201802 0.264643 0.058857C0.192149 0.0975339 0.130304 0.153481 0.0845776 0.221748C0.0388517 0.290016 0.0106546 0.3685 0.00248045 0.450259C-0.00569364 0.532018 0.00640721 0.614531 0.0377126 0.6905L2.59421 6.9C3.09548 6.14927 3.74749 5.51108 4.50879 5.02602C5.27008 4.54095 6.124 4.21964 7.01621 4.0825Z",fill:"#E41402"}),(0,t.jsx)("path",{d:"M15.9159 0.2215C15.8701 0.153297 15.8083 0.0974111 15.7358 0.0587794C15.6634 0.0201478 15.5825 -3.99688e-05 15.5004 5.94097e-08H11.0004C10.9013 -4.2043e-05 10.8044 0.0293548 10.7221 0.0844593C10.6397 0.139564 10.5756 0.217891 10.5379 0.3095L8.98438 4.0825C9.87659 4.21964 10.7305 4.54095 11.4918 5.02602C12.2531 5.51108 12.9051 6.14927 13.4064 6.9L15.9629 0.6905C15.9942 0.614487 16.0063 0.531921 15.9981 0.450114C15.9899 0.368308 15.9617 0.289785 15.9159 0.2215Z",fill:"#E41402"}),(0,t.jsx)("path",{d:"M8 5C6.91221 5 5.84884 5.32257 4.94437 5.92692C4.0399 6.53127 3.33495 7.39025 2.91867 8.39524C2.50238 9.40023 2.39346 10.5061 2.60568 11.573C2.8179 12.6399 3.34173 13.6199 4.11092 14.3891C4.8801 15.1583 5.86011 15.6821 6.92701 15.8943C7.9939 16.1065 9.09977 15.9976 10.1048 15.5813C11.1098 15.1651 11.9687 14.4601 12.5731 13.5556C13.1774 12.6512 13.5 11.5878 13.5 10.5C13.4983 9.04184 12.9183 7.64389 11.8872 6.61281C10.8561 5.58174 9.45817 5.00172 8 5ZM9.6055 12.971L8 12.127L6.3945 12.971L6.701 11.183L5.401 9.9165L7.196 9.656L8 8.029L8.803 9.656L10.598 9.9165L9.298 11.183L9.6055 12.971Z",fill:"#B08446"})]});var I=e.i(634961);let M=({doctorDetails:e,selectedDoctor:l,variant:n})=>(0,t.jsxs)("div",{className:(0,m.default)(I.default.doctorDetails,{[I.default[n||""]]:n}),children:[e.highPerformanceTreatments.length>0&&(0,t.jsxs)("div",{className:I.default.highPerformanceTreatments,children:[(0,t.jsx)("h5",{children:"High Performance Treatments"}),(0,t.jsx)("div",{className:I.default.list,children:e?.highPerformanceTreatments?.map((e,l)=>(0,t.jsxs)("div",{className:I.default.item,children:[(0,t.jsx)("span",{children:e.value}),(0,t.jsx)("div",{className:I.default.awards,children:e.peersChoice?(0,t.jsxs)("span",{className:I.default.specialAward,children:[e.ribbonValue.map((e,l)=>(0,t.jsx)(L,{},`ribbon-${l}-peers-choice`)),(0,t.jsx)("span",{children:"Peer's Choice"})]}):(0,t.jsxs)("span",{className:I.default.specialAward,children:[e.ribbonValue.map((e,l)=>(0,t.jsx)(L,{},`ribbon-${l}`)),(0,t.jsx)("span",{className:I.default.awardColumn})]})})]},`${e.value}-${l}`))})]}),e.boardCertifications.length>0&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(N.default,{}),(0,t.jsxs)("div",{className:I.default.boardCertifications,children:[(0,t.jsx)("h5",{children:"Board Certifications"}),(0,t.jsx)("div",{className:I.default.list,children:e?.boardCertifications?.map((e,l)=>(0,t.jsxs)("div",{className:I.default.item,children:[(0,t.jsx)("span",{children:e.value}),(0,t.jsx)("div",{className:I.default.awards,children:e.checks.map((e,l)=>(0,t.jsx)(T,{},`check-${l}`))})]},`${e}-${l}`))})]})]}),l?.hospital_the_doctor_works_at&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(N.default,{}),(0,t.jsxs)("div",{className:I.default.additionalLocations,children:[(0,t.jsx)("h5",{children:"Additional Locations"}),(0,t.jsx)("div",{className:I.default.list,children:(0,t.jsx)("div",{className:I.default.item,children:(0,t.jsx)("span",{children:l.hospital_the_doctor_works_at})})})]})]})]});var V=e.i(68012),P=e.i(845137);let F=({modalIsOpen:e,setIsOpen:l,selectedDoctor:n,doctorDetails:o})=>(0,t.jsxs)(j,{open:e,style:{height:"auto"},onClose:()=>l(!1),direction:"bottom",className:(0,m.default)(P.default.drawer,{[P.default.licensed]:(0,v.isNewsweekDomainUrl)(n.go_to_profile_link)}),children:[(0,t.jsx)("div",{className:P.default.drawerCloseTop,children:(0,t.jsx)("button",{onClick:()=>l(!1),className:P.default.close,children:(0,t.jsx)(V.default,{})})}),(0,t.jsxs)("div",{className:P.default.drawerMiddle,children:[(0,t.jsx)(b,{doctor:n,variant:"drawer"}),(0,t.jsx)(C,{doctor:n}),(0,t.jsx)(M,{doctorDetails:o,selectedDoctor:n,variant:"inDrawer"})]})]});var E=e.i(733416);let A=({modalIsOpen:e,setIsOpen:l,selectedDoctor:n,doctorDetails:o})=>(0,t.jsxs)(E.default,{className:(0,m.default)(P.default.doctorDetailsModal,{[P.default.licensed]:(0,v.isNewsweekDomainUrl)(n.go_to_profile_link)}),isOpen:e,onRequestClose:()=>l(!1),contentLabel:"Doctor Profile Details",children:[(0,t.jsx)("button",{onClick:()=>l(!1),className:P.default.close,children:(0,t.jsx)(V.default,{})}),n&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:P.default.info,children:[(0,t.jsx)(b,{doctor:n,variant:"modal"}),(0,t.jsx)(C,{doctor:n,variant:"inModal"})]}),(0,t.jsx)("div",{className:P.default.specialitiesContainer,children:(0,t.jsx)(M,{doctorDetails:o,selectedDoctor:n})})]})]});var G=e.i(466827),H=t,D=e.i(465050);let W=({className:e,data:t,onResultsChange:n,filterFn:o,placeholder:a="Search...",icon:i=(0,H.jsx)(s,{})})=>{let[r,d]=(0,l.useState)("");return(0,H.jsxs)("div",{className:(0,m.default)(D.default.searchContainer,e),children:[i&&(0,H.jsx)("div",{className:D.default.searchIcon,children:i}),(0,H.jsx)("input",{type:"text","aria-label":"Search",className:D.default.searchInput,placeholder:a,value:r,onChange:e=>{let l=e.target.value;(d(l),l.trim())?n(t.filter(e=>o(e,l))):n(t)}})]})};e.s(["default",0,({profileData:e,cardPerPage:n=22,ranking:o})=>{let[a,s]=(0,l.useState)(e.mappedData),[r,d]=(0,l.useState)(0),[u,m]=(0,l.useState)(!1),[g,f]=(0,l.useState)({}),{isMobile:p,isTablet:_}=(0,G.default)(),h=l.default.useRef(null),b=()=>{if(!h.current)return;let e=120;(p||_)&&(e=180);let t=h.current.getBoundingClientRect().top+window.scrollY-e;requestAnimationFrame(()=>{window.scrollTo({top:t,behavior:"smooth"})})},w=(0,l.useMemo)(()=>Math.ceil(a.length/n),[a.length,n]),v=(0,l.useMemo)(()=>{if(!g)return{highPerformanceTreatments:[],boardCertifications:[]};let e=g?.high_performance_treatments?.split(","),t=g?.ribbon_values?.split(","),l=g?.peers_choice?.split(","),n=g?.board_certifications?.split(","),o=g.board_certifications_checks?.split(",");return{highPerformanceTreatments:e?.map((e,n)=>({id:n,value:e,ribbonValue:Array.from({length:parseInt(t?.[n])}),peersChoice:l?.[n]==="1"})).filter(e=>e.ribbonValue.length>0)??[],boardCertifications:n?.map((e,t)=>({id:t,value:e,checks:Array.from({length:parseInt(o?.[t])})})).filter(e=>e.checks.length>0)??[]}},[g]),x=e=>{f(e),m(!0)};(0,l.useEffect)(()=>{window.document.body.style.overflow=u?"hidden":"auto"},[u]);let C=null!==o.parent||o?.children!==null;return(0,t.jsxs)("div",{className:P.default.container,children:[(0,t.jsxs)("div",{className:P.default.header,children:[(0,t.jsx)(W,{data:e.mappedData,onResultsChange:e=>{d(0),s(e)},filterFn:(e,t)=>{let l=t.toLowerCase();return e.name?.toLowerCase().includes(l)||e.doctors_speciality?.toLowerCase().includes(l)||e.city?.toLowerCase().includes(l)||e.state?.toLowerCase().includes(l)||e.hospital_affiliation?.toLowerCase().includes(l)}}),C&&(0,t.jsx)("div",{className:P.default.header,children:(0,t.jsx)(c,{ranking:o})})]}),(0,t.jsxs)("div",{className:P.default.list,ref:h,children:[a.slice(r*n,n*(r+1)).map((l,n)=>(0,t.jsx)(S,{doctor:l,..."rankings-doctors-listing-v1"===e.version&&{onAdditionalDetailsClick:x}},`${l.name}-${n}`)),0===a.length&&(0,t.jsx)("p",{children:"No results found"})]}),(0,t.jsx)(i,{pageIndex:r,pageCount:w,canPreviousPage:r>0,canNextPage:r{d(e=>e>0?e-1:0),b()},nextPage:()=>{d(e=>e+1),b()},gotoPage:e=>{d(e),b()}}),p||_?(0,t.jsx)(F,{modalIsOpen:u,setIsOpen:m,selectedDoctor:g,doctorDetails:v}):(0,t.jsx)(A,{modalIsOpen:u,setIsOpen:m,selectedDoctor:g,doctorDetails:v})]})}],76353)},495490,e=>{"use strict";var t=e.i(843476);e.s(["default",0,({width:e=20,height:l=20,fill:n="#1F1E19",...o})=>(0,t.jsxs)("svg",{...o,width:e,height:l,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,t.jsx)("g",{clipPath:"url(#clip0_check_lg)",children:(0,t.jsx)("path",{d:"M19.819 2.18359L8.24023 16.7669L7.65592 17.501L6.99674 16.8353L0.242188 10.0303L0.833008 9.44271L1.42383 8.85677L7.51758 14.9945L18.5137 1.14844L19.819 2.18359Z",fill:n})}),(0,t.jsx)("defs",{children:(0,t.jsx)("clipPath",{id:"clip0_check_lg",children:(0,t.jsx)("rect",{width:"20",height:"20",fill:"white"})})})]})])},956086,e=>{e.v({container:"ToolTip-module-scss-module__U3D1eG__container",dark:"ToolTip-module-scss-module__U3D1eG__dark",description:"ToolTip-module-scss-module__U3D1eG__description",left:"ToolTip-module-scss-module__U3D1eG__left",right:"ToolTip-module-scss-module__U3D1eG__right",small:"ToolTip-module-scss-module__U3D1eG__small",title:"ToolTip-module-scss-module__U3D1eG__title",toolTipWraper:"ToolTip-module-scss-module__U3D1eG__toolTipWraper",top:"ToolTip-module-scss-module__U3D1eG__top"})},556933,640611,e=>{"use strict";var t=e.i(843476),l=e.i(271645),n=e.i(343794),o=e.i(686511);function a({showDelayMs:e=0,hideDelayMs:t=0,onShow:n,onHide:o,enabled:i=!0}){let s=(0,l.useRef)(null),r=(0,l.useCallback)(()=>{s.current&&(clearTimeout(s.current),s.current=null)},[]);(0,l.useEffect)(()=>()=>r(),[r]);let d=(0,l.useCallback)((e,t)=>{r(),t>0?s.current=setTimeout(e,t):e()},[r]),u=(0,l.useCallback)(()=>{i&&d(n,e)},[i,d,n,e]);return{onMouseEnter:u,onMouseLeave:(0,l.useCallback)(()=>{i&&d(o,t)},[i,d,o,t]),cancelPending:(0,l.useCallback)(()=>{r()},[r])}}e.s(["useHoverDelay",0,a],640611);var i=e.i(956086);e.s(["default",0,({title:e,description:s,classNames:r,iconTrailing:d,position:u="bottom",openOnClick:c=!1,tooltipBackground:m="light",size:g="medium",showDelayMs:f=0,hideDelayMs:p=0})=>{let[_,h]=(0,l.useState)(!1),{ref:b}=(0,o.useClickOutside)({onClickOutside:()=>h(!1)}),{onMouseEnter:w,onMouseLeave:v}=a({showDelayMs:f,hideDelayMs:p,onShow:(0,l.useCallback)(()=>h(!0),[]),onHide:(0,l.useCallback)(()=>h(!1),[]),enabled:!c});return(0,t.jsxs)("div",{ref:b,className:`${i.default.container} ${r||""}`,children:[(0,t.jsxs)("div",{className:i.default.toolTipWraper,onClick:c?()=>h(!0):void 0,onMouseEnter:c?void 0:w,onMouseLeave:c?void 0:v,role:"button",tabIndex:0,onKeyDown:e=>{("Enter"===e.key||" "===e.key)&&(e.preventDefault(),h(e=>!e))},children:[(0,t.jsx)("div",{className:i.default.title,children:e}),d&&(0,t.jsx)(d,{})]}),_&&s&&(0,t.jsx)("div",{className:(0,n.default)(i.default.description,i.default[u],i.default[m],i.default[g]),children:s})]})}],556933)},871587,276094,e=>{"use strict";var t=e.i(271645);e.s(["useActiveTime",0,function(){let e=(0,t.useRef)(0),l=(0,t.useRef)(null),n=()=>{null===l.current&&(l.current=setInterval(()=>{e.current+=1},1e3))},o=()=>{null!==l.current&&(clearInterval(l.current),l.current=null)};return(0,t.useEffect)(()=>{document.hidden||n();let e=()=>{document.hidden?o():n()};return document.addEventListener("visibilitychange",e),()=>{o(),document.removeEventListener("visibilitychange",e)}},[]),e}],871587);var l=e.i(67175),n=e.i(463452);let o="nw_poll_votes",a="/api/polls",i=async({pollId:e,articleId:t})=>{try{let l=await fetch(`${a}/${e}?article_id=${t}`);if(!l.ok)throw Error("Failed to fetch poll",{cause:l});let n=await l.json();return c(n)}catch(e){return console.error("Error fetching fairness poll by poll id:",e),!1}},s=async({pollId:e,selectedOptionIds:t,articleId:o,articleCategoryId:i,registered:s,timeBeforeVoting:r})=>{let d=(0,n.getGeo)((0,l.getCookie)("X-UA-Info")??""),u=(0,l.getCookie)("nwuid")??"",c={article_id:o,category_id:i,city:d.city??"",country:d.country??"",nw_cookie:u,registered:s,selected_option_ids:t,state:d.state??"",time_before_voting:r};try{let t=await fetch(`${a}/${e}/vote`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(c)});return await t.json()}catch(e){return console.error("Error submitting fairness poll vote:",e),!1}},r=(e,t)=>`${e}:${t}`;function d(){return{name:"newsweek/fairness-poll",attributes:[],innerBlocks:[],innerHTML:"",tagName:"",outerHTML:""}}let u=new Set(["core/quote","core/pullquote","core/list","core/list-item","core/table","core/buttons","core/gallery","core/embed","jetpack/slideshow","jetpack/image-compare","yoast/faq-block","newsweek/embed-safe","newsweek/embed-instagram"]),c=e=>{if(window.debugNormalizePoll&&(console.debug("%c[normalizePoll]","color: red; font-weight: bold;","***STARTING***"),console.debug("%c[normalizePoll]","color: red; font-weight: bold;","poll",e)),0===e.total_votes||0===e.options.reduce((e,t)=>e+(t.vote_count??0),0))return{...e,options:e.options.map(e=>({...e,normalized_percentage:0}))};let t=e.options.reduce((e,t)=>e+(t.vote_count??0),0);if(0===t)return{...e,options:e.options.map(e=>({...e,normalized_percentage:0}))};let l=e.options.map((e,l)=>{let n=(e.vote_count??0)/t*100,o=Math.floor(n);return{...e,floor:o,remainder:n-o,index:l,normalized_percentage:o}});window.debugNormalizePoll&&console.debug("%c[normalizePoll]","color: red; font-weight: bold;","options with floor and remainder: ",JSON.parse(JSON.stringify(l)));let n=100-l.reduce((e,t)=>e+(t.floor??0),0);if(0===n)return window.debugNormalizePoll&&console.debug("%c[normalizePoll]","color: red; font-weight: bold;","no need to normalize"),{...e,options:l};window.debugNormalizePoll&&console.debug("%c[normalizePoll]","color: red; font-weight: bold;","missing: ",n);let o=l[0].vote_count;if(l.every(e=>e.vote_count===o)&&3===l.length){let t;window.debugNormalizePoll&&console.debug("%c[normalizePoll]","color: red; font-weight: bold;","allEqual and options.length === 3");let o=((t=l.map((e,t)=>({i:t,order:e.display_order??t}))).sort((e,t)=>e.order-t.order),t[Math.floor(t.length/2)].i);l[o].floor+=n;let a={...e,options:l.map(e=>({...e,normalized_percentage:e.floor}))};return window.debugNormalizePoll&&console.debug("%c[normalizePoll]","color: red; font-weight: bold;","result: ",JSON.parse(JSON.stringify(a))),a}l.sort((e,t)=>t.remainder!==(e.remainder??0)?t.remainder-e.remainder:e.index-t.index),window.debugNormalizePoll&&console.debug("%c[normalizePoll]","color: red; font-weight: bold;","options sorted by remainder: ",JSON.parse(JSON.stringify(l)));for(let e=0;ee.index-t.index);let a={...e,options:l};return window.debugNormalizePoll&&(console.debug("%c[normalizePoll]","color: red; font-weight: bold;","result: ",{...a}),console.debug("%c[normalizePoll]","color: red; font-weight: bold;","***ENDING***")),a};e.s(["getPollById",0,i,"getPollVoteOptionIds",0,function(e,t){let n=(0,l.getCookie)(o);if(!n)return new Set;let a=r(e,t),i=n.split(",").find(e=>e.startsWith(a));if(!i)return new Set;let s=i.split(":")[2];return s?new Set(s.split("-").map(Number)):new Set},"hasPollVote",0,function(e,t){let n=(0,l.getCookie)(o);if(!n)return!1;let a=r(e,t);return n.split(",").some(e=>e.startsWith(a))},"injectFairnessPollIntoBlocks",0,e=>{var t;if(!e?.length)return e;let l=function e(t,l=[]){let n=[];for(let o=0;oe.startsWith(s))?i=i.map(e=>e.startsWith(s)?`${s}:${n.join("-")}`:e):i.push(`${s}:${n.join("-")}`),(0,l.setCookieSecure)(o,i.join(","),365)},"normalizePoll",0,c,"submitPollVote",0,s],276094)},127784,e=>{"use strict";var t=e.i(271645);e.s(["useLazyEmbedStart",0,function(e="200px 0px"){let l=(0,t.useRef)(null),[n,o]=(0,t.useState)(!1);return(0,t.useEffect)(()=>{if(n)return;let t=l.current;if(!t)return;if("u"{e.some(e=>e.isIntersecting)&&(o(!0),a.disconnect())},{root:null,rootMargin:e,threshold:0});return a.observe(t),()=>a.disconnect()},[n,e]),{ref:l,shouldStart:n}}])},485611,e=>{e.v({"--border-column":"Table-module__5RxRfG__--border-column","--border-outer":"Table-module__5RxRfG__--border-outer","--fade-end":"Table-module__5RxRfG__--fade-end","--fade-start":"Table-module__5RxRfG__--fade-start","--row-highlighted":"Table-module__5RxRfG__--row-highlighted",body:"Table-module__5RxRfG__body",cell:"Table-module__5RxRfG__cell","cell--align-center":"Table-module__5RxRfG__cell--align-center","cell--align-end":"Table-module__5RxRfG__cell--align-end","cell--align-start":"Table-module__5RxRfG__cell--align-start","cell--valign-center":"Table-module__5RxRfG__cell--valign-center","cell--valign-end":"Table-module__5RxRfG__cell--valign-end","cell--valign-start":"Table-module__5RxRfG__cell--valign-start","cell--width-auto":"Table-module__5RxRfG__cell--width-auto",head:"Table-module__5RxRfG__head",root:"Table-module__5RxRfG__root",row:"Table-module__5RxRfG__row",table:"Table-module__5RxRfG__table"})},300763,e=>{e.v({regularTable:"Table-module-scss-module__JxGXRG__regularTable",tableCaption:"Table-module-scss-module__JxGXRG__tableCaption",tableWrapper:"Table-module-scss-module__JxGXRG__tableWrapper",tbody:"Table-module-scss-module__JxGXRG__tbody",thead:"Table-module-scss-module__JxGXRG__thead"})},792101,e=>{"use strict";var t=e.i(843476),l=e.i(271645),n=e.i(343794);e.i(368649);var o=e.i(593851),a=e.i(89540),i=e.i(831136);e.i(928339);var s=e.i(136944),r=e.i(35597),d=e.i(881590),u=e.i(485611);let c=e=>{let{minWidth:l,rowSpan:n,colSpan:a,align:i,verticalAlign:s,tagName:c,padding:m,paddingInline:g,paddingBlock:f,children:p,className:_,attributes:h}=e,b="auto"===e.width?"0px":e.width,w=(0,r.resolveMixin)({width:b,minWidth:l}),v=(0,o.classNames)(u.default.cell,w.classNames,(0===b||"0px"===b)&&u.default["cell--width-auto"],i&&u.default[`cell--align-${i}`],s&&u.default[`cell--valign-${s}`],_),x={...w.variables,...(0,d.responsiveVariables)("--rs-table-p-vertical",f??m),...(0,d.responsiveVariables)("--rs-table-p-horizontal",g??m)};return(0,t.jsx)(c,{...h,className:v,rowSpan:n,colSpan:a,style:x,children:p})},m=e=>(0,t.jsx)(c,{...e,tagName:"td"}),g=e=>(0,t.jsx)(c,{...e,tagName:"th"}),f=e=>{let{highlighted:l,children:n,className:a,attributes:i}=e,s=e.onClick||i?.onClick,r=(0,o.classNames)(u.default.row,l&&u.default["--row-highlighted"],a);return(0,t.jsx)("tr",{...i,className:r,onClick:s,tabIndex:s?0:void 0,children:n})},p=e=>{let{children:l,attributes:n,className:a}=e;return(0,t.jsx)("tbody",{...n,className:(0,o.classNames)(u.default.body,a),children:l})},_=e=>{let{children:l,attributes:n,className:a}=e;return(0,t.jsx)("thead",{...n,className:(0,o.classNames)(u.default.head,a),children:l})},h=e=>{let{children:n,border:r,columnBorder:d,className:c,attributes:m}=e,g=l.default.useRef(null),f=((e,t={})=>{let{disabled:n}=t,[o]=(0,i.useRTL)(),[r,d]=l.default.useState(null),u=l.default.useCallback(()=>{let t=e.current;if(!t)return;t.clientWidth1,a=l+t.clientWidth{let t=e.current;if(!t||n)return;let l=(0,s.rafThrottle)(u);return requestAnimationFrame(()=>u()),window.addEventListener("resize",l),t.addEventListener("scroll",l),()=>{window.removeEventListener("resize",l),t.removeEventListener("scroll",l)}},[o,n]),r})(g),h=(0,o.classNames)(u.default.root,c,r&&u.default["--border-outer"],d&&u.default["--border-column"],("start"===f||"both"===f)&&u.default["--fade-start"],("end"===f||"both"===f)&&u.default["--fade-end"]),[b]=l.default.Children.toArray(n),w=(0,l.isValidElement)(b),v=w&&b.type===p,x=w&&b.type===_;return(0,t.jsx)("div",{...m,className:h,ref:g,children:(0,t.jsx)("table",{className:u.default.table,children:v||x?n:(0,t.jsx)(p,{children:n})})})};h.displayName="Table",m.displayName="TableCell",g.displayName="TableHeading",f.displayName="TableRow",p.displayName="TableBody",_.displayName="TableHead",h.Cell=m,h.Heading=g,h.Row=f,h.Body=p,h.Head=_;var b=e.i(300763);let w=()=>()=>{};e.s(["default",0,function({block:e,parentStyles:o,...a}){var i;let s=(0,l.useSyncExternalStore)(w,()=>!0,()=>!1),{originalInnerHTML:r}=e;if(!s)return null;let d=(i=r||"",new DOMParser().parseFromString(i,"text/html")),u=r?.includes("is-style-stripes")||!1,c=r?.includes("is-style-regular")||!1,m=d.querySelector("figcaption"),g=m?.textContent||"",f=d.querySelector("table");if(!f)return null;let p=Array.from(f.querySelectorAll("thead tr")).map((e,l)=>(0,t.jsx)("tr",{children:Array.from(e.querySelectorAll("th, td")).map((e,l)=>(0,t.jsx)("th",{scope:"col",dangerouslySetInnerHTML:{__html:e.innerHTML}},l))},l)),_=Array.from(f.querySelectorAll("tbody tr")).map((e,l)=>(0,t.jsx)("tr",{children:Array.from(e.querySelectorAll("th, td")).map((e,l)=>(0,t.jsx)("td",{dangerouslySetInnerHTML:{__html:e.innerHTML}},l))},l)),v=Array.from(f.querySelectorAll("tfoot tr")).map((e,l)=>(0,t.jsx)("tr",{children:Array.from(e.querySelectorAll("th, td")).map((e,l)=>(0,t.jsx)("td",{dangerouslySetInnerHTML:{__html:e.innerHTML}},l))},l));return(0,t.jsxs)("figure",{className:(0,n.default)(b.default.tableWrapper,{[b.default.regularTable]:c,[b.default.stripedTable]:u}),children:[(0,t.jsxs)(h,{className:(0,n.default)(o?.table,o?.defaultRankingTable),...a,children:[(0,t.jsx)(h.Head,{children:p}),(0,t.jsx)(h.Body,{children:_}),(0,t.jsx)("tfoot",{children:v})]}),g&&(0,t.jsx)("figcaption",{className:b.default.tableCaption,children:g})]})}],792101)},863279,e=>{"use strict";e.i(358444),e.s(["isNewsweekDomainUrl",0,(e="")=>e.includes("newsweek.com")])}]);