(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[931],{1247:(e,t,l)=>{"use strict";t.j=r;let a=l(17681),n=l(36762),i=l(84015);async function r(){let e=(0,i.getEmailPreferencesStatusUrlConfig)(),t=(0,a.urlFrom)(e),l=await fetch(t,{method:"GET",credentials:"include",headers:{"Content-Type":"application/json"},next:{revalidate:60}});return(0,n.handleFetchResponse)(l)}},2362:(e,t)=>{"use strict";t.C=void 0,t.C=(e,t,l)=>e&&Array.isArray(e)?e.find(e=>e.subscriptionGroupName===t)||l||null:l||null},4459:(e,t,l)=>{"use strict";l.r(t),l.d(t,{MorningBriefBlock:()=>G,default:()=>Z});var a=l(76792),n=l(42292),i=l(29385),r=l(97935),s=l(4963),o=l(27370),d=l(94591),c=l(44615),u=l(46178),m=l(99551),h=l(31892),p=l(73455),v=l(48260);function x(e){let{className:t,...l}=e;return(0,a.jsx)(h.uB,{"data-slot":"command",className:(0,v.cn)("bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md",t),...l})}function g(e){let{className:t,...l}=e;return(0,a.jsxs)("div",{"data-slot":"command-input-wrapper",className:"flex h-9 items-center gap-2 border-b px-3",children:[(0,a.jsx)(p.A,{className:"size-4 shrink-0 opacity-50"}),(0,a.jsx)(h.uB.Input,{"data-slot":"command-input",className:(0,v.cn)("placeholder:text-muted-foreground flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-hidden disabled:cursor-not-allowed disabled:opacity-50",t),...l})]})}function f(e){let{className:t,...l}=e;return(0,a.jsx)(h.uB.List,{"data-slot":"command-list",className:(0,v.cn)("max-h-[300px] scroll-py-1 overflow-x-hidden overflow-y-auto",t),...l})}function y(e){let{className:t,...l}=e;return(0,a.jsx)(h.uB.Group,{"data-slot":"command-group",className:(0,v.cn)("text-foreground [&_[cmdk-group-heading]]:text-muted-foreground overflow-hidden p-1 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium",t),...l})}function b(e){let{className:t,...l}=e;return(0,a.jsx)(h.uB.Item,{"data-slot":"command-item",className:(0,v.cn)("data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",t),...l})}l(79442);var w=l(65485),j=l(55198);function N(e){var t;let{label:l,placeholder:i,className:s,location:h,onChangeLocation:p}=e,N=(0,j.useParams)(),C=null==N?void 0:N.locale,[T,A]=(0,n.useState)(!1),[M,S]=(0,n.useState)(""),{isLoading:_,data:I}=function(e,t){let l=e.trim().length>0,{isLoading:a,data:n,error:i}=(0,c.Ay)(l?["search/locations",encodeURIComponent(e)]:null,async()=>await (0,d.SK)(e,t));return{isLoading:a,data:n,error:i}}((0,u.A)(M,300),C);return(0,a.jsxs)(m.AM,{open:T,onOpenChange:A,children:[(0,a.jsx)(m.Wv,{asChild:!0,children:(0,a.jsxs)(o.$n,{variant:"outline",role:"combobox",className:(0,v.cn)("text-muted-foreground flex w-full bg-white px-2 text-nowrap",s),children:[(0,a.jsx)("div",{children:_?(0,a.jsx)(r.A,{className:"animate-spin"}):(0,a.jsx)(w.A,{})}),(0,a.jsx)("div",{className:"flex flex-1 px-2 text-start",children:null!=(t=null==h?void 0:h.displayName)?t:l})]})}),(0,a.jsx)(m.hl,{className:"w-[var(--radix-popover-trigger-width)]",showArrow:!1,children:(0,a.jsxs)(x,{shouldFilter:!1,children:[(0,a.jsx)(g,{placeholder:i,value:M,onValueChange:S}),(0,a.jsx)(f,{children:(0,a.jsx)(y,{children:null==I?void 0:I.map(e=>(0,a.jsx)(b,{value:e.locId,onSelect:()=>{null==p||p(e),A(!1)},children:e.address},e.locId))})})]})})]})}var C=l(77722);function T(e){let{label:t,error:l,className:n,...i}=e;return(0,a.jsxs)("div",{className:"w-full",children:[t&&(0,a.jsx)("label",{className:"text-sm",children:t}),(0,a.jsx)(C.p,{...i,className:l?"".concat(n," border-red-500"):n})]})}var A=l(9198);let M={"{{terms}}":{text:"Terms",url:"https://".concat("weather.com","/legal")},"{{privacy}}":{text:"Privacy Policy",url:"https://".concat("weather.com","/en-US/twc/privacy-policy")}},S=/\{\{(.*?)\}\}/g;function _(){return(0,a.jsx)("div",{className:"mt-4 text-xs",children:"By signing up you agree to the {{terms}} & {{privacy}}. Unsubscribe at any time.".split(S).map((e,t)=>{let l=M["{{".concat(e,"}}")];return l?(0,a.jsx)(A.default,{href:l.url,className:"underline",children:l.text},t):(0,a.jsx)("span",{children:e},t)})})}let I={src:"/_next/static/media/morning-brief-logo.73126316.svg"},R={src:"/_next/static/media/ellipse.b0c8befa.png"};var k=l(89512),P=l(27301),E=l(16151),L=l(92700),D=l(87103),F=l(75302),B=l(1247);let z=(0,l(20156).tG)("emailPreferences",null,void 0,{getOnInit:!0});var H=l(89170),V=l(82304);let W=()=>{let[e,t]=(0,F.fp)(z),{user:l}=(0,H.J)(),a=(null==l?void 0:l.userID)||null,i=(null==l?void 0:l.isUserLoggedIn)||!1,r=(0,n.useCallback)(l=>{a&&t({userId:a,expiry:Date.now()+9e5,subscriptions:function(e,t){let l=(null==t?void 0:t.length)?t:V.J3,a={};return e?(null==l||l.forEach(e=>{a[e.subscriptionGroupName]=e}),e.forEach(e=>{a[e.subscriptionGroupName]=e}),Object.values(a)):l}(l,null==e?void 0:e.subscriptions)})},[a,t,null==e?void 0:e.subscriptions]),s=e&&e.userId===a&&e.expiry&&e.expiry>Date.now();return(0,c.Ay)(a&&i&&!s?"getEmailPreferencesStatus/".concat(a):void 0,()=>(0,B.j)(),{revalidateOnFocus:!1,revalidateOnReconnect:!1,refreshInterval:0,errorRetryCount:2,onSuccess:e=>{a&&e&&r(e.subscriptions)}}),{subscriptions:a&&e?e.subscriptions:null,updateSubscriptions:r}};async function O(e,t){let{arg:l}=t,{email:a,location:n,locale:i,isAnonymous:r}=l,{location:s}=await (0,D.$M)(n.placeId,i).catch(()=>({location:null})),o={subscriptions:[{subscriptionGroupName:e,isSubscribed:!0,attributes:{location:n.placeId,latitude:n.latitude,longitude:n.longitude,dmaCode:(null==s?void 0:s.dmaCd)||null,adminDistrict:n.adminDistrict,adminDistrictCode:n.adminDistrictCode||null,postalCode:n.postalCode}}]};return r&&(o.email=a),await (0,P.p_)(o).then(e=>({...e,sentSubscriptions:o.subscriptions}))}var U=l(22627),q=l(2362);let G=()=>{var e,t;let l=(0,j.useParams)(),d=(0,j.useSearchParams)(),c=null==l?void 0:l.locale,{userProfile:u}=(0,H.J)(),[m,h]=(0,n.useState)(null!=(e=null==u?void 0:u.email)?e:""),[p,v]=(0,n.useState)(null),[x,g]=(0,n.useState)(!1),{data:f,loading:y,onSubmit:b,error:w}=function(){let{updateSubscriptions:e}=W(),t=(()=>{let e="alert-subscription-changed",t=(0,E.G)(),l=(0,L.N)();return(0,n.useCallback)(a=>{let{name:n,status:i}=a,r={...l,name:n,status:i?"enabled":"disabled"};if(!t)return void console.warn("MParticle is not initialized");try{var s,o,d,c;null==(c=window.mParticle)||null==(d=c.logEvent)||d.call(c,e,null==(o=window.mParticle)||null==(s=o.EventType)?void 0:s.Other,r),console.debug('MParticle: Event "'.concat(e,'" tracked'),r)}catch(t){console.error('MParticle: Event "'.concat(e,'" failed'),t)}},[l,t])})(),{isMutating:l,trigger:a,data:i,error:r,reset:s}=(0,k.A)("newsletter/signup/daily-newsletters-1",(e,t)=>O("daily-newsletters-1",t));return{loading:l,error:r,data:i,onSubmit:(0,n.useCallback)(async l=>{let n=await a(l);if(n.sentSubscriptions&&e(n.sentSubscriptions),"success"===n.status){var i,r;t({name:"newsletter",status:(null==(r=n.sentSubscriptions)||null==(i=r[0])?void 0:i.isSubscribed)||!1})}return n},[t,a,e]),onReset:s}}(),C=d.get("cm_ven"),A=null==C?void 0:C.startsWith("dnt_newsletter"),{subscriptions:M}=W(),S=(()=>{let e="interaction",t=(0,E.G)(),l=(0,L.N)();return(0,n.useCallback)(a=>{let n={...l,...a};if(!t)return void console.warn("MParticle is not initialized");try{var i,r,s,o;null==(o=window.mParticle)||null==(s=o.logEvent)||s.call(o,e,null==(r=window.mParticle)||null==(i=r.EventType)?void 0:i.Other,n),console.debug('MParticle: Event "'.concat(e,'" tracked'),n)}catch(t){console.error('MParticle: Event "'.concat(e,'" failed'),t)}},[l,t])})(),P=(0,n.useMemo)(()=>(0,q.C)(M,V.rn),[M]),D=(0,n.useCallback)(async e=>{e.preventDefault(),!y&&m.trim()&&p&&(g(!0),S({interactionElement:"morningbrief signup",interactionType:"click",moduleId:"morning-brief-block"}),await b({email:m,location:p,locale:c,isAnonymous:!(null==u?void 0:u.email)}))},[y,m,p,S,b,c,null==u?void 0:u.email]);return!x&&(null==P?void 0:P.isSubscribed)||A?null:(0,a.jsxs)("div",{"data-flatplan-id":"flatplan_signup_form",style:{backgroundImage:'url("'.concat(R.src,'")'),backgroundPosition:"right top",backgroundRepeat:"no-repeat",backgroundSize:"70px"},className:"my-4 space-y-2 rounded-xl bg-white py-5 pr-[30px] pl-5 shadow-[0_3px_20px_0_rgba(181,171,162,0.5)]",children:[(0,a.jsxs)("div",{className:"flex flex-col gap-2 sm:flex-row sm:items-end sm:gap-3",children:[(0,a.jsx)(U.A,{src:I.src,alt:"",className:"m-0 w-37.5",rounded:!1}),(0,a.jsx)("div",{className:"mb-1.5 hidden min-h-[24px] min-w-[2px] bg-black sm:block"}),(0,a.jsx)("div",{className:"text-lg font-semibold",children:"Weather in your inbox"})]}),(null==f?void 0:f.status)==="success"?(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsx)(i.A,{className:"h-6 w-6 text-green-500"}),(0,a.jsx)("div",{className:"text-sm text-gray-700",children:(0,a.jsx)("p",{children:"You are subscribed to the Morning Brief newsletter."})})]}):(0,a.jsxs)("form",{onSubmit:D,className:"flex flex-1 flex-col items-end gap-4 pt-4 lg:flex-row",children:[(0,a.jsx)(T,{id:"email",required:!0,type:"email",placeholder:"Email",className:"h-12",value:m,onChange:e=>h(e.target.value),error:!!(null==f?void 0:f.emailError),disabled:!!(null==u?void 0:u.email)}),(0,a.jsx)(N,{label:"Forecast Location",placeholder:"Search City or Zip Code",className:"h-12 items-center text-sm",location:p,onChangeLocation:v}),(0,a.jsx)("div",{children:(0,a.jsxs)(o.$n,{type:"submit",className:"flex h-12 items-center gap-1 text-nowrap",disabled:y||!(m&&p),children:[(0,a.jsx)("span",{children:"Sign Up"}),y&&(0,a.jsx)(r.A,{className:"animate-spin"})]})})]}),w&&(0,a.jsxs)("div",{className:"flex items-center gap-2 text-red-500",children:[(0,a.jsx)(s.A,{className:"h-6 w-6 text-red-500"}),(0,a.jsx)("div",{className:"text-sm",children:"Failed to subscribe, please try again."})]}),(null==f?void 0:f.status)==="error"&&(0,a.jsxs)("div",{className:"flex items-center gap-2 text-red-500",children:[(0,a.jsx)(s.A,{className:"h-6 w-6 text-red-500"}),(0,a.jsx)("div",{className:"text-sm",children:null!=(t=f.emailError)?t:f.error})]}),(0,a.jsx)(_,{})]})};G.displayName="MorningBriefBlock";let Z=G},4883:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getSunWeatherAlertHeadlinesUrlConfig=function(e){let{geocode:t,countryCode:l,areaId:a,adminDistrictCode:n,language:i}=e,r={format:"json",language:i,apiKey:"71f92ea9dd2f4790b92ea9dd2f779061"};return t&&(r.geocode=t),l&&(r.countryCode=l),a&&(r.areaId=a),n&&(r.adminDistrictCode=n),{host:"api.weather.com",protocol:"https",pathname:"/v3/alerts/headlines",query:r}},t.getSunWeatherAlertDetailUrlConfig=function(e){let{detailKey:t,language:l}=e;return{host:"api.weather.com",protocol:"https",pathname:"/v3/alerts/detail",query:{alertId:t,format:"json",language:l,apiKey:"71f92ea9dd2f4790b92ea9dd2f779061"}}}},6626:(e,t,l)=>{"use strict";l.r(t),l.d(t,{SlideshowBlock:()=>s,default:()=>o});var a=l(76792);l(42292);var n=l(49192),i=l(98066),r=l(18556);let s=e=>{let{slides:t=[],settings:l={},id:s}=e;if(!(0,r.J)(t))return null;let o=[];for(let e of t){var d;if(!e.imageAsset){console.error("Slide missing imageAsset:",e);continue}let t=(0,i.bt)(e.imageAsset)?e.imageAsset:null;if(!t||!t.url){console.error("Invalid imageAsset or missing URL:",t);continue}let l={...t,seo:{...t.seo,caption:e.imageCaption||t.caption||"",altText:e.imageTitle&&""!==e.imageTitle.trim()?e.imageTitle:(null==(d=t.seo)?void 0:d.altText)||""},...!e.imageTitle||""===e.imageTitle.trim()||/\.(jpg|jpeg|png|gif|webp|bmp|tiff|svg)$/i.test(e.imageTitle)||/^[A-Z0-9_]+\d*\.[a-zA-Z]+$/i.test(e.imageTitle)||/^[a-zA-Z0-9_-]+\d+$/i.test(e.imageTitle)||/[._][0-9]+/i.test(e.imageTitle)||/^[A-Z0-9_]+$/i.test(e.imageTitle)?{}:{filename:e.imageTitle}};o.push(l)}return 0===o.length?(console.error("SlideshowBlock - No valid assets after transformation"),(0,a.jsx)("div",{className:"text-center text-red-500",children:"Error: Could not load images for the slideshow."})):(0,a.jsx)(n.A,{id:s||"slideshow-".concat(Math.random().toString(36).substring(2,9)),assets:o.slice(0,20),allSlides:o,totalAssets:o.length,rounded:(null==l?void 0:l.rounded)||!1,blockType:"Slideshow",slides:t,settings:l,sendTrackString:()=>{}})},o=s},7886:(e,t,l)=>{"use strict";l.d(t,{e:()=>r});var a=l(76792);l(42292);var n=l(48260),i=l(71666);let r=e=>{let t,l,{precipType:r="rain",rain:s,snow:o,qpf:d=0,qpfSnow:c=0,units:u,unitOverride:m,className:h,unitClass:p}=e,v=null!=s?s:d,x=null!=o?o:c,g=u?(0,i.Bu)(u):null;if("snow"===r)t=x,l="accumulation";else if("rain"===r)t=v,l="precip";else if("precip"===r){let e=Number(v)>=Number(x);t=e?v:x,l=e?"precip":"accumulation"}else t=v,l="precip";let f=null==g?void 0:g[l];return(0,a.jsxs)("span",{"data-testid":"AccumulationValue",className:(0,n.cn)(h),children:[(0,a.jsx)("span",{children:t})," ",(0,a.jsx)("span",{className:(0,n.cn)(p),children:m||f})]})}},8366:(e,t,l)=>{"use strict";l.d(t,{o:()=>s});var a=l(76792),n=l(42292),i=l(23233);let r=(0,n.forwardRef)((e,t)=>{let{title:l,titleId:n,desc:i,descId:r,...s}=e;return(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:t,"aria-labelledby":n,"aria-describedby":r,...s,children:[i?(0,a.jsx)("desc",{id:r,children:i}):null,void 0===l?(0,a.jsx)("title",{id:n,children:"Uv Index"}):l?(0,a.jsx)("title",{id:n,children:l}):null,(0,a.jsx)("path",{fill:"currentColor",fillRule:"evenodd",d:"m8.022 15.021-1.748-2.94-3.29.932.931-3.284L.977 8.01l2.936-1.72-.924-3.236 3.278.874L8.022.977l1.7 2.949 3.255-.861-.868 3.226 2.853 1.717-2.854 1.718L12.98 13l-3.265-.918zm1.216-4.112 2.325.654-.615-2.306 2.075-1.249-2.075-1.248.615-2.287-2.325.615-1.23-2.132L6.74 5.088l-2.305-.615.653 2.287-2.132 1.248 2.132 1.25-.653 2.305 2.305-.654 1.268 2.133z",clipRule:"evenodd"})]})}),s=n.forwardRef((e,t)=>(0,a.jsx)(i.h,{ref:t,icon:r,...e}));s.displayName="UvIndex"},9946:(e,t)=>{"use strict";t.k=void 0,t.k=e=>{let{phenomena:t,significance:l,areaId:a,officeCode:n,eventTrackingNumber:i,locId:r}=e;return"".concat("/weather/alerts/localalerts/l/".concat(r),"?phenomena=").concat(t,"&significance=").concat(l,"&areaid=").concat(a,"&office=").concat(n,"&etn=").concat(i)}},11806:(e,t,l)=>{"use strict";l.r(t),l.d(t,{TwitterBlock:()=>r,default:()=>s});var a=l(76792),n=l(42292);let i="twitter-script-loaded",r=e=>{let{entryMethod:t,tweetURL:l,tweetId:r,showThread:s}=e,o=(0,n.useRef)(null),d=(0,n.useCallback)(()=>"id"===t&&r?"https://twitter.com/i/status/".concat(r):"url"===t&&l?l.replace("x.com","twitter.com"):null,[t,r,l]),{isLoaded:c}=function(){let[e,t]=(0,n.useState)(()=>!!(window.twttr&&window.twttr.widgets)),[l,a]=(0,n.useState)(null);return(0,n.useEffect)(()=>{if(e)return;if(!l){if(window.twttr&&window.twttr.widgets)return void t(!0);a(new Promise(e=>{if(window.twttr&&window.twttr.widgets){t(!0),e();return}let l=document.createElement("script");l.src="https://platform.twitter.com/widgets.js",l.async=!0,l.onload=()=>{t(!0);let l=new CustomEvent(i);window.dispatchEvent(l),e()},document.body.appendChild(l)}))}l&&l.then(()=>t(!0));let n=()=>t(!0);return window.addEventListener(i,n),()=>{window.removeEventListener(i,n)}},[e,l]),{isLoaded:e}}();return(0,n.useEffect)(()=>{let e=d();e&&(o.current&&(o.current.innerHTML='\n

\n \n
\n ')),c&&window.twttr&&window.twttr.widgets&&window.twttr.widgets.load(o.current))},[d,r,l,t,s,c]),(0,a.jsx)("div",{className:"flex items-center",ref:o})},s=r},12962:(e,t,l)=>{"use strict";t.lh=void 0,t.$c=h,t.eH=p;let a=l(39825),n=l(17681),i=l(36762),r=l(35181),s=l(76088),o=l(73923),d=l(76088),c=l(50532),u=l(76159),m=l(43716);async function h(e){let l=(0,a.getHourlyForecastUrlConfig)(e),r=(0,n.urlFrom)(l),s=await fetch(r,{headers:{"Accept-Encoding":"gzip"},next:{revalidate:300}}),o=await (0,i.handleFetchResponse)(s);return(0,t.lh)(o)}async function p(e){let[t,l]=await Promise.all([h(e),(0,u.getHourlyAirQualityForecast)({geocode:e.geocode,language:e.language,scale:m.AirQualityScale.EPA,duration:function(e){switch(e){case s.HourlyForecastDuration.SIX_HOUR:case s.HourlyForecastDuration.TWELVE_HOUR:return m.AirQualityForecastDuration.TWELVE_HOUR;case s.HourlyForecastDuration.ONE_DAY:return m.AirQualityForecastDuration.TWENTY_FOUR_HOUR;case s.HourlyForecastDuration.TWO_DAY:return m.AirQualityForecastDuration.FORTY_EIGHT_HOUR;case s.HourlyForecastDuration.THREE_DAY:case s.HourlyForecastDuration.TEN_DAY:case s.HourlyForecastDuration.FIFTEEN_DAY:default:return m.AirQualityForecastDuration.SEVENTY_TWO_HOUR}}(e.duration)}).catch(()=>null)]);var a=t,n=l;if(!n)return a;let i=new Map(n.forecast.map(e=>[e.validTimeGmt,e]));return a.map(e=>{let t=i.get(e.validTimeUtc);return t?{...e,airQualityIndex:t.airQualityIndex,airQualityCategory:t.airQualityCategory}:e})}t.lh=(0,r.createTransformer)(e=>{var t,l,a,n,i,r,s,u,m,h,p,v,x,g,f,y,b,w,j,N,C,T,A,M,S,_,I,R,k;return{cloudCover:null!=(t=e.cloudCover)?t:0,dayOfWeek:null!=(l=e.dayOfWeek)?l:"",dayOrNight:null!=(a=e.dayOrNight)?a:d.DayOrNight.DAY,expirationTimeUtc:null!=(n=e.expirationTimeUtc)?n:0,iconCode:null!=(i=e.iconCode)?i:0,iconCodeExtend:null!=(r=e.iconCodeExtend)?r:0,precipChance:null!=(s=e.precipChance)?s:0,precipType:null!=(u=e.precipType)?u:o.PrecipType.RAIN,pressureMeanSeaLevel:null!=(m=e.pressureMeanSeaLevel)?m:0,qpf:null!=(h=e.qpf)?h:0,qpfSnow:null!=(p=e.qpfSnow)?p:0,relativeHumidity:null!=(v=e.relativeHumidity)?v:0,temperature:null!=(x=e.temperature)?x:0,temperatureDewPoint:null!=(g=e.temperatureDewPoint)?g:0,temperatureFeelsLike:null!=(f=e.temperatureFeelsLike)?f:0,temperatureHeatIndex:null!=(y=e.temperatureHeatIndex)?y:0,temperatureWindChill:null!=(b=e.temperatureWindChill)?b:0,uvDescription:null!=(w=e.uvDescription)?w:d.UVDescription.LOW,uvIndex:null!=(j=e.uvIndex)?j:0,validTimeLocal:null!=(N=e.validTimeLocal)?N:"",validTimeUtc:null!=(C=e.validTimeUtc)?C:0,visibility:null!=(T=e.visibility)?T:0,windDirection:null!=(A=e.windDirection)?A:0,windDirectionCardinal:(0,c.normalizeCardinal)(null!=(M=e.windDirectionCardinal)?M:d.WindDirectionCardinal.NORTH),windGust:null!=(S=e.windGust)?S:null,windSpeed:null!=(_=e.windSpeed)?_:0,wxPhraseLong:null!=(I=e.wxPhraseLong)?I:"",wxPhraseShort:null!=(R=e.wxPhraseShort)?R:"",wxSeverity:null!=(k=e.wxSeverity)?k:0}})},13886:(e,t,l)=>{"use strict";t.I=r;let a=l(47681),n=l(17681),i=l(36762);async function r(e){let t=(0,a.getSunV3WeatherInsightsUrlConfig)(e),l=(0,n.urlFrom)(t),r=await fetch(l,{headers:{"Accept-Encoding":"gzip"},next:{revalidate:300}});return(0,i.handleFetchResponse)(r)}},14124:(e,t,l)=>{"use strict";t.vt=void 0,t.v1=o;let a=l(39825),n=l(17681),i=l(36762),r=l(35181),s=l(50532);async function o(e){let l=(0,a.getDailyForecastUrlConfig)(e),r=(0,n.urlFrom)(l),s=await fetch(r,{headers:{"Accept-Encoding":"gzip"},next:{revalidate:1800}}),o=await (0,i.handleFetchResponse)(s);return(0,t.vt)(o)}t.vt=(0,r.createTransformer)((e,t,l)=>{var a,n,i,r,o,d,c,u,m,h,p,v,x,g,f,y,b,w,j,N,C,T;let A=2*t,M=A+1,{daypart:S}=l||{};return{calendarDayTemperatureMax:null!=(a=e.calendarDayTemperatureMax)?a:void 0,calendarDayTemperatureMin:null!=(n=e.calendarDayTemperatureMin)?n:void 0,dayOfWeek:null!=(i=e.dayOfWeek)?i:void 0,expirationTimeUtc:null!=(r=e.expirationTimeUtc)?r:void 0,moonPhase:null!=(o=e.moonPhase)?o:void 0,moonPhaseCode:null!=(d=e.moonPhaseCode)?d:void 0,moonPhaseDay:null!=(c=e.moonPhaseDay)?c:void 0,moonriseTimeLocal:null!=(u=e.moonriseTimeLocal)?u:void 0,moonriseTimeUtc:null!=(m=e.moonriseTimeUtc)?m:void 0,moonsetTimeLocal:null!=(h=e.moonsetTimeLocal)?h:void 0,moonsetTimeUtc:null!=(p=e.moonsetTimeUtc)?p:void 0,narrative:null!=(v=e.narrative)?v:void 0,qpf:null!=(x=e.qpf)?x:void 0,qpfSnow:null!=(g=e.qpfSnow)?g:void 0,sunriseTimeLocal:null!=(f=e.sunriseTimeLocal)?f:void 0,sunriseTimeUtc:null!=(y=e.sunriseTimeUtc)?y:void 0,sunsetTimeLocal:null!=(b=e.sunsetTimeLocal)?b:void 0,sunsetTimeUtc:null!=(w=e.sunsetTimeUtc)?w:void 0,temperatureMax:null!=(j=e.temperatureMax)?j:void 0,temperatureMin:null!=(N=e.temperatureMin)?N:void 0,validTimeLocal:null!=(C=e.validTimeLocal)?C:void 0,validTimeUtc:null!=(T=e.validTimeUtc)?T:void 0,daypart:[A,M].map((t,l)=>{var a,n,i,r,o,d,c,u,m,h,p,v,x,g,f,y,b,w,j,N,C,T,A,M,_,I,R,k,P,E,L,D,F,B,z,H,V,W,O,U,q,G,Z,Q,Y,X,K,$,J,ee,et,el,ea,en,ei,er,es,eo,ed;return(null==S||null==(n=S[0])||null==(a=n.daypartName)?void 0:a[t])?{cloudCover:null!=(E=null==(i=S[0].cloudCover)?void 0:i[t])?E:void 0,dayOrNight:null!=(L=null==(r=S[0].dayOrNight)?void 0:r[t])?L:void 0,daypartName:null!=(D=null==(o=S[0].daypartName)?void 0:o[t])?D:void 0,iconCode:null!=(F=null==(d=S[0].iconCode)?void 0:d[t])?F:void 0,iconCodeExtend:null!=(B=null==(c=S[0].iconCodeExtend)?void 0:c[t])?B:void 0,narrative:null!=(z=null==(u=S[0].narrative)?void 0:u[t])?z:void 0,precipChance:null!=(H=null==(m=S[0].precipChance)?void 0:m[t])?H:void 0,precipType:null!=(V=null==(h=S[0].precipType)?void 0:h[t])?V:void 0,qpf:null!=(W=null==(p=S[0].qpf)?void 0:p[t])?W:void 0,qpfSnow:null!=(O=null==(v=S[0].qpfSnow)?void 0:v[t])?O:void 0,qualifierCode:null!=(U=null==(x=S[0].qualifierCode)?void 0:x[t])?U:void 0,qualifierPhrase:null!=(q=null==(g=S[0].qualifierPhrase)?void 0:g[t])?q:void 0,relativeHumidity:null!=(G=null==(f=S[0].relativeHumidity)?void 0:f[t])?G:void 0,snowRange:null!=(Z=null==(y=S[0].snowRange)?void 0:y[t])?Z:void 0,temperature:null!=(Q=null==(b=S[0].temperature)?void 0:b[t])?Q:void 0,temperatureHeatIndex:(null==(w=S[0].temperatureHeatIndex)?void 0:w[t])||void 0,temperatureWindChill:(null==(j=S[0].temperatureWindChill)?void 0:j[t])||void 0,thunderCategory:null!=(Y=null==(N=S[0].thunderCategory)?void 0:N[t])?Y:void 0,thunderIndex:null!=(X=null==(C=S[0].thunderIndex)?void 0:C[t])?X:void 0,uvDescription:null!=(K=null==(T=S[0].uvDescription)?void 0:T[t])?K:void 0,uvIndex:null!=($=null==(A=S[0].uvIndex)?void 0:A[t])?$:void 0,windDirection:null!=(J=null==(M=S[0].windDirection)?void 0:M[t])?J:void 0,windDirectionCardinal:(null==(_=S[0].windDirectionCardinal)?void 0:_[t])?(0,s.normalizeCardinal)(S[0].windDirectionCardinal[t]):void 0,windPhrase:null!=(ee=null==(I=S[0].windPhrase)?void 0:I[t])?ee:void 0,windSpeed:null!=(et=null==(R=S[0].windSpeed)?void 0:R[t])?et:void 0,wxPhraseLong:null!=(el=null==(k=S[0].wxPhraseLong)?void 0:k[t])?el:void 0,wxPhraseShort:null!=(ea=null==(P=S[0].wxPhraseShort)?void 0:P[t])?ea:void 0,...0===l?{sunriseTimeLocal:null!=(en=e.sunriseTimeLocal)?en:void 0,sunsetTimeLocal:null!=(ei=e.sunsetTimeLocal)?ei:void 0}:{moonPhase:null!=(er=e.moonPhase)?er:void 0,moonPhaseCode:null!=(es=e.moonPhaseCode)?es:void 0,moonriseTimeLocal:null!=(eo=e.moonriseTimeLocal)?eo:void 0,moonsetTimeLocal:null!=(ed=e.moonsetTimeLocal)?ed:void 0}}:void 0})}})},15008:(e,t,l)=>{"use strict";l.r(t),l.d(t,{CurrentDetailsBlock:()=>Y,default:()=>X});var a=l(76792),n=l(44685),i=l(46593),r=l(44615),s=l(86942),o=l(55198),d=l(75302),c=l(32035),u=l(71666),m=l(76088),h=l(14124),p=l(42292),v=l(77962),x=l(47421),g=l(68751),f=l(48260),y=l(69585),b=l(40640),w=l(23233);let j=(0,p.forwardRef)((e,t)=>{let{title:l,titleId:n,desc:i,descId:r,...s}=e;return(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:t,"aria-labelledby":n,"aria-describedby":r,...s,children:[i?(0,a.jsx)("desc",{id:r,children:i}):null,void 0===l?(0,a.jsx)("title",{id:n,children:"temperature"}):l?(0,a.jsx)("title",{id:n,children:l}):null,(0,a.jsxs)("g",{fill:"currentColor",children:[(0,a.jsx)("path",{fillRule:"evenodd",d:"M6.5 8.63V3a2 2 0 1 0-4 0v5.63a3.5 3.5 0 1 0 4 0M4.5 2a1 1 0 0 1 1 1v3.5h-2V3a1 1 0 0 1 1-1m0 12a2.5 2.5 0 0 1-1.25-4.665l.25-.14V7.5h2v1.695l.25.14A2.5 2.5 0 0 1 4.5 14",clipRule:"evenodd"}),(0,a.jsx)("path",{d:"M9.938 2.466a.5.5 0 0 1 .5-.5h4.087a.5.5 0 0 1 0 1h-4.087a.5.5 0 0 1-.5-.5M10.438 4.996a.5.5 0 1 0 0 1h2.63a.5.5 0 0 0 0-1zM9.938 11.509a.5.5 0 0 1 .5-.5h2.63a.5.5 0 0 1 0 1h-2.63a.5.5 0 0 1-.5-.5M10.438 8.002a.5.5 0 1 0 0 1h4.087a.5.5 0 0 0 0-1z"})]})]})}),N=p.forwardRef((e,t)=>(0,a.jsx)(w.h,{ref:t,icon:j,...e}));N.displayName="Temperature";var C=l(60393),T=l(75848),A=l(56157),M=l(49694),S=l(8366),_=l(55406),I=l(81217),R=l(28004),k=l(46670),P=l(48834),E=l(63236),L=l(43436),D=l(81692),F=l(23376),B=l(21021);let z=(e,t)=>{var l,a,n,i,r,s,o,d,c,u,m,h;if(!e)return!1;let{top:p,right:v,bottom:x,left:g,width:f,height:y}=e.getBoundingClientRect(),b={t:x,r:window.innerWidth-g,b:window.innerHeight-p,l:v},w={x:(null!=(o=null==t||null==(l=t.threshold)?void 0:l.x)?o:0)*f,y:(null!=(d=null==t||null==(a=t.threshold)?void 0:a.y)?d:0)*y},j={top:null!=(c=null==t||null==(n=t.offset)?void 0:n.top)?c:0,right:null!=(u=null==t||null==(i=t.offset)?void 0:i.right)?u:0,bottom:null!=(m=null==t||null==(r=t.offset)?void 0:r.bottom)?m:0,left:null!=(h=null==t||null==(s=t.offset)?void 0:s.left)?h:0};return b.t>j.top+w.y&&b.r>j.right+w.x&&b.b>j.bottom+w.y&&b.l>j.left+w.x};var H=l(62596),V=l(99838);let W=e=>{let{date:t,normalizeString:l=!0,resetToStartOfHour:a,resetToOffset:n,resetToStartOfMonth:i,resetToEndOfMonth:r,resetToStartOfWeek:s,resetToEndOfWeek:o,resetToHour:d,daysFromDate:c,daysBeforeDate:u,monthsBeforeDate:m,monthsAfterDate:h,yearsBeforeDate:p,yearsAfterDate:v}=e;if(!t)return new Date;let x=l||"string"!=typeof t?(0,V.$)(t):t,g=/([+-]\d{2}:?\d{2})$/,f=x.match(g),y=new Date(x.replace(g,""));if(c&&y.setDate(y.getDate()+c),u&&y.setDate(y.getDate()-u),m&&y.setMonth(y.getMonth()-m),h&&y.setMonth(y.getMonth()+h),a&&(y.setMinutes(0),y.setSeconds(0)),n&&f){let e,t=f[0];t.includes(":")?[,e]=t.split(":"):e=t.slice(-2),y.setMinutes(parseInt(e||"0",10)),y.setSeconds(0)}if(i&&y.setDate(1),r){let e=y.getMonth(),t=y.getFullYear();y.setMonth(e+1),y.setDate(0),y.setFullYear(t)}return s&&y.setDate(y.getDate()-y.getDay()),o&&y.setDate(y.getDate()-y.getDay()+6),d&&y.setHours(d),p&&y.setFullYear(y.getFullYear()-1),v&&y.setFullYear(y.getFullYear()+1),y},O=(0,a.jsxs)("svg",{children:[(0,a.jsx)("title",{children:"Daylight"}),(0,a.jsx)("circle",{cx:"12",cy:"12",r:"12",fill:"#FFF"}),(0,a.jsx)("path",{fill:"#FFB900",d:"M18.405 17.661a1 1 0 0 1-1.437 1.391l-1.665-1.72a1 1 0 1 1 1.437-1.39l1.665 1.72zm-5.541 2.651a1 1 0 0 1-2 0v-2.366a1 1 0 1 1 2 0v2.366zm-6.718-1.624a1 1 0 0 1-1.357-1.469l1.758-1.624a1 1 0 1 1 1.357 1.47l-1.758 1.623zm-2.753-5.769a1 1 0 1 1 .002-2l2.422.001a1 1 0 0 1-.001 2l-2.423-.001zm1.77-6.115A1 1 0 0 1 6.6 5.414l1.664 1.719a1 1 0 0 1-1.436 1.391l-1.665-1.72zm5.751-3.391a1 1 0 1 1 2 0v2.366a1 1 0 0 1-2 0V3.413zm6.5 1.903a1 1 0 1 1 1.356 1.47l-1.757 1.623a1 1 0 1 1-1.357-1.47l1.758-1.623zm3.005 6.114a1 1 0 0 1-.002 2l-2.422-.001a1 1 0 0 1 .001-2l2.423.001z"}),(0,a.jsx)("ellipse",{fill:"#FFB900",cx:"11.85",cy:"11.935",rx:"3.225",ry:"3.256"})]}),U=(0,p.memo)(e=>{var t;let{isLoading:l,sunriseTimeLocal:n,sunsetTimeLocal:i,ianaTimeZone:r,validTimeLocal:s,width:d=100,className:c}=e,u=null==(t=(0,o.useParams)())?void 0:t.locale,m=(0,p.useRef)(null),h=(0,p.useRef)(null),[v,x]=(0,p.useState)(0),f=d/2,y=(0,p.useMemo)(()=>({formattedTime:(0,H.P)({date:n,timeZone:r,locale:u,minutes:!0}),dateTime:W({date:n})}),[r,u,n]),b=(0,p.useMemo)(()=>({formattedTime:(0,H.P)({date:i,timeZone:r,locale:u,minutes:!0}),dateTime:W({date:i})}),[r,u,i]),w=(0,p.useMemo)(()=>W({date:s}),[s]),j=b.dateTime.getTime()-y.dateTime.getTime(),N=(w.getTime()-y.dateTime.getTime())*180/j,C=(e,t)=>{let l="x"===e?Math.cos:Math.sin;return Math.round(1e4*(("y"===e?f-6:f)*(l((t+180)*Math.PI/180)+1)+1.5))/1e4},T=(0,p.useCallback)(()=>{let e=0,t=setInterval(()=>{e>=N?clearInterval(t):x(e=Math.min(e+1,N))},10)},[N]),A=(0,p.useMemo)(()=>(0,D.n)(()=>{m.current&&z(m.current)&&y&&b&&(T(),window.removeEventListener("scroll",A))},400),[T,y,b]);(0,p.useEffect)(()=>(y&&b&&(m.current&&z(m.current)?T():window.addEventListener("scroll",A)),()=>{window.removeEventListener("scroll",A)}),[T,A,y,b]);let M=w.getTime()=y.dateTime.getTime();return y&&b?(0,a.jsx)("div",{ref:m,className:c,children:(0,a.jsxs)("div",{"data-testid":"sunriseSunsetContainer",className:"flex flex-col items-center",children:[(0,a.jsxs)("svg",{"data-testid":"TwcSunChartGraph",className:"mx-auto my-0 block",width:d+27,height:d/2+27-6,children:[(0,a.jsx)("path",{d:"M ".concat(-13.5," ").concat(f-13.5," a 1 1 0 0 0 ").concat(d," 0"),className:"transform-[rotate(180deg)] fill-none stroke-[#252422] stroke-3 [stroke-linecap:round]",style:{transformOrigin:"".concat(f,"px ").concat(f,"px")}}),M&&(0,a.jsx)("g",{ref:h,style:{transform:"translate(".concat(C("x",v),"px, ").concat(C("y",v),"px)")},children:O})]}),(0,a.jsxs)("div",{className:"flex justify-between gap-2",children:[(0,a.jsxs)("div",{"data-testid":"SunriseValue",className:"flex items-center justify-end gap-1.25",children:[(0,a.jsx)(F.m,{}),(0,a.jsx)(g.Ay,{isLoading:l,skeletonClassName:"h-4 w-12",variant:"Body.S",className:"text-sm font-normal",children:y.formattedTime.toLowerCase()})]}),(0,a.jsxs)("div",{"data-testid":"SunsetValue",className:"flex items-center justify-end gap-1.25",children:[(0,a.jsx)(B.d,{}),(0,a.jsx)(g.Ay,{isLoading:l,skeletonClassName:"h-4 w-12",variant:"Body.S",className:"text-sm font-normal",children:b.formattedTime.toLowerCase()})]})]})]})}):null}),q={temperatureMax:-1,temperatureMin:-1,windSpeed:-1,windDirection:-1,windDirectionCardinal:m.WindDirectionCardinal.NORTH_NORTHEAST,relativeHumidity:-1,temperatureDewPoint:-1,pressureAltimeter:-1,pressureTendencyCode:m.PressureTendencyCode.STEADY,uvIndex:-1,visibility:-1},G=e=>{var t;let{currentDetails:l,location:n,isLoading:i}=e,r=(0,x.c3)("CurrentDetails"),s=(0,x.c3)("DetailsTable"),o=(0,d.md)(c.Yt),m=null==(t=(0,u.xP)(o))?void 0:t.code,h=(0,p.useMemo)(()=>((e,t,l)=>[{Icon:N,label:"".concat(t("high")," / ").concat(t("low")),content:(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(_.B,{value:e.temperatureMax})," / ",(0,a.jsx)(_.B,{value:e.temperatureMin})]})},{Icon:C.Z,label:t("wind"),content:(0,a.jsx)(I.Z,{windSpeed:e.windSpeed,units:l,windDirection:e.windDirection,windDirectionCardinal:e.windDirectionCardinal,displayMode:"directionalAndCardinal"})},{Icon:T.K,label:t("humidity"),content:(0,a.jsx)(R.N,{value:e.relativeHumidity})},{Icon:A.$,label:t("dewPoint"),content:(0,a.jsx)(_.B,{value:e.temperatureDewPoint})},{Icon:M.S,label:t("pressure"),content:(0,a.jsx)(k.S,{pressureAltimeter:e.pressureAltimeter,pressureTendencyCode:e.pressureTendencyCode,units:l})},{Icon:S.o,label:t("uvIndex"),content:(0,a.jsx)(P.M,{uvIndex:e.uvIndex})},{Icon:b.S,label:t("visibility"),content:(0,a.jsx)(E.b,{visibility:e.visibility,units:l})},{Icon:t=>(0,a.jsx)(L.r,{...t,moonPhaseCode:e.moonPhaseCode}),label:t("moonPhase"),content:e.moonPhase}])(i||!l?q:l,s,m),[i,l,s,m]),v=(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"mb-3 flex w-full items-end @md/currentDetails:mb-4",children:[(0,a.jsxs)("div",{className:"grow-1",children:[(0,a.jsx)(g.Ay,{className:"text-sm leading-normal @md/currentDetails:text-base",children:r("feelsLike")}),(0,a.jsx)(g.Ay,{variant:"Display.L",className:"text-[40px] leading-normal font-medium @md/currentDetails:text-5xl",isLoading:i,skeletonClassName:"mt-2 h-12 w-16 @md:h-14 @md:w-22",children:(0,a.jsx)(_.B,{value:null==l?void 0:l.temperatureFeelsLike})})]}),(0,a.jsx)(U,{isLoading:i,sunriseTimeLocal:(null==l?void 0:l.sunriseTimeLocal)||"",sunsetTimeLocal:(null==l?void 0:l.sunsetTimeLocal)||"",validTimeLocal:(null==l?void 0:l.validTimeLocal)||"",ianaTimeZone:null==n?void 0:n.ianaTimeZone,className:"mb-1 @md/currentDetails:mb-2"})]}),(0,a.jsx)("div",{className:"grid gap-x-8 gap-y-0 @md/currentDetails:grid-cols-2",children:h.map(e=>{let{Icon:t,label:n,content:r}=e;return(0,a.jsxs)("div",{className:"flex items-center gap-1.5 border-t py-3 [&:first-child]:border-none @md/currentDetails:[&:nth-child(-n+2)]:border-none",children:[(0,a.jsx)(t,{className:"size-4 @md/currentDetails:size-5"}),(0,a.jsx)(g.Ay,{variant:"Body.M",className:"grow-1 font-normal whitespace-nowrap @2xl/currentDetails:text-lg",children:n}),(0,a.jsx)(g.Ay,{isLoading:i||!l,skeletonClassName:"h-6 w-20",variant:"Body.M",className:"text-right leading-[1.5] font-normal tracking-normal @2xl/currentDetails:text-lg",children:r})]},n)})})]});return(0,a.jsxs)(y.Zp,{"aria-label":r("weatherToday"),className:"@container/currentDetails","data-testid":"current-details",children:[(0,a.jsx)(y.aR,{text:i?void 0:"".concat(r("weatherToday")," ").concat(null==n?void 0:n.presentationName),children:i?(0,a.jsx)("span",{className:(0,f.cn)("square inline-block h-6 w-[70%] animate-pulse rounded bg-gray-200")}):null}),(0,a.jsx)(y.Wu,{className:"p-0",children:v})]})};var Z=l(61e3);let Q=e=>{let{location:t,initializing:l,initialError:n}=e,{effectiveLocation:i,isLocationLoading:x}=(0,Z.s)({location:t}),{currentDetails:g,loading:f}=(e=>{var t,l;let a=(0,d.md)(c.Yt),n=null==(t=(0,u.xP)(a))?void 0:t.code,i=null==(l=(0,o.useParams)())?void 0:l.locale,x=(0,v.A)(),{data:g,error:f,isLoading:y}=(0,r.Ay)(e?["get-current-observations",e.geocode,n,i]:null,e=>{let[t,l,a,n]=e;return(0,s.z)({geocode:l,units:a,language:n})},{revalidateOnFocus:!1,dedupingInterval:6e4}),{data:b,error:w,isLoading:j}=(0,r.Ay)(e?["get-daily-forecast",e.geocode,m.ForecastDuration.THREE_DAY,n,i,"KR"===x?x:void 0]:null,e=>{let[t,l,a,n,i,r]=e;return(0,h.v1)({geocode:l,units:n,language:i,duration:a,cscCountryCode:r})},{revalidateOnFocus:!1,dedupingInterval:6e4}),N=null==b?void 0:b[0];return{currentDetails:(0,p.useMemo)(()=>g&&N&&{...g,temperatureMin:N.temperatureMin,temperatureMax:N.temperatureMax,moonPhase:N.moonPhase,moonPhaseCode:N.moonPhaseCode},[g,N]),loading:y||j,error:f||w}})(i),y=l||x||f||!g||!i;return n?null:(0,a.jsx)(G,{location:i,currentDetails:g,isLoading:y})},Y=e=>{let{locationProvider:t,locationEntry:l}=e,r="specified"===t,{specifiedLocationData:s,specifiedLocationError:o,isSpecifiedLocationLoading:d}=(0,i.v)(r?l:null),c=r&&s&&l?(0,n.I)(s):void 0;return(0,a.jsx)(Q,{location:c,initializing:r&&d,initialError:r?o:void 0})},X=Y},21021:(e,t,l)=>{"use strict";l.d(t,{d:()=>s});var a=l(76792),n=l(42292),i=l(23233);let r=(0,n.forwardRef)((e,t)=>{let{title:l,titleId:n,desc:i,descId:r,...s}=e;return(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:t,"aria-labelledby":n,"aria-describedby":r,...s,children:[i?(0,a.jsx)("desc",{id:r,children:i}):null,void 0===l?(0,a.jsx)("title",{id:n,children:"Sunset"}):l?(0,a.jsx)("title",{id:n,children:l}):null,(0,a.jsx)("g",{fill:"currentColor",children:(0,a.jsx)("path",{d:"M14.499 13.502a.5.5 0 0 1 0 1H1.5a.5.5 0 0 1 0-1zM3 11.003a.5.5 0 0 1 0 1H1.5a.5.5 0 0 1 0-1zM14.5 11.003a.5.5 0 0 1 0 1H13a.5.5 0 0 1 0-1zM8 9a3 3 0 0 1 2.958 2.502c.046.272-.183.498-.459.498s-.493-.227-.562-.494A2.006 2.006 0 0 0 8 10a2.004 2.004 0 0 0-1.937 1.506c-.07.267-.287.494-.563.494s-.505-.226-.459-.498A3 3 0 0 1 8 9M3.05 7.053a.5.5 0 0 1 .707 0l1.046 1.046a.5.5 0 0 1-.707.707L3.05 7.76a.5.5 0 0 1 0-.707M12.242 7.053a.5.5 0 0 1 .707.707l-1.046 1.046a.5.5 0 0 1-.707-.707zM8 2.003a.5.5 0 0 1 .5.5v3.585l.941-.939a.5.5 0 0 1 .705.706L8.396 7.607a.56.56 0 0 1-.79 0L5.853 5.855a.5.5 0 0 1 .705-.706l.942.939V2.503a.5.5 0 0 1 .5-.5"})})]})}),s=n.forwardRef((e,t)=>(0,a.jsx)(i.h,{ref:t,icon:r,...e}));s.displayName="Sunset"},21230:(e,t,l)=>{"use strict";l.d(t,{c:()=>a});let a={"@3xs":256,"@2xs":288,"@xs":320,"@sm":384,"@md":448,"@lg":512,"@xl":576,"@2xl":672,"@3xl":768,"@4xl":896,"@5xl":1024,"@6xl":1152,"@7xl":1280}},23376:(e,t,l)=>{"use strict";l.d(t,{m:()=>s});var a=l(76792),n=l(42292),i=l(23233);let r=(0,n.forwardRef)((e,t)=>{let{title:l,titleId:n,desc:i,descId:r,...s}=e;return(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:t,"aria-labelledby":n,"aria-describedby":r,...s,children:[i?(0,a.jsx)("desc",{id:r,children:i}):null,void 0===l?(0,a.jsx)("title",{id:n,children:"Sunrise"}):l?(0,a.jsx)("title",{id:n,children:l}):null,(0,a.jsx)("g",{fill:"currentColor",children:(0,a.jsx)("path",{d:"M14.499 13.5a.5.5 0 1 1 0 1H1.5a.5.5 0 0 1 0-1zM3 11a.5.5 0 0 1 0 1H1.5a.5.5 0 1 1 0-1zM8 9a3 3 0 0 1 2.958 2.502c.046.272-.183.497-.459.497s-.493-.227-.562-.494A2 2 0 0 0 8 10a2 2 0 0 0-1.937 1.505c-.069.267-.287.494-.563.494s-.504-.225-.459-.497A3 3 0 0 1 8 9M14.5 11a.5.5 0 0 1 0 1H13a.5.5 0 1 1 0-1zM3.05 7.05a.5.5 0 0 1 .708 0l1.045 1.046a.5.5 0 0 1-.707.707L3.05 7.757a.5.5 0 0 1 0-.707M12.242 7.05a.5.5 0 0 1 .707.707l-1.046 1.046a.5.5 0 0 1-.707-.707zM7.605 2.397a.56.56 0 0 1 .79 0l1.753 1.753a.5.5 0 0 1-.706.706L8.5 3.917v3.585a.5.5 0 0 1-1 0V3.917l-.942.939a.5.5 0 0 1-.705-.706z"})})]})}),s=n.forwardRef((e,t)=>(0,a.jsx)(i.h,{ref:t,icon:r,...e}));s.displayName="Sunrise"},25115:(e,t,l)=>{"use strict";l.r(t),l.d(t,{BuyButtonBlock:()=>u,default:()=>m});var a=l(76792),n=l(42292),i=l(84057),r=l(30505),s=l(48260);let o=(0,r.F)("inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 my-1 mx-1 py-2 px-4",{variants:{variant:{"bg-brand-200":"bg-brand-200 text-black hover:bg-brand-200/90","bg-brand-300":"bg-brand-300 text-white hover:bg-brand-300/90","bg-yellow-400":"bg-yellow-400 text-black hover:bg-yellow-400/90","bg-green-600":"bg-green-600 text-white hover:bg-green-500/90","bg-violet-500":"bg-violet-500 text-white hover:bg-violet-500/90","bg-gray-900":"bg-gray-900 text-white hover:bg-gray-900/90"},display:{block:"block",inline:"inline-block"}},defaultVariants:{variant:"bg-gray-900",display:"block"}}),d=n.forwardRef((e,t)=>{let{className:l,variant:n,display:r,inline:d=!1,asChild:c=!1,...u}=e,m=c?i.DX:"button";return(0,a.jsx)(m,{className:(0,s.cn)(o({variant:n,display:d?"inline":r,className:l})),ref:t,...u})});d.displayName="Button";var c=l(9198);let u=e=>{let{label:t,url:l,variant:n="bg-gray-900",inline:i=!1,isAffiliate:r=!0}=e;return(0,a.jsx)("div",{className:i?"inline-block":"block",children:(0,a.jsx)(c.default,{href:l,target:"_blank",rel:r?"nofollow noopener noreferrer":"noopener",children:(0,a.jsx)(d,{variant:n,inline:!1,className:"cursor-pointer whitespace-nowrap",children:t})})})},m=u},25895:(e,t,l)=>{"use strict";l.d(t,{A:()=>et});var a=l(76792),n=l(42292),i=l(75302),r=l(30505),s=l(47421),o=l(70336),d=l(68751),c=l(32035),u=l(50772),m=l(21230),h=l(58196),p=l(20135),v=l(23233);let x=(0,n.forwardRef)((e,t)=>{let{title:l,titleId:n,desc:i,descId:r,...s}=e;return(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:t,"aria-labelledby":n,"aria-describedby":r,...s,children:[i?(0,a.jsx)("desc",{id:r,children:i}):null,void 0===l?(0,a.jsx)("title",{id:n,children:"Rain Snow Wintery Mix"}):l?(0,a.jsx)("title",{id:n,children:l}):null,(0,a.jsxs)("g",{fill:"currentColor",children:[(0,a.jsx)("path",{fillRule:"evenodd",d:"M7.982 1.833c-1.303 0-2.391 1.032-2.5 2.37l-.034.407-.405.049c-.67.08-1.209.672-1.209 1.41 0 .724.518 1.307 1.17 1.405l.217.015h4.896l.024.003q.087.008.175.008c1.01 0 1.851-.845 1.851-1.915 0-.946-.66-1.719-1.51-1.882l-.264-.051-.104-.248c-.386-.93-1.279-1.57-2.307-1.57M4.535 3.747C4.843 2.096 6.26.833 7.982.833c1.367 0 2.543.798 3.123 1.95 1.198.352 2.062 1.48 2.062 2.802 0 1.597-1.264 2.915-2.851 2.915a3 3 0 0 1-.245-.01H5.187l-.25-.018H4.92l-.034-.005c-1.168-.16-2.051-1.182-2.051-2.398 0-1.091.71-2.026 1.701-2.322",clipRule:"evenodd","data-figma-bg-blur-radius":20}),(0,a.jsx)("path",{d:"m7.954 9.295-.543 1.491a.5.5 0 0 0 .94.342l.543-1.491a.5.5 0 1 0-.94-.342M10.267 11.085l-.856 2.352a.5.5 0 0 0 .94.342l.856-2.352a.5.5 0 1 0-.94-.342M5.964 11.324a.25.25 0 0 1 .25.25v.152a.25.25 0 0 1 .297.396l-.297.297v2.092l.301.317a.25.25 0 0 1-.301.391v.207a.25.25 0 0 1-.5 0v-.212a.25.25 0 0 1-.309-.389l.309-.315v-2.092l-.307-.307a.25.25 0 0 1 .307-.39v-.147a.25.25 0 0 1 .25-.25"}),(0,a.jsx)("path",{d:"M7.816 12.41a.255.255 0 0 1-.092.345l-.182.107a.253.253 0 0 1-.272.383l-.264-.068-1.792 1.054-.153.366a.247.247 0 0 1-.46-.006l-.152.09a.245.245 0 0 1-.339-.09.255.255 0 0 1 .092-.345l.175-.103a.25.25 0 0 1-.04-.174.25.25 0 0 1 .279-.218l.351.045 1.792-1.054.085-.307a.247.247 0 0 1 .473-.02l.16-.095c.12-.07.271-.03.34.09"}),(0,a.jsx)("path",{d:"M7.815 14.59a.245.245 0 0 1-.339.09l-.16-.094a.247.247 0 0 1-.473-.02l-.084-.308-1.792-1.053-.352.045a.25.25 0 0 1-.279-.219.25.25 0 0 1 .04-.174l-.175-.102a.255.255 0 0 1-.092-.345c.068-.12.22-.16.339-.09l.152.089a.247.247 0 0 1 .46-.006l.154.367 1.791 1.053.265-.067a.25.25 0 0 1 .303.182.25.25 0 0 1-.032.2l.182.107c.119.07.16.225.092.345"})]})]})}),g=n.forwardRef((e,t)=>(0,a.jsx)(v.h,{ref:t,icon:x,...e}));g.displayName="RainSnowWinteryMix";var f=l(60645),y=l(51254);let b=(0,n.forwardRef)((e,t)=>{let{title:l,titleId:n,desc:i,descId:r,...s}=e;return(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:t,"aria-labelledby":n,"aria-describedby":r,...s,children:[i?(0,a.jsx)("desc",{id:r,children:i}):null,void 0===l?(0,a.jsx)("title",{id:n,children:"Feels Like"}):l?(0,a.jsx)("title",{id:n,children:l}):null,(0,a.jsxs)("g",{fill:"currentColor",children:[(0,a.jsx)("path",{fillRule:"evenodd",d:"M10.889 4.163A2 2 0 1 0 13.11.837a2 2 0 0 0-2.222 3.326m.555-2.494a1 1 0 1 1 1.112 1.662 1 1 0 0 1-1.112-1.662M11 15h2a1.003 1.003 0 0 0 1-1v-3.5a1.003 1.003 0 0 0 1-1v-3A1.47 1.47 0 0 0 13.5 5h-3A1.473 1.473 0 0 0 9 6.5v3a1.003 1.003 0 0 0 1 1V14a1.003 1.003 0 0 0 1 1m-.696-8.97A.5.5 0 0 1 10.5 6h3a.473.473 0 0 1 .5.5v3h-1V14h-2V9.5h-1v-3a.47.47 0 0 1 .304-.47",clipRule:"evenodd"}),(0,a.jsx)("path",{d:"M5 10.092V6H4v4.092a1.5 1.5 0 1 0 1 0"}),(0,a.jsx)("path",{fillRule:"evenodd",d:"M2.563 14.417c.574.38 1.248.584 1.937.583A3.497 3.497 0 0 0 7 9.055V3.5a2.5 2.5 0 1 0-5 0v5.555a3.497 3.497 0 0 0 .563 5.362M3.44 2.44a1.5 1.5 0 0 1 2.12 0c.281.281.44.662.44 1.06v5.992l.166.149a2.5 2.5 0 1 1-3.332 0L3 9.49V3.5c0-.398.159-.779.44-1.06",clipRule:"evenodd"})]})]})}),w=n.forwardRef((e,t)=>(0,a.jsx)(v.h,{ref:t,icon:b,...e}));w.displayName="FeelsLike";var j=l(60393),N=l(75848),C=l(49694),T=l(8366);let A=(0,n.forwardRef)((e,t)=>{let{title:l,titleId:n,desc:i,descId:r,...s}=e;return(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:t,"aria-labelledby":n,"aria-describedby":r,...s,children:[i?(0,a.jsx)("desc",{id:r,children:i}):null,void 0===l?(0,a.jsx)("title",{id:n,children:"Cloud Cover"}):l?(0,a.jsx)("title",{id:n,children:l}):null,(0,a.jsx)("path",{fill:"currentColor",fillRule:"evenodd",d:"m11.109 11.591.06.006q.099.01.204.01c1.17 0 2.176-.984 2.176-2.269 0-1.133-.789-2.04-1.778-2.23l-.66-.128-.258-.62c-.488-1.174-1.607-1.967-2.88-1.967-1.614 0-2.987 1.28-3.125 2.974l-.083 1.017-1.013.122c-.707.085-1.303.718-1.303 1.538 0 .795.562 1.415 1.242 1.528l.276.02zm-7.185 1.25-.363-.025h-.003C2.226 12.633 1.2 11.461 1.2 10.044c0-1.434 1.05-2.616 2.403-2.779.189-2.309 2.073-4.122 4.37-4.122 1.812 0 3.366 1.127 4.035 2.737 1.59.305 2.792 1.737 2.792 3.458 0 1.944-1.534 3.519-3.426 3.519q-.165 0-.324-.016z",clipRule:"evenodd"})]})}),M=n.forwardRef((e,t)=>(0,a.jsx)(v.h,{ref:t,icon:A,...e}));M.displayName="CloudCover";var S=l(56157);let _=(0,n.forwardRef)((e,t)=>{let{title:l,titleId:n,desc:i,descId:r,...s}=e;return(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 20 20",ref:t,"aria-labelledby":n,"aria-describedby":r,...s,children:[i?(0,a.jsx)("desc",{id:r,children:i}):null,void 0===l?(0,a.jsx)("title",{id:n,children:"Wind Gust"}):l?(0,a.jsx)("title",{id:n,children:l}):null,(0,a.jsx)("path",{fill:"currentColor",d:"m2.5 4.375 4-3a.63.63 0 0 1 .572-.093l11.25 3.75h.001a.624.624 0 0 1 0 1.186l-11.25 3.75a.63.63 0 0 1-.573-.093l-4-3V18.75H1.25V1.25H2.5zm13.75 9.375a2.5 2.5 0 0 1 0 5H7.5V17.5h8.75A1.25 1.25 0 1 0 15 16.25h-1.25a2.503 2.503 0 0 1 2.5-2.5M10 11.25a2.5 2.5 0 0 1 0 5H5V15h5a1.25 1.25 0 1 0-1.25-1.25H7.5a2.5 2.5 0 0 1 2.5-2.5M7.5 8.508l1.25-.417V3.159L7.5 2.742zM2.917 5.625l3.333 2.5v-5zM10 7.675l1.25-.417V3.992L10 3.575zm2.5-.834 3.648-1.216L12.5 4.409z"})]})}),I=n.forwardRef((e,t)=>(0,a.jsx)(v.h,{ref:t,icon:_,...e}));I.displayName="WindGust";var R=l(23376),k=l(21021);let P=(0,n.forwardRef)((e,t)=>{let{title:l,titleId:n,desc:i,descId:r,...s}=e;return(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:t,"aria-labelledby":n,"aria-describedby":r,...s,children:[i?(0,a.jsx)("desc",{id:r,children:i}):null,void 0===l?(0,a.jsx)("title",{id:n,children:"moonrise"}):l?(0,a.jsx)("title",{id:n,children:l}):null,(0,a.jsx)("g",{fill:"currentColor",children:(0,a.jsx)("path",{d:"M14.5 14h-13a.5.5 0 0 0 0 1h13a.5.5 0 0 0 0-1M12.975 12.501c.027.275-.199.499-.475.499s-.497-.225-.531-.5a4 4 0 0 0-.678-1.774c-.158-.227-.143-.542.063-.726.205-.184.524-.168.687.055.523.717.846 1.562.934 2.446M8.03 12.5c-.034.274-.255.5-.531.5s-.502-.224-.475-.498a4.96 4.96 0 0 1 1.853-3.404 4.005 4.005 0 0 0-4.845 3.404c-.035.274-.256.498-.531.498-.277 0-.503-.225-.475-.5A5.006 5.006 0 0 1 8 8c.772 0 1.533.18 2.223.526a.5.5 0 0 1 0 .895A3.98 3.98 0 0 0 8.03 12.5M8.471 1.195a.667.667 0 0 0-.942 0L5.853 2.871a.499.499 0 0 0 .705.706L7.5 2.64v3.585a.5.5 0 0 0 1 0V2.639l.942.938a.499.499 0 0 0 .705-.706z"})})]})}),E=n.forwardRef((e,t)=>(0,a.jsx)(v.h,{ref:t,icon:P,...e}));E.displayName="Moonrise";let L=(0,n.forwardRef)((e,t)=>{let{title:l,titleId:n,desc:i,descId:r,...s}=e;return(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:t,"aria-labelledby":n,"aria-describedby":r,...s,children:[i?(0,a.jsx)("desc",{id:r,children:i}):null,void 0===l?(0,a.jsx)("title",{id:n,children:"Foggy"}):l?(0,a.jsx)("title",{id:n,children:l}):null,(0,a.jsxs)("g",{fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd",children:[(0,a.jsx)("path",{d:"M9.984 3.633c-.602-.476-1.421-.8-2.464-.541-1.904.47-2.363 2.031-2.363 3.037v.5h-.5c-.252 0-.531.081-.783.199-.257.12-.429.25-.474.296a.5.5 0 1 1-.714-.699c.156-.16.442-.353.766-.504.21-.098.46-.19.729-.243.133-1.26.854-3.002 3.099-3.557 1.404-.347 2.534.103 3.324.729a4.6 4.6 0 0 1 1.27 1.568c.955.204 2.28.915 2.542 2.77.145 1.026-.165 1.816-.629 2.375a3.16 3.16 0 0 1-1.456.985.5.5 0 0 1-.29-.958c.26-.078.668-.293.976-.665.296-.356.512-.868.41-1.596-.205-1.445-1.28-1.888-1.97-1.967l-.326-.038-.095-.314c-.076-.25-.429-.883-1.052-1.377M1 12.703a.5.5 0 0 1 .5-.5h6.625a.5.5 0 0 1 0 1H1.5a.5.5 0 0 1-.5-.5"}),(0,a.jsx)("path",{d:"M3.51 10.51a.5.5 0 0 1 .5-.5h6.625a.5.5 0 1 1 0 1H4.009a.5.5 0 0 1-.5-.5M1 8.414a.5.5 0 0 1 .5-.5h6.625a.5.5 0 0 1 0 1H1.5a.5.5 0 0 1-.5-.5"})]})]})}),D=n.forwardRef((e,t)=>(0,a.jsx)(v.h,{ref:t,icon:L,...e}));D.displayName="Foggy";var F=l(40640),B=l(62596),z=l(99838);let H=e=>e?(0,z.$)(e).replace(/([+-]\d{2}:?\d{2})$/,"+0000"):"";var V=l(71666),W=l(55406),O=l(81217),U=l(28004),q=l(46670),G=l(63236),Z=l(48834),Q=l(7886);let Y=(0,n.memo)(e=>{let t,{airQualityIndex:l,airQualityCategory:n,className:i}=e,r=!(0,h.g)(l)&&!Number.isNaN(l),s=!(0,h.g)(n)&&""!==n.trim();return t=r&&s?"".concat(l," - ").concat(n):r?"".concat(l):s?n:"--",(0,a.jsx)("span",{"data-testid":"AirQualityValue",className:i,children:t})});var X=l(43436);let K=e=>!(0,h.g)(e)||null,$={derive:e=>{let{precipType:t}=e;return"precip"===t?g:"snow"===t?f.D:y.Y}},J={temperatureFeelsLike:{label:(e,t)=>{let{t:l}=t;return l("feelsLike")},icon:w,value:e=>{let{temperatureFeelsLike:t}=e;return K(t)&&(0,a.jsx)(W.B,{value:t})}},windSpeed:{label:(e,t)=>{let{t:l}=t;return l("wind")},icon:j.Z,value:(e,t)=>{let{windSpeed:l,windDirectionCardinal:n}=e,{unitName:i}=t,r=(0,V.xP)(i);return K(l)&&(0,a.jsx)(O.Z,{className:"whitespace-nowrap",windSpeed:l,windDirectionCardinal:n,units:r.code,displayMode:"directionalAndCardinal"})}},precipChance:{label:(e,t)=>{let{precipType:l}=e,{t:a}=t;return a("chanceOf".concat((0,p.Z)(null!=l?l:"")))},icon:$,value:e=>{let{precipChance:t}=e;return K(t)&&(0,a.jsx)(U.N,{value:t})}},relativeHumidity:{label:(e,t)=>{let{t:l}=t;return l("humidity")},icon:N.K,value:e=>{let{relativeHumidity:t}=e;return K(t)&&(0,a.jsx)(U.N,{value:t})}},pressureMeanSeaLevel:{label:(e,t)=>{let{t:l}=t;return l("pressure")},icon:C.S,value:e=>{let{pressureMeanSeaLevel:t}=e;return K(t)&&(0,a.jsx)(q.S,{pressureMeanSeaLevel:t})}},visibility:{label:(e,t)=>{let{t:l}=t;return l("visibility")},icon:F.S,value:(e,t)=>{let{visibility:l}=e,{unitName:n}=t;return K(l)&&(0,a.jsx)(G.b,{visibility:l,units:(0,V.xP)(n).code})}},uvIndex:{label:(e,t)=>{let{t:l}=t;return l("uvIndex")},icon:T.o,value:e=>{let{uvIndex:t}=e;return K(t)&&(0,a.jsx)(Z.M,{uvIndex:t})}},cloudCover:{label:(e,t)=>{let{t:l}=t;return l("cloudCover")},icon:M,value:e=>{let{cloudCover:t}=e;return K(t)&&(0,a.jsx)(U.N,{value:t})}},accumulation:{label:(e,t)=>{let{precipType:l}=e,{t:a}=t;return a("".concat(l,"Amount"))},icon:$,value:(e,t)=>{let{qpf:l,qpfSnow:n,precipType:i}=e,{unitName:r}=t;return K(l)||K(n)?(0,a.jsx)(Q.e,{precipType:i,qpf:l,qpfSnow:n,units:(0,V.xP)(r).code}):null}},temperatureDewPoint:{label:(e,t)=>{let{t:l}=t;return l("dewPoint")},icon:S.$,value:e=>{let{temperatureDewPoint:t}=e;return K(t)&&(0,a.jsx)(W.B,{value:t})}},windGust:{label:(e,t)=>{let{t:l}=t;return l("windGust")},icon:I,value:(e,t)=>{let{windGust:l}=e,{unitName:n}=t;return(0,a.jsx)(O.Z,{windSpeed:null!=l?l:void 0,units:(0,V.xP)(n).code})}},sunrise:{label:(e,t)=>{let{t:l}=t;return l("sunrise")},icon:R.m,value:(e,t)=>{let{sunriseTimeLocal:l}=e,{locale:a}=t;return l?(0,B.P)({date:H(l),timeZone:"Etc/GMT",locale:a,minutes:!0}):"--"}},sunset:{label:(e,t)=>{let{t:l}=t;return l("sunset")},icon:k.d,value:(e,t)=>{let{sunsetTimeLocal:l}=e,{locale:a}=t;return l?(0,B.P)({date:H(l),timeZone:"Etc/GMT",locale:a,minutes:!0}):"--"}},moonrise:{label:(e,t)=>{let{t:l}=t;return l("moonrise")},icon:E,value:(e,t)=>{let{moonriseTimeLocal:l}=e,{locale:a}=t;return l?(0,B.P)({date:H(l),timeZone:"Etc/GMT",locale:a,minutes:!0}):"--"}},moonset:{label:(e,t)=>{let{t:l}=t;return l("moonset")},icon:E,value:(e,t)=>{let{moonsetTimeLocal:l}=e,{locale:a}=t;return l?(0,B.P)({date:H(l),timeZone:"Etc/GMT",locale:a,minutes:!0}):"--"}},moonPhase:{label:"",icon:{derive:e=>{let{moonPhaseCode:t}=e;return e=>(0,a.jsx)(X.r,{...e,moonPhaseCode:t})}},value:e=>{let{moonPhase:t}=e;return K(t)&&t}},airQuality:{label:(e,t)=>{let{t:l}=t;return l("airQuality")},icon:D,value:e=>{let{airQualityIndex:t,airQualityCategory:l}=e;return K(t)&&(0,a.jsx)(Y,{airQualityIndex:t,airQualityCategory:l})}}},ee=(0,r.F)("grid justify-between gap-1",{variants:{cols:{1:"grid-cols-[repeat(1,auto)]",2:"grid-cols-[repeat(2,auto)]",3:"grid-cols-[repeat(3,auto)]",4:"grid-cols-[repeat(4,auto)]",5:"grid-cols-[repeat(5,auto)]",6:"grid-cols-[repeat(6,auto)]"}}}),et=(0,n.memo)(e=>{let{dataPoints:t,fields:l,locale:r,columns:h,children:p}=e,{small:v=2,medium:x=3,large:g=4}="object"==typeof h?h||{}:{small:h,medium:h,large:h},[f,y]=(0,u.r)(e=>e>=m.c["@xl"]?g:e>=m.c["@xs"]?x:v),b=f||x,w=(0,s.c3)("DetailsTable"),j={unitName:(0,i.md)(c.Yt),t:w,locale:r},N=0;return(0,a.jsx)(o.Zp,{ref:y,className:"border-2xl @container/detailsTable h-full bg-gray-100 p-0",children:(0,a.jsxs)(o.Wu,{className:"px-4 py-4 @xl/detailsTable:px-6",children:[p&&(0,a.jsx)("div",{children:p}),(0,a.jsx)("ul",{className:ee({cols:b}),children:l.map((e,i)=>{let r,s=J[e],o=null==s?void 0:s.value(t,j);if(!s||!o)return N++,null;let c="derive"in s.icon?s.icon.derive(t,j):s.icon,u="function"==typeof s.label?s.label(t,j):s.label,m=l.length-N,h=i-N,p=m%b;if(h===m-1&&0!==p){let e=b-p+1;r={gridColumn:"span ".concat(e," / span ").concat(e)}}return(0,a.jsxs)(n.Fragment,{children:[h>0&&h%b==0&&(0,a.jsx)("li",{className:"col-span-full py-3",children:(0,a.jsx)("div",{className:"border-b border-[#dedede]"})}),(0,a.jsxs)("li",{className:"flex gap-1 @md/detailsTable:gap-1.5 @xl/detailsTable:gap-2",style:r,children:[c&&(0,a.jsx)(c,{className:"size-4 @md/detailsTable:size-5"}),(0,a.jsxs)("div",{children:[u&&(0,a.jsx)(d.Ay,{variant:"Body.M",className:"mb-0.5 text-sm leading-normal @xl/detailsTable:text-base",children:u}),(0,a.jsx)(d.Ay,{elementType:"string"==typeof o?"p":"div",variant:"Body.L.Bold",className:"text-sm leading-normal @xl/detailsTable:text-base",children:o})]})]})]},u+h)})})]})})})},26106:(e,t,l)=>{"use strict";l.r(t),l.d(t,{TaboolaBlock:()=>x,TaboolaBlockView:()=>g,default:()=>f});var a=l(76792),n=l(42292),i=l(55198),r=l(54909),s=l(58010),o=l(48260),d=l(70336),c=l(89170),u=l(75302),m=l(13942),h=l(64996);let p=function(){let{DISCONNECTED_user:e}=(0,c.J)(),[t,l]=(0,n.useState)(!1),a=(0,u.md)(h.W);return(0,n.useEffect)(()=>{a&&l((()=>{try{var e,t,l,a;if(void 0!==(null==(e=window)?void 0:e.DprSdk)){let e=null==(l=window)||null==(t=l.DprSdk)?void 0:t.getFeatureFlags();return null==(a=null==e?void 0:e.taboola)||a}return!0}catch(e){return!0}})())},[a]),t&&!(null==e?void 0:e.isUserPremium)},v=(()=>{let e="",t=!1;return()=>({pushTaboolaCommand:(0,n.useCallback)((l,a,n)=>{window._taboola=window._taboola||[],a!==e&&(""===e||t||(window._taboola.push({notify:"newPageLoad"}),t=!0),e=a,t=!1),window._taboola.push({[n]:"auto",url:a}),window._taboola.push(l),window._taboola.push({flush:!0})},[])})})(),x=e=>{let{showTaboola:t=!0,...l}=e,{user:n}=(0,c.J)(),i=(0,u.md)(m.a),r=p();return n.isUserPremium||i||!r||!t?null:(0,a.jsx)(g,{...l})},g=e=>{let{taboolaId:t,taboolaUiMode:l,placementName:c,targetType:u,title:m="",pageType:h,taboolaType:p}=e,x=(0,n.useRef)(null),[g,f]=(0,n.useState)("pending"),y=(0,i.usePathname)(),{isTaboolaLoaded:b}=(()=>{let[e,t]=(0,n.useState)(!1);return(0,n.useEffect)(()=>{if(e)return;if(document.getElementById("tb_loader_script"))return void t(!0);window._taboola=window._taboola||[],window.performance&&"function"==typeof window.performance.mark&&window.performance.mark("tbl_ic");let l=document.createElement("script");l.src="//cdn.taboola.com/libtrc/theweatherchannel/loader.js",l.id="tb_loader_script",l.async=!0,l.onload=()=>{t(!0)},l.onerror=()=>{console.error("Failed to load Taboola script.")},document.body.appendChild(l)},[e]),{isTaboolaLoaded:e}})(),{pushTaboolaCommand:w}=v(),j=(0,n.useMemo)(()=>{let e=(0,r.j)();return"".concat(e).concat(y||"")},[y]),N="empty"!==g,C=(0,n.useMemo)(()=>{let e="taboola-below-content-thumbnails---video"===t||"taboola-below-content-thumbnails-video"===t;return{container:N?"generic"!==p?"wx-media-object gradient-overlay thirdparty-feed border":e?"gap-2 py-0 md:rounded-md max-sm:rounded-none":"gap-2 py-5":"hidden",headerContainer:e?"mx-4 px-0 pt-6 max-sm:border-t max-sm:border-gray-200":"px-4",header:e?"text-[20px] font-semibold":"text-xl font-semibold",contentContainer:"z-40 px-4"}},[t,p,N]);return((0,n.useEffect)(()=>{b&&"pending"===g&&w({mode:l,container:t,placement:c,target_type:u},j,h)},[b,g,w,t,l,c,u,j,h]),(0,n.useEffect)(()=>{let e=x.current;if(!e||!b)return;let t=new MutationObserver((t,l)=>{try{e.hasChildNodes()?(f("populated"),l.disconnect()):"pending"!==g&&(f("empty"),l.disconnect())}catch(e){console.warn("Error in TaboolaBlock content observer",e)}});return t.observe(e,{childList:!0}),e.hasChildNodes()&&(f("populated"),t.disconnect()),()=>t.disconnect()},[b,g]),b)?"invisible"===p?(0,a.jsx)("div",{id:t,ref:x}):(0,a.jsxs)("section",{className:"@container",children:[(0,a.jsx)(s.DebugCollector,{componentName:"TaboolaBlock",data:{props:{taboolaId:t,taboolaUiMode:l,placementName:c,targetType:u,pageUrl:j,pageType:h,taboolaContentState:g,shouldShow:N}}}),"generic"===p?(0,a.jsxs)(d.Zp,{className:C.container,children:[m&&N&&(0,a.jsx)(d.aR,{className:C.headerContainer,children:(0,a.jsx)("h2",{className:C.header,children:m})}),(0,a.jsx)(d.Wu,{className:(0,o.cn)(C.contentContainer),children:(0,a.jsx)("div",{id:t,className:"bg-none",ref:x})})]}):(0,a.jsxs)("div",{className:C.container,children:[m&&N&&(0,a.jsx)("header",{"aria-label":"Taboola",className:"panel-heading mb-2",children:(0,a.jsx)("h2",{"data-testid":"taboolaHeading",className:"text-lg font-medium",children:m})}),(0,a.jsx)("div",{id:t,className:"flex min-h-[300px] w-full items-center justify-center",ref:x})]})]}):null},f=x},27301:(e,t,l)=>{"use strict";t.p_=r;let a=l(17681),n=l(36762),i=l(84015);async function r(e){let t=(0,i.getEmailPreferencesSetUrlConfig)(),l=(0,a.urlFrom)(t),r=JSON.stringify(function(e){let{subscriptions:t,email:l,mParticleId:a}=e,n={};return t&&(n.subscriptions=t),l&&(n.email=l),a&&(n.mParticleId=a),n}(e)),s=await fetch(l,{method:"PUT",credentials:"include",headers:{"Content-Type":"application/json"},body:r});if(200===s.status||400===s.status){let e=await s.json();return console.log({json:e}),e}return(0,n.handleFetchResponse)(s)}},28004:(e,t,l)=>{"use strict";l.d(t,{N:()=>r});var a=l(76792),n=l(42292),i=l(48260);let r=(0,n.memo)(e=>{let{value:t,className:l,roundValue:n}=e,r=n?function(e){return e%5>=2.5?5*parseInt(String(e/5),10)+5:5*parseInt(String(e/5),10)}(t):t;return(0,a.jsx)("span",{"data-testid":"PercentageValue",className:(0,i.cn)(l),children:Number.isFinite(r)&&r>=0?"".concat(r,"%"):"--"})})},30253:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getHourlyAirQualityForecastUrlConfig=function(e){let{geocode:t,language:l,scale:a,duration:n}=e;return{host:"api.weather.com",protocol:"https",pathname:"/v3/wx/globalAirQuality/forecast/hourly/".concat(n),query:{geocode:t,language:l,scale:a,format:"json",apiKey:"71f92ea9dd2f4790b92ea9dd2f779061"}}}},31607:(e,t,l)=>{"use strict";l.d(t,{D:()=>s});var a=l(76792),n=l(42292),i=l(23233);let r=(0,n.forwardRef)((e,t)=>{let{title:l,titleId:n,desc:i,descId:r,...s}=e;return(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:t,"aria-labelledby":n,"aria-describedby":r,...s,children:[i?(0,a.jsx)("desc",{id:r,children:i}):null,void 0===l?(0,a.jsx)("title",{id:n,children:"Arrow Up"}):l?(0,a.jsx)("title",{id:n,children:l}):null,(0,a.jsx)("path",{fill:"currentColor",d:"M3.353 6.647a.499.499 0 0 0 .705.706L7.5 3.915V13.5a.5.5 0 0 0 1 0V3.915l3.443 3.438a.499.499 0 0 0 .705-.706l-3.94-3.94a1 1 0 0 0-1.415 0z"})]})}),s=n.forwardRef((e,t)=>(0,a.jsx)(i.h,{ref:t,icon:r,...e}));s.displayName="ArrowUp"},34256:(e,t,l)=>{"use strict";l.r(t),l.d(t,{HourlyForecastBlock:()=>ec,default:()=>eu});var a=l(76792),n=l(42292),i=l(47421),r=l(44615),s=l(12962),o=l(76088),d=l(61e3),c=l(75302),u=l(32035),m=l(71666),h=l(55198),p=l(68751),v=l(27370),x=l(9198),g=l(69585),f=l(25895),y=l(62596),b=l(81217),w=l(55406),j=l(28004),N=l(82903),C=l(48260),T=l(69474),A=l(7886),M=l(11340);let S=["temperatureFeelsLike","accumulation","windSpeed","pressureMeanSeaLevel","cloudCover","temperatureDewPoint","uvIndex","visibility","airQuality","relativeHumidity","windGust"],_=e=>{let{text:t}=e;return(0,a.jsx)(p.Ay,{variant:"Caption.M",color:"secondary",className:"mb-1 font-bold @max-md/hourItem:hidden",children:t})},I=e=>{let{forecast:t,timeZone:l,locale:n,itemIndex:r,longPhraseInSet:s}=e,o=(0,i.c3)("DetailsTable"),d=(0,c.md)(u.Yt),h=(0,m.xP)(d),v=0===r;return(0,a.jsxs)(N.As,{value:t.validTimeLocal,className:"border-grey-500 @container/hourItem gap-2 border-b py-3",children:[(0,a.jsx)(N.$m,{className:"items-end gap-1 p-0 @md/hourItem:gap-3",iconClassName:"mb-1 size-4",triggerContent:(0,a.jsxs)("div",{className:"flex w-full items-end justify-between gap-1",children:[(0,a.jsx)("div",{className:"min-w-[60px]",children:(0,a.jsx)(p.Ay,{className:(0,C.cn)("inline-block rounded-[100px] px-2 py-0.5 whitespace-nowrap","group-data-[state=open]:bg-blue-500 group-data-[state=open]:text-white"),children:(0,y.P)({date:t.validTimeLocal,locale:n,timeZone:l})})}),(0,a.jsx)("div",{className:"basis-[40px]",children:(0,a.jsx)(p.Ay,{variant:"Body.L.Bold",children:(0,a.jsx)(w.B,{value:t.temperature})})}),(0,a.jsxs)("div",{className:"relative flex h-6 items-center",children:[(0,a.jsx)(M.WxIcon,{iconCode:t.iconCode,className:"lightBG size-7 @md/hourItem:size-8",size:"lg",iconTheme:"lightBG","aria-label":t.wxPhraseLong||"Weather condition ".concat(t.iconCode)}),(0,a.jsx)(p.Ay,{variant:"Body.M",className:(0,C.cn)("pl-1.5 @max-2xl/hourItem:hidden",s?"min-w-[200px]":"min-w-[110px]"),children:t.wxPhraseLong})]}),(0,a.jsx)("div",{className:"min-w-[50px] items-end @lg/hourItem:min-w-[105px] @lg/hourItem:py-0.5",children:(0,a.jsx)(T.W,{precipChance:t.precipChance,displayMode:"both",textClassName:"@lg/hourItem:hidden",progressClassName:"@max-lg/hourItem:hidden",iconClassName:"@max-lg/hourItem:size-3"})}),(0,a.jsxs)("div",{className:"basis-[72px] items-end @max-md/hourItem:hidden",children:[v&&(0,a.jsx)(_,{text:o("humidity")}),(0,a.jsx)(p.Ay,{children:(0,a.jsx)(j.N,{value:t.relativeHumidity})})]}),(0,a.jsxs)("div",{className:"basis-[76px] items-end",children:[v&&(0,a.jsx)(_,{text:o("wind")}),(0,a.jsx)(p.Ay,{elementType:"div",children:(0,a.jsx)(b.Z,{windSpeed:t.windSpeed,windDirectionCardinal:t.windDirectionCardinal,units:h.code,displayMode:"directional",className:"whitespace-nowrap",iconClassName:"size-3 @md/hourItem:size-4"})})]}),(0,a.jsxs)("div",{className:"min-w-[76px] @max-md/hourItem:hidden",children:[v&&(0,a.jsx)(_,{text:o("precipitation")}),(0,a.jsx)(p.Ay,{children:(0,a.jsx)(A.e,{precipType:t.precipType,qpf:t.qpf,qpfSnow:t.qpfSnow,units:h.code})})]})]})}),(0,a.jsx)(N.ub,{className:"pt-2 pb-2 @md/hourItem:pt-4",children:(0,a.jsx)(f.A,{dataPoints:t,fields:S,locale:n})})]})};var R=l(22712);let k=e=>{let{skeletonColumns:t}=e;return(0,a.jsx)(a.Fragment,{children:Array(t).fill("").map((e,t)=>(0,a.jsx)("div",{className:"border-grey-500 gap-1 border-b py-3",children:(0,a.jsx)(R.A,{skeletonClassName:"mt-1 w-full "+(0===t?"h-69":"h-4")})},"hourly-forecast-skel-".concat(t)))})};var P=l(79315),E=l(46828),L=l(56768),D=l(31607),F=l(3916),B=l(23233);let z=(0,n.forwardRef)((e,t)=>{let{title:l,titleId:n,desc:i,descId:r,...s}=e;return(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:t,"aria-labelledby":n,"aria-describedby":r,...s,children:[i?(0,a.jsx)("desc",{id:r,children:i}):null,void 0===l?(0,a.jsx)("title",{id:n,children:"Sunny Day"}):l?(0,a.jsx)("title",{id:n,children:l}):null,(0,a.jsxs)("g",{fill:"currentColor",children:[(0,a.jsx)("path",{d:"M7.5 13.5v1a.5.5 0 0 0 1 0v-1a.5.5 0 0 0-1 0M7.5 1.5v1a.5.5 0 0 0 1 0v-1a.5.5 0 0 0-1 0M13.5 8.5h1a.5.5 0 0 0 0-1h-1a.5.5 0 0 0 0 1M1.5 8.5h1a.5.5 0 0 0 0-1h-1a.5.5 0 0 0 0 1M11.536 12.243l.707.707a.5.5 0 0 0 .707-.707l-.707-.707a.5.5 0 0 0-.707.707M3.05 3.757l.707.707a.5.5 0 0 0 .707-.707l-.707-.707a.5.5 0 1 0-.707.707M12.243 4.464l.707-.707a.5.5 0 1 0-.707-.707l-.707.707a.5.5 0 0 0 .707.707M3.757 12.95l.707-.707a.5.5 0 1 0-.707-.707l-.707.707a.5.5 0 1 0 .707.707"}),(0,a.jsx)("path",{fillRule:"evenodd",d:"M8 10.667a2.667 2.667 0 1 0 0-5.334 2.667 2.667 0 0 0 0 5.334m0 1a3.667 3.667 0 1 0 0-7.334 3.667 3.667 0 0 0 0 7.334",clipRule:"evenodd"})]})]})}),H=n.forwardRef((e,t)=>(0,a.jsx)(B.h,{ref:t,icon:z,...e}));H.displayName="SunnyDay";let V=(0,n.forwardRef)((e,t)=>{let{title:l,titleId:n,desc:i,descId:r,...s}=e;return(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:t,"aria-labelledby":n,"aria-describedby":r,...s,children:[i?(0,a.jsx)("desc",{id:r,children:i}):null,void 0===l?(0,a.jsx)("title",{id:n,children:"Cloudy"}):l?(0,a.jsx)("title",{id:n,children:l}):null,(0,a.jsx)("path",{fill:"currentColor",fillRule:"evenodd",d:"M9.063 3c1.877 0 3.35 1.456 3.457 3.53l.035.241.795.084.028.008c.482.124.891.343 1.182.674.295.337.44.757.44 1.227a1.9 1.9 0 0 1-.616 1.395c-.35.33-.838.56-1.457.656.046.156.073.322.073.495 0 .846-.605 1.548-1.388 1.658l-.107.014h-.103l-.006.001-7.808.006q-.111.01-.226.011C2.058 13 1 11.897 1 10.537c0-1.203.828-2.207 1.923-2.42l.701-.138.28-.683a3.49 3.49 0 0 1 1.769-1.858c.033-.45.257-.844.48-1.133.245-.32.53-.569.7-.699C7.454 3.15 8.216 3 9.064 3M7.029 6.019c-1.065 0-1.975.671-2.365 1.625l-.456 1.112-1.135.222c-.716.14-1.246.794-1.246 1.56 0 .864.677 1.587 1.535 1.587q.075 0 .149-.008l.038-.004 7.901-.006.054-.007a.79.79 0 0 0 .669-.79.79.79 0 0 0-.682-.792l-1.755-.216-.147-1.845c-.109-1.354-1.205-2.438-2.56-2.438m2.034-2.171c-.767 0-1.317.139-1.71.437a3 3 0 0 0-.543.541q-.136.177-.214.348.213-.03.433-.031c1.778 0 3.239 1.426 3.384 3.24l.09 1.132 1.083.132c.315.04.602.175.834.376a.4.4 0 0 1 .085-.013c.652-.04 1.067-.242 1.313-.473s.348-.514.348-.773c0-.284-.084-.497-.229-.662-.146-.167-.382-.314-.736-.41l-1.379-.146-.133-.936v-.02c-.078-1.668-1.222-2.742-2.626-2.742",clipRule:"evenodd"})]})}),W=n.forwardRef((e,t)=>(0,a.jsx)(B.h,{ref:t,icon:V,...e}));W.displayName="Cloudy";let O=(0,n.forwardRef)((e,t)=>{let{title:l,titleId:n,desc:i,descId:r,...s}=e;return(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:t,"aria-labelledby":n,"aria-describedby":r,...s,children:[i?(0,a.jsx)("desc",{id:r,children:i}):null,void 0===l?(0,a.jsx)("title",{id:n,children:"Rain Heavy"}):l?(0,a.jsx)("title",{id:n,children:l}):null,(0,a.jsxs)("g",{fill:"currentColor",children:[(0,a.jsx)("path",{fillRule:"evenodd",d:"M7.982 1.833c-1.303 0-2.391 1.032-2.5 2.37l-.034.407-.405.049c-.67.08-1.209.672-1.209 1.41 0 .724.518 1.307 1.17 1.405l.217.015h4.896l.024.003q.087.008.175.008c1.01 0 1.851-.845 1.851-1.915 0-.946-.66-1.719-1.51-1.882l-.264-.051-.104-.248c-.386-.93-1.279-1.57-2.307-1.57M4.535 3.747C4.843 2.096 6.26.833 7.982.833c1.367 0 2.543.798 3.123 1.95 1.198.352 2.062 1.48 2.062 2.802 0 1.597-1.264 2.915-2.851 2.915a3 3 0 0 1-.245-.01H5.187l-.25-.018H4.92l-.034-.005c-1.168-.16-2.051-1.182-2.051-2.398 0-1.091.71-2.026 1.701-2.322",clipRule:"evenodd","data-figma-bg-blur-radius":20}),(0,a.jsx)("path",{d:"m7.65 9.47-.711 1.954a.5.5 0 1 0 .94.342l.71-1.954a.5.5 0 1 0-.94-.342M4.882 10.816l-.803 2.205a.5.5 0 0 0 .94.342l.802-2.205a.5.5 0 0 0-.94-.342M10.179 10.918l-.766 2.103a.5.5 0 1 0 .94.342l.765-2.103a.5.5 0 0 0-.94-.342"})]})]})}),U=n.forwardRef((e,t)=>(0,a.jsx)(B.h,{ref:t,icon:O,...e}));U.displayName="RainHeavy";let q=(0,n.forwardRef)((e,t)=>{let{title:l,titleId:n,desc:i,descId:r,...s}=e;return(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:t,"aria-labelledby":n,"aria-describedby":r,...s,children:[i?(0,a.jsx)("desc",{id:r,children:i}):null,void 0===l?(0,a.jsx)("title",{id:n,children:"Clear Night"}):l?(0,a.jsx)("title",{id:n,children:l}):null,(0,a.jsx)("path",{fill:"currentColor",d:"M6.751 2.707a7.54 7.54 0 0 0 5.797 9.097A5.56 5.56 0 0 1 8.561 13.5q-.105.002-.21 0a5.547 5.547 0 0 1-1.6-10.792m.74-1.207a1 1 0 0 0-.088.008 6.548 6.548 0 0 0 .912 12.99c.082.004.164 0 .246 0a6.54 6.54 0 0 0 5.35-2.777.504.504 0 0 0-.391-.782A6.54 6.54 0 0 1 7.945 2.19a.507.507 0 0 0-.455-.69"})]})}),G=n.forwardRef((e,t)=>(0,a.jsx)(B.h,{ref:t,icon:q,...e}));G.displayName="ClearNight";let Z=(0,n.forwardRef)((e,t)=>{let{title:l,titleId:n,desc:i,descId:r,...s}=e;return(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:t,"aria-labelledby":n,"aria-describedby":r,...s,children:[i?(0,a.jsx)("desc",{id:r,children:i}):null,l?(0,a.jsx)("title",{id:n,children:l}):null,(0,a.jsx)("path",{fill:"currentColor",d:"M7.5 1.5v1a.5.5 0 0 0 1 0v-1a.5.5 0 0 0-1 0M7.5 13.5v1a.5.5 0 0 0 1 0v-1a.5.5 0 0 0-1 0M2.5 8.5h-1a.5.5 0 0 1 0-1h1a.5.5 0 0 1 0 1M11.536 12.243l.707.707a.5.5 0 0 0 .707-.707l-.707-.707a.5.5 0 0 0-.707.707M3.757 4.464l-.707-.707a.5.5 0 1 1 .707-.707l.707.707a.5.5 0 0 1-.707.707M12.243 4.464l.707-.707a.5.5 0 1 0-.707-.707l-.707.707a.5.5 0 0 0 .707.707M4.464 12.243l-.707.707a.5.5 0 1 1-.707-.707l.707-.707a.5.5 0 1 1 .707.707M8.72 10.568A2.67 2.67 0 0 1 5.333 8 2.667 2.667 0 0 1 9.85 6.079c.25-.234.55-.414.883-.524a3.667 3.667 0 1 0-.125 5.021H9.217z"}),(0,a.jsx)("path",{fill:"currentColor",fillRule:"evenodd",d:"M11.489 5.9c-.985 0-1.795.747-1.913 1.71a1.25 1.25 0 0 0-1.01 1.231c0 .633.465 1.159 1.07 1.24l.007.002h.004l.148.01h2.97q.07.006.14.006c.845 0 1.528-.694 1.528-1.548 0-.738-.509-1.356-1.192-1.512a1.93 1.93 0 0 0-1.752-1.14m-1.203 1.847a1.22 1.22 0 0 1 1.203-1.133c.488 0 .92.301 1.108.749l.128.305.328.062c.365.07.66.402.66.82a.82.82 0 0 1-.883.831l-.03-.003H9.823l-.107-.007a.53.53 0 0 1-.429-.53.53.53 0 0 1 .455-.534l.503-.06z",clipRule:"evenodd"})]})}),Q=n.forwardRef((e,t)=>(0,a.jsx)(B.h,{ref:t,icon:Z,...e}));Q.displayName="FairMostlyClearDay";var Y=l(79770);let X=e=>{let{insightHeadline:t,insightTextLong:l,className:n,headlineClass:i,textClass:r,background:s,weatherMode:o}=e;if(!t&&!l)return null;let d="";return o&&(d="severe"===o?"warning":"watch"),(0,a.jsxs)("div",{className:(0,C.cn)("nowrap flex items-center px-6.5 py-4",n,s&&"bg-[#f6f6f6]","watch"===d&&"bg-[#f6f6f6]","warning"===d&&"bg-[#ba0d00]"),children:[d?(0,a.jsx)(Y.A,{className:"mr-4 size-4.5 shrink-0"}):null,(0,a.jsxs)("div",{children:[t?(0,a.jsx)(p.Ay,{elementType:"h2",variant:"Body.M",className:(0,C.cn)("mb-2.5 text-base font-medium text-gray-500",i),children:t}):null,l?(0,a.jsx)(p.Ay,{variant:"Body.L.Bold",className:(0,C.cn)("font-semibold text-gray-800","watch"===d&&"text-sm text-white","warning"===d&&"text-sm text-[#ba0d00]",r),children:l}):null]})]})};var K=l(68577),$=l(44936);let J={up:D.D,down:F.y,sun:H,cloud:W,rain:U,clear:H,"clear-night":G,fair:Q},ee=e=>{let{location:t,locale:l}=e,{insightTextLong:n}=(0,$.p)(t,l);return n?(0,a.jsx)(X,{className:"px-4 py-2",headlineClass:"hidden",textClass:"text-sm m-0",insightTextLong:n}):null},et=e=>{let{location:t,hourlyForecast:l,isLoading:r,error:s,locale:o,showDayLabel:d,canToggleMultipleItems:c,ctaLink:u,ctaText:m,enableAlertHeadlines:h,insight:f,insightIcon:y,showPrecipIntensity:b,simplifiedVersion:w}=e,j=(0,i.c3)("HourlyForecast"),[C,T]=(0,n.useState)(!1),A=y&&J[y];return(0,a.jsxs)(g.Zp,{"aria-label":j("hourlyWeather"),className:"not-prose @container/hourly","data-testid":"hourly-forecast",children:[(0,a.jsx)(g.aR,{text:j("hourlyWeather")}),(0,a.jsxs)(g.Wu,{className:"p-0",children:[r?(0,a.jsx)(R.A,{skeletonClassName:"my-3 h-4 w-20 gap-1"}):f?(0,a.jsxs)("div",{className:"mt-2 mb-4 flex items-center gap-1",children:[A&&(0,a.jsx)("div",{children:(0,a.jsx)(A,{className:"text-brand-light size-5"})}),(0,a.jsx)(p.Ay,{variant:"Body.S.Bold",color:"brandLight",children:f})]}):"",h&&(0,a.jsx)("div",{children:(0,a.jsx)(E.A,{location:t,className:"mx-4 mb-3 inline-flex @lg/hourly:min-w-59"})}),b&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(ee,{location:t,locale:o}),(0,a.jsx)("div",{className:"px-4 py-2",children:(0,a.jsx)(K.A,{location:t,onlyChart:!0})})]}),(()=>{var e,i;if(s)return(0,a.jsx)(p.Ay,{variant:"Display.S",className:"flex min-h-48 items-center justify-center p-4",children:(null==s?void 0:s.message)||j("errorMsg")});let h=null!=(i=null==(e=l[0])?void 0:e.validTimeLocal)?i:void 0;return(0,a.jsxs)("div",{children:[(0,a.jsx)(N.nD,{...c?{type:"multiple",defaultValue:h?[h]:void 0}:{type:"single",defaultValue:h},children:r?(0,a.jsx)(a.Fragment,{children:(0,a.jsx)(k,{skeletonColumns:w?4:76})}):l.map((e,i)=>{var r;return!C&&e.wxPhraseLong.length>15&&T(!0),(0,a.jsxs)(n.Fragment,{children:[d&&(0===i||e.dayOfWeek!==((null==(r=l[i-1])?void 0:r.dayOfWeek)||""))&&(0,a.jsx)(p.Ay,{variant:"Body.L.Bold",className:"border-b border-[#dedede] p-4",children:(e=>{let{date:t,locale:l="en-US",timeZone:a}=e;if(!t)return"";let{cDate:n,cTimeZone:i}=(0,P.r)({date:t,locale:l,timeZone:a});return new Intl.DateTimeFormat(l,{weekday:"long",day:"numeric",month:"long",timeZone:i}).format(n)})({date:e.validTimeLocal,locale:o,timeZone:(null==t?void 0:t.ianaTimeZone)||""})}),(0,a.jsx)(I,{itemIndex:i,forecast:e,timeZone:(null==t?void 0:t.ianaTimeZone)||"",locale:o,longPhraseInSet:C})]},e.validTimeLocal)})},h),u&&m&&(0,a.jsx)("div",{className:"pt-6",children:(0,a.jsx)(v.$n,{asChild:!0,children:(0,a.jsx)(x.default,{href:u,children:m})})})]})})()]})]})};var el=l(23189),ea=l(14124),en=l(40358);let ei=["trendingFeelsLikeInsight","trendingTemperatureInsight","trendingWindInsight","trendingUvIndexInsight"],er=Math.floor(Math.random()*ei.length),es=e=>{var t,l;let{location:p,simplifiedVersion:v,initializing:x,initialError:g}=e,f=(0,h.useParams)(),y=(0,i.c3)("HourlyForecast"),{effectiveLocation:b,isLocationLoading:w}=(0,d.s)({location:p}),j=(0,c.md)(u.Yt),N=null==(t=(0,m.xP)(j))?void 0:t.code,C=v?o.HourlyForecastDuration.ONE_DAY:o.HourlyForecastDuration.THREE_DAY,T=null==(l=(0,h.useParams)())?void 0:l.locale,{data:A=[],error:M,isLoading:S}=(0,r.Ay)(b?["get-hourly-forecast",b.geocode,N,C,T]:null,e=>{let[t,l,a,n,i]=e;return(0,s.eH)({geocode:l,units:a,duration:n,language:i})},{revalidateOnFocus:!1,dedupingInterval:6e4}),_=(0,n.useMemo)(()=>v?A.slice(0,4):A,[A,v]),{insight:I,insightIcon:R}=((e,t)=>{var l;let a=(0,c.md)(u.Yt),i=null==(l=(0,m.xP)(a))?void 0:l.code,{data:s,isLoading:d}=(0,en.r)({geoCode:(null==e?void 0:e.geocode)||null,insightType:L.InsightType.ALL,locale:t}),h=(0,n.useMemo)(()=>null==s?void 0:s.reduce((e,t)=>(e[t.insightType]=t,e),{}),[s]),{data:p=[],isLoading:v}=(0,r.Ay)(e?["get-daily-forecast",e.geocode,o.ForecastDuration.THREE_DAY,i,t]:null,e=>{let[t,l,a,n,i]=e;return(0,ea.v1)({geocode:l,units:n,duration:a,language:i})},{revalidateOnFocus:!1,dedupingInterval:6e5}),x=d||v,g=p[0],f=(0,n.useMemo)(()=>{var e,t,l,a,n,i;if(x)return"";let r=null==h||null==(t=h.significantWeatherTodayInsight)||null==(e=t.insightText)?void 0:e[0];if(r)return r;let s=null==g||null==(a=g.daypart)||null==(l=a[0])?void 0:l.narrative;if(s)return s.split(".")[0];let o=ei[er]||ei[0];return(null==h||null==(i=h[o])||null==(n=i.insightText)?void 0:n[0])||""},[x,h,null==g?void 0:g.daypart]);return(0,n.useMemo)(()=>{let e=(0,el.B)(f,[" ","."]),t=e?(e=>{if(e){if(/(warmer|higher)/i.test(e))return"up";else if(/(cooler|lower)/i.test(e))return"down";else if(/(partly cloudy)/i.test(e)||/(sun)/i.test(e)&&/(cloud)/i.test(e))return"fair";else if(/(sunny|sunshine)/i.test(e))return"sun";else if(/(cloudy)/i.test(e))return"cloud";else if(/(shower|rain)/i.test(e))return"rain";else if(/(clear)/i.test(e))return/(night)/i.test(e)?"clear-night":"clear"}return null})(e):null;return{insight:e,insightIcon:t}},[f])})(b,T),k=x||S||w||!(null==_?void 0:_.length),P=v?"/weather/hourbyhour/l/".concat((null==b?void 0:b.placeId)||(null==f?void 0:f.locId)):"/weather/tenday/l/".concat((null==b?void 0:b.placeId)||(null==f?void 0:f.locId));return(0,a.jsx)(et,{location:b,hourlyForecast:_,locale:T,isLoading:k,error:g||M,showDayLabel:!v,canToggleMultipleItems:!v,ctaLink:P,ctaText:y(v?"next48":"10DayWeather"),enableAlertHeadlines:!v,insight:I,insightIcon:R,showPrecipIntensity:!v,simplifiedVersion:v})};var eo=l(44685),ed=l(46593);let ec=e=>{let{locationProvider:t,locationEntry:l,simplifiedVersion:n}=e,i="specified"===t,{specifiedLocationData:r,specifiedLocationError:s,isSpecifiedLocationLoading:o}=(0,ed.v)(i?l:null),d=i&&r&&l?(0,eo.I)(r):void 0;return(0,a.jsx)(es,{location:d,simplifiedVersion:null!=n&&n,initializing:i&&o,initialError:i?s:void 0})},eu=ec},34672:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fromCompactResponse=function(e){if(!e)return null;let t=Object.keys(e);return t.length&&t[0]&&void 0!==e[t[0]]&&Array.isArray(e[t[0]])?Array.from({length:e[t[0]].length},(l,a)=>{let n={};return t.forEach(t=>{let l=e[t];void 0!==l&&Array.isArray(l)&&a{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createTransformer=function(e){return t=>((0,a.fromCompactResponse)(t)||[]).map((l,a)=>e(l,a,t))};let a=l(34672)},35555:(e,t,l)=>{"use strict";l.r(t),l.d(t,{ImageBlock:()=>d,default:()=>c});var a=l(76792),n=l(42292),i=l(9198),r=l(48260),s=l(22627);let o=n.forwardRef((e,t)=>{let{src:l,alt:n,caption:i,credit:o,width:d=320,height:c=180,shadow:u=!0,rounded:m=!0,className:h,sizes:p,priority:v,imageAttributes:x}=e,g=!!(i||o);return(0,a.jsxs)("figure",{ref:t,className:(0,r.cn)(h),children:[(0,a.jsx)(s._,{src:l,alt:n,width:d,height:c,shadow:u,rounded:m,sizes:p,priority:v,...x}),g&&(0,a.jsxs)("figcaption",{className:"mt-2 text-sm leading-tight",children:[i&&(0,a.jsx)("p",{children:i}),o&&(0,a.jsxs)("p",{className:"m-0 text-gray-500",children:["(",o,")"]})]})]})});o.displayName="Figure";let d=e=>{var t,l;let{imageType:n,internalImageId:s,externalImageUrl:d,controls:c,altText:u,isPriorityImage:m,imageAttributes:h,linkUrl:p}=e;if(!n||!s&&!d)return(0,a.jsx)("div",{className:"text-center text-red-500",children:"Error: Missing data for the image block."});let v="internal"===n&&(e=>"object"==typeof e&&null!==e&&"url"in e)(s),x=v?(null==s?void 0:s.url)||"":d||"",g=v?(null==s||null==(t=s.seo)?void 0:t.altText)||"":u||"",f="",y="";(null==c?void 0:c.showCaption)&&((!v||(null==c?void 0:c.useImageCaption))&&"external"!==n?v&&(f=(null==s?void 0:s.caption)||"",y=(null==s||null==(l=s.seo)?void 0:l.credit)||""):(f=(null==c?void 0:c.caption)||"",y=(null==c?void 0:c.credit)||""));let b=(0,a.jsx)(o,{src:x,alt:g,caption:f,credit:y,priority:!!m,className:(0,r.cn)("my-4 flex flex-col",{"max-w-[480px]":(null==c?void 0:c.width)==="half"}),sizes:"(max-width: 767px) 91vw, (max-width: 1280px) 64vw, 800px",imageAttributes:h});return p?(0,a.jsx)(i.default,{href:p,target:"_blank",rel:"noopener noreferrer nofollow",children:b}):b},c=d},36116:(e,t,l)=>{"use strict";t.$t=void 0,t.FA=c;let a=l(39825),n=l(17681),i=l(36762),r=l(35181),s=l(73923),o=l(76088),d=l(50532);async function c(e){let l=(0,a.getFifteenMinuteForecastUrlConfig)(e),r=(0,n.urlFrom)(l),s=await fetch(r,{headers:{"Accept-Encoding":"gzip"},next:{revalidate:60}}),o=await (0,i.handleFetchResponse)(s);return(0,t.$t)(o)}t.$t=(0,r.createTransformer)(e=>{var t,l,a,n,i,r,c,u,m,h,p,v,x,g,f,y,b;return{dayOfWeek:null!=(t=e.dayOfWeek)?t:"",iconCode:null!=(l=e.iconCode)?l:0,iconCodeExtend:null!=(a=e.iconCodeExtend)?a:0,precipChance:null!=(n=e.precipChance)?n:0,precipRate:null!=(i=e.precipRate)?i:0,precipType:null!=(r=e.precipType)?r:s.PrecipType.RAIN,relativeHumidity:null!=(c=e.relativeHumidity)?c:0,snowRate:null!=(u=e.snowRate)?u:0,temperature:null!=(m=e.temperature)?m:0,temperatureFeelsLike:null!=(h=e.temperatureFeelsLike)?h:0,validTimeLocal:null!=(p=e.validTimeLocal)?p:"",windDirection:null!=(v=e.windDirection)?v:0,windDirectionCardinal:(0,d.normalizeCardinal)(null!=(x=e.windDirectionCardinal)?x:o.WindDirectionCardinal.NORTH),windSpeed:null!=(g=e.windSpeed)?g:0,wxPhraseLong:null!=(f=e.wxPhraseLong)?f:"",wxPhraseShort:null!=(y=e.wxPhraseShort)?y:"",wxSeverity:null!=(b=e.wxSeverity)?b:0}})},38577:(e,t,l)=>{"use strict";t.M=r;let a=l(17681),n=l(36762),i=l(54651);async function r(){let e=(0,i.getTileServerSeriesDynamicMapsUrlConfig)(),t=(0,a.urlFrom)(e),l=await fetch(t,{headers:{"Accept-Encoding":"gzip"},next:{revalidate:300}});return(await (0,n.handleFetchResponse)(l)).seriesInfo}},39825:(e,t,l)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getDailyForecastUrlConfig=function(e){let{geocode:t,units:l,language:n,duration:i=a.ForecastDuration.FIVE_DAY,cscCountryCode:r}=e;return{host:"api.weather.com",protocol:"https",pathname:"/v3/wx/forecast/daily/".concat(i),query:{geocode:t,units:l,language:n,cscCountryCode:r||void 0,format:"json",apiKey:"71f92ea9dd2f4790b92ea9dd2f779061"}}},t.getHourlyForecastUrlConfig=function(e){let{geocode:t,units:l,language:n,duration:i=a.HourlyForecastDuration.TWO_DAY,cscCountryCode:r}=e;return{host:"api.weather.com",protocol:"https",pathname:"/v3/wx/forecast/hourly/".concat(i),query:{geocode:t,units:l,language:n,cscCountryCode:r||void 0,format:"json",apiKey:"71f92ea9dd2f4790b92ea9dd2f779061"}}},t.getFifteenMinuteForecastUrlConfig=function(e){let{geocode:t,units:l,language:a}=e;return{host:"api.weather.com",protocol:"https",pathname:"/v3/wx/forecast/fifteenminute",query:{geocode:t,units:l,language:a,format:"json",apiKey:"71f92ea9dd2f4790b92ea9dd2f779061"}}},t.getMinutelyPrecipitationForecastUrlConfig=function(e){let{geocode:t,units:l,language:a,duration:n="60minute"}=e;return{host:"api.weather.com",protocol:"https",pathname:"/v3/wx/forecast/minutely/precipitation/".concat(n),query:{geocode:t,units:l,language:a,format:"json",apiKey:"71f92ea9dd2f4790b92ea9dd2f779061"}}},t.getWWIRForecastUrlConfig=function(e){let{geocode:t,postalCode:l,units:a,language:n}=e;return{host:"api.weather.com",protocol:"https",pathname:l?"/v1/location/".concat(l,"/forecast/wwir.json"):"/v1/geocode/".concat(null==t?void 0:t.replace(",","/"),"/forecast/wwir.json"),query:{units:a,language:n,apiKey:"71f92ea9dd2f4790b92ea9dd2f779061"}}};let a=l(76088)},40358:(e,t,l)=>{"use strict";l.d(t,{r:()=>d});var a=l(44615),n=l(13886),i=l(75302),r=l(32035),s=l(71666);let o={revalidateOnFocus:!1,dedupingInterval:6e4},d=e=>{let{key:t="get-weather-insights",geoCode:l,insightType:d,locale:c,par:u="twc",cscCountryCode:m}=e,h=(0,i.md)(r.Yt),p=((0,s.xP)(h)||s.AF).code;return(0,a.Ay)(l?[t,d,l,p,u,c]:null,e=>{let[t,l,a,i,r,s]=e;return(0,n.I)({geocode:a,units:i,language:s,insightType:l,par:r,cscCountryCode:"KR"===m?"KR":void 0})},o)}},40640:(e,t,l)=>{"use strict";l.d(t,{S:()=>s});var a=l(76792),n=l(42292),i=l(23233);let r=(0,n.forwardRef)((e,t)=>{let{title:l,titleId:n,desc:i,descId:r,...s}=e;return(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:t,"aria-labelledby":n,"aria-describedby":r,...s,children:[i?(0,a.jsx)("desc",{id:r,children:i}):null,void 0===l?(0,a.jsx)("title",{id:n,children:"View"}):l?(0,a.jsx)("title",{id:n,children:l}):null,(0,a.jsxs)("g",{fill:"currentColor",children:[(0,a.jsx)("path",{d:"M15.47 7.83A8.35 8.35 0 0 0 8 2.5 8.35 8.35 0 0 0 .53 7.83a.5.5 0 0 0 0 .34A8.35 8.35 0 0 0 8 13.5a8.35 8.35 0 0 0 7.47-5.33.5.5 0 0 0 0-.34M8 12.5c-2.65 0-5.45-1.965-6.465-4.5C2.55 5.465 5.35 3.5 8 3.5s5.45 1.965 6.465 4.5C13.45 10.535 10.65 12.5 8 12.5"}),(0,a.jsx)("path",{d:"M8 5a3 3 0 1 0 0 6 3 3 0 0 0 0-6m0 5a2 2 0 1 1 0-4 2 2 0 0 1 0 4"})]})]})}),s=n.forwardRef((e,t)=>(0,a.jsx)(i.h,{ref:t,icon:r,...e}));s.displayName="View"},43436:(e,t,l)=>{"use strict";l.d(t,{r:()=>C});var a=l(76792),n=l(42292),i=l(23233);let r=(0,n.forwardRef)((e,t)=>{let{title:l,titleId:n,desc:i,descId:r,...s}=e;return(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:t,"aria-labelledby":n,"aria-describedby":r,...s,children:[i?(0,a.jsx)("desc",{id:r,children:i}):null,void 0===l?(0,a.jsx)("title",{id:n,children:"New Moon"}):l?(0,a.jsx)("title",{id:n,children:l}):null,(0,a.jsx)("circle",{cx:8,cy:7.613,r:6.4,fill:"currentColor"})]})}),s=n.forwardRef((e,t)=>(0,a.jsx)(i.h,{ref:t,icon:r,...e}));s.displayName="NewMoon";let o=(0,n.forwardRef)((e,t)=>{let{title:l,titleId:n,desc:i,descId:r,...s}=e;return(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:t,"aria-labelledby":n,"aria-describedby":r,...s,children:[i?(0,a.jsx)("desc",{id:r,children:i}):null,void 0===l?(0,a.jsx)("title",{id:n,children:"Waxing Crescent"}):l?(0,a.jsx)("title",{id:n,children:l}):null,(0,a.jsx)("path",{fill:"currentColor",d:"M8.01 13.553q2.432 0 4.18-1.742 1.75-1.742 1.75-4.202 0-2.452-1.75-4.198-1.748-1.745-4.18-1.745 1.704 0 2.92 1.745t1.216 4.198q0 2.46-1.216 4.202t-2.92 1.742m-.014-12.34q2.64 0 4.521 1.882Q14.4 4.978 14.4 7.616q0 2.645-1.883 4.521t-4.52 1.876q-2.646 0-4.522-1.876Q1.6 10.262 1.6 7.617q0-2.64 1.875-4.522t4.521-1.882"})]})}),d=n.forwardRef((e,t)=>(0,a.jsx)(i.h,{ref:t,icon:o,...e}));d.displayName="WaxingCrescent";let c=(0,n.forwardRef)((e,t)=>{let{title:l,titleId:n,desc:i,descId:r,...s}=e;return(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:t,"aria-labelledby":n,"aria-describedby":r,...s,children:[i?(0,a.jsx)("desc",{id:r,children:i}):null,void 0===l?(0,a.jsx)("title",{id:n,children:"First Quarter"}):l?(0,a.jsx)("title",{id:n,children:l}):null,(0,a.jsx)("path",{fill:"currentColor",d:"M8.004 13.552q2.446 0 4.19-1.745 1.746-1.745 1.746-4.198 0-2.452-1.745-4.198-1.745-1.745-4.191-1.745zm-.007-12.34q2.644 0 4.524 1.88t1.88 4.517q0 2.64-1.88 4.521-1.879 1.883-4.524 1.883-2.639 0-4.517-1.883Q1.6 10.247 1.6 7.61q0-2.64 1.88-4.518 1.878-1.88 4.517-1.88"})]})}),u=n.forwardRef((e,t)=>(0,a.jsx)(i.h,{ref:t,icon:c,...e}));u.displayName="FirstQuarter";let m=(0,n.forwardRef)((e,t)=>{let{title:l,titleId:n,desc:i,descId:r,...s}=e;return(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:t,"aria-labelledby":n,"aria-describedby":r,...s,children:[i?(0,a.jsx)("desc",{id:r,children:i}):null,void 0===l?(0,a.jsx)("title",{id:n,children:"Waxing Gibbous"}):l?(0,a.jsx)("title",{id:n,children:l}):null,(0,a.jsx)("path",{fill:"currentColor",d:"M8.003 1.673q-1.38 0-2.367 1.745-.986 1.746-.986 4.198 0 2.454.986 4.198t2.367 1.745q2.439 0 4.188-1.745 1.748-1.744 1.748-4.198 0-2.452-1.748-4.198-1.749-1.745-4.188-1.745m0 12.34q-2.645 0-4.524-1.88-1.88-1.878-1.88-4.517t1.88-4.52q1.878-1.883 4.524-1.883 2.638 0 4.518 1.882Q14.4 4.978 14.4 7.616q0 2.64-1.88 4.518-1.878 1.879-4.517 1.879"})]})}),h=n.forwardRef((e,t)=>(0,a.jsx)(i.h,{ref:t,icon:m,...e}));h.displayName="WaxingGibbous";let p=(0,n.forwardRef)((e,t)=>{let{title:l,titleId:n,desc:i,descId:r,...s}=e;return(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:t,"aria-labelledby":n,"aria-describedby":r,...s,children:[i?(0,a.jsx)("desc",{id:r,children:i}):null,void 0===l?(0,a.jsx)("title",{id:n,children:"Full Moon"}):l?(0,a.jsx)("title",{id:n,children:l}):null,(0,a.jsx)("path",{fill:"currentColor",d:"M7.996 13.553q2.445 0 4.195-1.742 1.748-1.742 1.748-4.202 0-2.452-1.748-4.198-1.749-1.745-4.195-1.745-2.452 0-4.198 1.745Q2.053 5.157 2.053 7.61q0 2.46 1.745 4.202t4.198 1.742m0-12.34q2.64 0 4.521 1.882Q14.4 4.978 14.4 7.616q0 2.645-1.883 4.521t-4.52 1.876q-2.646 0-4.522-1.876Q1.6 10.262 1.6 7.617q0-2.64 1.875-4.522t4.521-1.882"})]})}),v=n.forwardRef((e,t)=>(0,a.jsx)(i.h,{ref:t,icon:p,...e}));v.displayName="FullMoon";let x=(0,n.forwardRef)((e,t)=>{let{title:l,titleId:n,desc:i,descId:r,...s}=e;return(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:t,"aria-labelledby":n,"aria-describedby":r,...s,children:[i?(0,a.jsx)("desc",{id:r,children:i}):null,void 0===l?(0,a.jsx)("title",{id:n,children:"Waning Gibbous"}):l?(0,a.jsx)("title",{id:n,children:l}):null,(0,a.jsx)("path",{fill:"currentColor",d:"M7.996 13.553q1.374 0 2.36-1.742t.986-4.202q0-2.452-.986-4.198-.986-1.745-2.36-1.745-2.452 0-4.198 1.745Q2.053 5.157 2.053 7.61q0 2.46 1.745 4.202t4.198 1.742m0-12.34q2.64 0 4.521 1.882Q14.4 4.978 14.4 7.616q0 2.645-1.883 4.521t-4.52 1.876q-2.646 0-4.522-1.876Q1.6 10.262 1.6 7.617q0-2.64 1.875-4.522t4.521-1.882"})]})}),g=n.forwardRef((e,t)=>(0,a.jsx)(i.h,{ref:t,icon:x,...e}));g.displayName="WaningGibbous";let f=(0,n.forwardRef)((e,t)=>{let{title:l,titleId:n,desc:i,descId:r,...s}=e;return(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:t,"aria-labelledby":n,"aria-describedby":r,...s,children:[i?(0,a.jsx)("desc",{id:r,children:i}):null,void 0===l?(0,a.jsx)("title",{id:n,children:"Last Quarter"}):l?(0,a.jsx)("title",{id:n,children:l}):null,(0,a.jsx)("path",{fill:"currentColor",d:"M7.997 1.673q-2.439 0-4.188 1.742-1.748 1.74-1.748 4.201 0 2.453 1.748 4.198 1.749 1.745 4.188 1.745zm.007 12.34q-2.64 0-4.521-1.883Q1.6 10.247 1.6 7.61q0-2.646 1.883-4.522 1.883-1.875 4.52-1.875 2.646 0 4.522 1.875Q14.4 4.964 14.4 7.61q0 2.64-1.875 4.521-1.876 1.883-4.521 1.883"})]})}),y=n.forwardRef((e,t)=>(0,a.jsx)(i.h,{ref:t,icon:f,...e}));y.displayName="LastQuarter";let b=(0,n.forwardRef)((e,t)=>{let{title:l,titleId:n,desc:i,descId:r,...s}=e;return(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:t,"aria-labelledby":n,"aria-describedby":r,...s,children:[i?(0,a.jsx)("desc",{id:r,children:i}):null,void 0===l?(0,a.jsx)("title",{id:n,children:"Waning Crescent"}):l?(0,a.jsx)("title",{id:n,children:l}):null,(0,a.jsx)("path",{fill:"currentColor",d:"M8.01 1.673q-2.453 0-4.201 1.745-1.75 1.746-1.75 4.198 0 2.454 1.75 4.198 1.748 1.745 4.2 1.745-.975 0-1.676-1.745-.7-1.744-.7-4.198 0-2.452.7-4.198.701-1.745 1.677-1.745m-.007 12.34q-2.645 0-4.524-1.88-1.88-1.878-1.88-4.517t1.88-4.52q1.878-1.883 4.524-1.883 2.638 0 4.518 1.882Q14.4 4.978 14.4 7.616q0 2.64-1.88 4.518-1.878 1.879-4.517 1.879"})]})}),w=n.forwardRef((e,t)=>(0,a.jsx)(i.h,{ref:t,icon:b,...e}));w.displayName="WaningCrescent";var j=l(73923);let N={[j.MoonPhaseCode.NEW]:s,[j.MoonPhaseCode.WAXING_CRESCENT]:d,[j.MoonPhaseCode.FIRST_QUARTER]:u,[j.MoonPhaseCode.WAXING_GIBBOUS]:h,[j.MoonPhaseCode.FULL]:v,[j.MoonPhaseCode.WANING_GIBBOUS]:g,[j.MoonPhaseCode.LAST_QUARTER]:y,[j.MoonPhaseCode.WANING_CRESCENT]:w},C=e=>{var t;let{moonPhaseCode:l,...n}=e,i=null!=(t=l&&N[l])?t:s;return(0,a.jsx)(i,{...n})}},43635:(e,t,l)=>{"use strict";l.r(t),l.d(t,{AdBlock:()=>v,default:()=>g});var a=l(76792),n=l(42292),i=l(58010),r=l(48260),s=l(74130),o=l(89170),d=l(75302),c=l(13942);let u=(0,l(30505).F)("",{variants:{overflow:{hidden:"overflow-hidden",none:""},layout:{flex:"flex-1",block:"block",fixed:"block fixed w-full",fixedBelowBottomNav:"block fixed w-full bottom-[61px] sm:bottom-0 z-[101]",contentTopDiv:"region-contentTop",stickyTopRight:"sticky top-[82px] z-45",default:""},bg:{white:"bg-white",gray:"bg-[#dee0e3]",none:""},radius:{md:"rounded-md",lg:"rounded-lg",none:""},padding:{standard:"px-4 pb-4",noTop:"pt-0 px-4 pb-4",mobile:"p-2",none:""},margin:{bottomMd:"mb-4",bottomLg:"mb-5",topMd:"mt-3",topLg:"mt-4",none:""},shadow:{md:"shadow-md",none:""},special:{hidden:"hidden",none:""}},compoundVariants:[{layout:"flex",margin:"topMd",class:"-mb-3"}],defaultVariants:{overflow:"none",layout:"default",bg:"none",radius:"none",padding:"none",margin:"none",shadow:"none",special:"none"}}),m={WX_WindowShade:{layout:"contentTopDiv",overflow:"hidden",margin:"bottomMd"},WX_Leaderboard:{layout:"contentTopDiv",overflow:"hidden",margin:"bottomMd"},WX_BottomLeader:{bg:"white",radius:"md",overflow:"hidden",padding:"standard",margin:"topLg"},WX_Bot300:{bg:"white",radius:"md",overflow:"hidden",padding:"standard",margin:"topLg"},WX_PromoDriver1:{bg:"white",radius:"md",overflow:"hidden",padding:"standard",margin:"topLg"},WX_MidLeader:{bg:"white",radius:"md",overflow:"hidden",padding:"standard",margin:"topLg"},WX_Top300Small:{bg:"white",radius:"md",overflow:"hidden",padding:"standard"},WX_SpotLight:{overflow:"hidden",bg:"white",margin:"bottomMd"},WX_DriverUnit:{overflow:"hidden",bg:"white",margin:"bottomMd"},WX_Top300Variable:{bg:"white",radius:"md",overflow:"hidden",padding:"standard"},MW_Position1:{layout:"fixedBelowBottomNav",bg:"gray",padding:"mobile"},MW_Position1_Samsung:{layout:"fixedBelowBottomNav",bg:"gray",padding:"mobile"},MW_Position3:{overflow:"hidden",margin:"bottomLg"},MW_Position4:{radius:"lg",overflow:"hidden",bg:"white",padding:"noTop"},MW_Position5:{radius:"lg",overflow:"hidden",bg:"white",padding:"noTop"},MW_Position2:{radius:"lg",overflow:"hidden",bg:"white",padding:"noTop"}},h=new Set(["MW_Position_ContentFeedAd","MW_Position_ContentFeedAd1","MW_Position_ContentFeedAd11","WX_ContentFeed","WX_ContentFeed1","WX_ContentFeedRadar"]),p=e=>h.has(e),v=e=>{let{user:t}=(0,o.J)(),l=(0,d.md)(c.a);return t.isUserPremium||l||!e.adId?null:(0,a.jsx)(x,{...e})},x=e=>{let{adId:t,variant:l="banner",title:o=null,titleAlignment:d="right",height:c="120px",className:h="",sticky:v=!1}=e,[x,g]=(0,n.useState)({loaded:!1,height:c,displayAd:!1}),f=(0,n.useRef)(null),y=(0,n.useRef)(!1),b=(0,n.useRef)({resize:null,adFrameMutation:null,adCreativeMutation:null}),w=(0,n.useMemo)(()=>((e,t,l,a)=>{if(p(e))return l?u({layout:"flex",margin:"topMd"}):"";if("WX_Hidden"===e||!l)return u({special:"hidden"});let n=m[e];return n||(n="banner"===t?{radius:"lg",overflow:"hidden",bg:"white",shadow:"md",margin:"bottomMd"}:{bg:"white",radius:"md",overflow:"hidden",padding:"standard"}),"WX_Top300Variable"===e&&a&&(n={...n,layout:"stickyTopRight"}),u(n)})(t,l,x.displayAd,v),[t,l,x.displayAd,v]),j=(0,n.useMemo)(()=>{let e=x.loaded?"visible":"invisible";return"".concat("text-center w-full h-full flex text-gray-600 text-base leading-none"," ").concat("WX_SpotLight"!==t?"justify-center":""," ").concat(e)},[t,x.loaded]),N=(0,n.useCallback)(e=>{for(let t of e){let e=t.contentRect.height;e>0&&g(t=>({...t,height:"".concat(e+10,"px"),loaded:!0}))}},[]),C=(0,n.useCallback)(e=>{let t=e.some(e=>"childList"===e.type&&e.addedNodes.length>0);g(e=>({...e,displayAd:t}))},[]),T=(0,n.useCallback)(e=>{let t=f.current;if(e.some(e=>{var t;return"childList"===e.type&&e.addedNodes.length>0&&((null==(t=e.addedNodes[0])?void 0:t.textContent)!=="Advertisement"||e.addedNodes.length>1)})&&t){var l,a,n;null==(l=b.current.resize)||l.observe(t),null==(a=b.current.adCreativeMutation)||a.observe(t,{childList:!0,subtree:!0}),g(e=>({...e,loaded:!0})),null==(n=b.current.adFrameMutation)||n.disconnect()}},[]);return(0,n.useEffect)(()=>{g({loaded:!1,height:c,displayAd:!1});let e=new ResizeObserver(N),t=new MutationObserver(C),l=new MutationObserver(T);b.current={resize:e,adCreativeMutation:t,adFrameMutation:l};let a=f.current;return a&&l.observe(a,{childList:!0,subtree:!0}),()=>{e.disconnect(),l.disconnect(),t.disconnect()}},[C,t,c,N,T]),(0,n.useEffect)(()=>{p(t)&&!y.current&&((e=>{try{let t=(e=>{if("MW_Position_ContentFeedAd11"===e)return{currContentFeedIndex:"21",baseNativeAdPosition:"MW_Position_ContentFeedAd1"};if("MW_Position_ContentFeedAd1"===e||"WX_ContentFeed1"===e){let t=e.match(/(\d+)$/);if(t)return{currContentFeedIndex:t[1],baseNativeAdPosition:e.substring(0,t.index)}}return console.error("Could not parse index from ContentFeed adId: ".concat(e)),null})(e);if(t){let{currContentFeedIndex:l,baseNativeAdPosition:a}=t,n=window.__HeliosConfig.slotsConfig[a];if(n){let t="".concat(n.adUnitPath,"/contentfeed").concat(l);window.__HeliosQ=window.__HeliosQ||[],window.__HeliosQ.push(()=>{window.__Helios.waitForEvent("AD_SLOTS_CONNECTED").then(()=>{window.__Helios.emit("AD_RENDER_CONTENT_FEED",{elementId:e,adUnitPath:t,baseNativeAdPosition:a})})})}else console.error("No config found for ".concat(e," at Helios.slotConfig.").concat(a))}}catch(e){console.error("Error rendering native ad",e)}})(t),y.current=!0)},[t]),(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(i.DebugCollector,{componentName:"AdBlock",data:{props:{adId:t,variant:l,title:o,titleAlignment:d,height:c,className:h},state:{loaded:x.loaded,height:x.height,displayAd:x.displayAd},performance:{renderTime:Date.now()}}}),(0,a.jsxs)("div",{className:(0,r.cn)(w,h),children:[o&&x.loaded&&(0,a.jsx)("div",{className:"text-xxs w-full px-4 py-0.75 text-gray-400 text-".concat(d),children:o}),"WX_PromoDriver1"===t&&!o&&x.loaded&&x.displayAd&&(0,a.jsx)("h2",{className:"my-6 px-2 text-2xl font-bold",children:"Stay Safe"}),(0,a.jsx)("div",{id:t,"data-testid":t,className:j,style:{height:x.loaded?"100%":"0px"},ref:f})]}),"WX_PromoDriver1"===t&&(!x.loaded||!x.displayAd)&&(0,a.jsx)(s.default,{title:"Stay Safe",ctaStyle:"featured",linkUrl:"/",backgroundColor:"white",media:"https://s-dev.w-x.co/wxnext/img/Screenshot2025-04-17at44929PMpng"})]})},g=v},43716:(e,t)=>{"use strict";var l,a,n,i;Object.defineProperty(t,"__esModule",{value:!0}),t.PollutantType=t.AirQualityCategory=t.AirQualityForecastDuration=t.AirQualityScale=void 0,function(e){e.EPA="EPA",e.HJ6332012="HJ6332012",e.ATMO="ATMO",e.UBA="UBA",e.DAQI="DAQI",e.NAQI="NAQI",e.IMECA="IMECA",e.CAQI="CAQI"}(l||(t.AirQualityScale=l={})),function(e){e.TWELVE_HOUR="12hour",e.TWENTY_FOUR_HOUR="24hour",e.FORTY_EIGHT_HOUR="48hour",e.SEVENTY_TWO_HOUR="72hour"}(a||(t.AirQualityForecastDuration=a={})),function(e){e.GOOD="Good",e.MODERATE="Moderate",e.UNHEALTHY_FOR_SENSITIVE_GROUPS="Unhealthy for Sensitive Groups",e.UNHEALTHY="Unhealthy",e.VERY_UNHEALTHY="Very Unhealthy",e.HAZARDOUS="Hazardous"}(n||(t.AirQualityCategory=n={})),function(e){e.CO="CO",e.NO2="NO2",e.O3="O3",e.PM10="PM10",e.PM2_5="PM2.5",e.SO2="SO2"}(i||(t.PollutantType=i={}))},43834:(e,t,l)=>{"use strict";l.r(t),l.d(t,{PromoDriverBlock:()=>s,default:()=>o});var a=l(76792);l(42292);var n=l(57965),i=l(9198),r=l(98066);let s=e=>{let{title:t,image:l,subtitle:s,bodyText:o,ctaButton:d}=e,c=(null==d?void 0:d.url)&&/^https?:\/\//i.test(d.url),u=(0,r.bt)(l)?l:null;return t||u&&(null==u?void 0:u.url)||s||o||d?(0,a.jsxs)("div",{className:"overflow-hidden rounded-lg bg-white",children:[t&&(0,a.jsx)("div",{className:"p-4",children:(0,a.jsx)("h3",{className:"text-xl font-semibold text-gray-900",children:t})}),(0,a.jsxs)("div",{className:"flex flex-col",children:[(null==u?void 0:u.url)?(0,a.jsx)("div",{className:"relative aspect-[42/13] w-full overflow-hidden bg-white px-4 pt-4",children:(0,a.jsx)("div",{className:"relative h-full w-full overflow-hidden rounded-lg",children:(0,a.jsx)("a",{href:d&&d.url||"#",children:(0,a.jsx)(n.default,{src:u.url,alt:t||"Promo image",fill:!0,className:"object-cover"})})})}):null,(s||o||d)&&(0,a.jsxs)("div",{className:"p-4",children:[s&&(0,a.jsx)("a",{href:d&&d.url||"#",children:(0,a.jsx)("h4",{className:"mb-2 text-base font-bold",children:s})}),o&&(0,a.jsx)("a",{href:d&&d.url||"#",children:(0,a.jsx)("p",{className:"mb-4 text-base",children:o})}),d&&(0,a.jsx)("div",{className:"flex justify-end",children:c?(0,a.jsx)("a",{href:d.url||"#",target:d.openInNewTab?"_blank":"_self",rel:d.openInNewTab?"noopener noreferrer":"",className:"inline-block max-w-[200px] overflow-hidden rounded-lg bg-black px-4 py-2 text-base font-normal text-ellipsis whitespace-nowrap text-white",children:d.text}):(0,a.jsx)(i.default,{href:d.url||"#",target:d.openInNewTab?"_blank":"_self",className:"inline-block max-w-[200px] overflow-hidden rounded-lg bg-black px-4 py-2 text-base font-normal text-ellipsis whitespace-nowrap text-white",children:d.text})})]})]})]}):null},o=s},44936:(e,t,l)=>{"use strict";l.d(t,{p:()=>r});var a=l(56768),n=l(42292),i=l(40358);let r=(e,t)=>{var l;let{data:r,isLoading:s}=(0,i.r)({geoCode:null!=(l=null==e?void 0:e.geocode)?l:null,insightType:a.InsightType.PRECIP_INSIGHT,locale:t}),o=(0,n.useMemo)(()=>null==r?void 0:r.find(e=>{var t;return(null==e||null==(t=e.supplement)?void 0:t.precipSource)==="wwir"}),[r]);return{loadingInsight:s,insightHeadline:(null==o?void 0:o.insightHeadline[0])||"",insightTextLong:(null==o?void 0:o.insightTextLong[0])||""}}},46670:(e,t,l)=>{"use strict";l.d(t,{S:()=>d});var a=l(76792);l(42292);var n=l(48260),i=l(31607),r=l(3916),s=l(71666);let o=e=>{let{pressureTendencyCode:t,iconClassName:l}=e;return 1===t?(0,a.jsx)(i.D,{"data-testid":"PressureRisingIcon",className:(0,n.cn)("mr-1 inline-block h-4 w-4",l),"aria-label":"Pressure rising"}):2===t?(0,a.jsx)(r.y,{"data-testid":"PressureFallingIcon",className:(0,n.cn)("mr-1 inline-block h-4 w-4",l),"aria-label":"Pressure falling"}):null},d=e=>{let{className:t,unitsClassName:l,pressureAltimeter:i,pressureMeanSeaLevel:r,pressureTendencyCode:d,units:c,iconClassName:u}=e,m=c?(0,s.Bu)(c):null,h=null==m?void 0:m.pressure,p=(()=>{let e=i&&i>0||r&&r>0?i||r:null;return e?"e"===c?e.toFixed(2):e.toFixed(1):null})();return(0,a.jsx)("span",{"data-testid":"PressureValue",className:(0,n.cn)("inline-flex items-center",t),children:p?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(o,{pressureTendencyCode:d,iconClassName:u}),(0,a.jsx)("span",{children:p}),"\xa0",(0,a.jsx)("span",{className:(0,n.cn)(l),children:h})]}):"--"})}},46828:(e,t,l)=>{"use strict";l.d(t,{A:()=>f});var a=l(76792);l(42292);var n=l(93146),i=l(63481),r=l(29963),s=l(79770),o=l(44615),d=l(27370),c=l(55198),u=l(48260),m=l(62596),h=l(79315);let p=e=>{let{date:t,locale:l="en-US",timeZone:a}=e;if(!t)return null;let{cDate:n,cTimeZone:i}=(0,h.r)({date:t,locale:l,timeZone:a});return new Intl.DateTimeFormat(l,{weekday:"long",timeZone:i}).format(n)};var v=l(47421),x=l(68751),g=l(9946);let f=e=>{let{location:t,className:l,headlineClassName:h,showSubheadline:f=!1}=e,y=(0,c.useParams)(),b=null==y?void 0:y.locale,w=(0,v.c3)("AlertHeadlines"),{data:j,error:N,isLoading:C}=(0,o.Ay)((null==t?void 0:t.geocode)?["alerts",t.geocode]:null,e=>{let[t,l]=e;return(0,n.Sn)({geocode:l,language:b})},{revalidateOnFocus:!1,dedupingInterval:6e4}),T=(null==j?void 0:j.alerts)&&j.alerts.length>0?j.alerts[0]:null,A=T?(()=>{if(!T)return null;let{productIdentifier:e,phenomena:t,significance:l}=T;if(!e||!t||!l)return null;let a=(0,i.F)({productIdentifier:e,phenomena:t,significance:l}),n=(0,r.t)({productIdentifier:e||"",phenomena:t,significance:l}),s={1:{icon:"#fff",fill:"#ba0d00",border:"#f0f0f0",textColor:"#FFFFFF",backgroundColor:"#ba0d00",buttonBackgroundColor:"#ba0d00"},2:{icon:"#000",fill:"#e6731f",border:"#f0f0f0",textColor:"#ffffff",backgroundColor:"#25242299",buttonBackgroundColor:"#25242299"},3:{icon:"#000",fill:"#ebbb02",border:"#f0f0f0",textColor:"#ffffff",backgroundColor:"#25242299",buttonBackgroundColor:"#25242299"},4:{icon:"#fff",fill:"#a51ccb",border:"#f0f0f0",textColor:"#FFFFFF",backgroundColor:"#25242299",buttonBackgroundColor:"#ffffff1a"},severe:{icon:"#fff",fill:"#ba0d00",border:"#f0f0f0",textColor:"#FFFFFF",backgroundColor:"#ba0d00",buttonBackgroundColor:"#ba0d00"}};return s[n?"severe":a]||s[4]})():null,M=T?(0,i.F)({productIdentifier:T.productIdentifier,phenomena:T.phenomena,significance:T.significance}):null,S=T?(0,r.t)({productIdentifier:T.productIdentifier,phenomena:T.phenomena,significance:T.significance}):null;if(C||N||!T)return null;let _=T.effectiveTimeLocalTimeZone||T.endTimeLocalTimeZone||"",I=(e=>{let{effectiveTimeLocal:t,endTimeLocal:l}=e,a="";switch(!0){case!!(t&&l):a="subheadlineTextWithStartAndEndTime";break;case!!(!t&&l):a="subheadlineTextWithoutStartTime";break;case!!(t&&!l):a="subheadlineTextWithoutEndTime";break;default:return""}return a})({effectiveTimeLocal:T.effectiveTimeLocal,endTimeLocal:T.endTimeLocal}),R=(0,g.k)({phenomena:T.phenomena,significance:T.significance,areaId:T.areaId,officeCode:T.officeCode,eventTrackingNumber:T.eventTrackingNumber,locId:(null==t?void 0:t.placeId)||""});return(0,a.jsxs)("a",{href:R,className:(0,u.cn)("flex items-center gap-4 rounded-sm px-2 py-2 text-sm",l),style:{backgroundColor:null==A?void 0:A.backgroundColor,color:null==A?void 0:A.textColor},role:"alert","aria-live":"polite",children:[(0,a.jsxs)("div",{className:"flex-1 flex-col",children:[(0,a.jsxs)("div",{className:"flex gap-2",children:[T&&(0,a.jsx)(s.AlertIcon,{productIdentifier:T.productIdentifier,phenomena:T.phenomena,significance:T.significance,className:"h-4 w-4 items-start","aria-hidden":"true"}),(0,a.jsx)("span",{className:(0,u.cn)("uppercase",h),children:T.eventDescription})]}),f&&(0,a.jsx)(x.Ay,{className:"mt-1 uppercase",variant:"Caption.S.Bold",color:"inverse",children:w(I,{[(null==T?void 0:T.effectiveTimeLocal)&&"startTime"]:(0,m.P)({date:T.effectiveTimeLocal,weekday:"short",locale:b,timeZone:T.ianaTimeZone,minutes:!0}),[(null==T?void 0:T.endTimeLocal)&&"endTime"]:(e=>{let{effectiveTimeLocal:t,endTimeLocal:l,locale:a,ianaTimeZone:n}=e,i=p({date:t,locale:a,timeZone:n}),r=p({date:l,locale:a,timeZone:n});return(0,m.P)({date:l,locale:a,weekday:i!==r&&"short"||void 0,timeZone:n,minutes:!0})})({effectiveTimeLocal:T.effectiveTimeLocal||"",endTimeLocal:T.endTimeLocal||"",locale:b,ianaTimeZone:T.ianaTimeZone||""}),timeZone:_})})]}),j&&j.alerts.length>1&&(0,a.jsxs)(d.$n,{variant:"outline",size:"sm",style:{backgroundColor:null==A?void 0:A.buttonBackgroundColor,...1===M||S?{outline:"solid 1px #ffffff"}:{}},className:"flex h-6 items-center justify-center rounded-xs border-0 px-2 py-2 text-xs text-white hover:bg-transparent hover:text-white","aria-label":"View ".concat(j.alerts.length-1," more alerts"),children:["+",j.alerts.length-1," MORE"]})]})}},46859:(e,t,l)=>{"use strict";l.d(t,{v:()=>b});var a=l(23803);let n=(0,a.h)("AdUtils"),i=async e=>{let{player:t,user:l,ctx:a={},isMobile:n=!1}=e;if(!t)return;if(null==l?void 0:l.isUserPremium)return void t.play();let i=await r(a,n);i?t.playAd(i):t.play()},r=async function(e){let t,l=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!c())return null;let a=o(e,l),i=s({},e.iab);window.__Helios.emit("UPDATE_AD_UNIT_PATH",a);try{var r,u,m;null==(m=window.__Helios.modules)||null==(u=m.iabc)||null==(r=u.update)||r.call(u,{page:i,site:{v1:["IAB15-10_Weather"],v3:["390_Weather"]}})}catch(e){n.error("Error updating IABC parameters",e)}try{t=await d()}catch(e){t=null,n.error("Error getting ad tag",e)}return window.__Helios.emit("UPDATE_AD_UNIT_PATH",a),t},s=(e,t)=>{let l={...e};for(let e in t)Array.isArray(t[e])?(l[e]=[...l[e]||[],...t[e]],l[e]=[...new Set(l[e])]):"object"==typeof t[e]&&null!==t[e]?l[e]=s(l[e]||{},t[e]):l[e]=t[e];return l},o=(e,t)=>{var l,a,n,i,r,s;let o=null==(a=window)||null==(l=a.__HeliosConfig)?void 0:l.generalConfig,d=null!=(r=null==o||null==(n=o.targeting)?void 0:n.networkCode)?r:"/7646",c=null!=(s=null==o||null==(i=o.targeting)?void 0:i.adUnits)?s:t?"mobile_smart_us":"web_weather_us",u=e.collectionAdZone||e.adzone||"video";return"".concat(d,"/").concat(c,"/").concat(u)},d=async()=>{let e=[];try{var t;e=await (null==(t=window)?void 0:t.__Helios.video.requestVideoBids())}catch(e){n.error("Error getting video bids",e)}return await window.__Helios.modules.videoTag.createAdTag(e)},c=()=>{try{var e,t,l,a,n;return"function"==typeof(null==(t=window.__Helios)||null==(e=t.video)?void 0:e.requestVideoBids)&&"function"==typeof(null==(n=window.__Helios)||null==(a=n.modules)||null==(l=a.videoTag)?void 0:l.createAdTag)}catch(e){return!1}},u=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"https";return e.replace(/^\/\//,"".concat(t,"://"))},m=e=>{let{collectionId:t,videoIndex:l,videoId:a}=e||{};return{videoCount:l,videoId:a,collectionId:t}},h=e=>"GDFP"===e||"AdSense/AdX"===e;l(76792),l(73675);var p=l(37811);let v=(0,a.h)("NewRelic");function x(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};try{var l,a,n;null==(n=window)||null==(a=n.NREUM)||null==(l=a.addPageAction)||l.call(a,e,{...g(t,"meta.")})}catch(e){v.error("New Relic: sendReumEvent error",e instanceof Error?e.message:String(e))}}p.env.NEW_RELIC_RUM_ACCOUNT_ID,p.env.NEW_RELIC_RUM_APP_ID,p.env.NEW_RELIC_RUM_LICENSE_KEY;let g=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return Object.fromEntries(Object.entries(e).map(e=>{let[l,a]=e;return["".concat(t).concat(l),a]}))},f=(0,a.h)("AdEvents"),y=new Set(["amznbid","crt_pb","hb_pb"]),b=[{eventName:"ready",callback:e=>{let{event:t}=e;x("videoReady",{isViewable:!!t.viewable,setupTime:t.setupTime})}},{eventName:"beforePlay",callback:async e=>{var t;let{event:l,player:a,isFirstPlayRef:n,user:r,isMobile:s}=e;if(!(null==n?void 0:n.current))return;let o=a.getPlaylistItem(),d=null==o||null==(t=o.custom)?void 0:t.ctx;d&&(d.videoIndex=a.getPlaylistIndex()),x("videoBeforePlay",{...m(d),isViewable:!!l.viewable,playReason:l.playReason}),a.stop(),await i({player:a,user:r,ctx:d,isMobile:s}),n.current=!1}},{eventName:"adRequest",callback:e=>{var t;let{event:l,player:a}=e,n=a.getPlaylistItem(),i=null==n||null==(t=n.custom)?void 0:t.ctx,r={},s=m(i);try{let e=u(l.tag||""),t=new URL(e).searchParams.get("cust_params"),a=(e=>e?e.split("&").reduce((e,t)=>{let[l,a]=t.split("=");return l&&a&&(e[l]||(e[l]=[]),e[l].push(a)),e},{}):{})(t);for(let e of Object.keys(a))y.has(e)&&(r["".concat("kv_").concat(e)]="".concat(a[e]))}catch(e){f.error("Error parsing cust_params",e)}x("videoAdRequest",{...s,isViewable:!!l.viewable,roll:l.adposition,...r})}},{eventName:"adStarted",callback:e=>{var t,l,a,n,i,r;let{event:s,player:o}=e,d=o.getPlaylistItem(),c=null==d||null==(t=d.custom)?void 0:t.ctx,{duration:u,adposition:p}=s,v=m(c),g="";try{let e=null==(r=s.ima)||null==(i=r.ad)?void 0:i.data;e&&(g=(e=>{let{adSystem:t,adId:l,adWrapperSystems:a,adWrapperIds:n}={adSystem:"",adId:"",adWrapperSystems:[],adWrapperIds:[],...e};if(h(t))return l;let i=a.findIndex(h);return i>=0&&i{var t;let{event:l,player:a}=e,n=a.getPlaylistItem();x("videoStart",{...m(null==n||null==(t=n.custom)?void 0:t.ctx),isViewable:!!l.viewable,loadTime:l.loadTime})}},{eventName:"complete",callback:e=>{var t;let{player:l}=e,a=l.getPlaylistItem();x("videoComplete",{...m(null==a||null==(t=a.custom)?void 0:t.ctx)})}},{eventName:"adSkipped",callback:e=>{var t;let{player:l}=e,a=l.getPlaylistItem();x("videoAdSkip",{...m(null==a||null==(t=a.custom)?void 0:t.ctx)})}},{eventName:"playlistItem",callback:async e=>{var t;let{event:l,player:a,isFirstPlayRef:n,user:r,isMobile:s}=e;if(null==n?void 0:n.current)return;let{item:o}=l,d=null==o||null==(t=o.custom)?void 0:t.ctx;d.videoIndex=a.getPlaylistIndex(),a.stop(),await i({player:a,user:r,ctx:d,isMobile:s})}},{eventName:"adComplete",callback:async e=>{let{player:t}=e;t.play()}},{eventName:"adError",callback:async e=>{var t;let{event:l,player:a}=e,n=a.getPlaylistItem();x("videoAdError",{...m(null==n||null==(t=n.custom)?void 0:t.ctx),message:l.message,code:l.code,vastCode:l.vastCode,roll:l.adposition}),f.error("Ad error occurred",l),a.play()}},{eventName:"error",callback:async e=>{var t;let{event:l,player:a}=e,n=a.getPlaylistItem();x("videoError",{...m(null==n||null==(t=n.custom)?void 0:t.ctx),message:l.message,code:l.code}),f.error("Video Player error",l)}},{eventName:"setupError",callback:e=>{let{event:t}=e;x("videoSetupError",{message:t.message,code:t.code})}}]},47681:(e,t,l)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getSunV3WeatherInsightsUrlConfig=function(e){let{geocode:t,placeId:l,postalKey:n,insightType:i=a.InsightType.ALL,units:r,language:s,par:o,cscCountryCode:d}=e,c={format:"json",units:r,language:s,apiKey:"71f92ea9dd2f4790b92ea9dd2f779061",insightType:i,par:o,cscCountryCode:d};return t?c.geocode=t:l?c.placeid=l:n&&(c.postalKey=n),{host:"api.weather.com",protocol:"https",pathname:"/v3/insights",query:c}};let a=l(56768)},48834:(e,t,l)=>{"use strict";l.d(t,{M:()=>r});var a=l(76792),n=l(48260),i=l(47421);let r=e=>{let t,{uvIndex:l,uvDescription:r,className:s,descriptionClassName:o}=e,d=(0,i.c3)("DetailsTable");return t=!Number.isFinite(l)||l10?d("extreme"):r?l:t=d("uvIndexVal",{val:l,maxVal:11}),(0,a.jsxs)("span",{"data-testid":"UVIndexValue",className:(0,n.cn)(s),children:[t,r&&l{"use strict";l.d(t,{A:()=>m});var a=l(76792),n=l(42292);let i={src:"/_next/static/media/SlideshowIcon.2da11b0d.png"};var r=l(22627),s=l(68751),o=l(64868),d=l(11181);let c=e=>!!e&&""!==e.trim()&&(/\.(jpg|jpeg|png|gif|webp|bmp|tiff|svg)$/i.test(e)||/^[A-Z0-9_]+\d*\.[a-zA-Z]+$/i.test(e)||/^[a-zA-Z0-9_-]+\d+$/i.test(e)||/[._][0-9]+/i.test(e)||/^[A-Z0-9_]+$/i.test(e)),u=e=>{var t;let{id:l,assets:n,currentSlideIndex:u,totalAssets:m,previous:h,next:p,sendTrackString:v,rounded:x=!1}=e;if(!n.length||u=n.length)return null;let g=n[u],f="".concat(u+1,"/").concat(m),y=0===u,b=u===m-1;return(0,a.jsxs)("figure",{id:l,className:"relative mt-4 mb-4 w-full max-w-full",children:[(0,a.jsx)("div",{className:x?"overflow-hidden rounded-[16px]":"",children:(0,a.jsx)("div",{className:"relative w-full ".concat(x?"rounded-[16px]":""),children:(0,a.jsx)("div",{className:"relative w-full ".concat(x?"rounded-[16px]":""),style:{paddingTop:"56.25%"},children:(0,a.jsx)(r.A,{className:"absolute top-0 left-0 h-full w-full object-cover",src:g.url||"",alt:(null==(t=g.seo)?void 0:t.altText)||"",rounded:x,width:800,height:450,sizes:"(max-width: 767px) 91vw, (max-width: 1280px) 64vw, 800px"})})})}),(0,a.jsx)("figcaption",{children:(0,a.jsxs)("div",{className:"w-full",children:[(0,a.jsx)("div",{className:"flex items-center pt-2",children:(0,a.jsxs)("div",{className:"relative flex w-full items-center",children:[(0,a.jsx)("div",{className:"flex items-center",children:(0,a.jsx)(r.A,{src:i.src,alt:"Slideshow",width:20,height:20,className:"h-5 w-5",rounded:!1})}),(0,a.jsx)("div",{className:"mr-2 ml-2",children:(0,a.jsx)(s.EY,{variant:"Body.S",color:"primary",children:f})}),(0,a.jsx)("div",{className:"flex-grow"}),(0,a.jsx)("button",{type:"button","aria-label":"Previous",className:"mr-[10px] flex cursor-pointer items-center justify-center border-none bg-transparent p-2 disabled:cursor-not-allowed disabled:opacity-50",disabled:y,onClick:()=>{v("wxnode_slideshow_link-previous"),h()},children:(0,a.jsx)("span",{className:"flex items-center justify-center",children:(0,a.jsx)("span",{className:"flex items-center justify-center","aria-label":"chevron left",children:(0,a.jsx)(o.A,{className:"h-5 w-5 ".concat(y?"text-gray-200":"text-blue-500")})})})}),(0,a.jsx)("button",{type:"button","aria-label":"Next",className:"ml-auto flex cursor-pointer items-center justify-center border-none bg-transparent p-2 disabled:cursor-not-allowed disabled:opacity-50",disabled:b,onClick:()=>{v("wxnode_slideshow_link-next"),p()},children:(0,a.jsx)("span",{className:"flex items-center justify-center",children:(0,a.jsx)("span",{className:"flex items-center justify-center","aria-label":"chevron right",children:(0,a.jsx)(d.A,{className:"h-5 w-5 ".concat(b?"text-gray-200":"text-blue-500")})})})})]})}),g.filename&&!c(g.filename)&&(0,a.jsx)(s.EY,{variant:"Title.S",color:"primary",elementType:"h3",className:"mt-0 mb-1",children:g.filename}),g.caption&&(0,a.jsx)(s.EY,{variant:"Body.S",color:"primary",className:"py-1 pb-0 ".concat(g.filename&&!c(g.filename)?"":"mt-0 pt-0"),children:g.caption}),(0,a.jsx)("div",{className:"border-b border-gray-200 py-2"})]})})]})},m=e=>{let{id:t,assets:l=[],allSlides:i=[],totalAssets:r=i.length||0,loadNextSlideshowPage:s,sendTrackString:o=()=>{},rounded:d=!1}=e,c=(0,n.useId)(),m=t||"slideshow-".concat(c),h=i.length>0,[p,v]=(0,n.useState)(0),[x,g]=(0,n.useState)(1),[f,y]=(0,n.useState)(1),[b,w]=(0,n.useState)(h?i.slice(0,20):l),j=(0,n.useCallback)(e=>{if(!e)return!1;let{top:t}=e.getBoundingClientRect();return t>=-100&&t{if(p-1>=0){let e=p-1?Math.ceil((p-1)/20):1;v(p-1),g(e)}},[p]),C=(0,n.useCallback)(()=>{if(p+1=f){let e=20*x;if(e-3

l.length&&x>=f){let e=20*x;e-3

{if(j(document.querySelector("#".concat(m))))switch(e.key){case"ArrowLeft":N();break;case"ArrowRight":C()}},[m,j,N,C]);return(0,n.useEffect)(()=>(document.body.addEventListener("keydown",T),()=>{document.body.removeEventListener("keydown",T)}),[T]),(0,n.useEffect)(()=>{h&&0===b.length&&w(i.slice(0,20))},[h,i,b.length]),(0,a.jsx)(u,{id:m,assets:h?b:l,currentSlideIndex:p,totalAssets:r,previous:N,next:C,sendTrackString:o,rounded:d})}},49694:(e,t,l)=>{"use strict";l.d(t,{S:()=>s});var a=l(76792),n=l(42292),i=l(23233);let r=(0,n.forwardRef)((e,t)=>{let{title:l,titleId:n,desc:i,descId:r,...s}=e;return(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:t,"aria-labelledby":n,"aria-describedby":r,...s,children:[i?(0,a.jsx)("desc",{id:r,children:i}):null,void 0===l?(0,a.jsx)("title",{id:n,children:"pressure"}):l?(0,a.jsx)("title",{id:n,children:l}):null,(0,a.jsx)("path",{fill:"currentColor",fillRule:"evenodd",d:"M5.498 1.022a.5.5 0 0 1 .5.5v3.022H4.841l3.14 2.788 3.16-2.788h-1.13V1.522a.5.5 0 0 1 1 0v2.022h1.453a.5.5 0 0 1 .33.875L8.744 7.993l4.053 3.6a.5.5 0 0 1-.332.874h-1.473v2.022a.5.5 0 0 1-1 0v-3.022h1.157L8.008 8.68l-3.16 2.788h1.13v3.022a.5.5 0 0 1-1 0v-2.022H3.525a.5.5 0 0 1-.33-.875l4.052-3.574-4.054-3.6a.5.5 0 0 1 .332-.874h1.473V1.522a.5.5 0 0 1 .5-.5",clipRule:"evenodd"})]})}),s=n.forwardRef((e,t)=>(0,a.jsx)(i.h,{ref:t,icon:r,...e}));s.displayName="Pressure"},50772:(e,t,l)=>{"use strict";l.d(t,{r:()=>r});var a=l(42292),n=l(55680),i=l(1843);let r=e=>{let t=(0,a.useRef)(null),[l,r]=(0,a.useState)(i.A?e(window.innerWidth,window.innerHeight):null),s=(0,a.useRef)(!1),o=(0,n.X)(e);return(0,a.useEffect)(()=>{let e=t.current;if(!e||"undefined"==typeof ResizeObserver)return;let l=new ResizeObserver(e=>{for(let t of e){let{right:e,left:l,top:a,bottom:n}=t.contentRect,i=e+l,d=a+n,c=o.current(i,d);s.current=!0,r(c)}});return l.observe(e),()=>{l.disconnect()}},[t,o]),[l,t,s.current]}},51254:(e,t,l)=>{"use strict";l.d(t,{Y:()=>s});var a=l(76792),n=l(42292),i=l(23233);let r=(0,n.forwardRef)((e,t)=>{let{title:l,titleId:n,desc:i,descId:r,...s}=e;return(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:t,"aria-labelledby":n,"aria-describedby":r,...s,children:[i?(0,a.jsx)("desc",{id:r,children:i}):null,void 0===l?(0,a.jsx)("title",{id:n,children:"Rain Drop"}):l?(0,a.jsx)("title",{id:n,children:l}):null,(0,a.jsxs)("g",{fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd",children:[(0,a.jsx)("path",{d:"M8 14.256a4.506 4.506 0 0 1-4.5-4.5 5 5 0 0 1 .747-2.478l3.33-5.303a.52.52 0 0 1 .847 0l3.314 5.278a5.03 5.03 0 0 1 .762 2.503 4.506 4.506 0 0 1-4.5 4.5M8 3.18 5.11 7.784a4 4 0 0 0-.61 1.972 3.5 3.5 0 0 0 7 0 4.03 4.03 0 0 0-.624-1.998z"}),(0,a.jsx)("path",{d:"M10.103 9.757a.5.5 0 0 1 .319.631 2.74 2.74 0 0 1-1.747 1.724.5.5 0 0 1-.313-.95c.615-.203.976-.68 1.11-1.086a.5.5 0 0 1 .63-.32"})]})]})}),s=n.forwardRef((e,t)=>(0,a.jsx)(i.h,{ref:t,icon:r,...e}));s.displayName="RainDrop"},53976:(e,t,l)=>{"use strict";l.d(t,{S:()=>y});var a=l(76792),n=l(22627),i=l(42292),r=l(23233);let s=(0,i.forwardRef)((e,t)=>{let{title:l,titleId:n,desc:i,descId:r,...s}=e;return(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:t,"aria-labelledby":n,"aria-describedby":r,...s,children:[i?(0,a.jsx)("desc",{id:r,children:i}):null,void 0===l?(0,a.jsx)("title",{id:n,children:"Play"}):l?(0,a.jsx)("title",{id:n,children:l}):null,(0,a.jsxs)("g",{fill:"currentColor",children:[(0,a.jsx)("path",{d:"M5.5 11.5A.5.5 0 0 1 5 11V5a.5.5 0 0 1 .724-.447l6 3a.5.5 0 0 1 0 .894l-6 3a.5.5 0 0 1-.224.053M6 5.809v4.382L10.382 8z"}),(0,a.jsx)("path",{d:"M8 2a6 6 0 1 1 0 12A6 6 0 0 1 8 2m0-1a7 7 0 1 0 0 14A7 7 0 0 0 8 1"})]})]})}),o=i.forwardRef((e,t)=>(0,a.jsx)(r.h,{ref:t,icon:s,...e}));o.displayName="PlayOutline";let d=(0,i.forwardRef)((e,t)=>{let{title:l,titleId:n,desc:i,descId:r,...s}=e;return(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:t,"aria-labelledby":n,"aria-describedby":r,...s,children:[i?(0,a.jsx)("desc",{id:r,children:i}):null,void 0===l?(0,a.jsx)("title",{id:n,children:"Video Player"}):l?(0,a.jsx)("title",{id:n,children:l}):null,(0,a.jsxs)("g",{fill:"currentColor",children:[(0,a.jsx)("path",{d:"M7.265 5.978a.5.5 0 0 0-.765.424v3.196a.5.5 0 0 0 .765.424l2.557-1.598a.5.5 0 0 0 0-.848z"}),(0,a.jsx)("path",{d:"M14 3H2c-.552 0-1 .449-1 1v8c0 .551.448 1 1 1h12c.552 0 1-.449 1-1V4c0-.551-.448-1-1-1m0 8.5a.5.5 0 0 1-.5.5h-11a.5.5 0 0 1-.5-.5v-7a.5.5 0 0 1 .5-.5h11a.5.5 0 0 1 .5.5z"})]})]})}),c=i.forwardRef((e,t)=>(0,a.jsx)(r.h,{ref:t,icon:d,...e}));c.displayName="VideoPlayer";let u=(0,i.forwardRef)((e,t)=>{let{title:l,titleId:n,desc:i,descId:r,...s}=e;return(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:t,"aria-labelledby":n,"aria-describedby":r,...s,children:[i?(0,a.jsx)("desc",{id:r,children:i}):null,void 0===l?(0,a.jsx)("title",{id:n,children:"Book"}):l?(0,a.jsx)("title",{id:n,children:l}):null,(0,a.jsxs)("g",{fill:"currentColor",children:[(0,a.jsx)("path",{d:"M13 5H9.5v1H13zM13 7.5H9.5v1H13zM13 10H9.5v1H13zM6.5 5H3v1h3.5zM6.5 7.5H3v1h3.5zM6.5 10H3v1h3.5z"}),(0,a.jsx)("path",{d:"M14 2.5H2a1 1 0 0 0-1 1v9a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-9a1 1 0 0 0-1-1m-12 1h5.5v9H2zm6.5 9v-9H14v9z"})]})]})}),m=i.forwardRef((e,t)=>(0,a.jsx)(r.h,{ref:t,icon:u,...e}));m.displayName="Book";var h=l(9198),p=l(48260),v=l(68751),x=l(54086);let g={video:o,article:m},f={col:"flex-col",row:"flex-row","col-reverse":"flex-col-reverse","row-reverse":"flex-row-reverse"},y=e=>{let{heading:t,description:l,content:i,href:r,target:s,imageUrl:o,altText:d,onClick:u,className:m,imageWrapClassName:y,imageClassName:b,contentClassName:w,badge:j,icon:N="video",showIcon:C,iconClassName:T,overlayClassName:A,dir:M="row",isFetchPriority:S,noPadding:_=!1,duration:I,badgeStyle:R=!1,bodyText:k,imageWidth:P,aspectRatio:E="square",partnerLogoThumbnailUrl:L,partnerLogoWhite:D=!1,partnerLogoPosition:F="default"}=e,B=g[N],z=!!(t||l||i),H=(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:(0,p.cn)("relative overflow-hidden rounded-lg","transition-shadow duration-150 group-hover:shadow-[0_4px_16px_0_rgba(9,86,124,0.4)] group-focus-visible:shadow-[0_4px_16px_0_rgba(9,86,124,0.4)]",E&&"auto"!==E?"square"===E?"aspect-square":"video"===E?"aspect-video":"aspect-[".concat(E,"]"):"",P||"w-full",y),children:[(0,a.jsx)(n.A,{fetchPriority:S?"high":void 0,src:o,alt:d||l||"",fill:!0,className:(0,p.cn)("absolute top-0 left-0 h-full w-full scale-[1.01] object-cover","transition-transform duration-150 group-hover:scale-[1.02] group-focus-visible:scale-[1.02]",b),sizes:"(max-width: 768px) 100vw, (max-width: 1200px) 50vw, 25vw"}),(0,a.jsx)("div",{className:(0,p.cn)("absolute inset-0 flex items-center justify-center",A),children:C&&B&&(0,a.jsx)(B,{className:(0,p.cn)("size-10 text-white",T)})}),j&&(0,a.jsx)("div",{className:"absolute right-2 bottom-2 rounded-full bg-black/70 px-[10px] py-2 text-[14px] leading-none text-white md:right-1 md:bottom-1 md:p-1 md:text-[10px]",children:j}),L&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:"absolute inset-0 bg-[linear-gradient(to_bottom,rgba(17,30,55,0)_0%,rgba(17,30,55,0)_50%,rgba(17,30,55,0.4)_100%)]"}),(0,a.jsx)("div",{className:(0,p.cn)("absolute overflow-visible","compact"===F?"bottom-3 left-3":"bottom-4 left-4"),children:(0,a.jsx)("div",{className:(0,p.cn)("relative","compact"===F?"w-24":"w-40"),children:(0,a.jsx)(n.A,{src:L,alt:"",width:"compact"===F?96:160,height:0,className:(0,p.cn)("h-auto max-h-5 w-full rounded-none object-contain object-left",D&&"brightness-0 invert"),style:{height:"auto"},sizes:"compact"===F?"96px":"160px"})})})]})]}),z&&(0,a.jsx)("div",{className:(0,p.cn)(w,"row"===M&&"max-h-40"),children:i||(0,a.jsxs)(a.Fragment,{children:[t&&(R?(0,a.jsx)("span",{className:"mb-2 inline-block rounded-full bg-gray-100 px-3 py-1 text-xs font-medium text-gray-700",children:t}):(0,a.jsx)(v.Ay,{elementType:"span",variant:"Title.S",className:"mb-1 text-xs",color:"placeholder",children:t})),(l||k)&&(0,a.jsxs)("div",{className:(0,p.cn)("row"===M&&!I&&"line-clamp-7 sm:line-clamp-6","row"===M&&I&&"line-clamp-5 sm:line-clamp-4","row"===M&&"overflow-hidden","mb-2"),children:[l&&(0,a.jsx)(v.Ay,{elementType:"h2",className:"mb-2 text-base leading-tight font-semibold text-gray-900 @md:text-lg @lg:text-xl @xl:text-2xl",children:l}),k&&(0,a.jsx)(v.Ay,{elementType:"p",className:"text-sm font-normal text-gray-500 @md:text-base",children:k})]}),I&&(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsx)(c,{className:"size-6 text-gray-500 sm:size-6"}),(0,a.jsx)(v.Ay,{elementType:"span",className:"text-sm text-gray-500 sm:text-base",children:(0,x.h)(I)})]})]})})]}),V=(0,p.cn)("group","not-prose font-normal text-gray-900 no-underline rounded-2xl flex gap-4",!_&&"p-3","transition-all duration-150",!_&&"hover:bg-gray-100 focus-visible:bg-gray-100","focus-visible:outline-none",f[M],m);return!u&&r?(0,a.jsx)(h.default,{className:V,href:r,target:s,children:H}):(0,a.jsx)("div",{className:V,onClick:u,children:H})}},54086:(e,t,l)=>{"use strict";l.d(t,{h:()=>a});let a=e=>{let t=e.split(":");""===t[0]&&(t[0]="0");let l=parseInt(t[0]||"0",10).toString();if("0"===l&&3===t.length){let e=parseInt(t[1]||"0",10).toString();return"".concat(e,":").concat(t[2])}return[l,...t.slice(1)].join(":")}},54651:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getTileServerSeriesDynamicMapsUrlConfig=function(){return{host:"api.weather.com",protocol:"https",pathname:"/v3/TileServer/series/productSet/dynamicmaps",query:{apiKey:"71f92ea9dd2f4790b92ea9dd2f779061"}}}},54909:(e,t,l)=>{"use strict";l.d(t,{j:()=>n,w:()=>i});var a=l(37811);let n=e=>{var t,l,n,i;let r,s=null==(t=null!=(l=a.env.VERCEL_TARGET_ENV)?l:"production")?void 0:t.toLowerCase();a.env.VERCEL_TARGET_ENV,"preview"!==s&&a.env.VERCEL_TARGET_ENV_URL;let o=null!=(n=a.env.VERCEL_URL)?n:"wx-next-i56dl662i.vercel.weather.com",d=null!=(i=a.env.VERCEL_TARGET_ENV_URL)?i:"weather.com",c="true"===a.env.NEXT_DEV_SERVER_INSECURE||"true"===a.env.NEXT_PUBLIC_NEXT_DEV_SERVER_INSECURE;switch(s){case"preview":r="https://".concat(o);break;case"development":r=c?"http://".concat(d):"https://".concat(d);break;default:r="https://".concat(d)}return e?new URL(e,r).toString():r},i=e=>{var t,l;a.env.VERCEL_TARGET_ENV_PRODUCTION_URL;let n=null!=(t=a.env.VERCEL_TARGET_ENV_PRODUCTION_URL)?t:"weather.com",i=null!=(l=a.env.VERCEL_PROJECT_PRODUCTION_URL)?l:"wxnext.weather.com",r="https://".concat(null!=n?n:i);return e?new URL(e,r).toString():r}},56157:(e,t,l)=>{"use strict";l.d(t,{$:()=>s});var a=l(76792),n=l(42292),i=l(23233);let r=(0,n.forwardRef)((e,t)=>{let{title:l,titleId:n,desc:i,descId:r,...s}=e;return(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:t,"aria-labelledby":n,"aria-describedby":r,...s,children:[i?(0,a.jsx)("desc",{id:r,children:i}):null,void 0===l?(0,a.jsx)("title",{id:n,children:"Dew Point"}):l?(0,a.jsx)("title",{id:n,children:l}):null,(0,a.jsx)("g",{fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd",children:(0,a.jsx)("path",{d:"M10.889 4.663a2 2 0 1 0 2.222-3.326 2 2 0 0 0-2.222 3.326m.555-2.494a1 1 0 1 1 1.112 1.663 1 1 0 0 1-1.112-1.663M5.308 14.199A2.75 2.75 0 0 0 7.25 15 2.75 2.75 0 0 0 10 12.26c0-1.721-2.172-10.507-2.265-10.88a.5.5 0 0 0-.97 0C6.672 1.753 4.5 10.539 4.5 12.26c.002.728.293 1.425.808 1.939M5.5 12.26c0-1.056 1.02-5.57 1.75-8.638C7.98 6.69 9 11.205 9 12.26a1.75 1.75 0 1 1-3.5 0"})})]})}),s=n.forwardRef((e,t)=>(0,a.jsx)(i.h,{ref:t,icon:r,...e}));s.displayName="DewPoint"},56768:(e,t)=>{"use strict";var l;Object.defineProperty(t,"__esModule",{value:!0}),t.InsightType=void 0,function(e){e.ALL="all",e.BREAKING_VIDEO_INSIGHT="breakingVideoInsight",e.CHANCE_PRECIP_INSIGHT="chancePrecipInsight",e.SUNNY_DAY_INSIGHT="sunnyDayInsight",e.POLLEN_INSIGHT="pollenInsight",e.TEMPERATURE_CHANGE_INSIGHT="temperatureChangeInsight",e.TRENDING_TEMPERATURE_INSIGHT="trendingTemperatureInsight",e.SUN_INSIGHT="sunInsight",e.SHORT_TERM_PRECIP_INSIGHT="shortTermPrecipInsight",e.THUNDERSTORM_SOON_INSIGHT="thunderstormSoonInsight",e.SEVERE_STORM_INSIGHT="severeStormInsight",e.PRECIP_INSIGHT="precipInsight"}(l||(t.InsightType=l={}))},56791:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getSortedAlerts=void 0,t.getSortedAlerts=e=>[...e].sort((e,t)=>e.displayRank>t.displayRank?1:e.displayRankt.eventTrackingNumber?1:(e.eventTrackingNumber{"use strict";l.r(t),l.d(t,{DynamicMapBlock:()=>z,default:()=>H});var a=l(76792),n=l(46593),i=l(44685),r=l(55198),s=l(61e3),o=l(42292),d=l(44615),c=l(47421),u=l(75302),m=l(66678),h=l(38577),p=l(71666),v=l(32035),x=l(56768),g=l(77962);let f={width:568,height:320},y={sm:f,lg:{width:800,height:600}},b={0:{title:"Local Radar",layer:"twcRadarHcMosaic",style:"light",key:"radar",frames:1,frameRatio:2,attributionColor:"white"},1:{title:"Rain is in View",layer:"radarFcstV2",style:"light",key:"rainView",frames:13,frameRatio:2,attributionColor:"white"},2:{title:"Snow is in View",layer:"radarFcstV2",style:"light",key:"snowView",frames:12,frameRatio:2,attributionColor:"white"},3:{title:"Wintry Mix is in View",layer:"radarFcstV2",style:"light",key:"mixView",frames:13,frameRatio:2,attributionColor:"white"},4:{title:"Storms in View",layer:"radarFcstV2",style:"light",key:"stormView",frames:13,frameRatio:2,attributionColor:"white"},5:{title:"Lightning in View",layer:"radarFcstV2",vector:"600",style:"light",key:"lightningView",frames:13,frameRatio:2,attributionColor:"white"}};var w=l(62596),j=l(66020),N=l(2666);let C=(e,t)=>{let l=(0,N.W)(t);return Number(e.toFixed(l))},T=(e,t,l,a,n,i)=>{var r,s,o,d;let c;return"fts"===e&&0===l||"ts"===e&&l===t.ts.length-1?i:("fts"===e&&(c=(null!=(o=null==(r=t.fts)?void 0:r[l])?o:0)*1e3),"ts"===e&&(c=(null!=(d=null==(s=t.ts)?void 0:s[l])?d:0)*1e3),(0,w.P)({date:c,locale:a,timeZone:n,minutes:!0}))};var A=l(40358);let M={revalidateOnFocus:!1,dedupingInterval:6e4},S=function(e,t){let l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"sm",a=(0,c.c3)("DynamicMap"),n=(0,u.md)(v.Yt),i=((0,p.xP)(n)||p.AF).code,r=(0,g.A)(),{ianaTimeZone:s,countryCode:w,geocode:N}=e||{},{data:C,isLoading:S,error:_}=(0,d.Ay)(N?["get-wwir-forecaset",N,i,t]:null,e=>{let[t,l,a,n]=e;return(0,m.U)({geocode:l,units:a,language:n})},M),{data:I,isLoading:R,error:k}=(0,d.Ay)(N?"get-dynamic-maps-tile-series":null,()=>(0,h.M)(),M),P=null==C?void 0:C.forecast,E=(0,o.useMemo)(()=>{var e;let t=null!=(e=null==P?void 0:P.overall_type)?e:0;return{...P,phrase:(null==P?void 0:P.phrase)||"",product:b[t]}},[P]),{data:L,isLoading:D}=(0,A.r)({geoCode:(null==e?void 0:e.geocode)||null,insightType:x.InsightType.PRECIP_INSIGHT,locale:t,par:"twc",cscCountryCode:r}),F=(null==L?void 0:L.length)?6:9,B=a("now"),z=(0,o.useMemo)(()=>N?((e,t,l)=>{if(!e)return[];let{mapImageSize:a,geocode:n,lod:i,locale:r,timeZone:s,countryCode:o,samsungMA:d,nowText:c}=l,u=t.product,{width:m,height:h}=y[a]||f,[p="",v=""]=n.split(",")||[],x=(0,j.S)(p,i),g=(0,j.S)(v,i),b=((e,t)=>{var l,a;let{layer:n,frameRatio:i,frames:r}=t,s=e[n],o=(null==(a=s.series)||null==(l=a[0])?void 0:l.fts)||null,d=s.series||[];if(o){let e=o.slice().reverse(),t=r>1?e.slice(0,2*r):e.slice(0,1);return i&&(t=((e,t)=>{let l=[];for(let a=0;a{let{geocode:t,lod:l}=e,n=(0,o.useMemo)(()=>{if(!(t&&l))return;let e=function(e,t){let[l="",a=""]=e.split(",")||[],n=parseFloat(l),i=parseFloat(a),r=C(n,t),s=C(i,t),o=n-r;return{dx:Math.abs(111.11*Math.cos((n-o/2)*Math.PI/180)*(i-s))/320*100,dy:Math.abs(111.11*o)/320*100}}(t,l),a={w:20,h:20};return{left:"calc(".concat(50+e.dx,"% - ").concat(a.w/2,"px)"),top:"calc(".concat(50-e.dy,"% - ").concat(a.h,"px)")}},[t,l]);return n?(0,a.jsx)("div",{className:"absolute h-[20px] w-[20px] rounded-full border-2 border-white bg-[#1944DE] opacity-95","data-testid":"LocationPin",style:n}):null},L=e=>{let{mapImages:t,frame:l}=e,n="absolute h-full w-full rounded-lg bg-[#9fcbf9]";return t.length?t.map((e,t)=>(0,a.jsx)("div",{className:"".concat(n," bg-cover bg-center opacity-0 ").concat(l===t?"!opacity-100":""),style:{backgroundImage:"url(".concat(e.url,")")}},e.id)):(0,a.jsx)("div",{className:n})};var D=l(89975);let F=e=>{let{mapImages:t,geocode:l,lod:n=7,wwir:i,ctaLink:r,isLoading:s,enableAnimation:d=!0,enableLocationPin:u=!0,enableWWIRPhrase:m=!0,showMapBoxAttribution:h=!0,title:p,animationTiming:v=500}=e,[x,g]=(0,o.useState)(0),f=(0,c.c3)("DynamicMap"),{frames:y}=i.product,b=(0,o.useMemo)(()=>t.length{let e;if(!(d&&b.length>1))return void g(0);let t=setTimeout(()=>{e=setInterval(()=>{g(e=>(e+1)%b.length)},v)},1500);return()=>{clearTimeout(t),clearInterval(e)}},[b.length,d,v]);let j=i.product.attributionColor,N=r?R.default:"div";return(0,a.jsx)(I.Zp,{className:"@container/dynamicMap border-0","aria-label":"".concat(p||f("radar")," - ").concat(i.phrase),"data-testid":"DynamicMap",children:(0,a.jsxs)(N,{href:r||"",className:"relative block h-80 @md/dynamicMap:h-100",children:[(0,a.jsx)(L,{mapImages:b,frame:x}),u&&t.length>0&&(0,a.jsx)(E,{geocode:l,lod:n}),s&&(0,a.jsx)(D.a,{className:"absolute top-1/2 left-1/2 -translate-1/2",variant:"white",size:"lg",label:"Loading"}),(0,a.jsxs)("div",{className:"absolute top-0 flex w-full items-start justify-between p-3",children:[(null==w?void 0:w.time)?(0,a.jsx)(k.Ay,{variant:"Body.S",className:"justify-center rounded-lg bg-[rgba(37,36,34,0.8)] px-3 py-2 text-white","data-testid":"DynamicMapTimeStamp",children:w.time}):(0,a.jsx)("span",{}),h&&(0,a.jsx)(P.A,{position:"top-right",color:j,className:"relative"})]}),(0,a.jsxs)("div",{className:(0,_.cn)("absolute bottom-0 flex w-full items-end justify-between gap-1 p-3","@max-md/dynamicMap:flex-col @max-md/dynamicMap:items-start"),children:[(0,a.jsx)("span",{}),m&&i.phrase&&(0,a.jsx)(k.Ay,{variant:"Body.S",className:"max-w-[300px] items-center rounded-xl bg-white/80 px-3 py-2 shadow-lg","data-testid":"DynamicMapWeatherPhrase",children:i.phrase})]})]})})},B=e=>{var t;let{location:l,initializing:n,initialError:i,enableLocationPin:o,enableWWIRPhrase:d,enableAnimation:c,mapImageSize:u,showMapBoxAttribution:m,title:h}=e,p=null==(t=(0,r.useParams)())?void 0:t.locale,{effectiveLocation:v,isLocationLoading:x}=(0,s.s)({location:l}),{loadingData:g,error:f,wwir:y,geocode:b,lod:w,ctaUrl:j,mapImages:N,ctaText:C,isDashboard:T}=S(v,p,null!=u?u:"sm");return i||f?null:(0,a.jsx)(F,{isLoading:n||x||g,enableLocationPin:null!=o?o:void 0,enableWWIRPhrase:null!=d?d:void 0,enableAnimation:null!=c?c:void 0,showMapBoxAttribution:null!=m?m:void 0,title:null!=h?h:void 0,wwir:y,geocode:b,lod:w,ctaLink:j,mapImages:N,ctaText:C,isDashboard:T})},z=e=>{let{enableLocationPin:t,enableWWIRPhrase:l,enableAnimation:r,locationEntry:s,locationProvider:o,mapImageSize:d,showMapBoxAttribution:c,title:u}=e,m="specified"===o,{specifiedLocationData:h,specifiedLocationError:p,isSpecifiedLocationLoading:v}=(0,n.v)(s),x=m&&h&&s?(0,i.I)(h):void 0;return(0,a.jsx)(B,{location:x,initializing:m&&v,initialError:m?p:void 0,enableLocationPin:t,enableWWIRPhrase:l,enableAnimation:r,mapImageSize:d,showMapBoxAttribution:c,title:u})},H=z},60645:(e,t,l)=>{"use strict";l.d(t,{D:()=>s});var a=l(76792),n=l(42292),i=l(23233);let r=(0,n.forwardRef)((e,t)=>{let{title:l,titleId:n,desc:i,descId:r,...s}=e;return(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:t,"aria-labelledby":n,"aria-describedby":r,...s,children:[i?(0,a.jsx)("desc",{id:r,children:i}):null,void 0===l?(0,a.jsx)("title",{id:n,children:"Snowflake"}):l?(0,a.jsx)("title",{id:n,children:l}):null,(0,a.jsxs)("g",{fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd",children:[(0,a.jsx)("path",{d:"M8 1a.5.5 0 0 1 .5.5v13a.5.5 0 0 1-1 0v-13A.5.5 0 0 1 8 1"}),(0,a.jsx)("path",{d:"M5.896 1.896a.5.5 0 0 1 .707 0L8 3.293l1.396-1.397a.5.5 0 1 1 .707.708L8 4.707 5.896 2.604a.5.5 0 0 1 0-.708M5.896 13.854a.5.5 0 0 0 .707 0L8 12.457l1.396 1.397a.5.5 0 0 0 .707-.708L8 11.043l-2.104 2.103a.5.5 0 0 0 0 .708M14.062 4.5a.5.5 0 0 1-.183.683l-11.259 6.5a.5.5 0 0 1-.5-.866l11.259-6.5a.5.5 0 0 1 .683.183"}),(0,a.jsx)("path",{d:"M12.234 3.126a.5.5 0 0 1 .353.613l-.51 1.907 1.907.512a.5.5 0 1 1-.26.965l-2.873-.77.77-2.873a.5.5 0 0 1 .613-.354M1.878 9.105a.5.5 0 0 0 .354.612l1.908.511-.512 1.908a.5.5 0 1 0 .966.259l.77-2.874-2.873-.77a.5.5 0 0 0-.613.354M14.062 11.5a.5.5 0 0 1-.683.183L2.12 5.183a.5.5 0 1 1 .5-.866l11.259 6.5a.5.5 0 0 1 .183.683"}),(0,a.jsx)("path",{d:"M14.337 9.23a.5.5 0 0 1-.353.612l-1.908.511.511 1.908a.5.5 0 1 1-.966.259l-.77-2.874 2.874-.77a.5.5 0 0 1 .612.354M3.982 3.251a.5.5 0 0 0-.354.613L4.14 5.77l-1.908.512a.5.5 0 1 0 .259.965l2.873-.77-.77-2.873a.5.5 0 0 0-.612-.354"})]})]})}),s=n.forwardRef((e,t)=>(0,a.jsx)(i.h,{ref:t,icon:r,...e}));s.displayName="Snowflake"},60827:(e,t,l)=>{"use strict";l.r(t),l.d(t,{BlueskyBlock:()=>d,default:()=>c});var a=l(76792),n=l(42292);let i=(0,l(23803).h)("payload:Bluesky:OEmbed");function r(e){try{if(e.startsWith("at://")){let t=e.match(/^at:\/\/([^/]+)\/app\.bsky\.feed\.post\/([^/?#]+)/);if(t){let e=t[1],l=t[2];if(e&&l)return{handle:e,postId:l}}return null}let t=new URL(e).pathname.split("/");if(t.length>=5&&"profile"===t[1]&&"post"===t[3]){let e=t[2],l=t[4];if(e&&l)return{handle:e,postId:l}}return null}catch(e){return null}}async function s(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};try{let l=r(e);if(!l)return{error:"invalid_url",message:"Invalid Bluesky URL format"};let a=new URL("https://embed.bsky.app/oembed");a.searchParams.set("url",e),i.debug("Fetching Bluesky oEmbed",{url:e,parsedUrl:l,options:t}),t.maxWidth&&a.searchParams.set("maxwidth",t.maxWidth.toString()),t.maxHeight&&a.searchParams.set("maxheight",t.maxHeight.toString());let n=await fetch(a.toString(),{method:"GET",headers:{Accept:"application/json","User-Agent":"wx-next/1.0"}});if(!n.ok)return{error:"api_error",message:"Bluesky API returned ".concat(n.status,": ").concat(n.statusText)};let s=await n.json();if("rich"!==s.type||!s.html)return{error:"invalid_response",message:"Invalid oEmbed response from Bluesky"};return s}catch(e){return{error:"fetch_error",message:e instanceof Error?e.message:"Unknown error occurred"}}}function o(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],l=r(e),a=l?"@".concat(l.handle):"Bluesky User";return'\n

\n
\n \n \n \n Bluesky Post\n
\n
\n Post by '.concat(a,'\n
\n
\n \n View on Bluesky →\n \n
\n ').concat(t?'
Thread view enabled
':"","\n
\n ")}let d=e=>{let{entryMethod:t,blueskyURL:l,postId:i,showThread:r=!1}=e,d=(0,n.useRef)(null),[c,u]=(0,n.useState)(!0),[m,h]=(0,n.useState)(null),p=(0,n.useCallback)(()=>"id"===t&&i?null:"url"===t&&l?l:null,[t,i,l]);return((0,n.useEffect)(()=>{(async()=>{let e=p();if(!e){h("No valid Bluesky URL provided"),u(!1);return}if(d.current){u(!0),h(null);try{let t=await s(e,{maxWidth:550,showThread:r});"error"in t?(console.warn("Bluesky oEmbed error:",t),d.current.innerHTML=o(e,r)):d.current.innerHTML=t.html}catch(t){console.error("Failed to load Bluesky embed:",t),d.current.innerHTML=o(e,r)}finally{u(!1)}}})()},[p,r]),c)?(0,a.jsx)("div",{className:"bluesky-embed-loading",style:{border:"1px solid #e1e8ed",borderRadius:"12px",padding:"16px",margin:"16px 0",maxWidth:"550px",background:"#f8f9fa",textAlign:"center"},children:(0,a.jsx)("div",{style:{color:"#536471"},children:"Loading Bluesky post..."})}):m?(0,a.jsxs)("div",{className:"bluesky-embed-error",style:{border:"1px solid #ff6b6b",borderRadius:"12px",padding:"16px",margin:"16px 0",maxWidth:"550px",background:"#fff5f5"},children:[(0,a.jsx)("div",{style:{color:"#d63031",fontWeight:"bold",marginBottom:"8px"},children:"Bluesky Embed Error"}),(0,a.jsx)("div",{style:{color:"#636e72"},children:m})]}):(0,a.jsx)("div",{className:"bluesky-embed-container",ref:d})},c=d},62596:(e,t,l)=>{"use strict";l.d(t,{P:()=>n});var a=l(79315);let n=e=>{var t,l,n,i,r,s,o,d,c;let{date:u,locale:m="en-US",timeZone:h,minutes:p,showTimeZone:v,showShortDayperiod:x,weekday:g}=e;if(!u)return"";let{cDate:f,cTimeZone:y}=(0,a.r)({date:u,locale:m,timeZone:h}),b={hour:"numeric",hour12:!0,timeZone:y};g&&(b.weekday=g),p&&(b.minute="2-digit"),"en-US"!==m&&"es-US"!==m&&(delete b.hour12,b.minute="2-digit",b.hourCycle="h23"),v&&(b.timeZoneName="short");let w=new Intl.DateTimeFormat(m,b);if(m.includes("-US")){let e=w.formatToParts(f),a=g&&(null==(t=e.find(e=>"weekday"===e.type))?void 0:t.value),s=null==(l=e.find(e=>"hour"===e.type))?void 0:l.value,o=p&&(null==(n=e.find(e=>"minute"===e.type))?void 0:n.value),d=null==(i=e.find(e=>"dayperiod"===e.type.toLowerCase()))?void 0:i.value.toLowerCase(),c=m.includes("en")?d:null==d?void 0:d.replace(/\./g,"").replace(/\s/g,""),u=x?"".concat(null==c?void 0:c[0]," "):" ".concat(c," "),h=v?null==(r=e.find(e=>"timeZoneName"===e.type))?void 0:r.value:"",y=g?"".concat(a," "):"";return"".concat(y).concat(s).concat(p?":".concat(o):"").concat(u).concat(h).trim()}if(x){let e=w.formatToParts(f),t=g&&(null==(s=e.find(e=>"weekday"===e.type))?void 0:s.value),l=null==(o=e.find(e=>"hour"===e.type))?void 0:o.value,a=p&&(null==(d=e.find(e=>"minute"===e.type))?void 0:d.value),n=v?null==(c=e.find(e=>"timeZoneName"===e.type))?void 0:c.value:"";return"".concat(g?"".concat(t," "):"").concat(l).concat(p?":".concat(a):""," ").concat(n).trim()}return w.format(f)}},63236:(e,t,l)=>{"use strict";l.d(t,{b:()=>r});var a=l(76792);l(42292);var n=l(48260),i=l(71666);let r=e=>{let{className:t,units:l,visibility:r,unitsClassName:s}=e,o=l?(0,i.Bu)(l):null,d=null==o?void 0:o.distance,c="";return c=0===r?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("span",{children:"0"}),(0,a.jsxs)("span",{className:(0,n.cn)(s),children:[" ",d]})]}):!r||r10||"m"===l&&r>16?"Unlimited":(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("span",{children:r}),(0,a.jsxs)("span",{className:(0,n.cn)(s),children:[" ",d]})]}),(0,a.jsx)("span",{"data-testid":"VisibilityValue",className:(0,n.cn)(t),children:c})}},66678:(e,t,l)=>{"use strict";t.U=r;let a=l(39825),n=l(17681),i=l(36762);async function r(e){let t=(0,a.getWWIRForecastUrlConfig)(e),l=(0,n.urlFrom)(t),r=await fetch(l,{headers:{"Accept-Encoding":"gzip"},next:{revalidate:300}});return await (0,i.handleFetchResponse)(r)}},68577:(e,t,l)=>{"use strict";l.d(t,{A:()=>U});var a=l(76792),n=l(55198),i=l(61e3),r=l(42292),s=l(75302),o=l(32035),d=l(71666),c=l(76088),u=l(44615),m=l(12962),h=l(36116),p=l(77962),v=l(99838);let x=["rain","freezing_rain"],g=["snow","sleet"],f="#47A25D",y="#65B0C3",b="#DD85A7",w={300:"rain",310:"rain",400:"rain",402:"rain",410:"rain",412:"rain",500:"rain",510:"rain",600:"rain",601:"rain",610:"rain",611:"rain",700:"sleet",701:"sleet",710:"sleet",711:"sleet",800:"freezing_rain",810:"freezing_rain",850:"freezing_rain",900:"rain",910:"rain",950:"rain",1e3:"freezing_rain",1001:"freezing_rain",1002:"freezing_rain",1010:"freezing_rain",1011:"freezing_rain",1012:"freezing_rain",1051:"freezing_rain",1100:"rain",1110:"rain",1140:"rain",1170:"rain",1200:"rain",1201:"rain",1210:"rain",1211:"rain",1240:"rain",1251:"rain",1270:"rain",1300:"snow",1310:"snow",1400:"snow",1410:"snow",1600:"snow",1601:"snow",1610:"snow",1611:"snow",1651:"snow",1800:"sleet",1801:"sleet",1810:"sleet",1811:"sleet",3700:"rain",3710:"rain",3800:"rain",3810:"rain",3900:"rain",3910:"rain",4e3:"rain",4010:"rain",4100:"snow",4110:"snow",4200:"snow",4210:"snow",4300:"snow",4500:"rain",4510:"rain",4600:"rain",4610:"rain",4700:"snow",4710:"snow",4800:"snow",4810:"snow",4900:"rain",4910:"rain",5e3:"snow",5100:"freezing_rain",5101:"freezing_rain",5110:"freezing_rain",5111:"freezing_rain",5200:"sleet",5210:"sleet",5300:"freezing_rain",5301:"freezing_rain",5302:"freezing_rain",5310:"freezing_rain",5311:"freezing_rain",5312:"freezing_rain",5351:"freezing_rain",5400:"snow",5500:"rain",5600:"snow",5610:"snow",5700:"rain",5710:"rain"},j=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1;switch(!0){case e>1.65:return 9;case e>.72:return 8;case e>.32:return 7;case e>.14:return 6;case e>.06:return 5;case e>.03:return 4;case e>.01:return 3;case e>0:return 2;case 0===e:return .7;default:return 0}},N=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1;switch(!0){case e>1.52:return 9;case e>.48:return 8;case e>.17:return 7;case e>.07:return 6;case e>.03:return 5;case e>.02:return 4;case e>.01:return 3;case e>0:return 2;case 0===e:return .7;default:return 0}};var C=l(44936);let T={revalidateOnFocus:!1,dedupingInterval:6e4};var A=l(47421),M=l(69585),S=l(68751),_=l(9198),I=l(48260),R=l(62596),k=l(50772),P=l(21230),E=l(73923),L=l(82170);let D={id:"barBackground",beforeDatasetsDraw(e,t,l){let{ctx:a,chartArea:{top:n},scales:{y:i}}=e;if(!i)return;let r=e.getDatasetMeta(0),s=l.floatPoint||0;r.data.forEach(e=>{var t;let{x:r,width:o}=e.getProps(["x","width"],!0);a.save(),a.fillStyle=l.color||"transparent",function(e,t,l,a,n,i){let r=Math.min(i,a/2,n/2);e.beginPath(),e.moveTo(t+r,l),e.lineTo(t+a-r,l),e.quadraticCurveTo(t+a,l,t+a,l+r),e.lineTo(t+a,l+n-r),e.quadraticCurveTo(t+a,l+n,t+a-r,l+n),e.lineTo(t+r,l+n),e.quadraticCurveTo(t,l+n,t,l+n-r),e.lineTo(t,l+r),e.quadraticCurveTo(t,l,t+r,l),e.closePath(),e.fill()}(a,r-o/2,n,o,i.getPixelForValue(i.min+s)-n,null!=(t=l.borderRadius)?t:8),a.restore()})}},F={id:"extendXAxisLine",afterDraw(e,t,l){var a,n,i,r,s;let{ctx:o,scales:d}=e,c=d.x,u=d.y,m=null!=(a=l.offset)?a:20,h=(null!=(n=null==u?void 0:u.bottom)?n:0)+m;o.save(),o.beginPath(),o.strokeStyle=l.color||"black",o.lineWidth=null!=(i=l.lineWidth)?i:1,o.moveTo((null!=(r=null==c?void 0:c.left)?r:0)-200,h),o.lineTo((null!=(s=null==c?void 0:c.right)?s:0)+200,h),o.stroke(),o.restore()}},B={id:"transitionLines",afterDatasetsDraw(e,t,l){let{ctx:a,scales:{x:n,y:i}}=e;i&&(a.save(),a.lineWidth=1,a.setLineDash([2,2]),(0,L.v)(l.transitionPoints,(t,n)=>{var r;let s=+n,o=e.getDatasetMeta(0),d=o.data[s],c=o.data[s-1];if(!d||!c)return;let{x:u}=d.getProps(["x"],!0),{x:m}=c.getProps(["x"],!0),h=(m+u)/2;a.beginPath(),a.strokeStyle=t,a.moveTo(h,i.top),a.lineTo(h,i.getPixelForValue(i.min+(null!=(r=l.floatPoint)?r:0))),a.stroke()}),a.restore())}},z=e=>{let{data:t,ianaTimeZone:l,locale:n}=e,i=(0,A.c3)("PrecipIntensity");return(0,a.jsxs)("table",{className:"hidden",children:[(0,a.jsx)("caption",{children:i("tableCaption")}),(0,a.jsx)("thead",{children:(0,a.jsxs)("tr",{children:[(0,a.jsx)("th",{children:i("time")}),(0,a.jsx)("th",{children:i("precipType")}),(0,a.jsx)("th",{children:i("precipLevel")})]})}),(0,a.jsx)("tbody",{children:null==t?void 0:t.map(e=>0!==e.level?(0,a.jsxs)("tr",{children:[(0,a.jsx)("td",{children:(0,R.P)({date:e.validTimeLocal,locale:n,timeZone:l,minutes:!0})}),(0,a.jsx)("td",{children:e.precipType}),(0,a.jsx)("td",{children:e.level})]},e.validTimeLocal):null)})]})},H=e=>{let{rtl:t,isSamsungTheme:l,radius:n=4,legendTypes:i}=e,s=(0,A.c3)("PrecipIntensity"),o=(0,r.useMemo)(()=>{let e=[{label:s("legendRain"),type:E.PrecipType.RAIN,color:f},{label:s("legendSnow"),type:E.PrecipType.SNOW,color:y},{label:s(l?"samsungLegendMix":"legendMix"),type:E.PrecipType.PRECIP,color:b}];return t?e.reverse():e},[l,t,s]);return(0,a.jsx)("div",{className:"mt-3 flex items-center justify-center gap-6",children:o.map(e=>{let{label:t,type:l,color:r}=e;return(!i||i[l])&&(0,a.jsxs)("div",{className:"flex items-center gap-1",children:[(0,a.jsx)("div",{style:{width:2*n,height:2*n,backgroundColor:r},className:"rounded-full"}),(0,a.jsx)("p",{className:"text-xs",children:t})]},l)})})},V=async()=>{let{Chart:e,CategoryScale:t,LinearScale:a,BarController:n,BarElement:i}=await Promise.all([l.e(9645),l.e(675)]).then(l.bind(l,46354));return e.register(t,a,n,i),e},W=(0,r.memo)(e=>{let{chartData:t,hasChartData:l,ianaTimeZone:n,locale:i,rootClass:s,rtl:o=!1,removeTransitionLines:d}=e,c=(0,A.c3)("PrecipIntensity"),u=(0,r.useRef)(null),m=(0,r.useRef)(null),[h,p]=(0,k.r)(e=>eo?[...t].reverse():t,[t,o]),w=(0,r.useMemo)(()=>t.reduce((e,t)=>{let{precipType:l}=t;return e[l]=!0,e},{}),[t]),j=(0,r.useMemo)(()=>{let e=Object.values(E.PrecipType),t=0;for(let l of e)w[l]&&t++;return t>1},[w]),N=(0,r.useMemo)(()=>{let e=v.map(e=>e.level),t=v.map(e=>{let{validTimeLocal:t}=e;return t}),l=v.map(e=>{let{precipType:t}=e;return t===E.PrecipType.RAIN?f:t===E.PrecipType.SNOW?y:b});return{labels:t,datasets:[{label:c("chartTitle"),data:e,backgroundColor:l,borderWidth:0,maxBarThickness:h?4:8,categoryPercentage:1,stack:"stack1",borderRadius:12,borderSkipped:!1}]}},[h,v,c]),C=(0,r.useMemo)(()=>({responsive:!0,maintainAspectRatio:!1,plugins:{legend:{display:!1},tooltip:{enabled:!1},transitionLines:{floatPoint:.5,transitionPoints:d?void 0:v.reduce((e,t,l)=>{var a;if(l>0&&t.level>0&&v[l-1]&&t.precipType!==(null==(a=v[l-1])?void 0:a.precipType)){let a=b;x.includes(t.precipType)?a=f:g.includes(t.precipType)&&(a=y),e[l]=a}return e},{})},barBackground:{color:"#eeeeee",borderRadius:12,floatPoint:.5},extendXAxisLine:{color:"#eeeeee",lineWidth:1,offset:-2},datasets:{bar:{minBarLength:10}}},scales:{x:{stacked:!0,grid:{display:!0,drawOnChartArea:!1,drawTicks:!0,tickColor:"#676767",tickLength:3,tickWidth:1,tickBorderDashOffset:50,offset:!1},border:{display:!1},ticks:{major:{enabled:!0},display:!0,maxRotation:0,minRotation:0,autoSkip:!1,font:{size:h?12:14},color:"#676767",callback:function(e,t){var l;let a=new Date((null==(l=this.chart.data.labels)?void 0:l[t])||"");return 0===a.getMinutes()?(0,R.P)({date:a,locale:i,timeZone:n,showShortDayperiod:!0}):h?null:""}}},y:{stacked:!0,min:-.5,max:9,position:o?"right":"left",grid:{display:!1,drawBorder:!1},ticks:{count:10,autoSkip:!1,display:!0,crossAlign:"far",font:{size:h?12:14},callback:function(e,t){return 2===t?c("chartLight"):8===t?c("chartHeavy"):""}},border:{display:!1}}}}),[d,v,h,o,c,i,n]);return((0,r.useEffect)(()=>{let e=!1;return!async function(){var t;let l=await V(),a=null==(t=u.current)?void 0:t.getContext("2d");!e&&a&&l&&(m.current=new l(a,{type:"bar",data:N,options:C,plugins:[D,F,B]}))}(),()=>{var t;e=!0,null==(t=m.current)||t.destroy()}},[N,C]),l)?(0,a.jsxs)("div",{ref:p,className:(0,I.cn)("@container/precipChart",s),dir:o?"rtl":void 0,children:[(0,a.jsx)(z,{data:t,ianaTimeZone:n,locale:i}),(0,a.jsx)("div",{className:(0,I.cn)("relative h-26 text-sm text-gray-500 @md/precipChart:h-30",o?"pr-2 @md/precipChart:pr-3 @xl/precipChart:pr-4":"pl-2 @md/precipChart:pl-3 @xl/precipChart:pl-4"),children:(0,a.jsx)("canvas",{ref:u})}),j&&(0,a.jsx)(H,{rtl:o,legendTypes:w,isSamsungTheme:!1})]}):null}),O=e=>{let{location:t,locale:l,onlyChart:n,isLoading:i,chartData:r,hasChartData:s,rtl:o,removeTransitionLines:d,insightTextLong:c}=e,u=(0,A.c3)("PrecipIntensity");if(i||!i&&!s)return null;let m=()=>(0,a.jsx)(W,{chartData:r,hasChartData:s,ianaTimeZone:null==t?void 0:t.ianaTimeZone,locale:l,rtl:o,removeTransitionLines:d});return n?m():s&&(0,a.jsxs)(M.Zp,{className:"relative min-h-[100px] overflow-hidden","aria-label":u("chartTitle"),children:[(0,a.jsxs)(M.Wu,{className:"p-0",children:[c&&(0,a.jsxs)(S.Ay,{variant:"Body.M",className:"mb-2",children:[(0,a.jsx)("span",{className:"font-bold",children:"Outlook:"})," ",c]}),m()]}),t&&(0,a.jsx)(_.default,{className:"absolute top-0 right-0 bottom-0 left-0",href:"/weather/hourbyhour/l/".concat(t.placeId),"aria-label":u("viewHourlyForecast"),children:"\xa0"})]})},U=e=>{var t;let{location:l,onlyChart:f,initializing:y,initialError:b}=e,A=null==(t=(0,n.useParams)())?void 0:t.locale,{effectiveLocation:M,isLocationLoading:S}=(0,i.s)({location:l}),{loadingForecast:_,chartData:I,hasChartData:R,insightTextLong:k}=((e,t)=>{let l=(0,s.md)(o.Yt),a=(0,d.xP)(l)||d.AF,n=a.code,i=(0,p.A)(),f="KR"===i,y=f&&(null==e?void 0:e.countryCode)==="KR",{data:b,isLoading:A}=(0,u.Ay)(e&&y?["get-hourly-forecast",e.geocode,n,t,f?i:void 0]:null,e=>{let[t,l,a,n,i]=e;return(0,m.$c)({geocode:l,units:a,language:n,cscCountryCode:i,duration:c.HourlyForecastDuration.TWO_DAY})},T),{data:M,isLoading:S}=(0,u.Ay)(e&&!y?["get-fifteen-minute-forecast",e.geocode,n,t]:null,e=>{let[t,l,a,n]=e;return(0,h.FA)({geocode:l,units:a,language:n})},T),_=y?b:M,I=(0,r.useMemo)(()=>((e,t)=>{if(!(null==e?void 0:e.length))return[];let l=e.map(e=>(0,v.$)(e.validTimeLocal));return t?l.slice(0,7):l})(_,y),[_,y]),R=(0,r.useMemo)(()=>((e,t,l,a)=>e?(a?(null==e?void 0:e.slice(0,7))||[]:e||[]).map((e,n)=>{let i=e.iconCodeExtend,r=e.precipType,s=(e=>{let{precipRate:t,iconCodeExtend:l,precipType:a,unitsSystem:n}=e,i=(null==n?void 0:n.precip)!=="in"?Number((t/25.4).toFixed(2)):t,r="precip"===a||0===t?w[l]:a;switch(!0){case x.includes(r):return j(i);case g.includes(r):return N(i);default:return 0}})({precipRate:a?e.qpf:e.precipRate,iconCodeExtend:i,precipType:r,unitsSystem:t});return{precipType:r,validTimeLocal:l[n],level:s}}):Array(7).fill({precipType:"",validTimeLocal:"",level:0}))(_,a,I,y)||[],[_,y,I,a]),k=(0,r.useMemo)(()=>(e=>!!(null==e?void 0:e.find(e=>{let{level:t}=e;return t>0})))(R),[R]),{loadingInsight:P,insightHeadline:E,insightTextLong:L}=(0,C.p)(e,t);return{loadingForecast:A||S,chartData:R,hasChartData:k,loadingInsight:P,insightHeadline:E,insightTextLong:L}})(M,A);return b?null:(0,a.jsx)(O,{location:M,locale:A,onlyChart:f,isLoading:y||S||_,chartData:I,hasChartData:R,insightTextLong:k})}},69474:(e,t,l)=>{"use strict";l.d(t,{W:()=>c});var a=l(76792),n=l(58196),i=l(60645),r=l(51254),s=l(48260),o=l(28004),d=l(73923);let c=e=>{let{precipChance:t=null,precipType:l,showIcon:c=!0,displayMode:u="text",className:m,iconClassName:h,textClassName:p,progressClassName:v,progressBarClassName:x}=e;if((0,n.g)(t))return"--";let g=l===d.PrecipType.SNOW?i.D:r.Y;return(0,a.jsxs)(a.Fragment,{children:[("text"===u||"both"===u)&&(0,a.jsxs)("span",{className:(0,s.cn)(m,p),children:[c&&(0,a.jsx)(g,{className:(0,s.cn)("size-4",h)}),(0,a.jsx)(o.N,{value:t,className:"align-middle"})]}),("progress"===u||"both"===u)&&(0,a.jsxs)("div",{className:(0,s.cn)("relative inline-block h-5 w-26 overflow-hidden rounded-xl bg-[#e9e9e9] align-middle",m,v),children:[(0,a.jsx)("div",{className:(0,s.cn)("bg-brand-100 relative h-full w-full rounded-xl",x),style:{left:"".concat(t-100,"%")}}),(0,a.jsxs)("div",{className:"absolute top-0 bottom-0 flex h-full w-full items-center p-1",children:[c&&(0,a.jsx)(g,{className:(0,s.cn)("size-3.25",h)}),(0,a.jsx)(o.N,{value:t,className:"text-sm"})]})]})]})}},70336:(e,t,l)=>{"use strict";l.d(t,{Wu:()=>s,Zp:()=>i,aR:()=>r});var a=l(76792);l(42292);var n=l(48260);function i(e){let{className:t,...l}=e;return(0,a.jsx)("div",{"data-slot":"card",className:(0,n.cn)("bg-card text-card-foreground flex flex-col gap-6 rounded-xl py-6",t),...l})}function r(e){let{className:t,...l}=e;return(0,a.jsx)("div",{"data-slot":"card-header",className:(0,n.cn)("@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-1.5 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6",t),...l})}function s(e){let{className:t,...l}=e;return(0,a.jsx)("div",{"data-slot":"card-content",className:(0,n.cn)("px-6",t),...l})}},73923:(e,t)=>{"use strict";var l,a,n,i,r;Object.defineProperty(t,"__esModule",{value:!0}),t.PrecipIntensityCode=t.PrecipTypeCode=t.ThunderCategory=t.PrecipType=t.MoonPhaseCode=void 0,function(e){e.WANING_GIBBOUS="WNG",e.WAXING_CRESCENT="WXC",e.FIRST_QUARTER="FQ",e.WANING_CRESCENT="WNC",e.LAST_QUARTER="LQ",e.FULL="F",e.WAXING_GIBBOUS="WXG",e.NEW="N"}(l||(t.MoonPhaseCode=l={})),function(e){e.RAIN="rain",e.SNOW="snow",e.PRECIP="precip"}(a||(t.PrecipType=a={})),function(e){e.NO_THUNDER="0",e.THUNDER_POSSIBLE="1",e.THUNDER_EXPECTED="2",e.SEVERE_THUNDERSTORMS_POSSIBLE="3",e.SEVERE_THUNDERSTORMS_LIKELY="4",e.HIGH_RISK_OF_SEVERE_THUNDERSTORMS="5"}(n||(t.ThunderCategory=n={})),function(e){e[e.NONE=0]="NONE",e[e.RAIN=1]="RAIN",e[e.SNOW=2]="SNOW",e[e.FREEZING_RAIN=3]="FREEZING_RAIN",e[e.THUNDER=4]="THUNDER",e[e.SLEET=5]="SLEET",e[e.HAIL=6]="HAIL"}(i||(t.PrecipTypeCode=i={})),function(e){e[e.NONE=0]="NONE",e[e.VERY_LIGHT=1]="VERY_LIGHT",e[e.LIGHT=2]="LIGHT",e[e.MODERATE=3]="MODERATE",e[e.HEAVY=4]="HEAVY"}(r||(t.PrecipIntensityCode=r={}))},74130:(e,t,l)=>{"use strict";l.r(t),l.d(t,{CTABlock:()=>i,default:()=>r});var a=l(76792);l(42292);var n=l(22627);let i=e=>{let{title:t,subTitle:l,subText:i,ctaStyle:r,media:s,buttonText:o,linkUrl:d,openInNewTab:c,backgroundColor:u}=e,m=void 0!=s.url?s.url:"string"==typeof s?s:null;return(0,a.jsx)("section",{className:"not-prose @container mx-auto w-full max-w-4xl rounded-md ".concat({white:"bg-white","light-gray":"bg-gray-100","brand-blue":"bg-blue-500",accent:"bg-accent"}[u||"white"]," p-5 shadow-2xl"),children:(0,a.jsx)("div",{className:"cta-block ".concat(r),children:(0,a.jsxs)("div",{className:"cta-content text-black",children:[(0,a.jsx)("h2",{className:"mb-6 text-2xl font-bold",children:t}),m&&(0,a.jsx)("a",{href:d,target:c?"_blank":"_self",rel:c?"noopener noreferrer":void 0,className:"mb-4 block overflow-hidden rounded-lg",children:(0,a.jsx)("div",{className:"relative w-full",children:(0,a.jsx)(n.A,{src:m,alt:t})})}),l&&(0,a.jsx)("h2",{className:"mb-2 text-lg font-bold",children:l}),i&&(0,a.jsx)("p",{className:"mb-4",children:i}),"standard"===r&&(0,a.jsx)("div",{className:"mt-4 flex justify-end",children:(0,a.jsx)("a",{href:d,target:c?"_blank":"_self",rel:c?"noopener noreferrer":void 0,className:"inline-block rounded-lg bg-black px-6 py-3 text-white transition-colors hover:bg-gray-800",children:o||"Learn More"})})]})})})},r=i},74223:(e,t,l)=>{"use strict";l.r(t),l.d(t,{DailyForecastBlock:()=>V,default:()=>W});var a=l(76792),n=l(44685),i=l(46593),r=l(42292),s=l(47421),o=l(55198),d=l(61e3),c=l(99530);let u=function(e,t){let l=(0,c.G)();return l?l.variant(e,t):t};var m=l(27370),h=l(48260),p=l(75302),v=l(32035),x=l(71666),g=l(68751),f=l(81217),y=l(55406),b=l(82903),w=l(69474),j=l(11340),N=l(25895),C=l(76088);let T=["relativeHumidity","uvIndex","sunrise","sunset"],A=["relativeHumidity","uvIndex","moonrise","moonset","moonPhase"],M=e=>{let{data:t,locale:l,validTime:n}=e,i=(0,s.c3)("DailyForecast"),r=(0,p.md)(v.Yt),o=(0,x.xP)(r),d=t.dayOrNight===C.DayOrNight.DAY,c=d?"cols-start-1":"cols-start-2";return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:c+" row-start-1 mb-4",children:[(0,a.jsxs)("div",{className:"mb-2 flex justify-between gap-2",children:[(0,a.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,a.jsxs)(g.Ay,{children:[(0,a.jsx)("span",{className:"font-bold",children:n})," | ",i(d?"day":"night")]}),(0,a.jsxs)("div",{className:"flex gap-2",children:[(0,a.jsx)(g.Ay,{variant:"Title.XL",elementType:"span",children:(0,a.jsx)(y.B,{value:t.temperature})}),(0,a.jsx)(j.WxIcon,{iconCode:t.iconCode,iconCodeExtend:t.iconCodeExtend,className:"size-11"})]})]}),(0,a.jsxs)("div",{className:"flex flex-col justify-end gap-1",children:[(0,a.jsx)(w.W,{precipChance:t.precipChance,precipType:t.precipType,iconClassName:"mr-1"}),(0,a.jsx)(f.Z,{windSpeed:t.windSpeed,windDirectionCardinal:t.windDirectionCardinal,units:o.code,iconClassName:"mr-1",cardinalBeforeSpeed:!0,useWindIcon:!0})]})]}),(0,a.jsx)(g.Ay,{children:t.narrative})]}),(0,a.jsx)("div",{className:c+" row-start-2 mb-4",children:(0,a.jsx)(N.A,{dataPoints:t,fields:d?T:A,locale:l,columns:2})})]})};var S=l(69914);let _=(e,t,l)=>{var a,n;if(!e)return"";let i=(0,S.V)(e,t,l),r=null==(a=i.find(e=>"day"===e.type))?void 0:a.value,s=null==(n=i.find(e=>"weekday"===e.type))?void 0:n.value;return"".concat(s," ").concat(r)},I=e=>{let{dailyForecast:t,locale:l,timeZone:n,itemIndex:i,isKoreaCscLocation:o,locationDayDate:d}=e,c=(0,p.md)(v.Yt),u=(0,x.xP)(c),m=(0,s.c3)("DailyForecast"),h=t.daypart[0],N=t.daypart[1],C=null!=h?h:N,T=null==C?void 0:C.wxPhraseLong,A=(null==t?void 0:t.validTimeLocal)&&_(t.validTimeLocal,l,n),S=(0,r.useMemo)(()=>o?d===A?m("today"):A:0===i&&(null==C?void 0:C.daypartName)?null==C?void 0:C.daypartName:A,[o,i,d,null==C?void 0:C.daypartName,A,m]);return A?(0,a.jsxs)(b.As,{value:t.validTimeLocal||"",className:"border-grey-500 @container/dailyItem gap-1 overflow-hidden border-b py-3",children:[(0,a.jsx)(b.$m,{className:"items-center gap-2 p-0",iconClassName:"size-4",triggerContent:(0,a.jsxs)("div",{className:"flex w-full items-center justify-between gap-1 [&>.openHide]:group-data-[state=open]:invisible",children:[(0,a.jsx)("div",{className:"min-w-[60px]",children:(0,a.jsx)(g.Ay,{className:"whitespace-nowrap group-data-[state=open]:font-bold @max-xs/dailyItem:text-sm",children:S})}),(0,a.jsx)("div",{className:"openHide basis-[90px]",children:(0,a.jsxs)(g.Ay,{variant:"Body.M",elementType:"span",className:"whitespace-nowrap",children:[(0,a.jsx)(g.Ay,{variant:"Body.L.Bold",elementType:"span",children:(0,a.jsx)(y.B,{value:t.temperatureMax})})," / ",(0,a.jsx)(y.B,{value:t.temperatureMin})]})}),(0,a.jsxs)("div",{className:"openHide relative flex h-6 items-center",children:[(0,a.jsx)(j.WxIcon,{iconCode:null==C?void 0:C.iconCode,className:"lightBG size-7",size:"lg",iconTheme:"lightBG","aria-label":T||"Weather condition ".concat(null==C?void 0:C.iconCode)}),(0,a.jsx)(g.Ay,{variant:"Body.M",className:"min-w-[200px] pl-1.5 @max-xl/dailyItem:hidden",children:T})]}),(0,a.jsx)("div",{className:"openHide basis-[60px]",children:(0,a.jsx)(w.W,{precipChance:null==C?void 0:C.precipChance,className:"whitespace-nowrap",iconClassName:"size-3"})}),(0,a.jsx)("div",{className:"openHide basis-[76px]",children:(0,a.jsx)(g.Ay,{elementType:"div",children:(0,a.jsx)(f.Z,{windSpeed:null==C?void 0:C.windSpeed,windDirectionCardinal:null==C?void 0:C.windDirectionCardinal,units:u.code,displayMode:"directional",className:"whitespace-nowrap",iconClassName:"size-3 @md/dailyItem:size-4"})})})]})}),(0,a.jsxs)(b.ub,{className:"mt-2 block auto-cols-[1fr_1fr] gap-x-6 @md/dailyItem:grid @xl/dailyItem:gap-x-8",children:[h&&(0,a.jsx)(M,{data:h,locale:l,validTime:A}),N&&(0,a.jsx)(M,{data:N,locale:l,validTime:A})]})]}):null};var R=l(22712);let k=e=>{let{skeletonColumns:t}=e;return(0,a.jsx)(a.Fragment,{children:Array(t).fill("").map((e,t)=>(0,a.jsx)("div",{className:"border-grey-500 gap-1 border-b py-3",children:(0,a.jsx)(R.A,{skeletonClassName:"mt-0.75 w-full "+(0===t?"h-91":"h-4")})},"daily-forecast-skel-".concat(t)))})};var P=l(69585),E=l(9198);let L=e=>{var t;let{location:l,isLoading:n,error:i,dailyForecasts:o,locale:d,isKoreaCscLocation:c,locationTime:u,canToggleMultipleItems:p,ctaText:v,ctaLink:x,reorderModule:f,simplifiedVersion:y}=e,w=(0,s.c3)("DailyForecast"),j=(null==l?void 0:l.ianaTimeZone)||"America/New_York",N=(0,r.useMemo)(()=>j?_(u,d,j):"",[d,j,u]),C=null==o||null==(t=o[0])?void 0:t.validTimeLocal;return(0,a.jsxs)(P.Zp,{className:(0,h.cn)("not-prose @container/daily",f?"-order-1":"order-0"),"aria-label":w("dailyForecast"),"data-testid":"daily-forecast",children:[(0,a.jsx)(P.aR,{text:w("dailyForecast")}),(0,a.jsx)(P.Wu,{className:"p-0",children:i?(0,a.jsx)("div",{className:"flex h-64 items-center justify-center p-6",children:(0,a.jsx)(g.Ay,{variant:"Display.S",children:(null==i?void 0:i.message)||w("unableToLoadData")})}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(b.nD,{...p?{type:"multiple",defaultValue:C?[C]:void 0}:{type:"single",defaultValue:C},children:n?(0,a.jsx)(k,{skeletonColumns:y?4:15}):null==o?void 0:o.map((e,t)=>(0,a.jsx)(I,{itemIndex:t,dailyForecast:e,locale:d,timeZone:j,isKoreaCscLocation:c,locationDayDate:N},e.validTimeLocal))},C),x&&v&&(0,a.jsx)("div",{className:"pt-6",children:(0,a.jsx)(m.$n,{"data-testid":"next-48-hours",asChild:!0,children:(0,a.jsx)(E.default,{href:x,children:v})})})]})})]})};var D=l(44615),F=l(14124),B=l(99838),z=l(77962);let H=e=>{let{location:t,simplifiedVersion:l,initializing:n,initialError:i}=e,c=(0,o.useParams)(),m=null==c?void 0:c.locale,h=(0,s.c3)("DailyForecast"),{value:g}=u("reorder-current-conditions-and-forecast","control"),{effectiveLocation:f,isLocationLoading:y}=(0,d.s)({location:t}),{dailyForecasts:b,error:w,isLoading:j,isKoreaCscLocation:N,locationTime:T}=((e,t)=>{var l;let a=(0,o.useParams)(),n=null==a?void 0:a.locale,i=(0,p.md)(v.Yt),s=null==(l=(0,x.xP)(i))?void 0:l.code,d=(0,z.A)(),c="KR"===d,u=c&&(null==e?void 0:e.countryCode)==="KR",m=null==e?void 0:e.ianaTimeZone,h=(0,r.useMemo)(()=>{let e;return m?(e=new Date,(0,B.$)(new Intl.DateTimeFormat("en-US",{timeZone:m,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!1,timeZoneName:"longOffset"}).format(new Date(e)))):""},[m]),{data:g,error:f,isLoading:y}=(0,D.Ay)(e?["get-daily-forecast",e.geocode,t?C.ForecastDuration.THREE_DAY:C.ForecastDuration.FIFTEEN_DAY,s,n,c?d:void 0]:null,e=>{let[t,l,a,n,i,r]=e;return(0,F.v1)({geocode:l,units:n,duration:a,language:i,cscCountryCode:r})},{revalidateOnFocus:!0,dedupingInterval:6e4});return{dailyForecasts:(0,r.useMemo)(()=>t?null==g?void 0:g.slice(0,4):g,[g,t]),error:f,isLoading:y,isKoreaCscLocation:u,locationTime:h}})(f,l);return(0,a.jsx)(L,{location:f,isLoading:n||j||y||!(null==b?void 0:b.length),error:i||w,dailyForecasts:b,locale:m,isKoreaCscLocation:N,locationTime:T,canToggleMultipleItems:!l,ctaText:l?h("bottomCtaButton"):void 0,ctaLink:l?"/weather/tenday/l/".concat((null==f?void 0:f.placeId)||(null==c?void 0:c.locId)):void 0,reorderModule:"treatment"===g,simplifiedVersion:l})},V=e=>{let{locationProvider:t,locationEntry:l,simplifiedVersion:r}=e,s="specified"===t,{specifiedLocationData:o,specifiedLocationError:d,isSpecifiedLocationLoading:c}=(0,i.v)(s?l:null),u=s&&o&&l?(0,n.I)(o):void 0;return(0,a.jsx)(H,{location:u,simplifiedVersion:null!=r&&r,initializing:s&&c,initialError:s?d:void 0})},W=V},75782:(e,t,l)=>{"use strict";l.r(t),l.d(t,{PrecipIntensityBlock:()=>s,default:()=>o});var a=l(76792),n=l(46593),i=l(44685),r=l(68577);let s=e=>{let{locationEntry:t,locationProvider:l}=e,s="specified"===l,{specifiedLocationData:o,specifiedLocationError:d,isSpecifiedLocationLoading:c}=(0,n.v)(t),u=s&&o&&t?(0,i.I)(o):void 0;return(0,a.jsx)(r.A,{location:u,initializing:s&&c,initialError:s?d:void 0})},o=s},75848:(e,t,l)=>{"use strict";l.d(t,{K:()=>s});var a=l(76792),n=l(42292),i=l(23233);let r=(0,n.forwardRef)((e,t)=>{let{title:l,titleId:n,desc:i,descId:r,...s}=e;return(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:t,"aria-labelledby":n,"aria-describedby":r,...s,children:[i?(0,a.jsx)("desc",{id:r,children:i}):null,void 0===l?(0,a.jsx)("title",{id:n,children:"humidity"}):l?(0,a.jsx)("title",{id:n,children:l}):null,(0,a.jsxs)("g",{fill:"currentColor",children:[(0,a.jsx)("path",{fillRule:"evenodd",d:"M8 13a3.5 3.5 0 0 0 3.5-3.5c0-.59-.276-1.34-.701-2.13-.309-.573-.637-1.068-.907-1.475a26 26 0 0 1-.267-.406 77 77 0 0 1-.564-.9c-.151-.244-.281-.453-.502-.796a43 43 0 0 1-.556-.885c-.14.229-.318.52-.55.883-.238.37-.371.587-.538.86-.13.212-.28.456-.515.832q-.159.25-.35.531c-.257.382-.549.816-.841 1.348C4.78 8.139 4.5 8.886 4.5 9.5A3.5 3.5 0 0 0 8 13m0 1a4.5 4.5 0 0 0 4.5-4.5c0-1.486-1.16-3.231-1.797-4.19q-.136-.206-.234-.358a80 80 0 0 1-.552-.88c-.16-.258-.3-.484-.518-.821-.243-.376-.426-.674-.57-.91-.425-.693-.514-.837-.829-.837s-.395.133-.814.822c-.144.237-.328.54-.575.925-.24.373-.382.606-.556.889-.131.214-.28.457-.503.812-.078.125-.18.276-.296.449C4.606 6.37 3.5 8.017 3.5 9.5A4.5 4.5 0 0 0 8 14",clipRule:"evenodd"}),(0,a.jsx)("path",{d:"M12.5 9.5a4.48 4.48 0 0 1-1.107 2.957L4.845 6.025c.283-.443.545-.814.707-1.073.517-.825.638-1.045 1.059-1.701.966-1.507.967-1.747 1.389-1.747s.438.259 1.399 1.747c.413.64.55.883 1.07 1.701S12.5 7.804 12.5 9.5"})]})]})}),s=n.forwardRef((e,t)=>(0,a.jsx)(i.h,{ref:t,icon:r,...e}));s.displayName="Humidity"},76159:(e,t,l)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getHourlyAirQualityForecast=s;let a=l(30253),n=l(17681),i=l(36762),r=l(35181);async function s(e){let t=(0,a.getHourlyAirQualityForecastUrlConfig)(e),l=(0,n.urlFrom)(t),s=await fetch(l,{headers:{"Accept-Encoding":"gzip"},next:{revalidate:300}});return function(e){let t=e.globalairquality,l={validTimeGmt:t.validTimeGmt,airQualityIndex:t.airQualityIndex,airQualityCategory:t.airQualityCategory,airQualityCategoryIndex:t.airQualityCategoryIndex,airQualityCategoryIndexColor:t.airQualityCategoryIndexColor,primaryPollutant:t.primaryPollutant},a=(0,r.createTransformer)((e,l)=>{var a,n;let i=e=>{var a,n,i,r;let s=t.pollutants[e];if(s)return{name:s.name,phrase:s.phrase,amount:null!=(a=s.amount[l])?a:0,unit:s.unit,category:null!=(n=s.category[l])?n:"",categoryIndex:null!=(i=s.categoryIndex[l])?i:0,index:null!=(r=s.index[l])?r:0}};return{...e,pollutants:{CO:i("CO"),NO2:i("NO2"),O3:i("O3"),PM10:i("PM10"),PM2_5:i("PM2.5"),SO2:i("SO2")},messages:{general:null!=(a=t.messages.General[l])?a:{title:"",text:""},sensitiveGroup:null!=(n=t.messages["Sensitive Group"][l])?n:{title:"",text:""}}}})(l);return{latitude:t.latitude,longitude:t.longitude,source:t.source,disclaimer:t.disclaimer,expireTimeGmt:t.expireTimeGmt,forecast:a}}(await (0,i.handleFetchResponse)(s))}},77962:(e,t,l)=>{"use strict";l.d(t,{A:()=>a});let a=()=>""},81495:(e,t,l)=>{"use strict";l.r(t),l.d(t,{CurrentConditionsBlock:()=>D,default:()=>F});var a=l(76792),n=l(42292),i=l(44615),r=l(61e3),s=l(86942),o=l(14124),d=l(76088),c=l(46828),u=l(68751),m=l(48260);let h=e=>{let{children:t,direction:l="horizontal",height:i,width:r,textVariant:s="Display.L",textColor:o="inverse",translateDistance:d,transitionDuration:c="500ms",className:h,transitionClassName:p,isLoading:v,skeletonClassName:x}=e,[g,f]=(0,n.useState)(!1);(0,n.useEffect)(()=>{g||v||setTimeout(()=>{f(!0)},0)},[g,v]);let y="horizontal"===l?"translateX":"translateY";return(0,a.jsx)(u.Ay,{isLoading:v,skeletonClassName:x,elementType:"div",className:(0,m.cn)("w-max overflow-hidden",h),variant:s,color:o,style:{height:i,width:r},children:(0,a.jsx)("span",{className:(0,m.cn)("transform: flex transition-transform",p),style:{transitionDuration:c,flexDirection:"horizontal"===l?"row":"column",transform:g?"".concat(y,"(-").concat(d,")"):"".concat(y,"(0px)")},children:t})})};var p=l(11340);let v="https://s.w-x.co/WeatherImages_Web/WeatherImage_",x=[320,480,640,800],g=[{name:"Tornadoes",iconCodes:[0],dayVariants:2,nightVariants:2},{name:"TropicalStorms",iconCodes:[1,2],dayVariants:2,nightVariants:2},{name:"StrongStorms",iconCodes:[3,4],dayVariants:2,nightVariants:2},{name:"RainAndSnow",iconCodes:[5,7],dayVariants:2,nightVariants:2},{name:"RainAndSleet",iconCodes:[6,10,35],dayVariants:2,nightVariants:2},{name:"FreezingDrizzle",iconCodes:[8],dayVariants:2,nightVariants:2},{name:"Drizzle",iconCodes:[9,11,39],dayVariants:2,nightVariants:2},{name:"Rain",iconCodes:[12],dayVariants:2,nightVariants:2},{name:"Flurries",iconCodes:[13],dayVariants:2,nightVariants:2},{name:"SnowShowers",iconCodes:[14,16],dayVariants:2,nightVariants:2},{name:"BlowingSnow",iconCodes:[15,25],dayVariants:2,nightVariants:2},{name:"Hail",iconCodes:[17,18],dayVariants:2,nightVariants:2},{name:"BlowingSand",iconCodes:[19],dayVariants:2,nightVariants:2},{name:"Foggy",iconCodes:[20],dayVariants:2,nightVariants:2},{name:"Haze",iconCodes:[21],dayVariants:2,nightVariants:2},{name:"Smoke",iconCodes:[22],dayVariants:2,nightVariants:2},{name:"Breezy",iconCodes:[23,24],dayVariants:2,nightVariants:2},{name:"Cloudy",iconCodes:[26],dayVariants:2,nightVariants:2},{name:"MostlyCloudy",iconCodes:[27],dayVariants:null,nightVariants:2},{name:"MostlyCloudy",iconCodes:[28],dayVariants:5,nightVariants:null},{name:"PartlyCloudy",iconCodes:[29],dayVariants:null,nightVariants:2},{name:"PartlyCloudy",iconCodes:[30],dayVariants:5,nightVariants:null},{name:"Clear",iconCodes:[31],dayVariants:null,nightVariants:2},{name:"Sunny",iconCodes:[32,36],dayVariants:4,nightVariants:null},{name:"MostlyClear",iconCodes:[33],dayVariants:null,nightVariants:2},{name:"Fair",iconCodes:[34],dayVariants:2,nightVariants:null},{name:"IsolatedThunderstorms",iconCodes:[37],dayVariants:2,nightVariants:null},{name:"ScatteredThunderstorms",iconCodes:[38],dayVariants:2,nightVariants:null},{name:"HeavyRain",iconCodes:[40],dayVariants:2,nightVariants:2},{name:"ScatteredSnowShowers",iconCodes:[41],dayVariants:2,nightVariants:null},{name:"HeavySnow",iconCodes:[42,43],dayVariants:2,nightVariants:2},{name:"Unknown",iconCodes:[44],dayVariants:null,nightVariants:null},{name:"ScatteredShowers",iconCodes:[45],dayVariants:null,nightVariants:2},{name:"ScatteredSnowShowers",iconCodes:[46],dayVariants:null,nightVariants:2},{name:"Thunderstorms",iconCodes:[47],dayVariants:null,nightVariants:2}],f={"--color-blue-800":["BlowingSnow-night","Breezy-night","Clear-night","Fluries-night","HeavySnow-night","MostlyClear-night","PartlyCloudy-night","ScatteredSnowShowers-night","SnowShowers-night","Unknown.jpg"],"--color-teal-700":["BlowingSnow-day","Breezy-day","Fair-day","Flurries-day","HeavySnow-day","PartlyCloudy-day","ScatteredSnowShowers-day","SnowShowers-day","Sunny-day"],"--color-teal-800":["Drizzle-day","FreezingDrizzle-day","Hail-day","HeavyRain-day","IsolatedThunderstorms-day","Rain-day","RainAndSleet-day","RainAndSnow-day","ScatteredThunderstorms-day","StrongStorms-day","Tornadoes-day","TropicalStorms-day"],"--color-teal-900":["Drizzle-night","FreezingDrizzle-night","Hail-night","HeavyRain-night","Rain-night","RainAndSleet-night","RainAndSnow-night","ScatteredShowers-night","StrongStorms-night","Thunderstorms-night","Tornadoes-night","TropicalStorms-night"],"--color-violet-800":["BlowingSand-day","Cloudy-day","Foggy-day","Haze-day","MostlyCloudy-day","Smoke-day"],"--color-indigo-900":["BlowingSand-night","Cloudy-night","Foggy-night","Haze-night","MostlyCloudy-night","Smoke-night"]};var y=l(98833);let b=function(){let{iconCode:e=44}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=g.find(t=>{var l,a;return null==t||null==(a=t.iconCodes)||null==(l=a.includes)?void 0:l.call(a,e)}),l=g.find(e=>(null==e?void 0:e.name)==="Unknown");return t||l},w=function(){let{width:e=320}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return x.reduce((t,l)=>Math.abs(l-e){let{location:t,weatherData:l,forecastData:n,isLoading:i,error:r}=e;return r?(0,a.jsx)(M,{error:r}):(0,a.jsx)(A,{isLoading:i,location:t,weatherData:l,forecastData:n})},A=e=>{let{isLoading:t,location:l,weatherData:n,forecastData:i}=e,r=function(){let{iconCode:e=44,dayPart:t="day",variant:l=0,width:a=800,isSevere:n=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i={src:function(){let{iconCode:e=44,dayPart:t="day",variant:l=0}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a=b({iconCode:e}),n=null==a?void 0:a["".concat(t,"Variants")];if(!n||l>n)return a=b({iconCode:44}),"".concat(v).concat(a.name,".jpg");let i=!!n&&0===l&&((e,t)=>{let l=Math.ceil(e);return Math.floor(Math.random()*(Math.floor(t)-l+1)+l)})(1,n),r="";return i?r="_".concat(i):l&&(r="_".concat(l)),"".concat(v).concat(a.name,"-").concat(t).concat(r,".jpg")}({iconCode:e,dayPart:t,variant:l}),width:w({width:a}),quality:70,format:"pjpg",autoWebP:!0,ratio:"16:9"};return n&&(i.saturation=-100),(0,y.default)(i)}({iconCode:null==n?void 0:n.iconCode,dayPart:(null==n?void 0:n.dayOrNight)==="D"?"day":"night"}),s=t?"--color-white":(e=>Object.keys(f).find(t=>f[t].find(t=>{var l;return null==e||null==(l=e.includes)?void 0:l.call(e,t)}))||"--color-blue-800")(r),o=(0,j.c3)("CurrentConditions");return(0,a.jsx)(C.Zp,{"aria-label":"Current Conditions",radius:"lg",border:"none",variant:"outline",className:"@container bg-cover bg-center bg-no-repeat","data-testid":"current-conditions",style:{backgroundColor:"var(".concat(s,")"),backgroundImage:t?"":"url(".concat(r,")")},children:(0,a.jsx)(C.Wu,{children:(0,a.jsx)("div",{className:"relative",children:(0,a.jsxs)("div",{className:"relative z-10 flex h-full flex-col text-white",children:[(0,a.jsxs)("div",{className:"mb-3 flex items-center gap-1",children:[(0,a.jsx)("div",{className:"flex h-16 w-16 items-center justify-center",children:(0,a.jsx)(p.WxIcon,{isLoading:t,loadingIconClassName:"h-16 w-16",iconCode:(null==n?void 0:n.iconCode)||-1,className:"h-16 w-16","aria-label":null==n?void 0:n.wxPhraseLong,iconTheme:"lightBG"})}),(0,a.jsxs)(h,{isLoading:t,skeletonClassName:"ml-1 h-16 w-22",direction:"vertical",height:"69px",translateDistance:"207px",children:[(0,a.jsx)("span",{children:o("now")}),(0,a.jsx)(N.B,{value:(null==n?void 0:n.temperature)?(null==n?void 0:n.temperature)+2:null}),(0,a.jsx)(N.B,{value:(null==n?void 0:n.temperature)?(null==n?void 0:n.temperature)+1:null}),(0,a.jsx)(u.Ay,{variant:"Display.L",color:"inverse",children:(0,a.jsx)(N.B,{value:null==n?void 0:n.temperature})})]})]}),(0,a.jsx)(u.Ay,{isLoading:t,skeletonClassName:"mt-1 h-6 w-30",variant:"Title.M",color:"inverse",children:null==n?void 0:n.wxPhraseLong}),(0,a.jsxs)(u.Ay,{isLoading:t,skeletonClassName:"mt-3 h-6 w-65",variant:"Body.M",color:"inverse",className:"mt-3","data-testid":"current-conditions-temperatures",children:[o("feelsLike")," ",(0,a.jsx)(N.B,{value:null==n?void 0:n.temperatureFeelsLike})," \xb7"," ",o("dayTempLabel")," ",(0,a.jsx)(N.B,{value:null==i?void 0:i.temperatureMax})," \xb7"," ",o("nightTempLabel")," ",(0,a.jsx)(N.B,{value:null==i?void 0:i.temperatureMin})]}),(0,a.jsx)(c.A,{location:l,showSubheadline:!0,className:"mt-4",headlineClassName:"normal-case"})]})})})})},M=e=>{let{error:t}=e;return(0,a.jsx)("div",{className:"overflow-hidden rounded-lg","data-testid":"current-conditions-error",children:(0,a.jsx)("div",{className:"flex min-h-[150px] flex-col bg-white p-8 text-white",children:(0,a.jsx)("div",{className:"flex flex-grow items-center justify-center",children:(0,a.jsx)(u.Ay,{variant:"Display.S",children:(null==t?void 0:t.message)||"Unable to load weather data"})})})})};var S=l(58010),_=l(75302),I=l(32035),R=l(71666),k=l(55198);let P=e=>{let{location:t}=e,{effectiveLocation:l,isLocationLoading:n,locationError:c}=(0,r.s)({location:t}),{weatherData:u,forecastData:m,isLoading:h,error:p}=function(e){var t,l,a,n,r;let c=(0,k.useParams)(),u=null==c?void 0:c.locale,m=(0,_.md)(I.Yt),h=null==(t=(0,R.xP)(m))?void 0:t.code,{data:p,error:v,isLoading:x}=(0,i.Ay)(e?["observations",e.geocode,h]:null,e=>{let[t,l,a]=e;return(0,s.z)({geocode:l,units:a,language:u})},{revalidateOnFocus:!1,dedupingInterval:6e4}),{data:g,error:f,isLoading:y}=(0,i.Ay)(e?["daily-forecast",e.geocode,h]:null,t=>{let[l,a,n]=t;return e?(0,o.v1)({geocode:a,units:n,language:u}):null},{revalidateOnFocus:!1,dedupingInterval:6e4}),b=p?{temperature:p.temperature,temperatureFeelsLike:p.temperatureFeelsLike,wxPhraseLong:p.wxPhraseLong,iconName:d.ICON_CODE_MAP[p.iconCode]||"na",iconCode:p.iconCode,validTimeLocal:p.validTimeLocal,relativeHumidity:p.relativeHumidity,windSpeed:p.windSpeed,windDirectionCardinal:p.windDirectionCardinal,dayOrNight:p.dayOrNight}:void 0,w=g&&g.length>0?{temperatureMax:null!=(n=null==(l=g[0])?void 0:l.calendarDayTemperatureMax)?n:0,temperatureMin:null!=(r=null==(a=g[0])?void 0:a.calendarDayTemperatureMin)?r:0}:void 0;return{weatherData:b,forecastData:w,isLoading:x||!p||y||!g,error:v||f}}(l),v=h||n,x=p||c;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(S.DebugCollector,{componentName:"CurrentConditions",data:{props:{location:t},state:{effectiveLocation:l,isLocationLoading:n,isLoading:v,weatherData:u,forecastData:m,error:x,componentState:x&&"error"||v&&"loading"||"ready"},performance:{renderCount:void 0}}}),(0,a.jsx)(T,{location:l,weatherData:u,forecastData:m,isLoading:v,error:x})]})};var E=l(46593),L=l(44685);let D=e=>{let{locationProvider:t,locationEntry:l}=e,n="specified"===t,{specifiedLocationData:i,specifiedLocationError:r,isSpecifiedLocationLoading:s}=(0,E.v)(n?l:null);return n&&s?(0,a.jsx)("div",{children:"Loading location data..."}):n&&r?(0,a.jsxs)("div",{children:["Error loading location data: ",r.message]}):n&&i&&l?(0,a.jsx)(P,{location:(0,L.I)(i)}):n?null:(0,a.jsx)(P,{})},F=D},82064:(e,t,l)=>{"use strict";l.r(t),l.d(t,{VideoBlock:()=>w,default:()=>j});var a=l(76792),n=l(42292),i=l(44615),r=l(86605);let s="/placeholder-video-thumbnail.jpg";var o=l(46859),d=l(95624),c=l(99343),u=l(58010),m=l(18556),h=l(48260),p=l(89170),v=l(70412),x=l(75302),g=l(13942);let f={src:"/_next/static/media/placeholder.6858ca75.jpg"},y=(0,l(23803).h)("video:events"),b=async e=>{let t=await fetch(e);if(!t.ok)throw Error("Failed to fetch video data from ".concat(e));return t.json()},w=e=>{var t;let{file:l,image:w,title:j,description:N,tracks:C=[],playlist:T,custom:A={},playerSettings:M,descriptionAttributes:S,videoReference:_,playlistsReference:I=[]}=e,R="video-player-".concat((0,n.useId)()),k=(0,n.useRef)(!0),P=(0,n.useRef)(null),E=(null==(t=(0,p.J)())?void 0:t.user)||{},L=(0,x.md)(g.a),D=E.isUserPremium||L,F=(0,v.z)(),B=null;_&&("string"==typeof _?B="/api/payload/videos/".concat(_):"object"==typeof _&&(B=(null==_?void 0:_.id)?"/api/payload/videos/".concat(_.id):null));let{data:z,error:H}=(0,i.Ay)(B,b,{revalidateOnFocus:!1,dedupingInterval:3e5}),V=(0,c.c)(),W=(0,n.useMemo)(()=>{let e=[];return!Array.isArray(C)&&(null==C?void 0:C.file)?e.push(C):Array.isArray(C)&&e.push(...C),e},[C]),O=(0,n.useMemo)(()=>z&&Object.keys(z).length>0||_&&"string"!=typeof _,[z,_]),U=(0,n.useMemo)(()=>z&&Object.keys(z).length>0?z:_&&"string"!=typeof _?_:null,[z,_]),q=(0,n.useMemo)(()=>{var e,t,a,n,i,r,s,o,d;return O&&(null==U||null==(t=U.content)||null==(e=t.videoFormatUrls)?void 0:e.length)>0?(null==U||null==(n=U.content)||null==(a=n.defaultFormat)?void 0:a.url)?null==U||null==(d=U.content)||null==(o=d.defaultFormat)?void 0:o.url:null==U||null==(s=U.content)||null==(r=s.videoFormatUrls)||null==(i=r[0])?void 0:i.url:l},[O,U,l]),G=(0,n.useMemo)(()=>{if(O){var e,t,l;return(null==U||null==(e=U.content)?void 0:e.keyFrameImage)||(null==U||null==(l=U.seo)||null==(t=l.image)?void 0:t.url)||w}return w},[O,U,w]),Z=(0,n.useMemo)(()=>O&&(null==U?void 0:U.title)||j,[O,U,j]),Q=(0,n.useMemo)(()=>{if(O&&(null==U?void 0:U.description)){var e,t,l;return(null==(l=U.description.root)||null==(t=l.children[0])||null==(e=t.children[0])?void 0:e.text)||N}return N},[O,U,N]),Y=(0,n.useMemo)(()=>{if(P.current&&JSON.stringify({file:q,image:G,title:Z,description:Q,tracks:W,playlist:T,custom:A})===JSON.stringify(P.current))return P.current;let e=G||(q?(e=>{if(!e)return s;for(let t of[/(?:cdn\.jwplayer\.com\/(?:videos|manifests|previews)\/)([a-zA-Z0-9]+)(?:-[a-zA-Z0-9]+)?/,/(?:content\.jwplatform\.com\/(?:videos|manifests)\/)([a-zA-Z0-9]+)(?:-[a-zA-Z0-9]+)?/,/(?:players\.jwplayer\.com\/preview\/)([a-zA-Z0-9]+)(?:-[a-zA-Z0-9]+)?/]){let l=e.match(t);if(l&&l[1])return"https://cdn.jwplayer.com/v2/media/".concat(l[1],"/poster.jpg")}return s})(q):null)||f.src,t={file:q,image:e,title:Z,description:Q,tracks:W,custom:A};return P.current=t,t},[q,G,Z,Q,W,T,A]),X=(0,n.useMemo)(()=>{var e,t,l,a;let n=[];return T&&(n=((e,t)=>{var l;if(!(null==t?void 0:t.file))return[];if("string"==typeof e)return(null==t?void 0:t.file)?[t]:[];let a=Array.isArray(e)?e:[];return(null==t?void 0:t.file)&&(!(a.length>0)||(null==(l=a[0])?void 0:l.file)!==(null==t?void 0:t.file))?[t,...a.filter(e=>e.file!==t.file)]:a})(T,Y)||[]),I&&I.length,O&&(null==U||null==(e=U.content)?void 0:e.playlists)&&Array.isArray(null==U||null==(t=U.content)?void 0:t.playlists)&&(null==U||null==(a=U.content)||null==(l=a.playlists)||l.length),n.length>0?n:[Y]},[T,Y,I,U,O]);if((0,n.useEffect)(()=>{k.current=!0},[X]),_&&"string"==typeof _&&!z&&!H)return(0,a.jsx)("div",{className:"flex h-32 items-center justify-center bg-gray-100",children:(0,a.jsx)("div",{className:"h-8 w-8 animate-spin rounded-full border-t-2 border-b-2 border-gray-900"})});if(H)return(0,a.jsx)("div",{className:"flex h-32 items-center justify-center bg-red-100 text-red-800",children:(0,a.jsx)("span",{children:"Failed to load video data"})});if(!q)return null;let K=[...o.v,...d.yW].map(e=>{let{eventName:t,callback:l}=e;return{eventName:t,callback:e=>{let{event:a,player:n}=e;"time"!==t&&y.info("[".concat(t,"]:"),a),l({event:a,player:n,isFirstPlayRef:k,user:E,trackVideoEvent:V,isMobile:F})}}});return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(u.DebugCollector,{componentName:"VideoBlock",data:{props:{file:l,image:w,title:j,description:N,tracksCount:(0,m.J)(W),hasPlaylist:!!T&&T.length>0,custom:A},state:{videoObject:Y,playlistItems:X.length,isFirstPlay:k.current,events:K.map(e=>e.eventName)},performance:{}}}),(0,a.jsx)("div",{className:"overflow-hidden rounded-lg",children:(0,a.jsx)(r.h,{playlist:X,events:K,setupParams:{ads:!D}},R)}),(null==M?void 0:M.showDescriptions)&&(0,a.jsx)("p",{...S,className:(0,h.cn)("my-2 text-sm",null==S?void 0:S.className),children:Y.title})]})},j=w},82304:(e,t)=>{"use strict";t.J3=t.Ny=t.rn=void 0,t.rn="daily-newsletters-1",t.Ny="marketing-emails-1",t.J3=[{subscriptionGroupName:t.rn,subscriptionGroupId:"",isSubscribed:!1,attributes:{location:""}},{subscriptionGroupName:t.Ny,subscriptionGroupId:"",isSubscribed:!1}]},84015:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getEmailPreferencesStatusUrlConfig=function(){return{host:"weather.com",protocol:"https",pathname:"/api/v1/email-preferences/status"}},t.getEmailPreferencesSetUrlConfig=function(){return{host:"weather.com",protocol:"https",pathname:"/api/v1/email-preferences/set"}},t.getEmailPreferencesChangeEmailUrlConfig=function(){return{host:"weather.com",protocol:"https",pathname:"/api/v1/email-preferences/change-email"}}},86605:(e,t,l)=>{"use strict";l.d(t,{h:()=>h});var a=l(76792),n=l(42292),i=l(48260),r=l(73675);let s={autoplayadsmuted:!1,client:"googima",vpaidcontrols:!0};var o=l(23803),d=l(92928),c=l.n(d),u=l(22627);let m=(0,o.h)("JWPlayer"),h=e=>{var t,l;let{playlist:o,options:d={},setupParams:h={},events:p=[],className:v="",placeHolder:x}=e,g="player-".concat((0,n.useId)()),{playerId:f="IdNDrRWQ"}=h,y=(0,n.useMemo)(()=>({playlist:o,...(e=>{let{ads:t=!0,showDescriptions:l=!0}=e;return{aspectratio:"16:9",autostart:!0,backgroundLoading:!0,width:"100%",mute:!1,autoPause:{pauseAds:!0,viewability:!0},captions:{backgroundOpacity:50,fontSize:14},...t?{advertising:s}:{},...l?{displaytitle:!0,displaydescription:!0}:{displaytitle:!1,displaydescription:!1}}})({...h}),...d}),[o,h,d]),b=(0,n.useRef)(null),w=(0,n.useRef)(!1),j=null==o||null==(t=o[0])?void 0:t.file,[N,C]=(0,n.useState)(j?"loading":"error");(0,n.useEffect)(()=>{if(w.current||!("jwplayer"in window)||"ready"!==N||!j)return;let e=window.jwplayer(g);b.current=e,w.current=!0,m.info("initialized player"),e.setup(y),p.forEach(t=>{let{eventName:l,callback:a}=t;e.on(l,t=>{a({event:t,player:e})}),m.lifecycle("Registered event handler for ".concat(l))})},[y,p,j,g,N]),(0,n.useEffect)(()=>()=>{if(b.current)try{b.current.remove(),b.current=null,w.current=!1}catch(e){m.error("Error removing JW Player",e)}},[]);let T=x?null==o||null==(l=o[0])?void 0:l.image:"";return(0,a.jsxs)("div",{children:[j&&(0,a.jsx)(r.default,{src:"https://cdn.jwplayer.com/libraries/".concat(f,".js"),onLoad:()=>C("ready"),onReady:()=>C("ready"),onError:()=>C("error")}),(0,a.jsxs)("div",{className:(0,i.cn)("relative overflow-hidden",c().jwplayerContainer,v),children:[T&&(0,a.jsx)(u.A,{fetchPriority:"high",className:"absolute aspect-video w-full",src:T,alt:""}),"loading"===N&&j?(0,a.jsx)("div",{className:"flex aspect-video w-full items-center justify-center bg-black",children:(0,a.jsx)("div",{className:"h-8 w-8 animate-spin rounded-full border-t-2 border-b-2 border-white"})}):"error"===N?(0,a.jsx)("div",{className:"flex aspect-video w-full items-center justify-center bg-black text-white",children:"Failed to initialize video player"}):(0,a.jsx)("div",{id:g,className:"aspect-video w-full bg-black"})]})]})}},92928:e=>{e.exports={jwplayerContainer:"JWPlayer_jwplayerContainer__u4Psj"}},93146:(e,t,l)=>{"use strict";t.Sn=s;let a=l(4883),n=l(17681),i=l(36762),r=l(56791);async function s(e){let{geocode:t,language:l="en-US"}=e,s=(0,n.urlFrom)((0,a.getSunWeatherAlertHeadlinesUrlConfig)({geocode:t,language:l})),o=await fetch(s,{headers:{"Accept-Encoding":"gzip"},cache:"no-store",next:{revalidate:0}}),d=await (0,i.handleFetchResponse)(o);return{...d,alerts:(0,r.getSortedAlerts)(d.alerts)}}},95624:(e,t,l)=>{"use strict";l.d(t,{yW:()=>b});var a=l(95913),n=l(90937);let i="",r="",s=1,o=0,d=0,c=0,u=0,m=!1,h=0,p={adImpression:!1,videoAttempt:!1,videoPlayed:!1,videoStarted:!1,videoCompleted:!1,videoEnd:!1},v={autostart:"auto",interaction:"click",external:"externalLink",playlist:"playlistClick","related-interaction":"nextClick","related-auto":"auto"};function x(e){var t;return null!=(t=v[e])?t:"click"}function g(e){let t=e.split(":").map(Number);if(2===t.length){let[e=0,l=0]=t,a=Math.floor(60*e+l);return isNaN(a)?0:a}if(3===t.length){let[e=0,l=0,a=0]=t,n=Math.floor(3600*e+60*l+a);return isNaN(n)?0:n}return 0}function f(){Object.keys(p).map(e=>{p[e]=!1}),o=0,d=0,r=""}function y(e,t){var l,i,r,s,o,d,c,u,m,h,p,v,x,g,f,y,b,w,j,N,C,T,A,M,S,_,I,R,k,P,E,L,D,F,B,z,H;let V=t||e.getPlaylistItem();return{adBlock:e.getAdBlock(),adsMetricsUnitAndZone:null==V||null==(i=V.custom)||null==(l=i.ctx)?void 0:l.adzone,aspectRatio:null==e||null==(r=e.getConfig())?void 0:r.aspectratio,assetName:(0,a.EY)(null!=(z=null==V||null==(o=V.custom)||null==(s=o.ctx)?void 0:s.assetName)?z:""),collection:null==V||null==(c=V.custom)||null==(d=c.ctx)?void 0:d.pcollid,collectionId:null==V||null==(m=V.custom)||null==(u=m.ctx)?void 0:u.pcollid,contentId:null==V||null==(p=V.custom)||null==(h=p.ctx)?void 0:h.id,entitlements:(0,n.X)(null!=(H=null==V||null==(x=V.custom)||null==(v=x.ctx)?void 0:v.entitlements)?H:[]),iabContent:(0,a.IA)((null==V||null==(f=V.custom)||null==(g=f.ctx)?void 0:g.iab)||{}),id:null==V||null==(b=V.custom)||null==(y=b.ctx)?void 0:y.id,duration:null==V||null==(j=V.custom)||null==(w=j.ctx)?void 0:w.duration,lastmodifieddate:null==V||null==(T=V.custom)||null==(C=T.ctx)||null==(N=C.lastmodifieddate)?void 0:N.toString(),muted:e.getMute(),premiumContent:null==V||null==(M=V.custom)||null==(A=M.ctx)?void 0:A.premium,publishdate:null==V||null==(I=V.custom)||null==(_=I.ctx)||null==(S=_.publishdate)?void 0:S.toString(),providerName:null==V||null==(k=V.custom)||null==(R=k.ctx)?void 0:R.providername,tagsGeo:(0,n.X)(null==V||null==(E=V.custom)||null==(P=E.ctx)?void 0:P.tagsGeo),tagsKeyword:(0,n.X)(null==V||null==(D=V.custom)||null==(L=D.ctx)?void 0:L.tagsKeyword),tagsStorm:(0,n.X)(null==V||null==(B=V.custom)||null==(F=B.ctx)?void 0:F.tagsStorm)}}let b=[{eventName:"ready",callback:e=>{let{player:t,trackVideoEvent:l}=e;window.addEventListener("beforeunload",()=>{if(p.videoStarted&&!p.videoEnd){var e,a;let n=t.getPlaylistItem(),d=g(null==n||null==(a=n.custom)||null==(e=a.ctx)?void 0:e.duration);n&&!p.videoAttempt&&l&&(l({eventName:"video-end",eventAttributes:{errorMessage:r,contentWatchedSeconds:o,playReason:i,videoView:s,...y(t)}}),l({eventName:"video-ended",eventAttributes:{errorMessage:r,videoWatchedLength:o,playMethod:i,videoView:s,...y(t),videoLength:d,adLength:c,adWatchedLength:u,adSkipped:m,exitReason:"pageExit"}})),p.videoEnd=!0}})}},{eventName:"adImpression",callback:async e=>{let{player:t,trackVideoEvent:l}=e,a=t.getPlaylistItem();if(r="",f(),console.debug("JW Player callback - adImpression eventSentFlags:",p),p.adImpression=!0,a&&!p.videoAttempt&&l){var n,o;let e=g(null==a||null==(o=a.custom)||null==(n=o.ctx)?void 0:n.duration);l({eventName:"video-attempt",eventAttributes:{errorMessage:r,playReason:i,videoView:s,...y(t)}}),l({eventName:"video-attempted",eventAttributes:{errorMessage:r,playMethod:i,videoLength:e,videoView:s,...y(t)}}),p.videoAttempt=!0}a&&!p.videoPlayed&&l&&(l({eventName:"video-played",eventAttributes:{errorMessage:r,playReason:i,videoView:s,...y(t)}}),p.videoPlayed=!0)}},{eventName:"viewable",callback:async e=>{let{event:t}=e;s=null==t?void 0:t.viewable}},{eventName:"playlistItem",callback:async e=>{let{player:t,trackVideoEvent:l}=e;if(i=x("playlist"),p.videoStarted&&!p.videoCompleted&&!p.videoEnd){var a,n;let e=t.getPlaylistIndex(),d=t.getPlaylistItem(e-1),h=g(null==d||null==(n=d.custom)||null==(a=n.ctx)?void 0:a.duration);l({eventName:"video-end",eventAttributes:{errorMessage:r,contentWatchedSeconds:o,playReason:i,videoView:s,...y(t,d)}}),l({eventName:"video-ended",eventAttributes:{errorMessage:r,videoWatchedLength:o,playMethod:i,videoView:s,...y(t),videoLength:h,adLength:c,adWatchedLength:u,adSkipped:m,exitReason:"nextVideo"}}),p.videoEnd=!0}}},{eventName:"playAttempt",callback:async e=>{let{player:t,trackVideoEvent:l}=e,a=t.getPlaylistItem();if(p.adImpression||(r="",f()),console.debug("JW Player callback - playAttempt eventSentFlags:",p),a&&!p.videoAttempt&&l){var n,o;let e=g(null==a||null==(o=a.custom)||null==(n=o.ctx)?void 0:n.duration);p.videoAttempt=!0,l({eventName:"video-attempt",eventAttributes:{errorMessage:r,playReason:i,videoView:s,...y(t)}}),l({eventName:"video-attempted",eventAttributes:{errorMessage:r,videoLength:e,playMethod:i,videoView:s,...y(t)}})}}},{eventName:"firstFrame",callback:async e=>{let{player:t,trackVideoEvent:l}=e;console.debug("JW Player callback - firstFrame eventSentFlags:",p);let a=t.getPlaylistItem();if(a&&!p.videoPlayed&&l&&(l({eventName:"video-played",eventAttributes:{errorMessage:r,playReason:i,videoView:s,...y(t)}}),p.videoPlayed=!0),a&&!p.videoStarted&&l){var n,o;let e=g(null==a||null==(o=a.custom)||null==(n=o.ctx)?void 0:n.duration);l({eventName:"video-started",eventAttributes:{errorMessage:r,playReason:i,videoView:s,...y(t)}}),l({eventName:"video-begin",eventAttributes:{errorMessage:r,playMethod:i,videoView:s,...y(t),videoLength:e,adLength:c,adWatchedLength:u,adSkipped:m}}),p.videoStarted=!0}}},{eventName:"complete",callback:async e=>{var t,l;let{player:a,trackVideoEvent:n}=e,d=a.getPlaylistItem(),h=g(null==d||null==(l=d.custom)||null==(t=l.ctx)?void 0:t.duration);console.debug("JW Player callback - complete eventSentFlags:",p),d&&!p.videoCompleted&&n&&(n({eventName:"video-completed",eventAttributes:{errorMessage:r,playReason:i,videoView:s,...y(a)}}),p.videoCompleted=!0),p.videoStarted&&!p.videoEnd&&(n({eventName:"video-end",eventAttributes:{errorMessage:r,contentWatchedSeconds:o,playReason:i,videoView:s,...y(a)}}),n({eventName:"video-ended",eventAttributes:{errorMessage:r,videoWatchedLength:o,playMethod:i,videoView:s,...y(a),videoLength:h,adLength:c,adWatchedLength:u,adSkipped:m,exitReason:"complete"}}),p.videoEnd=!0)}},{eventName:"adStarted",callback:async e=>{let{event:t,player:l,trackVideoEvent:a}=e,n=l.getPlaylistItem();c=t.duration,console.debug("JW Player callback - adStarted eventSentFlags:",p),n&&a&&a({eventName:"ad-started",eventAttributes:{errorMessage:r,playReason:i,videoView:s,...y(l)}})}},{eventName:"adSkipped",callback:async e=>{let{player:t,trackVideoEvent:l}=e,a=t.getPlaylistItem();m=!0,a&&l&&l({eventName:"ad-skipped",eventAttributes:{errorMessage:r,playReason:i,videoView:s,...y(t)}})}},{eventName:"adComplete",callback:async e=>{let{event:t,player:l,trackVideoEvent:a}=e,n=l.getPlaylistItem();u=t.duration,console.debug("JW Player callback - adComplete eventSentFlags:",p),n&&a&&a({eventName:"ad-complete",eventAttributes:{errorMessage:r,playReason:i,videoView:s,...y(l)}})}},{eventName:"beforePlay",callback:async e=>{let{event:t}=e;i=x(null==t?void 0:t.playReason)}},{eventName:"adError",callback:async e=>{let{event:t}=e;console.error("Video ad error:",t)}},{eventName:"error",callback:async e=>{let{event:t}=e;r=null==t?void 0:t.message,console.error("Video Player error:",t)}},{eventName:"time",callback:e=>{let{event:t}=e;if("number"==typeof(null==t?void 0:t.position)){let e=t.position-d;o+=e,d=t.position}}},{eventName:"seek",callback:e=>{let{event:t}=e;"number"==typeof(null==t?void 0:t.offset)&&(d=t.offset)}},{eventName:"adTime",callback:async e=>{let{event:t}=e,l=Date.now();l-h>=1e3&&(u=parseFloat(t.position.toFixed(2)),h=l)}}]},97812:(e,t,l)=>{"use strict";l.r(t),l.d(t,{ContentMediaBlock:()=>g,default:()=>f});var a=l(76792),n=l(18556),i=l(48260),r=l(53976),s=l(69585),o=l(22627),d=l(49192),c=l(42292),u=l(23233);let m=(0,c.forwardRef)((e,t)=>{let{title:l,titleId:n,desc:i,descId:r,...s}=e;return(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:t,"aria-labelledby":n,"aria-describedby":r,...s,children:[i?(0,a.jsx)("desc",{id:r,children:i}):null,void 0===l?(0,a.jsx)("title",{id:n,children:"Play"}):l?(0,a.jsx)("title",{id:n,children:l}):null,(0,a.jsx)("path",{fill:"currentColor",d:"M3.5 14a.5.5 0 0 1-.5-.5v-11a.5.5 0 0 1 .741-.438l10 5.5a.5.5 0 0 1 0 .876l-10 5.5A.5.5 0 0 1 3.5 14"})]})}),h=c.forwardRef((e,t)=>(0,a.jsx)(u.h,{ref:t,icon:m,...e}));h.displayName="PlayFilledAlt";var p=l(54086);let v=e=>{let{items:t,title:l,showCategory:n,showDescription:c=!0,template:u="grid",gridColumns:m=2,aspectRatio:v="square",heroStyle:x="side-content",hideTitle:g=!1}=e,f="not-prose";if(t.every(e=>"image"===e.contentType)){let e=t.map(e=>({id:e.id,url:e.overrideThumbnail||e.thumbnail||"",filename:e.overrideTitle||"",caption:c&&(e.overrideDescription||e.description)||"",seo:{altText:e.overrideTitle||e.title},createdAt:new Date().toISOString(),updatedAt:new Date().toISOString()}));return(0,a.jsx)("section",{className:f,children:(0,a.jsx)(d.A,{id:"content-media-slideshow-".concat(Math.random().toString(36).substring(2,9)),assets:e,allSlides:e,slides:[],totalAssets:e.length,rounded:!0,sendTrackString:()=>{},blockType:"Slideshow"})})}if("travel-hero"===u){var y,b,w,j;let e=t[0],d=t.slice(1,4);if(!e)return null;let u=e.overrideTitle||e.title,m=e.overrideThumbnail||e.thumbnail||"/placeholder.svg",N=(null==(y=e.category)?void 0:y.title)||"Weather News",C=e.caption||e.description||"",T=e.duration,A=e.url||"#",M="object"==typeof e.provider&&e.provider?e.provider:null,S=M&&"object"==typeof M.partnerLogo&&(null==(j=M.partnerLogo)||null==(w=j.sizes)||null==(b=w.medium)?void 0:b.url)?M.partnerLogo.sizes.medium.url:void 0;return(0,a.jsxs)(s.Zp,{"aria-label":l,className:(0,i.cn)("@container",f),children:[g?null:(0,a.jsx)(s.aR,{text:l}),(0,a.jsxs)(s.Wu,{children:["side-content"===x?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("a",{href:A,className:"group hidden grid-cols-3 gap-6 rounded-2xl p-3 no-underline transition-all duration-150 hover:bg-gray-100 focus-visible:bg-gray-100 focus-visible:outline-none sm:grid",children:[(0,a.jsx)("div",{className:"relative col-span-2 aspect-[8/5] max-h-[480px] w-full overflow-hidden rounded-lg transition-shadow duration-150 group-hover:shadow-[0_4px_16px_0_rgba(9,86,124,0.4)] group-focus-visible:shadow-[0_4px_16px_0_rgba(9,86,124,0.4)]",children:(0,a.jsx)(o.A,{src:m,alt:u,fill:!0,className:"absolute top-0 left-0 h-full w-full scale-[1.01] object-cover transition-transform duration-150 group-hover:scale-[1.02] group-focus-visible:scale-[1.02]",sizes:"(max-width: 1024px) 100vw, 66vw"})}),(0,a.jsxs)("div",{className:"col-span-1 flex flex-col justify-center gap-4",children:[S&&(0,a.jsx)("div",{className:"relative mb-3 w-52",children:(0,a.jsx)(o.A,{src:S,alt:"",width:208,height:0,className:"h-auto max-h-6 w-full rounded-none object-contain object-left",style:{height:"auto"},sizes:"208px"})}),n&&(0,a.jsx)("span",{className:"inline-block self-start rounded-full bg-blue-600 px-3 py-1 text-xs font-medium text-white",children:N}),(0,a.jsx)("h3",{className:"text-2xl leading-tight font-bold text-gray-900",children:u}),c&&C&&(0,a.jsx)("p",{className:"line-clamp-2 text-base text-gray-600 @[654px]:line-clamp-5 @[854px]:line-clamp-none",children:C}),(0,a.jsx)("div",{className:"flex items-center gap-3",children:T?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("span",{className:"inline-flex h-12 items-center gap-2 rounded-md border border-gray-900 bg-transparent px-4 text-sm font-medium text-gray-900 transition-colors hover:bg-gray-50",children:[(0,a.jsx)(h,{className:"h-4 w-4"}),"Watch"]}),(0,a.jsx)("span",{className:"text-sm text-gray-600",children:(0,p.h)(T)})]}):(0,a.jsx)("span",{className:"inline-flex h-12 items-center gap-2 rounded-md border border-gray-900 bg-transparent px-4 text-sm font-medium text-gray-900 transition-colors hover:bg-gray-50",children:"Read more"})})]})]}),(0,a.jsx)("div",{className:"block sm:hidden",children:(0,a.jsxs)("a",{href:A,className:"group flex flex-col gap-4 rounded-2xl p-3 no-underline transition-all duration-150 hover:bg-gray-100 focus-visible:bg-gray-100 focus-visible:outline-none",children:[(0,a.jsx)("div",{className:"relative aspect-video w-full overflow-hidden rounded-lg transition-shadow duration-150 group-hover:shadow-[0_4px_16px_0_rgba(9,86,124,0.4)] group-focus-visible:shadow-[0_4px_16px_0_rgba(9,86,124,0.4)]",children:(0,a.jsx)(o.A,{src:m,alt:u,fill:!0,className:"absolute top-0 left-0 h-full w-full scale-[1.01] object-cover transition-transform duration-150 group-hover:scale-[1.02] group-focus-visible:scale-[1.02]",sizes:"100vw"})}),(0,a.jsxs)("div",{children:[S&&(0,a.jsx)("div",{className:"relative mb-3 w-40",children:(0,a.jsx)(o.A,{src:S,alt:"",width:160,height:0,className:"h-auto max-h-6 w-full rounded-none object-contain object-left",style:{height:"auto"},sizes:"160px"})}),n&&(0,a.jsx)("span",{className:"mb-2 inline-block rounded-full bg-gray-100 px-3 py-1 text-xs font-medium text-gray-700",children:N}),(0,a.jsx)("h3",{className:"mb-2 text-base leading-tight font-semibold text-gray-900 sm:text-lg md:text-xl lg:text-2xl",children:u}),c&&C&&(0,a.jsx)("p",{className:"mb-2 line-clamp-4 text-sm font-normal text-gray-500 sm:text-base",children:C}),T&&(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsx)(h,{className:"h-6 w-6 text-gray-500"}),(0,a.jsx)("span",{className:"text-sm text-gray-500 sm:text-base",children:(0,p.h)(T)})]})]})]})})]}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("a",{href:A,className:"group hidden rounded-2xl p-3 no-underline transition-all duration-150 hover:bg-gray-100 focus-visible:bg-gray-100 focus-visible:outline-none sm:block",children:(0,a.jsxs)("div",{className:"relative aspect-[8/5] max-h-[480px] w-full overflow-hidden rounded-lg transition-shadow duration-150 group-hover:shadow-[0_4px_16px_0_rgba(9,86,124,0.4)] group-focus-visible:shadow-[0_4px_16px_0_rgba(9,86,124,0.4)]",children:[(0,a.jsx)(o.A,{src:m,alt:u,fill:!0,className:"absolute top-0 left-0 h-full w-full scale-[1.01] object-cover transition-transform duration-150 group-hover:scale-[1.02] group-focus-visible:scale-[1.02]",sizes:"100vw"}),(0,a.jsx)("div",{className:"absolute inset-0 bg-[linear-gradient(to_right,rgba(17,30,55,0.76)_0%,rgba(17,30,55,0.61)_33%,rgba(17,30,55,0)_100%)]"}),(0,a.jsxs)("div",{className:"absolute bottom-0 left-0 max-w-full p-6 text-white sm:max-w-[50%] sm:p-8 sm:pr-0",children:[S&&(0,a.jsx)("div",{className:"relative mb-6 w-64",children:(0,a.jsx)(o.A,{src:S,alt:"",width:256,height:0,className:"h-auto max-h-6 w-full rounded-none object-contain object-left brightness-0 invert",style:{height:"auto"},sizes:"256px"})}),n&&(0,a.jsx)("span",{className:"mb-3 inline-block rounded-full bg-white/20 px-3 py-1 text-xs font-medium backdrop-blur-sm",children:N}),(0,a.jsx)("h3",{className:"mb-3 text-2xl leading-tight font-bold sm:text-[32px]",children:u}),c&&C&&(0,a.jsx)("p",{className:"mb-4 line-clamp-2 text-base text-white/90 sm:text-lg @[604px]:line-clamp-5 @[754px]:line-clamp-none",children:C}),(0,a.jsx)("div",{className:"flex items-center gap-3",children:T?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("span",{className:"inline-flex h-12 items-center gap-2 rounded-md border border-gray-900 bg-white px-4 text-sm font-medium text-gray-900 transition-colors hover:bg-gray-50",children:[(0,a.jsx)(h,{className:"h-4 w-4"}),"Watch"]}),(0,a.jsx)("span",{className:"text-sm text-white",children:(0,p.h)(T)})]}):(0,a.jsx)("span",{className:"inline-flex h-12 items-center gap-2 rounded-md border border-gray-900 bg-white px-4 text-sm font-medium text-gray-900 transition-colors hover:bg-gray-50",children:"Read more"})})]})]})}),(0,a.jsx)("div",{className:"block sm:hidden",children:(0,a.jsxs)("a",{href:A,className:"group flex flex-col gap-4 rounded-2xl p-3 no-underline transition-all duration-150 hover:bg-gray-100 focus-visible:bg-gray-100 focus-visible:outline-none",children:[(0,a.jsx)("div",{className:"relative aspect-video w-full overflow-hidden rounded-lg transition-shadow duration-150 group-hover:shadow-[0_4px_16px_0_rgba(9,86,124,0.4)] group-focus-visible:shadow-[0_4px_16px_0_rgba(9,86,124,0.4)]",children:(0,a.jsx)(o.A,{src:m,alt:u,fill:!0,className:"absolute top-0 left-0 h-full w-full scale-[1.01] object-cover transition-transform duration-150 group-hover:scale-[1.02] group-focus-visible:scale-[1.02]",sizes:"100vw"})}),(0,a.jsxs)("div",{children:[S&&(0,a.jsx)("div",{className:"relative mb-3 w-40",children:(0,a.jsx)(o.A,{src:S,alt:"",width:160,height:0,className:"h-auto max-h-6 w-full rounded-none object-contain object-left",style:{height:"auto"},sizes:"160px"})}),n&&(0,a.jsx)("span",{className:"mb-2 inline-block rounded-full bg-gray-100 px-3 py-1 text-xs font-medium text-gray-700",children:N}),(0,a.jsx)("h3",{className:"mb-2 text-base leading-tight font-semibold text-gray-900 sm:text-lg md:text-xl lg:text-2xl",children:u}),c&&C&&(0,a.jsx)("p",{className:"mb-2 line-clamp-4 text-sm font-normal text-gray-500 sm:text-base",children:C}),T&&(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsx)(h,{className:"h-6 w-6 text-gray-500"}),(0,a.jsx)("span",{className:"text-sm text-gray-500 sm:text-base",children:(0,p.h)(T)})]})]})]})})]}),d.length>0&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:"hidden grid-cols-3 sm:grid",children:d.map(e=>{var t,l,i,s;let o=e.overrideTitle||e.title,d=e.overrideThumbnail||e.thumbnail||"/placeholder.svg",u=(null==(t=e.category)?void 0:t.title)||"Weather News",m=c&&(e.caption||e.description)||void 0,h="object"==typeof e.provider&&e.provider?e.provider:null,p=h&&"object"==typeof h.partnerLogo&&(null==(s=h.partnerLogo)||null==(i=s.sizes)||null==(l=i.small)?void 0:l.url)?h.partnerLogo.sizes.small.url:void 0;return(0,a.jsx)(r.S,{heading:n?u:void 0,description:o,href:e.url,imageUrl:d,showIcon:!1,dir:"col",badgeStyle:!!n,bodyText:m,duration:e.duration||void 0,aspectRatio:v||"square",partnerLogoThumbnailUrl:p,partnerLogoWhite:!0,partnerLogoPosition:"default"},e.id)})}),(0,a.jsx)("div",{className:"flex flex-col sm:hidden",children:d.map(e=>{var t,l,i,s;let o=e.overrideTitle||e.title,d=e.overrideThumbnail||e.thumbnail||"/placeholder.svg",u=(null==(t=e.category)?void 0:t.title)||"Weather News",m=c&&(e.caption||e.description)||void 0,h="object"==typeof e.provider&&e.provider?e.provider:null,p=h&&"object"==typeof h.partnerLogo&&(null==(s=h.partnerLogo)||null==(i=s.sizes)||null==(l=i.small)?void 0:l.url)?h.partnerLogo.sizes.small.url:void 0;return(0,a.jsx)(r.S,{heading:n?u:void 0,description:o,href:e.url,imageUrl:d,showIcon:!1,dir:"row",badgeStyle:!!n,bodyText:m,duration:e.duration||void 0,aspectRatio:v||"square",imageWidth:"w-40 flex-shrink-0",partnerLogoThumbnailUrl:p,partnerLogoWhite:!0,partnerLogoPosition:"compact"},e.id)})})]})]})]})}return(0,a.jsxs)(s.Zp,{"aria-label":l,className:(0,i.cn)("@container",f),children:[g?null:(0,a.jsx)(s.aR,{text:l}),(0,a.jsx)(s.Wu,{className:(()=>{if("list"===u)return"flex flex-col";if("grid"===u){let e={1:"grid-cols-1",2:"grid-cols-1 @md:grid-cols-2",3:"grid-cols-1 @md:grid-cols-2 @lg:grid-cols-3",4:"grid-cols-1 @md:grid-cols-2 @lg:grid-cols-4",5:"grid-cols-1 @md:grid-cols-2 @lg:grid-cols-5",6:"grid-cols-1 @md:grid-cols-2 @lg:grid-cols-3 @xl:grid-cols-6",7:"grid-cols-1 @md:grid-cols-2 @lg:grid-cols-3 @xl:grid-cols-7",8:"grid-cols-1 @md:grid-cols-2 @lg:grid-cols-4 @xl:grid-cols-8"},t=e[null!=m?m:2]||e[2];return"grid ".concat(t)}return"grid grid-cols-1 @md:grid-cols-2"})(),children:t.map(e=>{var t,l,i,s;let o=e.overrideTitle||e.title,d=e.overrideThumbnail||e.thumbnail||"/placeholder.svg",m=(null==(t=e.category)?void 0:t.title)||"Weather News",h=c&&(e.caption||e.description)||void 0,p="object"==typeof e.provider&&e.provider?e.provider:null,x="list"===u?"thumbnail":"small",g=p&&"object"==typeof p.partnerLogo&&(null==(s=p.partnerLogo)||null==(i=s.sizes)||null==(l=i[x])?void 0:l.url)?p.partnerLogo.sizes[x].url:void 0;return(0,a.jsx)(r.S,{heading:n?m:void 0,description:o,href:e.url,imageUrl:d,showIcon:!1,dir:"list"===u?"row":"col",badgeStyle:!!n,bodyText:h,duration:e.duration||void 0,imageWidth:"list"===u?"w-40 h-40 flex-shrink-0":void 0,aspectRatio:v||"square",partnerLogoThumbnailUrl:g,partnerLogoWhite:!0,partnerLogoPosition:"list"===u?"compact":"default"},e.id)})})]})},x=e=>{let{contentQuery:t,limit:l="4",title:i,showCategory:r,showDescription:s,template:o="grid",gridColumns:d=2,aspectRatio:c="square",heroStyle:u="side-content",hideTitle:m=!1}=e,h=(null==t?void 0:t.mergedContent)||[];if(!(0,n.J)(h))return null;let p=h.slice(0,Number(l));return(0,a.jsx)(v,{items:p,title:null!=i?i:void 0,showCategory:null!=r?r:void 0,showDescription:null==s||s,template:null!=o?o:void 0,gridColumns:null!=d?d:void 0,aspectRatio:null!=c?c:void 0,heroStyle:null!=u?u:void 0,hideTitle:null!=m?m:void 0})},g=e=>(0,a.jsx)(x,{...e}),f=g},98066:(e,t,l)=>{"use strict";function a(e){return"string"!=typeof e}function n(e){return"object"==typeof e&&null!==e&&"url"in e&&("mimeType"in e||"seo"in e&&"altText"in e.seo)}l.d(t,{QY:()=>a,bt:()=>n})},99343:(e,t,l)=>{"use strict";l.d(t,{c:()=>o});var a=l(42292),n=l(92700),i=l(55198),r=l(95913),s=l(153);let o=()=>{let e=(0,n.N)(),t=(0,s.A)(),l=(0,i.usePathname)();return(0,a.useCallback)(a=>{var n,i,s,o,d,c;let{eventName:u,eventAttributes:m={}}=a;if(!(null==(i=window.mParticle)||null==(n=i.isInitialized)?void 0:n.call(i)))return void console.warn("MParticle is not initialized");let h={...m,author:(null==t?void 0:t.author)||"",contentId:(null==t?void 0:t.contentId)||m.contentId,...e,url:l?(0,r.EY)(l):""};try{null==(c=window.mParticle)||null==(d=c.logEvent)||d.call(c,u,null==(o=window.mParticle)||null==(s=o.EventType)?void 0:s.Other,h),console.debug('MParticle: Video Event tracked - "'.concat(u,'"'),h)}catch(e){console.error('MParticle: Failed to track Video Event - "'.concat(u,'"'),e)}},[null==t?void 0:t.author,null==t?void 0:t.contentId,e,l])}}}]);