1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[16313],{8472:(e,t,r)=>{r.d(t,{b:()=>a,q:()=>o});var n=r(38536),i=r(28270);let o=(0,n.A)("div",{target:"ewg5wdb1"})((0,i.Ay)("ad-container-wrapper",{minWidth:18.75,textAlign:"center",elevation:"raised",position:{_:"relative","<xs":"sticky"},top:e=>({"<xs":e?.offsetTop?`calc(var(--sticky-header-height) + ${e.offsetTop}px)`:"calc(var(--sticky-header-height, 0px) + var(--sticky-secondary-header-height, 0px) + var(--sticky-navs-height))"}),paddingBottom:"{s}",mt:{"<md":"{mobileOuterGutter}"}}),""),a=(0,n.A)("div",{target:"ewg5wdb0"})((0,i.Ay)("ad-container-wrapper",{minWidth:18.75,textAlign:"center",elevation:"raised",position:"relative"}),"")},9351:(e,t,r)=>{r.d(t,{ER:()=>v,Ft:()=>l,GX:()=>p,Hd:()=>m,ad:()=>g,fC:()=>f,l8:()=>u,we:()=>y});var n=r(93682),i=r(38536),o=r(28270),a=r(28080);function s(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function c(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?s(Object(r),!0).forEach(function(t){(0,n.A)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):s(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}let l={display:{_:"none",lg:"flex"},justifyContent:"center",alignItems:"center",backgroundColor:"var(--comp-ad-bg)",padding:"var(--dim-space-sm) var(--_size-0)",minWidth:"var(--comp-ad-leaderboard-dim-min-width-mobile)",width:"100%",maxWidth:"100%",textAlign:"center","@media print":{display:"none !important"},"> div":{width:"100%"},"@media (prefers-reduced-motion: reduce)":{transition:"none"}},d={elevation:"var(--dim-layout-elevation-subnav)",position:{_:"static",lg:"sticky"},transition:{_:"none",lg:"top 0.5s ease-in, transform 0.5s ease-in, backgroundColor 0.5s ease-in, boxSh
1adow 0.5s ease-in"}},u=c(c({},d),{},{top:`-${a.vf}px`}),p=c(c({},d),{},{top:"calc(var(--sticky-header-height, var(--_size-0)) + var(--sticky-secondary-header-height, var(--_size-0)) + var(--sticky-navs-height))"}),g={backgroundColor:"color-mix(in srgb, var(--comp-ad-bg) 90%, transparent)",boxShadow:"0 var(--_size-2) var(--_size-4) color-mix(in srgb, var(--palette-neutral-200) 80%, transparent)"},f=(0,i.A)("div",{target:"eqqxtmf2"})((0,o.Ay)({display:{_:"none",lg:"flex"},flexDirection:"column",width:"100%",".ad-disclaimer":{m:"var(--_size-0)"},"&:after":{content:'""',borderBottom:"var(--dim-border-width-sm) solid var(--comp-ad-border)",display:"flex"},py:e=>e.isBelowTheFold?"var(--dim-space-2xl)":void 0}),""),m={transform:{_:"none",lg:`translateY(-${a.vf}px)`}},y=(0,i.A)("div",{target:"eqqxtmf1"})((0,o.Ay)(c(c({},l),{},{padding:"var(--_size-0)",alignItems:e=>e.isTallLeaderboardAd?"flex-start":"center",height:e=>`${e.reservedHeight}px`})),""),v=(0,i.A)("div",{target:"eqqxtmf0"})((0,o.Ay)({display:"flex",flexDirection:"column",width:"100%",textAlign:"center"}),"")},16313:(e,t,r)=>{r.r(t),r.d(t,{default:()=>D});var n=r(93682),i=r(71055),o=r(68014),a=r.n(o),s=r(47382),c=r(87754),l=r(92759),d=r(28080);function u(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function p(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?u(Object(r),!0).forEach(function(t){(0,n.A)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):u(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}let g={display:{_:"none",smd:"flex"},justifyContent:"center",alignItems:"center",backgroundColor:"greyLight",padding:"{s} 0",minWidth:"45.5rem",width:"100%",textAlign:"center","@media print":{display:"none !important"},"> div":{width:"100%"},"@media (prefers-reduced-motion: reduce)":{transition:"none"}},f={elevation:"subnav",position:{_:"static","sdm>":"sticky"},transition:{_:"none","sdm>":"top 0.5s ease-in, transform 0.5s ease-in, backgroundColor 0.5s ease-in, boxSh
1adow 0.5s ease-in"}},m=p(p({},f),{},{top:`-${d.vf}px`}),y=p(p({},f),{},{top:"calc(var(--sticky-header-height, 0px) + var(--sticky-secondary-header-height, 0px) + var(--sticky-navs-height))"}),v={backgroundColor:"rgba(248, 248, 248, 0.9)",boxShadow:"0 2px 4px rgba(237, 237, 237, 0.8)"},b={transform:{"sdm>":`translateY(-${d.vf}px)`}};var h=r(9351),w=r(99916),k=r(800),x=r(50881),O=r(62508),A=r(37717);let _=new s.default("sticky-leaderboard");var E=r(52134),j=r(10379),R=r(9954);function P(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function C(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?P(Object(r),!0).forEach(function(t){(0,n.A)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):P(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}let S=a()(()=>r.e(6906).then(r.bind(r,6906)),{id:"5393820",loadableGenerated:{webpack:()=>[6906]}}),L=new s.default("sticky-leaderboard");function D({isBelowTheFold:e=!1,sx:t={}}){let r,n,o=(0,E.Z)(h.Ft,g),a=(0,E.Z)(h.l8,m),s=(0,E.Z)(h.GX,y),u=(0,E.Z)(h.ad,v),p=(0,E.Z)(h.Hd,b),f="gpt_lb_a",{adHeight:P,exceedsMinHeight:T}=(0,O.A)(f),{0:I,1:Y}=(0,i.useState)(!1),{0:B,1:H}=(0,i.useState)(!1),{0:W,1:z}=(0,i.useState)(!1),{0:V,1:M}=(0,i.useState)(!1),$=(0,i.useRef)(!1),G=(0,i.useRef)(null),N=(0,i.useRef)(null),q=(0,i.useRef)(null),Z=(0,i.useRef)(null),U=(0,i.useRef)(!1),F=(0,i.useRef)(!1),K=(0,i.useRef)(!0),X=(0,l.e0)(),J=(0,E.Z)(),Q=(0,k.BV)("layoutContextProps.siteData.metadata.adConfig.settings.stickyLeaderboardAd",!1),ee=(0,k.BV)("layoutContextProps.isAdsFree",!1),et=(0,j.b7)(),er=!J&&Q,{stickyTableOfContents:en,immersiveTableOfContents:ei,listicleTocToggle:eo}=(0,x.A)(),ea=en||ei||eo,es=X?d.w_:d.dR,ec=(r=(0,A.o)().get("stickyLeaderboardTime"),n=(0,w.T_)(r,d.Vt),_.log("Hook called",{param:r,result:n}),n);(0,i.useEffect)(()=>{L.log("Syncing stickyDurationRef",{stickyDuration:ec}),Z.current=ec},[ec]),(0,i.useEffect)(()=>{let e=I?es:0;document.documentElement.style.setProperty("--sticky-leaderboard-height",`${e}px`)},[I,es]);let el=()=>{G.current&&(G.current.disconnect(),G.current=null),N.current&&(N.current.disconnect(),N.current=null)};(0,i.useEffect)(()=>{if(U.current)return void L.log("Effect skipped - listener already setup",{listenerSetupRef:U.current});L.log("Effect running - setting up sticky behavior",{stickyDuration:ec});let t={removeAdListener:()=>{}};return(async()=>{let r=await (0,w.WN)(q);if(L.log("Checking sticky behavior conditions",{isStickyLeaderboardAdEnabled:er,isAutos:X,isStickyTocPresent:ea,isBelowTheFold:e,isRightBelowNav:r}),!er||X||ea||e||!r){L.log("Sticky behavior disabled - conditions not met"),el();return}let n=async e=>{let t,r=["728x90","970x90"],{size:i,id:o}=e.detail;if(L.log("Ad rendered callback triggered",{size:i,id:o}),$.current||o!==f||!r.includes(i))return void L.log("Skipping sticky logic",{wasStickyRef:$.current,idMatch:o===f,sizeMatch:r.includes(i)});L.log("Setting up sticky behavior for ad"),$.current=!0,window.removeEventListener("adRendered",n),el(),(t=document.getElementById(f))&&(N.current=new IntersectionObserver(e=>{e.forEach(({isIntersecting:e})=>{L.log("Leaderboard ad visibility changed",{isIntersecting:e}),K.current=e})},{threshold:0,rootMargin:"0px"}),N.current.observe(t)),q.current&&(G.current=new IntersectionObserver(e=>{e.forEach(({isIntersecting:e})=>{L.log("Original area visibility changed",{isIntersecting:e}),F.current=e})},{threshold:0,rootMargin:"50px 0px 0px 0px"}),G.current.observe(q.current)),K.current||(L.log("Ad not in view - sliding down"),document.documentElement.style.setProperty("--rr-ad-transition-duration",".5s"),z(!0)),Y(!0),L.log("Ad set to sticky"),await (0,w.cb)(0),z(!1);let a=()=>{window.scrollY>0&&(L.log("Scroll detected",{scrollY:window.scrollY}),M(!0),window.removeEventListener("scroll",a))};if(window.scrollY>0?(L.log("Already scrolled on init",{scrollY:window.scrollY}),M(!0)):(L.log("Adding scroll listener"),window.addEventListener("scroll",a,{passive:!0})),L.log("Checking sticky duration",{stickyDurationRef:Z.current}),null===Z.current)return void L.log("Sticky duration is null - staying sticky indefinitely");L.log("Waiting for sticky duration",{duration:Z.current}),await (0,w.cb)(Z.current);let s=window.scrollY;L.log("Checking if animation should run",{currentScrollY:s,LEADERBOARD_MIN_HEIGHT:d.dR,isOriginalAreaVisible:F.current}),s>d.dR&&!F.current?(L.log("Starting return animation"),H(!0),await (0,w.BD)(),L.log("Animation complete - setting to non-sticky"),Y(!1),H(!1)):(L.log("Skipping animation - user scrolled back or at top"),Y(!1)),window.removeEventListener("scroll",a),el()};window.addEventListener("adRendered",n),U.current=!0,t.removeAdListener=()=>window.removeEventListener("adRendered",n)})(),()=>{t.removeAdListener(),el()}},[ec]);let ed={height:`${d.vf}px`},eu=e?{minHeight:`${d.j0}px`}:{height:`${T&&P?P:es}px`},ep=J&&X,eg=I?C(C(C(C(C(C(C(C({},o),ep&&{backgroundColor:"var(--color-palette-bg-page)"}),s),eu),W?C(C({},a),ed):{}),V?C(C({},u),ed):{}),B?C(C({},p),ed):{}),t):C(C(C(C({},o),ep&&{backgroundColor:"var(--color-palette-bg-page)"}),eu),t),ef=ep?h.fC:i.Fragment,em=ep?{isBelowTheFold:e}:{};return ee||et?null:(0,R.Y)(ef,em,(0,R.Y)("div",{ref:q,style:{width:0,height:0,pointerEvents:"none",opacity:0}
1,"aria-hidden":"true"}),ep?(0,R.Y)(S,null):null,(0,R.Y)(c.A,{id:"gpt-leaderboard-ad",sx:eg}))}},28080:(e,t,r)=>{r.d(t,{Vt:()=>a,dR:()=>o,j0:()=>i,vf:()=>s,w_:()=>n});let n=121,i=121,o=121,a=3e3,s=121},50881:(e,t,r)=>{r.d(t,{A:()=>i});var n=r(800);function i(){let e=(0,n.BV)("data.content.0.metadata.sticky_table_of_contents");return{stickyTableOfContents:e,immersiveTableOfContents:(0,n.BV)("data.content.0.metadata.immersive_table_of_contents"),listicleTocToggle:(0,n.BV)("data.content.0.metadata.listicle_toc")}}},62508:(e,t,r)=>{r.d(t,{A:()=>a});var n=r(71055),i=r(28080),o=r(92759);function a(e){let{0:t,1:r}=(0,n.useState)(null),a=(0,n.useRef)(null),s=(0,o.e0)()?i.w_:i.dR;return(0,n.useEffect)(()=>{let t=()=>{let t=document.getElementById(e);return t?(a.current&&a.current.disconnect(),a.current=new ResizeObserver(e=>{for(let t of e){let e=t.contentRect.height;e>s?r(e):r(null)}}),a.current.observe(t),a.current):null};if(!t()){let r=new MutationObserver(()=>{document.getElementById(e)&&(t(),r.disconnect())});return r.observe(document.body,{childList:!0,subtree:!0}),()=>{r.disconnect(),a.current&&a.current.disconnect()}}return()=>{a.current&&a.current.disconnect()}},[e]),{adHeight:t,exceedsMinHeight:null!==t&&t>s}}},87754:(e,t,r)=>{r.d(t,{A:()=>y});var n=r(1873),i=r(71055),o=r(8472),a=r(38536),s=r(28270);let c=(0,a.A)("div",{target:"e1j8mytm1"})((0,s.Ay)({minWidth:"min(var(--_size-296), 100%)",maxWidth:"100%",textAlign:"center",elevation:"var(--dim-layout-elevation-raised)",position:{_:"relative","<xs":"sticky"},top:e=>({"<xs":e?.offsetTop?`calc(var(--sticky-header-height) + ${e.offsetTop}px)`:"calc(var(--sticky-header-height, var(--_size-0)) + var(--sticky-secondary-header-height, var(--_size-0)) + var(--sticky-navs-height))"}),paddingBottom:"var(--dim-space-sm)",mt:{_:"var(--dim-space-sm)",lg:"0"}}),""),l=(0,a.A)("div",{target:"e1j8mytm0"})((0,s.Ay)({minWidth:"min(var(--_size-296), 100%)",maxWidth:"100%",textAlign:"center",elevation:"var(--dim-layout-elevation-raised)",position:"relative"}),"");var d=r(800),u=r(69346),p=r(12625),g=r(52134),f=r(9954);function m(e){let t=(0,g.Z)(c,o.q),r=(0,i.useRef)(null),a=(0,p.md)(u.eh),s=null;return a?.handler&&(s=a?.handler()),(0,f.Y)(t,(0,n.A)({ref:r,offsetTop:s},e,{suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:r.current?.innerHTML??""}}))}let y=function(e){let t=(0,g.Z)(l,o.b),r=(0,i.useRef)(null),a=(0,d.BV)("layoutContextProps.isAdsFree",!1),s=(0,d.BV)("layoutContextProps.siteData.metadata.adConfig.settings.mobileStickyAds",!1);return a?null:s&&e?.id!=="adAdhesion"?(0,f.Y)(m,e):(0,f.Y)(t,(0,n.A)({ref:r},e,{suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:r.current?.innerHTML??""}}))}},89453:(e,t,r)=>{r.d(t,{G:()=>n});function n(e,t){return new Promise(r=>{let n=new IntersectionObserver(([e])=>{t&&t(e.boundingClientRect),r(e.boundingClientRect),n.disconnect()});n.observe(e)})}},99916:(e,t,r)=>{r.d(t,{BD:()=>u,T_:()=>d,WN:()=>p,cb:()=>l,pK:()=>c});var n=r(89205),i=r(78860),o=r(89453);let a=new(r(47382)).default("sticky-leaderboard"),s=[n.rU.GALLERY,n.rU.RECIPE,n.rU.REVIEW_ARTICLE,n.rU.STANDARD_ARTICLE,n.rU.VEHICLE_SPECS,n.rU.VEHICLE_CATEGORY_RANKINGS,n.rU.LISTICLE];function c(e,t){return!s.includes(e)||(0,i.z)(t)}async function l(e){return new Promise(t=>setTimeout(t,e))}function d(e,t){if(null===e)return t;if(""===e)return null;let r=parseInt(e,10);return!isNaN(r)&&r>=0?1e3*r:t}let u=async()=>{document.documentElement.style.setProperty("--rr-ad-transition-duration",".5s"),document.documentElement.style.setProperty("--sticky-leaderboard-height","0px"),await l(500),document.documentElement.style.setProperty("--rr-ad-transition-duration","0s")};async function p(e){if(!e?.current)return!0;let t=e.current.nextElementSibling;if(!t)return!0;let r=(await (0,o.G)(t)).top+window.scrollY;return a.log("Leaderboard position from top of document",{adTop:r}),r<=250}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.