(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6738],{1247:(e,t,l)=>{"use strict";t.j=i;let a=l(17681),r=l(36762),n=l(84015);async function i(){let e=(0,n.getEmailPreferencesStatusUrlConfig)(),t=(0,a.urlFrom)(e),l=await fetch(t,{method:"GET",credentials:"include",headers:{"Content-Type":"application/json"},next:{revalidate:60}});return(0,r.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},3916:(e,t,l)=>{"use strict";l.d(t,{y:()=>o});var a=l(76792),r=l(42292),n=l(23233);let i=(0,r.forwardRef)((e,t)=>{let{title:l,titleId:r,desc:n,descId:i,...o}=e;return(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:t,"aria-labelledby":r,"aria-describedby":i,...o,children:[n?(0,a.jsx)("desc",{id:i,children:n}):null,void 0===l?(0,a.jsx)("title",{id:r,children:"Arrow Down"}):l?(0,a.jsx)("title",{id:r,children:l}):null,(0,a.jsx)("path",{fill:"currentColor",d:"M3.353 9.767a.499.499 0 0 1 .705-.706L7.5 12.5V2.914a.5.5 0 0 1 1 0V12.5l3.443-3.438a.499.499 0 0 1 .705.706l-3.94 3.94a1 1 0 0 1-1.415 0z"})]})}),o=r.forwardRef((e,t)=>(0,a.jsx)(n.h,{ref:t,icon:i,...e}));o.displayName="ArrowDown"},4883:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getSunWeatherAlertHeadlinesUrlConfig=function(e){let{geocode:t,countryCode:l,areaId:a,adminDistrictCode:r,language:n}=e,i={format:"json",language:n,apiKey:"71f92ea9dd2f4790b92ea9dd2f779061"};return t&&(i.geocode=t),l&&(i.countryCode=l),a&&(i.areaId=a),r&&(i.adminDistrictCode=r),{host:"api.weather.com",protocol:"https",pathname:"/v3/alerts/headlines",query:i}},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"}}}},5606:(e,t,l)=>{"use strict";l.r(t),l.d(t,{MorningBriefBlock:()=>U,default:()=>q});var a=l(76792),r=l(42292),n=l(29385),i=l(97935),o=l(4963),s=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 f(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 g(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:n,className:o,location:h,onChangeLocation:p}=e,N=(0,j.useParams)(),C=null==N?void 0:N.locale,[T,A]=(0,r.useState)(!1),[S,M]=(0,r.useState)(""),{isLoading:_,data:I}=function(e,t){let l=e.trim().length>0,{isLoading:a,data:r,error:n}=(0,c.Ay)(l?["search/locations",encodeURIComponent(e)]:null,async()=>await (0,d.SK)(e,t));return{isLoading:a,data:r,error:n}}((0,u.A)(S,300),C);return(0,a.jsxs)(m.AM,{open:T,onOpenChange:A,children:[(0,a.jsx)(m.Wv,{asChild:!0,children:(0,a.jsxs)(s.$n,{variant:"outline",role:"combobox",className:(0,v.cn)("text-muted-foreground flex w-full bg-white px-2 text-nowrap",o),children:[(0,a.jsx)("div",{children:_?(0,a.jsx)(i.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)(f,{placeholder:n,value:S,onValueChange:M}),(0,a.jsx)(g,{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:r,...n}=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,{...n,className:l?"".concat(r," border-red-500"):r})]})}var A=l(9198);let S={"{{terms}}":{text:"Terms",url:"https://".concat("weather.com","/legal")},"{{privacy}}":{text:"Privacy Policy",url:"https://".concat("weather.com","/en-US/twc/privacy-policy")}},M=/\{\{(.*?)\}\}/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(M).map((e,t)=>{let l=S["{{".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),L=l(87103),E=l(75302),D=l(1247);let F=(0,l(20156).tG)("emailPreferences",null,void 0,{getOnInit:!0});var z=l(89170),V=l(82304);let B=()=>{let[e,t]=(0,E.fp)(F),{user:l}=(0,z.J)(),a=(null==l?void 0:l.userID)||null,n=(null==l?void 0:l.isUserLoggedIn)||!1,i=(0,r.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]),o=e&&e.userId===a&&e.expiry&&e.expiry>Date.now();return(0,c.Ay)(a&&n&&!o?"getEmailPreferencesStatus/".concat(a):void 0,()=>(0,D.j)(),{revalidateOnFocus:!1,revalidateOnReconnect:!1,refreshInterval:0,errorRetryCount:2,onSuccess:e=>{a&&e&&i(e.subscriptions)}}),{subscriptions:a&&e?e.subscriptions:null,updateSubscriptions:i}};async function W(e,t){let{arg:l}=t,{email:a,location:r,locale:n,isAnonymous:i}=l,{location:o}=await (0,L.$M)(r.placeId,n).catch(()=>({location:null})),s={subscriptions:[{subscriptionGroupName:e,isSubscribed:!0,attributes:{location:r.placeId,latitude:r.latitude,longitude:r.longitude,dmaCode:(null==o?void 0:o.dmaCd)||null,adminDistrict:r.adminDistrict,adminDistrictCode:r.adminDistrictCode||null,postalCode:r.postalCode}}]};return i&&(s.email=a),await (0,P.p_)(s).then(e=>({...e,sentSubscriptions:s.subscriptions}))}var H=l(22627),O=l(2362);let U=()=>{var e,t;let l=(0,j.useParams)(),d=(0,j.useSearchParams)(),c=null==l?void 0:l.locale,{userProfile:u}=(0,z.J)(),[m,h]=(0,r.useState)(null!=(e=null==u?void 0:u.email)?e:""),[p,v]=(0,r.useState)(null),[x,f]=(0,r.useState)(!1),{data:g,loading:y,onSubmit:b,error:w}=function(){let{updateSubscriptions:e}=B(),{isMutating:t,trigger:l,data:a,error:n,reset:i}=(0,k.A)("newsletter/signup/daily-newsletters-1",(e,t)=>W("daily-newsletters-1",t));return{loading:t,error:n,data:a,onSubmit:(0,r.useCallback)(async t=>{let a=await l(t);return a.sentSubscriptions&&e(a.sentSubscriptions),a},[l,e]),onReset:i}}(),C=d.get("cm_ven"),A=null==C?void 0:C.startsWith("dnt_newsletter"),{subscriptions:S}=B(),M=(0,r.useMemo)(()=>(0,O.C)(S,V.rn),[S]),P=(0,r.useCallback)(async e=>{e.preventDefault(),!y&&m.trim()&&p&&(f(!0),await b({email:m,location:p,locale:c,isAnonymous:!(null==u?void 0:u.email)}))},[b,m,p,c,y,null==u?void 0:u.email]);return!x&&(null==M?void 0:M.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)(H.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==g?void 0:g.status)==="success"?(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsx)(n.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:P,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==g?void 0:g.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)(s.$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)(i.A,{className:"animate-spin"})]})})]}),w&&(0,a.jsxs)("div",{className:"flex items-center gap-2 text-red-500",children:[(0,a.jsx)(o.A,{className:"h-6 w-6 text-red-500"}),(0,a.jsx)("div",{className:"text-sm",children:"Failed to subscribe, please try again."})]}),(null==g?void 0:g.status)==="error"&&(0,a.jsxs)("div",{className:"flex items-center gap-2 text-red-500",children:[(0,a.jsx)(o.A,{className:"h-6 w-6 text-red-500"}),(0,a.jsx)("div",{className:"text-sm",children:null!=(t=g.emailError)?t:g.error})]}),(0,a.jsx)(_,{})]})};U.displayName="MorningBriefBlock";let q=U},6106:(e,t,l)=>{"use strict";l.r(t),l.d(t,{LiveblogEntriesBlock:()=>r,default:()=>n});var a=l(76792);l(42292);let r=()=>(0,a.jsx)("div",{children:"Live Blog Entries"}),n=r},6626:(e,t,l)=>{"use strict";l.r(t),l.d(t,{SlideshowBlock:()=>o,default:()=>s});var a=l(76792);l(42292);var r=l(49192),n=l(98066),i=l(18556);let o=e=>{let{slides:t=[],settings:l={},id:o}=e;if(!(0,i.J)(t))return null;let s=[];for(let e of t){var d;if(!e.imageAsset){console.error("Slide missing imageAsset:",e);continue}let t=(0,n.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}};s.push(l)}return 0===s.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)(r.A,{id:o||"slideshow-".concat(Math.random().toString(36).substring(2,9)),assets:s.slice(0,20),allSlides:s,totalAssets:s.length,rounded:(null==l?void 0:l.rounded)||!1,blockType:"Slideshow",slides:t,settings:l,sendTrackString:()=>{}})},s=o},7886:(e,t,l)=>{"use strict";l.d(t,{e:()=>i});var a=l(76792);l(42292);var r=l(48260),n=l(71666);let i=e=>{let t,l,{precipType:i="rain",rain:o,snow:s,qpf:d=0,qpfSnow:c=0,units:u,unitOverride:m,className:h,unitClass:p}=e,v=null!=o?o:d,x=null!=s?s:c,f=u?(0,n.Bu)(u):null;if("snow"===i)t=x,l="accumulation";else if("rain"===i)t=v,l="precip";else if("precip"===i){let e=Number(v)>=Number(x);t=e?v:x,l=e?"precip":"accumulation"}else t=v,l="precip";let g=null==f?void 0:f[l];return(0,a.jsxs)("span",{"data-testid":"AccumulationValue",className:(0,r.cn)(h),children:[(0,a.jsx)("span",{children:t})," ",(0,a.jsx)("span",{className:(0,r.cn)(p),children:m||g})]})}},8366:(e,t,l)=>{"use strict";l.d(t,{o:()=>o});var a=l(76792),r=l(42292),n=l(23233);let i=(0,r.forwardRef)((e,t)=>{let{title:l,titleId:r,desc:n,descId:i,...o}=e;return(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:t,"aria-labelledby":r,"aria-describedby":i,...o,children:[n?(0,a.jsx)("desc",{id:i,children:n}):null,void 0===l?(0,a.jsx)("title",{id:r,children:"Uv Index"}):l?(0,a.jsx)("title",{id:r,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"})]})}),o=r.forwardRef((e,t)=>(0,a.jsx)(n.h,{ref:t,icon:i,...e}));o.displayName="UvIndex"},9946:(e,t)=>{"use strict";t.k=void 0,t.k=e=>{let{phenomena:t,significance:l,areaId:a,officeCode:r,eventTrackingNumber:n,locId:i}=e;return"".concat("/weather/alerts/localalerts/l/".concat(i),"?phenomena=").concat(t,"&significance=").concat(l,"&areaid=").concat(a,"&office=").concat(r,"&etn=").concat(n)}},11806:(e,t,l)=>{"use strict";l.r(t),l.d(t,{TwitterBlock:()=>i,default:()=>o});var a=l(76792),r=l(42292);let n="twitter-script-loaded",i=e=>{let{entryMethod:t,tweetURL:l,tweetId:i,showThread:o}=e,s=(0,r.useRef)(null),d=(0,r.useCallback)(()=>"id"===t&&i?"https://twitter.com/i/status/".concat(i):"url"===t&&l?l.replace("x.com","twitter.com"):null,[t,i,l]),{isLoaded:c}=function(){let[e,t]=(0,r.useState)(()=>!!(window.twttr&&window.twttr.widgets)),[l,a]=(0,r.useState)(null);return(0,r.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(n);window.dispatchEvent(l),e()},document.body.appendChild(l)}))}l&&l.then(()=>t(!0));let r=()=>t(!0);return window.addEventListener(n,r),()=>{window.removeEventListener(n,r)}},[e,l]),{isLoaded:e}}();return(0,r.useEffect)(()=>{let e=d();e&&(s.current&&(s.current.innerHTML='\n

\n \n
\n ')),c&&window.twttr&&window.twttr.widgets&&window.twttr.widgets.load(s.current))},[d,i,l,t,o,c]),(0,a.jsx)("div",{className:"flex items-center",ref:s})},o=i},12962:(e,t,l)=>{"use strict";t.lh=void 0,t.$c=h,t.eH=p;let a=l(39825),r=l(17681),n=l(36762),i=l(35181),o=l(76088),s=l(73923),d=l(76088),c=l(50532),u=l(76159),m=l(43716);async function h(e){let l=(0,a.getHourlyForecastUrlConfig)(e),i=(0,r.urlFrom)(l),o=await fetch(i,{headers:{"Accept-Encoding":"gzip"},next:{revalidate:300}}),s=await (0,n.handleFetchResponse)(o);return(0,t.lh)(s)}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 o.HourlyForecastDuration.SIX_HOUR:case o.HourlyForecastDuration.TWELVE_HOUR:return m.AirQualityForecastDuration.TWELVE_HOUR;case o.HourlyForecastDuration.ONE_DAY:return m.AirQualityForecastDuration.TWENTY_FOUR_HOUR;case o.HourlyForecastDuration.TWO_DAY:return m.AirQualityForecastDuration.FORTY_EIGHT_HOUR;case o.HourlyForecastDuration.THREE_DAY:case o.HourlyForecastDuration.TEN_DAY:case o.HourlyForecastDuration.FIFTEEN_DAY:default:return m.AirQualityForecastDuration.SEVENTY_TWO_HOUR}}(e.duration)}).catch(()=>null)]);var a=t,r=l;if(!r)return a;let n=new Map(r.forecast.map(e=>[e.validTimeGmt,e]));return a.map(e=>{let t=n.get(e.validTimeUtc);return t?{...e,airQualityIndex:t.airQualityIndex,airQualityCategory:t.airQualityCategory}:e})}t.lh=(0,i.createTransformer)(e=>{var t,l,a,r,n,i,o,u,m,h,p,v,x,f,g,y,b,w,j,N,C,T,A,S,M,_,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!=(r=e.expirationTimeUtc)?r:0,iconCode:null!=(n=e.iconCode)?n:0,iconCodeExtend:null!=(i=e.iconCodeExtend)?i:0,precipChance:null!=(o=e.precipChance)?o:0,precipType:null!=(u=e.precipType)?u:s.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!=(f=e.temperatureDewPoint)?f:0,temperatureFeelsLike:null!=(g=e.temperatureFeelsLike)?g: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!=(S=e.windDirectionCardinal)?S:d.WindDirectionCardinal.NORTH),windGust:null!=(M=e.windGust)?M: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=i;let a=l(47681),r=l(17681),n=l(36762);async function i(e){let t=(0,a.getSunV3WeatherInsightsUrlConfig)(e),l=(0,r.urlFrom)(t),i=await fetch(l,{headers:{"Accept-Encoding":"gzip"},next:{revalidate:300}});return(0,n.handleFetchResponse)(i)}},14124:(e,t,l)=>{"use strict";t.vt=void 0,t.v1=s;let a=l(39825),r=l(17681),n=l(36762),i=l(35181),o=l(50532);async function s(e){let l=(0,a.getDailyForecastUrlConfig)(e),i=(0,r.urlFrom)(l),o=await fetch(i,{headers:{"Accept-Encoding":"gzip"},next:{revalidate:1800}}),s=await (0,n.handleFetchResponse)(o);return(0,t.vt)(s)}t.vt=(0,i.createTransformer)((e,t,l)=>{var a,r,n,i,s,d,c,u,m,h,p,v,x,f,g,y,b,w,j,N,C,T;let A=2*t,S=A+1,{daypart:M}=l||{};return{calendarDayTemperatureMax:null!=(a=e.calendarDayTemperatureMax)?a:void 0,calendarDayTemperatureMin:null!=(r=e.calendarDayTemperatureMin)?r:void 0,dayOfWeek:null!=(n=e.dayOfWeek)?n:void 0,expirationTimeUtc:null!=(i=e.expirationTimeUtc)?i:void 0,moonPhase:null!=(s=e.moonPhase)?s: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!=(f=e.qpfSnow)?f:void 0,sunriseTimeLocal:null!=(g=e.sunriseTimeLocal)?g: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,S].map((t,l)=>{var a,r,n,i,s,d,c,u,m,h,p,v,x,f,g,y,b,w,j,N,C,T,A,S,_,I,R,k,P,L,E,D,F,z,V,B,W,H,O,U,q,G,Z,Q,Y,X,$,K,J,ee,et,el,ea,er,en,ei,eo,es,ed;return(null==M||null==(r=M[0])||null==(a=r.daypartName)?void 0:a[t])?{cloudCover:null!=(L=null==(n=M[0].cloudCover)?void 0:n[t])?L:void 0,dayOrNight:null!=(E=null==(i=M[0].dayOrNight)?void 0:i[t])?E:void 0,daypartName:null!=(D=null==(s=M[0].daypartName)?void 0:s[t])?D:void 0,iconCode:null!=(F=null==(d=M[0].iconCode)?void 0:d[t])?F:void 0,iconCodeExtend:null!=(z=null==(c=M[0].iconCodeExtend)?void 0:c[t])?z:void 0,narrative:null!=(V=null==(u=M[0].narrative)?void 0:u[t])?V:void 0,precipChance:null!=(B=null==(m=M[0].precipChance)?void 0:m[t])?B:void 0,precipType:null!=(W=null==(h=M[0].precipType)?void 0:h[t])?W:void 0,qpf:null!=(H=null==(p=M[0].qpf)?void 0:p[t])?H:void 0,qpfSnow:null!=(O=null==(v=M[0].qpfSnow)?void 0:v[t])?O:void 0,qualifierCode:null!=(U=null==(x=M[0].qualifierCode)?void 0:x[t])?U:void 0,qualifierPhrase:null!=(q=null==(f=M[0].qualifierPhrase)?void 0:f[t])?q:void 0,relativeHumidity:null!=(G=null==(g=M[0].relativeHumidity)?void 0:g[t])?G:void 0,snowRange:null!=(Z=null==(y=M[0].snowRange)?void 0:y[t])?Z:void 0,temperature:null!=(Q=null==(b=M[0].temperature)?void 0:b[t])?Q:void 0,temperatureHeatIndex:(null==(w=M[0].temperatureHeatIndex)?void 0:w[t])||void 0,temperatureWindChill:(null==(j=M[0].temperatureWindChill)?void 0:j[t])||void 0,thunderCategory:null!=(Y=null==(N=M[0].thunderCategory)?void 0:N[t])?Y:void 0,thunderIndex:null!=(X=null==(C=M[0].thunderIndex)?void 0:C[t])?X:void 0,uvDescription:null!=($=null==(T=M[0].uvDescription)?void 0:T[t])?$:void 0,uvIndex:null!=(K=null==(A=M[0].uvIndex)?void 0:A[t])?K:void 0,windDirection:null!=(J=null==(S=M[0].windDirection)?void 0:S[t])?J:void 0,windDirectionCardinal:(null==(_=M[0].windDirectionCardinal)?void 0:_[t])?(0,o.normalizeCardinal)(M[0].windDirectionCardinal[t]):void 0,windPhrase:null!=(ee=null==(I=M[0].windPhrase)?void 0:I[t])?ee:void 0,windSpeed:null!=(et=null==(R=M[0].windSpeed)?void 0:R[t])?et:void 0,wxPhraseLong:null!=(el=null==(k=M[0].wxPhraseLong)?void 0:k[t])?el:void 0,wxPhraseShort:null!=(ea=null==(P=M[0].wxPhraseShort)?void 0:P[t])?ea:void 0,...0===l?{sunriseTimeLocal:null!=(er=e.sunriseTimeLocal)?er:void 0,sunsetTimeLocal:null!=(en=e.sunsetTimeLocal)?en:void 0}:{moonPhase:null!=(ei=e.moonPhase)?ei:void 0,moonPhaseCode:null!=(eo=e.moonPhaseCode)?eo:void 0,moonriseTimeLocal:null!=(es=e.moonriseTimeLocal)?es: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),r=l(44685),n=l(46593),i=l(44615),o=l(86942),s=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),f=l(68751),g=l(48260),y=l(69585),b=l(40640),w=l(23233);let j=(0,p.forwardRef)((e,t)=>{let{title:l,titleId:r,desc:n,descId:i,...o}=e;return(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:t,"aria-labelledby":r,"aria-describedby":i,...o,children:[n?(0,a.jsx)("desc",{id:i,children:n}):null,void 0===l?(0,a.jsx)("title",{id:r,children:"temperature"}):l?(0,a.jsx)("title",{id:r,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),S=l(49694),M=l(8366),_=l(55406),I=l(81217),R=l(28004),k=l(46670),P=l(48834),L=l(63236),E=l(43436),D=l(81692),F=l(23376),z=l(21021);let V=(e,t)=>{var l,a,r,n,i,o,s,d,c,u,m,h;if(!e)return!1;let{top:p,right:v,bottom:x,left:f,width:g,height:y}=e.getBoundingClientRect(),b={t:x,r:window.innerWidth-f,b:window.innerHeight-p,l:v},w={x:(null!=(s=null==t||null==(l=t.threshold)?void 0:l.x)?s:0)*g,y:(null!=(d=null==t||null==(a=t.threshold)?void 0:a.y)?d:0)*y},j={top:null!=(c=null==t||null==(r=t.offset)?void 0:r.top)?c:0,right:null!=(u=null==t||null==(n=t.offset)?void 0:n.right)?u:0,bottom:null!=(m=null==t||null==(i=t.offset)?void 0:i.bottom)?m:0,left:null!=(h=null==t||null==(o=t.offset)?void 0:o.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 B=l(62596),W=l(99838);let H=e=>{let{date:t,normalizeString:l=!0,resetToStartOfHour:a,resetToOffset:r,resetToStartOfMonth:n,resetToEndOfMonth:i,resetToStartOfWeek:o,resetToEndOfWeek:s,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,W.$)(t):t,f=/([+-]\d{2}:?\d{2})$/,g=x.match(f),y=new Date(x.replace(f,""));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)),r&&g){let e,t=g[0];t.includes(":")?[,e]=t.split(":"):e=t.slice(-2),y.setMinutes(parseInt(e||"0",10)),y.setSeconds(0)}if(n&&y.setDate(1),i){let e=y.getMonth(),t=y.getFullYear();y.setMonth(e+1),y.setDate(0),y.setFullYear(t)}return o&&y.setDate(y.getDate()-y.getDay()),s&&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:r,sunsetTimeLocal:n,ianaTimeZone:i,validTimeLocal:o,width:d=100,className:c}=e,u=null==(t=(0,s.useParams)())?void 0:t.locale,m=(0,p.useRef)(null),h=(0,p.useRef)(null),[v,x]=(0,p.useState)(0),g=d/2,y=(0,p.useMemo)(()=>({formattedTime:(0,B.P)({date:r,timeZone:i,locale:u,minutes:!0}),dateTime:H({date:r})}),[i,u,r]),b=(0,p.useMemo)(()=>({formattedTime:(0,B.P)({date:n,timeZone:i,locale:u,minutes:!0}),dateTime:H({date:n})}),[i,u,n]),w=(0,p.useMemo)(()=>H({date:o}),[o]),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?g-6:g)*(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&&V(m.current)&&y&&b&&(T(),window.removeEventListener("scroll",A))},400),[T,y,b]);(0,p.useEffect)(()=>(y&&b&&(m.current&&V(m.current)?T():window.addEventListener("scroll",A)),()=>{window.removeEventListener("scroll",A)}),[T,A,y,b]);let S=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(g-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(g,"px ").concat(g,"px")}}),S&&(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)(f.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)(z.d,{}),(0,a.jsx)(f.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:r,isLoading:n}=e,i=(0,x.c3)("CurrentDetails"),o=(0,x.c3)("DetailsTable"),s=(0,d.md)(c.Yt),m=null==(t=(0,u.xP)(s))?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:S.S,label:t("pressure"),content:(0,a.jsx)(k.S,{pressureAltimeter:e.pressureAltimeter,pressureTendencyCode:e.pressureTendencyCode,units:l})},{Icon:M.o,label:t("uvIndex"),content:(0,a.jsx)(P.M,{uvIndex:e.uvIndex})},{Icon:b.S,label:t("visibility"),content:(0,a.jsx)(L.b,{visibility:e.visibility,units:l})},{Icon:t=>(0,a.jsx)(E.r,{...t,moonPhaseCode:e.moonPhaseCode}),label:t("moonPhase"),content:e.moonPhase}])(n||!l?q:l,o,m),[n,l,o,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)(f.Ay,{className:"text-sm leading-normal @md/currentDetails:text-base",children:i("feelsLike")}),(0,a.jsx)(f.Ay,{variant:"Display.L",className:"text-[40px] leading-normal font-medium @md/currentDetails:text-5xl",isLoading:n,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:n,sunriseTimeLocal:(null==l?void 0:l.sunriseTimeLocal)||"",sunsetTimeLocal:(null==l?void 0:l.sunsetTimeLocal)||"",validTimeLocal:(null==l?void 0:l.validTimeLocal)||"",ianaTimeZone:null==r?void 0:r.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:r,content:i}=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)(f.Ay,{variant:"Body.M",className:"grow-1 font-normal whitespace-nowrap @2xl/currentDetails:text-lg",children:r}),(0,a.jsx)(f.Ay,{isLoading:n||!l,skeletonClassName:"h-6 w-20",variant:"Body.M",className:"text-right leading-[1.5] font-normal tracking-normal @2xl/currentDetails:text-lg",children:i})]},r)})})]});return(0,a.jsxs)(y.Zp,{"aria-label":i("weatherToday"),className:"@container/currentDetails","data-testid":"current-details",children:[(0,a.jsx)(y.aR,{text:n?void 0:"".concat(i("weatherToday")," ").concat(null==r?void 0:r.presentationName),children:n?(0,a.jsx)("span",{className:(0,g.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:r}=e,{effectiveLocation:n,isLocationLoading:x}=(0,Z.s)({location:t}),{currentDetails:f,loading:g}=(e=>{var t,l;let a=(0,d.md)(c.Yt),r=null==(t=(0,u.xP)(a))?void 0:t.code,n=null==(l=(0,s.useParams)())?void 0:l.locale,x=(0,v.A)(),{data:f,error:g,isLoading:y}=(0,i.Ay)(e?["get-current-observations",e.geocode,r,n]:null,e=>{let[t,l,a,r]=e;return(0,o.z)({geocode:l,units:a,language:r})},{revalidateOnFocus:!1,dedupingInterval:6e4}),{data:b,error:w,isLoading:j}=(0,i.Ay)(e?["get-daily-forecast",e.geocode,m.ForecastDuration.THREE_DAY,r,n,"KR"===x?x:void 0]:null,e=>{let[t,l,a,r,n,i]=e;return(0,h.v1)({geocode:l,units:r,language:n,duration:a,cscCountryCode:i})},{revalidateOnFocus:!1,dedupingInterval:6e4}),N=null==b?void 0:b[0];return{currentDetails:(0,p.useMemo)(()=>f&&N&&{...f,temperatureMin:N.temperatureMin,temperatureMax:N.temperatureMax,moonPhase:N.moonPhase,moonPhaseCode:N.moonPhaseCode},[f,N]),loading:y||j,error:g||w}})(n),y=l||x||g||!f||!n;return r?null:(0,a.jsx)(G,{location:n,currentDetails:f,isLoading:y})},Y=e=>{let{locationProvider:t,locationEntry:l}=e,i="specified"===t,{specifiedLocationData:o,specifiedLocationError:s,isSpecifiedLocationLoading:d}=(0,n.v)(i?l:null),c=i&&o&&l?(0,r.I)(o):void 0;return(0,a.jsx)(Q,{location:c,initializing:i&&d,initialError:i?s:void 0})},X=Y},21021:(e,t,l)=>{"use strict";l.d(t,{d:()=>o});var a=l(76792),r=l(42292),n=l(23233);let i=(0,r.forwardRef)((e,t)=>{let{title:l,titleId:r,desc:n,descId:i,...o}=e;return(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:t,"aria-labelledby":r,"aria-describedby":i,...o,children:[n?(0,a.jsx)("desc",{id:i,children:n}):null,void 0===l?(0,a.jsx)("title",{id:r,children:"Sunset"}):l?(0,a.jsx)("title",{id:r,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"})})]})}),o=r.forwardRef((e,t)=>(0,a.jsx)(n.h,{ref:t,icon:i,...e}));o.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:()=>o});var a=l(76792),r=l(42292),n=l(23233);let i=(0,r.forwardRef)((e,t)=>{let{title:l,titleId:r,desc:n,descId:i,...o}=e;return(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:t,"aria-labelledby":r,"aria-describedby":i,...o,children:[n?(0,a.jsx)("desc",{id:i,children:n}):null,void 0===l?(0,a.jsx)("title",{id:r,children:"Sunrise"}):l?(0,a.jsx)("title",{id:r,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"})})]})}),o=r.forwardRef((e,t)=>(0,a.jsx)(n.h,{ref:t,icon:i,...e}));o.displayName="Sunrise"},25115:(e,t,l)=>{"use strict";l.r(t),l.d(t,{BuyButtonBlock:()=>u,default:()=>m});var a=l(76792),r=l(42292),n=l(84057),i=l(30505),o=l(48260);let s=(0,i.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=r.forwardRef((e,t)=>{let{className:l,variant:r,display:i,inline:d=!1,asChild:c=!1,...u}=e,m=c?n.DX:"button";return(0,a.jsx)(m,{className:(0,o.cn)(s({variant:r,display:d?"inline":i,className:l})),ref:t,...u})});d.displayName="Button";var c=l(9198);let u=e=>{let{label:t,url:l,variant:r="bg-gray-900",inline:n=!1,isAffiliate:i=!0}=e;return(0,a.jsx)("div",{className:n?"inline-block":"block",children:(0,a.jsx)(c.default,{href:l,target:"_blank",rel:i?"nofollow noopener noreferrer":"noopener",children:(0,a.jsx)(d,{variant:r,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),r=l(42292),n=l(75302),i=l(30505),o=l(47421),s=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,r.forwardRef)((e,t)=>{let{title:l,titleId:r,desc:n,descId:i,...o}=e;return(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:t,"aria-labelledby":r,"aria-describedby":i,...o,children:[n?(0,a.jsx)("desc",{id:i,children:n}):null,void 0===l?(0,a.jsx)("title",{id:r,children:"Rain Snow Wintery Mix"}):l?(0,a.jsx)("title",{id:r,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"})]})]})}),f=r.forwardRef((e,t)=>(0,a.jsx)(v.h,{ref:t,icon:x,...e}));f.displayName="RainSnowWinteryMix";var g=l(60645),y=l(51254);let b=(0,r.forwardRef)((e,t)=>{let{title:l,titleId:r,desc:n,descId:i,...o}=e;return(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:t,"aria-labelledby":r,"aria-describedby":i,...o,children:[n?(0,a.jsx)("desc",{id:i,children:n}):null,void 0===l?(0,a.jsx)("title",{id:r,children:"Feels Like"}):l?(0,a.jsx)("title",{id:r,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=r.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,r.forwardRef)((e,t)=>{let{title:l,titleId:r,desc:n,descId:i,...o}=e;return(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:t,"aria-labelledby":r,"aria-describedby":i,...o,children:[n?(0,a.jsx)("desc",{id:i,children:n}):null,void 0===l?(0,a.jsx)("title",{id:r,children:"Cloud Cover"}):l?(0,a.jsx)("title",{id:r,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"})]})}),S=r.forwardRef((e,t)=>(0,a.jsx)(v.h,{ref:t,icon:A,...e}));S.displayName="CloudCover";var M=l(56157);let _=(0,r.forwardRef)((e,t)=>{let{title:l,titleId:r,desc:n,descId:i,...o}=e;return(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 20 20",ref:t,"aria-labelledby":r,"aria-describedby":i,...o,children:[n?(0,a.jsx)("desc",{id:i,children:n}):null,void 0===l?(0,a.jsx)("title",{id:r,children:"Wind Gust"}):l?(0,a.jsx)("title",{id:r,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=r.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,r.forwardRef)((e,t)=>{let{title:l,titleId:r,desc:n,descId:i,...o}=e;return(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:t,"aria-labelledby":r,"aria-describedby":i,...o,children:[n?(0,a.jsx)("desc",{id:i,children:n}):null,void 0===l?(0,a.jsx)("title",{id:r,children:"moonrise"}):l?(0,a.jsx)("title",{id:r,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"})})]})}),L=r.forwardRef((e,t)=>(0,a.jsx)(v.h,{ref:t,icon:P,...e}));L.displayName="Moonrise";let E=(0,r.forwardRef)((e,t)=>{let{title:l,titleId:r,desc:n,descId:i,...o}=e;return(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:t,"aria-labelledby":r,"aria-describedby":i,...o,children:[n?(0,a.jsx)("desc",{id:i,children:n}):null,void 0===l?(0,a.jsx)("title",{id:r,children:"Foggy"}):l?(0,a.jsx)("title",{id:r,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=r.forwardRef((e,t)=>(0,a.jsx)(v.h,{ref:t,icon:E,...e}));D.displayName="Foggy";var F=l(40640),z=l(62596),V=l(99838);let B=e=>e?(0,V.$)(e).replace(/([+-]\d{2}:?\d{2})$/,"+0000"):"";var W=l(71666),H=l(55406),O=l(81217),U=l(28004),q=l(46670),G=l(63236),Z=l(48834),Q=l(7886);let Y=(0,r.memo)(e=>{let t,{airQualityIndex:l,airQualityCategory:r,className:n}=e,i=!(0,h.g)(l)&&!Number.isNaN(l),o=!(0,h.g)(r)&&""!==r.trim();return t=i&&o?"".concat(l," - ").concat(r):i?"".concat(l):o?r:"--",(0,a.jsx)("span",{"data-testid":"AirQualityValue",className:n,children:t})});var X=l(43436);let $=e=>!(0,h.g)(e)||null,K={derive:e=>{let{precipType:t}=e;return"precip"===t?f:"snow"===t?g.D:y.Y}},J={temperatureFeelsLike:{label:(e,t)=>{let{t:l}=t;return l("feelsLike")},icon:w,value:e=>{let{temperatureFeelsLike:t}=e;return $(t)&&(0,a.jsx)(H.B,{value:t})}},windSpeed:{label:(e,t)=>{let{t:l}=t;return l("wind")},icon:j.Z,value:(e,t)=>{let{windSpeed:l,windDirectionCardinal:r}=e,{unitName:n}=t,i=(0,W.xP)(n);return $(l)&&(0,a.jsx)(O.Z,{className:"whitespace-nowrap",windSpeed:l,windDirectionCardinal:r,units:i.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:K,value:e=>{let{precipChance:t}=e;return $(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 $(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 $(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:r}=t;return $(l)&&(0,a.jsx)(G.b,{visibility:l,units:(0,W.xP)(r).code})}},uvIndex:{label:(e,t)=>{let{t:l}=t;return l("uvIndex")},icon:T.o,value:e=>{let{uvIndex:t}=e;return $(t)&&(0,a.jsx)(Z.M,{uvIndex:t})}},cloudCover:{label:(e,t)=>{let{t:l}=t;return l("cloudCover")},icon:S,value:e=>{let{cloudCover:t}=e;return $(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:K,value:(e,t)=>{let{qpf:l,qpfSnow:r,precipType:n}=e,{unitName:i}=t;return $(l)||$(r)?(0,a.jsx)(Q.e,{precipType:n,qpf:l,qpfSnow:r,units:(0,W.xP)(i).code}):null}},temperatureDewPoint:{label:(e,t)=>{let{t:l}=t;return l("dewPoint")},icon:M.$,value:e=>{let{temperatureDewPoint:t}=e;return $(t)&&(0,a.jsx)(H.B,{value:t})}},windGust:{label:(e,t)=>{let{t:l}=t;return l("windGust")},icon:I,value:(e,t)=>{let{windGust:l}=e,{unitName:r}=t;return(0,a.jsx)(O.Z,{windSpeed:null!=l?l:void 0,units:(0,W.xP)(r).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,z.P)({date:B(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,z.P)({date:B(l),timeZone:"Etc/GMT",locale:a,minutes:!0}):"--"}},moonrise:{label:(e,t)=>{let{t:l}=t;return l("moonrise")},icon:L,value:(e,t)=>{let{moonriseTimeLocal:l}=e,{locale:a}=t;return l?(0,z.P)({date:B(l),timeZone:"Etc/GMT",locale:a,minutes:!0}):"--"}},moonset:{label:(e,t)=>{let{t:l}=t;return l("moonset")},icon:L,value:(e,t)=>{let{moonsetTimeLocal:l}=e,{locale:a}=t;return l?(0,z.P)({date:B(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 $(t)&&t}},airQuality:{label:(e,t)=>{let{t:l}=t;return l("airQuality")},icon:D,value:e=>{let{airQualityIndex:t,airQualityCategory:l}=e;return $(t)&&(0,a.jsx)(Y,{airQualityIndex:t,airQualityCategory:l})}}},ee=(0,i.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,r.memo)(e=>{let{dataPoints:t,fields:l,locale:i,columns:h,children:p}=e,{small:v=2,medium:x=3,large:f=4}="object"==typeof h?h||{}:{small:h,medium:h,large:h},[g,y]=(0,u.r)(e=>e>=m.c["@xl"]?f:e>=m.c["@xs"]?x:v),b=g||x,w=(0,o.c3)("DetailsTable"),j={unitName:(0,n.md)(c.Yt),t:w,locale:i},N=0;return(0,a.jsx)(s.Zp,{ref:y,className:"border-2xl @container/detailsTable h-full bg-gray-100 p-0",children:(0,a.jsxs)(s.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,n)=>{let i,o=J[e],s=null==o?void 0:o.value(t,j);if(!o||!s)return N++,null;let c="derive"in o.icon?o.icon.derive(t,j):o.icon,u="function"==typeof o.label?o.label(t,j):o.label,m=l.length-N,h=n-N,p=m%b;if(h===m-1&&0!==p){let e=b-p+1;i={gridColumn:"span ".concat(e," / span ").concat(e)}}return(0,a.jsxs)(r.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:i,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 s?"p":"div",variant:"Body.L.Bold",className:"text-sm leading-normal @xl/detailsTable:text-base",children:s})]})]})]},u+h)})})]})})})},26106:(e,t,l)=>{"use strict";l.r(t),l.d(t,{TaboolaBlock:()=>x,TaboolaBlockView:()=>f,default:()=>g});var a=l(76792),r=l(42292),n=l(55198),i=l(54909),o=l(58010),s=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,r.useState)(!1),a=(0,u.md)(h.W);return(0,r.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,r.useCallback)((l,a,r)=>{window._taboola=window._taboola||[],a!==e&&(""===e||t||(window._taboola.push({notify:"newPageLoad"}),t=!0),e=a,t=!1),window._taboola.push({[r]:"auto",url:a}),window._taboola.push(l),window._taboola.push({flush:!0})},[])})})(),x=e=>{let{showTaboola:t=!0,...l}=e,{user:r}=(0,c.J)(),n=(0,u.md)(m.a),i=p();return r.isUserPremium||n||!i||!t?null:(0,a.jsx)(f,{...l})},f=e=>{let{taboolaId:t,taboolaUiMode:l,placementName:c,targetType:u,title:m="",pageType:h,taboolaType:p}=e,x=(0,r.useRef)(null),[f,g]=(0,r.useState)("pending"),y=(0,n.usePathname)(),{isTaboolaLoaded:b}=(()=>{let[e,t]=(0,r.useState)(!1);return(0,r.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,r.useMemo)(()=>{let e=(0,i.j)();return"".concat(e).concat(y||"")},[y]),N="empty"!==f,C=(0,r.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,r.useEffect)(()=>{b&&"pending"===f&&w({mode:l,container:t,placement:c,target_type:u},j,h)},[b,f,w,t,l,c,u,j,h]),(0,r.useEffect)(()=>{let e=x.current;if(!e||!b)return;let t=new MutationObserver((t,l)=>{try{e.hasChildNodes()?(g("populated"),l.disconnect()):"pending"!==f&&(g("empty"),l.disconnect())}catch(e){console.warn("Error in TaboolaBlock content observer",e)}});return t.observe(e,{childList:!0}),e.hasChildNodes()&&(g("populated"),t.disconnect()),()=>t.disconnect()},[b,f]),b)?"invisible"===p?(0,a.jsx)("div",{id:t,ref:x}):(0,a.jsxs)("section",{className:"@container",children:[(0,a.jsx)(o.DebugCollector,{componentName:"TaboolaBlock",data:{props:{taboolaId:t,taboolaUiMode:l,placementName:c,targetType:u,pageUrl:j,pageType:h,taboolaContentState:f,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,s.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},g=x},27301:(e,t,l)=>{"use strict";t.p_=i;let a=l(17681),r=l(36762),n=l(84015);async function i(e){let t=(0,n.getEmailPreferencesSetUrlConfig)(),l=(0,a.urlFrom)(t),i=JSON.stringify(function(e){let{subscriptions:t,email:l,mParticleId:a}=e,r={};return t&&(r.subscriptions=t),l&&(r.email=l),a&&(r.mParticleId=a),r}(e)),o=await fetch(l,{method:"PUT",credentials:"include",headers:{"Content-Type":"application/json"},body:i});if(200===o.status||400===o.status){let e=await o.json();return console.log({json:e}),e}return(0,r.handleFetchResponse)(o)}},28004:(e,t,l)=>{"use strict";l.d(t,{N:()=>i});var a=l(76792),r=l(42292),n=l(48260);let i=(0,r.memo)(e=>{let{value:t,className:l,roundValue:r}=e,i=r?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,n.cn)(l),children:Number.isFinite(i)&&i>=0?"".concat(i,"%"):"--"})})},30253:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getHourlyAirQualityForecastUrlConfig=function(e){let{geocode:t,language:l,scale:a,duration:r}=e;return{host:"api.weather.com",protocol:"https",pathname:"/v3/wx/globalAirQuality/forecast/hourly/".concat(r),query:{geocode:t,language:l,scale:a,format:"json",apiKey:"71f92ea9dd2f4790b92ea9dd2f779061"}}}},31607:(e,t,l)=>{"use strict";l.d(t,{D:()=>o});var a=l(76792),r=l(42292),n=l(23233);let i=(0,r.forwardRef)((e,t)=>{let{title:l,titleId:r,desc:n,descId:i,...o}=e;return(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:t,"aria-labelledby":r,"aria-describedby":i,...o,children:[n?(0,a.jsx)("desc",{id:i,children:n}):null,void 0===l?(0,a.jsx)("title",{id:r,children:"Arrow Up"}):l?(0,a.jsx)("title",{id:r,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"})]})}),o=r.forwardRef((e,t)=>(0,a.jsx)(n.h,{ref:t,icon:i,...e}));o.displayName="ArrowUp"},34256:(e,t,l)=>{"use strict";l.r(t),l.d(t,{HourlyForecastBlock:()=>ec,default:()=>eu});var a=l(76792),r=l(42292),n=l(47421),i=l(44615),o=l(12962),s=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),f=l(69585),g=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),S=l(11340);let M=["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:r,itemIndex:i,longPhraseInSet:o}=e,s=(0,n.c3)("DetailsTable"),d=(0,c.md)(u.Yt),h=(0,m.xP)(d),v=0===i;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:r,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)(S.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",o?"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:s("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:s("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:s("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)(g.A,{dataPoints:t,fields:M,locale:r})})]})};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 h-4 w-full"})},"hourly-forecast-skel-".concat(t)))})};var P=l(79315),L=l(46828),E=l(56768),D=l(31607),F=l(3916),z=l(23233);let V=(0,r.forwardRef)((e,t)=>{let{title:l,titleId:r,desc:n,descId:i,...o}=e;return(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:t,"aria-labelledby":r,"aria-describedby":i,...o,children:[n?(0,a.jsx)("desc",{id:i,children:n}):null,void 0===l?(0,a.jsx)("title",{id:r,children:"Sunny Day"}):l?(0,a.jsx)("title",{id:r,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"})]})]})}),B=r.forwardRef((e,t)=>(0,a.jsx)(z.h,{ref:t,icon:V,...e}));B.displayName="SunnyDay";let W=(0,r.forwardRef)((e,t)=>{let{title:l,titleId:r,desc:n,descId:i,...o}=e;return(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:t,"aria-labelledby":r,"aria-describedby":i,...o,children:[n?(0,a.jsx)("desc",{id:i,children:n}):null,void 0===l?(0,a.jsx)("title",{id:r,children:"Cloudy"}):l?(0,a.jsx)("title",{id:r,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"})]})}),H=r.forwardRef((e,t)=>(0,a.jsx)(z.h,{ref:t,icon:W,...e}));H.displayName="Cloudy";let O=(0,r.forwardRef)((e,t)=>{let{title:l,titleId:r,desc:n,descId:i,...o}=e;return(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:t,"aria-labelledby":r,"aria-describedby":i,...o,children:[n?(0,a.jsx)("desc",{id:i,children:n}):null,void 0===l?(0,a.jsx)("title",{id:r,children:"Rain Heavy"}):l?(0,a.jsx)("title",{id:r,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=r.forwardRef((e,t)=>(0,a.jsx)(z.h,{ref:t,icon:O,...e}));U.displayName="RainHeavy";let q=(0,r.forwardRef)((e,t)=>{let{title:l,titleId:r,desc:n,descId:i,...o}=e;return(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:t,"aria-labelledby":r,"aria-describedby":i,...o,children:[n?(0,a.jsx)("desc",{id:i,children:n}):null,void 0===l?(0,a.jsx)("title",{id:r,children:"Clear Night"}):l?(0,a.jsx)("title",{id:r,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=r.forwardRef((e,t)=>(0,a.jsx)(z.h,{ref:t,icon:q,...e}));G.displayName="ClearNight";let Z=(0,r.forwardRef)((e,t)=>{let{title:l,titleId:r,desc:n,descId:i,...o}=e;return(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:t,"aria-labelledby":r,"aria-describedby":i,...o,children:[n?(0,a.jsx)("desc",{id:i,children:n}):null,l?(0,a.jsx)("title",{id:r,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=r.forwardRef((e,t)=>(0,a.jsx)(z.h,{ref:t,icon:Z,...e}));Q.displayName="FairMostlyClearDay";var Y=l(79770);let X=e=>{let{insightHeadline:t,insightTextLong:l,className:r,headlineClass:n,textClass:i,background:o,weatherMode:s}=e;if(!t&&!l)return null;let d="";return s&&(d="severe"===s?"warning":"watch"),(0,a.jsxs)("div",{className:(0,C.cn)("nowrap flex items-center px-6.5 py-4",r,o&&"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",n),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]",i),children:l}):null]})]})};var $=l(68577),K=l(44936);let J={up:D.D,down:F.y,sun:B,cloud:H,rain:U,clear:B,"clear-night":G,fair:Q},ee=e=>{let{location:t,locale:l}=e,{insightTextLong:r}=(0,K.p)(t,l);return r?(0,a.jsx)(X,{className:"px-4 py-2",headlineClass:"hidden",textClass:"text-sm m-0",insightTextLong:r}):null},et=e=>{let{location:t,hourlyForecast:l,isLoading:i,error:o,locale:s,showDayLabel:d,canToggleMultipleItems:c,ctaLink:u,ctaText:m,enableAlertHeadlines:h,insight:g,insightIcon:y,showPrecipIntensity:b,simplifiedVersion:w}=e,j=(0,n.c3)("HourlyForecast"),[C,T]=(0,r.useState)(!1),A=y&&J[y];return(0,a.jsxs)(f.Zp,{"aria-label":j("hourlyWeather"),className:"not-prose @container/hourly","data-testid":"hourly-forecast",children:[(0,a.jsx)(f.aR,{text:j("hourlyWeather")}),(0,a.jsxs)(f.Wu,{className:"p-0",children:[i?(0,a.jsx)(R.A,{skeletonClassName:"my-3 h-4 w-20 gap-1"}):g?(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:g})]}):"",h&&(0,a.jsx)("div",{children:(0,a.jsx)(L.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:s}),(0,a.jsx)("div",{className:"px-4 py-2",children:(0,a.jsx)($.A,{location:t,onlyChart:!0})})]}),(()=>{var e,n;if(o)return(0,a.jsx)(p.Ay,{variant:"Display.S",className:"flex min-h-48 items-center justify-center p-4",children:(null==o?void 0:o.message)||j("errorMsg")});let h=null!=(n=null==(e=l[0])?void 0:e.validTimeLocal)?n: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:i?(0,a.jsx)(a.Fragment,{children:(0,a.jsx)(k,{skeletonColumns:w?4:76})}):l.map((e,n)=>{var i;return!C&&e.wxPhraseLong.length>15&&T(!0),(0,a.jsxs)(r.Fragment,{children:[d&&(0===n||e.dayOfWeek!==((null==(i=l[n-1])?void 0:i.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:r,cTimeZone:n}=(0,P.r)({date:t,locale:l,timeZone:a});return new Intl.DateTimeFormat(l,{weekday:"long",day:"numeric",month:"long",timeZone:n}).format(r)})({date:e.validTimeLocal,locale:s,timeZone:(null==t?void 0:t.ianaTimeZone)||""})}),(0,a.jsx)(I,{itemIndex:n,forecast:e,timeZone:(null==t?void 0:t.ianaTimeZone)||"",locale:s,longPhraseInSet:C})]},e.validTimeLocal)})}),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),er=l(40358);let en=["trendingFeelsLikeInsight","trendingTemperatureInsight","trendingWindInsight","trendingUvIndexInsight"],ei=Math.floor(Math.random()*en.length),eo=e=>{var t,l;let{location:p,simplifiedVersion:v,initializing:x,initialError:f}=e,g=(0,h.useParams)(),y=(0,n.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?s.HourlyForecastDuration.ONE_DAY:s.HourlyForecastDuration.THREE_DAY,T=null==(l=(0,h.useParams)())?void 0:l.locale,{data:A=[],error:S,isLoading:M}=(0,i.Ay)(b?["get-hourly-forecast",b.geocode,N,C,T]:null,e=>{let[t,l,a,r,n]=e;return(0,o.eH)({geocode:l,units:a,duration:r,language:n})},{revalidateOnFocus:!1,dedupingInterval:6e4}),_=(0,r.useMemo)(()=>v?A.slice(0,4):A,[A,v]),{insight:I,insightIcon:R}=((e,t)=>{var l;let a=(0,c.md)(u.Yt),n=null==(l=(0,m.xP)(a))?void 0:l.code,{data:o,isLoading:d}=(0,er.r)({geoCode:(null==e?void 0:e.geocode)||null,insightType:E.InsightType.ALL,locale:t}),h=(0,r.useMemo)(()=>null==o?void 0:o.reduce((e,t)=>(e[t.insightType]=t,e),{}),[o]),{data:p=[],isLoading:v}=(0,i.Ay)(e?["get-daily-forecast",e.geocode,s.ForecastDuration.THREE_DAY,n,t]:null,e=>{let[t,l,a,r,n]=e;return(0,ea.v1)({geocode:l,units:r,duration:a,language:n})},{revalidateOnFocus:!1,dedupingInterval:6e5}),x=d||v,f=p[0],g=(0,r.useMemo)(()=>{var e,t,l,a,r,n;if(x)return"";let i=null==h||null==(t=h.significantWeatherTodayInsight)||null==(e=t.insightText)?void 0:e[0];if(i)return i;let o=null==f||null==(a=f.daypart)||null==(l=a[0])?void 0:l.narrative;if(o)return o.split(".")[0];let s=en[ei]||en[0];return(null==h||null==(n=h[s])||null==(r=n.insightText)?void 0:r[0])||""},[x,h,null==f?void 0:f.daypart]);return(0,r.useMemo)(()=>{let e=(0,el.B)(g,[" ","."]),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}},[g])})(b,T),k=x||M||w||!(null==_?void 0:_.length),P=v?"/weather/hourbyhour/l/".concat((null==b?void 0:b.placeId)||(null==g?void 0:g.locId)):"/weather/tenday/l/".concat((null==b?void 0:b.placeId)||(null==g?void 0:g.locId));return(0,a.jsx)(et,{location:b,hourlyForecast:_,locale:T,isLoading:k,error:f||S,showDayLabel:!v,canToggleMultipleItems:!v,ctaLink:P,ctaText:y(v?"next48":"10DayWeather"),enableAlertHeadlines:!v,insight:I,insightIcon:R,showPrecipIntensity:!v,simplifiedVersion:v})};var es=l(44685),ed=l(46593);let ec=e=>{let{locationProvider:t,locationEntry:l,simplifiedVersion:r}=e,n="specified"===t,{specifiedLocationData:i,specifiedLocationError:o,isSpecifiedLocationLoading:s}=(0,ed.v)(n?l:null),d=n&&i&&l?(0,es.I)(i):void 0;return(0,a.jsx)(eo,{location:d,simplifiedVersion:null!=r&&r,initializing:n&&s,initialError:n?o: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 r={};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),r=l(42292),n=l(9198),i=l(48260),o=l(22627);let s=r.forwardRef((e,t)=>{let{src:l,alt:r,caption:n,credit:s,width:d=320,height:c=180,shadow:u=!0,rounded:m=!0,className:h,sizes:p,priority:v,imageAttributes:x}=e,f=!!(n||s);return(0,a.jsxs)("figure",{ref:t,className:(0,i.cn)(h),children:[(0,a.jsx)(o._,{src:l,alt:r,width:d,height:c,shadow:u,rounded:m,sizes:p,priority:v,...x}),f&&(0,a.jsxs)("figcaption",{className:"mt-2 text-sm leading-tight",children:[n&&(0,a.jsx)("p",{children:n}),s&&(0,a.jsxs)("p",{className:"m-0 text-gray-500",children:["(",s,")"]})]})]})});s.displayName="Figure";let d=e=>{var t,l;let{imageType:r,internalImageId:o,externalImageUrl:d,controls:c,altText:u,isPriorityImage:m,imageAttributes:h,linkUrl:p}=e;if(!r||!o&&!d)return(0,a.jsx)("div",{className:"text-center text-red-500",children:"Error: Missing data for the image block."});let v="internal"===r&&(e=>"object"==typeof e&&null!==e&&"url"in e)(o),x=v?(null==o?void 0:o.url)||"":d||"",f=v?(null==o||null==(t=o.seo)?void 0:t.altText)||"":u||"",g="",y="";(null==c?void 0:c.showCaption)&&((!v||(null==c?void 0:c.useImageCaption))&&"external"!==r?v&&(g=(null==o?void 0:o.caption)||"",y=(null==o||null==(l=o.seo)?void 0:l.credit)||""):(g=(null==c?void 0:c.caption)||"",y=(null==c?void 0:c.credit)||""));let b=(0,a.jsx)(s,{src:x,alt:f,caption:g,credit:y,priority:!!m,className:(0,i.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)(n.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),r=l(17681),n=l(36762),i=l(35181),o=l(73923),s=l(76088),d=l(50532);async function c(e){let l=(0,a.getFifteenMinuteForecastUrlConfig)(e),i=(0,r.urlFrom)(l),o=await fetch(i,{headers:{"Accept-Encoding":"gzip"},next:{revalidate:60}}),s=await (0,n.handleFetchResponse)(o);return(0,t.$t)(s)}t.$t=(0,i.createTransformer)(e=>{var t,l,a,r,n,i,c,u,m,h,p,v,x,f,g,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!=(r=e.precipChance)?r:0,precipRate:null!=(n=e.precipRate)?n:0,precipType:null!=(i=e.precipType)?i:o.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:s.WindDirectionCardinal.NORTH),windSpeed:null!=(f=e.windSpeed)?f:0,wxPhraseLong:null!=(g=e.wxPhraseLong)?g:"",wxPhraseShort:null!=(y=e.wxPhraseShort)?y:"",wxSeverity:null!=(b=e.wxSeverity)?b:0}})},38577:(e,t,l)=>{"use strict";t.M=i;let a=l(17681),r=l(36762),n=l(54651);async function i(){let e=(0,n.getTileServerSeriesDynamicMapsUrlConfig)(),t=(0,a.urlFrom)(e),l=await fetch(t,{headers:{"Accept-Encoding":"gzip"},next:{revalidate:300}});return(await (0,r.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:r,duration:n=a.ForecastDuration.FIVE_DAY,cscCountryCode:i}=e;return{host:"api.weather.com",protocol:"https",pathname:"/v3/wx/forecast/daily/".concat(n),query:{geocode:t,units:l,language:r,cscCountryCode:i||void 0,format:"json",apiKey:"71f92ea9dd2f4790b92ea9dd2f779061"}}},t.getHourlyForecastUrlConfig=function(e){let{geocode:t,units:l,language:r,duration:n=a.HourlyForecastDuration.TWO_DAY,cscCountryCode:i}=e;return{host:"api.weather.com",protocol:"https",pathname:"/v3/wx/forecast/hourly/".concat(n),query:{geocode:t,units:l,language:r,cscCountryCode:i||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:r="60minute"}=e;return{host:"api.weather.com",protocol:"https",pathname:"/v3/wx/forecast/minutely/precipitation/".concat(r),query:{geocode:t,units:l,language:a,format:"json",apiKey:"71f92ea9dd2f4790b92ea9dd2f779061"}}},t.getWWIRForecastUrlConfig=function(e){let{geocode:t,postalCode:l,units:a,language:r}=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:r,apiKey:"71f92ea9dd2f4790b92ea9dd2f779061"}}};let a=l(76088)},40358:(e,t,l)=>{"use strict";l.d(t,{r:()=>d});var a=l(44615),r=l(13886),n=l(75302),i=l(32035),o=l(71666);let s={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,n.md)(i.Yt),p=((0,o.xP)(h)||o.AF).code;return(0,a.Ay)(l?[t,d,l,p,u,c]:null,e=>{let[t,l,a,n,i,o]=e;return(0,r.I)({geocode:a,units:n,language:o,insightType:l,par:i,cscCountryCode:"KR"===m?"KR":void 0})},s)}},40640:(e,t,l)=>{"use strict";l.d(t,{S:()=>o});var a=l(76792),r=l(42292),n=l(23233);let i=(0,r.forwardRef)((e,t)=>{let{title:l,titleId:r,desc:n,descId:i,...o}=e;return(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:t,"aria-labelledby":r,"aria-describedby":i,...o,children:[n?(0,a.jsx)("desc",{id:i,children:n}):null,void 0===l?(0,a.jsx)("title",{id:r,children:"View"}):l?(0,a.jsx)("title",{id:r,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"})]})]})}),o=r.forwardRef((e,t)=>(0,a.jsx)(n.h,{ref:t,icon:i,...e}));o.displayName="View"},43436:(e,t,l)=>{"use strict";l.d(t,{r:()=>C});var a=l(76792),r=l(42292),n=l(23233);let i=(0,r.forwardRef)((e,t)=>{let{title:l,titleId:r,desc:n,descId:i,...o}=e;return(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:t,"aria-labelledby":r,"aria-describedby":i,...o,children:[n?(0,a.jsx)("desc",{id:i,children:n}):null,void 0===l?(0,a.jsx)("title",{id:r,children:"New Moon"}):l?(0,a.jsx)("title",{id:r,children:l}):null,(0,a.jsx)("circle",{cx:8,cy:7.613,r:6.4,fill:"currentColor"})]})}),o=r.forwardRef((e,t)=>(0,a.jsx)(n.h,{ref:t,icon:i,...e}));o.displayName="NewMoon";let s=(0,r.forwardRef)((e,t)=>{let{title:l,titleId:r,desc:n,descId:i,...o}=e;return(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:t,"aria-labelledby":r,"aria-describedby":i,...o,children:[n?(0,a.jsx)("desc",{id:i,children:n}):null,void 0===l?(0,a.jsx)("title",{id:r,children:"Waxing Crescent"}):l?(0,a.jsx)("title",{id:r,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=r.forwardRef((e,t)=>(0,a.jsx)(n.h,{ref:t,icon:s,...e}));d.displayName="WaxingCrescent";let c=(0,r.forwardRef)((e,t)=>{let{title:l,titleId:r,desc:n,descId:i,...o}=e;return(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:t,"aria-labelledby":r,"aria-describedby":i,...o,children:[n?(0,a.jsx)("desc",{id:i,children:n}):null,void 0===l?(0,a.jsx)("title",{id:r,children:"First Quarter"}):l?(0,a.jsx)("title",{id:r,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=r.forwardRef((e,t)=>(0,a.jsx)(n.h,{ref:t,icon:c,...e}));u.displayName="FirstQuarter";let m=(0,r.forwardRef)((e,t)=>{let{title:l,titleId:r,desc:n,descId:i,...o}=e;return(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:t,"aria-labelledby":r,"aria-describedby":i,...o,children:[n?(0,a.jsx)("desc",{id:i,children:n}):null,void 0===l?(0,a.jsx)("title",{id:r,children:"Waxing Gibbous"}):l?(0,a.jsx)("title",{id:r,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=r.forwardRef((e,t)=>(0,a.jsx)(n.h,{ref:t,icon:m,...e}));h.displayName="WaxingGibbous";let p=(0,r.forwardRef)((e,t)=>{let{title:l,titleId:r,desc:n,descId:i,...o}=e;return(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:t,"aria-labelledby":r,"aria-describedby":i,...o,children:[n?(0,a.jsx)("desc",{id:i,children:n}):null,void 0===l?(0,a.jsx)("title",{id:r,children:"Full Moon"}):l?(0,a.jsx)("title",{id:r,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=r.forwardRef((e,t)=>(0,a.jsx)(n.h,{ref:t,icon:p,...e}));v.displayName="FullMoon";let x=(0,r.forwardRef)((e,t)=>{let{title:l,titleId:r,desc:n,descId:i,...o}=e;return(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:t,"aria-labelledby":r,"aria-describedby":i,...o,children:[n?(0,a.jsx)("desc",{id:i,children:n}):null,void 0===l?(0,a.jsx)("title",{id:r,children:"Waning Gibbous"}):l?(0,a.jsx)("title",{id:r,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"})]})}),f=r.forwardRef((e,t)=>(0,a.jsx)(n.h,{ref:t,icon:x,...e}));f.displayName="WaningGibbous";let g=(0,r.forwardRef)((e,t)=>{let{title:l,titleId:r,desc:n,descId:i,...o}=e;return(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:t,"aria-labelledby":r,"aria-describedby":i,...o,children:[n?(0,a.jsx)("desc",{id:i,children:n}):null,void 0===l?(0,a.jsx)("title",{id:r,children:"Last Quarter"}):l?(0,a.jsx)("title",{id:r,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=r.forwardRef((e,t)=>(0,a.jsx)(n.h,{ref:t,icon:g,...e}));y.displayName="LastQuarter";let b=(0,r.forwardRef)((e,t)=>{let{title:l,titleId:r,desc:n,descId:i,...o}=e;return(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:t,"aria-labelledby":r,"aria-describedby":i,...o,children:[n?(0,a.jsx)("desc",{id:i,children:n}):null,void 0===l?(0,a.jsx)("title",{id:r,children:"Waning Crescent"}):l?(0,a.jsx)("title",{id:r,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=r.forwardRef((e,t)=>(0,a.jsx)(n.h,{ref:t,icon:b,...e}));w.displayName="WaningCrescent";var j=l(73923);let N={[j.MoonPhaseCode.NEW]:o,[j.MoonPhaseCode.WAXING_CRESCENT]:d,[j.MoonPhaseCode.FIRST_QUARTER]:u,[j.MoonPhaseCode.WAXING_GIBBOUS]:h,[j.MoonPhaseCode.FULL]:v,[j.MoonPhaseCode.WANING_GIBBOUS]:f,[j.MoonPhaseCode.LAST_QUARTER]:y,[j.MoonPhaseCode.WANING_CRESCENT]:w},C=e=>{var t;let{moonPhaseCode:l,...r}=e,n=null!=(t=l&&N[l])?t:o;return(0,a.jsx)(n,{...r})}},43581:(e,t,l)=>{"use strict";l.r(t),l.d(t,{DynamicMapBlock:()=>O,default:()=>U});var a=l(76792),r=l(46593),n=l(44685),i=l(55198),o=l(61e3),s=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),f=l(77962);let g={width:568,height:320},y={sm:g,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);let j=e=>e=12?3:(console.error("Default to 0. Could not get precision for level of detail",e),0),N=(e,t)=>{let l=j(t);return Number(e.toFixed(l))},C=(e,t)=>{let l=j(t),[a,r]=e.split(".");if(void 0===r)return l>0?"".concat(a,".").concat("".padEnd(l,"0")):a;if(0===l)return a;let n=r.slice(0,l).split(""),i=parseInt(n[n.length-1],10);return i>0&&i{var i,o,s,d;let c;return"fts"===e&&0===l||"ts"===e&&l===t.ts.length-1?n:("fts"===e&&(c=(null!=(s=null==(i=t.fts)?void 0:i[l])?s:0)*1e3),"ts"===e&&(c=(null!=(d=null==(o=t.ts)?void 0:o[l])?d:0)*1e3),(0,w.P)({date:c,locale:a,timeZone:r,minutes:!0}))};var A=l(40358);let S={revalidateOnFocus:!1,dedupingInterval:6e4},M=function(e,t){let l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"sm",a=(0,c.c3)("DynamicMap"),r=(0,u.md)(v.Yt),n=((0,p.xP)(r)||p.AF).code,i=(0,f.A)(),{ianaTimeZone:o,countryCode:w,geocode:j}=e||{},{data:N,isLoading:M,error:_}=(0,d.Ay)(j?["get-wwir-forecaset",j,n,t]:null,e=>{let[t,l,a,r]=e;return(0,m.U)({geocode:l,units:a,language:r})},S),{data:I,isLoading:R,error:k}=(0,d.Ay)(j?"get-dynamic-maps-tile-series":null,()=>(0,h.M)(),S),P=null==N?void 0:N.forecast,L=(0,s.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:E,isLoading:D}=(0,A.r)({geoCode:(null==e?void 0:e.geocode)||null,insightType:x.InsightType.PRECIP_INSIGHT,locale:t,par:"twc",cscCountryCode:i}),F=(null==E?void 0:E.length)?6:9,z=a("now"),V=(0,s.useMemo)(()=>j?((e,t,l)=>{if(!e)return[];let{mapImageSize:a,geocode:r,lod:n,locale:i,timeZone:o,countryCode:s,samsungMA:d,nowText:c}=l,u=t.product,{width:m,height:h}=y[a]||g,[p="",v=""]=r.split(",")||[],x=C(p,n),f=C(v,n),b=((e,t)=>{var l,a;let{layer:r,frameRatio:n,frames:i}=t,o=e[r],s=(null==(a=o.series)||null==(l=a[0])?void 0:l.fts)||null,d=o.series||[];if(s){let e=s.slice().reverse(),t=i>1?e.slice(0,2*i):e.slice(0,1);return n&&(t=((e,t)=>{let l=[];for(let a=0;a(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 800 180",className:"w-18.75 opacity-75 drop-shadow-[0_0_2px_black]",children:[(0,a.jsx)("title",{children:"Mapbox Logo"}),(0,a.jsx)("path",{d:"M594.6 49.8c-9.9 0-19.4 4.1-26.3 11.3V23c0-1.2-1-2.2-2.2-2.2h-13.4c-1.2 0-2.2 1-2.2 2.2v103c0 1.2 1 2.2 2.2 2.2h13.4c1.2 0 2.2-1 2.2-2.2v-7.1c6.9 7.2 16.3 11.3 26.3 11.3 20.9 0 37.8-18 37.8-40.2s-16.9-40.2-37.8-40.2zm-3.1 64.3c-12.7 0-23-10.6-23.1-23.8v-.6c.2-13.2 10.4-23.8 23.1-23.8 12.8 0 23.1 10.8 23.1 24.1s-10.4 24.1-23.1 24.1zM681.7 49.8c-22.6 0-40.9 18-40.9 40.2s18.3 40.2 40.9 40.2c22.6 0 40.9-18 40.9-40.2s-18.3-40.2-40.9-40.2zm-.1 64.3c-12.8 0-23.1-10.8-23.1-24.1s10.4-24.1 23.1-24.1 23.1 10.8 23.1 24.1-10.4 24.1-23.1 24.1zM431.6 51.8h-13.4c-1.2 0-2.2 1-2.2 2.2v7.1c-6.9-7.2-16.3-11.3-26.3-11.3-20.9 0-37.8 18-37.8 40.2s16.9 40.2 37.8 40.2c9.9 0 19.4-4.1 26.3-11.3v7.1c0 1.2 1 2.2 2.2 2.2h13.4c1.2 0 2.2-1 2.2-2.2V54c0-1.2-1-2.2-2.2-2.2zm-38.8 62.3c-12.8 0-23.1-10.8-23.1-24.1s10.4-24.1 23.1-24.1c12.7 0 23 10.6 23.1 23.8v.6c-.1 13.2-10.4 23.8-23.1 23.8zM498.5 49.8c-9.9 0-19.4 4.1-26.3 11.3V54c0-1.2-1-2.2-2.2-2.2h-13.4c-1.2 0-2.2 1-2.2 2.2v103c0 1.2 1 2.2 2.2 2.2H470c1.2 0 2.2-1 2.2-2.2v-38.1c6.9 7.2 16.3 11.3 26.3 11.3 20.9 0 37.8-18 37.8-40.2s-16.9-40.2-37.8-40.2zm-3.1 64.3c-12.7 0-23-10.6-23.1-23.8v-.6c.2-13.2 10.4-23.8 23.1-23.8 12.8 0 23.1 10.8 23.1 24.1s-10.3 24.1-23.1 24.1zM311.8 49.8c-10 .1-19.1 5.9-23.4 15-4.9-9.3-14.7-15.1-25.2-15-8.2 0-15.9 4-20.7 10.6V54c0-1.2-1-2.2-2.2-2.2h-13.4c-1.2 0-2.2 1-2.2 2.2v72c0 1.2 1 2.2 2.2 2.2h13.4c1.2 0 2.2-1 2.2-2.2V82.9c.5-9.6 7.2-17.3 15.4-17.3 8.5 0 15.6 7.1 15.6 16.4v44c0 1.2 1 2.2 2.2 2.2h13.5c1.2 0 2.2-1 2.2-2.2l-.1-44.8c1.2-8.8 7.5-15.6 15.2-15.6 8.5 0 15.6 7.1 15.6 16.4v44c0 1.2 1 2.2 2.2 2.2h13.5c1.2 0 2.2-1 2.2-2.2l-.1-49.5c0-14.8-12.6-26.7-28.1-26.7zM794.7 125.1l-23.2-35.3 23-35c.6-.9.3-2.2-.6-2.8-.3-.2-.7-.3-1.1-.3h-15.5c-1.2 0-2.3.6-2.9 1.6L760.9 76l-13.5-22.6c-.6-1-1.7-1.6-2.9-1.6H729c-1.1 0-2 .9-2 2 0 .4.1.8.3 1.1l23 35-23.2 35.3c-.6.9-.3 2.2.6 2.8.3.2.7.3 1.1.3h15.5c1.2 0 2.3-.6 2.9-1.6l13.8-23 13.8 23c.6 1 1.7 1.6 2.9 1.6H793c1.1 0 2-.9 2-2 0-.4-.1-.8-.3-1.2z"}),(0,a.jsxs)("g",{children:[(0,a.jsx)("path",{d:"M93.9 1.1C44.8 1.1 5 40.9 5 90s39.8 88.9 88.9 88.9 88.9-39.8 88.9-88.9c0-49.1-39.8-88.9-88.9-88.9zm42.2 110.7c-30.4 30.4-84.7 20.7-84.7 20.7s-9.8-54.2 20.7-84.7C89 30.9 117 31.6 134.7 49.2s18.3 45.7 1.4 62.6z"}),(0,a.jsx)("path",{d:"M104.1 53.2l-8.7 17.9-17.9 8.7 17.9 8.7 8.7 17.9 8.7-17.9 17.9-8.7-17.9-8.7z"})]})]}),D=(0,s.memo)(e=>{let{position:t="bottom-right",color:l="blue",className:r="",linksClassName:n="",stack:i=!1}=e,[o,d]=(0,s.useState)(!1);return(0,a.jsxs)("div",{className:(0,_.cn)("absolute flex items-start gap-1",P[t],r),children:[(0,a.jsx)("div",{className:"flex items-center","data-testid":"MapboxAttribution",children:(0,a.jsx)("button",{type:"button",className:(0,_.cn)("cursor-pointer p-0",L[l]),onClick:()=>{d(e=>!e)},"aria-label":"Map Attribution","data-testid":"MapboxLinks",children:(0,a.jsx)(E,{})})},"logo"),(0,a.jsxs)("div",{className:(0,_.cn)("flex-wrap rounded bg-white/75 p-1.5 text-xs shadow-md",o?"flex":"hidden",i?"flex-col space-y-1":"flex-row items-center space-x-2",n),children:[(0,a.jsx)("a",{target:"_blank",rel:"noopener noreferrer",href:"https://mapbox.com/about/maps",className:"text-blue-600 hover:underline",children:"\xa9 ".concat(new Date().getFullYear()," Mapbox")}),(0,a.jsx)("a",{target:"_blank",rel:"noopener noreferrer",href:"https://www.openstreetmap.org/about",className:"text-blue-600 hover:underline",children:"\xa9 OpenStreetMap"}),!i&&(0,a.jsx)("span",{className:"text-gray-400",children:"|"}),(0,a.jsx)("a",{target:"_blank",rel:"noopener noreferrer",href:"https://www.mapbox.com/map-feedback/",className:"text-blue-600 hover:underline",children:"Improve this map"})]},"links")]})}),F=e=>{let{geocode:t,lod:l}=e,r=(0,s.useMemo)(()=>{if(!(t&&l))return;let e=function(e,t){let[l="",a=""]=e.split(",")||[],r=parseFloat(l),n=parseFloat(a),i=N(r,t),o=N(n,t),s=r-i;return{dx:Math.abs(111.11*Math.cos((r-s/2)*Math.PI/180)*(n-o))/320*100,dy:Math.abs(111.11*s)/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 r?(0,a.jsx)("div",{className:"absolute h-[20px] w-[20px] rounded-full border-2 border-white bg-[#1944DE] opacity-95","data-testid":"LocationPin",style:r}):null},z=e=>{let{mapImages:t,frame:l}=e,r="absolute h-full w-full rounded-lg bg-[#9fcbf9]";return t.length?t.map((e,t)=>(0,a.jsx)("div",{className:"".concat(r," bg-cover bg-center opacity-0 ").concat(l===t?"!opacity-100":""),style:{backgroundImage:"url(".concat(e.url,")")}},e.id)):(0,a.jsx)("div",{className:r})},V=(0,l(30505).F)("inline-block rounded-full border-solid animate-spin box-border",{variants:{size:{sm:"w-4 h-4 border-[2px]",md:"w-6 h-6 border-[2px]",lg:"w-8 h-8 border-[3px]"},variant:{white:"border-white border-b-transparent",primary:"border-brand-400 border-b-transparent",black:"border-[#252422] border-b-transparent"}},defaultVariants:{size:"sm",variant:"black"}}),B=e=>{let{className:t,size:l,variant:r,label:n}=e;return(0,a.jsx)("div",{className:(0,_.cn)(V({size:l,variant:r}),t),"aria-label":n})},W=e=>{let{mapImages:t,geocode:l,lod:r=7,wwir:n,ctaLink:i,isLoading:o,enableAnimation:d=!0,enableLocationPin:u=!0,enableWWIRPhrase:m=!0,showMapBoxAttribution:h=!0,title:p,animationTiming:v=500}=e,[x,f]=(0,s.useState)(0),g=(0,c.c3)("DynamicMap"),{frames:y}=n.product,b=(0,s.useMemo)(()=>t.length{let e;if(!(d&&b.length>1))return void f(0);let t=setTimeout(()=>{e=setInterval(()=>{f(e=>(e+1)%b.length)},v)},1500);return()=>{clearTimeout(t),clearInterval(e)}},[b.length,d,v]);let j=n.product.attributionColor,N=i?R.default:"div";return(0,a.jsx)(I.Zp,{className:"@container/dynamicMap border-0","aria-label":"".concat(p||g("radar")," - ").concat(n.phrase),"data-testid":"DynamicMap",children:(0,a.jsxs)(N,{href:i||"",className:"relative block h-80 @md/dynamicMap:h-100",children:[(0,a.jsx)(z,{mapImages:b,frame:x}),u&&t.length>0&&(0,a.jsx)(F,{geocode:l,lod:r}),o&&(0,a.jsx)(B,{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)(D,{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&&n.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:n.phrase})]})]})})},H=e=>{var t;let{location:l,initializing:r,initialError:n,enableLocationPin:s,enableWWIRPhrase:d,enableAnimation:c,mapImageSize:u,showMapBoxAttribution:m,title:h}=e,p=null==(t=(0,i.useParams)())?void 0:t.locale,{effectiveLocation:v,isLocationLoading:x}=(0,o.s)({location:l}),{loadingData:f,error:g,wwir:y,geocode:b,lod:w,ctaUrl:j,mapImages:N,ctaText:C,isDashboard:T}=M(v,p,null!=u?u:"sm");return n||g?null:(0,a.jsx)(W,{isLoading:r||x||f,enableLocationPin:null!=s?s: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})},O=e=>{let{enableLocationPin:t,enableWWIRPhrase:l,enableAnimation:i,locationEntry:o,locationProvider:s,mapImageSize:d,showMapBoxAttribution:c,title:u}=e,m="specified"===s,{specifiedLocationData:h,specifiedLocationError:p,isSpecifiedLocationLoading:v}=(0,r.v)(o),x=m&&h&&o?(0,n.I)(h):void 0;return(0,a.jsx)(H,{location:x,initializing:m&&v,initialError:m?p:void 0,enableLocationPin:t,enableWWIRPhrase:l,enableAnimation:i,mapImageSize:d,showMapBoxAttribution:c,title:u})},U=O},43635:(e,t,l)=>{"use strict";l.r(t),l.d(t,{AdBlock:()=>v,default:()=>f});var a=l(76792),r=l(42292),n=l(58010),i=l(48260),o=l(74130),s=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,s.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:s=null,titleAlignment:d="right",height:c="120px",className:h="",sticky:v=!1}=e,[x,f]=(0,r.useState)({loaded:!1,height:c,displayAd:!1}),g=(0,r.useRef)(null),y=(0,r.useRef)(!1),b=(0,r.useRef)({resize:null,adFrameMutation:null,adCreativeMutation:null}),w=(0,r.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 r=m[e];return r||(r="banner"===t?{radius:"lg",overflow:"hidden",bg:"white",shadow:"md",margin:"bottomMd"}:{bg:"white",radius:"md",overflow:"hidden",padding:"standard"}),"WX_Top300Variable"===e&&a&&(r={...r,layout:"stickyTopRight"}),u(r)})(t,l,x.displayAd,v),[t,l,x.displayAd,v]),j=(0,r.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,r.useCallback)(e=>{for(let t of e){let e=t.contentRect.height;e>0&&f(t=>({...t,height:"".concat(e+10,"px"),loaded:!0}))}},[]),C=(0,r.useCallback)(e=>{let t=e.some(e=>"childList"===e.type&&e.addedNodes.length>0);f(e=>({...e,displayAd:t}))},[]),T=(0,r.useCallback)(e=>{let t=g.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,r;null==(l=b.current.resize)||l.observe(t),null==(a=b.current.adCreativeMutation)||a.observe(t,{childList:!0,subtree:!0}),f(e=>({...e,loaded:!0})),null==(r=b.current.adFrameMutation)||r.disconnect()}},[]);return(0,r.useEffect)(()=>{f({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=g.current;return a&&l.observe(a,{childList:!0,subtree:!0}),()=>{e.disconnect(),l.disconnect(),t.disconnect()}},[C,t,c,N,T]),(0,r.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,r=window.__HeliosConfig.slotsConfig[a];if(r){let t="".concat(r.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)(n.DebugCollector,{componentName:"AdBlock",data:{props:{adId:t,variant:l,title:s,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,i.cn)(w,h),children:[s&&x.loaded&&(0,a.jsx)("div",{className:"text-xxs w-full px-4 py-0.75 text-gray-400 text-".concat(d),children:s}),"WX_PromoDriver1"===t&&!s&&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:g})]}),"WX_PromoDriver1"===t&&(!x.loaded||!x.displayAd)&&(0,a.jsx)(o.default,{title:"Stay Safe",ctaStyle:"featured",linkUrl:"/",backgroundColor:"white",media:"https://s-dev.w-x.co/wxnext/img/Screenshot2025-04-17at44929PMpng"})]})},f=v},43716:(e,t)=>{"use strict";var l,a,r,n;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"}(r||(t.AirQualityCategory=r={})),function(e){e.CO="CO",e.NO2="NO2",e.O3="O3",e.PM10="PM10",e.PM2_5="PM2.5",e.SO2="SO2"}(n||(t.PollutantType=n={}))},43834:(e,t,l)=>{"use strict";l.r(t),l.d(t,{PromoDriverBlock:()=>o,default:()=>s});var a=l(76792);l(42292);var r=l(57965),n=l(9198),i=l(98066);let o=e=>{let{title:t,image:l,subtitle:o,bodyText:s,ctaButton:d}=e,c=(null==d?void 0:d.url)&&/^https?:\/\//i.test(d.url),u=(0,i.bt)(l)?l:null;return t||u&&(null==u?void 0:u.url)||o||s||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)(r.default,{src:u.url,alt:t||"Promo image",fill:!0,className:"object-cover"})})})}):null,(o||s||d)&&(0,a.jsxs)("div",{className:"p-4",children:[o&&(0,a.jsx)("a",{href:d&&d.url||"#",children:(0,a.jsx)("h4",{className:"mb-2 text-base font-bold",children:o})}),s&&(0,a.jsx)("a",{href:d&&d.url||"#",children:(0,a.jsx)("p",{className:"mb-4 text-base",children:s})}),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)(n.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},s=o},44685:(e,t,l)=>{"use strict";l.d(t,{I:()=>n});var a=l(63255),r=l(67810);function n(e){return{displayName:e.location.displayName,adminDistrict:e.location.adminDistrict,geocode:(0,a.S)("".concat(e.location.latitude,",").concat(e.location.longitude)),placeId:e.location.placeId,city:e.location.city,countryCode:e.location.countryCode,adminDistrictCode:e.location.adminDistrictCode||"",presentationName:(0,r.LM)(e.location),ianaTimeZone:e.location.ianaTimeZone}}},44936:(e,t,l)=>{"use strict";l.d(t,{p:()=>i});var a=l(56768),r=l(42292),n=l(40358);let i=(e,t)=>{var l;let{data:i,isLoading:o}=(0,n.r)({geoCode:null!=(l=null==e?void 0:e.geocode)?l:null,insightType:a.InsightType.PRECIP_INSIGHT,locale:t}),s=(0,r.useMemo)(()=>null==i?void 0:i.find(e=>{var t;return(null==e||null==(t=e.supplement)?void 0:t.precipSource)==="wwir"}),[i]);return{loadingInsight:o,insightHeadline:(null==s?void 0:s.insightHeadline[0])||"",insightTextLong:(null==s?void 0:s.insightTextLong[0])||""}}},46593:(e,t,l)=>{"use strict";l.d(t,{v:()=>i});var a=l(44615),r=l(87103),n=l(55198);let i=e=>{let t=(0,n.useParams)(),l=null==t?void 0:t.locale,{data:i,error:o,isLoading:s}=(0,a.Ay)(e?["/v3/location/point",e,l]:null,()=>e?(0,r.PT)(e,l):null,{revalidateOnFocus:!1,dedupingInterval:3e5});return{specifiedLocationData:i,specifiedLocationError:o,isSpecifiedLocationLoading:s}}},46670:(e,t,l)=>{"use strict";l.d(t,{S:()=>d});var a=l(76792);l(42292);var r=l(48260),n=l(31607),i=l(3916),o=l(71666);let s=e=>{let{pressureTendencyCode:t,iconClassName:l}=e;return 1===t?(0,a.jsx)(n.D,{"data-testid":"PressureRisingIcon",className:(0,r.cn)("mr-1 inline-block h-4 w-4",l),"aria-label":"Pressure rising"}):2===t?(0,a.jsx)(i.y,{"data-testid":"PressureFallingIcon",className:(0,r.cn)("mr-1 inline-block h-4 w-4",l),"aria-label":"Pressure falling"}):null},d=e=>{let{className:t,unitsClassName:l,pressureAltimeter:n,pressureMeanSeaLevel:i,pressureTendencyCode:d,units:c,iconClassName:u}=e,m=c?(0,o.Bu)(c):null,h=null==m?void 0:m.pressure,p=(()=>{let e=n&&n>0||i&&i>0?n||i:null;return e?"e"===c?e.toFixed(2):e.toFixed(1):null})();return(0,a.jsx)("span",{"data-testid":"PressureValue",className:(0,r.cn)("inline-flex items-center",t),children:p?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(s,{pressureTendencyCode:d,iconClassName:u}),(0,a.jsx)("span",{children:p}),"\xa0",(0,a.jsx)("span",{className:(0,r.cn)(l),children:h})]}):"--"})}},46828:(e,t,l)=>{"use strict";l.d(t,{A:()=>g});var a=l(76792);l(42292);var r=l(93146),n=l(63481),i=l(29963),o=l(79770),s=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:r,cTimeZone:n}=(0,h.r)({date:t,locale:l,timeZone:a});return new Intl.DateTimeFormat(l,{weekday:"long",timeZone:n}).format(r)};var v=l(47421),x=l(68751),f=l(9946);let g=e=>{let{location:t,className:l,headlineClassName:h,showSubheadline:g=!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,s.Ay)((null==t?void 0:t.geocode)?["alerts",t.geocode]:null,e=>{let[t,l]=e;return(0,r.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,n.F)({productIdentifier:e,phenomena:t,significance:l}),r=(0,i.t)({productIdentifier:e||"",phenomena:t,significance:l}),o={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 o[r?"severe":a]||o[4]})():null,S=T?(0,n.F)({productIdentifier:T.productIdentifier,phenomena:T.phenomena,significance:T.significance}):null,M=T?(0,i.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,f.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)(o.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})]}),g&&(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:r}=e,n=p({date:t,locale:a,timeZone:r}),i=p({date:l,locale:a,timeZone:r});return(0,m.P)({date:l,locale:a,weekday:n!==i&&"short"||void 0,timeZone:r,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===S||M?{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 r=(0,a.h)("AdUtils"),n=async e=>{let{player:t,user:l,ctx:a={},isMobile:r=!1}=e;if(!t)return;if(null==l?void 0:l.isUserPremium)return void t.play();let n=await i(a,r);n?t.playAd(n):t.play()},i=async function(e){let t,l=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!c())return null;let a=s(e,l),n=o({},e.iab);window.__Helios.emit("UPDATE_AD_UNIT_PATH",a);try{var i,u,m;null==(m=window.__Helios.modules)||null==(u=m.iabc)||null==(i=u.update)||i.call(u,{page:n,site:{v1:["IAB15-10_Weather"],v3:["390_Weather"]}})}catch(e){r.error("Error updating IABC parameters",e)}try{t=await d()}catch(e){t=null,r.error("Error getting ad tag",e)}return window.__Helios.emit("UPDATE_AD_UNIT_PATH",a),t},o=(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]=o(l[e]||{},t[e]):l[e]=t[e];return l},s=(e,t)=>{var l,a,r,n,i,o;let s=null==(a=window)||null==(l=a.__HeliosConfig)?void 0:l.generalConfig,d=null!=(i=null==s||null==(r=s.targeting)?void 0:r.networkCode)?i:"/7646",c=null!=(o=null==s||null==(n=s.targeting)?void 0:n.adUnits)?o: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){r.error("Error getting video bids",e)}return await window.__Helios.modules.videoTag.createAdTag(e)},c=()=>{try{var e,t,l,a,r;return"function"==typeof(null==(t=window.__Helios)||null==(e=t.video)?void 0:e.requestVideoBids)&&"function"==typeof(null==(r=window.__Helios)||null==(a=r.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,r;null==(r=window)||null==(a=r.NREUM)||null==(l=a.addPageAction)||l.call(a,e,{...f(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 f=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]}))},g=(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:r,user:i,isMobile:o}=e;if(!(null==r?void 0:r.current))return;let s=a.getPlaylistItem(),d=null==s||null==(t=s.custom)?void 0:t.ctx;d&&(d.videoIndex=a.getPlaylistIndex()),x("videoBeforePlay",{...m(d),isViewable:!!l.viewable,playReason:l.playReason}),a.stop(),await n({player:a,user:i,ctx:d,isMobile:o}),r.current=!1}},{eventName:"adRequest",callback:e=>{var t;let{event:l,player:a}=e,r=a.getPlaylistItem(),n=null==r||null==(t=r.custom)?void 0:t.ctx,i={},o=m(n);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)&&(i["".concat("kv_").concat(e)]="".concat(a[e]))}catch(e){g.error("Error parsing cust_params",e)}x("videoAdRequest",{...o,isViewable:!!l.viewable,roll:l.adposition,...i})}},{eventName:"adStarted",callback:e=>{var t,l,a,r,n,i;let{event:o,player:s}=e,d=s.getPlaylistItem(),c=null==d||null==(t=d.custom)?void 0:t.ctx,{duration:u,adposition:p}=o,v=m(c),f="";try{let e=null==(i=o.ima)||null==(n=i.ad)?void 0:n.data;e&&(f=(e=>{let{adSystem:t,adId:l,adWrapperSystems:a,adWrapperIds:r}={adSystem:"",adId:"",adWrapperSystems:[],adWrapperIds:[],...e};if(h(t))return l;let n=a.findIndex(h);return n>=0&&n{var t;let{event:l,player:a}=e,r=a.getPlaylistItem();x("videoStart",{...m(null==r||null==(t=r.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:r,user:i,isMobile:o}=e;if(null==r?void 0:r.current)return;let{item:s}=l,d=null==s||null==(t=s.custom)?void 0:t.ctx;d.videoIndex=a.getPlaylistIndex(),a.stop(),await n({player:a,user:i,ctx:d,isMobile:o})}},{eventName:"adComplete",callback:async e=>{let{player:t}=e;t.play()}},{eventName:"adError",callback:async e=>{var t;let{event:l,player:a}=e,r=a.getPlaylistItem();x("videoAdError",{...m(null==r||null==(t=r.custom)?void 0:t.ctx),message:l.message,code:l.code,vastCode:l.vastCode,roll:l.adposition}),g.error("Ad error occurred",l),a.play()}},{eventName:"error",callback:async e=>{var t;let{event:l,player:a}=e,r=a.getPlaylistItem();x("videoError",{...m(null==r||null==(t=r.custom)?void 0:t.ctx),message:l.message,code:l.code}),g.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:r,insightType:n=a.InsightType.ALL,units:i,language:o,par:s,cscCountryCode:d}=e,c={format:"json",units:i,language:o,apiKey:"71f92ea9dd2f4790b92ea9dd2f779061",insightType:n,par:s,cscCountryCode:d};return t?c.geocode=t:l?c.placeid=l:r&&(c.postalKey=r),{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:()=>i});var a=l(76792),r=l(48260),n=l(47421);let i=e=>{let t,{uvIndex:l,uvDescription:i,className:o,descriptionClassName:s}=e,d=(0,n.c3)("DetailsTable");return t=!Number.isFinite(l)||l10?d("extreme"):i?l:t=d("uvIndexVal",{val:l,maxVal:11}),(0,a.jsxs)("span",{"data-testid":"UVIndexValue",className:(0,r.cn)(o),children:[t,i&&l{"use strict";l.d(t,{A:()=>m});var a=l(76792),r=l(42292);let n={src:"/_next/static/media/SlideshowIcon.2da11b0d.png"};var i=l(22627),o=l(68751),s=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:r,currentSlideIndex:u,totalAssets:m,previous:h,next:p,sendTrackString:v,rounded:x=!1}=e;if(!r.length||u=r.length)return null;let f=r[u],g="".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)(i.A,{className:"absolute top-0 left-0 h-full w-full object-cover",src:f.url||"",alt:(null==(t=f.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)(i.A,{src:n.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)(o.EY,{variant:"Body.S",color:"primary",children:g})}),(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)(s.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")})})})})]})}),f.filename&&!c(f.filename)&&(0,a.jsx)(o.EY,{variant:"Title.S",color:"primary",elementType:"h3",className:"mt-0 mb-1",children:f.filename}),f.caption&&(0,a.jsx)(o.EY,{variant:"Body.S",color:"primary",className:"py-1 pb-0 ".concat(f.filename&&!c(f.filename)?"":"mt-0 pt-0"),children:f.caption}),(0,a.jsx)("div",{className:"border-b border-gray-200 py-2"})]})})]})},m=e=>{let{id:t,assets:l=[],allSlides:n=[],totalAssets:i=n.length||0,loadNextSlideshowPage:o,sendTrackString:s=()=>{},rounded:d=!1}=e,c=(0,r.useId)(),m=t||"slideshow-".concat(c),h=n.length>0,[p,v]=(0,r.useState)(0),[x,f]=(0,r.useState)(1),[g,y]=(0,r.useState)(1),[b,w]=(0,r.useState)(h?n.slice(0,20):l),j=(0,r.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),f(e)}},[p]),C=(0,r.useCallback)(()=>{if(p+1=g){let e=20*x;if(e-3

l.length&&x>=g){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,r.useEffect)(()=>(document.body.addEventListener("keydown",T),()=>{document.body.removeEventListener("keydown",T)}),[T]),(0,r.useEffect)(()=>{h&&0===b.length&&w(n.slice(0,20))},[h,n,b.length]),(0,a.jsx)(u,{id:m,assets:h?b:l,currentSlideIndex:p,totalAssets:i,previous:N,next:C,sendTrackString:s,rounded:d})}},49694:(e,t,l)=>{"use strict";l.d(t,{S:()=>o});var a=l(76792),r=l(42292),n=l(23233);let i=(0,r.forwardRef)((e,t)=>{let{title:l,titleId:r,desc:n,descId:i,...o}=e;return(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:t,"aria-labelledby":r,"aria-describedby":i,...o,children:[n?(0,a.jsx)("desc",{id:i,children:n}):null,void 0===l?(0,a.jsx)("title",{id:r,children:"pressure"}):l?(0,a.jsx)("title",{id:r,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"})]})}),o=r.forwardRef((e,t)=>(0,a.jsx)(n.h,{ref:t,icon:i,...e}));o.displayName="Pressure"},50772:(e,t,l)=>{"use strict";l.d(t,{r:()=>i});var a=l(42292),r=l(55680),n=l(1843);let i=e=>{let t=(0,a.useRef)(null),[l,i]=(0,a.useState)(n.A?e(window.innerWidth,window.innerHeight):null),o=(0,a.useRef)(!1),s=(0,r.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:r}=t.contentRect,n=e+l,d=a+r,c=s.current(n,d);o.current=!0,i(c)}});return l.observe(e),()=>{l.disconnect()}},[t,s]),[l,t,o.current]}},51254:(e,t,l)=>{"use strict";l.d(t,{Y:()=>o});var a=l(76792),r=l(42292),n=l(23233);let i=(0,r.forwardRef)((e,t)=>{let{title:l,titleId:r,desc:n,descId:i,...o}=e;return(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:t,"aria-labelledby":r,"aria-describedby":i,...o,children:[n?(0,a.jsx)("desc",{id:i,children:n}):null,void 0===l?(0,a.jsx)("title",{id:r,children:"Rain Drop"}):l?(0,a.jsx)("title",{id:r,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"})]})]})}),o=r.forwardRef((e,t)=>(0,a.jsx)(n.h,{ref:t,icon:i,...e}));o.displayName="RainDrop"},53976:(e,t,l)=>{"use strict";l.d(t,{S:()=>y});var a=l(76792),r=l(22627),n=l(42292),i=l(23233);let o=(0,n.forwardRef)((e,t)=>{let{title:l,titleId:r,desc:n,descId:i,...o}=e;return(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:t,"aria-labelledby":r,"aria-describedby":i,...o,children:[n?(0,a.jsx)("desc",{id:i,children:n}):null,void 0===l?(0,a.jsx)("title",{id:r,children:"Play"}):l?(0,a.jsx)("title",{id:r,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"})]})]})}),s=n.forwardRef((e,t)=>(0,a.jsx)(i.h,{ref:t,icon:o,...e}));s.displayName="PlayOutline";let d=(0,n.forwardRef)((e,t)=>{let{title:l,titleId:r,desc:n,descId:i,...o}=e;return(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:t,"aria-labelledby":r,"aria-describedby":i,...o,children:[n?(0,a.jsx)("desc",{id:i,children:n}):null,void 0===l?(0,a.jsx)("title",{id:r,children:"Video Player"}):l?(0,a.jsx)("title",{id:r,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=n.forwardRef((e,t)=>(0,a.jsx)(i.h,{ref:t,icon:d,...e}));c.displayName="VideoPlayer";let u=(0,n.forwardRef)((e,t)=>{let{title:l,titleId:r,desc:n,descId:i,...o}=e;return(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:t,"aria-labelledby":r,"aria-describedby":i,...o,children:[n?(0,a.jsx)("desc",{id:i,children:n}):null,void 0===l?(0,a.jsx)("title",{id:r,children:"Book"}):l?(0,a.jsx)("title",{id:r,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=n.forwardRef((e,t)=>(0,a.jsx)(i.h,{ref:t,icon:u,...e}));m.displayName="Book";var h=l(9198),p=l(48260),v=l(68751),x=l(54086);let f={video:s,article:m},g={col:"flex-col",row:"flex-row","col-reverse":"flex-col-reverse","row-reverse":"flex-row-reverse"},y=e=>{let{heading:t,description:l,content:n,href:i,target:o,imageUrl:s,altText:d,onClick:u,className:m,imageWrapClassName:y,imageClassName:b,contentClassName:w,badge:j,icon:N="video",showIcon:C,iconClassName:T,overlayClassName:A,dir:S="row",isFetchPriority:M,noPadding:_=!1,duration:I,badgeStyle:R=!1,bodyText:k,imageWidth:P,aspectRatio:L="square",partnerLogoThumbnailUrl:E,partnerLogoWhite:D=!1,partnerLogoPosition:F="default"}=e,z=f[N],V=!!(t||l||n),B=(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)]",L&&"auto"!==L?"square"===L?"aspect-square":"video"===L?"aspect-video":"aspect-[".concat(L,"]"):"",P||"w-full",y),children:[(0,a.jsx)(r.A,{fetchPriority:M?"high":void 0,src:s,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&&z&&(0,a.jsx)(z,{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}),E&&(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)(r.A,{src:E,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"})})})]})]}),V&&(0,a.jsx)("div",{className:(0,p.cn)(w,"row"===S&&"max-h-40"),children:n||(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"===S&&!I&&"line-clamp-7 sm:line-clamp-6","row"===S&&I&&"line-clamp-5 sm:line-clamp-4","row"===S&&"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)})]})]})})]}),W=(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",g[S],m);return!u&&i?(0,a.jsx)(h.default,{className:W,href:i,target:o,children:B}):(0,a.jsx)("div",{className:W,onClick:u,children:B})}},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:()=>r,w:()=>n});var a=l(37811);let r=e=>{var t,l,r,n;let i,o=null==(t=null!=(l=a.env.VERCEL_TARGET_ENV)?l:"production")?void 0:t.toLowerCase();a.env.VERCEL_TARGET_ENV,"preview"!==o&&a.env.VERCEL_TARGET_ENV_URL;let s=null!=(r=a.env.VERCEL_URL)?r:"wx-next-hh8id2ayf.vercel.weather.com",d=null!=(n=a.env.VERCEL_TARGET_ENV_URL)?n:"weather.com",c="true"===a.env.NEXT_DEV_SERVER_INSECURE||"true"===a.env.NEXT_PUBLIC_NEXT_DEV_SERVER_INSECURE;switch(o){case"preview":i="https://".concat(s);break;case"development":i=c?"http://".concat(d):"https://".concat(d);break;default:i="https://".concat(d)}return e?new URL(e,i).toString():i},n=e=>{var t,l;a.env.VERCEL_TARGET_ENV_PRODUCTION_URL;let r=null!=(t=a.env.VERCEL_TARGET_ENV_PRODUCTION_URL)?t:"weather.com",n=null!=(l=a.env.VERCEL_PROJECT_PRODUCTION_URL)?l:"wxnext.weather.com",i="https://".concat(null!=r?r:n);return e?new URL(e,i).toString():i}},56157:(e,t,l)=>{"use strict";l.d(t,{$:()=>o});var a=l(76792),r=l(42292),n=l(23233);let i=(0,r.forwardRef)((e,t)=>{let{title:l,titleId:r,desc:n,descId:i,...o}=e;return(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:t,"aria-labelledby":r,"aria-describedby":i,...o,children:[n?(0,a.jsx)("desc",{id:i,children:n}):null,void 0===l?(0,a.jsx)("title",{id:r,children:"Dew Point"}):l?(0,a.jsx)("title",{id:r,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"})})]})}),o=r.forwardRef((e,t)=>(0,a.jsx)(n.h,{ref:t,icon:i,...e}));o.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.d(t,{Z:()=>o});var a=l(76792),r=l(42292),n=l(23233);let i=(0,r.forwardRef)((e,t)=>{let{title:l,titleId:r,desc:n,descId:i,...o}=e;return(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:t,"aria-labelledby":r,"aria-describedby":i,...o,children:[n?(0,a.jsx)("desc",{id:i,children:n}):null,void 0===l?(0,a.jsx)("title",{id:r,children:"Wind"}):l?(0,a.jsx)("title",{id:r,children:l}):null,(0,a.jsx)("path",{fill:"currentColor",fillRule:"evenodd",d:"M8.333 4.626C8.575 3.757 9.41 3 10.648 3c1.497 0 2.39 1.095 2.39 2.165 0 1.069-.893 2.164-2.39 2.164H4.389c-.256 0-.463-.188-.463-.42s.207-.42.463-.42h6.259c.91 0 1.463-.649 1.463-1.324 0-.676-.552-1.325-1.463-1.325-.764 0-1.265.45-1.416.991-.063.225-.315.361-.563.304s-.398-.285-.336-.51M2 9.09c0-.232.207-.42.463-.42h9.148C13.107 8.67 14 9.766 14 10.835S13.107 13 11.61 13c-1.334 0-2.211-.882-2.364-1.694-.043-.228.127-.445.379-.484s.491.115.534.343c.082.435.598.996 1.452.996.91 0 1.462-.65 1.462-1.326 0-.675-.552-1.325-1.462-1.325H2.463C2.207 9.51 2 9.322 2 9.09",clipRule:"evenodd"})]})}),o=r.forwardRef((e,t)=>(0,a.jsx)(n.h,{ref:t,icon:i,...e}));o.displayName="Wind"},60645:(e,t,l)=>{"use strict";l.d(t,{D:()=>o});var a=l(76792),r=l(42292),n=l(23233);let i=(0,r.forwardRef)((e,t)=>{let{title:l,titleId:r,desc:n,descId:i,...o}=e;return(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:t,"aria-labelledby":r,"aria-describedby":i,...o,children:[n?(0,a.jsx)("desc",{id:i,children:n}):null,void 0===l?(0,a.jsx)("title",{id:r,children:"Snowflake"}):l?(0,a.jsx)("title",{id:r,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"})]})]})}),o=r.forwardRef((e,t)=>(0,a.jsx)(n.h,{ref:t,icon:i,...e}));o.displayName="Snowflake"},60827:(e,t,l)=>{"use strict";l.r(t),l.d(t,{BlueskyBlock:()=>d,default:()=>c});var a=l(76792),r=l(42292);let n=(0,l(23803).h)("payload:Bluesky:OEmbed");function i(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 o(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};try{let l=i(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),n.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 r=await fetch(a.toString(),{method:"GET",headers:{Accept:"application/json","User-Agent":"wx-next/1.0"}});if(!r.ok)return{error:"api_error",message:"Bluesky API returned ".concat(r.status,": ").concat(r.statusText)};let o=await r.json();if("rich"!==o.type||!o.html)return{error:"invalid_response",message:"Invalid oEmbed response from Bluesky"};return o}catch(e){return{error:"fetch_error",message:e instanceof Error?e.message:"Unknown error occurred"}}}function s(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],l=i(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:n,showThread:i=!1}=e,d=(0,r.useRef)(null),[c,u]=(0,r.useState)(!0),[m,h]=(0,r.useState)(null),p=(0,r.useCallback)(()=>"id"===t&&n?null:"url"===t&&l?l:null,[t,n,l]);return((0,r.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 o(e,{maxWidth:550,showThread:i});"error"in t?(console.warn("Bluesky oEmbed error:",t),d.current.innerHTML=s(e,i)):d.current.innerHTML=t.html}catch(t){console.error("Failed to load Bluesky embed:",t),d.current.innerHTML=s(e,i)}finally{u(!1)}}})()},[p,i]),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:()=>r});var a=l(79315);let r=e=>{var t,l,r,n,i,o,s,d,c;let{date:u,locale:m="en-US",timeZone:h,minutes:p,showTimeZone:v,showShortDayperiod:x,weekday:f}=e;if(!u)return"";let{cDate:g,cTimeZone:y}=(0,a.r)({date:u,locale:m,timeZone:h}),b={hour:"numeric",hour12:!0,timeZone:y};f&&(b.weekday=f),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(g),a=f&&(null==(t=e.find(e=>"weekday"===e.type))?void 0:t.value),o=null==(l=e.find(e=>"hour"===e.type))?void 0:l.value,s=p&&(null==(r=e.find(e=>"minute"===e.type))?void 0:r.value),d=null==(n=e.find(e=>"dayperiod"===e.type.toLowerCase()))?void 0:n.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==(i=e.find(e=>"timeZoneName"===e.type))?void 0:i.value:"",y=f?"".concat(a," "):"";return"".concat(y).concat(o).concat(p?":".concat(s):"").concat(u).concat(h).trim()}if(x){let e=w.formatToParts(g),t=f&&(null==(o=e.find(e=>"weekday"===e.type))?void 0:o.value),l=null==(s=e.find(e=>"hour"===e.type))?void 0:s.value,a=p&&(null==(d=e.find(e=>"minute"===e.type))?void 0:d.value),r=v?null==(c=e.find(e=>"timeZoneName"===e.type))?void 0:c.value:"";return"".concat(f?"".concat(t," "):"").concat(l).concat(p?":".concat(a):""," ").concat(r).trim()}return w.format(g)}},62851:(e,t,l)=>{"use strict";l.r(t),l.d(t,{DailyForecastBlock:()=>W,default:()=>H});var a=l(76792),r=l(44685),n=l(46593),i=l(42292),o=l(47421),s=l(55198),d=l(61e3),c=l(99530);let u=function(e,t){let l=(0,c.Gl)();return l?l.variant(e,t):t};var m=l(27370),h=l(48260),p=l(75302),v=l(32035),x=l(71666),f=l(68751),g=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"],S=e=>{let{data:t,locale:l,validTime:r}=e,n=(0,o.c3)("DailyForecast"),i=(0,p.md)(v.Yt),s=(0,x.xP)(i),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)(f.Ay,{children:[(0,a.jsx)("span",{className:"font-bold",children:r})," | ",n(d?"day":"night")]}),(0,a.jsxs)("div",{className:"flex gap-2",children:[(0,a.jsx)(f.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)(g.Z,{windSpeed:t.windSpeed,windDirectionCardinal:t.windDirectionCardinal,units:s.code,iconClassName:"mr-1",cardinalBeforeSpeed:!0,useWindIcon:!0})]})]}),(0,a.jsx)(f.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 M=l(79315);let _=(e,t,l)=>{var a,r;if(!e)return"";let n=((e,t,l,a)=>{if(!e)return[];let{cDate:r,formatOptions:n}=((e,t,l,a)=>{let{cDate:r,cTimeZone:n}=(0,M.r)({date:e,locale:t,timeZone:l}),i=null!=a?a:{year:"numeric",month:"2-digit",day:"2-digit",weekday:"short"};return i.timeZone=n,{cDate:r,cTimeZone:n,formatOptions:i}})(e,t,l,a);return new Intl.DateTimeFormat(t,n).formatToParts(r)})(e,t,l),i=null==(a=n.find(e=>"day"===e.type))?void 0:a.value,o=null==(r=n.find(e=>"weekday"===e.type))?void 0:r.value;return"".concat(o," ").concat(i)},I=e=>{let{dailyForecast:t,locale:l,timeZone:r,itemIndex:n,isKoreaCscLocation:s,locationDayDate:d}=e,c=(0,p.md)(v.Yt),u=(0,x.xP)(c),m=(0,o.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,r),M=(0,i.useMemo)(()=>s?d===A?m("today"):A:0===n&&(null==C?void 0:C.daypartName)?null==C?void 0:C.daypartName:A,[s,n,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)(f.Ay,{className:"whitespace-nowrap group-data-[state=open]:font-bold @max-xs/dailyItem:text-sm",children:M})}),(0,a.jsx)("div",{className:"openHide basis-[90px]",children:(0,a.jsxs)(f.Ay,{variant:"Body.M",elementType:"span",className:"whitespace-nowrap",children:[(0,a.jsx)(f.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)(f.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)(f.Ay,{elementType:"div",children:(0,a.jsx)(g.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)(S,{data:h,locale:l,validTime:A}),N&&(0,a.jsx)(S,{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 h-4 w-full"})},"daily-forecast-skel-".concat(t)))})};var P=l(69585),L=l(9198);let E=e=>{var t;let{location:l,isLoading:r,error:n,dailyForecasts:s,locale:d,isKoreaCscLocation:c,locationTime:u,canToggleMultipleItems:p,ctaText:v,ctaLink:x,reorderModule:g,simplifiedVersion:y}=e,w=(0,o.c3)("DailyForecast"),j=(null==l?void 0:l.ianaTimeZone)||"America/New_York",N=(0,i.useMemo)(()=>j?_(u,d,j):"",[d,j,u]),C=null==s||null==(t=s[0])?void 0:t.validTimeLocal;return(0,a.jsxs)(P.Zp,{className:(0,h.cn)("not-prose @container/daily",g?"-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:n?(0,a.jsx)("div",{className:"flex h-64 items-center justify-center p-6",children:(0,a.jsx)(f.Ay,{variant:"Display.S",children:(null==n?void 0:n.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:r?(0,a.jsx)(k,{skeletonColumns:y?4:15}):null==s?void 0:s.map((e,t)=>(0,a.jsx)(I,{itemIndex:t,dailyForecast:e,locale:d,timeZone:j,isKoreaCscLocation:c,locationDayDate:N},e.validTimeLocal))}),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)(L.default,{href:x,children:v})})})]})})]})};var D=l(44615),F=l(14124),z=l(99838),V=l(77962);let B=e=>{let{location:t,simplifiedVersion:l,initializing:r,initialError:n}=e,c=(0,s.useParams)(),m=null==c?void 0:c.locale,h=(0,o.c3)("DailyForecast"),{value:f}=u("reorder-current-conditions-and-forecast","control"),{effectiveLocation:g,isLocationLoading:y}=(0,d.s)({location:t}),{dailyForecasts:b,error:w,isLoading:j,isKoreaCscLocation:N,locationTime:T}=((e,t)=>{var l;let a=(0,s.useParams)(),r=null==a?void 0:a.locale,n=(0,p.md)(v.Yt),o=null==(l=(0,x.xP)(n))?void 0:l.code,d=(0,V.A)(),c="KR"===d,u=c&&(null==e?void 0:e.countryCode)==="KR",m=null==e?void 0:e.ianaTimeZone,h=(0,i.useMemo)(()=>{let e;return m?(e=new Date,(0,z.$)(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:f,error:g,isLoading:y}=(0,D.Ay)(e?["get-daily-forecast",e.geocode,t?C.ForecastDuration.THREE_DAY:C.ForecastDuration.FIFTEEN_DAY,o,r,c?d:void 0]:null,e=>{let[t,l,a,r,n,i]=e;return(0,F.v1)({geocode:l,units:r,duration:a,language:n,cscCountryCode:i})},{revalidateOnFocus:!0,dedupingInterval:6e4});return{dailyForecasts:(0,i.useMemo)(()=>t?null==f?void 0:f.slice(0,4):f,[f,t]),error:g,isLoading:y,isKoreaCscLocation:u,locationTime:h}})(g,l);return(0,a.jsx)(E,{location:g,isLoading:r||j||y||!(null==b?void 0:b.length),error:n||w,dailyForecasts:b,locale:m,isKoreaCscLocation:N,locationTime:T,canToggleMultipleItems:!l,ctaText:l?h("bottomCtaButton"):void 0,ctaLink:l?"/weather/tenday/l/".concat((null==g?void 0:g.placeId)||(null==c?void 0:c.locId)):void 0,reorderModule:"treatment"===f,simplifiedVersion:l})},W=e=>{let{locationProvider:t,locationEntry:l,simplifiedVersion:i}=e,o="specified"===t,{specifiedLocationData:s,specifiedLocationError:d,isSpecifiedLocationLoading:c}=(0,n.v)(o?l:null),u=o&&s&&l?(0,r.I)(s):void 0;return(0,a.jsx)(B,{location:u,simplifiedVersion:null!=i&&i,initializing:o&&c,initialError:o?d:void 0})},H=W},63236:(e,t,l)=>{"use strict";l.d(t,{b:()=>i});var a=l(76792);l(42292);var r=l(48260),n=l(71666);let i=e=>{let{className:t,units:l,visibility:i,unitsClassName:o}=e,s=l?(0,n.Bu)(l):null,d=null==s?void 0:s.distance,c="";return c=0===i?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("span",{children:"0"}),(0,a.jsxs)("span",{className:(0,r.cn)(o),children:[" ",d]})]}):!i||i10||"m"===l&&i>16?"Unlimited":(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("span",{children:i}),(0,a.jsxs)("span",{className:(0,r.cn)(o),children:[" ",d]})]}),(0,a.jsx)("span",{"data-testid":"VisibilityValue",className:(0,r.cn)(t),children:c})}},66678:(e,t,l)=>{"use strict";t.U=i;let a=l(39825),r=l(17681),n=l(36762);async function i(e){let t=(0,a.getWWIRForecastUrlConfig)(e),l=(0,r.urlFrom)(t),i=await fetch(l,{headers:{"Accept-Encoding":"gzip"},next:{revalidate:300}});return await (0,n.handleFetchResponse)(i)}},68577:(e,t,l)=>{"use strict";l.d(t,{A:()=>U});var a=l(76792),r=l(55198),n=l(61e3),i=l(42292),o=l(75302),s=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"],f=["snow","sleet"],g="#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),S=l(69585),M=l(68751),_=l(9198),I=l(48260),R=l(62596),k=l(50772),P=l(21230),L=l(73923),E=l(82170);let D={id:"barBackground",beforeDatasetsDraw(e,t,l){let{ctx:a,chartArea:{top:r},scales:{y:n}}=e;if(!n)return;let i=e.getDatasetMeta(0),o=l.floatPoint||0;i.data.forEach(e=>{var t;let{x:i,width:s}=e.getProps(["x","width"],!0);a.save(),a.fillStyle=l.color||"transparent",function(e,t,l,a,r,n){let i=Math.min(n,a/2,r/2);e.beginPath(),e.moveTo(t+i,l),e.lineTo(t+a-i,l),e.quadraticCurveTo(t+a,l,t+a,l+i),e.lineTo(t+a,l+r-i),e.quadraticCurveTo(t+a,l+r,t+a-i,l+r),e.lineTo(t+i,l+r),e.quadraticCurveTo(t,l+r,t,l+r-i),e.lineTo(t,l+i),e.quadraticCurveTo(t,l,t+i,l),e.closePath(),e.fill()}(a,i-s/2,r,s,n.getPixelForValue(n.min+o)-r,null!=(t=l.borderRadius)?t:8),a.restore()})}},F={id:"extendXAxisLine",afterDraw(e,t,l){var a,r,n,i,o;let{ctx:s,scales:d}=e,c=d.x,u=d.y,m=null!=(a=l.offset)?a:20,h=(null!=(r=null==u?void 0:u.bottom)?r:0)+m;s.save(),s.beginPath(),s.strokeStyle=l.color||"black",s.lineWidth=null!=(n=l.lineWidth)?n:1,s.moveTo((null!=(i=null==c?void 0:c.left)?i:0)-200,h),s.lineTo((null!=(o=null==c?void 0:c.right)?o:0)+200,h),s.stroke(),s.restore()}},z={id:"transitionLines",afterDatasetsDraw(e,t,l){let{ctx:a,scales:{x:r,y:n}}=e;n&&(a.save(),a.lineWidth=1,a.setLineDash([2,2]),(0,E.v)(l.transitionPoints,(t,r)=>{var i;let o=+r,s=e.getDatasetMeta(0),d=s.data[o],c=s.data[o-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,n.top),a.lineTo(h,n.getPixelForValue(n.min+(null!=(i=l.floatPoint)?i:0))),a.stroke()}),a.restore())}},V=e=>{let{data:t,ianaTimeZone:l,locale:r}=e,n=(0,A.c3)("PrecipIntensity");return(0,a.jsxs)("table",{className:"hidden",children:[(0,a.jsx)("caption",{children:n("tableCaption")}),(0,a.jsx)("thead",{children:(0,a.jsxs)("tr",{children:[(0,a.jsx)("th",{children:n("time")}),(0,a.jsx)("th",{children:n("precipType")}),(0,a.jsx)("th",{children:n("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:r,timeZone:l,minutes:!0})}),(0,a.jsx)("td",{children:e.precipType}),(0,a.jsx)("td",{children:e.level})]},e.validTimeLocal):null)})]})},B=e=>{let{rtl:t,isSamsungTheme:l,radius:r=4,legendTypes:n}=e,o=(0,A.c3)("PrecipIntensity"),s=(0,i.useMemo)(()=>{let e=[{label:o("legendRain"),type:L.PrecipType.RAIN,color:g},{label:o("legendSnow"),type:L.PrecipType.SNOW,color:y},{label:o(l?"samsungLegendMix":"legendMix"),type:L.PrecipType.PRECIP,color:b}];return t?e.reverse():e},[l,t,o]);return(0,a.jsx)("div",{className:"mt-3 flex items-center justify-center gap-6",children:s.map(e=>{let{label:t,type:l,color:i}=e;return(!n||n[l])&&(0,a.jsxs)("div",{className:"flex items-center gap-1",children:[(0,a.jsx)("div",{style:{width:2*r,height:2*r,backgroundColor:i},className:"rounded-full"}),(0,a.jsx)("p",{className:"text-xs",children:t})]},l)})})},W=async()=>{let{Chart:e,CategoryScale:t,LinearScale:a,BarController:r,BarElement:n}=await Promise.all([l.e(9645),l.e(675)]).then(l.bind(l,46354));return e.register(t,a,r,n),e},H=(0,i.memo)(e=>{let{chartData:t,hasChartData:l,ianaTimeZone:r,locale:n,rootClass:o,rtl:s=!1,removeTransitionLines:d}=e,c=(0,A.c3)("PrecipIntensity"),u=(0,i.useRef)(null),m=(0,i.useRef)(null),[h,p]=(0,k.r)(e=>es?[...t].reverse():t,[t,s]),w=(0,i.useMemo)(()=>t.reduce((e,t)=>{let{precipType:l}=t;return e[l]=!0,e},{}),[t]),j=(0,i.useMemo)(()=>{let e=Object.values(L.PrecipType),t=0;for(let l of e)w[l]&&t++;return t>1},[w]),N=(0,i.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===L.PrecipType.RAIN?g:t===L.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,i.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=g:f.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:n,timeZone:r,showShortDayperiod:!0}):h?null:""}}},y:{stacked:!0,min:-.5,max:9,position:s?"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,s,c,n,r]);return((0,i.useEffect)(()=>{let e=!1;return!async function(){var t;let l=await W(),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,z]}))}(),()=>{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",o),dir:s?"rtl":void 0,children:[(0,a.jsx)(V,{data:t,ianaTimeZone:r,locale:n}),(0,a.jsx)("div",{className:(0,I.cn)("relative h-26 text-sm text-gray-500 @md/precipChart:h-30",s?"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)(B,{rtl:s,legendTypes:w,isSamsungTheme:!1})]}):null}),O=e=>{let{location:t,locale:l,onlyChart:r,isLoading:n,chartData:i,hasChartData:o,rtl:s,removeTransitionLines:d,insightTextLong:c}=e,u=(0,A.c3)("PrecipIntensity");if(n||!n&&!o)return null;let m=()=>(0,a.jsx)(H,{chartData:i,hasChartData:o,ianaTimeZone:null==t?void 0:t.ianaTimeZone,locale:l,rtl:s,removeTransitionLines:d});return r?m():o&&(0,a.jsxs)(S.Zp,{className:"relative min-h-[100px] overflow-hidden","aria-label":u("chartTitle"),children:[(0,a.jsxs)(S.Wu,{className:"p-0",children:[c&&(0,a.jsxs)(M.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:g,initializing:y,initialError:b}=e,A=null==(t=(0,r.useParams)())?void 0:t.locale,{effectiveLocation:S,isLocationLoading:M}=(0,n.s)({location:l}),{loadingForecast:_,chartData:I,hasChartData:R,insightTextLong:k}=((e,t)=>{let l=(0,o.md)(s.Yt),a=(0,d.xP)(l)||d.AF,r=a.code,n=(0,p.A)(),g="KR"===n,y=g&&(null==e?void 0:e.countryCode)==="KR",{data:b,isLoading:A}=(0,u.Ay)(e&&y?["get-hourly-forecast",e.geocode,r,t,g?n:void 0]:null,e=>{let[t,l,a,r,n]=e;return(0,m.$c)({geocode:l,units:a,language:r,cscCountryCode:n,duration:c.HourlyForecastDuration.TWO_DAY})},T),{data:S,isLoading:M}=(0,u.Ay)(e&&!y?["get-fifteen-minute-forecast",e.geocode,r,t]:null,e=>{let[t,l,a,r]=e;return(0,h.FA)({geocode:l,units:a,language:r})},T),_=y?b:S,I=(0,i.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,i.useMemo)(()=>((e,t,l,a)=>e?(a?(null==e?void 0:e.slice(0,7))||[]:e||[]).map((e,r)=>{let n=e.iconCodeExtend,i=e.precipType,o=(e=>{let{precipRate:t,iconCodeExtend:l,precipType:a,unitsSystem:r}=e,n=(null==r?void 0:r.precip)!=="in"?Number((t/25.4).toFixed(2)):t,i="precip"===a||0===t?w[l]:a;switch(!0){case x.includes(i):return j(n);case f.includes(i):return N(n);default:return 0}})({precipRate:a?e.qpf:e.precipRate,iconCodeExtend:n,precipType:i,unitsSystem:t});return{precipType:i,validTimeLocal:l[r],level:o}}):Array(7).fill({precipType:"",validTimeLocal:"",level:0}))(_,a,I,y)||[],[_,y,I,a]),k=(0,i.useMemo)(()=>(e=>!!(null==e?void 0:e.find(e=>{let{level:t}=e;return t>0})))(R),[R]),{loadingInsight:P,insightHeadline:L,insightTextLong:E}=(0,C.p)(e,t);return{loadingForecast:A||M,chartData:R,hasChartData:k,loadingInsight:P,insightHeadline:L,insightTextLong:E}})(S,A);return b?null:(0,a.jsx)(O,{location:S,locale:A,onlyChart:g,isLoading:y||M||_,chartData:I,hasChartData:R,insightTextLong:k})}},69474:(e,t,l)=>{"use strict";l.d(t,{W:()=>c});var a=l(76792),r=l(58196),n=l(60645),i=l(51254),o=l(48260),s=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,r.g)(t))return"--";let f=l===d.PrecipType.SNOW?n.D:i.Y;return(0,a.jsxs)(a.Fragment,{children:[("text"===u||"both"===u)&&(0,a.jsxs)("span",{className:(0,o.cn)(m,p),children:[c&&(0,a.jsx)(f,{className:(0,o.cn)("size-4",h)}),(0,a.jsx)(s.N,{value:t,className:"align-middle"})]}),("progress"===u||"both"===u)&&(0,a.jsxs)("div",{className:(0,o.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,o.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)(f,{className:(0,o.cn)("size-3.25",h)}),(0,a.jsx)(s.N,{value:t,className:"text-sm"})]})]})]})}},69585:(e,t,l)=>{"use strict";l.d(t,{Wu:()=>h,Zp:()=>u,aR:()=>m});var a=l(76792),r=l(42292),n=l(84057),i=l(30505),o=l(48260),s=l(68751),d=l(27370);let c=(0,i.F)("flex flex-col",{variants:{variant:{default:"bg-card text-card-foreground border-b",outline:"bg-card text-card-foreground overflow-hidden",ghost:"bg-transparent"},padding:{default:"",none:"",sm:"p-2",md:"p-4",lg:"p-6"},border:{default:"",none:"",lt:"border border-gray-200",md:"border border-gray-400",dk:"border border-gray-600"},background:{default:"",none:"",lt:"bg-gray-100",md:"bg-gray-300",dk:"bg-gray-500"},radius:{none:"",default:"",sm:"rounded-sm",md:"rounded-md",lg:"rounded-lg"},interactive:{true:"focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-blue-500 hover:outline hover:outline-2 hover:outline-offset-2 hover:outline-blue-500",false:""}},defaultVariants:{variant:"default",padding:"default",border:"default",radius:"default",background:"default",interactive:!1},compoundVariants:[{variant:"default",padding:"default",border:"default",class:"pb-6 border-gray-500 last-of-type:border-0"},{variant:"outline",radius:"default",class:"rounded-md"},{variant:"outline",border:"default",class:"border bg-gray-100"},{variant:"outline",padding:"default",class:"p-4"}]}),u=r.forwardRef((e,t)=>{let{className:l,variant:r,padding:i,radius:s,border:d,asChild:u=!1,children:m,testId:h,...p}=e,v=u?n.DX:"section";return(0,a.jsx)(v,{className:(0,o.cn)(c({variant:r,padding:i,radius:s,border:d,interactive:u}),l),ref:t,...p,children:m})});u.displayName="Card";let m=r.forwardRef((e,t)=>{let{className:l,textVariant:r="Title.S",text:n,children:i}=e;return(0,a.jsx)(a.Fragment,{children:n?(0,a.jsx)(s.EY,{ref:t,className:(0,o.cn)("flex pb-4",l),variant:r,children:n}):i})});m.displayName="CardHeader";let h=r.forwardRef((e,t)=>{let{className:l,children:r,...n}=e;return(0,a.jsx)("div",{className:(0,o.cn)("flex-1",l),ref:t,...n,children:r})});h.displayName="CardContent",r.forwardRef((e,t)=>{let{className:l,ctaText:r,ctaHref:n,ctaTarget:i="_self",children:s,...c}=e;return(0,a.jsx)("footer",{className:(0,o.cn)("flex items-center pt-4",l),ref:t,...c,children:s||(r&&n?(0,a.jsx)(d.$n,{variant:"default",size:"sm",asChild:!0,children:(0,a.jsx)("a",{href:n,target:i,children:r})}):null)})}).displayName="CardFooter"},70336:(e,t,l)=>{"use strict";l.d(t,{Wu:()=>o,Zp:()=>n,aR:()=>i});var a=l(76792);l(42292);var r=l(48260);function n(e){let{className:t,...l}=e;return(0,a.jsx)("div",{"data-slot":"card",className:(0,r.cn)("bg-card text-card-foreground flex flex-col gap-6 rounded-xl py-6",t),...l})}function i(e){let{className:t,...l}=e;return(0,a.jsx)("div",{"data-slot":"card-header",className:(0,r.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 o(e){let{className:t,...l}=e;return(0,a.jsx)("div",{"data-slot":"card-content",className:(0,r.cn)("px-6",t),...l})}},73923:(e,t)=>{"use strict";var l,a,r,n,i;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"}(r||(t.ThunderCategory=r={})),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"}(n||(t.PrecipTypeCode=n={})),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"}(i||(t.PrecipIntensityCode=i={}))},74130:(e,t,l)=>{"use strict";l.r(t),l.d(t,{CTABlock:()=>n,default:()=>i});var a=l(76792);l(42292);var r=l(22627);let n=e=>{let{title:t,subTitle:l,subText:n,ctaStyle:i,media:o,buttonText:s,linkUrl:d,openInNewTab:c,backgroundColor:u}=e,m=void 0!=o.url?o.url:"string"==typeof o?o: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(i),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)(r.A,{src:m,alt:t})})}),l&&(0,a.jsx)("h2",{className:"mb-2 text-lg font-bold",children:l}),n&&(0,a.jsx)("p",{className:"mb-4",children:n}),"standard"===i&&(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:s||"Learn More"})})]})})})},i=n},75782:(e,t,l)=>{"use strict";l.r(t),l.d(t,{PrecipIntensityBlock:()=>o,default:()=>s});var a=l(76792),r=l(46593),n=l(44685),i=l(68577);let o=e=>{let{locationEntry:t,locationProvider:l}=e,o="specified"===l,{specifiedLocationData:s,specifiedLocationError:d,isSpecifiedLocationLoading:c}=(0,r.v)(t),u=o&&s&&t?(0,n.I)(s):void 0;return(0,a.jsx)(i.A,{location:u,initializing:o&&c,initialError:o?d:void 0})},s=o},75848:(e,t,l)=>{"use strict";l.d(t,{K:()=>o});var a=l(76792),r=l(42292),n=l(23233);let i=(0,r.forwardRef)((e,t)=>{let{title:l,titleId:r,desc:n,descId:i,...o}=e;return(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:t,"aria-labelledby":r,"aria-describedby":i,...o,children:[n?(0,a.jsx)("desc",{id:i,children:n}):null,void 0===l?(0,a.jsx)("title",{id:r,children:"humidity"}):l?(0,a.jsx)("title",{id:r,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"})]})]})}),o=r.forwardRef((e,t)=>(0,a.jsx)(n.h,{ref:t,icon:i,...e}));o.displayName="Humidity"},76159:(e,t,l)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getHourlyAirQualityForecast=o;let a=l(30253),r=l(17681),n=l(36762),i=l(35181);async function o(e){let t=(0,a.getHourlyAirQualityForecastUrlConfig)(e),l=(0,r.urlFrom)(t),o=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,i.createTransformer)((e,l)=>{var a,r;let n=e=>{var a,r,n,i;let o=t.pollutants[e];if(o)return{name:o.name,phrase:o.phrase,amount:null!=(a=o.amount[l])?a:0,unit:o.unit,category:null!=(r=o.category[l])?r:"",categoryIndex:null!=(n=o.categoryIndex[l])?n:0,index:null!=(i=o.index[l])?i:0}};return{...e,pollutants:{CO:n("CO"),NO2:n("NO2"),O3:n("O3"),PM10:n("PM10"),PM2_5:n("PM2.5"),SO2:n("SO2")},messages:{general:null!=(a=t.messages.General[l])?a:{title:"",text:""},sensitiveGroup:null!=(r=t.messages["Sensitive Group"][l])?r:{title:"",text:""}}}})(l);return{latitude:t.latitude,longitude:t.longitude,source:t.source,disclaimer:t.disclaimer,expireTimeGmt:t.expireTimeGmt,forecast:a}}(await (0,n.handleFetchResponse)(o))}},77962:(e,t,l)=>{"use strict";l.d(t,{A:()=>a});let a=()=>""},79315:(e,t,l)=>{"use strict";l.d(t,{r:()=>r});var a=l(99838);let r=e=>{let{date:t,timeZone:l}=e;return{cDate:new Date((0,a.$)(t)),cTimeZone:(e=>{try{return new Intl.DateTimeFormat("en-US",{timeZone:e}),e}catch(e){return"Etc/UTC"}})(l)}}},81217:(e,t,l)=>{"use strict";l.d(t,{Z:()=>h});var a=l(76792),r=l(42292),n=l(48260),i=l(3916),o=l(60393),s=l(71666);let d={N:0,NNE:22.5,NE:45,ENE:67.5,E:90,ESE:112.5,SE:135,SSE:157.5,S:180,SSW:202.5,SW:225,WSW:247.5,W:270,WNW:292.5,NW:315,NNW:337.5},c=e=>{let{windDirection:t,windDirectionCardinal:l,iconClassName:r,iconColor:s,displayWindDirectionIcon:c,displayMode:u,afterSpeed:m,useWindIcon:h}=e;if(!t&&!l)return null;let p=((e,t)=>null!=e&&Number.isFinite(e)?e:t?d[t]:void 0)(t,l);if(!("directional"===u||"directionalAndCardinal"===u||void 0===u&&c||h)||!h&&!Number.isFinite(p))return null;let v=h?o.Z:i.y;return(0,a.jsx)(v,{className:(0,n.cn)("inline-block size-4 align-middle",m?"ml-0.5":"mr-0.5",r),color:s,style:h?void 0:{transform:"rotate(".concat(p,"deg)")},"aria-label":"Wind direction icon","data-testid":"WindDirectionIcon"})},u=e=>{let{windDirection:t,windDirectionCardinal:l,cardinalClassName:r,displayWindDirectionIcon:n,displayMode:i,beforeSpeed:o}=e;return(t||l)&&("cardinal"===i||"directionalAndCardinal"===i||void 0===i&&!n)&&l?(0,a.jsxs)("span",{className:r,children:[!o&&" ",l,o&&" "]}):null},m=e=>{let{units:t,windUnitClass:l}=e,r=t?(0,s.Bu)(t):null,i=null==r?void 0:r.speed;return(0,a.jsx)("span",{className:(0,n.cn)(l),children:i})},h=(0,r.memo)(e=>{let{windSpeed:t,units:l,className:r,windDirection:i,windDirectionCardinal:o,windSpeedClass:s,windUnitClass:d,iconClassName:h,iconColor:p,cardinalClassName:v,iconAfterSpeed:x,cardinalBeforeSpeed:f,spaceWindSpeedAndUnit:g=!0,displayWindDirectionIcon:y=!1,displayMode:b,useWindIcon:w}=e,j=(0,a.jsx)(c,{windDirection:i,windDirectionCardinal:o,iconClassName:h,iconColor:p,displayWindDirectionIcon:y,displayMode:b,afterSpeed:x,useWindIcon:w}),N=(0,a.jsx)(u,{windDirection:i,windDirectionCardinal:o,displayWindDirectionIcon:y,displayMode:b,beforeSpeed:f,cardinalClassName:v});return(0,a.jsxs)("span",{"data-testid":"Wind",className:(0,n.cn)(r),children:[!x&&j,f&&N,Number.isFinite(t)&&l?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("span",{className:(0,n.cn)(s),children:t}),g&&" ",(0,a.jsx)(m,{units:l,windUnitClass:d})]}):"--",!f&&N,x&&j]})})},81495:(e,t,l)=>{"use strict";l.r(t),l.d(t,{CurrentConditionsBlock:()=>D,default:()=>F});var a=l(76792),r=l(42292),n=l(44615),i=l(61e3),o=l(86942),s=l(14124),d=l(76088),c=l(46828),u=l(68751),m=l(48260);let h=e=>{let{children:t,direction:l="horizontal",height:n,width:i,textVariant:o="Display.L",textColor:s="inverse",translateDistance:d,transitionDuration:c="500ms",className:h,transitionClassName:p,isLoading:v,skeletonClassName:x}=e,[f,g]=(0,r.useState)(!1);(0,r.useEffect)(()=>{f||v||setTimeout(()=>{g(!0)},0)},[f,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:o,color:s,style:{height:n,width:i},children:(0,a.jsx)("span",{className:(0,m.cn)("transform: flex transition-transform",p),style:{transitionDuration:c,flexDirection:"horizontal"===l?"row":"column",transform:f?"".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],f=[{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}],g={"--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=f.find(t=>{var l,a;return null==t||null==(a=t.iconCodes)||null==(l=a.includes)?void 0:l.call(a,e)}),l=f.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:r,isLoading:n,error:i}=e;return i?(0,a.jsx)(S,{error:i}):(0,a.jsx)(A,{isLoading:n,location:t,weatherData:l,forecastData:r})},A=e=>{let{isLoading:t,location:l,weatherData:r,forecastData:n}=e,i=function(){let{iconCode:e=44,dayPart:t="day",variant:l=0,width:a=800,isSevere:r=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n={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}),r=null==a?void 0:a["".concat(t,"Variants")];if(!r||l>r)return a=b({iconCode:44}),"".concat(v).concat(a.name,".jpg");let n=!!r&&0===l&&((e,t)=>{let l=Math.ceil(e);return Math.floor(Math.random()*(Math.floor(t)-l+1)+l)})(1,r),i="";return n?i="_".concat(n):l&&(i="_".concat(l)),"".concat(v).concat(a.name,"-").concat(t).concat(i,".jpg")}({iconCode:e,dayPart:t,variant:l}),width:w({width:a}),quality:70,format:"pjpg",autoWebP:!0,ratio:"16:9"};return r&&(n.saturation=-100),(0,y.default)(n)}({iconCode:null==r?void 0:r.iconCode,dayPart:(null==r?void 0:r.dayOrNight)==="D"?"day":"night"}),o=t?"--color-white":(e=>Object.keys(g).find(t=>g[t].find(t=>{var l;return null==e||null==(l=e.includes)?void 0:l.call(e,t)}))||"--color-blue-800")(i),s=(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(o,")"),backgroundImage:t?"":"url(".concat(i,")")},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==r?void 0:r.iconCode)||-1,className:"h-16 w-16","aria-label":null==r?void 0:r.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:s("now")}),(0,a.jsx)(N.B,{value:(null==r?void 0:r.temperature)?(null==r?void 0:r.temperature)+2:null}),(0,a.jsx)(N.B,{value:(null==r?void 0:r.temperature)?(null==r?void 0:r.temperature)+1:null}),(0,a.jsx)(u.Ay,{variant:"Display.L",color:"inverse",children:(0,a.jsx)(N.B,{value:null==r?void 0:r.temperature})})]})]}),(0,a.jsx)(u.Ay,{isLoading:t,skeletonClassName:"mt-1 h-6 w-30",variant:"Title.M",color:"inverse",children:null==r?void 0:r.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:[s("feelsLike")," ",(0,a.jsx)(N.B,{value:null==r?void 0:r.temperatureFeelsLike})," \xb7"," ",s("dayTempLabel")," ",(0,a.jsx)(N.B,{value:null==n?void 0:n.temperatureMax})," \xb7"," ",s("nightTempLabel")," ",(0,a.jsx)(N.B,{value:null==n?void 0:n.temperatureMin})]}),(0,a.jsx)(c.A,{location:l,showSubheadline:!0,className:"mt-4",headlineClassName:"normal-case"})]})})})})},S=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 M=l(58010),_=l(75302),I=l(32035),R=l(71666),k=l(55198);let P=e=>{let{location:t}=e,{effectiveLocation:l,isLocationLoading:r,locationError:c}=(0,i.s)({location:t}),{weatherData:u,forecastData:m,isLoading:h,error:p}=function(e){var t,l,a,r,i;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,n.Ay)(e?["observations",e.geocode,h]:null,e=>{let[t,l,a]=e;return(0,o.z)({geocode:l,units:a,language:u})},{revalidateOnFocus:!1,dedupingInterval:6e4}),{data:f,error:g,isLoading:y}=(0,n.Ay)(e?["daily-forecast",e.geocode,h]:null,t=>{let[l,a,r]=t;return e?(0,s.v1)({geocode:a,units:r,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=f&&f.length>0?{temperatureMax:null!=(r=null==(l=f[0])?void 0:l.calendarDayTemperatureMax)?r:0,temperatureMin:null!=(i=null==(a=f[0])?void 0:a.calendarDayTemperatureMin)?i:0}:void 0;return{weatherData:b,forecastData:w,isLoading:x||!p||y||!f,error:v||g}}(l),v=h||r,x=p||c;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(M.DebugCollector,{componentName:"CurrentConditions",data:{props:{location:t},state:{effectiveLocation:l,isLocationLoading:r,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 L=l(46593),E=l(44685);let D=e=>{let{locationProvider:t,locationEntry:l}=e,r="specified"===t,{specifiedLocationData:n,specifiedLocationError:i,isSpecifiedLocationLoading:o}=(0,L.v)(r?l:null);return r&&o?(0,a.jsx)("div",{children:"Loading location data..."}):r&&i?(0,a.jsxs)("div",{children:["Error loading location data: ",i.message]}):r&&n&&l?(0,a.jsx)(P,{location:(0,E.I)(n)}):r?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),r=l(42292),n=l(44615),i=l(86605);let o="/placeholder-video-thumbnail.jpg";var s=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),f=l(13942);let g={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:S,descriptionAttributes:M,videoReference:_,playlistsReference:I=[]}=e,R="video-player-".concat((0,r.useId)()),k=(0,r.useRef)(!0),P=(0,r.useRef)(null),L=(null==(t=(0,p.J)())?void 0:t.user)||{},E=(0,x.md)(f.a),D=L.isUserPremium||E,F=(0,v.z)(),z=null;_&&("string"==typeof _?z="/api/payload/videos/".concat(_):"object"==typeof _&&(z=(null==_?void 0:_.id)?"/api/payload/videos/".concat(_.id):null));let{data:V,error:B}=(0,n.Ay)(z,b,{revalidateOnFocus:!1,dedupingInterval:3e5}),W=(0,c.c)(),H=(0,r.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,r.useMemo)(()=>V&&Object.keys(V).length>0||_&&"string"!=typeof _,[V,_]),U=(0,r.useMemo)(()=>V&&Object.keys(V).length>0?V:_&&"string"!=typeof _?_:null,[V,_]),q=(0,r.useMemo)(()=>{var e,t,a,r,n,i,o,s,d;return O&&(null==U||null==(t=U.content)||null==(e=t.videoFormatUrls)?void 0:e.length)>0?(null==U||null==(r=U.content)||null==(a=r.defaultFormat)?void 0:a.url)?null==U||null==(d=U.content)||null==(s=d.defaultFormat)?void 0:s.url:null==U||null==(o=U.content)||null==(i=o.videoFormatUrls)||null==(n=i[0])?void 0:n.url:l},[O,U,l]),G=(0,r.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,r.useMemo)(()=>O&&(null==U?void 0:U.title)||j,[O,U,j]),Q=(0,r.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,r.useMemo)(()=>{if(P.current&&JSON.stringify({file:q,image:G,title:Z,description:Q,tracks:H,playlist:T,custom:A})===JSON.stringify(P.current))return P.current;let e=G||(q?(e=>{if(!e)return o;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 o})(q):null)||g.src,t={file:q,image:e,title:Z,description:Q,tracks:H,custom:A};return P.current=t,t},[q,G,Z,Q,H,T,A]),X=(0,r.useMemo)(()=>{var e,t,l,a;let r=[];return T&&(r=((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),r.length>0?r:[Y]},[T,Y,I,U,O]);if((0,r.useEffect)(()=>{k.current=!0},[X]),_&&"string"==typeof _&&!V&&!B)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(B)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 $=[...s.v,...d.yW].map(e=>{let{eventName:t,callback:l}=e;return{eventName:t,callback:e=>{let{event:a,player:r}=e;"time"!==t&&y.info("[".concat(t,"]:"),a),l({event:a,player:r,isFirstPlayRef:k,user:L,trackVideoEvent:W,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)(H),hasPlaylist:!!T&&T.length>0,custom:A},state:{videoObject:Y,playlistItems:X.length,isFirstPlay:k.current,events:$.map(e=>e.eventName)},performance:{}}}),(0,a.jsx)("div",{className:"overflow-hidden rounded-lg",children:(0,a.jsx)(i.h,{playlist:X,events:$,setupParams:{ads:!D}},R)}),(null==S?void 0:S.showDescriptions)&&(0,a.jsx)("p",{...M,className:(0,h.cn)("my-2 text-sm",null==M?void 0:M.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),r=l(42292),n=l(48260),i=l(73675);let o={autoplayadsmuted:!1,client:"googima",vpaidcontrols:!0};var s=l(23803),d=l(92928),c=l.n(d),u=l(22627);let m=(0,s.h)("JWPlayer"),h=e=>{var t,l;let{playlist:s,options:d={},setupParams:h={},events:p=[],className:v="",placeHolder:x}=e,f="player-".concat((0,r.useId)()),{playerId:g="IdNDrRWQ"}=h,y=(0,r.useMemo)(()=>({playlist:s,...(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:o}:{},...l?{displaytitle:!0,displaydescription:!0}:{displaytitle:!1,displaydescription:!1}}})({...h}),...d}),[s,h,d]),b=(0,r.useRef)(null),w=(0,r.useRef)(!1),j=null==s||null==(t=s[0])?void 0:t.file,[N,C]=(0,r.useState)(j?"loading":"error");(0,r.useEffect)(()=>{if(w.current||!("jwplayer"in window)||"ready"!==N||!j)return;let e=window.jwplayer(f);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,f,N]),(0,r.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==s||null==(l=s[0])?void 0:l.image:"";return(0,a.jsxs)("div",{children:[j&&(0,a.jsx)(i.default,{src:"https://cdn.jwplayer.com/libraries/".concat(g,".js"),onLoad:()=>C("ready"),onReady:()=>C("ready"),onError:()=>C("error")}),(0,a.jsxs)("div",{className:(0,n.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:f,className:"aspect-video w-full bg-black"})]})]})}},92928:e=>{e.exports={jwplayerContainer:"JWPlayer_jwplayerContainer__u4Psj"}},93146:(e,t,l)=>{"use strict";t.Sn=o;let a=l(4883),r=l(17681),n=l(36762),i=l(56791);async function o(e){let{geocode:t,language:l="en-US"}=e,o=(0,r.urlFrom)((0,a.getSunWeatherAlertHeadlinesUrlConfig)({geocode:t,language:l})),s=await fetch(o,{headers:{"Accept-Encoding":"gzip"},cache:"no-store",next:{revalidate:0}}),d=await (0,n.handleFetchResponse)(s);return{...d,alerts:(0,i.getSortedAlerts)(d.alerts)}}},95624:(e,t,l)=>{"use strict";l.d(t,{yW:()=>b});var a=l(95913),r=l(90937);let n="",i="",o=1,s=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 f(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,r=Math.floor(3600*e+60*l+a);return isNaN(r)?0:r}return 0}function g(){Object.keys(p).map(e=>{p[e]=!1}),s=0,d=0,i=""}function y(e,t){var l,n,i,o,s,d,c,u,m,h,p,v,x,f,g,y,b,w,j,N,C,T,A,S,M,_,I,R,k,P,L,E,D,F,z,V,B;let W=t||e.getPlaylistItem();return{adBlock:e.getAdBlock(),adsMetricsUnitAndZone:null==W||null==(n=W.custom)||null==(l=n.ctx)?void 0:l.adzone,aspectRatio:null==e||null==(i=e.getConfig())?void 0:i.aspectratio,assetName:(0,a.EY)(null!=(V=null==W||null==(s=W.custom)||null==(o=s.ctx)?void 0:o.assetName)?V:""),collection:null==W||null==(c=W.custom)||null==(d=c.ctx)?void 0:d.pcollid,collectionId:null==W||null==(m=W.custom)||null==(u=m.ctx)?void 0:u.pcollid,contentId:null==W||null==(p=W.custom)||null==(h=p.ctx)?void 0:h.id,entitlements:(0,r.X)(null!=(B=null==W||null==(x=W.custom)||null==(v=x.ctx)?void 0:v.entitlements)?B:[]),iabContent:(0,a.IA)((null==W||null==(g=W.custom)||null==(f=g.ctx)?void 0:f.iab)||{}),id:null==W||null==(b=W.custom)||null==(y=b.ctx)?void 0:y.id,duration:null==W||null==(j=W.custom)||null==(w=j.ctx)?void 0:w.duration,lastmodifieddate:null==W||null==(T=W.custom)||null==(C=T.ctx)||null==(N=C.lastmodifieddate)?void 0:N.toString(),muted:e.getMute(),premiumContent:null==W||null==(S=W.custom)||null==(A=S.ctx)?void 0:A.premium,publishdate:null==W||null==(I=W.custom)||null==(_=I.ctx)||null==(M=_.publishdate)?void 0:M.toString(),providerName:null==W||null==(k=W.custom)||null==(R=k.ctx)?void 0:R.providername,tagsGeo:(0,r.X)(null==W||null==(L=W.custom)||null==(P=L.ctx)?void 0:P.tagsGeo),tagsKeyword:(0,r.X)(null==W||null==(D=W.custom)||null==(E=D.ctx)?void 0:E.tagsKeyword),tagsStorm:(0,r.X)(null==W||null==(z=W.custom)||null==(F=z.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 r=t.getPlaylistItem(),d=f(null==r||null==(a=r.custom)||null==(e=a.ctx)?void 0:e.duration);r&&!p.videoAttempt&&l&&(l({eventName:"video-end",eventAttributes:{errorMessage:i,contentWatchedSeconds:s,playReason:n,videoView:o,...y(t)}}),l({eventName:"video-ended",eventAttributes:{errorMessage:i,videoWatchedLength:s,playMethod:n,videoView:o,...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(i="",g(),console.debug("JW Player callback - adImpression eventSentFlags:",p),p.adImpression=!0,a&&!p.videoAttempt&&l){var r,s;let e=f(null==a||null==(s=a.custom)||null==(r=s.ctx)?void 0:r.duration);l({eventName:"video-attempt",eventAttributes:{errorMessage:i,playReason:n,videoView:o,...y(t)}}),l({eventName:"video-attempted",eventAttributes:{errorMessage:i,playMethod:n,videoLength:e,videoView:o,...y(t)}}),p.videoAttempt=!0}a&&!p.videoPlayed&&l&&(l({eventName:"video-played",eventAttributes:{errorMessage:i,playReason:n,videoView:o,...y(t)}}),p.videoPlayed=!0)}},{eventName:"viewable",callback:async e=>{let{event:t}=e;o=null==t?void 0:t.viewable}},{eventName:"playlistItem",callback:async e=>{let{player:t,trackVideoEvent:l}=e;if(n=x("playlist"),p.videoStarted&&!p.videoCompleted&&!p.videoEnd){var a,r;let e=t.getPlaylistIndex(),d=t.getPlaylistItem(e-1),h=f(null==d||null==(r=d.custom)||null==(a=r.ctx)?void 0:a.duration);l({eventName:"video-end",eventAttributes:{errorMessage:i,contentWatchedSeconds:s,playReason:n,videoView:o,...y(t,d)}}),l({eventName:"video-ended",eventAttributes:{errorMessage:i,videoWatchedLength:s,playMethod:n,videoView:o,...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||(i="",g()),console.debug("JW Player callback - playAttempt eventSentFlags:",p),a&&!p.videoAttempt&&l){var r,s;let e=f(null==a||null==(s=a.custom)||null==(r=s.ctx)?void 0:r.duration);p.videoAttempt=!0,l({eventName:"video-attempt",eventAttributes:{errorMessage:i,playReason:n,videoView:o,...y(t)}}),l({eventName:"video-attempted",eventAttributes:{errorMessage:i,videoLength:e,playMethod:n,videoView:o,...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:i,playReason:n,videoView:o,...y(t)}}),p.videoPlayed=!0),a&&!p.videoStarted&&l){var r,s;let e=f(null==a||null==(s=a.custom)||null==(r=s.ctx)?void 0:r.duration);l({eventName:"video-started",eventAttributes:{errorMessage:i,playReason:n,videoView:o,...y(t)}}),l({eventName:"video-begin",eventAttributes:{errorMessage:i,playMethod:n,videoView:o,...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:r}=e,d=a.getPlaylistItem(),h=f(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&&r&&(r({eventName:"video-completed",eventAttributes:{errorMessage:i,playReason:n,videoView:o,...y(a)}}),p.videoCompleted=!0),p.videoStarted&&!p.videoEnd&&(r({eventName:"video-end",eventAttributes:{errorMessage:i,contentWatchedSeconds:s,playReason:n,videoView:o,...y(a)}}),r({eventName:"video-ended",eventAttributes:{errorMessage:i,videoWatchedLength:s,playMethod:n,videoView:o,...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,r=l.getPlaylistItem();c=t.duration,console.debug("JW Player callback - adStarted eventSentFlags:",p),r&&a&&a({eventName:"ad-started",eventAttributes:{errorMessage:i,playReason:n,videoView:o,...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:i,playReason:n,videoView:o,...y(t)}})}},{eventName:"adComplete",callback:async e=>{let{event:t,player:l,trackVideoEvent:a}=e,r=l.getPlaylistItem();u=t.duration,console.debug("JW Player callback - adComplete eventSentFlags:",p),r&&a&&a({eventName:"ad-complete",eventAttributes:{errorMessage:i,playReason:n,videoView:o,...y(l)}})}},{eventName:"beforePlay",callback:async e=>{let{event:t}=e;n=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;i=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;s+=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:()=>f,default:()=>g});var a=l(76792),r=l(18556),n=l(48260),i=l(53976),o=l(69585),s=l(22627),d=l(49192),c=l(42292),u=l(23233);let m=(0,c.forwardRef)((e,t)=>{let{title:l,titleId:r,desc:n,descId:i,...o}=e;return(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:t,"aria-labelledby":r,"aria-describedby":i,...o,children:[n?(0,a.jsx)("desc",{id:i,children:n}):null,void 0===l?(0,a.jsx)("title",{id:r,children:"Play"}):l?(0,a.jsx)("title",{id:r,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:r,showDescription:c=!0,template:u="grid",gridColumns:m=2,aspectRatio:v="square",heroStyle:x="side-content",hideTitle:f=!1}=e,g="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:g,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||"#",S="object"==typeof e.provider&&e.provider?e.provider:null,M=S&&"object"==typeof S.partnerLogo&&(null==(j=S.partnerLogo)||null==(w=j.sizes)||null==(b=w.medium)?void 0:b.url)?S.partnerLogo.sizes.medium.url:void 0;return(0,a.jsxs)(o.Zp,{"aria-label":l,className:(0,n.cn)("@container",g),children:[f?null:(0,a.jsx)(o.aR,{text:l}),(0,a.jsxs)(o.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)(s.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:[M&&(0,a.jsx)("div",{className:"relative mb-3 w-52",children:(0,a.jsx)(s.A,{src:M,alt:"",width:208,height:0,className:"h-auto max-h-6 w-full rounded-none object-contain object-left",style:{height:"auto"},sizes:"208px"})}),r&&(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)(s.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:[M&&(0,a.jsx)("div",{className:"relative mb-3 w-40",children:(0,a.jsx)(s.A,{src:M,alt:"",width:160,height:0,className:"h-auto max-h-6 w-full rounded-none object-contain object-left",style:{height:"auto"},sizes:"160px"})}),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: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)(s.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:[M&&(0,a.jsx)("div",{className:"relative mb-6 w-64",children:(0,a.jsx)(s.A,{src:M,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"})}),r&&(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)(s.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:[M&&(0,a.jsx)("div",{className:"relative mb-3 w-40",children:(0,a.jsx)(s.A,{src:M,alt:"",width:160,height:0,className:"h-auto max-h-6 w-full rounded-none object-contain object-left",style:{height:"auto"},sizes:"160px"})}),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: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,n,o;let s=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==(o=h.partnerLogo)||null==(n=o.sizes)||null==(l=n.small)?void 0:l.url)?h.partnerLogo.sizes.small.url:void 0;return(0,a.jsx)(i.S,{heading:r?u:void 0,description:s,href:e.url,imageUrl:d,showIcon:!1,dir:"col",badgeStyle:!!r,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,n,o;let s=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==(o=h.partnerLogo)||null==(n=o.sizes)||null==(l=n.small)?void 0:l.url)?h.partnerLogo.sizes.small.url:void 0;return(0,a.jsx)(i.S,{heading:r?u:void 0,description:s,href:e.url,imageUrl:d,showIcon:!1,dir:"row",badgeStyle:!!r,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)(o.Zp,{"aria-label":l,className:(0,n.cn)("@container",g),children:[f?null:(0,a.jsx)(o.aR,{text:l}),(0,a.jsx)(o.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,n,o;let s=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",f=p&&"object"==typeof p.partnerLogo&&(null==(o=p.partnerLogo)||null==(n=o.sizes)||null==(l=n[x])?void 0:l.url)?p.partnerLogo.sizes[x].url:void 0;return(0,a.jsx)(i.S,{heading:r?m:void 0,description:s,href:e.url,imageUrl:d,showIcon:!1,dir:"list"===u?"row":"col",badgeStyle:!!r,bodyText:h,duration:e.duration||void 0,imageWidth:"list"===u?"w-40 h-40 flex-shrink-0":void 0,aspectRatio:v||"square",partnerLogoThumbnailUrl:f,partnerLogoWhite:!0,partnerLogoPosition:"list"===u?"compact":"default"},e.id)})})]})},x=e=>{let{contentQuery:t,limit:l="4",title:n,showCategory:i,showDescription:o,template:s="grid",gridColumns:d=2,aspectRatio:c="square",heroStyle:u="side-content",hideTitle:m=!1}=e,h=(null==t?void 0:t.mergedContent)||[];if(!(0,r.J)(h))return null;let p=h.slice(0,Number(l));return(0,a.jsx)(v,{items:p,title:null!=n?n:void 0,showCategory:null!=i?i:void 0,showDescription:null==o||o,template:null!=s?s: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})},f=e=>(0,a.jsx)(x,{...e}),g=f},98066:(e,t,l)=>{"use strict";function a(e){return"string"!=typeof e}function r(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:()=>r})},99343:(e,t,l)=>{"use strict";l.d(t,{c:()=>s});var a=l(42292),r=l(92700),n=l(55198),i=l(95913),o=l(153);let s=()=>{let e=(0,r.N)(),t=(0,o.A)(),l=(0,n.usePathname)();return(0,a.useCallback)(a=>{var r,n,o,s,d,c;let{eventName:u,eventAttributes:m={}}=a;if(!(null==(n=window.mParticle)||null==(r=n.isInitialized)?void 0:r.call(n)))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,i.EY)(l):""};try{null==(c=window.mParticle)||null==(d=c.logEvent)||d.call(c,u,null==(s=window.mParticle)||null==(o=s.EventType)?void 0:o.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])}},99838:(e,t,l)=>{"use strict";function a(e){if(!e)return"";let t=("number"==typeof e?new Date(e).toISOString():e instanceof Date?e.toISOString():e.replace(/GMT(?![+-])/,"GMT+0000")).replace(/\.\d+/,"").replace("Z","+0000").replace(/\s+/,"T").replace(/\s+/g,"").replace(/[A-Z]{3,}/,""),l=/([+-])(\d{2})(\d{2})$/;l.test(t)&&(t=t.replace(l,"$1$2:$3"));let a=t.replace(/(\d{4})-(\d{2})-(\d{2})/,"$1/$2/$3").replace("T"," ");return"Invalid Date"===new Date(a).toString()?"Invalid Date"!==new Date(t).toString()?t:"string"==typeof e?e:"":a}l.d(t,{$:()=>a})}}]);