(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,129955,154211,e=>{"use strict";var l=e.i(458201),a=e.i(538167),t=e.i(747961);let s=(0,a.forwardRef)(({title:e,titleId:a,desc:t,descId:s,...r},i)=>(0,l.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:i,"aria-labelledby":a,"aria-describedby":s,...r,children:[t?(0,l.jsx)("desc",{id:s,children:t}):null,void 0===e?(0,l.jsx)("title",{id:a,children:"ragweed"}):e?(0,l.jsx)("title",{id:a,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"})]})]})),r=a.default.forwardRef((e,a)=>(0,l.jsx)(t.f,{ref:a,icon:s,...e}));r.displayName="Ragweed",e.s(["f",0,r],129955);let i=(0,a.forwardRef)(({title:e,titleId:a,desc:t,descId:s,...r},i)=>(0,l.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:i,"aria-labelledby":a,"aria-describedby":s,...r,children:[t?(0,l.jsx)("desc",{id:s,children:t}):null,void 0===e?(0,l.jsx)("title",{id:a,children:"tree"}):e?(0,l.jsx)("title",{id:a,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"})]})]})),n=a.default.forwardRef((e,a)=>(0,l.jsx)(t.f,{ref:a,icon:i,...e}));n.displayName="Tree",e.s(["f",0,n],154211)},533694,e=>{"use strict";let l=new Set(["AK","HI"]);e.s(["f",0,e=>e?.countryCode==="US"&&!l.has(e.adminDistrictCode??"")])},162744,e=>{"use strict";var l=e.i(458201),a=e.i(538167),t=e.i(580547),s=e.i(789422),r=e.i(517480),i=e.i(129955),n=e.i(154211),o=e.i(380993),c=e.i(632137),d=e.i(873598),h=e.i(200359),x=e.i(815021),u=e.i(175424),f=e.i(923931),g=e.i(794120),m=e.i(550008),p=e.i(533694);let v=(e,l)=>({values:Array.from({length:12},(l,a)=>e[a]??0),max:Math.max(l,...e,0)}),w=({values:e,max:t,locale:s,initialMonth:r,label:i})=>{let[n,o]=(0,a.useState)(r-1),d=(0,a.useId)(),h=t>0?1.1*t:1;return(0,l.jsxs)("div",{className:"@container/pollen-chart flex flex-col gap-2",children:[(0,l.jsx)("div",{role:"group","aria-label":i,tabIndex:0,onKeyDown:l=>{let a="ArrowRight"===l.key||"ArrowDown"===l.key?1:"ArrowLeft"===l.key||"ArrowUp"===l.key?-1:0;a&&(l.preventDefault(),o(l=>(l+a+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,a)=>{let t=Math.max(e/h*160,e>0?3:1),r=a===n;return(0,l.jsxs)("div",{className:"relative flex h-full flex-1 items-end justify-center",onMouseEnter:()=>o(a),onClick:()=>o(a),children:[r&&(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,f.x)(a+1,s)}),(0,l.jsxs)("span",{className:"text-base font-bold",children:[Math.round(e),(0,l.jsx)("span",{className:"text-xxs font-medium",children:u.h})]})]}),(0,l.jsx)("div",{"aria-hidden":"true",className:"absolute top-12 w-px border-l border-dashed border-gray-900",style:{bottom:t}}),(0,l.jsx)("div",{"aria-hidden":"true",className:"absolute h-2 w-2 rounded-full bg-gray-900",style:{bottom:t-4}})]}),(0,l.jsx)("div",{"aria-hidden":"true",className:(0,c.f)("w-full rounded-t-xs bg-[#00739e] transition-opacity",!r&&"opacity-90"),style:{height:t}})]},a)})}),(0,l.jsx)("div",{"aria-hidden":"true",className:"flex gap-1 text-xs text-gray-600",children:e.map((e,a)=>(0,l.jsxs)("span",{className:"flex-1 text-center",children:[(0,l.jsx)("span",{className:"@md/pollen-chart:hidden",children:(0,f.x)(a+1,s,"narrow")}),(0,l.jsx)("span",{className:"hidden @md/pollen-chart:inline",children:(0,f.x)(a+1,s,"short")})]},a))})]})},y={tree:n.f,grass:r.f,ragweed:i.f},b={tree:"treePeak",grass:"grassPeak",ragweed:"ragweedPeak"},j=({history:e,locale:t,initialMonth:r,showFilters:i=!0})=>{let n=(0,s.r)("HistoricalPollenCounts"),[o,c]=(0,a.useState)("all"),d=(0,x.f)(),g=e.series[o],m="all"===o?u._:[o];return(0,l.jsxs)("div",{className:"@container/pollen-history flex flex-col gap-6",children:[i&&(0,l.jsx)(h.f,{selected:o,onSelect:e=>{e!==o&&(d("allergy-historical-pollen-counts",`filter-${e}`),c(e))},label:n("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)(w,{values:g.values,max:g.max,locale:t,initialMonth:r,label:n("chartLabel")},o)}),(0,l.jsx)("ul",{className:"border-t border-gray-200 @xl/pollen-history:flex-1",children:m.map(a=>{let s=y[a];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)(s,{className:"h-5 w-5","aria-hidden":"true"}),(0,l.jsx)("span",{className:"flex-1",children:n(b[a])}),(0,l.jsx)("span",{children:(0,f.x)(e.peakMonth[a],t)})]},a)})})]})]})},M=()=>(0,l.jsx)("div",{className:"flex h-56 items-end gap-1",children:Array.from({length:12},(e,a)=>(0,l.jsx)("div",{className:"flex-1 animate-pulse rounded-t-xs bg-gray-200",style:{height:`${20+37*a%70}%`}},a))});e.s(["f",0,({location:e,showFilters:a=!0,showHeader:r=!0,className:i})=>{var n;let h=(0,s.r)("HistoricalPollenCounts"),x=(0,t.X)(),{data:u,error:f,isPending:w}=function(e){let l=(0,t.X)(),a=!!e&&!(0,p.f)(e),s=a?void 0:e?.geocode,{data:r,error:i}=(0,g.U)(s?["pollenHistoricalMonthly",s,l]:null,([,e,l])=>(0,m.getPollenHistoricalMonthlySummary)({geocode:e,language:l}),{revalidateOnFocus:!1,dedupingInterval:6e4});return{data:r?r.totalPollenCountAvg?.length?{series:{all:v(r.totalPollenCountAvg,r.totalPollenCountMax),tree:v(r.treePollenCountAvg,r.treePollenCountMax),grass:v(r.grassPollenCountAvg,r.grassPollenCountMax),ragweed:v(r.ragweedPollenCountAvg,r.ragweedPollenCountMax)},peakMonth:{tree:r.treePollenPeakMonth,grass:r.grassPollenPeakMonth,ragweed:r.ragweedPollenPeakMonth}}:null:null,error:i,isPending:!a&&!i&&!r}}(e);return!f&&(w||u)?(0,l.jsxs)(o.N,{"data-testid":"HistoricalPollenCountsModule","aria-label":h("title"),className:(0,c.f)(i),children:[r&&(0,l.jsx)(o.Y,{text:h("title")}),(0,l.jsx)(o.O,{isLoading:w,skeleton:(0,l.jsx)(M,{}),children:u&&(0,l.jsx)(j,{history:u,locale:x,initialMonth:(n=e?.ianaTimeZone,Number(new Intl.DateTimeFormat("en-US",{month:"numeric",...n?{timeZone:(0,d.f)(n)}:{}}).format(new Date))||1),showFilters:a})})]}):null}],162744)},585791,e=>{"use strict";var l=e.i(458201),a=e.i(64412),t=e.i(860082),s=e.i(162744);e.s(["default",0,function({showFilters:e,globalPageProps:r}){let{location:i}=(0,a.f)();return(0,t.f)(i,r)?(0,l.jsx)(s.f,{location:i,showFilters:e??!0}):null}])},268272,function(e){e.n(e.i(585791))},200359,e=>{"use strict";var l=e.i(458201),a=e.i(789422),t=e.i(632137);let s=["all",...e.i(175424)._];e.s(["f",0,({selected:e,onSelect:r,label:i,className:n})=>{let o=(0,a.r)("Pollen");return(0,l.jsx)("div",{role:"group","aria-label":i,className:(0,t.f)("flex flex-wrap gap-2",n),children:s.map(a=>{let s=a===e;return(0,l.jsx)("button",{type:"button","aria-pressed":s,onClick:()=>r(a),className:(0,t.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",s?"bg-gray-900 text-white":"bg-[#f2f2f2] text-gray-900 hover:bg-gray-200"),children:o(a)},a)})})}])},923931,e=>{"use strict";var l=e.i(873598);e.s(["P",0,function(e,a,t){let s,r=new Date(e);if(Number.isNaN(r.getTime()))return"";let i=new Intl.DateTimeFormat(a,(s={weekday:"short",day:"numeric"},t?{...s,timeZone:(0,l.f)(t)}:s));if(!a.startsWith("en"))return i.format(r);let n=i.formatToParts(r),o=n.find(e=>"weekday"===e.type)?.value??"",c=n.find(e=>"day"===e.type)?.value??"";return`${o} ${c}`.trim()},"x",0,function(e,l,a="long"){return e12?"":new Intl.DateTimeFormat(l,{month:a,timeZone:"UTC"}).format(new Date(Date.UTC(2e3,e-1,15,12)))}])},860082,e=>{"use strict";var l=e.i(533694),a=e.i(181462);e.s(["f",0,(e,t,s=!0)=>e?(0,l.f)(e):(0,a.h)(t)??s])},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])},815021,e=>{"use strict";var l=e.i(538167),a=e.i(598513);e.s(["f",0,function(){let e=(0,a.f)();return(0,l.useCallback)((l,a)=>{e({moduleId:l,interactionType:"click",interactionElement:a},{flushImmediately:!0})},[e])}])}]);