(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4036],{2747:(e,l,t)=>{"use strict";t.d(l,{G:()=>s});var r=t(76792),a=t(42292),n=t(23233);let i=(0,a.forwardRef)((e,l)=>{let{title:t,titleId:a,desc:n,descId:i,...s}=e;return(0,r.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",ref:l,"aria-labelledby":a,"aria-describedby":i,...s,children:[n?(0,r.jsx)("desc",{id:i,children:n}):null,void 0===t?(0,r.jsx)("title",{id:a,children:"External Link"}):t?(0,r.jsx)("title",{id:a,children:t}):null,(0,r.jsx)("path",{d:"m19.395 3.83-6.82.145c-.423.009-.759-.327-.75-.75s.359-.774.783-.783l8.67-.184a.73.73 0 0 1 .75.75l-.184 8.67c-.009.423-.359.774-.783.783s-.759-.327-.75-.75l.145-6.82-8.625 8.625c-.306.306-.791.316-1.084.023s-.283-.778.023-1.084z"}),(0,r.jsx)("path",{d:"M2.614 7.334h8.966c.857 0 .857 1.348 0 1.348H3.954V20.06h11.657v-5.798c0-.921 1.337-.921 1.337 0v7.143H2.614z"})]})}),s=a.forwardRef((e,l)=>(0,r.jsx)(n.h,{ref:l,icon:i,...e}));s.displayName="ExternalLink"},7192:e=>{e.exports={leftArrowGradient:"SavedLocationsBar_leftArrowGradient__soBkY",rightArrowGradient:"SavedLocationsBar_rightArrowGradient__gE4Zm"}},8527:(e,l,t)=>{"use strict";t.d(l,{SWRProvider:()=>i});var r=t(76792),a=t(42292),n=t(44615);let i=e=>{let{children:l,fallback:t={}}=e,[i]=(0,a.useState)(()=>new Map);return(0,a.useEffect)(()=>{try{let e=localStorage.getItem("app-cache");if(e){let l=JSON.parse(e);Array.isArray(l)&&l.forEach(e=>{let[l,t]=e;i.get(l)||i.set(l,t)})}}catch(e){console.error("Failed to load cache from localStorage:",e)}let e=()=>{try{let e=Array.from(i.entries());localStorage.setItem("app-cache",JSON.stringify(e))}catch(e){console.error("Failed to persist cache to localStorage:",e)}};window.addEventListener("beforeunload",e);let l=setInterval(e,3e4);return()=>{window.removeEventListener("beforeunload",e),clearInterval(l)}},[i]),(0,r.jsx)(n.BE,{value:{provider:()=>i,fallback:t},children:l})}},8720:(e,l,t)=>{"use strict";t.d(l,{Ay:()=>n,Eq:()=>s,Ub:()=>c,Y6:()=>i,Yv:()=>o,uV:()=>a});var r=t(24847),a=function(e){return e.CA="ca",e.CA_QC="ca-qc",e.EXEMPT="exempt",e.GDPR="gdpr",e.JP="jp",e.KR="kr",e.LATAM_CO="latam-co",e.LATAM_DO="latam-do",e.LATAM_PE="latam-pe",e.LGPD="lgpd",e.PIPL="pipl",e.TR_KVKK="tr-kvkk",e.USA="usa",e.USA_CCPA="usa-ccpa",e.USA_CO="usa-co",e.USA_CT="usa-ct",e.USA_VA="usa-va",e.USA_UT="usa-ut",e}({});let n=a,i=["ca-qc","gdpr","latam-co","latam-do","latam-pe","lgpd","pipl","tr-kvkk"],s=["usa","usa-ccpa","usa-co","usa-ct","usa-va"],o=Object.values(a),c=()=>(0,r.getCookie)("twc-privacy")||"exempt"},10804:(e,l,t)=>{"use strict";l.p=void 0;let r=t(36762),a=t(17681),n=t(94770);l.p=async()=>{let e=(0,a.urlFrom)((0,n.getCMSQuickNavUrlConfig)()),l=await fetch(e,{headers:{"Accept-Encoding":"gzip"}});return await (0,r.handleFetchResponse)(l)}},13737:(e,l,t)=>{"use strict";t.d(l,{Analytics:()=>N});var r=t(76792),a=t(42292),n=t(47193),i=t(1843);if(i.A){let e=(0,n.kB)();(!e||(0,n.IN)())&&(0,n.Hg)(),(0,n.Wy)(e)}let s=()=>null;var o=t(73675),c=t(75302),d=t(16151),u=t(83531),h=t(79296),m=t(89170),f=t(22154),v=t(95913),x=t(92700),p=t(61e3),w=t(55198),g=t(153),A=t(10997);let b=new Date().getTime(),y=(0,A.s)(()=>{window.scrollY>j&&(j=window.scrollY)},250);i.A&&window.addEventListener("scroll",y);let j=i.A&&window.innerHeight>0?window.innerHeight:0,C=e=>{let{scriptSrc:l}=e;(()=>{let e="us2-fb061d169ced8343850163112c402d41",l=(0,d.G)(),t=(0,a.useRef)(l),{user:{isUserLoggedIn:r,userID:n}}=(0,m.J)(),i=(0,c.md)(h.tX),s=r?n:null,o=r?i:"",f=(0,c.md)(u.pX),v=(e=>{let{hasInvokedMPInit:l,apiKey:t,isUserLoggedIn:r,customerid:a,email:n,other:i}=e;return!l&&t&&i&&(r&&a&&n||!r)})({hasInvokedMPInit:t.current,apiKey:e,isUserLoggedIn:r,customerid:s,email:o,other:f});(0,a.useEffect)(()=>{if(!e)return void console.error("MParticle API key is required");if(v){var l,r;t.current=!0;let a={isDevelopmentMode:!1,logLevel:"warning",identifyRequest:{userIdentities:{email:o,customerid:s,other:f}},v1SecureServiceUrl:"mparticle.weather.com/webevents/v1/JS/",v2SecureServiceUrl:"mparticle.weather.com/webevents/v2/JS/",v3SecureServiceUrl:"mparticle.weather.com/webevents/v3/JS/",configUrl:"mparticle.weather.com/tags/JS/v2/",identityUrl:"mparticle.weather.com/identity/v1/",aliasUrl:"mparticle.weather.com/webevents/v1/identity/",dataPlan:{planId:"weather_web",planVersion:2},identityCallback:e=>{if(null==e?void 0:e.getUser()){let l=e.getUser().getMPID();l&&(console.debug("MParticle: Identity callback triggered",l),localStorage.setItem("wxu-web/keyval:mparticleUser",JSON.stringify({value:{mpid:l},updatedAt:Date.now()})))}}};console.debug("Mparticle initialized with config:",a),null==(r=window.mParticle)||null==(l=r.init)||l.call(r,e,a)}},[v,e,!1,s,o,f])})();let{setUserAttributes:t}=(0,f.e)(),s=(()=>{let e=(0,d.G)(),l=(0,x.N)(),[t,r]=(0,a.useState)(!1),i=(0,a.useRef)(!1),s=(0,a.useMemo)(()=>({...l}),[l]);return(0,a.useEffect)(()=>{(0,v.Js)(s)&&!t&&r(!0)},[s,t]),(0,a.useCallback)(async()=>{if((0,n.mj)()&&e&&t&&!i.current)try{var l,r,a,o;null==(o=window.mParticle)||null==(a=o.logEvent)||a.call(o,"session-start",null==(r=window.mParticle)||null==(l=r.EventType)?void 0:l.Other,s),i.current=!0,(0,n.SZ)(),console.debug('MParticle: Event "session-start" tracked - sessionId: '.concat(s.sessionId))}catch(e){console.error('MParticle: Event "session-start" failed',e)}},[e,s,t])})(),A=(()=>{let e=(0,d.G)(),l=(0,w.usePathname)(),t=(0,x.N)(),r=(0,g.A)(),[n,i]=(0,a.useState)(!1),s=(0,a.useRef)(!1),o=(0,a.useMemo)(()=>({author:(null==r?void 0:r.author)||"",contentId:null==r?void 0:r.contentId,publishDate:null==r?void 0:r.publishDate,provider:null==r?void 0:r.provider,collection:null==r?void 0:r.collection,entitlements:null==r?void 0:r.entitlements,createdDate:null==r?void 0:r.createdDate,...t,url:l?(0,v.EY)(l):""}),[t,r,l]);return(0,a.useEffect)(()=>{(0,v.Js)(o)&&!n&&i(!0)},[o,n]),(0,a.useCallback)(async()=>{if((null==o?void 0:o.pageId)==="article"&&e&&n&&!s.current)try{var l,t,r,a;null==(a=window.mParticle)||null==(r=a.logEvent)||r.call(a,"article-viewed",null==(t=window.mParticle)||null==(l=t.EventType)?void 0:l.Other,o),console.debug('MParticle: Event "article-viewed" tracked - '.concat(null==o?void 0:o.pageId)),s.current=!0}catch(e){console.error('MParticle: Event "article-viewed" failed',e)}},[e,o,n])})(),y=(()=>{let e=(0,d.G)(),l=(0,x.N)(),[t,r]=(0,a.useState)(!1),i=(0,a.useRef)(!1),s=(0,a.useMemo)(()=>({...l}),[l]);return(0,a.useEffect)(()=>{(0,v.Js)(s)&&!t&&r(!0)},[s,t]),(0,a.useCallback)(async()=>{if(e&&t&&!i.current)try{var l,r,a,o;null==(o=window.mParticle)||null==(a=o.logEvent)||a.call(o,"page-viewed",null==(r=window.mParticle)||null==(l=r.EventType)?void 0:l.Other,s),i.current=!0,(0,n.C)(),console.debug('MParticle: Event "page-viewed" tracked - '.concat(s.pageId))}catch(e){console.error('MParticle: Event "page-viewed" failed',e)}},[e,s,t])})(),C=(()=>{var e,l;let{effectiveLocation:t}=(0,p.s)({}),r=(0,d.G)(),s=(0,x.N)(),[o,c]=(0,a.useState)(!1),u=(0,a.useRef)(!1),h=(0,a.useRef)(void 0);(0,a.useEffect)(()=>{(null==t?void 0:t.geocode)&&(h.current=t.geocode)},[null==t?void 0:t.geocode]);let m=null==t||null==(l=t.geocode)||null==(e=l.split)?void 0:e.call(l,","),f=(null==m?void 0:m[0])?parseFloat(m[0]):void 0,w=(null==m?void 0:m[1])?parseFloat(m[1]):void 0,g=i.A&&(0,n.mj)(),A=(0,a.useMemo)(()=>({...s,latitude:f,longitude:w}),[s,f,w]);return(0,a.useEffect)(()=>{(0,v.Js)(A)&&!o&&c(!0)},[A,o]),(0,a.useCallback)(async()=>{let e=A.latitude,l=A.longitude;if(r&&o&&!u.current&&e&&l&&g)try{var a,n,i,s;null==(s=window.mParticle)||null==(i=s.logEvent)||i.call(s,"location-viewed",null==(n=window.mParticle)||null==(a=n.EventType)?void 0:a.Other,A),u.current=!0,console.debug('MParticle: Event "location-viewed" tracked - '.concat((null==t?void 0:t.displayName)||"Unknown location"))}catch(e){console.error('MParticle: Event "location-viewed" failed',e)}},[r,A,o,t,g])})();return(()=>{let e=(0,x.N)();(0,a.useEffect)(()=>{let l=()=>{var l,t,r,a,n,i;if(null==(t=window.mParticle)||null==(l=t.isInitialized)?void 0:l.call(t)){let l=(new Date().getTime()-b)/1e3,t=function(){let e=document.documentElement.scrollHeight,l=window.innerHeight;j=j||window.scrollY;let t=e===l?100:Math.round(j/(e-l)*100);return t>100?t=100:t{window.removeEventListener("beforeunload",l),window.removeEventListener("blur",l)}},[e])})(),(0,a.useEffect)(()=>{t()},[t]),(0,a.useEffect)(()=>{s()},[s]),(0,a.useEffect)(()=>{A()},[A]),(0,a.useEffect)(()=>{y()},[y]),(0,a.useEffect)(()=>{C()},[C]),(0,r.jsx)(o.default,{src:l,strategy:"beforeInteractive"})},N=e=>{let{scriptSrc:l}=e;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(s,{}),(0,r.jsx)(C,{scriptSrc:l})]})}},14260:(e,l,t)=>{"use strict";t.d(l,{default:()=>v});var r=t(76792),a=t(42292),n=t(48260);function i(e){var l;let{firstName:t,isPremium:a}=e,i=null==t||null==(l=t.charAt(0))?void 0:l.toUpperCase();return(0,r.jsxs)("div",{className:(0,n.cn)("relative flex h-8 w-8 items-center justify-center rounded-full border-1 border-gray-900 md:h-12 md:w-12"),children:[(0,r.jsx)("span",{className:(0,n.cn)("text-sm font-bold text-gray-900 md:text-base",{"translate-y-[-2.5px] md:translate-y-[-3px]":a}),children:i}),a&&(0,r.jsx)("span",{className:(0,n.cn)("absolute bottom-[-1px] left-[-1px] h-[9px] w-8 bg-white text-[6.25px] uppercase md:h-[13px] md:w-12 md:text-[10px]"),children:"Premium"})]})}var s=t(68751),o=t(9198),c=t(99551),d=t(27370),u=t(89170),h=t(75302),m=t(83531),f=t(26752);function v(){let{user:e,userProfile:l}=(0,u.J)(),t=(0,f.h)(),n=(0,h.md)(m.P9),{isUserLoggedIn:v,isUserPremium:x}=e,[p,w]=(0,a.useState)(!1);return(0,r.jsx)("div",{"data-testid":"header-profile",children:v?(0,r.jsxs)(c.AM,{trigger:"hover",openDelay:100,closeDelay:300,open:p,onOpenChange:w,children:[(0,r.jsx)(c.Wv,{asChild:!0,children:(0,r.jsx)("button",{className:"flex cursor-pointer bg-transparent","data-testid":"header-profile-button",children:(0,r.jsx)(i,{firstName:null==l?void 0:l.firstName,isPremium:x})})}),(0,r.jsx)(c.hl,{className:"z-2000001 p-0",children:(0,r.jsxs)("div",{className:"flex flex-col",children:[(0,r.jsxs)("div",{children:[(0,r.jsx)(o.default,{href:"/member/settings","data-testid":"header-profile-account",children:(0,r.jsxs)("div",{className:"flex items-center gap-3 p-4",children:[(0,r.jsx)(i,{firstName:null==l?void 0:l.firstName,isPremium:x}),(0,r.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,r.jsx)(s.Ay,{variant:"Body.S",children:null==l?void 0:l.firstName}),(0,r.jsx)(s.Ay,{className:"text-sm text-gray-500 hover:text-gray-700","data-testid":"header-profile-account",children:"Manage Account"})]})]})}),!x&&(0,r.jsxs)("div",{className:"flex flex-col gap-3 border-t border-gray-200 p-4",children:[(0,r.jsx)(s.Ay,{variant:"Body.L",className:"font-semibold",children:"Unlock our full potential"}),(0,r.jsx)(s.Ay,{children:"Try our best radar and forecasting features for weather planning."}),(0,r.jsx)(o.default,{href:"/subscribe?tpcc=mktg-today-mainmenu-flyout",children:(0,r.jsx)(d.$n,{variant:"default",children:"Go Premium"})})]})]}),(0,r.jsx)("div",{className:"border-t border-gray-200 p-2",children:(0,r.jsx)(d.$n,{variant:"link",onClick:t,"data-testid":"header-profile-signout",children:"Sign Out"})})]})})]}):(0,r.jsx)(o.default,{href:n?"/login":"/signup",children:(0,r.jsx)(d.$n,{variant:"default",className:"whitespace-nowrap text-sm md:text-base py-0 px-3 md:px-4 h-8 md:h-12 font-bold bg-gray-900",children:n?"Sign in":"Sign up"})})})}},15229:(e,l,t)=>{"use strict";t.d(l,{default:()=>E});var r=t(76792),a=t(42292),n=t(75302),i=t(23233);let s=(0,a.forwardRef)((e,l)=>{let{title:t,titleId:a,desc:n,descId:i,...s}=e;return(0,r.jsxs)("svg",{fill:"currentColor",viewBox:"0 0 24 24",ref:l,"aria-labelledby":a,"aria-describedby":i,...s,children:[n?(0,r.jsx)("desc",{id:i,children:n}):null,void 0===t?(0,r.jsx)("title",{id:a,children:"Globe"}):t?(0,r.jsx)("title",{id:a,children:t}):null,(0,r.jsx)("path",{d:"M14.227 8.016h-.141c-.047-.023-.352.305-.352.305s-.234.094-.258.141c0 .047-.07 0-.023.07.023.07.164.023.234-.07.094-.07.258-.117.328-.164.07-.07.094-.047.234-.117.141-.047.234-.07.188-.141-.023-.023-.07-.023-.117-.023h-.117zm-1.243-.375c-.117 0-.258.047-.328.164-.047.117 0 .305-.023.398s-.047.305.07.328c.141.023.141-.188.117-.234s-.023-.281.047-.328c.047-.047.117-.164.258-.164.141-.023.258.094.234.211s.023.234.07.234.211-.094.164-.164.047-.352.047-.258.117.164.188.141-.07-.258-.164-.258c-.094-.023-.281-.023-.328 0-.023 0-.094 0-.164-.023s-.141-.023-.188-.023h-.023zm-.679-.305c-.164.07-.234.047-.234.141 0 .07.141.07.211.047a.7.7 0 0 1 .258-.07c.047-.023.023.07.141.07s.281.047.305.023.164-.164.047-.188c-.094-.023-.234-.117-.328-.188-.023-.023-.023-.023-.047-.023-.094 0-.234.141-.398.188zM6.68 7.242c.07.047.211.047.211.117s.047.234.117.211.07-.164.023-.211-.258-.211-.305-.211-.117-.07-.164-.094h-.023c-.07 0 .07.164.117.211zM2.953 5.555c-.141.094-.211.047-.281.117s-.281.141-.211-.023.07-.188-.047-.141-.141.141-.141.211-.188.164-.188.164.164.023.234 0 .023.141-.047.188-.164.141-.281.117-.117-.117-.188-.141c-.047 0-.094.023-.188.07A11.9 11.9 0 0 0 .045 12c0 6.563 5.344 11.93 11.93 11.906.984 0 1.945-.141 2.859-.375a.174.174 0 0 1-.117-.211c.047-.141-.07-.141-.141-.211-.07-.094.094-.141.07-.188s-.141-.023-.164-.117.094-.258.117-.281c0-.047-.094-.141-.117-.188 0-.047.047-.117.164-.234.094-.094.164-.234.164-.281s-.07-.164-.07-.281c0-.094.07-.141.094-.305 0-.141-.094-.117-.094-.211 0-.117.141-.07.117-.211-.023-.117.07-.211.117-.281s.07-.211.141-.305c.047-.094-.047-.305-.047-.352s.164-.094.094-.188c-.094-.07.023-.141.117-.211.07-.07-.023-.258.047-.516.047-.234.07-.656.07-.703s0-.211-.047-.305c-.07-.117-.141-.188-.234-.234s-.211-.164-.281-.188c-.07 0-.398-.117-.398-.328 0-.188-.234-.328-.258-.469s-.211-.422-.234-.563c0-.117-.305-.164-.328-.328-.047-.164.141-.258.164-.352s-.094-.305-.117-.375c0-.047.211-.258.281-.305s.141-.211.188-.211.047-.141.094-.305c.047-.141-.023-.352-.07-.375s-.094-.188-.141-.258c-.07-.047-.188-.023-.188-.023s.023.141-.094.188c-.141.047-.164-.023-.188-.047-.047-.047-.188-.047-.258-.117s-.164-.164-.258-.188c-.07-.047-.211-.07-.188-.234 0-.164-.164-.258-.234-.281-.047-.023-.164-.094-.234-.047-.047.023-.094 0-.141-.023s-.094-.047-.141-.047c-.094 0-.281-.164-.352-.234s-.117-.164-.234-.164-.141.047-.211.141c-.094.094-.211-.07-.234-.117-.047-.047-.141-.047-.281-.047-.164 0-.258-.211-.305-.234l-.516-.258c-.094-.047-.188-.258-.141-.305s-.07-.234-.07-.234-.188-.211-.258-.211-.281-.375-.398-.492-.398-.352-.445-.469-.07-.305-.188-.211c-.141.094-.023.188.117.305s.117.211.305.352.117.305.188.352c.07.07.352.234.234.328-.117.117-.234-.141-.305-.141-.047-.023-.164-.047-.164-.117.023-.07-.094-.141-.188-.258s-.141-.047-.258-.047 0-.141.047-.211c.07-.07-.07-.164-.141-.188s-.188-.328-.305-.516-.188-.281-.305-.258-.164-.141-.258-.188c-.07-.047-.211-.305-.328-.445-.141-.141-.258-.398-.234-.539s.047-.516.047-.609-.07-.328-.07-.352c0-.047-.07-.117-.117-.117-.047-.023-.211-.211-.328-.211s-.188-.141-.164-.234c.047-.094-.117-.258-.164-.258-.07 0-.164-.164-.211-.258s-.141-.094-.117-.047 0 .141.047.164c.07.023.117.234.07.281-.047.023-.188-.094-.305-.141-.141-.07-.07-.328-.07-.398s-.188-.141-.281-.141c-.07 0-.164.023-.164-.164 0-.164-.258-.258-.328-.258-.094 0-.516-.164-.656-.164s-.375-.117-.445-.07-.234-.094-.305-.094-.07.047-.234.141zm11.203 6.703c.117-.023.211.188.047.211h-.023c-.117 0-.141-.211-.023-.234zm1.782-.141c.117-.023.211.164.047.211h-.023c-.117 0-.141-.211-.023-.234zm-.774.164c-.07-.047-.117-.094-.234-.094-.07 0-.234-.023-.234-.023s.234-.211.328-.211c.094-.023.211-.047.305-.023.117.023.281.094.281.281-.023.164-.094.023-.141.023-.023 0-.141.07-.234.07h-.047zm-2.062-.773s.328-.094.398-.094.281 0 .398.094.305.211.398.188.258.141.234.188-.234.047-.305-.023c-.07-.047-.305-.164-.375-.234-.047-.07-.352-.047-.492-.047h-.164c-.07 0-.141-.023-.117-.094zm1.007-.375c.117-.023.211.117.047.141h-.023c-.117 0-.141-.117-.023-.141zm-.375-5.86c.117-.047.164.07.094.117h-.047c-.094 0-.164-.07-.047-.117m-.515-.093c.094-.094.234 0 .188.047 0 .023-.023.023-.07.023-.07 0-.164-.047-.141-.07zm-2.578-1.711c.07-.023.305-.047.352 0 .07.047.117.234.07.258-.047 0-.023.07-.188.164-.164.07-.211-.164-.234-.211 0-.023-.07-.023-.141 0-.047 0-.094.023-.141.023-.094 0-.141-.141-.07-.188.047-.047.141-.023.211-.023h.141zm.656.094c-.023-.07.258-.188.328-.211s.141.047.234.07c.094 0 .07.141 0 .164-.07 0-.258.023-.375.047h-.047c-.094 0-.141-.047-.141-.047zm-.024-.375c.047-.117.281-.07.305.047.023.047-.047.07-.094.07-.094 0-.234-.047-.211-.094zm-.539-.211c.164-.023.234.07.234.117s-.117.188-.234.164h-.07c-.047 0-.047 0-.094-.07-.047-.094-.328-.047-.375-.047s-.094.164-.164.188-.117-.07-.07-.07c.023-.023-.047-.211.023-.258.047-.047.281-.047.469-.023zm-3.468-.071c.047 0 .398-.117.586-.141s.258.07.281.117.445.07.445.07.211.117.234.141c.047.023.141 0 .188-.047s.07-.117.211-.141.141.117.234.141c.07.023.117 0 .188-.047.094-.047.141.047.141.047s-.047.164-.047.234c0 .047-.094.07-.117.117s-.305 0-.422-.023c-.094-.023-.328-.023-.398 0s-.258.023-.328 0-.07-.141-.141-.188c-.047-.047-.188.07-.258.094s-.188-.117-.164-.188c0-.07-.258-.023-.305 0s-.234.023-.352.023-.211 0-.188-.047c.023-.07.117-.07.188-.07s-.047-.117 0-.117zm4.922.399s-.258-.07-.305-.164c-.07-.094-.305-.094-.422-.141s-.281-.117-.375-.164-.047-.188-.047-.164.188.07.305.094c.234.047.211.047.305.07s.281.164.375.211c.07.047.164.117.258.117h1.102c.07 0 .422.07.398.094s-.047.094-.211.094-.469-.023-.68-.047-.398.023-.398.023l-.281-.023zm-3.61-.586c.164-.047.305-.164.422-.164s.047.188.047.234c.023.047-.117.07-.188.047-.047-.047-.234.023-.305.023s-.094-.094 0-.141zm1.195-.117c.023-.117.141-.094.258-.117.117 0 .281 0 .422.047.164.047.141.047.211.117s.094.188.023.188-.117-.023-.258-.047c-.117-.023-.094-.047-.117-.094s-.258 0-.352 0-.188-.047-.188-.117zM3.234 3.961c.188.023.469.023.516.023s.328.094.492.047.258.023.305.047.07.023.141.094.141.023.234-.047c.094-.047.07-.117.07-.117l.094-.023c.07-.023.141.023.352.047.234.023.164-.047.328-.094a.5.5 0 0 1 .258.023c.047.023.094.047.117.023.047-.023.117-.117.164-.07s.117.164.117.164.164-.141.211-.141.211.047.305.047c.094-.023.445-.023.539.047.07.07.281.047.398.117s.211-.047.164-.07-.188-.141-.188-.141-.211-.234-.234-.281-.07-.047-.117.07-.258.117-.492.117-.07-.117-.328-.117c-.258-.023-.164-.117-.07-.117.07 0 .141-.164.164-.258s.117-.07.305-.07h.422c.094.023.141 0 .188-.023s.094-.047.188-.023c.188.023.094.047.188.117.117.07.164.047.328.117.141.07.094.07.164.07.07.023.281-.023.422-.047s.234-.023.305.047.047.164.141.234-.047-.234-.047-.352.188-.023.305-.023.258-.047.281.023c.023.047-.188.141-.07.258s.211.164.305.164.352.023.234.164-.398.141-.492.141-.258.047-.211.141c.047.07.258.047.398.047s.609.047.727 0 .094-.188-.047-.234-.023-.117.117-.094c.07.023.117 0 .164 0s.094-.023.07 0c-.023.047.023.141.023.234q0 .175.141.141c.141-.034.117-.047.211-.047.094-.023.047-.234-.023-.352-.047-.117-.094-.188-.07-.258 0-.07.164-.07.234-.023.07.07.188.211.188.211s.164.094.211.211.07.07.188.023c.117-.07.141-.047.234.023s.023.211.023.234c0 .047.117 0 .141-.07 0-.094.141-.094.188-.117.07-.023.07-.188.07-.188s-.164-.047-.352-.023c-.164.023-.234-.023-.375-.117s-.047-.164-.117-.258.211-.141.398-.234c.164-.07.328-.023.305.164-.023.211-.047.164.141.141.164-.047-.047-.211.07-.234a3 3 0 0 1 .398-.047c.094.023.516-.047.633-.047s.281.094.398.164c.141.07.469.164.539.211.094.047.633.117.703.141.047.023.047.188.117.328.047.141.188.047.258.047.047 0 .234.094.281.164s.445.117.445.117-.117.117-.141.164c-.047.047-.164.07-.211.117-.094.047-.164-.023-.281-.07-.094-.07-.281-.117-.328-.094s0 .07.023.117c.047.047.211.094.328.188.141.07.094.164.117.258 0 .117-.094-.047-.234-.07s-.141.117-.141.117-.164-.023-.234-.023c-.094 0 0 0-.164-.117-.07-.07-.117-.023-.141 0s-.023.047-.07.023c-.094-.047-.164-.141-.188-.117s-.07-.023-.117-.047-.094-.07-.141-.047h-.211c-.117 0-.234-.023-.281 0-.07.023-.141.023-.211.047-.094.023-.094-.188-.07-.258.047-.07.141-.07.328-.047.164.047.188 0 .234-.07s.07-.141.258-.188 0-.094-.07-.117c-.047-.023-.117-.07-.164 0s-.141.164-.141.164-.094 0-.258-.023-.047-.07.023-.094c.047-.023.141-.188.07-.234s-.094-.07-.211-.047-.047-.094-.117-.141c-.094-.047-.047.023-.047.07s-.117.047-.117.047-.188-.023-.258 0-.188.07-.141.117.164.047.211.164-.164.141-.211.164c-.047 0-.188.07-.188.07s-.164-.047-.305-.047-.164.023-.141.07.094.023.141.023.047.07.141.047c.117-.023.094-.07.211.047s.211.094.398.188-.023.211-.117.211-.094-.07-.141-.164c-.07-.07-.281.023-.281.023s-.188.094-.281.094-.164-.023-.047-.117-.141-.094-.141-.234-.047.141-.047.211c0 .047-.047.047-.117.023h-.211c-.234.023-.188.117-.492.305-.281.188-.352.234-.328.398s.094.117.211.164c.117.023.07.234.188.211.094-.023.164-.07.352.023s.281.117.516.164.375.117.492.07c.141-.023.188 0 .188.117 0 .094.094.117.07.234 0 .117.141-.117.141-.117s.07.211.023.234c-.07.023.023.141.07.141h.07c.047 0 .117.023.164-.023.07-.07-.047-.258-.047-.352 0-.07-.07-.117-.117-.211-.047-.07.094-.094.164-.023.047.07.141.023.234-.047s.094-.188.094-.188-.164-.211-.281-.258-.047-.07.07-.094 0-.07.023-.211c.047-.141.047-.234.117-.234.047 0 .305-.047.492-.023s.305.164.422.164c.141 0 .352.047.398.117s-.164.07-.047.188c.094.117.094.094.188.141s.211.023.328-.141c.094-.164.164-.164.211-.117.047.023.305.328.375.398s.188.211.211.281.188.07.258.07c.047 0 .258.141.281.234 0 .094.047.117.234.141.188.047 0 .188-.023.281-.047.07-.047.117-.117.211-.023.047-.023.047 0 .047s.047-.023.07 0c.07.047.094.094.188.07s.141 0 .188.094c.047.07.117.141.141.211s0 .164-.07.117c-.07-.07-.234-.023-.234-.023s-.094.07-.117.047c-.023-.047-.07-.094-.188-.07a.2.2 0 0 1-.164 0h-.117c-.094.023-.141-.047-.07-.117.07-.047.07-.258.211-.328s.094-.211 0-.211-.141.117-.188.141c-.07.023-.141.023-.258.094-.094.07-.352.047-.234.07.094.023-.164.141-.211.141-.094 0-.07-.164-.07-.234s-.117.047-.117.047-.211-.117-.281-.047-.188.117-.305.211c-.094.07-.328.211-.328.211s.094-.047.234-.07c.164-.047.141-.023.281-.094s.258-.094.375.023c.094.117-.023.188-.023.188s.047.094.117.117c.047.023.047-.023.141-.07s.047.117.07.164c.047.047.117.047.188 0 .07-.07.094-.117.141-.07s.07.141.117.234-.258.117-.328.141c-.07 0-.305.07-.352.07-.047.023-.164.141-.281.141s-.094-.164-.117-.258c0-.094-.117.023-.141.047-.023.047-.141.023-.234.047-.094 0-.258.094-.258.211s.094.164.07.211-.258.094-.352.07-.234.047-.188.094.047.141-.07.117c-.094 0-.094.094-.07.164.047.07-.117.211-.141.141-.047-.047-.117-.07-.117 0s.023.141.117.258c.07.117-.164.164-.281.258-.094.07-.398.352-.539.398s-.141.234-.07.305c.094.07.141.352.188.445s-.023.352-.141.352c-.117-.023-.07-.164-.188-.211s-.188-.281-.211-.445c-.047-.164-.07-.07-.141-.023-.094.047-.164-.117-.188-.141s-.117 0-.211 0c-.07 0-.164.023-.234.023-.164-.023-.211.07-.211.094 0 .047-.023.164-.188.07-.141-.07-.164-.07-.328-.07-.141 0-.281 0-.305.047s-.164.164-.258.188-.281.164-.188.188c.07.023.07.211.023.328s-.047.305-.023.492.188.305.328.422.211.164.352.047.211-.047.234-.023c.047.023.141-.07.117-.188-.047-.117.047-.234.188-.211.047 0 .117 0 .188-.023.07 0 .141-.023.188-.023.117 0 .141.258 0 .375-.164.117-.07.281-.094.398s-.141.141 0 .141.094.023.188.047.164-.07.281-.094c.094 0 .328.211.281.305a1 1 0 0 0-.07.469c.047.164.07.164.117.234.023.047.141.164.258.117s.234-.094.281-.141.305.094.281.141c-.023.023.094.07.164.023.094-.023.117-.094.188-.211a.7.7 0 0 1 .281-.211c.047 0 .211-.164.328-.141.094.023-.047.164-.047.234 0 .094 0 .305.047.328.07 0 .047-.164.117-.281.07-.141.211-.188.281-.188s.117.258.211.211c.094-.07.281-.047.328.023.023.07.07.117.07.117s.07-.047.07-.117c0-.094.211-.141.352-.07s.094.094.164.117c.07 0 .141-.164.164-.188.047-.023 0 .211-.094.328-.117.094.07.07.094.117.023.023.047.023.094 0 .047 0 .117 0 .141.023.047.047.164.094.234.258.094.117.211.094.375.07s.375.07.539.258c.164.164.117.305.234.305s.141.141.141.188-.234.164-.352.188c-.141 0-.141.141.07.117.211-.047.117-.117.258-.141.141-.047.258.047.164.211-.141.164-.375.164-.164.188s.094-.047.211-.188c.117-.164.117-.117.188-.117.094 0 .258.047.328.094s.234.141.352.188c.117.07.258.047.328.023s.328.07.398.188c.07.094.258.117.375.164.094.047.234.188.234.328.023.141-.141.422-.141.492-.023.047-.234.305-.422.469s-.07.352-.07.422c.023.07-.141.375-.094.445s-.047.211-.141.328c-.094.094-.141.258-.188.352-.07.094-.234.07-.398.117-.164.023-.234.07-.234.07s-.305.117-.445.234c-.164.117.047.305-.023.445s-.164.141-.234.305c-.047.117-.094.094-.117.07-.023 0-.047-.023-.07 0-.07.047-.117.141-.117.258-.023.094-.141.211-.328.375-.164.164-.281.141-.469.07-.188-.047-.164-.516-.188-.445s-.023.305.023.352c.023.047.117.211.164.234.07.047.047.117 0 .164-.047.07-.211.305-.258.328s-.469.07-.563.023c-.07-.047-.117.094-.117.188.023.094.094.164-.07.141s-.352-.117-.352-.047.047.211.117.211.164-.047.117.047-.141.164-.211.211c-.047.047-.117.164-.258.258s-.141.141-.117.188.234.023.281.047-.047.211-.094.258-.281.234-.375.281-.094.211-.047.328c4.453-1.406 7.781-5.344 8.273-10.125-.117-.094-.047-.211-.07-.328-.023-.141-.164-.188-.094-.211s.047-.094.234-.281c0-.141.023-.281.023-.422v-.094c-.047-.094-.117-.258-.023-.422a11.77 11.77 0 0 0-2.766-7.125 6 6 0 0 1-.398.047c-.094 0-.234.211-.258.258s-.328 0-.422 0-.188.117-.375.141c-.164.023-.094.141-.07.234 0 .094-.047.141-.141.117-.117-.023-.094.047-.117.117s.023.188-.094.281c-.094.07-.141.117-.258.094-.117 0-.117-.211-.141-.188-.047 0-.234.141-.281.07s-.281-.234-.375-.258c-.094-.047-.164-.188-.188-.258-.047-.07.117-.07.07-.07-.047-.023-.211-.047-.258-.094s-.141-.258-.164-.328c0-.07.141-.164.141-.211 0-.023-.141-.023-.188-.023s-.117-.141-.047-.281.211-.094.211-.094h.117c.07 0 .047.164.023.234s.047.07.094.094.07-.07.07-.117c0-.07-.117-.211-.188-.281-.047-.07-.234-.094-.258-.047s-.164.234-.211.188-.047-.445-.117-.563-.328-.141-.445-.211c-.094-.047-.492-.117-.563-.117-.023 0-.094 0-.141.023a.5.5 0 0 1-.258 0c-.094-.023-.094-.211-.094-.211s-.07.188-.094.234c-.047.047-.141.07-.188.047s-.164-.234-.281-.258h-.117c-.047 0-.094 0-.164-.047-.141-.117.258-.094.281-.094s.328-.07.352-.141c0-.094.094-.188.234-.141.141.023.211-.094.188-.211s.258-.234.305-.164c.047.047.281 0 .211-.117s.281-.211.609-.234.422.023.492.07.281.047.398-.023A11.9 11.9 0 0 0 11.992.304c-3.469 0-6.586 1.5-8.766 3.867z"})]})}),o=a.forwardRef((e,l)=>(0,r.jsx)(i.h,{ref:l,icon:s,...e}));o.displayName="Globe";var c=t(14999),d=t(745),u=t(68751),h=t(27370),m=t(71666),f=t(48260);let v=(0,a.forwardRef)((e,l)=>{let{isImperial:t,isMetric:n,isHybrid:i,expandedRegions:s,LOCALE_DATA:o,handleUnitChange:v,toggleRegion:x,handleLocaleChange:p,inNavigation:w=!1}=e,[g,A]=(0,a.useState)(1);(0,a.useEffect)(()=>{let e=()=>{A(window.innerWidth>=1024?3:window.innerWidth>=768?2:1)};return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]);let b=[{label:"Imperial",unitName:m.tE,active:t,symbol:"\xb0F"},{label:"Metric",unitName:m.cl,active:n,symbol:"\xb0C"},{label:"Hybrid",unitName:m.Uo,active:i,symbol:"Hybrid"}];return(0,r.jsx)("div",{ref:l,className:(0,f.cn)("absolute top-full right-0 left-0 w-full overflow-auto border-b-1 border-[#2524221A] bg-white",{"z-40 max-h-[calc(100vh-56px)] md:max-h-[calc(100vh-73px)]":!w}),children:(0,r.jsxs)("div",{className:(0,f.cn)("mx-auto max-w-screen-xl",{"px-[15px] py-[10px]":!w}),children:[(0,r.jsx)("div",{className:"flex justify-center border-b",children:b.map(e=>{let{unitName:l,active:t,symbol:a}=e;return(0,r.jsx)(h.$n,{onClick:()=>v(l),variant:"ghost",className:(0,f.cn)("text-brand-400 cursor-pointer rounded-none border-b-2 border-transparent",t&&"border-brand-400 border-black"),children:a},l)})}),(0,r.jsxs)("div",{className:"py-3 text-center text-xs text-[#6f7585]",children:[t&&"Imperial - F / mph / miles / inches",n&&"Metric - C / millimeters / km / kmh / millibars",i&&"Hybrid - C / millimeters / miles / mph / millibars"]}),(0,r.jsx)("div",{className:"",children:o.map(e=>(0,r.jsxs)("div",{className:"border-b last:border-b-0",children:[(0,r.jsxs)(h.$n,{onClick:()=>x(e.title),variant:"ghost",className:"flex w-full items-center justify-between rounded-none p-6",children:[(0,r.jsx)(u.Ay,{className:"text-lg font-bold uppercase",children:e.title}),s[e.title]?(0,r.jsx)(c.H,{className:"h-[18px] w-[18px] text-black"}):(0,r.jsx)(d.F,{className:"h-[18px] w-[18px] text-black"})]}),s[e.title]&&(0,r.jsx)("div",{className:"grid grid-cols-1 bg-gray-50 px-[21px] md:grid-cols-2 lg:grid-cols-3",style:{gridAutoFlow:"column",gridTemplateRows:"repeat(".concat(Math.ceil(e.countries.length/g),", auto)")},children:e.countries.map(e=>(0,r.jsxs)(h.$n,{variant:"link",onClick:()=>p(e.locale),className:"flex h-auto items-center justify-between py-2 text-left no-underline hover:underline",children:[e.name," | ",e.language]},e.locale))})]},e.title))})]})})});v.displayName="SettingsMenuContent";var x=t(32035),p=t(60170),w=t(24847),g=t(33845),A=t(28430),b=t(20031);let y=(0,a.forwardRef)((e,l)=>{let{title:t,titleId:a,desc:n,descId:i,...s}=e;return(0,r.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:l,"aria-labelledby":a,"aria-describedby":i,...s,children:[n?(0,r.jsx)("desc",{id:i,children:n}):null,void 0===t?(0,r.jsx)("title",{id:a,children:"Chevron Up"}):t?(0,r.jsx)("title",{id:a,children:t}):null,(0,r.jsx)("path",{fill:"currentColor",d:"M8.471 5.7a.667.667 0 0 0-.942 0L3.35 9.88a.495.495 0 1 0 .7.7L8 6.629l3.95 3.95a.495.495 0 0 0 .7-.7z"})]})}),j=a.forwardRef((e,l)=>(0,r.jsx)(i.h,{ref:l,icon:y,...e}));j.displayName="ChevronUp";var C=t(52350),N=t(55198);function E(e){var l;let{inNavigation:t=!1,onDropdownToggle:i}=e,[s,c]=(0,a.useState)(!1),d=(0,a.useCallback)(e=>{let l=null!=e?e:!s;i&&i(l),c(l)},[s,i]),u=(0,a.useRef)(null),y=(0,a.useRef)(null),[E,R]=(0,a.useState)({}),S=(0,n.md)(x.c2),M=(0,n.md)(x.PF),P=(0,n.md)(x.Vp),U=(null==(l=(0,N.useParams)())?void 0:l.locale)||"en-US",B=U.split("-")[1],{updatePreferences:I}=(0,A.g)(),D=(0,n.md)(g.JK);(0,a.useEffect)(()=>{var e;let l=null==(e=(0,w.getCookie)("unitOfMeasurement"))?void 0:e.toString();if(console.log("UNITS_COOKIE",l),l){let e=(0,m.Bu)(l),t=null==e?void 0:e.name,r=null==D?void 0:D.unit;t&&t!==r&&I({unit:t})}},[I,null==D?void 0:D.unit]);let k=async e=>{try{await I({unit:e})}catch(e){console.error("Failed to update unit preference:",e)}},T=async e=>{try{let l=(0,p.vL)(e);await I({locale:l}),(0,w.setCookie)("sitePref",e,{domain:".".concat(window.location.hostname)}),d(!1);let t=e===b.q?"":e;window.location.href="/".concat(t)}catch(e){console.error("Failed to update locale preference:",e)}};return(0,a.useEffect)(()=>{function e(e){s&&u.current&&y.current&&!u.current.contains(e.target)&&!y.current.contains(e.target)&&d(!1)}return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[d,s]),(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(h.$n,{ref:u,variant:"ghostUI",className:(0,f.cn)("text-brand-active ml-[10px] flex cursor-pointer items-center px-0 md:px-[6px] md:text-gray-900"),onClick:()=>{d()},children:[(0,r.jsx)(o,{size:"md",className:"fill-brand-active md:fill-gray-900"}),(0,r.jsx)("span",{className:"px-[8px] text-[13px] md:text-lg md:font-bold",children:B}),(0,r.jsx)("span",{className:"border-l-brand-active border-l-[1px] pr-1 pl-2 text-[13px] md:border-l-gray-900 md:text-lg md:font-bold",children:S?"\xb0F":"\xb0C"}),s?(0,r.jsx)(j,{className:"text-brand-active h-5 w-auto md:text-gray-900"}):(0,r.jsx)(C.y,{className:"text-brand-active h-5 w-auto md:text-gray-900"})]}),s&&(0,r.jsx)(v,{ref:y,isImperial:S,isMetric:M,isHybrid:P,locale:U,expandedRegions:E,LOCALE_DATA:p.mg,handleUnitChange:k,toggleRegion:e=>{R(l=>{if(l[e])return{...l,[e]:!1};let t={};return Object.keys(l).forEach(e=>{t[e]=!1}),{...t,[e]:!0}})},handleLocaleChange:T,inNavigation:t})]})}},18586:(e,l,t)=>{"use strict";t.d(l,{u:()=>i});var r=t(42292),a=t(75302),n=t(11854);let i=e=>{let l=(0,a.Pj)(),t=(0,a.Xr)((0,r.useMemo)(()=>(0,n.eU)(null,(t,r)=>{for(let[t,a]of e)l.get(t)!==a&&(console.debug("Atom change detected, updating - store value:",l.get(t),"new value:",a),r(t,a))}),[e,l]));(0,r.useEffect)(()=>{t()},[t])}},20031:(e,l,t)=>{"use strict";t.d(l,{q:()=>r});let r="en-US"},22154:(e,l,t)=>{"use strict";t.d(l,{e:()=>m});var r=t(42292),a=t(16151),n=t(75302),i=t(95913),s=t(8950),o=t(79296),c=t(1313),d=t(83531),u=t(1843),h=t(89170);let m=()=>{var e,l,t,m,f;let v=(0,a.G)(),{user:{isUserLoggedIn:x,isUserPremium:p,subscriptionTier:w}}=(0,h.J)(),[g,A]=(0,r.useState)(!1),[b,y]=(0,r.useState)(!1),j=null!=p&&p,C=function(e){var l;return null!=(l=s.pj[e])?l:s.pj[s.C0.none]}(w),N=(0,n.md)(o.Mu),E=(0,n.md)(o.cc),R=(0,n.md)(d.pX),S=(0,n.md)(d.P9),M=u.A?(null==(l=window)||null==(e=l.DprSdk)?void 0:e.getUserConsent("sale-of-data"))!==!1:void 0,P=u.A?(null==(m=window)||null==(t=m.DprSdk)?void 0:t.getUserConsent("sensitive-data"))!==!1:void 0,U=null!=(f=(0,c.getCookie)("subscription"))?f:"",{productID:B=null,expirationDateTime:I=null,transactionDateTime:D=null,firstTransactionDateTime:k=null,autoRenew:T=null,price:L=null,productName:V=null}=(0,i.mT)(U)||{},z=(0,r.useMemo)(()=>({premium:j,premiumProductTier:C,premiumExpiration:I,premiumStart:D,premiumFirstTransactionDate:k,premiumProductId:B,premiumProductAutoRenew:T,premiumPrice:L,premiumProductName:V,isRegisteredUser:x||S||!1,isLoggedIn:x,"Amplitude.device_id":R,$Gender:E,$FirstName:N,saleOfDataAuthorization:M,sensitiveDataAuthorization:P,devUser:!1}),[j,C,I,D,k,B,T,L,V,R,x,S,N,E,M,P]);(0,r.useEffect)(()=>{(0,i.Js)(z)&&!g&&A(!0)},[z,g]);let H=(0,r.useCallback)(()=>{for(let e in z)void 0===z[e]&&delete z[e];if(v&&g&&!b){var e,l,t;let r=null==(t=window.mParticle)||null==(l=t.Identity)||null==(e=l.getCurrentUser)?void 0:e.call(l);if(!r)return void console.warn("MParticle: No current user");r.setUserAttributes(z),y(!0),console.debug("MParticle: User attributes set - ",z)}},[v,z,g,b]);return{userAttributes:z,setUserAttribute:(0,r.useCallback)((e,l)=>{var t,r,a;if(!v)return void console.warn("MParticle is not initialized");let n=null==(a=window.mParticle)||null==(r=a.Identity)||null==(t=r.getCurrentUser)?void 0:t.call(r);if(!n)return void console.warn("MParticle: No current user");n.setUserAttribute(e,l),console.debug("MParticle: User attribute set - ".concat(e))},[v]),setUserAttributes:H,removeUserAttribute:(0,r.useCallback)(e=>{var l,t,r;if(!v)return void console.warn("MParticle is not initialized");let a=null==(r=window.mParticle)||null==(t=r.Identity)||null==(l=t.getCurrentUser)?void 0:l.call(t);if(!a)return void console.warn("MParticle: No current user");a.removeUserAttribute(e),console.debug("MParticle: User attribute removed - ".concat(e))},[v])}}},22395:(e,l,t)=>{"use strict";t.r(l),t.d(l,{default:()=>r});let r={src:"/_next/static/media/apple-icon-152x152.7dd6518b.png",height:152,width:152,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAMAAADz0U65AAAAHlBMVEUAMZg6YbBkgsFHbLVTdbocSaQtV6t2kcgMPZ6Sp9OJ9+/PAAAACXBIWXMAARlAAAEZQAGA43XUAAAAMElEQVR4nDXGQQ4AIAgDsI0xwP9/2Gi0pwLfzEt18sZ60YpcHQW3JKbBjKPgokh6AxNmAKXMzsRIAAAAAElFTkSuQmCC",blurWidth:8,blurHeight:8}},23322:(e,l,t)=>{"use strict";t.d(l,{default:()=>U});var r=t(76792),a=t(42292),n=t(23233);let i=(0,a.forwardRef)((e,l)=>{let{title:t,titleId:a,desc:n,descId:i,...s}=e;return(0,r.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:l,"aria-labelledby":a,"aria-describedby":i,...s,children:[n?(0,r.jsx)("desc",{id:i,children:n}):null,void 0===t?(0,r.jsx)("title",{id:a,children:"Arrow Left"}):t?(0,r.jsx)("title",{id:a,children:t}):null,(0,r.jsx)("path",{fill:"currentColor",d:"M6.44 12.855a.499.499 0 0 0 .706-.705L3.708 8.707h9.585a.5.5 0 1 0 0-1H3.708l3.438-3.442a.499.499 0 0 0-.706-.705L2.5 7.5a1 1 0 0 0 0 1.415z"})]})}),s=a.forwardRef((e,l)=>(0,r.jsx)(n.h,{ref:l,icon:i,...e}));s.displayName="ArrowLeft";let o=(0,a.forwardRef)((e,l)=>{let{title:t,titleId:a,desc:n,descId:i,...s}=e;return(0,r.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:l,"aria-labelledby":a,"aria-describedby":i,...s,children:[n?(0,r.jsx)("desc",{id:i,children:n}):null,void 0===t?(0,r.jsx)("title",{id:a,children:"Arrow Right"}):t?(0,r.jsx)("title",{id:a,children:t}):null,(0,r.jsx)("path",{fill:"currentColor",d:"M9.56 3.56a.499.499 0 0 0-.706.705l3.438 3.443H2.707a.5.5 0 0 0 0 1h9.585L8.854 12.15a.499.499 0 0 0 .706.705l3.94-3.94a1 1 0 0 0 0-1.415z"})]})}),c=a.forwardRef((e,l)=>(0,r.jsx)(n.h,{ref:l,icon:o,...e}));c.displayName="ArrowRight";var d=t(89170),u=t(48260),h=t(7192),m=t.n(h),f=t(83357),v=t.n(f),x=t(30175),p=t(98679),w=t(38580),g=t(56665),A=t(53876),b=t(9645),y=t(74728),j=t(61e3),C=t(75302),N=t(55198);let E=e=>{let{isFavorite:l,placeId:t,name:a,coordinate:n}=e,{user:i}=(0,d.J)(),{isUserLoggedIn:s}=i,{navigate:o}=(0,A.A)(),c=(e=>{let{effectiveLocation:l}=(0,j.s)({}),t=(null==l?void 0:l.placeId)||"",r=(0,N.usePathname)(),a=(0,C.md)(b.X),n=(0,y.n)({key:"today",interpolationArgs:{locId:e,locale:a}});return r.includes(e)?r.replace(t,e):n})(t),{addFavoriteLocation:u,removeFavoriteLocation:h,removeRecentLocation:m}=(0,g.A)();return(0,r.jsxs)("div",{className:"flex h-full max-w-75 shrink-[0] items-center gap-3 border-r-1 border-[#2524221A] px-3 text-nowrap",children:[(0,r.jsx)(v(),{href:c,children:a}),l?(0,r.jsx)("button",{className:"contents cursor-pointer",onClick:()=>h(t),children:(0,r.jsx)(x.B,{className:"h-[18px] w-[18px] text-[#fdc107]"})}):(0,r.jsx)("button",{className:"contents cursor-pointer",onClick:()=>{s?u({name:a,coordinate:n,placeID:t}):o("/signup")},children:(0,r.jsx)(p.F,{className:"h-[18px] w-[18px]"})}),(0,r.jsx)(R,{onDelete:()=>{h(t),m(t)}})]})};function R(e){let{onDelete:l}=e,t=(0,a.useRef)(null),[n,i]=(0,a.useState)(!1);return(0,a.useEffect)(()=>{let e;return n&&(e=e=>{var l;(null==(l=t.current)?void 0:l.contains(e.target))?e.stopPropagation():i(!1)},document.addEventListener("click",e)),()=>{e&&document.removeEventListener("click",e)}},[n]),(0,r.jsxs)("div",{className:"relative flex items-center",children:[(0,r.jsx)("button",{className:"flex cursor-pointer items-center justify-center",onClick:e=>{e.stopPropagation(),i(!0)},children:(0,r.jsx)(w.C,{className:"h-5 w-5"})}),(0,r.jsx)("button",{ref:t,className:(0,u.cn)("bg-brand-400 invisible absolute -top-full -right-full !m-0 h-10 cursor-pointer rounded-lg border border-[#1b4de4] px-[14px] py-[6px] text-sm font-medium text-nowrap text-white opacity-0 transition-[right,opacity] duration-300 ease-out hover:bg-white hover:text-black",n&&"visible top-1/2 right-[10px] -translate-y-1/2 opacity-100"),onClick:l,children:"Delete"})]})}var S=t(87103),M=t(44615);let P=e=>{let{placeId:l}=e,t=(0,C.md)(b.X),{data:a}=(0,M.Ay)(l?["location-data",l]:null,()=>(0,S.$M)(l,t),{revalidateOnFocus:!1,dedupingInterval:3e5});if(!a)return null;let{city:n,latitude:i,longitude:s}=a.location;return(0,r.jsx)(E,{placeId:l,name:n,coordinate:"".concat(i,",").concat(s)})},U=()=>{let{user:e}=(0,d.J)(),{isUserLoggedIn:l}=e,{favoriteLocations:t,recentLocations:n}=(0,g.A)(),i=l?n:n.slice(0,1);i=i.filter(e=>!t.some(l=>{let{placeID:t}=l;return t===e}));let{effectiveLocation:o}=(0,j.s)({}),[h,f]=(0,a.useState)(0),v=(0,a.useRef)(null),x=(0,a.useRef)(null),p=((e,l)=>{if(!e.current)return 0;let t=Array.from(e.current.children);return 0===t.length?0:t[l].offsetLeft})(v,h),[,w]=(0,a.useState)(0),A=()=>w(e=>e+1);(0,a.useEffect)(()=>(window.addEventListener("resize",A),()=>window.removeEventListener("resize",A)),[]),(0,a.useEffect)(()=>{A(),f(0)},[i.length,t.length]);let b=v.current&&x.current&&x.current.clientWidth+p