(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,192066,e=>{e.q("/_next/static/media/SlideshowIcon.0-tvdxex8athz.png")},15819,e=>{e.q("/_next/static/media/morning-brief-logo.0lhk2qbjlndqo.svg")},217817,e=>{e.q("/_next/static/media/ellipse.0wyy94odiz543.png")},32223,e=>{e.q("/_next/static/media/tree_particles.0k58772ax1j.8.png")},777507,e=>{e.q("/_next/static/media/grass_particles.064uz4vxk4jmr.png")},26411,e=>{e.q("/_next/static/media/ragweed_particles.0devq.hir6~3..png")},371954,203679,934322,e=>{"use strict";var t=e.i(778235);e.i(663749);var r=e.i(802661),n=e.i(862494),a=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,a)=>{let i=(0,r.createSlot)(`Primitive.${a}`),l=t.forwardRef((e,t)=>{let{asChild:r,...l}=e;return"u">typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,n.jsx)(r?i:a,{...l,ref:t})});return l.displayName=`Primitive.${a}`,{...e,[a]:l}},{});e.s(["Primitive",0,a],371954);var i=globalThis?.document?t.useLayoutEffect:()=>{};e.s(["useLayoutEffect",0,i],203679);var l=t[" useId ".trim().toString()]||(()=>void 0),o=0;e.s(["useId",0,function(e){let[r,n]=t.useState(l());return i(()=>{e||n(e=>e??String(o++))},[e]),e||(r?`radix-${r}`:"")}],934322)},846871,e=>{"use strict";var t=e.i(862494),r=e.i(294237),n=e.i(632137);let a=(0,r.cva)("inline-block rounded-full border-solid animate-spin box-border",{variants:{size:{sm:"w-4 h-4 border-[2px]",md:"w-6 h-6 border-[2px]",lg:"w-8 h-8 border-[3px]"},variant:{white:"border-white border-b-transparent",primary:"border-brand-400 border-b-transparent",black:"border-[#252422] border-b-transparent"}},defaultVariants:{size:"sm",variant:"black"}});e.s(["Loader",0,({className:e,size:r,variant:i,label:l})=>(0,t.jsx)("div",{className:(0,n.cn)(a({size:r,variant:i}),e),"aria-label":l})])},546334,e=>{"use strict";var t=e.i(862494),r=e.i(778235),n=e.i(561762),a=e.i(381477),i=e.i(925209),l=e.i(564993),o=e.i(985542),s=e.i(612977),c=e.i(368847),d=e.i(877957),u=/[\\\/_+.#"@\[\(\{&]/,m=/[\\\/_+.#"@\[\(\{&]/g,f=/[\s-]/,h=/[\s-]/g;function p(e){return e.toLowerCase().replace(h," ")}var v=e.i(867013),g=e.i(371954),x=e.i(934322),b=e.i(723673),w='[cmdk-group=""]',y='[cmdk-group-items=""]',E='[cmdk-item=""]',C=`${E}:not([aria-disabled="true"])`,j="cmdk-item-select",S="data-value",k=(e,t,r)=>{var n;return n=e,function e(t,r,n,a,i,l,o){if(l===r.length)return i===t.length?1:.99;var s=`${i},${l}`;if(void 0!==o[s])return o[s];for(var c,d,p,v,g=a.charAt(l),x=n.indexOf(g,i),b=0;x>=0;)(c=e(t,r,n,a,x+1,l+1,o))>b&&(x===i?c*=1:u.test(t.charAt(x-1))?(c*=.8,(p=t.slice(i,x-1).match(m))&&i>0&&(c*=Math.pow(.999,p.length))):f.test(t.charAt(x-1))?(c*=.9,(v=t.slice(i,x-1).match(h))&&i>0&&(c*=Math.pow(.999,v.length))):(c*=.17,i>0&&(c*=Math.pow(.999,x-i))),t.charAt(x)!==r.charAt(l)&&(c*=.9999)),(c<.1>c&&(c=.1*d),c>b&&(b=c),x=n.indexOf(g,x+1);return o[s]=b,b}(n=r&&r.length>0?`${n+" "+r.join(" ")}`:n,t,p(n),p(t),0,0,{})},$=r.createContext(void 0),N=r.createContext(void 0),I=r.createContext(void 0),R=r.forwardRef((e,t)=>{let n=V(()=>{var t,r;return{search:"",value:null!=(r=null!=(t=e.value)?t:e.defaultValue)?r:"",selectedItemId:void 0,filtered:{count:0,items:new Map,groups:new Set}}}),a=V(()=>new Set),i=V(()=>new Map),l=V(()=>new Map),o=V(()=>new Set),s=L(e),{label:c,children:d,value:u,onValueChange:m,filter:f,shouldFilter:h,loop:p,disablePointerSelection:v=!1,vimBindings:b=!0,...I}=e,R=(0,x.useId)(),A=(0,x.useId)(),P=(0,x.useId)(),T=r.useRef(null),_=F();B(()=>{if(void 0!==u){let e=u.trim();n.current.value=e,D.emit()}},[u]),B(()=>{_(6,K)},[]);let D=r.useMemo(()=>({subscribe:e=>(o.current.add(e),()=>o.current.delete(e)),snapshot:()=>n.current,setState:(e,t,r)=>{var a,i,l,o;if(!Object.is(n.current[e],t)){if(n.current[e]=t,"search"===e)G(),U(),_(1,O);else if("value"===e){if(document.activeElement.hasAttribute("cmdk-input")||document.activeElement.hasAttribute("cmdk-root")){let e=document.getElementById(P);e?e.focus():null==(a=document.getElementById(R))||a.focus()}if(_(7,()=>{var e;n.current.selectedItemId=null==(e=W())?void 0:e.id,D.emit()}),r||_(5,K),(null==(i=s.current)?void 0:i.value)!==void 0){null==(o=(l=s.current).onValueChange)||o.call(l,null!=t?t:"");return}}D.emit()}},emit:()=>{o.current.forEach(e=>e())}}),[]),z=r.useMemo(()=>({value:(e,t,r)=>{var a;t!==(null==(a=l.current.get(e))?void 0:a.value)&&(l.current.set(e,{value:t,keywords:r}),n.current.filtered.items.set(e,M(t,r)),_(2,()=>{U(),D.emit()}))},item:(e,t)=>(a.current.add(e),t&&(i.current.has(t)?i.current.get(t).add(e):i.current.set(t,new Set([e]))),_(3,()=>{G(),U(),n.current.value||O(),D.emit()}),()=>{l.current.delete(e),a.current.delete(e),n.current.filtered.items.delete(e);let t=W();_(4,()=>{G(),(null==t?void 0:t.getAttribute("id"))===e&&O(),D.emit()})}),group:e=>(i.current.has(e)||i.current.set(e,new Set),()=>{l.current.delete(e),i.current.delete(e)}),filter:()=>s.current.shouldFilter,label:c||e["aria-label"],getDisablePointerSelection:()=>s.current.disablePointerSelection,listId:R,inputId:P,labelId:A,listInnerRef:T}),[]);function M(e,t){var r,a;let i=null!=(a=null==(r=s.current)?void 0:r.filter)?a:k;return e?i(e,n.current.search,t):0}function U(){if(!n.current.search||!1===s.current.shouldFilter)return;let e=n.current.filtered.items,t=[];n.current.filtered.groups.forEach(r=>{let n=i.current.get(r),a=0;n.forEach(t=>{a=Math.max(e.get(t),a)}),t.push([r,a])});let r=T.current;X().sort((t,r)=>{var n,a;let i=t.getAttribute("id"),l=r.getAttribute("id");return(null!=(n=e.get(l))?n:0)-(null!=(a=e.get(i))?a:0)}).forEach(e=>{let t=e.closest(y);t?t.appendChild(e.parentElement===t?e:e.closest(`${y} > *`)):r.appendChild(e.parentElement===r?e:e.closest(`${y} > *`))}),t.sort((e,t)=>t[1]-e[1]).forEach(e=>{var t;let r=null==(t=T.current)?void 0:t.querySelector(`${w}[${S}="${encodeURIComponent(e[0])}"]`);null==r||r.parentElement.appendChild(r)})}function O(){let e=X().find(e=>"true"!==e.getAttribute("aria-disabled")),t=null==e?void 0:e.getAttribute(S);D.setState("value",t||void 0)}function G(){var e,t,r,o;if(!n.current.search||!1===s.current.shouldFilter){n.current.filtered.count=a.current.size;return}n.current.filtered.groups=new Set;let c=0;for(let i of a.current){let a=M(null!=(t=null==(e=l.current.get(i))?void 0:e.value)?t:"",null!=(o=null==(r=l.current.get(i))?void 0:r.keywords)?o:[]);n.current.filtered.items.set(i,a),a>0&&c++}for(let[e,t]of i.current)for(let r of t)if(n.current.filtered.items.get(r)>0){n.current.filtered.groups.add(e);break}n.current.filtered.count=c}function K(){var e,t,r;let n=W();n&&((null==(e=n.parentElement)?void 0:e.firstChild)===n&&(null==(r=null==(t=n.closest(w))?void 0:t.querySelector('[cmdk-group-heading=""]'))||r.scrollIntoView({block:"nearest"})),n.scrollIntoView({block:"nearest"}))}function W(){var e;return null==(e=T.current)?void 0:e.querySelector(`${E}[aria-selected="true"]`)}function X(){var e;return Array.from((null==(e=T.current)?void 0:e.querySelectorAll(C))||[])}function Z(e){let t=X()[e];t&&D.setState("value",t.getAttribute(S))}function J(e){var t;let r=W(),n=X(),a=n.findIndex(e=>e===r),i=n[a+e];null!=(t=s.current)&&t.loop&&(i=a+e0?function(e,t){let r=e.nextElementSibling;for(;r;){if(r.matches(t))return r;r=r.nextElementSibling}}(r,w):function(e,t){let r=e.previousElementSibling;for(;r;){if(r.matches(t))return r;r=r.previousElementSibling}}(r,w))?void 0:r.querySelector(C);n?D.setState("value",n.getAttribute(S)):J(e)}let Q=()=>Z(X().length-1),ee=e=>{e.preventDefault(),e.metaKey?Q():e.altKey?Y(1):J(1)},et=e=>{e.preventDefault(),e.metaKey?Z(0):e.altKey?Y(-1):J(-1)};return r.createElement(g.Primitive.div,{ref:t,tabIndex:-1,...I,"cmdk-root":"",onKeyDown:e=>{var t;null==(t=I.onKeyDown)||t.call(I,e);let r=e.nativeEvent.isComposing||229===e.keyCode;if(!(e.defaultPrevented||r))switch(e.key){case"n":case"j":b&&e.ctrlKey&&ee(e);break;case"ArrowDown":ee(e);break;case"p":case"k":b&&e.ctrlKey&&et(e);break;case"ArrowUp":et(e);break;case"Home":e.preventDefault(),Z(0);break;case"End":e.preventDefault(),Q();break;case"Enter":{e.preventDefault();let t=W();if(t){let e=new Event(j);t.dispatchEvent(e)}}}}},r.createElement("label",{"cmdk-label":"",htmlFor:z.inputId,id:z.labelId,style:q},c),H(e,e=>r.createElement(N.Provider,{value:D},r.createElement($.Provider,{value:z},e))))}),A=r.forwardRef((e,t)=>{var n,a;let i=(0,x.useId)(),l=r.useRef(null),o=r.useContext(I),s=r.useContext($),c=L(e),d=null!=(a=null==(n=c.current)?void 0:n.forceMount)?a:null==o?void 0:o.forceMount;B(()=>{if(!d)return s.item(i,null==o?void 0:o.id)},[d]);let u=O(i,l,[e.value,e.children,l],e.keywords),m=r.useContext(N),f=U(e=>e.value&&e.value===u.current),h=U(e=>!!d||!1===s.filter()||!e.search||e.filtered.items.get(i)>0);function p(){var e,t;v(),null==(t=(e=c.current).onSelect)||t.call(e,u.current)}function v(){m.setState("value",u.current,!0)}if(r.useEffect(()=>{let t=l.current;if(!(!t||e.disabled))return t.addEventListener(j,p),()=>t.removeEventListener(j,p)},[h,e.onSelect,e.disabled]),!h)return null;let{disabled:w,value:y,onSelect:E,forceMount:C,keywords:S,...k}=e;return r.createElement(g.Primitive.div,{ref:(0,b.composeRefs)(l,t),...k,id:i,"cmdk-item":"",role:"option","aria-disabled":!!w,"aria-selected":!!f,"data-disabled":!!w,"data-selected":!!f,onPointerMove:w||s.getDisablePointerSelection()?void 0:v,onClick:w?void 0:p},e.children)}),P=r.forwardRef((e,t)=>{let{heading:n,children:a,forceMount:i,...l}=e,o=(0,x.useId)(),s=r.useRef(null),c=r.useRef(null),d=(0,x.useId)(),u=r.useContext($),m=U(e=>!!i||!1===u.filter()||!e.search||e.filtered.groups.has(o));B(()=>u.group(o),[]),O(o,s,[e.value,e.heading,c]);let f=r.useMemo(()=>({id:o,forceMount:i}),[i]);return r.createElement(g.Primitive.div,{ref:(0,b.composeRefs)(s,t),...l,"cmdk-group":"",role:"presentation",hidden:!m||void 0},n&&r.createElement("div",{ref:c,"cmdk-group-heading":"","aria-hidden":!0,id:d},n),H(e,e=>r.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":n?d:void 0},r.createElement(I.Provider,{value:f},e))))}),T=r.forwardRef((e,t)=>{let{alwaysRender:n,...a}=e,i=r.useRef(null),l=U(e=>!e.search);return n||l?r.createElement(g.Primitive.div,{ref:(0,b.composeRefs)(i,t),...a,"cmdk-separator":"",role:"separator"}):null}),_=r.forwardRef((e,t)=>{let{onValueChange:n,...a}=e,i=null!=e.value,l=r.useContext(N),o=U(e=>e.search),s=U(e=>e.selectedItemId),c=r.useContext($);return r.useEffect(()=>{null!=e.value&&l.setState("search",e.value)},[e.value]),r.createElement(g.Primitive.input,{ref:t,...a,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":c.listId,"aria-labelledby":c.labelId,"aria-activedescendant":s,id:c.inputId,type:"text",value:i?e.value:o,onChange:e=>{i||l.setState("search",e.target.value),null==n||n(e.target.value)}})}),D=r.forwardRef((e,t)=>{let{children:n,label:a="Suggestions",...i}=e,l=r.useRef(null),o=r.useRef(null),s=U(e=>e.selectedItemId),c=r.useContext($);return r.useEffect(()=>{if(o.current&&l.current){let e=o.current,t=l.current,r,n=new ResizeObserver(()=>{r=requestAnimationFrame(()=>{let r=e.offsetHeight;t.style.setProperty("--cmdk-list-height",r.toFixed(1)+"px")})});return n.observe(e),()=>{cancelAnimationFrame(r),n.unobserve(e)}}},[]),r.createElement(g.Primitive.div,{ref:(0,b.composeRefs)(l,t),...i,"cmdk-list":"",role:"listbox",tabIndex:-1,"aria-activedescendant":s,"aria-label":a,id:c.listId},H(e,e=>r.createElement("div",{ref:(0,b.composeRefs)(o,c.listInnerRef),"cmdk-list-sizer":""},e)))}),z=r.forwardRef((e,t)=>{let{open:n,onOpenChange:a,overlayClassName:i,contentClassName:l,container:o,...s}=e;return r.createElement(v.Root,{open:n,onOpenChange:a},r.createElement(v.Portal,{container:o},r.createElement(v.Overlay,{"cmdk-overlay":"",className:i}),r.createElement(v.Content,{"aria-label":e.label,"cmdk-dialog":"",className:l},r.createElement(R,{ref:t,...s}))))}),M=Object.assign(R,{List:D,Item:A,Input:_,Group:P,Separator:T,Dialog:z,Empty:r.forwardRef((e,t)=>U(e=>0===e.filtered.count)?r.createElement(g.Primitive.div,{ref:t,...e,"cmdk-empty":"",role:"presentation"}):null),Loading:r.forwardRef((e,t)=>{let{progress:n,children:a,label:i="Loading...",...l}=e;return r.createElement(g.Primitive.div,{ref:t,...l,"cmdk-loading":"",role:"progressbar","aria-valuenow":n,"aria-valuemin":0,"aria-valuemax":100,"aria-label":i},H(e,e=>r.createElement("div",{"aria-hidden":!0},e)))})});function L(e){let t=r.useRef(e);return B(()=>{t.current=e}),t}var B="u"e(t.snapshot());return r.useSyncExternalStore(t.subscribe,n,n)}function O(e,t,n,a=[]){let i=r.useRef(),l=r.useContext($);return B(()=>{var r;let o=(()=>{var e;for(let t of n){if("string"==typeof t)return t.trim();if("object"==typeof t&&"current"in t)return t.current?null==(e=t.current.textContent)?void 0:e.trim():i.current}})(),s=a.map(e=>e.trim());l.value(e,o,s),null==(r=t.current)||r.setAttribute(S,o),i.current=o}),i}var F=()=>{let[e,t]=r.useState(),n=V(()=>new Map);return B(()=>{n.current.forEach(e=>e()),n.current=new Map},[e]),(e,r)=>{n.current.set(e,r),t({})}};function H({asChild:e,children:t},n){let a;return e&&r.isValidElement(t)?r.cloneElement("function"==typeof(a=t.type)?a(t.props):"render"in a?a.render(t.props):t,{ref:t.ref},n(t.props.children)):n(t)}var q={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};let G=(0,e.i(514514).default)("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]);var K=e.i(632137);function W({className:e,...r}){return(0,t.jsx)(M,{"data-slot":"command",className:(0,K.cn)("bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md",e),...r})}function X({className:e,...r}){return(0,t.jsxs)("div",{"data-slot":"command-input-wrapper",className:"flex h-9 items-center gap-2 border-b px-3",children:[(0,t.jsx)(G,{className:"size-4 shrink-0 opacity-50"}),(0,t.jsx)(M.Input,{"data-slot":"command-input",className:(0,K.cn)("placeholder:text-muted-foreground flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-hidden disabled:cursor-not-allowed disabled:opacity-50",e),...r})]})}function Z({className:e,...r}){return(0,t.jsx)(M.List,{"data-slot":"command-list",className:(0,K.cn)("max-h-[300px] scroll-py-1 overflow-x-hidden overflow-y-auto",e),...r})}function J({className:e,...r}){return(0,t.jsx)(M.Group,{"data-slot":"command-group",className:(0,K.cn)("text-foreground [&_[cmdk-group-heading]]:text-muted-foreground overflow-hidden p-1 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium",e),...r})}function Y({className:e,...r}){return(0,t.jsx)(M.Item,{"data-slot":"command-item",className:(0,K.cn)("data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...r})}e.i(367810);var Q=e.i(809058);e.s(["LocationInput",0,function({location:e,onChangeLocation:u,label:m="Search for a location",placeholder:f="Search city or zip code",className:h,error:p,disabled:v=!1}){let g=(0,n.useParams)(),x=g?.locale,[b,w]=(0,r.useState)(!1),[y,E]=(0,r.useState)(""),C=(0,s.default)(y.trim(),300),j=e?`${e.city}, ${e.adminDistrictCode||e.adminDistrict||e.displayContext}`:null,{isLoading:S,data:k}=(0,a.default)(C?["location-search",C,x]:null,([,e,t])=>(0,o.getLocationsByQuery)(e,t));return(0,t.jsxs)("div",{className:"w-full min-w-0",children:[(0,t.jsxs)(Q.Popover,{open:b,onOpenChange:w,children:[(0,t.jsx)(Q.PopoverTrigger,{asChild:!0,children:(0,t.jsxs)(d.Button,{variant:"outline",role:"combobox",disabled:v,"aria-expanded":b,"aria-invalid":!!p,className:(0,K.cn)("flex w-full justify-start gap-2 bg-white px-3 text-left font-normal text-gray-900",h,!!e&&"border-black",p&&"border-alert-severe"),children:[S?(0,t.jsx)(l.LoaderCircle,{className:"size-4 shrink-0 animate-spin","aria-hidden":"true",title:""}):(0,t.jsx)(i.Location,{className:"size-4 shrink-0","aria-hidden":"true",title:""}),(0,t.jsx)("span",{className:"flex-1 truncate",children:j??m})]})}),(0,t.jsx)(Q.PopoverContent,{side:"bottom",align:"start",collisionPadding:8,className:"w-(--radix-popover-trigger-width) p-0",showArrow:!1,children:(0,t.jsxs)(W,{shouldFilter:!1,children:[(0,t.jsx)(X,{placeholder:f,value:y,onValueChange:E}),(0,t.jsx)(Z,{className:"max-h-[min(200px,46vh)] min-h-10",children:(0,t.jsx)(J,{children:k?.map(e=>(0,t.jsx)(Y,{value:e.locId,onSelect:()=>{u(e),w(!1)},children:e.address},e.locId))})})]})})]}),p&&(0,t.jsx)(c.Text,{variant:"Caption.S",color:"error",className:"mt-1",children:p})]})}],546334)},279887,e=>{"use strict";var t=e.i(947118),r=e.i(737801),n=e.i(778235);e.s(["useTrackEmailSubscription",0,()=>{let e="alert-subscription-changed",a=(0,t.useIsInitialized)(),i=(0,r.useEventAttributes)();return(0,n.useCallback)(({name:t,status:r})=>{let n={...i,name:t,status:r?"enabled":"disabled"};if(!a)return void console.warn("MParticle is not initialized");try{window.mParticle?.logEvent?.(e,window.mParticle?.EventType?.Other,n),console.debug(`MParticle: Event "${e}" tracked`,n)}catch(t){console.error(`MParticle: Event "${e}" failed`,t)}},[i,a])}])},695478,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.findSubscriptionGroup=void 0,r.getMorningBriefAttrs=function(e){return{location:e.placeId,latitude:e.latitude,longitude:e.longitude,dmaCode:e.dmaCd||null,adminDistrict:e.adminDistrict,adminDistrictCode:e.adminDistrictCode||null,postalCode:e.postalCode}},r.findSubscriptionGroup=(e,t,r)=>e&&Array.isArray(e)?e.find(e=>e.subscriptionGroupName===t)||r||null:r||null},979538,e=>{"use strict";let t=(0,e.i(695881).createLogger)("OpenWebSdkClient"),r=new class{baseUrl;constructor(){this.baseUrl="https://upsx.weather.com"}async getAccount(e){let r=e?.maxRetries||3,n=e?.delayMs||500,a=null;for(let e=1;esetTimeout(e,r));continue}throw a}let s=await o.json();return t.info(`getAccount - Account found (attempt ${e}/${r}):`,s),s}catch(i){if(t.error(`getAccount - Error (attempt ${e}/${r}):`,i),i instanceof TypeError&&i.message.includes("fetch"))return t.error(`getAccount - Network error, treating as no account (attempt ${e}/${r})`),null;if(a=i instanceof Error?i:Error(String(i)),esetTimeout(e,r));continue}throw a}if(a)throw a;return null}async getCodeB(e,r,n,a){let i=a?.maxRetries||2,l=a?.delayMs||500,o=null,s=e?e.split("?")[0]:"";if(!s)throw Error("Invalid codeA: codeA is required to complete the SSO process");for(let e=1;esetTimeout(e,r));continue}throw o}let m=await u.json();return t.info(`getCodeB - Success, codeB received (attempt ${e}/${i+1}):`,m.codeB?`codeB ${m.codeB}`:"missing"),m.codeB}catch(r){if(t.error(`getCodeB - Error (attempt ${e}/${i+1}):`,r),o=r instanceof Error?r:Error(String(r)),esetTimeout(e,r));continue}throw o}if(o)throw o;return""}};e.s(["openWebClient",0,r])},109339,470015,e=>{"use strict";var t=e.i(862494),r=e.i(778235),n=e.i(747961);let a=(0,r.forwardRef)(({title:e,titleId:r,desc:n,descId:a,...i},l)=>(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor","aria-label":"The Weather Company - Home",viewBox:"0 0 432.96 399.36",ref:l,"aria-labelledby":r,"aria-describedby":a,...i,children:[n?(0,t.jsx)("desc",{id:a,children:n}):null,void 0===e?(0,t.jsx)("title",{id:r,children:"The Weather Channel"}):e?(0,t.jsx)("title",{id:r,children:e}):null,(0,t.jsx)("path",{d:"M152.48 347.3c0 4.02 2.48 6.71 5.9 6.71 2.51 0 5.01-1.3 7.01-3.52l.21-11.03h-.62c-9.31 0-12.5 1.74-12.5 7.84M165.2 144c0-3.81-.4-5.81-1.61-7.72-1.3-1.99-3.2-3.01-5.9-3.01-5.12 0-8.04 4.02-8.04 11.13v.19h15.54V144zm7.82 109.49c0 4.01 2.52 6.72 5.94 6.72 2.5 0 5.01-1.32 7.01-3.52l.21-11.03h-.6c-9.34.01-12.56 1.73-12.56 7.83m-34.34-17.25c0-3.81-.41-5.8-1.6-7.7-1.32-2.02-3.22-3.03-5.94-3.03-5.11 0-8 4.03-8 11.14v.19h15.53v-.6zM316 319.32c-5.1 0-8.01 4.02-8.01 11.15v.19h15.54v-.59c0-3.82-.39-5.83-1.59-7.72-1.32-2.02-3.22-3.03-5.94-3.03"}),(0,t.jsx)("path",{d:"M372.65 228.54c-1.33-.7-2.41-1.01-3.91-1.01-3.02 0-5.74 1.4-8.21 4.3v36.3h-13.46v-34.3c0-6.9-.8-12.13-1.9-15.02l12.02-3.24c1.21 2.11 1.9 4.44 2.12 7.32 1.92-2.59 5.09-5.4 7.63-6.51 1.1-.49 2.9-.81 4.38-.81 2.02 0 2.92.2 5.03 1.11zM360.2 363.13c-5.73 0-10.32-2.69-11.94-7.03-1.01-2.59-1.21-4.18-1.21-11.5v-38.29c0-6.72-.19-10.82-.69-15.45l13.73-3.11c.5 2.81.71 6.14.71 13.33v40c0 8.82.1 10.02.88 11.42.5.89 1.62 1.39 2.72 1.39.5 0 .79 0 1.49-.18l2.3 8.02c-2.29.9-5.08 1.4-7.99 1.4m-22.42-116.48h-29.67v.44c0 7.91 3.91 12.41 10.83 12.41 4.61 0 8.92-1.71 13.03-5.11l5.21 8.04c-5.91 4.8-12.12 7.1-19.34 7.1-14.73 0-24.25-10.43-24.25-26.55 0-9.24 1.89-15.35 6.4-20.35 4.22-4.72 9.33-6.92 16.14-6.92 5.92 0 11.53 1.99 14.85 5.4 4.7 4.83 6.81 11.76 6.81 22.47v3.07zm-.32 93.83H307.8v.41c0 7.9 3.92 12.42 10.83 12.42 4.62 0 8.91-1.72 13.02-5.12l5.23 8.04c-5.92 4.8-12.13 7.1-19.35 7.1-14.74 0-24.26-10.43-24.26-26.55 0-9.23 1.9-15.35 6.4-20.35 4.22-4.73 9.33-6.92 16.14-6.92 5.9 0 11.53 2.01 14.84 5.42 4.71 4.8 6.81 11.73 6.81 22.43zm-50.78-72.34h-13.13v-34.5c0-5.09-1.4-7.01-5.21-7.01-3.31 0-7.63 2.01-10.62 4.73v36.78h-13.63v-59.35c0-4.82-.4-9.61-1-11.73l13.73-3.21c.59 2.81.9 7.61.9 12.52v10.22c0 1.61-.2 3.72-.2 4.32 3.51-3.31 9.31-5.52 14.54-5.52 6.51 0 11.72 2.81 13.33 7.31.99 2.94 1.3 4.63 1.3 9.54v35.9zm-2.73 93.8h-13.23v-33.38c0-5.81-1.01-7.52-4.51-7.52-2.7 0-6.22 1.82-9.31 4.62v36.28h-13.45v-37.19c0-4.41-.6-8.61-1.79-12.04l11.95-3.4c1.18 2.1 1.88 4.31 1.88 6.41 2.01-1.38 3.72-2.6 5.91-3.81 2.73-1.39 6.23-2.19 9.22-2.19 5.71 0 10.73 2.99 12.32 7.42.74 1.9 1.02 4.11 1.02 7.31v37.49zm-57.3-92.61c-6.81 0-12.23-2.99-13.83-7.52-.8-2.23-.9-3.23-.9-7.92v-27.88h-5.11v-9.21h5.11c0-5 0-8.34.5-12.13l13.64-3.4c-.5 4.69-.8 10.32-.8 15.54h12.04l-3.42 9.21h-8.61v25.78c0 6.51 1.19 8.22 5.81 8.22 1.2 0 2.41-.32 4.81-1.01l1.7 8.01c-3.94 1.61-7.43 2.31-10.94 2.31m4.99 92.61H218.4v-33.38c0-5.81-1.01-7.52-4.51-7.52-2.7 0-6.19 1.82-9.32 4.62v36.28h-13.44v-37.19c0-4.41-.58-8.61-1.77-12.04l11.92-3.4c1.2 2.1 1.91 4.31 1.91 6.41 1.99-1.38 3.69-2.6 5.9-3.81 2.7-1.39 6.21-2.19 9.21-2.19 5.72 0 10.74 2.99 12.33 7.42.71 1.9 1.02 4.11 1.02 7.31v37.49zm-55.28-91.9c-11.45 0-17.65-5.83-17.65-16.06 0-12.03 8.31-17.63 24.63-17.63 1.01 0 1.92 0 3.01.09v-2.11c0-5.69-1.09-7.61-6-7.61-4.3 0-9.32 2.13-14.83 5.85l-5.72-9.65c2.72-1.71 4.71-2.71 8.34-4.19 5-2.12 9.32-3.01 14.02-3.01 8.61 0 14.54 3.21 16.55 8.91.69 2.1.99 3.7.89 9.22l-.29 17.26v.9c0 5.5.89 7.58 4.8 10.51l-7.11 8.22c-3.11-1.31-5.92-3.59-7.22-6.22-1 .98-2.11 2.01-3.11 2.71-2.51 1.8-6.11 2.81-10.31 2.81m.06 94.51c-3.1-1.31-5.92-3.61-7.21-6.23-1.01 1.02-2.11 2.01-3.11 2.72-2.51 1.81-6.11 2.8-10.33 2.8-11.43 0-17.65-5.82-17.65-16.02 0-12.04 8.33-17.67 24.67-17.67 1 0 1.91 0 3.01.1v-2.08c0-5.74-1.1-7.63-6.03-7.63-4.32 0-9.34 2.11-14.83 5.82l-5.73-9.64c2.72-1.7 4.73-2.69 8.34-4.19 5.02-2.12 9.32-3.01 14.05-3.01 8.59 0 14.52 3.19 16.51 8.93.72 2.1 1.03 3.72.92 9.21l-.29 17.26v.89c0 5.52.9 7.6 4.82 10.52zM108.4 242.98c0-9.24 1.9-15.35 6.41-20.35 4.22-4.72 9.33-6.92 16.15-6.92 5.91 0 11.54 1.99 14.84 5.4 4.72 4.83 6.83 11.76 6.83 22.47v3.08h-29.68v.44c0 7.91 3.92 12.41 10.82 12.41 4.62 0 8.91-1.71 13.03-5.11l5.22 8.04c-5.92 4.8-12.14 7.1-19.36 7.1-14.73-.01-24.26-10.44-24.26-26.56m20.64 118.96H115.9v-34.5c0-5.1-1.4-7-5.2-7-3.31 0-7.63 1.99-10.63 4.71v36.79H86.44V302.6c0-4.83-.41-9.62-1.01-11.74l13.75-3.2c.58 2.82.89 7.62.89 12.56v10.19c0 1.6-.2 3.72-.2 4.33 3.5-3.32 9.32-5.53 14.53-5.53 6.52 0 11.71 2.81 13.32 7.33 1.01 2.92 1.32 4.61 1.32 9.54zm-69.54 1.19c-9.63 0-17.05-3.09-22.76-9.61-5.62-6.31-8.43-14.73-8.43-24.96 0-8.72 1.52-15.64 4.7-21.65 5.44-10.12 15.46-16.14 26.69-16.14 6.91 0 13.82 2.21 17.64 5.52l-6.32 9.51c-3.51-2.6-7.22-3.9-11.12-3.9-4.72 0-9.33 2.29-11.83 6.01-2.7 4-3.91 9.83-3.91 17.94 0 9.52.79 14.83 2.89 18.65 2.81 5.12 7.42 7.81 13.44 7.81 4.1 0 7.82-1.19 11.93-4.49l6.42 8.81c-5.52 4.49-11.41 6.5-19.34 6.5M40.56 198.45l6 27.48c2.81 13.04 3.72 22.95 3.72 22.95.29-2.7 1.5-12.64 3.59-22.25l6.21-28.18h15.35l6.44 31.19c1.3 6.51 3 18.45 3 18.45.19-2.22 2.39-16.36 3.8-23.18l5.72-26.47h14.73l-16.83 70.27H76.94l-6.23-28.36c-2.1-9.32-3.11-18.34-3.29-20.24 0 0-1.2 9.82-3.34 20.05l-5.8 28.55H42.36l-16.65-70.27h14.85zm-14.34-92.24h50.22l-2.3 11.64H57.5v58.04H43.25v-58.04H26.22zm69.95-4.61c.59 2.81.9 7.62.9 12.53v10.23c0 1.58-.21 3.71-.21 4.31 3.51-3.31 9.32-5.53 14.53-5.53 6.52 0 11.73 2.8 13.35 7.32 1 2.9 1.3 4.61 1.3 9.53v35.89H112.9V141.4c0-5.11-1.4-7.01-5.23-7.01-3.31 0-7.61 1.99-10.61 4.71v36.79H83.44v-59.35c0-4.82-.41-9.61-1.02-11.73zm45.17 28.78c4.21-4.72 9.32-6.94 16.14-6.94 5.9 0 11.52 2.03 14.84 5.44 4.71 4.82 6.81 11.71 6.81 22.45v3.11h-29.66v.41c0 7.92 3.9 12.42 10.81 12.42 4.6 0 8.92-1.69 13.03-5.12l5.23 8.04c-5.93 4.79-12.15 7.1-19.35 7.1-14.75 0-24.27-10.43-24.27-26.54.01-9.26 1.9-15.37 6.42-20.37M.82.04v399.28h399.26V.04z"}),(0,t.jsx)("path",{d:"M316.33 225.51c-5.11 0-8.03 4.03-8.03 11.14v.19h15.55v-.6c0-3.81-.41-5.8-1.61-7.7-1.3-2.02-3.21-3.03-5.91-3.03m101.57-211h2.16c1.87 0 3.69-.1 3.69-2.32 0-1.91-1.65-2.13-3.08-2.13h-2.77zm-2.09-6.16h5.21c3.27 0 4.83 1.3 4.83 3.94 0 2.51-1.59 3.56-3.65 3.78l3.97 6.1h-2.25l-3.75-5.94h-2.26v5.94h-2.09V8.35zm4.51 17.03c5.4 0 9.72-4.38 9.72-10.11 0-5.72-4.32-10.11-9.72-10.11-5.43 0-9.72 4.39-9.72 10.11 0 5.73 4.28 10.11 9.72 10.11m0-21.93c6.42 0 11.82 5.08 11.82 11.82s-5.4 11.82-11.82 11.82c-6.45 0-11.82-5.08-11.82-11.82 0-6.73 5.37-11.82 11.82-11.82"})]})),i=r.default.forwardRef((e,r)=>(0,t.jsx)(n.BaseIcon,{ref:r,icon:a,...e}));i.displayName="TWC",e.s(["SignInModal",0,function({isOpen:e,onClose:r}){return e?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"fixed inset-0 z-[60] bg-black/50"}),(0,t.jsx)("div",{className:"fixed inset-0 z-[70] flex items-center justify-center p-4",children:(0,t.jsxs)("div",{className:"relative w-full max-w-sm rounded-lg bg-white p-6 pt-7 shadow-lg",children:[(0,t.jsx)("button",{onClick:r,className:"absolute top-2 right-2 flex h-6 w-6 items-center justify-center rounded-full text-xl text-gray-400 hover:bg-gray-100 hover:text-gray-600","aria-label":"Close banner",children:"×"}),(0,t.jsx)("div",{className:"mt-4 mb-4 flex justify-center",children:(0,t.jsx)(i,{className:"h-10 w-auto text-blue-600"})}),(0,t.jsx)("h3",{className:"mb-4 text-center text-lg font-medium text-gray-900",children:"Sign in to join the conversation"}),(0,t.jsx)("button",{onClick:()=>{window.location.href="/login"},className:"w-full rounded-md bg-gray-900 px-4 py-2 text-sm font-medium text-white hover:bg-gray-800",children:"Sign in"})]})})]}):null}],109339);var l=e.i(877957),o=e.i(935331);e.s(["DisplayNameModal",0,function({isOpen:e,onClose:r,displayName:n,onDisplayNameChange:a,onSubmit:s,isSubmitting:c,error:d}){return e?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"fixed inset-0 z-[60] bg-black/50"}),(0,t.jsx)("div",{className:"fixed inset-0 z-[70] flex items-center justify-center p-4",children:(0,t.jsxs)("div",{className:"relative w-full max-w-sm rounded-lg bg-white p-6 shadow-xl",children:[(0,t.jsx)("button",{onClick:r,className:"absolute top-2 right-2 flex h-6 w-6 items-center justify-center rounded-full text-xl text-gray-400 hover:bg-gray-100 hover:text-gray-600","aria-label":"Close dialog",children:"×"}),(0,t.jsx)("div",{className:"mt-4 mb-4 flex justify-center",children:(0,t.jsx)(i,{className:"h-10 w-auto text-blue-600"})}),(0,t.jsx)("h2",{className:"mb-2 text-center text-xl font-semibold text-gray-900",children:"Create a display name"}),(0,t.jsx)("p",{className:"mb-6 text-left text-sm text-gray-600",children:"Your display name is the name others will see when you comment."}),(0,t.jsxs)("form",{onSubmit:s,className:"space-y-4",children:[d&&(0,t.jsx)("div",{className:"rounded-md bg-red-50 p-3 text-sm text-red-700",children:d}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)("label",{htmlFor:"displayName",className:"block text-sm font-medium text-gray-700",children:"Display Name"}),(0,t.jsx)(o.Input,{id:"displayName",type:"text",value:n,onChange:e=>a(e.target.value),placeholder:"Enter your display name",required:!0,minLength:3,maxLength:30,className:"w-full"})]}),(0,t.jsx)(l.Button,{type:"submit",disabled:c||!n.trim(),className:"w-full bg-gray-900 text-white",size:"default",children:c?"Creating...":"Create"})]}),(0,t.jsxs)("p",{className:"mt-4 text-left text-xs text-gray-500",children:["Your email address is shared with OpenWeb, the commenting platform. By creating a display name, you agree to the OpenWeb"," ",(0,t.jsx)("a",{href:"https://www.openweb.com/legal-and-privacy/privacy/",target:"_blank",rel:"noopener noreferrer",className:"text-blue-500 underline hover:text-blue-600",children:"Privacy Policy"})," ","and"," ",(0,t.jsx)("a",{href:"https://www.openweb.com/legal-and-privacy/terms-of-use/",target:"_blank",rel:"noopener noreferrer",className:"text-blue-500 underline hover:text-blue-600",children:"Terms of Use"}),"."]})]})})]}):null}],470015)},790010,e=>{"use strict";var t=e.i(245943),r=e.i(45846),n=e.i(143851);e.s(["useUserSignup",0,function(){let{authSuccess:e,authRedirect:a}=(0,n.useUserLogin)();return{signup:async(n,a=!0)=>{try{let t=await (n.password?r.upsxClient.auth.register({email:n.email,password:n.password,firstName:n.firstName}):r.upsxClient.auth.registerPasswordless({email:n.email,firstName:n.firstName}));return await e({email:t.email,userID:t.userID,type:"signup"},a),{success:!0,data:{email:t.email,userID:t.userID}}}catch(e){if(console.error("Failed to signup",e),e instanceof t.APIError){let t=e.data;return{success:!1,error:{code:e.code,...t}}}return{success:!1,error:{}}}},authRedirect:a}}])},245308,e=>{"use strict";var t=e.i(862494),r=e.i(778235),n=e.i(747961);let a=(0,r.forwardRef)(({title:e,titleId:r,desc:n,descId:a,...i},l)=>(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:l,"aria-labelledby":r,"aria-describedby":a,...i,children:[n?(0,t.jsx)("desc",{id:a,children:n}):null,void 0===e?(0,t.jsx)("title",{id:r,children:"View"}):e?(0,t.jsx)("title",{id:r,children:e}):null,(0,t.jsxs)("g",{fill:"currentColor",children:[(0,t.jsx)("path",{d:"M15.47 7.83A8.35 8.35 0 0 0 8 2.5 8.35 8.35 0 0 0 .53 7.83a.5.5 0 0 0 0 .34A8.35 8.35 0 0 0 8 13.5a8.35 8.35 0 0 0 7.47-5.33.5.5 0 0 0 0-.34M8 12.5c-2.65 0-5.45-1.965-6.465-4.5C2.55 5.465 5.35 3.5 8 3.5s5.45 1.965 6.465 4.5C13.45 10.535 10.65 12.5 8 12.5"}),(0,t.jsx)("path",{d:"M8 5a3 3 0 1 0 0 6 3 3 0 0 0 0-6m0 5a2 2 0 1 1 0-4 2 2 0 0 1 0 4"})]})]})),i=r.default.forwardRef((e,r)=>(0,t.jsx)(n.BaseIcon,{ref:r,icon:a,...e}));i.displayName="View",e.s(["View",0,i])},558802,e=>{"use strict";var t=e.i(862494),r=e.i(778235),n=e.i(747961);let a=(0,r.forwardRef)(({title:e,titleId:r,desc:n,descId:a,...i},l)=>(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:l,"aria-labelledby":r,"aria-describedby":a,...i,children:[n?(0,t.jsx)("desc",{id:a,children:n}):null,void 0===e?(0,t.jsx)("title",{id:r,children:"Locked"}):e?(0,t.jsx)("title",{id:r,children:e}):null,(0,t.jsx)("path",{fill:"currentColor",d:"M12 7h-1V4a3 3 0 0 0-6 0v3H4a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1V8a1 1 0 0 0-1-1M6 4a2 2 0 1 1 4 0v3H6zm6 10H4V8h8z"})]})),i=r.default.forwardRef((e,r)=>(0,t.jsx)(n.BaseIcon,{ref:r,icon:a,...e}));i.displayName="Locked",e.s(["Locked",0,i])},873598,e=>{"use strict";e.s(["getCompatibleTimezone",0,e=>{try{return new Intl.DateTimeFormat("en-US",{timeZone:e}),e}catch{return"Etc/UTC"}}])},506424,796424,e=>{"use strict";function t(e){if(!e)return"";let t=("number"==typeof e?new Date(e).toISOString():e instanceof Date?e.toISOString():e.replace(/GMT(?![+-])/,"GMT+0000")).replace(/\.\d+/,"").replace("Z","+0000").replace(/\s+/,"T").replace(/\s+/g,"").replace(/[A-Z]{3,}/,""),r=/([+-])(\d{2})(\d{2})$/;r.test(t)&&(t=t.replace(r,"$1$2:$3"));let n=t.replace(/(\d{4})-(\d{2})-(\d{2})/,"$1/$2/$3").replace("T"," ");return"Invalid Date"===new Date(n).toString()?"Invalid Date"!==new Date(t).toString()?t:"string"==typeof e?e:"":n}e.s(["getNormalizedDateString",0,t],796424);var r=e.i(873598);e.s(["getCompatibleValues",0,({date:e,timeZone:n})=>({cDate:new Date(t(e)),cTimeZone:(0,r.getCompatibleTimezone)(n)})],506424)},289607,e=>{"use strict";var t=e.i(506424);let r=(e,r,n,a)=>{let{cDate:i,cTimeZone:l}=(0,t.getCompatibleValues)({date:e,locale:r,timeZone:n}),o=a??{year:"numeric",month:"2-digit",day:"2-digit",weekday:"short"};return o.timeZone=l,{cDate:i,cTimeZone:l,formatOptions:o}};e.s(["formatIntlDateParts",0,(e,t,n,a)=>{if(!e)return[];let{cDate:i,formatOptions:l}=r(e,t,n,a);return new Intl.DateTimeFormat(t,l).formatToParts(i)},"formatIntlDateString",0,(e,t,n,a)=>{if(!e)return"";let{cDate:i,formatOptions:l}=r(e,t,n,a);return new Intl.DateTimeFormat(t,l).format(i)}])},127667,e=>{"use strict";let t=(0,e.i(514514).default)("loader-circle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);e.s(["Loader2",0,t],127667)},438335,e=>{"use strict";var t=e.i(23084);let r=/^[a-z][a-z0-9+.-]*:\/\//i,n=/[?#]/,a=/\/{2,}/g,i=e=>{if(!e)return e;let t=e.match(r),i=t?t[0].length:0,l=e.slice(0,i),o=e.slice(i),s=o.search(n),c=-1===s?o:o.slice(0,s),d=-1===s?"":o.slice(s);return l+c.replace(a,"/")+d},l=/\/+$/;e.s(["getPublicProductionURL",0,e=>{let r=t.default.env.VERCEL_TARGET_ENV_PRODUCTION_URL??"weather.com",n=t.default.env.VERCEL_PROJECT_PRODUCTION_URL??"weather.com",a=`https://${r??n}`;return(a=a.replace(l,""),e)?i(new URL(e,a).toString()):a},"getPublicURL",0,e=>{let r,n=(t.default.env.VERCEL_TARGET_ENV??"production")?.toLowerCase(),a=t.default.env.VERCEL_BRANCH_URL??"wx-next-web-git-releasebranch2026-06-17.vercel.weather.com",o=t.default.env.VERCEL_TARGET_ENV_URL??"weather.com",s="true"===t.default.env.NEXT_DEV_SERVER_INSECURE||"true"===t.default.env.NEXT_PUBLIC_NEXT_DEV_SERVER_INSECURE;switch(n){case"preview":r=`https://${a}`;break;case"development":r=s?`http://${o}`:`https://${o}`;break;default:r=`https://${o}`}return(r=r.replace(l,""),e)?i(new URL(e,r).toString()):r}],438335)},482317,e=>{"use strict";let t=(0,e.i(514514).default)("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);e.s(["X",0,t],482317)},16838,e=>{"use strict";var t=e.i(862494),r=e.i(752496);e.s(["DebugCollector",0,function({enabled:e=!0,...n}){return e?(0,t.jsx)(r.DebugCollectorClient,{...n}):null}])}]);