(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,286863,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.matchStormById=r.stormMatchesId=void 0,r.stormMatchesId=(e,t)=>{if(!t)return!1;let r=t.toLowerCase();return e.storm_id.toLowerCase()===r||e.storm_name.toLowerCase()===r},r.matchStormById=(e,t)=>{if(!e||!t)return null;let r=t.toLowerCase(),a=e.find(e=>e.storm_id.toLowerCase()===r);return a||(e.find(e=>e.storm_name.toLowerCase()===r)??null)}},643548,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.getTropicalCurrentPosition=s;let a=e.r(979777),l=e.r(678651),i=e.r(414655);async function s(e){let t=(0,a.getTropicalObservationsCurrentPositionUrlConfig)(e),r=(0,l.urlFrom)(t),s=await fetch(r,{headers:{"Accept-Encoding":"gzip"},next:{revalidate:300}});return(0,i.handleFetchResponse)(s)}},701445,153237,922372,738534,181081,685790,e=>{"use strict";var t=e.i(902875),r=e.i(247865),a=e.i(747961);let l=(0,r.forwardRef)(({title:e,titleId:r,desc:a,descId:l,...i},s)=>(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:s,"aria-labelledby":r,"aria-describedby":l,...i,children:[a?(0,t.jsx)("desc",{id:l,children:a}):null,void 0===e?(0,t.jsx)("title",{id:r,children:"Hurricane Category 1"}):e?(0,t.jsx)("title",{id:r,children:e}):null,(0,t.jsx)("path",{fill:"currentColor",fillRule:"evenodd",d:"M3.669 12.27 2.5 13.52a1.48 1.48 0 0 0-.328 1.474c.163.494.608.927 1.242.974 2.488.187 6.734-.393 9.171-3.78 1.318-1.83 1.605-3.621 1.306-5.196-.256-1.348-.927-2.47-1.615-3.294l1.168-1.216c.42-.437.506-1.037.33-1.53a1.42 1.42 0 0 0-1.319-.95C10.925-.026 9.04.181 7.316.8c-1.72.618-3.391 1.69-4.292 3.469-1.03 2.034-1.209 3.718-.864 5.153.288 1.203.924 2.13 1.509 2.847",clipRule:"evenodd"}),(0,t.jsx)("path",{fill:"currentColor",d:"M7.992 2.682c-1.451.522-2.6 1.335-3.184 2.49-.862 1.703-.915 2.9-.704 3.783.22.914.756 1.638 1.37 2.355.49.572.484 1.438-.041 2-.23.247-.045.637.29.59 1.875-.26 3.939-1.071 5.24-2.88 1.008-1.4 1.158-2.636.964-3.655-.201-1.057-.792-1.975-1.408-2.638-.52-.56-.578-1.485.007-2.093.198-.206.037-.54-.246-.501-.77.108-1.554.285-2.288.55"}),(0,t.jsx)("path",{fill:"currentColor",d:"M8.963 5.182V11H7.909V6.207h-.035l-1.36.87V6.11l1.446-.93z"})]})),i=r.default.forwardRef((e,r)=>(0,t.jsx)(a.BaseIcon,{ref:r,icon:l,...e}));i.displayName="HurricaneCategoryOne",e.s(["HurricaneCategoryOne",0,i],701445);let s=(0,r.forwardRef)(({title:e,titleId:r,desc:a,descId:l,...i},s)=>(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:s,"aria-labelledby":r,"aria-describedby":l,...i,children:[a?(0,t.jsx)("desc",{id:l,children:a}):null,void 0===e?(0,t.jsx)("title",{id:r,children:"Hurricane Category 2"}):e?(0,t.jsx)("title",{id:r,children:e}):null,(0,t.jsx)("path",{fill:"currentColor",fillRule:"evenodd",d:"M3.669 12.27 2.5 13.52a1.48 1.48 0 0 0-.328 1.474c.163.494.608.927 1.242.974 2.488.187 6.734-.393 9.171-3.78 1.318-1.83 1.605-3.621 1.306-5.196-.256-1.348-.927-2.47-1.615-3.294l1.168-1.216c.42-.437.506-1.037.33-1.53a1.42 1.42 0 0 0-1.319-.95C10.925-.026 9.04.181 7.316.8c-1.72.618-3.391 1.69-4.292 3.469-1.03 2.034-1.209 3.718-.864 5.153.288 1.203.924 2.13 1.509 2.847",clipRule:"evenodd"}),(0,t.jsx)("path",{fill:"currentColor",d:"M7.992 2.682c-1.451.522-2.6 1.335-3.184 2.49-.862 1.703-.915 2.9-.704 3.783.22.914.756 1.638 1.37 2.355.49.572.484 1.438-.041 2-.23.247-.045.637.29.59 1.875-.26 3.939-1.071 5.24-2.88 1.008-1.4 1.158-2.636.964-3.655-.201-1.057-.792-1.975-1.408-2.638-.52-.56-.578-1.485.007-2.093.198-.206.037-.54-.246-.501-.77.108-1.554.285-2.288.55"}),(0,t.jsx)("path",{fill:"currentColor",d:"M5.953 11v-.887l2.071-1.917q.264-.255.444-.46.181-.205.275-.401a1 1 0 0 0 .094-.429.8.8 0 0 0-.117-.44.77.77 0 0 0-.318-.287 1 1 0 0 0-.457-.103.96.96 0 0 0-.466.108.74.74 0 0 0-.307.31 1 1 0 0 0-.108.48H5.896q0-.57.259-.991.258-.42.724-.65t1.074-.23q.626 0 1.088.22.466.22.725.609t.258.892q0 .33-.13.65-.128.321-.458.713-.33.39-.929.935l-.85.832v.04h2.444V11z"})]})),o=r.default.forwardRef((e,r)=>(0,t.jsx)(a.BaseIcon,{ref:r,icon:s,...e}));o.displayName="HurricaneCategoryTwo",e.s(["HurricaneCategoryTwo",0,o],153237);let n=(0,r.forwardRef)(({title:e,titleId:r,desc:a,descId:l,...i},s)=>(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:s,"aria-labelledby":r,"aria-describedby":l,...i,children:[a?(0,t.jsx)("desc",{id:l,children:a}):null,void 0===e?(0,t.jsx)("title",{id:r,children:"Hurricane Category 3"}):e?(0,t.jsx)("title",{id:r,children:e}):null,(0,t.jsx)("path",{fill:"currentColor",fillRule:"evenodd",d:"M3.669 12.27 2.5 13.52a1.48 1.48 0 0 0-.328 1.474c.163.494.608.927 1.242.974 2.488.187 6.734-.393 9.171-3.78 1.318-1.83 1.605-3.621 1.306-5.196-.256-1.348-.927-2.47-1.615-3.294l1.168-1.216c.42-.437.506-1.037.33-1.53a1.42 1.42 0 0 0-1.319-.95C10.925-.026 9.04.181 7.316.8c-1.72.618-3.391 1.69-4.292 3.469-1.03 2.034-1.209 3.718-.864 5.153.288 1.203.924 2.13 1.509 2.847",clipRule:"evenodd"}),(0,t.jsx)("path",{fill:"currentColor",d:"M7.992 2.682c-1.451.522-2.6 1.335-3.184 2.49-.862 1.703-.915 2.9-.704 3.783.22.914.756 1.638 1.37 2.355.49.572.484 1.438-.041 2-.23.247-.045.637.29.59 1.875-.26 3.939-1.071 5.24-2.88 1.008-1.4 1.158-2.636.964-3.655-.201-1.057-.792-1.975-1.408-2.638-.52-.56-.578-1.485.007-2.093.198-.206.037-.54-.246-.501-.77.108-1.554.285-2.288.55"}),(0,t.jsx)("path",{fill:"currentColor",d:"M7.987 11.08a2.8 2.8 0 0 1-1.134-.22q-.495-.221-.781-.607a1.53 1.53 0 0 1-.293-.898h1.239a.65.65 0 0 0 .14.375.86.86 0 0 0 .346.247q.216.088.486.088.28 0 .497-.1a.8.8 0 0 0 .338-.275.7.7 0 0 0 .122-.406.68.68 0 0 0-.13-.412.84.84 0 0 0-.37-.284 1.4 1.4 0 0 0-.568-.102h-.543v-.904h.543q.279 0 .491-.096a.8.8 0 0 0 .335-.267q.12-.174.12-.404a.7.7 0 0 0-.395-.645.94.94 0 0 0-.432-.094q-.251 0-.457.091a.8.8 0 0 0-.333.253.67.67 0 0 0-.133.387h-1.18q.009-.503.288-.887.277-.383.75-.6a2.5 2.5 0 0 1 1.07-.218q.603 0 1.055.219.451.22.701.59.253.37.25.83.003.489-.304.816a1.4 1.4 0 0 1-.792.414v.046q.642.082.977.446.338.36.335.903a1.42 1.42 0 0 1-.287.884 1.9 1.9 0 0 1-.792.608 2.9 2.9 0 0 1-1.16.221"})]})),c=r.default.forwardRef((e,r)=>(0,t.jsx)(a.BaseIcon,{ref:r,icon:n,...e}));c.displayName="HurricaneCategoryThree",e.s(["HurricaneCategoryThree",0,c],922372);let d=(0,r.forwardRef)(({title:e,titleId:r,desc:a,descId:l,...i},s)=>(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:s,"aria-labelledby":r,"aria-describedby":l,...i,children:[a?(0,t.jsx)("desc",{id:l,children:a}):null,void 0===e?(0,t.jsx)("title",{id:r,children:"Hurricane Category 4"}):e?(0,t.jsx)("title",{id:r,children:e}):null,(0,t.jsx)("path",{fill:"currentColor",fillRule:"evenodd",d:"M3.669 12.27 2.5 13.52a1.48 1.48 0 0 0-.328 1.474c.163.494.608.927 1.242.974 2.488.187 6.734-.393 9.171-3.78 1.318-1.83 1.605-3.621 1.306-5.196-.256-1.348-.927-2.47-1.615-3.294l1.168-1.216c.42-.437.506-1.037.33-1.53a1.42 1.42 0 0 0-1.319-.95C10.925-.026 9.04.181 7.316.8c-1.72.618-3.391 1.69-4.292 3.469-1.03 2.034-1.209 3.718-.864 5.153.288 1.203.924 2.13 1.509 2.847",clipRule:"evenodd"}),(0,t.jsx)("path",{fill:"currentColor",d:"M7.992 2.682c-1.451.522-2.6 1.335-3.184 2.49-.862 1.703-.915 2.9-.704 3.783.22.914.756 1.638 1.37 2.355.49.572.484 1.438-.041 2-.23.247-.045.637.29.59 1.875-.26 3.939-1.071 5.24-2.88 1.008-1.4 1.158-2.636.964-3.655-.201-1.057-.792-1.975-1.408-2.638-.52-.56-.578-1.485.007-2.093.198-.206.037-.54-.246-.501-.77.108-1.554.285-2.288.55"}),(0,t.jsx)("path",{fill:"currentColor",d:"M5.674 9.977v-.969l2.429-3.826h.835v1.34h-.494L6.912 8.947v.045h3.452v.986zM8.466 11V9.682l.023-.43v-4.07h1.154V11z"})]})),u=r.default.forwardRef((e,r)=>(0,t.jsx)(a.BaseIcon,{ref:r,icon:d,...e}));u.displayName="HurricaneCategoryFour",e.s(["HurricaneCategoryFour",0,u],738534);let m=(0,r.forwardRef)(({title:e,titleId:r,desc:a,descId:l,...i},s)=>(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:s,"aria-labelledby":r,"aria-describedby":l,...i,children:[a?(0,t.jsx)("desc",{id:l,children:a}):null,void 0===e?(0,t.jsx)("title",{id:r,children:"Hurricane Category 5"}):e?(0,t.jsx)("title",{id:r,children:e}):null,(0,t.jsx)("path",{fill:"currentColor",fillRule:"evenodd",d:"M3.669 12.27 2.5 13.52a1.48 1.48 0 0 0-.328 1.474c.163.494.608.927 1.242.974 2.488.187 6.734-.393 9.171-3.78 1.318-1.83 1.605-3.621 1.306-5.196-.256-1.348-.927-2.47-1.615-3.294l1.168-1.216c.42-.437.506-1.037.33-1.53a1.42 1.42 0 0 0-1.319-.95C10.925-.026 9.04.181 7.316.8c-1.72.618-3.391 1.69-4.292 3.469-1.03 2.034-1.209 3.718-.864 5.153.288 1.203.924 2.13 1.509 2.847",clipRule:"evenodd"}),(0,t.jsx)("path",{fill:"currentColor",d:"M7.992 2.682c-1.451.522-2.6 1.335-3.184 2.49-.862 1.703-.915 2.9-.704 3.783.22.914.756 1.638 1.37 2.355.49.572.484 1.438-.041 2-.23.247-.045.637.29.59 1.875-.26 3.939-1.071 5.24-2.88 1.008-1.4 1.158-2.636.964-3.655-.201-1.057-.792-1.975-1.408-2.638-.52-.56-.578-1.485.007-2.093.198-.206.037-.54-.246-.501-.77.108-1.554.285-2.288.55"}),(0,t.jsx)("path",{fill:"currentColor",d:"M8.02 11.08q-.603 0-1.075-.222a1.87 1.87 0 0 1-.744-.611 1.57 1.57 0 0 1-.287-.892h1.193a.73.73 0 0 0 .284.548q.264.21.628.21.29 0 .512-.127a.9.9 0 0 0 .349-.361q.128-.233.128-.534 0-.308-.13-.54a.9.9 0 0 0-.356-.364 1.05 1.05 0 0 0-.52-.133q-.255 0-.497.105a.9.9 0 0 0-.372.287L6.039 8.25l.276-3.068H9.87v1.005H7.33l-.15 1.458h.033q.154-.216.463-.358t.694-.142q.525 0 .937.247t.65.679q.24.429.237.988.002.589-.273 1.046a1.9 1.9 0 0 1-.764.716 2.4 2.4 0 0 1-1.137.258"})]})),h=r.default.forwardRef((e,r)=>(0,t.jsx)(a.BaseIcon,{ref:r,icon:m,...e}));h.displayName="HurricaneCategoryFive",e.s(["HurricaneCategoryFive",0,h],181081);let p=(0,r.forwardRef)(({title:e,titleId:r,desc:a,descId:l,...i},s)=>(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:s,"aria-labelledby":r,"aria-describedby":l,...i,children:[a?(0,t.jsx)("desc",{id:l,children:a}):null,void 0===e?(0,t.jsx)("title",{id:r,children:"Tropical Depression"}):e?(0,t.jsx)("title",{id:r,children:e}):null,(0,t.jsx)("circle",{cx:8,cy:8,r:7,fill:"currentColor"}),(0,t.jsxs)("g",{fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd",children:[(0,t.jsx)("path",{d:"M8 11.5a3.5 3.5 0 1 0 0-7 3.5 3.5 0 0 0 0 7M8 13A5 5 0 1 0 8 3a5 5 0 0 0 0 10"}),(0,t.jsx)("path",{d:"M13 8A5 5 0 1 1 3 8a5 5 0 0 1 10 0m-5 3.5a3.5 3.5 0 1 0 0-7 3.5 3.5 0 0 0 0 7"})]})]})),f=r.default.forwardRef((e,r)=>(0,t.jsx)(a.BaseIcon,{ref:r,icon:p,...e}));f.displayName="TropicalDepression",e.s(["TropicalDepression",0,f],685790)},347458,e=>{"use strict";var t=e.i(902875),r=e.i(247865),a=e.i(747961);let l=(0,r.forwardRef)(({title:e,titleId:r,desc:a,descId:l,...i},s)=>(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:s,"aria-labelledby":r,"aria-describedby":l,...i,children:[a?(0,t.jsx)("desc",{id:l,children:a}):null,void 0===e?(0,t.jsx)("title",{id:r,children:"Storm Tracker"}):e?(0,t.jsx)("title",{id:r,children:e}):null,(0,t.jsx)("path",{fill:"currentColor",d:"M8.032 1a.5.5 0 0 0-.484.384L6.69 5.028a5.01 5.01 0 1 0 4.282 4.281l3.644-.857A.5.5 0 0 0 15 7.968 6.976 6.976 0 0 0 8.032 1M5.69 10.31a.5.5 0 0 0 .466.133l1.872-.44a1.989 1.989 0 1 1-2.03-2.031l-.441 1.872a.5.5 0 0 0 .133.466m1.02-1.02 1.13-4.803a3.733 3.733 0 0 1 3.673 3.673zm3.313.668A3.981 3.981 0 1 1 6.462 6l-.231.982c-.063-.004-.126-.01-.19-.01a2.986 2.986 0 1 0 2.987 2.986q-.002-.095-.01-.189L10 9.54q.023.209.023.42m2.474-2.03a4.727 4.727 0 0 0-4.425-4.425l.352-1.495a5.98 5.98 0 0 1 5.568 5.568z"})]})),i=r.default.forwardRef((e,r)=>(0,t.jsx)(a.BaseIcon,{ref:r,icon:l,...e}));i.displayName="StormTracker",e.s(["StormTracker",0,i])},175973,e=>{"use strict";var t=e.i(902875),r=e.i(247865),a=e.i(747961);let l=(0,r.forwardRef)(({title:e,titleId:r,desc:a,descId:l,...i},s)=>(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:s,"aria-labelledby":r,"aria-describedby":l,...i,children:[a?(0,t.jsx)("desc",{id:l,children:a}):null,void 0===e?(0,t.jsx)("title",{id:r,children:"Warning"}):e?(0,t.jsx)("title",{id:r,children:e}):null,(0,t.jsx)("path",{fill:"currentColor",fillRule:"evenodd",d:"M8 15A7 7 0 1 1 8 1a7 7 0 0 1 0 14m.854-3.373a.84.84 0 1 1-1.68 0 .84.84 0 0 1 1.68 0M8.63 8.84V4.22a.63.63 0 1 0-1.26 0v4.62a.63.63 0 1 0 1.26 0",clipRule:"evenodd"})]})),i=r.default.forwardRef((e,r)=>(0,t.jsx)(a.BaseIcon,{ref:r,icon:l,...e}));i.displayName="WarningFilled",e.s(["WarningFilled",0,i])},955105,e=>{"use strict";var t=e.i(902875),r=e.i(247865),a=e.i(747961);let l=(0,r.forwardRef)(({title:e,titleId:r,desc:a,descId:l,...i},s)=>(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:s,"aria-labelledby":r,"aria-describedby":l,...i,children:[a?(0,t.jsx)("desc",{id:l,children:a}):null,void 0===e?(0,t.jsx)("title",{id:r,children:"Wind"}):e?(0,t.jsx)("title",{id:r,children:e}):null,(0,t.jsx)("path",{fill:"currentColor",fillRule:"evenodd",d:"M8.333 4.626C8.575 3.757 9.41 3 10.648 3c1.497 0 2.39 1.095 2.39 2.165 0 1.069-.893 2.164-2.39 2.164H4.389c-.256 0-.463-.188-.463-.42s.207-.42.463-.42h6.259c.91 0 1.463-.649 1.463-1.324 0-.676-.552-1.325-1.463-1.325-.764 0-1.265.45-1.416.991-.063.225-.315.361-.563.304s-.398-.285-.336-.51M2 9.09c0-.232.207-.42.463-.42h9.148C13.107 8.67 14 9.766 14 10.835S13.107 13 11.61 13c-1.334 0-2.211-.882-2.364-1.694-.043-.228.127-.445.379-.484s.491.115.534.343c.082.435.598.996 1.452.996.91 0 1.462-.65 1.462-1.326 0-.675-.552-1.325-1.462-1.325H2.463C2.207 9.51 2 9.322 2 9.09",clipRule:"evenodd"})]})),i=r.default.forwardRef((e,r)=>(0,t.jsx)(a.BaseIcon,{ref:r,icon:l,...e}));i.displayName="Wind",e.s(["Wind",0,i])},26710,e=>{"use strict";var t=e.i(650130),r=e.i(286863),a=e.i(523126);let l=1e3,i=()=>({primary:null,secondary:[],isImpacted:!1,selectionMode:null,showMostImpactfulBadge:!1});e.s(["DEFAULT_MAX_DISTANCE_MILES",0,l,"filterActiveStorms",0,(e,t,r=new Date(Date.now()))=>{if(!e||!e.length)return;let l=[];return e.forEach(e=>{let i=e?.currentposition?.storm_type_cd;if("RO"===i||"PT"===i&&!t)return;let s=new Date(e.adv_dt_tm),o=(0,a.diffInDays)(r.toString(),s.toString());(0===o||-1===o)&&("AL"===e.basin?l.unshift(e):l.push(e))}),l.length>0?l:void 0},"selectStorms",0,({storms:e,userGeocode:a,threatStormId:s,overrideStormId:o,maxDistanceMiles:n=l})=>{if(!e||!e.length)return i();let c=(e=>{if(!e)return null;let t=e.split(",").map(Number),r=t[0],a=t[1];return void 0!==r&&void 0!==a&&Number.isFinite(r)&&Number.isFinite(a)?{lat:r,lon:a}:null})(a),d=e.map(e=>((e,r)=>{let a=e.currentposition?.lat,l=e.currentposition?.lon;if(!r||!Number.isFinite(a)||!Number.isFinite(l))return{storm:e,distanceMiles:null};let i=(0,t.calculateDistance)(r.lat,r.lon,a,l);return{storm:e,distanceMiles:Number.isFinite(i)?Math.round(.621371*i):null}})(e,c)),u=d.filter(e=>null!==e.distanceMiles&&e.distanceMiles(e.distanceMiles??0)-(t.distanceMiles??0)),m=(0,r.matchStormById)(e,s),h=null,p=null,f=!1;if(m)h=d.find(e=>e.storm.storm_key===m.storm_key)??null,p="threat",f=!0;else if(u.length>0)h=u[0]??null,p="proximity",f=!0;else{let t=(0,r.matchStormById)(e,o);t&&(h=d.find(e=>e.storm.storm_key===t.storm_key)??null,p="override")}if(!h)return i();let g=h.storm.storm_key,x=u.filter(e=>e.storm.storm_key!==g);return{primary:h,secondary:x,isImpacted:f,selectionMode:p,showMostImpactfulBadge:f&&x.length>0}}])},312781,e=>{"use strict";var t=e.i(495892),r=e.i(349262),a=e.i(553329);let l=async e=>{if(!e.geocode)return null;let{data:l,error:i}=await (0,a.tryCatch)((0,t.getHourlyForecast)({geocode:e.geocode,units:r.Units.IMPERIAL,language:"en-US",cscCountryCode:e.countryCode}));if(i||!l)return null;let s=l.find(e=>e.stormId);return s?.stormId??null};e.s(["resolveTropicalThreatStormId",0,l])},664592,785355,202340,e=>{"use strict";var t=e.i(289607);e.s(["formatShortMonthDateTime",0,({date:e,locale:r="en-US",timeZone:a})=>{if(!e)return"";let l={month:"short",day:"numeric",hour:"numeric",hour12:!0,minute:"2-digit"};if(!r.includes("-US"))return delete l.hour12,l.hourCycle="h23",(0,t.formatIntlDateString)(e,r,a);let i=(0,t.formatIntlDateParts)(e,r,a,l),s=i.find(e=>"month"===e.type).value,o=i.find(e=>"day"===e.type).value,n=i.find(e=>"hour"===e.type).value,c=i.find(e=>"minute"===e.type).value,d=i.find(e=>"dayperiod"===e.type.toLowerCase()).value.toLowerCase();return`${s} ${o}, ${n}:${c} ${d}`}],664592);var r=e.i(308427);let a={lod:4,attr:0,format:"png",height:"320",width:"568",product:"9066",basemap:"dark",baseUrl:"https://api.weather.com/v2/maps/dynamic?"};e.s(["buildInteractiveMapUrl",0,({radarUrl:e,hasPlaceId:t,stormName:r,zoom:a})=>{let l=!t,i=new URLSearchParams;l&&(i.set("page","radar"),i.set("id","autodetect")),i.set("base","dark"),null!=a&&i.set("zoom",String(a));let s=Array.isArray(r)?r:r?[r]:[],o=s.length?`&collection=${s.map(encodeURIComponent).join(",")}`:"";return`${l?"/redir":e}?${i.toString()}${o}`},"buildStormImageUrl",0,(e,{languageCode:t,countryCode:l,overlays:i,zoom:s})=>{let{lod:o,attr:n,format:c,height:d,width:u,product:m,basemap:h,baseUrl:p}=a,f=s||o,g=(0,r.getLODRoundedVal)(`${e.currentposition.lat}`,f),x=(0,r.getLODRoundedVal)(`${e.currentposition.lon}`,f),w=t&&["en","fr","es","de","ru","zu"].indexOf(t)>=0?t:"en",b=null;return"IN"===l&&(b="&region=in"),`${p}geocode=${g},${x}&h=${d}&w=${u}&lod=${f}&product=${i||m}&map=${h}&format=${c}&language=${w}&apiKey=71f92ea9dd2f4790b92ea9dd2f779061&a=${n}${b||""}`}],785355),e.s(["isNotNil",0,function(e){return null!=e}],202340)},974555,e=>{"use strict";var t=e.i(902875),r=e.i(64412),a=e.i(546446),l=e.i(617874),i=e.i(674885),s=e.i(247865),o=e.i(381477),n=e.i(643548),c=e.i(725287),d=e.i(611540),u=e.i(26710),m=e.i(312781),h=e.i(664592);let p=(e,t)=>t?`CAT ${t}`:e||"L",f=(e,t)=>t?`cat${t}`:"TS"===e?"ts":"l";var g=e.i(598513),x=e.i(174355),w=e.i(785355);let b={revalidateOnFocus:!1,dedupingInterval:6e4,keepPreviousData:!0};var y=e.i(389379),v=e.i(581014),j=e.i(202340),k=e.i(870393),N=e.i(380993),C=e.i(548888),M=e.i(892186),S=e.i(240058),_=e.i(846871),z=e.i(632137),I=e.i(175973),T=e.i(950604),D=e.i(701445),L=e.i(153237),q=e.i(922372),R=e.i(738534),A=e.i(181081),E=e.i(685790),H=e.i(347458);let B={ts:"border-[#61c747] bg-[#224818]",l:"border-[#25bef7] bg-[#093b4d]",cat1:"text-[0.625rem] border-[#ebdb02] bg-[#494501]",cat2:"text-[0.625rem] border-[#ebb700] bg-[#524000]",cat3:"text-[0.625rem] border-[#fc8800] bg-[#502c02]",cat4:"text-[0.625rem] border-[#fc5e00] bg-[#511e00]",cat5:"text-[0.625rem] border-[#ed2325] bg-[#4f0c0d]"},F={ts:"bg-[#61c747]",l:"bg-[#25bef7]",cat1:"bg-[#ebdb02]",cat2:"bg-[#ebb700]",cat3:"bg-[#fc8800]",cat4:"bg-[#fc5e00]",cat5:"bg-[#ed2325]"},U={ts:E.TropicalDepression,l:H.StormTracker,cat1:D.HurricaneCategoryOne,cat2:L.HurricaneCategoryTwo,cat3:q.HurricaneCategoryThree,cat4:R.HurricaneCategoryFour,cat5:A.HurricaneCategoryFive},$=["radarSnapshot","hurricaneTracker"],P=(0,T.resolveMapStyle)("dark"),W=()=>(0,t.jsx)("div",{"aria-hidden":"true","data-testid":"HeroMapPlaceholder",className:"h-80 w-full rounded-2xl bg-[#4d505b]"}),O=(0,y.default)(()=>e.A(460988).then(e=>e.FeatureMap),{loadableGenerated:{modules:[636705]},ssr:!1,loading:()=>(0,t.jsx)(W,{})}),V=({units:e,loading:r,heroDetails:a,heroDistanceMiles:i,heroLat:o,heroLng:n,heroHref:c,showMostImpactfulBadge:d,secondaryStorms:u,ctaHref:m,heroAnalytics:h,secondaryAnalytics:p,trackAllAnalytics:w})=>{let b,y=(0,v.useTranslations)("SmartStormTracker"),T=(0,v.useTranslations)("HurricaneTracker"),{trackStormCtaClick:D}=(b=(0,g.useSendInteractionEvent)(),{trackStormCtaClick:(0,s.useCallback)(e=>{b({moduleId:"storm-tracker",interactionType:"click",interactionElement:e.sourceElement,sourceModule:x.STORM_TRACKER_SOURCE_MODULE,sourceElement:e.sourceElement},{flushImmediately:!0}),(0,x.writeStormViewedHandoff)(e)},[b])}),L=e=>()=>{e&&D(e)},{advisoryTime:q,stormName:R,stormType:A,stormTypeCode:E,stormSubTypeCode:H,maxWind:V,direction:G,speed:K,pressure:Y}=a||{},Z=((0,l.unitsSystemByCode)(e)??l.imperial).speed,J=f(E,H),X=(0,t.jsxs)("span",{className:(0,z.cn)("inline-flex items-center gap-1 rounded-full px-2.5 py-1 text-xs font-bold text-black",F[J]),children:[(0,t.jsx)(I.WarningFilled,{className:"h-3.5 w-3.5",ariaHidden:!0}),y("mostImpactful")]});return(0,t.jsxs)("section",{"data-testid":"SmartStormTracker",className:"@container",children:[(0,t.jsx)("h2",{className:"mb-2 text-xl font-bold",children:y("title")}),(0,t.jsx)(N.Card,{"aria-label":y("title"),children:(0,t.jsxs)(N.CardContent,{className:"p-0",children:[(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsxs)(S.default,{href:c??"",className:"block",onClick:L(h),children:[(0,t.jsx)("div",{"aria-hidden":"true",className:"absolute z-[1] h-full w-full rounded-2xl bg-gradient-to-b from-black via-transparent to-black [background:linear-gradient(0deg,rgba(0,0,0,1)_0%,rgba(0,0,0,0)_20%,rgba(0,0,0,0)_80%,rgba(0,0,0,1)_100%)]"}),(0,j.isNotNil)(o)&&(0,j.isNotNil)(n)?(0,t.jsx)(O,{lat:o,lng:n,zoom:6,mapStyle:P,layers:$,interactive:!1,className:"z-0 h-80 w-full rounded-2xl"}):(0,t.jsx)(W,{}),(0,j.isNotNil)(R)&&(0,t.jsxs)("div",{className:"absolute top-0 z-[1] mt-3 ml-4 flex max-w-[70%] text-sm leading-[1.25] text-white @lg:max-w-[90%]",children:[(0,t.jsx)("div",{className:(0,z.cn)("box-border flex h-[35px] w-[35px] min-w-[35px] items-center justify-center rounded-full border-2 border-white bg-gray-500 p-0.5 text-center leading-none font-bold",B[J]),children:E}),(0,t.jsxs)("div",{className:"ml-2.5 flex flex-col",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)("div",{className:"text-base leading-[1.15] font-bold",children:`${A} ${R}`}),d&&(0,t.jsx)("span",{className:"hidden @lg:inline-flex",children:X})]}),(0,t.jsx)("div",{className:"text-xs",children:(0,j.isNotNil)(i)?y("advisoryTimeWithDistance",{advisoryTime:q??"",distance:i}):q})]})]}),d&&(0,t.jsx)("div",{className:"absolute bottom-14 z-[1] ml-4 @lg:hidden",children:X}),(0,j.isNotNil)(K)&&(0,j.isNotNil)(G)&&(0,t.jsxs)("ul",{className:"absolute bottom-0 z-[1] box-border flex w-full list-none flex-row px-4 py-3 text-sm leading-[1.25] text-white",children:[(0,t.jsxs)("li",{className:"mr-8",children:[(0,t.jsx)("div",{className:"text-xs",children:T("maxWinds")}),(0,t.jsx)("div",{className:"font-bold",children:(0,t.jsx)(C.Wind,{windSpeed:V??void 0,units:e})})]}),(0,t.jsxs)("li",{className:"mr-8",children:[(0,t.jsx)("div",{className:"text-xs",children:T("movement")}),(0,t.jsx)("div",{className:"font-bold",children:T("directionSpeedUnit",{direction:G,speed:K,windUnit:Z})})]}),(0,t.jsxs)("li",{className:"mr-0",children:[(0,t.jsx)("div",{className:"text-xs",children:T("pressure")}),(0,t.jsx)("div",{className:"font-bold",children:Y?`${Y} mb`:"--"})]})]}),r&&(0,t.jsx)(_.Loader,{className:"absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2",variant:"white",size:"lg",label:"Loading"})]}),(0,t.jsx)(M.MapboxAttribution,{position:"top-right",color:"white",className:"!top-[13px] !right-4 z-[1] [&_button]:!p-0",stack:!0})]}),u.length>0&&(0,t.jsxs)("div",{className:"pt-4",children:[(0,t.jsx)("h3",{className:"text-lg font-bold",children:y("otherStormsNearYou")}),(0,t.jsx)("ul",{className:"grid list-none grid-cols-1 @lg:grid-cols-2 @lg:gap-x-6",children:u.map((e,r)=>{let a=U[f(e.stormTypeCode,e.stormSubTypeCode)];return(0,t.jsx)("li",{className:"border-b border-[#F2F2F2]",children:(0,t.jsxs)(S.default,{href:e.href,className:"flex items-center gap-3 py-3",onClick:L(p[r]??null),children:[(0,t.jsx)("div",{className:"flex h-9 w-9 min-w-9 items-center justify-center rounded-lg bg-[#ba0d00]",children:(0,t.jsx)(a,{className:"h-5 w-5 text-white",ariaHidden:!0})}),(0,t.jsxs)("div",{className:"flex flex-1 flex-col",children:[(0,t.jsx)("span",{className:"text-lg font-bold",children:`${e.stormType} ${e.stormName}`}),(0,t.jsx)("span",{className:"text-xs text-red-600",children:y("milesAway",{distance:e.distanceMiles})})]}),(0,t.jsx)(k.ChevronRight,{className:"h-4 w-4 text-gray-500","aria-hidden":"true"})]})},e.stormId)})})]}),m&&u.length>0&&(0,t.jsx)("div",{className:"flex justify-start py-4",children:(0,t.jsx)(S.default,{href:m,className:"inline-flex h-12 items-center justify-center rounded-lg bg-gray-900 px-4 text-base font-bold text-gray-100 focus-visible:ring-2 focus-visible:ring-blue-500 focus-visible:outline-none",onClick:L(w),children:y("trackAllStorms")})})]})})]})},G=({location:e,stormId:r,initializing:f,initialError:g})=>{let x=(0,a.useAtomValue)(i.userUnitPreferenceAtom),y=((0,l.unitsSystemByName)(x)||l.imperial).code,{selection:v,heroDetails:j,heroDistanceMiles:k,heroLat:N,heroLng:C,heroHref:M,secondaryStorms:S,ctaHref:_,heroAnalytics:z,secondaryAnalytics:I,trackAllAnalytics:T,isLoading:D,error:L}=(({location:e,stormId:t,threatResolver:r=m.resolveTropicalThreatStormId})=>{let{placeId:f,ianaTimeZone:g}=e||{},x=(0,c.useParams)().locale||"en-US",y=(0,a.useAtomValue)(i.userUnitPreferenceAtom),v=((0,l.unitsSystemByName)(y)||l.imperial).code,j=(0,d.interpolateUrl)(d.URLS.radar,{locale:x,locId:f||""}),{data:k,isLoading:N,error:C}=(0,o.default)(e||t?["getTropicalCurrentPosition","all","default","false",v,x]:null,([e,t,r,a,l,i])=>(0,n.getTropicalCurrentPosition)({basin:t,source:r,nautical:a,units:l,language:i}),b),{data:M,isLoading:S}=(0,o.default)(e?.geocode?["tropicalThreatStormId",e.geocode]:null,()=>r(e),b),_=(0,s.useMemo)(()=>{let r=(0,u.filterActiveStorms)(k?.advisoryinfo);return(0,u.selectStorms)({storms:r,userGeocode:e?.geocode,threatStormId:M,overrideStormId:t})},[k,e?.geocode,M,t]),z=_.primary?.storm??null,I=(0,s.useMemo)(()=>z?((e,{locale:t,timeZone:r,unitCode:a})=>{let l=e.currentposition?.storm_type_cd,i=e.currentposition?.storm_sub_type_cd,s=e.adv_dt_tm,o=e.currentposition?.min_pressure;return o&&"e"===a&&(o=Math.round(33.8639*o)),o||(o=null),{advisoryTime:(0,h.formatShortMonthDateTime)({date:s,locale:t,timeZone:r}),maxWind:e.currentposition?.max_sustained_wind,stormName:e.storm_name,stormSubType:e.currentposition?.storm_sub_type,stormSubTypeCode:i,stormType:e.currentposition?.storm_type,stormTypeCode:p(l,i),direction:e.currentposition?.heading?.storm_dir_cardinal,speed:e.currentposition?.heading?.storm_spd,pressure:o}})(z,{locale:x,timeZone:g||"UTC",unitCode:v}):null,[z,x,g,v]),T=z?.currentposition?.lat??null,D=z?.currentposition?.lon??null,L=(0,s.useMemo)(()=>z?(0,w.buildInteractiveMapUrl)({radarUrl:j,hasPlaceId:!!f,stormName:z.storm_name}):null,[z,j,f]),q=(0,s.useMemo)(()=>_.secondary.map(({storm:e,distanceMiles:t})=>({stormId:e.storm_id,stormName:e.storm_name,stormType:e.currentposition?.storm_type??"",stormTypeCode:p(e.currentposition?.storm_type_cd,e.currentposition?.storm_sub_type_cd),stormSubTypeCode:e.currentposition?.storm_sub_type_cd,distanceMiles:t??0,href:(0,w.buildInteractiveMapUrl)({radarUrl:j,hasPlaceId:!!f,stormName:e.storm_name})})),[_.secondary,j,f]),R=e?.displayName??null,A=(0,s.useMemo)(()=>z?{sourceElement:"Most Impactful Storm",stormId:z.storm_id??null,stormName:z.storm_name??null,stormCategory:p(z.currentposition?.storm_type_cd,z.currentposition?.storm_sub_type_cd),distanceFromUser:_.isImpacted?_.primary?.distanceMiles??null:null,userLocation:R}:null,[z,_,R]),E=(0,s.useMemo)(()=>_.secondary.map(({storm:e,distanceMiles:t},r)=>({sourceElement:0===r?"Secondary Closest Storm":1===r?"Third Closest Storm":"Additional Nearby Storm",stormId:e.storm_id??null,stormName:e.storm_name??null,stormCategory:p(e.currentposition?.storm_type_cd,e.currentposition?.storm_sub_type_cd),distanceFromUser:t??null,userLocation:R})),[_.secondary,R]),H=(0,s.useMemo)(()=>z&&0!==q.length?{sourceElement:"Track All Storms",stormId:null,stormName:null,stormCategory:null,distanceFromUser:null,userLocation:R,numberOfStormsDisplayed:1+q.length}:null,[z,q.length,R]),B=(0,s.useMemo)(()=>{if(!z||0===q.length)return null;let e=[z.storm_name,...q.map(e=>e.stormName)];return(0,w.buildInteractiveMapUrl)({radarUrl:j,hasPlaceId:!!f,stormName:e})},[z,q,j,f]);return{selection:_,heroDetails:I,heroDistanceMiles:_.isImpacted?_.primary?.distanceMiles??null:null,heroLat:T,heroLng:D,heroHref:L,secondaryStorms:q,ctaHref:B,heroAnalytics:A,secondaryAnalytics:E,trackAllAnalytics:H,isLoading:N||S,error:C}})({location:e,stormId:r});return g||L?null:j?(0,t.jsx)(V,{units:y,loading:!!(D||f),heroDetails:j,heroDistanceMiles:k,heroLat:N,heroLng:C,heroHref:M,showMostImpactfulBadge:v.showMostImpactfulBadge,secondaryStorms:S,ctaHref:_,heroAnalytics:z,secondaryAnalytics:I,trackAllAnalytics:T}):null},K=e=>{let{location:a,isLoading:l}=(0,r.useLocation)();return(0,t.jsx)(G,{...e,location:a,initializing:l})};e.s(["SmartStormTrackerBlockClient",0,K,"default",0,K],974555)},296559,function(e){e.n(e.i(974555))},174355,e=>{"use strict";let t="wxu-web/key-val:stormViewedHandoff";e.s(["STORM_TRACKER_SOURCE_MODULE",0,"Storm Tracker","STORM_VIEWED_EVENT",0,"storm-viewed","clearStormViewedHandoff",0,function(){try{if("u"6e4)return null;let{timestamp:a,...l}=r;return l}catch{return null}},"writeStormViewedHandoff",0,function(e){try{if("u"{"use strict";let t={ar:{roadsLight:"weather/cjzcvjtvw2jvk1dmw6401lv5f",roadsDark:"weather/cjzcwe7p22kiq1cufsznrxn0j",satellite:"weather/cjzcwxaxk2kxv1dpfm7r2oy4p",grayscale:"weather/ck8k9e89n0xtq1ip2ygpp19cv"},de:{roadsLight:"weather/cjzbc9v9n14051co36j3p2r4y",roadsDark:"weather/cjzbdp71h0vpe1dn0iv1uuxno",satellite:"weather/cjzbewyxb16f41clacifdiwlw",grayscale:"weather/ck8j3yykx0u7n1impkkftca0f"},en:{roadsLight:"weather/cjza0fpcf54z71cnty86ulfhj",roadsDark:"weather/cjza0gjet1d8n1cmh9hyhw2kt",satellite:"weather/cjza0g6kt0zij1cmufoybwgrk",grayscale:"weather/ck8j3ip491cgv1imdwgt83kxg"},es:{roadsLight:"weather/cjzbb7lcc12z61cmp9gtjk3o3",roadsDark:"weather/cjzbehhr016391cpdjborv9ty",satellite:"weather/cjzbf2e0516kf1cqnkpwt4ujg",grayscale:"weather/ck8j42ocv0u4l1hn59helvh41"},fr:{roadsLight:"weather/cjzbb7f4412va1cp9gu6tsxw5",roadsDark:"weather/cjzbefah4160h1cpd1vqsjnsu",satellite:"weather/cjzbezo0p16hs1cqnh422ilfs",grayscale:"weather/ck8j40zpx1cvf1imsvwj14jd5"},in:{roadsLight:"weather/cja1hk6znafpv2sqp1c3z63wb",roadsDark:"weather/cja1iodhlag4i2rnvsw14wkhu",grayscale:"weather/ck8oklev739711jo4loc1r0n9"},ja:{roadsLight:"weather/cjzcvjluh2jp61cufexjvzw9a",roadsDark:"weather/cjzcwamvm2kkl1dmwut09m1wc",satellite:"weather/cjzcwubnu2kks1co3g4o5u7ql",grayscale:"weather/ck8k9e89n0xtq1ip2ygpp19cv"},ko:{roadsLight:"weather/cjzcvjeu92jo21dpfvwgf572d",roadsDark:"weather/cjzcw2wb72jyc1docqldz1tzf",satellite:"weather/cjzcwo2qs2krx1cuf0db82vcx",grayscale:"weather/ck8k9e89n0xtq1ip2ygpp19cv"},pt:{roadsLight:"weather/cjzcvk1xa2g9w1dwzn7mfsjj9",roadsDark:"weather/cjzcwgdpi2kao1cqnjmu9k4ly",satellite:"weather/cjzcwzmps2kr71cq0xrvikiga",grayscale:"weather/ck8k9e89n0xtq1ip2ygpp19cv"},ru:{roadsLight:"weather/cjzbb7qx2133x1cnwiqa8bifv",roadsDark:"weather/cjzbej6bl16161cqnpu401x3p",satellite:"weather/cjzbf4qsd16lt1co274kutrn6",grayscale:"weather/ck8k904c109sp1il3idpltadf"},zh:{roadsLight:"weather/cjzbb7wue13481cpkuk9ro81p",roadsDark:"weather/cjzbelcyb166y1cpdnuheq9ue",satellite:"weather/cjzbf6rq316qg1co3ono2gniv",grayscale:"weather/ck8k9se3g0mwr1il96hsh9mz2"},_:{roadsLight:"weather/cjzbb82gn12z81co8aant0ter",roadsDark:"weather/cjzbenwnq168o1co3atxyr67d",satellite:"weather/cjzbf8qmr16qg1cqnrd9b8g31",grayscale:"weather/ck8k9e89n0xtq1ip2ygpp19cv"}},r={bottomEndId:"Bottom Data Group",middleEndId:"Middle Data Group",topEndId:"Top Data Group"},a={[t.in.roadsLight]:{bottomEndId:"tunnel-street-low",middleEndId:"housenum-label"},[t.in.roadsDark]:{bottomEndId:"tunnel-street-low",middleEndId:"place-city-sm"}},l={en:{roadsLight:"weather/cmph441x8005g01sn12ta16b6",roadsDark:"weather/cmpvi54ib008401syd0vg1piy",satellite:"weather/cmpvtoa8j002s01rehbo205hg",grayscale:"weather/ck8j3ip491cgv1imdwgt83kxg"},ko:{roadsLight:"weather/cmpq44hvg003d01rcgyrafka3",roadsDark:"weather/cmpvu5gvd008t01sydiush7yr",satellite:"weather/cmpvuftfj002u01reesi036jh",grayscale:"weather/ck8k9e89n0xtq1ip2ygpp19cv"}},i={ar:{roadsLight:"weather/cl27q8xy5004015jznwdr2jux",roadsDark:"weather/cl27t1sof001014qklb7mnhmy",satellite:"weather/cl27tfc94000n14nrxvqj1r6x",grayscale:"weather/cl27udvrb00cr14qvessadsma"},en:{roadsLight:"weather/cl29hgygu000514nsipiki72e",roadsDark:"weather/cl2878qzu001514nu9enf9n8l",satellite:"weather/cl287db0x00c714pcvfwktsbm",grayscale:"weather/cl287gh8k001t15m8jw4dmcas"},es:{roadsLight:"weather/cl29gw5va001d14rqdzl3y423",roadsDark:"weather/cl29h0oc9001d14qpzmyi2695",satellite:"weather/cl29h5h50005q14nw84644huz",grayscale:"weather/cl29hbn28005a15nzjogzrx24"},fr:{roadsLight:"weather/cl287k6n8000115s3fj52086u",roadsDark:"weather/cl287tjl5003x14nwjkzsprdg",satellite:"weather/cl287we0j003y14nwbds6gojj",grayscale:"weather/cl287z8cn001g15nwaoqxecmw"},_:{roadsLight:"weather/cl29hkzws001f14rq7pzuwhre",roadsDark:"weather/cl29kelz6001e14t1pgsozymj",satellite:"weather/cl29khb2p001n15lmy7ansx20",grayscale:"weather/cl27udvrb00cr14qvessadsma"}};function s(e,r){let a=function({locale:e,geoCountry:r,isSamsungMorocco:a,isKoreanCSC:s}={}){let[o="en",n]=(e||"en").split("-"),c=o.toLowerCase();if(s){let e=l[c];if(e)return e}if(n?.toUpperCase()==="IN"||r?.toUpperCase()==="IN")return t.in;let d=a?i:t;return d[c]??d._}(r);return a[e]??a.roadsLight}let o="mapbox://styles/",n={light:"weather/cmq18dhse00gk01s67nky5oc4",dark:"weather/cmpzizddb007f01s0480lew2j",satellite:"weather/cmpzjludd000401qs2inuays8"},c={light:"roadsLight",dark:"roadsDark",satellite:"satellite"},d="classic".trim().toLowerCase()==="classic"?"classic":"standard";function u(e,t=d,r={}){let a="classic"===t?s(c[e],r):n[e];return`${o}${a}`}let m=[{id:"light",label:"themeLabelLight",mapStyle:u("light"),thumbnailGradient:"from-sky-200 to-blue-300"},{id:"dark",label:"themeLabelDark",mapStyle:u("dark"),thumbnailGradient:"from-slate-700 to-slate-900"},{id:"satellite",label:"themeLabelSatellite",mapStyle:u("satellite"),thumbnailGradient:"from-emerald-700 to-stone-800"}],h=new Set(["ar","de","en","es","fr","it","ja","ko","pt","ru"]),p=new Set(["TW","HK","MO","HANT"]);e.s(["DEFAULT_MAP_THEME_ID",0,"light","FEATURE_MAP_STYLE",0,"mapbox://styles/weather/cjza0fpcf54z71cnty86ulfhj","MAPBOX_BASEMAP_VARIANT",0,d,"MAP_THEMES",0,m,"mapboxBasemapLanguage",0,function(e="en-US"){let[t,r]=e.split("-"),a=(t??"").toLowerCase(),l=(r??"").toUpperCase();return"zh"===a?p.has(l)?"zhHant":"zhHans":h.has(a)?a:void 0},"resolveMapBasemap",0,function(e,t=d,l={}){var i;let n,m;if("classic"!==t)return u(e,t,l);let{styleId:h,dividers:p}=(m=a[n=s(i=c[e],l)]??("grayscale"===i?null:r),{styleId:n,dividers:m}),f=`${o}${h}`;return p?{type:"MapboxBasemapClassic",source:f,...p}:f},"resolveMapStyle",0,u],950604)},846871,e=>{"use strict";var t=e.i(902875),r=e.i(294237),a=e.i(632137);let l=(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:s})=>(0,t.jsx)("div",{className:(0,a.cn)(l({size:r,variant:i}),e),"aria-label":s})])},548888,763635,e=>{"use strict";var t=e.i(902875),r=e.i(247865),a=e.i(632137),l=e.i(747961);let i=(0,r.forwardRef)(({title:e,titleId:r,desc:a,descId:l,...i},s)=>(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:s,"aria-labelledby":r,"aria-describedby":l,...i,children:[a?(0,t.jsx)("desc",{id:l,children:a}):null,void 0===e?(0,t.jsx)("title",{id:r,children:"Arrow Down"}):e?(0,t.jsx)("title",{id:r,children:e}):null,(0,t.jsx)("path",{fill:"currentColor",d:"M3.353 9.767a.499.499 0 0 1 .705-.706L7.5 12.5V2.914a.5.5 0 0 1 1 0V12.5l3.443-3.438a.499.499 0 0 1 .705.706l-3.94 3.94a1 1 0 0 1-1.415 0z"})]})),s=r.default.forwardRef((e,r)=>(0,t.jsx)(l.BaseIcon,{ref:r,icon:i,...e}));s.displayName="ArrowDown",e.s(["ArrowDown",0,s],763635);var o=e.i(955105),n=e.i(617874);let c={N:0,NNE:22.5,NE:45,ENE:67.5,E:90,ESE:112.5,SE:135,SSE:157.5,S:180,SSW:202.5,SW:225,WSW:247.5,W:270,WNW:292.5,NW:315,NNW:337.5},d=({windDirection:e,windDirectionCardinal:r,iconClassName:l,iconColor:i,displayWindDirectionIcon:n,displayMode:d,afterSpeed:u,useWindIcon:m})=>{var h,p;if(!e&&!r)return null;let f=(h=e,p=r,null!=h&&Number.isFinite(h)?h:p?c[p]:void 0);if(!("directional"===d||"directionalAndCardinal"===d||void 0===d&&n||m)||!m&&!Number.isFinite(f))return null;let g=m?o.Wind:s,x=m?void 0:{transform:`rotate(${f}deg)`};return(0,t.jsx)(g,{className:(0,a.cn)("inline-block size-4 align-middle",u?"ml-0.5":"mr-0.5",l),color:i,style:x,"aria-label":"Wind direction icon","data-testid":"WindDirectionIcon"})},u=({windDirection:e,windDirectionCardinal:r,cardinalClassName:a,displayWindDirectionIcon:l,displayMode:i,beforeSpeed:s})=>(e||r)&&("cardinal"===i||"directionalAndCardinal"===i||void 0===i&&!l)&&r?(0,t.jsxs)("span",{className:a,children:[!s&&" ",r,s&&" "]}):null,m=({units:e,windUnitClass:r})=>{let l=e?(0,n.unitsSystemByCode)(e):null,i=l?.speed;return(0,t.jsx)("span",{className:(0,a.cn)(r),children:i})},h=(0,r.memo)(({windSpeed:e,units:r,className:l,windDirection:i,windDirectionCardinal:s,windSpeedClass:o,windUnitClass:n,iconClassName:c,iconColor:h,cardinalClassName:p,iconAfterSpeed:f,cardinalBeforeSpeed:g,spaceWindSpeedAndUnit:x=!0,displayWindDirectionIcon:w=!1,displayMode:b,useWindIcon:y})=>{let v=(0,t.jsx)(d,{windDirection:i,windDirectionCardinal:s,iconClassName:c,iconColor:h,displayWindDirectionIcon:w,displayMode:b,afterSpeed:f,useWindIcon:y}),j=(0,t.jsx)(u,{windDirection:i,windDirectionCardinal:s,displayWindDirectionIcon:w,displayMode:b,beforeSpeed:g,cardinalClassName:p});return(0,t.jsxs)("span",{"data-testid":"Wind",className:(0,a.cn)(l),children:[!f&&v,g&&j,Number.isFinite(e)&&r?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{className:(0,a.cn)(o),children:e}),x&&" ",(0,t.jsx)(m,{units:r,windUnitClass:n})]}):(0,t.jsx)("span",{className:(0,a.cn)(o),children:"--"}),!g&&j,f&&v]})});e.s(["Wind",0,h],548888)},523126,e=>{"use strict";e.s(["diffInDays",0,(e,t)=>e&&t?Math.floor((Date.parse(t)-Date.parse(e))/864e5):0])},289607,e=>{"use strict";var t=e.i(506424);let r=(e,r,a,l)=>{let{cDate:i,cTimeZone:s}=(0,t.getCompatibleValues)({date:e,locale:r,timeZone:a}),o=l??{year:"numeric",month:"2-digit",day:"2-digit",weekday:"short"};return o.timeZone=s,{cDate:i,cTimeZone:s,formatOptions:o}};e.s(["formatIntlDateParts",0,(e,t,a,l)=>{if(!e)return[];let{cDate:i,formatOptions:s}=r(e,t,a,l);return new Intl.DateTimeFormat(t,s).formatToParts(i)},"formatIntlDateString",0,(e,t,a,l)=>{if(!e)return"";let{cDate:i,formatOptions:s}=r(e,t,a,l);return new Intl.DateTimeFormat(t,s).format(i)}])},308427,892186,e=>{"use strict";e.s(["getLODRoundedVal",0,(e,t)=>{let r=(e=>{if(e=12)return 3;throw Error("Cannot get precision from invalid level of detail")})(t),a=parseFloat(e),l=10**r,i=0===r?1:5;return(Math.sign(a)*Math.round(Math.abs(a)*l/i)*i/l).toFixed(r)}],308427);var t=e.i(902875),r=e.i(247865),a=e.i(632137),l=e.i(809058);let i={"top-left":"top-0 left-0 flex-row","top-right":"top-0 right-0 flex-row-reverse","bottom-left":"bottom-0 left-0 flex-row","bottom-right":"bottom-0 right-0 flex-row-reverse"},s={"top-left":"bottom","top-right":"bottom","bottom-left":"top","bottom-right":"top"},o={"top-left":"start","top-right":"end","bottom-left":"start","bottom-right":"end"},n={blue:"fill-brand-300",white:"fill-white"},c=({position:e="bottom-right",color:c="blue",className:u="",linksClassName:m="",stack:h=!1})=>{let[p,f]=(0,r.useState)(!1);return(0,t.jsx)("div",{className:(0,a.cn)("absolute flex items-start gap-1",i[e],u),"data-testid":"MapboxAttribution",children:(0,t.jsxs)(l.Popover,{open:p,onOpenChange:f,children:[(0,t.jsx)(l.PopoverTrigger,{asChild:!0,children:(0,t.jsx)("button",{type:"button",className:(0,a.cn)("flex cursor-pointer items-center p-0",n[c]),"aria-label":"Map Attribution","data-testid":"MapboxLinks",children:(0,t.jsx)(d,{})})}),(0,t.jsxs)(l.PopoverContent,{side:s[e],align:o[e],sideOffset:4,showArrow:!1,className:(0,a.cn)("!w-auto !rounded !border-none !bg-white/75 !p-1.5 !shadow-md","flex flex-wrap text-xs",h?"flex-col space-y-1":"flex-row items-center space-x-2",m),children:[(0,t.jsx)("a",{target:"_blank",rel:"noopener noreferrer",href:"https://mapbox.com/about/maps",className:"text-blue-600 hover:underline",children:`\xa9 ${new Date().getFullYear()} Mapbox`}),(0,t.jsx)("a",{target:"_blank",rel:"noopener noreferrer",href:"https://www.openstreetmap.org/about",className:"text-blue-600 hover:underline",children:"© OpenStreetMap"}),!h&&(0,t.jsx)("span",{className:"text-gray-400",children:"|"}),(0,t.jsx)("a",{target:"_blank",rel:"noopener noreferrer",href:"https://www.mapbox.com/map-feedback/",className:"text-blue-600 hover:underline",children:"Improve this map"})]})]})})},d=()=>(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 800 180",className:"w-18.75 opacity-75 drop-shadow-[0_0_2px_black]",children:[(0,t.jsx)("title",{children:"Mapbox Logo"}),(0,t.jsx)("path",{d:"M594.6 49.8c-9.9 0-19.4 4.1-26.3 11.3V23c0-1.2-1-2.2-2.2-2.2h-13.4c-1.2 0-2.2 1-2.2 2.2v103c0 1.2 1 2.2 2.2 2.2h13.4c1.2 0 2.2-1 2.2-2.2v-7.1c6.9 7.2 16.3 11.3 26.3 11.3 20.9 0 37.8-18 37.8-40.2s-16.9-40.2-37.8-40.2zm-3.1 64.3c-12.7 0-23-10.6-23.1-23.8v-.6c.2-13.2 10.4-23.8 23.1-23.8 12.8 0 23.1 10.8 23.1 24.1s-10.4 24.1-23.1 24.1zM681.7 49.8c-22.6 0-40.9 18-40.9 40.2s18.3 40.2 40.9 40.2c22.6 0 40.9-18 40.9-40.2s-18.3-40.2-40.9-40.2zm-.1 64.3c-12.8 0-23.1-10.8-23.1-24.1s10.4-24.1 23.1-24.1 23.1 10.8 23.1 24.1-10.4 24.1-23.1 24.1zM431.6 51.8h-13.4c-1.2 0-2.2 1-2.2 2.2v7.1c-6.9-7.2-16.3-11.3-26.3-11.3-20.9 0-37.8 18-37.8 40.2s16.9 40.2 37.8 40.2c9.9 0 19.4-4.1 26.3-11.3v7.1c0 1.2 1 2.2 2.2 2.2h13.4c1.2 0 2.2-1 2.2-2.2V54c0-1.2-1-2.2-2.2-2.2zm-38.8 62.3c-12.8 0-23.1-10.8-23.1-24.1s10.4-24.1 23.1-24.1c12.7 0 23 10.6 23.1 23.8v.6c-.1 13.2-10.4 23.8-23.1 23.8zM498.5 49.8c-9.9 0-19.4 4.1-26.3 11.3V54c0-1.2-1-2.2-2.2-2.2h-13.4c-1.2 0-2.2 1-2.2 2.2v103c0 1.2 1 2.2 2.2 2.2H470c1.2 0 2.2-1 2.2-2.2v-38.1c6.9 7.2 16.3 11.3 26.3 11.3 20.9 0 37.8-18 37.8-40.2s-16.9-40.2-37.8-40.2zm-3.1 64.3c-12.7 0-23-10.6-23.1-23.8v-.6c.2-13.2 10.4-23.8 23.1-23.8 12.8 0 23.1 10.8 23.1 24.1s-10.3 24.1-23.1 24.1zM311.8 49.8c-10 .1-19.1 5.9-23.4 15-4.9-9.3-14.7-15.1-25.2-15-8.2 0-15.9 4-20.7 10.6V54c0-1.2-1-2.2-2.2-2.2h-13.4c-1.2 0-2.2 1-2.2 2.2v72c0 1.2 1 2.2 2.2 2.2h13.4c1.2 0 2.2-1 2.2-2.2V82.9c.5-9.6 7.2-17.3 15.4-17.3 8.5 0 15.6 7.1 15.6 16.4v44c0 1.2 1 2.2 2.2 2.2h13.5c1.2 0 2.2-1 2.2-2.2l-.1-44.8c1.2-8.8 7.5-15.6 15.2-15.6 8.5 0 15.6 7.1 15.6 16.4v44c0 1.2 1 2.2 2.2 2.2h13.5c1.2 0 2.2-1 2.2-2.2l-.1-49.5c0-14.8-12.6-26.7-28.1-26.7zM794.7 125.1l-23.2-35.3 23-35c.6-.9.3-2.2-.6-2.8-.3-.2-.7-.3-1.1-.3h-15.5c-1.2 0-2.3.6-2.9 1.6L760.9 76l-13.5-22.6c-.6-1-1.7-1.6-2.9-1.6H729c-1.1 0-2 .9-2 2 0 .4.1.8.3 1.1l23 35-23.2 35.3c-.6.9-.3 2.2.6 2.8.3.2.7.3 1.1.3h15.5c1.2 0 2.3-.6 2.9-1.6l13.8-23 13.8 23c.6 1 1.7 1.6 2.9 1.6H793c1.1 0 2-.9 2-2 0-.4-.1-.8-.3-1.2z"}),(0,t.jsxs)("g",{children:[(0,t.jsx)("path",{d:"M93.9 1.1C44.8 1.1 5 40.9 5 90s39.8 88.9 88.9 88.9 88.9-39.8 88.9-88.9c0-49.1-39.8-88.9-88.9-88.9zm42.2 110.7c-30.4 30.4-84.7 20.7-84.7 20.7s-9.8-54.2 20.7-84.7C89 30.9 117 31.6 134.7 49.2s18.3 45.7 1.4 62.6z"}),(0,t.jsx)("path",{d:"M104.1 53.2l-8.7 17.9-17.9 8.7 17.9 8.7 8.7 17.9 8.7-17.9 17.9-8.7-17.9-8.7z"})]})]}),u=(0,r.memo)(c);e.s(["MapboxAttribution",0,c,"default",0,u],892186)}]);