(globalThis["TURBOPACK_remote_chunk_loading_global_wx-next-web"]||(globalThis["TURBOPACK_remote_chunk_loading_global_wx-next-web"]=[])).push(["object"==typeof document?document.currentScript:void 0,137688,e=>{e.v(r=>Promise.all(["static/immutable/chunks/1-6q4vxldh5oe.js"].map(r=>e.l(r))).then(()=>r(72990)))},212771,e=>{"use strict";e.s(["identity",0,function(e){return e}])},986519,(e,r,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.transformFifteenMinuteForecast=void 0,t.getFifteenMinuteForecast=d;let i=e.r(417669),a=e.r(678651),n=e.r(414655),s=e.r(992591),l=e.r(358025),o=e.r(349262),c=e.r(861160);async function d(e){let r=(0,i.getFifteenMinuteForecastUrlConfig)(e),s=(0,a.urlFrom)(r),l=await fetch(s,{headers:{"Accept-Encoding":"gzip"},next:{revalidate:60}}),o=await (0,n.handleFetchResponse)(l);return(0,t.transformFifteenMinuteForecast)(o)}t.transformFifteenMinuteForecast=(0,s.createTransformer)(e=>({dayOfWeek:e.dayOfWeek??"",iconCode:e.iconCode??0,iconCodeExtend:e.iconCodeExtend??0,precipChance:e.precipChance??0,precipRate:e.precipRate??0,precipType:e.precipType??l.PrecipType.RAIN,relativeHumidity:e.relativeHumidity??0,snowRate:e.snowRate??0,temperature:e.temperature??0,temperatureFeelsLike:e.temperatureFeelsLike??0,validTimeLocal:e.validTimeLocal??"",windDirection:e.windDirection??0,windDirectionCardinal:(0,c.normalizeCardinal)(e.windDirectionCardinal??o.WindDirectionCardinal.NORTH),windSpeed:e.windSpeed??0,wxPhraseLong:e.wxPhraseLong??"",wxPhraseShort:e.wxPhraseShort??"",wxSeverity:e.wxSeverity??0}))},698674,(e,r,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getWeatherInsights=s;let i=e.r(449802),a=e.r(678651),n=e.r(414655);async function s(e){let r=(0,i.getSunV3WeatherInsightsUrlConfig)(e),t=(0,a.urlFrom)(r),s=await fetch(t,{headers:{"Accept-Encoding":"gzip"},next:{revalidate:300}});return(0,n.handleFetchResponse)(s)}},474245,(e,r,t)=>{"use strict";var i,a;Object.defineProperty(t,"__esModule",{value:!0}),t.InsightType=void 0,(a=i||(t.InsightType=i={})).ALL="all",a.BREAKING_VIDEO_INSIGHT="breakingVideoInsight",a.CHANCE_PRECIP_INSIGHT="chancePrecipInsight",a.SUNNY_DAY_INSIGHT="sunnyDayInsight",a.POLLEN_INSIGHT="pollenInsight",a.TEMPERATURE_CHANGE_INSIGHT="temperatureChangeInsight",a.TRENDING_TEMPERATURE_INSIGHT="trendingTemperatureInsight",a.SUN_INSIGHT="sunInsight",a.SHORT_TERM_PRECIP_INSIGHT="shortTermPrecipInsight",a.THUNDERSTORM_SOON_INSIGHT="thunderstormSoonInsight",a.SEVERE_STORM_INSIGHT="severeStormInsight",a.PRECIP_INSIGHT="precipInsight"},449802,(e,r,t)=>{"use strict";e.i(288906),Object.defineProperty(t,"__esModule",{value:!0}),t.getSunV3WeatherInsightsUrlConfig=function({geocode:e,placeId:r,postalKey:t,insightType:a=i.InsightType.ALL,units:n,language:s,par:l,cscCountryCode:o}){let c={format:"json",units:n,language:s,apiKey:"71f92ea9dd2f4790b92ea9dd2f779061",insightType:a,par:l,cscCountryCode:o};return e?c.geocode=e:r?c.placeid=r:t&&(c.postalKey=t),{host:"api.weather.com",protocol:"https",pathname:"/v3/insights",query:c}};let i=e.r(474245)},188065,e=>{"use strict";var r=e.i(902875),t=e.i(247865),i=e.i(747961);let a=(0,t.forwardRef)(({title:e,titleId:t,desc:i,descId:a,...n},s)=>(0,r.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:s,"aria-labelledby":t,"aria-describedby":a,...n,children:[i?(0,r.jsx)("desc",{id:a,children:i}):null,void 0===e?(0,r.jsx)("title",{id:t,children:"Rain Drop"}):e?(0,r.jsx)("title",{id:t,children:e}):null,(0,r.jsxs)("g",{fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd",children:[(0,r.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,r.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"})]})]})),n=t.default.forwardRef((e,t)=>(0,r.jsx)(i.BaseIcon,{ref:t,icon:a,...e}));n.displayName="RainDrop",e.s(["RainDrop",0,n])},877809,e=>{"use strict";var r=e.i(902875),t=e.i(247865),i=e.i(747961);let a=(0,t.forwardRef)(({title:e,titleId:t,desc:i,descId:a,...n},s)=>(0,r.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:s,"aria-labelledby":t,"aria-describedby":a,...n,children:[i?(0,r.jsx)("desc",{id:a,children:i}):null,void 0===e?(0,r.jsx)("title",{id:t,children:"Snowflake"}):e?(0,r.jsx)("title",{id:t,children:e}):null,(0,r.jsxs)("g",{fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd",children:[(0,r.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,r.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,r.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,r.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"})]})]})),n=t.default.forwardRef((e,t)=>(0,r.jsx)(i.BaseIcon,{ref:t,icon:a,...e}));n.displayName="Snowflake",e.s(["Snowflake",0,n])},324079,e=>{"use strict";var r=e.i(902875),t=e.i(247865),i=e.i(747961);let a=(0,t.forwardRef)(({title:e,titleId:t,desc:i,descId:a,...n},s)=>(0,r.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:s,"aria-labelledby":t,"aria-describedby":a,...n,children:[i?(0,r.jsx)("desc",{id:a,children:i}):null,void 0===e?(0,r.jsx)("title",{id:t,children:"Sunrise"}):e?(0,r.jsx)("title",{id:t,children:e}):null,(0,r.jsx)("g",{fill:"currentColor",children:(0,r.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"})})]})),n=t.default.forwardRef((e,t)=>(0,r.jsx)(i.BaseIcon,{ref:t,icon:a,...e}));n.displayName="Sunrise",e.s(["Sunrise",0,n])},166812,e=>{"use strict";var r=e.i(902875),t=e.i(247865),i=e.i(747961);let a=(0,t.forwardRef)(({title:e,titleId:t,desc:i,descId:a,...n},s)=>(0,r.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:s,"aria-labelledby":t,"aria-describedby":a,...n,children:[i?(0,r.jsx)("desc",{id:a,children:i}):null,void 0===e?(0,r.jsx)("title",{id:t,children:"Sunset"}):e?(0,r.jsx)("title",{id:t,children:e}):null,(0,r.jsx)("g",{fill:"currentColor",children:(0,r.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"})})]})),n=t.default.forwardRef((e,t)=>(0,r.jsx)(i.BaseIcon,{ref:t,icon:a,...e}));n.displayName="Sunset",e.s(["Sunset",0,n])},922033,e=>{"use strict";var r=e.i(902875),t=e.i(725287),i=e.i(559421),a=e.i(147204),n=e.i(581014),s=e.i(380993),l=e.i(368847),o=e.i(240058),c=e.i(611540),d=e.i(562690),u=e.i(247865),p=e.i(632137),h=e.i(742740),f=e.i(385277),g=e.i(307215),m=e.i(317774),x=e.i(358025),y=e.i(212771);let v={id:"barBackground",beforeDatasetsDraw(e,r,t){let{ctx:i,chartArea:{top:a},scales:{y:n}}=e;if(!n)return;let s=e.getDatasetMeta(0),l=t.floatPoint||0;s.data.forEach(e=>{var r,s,o,c,d;let u,{x:p,width:h}=e.getProps(["x","width"],!0);i.save(),i.fillStyle=t.color||"transparent",r=i,s=p-h/2,o=a,c=h,d=n.getPixelForValue(n.min+l)-a,u=Math.min(t.borderRadius??8,c/2,d/2),r.beginPath(),r.moveTo(s+u,o),r.lineTo(s+c-u,o),r.quadraticCurveTo(s+c,o,s+c,o+u),r.lineTo(s+c,o+d-u),r.quadraticCurveTo(s+c,o+d,s+c-u,o+d),r.lineTo(s+u,o+d),r.quadraticCurveTo(s,o+d,s,o+d-u),r.lineTo(s,o+u),r.quadraticCurveTo(s,o,s+u,o),r.closePath(),r.fill(),i.restore()})}},w={id:"extendXAxisLine",afterDraw(e,r,t){let{ctx:i,scales:a}=e,n=a.x,s=a.y,l=t.offset??20,o=(s?.bottom??0)+l;i.save(),i.beginPath(),i.strokeStyle=t.color||"black",i.lineWidth=t.lineWidth??1,i.moveTo((n?.left??0)-200,o),i.lineTo((n?.right??0)+200,o),i.stroke(),i.restore()}},T={id:"transitionLines",afterDatasetsDraw(e,r,t){let{ctx:i,scales:{x:a,y:n}}=e;n&&(i.save(),i.lineWidth=1,i.setLineDash([2,2]),function(e,r=y.identity){if(null!=e){for(let t in e)if(!1===r(e[t],t,e))break}}(t.transitionPoints,(r,a)=>{let s=+a,l=e.getDatasetMeta(0),o=l.data[s],c=l.data[s-1];if(!o||!c)return;let{x:d}=o.getProps(["x"],!0),{x:u}=c.getProps(["x"],!0),p=(u+d)/2;i.beginPath(),i.strokeStyle=r,i.moveTo(p,n.top),i.lineTo(p,n.getPixelForValue(n.min+(t.floatPoint??0))),i.stroke()}),i.restore())}},C=({data:e,ianaTimeZone:t,locale:i})=>{let a=(0,n.useTranslations)("PrecipIntensity");return(0,r.jsxs)("table",{className:"hidden",children:[(0,r.jsx)("caption",{children:a("tableCaption")}),(0,r.jsx)("thead",{children:(0,r.jsxs)("tr",{children:[(0,r.jsx)("th",{children:a("time")}),(0,r.jsx)("th",{children:a("precipType")}),(0,r.jsx)("th",{children:a("precipLevel")})]})}),(0,r.jsx)("tbody",{children:e?.map(e=>0!==e.level?(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,h.formatHourlyDate)({date:e.validTimeLocal,locale:i,timeZone:t,minutes:!0})}),(0,r.jsx)("td",{children:e.precipType}),(0,r.jsx)("td",{children:e.level})]},e.validTimeLocal):null)})]})},I=({rtl:e,isSamsungTheme:t,radius:i=4,legendTypes:a})=>{let s=(0,n.useTranslations)("PrecipIntensity"),l=(0,u.useMemo)(()=>{let r=[{label:s("legendRain"),type:x.PrecipType.RAIN,color:m.RAIN_COLOR},{label:s("legendSnow"),type:x.PrecipType.SNOW,color:m.SNOW_COLOR},{label:s(t?"samsungLegendMix":"legendMix"),type:x.PrecipType.PRECIP,color:m.PRECIP_COLOR}];return e?r.reverse():r},[t,e,s]);return(0,r.jsx)("div",{className:"mt-3 flex items-center justify-center gap-6",children:l.map(({label:e,type:t,color:n})=>(!a||a[t])&&(0,r.jsxs)("div",{className:"flex items-center gap-1",children:[(0,r.jsx)("div",{style:{width:2*i,height:2*i,backgroundColor:n},className:"rounded-full"}),(0,r.jsx)("p",{className:"text-xs",children:e})]},t))})};var _=e.i(97991);let R=async()=>{let{Chart:r,CategoryScale:t,LinearScale:i,BarController:a,BarElement:n}=await e.A(137688);return r.register(t,i,a,n),r},b=(0,u.memo)(({chartData:e,hasChartData:t,ianaTimeZone:i,locale:a,rootClass:s,rtl:l=!1,removeTransitionLines:o})=>{let c=(0,n.useTranslations)("PrecipIntensity"),d=(0,u.useRef)(null),y=(0,u.useRef)(null),[b,S]=(0,f.useClientContainerSize)(e=>el?[...e].reverse():e,[e,l]),N=(0,u.useMemo)(()=>(0,_.getChartPrecipTypes)(e),[e]),P=(0,u.useMemo)(()=>{let e=Object.values(x.PrecipType),r=0;for(let t of e)N[t]&&r++;return r>1},[N]),O=(0,u.useMemo)(()=>{let e=j.map(e=>e.level),r=j.map(({validTimeLocal:e})=>e),t=j.map(({precipType:e})=>e===x.PrecipType.RAIN?m.RAIN_COLOR:e===x.PrecipType.SNOW?m.SNOW_COLOR:m.PRECIP_COLOR);return{labels:r,datasets:[{label:c("chartTitle"),data:e,backgroundColor:t,borderWidth:0,maxBarThickness:b?4:8,categoryPercentage:1,stack:"stack1",borderRadius:12,borderSkipped:!1}]}},[b,j,c]),L=(0,u.useMemo)(()=>({responsive:!0,maintainAspectRatio:!1,plugins:{legend:{display:!1},tooltip:{enabled:!1},transitionLines:{floatPoint:.5,transitionPoints:o?void 0:j.reduce((e,r,t)=>{if(t>0&&r.level>0&&j[t-1]&&r.precipType!==j[t-1]?.precipType){let i=m.PRECIP_COLOR;m.RAIN_ICON_CODES.includes(r.precipType)?i=m.RAIN_COLOR:m.SNOW_ICON_CODES.includes(r.precipType)&&(i=m.SNOW_COLOR),e[t]=i}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:b?12:14},color:"#676767",callback:function(e,r){let t=new Date(this.chart.data.labels?.[r]||"");return 0===t.getMinutes()?(0,h.formatHourlyDate)({date:t,locale:a,timeZone:i,showShortDayperiod:!0}):b?null:""}}},y:{stacked:!0,min:-.5,max:9,position:l?"right":"left",grid:{display:!1,drawBorder:!1},ticks:{count:10,autoSkip:!1,display:!0,crossAlign:"far",font:{size:b?12:14},callback:function(e,r){return 2===r?c("chartLight"):8===r?c("chartHeavy"):""}},border:{display:!1}}}}),[o,j,b,l,c,a,i]);return((0,u.useEffect)(()=>{let e=!1;return!async function(){let r=await R(),t=d.current?.getContext("2d");e||t&&r&&(y.current=new r(t,{type:"bar",data:O,options:L,plugins:[v,w,T]}))}(),()=>{e=!0,y.current?.destroy()}},[O,L]),t)?(0,r.jsxs)("div",{ref:S,className:(0,p.cn)("@container/precipChart",s),dir:l?"rtl":void 0,children:[(0,r.jsx)(C,{data:e,ianaTimeZone:i,locale:a}),(0,r.jsx)("div",{className:(0,p.cn)("relative h-26 text-sm text-gray-500 @md/precipChart:h-30",l?"pr-2 @md/precipChart:pr-3 @xl/precipChart:pr-4":"pl-2 @md/precipChart:pl-3 @xl/precipChart:pl-4"),children:(0,r.jsx)("canvas",{ref:d})}),P&&(0,r.jsx)(I,{rtl:l,legendTypes:N,isSamsungTheme:!1})]}):null}),S=({location:e,locale:t,onlyChart:i,isLoading:a,chartData:u,hasChartData:p,rtl:h,removeTransitionLines:f,insightTextLong:g,canonicalBasePath:m})=>{let x=(0,n.useTranslations)("PrecipIntensity");if(a||!a&&!p)return null;let y=()=>(0,r.jsx)(b,{chartData:u,hasChartData:p,ianaTimeZone:e?.ianaTimeZone,locale:t,rtl:h,removeTransitionLines:f});if(i)return y();let v=e&&(m?`${m}/hourbyhour?metric=precipitation`:`${(0,c.interpolateUrl)(c.URLS.hourly,{locale:t,locId:e.placeId})}?metric=precipitation`);return p&&(0,r.jsxs)(s.Card,{className:"relative min-h-[100px] overflow-hidden","aria-label":x("chartTitle"),children:[(0,r.jsxs)(s.CardContent,{className:"p-0",children:[g&&(0,r.jsxs)(l.default,{variant:"Body.M",className:"mb-2",children:[(0,r.jsx)("span",{className:"font-bold",children:"Outlook:"})," ",g]}),y()]}),v&&(0,r.jsx)(o.default,{className:"absolute top-0 right-0 bottom-0 left-0",href:v,rel:(0,d.nofollowRel)(v),"aria-label":x("viewHourlyForecast"),children:" "})]})};e.s(["default",0,({location:e,onlyChart:n,initializing:s,initialError:l})=>{let o=(0,t.useParams)()?.locale,c=(0,i.useCanonicalBasePath)(),{loadingForecast:d,chartData:u,hasChartData:p,insightTextLong:h}=(0,a.usePrecipIntensityData)(e,o);return l?null:(0,r.jsx)(S,{location:e,locale:o,onlyChart:n,isLoading:s||d,chartData:u,hasChartData:p,insightTextLong:h,canonicalBasePath:c})}],922033)},147204,505307,e=>{"use strict";var r=e.i(247865),t=e.i(546446),i=e.i(674885),a=e.i(617874),n=e.i(349262),s=e.i(381477),l=e.i(495892),o=e.i(986519),c=e.i(911927),d=e.i(97991),u=e.i(474245),p=e.i(11697);let h=(e,t)=>{let{data:i,isLoading:a}=(0,p.useGetWeatherInsights)({geoCode:e?.geocode??null,insightType:u.InsightType.PRECIP_INSIGHT,locale:t}),n=(0,r.useMemo)(()=>i?.find(e=>e?.supplement?.precipSource==="wwir"),[i]);return{loadingInsight:a,insightHeadline:n?.insightHeadline[0]||"",insightTextLong:n?.insightTextLong[0]||""}};e.s(["usePrecipInsight",0,h],505307);let f={revalidateOnFocus:!1,dedupingInterval:6e4};e.s(["usePrecipIntensityData",0,(e,u)=>{let p=(0,t.useAtomValue)(i.userUnitPreferenceAtom),g=(0,a.unitsSystemByName)(p)||a.imperial,m=g.code,x=(0,c.useCscCountryCode)(),y="KR"===x,v=y&&e?.countryCode==="KR",{data:w,isLoading:T}=(0,s.default)(e&&v?["get-hourly-forecast",e.geocode,m,u,y?x:void 0]:null,([e,r,t,i,a])=>(0,l.getHourlyForecast)({geocode:r,units:t,language:i,cscCountryCode:a,duration:n.HourlyForecastDuration.TWO_DAY}),f),{data:C,isLoading:I}=(0,s.default)(e&&!v?["get-fifteen-minute-forecast",e.geocode,m,u]:null,([e,r,t,i])=>(0,o.getFifteenMinuteForecast)({geocode:r,units:t,language:i}),f),_=v?w:C,R=(0,r.useMemo)(()=>(0,d.normalizeForecastDates)(_,v),[_,v]),b=(0,r.useMemo)(()=>(0,d.createChartData)(_,g,R,v)||[],[_,v,R,g]),S=(0,r.useMemo)(()=>(0,d.checkHasChartData)(b),[b]),{loadingInsight:j,insightHeadline:N,insightTextLong:P}=h(e,u);return{loadingForecast:T||I,chartData:b,hasChartData:S,loadingInsight:j,insightHeadline:N,insightTextLong:P}}],147204)},97991,317774,e=>{"use strict";var r=e.i(796424);let t=["rain","freezing_rain"],i=["snow","sleet"],a={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"};e.s(["PRECIP_COLOR",0,"#DD85A7","RAIN_COLOR",0,"#47A25D","RAIN_ICON_CODES",0,t,"SENSIBLE_WX_TO_PRECIP_TYPE",0,a,"SNOW_COLOR",0,"#65B0C3","SNOW_ICON_CODES",0,i],317774);let n=(e=-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}},s=(e=-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}};e.s(["checkHasChartData",0,e=>!!e?.find(({level:e})=>e>0),"createChartData",0,(e,r,l,o)=>e?(o?e?.slice(0,7)||[]:e||[]).map((e,c)=>{let d=e.iconCodeExtend,u=e.precipType,p=(({precipRate:e,iconCodeExtend:r,precipType:l,unitsSystem:o})=>{let c=o?.precip!=="in"?Number((e/25.4).toFixed(2)):e,d="precip"===l||0===e?a[r]:l;switch(!0){case t.includes(d):return n(c);case i.includes(d):return s(c);default:return 0}})({precipRate:o?e.qpf:e.precipRate,iconCodeExtend:d,precipType:u,unitsSystem:r});return{precipType:u,validTimeLocal:l[c],level:p}}):Array(7).fill({precipType:"",validTimeLocal:"",level:0}),"getChartPrecipTypes",0,e=>e.reduce((e,{precipType:r})=>(e[r]=!0,e),{}),"getRainLevel",0,n,"getSnowLevel",0,s,"normalizeForecastDates",0,(e,t)=>{if(!e?.length)return[];let i=e.map(e=>(0,r.getNormalizedDateString)(e.validTimeLocal));return t?i.slice(0,7):i}],97991)},11697,e=>{"use strict";var r=e.i(381477),t=e.i(698674),i=e.i(546446),a=e.i(674885),n=e.i(617874);let s={revalidateOnFocus:!1,dedupingInterval:6e4};e.s(["useGetWeatherInsights",0,({key:e="get-weather-insights",geoCode:l,insightType:o,locale:c,par:d="twc",cscCountryCode:u})=>{let p=(0,i.useAtomValue)(a.userUnitPreferenceAtom),h=((0,n.unitsSystemByName)(p)||n.imperial).code;return(0,r.default)(l?[e,o,l,h,d,c]:null,([e,r,i,a,n,s])=>(0,t.getWeatherInsights)({geocode:i,units:a,language:s,insightType:r,par:n,cscCountryCode:"KR"===u?"KR":void 0}),s)}])},529014,e=>{"use strict";var r=e.i(902875),t=e.i(632137),i=e.i(617874);e.s(["Accumulation",0,({precipType:e="rain",rain:a,snow:n,qpf:s=0,qpfSnow:l=0,units:o,unitOverride:c,className:d,unitClass:u})=>{let p,h,f=a??s,g=n??l,m=o?(0,i.unitsSystemByCode)(o):null;if("snow"===e)p=g,h="accumulation";else if("rain"===e)p=f,h="precip";else if("precip"===e){let e=Number(f)>=Number(g);p=e?f:g,h=e?"precip":"accumulation"}else p=f,h="precip";let x=m?.[h];return(0,r.jsxs)("span",{"data-testid":"AccumulationValue",className:(0,t.cn)(d),children:[(0,r.jsx)("span",{children:p})," ",(0,r.jsx)("span",{className:(0,t.cn)(u),children:c||x})]})}])},650561,e=>{"use strict";var r=e.i(902875),t=e.i(632137);e.s(["Card",0,function({className:e,...i}){return(0,r.jsx)("div",{"data-slot":"card",className:(0,t.cn)("bg-card text-card-foreground flex flex-col gap-6 rounded-xl py-6",e),...i})},"CardContent",0,function({className:e,...i}){return(0,r.jsx)("div",{"data-slot":"card-content",className:(0,t.cn)("px-6",e),...i})},"CardHeader",0,function({className:e,...i}){return(0,r.jsx)("div",{"data-slot":"card-header",className:(0,t.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",e),...i})}])},307215,e=>{"use strict";e.s(["containerSizes",0,{"@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}])},713272,e=>{"use strict";var r=e.i(873598),t=e.i(796424);e.s(["convertToTimeInTimezone",0,(e,i)=>(0,t.getNormalizedDateString)(new Intl.DateTimeFormat("en-US",{timeZone:(0,r.getCompatibleTimezone)(i),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)))])},409846,e=>{"use strict";var r=e.i(873598);e.s(["formatTime",0,(e,t,i)=>{if(!e)return"";try{let a=new Date(e),n={hour:"numeric",minute:"2-digit",hour12:!0,timeZoneName:"short",...i?{timeZone:(0,r.getCompatibleTimezone)(i)}:{}};if(!t)return a.toLocaleTimeString("en-US",n);return a.toLocaleTimeString(t,n)}catch(e){return console.error("Error formatting time:",e),""}}])},65659,e=>{"use strict";var r=e.i(506424);e.s(["formatWeekdayWithMonthAndDate",0,({date:e,locale:t="en-US",timeZone:i})=>{if(!e)return"";let{cDate:a,cTimeZone:n}=(0,r.getCompatibleValues)({date:e,locale:t,timeZone:i});return new Intl.DateTimeFormat(t,{weekday:"long",day:"numeric",month:"long",timeZone:n}).format(a)}])}]);