(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,s)=>{"use strict";Object.defineProperty(s,"__esModule",{value:!0}),s.getPollenRiskLevel=function(e){return null==e||""===e?null:a[Number(e)]??null},s.getPollenObservationByType=function(e,l){return e?.pollenobservation.find(e=>e.pollen_type===l)};let a={1:"low",2:"moderate",3:"high",4:"veryHigh"}},129955,154211,e=>{"use strict";var l=e.i(902875),s=e.i(247865),a=e.i(747961);let n=(0,s.forwardRef)(({title:e,titleId:s,desc:a,descId:n,...t},i)=>(0,l.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:i,"aria-labelledby":s,"aria-describedby":n,...t,children:[a?(0,l.jsx)("desc",{id:n,children:a}):null,void 0===e?(0,l.jsx)("title",{id:s,children:"ragweed"}):e?(0,l.jsx)("title",{id:s,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"})]})]})),t=s.default.forwardRef((e,s)=>(0,l.jsx)(a.BaseIcon,{ref:s,icon:n,...e}));t.displayName="Ragweed",e.s(["Ragweed",0,t],129955);let i=(0,s.forwardRef)(({title:e,titleId:s,desc:a,descId:n,...t},i)=>(0,l.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:i,"aria-labelledby":s,"aria-describedby":n,...t,children:[a?(0,l.jsx)("desc",{id:n,children:a}):null,void 0===e?(0,l.jsx)("title",{id:s,children:"tree"}):e?(0,l.jsx)("title",{id:s,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"})]})]})),r=s.default.forwardRef((e,s)=>(0,l.jsx)(a.BaseIcon,{ref:s,icon:i,...e}));r.displayName="Tree",e.s(["Tree",0,r],154211)},533694,e=>{"use strict";let l=new Set(["AK","HI"]);e.s(["isConus",0,e=>e?.countryCode==="US"&&!l.has(e.adminDistrictCode??"")])},818273,e=>{"use strict";var l=e.i(902875),s=e.i(64412),a=e.i(498076),n=e.i(731947),t=e.i(860082),i=e.i(581014),r=e.i(517480),o=e.i(129955),c=e.i(154211),d=e.i(820820),u=e.i(677691),x=e.i(385636),g=e.i(175424);let p={tree:c.Tree,grass:r.Grass,ragweed:o.Ragweed},h=({species:e,showAppCallout:s=!1,isLoading:a=!1})=>{let n=(0,i.useTranslations)("PollenSpecies"),t=(0,i.useTranslations)("Pollen"),{href:r}=(0,u.useAppInstallLink)("allergy-species","allergy");return(0,l.jsxs)("section",{"data-testid":"PollenSpeciesModule","aria-label":n("caption"),"aria-busy":a||void 0,className:"@container/pollen-species flex flex-col gap-3",children:[(0,l.jsx)("p",{className:"text-base font-bold text-gray-900 @xl/pollen-species:text-xs @xl/pollen-species:font-medium @xl/pollen-species:text-gray-600",children:n("caption")}),(0,l.jsx)("ul",{className:"grid grid-cols-3 border-y border-gray-200 py-4 [&>*+*]:border-l [&>*+*]:border-gray-200",children:g.POLLEN_SPECIES.map(s=>{let n=p[s],i=e?.[s];return(0,l.jsxs)("li",{className:"flex flex-col items-center gap-1.5 px-2 text-center",children:[(0,l.jsx)(n,{className:"h-6 w-6 text-gray-900","aria-hidden":"true"}),(0,l.jsx)("span",{className:"text-sm text-gray-900",children:t(s)}),a&&(0,l.jsx)("span",{className:"h-10 w-16 animate-pulse rounded bg-gray-200"}),!a&&i?.risk&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(x.PollenRiskIndicator,{level:i.risk,variant:"badge",className:"@xl/pollen-species:hidden"}),(0,l.jsx)(x.PollenRiskIndicator,{level:i.risk,className:"hidden text-base font-bold text-gray-900 @xl/pollen-species:inline-flex"})]}),!a&&i?.count!=null&&(0,l.jsxs)("span",{className:"text-sm text-gray-900",children:[(0,l.jsx)("span",{className:"font-bold",children:i.count})," ",(0,l.jsx)("span",{className:"text-xs",children:g.POLLEN_COUNT_UNIT})]})]},s)})}),s&&(0,l.jsx)("div",{className:"rounded-lg bg-[#f2f2f2] p-4",children:(0,l.jsxs)("a",{href:r,className:"inline-flex items-center gap-1 text-sm font-bold text-[#1866e1] hover:underline focus-visible:underline",children:[n("seeSpeciesInApp"),(0,l.jsx)(d.ArrowRight,{className:"h-4 w-4 text-current","aria-hidden":"true"})]})})]})};e.s(["default",0,function({globalPageProps:e}){let{location:i}=(0,s.useLocation)(),r=(0,a.useIsMobile)(),{data:o,error:c,isPending:d}=(0,n.usePollenForecast)(i),u=o?.days[0];return(0,t.hasAmbeeCoverage)(i,e)&&!c&&(d||u)?(0,l.jsx)(h,{species:u?.species,showAppCallout:r,isLoading:d}):null}],818273)},721423,function(e){e.n(e.i(818273))},385636,e=>{"use strict";var l=e.i(902875),s=e.i(581014),a=e.i(632137),n=e.i(175424);let t=({level:e,reserveSpace:s=!1,className:t})=>{let i=n.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",t),children:Array.from({length:s?4:i},(s,a)=>(0,l.jsx)("span",{className:"h-full w-1 rounded-xs",style:a{let u=(0,s.useTranslations)("Pollen"),x=(0,l.jsx)(t,{level:e,reserveSpace:o});return(0,l.jsxs)("span",{className:(0,a.cn)("inline-flex items-center","badge"===i?"h-6 gap-1 rounded bg-[#f2f2f2] px-2 text-xs font-bold":"gap-2",c),children:[r&&x,(0,l.jsx)("span",{className:d,children:u(n.POLLEN_RISK_LABEL_KEYS[e])}),!r&&x]})}])},860082,e=>{"use strict";var l=e.i(533694),s=e.i(181462);e.s(["hasAmbeeCoverage",0,(e,a,n=!0)=>e?(0,l.isConus)(e):(0,s.getServerLocationIsConus)(a)??n])},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])},731947,e=>{"use strict";var l=e.i(381477),s=e.i(730921),a=e.i(550008),n=e.i(45776),t=e.i(533694),i=e.i(175424);let r={tree:"tree",grass:"grass",ragweed:"weed"},o=(e,l)=>e?.[l]??null;e.s(["usePollenForecast",0,function(e){let c=(0,s.useLocale)(),d=!!e&&!(0,t.isConus)(e),u=d?void 0:e?.geocode,{data:x,error:g}=(0,l.default)(u?["pollenForecastDaily",u,c]:null,([,e,l])=>(0,a.getPollenForecastDaily)({geocode:e,language:l}),{revalidateOnFocus:!1,dedupingInterval:6e4}),{data:p,error:h}=(0,l.default)(u?["pollenObservations",u,c]:null,([,e,l])=>(0,a.getPollenObservations)({geocode:e,language:l}),{revalidateOnFocus:!1,dedupingInterval:6e4}),f=!!(p||h);return{data:x&&f?function(e,l){let s=(e.validTimeLocal??[]).map((l,s)=>{let a={};for(let l of i.POLLEN_SPECIES){let t=r[l];a[l]={count:o(e[`${t}PollenCountMean`],s),risk:(0,n.getPollenRiskLevel)(o(e[`${t}PollenIndexMean`],s))}}return{validTimeLocal:l,count:o(e.totalPollenCountMean,s),peak:o(e.totalPollenCountMax,s),risk:(0,n.getPollenRiskLevel)(o(e.totalPollenIndexMean,s)),species:a}});if(!s.length)return null;let a=function(e){if(!e)return null;let l=(0,n.getPollenRiskLevel)(e.total_pollen_idx);return null!==e.total_pollen_cnt||l?{count:e.total_pollen_cnt,risk:l}:null}(l?.pollenobservations?.[0]),t=s[0]?.count??null,c=null!==t&&a?.count!=null?t-a.count:null;return{days:s,yesterday:a,changeFromYesterday:c}}(x,p):null,observations:p??null,error:g,isPending:!d&&!g&&(!x||!f)}}])}]);