(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,393864,499167,e=>{"use strict";var t=e.i(699173),r=e.i(592121),a=e.i(747961);let i=(0,r.forwardRef)(({title:e,titleId:r,desc:a,descId:i,...o},n)=>(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:n,"aria-labelledby":r,"aria-describedby":i,...o,children:[a?(0,t.jsx)("desc",{id:i,children:a}):null,void 0===e?(0,t.jsx)("title",{id:r,children:"Facebook"}):e?(0,t.jsx)("title",{id:r,children:e}):null,(0,t.jsx)("g",{clipPath:"url(#a)",children:(0,t.jsx)("path",{fill:"currentColor",d:"M8 0a8 8 0 0 0-1.932 15.765v-5.32h-1.65V8h1.65V6.947c0-2.723 1.232-3.985 3.905-3.985.507 0 1.382.1 1.74.198v2.216c-.19-.02-.518-.03-.925-.03-1.312 0-1.818.498-1.818 1.79V8h2.613l-.45 2.445H8.97v5.496A8 8 0 0 0 8 0"})}),(0,t.jsx)("defs",{children:(0,t.jsx)("clipPath",{id:"a",children:(0,t.jsx)("path",{fill:"currentColor",d:"M0 0h16v16H0z"})})})]})),o=r.default.forwardRef((e,r)=>(0,t.jsx)(a.BaseIcon,{ref:r,icon:i,...e}));o.displayName="Facebook",e.s(["Facebook",0,o],393864);let n=(0,r.forwardRef)(({title:e,titleId:r,desc:a,descId:i,...o},n)=>(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:n,"aria-labelledby":r,"aria-describedby":i,...o,children:[a?(0,t.jsx)("desc",{id:i,children:a}):null,void 0===e?(0,t.jsx)("title",{id:r,children:"Twitter"}):e?(0,t.jsx)("title",{id:r,children:e}):null,(0,t.jsx)("path",{fill:"currentColor",d:"M12.217 1.27h2.249L9.552 6.884l5.78 7.642h-4.525L7.262 9.892l-4.056 4.635H.956L6.21 8.52.666 1.27h4.64l3.205 4.236zm-.79 11.91h1.247L4.63 2.546H3.292z"})]})),l=r.default.forwardRef((e,r)=>(0,t.jsx)(a.BaseIcon,{ref:r,icon:n,...e}));l.displayName="Twitter",e.s(["Twitter",0,l],499167)},859827,e=>{"use strict";var t=e.i(699173),r=e.i(592121),a=e.i(747961);let i=(0,r.forwardRef)(({title:e,titleId:r,desc:a,descId:i,...o},n)=>(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:n,"aria-labelledby":r,"aria-describedby":i,...o,children:[a?(0,t.jsx)("desc",{id:i,children:a}):null,void 0===e?(0,t.jsx)("title",{id:r,children:"Plus"}):e?(0,t.jsx)("title",{id:r,children:e}):null,(0,t.jsx)("path",{fill:"currentColor",d:"M12 8.5a.8.8 0 0 0-.8-.8H8.8V5.3a.8.8 0 1 0-1.6 0v2.4H4.8a.8.8 0 1 0 0 1.6h2.4v2.4a.8.8 0 0 0 1.6 0V9.3h2.4a.8.8 0 0 0 .8-.8"})]})),o=r.default.forwardRef((e,r)=>(0,t.jsx)(a.BaseIcon,{ref:r,icon:i,...e}));o.displayName="Plus",e.s(["Plus",0,o])},993269,e=>{"use strict";var t=e.i(699173),r=e.i(592121),a=e.i(747961);let i=(0,r.forwardRef)(({title:e,titleId:r,desc:a,descId:i,...o},n)=>(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:n,"aria-labelledby":r,"aria-describedby":i,...o,children:[a?(0,t.jsx)("desc",{id:i,children:a}):null,void 0===e?(0,t.jsx)("title",{id:r,children:"Minus"}):e?(0,t.jsx)("title",{id:r,children:e}):null,(0,t.jsx)("path",{fill:"currentColor",d:"M12 8.5a.8.8 0 0 0-.8-.8H4.8a.8.8 0 1 0 0 1.6h6.4a.8.8 0 0 0 .8-.8"})]})),o=r.default.forwardRef((e,r)=>(0,t.jsx)(a.BaseIcon,{ref:r,icon:i,...e}));o.displayName="Minus",e.s(["Minus",0,o])},385277,e=>{"use strict";var t=e.i(592121),r=e.i(792461);e.s(["useClientContainerSize",0,e=>{let a=(0,t.useRef)(null),[i,o]=(0,t.useState)(null),n=(0,t.useRef)(!1),l=(0,r.useRefMemo)(e);return(0,t.useEffect)(()=>{let e=a.current;if(!e||"u"{window.requestAnimationFrame(()=>{for(let t of e){let{right:e,left:r,top:a,bottom:i}=t.contentRect,s=e+r,c=a+i,d=l.current(s,c);n.current=!0,o(d)}})});return t.observe(e),()=>{t.disconnect()}},[a,l]),[i,a,n.current]}])},101346,e=>{"use strict";e.i(512134),e.s([])},438335,e=>{"use strict";var t=e.i(546584);let r=/^[a-z][a-z0-9+.-]*:\/\//i,a=/[?#]/,i=/\/{2,}/g,o=e=>{if(!e)return e;let t=e.match(r),o=t?t[0].length:0,n=e.slice(0,o),l=e.slice(o),s=l.search(a),c=-1===s?l:l.slice(0,s),d=-1===s?"":l.slice(s);return n+c.replace(i,"/")+d},n=/\/+$/;e.s(["getPublicProductionURL",0,e=>{let r=t.default.env.VERCEL_TARGET_ENV_PRODUCTION_URL??"weather.com",a=t.default.env.VERCEL_PROJECT_PRODUCTION_URL??"weather.com",i=`https://${r??a}`;return(i=i.replace(n,""),e)?o(new URL(e,i).toString()):i},"getPublicURL",0,e=>{let r,a=(t.default.env.VERCEL_TARGET_ENV??"production")?.toLowerCase(),i=t.default.env.VERCEL_BRANCH_URL??"wx-next-web-git-releasebranch2026-09-30.vercel.weather.com",l=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(a){case"preview":r=`https://${i}`;break;case"development":r=s?`http://${l}`:`https://${l}`;break;default:r=`https://${l}`}return(r=r.replace(n,""),e)?o(new URL(e,r).toString()):r}],438335)},611540,e=>{"use strict";e.i(438335);let t=(e,...t)=>{if(!e)return"";let[r={},a=!1]=t,i=Object.entries(r).reduce((e,[t,r])=>void 0===r?e:e.replaceAll(`{${t}}`,r),e);return a?i:"/en-US"===i?"/":i.replace("/en-US/","/")};e.s(["URLS",0,{BannerTextHref:"/subscribe/checkout?products=e251f39b-afd7-4ad9-9c87-5e2a8ed63fbb&tpcc=mktg-{pageKey}-mainmenu-mobilebanner",activityHubCamping:"/{locale}/activity-hub/camping/{locId}",activityHubCycling:"/{locale}/activity-hub/cycling/{locId}",activityHubGardening:"/{locale}/activity-hub/gardening/{locId}",activityHubGolf:"/{locale}/activity-hub/golf/{locId}",activityHubHiking:"/{locale}/activity-hub/hiking/{locId}",activityHubPage:"/{locale}/activity-hub/{locId}",activityHubRunning:"/{locale}/activity-hub/running/{locId}",activityHubTennis:"/{locale}/activity-hub/tennis/{locId}",airQuality:"/{locale}/forecast/air-quality/l/{locId}",alertDetails:"/{locale}/weather/alerts/localalerts/l/{locId}",alerts:"/{locale}/weather/alerts/localalerts/l/{locId}",allergy:"/{locale}/forecast/allergy/l/{locId}",apps:"/{locale}/{collectionId}/{assetName}",article:"/{locale}/{collectionId}/news/{articleTitle}",atmosphere:"/atmosphere",betterDecisions:"/mission",boatBeach:"/{locale}/forecast/boat-beach/l/{locId}",breathing:"/{locale}/forecast/breathing/l/{locId}",callforcode:"/callforcode",christmasCountdown:"/forecast/christmas-countdown/l/{locId}",coldFlu:"/{locale}/forecast/cold-flu/l/{locId}",covid19:"/{locale}/coronavirus/l/{locId}",covid19map:"/{locale}/coronavirus/map/l/{locId}",dataDefinitions:"/{locale}/data-definitions",dataInventory:"/{locale}/data-inventory",dataPartners:"/{locale}/data-partners",dataRights:"/{locale}/data-rights",explore:"/explore",farming:"/{locale}/forecast/agriculture/l/{locId}",fishing:"/{locale}/forecast/fishing/l/{locId}",fiveday:"/{locale}/weather/5day/l/{locId}",flights:"/flights",forgotPassword:"/{locale}/forgot-password",goRun:"/{locale}/forecast/gorun/l/{locId}",grilling:"/home-garden/grilling",home:"/{locale}",homeGarden:"/home-garden",hourly:"/{locale}/weather/hourbyhour/l/{locId}",hurricane:"/{locale}/hurricane",hurricaneCentral:"/storms/hurricane-central",hurricaneHub:"/hurricane/ian-2022",hurricaneNicole:"/hurricane/nicole-2022",hurricaneRetro:"/hurricane/sandy-2012",interactiveMap:"/{locale}/weather/radar/interactive/l/{locId}",legal:"/{locale}/{collectionId}/{assetName}",maps:"/maps/{collectionId}",memberLogin:"/{locale}/login",memberSettings:"/{locale}/member/settings",memberSignup:"/{locale}/signup",memberSubscription:"/{locale}/member/subscription",memorialdayCountdown:"/forecast/memorial-day-countdown/l/{locId}",mlbCountdown:"/{locale}/forecast/opening-day-countdown/l/{locId}",monthly:"/{locale}/weather/monthly/l/{locId}",myDashboard:"/{locale}/mydashboard",news:"/news",newsletter:"/{locale}/newsletter",notification:"/{locale}/life/manage-notifications",pets:"/pets",precipitation:"/{locale}/precipitation/l/{locId}",premiumOnboarding:"/{locale}/premium/onboarding",privacyPolicy:"/{locale}/privacy/privacy-policy",privacyPolicyDirectory:"/{locale}/privacy-policy-directory",privacySettings:"/{locale}/privacy-settings",radar:"/{locale}/weather/radar/interactive/l/{locId}",recipes:"/home-garden/recipes",resetPassword:"/{locale}/reset-password",rss:"/rss",safetyIndex:"/safety/index",samsungWeatherConditions:"/{locale}/weather-conditions/l/{locId}",scienceEnvironment:"/science/environment",search:"/{locale}/search/enhancedlocalsearch",shop:"https://shop.weather.com/",ski:"/{locale}/forecast/ski/l/{locId}",skinHealth:"/health/skin-health",slideshows:"/{locale}/slideshows",spaceSkywatching:"/science/space",stormRadar:"//apps.apple.com/us/app/storm-radar-weather-tracker/id1216396545",stormRadarFeatures:"/storm-radar",subsBundles:"/subscribe/bundle",subscriptionPhase2:"/{locale}/subscribe/phase2",tenday:"/{locale}/weather/tenday/l/{locId}",termsOfUse:"/{locale}/privacy/terms-of-use",thanksgivingCountdown:"/forecast/thanksgiving-countdown/l/{locId}",today:"/{locale}/weather/today/l/{locId}",tornadoCentral:"/storms/tornado-central",travel:"/travel",unsubscribe:"/{locale}/life/alerts/unsubscribe",usForecast:"/maps/currentusweather",usHealth:"/maps/health/allergies/treepollen",usSatAndRadar:"/maps/ussatellitemap",usSevereAlerts:"/maps/severealerts",usTravel:"/maps/travel/airport-delays",userSubscription:"/{locale}/subscribe",video:"/{locale}/{collectionId}/video/{videoTitle}",weatherAsProviderExplainer:"https://theweathercompany.info/{locale}/partners",weekend:"/{locale}/weather/weekend/l/{locId}",worldSatellite:"/maps/satellite/caribbeanweathermap",wu:"//www.wunderground.com",yesterday:"//www.wunderground.com/history/daily/{locId}/yesterday"},"interpolateLocationUrl",0,(e,{locale:r,locId:a,featureId:i})=>t(e,{locale:r,locId:(i?.startsWith("address.")?void 0:i)??a}),"interpolateUrl",0,t],611540)},792461,e=>{"use strict";var t=e.i(592121);e.s(["useRefMemo",0,e=>{let r=(0,t.useRef)(e);return r.current=e,r}])},999066,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var a={default:function(){return d},getImageProps:function(){return c}};for(var i in a)Object.defineProperty(r,i,{enumerable:!0,get:a[i]});let o=e.r(481258),n=e.r(589204),l=e.r(146330),s=o._(e.r(165613));function c(e){let{props:t}=(0,n.getImgProps)(e,{defaultLoader:s.default,imgConf:{deviceSizes:[640,750,828,1080,1280,1600],imageSizes:[32,48,64,96,128,256,384],qualities:[75],path:"/_next/image/",loader:"custom",dangerouslyAllowSVG:!1,unoptimized:!1}});for(let[e,r]of Object.entries(t))void 0===r&&delete t[e];return{props:t}}let d=l.Image},680852,(e,t,r)=>{t.exports=e.r(999066)},37429,e=>{"use strict";var t=e.i(699173),r=e.i(592121),a=e.i(680852),i=e.i(632137);let o={square:"Square (1:1)",video:"Video (16:9)",goldenPortrait:"Golden Portrait (1:1.618)",goldenLandscape:"Golden Landscape (1.618:1)","16/9":"16:9","8/5":"8:5","4/3":"4:3","3/2":"3:2","2/3":"2/3","1/1":"1:1",auto:"Auto"};["square","video","goldenPortrait","goldenLandscape","16/9","8/5","4/3","3/2","2/3","1/1","auto"].map(e=>({label:o[e],value:e}));let n={square:"aspect-square",video:"aspect-video",goldenPortrait:"aspect-[1/1.618]",goldenLandscape:"aspect-[1.618/1]","16/9":"aspect-[16/9]","8/5":"aspect-[8/5]","4/3":"aspect-[4/3]","3/2":"aspect-[3/2]","2/3":"aspect-[2/3]","1/1":"aspect-[1/1]",auto:"h-full w-full"},l=(0,r.forwardRef)(({src:e,alt:r,shadow:o,rounded:l=!0,className:s,wrapperClassName:c,width:d=320,height:I=180,quality:u,priority:_=!1,loading:E,isFetchPriority:N=!1,objectFit:R,fill:A=!1,sizes:T,aspectRatio:h,isAnimated:f=!1,...p},S)=>{if(!e)return null;let m=f||e.toLowerCase().endsWith(".gif"),L=A||!!h,C=R??(h?"cover":"contain"),O=h?n[h]:"",D=(0,t.jsx)(a.default,{ref:S,src:e,alt:r,width:L?void 0:d,height:L?void 0:I,quality:u,priority:_,loading:E,fetchPriority:N?"high":void 0,fill:L,sizes:T,unoptimized:m,className:(0,i.cn)({"shadow-md":o,"rounded-lg":l,"object-contain":"contain"===C,"object-cover":"cover"===C,"object-fill":"fill"===C,"object-none":"none"===C,"object-scale-down":"scale-down"===C,"h-auto w-full":!L},s),...p});return L?(0,t.jsx)("div",{className:(0,i.cn)("relative overflow-hidden",O,!h&&"h-full w-full",c),children:D}):D});l.displayName="Image",e.s(["ASPECT_RATIO_CLASSES",0,n,"Image",0,l,"default",0,l])},697380,e=>{"use strict";let t=(0,e.i(981030).atom)(0);e.s(["fixedBottomAdHeightAtom",0,t])},498076,e=>{"use strict";var t=e.i(546446),r=e.i(663333);e.s(["useIsMobile",0,function(){return"mobile"===(0,t.useAtomValue)(r.deviceClassAtom)}])},985542,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.searchLocations=n,r.transformLocationSearch=l,r.getLocationsByQuery=s,r.getLocationsByQueryAndType=c;let a=e.r(630585),i=e.r(678651),o=e.r(414655);async function n(e){let t=(0,a.getLocationSearchUrlConfig)(e),r=(0,i.urlFrom)(t),n=await fetch(r,{headers:{"Accept-Encoding":"gzip"},next:{revalidate:86400}});return(0,o.handleFetchResponse)(n)}function l(e){let t=[];if(!e.location||!e.location.city||0===e.location.city.length)return t;let r=e.location.city.length;for(let a=0;a{"use strict";var t=e.i(699173),r=e.i(592121),a=e.i(747961);let i=(0,r.forwardRef)(({title:e,titleId:r,desc:a,descId:i,...o},n)=>(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:n,"aria-labelledby":r,"aria-describedby":i,...o,children:[a?(0,t.jsx)("desc",{id:i,children:a}):null,void 0===e?(0,t.jsx)("title",{id:r,children:"Chevron Down"}):e?(0,t.jsx)("title",{id:r,children:e}):null,(0,t.jsx)("path",{fill:"currentColor",d:"M8.471 10.529a.667.667 0 0 1-.942 0L3.35 6.35a.495.495 0 1 1 .7-.7L8 9.6l3.95-3.95a.495.495 0 1 1 .7.7z"})]})),o=r.default.forwardRef((e,r)=>(0,t.jsx)(a.BaseIcon,{ref:r,icon:i,...e}));o.displayName="ChevronDown",e.s(["ChevronDown",0,o])},925209,e=>{"use strict";var t=e.i(699173),r=e.i(592121),a=e.i(747961);let i=(0,r.forwardRef)(({title:e,titleId:r,desc:a,descId:i,...o},n)=>(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:n,"aria-labelledby":r,"aria-describedby":i,...o,children:[a?(0,t.jsx)("desc",{id:i,children:a}):null,void 0===e?(0,t.jsx)("title",{id:r,children:"Location"}):e?(0,t.jsx)("title",{id:r,children:e}):null,(0,t.jsxs)("g",{fill:"currentColor",children:[(0,t.jsx)("path",{d:"M8 9a2.5 2.5 0 1 1 0-5 2.5 2.5 0 0 1 0 5m0-4a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3"}),(0,t.jsx)("path",{d:"m8 15-4.218-4.974-.174-.226A5.44 5.44 0 0 1 2.5 6.5a5.5 5.5 0 1 1 11 0 5.44 5.44 0 0 1-1.107 3.299h-.001s-.15.198-.172.225zM4.406 9.198s.117.154.144.187L8 13.454l3.455-4.075.14-.183A4.45 4.45 0 0 0 12.5 6.5a4.5 4.5 0 1 0-9 0 4.45 4.45 0 0 0 .906 2.698"})]})]})),o=r.default.forwardRef((e,r)=>(0,t.jsx)(a.BaseIcon,{ref:r,icon:i,...e}));o.displayName="Location",e.s(["Location",0,o])},724475,(e,t,r)=>{"use strict";r.match=function(e,t){return s(e).some(function(e){var r=e.inverse,a="all"===e.type||t.type===e.type;if(a&&r||!(a||r))return!1;var i=e.expressions.every(function(e){var r=e.feature,a=e.modifier,i=e.value,o=t[r];if(!o)return!1;switch(r){case"orientation":case"scan":return o.toLowerCase()===i.toLowerCase();case"width":case"height":case"device-width":case"device-height":i=I(i),o=I(o);break;case"resolution":i=d(i),o=d(o);break;case"aspect-ratio":case"device-aspect-ratio":case"device-pixel-ratio":i=c(i),o=c(o);break;case"grid":case"color":case"color-index":case"monochrome":i=parseInt(i,10)||1,o=parseInt(o,10)||0}switch(a){case"min":return o>=i;case"max":return o{"use strict";var a=e.r(724475).match,i="u">typeof window?window.matchMedia:null;function o(e,t,r){var o,n=this;function l(e){n.matches=e.matches,n.media=e.media}i&&!r&&(o=i.call(window,e)),o?(this.matches=o.matches,this.media=o.media,o.addListener(l)):(this.matches=a(e,t),this.media=e),this.addListener=function(e){o&&o.addListener(e)},this.removeListener=function(e){o&&o.removeListener(e)},this.dispose=function(){o&&o.removeListener(l)}}t.exports=function(e,t,r){return new o(e,t,r)}},35305,(e,t,r)=>{"use strict";t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},561227,(e,t,r)=>{"use strict";var a=e.r(35305);function i(){}function o(){}o.resetWarningCache=i,t.exports=function(){function e(e,t,r,i,o,n){if(n!==a){var l=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw l.name="Invariant Violation",l}}function t(){return e}e.isRequired=e;var r={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:i};return r.PropTypes=r,r}},304153,(e,t,r)=>{t.exports=e.r(561227)()},909232,163363,e=>{"use strict";var t=e.i(592121),r=e.i(342716),a=/[A-Z]/g,i=/^ms-/,o={};function n(e){return"-"+e.toLowerCase()}let l=function(e){if(o.hasOwnProperty(e))return o[e];var t=e.replace(a,n);return o[e]=i.test(t)?"-"+t:t};var s=e.i(304153);let c=s.default.oneOfType([s.default.string,s.default.number]),d={all:s.default.bool,grid:s.default.bool,aural:s.default.bool,braille:s.default.bool,handheld:s.default.bool,print:s.default.bool,projection:s.default.bool,screen:s.default.bool,tty:s.default.bool,tv:s.default.bool,embossed:s.default.bool},{type:I,...u}={orientation:s.default.oneOf(["portrait","landscape"]),scan:s.default.oneOf(["progressive","interlace"]),aspectRatio:s.default.string,deviceAspectRatio:s.default.string,height:c,deviceHeight:c,width:c,deviceWidth:c,color:s.default.bool,colorIndex:s.default.bool,monochrome:s.default.bool,resolution:c,type:Object.keys(d)},_={minAspectRatio:s.default.string,maxAspectRatio:s.default.string,minDeviceAspectRatio:s.default.string,maxDeviceAspectRatio:s.default.string,minHeight:c,maxHeight:c,minDeviceHeight:c,maxDeviceHeight:c,minWidth:c,maxWidth:c,minDeviceWidth:c,maxDeviceWidth:c,minColor:s.default.number,maxColor:s.default.number,minColorIndex:s.default.number,maxColorIndex:s.default.number,minMonochrome:s.default.number,maxMonochrome:s.default.number,minResolution:c,maxResolution:c,...u};var E={...d,..._};let N=(0,t.createContext)(void 0),R=e=>{if(e)return Object.keys(e).reduce((t,r)=>(t[l(r)]=e[r],t),{})},A=()=>{let e=(0,t.useRef)(!1);return(0,t.useEffect)(()=>{e.current=!0},[]),e.current},T=(e,a,i)=>{let o=(e=>{let r=(0,t.useContext)(N),a=()=>R(e)||R(r),[i,o]=(0,t.useState)(a);return(0,t.useEffect)(()=>{let e=a();!function(e,t){if(e===t)return!0;if(!e||!t)return!1;let r=Object.keys(e),a=Object.keys(t),i=r.length;if(a.length!==i)return!1;for(let a=0;a{let r=()=>{let t;return e.query||(t=[],Object.keys(E).forEach(r=>{let a=e[r];null!=a&&t.push(((e,t)=>{let r=l(e);if("number"==typeof t&&(t=`${t}px`),!0===t)return r;if(!1===t)return`not ${r}`;return`(${r}: ${t})`})(r,a))}),t.join(" and "))},[a,i]=(0,t.useState)(r);return(0,t.useEffect)(()=>{let e=r();a!==e&&i(e)},[e]),a})(e);if(!n)throw Error("Invalid or missing MediaQuery!");let s=((e,a)=>{let i=()=>(0,r.default)(e,a||{},!!a),[o,n]=(0,t.useState)(i),l=A();return(0,t.useEffect)(()=>{if(l){let e=i();return n(e),()=>{e&&e.dispose()}}},[e,a]),o})(n,o),c=(e=>{let[r,a]=(0,t.useState)(e.matches);return(0,t.useEffect)(()=>{let t=e=>{a(e.matches)};return e.addListener(t),a(e.matches),()=>{e.removeListener(t)}},[e]),r})(s),d=A();return(0,t.useEffect)(()=>{d&&i&&i(c)},[c]),(0,t.useEffect)(()=>()=>{s&&s.dispose()},[]),c};e.s(["useMediaQuery",0,T],163363),e.s(["useClientMobileMedia",0,()=>!T({query:"(min-width: 768px)"})],909232)},935331,e=>{"use strict";var t=e.i(699173),r=e.i(632137);e.s(["Input",0,function({className:e,type:a,...i}){return(0,t.jsx)("input",{type:a,"data-slot":"input",className:(0,r.cn)("file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input flex h-9 w-full min-w-0 rounded-md border bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm","focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]","aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",e),...i})}])},180193,e=>{"use strict";var t=e.i(699173),r=e.i(592121),a=e.i(617874);let i=(0,r.memo)(({className:e,unitsClassName:r,units:i,value:o,degreeSymbolClass:n,unitOnly:l})=>{let s=null!=o,c=i?(0,a.unitsSystemByCode)(i):null,d=c?.temp,I=Number.isFinite(o)&&Math.round(o);return(0,t.jsx)("span",{"data-testid":"TemperatureValue",className:e,dir:"ltr",children:s||!s&&l?(0,t.jsxs)(t.Fragment,{children:[s&&I,(0,t.jsx)("span",{className:n,children:"°"}),d&&(0,t.jsx)("span",{className:r,children:d})]}):"--"})});e.s(["Temperature",0,i])},979777,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.getCurrentObservationsUrlConfig=function({geocode:e,units:t,language:r}){return{host:"api.weather.com",protocol:"https",pathname:"/v3/wx/observations/current",query:{geocode:e,units:t,language:r,format:"json",apiKey:"71f92ea9dd2f4790b92ea9dd2f779061"}}},r.getTropicalConeUrlConfig=function({stormId:e,units:t,language:r,nautical:a}){return{host:"api.weather.com",protocol:"https",pathname:"/v3/tropical/cone",query:{stormId:e,units:t,language:r,nautical:a,format:"json",apiKey:"71f92ea9dd2f4790b92ea9dd2f779061"}}},r.getTropicalObservationsCurrentPositionUrlConfig=function({nautical:e,source:t,basin:r,units:a,language:i}){return{host:"api.weather.com",protocol:"https",pathname:"/v2/tropical/currentposition",query:{nautical:e,source:t,basin:r,units:a,language:i,format:"json",apiKey:"71f92ea9dd2f4790b92ea9dd2f779061"}}}},349262,(e,t,r)=>{"use strict";var a,i,o,n,l,s,c,d,I,u,_,E,N,R,A,T,h,f,p,S;Object.defineProperty(r,"__esModule",{value:!0}),r.ICON_CODE_MAP=r.ICON_CODE_EXTENDED=r.IconCodeExtended=r.IconCode=r.CloudCoverPhrase=r.PressureTendencyCode=r.UVDescription=r.WindDirectionCardinal=r.DayOrNight=r.HourlyForecastDuration=r.ForecastDuration=r.Units=void 0,(_=a||(r.Units=a={})).IMPERIAL="e",_.METRIC="m",_.HYBRID="h",(E=i||(r.ForecastDuration=i={})).THREE_DAY="3day",E.FIVE_DAY="5day",E.SEVEN_DAY="7day",E.TEN_DAY="10day",E.FIFTEEN_DAY="15day",(N=o||(r.HourlyForecastDuration=o={})).SIX_HOUR="6hour",N.TWELVE_HOUR="12hour",N.ONE_DAY="1day",N.TWO_DAY="2day",N.THREE_DAY="3day",N.TEN_DAY="10day",N.FIFTEEN_DAY="15day",(R=n||(r.DayOrNight=n={})).DAY="D",R.NIGHT="N",R.MISSING="X",(A=l||(r.WindDirectionCardinal=l={})).NORTH="N",A.NORTH_NORTHEAST="NNE",A.NORTHEAST="NE",A.EAST_NORTHEAST="ENE",A.EAST="E",A.EAST_SOUTHEAST="ESE",A.SOUTHEAST="SE",A.SOUTH_SOUTHEAST="SSE",A.SOUTH="S",A.SOUTH_SOUTHWEST="SSW",A.SOUTHWEST="SW",A.WEST_SOUTHWEST="WSW",A.WEST="W",A.WEST_NORTHWEST="WNW",A.NORTHWEST="NW",A.NORTH_NORTHWEST="NNW",A.CALM="CALM",(T=s||(r.UVDescription=s={})).NOT_AVAILABLE="-2",T.NO_REPORT="-1",T.LOW="Low",T.MODERATE="Moderate",T.HIGH="High",T.VERY_HIGH="Very High",T.EXTREME="Extreme",(h=c||(r.PressureTendencyCode=c={}))[h.STEADY=0]="STEADY",h[h.RISING=1]="RISING",h[h.FALLING=2]="FALLING",h[h.RAPIDLY_RISING=3]="RAPIDLY_RISING",h[h.RAPIDLY_FALLING=4]="RAPIDLY_FALLING",(f=d||(r.CloudCoverPhrase=d={})).CLEAR="Clear",f.PARTLY_CLOUDY="Partly Cloudy",f.MOSTLY_CLOUDY="Mostly Cloudy",f.CLOUDY="Cloudy",(p=I||(r.IconCode=I={}))[p.TORNADO=0]="TORNADO",p[p.TROPICAL_STORM=1]="TROPICAL_STORM",p[p.HURRICANE=2]="HURRICANE",p[p.STRONG_STORMS=3]="STRONG_STORMS",p[p.THUNDERSTORMS=4]="THUNDERSTORMS",p[p.RAIN_SNOW_WINTERY_MIX=5]="RAIN_SNOW_WINTERY_MIX",p[p.RAIN_SLEET=6]="RAIN_SLEET",p[p.RAIN_SNOW_WINTERY_MIX_ALT=7]="RAIN_SNOW_WINTERY_MIX_ALT",p[p.FREEZING_DRIZZLE_RAIN=8]="FREEZING_DRIZZLE_RAIN",p[p.DRIZZLE=9]="DRIZZLE",p[p.FREEZING_DRIZZLE_RAIN_ALT=10]="FREEZING_DRIZZLE_RAIN_ALT",p[p.SHOWERS=11]="SHOWERS",p[p.RAIN=12]="RAIN",p[p.FLURRIES=13]="FLURRIES",p[p.SNOW_SHOWERS=14]="SNOW_SHOWERS",p[p.BLOWING_DRIFTING_SNOW=15]="BLOWING_DRIFTING_SNOW",p[p.SNOW=16]="SNOW",p[p.HAIL=17]="HAIL",p[p.SLEET=18]="SLEET",p[p.BLOWING_DUST_SANDSTORM=19]="BLOWING_DUST_SANDSTORM",p[p.FOGGY=20]="FOGGY",p[p.HAZE=21]="HAZE",p[p.SMOKE=22]="SMOKE",p[p.BREEZY=23]="BREEZY",p[p.WINDY=24]="WINDY",p[p.BLOWING_DRIFTING_SNOW_ALT=25]="BLOWING_DRIFTING_SNOW_ALT",p[p.CLOUDY=26]="CLOUDY",p[p.MOSTLY_CLOUDY_NIGHT=27]="MOSTLY_CLOUDY_NIGHT",p[p.MOSTLY_CLOUDY_DAY=28]="MOSTLY_CLOUDY_DAY",p[p.PARTLY_CLOUDY_NIGHT=29]="PARTLY_CLOUDY_NIGHT",p[p.PARTLY_CLOUDY_DAY=30]="PARTLY_CLOUDY_DAY",p[p.CLEAR_NIGHT=31]="CLEAR_NIGHT",p[p.SUNNY=32]="SUNNY",p[p.MOSTLY_CLEAR_NIGHT=33]="MOSTLY_CLEAR_NIGHT",p[p.MOSTLY_CLEAR_DAY=34]="MOSTLY_CLEAR_DAY",p[p.MIXED_RAIN_HAIL=35]="MIXED_RAIN_HAIL",p[p.SUNNY_ALT=36]="SUNNY_ALT",p[p.ISOLATED_THUNDERSTORMS=37]="ISOLATED_THUNDERSTORMS",p[p.SCATTERED_THUNDERSTORMS_DAY=38]="SCATTERED_THUNDERSTORMS_DAY",p[p.SCATTERED_SHOWERS_DAY=39]="SCATTERED_SHOWERS_DAY",p[p.HEAVY_RAIN=40]="HEAVY_RAIN",p[p.SCATTERED_SNOW_SHOWERS_DAY=41]="SCATTERED_SNOW_SHOWERS_DAY",p[p.HEAVY_SNOW_BLIZZARD=42]="HEAVY_SNOW_BLIZZARD",p[p.HEAVY_SNOW_BLIZZARD_ALT=43]="HEAVY_SNOW_BLIZZARD_ALT",p[p.NA=44]="NA",p[p.SCATTERED_SHOWERS_NIGHT=45]="SCATTERED_SHOWERS_NIGHT",p[p.SCATTERED_SNOW_SHOWERS_NIGHT=46]="SCATTERED_SNOW_SHOWERS_NIGHT",p[p.SCATTERED_THUNDERSTORMS_NIGHT=47]="SCATTERED_THUNDERSTORMS_NIGHT",(S=u||(r.IconCodeExtended=u={}))[S.STRONG_STORMS=300]="STRONG_STORMS",S[S.STRONG_STORMS_WIND=310]="STRONG_STORMS_WIND",S[S.FREEZING_RAIN=1e3]="FREEZING_RAIN",S[S.LIGHT_FREEZING_RAIN=1001]="LIGHT_FREEZING_RAIN",S[S.HEAVY_FREEZING_RAIN=1002]="HEAVY_FREEZING_RAIN",S[S.FREEZING_RAIN_WIND=1010]="FREEZING_RAIN_WIND",S[S.LIGHTFREEZING_RAIN_WIND=1011]="LIGHTFREEZING_RAIN_WIND",S[S.HEAVY_FREEZING_RAIN_WIND=1012]="HEAVY_FREEZING_RAIN_WIND",S[S.LIGHT_FREEZING_RAIN_FOG=1051]="LIGHT_FREEZING_RAIN_FOG",S[S.SLEET=1800]="SLEET",S[S.LIGHT_SLEET=1801]="LIGHT_SLEET",S[S.SLEET_WIND=1810]="SLEET_WIND",S[S.LIGHT_SLEET_WIND=1811]="LIGHT_SLEET_WIND",S[S.SCATTERED_THUNDERSTORMS_WIND=3819]="SCATTERED_THUNDERSTORMS_WIND",S[S.HEAVY_SNOW=4200]="HEAVY_SNOW",S[S.HEAVY_SNOW_WIND=4210]="HEAVY_SNOW_WIND",S[S.BLIZZARD=4300]="BLIZZARD",S[S.FREEZING_RAIN_SLEET=5100]="FREEZING_RAIN_SLEET",S[S.LIGHT_FREEZING_RAIN_SLEET=5101]="LIGHT_FREEZING_RAIN_SLEET",S[S.FREEZING_RAIN_SLEET_WIND=5110]="FREEZING_RAIN_SLEET_WIND",S[S.LIGHT_FREEZING_RAIN_SLEET_WIND=5111]="LIGHT_FREEZING_RAIN_SLEET_WIND",S[S.RAIN_FREEZING_RAIN=5300]="RAIN_FREEZING_RAIN",S[S.LIGHT_RAIN_FREEZING_RAIN=5301]="LIGHT_RAIN_FREEZING_RAIN",S[S.HEAVY_RAIN_FREEZING_RAIN=5302]="HEAVY_RAIN_FREEZING_RAIN",S[S.RAIN_FREEZING_RAIN_WIND=5310]="RAIN_FREEZING_RAIN_WIND",S[S.LIGHT_RAIN_FREEZING_RAIN_WIND=5311]="LIGHT_RAIN_FREEZING_RAIN_WIND",S[S.HEAVY_RAIN_FREEZING_RAIN_WIND=5312]="HEAVY_RAIN_FREEZING_RAIN_WIND",S[S.LIGHT_RAIN_FREEZING_RAIN_FOG=5351]="LIGHT_RAIN_FREEZING_RAIN_FOG",S[S.THUNDER_SNOW=5600]="THUNDER_SNOW",S[S.THUNDER_SNOW_WIND=5610]="THUNDER_SNOW_WIND",S[S.SCATTERED_STRONG_STORMS=5709]="SCATTERED_STRONG_STORMS",S[S.SCATTERED_STRONG_STORMS_WIND=5719]="SCATTERED_STRONG_STORMS_WIND",S[S.RAIN_ICE_EARLY=6500]="RAIN_ICE_EARLY",S[S.LIGHT_RAIN_ICE_EARLY=6501]="LIGHT_RAIN_ICE_EARLY",S[S.AM_RAIN_ICE=6503]="AM_RAIN_ICE",S[S.AM_LIGHT_RAIN_ICE=6504]="AM_LIGHT_RAIN_ICE",S[S.RAIN_ICE_WIND_EARLY=6510]="RAIN_ICE_WIND_EARLY",S[S.LIGHT_RAIN_ICE_WIND_EARLY=6511]="LIGHT_RAIN_ICE_WIND_EARLY",S[S.AM_RAIN_ICE_WIND=6513]="AM_RAIN_ICE_WIND",S[S.AM_LIGHT_RAIN_ICE_WIND=6514]="AM_LIGHT_RAIN_ICE_WIND",S[S.ICE_EARLY=6600]="ICE_EARLY",S[S.AM_ICE=6603]="AM_ICE",S[S.ICE_WIND_EARLY=6610]="ICE_WIND_EARLY",S[S.AM_ICE_WIND=6613]="AM_ICE_WIND",S[S.RAIN_ICE_LATE=7500]="RAIN_ICE_LATE",S[S.LIGHT_RAIN_ICE_LATE=7501]="LIGHT_RAIN_ICE_LATE",S[S.PM_RAIN_ICE=7503]="PM_RAIN_ICE",S[S.PM_LIGHT_RAIN_ICE=7504]="PM_LIGHT_RAIN_ICE",S[S.RAIN_ICE_WIND_LATE=7510]="RAIN_ICE_WIND_LATE",S[S.LIGHT_RAIN_ICE_WIND_LATE=7511]="LIGHT_RAIN_ICE_WIND_LATE",S[S.PM_RAIN_ICE_WIND=7513]="PM_RAIN_ICE_WIND",S[S.PM_LIGHT_RAIN_ICE_WIND=7514]="PM_LIGHT_RAIN_ICE_WIND",S[S.ICE_LATE=7600]="ICE_LATE",S[S.PM_ICE=7603]="PM_ICE",S[S.ICE_WIND_LATE=7610]="ICE_WIND_LATE",S[S.PM_ICE_WIND=7613]="PM_ICE_WIND",S[S.RAIN_TO_ICE=8100]="RAIN_TO_ICE",S[S.RAIN_TO_ICE_WIND=8110]="RAIN_TO_ICE_WIND",S[S.ICE_TO_RAIN=8500]="ICE_TO_RAIN",S[S.ICE_TO_RAIN_WIND=8510]="ICE_TO_RAIN_WIND",r.ICON_CODE_EXTENDED={300:"STRONG_STORMS",310:"STRONG_STORMS-WIND",1e3:"FREEZING_RAIN",1001:"LIGHT_FREEZING_RAIN",1002:"HEAVY_FREEZING_RAIN",1010:"FREEZING_RAIN-WIND",1011:"LIGHTFREEZING_RAIN-WIND",1012:"HEAVY_FREEZING_RAIN-WIND",1051:"LIGHT_FREEZING_RAIN-FOG",1800:"SLEET",1801:"LIGHT_SLEET",1810:"SLEET-WIND",1811:"LIGHT_SLEET-WIND",3819:"SCATTERED_THUNDERSTORMS-WIND",4200:"HEAVY_SNOW",4210:"HEAVY_SNOW-WIND",4300:"BLIZZARD",5100:"FREEZING_RAIN-SLEET",5101:"LIGHT_FREEZING_RAIN-SLEET",5110:"FREEZING_RAIN-SLEET-WIND",5111:"LIGHT_FREEZING_RAIN-SLEET-WIND",5300:"RAIN-FREEZING_RAIN",5301:"LIGHT_RAIN-FREEZING_RAIN",5302:"HEAVY_RAIN-FREEZING_RAIN",5310:"RAIN-FREEZING_RAIN-WIND",5311:"LIGHT_RAIN-FREEZING_RAIN-WIND",5312:"HEAVY_RAIN-FREEZING_RAIN-WIND",5351:"LIGHT_RAIN-FREEZING_RAIN-FOG",5600:"THUNDER_SNOW",5610:"THUNDER_SNOW-WIND",5709:"SCATTERED_STRONG_STORMS",5719:"SCATTERED_STRONG_STORMS-WIND",6500:"RAIN-ICE_EARLY",6501:"LIGHT_RAIN-ICE_EARLY",6503:"AM_RAIN-ICE",6504:"AM_LIGHT_RAIN-ICE",6510:"RAIN-ICE-WIND_EARLY",6511:"LIGHT_RAIN-ICE-WIND_EARLY",6513:"AM_RAIN-ICE-WIND",6514:"AM_LIGHT_RAIN-ICE-WIND",6600:"ICE_EARLY",6603:"AM_ICE",6610:"ICE-WIND_EARLY",6613:"AM_ICE-WIND",7500:"RAIN-ICE_LATE",7501:"LIGHT_RAIN-ICE_LATE",7503:"PM_RAIN-ICE",7504:"PM_LIGHT_RAIN-ICE",7510:"RAIN-ICE-WIND_LATE",7511:"LIGHT_RAIN-ICE-WIND_LATE",7513:"PM_RAIN-ICE-WIND",7514:"PM_LIGHT_RAIN-ICE-WIND",7600:"ICE_LATE",7603:"PM_ICE",7610:"ICE-WIND_LATE",7613:"PM_ICE-WIND",8100:"RAIN_TO_ICE",8110:"RAIN_TO_ICE-WIND",8500:"ICE_TO_RAIN",8510:"ICE_TO_RAIN-WIND"},r.ICON_CODE_MAP={0:"tornado",1:"tropical-storm",2:"hurricane",3:"strong-storms",4:"thunderstorms",5:"rain-snow-wintery-mix",6:"rain-sleet",7:"rain-snow-wintery-mix",8:"freezing-drizzle-rain",9:"drizzle",10:"freezing-drizzle-rain",11:"showers",12:"rain",13:"flurries",14:"snow-showers",15:"blowing-drifting-snow",16:"snow",17:"hail",18:"sleet",19:"blowing-dust-sandstorm",20:"foggy",21:"haze",22:"smoke",23:"breezy",24:"windy",25:"blowing-drifting-snow",26:"cloudy",27:"mostly-cloudy-night",28:"mostly-cloudy-day",29:"partly-cloudy-night",30:"partly-cloudy-day",31:"clear-night",32:"sunny",33:"mostly-clear-night",34:"mostly-clear-day",35:"mixed-rain-hail",36:"sunny",37:"isolated-thunderstorms",38:"scattered-thunderstorms-day",39:"scattered-showers-day",40:"heavy-rain",41:"scattered-snow-showers-day",42:"heavy-snow-blizzard",43:"heavy-snow-blizzard",44:"na",45:"scattered-showers-night",46:"scattered-snow-showers-night",47:"scattered-thunderstorms-night"}},861160,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.normalizeCardinal=void 0;let a=e.r(349262),i={O:a.WindDirectionCardinal.WEST,NO:a.WindDirectionCardinal.NORTHWEST,NNO:a.WindDirectionCardinal.NORTH_NORTHWEST,ONO:a.WindDirectionCardinal.WEST_NORTHWEST,OSO:a.WindDirectionCardinal.WEST_SOUTHWEST,SO:a.WindDirectionCardinal.SOUTHWEST,SSO:a.WindDirectionCardinal.SOUTH_SOUTHWEST};r.normalizeCardinal=e=>i[e]||e},889951,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.getCurrentObservations=s;let a=e.r(979777),i=e.r(678651),o=e.r(414655),n=e.r(861160),l=e.r(349262);async function s(e){let t=(0,a.getCurrentObservationsUrlConfig)(e),r=(0,i.urlFrom)(t),s=await fetch(r,{headers:{"Accept-Encoding":"gzip"},next:{revalidate:300}}),c=await (0,o.handleFetchResponse)(s);return{...c,pressureMeanSeaLevel:e.units===l.Units.IMPERIAL?c.pressureMeanSeaLevel/33.8639:c.pressureMeanSeaLevel,windDirectionCardinal:(0,n.normalizeCardinal)(c.windDirectionCardinal)}}},650130,(e,t,r)=>{"use strict";function a(e){return Math.PI/180*e}function i(e,t,r,i){if(isNaN(e)||isNaN(t)||isNaN(r)||isNaN(i))return NaN;if(e===r&&t===i)return 0;let o=a(r-e),n=a(i-t),l=Math.sin(o/2)*Math.sin(o/2)+Math.cos(a(e))*Math.cos(a(r))*Math.sin(n/2)*Math.sin(n/2);return 2*Math.atan2(Math.sqrt(l),Math.sqrt(1-l))*6371}function o(e,t,r){let a=-90,i=90,o=-180,n=180,l="",s=0,c=0,d=!0;for(;l.length=e?(c=(c=t?(c=(c{"use strict";var t=e.i(304116),r=e.i(388706),a=e.i(258990);function i(e){let t=(/\/day-\d+$/.test(e)?e.slice(0,e.lastIndexOf("/")):e).split("/").pop()??"";return r.CANONICAL_PAGE_TYPES.includes(t)?t:void 0}e.s(["LOC_ID_SEGMENT",0,"/l/","isSwappableLocationPathname",0,function({pathname:e,locId:t}){return!!t||void 0!==i(e)||e.includes("/l/")},"swapLocationOnCurrentPage",0,function({pathname:e,locId:r,locale:o,identifier:n,featureId:l,placeId:s,canonicalID:c,skipCanonical:d}){if(r){let t=(0,a.decodeLocId)(r);return e.replace(r,t).replace(t,n)}let I=i(e);if(I)return(0,t.buildLocationPageHref)({pageType:I,locale:o,canonicalID:c,featureId:l,placeId:s,skipCanonical:d});let u=e.indexOf("/l/");if(-1!==u){let t=e.slice(0,u+3);return`${t}${n}`}return null}])},262453,214008,352711,e=>{"use strict";var t=e.i(546446),r=e.i(150137);e.s(["usePreciseGeocode",0,function(){return(0,t.useAtomValue)(r.preciseGeocodeAtom)}],262453);var a=e.i(726249);e.s(["isSameLocation",0,function(e,t){if(!e||!t)return!1;let r=(0,a.locationDedupKey)(e);return!!r&&r===(0,a.locationDedupKey)(t)}],214008);var i=e.i(699173),o=e.i(592121),n=e.i(961123),l=e.i(553329),s=e.i(695881),c=e.i(88349);let d=(0,s.createLogger)("useRequestPreciseLocation");var I=e.i(942400),u=e.i(520938),_=e.i(671525),E=e.i(426606),N=e.i(747961);let R=(0,o.forwardRef)(({title:e,titleId:t,desc:r,descId:a,...o},n)=>(0,i.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:n,"aria-labelledby":t,"aria-describedby":a,...o,children:[r?(0,i.jsx)("desc",{id:a,children:r}):null,void 0===e?(0,i.jsx)("title",{id:t,children:"Current Location Lost"}):e?(0,i.jsx)("title",{id:t,children:e}):null,(0,i.jsx)("g",{fill:"currentColor",children:(0,i.jsx)("path",{d:"M15 14.295 1.705 1 1 1.705l4 4L1.33 7.03a.5.5 0 0 0-.323.467.5.5 0 0 0 .323.468l4.8 1.92 1.92 4.8A.5.5 0 0 0 8.5 15a.5.5 0 0 0 .46-.33L10.3 11l4 4zm-6.522-1.197L6.885 9.115 2.902 7.522 4.335 7l1.435-.5 3.73 3.73-.5 1.435zM7.845 5.725l3.82-1.39-1.39 3.82.78.78L12.97 3.67a.499.499 0 0 0-.64-.64L7.065 4.945z"})})]})),A=o.default.forwardRef((e,t)=>(0,i.jsx)(N.BaseIcon,{ref:t,icon:R,...e}));A.displayName="CurrentLocationLost",e.i(807079);var T=e.i(754219);e.s(["useImprovePrecisionFlow",0,function(e){let{request:s}=function(){let[e,i]=(0,o.useState)("idle"),[n,s]=(0,o.useState)(void 0),I=(0,t.useSetAtom)(r.preciseGeocodeAtom),u=(0,o.useRef)(!1);return{status:e,geocode:n,request:(0,o.useCallback)(async()=>{if(u.current)return{status:"requesting",geocode:void 0};u.current=!0,i("requesting");try{let e;if(navigator.permissions){let{data:t,error:r}=await (0,l.tryCatch)(navigator.permissions.query({name:"geolocation"}));r?d.error("Permissions API query failed",r):e=t?.state}if("denied"===e)return i("denied"),{status:"denied",geocode:void 0};let t=await (0,c.getGeolocationAPIGeocode)(1e4,{bypassCache:!0});if(t?.latitude&&t?.longitude){let e=(0,a.formatGeocode)(`${t.latitude},${t.longitude}`);return s(e),I(e),i("granted"),{status:"granted",geocode:e}}return i("error"),{status:"error",geocode:void 0}}finally{u.current=!1}},[I]),reset:(0,o.useCallback)(()=>{i("idle"),s(void 0)},[])}}(),{navigate:N}=(0,_.usePageNavigation)(),R=(0,n.useParams)(),h=(0,n.usePathname)(),f=(0,I.usePageLocale)(),p=R?.locId,S=R?.canonicalLocation,m=(0,o.useRef)(e);return m.current=e,(0,o.useCallback)(async()=>{let{status:e,geocode:t}=await s();if("denied"===e){let e=m.current;(0,T.toast)(e.unavailableTitle,{id:"improve-precision",icon:(0,i.jsx)(A,{className:"size-5 text-white"}),description:e.unavailableBody,duration:8e3});return}if("granted"!==e||!t||!(0,u.isSwappableLocationPathname)({pathname:h,locId:p,canonicalLocation:S}))return;let{data:r}=await (0,l.tryCatch)((0,E.fetchWithoutCredentials)(`/api/location/canonical?geocode=${encodeURIComponent(t)}&language=${encodeURIComponent(f)}`).then(e=>e.ok?e.json():null)),a=r?.featureId,o=r?.placeId,n=r?.canonicalID,c=a??o;if(!c)return;let d=(0,u.swapLocationOnCurrentPage)({pathname:h,locId:p,canonicalLocation:S,locale:f,identifier:c,featureId:a,placeId:o,canonicalID:n});d&&N(d)},[s,N,p,S,h,f])}],352711)},870393,e=>{"use strict";let t=(0,e.i(514514).default)("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);e.s(["ChevronRight",0,t],870393)}]);