(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,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"}},512620,e=>{"use strict";var l=e.i(458201),t=e.i(538167),a=e.i(747961);let i=(0,t.forwardRef)(({title:e,titleId:t,desc:a,descId:i,...n},s)=>(0,l.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:s,"aria-labelledby":t,"aria-describedby":i,...n,children:[a?(0,l.jsx)("desc",{id:i,children:a}):null,void 0===e?(0,l.jsx)("title",{id:t,children:"Information"}):e?(0,l.jsx)("title",{id:t,children:e}):null,(0,l.jsxs)("g",{fill:"currentColor",children:[(0,l.jsx)("path",{d:"M8.5 11V7h-2v1h1v3H6v1h4v-1zM8 4a.75.75 0 1 0 0 1.5A.75.75 0 0 0 8 4"}),(0,l.jsx)("path",{d:"M8 15A7 7 0 1 1 8 1a7 7 0 0 1 0 14M8 2a6 6 0 1 0 0 12A6 6 0 0 0 8 2"})]})]})),n=t.default.forwardRef((e,t)=>(0,l.jsx)(a.f,{ref:t,icon:i,...e}));n.displayName="Information",e.s(["f",0,n])},533694,e=>{"use strict";let l=new Set(["AK","HI"]);e.s(["f",0,e=>e?.countryCode==="US"&&!l.has(e.adminDistrictCode??"")])},749097,e=>{"use strict";var l=e.i(458201),t=e.i(289818),a=e.i(64412),i=e.i(181462),n=e.i(860082),s=e.i(538167),r=e.i(282446),o=e.i(580547),d=e.i(611540),c=e.i(498076),x=e.i(409846),f=e.i(16838),u=e.i(5397),h=e.i(731947),g=e.i(588896),p=e.i(495406),m=e.i(789422),y=e.i(380993),v=e.i(512620),b=e.i(240058),j=e.i(924707),w=e.i(429745),N=e.i(677691),k=e.i(738426),A=e.i(598513),P=e.i(200359);let _="allergy-species",T=({className:e})=>{let t=(0,m.r)("Pollen"),[a,i]=(0,s.useState)(!1),{href:n}=(0,N.f)(_,_),r=(0,k.f)(_),o=(0,A.f)();return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(P.f,{selected:"all",onSelect:e=>{"all"!==e&&(o({moduleId:"allergy-species-gate",interactionType:"click",interactionElement:e,featureFocus:"species-pollen-counts"},{flushImmediately:!0}),i(!0))},label:t("speciesFilterLabel"),className:e}),(0,l.jsx)(w.f,{open:a,onOpenChange:i,title:t("appGateTitle"),headline:t("appGateHeadline"),description:t("appGateDescription"),getAppHref:n,getAppLabel:t("getTheApp"),onGetAppClick:()=>r("get-the-app"),closeLabel:t("close")})]})};var L=e.i(180663);let R=({today:e,insight:t,changeFromYesterday:a,location:i,serverLocationDisplayName:n,locationHeading:s,formattedTime:r,learnMoreHref:o,spotlight:d,showSpeciesGate:c=!1,isLoading:x=!1,hasError:f=!1})=>{let u=(0,m.r)("PollenBreakdown"),h=i?.displayName||i?.name||i?.city||i?.presentationName||n||"",g=h?u("locationTitle",{displayName:h}):u("title"),p=!x&&!f&&!!e;return(0,l.jsxs)(y.N,{"data-testid":"PollenBreakdownModule","aria-label":g,"aria-busy":x||void 0,children:[(0,l.jsx)(y.Y,{children:(0,l.jsxs)("div",{className:"flex flex-wrap items-start justify-between gap-3 pb-8",children:[(0,l.jsx)(j.f,{title:g,location:i,formattedTime:r,expectsTimeStamp:!f,headingLevel:s?.level,presentationName:s?.presentationName,promotePresentationName:s?.ownsHeading,hideLocationMeta:!s?.ownsHeading,hideAffordance:!0,className:"min-w-0 flex-auto"}),d]})}),(0,l.jsxs)(y.O,{className:"flex flex-col gap-4",children:[c&&(0,l.jsx)(T,{}),(0,l.jsxs)("div",{className:"flex items-center justify-between gap-4",children:[(0,l.jsx)("p",{className:"text-lg font-bold text-gray-900",children:u("todaysPollenLevel")}),(0,l.jsxs)(b.default,{href:o,className:"inline-flex items-center gap-1 text-sm font-bold text-gray-900 hover:underline focus-visible:underline",children:[u("learnMore"),(0,l.jsx)(v.f,{className:"h-4 w-4","aria-hidden":"true"})]})]}),x&&(0,l.jsx)(H,{}),p&&e&&(0,l.jsx)(L.f,{risk:e.risk,average:e.count,peak:e.peak,changeFromYesterday:a,insight:t})]})]})},H=()=>(0,l.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,l.jsx)("div",{className:"h-10 w-48 animate-pulse rounded bg-gray-200"}),(0,l.jsx)("div",{className:"flex gap-6",children:Array.from({length:3},(e,t)=>(0,l.jsx)("div",{className:"h-10 w-20 animate-pulse rounded bg-gray-200"},t))})]}),M=({config:e})=>{let{blockType:t,...a}=e,i=function(e){if("object"==typeof e.adSlot&&e.adSlot){for(let l of e.adSlot.adSlotSizes??[])if("object"==typeof l&&"text"!==l.sizeType&&"number"==typeof l.width&&"number"==typeof l.height)return{width:l.width,height:l.height}}}(e);return(0,l.jsx)("div",{className:"shrink-0 empty:hidden [&_[data-testid$='-container']>div]:w-full",style:i&&{minWidth:i.width,minHeight:i.height},children:(0,l.jsx)(p.AdBlock,{...a})})},S=({location:e,serverLocationDisplayName:t,locationHeading:a,spotlightAd:i})=>{let n=(0,o.X)(),p=(0,c.f)(),{data:m,error:y,isPending:v}=(0,h.f)(e),b=(0,g.f)(e,m?.days[0]?.count),j=(0,r.y)(u.f),w=function(e,l,t){let[a,i]=(0,s.useState)();return(0,s.useEffect)(()=>{t&&i((0,x.f)(new Date().toISOString(),e,l))},[e,l,t]),a}(n,e?.ianaTimeZone,!!m);return a?.ownsHeading||v||!y&&m?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(f.f,{componentName:"PollenBreakdown",data:{props:{location:e},state:{data:m,error:y,componentState:y&&"error"||v&&"loading"||"ready"}},enabled:j}),(0,l.jsx)(R,{today:m?.days[0],insight:b,changeFromYesterday:m?.changeFromYesterday??null,location:e,serverLocationDisplayName:t,locationHeading:a,spotlight:i&&(0,l.jsx)(M,{config:i}),formattedTime:w,learnMoreHref:(0,d.R)(d.e.allergyLearnMore,{locale:n}),showSpeciesGate:p,isLoading:v,hasError:!!y})]}):null},G=(0,t.default)(()=>e.A(430940),{loadableGenerated:{modules:[436485]}}),I=({globalPageProps:e,headingLevel:t,adBlocks:s})=>{let{location:r}=(0,a.f)(),o=(0,i.K)(e),d=(0,i.Z)(e,t);return(0,n.f)(r,e)?(0,l.jsx)(S,{location:r,serverLocationDisplayName:o,locationHeading:d,spotlightAd:s?.[0]}):(0,l.jsx)(G,{location:r,serverLocationDisplayName:o,locationHeading:d})};e.s(["PollenBreakdownBlockClient",0,I,"default",0,I],749097)},69917,function(e){e.n(e.i(749097))},430940,e=>{e.v(l=>Promise.all(["static/immutable/chunks/03huhcxwku4cs.js"].map(l=>e.l(l))).then(()=>l(436485)))},200359,e=>{"use strict";var l=e.i(458201),t=e.i(789422),a=e.i(632137);let i=["all",...e.i(175424)._];e.s(["f",0,({selected:e,onSelect:n,label:s,className:r})=>{let o=(0,t.r)("Pollen");return(0,l.jsx)("div",{role:"group","aria-label":s,className:(0,a.f)("flex flex-wrap gap-2",r),children:i.map(t=>{let i=t===e;return(0,l.jsx)("button",{type:"button","aria-pressed":i,onClick:()=>n(t),className:(0,a.f)("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",i?"bg-gray-900 text-white":"bg-[#f2f2f2] text-gray-900 hover:bg-gray-200"),children:o(t)},t)})})}])},860082,e=>{"use strict";var l=e.i(533694),t=e.i(181462);e.s(["f",0,(e,a,i=!0)=>e?(0,l.f)(e):(0,t.h)(a)??i])},175424,e=>{"use strict";e.s(["h",0,"/m³","g",0,{low:1,moderate:2,high:3,veryHigh:4},"m",0,{low:"#4ed07b",moderate:"#ffb900",high:"#ff4c00",veryHigh:"#ba0d00"},"G",0,{low:"riskLow",moderate:"riskModerate",high:"riskHigh",veryHigh:"riskVeryHigh"},"J",0,["low","moderate","high","veryHigh"],"_",0,["tree","grass","ragweed"],"e",0,30])},588896,180663,e=>{"use strict";var l=e.i(580547),t=e.i(474245),a=e.i(11697);e.s(["f",0,function(e,i){let n=(0,l.X)(),{data:s}=(0,a.f)({key:"allergy-aggravator-insight",geoCode:e?.geocode??null,insightType:t.InsightType.ALLERGY_AGGRAVATOR_INSIGHT,locale:n});if(!i||ie.insightType===t.InsightType.ALLERGY_AGGRAVATOR_INSIGHT);return r?.insightText?.[0]||void 0}],588896);var i=e.i(458201),n=e.i(789422),s=e.i(538167),r=e.i(747961);let o=(0,s.forwardRef)(({title:e,titleId:l,desc:t,descId:a,...n},s)=>(0,i.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:s,"aria-labelledby":l,"aria-describedby":a,...n,children:[t?(0,i.jsx)("desc",{id:a,children:t}):null,void 0===e?(0,i.jsx)("title",{id:l,children:"Arrow Down Right"}):e?(0,i.jsx)("title",{id:l,children:e}):null,(0,i.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"})]})),d=s.default.forwardRef((e,l)=>(0,i.jsx)(r.f,{ref:l,icon:o,...e}));d.displayName="ArrowDownRight";let c=(0,s.forwardRef)(({title:e,titleId:l,desc:t,descId:a,...n},s)=>(0,i.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:s,"aria-labelledby":l,"aria-describedby":a,...n,children:[t?(0,i.jsx)("desc",{id:a,children:t}):null,void 0===e?(0,i.jsx)("title",{id:l,children:"Arrow Up Right"}):e?(0,i.jsx)("title",{id:l,children:e}):null,(0,i.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"})]})),x=s.default.forwardRef((e,l)=>(0,i.jsx)(r.f,{ref:l,icon:c,...e}));x.displayName="ArrowUpRight";var f=e.i(632137),u=e.i(175424);let h=({value:e,children:l})=>(0,i.jsxs)("span",{className:"inline-flex items-baseline gap-1 whitespace-nowrap",children:[l,(0,i.jsx)("span",{className:"text-xl font-bold text-gray-900",children:e}),(0,i.jsx)("span",{className:"text-xs text-gray-500",children:u.h})]}),g=({value:e,label:l,mobileLabel:t})=>(0,i.jsxs)("div",{className:"flex flex-col items-start gap-0.5 @xl/pollen-today:items-center",children:[e,(0,i.jsx)("span",{className:"text-xs text-gray-500 uppercase @xl/pollen-today:hidden",children:t}),(0,i.jsx)("span",{className:"hidden text-xs text-gray-500 @xl/pollen-today:inline",children:l})]});e.s(["f",0,({risk:e,average:l,peak:t,changeFromYesterday:a,insight:s,className:r})=>{let o=(0,n.r)("Pollen"),c=e?u.m[e]:void 0,p=null===a?null:0===a?(0,i.jsx)("span",{className:"text-xl font-bold text-gray-900","aria-hidden":"true",children:"="}):(0,i.jsxs)(h,{value:Math.abs(a),children:[a>0?(0,i.jsx)(x,{className:"h-4 w-4 self-center text-gray-900","aria-hidden":"true"}):(0,i.jsx)(d,{className:"h-4 w-4 self-center text-gray-900","aria-hidden":"true"}),(0,i.jsx)("span",{className:"sr-only",children:o(a>0?"increase":"decrease")})]});return(0,i.jsx)("div",{className:(0,f.f)("@container/pollen-today",r),children:(0,i.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,i.jsxs)("div",{className:"flex flex-col gap-7",children:[e&&(0,i.jsx)("p",{className:"text-4xl leading-tight font-extrabold tracking-tight",style:{color:c},children:o(u.G[e])}),s&&(0,i.jsx)("p",{className:"max-w-md text-base text-gray-900",children:s})]}),(0,i.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,i.jsx)(g,{value:(0,i.jsx)(h,{value:l}),label:o("todaysAverage"),mobileLabel:o("average")}),null!==t&&(0,i.jsx)(g,{value:(0,i.jsx)(h,{value:t}),label:o("todaysPeak"),mobileLabel:o("peak")}),p&&(0,i.jsx)(g,{value:p,label:o(0===a?"sameAsYesterday":"fromYesterday"),mobileLabel:o(0===a?"sameAsYesterday":"vsYesterday")})]})]})})}],180663)},731947,e=>{"use strict";var l=e.i(794120),t=e.i(580547),a=e.i(550008),i=e.i(45776),n=e.i(533694),s=e.i(175424);let r={tree:"tree",grass:"grass",ragweed:"weed"},o=(e,l)=>e?.[l]??null;e.s(["f",0,function(e){let d=(0,t.X)(),c=!!e&&!(0,n.f)(e),x=c?void 0:e?.geocode,{data:f,error:u}=(0,l.U)(x?["pollenForecastDaily",x,d]:null,([,e,l])=>(0,a.getPollenForecastDaily)({geocode:e,language:l}),{revalidateOnFocus:!1,dedupingInterval:6e4}),{data:h,error:g}=(0,l.U)(x?["pollenObservations",x,d]:null,([,e,l])=>(0,a.getPollenObservations)({geocode:e,language:l}),{revalidateOnFocus:!1,dedupingInterval:6e4}),p=!!(h||g);return{data:f&&p?function(e,l){let t=(e.validTimeLocal??[]).map((l,t)=>{let a={};for(let l of s._){let n=r[l];a[l]={count:o(e[`${n}PollenCountMean`],t),risk:(0,i.getPollenRiskLevel)(o(e[`${n}PollenIndexMean`],t))}}return{validTimeLocal:l,count:o(e.totalPollenCountMean,t),peak:o(e.totalPollenCountMax,t),risk:(0,i.getPollenRiskLevel)(o(e.totalPollenIndexMean,t)),species:a}});if(!t.length)return null;let a=function(e){if(!e)return null;let l=(0,i.getPollenRiskLevel)(e.total_pollen_idx);return null!==e.total_pollen_cnt||l?{count:e.total_pollen_cnt,risk:l}:null}(l?.pollenobservations?.[0]),n=t[0]?.count??null,d=null!==n&&a?.count!=null?n-a.count:null;return{days:t,yesterday:a,changeFromYesterday:d}}(f,h):null,observations:h??null,error:u,isPending:!c&&!u&&(!f||!p)}}])}]);