(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,698674,(e,l,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getWeatherInsights=n;let a=e.r(449802),r=e.r(678651),s=e.r(414655);async function n(e){let l=(0,a.getSunV3WeatherInsightsUrlConfig)(e),t=(0,r.urlFrom)(l),n=await fetch(t,{headers:{"Accept-Encoding":"gzip"},next:{revalidate:300}});return(0,s.handleFetchResponse)(n)}},474245,(e,l,t)=>{"use strict";var a,r;Object.defineProperty(t,"__esModule",{value:!0}),t.InsightType=void 0,(r=a||(t.InsightType=a={})).ALL="all",r.BREAKING_VIDEO_INSIGHT="breakingVideoInsight",r.CHANCE_PRECIP_INSIGHT="chancePrecipInsight",r.SUNNY_DAY_INSIGHT="sunnyDayInsight",r.POLLEN_INSIGHT="pollenInsight",r.ALLERGY_AGGRAVATOR_INSIGHT="allergyAggravatorInsight",r.TEMPERATURE_CHANGE_INSIGHT="temperatureChangeInsight",r.TRENDING_TEMPERATURE_INSIGHT="trendingTemperatureInsight",r.SUN_INSIGHT="sunInsight",r.SHORT_TERM_PRECIP_INSIGHT="shortTermPrecipInsight",r.THUNDERSTORM_SOON_INSIGHT="thunderstormSoonInsight",r.SEVERE_STORM_INSIGHT="severeStormInsight",r.PRECIP_INSIGHT="precipInsight"},449802,(e,l,t)=>{"use strict";e.i(288906),Object.defineProperty(t,"__esModule",{value:!0}),t.getSunV3WeatherInsightsUrlConfig=function({geocode:e,placeId:l,postalKey:t,insightType:r=a.InsightType.ALL,units:s,language:n,par:i,cscCountryCode:o}){let c={format:"json",units:s,language:n,apiKey:"71f92ea9dd2f4790b92ea9dd2f779061",insightType:r,par:i,cscCountryCode:o};return e?c.geocode=e:l?c.placeid=l:t&&(c.postalKey=t),{host:"api.weather.com",protocol:"https",pathname:"/v3/insights",query:c}};let a=e.r(474245)},550008,(e,l,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getPollenDaypart=n,t.getPollenForecastDaily=i,t.getPollenObservations=o,t.getPollenHistoricalMonthlySummary=c;let a=e.r(65755),r=e.r(678651),s=e.r(414655);async function n(e){let l=(0,a.getPollenDaypartUrlConfig)(e),t=(0,r.urlFrom)(l),n=await fetch(t,{headers:{"Accept-Encoding":"gzip"},next:{revalidate:300}});return await (0,s.handleFetchResponse)(n)}async function i(e){let l=await fetch((0,r.urlFrom)((0,a.getPollenForecastDailyUrlConfig)(e)),{headers:{"Accept-Encoding":"gzip"},next:{revalidate:300}});return(0,s.handleFetchResponse)(l)}async function o(e){let l=await fetch((0,r.urlFrom)((0,a.getPollenObservationsUrlConfig)(e)),{headers:{"Accept-Encoding":"gzip"},next:{revalidate:3600}});return(0,s.handleFetchResponse)(l)}async function c(e){let l=await fetch((0,r.urlFrom)((0,a.getPollenHistoricalMonthlySummaryUrlConfig)(e)),{headers:{"Accept-Encoding":"gzip"},next:{revalidate:86400}});return(0,s.handleFetchResponse)(l)}},45776,(e,l,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getPollenRiskLevel=function(e){return null==e||""===e?null:a[Number(e)]??null},t.getPollenObservationByType=function(e,l){return e?.pollenobservation.find(e=>e.pollen_type===l)};let a={1:"low",2:"moderate",3:"high",4:"veryHigh"}},65755,(e,l,t)=>{"use strict";e.i(288906),Object.defineProperty(t,"__esModule",{value:!0}),t.getPollenDaypartUrlConfig=function({geocode:e,language:l,duration:t="3day"}){return{host:"api.weather.com",protocol:"https",pathname:`/v2/indices/pollen/daypart/${t}`,query:{geocode:e,format:"json",language:l,apiKey:"71f92ea9dd2f4790b92ea9dd2f779061"}}},t.getPollenForecastDailyUrlConfig=function({geocode:e,language:l}){return{host:"api.weather.com",protocol:"https",pathname:"/v3/wx/indices/pollen/forecast/daily/5day",query:{geocode:e,format:"json",language:l,apiKey:"71f92ea9dd2f4790b92ea9dd2f779061"}}},t.getPollenObservationsUrlConfig=function({geocode:e,language:l}){let[t="",r=""]=e.split(",").map(e=>e.trim());return{host:"api.weather.com",protocol:"https",pathname:`/v1/geocode/${t}/${r}/observations/pollen.json`,query:{language:a.includes(l)?l:"en-US",apiKey:"71f92ea9dd2f4790b92ea9dd2f779061"}}},t.getPollenHistoricalMonthlySummaryUrlConfig=function({geocode:e,language:l}){return{host:"api.weather.com",protocol:"https",pathname:"/v3/wx/pollen/historical/monthlySummary",query:{geocode:e,format:"json",language:l,apiKey:"71f92ea9dd2f4790b92ea9dd2f779061"}}};let a=["en-US","es-ES","es-US"]},517480,e=>{"use strict";var l=e.i(902875),t=e.i(247865),a=e.i(747961);let r=(0,t.forwardRef)(({title:e,titleId:t,desc:a,descId:r,...s},n)=>(0,l.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:n,"aria-labelledby":t,"aria-describedby":r,...s,children:[a?(0,l.jsx)("desc",{id:r,children:a}):null,void 0===e?(0,l.jsx)("title",{id:t,children:"grass"}):e?(0,l.jsx)("title",{id:t,children:e}):null,(0,l.jsx)("path",{fill:"currentColor",fillRule:"evenodd",d:"M10.366 2.062c.194.108.291.331.238.546-.751 3.018-.824 5.682-.714 7.753.492-1.662 1.312-3.691 2.919-5.446a.494.494 0 0 1 .605-.097c.2.11.296.345.232.564a25.4 25.4 0 0 0-.807 3.851c-.185 1.515-.185 3.022.205 4.113a.493.493 0 0 1-.928.328c-.47-1.312-.444-3.008-.254-4.56.066-.54.153-1.07.25-1.573-.966 1.698-1.384 3.427-1.696 4.715-.101.419-.191.79-.285 1.1a.492.492 0 0 1-.96-.084l-.001-.007c-.213-1.791-.582-4.891.033-8.718-.707 1.279-1.072 2.704-1.268 4.06-.144 1-.195 1.949-.23 2.758l-.012.309c-.027.659-.05 1.245-.127 1.635a.492.492 0 0 1-.97-.025c-.323-2.224-1.173-4.559-2.65-6.574.215.872.401 1.8.55 2.686.283 1.695.441 3.311.38 4.15a.492.492 0 0 1-.983-.072c.053-.711-.086-2.226-.37-3.917-.28-1.68-.693-3.466-1.16-4.71a.49.49 0 0 1 .192-.581.495.495 0 0 1 .613.059c1.71 1.653 2.894 3.65 3.626 5.698a23 23 0 0 1 .166-1.554c.303-2.095 1.007-4.496 2.815-6.323a.495.495 0 0 1 .591-.084",clipRule:"evenodd"})]})),s=t.default.forwardRef((e,t)=>(0,l.jsx)(a.BaseIcon,{ref:t,icon:r,...e}));s.displayName="Grass",e.s(["Grass",0,s])},129955,154211,e=>{"use strict";var l=e.i(902875),t=e.i(247865),a=e.i(747961);let r=(0,t.forwardRef)(({title:e,titleId:t,desc:a,descId:r,...s},n)=>(0,l.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:n,"aria-labelledby":t,"aria-describedby":r,...s,children:[a?(0,l.jsx)("desc",{id:r,children:a}):null,void 0===e?(0,l.jsx)("title",{id:t,children:"ragweed"}):e?(0,l.jsx)("title",{id:t,children:e}):null,(0,l.jsxs)("g",{fill:"currentColor",children:[(0,l.jsx)("path",{fillRule:"evenodd",d:"M5.258 7.49a.48.48 0 0 1 .686.084q.026.034.089.128c.505.754 2.832 4.226 7.43 5.491.261.072.416.346.346.613a.49.49 0 0 1-.6.353c-2.681-.738-4.647-2.175-5.963-3.456a15 15 0 0 1-2.014-2.426l-.014-.021-.042-.063v-.001a.51.51 0 0 1 .082-.703",clipRule:"evenodd"}),(0,l.jsx)("path",{fillRule:"evenodd",d:"M7.728 7.146c.233.14.31.447.173.685-.381.662-.571 1.242-.529 1.691a.5.5 0 0 1-.2.454.48.48 0 0 1-.485.051c-.2-.09-.453-.104-.788-.051a7 7 0 0 0-.702.16q-.18.047-.378.096a.49.49 0 0 1-.588-.372.5.5 0 0 1 .364-.602q.14-.034.303-.077c.267-.07.57-.15.852-.194.213-.034.442-.053.676-.037.09-.56.34-1.118.633-1.627a.483.483 0 0 1 .67-.177m2.435 1.219a.51.51 0 0 1 .014.707c-.293.313-.445.757-.49 1.245-.047.487.017.967.103 1.287a.51.51 0 0 1-.136.496.48.48 0 0 1-.493.11c-.244-.085-.65-.098-1.19.004-.525.1-1.126.301-1.728.586a.484.484 0 0 1-.649-.243.505.505 0 0 1 .238-.665 8.3 8.3 0 0 1 1.96-.661c.316-.06.63-.094.925-.09a5 5 0 0 1-.004-.92c.059-.62.26-1.31.76-1.842a.48.48 0 0 1 .69-.014m2.092.935c.24.125.336.427.213.673-.594 1.19-.332 2.305.01 3.082a.51.51 0 0 1-.064.518.48.48 0 0 1-.48.178c-.268-.056-.915-.016-1.622.183-.71.2-1.32.516-1.606.884a.48.48 0 0 1-.687.08.51.51 0 0 1-.08-.702c.486-.626 1.351-1.012 2.114-1.227.428-.12.875-.2 1.27-.23-.25-.88-.327-2.018.274-3.221a.484.484 0 0 1 .658-.218",clipRule:"evenodd"}),(0,l.jsx)("path",{d:"M4.376 5.267c0 .279-.22.504-.493.504a.5.5 0 0 1-.492-.504c0-.278.22-.504.492-.504s.493.226.493.504M7.488 4.626c0 .278-.22.504-.493.504a.5.5 0 0 1-.492-.504c0-.279.22-.504.492-.504s.493.225.493.504M3.68 6.79c0 .278-.22.504-.493.504a.5.5 0 0 1-.492-.504c0-.279.22-.504.492-.504s.493.225.493.504M5.033 3.831c0 .279-.22.504-.492.504a.5.5 0 0 1-.493-.504c0-.278.22-.504.493-.504.272 0 .492.226.492.504M2.695 5.267c0 .279-.22.504-.493.504a.5.5 0 0 1-.492-.504c0-.278.22-.504.492-.504s.493.226.493.504M3.545 3.776c0 .278-.22.504-.492.504a.5.5 0 0 1-.493-.504c0-.278.22-.504.493-.504.272 0 .492.226.492.504M2.56 2.178c0 .278-.22.504-.493.504a.5.5 0 0 1-.492-.504c0-.279.22-.504.492-.504s.493.225.493.504M1.477 6.087c0 .278-.22.504-.492.504a.5.5 0 0 1-.493-.504c0-.279.22-.504.493-.504.272 0 .492.225.492.504M1.922 3.618c0 .278-.22.504-.493.504a.5.5 0 0 1-.492-.504c0-.278.22-.504.492-.504s.493.226.493.504M6.018 2.682c0 .278-.22.504-.492.504a.5.5 0 0 1-.493-.504c0-.279.22-.504.493-.504.272 0 .492.225.492.504M4.172 2.178c0 .278-.22.504-.492.504a.5.5 0 0 1-.493-.504c0-.279.22-.504.493-.504.272 0 .492.225.492.504M2.907 8.234c0 .278-.22.503-.493.503a.5.5 0 0 1-.492-.503c0-.279.22-.504.492-.504s.493.225.493.504M6 5.13c0 .278-.22.504-.493.504a.5.5 0 0 1-.492-.504c0-.279.22-.504.492-.504S6 4.85 6 5.13M5.197 6.565c0 .279-.22.504-.493.504a.5.5 0 0 1-.492-.504c0-.278.22-.504.492-.504s.493.226.493.504"})]})]})),s=t.default.forwardRef((e,t)=>(0,l.jsx)(a.BaseIcon,{ref:t,icon:r,...e}));s.displayName="Ragweed",e.s(["Ragweed",0,s],129955);let n=(0,t.forwardRef)(({title:e,titleId:t,desc:a,descId:r,...s},n)=>(0,l.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:n,"aria-labelledby":t,"aria-describedby":r,...s,children:[a?(0,l.jsx)("desc",{id:r,children:a}):null,void 0===e?(0,l.jsx)("title",{id:t,children:"tree"}):e?(0,l.jsx)("title",{id:t,children:e}):null,(0,l.jsxs)("g",{fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd",children:[(0,l.jsx)("path",{d:"M7.373 1.526c-.9.048-1.651.355-2.01.907l-.146.224h-.262c-.367 0-.63.134-.811.36-.19.238-.331.632-.331 1.214v.44l-.423.06c-.842.12-1.356 1.032-1.13 1.91l.046.175-.074.165a.92.92 0 0 0 .022.71c.095.204.274.369.62.369h.354l.112.345c.076.236.382.575.889.813.49.228 1.06.309 1.56.15a.49.49 0 0 1 .612.333.507.507 0 0 1-.324.63c-.78.248-1.602.109-2.253-.195-.52-.243-1.006-.628-1.273-1.095a1.58 1.58 0 0 1-1.18-.916 1.98 1.98 0 0 1-.095-1.393c-.224-1.19.378-2.508 1.576-2.906.054-.569.23-1.067.535-1.45.333-.416.79-.656 1.314-.714C5.338.876 6.378.57 7.32.52c.951-.052 1.954.145 2.627.524 1.817-.196 2.996.872 3.408 2.07.76.204 1.2.743 1.347 1.362a2.1 2.1 0 0 1-.184 1.453c.315.568.364 1.31.19 1.948-.201.731-.723 1.418-1.594 1.64-.33.668-1.005.936-1.608 1.016-.694.092-1.447-.033-1.961-.202a.507.507 0 0 1-.318-.633.487.487 0 0 1 .616-.327c.413.135 1.018.23 1.537.162.526-.07.816-.277.91-.604l.092-.317.32-.04c.581-.072.925-.468 1.063-.97.146-.533.027-1.072-.211-1.333l-.328-.362.345-.344c.145-.146.262-.498.18-.848-.07-.292-.283-.592-.842-.664l-.34-.044-.076-.342c-.203-.896-1.048-1.83-2.58-1.6l-.182.026-.154-.102c-.444-.293-1.311-.51-2.205-.462M10.353 14.985c0 .279-.219.504-.49.504H5.646a.497.497 0 0 1-.49-.504c0-.278.22-.504.49-.504h4.217c.271 0 .49.226.49.504"}),(0,l.jsx)("path",{d:"M7.755 8.092c.27 0 .49.225.49.504v6.184c0 .279-.22.505-.49.505a.497.497 0 0 1-.49-.505V8.596c0-.279.219-.504.49-.504"}),(0,l.jsx)("path",{d:"M7.334 8.929a.514.514 0 0 1 .044-.712l3.033-2.744a.48.48 0 0 1 .692.046.514.514 0 0 1-.045.711L8.025 8.974a.48.48 0 0 1-.691-.045"}),(0,l.jsx)("path",{d:"M8.092 8.752a.48.48 0 0 1-.687.096L5.842 7.625a.514.514 0 0 1-.093-.706.48.48 0 0 1 .686-.096l1.563 1.222a.514.514 0 0 1 .094.707"})]})]})),i=t.default.forwardRef((e,t)=>(0,l.jsx)(a.BaseIcon,{ref:t,icon:n,...e}));i.displayName="Tree",e.s(["Tree",0,i],154211)},394954,e=>{"use strict";var l=e.i(902875),t=e.i(730921),a=e.i(64412),r=e.i(281687),s=e.i(304116),n=e.i(269153),i=e.i(731947),o=e.i(588896),c=e.i(162744),d=e.i(581014),u=e.i(368847),h=e.i(240058),g=e.i(523084),x=e.i(385636),p=e.i(180663),f=e.i(175424);let m={low:"riskLowDescription",moderate:"riskModerateDescription",high:"riskHighDescription",veryHigh:"riskVeryHighDescription"},y="rounded-lg border border-gray-200 p-4",v=({title:e,level:t,body:a,children:r})=>(0,l.jsxs)("section",{className:"flex flex-col gap-3",children:[(0,l.jsx)(u.default,{variant:"Title.XS",elementType:t,className:"text-lg",children:e}),a&&(0,l.jsx)("p",{className:"text-base text-gray-900",children:a}),r]}),b=({headingLevel:e,allergyHref:t,today:a,insight:r,historical:s,video:n,changeFromYesterday:i})=>{let o=(0,d.useTranslations)("AllergyLearnMore"),c="h1"===e?"h2":"h3";return(0,l.jsxs)("article",{"data-testid":"AllergyLearnMoreModule",className:"flex flex-col gap-8",children:[t&&(0,l.jsxs)(h.default,{href:t,className:"-mb-4 inline-flex h-8 w-fit items-center gap-1 rounded-lg px-3 text-sm font-bold text-gray-900 transition-colors hover:bg-gray-100 focus-visible:ring-2 focus-visible:ring-gray-900 focus-visible:outline-none active:bg-gray-200",children:[(0,l.jsx)(g.ChevronLeft,{"aria-hidden":"true",className:"size-4 text-current"}),o("breadcrumbAllergies")]}),(0,l.jsxs)("header",{className:"flex flex-col gap-2",children:[(0,l.jsx)("p",{className:"text-sm font-bold text-gray-900",children:o("eyebrow")}),(0,l.jsx)(u.default,{variant:"Title.M",elementType:e,children:o("title")}),(0,l.jsx)("p",{className:"text-base text-gray-900",children:o("intro")})]}),(0,l.jsx)(v,{title:o("pollenCountTitle"),level:c,body:o("pollenCountBody"),children:a&&(0,l.jsx)(p.PollenTodaySummary,{className:y,risk:a.risk,average:a.count,peak:a.peak,changeFromYesterday:i,insight:r})}),(0,l.jsx)(v,{title:o("howWeMeasureTitle"),level:c,body:o("howWeMeasureBody")}),n&&(0,l.jsx)("div",{"data-testid":"AllergyLearnMoreVideo",className:"w-full",children:n}),(0,l.jsx)(v,{title:o("pollenLevelTitle"),level:c,body:o("pollenLevelIntro"),children:(0,l.jsx)("ul",{className:`${y} flex flex-col [&>*+*]:border-t [&>*+*]:border-gray-200`,children:f.POLLEN_RISK_LEVELS.map(e=>(0,l.jsxs)("li",{className:"flex flex-col items-start gap-2 py-3",children:[(0,l.jsx)(x.PollenRiskIndicator,{level:e,variant:"badge",barsFirst:!0}),(0,l.jsx)("p",{className:"text-base text-gray-600",children:o(m[e])})]},e))})}),(0,l.jsx)(v,{title:o("historicalTitle"),level:c,body:o("historicalBody"),children:s}),(0,l.jsx)(v,{title:o("importantNoticeTitle"),level:c,children:(0,l.jsx)("p",{className:"text-base text-gray-600",children:o("importantNoticeBody")})})]})};e.s(["default",0,function({headingLevel:e="h2",video:d}){let{location:u}=(0,a.useLocation)(),h=(0,t.useLocale)(),g=(0,n.useIsSamsungPartner)(),x=(0,r.useChromeLocation)(),p=x?.placeId?(0,s.buildLocationPageHref)({pageType:"allergy",locale:h,canonicalID:x.canonicalID,featureId:x.featureId,placeId:x.placeId,skipCanonical:g}):void 0,{data:f}=(0,i.usePollenForecast)(u),m=(0,o.useAllergyInsight)(u,f?.days[0]?.count);return(0,l.jsx)(b,{headingLevel:e,allergyHref:p,video:d,today:f?.days[0],insight:m,changeFromYesterday:f?.changeFromYesterday??null,historical:(0,l.jsx)(c.HistoricalPollenCounts,{location:u,showFilters:!1,showHeader:!1,className:"rounded-lg border border-gray-200 p-4"})})}],394954)},848321,function(e){e.n(e.i(394954))},162744,e=>{"use strict";var l=e.i(902875),t=e.i(247865),a=e.i(730921),r=e.i(581014),s=e.i(517480),n=e.i(129955),i=e.i(154211),o=e.i(380993),c=e.i(632137),d=e.i(873598),u=e.i(200359),h=e.i(175424),g=e.i(923931),x=e.i(381477),p=e.i(550008);let f=(e,l)=>({values:Array.from({length:12},(l,t)=>e[t]??0),max:Math.max(l,...e,0)}),m=({values:e,max:a,locale:r,initialMonth:s,label:n})=>{let[i,o]=(0,t.useState)(s-1),d=(0,t.useId)(),u=a>0?1.1*a:1;return(0,l.jsxs)("div",{className:"@container/pollen-chart flex flex-col gap-2",children:[(0,l.jsx)("div",{role:"group","aria-label":n,tabIndex:0,onKeyDown:l=>{let t="ArrowRight"===l.key||"ArrowDown"===l.key?1:"ArrowLeft"===l.key||"ArrowUp"===l.key?-1:0;t&&(l.preventDefault(),o(l=>(l+t+e.length)%e.length))},"aria-describedby":d,className:"relative isolate flex items-end gap-1 pt-14 focus-visible:ring-2 focus-visible:ring-gray-900 focus-visible:outline-none",style:{height:216},children:e.map((e,t)=>{let a=Math.max(e/u*160,e>0?3:1),s=t===i;return(0,l.jsxs)("div",{className:"relative flex h-full flex-1 items-end justify-center",onMouseEnter:()=>o(t),onClick:()=>o(t),children:[s&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)("div",{id:d,role:"status",className:"absolute top-0 z-10 flex flex-col items-center rounded bg-gray-900 px-2 py-1 text-center whitespace-nowrap text-white",children:[(0,l.jsx)("span",{className:"text-xs",children:(0,g.formatPollenMonth)(t+1,r)}),(0,l.jsxs)("span",{className:"text-base font-bold",children:[Math.round(e),(0,l.jsx)("span",{className:"text-xxs font-medium",children:h.POLLEN_COUNT_UNIT})]})]}),(0,l.jsx)("div",{"aria-hidden":"true",className:"absolute top-12 w-px border-l border-dashed border-gray-900",style:{bottom:a}}),(0,l.jsx)("div",{"aria-hidden":"true",className:"absolute h-2 w-2 rounded-full bg-gray-900",style:{bottom:a-4}})]}),(0,l.jsx)("div",{"aria-hidden":"true",className:(0,c.cn)("w-full rounded-t-xs bg-[#00739e] transition-opacity",!s&&"opacity-90"),style:{height:a}})]},t)})}),(0,l.jsx)("div",{"aria-hidden":"true",className:"flex gap-1 text-xs text-gray-600",children:e.map((e,t)=>(0,l.jsxs)("span",{className:"flex-1 text-center",children:[(0,l.jsx)("span",{className:"@md/pollen-chart:hidden",children:(0,g.formatPollenMonth)(t+1,r,"narrow")}),(0,l.jsx)("span",{className:"hidden @md/pollen-chart:inline",children:(0,g.formatPollenMonth)(t+1,r,"short")})]},t))})]})},y={tree:i.Tree,grass:s.Grass,ragweed:n.Ragweed},v={tree:"treePeak",grass:"grassPeak",ragweed:"ragweedPeak"},b=({history:e,locale:a,initialMonth:s,showFilters:n=!0})=>{let i=(0,r.useTranslations)("HistoricalPollenCounts"),[o,c]=(0,t.useState)("all"),d=e.series[o],x="all"===o?h.POLLEN_SPECIES:[o];return(0,l.jsxs)("div",{className:"@container/pollen-history flex flex-col gap-6",children:[n&&(0,l.jsx)(u.PollenFilterChips,{selected:o,onSelect:c,label:i("filterLabel"),className:"hidden @xl/pollen-history:flex"}),(0,l.jsxs)("div",{className:"flex flex-col gap-6 @xl/pollen-history:flex-row @xl/pollen-history:items-end",children:[(0,l.jsx)("div",{className:"min-w-0 @xl/pollen-history:flex-[2]",children:(0,l.jsx)(m,{values:d.values,max:d.max,locale:a,initialMonth:s,label:i("chartLabel")},o)}),(0,l.jsx)("ul",{className:"border-t border-gray-200 @xl/pollen-history:flex-1",children:x.map(t=>{let r=y[t];return(0,l.jsxs)("li",{className:"flex items-center gap-3 border-b border-gray-200 py-2 text-sm text-gray-900",children:[(0,l.jsx)(r,{className:"h-5 w-5","aria-hidden":"true"}),(0,l.jsx)("span",{className:"flex-1",children:i(v[t])}),(0,l.jsx)("span",{children:(0,g.formatPollenMonth)(e.peakMonth[t],a)})]},t)})})]})]})},j=()=>(0,l.jsx)("div",{className:"flex h-56 items-end gap-1",children:Array.from({length:12},(e,t)=>(0,l.jsx)("div",{className:"flex-1 animate-pulse rounded-t-xs bg-gray-200",style:{height:`${20+37*t%70}%`}},t))});e.s(["HistoricalPollenCounts",0,({location:e,showFilters:t=!0,showHeader:s=!0,className:n})=>{var i;let u=(0,r.useTranslations)("HistoricalPollenCounts"),h=(0,a.useLocale)(),{data:g,error:m,isPending:y}=function(e){let l=(0,a.useLocale)(),t=e?.geocode,{data:r,error:s}=(0,x.default)(t?["pollenHistoricalMonthly",t,l]:null,([,e,l])=>(0,p.getPollenHistoricalMonthlySummary)({geocode:e,language:l}),{revalidateOnFocus:!1,dedupingInterval:6e4});return{data:r?r.totalPollenCountAvg?.length?{series:{all:f(r.totalPollenCountAvg,r.totalPollenCountMax),tree:f(r.treePollenCountAvg,r.treePollenCountMax),grass:f(r.grassPollenCountAvg,r.grassPollenCountMax),ragweed:f(r.ragweedPollenCountAvg,r.ragweedPollenCountMax)},peakMonth:{tree:r.treePollenPeakMonth,grass:r.grassPollenPeakMonth,ragweed:r.ragweedPollenPeakMonth}}:null:null,error:s,isPending:!s&&!r}}(e);return!m&&(y||g)?(0,l.jsxs)(o.Card,{"data-testid":"HistoricalPollenCountsModule","aria-label":u("title"),className:(0,c.cn)(n),children:[s&&(0,l.jsx)(o.CardHeader,{text:u("title")}),(0,l.jsx)(o.CardContent,{isLoading:y,skeleton:(0,l.jsx)(j,{}),children:g&&(0,l.jsx)(b,{history:g,locale:h,initialMonth:(i=e?.ianaTimeZone,Number(new Intl.DateTimeFormat("en-US",{month:"numeric",...i?{timeZone:(0,d.getCompatibleTimezone)(i)}:{}}).format(new Date))||1),showFilters:t})})]}):null}],162744)},200359,e=>{"use strict";var l=e.i(902875),t=e.i(581014),a=e.i(632137);let r=["all",...e.i(175424).POLLEN_SPECIES];e.s(["PollenFilterChips",0,({selected:e,onSelect:s,label:n,className:i})=>{let o=(0,t.useTranslations)("Pollen");return(0,l.jsx)("div",{role:"group","aria-label":n,className:(0,a.cn)("flex flex-wrap gap-2",i),children:r.map(t=>{let r=t===e;return(0,l.jsx)("button",{type:"button","aria-pressed":r,onClick:()=>s(t),className:(0,a.cn)("inline-flex h-8 cursor-pointer items-center rounded-2xl px-3 text-sm font-semibold whitespace-nowrap transition-colors","focus-visible:ring-2 focus-visible:ring-gray-900 focus-visible:ring-offset-2 focus-visible:outline-none",r?"bg-gray-900 text-white":"bg-[#f2f2f2] text-gray-900 hover:bg-gray-200"),children:o(t)},t)})})}])},385636,e=>{"use strict";var l=e.i(902875),t=e.i(581014),a=e.i(632137),r=e.i(175424);let s=({level:e,reserveSpace:t=!1,className:s})=>{let n=r.POLLEN_RISK_BARS[e];return(0,l.jsx)("span",{"aria-hidden":"true",className:(0,a.cn)("inline-flex h-3 shrink-0 items-end gap-0.5",s),children:Array.from({length:t?4:n},(t,a)=>(0,l.jsx)("span",{className:"h-full w-1 rounded-xs",style:a{let u=(0,t.useTranslations)("Pollen"),h=(0,l.jsx)(s,{level:e,reserveSpace:o});return(0,l.jsxs)("span",{className:(0,a.cn)("inline-flex items-center","badge"===n?"h-6 gap-1 rounded bg-[#f2f2f2] px-2 text-xs font-bold":"gap-2",c),children:[i&&h,(0,l.jsx)("span",{className:d,children:u(r.POLLEN_RISK_LABEL_KEYS[e])}),!i&&h]})}])},923931,e=>{"use strict";var l=e.i(873598);e.s(["formatPollenDayLabel",0,function(e,t,a){let r,s=new Date(e);if(Number.isNaN(s.getTime()))return"";let n=new Intl.DateTimeFormat(t,(r={weekday:"short",day:"numeric"},a?{...r,timeZone:(0,l.getCompatibleTimezone)(a)}:r));if(!t.startsWith("en"))return n.format(s);let i=n.formatToParts(s),o=i.find(e=>"weekday"===e.type)?.value??"",c=i.find(e=>"day"===e.type)?.value??"";return`${o} ${c}`.trim()},"formatPollenMonth",0,function(e,l,t="long"){return e12?"":new Intl.DateTimeFormat(l,{month:t,timeZone:"UTC"}).format(new Date(Date.UTC(2e3,e-1,15,12)))}])},175424,e=>{"use strict";e.s(["POLLEN_COUNT_UNIT",0,"/m³","POLLEN_RISK_BARS",0,{low:1,moderate:2,high:3,veryHigh:4},"POLLEN_RISK_COLORS",0,{low:"#4ed07b",moderate:"#ffb900",high:"#ff4c00",veryHigh:"#ba0d00"},"POLLEN_RISK_LABEL_KEYS",0,{low:"riskLow",moderate:"riskModerate",high:"riskHigh",veryHigh:"riskVeryHigh"},"POLLEN_RISK_LEVELS",0,["low","moderate","high","veryHigh"],"POLLEN_SPECIES",0,["tree","grass","ragweed"],"PRECIP_ACCENT_THRESHOLD",0,30])},588896,180663,e=>{"use strict";var l=e.i(730921),t=e.i(474245),a=e.i(11697);e.s(["useAllergyInsight",0,function(e,r){let s=(0,l.useLocale)(),{data:n}=(0,a.useGetWeatherInsights)({key:"allergy-aggravator-insight",geoCode:e?.geocode??null,insightType:t.InsightType.ALLERGY_AGGRAVATOR_INSIGHT,locale:s});if(!r||re.insightType===t.InsightType.ALLERGY_AGGRAVATOR_INSIGHT);return i?.insightText?.[0]||void 0}],588896);var r=e.i(902875),s=e.i(581014),n=e.i(247865),i=e.i(747961);let o=(0,n.forwardRef)(({title:e,titleId:l,desc:t,descId:a,...s},n)=>(0,r.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:n,"aria-labelledby":l,"aria-describedby":a,...s,children:[t?(0,r.jsx)("desc",{id:a,children:t}):null,void 0===e?(0,r.jsx)("title",{id:l,children:"Arrow Down Right"}):e?(0,r.jsx)("title",{id:l,children:e}):null,(0,r.jsx)("path",{fill:"currentColor",d:"M6.11 12.875a.499.499 0 0 1 0-.998l4.865-.003-6.778-6.777a.5.5 0 0 1 .707-.708l6.778 6.778.003-4.865a.499.499 0 0 1 .997 0v5.573a1 1 0 0 1-1 1z"})]})),c=n.default.forwardRef((e,l)=>(0,r.jsx)(i.BaseIcon,{ref:l,icon:o,...e}));c.displayName="ArrowDownRight";let d=(0,n.forwardRef)(({title:e,titleId:l,desc:t,descId:a,...s},n)=>(0,r.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:n,"aria-labelledby":l,"aria-describedby":a,...s,children:[t?(0,r.jsx)("desc",{id:a,children:t}):null,void 0===e?(0,r.jsx)("title",{id:l,children:"Arrow Up Right"}):e?(0,r.jsx)("title",{id:l,children:e}):null,(0,r.jsx)("path",{fill:"currentColor",d:"M6.11 4.097a.499.499 0 0 0 0 .997l4.865.003-6.778 6.778a.5.5 0 0 0 .707.707l6.778-6.778.003 4.865a.499.499 0 0 0 .997 0V5.097a1 1 0 0 0-1-1z"})]})),u=n.default.forwardRef((e,l)=>(0,r.jsx)(i.BaseIcon,{ref:l,icon:d,...e}));u.displayName="ArrowUpRight";var h=e.i(632137),g=e.i(175424);let x=({value:e,children:l})=>(0,r.jsxs)("span",{className:"inline-flex items-baseline gap-1 whitespace-nowrap",children:[l,(0,r.jsx)("span",{className:"text-xl font-bold text-gray-900",children:e}),(0,r.jsx)("span",{className:"text-xs text-gray-500",children:g.POLLEN_COUNT_UNIT})]}),p=({value:e,label:l,mobileLabel:t})=>(0,r.jsxs)("div",{className:"flex flex-col items-start gap-0.5 @xl/pollen-today:items-center",children:[e,(0,r.jsx)("span",{className:"text-xs text-gray-500 uppercase @xl/pollen-today:hidden",children:t}),(0,r.jsx)("span",{className:"hidden text-xs text-gray-500 @xl/pollen-today:inline",children:l})]});e.s(["PollenTodaySummary",0,({risk:e,average:l,peak:t,changeFromYesterday:a,insight:n,className:i})=>{let o=(0,s.useTranslations)("Pollen"),d=e?g.POLLEN_RISK_COLORS[e]:void 0,f=null===a?null:0===a?(0,r.jsx)("span",{className:"text-xl font-bold text-gray-900","aria-hidden":"true",children:"="}):(0,r.jsxs)(x,{value:Math.abs(a),children:[a>0?(0,r.jsx)(u,{className:"h-4 w-4 self-center text-gray-900","aria-hidden":"true"}):(0,r.jsx)(c,{className:"h-4 w-4 self-center text-gray-900","aria-hidden":"true"}),(0,r.jsx)("span",{className:"sr-only",children:o(a>0?"increase":"decrease")})]});return(0,r.jsx)("div",{className:(0,h.cn)("@container/pollen-today",i),children:(0,r.jsxs)("div",{className:"flex flex-col gap-4 @xl/pollen-today:flex-row @xl/pollen-today:items-end @xl/pollen-today:justify-between",children:[(0,r.jsxs)("div",{className:"flex flex-col gap-7",children:[e&&(0,r.jsx)("p",{className:"text-4xl leading-tight font-extrabold tracking-tight",style:{color:d},children:o(g.POLLEN_RISK_LABEL_KEYS[e])}),n&&(0,r.jsx)("p",{className:"max-w-md text-base text-gray-900",children:n})]}),(0,r.jsxs)("div",{className:"flex gap-6 border-t border-gray-200 pt-4 @xl/pollen-today:border-t-0 @xl/pollen-today:pt-0 @xl/pollen-today:[&>*+*]:border-l @xl/pollen-today:[&>*+*]:border-gray-200 @xl/pollen-today:[&>*+*]:pl-6",children:[null!==l&&(0,r.jsx)(p,{value:(0,r.jsx)(x,{value:l}),label:o("todaysAverage"),mobileLabel:o("average")}),null!==t&&(0,r.jsx)(p,{value:(0,r.jsx)(x,{value:t}),label:o("todaysPeak"),mobileLabel:o("peak")}),f&&(0,r.jsx)(p,{value:f,label:o(0===a?"sameAsYesterday":"fromYesterday"),mobileLabel:o(0===a?"sameAsYesterday":"vsYesterday")})]})]})})}],180663)},731947,e=>{"use strict";var l=e.i(381477),t=e.i(730921),a=e.i(550008),r=e.i(45776),s=e.i(175424);let n={tree:"tree",grass:"grass",ragweed:"weed"},i=(e,l)=>e?.[l]??null;e.s(["usePollenForecast",0,function(e){let o=(0,t.useLocale)(),c=e?.geocode,{data:d,error:u}=(0,l.default)(c?["pollenForecastDaily",c,o]:null,([,e,l])=>(0,a.getPollenForecastDaily)({geocode:e,language:l}),{revalidateOnFocus:!1,dedupingInterval:6e4}),{data:h,error:g}=(0,l.default)(c?["pollenObservations",c,o]:null,([,e,l])=>(0,a.getPollenObservations)({geocode:e,language:l}),{revalidateOnFocus:!1,dedupingInterval:6e4}),x=!!(h||g);return{data:d&&x?function(e,l){let t=(e.validTimeLocal??[]).map((l,t)=>{let a={};for(let l of s.POLLEN_SPECIES){let s=n[l];a[l]={count:i(e[`${s}PollenCountMean`],t),risk:(0,r.getPollenRiskLevel)(i(e[`${s}PollenIndexMean`],t))}}return{validTimeLocal:l,count:i(e.totalPollenCountMean,t),peak:i(e.totalPollenCountMax,t),risk:(0,r.getPollenRiskLevel)(i(e.totalPollenIndexMean,t)),species:a}});if(!t.length)return null;let a=function(e){if(!e)return null;let l=(0,r.getPollenRiskLevel)(e.total_pollen_idx);return null!==e.total_pollen_cnt||l?{count:e.total_pollen_cnt,risk:l}:null}(l?.pollenobservations?.[0]),o=t[0]?.count??null,c=null!==o&&a?.count!=null?o-a.count:null;return{days:t,yesterday:a,changeFromYesterday:c}}(d,h):null,observations:h??null,error:u,isPending:!u&&(!d||!x)}}])},11697,e=>{"use strict";var l=e.i(381477),t=e.i(698674),a=e.i(546446),r=e.i(674885),s=e.i(617874);let n={revalidateOnFocus:!1,dedupingInterval:6e4};e.s(["useGetWeatherInsights",0,({key:e="get-weather-insights",geoCode:i,insightType:o,locale:c,par:d="twc",cscCountryCode:u})=>{let h=(0,a.useAtomValue)(r.userUnitPreferenceAtom),g=((0,s.unitsSystemByName)(h)||s.imperial).code;return(0,l.default)(i?[e,o,i,g,d,c]:null,([e,l,a,r,s,n])=>(0,t.getWeatherInsights)({geocode:a,units:r,language:n,insightType:l,par:s,cscCountryCode:"KR"===u?"KR":void 0}),n)}])}]);